@burdenoff/microfe-sandbox 2026.510.113

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 (173) hide show
  1. package/dist/dev/main.d.ts +2 -0
  2. package/dist/dev/main.d.ts.map +1 -0
  3. package/dist/generated/global-operations.d.ts +2 -0
  4. package/dist/generated/global-operations.d.ts.map +1 -0
  5. package/dist/generated/global-types.d.ts +21253 -0
  6. package/dist/generated/global-types.d.ts.map +1 -0
  7. package/dist/generated/wspace-operations.d.ts +1595 -0
  8. package/dist/generated/wspace-operations.d.ts.map +1 -0
  9. package/dist/generated/wspace-operations.js +692 -0
  10. package/dist/generated/wspace-operations.js.map +1 -0
  11. package/dist/generated/wspace-types.d.ts +55214 -0
  12. package/dist/generated/wspace-types.d.ts.map +1 -0
  13. package/dist/index.d.ts +6 -0
  14. package/dist/index.d.ts.map +1 -0
  15. package/dist/index.js +6 -0
  16. package/dist/node_modules/clsx/dist/clsx.js +18 -0
  17. package/dist/node_modules/clsx/dist/clsx.js.map +1 -0
  18. package/dist/node_modules/tailwind-merge/dist/bundle-mjs.js +1674 -0
  19. package/dist/node_modules/tailwind-merge/dist/bundle-mjs.js.map +1 -0
  20. package/dist/sandbox/AdminRoutes.d.ts +12 -0
  21. package/dist/sandbox/AdminRoutes.d.ts.map +1 -0
  22. package/dist/sandbox/AdminRoutes.js +45 -0
  23. package/dist/sandbox/AdminRoutes.js.map +1 -0
  24. package/dist/sandbox/SandboxAdminRoot.d.ts +21 -0
  25. package/dist/sandbox/SandboxAdminRoot.d.ts.map +1 -0
  26. package/dist/sandbox/SandboxAdminRoot.js +55 -0
  27. package/dist/sandbox/SandboxAdminRoot.js.map +1 -0
  28. package/dist/sandbox/SandboxRoot.d.ts +31 -0
  29. package/dist/sandbox/SandboxRoot.d.ts.map +1 -0
  30. package/dist/sandbox/SandboxRoot.js +61 -0
  31. package/dist/sandbox/SandboxRoot.js.map +1 -0
  32. package/dist/sandbox/SandboxRoutes.d.ts +18 -0
  33. package/dist/sandbox/SandboxRoutes.d.ts.map +1 -0
  34. package/dist/sandbox/UserRoutes.d.ts +11 -0
  35. package/dist/sandbox/UserRoutes.d.ts.map +1 -0
  36. package/dist/sandbox/UserRoutes.js +57 -0
  37. package/dist/sandbox/UserRoutes.js.map +1 -0
  38. package/dist/sandbox/components/ContainerImagePicker.d.ts +24 -0
  39. package/dist/sandbox/components/ContainerImagePicker.d.ts.map +1 -0
  40. package/dist/sandbox/components/CountdownTimer.d.ts +9 -0
  41. package/dist/sandbox/components/CountdownTimer.d.ts.map +1 -0
  42. package/dist/sandbox/components/CountdownTimer.js +75 -0
  43. package/dist/sandbox/components/CountdownTimer.js.map +1 -0
  44. package/dist/sandbox/components/ExportSandboxesDialog.d.ts +8 -0
  45. package/dist/sandbox/components/ExportSandboxesDialog.d.ts.map +1 -0
  46. package/dist/sandbox/components/ExportSandboxesDialog.js +130 -0
  47. package/dist/sandbox/components/ExportSandboxesDialog.js.map +1 -0
  48. package/dist/sandbox/components/ExtendTTLModal.d.ts +10 -0
  49. package/dist/sandbox/components/ExtendTTLModal.d.ts.map +1 -0
  50. package/dist/sandbox/components/ExtendTTLModal.js +109 -0
  51. package/dist/sandbox/components/ExtendTTLModal.js.map +1 -0
  52. package/dist/sandbox/components/PageLayout.d.ts +39 -0
  53. package/dist/sandbox/components/PageLayout.d.ts.map +1 -0
  54. package/dist/sandbox/components/PageLayout.js +75 -0
  55. package/dist/sandbox/components/PageLayout.js.map +1 -0
  56. package/dist/sandbox/components/ResourceDisplay.d.ts +17 -0
  57. package/dist/sandbox/components/ResourceDisplay.d.ts.map +1 -0
  58. package/dist/sandbox/components/ResourceDisplay.js +69 -0
  59. package/dist/sandbox/components/ResourceDisplay.js.map +1 -0
  60. package/dist/sandbox/components/RouteUtils.d.ts +28 -0
  61. package/dist/sandbox/components/RouteUtils.d.ts.map +1 -0
  62. package/dist/sandbox/components/RouteUtils.js +68 -0
  63. package/dist/sandbox/components/RouteUtils.js.map +1 -0
  64. package/dist/sandbox/components/SandboxActivityTab.d.ts +14 -0
  65. package/dist/sandbox/components/SandboxActivityTab.d.ts.map +1 -0
  66. package/dist/sandbox/components/SandboxActivityTab.js +83 -0
  67. package/dist/sandbox/components/SandboxActivityTab.js.map +1 -0
  68. package/dist/sandbox/components/SandboxAgentAppPanel.d.ts +16 -0
  69. package/dist/sandbox/components/SandboxAgentAppPanel.d.ts.map +1 -0
  70. package/dist/sandbox/components/SandboxAgentAppPanel.js +103 -0
  71. package/dist/sandbox/components/SandboxAgentAppPanel.js.map +1 -0
  72. package/dist/sandbox/components/SandboxTypeIcon.d.ts +15 -0
  73. package/dist/sandbox/components/SandboxTypeIcon.d.ts.map +1 -0
  74. package/dist/sandbox/components/SandboxTypeIcon.js +52 -0
  75. package/dist/sandbox/components/SandboxTypeIcon.js.map +1 -0
  76. package/dist/sandbox/components/SandboxTypeSelector.d.ts +35 -0
  77. package/dist/sandbox/components/SandboxTypeSelector.d.ts.map +1 -0
  78. package/dist/sandbox/components/SandboxUsageBanner.d.ts +16 -0
  79. package/dist/sandbox/components/SandboxUsageBanner.d.ts.map +1 -0
  80. package/dist/sandbox/components/SandboxUsageBanner.js +37 -0
  81. package/dist/sandbox/components/SandboxUsageBanner.js.map +1 -0
  82. package/dist/sandbox/components/StatusBadge.d.ts +15 -0
  83. package/dist/sandbox/components/StatusBadge.d.ts.map +1 -0
  84. package/dist/sandbox/components/StatusBadge.js +86 -0
  85. package/dist/sandbox/components/StatusBadge.js.map +1 -0
  86. package/dist/sandbox/components/TagsInput.d.ts +14 -0
  87. package/dist/sandbox/components/TagsInput.d.ts.map +1 -0
  88. package/dist/sandbox/components/TagsInput.js +46 -0
  89. package/dist/sandbox/components/TagsInput.js.map +1 -0
  90. package/dist/sandbox/components/ui.d.ts +6 -0
  91. package/dist/sandbox/components/ui.d.ts.map +1 -0
  92. package/dist/sandbox/components/ui.js +2 -0
  93. package/dist/sandbox/hooks/useRemainingSeconds.d.ts +12 -0
  94. package/dist/sandbox/hooks/useRemainingSeconds.d.ts.map +1 -0
  95. package/dist/sandbox/hooks/useRemainingSeconds.js +23 -0
  96. package/dist/sandbox/hooks/useRemainingSeconds.js.map +1 -0
  97. package/dist/sandbox/index.d.ts +30 -0
  98. package/dist/sandbox/index.d.ts.map +1 -0
  99. package/dist/sandbox/index.js +4 -0
  100. package/dist/sandbox/pages/AdminLandingPage.d.ts +9 -0
  101. package/dist/sandbox/pages/AdminLandingPage.d.ts.map +1 -0
  102. package/dist/sandbox/pages/AdminLandingPage.js +40 -0
  103. package/dist/sandbox/pages/AdminLandingPage.js.map +1 -0
  104. package/dist/sandbox/pages/AdminPage.d.ts +2 -0
  105. package/dist/sandbox/pages/AdminPage.d.ts.map +1 -0
  106. package/dist/sandbox/pages/AdminPage.js +448 -0
  107. package/dist/sandbox/pages/AdminPage.js.map +1 -0
  108. package/dist/sandbox/pages/AdminTemplatesPage.d.ts +7 -0
  109. package/dist/sandbox/pages/AdminTemplatesPage.d.ts.map +1 -0
  110. package/dist/sandbox/pages/AdminTemplatesPage.js +155 -0
  111. package/dist/sandbox/pages/AdminTemplatesPage.js.map +1 -0
  112. package/dist/sandbox/pages/SandboxCreatePage.d.ts +2 -0
  113. package/dist/sandbox/pages/SandboxCreatePage.d.ts.map +1 -0
  114. package/dist/sandbox/pages/SandboxCreatePage.js +1121 -0
  115. package/dist/sandbox/pages/SandboxCreatePage.js.map +1 -0
  116. package/dist/sandbox/pages/SandboxDetailPage.d.ts +6 -0
  117. package/dist/sandbox/pages/SandboxDetailPage.d.ts.map +1 -0
  118. package/dist/sandbox/pages/SandboxDetailPage.js +822 -0
  119. package/dist/sandbox/pages/SandboxDetailPage.js.map +1 -0
  120. package/dist/sandbox/pages/SandboxLandingPage.d.ts +12 -0
  121. package/dist/sandbox/pages/SandboxLandingPage.d.ts.map +1 -0
  122. package/dist/sandbox/pages/SandboxListPage.d.ts +6 -0
  123. package/dist/sandbox/pages/SandboxListPage.d.ts.map +1 -0
  124. package/dist/sandbox/pages/SandboxListPage.js +820 -0
  125. package/dist/sandbox/pages/SandboxListPage.js.map +1 -0
  126. package/dist/sandbox/pages/TemplateDetailPage.d.ts +6 -0
  127. package/dist/sandbox/pages/TemplateDetailPage.d.ts.map +1 -0
  128. package/dist/sandbox/pages/TemplateDetailPage.js +691 -0
  129. package/dist/sandbox/pages/TemplateDetailPage.js.map +1 -0
  130. package/dist/sandbox/pages/TemplatesPage.d.ts +8 -0
  131. package/dist/sandbox/pages/TemplatesPage.d.ts.map +1 -0
  132. package/dist/sandbox/pages/UserLandingPage.d.ts +9 -0
  133. package/dist/sandbox/pages/UserLandingPage.d.ts.map +1 -0
  134. package/dist/sandbox/pages/UserLandingPage.js +52 -0
  135. package/dist/sandbox/pages/UserLandingPage.js.map +1 -0
  136. package/dist/sandbox/pages/UserTemplatesPage.d.ts +8 -0
  137. package/dist/sandbox/pages/UserTemplatesPage.d.ts.map +1 -0
  138. package/dist/sandbox/pages/UserTemplatesPage.js +121 -0
  139. package/dist/sandbox/pages/UserTemplatesPage.js.map +1 -0
  140. package/dist/sandbox/providers/SandboxProvider.d.ts +13 -0
  141. package/dist/sandbox/providers/SandboxProvider.d.ts.map +1 -0
  142. package/dist/sandbox/providers/SandboxProvider.js +78 -0
  143. package/dist/sandbox/providers/SandboxProvider.js.map +1 -0
  144. package/dist/sandbox/store/sandboxStore.d.ts +16 -0
  145. package/dist/sandbox/store/sandboxStore.d.ts.map +1 -0
  146. package/dist/sandbox/store/sandboxStore.js +24 -0
  147. package/dist/sandbox/store/sandboxStore.js.map +1 -0
  148. package/dist/sandbox/types/index.d.ts +238 -0
  149. package/dist/sandbox/types/index.d.ts.map +1 -0
  150. package/dist/sandbox/utils/cn.d.ts +8 -0
  151. package/dist/sandbox/utils/cn.d.ts.map +1 -0
  152. package/dist/sandbox/utils/cn.js +10 -0
  153. package/dist/sandbox/utils/cn.js.map +1 -0
  154. package/dist/sandbox/utils/formatters.d.ts +7 -0
  155. package/dist/sandbox/utils/formatters.d.ts.map +1 -0
  156. package/dist/sandbox/utils/formatters.js +10 -0
  157. package/dist/sandbox/utils/formatters.js.map +1 -0
  158. package/dist/sandbox/utils/i18n.d.ts +6 -0
  159. package/dist/sandbox/utils/i18n.d.ts.map +1 -0
  160. package/dist/sandbox/utils/i18n.js +15 -0
  161. package/dist/sandbox/utils/i18n.js.map +1 -0
  162. package/dist/sandbox/utils/navigation.d.ts +5 -0
  163. package/dist/sandbox/utils/navigation.d.ts.map +1 -0
  164. package/dist/sandbox/utils/navigation.js +8 -0
  165. package/dist/sandbox/utils/navigation.js.map +1 -0
  166. package/dist/sandbox/utils/sandboxEvents.d.ts +13 -0
  167. package/dist/sandbox/utils/sandboxEvents.d.ts.map +1 -0
  168. package/dist/sandbox/utils/sandboxEvents.js +20 -0
  169. package/dist/sandbox/utils/sandboxEvents.js.map +1 -0
  170. package/dist/utils/nativeBridge.d.ts +3 -0
  171. package/dist/utils/nativeBridge.d.ts.map +1 -0
  172. package/dist/utils/nativeBridge.js +2 -0
  173. package/package.json +107 -0
@@ -0,0 +1,692 @@
1
+ import { gql as e } from "@apollo/client";
2
+ import * as t from "@apollo/client/react";
3
+ //#region src/generated/wspace-operations.ts
4
+ var n = {}, r = e`
5
+ fragment SandboxActiveItem_Sandbox on Sandbox {
6
+ id
7
+ name
8
+ kind
9
+ source
10
+ agentEnabled
11
+ template
12
+ status
13
+ network {
14
+ internalUrl
15
+ }
16
+ resources {
17
+ cpuRequest
18
+ memoryRequest
19
+ }
20
+ expiresAt
21
+ createdBy
22
+ }
23
+ `, i = e`
24
+ fragment SandboxDetail_Sandbox on Sandbox {
25
+ id
26
+ name
27
+ description
28
+ kind
29
+ source
30
+ agentEnabled
31
+ template
32
+ mode
33
+ status
34
+ crdName
35
+ podName
36
+ namespace
37
+ runtimeClass
38
+ containers {
39
+ name
40
+ image
41
+ ports {
42
+ containerPort
43
+ name
44
+ }
45
+ env {
46
+ name
47
+ value
48
+ }
49
+ command
50
+ args
51
+ resources {
52
+ requestsCpu
53
+ requestsMemory
54
+ limitsCpu
55
+ limitsMemory
56
+ }
57
+ }
58
+ containerStatuses {
59
+ name
60
+ ready
61
+ port
62
+ restartCount
63
+ }
64
+ resources {
65
+ cpuRequest
66
+ cpuLimit
67
+ memoryRequest
68
+ memoryLimit
69
+ }
70
+ storage {
71
+ mode
72
+ sizeGi
73
+ mountPath
74
+ retainOnDelete
75
+ }
76
+ network {
77
+ exposeService
78
+ internalUrl
79
+ containerUrls
80
+ serviceName
81
+ }
82
+ ttlSeconds
83
+ expiresAt
84
+ metadata
85
+ errorMessage
86
+ workspaceId
87
+ context {
88
+ workspaceId
89
+ userId
90
+ projectId
91
+ appId
92
+ }
93
+ createdBy
94
+ createdAt
95
+ updatedAt
96
+ stoppedAt
97
+ }
98
+ `, a = e`
99
+ fragment SandboxListItem_Sandbox on Sandbox {
100
+ id
101
+ name
102
+ description
103
+ kind
104
+ source
105
+ agentEnabled
106
+ template
107
+ mode
108
+ status
109
+ expiresAt
110
+ ttlSeconds
111
+ errorMessage
112
+ createdBy
113
+ createdAt
114
+ updatedAt
115
+ stoppedAt
116
+ workspaceId
117
+ containers {
118
+ name
119
+ image
120
+ ports {
121
+ containerPort
122
+ name
123
+ }
124
+ }
125
+ resources {
126
+ cpuRequest
127
+ cpuLimit
128
+ memoryRequest
129
+ memoryLimit
130
+ }
131
+ storage {
132
+ mode
133
+ sizeGi
134
+ mountPath
135
+ retainOnDelete
136
+ }
137
+ network {
138
+ exposeService
139
+ internalUrl
140
+ containerUrls
141
+ serviceName
142
+ }
143
+ }
144
+ `, o = e`
145
+ mutation CreateSandbox($input: CreateSandboxInput!) {
146
+ createSandbox(input: $input) {
147
+ id
148
+ name
149
+ description
150
+ kind
151
+ source
152
+ agentEnabled
153
+ template
154
+ mode
155
+ status
156
+ crdName
157
+ podName
158
+ namespace
159
+ runtimeClass
160
+ containers {
161
+ name
162
+ image
163
+ ports {
164
+ containerPort
165
+ name
166
+ }
167
+ }
168
+ resources {
169
+ cpuRequest
170
+ cpuLimit
171
+ memoryRequest
172
+ memoryLimit
173
+ }
174
+ storage {
175
+ mode
176
+ sizeGi
177
+ mountPath
178
+ retainOnDelete
179
+ }
180
+ network {
181
+ exposeService
182
+ internalUrl
183
+ containerUrls
184
+ serviceName
185
+ }
186
+ ttlSeconds
187
+ expiresAt
188
+ workspaceId
189
+ createdBy
190
+ createdAt
191
+ }
192
+ }
193
+ `;
194
+ function s(e) {
195
+ let r = {
196
+ ...n,
197
+ ...e
198
+ };
199
+ return t.useMutation(o, r);
200
+ }
201
+ var c = e`
202
+ mutation StopSandbox($context: ContextInput!, $id: ID!) {
203
+ stopSandbox(context: $context, id: $id) {
204
+ id
205
+ name
206
+ status
207
+ stoppedAt
208
+ }
209
+ }
210
+ `;
211
+ function l(e) {
212
+ let r = {
213
+ ...n,
214
+ ...e
215
+ };
216
+ return t.useMutation(c, r);
217
+ }
218
+ var u = e`
219
+ mutation DeleteSandbox($context: ContextInput!, $id: ID!) {
220
+ deleteSandbox(context: $context, id: $id)
221
+ }
222
+ `;
223
+ function d(e) {
224
+ let r = {
225
+ ...n,
226
+ ...e
227
+ };
228
+ return t.useMutation(u, r);
229
+ }
230
+ var f = e`
231
+ mutation ExtendSandboxTTL($context: ContextInput!, $id: ID!, $additionalSeconds: Int!) {
232
+ extendSandboxTTL(
233
+ context: $context
234
+ id: $id
235
+ additionalSeconds: $additionalSeconds
236
+ ) {
237
+ id
238
+ ttlSeconds
239
+ expiresAt
240
+ }
241
+ }
242
+ `;
243
+ function p(e) {
244
+ let r = {
245
+ ...n,
246
+ ...e
247
+ };
248
+ return t.useMutation(f, r);
249
+ }
250
+ var m = e`
251
+ mutation CreateSandboxTemplate($input: CreateSandboxTemplateInput!) {
252
+ createSandboxTemplate(input: $input) {
253
+ id
254
+ name
255
+ description
256
+ template
257
+ isDefault
258
+ containers {
259
+ name
260
+ image
261
+ ports {
262
+ containerPort
263
+ name
264
+ }
265
+ resources {
266
+ requestsCpu
267
+ requestsMemory
268
+ limitsCpu
269
+ limitsMemory
270
+ }
271
+ }
272
+ resources {
273
+ cpuRequest
274
+ cpuLimit
275
+ memoryRequest
276
+ memoryLimit
277
+ }
278
+ storage {
279
+ mode
280
+ sizeGi
281
+ mountPath
282
+ retainOnDelete
283
+ }
284
+ ttlSeconds
285
+ config
286
+ allowedImages
287
+ workspaceId
288
+ createdBy
289
+ createdAt
290
+ }
291
+ }
292
+ `;
293
+ function h(e) {
294
+ let r = {
295
+ ...n,
296
+ ...e
297
+ };
298
+ return t.useMutation(m, r);
299
+ }
300
+ var g = e`
301
+ mutation UpdateSandboxTemplate($input: UpdateSandboxTemplateInput!) {
302
+ updateSandboxTemplate(input: $input) {
303
+ id
304
+ name
305
+ description
306
+ template
307
+ isDefault
308
+ containers {
309
+ name
310
+ image
311
+ ports {
312
+ containerPort
313
+ name
314
+ }
315
+ resources {
316
+ requestsCpu
317
+ requestsMemory
318
+ limitsCpu
319
+ limitsMemory
320
+ }
321
+ }
322
+ resources {
323
+ cpuRequest
324
+ cpuLimit
325
+ memoryRequest
326
+ memoryLimit
327
+ }
328
+ storage {
329
+ mode
330
+ sizeGi
331
+ mountPath
332
+ retainOnDelete
333
+ }
334
+ ttlSeconds
335
+ config
336
+ allowedImages
337
+ updatedAt
338
+ }
339
+ }
340
+ `;
341
+ function _(e) {
342
+ let r = {
343
+ ...n,
344
+ ...e
345
+ };
346
+ return t.useMutation(g, r);
347
+ }
348
+ var v = e`
349
+ mutation DeleteSandboxTemplate($context: ContextInput!, $id: ID!) {
350
+ deleteSandboxTemplate(context: $context, id: $id)
351
+ }
352
+ `;
353
+ function y(e) {
354
+ let r = {
355
+ ...n,
356
+ ...e
357
+ };
358
+ return t.useMutation(v, r);
359
+ }
360
+ e`
361
+ query GetSandboxStats($context: ContextInput!) {
362
+ getSandboxStats(context: $context) {
363
+ activeSandboxes
364
+ activeUserSandboxes
365
+ activeInternalSandboxes
366
+ totalCreated
367
+ totalUserCreated
368
+ totalInternalCreated
369
+ totalDeleted
370
+ runningNow
371
+ provisioningNow
372
+ stoppedNow
373
+ expiredCount
374
+ failedCount
375
+ totalCpuUsed
376
+ totalMemoryUsed
377
+ }
378
+ }
379
+ `, e`
380
+ query ListSandboxNodes($context: ContextInput!) {
381
+ listSandboxNodes(context: $context) {
382
+ name
383
+ status
384
+ allocatableCpu
385
+ allocatableMemory
386
+ sandboxPodCount
387
+ labels
388
+ }
389
+ }
390
+ `, e`
391
+ query GetRecentSandboxActivity($context: ContextInput!, $limit: Int) {
392
+ getRecentSandboxActivity(context: $context, limit: $limit) {
393
+ items {
394
+ id
395
+ action
396
+ sandboxName
397
+ sandboxId
398
+ actorId
399
+ status
400
+ createdAt
401
+ }
402
+ total
403
+ }
404
+ }
405
+ `, e`
406
+ query ListAllSandboxes($context: ContextInput!, $filter: SandboxFilterInput, $pagination: SandboxPaginationInput) {
407
+ listAllSandboxes(context: $context, filter: $filter, pagination: $pagination) {
408
+ items {
409
+ id
410
+ name
411
+ description
412
+ kind
413
+ source
414
+ agentEnabled
415
+ template
416
+ mode
417
+ status
418
+ ttlSeconds
419
+ expiresAt
420
+ createdBy
421
+ createdAt
422
+ updatedAt
423
+ errorMessage
424
+ resources {
425
+ cpuRequest
426
+ memoryRequest
427
+ }
428
+ }
429
+ total
430
+ hasMore
431
+ }
432
+ }
433
+ `, e`
434
+ query GetSandboxConfig($context: ContextInput!) {
435
+ getSandboxConfig(context: $context) {
436
+ id
437
+ defaultTtlSeconds
438
+ maxTtlSeconds
439
+ maxConcurrentPerUser
440
+ maxConcurrentPerWorkspace
441
+ defaultCpuRequest
442
+ defaultCpuLimit
443
+ defaultMemoryRequest
444
+ defaultMemoryLimit
445
+ workspaceId
446
+ updatedAt
447
+ allowedTemplates
448
+ }
449
+ }
450
+ `, e`
451
+ mutation UpdateSandboxConfig($input: UpdateSandboxConfigInput!) {
452
+ updateSandboxConfig(input: $input) {
453
+ id
454
+ defaultTtlSeconds
455
+ maxTtlSeconds
456
+ maxConcurrentPerUser
457
+ maxConcurrentPerWorkspace
458
+ defaultCpuRequest
459
+ defaultCpuLimit
460
+ defaultMemoryRequest
461
+ defaultMemoryLimit
462
+ workspaceId
463
+ updatedAt
464
+ allowedTemplates
465
+ }
466
+ }
467
+ `;
468
+ var b = e`
469
+ query ListSandboxes($context: ContextInput!, $filter: SandboxFilterInput, $pagination: SandboxPaginationInput) {
470
+ listSandboxes(context: $context, filter: $filter, pagination: $pagination) {
471
+ items {
472
+ ...SandboxListItem_Sandbox
473
+ }
474
+ total
475
+ hasMore
476
+ }
477
+ }
478
+ ${a}`;
479
+ function x(e) {
480
+ let r = {
481
+ ...n,
482
+ ...e
483
+ };
484
+ return t.useQuery(b, r);
485
+ }
486
+ var S = e`
487
+ query GetSandbox($context: ContextInput!, $id: ID!) {
488
+ getSandbox(context: $context, id: $id) {
489
+ ...SandboxDetail_Sandbox
490
+ }
491
+ }
492
+ ${i}`;
493
+ function C(e) {
494
+ let r = {
495
+ ...n,
496
+ ...e
497
+ };
498
+ return t.useQuery(S, r);
499
+ }
500
+ e`
501
+ query GetActiveSandboxes($context: ContextInput!) {
502
+ getActiveSandboxes(context: $context) {
503
+ ...SandboxActiveItem_Sandbox
504
+ }
505
+ }
506
+ ${r}`;
507
+ var w = e`
508
+ query GetSandboxLogs($context: ContextInput!, $id: ID!, $containerName: String!, $tailLines: Int) {
509
+ getSandboxLogs(
510
+ context: $context
511
+ id: $id
512
+ containerName: $containerName
513
+ tailLines: $tailLines
514
+ )
515
+ }
516
+ `;
517
+ function T(e) {
518
+ let r = {
519
+ ...n,
520
+ ...e
521
+ };
522
+ return t.useLazyQuery(w, r);
523
+ }
524
+ var E = e`
525
+ query ListSandboxTemplates($context: ContextInput!, $template: SandboxTemplate, $pagination: SandboxPaginationInput) {
526
+ listSandboxTemplates(
527
+ context: $context
528
+ template: $template
529
+ pagination: $pagination
530
+ ) {
531
+ items {
532
+ id
533
+ name
534
+ description
535
+ template
536
+ isDefault
537
+ containers {
538
+ name
539
+ image
540
+ ports {
541
+ containerPort
542
+ name
543
+ }
544
+ resources {
545
+ requestsCpu
546
+ requestsMemory
547
+ limitsCpu
548
+ limitsMemory
549
+ }
550
+ }
551
+ resources {
552
+ cpuRequest
553
+ cpuLimit
554
+ memoryRequest
555
+ memoryLimit
556
+ }
557
+ storage {
558
+ mode
559
+ sizeGi
560
+ mountPath
561
+ retainOnDelete
562
+ }
563
+ ttlSeconds
564
+ config
565
+ metadata
566
+ allowedImages
567
+ workspaceId
568
+ createdBy
569
+ createdAt
570
+ updatedAt
571
+ }
572
+ total
573
+ hasMore
574
+ }
575
+ }
576
+ `;
577
+ function D(e) {
578
+ let r = {
579
+ ...n,
580
+ ...e
581
+ };
582
+ return t.useQuery(E, r);
583
+ }
584
+ var O = e`
585
+ query GetSandboxTemplate($context: ContextInput!, $id: ID!) {
586
+ getSandboxTemplate(context: $context, id: $id) {
587
+ id
588
+ name
589
+ description
590
+ template
591
+ isDefault
592
+ containers {
593
+ name
594
+ image
595
+ ports {
596
+ containerPort
597
+ name
598
+ }
599
+ env {
600
+ name
601
+ value
602
+ }
603
+ resources {
604
+ requestsCpu
605
+ requestsMemory
606
+ limitsCpu
607
+ limitsMemory
608
+ }
609
+ }
610
+ resources {
611
+ cpuRequest
612
+ cpuLimit
613
+ memoryRequest
614
+ memoryLimit
615
+ }
616
+ storage {
617
+ mode
618
+ sizeGi
619
+ mountPath
620
+ retainOnDelete
621
+ }
622
+ ttlSeconds
623
+ config
624
+ metadata
625
+ allowedImages
626
+ workspaceId
627
+ createdBy
628
+ createdAt
629
+ updatedAt
630
+ }
631
+ }
632
+ `;
633
+ function k(e) {
634
+ let r = {
635
+ ...n,
636
+ ...e
637
+ };
638
+ return t.useQuery(O, r);
639
+ }
640
+ var A = e`
641
+ subscription OnSandboxStatusChanged($workspaceId: ID!, $sandboxId: ID!) {
642
+ onSandboxStatusChanged(workspaceId: $workspaceId, sandboxId: $sandboxId) {
643
+ ...SandboxDetail_Sandbox
644
+ }
645
+ }
646
+ ${i}`;
647
+ function j(e) {
648
+ let r = {
649
+ ...n,
650
+ ...e
651
+ };
652
+ return t.useSubscription(A, r);
653
+ }
654
+ var M = e`
655
+ subscription OnSandboxesChanged($workspaceId: ID!) {
656
+ onSandboxesChanged(workspaceId: $workspaceId) {
657
+ changeType
658
+ occurredAt
659
+ sandbox {
660
+ ...SandboxListItem_Sandbox
661
+ }
662
+ }
663
+ }
664
+ ${a}`;
665
+ function N(e) {
666
+ let r = {
667
+ ...n,
668
+ ...e
669
+ };
670
+ return t.useSubscription(M, r);
671
+ }
672
+ e`
673
+ subscription OnSandboxExportJobChanged($workspaceId: ID!, $jobId: ID!) {
674
+ onSandboxExportJobChanged(workspaceId: $workspaceId, jobId: $jobId) {
675
+ id
676
+ workspaceId
677
+ status
678
+ format
679
+ rowCount
680
+ downloadUrl
681
+ expiresAt
682
+ errorMessage
683
+ requestedBy
684
+ createdAt
685
+ updatedAt
686
+ }
687
+ }
688
+ `;
689
+ //#endregion
690
+ export { b as ListSandboxesDocument, s as useCreateSandboxMutation, h as useCreateSandboxTemplateMutation, d as useDeleteSandboxMutation, y as useDeleteSandboxTemplateMutation, p as useExtendSandboxTtlMutation, T as useGetSandboxLogsLazyQuery, C as useGetSandboxQuery, k as useGetSandboxTemplateQuery, D as useListSandboxTemplatesQuery, x as useListSandboxesQuery, j as useOnSandboxStatusChangedSubscription, N as useOnSandboxesChangedSubscription, l as useStopSandboxMutation, _ as useUpdateSandboxTemplateMutation };
691
+
692
+ //# sourceMappingURL=wspace-operations.js.map