@typeship-ax/cli 0.10.0 → 0.21.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 (109) hide show
  1. package/AGENTS.md +10 -5
  2. package/README.md +5 -5
  3. package/api.json +9773 -4501
  4. package/api.md +501 -271
  5. package/dist/api-identity.d.ts.map +1 -1
  6. package/dist/api-identity.js +6 -1
  7. package/dist/cli-agent.d.ts +5 -5
  8. package/dist/cli-agent.d.ts.map +1 -1
  9. package/dist/cli-agent.js +14 -10
  10. package/dist/cli.js +158 -82
  11. package/dist/core/http.d.ts +29 -16
  12. package/dist/core/http.d.ts.map +1 -1
  13. package/dist/core/http.js +108 -25
  14. package/dist/core/pagination.d.ts +8 -8
  15. package/dist/core/pagination.d.ts.map +1 -1
  16. package/dist/core/pagination.js +7 -16
  17. package/dist/errors.d.ts +20 -13
  18. package/dist/errors.d.ts.map +1 -1
  19. package/dist/errors.js +29 -20
  20. package/dist/index.d.ts +37 -19
  21. package/dist/index.d.ts.map +1 -1
  22. package/dist/index.js +42 -18
  23. package/dist/ops.d.ts +5 -1
  24. package/dist/ops.d.ts.map +1 -1
  25. package/dist/ops.js +42 -35
  26. package/dist/polling-login.d.ts.map +1 -1
  27. package/dist/polling-login.js +11 -1
  28. package/dist/resources/api-keys.d.ts +44 -18
  29. package/dist/resources/api-keys.d.ts.map +1 -1
  30. package/dist/resources/api-keys.js +46 -14
  31. package/dist/resources/deliveries.d.ts +46 -0
  32. package/dist/resources/deliveries.d.ts.map +1 -0
  33. package/dist/resources/deliveries.js +70 -0
  34. package/dist/resources/drafts.d.ts +155 -0
  35. package/dist/resources/drafts.d.ts.map +1 -0
  36. package/dist/resources/drafts.js +230 -0
  37. package/dist/resources/files.d.ts +23 -0
  38. package/dist/resources/files.d.ts.map +1 -0
  39. package/dist/resources/files.js +38 -0
  40. package/dist/resources/generate.d.ts +49 -20
  41. package/dist/resources/generate.d.ts.map +1 -1
  42. package/dist/resources/generate.js +56 -14
  43. package/dist/resources/generations.d.ts +70 -18
  44. package/dist/resources/generations.d.ts.map +1 -1
  45. package/dist/resources/generations.js +84 -16
  46. package/dist/resources/organization.d.ts +18 -0
  47. package/dist/resources/organization.d.ts.map +1 -0
  48. package/dist/resources/organization.js +32 -0
  49. package/dist/resources/projects.d.ts +87 -124
  50. package/dist/resources/projects.d.ts.map +1 -1
  51. package/dist/resources/projects.js +70 -173
  52. package/dist/resources/publications.d.ts +46 -0
  53. package/dist/resources/publications.d.ts.map +1 -0
  54. package/dist/resources/publications.js +70 -0
  55. package/dist/resources/releases.d.ts +66 -0
  56. package/dist/resources/releases.d.ts.map +1 -0
  57. package/dist/resources/releases.js +101 -0
  58. package/dist/resources/spec-revisions.d.ts +85 -0
  59. package/dist/resources/spec-revisions.d.ts.map +1 -0
  60. package/dist/resources/spec-revisions.js +116 -0
  61. package/dist/resources/specs.d.ts +72 -0
  62. package/dist/resources/specs.d.ts.map +1 -0
  63. package/dist/resources/specs.js +107 -0
  64. package/dist/resources/targets.d.ts +85 -105
  65. package/dist/resources/targets.d.ts.map +1 -1
  66. package/dist/resources/targets.js +70 -163
  67. package/dist/schemas.d.ts +1 -0
  68. package/dist/schemas.d.ts.map +1 -1
  69. package/dist/schemas.js +194 -139
  70. package/dist/types.d.ts +2626 -1141
  71. package/dist/types.d.ts.map +1 -1
  72. package/dist/types.js +90 -11
  73. package/package.json +3 -3
  74. package/src/api-identity.ts +6 -2
  75. package/src/cli-agent.ts +17 -13
  76. package/src/cli.ts +145 -77
  77. package/src/core/http.ts +106 -30
  78. package/src/core/pagination.ts +13 -23
  79. package/src/errors.ts +30 -20
  80. package/src/index.ts +46 -24
  81. package/src/ops.ts +47 -36
  82. package/src/polling-login.ts +10 -1
  83. package/src/resources/api-keys.ts +87 -19
  84. package/src/resources/deliveries.ts +139 -0
  85. package/src/resources/drafts.ts +422 -0
  86. package/src/resources/files.ts +68 -0
  87. package/src/resources/generate.ts +81 -19
  88. package/src/resources/generations.ts +167 -29
  89. package/src/resources/organization.ts +53 -0
  90. package/src/resources/projects.ts +129 -322
  91. package/src/resources/publications.ts +139 -0
  92. package/src/resources/releases.ts +199 -0
  93. package/src/resources/spec-revisions.ts +237 -0
  94. package/src/resources/specs.ts +200 -0
  95. package/src/resources/targets.ts +135 -304
  96. package/src/schemas.ts +195 -140
  97. package/src/types.ts +2793 -1177
  98. package/dist/resources/account.d.ts +0 -18
  99. package/dist/resources/account.d.ts.map +0 -1
  100. package/dist/resources/account.js +0 -27
  101. package/dist/resources/definition-revisions.d.ts +0 -58
  102. package/dist/resources/definition-revisions.d.ts.map +0 -1
  103. package/dist/resources/definition-revisions.js +0 -114
  104. package/dist/resources/definitions.d.ts +0 -35
  105. package/dist/resources/definitions.d.ts.map +0 -1
  106. package/dist/resources/definitions.js +0 -60
  107. package/src/resources/account.ts +0 -46
  108. package/src/resources/definition-revisions.ts +0 -207
  109. package/src/resources/definitions.ts +0 -122
package/dist/schemas.js CHANGED
@@ -5,170 +5,225 @@
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.retrieveDraft": { "res": { "$ref": "res:TargetDraftResponse" } },
29
- "targets.updateDraft": { "req": { "$ref": "req:TargetDraftUpdate" }, "res": { "$ref": "res:TargetDraftResponse" } },
30
- "targets.adoptRelease": { "req": { "$ref": "req:TargetAdoption" }, "res": { "$ref": "res:TargetReleaseResponse" } },
31
- "targets.retrieveRelease": { "res": { "$ref": "res:TargetReleaseResponse" } },
32
- "targets.republishRelease": { "res": { "$ref": "res:TargetReleaseResponse" } },
33
- "generations.retrieve": { "res": { "$ref": "res:GenerationResponse" } },
34
- "generations.retrieveFile": { "res": { "type": "string" } },
35
- "definitionRevisions.list": { "res": { "$ref": "res:DefinitionRevisionList" } },
36
- "definitionRevisions.retrieve": { "res": { "$ref": "res:DefinitionRevisionResponse" } },
37
- "definitionRevisions.retrieveContent": { "res": { "type": "string" } },
38
- "definitionRevisions.retrieveDocumentContent": { "res": { "type": "string" } },
39
- "account.retrieve": { "res": { "$ref": "res:Account" } },
40
- "apiKeys.list": { "res": { "$ref": "res:ApiKeyList" } },
41
- "apiKeys.revoke": { "res": { "$ref": "res:ApiKeyResponse" } },
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.get": { "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.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": "^[!-~]+$" } } },
16
+ "specs.get": { "res": { "$ref": "res:Spec" }, "params": { "path.spec_id": { "$ref": "req:SpecId" } } },
17
+ "specs.update": { "req": { "$ref": "req:SpecUpdateRequest" }, "res": { "$ref": "res:Spec" }, "params": { "path.spec_id": { "$ref": "req:SpecId" }, "header.If-Match": { "type": "string", "minLength": 1, "maxLength": 1024 }, "header.Idempotency-Key": { "type": "string", "minLength": 1, "maxLength": 255, "pattern": "^[!-~]+$" } } },
18
+ "specs.refresh": { "res": { "$ref": "res:Spec" }, "params": { "path.spec_id": { "$ref": "req:SpecId" }, "header.Idempotency-Key": { "type": "string", "minLength": 1, "maxLength": 255, "pattern": "^[!-~]+$" } } },
19
+ "specRevisions.list": { "res": { "$ref": "res:SpecRevisionList" }, "params": { "query.limit": { "type": "integer", "minimum": 1, "maximum": 100 }, "query.cursor": { "type": "string", "minLength": 1, "maxLength": 2048, "pattern": "^[A-Za-z0-9_-]+$" }, "query.spec_id": { "$ref": "req:SpecId" } } },
20
+ "specRevisions.get": { "res": { "$ref": "res:SpecRevisionResponse" }, "params": { "path.spec_revision_id": { "$ref": "req:SpecRevisionId" }, "query.include": { "type": "string", "enum": ["diagnostics"] } } },
21
+ "specRevisions.listFiles": { "res": { "$ref": "res:SpecRevisionFileList" }, "params": { "path.spec_revision_id": { "$ref": "req:SpecRevisionId" }, "query.limit": { "type": "integer", "minimum": 1, "maximum": 100 }, "query.cursor": { "type": "string", "minLength": 1, "maxLength": 2048, "pattern": "^[A-Za-z0-9_-]+$" } } },
22
+ "targets.list": { "res": { "$ref": "res:TargetList" }, "params": { "query.limit": { "type": "integer", "minimum": 1, "maximum": 100 }, "query.cursor": { "type": "string", "minLength": 1, "maxLength": 2048, "pattern": "^[A-Za-z0-9_-]+$" }, "query.project_id": { "$ref": "req:ProjectId" } } },
23
+ "targets.create": { "req": { "$ref": "req:TargetCreateRequest" }, "res": { "$ref": "res:TargetResponse" }, "params": { "header.Idempotency-Key": { "type": "string", "minLength": 1, "maxLength": 255, "pattern": "^[!-~]+$" } } },
24
+ "targets.get": { "res": { "$ref": "res:TargetResponse" }, "params": { "path.target_id": { "$ref": "req:TargetId" } } },
25
+ "targets.delete": { "res": { "$ref": "res:DeletedTarget" }, "params": { "path.target_id": { "$ref": "req:TargetId" }, "header.If-Match": { "type": "string", "minLength": 1, "maxLength": 1024 } } },
26
+ "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 } } },
27
+ "targets.adopt": { "req": { "$ref": "req:TargetAdoption" }, "res": { "$ref": "res:ReleaseResponse" }, "params": { "path.target_id": { "$ref": "req:TargetId" }, "header.Idempotency-Key": { "type": "string", "minLength": 1, "maxLength": 255, "pattern": "^[!-~]+$" } } },
28
+ "drafts.list": { "res": { "$ref": "res:DraftList" }, "params": { "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" }, "query.status": { "$ref": "req:DraftStatus" } } },
29
+ "drafts.get": { "res": { "$ref": "res:DraftResponse" }, "params": { "path.draft_id": { "$ref": "req:DraftId" } } },
30
+ "drafts.update": { "req": { "$ref": "req:DraftUpdateRequest" }, "res": { "$ref": "res:DraftResponse" }, "params": { "path.draft_id": { "$ref": "req:DraftId" }, "header.If-Match": { "type": "string", "minLength": 1, "maxLength": 1024 } } },
31
+ "drafts.listFiles": { "res": { "$ref": "res:DraftFileList" }, "params": { "path.draft_id": { "$ref": "req:DraftId" }, "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_-]+$" } } },
32
+ "drafts.resolve": { "req": { "$ref": "req:DraftResolveRequest" }, "res": { "$ref": "res:DraftResponse" }, "params": { "path.draft_id": { "$ref": "req:DraftId" } } },
33
+ "drafts.recover": { "req": { "$ref": "req:DraftRecoverRequest" }, "res": { "$ref": "res:DraftResponse" }, "params": { "path.draft_id": { "$ref": "req:DraftId" } } },
34
+ "releases.list": { "res": { "$ref": "res:ReleaseList" }, "params": { "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" } } },
35
+ "releases.get": { "res": { "$ref": "res:ReleaseResponse" }, "params": { "path.release_id": { "$ref": "req:ReleaseId" } } },
36
+ "releases.republish": { "res": { "$ref": "res:ReleaseResponse" }, "params": { "path.release_id": { "$ref": "req:ReleaseId" }, "header.Idempotency-Key": { "type": "string", "minLength": 1, "maxLength": 255, "pattern": "^[!-~]+$" } } },
37
+ "deliveries.list": { "res": { "$ref": "res:DeliveryList" }, "params": { "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" } } },
38
+ "deliveries.get": { "res": { "$ref": "res:DeliveryResponse" }, "params": { "path.delivery_id": { "$ref": "req:DeliveryId" } } },
39
+ "publications.list": { "res": { "$ref": "res:PublicationList" }, "params": { "query.limit": { "type": "integer", "minimum": 1, "maximum": 100 }, "query.cursor": { "type": "string", "minLength": 1, "maxLength": 2048, "pattern": "^[A-Za-z0-9_-]+$" }, "query.release_id": { "$ref": "req:ReleaseId" } } },
40
+ "publications.get": { "res": { "$ref": "res:PublicationResponse" }, "params": { "path.publication_id": { "$ref": "req:PublicationId" } } },
41
+ "generations.list": { "res": { "$ref": "res:GenerationList" }, "params": { "query.limit": { "type": "integer", "minimum": 1, "maximum": 100 }, "query.cursor": { "type": "string", "minLength": 1, "maxLength": 2048, "pattern": "^[A-Za-z0-9_-]+$" }, "query.project_id": { "$ref": "req:ProjectId" }, "query.target_id": { "$ref": "req:TargetId" }, "query.status": { "$ref": "req:GenerationStatus" } } },
42
+ "generations.get": { "res": { "$ref": "res:GenerationResponse" }, "params": { "path.generation_id": { "$ref": "req:GenerationId" } } },
43
+ "generations.listFiles": { "res": { "$ref": "res:FileList" }, "params": { "path.generation_id": { "$ref": "req:GenerationId" }, "query.limit": { "type": "integer", "minimum": 1, "maximum": 100 }, "query.cursor": { "type": "string", "minLength": 1, "maxLength": 2048, "pattern": "^[A-Za-z0-9_-]+$" } } },
44
+ "files.get": { "res": { "$ref": "res:FileResponse" }, "params": { "path.file_id": { "$ref": "req:FileId" }, "query.cursor": { "type": "string", "minLength": 1, "maxLength": 2048, "pattern": "^[A-Za-z0-9_-]+$" } } },
45
+ "organization.get": { "res": { "$ref": "res:Organization" } },
46
+ "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_-]+$" } } },
47
+ "apiKeys.get": { "res": { "$ref": "res:ApiKeyResponse" }, "params": { "path.api_key_id": { "type": "string" } } },
48
+ "apiKeys.revoke": { "res": { "$ref": "res:ApiKeyResponse" }, "params": { "path.api_key_id": { "type": "string" }, "header.If-Match": { "type": "string", "minLength": 1, "maxLength": 1024 } } },
42
49
  };
43
50
  export const DEFS = {
44
- "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"] },
45
- "req:DefinitionInput": { "anyOf": [{ "$ref": "req:UrlDefinitionInput" }, { "$ref": "req:InlineDefinitionInput" }] },
46
- "req:UrlDefinitionInput": { "type": "object", "additionalProperties": false, "properties": { "url": { "type": "string", "pattern": "^https?://" }, "headers": { "type": "object" } }, "required": ["url"] },
47
- "req:InlineDefinitionInput": { "type": "object", "additionalProperties": false, "properties": { "inline": { "type": "string" } }, "required": ["inline"] },
48
- "req:GeneratorKind": { "type": "string", "enum": ["typescript-sdk", "python-sdk", "go-sdk", "cli", "mcp"] },
51
+ "req:GenerateRequest": { "type": "object", "additionalProperties": false, "properties": { "spec": { "$ref": "req:SpecInput" }, "target": { "type": "object", "additionalProperties": false, "properties": { "type": { "$ref": "req:GeneratorKind" } }, "required": ["type"] }, "package_name": { "type": "string" }, "module_path": { "type": "string" }, "go_sdk": { "$ref": "req:GoSdkDescriptor" }, "config": { "$ref": "req:Config" } }, "required": ["spec", "target"] },
52
+ "req:SpecInput": { "anyOf": [{ "$ref": "req:UrlSpecInput" }, { "$ref": "req:InlineSpecInput" }] },
53
+ "req:UrlSpecInput": { "type": "object", "additionalProperties": false, "properties": { "url": { "type": "string", "pattern": "^https?://" }, "headers": { "type": "object" } }, "required": ["url"] },
54
+ "req:InlineSpecInput": { "type": "object", "additionalProperties": false, "properties": { "inline": { "type": "string" } }, "required": ["inline"] },
55
+ "req:GeneratorKind": { "type": "string", "enum": ["cli", "go_cli", "mcp", "typescript_sdk", "python_sdk", "go_sdk"] },
56
+ "req:GoSdkDescriptor": { "type": "object", "additionalProperties": false, "properties": { "module_path": { "type": "string" }, "version": { "type": "string" }, "spec_digest": { "type": "string", "pattern": "^[a-f0-9]{64}$" }, "package_name": { "type": "string" } }, "required": ["module_path", "version", "spec_digest"] },
49
57
  "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"] } } },
50
58
  "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" } } },
51
59
  "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" } } },
52
60
  "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"] } } },
53
61
  "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"] } } },
54
- "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 } } },
55
- "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"] } } },
62
+ "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" }] }] },
63
+ "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"] } } },
56
64
  "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" } } },
57
65
  "req:ReadmeBehavior": { "type": "object", "additionalProperties": false, "properties": { "quickstart_operation": { "type": ["string", "null"], "maxLength": 500 } } },
58
66
  "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"] } } },
59
- "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"] },
60
- "res:GeneratedFile": { "type": "object", "properties": { "path": { "type": "string" }, "content": { "type": "string" } }, "required": ["path", "content"] },
61
- "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"] },
62
- "res:GeneratorKind": { "type": "string" },
63
- "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"] },
64
- "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"] },
67
+ "res:GenerationResult": { "type": "object", "properties": { "files": { "type": "array", "items": { "$ref": "res:GeneratedFile" } }, "download": { "$ref": "res:GenerationDownload" }, "warnings": { "type": "array", "items": { "$ref": "res:GenerationWarning" } }, "coverage": { "$ref": "res:GenerationCoverage" }, "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", "coverage", "request_id"] },
68
+ "res:GeneratedFile": { "type": "object", "properties": { "path": { "type": "string" }, "content": { "type": "string" }, "mode": { "type": "string" } }, "required": ["path", "content"] },
69
+ "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"] },
70
+ "res:GenerationWarning": { "type": "object", "properties": { "code": { "type": "string" }, "message": { "type": "string" }, "operation": { "type": "string" } }, "required": ["code", "message"] },
71
+ "res:GenerationCoverage": { "type": "object", "properties": { "generated": { "type": "integer", "minimum": 0 }, "omitted": { "type": "integer", "minimum": 0 }, "total": { "type": "integer", "minimum": 0 }, "omitted_operations": { "type": "array", "items": { "type": "string" } }, "reason": { "type": "string" }, "signup_url": { "type": "string" }, "upgrade_url": { "type": "string" } }, "required": ["generated", "omitted", "total", "omitted_operations"] },
65
72
  "res:RequestId": { "type": "string", "pattern": "^req_[a-z0-9]{16}$" },
66
- "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"] },
73
+ "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"] },
67
74
  "res:ListObject": { "type": "string" },
68
- "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"] },
75
+ "res:ProjectSummary": { "type": "object", "properties": { "id": { "$ref": "res:ProjectId" }, "object": { "type": "string" }, "name": { "type": "string", "maxLength": 80 }, "spec_id": { "$ref": "res:SpecId" }, "auto_generate": { "type": "boolean" }, "created_at": { "type": "string" }, "updated_at": { "type": "string" } }, "required": ["id", "object", "name", "spec_id", "auto_generate", "created_at", "updated_at"] },
69
76
  "res:ProjectId": { "type": "string", "pattern": "^prj_[a-z0-9]{16}$" },
70
- "res:DefinitionId": { "type": "string", "pattern": "^def_[a-z0-9]{16}$" },
71
- "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"] },
72
- "req:DefinitionFields": { "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" } }, "required": ["source"] },
73
- "req:DefinitionSourceInput": { "anyOf": [{ "$ref": "req:UrlDefinitionSourceInput" }, { "$ref": "req:RepositoryDefinitionSourceInput" }] },
74
- "req:UrlDefinitionSourceInput": { "type": "object", "additionalProperties": false, "properties": { "kind": { "type": "string", "const": "url" }, "url": { "type": "string", "maxLength": 2048, "pattern": "^https?://" }, "headers": { "anyOf": [{ "type": "object" }, { "type": "null" }] } }, "required": ["kind", "url"] },
75
- "req:RepositoryDefinitionSourceInput": { "type": "object", "additionalProperties": false, "properties": { "kind": { "type": "string", "const": "repository" }, "repository": { "$ref": "req:RepositoryReference" }, "path": { "type": "string", "minLength": 1, "maxLength": 4096, "pattern": "^(?!/)(?!.*\\.\\.).+$" } }, "required": ["kind", "repository", "path"] },
76
- "req:RepositoryReference": { "type": "object", "additionalProperties": false, "properties": { "provider": { "type": "string", "enum": ["github"] }, "identifier": { "type": "string", "maxLength": 512 } }, "required": ["provider", "identifier"] },
77
- "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"] },
77
+ "res:SpecId": { "type": "string", "pattern": "^spec_[a-z0-9]{16}$" },
78
+ "req:CreateProjectRequest": { "type": "object", "additionalProperties": false, "properties": { "name": { "type": "string", "minLength": 1, "maxLength": 80 }, "spec": { "$ref": "req:SpecFields" }, "targets": { "type": "array", "minItems": 1, "items": { "$ref": "req:InitialTargetFields" } }, "auto_generate": { "type": "boolean" }, "config": { "anyOf": [{ "$ref": "req:ProjectConfig" }, { "type": "null" }] } }, "required": ["name", "spec", "targets"] },
79
+ "req:SpecFields": { "type": "object", "additionalProperties": false, "properties": { "source": { "$ref": "req:SpecSourceInput" }, "patches": { "type": "array", "maxItems": 50, "items": { "$ref": "req:SpecPatch" } }, "graphql": { "anyOf": [{ "$ref": "req:GraphqlSettings" }, { "type": "null" }] }, "diagnostic_policy": { "$ref": "req:DiagnosticPolicy" } }, "required": ["source"] },
80
+ "req:SpecSourceInput": { "anyOf": [{ "$ref": "req:UrlSpecSourceInput" }, { "$ref": "req:RepositorySpecSourceInput" }] },
81
+ "req:UrlSpecSourceInput": { "type": "object", "additionalProperties": false, "properties": { "type": { "type": "string", "const": "url" }, "url": { "$ref": "req:UrlSpecSourceSettingsInput" } }, "required": ["type", "url"] },
82
+ "req:UrlSpecSourceSettingsInput": { "type": "object", "additionalProperties": false, "properties": { "url": { "type": "string", "maxLength": 2048, "pattern": "^https?://" }, "headers": { "anyOf": [{ "type": "object" }, { "type": "null" }] } }, "required": ["url"] },
83
+ "req:RepositorySpecSourceInput": { "type": "object", "additionalProperties": false, "properties": { "type": { "type": "string", "const": "repository" }, "repository": { "$ref": "req:RepositorySpecSourceSettingsInput" } }, "required": ["type", "repository"] },
84
+ "req:RepositorySpecSourceSettingsInput": { "type": "object", "additionalProperties": false, "properties": { "provider": { "$ref": "req:RepositoryProvider" }, "identifier": { "$ref": "req:RepositoryIdentifier" }, "path": { "type": "string", "minLength": 1, "maxLength": 4096, "pattern": "^(?!/)(?!.*\\.\\.).+$" } }, "required": ["provider", "identifier", "path"] },
85
+ "req:RepositoryProvider": { "type": "string", "enum": ["github"] },
86
+ "req:RepositoryIdentifier": { "type": "string", "maxLength": 512 },
87
+ "req:SpecPatch": { "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"] },
78
88
  "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"] },
79
89
  "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"] },
80
- "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"] },
81
- "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"] } } },
90
+ "req:InitialTargetFields": { "type": "object", "additionalProperties": false, "properties": { "name": { "type": "string", "minLength": 1, "maxLength": 80 }, "type": { "$ref": "req:GeneratorKind" }, "status": { "type": "string", "enum": ["active", "disabled"] }, "release_channel": { "type": "string", "enum": ["stable", "prerelease"] }, "checks": { "$ref": "req:TargetChecks" }, "config": { "anyOf": [{ "$ref": "req:TargetConfig" }, { "type": "null" }] }, "deliveries": { "type": "array", "maxItems": 2, "items": { "$ref": "req:DeliveryInput" } } }, "required": ["name", "type"] },
91
+ "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"] } } } },
92
+ "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:TargetCliBehavior" }, "mcp": { "$ref": "req:McpBehavior" }, "readme": { "$ref": "req:ReadmeBehavior" }, "package": { "$ref": "req:PackageBehavior" }, "docs_url": { "type": ["string", "null"] }, "docs_index_url": { "type": ["string", "null"] } } },
82
93
  "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"] } } },
94
+ "req:TargetCliBehavior": { "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"] }, "relay": { "type": "boolean" } } },
83
95
  "req:DeliveryInput": { "anyOf": [{ "$ref": "req:RepositoryDeliveryInput" }, { "$ref": "req:HostedMcpDeliveryInput" }] },
84
- "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"] },
85
- "req:HostedMcpDeliveryInput": { "type": "object", "additionalProperties": false, "properties": { "kind": { "type": "string", "const": "hosted_mcp" } }, "required": ["kind"] },
96
+ "req:RepositoryDeliveryInput": { "type": "object", "additionalProperties": false, "properties": { "type": { "type": "string", "const": "repository" }, "repository": { "$ref": "req:RepositoryDeliverySettingsInput" } }, "required": ["type", "repository"] },
97
+ "req:RepositoryDeliverySettingsInput": { "type": "object", "additionalProperties": false, "properties": { "provider": { "$ref": "req:RepositoryProvider" }, "identifier": { "$ref": "req:RepositoryIdentifier" }, "directory": { "type": ["string", "null"] }, "package_name": { "type": ["string", "null"] }, "module_path": { "type": ["string", "null"] }, "publish_on_merge": { "type": "boolean" } }, "required": ["provider", "identifier"] },
98
+ "req:HostedMcpDeliveryInput": { "type": "object", "additionalProperties": false, "properties": { "type": { "type": "string", "const": "hosted_mcp" } }, "required": ["type"] },
86
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"] } } },
87
- "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"] },
88
- "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"] } } },
89
- "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" } } },
90
- "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"] } } },
91
- "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"] } } },
92
- "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 } } },
93
- "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"] } } },
94
- "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" } } },
95
- "res:ReadmeBehavior": { "type": "object", "additionalProperties": false, "properties": { "quickstart_operation": { "type": ["string", "null"], "maxLength": 500 } } },
96
- "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"] } } },
97
- "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"] },
98
- "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" }] } } },
99
- "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" }, "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"] },
100
- "res:DefinitionRevisionId": { "type": "string", "pattern": "^drev_[a-z0-9]{16}$" },
101
- "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" } }, "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"] },
102
- "res:DiagnosticLocation": { "type": "object", "additionalProperties": false, "properties": { "document": { "type": "string" }, "path": { "type": "string" }, "operation": { "type": "string" }, "evidence": { "type": "string" } }, "required": ["path"] },
103
- "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"] },
104
- "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"] },
105
- "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"] },
106
- "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"] },
107
- "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"] },
108
- "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"] },
109
- "res:DiagnosticQualitySignals": { "type": "object", "additionalProperties": false, "properties": { "suppressed_by_rule": { "type": "array", "items": { "$ref": "res:DiagnosticSuppressionSignal" } }, "stale_suppressions": { "type": "array", "items": { "$ref": "res:DiagnosticSuppression" } } }, "required": ["suppressed_by_rule", "stale_suppressions"] },
110
- "res:DiagnosticSuppressionSignal": { "type": "object", "additionalProperties": false, "properties": { "rule_id": { "type": "string" }, "active_occurrences": { "type": "integer", "minimum": 0 }, "suppressed_occurrences": { "type": "integer", "minimum": 1 } }, "required": ["rule_id", "active_occurrences", "suppressed_occurrences"] },
111
- "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"] },
112
- "req:DiagnosticRemediationRequest": { "type": "object", "additionalProperties": false, "properties": { "diagnostic_ids": { "type": "array", "minItems": 1, "maxItems": 50, "items": { "type": "string" } } }, "required": ["diagnostic_ids"] },
113
- "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"] },
114
- "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"] },
115
- "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"] },
116
- "res:RepositoryReference": { "type": "object", "additionalProperties": false, "properties": { "provider": { "type": "string" }, "identifier": { "type": "string", "maxLength": 512 } }, "required": ["provider", "identifier"] },
117
- "res:RepositoryHealthIssue": { "type": "object", "additionalProperties": false, "properties": { "code": { "type": "string" }, "message": { "type": "string" } }, "required": ["code", "message"] },
118
- "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"] },
119
- "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"] },
120
- "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"] },
100
+ "res:Project": { "type": "object", "properties": { "id": { "$ref": "res:ProjectId" }, "object": { "type": "string" }, "name": { "type": "string", "maxLength": 80 }, "spec_id": { "$ref": "res:SpecId" }, "auto_generate": { "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", "spec_id", "auto_generate", "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"] },
112
+ "req:UpdateProjectRequest": { "type": "object", "additionalProperties": false, "properties": { "name": { "type": "string", "minLength": 1, "maxLength": 80 }, "auto_generate": { "type": "boolean" }, "config": { "anyOf": [{ "$ref": "req:ProjectConfig" }, { "type": "null" }] } } },
113
+ "req:GenerateProjectRequest": { "type": "object", "additionalProperties": false, "properties": { "target_id": { "$ref": "req:TargetId" } } },
114
+ "req:TargetId": { "type": "string", "pattern": "^tgt_[a-z0-9]{16}$" },
115
+ "res:GenerationBatch": { "type": "object", "properties": { "data": { "type": "array", "items": { "$ref": "res:GenerationSummary" } }, "request_id": { "$ref": "res:RequestId" } }, "required": ["data", "request_id"] },
116
+ "res:GenerationSummary": { "allOf": [{ "$ref": "res:Generation" }] },
117
+ "res:Generation": { "type": "object", "properties": { "id": { "$ref": "res:GenerationId" }, "object": { "type": "string" }, "project_id": { "$ref": "res:ProjectId" }, "spec_revision_id": { "anyOf": [{ "$ref": "res:SpecRevisionId" }, { "type": "null" }] }, "status": { "$ref": "res:GenerationStatus" }, "trigger": { "$ref": "res:GenerationTrigger" }, "target_id": { "anyOf": [{ "$ref": "res:TargetId" }, { "type": "null" }] }, "type": { "$ref": "res:GeneratorKind" }, "name": { "type": ["string", "null"] }, "version": { "type": ["string", "null"] }, "warnings": { "type": "array", "items": { "$ref": "res:GenerationWarning" } }, "coverage": { "anyOf": [{ "$ref": "res:GenerationCoverage" }, { "type": "null" }] }, "file_count": { "type": "integer", "minimum": 0 }, "errors": { "type": "array", "items": { "$ref": "res:DomainError" } }, "runtime_ms": { "type": ["integer", "null"], "minimum": 0 }, "created_at": { "type": "string" }, "updated_at": { "type": "string" } }, "required": ["id", "object", "project_id", "spec_revision_id", "status", "trigger", "target_id", "type", "name", "version", "warnings", "coverage", "file_count", "errors", "runtime_ms", "created_at", "updated_at"] },
121
118
  "res:GenerationId": { "type": "string", "pattern": "^gen_[a-z0-9]{16}$" },
119
+ "res:SpecRevisionId": { "type": "string", "pattern": "^srev_[a-z0-9]{16}$" },
122
120
  "res:GenerationStatus": { "type": "string" },
123
121
  "res:GenerationTrigger": { "type": "string" },
124
122
  "res:TargetId": { "type": "string", "pattern": "^tgt_[a-z0-9]{16}$" },
125
- "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"] },
126
- "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"] },
127
- "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"] },
128
- "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"] },
129
- "res:DefinitionSource": { "anyOf": [{ "$ref": "res:UrlDefinitionSource" }, { "$ref": "res:RepositoryDefinitionSource" }, { "type": "object" }] },
130
- "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"] },
131
- "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"] },
132
- "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" } } },
133
- "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" } } },
134
- "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"] },
135
- "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", "null"] }, "proposed_version": { "type": ["string", "null"] }, "proposed_version_source": { "type": ["string", "null"] }, "proposed_version_actor": { "type": ["string", "null"] }, "release_revision": { "type": "integer", "minimum": 0 }, "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", "proposed_version_source", "proposed_version_actor", "release_revision", "config", "deliveries", "created_at", "updated_at"] },
136
- "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"] } } },
137
- "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"] } } },
138
- "res:Delivery": { "anyOf": [{ "$ref": "res:RepositoryDelivery" }, { "$ref": "res:HostedMcpDelivery" }, { "type": "object" }] },
139
- "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"] }, "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"] },
123
+ "res:GeneratorKind": { "type": "string" },
124
+ "res:DomainError": { "allOf": [{ "$ref": "res:ErrorDetail" }, { "type": "object", "properties": { "phase": { "$ref": "res:FailurePhase" } }, "required": ["phase"] }] },
125
+ "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"] },
126
+ "res:ErrorType": { "type": "string" },
127
+ "res:ErrorCode": { "type": "string" },
128
+ "res:FailurePhase": { "type": "string" },
129
+ "res:Spec": { "type": "object", "properties": { "id": { "$ref": "res:SpecId" }, "object": { "type": "string" }, "project_id": { "$ref": "res:ProjectId" }, "source": { "$ref": "res:SpecSource" }, "format": { "type": ["string", "null"] }, "patches": { "type": "array", "items": { "$ref": "res:SpecPatchResponse" } }, "graphql": { "anyOf": [{ "$ref": "res:GraphqlSettingsResponse" }, { "type": "null" }] }, "diagnostic_policy": { "$ref": "res:DiagnosticPolicyResponse" }, "revision_latest_id": { "anyOf": [{ "$ref": "res:SpecRevisionId" }, { "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", "revision_latest_id", "created_at", "updated_at", "request_id"] },
130
+ "res:SpecSource": { "anyOf": [{ "$ref": "res:UrlSpecSource" }, { "$ref": "res:RepositorySpecSource" }], "responseDiscriminator": { "propertyName": "type", "mapping": { "url": { "$ref": "res:UrlSpecSource" }, "repository": { "$ref": "res:RepositorySpecSource" } } } },
131
+ "res:UrlSpecSource": { "type": "object", "properties": { "type": { "type": "string" }, "url": { "$ref": "res:UrlSpecSourceSettings" } }, "required": ["type", "url"] },
132
+ "res:UrlSpecSourceSettings": { "type": "object", "properties": { "url": { "type": "string", "maxLength": 2048, "pattern": "^https?://" }, "headers_configured": { "type": "boolean" } }, "required": ["url", "headers_configured"] },
133
+ "res:RepositorySpecSource": { "type": "object", "properties": { "type": { "type": "string" }, "repository": { "$ref": "res:RepositorySpecSourceSettings" } }, "required": ["type", "repository"] },
134
+ "res:RepositorySpecSourceSettings": { "type": "object", "properties": { "provider": { "$ref": "res:RepositoryProvider" }, "identifier": { "$ref": "res:RepositoryIdentifier" }, "path": { "type": "string", "minLength": 1, "maxLength": 4096, "pattern": "^(?!/)(?!.*\\.\\.).+$" } }, "required": ["provider", "identifier", "path"] },
135
+ "res:RepositoryProvider": { "type": "string" },
136
+ "res:RepositoryIdentifier": { "type": "string", "maxLength": 512 },
137
+ "res:SpecPatchResponse": { "type": "object", "properties": { "op": { "type": "string" }, "path": { "type": "string" }, "value": {}, "to": { "type": ["string", "null"] }, "reason": { "type": ["string", "null"] } }, "required": ["op", "path"] },
138
+ "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" } } },
139
+ "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"] },
140
+ "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"] },
141
+ "req:SpecId": { "type": "string", "pattern": "^spec_[a-z0-9]{16}$" },
142
+ "req:SpecUpdateRequest": { "type": "object", "additionalProperties": false, "properties": { "source": { "$ref": "req:SpecSourceInput" }, "patches": { "type": "array", "maxItems": 50, "items": { "$ref": "req:SpecPatch" } }, "graphql": { "anyOf": [{ "$ref": "req:GraphqlSettings" }, { "type": "null" }] }, "diagnostic_policy": { "$ref": "req:DiagnosticPolicy" } } },
143
+ "res:SpecRevisionList": { "type": "object", "properties": { "object": { "$ref": "res:ListObject" }, "data": { "type": "array", "items": { "$ref": "res:SpecRevision" } }, "has_more": { "type": "boolean" }, "next_cursor": { "type": ["string", "null"] }, "request_id": { "$ref": "res:RequestId" } }, "required": ["object", "data", "has_more", "next_cursor", "request_id"] },
144
+ "res:SpecRevision": { "type": "object", "properties": { "id": { "$ref": "res:SpecRevisionId" }, "object": { "type": "string" }, "project_id": { "$ref": "res:ProjectId" }, "spec_id": { "$ref": "res:SpecId" }, "format": { "type": "string" }, "file_count": { "type": "integer", "minimum": 1 }, "sha256": { "type": "string", "pattern": "^[a-f0-9]{64}$" }, "size_bytes": { "type": "integer", "minimum": 0 }, "source": { "anyOf": [{ "$ref": "res:SpecRevisionSource" }, { "type": "null" }] }, "diagnostic_summary": { "$ref": "res:DiagnosticSummary" }, "diagnostics": { "type": "array", "items": { "$ref": "res:Diagnostic" } }, "patch_diagnostics": { "type": "array", "items": { "$ref": "res:DiagnosticWarning" } }, "created_at": { "type": "string" }, "request_id": { "$ref": "res:RequestId" } }, "required": ["id", "object", "project_id", "spec_id", "format", "file_count", "sha256", "size_bytes", "source", "created_at"] },
145
+ "res:SpecRevisionSource": { "anyOf": [{ "$ref": "res:UrlSpecRevisionSource" }, { "$ref": "res:RepositorySpecRevisionSource" }], "responseDiscriminator": { "propertyName": "type", "mapping": { "url": { "$ref": "res:UrlSpecRevisionSource" }, "repository": { "$ref": "res:RepositorySpecRevisionSource" } } } },
146
+ "res:UrlSpecRevisionSource": { "type": "object", "properties": { "type": { "type": "string" }, "url": { "type": "object", "properties": { "url": { "type": "string" } }, "required": ["url"] } }, "required": ["type", "url"] },
147
+ "res:RepositorySpecRevisionSource": { "type": "object", "properties": { "type": { "type": "string" }, "repository": { "type": "object", "properties": { "provider": { "$ref": "res:RepositoryProvider" }, "identifier": { "$ref": "res:RepositoryIdentifier" }, "path": { "type": "string" }, "ref": { "type": ["string", "null"] }, "commit_sha": { "type": ["string", "null"] } }, "required": ["provider", "identifier", "path"] } }, "required": ["type", "repository"] },
148
+ "res:DiagnosticSummary": { "type": "object", "properties": { "status": { "type": "string" }, "error_count": { "type": "integer", "minimum": 0 }, "warning_count": { "type": "integer", "minimum": 0 }, "suggestion_count": { "type": "integer", "minimum": 0 }, "blocking_count": { "type": "integer", "minimum": 0 }, "baseline_spec_revision_id": { "anyOf": [{ "$ref": "res:SpecRevisionId" }, { "type": "null" }] } }, "required": ["status", "error_count", "warning_count", "suggestion_count", "blocking_count", "baseline_spec_revision_id"] },
149
+ "res:Diagnostic": { "type": "object", "properties": { "id": { "type": "string" }, "object": { "type": "string" }, "blocking": { "type": "boolean" }, "introduced": { "type": "boolean" }, "severity": { "type": "string" }, "category": { "type": "string" }, "title": { "type": "string" }, "message": { "type": "string" }, "surfaces": { "type": "array", "items": { "type": "string" } }, "owner_decision_required": { "type": "boolean" }, "locations": { "type": "array", "minItems": 1, "items": { "$ref": "res:DiagnosticLocation" } }, "fix": { "$ref": "res:DiagnosticFix" }, "authoring_brief": { "type": "string" } }, "required": ["id", "object", "severity", "category", "title", "message", "surfaces", "owner_decision_required", "blocking", "introduced", "locations", "authoring_brief"] },
150
+ "res:DiagnosticLocation": { "type": "object", "properties": { "file_path": { "type": "string" }, "file_id": { "$ref": "res:FileId" }, "path": { "type": "string" }, "operation": { "type": "string" }, "evidence": { "type": "string" } }, "required": ["path"] },
151
+ "res:FileId": { "type": "string", "pattern": "^file_[a-z0-9]{16}$" },
152
+ "res:DiagnosticFix": { "type": "object", "properties": { "title": { "type": "string" }, "type": { "type": "string" }, "patches": { "type": "array", "items": { "$ref": "res:SpecPatchResponse" } }, "instructions": { "type": "string" } }, "required": ["title", "type"] },
153
+ "res:DiagnosticWarning": { "type": "object", "properties": { "code": { "type": "string" }, "message": { "type": "string" } }, "required": ["code", "message"] },
154
+ "res:SpecRevisionResponse": { "allOf": [{ "$ref": "res:SpecRevision" }, { "$ref": "res:ResponseMetadata" }] },
155
+ "res:ResponseMetadata": { "type": "object", "properties": { "request_id": { "$ref": "res:RequestId" } }, "required": ["request_id"] },
156
+ "req:SpecRevisionId": { "type": "string", "pattern": "^srev_[a-z0-9]{16}$" },
157
+ "res:SpecRevisionFileList": { "type": "object", "properties": { "object": { "$ref": "res:ListObject" }, "data": { "type": "array", "items": { "$ref": "res:SpecRevisionFile" } }, "has_more": { "type": "boolean" }, "next_cursor": { "type": ["string", "null"] }, "request_id": { "$ref": "res:RequestId" } }, "required": ["object", "data", "has_more", "next_cursor", "request_id"] },
158
+ "res:SpecRevisionFile": { "allOf": [{ "$ref": "res:File" }, { "type": "object", "properties": { "role": { "type": "string" } }, "required": ["role"] }] },
159
+ "res:File": { "type": "object", "properties": { "id": { "$ref": "res:FileId" }, "object": { "type": "string" }, "path": { "type": "string" }, "size_bytes": { "type": "integer", "minimum": 0 }, "sha256": { "type": "string", "pattern": "^[a-f0-9]{64}$" }, "encoding": { "type": "string" }, "mode": { "anyOf": [{ "$ref": "res:GitFileMode" }, { "type": "null" }] }, "created_at": { "type": "string" } }, "required": ["id", "object", "path", "size_bytes", "sha256", "encoding", "mode", "created_at"] },
160
+ "res:GitFileMode": { "type": "string" },
161
+ "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"] },
162
+ "res:Target": { "type": "object", "properties": { "id": { "$ref": "res:TargetId" }, "object": { "type": "string" }, "project_id": { "$ref": "res:ProjectId" }, "spec_id": { "$ref": "res:SpecId" }, "name": { "type": "string" }, "type": { "$ref": "res:GeneratorKind" }, "dependency": { "anyOf": [{ "$ref": "res:TargetDependency" }, { "type": "null" }] }, "status": { "type": "string" }, "release_channel": { "type": "string" }, "version_current": { "type": ["string", "null"] }, "draft_id": { "$ref": "res:DraftId" }, "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", "spec_id", "name", "type", "dependency", "status", "release_channel", "version_current", "draft_id", "checks", "config", "deliveries", "created_at", "updated_at"] },
163
+ "res:TargetDependency": { "type": "object", "properties": { "type": { "type": "string" }, "target_id": { "$ref": "res:TargetId" } }, "required": ["type", "target_id"] },
164
+ "res:DraftId": { "type": "string", "pattern": "^drf_[a-z0-9]{16}$" },
165
+ "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"] } } } },
166
+ "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:TargetCliBehaviorResponse" }, "mcp": { "$ref": "res:McpBehaviorResponse" }, "readme": { "$ref": "res:ReadmeBehaviorResponse" }, "package": { "$ref": "res:PackageBehaviorResponse" }, "docs_url": { "type": ["string", "null"] }, "docs_index_url": { "type": ["string", "null"] } } },
167
+ "res:TargetAuthenticationConfigResponse": { "type": "object", "properties": { "oauth_application": { "type": ["string", "null"], "maxLength": 64, "pattern": "^[a-z][a-z0-9_-]{0,63}$" }, "environments": { "type": ["object", "null"] } } },
168
+ "res:TargetCliBehaviorResponse": { "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"] }, "relay": { "type": "boolean" } } },
169
+ "res:Delivery": { "anyOf": [{ "$ref": "res:RepositoryDelivery" }, { "$ref": "res:HostedMcpDelivery" }], "responseDiscriminator": { "propertyName": "type", "mapping": { "repository": { "$ref": "res:RepositoryDelivery" }, "hosted_mcp": { "$ref": "res:HostedMcpDelivery" } } } },
170
+ "res:RepositoryDelivery": { "type": "object", "properties": { "id": { "$ref": "res:DeliveryId" }, "object": { "type": "string" }, "target_id": { "$ref": "res:TargetId" }, "type": { "type": "string" }, "status": { "type": "string" }, "repository": { "$ref": "res:RepositoryDeliverySettings" }, "issues": { "type": "array", "items": { "$ref": "res:RepositoryDeliveryIssue" } }, "required_checks": { "type": "array", "items": { "type": "string" } }, "last_event": { "anyOf": [{ "$ref": "res:RepositoryDeliveryEvent" }, { "type": "null" }] }, "created_at": { "type": "string" }, "updated_at": { "type": "string" } }, "required": ["id", "object", "target_id", "type", "status", "repository", "issues", "required_checks", "last_event", "created_at", "updated_at"] },
140
171
  "res:DeliveryId": { "type": "string", "pattern": "^dlv_[a-z0-9]{16}$" },
141
- "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"] },
142
- "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"] },
143
- "req:DefinitionId": { "type": "string", "pattern": "^def_[a-z0-9]{16}$" },
172
+ "res:RepositoryDeliverySettings": { "type": "object", "properties": { "provider": { "$ref": "res:RepositoryProvider" }, "identifier": { "$ref": "res:RepositoryIdentifier" }, "directory": { "type": ["string", "null"] }, "package_name": { "type": ["string", "null"] }, "module_path": { "type": ["string", "null"] }, "publish_on_merge": { "type": "boolean" } }, "required": ["provider", "identifier", "directory", "package_name", "module_path", "publish_on_merge"] },
173
+ "res:RepositoryDeliveryIssue": { "type": "object", "properties": { "code": { "type": "string" }, "message": { "type": "string" } }, "required": ["code", "message"] },
174
+ "res:RepositoryDeliveryEvent": { "type": "object", "properties": { "event": { "type": "string" }, "status": { "type": "string" }, "created_at": { "type": "string" } }, "required": ["event", "status", "created_at"] },
175
+ "res:HostedMcpDelivery": { "type": "object", "properties": { "id": { "$ref": "res:DeliveryId" }, "object": { "type": "string" }, "target_id": { "$ref": "res:TargetId" }, "type": { "type": "string" }, "status": { "type": "string" }, "hosted_mcp": { "$ref": "res:HostedMcpDeliverySettings" }, "created_at": { "type": "string" }, "updated_at": { "type": "string" } }, "required": ["id", "object", "target_id", "type", "status", "hosted_mcp", "created_at", "updated_at"] },
176
+ "res:HostedMcpDeliverySettings": { "type": "object", "properties": { "url": { "type": ["string", "null"] } }, "required": ["url"] },
177
+ "req:TargetCreateRequest": { "type": "object", "additionalProperties": false, "properties": { "project_id": { "$ref": "req:ProjectId" }, "name": { "type": "string", "minLength": 1, "maxLength": 80 }, "spec_id": { "$ref": "req:SpecId" }, "type": { "$ref": "req:GeneratorKind" }, "status": { "type": "string", "enum": ["active", "disabled"] }, "release_channel": { "type": "string", "enum": ["stable", "prerelease"] }, "checks": { "$ref": "req:TargetChecks" }, "config": { "anyOf": [{ "$ref": "req:TargetConfig" }, { "type": "null" }] }, "deliveries": { "type": "array", "maxItems": 2, "items": { "$ref": "req:DeliveryInput" } } }, "required": ["project_id", "name", "spec_id", "type"] },
144
178
  "res:TargetResponse": { "allOf": [{ "$ref": "res:Target" }, { "$ref": "res:ResponseMetadata" }] },
145
- "res:ResponseMetadata": { "type": "object", "properties": { "request_id": { "$ref": "res:RequestId" } }, "required": ["request_id"] },
146
- "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"] },
147
- "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" } } } },
148
- "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"] },
149
- "res:TargetRelease": { "type": "object", "additionalProperties": false, "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:RepositoryReference" }, { "type": "null" }] }, "definition_revision_id": { "anyOf": [{ "$ref": "res:DefinitionRevisionId" }, { "type": "null" }] }, "delivery_revision": { "type": "string" }, "import_provenance": { "type": ["object", "null"], "additionalProperties": false, "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", "import_provenance", "publications", "created_at"] },
150
- "res:TargetReleaseId": { "type": "string", "pattern": "^rel_[a-z0-9]{16}$" },
151
- "res:Publication": { "type": "object", "additionalProperties": false, "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"] }, "error": { "type": ["string", "null"] }, "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", "error", "started_at", "finished_at", "updated_at"] },
152
- "res:PublicationId": { "type": "string", "pattern": "^pub_[a-z0-9]{16}$" },
153
- "res:TargetDraftResponse": { "allOf": [{ "$ref": "res:TargetDraft" }, { "$ref": "res:ResponseMetadata" }] },
154
- "res:TargetDraft": { "type": "object", "additionalProperties": false, "properties": { "object": { "type": "string" }, "target_id": { "$ref": "res:TargetId" }, "revision": { "type": "integer", "minimum": 0 }, "current_version": { "type": ["string", "null"] }, "version": { "type": ["string", "null"] }, "selection": { "$ref": "res:TargetDraftSelection" }, "readiness": { "type": ["object", "null"] }, "changes": { "type": ["object", "null"], "additionalProperties": false, "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"] }, "request_id": { "$ref": "res:RequestId" } }, "required": ["object", "target_id", "revision", "current_version", "version", "selection", "readiness", "changes", "head_revision", "pull_request_url"] },
155
- "res:TargetDraftSelection": { "anyOf": [{ "type": "object", "additionalProperties": false, "properties": { "mode": { "type": "string" } }, "required": ["mode"] }, { "type": "object", "additionalProperties": false, "properties": { "mode": { "type": "string" }, "version": { "type": "string" }, "source": { "type": ["string", "null"] }, "actor": { "type": ["string", "null"] } }, "required": ["mode", "version", "source", "actor"] }] },
156
- "req:TargetDraftUpdate": { "type": "object", "additionalProperties": false, "properties": { "version": { "type": ["string", "null"] }, "expected_revision": { "type": "integer", "minimum": 0 } }, "required": ["version"] },
179
+ "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"] },
180
+ "req:TargetUpdateRequest": { "type": "object", "additionalProperties": false, "properties": { "name": { "type": "string", "minLength": 1, "maxLength": 80 }, "status": { "type": "string", "enum": ["active", "disabled"] }, "release_channel": { "type": "string", "enum": ["stable", "prerelease"] }, "checks": { "$ref": "req:TargetChecks" }, "config": { "anyOf": [{ "$ref": "req:TargetConfig" }, { "type": "null" }] }, "deliveries": { "type": "array", "maxItems": 2, "items": { "$ref": "req:DeliveryInput" } } } },
157
181
  "req:TargetAdoption": { "type": "object", "additionalProperties": false, "properties": { "version": { "type": "string" }, "tag": { "type": "string", "minLength": 1, "maxLength": 255 } }, "required": ["version", "tag"] },
158
- "res:TargetReleaseResponse": { "allOf": [{ "$ref": "res:TargetRelease" }, { "$ref": "res:ResponseMetadata" }] },
182
+ "res:ReleaseResponse": { "allOf": [{ "$ref": "res:Release" }, { "$ref": "res:ResponseMetadata" }] },
183
+ "res:Release": { "type": "object", "properties": { "id": { "$ref": "res:ReleaseId" }, "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" }, "repository": { "anyOf": [{ "$ref": "res:RepositoryReferenceResponse" }, { "type": "null" }] }, "spec_revision_id": { "anyOf": [{ "$ref": "res:SpecRevisionId" }, { "type": "null" }] }, "commit_sha": { "type": "string", "pattern": "^[0-9a-fA-F]{40}$" }, "checks": { "type": "array", "items": { "$ref": "res:PackageCheck" } }, "approvals": { "type": "array", "items": { "$ref": "res:CompatibilityApproval" } }, "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", "repository", "spec_revision_id", "commit_sha", "checks", "approvals", "import_provenance", "publications", "created_at"] },
184
+ "res:ReleaseId": { "type": "string", "pattern": "^rel_[a-z0-9]{16}$" },
185
+ "res:RepositoryReferenceResponse": { "type": "object", "properties": { "provider": { "$ref": "res:RepositoryProvider" }, "identifier": { "$ref": "res:RepositoryIdentifier" } }, "required": ["provider", "identifier"] },
186
+ "res:PackageCheck": { "type": "object", "properties": { "name": { "type": "string" }, "source": { "type": "string" }, "required": { "type": "boolean" }, "status": { "type": "string" }, "reason": { "type": "string" }, "commit_sha": { "type": "string" }, "url": { "type": ["string", "null"] }, "observed_at": { "type": ["string", "null"] } }, "required": ["name", "source", "required", "status", "reason", "commit_sha", "url", "observed_at"] },
187
+ "res:CompatibilityApproval": { "type": "object", "properties": { "source": { "type": "string" }, "reason": { "type": "string" }, "approved_by": { "type": "string" }, "approved_sha": { "type": "string" }, "approved_at": { "type": "string" } }, "required": ["source", "reason", "approved_by", "approved_sha", "approved_at"] },
188
+ "res:Publication": { "type": "object", "properties": { "id": { "$ref": "res:PublicationId" }, "object": { "type": "string" }, "release_id": { "$ref": "res:ReleaseId" }, "destination": { "type": "string" }, "status": { "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"] }, "runtime_ms": { "type": ["integer", "null"], "minimum": 0 }, "created_at": { "type": "string" }, "updated_at": { "type": "string" } }, "required": ["id", "object", "release_id", "destination", "status", "attempt", "run_url", "registry_url", "artifact_digest", "errors", "started_at", "finished_at", "runtime_ms", "created_at", "updated_at"] },
189
+ "res:PublicationId": { "type": "string", "pattern": "^pub_[a-z0-9]{16}$" },
190
+ "res:DraftList": { "type": "object", "properties": { "object": { "$ref": "res:ListObject" }, "data": { "type": "array", "items": { "$ref": "res:Draft" } }, "has_more": { "type": "boolean" }, "next_cursor": { "type": ["string", "null"] }, "request_id": { "$ref": "res:RequestId" } }, "required": ["object", "data", "has_more", "next_cursor", "request_id"] },
191
+ "res:Draft": { "type": "object", "properties": { "id": { "$ref": "res:DraftId" }, "object": { "type": "string" }, "target_id": { "$ref": "res:TargetId" }, "project_id": { "$ref": "res:ProjectId" }, "status": { "$ref": "res:DraftStatus" }, "reason": { "$ref": "res:DraftActionReason" }, "version_next": { "type": ["string", "null"] }, "version_source": { "type": ["string", "null"] }, "readiness": { "anyOf": [{ "$ref": "res:DraftReadiness" }, { "type": "null" }] }, "changes": { "type": ["object", "null"], "properties": { "changelog": { "type": ["string", "null"] }, "breaking_count": { "type": ["integer", "null"], "minimum": 0 }, "version_previous": { "type": ["string", "null"] } } }, "head_sha": { "type": ["string", "null"] }, "pull_request": { "anyOf": [{ "type": "object", "properties": { "url": { "type": "string" }, "number": { "type": "integer", "minimum": 1 } }, "required": ["url", "number"] }, { "type": "null" }] }, "generation_id": { "anyOf": [{ "$ref": "res:GenerationId" }, { "type": "null" }] }, "release_id": { "anyOf": [{ "$ref": "res:ReleaseId" }, { "type": "null" }] }, "created_at": { "type": "string" }, "updated_at": { "type": "string" }, "conflicts": { "anyOf": [{ "$ref": "res:DraftConflicts" }, { "type": "null" }] }, "customized_files": { "type": ["integer", "null"], "minimum": 0 }, "history_recovery": { "anyOf": [{ "$ref": "res:DraftHistoryRecovery" }, { "type": "null" }] }, "request_id": { "$ref": "res:RequestId" }, "checks": { "type": "array", "items": { "$ref": "res:PackageCheck" } } }, "required": ["id", "object", "target_id", "project_id", "status", "version_next", "version_source", "readiness", "checks", "changes", "head_sha", "pull_request", "generation_id", "release_id", "conflicts", "customized_files", "history_recovery", "created_at", "updated_at"] },
192
+ "res:DraftStatus": { "type": "string" },
193
+ "res:DraftActionReason": { "type": "string" },
194
+ "res:DraftReadiness": { "type": "object", "properties": { "status": { "type": "string" }, "description": { "type": "string" }, "compatibility_api": { "type": "string" }, "compatibility_package": { "type": "string" }, "version_correct": { "type": ["boolean", "null"] }, "bump_required": { "type": ["string", "null"] }, "version_previous": { "type": ["string", "null"] }, "title_error": { "type": ["string", "null"] } }, "required": ["status", "description", "compatibility_api", "compatibility_package", "version_correct", "bump_required", "version_previous", "title_error"] },
195
+ "res:DraftConflicts": { "type": "object", "properties": { "total": { "type": "integer", "minimum": 1 }, "decided": { "type": "integer", "minimum": 0 } }, "required": ["total", "decided"] },
196
+ "res:DraftHistoryRecovery": { "type": "object", "properties": { "default_sha": { "type": "string" }, "head_sha": { "type": ["string", "null"] }, "preserved_branch": { "type": ["string", "null"] } }, "required": ["default_sha", "head_sha", "preserved_branch"] },
197
+ "req:DraftStatus": { "type": "string", "enum": ["none", "working", "action_required", "ready", "merged"] },
198
+ "res:DraftResponse": { "allOf": [{ "$ref": "res:Draft" }, { "$ref": "res:ResponseMetadata" }] },
199
+ "req:DraftId": { "type": "string", "pattern": "^drf_[a-z0-9]{16}$" },
200
+ "req:DraftUpdateRequest": { "type": "object", "additionalProperties": false, "properties": { "version_next": { "type": ["string", "null"] } }, "required": ["version_next"] },
201
+ "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"] },
202
+ "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": { "anyOf": [{ "$ref": "res:DraftFileSides" }, { "type": "null" }] } }, "required": ["object", "path", "customization", "conflict", "history", "sides"] },
203
+ "res:DraftFileConflict": { "type": "object", "properties": { "type": { "type": "string" }, "source": { "type": "string" }, "decision": { "type": ["string", "null"] } }, "required": ["type", "source", "decision"] },
204
+ "res:DraftFileHistory": { "type": "object", "properties": { "change": { "type": ["string", "null"] }, "draft_differs": { "type": "boolean" } }, "required": ["change", "draft_differs"] },
205
+ "res:DraftFileSides": { "type": "object", "properties": { "base": { "anyOf": [{ "$ref": "res:FileId" }, { "type": "null" }] }, "yours": { "anyOf": [{ "$ref": "res:FileId" }, { "type": "null" }] }, "generated": { "anyOf": [{ "$ref": "res:FileId" }, { "type": "null" }] } }, "required": ["base", "yours", "generated"] },
206
+ "req:DraftResolveRequest": { "type": "object", "additionalProperties": false, "properties": { "expected_head_sha": { "type": "string", "pattern": "^[0-9a-fA-F]{40}$" }, "resolutions": { "type": "array", "minItems": 1, "maxItems": 1000, "items": { "$ref": "req:DraftConflictDecision" } } }, "required": ["expected_head_sha", "resolutions"] },
207
+ "req:DraftConflictDecision": { "anyOf": [{ "type": "object", "additionalProperties": false, "properties": { "path": { "type": "string", "minLength": 1 }, "keep": { "type": "string", "enum": ["yours", "generated"] } }, "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"] }] },
208
+ "req:GitFileMode": { "type": "string", "enum": ["100644", "100755", "120000"] },
209
+ "req:DraftRecoverRequest": { "type": "object", "additionalProperties": false, "properties": { "expected_default_sha": { "type": "string", "pattern": "^[a-fA-F0-9]{40}$" }, "expected_head_sha": { "type": ["string", "null"], "pattern": "^[a-fA-F0-9]{40}$" } }, "required": ["expected_default_sha", "expected_head_sha"] },
210
+ "res:ReleaseList": { "type": "object", "properties": { "object": { "$ref": "res:ListObject" }, "data": { "type": "array", "items": { "$ref": "res:Release" } }, "has_more": { "type": "boolean" }, "next_cursor": { "type": ["string", "null"] }, "request_id": { "$ref": "res:RequestId" } }, "required": ["object", "data", "has_more", "next_cursor", "request_id"] },
211
+ "req:ReleaseId": { "type": "string", "pattern": "^rel_[a-z0-9]{16}$" },
212
+ "res:DeliveryList": { "type": "object", "properties": { "object": { "$ref": "res:ListObject" }, "data": { "type": "array", "items": { "$ref": "res:Delivery" } }, "has_more": { "type": "boolean" }, "next_cursor": { "type": ["string", "null"] }, "request_id": { "$ref": "res:RequestId" } }, "required": ["object", "data", "has_more", "next_cursor", "request_id"] },
213
+ "res:DeliveryResponse": { "type": "object", "properties": { "id": { "$ref": "res:DeliveryId" }, "object": { "type": "string" }, "target_id": { "$ref": "res:TargetId" }, "type": { "type": "string" }, "status": { "type": "string" }, "repository": { "$ref": "res:RepositoryDeliverySettings" }, "issues": { "type": "array", "items": { "$ref": "res:RepositoryDeliveryIssue" } }, "required_checks": { "type": "array", "items": { "type": "string" } }, "last_event": { "anyOf": [{ "$ref": "res:RepositoryDeliveryEvent" }, { "type": "null" }] }, "hosted_mcp": { "$ref": "res:HostedMcpDeliverySettings" }, "created_at": { "type": "string" }, "updated_at": { "type": "string" }, "request_id": { "$ref": "res:RequestId" } }, "required": ["id", "object", "target_id", "type", "status", "created_at", "updated_at", "request_id"] },
214
+ "req:DeliveryId": { "type": "string", "pattern": "^dlv_[a-z0-9]{16}$" },
215
+ "res:PublicationList": { "type": "object", "properties": { "object": { "$ref": "res:ListObject" }, "data": { "type": "array", "items": { "$ref": "res:Publication" } }, "has_more": { "type": "boolean" }, "next_cursor": { "type": ["string", "null"] }, "request_id": { "$ref": "res:RequestId" } }, "required": ["object", "data", "has_more", "next_cursor", "request_id"] },
216
+ "res:PublicationResponse": { "allOf": [{ "$ref": "res:Publication" }, { "$ref": "res:ResponseMetadata" }] },
217
+ "req:PublicationId": { "type": "string", "pattern": "^pub_[a-z0-9]{16}$" },
218
+ "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"] },
219
+ "req:GenerationStatus": { "type": "string", "enum": ["queued", "running", "completed", "failed"] },
159
220
  "res:GenerationResponse": { "allOf": [{ "$ref": "res:Generation" }, { "$ref": "res:ResponseMetadata" }] },
160
- "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"] },
161
- "res:FileStub": { "type": "object", "properties": { "path": { "type": "string" }, "bytes": { "type": "integer" } }, "required": ["path", "bytes"] },
162
- "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"] },
163
- "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"] },
164
- "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"] },
165
- "res:DefinitionDocumentId": { "type": "string", "pattern": "^doc_[a-z0-9]{16}$" },
166
- "res:DefinitionRevisionSource": { "anyOf": [{ "$ref": "res:UrlDefinitionRevisionSource" }, { "$ref": "res:RepositoryDefinitionRevisionSource" }, { "type": "object" }] },
167
- "res:UrlDefinitionRevisionSource": { "type": "object", "additionalProperties": false, "properties": { "kind": { "type": "string" }, "url": { "type": "string" } }, "required": ["kind", "url"] },
168
- "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"] },
169
- "res:DefinitionRevisionResponse": { "allOf": [{ "$ref": "res:DefinitionRevision" }, { "$ref": "res:ResponseMetadata" }] },
170
- "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"] },
171
- "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"] },
172
- "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"] },
221
+ "req:GenerationId": { "type": "string", "pattern": "^gen_[a-z0-9]{16}$" },
222
+ "res:FileList": { "type": "object", "properties": { "object": { "$ref": "res:ListObject" }, "data": { "type": "array", "items": { "$ref": "res:File" } }, "has_more": { "type": "boolean" }, "next_cursor": { "type": ["string", "null"] }, "request_id": { "$ref": "res:RequestId" } }, "required": ["object", "data", "has_more", "next_cursor", "request_id"] },
223
+ "res:FileResponse": { "allOf": [{ "$ref": "res:File" }, { "type": "object", "properties": { "content": { "type": "string" }, "offset": { "type": "integer", "minimum": 0 }, "next_cursor": { "type": ["string", "null"] } }, "required": ["content", "offset", "next_cursor"] }, { "$ref": "res:ResponseMetadata" }] },
224
+ "req:FileId": { "type": "string", "pattern": "^file_[a-z0-9]{16}$" },
225
+ "res:Organization": { "type": "object", "properties": { "id": { "type": "string" }, "object": { "type": "string" }, "name": { "type": "string" }, "plan": { "type": "string" }, "created_at": { "type": "string" }, "updated_at": { "type": "string" }, "request_id": { "$ref": "res:RequestId" } }, "required": ["id", "object", "name", "plan", "created_at", "updated_at", "request_id"] },
226
+ "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"] },
227
+ "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" }, "updated_at": { "type": "string" }, "request_id": { "$ref": "res:RequestId" } }, "required": ["id", "object", "name", "last4", "revoked", "last_used_at", "created_at", "updated_at"] },
173
228
  "res:ApiKeyResponse": { "allOf": [{ "$ref": "res:ApiKey" }, { "$ref": "res:ResponseMetadata" }] },
174
229
  };