@typeship-ax/cli 0.6.0 → 0.8.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/api.json +5597 -3010
- package/api.md +433 -54
- package/dist/cli-agent.d.ts +9 -1
- package/dist/cli-agent.d.ts.map +1 -1
- package/dist/cli-agent.js +26 -9
- package/dist/cli.js +83 -232
- package/dist/core/http.d.ts +6 -92
- package/dist/core/http.d.ts.map +1 -1
- package/dist/core/http.js +70 -209
- package/dist/core/pagination.d.ts.map +1 -1
- package/dist/core/pagination.js +6 -34
- package/dist/dates.d.ts +0 -2
- package/dist/dates.d.ts.map +1 -1
- package/dist/dates.js +0 -1
- package/dist/docs.d.ts +11 -0
- package/dist/docs.d.ts.map +1 -0
- package/dist/docs.js +114 -0
- package/dist/errors.d.ts +27 -27
- package/dist/errors.d.ts.map +1 -1
- package/dist/errors.js +7 -7
- package/dist/index.d.ts +19 -11
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +23 -13
- package/dist/ops.d.ts +5 -0
- package/dist/ops.d.ts.map +1 -1
- package/dist/ops.js +31 -17
- package/dist/resources/account.d.ts +2 -2
- package/dist/resources/account.d.ts.map +1 -1
- package/dist/resources/api-keys.d.ts +10 -5
- package/dist/resources/api-keys.d.ts.map +1 -1
- package/dist/resources/api-keys.js +3 -1
- package/dist/resources/definition-revisions.d.ts +58 -0
- package/dist/resources/definition-revisions.d.ts.map +1 -0
- package/dist/resources/definition-revisions.js +110 -0
- package/dist/resources/definitions.d.ts +24 -0
- package/dist/resources/definitions.d.ts.map +1 -0
- package/dist/resources/definitions.js +51 -0
- package/dist/resources/generate.d.ts +5 -5
- package/dist/resources/generate.d.ts.map +1 -1
- package/dist/resources/generate.js +3 -3
- package/dist/resources/generations.d.ts +3 -3
- package/dist/resources/generations.d.ts.map +1 -1
- package/dist/resources/generations.js +1 -1
- package/dist/resources/projects.d.ts +66 -26
- package/dist/resources/projects.d.ts.map +1 -1
- package/dist/resources/projects.js +87 -13
- package/dist/resources/targets.d.ts +86 -0
- package/dist/resources/targets.d.ts.map +1 -0
- package/dist/resources/targets.js +184 -0
- package/dist/schemas.d.ts.map +1 -1
- package/dist/schemas.js +119 -62
- package/dist/types.d.ts +1761 -222
- package/dist/types.d.ts.map +1 -1
- package/dist/types.js +9 -3
- package/package.json +1 -1
- package/src/cli-agent.ts +28 -11
- package/src/cli.ts +89 -233
- package/src/core/http.ts +75 -293
- package/src/core/pagination.ts +6 -30
- package/src/dates.ts +0 -1
- package/src/docs.ts +101 -0
- package/src/errors.ts +30 -30
- package/src/index.ts +23 -13
- package/src/ops.ts +43 -17
- package/src/resources/account.ts +3 -3
- package/src/resources/api-keys.ts +22 -7
- package/src/resources/definition-revisions.ts +198 -0
- package/src/resources/definitions.ts +97 -0
- package/src/resources/generate.ts +6 -6
- package/src/resources/generations.ts +4 -4
- package/src/resources/projects.ts +182 -37
- package/src/resources/targets.ts +346 -0
- package/src/schemas.ts +119 -62
- package/src/types.ts +1947 -281
- package/dist/resources/spec-revisions.d.ts +0 -47
- package/dist/resources/spec-revisions.d.ts.map +0 -1
- package/dist/resources/spec-revisions.js +0 -90
- package/src/resources/spec-revisions.ts +0 -150
package/dist/schemas.js
CHANGED
|
@@ -2,7 +2,8 @@
|
|
|
2
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
|
-
// deduplicated into DEFS and referenced by "req:Name"
|
|
5
|
+
// deduplicated into DEFS and referenced by "req:Name", "res:Name", or
|
|
6
|
+
// "gql-res:Name" keys. GraphQL response definitions permit partial selections.
|
|
6
7
|
export const SCHEMAS = {
|
|
7
8
|
"generate.run": { "req": { "$ref": "req:GenerateRequest" }, "res": { "$ref": "res:GenerationResult" } },
|
|
8
9
|
"projects.list": { "res": { "$ref": "res:ProjectList" } },
|
|
@@ -10,79 +11,135 @@ export const SCHEMAS = {
|
|
|
10
11
|
"projects.retrieve": { "res": { "$ref": "res:Project" } },
|
|
11
12
|
"projects.delete": { "res": { "$ref": "res:DeletedProject" } },
|
|
12
13
|
"projects.update": { "req": { "$ref": "req:UpdateProjectRequest" }, "res": { "$ref": "res:Project" } },
|
|
13
|
-
"projects.
|
|
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" } },
|
|
14
18
|
"projects.listGenerations": { "res": { "$ref": "res:GenerationList" } },
|
|
15
19
|
"projects.generate": { "res": { "$ref": "res:GenerationBatch" } },
|
|
16
|
-
"
|
|
20
|
+
"definitions.retrieve": { "res": { "$ref": "res:Definition" } },
|
|
21
|
+
"definitions.update": { "req": { "$ref": "req:DefinitionUpdateRequest" }, "res": { "$ref": "res:Definition" } },
|
|
22
|
+
"targets.list": { "res": { "$ref": "res:TargetList" } },
|
|
23
|
+
"targets.create": { "req": { "$ref": "req:TargetFields" }, "res": { "$ref": "res:TargetResponse" } },
|
|
24
|
+
"targets.retrieve": { "res": { "$ref": "res:TargetResponse" } },
|
|
25
|
+
"targets.delete": { "res": { "$ref": "res:DeletedTarget" } },
|
|
26
|
+
"targets.update": { "req": { "$ref": "req:TargetUpdateRequest" }, "res": { "$ref": "res:TargetResponse" } },
|
|
27
|
+
"targets.listReleases": { "res": { "$ref": "res:TargetReleaseList" } },
|
|
28
|
+
"targets.retrieveRelease": { "res": { "$ref": "res:TargetReleaseResponse" } },
|
|
29
|
+
"generations.retrieve": { "res": { "$ref": "res:GenerationResponse" } },
|
|
17
30
|
"generations.retrieveFile": { "res": { "type": "string" } },
|
|
18
|
-
"
|
|
19
|
-
"
|
|
20
|
-
"
|
|
31
|
+
"definitionRevisions.list": { "res": { "$ref": "res:DefinitionRevisionList" } },
|
|
32
|
+
"definitionRevisions.retrieve": { "res": { "$ref": "res:DefinitionRevisionResponse" } },
|
|
33
|
+
"definitionRevisions.retrieveContent": { "res": { "type": "string" } },
|
|
34
|
+
"definitionRevisions.retrieveDocumentContent": { "res": { "type": "string" } },
|
|
21
35
|
"account.retrieve": { "res": { "$ref": "res:Account" } },
|
|
22
36
|
"apiKeys.list": { "res": { "$ref": "res:ApiKeyList" } },
|
|
23
|
-
"apiKeys.revoke": { "res": { "$ref": "res:
|
|
37
|
+
"apiKeys.revoke": { "res": { "$ref": "res:ApiKeyResponse" } },
|
|
24
38
|
};
|
|
25
39
|
export const DEFS = {
|
|
26
|
-
"req:GenerateRequest": { "type": "object", "additionalProperties": false, "properties": { "
|
|
27
|
-
"req:
|
|
28
|
-
"req:
|
|
29
|
-
"req:
|
|
30
|
-
"req:
|
|
31
|
-
"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" }, "cli": { "$ref": "req:CliBehavior" }, "mcp": { "$ref": "req:McpBehavior" }, "package": { "$ref": "req:PackageBehavior" }, "docs_url": { "type": ["string", "null"] } } },
|
|
40
|
+
"req:GenerateRequest": { "type": "object", "additionalProperties": false, "properties": { "definition": { "$ref": "req:DefinitionInput" }, "target": { "type": "object", "additionalProperties": false, "properties": { "generator": { "$ref": "req:GeneratorKind" } }, "required": ["generator"] }, "package_name": { "type": "string" }, "module_path": { "type": "string" }, "config": { "$ref": "req:Config" } }, "required": ["definition", "target"] },
|
|
41
|
+
"req:DefinitionInput": { "anyOf": [{ "$ref": "req:UrlDefinitionInput" }, { "$ref": "req:InlineDefinitionInput" }] },
|
|
42
|
+
"req:UrlDefinitionInput": { "type": "object", "additionalProperties": false, "properties": { "url": { "type": "string", "pattern": "^https?://" }, "headers": { "type": "object" } }, "required": ["url"] },
|
|
43
|
+
"req:InlineDefinitionInput": { "type": "object", "additionalProperties": false, "properties": { "inline": { "type": "string" } }, "required": ["inline"] },
|
|
44
|
+
"req:GeneratorKind": { "type": "string", "enum": ["typescript-sdk", "python-sdk", "go-sdk", "cli", "mcp"] },
|
|
45
|
+
"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" }, "cli": { "$ref": "req:CliBehavior" }, "mcp": { "$ref": "req:McpBehavior" }, "package": { "$ref": "req:PackageBehavior" }, "docs_url": { "type": ["string", "null"] }, "docs_index_url": { "type": ["string", "null"] } } },
|
|
32
46
|
"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" } } },
|
|
33
47
|
"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" } } },
|
|
34
|
-
"req:CliBehavior": { "type": "object", "additionalProperties": false, "properties": { "whoami_operation": { "type": ["string", "null"] }, "oauth_client_id": { "type": ["string", "null"] }, "oauth_scopes": { "type": "array", "maxItems": 20, "items": { "type": "string" } }, "oauth_audience": { "type": ["string", "null"] }, "update_notice": { "type": "boolean" }, "support_url": { "type": ["string", "null"] }, "auth_url": { "type": ["string", "null"] }, "mcp_url": { "type": ["string", "null"] }, "skills_repo": { "type": ["string", "null"] } } },
|
|
35
|
-
"req:McpBehavior": { "type": "object", "additionalProperties": false, "properties": { "tool_mode": { "type": "string", "enum": ["auto", "operations", "meta"] }, "instructions": { "type": ["string", "null"], "maxLength": 2000 }, "tool_descriptions": { "type": "object" } } },
|
|
36
|
-
"req:PackageBehavior": { "type": "object", "additionalProperties": false, "properties": { "
|
|
37
|
-
"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"] }] } }, "required": ["files", "warnings", "meta"] },
|
|
48
|
+
"req:CliBehavior": { "type": "object", "additionalProperties": false, "properties": { "command_name": { "type": ["string", "null"] }, "whoami_operation": { "type": ["string", "null"] }, "oauth_client_id": { "type": ["string", "null"] }, "oauth_scopes": { "type": "array", "maxItems": 20, "items": { "type": "string" } }, "oauth_audience": { "type": ["string", "null"] }, "update_notice": { "type": "boolean" }, "support_url": { "type": ["string", "null"] }, "auth_url": { "type": ["string", "null"] }, "mcp_url": { "type": ["string", "null"] }, "skills_repo": { "type": ["string", "null"] } } },
|
|
49
|
+
"req:McpBehavior": { "type": "object", "additionalProperties": false, "properties": { "registry_name": { "type": ["string", "null"] }, "tool_mode": { "type": "string", "enum": ["auto", "operations", "meta"] }, "instructions": { "type": ["string", "null"], "maxLength": 2000 }, "tool_descriptions": { "type": "object" } } },
|
|
50
|
+
"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"] } } },
|
|
51
|
+
"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"] },
|
|
38
52
|
"res:GeneratedFile": { "type": "object", "properties": { "path": { "type": "string" }, "content": { "type": "string" } }, "required": ["path", "content"] },
|
|
39
|
-
"res:GenerationMeta": { "type": "object", "properties": { "title": { "type": "string" }, "
|
|
40
|
-
"res:
|
|
41
|
-
"res:
|
|
42
|
-
"res:
|
|
43
|
-
"res:
|
|
44
|
-
"res:
|
|
53
|
+
"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"] },
|
|
54
|
+
"res:GeneratorKind": { "type": "string" },
|
|
55
|
+
"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"] },
|
|
56
|
+
"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"] },
|
|
57
|
+
"res:RequestId": { "type": "string", "pattern": "^req_[a-z0-9]{16}$" },
|
|
58
|
+
"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"] },
|
|
59
|
+
"res:ListObject": { "type": "string" },
|
|
60
|
+
"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"] },
|
|
45
61
|
"res:ProjectId": { "type": "string", "pattern": "^prj_[a-z0-9]{16}$" },
|
|
46
|
-
"res:
|
|
47
|
-
"
|
|
48
|
-
"
|
|
49
|
-
"
|
|
50
|
-
"
|
|
51
|
-
"
|
|
52
|
-
"
|
|
53
|
-
"
|
|
62
|
+
"res:DefinitionId": { "type": "string", "pattern": "^def_[a-z0-9]{16}$" },
|
|
63
|
+
"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"] },
|
|
64
|
+
"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"] },
|
|
65
|
+
"req:DefinitionSourceInput": { "anyOf": [{ "$ref": "req:UrlDefinitionSourceInput" }, { "$ref": "req:RepositoryDefinitionSourceInput" }] },
|
|
66
|
+
"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"] },
|
|
67
|
+
"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"] },
|
|
68
|
+
"req:RepositoryReference": { "type": "object", "additionalProperties": false, "properties": { "provider": { "type": "string", "enum": ["github"] }, "identifier": { "type": "string", "maxLength": 512 } }, "required": ["provider", "identifier"] },
|
|
69
|
+
"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"] },
|
|
70
|
+
"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"] },
|
|
71
|
+
"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"] },
|
|
72
|
+
"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:ProjectConfig" }, { "type": "null" }] }, "deliveries": { "type": "array", "items": { "$ref": "req:DeliveryInput" } } }, "required": ["name", "generator"] },
|
|
73
|
+
"req:ProjectConfig": { "type": "object", "additionalProperties": false, "properties": { "globals": { "type": "array", "maxItems": 20, "items": { "type": "string" } }, "retries": { "$ref": "req:RetryTuning" }, "pagination": { "type": "object" }, "cli": { "$ref": "req:CliBehavior" }, "mcp": { "$ref": "req:McpBehavior" }, "package": { "$ref": "req:PackageBehavior" }, "docs_url": { "type": ["string", "null"] }, "docs_index_url": { "type": ["string", "null"] } } },
|
|
74
|
+
"req:DeliveryInput": { "anyOf": [{ "$ref": "req:RepositoryDeliveryInput" }, { "$ref": "req:HostedMcpDeliveryInput" }] },
|
|
75
|
+
"req:RepositoryDeliveryInput": { "type": "object", "additionalProperties": false, "properties": { "kind": { "type": "string", "const": "repository" }, "repository": { "$ref": "req:RepositoryReference" }, "directory": { "type": ["string", "null"] }, "package_name": { "type": ["string", "null"] }, "module_path": { "type": ["string", "null"] } }, "required": ["kind", "repository"] },
|
|
76
|
+
"req:HostedMcpDeliveryInput": { "type": "object", "additionalProperties": false, "properties": { "kind": { "type": "string", "const": "hosted_mcp" } }, "required": ["kind"] },
|
|
77
|
+
"res:Project": { "type": "object", "additionalProperties": false, "properties": { "id": { "$ref": "res:ProjectId" }, "object": { "type": "string" }, "name": { "type": "string", "maxLength": 80 }, "definition_id": { "$ref": "res:DefinitionId" }, "targets": { "type": "array", "items": { "$ref": "res:Target" } }, "deliveries": { "type": "array", "items": { "$ref": "res:Delivery" } }, "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", "targets", "deliveries", "auto_generate", "relay_enabled", "config", "created_at", "updated_at", "request_id"] },
|
|
78
|
+
"res:Target": { "type": "object", "additionalProperties": false, "properties": { "id": { "$ref": "res:TargetId" }, "object": { "type": "string" }, "project_id": { "$ref": "res:ProjectId" }, "definition_id": { "$ref": "res:DefinitionId" }, "name": { "type": "string" }, "generator": { "$ref": "res:GeneratorKind" }, "state": { "type": "string" }, "edition": { "type": "string" }, "release_channel": { "type": "string" }, "version_policy": { "type": "object", "additionalProperties": false, "properties": { "mode": { "type": "string" }, "pre1_breaking": { "type": "string" } }, "required": ["mode", "pre1_breaking"] }, "current_version": { "type": "string" }, "proposed_version": { "type": ["string", "null"] }, "config": { "anyOf": [{ "$ref": "res:ProjectConfig" }, { "type": "null" }] }, "deliveries": { "type": "array", "items": { "$ref": "res:Delivery" } }, "created_at": { "type": "string" }, "updated_at": { "type": "string" }, "request_id": { "$ref": "res:RequestId" } }, "required": ["id", "object", "project_id", "definition_id", "name", "generator", "state", "edition", "release_channel", "version_policy", "current_version", "proposed_version", "config", "deliveries", "created_at", "updated_at"] },
|
|
79
|
+
"res:TargetId": { "type": "string", "pattern": "^tgt_[a-z0-9]{16}$" },
|
|
80
|
+
"res:ProjectConfig": { "type": "object", "additionalProperties": false, "properties": { "globals": { "type": "array", "maxItems": 20, "items": { "type": "string" } }, "retries": { "$ref": "res:RetryTuning" }, "pagination": { "type": "object" }, "cli": { "$ref": "res:CliBehavior" }, "mcp": { "$ref": "res:McpBehavior" }, "package": { "$ref": "res:PackageBehavior" }, "docs_url": { "type": ["string", "null"] }, "docs_index_url": { "type": ["string", "null"] } } },
|
|
54
81
|
"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" } } },
|
|
55
|
-
"res:
|
|
56
|
-
"res:
|
|
57
|
-
"res:
|
|
58
|
-
"res:
|
|
59
|
-
"
|
|
60
|
-
"
|
|
61
|
-
"
|
|
62
|
-
"
|
|
63
|
-
"
|
|
64
|
-
"req:
|
|
65
|
-
"
|
|
66
|
-
"
|
|
67
|
-
"res:
|
|
68
|
-
"
|
|
69
|
-
"res:
|
|
70
|
-
"res:
|
|
71
|
-
"res:
|
|
72
|
-
"res:
|
|
73
|
-
"res:
|
|
74
|
-
"res:
|
|
82
|
+
"res:CliBehavior": { "type": "object", "additionalProperties": false, "properties": { "command_name": { "type": ["string", "null"] }, "whoami_operation": { "type": ["string", "null"] }, "oauth_client_id": { "type": ["string", "null"] }, "oauth_scopes": { "type": "array", "maxItems": 20, "items": { "type": "string" } }, "oauth_audience": { "type": ["string", "null"] }, "update_notice": { "type": "boolean" }, "support_url": { "type": ["string", "null"] }, "auth_url": { "type": ["string", "null"] }, "mcp_url": { "type": ["string", "null"] }, "skills_repo": { "type": ["string", "null"] } } },
|
|
83
|
+
"res:McpBehavior": { "type": "object", "additionalProperties": false, "properties": { "registry_name": { "type": ["string", "null"] }, "tool_mode": { "type": "string" }, "instructions": { "type": ["string", "null"], "maxLength": 2000 }, "tool_descriptions": { "type": "object" } } },
|
|
84
|
+
"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"] } } },
|
|
85
|
+
"res:Delivery": { "anyOf": [{ "$ref": "res:RepositoryDelivery" }, { "$ref": "res:HostedMcpDelivery" }, { "type": "object" }] },
|
|
86
|
+
"res:RepositoryDelivery": { "type": "object", "additionalProperties": false, "properties": { "id": { "$ref": "res:DeliveryId" }, "object": { "type": "string" }, "target_id": { "$ref": "res:TargetId" }, "kind": { "type": "string" }, "state": { "type": "string" }, "repository": { "$ref": "res:RepositoryReference" }, "directory": { "type": ["string", "null"] }, "package_name": { "type": ["string", "null"] }, "module_path": { "type": ["string", "null"] }, "created_at": { "type": "string" }, "updated_at": { "type": "string" } }, "required": ["id", "object", "target_id", "kind", "state", "repository", "directory", "package_name", "module_path", "created_at", "updated_at"] },
|
|
87
|
+
"res:DeliveryId": { "type": "string", "pattern": "^dlv_[a-z0-9]{16}$" },
|
|
88
|
+
"res:RepositoryReference": { "type": "object", "additionalProperties": false, "properties": { "provider": { "type": "string" }, "identifier": { "type": "string", "maxLength": 512 } }, "required": ["provider", "identifier"] },
|
|
89
|
+
"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"] },
|
|
90
|
+
"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"] },
|
|
91
|
+
"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" }] } } },
|
|
92
|
+
"res:DiagnosticReport": { "type": "object", "additionalProperties": false, "properties": { "object": { "type": "string" }, "format": { "type": "string" }, "project_id": { "$ref": "res:ProjectId" }, "definition_revision_id": { "$ref": "res:DefinitionRevisionId" }, "source_sha256": { "type": "string", "pattern": "^[a-f0-9]{64}$" }, "analyzed_sha256": { "type": "string", "pattern": "^[a-f0-9]{64}$" }, "patch_diagnostics": { "type": "array", "items": { "type": "string" } }, "summary": { "$ref": "res:DiagnosticSummary" }, "diagnostics": { "type": "array", "items": { "$ref": "res:Diagnostic" } }, "policy": { "$ref": "res:DiagnosticPolicy" }, "evaluation": { "$ref": "res:DiagnosticEvaluation" }, "delta": { "$ref": "res:DiagnosticDelta" }, "request_id": { "$ref": "res:RequestId" } }, "required": ["object", "format", "project_id", "definition_revision_id", "source_sha256", "analyzed_sha256", "patch_diagnostics", "summary", "diagnostics", "policy", "evaluation", "delta", "request_id"] },
|
|
93
|
+
"res:DefinitionRevisionId": { "type": "string", "pattern": "^drev_[a-z0-9]{16}$" },
|
|
94
|
+
"res:Diagnostic": { "type": "object", "additionalProperties": false, "properties": { "id": { "type": "string" }, "severity": { "type": "string" }, "category": { "type": "string" }, "title": { "type": "string" }, "description": { "type": "string" }, "impact": { "type": "string" }, "surfaces": { "type": "array", "items": { "type": "string" } }, "locations": { "type": "array", "minItems": 1, "items": { "$ref": "res:DiagnosticLocation" } }, "fix": { "$ref": "res:DiagnosticFix" }, "authoring_brief": { "type": "string" } }, "required": ["id", "severity", "category", "title", "description", "impact", "surfaces", "locations", "authoring_brief"] },
|
|
95
|
+
"res:DiagnosticLocation": { "type": "object", "additionalProperties": false, "properties": { "document": { "type": "string" }, "path": { "type": "string" }, "operation": { "type": "string" }, "evidence": { "type": "string" } }, "required": ["path"] },
|
|
96
|
+
"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"] },
|
|
97
|
+
"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"] },
|
|
98
|
+
"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"] },
|
|
99
|
+
"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"] },
|
|
100
|
+
"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"] },
|
|
101
|
+
"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"] },
|
|
102
|
+
"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"] },
|
|
103
|
+
"req:DiagnosticRemediationRequest": { "type": "object", "additionalProperties": false, "properties": { "diagnostic_ids": { "type": "array", "minItems": 1, "maxItems": 50, "items": { "type": "string" } } }, "required": ["diagnostic_ids"] },
|
|
104
|
+
"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"] },
|
|
105
|
+
"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"] },
|
|
106
|
+
"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"] },
|
|
107
|
+
"res:RepositoryHealthIssue": { "type": "object", "additionalProperties": false, "properties": { "code": { "type": "string" }, "message": { "type": "string" } }, "required": ["code", "message"] },
|
|
108
|
+
"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"] },
|
|
109
|
+
"res:GenerationList": { "type": "object", "additionalProperties": false, "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"] },
|
|
110
|
+
"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": { "type": "string" }, "trigger": { "type": "string" }, "target_id": { "anyOf": [{ "$ref": "res:TargetId" }, { "type": "null" }] }, "generator": { "$ref": "res:GeneratorKind" }, "provenance": { "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"] }, "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"] },
|
|
75
111
|
"res:GenerationId": { "type": "string", "pattern": "^gen_[a-z0-9]{16}$" },
|
|
76
112
|
"res:FileStub": { "type": "object", "properties": { "path": { "type": "string" }, "bytes": { "type": "integer" } }, "required": ["path", "bytes"] },
|
|
77
|
-
"res:GenerationBatch": { "type": "object", "additionalProperties": false, "properties": { "data": { "type": "array", "items": { "anyOf": [{ "$ref": "res:Generation" }, { "$ref": "res:GenerationFailure" }] } } }, "required": ["data"] },
|
|
78
|
-
"res:GenerationFailure": { "type": "object", "additionalProperties": false, "properties": { "
|
|
79
|
-
"res:
|
|
80
|
-
"res:
|
|
81
|
-
"res:
|
|
82
|
-
"res:
|
|
83
|
-
"res:
|
|
84
|
-
"
|
|
85
|
-
"res:
|
|
86
|
-
"
|
|
87
|
-
"
|
|
113
|
+
"res:GenerationBatch": { "type": "object", "additionalProperties": false, "properties": { "data": { "type": "array", "items": { "anyOf": [{ "$ref": "res:Generation" }, { "$ref": "res:GenerationFailure" }] } }, "request_id": { "$ref": "res:RequestId" } }, "required": ["data", "request_id"] },
|
|
114
|
+
"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"] },
|
|
115
|
+
"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"] },
|
|
116
|
+
"res:DefinitionSource": { "anyOf": [{ "$ref": "res:UrlDefinitionSource" }, { "$ref": "res:RepositoryDefinitionSource" }, { "type": "object" }] },
|
|
117
|
+
"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"] },
|
|
118
|
+
"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"] },
|
|
119
|
+
"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" } } },
|
|
120
|
+
"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" } } },
|
|
121
|
+
"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"] },
|
|
122
|
+
"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:ProjectConfig" }, { "type": "null" }] }, "deliveries": { "type": "array", "items": { "$ref": "req:DeliveryInput" } } }, "required": ["name", "definition_id", "generator"] },
|
|
123
|
+
"req:DefinitionId": { "type": "string", "pattern": "^def_[a-z0-9]{16}$" },
|
|
124
|
+
"res:TargetResponse": { "allOf": [{ "$ref": "res:Target" }, { "$ref": "res:ResponseMetadata" }] },
|
|
125
|
+
"res:ResponseMetadata": { "type": "object", "properties": { "request_id": { "$ref": "res:RequestId" } }, "required": ["request_id"] },
|
|
126
|
+
"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"] },
|
|
127
|
+
"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:ProjectConfig" }, { "type": "null" }] }, "deliveries": { "type": "array", "items": { "$ref": "req:DeliveryInput" } } } },
|
|
128
|
+
"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"] },
|
|
129
|
+
"res:TargetRelease": { "type": "object", "additionalProperties": false, "properties": { "id": { "$ref": "res:TargetReleaseId" }, "object": { "type": "string" }, "target_id": { "$ref": "res:TargetId" }, "generation_id": { "$ref": "res:GenerationId" }, "version": { "type": "string" }, "channel": { "type": "string" }, "provider": { "type": "string" }, "repository": { "anyOf": [{ "$ref": "res:RepositoryReference" }, { "type": "null" }] }, "definition_revision_id": { "anyOf": [{ "$ref": "res:DefinitionRevisionId" }, { "type": "null" }] }, "delivery_revision": { "type": "string" }, "created_at": { "type": "string" }, "request_id": { "$ref": "res:RequestId" } }, "required": ["id", "object", "target_id", "generation_id", "version", "channel", "provider", "repository", "definition_revision_id", "delivery_revision", "created_at"] },
|
|
130
|
+
"res:TargetReleaseId": { "type": "string", "pattern": "^rel_[a-z0-9]{16}$" },
|
|
131
|
+
"res:TargetReleaseResponse": { "allOf": [{ "$ref": "res:TargetRelease" }, { "$ref": "res:ResponseMetadata" }] },
|
|
132
|
+
"res:GenerationResponse": { "allOf": [{ "$ref": "res:Generation" }, { "$ref": "res:ResponseMetadata" }] },
|
|
133
|
+
"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"] },
|
|
134
|
+
"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"] },
|
|
135
|
+
"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"] },
|
|
136
|
+
"res:DefinitionDocumentId": { "type": "string", "pattern": "^doc_[a-z0-9]{16}$" },
|
|
137
|
+
"res:DefinitionRevisionSource": { "anyOf": [{ "$ref": "res:UrlDefinitionRevisionSource" }, { "$ref": "res:RepositoryDefinitionRevisionSource" }, { "type": "object" }] },
|
|
138
|
+
"res:UrlDefinitionRevisionSource": { "type": "object", "additionalProperties": false, "properties": { "kind": { "type": "string" }, "url": { "type": "string" } }, "required": ["kind", "url"] },
|
|
139
|
+
"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"] },
|
|
140
|
+
"res:DefinitionRevisionResponse": { "allOf": [{ "$ref": "res:DefinitionRevision" }, { "$ref": "res:ResponseMetadata" }] },
|
|
141
|
+
"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"] },
|
|
142
|
+
"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"] },
|
|
143
|
+
"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"] },
|
|
144
|
+
"res:ApiKeyResponse": { "allOf": [{ "$ref": "res:ApiKey" }, { "$ref": "res:ResponseMetadata" }] },
|
|
88
145
|
};
|