@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,385 @@
|
|
|
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 GetOrganizationSandboxTelemetryTraceRequest {
|
|
16
|
+
/** Organization ID */
|
|
17
|
+
organizationId: string;
|
|
18
|
+
/** Sandbox ID */
|
|
19
|
+
sandboxId: string;
|
|
20
|
+
/** Trace ID */
|
|
21
|
+
traceId: string;
|
|
22
|
+
}
|
|
23
|
+
export const GetOrganizationSandboxTelemetryTraceRequest =
|
|
24
|
+
/*@__PURE__*/ S.suspend(() =>
|
|
25
|
+
S.Struct({
|
|
26
|
+
organizationId: S.String.pipe(T.Label()),
|
|
27
|
+
sandboxId: S.String.pipe(T.Label()),
|
|
28
|
+
traceId: S.String.pipe(T.Label()),
|
|
29
|
+
}).pipe(
|
|
30
|
+
T.Http({
|
|
31
|
+
method: "GET",
|
|
32
|
+
uri: "/organization/{organizationId}/sandbox/{sandboxId}/telemetry/traces/{traceId}",
|
|
33
|
+
code: 200,
|
|
34
|
+
}),
|
|
35
|
+
),
|
|
36
|
+
).annotate({
|
|
37
|
+
identifier: "GetOrganizationSandboxTelemetryTraceRequest",
|
|
38
|
+
}) as any as S.Schema<GetOrganizationSandboxTelemetryTraceRequest>;
|
|
39
|
+
|
|
40
|
+
export type ModelsSpanSpanAttributesMap = { [key: string]: string | undefined };
|
|
41
|
+
export const ModelsSpanSpanAttributesMap = /*@__PURE__*/ S.Record(
|
|
42
|
+
S.String,
|
|
43
|
+
S.String,
|
|
44
|
+
) as any as S.Schema<ModelsSpanSpanAttributesMap>;
|
|
45
|
+
|
|
46
|
+
export interface ModelsSpan {
|
|
47
|
+
durationMs?: number;
|
|
48
|
+
parentSpanId?: string;
|
|
49
|
+
spanAttributes?: ModelsSpanSpanAttributesMap;
|
|
50
|
+
spanId?: string;
|
|
51
|
+
spanName?: string;
|
|
52
|
+
statusCode?: string;
|
|
53
|
+
statusMessage?: string;
|
|
54
|
+
timestamp?: string;
|
|
55
|
+
traceId?: string;
|
|
56
|
+
}
|
|
57
|
+
export const ModelsSpan = /*@__PURE__*/ S.suspend(() =>
|
|
58
|
+
S.Struct({
|
|
59
|
+
durationMs: S.optional(S.Number),
|
|
60
|
+
parentSpanId: S.optional(S.String),
|
|
61
|
+
spanAttributes: S.optional(ModelsSpanSpanAttributesMap),
|
|
62
|
+
spanId: S.optional(S.String),
|
|
63
|
+
spanName: S.optional(S.String),
|
|
64
|
+
statusCode: S.optional(S.String),
|
|
65
|
+
statusMessage: S.optional(S.String),
|
|
66
|
+
timestamp: S.optional(S.String),
|
|
67
|
+
traceId: S.optional(S.String),
|
|
68
|
+
}),
|
|
69
|
+
).annotate({ identifier: "ModelsSpan" }) as any as S.Schema<ModelsSpan>;
|
|
70
|
+
|
|
71
|
+
export type GetOrganizationSandboxTelemetryTraceResponseBodyList =
|
|
72
|
+
Array<ModelsSpan>;
|
|
73
|
+
export const GetOrganizationSandboxTelemetryTraceResponseBodyList =
|
|
74
|
+
/*@__PURE__*/ S.Array(
|
|
75
|
+
ModelsSpan,
|
|
76
|
+
) as any as S.Schema<GetOrganizationSandboxTelemetryTraceResponseBodyList>;
|
|
77
|
+
|
|
78
|
+
export type GetOrganizationSandboxTelemetryTraceResponse =
|
|
79
|
+
GetOrganizationSandboxTelemetryTraceResponseBodyList;
|
|
80
|
+
export const GetOrganizationSandboxTelemetryTraceResponse =
|
|
81
|
+
/*@__PURE__*/ S.suspend(() =>
|
|
82
|
+
GetOrganizationSandboxTelemetryTraceResponseBodyList.pipe(
|
|
83
|
+
T.RawResponseRoot(),
|
|
84
|
+
),
|
|
85
|
+
).annotate({
|
|
86
|
+
identifier: "GetOrganizationSandboxTelemetryTraceResponse",
|
|
87
|
+
}) as any as S.Schema<GetOrganizationSandboxTelemetryTraceResponse>;
|
|
88
|
+
|
|
89
|
+
export interface ListOrganizationSandboxTelemetryLogsRequest {
|
|
90
|
+
/** Organization ID */
|
|
91
|
+
organizationId: string;
|
|
92
|
+
/** Sandbox ID */
|
|
93
|
+
sandboxId: string;
|
|
94
|
+
/** Start time (RFC3339) */
|
|
95
|
+
from: string;
|
|
96
|
+
/** End time (RFC3339) */
|
|
97
|
+
to: string;
|
|
98
|
+
/** Comma-separated severity levels */
|
|
99
|
+
severity?: string;
|
|
100
|
+
/** Search text (ILIKE) */
|
|
101
|
+
search?: string;
|
|
102
|
+
/** Page size */
|
|
103
|
+
limit?: number;
|
|
104
|
+
/** Offset */
|
|
105
|
+
offset?: number;
|
|
106
|
+
}
|
|
107
|
+
export const ListOrganizationSandboxTelemetryLogsRequest =
|
|
108
|
+
/*@__PURE__*/ S.suspend(() =>
|
|
109
|
+
S.Struct({
|
|
110
|
+
organizationId: S.String.pipe(T.Label()),
|
|
111
|
+
sandboxId: S.String.pipe(T.Label()),
|
|
112
|
+
from: S.String.pipe(T.Query()),
|
|
113
|
+
to: S.String.pipe(T.Query()),
|
|
114
|
+
severity: S.optional(S.String.pipe(T.Query())),
|
|
115
|
+
search: S.optional(S.String.pipe(T.Query())),
|
|
116
|
+
limit: S.optional(S.Number.pipe(T.Query())),
|
|
117
|
+
offset: S.optional(S.Number.pipe(T.Query())),
|
|
118
|
+
}).pipe(
|
|
119
|
+
T.Http({
|
|
120
|
+
method: "GET",
|
|
121
|
+
uri: "/organization/{organizationId}/sandbox/{sandboxId}/telemetry/logs",
|
|
122
|
+
code: 200,
|
|
123
|
+
}),
|
|
124
|
+
),
|
|
125
|
+
).annotate({
|
|
126
|
+
identifier: "ListOrganizationSandboxTelemetryLogsRequest",
|
|
127
|
+
}) as any as S.Schema<ListOrganizationSandboxTelemetryLogsRequest>;
|
|
128
|
+
|
|
129
|
+
export type ModelsLogEntryLogAttributesMap = {
|
|
130
|
+
[key: string]: string | undefined;
|
|
131
|
+
};
|
|
132
|
+
export const ModelsLogEntryLogAttributesMap = /*@__PURE__*/ S.Record(
|
|
133
|
+
S.String,
|
|
134
|
+
S.String,
|
|
135
|
+
) as any as S.Schema<ModelsLogEntryLogAttributesMap>;
|
|
136
|
+
|
|
137
|
+
export type ModelsLogEntryResourceAttributesMap = {
|
|
138
|
+
[key: string]: string | undefined;
|
|
139
|
+
};
|
|
140
|
+
export const ModelsLogEntryResourceAttributesMap = /*@__PURE__*/ S.Record(
|
|
141
|
+
S.String,
|
|
142
|
+
S.String,
|
|
143
|
+
) as any as S.Schema<ModelsLogEntryResourceAttributesMap>;
|
|
144
|
+
|
|
145
|
+
export interface ModelsLogEntry {
|
|
146
|
+
body?: string;
|
|
147
|
+
logAttributes?: ModelsLogEntryLogAttributesMap;
|
|
148
|
+
resourceAttributes?: ModelsLogEntryResourceAttributesMap;
|
|
149
|
+
serviceName?: string;
|
|
150
|
+
severityNumber?: number;
|
|
151
|
+
severityText?: string;
|
|
152
|
+
spanId?: string;
|
|
153
|
+
timestamp?: string;
|
|
154
|
+
traceId?: string;
|
|
155
|
+
}
|
|
156
|
+
export const ModelsLogEntry = /*@__PURE__*/ S.suspend(() =>
|
|
157
|
+
S.Struct({
|
|
158
|
+
body: S.optional(S.String),
|
|
159
|
+
logAttributes: S.optional(ModelsLogEntryLogAttributesMap),
|
|
160
|
+
resourceAttributes: S.optional(ModelsLogEntryResourceAttributesMap),
|
|
161
|
+
serviceName: S.optional(S.String),
|
|
162
|
+
severityNumber: S.optional(S.Number),
|
|
163
|
+
severityText: S.optional(S.String),
|
|
164
|
+
spanId: S.optional(S.String),
|
|
165
|
+
timestamp: S.optional(S.String),
|
|
166
|
+
traceId: S.optional(S.String),
|
|
167
|
+
}),
|
|
168
|
+
).annotate({ identifier: "ModelsLogEntry" }) as any as S.Schema<ModelsLogEntry>;
|
|
169
|
+
|
|
170
|
+
export type ListOrganizationSandboxTelemetryLogsResponseBodyList =
|
|
171
|
+
Array<ModelsLogEntry>;
|
|
172
|
+
export const ListOrganizationSandboxTelemetryLogsResponseBodyList =
|
|
173
|
+
/*@__PURE__*/ S.Array(
|
|
174
|
+
ModelsLogEntry,
|
|
175
|
+
) as any as S.Schema<ListOrganizationSandboxTelemetryLogsResponseBodyList>;
|
|
176
|
+
|
|
177
|
+
export type ListOrganizationSandboxTelemetryLogsResponse =
|
|
178
|
+
ListOrganizationSandboxTelemetryLogsResponseBodyList;
|
|
179
|
+
export const ListOrganizationSandboxTelemetryLogsResponse =
|
|
180
|
+
/*@__PURE__*/ S.suspend(() =>
|
|
181
|
+
ListOrganizationSandboxTelemetryLogsResponseBodyList.pipe(
|
|
182
|
+
T.RawResponseRoot(),
|
|
183
|
+
),
|
|
184
|
+
).annotate({
|
|
185
|
+
identifier: "ListOrganizationSandboxTelemetryLogsResponse",
|
|
186
|
+
}) as any as S.Schema<ListOrganizationSandboxTelemetryLogsResponse>;
|
|
187
|
+
|
|
188
|
+
export interface ListOrganizationSandboxTelemetryMetricsRequest {
|
|
189
|
+
/** Organization ID */
|
|
190
|
+
organizationId: string;
|
|
191
|
+
/** Sandbox ID */
|
|
192
|
+
sandboxId: string;
|
|
193
|
+
/** Start time (RFC3339) */
|
|
194
|
+
from: string;
|
|
195
|
+
/** End time (RFC3339) */
|
|
196
|
+
to: string;
|
|
197
|
+
/** Comma-separated metric names */
|
|
198
|
+
metricNames?: string;
|
|
199
|
+
}
|
|
200
|
+
export const ListOrganizationSandboxTelemetryMetricsRequest =
|
|
201
|
+
/*@__PURE__*/ S.suspend(() =>
|
|
202
|
+
S.Struct({
|
|
203
|
+
organizationId: S.String.pipe(T.Label()),
|
|
204
|
+
sandboxId: S.String.pipe(T.Label()),
|
|
205
|
+
from: S.String.pipe(T.Query()),
|
|
206
|
+
to: S.String.pipe(T.Query()),
|
|
207
|
+
metricNames: S.optional(S.String.pipe(T.Query())),
|
|
208
|
+
}).pipe(
|
|
209
|
+
T.Http({
|
|
210
|
+
method: "GET",
|
|
211
|
+
uri: "/organization/{organizationId}/sandbox/{sandboxId}/telemetry/metrics",
|
|
212
|
+
code: 200,
|
|
213
|
+
}),
|
|
214
|
+
),
|
|
215
|
+
).annotate({
|
|
216
|
+
identifier: "ListOrganizationSandboxTelemetryMetricsRequest",
|
|
217
|
+
}) as any as S.Schema<ListOrganizationSandboxTelemetryMetricsRequest>;
|
|
218
|
+
|
|
219
|
+
export interface ModelsMetricPoint {
|
|
220
|
+
metricName?: string;
|
|
221
|
+
timestamp?: string;
|
|
222
|
+
value?: number;
|
|
223
|
+
}
|
|
224
|
+
export const ModelsMetricPoint = /*@__PURE__*/ S.suspend(() =>
|
|
225
|
+
S.Struct({
|
|
226
|
+
metricName: S.optional(S.String),
|
|
227
|
+
timestamp: S.optional(S.String),
|
|
228
|
+
value: S.optional(S.Number),
|
|
229
|
+
}),
|
|
230
|
+
).annotate({
|
|
231
|
+
identifier: "ModelsMetricPoint",
|
|
232
|
+
}) as any as S.Schema<ModelsMetricPoint>;
|
|
233
|
+
|
|
234
|
+
export type ListOrganizationSandboxTelemetryMetricsResponseBodyList =
|
|
235
|
+
Array<ModelsMetricPoint>;
|
|
236
|
+
export const ListOrganizationSandboxTelemetryMetricsResponseBodyList =
|
|
237
|
+
/*@__PURE__*/ S.Array(
|
|
238
|
+
ModelsMetricPoint,
|
|
239
|
+
) as any as S.Schema<ListOrganizationSandboxTelemetryMetricsResponseBodyList>;
|
|
240
|
+
|
|
241
|
+
export type ListOrganizationSandboxTelemetryMetricsResponse =
|
|
242
|
+
ListOrganizationSandboxTelemetryMetricsResponseBodyList;
|
|
243
|
+
export const ListOrganizationSandboxTelemetryMetricsResponse =
|
|
244
|
+
/*@__PURE__*/ S.suspend(() =>
|
|
245
|
+
ListOrganizationSandboxTelemetryMetricsResponseBodyList.pipe(
|
|
246
|
+
T.RawResponseRoot(),
|
|
247
|
+
),
|
|
248
|
+
).annotate({
|
|
249
|
+
identifier: "ListOrganizationSandboxTelemetryMetricsResponse",
|
|
250
|
+
}) as any as S.Schema<ListOrganizationSandboxTelemetryMetricsResponse>;
|
|
251
|
+
|
|
252
|
+
export interface ListOrganizationSandboxTelemetryTracesRequest {
|
|
253
|
+
/** Organization ID */
|
|
254
|
+
organizationId: string;
|
|
255
|
+
/** Sandbox ID */
|
|
256
|
+
sandboxId: string;
|
|
257
|
+
/** Start time (RFC3339) */
|
|
258
|
+
from: string;
|
|
259
|
+
/** End time (RFC3339) */
|
|
260
|
+
to: string;
|
|
261
|
+
/** Page size */
|
|
262
|
+
limit?: number;
|
|
263
|
+
/** Offset */
|
|
264
|
+
offset?: number;
|
|
265
|
+
}
|
|
266
|
+
export const ListOrganizationSandboxTelemetryTracesRequest =
|
|
267
|
+
/*@__PURE__*/ S.suspend(() =>
|
|
268
|
+
S.Struct({
|
|
269
|
+
organizationId: S.String.pipe(T.Label()),
|
|
270
|
+
sandboxId: S.String.pipe(T.Label()),
|
|
271
|
+
from: S.String.pipe(T.Query()),
|
|
272
|
+
to: S.String.pipe(T.Query()),
|
|
273
|
+
limit: S.optional(S.Number.pipe(T.Query())),
|
|
274
|
+
offset: S.optional(S.Number.pipe(T.Query())),
|
|
275
|
+
}).pipe(
|
|
276
|
+
T.Http({
|
|
277
|
+
method: "GET",
|
|
278
|
+
uri: "/organization/{organizationId}/sandbox/{sandboxId}/telemetry/traces",
|
|
279
|
+
code: 200,
|
|
280
|
+
}),
|
|
281
|
+
),
|
|
282
|
+
).annotate({
|
|
283
|
+
identifier: "ListOrganizationSandboxTelemetryTracesRequest",
|
|
284
|
+
}) as any as S.Schema<ListOrganizationSandboxTelemetryTracesRequest>;
|
|
285
|
+
|
|
286
|
+
export interface ModelsTraceSummary {
|
|
287
|
+
endTime?: string;
|
|
288
|
+
rootSpanName?: string;
|
|
289
|
+
spanCount?: number;
|
|
290
|
+
startTime?: string;
|
|
291
|
+
statusCode?: string;
|
|
292
|
+
totalDurationMs?: number;
|
|
293
|
+
traceId?: string;
|
|
294
|
+
}
|
|
295
|
+
export const ModelsTraceSummary = /*@__PURE__*/ S.suspend(() =>
|
|
296
|
+
S.Struct({
|
|
297
|
+
endTime: S.optional(S.String),
|
|
298
|
+
rootSpanName: S.optional(S.String),
|
|
299
|
+
spanCount: S.optional(S.Number),
|
|
300
|
+
startTime: S.optional(S.String),
|
|
301
|
+
statusCode: S.optional(S.String),
|
|
302
|
+
totalDurationMs: S.optional(S.Number),
|
|
303
|
+
traceId: S.optional(S.String),
|
|
304
|
+
}),
|
|
305
|
+
).annotate({
|
|
306
|
+
identifier: "ModelsTraceSummary",
|
|
307
|
+
}) as any as S.Schema<ModelsTraceSummary>;
|
|
308
|
+
|
|
309
|
+
export type ListOrganizationSandboxTelemetryTracesResponseBodyList =
|
|
310
|
+
Array<ModelsTraceSummary>;
|
|
311
|
+
export const ListOrganizationSandboxTelemetryTracesResponseBodyList =
|
|
312
|
+
/*@__PURE__*/ S.Array(
|
|
313
|
+
ModelsTraceSummary,
|
|
314
|
+
) as any as S.Schema<ListOrganizationSandboxTelemetryTracesResponseBodyList>;
|
|
315
|
+
|
|
316
|
+
export type ListOrganizationSandboxTelemetryTracesResponse =
|
|
317
|
+
ListOrganizationSandboxTelemetryTracesResponseBodyList;
|
|
318
|
+
export const ListOrganizationSandboxTelemetryTracesResponse =
|
|
319
|
+
/*@__PURE__*/ S.suspend(() =>
|
|
320
|
+
ListOrganizationSandboxTelemetryTracesResponseBodyList.pipe(
|
|
321
|
+
T.RawResponseRoot(),
|
|
322
|
+
),
|
|
323
|
+
).annotate({
|
|
324
|
+
identifier: "ListOrganizationSandboxTelemetryTracesResponse",
|
|
325
|
+
}) as any as S.Schema<ListOrganizationSandboxTelemetryTracesResponse>;
|
|
326
|
+
|
|
327
|
+
export type GetOrganizationSandboxTelemetryTraceError = DaytonaOpError;
|
|
328
|
+
/** Get trace spans Returns all spans belonging to a specific trace ID */
|
|
329
|
+
export const getOrganizationSandboxTelemetryTrace: API.OperationMethod<
|
|
330
|
+
GetOrganizationSandboxTelemetryTraceRequest,
|
|
331
|
+
GetOrganizationSandboxTelemetryTraceResponse,
|
|
332
|
+
GetOrganizationSandboxTelemetryTraceError,
|
|
333
|
+
DaytonaOpContext
|
|
334
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
335
|
+
input: GetOrganizationSandboxTelemetryTraceRequest,
|
|
336
|
+
output: GetOrganizationSandboxTelemetryTraceResponse,
|
|
337
|
+
errors: [UnknownDaytonaError],
|
|
338
|
+
protocol: DaytonaProtocol,
|
|
339
|
+
retry: Retry.Retry,
|
|
340
|
+
}));
|
|
341
|
+
|
|
342
|
+
export type ListOrganizationSandboxTelemetryLogsError = DaytonaOpError;
|
|
343
|
+
/** Get sandbox logs Returns paginated log entries with optional severity and search filters */
|
|
344
|
+
export const listOrganizationSandboxTelemetryLogs: API.OperationMethod<
|
|
345
|
+
ListOrganizationSandboxTelemetryLogsRequest,
|
|
346
|
+
ListOrganizationSandboxTelemetryLogsResponse,
|
|
347
|
+
ListOrganizationSandboxTelemetryLogsError,
|
|
348
|
+
DaytonaOpContext
|
|
349
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
350
|
+
input: ListOrganizationSandboxTelemetryLogsRequest,
|
|
351
|
+
output: ListOrganizationSandboxTelemetryLogsResponse,
|
|
352
|
+
errors: [UnknownDaytonaError],
|
|
353
|
+
protocol: DaytonaProtocol,
|
|
354
|
+
retry: Retry.Retry,
|
|
355
|
+
}));
|
|
356
|
+
|
|
357
|
+
export type ListOrganizationSandboxTelemetryMetricsError = DaytonaOpError;
|
|
358
|
+
/** Get sandbox metrics Returns gauge metrics aggregated in 1-minute intervals */
|
|
359
|
+
export const listOrganizationSandboxTelemetryMetrics: API.OperationMethod<
|
|
360
|
+
ListOrganizationSandboxTelemetryMetricsRequest,
|
|
361
|
+
ListOrganizationSandboxTelemetryMetricsResponse,
|
|
362
|
+
ListOrganizationSandboxTelemetryMetricsError,
|
|
363
|
+
DaytonaOpContext
|
|
364
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
365
|
+
input: ListOrganizationSandboxTelemetryMetricsRequest,
|
|
366
|
+
output: ListOrganizationSandboxTelemetryMetricsResponse,
|
|
367
|
+
errors: [UnknownDaytonaError],
|
|
368
|
+
protocol: DaytonaProtocol,
|
|
369
|
+
retry: Retry.Retry,
|
|
370
|
+
}));
|
|
371
|
+
|
|
372
|
+
export type ListOrganizationSandboxTelemetryTracesError = DaytonaOpError;
|
|
373
|
+
/** Get sandbox traces Returns paginated trace summaries with span counts and root span info */
|
|
374
|
+
export const listOrganizationSandboxTelemetryTraces: API.OperationMethod<
|
|
375
|
+
ListOrganizationSandboxTelemetryTracesRequest,
|
|
376
|
+
ListOrganizationSandboxTelemetryTracesResponse,
|
|
377
|
+
ListOrganizationSandboxTelemetryTracesError,
|
|
378
|
+
DaytonaOpContext
|
|
379
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
380
|
+
input: ListOrganizationSandboxTelemetryTracesRequest,
|
|
381
|
+
output: ListOrganizationSandboxTelemetryTracesResponse,
|
|
382
|
+
errors: [UnknownDaytonaError],
|
|
383
|
+
protocol: DaytonaProtocol,
|
|
384
|
+
retry: Retry.Retry,
|
|
385
|
+
}));
|
|
@@ -0,0 +1,316 @@
|
|
|
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 GetOrganizationUsageAggregatedRequest {
|
|
16
|
+
/** Organization ID */
|
|
17
|
+
organizationId: string;
|
|
18
|
+
/** Start time (RFC3339) */
|
|
19
|
+
from: string;
|
|
20
|
+
/** End time (RFC3339) */
|
|
21
|
+
to: string;
|
|
22
|
+
}
|
|
23
|
+
export const GetOrganizationUsageAggregatedRequest = /*@__PURE__*/ S.suspend(
|
|
24
|
+
() =>
|
|
25
|
+
S.Struct({
|
|
26
|
+
organizationId: S.String.pipe(T.Label()),
|
|
27
|
+
from: S.String.pipe(T.Query()),
|
|
28
|
+
to: S.String.pipe(T.Query()),
|
|
29
|
+
}).pipe(
|
|
30
|
+
T.Http({
|
|
31
|
+
method: "GET",
|
|
32
|
+
uri: "/organization/{organizationId}/usage/aggregated",
|
|
33
|
+
code: 200,
|
|
34
|
+
}),
|
|
35
|
+
),
|
|
36
|
+
).annotate({
|
|
37
|
+
identifier: "GetOrganizationUsageAggregatedRequest",
|
|
38
|
+
}) as any as S.Schema<GetOrganizationUsageAggregatedRequest>;
|
|
39
|
+
|
|
40
|
+
export interface ModelsAggregatedUsage {
|
|
41
|
+
firstStart?: string;
|
|
42
|
+
lastEnd?: string;
|
|
43
|
+
sandboxCount?: number;
|
|
44
|
+
totalCPUSeconds?: number;
|
|
45
|
+
totalDiskGBSeconds?: number;
|
|
46
|
+
totalGPUSeconds?: number;
|
|
47
|
+
totalPrice?: number;
|
|
48
|
+
totalRAMGBSeconds?: number;
|
|
49
|
+
}
|
|
50
|
+
export const ModelsAggregatedUsage = /*@__PURE__*/ S.suspend(() =>
|
|
51
|
+
S.Struct({
|
|
52
|
+
firstStart: S.optional(S.String),
|
|
53
|
+
lastEnd: S.optional(S.String),
|
|
54
|
+
sandboxCount: S.optional(S.Number),
|
|
55
|
+
totalCPUSeconds: S.optional(S.Number),
|
|
56
|
+
totalDiskGBSeconds: S.optional(S.Number),
|
|
57
|
+
totalGPUSeconds: S.optional(S.Number),
|
|
58
|
+
totalPrice: S.optional(S.Number),
|
|
59
|
+
totalRAMGBSeconds: S.optional(S.Number),
|
|
60
|
+
}),
|
|
61
|
+
).annotate({
|
|
62
|
+
identifier: "ModelsAggregatedUsage",
|
|
63
|
+
}) as any as S.Schema<ModelsAggregatedUsage>;
|
|
64
|
+
|
|
65
|
+
export interface ListOrganizationSandboxUsageRequest {
|
|
66
|
+
/** Organization ID */
|
|
67
|
+
organizationId: string;
|
|
68
|
+
/** Sandbox ID */
|
|
69
|
+
sandboxId: string;
|
|
70
|
+
/** Start time (RFC3339) */
|
|
71
|
+
from: string;
|
|
72
|
+
/** End time (RFC3339) */
|
|
73
|
+
to: string;
|
|
74
|
+
}
|
|
75
|
+
export const ListOrganizationSandboxUsageRequest = /*@__PURE__*/ S.suspend(() =>
|
|
76
|
+
S.Struct({
|
|
77
|
+
organizationId: S.String.pipe(T.Label()),
|
|
78
|
+
sandboxId: S.String.pipe(T.Label()),
|
|
79
|
+
from: S.String.pipe(T.Query()),
|
|
80
|
+
to: S.String.pipe(T.Query()),
|
|
81
|
+
}).pipe(
|
|
82
|
+
T.Http({
|
|
83
|
+
method: "GET",
|
|
84
|
+
uri: "/organization/{organizationId}/sandbox/{sandboxId}/usage",
|
|
85
|
+
code: 200,
|
|
86
|
+
}),
|
|
87
|
+
),
|
|
88
|
+
).annotate({
|
|
89
|
+
identifier: "ListOrganizationSandboxUsageRequest",
|
|
90
|
+
}) as any as S.Schema<ListOrganizationSandboxUsageRequest>;
|
|
91
|
+
|
|
92
|
+
export interface ModelsUsagePeriod {
|
|
93
|
+
cpu?: number;
|
|
94
|
+
diskGB?: number;
|
|
95
|
+
endAt?: string;
|
|
96
|
+
gpu?: number;
|
|
97
|
+
price?: number;
|
|
98
|
+
ramGB?: number;
|
|
99
|
+
startAt?: string;
|
|
100
|
+
}
|
|
101
|
+
export const ModelsUsagePeriod = /*@__PURE__*/ S.suspend(() =>
|
|
102
|
+
S.Struct({
|
|
103
|
+
cpu: S.optional(S.Number),
|
|
104
|
+
diskGB: S.optional(S.Number),
|
|
105
|
+
endAt: S.optional(S.String),
|
|
106
|
+
gpu: S.optional(S.Number),
|
|
107
|
+
price: S.optional(S.Number),
|
|
108
|
+
ramGB: S.optional(S.Number),
|
|
109
|
+
startAt: S.optional(S.String),
|
|
110
|
+
}),
|
|
111
|
+
).annotate({
|
|
112
|
+
identifier: "ModelsUsagePeriod",
|
|
113
|
+
}) as any as S.Schema<ModelsUsagePeriod>;
|
|
114
|
+
|
|
115
|
+
export type ListOrganizationSandboxUsageResponseBodyList =
|
|
116
|
+
Array<ModelsUsagePeriod>;
|
|
117
|
+
export const ListOrganizationSandboxUsageResponseBodyList =
|
|
118
|
+
/*@__PURE__*/ S.Array(
|
|
119
|
+
ModelsUsagePeriod,
|
|
120
|
+
) as any as S.Schema<ListOrganizationSandboxUsageResponseBodyList>;
|
|
121
|
+
|
|
122
|
+
export type ListOrganizationSandboxUsageResponse =
|
|
123
|
+
ListOrganizationSandboxUsageResponseBodyList;
|
|
124
|
+
export const ListOrganizationSandboxUsageResponse = /*@__PURE__*/ S.suspend(
|
|
125
|
+
() => ListOrganizationSandboxUsageResponseBodyList.pipe(T.RawResponseRoot()),
|
|
126
|
+
).annotate({
|
|
127
|
+
identifier: "ListOrganizationSandboxUsageResponse",
|
|
128
|
+
}) as any as S.Schema<ListOrganizationSandboxUsageResponse>;
|
|
129
|
+
|
|
130
|
+
export interface ListOrganizationUsageChartRequest {
|
|
131
|
+
/** Organization ID */
|
|
132
|
+
organizationId: string;
|
|
133
|
+
/** Start time (RFC3339) */
|
|
134
|
+
from: string;
|
|
135
|
+
/** End time (RFC3339) */
|
|
136
|
+
to: string;
|
|
137
|
+
/** Region filter */
|
|
138
|
+
region?: string;
|
|
139
|
+
}
|
|
140
|
+
export const ListOrganizationUsageChartRequest = /*@__PURE__*/ S.suspend(() =>
|
|
141
|
+
S.Struct({
|
|
142
|
+
organizationId: S.String.pipe(T.Label()),
|
|
143
|
+
from: S.String.pipe(T.Query()),
|
|
144
|
+
to: S.String.pipe(T.Query()),
|
|
145
|
+
region: S.optional(S.String.pipe(T.Query())),
|
|
146
|
+
}).pipe(
|
|
147
|
+
T.Http({
|
|
148
|
+
method: "GET",
|
|
149
|
+
uri: "/organization/{organizationId}/usage/chart",
|
|
150
|
+
code: 200,
|
|
151
|
+
}),
|
|
152
|
+
),
|
|
153
|
+
).annotate({
|
|
154
|
+
identifier: "ListOrganizationUsageChartRequest",
|
|
155
|
+
}) as any as S.Schema<ListOrganizationUsageChartRequest>;
|
|
156
|
+
|
|
157
|
+
export interface ModelsUsageChartPoint {
|
|
158
|
+
cpu?: number;
|
|
159
|
+
cpuPrice?: number;
|
|
160
|
+
diskGB?: number;
|
|
161
|
+
diskPrice?: number;
|
|
162
|
+
ramGB?: number;
|
|
163
|
+
ramPrice?: number;
|
|
164
|
+
time?: string;
|
|
165
|
+
}
|
|
166
|
+
export const ModelsUsageChartPoint = /*@__PURE__*/ S.suspend(() =>
|
|
167
|
+
S.Struct({
|
|
168
|
+
cpu: S.optional(S.Number),
|
|
169
|
+
cpuPrice: S.optional(S.Number),
|
|
170
|
+
diskGB: S.optional(S.Number),
|
|
171
|
+
diskPrice: S.optional(S.Number),
|
|
172
|
+
ramGB: S.optional(S.Number),
|
|
173
|
+
ramPrice: S.optional(S.Number),
|
|
174
|
+
time: S.optional(S.String),
|
|
175
|
+
}),
|
|
176
|
+
).annotate({
|
|
177
|
+
identifier: "ModelsUsageChartPoint",
|
|
178
|
+
}) as any as S.Schema<ModelsUsageChartPoint>;
|
|
179
|
+
|
|
180
|
+
export type ListOrganizationUsageChartResponseBodyList =
|
|
181
|
+
Array<ModelsUsageChartPoint>;
|
|
182
|
+
export const ListOrganizationUsageChartResponseBodyList = /*@__PURE__*/ S.Array(
|
|
183
|
+
ModelsUsageChartPoint,
|
|
184
|
+
) as any as S.Schema<ListOrganizationUsageChartResponseBodyList>;
|
|
185
|
+
|
|
186
|
+
export type ListOrganizationUsageChartResponse =
|
|
187
|
+
ListOrganizationUsageChartResponseBodyList;
|
|
188
|
+
export const ListOrganizationUsageChartResponse = /*@__PURE__*/ S.suspend(() =>
|
|
189
|
+
ListOrganizationUsageChartResponseBodyList.pipe(T.RawResponseRoot()),
|
|
190
|
+
).annotate({
|
|
191
|
+
identifier: "ListOrganizationUsageChartResponse",
|
|
192
|
+
}) as any as S.Schema<ListOrganizationUsageChartResponse>;
|
|
193
|
+
|
|
194
|
+
export interface ListOrganizationUsageSandboxRequest {
|
|
195
|
+
/** Organization ID */
|
|
196
|
+
organizationId: string;
|
|
197
|
+
/** Start time (RFC3339) */
|
|
198
|
+
from: string;
|
|
199
|
+
/** End time (RFC3339) */
|
|
200
|
+
to: string;
|
|
201
|
+
}
|
|
202
|
+
export const ListOrganizationUsageSandboxRequest = /*@__PURE__*/ S.suspend(() =>
|
|
203
|
+
S.Struct({
|
|
204
|
+
organizationId: S.String.pipe(T.Label()),
|
|
205
|
+
from: S.String.pipe(T.Query()),
|
|
206
|
+
to: S.String.pipe(T.Query()),
|
|
207
|
+
}).pipe(
|
|
208
|
+
T.Http({
|
|
209
|
+
method: "GET",
|
|
210
|
+
uri: "/organization/{organizationId}/usage/sandbox",
|
|
211
|
+
code: 200,
|
|
212
|
+
}),
|
|
213
|
+
),
|
|
214
|
+
).annotate({
|
|
215
|
+
identifier: "ListOrganizationUsageSandboxRequest",
|
|
216
|
+
}) as any as S.Schema<ListOrganizationUsageSandboxRequest>;
|
|
217
|
+
|
|
218
|
+
export interface ModelsSandboxUsage {
|
|
219
|
+
firstStart?: string;
|
|
220
|
+
lastEnd?: string;
|
|
221
|
+
sandboxId?: string;
|
|
222
|
+
totalCPUSeconds?: number;
|
|
223
|
+
totalDiskGBSeconds?: number;
|
|
224
|
+
totalGPUSeconds?: number;
|
|
225
|
+
totalPrice?: number;
|
|
226
|
+
totalRAMGBSeconds?: number;
|
|
227
|
+
}
|
|
228
|
+
export const ModelsSandboxUsage = /*@__PURE__*/ S.suspend(() =>
|
|
229
|
+
S.Struct({
|
|
230
|
+
firstStart: S.optional(S.String),
|
|
231
|
+
lastEnd: S.optional(S.String),
|
|
232
|
+
sandboxId: S.optional(S.String),
|
|
233
|
+
totalCPUSeconds: S.optional(S.Number),
|
|
234
|
+
totalDiskGBSeconds: S.optional(S.Number),
|
|
235
|
+
totalGPUSeconds: S.optional(S.Number),
|
|
236
|
+
totalPrice: S.optional(S.Number),
|
|
237
|
+
totalRAMGBSeconds: S.optional(S.Number),
|
|
238
|
+
}),
|
|
239
|
+
).annotate({
|
|
240
|
+
identifier: "ModelsSandboxUsage",
|
|
241
|
+
}) as any as S.Schema<ModelsSandboxUsage>;
|
|
242
|
+
|
|
243
|
+
export type ListOrganizationUsageSandboxResponseBodyList =
|
|
244
|
+
Array<ModelsSandboxUsage>;
|
|
245
|
+
export const ListOrganizationUsageSandboxResponseBodyList =
|
|
246
|
+
/*@__PURE__*/ S.Array(
|
|
247
|
+
ModelsSandboxUsage,
|
|
248
|
+
) as any as S.Schema<ListOrganizationUsageSandboxResponseBodyList>;
|
|
249
|
+
|
|
250
|
+
export type ListOrganizationUsageSandboxResponse =
|
|
251
|
+
ListOrganizationUsageSandboxResponseBodyList;
|
|
252
|
+
export const ListOrganizationUsageSandboxResponse = /*@__PURE__*/ S.suspend(
|
|
253
|
+
() => ListOrganizationUsageSandboxResponseBodyList.pipe(T.RawResponseRoot()),
|
|
254
|
+
).annotate({
|
|
255
|
+
identifier: "ListOrganizationUsageSandboxResponse",
|
|
256
|
+
}) as any as S.Schema<ListOrganizationUsageSandboxResponse>;
|
|
257
|
+
|
|
258
|
+
export type GetOrganizationUsageAggregatedError = DaytonaOpError;
|
|
259
|
+
/** Get aggregated usage Returns organization-level resource usage totals for a given time period */
|
|
260
|
+
export const getOrganizationUsageAggregated: API.OperationMethod<
|
|
261
|
+
GetOrganizationUsageAggregatedRequest,
|
|
262
|
+
ModelsAggregatedUsage,
|
|
263
|
+
GetOrganizationUsageAggregatedError,
|
|
264
|
+
DaytonaOpContext
|
|
265
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
266
|
+
input: GetOrganizationUsageAggregatedRequest,
|
|
267
|
+
output: ModelsAggregatedUsage,
|
|
268
|
+
errors: [UnknownDaytonaError],
|
|
269
|
+
protocol: DaytonaProtocol,
|
|
270
|
+
retry: Retry.Retry,
|
|
271
|
+
}));
|
|
272
|
+
|
|
273
|
+
export type ListOrganizationSandboxUsageError = DaytonaOpError;
|
|
274
|
+
/** Get sandbox usage periods Returns individual usage records for a specific sandbox within a time range */
|
|
275
|
+
export const listOrganizationSandboxUsage: API.OperationMethod<
|
|
276
|
+
ListOrganizationSandboxUsageRequest,
|
|
277
|
+
ListOrganizationSandboxUsageResponse,
|
|
278
|
+
ListOrganizationSandboxUsageError,
|
|
279
|
+
DaytonaOpContext
|
|
280
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
281
|
+
input: ListOrganizationSandboxUsageRequest,
|
|
282
|
+
output: ListOrganizationSandboxUsageResponse,
|
|
283
|
+
errors: [UnknownDaytonaError],
|
|
284
|
+
protocol: DaytonaProtocol,
|
|
285
|
+
retry: Retry.Retry,
|
|
286
|
+
}));
|
|
287
|
+
|
|
288
|
+
export type ListOrganizationUsageChartError = DaytonaOpError;
|
|
289
|
+
/** Get usage chart data Returns resource usage data points for a given time period with auto-scaled resolution */
|
|
290
|
+
export const listOrganizationUsageChart: API.OperationMethod<
|
|
291
|
+
ListOrganizationUsageChartRequest,
|
|
292
|
+
ListOrganizationUsageChartResponse,
|
|
293
|
+
ListOrganizationUsageChartError,
|
|
294
|
+
DaytonaOpContext
|
|
295
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
296
|
+
input: ListOrganizationUsageChartRequest,
|
|
297
|
+
output: ListOrganizationUsageChartResponse,
|
|
298
|
+
errors: [UnknownDaytonaError],
|
|
299
|
+
protocol: DaytonaProtocol,
|
|
300
|
+
retry: Retry.Retry,
|
|
301
|
+
}));
|
|
302
|
+
|
|
303
|
+
export type ListOrganizationUsageSandboxError = DaytonaOpError;
|
|
304
|
+
/** Get per-sandbox usage Returns resource usage aggregated per sandbox for a given time period */
|
|
305
|
+
export const listOrganizationUsageSandbox: API.OperationMethod<
|
|
306
|
+
ListOrganizationUsageSandboxRequest,
|
|
307
|
+
ListOrganizationUsageSandboxResponse,
|
|
308
|
+
ListOrganizationUsageSandboxError,
|
|
309
|
+
DaytonaOpContext
|
|
310
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
311
|
+
input: ListOrganizationUsageSandboxRequest,
|
|
312
|
+
output: ListOrganizationUsageSandboxResponse,
|
|
313
|
+
errors: [UnknownDaytonaError],
|
|
314
|
+
protocol: DaytonaProtocol,
|
|
315
|
+
retry: Retry.Retry,
|
|
316
|
+
}));
|