@typeship-ax/cli 0.22.0 → 0.24.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/AGENTS.md +13 -9
- package/README.md +14 -27
- package/api.json +8898 -9026
- package/api.md +370 -328
- package/dist/arguments.d.ts +54 -0
- package/dist/arguments.d.ts.map +1 -0
- package/dist/arguments.js +265 -0
- package/dist/cli-agent.d.ts +73 -9
- package/dist/cli-agent.d.ts.map +1 -1
- package/dist/cli-agent.js +331 -44
- package/dist/cli.js +802 -291
- package/dist/core/http.d.ts +162 -19
- package/dist/core/http.d.ts.map +1 -1
- package/dist/core/http.js +381 -48
- package/dist/core/pagination.d.ts +42 -6
- package/dist/core/pagination.d.ts.map +1 -1
- package/dist/core/pagination.js +111 -17
- package/dist/credential-storage.d.ts +10 -3
- package/dist/credential-storage.d.ts.map +1 -1
- package/dist/credential-storage.js +15 -6
- package/dist/dates.d.ts +1 -1
- package/dist/dates.js +1 -1
- package/dist/errors.d.ts +20 -84
- package/dist/errors.d.ts.map +1 -1
- package/dist/errors.js +20 -108
- package/dist/fields.d.ts +36 -0
- package/dist/fields.d.ts.map +1 -0
- package/dist/fields.js +187 -0
- package/dist/index.d.ts +28 -18
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +35 -25
- package/dist/named-credentials.d.ts +19 -0
- package/dist/named-credentials.d.ts.map +1 -1
- package/dist/named-credentials.js +81 -1
- package/dist/oauth-login.d.ts +8 -2
- package/dist/oauth-login.d.ts.map +1 -1
- package/dist/oauth-login.js +31 -19
- package/dist/oauth-request.d.ts +7 -1
- package/dist/oauth-request.d.ts.map +1 -1
- package/dist/oauth-request.js +26 -4
- package/dist/oauth-session.d.ts +13 -1
- package/dist/oauth-session.d.ts.map +1 -1
- package/dist/oauth-session.js +34 -18
- package/dist/ops.d.ts +58 -5
- package/dist/ops.d.ts.map +1 -1
- package/dist/ops.js +110 -41
- package/dist/polling-login.d.ts +8 -2
- package/dist/polling-login.d.ts.map +1 -1
- package/dist/polling-login.js +25 -11
- package/dist/resources/api-keys.d.ts +10 -7
- package/dist/resources/api-keys.d.ts.map +1 -1
- package/dist/resources/api-keys.js +10 -31
- package/dist/resources/deliveries.d.ts +89 -5
- package/dist/resources/deliveries.d.ts.map +1 -1
- package/dist/resources/deliveries.js +96 -19
- package/dist/resources/drafts.d.ts +16 -16
- package/dist/resources/drafts.d.ts.map +1 -1
- package/dist/resources/drafts.js +12 -65
- package/dist/resources/files.d.ts +4 -4
- package/dist/resources/files.d.ts.map +1 -1
- package/dist/resources/files.js +3 -12
- package/dist/resources/generations.d.ts +16 -16
- package/dist/resources/generations.d.ts.map +1 -1
- package/dist/resources/generations.js +23 -47
- package/dist/resources/organization.d.ts +4 -4
- package/dist/resources/organization.d.ts.map +1 -1
- package/dist/resources/organization.js +3 -10
- package/dist/resources/{generate.d.ts → packages.d.ts} +16 -16
- package/dist/resources/packages.d.ts.map +1 -0
- package/dist/resources/{generate.js → packages.js} +13 -29
- package/dist/resources/projects.d.ts +50 -50
- package/dist/resources/projects.d.ts.map +1 -1
- package/dist/resources/projects.js +60 -116
- package/dist/resources/releases.d.ts +22 -17
- package/dist/resources/releases.d.ts.map +1 -1
- package/dist/resources/releases.js +19 -40
- package/dist/resources/spec-revisions.d.ts +16 -7
- package/dist/resources/spec-revisions.d.ts.map +1 -1
- package/dist/resources/spec-revisions.js +7 -29
- package/dist/resources/specs.d.ts +7 -7
- package/dist/resources/specs.d.ts.map +1 -1
- package/dist/resources/specs.js +6 -34
- package/dist/resources/targets.d.ts +49 -49
- package/dist/resources/targets.d.ts.map +1 -1
- package/dist/resources/targets.js +59 -115
- package/dist/schemas.d.ts.map +1 -1
- package/dist/schemas.js +83 -81
- package/dist/search.d.ts +54 -0
- package/dist/search.d.ts.map +1 -0
- package/dist/search.js +421 -0
- package/dist/table.d.ts +28 -0
- package/dist/table.d.ts.map +1 -0
- package/dist/table.js +167 -0
- package/dist/type-docs.d.ts +61 -0
- package/dist/type-docs.d.ts.map +1 -0
- package/dist/type-docs.js +174 -0
- package/dist/types.d.ts +499 -339
- package/dist/types.d.ts.map +1 -1
- package/dist/types.js +18 -18
- package/package.json +5 -2
- package/src/arguments.ts +254 -0
- package/src/cli-agent.ts +351 -46
- package/src/cli.ts +753 -266
- package/src/core/http.ts +457 -58
- package/src/core/pagination.ts +129 -18
- package/src/credential-storage.ts +16 -6
- package/src/dates.ts +1 -1
- package/src/errors.ts +46 -115
- package/src/fields.ts +167 -0
- package/src/index.ts +45 -28
- package/src/named-credentials.ts +66 -1
- package/src/oauth-login.ts +36 -21
- package/src/oauth-request.ts +32 -6
- package/src/oauth-session.ts +37 -19
- package/src/ops.ts +146 -45
- package/src/polling-login.ts +24 -11
- package/src/resources/api-keys.ts +34 -48
- package/src/resources/deliveries.ts +213 -32
- package/src/resources/drafts.ts +62 -109
- package/src/resources/files.ts +19 -20
- package/src/resources/generations.ts +61 -79
- package/src/resources/organization.ts +11 -16
- package/src/resources/{generate.ts → packages.ts} +43 -51
- package/src/resources/projects.ts +145 -200
- package/src/resources/releases.ts +50 -67
- package/src/resources/spec-revisions.ts +40 -49
- package/src/resources/specs.ts +39 -59
- package/src/resources/targets.ts +144 -194
- package/src/schemas.ts +83 -81
- package/src/search.ts +434 -0
- package/src/table.ts +167 -0
- package/src/type-docs.ts +205 -0
- package/src/types.ts +538 -357
- package/dist/console-login-check.d.ts +0 -21
- package/dist/console-login-check.d.ts.map +0 -1
- package/dist/console-login-check.js +0 -107
- package/dist/console-login-contract.d.ts +0 -45
- package/dist/console-login-contract.d.ts.map +0 -1
- package/dist/console-login-contract.js +0 -40
- package/dist/resources/generate.d.ts.map +0 -1
- package/dist/resources/publications.d.ts +0 -47
- package/dist/resources/publications.d.ts.map +0 -1
- package/dist/resources/publications.js +0 -70
- package/src/console-login-check.ts +0 -88
- package/src/console-login-contract.ts +0 -65
- package/src/resources/publications.ts +0 -140
package/src/resources/targets.ts
CHANGED
|
@@ -1,28 +1,29 @@
|
|
|
1
|
-
//
|
|
2
|
-
// Generated by
|
|
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
|
-
|
|
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
|
-
*
|
|
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
|
-
*
|
|
121
|
-
*
|
|
74
|
+
* List Targets
|
|
75
|
+
*
|
|
76
|
+
* Auto-paginates: `for await (const item of …)` walks every page.
|
|
77
|
+
* `GET /targets`
|
|
122
78
|
*/
|
|
123
|
-
|
|
124
|
-
return this._core
|
|
79
|
+
list(params?: TargetsListParams, options?: RequestOptions): PagePromise<TargetRead, TargetsListError> {
|
|
80
|
+
return paginate<TargetRead, TargetsListError>(this._core, {
|
|
125
81
|
method: "GET",
|
|
126
|
-
path:
|
|
82
|
+
path: "/targets",
|
|
127
83
|
security: [{"apiKey":[]}],
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
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.
|
|
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
|
-
*
|
|
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
|
|
153
|
-
|
|
154
|
-
|
|
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.
|
|
112
|
+
schemaKey: "targets.get",
|
|
176
113
|
options,
|
|
177
114
|
});
|
|
178
115
|
}
|
|
179
116
|
|
|
180
117
|
/**
|
|
181
|
-
* Update a Target
|
|
118
|
+
* Update a Target
|
|
182
119
|
*
|
|
183
|
-
* Omitted fields keep their current values. Supplied config
|
|
184
|
-
*
|
|
185
|
-
* With Project auto_generate enabled, changing Target config
|
|
186
|
-
*
|
|
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
|
-
*
|
|
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
|
-
|
|
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
|
-
|
|
|
301
|
-
|
|
|
302
|
-
|
|
|
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
|
-
|
|
|
339
|
-
|
|
|
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
|
|
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 `
|
|
355
|
-
export type
|
|
356
|
-
| BadRequestError
|
|
357
|
-
| UnauthorizedError
|
|
358
|
-
|
|
|
359
|
-
|
|
|
360
|
-
|
|
|
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
|
-
|
|
|
363
|
-
|
|
|
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
|
|
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 `
|
|
379
|
-
export type
|
|
380
|
-
| BadRequestError
|
|
381
|
-
| UnauthorizedError
|
|
382
|
-
|
|
|
383
|
-
|
|
|
384
|
-
|
|
|
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
|
-
|
|
|
388
|
-
|
|
|
389
|
-
|
|
|
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
|
-
|
|
|
415
|
-
|
|
|
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
|