@typeship-ax/cli 0.8.0 → 0.10.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (106) hide show
  1. package/AGENTS.md +31 -0
  2. package/README.md +26 -9
  3. package/api.json +3509 -800
  4. package/api.md +444 -494
  5. package/dist/api-identity.d.ts +40 -0
  6. package/dist/api-identity.d.ts.map +1 -0
  7. package/dist/api-identity.js +128 -0
  8. package/dist/auth-profiles.d.ts +30 -0
  9. package/dist/auth-profiles.d.ts.map +1 -0
  10. package/dist/auth-profiles.js +138 -0
  11. package/dist/cli.js +522 -355
  12. package/dist/console-login-check.d.ts +21 -0
  13. package/dist/console-login-check.d.ts.map +1 -0
  14. package/dist/console-login-check.js +107 -0
  15. package/dist/console-login-contract.d.ts +45 -0
  16. package/dist/console-login-contract.d.ts.map +1 -0
  17. package/dist/console-login-contract.js +40 -0
  18. package/dist/core/http.d.ts +17 -2
  19. package/dist/core/http.d.ts.map +1 -1
  20. package/dist/core/http.js +78 -17
  21. package/dist/credential-storage.d.ts +24 -0
  22. package/dist/credential-storage.d.ts.map +1 -0
  23. package/dist/credential-storage.js +207 -0
  24. package/dist/docs.d.ts +25 -0
  25. package/dist/docs.d.ts.map +1 -1
  26. package/dist/docs.js +144 -0
  27. package/dist/errors.d.ts +18 -10
  28. package/dist/errors.d.ts.map +1 -1
  29. package/dist/errors.js +24 -14
  30. package/dist/index.d.ts +10 -3
  31. package/dist/index.d.ts.map +1 -1
  32. package/dist/index.js +20 -4
  33. package/dist/named-credentials.d.ts +21 -0
  34. package/dist/named-credentials.d.ts.map +1 -0
  35. package/dist/named-credentials.js +86 -0
  36. package/dist/oauth-login.d.ts +39 -0
  37. package/dist/oauth-login.d.ts.map +1 -0
  38. package/dist/oauth-login.js +171 -0
  39. package/dist/oauth-request.d.ts +21 -0
  40. package/dist/oauth-request.d.ts.map +1 -0
  41. package/dist/oauth-request.js +119 -0
  42. package/dist/oauth-session.d.ts +106 -0
  43. package/dist/oauth-session.d.ts.map +1 -0
  44. package/dist/oauth-session.js +244 -0
  45. package/dist/ops.d.ts +14 -1
  46. package/dist/ops.d.ts.map +1 -1
  47. package/dist/ops.js +34 -30
  48. package/dist/polling-login.d.ts +57 -0
  49. package/dist/polling-login.d.ts.map +1 -0
  50. package/dist/polling-login.js +204 -0
  51. package/dist/resources/account.d.ts +2 -2
  52. package/dist/resources/account.d.ts.map +1 -1
  53. package/dist/resources/account.js +1 -0
  54. package/dist/resources/api-keys.d.ts +3 -3
  55. package/dist/resources/api-keys.d.ts.map +1 -1
  56. package/dist/resources/api-keys.js +2 -0
  57. package/dist/resources/definition-revisions.d.ts +5 -5
  58. package/dist/resources/definition-revisions.d.ts.map +1 -1
  59. package/dist/resources/definition-revisions.js +4 -0
  60. package/dist/resources/definitions.d.ts +15 -4
  61. package/dist/resources/definitions.d.ts.map +1 -1
  62. package/dist/resources/definitions.js +11 -2
  63. package/dist/resources/generate.d.ts +14 -3
  64. package/dist/resources/generate.d.ts.map +1 -1
  65. package/dist/resources/generate.js +10 -2
  66. package/dist/resources/generations.d.ts +3 -3
  67. package/dist/resources/generations.d.ts.map +1 -1
  68. package/dist/resources/generations.js +2 -0
  69. package/dist/resources/projects.d.ts +56 -20
  70. package/dist/resources/projects.d.ts.map +1 -1
  71. package/dist/resources/projects.js +40 -4
  72. package/dist/resources/targets.d.ts +84 -10
  73. package/dist/resources/targets.d.ts.map +1 -1
  74. package/dist/resources/targets.js +127 -2
  75. package/dist/schemas.d.ts.map +1 -1
  76. package/dist/schemas.js +55 -26
  77. package/dist/types.d.ts +602 -123
  78. package/dist/types.d.ts.map +1 -1
  79. package/dist/types.js +24 -0
  80. package/package.json +2 -1
  81. package/src/api-identity.ts +98 -0
  82. package/src/auth-profiles.ts +114 -0
  83. package/src/cli.ts +444 -332
  84. package/src/console-login-check.ts +88 -0
  85. package/src/console-login-contract.ts +65 -0
  86. package/src/core/http.ts +88 -19
  87. package/src/credential-storage.ts +183 -0
  88. package/src/docs.ts +138 -0
  89. package/src/errors.ts +26 -15
  90. package/src/index.ts +29 -4
  91. package/src/named-credentials.ts +74 -0
  92. package/src/oauth-login.ts +184 -0
  93. package/src/oauth-request.ts +90 -0
  94. package/src/oauth-session.ts +258 -0
  95. package/src/ops.ts +48 -31
  96. package/src/polling-login.ts +165 -0
  97. package/src/resources/account.ts +3 -0
  98. package/src/resources/api-keys.ts +5 -0
  99. package/src/resources/definition-revisions.ts +9 -0
  100. package/src/resources/definitions.ts +25 -0
  101. package/src/resources/generate.ts +23 -0
  102. package/src/resources/generations.ts +5 -0
  103. package/src/resources/projects.ts +95 -7
  104. package/src/resources/targets.ts +241 -0
  105. package/src/schemas.ts +55 -26
  106. package/src/types.ts +640 -123
@@ -1,7 +1,7 @@
1
1
  // typeship — targets resource.
2
2
  // Generated by typeship — https://typeship.dev — do not edit by hand.
3
3
  import { paginate } from "../core/pagination.js";
4
- import { BadRequestError, ConflictError, ForbiddenError, NotFoundError, RateLimitedError, UnauthorizedError, UnprocessableEntityError, } from "../errors.js";
4
+ import { BadGatewayError, BadRequestError, ConflictError, ForbiddenError, NotFoundError, RateLimitedError, UnauthorizedError, UnprocessableEntityError, } from "../errors.js";
5
5
  export class TargetsResource {
6
6
  _core;
7
7
  constructor(_core) {
@@ -17,6 +17,7 @@ export class TargetsResource {
17
17
  return paginate(this._core, {
18
18
  method: "GET",
19
19
  path: `/projects/${encodeURIComponent(String(projectId))}/targets`,
20
+ security: [{ "apiKey": [] }],
20
21
  query: {
21
22
  limit: params?.limit,
22
23
  cursor: params?.cursor,
@@ -45,12 +46,18 @@ export class TargetsResource {
45
46
  *
46
47
  * Several Targets may use the same generator with distinct configuration, Deliveries, and release
47
48
  * streams.
49
+ *
50
+ * A `Idempotency-Key` UUID is generated per call (stable across retries) unless you pass one.
48
51
  * `POST /projects/{project_id}/targets`
49
52
  */
50
- async create(projectId, body, options) {
53
+ async create(projectId, body, params, options) {
51
54
  return this._core.request({
52
55
  method: "POST",
53
56
  path: `/projects/${encodeURIComponent(String(projectId))}/targets`,
57
+ security: [{ "apiKey": [] }],
58
+ headers: {
59
+ "Idempotency-Key": params?.idempotencyKey === undefined ? undefined : String(params?.idempotencyKey),
60
+ },
54
61
  body,
55
62
  errors: {
56
63
  "400": BadRequestError,
@@ -61,6 +68,7 @@ export class TargetsResource {
61
68
  "422": UnprocessableEntityError,
62
69
  "429": RateLimitedError,
63
70
  },
71
+ idempotencyKey: "Idempotency-Key",
64
72
  schemaKey: "targets.create",
65
73
  options,
66
74
  });
@@ -73,6 +81,7 @@ export class TargetsResource {
73
81
  return this._core.request({
74
82
  method: "GET",
75
83
  path: `/targets/${encodeURIComponent(String(targetId))}`,
84
+ security: [{ "apiKey": [] }],
76
85
  errors: {
77
86
  "401": UnauthorizedError,
78
87
  "403": ForbiddenError,
@@ -95,6 +104,7 @@ export class TargetsResource {
95
104
  return this._core.request({
96
105
  method: "DELETE",
97
106
  path: `/targets/${encodeURIComponent(String(targetId))}`,
107
+ security: [{ "apiKey": [] }],
98
108
  errors: {
99
109
  "401": UnauthorizedError,
100
110
  "403": ForbiddenError,
@@ -115,6 +125,7 @@ export class TargetsResource {
115
125
  return this._core.request({
116
126
  method: "PATCH",
117
127
  path: `/targets/${encodeURIComponent(String(targetId))}`,
128
+ security: [{ "apiKey": [] }],
118
129
  body,
119
130
  errors: {
120
131
  "400": BadRequestError,
@@ -139,6 +150,7 @@ export class TargetsResource {
139
150
  return paginate(this._core, {
140
151
  method: "GET",
141
152
  path: `/targets/${encodeURIComponent(String(targetId))}/releases`,
153
+ security: [{ "apiKey": [] }],
142
154
  query: {
143
155
  limit: params?.limit,
144
156
  cursor: params?.cursor,
@@ -162,6 +174,88 @@ export class TargetsResource {
162
174
  limitParam: "limit",
163
175
  });
164
176
  }
177
+ /**
178
+ * Retrieve a Target's rolling Draft release
179
+ *
180
+ * Returns Current, the cumulative Draft version and readiness, its exact head, and the optimistic
181
+ * release revision.
182
+ * `GET /targets/{target_id}/draft`
183
+ */
184
+ async retrieveDraft(targetId, options) {
185
+ return this._core.request({
186
+ method: "GET",
187
+ path: `/targets/${encodeURIComponent(String(targetId))}/draft`,
188
+ security: [{ "apiKey": [] }],
189
+ errors: {
190
+ "401": UnauthorizedError,
191
+ "403": ForbiddenError,
192
+ "404": NotFoundError,
193
+ "429": RateLimitedError,
194
+ },
195
+ idempotent: true,
196
+ schemaKey: "targets.retrieveDraft",
197
+ options,
198
+ });
199
+ }
200
+ /**
201
+ * Select an exact Draft version or return to automatic versioning
202
+ *
203
+ * Validates the selection against the cumulative required bump and regenerates the same rolling
204
+ * Draft pull request.
205
+ * `PATCH /targets/{target_id}/draft`
206
+ */
207
+ async updateDraft(targetId, body, options) {
208
+ return this._core.request({
209
+ method: "PATCH",
210
+ path: `/targets/${encodeURIComponent(String(targetId))}/draft`,
211
+ security: [{ "apiKey": [] }],
212
+ body,
213
+ errors: {
214
+ "400": BadRequestError,
215
+ "401": UnauthorizedError,
216
+ "403": ForbiddenError,
217
+ "404": NotFoundError,
218
+ "409": ConflictError,
219
+ "422": UnprocessableEntityError,
220
+ "429": RateLimitedError,
221
+ },
222
+ schemaKey: "targets.updateDraft",
223
+ options,
224
+ });
225
+ }
226
+ /**
227
+ * Adopt a verified existing package as Current
228
+ *
229
+ * Verifies the repository tag, package metadata, and registry artifact; records an Imported
230
+ * Current release; then opens the first Typeship Draft at the next major version because no
231
+ * trusted generated baseline exists yet.
232
+ *
233
+ * A `Idempotency-Key` UUID is generated per call (stable across retries) unless you pass one.
234
+ * `POST /targets/{target_id}/adopt`
235
+ */
236
+ async adoptRelease(targetId, body, params, options) {
237
+ return this._core.request({
238
+ method: "POST",
239
+ path: `/targets/${encodeURIComponent(String(targetId))}/adopt`,
240
+ security: [{ "apiKey": [] }],
241
+ headers: {
242
+ "Idempotency-Key": params?.idempotencyKey === undefined ? undefined : String(params?.idempotencyKey),
243
+ },
244
+ body,
245
+ errors: {
246
+ "400": BadRequestError,
247
+ "401": UnauthorizedError,
248
+ "403": ForbiddenError,
249
+ "404": NotFoundError,
250
+ "409": ConflictError,
251
+ "422": UnprocessableEntityError,
252
+ "429": RateLimitedError,
253
+ },
254
+ idempotencyKey: "Idempotency-Key",
255
+ schemaKey: "targets.adoptRelease",
256
+ options,
257
+ });
258
+ }
165
259
  /**
166
260
  * Retrieve an immutable Target release
167
261
  * `GET /target_releases/{target_release_id}`
@@ -170,6 +264,7 @@ export class TargetsResource {
170
264
  return this._core.request({
171
265
  method: "GET",
172
266
  path: `/target_releases/${encodeURIComponent(String(targetReleaseId))}`,
267
+ security: [{ "apiKey": [] }],
173
268
  errors: {
174
269
  "401": UnauthorizedError,
175
270
  "403": ForbiddenError,
@@ -181,4 +276,34 @@ export class TargetsResource {
181
276
  options,
182
277
  });
183
278
  }
279
+ /**
280
+ * Retry publication of an exact Target release
281
+ *
282
+ * Dispatches the repository-owned republish workflow for this immutable version and accepted
283
+ * commit. It never selects the latest Draft or release.
284
+ *
285
+ * A `Idempotency-Key` UUID is generated per call (stable across retries) unless you pass one.
286
+ * `POST /target_releases/{target_release_id}/republish`
287
+ */
288
+ async republishRelease(targetReleaseId, params, options) {
289
+ return this._core.request({
290
+ method: "POST",
291
+ path: `/target_releases/${encodeURIComponent(String(targetReleaseId))}/republish`,
292
+ security: [{ "apiKey": [] }],
293
+ headers: {
294
+ "Idempotency-Key": params?.idempotencyKey === undefined ? undefined : String(params?.idempotencyKey),
295
+ },
296
+ errors: {
297
+ "401": UnauthorizedError,
298
+ "403": ForbiddenError,
299
+ "404": NotFoundError,
300
+ "409": ConflictError,
301
+ "429": RateLimitedError,
302
+ "502": BadGatewayError,
303
+ },
304
+ idempotencyKey: "Idempotency-Key",
305
+ schemaKey: "targets.republishRelease",
306
+ options,
307
+ });
308
+ }
184
309
  }
@@ -1 +1 @@
1
- {"version":3,"file":"schemas.d.ts","sourceRoot":"","sources":["../src/schemas.ts"],"names":[],"mappings":"AAOA,eAAO,MAAM,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE;IAAE,GAAG,CAAC,EAAE,OAAO,CAAC;IAAC,GAAG,CAAC,EAAE,OAAO,CAAA;CAAE,CA+BpE,CAAC;AAEF,eAAO,MAAM,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CA0GxC,CAAC"}
1
+ {"version":3,"file":"schemas.d.ts","sourceRoot":"","sources":["../src/schemas.ts"],"names":[],"mappings":"AAOA,eAAO,MAAM,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE;IAAE,GAAG,CAAC,EAAE,OAAO,CAAC;IAAC,GAAG,CAAC,EAAE,OAAO,CAAA;CAAE,CAmCpE,CAAC;AAEF,eAAO,MAAM,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAmIxC,CAAC"}
package/dist/schemas.js CHANGED
@@ -25,7 +25,11 @@ export const SCHEMAS = {
25
25
  "targets.delete": { "res": { "$ref": "res:DeletedTarget" } },
26
26
  "targets.update": { "req": { "$ref": "req:TargetUpdateRequest" }, "res": { "$ref": "res:TargetResponse" } },
27
27
  "targets.listReleases": { "res": { "$ref": "res:TargetReleaseList" } },
28
+ "targets.retrieveDraft": { "res": { "$ref": "res:TargetDraftResponse" } },
29
+ "targets.updateDraft": { "req": { "$ref": "req:TargetDraftUpdate" }, "res": { "$ref": "res:TargetDraftResponse" } },
30
+ "targets.adoptRelease": { "req": { "$ref": "req:TargetAdoption" }, "res": { "$ref": "res:TargetReleaseResponse" } },
28
31
  "targets.retrieveRelease": { "res": { "$ref": "res:TargetReleaseResponse" } },
32
+ "targets.republishRelease": { "res": { "$ref": "res:TargetReleaseResponse" } },
29
33
  "generations.retrieve": { "res": { "$ref": "res:GenerationResponse" } },
30
34
  "generations.retrieveFile": { "res": { "type": "string" } },
31
35
  "definitionRevisions.list": { "res": { "$ref": "res:DefinitionRevisionList" } },
@@ -42,11 +46,15 @@ export const DEFS = {
42
46
  "req:UrlDefinitionInput": { "type": "object", "additionalProperties": false, "properties": { "url": { "type": "string", "pattern": "^https?://" }, "headers": { "type": "object" } }, "required": ["url"] },
43
47
  "req:InlineDefinitionInput": { "type": "object", "additionalProperties": false, "properties": { "inline": { "type": "string" } }, "required": ["inline"] },
44
48
  "req:GeneratorKind": { "type": "string", "enum": ["typescript-sdk", "python-sdk", "go-sdk", "cli", "mcp"] },
45
- "req:Config": { "type": "object", "additionalProperties": false, "properties": { "globals": { "type": "array", "maxItems": 20, "items": { "type": "string" } }, "retries": { "$ref": "req:RetryTuning" }, "pagination": { "type": "object" }, "graphql": { "$ref": "req:GraphqlSettings" }, "cli": { "$ref": "req:CliBehavior" }, "mcp": { "$ref": "req:McpBehavior" }, "package": { "$ref": "req:PackageBehavior" }, "docs_url": { "type": ["string", "null"] }, "docs_index_url": { "type": ["string", "null"] } } },
49
+ "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"] } } },
46
50
  "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" } } },
47
51
  "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" } } },
48
- "req:CliBehavior": { "type": "object", "additionalProperties": false, "properties": { "command_name": { "type": ["string", "null"] }, "whoami_operation": { "type": ["string", "null"] }, "oauth_client_id": { "type": ["string", "null"] }, "oauth_scopes": { "type": "array", "maxItems": 20, "items": { "type": "string" } }, "oauth_audience": { "type": ["string", "null"] }, "update_notice": { "type": "boolean" }, "support_url": { "type": ["string", "null"] }, "auth_url": { "type": ["string", "null"] }, "mcp_url": { "type": ["string", "null"] }, "skills_repo": { "type": ["string", "null"] } } },
49
- "req:McpBehavior": { "type": "object", "additionalProperties": false, "properties": { "registry_name": { "type": ["string", "null"] }, "tool_mode": { "type": "string", "enum": ["auto", "operations", "meta"] }, "instructions": { "type": ["string", "null"], "maxLength": 2000 }, "tool_descriptions": { "type": "object" } } },
52
+ "req:AuthenticationConfig": { "type": "object", "additionalProperties": false, "properties": { "oauth_server": { "anyOf": [{ "$ref": "req:OAuthServer" }, { "type": "null" }] }, "oauth_applications": { "type": ["object", "null"] }, "oauth_application": { "type": ["string", "null"], "maxLength": 64, "pattern": "^[a-z][a-z0-9_-]{0,63}$" }, "identity_verification": { "anyOf": [{ "$ref": "req:IdentityVerification" }, { "type": "null" }] }, "approval_url": { "type": ["string", "null"] }, "environments": { "type": ["object", "null"] } } },
53
+ "req:OAuthServer": { "type": "object", "additionalProperties": false, "properties": { "issuer": { "type": ["string", "null"] }, "discovery_url": { "type": ["string", "null"] }, "authorization_url": { "type": ["string", "null"] }, "token_url": { "type": ["string", "null"] }, "device_authorization_url": { "type": ["string", "null"] }, "scopes": { "type": ["array", "null"], "maxItems": 20, "items": { "type": "string", "minLength": 1, "maxLength": 500, "pattern": "^\\S+$" } }, "audience": { "type": ["string", "null"] }, "resource": { "type": ["string", "null"] } } },
54
+ "req:IdentityVerification": { "type": "object", "additionalProperties": false, "properties": { "operation": { "type": "string", "maxLength": 2000, "pattern": "^[\\w$]+\\.[\\w$]+$" }, "subject_field": { "type": "string", "maxLength": 512 }, "account_field": { "type": "string", "maxLength": 512 }, "organization_field": { "type": "string", "maxLength": 512 } } },
55
+ "req:CliBehavior": { "type": "object", "additionalProperties": false, "properties": { "command_name": { "type": ["string", "null"] }, "update_notice": { "type": "boolean" }, "support_url": { "type": ["string", "null"] }, "mcp_url": { "type": ["string", "null"] }, "skills_repo": { "type": ["string", "null"] } } },
56
+ "req:McpBehavior": { "type": "object", "additionalProperties": false, "properties": { "registry_name": { "type": ["string", "null"] }, "access": { "type": "object", "additionalProperties": false, "properties": { "issuer": { "type": "string" }, "resource": { "type": "string" }, "jwks_url": { "type": "string" }, "scopes": { "type": "array", "maxItems": 20, "items": { "type": "string" } } }, "required": ["issuer", "resource"] }, "tool_mode": { "type": "string", "enum": ["auto", "operations", "meta"] }, "instructions": { "type": ["string", "null"], "maxLength": 2000 }, "tool_descriptions": { "type": "object" }, "reference_resolvers": { "type": "object" } } },
57
+ "req:ReadmeBehavior": { "type": "object", "additionalProperties": false, "properties": { "quickstart_operation": { "type": ["string", "null"], "maxLength": 500 } } },
50
58
  "req:PackageBehavior": { "type": "object", "additionalProperties": false, "properties": { "homepage": { "type": ["string", "null"] }, "license": { "type": ["string", "null"], "maxLength": 200 }, "license_text": { "type": ["string", "null"], "maxLength": 100000 }, "copyright": { "type": ["string", "null"], "maxLength": 200 }, "go_package_name": { "type": ["string", "null"] } } },
51
59
  "res:GenerationResult": { "type": "object", "properties": { "files": { "type": "array", "items": { "$ref": "res:GeneratedFile" } }, "warnings": { "type": "array", "items": { "type": "string" } }, "meta": { "$ref": "res:GenerationMeta" }, "limits": { "$ref": "res:GenerationLimits" }, "claim": { "anyOf": [{ "type": "null" }, { "type": "object", "properties": { "url": { "type": "string" }, "expires_at": { "type": "string" } }, "required": ["url", "expires_at"] }] }, "request_id": { "$ref": "res:RequestId" } }, "required": ["files", "warnings", "meta", "request_id"] },
52
60
  "res:GeneratedFile": { "type": "object", "properties": { "path": { "type": "string" }, "content": { "type": "string" } }, "required": ["path", "content"] },
@@ -69,29 +77,28 @@ export const DEFS = {
69
77
  "req:DefinitionPatch": { "type": "object", "additionalProperties": false, "properties": { "op": { "type": "string", "enum": ["set", "append", "remove", "rename"] }, "path": { "type": "string" }, "value": {}, "to": { "type": ["string", "null"] }, "reason": { "type": ["string", "null"] } }, "required": ["op", "path"] },
70
78
  "req:DiagnosticPolicy": { "type": "object", "additionalProperties": false, "properties": { "fail_on": { "type": "string", "enum": ["never", "error", "warning"] }, "only_new": { "type": "boolean" }, "suppressions": { "type": "array", "maxItems": 100, "items": { "$ref": "req:DiagnosticSuppression" } } }, "required": ["fail_on", "only_new", "suppressions"] },
71
79
  "req:DiagnosticSuppression": { "type": "object", "additionalProperties": false, "properties": { "rule_id": { "type": "string", "maxLength": 160 }, "path": { "type": "string", "maxLength": 4096 }, "reason": { "type": "string", "minLength": 1, "maxLength": 500 } }, "required": ["rule_id", "reason"] },
72
- "req:InitialTargetFields": { "type": "object", "additionalProperties": false, "properties": { "name": { "type": "string", "minLength": 1, "maxLength": 80 }, "generator": { "$ref": "req:GeneratorKind" }, "state": { "type": "string", "enum": ["active", "disabled"] }, "edition": { "type": "string" }, "release_channel": { "type": "string", "enum": ["stable", "prerelease"] }, "proposed_version": { "type": ["string", "null"] }, "config": { "anyOf": [{ "$ref": "req:ProjectConfig" }, { "type": "null" }] }, "deliveries": { "type": "array", "items": { "$ref": "req:DeliveryInput" } } }, "required": ["name", "generator"] },
73
- "req:ProjectConfig": { "type": "object", "additionalProperties": false, "properties": { "globals": { "type": "array", "maxItems": 20, "items": { "type": "string" } }, "retries": { "$ref": "req:RetryTuning" }, "pagination": { "type": "object" }, "cli": { "$ref": "req:CliBehavior" }, "mcp": { "$ref": "req:McpBehavior" }, "package": { "$ref": "req:PackageBehavior" }, "docs_url": { "type": ["string", "null"] }, "docs_index_url": { "type": ["string", "null"] } } },
80
+ "req:InitialTargetFields": { "type": "object", "additionalProperties": false, "properties": { "name": { "type": "string", "minLength": 1, "maxLength": 80 }, "generator": { "$ref": "req:GeneratorKind" }, "state": { "type": "string", "enum": ["active", "disabled"] }, "edition": { "type": "string" }, "release_channel": { "type": "string", "enum": ["stable", "prerelease"] }, "proposed_version": { "type": ["string", "null"] }, "config": { "anyOf": [{ "$ref": "req:TargetConfig" }, { "type": "null" }] }, "deliveries": { "type": "array", "maxItems": 2, "items": { "$ref": "req:DeliveryInput" } } }, "required": ["name", "generator"] },
81
+ "req:TargetConfig": { "type": "object", "additionalProperties": false, "properties": { "globals": { "type": "array", "maxItems": 20, "items": { "type": "string" } }, "retries": { "$ref": "req:RetryTuning" }, "pagination": { "type": "object" }, "auth": { "$ref": "req:TargetAuthenticationConfig" }, "cli": { "$ref": "req:CliBehavior" }, "mcp": { "$ref": "req:McpBehavior" }, "readme": { "$ref": "req:ReadmeBehavior" }, "package": { "$ref": "req:PackageBehavior" }, "docs_url": { "type": ["string", "null"] }, "docs_index_url": { "type": ["string", "null"] } } },
82
+ "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"] } } },
74
83
  "req:DeliveryInput": { "anyOf": [{ "$ref": "req:RepositoryDeliveryInput" }, { "$ref": "req:HostedMcpDeliveryInput" }] },
75
- "req:RepositoryDeliveryInput": { "type": "object", "additionalProperties": false, "properties": { "kind": { "type": "string", "const": "repository" }, "repository": { "$ref": "req:RepositoryReference" }, "directory": { "type": ["string", "null"] }, "package_name": { "type": ["string", "null"] }, "module_path": { "type": ["string", "null"] } }, "required": ["kind", "repository"] },
84
+ "req:RepositoryDeliveryInput": { "type": "object", "additionalProperties": false, "properties": { "kind": { "type": "string", "const": "repository" }, "repository": { "$ref": "req:RepositoryReference" }, "directory": { "type": ["string", "null"] }, "package_name": { "type": ["string", "null"] }, "module_path": { "type": ["string", "null"] }, "publish_on_merge": { "type": "boolean" } }, "required": ["kind", "repository"] },
76
85
  "req:HostedMcpDeliveryInput": { "type": "object", "additionalProperties": false, "properties": { "kind": { "type": "string", "const": "hosted_mcp" } }, "required": ["kind"] },
77
- "res:Project": { "type": "object", "additionalProperties": false, "properties": { "id": { "$ref": "res:ProjectId" }, "object": { "type": "string" }, "name": { "type": "string", "maxLength": 80 }, "definition_id": { "$ref": "res:DefinitionId" }, "targets": { "type": "array", "items": { "$ref": "res:Target" } }, "deliveries": { "type": "array", "items": { "$ref": "res:Delivery" } }, "auto_generate": { "type": "boolean" }, "relay_enabled": { "type": "boolean" }, "config": { "anyOf": [{ "$ref": "res:ProjectConfig" }, { "type": "null" }] }, "created_at": { "type": "string" }, "updated_at": { "type": "string" }, "request_id": { "$ref": "res:RequestId" } }, "required": ["id", "object", "name", "definition_id", "targets", "deliveries", "auto_generate", "relay_enabled", "config", "created_at", "updated_at", "request_id"] },
78
- "res:Target": { "type": "object", "additionalProperties": false, "properties": { "id": { "$ref": "res:TargetId" }, "object": { "type": "string" }, "project_id": { "$ref": "res:ProjectId" }, "definition_id": { "$ref": "res:DefinitionId" }, "name": { "type": "string" }, "generator": { "$ref": "res:GeneratorKind" }, "state": { "type": "string" }, "edition": { "type": "string" }, "release_channel": { "type": "string" }, "version_policy": { "type": "object", "additionalProperties": false, "properties": { "mode": { "type": "string" }, "pre1_breaking": { "type": "string" } }, "required": ["mode", "pre1_breaking"] }, "current_version": { "type": "string" }, "proposed_version": { "type": ["string", "null"] }, "config": { "anyOf": [{ "$ref": "res:ProjectConfig" }, { "type": "null" }] }, "deliveries": { "type": "array", "items": { "$ref": "res:Delivery" } }, "created_at": { "type": "string" }, "updated_at": { "type": "string" }, "request_id": { "$ref": "res:RequestId" } }, "required": ["id", "object", "project_id", "definition_id", "name", "generator", "state", "edition", "release_channel", "version_policy", "current_version", "proposed_version", "config", "deliveries", "created_at", "updated_at"] },
79
- "res:TargetId": { "type": "string", "pattern": "^tgt_[a-z0-9]{16}$" },
80
- "res:ProjectConfig": { "type": "object", "additionalProperties": false, "properties": { "globals": { "type": "array", "maxItems": 20, "items": { "type": "string" } }, "retries": { "$ref": "res:RetryTuning" }, "pagination": { "type": "object" }, "cli": { "$ref": "res:CliBehavior" }, "mcp": { "$ref": "res:McpBehavior" }, "package": { "$ref": "res:PackageBehavior" }, "docs_url": { "type": ["string", "null"] }, "docs_index_url": { "type": ["string", "null"] } } },
86
+ "req:ProjectConfig": { "type": "object", "additionalProperties": false, "properties": { "globals": { "type": "array", "maxItems": 20, "items": { "type": "string" } }, "retries": { "$ref": "req:RetryTuning" }, "pagination": { "type": "object" }, "auth": { "$ref": "req:AuthenticationConfig" }, "cli": { "$ref": "req:CliBehavior" }, "mcp": { "$ref": "req:McpBehavior" }, "readme": { "$ref": "req:ReadmeBehavior" }, "package": { "$ref": "req:PackageBehavior" }, "docs_url": { "type": ["string", "null"] }, "docs_index_url": { "type": ["string", "null"] } } },
87
+ "res:Project": { "type": "object", "additionalProperties": false, "properties": { "id": { "$ref": "res:ProjectId" }, "object": { "type": "string" }, "name": { "type": "string", "maxLength": 80 }, "definition_id": { "$ref": "res:DefinitionId" }, "auto_generate": { "type": "boolean" }, "relay_enabled": { "type": "boolean" }, "config": { "anyOf": [{ "$ref": "res:ProjectConfig" }, { "type": "null" }] }, "created_at": { "type": "string" }, "updated_at": { "type": "string" }, "request_id": { "$ref": "res:RequestId" } }, "required": ["id", "object", "name", "definition_id", "auto_generate", "relay_enabled", "config", "created_at", "updated_at", "request_id"] },
88
+ "res:ProjectConfig": { "type": "object", "additionalProperties": false, "properties": { "globals": { "type": "array", "maxItems": 20, "items": { "type": "string" } }, "retries": { "$ref": "res:RetryTuning" }, "pagination": { "type": "object" }, "auth": { "$ref": "res:AuthenticationConfig" }, "cli": { "$ref": "res:CliBehavior" }, "mcp": { "$ref": "res:McpBehavior" }, "readme": { "$ref": "res:ReadmeBehavior" }, "package": { "$ref": "res:PackageBehavior" }, "docs_url": { "type": ["string", "null"] }, "docs_index_url": { "type": ["string", "null"] } } },
81
89
  "res:RetryTuning": { "type": "object", "additionalProperties": false, "properties": { "max_retries": { "type": "integer", "minimum": 0, "maximum": 10 }, "statuses": { "type": "array", "maxItems": 20, "items": { "type": "integer" } }, "initial_delay_ms": { "type": "integer", "minimum": 1 }, "max_delay_ms": { "type": "integer", "minimum": 1 }, "retry_non_idempotent": { "type": "boolean" }, "disabled": { "type": "boolean" }, "operations": { "type": "object" } } },
82
- "res:CliBehavior": { "type": "object", "additionalProperties": false, "properties": { "command_name": { "type": ["string", "null"] }, "whoami_operation": { "type": ["string", "null"] }, "oauth_client_id": { "type": ["string", "null"] }, "oauth_scopes": { "type": "array", "maxItems": 20, "items": { "type": "string" } }, "oauth_audience": { "type": ["string", "null"] }, "update_notice": { "type": "boolean" }, "support_url": { "type": ["string", "null"] }, "auth_url": { "type": ["string", "null"] }, "mcp_url": { "type": ["string", "null"] }, "skills_repo": { "type": ["string", "null"] } } },
83
- "res:McpBehavior": { "type": "object", "additionalProperties": false, "properties": { "registry_name": { "type": ["string", "null"] }, "tool_mode": { "type": "string" }, "instructions": { "type": ["string", "null"], "maxLength": 2000 }, "tool_descriptions": { "type": "object" } } },
90
+ "res:AuthenticationConfig": { "type": "object", "additionalProperties": false, "properties": { "oauth_server": { "anyOf": [{ "$ref": "res:OAuthServer" }, { "type": "null" }] }, "oauth_applications": { "type": ["object", "null"] }, "oauth_application": { "type": ["string", "null"], "maxLength": 64, "pattern": "^[a-z][a-z0-9_-]{0,63}$" }, "identity_verification": { "anyOf": [{ "$ref": "res:IdentityVerification" }, { "type": "null" }] }, "approval_url": { "type": ["string", "null"] }, "environments": { "type": ["object", "null"] } } },
91
+ "res:OAuthServer": { "type": "object", "additionalProperties": false, "properties": { "issuer": { "type": ["string", "null"] }, "discovery_url": { "type": ["string", "null"] }, "authorization_url": { "type": ["string", "null"] }, "token_url": { "type": ["string", "null"] }, "device_authorization_url": { "type": ["string", "null"] }, "scopes": { "type": ["array", "null"], "maxItems": 20, "items": { "type": "string", "minLength": 1, "maxLength": 500, "pattern": "^\\S+$" } }, "audience": { "type": ["string", "null"] }, "resource": { "type": ["string", "null"] } } },
92
+ "res:IdentityVerification": { "type": "object", "additionalProperties": false, "properties": { "operation": { "type": "string", "maxLength": 2000, "pattern": "^[\\w$]+\\.[\\w$]+$" }, "subject_field": { "type": "string", "maxLength": 512 }, "account_field": { "type": "string", "maxLength": 512 }, "organization_field": { "type": "string", "maxLength": 512 } } },
93
+ "res:CliBehavior": { "type": "object", "additionalProperties": false, "properties": { "command_name": { "type": ["string", "null"] }, "update_notice": { "type": "boolean" }, "support_url": { "type": ["string", "null"] }, "mcp_url": { "type": ["string", "null"] }, "skills_repo": { "type": ["string", "null"] } } },
94
+ "res:McpBehavior": { "type": "object", "additionalProperties": false, "properties": { "registry_name": { "type": ["string", "null"] }, "access": { "type": "object", "additionalProperties": false, "properties": { "issuer": { "type": "string" }, "resource": { "type": "string" }, "jwks_url": { "type": "string" }, "scopes": { "type": "array", "maxItems": 20, "items": { "type": "string" } } }, "required": ["issuer", "resource"] }, "tool_mode": { "type": "string" }, "instructions": { "type": ["string", "null"], "maxLength": 2000 }, "tool_descriptions": { "type": "object" }, "reference_resolvers": { "type": "object" } } },
95
+ "res:ReadmeBehavior": { "type": "object", "additionalProperties": false, "properties": { "quickstart_operation": { "type": ["string", "null"], "maxLength": 500 } } },
84
96
  "res:PackageBehavior": { "type": "object", "additionalProperties": false, "properties": { "homepage": { "type": ["string", "null"] }, "license": { "type": ["string", "null"], "maxLength": 200 }, "license_text": { "type": ["string", "null"], "maxLength": 100000 }, "copyright": { "type": ["string", "null"], "maxLength": 200 }, "go_package_name": { "type": ["string", "null"] } } },
85
- "res:Delivery": { "anyOf": [{ "$ref": "res:RepositoryDelivery" }, { "$ref": "res:HostedMcpDelivery" }, { "type": "object" }] },
86
- "res:RepositoryDelivery": { "type": "object", "additionalProperties": false, "properties": { "id": { "$ref": "res:DeliveryId" }, "object": { "type": "string" }, "target_id": { "$ref": "res:TargetId" }, "kind": { "type": "string" }, "state": { "type": "string" }, "repository": { "$ref": "res:RepositoryReference" }, "directory": { "type": ["string", "null"] }, "package_name": { "type": ["string", "null"] }, "module_path": { "type": ["string", "null"] }, "created_at": { "type": "string" }, "updated_at": { "type": "string" } }, "required": ["id", "object", "target_id", "kind", "state", "repository", "directory", "package_name", "module_path", "created_at", "updated_at"] },
87
- "res:DeliveryId": { "type": "string", "pattern": "^dlv_[a-z0-9]{16}$" },
88
- "res:RepositoryReference": { "type": "object", "additionalProperties": false, "properties": { "provider": { "type": "string" }, "identifier": { "type": "string", "maxLength": 512 } }, "required": ["provider", "identifier"] },
89
- "res:HostedMcpDelivery": { "type": "object", "additionalProperties": false, "properties": { "id": { "$ref": "res:DeliveryId" }, "object": { "type": "string" }, "target_id": { "$ref": "res:TargetId" }, "kind": { "type": "string" }, "state": { "type": "string" }, "url": { "type": ["string", "null"] }, "created_at": { "type": "string" }, "updated_at": { "type": "string" } }, "required": ["id", "object", "target_id", "kind", "state", "url", "created_at", "updated_at"] },
90
97
  "res:DeletedProject": { "type": "object", "additionalProperties": false, "properties": { "id": { "$ref": "res:ProjectId" }, "object": { "type": "string" }, "deleted": { "type": "boolean" }, "request_id": { "$ref": "res:RequestId" } }, "required": ["id", "object", "deleted", "request_id"] },
91
98
  "req:UpdateProjectRequest": { "type": "object", "additionalProperties": false, "properties": { "name": { "type": "string", "minLength": 1, "maxLength": 80 }, "auto_generate": { "type": "boolean" }, "relay_enabled": { "type": "boolean" }, "config": { "anyOf": [{ "$ref": "req:ProjectConfig" }, { "type": "null" }] } } },
92
- "res:DiagnosticReport": { "type": "object", "additionalProperties": false, "properties": { "object": { "type": "string" }, "format": { "type": "string" }, "project_id": { "$ref": "res:ProjectId" }, "definition_revision_id": { "$ref": "res:DefinitionRevisionId" }, "source_sha256": { "type": "string", "pattern": "^[a-f0-9]{64}$" }, "analyzed_sha256": { "type": "string", "pattern": "^[a-f0-9]{64}$" }, "patch_diagnostics": { "type": "array", "items": { "type": "string" } }, "summary": { "$ref": "res:DiagnosticSummary" }, "diagnostics": { "type": "array", "items": { "$ref": "res:Diagnostic" } }, "policy": { "$ref": "res:DiagnosticPolicy" }, "evaluation": { "$ref": "res:DiagnosticEvaluation" }, "delta": { "$ref": "res:DiagnosticDelta" }, "request_id": { "$ref": "res:RequestId" } }, "required": ["object", "format", "project_id", "definition_revision_id", "source_sha256", "analyzed_sha256", "patch_diagnostics", "summary", "diagnostics", "policy", "evaluation", "delta", "request_id"] },
99
+ "res:DiagnosticReport": { "type": "object", "additionalProperties": false, "properties": { "object": { "type": "string" }, "format": { "type": "string" }, "project_id": { "$ref": "res:ProjectId" }, "definition_revision_id": { "$ref": "res:DefinitionRevisionId" }, "source_sha256": { "type": "string", "pattern": "^[a-f0-9]{64}$" }, "analyzed_sha256": { "type": "string", "pattern": "^[a-f0-9]{64}$" }, "patch_diagnostics": { "type": "array", "items": { "type": "string" } }, "summary": { "$ref": "res:DiagnosticSummary" }, "diagnostics": { "type": "array", "items": { "$ref": "res:Diagnostic" } }, "policy": { "$ref": "res:DiagnosticPolicy" }, "evaluation": { "$ref": "res:DiagnosticEvaluation" }, "quality_signals": { "$ref": "res:DiagnosticQualitySignals" }, "delta": { "$ref": "res:DiagnosticDelta" }, "request_id": { "$ref": "res:RequestId" } }, "required": ["object", "format", "project_id", "definition_revision_id", "source_sha256", "analyzed_sha256", "patch_diagnostics", "summary", "diagnostics", "policy", "evaluation", "quality_signals", "delta", "request_id"] },
93
100
  "res:DefinitionRevisionId": { "type": "string", "pattern": "^drev_[a-z0-9]{16}$" },
94
- "res:Diagnostic": { "type": "object", "additionalProperties": false, "properties": { "id": { "type": "string" }, "severity": { "type": "string" }, "category": { "type": "string" }, "title": { "type": "string" }, "description": { "type": "string" }, "impact": { "type": "string" }, "surfaces": { "type": "array", "items": { "type": "string" } }, "locations": { "type": "array", "minItems": 1, "items": { "$ref": "res:DiagnosticLocation" } }, "fix": { "$ref": "res:DiagnosticFix" }, "authoring_brief": { "type": "string" } }, "required": ["id", "severity", "category", "title", "description", "impact", "surfaces", "locations", "authoring_brief"] },
101
+ "res:Diagnostic": { "type": "object", "additionalProperties": false, "properties": { "id": { "type": "string" }, "severity": { "type": "string" }, "category": { "type": "string" }, "title": { "type": "string" }, "description": { "type": "string" }, "impact": { "type": "string" }, "surfaces": { "type": "array", "items": { "type": "string" } }, "evidence_basis": { "type": "string" }, "owner_decision_required": { "type": "boolean" }, "surface_impact": { "type": "string" }, "locations": { "type": "array", "minItems": 1, "items": { "$ref": "res:DiagnosticLocation" } }, "fix": { "$ref": "res:DiagnosticFix" }, "authoring_brief": { "type": "string" } }, "required": ["id", "severity", "category", "title", "description", "impact", "surfaces", "evidence_basis", "owner_decision_required", "locations", "authoring_brief"] },
95
102
  "res:DiagnosticLocation": { "type": "object", "additionalProperties": false, "properties": { "document": { "type": "string" }, "path": { "type": "string" }, "operation": { "type": "string" }, "evidence": { "type": "string" } }, "required": ["path"] },
96
103
  "res:DiagnosticFix": { "type": "object", "additionalProperties": false, "properties": { "title": { "type": "string" }, "kind": { "type": "string" }, "patches": { "type": "array", "items": { "$ref": "res:DefinitionPatch" } }, "instructions": { "type": "string" } }, "required": ["title", "kind"] },
97
104
  "res:DefinitionPatch": { "type": "object", "additionalProperties": false, "properties": { "op": { "type": "string" }, "path": { "type": "string" }, "value": {}, "to": { "type": ["string", "null"] }, "reason": { "type": ["string", "null"] } }, "required": ["op", "path"] },
@@ -99,18 +106,24 @@ export const DEFS = {
99
106
  "res:DiagnosticSuppression": { "type": "object", "additionalProperties": false, "properties": { "rule_id": { "type": "string", "maxLength": 160 }, "path": { "type": "string", "maxLength": 4096 }, "reason": { "type": "string", "minLength": 1, "maxLength": 500 } }, "required": ["rule_id", "reason"] },
100
107
  "res:DiagnosticEvaluation": { "type": "object", "additionalProperties": false, "properties": { "state": { "type": "string" }, "blocking": { "type": "array", "items": { "$ref": "res:DiagnosticReference" } }, "considered_occurrences": { "type": "integer", "minimum": 0 }, "suppressed_occurrences": { "type": "integer", "minimum": 0 } }, "required": ["state", "blocking", "considered_occurrences", "suppressed_occurrences"] },
101
108
  "res:DiagnosticReference": { "type": "object", "additionalProperties": false, "properties": { "rule_id": { "type": "string" }, "severity": { "type": "string" }, "title": { "type": "string" }, "locations": { "type": "array", "minItems": 1, "items": { "$ref": "res:DiagnosticLocation" } } }, "required": ["rule_id", "severity", "title", "locations"] },
109
+ "res:DiagnosticQualitySignals": { "type": "object", "additionalProperties": false, "properties": { "suppressed_by_rule": { "type": "array", "items": { "$ref": "res:DiagnosticSuppressionSignal" } }, "stale_suppressions": { "type": "array", "items": { "$ref": "res:DiagnosticSuppression" } } }, "required": ["suppressed_by_rule", "stale_suppressions"] },
110
+ "res:DiagnosticSuppressionSignal": { "type": "object", "additionalProperties": false, "properties": { "rule_id": { "type": "string" }, "active_occurrences": { "type": "integer", "minimum": 0 }, "suppressed_occurrences": { "type": "integer", "minimum": 1 } }, "required": ["rule_id", "active_occurrences", "suppressed_occurrences"] },
102
111
  "res:DiagnosticDelta": { "type": "object", "additionalProperties": false, "properties": { "added": { "type": "array", "items": { "$ref": "res:DiagnosticReference" } }, "resolved": { "type": "array", "items": { "$ref": "res:DiagnosticReference" } }, "baseline_definition_revision_id": { "anyOf": [{ "$ref": "res:DefinitionRevisionId" }, { "type": "null" }] } }, "required": ["added", "resolved", "baseline_definition_revision_id"] },
103
112
  "req:DiagnosticRemediationRequest": { "type": "object", "additionalProperties": false, "properties": { "diagnostic_ids": { "type": "array", "minItems": 1, "maxItems": 50, "items": { "type": "string" } } }, "required": ["diagnostic_ids"] },
104
113
  "res:DiagnosticRemediation": { "type": "object", "additionalProperties": false, "properties": { "object": { "type": "string" }, "kind": { "type": "string" }, "patches_applied": { "type": "integer", "minimum": 0 }, "review_url": { "type": ["string", "null"] }, "request_id": { "$ref": "res:RequestId" } }, "required": ["object", "kind", "patches_applied", "request_id"] },
105
114
  "res:RepositoryIntegrationHealth": { "type": "object", "additionalProperties": false, "properties": { "object": { "type": "string" }, "project_id": { "$ref": "res:ProjectId" }, "status": { "type": "string" }, "repositories": { "type": "array", "items": { "$ref": "res:RepositoryHealth" } }, "required_checks": { "type": "object", "additionalProperties": false, "properties": { "source": { "type": "array", "items": { "type": "string" } }, "destination": { "type": "array", "items": { "type": "string" } } }, "required": ["source", "destination"] }, "last_event": { "anyOf": [{ "$ref": "res:RepositoryEventHealth" }, { "type": "null" }] }, "request_id": { "$ref": "res:RequestId" } }, "required": ["object", "project_id", "status", "repositories", "required_checks", "last_event", "request_id"] },
106
115
  "res:RepositoryHealth": { "type": "object", "additionalProperties": false, "properties": { "repository": { "$ref": "res:RepositoryReference" }, "roles": { "type": "array", "items": { "type": "string" } }, "status": { "type": "string" }, "default_branch": { "type": "string" }, "capabilities": { "type": "array", "items": { "type": "string" } }, "breaking_acknowledgement": { "type": ["boolean", "null"] }, "definition": { "type": "string" }, "issues": { "type": "array", "items": { "$ref": "res:RepositoryHealthIssue" } } }, "required": ["repository", "roles", "status", "issues"] },
116
+ "res:RepositoryReference": { "type": "object", "additionalProperties": false, "properties": { "provider": { "type": "string" }, "identifier": { "type": "string", "maxLength": 512 } }, "required": ["provider", "identifier"] },
107
117
  "res:RepositoryHealthIssue": { "type": "object", "additionalProperties": false, "properties": { "code": { "type": "string" }, "message": { "type": "string" } }, "required": ["code", "message"] },
108
118
  "res:RepositoryEventHealth": { "type": "object", "additionalProperties": false, "properties": { "provider": { "type": "string" }, "id": { "type": "string" }, "event": { "type": "string" }, "status": { "type": "string" }, "error": { "type": ["string", "null"] }, "created_at": { "type": "string" } }, "required": ["provider", "id", "event", "status", "error", "created_at"] },
109
- "res:GenerationList": { "type": "object", "additionalProperties": false, "properties": { "object": { "$ref": "res:ListObject" }, "data": { "type": "array", "items": { "$ref": "res:Generation" } }, "has_more": { "type": "boolean" }, "next_cursor": { "type": ["string", "null"] }, "request_id": { "$ref": "res:RequestId" } }, "required": ["object", "data", "has_more", "next_cursor", "request_id"] },
110
- "res:Generation": { "type": "object", "additionalProperties": false, "properties": { "id": { "$ref": "res:GenerationId" }, "object": { "type": "string" }, "files_omitted": { "type": "boolean" }, "files_index": { "type": "array", "items": { "$ref": "res:FileStub" } }, "project_id": { "$ref": "res:ProjectId" }, "definition_revision_id": { "anyOf": [{ "$ref": "res:DefinitionRevisionId" }, { "type": "null" }] }, "status": { "type": "string" }, "trigger": { "type": "string" }, "target_id": { "anyOf": [{ "$ref": "res:TargetId" }, { "type": "null" }] }, "generator": { "$ref": "res:GeneratorKind" }, "provenance": { "type": "object", "additionalProperties": false, "properties": { "generator_edition": { "type": "string" }, "engine_build": { "type": "string" }, "resolved_config": { "type": ["object", "null"] }, "config_hash": { "type": ["string", "null"], "pattern": "^[a-f0-9]{64}$" }, "surface_plan": { "type": ["object", "null"] }, "surface_plan_hash": { "type": ["string", "null"], "pattern": "^[a-f0-9]{64}$" }, "entitlement_cap": { "type": ["integer", "null"], "minimum": 1 }, "package_version": { "type": ["string", "null"] } }, "required": ["generator_edition", "engine_build", "resolved_config", "config_hash", "surface_plan", "surface_plan_hash", "entitlement_cap", "package_version"] }, "meta": { "anyOf": [{ "$ref": "res:GenerationMeta" }, { "type": "null" }] }, "warnings": { "type": "array", "items": { "type": "string" } }, "files": { "type": "array", "items": { "$ref": "res:GeneratedFile" } }, "error": { "type": ["string", "null"] }, "created_at": { "type": "string" }, "request_id": { "$ref": "res:RequestId" } }, "required": ["id", "object", "project_id", "definition_revision_id", "status", "trigger", "target_id", "generator", "provenance", "meta", "warnings", "error", "created_at"] },
119
+ "res:GenerationList": { "type": "object", "additionalProperties": false, "properties": { "object": { "$ref": "res:ListObject" }, "data": { "type": "array", "items": { "$ref": "res:GenerationSummary" } }, "has_more": { "type": "boolean" }, "next_cursor": { "type": ["string", "null"] }, "request_id": { "$ref": "res:RequestId" } }, "required": ["object", "data", "has_more", "next_cursor", "request_id"] },
120
+ "res:GenerationSummary": { "type": "object", "additionalProperties": false, "properties": { "id": { "$ref": "res:GenerationId" }, "object": { "type": "string" }, "project_id": { "$ref": "res:ProjectId" }, "definition_revision_id": { "anyOf": [{ "$ref": "res:DefinitionRevisionId" }, { "type": "null" }] }, "status": { "$ref": "res:GenerationStatus" }, "trigger": { "$ref": "res:GenerationTrigger" }, "target_id": { "anyOf": [{ "$ref": "res:TargetId" }, { "type": "null" }] }, "generator": { "$ref": "res:GeneratorKind" }, "provenance": { "$ref": "res:GenerationProvenance" }, "meta": { "anyOf": [{ "$ref": "res:GenerationMeta" }, { "type": "null" }] }, "warnings": { "type": "array", "items": { "type": "string" } }, "error": { "type": ["string", "null"] }, "created_at": { "type": "string" } }, "required": ["id", "object", "project_id", "definition_revision_id", "status", "trigger", "target_id", "generator", "provenance", "meta", "warnings", "error", "created_at"] },
111
121
  "res:GenerationId": { "type": "string", "pattern": "^gen_[a-z0-9]{16}$" },
112
- "res:FileStub": { "type": "object", "properties": { "path": { "type": "string" }, "bytes": { "type": "integer" } }, "required": ["path", "bytes"] },
113
- "res:GenerationBatch": { "type": "object", "additionalProperties": false, "properties": { "data": { "type": "array", "items": { "anyOf": [{ "$ref": "res:Generation" }, { "$ref": "res:GenerationFailure" }] } }, "request_id": { "$ref": "res:RequestId" } }, "required": ["data", "request_id"] },
122
+ "res:GenerationStatus": { "type": "string" },
123
+ "res:GenerationTrigger": { "type": "string" },
124
+ "res:TargetId": { "type": "string", "pattern": "^tgt_[a-z0-9]{16}$" },
125
+ "res:GenerationProvenance": { "type": "object", "additionalProperties": false, "properties": { "generator_edition": { "type": "string" }, "engine_build": { "type": "string" }, "resolved_config": { "type": ["object", "null"] }, "config_hash": { "type": ["string", "null"], "pattern": "^[a-f0-9]{64}$" }, "surface_plan": { "type": ["object", "null"] }, "surface_plan_hash": { "type": ["string", "null"], "pattern": "^[a-f0-9]{64}$" }, "entitlement_cap": { "type": ["integer", "null"], "minimum": 1 }, "package_version": { "type": ["string", "null"] } }, "required": ["generator_edition", "engine_build", "resolved_config", "config_hash", "surface_plan", "surface_plan_hash", "entitlement_cap", "package_version"] },
126
+ "res:GenerationBatch": { "type": "object", "additionalProperties": false, "properties": { "data": { "type": "array", "items": { "anyOf": [{ "$ref": "res:GenerationSummary" }, { "$ref": "res:GenerationFailure" }] } }, "request_id": { "$ref": "res:RequestId" } }, "required": ["data", "request_id"] },
114
127
  "res:GenerationFailure": { "type": "object", "additionalProperties": false, "properties": { "target_id": { "$ref": "res:TargetId" }, "generator": { "$ref": "res:GeneratorKind" }, "status": { "type": "string" }, "error": { "type": "string" } }, "required": ["target_id", "generator", "status", "error"] },
115
128
  "res:Definition": { "type": "object", "additionalProperties": false, "properties": { "id": { "$ref": "res:DefinitionId" }, "object": { "type": "string" }, "project_id": { "$ref": "res:ProjectId" }, "source": { "$ref": "res:DefinitionSource" }, "format": { "type": ["string", "null"] }, "patches": { "type": "array", "items": { "$ref": "res:DefinitionPatch" } }, "graphql": { "anyOf": [{ "$ref": "res:GraphqlSettings" }, { "type": "null" }] }, "diagnostic_policy": { "$ref": "res:DiagnosticPolicy" }, "latest_revision_id": { "anyOf": [{ "$ref": "res:DefinitionRevisionId" }, { "type": "null" }] }, "created_at": { "type": "string" }, "updated_at": { "type": "string" }, "request_id": { "$ref": "res:RequestId" } }, "required": ["id", "object", "project_id", "source", "format", "patches", "graphql", "diagnostic_policy", "latest_revision_id", "created_at", "updated_at", "request_id"] },
116
129
  "res:DefinitionSource": { "anyOf": [{ "$ref": "res:UrlDefinitionSource" }, { "$ref": "res:RepositoryDefinitionSource" }, { "type": "object" }] },
@@ -119,17 +132,33 @@ export const DEFS = {
119
132
  "res:GraphqlSettings": { "type": "object", "additionalProperties": false, "properties": { "endpoint": { "type": "string" }, "environments": { "type": "array", "maxItems": 10, "items": { "type": "object", "additionalProperties": false, "properties": { "name": { "type": "string" }, "url": { "type": "string" } }, "required": ["name", "url"] } }, "auth": { "type": "string" }, "api_key_header": { "type": "string" }, "title": { "type": "string", "maxLength": 80 }, "scalars": { "type": "object" } } },
120
133
  "req:DefinitionUpdateRequest": { "type": "object", "additionalProperties": false, "properties": { "source": { "$ref": "req:DefinitionSourceInput" }, "patches": { "type": "array", "maxItems": 50, "items": { "$ref": "req:DefinitionPatch" } }, "graphql": { "anyOf": [{ "$ref": "req:GraphqlSettings" }, { "type": "null" }] }, "diagnostic_policy": { "$ref": "req:DiagnosticPolicy" } } },
121
134
  "res:TargetList": { "type": "object", "additionalProperties": false, "properties": { "object": { "$ref": "res:ListObject" }, "data": { "type": "array", "items": { "$ref": "res:Target" } }, "has_more": { "type": "boolean" }, "next_cursor": { "type": ["string", "null"] }, "request_id": { "$ref": "res:RequestId" } }, "required": ["object", "data", "has_more", "next_cursor", "request_id"] },
122
- "req:TargetFields": { "type": "object", "additionalProperties": false, "properties": { "name": { "type": "string", "minLength": 1, "maxLength": 80 }, "definition_id": { "$ref": "req:DefinitionId" }, "generator": { "$ref": "req:GeneratorKind" }, "state": { "type": "string", "enum": ["active", "disabled"] }, "edition": { "type": "string" }, "release_channel": { "type": "string", "enum": ["stable", "prerelease"] }, "proposed_version": { "type": ["string", "null"] }, "config": { "anyOf": [{ "$ref": "req:ProjectConfig" }, { "type": "null" }] }, "deliveries": { "type": "array", "items": { "$ref": "req:DeliveryInput" } } }, "required": ["name", "definition_id", "generator"] },
135
+ "res:Target": { "type": "object", "additionalProperties": false, "properties": { "id": { "$ref": "res:TargetId" }, "object": { "type": "string" }, "project_id": { "$ref": "res:ProjectId" }, "definition_id": { "$ref": "res:DefinitionId" }, "name": { "type": "string" }, "generator": { "$ref": "res:GeneratorKind" }, "state": { "type": "string" }, "edition": { "type": "string" }, "release_channel": { "type": "string" }, "version_policy": { "type": "object", "additionalProperties": false, "properties": { "mode": { "type": "string" }, "pre1_breaking": { "type": "string" } }, "required": ["mode", "pre1_breaking"] }, "current_version": { "type": ["string", "null"] }, "proposed_version": { "type": ["string", "null"] }, "proposed_version_source": { "type": ["string", "null"] }, "proposed_version_actor": { "type": ["string", "null"] }, "release_revision": { "type": "integer", "minimum": 0 }, "config": { "anyOf": [{ "$ref": "res:TargetConfig" }, { "type": "null" }] }, "deliveries": { "type": "array", "maxItems": 2, "items": { "$ref": "res:Delivery" } }, "created_at": { "type": "string" }, "updated_at": { "type": "string" }, "request_id": { "$ref": "res:RequestId" } }, "required": ["id", "object", "project_id", "definition_id", "name", "generator", "state", "edition", "release_channel", "version_policy", "current_version", "proposed_version", "proposed_version_source", "proposed_version_actor", "release_revision", "config", "deliveries", "created_at", "updated_at"] },
136
+ "res:TargetConfig": { "type": "object", "additionalProperties": false, "properties": { "globals": { "type": "array", "maxItems": 20, "items": { "type": "string" } }, "retries": { "$ref": "res:RetryTuning" }, "pagination": { "type": "object" }, "auth": { "$ref": "res:TargetAuthenticationConfig" }, "cli": { "$ref": "res:CliBehavior" }, "mcp": { "$ref": "res:McpBehavior" }, "readme": { "$ref": "res:ReadmeBehavior" }, "package": { "$ref": "res:PackageBehavior" }, "docs_url": { "type": ["string", "null"] }, "docs_index_url": { "type": ["string", "null"] } } },
137
+ "res:TargetAuthenticationConfig": { "type": "object", "additionalProperties": false, "properties": { "oauth_application": { "type": ["string", "null"], "maxLength": 64, "pattern": "^[a-z][a-z0-9_-]{0,63}$" }, "environments": { "type": ["object", "null"] } } },
138
+ "res:Delivery": { "anyOf": [{ "$ref": "res:RepositoryDelivery" }, { "$ref": "res:HostedMcpDelivery" }, { "type": "object" }] },
139
+ "res:RepositoryDelivery": { "type": "object", "additionalProperties": false, "properties": { "id": { "$ref": "res:DeliveryId" }, "object": { "type": "string" }, "target_id": { "$ref": "res:TargetId" }, "kind": { "type": "string" }, "state": { "type": "string" }, "repository": { "$ref": "res:RepositoryReference" }, "directory": { "type": ["string", "null"] }, "package_name": { "type": ["string", "null"] }, "module_path": { "type": ["string", "null"] }, "publish_on_merge": { "type": "boolean" }, "created_at": { "type": "string" }, "updated_at": { "type": "string" } }, "required": ["id", "object", "target_id", "kind", "state", "repository", "directory", "package_name", "module_path", "publish_on_merge", "created_at", "updated_at"] },
140
+ "res:DeliveryId": { "type": "string", "pattern": "^dlv_[a-z0-9]{16}$" },
141
+ "res:HostedMcpDelivery": { "type": "object", "additionalProperties": false, "properties": { "id": { "$ref": "res:DeliveryId" }, "object": { "type": "string" }, "target_id": { "$ref": "res:TargetId" }, "kind": { "type": "string" }, "state": { "type": "string" }, "url": { "type": ["string", "null"] }, "created_at": { "type": "string" }, "updated_at": { "type": "string" } }, "required": ["id", "object", "target_id", "kind", "state", "url", "created_at", "updated_at"] },
142
+ "req:TargetFields": { "type": "object", "additionalProperties": false, "properties": { "name": { "type": "string", "minLength": 1, "maxLength": 80 }, "definition_id": { "$ref": "req:DefinitionId" }, "generator": { "$ref": "req:GeneratorKind" }, "state": { "type": "string", "enum": ["active", "disabled"] }, "edition": { "type": "string" }, "release_channel": { "type": "string", "enum": ["stable", "prerelease"] }, "proposed_version": { "type": ["string", "null"] }, "config": { "anyOf": [{ "$ref": "req:TargetConfig" }, { "type": "null" }] }, "deliveries": { "type": "array", "maxItems": 2, "items": { "$ref": "req:DeliveryInput" } } }, "required": ["name", "definition_id", "generator"] },
123
143
  "req:DefinitionId": { "type": "string", "pattern": "^def_[a-z0-9]{16}$" },
124
144
  "res:TargetResponse": { "allOf": [{ "$ref": "res:Target" }, { "$ref": "res:ResponseMetadata" }] },
125
145
  "res:ResponseMetadata": { "type": "object", "properties": { "request_id": { "$ref": "res:RequestId" } }, "required": ["request_id"] },
126
146
  "res:DeletedTarget": { "type": "object", "additionalProperties": false, "properties": { "id": { "$ref": "res:TargetId" }, "object": { "type": "string" }, "deleted": { "type": "boolean" }, "request_id": { "$ref": "res:RequestId" } }, "required": ["id", "object", "deleted", "request_id"] },
127
- "req:TargetUpdateRequest": { "type": "object", "additionalProperties": false, "properties": { "name": { "type": "string", "minLength": 1, "maxLength": 80 }, "state": { "type": "string", "enum": ["active", "disabled"] }, "edition": { "type": "string" }, "release_channel": { "type": "string", "enum": ["stable", "prerelease"] }, "proposed_version": { "type": ["string", "null"] }, "config": { "anyOf": [{ "$ref": "req:ProjectConfig" }, { "type": "null" }] }, "deliveries": { "type": "array", "items": { "$ref": "req:DeliveryInput" } } } },
147
+ "req:TargetUpdateRequest": { "type": "object", "additionalProperties": false, "properties": { "name": { "type": "string", "minLength": 1, "maxLength": 80 }, "state": { "type": "string", "enum": ["active", "disabled"] }, "edition": { "type": "string" }, "release_channel": { "type": "string", "enum": ["stable", "prerelease"] }, "proposed_version": { "type": ["string", "null"] }, "config": { "anyOf": [{ "$ref": "req:TargetConfig" }, { "type": "null" }] }, "deliveries": { "type": "array", "maxItems": 2, "items": { "$ref": "req:DeliveryInput" } } } },
128
148
  "res:TargetReleaseList": { "type": "object", "additionalProperties": false, "properties": { "object": { "$ref": "res:ListObject" }, "data": { "type": "array", "items": { "$ref": "res:TargetRelease" } }, "has_more": { "type": "boolean" }, "next_cursor": { "type": ["string", "null"] }, "request_id": { "$ref": "res:RequestId" } }, "required": ["object", "data", "has_more", "next_cursor", "request_id"] },
129
- "res:TargetRelease": { "type": "object", "additionalProperties": false, "properties": { "id": { "$ref": "res:TargetReleaseId" }, "object": { "type": "string" }, "target_id": { "$ref": "res:TargetId" }, "generation_id": { "$ref": "res:GenerationId" }, "version": { "type": "string" }, "channel": { "type": "string" }, "provider": { "type": "string" }, "repository": { "anyOf": [{ "$ref": "res:RepositoryReference" }, { "type": "null" }] }, "definition_revision_id": { "anyOf": [{ "$ref": "res:DefinitionRevisionId" }, { "type": "null" }] }, "delivery_revision": { "type": "string" }, "created_at": { "type": "string" }, "request_id": { "$ref": "res:RequestId" } }, "required": ["id", "object", "target_id", "generation_id", "version", "channel", "provider", "repository", "definition_revision_id", "delivery_revision", "created_at"] },
149
+ "res:TargetRelease": { "type": "object", "additionalProperties": false, "properties": { "id": { "$ref": "res:TargetReleaseId" }, "object": { "type": "string" }, "target_id": { "$ref": "res:TargetId" }, "generation_id": { "anyOf": [{ "$ref": "res:GenerationId" }, { "type": "null" }] }, "origin": { "type": "string" }, "version": { "type": "string" }, "channel": { "type": "string" }, "provider": { "type": "string" }, "repository": { "anyOf": [{ "$ref": "res:RepositoryReference" }, { "type": "null" }] }, "definition_revision_id": { "anyOf": [{ "$ref": "res:DefinitionRevisionId" }, { "type": "null" }] }, "delivery_revision": { "type": "string" }, "import_provenance": { "type": ["object", "null"], "additionalProperties": false, "properties": { "tag": { "type": ["string", "null"] }, "registry_url": { "type": ["string", "null"] }, "artifact_digest": { "type": ["string", "null"] }, "imported_at": { "type": ["string", "null"] } }, "required": ["tag", "registry_url", "artifact_digest", "imported_at"] }, "publications": { "type": "array", "items": { "$ref": "res:Publication" } }, "created_at": { "type": "string" }, "request_id": { "$ref": "res:RequestId" } }, "required": ["id", "object", "target_id", "generation_id", "version", "channel", "origin", "provider", "repository", "definition_revision_id", "delivery_revision", "import_provenance", "publications", "created_at"] },
130
150
  "res:TargetReleaseId": { "type": "string", "pattern": "^rel_[a-z0-9]{16}$" },
151
+ "res:Publication": { "type": "object", "additionalProperties": false, "properties": { "id": { "$ref": "res:PublicationId" }, "object": { "type": "string" }, "target_release_id": { "$ref": "res:TargetReleaseId" }, "destination": { "type": "string" }, "state": { "type": "string" }, "attempt": { "type": "integer", "minimum": 0 }, "run_url": { "type": ["string", "null"] }, "registry_url": { "type": ["string", "null"] }, "artifact_digest": { "type": ["string", "null"] }, "error": { "type": ["string", "null"] }, "started_at": { "type": ["string", "null"] }, "finished_at": { "type": ["string", "null"] }, "updated_at": { "type": "string" } }, "required": ["id", "object", "target_release_id", "destination", "state", "attempt", "run_url", "registry_url", "artifact_digest", "error", "started_at", "finished_at", "updated_at"] },
152
+ "res:PublicationId": { "type": "string", "pattern": "^pub_[a-z0-9]{16}$" },
153
+ "res:TargetDraftResponse": { "allOf": [{ "$ref": "res:TargetDraft" }, { "$ref": "res:ResponseMetadata" }] },
154
+ "res:TargetDraft": { "type": "object", "additionalProperties": false, "properties": { "object": { "type": "string" }, "target_id": { "$ref": "res:TargetId" }, "revision": { "type": "integer", "minimum": 0 }, "current_version": { "type": ["string", "null"] }, "version": { "type": ["string", "null"] }, "selection": { "$ref": "res:TargetDraftSelection" }, "readiness": { "type": ["object", "null"] }, "changes": { "type": ["object", "null"], "additionalProperties": false, "properties": { "changelog": { "type": ["string", "null"] }, "breaking_count": { "type": ["integer", "null"], "minimum": 0 }, "previous_version": { "type": ["string", "null"] } } }, "head_revision": { "type": ["string", "null"] }, "pull_request_url": { "type": ["string", "null"] }, "request_id": { "$ref": "res:RequestId" } }, "required": ["object", "target_id", "revision", "current_version", "version", "selection", "readiness", "changes", "head_revision", "pull_request_url"] },
155
+ "res:TargetDraftSelection": { "anyOf": [{ "type": "object", "additionalProperties": false, "properties": { "mode": { "type": "string" } }, "required": ["mode"] }, { "type": "object", "additionalProperties": false, "properties": { "mode": { "type": "string" }, "version": { "type": "string" }, "source": { "type": ["string", "null"] }, "actor": { "type": ["string", "null"] } }, "required": ["mode", "version", "source", "actor"] }] },
156
+ "req:TargetDraftUpdate": { "type": "object", "additionalProperties": false, "properties": { "version": { "type": ["string", "null"] }, "expected_revision": { "type": "integer", "minimum": 0 } }, "required": ["version"] },
157
+ "req:TargetAdoption": { "type": "object", "additionalProperties": false, "properties": { "version": { "type": "string" }, "tag": { "type": "string", "minLength": 1, "maxLength": 255 } }, "required": ["version", "tag"] },
131
158
  "res:TargetReleaseResponse": { "allOf": [{ "$ref": "res:TargetRelease" }, { "$ref": "res:ResponseMetadata" }] },
132
159
  "res:GenerationResponse": { "allOf": [{ "$ref": "res:Generation" }, { "$ref": "res:ResponseMetadata" }] },
160
+ "res:Generation": { "type": "object", "additionalProperties": false, "properties": { "id": { "$ref": "res:GenerationId" }, "object": { "type": "string" }, "files_omitted": { "type": "boolean" }, "files_index": { "type": "array", "items": { "$ref": "res:FileStub" } }, "project_id": { "$ref": "res:ProjectId" }, "definition_revision_id": { "anyOf": [{ "$ref": "res:DefinitionRevisionId" }, { "type": "null" }] }, "status": { "$ref": "res:GenerationStatus" }, "trigger": { "$ref": "res:GenerationTrigger" }, "target_id": { "anyOf": [{ "$ref": "res:TargetId" }, { "type": "null" }] }, "generator": { "$ref": "res:GeneratorKind" }, "provenance": { "$ref": "res:GenerationProvenance" }, "meta": { "anyOf": [{ "$ref": "res:GenerationMeta" }, { "type": "null" }] }, "warnings": { "type": "array", "items": { "type": "string" } }, "files": { "type": "array", "items": { "$ref": "res:GeneratedFile" } }, "error": { "type": ["string", "null"] }, "created_at": { "type": "string" }, "request_id": { "$ref": "res:RequestId" } }, "required": ["id", "object", "project_id", "definition_revision_id", "status", "trigger", "target_id", "generator", "provenance", "meta", "warnings", "error", "created_at"] },
161
+ "res:FileStub": { "type": "object", "properties": { "path": { "type": "string" }, "bytes": { "type": "integer" } }, "required": ["path", "bytes"] },
133
162
  "res:DefinitionRevisionList": { "type": "object", "additionalProperties": false, "properties": { "object": { "$ref": "res:ListObject" }, "data": { "type": "array", "items": { "$ref": "res:DefinitionRevision" } }, "has_more": { "type": "boolean" }, "next_cursor": { "type": ["string", "null"] }, "request_id": { "$ref": "res:RequestId" } }, "required": ["object", "data", "has_more", "next_cursor", "request_id"] },
134
163
  "res:DefinitionRevision": { "type": "object", "additionalProperties": false, "properties": { "id": { "$ref": "res:DefinitionRevisionId" }, "object": { "type": "string" }, "project_id": { "$ref": "res:ProjectId" }, "definition_id": { "$ref": "res:DefinitionId" }, "format": { "type": "string" }, "document_count": { "type": "integer", "minimum": 1 }, "documents": { "type": "array", "items": { "$ref": "res:DefinitionDocument" } }, "sha256": { "type": "string", "pattern": "^[a-f0-9]{64}$" }, "size_bytes": { "type": "integer", "minimum": 0 }, "source": { "anyOf": [{ "$ref": "res:DefinitionRevisionSource" }, { "type": "null" }] }, "created_at": { "type": "string" }, "request_id": { "$ref": "res:RequestId" } }, "required": ["id", "object", "project_id", "definition_id", "format", "document_count", "sha256", "size_bytes", "source", "created_at"] },
135
164
  "res:DefinitionDocument": { "type": "object", "additionalProperties": false, "properties": { "id": { "$ref": "res:DefinitionDocumentId" }, "role": { "type": "string" }, "coordinate": { "type": "string" }, "sha256": { "type": "string", "pattern": "^[a-f0-9]{64}$" }, "size_bytes": { "type": "integer", "minimum": 0 } }, "required": ["id", "role", "coordinate", "sha256", "size_bytes"] },