@daytonaio/api-client 0.110.2 → 0.112.0-dev.462c455
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 +1 -1
- package/src/api/api-keys-api.d.ts +6 -6
- package/src/api/audit-api.d.ts +32 -43
- package/src/api/audit-api.js +58 -84
- package/src/api/audit-api.js.map +1 -1
- package/src/api/config-api.d.ts +1 -1
- package/src/api/default-api.d.ts +7 -7
- package/src/api/docker-registry-api.d.ts +7 -7
- package/src/api/health-api.d.ts +1 -1
- package/src/api/object-storage-api.d.ts +1 -1
- package/src/api/organizations-api.d.ts +28 -28
- package/src/api/organizations-api.js.map +1 -1
- package/src/api/preview-api.d.ts +3 -3
- package/src/api/runners-api.d.ts +5 -5
- package/src/api/sandbox-api.d.ts +59 -22
- package/src/api/sandbox-api.js +77 -0
- package/src/api/sandbox-api.js.map +1 -1
- package/src/api/snapshots-api.d.ts +9 -9
- package/src/api/toolbox-api.d.ts +68 -68
- package/src/api/users-api.d.ts +9 -9
- package/src/api/volumes-api.d.ts +5 -5
- package/src/api/webhooks-api.d.ts +6 -6
- package/src/api/workspace-api.d.ts +14 -14
- package/src/models/create-audit-log.d.ts +3 -0
- package/src/models/create-audit-log.js +3 -0
- package/src/models/create-audit-log.js.map +1 -1
- package/src/models/index.d.ts +0 -1
- package/src/models/index.js +0 -1
- package/src/models/index.js.map +1 -1
- package/src/models/paginated-audit-logs.d.ts +6 -0
- package/src/models/port-preview-url.d.ts +0 -6
- package/src/models/sandbox.d.ts +0 -6
- package/src/models/sandbox.js.map +1 -1
- package/src/models/ssh-access-validation-dto.d.ts +0 -12
- package/src/models/workspace-port-preview-url.d.ts +0 -6
- package/src/models/workspace.d.ts +0 -6
- package/src/models/workspace.js.map +1 -1
package/src/api/runners-api.d.ts
CHANGED
|
@@ -165,7 +165,7 @@ export declare class RunnersApi extends BaseAPI {
|
|
|
165
165
|
* @throws {RequiredError}
|
|
166
166
|
* @memberof RunnersApi
|
|
167
167
|
*/
|
|
168
|
-
createRunner(createRunner: CreateRunner, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any
|
|
168
|
+
createRunner(createRunner: CreateRunner, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
|
|
169
169
|
/**
|
|
170
170
|
*
|
|
171
171
|
* @summary Get runner by sandbox ID
|
|
@@ -174,7 +174,7 @@ export declare class RunnersApi extends BaseAPI {
|
|
|
174
174
|
* @throws {RequiredError}
|
|
175
175
|
* @memberof RunnersApi
|
|
176
176
|
*/
|
|
177
|
-
getRunnerBySandboxId(sandboxId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<Runner, any
|
|
177
|
+
getRunnerBySandboxId(sandboxId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<Runner, any>>;
|
|
178
178
|
/**
|
|
179
179
|
*
|
|
180
180
|
* @summary Get runners by snapshot ref
|
|
@@ -183,7 +183,7 @@ export declare class RunnersApi extends BaseAPI {
|
|
|
183
183
|
* @throws {RequiredError}
|
|
184
184
|
* @memberof RunnersApi
|
|
185
185
|
*/
|
|
186
|
-
getRunnersBySnapshotRef(ref: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<RunnerSnapshotDto[], any
|
|
186
|
+
getRunnersBySnapshotRef(ref: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<RunnerSnapshotDto[], any>>;
|
|
187
187
|
/**
|
|
188
188
|
*
|
|
189
189
|
* @summary List all runners
|
|
@@ -191,7 +191,7 @@ export declare class RunnersApi extends BaseAPI {
|
|
|
191
191
|
* @throws {RequiredError}
|
|
192
192
|
* @memberof RunnersApi
|
|
193
193
|
*/
|
|
194
|
-
listRunners(options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any
|
|
194
|
+
listRunners(options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
|
|
195
195
|
/**
|
|
196
196
|
*
|
|
197
197
|
* @summary Update runner scheduling status
|
|
@@ -200,5 +200,5 @@ export declare class RunnersApi extends BaseAPI {
|
|
|
200
200
|
* @throws {RequiredError}
|
|
201
201
|
* @memberof RunnersApi
|
|
202
202
|
*/
|
|
203
|
-
updateRunnerScheduling(id: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any
|
|
203
|
+
updateRunnerScheduling(id: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
|
|
204
204
|
}
|
package/src/api/sandbox-api.d.ts
CHANGED
|
@@ -208,6 +208,15 @@ export declare const SandboxApiAxiosParamCreator: (configuration?: Configuration
|
|
|
208
208
|
* @throws {RequiredError}
|
|
209
209
|
*/
|
|
210
210
|
setAutostopInterval: (sandboxIdOrName: string, interval: number, xDaytonaOrganizationID?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
211
|
+
/**
|
|
212
|
+
*
|
|
213
|
+
* @summary Snapshot sandbox
|
|
214
|
+
* @param {string} sandboxId ID of the sandbox
|
|
215
|
+
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
216
|
+
* @param {*} [options] Override http request option.
|
|
217
|
+
* @throws {RequiredError}
|
|
218
|
+
*/
|
|
219
|
+
snapshotSandbox: (sandboxId: string, xDaytonaOrganizationID?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
211
220
|
/**
|
|
212
221
|
*
|
|
213
222
|
* @summary Start sandbox
|
|
@@ -443,6 +452,15 @@ export declare const SandboxApiFp: (configuration?: Configuration) => {
|
|
|
443
452
|
* @throws {RequiredError}
|
|
444
453
|
*/
|
|
445
454
|
setAutostopInterval(sandboxIdOrName: string, interval: number, xDaytonaOrganizationID?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Sandbox>>;
|
|
455
|
+
/**
|
|
456
|
+
*
|
|
457
|
+
* @summary Snapshot sandbox
|
|
458
|
+
* @param {string} sandboxId ID of the sandbox
|
|
459
|
+
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
460
|
+
* @param {*} [options] Override http request option.
|
|
461
|
+
* @throws {RequiredError}
|
|
462
|
+
*/
|
|
463
|
+
snapshotSandbox(sandboxId: string, xDaytonaOrganizationID?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<string>>;
|
|
446
464
|
/**
|
|
447
465
|
*
|
|
448
466
|
* @summary Start sandbox
|
|
@@ -678,6 +696,15 @@ export declare const SandboxApiFactory: (configuration?: Configuration, basePath
|
|
|
678
696
|
* @throws {RequiredError}
|
|
679
697
|
*/
|
|
680
698
|
setAutostopInterval(sandboxIdOrName: string, interval: number, xDaytonaOrganizationID?: string, options?: RawAxiosRequestConfig): AxiosPromise<Sandbox>;
|
|
699
|
+
/**
|
|
700
|
+
*
|
|
701
|
+
* @summary Snapshot sandbox
|
|
702
|
+
* @param {string} sandboxId ID of the sandbox
|
|
703
|
+
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
704
|
+
* @param {*} [options] Override http request option.
|
|
705
|
+
* @throws {RequiredError}
|
|
706
|
+
*/
|
|
707
|
+
snapshotSandbox(sandboxId: string, xDaytonaOrganizationID?: string, options?: RawAxiosRequestConfig): AxiosPromise<string>;
|
|
681
708
|
/**
|
|
682
709
|
*
|
|
683
710
|
* @summary Start sandbox
|
|
@@ -742,7 +769,7 @@ export declare class SandboxApi extends BaseAPI {
|
|
|
742
769
|
* @throws {RequiredError}
|
|
743
770
|
* @memberof SandboxApi
|
|
744
771
|
*/
|
|
745
|
-
archiveSandbox(sandboxIdOrName: string, xDaytonaOrganizationID?: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<Sandbox, any
|
|
772
|
+
archiveSandbox(sandboxIdOrName: string, xDaytonaOrganizationID?: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<Sandbox, any>>;
|
|
746
773
|
/**
|
|
747
774
|
*
|
|
748
775
|
* @summary Create sandbox backup
|
|
@@ -752,7 +779,7 @@ export declare class SandboxApi extends BaseAPI {
|
|
|
752
779
|
* @throws {RequiredError}
|
|
753
780
|
* @memberof SandboxApi
|
|
754
781
|
*/
|
|
755
|
-
createBackup(sandboxIdOrName: string, xDaytonaOrganizationID?: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<Sandbox, any
|
|
782
|
+
createBackup(sandboxIdOrName: string, xDaytonaOrganizationID?: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<Sandbox, any>>;
|
|
756
783
|
/**
|
|
757
784
|
*
|
|
758
785
|
* @summary Create a new sandbox
|
|
@@ -762,7 +789,7 @@ export declare class SandboxApi extends BaseAPI {
|
|
|
762
789
|
* @throws {RequiredError}
|
|
763
790
|
* @memberof SandboxApi
|
|
764
791
|
*/
|
|
765
|
-
createSandbox(createSandbox: CreateSandbox, xDaytonaOrganizationID?: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<Sandbox, any
|
|
792
|
+
createSandbox(createSandbox: CreateSandbox, xDaytonaOrganizationID?: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<Sandbox, any>>;
|
|
766
793
|
/**
|
|
767
794
|
*
|
|
768
795
|
* @summary Create SSH access for sandbox
|
|
@@ -773,7 +800,7 @@ export declare class SandboxApi extends BaseAPI {
|
|
|
773
800
|
* @throws {RequiredError}
|
|
774
801
|
* @memberof SandboxApi
|
|
775
802
|
*/
|
|
776
|
-
createSshAccess(sandboxIdOrName: string, xDaytonaOrganizationID?: string, expiresInMinutes?: number, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<SshAccessDto, any
|
|
803
|
+
createSshAccess(sandboxIdOrName: string, xDaytonaOrganizationID?: string, expiresInMinutes?: number, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<SshAccessDto, any>>;
|
|
777
804
|
/**
|
|
778
805
|
*
|
|
779
806
|
* @summary Delete sandbox
|
|
@@ -783,7 +810,7 @@ export declare class SandboxApi extends BaseAPI {
|
|
|
783
810
|
* @throws {RequiredError}
|
|
784
811
|
* @memberof SandboxApi
|
|
785
812
|
*/
|
|
786
|
-
deleteSandbox(sandboxIdOrName: string, xDaytonaOrganizationID?: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<Sandbox, any
|
|
813
|
+
deleteSandbox(sandboxIdOrName: string, xDaytonaOrganizationID?: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<Sandbox, any>>;
|
|
787
814
|
/**
|
|
788
815
|
*
|
|
789
816
|
* @summary Get build logs
|
|
@@ -794,7 +821,7 @@ export declare class SandboxApi extends BaseAPI {
|
|
|
794
821
|
* @throws {RequiredError}
|
|
795
822
|
* @memberof SandboxApi
|
|
796
823
|
*/
|
|
797
|
-
getBuildLogs(sandboxIdOrName: string, xDaytonaOrganizationID?: string, follow?: boolean, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any
|
|
824
|
+
getBuildLogs(sandboxIdOrName: string, xDaytonaOrganizationID?: string, follow?: boolean, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
|
|
798
825
|
/**
|
|
799
826
|
*
|
|
800
827
|
* @summary Get preview URL for a sandbox port
|
|
@@ -805,7 +832,7 @@ export declare class SandboxApi extends BaseAPI {
|
|
|
805
832
|
* @throws {RequiredError}
|
|
806
833
|
* @memberof SandboxApi
|
|
807
834
|
*/
|
|
808
|
-
getPortPreviewUrl(sandboxIdOrName: string, port: number, xDaytonaOrganizationID?: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<PortPreviewUrl, any
|
|
835
|
+
getPortPreviewUrl(sandboxIdOrName: string, port: number, xDaytonaOrganizationID?: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<PortPreviewUrl, any>>;
|
|
809
836
|
/**
|
|
810
837
|
*
|
|
811
838
|
* @summary Get sandbox details
|
|
@@ -816,7 +843,7 @@ export declare class SandboxApi extends BaseAPI {
|
|
|
816
843
|
* @throws {RequiredError}
|
|
817
844
|
* @memberof SandboxApi
|
|
818
845
|
*/
|
|
819
|
-
getSandbox(sandboxIdOrName: string, xDaytonaOrganizationID?: string, verbose?: boolean, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<Sandbox, any
|
|
846
|
+
getSandbox(sandboxIdOrName: string, xDaytonaOrganizationID?: string, verbose?: boolean, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<Sandbox, any>>;
|
|
820
847
|
/**
|
|
821
848
|
*
|
|
822
849
|
* @summary List all regions where sandboxes have been created
|
|
@@ -825,7 +852,7 @@ export declare class SandboxApi extends BaseAPI {
|
|
|
825
852
|
* @throws {RequiredError}
|
|
826
853
|
* @memberof SandboxApi
|
|
827
854
|
*/
|
|
828
|
-
getSandboxRegions(xDaytonaOrganizationID?: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<Region[], any
|
|
855
|
+
getSandboxRegions(xDaytonaOrganizationID?: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<Region[], any>>;
|
|
829
856
|
/**
|
|
830
857
|
*
|
|
831
858
|
* @summary Get sandboxes for the authenticated runner
|
|
@@ -836,7 +863,7 @@ export declare class SandboxApi extends BaseAPI {
|
|
|
836
863
|
* @throws {RequiredError}
|
|
837
864
|
* @memberof SandboxApi
|
|
838
865
|
*/
|
|
839
|
-
getSandboxesForRunner(xDaytonaOrganizationID?: string, states?: string, skipReconcilingSandboxes?: boolean, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<Sandbox[], any
|
|
866
|
+
getSandboxesForRunner(xDaytonaOrganizationID?: string, states?: string, skipReconcilingSandboxes?: boolean, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<Sandbox[], any>>;
|
|
840
867
|
/**
|
|
841
868
|
*
|
|
842
869
|
* @summary List all sandboxes
|
|
@@ -848,7 +875,7 @@ export declare class SandboxApi extends BaseAPI {
|
|
|
848
875
|
* @throws {RequiredError}
|
|
849
876
|
* @memberof SandboxApi
|
|
850
877
|
*/
|
|
851
|
-
listSandboxes(xDaytonaOrganizationID?: string, verbose?: boolean, labels?: string, includeErroredDeleted?: boolean, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<Sandbox[], any
|
|
878
|
+
listSandboxes(xDaytonaOrganizationID?: string, verbose?: boolean, labels?: string, includeErroredDeleted?: boolean, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<Sandbox[], any>>;
|
|
852
879
|
/**
|
|
853
880
|
*
|
|
854
881
|
* @summary List all sandboxes paginated
|
|
@@ -876,7 +903,7 @@ export declare class SandboxApi extends BaseAPI {
|
|
|
876
903
|
* @throws {RequiredError}
|
|
877
904
|
* @memberof SandboxApi
|
|
878
905
|
*/
|
|
879
|
-
listSandboxesPaginated(xDaytonaOrganizationID?: string, page?: number, limit?: number, id?: string, name?: string, labels?: string, includeErroredDeleted?: boolean, states?: Array<ListSandboxesPaginatedStatesEnum>, snapshots?: Array<string>, regions?: Array<string>, minCpu?: number, maxCpu?: number, minMemoryGiB?: number, maxMemoryGiB?: number, minDiskGiB?: number, maxDiskGiB?: number, lastEventAfter?: Date, lastEventBefore?: Date, sort?: ListSandboxesPaginatedSortEnum, order?: ListSandboxesPaginatedOrderEnum, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<PaginatedSandboxes, any
|
|
906
|
+
listSandboxesPaginated(xDaytonaOrganizationID?: string, page?: number, limit?: number, id?: string, name?: string, labels?: string, includeErroredDeleted?: boolean, states?: Array<ListSandboxesPaginatedStatesEnum>, snapshots?: Array<string>, regions?: Array<string>, minCpu?: number, maxCpu?: number, minMemoryGiB?: number, maxMemoryGiB?: number, minDiskGiB?: number, maxDiskGiB?: number, lastEventAfter?: Date, lastEventBefore?: Date, sort?: ListSandboxesPaginatedSortEnum, order?: ListSandboxesPaginatedOrderEnum, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<PaginatedSandboxes, any>>;
|
|
880
907
|
/**
|
|
881
908
|
*
|
|
882
909
|
* @summary Replace sandbox labels
|
|
@@ -887,7 +914,7 @@ export declare class SandboxApi extends BaseAPI {
|
|
|
887
914
|
* @throws {RequiredError}
|
|
888
915
|
* @memberof SandboxApi
|
|
889
916
|
*/
|
|
890
|
-
replaceLabels(sandboxIdOrName: string, sandboxLabels: SandboxLabels, xDaytonaOrganizationID?: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<SandboxLabels, any
|
|
917
|
+
replaceLabels(sandboxIdOrName: string, sandboxLabels: SandboxLabels, xDaytonaOrganizationID?: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<SandboxLabels, any>>;
|
|
891
918
|
/**
|
|
892
919
|
*
|
|
893
920
|
* @summary Revoke SSH access for sandbox
|
|
@@ -898,7 +925,7 @@ export declare class SandboxApi extends BaseAPI {
|
|
|
898
925
|
* @throws {RequiredError}
|
|
899
926
|
* @memberof SandboxApi
|
|
900
927
|
*/
|
|
901
|
-
revokeSshAccess(sandboxIdOrName: string, xDaytonaOrganizationID?: string, token?: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<Sandbox, any
|
|
928
|
+
revokeSshAccess(sandboxIdOrName: string, xDaytonaOrganizationID?: string, token?: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<Sandbox, any>>;
|
|
902
929
|
/**
|
|
903
930
|
*
|
|
904
931
|
* @summary Set sandbox auto-archive interval
|
|
@@ -909,7 +936,7 @@ export declare class SandboxApi extends BaseAPI {
|
|
|
909
936
|
* @throws {RequiredError}
|
|
910
937
|
* @memberof SandboxApi
|
|
911
938
|
*/
|
|
912
|
-
setAutoArchiveInterval(sandboxIdOrName: string, interval: number, xDaytonaOrganizationID?: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<Sandbox, any
|
|
939
|
+
setAutoArchiveInterval(sandboxIdOrName: string, interval: number, xDaytonaOrganizationID?: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<Sandbox, any>>;
|
|
913
940
|
/**
|
|
914
941
|
*
|
|
915
942
|
* @summary Set sandbox auto-delete interval
|
|
@@ -920,7 +947,7 @@ export declare class SandboxApi extends BaseAPI {
|
|
|
920
947
|
* @throws {RequiredError}
|
|
921
948
|
* @memberof SandboxApi
|
|
922
949
|
*/
|
|
923
|
-
setAutoDeleteInterval(sandboxIdOrName: string, interval: number, xDaytonaOrganizationID?: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<Sandbox, any
|
|
950
|
+
setAutoDeleteInterval(sandboxIdOrName: string, interval: number, xDaytonaOrganizationID?: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<Sandbox, any>>;
|
|
924
951
|
/**
|
|
925
952
|
*
|
|
926
953
|
* @summary Set sandbox auto-stop interval
|
|
@@ -931,7 +958,17 @@ export declare class SandboxApi extends BaseAPI {
|
|
|
931
958
|
* @throws {RequiredError}
|
|
932
959
|
* @memberof SandboxApi
|
|
933
960
|
*/
|
|
934
|
-
setAutostopInterval(sandboxIdOrName: string, interval: number, xDaytonaOrganizationID?: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<Sandbox, any
|
|
961
|
+
setAutostopInterval(sandboxIdOrName: string, interval: number, xDaytonaOrganizationID?: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<Sandbox, any>>;
|
|
962
|
+
/**
|
|
963
|
+
*
|
|
964
|
+
* @summary Snapshot sandbox
|
|
965
|
+
* @param {string} sandboxId ID of the sandbox
|
|
966
|
+
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
967
|
+
* @param {*} [options] Override http request option.
|
|
968
|
+
* @throws {RequiredError}
|
|
969
|
+
* @memberof SandboxApi
|
|
970
|
+
*/
|
|
971
|
+
snapshotSandbox(sandboxId: string, xDaytonaOrganizationID?: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<string, any>>;
|
|
935
972
|
/**
|
|
936
973
|
*
|
|
937
974
|
* @summary Start sandbox
|
|
@@ -941,7 +978,7 @@ export declare class SandboxApi extends BaseAPI {
|
|
|
941
978
|
* @throws {RequiredError}
|
|
942
979
|
* @memberof SandboxApi
|
|
943
980
|
*/
|
|
944
|
-
startSandbox(sandboxIdOrName: string, xDaytonaOrganizationID?: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<Sandbox, any
|
|
981
|
+
startSandbox(sandboxIdOrName: string, xDaytonaOrganizationID?: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<Sandbox, any>>;
|
|
945
982
|
/**
|
|
946
983
|
*
|
|
947
984
|
* @summary Stop sandbox
|
|
@@ -951,7 +988,7 @@ export declare class SandboxApi extends BaseAPI {
|
|
|
951
988
|
* @throws {RequiredError}
|
|
952
989
|
* @memberof SandboxApi
|
|
953
990
|
*/
|
|
954
|
-
stopSandbox(sandboxIdOrName: string, xDaytonaOrganizationID?: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<Sandbox, any
|
|
991
|
+
stopSandbox(sandboxIdOrName: string, xDaytonaOrganizationID?: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<Sandbox, any>>;
|
|
955
992
|
/**
|
|
956
993
|
*
|
|
957
994
|
* @summary Update public status
|
|
@@ -962,7 +999,7 @@ export declare class SandboxApi extends BaseAPI {
|
|
|
962
999
|
* @throws {RequiredError}
|
|
963
1000
|
* @memberof SandboxApi
|
|
964
1001
|
*/
|
|
965
|
-
updatePublicStatus(sandboxIdOrName: string, isPublic: boolean, xDaytonaOrganizationID?: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<Sandbox, any
|
|
1002
|
+
updatePublicStatus(sandboxIdOrName: string, isPublic: boolean, xDaytonaOrganizationID?: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<Sandbox, any>>;
|
|
966
1003
|
/**
|
|
967
1004
|
*
|
|
968
1005
|
* @summary Update sandbox state
|
|
@@ -973,7 +1010,7 @@ export declare class SandboxApi extends BaseAPI {
|
|
|
973
1010
|
* @throws {RequiredError}
|
|
974
1011
|
* @memberof SandboxApi
|
|
975
1012
|
*/
|
|
976
|
-
updateSandboxState(sandboxId: string, updateSandboxStateDto: UpdateSandboxStateDto, xDaytonaOrganizationID?: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any
|
|
1013
|
+
updateSandboxState(sandboxId: string, updateSandboxStateDto: UpdateSandboxStateDto, xDaytonaOrganizationID?: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
|
|
977
1014
|
/**
|
|
978
1015
|
*
|
|
979
1016
|
* @summary Validate SSH access for sandbox
|
|
@@ -983,7 +1020,7 @@ export declare class SandboxApi extends BaseAPI {
|
|
|
983
1020
|
* @throws {RequiredError}
|
|
984
1021
|
* @memberof SandboxApi
|
|
985
1022
|
*/
|
|
986
|
-
validateSshAccess(token: string, xDaytonaOrganizationID?: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<SshAccessValidationDto, any
|
|
1023
|
+
validateSshAccess(token: string, xDaytonaOrganizationID?: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<SshAccessValidationDto, any>>;
|
|
987
1024
|
}
|
|
988
1025
|
/**
|
|
989
1026
|
* @export
|
package/src/api/sandbox-api.js
CHANGED
|
@@ -767,6 +767,42 @@ const SandboxApiAxiosParamCreator = function (configuration) {
|
|
|
767
767
|
options: localVarRequestOptions,
|
|
768
768
|
};
|
|
769
769
|
},
|
|
770
|
+
/**
|
|
771
|
+
*
|
|
772
|
+
* @summary Snapshot sandbox
|
|
773
|
+
* @param {string} sandboxId ID of the sandbox
|
|
774
|
+
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
775
|
+
* @param {*} [options] Override http request option.
|
|
776
|
+
* @throws {RequiredError}
|
|
777
|
+
*/
|
|
778
|
+
snapshotSandbox: async (sandboxId, xDaytonaOrganizationID, options = {}) => {
|
|
779
|
+
// verify required parameter 'sandboxId' is not null or undefined
|
|
780
|
+
(0, common_1.assertParamExists)('snapshotSandbox', 'sandboxId', sandboxId);
|
|
781
|
+
const localVarPath = `/sandbox/{sandboxId}/snapshot`.replace(`{${'sandboxId'}}`, encodeURIComponent(String(sandboxId)));
|
|
782
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
783
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
784
|
+
let baseOptions;
|
|
785
|
+
if (configuration) {
|
|
786
|
+
baseOptions = configuration.baseOptions;
|
|
787
|
+
}
|
|
788
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
789
|
+
const localVarHeaderParameter = {};
|
|
790
|
+
const localVarQueryParameter = {};
|
|
791
|
+
// authentication bearer required
|
|
792
|
+
// http bearer authentication required
|
|
793
|
+
await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
794
|
+
// authentication oauth2 required
|
|
795
|
+
if (xDaytonaOrganizationID != null) {
|
|
796
|
+
localVarHeaderParameter['X-Daytona-Organization-ID'] = String(xDaytonaOrganizationID);
|
|
797
|
+
}
|
|
798
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
799
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
800
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
801
|
+
return {
|
|
802
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
803
|
+
options: localVarRequestOptions,
|
|
804
|
+
};
|
|
805
|
+
},
|
|
770
806
|
/**
|
|
771
807
|
*
|
|
772
808
|
* @summary Start sandbox
|
|
@@ -1237,6 +1273,20 @@ const SandboxApiFp = function (configuration) {
|
|
|
1237
1273
|
const localVarOperationServerBasePath = base_1.operationServerMap['SandboxApi.setAutostopInterval']?.[localVarOperationServerIndex]?.url;
|
|
1238
1274
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1239
1275
|
},
|
|
1276
|
+
/**
|
|
1277
|
+
*
|
|
1278
|
+
* @summary Snapshot sandbox
|
|
1279
|
+
* @param {string} sandboxId ID of the sandbox
|
|
1280
|
+
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
1281
|
+
* @param {*} [options] Override http request option.
|
|
1282
|
+
* @throws {RequiredError}
|
|
1283
|
+
*/
|
|
1284
|
+
async snapshotSandbox(sandboxId, xDaytonaOrganizationID, options) {
|
|
1285
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.snapshotSandbox(sandboxId, xDaytonaOrganizationID, options);
|
|
1286
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1287
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['SandboxApi.snapshotSandbox']?.[localVarOperationServerIndex]?.url;
|
|
1288
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1289
|
+
},
|
|
1240
1290
|
/**
|
|
1241
1291
|
*
|
|
1242
1292
|
* @summary Start sandbox
|
|
@@ -1567,6 +1617,19 @@ const SandboxApiFactory = function (configuration, basePath, axios) {
|
|
|
1567
1617
|
.setAutostopInterval(sandboxIdOrName, interval, xDaytonaOrganizationID, options)
|
|
1568
1618
|
.then((request) => request(axios, basePath));
|
|
1569
1619
|
},
|
|
1620
|
+
/**
|
|
1621
|
+
*
|
|
1622
|
+
* @summary Snapshot sandbox
|
|
1623
|
+
* @param {string} sandboxId ID of the sandbox
|
|
1624
|
+
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
1625
|
+
* @param {*} [options] Override http request option.
|
|
1626
|
+
* @throws {RequiredError}
|
|
1627
|
+
*/
|
|
1628
|
+
snapshotSandbox(sandboxId, xDaytonaOrganizationID, options) {
|
|
1629
|
+
return localVarFp
|
|
1630
|
+
.snapshotSandbox(sandboxId, xDaytonaOrganizationID, options)
|
|
1631
|
+
.then((request) => request(axios, basePath));
|
|
1632
|
+
},
|
|
1570
1633
|
/**
|
|
1571
1634
|
*
|
|
1572
1635
|
* @summary Start sandbox
|
|
@@ -1911,6 +1974,20 @@ class SandboxApi extends base_1.BaseAPI {
|
|
|
1911
1974
|
.setAutostopInterval(sandboxIdOrName, interval, xDaytonaOrganizationID, options)
|
|
1912
1975
|
.then((request) => request(this.axios, this.basePath));
|
|
1913
1976
|
}
|
|
1977
|
+
/**
|
|
1978
|
+
*
|
|
1979
|
+
* @summary Snapshot sandbox
|
|
1980
|
+
* @param {string} sandboxId ID of the sandbox
|
|
1981
|
+
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
1982
|
+
* @param {*} [options] Override http request option.
|
|
1983
|
+
* @throws {RequiredError}
|
|
1984
|
+
* @memberof SandboxApi
|
|
1985
|
+
*/
|
|
1986
|
+
snapshotSandbox(sandboxId, xDaytonaOrganizationID, options) {
|
|
1987
|
+
return (0, exports.SandboxApiFp)(this.configuration)
|
|
1988
|
+
.snapshotSandbox(sandboxId, xDaytonaOrganizationID, options)
|
|
1989
|
+
.then((request) => request(this.axios, this.basePath));
|
|
1990
|
+
}
|
|
1914
1991
|
/**
|
|
1915
1992
|
*
|
|
1916
1993
|
* @summary Start sandbox
|