@typeship-ax/mcp 0.21.0 → 0.22.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 (129) hide show
  1. package/AGENTS.md +15 -11
  2. package/README.md +22 -53
  3. package/api.json +9998 -10118
  4. package/api.md +8983 -9120
  5. package/dist/arguments.d.ts +47 -0
  6. package/dist/arguments.d.ts.map +1 -0
  7. package/dist/arguments.js +254 -0
  8. package/dist/core/http.d.ts +162 -19
  9. package/dist/core/http.d.ts.map +1 -1
  10. package/dist/core/http.js +381 -48
  11. package/dist/core/pagination.d.ts +42 -6
  12. package/dist/core/pagination.d.ts.map +1 -1
  13. package/dist/core/pagination.js +111 -17
  14. package/dist/credential-storage.d.ts +10 -3
  15. package/dist/credential-storage.d.ts.map +1 -1
  16. package/dist/credential-storage.js +15 -6
  17. package/dist/dates.d.ts +1 -1
  18. package/dist/dates.js +1 -1
  19. package/dist/errors.d.ts +20 -84
  20. package/dist/errors.d.ts.map +1 -1
  21. package/dist/errors.js +20 -108
  22. package/dist/fields.d.ts +29 -0
  23. package/dist/fields.d.ts.map +1 -0
  24. package/dist/fields.js +101 -0
  25. package/dist/index.d.ts +28 -18
  26. package/dist/index.d.ts.map +1 -1
  27. package/dist/index.js +35 -25
  28. package/dist/mcp-authorization.d.ts.map +1 -1
  29. package/dist/mcp-authorization.js +34 -10
  30. package/dist/mcp-protocol.d.ts +87 -44
  31. package/dist/mcp-protocol.d.ts.map +1 -1
  32. package/dist/mcp-protocol.js +552 -478
  33. package/dist/mcp.d.ts.map +1 -1
  34. package/dist/mcp.js +127 -28
  35. package/dist/named-credentials.d.ts +19 -0
  36. package/dist/named-credentials.d.ts.map +1 -1
  37. package/dist/named-credentials.js +81 -1
  38. package/dist/oauth-request.d.ts +7 -1
  39. package/dist/oauth-request.d.ts.map +1 -1
  40. package/dist/oauth-request.js +26 -4
  41. package/dist/oauth-session.d.ts +13 -1
  42. package/dist/oauth-session.d.ts.map +1 -1
  43. package/dist/oauth-session.js +34 -18
  44. package/dist/ops.d.ts +53 -5
  45. package/dist/ops.d.ts.map +1 -1
  46. package/dist/ops.js +49 -40
  47. package/dist/resources/api-keys.d.ts +10 -7
  48. package/dist/resources/api-keys.d.ts.map +1 -1
  49. package/dist/resources/api-keys.js +10 -31
  50. package/dist/resources/deliveries.d.ts +88 -4
  51. package/dist/resources/deliveries.d.ts.map +1 -1
  52. package/dist/resources/deliveries.js +95 -18
  53. package/dist/resources/drafts.d.ts +15 -15
  54. package/dist/resources/drafts.d.ts.map +1 -1
  55. package/dist/resources/drafts.js +11 -64
  56. package/dist/resources/files.d.ts +4 -4
  57. package/dist/resources/files.d.ts.map +1 -1
  58. package/dist/resources/files.js +3 -12
  59. package/dist/resources/generations.d.ts +14 -14
  60. package/dist/resources/generations.d.ts.map +1 -1
  61. package/dist/resources/generations.js +21 -45
  62. package/dist/resources/organization.d.ts +4 -4
  63. package/dist/resources/organization.d.ts.map +1 -1
  64. package/dist/resources/organization.js +3 -10
  65. package/dist/resources/{generate.d.ts → packages.d.ts} +16 -16
  66. package/dist/resources/packages.d.ts.map +1 -0
  67. package/dist/resources/{generate.js → packages.js} +13 -29
  68. package/dist/resources/projects.d.ts +50 -50
  69. package/dist/resources/projects.d.ts.map +1 -1
  70. package/dist/resources/projects.js +60 -116
  71. package/dist/resources/releases.d.ts +21 -16
  72. package/dist/resources/releases.d.ts.map +1 -1
  73. package/dist/resources/releases.js +18 -39
  74. package/dist/resources/spec-revisions.d.ts +15 -6
  75. package/dist/resources/spec-revisions.d.ts.map +1 -1
  76. package/dist/resources/spec-revisions.js +6 -28
  77. package/dist/resources/specs.d.ts +7 -7
  78. package/dist/resources/specs.d.ts.map +1 -1
  79. package/dist/resources/specs.js +6 -34
  80. package/dist/resources/targets.d.ts +48 -48
  81. package/dist/resources/targets.d.ts.map +1 -1
  82. package/dist/resources/targets.js +58 -114
  83. package/dist/schemas.d.ts.map +1 -1
  84. package/dist/schemas.js +78 -76
  85. package/dist/search.d.ts +54 -0
  86. package/dist/search.d.ts.map +1 -0
  87. package/dist/search.js +421 -0
  88. package/dist/types.d.ts +499 -339
  89. package/dist/types.d.ts.map +1 -1
  90. package/dist/types.js +18 -18
  91. package/dist/worker.js +2 -2
  92. package/package.json +5 -2
  93. package/server.json +5 -5
  94. package/src/arguments.ts +242 -0
  95. package/src/core/http.ts +457 -58
  96. package/src/core/pagination.ts +129 -18
  97. package/src/credential-storage.ts +16 -6
  98. package/src/dates.ts +1 -1
  99. package/src/errors.ts +46 -115
  100. package/src/fields.ts +91 -0
  101. package/src/index.ts +45 -28
  102. package/src/mcp-authorization.ts +29 -9
  103. package/src/mcp-protocol.ts +580 -428
  104. package/src/mcp.ts +113 -26
  105. package/src/named-credentials.ts +66 -1
  106. package/src/oauth-request.ts +32 -6
  107. package/src/oauth-session.ts +37 -19
  108. package/src/ops.ts +82 -44
  109. package/src/resources/api-keys.ts +34 -48
  110. package/src/resources/deliveries.ts +211 -30
  111. package/src/resources/drafts.ts +60 -107
  112. package/src/resources/files.ts +19 -20
  113. package/src/resources/generations.ts +57 -75
  114. package/src/resources/organization.ts +11 -16
  115. package/src/resources/{generate.ts → packages.ts} +43 -51
  116. package/src/resources/projects.ts +145 -200
  117. package/src/resources/releases.ts +48 -65
  118. package/src/resources/spec-revisions.ts +38 -47
  119. package/src/resources/specs.ts +39 -59
  120. package/src/resources/targets.ts +143 -193
  121. package/src/schemas.ts +78 -76
  122. package/src/search.ts +434 -0
  123. package/src/types.ts +538 -357
  124. package/src/worker.ts +2 -2
  125. package/dist/resources/generate.d.ts.map +0 -1
  126. package/dist/resources/publications.d.ts +0 -47
  127. package/dist/resources/publications.d.ts.map +0 -1
  128. package/dist/resources/publications.js +0 -70
  129. package/src/resources/publications.ts +0 -140
@@ -1,7 +1,7 @@
1
- // typeship — drafts resource.
2
- // Generated by typeship — https://typeship.dev
1
+ // Typeship — drafts resource.
2
+ // Generated by Typeship — https://typeship.dev
3
3
  import { paginate } from "../core/pagination.js";
4
- import { BadGatewayError, BadRequestError, ConflictError, ForbiddenError, InternalServerError, NotFoundError, PreconditionFailedError, RateLimitedError, UnauthorizedError, UnprocessableEntityError, } from "../errors.js";
4
+ import { PreconditionFailedError, } from "../errors.js";
5
5
  export class DraftsResource {
6
6
  _core;
7
7
  constructor(_core) {
@@ -27,14 +27,6 @@ export class DraftsResource {
27
27
  target_id: params?.targetId,
28
28
  status: params?.status,
29
29
  },
30
- errors: {
31
- "400": BadRequestError,
32
- "401": UnauthorizedError,
33
- "403": ForbiddenError,
34
- "404": NotFoundError,
35
- "429": RateLimitedError,
36
- "500": InternalServerError,
37
- },
38
30
  idempotent: true,
39
31
  schemaKey: "drafts.list",
40
32
  options,
@@ -51,9 +43,9 @@ export class DraftsResource {
51
43
  * Get a Draft
52
44
  *
53
45
  * Returns the Draft's status. An open Draft also reports its typed reason when action is
54
- * required, next version and its source, readiness, checks, and conflict counts. The response
55
- * carries an `ETag`; send it in `If-Match` when updating the Draft to avoid changing a newer
56
- * version selection.
46
+ * required, next version and its source, compatibility and version assessment, blocking errors,
47
+ * checks, and conflict counts. The response carries an `ETag`; send it in `If-Match` when
48
+ * updating the Draft to avoid changing a newer version selection.
57
49
  * `GET /drafts/{draft_id}`
58
50
  */
59
51
  async get(draftId, options) {
@@ -61,20 +53,13 @@ export class DraftsResource {
61
53
  method: "GET",
62
54
  path: `/drafts/${encodeURIComponent(String(draftId))}`,
63
55
  security: [{ "apiKey": [] }],
64
- errors: {
65
- "401": UnauthorizedError,
66
- "403": ForbiddenError,
67
- "404": NotFoundError,
68
- "429": RateLimitedError,
69
- "500": InternalServerError,
70
- },
71
56
  idempotent: true,
72
57
  schemaKey: "drafts.get",
73
58
  options,
74
59
  });
75
60
  }
76
61
  /**
77
- * Select an exact Draft version or return to automatic versioning
62
+ * Update a Draft
78
63
  *
79
64
  * Checks your version choice against the required version bump, then regenerates the existing
80
65
  * Draft pull request.
@@ -104,24 +89,13 @@ export class DraftsResource {
104
89
  "If-Match": params?.ifMatch === undefined ? undefined : String(params?.ifMatch),
105
90
  },
106
91
  body,
107
- errors: {
108
- "400": BadRequestError,
109
- "401": UnauthorizedError,
110
- "403": ForbiddenError,
111
- "404": NotFoundError,
112
- "409": ConflictError,
113
- "412": PreconditionFailedError,
114
- "422": UnprocessableEntityError,
115
- "429": RateLimitedError,
116
- "500": InternalServerError,
117
- "502": BadGatewayError,
118
- },
92
+ errors: { "412": PreconditionFailedError },
119
93
  schemaKey: "drafts.update",
120
94
  options,
121
95
  });
122
96
  }
123
97
  /**
124
- * List customized and conflicted files on a Draft
98
+ * List a Draft's files
125
99
  *
126
100
  * Lists the Draft's files that differ from the last merged package or need a conflict decision,
127
101
  * ordered by path, without file content. Each conflict names its kind, the saved decision, and
@@ -144,15 +118,6 @@ export class DraftsResource {
144
118
  limit: params?.limit,
145
119
  cursor: params?.cursor,
146
120
  },
147
- errors: {
148
- "400": BadRequestError,
149
- "401": UnauthorizedError,
150
- "403": ForbiddenError,
151
- "404": NotFoundError,
152
- "409": ConflictError,
153
- "429": RateLimitedError,
154
- "500": InternalServerError,
155
- },
156
121
  idempotent: true,
157
122
  schemaKey: "drafts.listFiles",
158
123
  options,
@@ -166,7 +131,7 @@ export class DraftsResource {
166
131
  });
167
132
  }
168
133
  /**
169
- * Resolve selected Draft files
134
+ * Resolve Draft conflicts
170
135
  *
171
136
  * Resolves conflicts on the Draft's head_sha: keep yours or generated, or supply final content as
172
137
  * text or, for binary files, base64. Choosing generated for a customized path replaces it with
@@ -184,21 +149,12 @@ export class DraftsResource {
184
149
  path: `/drafts/${encodeURIComponent(String(draftId))}/resolve`,
185
150
  security: [{ "apiKey": [] }],
186
151
  body,
187
- errors: {
188
- "400": BadRequestError,
189
- "401": UnauthorizedError,
190
- "403": ForbiddenError,
191
- "404": NotFoundError,
192
- "409": ConflictError,
193
- "429": RateLimitedError,
194
- "500": InternalServerError,
195
- },
196
152
  schemaKey: "drafts.resolve",
197
153
  options,
198
154
  });
199
155
  }
200
156
  /**
201
- * Approve recovery from rewritten default-branch history
157
+ * Recover a Draft's history
202
158
  *
203
159
  * When the Draft has status `action_required` and reason `history_rewritten`, review affected
204
160
  * files with `listDraftFiles` and `filter=history`, then approve with the Draft's
@@ -214,15 +170,6 @@ export class DraftsResource {
214
170
  path: `/drafts/${encodeURIComponent(String(draftId))}/recover`,
215
171
  security: [{ "apiKey": [] }],
216
172
  body,
217
- errors: {
218
- "400": BadRequestError,
219
- "401": UnauthorizedError,
220
- "403": ForbiddenError,
221
- "404": NotFoundError,
222
- "409": ConflictError,
223
- "429": RateLimitedError,
224
- "500": InternalServerError,
225
- },
226
173
  schemaKey: "drafts.recover",
227
174
  options,
228
175
  });
@@ -1,11 +1,11 @@
1
1
  import { HttpCore, type RequestOptions } from "../core/http.js";
2
- import { ResponseParseError, TransportError, UnexpectedApiError, ValidationError, BadRequestError, ForbiddenError, InternalServerError, NotFoundError, RateLimitedError, UnauthorizedError } from "../errors.js";
3
- import type { FileId, FileResponseRead } from "../types.js";
2
+ import { RateLimitError, ResponseParseError, TransportError, UnexpectedApiError, ValidationError, BadRequestError, ForbiddenError, NotFoundError, ServerError, UnauthorizedError } from "../errors.js";
3
+ import type { ErrorModelRead, FileId, FileResponseRead } from "../types.js";
4
4
  export declare class FilesResource {
5
5
  private readonly _core;
6
6
  constructor(_core: HttpCore);
7
7
  /**
8
- * Get a file
8
+ * Get a File
9
9
  *
10
10
  * Returns one bounded chunk of an immutable file: at most 24 KiB, as UTF-8 text or, for binary
11
11
  * bytes, base64. When next_cursor is not null, repeat the request with cursor and concatenate the
@@ -19,5 +19,5 @@ export interface FilesGetParams {
19
19
  cursor?: string;
20
20
  }
21
21
  /** Typed errors `get` can throw. */
22
- export type FilesGetError = BadRequestError | UnauthorizedError | ForbiddenError | NotFoundError | RateLimitedError | InternalServerError | UnexpectedApiError | ResponseParseError | TransportError | ValidationError;
22
+ export type FilesGetError = BadRequestError<ErrorModelRead> | UnauthorizedError<ErrorModelRead> | ForbiddenError<ErrorModelRead> | NotFoundError<ErrorModelRead> | RateLimitError<ErrorModelRead> | ServerError<ErrorModelRead> | RateLimitError | UnexpectedApiError | ResponseParseError | TransportError | ValidationError;
23
23
  //# sourceMappingURL=files.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"files.d.ts","sourceRoot":"","sources":["../../src/resources/files.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,QAAQ,EAAE,KAAK,cAAc,EAAE,MAAM,iBAAiB,CAAC;AAChE,OAAO,EACL,kBAAkB,EAClB,cAAc,EACd,kBAAkB,EAClB,eAAe,EACf,eAAe,EACf,cAAc,EACd,mBAAmB,EACnB,aAAa,EACb,gBAAgB,EAChB,iBAAiB,EAClB,MAAM,cAAc,CAAC;AACtB,OAAO,KAAK,EAAE,MAAM,EAAgB,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAE1E,qBAAa,aAAa;IACZ,OAAO,CAAC,QAAQ,CAAC,KAAK;gBAAL,KAAK,EAAE,QAAQ;IAC5C;;;;;;;OAOG;IACG,GAAG,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,cAAc,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,OAAO,CAAC,gBAAgB,CAAC;CAqBxG;AAED,MAAM,WAAW,cAAc;IAC7B,yDAAyD;IACzD,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,oCAAoC;AACpC,MAAM,MAAM,aAAa,GACrB,eAAe,GACf,iBAAiB,GACjB,cAAc,GACd,aAAa,GACb,gBAAgB,GAChB,mBAAmB,GACnB,kBAAkB,GAClB,kBAAkB,GAClB,cAAc,GACd,eAAe,CAAC"}
1
+ {"version":3,"file":"files.d.ts","sourceRoot":"","sources":["../../src/resources/files.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,QAAQ,EAAE,KAAK,cAAc,EAAE,MAAM,iBAAiB,CAAC;AAChE,OAAO,EACL,cAAc,EACd,kBAAkB,EAClB,cAAc,EACd,kBAAkB,EAClB,eAAe,EACf,eAAe,EACf,cAAc,EACd,aAAa,EACb,WAAW,EACX,iBAAiB,EAClB,MAAM,cAAc,CAAC;AACtB,OAAO,KAAK,EAEV,cAAc,EACd,MAAM,EAEN,gBAAgB,EACjB,MAAM,aAAa,CAAC;AAErB,qBAAa,aAAa;IACZ,OAAO,CAAC,QAAQ,CAAC,KAAK;gBAAL,KAAK,EAAE,QAAQ;IAC5C;;;;;;;OAOG;IACG,GAAG,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,cAAc,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,OAAO,CAAC,gBAAgB,CAAC;CAaxG;AAED,MAAM,WAAW,cAAc;IAC7B,yDAAyD;IACzD,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,oCAAoC;AACpC,MAAM,MAAM,aAAa,GACrB,eAAe,CAAC,cAAc,CAAC,GAC/B,iBAAiB,CAAC,cAAc,CAAC,GACjC,cAAc,CAAC,cAAc,CAAC,GAC9B,aAAa,CAAC,cAAc,CAAC,GAC7B,cAAc,CAAC,cAAc,CAAC,GAC9B,WAAW,CAAC,cAAc,CAAC,GAC3B,cAAc,GACd,kBAAkB,GAClB,kBAAkB,GAClB,cAAc,GACd,eAAe,CAAC"}
@@ -1,13 +1,12 @@
1
- // typeship — files resource.
2
- // Generated by typeship — https://typeship.dev
3
- import { BadRequestError, ForbiddenError, InternalServerError, NotFoundError, RateLimitedError, UnauthorizedError, } from "../errors.js";
1
+ // Typeship — files resource.
2
+ // Generated by Typeship — https://typeship.dev
4
3
  export class FilesResource {
5
4
  _core;
6
5
  constructor(_core) {
7
6
  this._core = _core;
8
7
  }
9
8
  /**
10
- * Get a file
9
+ * Get a File
11
10
  *
12
11
  * Returns one bounded chunk of an immutable file: at most 24 KiB, as UTF-8 text or, for binary
13
12
  * bytes, base64. When next_cursor is not null, repeat the request with cursor and concatenate the
@@ -22,14 +21,6 @@ export class FilesResource {
22
21
  query: {
23
22
  cursor: params?.cursor,
24
23
  },
25
- errors: {
26
- "400": BadRequestError,
27
- "401": UnauthorizedError,
28
- "403": ForbiddenError,
29
- "404": NotFoundError,
30
- "429": RateLimitedError,
31
- "500": InternalServerError,
32
- },
33
24
  idempotent: true,
34
25
  schemaKey: "files.get",
35
26
  options,
@@ -1,19 +1,12 @@
1
1
  import { HttpCore, type RequestOptions } from "../core/http.js";
2
2
  import { PagePromise } from "../core/pagination.js";
3
- import { ResponseParseError, TransportError, UnexpectedApiError, ValidationError, BadRequestError, ForbiddenError, InternalServerError, NotFoundError, RateLimitedError, UnauthorizedError } from "../errors.js";
4
- import type { FileModelRead, GenerationId, GenerationResponseRead, GenerationStatus, GenerationSummaryRead, ProjectId, TargetId } from "../types.js";
3
+ import { RateLimitError, ResponseParseError, TransportError, UnexpectedApiError, ValidationError, BadRequestError, ForbiddenError, NotFoundError, ServerError, UnauthorizedError } from "../errors.js";
4
+ import type { ErrorModelRead, FileModelRead, GenerationId, GenerationRead, GenerationResponseRead, GenerationStatus, ProjectId, TargetId } from "../types.js";
5
5
  export declare class GenerationsResource {
6
6
  private readonly _core;
7
7
  constructor(_core: HttpCore);
8
8
  /**
9
- * List generations
10
- *
11
- * Auto-paginates: `for await (const item of …)` walks every page.
12
- * `GET /generations`
13
- */
14
- list(params?: GenerationsListParams, options?: RequestOptions): PagePromise<GenerationSummaryRead, GenerationsListError>;
15
- /**
16
- * Get a generation
9
+ * Get a Generation
17
10
  *
18
11
  * Returns the status of that Generation. `queued` and `running` mean generation is still in
19
12
  * progress. `completed` means generated files are saved, not that repository delivery or a Draft
@@ -21,6 +14,13 @@ export declare class GenerationsResource {
21
14
  * `GET /generations/{generation_id}`
22
15
  */
23
16
  get(generationId: GenerationId, options?: RequestOptions): Promise<GenerationResponseRead>;
17
+ /**
18
+ * List Generations
19
+ *
20
+ * Auto-paginates: `for await (const item of …)` walks every page.
21
+ * `GET /generations`
22
+ */
23
+ list(params?: GenerationsListParams, options?: RequestOptions): PagePromise<GenerationRead, GenerationsListError>;
24
24
  /**
25
25
  * List a Generation's files
26
26
  *
@@ -36,6 +36,8 @@ export declare class GenerationsResource {
36
36
  waitTimeoutMs?: number;
37
37
  }): Promise<GenerationResponseRead>;
38
38
  }
39
+ /** Typed errors `get` can throw. */
40
+ export type GenerationsGetError = UnauthorizedError<ErrorModelRead> | ForbiddenError<ErrorModelRead> | NotFoundError<ErrorModelRead> | RateLimitError<ErrorModelRead> | ServerError<ErrorModelRead> | RateLimitError | UnexpectedApiError | ResponseParseError | TransportError | ValidationError;
39
41
  export interface GenerationsListParams {
40
42
  /**
41
43
  * Maximum number of resources to return. Omit for 20; otherwise supply base-10 digits
@@ -60,9 +62,7 @@ export interface GenerationsListParams {
60
62
  status?: GenerationStatus;
61
63
  }
62
64
  /** Typed errors `list` can throw. */
63
- export type GenerationsListError = BadRequestError | UnauthorizedError | ForbiddenError | NotFoundError | RateLimitedError | InternalServerError | UnexpectedApiError | ResponseParseError | TransportError | ValidationError;
64
- /** Typed errors `get` can throw. */
65
- export type GenerationsGetError = UnauthorizedError | ForbiddenError | NotFoundError | RateLimitedError | InternalServerError | UnexpectedApiError | ResponseParseError | TransportError | ValidationError;
65
+ export type GenerationsListError = BadRequestError<ErrorModelRead> | UnauthorizedError<ErrorModelRead> | ForbiddenError<ErrorModelRead> | NotFoundError<ErrorModelRead> | RateLimitError<ErrorModelRead> | ServerError<ErrorModelRead> | RateLimitError | UnexpectedApiError | ResponseParseError | TransportError | ValidationError;
66
66
  export interface GenerationsListFilesParams {
67
67
  /**
68
68
  * Maximum number of resources to return. Omit for 20; otherwise supply base-10 digits
@@ -81,5 +81,5 @@ export interface GenerationsListFilesParams {
81
81
  cursor?: string;
82
82
  }
83
83
  /** Typed errors `listFiles` can throw. */
84
- export type GenerationsListFilesError = BadRequestError | UnauthorizedError | ForbiddenError | NotFoundError | RateLimitedError | InternalServerError | UnexpectedApiError | ResponseParseError | TransportError | ValidationError;
84
+ export type GenerationsListFilesError = BadRequestError<ErrorModelRead> | UnauthorizedError<ErrorModelRead> | ForbiddenError<ErrorModelRead> | NotFoundError<ErrorModelRead> | RateLimitError<ErrorModelRead> | ServerError<ErrorModelRead> | RateLimitError | UnexpectedApiError | ResponseParseError | TransportError | ValidationError;
85
85
  //# sourceMappingURL=generations.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"generations.d.ts","sourceRoot":"","sources":["../../src/resources/generations.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,QAAQ,EAAE,KAAK,cAAc,EAAE,MAAM,iBAAiB,CAAC;AAChE,OAAO,EAAY,WAAW,EAAE,MAAM,uBAAuB,CAAC;AAC9D,OAAO,EACL,kBAAkB,EAClB,cAAc,EACd,kBAAkB,EAClB,eAAe,EACf,eAAe,EACf,cAAc,EACd,mBAAmB,EACnB,aAAa,EACb,gBAAgB,EAChB,iBAAiB,EAClB,MAAM,cAAc,CAAC;AACtB,OAAO,KAAK,EAIV,aAAa,EACb,YAAY,EAIZ,sBAAsB,EACtB,gBAAgB,EAEhB,qBAAqB,EACrB,SAAS,EACT,QAAQ,EACT,MAAM,aAAa,CAAC;AAErB,qBAAa,mBAAmB;IAClB,OAAO,CAAC,QAAQ,CAAC,KAAK;gBAAL,KAAK,EAAE,QAAQ;IAC5C;;;;;OAKG;IACH,IAAI,CACF,MAAM,CAAC,EAAE,qBAAqB,EAC9B,OAAO,CAAC,EAAE,cAAc,GACvB,WAAW,CAAC,qBAAqB,EAAE,oBAAoB,CAAC;IAiC3D;;;;;;;OAOG;IACG,GAAG,CAAC,YAAY,EAAE,YAAY,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,OAAO,CAAC,sBAAsB,CAAC;IAkBhG;;;;;;;OAOG;IACH,SAAS,CACP,YAAY,EAAE,YAAY,EAC1B,MAAM,CAAC,EAAE,0BAA0B,EACnC,OAAO,CAAC,EAAE,cAAc,GACvB,WAAW,CAAC,aAAa,EAAE,yBAAyB,CAAC;IA8B1D,8DAA8D;IACtD,IAAI,CACR,YAAY,EAAE,YAAY,EAC1B,OAAO,GAAE,cAAc,GAAG;QAAE,UAAU,CAAC,EAAE,MAAM,CAAC;QAAC,aAAa,CAAC,EAAE,MAAM,CAAA;KAAO,GAC7E,OAAO,CAAC,sBAAsB,CAAC;CAcnC;AAED,MAAM,WAAW,qBAAqB;IACpC;;;;;OAKG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;;;;;OAMG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,wCAAwC;IACxC,SAAS,CAAC,EAAE,SAAS,CAAC;IACtB,uCAAuC;IACvC,QAAQ,CAAC,EAAE,QAAQ,CAAC;IACpB,yCAAyC;IACzC,MAAM,CAAC,EAAE,gBAAgB,CAAC;CAC3B;AAED,qCAAqC;AACrC,MAAM,MAAM,oBAAoB,GAC5B,eAAe,GACf,iBAAiB,GACjB,cAAc,GACd,aAAa,GACb,gBAAgB,GAChB,mBAAmB,GACnB,kBAAkB,GAClB,kBAAkB,GAClB,cAAc,GACd,eAAe,CAAC;AAEpB,oCAAoC;AACpC,MAAM,MAAM,mBAAmB,GAC3B,iBAAiB,GACjB,cAAc,GACd,aAAa,GACb,gBAAgB,GAChB,mBAAmB,GACnB,kBAAkB,GAClB,kBAAkB,GAClB,cAAc,GACd,eAAe,CAAC;AAEpB,MAAM,WAAW,0BAA0B;IACzC;;;;;OAKG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;;;;;OAMG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,0CAA0C;AAC1C,MAAM,MAAM,yBAAyB,GACjC,eAAe,GACf,iBAAiB,GACjB,cAAc,GACd,aAAa,GACb,gBAAgB,GAChB,mBAAmB,GACnB,kBAAkB,GAClB,kBAAkB,GAClB,cAAc,GACd,eAAe,CAAC"}
1
+ {"version":3,"file":"generations.d.ts","sourceRoot":"","sources":["../../src/resources/generations.ts"],"names":[],"mappings":"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"}
@@ -1,14 +1,31 @@
1
- // typeship — generations resource.
2
- // Generated by typeship — https://typeship.dev
1
+ // Typeship — generations resource.
2
+ // Generated by Typeship — https://typeship.dev
3
3
  import { paginate } from "../core/pagination.js";
4
- import { BadRequestError, ForbiddenError, InternalServerError, NotFoundError, RateLimitedError, UnauthorizedError, } from "../errors.js";
5
4
  export class GenerationsResource {
6
5
  _core;
7
6
  constructor(_core) {
8
7
  this._core = _core;
9
8
  }
10
9
  /**
11
- * List generations
10
+ * Get a Generation
11
+ *
12
+ * Returns the status of that Generation. `queued` and `running` mean generation is still in
13
+ * progress. `completed` means generated files are saved, not that repository delivery or a Draft
14
+ * is complete. List its files with listGenerationFiles and read each with getFile.
15
+ * `GET /generations/{generation_id}`
16
+ */
17
+ async get(generationId, options) {
18
+ return this._core.requestData({
19
+ method: "GET",
20
+ path: `/generations/${encodeURIComponent(String(generationId))}`,
21
+ security: [{ "apiKey": [] }],
22
+ idempotent: true,
23
+ schemaKey: "generations.get",
24
+ options,
25
+ });
26
+ }
27
+ /**
28
+ * List Generations
12
29
  *
13
30
  * Auto-paginates: `for await (const item of …)` walks every page.
14
31
  * `GET /generations`
@@ -25,14 +42,6 @@ export class GenerationsResource {
25
42
  target_id: params?.targetId,
26
43
  status: params?.status,
27
44
  },
28
- errors: {
29
- "400": BadRequestError,
30
- "401": UnauthorizedError,
31
- "403": ForbiddenError,
32
- "404": NotFoundError,
33
- "429": RateLimitedError,
34
- "500": InternalServerError,
35
- },
36
45
  idempotent: true,
37
46
  schemaKey: "generations.list",
38
47
  options,
@@ -45,31 +54,6 @@ export class GenerationsResource {
45
54
  limitParam: "limit",
46
55
  });
47
56
  }
48
- /**
49
- * Get a generation
50
- *
51
- * Returns the status of that Generation. `queued` and `running` mean generation is still in
52
- * progress. `completed` means generated files are saved, not that repository delivery or a Draft
53
- * is complete. List its files with listGenerationFiles and read each with getFile.
54
- * `GET /generations/{generation_id}`
55
- */
56
- async get(generationId, options) {
57
- return this._core.requestData({
58
- method: "GET",
59
- path: `/generations/${encodeURIComponent(String(generationId))}`,
60
- security: [{ "apiKey": [] }],
61
- errors: {
62
- "401": UnauthorizedError,
63
- "403": ForbiddenError,
64
- "404": NotFoundError,
65
- "429": RateLimitedError,
66
- "500": InternalServerError,
67
- },
68
- idempotent: true,
69
- schemaKey: "generations.get",
70
- options,
71
- });
72
- }
73
57
  /**
74
58
  * List a Generation's files
75
59
  *
@@ -87,14 +71,6 @@ export class GenerationsResource {
87
71
  limit: params?.limit,
88
72
  cursor: params?.cursor,
89
73
  },
90
- errors: {
91
- "400": BadRequestError,
92
- "401": UnauthorizedError,
93
- "403": ForbiddenError,
94
- "404": NotFoundError,
95
- "429": RateLimitedError,
96
- "500": InternalServerError,
97
- },
98
74
  idempotent: true,
99
75
  schemaKey: "generations.listFiles",
100
76
  options,
@@ -1,11 +1,11 @@
1
1
  import { HttpCore, type RequestOptions } from "../core/http.js";
2
- import { ResponseParseError, TransportError, UnexpectedApiError, ValidationError, ForbiddenError, InternalServerError, RateLimitedError, UnauthorizedError } from "../errors.js";
3
- import type { OrganizationRead } from "../types.js";
2
+ import { RateLimitError, ResponseParseError, TransportError, UnexpectedApiError, ValidationError, ForbiddenError, ServerError, UnauthorizedError } from "../errors.js";
3
+ import type { ErrorModelRead, OrganizationRead } from "../types.js";
4
4
  export declare class OrganizationResource {
5
5
  private readonly _core;
6
6
  constructor(_core: HttpCore);
7
7
  /**
8
- * The organization behind the presented credentials
8
+ * Get the Organization
9
9
  *
10
10
  * Returns the organization associated with your credential. The Typeship CLI uses this endpoint
11
11
  * for `whoami`.
@@ -14,5 +14,5 @@ export declare class OrganizationResource {
14
14
  get(options?: RequestOptions): Promise<OrganizationRead>;
15
15
  }
16
16
  /** Typed errors `get` can throw. */
17
- export type OrganizationGetError = UnauthorizedError | ForbiddenError | RateLimitedError | InternalServerError | UnexpectedApiError | ResponseParseError | TransportError | ValidationError;
17
+ export type OrganizationGetError = UnauthorizedError<ErrorModelRead> | ForbiddenError<ErrorModelRead> | RateLimitError<ErrorModelRead> | ServerError<ErrorModelRead> | RateLimitError | UnexpectedApiError | ResponseParseError | TransportError | ValidationError;
18
18
  //# sourceMappingURL=organization.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"organization.d.ts","sourceRoot":"","sources":["../../src/resources/organization.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,QAAQ,EAAE,KAAK,cAAc,EAAE,MAAM,iBAAiB,CAAC;AAChE,OAAO,EACL,kBAAkB,EAClB,cAAc,EACd,kBAAkB,EAClB,eAAe,EACf,cAAc,EACd,mBAAmB,EACnB,gBAAgB,EAChB,iBAAiB,EAClB,MAAM,cAAc,CAAC;AACtB,OAAO,KAAK,EAAgB,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAElE,qBAAa,oBAAoB;IACnB,OAAO,CAAC,QAAQ,CAAC,KAAK;gBAAL,KAAK,EAAE,QAAQ;IAC5C;;;;;;OAMG;IACG,GAAG,CAAC,OAAO,CAAC,EAAE,cAAc,GAAG,OAAO,CAAC,gBAAgB,CAAC;CAgB/D;AAED,oCAAoC;AACpC,MAAM,MAAM,oBAAoB,GAC5B,iBAAiB,GACjB,cAAc,GACd,gBAAgB,GAChB,mBAAmB,GACnB,kBAAkB,GAClB,kBAAkB,GAClB,cAAc,GACd,eAAe,CAAC"}
1
+ {"version":3,"file":"organization.d.ts","sourceRoot":"","sources":["../../src/resources/organization.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,QAAQ,EAAE,KAAK,cAAc,EAAE,MAAM,iBAAiB,CAAC;AAChE,OAAO,EACL,cAAc,EACd,kBAAkB,EAClB,cAAc,EACd,kBAAkB,EAClB,eAAe,EACf,cAAc,EACd,WAAW,EACX,iBAAiB,EAClB,MAAM,cAAc,CAAC;AACtB,OAAO,KAAK,EAAc,cAAc,EAAgB,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAE9F,qBAAa,oBAAoB;IACnB,OAAO,CAAC,QAAQ,CAAC,KAAK;gBAAL,KAAK,EAAE,QAAQ;IAC5C;;;;;;OAMG;IACG,GAAG,CAAC,OAAO,CAAC,EAAE,cAAc,GAAG,OAAO,CAAC,gBAAgB,CAAC;CAU/D;AAED,oCAAoC;AACpC,MAAM,MAAM,oBAAoB,GAC5B,iBAAiB,CAAC,cAAc,CAAC,GACjC,cAAc,CAAC,cAAc,CAAC,GAC9B,cAAc,CAAC,cAAc,CAAC,GAC9B,WAAW,CAAC,cAAc,CAAC,GAC3B,cAAc,GACd,kBAAkB,GAClB,kBAAkB,GAClB,cAAc,GACd,eAAe,CAAC"}
@@ -1,13 +1,12 @@
1
- // typeship — organization resource.
2
- // Generated by typeship — https://typeship.dev
3
- import { ForbiddenError, InternalServerError, RateLimitedError, UnauthorizedError, } from "../errors.js";
1
+ // Typeship — organization resource.
2
+ // Generated by Typeship — https://typeship.dev
4
3
  export class OrganizationResource {
5
4
  _core;
6
5
  constructor(_core) {
7
6
  this._core = _core;
8
7
  }
9
8
  /**
10
- * The organization behind the presented credentials
9
+ * Get the Organization
11
10
  *
12
11
  * Returns the organization associated with your credential. The Typeship CLI uses this endpoint
13
12
  * for `whoami`.
@@ -18,12 +17,6 @@ export class OrganizationResource {
18
17
  method: "GET",
19
18
  path: "/organization",
20
19
  security: [{ "apiKey": [] }],
21
- errors: {
22
- "401": UnauthorizedError,
23
- "403": ForbiddenError,
24
- "429": RateLimitedError,
25
- "500": InternalServerError,
26
- },
27
20
  idempotent: true,
28
21
  schemaKey: "organization.get",
29
22
  options,
@@ -1,11 +1,11 @@
1
1
  import { HttpCore, type RequestOptions } from "../core/http.js";
2
- import { ResponseParseError, TransportError, UnexpectedApiError, ValidationError, ApiResponseError, BadRequestError, ConflictError, ForbiddenError, InternalServerError, NotFoundError, PayloadTooLargeError, RateLimitedError, UnauthorizedError, UnprocessableEntityError } from "../errors.js";
3
- import type { GenerateRequest, GenerationResultRead } from "../types.js";
4
- export declare class GenerateResource {
2
+ import { RateLimitError, ResponseParseError, TransportError, UnexpectedApiError, ValidationError, ApiResponseError, BadRequestError, ConflictError, ForbiddenError, NotFoundError, PayloadTooLargeError, ServerError, UnauthorizedError, UnprocessableEntityError } from "../errors.js";
3
+ import type { ErrorModelRead, GenerateRequest, GenerationResultRead } from "../types.js";
4
+ export declare class PackagesResource {
5
5
  private readonly _core;
6
6
  constructor(_core: HttpCore);
7
7
  /**
8
- * Generate one package from a Spec
8
+ * Generate a package
9
9
  *
10
10
  * Returns one generated package without creating a Project.
11
11
  *
@@ -29,13 +29,13 @@ export declare class GenerateResource {
29
29
  * A `Idempotency-Key` UUID is generated per call (stable across retries) unless you pass one.
30
30
  * `POST /generate`
31
31
  */
32
- run(body: GenerateRequest, params?: GenerateRunParams, options?: RequestOptions): Promise<GenerationResultRead>;
32
+ generate(body: GenerateRequest, params?: PackagesGenerateParams, options?: RequestOptions): Promise<GenerationResultRead>;
33
33
  /**
34
34
  * Download a generated package
35
35
  *
36
- * Download the complete ZIP referenced by `generate_run`'s `download.url`. Pass the token from
37
- * that URL. No API key is needed; the token grants access only to that exact package until its
38
- * replay window expires. Keep the token private.
36
+ * Download the complete ZIP referenced by `packages_generate`'s `download.url`. Pass the token
37
+ * from that URL. No API key is needed; the token grants access only to that exact package until
38
+ * its replay window expires. Keep the token private.
39
39
  *
40
40
  * The local MCP server saves this binary response to disk. On a hosted MCP connection, download
41
41
  * the original URL directly to your workspace. Verify the ZIP against `download.sha256` before
@@ -43,9 +43,9 @@ export declare class GenerateResource {
43
43
  * creates a new download.
44
44
  * `GET /generate/download`
45
45
  */
46
- downloadPackage(params: GenerateDownloadPackageParams, options?: RequestOptions): Promise<Blob>;
46
+ download(params: PackagesDownloadParams, options?: RequestOptions): Promise<Blob>;
47
47
  }
48
- export interface GenerateRunParams {
48
+ export interface PackagesGenerateParams {
49
49
  /**
50
50
  * Identifies one logical write for 24 hours. The key is scoped to the authenticated organization
51
51
  * and operation; generation without an organization uses a hashed network identity. Retrying the
@@ -54,12 +54,12 @@ export interface GenerateRunParams {
54
54
  */
55
55
  idempotencyKey?: string;
56
56
  }
57
- /** Typed errors `run` can throw. */
58
- export type GenerateRunError = BadRequestError | UnauthorizedError | ForbiddenError | ConflictError | PayloadTooLargeError | UnprocessableEntityError | RateLimitedError | InternalServerError | ApiResponseError | UnexpectedApiError | ResponseParseError | TransportError | ValidationError;
59
- export interface GenerateDownloadPackageParams {
57
+ /** Typed errors `generate` can throw. */
58
+ export type PackagesGenerateError = BadRequestError<ErrorModelRead> | UnauthorizedError<ErrorModelRead> | ForbiddenError<ErrorModelRead> | ConflictError<ErrorModelRead> | PayloadTooLargeError | UnprocessableEntityError<ErrorModelRead> | RateLimitError<ErrorModelRead> | ServerError<ErrorModelRead> | ApiResponseError | RateLimitError | UnexpectedApiError | ResponseParseError | TransportError | ValidationError;
59
+ export interface PackagesDownloadParams {
60
60
  /** Private download token from download.url in the generation result. */
61
61
  token: string;
62
62
  }
63
- /** Typed errors `downloadPackage` can throw. */
64
- export type GenerateDownloadPackageError = BadRequestError | NotFoundError | RateLimitedError | InternalServerError | UnexpectedApiError | ResponseParseError | TransportError | ValidationError;
65
- //# sourceMappingURL=generate.d.ts.map
63
+ /** Typed errors `download` can throw. */
64
+ export type PackagesDownloadError = BadRequestError<ErrorModelRead> | NotFoundError<ErrorModelRead> | RateLimitError<ErrorModelRead> | ServerError<ErrorModelRead> | RateLimitError | UnexpectedApiError | ResponseParseError | TransportError | ValidationError;
65
+ //# sourceMappingURL=packages.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"packages.d.ts","sourceRoot":"","sources":["../../src/resources/packages.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,QAAQ,EAAE,KAAK,cAAc,EAAE,MAAM,iBAAiB,CAAC;AAChE,OAAO,EACL,cAAc,EACd,kBAAkB,EAClB,cAAc,EACd,kBAAkB,EAClB,eAAe,EACf,gBAAgB,EAChB,eAAe,EACf,aAAa,EACb,cAAc,EACd,aAAa,EACb,oBAAoB,EACpB,WAAW,EACX,iBAAiB,EACjB,wBAAwB,EACzB,MAAM,cAAc,CAAC;AACtB,OAAO,KAAK,EAEV,cAAc,EACd,eAAe,EAEf,oBAAoB,EACrB,MAAM,aAAa,CAAC;AAErB,qBAAa,gBAAgB;IACf,OAAO,CAAC,QAAQ,CAAC,KAAK;gBAAL,KAAK,EAAE,QAAQ;IAC5C;;;;;;;;;;;;;;;;;;;;;;;;OAwBG;IACG,QAAQ,CACZ,IAAI,EAAE,eAAe,EACrB,MAAM,CAAC,EAAE,sBAAsB,EAC/B,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,oBAAoB,CAAC;IAgBhC;;;;;;;;;;;;OAYG;IACG,QAAQ,CAAC,MAAM,EAAE,sBAAsB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,OAAO,CAAC,IAAI,CAAC;CAaxF;AAED,MAAM,WAAW,sBAAsB;IACrC;;;;;OAKG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB;AAED,yCAAyC;AACzC,MAAM,MAAM,qBAAqB,GAC7B,eAAe,CAAC,cAAc,CAAC,GAC/B,iBAAiB,CAAC,cAAc,CAAC,GACjC,cAAc,CAAC,cAAc,CAAC,GAC9B,aAAa,CAAC,cAAc,CAAC,GAC7B,oBAAoB,GACpB,wBAAwB,CAAC,cAAc,CAAC,GACxC,cAAc,CAAC,cAAc,CAAC,GAC9B,WAAW,CAAC,cAAc,CAAC,GAC3B,gBAAgB,GAChB,cAAc,GACd,kBAAkB,GAClB,kBAAkB,GAClB,cAAc,GACd,eAAe,CAAC;AAEpB,MAAM,WAAW,sBAAsB;IACrC,yEAAyE;IACzE,KAAK,EAAE,MAAM,CAAC;CACf;AAED,yCAAyC;AACzC,MAAM,MAAM,qBAAqB,GAC7B,eAAe,CAAC,cAAc,CAAC,GAC/B,aAAa,CAAC,cAAc,CAAC,GAC7B,cAAc,CAAC,cAAc,CAAC,GAC9B,WAAW,CAAC,cAAc,CAAC,GAC3B,cAAc,GACd,kBAAkB,GAClB,kBAAkB,GAClB,cAAc,GACd,eAAe,CAAC"}
@@ -1,13 +1,13 @@
1
- // typeship — generate resource.
2
- // Generated by typeship — https://typeship.dev
3
- import { ApiResponseError, BadRequestError, ConflictError, ForbiddenError, InternalServerError, NotFoundError, PayloadTooLargeError, RateLimitedError, UnauthorizedError, UnprocessableEntityError, } from "../errors.js";
4
- export class GenerateResource {
1
+ // Typeship — packages resource.
2
+ // Generated by Typeship — https://typeship.dev
3
+ import { ApiResponseError, PayloadTooLargeError, } from "../errors.js";
4
+ export class PackagesResource {
5
5
  _core;
6
6
  constructor(_core) {
7
7
  this._core = _core;
8
8
  }
9
9
  /**
10
- * Generate one package from a Spec
10
+ * Generate a package
11
11
  *
12
12
  * Returns one generated package without creating a Project.
13
13
  *
@@ -31,7 +31,7 @@ export class GenerateResource {
31
31
  * A `Idempotency-Key` UUID is generated per call (stable across retries) unless you pass one.
32
32
  * `POST /generate`
33
33
  */
34
- async run(body, params, options) {
34
+ async generate(body, params, options) {
35
35
  return this._core.requestData({
36
36
  method: "POST",
37
37
  path: "/generate",
@@ -40,28 +40,18 @@ export class GenerateResource {
40
40
  "Idempotency-Key": params?.idempotencyKey === undefined ? undefined : String(params?.idempotencyKey),
41
41
  },
42
42
  body,
43
- errors: {
44
- "400": BadRequestError,
45
- "401": UnauthorizedError,
46
- "403": ForbiddenError,
47
- "409": ConflictError,
48
- "413": PayloadTooLargeError,
49
- "422": UnprocessableEntityError,
50
- "429": RateLimitedError,
51
- "500": InternalServerError,
52
- default: ApiResponseError,
53
- },
43
+ errors: { "413": PayloadTooLargeError, default: ApiResponseError },
54
44
  idempotencyKey: "Idempotency-Key",
55
- schemaKey: "generate.run",
45
+ schemaKey: "packages.generate",
56
46
  options,
57
47
  });
58
48
  }
59
49
  /**
60
50
  * Download a generated package
61
51
  *
62
- * Download the complete ZIP referenced by `generate_run`'s `download.url`. Pass the token from
63
- * that URL. No API key is needed; the token grants access only to that exact package until its
64
- * replay window expires. Keep the token private.
52
+ * Download the complete ZIP referenced by `packages_generate`'s `download.url`. Pass the token
53
+ * from that URL. No API key is needed; the token grants access only to that exact package until
54
+ * its replay window expires. Keep the token private.
65
55
  *
66
56
  * The local MCP server saves this binary response to disk. On a hosted MCP connection, download
67
57
  * the original URL directly to your workspace. Verify the ZIP against `download.sha256` before
@@ -69,7 +59,7 @@ export class GenerateResource {
69
59
  * creates a new download.
70
60
  * `GET /generate/download`
71
61
  */
72
- async downloadPackage(params, options) {
62
+ async download(params, options) {
73
63
  return this._core.requestData({
74
64
  method: "GET",
75
65
  path: "/generate/download",
@@ -77,14 +67,8 @@ export class GenerateResource {
77
67
  query: {
78
68
  token: params.token,
79
69
  },
80
- errors: {
81
- "400": BadRequestError,
82
- "404": NotFoundError,
83
- "429": RateLimitedError,
84
- "500": InternalServerError,
85
- },
86
70
  idempotent: true,
87
- schemaKey: "generate.downloadPackage",
71
+ schemaKey: "packages.download",
88
72
  options,
89
73
  });
90
74
  }