@typeship-ax/cli 0.22.0 → 0.24.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.
- package/AGENTS.md +13 -9
- package/README.md +14 -27
- package/api.json +8898 -9026
- package/api.md +370 -328
- package/dist/arguments.d.ts +54 -0
- package/dist/arguments.d.ts.map +1 -0
- package/dist/arguments.js +265 -0
- package/dist/cli-agent.d.ts +73 -9
- package/dist/cli-agent.d.ts.map +1 -1
- package/dist/cli-agent.js +331 -44
- package/dist/cli.js +802 -291
- package/dist/core/http.d.ts +162 -19
- package/dist/core/http.d.ts.map +1 -1
- package/dist/core/http.js +381 -48
- package/dist/core/pagination.d.ts +42 -6
- package/dist/core/pagination.d.ts.map +1 -1
- package/dist/core/pagination.js +111 -17
- package/dist/credential-storage.d.ts +10 -3
- package/dist/credential-storage.d.ts.map +1 -1
- package/dist/credential-storage.js +15 -6
- package/dist/dates.d.ts +1 -1
- package/dist/dates.js +1 -1
- package/dist/errors.d.ts +20 -84
- package/dist/errors.d.ts.map +1 -1
- package/dist/errors.js +20 -108
- package/dist/fields.d.ts +36 -0
- package/dist/fields.d.ts.map +1 -0
- package/dist/fields.js +187 -0
- package/dist/index.d.ts +28 -18
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +35 -25
- package/dist/named-credentials.d.ts +19 -0
- package/dist/named-credentials.d.ts.map +1 -1
- package/dist/named-credentials.js +81 -1
- package/dist/oauth-login.d.ts +8 -2
- package/dist/oauth-login.d.ts.map +1 -1
- package/dist/oauth-login.js +31 -19
- package/dist/oauth-request.d.ts +7 -1
- package/dist/oauth-request.d.ts.map +1 -1
- package/dist/oauth-request.js +26 -4
- package/dist/oauth-session.d.ts +13 -1
- package/dist/oauth-session.d.ts.map +1 -1
- package/dist/oauth-session.js +34 -18
- package/dist/ops.d.ts +58 -5
- package/dist/ops.d.ts.map +1 -1
- package/dist/ops.js +110 -41
- package/dist/polling-login.d.ts +8 -2
- package/dist/polling-login.d.ts.map +1 -1
- package/dist/polling-login.js +25 -11
- package/dist/resources/api-keys.d.ts +10 -7
- package/dist/resources/api-keys.d.ts.map +1 -1
- package/dist/resources/api-keys.js +10 -31
- package/dist/resources/deliveries.d.ts +89 -5
- package/dist/resources/deliveries.d.ts.map +1 -1
- package/dist/resources/deliveries.js +96 -19
- package/dist/resources/drafts.d.ts +16 -16
- package/dist/resources/drafts.d.ts.map +1 -1
- package/dist/resources/drafts.js +12 -65
- package/dist/resources/files.d.ts +4 -4
- package/dist/resources/files.d.ts.map +1 -1
- package/dist/resources/files.js +3 -12
- package/dist/resources/generations.d.ts +16 -16
- package/dist/resources/generations.d.ts.map +1 -1
- package/dist/resources/generations.js +23 -47
- package/dist/resources/organization.d.ts +4 -4
- package/dist/resources/organization.d.ts.map +1 -1
- package/dist/resources/organization.js +3 -10
- package/dist/resources/{generate.d.ts → packages.d.ts} +16 -16
- package/dist/resources/packages.d.ts.map +1 -0
- package/dist/resources/{generate.js → packages.js} +13 -29
- package/dist/resources/projects.d.ts +50 -50
- package/dist/resources/projects.d.ts.map +1 -1
- package/dist/resources/projects.js +60 -116
- package/dist/resources/releases.d.ts +22 -17
- package/dist/resources/releases.d.ts.map +1 -1
- package/dist/resources/releases.js +19 -40
- package/dist/resources/spec-revisions.d.ts +16 -7
- package/dist/resources/spec-revisions.d.ts.map +1 -1
- package/dist/resources/spec-revisions.js +7 -29
- package/dist/resources/specs.d.ts +7 -7
- package/dist/resources/specs.d.ts.map +1 -1
- package/dist/resources/specs.js +6 -34
- package/dist/resources/targets.d.ts +49 -49
- package/dist/resources/targets.d.ts.map +1 -1
- package/dist/resources/targets.js +59 -115
- package/dist/schemas.d.ts.map +1 -1
- package/dist/schemas.js +83 -81
- package/dist/search.d.ts +54 -0
- package/dist/search.d.ts.map +1 -0
- package/dist/search.js +421 -0
- package/dist/table.d.ts +28 -0
- package/dist/table.d.ts.map +1 -0
- package/dist/table.js +167 -0
- package/dist/type-docs.d.ts +61 -0
- package/dist/type-docs.d.ts.map +1 -0
- package/dist/type-docs.js +174 -0
- package/dist/types.d.ts +499 -339
- package/dist/types.d.ts.map +1 -1
- package/dist/types.js +18 -18
- package/package.json +5 -2
- package/src/arguments.ts +254 -0
- package/src/cli-agent.ts +351 -46
- package/src/cli.ts +753 -266
- package/src/core/http.ts +457 -58
- package/src/core/pagination.ts +129 -18
- package/src/credential-storage.ts +16 -6
- package/src/dates.ts +1 -1
- package/src/errors.ts +46 -115
- package/src/fields.ts +167 -0
- package/src/index.ts +45 -28
- package/src/named-credentials.ts +66 -1
- package/src/oauth-login.ts +36 -21
- package/src/oauth-request.ts +32 -6
- package/src/oauth-session.ts +37 -19
- package/src/ops.ts +146 -45
- package/src/polling-login.ts +24 -11
- package/src/resources/api-keys.ts +34 -48
- package/src/resources/deliveries.ts +213 -32
- package/src/resources/drafts.ts +62 -109
- package/src/resources/files.ts +19 -20
- package/src/resources/generations.ts +61 -79
- package/src/resources/organization.ts +11 -16
- package/src/resources/{generate.ts → packages.ts} +43 -51
- package/src/resources/projects.ts +145 -200
- package/src/resources/releases.ts +50 -67
- package/src/resources/spec-revisions.ts +40 -49
- package/src/resources/specs.ts +39 -59
- package/src/resources/targets.ts +144 -194
- package/src/schemas.ts +83 -81
- package/src/search.ts +434 -0
- package/src/table.ts +167 -0
- package/src/type-docs.ts +205 -0
- package/src/types.ts +538 -357
- package/dist/console-login-check.d.ts +0 -21
- package/dist/console-login-check.d.ts.map +0 -1
- package/dist/console-login-check.js +0 -107
- package/dist/console-login-contract.d.ts +0 -45
- package/dist/console-login-contract.d.ts.map +0 -1
- package/dist/console-login-contract.js +0 -40
- package/dist/resources/generate.d.ts.map +0 -1
- package/dist/resources/publications.d.ts +0 -47
- package/dist/resources/publications.d.ts.map +0 -1
- package/dist/resources/publications.js +0 -70
- package/src/console-login-check.ts +0 -88
- package/src/console-login-contract.ts +0 -65
- package/src/resources/publications.ts +0 -140
package/dist/schemas.js
CHANGED
|
@@ -1,30 +1,36 @@
|
|
|
1
|
-
//
|
|
2
|
-
// Generated by
|
|
1
|
+
// Typeship — schema tables for optional runtime validation.
|
|
2
|
+
// Generated by Typeship — https://typeship.dev
|
|
3
3
|
// Consumed by core/http.ts when the client's validate option is enabled;
|
|
4
4
|
// carries no code, only data derived from the spec. Named components are
|
|
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
|
-
"
|
|
9
|
-
"generate.downloadPackage": { "res": { "type": "string" }, "params": { "query.token": { "type": "string", "minLength": 43, "maxLength": 43, "pattern": "^[A-Za-z0-9_-]{43}$" } } },
|
|
8
|
+
"projects.create": { "req": { "$ref": "req:CreateProjectRequest" }, "res": { "$ref": "res:ProjectResponse" }, "params": { "header.Idempotency-Key": { "type": "string", "minLength": 1, "maxLength": 255, "pattern": "^[!-~]+$" } } },
|
|
10
9
|
"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.
|
|
12
|
-
"projects.
|
|
10
|
+
"projects.get": { "res": { "$ref": "res:ProjectResponse" }, "params": { "path.project_id": { "$ref": "req:ProjectId" } } },
|
|
11
|
+
"projects.update": { "req": { "$ref": "req:UpdateProjectRequest" }, "res": { "$ref": "res:ProjectResponse" }, "params": { "path.project_id": { "$ref": "req:ProjectId" }, "header.If-Match": { "type": "string", "minLength": 1, "maxLength": 1024 } } },
|
|
13
12
|
"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
13
|
"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
14
|
"specs.get": { "res": { "$ref": "res:Spec" }, "params": { "path.spec_id": { "$ref": "req:SpecId" } } },
|
|
17
15
|
"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
16
|
"specs.refresh": { "res": { "$ref": "res:Spec" }, "params": { "path.spec_id": { "$ref": "req:SpecId" }, "header.Idempotency-Key": { "type": "string", "minLength": 1, "maxLength": 255, "pattern": "^[!-~]+$" } } },
|
|
19
17
|
"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"] } } },
|
|
18
|
+
"specRevisions.get": { "res": { "$ref": "res:SpecRevisionResponse" }, "params": { "path.spec_revision_id": { "$ref": "req:SpecRevisionId" }, "query.include": { "type": "string", "enum": ["diagnostics"] }, "query.filter": { "type": "string", "enum": ["blocking", "introduced"] } } },
|
|
21
19
|
"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
20
|
"targets.create": { "req": { "$ref": "req:TargetCreateRequest" }, "res": { "$ref": "res:TargetResponse" }, "params": { "header.Idempotency-Key": { "type": "string", "minLength": 1, "maxLength": 255, "pattern": "^[!-~]+$" } } },
|
|
21
|
+
"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" } } },
|
|
24
22
|
"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
23
|
"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 } } },
|
|
24
|
+
"targets.delete": { "res": { "$ref": "res:DeletedTarget" }, "params": { "path.target_id": { "$ref": "req:TargetId" }, "header.If-Match": { "type": "string", "minLength": 1, "maxLength": 1024 } } },
|
|
27
25
|
"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": "^[!-~]+$" } } },
|
|
26
|
+
"deliveries.create": { "req": { "$ref": "req:DeliveryCreateRequest" }, "res": { "$ref": "res:DeliveryResponse" }, "params": { "header.Idempotency-Key": { "type": "string", "minLength": 1, "maxLength": 255, "pattern": "^[!-~]+$" } } },
|
|
27
|
+
"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" } } },
|
|
28
|
+
"deliveries.get": { "res": { "$ref": "res:DeliveryResponse" }, "params": { "path.delivery_id": { "$ref": "req:DeliveryId" } } },
|
|
29
|
+
"deliveries.update": { "req": { "$ref": "req:DeliveryUpdateRequest" }, "res": { "$ref": "res:DeliveryResponse" }, "params": { "path.delivery_id": { "$ref": "req:DeliveryId" }, "header.If-Match": { "type": "string", "minLength": 1, "maxLength": 1024 } } },
|
|
30
|
+
"deliveries.delete": { "res": { "$ref": "res:DeletedDelivery" }, "params": { "path.delivery_id": { "$ref": "req:DeliveryId" }, "header.If-Match": { "type": "string", "minLength": 1, "maxLength": 1024 } } },
|
|
31
|
+
"generations.get": { "res": { "$ref": "res:GenerationResponse" }, "params": { "path.generation_id": { "$ref": "req:GenerationId" } } },
|
|
32
|
+
"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" } } },
|
|
33
|
+
"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_-]+$" } } },
|
|
28
34
|
"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
35
|
"drafts.get": { "res": { "$ref": "res:DraftResponse" }, "params": { "path.draft_id": { "$ref": "req:DraftId" } } },
|
|
30
36
|
"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 } } },
|
|
@@ -33,48 +39,16 @@ export const SCHEMAS = {
|
|
|
33
39
|
"drafts.recover": { "req": { "$ref": "req:DraftRecoverRequest" }, "res": { "$ref": "res:DraftResponse" }, "params": { "path.draft_id": { "$ref": "req:DraftId" } } },
|
|
34
40
|
"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
41
|
"releases.get": { "res": { "$ref": "res:ReleaseResponse" }, "params": { "path.release_id": { "$ref": "req:ReleaseId" } } },
|
|
36
|
-
"releases.
|
|
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_-]+$" } } },
|
|
42
|
+
"releases.retry": { "res": { "$ref": "res:ReleaseResponse" }, "params": { "path.release_id": { "$ref": "req:ReleaseId" }, "header.Idempotency-Key": { "type": "string", "minLength": 1, "maxLength": 255, "pattern": "^[!-~]+$" } } },
|
|
44
43
|
"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_-]+$" } } },
|
|
44
|
+
"packages.generate": { "req": { "$ref": "req:GenerateRequest" }, "res": { "$ref": "res:GenerationResult" }, "params": { "header.Idempotency-Key": { "type": "string", "minLength": 1, "maxLength": 255, "pattern": "^[!-~]+$" } } },
|
|
45
|
+
"packages.download": { "res": { "type": "string" }, "params": { "query.token": { "type": "string", "minLength": 43, "maxLength": 43, "pattern": "^[A-Za-z0-9_-]{43}$" } } },
|
|
45
46
|
"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.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_-]+$" }, "query.status": { "type": "string", "enum": ["active", "revoked"] } } },
|
|
47
48
|
"apiKeys.get": { "res": { "$ref": "res:ApiKeyResponse" }, "params": { "path.api_key_id": { "type": "string" } } },
|
|
48
49
|
"apiKeys.revoke": { "res": { "$ref": "res:ApiKeyResponse" }, "params": { "path.api_key_id": { "type": "string" }, "header.If-Match": { "type": "string", "minLength": 1, "maxLength": 1024 } } },
|
|
49
50
|
};
|
|
50
51
|
export const DEFS = {
|
|
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"] },
|
|
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"] } } },
|
|
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" } } },
|
|
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" } } },
|
|
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"] } } },
|
|
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"] } } },
|
|
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"] } } },
|
|
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" } } },
|
|
65
|
-
"req:ReadmeBehavior": { "type": "object", "additionalProperties": false, "properties": { "quickstart_operation": { "type": ["string", "null"], "maxLength": 500 } } },
|
|
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"] } } },
|
|
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"] },
|
|
72
|
-
"res:RequestId": { "type": "string", "pattern": "^req_[a-z0-9]{16}$" },
|
|
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"] },
|
|
74
|
-
"res:ListObject": { "type": "string" },
|
|
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"] },
|
|
76
|
-
"res:ProjectId": { "type": "string", "pattern": "^prj_[a-z0-9]{16}$" },
|
|
77
|
-
"res:SpecId": { "type": "string", "pattern": "^spec_[a-z0-9]{16}$" },
|
|
78
52
|
"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
53
|
"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
54
|
"req:SpecSourceInput": { "anyOf": [{ "$ref": "req:UrlSpecSourceInput" }, { "$ref": "req:RepositorySpecSourceInput" }] },
|
|
@@ -85,35 +59,51 @@ export const DEFS = {
|
|
|
85
59
|
"req:RepositoryProvider": { "type": "string", "enum": ["github"] },
|
|
86
60
|
"req:RepositoryIdentifier": { "type": "string", "maxLength": 512 },
|
|
87
61
|
"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"] },
|
|
62
|
+
"req:GraphqlSettings": { "type": "object", "additionalProperties": false, "properties": { "endpoint": { "type": "string" }, "environments": { "type": "array", "maxItems": 10, "items": { "type": "object", "additionalProperties": false, "properties": { "name": { "type": "string" }, "url": { "type": "string" } }, "required": ["name", "url"] } }, "auth": { "type": "string", "enum": ["bearer", "basic", "basic_api_key", "api_key", "api_key_or_bearer", "none"] }, "api_key_header": { "type": "string" }, "title": { "type": "string", "maxLength": 80 }, "scalars": { "type": "object" }, "error_types": { "type": "array", "maxItems": 100, "items": { "type": "string", "pattern": "^[_A-Za-z][_0-9A-Za-z]*$" } }, "page_size": { "type": "integer", "minimum": 1, "maximum": 1000 } } },
|
|
88
63
|
"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"] },
|
|
89
64
|
"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"] },
|
|
90
65
|
"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"] },
|
|
66
|
+
"req:GeneratorKind": { "type": "string", "enum": ["cli", "go_cli", "mcp", "typescript_sdk", "python_sdk", "go_sdk"] },
|
|
91
67
|
"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"] } } },
|
|
68
|
+
"req:TargetConfig": { "type": "object", "additionalProperties": false, "properties": { "globals": { "type": "array", "maxItems": 20, "items": { "type": "string" } }, "include": { "type": "array", "maxItems": 100, "items": { "type": "string", "minLength": 1, "maxLength": 500 } }, "exclude": { "type": "array", "maxItems": 100, "items": { "type": "string", "minLength": 1, "maxLength": 500 } }, "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"] } } },
|
|
69
|
+
"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" } } },
|
|
93
70
|
"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
71
|
"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" } } },
|
|
72
|
+
"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" } } },
|
|
73
|
+
"req:ReadmeBehavior": { "type": "object", "additionalProperties": false, "properties": { "quickstart_operation": { "type": ["string", "null"], "maxLength": 500 } } },
|
|
74
|
+
"req:PackageBehavior": { "type": "object", "additionalProperties": false, "properties": { "title": { "type": ["string", "null"], "maxLength": 100 }, "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"] } } },
|
|
95
75
|
"req:DeliveryInput": { "anyOf": [{ "$ref": "req:RepositoryDeliveryInput" }, { "$ref": "req:HostedMcpDeliveryInput" }] },
|
|
96
76
|
"req:RepositoryDeliveryInput": { "type": "object", "additionalProperties": false, "properties": { "type": { "type": "string", "const": "repository" }, "repository": { "$ref": "req:RepositoryDeliverySettingsInput" } }, "required": ["type", "repository"] },
|
|
97
77
|
"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
78
|
"req:HostedMcpDeliveryInput": { "type": "object", "additionalProperties": false, "properties": { "type": { "type": "string", "const": "hosted_mcp" } }, "required": ["type"] },
|
|
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"] } } },
|
|
100
|
-
"
|
|
101
|
-
"
|
|
79
|
+
"req:ProjectConfig": { "type": "object", "additionalProperties": false, "properties": { "globals": { "type": "array", "maxItems": 20, "items": { "type": "string" } }, "include": { "type": "array", "maxItems": 100, "items": { "type": "string", "minLength": 1, "maxLength": 500 } }, "exclude": { "type": "array", "maxItems": 100, "items": { "type": "string", "minLength": 1, "maxLength": 500 } }, "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"] } } },
|
|
80
|
+
"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"] }, "credential_variables": { "type": ["object", "null"] }, "credential_parameters": { "type": ["object", "null"] } } },
|
|
81
|
+
"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"] } } },
|
|
82
|
+
"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" }] }] },
|
|
83
|
+
"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"] } } },
|
|
84
|
+
"res:ProjectResponse": { "allOf": [{ "$ref": "res:Project" }, { "$ref": "res:ResponseMetadata" }] },
|
|
85
|
+
"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"] },
|
|
86
|
+
"res:ProjectId": { "type": "string", "pattern": "^prj_[a-z0-9]{16}$" },
|
|
87
|
+
"res:SpecId": { "type": "string", "pattern": "^spec_[a-z0-9]{16}$" },
|
|
88
|
+
"res:ProjectConfigResponse": { "type": "object", "properties": { "globals": { "type": "array", "maxItems": 20, "items": { "type": "string" } }, "include": { "type": "array", "maxItems": 100, "items": { "type": "string", "minLength": 1, "maxLength": 500 } }, "exclude": { "type": "array", "maxItems": 100, "items": { "type": "string", "minLength": 1, "maxLength": 500 } }, "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
89
|
"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"] } } },
|
|
90
|
+
"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"] }, "credential_variables": { "type": ["object", "null"] }, "credential_parameters": { "type": ["object", "null"] } } },
|
|
104
91
|
"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
92
|
"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
93
|
"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
94
|
"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
95
|
"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"] } } },
|
|
96
|
+
"res:PackageBehaviorResponse": { "type": "object", "properties": { "title": { "type": ["string", "null"], "maxLength": 100 }, "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:RequestId": { "type": "string", "pattern": "^req_[a-z0-9]{16}$" },
|
|
98
|
+
"res:ResponseMetadata": { "type": "object", "properties": { "request_id": { "$ref": "res:RequestId" } }, "required": ["request_id"] },
|
|
99
|
+
"res:ProjectList": { "type": "object", "properties": { "object": { "$ref": "res:ListObject" }, "data": { "type": "array", "items": { "$ref": "res:Project" } }, "has_more": { "type": "boolean" }, "next_cursor": { "type": ["string", "null"] }, "request_id": { "$ref": "res:RequestId" } }, "required": ["object", "data", "has_more", "next_cursor", "request_id"] },
|
|
100
|
+
"res:ListObject": { "type": "string" },
|
|
110
101
|
"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
102
|
"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" }] } } },
|
|
103
|
+
"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"] },
|
|
113
104
|
"req:GenerateProjectRequest": { "type": "object", "additionalProperties": false, "properties": { "target_id": { "$ref": "req:TargetId" } } },
|
|
114
105
|
"req:TargetId": { "type": "string", "pattern": "^tgt_[a-z0-9]{16}$" },
|
|
115
|
-
"res:GenerationBatch": { "type": "object", "properties": { "data": { "type": "array", "items": { "$ref": "res:
|
|
116
|
-
"res:GenerationSummary": { "allOf": [{ "$ref": "res:Generation" }] },
|
|
106
|
+
"res:GenerationBatch": { "type": "object", "properties": { "data": { "type": "array", "items": { "$ref": "res:Generation" } }, "request_id": { "$ref": "res:RequestId" } }, "required": ["data", "request_id"] },
|
|
117
107
|
"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"] },
|
|
118
108
|
"res:GenerationId": { "type": "string", "pattern": "^gen_[a-z0-9]{16}$" },
|
|
119
109
|
"res:SpecRevisionId": { "type": "string", "pattern": "^srev_[a-z0-9]{16}$" },
|
|
@@ -121,6 +111,8 @@ export const DEFS = {
|
|
|
121
111
|
"res:GenerationTrigger": { "type": "string" },
|
|
122
112
|
"res:TargetId": { "type": "string", "pattern": "^tgt_[a-z0-9]{16}$" },
|
|
123
113
|
"res:GeneratorKind": { "type": "string" },
|
|
114
|
+
"res:GenerationWarning": { "type": "object", "properties": { "code": { "type": "string" }, "message": { "type": "string" }, "operation": { "type": "string" } }, "required": ["code", "message"] },
|
|
115
|
+
"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"] },
|
|
124
116
|
"res:DomainError": { "allOf": [{ "$ref": "res:ErrorDetail" }, { "type": "object", "properties": { "phase": { "$ref": "res:FailurePhase" } }, "required": ["phase"] }] },
|
|
125
117
|
"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
118
|
"res:ErrorType": { "type": "string" },
|
|
@@ -135,7 +127,7 @@ export const DEFS = {
|
|
|
135
127
|
"res:RepositoryProvider": { "type": "string" },
|
|
136
128
|
"res:RepositoryIdentifier": { "type": "string", "maxLength": 512 },
|
|
137
129
|
"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" } } },
|
|
130
|
+
"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" }, "error_types": { "type": "array", "maxItems": 100, "items": { "type": "string", "pattern": "^[_A-Za-z][_0-9A-Za-z]*$" } }, "page_size": { "type": "integer", "minimum": 1, "maximum": 1000 } } },
|
|
139
131
|
"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
132
|
"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
133
|
"req:SpecId": { "type": "string", "pattern": "^spec_[a-z0-9]{16}$" },
|
|
@@ -147,23 +139,23 @@ export const DEFS = {
|
|
|
147
139
|
"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
140
|
"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
141
|
"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"] },
|
|
142
|
+
"res:DiagnosticLocation": { "type": "object", "properties": { "blocking": { "type": "boolean" }, "introduced": { "type": "boolean" }, "suppressed": { "type": "boolean" }, "file_path": { "type": "string" }, "file_id": { "$ref": "res:FileId" }, "path": { "type": "string" }, "operation": { "type": "string" }, "evidence": { "type": "string" } }, "required": ["path", "blocking", "introduced", "suppressed"] },
|
|
151
143
|
"res:FileId": { "type": "string", "pattern": "^file_[a-z0-9]{16}$" },
|
|
152
144
|
"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
145
|
"res:DiagnosticWarning": { "type": "object", "properties": { "code": { "type": "string" }, "message": { "type": "string" } }, "required": ["code", "message"] },
|
|
154
146
|
"res:SpecRevisionResponse": { "allOf": [{ "$ref": "res:SpecRevision" }, { "$ref": "res:ResponseMetadata" }] },
|
|
155
|
-
"res:ResponseMetadata": { "type": "object", "properties": { "request_id": { "$ref": "res:RequestId" } }, "required": ["request_id"] },
|
|
156
147
|
"req:SpecRevisionId": { "type": "string", "pattern": "^srev_[a-z0-9]{16}$" },
|
|
157
148
|
"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
149
|
"res:SpecRevisionFile": { "allOf": [{ "$ref": "res:File" }, { "type": "object", "properties": { "role": { "type": "string" } }, "required": ["role"] }] },
|
|
159
150
|
"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
151
|
"res:GitFileMode": { "type": "string" },
|
|
161
|
-
"
|
|
152
|
+
"req:TargetCreateRequest": { "type": "object", "additionalProperties": false, "properties": { "project_id": { "$ref": "req:ProjectId" }, "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": ["project_id", "name", "type"] },
|
|
153
|
+
"res:TargetResponse": { "allOf": [{ "$ref": "res:Target" }, { "$ref": "res:ResponseMetadata" }] },
|
|
162
154
|
"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
155
|
"res:TargetDependency": { "type": "object", "properties": { "type": { "type": "string" }, "target_id": { "$ref": "res:TargetId" } }, "required": ["type", "target_id"] },
|
|
164
156
|
"res:DraftId": { "type": "string", "pattern": "^drf_[a-z0-9]{16}$" },
|
|
165
157
|
"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"] } } },
|
|
158
|
+
"res:TargetConfigResponse": { "type": "object", "properties": { "globals": { "type": "array", "maxItems": 20, "items": { "type": "string" } }, "include": { "type": "array", "maxItems": 100, "items": { "type": "string", "minLength": 1, "maxLength": 500 } }, "exclude": { "type": "array", "maxItems": 100, "items": { "type": "string", "minLength": 1, "maxLength": 500 } }, "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
159
|
"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
160
|
"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
161
|
"res:Delivery": { "anyOf": [{ "$ref": "res:RepositoryDelivery" }, { "$ref": "res:HostedMcpDelivery" }], "responseDiscriminator": { "propertyName": "type", "mapping": { "repository": { "$ref": "res:RepositoryDelivery" }, "hosted_mcp": { "$ref": "res:HostedMcpDelivery" } } } },
|
|
@@ -174,27 +166,39 @@ export const DEFS = {
|
|
|
174
166
|
"res:RepositoryDeliveryEvent": { "type": "object", "properties": { "event": { "type": "string" }, "status": { "type": "string" }, "created_at": { "type": "string" } }, "required": ["event", "status", "created_at"] },
|
|
175
167
|
"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
168
|
"res:HostedMcpDeliverySettings": { "type": "object", "properties": { "url": { "type": ["string", "null"] } }, "required": ["url"] },
|
|
177
|
-
"
|
|
178
|
-
"
|
|
169
|
+
"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"] },
|
|
170
|
+
"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" }] } } },
|
|
179
171
|
"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" } } } },
|
|
181
172
|
"req:TargetAdoption": { "type": "object", "additionalProperties": false, "properties": { "version": { "type": "string" }, "tag": { "type": "string", "minLength": 1, "maxLength": 255 } }, "required": ["version", "tag"] },
|
|
182
173
|
"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" }, "
|
|
174
|
+
"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" }, "release_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" }, "updated_at": { "type": "string" }, "request_id": { "$ref": "res:RequestId" } }, "required": ["id", "object", "target_id", "generation_id", "version", "release_channel", "origin", "repository", "spec_revision_id", "commit_sha", "checks", "approvals", "import_provenance", "publications", "created_at", "updated_at"] },
|
|
184
175
|
"res:ReleaseId": { "type": "string", "pattern": "^rel_[a-z0-9]{16}$" },
|
|
185
176
|
"res:RepositoryReferenceResponse": { "type": "object", "properties": { "provider": { "$ref": "res:RepositoryProvider" }, "identifier": { "$ref": "res:RepositoryIdentifier" } }, "required": ["provider", "identifier"] },
|
|
186
177
|
"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
178
|
"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": { "
|
|
189
|
-
"
|
|
179
|
+
"res:Publication": { "type": "object", "properties": { "type": { "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": ["type", "status", "attempt", "run_url", "registry_url", "artifact_digest", "errors", "started_at", "finished_at", "runtime_ms", "created_at", "updated_at"] },
|
|
180
|
+
"req:DeliveryCreateRequest": { "anyOf": [{ "$ref": "req:RepositoryDeliveryCreateRequest" }, { "$ref": "req:HostedMcpDeliveryCreateRequest" }] },
|
|
181
|
+
"req:RepositoryDeliveryCreateRequest": { "type": "object", "additionalProperties": false, "properties": { "target_id": { "$ref": "req:TargetId" }, "type": { "type": "string", "const": "repository" }, "repository": { "$ref": "req:RepositoryDeliverySettingsInput" } }, "required": ["target_id", "type", "repository"] },
|
|
182
|
+
"req:HostedMcpDeliveryCreateRequest": { "type": "object", "additionalProperties": false, "properties": { "target_id": { "$ref": "req:TargetId" }, "type": { "type": "string", "const": "hosted_mcp" } }, "required": ["target_id", "type"] },
|
|
183
|
+
"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"] },
|
|
184
|
+
"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"] },
|
|
185
|
+
"req:DeliveryId": { "type": "string", "pattern": "^dlv_[a-z0-9]{16}$" },
|
|
186
|
+
"req:DeliveryUpdateRequest": { "type": "object", "additionalProperties": false, "properties": { "repository": { "$ref": "req:RepositoryDeliverySettingsInput" } }, "required": ["repository"] },
|
|
187
|
+
"res:DeletedDelivery": { "type": "object", "properties": { "id": { "$ref": "res:DeliveryId" }, "object": { "type": "string" }, "deleted": { "type": "boolean" }, "request_id": { "$ref": "res:RequestId" } }, "required": ["id", "object", "deleted", "request_id"] },
|
|
188
|
+
"res:GenerationResponse": { "allOf": [{ "$ref": "res:Generation" }, { "$ref": "res:ResponseMetadata" }] },
|
|
189
|
+
"req:GenerationId": { "type": "string", "pattern": "^gen_[a-z0-9]{16}$" },
|
|
190
|
+
"res:GenerationList": { "type": "object", "properties": { "object": { "$ref": "res:ListObject" }, "data": { "type": "array", "items": { "$ref": "res:Generation" } }, "has_more": { "type": "boolean" }, "next_cursor": { "type": ["string", "null"] }, "request_id": { "$ref": "res:RequestId" } }, "required": ["object", "data", "has_more", "next_cursor", "request_id"] },
|
|
191
|
+
"req:GenerationStatus": { "type": "string", "enum": ["queued", "running", "completed", "failed"] },
|
|
192
|
+
"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"] },
|
|
190
193
|
"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"] }, "
|
|
194
|
+
"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"] }, "compatibility": { "anyOf": [{ "$ref": "res:DraftCompatibility" }, { "type": "null" }] }, "version": { "anyOf": [{ "$ref": "res:DraftVersion" }, { "type": "null" }] }, "errors": { "type": "array", "items": { "$ref": "res:ErrorDetail" } }, "changes": { "type": ["object", "null"], "properties": { "changelog": { "type": ["string", "null"] }, "breaking_count": { "type": ["integer", "null"], "minimum": 0 } } }, "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", "compatibility", "version", "errors", "checks", "changes", "head_sha", "pull_request", "generation_id", "release_id", "conflicts", "customized_files", "history_recovery", "created_at", "updated_at"] },
|
|
192
195
|
"res:DraftStatus": { "type": "string" },
|
|
193
196
|
"res:DraftActionReason": { "type": "string" },
|
|
194
|
-
"res:
|
|
197
|
+
"res:DraftCompatibility": { "type": "object", "properties": { "api": { "type": "string" }, "package": { "type": "string" } }, "required": ["api", "package"] },
|
|
198
|
+
"res:DraftVersion": { "type": "object", "properties": { "bump_required": { "type": ["string", "null"] }, "correct": { "type": ["boolean", "null"] }, "previous": { "type": ["string", "null"] } }, "required": ["bump_required", "correct", "previous"] },
|
|
195
199
|
"res:DraftConflicts": { "type": "object", "properties": { "total": { "type": "integer", "minimum": 1 }, "decided": { "type": "integer", "minimum": 0 } }, "required": ["total", "decided"] },
|
|
196
200
|
"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": ["
|
|
201
|
+
"req:DraftStatus": { "type": "string", "enum": ["idle", "working", "action_required", "ready", "merged"] },
|
|
198
202
|
"res:DraftResponse": { "allOf": [{ "$ref": "res:Draft" }, { "$ref": "res:ResponseMetadata" }] },
|
|
199
203
|
"req:DraftId": { "type": "string", "pattern": "^drf_[a-z0-9]{16}$" },
|
|
200
204
|
"req:DraftUpdateRequest": { "type": "object", "additionalProperties": false, "properties": { "version_next": { "type": ["string", "null"] } }, "required": ["version_next"] },
|
|
@@ -209,21 +213,19 @@ export const DEFS = {
|
|
|
209
213
|
"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
214
|
"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
215
|
"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"] },
|
|
220
|
-
"res:GenerationResponse": { "allOf": [{ "$ref": "res:Generation" }, { "$ref": "res:ResponseMetadata" }] },
|
|
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
216
|
"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
217
|
"req:FileId": { "type": "string", "pattern": "^file_[a-z0-9]{16}$" },
|
|
218
|
+
"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"] },
|
|
219
|
+
"req:SpecInput": { "anyOf": [{ "$ref": "req:UrlSpecInput" }, { "$ref": "req:InlineSpecInput" }] },
|
|
220
|
+
"req:UrlSpecInput": { "type": "object", "additionalProperties": false, "properties": { "url": { "type": "string", "pattern": "^https?://" }, "headers": { "type": "object" } }, "required": ["url"] },
|
|
221
|
+
"req:InlineSpecInput": { "type": "object", "additionalProperties": false, "properties": { "inline": { "type": "string" } }, "required": ["inline"] },
|
|
222
|
+
"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"] },
|
|
223
|
+
"req:Config": { "type": "object", "additionalProperties": false, "properties": { "globals": { "type": "array", "maxItems": 20, "items": { "type": "string" } }, "include": { "type": "array", "maxItems": 100, "items": { "type": "string", "minLength": 1, "maxLength": 500 } }, "exclude": { "type": "array", "maxItems": 100, "items": { "type": "string", "minLength": 1, "maxLength": 500 } }, "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"] } } },
|
|
224
|
+
"res:GenerationResult": { "type": "object", "properties": { "object": { "type": "string" }, "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": ["object", "files", "warnings", "coverage", "request_id"] },
|
|
225
|
+
"res:GeneratedFile": { "type": "object", "properties": { "path": { "type": "string" }, "content": { "type": "string" }, "mode": { "type": "string" } }, "required": ["path", "content"] },
|
|
226
|
+
"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"] },
|
|
225
227
|
"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
228
|
"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" }, "
|
|
229
|
+
"res:ApiKey": { "type": "object", "properties": { "id": { "type": "string" }, "object": { "type": "string" }, "name": { "type": "string" }, "last4": { "type": "string" }, "status": { "type": "string" }, "last_used_at": { "type": ["string", "null"] }, "created_at": { "type": "string" }, "updated_at": { "type": "string" }, "request_id": { "$ref": "res:RequestId" } }, "required": ["id", "object", "name", "last4", "status", "last_used_at", "created_at", "updated_at"] },
|
|
228
230
|
"res:ApiKeyResponse": { "allOf": [{ "$ref": "res:ApiKey" }, { "$ref": "res:ResponseMetadata" }] },
|
|
229
231
|
};
|