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