@distilled.cloud/daytona 0.0.0-placeholder → 1.0.0-rc.13
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/LICENSE +201 -0
- package/README.md +34 -0
- package/lib/credentials.d.ts +46 -0
- package/lib/credentials.d.ts.map +1 -0
- package/lib/credentials.js +67 -0
- package/lib/credentials.js.map +1 -0
- package/lib/endpoints.d.ts +15 -0
- package/lib/endpoints.d.ts.map +1 -0
- package/lib/endpoints.js +28 -0
- package/lib/endpoints.js.map +1 -0
- package/lib/errors.d.ts +53 -0
- package/lib/errors.d.ts.map +1 -0
- package/lib/errors.js +30 -0
- package/lib/errors.js.map +1 -0
- package/lib/index.d.ts +30 -0
- package/lib/index.d.ts.map +1 -0
- package/lib/index.js +30 -0
- package/lib/index.js.map +1 -0
- package/lib/pagination.d.ts +10 -0
- package/lib/pagination.d.ts.map +1 -0
- package/lib/pagination.js +10 -0
- package/lib/pagination.js.map +1 -0
- package/lib/protocol.d.ts +18 -0
- package/lib/protocol.d.ts.map +1 -0
- package/lib/protocol.js +75 -0
- package/lib/protocol.js.map +1 -0
- package/lib/response-validation.test.d.ts +4 -0
- package/lib/response-validation.test.d.ts.map +1 -0
- package/lib/response-validation.test.js +31 -0
- package/lib/response-validation.test.js.map +1 -0
- package/lib/retry.d.ts +50 -0
- package/lib/retry.d.ts.map +1 -0
- package/lib/retry.js +43 -0
- package/lib/retry.js.map +1 -0
- package/lib/services/api_keys.d.ts +120 -0
- package/lib/services/api_keys.d.ts.map +1 -0
- package/lib/services/api_keys.js +126 -0
- package/lib/services/api_keys.js.map +1 -0
- package/lib/services/audit.d.ts +159 -0
- package/lib/services/audit.d.ts.map +1 -0
- package/lib/services/audit.js +126 -0
- package/lib/services/audit.js.map +1 -0
- package/lib/services/computer_use.d.ts +484 -0
- package/lib/services/computer_use.d.ts.map +1 -0
- package/lib/services/computer_use.js +672 -0
- package/lib/services/computer_use.js.map +1 -0
- package/lib/services/config.d.ts +138 -0
- package/lib/services/config.d.ts.map +1 -0
- package/lib/services/config.js +88 -0
- package/lib/services/config.js.map +1 -0
- package/lib/services/docker_registry.d.ts +126 -0
- package/lib/services/docker_registry.d.ts.map +1 -0
- package/lib/services/docker_registry.js +135 -0
- package/lib/services/docker_registry.js.map +1 -0
- package/lib/services/file_system.d.ts +203 -0
- package/lib/services/file_system.d.ts.map +1 -0
- package/lib/services/file_system.js +255 -0
- package/lib/services/file_system.js.map +1 -0
- package/lib/services/git.d.ts +338 -0
- package/lib/services/git.d.ts.map +1 -0
- package/lib/services/git.js +417 -0
- package/lib/services/git.js.map +1 -0
- package/lib/services/health.d.ts +41 -0
- package/lib/services/health.d.ts.map +1 -0
- package/lib/services/health.js +49 -0
- package/lib/services/health.js.map +1 -0
- package/lib/services/index.d.ts +31 -0
- package/lib/services/index.d.ts.map +1 -0
- package/lib/services/index.js +32 -0
- package/lib/services/index.js.map +1 -0
- package/lib/services/info.d.ts +37 -0
- package/lib/services/info.d.ts.map +1 -0
- package/lib/services/info.js +55 -0
- package/lib/services/info.js.map +1 -0
- package/lib/services/interpreter.d.ts +56 -0
- package/lib/services/interpreter.d.ts.map +1 -0
- package/lib/services/interpreter.js +83 -0
- package/lib/services/interpreter.js.map +1 -0
- package/lib/services/jobs.d.ts +104 -0
- package/lib/services/jobs.d.ts.map +1 -0
- package/lib/services/jobs.js +94 -0
- package/lib/services/jobs.js.map +1 -0
- package/lib/services/lsp.d.ts +137 -0
- package/lib/services/lsp.d.ts.map +1 -0
- package/lib/services/lsp.js +160 -0
- package/lib/services/lsp.js.map +1 -0
- package/lib/services/object_storage.d.ts +31 -0
- package/lib/services/object_storage.d.ts.map +1 -0
- package/lib/services/object_storage.js +33 -0
- package/lib/services/object_storage.js.map +1 -0
- package/lib/services/organizations.d.ts +963 -0
- package/lib/services/organizations.d.ts.map +1 -0
- package/lib/services/organizations.js +1143 -0
- package/lib/services/organizations.js.map +1 -0
- package/lib/services/port.d.ts +29 -0
- package/lib/services/port.d.ts.map +1 -0
- package/lib/services/port.js +41 -0
- package/lib/services/port.js.map +1 -0
- package/lib/services/preview.d.ts +73 -0
- package/lib/services/preview.d.ts.map +1 -0
- package/lib/services/preview.js +125 -0
- package/lib/services/preview.js.map +1 -0
- package/lib/services/process.d.ts +329 -0
- package/lib/services/process.d.ts.map +1 -0
- package/lib/services/process.js +421 -0
- package/lib/services/process.js.map +1 -0
- package/lib/services/regions.d.ts +41 -0
- package/lib/services/regions.d.ts.map +1 -0
- package/lib/services/regions.js +36 -0
- package/lib/services/regions.js.map +1 -0
- package/lib/services/runners.d.ts +358 -0
- package/lib/services/runners.d.ts.map +1 -0
- package/lib/services/runners.js +316 -0
- package/lib/services/runners.js.map +1 -0
- package/lib/services/sandbox.d.ts +1276 -0
- package/lib/services/sandbox.d.ts.map +1 -0
- package/lib/services/sandbox.js +1218 -0
- package/lib/services/sandbox.js.map +1 -0
- package/lib/services/secret.d.ts +120 -0
- package/lib/services/secret.d.ts.map +1 -0
- package/lib/services/secret.js +113 -0
- package/lib/services/secret.js.map +1 -0
- package/lib/services/server.d.ts +44 -0
- package/lib/services/server.d.ts.map +1 -0
- package/lib/services/server.js +46 -0
- package/lib/services/server.js.map +1 -0
- package/lib/services/snapshots.d.ts +208 -0
- package/lib/services/snapshots.d.ts.map +1 -0
- package/lib/services/snapshots.js +189 -0
- package/lib/services/snapshots.js.map +1 -0
- package/lib/services/system.d.ts +24 -0
- package/lib/services/system.d.ts.map +1 -0
- package/lib/services/system.js +31 -0
- package/lib/services/system.js.map +1 -0
- package/lib/services/telemetry.d.ts +141 -0
- package/lib/services/telemetry.d.ts.map +1 -0
- package/lib/services/telemetry.js +165 -0
- package/lib/services/telemetry.js.map +1 -0
- package/lib/services/usage.d.ts +111 -0
- package/lib/services/usage.d.ts.map +1 -0
- package/lib/services/usage.js +146 -0
- package/lib/services/usage.js.map +1 -0
- package/lib/services/users.d.ts +125 -0
- package/lib/services/users.d.ts.map +1 -0
- package/lib/services/users.js +172 -0
- package/lib/services/users.js.map +1 -0
- package/lib/services/volumes.d.ts +83 -0
- package/lib/services/volumes.d.ts.map +1 -0
- package/lib/services/volumes.js +96 -0
- package/lib/services/volumes.js.map +1 -0
- package/lib/services/warm_pools.d.ts +79 -0
- package/lib/services/warm_pools.d.ts.map +1 -0
- package/lib/services/warm_pools.js +90 -0
- package/lib/services/warm_pools.js.map +1 -0
- package/lib/services/webhooks.d.ts +67 -0
- package/lib/services/webhooks.d.ts.map +1 -0
- package/lib/services/webhooks.js +103 -0
- package/lib/services/webhooks.js.map +1 -0
- package/lib/traits.d.ts +10 -0
- package/lib/traits.d.ts.map +1 -0
- package/lib/traits.js +11 -0
- package/lib/traits.js.map +1 -0
- package/package.json +78 -7
- package/src/credentials.ts +135 -0
- package/src/endpoints.ts +28 -0
- package/src/errors.ts +85 -0
- package/src/index.ts +33 -0
- package/src/pagination.ts +9 -0
- package/src/protocol.ts +108 -0
- package/src/response-validation.test.ts +45 -0
- package/src/retry.ts +74 -0
- package/src/services/api_keys.ts +378 -0
- package/src/services/audit.ts +416 -0
- package/src/services/computer_use.ts +1496 -0
- package/src/services/config.ts +256 -0
- package/src/services/docker_registry.ts +325 -0
- package/src/services/file_system.ts +575 -0
- package/src/services/git.ts +928 -0
- package/src/services/health.ts +116 -0
- package/src/services/index.ts +31 -0
- package/src/services/info.ts +116 -0
- package/src/services/interpreter.ts +182 -0
- package/src/services/jobs.ts +249 -0
- package/src/services/lsp.ts +367 -0
- package/src/services/object_storage.ts +75 -0
- package/src/services/organizations.ts +2712 -0
- package/src/services/port.ts +87 -0
- package/src/services/preview.ts +256 -0
- package/src/services/process.ts +948 -0
- package/src/services/regions.ts +90 -0
- package/src/services/runners.ts +811 -0
- package/src/services/sandbox.ts +3158 -0
- package/src/services/secret.ts +289 -0
- package/src/services/server.ts +111 -0
- package/src/services/snapshots.ts +508 -0
- package/src/services/system.ts +64 -0
- package/src/services/telemetry.ts +385 -0
- package/src/services/usage.ts +316 -0
- package/src/services/users.ts +380 -0
- package/src/services/volumes.ts +233 -0
- package/src/services/warm_pools.ts +209 -0
- package/src/services/webhooks.ts +214 -0
- package/src/traits.ts +44 -0
|
@@ -0,0 +1,2712 @@
|
|
|
1
|
+
// AUTO-GENERATED by scripts/generate.ts from .generated-specs (specs/spec-mirror-daytona/specs/{openapi,toolbox-openapi,analytics-openapi}.json). Do not edit.
|
|
2
|
+
import * as S from "@distilled.cloud/core/schema";
|
|
3
|
+
import * as Redacted from "effect/Redacted";
|
|
4
|
+
import * as API from "@distilled.cloud/core/api";
|
|
5
|
+
import * as T from "../traits.ts";
|
|
6
|
+
import {
|
|
7
|
+
DaytonaProtocol,
|
|
8
|
+
type DaytonaOpError,
|
|
9
|
+
type DaytonaOpContext,
|
|
10
|
+
} from "../protocol.ts";
|
|
11
|
+
import { UnknownDaytonaError } from "../errors.ts";
|
|
12
|
+
import * as Retry from "../retry.ts";
|
|
13
|
+
|
|
14
|
+
export type { DaytonaOpError, DaytonaOpContext };
|
|
15
|
+
|
|
16
|
+
export interface AcceptOrganizationInvitationRequest {
|
|
17
|
+
/** Invitation ID */
|
|
18
|
+
invitationId: string;
|
|
19
|
+
}
|
|
20
|
+
export const AcceptOrganizationInvitationRequest = /*@__PURE__*/ S.suspend(() =>
|
|
21
|
+
S.Struct({
|
|
22
|
+
invitationId: S.String.pipe(T.Label()),
|
|
23
|
+
}).pipe(
|
|
24
|
+
T.Http({
|
|
25
|
+
method: "POST",
|
|
26
|
+
uri: "/organizations/invitations/{invitationId}/accept",
|
|
27
|
+
code: 200,
|
|
28
|
+
}),
|
|
29
|
+
),
|
|
30
|
+
).annotate({
|
|
31
|
+
identifier: "AcceptOrganizationInvitationRequest",
|
|
32
|
+
}) as any as S.Schema<AcceptOrganizationInvitationRequest>;
|
|
33
|
+
|
|
34
|
+
/** Invitation status */
|
|
35
|
+
export type OrganizationInvitationStatus =
|
|
36
|
+
| "pending"
|
|
37
|
+
| "accepted"
|
|
38
|
+
| "declined"
|
|
39
|
+
| "cancelled";
|
|
40
|
+
export const OrganizationInvitationStatus = S.String;
|
|
41
|
+
|
|
42
|
+
/** Member role */
|
|
43
|
+
export type OrganizationInvitationRole = "owner" | "member";
|
|
44
|
+
export const OrganizationInvitationRole = S.String;
|
|
45
|
+
|
|
46
|
+
export type OrganizationRolePermissionsItem =
|
|
47
|
+
| "write:registries"
|
|
48
|
+
| "delete:registries"
|
|
49
|
+
| "write:snapshots"
|
|
50
|
+
| "delete:snapshots"
|
|
51
|
+
| "write:sandboxes"
|
|
52
|
+
| "delete:sandboxes"
|
|
53
|
+
| "read:volumes"
|
|
54
|
+
| "write:volumes"
|
|
55
|
+
| "delete:volumes"
|
|
56
|
+
| "write:regions"
|
|
57
|
+
| "delete:regions"
|
|
58
|
+
| "read:runners"
|
|
59
|
+
| "write:runners"
|
|
60
|
+
| "delete:runners"
|
|
61
|
+
| "read:audit_logs"
|
|
62
|
+
| "manage:api_keys"
|
|
63
|
+
| "manage:secrets"
|
|
64
|
+
| "read:limits"
|
|
65
|
+
| "manage:sso"
|
|
66
|
+
| "read:billing"
|
|
67
|
+
| "manage:billing";
|
|
68
|
+
export const OrganizationRolePermissionsItem = S.String;
|
|
69
|
+
|
|
70
|
+
/** Roles assigned to the user */
|
|
71
|
+
export type OrganizationRolePermissionsList =
|
|
72
|
+
Array<OrganizationRolePermissionsItem>;
|
|
73
|
+
export const OrganizationRolePermissionsList = /*@__PURE__*/ S.Array(
|
|
74
|
+
OrganizationRolePermissionsItem,
|
|
75
|
+
) as any as S.Schema<OrganizationRolePermissionsList>;
|
|
76
|
+
|
|
77
|
+
export interface OrganizationRole {
|
|
78
|
+
/** Role ID */
|
|
79
|
+
id: string;
|
|
80
|
+
/** Role name */
|
|
81
|
+
name: string;
|
|
82
|
+
/** Role description */
|
|
83
|
+
description: string;
|
|
84
|
+
/** Roles assigned to the user */
|
|
85
|
+
permissions: OrganizationRolePermissionsList;
|
|
86
|
+
/** Global role flag */
|
|
87
|
+
isGlobal: boolean;
|
|
88
|
+
/** Creation timestamp */
|
|
89
|
+
createdAt: string;
|
|
90
|
+
/** Last update timestamp */
|
|
91
|
+
updatedAt: string;
|
|
92
|
+
}
|
|
93
|
+
export const OrganizationRole = /*@__PURE__*/ S.suspend(() =>
|
|
94
|
+
S.Struct({
|
|
95
|
+
id: S.String,
|
|
96
|
+
name: S.String,
|
|
97
|
+
description: S.String,
|
|
98
|
+
permissions: OrganizationRolePermissionsList,
|
|
99
|
+
isGlobal: S.Boolean,
|
|
100
|
+
createdAt: S.String,
|
|
101
|
+
updatedAt: S.String,
|
|
102
|
+
}),
|
|
103
|
+
).annotate({
|
|
104
|
+
identifier: "OrganizationRole",
|
|
105
|
+
}) as any as S.Schema<OrganizationRole>;
|
|
106
|
+
|
|
107
|
+
/** Assigned roles */
|
|
108
|
+
export type OrganizationInvitationAssignedRolesList = Array<OrganizationRole>;
|
|
109
|
+
export const OrganizationInvitationAssignedRolesList = /*@__PURE__*/ S.Array(
|
|
110
|
+
OrganizationRole,
|
|
111
|
+
) as any as S.Schema<OrganizationInvitationAssignedRolesList>;
|
|
112
|
+
|
|
113
|
+
export interface OrganizationInvitation {
|
|
114
|
+
/** Invitation ID */
|
|
115
|
+
id: string;
|
|
116
|
+
/** Email address of the invitee */
|
|
117
|
+
email: string;
|
|
118
|
+
/** Email address of the inviter */
|
|
119
|
+
invitedBy: string;
|
|
120
|
+
/** Organization ID */
|
|
121
|
+
organizationId: string;
|
|
122
|
+
/** Organization name */
|
|
123
|
+
organizationName: string;
|
|
124
|
+
/** Expiration date of the invitation */
|
|
125
|
+
expiresAt: string;
|
|
126
|
+
/** Invitation status */
|
|
127
|
+
status: OrganizationInvitationStatus;
|
|
128
|
+
/** Member role */
|
|
129
|
+
role: OrganizationInvitationRole;
|
|
130
|
+
/** Assigned roles */
|
|
131
|
+
assignedRoles: OrganizationInvitationAssignedRolesList;
|
|
132
|
+
/** Creation timestamp */
|
|
133
|
+
createdAt: string;
|
|
134
|
+
/** Last update timestamp */
|
|
135
|
+
updatedAt: string;
|
|
136
|
+
}
|
|
137
|
+
export const OrganizationInvitation = /*@__PURE__*/ S.suspend(() =>
|
|
138
|
+
S.Struct({
|
|
139
|
+
id: S.String,
|
|
140
|
+
email: S.String,
|
|
141
|
+
invitedBy: S.String,
|
|
142
|
+
organizationId: S.String,
|
|
143
|
+
organizationName: S.String,
|
|
144
|
+
expiresAt: S.String,
|
|
145
|
+
status: OrganizationInvitationStatus,
|
|
146
|
+
role: OrganizationInvitationRole,
|
|
147
|
+
assignedRoles: OrganizationInvitationAssignedRolesList,
|
|
148
|
+
createdAt: S.String,
|
|
149
|
+
updatedAt: S.String,
|
|
150
|
+
}),
|
|
151
|
+
).annotate({
|
|
152
|
+
identifier: "OrganizationInvitation",
|
|
153
|
+
}) as any as S.Schema<OrganizationInvitation>;
|
|
154
|
+
|
|
155
|
+
export interface CancelOrganizationInvitationRequest {
|
|
156
|
+
/** Organization ID */
|
|
157
|
+
organizationId: string;
|
|
158
|
+
/** Invitation ID */
|
|
159
|
+
invitationId: string;
|
|
160
|
+
}
|
|
161
|
+
export const CancelOrganizationInvitationRequest = /*@__PURE__*/ S.suspend(() =>
|
|
162
|
+
S.Struct({
|
|
163
|
+
organizationId: S.String.pipe(T.Label()),
|
|
164
|
+
invitationId: S.String.pipe(T.Label()),
|
|
165
|
+
}).pipe(
|
|
166
|
+
T.Http({
|
|
167
|
+
method: "POST",
|
|
168
|
+
uri: "/organizations/{organizationId}/invitations/{invitationId}/cancel",
|
|
169
|
+
code: 200,
|
|
170
|
+
}),
|
|
171
|
+
),
|
|
172
|
+
).annotate({
|
|
173
|
+
identifier: "CancelOrganizationInvitationRequest",
|
|
174
|
+
}) as any as S.Schema<CancelOrganizationInvitationRequest>;
|
|
175
|
+
|
|
176
|
+
export interface CancelOrganizationInvitationResponse {}
|
|
177
|
+
export const CancelOrganizationInvitationResponse = /*@__PURE__*/ S.suspend(
|
|
178
|
+
() => S.Struct({}),
|
|
179
|
+
).annotate({
|
|
180
|
+
identifier: "CancelOrganizationInvitationResponse",
|
|
181
|
+
}) as any as S.Schema<CancelOrganizationInvitationResponse>;
|
|
182
|
+
|
|
183
|
+
export interface CreateOrganizationRequest {
|
|
184
|
+
/** The name of organization */
|
|
185
|
+
name: string;
|
|
186
|
+
/** The ID of the default region for the organization */
|
|
187
|
+
defaultRegionId: string;
|
|
188
|
+
}
|
|
189
|
+
export const CreateOrganizationRequest = /*@__PURE__*/ S.suspend(() =>
|
|
190
|
+
S.Struct({
|
|
191
|
+
name: S.String,
|
|
192
|
+
defaultRegionId: S.String,
|
|
193
|
+
}).pipe(T.Http({ method: "POST", uri: "/organizations", code: 200 })),
|
|
194
|
+
).annotate({
|
|
195
|
+
identifier: "CreateOrganizationRequest",
|
|
196
|
+
}) as any as S.Schema<CreateOrganizationRequest>;
|
|
197
|
+
|
|
198
|
+
/** Headers */
|
|
199
|
+
export type OtelConfigHeadersMap = { [key: string]: string | undefined };
|
|
200
|
+
export const OtelConfigHeadersMap = /*@__PURE__*/ S.Record(
|
|
201
|
+
S.String,
|
|
202
|
+
S.String,
|
|
203
|
+
) as any as S.Schema<OtelConfigHeadersMap>;
|
|
204
|
+
|
|
205
|
+
export interface OtelConfig {
|
|
206
|
+
/** Endpoint */
|
|
207
|
+
endpoint: string;
|
|
208
|
+
/** Headers */
|
|
209
|
+
headers?: OtelConfigHeadersMap | null;
|
|
210
|
+
/** Organization ID the config belongs to */
|
|
211
|
+
organizationId?: string;
|
|
212
|
+
}
|
|
213
|
+
export const OtelConfig = /*@__PURE__*/ S.suspend(() =>
|
|
214
|
+
S.Struct({
|
|
215
|
+
endpoint: S.String,
|
|
216
|
+
headers: S.optional(S.NullOr(OtelConfigHeadersMap)),
|
|
217
|
+
organizationId: S.optional(S.String),
|
|
218
|
+
}),
|
|
219
|
+
).annotate({ identifier: "OtelConfig" }) as any as S.Schema<OtelConfig>;
|
|
220
|
+
|
|
221
|
+
export interface Organization {
|
|
222
|
+
/** Organization ID */
|
|
223
|
+
id: string;
|
|
224
|
+
/** Organization name */
|
|
225
|
+
name: string;
|
|
226
|
+
/** User ID of the organization creator */
|
|
227
|
+
createdBy: string;
|
|
228
|
+
/** Personal organization flag */
|
|
229
|
+
personal: boolean;
|
|
230
|
+
/** Creation timestamp */
|
|
231
|
+
createdAt: string;
|
|
232
|
+
/** Last update timestamp */
|
|
233
|
+
updatedAt: string;
|
|
234
|
+
/** Suspended flag */
|
|
235
|
+
suspended: boolean;
|
|
236
|
+
/** Suspended at */
|
|
237
|
+
suspendedAt: string;
|
|
238
|
+
/** Suspended reason */
|
|
239
|
+
suspensionReason: string;
|
|
240
|
+
/** Suspended until */
|
|
241
|
+
suspendedUntil: string;
|
|
242
|
+
/** Suspension cleanup grace period hours */
|
|
243
|
+
suspensionCleanupGracePeriodHours: number;
|
|
244
|
+
/** Max CPU per sandbox */
|
|
245
|
+
maxCpuPerSandbox: number;
|
|
246
|
+
/** Max memory per sandbox */
|
|
247
|
+
maxMemoryPerSandbox: number;
|
|
248
|
+
/** Max disk per sandbox */
|
|
249
|
+
maxDiskPerSandbox: number;
|
|
250
|
+
/** Maximum number of secrets */
|
|
251
|
+
secretQuota: number;
|
|
252
|
+
/** Maximum number of secrets that can be mounted to a single sandbox */
|
|
253
|
+
maxSecretsPerSandbox: number;
|
|
254
|
+
/** Time in minutes before an unused snapshot is deactivated */
|
|
255
|
+
snapshotDeactivationTimeoutMinutes: number;
|
|
256
|
+
/** Sandbox default network block all */
|
|
257
|
+
sandboxLimitedNetworkEgress: boolean;
|
|
258
|
+
/** Whether the proxy shows the preview URL warning page for this organization */
|
|
259
|
+
previewWarningEnabled: boolean;
|
|
260
|
+
/** Whether this organization may configure SSO identity providers */
|
|
261
|
+
ssoEnabled: boolean;
|
|
262
|
+
/** Whether this organization may use SCIM directory sync */
|
|
263
|
+
scimEnabled: boolean;
|
|
264
|
+
/** Default region ID */
|
|
265
|
+
defaultRegionId?: string;
|
|
266
|
+
/** ID of the WorkOS organization mirrored from this organization (absent for personal organizations, which are never mirrored) */
|
|
267
|
+
workosOrgId?: string;
|
|
268
|
+
/** Authenticated rate limit per minute */
|
|
269
|
+
authenticatedRateLimit: number | null;
|
|
270
|
+
/** Sandbox create rate limit per minute */
|
|
271
|
+
sandboxCreateRateLimit: number | null;
|
|
272
|
+
/** Sandbox lifecycle rate limit per minute */
|
|
273
|
+
sandboxLifecycleRateLimit: number | null;
|
|
274
|
+
/** Experimental configuration */
|
|
275
|
+
experimentalConfig: unknown;
|
|
276
|
+
/** OpenTelemetry collection configuration */
|
|
277
|
+
otelConfig: OtelConfig | null;
|
|
278
|
+
/** Authenticated rate limit TTL in seconds */
|
|
279
|
+
authenticatedRateLimitTtlSeconds: number | null;
|
|
280
|
+
/** Sandbox create rate limit TTL in seconds */
|
|
281
|
+
sandboxCreateRateLimitTtlSeconds: number | null;
|
|
282
|
+
/** Sandbox lifecycle rate limit TTL in seconds */
|
|
283
|
+
sandboxLifecycleRateLimitTtlSeconds: number | null;
|
|
284
|
+
}
|
|
285
|
+
export const Organization = /*@__PURE__*/ S.suspend(() =>
|
|
286
|
+
S.Struct({
|
|
287
|
+
id: S.String,
|
|
288
|
+
name: S.String,
|
|
289
|
+
createdBy: S.String,
|
|
290
|
+
personal: S.Boolean,
|
|
291
|
+
createdAt: S.String,
|
|
292
|
+
updatedAt: S.String,
|
|
293
|
+
suspended: S.Boolean,
|
|
294
|
+
suspendedAt: S.String,
|
|
295
|
+
suspensionReason: S.String,
|
|
296
|
+
suspendedUntil: S.String,
|
|
297
|
+
suspensionCleanupGracePeriodHours: S.Number,
|
|
298
|
+
maxCpuPerSandbox: S.Number,
|
|
299
|
+
maxMemoryPerSandbox: S.Number,
|
|
300
|
+
maxDiskPerSandbox: S.Number,
|
|
301
|
+
secretQuota: S.Number,
|
|
302
|
+
maxSecretsPerSandbox: S.Number,
|
|
303
|
+
snapshotDeactivationTimeoutMinutes: S.Number,
|
|
304
|
+
sandboxLimitedNetworkEgress: S.Boolean,
|
|
305
|
+
previewWarningEnabled: S.Boolean,
|
|
306
|
+
ssoEnabled: S.Boolean,
|
|
307
|
+
scimEnabled: S.Boolean,
|
|
308
|
+
defaultRegionId: S.optional(S.String),
|
|
309
|
+
workosOrgId: S.optional(S.String),
|
|
310
|
+
authenticatedRateLimit: S.NullOr(S.Number),
|
|
311
|
+
sandboxCreateRateLimit: S.NullOr(S.Number),
|
|
312
|
+
sandboxLifecycleRateLimit: S.NullOr(S.Number),
|
|
313
|
+
experimentalConfig: S.Unknown,
|
|
314
|
+
otelConfig: S.NullOr(OtelConfig),
|
|
315
|
+
authenticatedRateLimitTtlSeconds: S.NullOr(S.Number),
|
|
316
|
+
sandboxCreateRateLimitTtlSeconds: S.NullOr(S.Number),
|
|
317
|
+
sandboxLifecycleRateLimitTtlSeconds: S.NullOr(S.Number),
|
|
318
|
+
}),
|
|
319
|
+
).annotate({ identifier: "Organization" }) as any as S.Schema<Organization>;
|
|
320
|
+
|
|
321
|
+
export interface OidcIdPConfig {
|
|
322
|
+
/** OIDC Issuer URL */
|
|
323
|
+
issuerUrl: string;
|
|
324
|
+
/** OAuth Client ID */
|
|
325
|
+
clientId: string;
|
|
326
|
+
/** OAuth Client Secret */
|
|
327
|
+
clientSecret: string | Redacted.Redacted<string>;
|
|
328
|
+
/** OAuth scopes */
|
|
329
|
+
scope?: string;
|
|
330
|
+
}
|
|
331
|
+
export const OidcIdPConfig = /*@__PURE__*/ S.suspend(() =>
|
|
332
|
+
S.Struct({
|
|
333
|
+
issuerUrl: S.String,
|
|
334
|
+
clientId: S.String,
|
|
335
|
+
clientSecret: S.String.pipe(T.SensitiveValue({})),
|
|
336
|
+
scope: S.optional(S.String),
|
|
337
|
+
}),
|
|
338
|
+
).annotate({ identifier: "OidcIdPConfig" }) as any as S.Schema<OidcIdPConfig>;
|
|
339
|
+
|
|
340
|
+
/** Email domains used for IdP discovery on the login form and to validate the user identity returned by the IdP. Required and must be non-empty unless `allowAnyDomain` is true. */
|
|
341
|
+
export type CreateOrganizationIdentityProviderRequestEmailDomainsList =
|
|
342
|
+
Array<string>;
|
|
343
|
+
export const CreateOrganizationIdentityProviderRequestEmailDomainsList =
|
|
344
|
+
/*@__PURE__*/ S.Array(
|
|
345
|
+
S.String,
|
|
346
|
+
) as any as S.Schema<CreateOrganizationIdentityProviderRequestEmailDomainsList>;
|
|
347
|
+
|
|
348
|
+
/** Organization role IDs assigned to users who join the organization via SSO through this identity provider. Roles must be global or belong to this organization. Empty (default) grants the lowest access: membership with no resource permissions. */
|
|
349
|
+
export type CreateOrganizationIdentityProviderRequestDefaultAssignedRoleIdsList =
|
|
350
|
+
Array<string>;
|
|
351
|
+
export const CreateOrganizationIdentityProviderRequestDefaultAssignedRoleIdsList =
|
|
352
|
+
/*@__PURE__*/ S.Array(
|
|
353
|
+
S.String,
|
|
354
|
+
) as any as S.Schema<CreateOrganizationIdentityProviderRequestDefaultAssignedRoleIdsList>;
|
|
355
|
+
|
|
356
|
+
export interface CreateOrganizationIdentityProviderRequest {
|
|
357
|
+
/** Organization ID */
|
|
358
|
+
organizationId: string;
|
|
359
|
+
/** Display name for the identity provider */
|
|
360
|
+
name: string;
|
|
361
|
+
/** OIDC configuration */
|
|
362
|
+
oidcConfig: OidcIdPConfig;
|
|
363
|
+
/** Email domains used for IdP discovery on the login form and to validate the user identity returned by the IdP. Required and must be non-empty unless `allowAnyDomain` is true. */
|
|
364
|
+
emailDomains: CreateOrganizationIdentityProviderRequestEmailDomainsList;
|
|
365
|
+
/** When true, the IdP accepts any email domain returned by the external provider. Disables the post-callback domain check and allows `emailDomains` to be empty. Only enable for trusted IdPs that strictly control which users can authenticate. */
|
|
366
|
+
allowAnyDomain?: boolean;
|
|
367
|
+
/** When true, skip the `email_verified` claim check on SSO logins through this identity provider. Only intended for providers that never emit the claim (e.g. Microsoft Entra ID). Risky: only enable if the IdP strictly controls its users' email addresses. */
|
|
368
|
+
trustEmailVerified?: boolean;
|
|
369
|
+
/** Organization role IDs assigned to users who join the organization via SSO through this identity provider. Roles must be global or belong to this organization. Empty (default) grants the lowest access: membership with no resource permissions. */
|
|
370
|
+
defaultAssignedRoleIds?: CreateOrganizationIdentityProviderRequestDefaultAssignedRoleIdsList;
|
|
371
|
+
/** Whether the identity provider is enabled */
|
|
372
|
+
enabled?: boolean;
|
|
373
|
+
}
|
|
374
|
+
export const CreateOrganizationIdentityProviderRequest =
|
|
375
|
+
/*@__PURE__*/ S.suspend(() =>
|
|
376
|
+
S.Struct({
|
|
377
|
+
organizationId: S.String.pipe(T.Label()),
|
|
378
|
+
name: S.String,
|
|
379
|
+
oidcConfig: OidcIdPConfig,
|
|
380
|
+
emailDomains: CreateOrganizationIdentityProviderRequestEmailDomainsList,
|
|
381
|
+
allowAnyDomain: S.optional(S.Boolean),
|
|
382
|
+
trustEmailVerified: S.optional(S.Boolean),
|
|
383
|
+
defaultAssignedRoleIds: S.optional(
|
|
384
|
+
CreateOrganizationIdentityProviderRequestDefaultAssignedRoleIdsList,
|
|
385
|
+
),
|
|
386
|
+
enabled: S.optional(S.Boolean),
|
|
387
|
+
}).pipe(
|
|
388
|
+
T.Http({
|
|
389
|
+
method: "POST",
|
|
390
|
+
uri: "/organizations/{organizationId}/identity-providers",
|
|
391
|
+
code: 200,
|
|
392
|
+
}),
|
|
393
|
+
),
|
|
394
|
+
).annotate({
|
|
395
|
+
identifier: "CreateOrganizationIdentityProviderRequest",
|
|
396
|
+
}) as any as S.Schema<CreateOrganizationIdentityProviderRequest>;
|
|
397
|
+
|
|
398
|
+
export interface OidcIdPConfigResponse {
|
|
399
|
+
/** OIDC Issuer URL */
|
|
400
|
+
issuerUrl: string;
|
|
401
|
+
/** OAuth Client ID */
|
|
402
|
+
clientId: string;
|
|
403
|
+
/** OAuth scopes */
|
|
404
|
+
scope?: string;
|
|
405
|
+
}
|
|
406
|
+
export const OidcIdPConfigResponse = /*@__PURE__*/ S.suspend(() =>
|
|
407
|
+
S.Struct({
|
|
408
|
+
issuerUrl: S.String,
|
|
409
|
+
clientId: S.String,
|
|
410
|
+
scope: S.optional(S.String),
|
|
411
|
+
}),
|
|
412
|
+
).annotate({
|
|
413
|
+
identifier: "OidcIdPConfigResponse",
|
|
414
|
+
}) as any as S.Schema<OidcIdPConfigResponse>;
|
|
415
|
+
|
|
416
|
+
/** Email domains used for IdP discovery on the login form. May be empty when `allowAnyDomain` is true. */
|
|
417
|
+
export type IdentityProviderEmailDomainsList = Array<string>;
|
|
418
|
+
export const IdentityProviderEmailDomainsList = /*@__PURE__*/ S.Array(
|
|
419
|
+
S.String,
|
|
420
|
+
) as any as S.Schema<IdentityProviderEmailDomainsList>;
|
|
421
|
+
|
|
422
|
+
/** Organization role IDs assigned to users who join via SSO through this identity provider */
|
|
423
|
+
export type IdentityProviderDefaultAssignedRoleIdsList = Array<string>;
|
|
424
|
+
export const IdentityProviderDefaultAssignedRoleIdsList = /*@__PURE__*/ S.Array(
|
|
425
|
+
S.String,
|
|
426
|
+
) as any as S.Schema<IdentityProviderDefaultAssignedRoleIdsList>;
|
|
427
|
+
|
|
428
|
+
export interface IdentityProvider {
|
|
429
|
+
/** Unique identifier */
|
|
430
|
+
id: string;
|
|
431
|
+
/** Organization ID */
|
|
432
|
+
organizationId: string;
|
|
433
|
+
/** Display name for the identity provider */
|
|
434
|
+
name: string;
|
|
435
|
+
/** OIDC configuration (secret redacted) */
|
|
436
|
+
oidcConfig: OidcIdPConfigResponse;
|
|
437
|
+
/** Email domains used for IdP discovery on the login form. May be empty when `allowAnyDomain` is true. */
|
|
438
|
+
emailDomains: IdentityProviderEmailDomainsList;
|
|
439
|
+
/** Whether the IdP accepts any email domain returned by the external provider */
|
|
440
|
+
allowAnyDomain: boolean;
|
|
441
|
+
/** Whether the `email_verified` claim check is skipped on SSO logins through this identity provider */
|
|
442
|
+
trustEmailVerified: boolean;
|
|
443
|
+
/** Organization role IDs assigned to users who join via SSO through this identity provider */
|
|
444
|
+
defaultAssignedRoleIds: IdentityProviderDefaultAssignedRoleIdsList;
|
|
445
|
+
/** Whether the identity provider is enabled */
|
|
446
|
+
enabled: boolean;
|
|
447
|
+
/** Creation timestamp */
|
|
448
|
+
createdAt: string;
|
|
449
|
+
/** Last update timestamp */
|
|
450
|
+
updatedAt: string;
|
|
451
|
+
}
|
|
452
|
+
export const IdentityProvider = /*@__PURE__*/ S.suspend(() =>
|
|
453
|
+
S.Struct({
|
|
454
|
+
id: S.String,
|
|
455
|
+
organizationId: S.String,
|
|
456
|
+
name: S.String,
|
|
457
|
+
oidcConfig: OidcIdPConfigResponse,
|
|
458
|
+
emailDomains: IdentityProviderEmailDomainsList,
|
|
459
|
+
allowAnyDomain: S.Boolean,
|
|
460
|
+
trustEmailVerified: S.Boolean,
|
|
461
|
+
defaultAssignedRoleIds: IdentityProviderDefaultAssignedRoleIdsList,
|
|
462
|
+
enabled: S.Boolean,
|
|
463
|
+
createdAt: S.String,
|
|
464
|
+
updatedAt: S.String,
|
|
465
|
+
}),
|
|
466
|
+
).annotate({
|
|
467
|
+
identifier: "IdentityProvider",
|
|
468
|
+
}) as any as S.Schema<IdentityProvider>;
|
|
469
|
+
|
|
470
|
+
/** Organization member role for the invitee */
|
|
471
|
+
export type CreateOrganizationInvitationRequestRole = "owner" | "member";
|
|
472
|
+
export const CreateOrganizationInvitationRequestRole = S.String;
|
|
473
|
+
|
|
474
|
+
/** Array of assigned role IDs for the invitee */
|
|
475
|
+
export type CreateOrganizationInvitationRequestAssignedRoleIdsList =
|
|
476
|
+
Array<string>;
|
|
477
|
+
export const CreateOrganizationInvitationRequestAssignedRoleIdsList =
|
|
478
|
+
/*@__PURE__*/ S.Array(
|
|
479
|
+
S.String,
|
|
480
|
+
) as any as S.Schema<CreateOrganizationInvitationRequestAssignedRoleIdsList>;
|
|
481
|
+
|
|
482
|
+
export interface CreateOrganizationInvitationRequest {
|
|
483
|
+
/** Organization ID */
|
|
484
|
+
organizationId: string;
|
|
485
|
+
/** Email address of the invitee */
|
|
486
|
+
email: string;
|
|
487
|
+
/** Organization member role for the invitee */
|
|
488
|
+
role: CreateOrganizationInvitationRequestRole | (string & {});
|
|
489
|
+
/** Array of assigned role IDs for the invitee */
|
|
490
|
+
assignedRoleIds: CreateOrganizationInvitationRequestAssignedRoleIdsList;
|
|
491
|
+
/** Expiration date of the invitation */
|
|
492
|
+
expiresAt?: string;
|
|
493
|
+
}
|
|
494
|
+
export const CreateOrganizationInvitationRequest = /*@__PURE__*/ S.suspend(() =>
|
|
495
|
+
S.Struct({
|
|
496
|
+
organizationId: S.String.pipe(T.Label()),
|
|
497
|
+
email: S.String,
|
|
498
|
+
role: CreateOrganizationInvitationRequestRole,
|
|
499
|
+
assignedRoleIds: CreateOrganizationInvitationRequestAssignedRoleIdsList,
|
|
500
|
+
expiresAt: S.optional(S.String),
|
|
501
|
+
}).pipe(
|
|
502
|
+
T.Http({
|
|
503
|
+
method: "POST",
|
|
504
|
+
uri: "/organizations/{organizationId}/invitations",
|
|
505
|
+
code: 200,
|
|
506
|
+
}),
|
|
507
|
+
),
|
|
508
|
+
).annotate({
|
|
509
|
+
identifier: "CreateOrganizationInvitationRequest",
|
|
510
|
+
}) as any as S.Schema<CreateOrganizationInvitationRequest>;
|
|
511
|
+
|
|
512
|
+
export type CreateOrganizationRoleRequestPermissionsItem =
|
|
513
|
+
| "write:registries"
|
|
514
|
+
| "delete:registries"
|
|
515
|
+
| "write:snapshots"
|
|
516
|
+
| "delete:snapshots"
|
|
517
|
+
| "write:sandboxes"
|
|
518
|
+
| "delete:sandboxes"
|
|
519
|
+
| "read:volumes"
|
|
520
|
+
| "write:volumes"
|
|
521
|
+
| "delete:volumes"
|
|
522
|
+
| "write:regions"
|
|
523
|
+
| "delete:regions"
|
|
524
|
+
| "read:runners"
|
|
525
|
+
| "write:runners"
|
|
526
|
+
| "delete:runners"
|
|
527
|
+
| "read:audit_logs"
|
|
528
|
+
| "manage:api_keys"
|
|
529
|
+
| "manage:secrets"
|
|
530
|
+
| "read:limits"
|
|
531
|
+
| "manage:sso"
|
|
532
|
+
| "read:billing"
|
|
533
|
+
| "manage:billing";
|
|
534
|
+
export const CreateOrganizationRoleRequestPermissionsItem = S.String;
|
|
535
|
+
|
|
536
|
+
/** The list of permissions assigned to the role */
|
|
537
|
+
export type CreateOrganizationRoleRequestPermissionsList = Array<
|
|
538
|
+
CreateOrganizationRoleRequestPermissionsItem | (string & {})
|
|
539
|
+
>;
|
|
540
|
+
export const CreateOrganizationRoleRequestPermissionsList =
|
|
541
|
+
/*@__PURE__*/ S.Array(
|
|
542
|
+
CreateOrganizationRoleRequestPermissionsItem,
|
|
543
|
+
) as any as S.Schema<CreateOrganizationRoleRequestPermissionsList>;
|
|
544
|
+
|
|
545
|
+
export interface CreateOrganizationRoleRequest {
|
|
546
|
+
/** Organization ID */
|
|
547
|
+
organizationId: string;
|
|
548
|
+
/** The name of the role */
|
|
549
|
+
name: string;
|
|
550
|
+
/** The description of the role */
|
|
551
|
+
description: string;
|
|
552
|
+
/** The list of permissions assigned to the role */
|
|
553
|
+
permissions: CreateOrganizationRoleRequestPermissionsList;
|
|
554
|
+
}
|
|
555
|
+
export const CreateOrganizationRoleRequest = /*@__PURE__*/ S.suspend(() =>
|
|
556
|
+
S.Struct({
|
|
557
|
+
organizationId: S.String.pipe(T.Label()),
|
|
558
|
+
name: S.String,
|
|
559
|
+
description: S.String,
|
|
560
|
+
permissions: CreateOrganizationRoleRequestPermissionsList,
|
|
561
|
+
}).pipe(
|
|
562
|
+
T.Http({
|
|
563
|
+
method: "POST",
|
|
564
|
+
uri: "/organizations/{organizationId}/roles",
|
|
565
|
+
code: 200,
|
|
566
|
+
}),
|
|
567
|
+
),
|
|
568
|
+
).annotate({
|
|
569
|
+
identifier: "CreateOrganizationRoleRequest",
|
|
570
|
+
}) as any as S.Schema<CreateOrganizationRoleRequest>;
|
|
571
|
+
|
|
572
|
+
export interface CreateRegionRequest {
|
|
573
|
+
/** Use with JWT to specify the organization ID */
|
|
574
|
+
xDaytonaOrganizationID?: string;
|
|
575
|
+
/** Region name */
|
|
576
|
+
name: string;
|
|
577
|
+
/** Proxy URL for the region */
|
|
578
|
+
proxyUrl?: string | null;
|
|
579
|
+
/** SSH Gateway URL for the region */
|
|
580
|
+
sshGatewayUrl?: string | null;
|
|
581
|
+
/** Snapshot Manager URL for the region */
|
|
582
|
+
snapshotManagerUrl?: string | null;
|
|
583
|
+
/** OTel collector endpoint for sandboxes created in this region. When set, sandbox OTel data is sent to this endpoint instead of the Daytona-hosted collector and will not be available in the Daytona analytics API or dashboard. */
|
|
584
|
+
otelEndpoint?: string | null;
|
|
585
|
+
}
|
|
586
|
+
export const CreateRegionRequest = /*@__PURE__*/ S.suspend(() =>
|
|
587
|
+
S.Struct({
|
|
588
|
+
xDaytonaOrganizationID: S.optional(
|
|
589
|
+
S.String.pipe(T.Header("X-Daytona-Organization-ID")),
|
|
590
|
+
),
|
|
591
|
+
name: S.String,
|
|
592
|
+
proxyUrl: S.optional(S.NullOr(S.String)),
|
|
593
|
+
sshGatewayUrl: S.optional(S.NullOr(S.String)),
|
|
594
|
+
snapshotManagerUrl: S.optional(S.NullOr(S.String)),
|
|
595
|
+
otelEndpoint: S.optional(S.NullOr(S.String)),
|
|
596
|
+
}).pipe(T.Http({ method: "POST", uri: "/regions", code: 200 })),
|
|
597
|
+
).annotate({
|
|
598
|
+
identifier: "CreateRegionRequest",
|
|
599
|
+
}) as any as S.Schema<CreateRegionRequest>;
|
|
600
|
+
|
|
601
|
+
export interface CreateRegionResponse {
|
|
602
|
+
/** ID of the created region */
|
|
603
|
+
id: string;
|
|
604
|
+
/** Proxy API key for the region */
|
|
605
|
+
proxyApiKey?: string | null;
|
|
606
|
+
/** SSH Gateway API key for the region */
|
|
607
|
+
sshGatewayApiKey?: string | null;
|
|
608
|
+
/** Snapshot Manager username for the region */
|
|
609
|
+
snapshotManagerUsername?: string | null;
|
|
610
|
+
/** Snapshot Manager password for the region */
|
|
611
|
+
snapshotManagerPassword?: string | Redacted.Redacted<string> | null;
|
|
612
|
+
}
|
|
613
|
+
export const CreateRegionResponse = /*@__PURE__*/ S.suspend(() =>
|
|
614
|
+
S.Struct({
|
|
615
|
+
id: S.String,
|
|
616
|
+
proxyApiKey: S.optional(S.NullOr(S.String)),
|
|
617
|
+
sshGatewayApiKey: S.optional(S.NullOr(S.String)),
|
|
618
|
+
snapshotManagerUsername: S.optional(S.NullOr(S.String)),
|
|
619
|
+
snapshotManagerPassword: S.optional(
|
|
620
|
+
S.NullOr(S.String).pipe(T.SensitiveValue({})),
|
|
621
|
+
),
|
|
622
|
+
}),
|
|
623
|
+
).annotate({
|
|
624
|
+
identifier: "CreateRegionResponse",
|
|
625
|
+
}) as any as S.Schema<CreateRegionResponse>;
|
|
626
|
+
|
|
627
|
+
export interface DeclineOrganizationInvitationRequest {
|
|
628
|
+
/** Invitation ID */
|
|
629
|
+
invitationId: string;
|
|
630
|
+
}
|
|
631
|
+
export const DeclineOrganizationInvitationRequest = /*@__PURE__*/ S.suspend(
|
|
632
|
+
() =>
|
|
633
|
+
S.Struct({
|
|
634
|
+
invitationId: S.String.pipe(T.Label()),
|
|
635
|
+
}).pipe(
|
|
636
|
+
T.Http({
|
|
637
|
+
method: "POST",
|
|
638
|
+
uri: "/organizations/invitations/{invitationId}/decline",
|
|
639
|
+
code: 200,
|
|
640
|
+
}),
|
|
641
|
+
),
|
|
642
|
+
).annotate({
|
|
643
|
+
identifier: "DeclineOrganizationInvitationRequest",
|
|
644
|
+
}) as any as S.Schema<DeclineOrganizationInvitationRequest>;
|
|
645
|
+
|
|
646
|
+
export interface DeclineOrganizationInvitationResponse {}
|
|
647
|
+
export const DeclineOrganizationInvitationResponse = /*@__PURE__*/ S.suspend(
|
|
648
|
+
() => S.Struct({}),
|
|
649
|
+
).annotate({
|
|
650
|
+
identifier: "DeclineOrganizationInvitationResponse",
|
|
651
|
+
}) as any as S.Schema<DeclineOrganizationInvitationResponse>;
|
|
652
|
+
|
|
653
|
+
export interface DeleteOrganizationRequest {
|
|
654
|
+
/** Organization ID */
|
|
655
|
+
organizationId: string;
|
|
656
|
+
}
|
|
657
|
+
export const DeleteOrganizationRequest = /*@__PURE__*/ S.suspend(() =>
|
|
658
|
+
S.Struct({
|
|
659
|
+
organizationId: S.String.pipe(T.Label()),
|
|
660
|
+
}).pipe(
|
|
661
|
+
T.Http({
|
|
662
|
+
method: "DELETE",
|
|
663
|
+
uri: "/organizations/{organizationId}",
|
|
664
|
+
code: 200,
|
|
665
|
+
}),
|
|
666
|
+
),
|
|
667
|
+
).annotate({
|
|
668
|
+
identifier: "DeleteOrganizationRequest",
|
|
669
|
+
}) as any as S.Schema<DeleteOrganizationRequest>;
|
|
670
|
+
|
|
671
|
+
export interface DeleteOrganizationResponse {}
|
|
672
|
+
export const DeleteOrganizationResponse = /*@__PURE__*/ S.suspend(() =>
|
|
673
|
+
S.Struct({}),
|
|
674
|
+
).annotate({
|
|
675
|
+
identifier: "DeleteOrganizationResponse",
|
|
676
|
+
}) as any as S.Schema<DeleteOrganizationResponse>;
|
|
677
|
+
|
|
678
|
+
export interface DeleteOrganizationIdentityProviderRequest {
|
|
679
|
+
/** Organization ID */
|
|
680
|
+
organizationId: string;
|
|
681
|
+
/** Identity provider ID */
|
|
682
|
+
id: string;
|
|
683
|
+
}
|
|
684
|
+
export const DeleteOrganizationIdentityProviderRequest =
|
|
685
|
+
/*@__PURE__*/ S.suspend(() =>
|
|
686
|
+
S.Struct({
|
|
687
|
+
organizationId: S.String.pipe(T.Label()),
|
|
688
|
+
id: S.String.pipe(T.Label()),
|
|
689
|
+
}).pipe(
|
|
690
|
+
T.Http({
|
|
691
|
+
method: "DELETE",
|
|
692
|
+
uri: "/organizations/{organizationId}/identity-providers/{id}",
|
|
693
|
+
code: 200,
|
|
694
|
+
}),
|
|
695
|
+
),
|
|
696
|
+
).annotate({
|
|
697
|
+
identifier: "DeleteOrganizationIdentityProviderRequest",
|
|
698
|
+
}) as any as S.Schema<DeleteOrganizationIdentityProviderRequest>;
|
|
699
|
+
|
|
700
|
+
export interface DeleteOrganizationIdentityProviderResponse {}
|
|
701
|
+
export const DeleteOrganizationIdentityProviderResponse =
|
|
702
|
+
/*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
|
|
703
|
+
identifier: "DeleteOrganizationIdentityProviderResponse",
|
|
704
|
+
}) as any as S.Schema<DeleteOrganizationIdentityProviderResponse>;
|
|
705
|
+
|
|
706
|
+
export interface DeleteOrganizationMemberRequest {
|
|
707
|
+
/** Organization ID */
|
|
708
|
+
organizationId: string;
|
|
709
|
+
/** User ID */
|
|
710
|
+
userId: string;
|
|
711
|
+
}
|
|
712
|
+
export const DeleteOrganizationMemberRequest = /*@__PURE__*/ S.suspend(() =>
|
|
713
|
+
S.Struct({
|
|
714
|
+
organizationId: S.String.pipe(T.Label()),
|
|
715
|
+
userId: S.String.pipe(T.Label()),
|
|
716
|
+
}).pipe(
|
|
717
|
+
T.Http({
|
|
718
|
+
method: "DELETE",
|
|
719
|
+
uri: "/organizations/{organizationId}/users/{userId}",
|
|
720
|
+
code: 200,
|
|
721
|
+
}),
|
|
722
|
+
),
|
|
723
|
+
).annotate({
|
|
724
|
+
identifier: "DeleteOrganizationMemberRequest",
|
|
725
|
+
}) as any as S.Schema<DeleteOrganizationMemberRequest>;
|
|
726
|
+
|
|
727
|
+
export interface DeleteOrganizationMemberResponse {}
|
|
728
|
+
export const DeleteOrganizationMemberResponse = /*@__PURE__*/ S.suspend(() =>
|
|
729
|
+
S.Struct({}),
|
|
730
|
+
).annotate({
|
|
731
|
+
identifier: "DeleteOrganizationMemberResponse",
|
|
732
|
+
}) as any as S.Schema<DeleteOrganizationMemberResponse>;
|
|
733
|
+
|
|
734
|
+
export interface DeleteOrganizationOtelConfigRequest {
|
|
735
|
+
/** Organization ID */
|
|
736
|
+
organizationId: string;
|
|
737
|
+
}
|
|
738
|
+
export const DeleteOrganizationOtelConfigRequest = /*@__PURE__*/ S.suspend(() =>
|
|
739
|
+
S.Struct({
|
|
740
|
+
organizationId: S.String.pipe(T.Label()),
|
|
741
|
+
}).pipe(
|
|
742
|
+
T.Http({
|
|
743
|
+
method: "DELETE",
|
|
744
|
+
uri: "/organizations/{organizationId}/otel-config",
|
|
745
|
+
code: 200,
|
|
746
|
+
}),
|
|
747
|
+
),
|
|
748
|
+
).annotate({
|
|
749
|
+
identifier: "DeleteOrganizationOtelConfigRequest",
|
|
750
|
+
}) as any as S.Schema<DeleteOrganizationOtelConfigRequest>;
|
|
751
|
+
|
|
752
|
+
export interface DeleteOrganizationOtelConfigResponse {}
|
|
753
|
+
export const DeleteOrganizationOtelConfigResponse = /*@__PURE__*/ S.suspend(
|
|
754
|
+
() => S.Struct({}),
|
|
755
|
+
).annotate({
|
|
756
|
+
identifier: "DeleteOrganizationOtelConfigResponse",
|
|
757
|
+
}) as any as S.Schema<DeleteOrganizationOtelConfigResponse>;
|
|
758
|
+
|
|
759
|
+
export interface DeleteOrganizationRoleRequest {
|
|
760
|
+
/** Organization ID */
|
|
761
|
+
organizationId: string;
|
|
762
|
+
/** Role ID */
|
|
763
|
+
roleId: string;
|
|
764
|
+
}
|
|
765
|
+
export const DeleteOrganizationRoleRequest = /*@__PURE__*/ S.suspend(() =>
|
|
766
|
+
S.Struct({
|
|
767
|
+
organizationId: S.String.pipe(T.Label()),
|
|
768
|
+
roleId: S.String.pipe(T.Label()),
|
|
769
|
+
}).pipe(
|
|
770
|
+
T.Http({
|
|
771
|
+
method: "DELETE",
|
|
772
|
+
uri: "/organizations/{organizationId}/roles/{roleId}",
|
|
773
|
+
code: 200,
|
|
774
|
+
}),
|
|
775
|
+
),
|
|
776
|
+
).annotate({
|
|
777
|
+
identifier: "DeleteOrganizationRoleRequest",
|
|
778
|
+
}) as any as S.Schema<DeleteOrganizationRoleRequest>;
|
|
779
|
+
|
|
780
|
+
export interface DeleteOrganizationRoleResponse {}
|
|
781
|
+
export const DeleteOrganizationRoleResponse = /*@__PURE__*/ S.suspend(() =>
|
|
782
|
+
S.Struct({}),
|
|
783
|
+
).annotate({
|
|
784
|
+
identifier: "DeleteOrganizationRoleResponse",
|
|
785
|
+
}) as any as S.Schema<DeleteOrganizationRoleResponse>;
|
|
786
|
+
|
|
787
|
+
export interface DeleteRegionRequest {
|
|
788
|
+
/** Region ID */
|
|
789
|
+
id: string;
|
|
790
|
+
/** Use with JWT to specify the organization ID */
|
|
791
|
+
xDaytonaOrganizationID?: string;
|
|
792
|
+
}
|
|
793
|
+
export const DeleteRegionRequest = /*@__PURE__*/ S.suspend(() =>
|
|
794
|
+
S.Struct({
|
|
795
|
+
id: S.String.pipe(T.Label()),
|
|
796
|
+
xDaytonaOrganizationID: S.optional(
|
|
797
|
+
S.String.pipe(T.Header("X-Daytona-Organization-ID")),
|
|
798
|
+
),
|
|
799
|
+
}).pipe(T.Http({ method: "DELETE", uri: "/regions/{id}", code: 200 })),
|
|
800
|
+
).annotate({
|
|
801
|
+
identifier: "DeleteRegionRequest",
|
|
802
|
+
}) as any as S.Schema<DeleteRegionRequest>;
|
|
803
|
+
|
|
804
|
+
export interface DeleteRegionResponse {}
|
|
805
|
+
export const DeleteRegionResponse = /*@__PURE__*/ S.suspend(() =>
|
|
806
|
+
S.Struct({}),
|
|
807
|
+
).annotate({
|
|
808
|
+
identifier: "DeleteRegionResponse",
|
|
809
|
+
}) as any as S.Schema<DeleteRegionResponse>;
|
|
810
|
+
|
|
811
|
+
/** Which setup flow to open: sso for a single sign-on connection, dsync for SCIM directory sync */
|
|
812
|
+
export type WorkosAdminPortalIntent = "sso" | "dsync";
|
|
813
|
+
export const WorkosAdminPortalIntent = S.String;
|
|
814
|
+
|
|
815
|
+
export interface GenerateWorkosAdminPortalLinkRequest {
|
|
816
|
+
/** Organization ID */
|
|
817
|
+
organizationId: string;
|
|
818
|
+
/** Which setup flow to open: sso for a single sign-on connection, dsync for SCIM directory sync */
|
|
819
|
+
intent: WorkosAdminPortalIntent | (string & {});
|
|
820
|
+
}
|
|
821
|
+
export const GenerateWorkosAdminPortalLinkRequest = /*@__PURE__*/ S.suspend(
|
|
822
|
+
() =>
|
|
823
|
+
S.Struct({
|
|
824
|
+
organizationId: S.String.pipe(T.Label()),
|
|
825
|
+
intent: WorkosAdminPortalIntent,
|
|
826
|
+
}).pipe(
|
|
827
|
+
T.Http({
|
|
828
|
+
method: "POST",
|
|
829
|
+
uri: "/organizations/{organizationId}/identity-providers/workos-admin-portal-link",
|
|
830
|
+
code: 200,
|
|
831
|
+
}),
|
|
832
|
+
),
|
|
833
|
+
).annotate({
|
|
834
|
+
identifier: "GenerateWorkosAdminPortalLinkRequest",
|
|
835
|
+
}) as any as S.Schema<GenerateWorkosAdminPortalLinkRequest>;
|
|
836
|
+
|
|
837
|
+
export interface WorkosAdminPortalLink {
|
|
838
|
+
/** Single-purpose WorkOS Admin Portal URL. Expires five minutes after issuance; open it immediately. */
|
|
839
|
+
link: string;
|
|
840
|
+
}
|
|
841
|
+
export const WorkosAdminPortalLink = /*@__PURE__*/ S.suspend(() =>
|
|
842
|
+
S.Struct({
|
|
843
|
+
link: S.String,
|
|
844
|
+
}),
|
|
845
|
+
).annotate({
|
|
846
|
+
identifier: "WorkosAdminPortalLink",
|
|
847
|
+
}) as any as S.Schema<WorkosAdminPortalLink>;
|
|
848
|
+
|
|
849
|
+
export interface GetGpuCapacityRequest {
|
|
850
|
+
/** Organization ID */
|
|
851
|
+
organizationId: string;
|
|
852
|
+
}
|
|
853
|
+
export const GetGpuCapacityRequest = /*@__PURE__*/ S.suspend(() =>
|
|
854
|
+
S.Struct({
|
|
855
|
+
organizationId: S.String.pipe(T.Label()),
|
|
856
|
+
}).pipe(
|
|
857
|
+
T.Http({
|
|
858
|
+
method: "GET",
|
|
859
|
+
uri: "/organizations/{organizationId}/gpu-capacity",
|
|
860
|
+
code: 200,
|
|
861
|
+
}),
|
|
862
|
+
),
|
|
863
|
+
).annotate({
|
|
864
|
+
identifier: "GetGpuCapacityRequest",
|
|
865
|
+
}) as any as S.Schema<GetGpuCapacityRequest>;
|
|
866
|
+
|
|
867
|
+
export type GpuType =
|
|
868
|
+
| "H100"
|
|
869
|
+
| "H200"
|
|
870
|
+
| "RTX-PRO-6000"
|
|
871
|
+
| "RTX-4090"
|
|
872
|
+
| "RTX-5090"
|
|
873
|
+
| "MI355X";
|
|
874
|
+
export const GpuType = S.String;
|
|
875
|
+
|
|
876
|
+
export interface GpuCapacity {
|
|
877
|
+
gpuType: GpuType;
|
|
878
|
+
/** GPU units available for on-demand placement across schedulable runners in the shared US fleet, including capacity occupied by spot sandboxes that are immediately reclaimable. */
|
|
879
|
+
availableOnDemand: number;
|
|
880
|
+
/** GPU units currently free for spot placement across schedulable runners in the shared US fleet. */
|
|
881
|
+
availableSpot: number;
|
|
882
|
+
}
|
|
883
|
+
export const GpuCapacity = /*@__PURE__*/ S.suspend(() =>
|
|
884
|
+
S.Struct({
|
|
885
|
+
gpuType: GpuType,
|
|
886
|
+
availableOnDemand: S.Number,
|
|
887
|
+
availableSpot: S.Number,
|
|
888
|
+
}),
|
|
889
|
+
).annotate({ identifier: "GpuCapacity" }) as any as S.Schema<GpuCapacity>;
|
|
890
|
+
|
|
891
|
+
export type GpuCapacityResponseCapacityList = Array<GpuCapacity>;
|
|
892
|
+
export const GpuCapacityResponseCapacityList = /*@__PURE__*/ S.Array(
|
|
893
|
+
GpuCapacity,
|
|
894
|
+
) as any as S.Schema<GpuCapacityResponseCapacityList>;
|
|
895
|
+
|
|
896
|
+
export interface GpuCapacityResponse {
|
|
897
|
+
/** Time at which this capacity snapshot was calculated. Responses may be cached for up to five seconds. */
|
|
898
|
+
observedAt: string;
|
|
899
|
+
capacity: GpuCapacityResponseCapacityList;
|
|
900
|
+
}
|
|
901
|
+
export const GpuCapacityResponse = /*@__PURE__*/ S.suspend(() =>
|
|
902
|
+
S.Struct({
|
|
903
|
+
observedAt: S.String,
|
|
904
|
+
capacity: GpuCapacityResponseCapacityList,
|
|
905
|
+
}),
|
|
906
|
+
).annotate({
|
|
907
|
+
identifier: "GpuCapacityResponse",
|
|
908
|
+
}) as any as S.Schema<GpuCapacityResponse>;
|
|
909
|
+
|
|
910
|
+
export interface GetOrganizationRequest {
|
|
911
|
+
/** Organization ID */
|
|
912
|
+
organizationId: string;
|
|
913
|
+
}
|
|
914
|
+
export const GetOrganizationRequest = /*@__PURE__*/ S.suspend(() =>
|
|
915
|
+
S.Struct({
|
|
916
|
+
organizationId: S.String.pipe(T.Label()),
|
|
917
|
+
}).pipe(
|
|
918
|
+
T.Http({
|
|
919
|
+
method: "GET",
|
|
920
|
+
uri: "/organizations/{organizationId}",
|
|
921
|
+
code: 200,
|
|
922
|
+
}),
|
|
923
|
+
),
|
|
924
|
+
).annotate({
|
|
925
|
+
identifier: "GetOrganizationRequest",
|
|
926
|
+
}) as any as S.Schema<GetOrganizationRequest>;
|
|
927
|
+
|
|
928
|
+
export interface GetOrganizationIdentityProviderRequest {
|
|
929
|
+
/** Organization ID */
|
|
930
|
+
organizationId: string;
|
|
931
|
+
/** Identity provider ID */
|
|
932
|
+
id: string;
|
|
933
|
+
}
|
|
934
|
+
export const GetOrganizationIdentityProviderRequest = /*@__PURE__*/ S.suspend(
|
|
935
|
+
() =>
|
|
936
|
+
S.Struct({
|
|
937
|
+
organizationId: S.String.pipe(T.Label()),
|
|
938
|
+
id: S.String.pipe(T.Label()),
|
|
939
|
+
}).pipe(
|
|
940
|
+
T.Http({
|
|
941
|
+
method: "GET",
|
|
942
|
+
uri: "/organizations/{organizationId}/identity-providers/{id}",
|
|
943
|
+
code: 200,
|
|
944
|
+
}),
|
|
945
|
+
),
|
|
946
|
+
).annotate({
|
|
947
|
+
identifier: "GetOrganizationIdentityProviderRequest",
|
|
948
|
+
}) as any as S.Schema<GetOrganizationIdentityProviderRequest>;
|
|
949
|
+
|
|
950
|
+
export interface GetOrganizationInvitationsCountForAuthenticatedUserRequest {}
|
|
951
|
+
export const GetOrganizationInvitationsCountForAuthenticatedUserRequest =
|
|
952
|
+
/*@__PURE__*/ S.suspend(() =>
|
|
953
|
+
S.Struct({}).pipe(
|
|
954
|
+
T.Http({
|
|
955
|
+
method: "GET",
|
|
956
|
+
uri: "/organizations/invitations/count",
|
|
957
|
+
code: 200,
|
|
958
|
+
}),
|
|
959
|
+
),
|
|
960
|
+
).annotate({
|
|
961
|
+
identifier: "GetOrganizationInvitationsCountForAuthenticatedUserRequest",
|
|
962
|
+
}) as any as S.Schema<GetOrganizationInvitationsCountForAuthenticatedUserRequest>;
|
|
963
|
+
|
|
964
|
+
export type GetOrganizationInvitationsCountForAuthenticatedUserResponse =
|
|
965
|
+
number;
|
|
966
|
+
export const GetOrganizationInvitationsCountForAuthenticatedUserResponse =
|
|
967
|
+
/*@__PURE__*/ S.suspend(() => S.Number.pipe(T.RawResponseRoot())).annotate({
|
|
968
|
+
identifier: "GetOrganizationInvitationsCountForAuthenticatedUserResponse",
|
|
969
|
+
}) as any as S.Schema<GetOrganizationInvitationsCountForAuthenticatedUserResponse>;
|
|
970
|
+
|
|
971
|
+
export interface GetOrganizationOtelConfigRequest {
|
|
972
|
+
/** Organization ID */
|
|
973
|
+
organizationId: string;
|
|
974
|
+
}
|
|
975
|
+
export const GetOrganizationOtelConfigRequest = /*@__PURE__*/ S.suspend(() =>
|
|
976
|
+
S.Struct({
|
|
977
|
+
organizationId: S.String.pipe(T.Label()),
|
|
978
|
+
}).pipe(
|
|
979
|
+
T.Http({
|
|
980
|
+
method: "GET",
|
|
981
|
+
uri: "/organizations/{organizationId}/otel-config",
|
|
982
|
+
code: 200,
|
|
983
|
+
}),
|
|
984
|
+
),
|
|
985
|
+
).annotate({
|
|
986
|
+
identifier: "GetOrganizationOtelConfigRequest",
|
|
987
|
+
}) as any as S.Schema<GetOrganizationOtelConfigRequest>;
|
|
988
|
+
|
|
989
|
+
export interface GetOrganizationOtelConfigBySandboxAuthTokenRequest {
|
|
990
|
+
/** Sandbox Auth Token */
|
|
991
|
+
authToken: string;
|
|
992
|
+
}
|
|
993
|
+
export const GetOrganizationOtelConfigBySandboxAuthTokenRequest =
|
|
994
|
+
/*@__PURE__*/ S.suspend(() =>
|
|
995
|
+
S.Struct({
|
|
996
|
+
authToken: S.String.pipe(T.Label()),
|
|
997
|
+
}).pipe(
|
|
998
|
+
T.Http({
|
|
999
|
+
method: "GET",
|
|
1000
|
+
uri: "/organizations/otel-config/by-sandbox-auth-token/{authToken}",
|
|
1001
|
+
code: 200,
|
|
1002
|
+
}),
|
|
1003
|
+
),
|
|
1004
|
+
).annotate({
|
|
1005
|
+
identifier: "GetOrganizationOtelConfigBySandboxAuthTokenRequest",
|
|
1006
|
+
}) as any as S.Schema<GetOrganizationOtelConfigBySandboxAuthTokenRequest>;
|
|
1007
|
+
|
|
1008
|
+
export interface GetOrganizationUsageOverviewRequest {
|
|
1009
|
+
/** Organization ID */
|
|
1010
|
+
organizationId: string;
|
|
1011
|
+
}
|
|
1012
|
+
export const GetOrganizationUsageOverviewRequest = /*@__PURE__*/ S.suspend(() =>
|
|
1013
|
+
S.Struct({
|
|
1014
|
+
organizationId: S.String.pipe(T.Label()),
|
|
1015
|
+
}).pipe(
|
|
1016
|
+
T.Http({
|
|
1017
|
+
method: "GET",
|
|
1018
|
+
uri: "/organizations/{organizationId}/usage",
|
|
1019
|
+
code: 200,
|
|
1020
|
+
}),
|
|
1021
|
+
),
|
|
1022
|
+
).annotate({
|
|
1023
|
+
identifier: "GetOrganizationUsageOverviewRequest",
|
|
1024
|
+
}) as any as S.Schema<GetOrganizationUsageOverviewRequest>;
|
|
1025
|
+
|
|
1026
|
+
export type SandboxClass = "linux-vm" | "container" | "android" | "windows";
|
|
1027
|
+
export const SandboxClass = S.String;
|
|
1028
|
+
|
|
1029
|
+
export type RegionUsageOverviewAllowedGpuTypesList = Array<GpuType>;
|
|
1030
|
+
export const RegionUsageOverviewAllowedGpuTypesList = /*@__PURE__*/ S.Array(
|
|
1031
|
+
GpuType,
|
|
1032
|
+
) as any as S.Schema<RegionUsageOverviewAllowedGpuTypesList>;
|
|
1033
|
+
|
|
1034
|
+
export interface RegionUsageOverview {
|
|
1035
|
+
regionId: string;
|
|
1036
|
+
sandboxClass: SandboxClass;
|
|
1037
|
+
totalCpuQuota: number;
|
|
1038
|
+
currentCpuUsage: number;
|
|
1039
|
+
totalMemoryQuota: number;
|
|
1040
|
+
currentMemoryUsage: number;
|
|
1041
|
+
totalDiskQuota: number;
|
|
1042
|
+
currentDiskUsage: number;
|
|
1043
|
+
totalGpuQuota: number;
|
|
1044
|
+
currentGpuUsage: number;
|
|
1045
|
+
allowedGpuTypes?: RegionUsageOverviewAllowedGpuTypesList;
|
|
1046
|
+
maxCpuPerSandbox: number | null;
|
|
1047
|
+
maxMemoryPerSandbox: number | null;
|
|
1048
|
+
maxDiskPerSandbox: number | null;
|
|
1049
|
+
maxDiskPerNonEphemeralSandbox: number | null;
|
|
1050
|
+
/** CPU maximum per requested GPU unit for GPU sandboxes. */
|
|
1051
|
+
maxCpuPerGpu: number | null;
|
|
1052
|
+
/** Memory maximum per requested GPU unit for GPU sandboxes. */
|
|
1053
|
+
maxMemoryPerGpu: number | null;
|
|
1054
|
+
/** Disk maximum per requested GPU unit for GPU sandboxes. */
|
|
1055
|
+
maxDiskPerGpu: number | null;
|
|
1056
|
+
}
|
|
1057
|
+
export const RegionUsageOverview = /*@__PURE__*/ S.suspend(() =>
|
|
1058
|
+
S.Struct({
|
|
1059
|
+
regionId: S.String,
|
|
1060
|
+
sandboxClass: SandboxClass,
|
|
1061
|
+
totalCpuQuota: S.Number,
|
|
1062
|
+
currentCpuUsage: S.Number,
|
|
1063
|
+
totalMemoryQuota: S.Number,
|
|
1064
|
+
currentMemoryUsage: S.Number,
|
|
1065
|
+
totalDiskQuota: S.Number,
|
|
1066
|
+
currentDiskUsage: S.Number,
|
|
1067
|
+
totalGpuQuota: S.Number,
|
|
1068
|
+
currentGpuUsage: S.Number,
|
|
1069
|
+
allowedGpuTypes: S.optional(RegionUsageOverviewAllowedGpuTypesList),
|
|
1070
|
+
maxCpuPerSandbox: S.NullOr(S.Number),
|
|
1071
|
+
maxMemoryPerSandbox: S.NullOr(S.Number),
|
|
1072
|
+
maxDiskPerSandbox: S.NullOr(S.Number),
|
|
1073
|
+
maxDiskPerNonEphemeralSandbox: S.NullOr(S.Number),
|
|
1074
|
+
maxCpuPerGpu: S.NullOr(S.Number),
|
|
1075
|
+
maxMemoryPerGpu: S.NullOr(S.Number),
|
|
1076
|
+
maxDiskPerGpu: S.NullOr(S.Number),
|
|
1077
|
+
}),
|
|
1078
|
+
).annotate({
|
|
1079
|
+
identifier: "RegionUsageOverview",
|
|
1080
|
+
}) as any as S.Schema<RegionUsageOverview>;
|
|
1081
|
+
|
|
1082
|
+
export type OrganizationUsageOverviewRegionUsageList =
|
|
1083
|
+
Array<RegionUsageOverview>;
|
|
1084
|
+
export const OrganizationUsageOverviewRegionUsageList = /*@__PURE__*/ S.Array(
|
|
1085
|
+
RegionUsageOverview,
|
|
1086
|
+
) as any as S.Schema<OrganizationUsageOverviewRegionUsageList>;
|
|
1087
|
+
|
|
1088
|
+
export interface OrganizationUsageOverview {
|
|
1089
|
+
regionUsage: OrganizationUsageOverviewRegionUsageList;
|
|
1090
|
+
totalSnapshotQuota: number;
|
|
1091
|
+
currentSnapshotUsage: number;
|
|
1092
|
+
totalVolumeQuota: number;
|
|
1093
|
+
currentVolumeUsage: number;
|
|
1094
|
+
}
|
|
1095
|
+
export const OrganizationUsageOverview = /*@__PURE__*/ S.suspend(() =>
|
|
1096
|
+
S.Struct({
|
|
1097
|
+
regionUsage: OrganizationUsageOverviewRegionUsageList,
|
|
1098
|
+
totalSnapshotQuota: S.Number,
|
|
1099
|
+
currentSnapshotUsage: S.Number,
|
|
1100
|
+
totalVolumeQuota: S.Number,
|
|
1101
|
+
currentVolumeUsage: S.Number,
|
|
1102
|
+
}),
|
|
1103
|
+
).annotate({
|
|
1104
|
+
identifier: "OrganizationUsageOverview",
|
|
1105
|
+
}) as any as S.Schema<OrganizationUsageOverview>;
|
|
1106
|
+
|
|
1107
|
+
export interface GetRegionRequest {
|
|
1108
|
+
/** Region ID */
|
|
1109
|
+
id: string;
|
|
1110
|
+
/** Use with JWT to specify the organization ID */
|
|
1111
|
+
xDaytonaOrganizationID?: string;
|
|
1112
|
+
}
|
|
1113
|
+
export const GetRegionRequest = /*@__PURE__*/ S.suspend(() =>
|
|
1114
|
+
S.Struct({
|
|
1115
|
+
id: S.String.pipe(T.Label()),
|
|
1116
|
+
xDaytonaOrganizationID: S.optional(
|
|
1117
|
+
S.String.pipe(T.Header("X-Daytona-Organization-ID")),
|
|
1118
|
+
),
|
|
1119
|
+
}).pipe(T.Http({ method: "GET", uri: "/regions/{id}", code: 200 })),
|
|
1120
|
+
).annotate({
|
|
1121
|
+
identifier: "GetRegionRequest",
|
|
1122
|
+
}) as any as S.Schema<GetRegionRequest>;
|
|
1123
|
+
|
|
1124
|
+
/** The type of the region */
|
|
1125
|
+
export type RegionType = "shared" | "dedicated" | "custom";
|
|
1126
|
+
export const RegionType = S.String;
|
|
1127
|
+
|
|
1128
|
+
export interface Region {
|
|
1129
|
+
/** Region ID */
|
|
1130
|
+
id: string;
|
|
1131
|
+
/** Region name */
|
|
1132
|
+
name: string;
|
|
1133
|
+
/** Organization ID */
|
|
1134
|
+
organizationId?: string | null;
|
|
1135
|
+
/** The type of the region */
|
|
1136
|
+
regionType: RegionType;
|
|
1137
|
+
/** Creation timestamp */
|
|
1138
|
+
createdAt: string;
|
|
1139
|
+
/** Last update timestamp */
|
|
1140
|
+
updatedAt: string;
|
|
1141
|
+
/** Proxy URL for the region */
|
|
1142
|
+
proxyUrl?: string | null;
|
|
1143
|
+
/** SSH Gateway URL for the region */
|
|
1144
|
+
sshGatewayUrl?: string | null;
|
|
1145
|
+
/** Snapshot Manager URL for the region */
|
|
1146
|
+
snapshotManagerUrl?: string | null;
|
|
1147
|
+
/** OTel collector endpoint for sandboxes created in this region. When set, sandbox OTel data is sent to this endpoint instead of the Daytona-hosted collector and will not be available in the Daytona analytics API or dashboard. */
|
|
1148
|
+
otelEndpoint?: string | null;
|
|
1149
|
+
}
|
|
1150
|
+
export const Region = /*@__PURE__*/ S.suspend(() =>
|
|
1151
|
+
S.Struct({
|
|
1152
|
+
id: S.String,
|
|
1153
|
+
name: S.String,
|
|
1154
|
+
organizationId: S.optional(S.NullOr(S.String)),
|
|
1155
|
+
regionType: RegionType,
|
|
1156
|
+
createdAt: S.String,
|
|
1157
|
+
updatedAt: S.String,
|
|
1158
|
+
proxyUrl: S.optional(S.NullOr(S.String)),
|
|
1159
|
+
sshGatewayUrl: S.optional(S.NullOr(S.String)),
|
|
1160
|
+
snapshotManagerUrl: S.optional(S.NullOr(S.String)),
|
|
1161
|
+
otelEndpoint: S.optional(S.NullOr(S.String)),
|
|
1162
|
+
}),
|
|
1163
|
+
).annotate({ identifier: "Region" }) as any as S.Schema<Region>;
|
|
1164
|
+
|
|
1165
|
+
export interface GetSandboxIdentityBySandboxAuthTokenRequest {
|
|
1166
|
+
/** Sandbox Auth Token */
|
|
1167
|
+
authToken: string;
|
|
1168
|
+
}
|
|
1169
|
+
export const GetSandboxIdentityBySandboxAuthTokenRequest =
|
|
1170
|
+
/*@__PURE__*/ S.suspend(() =>
|
|
1171
|
+
S.Struct({
|
|
1172
|
+
authToken: S.String.pipe(T.Label()),
|
|
1173
|
+
}).pipe(
|
|
1174
|
+
T.Http({
|
|
1175
|
+
method: "GET",
|
|
1176
|
+
uri: "/organizations/sandbox-identity/by-sandbox-auth-token/{authToken}",
|
|
1177
|
+
code: 200,
|
|
1178
|
+
}),
|
|
1179
|
+
),
|
|
1180
|
+
).annotate({
|
|
1181
|
+
identifier: "GetSandboxIdentityBySandboxAuthTokenRequest",
|
|
1182
|
+
}) as any as S.Schema<GetSandboxIdentityBySandboxAuthTokenRequest>;
|
|
1183
|
+
|
|
1184
|
+
export interface SandboxIdentity {
|
|
1185
|
+
/** Sandbox ID */
|
|
1186
|
+
sandboxId: string;
|
|
1187
|
+
/** Organization ID */
|
|
1188
|
+
organizationId: string;
|
|
1189
|
+
}
|
|
1190
|
+
export const SandboxIdentity = /*@__PURE__*/ S.suspend(() =>
|
|
1191
|
+
S.Struct({
|
|
1192
|
+
sandboxId: S.String,
|
|
1193
|
+
organizationId: S.String,
|
|
1194
|
+
}),
|
|
1195
|
+
).annotate({
|
|
1196
|
+
identifier: "SandboxIdentity",
|
|
1197
|
+
}) as any as S.Schema<SandboxIdentity>;
|
|
1198
|
+
|
|
1199
|
+
export interface LeaveOrganizationRequest {
|
|
1200
|
+
/** Organization ID */
|
|
1201
|
+
organizationId: string;
|
|
1202
|
+
}
|
|
1203
|
+
export const LeaveOrganizationRequest = /*@__PURE__*/ S.suspend(() =>
|
|
1204
|
+
S.Struct({
|
|
1205
|
+
organizationId: S.String.pipe(T.Label()),
|
|
1206
|
+
}).pipe(
|
|
1207
|
+
T.Http({
|
|
1208
|
+
method: "POST",
|
|
1209
|
+
uri: "/organizations/{organizationId}/leave",
|
|
1210
|
+
code: 200,
|
|
1211
|
+
}),
|
|
1212
|
+
),
|
|
1213
|
+
).annotate({
|
|
1214
|
+
identifier: "LeaveOrganizationRequest",
|
|
1215
|
+
}) as any as S.Schema<LeaveOrganizationRequest>;
|
|
1216
|
+
|
|
1217
|
+
export interface LeaveOrganizationResponse {}
|
|
1218
|
+
export const LeaveOrganizationResponse = /*@__PURE__*/ S.suspend(() =>
|
|
1219
|
+
S.Struct({}),
|
|
1220
|
+
).annotate({
|
|
1221
|
+
identifier: "LeaveOrganizationResponse",
|
|
1222
|
+
}) as any as S.Schema<LeaveOrganizationResponse>;
|
|
1223
|
+
|
|
1224
|
+
export interface ListAvailableRegionsRequest {
|
|
1225
|
+
/** Use with JWT to specify the organization ID */
|
|
1226
|
+
xDaytonaOrganizationID?: string;
|
|
1227
|
+
}
|
|
1228
|
+
export const ListAvailableRegionsRequest = /*@__PURE__*/ S.suspend(() =>
|
|
1229
|
+
S.Struct({
|
|
1230
|
+
xDaytonaOrganizationID: S.optional(
|
|
1231
|
+
S.String.pipe(T.Header("X-Daytona-Organization-ID")),
|
|
1232
|
+
),
|
|
1233
|
+
}).pipe(T.Http({ method: "GET", uri: "/regions", code: 200 })),
|
|
1234
|
+
).annotate({
|
|
1235
|
+
identifier: "ListAvailableRegionsRequest",
|
|
1236
|
+
}) as any as S.Schema<ListAvailableRegionsRequest>;
|
|
1237
|
+
|
|
1238
|
+
export type ListAvailableRegionsResponseBodyList = Array<Region>;
|
|
1239
|
+
export const ListAvailableRegionsResponseBodyList = /*@__PURE__*/ S.Array(
|
|
1240
|
+
Region,
|
|
1241
|
+
) as any as S.Schema<ListAvailableRegionsResponseBodyList>;
|
|
1242
|
+
|
|
1243
|
+
export type ListAvailableRegionsResponse = ListAvailableRegionsResponseBodyList;
|
|
1244
|
+
export const ListAvailableRegionsResponse = /*@__PURE__*/ S.suspend(() =>
|
|
1245
|
+
ListAvailableRegionsResponseBodyList.pipe(T.RawResponseRoot()),
|
|
1246
|
+
).annotate({
|
|
1247
|
+
identifier: "ListAvailableRegionsResponse",
|
|
1248
|
+
}) as any as S.Schema<ListAvailableRegionsResponse>;
|
|
1249
|
+
|
|
1250
|
+
export interface ListAvailableSandboxClassesRequest {
|
|
1251
|
+
/** Organization ID */
|
|
1252
|
+
organizationId: string;
|
|
1253
|
+
}
|
|
1254
|
+
export const ListAvailableSandboxClassesRequest = /*@__PURE__*/ S.suspend(() =>
|
|
1255
|
+
S.Struct({
|
|
1256
|
+
organizationId: S.String.pipe(T.Label()),
|
|
1257
|
+
}).pipe(
|
|
1258
|
+
T.Http({
|
|
1259
|
+
method: "GET",
|
|
1260
|
+
uri: "/organizations/{organizationId}/available-sandbox-classes",
|
|
1261
|
+
code: 200,
|
|
1262
|
+
}),
|
|
1263
|
+
),
|
|
1264
|
+
).annotate({
|
|
1265
|
+
identifier: "ListAvailableSandboxClassesRequest",
|
|
1266
|
+
}) as any as S.Schema<ListAvailableSandboxClassesRequest>;
|
|
1267
|
+
|
|
1268
|
+
export type AvailableSandboxClassAllowedGpuTypesList = Array<GpuType>;
|
|
1269
|
+
export const AvailableSandboxClassAllowedGpuTypesList = /*@__PURE__*/ S.Array(
|
|
1270
|
+
GpuType,
|
|
1271
|
+
) as any as S.Schema<AvailableSandboxClassAllowedGpuTypesList>;
|
|
1272
|
+
|
|
1273
|
+
export interface AvailableSandboxClass {
|
|
1274
|
+
regionId: string;
|
|
1275
|
+
sandboxClass: SandboxClass;
|
|
1276
|
+
gpuAvailable: boolean;
|
|
1277
|
+
allowedGpuTypes?: AvailableSandboxClassAllowedGpuTypesList;
|
|
1278
|
+
}
|
|
1279
|
+
export const AvailableSandboxClass = /*@__PURE__*/ S.suspend(() =>
|
|
1280
|
+
S.Struct({
|
|
1281
|
+
regionId: S.String,
|
|
1282
|
+
sandboxClass: SandboxClass,
|
|
1283
|
+
gpuAvailable: S.Boolean,
|
|
1284
|
+
allowedGpuTypes: S.optional(AvailableSandboxClassAllowedGpuTypesList),
|
|
1285
|
+
}),
|
|
1286
|
+
).annotate({
|
|
1287
|
+
identifier: "AvailableSandboxClass",
|
|
1288
|
+
}) as any as S.Schema<AvailableSandboxClass>;
|
|
1289
|
+
|
|
1290
|
+
export type ListAvailableSandboxClassesResponseBodyList =
|
|
1291
|
+
Array<AvailableSandboxClass>;
|
|
1292
|
+
export const ListAvailableSandboxClassesResponseBodyList =
|
|
1293
|
+
/*@__PURE__*/ S.Array(
|
|
1294
|
+
AvailableSandboxClass,
|
|
1295
|
+
) as any as S.Schema<ListAvailableSandboxClassesResponseBodyList>;
|
|
1296
|
+
|
|
1297
|
+
export type ListAvailableSandboxClassesResponse =
|
|
1298
|
+
ListAvailableSandboxClassesResponseBodyList;
|
|
1299
|
+
export const ListAvailableSandboxClassesResponse = /*@__PURE__*/ S.suspend(() =>
|
|
1300
|
+
ListAvailableSandboxClassesResponseBodyList.pipe(T.RawResponseRoot()),
|
|
1301
|
+
).annotate({
|
|
1302
|
+
identifier: "ListAvailableSandboxClassesResponse",
|
|
1303
|
+
}) as any as S.Schema<ListAvailableSandboxClassesResponse>;
|
|
1304
|
+
|
|
1305
|
+
export interface ListOrganizationIdentityProvidersRequest {
|
|
1306
|
+
/** Organization ID */
|
|
1307
|
+
organizationId: string;
|
|
1308
|
+
}
|
|
1309
|
+
export const ListOrganizationIdentityProvidersRequest = /*@__PURE__*/ S.suspend(
|
|
1310
|
+
() =>
|
|
1311
|
+
S.Struct({
|
|
1312
|
+
organizationId: S.String.pipe(T.Label()),
|
|
1313
|
+
}).pipe(
|
|
1314
|
+
T.Http({
|
|
1315
|
+
method: "GET",
|
|
1316
|
+
uri: "/organizations/{organizationId}/identity-providers",
|
|
1317
|
+
code: 200,
|
|
1318
|
+
}),
|
|
1319
|
+
),
|
|
1320
|
+
).annotate({
|
|
1321
|
+
identifier: "ListOrganizationIdentityProvidersRequest",
|
|
1322
|
+
}) as any as S.Schema<ListOrganizationIdentityProvidersRequest>;
|
|
1323
|
+
|
|
1324
|
+
export type ListOrganizationIdentityProvidersResponseBodyList =
|
|
1325
|
+
Array<IdentityProvider>;
|
|
1326
|
+
export const ListOrganizationIdentityProvidersResponseBodyList =
|
|
1327
|
+
/*@__PURE__*/ S.Array(
|
|
1328
|
+
IdentityProvider,
|
|
1329
|
+
) as any as S.Schema<ListOrganizationIdentityProvidersResponseBodyList>;
|
|
1330
|
+
|
|
1331
|
+
export type ListOrganizationIdentityProvidersResponse =
|
|
1332
|
+
ListOrganizationIdentityProvidersResponseBodyList;
|
|
1333
|
+
export const ListOrganizationIdentityProvidersResponse =
|
|
1334
|
+
/*@__PURE__*/ S.suspend(() =>
|
|
1335
|
+
ListOrganizationIdentityProvidersResponseBodyList.pipe(T.RawResponseRoot()),
|
|
1336
|
+
).annotate({
|
|
1337
|
+
identifier: "ListOrganizationIdentityProvidersResponse",
|
|
1338
|
+
}) as any as S.Schema<ListOrganizationIdentityProvidersResponse>;
|
|
1339
|
+
|
|
1340
|
+
export interface ListOrganizationInvitationsRequest {
|
|
1341
|
+
/** Organization ID */
|
|
1342
|
+
organizationId: string;
|
|
1343
|
+
}
|
|
1344
|
+
export const ListOrganizationInvitationsRequest = /*@__PURE__*/ S.suspend(() =>
|
|
1345
|
+
S.Struct({
|
|
1346
|
+
organizationId: S.String.pipe(T.Label()),
|
|
1347
|
+
}).pipe(
|
|
1348
|
+
T.Http({
|
|
1349
|
+
method: "GET",
|
|
1350
|
+
uri: "/organizations/{organizationId}/invitations",
|
|
1351
|
+
code: 200,
|
|
1352
|
+
}),
|
|
1353
|
+
),
|
|
1354
|
+
).annotate({
|
|
1355
|
+
identifier: "ListOrganizationInvitationsRequest",
|
|
1356
|
+
}) as any as S.Schema<ListOrganizationInvitationsRequest>;
|
|
1357
|
+
|
|
1358
|
+
export type ListOrganizationInvitationsResponseBodyList =
|
|
1359
|
+
Array<OrganizationInvitation>;
|
|
1360
|
+
export const ListOrganizationInvitationsResponseBodyList =
|
|
1361
|
+
/*@__PURE__*/ S.Array(
|
|
1362
|
+
OrganizationInvitation,
|
|
1363
|
+
) as any as S.Schema<ListOrganizationInvitationsResponseBodyList>;
|
|
1364
|
+
|
|
1365
|
+
export type ListOrganizationInvitationsResponse =
|
|
1366
|
+
ListOrganizationInvitationsResponseBodyList;
|
|
1367
|
+
export const ListOrganizationInvitationsResponse = /*@__PURE__*/ S.suspend(() =>
|
|
1368
|
+
ListOrganizationInvitationsResponseBodyList.pipe(T.RawResponseRoot()),
|
|
1369
|
+
).annotate({
|
|
1370
|
+
identifier: "ListOrganizationInvitationsResponse",
|
|
1371
|
+
}) as any as S.Schema<ListOrganizationInvitationsResponse>;
|
|
1372
|
+
|
|
1373
|
+
export interface ListOrganizationInvitationsForAuthenticatedUserRequest {}
|
|
1374
|
+
export const ListOrganizationInvitationsForAuthenticatedUserRequest =
|
|
1375
|
+
/*@__PURE__*/ S.suspend(() =>
|
|
1376
|
+
S.Struct({}).pipe(
|
|
1377
|
+
T.Http({ method: "GET", uri: "/organizations/invitations", code: 200 }),
|
|
1378
|
+
),
|
|
1379
|
+
).annotate({
|
|
1380
|
+
identifier: "ListOrganizationInvitationsForAuthenticatedUserRequest",
|
|
1381
|
+
}) as any as S.Schema<ListOrganizationInvitationsForAuthenticatedUserRequest>;
|
|
1382
|
+
|
|
1383
|
+
export type ListOrganizationInvitationsForAuthenticatedUserResponseBodyList =
|
|
1384
|
+
Array<OrganizationInvitation>;
|
|
1385
|
+
export const ListOrganizationInvitationsForAuthenticatedUserResponseBodyList =
|
|
1386
|
+
/*@__PURE__*/ S.Array(
|
|
1387
|
+
OrganizationInvitation,
|
|
1388
|
+
) as any as S.Schema<ListOrganizationInvitationsForAuthenticatedUserResponseBodyList>;
|
|
1389
|
+
|
|
1390
|
+
export type ListOrganizationInvitationsForAuthenticatedUserResponse =
|
|
1391
|
+
ListOrganizationInvitationsForAuthenticatedUserResponseBodyList;
|
|
1392
|
+
export const ListOrganizationInvitationsForAuthenticatedUserResponse =
|
|
1393
|
+
/*@__PURE__*/ S.suspend(() =>
|
|
1394
|
+
ListOrganizationInvitationsForAuthenticatedUserResponseBodyList.pipe(
|
|
1395
|
+
T.RawResponseRoot(),
|
|
1396
|
+
),
|
|
1397
|
+
).annotate({
|
|
1398
|
+
identifier: "ListOrganizationInvitationsForAuthenticatedUserResponse",
|
|
1399
|
+
}) as any as S.Schema<ListOrganizationInvitationsForAuthenticatedUserResponse>;
|
|
1400
|
+
|
|
1401
|
+
export interface ListOrganizationMembersRequest {
|
|
1402
|
+
/** Organization ID */
|
|
1403
|
+
organizationId: string;
|
|
1404
|
+
}
|
|
1405
|
+
export const ListOrganizationMembersRequest = /*@__PURE__*/ S.suspend(() =>
|
|
1406
|
+
S.Struct({
|
|
1407
|
+
organizationId: S.String.pipe(T.Label()),
|
|
1408
|
+
}).pipe(
|
|
1409
|
+
T.Http({
|
|
1410
|
+
method: "GET",
|
|
1411
|
+
uri: "/organizations/{organizationId}/users",
|
|
1412
|
+
code: 200,
|
|
1413
|
+
}),
|
|
1414
|
+
),
|
|
1415
|
+
).annotate({
|
|
1416
|
+
identifier: "ListOrganizationMembersRequest",
|
|
1417
|
+
}) as any as S.Schema<ListOrganizationMembersRequest>;
|
|
1418
|
+
|
|
1419
|
+
/** Member role */
|
|
1420
|
+
export type OrganizationUserRole = "owner" | "member";
|
|
1421
|
+
export const OrganizationUserRole = S.String;
|
|
1422
|
+
|
|
1423
|
+
/** Roles assigned to the user */
|
|
1424
|
+
export type OrganizationUserAssignedRolesList = Array<OrganizationRole>;
|
|
1425
|
+
export const OrganizationUserAssignedRolesList = /*@__PURE__*/ S.Array(
|
|
1426
|
+
OrganizationRole,
|
|
1427
|
+
) as any as S.Schema<OrganizationUserAssignedRolesList>;
|
|
1428
|
+
|
|
1429
|
+
export interface OrganizationUser {
|
|
1430
|
+
/** User ID */
|
|
1431
|
+
userId: string;
|
|
1432
|
+
/** Organization ID */
|
|
1433
|
+
organizationId: string;
|
|
1434
|
+
/** User name */
|
|
1435
|
+
name: string;
|
|
1436
|
+
/** User email */
|
|
1437
|
+
email: string;
|
|
1438
|
+
/** Member role */
|
|
1439
|
+
role: OrganizationUserRole;
|
|
1440
|
+
/** Roles assigned to the user */
|
|
1441
|
+
assignedRoles: OrganizationUserAssignedRolesList;
|
|
1442
|
+
/** Creation timestamp */
|
|
1443
|
+
createdAt: string;
|
|
1444
|
+
/** Last update timestamp */
|
|
1445
|
+
updatedAt: string;
|
|
1446
|
+
}
|
|
1447
|
+
export const OrganizationUser = /*@__PURE__*/ S.suspend(() =>
|
|
1448
|
+
S.Struct({
|
|
1449
|
+
userId: S.String,
|
|
1450
|
+
organizationId: S.String,
|
|
1451
|
+
name: S.String,
|
|
1452
|
+
email: S.String,
|
|
1453
|
+
role: OrganizationUserRole,
|
|
1454
|
+
assignedRoles: OrganizationUserAssignedRolesList,
|
|
1455
|
+
createdAt: S.String,
|
|
1456
|
+
updatedAt: S.String,
|
|
1457
|
+
}),
|
|
1458
|
+
).annotate({
|
|
1459
|
+
identifier: "OrganizationUser",
|
|
1460
|
+
}) as any as S.Schema<OrganizationUser>;
|
|
1461
|
+
|
|
1462
|
+
export type ListOrganizationMembersResponseBodyList = Array<OrganizationUser>;
|
|
1463
|
+
export const ListOrganizationMembersResponseBodyList = /*@__PURE__*/ S.Array(
|
|
1464
|
+
OrganizationUser,
|
|
1465
|
+
) as any as S.Schema<ListOrganizationMembersResponseBodyList>;
|
|
1466
|
+
|
|
1467
|
+
export type ListOrganizationMembersResponse =
|
|
1468
|
+
ListOrganizationMembersResponseBodyList;
|
|
1469
|
+
export const ListOrganizationMembersResponse = /*@__PURE__*/ S.suspend(() =>
|
|
1470
|
+
ListOrganizationMembersResponseBodyList.pipe(T.RawResponseRoot()),
|
|
1471
|
+
).annotate({
|
|
1472
|
+
identifier: "ListOrganizationMembersResponse",
|
|
1473
|
+
}) as any as S.Schema<ListOrganizationMembersResponse>;
|
|
1474
|
+
|
|
1475
|
+
export interface ListOrganizationRolesRequest {
|
|
1476
|
+
/** Organization ID */
|
|
1477
|
+
organizationId: string;
|
|
1478
|
+
}
|
|
1479
|
+
export const ListOrganizationRolesRequest = /*@__PURE__*/ S.suspend(() =>
|
|
1480
|
+
S.Struct({
|
|
1481
|
+
organizationId: S.String.pipe(T.Label()),
|
|
1482
|
+
}).pipe(
|
|
1483
|
+
T.Http({
|
|
1484
|
+
method: "GET",
|
|
1485
|
+
uri: "/organizations/{organizationId}/roles",
|
|
1486
|
+
code: 200,
|
|
1487
|
+
}),
|
|
1488
|
+
),
|
|
1489
|
+
).annotate({
|
|
1490
|
+
identifier: "ListOrganizationRolesRequest",
|
|
1491
|
+
}) as any as S.Schema<ListOrganizationRolesRequest>;
|
|
1492
|
+
|
|
1493
|
+
export type ListOrganizationRolesResponseBodyList = Array<OrganizationRole>;
|
|
1494
|
+
export const ListOrganizationRolesResponseBodyList = /*@__PURE__*/ S.Array(
|
|
1495
|
+
OrganizationRole,
|
|
1496
|
+
) as any as S.Schema<ListOrganizationRolesResponseBodyList>;
|
|
1497
|
+
|
|
1498
|
+
export type ListOrganizationRolesResponse =
|
|
1499
|
+
ListOrganizationRolesResponseBodyList;
|
|
1500
|
+
export const ListOrganizationRolesResponse = /*@__PURE__*/ S.suspend(() =>
|
|
1501
|
+
ListOrganizationRolesResponseBodyList.pipe(T.RawResponseRoot()),
|
|
1502
|
+
).annotate({
|
|
1503
|
+
identifier: "ListOrganizationRolesResponse",
|
|
1504
|
+
}) as any as S.Schema<ListOrganizationRolesResponse>;
|
|
1505
|
+
|
|
1506
|
+
export interface ListOrganizationsRequest {}
|
|
1507
|
+
export const ListOrganizationsRequest = /*@__PURE__*/ S.suspend(() =>
|
|
1508
|
+
S.Struct({}).pipe(
|
|
1509
|
+
T.Http({ method: "GET", uri: "/organizations", code: 200 }),
|
|
1510
|
+
),
|
|
1511
|
+
).annotate({
|
|
1512
|
+
identifier: "ListOrganizationsRequest",
|
|
1513
|
+
}) as any as S.Schema<ListOrganizationsRequest>;
|
|
1514
|
+
|
|
1515
|
+
export type ListOrganizationsResponseBodyList = Array<Organization>;
|
|
1516
|
+
export const ListOrganizationsResponseBodyList = /*@__PURE__*/ S.Array(
|
|
1517
|
+
Organization,
|
|
1518
|
+
) as any as S.Schema<ListOrganizationsResponseBodyList>;
|
|
1519
|
+
|
|
1520
|
+
export type ListOrganizationsResponse = ListOrganizationsResponseBodyList;
|
|
1521
|
+
export const ListOrganizationsResponse = /*@__PURE__*/ S.suspend(() =>
|
|
1522
|
+
ListOrganizationsResponseBodyList.pipe(T.RawResponseRoot()),
|
|
1523
|
+
).annotate({
|
|
1524
|
+
identifier: "ListOrganizationsResponse",
|
|
1525
|
+
}) as any as S.Schema<ListOrganizationsResponse>;
|
|
1526
|
+
|
|
1527
|
+
export interface RegenerateProxyApiKeyRequest {
|
|
1528
|
+
/** Region ID */
|
|
1529
|
+
id: string;
|
|
1530
|
+
/** Use with JWT to specify the organization ID */
|
|
1531
|
+
xDaytonaOrganizationID?: string;
|
|
1532
|
+
}
|
|
1533
|
+
export const RegenerateProxyApiKeyRequest = /*@__PURE__*/ S.suspend(() =>
|
|
1534
|
+
S.Struct({
|
|
1535
|
+
id: S.String.pipe(T.Label()),
|
|
1536
|
+
xDaytonaOrganizationID: S.optional(
|
|
1537
|
+
S.String.pipe(T.Header("X-Daytona-Organization-ID")),
|
|
1538
|
+
),
|
|
1539
|
+
}).pipe(
|
|
1540
|
+
T.Http({
|
|
1541
|
+
method: "POST",
|
|
1542
|
+
uri: "/regions/{id}/regenerate-proxy-api-key",
|
|
1543
|
+
code: 200,
|
|
1544
|
+
}),
|
|
1545
|
+
),
|
|
1546
|
+
).annotate({
|
|
1547
|
+
identifier: "RegenerateProxyApiKeyRequest",
|
|
1548
|
+
}) as any as S.Schema<RegenerateProxyApiKeyRequest>;
|
|
1549
|
+
|
|
1550
|
+
export interface RegenerateApiKeyResponse {
|
|
1551
|
+
/** The newly generated API key */
|
|
1552
|
+
apiKey: string | Redacted.Redacted<string>;
|
|
1553
|
+
}
|
|
1554
|
+
export const RegenerateApiKeyResponse = /*@__PURE__*/ S.suspend(() =>
|
|
1555
|
+
S.Struct({
|
|
1556
|
+
apiKey: S.String.pipe(T.SensitiveValue({})),
|
|
1557
|
+
}),
|
|
1558
|
+
).annotate({
|
|
1559
|
+
identifier: "RegenerateApiKeyResponse",
|
|
1560
|
+
}) as any as S.Schema<RegenerateApiKeyResponse>;
|
|
1561
|
+
|
|
1562
|
+
export interface RegenerateSnapshotManagerCredentialsRequest {
|
|
1563
|
+
/** Region ID */
|
|
1564
|
+
id: string;
|
|
1565
|
+
/** Use with JWT to specify the organization ID */
|
|
1566
|
+
xDaytonaOrganizationID?: string;
|
|
1567
|
+
}
|
|
1568
|
+
export const RegenerateSnapshotManagerCredentialsRequest =
|
|
1569
|
+
/*@__PURE__*/ S.suspend(() =>
|
|
1570
|
+
S.Struct({
|
|
1571
|
+
id: S.String.pipe(T.Label()),
|
|
1572
|
+
xDaytonaOrganizationID: S.optional(
|
|
1573
|
+
S.String.pipe(T.Header("X-Daytona-Organization-ID")),
|
|
1574
|
+
),
|
|
1575
|
+
}).pipe(
|
|
1576
|
+
T.Http({
|
|
1577
|
+
method: "POST",
|
|
1578
|
+
uri: "/regions/{id}/regenerate-snapshot-manager-credentials",
|
|
1579
|
+
code: 200,
|
|
1580
|
+
}),
|
|
1581
|
+
),
|
|
1582
|
+
).annotate({
|
|
1583
|
+
identifier: "RegenerateSnapshotManagerCredentialsRequest",
|
|
1584
|
+
}) as any as S.Schema<RegenerateSnapshotManagerCredentialsRequest>;
|
|
1585
|
+
|
|
1586
|
+
export interface SnapshotManagerCredentials {
|
|
1587
|
+
/** Snapshot Manager username for the region */
|
|
1588
|
+
username: string;
|
|
1589
|
+
/** Snapshot Manager password for the region */
|
|
1590
|
+
password: string | Redacted.Redacted<string>;
|
|
1591
|
+
}
|
|
1592
|
+
export const SnapshotManagerCredentials = /*@__PURE__*/ S.suspend(() =>
|
|
1593
|
+
S.Struct({
|
|
1594
|
+
username: S.String,
|
|
1595
|
+
password: S.String.pipe(T.SensitiveValue({})),
|
|
1596
|
+
}),
|
|
1597
|
+
).annotate({
|
|
1598
|
+
identifier: "SnapshotManagerCredentials",
|
|
1599
|
+
}) as any as S.Schema<SnapshotManagerCredentials>;
|
|
1600
|
+
|
|
1601
|
+
export interface RegenerateSshGatewayApiKeyRequest {
|
|
1602
|
+
/** Region ID */
|
|
1603
|
+
id: string;
|
|
1604
|
+
/** Use with JWT to specify the organization ID */
|
|
1605
|
+
xDaytonaOrganizationID?: string;
|
|
1606
|
+
}
|
|
1607
|
+
export const RegenerateSshGatewayApiKeyRequest = /*@__PURE__*/ S.suspend(() =>
|
|
1608
|
+
S.Struct({
|
|
1609
|
+
id: S.String.pipe(T.Label()),
|
|
1610
|
+
xDaytonaOrganizationID: S.optional(
|
|
1611
|
+
S.String.pipe(T.Header("X-Daytona-Organization-ID")),
|
|
1612
|
+
),
|
|
1613
|
+
}).pipe(
|
|
1614
|
+
T.Http({
|
|
1615
|
+
method: "POST",
|
|
1616
|
+
uri: "/regions/{id}/regenerate-ssh-gateway-api-key",
|
|
1617
|
+
code: 200,
|
|
1618
|
+
}),
|
|
1619
|
+
),
|
|
1620
|
+
).annotate({
|
|
1621
|
+
identifier: "RegenerateSshGatewayApiKeyRequest",
|
|
1622
|
+
}) as any as S.Schema<RegenerateSshGatewayApiKeyRequest>;
|
|
1623
|
+
|
|
1624
|
+
export interface SetOrganizationDefaultRegionRequest {
|
|
1625
|
+
/** Organization ID */
|
|
1626
|
+
organizationId: string;
|
|
1627
|
+
/** The ID of the default region for the organization */
|
|
1628
|
+
defaultRegionId: string;
|
|
1629
|
+
}
|
|
1630
|
+
export const SetOrganizationDefaultRegionRequest = /*@__PURE__*/ S.suspend(() =>
|
|
1631
|
+
S.Struct({
|
|
1632
|
+
organizationId: S.String.pipe(T.Label()),
|
|
1633
|
+
defaultRegionId: S.String,
|
|
1634
|
+
}).pipe(
|
|
1635
|
+
T.Http({
|
|
1636
|
+
method: "PATCH",
|
|
1637
|
+
uri: "/organizations/{organizationId}/default-region",
|
|
1638
|
+
code: 200,
|
|
1639
|
+
}),
|
|
1640
|
+
),
|
|
1641
|
+
).annotate({
|
|
1642
|
+
identifier: "SetOrganizationDefaultRegionRequest",
|
|
1643
|
+
}) as any as S.Schema<SetOrganizationDefaultRegionRequest>;
|
|
1644
|
+
|
|
1645
|
+
export interface SetOrganizationDefaultRegionResponse {}
|
|
1646
|
+
export const SetOrganizationDefaultRegionResponse = /*@__PURE__*/ S.suspend(
|
|
1647
|
+
() => S.Struct({}),
|
|
1648
|
+
).annotate({
|
|
1649
|
+
identifier: "SetOrganizationDefaultRegionResponse",
|
|
1650
|
+
}) as any as S.Schema<SetOrganizationDefaultRegionResponse>;
|
|
1651
|
+
|
|
1652
|
+
export interface TestOrganizationIdentityProviderConnectionRequest {
|
|
1653
|
+
/** Organization ID */
|
|
1654
|
+
organizationId: string;
|
|
1655
|
+
/** OIDC Issuer URL to test */
|
|
1656
|
+
issuerUrl: string;
|
|
1657
|
+
}
|
|
1658
|
+
export const TestOrganizationIdentityProviderConnectionRequest =
|
|
1659
|
+
/*@__PURE__*/ S.suspend(() =>
|
|
1660
|
+
S.Struct({
|
|
1661
|
+
organizationId: S.String.pipe(T.Label()),
|
|
1662
|
+
issuerUrl: S.String,
|
|
1663
|
+
}).pipe(
|
|
1664
|
+
T.Http({
|
|
1665
|
+
method: "POST",
|
|
1666
|
+
uri: "/organizations/{organizationId}/identity-providers/test-connection",
|
|
1667
|
+
code: 200,
|
|
1668
|
+
}),
|
|
1669
|
+
),
|
|
1670
|
+
).annotate({
|
|
1671
|
+
identifier: "TestOrganizationIdentityProviderConnectionRequest",
|
|
1672
|
+
}) as any as S.Schema<TestOrganizationIdentityProviderConnectionRequest>;
|
|
1673
|
+
|
|
1674
|
+
export interface TestIdentityProviderConnectionResponse {
|
|
1675
|
+
/** Whether the connection test was successful */
|
|
1676
|
+
success: boolean;
|
|
1677
|
+
/** The discovered issuer from the OIDC configuration */
|
|
1678
|
+
issuer?: string;
|
|
1679
|
+
/** Error message if the connection test failed */
|
|
1680
|
+
error?: string;
|
|
1681
|
+
}
|
|
1682
|
+
export const TestIdentityProviderConnectionResponse = /*@__PURE__*/ S.suspend(
|
|
1683
|
+
() =>
|
|
1684
|
+
S.Struct({
|
|
1685
|
+
success: S.Boolean,
|
|
1686
|
+
issuer: S.optional(S.String),
|
|
1687
|
+
error: S.optional(S.String),
|
|
1688
|
+
}),
|
|
1689
|
+
).annotate({
|
|
1690
|
+
identifier: "TestIdentityProviderConnectionResponse",
|
|
1691
|
+
}) as any as S.Schema<TestIdentityProviderConnectionResponse>;
|
|
1692
|
+
|
|
1693
|
+
/** Organization member role */
|
|
1694
|
+
export type UpdateAccessForOrganizationMemberRequestRole = "owner" | "member";
|
|
1695
|
+
export const UpdateAccessForOrganizationMemberRequestRole = S.String;
|
|
1696
|
+
|
|
1697
|
+
/** Array of assigned role IDs */
|
|
1698
|
+
export type UpdateAccessForOrganizationMemberRequestAssignedRoleIdsList =
|
|
1699
|
+
Array<string>;
|
|
1700
|
+
export const UpdateAccessForOrganizationMemberRequestAssignedRoleIdsList =
|
|
1701
|
+
/*@__PURE__*/ S.Array(
|
|
1702
|
+
S.String,
|
|
1703
|
+
) as any as S.Schema<UpdateAccessForOrganizationMemberRequestAssignedRoleIdsList>;
|
|
1704
|
+
|
|
1705
|
+
export interface UpdateAccessForOrganizationMemberRequest {
|
|
1706
|
+
/** Organization ID */
|
|
1707
|
+
organizationId: string;
|
|
1708
|
+
/** User ID */
|
|
1709
|
+
userId: string;
|
|
1710
|
+
/** Organization member role */
|
|
1711
|
+
role: UpdateAccessForOrganizationMemberRequestRole | (string & {});
|
|
1712
|
+
/** Array of assigned role IDs */
|
|
1713
|
+
assignedRoleIds: UpdateAccessForOrganizationMemberRequestAssignedRoleIdsList;
|
|
1714
|
+
}
|
|
1715
|
+
export const UpdateAccessForOrganizationMemberRequest = /*@__PURE__*/ S.suspend(
|
|
1716
|
+
() =>
|
|
1717
|
+
S.Struct({
|
|
1718
|
+
organizationId: S.String.pipe(T.Label()),
|
|
1719
|
+
userId: S.String.pipe(T.Label()),
|
|
1720
|
+
role: UpdateAccessForOrganizationMemberRequestRole,
|
|
1721
|
+
assignedRoleIds:
|
|
1722
|
+
UpdateAccessForOrganizationMemberRequestAssignedRoleIdsList,
|
|
1723
|
+
}).pipe(
|
|
1724
|
+
T.Http({
|
|
1725
|
+
method: "POST",
|
|
1726
|
+
uri: "/organizations/{organizationId}/users/{userId}/access",
|
|
1727
|
+
code: 200,
|
|
1728
|
+
}),
|
|
1729
|
+
),
|
|
1730
|
+
).annotate({
|
|
1731
|
+
identifier: "UpdateAccessForOrganizationMemberRequest",
|
|
1732
|
+
}) as any as S.Schema<UpdateAccessForOrganizationMemberRequest>;
|
|
1733
|
+
|
|
1734
|
+
export type UpdateExperimentalConfigRequestBodyMap = {
|
|
1735
|
+
[key: string]: unknown | undefined;
|
|
1736
|
+
};
|
|
1737
|
+
export const UpdateExperimentalConfigRequestBodyMap = /*@__PURE__*/ S.Record(
|
|
1738
|
+
S.String,
|
|
1739
|
+
S.Unknown,
|
|
1740
|
+
) as any as S.Schema<UpdateExperimentalConfigRequestBodyMap>;
|
|
1741
|
+
|
|
1742
|
+
export interface UpdateExperimentalConfigRequest {
|
|
1743
|
+
/** Organization ID */
|
|
1744
|
+
organizationId: string;
|
|
1745
|
+
body?: UpdateExperimentalConfigRequestBodyMap;
|
|
1746
|
+
}
|
|
1747
|
+
export const UpdateExperimentalConfigRequest = /*@__PURE__*/ S.suspend(() =>
|
|
1748
|
+
S.Struct({
|
|
1749
|
+
organizationId: S.String.pipe(T.Label()),
|
|
1750
|
+
body: S.optional(UpdateExperimentalConfigRequestBodyMap.pipe(T.HttpBody())),
|
|
1751
|
+
}).pipe(
|
|
1752
|
+
T.Http({
|
|
1753
|
+
method: "PUT",
|
|
1754
|
+
uri: "/organizations/{organizationId}/experimental-config",
|
|
1755
|
+
code: 200,
|
|
1756
|
+
}),
|
|
1757
|
+
),
|
|
1758
|
+
).annotate({
|
|
1759
|
+
identifier: "UpdateExperimentalConfigRequest",
|
|
1760
|
+
}) as any as S.Schema<UpdateExperimentalConfigRequest>;
|
|
1761
|
+
|
|
1762
|
+
export interface UpdateExperimentalConfigResponse {}
|
|
1763
|
+
export const UpdateExperimentalConfigResponse = /*@__PURE__*/ S.suspend(() =>
|
|
1764
|
+
S.Struct({}),
|
|
1765
|
+
).annotate({
|
|
1766
|
+
identifier: "UpdateExperimentalConfigResponse",
|
|
1767
|
+
}) as any as S.Schema<UpdateExperimentalConfigResponse>;
|
|
1768
|
+
|
|
1769
|
+
export interface UpdateOidcIdPConfig {
|
|
1770
|
+
/** OIDC Issuer URL */
|
|
1771
|
+
issuerUrl?: string;
|
|
1772
|
+
/** OAuth Client ID */
|
|
1773
|
+
clientId?: string;
|
|
1774
|
+
/** OAuth Client Secret */
|
|
1775
|
+
clientSecret?: string | Redacted.Redacted<string>;
|
|
1776
|
+
/** OAuth scopes */
|
|
1777
|
+
scope?: string;
|
|
1778
|
+
}
|
|
1779
|
+
export const UpdateOidcIdPConfig = /*@__PURE__*/ S.suspend(() =>
|
|
1780
|
+
S.Struct({
|
|
1781
|
+
issuerUrl: S.optional(S.String),
|
|
1782
|
+
clientId: S.optional(S.String),
|
|
1783
|
+
clientSecret: S.optional(S.String.pipe(T.SensitiveValue({}))),
|
|
1784
|
+
scope: S.optional(S.String),
|
|
1785
|
+
}),
|
|
1786
|
+
).annotate({
|
|
1787
|
+
identifier: "UpdateOidcIdPConfig",
|
|
1788
|
+
}) as any as S.Schema<UpdateOidcIdPConfig>;
|
|
1789
|
+
|
|
1790
|
+
/** Email domains used for IdP discovery on the login form and to validate the user identity returned by the IdP. If provided and `allowAnyDomain` is not being set to true, must contain at least one domain. To clear domains in the same request, set `allowAnyDomain: true` and `emailDomains: []`. */
|
|
1791
|
+
export type UpdateOrganizationIdentityProviderRequestEmailDomainsList =
|
|
1792
|
+
Array<string>;
|
|
1793
|
+
export const UpdateOrganizationIdentityProviderRequestEmailDomainsList =
|
|
1794
|
+
/*@__PURE__*/ S.Array(
|
|
1795
|
+
S.String,
|
|
1796
|
+
) as any as S.Schema<UpdateOrganizationIdentityProviderRequestEmailDomainsList>;
|
|
1797
|
+
|
|
1798
|
+
/** Organization role IDs assigned to users who join the organization via SSO through this identity provider. Roles must be global or belong to this organization. Empty grants the lowest access: membership with no resource permissions. */
|
|
1799
|
+
export type UpdateOrganizationIdentityProviderRequestDefaultAssignedRoleIdsList =
|
|
1800
|
+
Array<string>;
|
|
1801
|
+
export const UpdateOrganizationIdentityProviderRequestDefaultAssignedRoleIdsList =
|
|
1802
|
+
/*@__PURE__*/ S.Array(
|
|
1803
|
+
S.String,
|
|
1804
|
+
) as any as S.Schema<UpdateOrganizationIdentityProviderRequestDefaultAssignedRoleIdsList>;
|
|
1805
|
+
|
|
1806
|
+
export interface UpdateOrganizationIdentityProviderRequest {
|
|
1807
|
+
/** Organization ID */
|
|
1808
|
+
organizationId: string;
|
|
1809
|
+
/** Identity provider ID */
|
|
1810
|
+
id: string;
|
|
1811
|
+
/** Display name for the identity provider */
|
|
1812
|
+
name?: string;
|
|
1813
|
+
/** OIDC configuration */
|
|
1814
|
+
oidcConfig?: UpdateOidcIdPConfig;
|
|
1815
|
+
/** Email domains used for IdP discovery on the login form and to validate the user identity returned by the IdP. If provided and `allowAnyDomain` is not being set to true, must contain at least one domain. To clear domains in the same request, set `allowAnyDomain: true` and `emailDomains: []`. */
|
|
1816
|
+
emailDomains?: UpdateOrganizationIdentityProviderRequestEmailDomainsList;
|
|
1817
|
+
/** When true, the IdP accepts any email domain returned by the external provider. Disables the post-callback domain check and allows `emailDomains` to be empty. Only enable for trusted IdPs that strictly control which users can authenticate. */
|
|
1818
|
+
allowAnyDomain?: boolean;
|
|
1819
|
+
/** When true, skip the `email_verified` claim check on SSO logins through this identity provider. Only intended for providers that never emit the claim (e.g. Microsoft Entra ID). Risky: only enable if the IdP strictly controls its users' email addresses. */
|
|
1820
|
+
trustEmailVerified?: boolean;
|
|
1821
|
+
/** Organization role IDs assigned to users who join the organization via SSO through this identity provider. Roles must be global or belong to this organization. Empty grants the lowest access: membership with no resource permissions. */
|
|
1822
|
+
defaultAssignedRoleIds?: UpdateOrganizationIdentityProviderRequestDefaultAssignedRoleIdsList;
|
|
1823
|
+
/** Whether the identity provider is enabled */
|
|
1824
|
+
enabled?: boolean;
|
|
1825
|
+
}
|
|
1826
|
+
export const UpdateOrganizationIdentityProviderRequest =
|
|
1827
|
+
/*@__PURE__*/ S.suspend(() =>
|
|
1828
|
+
S.Struct({
|
|
1829
|
+
organizationId: S.String.pipe(T.Label()),
|
|
1830
|
+
id: S.String.pipe(T.Label()),
|
|
1831
|
+
name: S.optional(S.String),
|
|
1832
|
+
oidcConfig: S.optional(UpdateOidcIdPConfig),
|
|
1833
|
+
emailDomains: S.optional(
|
|
1834
|
+
UpdateOrganizationIdentityProviderRequestEmailDomainsList,
|
|
1835
|
+
),
|
|
1836
|
+
allowAnyDomain: S.optional(S.Boolean),
|
|
1837
|
+
trustEmailVerified: S.optional(S.Boolean),
|
|
1838
|
+
defaultAssignedRoleIds: S.optional(
|
|
1839
|
+
UpdateOrganizationIdentityProviderRequestDefaultAssignedRoleIdsList,
|
|
1840
|
+
),
|
|
1841
|
+
enabled: S.optional(S.Boolean),
|
|
1842
|
+
}).pipe(
|
|
1843
|
+
T.Http({
|
|
1844
|
+
method: "PATCH",
|
|
1845
|
+
uri: "/organizations/{organizationId}/identity-providers/{id}",
|
|
1846
|
+
code: 200,
|
|
1847
|
+
}),
|
|
1848
|
+
),
|
|
1849
|
+
).annotate({
|
|
1850
|
+
identifier: "UpdateOrganizationIdentityProviderRequest",
|
|
1851
|
+
}) as any as S.Schema<UpdateOrganizationIdentityProviderRequest>;
|
|
1852
|
+
|
|
1853
|
+
/** Organization member role */
|
|
1854
|
+
export type UpdateOrganizationInvitationRequestRole = "owner" | "member";
|
|
1855
|
+
export const UpdateOrganizationInvitationRequestRole = S.String;
|
|
1856
|
+
|
|
1857
|
+
/** Array of role IDs */
|
|
1858
|
+
export type UpdateOrganizationInvitationRequestAssignedRoleIdsList =
|
|
1859
|
+
Array<string>;
|
|
1860
|
+
export const UpdateOrganizationInvitationRequestAssignedRoleIdsList =
|
|
1861
|
+
/*@__PURE__*/ S.Array(
|
|
1862
|
+
S.String,
|
|
1863
|
+
) as any as S.Schema<UpdateOrganizationInvitationRequestAssignedRoleIdsList>;
|
|
1864
|
+
|
|
1865
|
+
export interface UpdateOrganizationInvitationRequest {
|
|
1866
|
+
/** Organization ID */
|
|
1867
|
+
organizationId: string;
|
|
1868
|
+
/** Invitation ID */
|
|
1869
|
+
invitationId: string;
|
|
1870
|
+
/** Organization member role */
|
|
1871
|
+
role: UpdateOrganizationInvitationRequestRole | (string & {});
|
|
1872
|
+
/** Array of role IDs */
|
|
1873
|
+
assignedRoleIds: UpdateOrganizationInvitationRequestAssignedRoleIdsList;
|
|
1874
|
+
/** Expiration date of the invitation */
|
|
1875
|
+
expiresAt?: string;
|
|
1876
|
+
}
|
|
1877
|
+
export const UpdateOrganizationInvitationRequest = /*@__PURE__*/ S.suspend(() =>
|
|
1878
|
+
S.Struct({
|
|
1879
|
+
organizationId: S.String.pipe(T.Label()),
|
|
1880
|
+
invitationId: S.String.pipe(T.Label()),
|
|
1881
|
+
role: UpdateOrganizationInvitationRequestRole,
|
|
1882
|
+
assignedRoleIds: UpdateOrganizationInvitationRequestAssignedRoleIdsList,
|
|
1883
|
+
expiresAt: S.optional(S.String),
|
|
1884
|
+
}).pipe(
|
|
1885
|
+
T.Http({
|
|
1886
|
+
method: "PUT",
|
|
1887
|
+
uri: "/organizations/{organizationId}/invitations/{invitationId}",
|
|
1888
|
+
code: 200,
|
|
1889
|
+
}),
|
|
1890
|
+
),
|
|
1891
|
+
).annotate({
|
|
1892
|
+
identifier: "UpdateOrganizationInvitationRequest",
|
|
1893
|
+
}) as any as S.Schema<UpdateOrganizationInvitationRequest>;
|
|
1894
|
+
|
|
1895
|
+
/** Headers */
|
|
1896
|
+
export type UpdateOrganizationOtelConfigRequestHeadersMap = {
|
|
1897
|
+
[key: string]: string | undefined;
|
|
1898
|
+
};
|
|
1899
|
+
export const UpdateOrganizationOtelConfigRequestHeadersMap =
|
|
1900
|
+
/*@__PURE__*/ S.Record(
|
|
1901
|
+
S.String,
|
|
1902
|
+
S.String,
|
|
1903
|
+
) as any as S.Schema<UpdateOrganizationOtelConfigRequestHeadersMap>;
|
|
1904
|
+
|
|
1905
|
+
export interface UpdateOrganizationOtelConfigRequest {
|
|
1906
|
+
/** Organization ID */
|
|
1907
|
+
organizationId: string;
|
|
1908
|
+
/** Endpoint */
|
|
1909
|
+
endpoint: string;
|
|
1910
|
+
/** Headers */
|
|
1911
|
+
headers?: UpdateOrganizationOtelConfigRequestHeadersMap | null;
|
|
1912
|
+
}
|
|
1913
|
+
export const UpdateOrganizationOtelConfigRequest = /*@__PURE__*/ S.suspend(() =>
|
|
1914
|
+
S.Struct({
|
|
1915
|
+
organizationId: S.String.pipe(T.Label()),
|
|
1916
|
+
endpoint: S.String,
|
|
1917
|
+
headers: S.optional(
|
|
1918
|
+
S.NullOr(UpdateOrganizationOtelConfigRequestHeadersMap),
|
|
1919
|
+
),
|
|
1920
|
+
}).pipe(
|
|
1921
|
+
T.Http({
|
|
1922
|
+
method: "PUT",
|
|
1923
|
+
uri: "/organizations/{organizationId}/otel-config",
|
|
1924
|
+
code: 200,
|
|
1925
|
+
}),
|
|
1926
|
+
),
|
|
1927
|
+
).annotate({
|
|
1928
|
+
identifier: "UpdateOrganizationOtelConfigRequest",
|
|
1929
|
+
}) as any as S.Schema<UpdateOrganizationOtelConfigRequest>;
|
|
1930
|
+
|
|
1931
|
+
export interface UpdateOrganizationOtelConfigResponse {}
|
|
1932
|
+
export const UpdateOrganizationOtelConfigResponse = /*@__PURE__*/ S.suspend(
|
|
1933
|
+
() => S.Struct({}),
|
|
1934
|
+
).annotate({
|
|
1935
|
+
identifier: "UpdateOrganizationOtelConfigResponse",
|
|
1936
|
+
}) as any as S.Schema<UpdateOrganizationOtelConfigResponse>;
|
|
1937
|
+
|
|
1938
|
+
export type UpdateOrganizationRoleRequestPermissionsItem =
|
|
1939
|
+
| "write:registries"
|
|
1940
|
+
| "delete:registries"
|
|
1941
|
+
| "write:snapshots"
|
|
1942
|
+
| "delete:snapshots"
|
|
1943
|
+
| "write:sandboxes"
|
|
1944
|
+
| "delete:sandboxes"
|
|
1945
|
+
| "read:volumes"
|
|
1946
|
+
| "write:volumes"
|
|
1947
|
+
| "delete:volumes"
|
|
1948
|
+
| "write:regions"
|
|
1949
|
+
| "delete:regions"
|
|
1950
|
+
| "read:runners"
|
|
1951
|
+
| "write:runners"
|
|
1952
|
+
| "delete:runners"
|
|
1953
|
+
| "read:audit_logs"
|
|
1954
|
+
| "manage:api_keys"
|
|
1955
|
+
| "manage:secrets"
|
|
1956
|
+
| "read:limits"
|
|
1957
|
+
| "manage:sso"
|
|
1958
|
+
| "read:billing"
|
|
1959
|
+
| "manage:billing";
|
|
1960
|
+
export const UpdateOrganizationRoleRequestPermissionsItem = S.String;
|
|
1961
|
+
|
|
1962
|
+
/** The list of permissions assigned to the role */
|
|
1963
|
+
export type UpdateOrganizationRoleRequestPermissionsList = Array<
|
|
1964
|
+
UpdateOrganizationRoleRequestPermissionsItem | (string & {})
|
|
1965
|
+
>;
|
|
1966
|
+
export const UpdateOrganizationRoleRequestPermissionsList =
|
|
1967
|
+
/*@__PURE__*/ S.Array(
|
|
1968
|
+
UpdateOrganizationRoleRequestPermissionsItem,
|
|
1969
|
+
) as any as S.Schema<UpdateOrganizationRoleRequestPermissionsList>;
|
|
1970
|
+
|
|
1971
|
+
export interface UpdateOrganizationRoleRequest {
|
|
1972
|
+
/** Organization ID */
|
|
1973
|
+
organizationId: string;
|
|
1974
|
+
/** Role ID */
|
|
1975
|
+
roleId: string;
|
|
1976
|
+
/** The name of the role */
|
|
1977
|
+
name: string;
|
|
1978
|
+
/** The description of the role */
|
|
1979
|
+
description: string;
|
|
1980
|
+
/** The list of permissions assigned to the role */
|
|
1981
|
+
permissions: UpdateOrganizationRoleRequestPermissionsList;
|
|
1982
|
+
}
|
|
1983
|
+
export const UpdateOrganizationRoleRequest = /*@__PURE__*/ S.suspend(() =>
|
|
1984
|
+
S.Struct({
|
|
1985
|
+
organizationId: S.String.pipe(T.Label()),
|
|
1986
|
+
roleId: S.String.pipe(T.Label()),
|
|
1987
|
+
name: S.String,
|
|
1988
|
+
description: S.String,
|
|
1989
|
+
permissions: UpdateOrganizationRoleRequestPermissionsList,
|
|
1990
|
+
}).pipe(
|
|
1991
|
+
T.Http({
|
|
1992
|
+
method: "PUT",
|
|
1993
|
+
uri: "/organizations/{organizationId}/roles/{roleId}",
|
|
1994
|
+
code: 200,
|
|
1995
|
+
}),
|
|
1996
|
+
),
|
|
1997
|
+
).annotate({
|
|
1998
|
+
identifier: "UpdateOrganizationRoleRequest",
|
|
1999
|
+
}) as any as S.Schema<UpdateOrganizationRoleRequest>;
|
|
2000
|
+
|
|
2001
|
+
export interface UpdateRegionRequest {
|
|
2002
|
+
/** Region ID */
|
|
2003
|
+
id: string;
|
|
2004
|
+
/** Use with JWT to specify the organization ID */
|
|
2005
|
+
xDaytonaOrganizationID?: string;
|
|
2006
|
+
/** Proxy URL for the region */
|
|
2007
|
+
proxyUrl?: string | null;
|
|
2008
|
+
/** SSH Gateway URL for the region */
|
|
2009
|
+
sshGatewayUrl?: string | null;
|
|
2010
|
+
/** Snapshot Manager URL for the region */
|
|
2011
|
+
snapshotManagerUrl?: string | null;
|
|
2012
|
+
/** OTel collector endpoint for sandboxes created in this region. When set, sandbox OTel data is sent to this endpoint instead of the Daytona-hosted collector and will not be available in the Daytona analytics API or dashboard. */
|
|
2013
|
+
otelEndpoint?: string | null;
|
|
2014
|
+
}
|
|
2015
|
+
export const UpdateRegionRequest = /*@__PURE__*/ S.suspend(() =>
|
|
2016
|
+
S.Struct({
|
|
2017
|
+
id: S.String.pipe(T.Label()),
|
|
2018
|
+
xDaytonaOrganizationID: S.optional(
|
|
2019
|
+
S.String.pipe(T.Header("X-Daytona-Organization-ID")),
|
|
2020
|
+
),
|
|
2021
|
+
proxyUrl: S.optional(S.NullOr(S.String)),
|
|
2022
|
+
sshGatewayUrl: S.optional(S.NullOr(S.String)),
|
|
2023
|
+
snapshotManagerUrl: S.optional(S.NullOr(S.String)),
|
|
2024
|
+
otelEndpoint: S.optional(S.NullOr(S.String)),
|
|
2025
|
+
}).pipe(T.Http({ method: "PATCH", uri: "/regions/{id}", code: 200 })),
|
|
2026
|
+
).annotate({
|
|
2027
|
+
identifier: "UpdateRegionRequest",
|
|
2028
|
+
}) as any as S.Schema<UpdateRegionRequest>;
|
|
2029
|
+
|
|
2030
|
+
export interface UpdateRegionResponse {}
|
|
2031
|
+
export const UpdateRegionResponse = /*@__PURE__*/ S.suspend(() =>
|
|
2032
|
+
S.Struct({}),
|
|
2033
|
+
).annotate({
|
|
2034
|
+
identifier: "UpdateRegionResponse",
|
|
2035
|
+
}) as any as S.Schema<UpdateRegionResponse>;
|
|
2036
|
+
|
|
2037
|
+
export type AcceptOrganizationInvitationError = DaytonaOpError;
|
|
2038
|
+
/** Accept organization invitation */
|
|
2039
|
+
export const acceptOrganizationInvitation: API.OperationMethod<
|
|
2040
|
+
AcceptOrganizationInvitationRequest,
|
|
2041
|
+
OrganizationInvitation,
|
|
2042
|
+
AcceptOrganizationInvitationError,
|
|
2043
|
+
DaytonaOpContext
|
|
2044
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
2045
|
+
input: AcceptOrganizationInvitationRequest,
|
|
2046
|
+
output: OrganizationInvitation,
|
|
2047
|
+
errors: [UnknownDaytonaError],
|
|
2048
|
+
protocol: DaytonaProtocol,
|
|
2049
|
+
retry: Retry.Retry,
|
|
2050
|
+
}));
|
|
2051
|
+
|
|
2052
|
+
export type CancelOrganizationInvitationError = DaytonaOpError;
|
|
2053
|
+
/** Cancel organization invitation */
|
|
2054
|
+
export const cancelOrganizationInvitation: API.OperationMethod<
|
|
2055
|
+
CancelOrganizationInvitationRequest,
|
|
2056
|
+
CancelOrganizationInvitationResponse,
|
|
2057
|
+
CancelOrganizationInvitationError,
|
|
2058
|
+
DaytonaOpContext
|
|
2059
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
2060
|
+
input: CancelOrganizationInvitationRequest,
|
|
2061
|
+
output: CancelOrganizationInvitationResponse,
|
|
2062
|
+
errors: [UnknownDaytonaError],
|
|
2063
|
+
protocol: DaytonaProtocol,
|
|
2064
|
+
retry: Retry.Retry,
|
|
2065
|
+
}));
|
|
2066
|
+
|
|
2067
|
+
export type CreateOrganizationError = DaytonaOpError;
|
|
2068
|
+
/** Create organization */
|
|
2069
|
+
export const createOrganization: API.OperationMethod<
|
|
2070
|
+
CreateOrganizationRequest,
|
|
2071
|
+
Organization,
|
|
2072
|
+
CreateOrganizationError,
|
|
2073
|
+
DaytonaOpContext
|
|
2074
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
2075
|
+
input: CreateOrganizationRequest,
|
|
2076
|
+
output: Organization,
|
|
2077
|
+
errors: [UnknownDaytonaError],
|
|
2078
|
+
protocol: DaytonaProtocol,
|
|
2079
|
+
retry: Retry.Retry,
|
|
2080
|
+
}));
|
|
2081
|
+
|
|
2082
|
+
export type CreateOrganizationIdentityProviderError = DaytonaOpError;
|
|
2083
|
+
/** Create organization identity provider */
|
|
2084
|
+
export const createOrganizationIdentityProvider: API.OperationMethod<
|
|
2085
|
+
CreateOrganizationIdentityProviderRequest,
|
|
2086
|
+
IdentityProvider,
|
|
2087
|
+
CreateOrganizationIdentityProviderError,
|
|
2088
|
+
DaytonaOpContext
|
|
2089
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
2090
|
+
input: CreateOrganizationIdentityProviderRequest,
|
|
2091
|
+
output: IdentityProvider,
|
|
2092
|
+
errors: [UnknownDaytonaError],
|
|
2093
|
+
protocol: DaytonaProtocol,
|
|
2094
|
+
retry: Retry.Retry,
|
|
2095
|
+
}));
|
|
2096
|
+
|
|
2097
|
+
export type CreateOrganizationInvitationError = DaytonaOpError;
|
|
2098
|
+
/** Create organization invitation */
|
|
2099
|
+
export const createOrganizationInvitation: API.OperationMethod<
|
|
2100
|
+
CreateOrganizationInvitationRequest,
|
|
2101
|
+
OrganizationInvitation,
|
|
2102
|
+
CreateOrganizationInvitationError,
|
|
2103
|
+
DaytonaOpContext
|
|
2104
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
2105
|
+
input: CreateOrganizationInvitationRequest,
|
|
2106
|
+
output: OrganizationInvitation,
|
|
2107
|
+
errors: [UnknownDaytonaError],
|
|
2108
|
+
protocol: DaytonaProtocol,
|
|
2109
|
+
retry: Retry.Retry,
|
|
2110
|
+
}));
|
|
2111
|
+
|
|
2112
|
+
export type CreateOrganizationRoleError = DaytonaOpError;
|
|
2113
|
+
/** Create organization role */
|
|
2114
|
+
export const createOrganizationRole: API.OperationMethod<
|
|
2115
|
+
CreateOrganizationRoleRequest,
|
|
2116
|
+
OrganizationRole,
|
|
2117
|
+
CreateOrganizationRoleError,
|
|
2118
|
+
DaytonaOpContext
|
|
2119
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
2120
|
+
input: CreateOrganizationRoleRequest,
|
|
2121
|
+
output: OrganizationRole,
|
|
2122
|
+
errors: [UnknownDaytonaError],
|
|
2123
|
+
protocol: DaytonaProtocol,
|
|
2124
|
+
retry: Retry.Retry,
|
|
2125
|
+
}));
|
|
2126
|
+
|
|
2127
|
+
export type CreateRegionError = DaytonaOpError;
|
|
2128
|
+
/** Create a new region */
|
|
2129
|
+
export const createRegion: API.OperationMethod<
|
|
2130
|
+
CreateRegionRequest,
|
|
2131
|
+
CreateRegionResponse,
|
|
2132
|
+
CreateRegionError,
|
|
2133
|
+
DaytonaOpContext
|
|
2134
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
2135
|
+
input: CreateRegionRequest,
|
|
2136
|
+
output: CreateRegionResponse,
|
|
2137
|
+
errors: [UnknownDaytonaError],
|
|
2138
|
+
protocol: DaytonaProtocol,
|
|
2139
|
+
retry: Retry.Retry,
|
|
2140
|
+
}));
|
|
2141
|
+
|
|
2142
|
+
export type DeclineOrganizationInvitationError = DaytonaOpError;
|
|
2143
|
+
/** Decline organization invitation */
|
|
2144
|
+
export const declineOrganizationInvitation: API.OperationMethod<
|
|
2145
|
+
DeclineOrganizationInvitationRequest,
|
|
2146
|
+
DeclineOrganizationInvitationResponse,
|
|
2147
|
+
DeclineOrganizationInvitationError,
|
|
2148
|
+
DaytonaOpContext
|
|
2149
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
2150
|
+
input: DeclineOrganizationInvitationRequest,
|
|
2151
|
+
output: DeclineOrganizationInvitationResponse,
|
|
2152
|
+
errors: [UnknownDaytonaError],
|
|
2153
|
+
protocol: DaytonaProtocol,
|
|
2154
|
+
retry: Retry.Retry,
|
|
2155
|
+
}));
|
|
2156
|
+
|
|
2157
|
+
export type DeleteOrganizationError = DaytonaOpError;
|
|
2158
|
+
/** Delete organization */
|
|
2159
|
+
export const deleteOrganization: API.OperationMethod<
|
|
2160
|
+
DeleteOrganizationRequest,
|
|
2161
|
+
DeleteOrganizationResponse,
|
|
2162
|
+
DeleteOrganizationError,
|
|
2163
|
+
DaytonaOpContext
|
|
2164
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
2165
|
+
input: DeleteOrganizationRequest,
|
|
2166
|
+
output: DeleteOrganizationResponse,
|
|
2167
|
+
errors: [UnknownDaytonaError],
|
|
2168
|
+
protocol: DaytonaProtocol,
|
|
2169
|
+
retry: Retry.Retry,
|
|
2170
|
+
}));
|
|
2171
|
+
|
|
2172
|
+
export type DeleteOrganizationIdentityProviderError = DaytonaOpError;
|
|
2173
|
+
/** Delete organization identity provider */
|
|
2174
|
+
export const deleteOrganizationIdentityProvider: API.OperationMethod<
|
|
2175
|
+
DeleteOrganizationIdentityProviderRequest,
|
|
2176
|
+
DeleteOrganizationIdentityProviderResponse,
|
|
2177
|
+
DeleteOrganizationIdentityProviderError,
|
|
2178
|
+
DaytonaOpContext
|
|
2179
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
2180
|
+
input: DeleteOrganizationIdentityProviderRequest,
|
|
2181
|
+
output: DeleteOrganizationIdentityProviderResponse,
|
|
2182
|
+
errors: [UnknownDaytonaError],
|
|
2183
|
+
protocol: DaytonaProtocol,
|
|
2184
|
+
retry: Retry.Retry,
|
|
2185
|
+
}));
|
|
2186
|
+
|
|
2187
|
+
export type DeleteOrganizationMemberError = DaytonaOpError;
|
|
2188
|
+
/** Delete organization member */
|
|
2189
|
+
export const deleteOrganizationMember: API.OperationMethod<
|
|
2190
|
+
DeleteOrganizationMemberRequest,
|
|
2191
|
+
DeleteOrganizationMemberResponse,
|
|
2192
|
+
DeleteOrganizationMemberError,
|
|
2193
|
+
DaytonaOpContext
|
|
2194
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
2195
|
+
input: DeleteOrganizationMemberRequest,
|
|
2196
|
+
output: DeleteOrganizationMemberResponse,
|
|
2197
|
+
errors: [UnknownDaytonaError],
|
|
2198
|
+
protocol: DaytonaProtocol,
|
|
2199
|
+
retry: Retry.Retry,
|
|
2200
|
+
}));
|
|
2201
|
+
|
|
2202
|
+
export type DeleteOrganizationOtelConfigError = DaytonaOpError;
|
|
2203
|
+
/** Delete organization OpenTelemetry configuration */
|
|
2204
|
+
export const deleteOrganizationOtelConfig: API.OperationMethod<
|
|
2205
|
+
DeleteOrganizationOtelConfigRequest,
|
|
2206
|
+
DeleteOrganizationOtelConfigResponse,
|
|
2207
|
+
DeleteOrganizationOtelConfigError,
|
|
2208
|
+
DaytonaOpContext
|
|
2209
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
2210
|
+
input: DeleteOrganizationOtelConfigRequest,
|
|
2211
|
+
output: DeleteOrganizationOtelConfigResponse,
|
|
2212
|
+
errors: [UnknownDaytonaError],
|
|
2213
|
+
protocol: DaytonaProtocol,
|
|
2214
|
+
retry: Retry.Retry,
|
|
2215
|
+
}));
|
|
2216
|
+
|
|
2217
|
+
export type DeleteOrganizationRoleError = DaytonaOpError;
|
|
2218
|
+
/** Delete organization role */
|
|
2219
|
+
export const deleteOrganizationRole: API.OperationMethod<
|
|
2220
|
+
DeleteOrganizationRoleRequest,
|
|
2221
|
+
DeleteOrganizationRoleResponse,
|
|
2222
|
+
DeleteOrganizationRoleError,
|
|
2223
|
+
DaytonaOpContext
|
|
2224
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
2225
|
+
input: DeleteOrganizationRoleRequest,
|
|
2226
|
+
output: DeleteOrganizationRoleResponse,
|
|
2227
|
+
errors: [UnknownDaytonaError],
|
|
2228
|
+
protocol: DaytonaProtocol,
|
|
2229
|
+
retry: Retry.Retry,
|
|
2230
|
+
}));
|
|
2231
|
+
|
|
2232
|
+
export type DeleteRegionError = DaytonaOpError;
|
|
2233
|
+
/** Delete a region */
|
|
2234
|
+
export const deleteRegion: API.OperationMethod<
|
|
2235
|
+
DeleteRegionRequest,
|
|
2236
|
+
DeleteRegionResponse,
|
|
2237
|
+
DeleteRegionError,
|
|
2238
|
+
DaytonaOpContext
|
|
2239
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
2240
|
+
input: DeleteRegionRequest,
|
|
2241
|
+
output: DeleteRegionResponse,
|
|
2242
|
+
errors: [UnknownDaytonaError],
|
|
2243
|
+
protocol: DaytonaProtocol,
|
|
2244
|
+
retry: Retry.Retry,
|
|
2245
|
+
}));
|
|
2246
|
+
|
|
2247
|
+
export type GenerateWorkosAdminPortalLinkError = DaytonaOpError;
|
|
2248
|
+
/** Generate a WorkOS Admin Portal link for configuring SSO or SCIM directory sync */
|
|
2249
|
+
export const generateWorkosAdminPortalLink: API.OperationMethod<
|
|
2250
|
+
GenerateWorkosAdminPortalLinkRequest,
|
|
2251
|
+
WorkosAdminPortalLink,
|
|
2252
|
+
GenerateWorkosAdminPortalLinkError,
|
|
2253
|
+
DaytonaOpContext
|
|
2254
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
2255
|
+
input: GenerateWorkosAdminPortalLinkRequest,
|
|
2256
|
+
output: WorkosAdminPortalLink,
|
|
2257
|
+
errors: [UnknownDaytonaError],
|
|
2258
|
+
protocol: DaytonaProtocol,
|
|
2259
|
+
retry: Retry.Retry,
|
|
2260
|
+
}));
|
|
2261
|
+
|
|
2262
|
+
export type GetGpuCapacityError = DaytonaOpError;
|
|
2263
|
+
/** Get shared US GPU capacity Returns a short-lived observation of the shared US GPU fleet. Organization quotas and entitlements are not applied. Capacity can change immediately and sandbox creation remains authoritative. */
|
|
2264
|
+
export const getGpuCapacity: API.OperationMethod<
|
|
2265
|
+
GetGpuCapacityRequest,
|
|
2266
|
+
GpuCapacityResponse,
|
|
2267
|
+
GetGpuCapacityError,
|
|
2268
|
+
DaytonaOpContext
|
|
2269
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
2270
|
+
input: GetGpuCapacityRequest,
|
|
2271
|
+
output: GpuCapacityResponse,
|
|
2272
|
+
errors: [UnknownDaytonaError],
|
|
2273
|
+
protocol: DaytonaProtocol,
|
|
2274
|
+
retry: Retry.Retry,
|
|
2275
|
+
}));
|
|
2276
|
+
|
|
2277
|
+
export type GetOrganizationError = DaytonaOpError;
|
|
2278
|
+
/** Get organization by ID */
|
|
2279
|
+
export const getOrganization: API.OperationMethod<
|
|
2280
|
+
GetOrganizationRequest,
|
|
2281
|
+
Organization,
|
|
2282
|
+
GetOrganizationError,
|
|
2283
|
+
DaytonaOpContext
|
|
2284
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
2285
|
+
input: GetOrganizationRequest,
|
|
2286
|
+
output: Organization,
|
|
2287
|
+
errors: [UnknownDaytonaError],
|
|
2288
|
+
protocol: DaytonaProtocol,
|
|
2289
|
+
retry: Retry.Retry,
|
|
2290
|
+
}));
|
|
2291
|
+
|
|
2292
|
+
export type GetOrganizationIdentityProviderError = DaytonaOpError;
|
|
2293
|
+
/** Get organization identity provider */
|
|
2294
|
+
export const getOrganizationIdentityProvider: API.OperationMethod<
|
|
2295
|
+
GetOrganizationIdentityProviderRequest,
|
|
2296
|
+
IdentityProvider,
|
|
2297
|
+
GetOrganizationIdentityProviderError,
|
|
2298
|
+
DaytonaOpContext
|
|
2299
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
2300
|
+
input: GetOrganizationIdentityProviderRequest,
|
|
2301
|
+
output: IdentityProvider,
|
|
2302
|
+
errors: [UnknownDaytonaError],
|
|
2303
|
+
protocol: DaytonaProtocol,
|
|
2304
|
+
retry: Retry.Retry,
|
|
2305
|
+
}));
|
|
2306
|
+
|
|
2307
|
+
export type GetOrganizationInvitationsCountForAuthenticatedUserError =
|
|
2308
|
+
DaytonaOpError;
|
|
2309
|
+
/** Get count of organization invitations for authenticated user */
|
|
2310
|
+
export const getOrganizationInvitationsCountForAuthenticatedUser: API.OperationMethod<
|
|
2311
|
+
GetOrganizationInvitationsCountForAuthenticatedUserRequest,
|
|
2312
|
+
GetOrganizationInvitationsCountForAuthenticatedUserResponse,
|
|
2313
|
+
GetOrganizationInvitationsCountForAuthenticatedUserError,
|
|
2314
|
+
DaytonaOpContext
|
|
2315
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
2316
|
+
input: GetOrganizationInvitationsCountForAuthenticatedUserRequest,
|
|
2317
|
+
output: GetOrganizationInvitationsCountForAuthenticatedUserResponse,
|
|
2318
|
+
errors: [UnknownDaytonaError],
|
|
2319
|
+
protocol: DaytonaProtocol,
|
|
2320
|
+
retry: Retry.Retry,
|
|
2321
|
+
}));
|
|
2322
|
+
|
|
2323
|
+
export type GetOrganizationOtelConfigError = DaytonaOpError;
|
|
2324
|
+
/** Get organization OTEL config by organization ID */
|
|
2325
|
+
export const getOrganizationOtelConfig: API.OperationMethod<
|
|
2326
|
+
GetOrganizationOtelConfigRequest,
|
|
2327
|
+
OtelConfig,
|
|
2328
|
+
GetOrganizationOtelConfigError,
|
|
2329
|
+
DaytonaOpContext
|
|
2330
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
2331
|
+
input: GetOrganizationOtelConfigRequest,
|
|
2332
|
+
output: OtelConfig,
|
|
2333
|
+
errors: [UnknownDaytonaError],
|
|
2334
|
+
protocol: DaytonaProtocol,
|
|
2335
|
+
retry: Retry.Retry,
|
|
2336
|
+
}));
|
|
2337
|
+
|
|
2338
|
+
export type GetOrganizationOtelConfigBySandboxAuthTokenError = DaytonaOpError;
|
|
2339
|
+
/** Get organization OTEL config by sandbox auth token */
|
|
2340
|
+
export const getOrganizationOtelConfigBySandboxAuthToken: API.OperationMethod<
|
|
2341
|
+
GetOrganizationOtelConfigBySandboxAuthTokenRequest,
|
|
2342
|
+
OtelConfig,
|
|
2343
|
+
GetOrganizationOtelConfigBySandboxAuthTokenError,
|
|
2344
|
+
DaytonaOpContext
|
|
2345
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
2346
|
+
input: GetOrganizationOtelConfigBySandboxAuthTokenRequest,
|
|
2347
|
+
output: OtelConfig,
|
|
2348
|
+
errors: [UnknownDaytonaError],
|
|
2349
|
+
protocol: DaytonaProtocol,
|
|
2350
|
+
retry: Retry.Retry,
|
|
2351
|
+
}));
|
|
2352
|
+
|
|
2353
|
+
export type GetOrganizationUsageOverviewError = DaytonaOpError;
|
|
2354
|
+
/** Get organization current usage overview */
|
|
2355
|
+
export const getOrganizationUsageOverview: API.OperationMethod<
|
|
2356
|
+
GetOrganizationUsageOverviewRequest,
|
|
2357
|
+
OrganizationUsageOverview,
|
|
2358
|
+
GetOrganizationUsageOverviewError,
|
|
2359
|
+
DaytonaOpContext
|
|
2360
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
2361
|
+
input: GetOrganizationUsageOverviewRequest,
|
|
2362
|
+
output: OrganizationUsageOverview,
|
|
2363
|
+
errors: [UnknownDaytonaError],
|
|
2364
|
+
protocol: DaytonaProtocol,
|
|
2365
|
+
retry: Retry.Retry,
|
|
2366
|
+
}));
|
|
2367
|
+
|
|
2368
|
+
export type GetRegionError = DaytonaOpError;
|
|
2369
|
+
/** Get region by ID */
|
|
2370
|
+
export const getRegion: API.OperationMethod<
|
|
2371
|
+
GetRegionRequest,
|
|
2372
|
+
Region,
|
|
2373
|
+
GetRegionError,
|
|
2374
|
+
DaytonaOpContext
|
|
2375
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
2376
|
+
input: GetRegionRequest,
|
|
2377
|
+
output: Region,
|
|
2378
|
+
errors: [UnknownDaytonaError],
|
|
2379
|
+
protocol: DaytonaProtocol,
|
|
2380
|
+
retry: Retry.Retry,
|
|
2381
|
+
}));
|
|
2382
|
+
|
|
2383
|
+
export type GetSandboxIdentityBySandboxAuthTokenError = DaytonaOpError;
|
|
2384
|
+
/** Get sandbox identity by sandbox auth token */
|
|
2385
|
+
export const getSandboxIdentityBySandboxAuthToken: API.OperationMethod<
|
|
2386
|
+
GetSandboxIdentityBySandboxAuthTokenRequest,
|
|
2387
|
+
SandboxIdentity,
|
|
2388
|
+
GetSandboxIdentityBySandboxAuthTokenError,
|
|
2389
|
+
DaytonaOpContext
|
|
2390
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
2391
|
+
input: GetSandboxIdentityBySandboxAuthTokenRequest,
|
|
2392
|
+
output: SandboxIdentity,
|
|
2393
|
+
errors: [UnknownDaytonaError],
|
|
2394
|
+
protocol: DaytonaProtocol,
|
|
2395
|
+
retry: Retry.Retry,
|
|
2396
|
+
}));
|
|
2397
|
+
|
|
2398
|
+
export type LeaveOrganizationError = DaytonaOpError;
|
|
2399
|
+
/** Leave organization */
|
|
2400
|
+
export const leaveOrganization: API.OperationMethod<
|
|
2401
|
+
LeaveOrganizationRequest,
|
|
2402
|
+
LeaveOrganizationResponse,
|
|
2403
|
+
LeaveOrganizationError,
|
|
2404
|
+
DaytonaOpContext
|
|
2405
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
2406
|
+
input: LeaveOrganizationRequest,
|
|
2407
|
+
output: LeaveOrganizationResponse,
|
|
2408
|
+
errors: [UnknownDaytonaError],
|
|
2409
|
+
protocol: DaytonaProtocol,
|
|
2410
|
+
retry: Retry.Retry,
|
|
2411
|
+
}));
|
|
2412
|
+
|
|
2413
|
+
export type ListAvailableRegionsError = DaytonaOpError;
|
|
2414
|
+
/** List all available regions for the organization */
|
|
2415
|
+
export const listAvailableRegions: API.OperationMethod<
|
|
2416
|
+
ListAvailableRegionsRequest,
|
|
2417
|
+
ListAvailableRegionsResponse,
|
|
2418
|
+
ListAvailableRegionsError,
|
|
2419
|
+
DaytonaOpContext
|
|
2420
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
2421
|
+
input: ListAvailableRegionsRequest,
|
|
2422
|
+
output: ListAvailableRegionsResponse,
|
|
2423
|
+
errors: [UnknownDaytonaError],
|
|
2424
|
+
protocol: DaytonaProtocol,
|
|
2425
|
+
retry: Retry.Retry,
|
|
2426
|
+
}));
|
|
2427
|
+
|
|
2428
|
+
export type ListAvailableSandboxClassesError = DaytonaOpError;
|
|
2429
|
+
/** List available sandbox classes for organization */
|
|
2430
|
+
export const listAvailableSandboxClasses: API.OperationMethod<
|
|
2431
|
+
ListAvailableSandboxClassesRequest,
|
|
2432
|
+
ListAvailableSandboxClassesResponse,
|
|
2433
|
+
ListAvailableSandboxClassesError,
|
|
2434
|
+
DaytonaOpContext
|
|
2435
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
2436
|
+
input: ListAvailableSandboxClassesRequest,
|
|
2437
|
+
output: ListAvailableSandboxClassesResponse,
|
|
2438
|
+
errors: [UnknownDaytonaError],
|
|
2439
|
+
protocol: DaytonaProtocol,
|
|
2440
|
+
retry: Retry.Retry,
|
|
2441
|
+
}));
|
|
2442
|
+
|
|
2443
|
+
export type ListOrganizationIdentityProvidersError = DaytonaOpError;
|
|
2444
|
+
/** List organization identity providers */
|
|
2445
|
+
export const listOrganizationIdentityProviders: API.OperationMethod<
|
|
2446
|
+
ListOrganizationIdentityProvidersRequest,
|
|
2447
|
+
ListOrganizationIdentityProvidersResponse,
|
|
2448
|
+
ListOrganizationIdentityProvidersError,
|
|
2449
|
+
DaytonaOpContext
|
|
2450
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
2451
|
+
input: ListOrganizationIdentityProvidersRequest,
|
|
2452
|
+
output: ListOrganizationIdentityProvidersResponse,
|
|
2453
|
+
errors: [UnknownDaytonaError],
|
|
2454
|
+
protocol: DaytonaProtocol,
|
|
2455
|
+
retry: Retry.Retry,
|
|
2456
|
+
}));
|
|
2457
|
+
|
|
2458
|
+
export type ListOrganizationInvitationsError = DaytonaOpError;
|
|
2459
|
+
/** List pending organization invitations */
|
|
2460
|
+
export const listOrganizationInvitations: API.OperationMethod<
|
|
2461
|
+
ListOrganizationInvitationsRequest,
|
|
2462
|
+
ListOrganizationInvitationsResponse,
|
|
2463
|
+
ListOrganizationInvitationsError,
|
|
2464
|
+
DaytonaOpContext
|
|
2465
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
2466
|
+
input: ListOrganizationInvitationsRequest,
|
|
2467
|
+
output: ListOrganizationInvitationsResponse,
|
|
2468
|
+
errors: [UnknownDaytonaError],
|
|
2469
|
+
protocol: DaytonaProtocol,
|
|
2470
|
+
retry: Retry.Retry,
|
|
2471
|
+
}));
|
|
2472
|
+
|
|
2473
|
+
export type ListOrganizationInvitationsForAuthenticatedUserError =
|
|
2474
|
+
DaytonaOpError;
|
|
2475
|
+
/** List organization invitations for authenticated user */
|
|
2476
|
+
export const listOrganizationInvitationsForAuthenticatedUser: API.OperationMethod<
|
|
2477
|
+
ListOrganizationInvitationsForAuthenticatedUserRequest,
|
|
2478
|
+
ListOrganizationInvitationsForAuthenticatedUserResponse,
|
|
2479
|
+
ListOrganizationInvitationsForAuthenticatedUserError,
|
|
2480
|
+
DaytonaOpContext
|
|
2481
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
2482
|
+
input: ListOrganizationInvitationsForAuthenticatedUserRequest,
|
|
2483
|
+
output: ListOrganizationInvitationsForAuthenticatedUserResponse,
|
|
2484
|
+
errors: [UnknownDaytonaError],
|
|
2485
|
+
protocol: DaytonaProtocol,
|
|
2486
|
+
retry: Retry.Retry,
|
|
2487
|
+
}));
|
|
2488
|
+
|
|
2489
|
+
export type ListOrganizationMembersError = DaytonaOpError;
|
|
2490
|
+
/** List organization members */
|
|
2491
|
+
export const listOrganizationMembers: API.OperationMethod<
|
|
2492
|
+
ListOrganizationMembersRequest,
|
|
2493
|
+
ListOrganizationMembersResponse,
|
|
2494
|
+
ListOrganizationMembersError,
|
|
2495
|
+
DaytonaOpContext
|
|
2496
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
2497
|
+
input: ListOrganizationMembersRequest,
|
|
2498
|
+
output: ListOrganizationMembersResponse,
|
|
2499
|
+
errors: [UnknownDaytonaError],
|
|
2500
|
+
protocol: DaytonaProtocol,
|
|
2501
|
+
retry: Retry.Retry,
|
|
2502
|
+
}));
|
|
2503
|
+
|
|
2504
|
+
export type ListOrganizationRolesError = DaytonaOpError;
|
|
2505
|
+
/** List organization roles */
|
|
2506
|
+
export const listOrganizationRoles: API.OperationMethod<
|
|
2507
|
+
ListOrganizationRolesRequest,
|
|
2508
|
+
ListOrganizationRolesResponse,
|
|
2509
|
+
ListOrganizationRolesError,
|
|
2510
|
+
DaytonaOpContext
|
|
2511
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
2512
|
+
input: ListOrganizationRolesRequest,
|
|
2513
|
+
output: ListOrganizationRolesResponse,
|
|
2514
|
+
errors: [UnknownDaytonaError],
|
|
2515
|
+
protocol: DaytonaProtocol,
|
|
2516
|
+
retry: Retry.Retry,
|
|
2517
|
+
}));
|
|
2518
|
+
|
|
2519
|
+
export type ListOrganizationsError = DaytonaOpError;
|
|
2520
|
+
/** List organizations */
|
|
2521
|
+
export const listOrganizations: API.OperationMethod<
|
|
2522
|
+
ListOrganizationsRequest,
|
|
2523
|
+
ListOrganizationsResponse,
|
|
2524
|
+
ListOrganizationsError,
|
|
2525
|
+
DaytonaOpContext
|
|
2526
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
2527
|
+
input: ListOrganizationsRequest,
|
|
2528
|
+
output: ListOrganizationsResponse,
|
|
2529
|
+
errors: [UnknownDaytonaError],
|
|
2530
|
+
protocol: DaytonaProtocol,
|
|
2531
|
+
retry: Retry.Retry,
|
|
2532
|
+
}));
|
|
2533
|
+
|
|
2534
|
+
export type RegenerateProxyApiKeyError = DaytonaOpError;
|
|
2535
|
+
/** Regenerate proxy API key for a region */
|
|
2536
|
+
export const regenerateProxyApiKey: API.OperationMethod<
|
|
2537
|
+
RegenerateProxyApiKeyRequest,
|
|
2538
|
+
RegenerateApiKeyResponse,
|
|
2539
|
+
RegenerateProxyApiKeyError,
|
|
2540
|
+
DaytonaOpContext
|
|
2541
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
2542
|
+
input: RegenerateProxyApiKeyRequest,
|
|
2543
|
+
output: RegenerateApiKeyResponse,
|
|
2544
|
+
errors: [UnknownDaytonaError],
|
|
2545
|
+
protocol: DaytonaProtocol,
|
|
2546
|
+
retry: Retry.Retry,
|
|
2547
|
+
}));
|
|
2548
|
+
|
|
2549
|
+
export type RegenerateSnapshotManagerCredentialsError = DaytonaOpError;
|
|
2550
|
+
/** Regenerate snapshot manager credentials for a region */
|
|
2551
|
+
export const regenerateSnapshotManagerCredentials: API.OperationMethod<
|
|
2552
|
+
RegenerateSnapshotManagerCredentialsRequest,
|
|
2553
|
+
SnapshotManagerCredentials,
|
|
2554
|
+
RegenerateSnapshotManagerCredentialsError,
|
|
2555
|
+
DaytonaOpContext
|
|
2556
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
2557
|
+
input: RegenerateSnapshotManagerCredentialsRequest,
|
|
2558
|
+
output: SnapshotManagerCredentials,
|
|
2559
|
+
errors: [UnknownDaytonaError],
|
|
2560
|
+
protocol: DaytonaProtocol,
|
|
2561
|
+
retry: Retry.Retry,
|
|
2562
|
+
}));
|
|
2563
|
+
|
|
2564
|
+
export type RegenerateSshGatewayApiKeyError = DaytonaOpError;
|
|
2565
|
+
/** Regenerate SSH gateway API key for a region */
|
|
2566
|
+
export const regenerateSshGatewayApiKey: API.OperationMethod<
|
|
2567
|
+
RegenerateSshGatewayApiKeyRequest,
|
|
2568
|
+
RegenerateApiKeyResponse,
|
|
2569
|
+
RegenerateSshGatewayApiKeyError,
|
|
2570
|
+
DaytonaOpContext
|
|
2571
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
2572
|
+
input: RegenerateSshGatewayApiKeyRequest,
|
|
2573
|
+
output: RegenerateApiKeyResponse,
|
|
2574
|
+
errors: [UnknownDaytonaError],
|
|
2575
|
+
protocol: DaytonaProtocol,
|
|
2576
|
+
retry: Retry.Retry,
|
|
2577
|
+
}));
|
|
2578
|
+
|
|
2579
|
+
export type SetOrganizationDefaultRegionError = DaytonaOpError;
|
|
2580
|
+
/** Set default region for organization */
|
|
2581
|
+
export const setOrganizationDefaultRegion: API.OperationMethod<
|
|
2582
|
+
SetOrganizationDefaultRegionRequest,
|
|
2583
|
+
SetOrganizationDefaultRegionResponse,
|
|
2584
|
+
SetOrganizationDefaultRegionError,
|
|
2585
|
+
DaytonaOpContext
|
|
2586
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
2587
|
+
input: SetOrganizationDefaultRegionRequest,
|
|
2588
|
+
output: SetOrganizationDefaultRegionResponse,
|
|
2589
|
+
errors: [UnknownDaytonaError],
|
|
2590
|
+
protocol: DaytonaProtocol,
|
|
2591
|
+
retry: Retry.Retry,
|
|
2592
|
+
}));
|
|
2593
|
+
|
|
2594
|
+
export type TestOrganizationIdentityProviderConnectionError = DaytonaOpError;
|
|
2595
|
+
/** Test OIDC identity provider connection */
|
|
2596
|
+
export const testOrganizationIdentityProviderConnection: API.OperationMethod<
|
|
2597
|
+
TestOrganizationIdentityProviderConnectionRequest,
|
|
2598
|
+
TestIdentityProviderConnectionResponse,
|
|
2599
|
+
TestOrganizationIdentityProviderConnectionError,
|
|
2600
|
+
DaytonaOpContext
|
|
2601
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
2602
|
+
input: TestOrganizationIdentityProviderConnectionRequest,
|
|
2603
|
+
output: TestIdentityProviderConnectionResponse,
|
|
2604
|
+
errors: [UnknownDaytonaError],
|
|
2605
|
+
protocol: DaytonaProtocol,
|
|
2606
|
+
retry: Retry.Retry,
|
|
2607
|
+
}));
|
|
2608
|
+
|
|
2609
|
+
export type UpdateAccessForOrganizationMemberError = DaytonaOpError;
|
|
2610
|
+
/** Update access for organization member */
|
|
2611
|
+
export const updateAccessForOrganizationMember: API.OperationMethod<
|
|
2612
|
+
UpdateAccessForOrganizationMemberRequest,
|
|
2613
|
+
OrganizationUser,
|
|
2614
|
+
UpdateAccessForOrganizationMemberError,
|
|
2615
|
+
DaytonaOpContext
|
|
2616
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
2617
|
+
input: UpdateAccessForOrganizationMemberRequest,
|
|
2618
|
+
output: OrganizationUser,
|
|
2619
|
+
errors: [UnknownDaytonaError],
|
|
2620
|
+
protocol: DaytonaProtocol,
|
|
2621
|
+
retry: Retry.Retry,
|
|
2622
|
+
}));
|
|
2623
|
+
|
|
2624
|
+
export type UpdateExperimentalConfigError = DaytonaOpError;
|
|
2625
|
+
/** Update experimental configuration */
|
|
2626
|
+
export const updateExperimentalConfig: API.OperationMethod<
|
|
2627
|
+
UpdateExperimentalConfigRequest,
|
|
2628
|
+
UpdateExperimentalConfigResponse,
|
|
2629
|
+
UpdateExperimentalConfigError,
|
|
2630
|
+
DaytonaOpContext
|
|
2631
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
2632
|
+
input: UpdateExperimentalConfigRequest,
|
|
2633
|
+
output: UpdateExperimentalConfigResponse,
|
|
2634
|
+
errors: [UnknownDaytonaError],
|
|
2635
|
+
protocol: DaytonaProtocol,
|
|
2636
|
+
retry: Retry.Retry,
|
|
2637
|
+
}));
|
|
2638
|
+
|
|
2639
|
+
export type UpdateOrganizationIdentityProviderError = DaytonaOpError;
|
|
2640
|
+
/** Update organization identity provider */
|
|
2641
|
+
export const updateOrganizationIdentityProvider: API.OperationMethod<
|
|
2642
|
+
UpdateOrganizationIdentityProviderRequest,
|
|
2643
|
+
IdentityProvider,
|
|
2644
|
+
UpdateOrganizationIdentityProviderError,
|
|
2645
|
+
DaytonaOpContext
|
|
2646
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
2647
|
+
input: UpdateOrganizationIdentityProviderRequest,
|
|
2648
|
+
output: IdentityProvider,
|
|
2649
|
+
errors: [UnknownDaytonaError],
|
|
2650
|
+
protocol: DaytonaProtocol,
|
|
2651
|
+
retry: Retry.Retry,
|
|
2652
|
+
}));
|
|
2653
|
+
|
|
2654
|
+
export type UpdateOrganizationInvitationError = DaytonaOpError;
|
|
2655
|
+
/** Update organization invitation */
|
|
2656
|
+
export const updateOrganizationInvitation: API.OperationMethod<
|
|
2657
|
+
UpdateOrganizationInvitationRequest,
|
|
2658
|
+
OrganizationInvitation,
|
|
2659
|
+
UpdateOrganizationInvitationError,
|
|
2660
|
+
DaytonaOpContext
|
|
2661
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
2662
|
+
input: UpdateOrganizationInvitationRequest,
|
|
2663
|
+
output: OrganizationInvitation,
|
|
2664
|
+
errors: [UnknownDaytonaError],
|
|
2665
|
+
protocol: DaytonaProtocol,
|
|
2666
|
+
retry: Retry.Retry,
|
|
2667
|
+
}));
|
|
2668
|
+
|
|
2669
|
+
export type UpdateOrganizationOtelConfigError = DaytonaOpError;
|
|
2670
|
+
/** Update organization OpenTelemetry configuration */
|
|
2671
|
+
export const updateOrganizationOtelConfig: API.OperationMethod<
|
|
2672
|
+
UpdateOrganizationOtelConfigRequest,
|
|
2673
|
+
UpdateOrganizationOtelConfigResponse,
|
|
2674
|
+
UpdateOrganizationOtelConfigError,
|
|
2675
|
+
DaytonaOpContext
|
|
2676
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
2677
|
+
input: UpdateOrganizationOtelConfigRequest,
|
|
2678
|
+
output: UpdateOrganizationOtelConfigResponse,
|
|
2679
|
+
errors: [UnknownDaytonaError],
|
|
2680
|
+
protocol: DaytonaProtocol,
|
|
2681
|
+
retry: Retry.Retry,
|
|
2682
|
+
}));
|
|
2683
|
+
|
|
2684
|
+
export type UpdateOrganizationRoleError = DaytonaOpError;
|
|
2685
|
+
/** Update organization role */
|
|
2686
|
+
export const updateOrganizationRole: API.OperationMethod<
|
|
2687
|
+
UpdateOrganizationRoleRequest,
|
|
2688
|
+
OrganizationRole,
|
|
2689
|
+
UpdateOrganizationRoleError,
|
|
2690
|
+
DaytonaOpContext
|
|
2691
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
2692
|
+
input: UpdateOrganizationRoleRequest,
|
|
2693
|
+
output: OrganizationRole,
|
|
2694
|
+
errors: [UnknownDaytonaError],
|
|
2695
|
+
protocol: DaytonaProtocol,
|
|
2696
|
+
retry: Retry.Retry,
|
|
2697
|
+
}));
|
|
2698
|
+
|
|
2699
|
+
export type UpdateRegionError = DaytonaOpError;
|
|
2700
|
+
/** Update region configuration */
|
|
2701
|
+
export const updateRegion: API.OperationMethod<
|
|
2702
|
+
UpdateRegionRequest,
|
|
2703
|
+
UpdateRegionResponse,
|
|
2704
|
+
UpdateRegionError,
|
|
2705
|
+
DaytonaOpContext
|
|
2706
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
2707
|
+
input: UpdateRegionRequest,
|
|
2708
|
+
output: UpdateRegionResponse,
|
|
2709
|
+
errors: [UnknownDaytonaError],
|
|
2710
|
+
protocol: DaytonaProtocol,
|
|
2711
|
+
retry: Retry.Retry,
|
|
2712
|
+
}));
|