@typeship-ax/mcp 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/README.md +1 -1
- package/api.json +5597 -3010
- package/api.md +433 -54
- 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/mcp-protocol.d.ts +19 -24
- package/dist/mcp-protocol.d.ts.map +1 -1
- package/dist/mcp-protocol.js +160 -124
- package/dist/mcp.js +16 -19
- 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/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/mcp-protocol.ts +170 -120
- package/src/mcp.ts +22 -22
- 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/src/schemas.ts
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
|
|
|
7
8
|
export const SCHEMAS: Record<string, { req?: unknown; res?: unknown }> = {
|
|
8
9
|
"generate.run": {"req":{"$ref":"req:GenerateRequest"},"res":{"$ref":"res:GenerationResult"}},
|
|
@@ -11,80 +12,136 @@ export const SCHEMAS: Record<string, { req?: unknown; res?: unknown }> = {
|
|
|
11
12
|
"projects.retrieve": {"res":{"$ref":"res:Project"}},
|
|
12
13
|
"projects.delete": {"res":{"$ref":"res:DeletedProject"}},
|
|
13
14
|
"projects.update": {"req":{"$ref":"req:UpdateProjectRequest"},"res":{"$ref":"res:Project"}},
|
|
14
|
-
"projects.
|
|
15
|
+
"projects.retrieveDiagnostics": {"res":{"$ref":"res:DiagnosticReport"}},
|
|
16
|
+
"projects.refreshDiagnostics": {"res":{"$ref":"res:DiagnosticReport"}},
|
|
17
|
+
"projects.remediateDiagnostics": {"req":{"$ref":"req:DiagnosticRemediationRequest"},"res":{"$ref":"res:DiagnosticRemediation"}},
|
|
18
|
+
"projects.retrieveIntegrationHealth": {"res":{"$ref":"res:RepositoryIntegrationHealth"}},
|
|
15
19
|
"projects.listGenerations": {"res":{"$ref":"res:GenerationList"}},
|
|
16
20
|
"projects.generate": {"res":{"$ref":"res:GenerationBatch"}},
|
|
17
|
-
"
|
|
21
|
+
"definitions.retrieve": {"res":{"$ref":"res:Definition"}},
|
|
22
|
+
"definitions.update": {"req":{"$ref":"req:DefinitionUpdateRequest"},"res":{"$ref":"res:Definition"}},
|
|
23
|
+
"targets.list": {"res":{"$ref":"res:TargetList"}},
|
|
24
|
+
"targets.create": {"req":{"$ref":"req:TargetFields"},"res":{"$ref":"res:TargetResponse"}},
|
|
25
|
+
"targets.retrieve": {"res":{"$ref":"res:TargetResponse"}},
|
|
26
|
+
"targets.delete": {"res":{"$ref":"res:DeletedTarget"}},
|
|
27
|
+
"targets.update": {"req":{"$ref":"req:TargetUpdateRequest"},"res":{"$ref":"res:TargetResponse"}},
|
|
28
|
+
"targets.listReleases": {"res":{"$ref":"res:TargetReleaseList"}},
|
|
29
|
+
"targets.retrieveRelease": {"res":{"$ref":"res:TargetReleaseResponse"}},
|
|
30
|
+
"generations.retrieve": {"res":{"$ref":"res:GenerationResponse"}},
|
|
18
31
|
"generations.retrieveFile": {"res":{"type":"string"}},
|
|
19
|
-
"
|
|
20
|
-
"
|
|
21
|
-
"
|
|
32
|
+
"definitionRevisions.list": {"res":{"$ref":"res:DefinitionRevisionList"}},
|
|
33
|
+
"definitionRevisions.retrieve": {"res":{"$ref":"res:DefinitionRevisionResponse"}},
|
|
34
|
+
"definitionRevisions.retrieveContent": {"res":{"type":"string"}},
|
|
35
|
+
"definitionRevisions.retrieveDocumentContent": {"res":{"type":"string"}},
|
|
22
36
|
"account.retrieve": {"res":{"$ref":"res:Account"}},
|
|
23
37
|
"apiKeys.list": {"res":{"$ref":"res:ApiKeyList"}},
|
|
24
|
-
"apiKeys.revoke": {"res":{"$ref":"res:
|
|
38
|
+
"apiKeys.revoke": {"res":{"$ref":"res:ApiKeyResponse"}},
|
|
25
39
|
};
|
|
26
40
|
|
|
27
41
|
export const DEFS: Record<string, unknown> = {
|
|
28
|
-
"req:GenerateRequest": {"type":"object","additionalProperties":false,"properties":{"
|
|
29
|
-
"req:
|
|
30
|
-
"req:
|
|
31
|
-
"req:
|
|
32
|
-
"req:
|
|
33
|
-
"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"]}}},
|
|
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"]},
|
|
43
|
+
"req:DefinitionInput": {"anyOf":[{"$ref":"req:UrlDefinitionInput"},{"$ref":"req:InlineDefinitionInput"}]},
|
|
44
|
+
"req:UrlDefinitionInput": {"type":"object","additionalProperties":false,"properties":{"url":{"type":"string","pattern":"^https?://"},"headers":{"type":"object"}},"required":["url"]},
|
|
45
|
+
"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"]},
|
|
47
|
+
"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"]}}},
|
|
34
48
|
"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"}}},
|
|
35
49
|
"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"}}},
|
|
36
|
-
"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"]}}},
|
|
37
|
-
"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"}}},
|
|
38
|
-
"req:PackageBehavior": {"type":"object","additionalProperties":false,"properties":{"
|
|
39
|
-
"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"]},
|
|
50
|
+
"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"]}}},
|
|
51
|
+
"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"}}},
|
|
52
|
+
"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"]}}},
|
|
53
|
+
"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"]},
|
|
40
54
|
"res:GeneratedFile": {"type":"object","properties":{"path":{"type":"string"},"content":{"type":"string"}},"required":["path","content"]},
|
|
41
|
-
"res:GenerationMeta": {"type":"object","properties":{"title":{"type":"string"},"
|
|
42
|
-
"res:
|
|
43
|
-
"res:
|
|
44
|
-
"res:
|
|
45
|
-
"res:
|
|
46
|
-
"res:
|
|
55
|
+
"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"]},
|
|
56
|
+
"res:GeneratorKind": {"type":"string"},
|
|
57
|
+
"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"]},
|
|
58
|
+
"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"]},
|
|
59
|
+
"res:RequestId": {"type":"string","pattern":"^req_[a-z0-9]{16}$"},
|
|
60
|
+
"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"]},
|
|
61
|
+
"res:ListObject": {"type":"string"},
|
|
62
|
+
"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"]},
|
|
47
63
|
"res:ProjectId": {"type":"string","pattern":"^prj_[a-z0-9]{16}$"},
|
|
48
|
-
"res:
|
|
49
|
-
"
|
|
50
|
-
"
|
|
51
|
-
"
|
|
52
|
-
"
|
|
53
|
-
"
|
|
54
|
-
"
|
|
55
|
-
"
|
|
64
|
+
"res:DefinitionId": {"type":"string","pattern":"^def_[a-z0-9]{16}$"},
|
|
65
|
+
"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"]},
|
|
66
|
+
"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"]},
|
|
67
|
+
"req:DefinitionSourceInput": {"anyOf":[{"$ref":"req:UrlDefinitionSourceInput"},{"$ref":"req:RepositoryDefinitionSourceInput"}]},
|
|
68
|
+
"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"]},
|
|
69
|
+
"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"]},
|
|
70
|
+
"req:RepositoryReference": {"type":"object","additionalProperties":false,"properties":{"provider":{"type":"string","enum":["github"]},"identifier":{"type":"string","maxLength":512}},"required":["provider","identifier"]},
|
|
71
|
+
"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"]},
|
|
72
|
+
"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"]},
|
|
73
|
+
"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"]},
|
|
74
|
+
"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"]},
|
|
75
|
+
"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"]}}},
|
|
76
|
+
"req:DeliveryInput": {"anyOf":[{"$ref":"req:RepositoryDeliveryInput"},{"$ref":"req:HostedMcpDeliveryInput"}]},
|
|
77
|
+
"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"]},
|
|
78
|
+
"req:HostedMcpDeliveryInput": {"type":"object","additionalProperties":false,"properties":{"kind":{"type":"string","const":"hosted_mcp"}},"required":["kind"]},
|
|
79
|
+
"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"]},
|
|
80
|
+
"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"]},
|
|
81
|
+
"res:TargetId": {"type":"string","pattern":"^tgt_[a-z0-9]{16}$"},
|
|
82
|
+
"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"]}}},
|
|
56
83
|
"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"}}},
|
|
57
|
-
"res:
|
|
58
|
-
"res:
|
|
59
|
-
"res:
|
|
60
|
-
"res:
|
|
61
|
-
"
|
|
62
|
-
"
|
|
63
|
-
"
|
|
64
|
-
"
|
|
65
|
-
"
|
|
66
|
-
"req:
|
|
67
|
-
"
|
|
68
|
-
"
|
|
69
|
-
"res:
|
|
70
|
-
"
|
|
71
|
-
"res:
|
|
72
|
-
"res:
|
|
73
|
-
"res:
|
|
74
|
-
"res:
|
|
75
|
-
"res:
|
|
76
|
-
"res:
|
|
84
|
+
"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"]}}},
|
|
85
|
+
"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"}}},
|
|
86
|
+
"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"]}}},
|
|
87
|
+
"res:Delivery": {"anyOf":[{"$ref":"res:RepositoryDelivery"},{"$ref":"res:HostedMcpDelivery"},{"type":"object"}]},
|
|
88
|
+
"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"]},
|
|
89
|
+
"res:DeliveryId": {"type":"string","pattern":"^dlv_[a-z0-9]{16}$"},
|
|
90
|
+
"res:RepositoryReference": {"type":"object","additionalProperties":false,"properties":{"provider":{"type":"string"},"identifier":{"type":"string","maxLength":512}},"required":["provider","identifier"]},
|
|
91
|
+
"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"]},
|
|
92
|
+
"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"]},
|
|
93
|
+
"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"}]}}},
|
|
94
|
+
"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"]},
|
|
95
|
+
"res:DefinitionRevisionId": {"type":"string","pattern":"^drev_[a-z0-9]{16}$"},
|
|
96
|
+
"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"]},
|
|
97
|
+
"res:DiagnosticLocation": {"type":"object","additionalProperties":false,"properties":{"document":{"type":"string"},"path":{"type":"string"},"operation":{"type":"string"},"evidence":{"type":"string"}},"required":["path"]},
|
|
98
|
+
"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"]},
|
|
99
|
+
"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"]},
|
|
100
|
+
"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"]},
|
|
101
|
+
"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"]},
|
|
102
|
+
"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"]},
|
|
103
|
+
"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"]},
|
|
104
|
+
"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"]},
|
|
105
|
+
"req:DiagnosticRemediationRequest": {"type":"object","additionalProperties":false,"properties":{"diagnostic_ids":{"type":"array","minItems":1,"maxItems":50,"items":{"type":"string"}}},"required":["diagnostic_ids"]},
|
|
106
|
+
"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"]},
|
|
107
|
+
"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"]},
|
|
108
|
+
"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"]},
|
|
109
|
+
"res:RepositoryHealthIssue": {"type":"object","additionalProperties":false,"properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"]},
|
|
110
|
+
"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"]},
|
|
111
|
+
"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"]},
|
|
112
|
+
"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"]},
|
|
77
113
|
"res:GenerationId": {"type":"string","pattern":"^gen_[a-z0-9]{16}$"},
|
|
78
114
|
"res:FileStub": {"type":"object","properties":{"path":{"type":"string"},"bytes":{"type":"integer"}},"required":["path","bytes"]},
|
|
79
|
-
"res:GenerationBatch": {"type":"object","additionalProperties":false,"properties":{"data":{"type":"array","items":{"anyOf":[{"$ref":"res:Generation"},{"$ref":"res:GenerationFailure"}]}}},"required":["data"]},
|
|
80
|
-
"res:GenerationFailure": {"type":"object","additionalProperties":false,"properties":{"
|
|
81
|
-
"res:
|
|
82
|
-
"res:
|
|
83
|
-
"res:
|
|
84
|
-
"res:
|
|
85
|
-
"res:
|
|
86
|
-
"
|
|
87
|
-
"res:
|
|
88
|
-
"
|
|
89
|
-
"
|
|
115
|
+
"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"]},
|
|
116
|
+
"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"]},
|
|
117
|
+
"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"]},
|
|
118
|
+
"res:DefinitionSource": {"anyOf":[{"$ref":"res:UrlDefinitionSource"},{"$ref":"res:RepositoryDefinitionSource"},{"type":"object"}]},
|
|
119
|
+
"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"]},
|
|
120
|
+
"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"]},
|
|
121
|
+
"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"}}},
|
|
122
|
+
"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"}}},
|
|
123
|
+
"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"]},
|
|
124
|
+
"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"]},
|
|
125
|
+
"req:DefinitionId": {"type":"string","pattern":"^def_[a-z0-9]{16}$"},
|
|
126
|
+
"res:TargetResponse": {"allOf":[{"$ref":"res:Target"},{"$ref":"res:ResponseMetadata"}]},
|
|
127
|
+
"res:ResponseMetadata": {"type":"object","properties":{"request_id":{"$ref":"res:RequestId"}},"required":["request_id"]},
|
|
128
|
+
"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"]},
|
|
129
|
+
"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"}}}},
|
|
130
|
+
"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"]},
|
|
131
|
+
"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"]},
|
|
132
|
+
"res:TargetReleaseId": {"type":"string","pattern":"^rel_[a-z0-9]{16}$"},
|
|
133
|
+
"res:TargetReleaseResponse": {"allOf":[{"$ref":"res:TargetRelease"},{"$ref":"res:ResponseMetadata"}]},
|
|
134
|
+
"res:GenerationResponse": {"allOf":[{"$ref":"res:Generation"},{"$ref":"res:ResponseMetadata"}]},
|
|
135
|
+
"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"]},
|
|
136
|
+
"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"]},
|
|
137
|
+
"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"]},
|
|
138
|
+
"res:DefinitionDocumentId": {"type":"string","pattern":"^doc_[a-z0-9]{16}$"},
|
|
139
|
+
"res:DefinitionRevisionSource": {"anyOf":[{"$ref":"res:UrlDefinitionRevisionSource"},{"$ref":"res:RepositoryDefinitionRevisionSource"},{"type":"object"}]},
|
|
140
|
+
"res:UrlDefinitionRevisionSource": {"type":"object","additionalProperties":false,"properties":{"kind":{"type":"string"},"url":{"type":"string"}},"required":["kind","url"]},
|
|
141
|
+
"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"]},
|
|
142
|
+
"res:DefinitionRevisionResponse": {"allOf":[{"$ref":"res:DefinitionRevision"},{"$ref":"res:ResponseMetadata"}]},
|
|
143
|
+
"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"]},
|
|
144
|
+
"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"]},
|
|
145
|
+
"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"]},
|
|
146
|
+
"res:ApiKeyResponse": {"allOf":[{"$ref":"res:ApiKey"},{"$ref":"res:ResponseMetadata"}]},
|
|
90
147
|
};
|