{ "protocol": 6, "previous": 5, "messages": { "invocation": { "_tag": "Objects", "propertySignatures": [ { "name": "command", "type": { "$message": "request" }, "isOptional": false }, { "name": "accounts", "type": { "$message": "accounts" }, "isOptional": false }, { "name": "approval", "type": { "_tag": "Objects", "propertySignatures": [ { "name": "tool", "type": { "_tag": "String", "checks": [ { "_tag": "Filter", "representation": { "id": "effect/schema/isMinLength", "payload": { "minLength": 1 } } } ] }, "isOptional": false }, { "name": "input", "type": { "_tag": "Declaration", "representation": { "id": "effect/schema/Json", "payload": null } }, "isOptional": false } ] }, "isOptional": true }, { "name": "replay", "type": { "_tag": "Objects", "propertySignatures": [ { "name": "key", "type": { "_tag": "String", "checks": [ { "_tag": "Filter", "representation": { "id": "effect/schema/isMinLength", "payload": { "minLength": 1 } } } ] }, "isOptional": false }, { "name": "fingerprint", "type": { "_tag": "String", "checks": [ { "_tag": "Filter", "representation": { "id": "effect/schema/isMinLength", "payload": { "minLength": 1 } } } ] }, "isOptional": false } ] }, "isOptional": true }, { "name": "deadline", "type": { "_tag": "Number", "checks": [ { "_tag": "Filter", "representation": { "id": "effect/schema/isFinite", "payload": null } }, { "_tag": "Filter", "representation": { "id": "effect/schema/isGreaterThanOrEqualTo", "payload": { "minimum": 0 } } } ] }, "isOptional": true }, { "name": "workflowRun", "type": { "_tag": "String", "checks": [ { "_tag": "Filter", "representation": { "id": "effect/schema/isMinLength", "payload": { "minLength": 1 } } } ] }, "isOptional": true } ] }, "requirements": { "_tag": "Objects", "propertySignatures": [ { "name": "capabilities", "type": { "_tag": "Objects", "propertySignatures": [ { "name": "skills", "type": { "_tag": "Literal", "literal": true }, "isOptional": false }, { "name": "toolIndex", "type": { "_tag": "Literal", "literal": true }, "isOptional": true }, { "name": "skillSources", "type": { "_tag": "Literal", "literal": true }, "isOptional": true }, { "name": "scheduledTools", "type": { "_tag": "Literal", "literal": true }, "isOptional": true } ] }, "isOptional": true }, { "name": "database", "type": { "_tag": "Objects", "propertySignatures": [], "indexSignatures": [ { "parameter": { "_tag": "String", "checks": [ { "_tag": "Filter" } ] }, "type": { "_tag": "Objects", "propertySignatures": [ { "name": "fields", "type": { "_tag": "Objects", "propertySignatures": [], "indexSignatures": [ { "parameter": { "_tag": "String", "checks": [ { "_tag": "Filter" } ] }, "type": { "_tag": "Objects", "propertySignatures": [ { "name": "kind", "type": { "_tag": "Union", "types": [ { "_tag": "Literal", "literal": "string" }, { "_tag": "Literal", "literal": "number" }, { "_tag": "Literal", "literal": "boolean" }, { "_tag": "Literal", "literal": "id" }, { "_tag": "Literal", "literal": "userId" } ] }, "isOptional": false }, { "name": "optional", "type": { "_tag": "Union", "types": [ { "_tag": "Boolean" }, { "_tag": "Null" } ] }, "isOptional": true }, { "name": "default", "type": { "_tag": "Union", "types": [ { "_tag": "Union", "types": [ { "_tag": "String" }, { "_tag": "Number", "checks": [ { "_tag": "Filter", "representation": { "id": "effect/schema/isFinite", "payload": null } } ] }, { "_tag": "Boolean" } ] }, { "_tag": "Null" } ] }, "isOptional": true }, { "name": "references", "type": { "_tag": "Union", "types": [ { "_tag": "String", "checks": [ { "_tag": "Filter" } ] }, { "_tag": "Null" } ] }, "isOptional": true } ] } } ] }, "isOptional": false }, { "name": "indexes", "type": { "_tag": "Arrays", "rest": [ { "_tag": "Objects", "propertySignatures": [ { "name": "name", "type": { "_tag": "String", "checks": [ { "_tag": "Filter" } ] }, "isOptional": false }, { "name": "fields", "type": { "_tag": "Arrays", "elements": [ { "isOptional": false, "type": { "_tag": "String", "checks": [ { "_tag": "Filter" } ] } } ], "rest": [ { "_tag": "String", "checks": [ { "_tag": "Filter" } ] } ] }, "isOptional": false } ] } ] }, "isOptional": false } ] } } ] }, "isOptional": true }, { "name": "accounts", "type": { "_tag": "Objects", "propertySignatures": [], "indexSignatures": [ { "parameter": { "_tag": "String", "checks": [ { "_tag": "Filter", "representation": { "id": "effect/schema/isMinLength", "payload": { "minLength": 1 } } } ] }, "type": { "_tag": "Objects", "propertySignatures": [ { "name": "definition", "type": { "$shared": "2ca6a7f959f6fe64" }, "isOptional": false }, { "name": "cardinality", "type": { "_tag": "Union", "types": [ { "_tag": "Literal", "literal": "one" }, { "_tag": "Literal", "literal": "many" } ] }, "isOptional": false }, { "name": "health", "type": { "_tag": "Literal", "literal": true }, "isOptional": true } ] } } ] }, "isOptional": false } ] }, "accounts": { "_tag": "Objects", "propertySignatures": [], "indexSignatures": [ { "parameter": { "_tag": "String", "checks": [ { "_tag": "Filter", "representation": { "id": "effect/schema/isMinLength", "payload": { "minLength": 1 } } } ] }, "type": { "_tag": "Union", "types": [ { "$shared": "c1dffc047df7ae64" }, { "_tag": "Arrays", "rest": [ { "$shared": "c1dffc047df7ae64" } ] } ] } } ] } }, "unchanged": [ "request", "response", "catalog", "catalogSummary", "skills", "elicitationRequest", "elicitationReply", "workflowStep", "workflowStepReply", "workflowControl", "cacheCommand", "cacheReply", "accountCheck" ], "references": {}, "shared": { "2ca6a7f959f6fe64": { "_tag": "Objects", "propertySignatures": [ { "name": "name", "type": { "_tag": "String", "checks": [ { "_tag": "Filter", "representation": { "id": "effect/schema/isMinLength", "payload": { "minLength": 1 } } } ] }, "isOptional": false }, { "$shared": "74117655c6189d13" } ] }, "4002c2538105e965": { "_tag": "Objects", "propertySignatures": [], "indexSignatures": [ { "$shared": "8407459b2e5e0465" } ] }, "5900d62da30137de": { "name": "provider", "type": { "$shared": "2ca6a7f959f6fe64" }, "isOptional": false }, "74117655c6189d13": { "name": "auth", "type": { "$shared": "4002c2538105e965" }, "isOptional": false }, "8407459b2e5e0465": { "parameter": { "_tag": "String", "checks": [ { "_tag": "Filter", "representation": { "id": "effect/schema/isMinLength", "payload": { "minLength": 1 } } } ] }, "type": { "$shared": "c8f2fe1b04c21abf" } }, "8a5e0892daf2e8d4": { "_tag": "Objects", "propertySignatures": [ { "name": "type", "type": { "_tag": "Literal", "literal": "oauth2" }, "isOptional": false }, { "name": "scopeSeparator", "type": { "_tag": "String", "checks": [ { "_tag": "Filter", "representation": { "id": "effect/schema/isMinLength", "payload": { "minLength": 1 } } } ] }, "isOptional": true }, { "name": "tokenRequestFormat", "type": { "_tag": "Union", "types": [ { "_tag": "Literal", "literal": "form" }, { "_tag": "Literal", "literal": "json" } ] }, "isOptional": true }, { "name": "tokenResponse", "type": { "_tag": "Objects", "propertySignatures": [ { "name": "path", "type": { "_tag": "String", "checks": [ { "_tag": "Filter", "representation": { "id": "effect/schema/isPattern", "payload": { "source": "^[^.]+(\\.[^.]+)*$", "flags": "" } } } ] }, "isOptional": false } ] }, "isOptional": true }, { "name": "grant", "type": { "_tag": "Literal", "literal": "authorization_code" }, "isOptional": true }, { "name": "authorizationParams", "type": { "_tag": "Objects", "propertySignatures": [], "indexSignatures": [ { "parameter": { "_tag": "String" }, "type": { "_tag": "String" } } ], "checks": [ { "_tag": "Filter", "annotations": { "message": "Authorization parameters cannot replace protocol parameters such as state or scope." } } ] }, "isOptional": true }, { "name": "tokenEndpointAuthMethod", "type": { "_tag": "Union", "types": [ { "_tag": "Literal", "literal": "none" }, { "_tag": "Literal", "literal": "client_secret_post" }, { "_tag": "Literal", "literal": "client_secret_basic" }, { "_tag": "Literal", "literal": "client_secret_basic_raw" } ] }, "isOptional": true }, { "name": "resource", "type": { "_tag": "Union", "types": [ { "_tag": "String", "checks": [ { "_tag": "Filter" } ] }, { "_tag": "Null" } ] }, "isOptional": true }, { "name": "discover", "type": { "_tag": "String", "checks": [ { "_tag": "Filter" } ] }, "isOptional": false }, { "name": "authorizationServerMetadataUrl", "type": { "_tag": "String", "checks": [ { "_tag": "Filter" } ] }, "isOptional": true }, { "name": "authorizationUrl", "type": { "_tag": "Never" }, "isOptional": true }, { "name": "tokenUrl", "type": { "_tag": "Never" }, "isOptional": true }, { "name": "revocationUrl", "type": { "_tag": "Never" }, "isOptional": true }, { "name": "scopes", "type": { "_tag": "Arrays", "rest": [ { "_tag": "String" } ] }, "isOptional": true }, { "name": "response", "type": { "_tag": "Objects", "propertySignatures": [], "indexSignatures": [ { "parameter": { "_tag": "String" }, "type": { "_tag": "Declaration", "representation": { "id": "effect/schema/Json", "payload": null } } } ] }, "isOptional": false } ] }, "92fee29fe2d07739": { "_tag": "Objects", "propertySignatures": [ { "name": "type", "type": { "_tag": "Literal", "literal": "oauth2" }, "isOptional": false }, { "name": "grant", "type": { "_tag": "Literal", "literal": "client_credentials" }, "isOptional": false }, { "name": "discover", "type": { "_tag": "String", "checks": [ { "_tag": "Filter" } ] }, "isOptional": false }, { "name": "authorizationServerMetadataUrl", "type": { "_tag": "String", "checks": [ { "_tag": "Filter" } ] }, "isOptional": true }, { "name": "authorizationUrl", "type": { "_tag": "Never" }, "isOptional": true }, { "name": "tokenUrl", "type": { "_tag": "Never" }, "isOptional": true }, { "name": "revocationUrl", "type": { "_tag": "Never" }, "isOptional": true }, { "name": "scopes", "type": { "_tag": "Arrays", "rest": [ { "_tag": "String" } ] }, "isOptional": true }, { "name": "scopeSeparator", "type": { "_tag": "String", "checks": [ { "_tag": "Filter", "representation": { "id": "effect/schema/isMinLength", "payload": { "minLength": 1 } } } ] }, "isOptional": true }, { "name": "tokenRequestFormat", "type": { "_tag": "Union", "types": [ { "_tag": "Literal", "literal": "form" }, { "_tag": "Literal", "literal": "json" } ] }, "isOptional": true }, { "name": "tokenEndpointAuthMethod", "type": { "_tag": "Union", "types": [ { "_tag": "Literal", "literal": "client_secret_post" }, { "_tag": "Literal", "literal": "client_secret_basic" }, { "_tag": "Literal", "literal": "client_secret_basic_raw" } ] }, "isOptional": false }, { "name": "resource", "type": { "_tag": "Union", "types": [ { "_tag": "String", "checks": [ { "_tag": "Filter" } ] }, { "_tag": "Null" } ] }, "isOptional": true }, { "name": "response", "type": { "_tag": "Objects", "propertySignatures": [], "indexSignatures": [ { "parameter": { "_tag": "String" }, "type": { "_tag": "Declaration", "representation": { "id": "effect/schema/Json", "payload": null } } } ] }, "isOptional": false } ] }, "c1dffc047df7ae64": { "_tag": "Objects", "propertySignatures": [ { "name": "id", "type": { "_tag": "String", "checks": [ { "_tag": "Filter", "representation": { "id": "effect/schema/isStartingWith", "payload": { "startsWith": "acc_" } } }, { "_tag": "Filter", "representation": { "id": "effect/schema/isMinLength", "payload": { "minLength": 5 } } } ] }, "isOptional": false }, { "$shared": "5900d62da30137de" }, { "name": "method", "type": { "_tag": "String", "checks": [ { "_tag": "Filter", "representation": { "id": "effect/schema/isMinLength", "payload": { "minLength": 1 } } } ] }, "isOptional": false }, { "name": "generation", "type": { "_tag": "Number", "checks": [ { "_tag": "Filter", "representation": { "id": "effect/schema/isInt", "payload": null } } ] }, "isOptional": true }, { "name": "fields", "type": { "_tag": "Objects", "propertySignatures": [], "indexSignatures": [ { "parameter": { "_tag": "String" }, "type": { "_tag": "Declaration", "representation": { "id": "effect/schema/Json", "payload": null } } } ] }, "isOptional": false } ] }, "c52509604fc5f6d7": { "_tag": "Objects", "propertySignatures": [ { "name": "type", "type": { "_tag": "Literal", "literal": "oauth2" }, "isOptional": false }, { "name": "grant", "type": { "_tag": "Literal", "literal": "client_credentials" }, "isOptional": false }, { "name": "tokenUrl", "type": { "_tag": "String", "checks": [ { "_tag": "Filter" } ] }, "isOptional": false }, { "name": "revocationUrl", "type": { "_tag": "String", "checks": [ { "_tag": "Filter" } ] }, "isOptional": true }, { "name": "scopes", "type": { "_tag": "Arrays", "rest": [ { "_tag": "String" } ] }, "isOptional": false }, { "name": "scopeSeparator", "type": { "_tag": "String", "checks": [ { "_tag": "Filter", "representation": { "id": "effect/schema/isMinLength", "payload": { "minLength": 1 } } } ] }, "isOptional": true }, { "name": "tokenRequestFormat", "type": { "_tag": "Union", "types": [ { "_tag": "Literal", "literal": "form" }, { "_tag": "Literal", "literal": "json" } ] }, "isOptional": true }, { "name": "tokenEndpointAuthMethod", "type": { "_tag": "Union", "types": [ { "_tag": "Literal", "literal": "client_secret_post" }, { "_tag": "Literal", "literal": "client_secret_basic" }, { "_tag": "Literal", "literal": "client_secret_basic_raw" } ] }, "isOptional": false }, { "name": "resource", "type": { "_tag": "Union", "types": [ { "_tag": "String", "checks": [ { "_tag": "Filter" } ] }, { "_tag": "Null" } ] }, "isOptional": true }, { "name": "authorizationUrl", "type": { "_tag": "Never" }, "isOptional": true }, { "name": "discover", "type": { "_tag": "Never" }, "isOptional": true }, { "name": "authorizationServerMetadataUrl", "type": { "_tag": "Never" }, "isOptional": true }, { "name": "response", "type": { "_tag": "Objects", "propertySignatures": [], "indexSignatures": [ { "parameter": { "_tag": "String" }, "type": { "_tag": "Declaration", "representation": { "id": "effect/schema/Json", "payload": null } } } ] }, "isOptional": false } ] }, "c8f2fe1b04c21abf": { "_tag": "Union", "types": [ { "_tag": "Objects", "propertySignatures": [ { "name": "type", "type": { "_tag": "Literal", "literal": "secrets" }, "isOptional": false }, { "name": "label", "type": { "_tag": "String" }, "isOptional": false }, { "name": "fields", "type": { "_tag": "Objects", "propertySignatures": [], "indexSignatures": [ { "parameter": { "_tag": "String" }, "type": { "_tag": "Declaration", "representation": { "id": "effect/schema/Json", "payload": null } } } ] }, "isOptional": false } ] }, { "$shared": "8a5e0892daf2e8d4" }, { "$shared": "ccc7d793faf075e9" }, { "$shared": "92fee29fe2d07739" }, { "$shared": "c52509604fc5f6d7" } ] }, "ccc7d793faf075e9": { "_tag": "Objects", "propertySignatures": [ { "name": "type", "type": { "_tag": "Literal", "literal": "oauth2" }, "isOptional": false }, { "name": "scopeSeparator", "type": { "_tag": "String", "checks": [ { "_tag": "Filter", "representation": { "id": "effect/schema/isMinLength", "payload": { "minLength": 1 } } } ] }, "isOptional": true }, { "name": "tokenRequestFormat", "type": { "_tag": "Union", "types": [ { "_tag": "Literal", "literal": "form" }, { "_tag": "Literal", "literal": "json" } ] }, "isOptional": true }, { "name": "tokenResponse", "type": { "_tag": "Objects", "propertySignatures": [ { "name": "path", "type": { "_tag": "String", "checks": [ { "_tag": "Filter", "representation": { "id": "effect/schema/isPattern", "payload": { "source": "^[^.]+(\\.[^.]+)*$", "flags": "" } } } ] }, "isOptional": false } ] }, "isOptional": true }, { "name": "grant", "type": { "_tag": "Literal", "literal": "authorization_code" }, "isOptional": true }, { "name": "authorizationParams", "type": { "_tag": "Objects", "propertySignatures": [], "indexSignatures": [ { "parameter": { "_tag": "String" }, "type": { "_tag": "String" } } ], "checks": [ { "_tag": "Filter", "annotations": { "message": "Authorization parameters cannot replace protocol parameters such as state or scope." } } ] }, "isOptional": true }, { "name": "tokenEndpointAuthMethod", "type": { "_tag": "Union", "types": [ { "_tag": "Literal", "literal": "none" }, { "_tag": "Literal", "literal": "client_secret_post" }, { "_tag": "Literal", "literal": "client_secret_basic" }, { "_tag": "Literal", "literal": "client_secret_basic_raw" } ] }, "isOptional": true }, { "name": "resource", "type": { "_tag": "Union", "types": [ { "_tag": "String", "checks": [ { "_tag": "Filter" } ] }, { "_tag": "Null" } ] }, "isOptional": true }, { "name": "authorizationUrl", "type": { "_tag": "String", "checks": [ { "_tag": "Filter" } ] }, "isOptional": false }, { "name": "tokenUrl", "type": { "_tag": "String", "checks": [ { "_tag": "Filter" } ] }, "isOptional": false }, { "name": "revocationUrl", "type": { "_tag": "String", "checks": [ { "_tag": "Filter" } ] }, "isOptional": true }, { "name": "scopes", "type": { "_tag": "Arrays", "rest": [ { "_tag": "String" } ] }, "isOptional": false }, { "name": "issuer", "type": { "_tag": "String", "checks": [ { "_tag": "Filter" } ] }, "isOptional": true }, { "name": "discover", "type": { "_tag": "Never" }, "isOptional": true }, { "name": "authorizationServerMetadataUrl", "type": { "_tag": "Never" }, "isOptional": true }, { "name": "response", "type": { "_tag": "Objects", "propertySignatures": [], "indexSignatures": [ { "parameter": { "_tag": "String" }, "type": { "_tag": "Declaration", "representation": { "id": "effect/schema/Json", "payload": null } } } ] }, "isOptional": false } ] } } }