@typeship-ax/mcp 0.21.0 → 0.23.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 (133) 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 +54 -0
  6. package/dist/arguments.d.ts.map +1 -0
  7. package/dist/arguments.js +265 -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 +36 -0
  23. package/dist/fields.d.ts.map +1 -0
  24. package/dist/fields.js +187 -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 +108 -44
  31. package/dist/mcp-protocol.d.ts.map +1 -1
  32. package/dist/mcp-protocol.js +780 -484
  33. package/dist/mcp.d.ts.map +1 -1
  34. package/dist/mcp.js +129 -29
  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 +58 -5
  45. package/dist/ops.d.ts.map +1 -1
  46. package/dist/ops.js +110 -41
  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 +89 -5
  51. package/dist/resources/deliveries.d.ts.map +1 -1
  52. package/dist/resources/deliveries.js +96 -19
  53. package/dist/resources/drafts.d.ts +16 -16
  54. package/dist/resources/drafts.d.ts.map +1 -1
  55. package/dist/resources/drafts.js +12 -65
  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 +16 -16
  60. package/dist/resources/generations.d.ts.map +1 -1
  61. package/dist/resources/generations.js +23 -47
  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 +22 -17
  72. package/dist/resources/releases.d.ts.map +1 -1
  73. package/dist/resources/releases.js +19 -40
  74. package/dist/resources/spec-revisions.d.ts +16 -7
  75. package/dist/resources/spec-revisions.d.ts.map +1 -1
  76. package/dist/resources/spec-revisions.js +7 -29
  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 +49 -49
  81. package/dist/resources/targets.d.ts.map +1 -1
  82. package/dist/resources/targets.js +59 -115
  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/type-docs.d.ts +61 -0
  89. package/dist/type-docs.d.ts.map +1 -0
  90. package/dist/type-docs.js +174 -0
  91. package/dist/types.d.ts +499 -339
  92. package/dist/types.d.ts.map +1 -1
  93. package/dist/types.js +18 -18
  94. package/dist/worker.js +2 -2
  95. package/package.json +5 -2
  96. package/server.json +5 -5
  97. package/src/arguments.ts +254 -0
  98. package/src/core/http.ts +457 -58
  99. package/src/core/pagination.ts +129 -18
  100. package/src/credential-storage.ts +16 -6
  101. package/src/dates.ts +1 -1
  102. package/src/errors.ts +46 -115
  103. package/src/fields.ts +167 -0
  104. package/src/index.ts +45 -28
  105. package/src/mcp-authorization.ts +29 -9
  106. package/src/mcp-protocol.ts +808 -435
  107. package/src/mcp.ts +115 -27
  108. package/src/named-credentials.ts +66 -1
  109. package/src/oauth-request.ts +32 -6
  110. package/src/oauth-session.ts +37 -19
  111. package/src/ops.ts +146 -45
  112. package/src/resources/api-keys.ts +34 -48
  113. package/src/resources/deliveries.ts +213 -32
  114. package/src/resources/drafts.ts +62 -109
  115. package/src/resources/files.ts +19 -20
  116. package/src/resources/generations.ts +61 -79
  117. package/src/resources/organization.ts +11 -16
  118. package/src/resources/{generate.ts → packages.ts} +43 -51
  119. package/src/resources/projects.ts +145 -200
  120. package/src/resources/releases.ts +50 -67
  121. package/src/resources/spec-revisions.ts +40 -49
  122. package/src/resources/specs.ts +39 -59
  123. package/src/resources/targets.ts +144 -194
  124. package/src/schemas.ts +78 -76
  125. package/src/search.ts +434 -0
  126. package/src/type-docs.ts +205 -0
  127. package/src/types.ts +538 -357
  128. package/src/worker.ts +2 -2
  129. package/dist/resources/generate.d.ts.map +0 -1
  130. package/dist/resources/publications.d.ts +0 -47
  131. package/dist/resources/publications.d.ts.map +0 -1
  132. package/dist/resources/publications.js +0 -70
  133. package/src/resources/publications.ts +0 -140
@@ -1,28 +1,29 @@
1
- // typeship — targets resource.
2
- // Generated by typeship — https://typeship.dev
1
+ // Typeship — targets resource.
2
+ // Generated by Typeship — https://typeship.dev
3
3
 
4
4
  import { HttpCore, type RequestOptions } from "../core/http.js";
5
5
  import { paginate, PagePromise } from "../core/pagination.js";
6
6
  import {
7
+ RateLimitError,
7
8
  ResponseParseError,
8
9
  TransportError,
9
10
  UnexpectedApiError,
10
11
  ValidationError,
11
- BadGatewayError,
12
12
  BadRequestError,
13
13
  ConflictError,
14
14
  ForbiddenError,
15
- InternalServerError,
16
15
  NotFoundError,
17
16
  PaymentRequiredError,
18
17
  PreconditionFailedError,
19
- RateLimitedError,
18
+ ServerError,
20
19
  UnauthorizedError,
21
20
  UnprocessableEntityError,
22
21
  } from "../errors.js";
23
22
  import type {
24
23
  DeletedTarget,
25
24
  DeletedTargetRead,
25
+ ErrorModel,
26
+ ErrorModelRead,
26
27
  ProjectId,
27
28
  ReleaseResponse,
28
29
  ReleaseResponseRead,
@@ -41,44 +42,7 @@ import type {
41
42
  export class TargetsResource {
42
43
  constructor(private readonly _core: HttpCore) {}
43
44
  /**
44
- * List Targets
45
- *
46
- * Auto-paginates: `for await (const item of …)` walks every page.
47
- * `GET /targets`
48
- */
49
- list(params?: TargetsListParams, options?: RequestOptions): PagePromise<TargetRead, TargetsListError> {
50
- return paginate<TargetRead, TargetsListError>(this._core, {
51
- method: "GET",
52
- path: "/targets",
53
- security: [{"apiKey":[]}],
54
- query: {
55
- limit: params?.limit,
56
- cursor: params?.cursor,
57
- project_id: params?.projectId,
58
- },
59
- errors: {
60
- "400": BadRequestError,
61
- "401": UnauthorizedError,
62
- "403": ForbiddenError,
63
- "404": NotFoundError,
64
- "429": RateLimitedError,
65
- "500": InternalServerError,
66
- },
67
- idempotent: true,
68
- schemaKey: "targets.list",
69
- options,
70
- }, {
71
- style: "cursor",
72
- itemsField: "data",
73
- cursorParam: "cursor",
74
- nextCursorField: "next_cursor",
75
- hasMoreField: "has_more",
76
- limitParam: "limit",
77
- });
78
- }
79
-
80
- /**
81
- * Create an independently configured Target
45
+ * Create a Target
82
46
  *
83
47
  * Creates a Target with its own configuration, Deliveries, and release history. Multiple Targets
84
48
  * can use the same generator.
@@ -99,17 +63,7 @@ export class TargetsResource {
99
63
  "Idempotency-Key": params?.idempotencyKey === undefined ? undefined : String(params?.idempotencyKey),
100
64
  },
101
65
  body,
102
- errors: {
103
- "400": BadRequestError,
104
- "401": UnauthorizedError,
105
- "402": PaymentRequiredError,
106
- "403": ForbiddenError,
107
- "404": NotFoundError,
108
- "409": ConflictError,
109
- "422": UnprocessableEntityError,
110
- "429": RateLimitedError,
111
- "500": InternalServerError,
112
- },
66
+ errors: { "402": PaymentRequiredError },
113
67
  idempotencyKey: "Idempotency-Key",
114
68
  schemaKey: "targets.create",
115
69
  options,
@@ -117,73 +71,56 @@ export class TargetsResource {
117
71
  }
118
72
 
119
73
  /**
120
- * Get a Target
121
- * `GET /targets/{target_id}`
74
+ * List Targets
75
+ *
76
+ * Auto-paginates: `for await (const item of …)` walks every page.
77
+ * `GET /targets`
122
78
  */
123
- async get(targetId: TargetId, options?: RequestOptions): Promise<TargetResponseRead> {
124
- return this._core.requestData<TargetResponseRead, TargetsGetError>({
79
+ list(params?: TargetsListParams, options?: RequestOptions): PagePromise<TargetRead, TargetsListError> {
80
+ return paginate<TargetRead, TargetsListError>(this._core, {
125
81
  method: "GET",
126
- path: `/targets/${encodeURIComponent(String(targetId))}`,
82
+ path: "/targets",
127
83
  security: [{"apiKey":[]}],
128
- errors: {
129
- "401": UnauthorizedError,
130
- "403": ForbiddenError,
131
- "404": NotFoundError,
132
- "429": RateLimitedError,
133
- "500": InternalServerError,
84
+ query: {
85
+ limit: params?.limit,
86
+ cursor: params?.cursor,
87
+ project_id: params?.project_id,
134
88
  },
135
89
  idempotent: true,
136
- schemaKey: "targets.get",
90
+ schemaKey: "targets.list",
137
91
  options,
92
+ }, {
93
+ style: "cursor",
94
+ itemsField: "data",
95
+ cursorParam: "cursor",
96
+ nextCursorField: "next_cursor",
97
+ hasMoreField: "has_more",
98
+ limitParam: "limit",
138
99
  });
139
100
  }
140
101
 
141
102
  /**
142
- * Delete an unused Target
143
- *
144
- * Deletes a Target with no Generation history, release history, or active Draft. A `409
145
- * resource_has_dependencies` means one of those resources still depends on it. Retrieve the
146
- * Target, disable it instead, or resolve the dependency before retrying.
147
- *
148
- * See [conditional writes](https://typeship.dev/docs/typeship-api#conditional-writes) for ETag
149
- * and If-Match.
150
- * `DELETE /targets/{target_id}`
103
+ * Get a Target
104
+ * `GET /targets/{target_id}`
151
105
  */
152
- async delete(
153
- targetId: TargetId,
154
- params?: TargetsDeleteParams,
155
- options?: RequestOptions,
156
- ): Promise<DeletedTargetRead> {
157
- return this._core.requestData<DeletedTargetRead, TargetsDeleteError>({
158
- method: "DELETE",
106
+ async get(targetId: TargetId, options?: RequestOptions): Promise<TargetResponseRead> {
107
+ return this._core.requestData<TargetResponseRead, TargetsGetError>({
108
+ method: "GET",
159
109
  path: `/targets/${encodeURIComponent(String(targetId))}`,
160
110
  security: [{"apiKey":[]}],
161
- headers: {
162
- "If-Match": params?.ifMatch === undefined ? undefined : String(params?.ifMatch),
163
- },
164
- errors: {
165
- "400": BadRequestError,
166
- "401": UnauthorizedError,
167
- "403": ForbiddenError,
168
- "404": NotFoundError,
169
- "409": ConflictError,
170
- "412": PreconditionFailedError,
171
- "429": RateLimitedError,
172
- "500": InternalServerError,
173
- },
174
111
  idempotent: true,
175
- schemaKey: "targets.delete",
112
+ schemaKey: "targets.get",
176
113
  options,
177
114
  });
178
115
  }
179
116
 
180
117
  /**
181
- * Update a Target or its Deliveries
118
+ * Update a Target
182
119
  *
183
- * Omitted fields keep their current values. Supplied config, checks, and deliveries replace their
184
- * complete stored values.
185
- * With Project auto_generate enabled, changing Target config, checks, or Deliveries queues that
186
- * Target's Generation. A queued or running Target reuses that Generation.
120
+ * Omitted fields keep their current values. Supplied config and checks replace their complete
121
+ * stored values. Change Deliveries with createDelivery, updateDelivery, and deleteDelivery.
122
+ * With Project auto_generate enabled, changing Target config or checks queues that Target's
123
+ * Generation. A queued or running Target reuses that Generation.
187
124
  * Omitting If-Match applies the update to the current resource; with If-Match, a stale ETag
188
125
  * returns 412 precondition_failed without saving.
189
126
  * Select the next version through PATCH /drafts/{draft_id} on the Target's draft_id.
@@ -212,26 +149,44 @@ export class TargetsResource {
212
149
  "If-Match": params?.ifMatch === undefined ? undefined : String(params?.ifMatch),
213
150
  },
214
151
  body,
215
- errors: {
216
- "400": BadRequestError,
217
- "401": UnauthorizedError,
218
- "402": PaymentRequiredError,
219
- "403": ForbiddenError,
220
- "404": NotFoundError,
221
- "409": ConflictError,
222
- "412": PreconditionFailedError,
223
- "422": UnprocessableEntityError,
224
- "429": RateLimitedError,
225
- "500": InternalServerError,
226
- "502": BadGatewayError,
227
- },
152
+ errors: { "402": PaymentRequiredError, "412": PreconditionFailedError },
228
153
  schemaKey: "targets.update",
229
154
  options,
230
155
  });
231
156
  }
232
157
 
233
158
  /**
234
- * Adopt a verified existing package as the latest release
159
+ * Delete a Target
160
+ *
161
+ * Deletes a Target with no Generation history, release history, or active Draft. A `409
162
+ * resource_has_dependencies` means one of those resources still depends on it. Retrieve the
163
+ * Target, disable it instead, or resolve the dependency before retrying.
164
+ *
165
+ * See [conditional writes](https://typeship.dev/docs/typeship-api#conditional-writes) for ETag
166
+ * and If-Match.
167
+ * `DELETE /targets/{target_id}`
168
+ */
169
+ async delete(
170
+ targetId: TargetId,
171
+ params?: TargetsDeleteParams,
172
+ options?: RequestOptions,
173
+ ): Promise<DeletedTargetRead> {
174
+ return this._core.requestData<DeletedTargetRead, TargetsDeleteError>({
175
+ method: "DELETE",
176
+ path: `/targets/${encodeURIComponent(String(targetId))}`,
177
+ security: [{"apiKey":[]}],
178
+ headers: {
179
+ "If-Match": params?.ifMatch === undefined ? undefined : String(params?.ifMatch),
180
+ },
181
+ errors: { "412": PreconditionFailedError },
182
+ idempotent: true,
183
+ schemaKey: "targets.delete",
184
+ options,
185
+ });
186
+ }
187
+
188
+ /**
189
+ * Adopt a package release
235
190
  *
236
191
  * Checks the repository tag, package metadata, and registry artifact, then records the package as
237
192
  * an Imported latest release. Opens the first Typeship Draft at the next major version; review it
@@ -254,16 +209,6 @@ export class TargetsResource {
254
209
  "Idempotency-Key": params?.idempotencyKey === undefined ? undefined : String(params?.idempotencyKey),
255
210
  },
256
211
  body,
257
- errors: {
258
- "400": BadRequestError,
259
- "401": UnauthorizedError,
260
- "403": ForbiddenError,
261
- "404": NotFoundError,
262
- "409": ConflictError,
263
- "422": UnprocessableEntityError,
264
- "429": RateLimitedError,
265
- "500": InternalServerError,
266
- },
267
212
  idempotencyKey: "Idempotency-Key",
268
213
  schemaKey: "targets.adopt",
269
214
  options,
@@ -271,6 +216,33 @@ export class TargetsResource {
271
216
  }
272
217
  }
273
218
 
219
+ export interface TargetsCreateParams {
220
+ /**
221
+ * Identifies one logical write for 24 hours. The key is scoped to the authenticated organization
222
+ * and operation; generation without an organization uses a hashed network identity. Retrying the
223
+ * same method, path, query, If-Match header, and JSON body replays the original response. Reusing
224
+ * the key with changed intent returns 409. After expiry the key starts a new write.
225
+ */
226
+ idempotencyKey?: string;
227
+ }
228
+
229
+ /** Typed errors `create` can throw. */
230
+ export type TargetsCreateError =
231
+ | BadRequestError<ErrorModelRead>
232
+ | UnauthorizedError<ErrorModelRead>
233
+ | PaymentRequiredError
234
+ | ForbiddenError<ErrorModelRead>
235
+ | NotFoundError<ErrorModelRead>
236
+ | ConflictError<ErrorModelRead>
237
+ | UnprocessableEntityError<ErrorModelRead>
238
+ | RateLimitError<ErrorModelRead>
239
+ | ServerError<ErrorModelRead>
240
+ | RateLimitError
241
+ | UnexpectedApiError
242
+ | ResponseParseError
243
+ | TransportError
244
+ | ValidationError;
245
+
274
246
  export interface TargetsListParams {
275
247
  /**
276
248
  * Maximum number of resources to return. Omit for 20; otherwise supply base-10 digits
@@ -288,43 +260,18 @@ export interface TargetsListParams {
288
260
  */
289
261
  cursor?: string;
290
262
  /** Only Targets in this Project. */
291
- projectId?: ProjectId;
263
+ project_id?: ProjectId;
292
264
  }
293
265
 
294
266
  /** Typed errors `list` can throw. */
295
267
  export type TargetsListError =
296
- | BadRequestError
297
- | UnauthorizedError
298
- | ForbiddenError
299
- | NotFoundError
300
- | RateLimitedError
301
- | InternalServerError
302
- | UnexpectedApiError
303
- | ResponseParseError
304
- | TransportError
305
- | ValidationError;
306
-
307
- export interface TargetsCreateParams {
308
- /**
309
- * Identifies one logical write for 24 hours. The key is scoped to the authenticated organization
310
- * and operation; generation without an organization uses a hashed network identity. Retrying the
311
- * same method, path, query, If-Match header, and JSON body replays the original response. Reusing
312
- * the key with changed intent returns 409. After expiry the key starts a new write.
313
- */
314
- idempotencyKey?: string;
315
- }
316
-
317
- /** Typed errors `create` can throw. */
318
- export type TargetsCreateError =
319
- | BadRequestError
320
- | UnauthorizedError
321
- | PaymentRequiredError
322
- | ForbiddenError
323
- | NotFoundError
324
- | ConflictError
325
- | UnprocessableEntityError
326
- | RateLimitedError
327
- | InternalServerError
268
+ | BadRequestError<ErrorModelRead>
269
+ | UnauthorizedError<ErrorModelRead>
270
+ | ForbiddenError<ErrorModelRead>
271
+ | NotFoundError<ErrorModelRead>
272
+ | RateLimitError<ErrorModelRead>
273
+ | ServerError<ErrorModelRead>
274
+ | RateLimitError
328
275
  | UnexpectedApiError
329
276
  | ResponseParseError
330
277
  | TransportError
@@ -332,17 +279,18 @@ export type TargetsCreateError =
332
279
 
333
280
  /** Typed errors `get` can throw. */
334
281
  export type TargetsGetError =
335
- | UnauthorizedError
336
- | ForbiddenError
337
- | NotFoundError
338
- | RateLimitedError
339
- | InternalServerError
282
+ | UnauthorizedError<ErrorModelRead>
283
+ | ForbiddenError<ErrorModelRead>
284
+ | NotFoundError<ErrorModelRead>
285
+ | RateLimitError<ErrorModelRead>
286
+ | ServerError<ErrorModelRead>
287
+ | RateLimitError
340
288
  | UnexpectedApiError
341
289
  | ResponseParseError
342
290
  | TransportError
343
291
  | ValidationError;
344
292
 
345
- export interface TargetsDeleteParams {
293
+ export interface TargetsUpdateParams {
346
294
  /**
347
295
  * ETag from a preceding response. The write applies only if the resource still has that version;
348
296
  * otherwise it returns 412 precondition_failed without changes. Omit to write the current
@@ -351,22 +299,25 @@ export interface TargetsDeleteParams {
351
299
  ifMatch?: string;
352
300
  }
353
301
 
354
- /** Typed errors `delete` can throw. */
355
- export type TargetsDeleteError =
356
- | BadRequestError
357
- | UnauthorizedError
358
- | ForbiddenError
359
- | NotFoundError
360
- | ConflictError
302
+ /** Typed errors `update` can throw. */
303
+ export type TargetsUpdateError =
304
+ | BadRequestError<ErrorModelRead>
305
+ | UnauthorizedError<ErrorModelRead>
306
+ | PaymentRequiredError
307
+ | ForbiddenError<ErrorModelRead>
308
+ | NotFoundError<ErrorModelRead>
309
+ | ConflictError<ErrorModelRead>
361
310
  | PreconditionFailedError
362
- | RateLimitedError
363
- | InternalServerError
311
+ | UnprocessableEntityError<ErrorModelRead>
312
+ | RateLimitError<ErrorModelRead>
313
+ | ServerError<ErrorModelRead>
314
+ | RateLimitError
364
315
  | UnexpectedApiError
365
316
  | ResponseParseError
366
317
  | TransportError
367
318
  | ValidationError;
368
319
 
369
- export interface TargetsUpdateParams {
320
+ export interface TargetsDeleteParams {
370
321
  /**
371
322
  * ETag from a preceding response. The write applies only if the resource still has that version;
372
323
  * otherwise it returns 412 precondition_failed without changes. Omit to write the current
@@ -375,19 +326,17 @@ export interface TargetsUpdateParams {
375
326
  ifMatch?: string;
376
327
  }
377
328
 
378
- /** Typed errors `update` can throw. */
379
- export type TargetsUpdateError =
380
- | BadRequestError
381
- | UnauthorizedError
382
- | PaymentRequiredError
383
- | ForbiddenError
384
- | NotFoundError
385
- | ConflictError
329
+ /** Typed errors `delete` can throw. */
330
+ export type TargetsDeleteError =
331
+ | BadRequestError<ErrorModelRead>
332
+ | UnauthorizedError<ErrorModelRead>
333
+ | ForbiddenError<ErrorModelRead>
334
+ | NotFoundError<ErrorModelRead>
335
+ | ConflictError<ErrorModelRead>
386
336
  | PreconditionFailedError
387
- | UnprocessableEntityError
388
- | RateLimitedError
389
- | InternalServerError
390
- | BadGatewayError
337
+ | RateLimitError<ErrorModelRead>
338
+ | ServerError<ErrorModelRead>
339
+ | RateLimitError
391
340
  | UnexpectedApiError
392
341
  | ResponseParseError
393
342
  | TransportError
@@ -405,14 +354,15 @@ export interface TargetsAdoptParams {
405
354
 
406
355
  /** Typed errors `adopt` can throw. */
407
356
  export type TargetsAdoptError =
408
- | BadRequestError
409
- | UnauthorizedError
410
- | ForbiddenError
411
- | NotFoundError
412
- | ConflictError
413
- | UnprocessableEntityError
414
- | RateLimitedError
415
- | InternalServerError
357
+ | BadRequestError<ErrorModelRead>
358
+ | UnauthorizedError<ErrorModelRead>
359
+ | ForbiddenError<ErrorModelRead>
360
+ | NotFoundError<ErrorModelRead>
361
+ | ConflictError<ErrorModelRead>
362
+ | UnprocessableEntityError<ErrorModelRead>
363
+ | RateLimitError<ErrorModelRead>
364
+ | ServerError<ErrorModelRead>
365
+ | RateLimitError
416
366
  | UnexpectedApiError
417
367
  | ResponseParseError
418
368
  | TransportError