@daytonaio/api-client 0.103.0 → 0.104.0-alpha.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.
Files changed (43) hide show
  1. package/package.json +1 -1
  2. package/src/api/api-keys-api.d.ts +6 -6
  3. package/src/api/audit-api.d.ts +3 -3
  4. package/src/api/config-api.d.ts +70 -0
  5. package/src/api/config-api.js +119 -0
  6. package/src/api/config-api.js.map +1 -0
  7. package/src/api/default-api.d.ts +7 -7
  8. package/src/api/docker-registry-api.d.ts +7 -7
  9. package/src/api/health-api.d.ts +1 -1
  10. package/src/api/object-storage-api.d.ts +1 -1
  11. package/src/api/organizations-api.d.ts +26 -26
  12. package/src/api/preview-api.d.ts +3 -3
  13. package/src/api/runners-api.d.ts +5 -5
  14. package/src/api/sandbox-api.d.ts +97 -18
  15. package/src/api/sandbox-api.js +165 -0
  16. package/src/api/sandbox-api.js.map +1 -1
  17. package/src/api/snapshots-api.d.ts +9 -9
  18. package/src/api/toolbox-api.d.ts +62 -62
  19. package/src/api/users-api.d.ts +9 -9
  20. package/src/api/volumes-api.d.ts +5 -5
  21. package/src/api/webhooks-api.d.ts +6 -6
  22. package/src/api/workspace-api.d.ts +14 -14
  23. package/src/api.d.ts +1 -0
  24. package/src/api.js +1 -0
  25. package/src/api.js.map +1 -1
  26. package/src/models/announcement.d.ts +30 -0
  27. package/src/models/announcement.js +4 -0
  28. package/src/models/announcement.js.map +1 -0
  29. package/src/models/daytona-configuration.d.ts +107 -0
  30. package/src/models/daytona-configuration.js +16 -0
  31. package/src/models/daytona-configuration.js.map +1 -0
  32. package/src/models/index.d.ts +5 -0
  33. package/src/models/index.js +5 -0
  34. package/src/models/index.js.map +1 -1
  35. package/src/models/oidc-config.d.ts +36 -0
  36. package/src/models/oidc-config.js +4 -0
  37. package/src/models/oidc-config.js.map +1 -0
  38. package/src/models/posthog-config.d.ts +30 -0
  39. package/src/models/posthog-config.js +4 -0
  40. package/src/models/posthog-config.js.map +1 -0
  41. package/src/models/update-sandbox-state-dto.d.ts +43 -0
  42. package/src/models/update-sandbox-state-dto.js +23 -0
  43. package/src/models/update-sandbox-state-dto.js.map +1 -0
@@ -120,7 +120,7 @@ export declare class PreviewApi extends BaseAPI {
120
120
  * @throws {RequiredError}
121
121
  * @memberof PreviewApi
122
122
  */
123
- hasSandboxAccess(sandboxId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
123
+ hasSandboxAccess(sandboxId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}>>;
124
124
  /**
125
125
  *
126
126
  * @summary Check if sandbox is public
@@ -129,7 +129,7 @@ export declare class PreviewApi extends BaseAPI {
129
129
  * @throws {RequiredError}
130
130
  * @memberof PreviewApi
131
131
  */
132
- isSandboxPublic(sandboxId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<boolean, any>>;
132
+ isSandboxPublic(sandboxId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<boolean, any, {}>>;
133
133
  /**
134
134
  *
135
135
  * @summary Check if sandbox auth token is valid
@@ -139,5 +139,5 @@ export declare class PreviewApi extends BaseAPI {
139
139
  * @throws {RequiredError}
140
140
  * @memberof PreviewApi
141
141
  */
142
- isValidAuthToken(sandboxId: string, authToken: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<boolean, any>>;
142
+ isValidAuthToken(sandboxId: string, authToken: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<boolean, any, {}>>;
143
143
  }
@@ -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
  }
@@ -18,6 +18,7 @@ import type { Sandbox } from '../models';
18
18
  import type { SandboxLabels } from '../models';
19
19
  import type { SshAccessDto } from '../models';
20
20
  import type { SshAccessValidationDto } from '../models';
21
+ import type { UpdateSandboxStateDto } from '../models';
21
22
  /**
22
23
  * SandboxApi - axios parameter creator
23
24
  * @export
@@ -100,6 +101,15 @@ export declare const SandboxApiAxiosParamCreator: (configuration?: Configuration
100
101
  * @throws {RequiredError}
101
102
  */
102
103
  getSandbox: (sandboxId: string, xDaytonaOrganizationID?: string, verbose?: boolean, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
104
+ /**
105
+ *
106
+ * @summary Get sandboxes for the authenticated runner
107
+ * @param {string} state
108
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
109
+ * @param {*} [options] Override http request option.
110
+ * @throws {RequiredError}
111
+ */
112
+ getSandboxesForRunner: (state: string, xDaytonaOrganizationID?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
103
113
  /**
104
114
  *
105
115
  * @summary List all sandboxes
@@ -189,6 +199,16 @@ export declare const SandboxApiAxiosParamCreator: (configuration?: Configuration
189
199
  * @throws {RequiredError}
190
200
  */
191
201
  updatePublicStatus: (sandboxId: string, isPublic: boolean, xDaytonaOrganizationID?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
202
+ /**
203
+ *
204
+ * @summary Update sandbox state
205
+ * @param {string} sandboxId ID of the sandbox
206
+ * @param {UpdateSandboxStateDto} updateSandboxStateDto
207
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
208
+ * @param {*} [options] Override http request option.
209
+ * @throws {RequiredError}
210
+ */
211
+ updateSandboxState: (sandboxId: string, updateSandboxStateDto: UpdateSandboxStateDto, xDaytonaOrganizationID?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
192
212
  /**
193
213
  *
194
214
  * @summary Validate SSH access for sandbox
@@ -281,6 +301,15 @@ export declare const SandboxApiFp: (configuration?: Configuration) => {
281
301
  * @throws {RequiredError}
282
302
  */
283
303
  getSandbox(sandboxId: string, xDaytonaOrganizationID?: string, verbose?: boolean, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Sandbox>>;
304
+ /**
305
+ *
306
+ * @summary Get sandboxes for the authenticated runner
307
+ * @param {string} state
308
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
309
+ * @param {*} [options] Override http request option.
310
+ * @throws {RequiredError}
311
+ */
312
+ getSandboxesForRunner(state: string, xDaytonaOrganizationID?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<Sandbox>>>;
284
313
  /**
285
314
  *
286
315
  * @summary List all sandboxes
@@ -370,6 +399,16 @@ export declare const SandboxApiFp: (configuration?: Configuration) => {
370
399
  * @throws {RequiredError}
371
400
  */
372
401
  updatePublicStatus(sandboxId: string, isPublic: boolean, xDaytonaOrganizationID?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
402
+ /**
403
+ *
404
+ * @summary Update sandbox state
405
+ * @param {string} sandboxId ID of the sandbox
406
+ * @param {UpdateSandboxStateDto} updateSandboxStateDto
407
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
408
+ * @param {*} [options] Override http request option.
409
+ * @throws {RequiredError}
410
+ */
411
+ updateSandboxState(sandboxId: string, updateSandboxStateDto: UpdateSandboxStateDto, xDaytonaOrganizationID?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
373
412
  /**
374
413
  *
375
414
  * @summary Validate SSH access for sandbox
@@ -462,6 +501,15 @@ export declare const SandboxApiFactory: (configuration?: Configuration, basePath
462
501
  * @throws {RequiredError}
463
502
  */
464
503
  getSandbox(sandboxId: string, xDaytonaOrganizationID?: string, verbose?: boolean, options?: RawAxiosRequestConfig): AxiosPromise<Sandbox>;
504
+ /**
505
+ *
506
+ * @summary Get sandboxes for the authenticated runner
507
+ * @param {string} state
508
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
509
+ * @param {*} [options] Override http request option.
510
+ * @throws {RequiredError}
511
+ */
512
+ getSandboxesForRunner(state: string, xDaytonaOrganizationID?: string, options?: RawAxiosRequestConfig): AxiosPromise<Array<Sandbox>>;
465
513
  /**
466
514
  *
467
515
  * @summary List all sandboxes
@@ -551,6 +599,16 @@ export declare const SandboxApiFactory: (configuration?: Configuration, basePath
551
599
  * @throws {RequiredError}
552
600
  */
553
601
  updatePublicStatus(sandboxId: string, isPublic: boolean, xDaytonaOrganizationID?: string, options?: RawAxiosRequestConfig): AxiosPromise<void>;
602
+ /**
603
+ *
604
+ * @summary Update sandbox state
605
+ * @param {string} sandboxId ID of the sandbox
606
+ * @param {UpdateSandboxStateDto} updateSandboxStateDto
607
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
608
+ * @param {*} [options] Override http request option.
609
+ * @throws {RequiredError}
610
+ */
611
+ updateSandboxState(sandboxId: string, updateSandboxStateDto: UpdateSandboxStateDto, xDaytonaOrganizationID?: string, options?: RawAxiosRequestConfig): AxiosPromise<void>;
554
612
  /**
555
613
  *
556
614
  * @summary Validate SSH access for sandbox
@@ -577,7 +635,7 @@ export declare class SandboxApi extends BaseAPI {
577
635
  * @throws {RequiredError}
578
636
  * @memberof SandboxApi
579
637
  */
580
- archiveSandbox(sandboxId: string, xDaytonaOrganizationID?: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
638
+ archiveSandbox(sandboxId: string, xDaytonaOrganizationID?: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}>>;
581
639
  /**
582
640
  *
583
641
  * @summary Create sandbox backup
@@ -587,7 +645,7 @@ export declare class SandboxApi extends BaseAPI {
587
645
  * @throws {RequiredError}
588
646
  * @memberof SandboxApi
589
647
  */
590
- createBackup(sandboxId: string, xDaytonaOrganizationID?: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<Sandbox, any>>;
648
+ createBackup(sandboxId: string, xDaytonaOrganizationID?: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<Sandbox, any, {}>>;
591
649
  /**
592
650
  *
593
651
  * @summary Create a new sandbox
@@ -597,7 +655,7 @@ export declare class SandboxApi extends BaseAPI {
597
655
  * @throws {RequiredError}
598
656
  * @memberof SandboxApi
599
657
  */
600
- createSandbox(createSandbox: CreateSandbox, xDaytonaOrganizationID?: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<Sandbox, any>>;
658
+ createSandbox(createSandbox: CreateSandbox, xDaytonaOrganizationID?: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<Sandbox, any, {}>>;
601
659
  /**
602
660
  *
603
661
  * @summary Create SSH access for sandbox
@@ -608,7 +666,7 @@ export declare class SandboxApi extends BaseAPI {
608
666
  * @throws {RequiredError}
609
667
  * @memberof SandboxApi
610
668
  */
611
- createSshAccess(sandboxId: string, xDaytonaOrganizationID?: string, expiresInMinutes?: number, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<SshAccessDto, any>>;
669
+ createSshAccess(sandboxId: string, xDaytonaOrganizationID?: string, expiresInMinutes?: number, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<SshAccessDto, any, {}>>;
612
670
  /**
613
671
  *
614
672
  * @summary Delete sandbox
@@ -619,7 +677,7 @@ export declare class SandboxApi extends BaseAPI {
619
677
  * @throws {RequiredError}
620
678
  * @memberof SandboxApi
621
679
  */
622
- deleteSandbox(sandboxId: string, force: boolean, xDaytonaOrganizationID?: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
680
+ deleteSandbox(sandboxId: string, force: boolean, xDaytonaOrganizationID?: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}>>;
623
681
  /**
624
682
  *
625
683
  * @summary Get build logs
@@ -630,7 +688,7 @@ export declare class SandboxApi extends BaseAPI {
630
688
  * @throws {RequiredError}
631
689
  * @memberof SandboxApi
632
690
  */
633
- getBuildLogs(sandboxId: string, xDaytonaOrganizationID?: string, follow?: boolean, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
691
+ getBuildLogs(sandboxId: string, xDaytonaOrganizationID?: string, follow?: boolean, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}>>;
634
692
  /**
635
693
  *
636
694
  * @summary Get preview URL for a sandbox port
@@ -641,7 +699,7 @@ export declare class SandboxApi extends BaseAPI {
641
699
  * @throws {RequiredError}
642
700
  * @memberof SandboxApi
643
701
  */
644
- getPortPreviewUrl(sandboxId: string, port: number, xDaytonaOrganizationID?: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<PortPreviewUrl, any>>;
702
+ getPortPreviewUrl(sandboxId: string, port: number, xDaytonaOrganizationID?: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<PortPreviewUrl, any, {}>>;
645
703
  /**
646
704
  *
647
705
  * @summary Get sandbox details
@@ -652,7 +710,17 @@ export declare class SandboxApi extends BaseAPI {
652
710
  * @throws {RequiredError}
653
711
  * @memberof SandboxApi
654
712
  */
655
- getSandbox(sandboxId: string, xDaytonaOrganizationID?: string, verbose?: boolean, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<Sandbox, any>>;
713
+ getSandbox(sandboxId: string, xDaytonaOrganizationID?: string, verbose?: boolean, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<Sandbox, any, {}>>;
714
+ /**
715
+ *
716
+ * @summary Get sandboxes for the authenticated runner
717
+ * @param {string} state
718
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
719
+ * @param {*} [options] Override http request option.
720
+ * @throws {RequiredError}
721
+ * @memberof SandboxApi
722
+ */
723
+ getSandboxesForRunner(state: string, xDaytonaOrganizationID?: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<Sandbox[], any, {}>>;
656
724
  /**
657
725
  *
658
726
  * @summary List all sandboxes
@@ -664,7 +732,7 @@ export declare class SandboxApi extends BaseAPI {
664
732
  * @throws {RequiredError}
665
733
  * @memberof SandboxApi
666
734
  */
667
- listSandboxes(xDaytonaOrganizationID?: string, verbose?: boolean, labels?: string, includeErroredDeleted?: boolean, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<Sandbox[], any>>;
735
+ listSandboxes(xDaytonaOrganizationID?: string, verbose?: boolean, labels?: string, includeErroredDeleted?: boolean, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<Sandbox[], any, {}>>;
668
736
  /**
669
737
  *
670
738
  * @summary Replace sandbox labels
@@ -675,7 +743,7 @@ export declare class SandboxApi extends BaseAPI {
675
743
  * @throws {RequiredError}
676
744
  * @memberof SandboxApi
677
745
  */
678
- replaceLabels(sandboxId: string, sandboxLabels: SandboxLabels, xDaytonaOrganizationID?: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<SandboxLabels, any>>;
746
+ replaceLabels(sandboxId: string, sandboxLabels: SandboxLabels, xDaytonaOrganizationID?: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<SandboxLabels, any, {}>>;
679
747
  /**
680
748
  *
681
749
  * @summary Revoke SSH access for sandbox
@@ -686,7 +754,7 @@ export declare class SandboxApi extends BaseAPI {
686
754
  * @throws {RequiredError}
687
755
  * @memberof SandboxApi
688
756
  */
689
- revokeSshAccess(sandboxId: string, xDaytonaOrganizationID?: string, token?: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
757
+ revokeSshAccess(sandboxId: string, xDaytonaOrganizationID?: string, token?: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}>>;
690
758
  /**
691
759
  *
692
760
  * @summary Set sandbox auto-archive interval
@@ -697,7 +765,7 @@ export declare class SandboxApi extends BaseAPI {
697
765
  * @throws {RequiredError}
698
766
  * @memberof SandboxApi
699
767
  */
700
- setAutoArchiveInterval(sandboxId: string, interval: number, xDaytonaOrganizationID?: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
768
+ setAutoArchiveInterval(sandboxId: string, interval: number, xDaytonaOrganizationID?: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}>>;
701
769
  /**
702
770
  *
703
771
  * @summary Set sandbox auto-delete interval
@@ -708,7 +776,7 @@ export declare class SandboxApi extends BaseAPI {
708
776
  * @throws {RequiredError}
709
777
  * @memberof SandboxApi
710
778
  */
711
- setAutoDeleteInterval(sandboxId: string, interval: number, xDaytonaOrganizationID?: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
779
+ setAutoDeleteInterval(sandboxId: string, interval: number, xDaytonaOrganizationID?: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}>>;
712
780
  /**
713
781
  *
714
782
  * @summary Set sandbox auto-stop interval
@@ -719,7 +787,7 @@ export declare class SandboxApi extends BaseAPI {
719
787
  * @throws {RequiredError}
720
788
  * @memberof SandboxApi
721
789
  */
722
- setAutostopInterval(sandboxId: string, interval: number, xDaytonaOrganizationID?: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
790
+ setAutostopInterval(sandboxId: string, interval: number, xDaytonaOrganizationID?: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}>>;
723
791
  /**
724
792
  *
725
793
  * @summary Start sandbox
@@ -729,7 +797,7 @@ export declare class SandboxApi extends BaseAPI {
729
797
  * @throws {RequiredError}
730
798
  * @memberof SandboxApi
731
799
  */
732
- startSandbox(sandboxId: string, xDaytonaOrganizationID?: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<Sandbox, any>>;
800
+ startSandbox(sandboxId: string, xDaytonaOrganizationID?: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<Sandbox, any, {}>>;
733
801
  /**
734
802
  *
735
803
  * @summary Stop sandbox
@@ -739,7 +807,7 @@ export declare class SandboxApi extends BaseAPI {
739
807
  * @throws {RequiredError}
740
808
  * @memberof SandboxApi
741
809
  */
742
- stopSandbox(sandboxId: string, xDaytonaOrganizationID?: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
810
+ stopSandbox(sandboxId: string, xDaytonaOrganizationID?: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}>>;
743
811
  /**
744
812
  *
745
813
  * @summary Update public status
@@ -750,7 +818,18 @@ export declare class SandboxApi extends BaseAPI {
750
818
  * @throws {RequiredError}
751
819
  * @memberof SandboxApi
752
820
  */
753
- updatePublicStatus(sandboxId: string, isPublic: boolean, xDaytonaOrganizationID?: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
821
+ updatePublicStatus(sandboxId: string, isPublic: boolean, xDaytonaOrganizationID?: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}>>;
822
+ /**
823
+ *
824
+ * @summary Update sandbox state
825
+ * @param {string} sandboxId ID of the sandbox
826
+ * @param {UpdateSandboxStateDto} updateSandboxStateDto
827
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
828
+ * @param {*} [options] Override http request option.
829
+ * @throws {RequiredError}
830
+ * @memberof SandboxApi
831
+ */
832
+ updateSandboxState(sandboxId: string, updateSandboxStateDto: UpdateSandboxStateDto, xDaytonaOrganizationID?: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}>>;
754
833
  /**
755
834
  *
756
835
  * @summary Validate SSH access for sandbox
@@ -760,5 +839,5 @@ export declare class SandboxApi extends BaseAPI {
760
839
  * @throws {RequiredError}
761
840
  * @memberof SandboxApi
762
841
  */
763
- validateSshAccess(token: string, xDaytonaOrganizationID?: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<SshAccessValidationDto, any>>;
842
+ validateSshAccess(token: string, xDaytonaOrganizationID?: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<SshAccessValidationDto, any, {}>>;
764
843
  }
@@ -339,6 +339,45 @@ const SandboxApiAxiosParamCreator = function (configuration) {
339
339
  options: localVarRequestOptions,
340
340
  };
341
341
  },
342
+ /**
343
+ *
344
+ * @summary Get sandboxes for the authenticated runner
345
+ * @param {string} state
346
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
347
+ * @param {*} [options] Override http request option.
348
+ * @throws {RequiredError}
349
+ */
350
+ getSandboxesForRunner: async (state, xDaytonaOrganizationID, options = {}) => {
351
+ // verify required parameter 'state' is not null or undefined
352
+ (0, common_1.assertParamExists)('getSandboxesForRunner', 'state', state);
353
+ const localVarPath = `/sandbox/for-runner`;
354
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
355
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
356
+ let baseOptions;
357
+ if (configuration) {
358
+ baseOptions = configuration.baseOptions;
359
+ }
360
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
361
+ const localVarHeaderParameter = {};
362
+ const localVarQueryParameter = {};
363
+ // authentication bearer required
364
+ // http bearer authentication required
365
+ await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
366
+ // authentication oauth2 required
367
+ if (state !== undefined) {
368
+ localVarQueryParameter['state'] = state;
369
+ }
370
+ if (xDaytonaOrganizationID != null) {
371
+ localVarHeaderParameter['X-Daytona-Organization-ID'] = String(xDaytonaOrganizationID);
372
+ }
373
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
374
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
375
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
376
+ return {
377
+ url: (0, common_1.toPathString)(localVarUrlObj),
378
+ options: localVarRequestOptions,
379
+ };
380
+ },
342
381
  /**
343
382
  *
344
383
  * @summary List all sandboxes
@@ -701,6 +740,47 @@ const SandboxApiAxiosParamCreator = function (configuration) {
701
740
  options: localVarRequestOptions,
702
741
  };
703
742
  },
743
+ /**
744
+ *
745
+ * @summary Update sandbox state
746
+ * @param {string} sandboxId ID of the sandbox
747
+ * @param {UpdateSandboxStateDto} updateSandboxStateDto
748
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
749
+ * @param {*} [options] Override http request option.
750
+ * @throws {RequiredError}
751
+ */
752
+ updateSandboxState: async (sandboxId, updateSandboxStateDto, xDaytonaOrganizationID, options = {}) => {
753
+ // verify required parameter 'sandboxId' is not null or undefined
754
+ (0, common_1.assertParamExists)('updateSandboxState', 'sandboxId', sandboxId);
755
+ // verify required parameter 'updateSandboxStateDto' is not null or undefined
756
+ (0, common_1.assertParamExists)('updateSandboxState', 'updateSandboxStateDto', updateSandboxStateDto);
757
+ const localVarPath = `/sandbox/{sandboxId}/state`.replace(`{${'sandboxId'}}`, encodeURIComponent(String(sandboxId)));
758
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
759
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
760
+ let baseOptions;
761
+ if (configuration) {
762
+ baseOptions = configuration.baseOptions;
763
+ }
764
+ const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options };
765
+ const localVarHeaderParameter = {};
766
+ const localVarQueryParameter = {};
767
+ // authentication bearer required
768
+ // http bearer authentication required
769
+ await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
770
+ // authentication oauth2 required
771
+ localVarHeaderParameter['Content-Type'] = 'application/json';
772
+ if (xDaytonaOrganizationID != null) {
773
+ localVarHeaderParameter['X-Daytona-Organization-ID'] = String(xDaytonaOrganizationID);
774
+ }
775
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
776
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
777
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
778
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(updateSandboxStateDto, localVarRequestOptions, configuration);
779
+ return {
780
+ url: (0, common_1.toPathString)(localVarUrlObj),
781
+ options: localVarRequestOptions,
782
+ };
783
+ },
704
784
  /**
705
785
  *
706
786
  * @summary Validate SSH access for sandbox
@@ -867,6 +947,20 @@ const SandboxApiFp = function (configuration) {
867
947
  const localVarOperationServerBasePath = base_1.operationServerMap['SandboxApi.getSandbox']?.[localVarOperationServerIndex]?.url;
868
948
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
869
949
  },
950
+ /**
951
+ *
952
+ * @summary Get sandboxes for the authenticated runner
953
+ * @param {string} state
954
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
955
+ * @param {*} [options] Override http request option.
956
+ * @throws {RequiredError}
957
+ */
958
+ async getSandboxesForRunner(state, xDaytonaOrganizationID, options) {
959
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getSandboxesForRunner(state, xDaytonaOrganizationID, options);
960
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
961
+ const localVarOperationServerBasePath = base_1.operationServerMap['SandboxApi.getSandboxesForRunner']?.[localVarOperationServerIndex]?.url;
962
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
963
+ },
870
964
  /**
871
965
  *
872
966
  * @summary List all sandboxes
@@ -1001,6 +1095,21 @@ const SandboxApiFp = function (configuration) {
1001
1095
  const localVarOperationServerBasePath = base_1.operationServerMap['SandboxApi.updatePublicStatus']?.[localVarOperationServerIndex]?.url;
1002
1096
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1003
1097
  },
1098
+ /**
1099
+ *
1100
+ * @summary Update sandbox state
1101
+ * @param {string} sandboxId ID of the sandbox
1102
+ * @param {UpdateSandboxStateDto} updateSandboxStateDto
1103
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
1104
+ * @param {*} [options] Override http request option.
1105
+ * @throws {RequiredError}
1106
+ */
1107
+ async updateSandboxState(sandboxId, updateSandboxStateDto, xDaytonaOrganizationID, options) {
1108
+ const localVarAxiosArgs = await localVarAxiosParamCreator.updateSandboxState(sandboxId, updateSandboxStateDto, xDaytonaOrganizationID, options);
1109
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1110
+ const localVarOperationServerBasePath = base_1.operationServerMap['SandboxApi.updateSandboxState']?.[localVarOperationServerIndex]?.url;
1111
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1112
+ },
1004
1113
  /**
1005
1114
  *
1006
1115
  * @summary Validate SSH access for sandbox
@@ -1134,6 +1243,19 @@ const SandboxApiFactory = function (configuration, basePath, axios) {
1134
1243
  .getSandbox(sandboxId, xDaytonaOrganizationID, verbose, options)
1135
1244
  .then((request) => request(axios, basePath));
1136
1245
  },
1246
+ /**
1247
+ *
1248
+ * @summary Get sandboxes for the authenticated runner
1249
+ * @param {string} state
1250
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
1251
+ * @param {*} [options] Override http request option.
1252
+ * @throws {RequiredError}
1253
+ */
1254
+ getSandboxesForRunner(state, xDaytonaOrganizationID, options) {
1255
+ return localVarFp
1256
+ .getSandboxesForRunner(state, xDaytonaOrganizationID, options)
1257
+ .then((request) => request(axios, basePath));
1258
+ },
1137
1259
  /**
1138
1260
  *
1139
1261
  * @summary List all sandboxes
@@ -1259,6 +1381,20 @@ const SandboxApiFactory = function (configuration, basePath, axios) {
1259
1381
  .updatePublicStatus(sandboxId, isPublic, xDaytonaOrganizationID, options)
1260
1382
  .then((request) => request(axios, basePath));
1261
1383
  },
1384
+ /**
1385
+ *
1386
+ * @summary Update sandbox state
1387
+ * @param {string} sandboxId ID of the sandbox
1388
+ * @param {UpdateSandboxStateDto} updateSandboxStateDto
1389
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
1390
+ * @param {*} [options] Override http request option.
1391
+ * @throws {RequiredError}
1392
+ */
1393
+ updateSandboxState(sandboxId, updateSandboxStateDto, xDaytonaOrganizationID, options) {
1394
+ return localVarFp
1395
+ .updateSandboxState(sandboxId, updateSandboxStateDto, xDaytonaOrganizationID, options)
1396
+ .then((request) => request(axios, basePath));
1397
+ },
1262
1398
  /**
1263
1399
  *
1264
1400
  * @summary Validate SSH access for sandbox
@@ -1399,6 +1535,20 @@ class SandboxApi extends base_1.BaseAPI {
1399
1535
  .getSandbox(sandboxId, xDaytonaOrganizationID, verbose, options)
1400
1536
  .then((request) => request(this.axios, this.basePath));
1401
1537
  }
1538
+ /**
1539
+ *
1540
+ * @summary Get sandboxes for the authenticated runner
1541
+ * @param {string} state
1542
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
1543
+ * @param {*} [options] Override http request option.
1544
+ * @throws {RequiredError}
1545
+ * @memberof SandboxApi
1546
+ */
1547
+ getSandboxesForRunner(state, xDaytonaOrganizationID, options) {
1548
+ return (0, exports.SandboxApiFp)(this.configuration)
1549
+ .getSandboxesForRunner(state, xDaytonaOrganizationID, options)
1550
+ .then((request) => request(this.axios, this.basePath));
1551
+ }
1402
1552
  /**
1403
1553
  *
1404
1554
  * @summary List all sandboxes
@@ -1533,6 +1683,21 @@ class SandboxApi extends base_1.BaseAPI {
1533
1683
  .updatePublicStatus(sandboxId, isPublic, xDaytonaOrganizationID, options)
1534
1684
  .then((request) => request(this.axios, this.basePath));
1535
1685
  }
1686
+ /**
1687
+ *
1688
+ * @summary Update sandbox state
1689
+ * @param {string} sandboxId ID of the sandbox
1690
+ * @param {UpdateSandboxStateDto} updateSandboxStateDto
1691
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
1692
+ * @param {*} [options] Override http request option.
1693
+ * @throws {RequiredError}
1694
+ * @memberof SandboxApi
1695
+ */
1696
+ updateSandboxState(sandboxId, updateSandboxStateDto, xDaytonaOrganizationID, options) {
1697
+ return (0, exports.SandboxApiFp)(this.configuration)
1698
+ .updateSandboxState(sandboxId, updateSandboxStateDto, xDaytonaOrganizationID, options)
1699
+ .then((request) => request(this.axios, this.basePath));
1700
+ }
1536
1701
  /**
1537
1702
  *
1538
1703
  * @summary Validate SSH access for sandbox