@daytonaio/api-client 0.164.0 → 0.165.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@daytonaio/api-client",
3
- "version": "0.164.0",
3
+ "version": "0.165.0",
4
4
  "description": "OpenAPI client for @daytona/api-client",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "repository": {
@@ -13,6 +13,8 @@ import type { Configuration } from '../configuration';
13
13
  import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios';
14
14
  import { type RequestArgs, BaseAPI } from '../base';
15
15
  import type { CreateSandbox } from '../models';
16
+ import type { CreateSandboxSnapshot } from '../models';
17
+ import type { ForkSandbox } from '../models';
16
18
  import type { MetricsResponse } from '../models';
17
19
  import type { Organization } from '../models';
18
20
  import type { PaginatedLogs } from '../models';
@@ -62,6 +64,16 @@ export declare const SandboxApiAxiosParamCreator: (configuration?: Configuration
62
64
  * @throws {RequiredError}
63
65
  */
64
66
  createSandbox: (createSandbox: CreateSandbox, xDaytonaOrganizationID?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
67
+ /**
68
+ *
69
+ * @summary Create a snapshot from a sandbox
70
+ * @param {string} sandboxIdOrName
71
+ * @param {CreateSandboxSnapshot} createSandboxSnapshot
72
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
73
+ * @param {*} [options] Override http request option.
74
+ * @throws {RequiredError}
75
+ */
76
+ createSandboxSnapshot: (sandboxIdOrName: string, createSandboxSnapshot: CreateSandboxSnapshot, xDaytonaOrganizationID?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
65
77
  /**
66
78
  *
67
79
  * @summary Create SSH access for sandbox
@@ -92,6 +104,16 @@ export declare const SandboxApiAxiosParamCreator: (configuration?: Configuration
92
104
  * @throws {RequiredError}
93
105
  */
94
106
  expireSignedPortPreviewUrl: (sandboxIdOrName: string, port: number, token: string, xDaytonaOrganizationID?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
107
+ /**
108
+ *
109
+ * @summary Fork a sandbox
110
+ * @param {string} sandboxIdOrName
111
+ * @param {ForkSandbox} forkSandbox
112
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
113
+ * @param {*} [options] Override http request option.
114
+ * @throws {RequiredError}
115
+ */
116
+ forkSandbox: (sandboxIdOrName: string, forkSandbox: ForkSandbox, xDaytonaOrganizationID?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
95
117
  /**
96
118
  * This endpoint is deprecated. Use `getBuildLogsUrl` instead.
97
119
  * @summary Get build logs
@@ -150,6 +172,25 @@ export declare const SandboxApiAxiosParamCreator: (configuration?: Configuration
150
172
  * @throws {RequiredError}
151
173
  */
152
174
  getSandbox: (sandboxIdOrName: string, xDaytonaOrganizationID?: string, verbose?: boolean, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
175
+ /**
176
+ *
177
+ * @summary Get sandbox fork ancestor chain
178
+ * @param {string} sandboxIdOrName
179
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
180
+ * @param {*} [options] Override http request option.
181
+ * @throws {RequiredError}
182
+ */
183
+ getSandboxAncestors: (sandboxIdOrName: string, xDaytonaOrganizationID?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
184
+ /**
185
+ *
186
+ * @summary Get sandbox fork children
187
+ * @param {string} sandboxIdOrName
188
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
189
+ * @param {boolean} [includeDestroyed]
190
+ * @param {*} [options] Override http request option.
191
+ * @throws {RequiredError}
192
+ */
193
+ getSandboxForks: (sandboxIdOrName: string, xDaytonaOrganizationID?: string, includeDestroyed?: boolean, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
153
194
  /**
154
195
  * Retrieve OTEL logs for a sandbox within a time range
155
196
  * @summary Get sandbox logs
@@ -177,6 +218,15 @@ export declare const SandboxApiAxiosParamCreator: (configuration?: Configuration
177
218
  * @throws {RequiredError}
178
219
  */
179
220
  getSandboxMetrics: (sandboxId: string, from: Date, to: Date, xDaytonaOrganizationID?: string, metricNames?: Array<string>, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
221
+ /**
222
+ *
223
+ * @summary Get sandbox fork parent
224
+ * @param {string} sandboxIdOrName
225
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
226
+ * @param {*} [options] Override http request option.
227
+ * @throws {RequiredError}
228
+ */
229
+ getSandboxParent: (sandboxIdOrName: string, xDaytonaOrganizationID?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
180
230
  /**
181
231
  * Retrieve all spans for a specific trace
182
232
  * @summary Get trace spans
@@ -427,6 +477,16 @@ export declare const SandboxApiFp: (configuration?: Configuration) => {
427
477
  * @throws {RequiredError}
428
478
  */
429
479
  createSandbox(createSandbox: CreateSandbox, xDaytonaOrganizationID?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Sandbox>>;
480
+ /**
481
+ *
482
+ * @summary Create a snapshot from a sandbox
483
+ * @param {string} sandboxIdOrName
484
+ * @param {CreateSandboxSnapshot} createSandboxSnapshot
485
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
486
+ * @param {*} [options] Override http request option.
487
+ * @throws {RequiredError}
488
+ */
489
+ createSandboxSnapshot(sandboxIdOrName: string, createSandboxSnapshot: CreateSandboxSnapshot, xDaytonaOrganizationID?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Sandbox>>;
430
490
  /**
431
491
  *
432
492
  * @summary Create SSH access for sandbox
@@ -457,6 +517,16 @@ export declare const SandboxApiFp: (configuration?: Configuration) => {
457
517
  * @throws {RequiredError}
458
518
  */
459
519
  expireSignedPortPreviewUrl(sandboxIdOrName: string, port: number, token: string, xDaytonaOrganizationID?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
520
+ /**
521
+ *
522
+ * @summary Fork a sandbox
523
+ * @param {string} sandboxIdOrName
524
+ * @param {ForkSandbox} forkSandbox
525
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
526
+ * @param {*} [options] Override http request option.
527
+ * @throws {RequiredError}
528
+ */
529
+ forkSandbox(sandboxIdOrName: string, forkSandbox: ForkSandbox, xDaytonaOrganizationID?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Sandbox>>;
460
530
  /**
461
531
  * This endpoint is deprecated. Use `getBuildLogsUrl` instead.
462
532
  * @summary Get build logs
@@ -515,6 +585,25 @@ export declare const SandboxApiFp: (configuration?: Configuration) => {
515
585
  * @throws {RequiredError}
516
586
  */
517
587
  getSandbox(sandboxIdOrName: string, xDaytonaOrganizationID?: string, verbose?: boolean, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Sandbox>>;
588
+ /**
589
+ *
590
+ * @summary Get sandbox fork ancestor chain
591
+ * @param {string} sandboxIdOrName
592
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
593
+ * @param {*} [options] Override http request option.
594
+ * @throws {RequiredError}
595
+ */
596
+ getSandboxAncestors(sandboxIdOrName: string, xDaytonaOrganizationID?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<Sandbox>>>;
597
+ /**
598
+ *
599
+ * @summary Get sandbox fork children
600
+ * @param {string} sandboxIdOrName
601
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
602
+ * @param {boolean} [includeDestroyed]
603
+ * @param {*} [options] Override http request option.
604
+ * @throws {RequiredError}
605
+ */
606
+ getSandboxForks(sandboxIdOrName: string, xDaytonaOrganizationID?: string, includeDestroyed?: boolean, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<Sandbox>>>;
518
607
  /**
519
608
  * Retrieve OTEL logs for a sandbox within a time range
520
609
  * @summary Get sandbox logs
@@ -542,6 +631,15 @@ export declare const SandboxApiFp: (configuration?: Configuration) => {
542
631
  * @throws {RequiredError}
543
632
  */
544
633
  getSandboxMetrics(sandboxId: string, from: Date, to: Date, xDaytonaOrganizationID?: string, metricNames?: Array<string>, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<MetricsResponse>>;
634
+ /**
635
+ *
636
+ * @summary Get sandbox fork parent
637
+ * @param {string} sandboxIdOrName
638
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
639
+ * @param {*} [options] Override http request option.
640
+ * @throws {RequiredError}
641
+ */
642
+ getSandboxParent(sandboxIdOrName: string, xDaytonaOrganizationID?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Sandbox>>;
545
643
  /**
546
644
  * Retrieve all spans for a specific trace
547
645
  * @summary Get trace spans
@@ -792,6 +890,16 @@ export declare const SandboxApiFactory: (configuration?: Configuration, basePath
792
890
  * @throws {RequiredError}
793
891
  */
794
892
  createSandbox(createSandbox: CreateSandbox, xDaytonaOrganizationID?: string, options?: RawAxiosRequestConfig): AxiosPromise<Sandbox>;
893
+ /**
894
+ *
895
+ * @summary Create a snapshot from a sandbox
896
+ * @param {string} sandboxIdOrName
897
+ * @param {CreateSandboxSnapshot} createSandboxSnapshot
898
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
899
+ * @param {*} [options] Override http request option.
900
+ * @throws {RequiredError}
901
+ */
902
+ createSandboxSnapshot(sandboxIdOrName: string, createSandboxSnapshot: CreateSandboxSnapshot, xDaytonaOrganizationID?: string, options?: RawAxiosRequestConfig): AxiosPromise<Sandbox>;
795
903
  /**
796
904
  *
797
905
  * @summary Create SSH access for sandbox
@@ -822,6 +930,16 @@ export declare const SandboxApiFactory: (configuration?: Configuration, basePath
822
930
  * @throws {RequiredError}
823
931
  */
824
932
  expireSignedPortPreviewUrl(sandboxIdOrName: string, port: number, token: string, xDaytonaOrganizationID?: string, options?: RawAxiosRequestConfig): AxiosPromise<void>;
933
+ /**
934
+ *
935
+ * @summary Fork a sandbox
936
+ * @param {string} sandboxIdOrName
937
+ * @param {ForkSandbox} forkSandbox
938
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
939
+ * @param {*} [options] Override http request option.
940
+ * @throws {RequiredError}
941
+ */
942
+ forkSandbox(sandboxIdOrName: string, forkSandbox: ForkSandbox, xDaytonaOrganizationID?: string, options?: RawAxiosRequestConfig): AxiosPromise<Sandbox>;
825
943
  /**
826
944
  * This endpoint is deprecated. Use `getBuildLogsUrl` instead.
827
945
  * @summary Get build logs
@@ -880,6 +998,25 @@ export declare const SandboxApiFactory: (configuration?: Configuration, basePath
880
998
  * @throws {RequiredError}
881
999
  */
882
1000
  getSandbox(sandboxIdOrName: string, xDaytonaOrganizationID?: string, verbose?: boolean, options?: RawAxiosRequestConfig): AxiosPromise<Sandbox>;
1001
+ /**
1002
+ *
1003
+ * @summary Get sandbox fork ancestor chain
1004
+ * @param {string} sandboxIdOrName
1005
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
1006
+ * @param {*} [options] Override http request option.
1007
+ * @throws {RequiredError}
1008
+ */
1009
+ getSandboxAncestors(sandboxIdOrName: string, xDaytonaOrganizationID?: string, options?: RawAxiosRequestConfig): AxiosPromise<Array<Sandbox>>;
1010
+ /**
1011
+ *
1012
+ * @summary Get sandbox fork children
1013
+ * @param {string} sandboxIdOrName
1014
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
1015
+ * @param {boolean} [includeDestroyed]
1016
+ * @param {*} [options] Override http request option.
1017
+ * @throws {RequiredError}
1018
+ */
1019
+ getSandboxForks(sandboxIdOrName: string, xDaytonaOrganizationID?: string, includeDestroyed?: boolean, options?: RawAxiosRequestConfig): AxiosPromise<Array<Sandbox>>;
883
1020
  /**
884
1021
  * Retrieve OTEL logs for a sandbox within a time range
885
1022
  * @summary Get sandbox logs
@@ -907,6 +1044,15 @@ export declare const SandboxApiFactory: (configuration?: Configuration, basePath
907
1044
  * @throws {RequiredError}
908
1045
  */
909
1046
  getSandboxMetrics(sandboxId: string, from: Date, to: Date, xDaytonaOrganizationID?: string, metricNames?: Array<string>, options?: RawAxiosRequestConfig): AxiosPromise<MetricsResponse>;
1047
+ /**
1048
+ *
1049
+ * @summary Get sandbox fork parent
1050
+ * @param {string} sandboxIdOrName
1051
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
1052
+ * @param {*} [options] Override http request option.
1053
+ * @throws {RequiredError}
1054
+ */
1055
+ getSandboxParent(sandboxIdOrName: string, xDaytonaOrganizationID?: string, options?: RawAxiosRequestConfig): AxiosPromise<Sandbox>;
910
1056
  /**
911
1057
  * Retrieve all spans for a specific trace
912
1058
  * @summary Get trace spans
@@ -1162,6 +1308,17 @@ export declare class SandboxApi extends BaseAPI {
1162
1308
  * @memberof SandboxApi
1163
1309
  */
1164
1310
  createSandbox(createSandbox: CreateSandbox, xDaytonaOrganizationID?: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<Sandbox, any, {}>>;
1311
+ /**
1312
+ *
1313
+ * @summary Create a snapshot from a sandbox
1314
+ * @param {string} sandboxIdOrName
1315
+ * @param {CreateSandboxSnapshot} createSandboxSnapshot
1316
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
1317
+ * @param {*} [options] Override http request option.
1318
+ * @throws {RequiredError}
1319
+ * @memberof SandboxApi
1320
+ */
1321
+ createSandboxSnapshot(sandboxIdOrName: string, createSandboxSnapshot: CreateSandboxSnapshot, xDaytonaOrganizationID?: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<Sandbox, any, {}>>;
1165
1322
  /**
1166
1323
  *
1167
1324
  * @summary Create SSH access for sandbox
@@ -1195,6 +1352,17 @@ export declare class SandboxApi extends BaseAPI {
1195
1352
  * @memberof SandboxApi
1196
1353
  */
1197
1354
  expireSignedPortPreviewUrl(sandboxIdOrName: string, port: number, token: string, xDaytonaOrganizationID?: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}>>;
1355
+ /**
1356
+ *
1357
+ * @summary Fork a sandbox
1358
+ * @param {string} sandboxIdOrName
1359
+ * @param {ForkSandbox} forkSandbox
1360
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
1361
+ * @param {*} [options] Override http request option.
1362
+ * @throws {RequiredError}
1363
+ * @memberof SandboxApi
1364
+ */
1365
+ forkSandbox(sandboxIdOrName: string, forkSandbox: ForkSandbox, xDaytonaOrganizationID?: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<Sandbox, any, {}>>;
1198
1366
  /**
1199
1367
  * This endpoint is deprecated. Use `getBuildLogsUrl` instead.
1200
1368
  * @summary Get build logs
@@ -1259,6 +1427,27 @@ export declare class SandboxApi extends BaseAPI {
1259
1427
  * @memberof SandboxApi
1260
1428
  */
1261
1429
  getSandbox(sandboxIdOrName: string, xDaytonaOrganizationID?: string, verbose?: boolean, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<Sandbox, any, {}>>;
1430
+ /**
1431
+ *
1432
+ * @summary Get sandbox fork ancestor chain
1433
+ * @param {string} sandboxIdOrName
1434
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
1435
+ * @param {*} [options] Override http request option.
1436
+ * @throws {RequiredError}
1437
+ * @memberof SandboxApi
1438
+ */
1439
+ getSandboxAncestors(sandboxIdOrName: string, xDaytonaOrganizationID?: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<Sandbox[], any, {}>>;
1440
+ /**
1441
+ *
1442
+ * @summary Get sandbox fork children
1443
+ * @param {string} sandboxIdOrName
1444
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
1445
+ * @param {boolean} [includeDestroyed]
1446
+ * @param {*} [options] Override http request option.
1447
+ * @throws {RequiredError}
1448
+ * @memberof SandboxApi
1449
+ */
1450
+ getSandboxForks(sandboxIdOrName: string, xDaytonaOrganizationID?: string, includeDestroyed?: boolean, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<Sandbox[], any, {}>>;
1262
1451
  /**
1263
1452
  * Retrieve OTEL logs for a sandbox within a time range
1264
1453
  * @summary Get sandbox logs
@@ -1288,6 +1477,16 @@ export declare class SandboxApi extends BaseAPI {
1288
1477
  * @memberof SandboxApi
1289
1478
  */
1290
1479
  getSandboxMetrics(sandboxId: string, from: Date, to: Date, xDaytonaOrganizationID?: string, metricNames?: Array<string>, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<MetricsResponse, any, {}>>;
1480
+ /**
1481
+ *
1482
+ * @summary Get sandbox fork parent
1483
+ * @param {string} sandboxIdOrName
1484
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
1485
+ * @param {*} [options] Override http request option.
1486
+ * @throws {RequiredError}
1487
+ * @memberof SandboxApi
1488
+ */
1489
+ getSandboxParent(sandboxIdOrName: string, xDaytonaOrganizationID?: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<Sandbox, any, {}>>;
1291
1490
  /**
1292
1491
  * Retrieve all spans for a specific trace
1293
1492
  * @summary Get trace spans
@@ -1546,6 +1745,8 @@ export declare const ListSandboxesPaginatedStatesEnum: {
1546
1745
  readonly ARCHIVED: "archived";
1547
1746
  readonly ARCHIVING: "archiving";
1548
1747
  readonly RESIZING: "resizing";
1748
+ readonly SNAPSHOTTING: "snapshotting";
1749
+ readonly FORKING: "forking";
1549
1750
  };
1550
1751
  export type ListSandboxesPaginatedStatesEnum = typeof ListSandboxesPaginatedStatesEnum[keyof typeof ListSandboxesPaginatedStatesEnum];
1551
1752
  /**