@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,380 @@
|
|
|
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 API from "@distilled.cloud/core/api";
|
|
4
|
+
import * as T from "../traits.ts";
|
|
5
|
+
import {
|
|
6
|
+
DaytonaProtocol,
|
|
7
|
+
type DaytonaOpError,
|
|
8
|
+
type DaytonaOpContext,
|
|
9
|
+
} from "../protocol.ts";
|
|
10
|
+
import { UnknownDaytonaError } from "../errors.ts";
|
|
11
|
+
import * as Retry from "../retry.ts";
|
|
12
|
+
|
|
13
|
+
export type { DaytonaOpError, DaytonaOpContext };
|
|
14
|
+
|
|
15
|
+
export interface AcceptPrivacyPoliciesRequest {}
|
|
16
|
+
export const AcceptPrivacyPoliciesRequest = /*@__PURE__*/ S.suspend(() =>
|
|
17
|
+
S.Struct({}).pipe(
|
|
18
|
+
T.Http({
|
|
19
|
+
method: "POST",
|
|
20
|
+
uri: "/users/privacy-policies/accept",
|
|
21
|
+
code: 200,
|
|
22
|
+
}),
|
|
23
|
+
),
|
|
24
|
+
).annotate({
|
|
25
|
+
identifier: "AcceptPrivacyPoliciesRequest",
|
|
26
|
+
}) as any as S.Schema<AcceptPrivacyPoliciesRequest>;
|
|
27
|
+
|
|
28
|
+
export interface AcceptPrivacyPoliciesResponse {}
|
|
29
|
+
export const AcceptPrivacyPoliciesResponse = /*@__PURE__*/ S.suspend(() =>
|
|
30
|
+
S.Struct({}),
|
|
31
|
+
).annotate({
|
|
32
|
+
identifier: "AcceptPrivacyPoliciesResponse",
|
|
33
|
+
}) as any as S.Schema<AcceptPrivacyPoliciesResponse>;
|
|
34
|
+
|
|
35
|
+
export interface ConfirmPendingSsoLinkRequest {
|
|
36
|
+
id: string;
|
|
37
|
+
}
|
|
38
|
+
export const ConfirmPendingSsoLinkRequest = /*@__PURE__*/ S.suspend(() =>
|
|
39
|
+
S.Struct({
|
|
40
|
+
id: S.String.pipe(T.Label()),
|
|
41
|
+
}).pipe(
|
|
42
|
+
T.Http({
|
|
43
|
+
method: "POST",
|
|
44
|
+
uri: "/users/me/pending-sso-links/{id}/confirm",
|
|
45
|
+
code: 200,
|
|
46
|
+
}),
|
|
47
|
+
),
|
|
48
|
+
).annotate({
|
|
49
|
+
identifier: "ConfirmPendingSsoLinkRequest",
|
|
50
|
+
}) as any as S.Schema<ConfirmPendingSsoLinkRequest>;
|
|
51
|
+
|
|
52
|
+
export interface ConfirmPendingSsoLinkResponse {}
|
|
53
|
+
export const ConfirmPendingSsoLinkResponse = /*@__PURE__*/ S.suspend(() =>
|
|
54
|
+
S.Struct({}),
|
|
55
|
+
).annotate({
|
|
56
|
+
identifier: "ConfirmPendingSsoLinkResponse",
|
|
57
|
+
}) as any as S.Schema<ConfirmPendingSsoLinkResponse>;
|
|
58
|
+
|
|
59
|
+
export interface DismissPendingSsoLinkRequest {
|
|
60
|
+
id: string;
|
|
61
|
+
}
|
|
62
|
+
export const DismissPendingSsoLinkRequest = /*@__PURE__*/ S.suspend(() =>
|
|
63
|
+
S.Struct({
|
|
64
|
+
id: S.String.pipe(T.Label()),
|
|
65
|
+
}).pipe(
|
|
66
|
+
T.Http({
|
|
67
|
+
method: "DELETE",
|
|
68
|
+
uri: "/users/me/pending-sso-links/{id}",
|
|
69
|
+
code: 200,
|
|
70
|
+
}),
|
|
71
|
+
),
|
|
72
|
+
).annotate({
|
|
73
|
+
identifier: "DismissPendingSsoLinkRequest",
|
|
74
|
+
}) as any as S.Schema<DismissPendingSsoLinkRequest>;
|
|
75
|
+
|
|
76
|
+
export interface DismissPendingSsoLinkResponse {}
|
|
77
|
+
export const DismissPendingSsoLinkResponse = /*@__PURE__*/ S.suspend(() =>
|
|
78
|
+
S.Struct({}),
|
|
79
|
+
).annotate({
|
|
80
|
+
identifier: "DismissPendingSsoLinkResponse",
|
|
81
|
+
}) as any as S.Schema<DismissPendingSsoLinkResponse>;
|
|
82
|
+
|
|
83
|
+
export interface EnrollInSmsMfaRequest {}
|
|
84
|
+
export const EnrollInSmsMfaRequest = /*@__PURE__*/ S.suspend(() =>
|
|
85
|
+
S.Struct({}).pipe(
|
|
86
|
+
T.Http({ method: "POST", uri: "/users/mfa/sms/enroll", code: 200 }),
|
|
87
|
+
),
|
|
88
|
+
).annotate({
|
|
89
|
+
identifier: "EnrollInSmsMfaRequest",
|
|
90
|
+
}) as any as S.Schema<EnrollInSmsMfaRequest>;
|
|
91
|
+
|
|
92
|
+
export type EnrollInSmsMfaResponse = string;
|
|
93
|
+
export const EnrollInSmsMfaResponse = /*@__PURE__*/ S.suspend(() =>
|
|
94
|
+
S.String.pipe(T.RawResponseRoot()),
|
|
95
|
+
).annotate({
|
|
96
|
+
identifier: "EnrollInSmsMfaResponse",
|
|
97
|
+
}) as any as S.Schema<EnrollInSmsMfaResponse>;
|
|
98
|
+
|
|
99
|
+
export interface GetAuthenticatedUserRequest {}
|
|
100
|
+
export const GetAuthenticatedUserRequest = /*@__PURE__*/ S.suspend(() =>
|
|
101
|
+
S.Struct({}).pipe(T.Http({ method: "GET", uri: "/users/me", code: 200 })),
|
|
102
|
+
).annotate({
|
|
103
|
+
identifier: "GetAuthenticatedUserRequest",
|
|
104
|
+
}) as any as S.Schema<GetAuthenticatedUserRequest>;
|
|
105
|
+
|
|
106
|
+
export interface UserPublicKey {
|
|
107
|
+
/** Public key */
|
|
108
|
+
key: string;
|
|
109
|
+
/** Key name */
|
|
110
|
+
name: string;
|
|
111
|
+
}
|
|
112
|
+
export const UserPublicKey = /*@__PURE__*/ S.suspend(() =>
|
|
113
|
+
S.Struct({
|
|
114
|
+
key: S.String,
|
|
115
|
+
name: S.String,
|
|
116
|
+
}),
|
|
117
|
+
).annotate({ identifier: "UserPublicKey" }) as any as S.Schema<UserPublicKey>;
|
|
118
|
+
|
|
119
|
+
/** User public keys */
|
|
120
|
+
export type UserPublicKeysList = Array<UserPublicKey>;
|
|
121
|
+
export const UserPublicKeysList = /*@__PURE__*/ S.Array(
|
|
122
|
+
UserPublicKey,
|
|
123
|
+
) as any as S.Schema<UserPublicKeysList>;
|
|
124
|
+
|
|
125
|
+
export interface User {
|
|
126
|
+
/** User ID */
|
|
127
|
+
id: string;
|
|
128
|
+
/** User name */
|
|
129
|
+
name: string;
|
|
130
|
+
/** User email */
|
|
131
|
+
email: string;
|
|
132
|
+
/** Whether the user email address has been verified */
|
|
133
|
+
emailVerified: boolean;
|
|
134
|
+
/** HMAC of the user email for Pylon support-widget identity verification */
|
|
135
|
+
pylonEmailHash?: string;
|
|
136
|
+
/** Whether the user has accepted the current privacy policies. Populated on the /users/me endpoint. */
|
|
137
|
+
privacyPoliciesAccepted?: boolean;
|
|
138
|
+
/** User public keys */
|
|
139
|
+
publicKeys: UserPublicKeysList;
|
|
140
|
+
/** Creation timestamp */
|
|
141
|
+
createdAt: string;
|
|
142
|
+
}
|
|
143
|
+
export const User = /*@__PURE__*/ S.suspend(() =>
|
|
144
|
+
S.Struct({
|
|
145
|
+
id: S.String,
|
|
146
|
+
name: S.String,
|
|
147
|
+
email: S.String,
|
|
148
|
+
emailVerified: S.Boolean,
|
|
149
|
+
pylonEmailHash: S.optional(S.String),
|
|
150
|
+
privacyPoliciesAccepted: S.optional(S.Boolean),
|
|
151
|
+
publicKeys: UserPublicKeysList,
|
|
152
|
+
createdAt: S.String,
|
|
153
|
+
}),
|
|
154
|
+
).annotate({ identifier: "User" }) as any as S.Schema<User>;
|
|
155
|
+
|
|
156
|
+
export interface GetAvailableAccountProvidersRequest {}
|
|
157
|
+
export const GetAvailableAccountProvidersRequest = /*@__PURE__*/ S.suspend(() =>
|
|
158
|
+
S.Struct({}).pipe(
|
|
159
|
+
T.Http({ method: "GET", uri: "/users/account-providers", code: 200 }),
|
|
160
|
+
),
|
|
161
|
+
).annotate({
|
|
162
|
+
identifier: "GetAvailableAccountProvidersRequest",
|
|
163
|
+
}) as any as S.Schema<GetAvailableAccountProvidersRequest>;
|
|
164
|
+
|
|
165
|
+
export interface AccountProvider {
|
|
166
|
+
name: string;
|
|
167
|
+
displayName: string;
|
|
168
|
+
}
|
|
169
|
+
export const AccountProvider = /*@__PURE__*/ S.suspend(() =>
|
|
170
|
+
S.Struct({
|
|
171
|
+
name: S.String,
|
|
172
|
+
displayName: S.String,
|
|
173
|
+
}),
|
|
174
|
+
).annotate({
|
|
175
|
+
identifier: "AccountProvider",
|
|
176
|
+
}) as any as S.Schema<AccountProvider>;
|
|
177
|
+
|
|
178
|
+
export type GetAvailableAccountProvidersResponseBodyList =
|
|
179
|
+
Array<AccountProvider>;
|
|
180
|
+
export const GetAvailableAccountProvidersResponseBodyList =
|
|
181
|
+
/*@__PURE__*/ S.Array(
|
|
182
|
+
AccountProvider,
|
|
183
|
+
) as any as S.Schema<GetAvailableAccountProvidersResponseBodyList>;
|
|
184
|
+
|
|
185
|
+
export type GetAvailableAccountProvidersResponse =
|
|
186
|
+
GetAvailableAccountProvidersResponseBodyList;
|
|
187
|
+
export const GetAvailableAccountProvidersResponse = /*@__PURE__*/ S.suspend(
|
|
188
|
+
() => GetAvailableAccountProvidersResponseBodyList.pipe(T.RawResponseRoot()),
|
|
189
|
+
).annotate({
|
|
190
|
+
identifier: "GetAvailableAccountProvidersResponse",
|
|
191
|
+
}) as any as S.Schema<GetAvailableAccountProvidersResponse>;
|
|
192
|
+
|
|
193
|
+
export interface ListPendingSsoLinksRequest {}
|
|
194
|
+
export const ListPendingSsoLinksRequest = /*@__PURE__*/ S.suspend(() =>
|
|
195
|
+
S.Struct({}).pipe(
|
|
196
|
+
T.Http({ method: "GET", uri: "/users/me/pending-sso-links", code: 200 }),
|
|
197
|
+
),
|
|
198
|
+
).annotate({
|
|
199
|
+
identifier: "ListPendingSsoLinksRequest",
|
|
200
|
+
}) as any as S.Schema<ListPendingSsoLinksRequest>;
|
|
201
|
+
|
|
202
|
+
export interface PendingSsoLink {
|
|
203
|
+
id: string;
|
|
204
|
+
/** Display name of the identity provider requesting to be linked */
|
|
205
|
+
idpName: string;
|
|
206
|
+
/** Organization that configured the identity provider */
|
|
207
|
+
organizationId: string;
|
|
208
|
+
/** Email asserted by the identity provider */
|
|
209
|
+
providerEmail: string | null;
|
|
210
|
+
createdAt: string;
|
|
211
|
+
expiresAt: string;
|
|
212
|
+
}
|
|
213
|
+
export const PendingSsoLink = /*@__PURE__*/ S.suspend(() =>
|
|
214
|
+
S.Struct({
|
|
215
|
+
id: S.String,
|
|
216
|
+
idpName: S.String,
|
|
217
|
+
organizationId: S.String,
|
|
218
|
+
providerEmail: S.NullOr(S.String),
|
|
219
|
+
createdAt: S.String,
|
|
220
|
+
expiresAt: S.String,
|
|
221
|
+
}),
|
|
222
|
+
).annotate({ identifier: "PendingSsoLink" }) as any as S.Schema<PendingSsoLink>;
|
|
223
|
+
|
|
224
|
+
export type ListPendingSsoLinksResponseBodyList = Array<PendingSsoLink>;
|
|
225
|
+
export const ListPendingSsoLinksResponseBodyList = /*@__PURE__*/ S.Array(
|
|
226
|
+
PendingSsoLink,
|
|
227
|
+
) as any as S.Schema<ListPendingSsoLinksResponseBodyList>;
|
|
228
|
+
|
|
229
|
+
export type ListPendingSsoLinksResponse = ListPendingSsoLinksResponseBodyList;
|
|
230
|
+
export const ListPendingSsoLinksResponse = /*@__PURE__*/ S.suspend(() =>
|
|
231
|
+
ListPendingSsoLinksResponseBodyList.pipe(T.RawResponseRoot()),
|
|
232
|
+
).annotate({
|
|
233
|
+
identifier: "ListPendingSsoLinksResponse",
|
|
234
|
+
}) as any as S.Schema<ListPendingSsoLinksResponse>;
|
|
235
|
+
|
|
236
|
+
export interface UnlinkAccountRequest {
|
|
237
|
+
provider: string;
|
|
238
|
+
providerUserId: string;
|
|
239
|
+
}
|
|
240
|
+
export const UnlinkAccountRequest = /*@__PURE__*/ S.suspend(() =>
|
|
241
|
+
S.Struct({
|
|
242
|
+
provider: S.String.pipe(T.Label()),
|
|
243
|
+
providerUserId: S.String.pipe(T.Label()),
|
|
244
|
+
}).pipe(
|
|
245
|
+
T.Http({
|
|
246
|
+
method: "DELETE",
|
|
247
|
+
uri: "/users/linked-accounts/{provider}/{providerUserId}",
|
|
248
|
+
code: 200,
|
|
249
|
+
}),
|
|
250
|
+
),
|
|
251
|
+
).annotate({
|
|
252
|
+
identifier: "UnlinkAccountRequest",
|
|
253
|
+
}) as any as S.Schema<UnlinkAccountRequest>;
|
|
254
|
+
|
|
255
|
+
export interface UnlinkAccountResponse {}
|
|
256
|
+
export const UnlinkAccountResponse = /*@__PURE__*/ S.suspend(() =>
|
|
257
|
+
S.Struct({}),
|
|
258
|
+
).annotate({
|
|
259
|
+
identifier: "UnlinkAccountResponse",
|
|
260
|
+
}) as any as S.Schema<UnlinkAccountResponse>;
|
|
261
|
+
|
|
262
|
+
export type AcceptPrivacyPoliciesError = DaytonaOpError;
|
|
263
|
+
/** Accept the current privacy policies */
|
|
264
|
+
export const acceptPrivacyPolicies: API.OperationMethod<
|
|
265
|
+
AcceptPrivacyPoliciesRequest,
|
|
266
|
+
AcceptPrivacyPoliciesResponse,
|
|
267
|
+
AcceptPrivacyPoliciesError,
|
|
268
|
+
DaytonaOpContext
|
|
269
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
270
|
+
input: AcceptPrivacyPoliciesRequest,
|
|
271
|
+
output: AcceptPrivacyPoliciesResponse,
|
|
272
|
+
errors: [UnknownDaytonaError],
|
|
273
|
+
protocol: DaytonaProtocol,
|
|
274
|
+
retry: Retry.Retry,
|
|
275
|
+
}));
|
|
276
|
+
|
|
277
|
+
export type ConfirmPendingSsoLinkError = DaytonaOpError;
|
|
278
|
+
/** Confirm (link) a pending SSO account link */
|
|
279
|
+
export const confirmPendingSsoLink: API.OperationMethod<
|
|
280
|
+
ConfirmPendingSsoLinkRequest,
|
|
281
|
+
ConfirmPendingSsoLinkResponse,
|
|
282
|
+
ConfirmPendingSsoLinkError,
|
|
283
|
+
DaytonaOpContext
|
|
284
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
285
|
+
input: ConfirmPendingSsoLinkRequest,
|
|
286
|
+
output: ConfirmPendingSsoLinkResponse,
|
|
287
|
+
errors: [UnknownDaytonaError],
|
|
288
|
+
protocol: DaytonaProtocol,
|
|
289
|
+
retry: Retry.Retry,
|
|
290
|
+
}));
|
|
291
|
+
|
|
292
|
+
export type DismissPendingSsoLinkError = DaytonaOpError;
|
|
293
|
+
/** Dismiss a pending SSO account link */
|
|
294
|
+
export const dismissPendingSsoLink: API.OperationMethod<
|
|
295
|
+
DismissPendingSsoLinkRequest,
|
|
296
|
+
DismissPendingSsoLinkResponse,
|
|
297
|
+
DismissPendingSsoLinkError,
|
|
298
|
+
DaytonaOpContext
|
|
299
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
300
|
+
input: DismissPendingSsoLinkRequest,
|
|
301
|
+
output: DismissPendingSsoLinkResponse,
|
|
302
|
+
errors: [UnknownDaytonaError],
|
|
303
|
+
protocol: DaytonaProtocol,
|
|
304
|
+
retry: Retry.Retry,
|
|
305
|
+
}));
|
|
306
|
+
|
|
307
|
+
export type EnrollInSmsMfaError = DaytonaOpError;
|
|
308
|
+
/** Enroll in SMS MFA */
|
|
309
|
+
export const enrollInSmsMfa: API.OperationMethod<
|
|
310
|
+
EnrollInSmsMfaRequest,
|
|
311
|
+
EnrollInSmsMfaResponse,
|
|
312
|
+
EnrollInSmsMfaError,
|
|
313
|
+
DaytonaOpContext
|
|
314
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
315
|
+
input: EnrollInSmsMfaRequest,
|
|
316
|
+
output: EnrollInSmsMfaResponse,
|
|
317
|
+
errors: [UnknownDaytonaError],
|
|
318
|
+
protocol: DaytonaProtocol,
|
|
319
|
+
retry: Retry.Retry,
|
|
320
|
+
}));
|
|
321
|
+
|
|
322
|
+
export type GetAuthenticatedUserError = DaytonaOpError;
|
|
323
|
+
/** Get authenticated user */
|
|
324
|
+
export const getAuthenticatedUser: API.OperationMethod<
|
|
325
|
+
GetAuthenticatedUserRequest,
|
|
326
|
+
User,
|
|
327
|
+
GetAuthenticatedUserError,
|
|
328
|
+
DaytonaOpContext
|
|
329
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
330
|
+
input: GetAuthenticatedUserRequest,
|
|
331
|
+
output: User,
|
|
332
|
+
errors: [UnknownDaytonaError],
|
|
333
|
+
protocol: DaytonaProtocol,
|
|
334
|
+
retry: Retry.Retry,
|
|
335
|
+
}));
|
|
336
|
+
|
|
337
|
+
export type GetAvailableAccountProvidersError = DaytonaOpError;
|
|
338
|
+
/** Get available account providers */
|
|
339
|
+
export const getAvailableAccountProviders: API.OperationMethod<
|
|
340
|
+
GetAvailableAccountProvidersRequest,
|
|
341
|
+
GetAvailableAccountProvidersResponse,
|
|
342
|
+
GetAvailableAccountProvidersError,
|
|
343
|
+
DaytonaOpContext
|
|
344
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
345
|
+
input: GetAvailableAccountProvidersRequest,
|
|
346
|
+
output: GetAvailableAccountProvidersResponse,
|
|
347
|
+
errors: [UnknownDaytonaError],
|
|
348
|
+
protocol: DaytonaProtocol,
|
|
349
|
+
retry: Retry.Retry,
|
|
350
|
+
}));
|
|
351
|
+
|
|
352
|
+
export type ListPendingSsoLinksError = DaytonaOpError;
|
|
353
|
+
/** List pending SSO account links for the authenticated user */
|
|
354
|
+
export const listPendingSsoLinks: API.OperationMethod<
|
|
355
|
+
ListPendingSsoLinksRequest,
|
|
356
|
+
ListPendingSsoLinksResponse,
|
|
357
|
+
ListPendingSsoLinksError,
|
|
358
|
+
DaytonaOpContext
|
|
359
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
360
|
+
input: ListPendingSsoLinksRequest,
|
|
361
|
+
output: ListPendingSsoLinksResponse,
|
|
362
|
+
errors: [UnknownDaytonaError],
|
|
363
|
+
protocol: DaytonaProtocol,
|
|
364
|
+
retry: Retry.Retry,
|
|
365
|
+
}));
|
|
366
|
+
|
|
367
|
+
export type UnlinkAccountError = DaytonaOpError;
|
|
368
|
+
/** Unlink account */
|
|
369
|
+
export const unlinkAccount: API.OperationMethod<
|
|
370
|
+
UnlinkAccountRequest,
|
|
371
|
+
UnlinkAccountResponse,
|
|
372
|
+
UnlinkAccountError,
|
|
373
|
+
DaytonaOpContext
|
|
374
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
375
|
+
input: UnlinkAccountRequest,
|
|
376
|
+
output: UnlinkAccountResponse,
|
|
377
|
+
errors: [UnknownDaytonaError],
|
|
378
|
+
protocol: DaytonaProtocol,
|
|
379
|
+
retry: Retry.Retry,
|
|
380
|
+
}));
|
|
@@ -0,0 +1,233 @@
|
|
|
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 API from "@distilled.cloud/core/api";
|
|
4
|
+
import * as T from "../traits.ts";
|
|
5
|
+
import {
|
|
6
|
+
DaytonaProtocol,
|
|
7
|
+
type DaytonaOpError,
|
|
8
|
+
type DaytonaOpContext,
|
|
9
|
+
} from "../protocol.ts";
|
|
10
|
+
import { UnknownDaytonaError } from "../errors.ts";
|
|
11
|
+
import * as Retry from "../retry.ts";
|
|
12
|
+
|
|
13
|
+
export type { DaytonaOpError, DaytonaOpContext };
|
|
14
|
+
|
|
15
|
+
export interface CreateVolumeRequest {
|
|
16
|
+
/** Use with JWT to specify the organization ID */
|
|
17
|
+
xDaytonaOrganizationID?: string;
|
|
18
|
+
name: string;
|
|
19
|
+
}
|
|
20
|
+
export const CreateVolumeRequest = /*@__PURE__*/ S.suspend(() =>
|
|
21
|
+
S.Struct({
|
|
22
|
+
xDaytonaOrganizationID: S.optional(
|
|
23
|
+
S.String.pipe(T.Header("X-Daytona-Organization-ID")),
|
|
24
|
+
),
|
|
25
|
+
name: S.String,
|
|
26
|
+
}).pipe(T.Http({ method: "POST", uri: "/volumes", code: 200 })),
|
|
27
|
+
).annotate({
|
|
28
|
+
identifier: "CreateVolumeRequest",
|
|
29
|
+
}) as any as S.Schema<CreateVolumeRequest>;
|
|
30
|
+
|
|
31
|
+
/** Volume state */
|
|
32
|
+
export type VolumeState =
|
|
33
|
+
| "creating"
|
|
34
|
+
| "ready"
|
|
35
|
+
| "pending_create"
|
|
36
|
+
| "pending_delete"
|
|
37
|
+
| "deleting"
|
|
38
|
+
| "deleted"
|
|
39
|
+
| "error";
|
|
40
|
+
export const VolumeState = S.String;
|
|
41
|
+
|
|
42
|
+
export interface VolumeDto {
|
|
43
|
+
/** Volume ID */
|
|
44
|
+
id: string;
|
|
45
|
+
/** Volume name */
|
|
46
|
+
name: string;
|
|
47
|
+
/** Organization ID */
|
|
48
|
+
organizationId: string;
|
|
49
|
+
/** Volume state */
|
|
50
|
+
state: VolumeState;
|
|
51
|
+
/** Creation timestamp */
|
|
52
|
+
createdAt: string;
|
|
53
|
+
/** Last update timestamp */
|
|
54
|
+
updatedAt: string;
|
|
55
|
+
/** Last used timestamp */
|
|
56
|
+
lastUsedAt?: string | null;
|
|
57
|
+
/** The error reason of the volume */
|
|
58
|
+
errorReason: string | null;
|
|
59
|
+
}
|
|
60
|
+
export const VolumeDto = /*@__PURE__*/ S.suspend(() =>
|
|
61
|
+
S.Struct({
|
|
62
|
+
id: S.String,
|
|
63
|
+
name: S.String,
|
|
64
|
+
organizationId: S.String,
|
|
65
|
+
state: VolumeState,
|
|
66
|
+
createdAt: S.String,
|
|
67
|
+
updatedAt: S.String,
|
|
68
|
+
lastUsedAt: S.optional(S.NullOr(S.String)),
|
|
69
|
+
errorReason: S.NullOr(S.String),
|
|
70
|
+
}),
|
|
71
|
+
).annotate({ identifier: "VolumeDto" }) as any as S.Schema<VolumeDto>;
|
|
72
|
+
|
|
73
|
+
export interface DeleteVolumeRequest {
|
|
74
|
+
/** ID of the volume */
|
|
75
|
+
volumeId: string;
|
|
76
|
+
/** Use with JWT to specify the organization ID */
|
|
77
|
+
xDaytonaOrganizationID?: string;
|
|
78
|
+
}
|
|
79
|
+
export const DeleteVolumeRequest = /*@__PURE__*/ S.suspend(() =>
|
|
80
|
+
S.Struct({
|
|
81
|
+
volumeId: S.String.pipe(T.Label()),
|
|
82
|
+
xDaytonaOrganizationID: S.optional(
|
|
83
|
+
S.String.pipe(T.Header("X-Daytona-Organization-ID")),
|
|
84
|
+
),
|
|
85
|
+
}).pipe(T.Http({ method: "DELETE", uri: "/volumes/{volumeId}", code: 200 })),
|
|
86
|
+
).annotate({
|
|
87
|
+
identifier: "DeleteVolumeRequest",
|
|
88
|
+
}) as any as S.Schema<DeleteVolumeRequest>;
|
|
89
|
+
|
|
90
|
+
export interface DeleteVolumeResponse {}
|
|
91
|
+
export const DeleteVolumeResponse = /*@__PURE__*/ S.suspend(() =>
|
|
92
|
+
S.Struct({}),
|
|
93
|
+
).annotate({
|
|
94
|
+
identifier: "DeleteVolumeResponse",
|
|
95
|
+
}) as any as S.Schema<DeleteVolumeResponse>;
|
|
96
|
+
|
|
97
|
+
export interface GetVolumeRequest {
|
|
98
|
+
/** ID of the volume */
|
|
99
|
+
volumeId: string;
|
|
100
|
+
/** Use with JWT to specify the organization ID */
|
|
101
|
+
xDaytonaOrganizationID?: string;
|
|
102
|
+
}
|
|
103
|
+
export const GetVolumeRequest = /*@__PURE__*/ S.suspend(() =>
|
|
104
|
+
S.Struct({
|
|
105
|
+
volumeId: S.String.pipe(T.Label()),
|
|
106
|
+
xDaytonaOrganizationID: S.optional(
|
|
107
|
+
S.String.pipe(T.Header("X-Daytona-Organization-ID")),
|
|
108
|
+
),
|
|
109
|
+
}).pipe(T.Http({ method: "GET", uri: "/volumes/{volumeId}", code: 200 })),
|
|
110
|
+
).annotate({
|
|
111
|
+
identifier: "GetVolumeRequest",
|
|
112
|
+
}) as any as S.Schema<GetVolumeRequest>;
|
|
113
|
+
|
|
114
|
+
export interface GetVolumeByNameRequest {
|
|
115
|
+
/** Name of the volume */
|
|
116
|
+
name: string;
|
|
117
|
+
/** Use with JWT to specify the organization ID */
|
|
118
|
+
xDaytonaOrganizationID?: string;
|
|
119
|
+
}
|
|
120
|
+
export const GetVolumeByNameRequest = /*@__PURE__*/ S.suspend(() =>
|
|
121
|
+
S.Struct({
|
|
122
|
+
name: S.String.pipe(T.Label()),
|
|
123
|
+
xDaytonaOrganizationID: S.optional(
|
|
124
|
+
S.String.pipe(T.Header("X-Daytona-Organization-ID")),
|
|
125
|
+
),
|
|
126
|
+
}).pipe(T.Http({ method: "GET", uri: "/volumes/by-name/{name}", code: 200 })),
|
|
127
|
+
).annotate({
|
|
128
|
+
identifier: "GetVolumeByNameRequest",
|
|
129
|
+
}) as any as S.Schema<GetVolumeByNameRequest>;
|
|
130
|
+
|
|
131
|
+
export interface ListVolumesRequest {
|
|
132
|
+
/** Include deleted volumes in the response */
|
|
133
|
+
includeDeleted?: boolean;
|
|
134
|
+
/** Use with JWT to specify the organization ID */
|
|
135
|
+
xDaytonaOrganizationID?: string;
|
|
136
|
+
}
|
|
137
|
+
export const ListVolumesRequest = /*@__PURE__*/ S.suspend(() =>
|
|
138
|
+
S.Struct({
|
|
139
|
+
includeDeleted: S.optional(S.Boolean.pipe(T.Query())),
|
|
140
|
+
xDaytonaOrganizationID: S.optional(
|
|
141
|
+
S.String.pipe(T.Header("X-Daytona-Organization-ID")),
|
|
142
|
+
),
|
|
143
|
+
}).pipe(T.Http({ method: "GET", uri: "/volumes", code: 200 })),
|
|
144
|
+
).annotate({
|
|
145
|
+
identifier: "ListVolumesRequest",
|
|
146
|
+
}) as any as S.Schema<ListVolumesRequest>;
|
|
147
|
+
|
|
148
|
+
export type ListVolumesResponseBodyList = Array<VolumeDto>;
|
|
149
|
+
export const ListVolumesResponseBodyList = /*@__PURE__*/ S.Array(
|
|
150
|
+
VolumeDto,
|
|
151
|
+
) as any as S.Schema<ListVolumesResponseBodyList>;
|
|
152
|
+
|
|
153
|
+
export type ListVolumesResponse = ListVolumesResponseBodyList;
|
|
154
|
+
export const ListVolumesResponse = /*@__PURE__*/ S.suspend(() =>
|
|
155
|
+
ListVolumesResponseBodyList.pipe(T.RawResponseRoot()),
|
|
156
|
+
).annotate({
|
|
157
|
+
identifier: "ListVolumesResponse",
|
|
158
|
+
}) as any as S.Schema<ListVolumesResponse>;
|
|
159
|
+
|
|
160
|
+
export type CreateVolumeError = DaytonaOpError;
|
|
161
|
+
/** Create a new volume */
|
|
162
|
+
export const createVolume: API.OperationMethod<
|
|
163
|
+
CreateVolumeRequest,
|
|
164
|
+
VolumeDto,
|
|
165
|
+
CreateVolumeError,
|
|
166
|
+
DaytonaOpContext
|
|
167
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
168
|
+
input: CreateVolumeRequest,
|
|
169
|
+
output: VolumeDto,
|
|
170
|
+
errors: [UnknownDaytonaError],
|
|
171
|
+
protocol: DaytonaProtocol,
|
|
172
|
+
retry: Retry.Retry,
|
|
173
|
+
}));
|
|
174
|
+
|
|
175
|
+
export type DeleteVolumeError = DaytonaOpError;
|
|
176
|
+
/** Delete volume */
|
|
177
|
+
export const deleteVolume: API.OperationMethod<
|
|
178
|
+
DeleteVolumeRequest,
|
|
179
|
+
DeleteVolumeResponse,
|
|
180
|
+
DeleteVolumeError,
|
|
181
|
+
DaytonaOpContext
|
|
182
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
183
|
+
input: DeleteVolumeRequest,
|
|
184
|
+
output: DeleteVolumeResponse,
|
|
185
|
+
errors: [UnknownDaytonaError],
|
|
186
|
+
protocol: DaytonaProtocol,
|
|
187
|
+
retry: Retry.Retry,
|
|
188
|
+
}));
|
|
189
|
+
|
|
190
|
+
export type GetVolumeError = DaytonaOpError;
|
|
191
|
+
/** Get volume details */
|
|
192
|
+
export const getVolume: API.OperationMethod<
|
|
193
|
+
GetVolumeRequest,
|
|
194
|
+
VolumeDto,
|
|
195
|
+
GetVolumeError,
|
|
196
|
+
DaytonaOpContext
|
|
197
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
198
|
+
input: GetVolumeRequest,
|
|
199
|
+
output: VolumeDto,
|
|
200
|
+
errors: [UnknownDaytonaError],
|
|
201
|
+
protocol: DaytonaProtocol,
|
|
202
|
+
retry: Retry.Retry,
|
|
203
|
+
}));
|
|
204
|
+
|
|
205
|
+
export type GetVolumeByNameError = DaytonaOpError;
|
|
206
|
+
/** Get volume details by name */
|
|
207
|
+
export const getVolumeByName: API.OperationMethod<
|
|
208
|
+
GetVolumeByNameRequest,
|
|
209
|
+
VolumeDto,
|
|
210
|
+
GetVolumeByNameError,
|
|
211
|
+
DaytonaOpContext
|
|
212
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
213
|
+
input: GetVolumeByNameRequest,
|
|
214
|
+
output: VolumeDto,
|
|
215
|
+
errors: [UnknownDaytonaError],
|
|
216
|
+
protocol: DaytonaProtocol,
|
|
217
|
+
retry: Retry.Retry,
|
|
218
|
+
}));
|
|
219
|
+
|
|
220
|
+
export type ListVolumesError = DaytonaOpError;
|
|
221
|
+
/** List all volumes */
|
|
222
|
+
export const listVolumes: API.OperationMethod<
|
|
223
|
+
ListVolumesRequest,
|
|
224
|
+
ListVolumesResponse,
|
|
225
|
+
ListVolumesError,
|
|
226
|
+
DaytonaOpContext
|
|
227
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
228
|
+
input: ListVolumesRequest,
|
|
229
|
+
output: ListVolumesResponse,
|
|
230
|
+
errors: [UnknownDaytonaError],
|
|
231
|
+
protocol: DaytonaProtocol,
|
|
232
|
+
retry: Retry.Retry,
|
|
233
|
+
}));
|