sandbox0 0.1.13 → 0.2.1
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/dist/apispec/src/apis/FilesApi.d.ts +96 -0
- package/dist/apispec/src/apis/FilesApi.d.ts.map +1 -1
- package/dist/apispec/src/apis/FilesApi.js +283 -0
- package/dist/apispec/src/models/ExecAction.d.ts +33 -0
- package/dist/apispec/src/models/ExecAction.d.ts.map +1 -0
- package/dist/apispec/src/models/ExecAction.js +41 -0
- package/dist/apispec/src/models/GRPCAction.d.ts +39 -0
- package/dist/apispec/src/models/GRPCAction.d.ts.map +1 -0
- package/dist/apispec/src/models/GRPCAction.js +45 -0
- package/dist/apispec/src/models/HTTPGetAction.d.ts +59 -0
- package/dist/apispec/src/models/HTTPGetAction.d.ts.map +1 -0
- package/dist/apispec/src/models/HTTPGetAction.js +53 -0
- package/dist/apispec/src/models/HTTPHeader.d.ts +39 -0
- package/dist/apispec/src/models/HTTPHeader.d.ts.map +1 -0
- package/dist/apispec/src/models/HTTPHeader.js +47 -0
- package/dist/apispec/src/models/Probe.d.ts +91 -0
- package/dist/apispec/src/models/Probe.d.ts.map +1 -0
- package/dist/apispec/src/models/Probe.js +63 -0
- package/dist/apispec/src/models/ProbePort.d.ts +22 -0
- package/dist/apispec/src/models/ProbePort.d.ts.map +1 -0
- package/dist/apispec/src/models/ProbePort.js +43 -0
- package/dist/apispec/src/models/SandboxTemplateSpec.d.ts +3 -2
- package/dist/apispec/src/models/SandboxTemplateSpec.d.ts.map +1 -1
- package/dist/apispec/src/models/SandboxTemplateSpec.js +3 -2
- package/dist/apispec/src/models/SidecarContainerSpec.d.ts +91 -0
- package/dist/apispec/src/models/SidecarContainerSpec.d.ts.map +1 -0
- package/dist/apispec/src/models/SidecarContainerSpec.js +67 -0
- package/dist/apispec/src/models/TCPSocketAction.d.ts +40 -0
- package/dist/apispec/src/models/TCPSocketAction.d.ts.map +1 -0
- package/dist/apispec/src/models/TCPSocketAction.js +46 -0
- package/dist/apispec/src/models/index.d.ts +8 -0
- package/dist/apispec/src/models/index.d.ts.map +1 -1
- package/dist/apispec/src/models/index.js +8 -0
- package/dist/resources/volumes.d.ts +10 -1
- package/dist/resources/volumes.d.ts.map +1 -1
- package/dist/resources/volumes.js +136 -0
- package/package.json +1 -1
|
@@ -41,6 +41,36 @@ export interface ApiV1SandboxesIdFilesStatGetRequest {
|
|
|
41
41
|
export interface ApiV1SandboxesIdFilesWatchGetRequest {
|
|
42
42
|
id: string;
|
|
43
43
|
}
|
|
44
|
+
export interface ApiV1SandboxvolumesIdFilesDeleteRequest {
|
|
45
|
+
id: string;
|
|
46
|
+
path: string;
|
|
47
|
+
}
|
|
48
|
+
export interface ApiV1SandboxvolumesIdFilesGetRequest {
|
|
49
|
+
id: string;
|
|
50
|
+
path: string;
|
|
51
|
+
}
|
|
52
|
+
export interface ApiV1SandboxvolumesIdFilesListGetRequest {
|
|
53
|
+
id: string;
|
|
54
|
+
path: string;
|
|
55
|
+
}
|
|
56
|
+
export interface ApiV1SandboxvolumesIdFilesMovePostRequest {
|
|
57
|
+
id: string;
|
|
58
|
+
moveFileRequest: MoveFileRequest;
|
|
59
|
+
}
|
|
60
|
+
export interface ApiV1SandboxvolumesIdFilesPostRequest {
|
|
61
|
+
id: string;
|
|
62
|
+
path: string;
|
|
63
|
+
mkdir?: boolean;
|
|
64
|
+
recursive?: boolean;
|
|
65
|
+
body?: Blob;
|
|
66
|
+
}
|
|
67
|
+
export interface ApiV1SandboxvolumesIdFilesStatGetRequest {
|
|
68
|
+
id: string;
|
|
69
|
+
path: string;
|
|
70
|
+
}
|
|
71
|
+
export interface ApiV1SandboxvolumesIdFilesWatchGetRequest {
|
|
72
|
+
id: string;
|
|
73
|
+
}
|
|
44
74
|
/**
|
|
45
75
|
*
|
|
46
76
|
*/
|
|
@@ -111,5 +141,71 @@ export declare class FilesApi extends runtime.BaseAPI {
|
|
|
111
141
|
* File watch WebSocket
|
|
112
142
|
*/
|
|
113
143
|
apiV1SandboxesIdFilesWatchGet(requestParameters: ApiV1SandboxesIdFilesWatchGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
144
|
+
/**
|
|
145
|
+
* Delete volume file or directory
|
|
146
|
+
*/
|
|
147
|
+
apiV1SandboxvolumesIdFilesDeleteRaw(requestParameters: ApiV1SandboxvolumesIdFilesDeleteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SuccessDeletedResponse>>;
|
|
148
|
+
/**
|
|
149
|
+
* Delete volume file or directory
|
|
150
|
+
*/
|
|
151
|
+
apiV1SandboxvolumesIdFilesDelete(requestParameters: ApiV1SandboxvolumesIdFilesDeleteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SuccessDeletedResponse>;
|
|
152
|
+
/**
|
|
153
|
+
* Use query params: - path=/tmp/a.txt: target file path relative to the volume root When `Accept` or `Content-Type` is `application/json`, returns a base64 JSON payload.
|
|
154
|
+
* Read volume file content
|
|
155
|
+
*/
|
|
156
|
+
apiV1SandboxvolumesIdFilesGetRaw(requestParameters: ApiV1SandboxvolumesIdFilesGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Blob>>;
|
|
157
|
+
/**
|
|
158
|
+
* Use query params: - path=/tmp/a.txt: target file path relative to the volume root When `Accept` or `Content-Type` is `application/json`, returns a base64 JSON payload.
|
|
159
|
+
* Read volume file content
|
|
160
|
+
*/
|
|
161
|
+
apiV1SandboxvolumesIdFilesGet(requestParameters: ApiV1SandboxvolumesIdFilesGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Blob>;
|
|
162
|
+
/**
|
|
163
|
+
* Use query params: - path=/tmp: target directory path relative to the volume root
|
|
164
|
+
* List volume directory entries
|
|
165
|
+
*/
|
|
166
|
+
apiV1SandboxvolumesIdFilesListGetRaw(requestParameters: ApiV1SandboxvolumesIdFilesListGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SuccessFileListResponse>>;
|
|
167
|
+
/**
|
|
168
|
+
* Use query params: - path=/tmp: target directory path relative to the volume root
|
|
169
|
+
* List volume directory entries
|
|
170
|
+
*/
|
|
171
|
+
apiV1SandboxvolumesIdFilesListGet(requestParameters: ApiV1SandboxvolumesIdFilesListGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SuccessFileListResponse>;
|
|
172
|
+
/**
|
|
173
|
+
* Move a volume file or directory
|
|
174
|
+
*/
|
|
175
|
+
apiV1SandboxvolumesIdFilesMovePostRaw(requestParameters: ApiV1SandboxvolumesIdFilesMovePostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SuccessMovedResponse>>;
|
|
176
|
+
/**
|
|
177
|
+
* Move a volume file or directory
|
|
178
|
+
*/
|
|
179
|
+
apiV1SandboxvolumesIdFilesMovePost(requestParameters: ApiV1SandboxvolumesIdFilesMovePostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SuccessMovedResponse>;
|
|
180
|
+
/**
|
|
181
|
+
* Use `path` query param and `mkdir=true` to create directories, otherwise writes file content.
|
|
182
|
+
* Write volume file or create directory
|
|
183
|
+
*/
|
|
184
|
+
apiV1SandboxvolumesIdFilesPostRaw(requestParameters: ApiV1SandboxvolumesIdFilesPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SuccessWrittenResponse>>;
|
|
185
|
+
/**
|
|
186
|
+
* Use `path` query param and `mkdir=true` to create directories, otherwise writes file content.
|
|
187
|
+
* Write volume file or create directory
|
|
188
|
+
*/
|
|
189
|
+
apiV1SandboxvolumesIdFilesPost(requestParameters: ApiV1SandboxvolumesIdFilesPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SuccessWrittenResponse>;
|
|
190
|
+
/**
|
|
191
|
+
* Use query params: - path=/tmp/a.txt: target file path relative to the volume root
|
|
192
|
+
* Stat a volume file
|
|
193
|
+
*/
|
|
194
|
+
apiV1SandboxvolumesIdFilesStatGetRaw(requestParameters: ApiV1SandboxvolumesIdFilesStatGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SuccessFileStatResponse>>;
|
|
195
|
+
/**
|
|
196
|
+
* Use query params: - path=/tmp/a.txt: target file path relative to the volume root
|
|
197
|
+
* Stat a volume file
|
|
198
|
+
*/
|
|
199
|
+
apiV1SandboxvolumesIdFilesStatGet(requestParameters: ApiV1SandboxvolumesIdFilesStatGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SuccessFileStatResponse>;
|
|
200
|
+
/**
|
|
201
|
+
* Upgrades to WebSocket for volume file watch events. Client messages: - { \"action\": \"subscribe\", \"path\": \"/tmp\", \"recursive\": false } - { \"action\": \"unsubscribe\", \"watch_id\": \"watch-id\" } Server messages: - { \"type\": \"subscribed\", \"watch_id\": \"watch-id\", \"path\": \"/tmp\" } - { \"type\": \"event\", \"watch_id\": \"watch-id\", \"event\": \"write\", \"path\": \"/tmp/a.txt\" } - { \"type\": \"unsubscribed\", \"watch_id\": \"watch-id\" } - { \"type\": \"error\", \"error\": \"message\" }
|
|
202
|
+
* Volume file watch WebSocket
|
|
203
|
+
*/
|
|
204
|
+
apiV1SandboxvolumesIdFilesWatchGetRaw(requestParameters: ApiV1SandboxvolumesIdFilesWatchGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
205
|
+
/**
|
|
206
|
+
* Upgrades to WebSocket for volume file watch events. Client messages: - { \"action\": \"subscribe\", \"path\": \"/tmp\", \"recursive\": false } - { \"action\": \"unsubscribe\", \"watch_id\": \"watch-id\" } Server messages: - { \"type\": \"subscribed\", \"watch_id\": \"watch-id\", \"path\": \"/tmp\" } - { \"type\": \"event\", \"watch_id\": \"watch-id\", \"event\": \"write\", \"path\": \"/tmp/a.txt\" } - { \"type\": \"unsubscribed\", \"watch_id\": \"watch-id\" } - { \"type\": \"error\", \"error\": \"message\" }
|
|
207
|
+
* Volume file watch WebSocket
|
|
208
|
+
*/
|
|
209
|
+
apiV1SandboxvolumesIdFilesWatchGet(requestParameters: ApiV1SandboxvolumesIdFilesWatchGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
114
210
|
}
|
|
115
211
|
//# sourceMappingURL=FilesApi.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FilesApi.d.ts","sourceRoot":"","sources":["../../../../src/apispec/src/apis/FilesApi.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,OAAO,MAAM,YAAY,CAAC;AACtC,OAAO,KAAK,EAEV,eAAe,EAEf,sBAAsB,EACtB,uBAAuB,EACvB,uBAAuB,EACvB,oBAAoB,EACpB,sBAAsB,EACvB,MAAM,iBAAiB,CAAC;AAoBzB,MAAM,WAAW,kCAAkC;IAC/C,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,WAAW,+BAA+B;IAC5C,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,WAAW,mCAAmC;IAChD,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,WAAW,oCAAoC;IACjD,EAAE,EAAE,MAAM,CAAC;IACX,eAAe,EAAE,eAAe,CAAC;CACpC;AAED,MAAM,WAAW,gCAAgC;IAC7C,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,IAAI,CAAC,EAAE,IAAI,CAAC;CACf;AAED,MAAM,WAAW,mCAAmC;IAChD,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;CAChB;AAED,MA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,GAAG,OAAO,CAAC,IAAI,CAAC;CAIpL"}
|
|
@@ -300,4 +300,287 @@ export class FilesApi extends runtime.BaseAPI {
|
|
|
300
300
|
async apiV1SandboxesIdFilesWatchGet(requestParameters, initOverrides) {
|
|
301
301
|
await this.apiV1SandboxesIdFilesWatchGetRaw(requestParameters, initOverrides);
|
|
302
302
|
}
|
|
303
|
+
/**
|
|
304
|
+
* Delete volume file or directory
|
|
305
|
+
*/
|
|
306
|
+
async apiV1SandboxvolumesIdFilesDeleteRaw(requestParameters, initOverrides) {
|
|
307
|
+
if (requestParameters['id'] == null) {
|
|
308
|
+
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling apiV1SandboxvolumesIdFilesDelete().');
|
|
309
|
+
}
|
|
310
|
+
if (requestParameters['path'] == null) {
|
|
311
|
+
throw new runtime.RequiredError('path', 'Required parameter "path" was null or undefined when calling apiV1SandboxvolumesIdFilesDelete().');
|
|
312
|
+
}
|
|
313
|
+
const queryParameters = {};
|
|
314
|
+
if (requestParameters['path'] != null) {
|
|
315
|
+
queryParameters['path'] = requestParameters['path'];
|
|
316
|
+
}
|
|
317
|
+
const headerParameters = {};
|
|
318
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
319
|
+
const token = this.configuration.accessToken;
|
|
320
|
+
const tokenString = await token("bearerAuth", []);
|
|
321
|
+
if (tokenString) {
|
|
322
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
323
|
+
}
|
|
324
|
+
}
|
|
325
|
+
let urlPath = `/api/v1/sandboxvolumes/{id}/files`;
|
|
326
|
+
urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id'])));
|
|
327
|
+
const response = await this.request({
|
|
328
|
+
path: urlPath,
|
|
329
|
+
method: 'DELETE',
|
|
330
|
+
headers: headerParameters,
|
|
331
|
+
query: queryParameters,
|
|
332
|
+
}, initOverrides);
|
|
333
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => SuccessDeletedResponseFromJSON(jsonValue));
|
|
334
|
+
}
|
|
335
|
+
/**
|
|
336
|
+
* Delete volume file or directory
|
|
337
|
+
*/
|
|
338
|
+
async apiV1SandboxvolumesIdFilesDelete(requestParameters, initOverrides) {
|
|
339
|
+
const response = await this.apiV1SandboxvolumesIdFilesDeleteRaw(requestParameters, initOverrides);
|
|
340
|
+
return await response.value();
|
|
341
|
+
}
|
|
342
|
+
/**
|
|
343
|
+
* Use query params: - path=/tmp/a.txt: target file path relative to the volume root When `Accept` or `Content-Type` is `application/json`, returns a base64 JSON payload.
|
|
344
|
+
* Read volume file content
|
|
345
|
+
*/
|
|
346
|
+
async apiV1SandboxvolumesIdFilesGetRaw(requestParameters, initOverrides) {
|
|
347
|
+
if (requestParameters['id'] == null) {
|
|
348
|
+
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling apiV1SandboxvolumesIdFilesGet().');
|
|
349
|
+
}
|
|
350
|
+
if (requestParameters['path'] == null) {
|
|
351
|
+
throw new runtime.RequiredError('path', 'Required parameter "path" was null or undefined when calling apiV1SandboxvolumesIdFilesGet().');
|
|
352
|
+
}
|
|
353
|
+
const queryParameters = {};
|
|
354
|
+
if (requestParameters['path'] != null) {
|
|
355
|
+
queryParameters['path'] = requestParameters['path'];
|
|
356
|
+
}
|
|
357
|
+
const headerParameters = {};
|
|
358
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
359
|
+
const token = this.configuration.accessToken;
|
|
360
|
+
const tokenString = await token("bearerAuth", []);
|
|
361
|
+
if (tokenString) {
|
|
362
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
363
|
+
}
|
|
364
|
+
}
|
|
365
|
+
let urlPath = `/api/v1/sandboxvolumes/{id}/files`;
|
|
366
|
+
urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id'])));
|
|
367
|
+
const response = await this.request({
|
|
368
|
+
path: urlPath,
|
|
369
|
+
method: 'GET',
|
|
370
|
+
headers: headerParameters,
|
|
371
|
+
query: queryParameters,
|
|
372
|
+
}, initOverrides);
|
|
373
|
+
return new runtime.BlobApiResponse(response);
|
|
374
|
+
}
|
|
375
|
+
/**
|
|
376
|
+
* Use query params: - path=/tmp/a.txt: target file path relative to the volume root When `Accept` or `Content-Type` is `application/json`, returns a base64 JSON payload.
|
|
377
|
+
* Read volume file content
|
|
378
|
+
*/
|
|
379
|
+
async apiV1SandboxvolumesIdFilesGet(requestParameters, initOverrides) {
|
|
380
|
+
const response = await this.apiV1SandboxvolumesIdFilesGetRaw(requestParameters, initOverrides);
|
|
381
|
+
return await response.value();
|
|
382
|
+
}
|
|
383
|
+
/**
|
|
384
|
+
* Use query params: - path=/tmp: target directory path relative to the volume root
|
|
385
|
+
* List volume directory entries
|
|
386
|
+
*/
|
|
387
|
+
async apiV1SandboxvolumesIdFilesListGetRaw(requestParameters, initOverrides) {
|
|
388
|
+
if (requestParameters['id'] == null) {
|
|
389
|
+
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling apiV1SandboxvolumesIdFilesListGet().');
|
|
390
|
+
}
|
|
391
|
+
if (requestParameters['path'] == null) {
|
|
392
|
+
throw new runtime.RequiredError('path', 'Required parameter "path" was null or undefined when calling apiV1SandboxvolumesIdFilesListGet().');
|
|
393
|
+
}
|
|
394
|
+
const queryParameters = {};
|
|
395
|
+
if (requestParameters['path'] != null) {
|
|
396
|
+
queryParameters['path'] = requestParameters['path'];
|
|
397
|
+
}
|
|
398
|
+
const headerParameters = {};
|
|
399
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
400
|
+
const token = this.configuration.accessToken;
|
|
401
|
+
const tokenString = await token("bearerAuth", []);
|
|
402
|
+
if (tokenString) {
|
|
403
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
404
|
+
}
|
|
405
|
+
}
|
|
406
|
+
let urlPath = `/api/v1/sandboxvolumes/{id}/files/list`;
|
|
407
|
+
urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id'])));
|
|
408
|
+
const response = await this.request({
|
|
409
|
+
path: urlPath,
|
|
410
|
+
method: 'GET',
|
|
411
|
+
headers: headerParameters,
|
|
412
|
+
query: queryParameters,
|
|
413
|
+
}, initOverrides);
|
|
414
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => SuccessFileListResponseFromJSON(jsonValue));
|
|
415
|
+
}
|
|
416
|
+
/**
|
|
417
|
+
* Use query params: - path=/tmp: target directory path relative to the volume root
|
|
418
|
+
* List volume directory entries
|
|
419
|
+
*/
|
|
420
|
+
async apiV1SandboxvolumesIdFilesListGet(requestParameters, initOverrides) {
|
|
421
|
+
const response = await this.apiV1SandboxvolumesIdFilesListGetRaw(requestParameters, initOverrides);
|
|
422
|
+
return await response.value();
|
|
423
|
+
}
|
|
424
|
+
/**
|
|
425
|
+
* Move a volume file or directory
|
|
426
|
+
*/
|
|
427
|
+
async apiV1SandboxvolumesIdFilesMovePostRaw(requestParameters, initOverrides) {
|
|
428
|
+
if (requestParameters['id'] == null) {
|
|
429
|
+
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling apiV1SandboxvolumesIdFilesMovePost().');
|
|
430
|
+
}
|
|
431
|
+
if (requestParameters['moveFileRequest'] == null) {
|
|
432
|
+
throw new runtime.RequiredError('moveFileRequest', 'Required parameter "moveFileRequest" was null or undefined when calling apiV1SandboxvolumesIdFilesMovePost().');
|
|
433
|
+
}
|
|
434
|
+
const queryParameters = {};
|
|
435
|
+
const headerParameters = {};
|
|
436
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
437
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
438
|
+
const token = this.configuration.accessToken;
|
|
439
|
+
const tokenString = await token("bearerAuth", []);
|
|
440
|
+
if (tokenString) {
|
|
441
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
442
|
+
}
|
|
443
|
+
}
|
|
444
|
+
let urlPath = `/api/v1/sandboxvolumes/{id}/files/move`;
|
|
445
|
+
urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id'])));
|
|
446
|
+
const response = await this.request({
|
|
447
|
+
path: urlPath,
|
|
448
|
+
method: 'POST',
|
|
449
|
+
headers: headerParameters,
|
|
450
|
+
query: queryParameters,
|
|
451
|
+
body: MoveFileRequestToJSON(requestParameters['moveFileRequest']),
|
|
452
|
+
}, initOverrides);
|
|
453
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => SuccessMovedResponseFromJSON(jsonValue));
|
|
454
|
+
}
|
|
455
|
+
/**
|
|
456
|
+
* Move a volume file or directory
|
|
457
|
+
*/
|
|
458
|
+
async apiV1SandboxvolumesIdFilesMovePost(requestParameters, initOverrides) {
|
|
459
|
+
const response = await this.apiV1SandboxvolumesIdFilesMovePostRaw(requestParameters, initOverrides);
|
|
460
|
+
return await response.value();
|
|
461
|
+
}
|
|
462
|
+
/**
|
|
463
|
+
* Use `path` query param and `mkdir=true` to create directories, otherwise writes file content.
|
|
464
|
+
* Write volume file or create directory
|
|
465
|
+
*/
|
|
466
|
+
async apiV1SandboxvolumesIdFilesPostRaw(requestParameters, initOverrides) {
|
|
467
|
+
if (requestParameters['id'] == null) {
|
|
468
|
+
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling apiV1SandboxvolumesIdFilesPost().');
|
|
469
|
+
}
|
|
470
|
+
if (requestParameters['path'] == null) {
|
|
471
|
+
throw new runtime.RequiredError('path', 'Required parameter "path" was null or undefined when calling apiV1SandboxvolumesIdFilesPost().');
|
|
472
|
+
}
|
|
473
|
+
const queryParameters = {};
|
|
474
|
+
if (requestParameters['path'] != null) {
|
|
475
|
+
queryParameters['path'] = requestParameters['path'];
|
|
476
|
+
}
|
|
477
|
+
if (requestParameters['mkdir'] != null) {
|
|
478
|
+
queryParameters['mkdir'] = requestParameters['mkdir'];
|
|
479
|
+
}
|
|
480
|
+
if (requestParameters['recursive'] != null) {
|
|
481
|
+
queryParameters['recursive'] = requestParameters['recursive'];
|
|
482
|
+
}
|
|
483
|
+
const headerParameters = {};
|
|
484
|
+
headerParameters['Content-Type'] = 'application/octet-stream';
|
|
485
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
486
|
+
const token = this.configuration.accessToken;
|
|
487
|
+
const tokenString = await token("bearerAuth", []);
|
|
488
|
+
if (tokenString) {
|
|
489
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
490
|
+
}
|
|
491
|
+
}
|
|
492
|
+
let urlPath = `/api/v1/sandboxvolumes/{id}/files`;
|
|
493
|
+
urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id'])));
|
|
494
|
+
const response = await this.request({
|
|
495
|
+
path: urlPath,
|
|
496
|
+
method: 'POST',
|
|
497
|
+
headers: headerParameters,
|
|
498
|
+
query: queryParameters,
|
|
499
|
+
body: requestParameters['body'],
|
|
500
|
+
}, initOverrides);
|
|
501
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => SuccessWrittenResponseFromJSON(jsonValue));
|
|
502
|
+
}
|
|
503
|
+
/**
|
|
504
|
+
* Use `path` query param and `mkdir=true` to create directories, otherwise writes file content.
|
|
505
|
+
* Write volume file or create directory
|
|
506
|
+
*/
|
|
507
|
+
async apiV1SandboxvolumesIdFilesPost(requestParameters, initOverrides) {
|
|
508
|
+
const response = await this.apiV1SandboxvolumesIdFilesPostRaw(requestParameters, initOverrides);
|
|
509
|
+
return await response.value();
|
|
510
|
+
}
|
|
511
|
+
/**
|
|
512
|
+
* Use query params: - path=/tmp/a.txt: target file path relative to the volume root
|
|
513
|
+
* Stat a volume file
|
|
514
|
+
*/
|
|
515
|
+
async apiV1SandboxvolumesIdFilesStatGetRaw(requestParameters, initOverrides) {
|
|
516
|
+
if (requestParameters['id'] == null) {
|
|
517
|
+
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling apiV1SandboxvolumesIdFilesStatGet().');
|
|
518
|
+
}
|
|
519
|
+
if (requestParameters['path'] == null) {
|
|
520
|
+
throw new runtime.RequiredError('path', 'Required parameter "path" was null or undefined when calling apiV1SandboxvolumesIdFilesStatGet().');
|
|
521
|
+
}
|
|
522
|
+
const queryParameters = {};
|
|
523
|
+
if (requestParameters['path'] != null) {
|
|
524
|
+
queryParameters['path'] = requestParameters['path'];
|
|
525
|
+
}
|
|
526
|
+
const headerParameters = {};
|
|
527
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
528
|
+
const token = this.configuration.accessToken;
|
|
529
|
+
const tokenString = await token("bearerAuth", []);
|
|
530
|
+
if (tokenString) {
|
|
531
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
532
|
+
}
|
|
533
|
+
}
|
|
534
|
+
let urlPath = `/api/v1/sandboxvolumes/{id}/files/stat`;
|
|
535
|
+
urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id'])));
|
|
536
|
+
const response = await this.request({
|
|
537
|
+
path: urlPath,
|
|
538
|
+
method: 'GET',
|
|
539
|
+
headers: headerParameters,
|
|
540
|
+
query: queryParameters,
|
|
541
|
+
}, initOverrides);
|
|
542
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => SuccessFileStatResponseFromJSON(jsonValue));
|
|
543
|
+
}
|
|
544
|
+
/**
|
|
545
|
+
* Use query params: - path=/tmp/a.txt: target file path relative to the volume root
|
|
546
|
+
* Stat a volume file
|
|
547
|
+
*/
|
|
548
|
+
async apiV1SandboxvolumesIdFilesStatGet(requestParameters, initOverrides) {
|
|
549
|
+
const response = await this.apiV1SandboxvolumesIdFilesStatGetRaw(requestParameters, initOverrides);
|
|
550
|
+
return await response.value();
|
|
551
|
+
}
|
|
552
|
+
/**
|
|
553
|
+
* Upgrades to WebSocket for volume file watch events. Client messages: - { \"action\": \"subscribe\", \"path\": \"/tmp\", \"recursive\": false } - { \"action\": \"unsubscribe\", \"watch_id\": \"watch-id\" } Server messages: - { \"type\": \"subscribed\", \"watch_id\": \"watch-id\", \"path\": \"/tmp\" } - { \"type\": \"event\", \"watch_id\": \"watch-id\", \"event\": \"write\", \"path\": \"/tmp/a.txt\" } - { \"type\": \"unsubscribed\", \"watch_id\": \"watch-id\" } - { \"type\": \"error\", \"error\": \"message\" }
|
|
554
|
+
* Volume file watch WebSocket
|
|
555
|
+
*/
|
|
556
|
+
async apiV1SandboxvolumesIdFilesWatchGetRaw(requestParameters, initOverrides) {
|
|
557
|
+
if (requestParameters['id'] == null) {
|
|
558
|
+
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling apiV1SandboxvolumesIdFilesWatchGet().');
|
|
559
|
+
}
|
|
560
|
+
const queryParameters = {};
|
|
561
|
+
const headerParameters = {};
|
|
562
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
563
|
+
const token = this.configuration.accessToken;
|
|
564
|
+
const tokenString = await token("bearerAuth", []);
|
|
565
|
+
if (tokenString) {
|
|
566
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
567
|
+
}
|
|
568
|
+
}
|
|
569
|
+
let urlPath = `/api/v1/sandboxvolumes/{id}/files/watch`;
|
|
570
|
+
urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id'])));
|
|
571
|
+
const response = await this.request({
|
|
572
|
+
path: urlPath,
|
|
573
|
+
method: 'GET',
|
|
574
|
+
headers: headerParameters,
|
|
575
|
+
query: queryParameters,
|
|
576
|
+
}, initOverrides);
|
|
577
|
+
return new runtime.VoidApiResponse(response);
|
|
578
|
+
}
|
|
579
|
+
/**
|
|
580
|
+
* Upgrades to WebSocket for volume file watch events. Client messages: - { \"action\": \"subscribe\", \"path\": \"/tmp\", \"recursive\": false } - { \"action\": \"unsubscribe\", \"watch_id\": \"watch-id\" } Server messages: - { \"type\": \"subscribed\", \"watch_id\": \"watch-id\", \"path\": \"/tmp\" } - { \"type\": \"event\", \"watch_id\": \"watch-id\", \"event\": \"write\", \"path\": \"/tmp/a.txt\" } - { \"type\": \"unsubscribed\", \"watch_id\": \"watch-id\" } - { \"type\": \"error\", \"error\": \"message\" }
|
|
581
|
+
* Volume file watch WebSocket
|
|
582
|
+
*/
|
|
583
|
+
async apiV1SandboxvolumesIdFilesWatchGet(requestParameters, initOverrides) {
|
|
584
|
+
await this.apiV1SandboxvolumesIdFilesWatchGetRaw(requestParameters, initOverrides);
|
|
585
|
+
}
|
|
303
586
|
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Sandbox0 API
|
|
3
|
+
* Public HTTP APIs exposed by Sandbox0 regional gateways and the global gateway.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 0.1.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface ExecAction
|
|
16
|
+
*/
|
|
17
|
+
export interface ExecAction {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {Array<string>}
|
|
21
|
+
* @memberof ExecAction
|
|
22
|
+
*/
|
|
23
|
+
command?: Array<string>;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Check if a given object implements the ExecAction interface.
|
|
27
|
+
*/
|
|
28
|
+
export declare function instanceOfExecAction(value: object): value is ExecAction;
|
|
29
|
+
export declare function ExecActionFromJSON(json: any): ExecAction;
|
|
30
|
+
export declare function ExecActionFromJSONTyped(json: any, ignoreDiscriminator: boolean): ExecAction;
|
|
31
|
+
export declare function ExecActionToJSON(json: any): ExecAction;
|
|
32
|
+
export declare function ExecActionToJSONTyped(value?: ExecAction | null, ignoreDiscriminator?: boolean): any;
|
|
33
|
+
//# sourceMappingURL=ExecAction.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ExecAction.d.ts","sourceRoot":"","sources":["../../../../src/apispec/src/models/ExecAction.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH;;;;GAIG;AACH,MAAM,WAAW,UAAU;IACvB;;;;OAIG;IACH,OAAO,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;CAC3B;AAED;;GAEG;AACH,wBAAgB,oBAAoB,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,UAAU,CAEvE;AAED,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,GAAG,GAAG,UAAU,CAExD;AAED,wBAAgB,uBAAuB,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,UAAU,CAQ3F;AAED,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,GAAG,GAAG,UAAU,CAEtD;AAED,wBAAgB,qBAAqB,CAAC,KAAK,CAAC,EAAE,UAAU,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAS1G"}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Sandbox0 API
|
|
5
|
+
* Public HTTP APIs exposed by Sandbox0 regional gateways and the global gateway.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 0.1.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
/**
|
|
15
|
+
* Check if a given object implements the ExecAction interface.
|
|
16
|
+
*/
|
|
17
|
+
export function instanceOfExecAction(value) {
|
|
18
|
+
return true;
|
|
19
|
+
}
|
|
20
|
+
export function ExecActionFromJSON(json) {
|
|
21
|
+
return ExecActionFromJSONTyped(json, false);
|
|
22
|
+
}
|
|
23
|
+
export function ExecActionFromJSONTyped(json, ignoreDiscriminator) {
|
|
24
|
+
if (json == null) {
|
|
25
|
+
return json;
|
|
26
|
+
}
|
|
27
|
+
return {
|
|
28
|
+
'command': json['command'] == null ? undefined : json['command'],
|
|
29
|
+
};
|
|
30
|
+
}
|
|
31
|
+
export function ExecActionToJSON(json) {
|
|
32
|
+
return ExecActionToJSONTyped(json, false);
|
|
33
|
+
}
|
|
34
|
+
export function ExecActionToJSONTyped(value, ignoreDiscriminator = false) {
|
|
35
|
+
if (value == null) {
|
|
36
|
+
return value;
|
|
37
|
+
}
|
|
38
|
+
return {
|
|
39
|
+
'command': value['command'],
|
|
40
|
+
};
|
|
41
|
+
}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Sandbox0 API
|
|
3
|
+
* Public HTTP APIs exposed by Sandbox0 regional gateways and the global gateway.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 0.1.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface GRPCAction
|
|
16
|
+
*/
|
|
17
|
+
export interface GRPCAction {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {number}
|
|
21
|
+
* @memberof GRPCAction
|
|
22
|
+
*/
|
|
23
|
+
port: number;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof GRPCAction
|
|
28
|
+
*/
|
|
29
|
+
service?: string;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Check if a given object implements the GRPCAction interface.
|
|
33
|
+
*/
|
|
34
|
+
export declare function instanceOfGRPCAction(value: object): value is GRPCAction;
|
|
35
|
+
export declare function GRPCActionFromJSON(json: any): GRPCAction;
|
|
36
|
+
export declare function GRPCActionFromJSONTyped(json: any, ignoreDiscriminator: boolean): GRPCAction;
|
|
37
|
+
export declare function GRPCActionToJSON(json: any): GRPCAction;
|
|
38
|
+
export declare function GRPCActionToJSONTyped(value?: GRPCAction | null, ignoreDiscriminator?: boolean): any;
|
|
39
|
+
//# sourceMappingURL=GRPCAction.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GRPCAction.d.ts","sourceRoot":"","sources":["../../../../src/apispec/src/models/GRPCAction.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH;;;;GAIG;AACH,MAAM,WAAW,UAAU;IACvB;;;;OAIG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;;;OAIG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;CACpB;AAED;;GAEG;AACH,wBAAgB,oBAAoB,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,UAAU,CAGvE;AAED,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,GAAG,GAAG,UAAU,CAExD;AAED,wBAAgB,uBAAuB,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,UAAU,CAS3F;AAED,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,GAAG,GAAG,UAAU,CAEtD;AAED,wBAAgB,qBAAqB,CAAC,KAAK,CAAC,EAAE,UAAU,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAU1G"}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Sandbox0 API
|
|
5
|
+
* Public HTTP APIs exposed by Sandbox0 regional gateways and the global gateway.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 0.1.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
/**
|
|
15
|
+
* Check if a given object implements the GRPCAction interface.
|
|
16
|
+
*/
|
|
17
|
+
export function instanceOfGRPCAction(value) {
|
|
18
|
+
if (!('port' in value) || value['port'] === undefined)
|
|
19
|
+
return false;
|
|
20
|
+
return true;
|
|
21
|
+
}
|
|
22
|
+
export function GRPCActionFromJSON(json) {
|
|
23
|
+
return GRPCActionFromJSONTyped(json, false);
|
|
24
|
+
}
|
|
25
|
+
export function GRPCActionFromJSONTyped(json, ignoreDiscriminator) {
|
|
26
|
+
if (json == null) {
|
|
27
|
+
return json;
|
|
28
|
+
}
|
|
29
|
+
return {
|
|
30
|
+
'port': json['port'],
|
|
31
|
+
'service': json['service'] == null ? undefined : json['service'],
|
|
32
|
+
};
|
|
33
|
+
}
|
|
34
|
+
export function GRPCActionToJSON(json) {
|
|
35
|
+
return GRPCActionToJSONTyped(json, false);
|
|
36
|
+
}
|
|
37
|
+
export function GRPCActionToJSONTyped(value, ignoreDiscriminator = false) {
|
|
38
|
+
if (value == null) {
|
|
39
|
+
return value;
|
|
40
|
+
}
|
|
41
|
+
return {
|
|
42
|
+
'port': value['port'],
|
|
43
|
+
'service': value['service'],
|
|
44
|
+
};
|
|
45
|
+
}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Sandbox0 API
|
|
3
|
+
* Public HTTP APIs exposed by Sandbox0 regional gateways and the global gateway.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 0.1.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import type { ProbePort } from './ProbePort.js';
|
|
13
|
+
import type { HTTPHeader } from './HTTPHeader.js';
|
|
14
|
+
/**
|
|
15
|
+
*
|
|
16
|
+
* @export
|
|
17
|
+
* @interface HTTPGetAction
|
|
18
|
+
*/
|
|
19
|
+
export interface HTTPGetAction {
|
|
20
|
+
/**
|
|
21
|
+
*
|
|
22
|
+
* @type {string}
|
|
23
|
+
* @memberof HTTPGetAction
|
|
24
|
+
*/
|
|
25
|
+
path?: string;
|
|
26
|
+
/**
|
|
27
|
+
*
|
|
28
|
+
* @type {ProbePort}
|
|
29
|
+
* @memberof HTTPGetAction
|
|
30
|
+
*/
|
|
31
|
+
port: ProbePort;
|
|
32
|
+
/**
|
|
33
|
+
*
|
|
34
|
+
* @type {string}
|
|
35
|
+
* @memberof HTTPGetAction
|
|
36
|
+
*/
|
|
37
|
+
host?: string;
|
|
38
|
+
/**
|
|
39
|
+
*
|
|
40
|
+
* @type {string}
|
|
41
|
+
* @memberof HTTPGetAction
|
|
42
|
+
*/
|
|
43
|
+
scheme?: string;
|
|
44
|
+
/**
|
|
45
|
+
*
|
|
46
|
+
* @type {Array<HTTPHeader>}
|
|
47
|
+
* @memberof HTTPGetAction
|
|
48
|
+
*/
|
|
49
|
+
httpHeaders?: Array<HTTPHeader>;
|
|
50
|
+
}
|
|
51
|
+
/**
|
|
52
|
+
* Check if a given object implements the HTTPGetAction interface.
|
|
53
|
+
*/
|
|
54
|
+
export declare function instanceOfHTTPGetAction(value: object): value is HTTPGetAction;
|
|
55
|
+
export declare function HTTPGetActionFromJSON(json: any): HTTPGetAction;
|
|
56
|
+
export declare function HTTPGetActionFromJSONTyped(json: any, ignoreDiscriminator: boolean): HTTPGetAction;
|
|
57
|
+
export declare function HTTPGetActionToJSON(json: any): HTTPGetAction;
|
|
58
|
+
export declare function HTTPGetActionToJSONTyped(value?: HTTPGetAction | null, ignoreDiscriminator?: boolean): any;
|
|
59
|
+
//# sourceMappingURL=HTTPGetAction.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"HTTPGetAction.d.ts","sourceRoot":"","sources":["../../../../src/apispec/src/models/HTTPGetAction.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAO7C,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAQ/C;;;;GAIG;AACH,MAAM,WAAW,aAAa;IAC1B;;;;OAIG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;;;OAIG;IACH,IAAI,EAAE,SAAS,CAAC;IAChB;;;;OAIG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;;;OAIG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;;;OAIG;IACH,WAAW,CAAC,EAAE,KAAK,CAAC,UAAU,CAAC,CAAC;CACnC;AAED;;GAEG;AACH,wBAAgB,uBAAuB,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,aAAa,CAG7E;AAED,wBAAgB,qBAAqB,CAAC,IAAI,EAAE,GAAG,GAAG,aAAa,CAE9D;AAED,wBAAgB,0BAA0B,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,aAAa,CAYjG;AAED,wBAAgB,mBAAmB,CAAC,IAAI,EAAE,GAAG,GAAG,aAAa,CAE5D;AAED,wBAAgB,wBAAwB,CAAC,KAAK,CAAC,EAAE,aAAa,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAahH"}
|