@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,416 @@
|
|
|
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 { paginateToken } from "../pagination.ts";
|
|
11
|
+
import { UnknownDaytonaError } from "../errors.ts";
|
|
12
|
+
import * as Retry from "../retry.ts";
|
|
13
|
+
|
|
14
|
+
export type { DaytonaOpError, DaytonaOpContext };
|
|
15
|
+
|
|
16
|
+
export interface GetAuditScenariosRequest {}
|
|
17
|
+
export const GetAuditScenariosRequest = /*@__PURE__*/ S.suspend(() =>
|
|
18
|
+
S.Struct({}).pipe(
|
|
19
|
+
T.Http({ method: "GET", uri: "/audit/scenarios", code: 200 }),
|
|
20
|
+
),
|
|
21
|
+
).annotate({
|
|
22
|
+
identifier: "GetAuditScenariosRequest",
|
|
23
|
+
}) as any as S.Schema<GetAuditScenariosRequest>;
|
|
24
|
+
|
|
25
|
+
/** Resource type the actions apply to. Scenarios that are not scoped to a specific resource type (e.g. leaving an organization) are grouped under "other". */
|
|
26
|
+
export type AuditTargetScenarioTargetType =
|
|
27
|
+
| "api_key"
|
|
28
|
+
| "organization"
|
|
29
|
+
| "organization_invitation"
|
|
30
|
+
| "organization_role"
|
|
31
|
+
| "organization_user"
|
|
32
|
+
| "docker_registry"
|
|
33
|
+
| "runner"
|
|
34
|
+
| "sandbox"
|
|
35
|
+
| "snapshot"
|
|
36
|
+
| "user"
|
|
37
|
+
| "volume"
|
|
38
|
+
| "warm_pool"
|
|
39
|
+
| "region"
|
|
40
|
+
| "secret"
|
|
41
|
+
| "other"
|
|
42
|
+
| "identity_provider";
|
|
43
|
+
export const AuditTargetScenarioTargetType = S.String;
|
|
44
|
+
|
|
45
|
+
export type AuditTargetScenarioActionsItem =
|
|
46
|
+
| "create"
|
|
47
|
+
| "read"
|
|
48
|
+
| "update"
|
|
49
|
+
| "delete"
|
|
50
|
+
| "login"
|
|
51
|
+
| "register"
|
|
52
|
+
| "change_password"
|
|
53
|
+
| "set_default"
|
|
54
|
+
| "update_access"
|
|
55
|
+
| "update_quota"
|
|
56
|
+
| "create_region_quota"
|
|
57
|
+
| "update_region_quota"
|
|
58
|
+
| "delete_region_quota"
|
|
59
|
+
| "suspend"
|
|
60
|
+
| "unsuspend"
|
|
61
|
+
| "accept"
|
|
62
|
+
| "decline"
|
|
63
|
+
| "link_account"
|
|
64
|
+
| "unlink_account"
|
|
65
|
+
| "accept_privacy_policies"
|
|
66
|
+
| "leave_organization"
|
|
67
|
+
| "regenerate_key_pair"
|
|
68
|
+
| "update_scheduling"
|
|
69
|
+
| "update_draining"
|
|
70
|
+
| "start"
|
|
71
|
+
| "stop"
|
|
72
|
+
| "resize"
|
|
73
|
+
| "replace_labels"
|
|
74
|
+
| "create_backup"
|
|
75
|
+
| "update_public_status"
|
|
76
|
+
| "rotate_signing_key"
|
|
77
|
+
| "set_auto_stop_interval"
|
|
78
|
+
| "set_auto_pause_interval"
|
|
79
|
+
| "set_ttl"
|
|
80
|
+
| "set_auto_archive_interval"
|
|
81
|
+
| "set_auto_delete_interval"
|
|
82
|
+
| "archive"
|
|
83
|
+
| "snapshot"
|
|
84
|
+
| "fork"
|
|
85
|
+
| "pause"
|
|
86
|
+
| "get_port_preview_url"
|
|
87
|
+
| "set_general_status"
|
|
88
|
+
| "activate"
|
|
89
|
+
| "deactivate"
|
|
90
|
+
| "update_network_settings"
|
|
91
|
+
| "update_secrets"
|
|
92
|
+
| "send_webhook_message"
|
|
93
|
+
| "initialize_webhooks"
|
|
94
|
+
| "update_sandbox_default_limited_network_egress"
|
|
95
|
+
| "update_preview_warning"
|
|
96
|
+
| "update_sso_enabled"
|
|
97
|
+
| "generate_workos_admin_portal_link"
|
|
98
|
+
| "update_scim_enabled"
|
|
99
|
+
| "update_otel_config"
|
|
100
|
+
| "delete_otel_config"
|
|
101
|
+
| "create_ssh_access"
|
|
102
|
+
| "revoke_ssh_access"
|
|
103
|
+
| "recover"
|
|
104
|
+
| "regenerate_proxy_api_key"
|
|
105
|
+
| "regenerate_ssh_gateway_api_key"
|
|
106
|
+
| "regenerate_snapshot_manager_credentials"
|
|
107
|
+
| "auto_stop"
|
|
108
|
+
| "auto_archive"
|
|
109
|
+
| "auto_delete"
|
|
110
|
+
| "ttl_expire"
|
|
111
|
+
| "spot_evict";
|
|
112
|
+
export const AuditTargetScenarioActionsItem = S.String;
|
|
113
|
+
|
|
114
|
+
/** Actions that can be audited against this target type, sorted alphabetically. */
|
|
115
|
+
export type AuditTargetScenarioActionsList =
|
|
116
|
+
Array<AuditTargetScenarioActionsItem>;
|
|
117
|
+
export const AuditTargetScenarioActionsList = /*@__PURE__*/ S.Array(
|
|
118
|
+
AuditTargetScenarioActionsItem,
|
|
119
|
+
) as any as S.Schema<AuditTargetScenarioActionsList>;
|
|
120
|
+
|
|
121
|
+
export interface AuditTargetScenario {
|
|
122
|
+
/** Resource type the actions apply to. Scenarios that are not scoped to a specific resource type (e.g. leaving an organization) are grouped under "other". */
|
|
123
|
+
targetType: AuditTargetScenarioTargetType;
|
|
124
|
+
/** Actions that can be audited against this target type, sorted alphabetically. */
|
|
125
|
+
actions: AuditTargetScenarioActionsList;
|
|
126
|
+
}
|
|
127
|
+
export const AuditTargetScenario = /*@__PURE__*/ S.suspend(() =>
|
|
128
|
+
S.Struct({
|
|
129
|
+
targetType: AuditTargetScenarioTargetType,
|
|
130
|
+
actions: AuditTargetScenarioActionsList,
|
|
131
|
+
}),
|
|
132
|
+
).annotate({
|
|
133
|
+
identifier: "AuditTargetScenario",
|
|
134
|
+
}) as any as S.Schema<AuditTargetScenario>;
|
|
135
|
+
|
|
136
|
+
/** Supported audit log scenarios grouped by target type. Derived at runtime from the audited routes and system events, sorted by target type. */
|
|
137
|
+
export type AuditScenariosTargetsList = Array<AuditTargetScenario>;
|
|
138
|
+
export const AuditScenariosTargetsList = /*@__PURE__*/ S.Array(
|
|
139
|
+
AuditTargetScenario,
|
|
140
|
+
) as any as S.Schema<AuditScenariosTargetsList>;
|
|
141
|
+
|
|
142
|
+
export interface AuditScenarios {
|
|
143
|
+
/** Supported audit log scenarios grouped by target type. Derived at runtime from the audited routes and system events, sorted by target type. */
|
|
144
|
+
targets: AuditScenariosTargetsList;
|
|
145
|
+
}
|
|
146
|
+
export const AuditScenarios = /*@__PURE__*/ S.suspend(() =>
|
|
147
|
+
S.Struct({
|
|
148
|
+
targets: AuditScenariosTargetsList,
|
|
149
|
+
}),
|
|
150
|
+
).annotate({ identifier: "AuditScenarios" }) as any as S.Schema<AuditScenarios>;
|
|
151
|
+
|
|
152
|
+
/** Match values present in this list. Accepts comma-separated values or repeated query parameters. Maximum 100 entries. */
|
|
153
|
+
export type StringFilterInList = Array<string>;
|
|
154
|
+
export const StringFilterInList = /*@__PURE__*/ S.Array(
|
|
155
|
+
S.String,
|
|
156
|
+
) as any as S.Schema<StringFilterInList>;
|
|
157
|
+
|
|
158
|
+
/** Match values not present in this list. Accepts comma-separated values or repeated query parameters. Maximum 100 entries. */
|
|
159
|
+
export type StringFilterNotInList = Array<string>;
|
|
160
|
+
export const StringFilterNotInList = /*@__PURE__*/ S.Array(
|
|
161
|
+
S.String,
|
|
162
|
+
) as any as S.Schema<StringFilterNotInList>;
|
|
163
|
+
|
|
164
|
+
export interface StringFilter {
|
|
165
|
+
/** Match values equal to this value. */
|
|
166
|
+
eq?: string;
|
|
167
|
+
/** Match values not equal to this value. */
|
|
168
|
+
not?: string;
|
|
169
|
+
/** Match values present in this list. Accepts comma-separated values or repeated query parameters. Maximum 100 entries. */
|
|
170
|
+
in?: StringFilterInList;
|
|
171
|
+
/** Match values not present in this list. Accepts comma-separated values or repeated query parameters. Maximum 100 entries. */
|
|
172
|
+
notIn?: StringFilterNotInList;
|
|
173
|
+
}
|
|
174
|
+
export const StringFilter = /*@__PURE__*/ S.suspend(() =>
|
|
175
|
+
S.Struct({
|
|
176
|
+
eq: S.optional(S.String),
|
|
177
|
+
not: S.optional(S.String),
|
|
178
|
+
in: S.optional(StringFilterInList),
|
|
179
|
+
notIn: S.optional(StringFilterNotInList),
|
|
180
|
+
}),
|
|
181
|
+
).annotate({ identifier: "StringFilter" }) as any as S.Schema<StringFilter>;
|
|
182
|
+
|
|
183
|
+
/** Match values present in this list. Accepts comma-separated values or repeated query parameters. Maximum 100 entries. */
|
|
184
|
+
export type IntFilterInList = Array<number>;
|
|
185
|
+
export const IntFilterInList = /*@__PURE__*/ S.Array(
|
|
186
|
+
S.Number,
|
|
187
|
+
) as any as S.Schema<IntFilterInList>;
|
|
188
|
+
|
|
189
|
+
/** Match values not present in this list. Accepts comma-separated values or repeated query parameters. Maximum 100 entries. */
|
|
190
|
+
export type IntFilterNotInList = Array<number>;
|
|
191
|
+
export const IntFilterNotInList = /*@__PURE__*/ S.Array(
|
|
192
|
+
S.Number,
|
|
193
|
+
) as any as S.Schema<IntFilterNotInList>;
|
|
194
|
+
|
|
195
|
+
export interface IntFilter {
|
|
196
|
+
/** Match values equal to this value. */
|
|
197
|
+
eq?: number;
|
|
198
|
+
/** Match values not equal to this value. */
|
|
199
|
+
not?: number;
|
|
200
|
+
/** Match values present in this list. Accepts comma-separated values or repeated query parameters. Maximum 100 entries. */
|
|
201
|
+
in?: IntFilterInList;
|
|
202
|
+
/** Match values not present in this list. Accepts comma-separated values or repeated query parameters. Maximum 100 entries. */
|
|
203
|
+
notIn?: IntFilterNotInList;
|
|
204
|
+
/** Match values greater than or equal to this value. */
|
|
205
|
+
gte?: number;
|
|
206
|
+
/** Match values less than or equal to this value. */
|
|
207
|
+
lte?: number;
|
|
208
|
+
/** Match values strictly greater than this value. */
|
|
209
|
+
gt?: number;
|
|
210
|
+
/** Match values strictly less than this value. */
|
|
211
|
+
lt?: number;
|
|
212
|
+
}
|
|
213
|
+
export const IntFilter = /*@__PURE__*/ S.suspend(() =>
|
|
214
|
+
S.Struct({
|
|
215
|
+
eq: S.optional(S.Number),
|
|
216
|
+
not: S.optional(S.Number),
|
|
217
|
+
in: S.optional(IntFilterInList),
|
|
218
|
+
notIn: S.optional(IntFilterNotInList),
|
|
219
|
+
gte: S.optional(S.Number),
|
|
220
|
+
lte: S.optional(S.Number),
|
|
221
|
+
gt: S.optional(S.Number),
|
|
222
|
+
lt: S.optional(S.Number),
|
|
223
|
+
}),
|
|
224
|
+
).annotate({ identifier: "IntFilter" }) as any as S.Schema<IntFilter>;
|
|
225
|
+
|
|
226
|
+
export interface DateFilter {
|
|
227
|
+
/** Match values greater than or equal to this timestamp (ISO 8601). */
|
|
228
|
+
gte?: string;
|
|
229
|
+
/** Match values less than or equal to this timestamp (ISO 8601). */
|
|
230
|
+
lte?: string;
|
|
231
|
+
/** Match values strictly greater than this timestamp (ISO 8601). */
|
|
232
|
+
gt?: string;
|
|
233
|
+
/** Match values strictly less than this timestamp (ISO 8601). */
|
|
234
|
+
lt?: string;
|
|
235
|
+
}
|
|
236
|
+
export const DateFilter = /*@__PURE__*/ S.suspend(() =>
|
|
237
|
+
S.Struct({
|
|
238
|
+
gte: S.optional(S.String),
|
|
239
|
+
lte: S.optional(S.String),
|
|
240
|
+
gt: S.optional(S.String),
|
|
241
|
+
lt: S.optional(S.String),
|
|
242
|
+
}),
|
|
243
|
+
).annotate({ identifier: "DateFilter" }) as any as S.Schema<DateFilter>;
|
|
244
|
+
|
|
245
|
+
export interface GetOrganizationAuditLogsRequest {
|
|
246
|
+
/** Organization ID */
|
|
247
|
+
organizationId: string;
|
|
248
|
+
/** Page number of the results */
|
|
249
|
+
page?: number;
|
|
250
|
+
/** Number of results per page */
|
|
251
|
+
limit?: number;
|
|
252
|
+
/** Deprecated alias for `createdAt[gte]`. From date (ISO 8601 format). */
|
|
253
|
+
from?: string;
|
|
254
|
+
/** Deprecated alias for `createdAt[lte]`. To date (ISO 8601 format). */
|
|
255
|
+
to?: string;
|
|
256
|
+
/** Token for cursor-based pagination. When provided, takes precedence over page parameter. */
|
|
257
|
+
nextToken?: string;
|
|
258
|
+
/** Filter by audit log ID. */
|
|
259
|
+
id?: StringFilter;
|
|
260
|
+
/** Filter by actor user ID. */
|
|
261
|
+
actorId?: StringFilter;
|
|
262
|
+
/** Filter by actor email. */
|
|
263
|
+
actorEmail?: StringFilter;
|
|
264
|
+
/** Filter by actor API key prefix. */
|
|
265
|
+
actorApiKeyPrefix?: StringFilter;
|
|
266
|
+
/** Filter by actor API key suffix. */
|
|
267
|
+
actorApiKeySuffix?: StringFilter;
|
|
268
|
+
/** Filter by action. */
|
|
269
|
+
action?: StringFilter;
|
|
270
|
+
/** Filter by target type. */
|
|
271
|
+
targetType?: StringFilter;
|
|
272
|
+
/** Filter by target ID. */
|
|
273
|
+
targetId?: StringFilter;
|
|
274
|
+
/** Filter by HTTP status code. */
|
|
275
|
+
statusCode?: IntFilter;
|
|
276
|
+
/** Filter by creation timestamp. */
|
|
277
|
+
createdAt?: DateFilter;
|
|
278
|
+
}
|
|
279
|
+
export const GetOrganizationAuditLogsRequest = /*@__PURE__*/ S.suspend(() =>
|
|
280
|
+
S.Struct({
|
|
281
|
+
organizationId: S.String.pipe(T.Label()),
|
|
282
|
+
page: S.optional(S.Number.pipe(T.Query())),
|
|
283
|
+
limit: S.optional(S.Number.pipe(T.Query())),
|
|
284
|
+
from: S.optional(S.String.pipe(T.Query())),
|
|
285
|
+
to: S.optional(S.String.pipe(T.Query())),
|
|
286
|
+
nextToken: S.optional(S.String.pipe(T.Query())),
|
|
287
|
+
id: S.optional(StringFilter.pipe(T.Query())),
|
|
288
|
+
actorId: S.optional(StringFilter.pipe(T.Query())),
|
|
289
|
+
actorEmail: S.optional(StringFilter.pipe(T.Query())),
|
|
290
|
+
actorApiKeyPrefix: S.optional(StringFilter.pipe(T.Query())),
|
|
291
|
+
actorApiKeySuffix: S.optional(StringFilter.pipe(T.Query())),
|
|
292
|
+
action: S.optional(StringFilter.pipe(T.Query())),
|
|
293
|
+
targetType: S.optional(StringFilter.pipe(T.Query())),
|
|
294
|
+
targetId: S.optional(StringFilter.pipe(T.Query())),
|
|
295
|
+
statusCode: S.optional(IntFilter.pipe(T.Query())),
|
|
296
|
+
createdAt: S.optional(DateFilter.pipe(T.Query())),
|
|
297
|
+
}).pipe(
|
|
298
|
+
T.Http({
|
|
299
|
+
method: "GET",
|
|
300
|
+
uri: "/audit/organizations/{organizationId}",
|
|
301
|
+
code: 200,
|
|
302
|
+
}),
|
|
303
|
+
),
|
|
304
|
+
).annotate({
|
|
305
|
+
identifier: "GetOrganizationAuditLogsRequest",
|
|
306
|
+
}) as any as S.Schema<GetOrganizationAuditLogsRequest>;
|
|
307
|
+
|
|
308
|
+
export type AuditLogMetadataMap = { [key: string]: unknown | undefined };
|
|
309
|
+
export const AuditLogMetadataMap = /*@__PURE__*/ S.Record(
|
|
310
|
+
S.String,
|
|
311
|
+
S.Unknown,
|
|
312
|
+
) as any as S.Schema<AuditLogMetadataMap>;
|
|
313
|
+
|
|
314
|
+
export interface AuditLog {
|
|
315
|
+
id: string;
|
|
316
|
+
actorId: string;
|
|
317
|
+
actorEmail: string;
|
|
318
|
+
actorApiKeyPrefix?: string;
|
|
319
|
+
actorApiKeySuffix?: string;
|
|
320
|
+
organizationId?: string;
|
|
321
|
+
action: string;
|
|
322
|
+
targetType?: string;
|
|
323
|
+
targetId?: string;
|
|
324
|
+
statusCode?: number;
|
|
325
|
+
errorMessage?: string;
|
|
326
|
+
ipAddress?: string;
|
|
327
|
+
userAgent?: string;
|
|
328
|
+
source?: string;
|
|
329
|
+
metadata?: AuditLogMetadataMap;
|
|
330
|
+
createdAt: string;
|
|
331
|
+
}
|
|
332
|
+
export const AuditLog = /*@__PURE__*/ S.suspend(() =>
|
|
333
|
+
S.Struct({
|
|
334
|
+
id: S.String,
|
|
335
|
+
actorId: S.String,
|
|
336
|
+
actorEmail: S.String,
|
|
337
|
+
actorApiKeyPrefix: S.optional(S.String),
|
|
338
|
+
actorApiKeySuffix: S.optional(S.String),
|
|
339
|
+
organizationId: S.optional(S.String),
|
|
340
|
+
action: S.String,
|
|
341
|
+
targetType: S.optional(S.String),
|
|
342
|
+
targetId: S.optional(S.String),
|
|
343
|
+
statusCode: S.optional(S.Number),
|
|
344
|
+
errorMessage: S.optional(S.String),
|
|
345
|
+
ipAddress: S.optional(S.String),
|
|
346
|
+
userAgent: S.optional(S.String),
|
|
347
|
+
source: S.optional(S.String),
|
|
348
|
+
metadata: S.optional(AuditLogMetadataMap),
|
|
349
|
+
createdAt: S.String,
|
|
350
|
+
}),
|
|
351
|
+
).annotate({ identifier: "AuditLog" }) as any as S.Schema<AuditLog>;
|
|
352
|
+
|
|
353
|
+
export type PaginatedAuditLogsItemsList = Array<AuditLog>;
|
|
354
|
+
export const PaginatedAuditLogsItemsList = /*@__PURE__*/ S.Array(
|
|
355
|
+
AuditLog,
|
|
356
|
+
) as any as S.Schema<PaginatedAuditLogsItemsList>;
|
|
357
|
+
|
|
358
|
+
export interface PaginatedAuditLogs {
|
|
359
|
+
items: PaginatedAuditLogsItemsList;
|
|
360
|
+
total: number;
|
|
361
|
+
page: number;
|
|
362
|
+
totalPages: number;
|
|
363
|
+
/** Token for next page in cursor-based pagination */
|
|
364
|
+
nextToken?: string;
|
|
365
|
+
}
|
|
366
|
+
export const PaginatedAuditLogs = /*@__PURE__*/ S.suspend(() =>
|
|
367
|
+
S.Struct({
|
|
368
|
+
items: PaginatedAuditLogsItemsList,
|
|
369
|
+
total: S.Number,
|
|
370
|
+
page: S.Number,
|
|
371
|
+
totalPages: S.Number,
|
|
372
|
+
nextToken: S.optional(S.String),
|
|
373
|
+
}),
|
|
374
|
+
).annotate({
|
|
375
|
+
identifier: "PaginatedAuditLogs",
|
|
376
|
+
}) as any as S.Schema<PaginatedAuditLogs>;
|
|
377
|
+
|
|
378
|
+
export type GetAuditScenariosError = DaytonaOpError;
|
|
379
|
+
/** Get supported audit log scenarios Returns the supported audit log actions grouped by target type. The list is derived at runtime from the audited routes and system events, so it always reflects what can actually appear in the audit log. */
|
|
380
|
+
export const getAuditScenarios: API.OperationMethod<
|
|
381
|
+
GetAuditScenariosRequest,
|
|
382
|
+
AuditScenarios,
|
|
383
|
+
GetAuditScenariosError,
|
|
384
|
+
DaytonaOpContext
|
|
385
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
386
|
+
input: GetAuditScenariosRequest,
|
|
387
|
+
output: AuditScenarios,
|
|
388
|
+
errors: [UnknownDaytonaError],
|
|
389
|
+
protocol: DaytonaProtocol,
|
|
390
|
+
retry: Retry.Retry,
|
|
391
|
+
}));
|
|
392
|
+
|
|
393
|
+
export type GetOrganizationAuditLogsError = DaytonaOpError;
|
|
394
|
+
/** Get audit logs for organization */
|
|
395
|
+
export const getOrganizationAuditLogs: API.PaginatedOperationMethod<
|
|
396
|
+
GetOrganizationAuditLogsRequest,
|
|
397
|
+
PaginatedAuditLogs,
|
|
398
|
+
GetOrganizationAuditLogsError,
|
|
399
|
+
DaytonaOpContext,
|
|
400
|
+
AuditLog
|
|
401
|
+
> = /*@__PURE__*/ API.makePaginated(
|
|
402
|
+
() => ({
|
|
403
|
+
input: GetOrganizationAuditLogsRequest,
|
|
404
|
+
output: PaginatedAuditLogs,
|
|
405
|
+
errors: [UnknownDaytonaError],
|
|
406
|
+
protocol: DaytonaProtocol,
|
|
407
|
+
retry: Retry.Retry,
|
|
408
|
+
pagination: {
|
|
409
|
+
mode: "token",
|
|
410
|
+
inputToken: "nextToken",
|
|
411
|
+
outputToken: "nextToken",
|
|
412
|
+
items: "items",
|
|
413
|
+
} as const,
|
|
414
|
+
}),
|
|
415
|
+
paginateToken,
|
|
416
|
+
) as any;
|