@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.
Files changed (203) hide show
  1. package/LICENSE +201 -0
  2. package/README.md +34 -0
  3. package/lib/credentials.d.ts +46 -0
  4. package/lib/credentials.d.ts.map +1 -0
  5. package/lib/credentials.js +67 -0
  6. package/lib/credentials.js.map +1 -0
  7. package/lib/endpoints.d.ts +15 -0
  8. package/lib/endpoints.d.ts.map +1 -0
  9. package/lib/endpoints.js +28 -0
  10. package/lib/endpoints.js.map +1 -0
  11. package/lib/errors.d.ts +53 -0
  12. package/lib/errors.d.ts.map +1 -0
  13. package/lib/errors.js +30 -0
  14. package/lib/errors.js.map +1 -0
  15. package/lib/index.d.ts +30 -0
  16. package/lib/index.d.ts.map +1 -0
  17. package/lib/index.js +30 -0
  18. package/lib/index.js.map +1 -0
  19. package/lib/pagination.d.ts +10 -0
  20. package/lib/pagination.d.ts.map +1 -0
  21. package/lib/pagination.js +10 -0
  22. package/lib/pagination.js.map +1 -0
  23. package/lib/protocol.d.ts +18 -0
  24. package/lib/protocol.d.ts.map +1 -0
  25. package/lib/protocol.js +75 -0
  26. package/lib/protocol.js.map +1 -0
  27. package/lib/response-validation.test.d.ts +4 -0
  28. package/lib/response-validation.test.d.ts.map +1 -0
  29. package/lib/response-validation.test.js +31 -0
  30. package/lib/response-validation.test.js.map +1 -0
  31. package/lib/retry.d.ts +50 -0
  32. package/lib/retry.d.ts.map +1 -0
  33. package/lib/retry.js +43 -0
  34. package/lib/retry.js.map +1 -0
  35. package/lib/services/api_keys.d.ts +120 -0
  36. package/lib/services/api_keys.d.ts.map +1 -0
  37. package/lib/services/api_keys.js +126 -0
  38. package/lib/services/api_keys.js.map +1 -0
  39. package/lib/services/audit.d.ts +159 -0
  40. package/lib/services/audit.d.ts.map +1 -0
  41. package/lib/services/audit.js +126 -0
  42. package/lib/services/audit.js.map +1 -0
  43. package/lib/services/computer_use.d.ts +484 -0
  44. package/lib/services/computer_use.d.ts.map +1 -0
  45. package/lib/services/computer_use.js +672 -0
  46. package/lib/services/computer_use.js.map +1 -0
  47. package/lib/services/config.d.ts +138 -0
  48. package/lib/services/config.d.ts.map +1 -0
  49. package/lib/services/config.js +88 -0
  50. package/lib/services/config.js.map +1 -0
  51. package/lib/services/docker_registry.d.ts +126 -0
  52. package/lib/services/docker_registry.d.ts.map +1 -0
  53. package/lib/services/docker_registry.js +135 -0
  54. package/lib/services/docker_registry.js.map +1 -0
  55. package/lib/services/file_system.d.ts +203 -0
  56. package/lib/services/file_system.d.ts.map +1 -0
  57. package/lib/services/file_system.js +255 -0
  58. package/lib/services/file_system.js.map +1 -0
  59. package/lib/services/git.d.ts +338 -0
  60. package/lib/services/git.d.ts.map +1 -0
  61. package/lib/services/git.js +417 -0
  62. package/lib/services/git.js.map +1 -0
  63. package/lib/services/health.d.ts +41 -0
  64. package/lib/services/health.d.ts.map +1 -0
  65. package/lib/services/health.js +49 -0
  66. package/lib/services/health.js.map +1 -0
  67. package/lib/services/index.d.ts +31 -0
  68. package/lib/services/index.d.ts.map +1 -0
  69. package/lib/services/index.js +32 -0
  70. package/lib/services/index.js.map +1 -0
  71. package/lib/services/info.d.ts +37 -0
  72. package/lib/services/info.d.ts.map +1 -0
  73. package/lib/services/info.js +55 -0
  74. package/lib/services/info.js.map +1 -0
  75. package/lib/services/interpreter.d.ts +56 -0
  76. package/lib/services/interpreter.d.ts.map +1 -0
  77. package/lib/services/interpreter.js +83 -0
  78. package/lib/services/interpreter.js.map +1 -0
  79. package/lib/services/jobs.d.ts +104 -0
  80. package/lib/services/jobs.d.ts.map +1 -0
  81. package/lib/services/jobs.js +94 -0
  82. package/lib/services/jobs.js.map +1 -0
  83. package/lib/services/lsp.d.ts +137 -0
  84. package/lib/services/lsp.d.ts.map +1 -0
  85. package/lib/services/lsp.js +160 -0
  86. package/lib/services/lsp.js.map +1 -0
  87. package/lib/services/object_storage.d.ts +31 -0
  88. package/lib/services/object_storage.d.ts.map +1 -0
  89. package/lib/services/object_storage.js +33 -0
  90. package/lib/services/object_storage.js.map +1 -0
  91. package/lib/services/organizations.d.ts +963 -0
  92. package/lib/services/organizations.d.ts.map +1 -0
  93. package/lib/services/organizations.js +1143 -0
  94. package/lib/services/organizations.js.map +1 -0
  95. package/lib/services/port.d.ts +29 -0
  96. package/lib/services/port.d.ts.map +1 -0
  97. package/lib/services/port.js +41 -0
  98. package/lib/services/port.js.map +1 -0
  99. package/lib/services/preview.d.ts +73 -0
  100. package/lib/services/preview.d.ts.map +1 -0
  101. package/lib/services/preview.js +125 -0
  102. package/lib/services/preview.js.map +1 -0
  103. package/lib/services/process.d.ts +329 -0
  104. package/lib/services/process.d.ts.map +1 -0
  105. package/lib/services/process.js +421 -0
  106. package/lib/services/process.js.map +1 -0
  107. package/lib/services/regions.d.ts +41 -0
  108. package/lib/services/regions.d.ts.map +1 -0
  109. package/lib/services/regions.js +36 -0
  110. package/lib/services/regions.js.map +1 -0
  111. package/lib/services/runners.d.ts +358 -0
  112. package/lib/services/runners.d.ts.map +1 -0
  113. package/lib/services/runners.js +316 -0
  114. package/lib/services/runners.js.map +1 -0
  115. package/lib/services/sandbox.d.ts +1276 -0
  116. package/lib/services/sandbox.d.ts.map +1 -0
  117. package/lib/services/sandbox.js +1218 -0
  118. package/lib/services/sandbox.js.map +1 -0
  119. package/lib/services/secret.d.ts +120 -0
  120. package/lib/services/secret.d.ts.map +1 -0
  121. package/lib/services/secret.js +113 -0
  122. package/lib/services/secret.js.map +1 -0
  123. package/lib/services/server.d.ts +44 -0
  124. package/lib/services/server.d.ts.map +1 -0
  125. package/lib/services/server.js +46 -0
  126. package/lib/services/server.js.map +1 -0
  127. package/lib/services/snapshots.d.ts +208 -0
  128. package/lib/services/snapshots.d.ts.map +1 -0
  129. package/lib/services/snapshots.js +189 -0
  130. package/lib/services/snapshots.js.map +1 -0
  131. package/lib/services/system.d.ts +24 -0
  132. package/lib/services/system.d.ts.map +1 -0
  133. package/lib/services/system.js +31 -0
  134. package/lib/services/system.js.map +1 -0
  135. package/lib/services/telemetry.d.ts +141 -0
  136. package/lib/services/telemetry.d.ts.map +1 -0
  137. package/lib/services/telemetry.js +165 -0
  138. package/lib/services/telemetry.js.map +1 -0
  139. package/lib/services/usage.d.ts +111 -0
  140. package/lib/services/usage.d.ts.map +1 -0
  141. package/lib/services/usage.js +146 -0
  142. package/lib/services/usage.js.map +1 -0
  143. package/lib/services/users.d.ts +125 -0
  144. package/lib/services/users.d.ts.map +1 -0
  145. package/lib/services/users.js +172 -0
  146. package/lib/services/users.js.map +1 -0
  147. package/lib/services/volumes.d.ts +83 -0
  148. package/lib/services/volumes.d.ts.map +1 -0
  149. package/lib/services/volumes.js +96 -0
  150. package/lib/services/volumes.js.map +1 -0
  151. package/lib/services/warm_pools.d.ts +79 -0
  152. package/lib/services/warm_pools.d.ts.map +1 -0
  153. package/lib/services/warm_pools.js +90 -0
  154. package/lib/services/warm_pools.js.map +1 -0
  155. package/lib/services/webhooks.d.ts +67 -0
  156. package/lib/services/webhooks.d.ts.map +1 -0
  157. package/lib/services/webhooks.js +103 -0
  158. package/lib/services/webhooks.js.map +1 -0
  159. package/lib/traits.d.ts +10 -0
  160. package/lib/traits.d.ts.map +1 -0
  161. package/lib/traits.js +11 -0
  162. package/lib/traits.js.map +1 -0
  163. package/package.json +78 -7
  164. package/src/credentials.ts +135 -0
  165. package/src/endpoints.ts +28 -0
  166. package/src/errors.ts +85 -0
  167. package/src/index.ts +33 -0
  168. package/src/pagination.ts +9 -0
  169. package/src/protocol.ts +108 -0
  170. package/src/response-validation.test.ts +45 -0
  171. package/src/retry.ts +74 -0
  172. package/src/services/api_keys.ts +378 -0
  173. package/src/services/audit.ts +416 -0
  174. package/src/services/computer_use.ts +1496 -0
  175. package/src/services/config.ts +256 -0
  176. package/src/services/docker_registry.ts +325 -0
  177. package/src/services/file_system.ts +575 -0
  178. package/src/services/git.ts +928 -0
  179. package/src/services/health.ts +116 -0
  180. package/src/services/index.ts +31 -0
  181. package/src/services/info.ts +116 -0
  182. package/src/services/interpreter.ts +182 -0
  183. package/src/services/jobs.ts +249 -0
  184. package/src/services/lsp.ts +367 -0
  185. package/src/services/object_storage.ts +75 -0
  186. package/src/services/organizations.ts +2712 -0
  187. package/src/services/port.ts +87 -0
  188. package/src/services/preview.ts +256 -0
  189. package/src/services/process.ts +948 -0
  190. package/src/services/regions.ts +90 -0
  191. package/src/services/runners.ts +811 -0
  192. package/src/services/sandbox.ts +3158 -0
  193. package/src/services/secret.ts +289 -0
  194. package/src/services/server.ts +111 -0
  195. package/src/services/snapshots.ts +508 -0
  196. package/src/services/system.ts +64 -0
  197. package/src/services/telemetry.ts +385 -0
  198. package/src/services/usage.ts +316 -0
  199. package/src/services/users.ts +380 -0
  200. package/src/services/volumes.ts +233 -0
  201. package/src/services/warm_pools.ts +209 -0
  202. package/src/services/webhooks.ts +214 -0
  203. package/src/traits.ts +44 -0
@@ -0,0 +1,208 @@
1
+ import * as S from "@distilled.cloud/core/schema";
2
+ import * as API from "@distilled.cloud/core/api";
3
+ import { type DaytonaOpError, type DaytonaOpContext } from "../protocol.ts";
4
+ export type { DaytonaOpError, DaytonaOpContext };
5
+ export interface ActivateSnapshotRequest {
6
+ /** Snapshot ID */
7
+ id: string;
8
+ /** Use with JWT to specify the organization ID */
9
+ xDaytonaOrganizationID?: string;
10
+ }
11
+ export declare const ActivateSnapshotRequest: S.Schema<ActivateSnapshotRequest>;
12
+ export type SnapshotState = "building" | "pending" | "pulling" | "snapshotting" | "active" | "inactive" | "error" | "build_failed" | "removing";
13
+ export declare const SnapshotState: any;
14
+ export type SnapshotDtoEntrypointList = Array<string>;
15
+ export declare const SnapshotDtoEntrypointList: S.Schema<SnapshotDtoEntrypointList>;
16
+ export type GpuType = "H100" | "H200" | "RTX-PRO-6000" | "RTX-4090" | "RTX-5090" | "MI355X";
17
+ export declare const GpuType: any;
18
+ /** The context hashes used for the build */
19
+ export type BuildInfoContextHashesList = Array<string>;
20
+ export declare const BuildInfoContextHashesList: S.Schema<BuildInfoContextHashesList>;
21
+ export interface BuildInfo {
22
+ /** The Dockerfile content used for the build */
23
+ dockerfileContent?: string;
24
+ /** The context hashes used for the build */
25
+ contextHashes?: BuildInfoContextHashesList;
26
+ /** The creation timestamp */
27
+ createdAt: string;
28
+ /** The last update timestamp */
29
+ updatedAt: string;
30
+ /** The snapshot reference */
31
+ snapshotRef: string;
32
+ }
33
+ export declare const BuildInfo: S.Schema<BuildInfo>;
34
+ /** IDs of regions where the snapshot is available */
35
+ export type SnapshotDtoRegionIdsList = Array<string>;
36
+ export declare const SnapshotDtoRegionIdsList: S.Schema<SnapshotDtoRegionIdsList>;
37
+ /** The sandbox class of the snapshot */
38
+ export type SnapshotDtoSandboxClass = "linux-vm" | "container" | "android" | "windows";
39
+ export declare const SnapshotDtoSandboxClass: any;
40
+ export interface SnapshotDto {
41
+ id: string;
42
+ organizationId?: string;
43
+ general: boolean;
44
+ name: string;
45
+ imageName?: string;
46
+ state: SnapshotState;
47
+ size: number | null;
48
+ entrypoint: SnapshotDtoEntrypointList | null;
49
+ cpu: number;
50
+ gpu: number;
51
+ /** The GPU type assigned to the snapshot */
52
+ gpuType?: GpuType;
53
+ mem: number;
54
+ disk: number;
55
+ errorReason: string | null;
56
+ createdAt: string;
57
+ updatedAt: string;
58
+ lastUsedAt: string | null;
59
+ /** Build information for the snapshot */
60
+ buildInfo?: BuildInfo;
61
+ /** IDs of regions where the snapshot is available */
62
+ regionIds?: SnapshotDtoRegionIdsList;
63
+ /** The initial runner ID of the snapshot */
64
+ initialRunnerId?: string;
65
+ /** The snapshot reference */
66
+ ref?: string;
67
+ /** The ID of the sandbox the snapshot was created from */
68
+ sourceSandboxId: string | null;
69
+ /** The sandbox class of the snapshot */
70
+ sandboxClass?: SnapshotDtoSandboxClass;
71
+ }
72
+ export declare const SnapshotDto: S.Schema<SnapshotDto>;
73
+ /** The entrypoint command for the snapshot */
74
+ export type CreateSnapshotRequestEntrypointList = Array<string>;
75
+ export declare const CreateSnapshotRequestEntrypointList: S.Schema<CreateSnapshotRequestEntrypointList>;
76
+ /** Preferred GPU type for the resulting sandbox. */
77
+ export type CreateSnapshotRequestGpuTypeList = Array<GpuType | (string & {})>;
78
+ export declare const CreateSnapshotRequestGpuTypeList: S.Schema<CreateSnapshotRequestGpuTypeList>;
79
+ /** The context hashes used for the build */
80
+ export type CreateBuildInfoContextHashesList = Array<string>;
81
+ export declare const CreateBuildInfoContextHashesList: S.Schema<CreateBuildInfoContextHashesList>;
82
+ export interface CreateBuildInfo {
83
+ /** The Dockerfile content used for the build */
84
+ dockerfileContent: string;
85
+ /** The context hashes used for the build */
86
+ contextHashes?: CreateBuildInfoContextHashesList;
87
+ }
88
+ export declare const CreateBuildInfo: S.Schema<CreateBuildInfo>;
89
+ export type SandboxClass = "linux-vm" | "container" | "android" | "windows";
90
+ export declare const SandboxClass: any;
91
+ export interface CreateSnapshotRequest {
92
+ /** Use with JWT to specify the organization ID */
93
+ xDaytonaOrganizationID?: string;
94
+ /** The name of the snapshot */
95
+ name: string;
96
+ /** The image name of the snapshot */
97
+ imageName?: string;
98
+ /** The entrypoint command for the snapshot */
99
+ entrypoint?: CreateSnapshotRequestEntrypointList;
100
+ /** CPU cores allocated to the resulting sandbox */
101
+ cpu?: number;
102
+ /** GPU units allocated to the resulting sandbox */
103
+ gpu?: number;
104
+ /** Preferred GPU type for the resulting sandbox. */
105
+ gpuType?: CreateSnapshotRequestGpuTypeList;
106
+ /** Memory allocated to the resulting sandbox in GB */
107
+ memory?: number;
108
+ /** Disk space allocated to the sandbox in GB */
109
+ disk?: number;
110
+ /** Build information for the snapshot */
111
+ buildInfo?: CreateBuildInfo;
112
+ /** ID of the region where the snapshot will be available. Defaults to organization default region if not specified. */
113
+ regionId?: string;
114
+ /** Target sandbox class. Determines which runners can host sandboxes created from this snapshot. */
115
+ sandboxClass?: SandboxClass | (string & {});
116
+ }
117
+ export declare const CreateSnapshotRequest: S.Schema<CreateSnapshotRequest>;
118
+ export interface DeactivateSnapshotRequest {
119
+ /** Snapshot ID */
120
+ id: string;
121
+ /** Use with JWT to specify the organization ID */
122
+ xDaytonaOrganizationID?: string;
123
+ }
124
+ export declare const DeactivateSnapshotRequest: S.Schema<DeactivateSnapshotRequest>;
125
+ export interface DeactivateSnapshotResponse {
126
+ }
127
+ export declare const DeactivateSnapshotResponse: S.Schema<DeactivateSnapshotResponse>;
128
+ export type GetAllSnapshotsRequestSort = "name" | "state" | "lastUsedAt" | "createdAt";
129
+ export declare const GetAllSnapshotsRequestSort: any;
130
+ export type GetAllSnapshotsRequestOrder = "asc" | "desc";
131
+ export declare const GetAllSnapshotsRequestOrder: any;
132
+ export interface GetAllSnapshotsRequest {
133
+ /** Page number of the results */
134
+ page?: number;
135
+ /** Number of results per page */
136
+ limit?: number;
137
+ /** Filter by partial name match */
138
+ name?: string;
139
+ /** Filter by the ID of the sandbox the snapshot was created from */
140
+ sourceSandboxId?: string;
141
+ /** Field to sort by */
142
+ sort?: GetAllSnapshotsRequestSort | (string & {});
143
+ /** Direction to sort by */
144
+ order?: GetAllSnapshotsRequestOrder | (string & {});
145
+ /** Use with JWT to specify the organization ID */
146
+ xDaytonaOrganizationID?: string;
147
+ }
148
+ export declare const GetAllSnapshotsRequest: S.Schema<GetAllSnapshotsRequest>;
149
+ export type PaginatedSnapshotsItemsList = Array<SnapshotDto>;
150
+ export declare const PaginatedSnapshotsItemsList: S.Schema<PaginatedSnapshotsItemsList>;
151
+ export interface PaginatedSnapshots {
152
+ items: PaginatedSnapshotsItemsList;
153
+ total: number;
154
+ page: number;
155
+ totalPages: number;
156
+ }
157
+ export declare const PaginatedSnapshots: S.Schema<PaginatedSnapshots>;
158
+ export interface GetSnapshotRequest {
159
+ /** Snapshot ID or name */
160
+ id: string;
161
+ /** Use with JWT to specify the organization ID */
162
+ xDaytonaOrganizationID?: string;
163
+ }
164
+ export declare const GetSnapshotRequest: S.Schema<GetSnapshotRequest>;
165
+ export interface GetSnapshotBuildLogsUrlRequest {
166
+ /** Snapshot ID */
167
+ id: string;
168
+ /** Use with JWT to specify the organization ID */
169
+ xDaytonaOrganizationID?: string;
170
+ }
171
+ export declare const GetSnapshotBuildLogsUrlRequest: S.Schema<GetSnapshotBuildLogsUrlRequest>;
172
+ export interface Url {
173
+ /** URL response */
174
+ url: string;
175
+ }
176
+ export declare const Url: S.Schema<Url>;
177
+ export interface RemoveSnapshotRequest {
178
+ /** Snapshot ID */
179
+ id: string;
180
+ /** Use with JWT to specify the organization ID */
181
+ xDaytonaOrganizationID?: string;
182
+ }
183
+ export declare const RemoveSnapshotRequest: S.Schema<RemoveSnapshotRequest>;
184
+ export interface RemoveSnapshotResponse {
185
+ }
186
+ export declare const RemoveSnapshotResponse: S.Schema<RemoveSnapshotResponse>;
187
+ export type ActivateSnapshotError = DaytonaOpError;
188
+ /** Activate a snapshot */
189
+ export declare const activateSnapshot: API.OperationMethod<ActivateSnapshotRequest, SnapshotDto, ActivateSnapshotError, DaytonaOpContext>;
190
+ export type CreateSnapshotError = DaytonaOpError;
191
+ /** Create a new snapshot */
192
+ export declare const createSnapshot: API.OperationMethod<CreateSnapshotRequest, SnapshotDto, CreateSnapshotError, DaytonaOpContext>;
193
+ export type DeactivateSnapshotError = DaytonaOpError;
194
+ /** Deactivate a snapshot */
195
+ export declare const deactivateSnapshot: API.OperationMethod<DeactivateSnapshotRequest, DeactivateSnapshotResponse, DeactivateSnapshotError, DaytonaOpContext>;
196
+ export type GetAllSnapshotsError = DaytonaOpError;
197
+ /** List all snapshots */
198
+ export declare const getAllSnapshots: API.OperationMethod<GetAllSnapshotsRequest, PaginatedSnapshots, GetAllSnapshotsError, DaytonaOpContext>;
199
+ export type GetSnapshotError = DaytonaOpError;
200
+ /** Get snapshot by ID or name */
201
+ export declare const getSnapshot: API.OperationMethod<GetSnapshotRequest, SnapshotDto, GetSnapshotError, DaytonaOpContext>;
202
+ export type GetSnapshotBuildLogsUrlError = DaytonaOpError;
203
+ /** Get snapshot build logs URL */
204
+ export declare const getSnapshotBuildLogsUrl: API.OperationMethod<GetSnapshotBuildLogsUrlRequest, Url, GetSnapshotBuildLogsUrlError, DaytonaOpContext>;
205
+ export type RemoveSnapshotError = DaytonaOpError;
206
+ /** Delete snapshot */
207
+ export declare const removeSnapshot: API.OperationMethod<RemoveSnapshotRequest, RemoveSnapshotResponse, RemoveSnapshotError, DaytonaOpContext>;
208
+ //# sourceMappingURL=snapshots.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"snapshots.d.ts","sourceRoot":"","sources":["../../src/services/snapshots.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,CAAC,MAAM,8BAA8B,CAAC;AAClD,OAAO,KAAK,GAAG,MAAM,2BAA2B,CAAC;AAEjD,OAAO,EAEL,KAAK,cAAc,EACnB,KAAK,gBAAgB,EACtB,MAAM,gBAAgB,CAAC;AAIxB,YAAY,EAAE,cAAc,EAAE,gBAAgB,EAAE,CAAC;AAEjD,MAAM,WAAW,uBAAuB;IACtC,kBAAkB;IAClB,EAAE,EAAE,MAAM,CAAC;IACX,kDAAkD;IAClD,sBAAsB,CAAC,EAAE,MAAM,CAAC;CACjC;AACD,eAAO,MAAM,uBAAuB,EAWvB,CAAC,CAAC,MAAM,CAAC,uBAAuB,CAAC,CAAC;AAE/C,MAAM,MAAM,aAAa,GACrB,UAAU,GACV,SAAS,GACT,SAAS,GACT,cAAc,GACd,QAAQ,GACR,UAAU,GACV,OAAO,GACP,cAAc,GACd,UAAU,CAAC;AACf,eAAO,MAAM,aAAa,KAAW,CAAC;AAEtC,MAAM,MAAM,yBAAyB,GAAG,KAAK,CAAC,MAAM,CAAC,CAAC;AACtD,eAAO,MAAM,yBAAyB,EAE1B,CAAC,CAAC,MAAM,CAAC,yBAAyB,CAAC,CAAC;AAEhD,MAAM,MAAM,OAAO,GACf,MAAM,GACN,MAAM,GACN,cAAc,GACd,UAAU,GACV,UAAU,GACV,QAAQ,CAAC;AACb,e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D,4BAA4B;AAC5B,eAAO,MAAM,kBAAkB,EAAE,GAAG,CAAC,eAAe,CAClD,yBAAyB,EACzB,0BAA0B,EAC1B,uBAAuB,EACvB,gBAAgB,CAOf,CAAC;AAEJ,MAAM,MAAM,oBAAoB,GAAG,cAAc,CAAC;AAClD,yBAAyB;AACzB,eAAO,MAAM,eAAe,EAAE,GAAG,CAAC,eAAe,CAC/C,sBAAsB,EACtB,kBAAkB,EAClB,oBAAoB,EACpB,gBAAgB,CAOf,CAAC;AAEJ,MAAM,MAAM,gBAAgB,GAAG,cAAc,CAAC;AAC9C,iCAAiC;AACjC,eAAO,MAAM,WAAW,EAAE,GAAG,CAAC,eAAe,CAC3C,kBAAkB,EAClB,WAAW,EACX,gBAAgB,EAChB,gBAAgB,CAOf,CAAC;AAEJ,MAAM,MAAM,4BAA4B,GAAG,cAAc,CAAC;AAC1D,kCAAkC;AAClC,eAAO,MAAM,uBAAuB,EAAE,GAAG,CAAC,eAAe,CACvD,8BAA8B,EAC9B,GAAG,EACH,4BAA4B,EAC5B,gBAAgB,CAOf,CAAC;AAEJ,MAAM,MAAM,mBAAmB,GAAG,cAAc,CAAC;AACjD,sBAAsB;AACtB,eAAO,MAAM,cAAc,EAAE,GAAG,CAAC,eAAe,CAC9C,qBAAqB,EACrB,sBAAsB,EACtB,mBAAmB,EACnB,gBAAgB,CAOf,CAAC"}
@@ -0,0 +1,189 @@
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.js";
5
+ import { DaytonaProtocol, } from "../protocol.js";
6
+ import { UnknownDaytonaError } from "../errors.js";
7
+ import * as Retry from "../retry.js";
8
+ export const ActivateSnapshotRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
9
+ id: S.String.pipe(T.Label()),
10
+ xDaytonaOrganizationID: S.optional(S.String.pipe(T.Header("X-Daytona-Organization-ID"))),
11
+ }).pipe(T.Http({ method: "POST", uri: "/snapshots/{id}/activate", code: 200 }))).annotate({
12
+ identifier: "ActivateSnapshotRequest",
13
+ });
14
+ export const SnapshotState = S.String;
15
+ export const SnapshotDtoEntrypointList = /*@__PURE__*/ S.Array(S.String);
16
+ export const GpuType = S.String;
17
+ export const BuildInfoContextHashesList = /*@__PURE__*/ S.Array(S.String);
18
+ export const BuildInfo = /*@__PURE__*/ S.suspend(() => S.Struct({
19
+ dockerfileContent: S.optional(S.String),
20
+ contextHashes: S.optional(BuildInfoContextHashesList),
21
+ createdAt: S.String,
22
+ updatedAt: S.String,
23
+ snapshotRef: S.String,
24
+ })).annotate({ identifier: "BuildInfo" });
25
+ export const SnapshotDtoRegionIdsList = /*@__PURE__*/ S.Array(S.String);
26
+ export const SnapshotDtoSandboxClass = S.String;
27
+ export const SnapshotDto = /*@__PURE__*/ S.suspend(() => S.Struct({
28
+ id: S.String,
29
+ organizationId: S.optional(S.String),
30
+ general: S.Boolean,
31
+ name: S.String,
32
+ imageName: S.optional(S.String),
33
+ state: SnapshotState,
34
+ size: S.NullOr(S.Number),
35
+ entrypoint: S.NullOr(SnapshotDtoEntrypointList),
36
+ cpu: S.Number,
37
+ gpu: S.Number,
38
+ gpuType: S.optional(GpuType),
39
+ mem: S.Number,
40
+ disk: S.Number,
41
+ errorReason: S.NullOr(S.String),
42
+ createdAt: S.String,
43
+ updatedAt: S.String,
44
+ lastUsedAt: S.NullOr(S.String),
45
+ buildInfo: S.optional(BuildInfo),
46
+ regionIds: S.optional(SnapshotDtoRegionIdsList),
47
+ initialRunnerId: S.optional(S.String),
48
+ ref: S.optional(S.String),
49
+ sourceSandboxId: S.NullOr(S.String),
50
+ sandboxClass: S.optional(SnapshotDtoSandboxClass),
51
+ })).annotate({ identifier: "SnapshotDto" });
52
+ export const CreateSnapshotRequestEntrypointList = /*@__PURE__*/ S.Array(S.String);
53
+ export const CreateSnapshotRequestGpuTypeList = /*@__PURE__*/ S.Array(GpuType);
54
+ export const CreateBuildInfoContextHashesList = /*@__PURE__*/ S.Array(S.String);
55
+ export const CreateBuildInfo = /*@__PURE__*/ S.suspend(() => S.Struct({
56
+ dockerfileContent: S.String,
57
+ contextHashes: S.optional(CreateBuildInfoContextHashesList),
58
+ })).annotate({
59
+ identifier: "CreateBuildInfo",
60
+ });
61
+ export const SandboxClass = S.String;
62
+ export const CreateSnapshotRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
63
+ xDaytonaOrganizationID: S.optional(S.String.pipe(T.Header("X-Daytona-Organization-ID"))),
64
+ name: S.String,
65
+ imageName: S.optional(S.String),
66
+ entrypoint: S.optional(CreateSnapshotRequestEntrypointList),
67
+ cpu: S.optional(S.Number),
68
+ gpu: S.optional(S.Number),
69
+ gpuType: S.optional(CreateSnapshotRequestGpuTypeList),
70
+ memory: S.optional(S.Number),
71
+ disk: S.optional(S.Number),
72
+ buildInfo: S.optional(CreateBuildInfo),
73
+ regionId: S.optional(S.String),
74
+ sandboxClass: S.optional(SandboxClass),
75
+ }).pipe(T.Http({ method: "POST", uri: "/snapshots", code: 200 }))).annotate({
76
+ identifier: "CreateSnapshotRequest",
77
+ });
78
+ export const DeactivateSnapshotRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
79
+ id: S.String.pipe(T.Label()),
80
+ xDaytonaOrganizationID: S.optional(S.String.pipe(T.Header("X-Daytona-Organization-ID"))),
81
+ }).pipe(T.Http({ method: "POST", uri: "/snapshots/{id}/deactivate", code: 200 }))).annotate({
82
+ identifier: "DeactivateSnapshotRequest",
83
+ });
84
+ export const DeactivateSnapshotResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
85
+ identifier: "DeactivateSnapshotResponse",
86
+ });
87
+ export const GetAllSnapshotsRequestSort = S.String;
88
+ export const GetAllSnapshotsRequestOrder = S.String;
89
+ export const GetAllSnapshotsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
90
+ page: S.optional(S.Number.pipe(T.Query())),
91
+ limit: S.optional(S.Number.pipe(T.Query())),
92
+ name: S.optional(S.String.pipe(T.Query())),
93
+ sourceSandboxId: S.optional(S.String.pipe(T.Query())),
94
+ sort: S.optional(GetAllSnapshotsRequestSort.pipe(T.Query())),
95
+ order: S.optional(GetAllSnapshotsRequestOrder.pipe(T.Query())),
96
+ xDaytonaOrganizationID: S.optional(S.String.pipe(T.Header("X-Daytona-Organization-ID"))),
97
+ }).pipe(T.Http({ method: "GET", uri: "/snapshots", code: 200 }))).annotate({
98
+ identifier: "GetAllSnapshotsRequest",
99
+ });
100
+ export const PaginatedSnapshotsItemsList = /*@__PURE__*/ S.Array(SnapshotDto);
101
+ export const PaginatedSnapshots = /*@__PURE__*/ S.suspend(() => S.Struct({
102
+ items: PaginatedSnapshotsItemsList,
103
+ total: S.Number,
104
+ page: S.Number,
105
+ totalPages: S.Number,
106
+ })).annotate({
107
+ identifier: "PaginatedSnapshots",
108
+ });
109
+ export const GetSnapshotRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
110
+ id: S.String.pipe(T.Label()),
111
+ xDaytonaOrganizationID: S.optional(S.String.pipe(T.Header("X-Daytona-Organization-ID"))),
112
+ }).pipe(T.Http({ method: "GET", uri: "/snapshots/{id}", code: 200 }))).annotate({
113
+ identifier: "GetSnapshotRequest",
114
+ });
115
+ export const GetSnapshotBuildLogsUrlRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
116
+ id: S.String.pipe(T.Label()),
117
+ xDaytonaOrganizationID: S.optional(S.String.pipe(T.Header("X-Daytona-Organization-ID"))),
118
+ }).pipe(T.Http({ method: "GET", uri: "/snapshots/{id}/build-logs-url", code: 200 }))).annotate({
119
+ identifier: "GetSnapshotBuildLogsUrlRequest",
120
+ });
121
+ export const Url = /*@__PURE__*/ S.suspend(() => S.Struct({
122
+ url: S.String,
123
+ })).annotate({ identifier: "Url" });
124
+ export const RemoveSnapshotRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
125
+ id: S.String.pipe(T.Label()),
126
+ xDaytonaOrganizationID: S.optional(S.String.pipe(T.Header("X-Daytona-Organization-ID"))),
127
+ }).pipe(T.Http({ method: "DELETE", uri: "/snapshots/{id}", code: 200 }))).annotate({
128
+ identifier: "RemoveSnapshotRequest",
129
+ });
130
+ export const RemoveSnapshotResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
131
+ identifier: "RemoveSnapshotResponse",
132
+ });
133
+ /** Activate a snapshot */
134
+ export const activateSnapshot = /*@__PURE__*/ API.make(() => ({
135
+ input: ActivateSnapshotRequest,
136
+ output: SnapshotDto,
137
+ errors: [UnknownDaytonaError],
138
+ protocol: DaytonaProtocol,
139
+ retry: Retry.Retry,
140
+ }));
141
+ /** Create a new snapshot */
142
+ export const createSnapshot = /*@__PURE__*/ API.make(() => ({
143
+ input: CreateSnapshotRequest,
144
+ output: SnapshotDto,
145
+ errors: [UnknownDaytonaError],
146
+ protocol: DaytonaProtocol,
147
+ retry: Retry.Retry,
148
+ }));
149
+ /** Deactivate a snapshot */
150
+ export const deactivateSnapshot = /*@__PURE__*/ API.make(() => ({
151
+ input: DeactivateSnapshotRequest,
152
+ output: DeactivateSnapshotResponse,
153
+ errors: [UnknownDaytonaError],
154
+ protocol: DaytonaProtocol,
155
+ retry: Retry.Retry,
156
+ }));
157
+ /** List all snapshots */
158
+ export const getAllSnapshots = /*@__PURE__*/ API.make(() => ({
159
+ input: GetAllSnapshotsRequest,
160
+ output: PaginatedSnapshots,
161
+ errors: [UnknownDaytonaError],
162
+ protocol: DaytonaProtocol,
163
+ retry: Retry.Retry,
164
+ }));
165
+ /** Get snapshot by ID or name */
166
+ export const getSnapshot = /*@__PURE__*/ API.make(() => ({
167
+ input: GetSnapshotRequest,
168
+ output: SnapshotDto,
169
+ errors: [UnknownDaytonaError],
170
+ protocol: DaytonaProtocol,
171
+ retry: Retry.Retry,
172
+ }));
173
+ /** Get snapshot build logs URL */
174
+ export const getSnapshotBuildLogsUrl = /*@__PURE__*/ API.make(() => ({
175
+ input: GetSnapshotBuildLogsUrlRequest,
176
+ output: Url,
177
+ errors: [UnknownDaytonaError],
178
+ protocol: DaytonaProtocol,
179
+ retry: Retry.Retry,
180
+ }));
181
+ /** Delete snapshot */
182
+ export const removeSnapshot = /*@__PURE__*/ API.make(() => ({
183
+ input: RemoveSnapshotRequest,
184
+ output: RemoveSnapshotResponse,
185
+ errors: [UnknownDaytonaError],
186
+ protocol: DaytonaProtocol,
187
+ retry: Retry.Retry,
188
+ }));
189
+ //# sourceMappingURL=snapshots.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"snapshots.js","sourceRoot":"","sources":["../../src/services/snapshots.ts"],"names":[],"mappings":"AAAA,+JAA+J;AAC/J,OAAO,KAAK,CAAC,MAAM,8BAA8B,CAAC;AAClD,OAAO,KAAK,GAAG,MAAM,2BAA2B,CAAC;AACjD,OAAO,KAAK,CAAC,MAAM,cAAc,CAAC;AAClC,OAAO,EACL,eAAe,GAGhB,MAAM,gBAAgB,CAAC;AACxB,OAAO,EAAE,mBAAmB,EAAE,MAAM,cAAc,CAAC;AACnD,OAAO,KAAK,KAAK,MAAM,aAAa,CAAC;AAUrC,MAAM,CAAC,MAAM,uBAAuB,GAAG,aAAa,CAAC,CAAC,CAAC,OAAO,CAAC,GAAG,EAAE,CAClE,CAAC,CAAC,MAAM,CAAC;IACP,EAAE,EAAE,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,EAAE,CAAC;IAC5B,sBAAsB,EAAE,CAAC,CAAC,QAAQ,CAChC,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,MAAM,CAAC,2BAA2B,CAAC,CAAC,CACrD;CACF,CAAC,CAAC,IAAI,CACL,CAAC,CAAC,IAAI,CAAC,EAAE,MAAM,EAAE,MAAM,EAAE,GAAG,EAAE,0BAA0B,EAAE,IAAI,EAAE,GAAG,EAAE,CAAC,CACvE,CACF,CAAC,QAAQ,CAAC;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iC;AACjC,MAAM,CAAC,MAAM,WAAW,GAKpB,aAAa,CAAC,GAAG,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,CAAC;IAChC,KAAK,EAAE,kBAAkB;IACzB,MAAM,EAAE,WAAW;IACnB,MAAM,EAAE,CAAC,mBAAmB,CAAC;IAC7B,QAAQ,EAAE,eAAe;IACzB,KAAK,EAAE,KAAK,CAAC,KAAK;CACnB,CAAC,CAAC,CAAC;AAGJ,kCAAkC;AAClC,MAAM,CAAC,MAAM,uBAAuB,GAKhC,aAAa,CAAC,GAAG,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,CAAC;IAChC,KAAK,EAAE,8BAA8B;IACrC,MAAM,EAAE,GAAG;IACX,MAAM,EAAE,CAAC,mBAAmB,CAAC;IAC7B,QAAQ,EAAE,eAAe;IACzB,KAAK,EAAE,KAAK,CAAC,KAAK;CACnB,CAAC,CAAC,CAAC;AAGJ,sBAAsB;AACtB,MAAM,CAAC,MAAM,cAAc,GAKvB,aAAa,CAAC,GAAG,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,CAAC;IAChC,KAAK,EAAE,qBAAqB;IAC5B,MAAM,EAAE,sBAAsB;IAC9B,MAAM,EAAE,CAAC,mBAAmB,CAAC;IAC7B,QAAQ,EAAE,eAAe;IACzB,KAAK,EAAE,KAAK,CAAC,KAAK;CACnB,CAAC,CAAC,CAAC"}
@@ -0,0 +1,24 @@
1
+ import * as S from "@distilled.cloud/core/schema";
2
+ import * as API from "@distilled.cloud/core/api";
3
+ import { type DaytonaOpError, type DaytonaOpContext } from "../protocol.ts";
4
+ export type { DaytonaOpError, DaytonaOpContext };
5
+ export interface GetSystemMetricsRequest {
6
+ }
7
+ export declare const GetSystemMetricsRequest: S.Schema<GetSystemMetricsRequest>;
8
+ export interface SystemMetrics {
9
+ cpuCount?: number;
10
+ cpuUsedPct?: number;
11
+ diskFree?: number;
12
+ diskTotal?: number;
13
+ diskUsed?: number;
14
+ memCache?: number;
15
+ memTotal?: number;
16
+ memUsed?: number;
17
+ timestamp?: string;
18
+ timestampUnix?: number;
19
+ }
20
+ export declare const SystemMetrics: S.Schema<SystemMetrics>;
21
+ export type GetSystemMetricsError = DaytonaOpError;
22
+ /** Get sandbox resource metrics Latest CPU/memory/disk usage snapshot for the sandbox. cpuUsedPct is the average CPU usage as a percentage of the CPU limit over the last sample window (0 until the first sample completes). Byte fields are in bytes. */
23
+ export declare const getSystemMetrics: API.OperationMethod<GetSystemMetricsRequest, SystemMetrics, GetSystemMetricsError, DaytonaOpContext>;
24
+ //# sourceMappingURL=system.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"system.d.ts","sourceRoot":"","sources":["../../src/services/system.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,CAAC,MAAM,8BAA8B,CAAC;AAClD,OAAO,KAAK,GAAG,MAAM,2BAA2B,CAAC;AAEjD,OAAO,EAEL,KAAK,cAAc,EACnB,KAAK,gBAAgB,EACtB,MAAM,gBAAgB,CAAC;AAIxB,YAAY,EAAE,cAAc,EAAE,gBAAgB,EAAE,CAAC;AAEjD,MAAM,WAAW,uBAAuB;CAAG;AAC3C,eAAO,MAAM,uBAAuB,EAMvB,CAAC,CAAC,MAAM,CAAC,uBAAuB,CAAC,CAAC;AAE/C,MAAM,WAAW,aAAa;IAC5B,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB;AACD,eAAO,MAAM,aAAa,EAa4B,CAAC,CAAC,MAAM,CAAC,aAAa,CAAC,CAAC;AAE9E,MAAM,MAAM,qBAAqB,GAAG,cAAc,CAAC;AACnD,2PAA2P;AAC3P,eAAO,MAAM,gBAAgB,EAAE,GAAG,CAAC,eAAe,CAChD,uBAAuB,EACvB,aAAa,EACb,qBAAqB,EACrB,gBAAgB,CAOf,CAAC"}
@@ -0,0 +1,31 @@
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.js";
5
+ import { DaytonaProtocol, } from "../protocol.js";
6
+ import { UnknownDaytonaError } from "../errors.js";
7
+ import * as Retry from "../retry.js";
8
+ export const GetSystemMetricsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({}).pipe(T.Http({ method: "GET", uri: "/system/metrics", code: 200 }))).annotate({
9
+ identifier: "GetSystemMetricsRequest",
10
+ });
11
+ export const SystemMetrics = /*@__PURE__*/ S.suspend(() => S.Struct({
12
+ cpuCount: S.optional(S.Number),
13
+ cpuUsedPct: S.optional(S.Number),
14
+ diskFree: S.optional(S.Number),
15
+ diskTotal: S.optional(S.Number),
16
+ diskUsed: S.optional(S.Number),
17
+ memCache: S.optional(S.Number),
18
+ memTotal: S.optional(S.Number),
19
+ memUsed: S.optional(S.Number),
20
+ timestamp: S.optional(S.String),
21
+ timestampUnix: S.optional(S.Number),
22
+ })).annotate({ identifier: "SystemMetrics" });
23
+ /** Get sandbox resource metrics Latest CPU/memory/disk usage snapshot for the sandbox. cpuUsedPct is the average CPU usage as a percentage of the CPU limit over the last sample window (0 until the first sample completes). Byte fields are in bytes. */
24
+ export const getSystemMetrics = /*@__PURE__*/ API.make(() => ({
25
+ input: GetSystemMetricsRequest,
26
+ output: SystemMetrics,
27
+ errors: [UnknownDaytonaError],
28
+ protocol: DaytonaProtocol,
29
+ retry: Retry.Retry,
30
+ }));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AC,CAAC,CAAC,MAAM,CAAC;IAC9B,QAAQ,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,CAAC;IAC9B,OAAO,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,CAAC;IAC7B,SAAS,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,CAAC;IAC/B,aAAa,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,CAAC;CACpC,CAAC,CACH,CAAC,QAAQ,CAAC,EAAE,UAAU,EAAE,eAAe,EAAE,CAAmC,CAAC;AAG9E,2PAA2P;AAC3P,MAAM,CAAC,MAAM,gBAAgB,GAKzB,aAAa,CAAC,GAAG,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,CAAC;IAChC,KAAK,EAAE,uBAAuB;IAC9B,MAAM,EAAE,aAAa;IACrB,MAAM,EAAE,CAAC,mBAAmB,CAAC;IAC7B,QAAQ,EAAE,eAAe;IACzB,KAAK,EAAE,KAAK,CAAC,KAAK;CACnB,CAAC,CAAC,CAAC"}
@@ -0,0 +1,141 @@
1
+ import * as S from "@distilled.cloud/core/schema";
2
+ import * as API from "@distilled.cloud/core/api";
3
+ import { type DaytonaOpError, type DaytonaOpContext } from "../protocol.ts";
4
+ export type { DaytonaOpError, DaytonaOpContext };
5
+ export interface GetOrganizationSandboxTelemetryTraceRequest {
6
+ /** Organization ID */
7
+ organizationId: string;
8
+ /** Sandbox ID */
9
+ sandboxId: string;
10
+ /** Trace ID */
11
+ traceId: string;
12
+ }
13
+ export declare const GetOrganizationSandboxTelemetryTraceRequest: S.Schema<GetOrganizationSandboxTelemetryTraceRequest>;
14
+ export type ModelsSpanSpanAttributesMap = {
15
+ [key: string]: string | undefined;
16
+ };
17
+ export declare const ModelsSpanSpanAttributesMap: S.Schema<ModelsSpanSpanAttributesMap>;
18
+ export interface ModelsSpan {
19
+ durationMs?: number;
20
+ parentSpanId?: string;
21
+ spanAttributes?: ModelsSpanSpanAttributesMap;
22
+ spanId?: string;
23
+ spanName?: string;
24
+ statusCode?: string;
25
+ statusMessage?: string;
26
+ timestamp?: string;
27
+ traceId?: string;
28
+ }
29
+ export declare const ModelsSpan: S.Schema<ModelsSpan>;
30
+ export type GetOrganizationSandboxTelemetryTraceResponseBodyList = Array<ModelsSpan>;
31
+ export declare const GetOrganizationSandboxTelemetryTraceResponseBodyList: S.Schema<GetOrganizationSandboxTelemetryTraceResponseBodyList>;
32
+ export type GetOrganizationSandboxTelemetryTraceResponse = GetOrganizationSandboxTelemetryTraceResponseBodyList;
33
+ export declare const GetOrganizationSandboxTelemetryTraceResponse: S.Schema<GetOrganizationSandboxTelemetryTraceResponse>;
34
+ export interface ListOrganizationSandboxTelemetryLogsRequest {
35
+ /** Organization ID */
36
+ organizationId: string;
37
+ /** Sandbox ID */
38
+ sandboxId: string;
39
+ /** Start time (RFC3339) */
40
+ from: string;
41
+ /** End time (RFC3339) */
42
+ to: string;
43
+ /** Comma-separated severity levels */
44
+ severity?: string;
45
+ /** Search text (ILIKE) */
46
+ search?: string;
47
+ /** Page size */
48
+ limit?: number;
49
+ /** Offset */
50
+ offset?: number;
51
+ }
52
+ export declare const ListOrganizationSandboxTelemetryLogsRequest: S.Schema<ListOrganizationSandboxTelemetryLogsRequest>;
53
+ export type ModelsLogEntryLogAttributesMap = {
54
+ [key: string]: string | undefined;
55
+ };
56
+ export declare const ModelsLogEntryLogAttributesMap: S.Schema<ModelsLogEntryLogAttributesMap>;
57
+ export type ModelsLogEntryResourceAttributesMap = {
58
+ [key: string]: string | undefined;
59
+ };
60
+ export declare const ModelsLogEntryResourceAttributesMap: S.Schema<ModelsLogEntryResourceAttributesMap>;
61
+ export interface ModelsLogEntry {
62
+ body?: string;
63
+ logAttributes?: ModelsLogEntryLogAttributesMap;
64
+ resourceAttributes?: ModelsLogEntryResourceAttributesMap;
65
+ serviceName?: string;
66
+ severityNumber?: number;
67
+ severityText?: string;
68
+ spanId?: string;
69
+ timestamp?: string;
70
+ traceId?: string;
71
+ }
72
+ export declare const ModelsLogEntry: S.Schema<ModelsLogEntry>;
73
+ export type ListOrganizationSandboxTelemetryLogsResponseBodyList = Array<ModelsLogEntry>;
74
+ export declare const ListOrganizationSandboxTelemetryLogsResponseBodyList: S.Schema<ListOrganizationSandboxTelemetryLogsResponseBodyList>;
75
+ export type ListOrganizationSandboxTelemetryLogsResponse = ListOrganizationSandboxTelemetryLogsResponseBodyList;
76
+ export declare const ListOrganizationSandboxTelemetryLogsResponse: S.Schema<ListOrganizationSandboxTelemetryLogsResponse>;
77
+ export interface ListOrganizationSandboxTelemetryMetricsRequest {
78
+ /** Organization ID */
79
+ organizationId: string;
80
+ /** Sandbox ID */
81
+ sandboxId: string;
82
+ /** Start time (RFC3339) */
83
+ from: string;
84
+ /** End time (RFC3339) */
85
+ to: string;
86
+ /** Comma-separated metric names */
87
+ metricNames?: string;
88
+ }
89
+ export declare const ListOrganizationSandboxTelemetryMetricsRequest: S.Schema<ListOrganizationSandboxTelemetryMetricsRequest>;
90
+ export interface ModelsMetricPoint {
91
+ metricName?: string;
92
+ timestamp?: string;
93
+ value?: number;
94
+ }
95
+ export declare const ModelsMetricPoint: S.Schema<ModelsMetricPoint>;
96
+ export type ListOrganizationSandboxTelemetryMetricsResponseBodyList = Array<ModelsMetricPoint>;
97
+ export declare const ListOrganizationSandboxTelemetryMetricsResponseBodyList: S.Schema<ListOrganizationSandboxTelemetryMetricsResponseBodyList>;
98
+ export type ListOrganizationSandboxTelemetryMetricsResponse = ListOrganizationSandboxTelemetryMetricsResponseBodyList;
99
+ export declare const ListOrganizationSandboxTelemetryMetricsResponse: S.Schema<ListOrganizationSandboxTelemetryMetricsResponse>;
100
+ export interface ListOrganizationSandboxTelemetryTracesRequest {
101
+ /** Organization ID */
102
+ organizationId: string;
103
+ /** Sandbox ID */
104
+ sandboxId: string;
105
+ /** Start time (RFC3339) */
106
+ from: string;
107
+ /** End time (RFC3339) */
108
+ to: string;
109
+ /** Page size */
110
+ limit?: number;
111
+ /** Offset */
112
+ offset?: number;
113
+ }
114
+ export declare const ListOrganizationSandboxTelemetryTracesRequest: S.Schema<ListOrganizationSandboxTelemetryTracesRequest>;
115
+ export interface ModelsTraceSummary {
116
+ endTime?: string;
117
+ rootSpanName?: string;
118
+ spanCount?: number;
119
+ startTime?: string;
120
+ statusCode?: string;
121
+ totalDurationMs?: number;
122
+ traceId?: string;
123
+ }
124
+ export declare const ModelsTraceSummary: S.Schema<ModelsTraceSummary>;
125
+ export type ListOrganizationSandboxTelemetryTracesResponseBodyList = Array<ModelsTraceSummary>;
126
+ export declare const ListOrganizationSandboxTelemetryTracesResponseBodyList: S.Schema<ListOrganizationSandboxTelemetryTracesResponseBodyList>;
127
+ export type ListOrganizationSandboxTelemetryTracesResponse = ListOrganizationSandboxTelemetryTracesResponseBodyList;
128
+ export declare const ListOrganizationSandboxTelemetryTracesResponse: S.Schema<ListOrganizationSandboxTelemetryTracesResponse>;
129
+ export type GetOrganizationSandboxTelemetryTraceError = DaytonaOpError;
130
+ /** Get trace spans Returns all spans belonging to a specific trace ID */
131
+ export declare const getOrganizationSandboxTelemetryTrace: API.OperationMethod<GetOrganizationSandboxTelemetryTraceRequest, GetOrganizationSandboxTelemetryTraceResponse, GetOrganizationSandboxTelemetryTraceError, DaytonaOpContext>;
132
+ export type ListOrganizationSandboxTelemetryLogsError = DaytonaOpError;
133
+ /** Get sandbox logs Returns paginated log entries with optional severity and search filters */
134
+ export declare const listOrganizationSandboxTelemetryLogs: API.OperationMethod<ListOrganizationSandboxTelemetryLogsRequest, ListOrganizationSandboxTelemetryLogsResponse, ListOrganizationSandboxTelemetryLogsError, DaytonaOpContext>;
135
+ export type ListOrganizationSandboxTelemetryMetricsError = DaytonaOpError;
136
+ /** Get sandbox metrics Returns gauge metrics aggregated in 1-minute intervals */
137
+ export declare const listOrganizationSandboxTelemetryMetrics: API.OperationMethod<ListOrganizationSandboxTelemetryMetricsRequest, ListOrganizationSandboxTelemetryMetricsResponse, ListOrganizationSandboxTelemetryMetricsError, DaytonaOpContext>;
138
+ export type ListOrganizationSandboxTelemetryTracesError = DaytonaOpError;
139
+ /** Get sandbox traces Returns paginated trace summaries with span counts and root span info */
140
+ export declare const listOrganizationSandboxTelemetryTraces: API.OperationMethod<ListOrganizationSandboxTelemetryTracesRequest, ListOrganizationSandboxTelemetryTracesResponse, ListOrganizationSandboxTelemetryTracesError, DaytonaOpContext>;
141
+ //# sourceMappingURL=telemetry.d.ts.map