@typeship-ax/cli 0.9.1 → 0.20.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (70) hide show
  1. package/AGENTS.md +9 -4
  2. package/README.md +4 -4
  3. package/api.json +6257 -589
  4. package/api.md +475 -81
  5. package/dist/cli-agent.d.ts +5 -5
  6. package/dist/cli-agent.d.ts.map +1 -1
  7. package/dist/cli-agent.js +14 -10
  8. package/dist/cli.js +151 -75
  9. package/dist/core/http.d.ts +3 -2
  10. package/dist/core/http.d.ts.map +1 -1
  11. package/dist/core/http.js +18 -6
  12. package/dist/errors.d.ts +17 -10
  13. package/dist/errors.d.ts.map +1 -1
  14. package/dist/errors.js +24 -15
  15. package/dist/index.d.ts +7 -3
  16. package/dist/index.d.ts.map +1 -1
  17. package/dist/index.js +9 -5
  18. package/dist/ops.d.ts +4 -0
  19. package/dist/ops.d.ts.map +1 -1
  20. package/dist/ops.js +45 -31
  21. package/dist/polling-login.d.ts.map +1 -1
  22. package/dist/polling-login.js +11 -1
  23. package/dist/resources/account.d.ts +4 -4
  24. package/dist/resources/account.d.ts.map +1 -1
  25. package/dist/resources/account.js +10 -5
  26. package/dist/resources/api-keys.d.ts +40 -14
  27. package/dist/resources/api-keys.d.ts.map +1 -1
  28. package/dist/resources/api-keys.js +45 -13
  29. package/dist/resources/definition-revisions.d.ts +35 -18
  30. package/dist/resources/definition-revisions.d.ts.map +1 -1
  31. package/dist/resources/definition-revisions.js +43 -15
  32. package/dist/resources/definitions.d.ts +21 -6
  33. package/dist/resources/definitions.d.ts.map +1 -1
  34. package/dist/resources/definitions.js +16 -3
  35. package/dist/resources/generate.d.ts +44 -15
  36. package/dist/resources/generate.d.ts.map +1 -1
  37. package/dist/resources/generate.js +55 -13
  38. package/dist/resources/generations.d.ts +14 -6
  39. package/dist/resources/generations.d.ts.map +1 -1
  40. package/dist/resources/generations.js +26 -5
  41. package/dist/resources/projects.d.ts +106 -53
  42. package/dist/resources/projects.d.ts.map +1 -1
  43. package/dist/resources/projects.js +78 -31
  44. package/dist/resources/targets.d.ts +285 -22
  45. package/dist/resources/targets.d.ts.map +1 -1
  46. package/dist/resources/targets.js +408 -10
  47. package/dist/schemas.d.ts +1 -0
  48. package/dist/schemas.d.ts.map +1 -1
  49. package/dist/schemas.js +175 -102
  50. package/dist/types.d.ts +2162 -134
  51. package/dist/types.d.ts.map +1 -1
  52. package/dist/types.js +99 -2
  53. package/package.json +3 -3
  54. package/src/cli-agent.ts +17 -13
  55. package/src/cli.ts +138 -70
  56. package/src/core/http.ts +17 -6
  57. package/src/errors.ts +25 -15
  58. package/src/index.ts +9 -5
  59. package/src/ops.ts +49 -31
  60. package/src/polling-login.ts +10 -1
  61. package/src/resources/account.ts +11 -4
  62. package/src/resources/api-keys.ts +84 -13
  63. package/src/resources/definition-revisions.ts +74 -16
  64. package/src/resources/definitions.ts +28 -4
  65. package/src/resources/generate.ts +78 -13
  66. package/src/resources/generations.ts +31 -4
  67. package/src/resources/projects.ts +141 -39
  68. package/src/resources/targets.ts +756 -13
  69. package/src/schemas.ts +176 -103
  70. package/src/types.ts +2372 -189
package/dist/schemas.js CHANGED
@@ -5,63 +5,79 @@
5
5
  // deduplicated into DEFS and referenced by "req:Name", "res:Name", or
6
6
  // "gql-res:Name" keys. GraphQL response definitions permit partial selections.
7
7
  export const SCHEMAS = {
8
- "generate.run": { "req": { "$ref": "req:GenerateRequest" }, "res": { "$ref": "res:GenerationResult" } },
9
- "projects.list": { "res": { "$ref": "res:ProjectList" } },
10
- "projects.create": { "req": { "$ref": "req:CreateProjectRequest" }, "res": { "$ref": "res:Project" } },
11
- "projects.retrieve": { "res": { "$ref": "res:Project" } },
12
- "projects.delete": { "res": { "$ref": "res:DeletedProject" } },
13
- "projects.update": { "req": { "$ref": "req:UpdateProjectRequest" }, "res": { "$ref": "res:Project" } },
14
- "projects.retrieveDiagnostics": { "res": { "$ref": "res:DiagnosticReport" } },
15
- "projects.refreshDiagnostics": { "res": { "$ref": "res:DiagnosticReport" } },
16
- "projects.remediateDiagnostics": { "req": { "$ref": "req:DiagnosticRemediationRequest" }, "res": { "$ref": "res:DiagnosticRemediation" } },
17
- "projects.retrieveIntegrationHealth": { "res": { "$ref": "res:RepositoryIntegrationHealth" } },
18
- "projects.listGenerations": { "res": { "$ref": "res:GenerationList" } },
19
- "projects.generate": { "res": { "$ref": "res:GenerationBatch" } },
20
- "definitions.retrieve": { "res": { "$ref": "res:Definition" } },
21
- "definitions.update": { "req": { "$ref": "req:DefinitionUpdateRequest" }, "res": { "$ref": "res:Definition" } },
22
- "targets.list": { "res": { "$ref": "res:TargetList" } },
23
- "targets.create": { "req": { "$ref": "req:TargetFields" }, "res": { "$ref": "res:TargetResponse" } },
24
- "targets.retrieve": { "res": { "$ref": "res:TargetResponse" } },
25
- "targets.delete": { "res": { "$ref": "res:DeletedTarget" } },
26
- "targets.update": { "req": { "$ref": "req:TargetUpdateRequest" }, "res": { "$ref": "res:TargetResponse" } },
27
- "targets.listReleases": { "res": { "$ref": "res:TargetReleaseList" } },
28
- "targets.retrieveRelease": { "res": { "$ref": "res:TargetReleaseResponse" } },
29
- "generations.retrieve": { "res": { "$ref": "res:GenerationResponse" } },
30
- "generations.retrieveFile": { "res": { "type": "string" } },
31
- "definitionRevisions.list": { "res": { "$ref": "res:DefinitionRevisionList" } },
32
- "definitionRevisions.retrieve": { "res": { "$ref": "res:DefinitionRevisionResponse" } },
33
- "definitionRevisions.retrieveContent": { "res": { "type": "string" } },
34
- "definitionRevisions.retrieveDocumentContent": { "res": { "type": "string" } },
8
+ "generate.run": { "req": { "$ref": "req:GenerateRequest" }, "res": { "$ref": "res:GenerationResult" }, "params": { "header.Idempotency-Key": { "type": "string", "minLength": 1, "maxLength": 255, "pattern": "^[!-~]+$" } } },
9
+ "generate.downloadPackage": { "res": { "type": "string" }, "params": { "query.token": { "type": "string", "minLength": 43, "maxLength": 43, "pattern": "^[A-Za-z0-9_-]{43}$" } } },
10
+ "projects.list": { "res": { "$ref": "res:ProjectList" }, "params": { "query.limit": { "type": "integer", "minimum": 1, "maximum": 100 }, "query.cursor": { "type": "string", "minLength": 1, "maxLength": 2048, "pattern": "^[A-Za-z0-9_-]+$" } } },
11
+ "projects.create": { "req": { "$ref": "req:CreateProjectRequest" }, "res": { "$ref": "res:Project" }, "params": { "header.Idempotency-Key": { "type": "string", "minLength": 1, "maxLength": 255, "pattern": "^[!-~]+$" } } },
12
+ "projects.retrieve": { "res": { "$ref": "res:Project" }, "params": { "path.project_id": { "$ref": "req:ProjectId" } } },
13
+ "projects.delete": { "res": { "$ref": "res:DeletedProject" }, "params": { "path.project_id": { "$ref": "req:ProjectId" }, "header.If-Match": { "type": "string", "minLength": 1, "maxLength": 1024 } } },
14
+ "projects.update": { "req": { "$ref": "req:UpdateProjectRequest" }, "res": { "$ref": "res:Project" }, "params": { "path.project_id": { "$ref": "req:ProjectId" }, "header.If-Match": { "type": "string", "minLength": 1, "maxLength": 1024 } } },
15
+ "projects.retrieveDiagnostics": { "res": { "$ref": "res:DiagnosticReport" }, "params": { "path.project_id": { "$ref": "req:ProjectId" } } },
16
+ "projects.refreshDiagnostics": { "res": { "$ref": "res:DiagnosticReport" }, "params": { "path.project_id": { "$ref": "req:ProjectId" }, "header.Idempotency-Key": { "type": "string", "minLength": 1, "maxLength": 255, "pattern": "^[!-~]+$" } } },
17
+ "projects.remediateDiagnostics": { "req": { "$ref": "req:DiagnosticRemediationRequest" }, "res": { "$ref": "res:DiagnosticRemediation" }, "params": { "path.project_id": { "$ref": "req:ProjectId" }, "header.Idempotency-Key": { "type": "string", "minLength": 1, "maxLength": 255, "pattern": "^[!-~]+$" } } },
18
+ "projects.retrieveIntegrationHealth": { "res": { "$ref": "res:RepositoryIntegrationHealth" }, "params": { "path.project_id": { "$ref": "req:ProjectId" } } },
19
+ "projects.listGenerations": { "res": { "$ref": "res:GenerationList" }, "params": { "path.project_id": { "$ref": "req:ProjectId" }, "query.limit": { "type": "integer", "minimum": 1, "maximum": 100 }, "query.cursor": { "type": "string", "minLength": 1, "maxLength": 2048, "pattern": "^[A-Za-z0-9_-]+$" }, "query.target_id": { "$ref": "req:TargetId" } } },
20
+ "projects.generate": { "req": { "$ref": "req:GenerateProjectRequest" }, "res": { "$ref": "res:GenerationBatch" }, "params": { "path.project_id": { "$ref": "req:ProjectId" }, "header.Idempotency-Key": { "type": "string", "minLength": 1, "maxLength": 255, "pattern": "^[!-~]+$" } } },
21
+ "definitions.retrieve": { "res": { "$ref": "res:Definition" }, "params": { "path.definition_id": { "$ref": "req:DefinitionId" } } },
22
+ "definitions.update": { "req": { "$ref": "req:DefinitionUpdateRequest" }, "res": { "$ref": "res:Definition" }, "params": { "path.definition_id": { "$ref": "req:DefinitionId" }, "header.If-Match": { "type": "string", "minLength": 1, "maxLength": 1024 }, "header.Idempotency-Key": { "type": "string", "minLength": 1, "maxLength": 255, "pattern": "^[!-~]+$" } } },
23
+ "targets.list": { "res": { "$ref": "res:TargetList" }, "params": { "path.project_id": { "$ref": "req:ProjectId" }, "query.limit": { "type": "integer", "minimum": 1, "maximum": 100 }, "query.cursor": { "type": "string", "minLength": 1, "maxLength": 2048, "pattern": "^[A-Za-z0-9_-]+$" } } },
24
+ "targets.create": { "req": { "$ref": "req:TargetFields" }, "res": { "$ref": "res:TargetResponse" }, "params": { "path.project_id": { "$ref": "req:ProjectId" }, "header.Idempotency-Key": { "type": "string", "minLength": 1, "maxLength": 255, "pattern": "^[!-~]+$" } } },
25
+ "targets.retrieve": { "res": { "$ref": "res:TargetResponse" }, "params": { "path.target_id": { "$ref": "req:TargetId" } } },
26
+ "targets.delete": { "res": { "$ref": "res:DeletedTarget" }, "params": { "path.target_id": { "$ref": "req:TargetId" }, "header.If-Match": { "type": "string", "minLength": 1, "maxLength": 1024 } } },
27
+ "targets.update": { "req": { "$ref": "req:TargetUpdateRequest" }, "res": { "$ref": "res:TargetResponse" }, "params": { "path.target_id": { "$ref": "req:TargetId" }, "header.If-Match": { "type": "string", "minLength": 1, "maxLength": 1024 } } },
28
+ "targets.listReleases": { "res": { "$ref": "res:TargetReleaseList" }, "params": { "path.target_id": { "$ref": "req:TargetId" }, "query.limit": { "type": "integer", "minimum": 1, "maximum": 100 }, "query.cursor": { "type": "string", "minLength": 1, "maxLength": 2048, "pattern": "^[A-Za-z0-9_-]+$" } } },
29
+ "targets.retrieveDraft": { "res": { "$ref": "res:TargetDraftResponse" }, "params": { "path.target_id": { "$ref": "req:TargetId" } } },
30
+ "targets.updateDraft": { "req": { "$ref": "req:TargetDraftUpdate" }, "res": { "$ref": "res:TargetDraftResponse" }, "params": { "path.target_id": { "$ref": "req:TargetId" }, "header.If-Match": { "type": "string", "minLength": 1, "maxLength": 1024 } } },
31
+ "targets.adoptRelease": { "req": { "$ref": "req:TargetAdoption" }, "res": { "$ref": "res:TargetReleaseResponse" }, "params": { "path.target_id": { "$ref": "req:TargetId" }, "header.Idempotency-Key": { "type": "string", "minLength": 1, "maxLength": 255, "pattern": "^[!-~]+$" } } },
32
+ "targets.retrieveRelease": { "res": { "$ref": "res:TargetReleaseResponse" }, "params": { "path.target_release_id": { "$ref": "req:TargetReleaseId" } } },
33
+ "targets.republishRelease": { "res": { "$ref": "res:TargetReleaseResponse" }, "params": { "path.target_release_id": { "$ref": "req:TargetReleaseId" }, "header.Idempotency-Key": { "type": "string", "minLength": 1, "maxLength": 255, "pattern": "^[!-~]+$" } } },
34
+ "targets.listDraftFiles": { "res": { "$ref": "res:DraftFileList" }, "params": { "path.target_id": { "$ref": "req:TargetId" }, "query.filter": { "type": "string", "enum": ["conflicted", "customized", "history"] }, "query.limit": { "type": "integer", "minimum": 1, "maximum": 100 }, "query.cursor": { "type": "string", "minLength": 1, "maxLength": 2048, "pattern": "^[A-Za-z0-9_-]+$" } } },
35
+ "targets.retrieveDraftFileContent": { "res": { "$ref": "res:DraftFileContentResponse" }, "params": { "path.target_id": { "$ref": "req:TargetId" }, "query.path": { "type": "string", "minLength": 1 }, "query.side": { "$ref": "req:DraftFileSide" }, "query.cursor": { "type": "string", "minLength": 1, "maxLength": 2048, "pattern": "^[A-Za-z0-9_-]+$" } } },
36
+ "targets.resolveDraftConflicts": { "req": { "$ref": "req:ResolveDraftConflicts" }, "res": { "$ref": "res:DraftConflictResolutionResponse" }, "params": { "path.target_id": { "$ref": "req:TargetId" } } },
37
+ "targets.discardDraftCustomizations": { "req": { "$ref": "req:DiscardDraftCustomizations" }, "res": { "$ref": "res:DraftCustomizationDiscardResponse" }, "params": { "path.target_id": { "$ref": "req:TargetId" } } },
38
+ "targets.recoverDraftHistory": { "req": { "$ref": "req:RecoverDraftHistory" }, "res": { "$ref": "res:DraftHistoryRecoveryResponse" }, "params": { "path.target_id": { "$ref": "req:TargetId" } } },
39
+ "targets.retrieveDelivery": { "res": { "$ref": "res:DeliveryResponse" }, "params": { "path.delivery_id": { "$ref": "req:DeliveryId" } } },
40
+ "targets.retrievePublication": { "res": { "$ref": "res:PublicationResponse" }, "params": { "path.publication_id": { "$ref": "req:PublicationId" } } },
41
+ "generations.retrieve": { "res": { "$ref": "res:GenerationResponse" }, "params": { "path.generation_id": { "$ref": "req:GenerationId" } } },
42
+ "generations.retrieveFile": { "res": { "type": "string" }, "params": { "path.generation_id": { "$ref": "req:GenerationId" }, "query.path": { "type": "string" } } },
43
+ "definitionRevisions.list": { "res": { "$ref": "res:DefinitionRevisionList" }, "params": { "path.definition_id": { "$ref": "req:DefinitionId" }, "query.limit": { "type": "integer", "minimum": 1, "maximum": 100 }, "query.cursor": { "type": "string", "minLength": 1, "maxLength": 2048, "pattern": "^[A-Za-z0-9_-]+$" } } },
44
+ "definitionRevisions.retrieve": { "res": { "$ref": "res:DefinitionRevisionResponse" }, "params": { "path.definition_revision_id": { "$ref": "req:DefinitionRevisionId" } } },
45
+ "definitionRevisions.retrieveContent": { "res": { "type": "string" }, "params": { "path.definition_revision_id": { "$ref": "req:DefinitionRevisionId" } } },
46
+ "definitionRevisions.retrieveDocumentContent": { "res": { "type": "string" }, "params": { "path.definition_revision_id": { "$ref": "req:DefinitionRevisionId" }, "path.document_id": { "$ref": "req:DefinitionDocumentId" } } },
47
+ "definitionRevisions.retrieveDocument": { "res": { "$ref": "res:DefinitionDocumentResponse" }, "params": { "path.definition_document_id": { "$ref": "req:DefinitionDocumentId" } } },
35
48
  "account.retrieve": { "res": { "$ref": "res:Account" } },
36
- "apiKeys.list": { "res": { "$ref": "res:ApiKeyList" } },
37
- "apiKeys.revoke": { "res": { "$ref": "res:ApiKeyResponse" } },
49
+ "apiKeys.list": { "res": { "$ref": "res:ApiKeyList" }, "params": { "query.limit": { "type": "integer", "minimum": 1, "maximum": 100 }, "query.cursor": { "type": "string", "minLength": 1, "maxLength": 2048, "pattern": "^[A-Za-z0-9_-]+$" } } },
50
+ "apiKeys.retrieve": { "res": { "$ref": "res:ApiKeyResponse" }, "params": { "path.api_key_id": { "type": "string" } } },
51
+ "apiKeys.revoke": { "res": { "$ref": "res:ApiKeyResponse" }, "params": { "path.api_key_id": { "type": "string" }, "header.If-Match": { "type": "string", "minLength": 1, "maxLength": 1024 } } },
38
52
  };
39
53
  export const DEFS = {
40
- "req:GenerateRequest": { "type": "object", "additionalProperties": false, "properties": { "definition": { "$ref": "req:DefinitionInput" }, "target": { "type": "object", "additionalProperties": false, "properties": { "generator": { "$ref": "req:GeneratorKind" } }, "required": ["generator"] }, "package_name": { "type": "string" }, "module_path": { "type": "string" }, "config": { "$ref": "req:Config" } }, "required": ["definition", "target"] },
54
+ "req:GenerateRequest": { "type": "object", "additionalProperties": false, "properties": { "definition": { "$ref": "req:DefinitionInput" }, "target": { "type": "object", "additionalProperties": false, "properties": { "generator": { "$ref": "req:GeneratorKind" } }, "required": ["generator"] }, "package_name": { "type": "string" }, "module_path": { "type": "string" }, "go_sdk": { "$ref": "req:GoSdkDescriptor" }, "config": { "$ref": "req:Config" } }, "required": ["definition", "target"] },
41
55
  "req:DefinitionInput": { "anyOf": [{ "$ref": "req:UrlDefinitionInput" }, { "$ref": "req:InlineDefinitionInput" }] },
42
56
  "req:UrlDefinitionInput": { "type": "object", "additionalProperties": false, "properties": { "url": { "type": "string", "pattern": "^https?://" }, "headers": { "type": "object" } }, "required": ["url"] },
43
57
  "req:InlineDefinitionInput": { "type": "object", "additionalProperties": false, "properties": { "inline": { "type": "string" } }, "required": ["inline"] },
44
- "req:GeneratorKind": { "type": "string", "enum": ["typescript-sdk", "python-sdk", "go-sdk", "cli", "mcp"] },
58
+ "req:GeneratorKind": { "type": "string", "enum": ["typescript-sdk", "python-sdk", "go-sdk", "cli", "go-cli", "mcp"] },
59
+ "req:GoSdkDescriptor": { "type": "object", "additionalProperties": false, "properties": { "module_path": { "type": "string" }, "version": { "type": "string" }, "definition_digest": { "type": "string", "pattern": "^[a-f0-9]{64}$" }, "edition": { "type": "string" }, "package_name": { "type": "string" } }, "required": ["module_path", "version", "definition_digest", "edition"] },
45
60
  "req:Config": { "type": "object", "additionalProperties": false, "properties": { "globals": { "type": "array", "maxItems": 20, "items": { "type": "string" } }, "retries": { "$ref": "req:RetryTuning" }, "pagination": { "type": "object" }, "graphql": { "$ref": "req:GraphqlSettings" }, "auth": { "$ref": "req:AuthenticationConfig" }, "cli": { "$ref": "req:CliBehavior" }, "mcp": { "$ref": "req:McpBehavior" }, "readme": { "$ref": "req:ReadmeBehavior" }, "package": { "$ref": "req:PackageBehavior" }, "docs_url": { "type": ["string", "null"] }, "docs_index_url": { "type": ["string", "null"] } } },
46
61
  "req:RetryTuning": { "type": "object", "additionalProperties": false, "properties": { "max_retries": { "type": "integer", "minimum": 0, "maximum": 10 }, "statuses": { "type": "array", "maxItems": 20, "items": { "type": "integer" } }, "initial_delay_ms": { "type": "integer", "minimum": 1 }, "max_delay_ms": { "type": "integer", "minimum": 1 }, "retry_non_idempotent": { "type": "boolean" }, "disabled": { "type": "boolean" }, "operations": { "type": "object" } } },
47
62
  "req:GraphqlSettings": { "type": "object", "additionalProperties": false, "properties": { "endpoint": { "type": "string" }, "environments": { "type": "array", "maxItems": 10, "items": { "type": "object", "additionalProperties": false, "properties": { "name": { "type": "string" }, "url": { "type": "string" } }, "required": ["name", "url"] } }, "auth": { "type": "string", "enum": ["bearer", "basic", "api_key", "none"] }, "api_key_header": { "type": "string" }, "title": { "type": "string", "maxLength": 80 }, "scalars": { "type": "object" } } },
48
63
  "req:AuthenticationConfig": { "type": "object", "additionalProperties": false, "properties": { "oauth_server": { "anyOf": [{ "$ref": "req:OAuthServer" }, { "type": "null" }] }, "oauth_applications": { "type": ["object", "null"] }, "oauth_application": { "type": ["string", "null"], "maxLength": 64, "pattern": "^[a-z][a-z0-9_-]{0,63}$" }, "identity_verification": { "anyOf": [{ "$ref": "req:IdentityVerification" }, { "type": "null" }] }, "approval_url": { "type": ["string", "null"] }, "environments": { "type": ["object", "null"] } } },
49
64
  "req:OAuthServer": { "type": "object", "additionalProperties": false, "properties": { "issuer": { "type": ["string", "null"] }, "discovery_url": { "type": ["string", "null"] }, "authorization_url": { "type": ["string", "null"] }, "token_url": { "type": ["string", "null"] }, "device_authorization_url": { "type": ["string", "null"] }, "scopes": { "type": ["array", "null"], "maxItems": 20, "items": { "type": "string", "minLength": 1, "maxLength": 500, "pattern": "^\\S+$" } }, "audience": { "type": ["string", "null"] }, "resource": { "type": ["string", "null"] } } },
50
- "req:IdentityVerification": { "type": "object", "additionalProperties": false, "properties": { "operation": { "type": "string", "maxLength": 2000, "pattern": "^[\\w$]+\\.[\\w$]+$" }, "subject_field": { "type": "string", "maxLength": 512 }, "account_field": { "type": "string", "maxLength": 512 }, "organization_field": { "type": "string", "maxLength": 512 } } },
51
- "req:CliBehavior": { "type": "object", "additionalProperties": false, "properties": { "command_name": { "type": ["string", "null"] }, "update_notice": { "type": "boolean" }, "support_url": { "type": ["string", "null"] }, "mcp_url": { "type": ["string", "null"] }, "skills_repo": { "type": ["string", "null"] } } },
65
+ "req:IdentityVerification": { "allOf": [{ "type": "object", "additionalProperties": false, "properties": { "operation": { "type": ["string", "null"], "maxLength": 2000, "pattern": "^[\\w$]+\\.[\\w$]+$" }, "subject_field": { "type": ["string", "null"], "maxLength": 512, "pattern": "^/(?:[^~\\x00-\\x1f\\x7f]|~[01])*$" }, "account_field": { "type": ["string", "null"], "maxLength": 512, "pattern": "^/(?:[^~\\x00-\\x1f\\x7f]|~[01])*$" }, "organization_field": { "type": ["string", "null"], "maxLength": 512, "pattern": "^/(?:[^~\\x00-\\x1f\\x7f]|~[01])*$" } } }, { "anyOf": [{ "properties": { "subject_field": { "type": "string" } }, "required": ["subject_field"], "type": "object" }, { "properties": { "account_field": { "type": "string" } }, "required": ["account_field"], "type": "object" }, { "properties": { "organization_field": { "type": "string" } }, "required": ["organization_field"], "type": "object" }] }] },
66
+ "req:CliBehavior": { "type": "object", "additionalProperties": false, "properties": { "command_name": { "type": ["string", "null"] }, "update_notice": { "type": "boolean" }, "changelog_url": { "type": ["string", "null"] }, "support_url": { "type": ["string", "null"] }, "mcp_url": { "type": ["string", "null"] }, "skills_repo": { "type": ["string", "null"] } } },
52
67
  "req:McpBehavior": { "type": "object", "additionalProperties": false, "properties": { "registry_name": { "type": ["string", "null"] }, "access": { "type": "object", "additionalProperties": false, "properties": { "issuer": { "type": "string" }, "resource": { "type": "string" }, "jwks_url": { "type": "string" }, "scopes": { "type": "array", "maxItems": 20, "items": { "type": "string" } } }, "required": ["issuer", "resource"] }, "tool_mode": { "type": "string", "enum": ["auto", "operations", "meta"] }, "instructions": { "type": ["string", "null"], "maxLength": 2000 }, "tool_descriptions": { "type": "object" }, "reference_resolvers": { "type": "object" } } },
53
68
  "req:ReadmeBehavior": { "type": "object", "additionalProperties": false, "properties": { "quickstart_operation": { "type": ["string", "null"], "maxLength": 500 } } },
54
69
  "req:PackageBehavior": { "type": "object", "additionalProperties": false, "properties": { "homepage": { "type": ["string", "null"] }, "license": { "type": ["string", "null"], "maxLength": 200 }, "license_text": { "type": ["string", "null"], "maxLength": 100000 }, "copyright": { "type": ["string", "null"], "maxLength": 200 }, "go_package_name": { "type": ["string", "null"] } } },
55
- "res:GenerationResult": { "type": "object", "properties": { "files": { "type": "array", "items": { "$ref": "res:GeneratedFile" } }, "warnings": { "type": "array", "items": { "type": "string" } }, "meta": { "$ref": "res:GenerationMeta" }, "limits": { "$ref": "res:GenerationLimits" }, "claim": { "anyOf": [{ "type": "null" }, { "type": "object", "properties": { "url": { "type": "string" }, "expires_at": { "type": "string" } }, "required": ["url", "expires_at"] }] }, "request_id": { "$ref": "res:RequestId" } }, "required": ["files", "warnings", "meta", "request_id"] },
56
- "res:GeneratedFile": { "type": "object", "properties": { "path": { "type": "string" }, "content": { "type": "string" } }, "required": ["path", "content"] },
57
- "res:GenerationMeta": { "type": "object", "properties": { "title": { "type": "string" }, "api_version": { "type": "string" }, "version": { "type": "string" }, "spec_format": { "type": "string" }, "oas_version": { "type": "string" }, "converted": { "type": "boolean" }, "artifact_name": { "type": "string" }, "client_name": { "type": "string" }, "generators": { "type": "array", "items": { "$ref": "res:GeneratorKind" } }, "resource_count": { "type": "integer" }, "operation_count": { "type": "integer" }, "schema_count": { "type": "integer" }, "paginated_operation_count": { "type": "integer" }, "omitted_operation_count": { "type": "integer" }, "omitted_operations": { "type": "array", "items": { "type": "string" } }, "pr_url": { "type": ["string", "null"] }, "pr_number": { "type": ["integer", "null"] }, "pr_status": { "type": "string" }, "pr_error": { "type": "string" }, "changelog": { "type": "string" }, "breaking_count": { "type": "integer" }, "baseline": { "type": "string" }, "api_compatibility": { "type": "string" }, "package_compatibility": { "type": "string" }, "version_correct": { "type": ["boolean", "null"] }, "release_readiness": { "type": "string" }, "release_readiness_note": { "type": "string" }, "previous_version": { "type": "string" }, "file_count": { "type": "integer" }, "total_lines": { "type": "integer" }, "diagnostics": { "type": "object", "additionalProperties": false, "properties": { "format": { "type": "string" }, "summary": { "$ref": "res:DiagnosticSummary" } }, "required": ["format", "summary"] } }, "required": ["title", "api_version", "version", "oas_version", "artifact_name", "client_name", "generators"] },
70
+ "res:GenerationResult": { "type": "object", "properties": { "files": { "type": "array", "items": { "$ref": "res:GeneratedFile" } }, "download": { "$ref": "res:GenerationDownload" }, "warnings": { "type": "array", "items": { "type": "string" } }, "meta": { "$ref": "res:GenerationMeta" }, "limits": { "$ref": "res:GenerationLimits" }, "claim": { "anyOf": [{ "type": "null" }, { "type": "object", "properties": { "url": { "type": "string" }, "expires_at": { "type": "string" } }, "required": ["url", "expires_at"] }] }, "request_id": { "$ref": "res:RequestId" } }, "required": ["files", "warnings", "meta", "request_id"] },
71
+ "res:GeneratedFile": { "type": "object", "properties": { "path": { "type": "string" }, "content": { "type": "string" }, "mode": { "type": "string" } }, "required": ["path", "content"] },
72
+ "res:GenerationDownload": { "type": "object", "properties": { "url": { "type": "string" }, "expires_at": { "type": "string" }, "sha256": { "type": "string", "pattern": "^[a-f0-9]{64}$" }, "size_bytes": { "type": "integer", "minimum": 0 }, "file_count": { "type": "integer", "minimum": 0 } }, "required": ["url", "expires_at", "sha256", "size_bytes", "file_count"] },
73
+ "res:GenerationMeta": { "type": "object", "properties": { "title": { "type": "string" }, "api_version": { "type": "string" }, "version": { "type": "string" }, "spec_format": { "type": "string" }, "oas_version": { "type": "string" }, "converted": { "type": "boolean" }, "artifact_name": { "type": "string" }, "client_name": { "type": "string" }, "generators": { "type": "array", "items": { "$ref": "res:GeneratorKind" } }, "go_sdk": { "type": "object", "properties": { "module_path": { "type": "string" }, "version": { "type": "string" }, "package_name": { "type": "string" } }, "required": ["module_path", "version"] }, "resource_count": { "type": "integer" }, "operation_count": { "type": "integer" }, "schema_count": { "type": "integer" }, "paginated_operation_count": { "type": "integer" }, "omitted_operation_count": { "type": "integer" }, "omitted_operations": { "type": "array", "items": { "type": "string" } }, "pr_url": { "type": ["string", "null"] }, "pr_number": { "type": ["integer", "null"] }, "pr_status": { "type": "string" }, "changelog": { "type": "string" }, "breaking_count": { "type": "integer" }, "baseline": { "type": "string" }, "api_compatibility": { "type": "string" }, "package_compatibility": { "type": "string" }, "version_correct": { "type": ["boolean", "null"] }, "release_readiness": { "type": "string" }, "release_readiness_note": { "type": "string" }, "previous_version": { "type": "string" }, "customer_change_count": { "type": "integer", "minimum": 0 }, "integration_state": { "type": "string" }, "published_compatibility": { "type": "string" }, "published_version": { "type": "string" }, "file_count": { "type": "integer" }, "total_lines": { "type": "integer" }, "diagnostics": { "type": "object", "properties": { "format": { "type": "string" }, "summary": { "$ref": "res:DiagnosticSummary" } }, "required": ["format", "summary"] } }, "required": ["title", "api_version", "version", "oas_version", "artifact_name", "client_name", "generators"] },
58
74
  "res:GeneratorKind": { "type": "string" },
59
- "res:DiagnosticSummary": { "type": "object", "additionalProperties": false, "properties": { "diagnostics": { "type": "integer", "minimum": 0 }, "occurrences": { "type": "integer", "minimum": 0 }, "errors": { "type": "integer", "minimum": 0 }, "warnings": { "type": "integer", "minimum": 0 }, "suggestions": { "type": "integer", "minimum": 0 }, "auto_fixable": { "type": "integer", "minimum": 0 } }, "required": ["diagnostics", "occurrences", "errors", "warnings", "suggestions", "auto_fixable"] },
75
+ "res:DiagnosticSummary": { "type": "object", "properties": { "diagnostics": { "type": "integer", "minimum": 0 }, "occurrences": { "type": "integer", "minimum": 0 }, "errors": { "type": "integer", "minimum": 0 }, "warnings": { "type": "integer", "minimum": 0 }, "suggestions": { "type": "integer", "minimum": 0 }, "auto_fixable": { "type": "integer", "minimum": 0 } }, "required": ["diagnostics", "occurrences", "errors", "warnings", "suggestions", "auto_fixable"] },
60
76
  "res:GenerationLimits": { "type": "object", "properties": { "max_operations": { "type": "integer" }, "generated_operations": { "type": "integer" }, "omitted_operations": { "type": "integer" }, "total_operations": { "type": "integer" }, "reason": { "type": "string" }, "signup_url": { "type": "string" }, "upgrade_url": { "type": "string" } }, "required": ["max_operations", "generated_operations", "omitted_operations", "total_operations", "reason", "upgrade_url"] },
61
77
  "res:RequestId": { "type": "string", "pattern": "^req_[a-z0-9]{16}$" },
62
- "res:ProjectList": { "type": "object", "additionalProperties": false, "properties": { "object": { "$ref": "res:ListObject" }, "data": { "type": "array", "items": { "$ref": "res:ProjectSummary" } }, "has_more": { "type": "boolean" }, "next_cursor": { "type": ["string", "null"] }, "request_id": { "$ref": "res:RequestId" } }, "required": ["object", "data", "has_more", "next_cursor", "request_id"] },
78
+ "res:ProjectList": { "type": "object", "properties": { "object": { "$ref": "res:ListObject" }, "data": { "type": "array", "items": { "$ref": "res:ProjectSummary" } }, "has_more": { "type": "boolean" }, "next_cursor": { "type": ["string", "null"] }, "request_id": { "$ref": "res:RequestId" } }, "required": ["object", "data", "has_more", "next_cursor", "request_id"] },
63
79
  "res:ListObject": { "type": "string" },
64
- "res:ProjectSummary": { "type": "object", "additionalProperties": false, "properties": { "id": { "$ref": "res:ProjectId" }, "object": { "type": "string" }, "name": { "type": "string", "maxLength": 80 }, "definition_id": { "$ref": "res:DefinitionId" }, "auto_generate": { "type": "boolean" }, "created_at": { "type": "string" }, "updated_at": { "type": "string" } }, "required": ["id", "object", "name", "definition_id", "auto_generate", "created_at", "updated_at"] },
80
+ "res:ProjectSummary": { "type": "object", "properties": { "id": { "$ref": "res:ProjectId" }, "object": { "type": "string" }, "name": { "type": "string", "maxLength": 80 }, "definition_id": { "$ref": "res:DefinitionId" }, "auto_generate": { "type": "boolean" }, "created_at": { "type": "string" }, "updated_at": { "type": "string" } }, "required": ["id", "object", "name", "definition_id", "auto_generate", "created_at", "updated_at"] },
65
81
  "res:ProjectId": { "type": "string", "pattern": "^prj_[a-z0-9]{16}$" },
66
82
  "res:DefinitionId": { "type": "string", "pattern": "^def_[a-z0-9]{16}$" },
67
83
  "req:CreateProjectRequest": { "type": "object", "additionalProperties": false, "properties": { "name": { "type": "string", "minLength": 1, "maxLength": 80 }, "definition": { "$ref": "req:DefinitionFields" }, "targets": { "type": "array", "minItems": 1, "items": { "$ref": "req:InitialTargetFields" } }, "auto_generate": { "type": "boolean" }, "relay_enabled": { "type": "boolean" }, "config": { "anyOf": [{ "$ref": "req:ProjectConfig" }, { "type": "null" }] } }, "required": ["name", "definition", "targets"] },
@@ -73,89 +89,146 @@ export const DEFS = {
73
89
  "req:DefinitionPatch": { "type": "object", "additionalProperties": false, "properties": { "op": { "type": "string", "enum": ["set", "append", "remove", "rename"] }, "path": { "type": "string" }, "value": {}, "to": { "type": ["string", "null"] }, "reason": { "type": ["string", "null"] } }, "required": ["op", "path"] },
74
90
  "req:DiagnosticPolicy": { "type": "object", "additionalProperties": false, "properties": { "fail_on": { "type": "string", "enum": ["never", "error", "warning"] }, "only_new": { "type": "boolean" }, "suppressions": { "type": "array", "maxItems": 100, "items": { "$ref": "req:DiagnosticSuppression" } } }, "required": ["fail_on", "only_new", "suppressions"] },
75
91
  "req:DiagnosticSuppression": { "type": "object", "additionalProperties": false, "properties": { "rule_id": { "type": "string", "maxLength": 160 }, "path": { "type": "string", "maxLength": 4096 }, "reason": { "type": "string", "minLength": 1, "maxLength": 500 } }, "required": ["rule_id", "reason"] },
76
- "req:InitialTargetFields": { "type": "object", "additionalProperties": false, "properties": { "name": { "type": "string", "minLength": 1, "maxLength": 80 }, "generator": { "$ref": "req:GeneratorKind" }, "state": { "type": "string", "enum": ["active", "disabled"] }, "edition": { "type": "string" }, "release_channel": { "type": "string", "enum": ["stable", "prerelease"] }, "proposed_version": { "type": ["string", "null"] }, "config": { "anyOf": [{ "$ref": "req:TargetConfig" }, { "type": "null" }] }, "deliveries": { "type": "array", "maxItems": 2, "items": { "$ref": "req:DeliveryInput" } } }, "required": ["name", "generator"] },
92
+ "req:InitialTargetFields": { "type": "object", "additionalProperties": false, "properties": { "name": { "type": "string", "minLength": 1, "maxLength": 80 }, "generator": { "$ref": "req:GeneratorKind" }, "state": { "type": "string", "enum": ["active", "disabled"] }, "edition": { "type": "string" }, "release_channel": { "type": "string", "enum": ["stable", "prerelease"] }, "proposed_version": { "type": ["string", "null"] }, "checks": { "$ref": "req:TargetChecks" }, "config": { "anyOf": [{ "$ref": "req:TargetConfig" }, { "type": "null" }] }, "deliveries": { "type": "array", "maxItems": 2, "items": { "$ref": "req:DeliveryInput" } } }, "required": ["name", "generator"] },
93
+ "req:TargetChecks": { "type": "object", "additionalProperties": false, "properties": { "generated": { "type": "array", "items": { "type": "string", "enum": ["build", "package", "public_entrypoint"] } }, "repository_required": { "type": "array", "maxItems": 50, "items": { "type": "string", "minLength": 1, "maxLength": 120 } }, "customer": { "type": "array", "maxItems": 20, "items": { "type": "object", "additionalProperties": false, "properties": { "name": { "type": "string", "minLength": 1, "maxLength": 120 }, "command": { "type": "string", "minLength": 1, "maxLength": 2000 } }, "required": ["name", "command"] } } } },
77
94
  "req:TargetConfig": { "type": "object", "additionalProperties": false, "properties": { "globals": { "type": "array", "maxItems": 20, "items": { "type": "string" } }, "retries": { "$ref": "req:RetryTuning" }, "pagination": { "type": "object" }, "auth": { "$ref": "req:TargetAuthenticationConfig" }, "cli": { "$ref": "req:CliBehavior" }, "mcp": { "$ref": "req:McpBehavior" }, "readme": { "$ref": "req:ReadmeBehavior" }, "package": { "$ref": "req:PackageBehavior" }, "docs_url": { "type": ["string", "null"] }, "docs_index_url": { "type": ["string", "null"] } } },
78
95
  "req:TargetAuthenticationConfig": { "type": "object", "additionalProperties": false, "properties": { "oauth_application": { "type": ["string", "null"], "maxLength": 64, "pattern": "^[a-z][a-z0-9_-]{0,63}$" }, "environments": { "type": ["object", "null"] } } },
79
96
  "req:DeliveryInput": { "anyOf": [{ "$ref": "req:RepositoryDeliveryInput" }, { "$ref": "req:HostedMcpDeliveryInput" }] },
80
- "req:RepositoryDeliveryInput": { "type": "object", "additionalProperties": false, "properties": { "kind": { "type": "string", "const": "repository" }, "repository": { "$ref": "req:RepositoryReference" }, "directory": { "type": ["string", "null"] }, "package_name": { "type": ["string", "null"] }, "module_path": { "type": ["string", "null"] } }, "required": ["kind", "repository"] },
97
+ "req:RepositoryDeliveryInput": { "type": "object", "additionalProperties": false, "properties": { "kind": { "type": "string", "const": "repository" }, "repository": { "$ref": "req:RepositoryReference" }, "directory": { "type": ["string", "null"] }, "package_name": { "type": ["string", "null"] }, "module_path": { "type": ["string", "null"] }, "publish_on_merge": { "type": "boolean" } }, "required": ["kind", "repository"] },
81
98
  "req:HostedMcpDeliveryInput": { "type": "object", "additionalProperties": false, "properties": { "kind": { "type": "string", "const": "hosted_mcp" } }, "required": ["kind"] },
82
99
  "req:ProjectConfig": { "type": "object", "additionalProperties": false, "properties": { "globals": { "type": "array", "maxItems": 20, "items": { "type": "string" } }, "retries": { "$ref": "req:RetryTuning" }, "pagination": { "type": "object" }, "auth": { "$ref": "req:AuthenticationConfig" }, "cli": { "$ref": "req:CliBehavior" }, "mcp": { "$ref": "req:McpBehavior" }, "readme": { "$ref": "req:ReadmeBehavior" }, "package": { "$ref": "req:PackageBehavior" }, "docs_url": { "type": ["string", "null"] }, "docs_index_url": { "type": ["string", "null"] } } },
83
- "res:Project": { "type": "object", "additionalProperties": false, "properties": { "id": { "$ref": "res:ProjectId" }, "object": { "type": "string" }, "name": { "type": "string", "maxLength": 80 }, "definition_id": { "$ref": "res:DefinitionId" }, "auto_generate": { "type": "boolean" }, "relay_enabled": { "type": "boolean" }, "config": { "anyOf": [{ "$ref": "res:ProjectConfig" }, { "type": "null" }] }, "created_at": { "type": "string" }, "updated_at": { "type": "string" }, "request_id": { "$ref": "res:RequestId" } }, "required": ["id", "object", "name", "definition_id", "auto_generate", "relay_enabled", "config", "created_at", "updated_at", "request_id"] },
84
- "res:ProjectConfig": { "type": "object", "additionalProperties": false, "properties": { "globals": { "type": "array", "maxItems": 20, "items": { "type": "string" } }, "retries": { "$ref": "res:RetryTuning" }, "pagination": { "type": "object" }, "auth": { "$ref": "res:AuthenticationConfig" }, "cli": { "$ref": "res:CliBehavior" }, "mcp": { "$ref": "res:McpBehavior" }, "readme": { "$ref": "res:ReadmeBehavior" }, "package": { "$ref": "res:PackageBehavior" }, "docs_url": { "type": ["string", "null"] }, "docs_index_url": { "type": ["string", "null"] } } },
85
- "res:RetryTuning": { "type": "object", "additionalProperties": false, "properties": { "max_retries": { "type": "integer", "minimum": 0, "maximum": 10 }, "statuses": { "type": "array", "maxItems": 20, "items": { "type": "integer" } }, "initial_delay_ms": { "type": "integer", "minimum": 1 }, "max_delay_ms": { "type": "integer", "minimum": 1 }, "retry_non_idempotent": { "type": "boolean" }, "disabled": { "type": "boolean" }, "operations": { "type": "object" } } },
86
- "res:AuthenticationConfig": { "type": "object", "additionalProperties": false, "properties": { "oauth_server": { "anyOf": [{ "$ref": "res:OAuthServer" }, { "type": "null" }] }, "oauth_applications": { "type": ["object", "null"] }, "oauth_application": { "type": ["string", "null"], "maxLength": 64, "pattern": "^[a-z][a-z0-9_-]{0,63}$" }, "identity_verification": { "anyOf": [{ "$ref": "res:IdentityVerification" }, { "type": "null" }] }, "approval_url": { "type": ["string", "null"] }, "environments": { "type": ["object", "null"] } } },
87
- "res:OAuthServer": { "type": "object", "additionalProperties": false, "properties": { "issuer": { "type": ["string", "null"] }, "discovery_url": { "type": ["string", "null"] }, "authorization_url": { "type": ["string", "null"] }, "token_url": { "type": ["string", "null"] }, "device_authorization_url": { "type": ["string", "null"] }, "scopes": { "type": ["array", "null"], "maxItems": 20, "items": { "type": "string", "minLength": 1, "maxLength": 500, "pattern": "^\\S+$" } }, "audience": { "type": ["string", "null"] }, "resource": { "type": ["string", "null"] } } },
88
- "res:IdentityVerification": { "type": "object", "additionalProperties": false, "properties": { "operation": { "type": "string", "maxLength": 2000, "pattern": "^[\\w$]+\\.[\\w$]+$" }, "subject_field": { "type": "string", "maxLength": 512 }, "account_field": { "type": "string", "maxLength": 512 }, "organization_field": { "type": "string", "maxLength": 512 } } },
89
- "res:CliBehavior": { "type": "object", "additionalProperties": false, "properties": { "command_name": { "type": ["string", "null"] }, "update_notice": { "type": "boolean" }, "support_url": { "type": ["string", "null"] }, "mcp_url": { "type": ["string", "null"] }, "skills_repo": { "type": ["string", "null"] } } },
90
- "res:McpBehavior": { "type": "object", "additionalProperties": false, "properties": { "registry_name": { "type": ["string", "null"] }, "access": { "type": "object", "additionalProperties": false, "properties": { "issuer": { "type": "string" }, "resource": { "type": "string" }, "jwks_url": { "type": "string" }, "scopes": { "type": "array", "maxItems": 20, "items": { "type": "string" } } }, "required": ["issuer", "resource"] }, "tool_mode": { "type": "string" }, "instructions": { "type": ["string", "null"], "maxLength": 2000 }, "tool_descriptions": { "type": "object" }, "reference_resolvers": { "type": "object" } } },
91
- "res:ReadmeBehavior": { "type": "object", "additionalProperties": false, "properties": { "quickstart_operation": { "type": ["string", "null"], "maxLength": 500 } } },
92
- "res:PackageBehavior": { "type": "object", "additionalProperties": false, "properties": { "homepage": { "type": ["string", "null"] }, "license": { "type": ["string", "null"], "maxLength": 200 }, "license_text": { "type": ["string", "null"], "maxLength": 100000 }, "copyright": { "type": ["string", "null"], "maxLength": 200 }, "go_package_name": { "type": ["string", "null"] } } },
93
- "res:DeletedProject": { "type": "object", "additionalProperties": false, "properties": { "id": { "$ref": "res:ProjectId" }, "object": { "type": "string" }, "deleted": { "type": "boolean" }, "request_id": { "$ref": "res:RequestId" } }, "required": ["id", "object", "deleted", "request_id"] },
100
+ "res:Project": { "type": "object", "properties": { "id": { "$ref": "res:ProjectId" }, "object": { "type": "string" }, "name": { "type": "string", "maxLength": 80 }, "definition_id": { "$ref": "res:DefinitionId" }, "auto_generate": { "type": "boolean" }, "relay_enabled": { "type": "boolean" }, "config": { "anyOf": [{ "$ref": "res:ProjectConfigResponse" }, { "type": "null" }] }, "created_at": { "type": "string" }, "updated_at": { "type": "string" }, "request_id": { "$ref": "res:RequestId" } }, "required": ["id", "object", "name", "definition_id", "auto_generate", "relay_enabled", "config", "created_at", "updated_at", "request_id"] },
101
+ "res:ProjectConfigResponse": { "type": "object", "properties": { "globals": { "type": "array", "maxItems": 20, "items": { "type": "string" } }, "retries": { "$ref": "res:RetryTuningResponse" }, "pagination": { "type": "object" }, "auth": { "$ref": "res:AuthenticationConfigResponse" }, "cli": { "$ref": "res:CliBehaviorResponse" }, "mcp": { "$ref": "res:McpBehaviorResponse" }, "readme": { "$ref": "res:ReadmeBehaviorResponse" }, "package": { "$ref": "res:PackageBehaviorResponse" }, "docs_url": { "type": ["string", "null"] }, "docs_index_url": { "type": ["string", "null"] } } },
102
+ "res:RetryTuningResponse": { "type": "object", "properties": { "max_retries": { "type": "integer", "minimum": 0, "maximum": 10 }, "statuses": { "type": "array", "maxItems": 20, "items": { "type": "integer" } }, "initial_delay_ms": { "type": "integer", "minimum": 1 }, "max_delay_ms": { "type": "integer", "minimum": 1 }, "retry_non_idempotent": { "type": "boolean" }, "disabled": { "type": "boolean" }, "operations": { "type": "object" } } },
103
+ "res:AuthenticationConfigResponse": { "type": "object", "properties": { "oauth_server": { "anyOf": [{ "$ref": "res:OAuthServerResponse" }, { "type": "null" }] }, "oauth_applications": { "type": ["object", "null"] }, "oauth_application": { "type": ["string", "null"], "maxLength": 64, "pattern": "^[a-z][a-z0-9_-]{0,63}$" }, "identity_verification": { "anyOf": [{ "$ref": "res:IdentityVerificationResponse" }, { "type": "null" }] }, "approval_url": { "type": ["string", "null"] }, "environments": { "type": ["object", "null"] } } },
104
+ "res:OAuthServerResponse": { "type": "object", "properties": { "issuer": { "type": ["string", "null"] }, "discovery_url": { "type": ["string", "null"] }, "authorization_url": { "type": ["string", "null"] }, "token_url": { "type": ["string", "null"] }, "device_authorization_url": { "type": ["string", "null"] }, "scopes": { "type": ["array", "null"], "maxItems": 20, "items": { "type": "string", "minLength": 1, "maxLength": 500, "pattern": "^\\S+$" } }, "audience": { "type": ["string", "null"] }, "resource": { "type": ["string", "null"] } } },
105
+ "res:IdentityVerificationResponse": { "allOf": [{ "type": "object", "properties": { "operation": { "type": ["string", "null"], "maxLength": 2000, "pattern": "^[\\w$]+\\.[\\w$]+$" }, "subject_field": { "type": ["string", "null"], "maxLength": 512, "pattern": "^/(?:[^~\\x00-\\x1f\\x7f]|~[01])*$" }, "account_field": { "type": ["string", "null"], "maxLength": 512, "pattern": "^/(?:[^~\\x00-\\x1f\\x7f]|~[01])*$" }, "organization_field": { "type": ["string", "null"], "maxLength": 512, "pattern": "^/(?:[^~\\x00-\\x1f\\x7f]|~[01])*$" } } }, { "anyOf": [{ "properties": { "subject_field": { "type": "string" } }, "required": ["subject_field"], "type": "object" }, { "properties": { "account_field": { "type": "string" } }, "required": ["account_field"], "type": "object" }, { "properties": { "organization_field": { "type": "string" } }, "required": ["organization_field"], "type": "object" }] }] },
106
+ "res:CliBehaviorResponse": { "type": "object", "properties": { "command_name": { "type": ["string", "null"] }, "update_notice": { "type": "boolean" }, "changelog_url": { "type": ["string", "null"] }, "support_url": { "type": ["string", "null"] }, "mcp_url": { "type": ["string", "null"] }, "skills_repo": { "type": ["string", "null"] } } },
107
+ "res:McpBehaviorResponse": { "type": "object", "properties": { "registry_name": { "type": ["string", "null"] }, "access": { "type": "object", "properties": { "issuer": { "type": "string" }, "resource": { "type": "string" }, "jwks_url": { "type": "string" }, "scopes": { "type": "array", "maxItems": 20, "items": { "type": "string" } } }, "required": ["issuer", "resource"] }, "tool_mode": { "type": "string" }, "instructions": { "type": ["string", "null"], "maxLength": 2000 }, "tool_descriptions": { "type": "object" }, "reference_resolvers": { "type": "object" } } },
108
+ "res:ReadmeBehaviorResponse": { "type": "object", "properties": { "quickstart_operation": { "type": ["string", "null"], "maxLength": 500 } } },
109
+ "res:PackageBehaviorResponse": { "type": "object", "properties": { "homepage": { "type": ["string", "null"] }, "license": { "type": ["string", "null"], "maxLength": 200 }, "license_text": { "type": ["string", "null"], "maxLength": 100000 }, "copyright": { "type": ["string", "null"], "maxLength": 200 }, "go_package_name": { "type": ["string", "null"] } } },
110
+ "req:ProjectId": { "type": "string", "pattern": "^prj_[a-z0-9]{16}$" },
111
+ "res:DeletedProject": { "type": "object", "properties": { "id": { "$ref": "res:ProjectId" }, "object": { "type": "string" }, "deleted": { "type": "boolean" }, "request_id": { "$ref": "res:RequestId" } }, "required": ["id", "object", "deleted", "request_id"] },
94
112
  "req:UpdateProjectRequest": { "type": "object", "additionalProperties": false, "properties": { "name": { "type": "string", "minLength": 1, "maxLength": 80 }, "auto_generate": { "type": "boolean" }, "relay_enabled": { "type": "boolean" }, "config": { "anyOf": [{ "$ref": "req:ProjectConfig" }, { "type": "null" }] } } },
95
- "res:DiagnosticReport": { "type": "object", "additionalProperties": false, "properties": { "object": { "type": "string" }, "format": { "type": "string" }, "project_id": { "$ref": "res:ProjectId" }, "definition_revision_id": { "$ref": "res:DefinitionRevisionId" }, "source_sha256": { "type": "string", "pattern": "^[a-f0-9]{64}$" }, "analyzed_sha256": { "type": "string", "pattern": "^[a-f0-9]{64}$" }, "patch_diagnostics": { "type": "array", "items": { "type": "string" } }, "summary": { "$ref": "res:DiagnosticSummary" }, "diagnostics": { "type": "array", "items": { "$ref": "res:Diagnostic" } }, "policy": { "$ref": "res:DiagnosticPolicy" }, "evaluation": { "$ref": "res:DiagnosticEvaluation" }, "delta": { "$ref": "res:DiagnosticDelta" }, "request_id": { "$ref": "res:RequestId" } }, "required": ["object", "format", "project_id", "definition_revision_id", "source_sha256", "analyzed_sha256", "patch_diagnostics", "summary", "diagnostics", "policy", "evaluation", "delta", "request_id"] },
113
+ "res:DiagnosticReport": { "type": "object", "properties": { "object": { "type": "string" }, "format": { "type": "string" }, "project_id": { "$ref": "res:ProjectId" }, "definition_revision_id": { "$ref": "res:DefinitionRevisionId" }, "source_sha256": { "type": "string", "pattern": "^[a-f0-9]{64}$" }, "analyzed_sha256": { "type": "string", "pattern": "^[a-f0-9]{64}$" }, "patch_diagnostics": { "type": "array", "items": { "type": "string" } }, "summary": { "$ref": "res:DiagnosticSummary" }, "diagnostics": { "type": "array", "items": { "$ref": "res:Diagnostic" } }, "policy": { "$ref": "res:DiagnosticPolicyResponse" }, "evaluation": { "$ref": "res:DiagnosticEvaluation" }, "quality_signals": { "$ref": "res:DiagnosticQualitySignals" }, "delta": { "$ref": "res:DiagnosticDelta" }, "request_id": { "$ref": "res:RequestId" } }, "required": ["object", "format", "project_id", "definition_revision_id", "source_sha256", "analyzed_sha256", "patch_diagnostics", "summary", "diagnostics", "policy", "evaluation", "quality_signals", "delta", "request_id"] },
96
114
  "res:DefinitionRevisionId": { "type": "string", "pattern": "^drev_[a-z0-9]{16}$" },
97
- "res:Diagnostic": { "type": "object", "additionalProperties": false, "properties": { "id": { "type": "string" }, "severity": { "type": "string" }, "category": { "type": "string" }, "title": { "type": "string" }, "description": { "type": "string" }, "impact": { "type": "string" }, "surfaces": { "type": "array", "items": { "type": "string" } }, "locations": { "type": "array", "minItems": 1, "items": { "$ref": "res:DiagnosticLocation" } }, "fix": { "$ref": "res:DiagnosticFix" }, "authoring_brief": { "type": "string" } }, "required": ["id", "severity", "category", "title", "description", "impact", "surfaces", "locations", "authoring_brief"] },
98
- "res:DiagnosticLocation": { "type": "object", "additionalProperties": false, "properties": { "document": { "type": "string" }, "path": { "type": "string" }, "operation": { "type": "string" }, "evidence": { "type": "string" } }, "required": ["path"] },
99
- "res:DiagnosticFix": { "type": "object", "additionalProperties": false, "properties": { "title": { "type": "string" }, "kind": { "type": "string" }, "patches": { "type": "array", "items": { "$ref": "res:DefinitionPatch" } }, "instructions": { "type": "string" } }, "required": ["title", "kind"] },
100
- "res:DefinitionPatch": { "type": "object", "additionalProperties": false, "properties": { "op": { "type": "string" }, "path": { "type": "string" }, "value": {}, "to": { "type": ["string", "null"] }, "reason": { "type": ["string", "null"] } }, "required": ["op", "path"] },
101
- "res:DiagnosticPolicy": { "type": "object", "additionalProperties": false, "properties": { "fail_on": { "type": "string" }, "only_new": { "type": "boolean" }, "suppressions": { "type": "array", "maxItems": 100, "items": { "$ref": "res:DiagnosticSuppression" } } }, "required": ["fail_on", "only_new", "suppressions"] },
102
- "res:DiagnosticSuppression": { "type": "object", "additionalProperties": false, "properties": { "rule_id": { "type": "string", "maxLength": 160 }, "path": { "type": "string", "maxLength": 4096 }, "reason": { "type": "string", "minLength": 1, "maxLength": 500 } }, "required": ["rule_id", "reason"] },
103
- "res:DiagnosticEvaluation": { "type": "object", "additionalProperties": false, "properties": { "state": { "type": "string" }, "blocking": { "type": "array", "items": { "$ref": "res:DiagnosticReference" } }, "considered_occurrences": { "type": "integer", "minimum": 0 }, "suppressed_occurrences": { "type": "integer", "minimum": 0 } }, "required": ["state", "blocking", "considered_occurrences", "suppressed_occurrences"] },
104
- "res:DiagnosticReference": { "type": "object", "additionalProperties": false, "properties": { "rule_id": { "type": "string" }, "severity": { "type": "string" }, "title": { "type": "string" }, "locations": { "type": "array", "minItems": 1, "items": { "$ref": "res:DiagnosticLocation" } } }, "required": ["rule_id", "severity", "title", "locations"] },
105
- "res:DiagnosticDelta": { "type": "object", "additionalProperties": false, "properties": { "added": { "type": "array", "items": { "$ref": "res:DiagnosticReference" } }, "resolved": { "type": "array", "items": { "$ref": "res:DiagnosticReference" } }, "baseline_definition_revision_id": { "anyOf": [{ "$ref": "res:DefinitionRevisionId" }, { "type": "null" }] } }, "required": ["added", "resolved", "baseline_definition_revision_id"] },
115
+ "res:Diagnostic": { "type": "object", "properties": { "id": { "type": "string" }, "severity": { "type": "string" }, "category": { "type": "string" }, "title": { "type": "string" }, "description": { "type": "string" }, "impact": { "type": "string" }, "surfaces": { "type": "array", "items": { "type": "string" } }, "evidence_basis": { "type": "string" }, "owner_decision_required": { "type": "boolean" }, "surface_impact": { "type": "string" }, "locations": { "type": "array", "minItems": 1, "items": { "$ref": "res:DiagnosticLocation" } }, "fix": { "$ref": "res:DiagnosticFix" }, "authoring_brief": { "type": "string" } }, "required": ["id", "severity", "category", "title", "description", "impact", "surfaces", "evidence_basis", "owner_decision_required", "locations", "authoring_brief"] },
116
+ "res:DiagnosticLocation": { "type": "object", "properties": { "document": { "type": "string" }, "path": { "type": "string" }, "operation": { "type": "string" }, "evidence": { "type": "string" } }, "required": ["path"] },
117
+ "res:DiagnosticFix": { "type": "object", "properties": { "title": { "type": "string" }, "kind": { "type": "string" }, "patches": { "type": "array", "items": { "$ref": "res:DefinitionPatchResponse" } }, "instructions": { "type": "string" } }, "required": ["title", "kind"] },
118
+ "res:DefinitionPatchResponse": { "type": "object", "properties": { "op": { "type": "string" }, "path": { "type": "string" }, "value": {}, "to": { "type": ["string", "null"] }, "reason": { "type": ["string", "null"] } }, "required": ["op", "path"] },
119
+ "res:DiagnosticPolicyResponse": { "type": "object", "properties": { "fail_on": { "type": "string" }, "only_new": { "type": "boolean" }, "suppressions": { "type": "array", "maxItems": 100, "items": { "$ref": "res:DiagnosticSuppressionResponse" } } }, "required": ["fail_on", "only_new", "suppressions"] },
120
+ "res:DiagnosticSuppressionResponse": { "type": "object", "properties": { "rule_id": { "type": "string", "maxLength": 160 }, "path": { "type": "string", "maxLength": 4096 }, "reason": { "type": "string", "minLength": 1, "maxLength": 500 } }, "required": ["rule_id", "reason"] },
121
+ "res:DiagnosticEvaluation": { "type": "object", "properties": { "state": { "type": "string" }, "blocking": { "type": "array", "items": { "$ref": "res:DiagnosticReference" } }, "considered_occurrences": { "type": "integer", "minimum": 0 }, "suppressed_occurrences": { "type": "integer", "minimum": 0 } }, "required": ["state", "blocking", "considered_occurrences", "suppressed_occurrences"] },
122
+ "res:DiagnosticReference": { "type": "object", "properties": { "rule_id": { "type": "string" }, "severity": { "type": "string" }, "title": { "type": "string" }, "locations": { "type": "array", "minItems": 1, "items": { "$ref": "res:DiagnosticLocation" } } }, "required": ["rule_id", "severity", "title", "locations"] },
123
+ "res:DiagnosticQualitySignals": { "type": "object", "properties": { "suppressed_by_rule": { "type": "array", "items": { "$ref": "res:DiagnosticSuppressionSignal" } }, "stale_suppressions": { "type": "array", "items": { "$ref": "res:DiagnosticSuppressionResponse" } } }, "required": ["suppressed_by_rule", "stale_suppressions"] },
124
+ "res:DiagnosticSuppressionSignal": { "type": "object", "properties": { "rule_id": { "type": "string" }, "active_occurrences": { "type": "integer", "minimum": 0 }, "suppressed_occurrences": { "type": "integer", "minimum": 1 } }, "required": ["rule_id", "active_occurrences", "suppressed_occurrences"] },
125
+ "res:DiagnosticDelta": { "type": "object", "properties": { "added": { "type": "array", "items": { "$ref": "res:DiagnosticReference" } }, "resolved": { "type": "array", "items": { "$ref": "res:DiagnosticReference" } }, "baseline_definition_revision_id": { "anyOf": [{ "$ref": "res:DefinitionRevisionId" }, { "type": "null" }] } }, "required": ["added", "resolved", "baseline_definition_revision_id"] },
106
126
  "req:DiagnosticRemediationRequest": { "type": "object", "additionalProperties": false, "properties": { "diagnostic_ids": { "type": "array", "minItems": 1, "maxItems": 50, "items": { "type": "string" } } }, "required": ["diagnostic_ids"] },
107
- "res:DiagnosticRemediation": { "type": "object", "additionalProperties": false, "properties": { "object": { "type": "string" }, "kind": { "type": "string" }, "patches_applied": { "type": "integer", "minimum": 0 }, "review_url": { "type": ["string", "null"] }, "request_id": { "$ref": "res:RequestId" } }, "required": ["object", "kind", "patches_applied", "request_id"] },
108
- "res:RepositoryIntegrationHealth": { "type": "object", "additionalProperties": false, "properties": { "object": { "type": "string" }, "project_id": { "$ref": "res:ProjectId" }, "status": { "type": "string" }, "repositories": { "type": "array", "items": { "$ref": "res:RepositoryHealth" } }, "required_checks": { "type": "object", "additionalProperties": false, "properties": { "source": { "type": "array", "items": { "type": "string" } }, "destination": { "type": "array", "items": { "type": "string" } } }, "required": ["source", "destination"] }, "last_event": { "anyOf": [{ "$ref": "res:RepositoryEventHealth" }, { "type": "null" }] }, "request_id": { "$ref": "res:RequestId" } }, "required": ["object", "project_id", "status", "repositories", "required_checks", "last_event", "request_id"] },
109
- "res:RepositoryHealth": { "type": "object", "additionalProperties": false, "properties": { "repository": { "$ref": "res:RepositoryReference" }, "roles": { "type": "array", "items": { "type": "string" } }, "status": { "type": "string" }, "default_branch": { "type": "string" }, "capabilities": { "type": "array", "items": { "type": "string" } }, "breaking_acknowledgement": { "type": ["boolean", "null"] }, "definition": { "type": "string" }, "issues": { "type": "array", "items": { "$ref": "res:RepositoryHealthIssue" } } }, "required": ["repository", "roles", "status", "issues"] },
110
- "res:RepositoryReference": { "type": "object", "additionalProperties": false, "properties": { "provider": { "type": "string" }, "identifier": { "type": "string", "maxLength": 512 } }, "required": ["provider", "identifier"] },
111
- "res:RepositoryHealthIssue": { "type": "object", "additionalProperties": false, "properties": { "code": { "type": "string" }, "message": { "type": "string" } }, "required": ["code", "message"] },
112
- "res:RepositoryEventHealth": { "type": "object", "additionalProperties": false, "properties": { "provider": { "type": "string" }, "id": { "type": "string" }, "event": { "type": "string" }, "status": { "type": "string" }, "error": { "type": ["string", "null"] }, "created_at": { "type": "string" } }, "required": ["provider", "id", "event", "status", "error", "created_at"] },
113
- "res:GenerationList": { "type": "object", "additionalProperties": false, "properties": { "object": { "$ref": "res:ListObject" }, "data": { "type": "array", "items": { "$ref": "res:GenerationSummary" } }, "has_more": { "type": "boolean" }, "next_cursor": { "type": ["string", "null"] }, "request_id": { "$ref": "res:RequestId" } }, "required": ["object", "data", "has_more", "next_cursor", "request_id"] },
114
- "res:GenerationSummary": { "type": "object", "additionalProperties": false, "properties": { "id": { "$ref": "res:GenerationId" }, "object": { "type": "string" }, "project_id": { "$ref": "res:ProjectId" }, "definition_revision_id": { "anyOf": [{ "$ref": "res:DefinitionRevisionId" }, { "type": "null" }] }, "status": { "$ref": "res:GenerationStatus" }, "trigger": { "$ref": "res:GenerationTrigger" }, "target_id": { "anyOf": [{ "$ref": "res:TargetId" }, { "type": "null" }] }, "generator": { "$ref": "res:GeneratorKind" }, "provenance": { "$ref": "res:GenerationProvenance" }, "meta": { "anyOf": [{ "$ref": "res:GenerationMeta" }, { "type": "null" }] }, "warnings": { "type": "array", "items": { "type": "string" } }, "error": { "type": ["string", "null"] }, "created_at": { "type": "string" } }, "required": ["id", "object", "project_id", "definition_revision_id", "status", "trigger", "target_id", "generator", "provenance", "meta", "warnings", "error", "created_at"] },
127
+ "res:DiagnosticRemediation": { "type": "object", "properties": { "object": { "type": "string" }, "kind": { "type": "string" }, "patches_applied": { "type": "integer", "minimum": 0 }, "review_url": { "type": ["string", "null"] }, "request_id": { "$ref": "res:RequestId" } }, "required": ["object", "kind", "patches_applied", "request_id"] },
128
+ "res:RepositoryIntegrationHealth": { "type": "object", "properties": { "object": { "type": "string" }, "project_id": { "$ref": "res:ProjectId" }, "status": { "type": "string" }, "repositories": { "type": "array", "items": { "$ref": "res:RepositoryHealth" } }, "required_checks": { "type": "object", "properties": { "source": { "type": "array", "items": { "type": "string" } }, "destination": { "type": "array", "items": { "type": "string" } } }, "required": ["source", "destination"] }, "last_event": { "anyOf": [{ "$ref": "res:RepositoryEventHealth" }, { "type": "null" }] }, "request_id": { "$ref": "res:RequestId" } }, "required": ["object", "project_id", "status", "repositories", "required_checks", "last_event", "request_id"] },
129
+ "res:RepositoryHealth": { "type": "object", "properties": { "repository": { "$ref": "res:RepositoryReferenceResponse" }, "roles": { "type": "array", "items": { "type": "string" } }, "status": { "type": "string" }, "default_branch": { "type": "string" }, "capabilities": { "type": "array", "items": { "type": "string" } }, "breaking_acknowledgement": { "type": ["boolean", "null"] }, "definition": { "type": "string" }, "issues": { "type": "array", "items": { "$ref": "res:RepositoryHealthIssue" } } }, "required": ["repository", "roles", "status", "issues"] },
130
+ "res:RepositoryReferenceResponse": { "type": "object", "properties": { "provider": { "type": "string" }, "identifier": { "type": "string", "maxLength": 512 } }, "required": ["provider", "identifier"] },
131
+ "res:RepositoryHealthIssue": { "type": "object", "properties": { "code": { "type": "string" }, "message": { "type": "string" } }, "required": ["code", "message"] },
132
+ "res:RepositoryEventHealth": { "type": "object", "properties": { "provider": { "type": "string" }, "id": { "type": "string" }, "event": { "type": "string" }, "status": { "type": "string" }, "error": { "type": ["string", "null"] }, "created_at": { "type": "string" } }, "required": ["provider", "id", "event", "status", "error", "created_at"] },
133
+ "res:GenerationList": { "type": "object", "properties": { "object": { "$ref": "res:ListObject" }, "data": { "type": "array", "items": { "$ref": "res:GenerationSummary" } }, "has_more": { "type": "boolean" }, "next_cursor": { "type": ["string", "null"] }, "request_id": { "$ref": "res:RequestId" } }, "required": ["object", "data", "has_more", "next_cursor", "request_id"] },
134
+ "res:GenerationSummary": { "type": "object", "properties": { "id": { "$ref": "res:GenerationId" }, "object": { "type": "string" }, "project_id": { "$ref": "res:ProjectId" }, "definition_revision_id": { "anyOf": [{ "$ref": "res:DefinitionRevisionId" }, { "type": "null" }] }, "status": { "$ref": "res:GenerationStatus" }, "trigger": { "$ref": "res:GenerationTrigger" }, "target_id": { "anyOf": [{ "$ref": "res:TargetId" }, { "type": "null" }] }, "generator": { "$ref": "res:GeneratorKind" }, "provenance": { "$ref": "res:GenerationProvenance" }, "meta": { "anyOf": [{ "$ref": "res:GenerationMeta" }, { "type": "null" }] }, "warnings": { "type": "array", "items": { "type": "string" } }, "errors": { "type": "array", "items": { "$ref": "res:DomainError" } }, "created_at": { "type": "string" } }, "required": ["id", "object", "project_id", "definition_revision_id", "status", "trigger", "target_id", "generator", "provenance", "meta", "warnings", "errors", "created_at"] },
115
135
  "res:GenerationId": { "type": "string", "pattern": "^gen_[a-z0-9]{16}$" },
116
136
  "res:GenerationStatus": { "type": "string" },
117
137
  "res:GenerationTrigger": { "type": "string" },
118
138
  "res:TargetId": { "type": "string", "pattern": "^tgt_[a-z0-9]{16}$" },
119
- "res:GenerationProvenance": { "type": "object", "additionalProperties": false, "properties": { "generator_edition": { "type": "string" }, "engine_build": { "type": "string" }, "resolved_config": { "type": ["object", "null"] }, "config_hash": { "type": ["string", "null"], "pattern": "^[a-f0-9]{64}$" }, "surface_plan": { "type": ["object", "null"] }, "surface_plan_hash": { "type": ["string", "null"], "pattern": "^[a-f0-9]{64}$" }, "entitlement_cap": { "type": ["integer", "null"], "minimum": 1 }, "package_version": { "type": ["string", "null"] } }, "required": ["generator_edition", "engine_build", "resolved_config", "config_hash", "surface_plan", "surface_plan_hash", "entitlement_cap", "package_version"] },
120
- "res:GenerationBatch": { "type": "object", "additionalProperties": false, "properties": { "data": { "type": "array", "items": { "anyOf": [{ "$ref": "res:GenerationSummary" }, { "$ref": "res:GenerationFailure" }] } }, "request_id": { "$ref": "res:RequestId" } }, "required": ["data", "request_id"] },
121
- "res:GenerationFailure": { "type": "object", "additionalProperties": false, "properties": { "target_id": { "$ref": "res:TargetId" }, "generator": { "$ref": "res:GeneratorKind" }, "status": { "type": "string" }, "error": { "type": "string" } }, "required": ["target_id", "generator", "status", "error"] },
122
- "res:Definition": { "type": "object", "additionalProperties": false, "properties": { "id": { "$ref": "res:DefinitionId" }, "object": { "type": "string" }, "project_id": { "$ref": "res:ProjectId" }, "source": { "$ref": "res:DefinitionSource" }, "format": { "type": ["string", "null"] }, "patches": { "type": "array", "items": { "$ref": "res:DefinitionPatch" } }, "graphql": { "anyOf": [{ "$ref": "res:GraphqlSettings" }, { "type": "null" }] }, "diagnostic_policy": { "$ref": "res:DiagnosticPolicy" }, "latest_revision_id": { "anyOf": [{ "$ref": "res:DefinitionRevisionId" }, { "type": "null" }] }, "created_at": { "type": "string" }, "updated_at": { "type": "string" }, "request_id": { "$ref": "res:RequestId" } }, "required": ["id", "object", "project_id", "source", "format", "patches", "graphql", "diagnostic_policy", "latest_revision_id", "created_at", "updated_at", "request_id"] },
123
- "res:DefinitionSource": { "anyOf": [{ "$ref": "res:UrlDefinitionSource" }, { "$ref": "res:RepositoryDefinitionSource" }, { "type": "object" }] },
124
- "res:UrlDefinitionSource": { "type": "object", "additionalProperties": false, "properties": { "kind": { "type": "string" }, "url": { "type": "string", "maxLength": 2048, "pattern": "^https?://" }, "headers_configured": { "type": "boolean" } }, "required": ["kind", "url", "headers_configured"] },
125
- "res:RepositoryDefinitionSource": { "type": "object", "additionalProperties": false, "properties": { "kind": { "type": "string" }, "repository": { "$ref": "res:RepositoryReference" }, "path": { "type": "string", "minLength": 1, "maxLength": 4096, "pattern": "^(?!/)(?!.*\\.\\.).+$" } }, "required": ["kind", "repository", "path"] },
126
- "res:GraphqlSettings": { "type": "object", "additionalProperties": false, "properties": { "endpoint": { "type": "string" }, "environments": { "type": "array", "maxItems": 10, "items": { "type": "object", "additionalProperties": false, "properties": { "name": { "type": "string" }, "url": { "type": "string" } }, "required": ["name", "url"] } }, "auth": { "type": "string" }, "api_key_header": { "type": "string" }, "title": { "type": "string", "maxLength": 80 }, "scalars": { "type": "object" } } },
139
+ "res:GenerationProvenance": { "type": "object", "properties": { "generator_edition": { "type": "string" }, "resolved_config": { "anyOf": [{ "$ref": "res:ConfigResponse" }, { "type": "null" }] }, "package_version": { "type": ["string", "null"] } }, "required": ["generator_edition", "resolved_config", "package_version"] },
140
+ "res:ConfigResponse": { "type": "object", "properties": { "globals": { "type": "array", "maxItems": 20, "items": { "type": "string" } }, "retries": { "$ref": "res:RetryTuningResponse" }, "pagination": { "type": "object" }, "graphql": { "$ref": "res:GraphqlSettingsResponse" }, "auth": { "$ref": "res:AuthenticationConfigResponse" }, "cli": { "$ref": "res:CliBehaviorResponse" }, "mcp": { "$ref": "res:McpBehaviorResponse" }, "readme": { "$ref": "res:ReadmeBehaviorResponse" }, "package": { "$ref": "res:PackageBehaviorResponse" }, "docs_url": { "type": ["string", "null"] }, "docs_index_url": { "type": ["string", "null"] } } },
141
+ "res:GraphqlSettingsResponse": { "type": "object", "properties": { "endpoint": { "type": "string" }, "environments": { "type": "array", "maxItems": 10, "items": { "type": "object", "properties": { "name": { "type": "string" }, "url": { "type": "string" } }, "required": ["name", "url"] } }, "auth": { "type": "string" }, "api_key_header": { "type": "string" }, "title": { "type": "string", "maxLength": 80 }, "scalars": { "type": "object" } } },
142
+ "res:DomainError": { "allOf": [{ "$ref": "res:ErrorDetail" }, { "type": "object", "properties": { "phase": { "$ref": "res:FailurePhase" } }, "required": ["phase"] }] },
143
+ "res:ErrorDetail": { "type": "object", "properties": { "type": { "$ref": "res:ErrorType" }, "code": { "$ref": "res:ErrorCode" }, "phase": { "$ref": "res:FailurePhase" }, "target_id": { "$ref": "res:TargetId" }, "field": { "type": "string" }, "in": { "type": "string" }, "message": { "type": "string" }, "retryable": { "type": "boolean" }, "suggested_action": { "type": "string" }, "docs_url": { "type": "string" } }, "required": ["type", "code", "message", "retryable", "suggested_action", "docs_url"] },
144
+ "res:ErrorType": { "type": "string" },
145
+ "res:ErrorCode": { "type": "string" },
146
+ "res:FailurePhase": { "type": "string" },
147
+ "req:TargetId": { "type": "string", "pattern": "^tgt_[a-z0-9]{16}$" },
148
+ "req:GenerateProjectRequest": { "type": "object", "additionalProperties": false, "properties": { "target_id": { "$ref": "req:TargetId" } } },
149
+ "res:GenerationBatch": { "type": "object", "properties": { "data": { "type": "array", "items": { "$ref": "res:GenerationSummary" } }, "request_id": { "$ref": "res:RequestId" } }, "required": ["data", "request_id"] },
150
+ "res:Definition": { "type": "object", "properties": { "id": { "$ref": "res:DefinitionId" }, "object": { "type": "string" }, "project_id": { "$ref": "res:ProjectId" }, "source": { "$ref": "res:DefinitionSource" }, "format": { "type": ["string", "null"] }, "patches": { "type": "array", "items": { "$ref": "res:DefinitionPatchResponse" } }, "graphql": { "anyOf": [{ "$ref": "res:GraphqlSettingsResponse" }, { "type": "null" }] }, "diagnostic_policy": { "$ref": "res:DiagnosticPolicyResponse" }, "latest_revision_id": { "anyOf": [{ "$ref": "res:DefinitionRevisionId" }, { "type": "null" }] }, "created_at": { "type": "string" }, "updated_at": { "type": "string" }, "request_id": { "$ref": "res:RequestId" } }, "required": ["id", "object", "project_id", "source", "format", "patches", "graphql", "diagnostic_policy", "latest_revision_id", "created_at", "updated_at", "request_id"] },
151
+ "res:DefinitionSource": { "anyOf": [{ "$ref": "res:UrlDefinitionSource" }, { "$ref": "res:RepositoryDefinitionSource" }], "responseDiscriminator": { "propertyName": "kind", "mapping": { "url": { "$ref": "res:UrlDefinitionSource" }, "repository": { "$ref": "res:RepositoryDefinitionSource" } } } },
152
+ "res:UrlDefinitionSource": { "type": "object", "properties": { "kind": { "type": "string" }, "url": { "type": "string", "maxLength": 2048, "pattern": "^https?://" }, "headers_configured": { "type": "boolean" } }, "required": ["kind", "url", "headers_configured"] },
153
+ "res:RepositoryDefinitionSource": { "type": "object", "properties": { "kind": { "type": "string" }, "repository": { "$ref": "res:RepositoryReferenceResponse" }, "path": { "type": "string", "minLength": 1, "maxLength": 4096, "pattern": "^(?!/)(?!.*\\.\\.).+$" } }, "required": ["kind", "repository", "path"] },
154
+ "req:DefinitionId": { "type": "string", "pattern": "^def_[a-z0-9]{16}$" },
127
155
  "req:DefinitionUpdateRequest": { "type": "object", "additionalProperties": false, "properties": { "source": { "$ref": "req:DefinitionSourceInput" }, "patches": { "type": "array", "maxItems": 50, "items": { "$ref": "req:DefinitionPatch" } }, "graphql": { "anyOf": [{ "$ref": "req:GraphqlSettings" }, { "type": "null" }] }, "diagnostic_policy": { "$ref": "req:DiagnosticPolicy" } } },
128
- "res:TargetList": { "type": "object", "additionalProperties": false, "properties": { "object": { "$ref": "res:ListObject" }, "data": { "type": "array", "items": { "$ref": "res:Target" } }, "has_more": { "type": "boolean" }, "next_cursor": { "type": ["string", "null"] }, "request_id": { "$ref": "res:RequestId" } }, "required": ["object", "data", "has_more", "next_cursor", "request_id"] },
129
- "res:Target": { "type": "object", "additionalProperties": false, "properties": { "id": { "$ref": "res:TargetId" }, "object": { "type": "string" }, "project_id": { "$ref": "res:ProjectId" }, "definition_id": { "$ref": "res:DefinitionId" }, "name": { "type": "string" }, "generator": { "$ref": "res:GeneratorKind" }, "state": { "type": "string" }, "edition": { "type": "string" }, "release_channel": { "type": "string" }, "version_policy": { "type": "object", "additionalProperties": false, "properties": { "mode": { "type": "string" }, "pre1_breaking": { "type": "string" } }, "required": ["mode", "pre1_breaking"] }, "current_version": { "type": "string" }, "proposed_version": { "type": ["string", "null"] }, "config": { "anyOf": [{ "$ref": "res:TargetConfig" }, { "type": "null" }] }, "deliveries": { "type": "array", "maxItems": 2, "items": { "$ref": "res:Delivery" } }, "created_at": { "type": "string" }, "updated_at": { "type": "string" }, "request_id": { "$ref": "res:RequestId" } }, "required": ["id", "object", "project_id", "definition_id", "name", "generator", "state", "edition", "release_channel", "version_policy", "current_version", "proposed_version", "config", "deliveries", "created_at", "updated_at"] },
130
- "res:TargetConfig": { "type": "object", "additionalProperties": false, "properties": { "globals": { "type": "array", "maxItems": 20, "items": { "type": "string" } }, "retries": { "$ref": "res:RetryTuning" }, "pagination": { "type": "object" }, "auth": { "$ref": "res:TargetAuthenticationConfig" }, "cli": { "$ref": "res:CliBehavior" }, "mcp": { "$ref": "res:McpBehavior" }, "readme": { "$ref": "res:ReadmeBehavior" }, "package": { "$ref": "res:PackageBehavior" }, "docs_url": { "type": ["string", "null"] }, "docs_index_url": { "type": ["string", "null"] } } },
131
- "res:TargetAuthenticationConfig": { "type": "object", "additionalProperties": false, "properties": { "oauth_application": { "type": ["string", "null"], "maxLength": 64, "pattern": "^[a-z][a-z0-9_-]{0,63}$" }, "environments": { "type": ["object", "null"] } } },
132
- "res:Delivery": { "anyOf": [{ "$ref": "res:RepositoryDelivery" }, { "$ref": "res:HostedMcpDelivery" }, { "type": "object" }] },
133
- "res:RepositoryDelivery": { "type": "object", "additionalProperties": false, "properties": { "id": { "$ref": "res:DeliveryId" }, "object": { "type": "string" }, "target_id": { "$ref": "res:TargetId" }, "kind": { "type": "string" }, "state": { "type": "string" }, "repository": { "$ref": "res:RepositoryReference" }, "directory": { "type": ["string", "null"] }, "package_name": { "type": ["string", "null"] }, "module_path": { "type": ["string", "null"] }, "created_at": { "type": "string" }, "updated_at": { "type": "string" } }, "required": ["id", "object", "target_id", "kind", "state", "repository", "directory", "package_name", "module_path", "created_at", "updated_at"] },
156
+ "res:TargetList": { "type": "object", "properties": { "object": { "$ref": "res:ListObject" }, "data": { "type": "array", "items": { "$ref": "res:Target" } }, "has_more": { "type": "boolean" }, "next_cursor": { "type": ["string", "null"] }, "request_id": { "$ref": "res:RequestId" } }, "required": ["object", "data", "has_more", "next_cursor", "request_id"] },
157
+ "res:Target": { "type": "object", "properties": { "id": { "$ref": "res:TargetId" }, "object": { "type": "string" }, "project_id": { "$ref": "res:ProjectId" }, "definition_id": { "$ref": "res:DefinitionId" }, "name": { "type": "string" }, "generator": { "$ref": "res:GeneratorKind" }, "dependency": { "anyOf": [{ "$ref": "res:TargetDependency" }, { "type": "null" }] }, "state": { "type": "string" }, "edition": { "type": "string" }, "release_channel": { "type": "string" }, "version_policy": { "type": "object", "properties": { "mode": { "type": "string" }, "pre1_breaking": { "type": "string" } }, "required": ["mode", "pre1_breaking"] }, "current_version": { "type": ["string", "null"] }, "proposed_version": { "type": ["string", "null"] }, "proposed_version_source": { "type": ["string", "null"] }, "checks": { "$ref": "res:TargetChecksResponse" }, "config": { "anyOf": [{ "$ref": "res:TargetConfigResponse" }, { "type": "null" }] }, "deliveries": { "type": "array", "maxItems": 2, "items": { "$ref": "res:Delivery" } }, "created_at": { "type": "string" }, "updated_at": { "type": "string" }, "request_id": { "$ref": "res:RequestId" } }, "required": ["id", "object", "project_id", "definition_id", "name", "generator", "dependency", "state", "edition", "release_channel", "version_policy", "current_version", "proposed_version", "proposed_version_source", "checks", "config", "deliveries", "created_at", "updated_at"] },
158
+ "res:TargetDependency": { "type": "object", "properties": { "kind": { "type": "string" }, "target_id": { "$ref": "res:TargetId" } }, "required": ["kind", "target_id"] },
159
+ "res:TargetChecksResponse": { "type": "object", "properties": { "generated": { "type": "array", "items": { "type": "string" } }, "repository_required": { "type": "array", "maxItems": 50, "items": { "type": "string", "minLength": 1, "maxLength": 120 } }, "customer": { "type": "array", "maxItems": 20, "items": { "type": "object", "properties": { "name": { "type": "string", "minLength": 1, "maxLength": 120 }, "command": { "type": "string", "minLength": 1, "maxLength": 2000 } }, "required": ["name", "command"] } } } },
160
+ "res:TargetConfigResponse": { "type": "object", "properties": { "globals": { "type": "array", "maxItems": 20, "items": { "type": "string" } }, "retries": { "$ref": "res:RetryTuningResponse" }, "pagination": { "type": "object" }, "auth": { "$ref": "res:TargetAuthenticationConfigResponse" }, "cli": { "$ref": "res:CliBehaviorResponse" }, "mcp": { "$ref": "res:McpBehaviorResponse" }, "readme": { "$ref": "res:ReadmeBehaviorResponse" }, "package": { "$ref": "res:PackageBehaviorResponse" }, "docs_url": { "type": ["string", "null"] }, "docs_index_url": { "type": ["string", "null"] } } },
161
+ "res:TargetAuthenticationConfigResponse": { "type": "object", "properties": { "oauth_application": { "type": ["string", "null"], "maxLength": 64, "pattern": "^[a-z][a-z0-9_-]{0,63}$" }, "environments": { "type": ["object", "null"] } } },
162
+ "res:Delivery": { "anyOf": [{ "$ref": "res:RepositoryDelivery" }, { "$ref": "res:HostedMcpDelivery" }], "responseDiscriminator": { "propertyName": "kind", "mapping": { "repository": { "$ref": "res:RepositoryDelivery" }, "hosted_mcp": { "$ref": "res:HostedMcpDelivery" } } } },
163
+ "res:RepositoryDelivery": { "type": "object", "properties": { "id": { "$ref": "res:DeliveryId" }, "object": { "type": "string" }, "target_id": { "$ref": "res:TargetId" }, "kind": { "type": "string" }, "state": { "type": "string" }, "repository": { "$ref": "res:RepositoryReferenceResponse" }, "directory": { "type": ["string", "null"] }, "package_name": { "type": ["string", "null"] }, "module_path": { "type": ["string", "null"] }, "publish_on_merge": { "type": "boolean" }, "created_at": { "type": "string" }, "updated_at": { "type": "string" } }, "required": ["id", "object", "target_id", "kind", "state", "repository", "directory", "package_name", "module_path", "publish_on_merge", "created_at", "updated_at"] },
134
164
  "res:DeliveryId": { "type": "string", "pattern": "^dlv_[a-z0-9]{16}$" },
135
- "res:HostedMcpDelivery": { "type": "object", "additionalProperties": false, "properties": { "id": { "$ref": "res:DeliveryId" }, "object": { "type": "string" }, "target_id": { "$ref": "res:TargetId" }, "kind": { "type": "string" }, "state": { "type": "string" }, "url": { "type": ["string", "null"] }, "created_at": { "type": "string" }, "updated_at": { "type": "string" } }, "required": ["id", "object", "target_id", "kind", "state", "url", "created_at", "updated_at"] },
136
- "req:TargetFields": { "type": "object", "additionalProperties": false, "properties": { "name": { "type": "string", "minLength": 1, "maxLength": 80 }, "definition_id": { "$ref": "req:DefinitionId" }, "generator": { "$ref": "req:GeneratorKind" }, "state": { "type": "string", "enum": ["active", "disabled"] }, "edition": { "type": "string" }, "release_channel": { "type": "string", "enum": ["stable", "prerelease"] }, "proposed_version": { "type": ["string", "null"] }, "config": { "anyOf": [{ "$ref": "req:TargetConfig" }, { "type": "null" }] }, "deliveries": { "type": "array", "maxItems": 2, "items": { "$ref": "req:DeliveryInput" } } }, "required": ["name", "definition_id", "generator"] },
137
- "req:DefinitionId": { "type": "string", "pattern": "^def_[a-z0-9]{16}$" },
165
+ "res:HostedMcpDelivery": { "type": "object", "properties": { "id": { "$ref": "res:DeliveryId" }, "object": { "type": "string" }, "target_id": { "$ref": "res:TargetId" }, "kind": { "type": "string" }, "state": { "type": "string" }, "url": { "type": ["string", "null"] }, "created_at": { "type": "string" }, "updated_at": { "type": "string" } }, "required": ["id", "object", "target_id", "kind", "state", "url", "created_at", "updated_at"] },
166
+ "req:TargetFields": { "type": "object", "additionalProperties": false, "properties": { "name": { "type": "string", "minLength": 1, "maxLength": 80 }, "definition_id": { "$ref": "req:DefinitionId" }, "generator": { "$ref": "req:GeneratorKind" }, "state": { "type": "string", "enum": ["active", "disabled"] }, "edition": { "type": "string" }, "release_channel": { "type": "string", "enum": ["stable", "prerelease"] }, "proposed_version": { "type": ["string", "null"] }, "checks": { "$ref": "req:TargetChecks" }, "config": { "anyOf": [{ "$ref": "req:TargetConfig" }, { "type": "null" }] }, "deliveries": { "type": "array", "maxItems": 2, "items": { "$ref": "req:DeliveryInput" } } }, "required": ["name", "definition_id", "generator"] },
138
167
  "res:TargetResponse": { "allOf": [{ "$ref": "res:Target" }, { "$ref": "res:ResponseMetadata" }] },
139
168
  "res:ResponseMetadata": { "type": "object", "properties": { "request_id": { "$ref": "res:RequestId" } }, "required": ["request_id"] },
140
- "res:DeletedTarget": { "type": "object", "additionalProperties": false, "properties": { "id": { "$ref": "res:TargetId" }, "object": { "type": "string" }, "deleted": { "type": "boolean" }, "request_id": { "$ref": "res:RequestId" } }, "required": ["id", "object", "deleted", "request_id"] },
141
- "req:TargetUpdateRequest": { "type": "object", "additionalProperties": false, "properties": { "name": { "type": "string", "minLength": 1, "maxLength": 80 }, "state": { "type": "string", "enum": ["active", "disabled"] }, "edition": { "type": "string" }, "release_channel": { "type": "string", "enum": ["stable", "prerelease"] }, "proposed_version": { "type": ["string", "null"] }, "config": { "anyOf": [{ "$ref": "req:TargetConfig" }, { "type": "null" }] }, "deliveries": { "type": "array", "maxItems": 2, "items": { "$ref": "req:DeliveryInput" } } } },
142
- "res:TargetReleaseList": { "type": "object", "additionalProperties": false, "properties": { "object": { "$ref": "res:ListObject" }, "data": { "type": "array", "items": { "$ref": "res:TargetRelease" } }, "has_more": { "type": "boolean" }, "next_cursor": { "type": ["string", "null"] }, "request_id": { "$ref": "res:RequestId" } }, "required": ["object", "data", "has_more", "next_cursor", "request_id"] },
143
- "res:TargetRelease": { "type": "object", "additionalProperties": false, "properties": { "id": { "$ref": "res:TargetReleaseId" }, "object": { "type": "string" }, "target_id": { "$ref": "res:TargetId" }, "generation_id": { "$ref": "res:GenerationId" }, "version": { "type": "string" }, "channel": { "type": "string" }, "provider": { "type": "string" }, "repository": { "anyOf": [{ "$ref": "res:RepositoryReference" }, { "type": "null" }] }, "definition_revision_id": { "anyOf": [{ "$ref": "res:DefinitionRevisionId" }, { "type": "null" }] }, "delivery_revision": { "type": "string" }, "created_at": { "type": "string" }, "request_id": { "$ref": "res:RequestId" } }, "required": ["id", "object", "target_id", "generation_id", "version", "channel", "provider", "repository", "definition_revision_id", "delivery_revision", "created_at"] },
169
+ "res:DeletedTarget": { "type": "object", "properties": { "id": { "$ref": "res:TargetId" }, "object": { "type": "string" }, "deleted": { "type": "boolean" }, "request_id": { "$ref": "res:RequestId" } }, "required": ["id", "object", "deleted", "request_id"] },
170
+ "req:TargetUpdateRequest": { "type": "object", "additionalProperties": false, "properties": { "name": { "type": "string", "minLength": 1, "maxLength": 80 }, "state": { "type": "string", "enum": ["active", "disabled"] }, "edition": { "type": "string" }, "release_channel": { "type": "string", "enum": ["stable", "prerelease"] }, "proposed_version": { "type": ["string", "null"] }, "checks": { "$ref": "req:TargetChecks" }, "config": { "anyOf": [{ "$ref": "req:TargetConfig" }, { "type": "null" }] }, "deliveries": { "type": "array", "maxItems": 2, "items": { "$ref": "req:DeliveryInput" } } } },
171
+ "res:TargetReleaseList": { "type": "object", "properties": { "object": { "$ref": "res:ListObject" }, "data": { "type": "array", "items": { "$ref": "res:TargetRelease" } }, "has_more": { "type": "boolean" }, "next_cursor": { "type": ["string", "null"] }, "request_id": { "$ref": "res:RequestId" } }, "required": ["object", "data", "has_more", "next_cursor", "request_id"] },
172
+ "res:TargetRelease": { "type": "object", "properties": { "id": { "$ref": "res:TargetReleaseId" }, "object": { "type": "string" }, "target_id": { "$ref": "res:TargetId" }, "generation_id": { "anyOf": [{ "$ref": "res:GenerationId" }, { "type": "null" }] }, "origin": { "type": "string" }, "version": { "type": "string" }, "channel": { "type": "string" }, "provider": { "type": "string" }, "repository": { "anyOf": [{ "$ref": "res:RepositoryReferenceResponse" }, { "type": "null" }] }, "definition_revision_id": { "anyOf": [{ "$ref": "res:DefinitionRevisionId" }, { "type": "null" }] }, "delivery_revision": { "type": "string" }, "source_digest": { "type": ["string", "null"] }, "checks": { "type": "array", "items": { "$ref": "res:PackageCheck" } }, "accepted_risks": { "type": "array", "items": { "$ref": "res:AcceptedCompatibilityRisk" } }, "import_provenance": { "type": ["object", "null"], "properties": { "tag": { "type": ["string", "null"] }, "registry_url": { "type": ["string", "null"] }, "artifact_digest": { "type": ["string", "null"] }, "imported_at": { "type": ["string", "null"] } }, "required": ["tag", "registry_url", "artifact_digest", "imported_at"] }, "publications": { "type": "array", "items": { "$ref": "res:Publication" } }, "created_at": { "type": "string" }, "request_id": { "$ref": "res:RequestId" } }, "required": ["id", "object", "target_id", "generation_id", "version", "channel", "origin", "provider", "repository", "definition_revision_id", "delivery_revision", "source_digest", "checks", "accepted_risks", "import_provenance", "publications", "created_at"] },
144
173
  "res:TargetReleaseId": { "type": "string", "pattern": "^rel_[a-z0-9]{16}$" },
174
+ "res:PackageCheck": { "type": "object", "properties": { "name": { "type": "string" }, "source": { "type": "string" }, "required": { "type": "boolean" }, "state": { "type": "string" }, "reason": { "type": "string" }, "revision": { "type": "string" }, "url": { "type": ["string", "null"] }, "observed_at": { "type": ["string", "null"] } }, "required": ["name", "source", "required", "state", "reason", "revision", "url", "observed_at"] },
175
+ "res:AcceptedCompatibilityRisk": { "type": "object", "properties": { "comparison": { "type": "string" }, "reason": { "type": "string" }, "approved_by": { "type": "string" }, "approved_revision": { "type": "string" }, "approved_at": { "type": "string" } }, "required": ["comparison", "reason", "approved_by", "approved_revision", "approved_at"] },
176
+ "res:Publication": { "type": "object", "properties": { "id": { "$ref": "res:PublicationId" }, "object": { "type": "string" }, "target_release_id": { "$ref": "res:TargetReleaseId" }, "destination": { "type": "string" }, "state": { "type": "string" }, "attempt": { "type": "integer", "minimum": 0 }, "run_url": { "type": ["string", "null"] }, "registry_url": { "type": ["string", "null"] }, "artifact_digest": { "type": ["string", "null"] }, "errors": { "type": "array", "items": { "$ref": "res:DomainError" } }, "started_at": { "type": ["string", "null"] }, "finished_at": { "type": ["string", "null"] }, "updated_at": { "type": "string" } }, "required": ["id", "object", "target_release_id", "destination", "state", "attempt", "run_url", "registry_url", "artifact_digest", "errors", "started_at", "finished_at", "updated_at"] },
177
+ "res:PublicationId": { "type": "string", "pattern": "^pub_[a-z0-9]{16}$" },
178
+ "res:TargetDraftResponse": { "allOf": [{ "$ref": "res:TargetDraft" }, { "$ref": "res:ResponseMetadata" }] },
179
+ "res:TargetDraft": { "type": "object", "properties": { "object": { "type": "string" }, "target_id": { "$ref": "res:TargetId" }, "project_id": { "$ref": "res:ProjectId" }, "status": { "$ref": "res:DraftStatus" }, "current_version": { "type": ["string", "null"] }, "version": { "type": ["string", "null"] }, "selection": { "$ref": "res:TargetDraftSelection" }, "readiness": { "anyOf": [{ "$ref": "res:TargetDraftReadiness" }, { "type": "null" }] }, "changes": { "type": ["object", "null"], "properties": { "changelog": { "type": ["string", "null"] }, "breaking_count": { "type": ["integer", "null"], "minimum": 0 }, "previous_version": { "type": ["string", "null"] } } }, "head_revision": { "type": ["string", "null"] }, "pull_request_url": { "type": ["string", "null"] }, "generation_id": { "anyOf": [{ "$ref": "res:GenerationId" }, { "type": "null" }] }, "conflicts": { "anyOf": [{ "$ref": "res:TargetDraftConflicts" }, { "type": "null" }] }, "customized_files": { "type": ["integer", "null"], "minimum": 0 }, "history_recovery": { "anyOf": [{ "$ref": "res:TargetDraftHistoryRecovery" }, { "type": "null" }] }, "request_id": { "$ref": "res:RequestId" }, "checks": { "type": "array", "items": { "$ref": "res:PackageCheck" } } }, "required": ["object", "target_id", "project_id", "status", "current_version", "version", "selection", "readiness", "checks", "changes", "head_revision", "pull_request_url", "generation_id", "conflicts", "customized_files", "history_recovery"] },
180
+ "res:DraftStatus": { "type": "string" },
181
+ "res:TargetDraftSelection": { "anyOf": [{ "type": "object", "properties": { "mode": { "type": "string" } }, "required": ["mode"] }, { "type": "object", "properties": { "mode": { "type": "string" }, "version": { "type": "string" }, "source": { "type": ["string", "null"] } }, "required": ["mode", "version", "source"] }] },
182
+ "res:TargetDraftReadiness": { "type": "object", "properties": { "state": { "type": "string" }, "description": { "type": "string" }, "api_compatibility": { "type": "string" }, "package_compatibility": { "type": "string" }, "version_correct": { "type": ["boolean", "null"] }, "required_bump": { "type": ["string", "null"] }, "previous_version": { "type": ["string", "null"] }, "title_error": { "type": ["string", "null"] } }, "required": ["state", "description", "api_compatibility", "package_compatibility", "version_correct", "required_bump", "previous_version", "title_error"] },
183
+ "res:TargetDraftConflicts": { "type": "object", "properties": { "total": { "type": "integer", "minimum": 1 }, "decided": { "type": "integer", "minimum": 0 } }, "required": ["total", "decided"] },
184
+ "res:TargetDraftHistoryRecovery": { "type": "object", "properties": { "default_revision": { "type": "string" }, "head_revision": { "type": ["string", "null"] }, "preserved_branch": { "type": ["string", "null"] } }, "required": ["default_revision", "head_revision", "preserved_branch"] },
185
+ "req:TargetDraftUpdate": { "type": "object", "additionalProperties": false, "properties": { "version": { "type": ["string", "null"] } }, "required": ["version"] },
186
+ "req:TargetAdoption": { "type": "object", "additionalProperties": false, "properties": { "version": { "type": "string" }, "tag": { "type": "string", "minLength": 1, "maxLength": 255 } }, "required": ["version", "tag"] },
145
187
  "res:TargetReleaseResponse": { "allOf": [{ "$ref": "res:TargetRelease" }, { "$ref": "res:ResponseMetadata" }] },
188
+ "req:TargetReleaseId": { "type": "string", "pattern": "^rel_[a-z0-9]{16}$" },
189
+ "res:DraftFileList": { "type": "object", "properties": { "object": { "$ref": "res:ListObject" }, "data": { "type": "array", "items": { "$ref": "res:DraftFile" } }, "has_more": { "type": "boolean" }, "next_cursor": { "type": ["string", "null"] }, "request_id": { "$ref": "res:RequestId" } }, "required": ["object", "data", "has_more", "next_cursor", "request_id"] },
190
+ "res:DraftFile": { "type": "object", "properties": { "object": { "type": "string" }, "path": { "type": "string" }, "customization": { "type": ["string", "null"] }, "conflict": { "anyOf": [{ "$ref": "res:DraftFileConflict" }, { "type": "null" }] }, "history": { "anyOf": [{ "$ref": "res:DraftFileHistory" }, { "type": "null" }] }, "sides": { "type": "array", "items": { "$ref": "res:DraftFileSideSummary" } } }, "required": ["object", "path", "customization", "conflict", "history", "sides"] },
191
+ "res:DraftFileConflict": { "type": "object", "properties": { "kind": { "type": "string" }, "source": { "type": "string" }, "decision": { "type": ["string", "null"] } }, "required": ["kind", "source", "decision"] },
192
+ "res:DraftFileHistory": { "type": "object", "properties": { "change": { "type": ["string", "null"] }, "draft_differs": { "type": "boolean" } }, "required": ["change", "draft_differs"] },
193
+ "res:DraftFileSideSummary": { "type": "object", "properties": { "side": { "$ref": "res:DraftFileSide" }, "mode": { "$ref": "res:GitFileMode" }, "size_bytes": { "type": "integer", "minimum": 0 }, "encoding": { "type": "string" } }, "required": ["side", "mode", "size_bytes", "encoding"] },
194
+ "res:DraftFileSide": { "type": "string" },
195
+ "res:GitFileMode": { "type": "string" },
196
+ "res:DraftFileContentResponse": { "allOf": [{ "$ref": "res:DraftFileContent" }, { "$ref": "res:ResponseMetadata" }] },
197
+ "res:DraftFileContent": { "type": "object", "properties": { "object": { "type": "string" }, "target_id": { "$ref": "res:TargetId" }, "path": { "type": "string" }, "side": { "$ref": "res:DraftFileSide" }, "encoding": { "type": "string" }, "content": { "type": "string" }, "mode": { "$ref": "res:GitFileMode" }, "size_bytes": { "type": "integer", "minimum": 0 }, "offset": { "type": "integer", "minimum": 0 }, "next_cursor": { "type": ["string", "null"] } }, "required": ["object", "target_id", "path", "side", "encoding", "content", "mode", "size_bytes", "offset", "next_cursor"] },
198
+ "req:DraftFileSide": { "type": "string", "enum": ["base", "repository", "incoming", "accepted", "default", "draft"] },
199
+ "req:ResolveDraftConflicts": { "type": "object", "additionalProperties": false, "properties": { "expected_head_revision": { "type": "string", "pattern": "^[0-9a-fA-F]{40}$" }, "resolutions": { "type": "array", "minItems": 1, "maxItems": 1000, "items": { "$ref": "req:DraftConflictDecision" } }, "dry_run": { "type": "boolean" } }, "required": ["expected_head_revision", "resolutions"] },
200
+ "req:DraftConflictDecision": { "anyOf": [{ "type": "object", "additionalProperties": false, "properties": { "path": { "type": "string", "minLength": 1 }, "keep": { "type": "string", "enum": ["repository", "incoming"] } }, "required": ["path", "keep"] }, { "type": "object", "additionalProperties": false, "properties": { "path": { "type": "string", "minLength": 1 }, "keep": { "type": "string", "const": "content" }, "content": { "type": "string" }, "mode": { "$ref": "req:GitFileMode" } }, "required": ["path", "keep", "content", "mode"] }, { "type": "object", "additionalProperties": false, "properties": { "path": { "type": "string", "minLength": 1 }, "keep": { "type": "string", "const": "content" }, "content_base64": { "type": "string" }, "mode": { "$ref": "req:GitFileMode" } }, "required": ["path", "keep", "content_base64", "mode"] }, { "type": "object", "additionalProperties": false, "properties": { "path": { "type": "string", "minLength": 1 }, "keep": { "type": "string", "const": "content" }, "content": { "type": "null" } }, "required": ["path", "keep", "content"] }] },
201
+ "req:GitFileMode": { "type": "string", "enum": ["100644", "100755", "120000"] },
202
+ "res:DraftConflictResolutionResponse": { "allOf": [{ "$ref": "res:DraftConflictResolution" }, { "$ref": "res:ResponseMetadata" }] },
203
+ "res:DraftConflictResolution": { "type": "object", "properties": { "object": { "type": "string" }, "target_id": { "$ref": "res:TargetId" }, "head_revision": { "type": "string" }, "status": { "type": "string" }, "files": { "type": "array", "maxItems": 1000, "items": { "$ref": "res:DraftPlannedFile" } }, "remaining_conflicts": { "type": "integer", "minimum": 0 } }, "required": ["object", "target_id", "head_revision", "status", "files", "remaining_conflicts"] },
204
+ "res:DraftPlannedFile": { "type": "object", "properties": { "path": { "type": "string" }, "action": { "type": "string" }, "mode": { "anyOf": [{ "$ref": "res:GitFileMode" }, { "type": "null" }] }, "size_bytes": { "type": ["integer", "null"], "minimum": 0 } }, "required": ["path", "action", "mode", "size_bytes"] },
205
+ "req:DiscardDraftCustomizations": { "type": "object", "additionalProperties": false, "properties": { "expected_head_revision": { "type": "string", "pattern": "^[0-9a-fA-F]{40}$" }, "paths": { "type": "array", "minItems": 1, "maxItems": 1000, "items": { "type": "string", "minLength": 1 } }, "dry_run": { "type": "boolean" } }, "required": ["expected_head_revision", "paths"] },
206
+ "res:DraftCustomizationDiscardResponse": { "allOf": [{ "$ref": "res:DraftCustomizationDiscard" }, { "$ref": "res:ResponseMetadata" }] },
207
+ "res:DraftCustomizationDiscard": { "type": "object", "properties": { "object": { "type": "string" }, "target_id": { "$ref": "res:TargetId" }, "head_revision": { "type": "string" }, "status": { "type": "string" }, "files": { "type": "array", "maxItems": 1000, "items": { "$ref": "res:DraftPlannedFile" } } }, "required": ["object", "target_id", "head_revision", "status", "files"] },
208
+ "req:RecoverDraftHistory": { "type": "object", "additionalProperties": false, "properties": { "expected_default_revision": { "type": "string", "pattern": "^[a-fA-F0-9]{40}$" }, "expected_head_revision": { "type": ["string", "null"], "pattern": "^[a-fA-F0-9]{40}$" } }, "required": ["expected_default_revision", "expected_head_revision"] },
209
+ "res:DraftHistoryRecoveryResponse": { "allOf": [{ "$ref": "res:DraftHistoryRecovery" }, { "$ref": "res:ResponseMetadata" }] },
210
+ "res:DraftHistoryRecovery": { "type": "object", "properties": { "object": { "type": "string" }, "target_id": { "$ref": "res:TargetId" }, "status": { "type": "string" }, "default_revision": { "type": "string" }, "head_revision": { "type": ["string", "null"] }, "preserved_branch": { "type": ["string", "null"] } }, "required": ["object", "target_id", "status", "default_revision", "head_revision", "preserved_branch"] },
211
+ "res:DeliveryResponse": { "type": "object", "properties": { "id": { "$ref": "res:DeliveryId" }, "object": { "type": "string" }, "target_id": { "$ref": "res:TargetId" }, "kind": { "type": "string" }, "state": { "type": "string" }, "repository": { "$ref": "res:RepositoryReferenceResponse" }, "directory": { "type": ["string", "null"] }, "package_name": { "type": ["string", "null"] }, "module_path": { "type": ["string", "null"] }, "publish_on_merge": { "type": "boolean" }, "url": { "type": ["string", "null"] }, "created_at": { "type": "string" }, "updated_at": { "type": "string" }, "request_id": { "$ref": "res:RequestId" } }, "required": ["id", "object", "target_id", "kind", "state", "created_at", "updated_at", "request_id"] },
212
+ "req:DeliveryId": { "type": "string", "pattern": "^dlv_[a-z0-9]{16}$" },
213
+ "res:PublicationResponse": { "allOf": [{ "$ref": "res:Publication" }, { "type": "object", "properties": { "created_at": { "type": "string" } }, "required": ["created_at"] }, { "$ref": "res:ResponseMetadata" }] },
214
+ "req:PublicationId": { "type": "string", "pattern": "^pub_[a-z0-9]{16}$" },
146
215
  "res:GenerationResponse": { "allOf": [{ "$ref": "res:Generation" }, { "$ref": "res:ResponseMetadata" }] },
147
- "res:Generation": { "type": "object", "additionalProperties": false, "properties": { "id": { "$ref": "res:GenerationId" }, "object": { "type": "string" }, "files_omitted": { "type": "boolean" }, "files_index": { "type": "array", "items": { "$ref": "res:FileStub" } }, "project_id": { "$ref": "res:ProjectId" }, "definition_revision_id": { "anyOf": [{ "$ref": "res:DefinitionRevisionId" }, { "type": "null" }] }, "status": { "$ref": "res:GenerationStatus" }, "trigger": { "$ref": "res:GenerationTrigger" }, "target_id": { "anyOf": [{ "$ref": "res:TargetId" }, { "type": "null" }] }, "generator": { "$ref": "res:GeneratorKind" }, "provenance": { "$ref": "res:GenerationProvenance" }, "meta": { "anyOf": [{ "$ref": "res:GenerationMeta" }, { "type": "null" }] }, "warnings": { "type": "array", "items": { "type": "string" } }, "files": { "type": "array", "items": { "$ref": "res:GeneratedFile" } }, "error": { "type": ["string", "null"] }, "created_at": { "type": "string" }, "request_id": { "$ref": "res:RequestId" } }, "required": ["id", "object", "project_id", "definition_revision_id", "status", "trigger", "target_id", "generator", "provenance", "meta", "warnings", "error", "created_at"] },
148
- "res:FileStub": { "type": "object", "properties": { "path": { "type": "string" }, "bytes": { "type": "integer" } }, "required": ["path", "bytes"] },
149
- "res:DefinitionRevisionList": { "type": "object", "additionalProperties": false, "properties": { "object": { "$ref": "res:ListObject" }, "data": { "type": "array", "items": { "$ref": "res:DefinitionRevision" } }, "has_more": { "type": "boolean" }, "next_cursor": { "type": ["string", "null"] }, "request_id": { "$ref": "res:RequestId" } }, "required": ["object", "data", "has_more", "next_cursor", "request_id"] },
150
- "res:DefinitionRevision": { "type": "object", "additionalProperties": false, "properties": { "id": { "$ref": "res:DefinitionRevisionId" }, "object": { "type": "string" }, "project_id": { "$ref": "res:ProjectId" }, "definition_id": { "$ref": "res:DefinitionId" }, "format": { "type": "string" }, "document_count": { "type": "integer", "minimum": 1 }, "documents": { "type": "array", "items": { "$ref": "res:DefinitionDocument" } }, "sha256": { "type": "string", "pattern": "^[a-f0-9]{64}$" }, "size_bytes": { "type": "integer", "minimum": 0 }, "source": { "anyOf": [{ "$ref": "res:DefinitionRevisionSource" }, { "type": "null" }] }, "created_at": { "type": "string" }, "request_id": { "$ref": "res:RequestId" } }, "required": ["id", "object", "project_id", "definition_id", "format", "document_count", "sha256", "size_bytes", "source", "created_at"] },
151
- "res:DefinitionDocument": { "type": "object", "additionalProperties": false, "properties": { "id": { "$ref": "res:DefinitionDocumentId" }, "role": { "type": "string" }, "coordinate": { "type": "string" }, "sha256": { "type": "string", "pattern": "^[a-f0-9]{64}$" }, "size_bytes": { "type": "integer", "minimum": 0 } }, "required": ["id", "role", "coordinate", "sha256", "size_bytes"] },
216
+ "res:Generation": { "type": "object", "properties": { "id": { "$ref": "res:GenerationId" }, "object": { "type": "string" }, "files_omitted": { "type": "boolean" }, "files_index": { "type": "array", "items": { "$ref": "res:FileStub" } }, "project_id": { "$ref": "res:ProjectId" }, "definition_revision_id": { "anyOf": [{ "$ref": "res:DefinitionRevisionId" }, { "type": "null" }] }, "status": { "$ref": "res:GenerationStatus" }, "trigger": { "$ref": "res:GenerationTrigger" }, "target_id": { "anyOf": [{ "$ref": "res:TargetId" }, { "type": "null" }] }, "generator": { "$ref": "res:GeneratorKind" }, "provenance": { "$ref": "res:GenerationProvenance" }, "meta": { "anyOf": [{ "$ref": "res:GenerationMeta" }, { "type": "null" }] }, "warnings": { "type": "array", "items": { "type": "string" } }, "files": { "type": "array", "items": { "$ref": "res:GeneratedFile" } }, "errors": { "type": "array", "items": { "$ref": "res:DomainError" } }, "created_at": { "type": "string" }, "request_id": { "$ref": "res:RequestId" } }, "required": ["id", "object", "project_id", "definition_revision_id", "status", "trigger", "target_id", "generator", "provenance", "meta", "warnings", "errors", "created_at"] },
217
+ "res:FileStub": { "type": "object", "properties": { "path": { "type": "string" }, "bytes": { "type": "integer" }, "mode": { "type": "string" } }, "required": ["path", "bytes", "mode"] },
218
+ "req:GenerationId": { "type": "string", "pattern": "^gen_[a-z0-9]{16}$" },
219
+ "res:DefinitionRevisionList": { "type": "object", "properties": { "object": { "$ref": "res:ListObject" }, "data": { "type": "array", "items": { "$ref": "res:DefinitionRevision" } }, "has_more": { "type": "boolean" }, "next_cursor": { "type": ["string", "null"] }, "request_id": { "$ref": "res:RequestId" } }, "required": ["object", "data", "has_more", "next_cursor", "request_id"] },
220
+ "res:DefinitionRevision": { "type": "object", "properties": { "id": { "$ref": "res:DefinitionRevisionId" }, "object": { "type": "string" }, "project_id": { "$ref": "res:ProjectId" }, "definition_id": { "$ref": "res:DefinitionId" }, "format": { "type": "string" }, "document_count": { "type": "integer", "minimum": 1 }, "documents": { "type": "array", "items": { "$ref": "res:DefinitionDocument" } }, "sha256": { "type": "string", "pattern": "^[a-f0-9]{64}$" }, "size_bytes": { "type": "integer", "minimum": 0 }, "source": { "anyOf": [{ "$ref": "res:DefinitionRevisionSource" }, { "type": "null" }] }, "created_at": { "type": "string" }, "request_id": { "$ref": "res:RequestId" } }, "required": ["id", "object", "project_id", "definition_id", "format", "document_count", "sha256", "size_bytes", "source", "created_at"] },
221
+ "res:DefinitionDocument": { "type": "object", "properties": { "id": { "$ref": "res:DefinitionDocumentId" }, "role": { "type": "string" }, "coordinate": { "type": "string" }, "sha256": { "type": "string", "pattern": "^[a-f0-9]{64}$" }, "size_bytes": { "type": "integer", "minimum": 0 } }, "required": ["id", "role", "coordinate", "sha256", "size_bytes"] },
152
222
  "res:DefinitionDocumentId": { "type": "string", "pattern": "^doc_[a-z0-9]{16}$" },
153
- "res:DefinitionRevisionSource": { "anyOf": [{ "$ref": "res:UrlDefinitionRevisionSource" }, { "$ref": "res:RepositoryDefinitionRevisionSource" }, { "type": "object" }] },
154
- "res:UrlDefinitionRevisionSource": { "type": "object", "additionalProperties": false, "properties": { "kind": { "type": "string" }, "url": { "type": "string" } }, "required": ["kind", "url"] },
155
- "res:RepositoryDefinitionRevisionSource": { "type": "object", "additionalProperties": false, "properties": { "kind": { "type": "string" }, "repository": { "$ref": "res:RepositoryReference" }, "path": { "type": "string" }, "ref": { "type": ["string", "null"] }, "commit_sha": { "type": ["string", "null"] } }, "required": ["kind", "repository", "path"] },
223
+ "res:DefinitionRevisionSource": { "anyOf": [{ "$ref": "res:UrlDefinitionRevisionSource" }, { "$ref": "res:RepositoryDefinitionRevisionSource" }], "responseDiscriminator": { "propertyName": "kind", "mapping": { "url": { "$ref": "res:UrlDefinitionRevisionSource" }, "repository": { "$ref": "res:RepositoryDefinitionRevisionSource" } } } },
224
+ "res:UrlDefinitionRevisionSource": { "type": "object", "properties": { "kind": { "type": "string" }, "url": { "type": "string" } }, "required": ["kind", "url"] },
225
+ "res:RepositoryDefinitionRevisionSource": { "type": "object", "properties": { "kind": { "type": "string" }, "repository": { "$ref": "res:RepositoryReferenceResponse" }, "path": { "type": "string" }, "ref": { "type": ["string", "null"] }, "commit_sha": { "type": ["string", "null"] } }, "required": ["kind", "repository", "path"] },
156
226
  "res:DefinitionRevisionResponse": { "allOf": [{ "$ref": "res:DefinitionRevision" }, { "$ref": "res:ResponseMetadata" }] },
157
- "res:Account": { "type": "object", "additionalProperties": false, "properties": { "id": { "type": "string", "pattern": "^org_[A-Za-z0-9]+$" }, "object": { "type": "string" }, "name": { "type": "string" }, "plan": { "type": "string" }, "created_at": { "type": "string" }, "request_id": { "$ref": "res:RequestId" } }, "required": ["id", "object", "name", "plan", "created_at", "request_id"] },
158
- "res:ApiKeyList": { "type": "object", "additionalProperties": false, "properties": { "object": { "$ref": "res:ListObject" }, "data": { "type": "array", "items": { "$ref": "res:ApiKey" } }, "has_more": { "type": "boolean" }, "next_cursor": { "type": ["string", "null"] }, "request_id": { "$ref": "res:RequestId" } }, "required": ["object", "data", "has_more", "next_cursor", "request_id"] },
159
- "res:ApiKey": { "type": "object", "additionalProperties": false, "properties": { "id": { "type": "string" }, "object": { "type": "string" }, "name": { "type": "string" }, "last4": { "type": "string" }, "revoked": { "type": "boolean" }, "last_used_at": { "type": ["string", "null"] }, "created_at": { "type": "string" }, "request_id": { "$ref": "res:RequestId" } }, "required": ["id", "object", "name", "last4", "revoked", "last_used_at", "created_at"] },
227
+ "req:DefinitionRevisionId": { "type": "string", "pattern": "^drev_[a-z0-9]{16}$" },
228
+ "req:DefinitionDocumentId": { "type": "string", "pattern": "^doc_[a-z0-9]{16}$" },
229
+ "res:DefinitionDocumentResponse": { "type": "object", "properties": { "id": { "$ref": "res:DefinitionDocumentId" }, "object": { "type": "string" }, "definition_revision_id": { "$ref": "res:DefinitionRevisionId" }, "role": { "type": "string" }, "coordinate": { "type": "string" }, "sha256": { "type": "string", "pattern": "^[a-f0-9]{64}$" }, "size_bytes": { "type": "integer", "minimum": 0 }, "created_at": { "type": "string" }, "request_id": { "$ref": "res:RequestId" } }, "required": ["id", "object", "definition_revision_id", "role", "coordinate", "sha256", "size_bytes", "created_at", "request_id"] },
230
+ "res:Account": { "type": "object", "properties": { "id": { "type": "string", "pattern": "^org_[A-Za-z0-9]+$" }, "object": { "type": "string" }, "name": { "type": "string" }, "plan": { "type": "string" }, "created_at": { "type": "string" }, "request_id": { "$ref": "res:RequestId" } }, "required": ["id", "object", "name", "plan", "created_at", "request_id"] },
231
+ "res:ApiKeyList": { "type": "object", "properties": { "object": { "$ref": "res:ListObject" }, "data": { "type": "array", "items": { "$ref": "res:ApiKey" } }, "has_more": { "type": "boolean" }, "next_cursor": { "type": ["string", "null"] }, "request_id": { "$ref": "res:RequestId" } }, "required": ["object", "data", "has_more", "next_cursor", "request_id"] },
232
+ "res:ApiKey": { "type": "object", "properties": { "id": { "type": "string" }, "object": { "type": "string" }, "name": { "type": "string" }, "last4": { "type": "string" }, "revoked": { "type": "boolean" }, "last_used_at": { "type": ["string", "null"] }, "created_at": { "type": "string" }, "request_id": { "$ref": "res:RequestId" } }, "required": ["id", "object", "name", "last4", "revoked", "last_used_at", "created_at"] },
160
233
  "res:ApiKeyResponse": { "allOf": [{ "$ref": "res:ApiKey" }, { "$ref": "res:ResponseMetadata" }] },
161
234
  };