@leonardo-ai/sdk 4.0.2 → 4.2.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/.speakeasy/gen.lock +8 -5
- package/README.md +0 -1
- package/hooks/hooks.d.ts +21 -0
- package/hooks/hooks.d.ts.map +1 -0
- package/hooks/hooks.js +57 -0
- package/hooks/hooks.js.map +1 -0
- package/hooks/index.d.ts +3 -0
- package/hooks/index.d.ts.map +1 -0
- package/hooks/index.js +22 -0
- package/hooks/index.js.map +1 -0
- package/hooks/registration.d.ts +3 -0
- package/hooks/registration.d.ts.map +1 -0
- package/hooks/registration.js +16 -0
- package/hooks/registration.js.map +1 -0
- package/hooks/types.d.ts +53 -0
- package/hooks/types.d.ts.map +1 -0
- package/hooks/types.js +6 -0
- package/hooks/types.js.map +1 -0
- package/lib/config.d.ts +3 -3
- package/lib/config.js +3 -3
- package/lib/retries.js +22 -1
- package/lib/retries.js.map +1 -1
- package/lib/sdks.d.ts +9 -1
- package/lib/sdks.d.ts.map +1 -1
- package/lib/sdks.js +20 -4
- package/lib/sdks.js.map +1 -1
- package/package.json +2 -3
- package/sdk/dataset.d.ts.map +1 -1
- package/sdk/dataset.js +49 -6
- package/sdk/dataset.js.map +1 -1
- package/sdk/element.d.ts.map +1 -1
- package/sdk/element.js +26 -2
- package/sdk/element.js.map +1 -1
- package/sdk/generation.d.ts.map +1 -1
- package/sdk/generation.js +61 -8
- package/sdk/generation.js.map +1 -1
- package/sdk/initimage.d.ts.map +1 -1
- package/sdk/initimage.js +35 -4
- package/sdk/initimage.js.map +1 -1
- package/sdk/model.d.ts.map +1 -1
- package/sdk/model.js +61 -7
- package/sdk/model.js.map +1 -1
- package/sdk/models/errors/sdkerror.d.ts +4 -4
- package/sdk/models/errors/sdkerror.d.ts.map +1 -1
- package/sdk/models/errors/sdkerror.js +5 -8
- package/sdk/models/errors/sdkerror.js.map +1 -1
- package/sdk/sdk.d.ts.map +1 -1
- package/sdk/sdk.js +14 -1
- package/sdk/sdk.js.map +1 -1
- package/sdk/user.d.ts.map +1 -1
- package/sdk/user.js +26 -2
- package/sdk/user.js.map +1 -1
- package/sdk/variation.d.ts.map +1 -1
- package/sdk/variation.js +42 -5
- package/sdk/variation.js.map +1 -1
- package/src/hooks/hooks.ts +85 -0
- package/src/hooks/index.ts +6 -0
- package/src/hooks/registration.ts +14 -0
- package/src/hooks/types.ts +68 -0
- package/src/lib/config.ts +3 -3
- package/src/lib/retries.ts +23 -4
- package/src/lib/sdks.ts +33 -5
- package/src/sdk/dataset.ts +62 -13
- package/src/sdk/element.ts +32 -4
- package/src/sdk/generation.ts +77 -14
- package/src/sdk/initimage.ts +44 -7
- package/src/sdk/model.ts +77 -13
- package/src/sdk/models/errors/sdkerror.ts +13 -15
- package/src/sdk/sdk.ts +17 -2
- package/src/sdk/user.ts +32 -4
- package/src/sdk/variation.ts +53 -7
package/src/sdk/dataset.ts
CHANGED
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
|
+
import { SDKHooks } from "../hooks";
|
|
5
6
|
import { SDK_METADATA, SDKOptions, serverURLFromOptions } from "../lib/config";
|
|
6
7
|
import * as enc$ from "../lib/encodings";
|
|
7
8
|
import { HTTPClient } from "../lib/http";
|
|
@@ -10,15 +11,29 @@ import * as errors from "../sdk/models/errors";
|
|
|
10
11
|
import * as operations from "../sdk/models/operations";
|
|
11
12
|
|
|
12
13
|
export class Dataset extends ClientSDK {
|
|
13
|
-
private readonly options$: SDKOptions;
|
|
14
|
+
private readonly options$: SDKOptions & { hooks?: SDKHooks };
|
|
14
15
|
|
|
15
16
|
constructor(options: SDKOptions = {}) {
|
|
17
|
+
const opt = options as unknown;
|
|
18
|
+
let hooks: SDKHooks;
|
|
19
|
+
if (
|
|
20
|
+
typeof opt === "object" &&
|
|
21
|
+
opt != null &&
|
|
22
|
+
"hooks" in opt &&
|
|
23
|
+
opt.hooks instanceof SDKHooks
|
|
24
|
+
) {
|
|
25
|
+
hooks = opt.hooks;
|
|
26
|
+
} else {
|
|
27
|
+
hooks = new SDKHooks();
|
|
28
|
+
}
|
|
29
|
+
|
|
16
30
|
super({
|
|
17
31
|
client: options.httpClient || new HTTPClient(),
|
|
18
32
|
baseURL: serverURLFromOptions(options),
|
|
33
|
+
hooks,
|
|
19
34
|
});
|
|
20
35
|
|
|
21
|
-
this.options$ = options;
|
|
36
|
+
this.options$ = { ...options, hooks };
|
|
22
37
|
void this.options$;
|
|
23
38
|
}
|
|
24
39
|
|
|
@@ -42,6 +57,8 @@ export class Dataset extends ClientSDK {
|
|
|
42
57
|
|
|
43
58
|
const path$ = this.templateURLComponent("/datasets")();
|
|
44
59
|
|
|
60
|
+
const query$ = "";
|
|
61
|
+
|
|
45
62
|
let security$;
|
|
46
63
|
if (typeof this.options$.bearerAuth === "function") {
|
|
47
64
|
security$ = { bearerAuth: await this.options$.bearerAuth() };
|
|
@@ -52,17 +69,23 @@ export class Dataset extends ClientSDK {
|
|
|
52
69
|
}
|
|
53
70
|
const securitySettings$ = this.resolveGlobalSecurity(security$);
|
|
54
71
|
|
|
55
|
-
const
|
|
72
|
+
const context = { operationID: "createDataset" };
|
|
73
|
+
const doOptions = { context, errorCodes: [] };
|
|
74
|
+
const request = await this.createRequest$(
|
|
56
75
|
{
|
|
76
|
+
context,
|
|
57
77
|
security: securitySettings$,
|
|
58
78
|
method: "POST",
|
|
59
79
|
path: path$,
|
|
60
80
|
headers: headers$,
|
|
81
|
+
query: query$,
|
|
61
82
|
body: body$,
|
|
62
83
|
},
|
|
63
84
|
options
|
|
64
85
|
);
|
|
65
86
|
|
|
87
|
+
const response = await this.do$(request, doOptions);
|
|
88
|
+
|
|
66
89
|
const responseFields$ = {
|
|
67
90
|
ContentType: response.headers.get("content-type") ?? "application/octet-stream",
|
|
68
91
|
StatusCode: response.status,
|
|
@@ -105,9 +128,10 @@ export class Dataset extends ClientSDK {
|
|
|
105
128
|
const pathParams$ = {
|
|
106
129
|
id: enc$.encodeSimple("id", payload$.id, { explode: false, charEncoding: "percent" }),
|
|
107
130
|
};
|
|
108
|
-
|
|
109
131
|
const path$ = this.templateURLComponent("/datasets/{id}")(pathParams$);
|
|
110
132
|
|
|
133
|
+
const query$ = "";
|
|
134
|
+
|
|
111
135
|
let security$;
|
|
112
136
|
if (typeof this.options$.bearerAuth === "function") {
|
|
113
137
|
security$ = { bearerAuth: await this.options$.bearerAuth() };
|
|
@@ -118,17 +142,23 @@ export class Dataset extends ClientSDK {
|
|
|
118
142
|
}
|
|
119
143
|
const securitySettings$ = this.resolveGlobalSecurity(security$);
|
|
120
144
|
|
|
121
|
-
const
|
|
145
|
+
const context = { operationID: "deleteDatasetById" };
|
|
146
|
+
const doOptions = { context, errorCodes: [] };
|
|
147
|
+
const request = await this.createRequest$(
|
|
122
148
|
{
|
|
149
|
+
context,
|
|
123
150
|
security: securitySettings$,
|
|
124
151
|
method: "DELETE",
|
|
125
152
|
path: path$,
|
|
126
153
|
headers: headers$,
|
|
154
|
+
query: query$,
|
|
127
155
|
body: body$,
|
|
128
156
|
},
|
|
129
157
|
options
|
|
130
158
|
);
|
|
131
159
|
|
|
160
|
+
const response = await this.do$(request, doOptions);
|
|
161
|
+
|
|
132
162
|
const responseFields$ = {
|
|
133
163
|
ContentType: response.headers.get("content-type") ?? "application/octet-stream",
|
|
134
164
|
StatusCode: response.status,
|
|
@@ -171,9 +201,10 @@ export class Dataset extends ClientSDK {
|
|
|
171
201
|
const pathParams$ = {
|
|
172
202
|
id: enc$.encodeSimple("id", payload$.id, { explode: false, charEncoding: "percent" }),
|
|
173
203
|
};
|
|
174
|
-
|
|
175
204
|
const path$ = this.templateURLComponent("/datasets/{id}")(pathParams$);
|
|
176
205
|
|
|
206
|
+
const query$ = "";
|
|
207
|
+
|
|
177
208
|
let security$;
|
|
178
209
|
if (typeof this.options$.bearerAuth === "function") {
|
|
179
210
|
security$ = { bearerAuth: await this.options$.bearerAuth() };
|
|
@@ -184,17 +215,23 @@ export class Dataset extends ClientSDK {
|
|
|
184
215
|
}
|
|
185
216
|
const securitySettings$ = this.resolveGlobalSecurity(security$);
|
|
186
217
|
|
|
187
|
-
const
|
|
218
|
+
const context = { operationID: "getDatasetById" };
|
|
219
|
+
const doOptions = { context, errorCodes: [] };
|
|
220
|
+
const request = await this.createRequest$(
|
|
188
221
|
{
|
|
222
|
+
context,
|
|
189
223
|
security: securitySettings$,
|
|
190
224
|
method: "GET",
|
|
191
225
|
path: path$,
|
|
192
226
|
headers: headers$,
|
|
227
|
+
query: query$,
|
|
193
228
|
body: body$,
|
|
194
229
|
},
|
|
195
230
|
options
|
|
196
231
|
);
|
|
197
232
|
|
|
233
|
+
const response = await this.do$(request, doOptions);
|
|
234
|
+
|
|
198
235
|
const responseFields$ = {
|
|
199
236
|
ContentType: response.headers.get("content-type") ?? "application/octet-stream",
|
|
200
237
|
StatusCode: response.status,
|
|
@@ -235,7 +272,6 @@ export class Dataset extends ClientSDK {
|
|
|
235
272
|
headers$.set("Accept", "application/json");
|
|
236
273
|
|
|
237
274
|
const payload$ = operations.UploadDatasetImageRequest$.outboundSchema.parse(input$);
|
|
238
|
-
|
|
239
275
|
const body$ = enc$.encodeJSON("body", payload$.RequestBody, { explode: true });
|
|
240
276
|
|
|
241
277
|
const pathParams$ = {
|
|
@@ -244,9 +280,10 @@ export class Dataset extends ClientSDK {
|
|
|
244
280
|
charEncoding: "percent",
|
|
245
281
|
}),
|
|
246
282
|
};
|
|
247
|
-
|
|
248
283
|
const path$ = this.templateURLComponent("/datasets/{datasetId}/upload")(pathParams$);
|
|
249
284
|
|
|
285
|
+
const query$ = "";
|
|
286
|
+
|
|
250
287
|
let security$;
|
|
251
288
|
if (typeof this.options$.bearerAuth === "function") {
|
|
252
289
|
security$ = { bearerAuth: await this.options$.bearerAuth() };
|
|
@@ -257,17 +294,23 @@ export class Dataset extends ClientSDK {
|
|
|
257
294
|
}
|
|
258
295
|
const securitySettings$ = this.resolveGlobalSecurity(security$);
|
|
259
296
|
|
|
260
|
-
const
|
|
297
|
+
const context = { operationID: "uploadDatasetImage" };
|
|
298
|
+
const doOptions = { context, errorCodes: [] };
|
|
299
|
+
const request = await this.createRequest$(
|
|
261
300
|
{
|
|
301
|
+
context,
|
|
262
302
|
security: securitySettings$,
|
|
263
303
|
method: "POST",
|
|
264
304
|
path: path$,
|
|
265
305
|
headers: headers$,
|
|
306
|
+
query: query$,
|
|
266
307
|
body: body$,
|
|
267
308
|
},
|
|
268
309
|
options
|
|
269
310
|
);
|
|
270
311
|
|
|
312
|
+
const response = await this.do$(request, doOptions);
|
|
313
|
+
|
|
271
314
|
const responseFields$ = {
|
|
272
315
|
ContentType: response.headers.get("content-type") ?? "application/octet-stream",
|
|
273
316
|
StatusCode: response.status,
|
|
@@ -308,7 +351,6 @@ export class Dataset extends ClientSDK {
|
|
|
308
351
|
headers$.set("Accept", "application/json");
|
|
309
352
|
|
|
310
353
|
const payload$ = operations.UploadDatasetImageFromGenRequest$.outboundSchema.parse(input$);
|
|
311
|
-
|
|
312
354
|
const body$ = enc$.encodeJSON("body", payload$.RequestBody, { explode: true });
|
|
313
355
|
|
|
314
356
|
const pathParams$ = {
|
|
@@ -317,9 +359,10 @@ export class Dataset extends ClientSDK {
|
|
|
317
359
|
charEncoding: "percent",
|
|
318
360
|
}),
|
|
319
361
|
};
|
|
320
|
-
|
|
321
362
|
const path$ = this.templateURLComponent("/datasets/{datasetId}/upload/gen")(pathParams$);
|
|
322
363
|
|
|
364
|
+
const query$ = "";
|
|
365
|
+
|
|
323
366
|
let security$;
|
|
324
367
|
if (typeof this.options$.bearerAuth === "function") {
|
|
325
368
|
security$ = { bearerAuth: await this.options$.bearerAuth() };
|
|
@@ -330,17 +373,23 @@ export class Dataset extends ClientSDK {
|
|
|
330
373
|
}
|
|
331
374
|
const securitySettings$ = this.resolveGlobalSecurity(security$);
|
|
332
375
|
|
|
333
|
-
const
|
|
376
|
+
const context = { operationID: "uploadDatasetImageFromGen" };
|
|
377
|
+
const doOptions = { context, errorCodes: [] };
|
|
378
|
+
const request = await this.createRequest$(
|
|
334
379
|
{
|
|
380
|
+
context,
|
|
335
381
|
security: securitySettings$,
|
|
336
382
|
method: "POST",
|
|
337
383
|
path: path$,
|
|
338
384
|
headers: headers$,
|
|
385
|
+
query: query$,
|
|
339
386
|
body: body$,
|
|
340
387
|
},
|
|
341
388
|
options
|
|
342
389
|
);
|
|
343
390
|
|
|
391
|
+
const response = await this.do$(request, doOptions);
|
|
392
|
+
|
|
344
393
|
const responseFields$ = {
|
|
345
394
|
ContentType: response.headers.get("content-type") ?? "application/octet-stream",
|
|
346
395
|
StatusCode: response.status,
|
package/src/sdk/element.ts
CHANGED
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
|
+
import { SDKHooks } from "../hooks";
|
|
5
6
|
import { SDK_METADATA, SDKOptions, serverURLFromOptions } from "../lib/config";
|
|
6
7
|
import { HTTPClient } from "../lib/http";
|
|
7
8
|
import { ClientSDK, RequestOptions } from "../lib/sdks";
|
|
@@ -9,15 +10,29 @@ import * as errors from "../sdk/models/errors";
|
|
|
9
10
|
import * as operations from "../sdk/models/operations";
|
|
10
11
|
|
|
11
12
|
export class Element extends ClientSDK {
|
|
12
|
-
private readonly options$: SDKOptions;
|
|
13
|
+
private readonly options$: SDKOptions & { hooks?: SDKHooks };
|
|
13
14
|
|
|
14
15
|
constructor(options: SDKOptions = {}) {
|
|
16
|
+
const opt = options as unknown;
|
|
17
|
+
let hooks: SDKHooks;
|
|
18
|
+
if (
|
|
19
|
+
typeof opt === "object" &&
|
|
20
|
+
opt != null &&
|
|
21
|
+
"hooks" in opt &&
|
|
22
|
+
opt.hooks instanceof SDKHooks
|
|
23
|
+
) {
|
|
24
|
+
hooks = opt.hooks;
|
|
25
|
+
} else {
|
|
26
|
+
hooks = new SDKHooks();
|
|
27
|
+
}
|
|
28
|
+
|
|
15
29
|
super({
|
|
16
30
|
client: options.httpClient || new HTTPClient(),
|
|
17
31
|
baseURL: serverURLFromOptions(options),
|
|
32
|
+
hooks,
|
|
18
33
|
});
|
|
19
34
|
|
|
20
|
-
this.options$ = options;
|
|
35
|
+
this.options$ = { ...options, hooks };
|
|
21
36
|
void this.options$;
|
|
22
37
|
}
|
|
23
38
|
|
|
@@ -34,6 +49,8 @@ export class Element extends ClientSDK {
|
|
|
34
49
|
|
|
35
50
|
const path$ = this.templateURLComponent("/elements")();
|
|
36
51
|
|
|
52
|
+
const query$ = "";
|
|
53
|
+
|
|
37
54
|
let security$;
|
|
38
55
|
if (typeof this.options$.bearerAuth === "function") {
|
|
39
56
|
security$ = { bearerAuth: await this.options$.bearerAuth() };
|
|
@@ -44,11 +61,22 @@ export class Element extends ClientSDK {
|
|
|
44
61
|
}
|
|
45
62
|
const securitySettings$ = this.resolveGlobalSecurity(security$);
|
|
46
63
|
|
|
47
|
-
const
|
|
48
|
-
|
|
64
|
+
const context = { operationID: "get_/elements" };
|
|
65
|
+
const doOptions = { context, errorCodes: [] };
|
|
66
|
+
const request = await this.createRequest$(
|
|
67
|
+
{
|
|
68
|
+
context,
|
|
69
|
+
security: securitySettings$,
|
|
70
|
+
method: "GET",
|
|
71
|
+
path: path$,
|
|
72
|
+
headers: headers$,
|
|
73
|
+
query: query$,
|
|
74
|
+
},
|
|
49
75
|
options
|
|
50
76
|
);
|
|
51
77
|
|
|
78
|
+
const response = await this.do$(request, doOptions);
|
|
79
|
+
|
|
52
80
|
const responseFields$ = {
|
|
53
81
|
ContentType: response.headers.get("content-type") ?? "application/octet-stream",
|
|
54
82
|
StatusCode: response.status,
|
package/src/sdk/generation.ts
CHANGED
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
|
+
import { SDKHooks } from "../hooks";
|
|
5
6
|
import { SDK_METADATA, SDKOptions, serverURLFromOptions } from "../lib/config";
|
|
6
7
|
import * as enc$ from "../lib/encodings";
|
|
7
8
|
import { HTTPClient } from "../lib/http";
|
|
@@ -10,15 +11,29 @@ import * as errors from "../sdk/models/errors";
|
|
|
10
11
|
import * as operations from "../sdk/models/operations";
|
|
11
12
|
|
|
12
13
|
export class Generation extends ClientSDK {
|
|
13
|
-
private readonly options$: SDKOptions;
|
|
14
|
+
private readonly options$: SDKOptions & { hooks?: SDKHooks };
|
|
14
15
|
|
|
15
16
|
constructor(options: SDKOptions = {}) {
|
|
17
|
+
const opt = options as unknown;
|
|
18
|
+
let hooks: SDKHooks;
|
|
19
|
+
if (
|
|
20
|
+
typeof opt === "object" &&
|
|
21
|
+
opt != null &&
|
|
22
|
+
"hooks" in opt &&
|
|
23
|
+
opt.hooks instanceof SDKHooks
|
|
24
|
+
) {
|
|
25
|
+
hooks = opt.hooks;
|
|
26
|
+
} else {
|
|
27
|
+
hooks = new SDKHooks();
|
|
28
|
+
}
|
|
29
|
+
|
|
16
30
|
super({
|
|
17
31
|
client: options.httpClient || new HTTPClient(),
|
|
18
32
|
baseURL: serverURLFromOptions(options),
|
|
33
|
+
hooks,
|
|
19
34
|
});
|
|
20
35
|
|
|
21
|
-
this.options$ = options;
|
|
36
|
+
this.options$ = { ...options, hooks };
|
|
22
37
|
void this.options$;
|
|
23
38
|
}
|
|
24
39
|
|
|
@@ -42,6 +57,8 @@ export class Generation extends ClientSDK {
|
|
|
42
57
|
|
|
43
58
|
const path$ = this.templateURLComponent("/generations")();
|
|
44
59
|
|
|
60
|
+
const query$ = "";
|
|
61
|
+
|
|
45
62
|
let security$;
|
|
46
63
|
if (typeof this.options$.bearerAuth === "function") {
|
|
47
64
|
security$ = { bearerAuth: await this.options$.bearerAuth() };
|
|
@@ -52,17 +69,23 @@ export class Generation extends ClientSDK {
|
|
|
52
69
|
}
|
|
53
70
|
const securitySettings$ = this.resolveGlobalSecurity(security$);
|
|
54
71
|
|
|
55
|
-
const
|
|
72
|
+
const context = { operationID: "createGeneration" };
|
|
73
|
+
const doOptions = { context, errorCodes: [] };
|
|
74
|
+
const request = await this.createRequest$(
|
|
56
75
|
{
|
|
76
|
+
context,
|
|
57
77
|
security: securitySettings$,
|
|
58
78
|
method: "POST",
|
|
59
79
|
path: path$,
|
|
60
80
|
headers: headers$,
|
|
81
|
+
query: query$,
|
|
61
82
|
body: body$,
|
|
62
83
|
},
|
|
63
84
|
options
|
|
64
85
|
);
|
|
65
86
|
|
|
87
|
+
const response = await this.do$(request, doOptions);
|
|
88
|
+
|
|
66
89
|
const responseFields$ = {
|
|
67
90
|
ContentType: response.headers.get("content-type") ?? "application/octet-stream",
|
|
68
91
|
StatusCode: response.status,
|
|
@@ -105,9 +128,10 @@ export class Generation extends ClientSDK {
|
|
|
105
128
|
const pathParams$ = {
|
|
106
129
|
id: enc$.encodeSimple("id", payload$.id, { explode: false, charEncoding: "percent" }),
|
|
107
130
|
};
|
|
108
|
-
|
|
109
131
|
const path$ = this.templateURLComponent("/generations/{id}")(pathParams$);
|
|
110
132
|
|
|
133
|
+
const query$ = "";
|
|
134
|
+
|
|
111
135
|
let security$;
|
|
112
136
|
if (typeof this.options$.bearerAuth === "function") {
|
|
113
137
|
security$ = { bearerAuth: await this.options$.bearerAuth() };
|
|
@@ -118,17 +142,23 @@ export class Generation extends ClientSDK {
|
|
|
118
142
|
}
|
|
119
143
|
const securitySettings$ = this.resolveGlobalSecurity(security$);
|
|
120
144
|
|
|
121
|
-
const
|
|
145
|
+
const context = { operationID: "deleteGenerationById" };
|
|
146
|
+
const doOptions = { context, errorCodes: [] };
|
|
147
|
+
const request = await this.createRequest$(
|
|
122
148
|
{
|
|
149
|
+
context,
|
|
123
150
|
security: securitySettings$,
|
|
124
151
|
method: "DELETE",
|
|
125
152
|
path: path$,
|
|
126
153
|
headers: headers$,
|
|
154
|
+
query: query$,
|
|
127
155
|
body: body$,
|
|
128
156
|
},
|
|
129
157
|
options
|
|
130
158
|
);
|
|
131
159
|
|
|
160
|
+
const response = await this.do$(request, doOptions);
|
|
161
|
+
|
|
132
162
|
const responseFields$ = {
|
|
133
163
|
ContentType: response.headers.get("content-type") ?? "application/octet-stream",
|
|
134
164
|
StatusCode: response.status,
|
|
@@ -169,15 +199,15 @@ export class Generation extends ClientSDK {
|
|
|
169
199
|
headers$.set("Accept", "application/json");
|
|
170
200
|
|
|
171
201
|
const payload$ = operations.DeleteGenerationsTextureIdRequest$.outboundSchema.parse(input$);
|
|
172
|
-
|
|
173
202
|
const body$ = enc$.encodeJSON("body", payload$.RequestBody, { explode: true });
|
|
174
203
|
|
|
175
204
|
const pathParams$ = {
|
|
176
205
|
id: enc$.encodeSimple("id", payload$.id, { explode: false, charEncoding: "percent" }),
|
|
177
206
|
};
|
|
178
|
-
|
|
179
207
|
const path$ = this.templateURLComponent("/generations-texture/{id}")(pathParams$);
|
|
180
208
|
|
|
209
|
+
const query$ = "";
|
|
210
|
+
|
|
181
211
|
let security$;
|
|
182
212
|
if (typeof this.options$.bearerAuth === "function") {
|
|
183
213
|
security$ = { bearerAuth: await this.options$.bearerAuth() };
|
|
@@ -188,17 +218,23 @@ export class Generation extends ClientSDK {
|
|
|
188
218
|
}
|
|
189
219
|
const securitySettings$ = this.resolveGlobalSecurity(security$);
|
|
190
220
|
|
|
191
|
-
const
|
|
221
|
+
const context = { operationID: "delete_/generations-texture/{id}" };
|
|
222
|
+
const doOptions = { context, errorCodes: [] };
|
|
223
|
+
const request = await this.createRequest$(
|
|
192
224
|
{
|
|
225
|
+
context,
|
|
193
226
|
security: securitySettings$,
|
|
194
227
|
method: "DELETE",
|
|
195
228
|
path: path$,
|
|
196
229
|
headers: headers$,
|
|
230
|
+
query: query$,
|
|
197
231
|
body: body$,
|
|
198
232
|
},
|
|
199
233
|
options
|
|
200
234
|
);
|
|
201
235
|
|
|
236
|
+
const response = await this.do$(request, doOptions);
|
|
237
|
+
|
|
202
238
|
const responseFields$ = {
|
|
203
239
|
ContentType: response.headers.get("content-type") ?? "application/octet-stream",
|
|
204
240
|
StatusCode: response.status,
|
|
@@ -241,9 +277,10 @@ export class Generation extends ClientSDK {
|
|
|
241
277
|
const pathParams$ = {
|
|
242
278
|
id: enc$.encodeSimple("id", payload$.id, { explode: false, charEncoding: "percent" }),
|
|
243
279
|
};
|
|
244
|
-
|
|
245
280
|
const path$ = this.templateURLComponent("/generations/{id}")(pathParams$);
|
|
246
281
|
|
|
282
|
+
const query$ = "";
|
|
283
|
+
|
|
247
284
|
let security$;
|
|
248
285
|
if (typeof this.options$.bearerAuth === "function") {
|
|
249
286
|
security$ = { bearerAuth: await this.options$.bearerAuth() };
|
|
@@ -254,17 +291,23 @@ export class Generation extends ClientSDK {
|
|
|
254
291
|
}
|
|
255
292
|
const securitySettings$ = this.resolveGlobalSecurity(security$);
|
|
256
293
|
|
|
257
|
-
const
|
|
294
|
+
const context = { operationID: "getGenerationById" };
|
|
295
|
+
const doOptions = { context, errorCodes: [] };
|
|
296
|
+
const request = await this.createRequest$(
|
|
258
297
|
{
|
|
298
|
+
context,
|
|
259
299
|
security: securitySettings$,
|
|
260
300
|
method: "GET",
|
|
261
301
|
path: path$,
|
|
262
302
|
headers: headers$,
|
|
303
|
+
query: query$,
|
|
263
304
|
body: body$,
|
|
264
305
|
},
|
|
265
306
|
options
|
|
266
307
|
);
|
|
267
308
|
|
|
309
|
+
const response = await this.do$(request, doOptions);
|
|
310
|
+
|
|
268
311
|
const responseFields$ = {
|
|
269
312
|
ContentType: response.headers.get("content-type") ?? "application/octet-stream",
|
|
270
313
|
StatusCode: response.status,
|
|
@@ -314,7 +357,6 @@ export class Generation extends ClientSDK {
|
|
|
314
357
|
charEncoding: "percent",
|
|
315
358
|
}),
|
|
316
359
|
};
|
|
317
|
-
|
|
318
360
|
const path$ = this.templateURLComponent("/generations/user/{userId}")(pathParams$);
|
|
319
361
|
|
|
320
362
|
const query$ = [
|
|
@@ -334,8 +376,11 @@ export class Generation extends ClientSDK {
|
|
|
334
376
|
}
|
|
335
377
|
const securitySettings$ = this.resolveGlobalSecurity(security$);
|
|
336
378
|
|
|
337
|
-
const
|
|
379
|
+
const context = { operationID: "getGenerationsByUserId" };
|
|
380
|
+
const doOptions = { context, errorCodes: [] };
|
|
381
|
+
const request = await this.createRequest$(
|
|
338
382
|
{
|
|
383
|
+
context,
|
|
339
384
|
security: securitySettings$,
|
|
340
385
|
method: "GET",
|
|
341
386
|
path: path$,
|
|
@@ -346,6 +391,8 @@ export class Generation extends ClientSDK {
|
|
|
346
391
|
options
|
|
347
392
|
);
|
|
348
393
|
|
|
394
|
+
const response = await this.do$(request, doOptions);
|
|
395
|
+
|
|
349
396
|
const responseFields$ = {
|
|
350
397
|
ContentType: response.headers.get("content-type") ?? "application/octet-stream",
|
|
351
398
|
StatusCode: response.status,
|
|
@@ -388,6 +435,8 @@ export class Generation extends ClientSDK {
|
|
|
388
435
|
|
|
389
436
|
const path$ = this.templateURLComponent("/generations-motion-svd")();
|
|
390
437
|
|
|
438
|
+
const query$ = "";
|
|
439
|
+
|
|
391
440
|
let security$;
|
|
392
441
|
if (typeof this.options$.bearerAuth === "function") {
|
|
393
442
|
security$ = { bearerAuth: await this.options$.bearerAuth() };
|
|
@@ -398,17 +447,23 @@ export class Generation extends ClientSDK {
|
|
|
398
447
|
}
|
|
399
448
|
const securitySettings$ = this.resolveGlobalSecurity(security$);
|
|
400
449
|
|
|
401
|
-
const
|
|
450
|
+
const context = { operationID: "post_/generations-motion-svd" };
|
|
451
|
+
const doOptions = { context, errorCodes: [] };
|
|
452
|
+
const request = await this.createRequest$(
|
|
402
453
|
{
|
|
454
|
+
context,
|
|
403
455
|
security: securitySettings$,
|
|
404
456
|
method: "POST",
|
|
405
457
|
path: path$,
|
|
406
458
|
headers: headers$,
|
|
459
|
+
query: query$,
|
|
407
460
|
body: body$,
|
|
408
461
|
},
|
|
409
462
|
options
|
|
410
463
|
);
|
|
411
464
|
|
|
465
|
+
const response = await this.do$(request, doOptions);
|
|
466
|
+
|
|
412
467
|
const responseFields$ = {
|
|
413
468
|
ContentType: response.headers.get("content-type") ?? "application/octet-stream",
|
|
414
469
|
StatusCode: response.status,
|
|
@@ -451,6 +506,8 @@ export class Generation extends ClientSDK {
|
|
|
451
506
|
|
|
452
507
|
const path$ = this.templateURLComponent("/generations-texture")();
|
|
453
508
|
|
|
509
|
+
const query$ = "";
|
|
510
|
+
|
|
454
511
|
let security$;
|
|
455
512
|
if (typeof this.options$.bearerAuth === "function") {
|
|
456
513
|
security$ = { bearerAuth: await this.options$.bearerAuth() };
|
|
@@ -461,17 +518,23 @@ export class Generation extends ClientSDK {
|
|
|
461
518
|
}
|
|
462
519
|
const securitySettings$ = this.resolveGlobalSecurity(security$);
|
|
463
520
|
|
|
464
|
-
const
|
|
521
|
+
const context = { operationID: "post_/generations-texture" };
|
|
522
|
+
const doOptions = { context, errorCodes: [] };
|
|
523
|
+
const request = await this.createRequest$(
|
|
465
524
|
{
|
|
525
|
+
context,
|
|
466
526
|
security: securitySettings$,
|
|
467
527
|
method: "POST",
|
|
468
528
|
path: path$,
|
|
469
529
|
headers: headers$,
|
|
530
|
+
query: query$,
|
|
470
531
|
body: body$,
|
|
471
532
|
},
|
|
472
533
|
options
|
|
473
534
|
);
|
|
474
535
|
|
|
536
|
+
const response = await this.do$(request, doOptions);
|
|
537
|
+
|
|
475
538
|
const responseFields$ = {
|
|
476
539
|
ContentType: response.headers.get("content-type") ?? "application/octet-stream",
|
|
477
540
|
StatusCode: response.status,
|