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