unfazed 0.0.1 → 0.2.0

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.
@@ -0,0 +1,609 @@
1
+ export class TypedDocumentString extends String {
2
+ __apiType;
3
+ value;
4
+ __meta__;
5
+ constructor(value, __meta__) {
6
+ super(value);
7
+ this.value = value;
8
+ this.__meta__ = __meta__;
9
+ }
10
+ toString() {
11
+ return this.value;
12
+ }
13
+ }
14
+ export const DeploymentFieldsFragmentDoc = new TypedDocumentString(`
15
+ fragment DeploymentFields on Deployment {
16
+ id
17
+ workspaceID
18
+ kind
19
+ runtime
20
+ alias
21
+ serviceMode
22
+ healthPath
23
+ cronSchedule
24
+ cronPath
25
+ url
26
+ previewUrl
27
+ sshCommand
28
+ aliasHeld
29
+ aliasRevision
30
+ status
31
+ error
32
+ filesCount
33
+ sizeBytes
34
+ size
35
+ spaMode
36
+ gitRepo
37
+ gitCommit
38
+ createdAt
39
+ }
40
+ `, { "fragmentName": "DeploymentFields" });
41
+ export const SdkWhoamiDocument = new TypedDocumentString(`
42
+ query SdkWhoami {
43
+ whoami {
44
+ kind
45
+ userID
46
+ name
47
+ agentID
48
+ agentName
49
+ claimed
50
+ claimedBy
51
+ scopes
52
+ expiresAt
53
+ usage {
54
+ month
55
+ requests
56
+ limit
57
+ }
58
+ resources {
59
+ workspaces
60
+ workspaceLimit
61
+ services
62
+ serviceLimit
63
+ }
64
+ }
65
+ }
66
+ `);
67
+ export const SdkCreateWorkspaceDocument = new TypedDocumentString(`
68
+ mutation SdkCreateWorkspace($name: String!) {
69
+ createWorkspace(input: {name: $name}) {
70
+ workspace {
71
+ id
72
+ name
73
+ ownerId
74
+ projectId
75
+ createdAt
76
+ updatedAt
77
+ }
78
+ }
79
+ }
80
+ `);
81
+ export const SdkListWorkspacesDocument = new TypedDocumentString(`
82
+ query SdkListWorkspaces {
83
+ workspaces {
84
+ id
85
+ name
86
+ ownerId
87
+ projectId
88
+ createdAt
89
+ updatedAt
90
+ }
91
+ }
92
+ `);
93
+ export const SdkDeleteWorkspaceDocument = new TypedDocumentString(`
94
+ mutation SdkDeleteWorkspace($workspaceID: ID!, $withDeployments: Boolean) {
95
+ deleteWorkspace(
96
+ input: {workspaceID: $workspaceID, withDeployments: $withDeployments}
97
+ ) {
98
+ ok
99
+ }
100
+ }
101
+ `);
102
+ export const SdkWriteTextFileDocument = new TypedDocumentString(`
103
+ mutation SdkWriteTextFile($workspaceID: ID!, $path: String!, $text: String!) {
104
+ writeWorkspaceTextFile(
105
+ input: {workspaceID: $workspaceID, path: $path, text: $text}
106
+ ) {
107
+ file {
108
+ path
109
+ sizeBytes
110
+ size
111
+ sha256
112
+ updatedAt
113
+ }
114
+ }
115
+ }
116
+ `);
117
+ export const SdkWriteBase64FileDocument = new TypedDocumentString(`
118
+ mutation SdkWriteBase64File($workspaceID: ID!, $path: String!, $contentBase64: String!) {
119
+ writeWorkspaceBase64File(
120
+ input: {workspaceID: $workspaceID, path: $path, contentBase64: $contentBase64}
121
+ ) {
122
+ file {
123
+ path
124
+ sizeBytes
125
+ size
126
+ sha256
127
+ updatedAt
128
+ }
129
+ }
130
+ }
131
+ `);
132
+ export const SdkListFilesDocument = new TypedDocumentString(`
133
+ query SdkListFiles($input: ListWorkspaceFilesInput!) {
134
+ workspaceFilesPage(input: $input) {
135
+ items {
136
+ path
137
+ sizeBytes
138
+ size
139
+ sha256
140
+ updatedAt
141
+ }
142
+ total
143
+ limit
144
+ offset
145
+ hasMore
146
+ nextOffset
147
+ }
148
+ }
149
+ `);
150
+ export const SdkReadFileDocument = new TypedDocumentString(`
151
+ query SdkReadFile($input: ReadWorkspaceFileInput!) {
152
+ readWorkspaceFile(input: $input) {
153
+ text
154
+ offset
155
+ limit
156
+ totalBytes
157
+ truncated
158
+ nextOffset
159
+ file {
160
+ path
161
+ sizeBytes
162
+ size
163
+ sha256
164
+ updatedAt
165
+ }
166
+ }
167
+ }
168
+ `);
169
+ export const SdkDeleteFileDocument = new TypedDocumentString(`
170
+ mutation SdkDeleteFile($workspaceID: ID!, $path: String!) {
171
+ deleteWorkspaceFile(input: {workspaceID: $workspaceID, path: $path}) {
172
+ ok
173
+ }
174
+ }
175
+ `);
176
+ export const SdkCreateDeploymentDocument = new TypedDocumentString(`
177
+ mutation SdkCreateDeployment($input: CreateDeploymentInput!) {
178
+ createDeployment(input: $input) {
179
+ deployment {
180
+ ...DeploymentFields
181
+ }
182
+ }
183
+ }
184
+ fragment DeploymentFields on Deployment {
185
+ id
186
+ workspaceID
187
+ kind
188
+ runtime
189
+ alias
190
+ serviceMode
191
+ healthPath
192
+ cronSchedule
193
+ cronPath
194
+ url
195
+ previewUrl
196
+ sshCommand
197
+ aliasHeld
198
+ aliasRevision
199
+ status
200
+ error
201
+ filesCount
202
+ sizeBytes
203
+ size
204
+ spaMode
205
+ gitRepo
206
+ gitCommit
207
+ createdAt
208
+ }`);
209
+ export const SdkDeployWorkspaceDocument = new TypedDocumentString(`
210
+ mutation SdkDeployWorkspace($input: DeployWorkspaceInput!) {
211
+ deployWorkspace(input: $input) {
212
+ deployment {
213
+ ...DeploymentFields
214
+ }
215
+ }
216
+ }
217
+ fragment DeploymentFields on Deployment {
218
+ id
219
+ workspaceID
220
+ kind
221
+ runtime
222
+ alias
223
+ serviceMode
224
+ healthPath
225
+ cronSchedule
226
+ cronPath
227
+ url
228
+ previewUrl
229
+ sshCommand
230
+ aliasHeld
231
+ aliasRevision
232
+ status
233
+ error
234
+ filesCount
235
+ sizeBytes
236
+ size
237
+ spaMode
238
+ gitRepo
239
+ gitCommit
240
+ createdAt
241
+ }`);
242
+ export const SdkGetDeploymentDocument = new TypedDocumentString(`
243
+ query SdkGetDeployment($id: ID!) {
244
+ deployment(id: $id) {
245
+ ...DeploymentFields
246
+ }
247
+ }
248
+ fragment DeploymentFields on Deployment {
249
+ id
250
+ workspaceID
251
+ kind
252
+ runtime
253
+ alias
254
+ serviceMode
255
+ healthPath
256
+ cronSchedule
257
+ cronPath
258
+ url
259
+ previewUrl
260
+ sshCommand
261
+ aliasHeld
262
+ aliasRevision
263
+ status
264
+ error
265
+ filesCount
266
+ sizeBytes
267
+ size
268
+ spaMode
269
+ gitRepo
270
+ gitCommit
271
+ createdAt
272
+ }`);
273
+ export const SdkPollDeploymentDocument = new TypedDocumentString(`
274
+ query SdkPollDeployment($id: ID!) {
275
+ deployment(id: $id) {
276
+ id
277
+ status
278
+ error
279
+ aliasHeld
280
+ url
281
+ previewUrl
282
+ }
283
+ }
284
+ `);
285
+ export const SdkGetDeploymentByAliasDocument = new TypedDocumentString(`
286
+ query SdkGetDeploymentByAlias($alias: String!) {
287
+ deploymentByAlias(alias: $alias) {
288
+ ...DeploymentFields
289
+ }
290
+ }
291
+ fragment DeploymentFields on Deployment {
292
+ id
293
+ workspaceID
294
+ kind
295
+ runtime
296
+ alias
297
+ serviceMode
298
+ healthPath
299
+ cronSchedule
300
+ cronPath
301
+ url
302
+ previewUrl
303
+ sshCommand
304
+ aliasHeld
305
+ aliasRevision
306
+ status
307
+ error
308
+ filesCount
309
+ sizeBytes
310
+ size
311
+ spaMode
312
+ gitRepo
313
+ gitCommit
314
+ createdAt
315
+ }`);
316
+ export const SdkListDeploymentsDocument = new TypedDocumentString(`
317
+ query SdkListDeployments($input: ListDeploymentsInput) {
318
+ deploymentsPage(input: $input) {
319
+ items {
320
+ ...DeploymentFields
321
+ }
322
+ total
323
+ limit
324
+ offset
325
+ hasMore
326
+ nextOffset
327
+ }
328
+ }
329
+ fragment DeploymentFields on Deployment {
330
+ id
331
+ workspaceID
332
+ kind
333
+ runtime
334
+ alias
335
+ serviceMode
336
+ healthPath
337
+ cronSchedule
338
+ cronPath
339
+ url
340
+ previewUrl
341
+ sshCommand
342
+ aliasHeld
343
+ aliasRevision
344
+ status
345
+ error
346
+ filesCount
347
+ sizeBytes
348
+ size
349
+ spaMode
350
+ gitRepo
351
+ gitCommit
352
+ createdAt
353
+ }`);
354
+ export const SdkListReleasesDocument = new TypedDocumentString(`
355
+ query SdkListReleases($alias: String!) {
356
+ deploymentReleases(alias: $alias) {
357
+ ...DeploymentFields
358
+ }
359
+ }
360
+ fragment DeploymentFields on Deployment {
361
+ id
362
+ workspaceID
363
+ kind
364
+ runtime
365
+ alias
366
+ serviceMode
367
+ healthPath
368
+ cronSchedule
369
+ cronPath
370
+ url
371
+ previewUrl
372
+ sshCommand
373
+ aliasHeld
374
+ aliasRevision
375
+ status
376
+ error
377
+ filesCount
378
+ sizeBytes
379
+ size
380
+ spaMode
381
+ gitRepo
382
+ gitCommit
383
+ createdAt
384
+ }`);
385
+ export const SdkRollbackDocument = new TypedDocumentString(`
386
+ mutation SdkRollback($deploymentID: ID!, $expectedCurrentDeploymentID: ID!, $expectedCurrentAliasRevision: String!) {
387
+ rollbackDeployment(
388
+ input: {deploymentID: $deploymentID, expectedCurrentDeploymentID: $expectedCurrentDeploymentID, expectedCurrentAliasRevision: $expectedCurrentAliasRevision}
389
+ ) {
390
+ ...DeploymentFields
391
+ }
392
+ }
393
+ fragment DeploymentFields on Deployment {
394
+ id
395
+ workspaceID
396
+ kind
397
+ runtime
398
+ alias
399
+ serviceMode
400
+ healthPath
401
+ cronSchedule
402
+ cronPath
403
+ url
404
+ previewUrl
405
+ sshCommand
406
+ aliasHeld
407
+ aliasRevision
408
+ status
409
+ error
410
+ filesCount
411
+ sizeBytes
412
+ size
413
+ spaMode
414
+ gitRepo
415
+ gitCommit
416
+ createdAt
417
+ }`);
418
+ export const SdkServiceStatusDocument = new TypedDocumentString(`
419
+ query SdkServiceStatus($deploymentID: ID!) {
420
+ serviceStatus(deploymentID: $deploymentID) {
421
+ deploymentID
422
+ alias
423
+ serviceMode
424
+ running
425
+ health
426
+ vmID
427
+ inFlight
428
+ alwaysOn
429
+ memSizeMiB
430
+ startedAt
431
+ lastUsedAt
432
+ lastStoppedAt
433
+ restartCount
434
+ lastError
435
+ }
436
+ }
437
+ `);
438
+ export const SdkServiceLogsDocument = new TypedDocumentString(`
439
+ query SdkServiceLogs($deploymentID: ID!, $tailBytes: Int) {
440
+ serviceLogs(deploymentID: $deploymentID, tailBytes: $tailBytes) {
441
+ deploymentID
442
+ stdout
443
+ stderr
444
+ truncated
445
+ stdoutBytes
446
+ stderrBytes
447
+ tailBytes
448
+ }
449
+ }
450
+ `);
451
+ export const SdkDeploymentEventsDocument = new TypedDocumentString(`
452
+ query SdkDeploymentEvents($deploymentID: ID!, $limit: Int) {
453
+ deploymentEvents(deploymentID: $deploymentID, limit: $limit) {
454
+ id
455
+ deploymentID
456
+ type
457
+ rawType
458
+ severity
459
+ message
460
+ vmID
461
+ createdAt
462
+ }
463
+ }
464
+ `);
465
+ export const SdkRestartServiceDocument = new TypedDocumentString(`
466
+ mutation SdkRestartService($deploymentID: ID!) {
467
+ restartService(input: {deploymentID: $deploymentID}) {
468
+ deploymentID
469
+ running
470
+ health
471
+ vmID
472
+ restartCount
473
+ lastError
474
+ }
475
+ }
476
+ `);
477
+ export const SdkStopServiceDocument = new TypedDocumentString(`
478
+ mutation SdkStopService($deploymentID: ID!) {
479
+ stopService(input: {deploymentID: $deploymentID}) {
480
+ deploymentID
481
+ running
482
+ health
483
+ vmID
484
+ restartCount
485
+ lastError
486
+ }
487
+ }
488
+ `);
489
+ export const SdkDeleteDeploymentDocument = new TypedDocumentString(`
490
+ mutation SdkDeleteDeployment($deploymentID: ID!) {
491
+ deleteDeployment(input: {deploymentID: $deploymentID}) {
492
+ ok
493
+ }
494
+ }
495
+ `);
496
+ export const SdkSetWorkspaceEnvDocument = new TypedDocumentString(`
497
+ mutation SdkSetWorkspaceEnv($workspaceID: ID!, $name: String!, $value: String!) {
498
+ setWorkspaceEnv(input: {workspaceID: $workspaceID, name: $name, value: $value}) {
499
+ env {
500
+ name
501
+ value
502
+ secret
503
+ alias
504
+ inherited
505
+ masked
506
+ updatedAt
507
+ }
508
+ }
509
+ }
510
+ `);
511
+ export const SdkSetWorkspaceSecretDocument = new TypedDocumentString(`
512
+ mutation SdkSetWorkspaceSecret($workspaceID: ID!, $name: String!, $value: String!) {
513
+ setWorkspaceSecret(
514
+ input: {workspaceID: $workspaceID, name: $name, value: $value}
515
+ ) {
516
+ env {
517
+ name
518
+ value
519
+ secret
520
+ alias
521
+ inherited
522
+ masked
523
+ updatedAt
524
+ }
525
+ }
526
+ }
527
+ `);
528
+ export const SdkDeleteWorkspaceEnvDocument = new TypedDocumentString(`
529
+ mutation SdkDeleteWorkspaceEnv($workspaceID: ID!, $name: String!) {
530
+ deleteWorkspaceEnv(input: {workspaceID: $workspaceID, name: $name}) {
531
+ ok
532
+ }
533
+ }
534
+ `);
535
+ export const SdkListWorkspaceEnvDocument = new TypedDocumentString(`
536
+ query SdkListWorkspaceEnv($workspaceID: ID!) {
537
+ workspaceEnv(workspaceID: $workspaceID) {
538
+ name
539
+ value
540
+ secret
541
+ alias
542
+ inherited
543
+ masked
544
+ updatedAt
545
+ }
546
+ }
547
+ `);
548
+ export const SdkSetAppEnvDocument = new TypedDocumentString(`
549
+ mutation SdkSetAppEnv($workspaceID: ID!, $alias: String!, $name: String!, $value: String!) {
550
+ setAppEnv(
551
+ input: {workspaceID: $workspaceID, alias: $alias, name: $name, value: $value}
552
+ ) {
553
+ env {
554
+ name
555
+ value
556
+ secret
557
+ alias
558
+ inherited
559
+ masked
560
+ updatedAt
561
+ }
562
+ }
563
+ }
564
+ `);
565
+ export const SdkSetAppSecretDocument = new TypedDocumentString(`
566
+ mutation SdkSetAppSecret($workspaceID: ID!, $alias: String!, $name: String!, $value: String!) {
567
+ setAppSecret(
568
+ input: {workspaceID: $workspaceID, alias: $alias, name: $name, value: $value}
569
+ ) {
570
+ env {
571
+ name
572
+ value
573
+ secret
574
+ alias
575
+ inherited
576
+ masked
577
+ updatedAt
578
+ }
579
+ }
580
+ }
581
+ `);
582
+ export const SdkRemoveAppEnvDocument = new TypedDocumentString(`
583
+ mutation SdkRemoveAppEnv($workspaceID: ID!, $alias: String!, $name: String!) {
584
+ removeAppEnv(input: {workspaceID: $workspaceID, alias: $alias, name: $name}) {
585
+ ok
586
+ }
587
+ }
588
+ `);
589
+ export const SdkInheritAppEnvDocument = new TypedDocumentString(`
590
+ mutation SdkInheritAppEnv($workspaceID: ID!, $alias: String!, $name: String!) {
591
+ inheritAppEnv(input: {workspaceID: $workspaceID, alias: $alias, name: $name}) {
592
+ ok
593
+ }
594
+ }
595
+ `);
596
+ export const SdkListAppEnvDocument = new TypedDocumentString(`
597
+ query SdkListAppEnv($workspaceID: ID!, $alias: String!) {
598
+ appEnv(workspaceID: $workspaceID, alias: $alias) {
599
+ name
600
+ value
601
+ secret
602
+ alias
603
+ inherited
604
+ masked
605
+ updatedAt
606
+ }
607
+ }
608
+ `);
609
+ //# sourceMappingURL=graphql.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"graphql.js","sourceRoot":"","sources":["../../src/generated/graphql.ts"],"names":[],"mappings":"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","sourcesContent":["/* eslint-disable */\n/** Internal type. DO NOT USE DIRECTLY. */\ntype Exact<T extends { [key: string]: unknown }> = { [K in keyof T]: T[K] };\n/** Internal type. DO NOT USE DIRECTLY. */\nexport type Incremental<T> = T | { [P in keyof T]?: P extends ' $fragmentName' | '__typename' ? T[P] : never };\n/**\n * Inlined from @graphql-typed-document-node/core by scripts/postcodegen.ts so\n * this package ships with zero dependencies, type-only ones included.\n * Structurally identical to the upstream interface.\n */\ninterface DocumentTypeDecoration<TResult, TVariables> {\n __apiType?: (variables: TVariables) => TResult;\n}\n/** A box's requested VM size. Omitted fields use the platform default. */\nexport type BoxResourcesInput = {\n /** Persistent disk in GiB (default 8, max 64). Applies only when the disk is first created; an existing disk keeps its size. */\n diskGiB?: number | null | undefined;\n /** RAM in MiB (default 2048, min 512, max 16384). */\n memMiB?: number | null | undefined;\n /** vCPU count (default 2, max 8). */\n vcpus?: number | null | undefined;\n};\n\n/**\n * Creates a deployment from the workspace's current files. The build is driven by\n * an optional root unfazed.json: STATIC serves the files as-is unless unfazed.json\n * sets build (a command run in the build VM) + output (publish dir, default \"dist\"\n * when build is set; output with no build republishes a committed dir like dist/ as\n * is); SERVICE bundles server.ts by default, or the entry set in unfazed.json.\n * install defaults to \"bun install\" (--frozen-lockfile when a bun lockfile exists).\n */\nexport type CreateDeploymentInput = {\n alias?: string | null | undefined;\n /** BOX only: optional VM size. Omit for the platform defaults. */\n boxResources?: BoxResourcesInput | null | undefined;\n /** Absolute HTTP path the cron tick POSTs to; defaults to /cron when cronSchedule is set. */\n cronPath?: string | null | undefined;\n /**\n * Standard 5-field cron spec (minute hour day-of-month month day-of-week). When\n * set, the platform wakes the SERVICE on each tick with a POST to cronPath\n * (default /cron) carrying header X-Unfz-Trigger: cron and a signed\n * X-Unfz-Cron-Token equal to the service's UNFZ_STATE_TOKEN.\n */\n cronSchedule?: string | null | undefined;\n healthPath?: string | null | undefined;\n /** STATIC (serve files) or SERVICE (run an HTTP server). Classify it yourself: SERVICE if the workspace has server.ts, a go.mod+main.go, or an unfazed.json entry, else STATIC. */\n kind: DeploymentKind;\n /** SERVICE runtime. Omit to auto-detect (a go.mod+main.go is GO, otherwise BUN). Ignored for STATIC. */\n runtime?: ServiceRuntime | null | undefined;\n /** SERVICE only. Omit for ON_DEMAND (the default — sleeps and cold-starts on first request, right for most services). Set ALWAYS_ON only to keep the VM warm. */\n serviceMode?: ServiceMode | null | undefined;\n /** STATIC only: when true, missing paths serve index.html (single-page apps). Ignored for SERVICE. */\n spaMode?: boolean | null | undefined;\n workspaceID: string | number;\n};\n\nexport type CurrentActorKind =\n /** An automated caller using a self-registered bearer token. Subject to free-tier usage/resource limits; a user can claim it to link it to their account. */\n | 'AGENT'\n /** The operator of this Unfazed instance, authenticated with the owner token. Full access, no free-tier limits. */\n | 'OWNER'\n /** A human signed in via GitHub OAuth, who manages their linked agents and apps. */\n | 'USER';\n\nexport type DeployWorkspaceInput = {\n /** Optional public alias; defaults to the workspace's git deploy alias when it was imported. */\n alias?: string | null | undefined;\n /** SERVICE only; defaults to the git source's mode, otherwise ON_DEMAND. */\n serviceMode?: ServiceMode | null | undefined;\n /** STATIC only; overrides the detected SPA fallback. */\n spaMode?: boolean | null | undefined;\n workspaceID: string | number;\n};\n\nexport type DeploymentEventSeverity =\n | 'ERROR'\n | 'INFO'\n | 'WARN';\n\nexport type DeploymentEventType =\n | 'DEPLOYMENT_CREATED'\n | 'DEPLOYMENT_PROMOTION_REJECTED'\n | 'DEPLOYMENT_ROLLED_BACK'\n | 'SERVICE_BOOT_FAILED'\n | 'SERVICE_BUILD_FAILED'\n | 'SERVICE_BUILD_SUCCEEDED'\n | 'SERVICE_CRON_TRIGGERED'\n | 'SERVICE_HEALTH_PROBE_FAILED'\n | 'SERVICE_PROXY_ERROR'\n | 'SERVICE_RESTART_REQUESTED'\n | 'SERVICE_STOP_REQUESTED'\n | 'SERVICE_SUPERVISOR_STARTED'\n | 'SERVICE_SUPERVISOR_STOPPED'\n | 'SERVICE_VM_STARTED'\n | 'SERVICE_VM_START_FAILED'\n | 'SERVICE_VM_STOPPED'\n | 'SERVICE_WATCHDOG_PROBE_FAILED'\n | 'SERVICE_WATCHDOG_RESTART'\n | 'UNKNOWN';\n\nexport type DeploymentKind =\n /** A persistent always-on Linux VM with a per-workspace data disk (docs/agent-box.md). */\n | 'BOX'\n | 'SERVICE'\n | 'STATIC';\n\nexport type DeploymentStatus =\n | 'BUILDING'\n | 'FAILED'\n | 'READY';\n\nexport type ListDeploymentsInput = {\n alias?: string | null | undefined;\n kind?: DeploymentKind | null | undefined;\n limit?: number | null | undefined;\n offset?: number | null | undefined;\n order?: string | null | undefined;\n workspaceID?: string | number | null | undefined;\n};\n\nexport type ListWorkspaceFilesInput = {\n limit?: number | null | undefined;\n offset?: number | null | undefined;\n order?: string | null | undefined;\n workspaceID: string | number;\n};\n\nexport type ReadWorkspaceFileInput = {\n limit?: number | null | undefined;\n offset?: number | null | undefined;\n path: string;\n workspaceID: string | number;\n};\n\nexport type ServiceMode =\n /** Keeps a supervised VM running 24/7 (resource-expensive). Reserve for services that must stay warm (low first-request latency), do background work between requests, or run a frequent cron. */\n | 'ALWAYS_ON'\n /** Default. Sleeps and cold-starts a VM on the first request, then parks it after a short idle period — cheap and right for most services. Use on_demand + cronSchedule for periodic work. */\n | 'ON_DEMAND';\n\nexport type ServiceRuntime =\n /** Default. Bundles a TypeScript/JavaScript entry (server.ts) into a Bun HTTP server. */\n | 'BUN'\n /** Compiles a Go module (go.mod) into a static binary that starts its own HTTP server on $PORT. */\n | 'GO';\n\nexport type DeploymentFieldsFragment = { id: string, workspaceID: string, kind: DeploymentKind, runtime: ServiceRuntime | null, alias: string | null, serviceMode: ServiceMode, healthPath: string | null, cronSchedule: string | null, cronPath: string | null, url: string, previewUrl: string, sshCommand: string | null, aliasHeld: boolean, aliasRevision: string, status: DeploymentStatus, error: string | null, filesCount: number, sizeBytes: number, size: string, spaMode: boolean, gitRepo: string | null, gitCommit: string | null, createdAt: string };\n\nexport type SdkWhoamiQueryVariables = Exact<{ [key: string]: never; }>;\n\n\nexport type SdkWhoamiQuery = { whoami: { kind: CurrentActorKind, userID: string, name: string, agentID: string | null, agentName: string | null, claimed: boolean, claimedBy: string | null, scopes: Array<string>, expiresAt: string | null, usage: { month: string, requests: number, limit: number } | null, resources: { workspaces: number, workspaceLimit: number, services: number, serviceLimit: number } | null } };\n\nexport type SdkCreateWorkspaceMutationVariables = Exact<{\n name: string;\n}>;\n\n\nexport type SdkCreateWorkspaceMutation = { createWorkspace: { workspace: { id: string, name: string, ownerId: string, projectId: string | null, createdAt: string, updatedAt: string } } };\n\nexport type SdkListWorkspacesQueryVariables = Exact<{ [key: string]: never; }>;\n\n\nexport type SdkListWorkspacesQuery = { workspaces: Array<{ id: string, name: string, ownerId: string, projectId: string | null, createdAt: string, updatedAt: string }> };\n\nexport type SdkDeleteWorkspaceMutationVariables = Exact<{\n workspaceID: string | number;\n withDeployments?: boolean | null | undefined;\n}>;\n\n\nexport type SdkDeleteWorkspaceMutation = { deleteWorkspace: { ok: boolean } };\n\nexport type SdkWriteTextFileMutationVariables = Exact<{\n workspaceID: string | number;\n path: string;\n text: string;\n}>;\n\n\nexport type SdkWriteTextFileMutation = { writeWorkspaceTextFile: { file: { path: string, sizeBytes: number, size: string, sha256: string, updatedAt: string } } };\n\nexport type SdkWriteBase64FileMutationVariables = Exact<{\n workspaceID: string | number;\n path: string;\n contentBase64: string;\n}>;\n\n\nexport type SdkWriteBase64FileMutation = { writeWorkspaceBase64File: { file: { path: string, sizeBytes: number, size: string, sha256: string, updatedAt: string } } };\n\nexport type SdkListFilesQueryVariables = Exact<{\n input: ListWorkspaceFilesInput;\n}>;\n\n\nexport type SdkListFilesQuery = { workspaceFilesPage: { total: number, limit: number, offset: number, hasMore: boolean, nextOffset: number | null, items: Array<{ path: string, sizeBytes: number, size: string, sha256: string, updatedAt: string }> } };\n\nexport type SdkReadFileQueryVariables = Exact<{\n input: ReadWorkspaceFileInput;\n}>;\n\n\nexport type SdkReadFileQuery = { readWorkspaceFile: { text: string, offset: number, limit: number, totalBytes: number, truncated: boolean, nextOffset: number | null, file: { path: string, sizeBytes: number, size: string, sha256: string, updatedAt: string } } | null };\n\nexport type SdkDeleteFileMutationVariables = Exact<{\n workspaceID: string | number;\n path: string;\n}>;\n\n\nexport type SdkDeleteFileMutation = { deleteWorkspaceFile: { ok: boolean } };\n\nexport type SdkCreateDeploymentMutationVariables = Exact<{\n input: CreateDeploymentInput;\n}>;\n\n\nexport type SdkCreateDeploymentMutation = { createDeployment: { deployment: { id: string, workspaceID: string, kind: DeploymentKind, runtime: ServiceRuntime | null, alias: string | null, serviceMode: ServiceMode, healthPath: string | null, cronSchedule: string | null, cronPath: string | null, url: string, previewUrl: string, sshCommand: string | null, aliasHeld: boolean, aliasRevision: string, status: DeploymentStatus, error: string | null, filesCount: number, sizeBytes: number, size: string, spaMode: boolean, gitRepo: string | null, gitCommit: string | null, createdAt: string } } };\n\nexport type SdkDeployWorkspaceMutationVariables = Exact<{\n input: DeployWorkspaceInput;\n}>;\n\n\nexport type SdkDeployWorkspaceMutation = { deployWorkspace: { deployment: { id: string, workspaceID: string, kind: DeploymentKind, runtime: ServiceRuntime | null, alias: string | null, serviceMode: ServiceMode, healthPath: string | null, cronSchedule: string | null, cronPath: string | null, url: string, previewUrl: string, sshCommand: string | null, aliasHeld: boolean, aliasRevision: string, status: DeploymentStatus, error: string | null, filesCount: number, sizeBytes: number, size: string, spaMode: boolean, gitRepo: string | null, gitCommit: string | null, createdAt: string } } };\n\nexport type SdkGetDeploymentQueryVariables = Exact<{\n id: string | number;\n}>;\n\n\nexport type SdkGetDeploymentQuery = { deployment: { id: string, workspaceID: string, kind: DeploymentKind, runtime: ServiceRuntime | null, alias: string | null, serviceMode: ServiceMode, healthPath: string | null, cronSchedule: string | null, cronPath: string | null, url: string, previewUrl: string, sshCommand: string | null, aliasHeld: boolean, aliasRevision: string, status: DeploymentStatus, error: string | null, filesCount: number, sizeBytes: number, size: string, spaMode: boolean, gitRepo: string | null, gitCommit: string | null, createdAt: string } | null };\n\nexport type SdkPollDeploymentQueryVariables = Exact<{\n id: string | number;\n}>;\n\n\nexport type SdkPollDeploymentQuery = { deployment: { id: string, status: DeploymentStatus, error: string | null, aliasHeld: boolean, url: string, previewUrl: string } | null };\n\nexport type SdkGetDeploymentByAliasQueryVariables = Exact<{\n alias: string;\n}>;\n\n\nexport type SdkGetDeploymentByAliasQuery = { deploymentByAlias: { id: string, workspaceID: string, kind: DeploymentKind, runtime: ServiceRuntime | null, alias: string | null, serviceMode: ServiceMode, healthPath: string | null, cronSchedule: string | null, cronPath: string | null, url: string, previewUrl: string, sshCommand: string | null, aliasHeld: boolean, aliasRevision: string, status: DeploymentStatus, error: string | null, filesCount: number, sizeBytes: number, size: string, spaMode: boolean, gitRepo: string | null, gitCommit: string | null, createdAt: string } | null };\n\nexport type SdkListDeploymentsQueryVariables = Exact<{\n input?: ListDeploymentsInput | null | undefined;\n}>;\n\n\nexport type SdkListDeploymentsQuery = { deploymentsPage: { total: number, limit: number, offset: number, hasMore: boolean, nextOffset: number | null, items: Array<{ id: string, workspaceID: string, kind: DeploymentKind, runtime: ServiceRuntime | null, alias: string | null, serviceMode: ServiceMode, healthPath: string | null, cronSchedule: string | null, cronPath: string | null, url: string, previewUrl: string, sshCommand: string | null, aliasHeld: boolean, aliasRevision: string, status: DeploymentStatus, error: string | null, filesCount: number, sizeBytes: number, size: string, spaMode: boolean, gitRepo: string | null, gitCommit: string | null, createdAt: string }> } };\n\nexport type SdkListReleasesQueryVariables = Exact<{\n alias: string;\n}>;\n\n\nexport type SdkListReleasesQuery = { deploymentReleases: Array<{ id: string, workspaceID: string, kind: DeploymentKind, runtime: ServiceRuntime | null, alias: string | null, serviceMode: ServiceMode, healthPath: string | null, cronSchedule: string | null, cronPath: string | null, url: string, previewUrl: string, sshCommand: string | null, aliasHeld: boolean, aliasRevision: string, status: DeploymentStatus, error: string | null, filesCount: number, sizeBytes: number, size: string, spaMode: boolean, gitRepo: string | null, gitCommit: string | null, createdAt: string }> };\n\nexport type SdkRollbackMutationVariables = Exact<{\n deploymentID: string | number;\n expectedCurrentDeploymentID: string | number;\n expectedCurrentAliasRevision: string;\n}>;\n\n\nexport type SdkRollbackMutation = { rollbackDeployment: { id: string, workspaceID: string, kind: DeploymentKind, runtime: ServiceRuntime | null, alias: string | null, serviceMode: ServiceMode, healthPath: string | null, cronSchedule: string | null, cronPath: string | null, url: string, previewUrl: string, sshCommand: string | null, aliasHeld: boolean, aliasRevision: string, status: DeploymentStatus, error: string | null, filesCount: number, sizeBytes: number, size: string, spaMode: boolean, gitRepo: string | null, gitCommit: string | null, createdAt: string } };\n\nexport type SdkServiceStatusQueryVariables = Exact<{\n deploymentID: string | number;\n}>;\n\n\nexport type SdkServiceStatusQuery = { serviceStatus: { deploymentID: string, alias: string | null, serviceMode: ServiceMode, running: boolean, health: string, vmID: string | null, inFlight: number, alwaysOn: boolean, memSizeMiB: number, startedAt: string | null, lastUsedAt: string | null, lastStoppedAt: string | null, restartCount: number, lastError: string | null } };\n\nexport type SdkServiceLogsQueryVariables = Exact<{\n deploymentID: string | number;\n tailBytes?: number | null | undefined;\n}>;\n\n\nexport type SdkServiceLogsQuery = { serviceLogs: { deploymentID: string, stdout: string, stderr: string, truncated: boolean, stdoutBytes: number, stderrBytes: number, tailBytes: number } };\n\nexport type SdkDeploymentEventsQueryVariables = Exact<{\n deploymentID: string | number;\n limit?: number | null | undefined;\n}>;\n\n\nexport type SdkDeploymentEventsQuery = { deploymentEvents: Array<{ id: string, deploymentID: string, type: DeploymentEventType, rawType: string, severity: DeploymentEventSeverity, message: string, vmID: string | null, createdAt: string }> };\n\nexport type SdkRestartServiceMutationVariables = Exact<{\n deploymentID: string | number;\n}>;\n\n\nexport type SdkRestartServiceMutation = { restartService: { deploymentID: string, running: boolean, health: string, vmID: string | null, restartCount: number, lastError: string | null } };\n\nexport type SdkStopServiceMutationVariables = Exact<{\n deploymentID: string | number;\n}>;\n\n\nexport type SdkStopServiceMutation = { stopService: { deploymentID: string, running: boolean, health: string, vmID: string | null, restartCount: number, lastError: string | null } };\n\nexport type SdkDeleteDeploymentMutationVariables = Exact<{\n deploymentID: string | number;\n}>;\n\n\nexport type SdkDeleteDeploymentMutation = { deleteDeployment: { ok: boolean } };\n\nexport type SdkSetWorkspaceEnvMutationVariables = Exact<{\n workspaceID: string | number;\n name: string;\n value: string;\n}>;\n\n\nexport type SdkSetWorkspaceEnvMutation = { setWorkspaceEnv: { env: { name: string, value: string | null, secret: boolean, alias: string | null, inherited: boolean, masked: boolean, updatedAt: string } } };\n\nexport type SdkSetWorkspaceSecretMutationVariables = Exact<{\n workspaceID: string | number;\n name: string;\n value: string;\n}>;\n\n\nexport type SdkSetWorkspaceSecretMutation = { setWorkspaceSecret: { env: { name: string, value: string | null, secret: boolean, alias: string | null, inherited: boolean, masked: boolean, updatedAt: string } } };\n\nexport type SdkDeleteWorkspaceEnvMutationVariables = Exact<{\n workspaceID: string | number;\n name: string;\n}>;\n\n\nexport type SdkDeleteWorkspaceEnvMutation = { deleteWorkspaceEnv: { ok: boolean } };\n\nexport type SdkListWorkspaceEnvQueryVariables = Exact<{\n workspaceID: string | number;\n}>;\n\n\nexport type SdkListWorkspaceEnvQuery = { workspaceEnv: Array<{ name: string, value: string | null, secret: boolean, alias: string | null, inherited: boolean, masked: boolean, updatedAt: string }> };\n\nexport type SdkSetAppEnvMutationVariables = Exact<{\n workspaceID: string | number;\n alias: string;\n name: string;\n value: string;\n}>;\n\n\nexport type SdkSetAppEnvMutation = { setAppEnv: { env: { name: string, value: string | null, secret: boolean, alias: string | null, inherited: boolean, masked: boolean, updatedAt: string } } };\n\nexport type SdkSetAppSecretMutationVariables = Exact<{\n workspaceID: string | number;\n alias: string;\n name: string;\n value: string;\n}>;\n\n\nexport type SdkSetAppSecretMutation = { setAppSecret: { env: { name: string, value: string | null, secret: boolean, alias: string | null, inherited: boolean, masked: boolean, updatedAt: string } } };\n\nexport type SdkRemoveAppEnvMutationVariables = Exact<{\n workspaceID: string | number;\n alias: string;\n name: string;\n}>;\n\n\nexport type SdkRemoveAppEnvMutation = { removeAppEnv: { ok: boolean } };\n\nexport type SdkInheritAppEnvMutationVariables = Exact<{\n workspaceID: string | number;\n alias: string;\n name: string;\n}>;\n\n\nexport type SdkInheritAppEnvMutation = { inheritAppEnv: { ok: boolean } };\n\nexport type SdkListAppEnvQueryVariables = Exact<{\n workspaceID: string | number;\n alias: string;\n}>;\n\n\nexport type SdkListAppEnvQuery = { appEnv: Array<{ name: string, value: string | null, secret: boolean, alias: string | null, inherited: boolean, masked: boolean, updatedAt: string }> };\n\nexport class TypedDocumentString<TResult, TVariables>\n extends String\n implements DocumentTypeDecoration<TResult, TVariables>\n{\n __apiType?: NonNullable<DocumentTypeDecoration<TResult, TVariables>['__apiType']>;\n private value: string;\n public __meta__?: Record<string, any> | undefined;\n\n constructor(value: string, __meta__?: Record<string, any> | undefined) {\n super(value);\n this.value = value;\n this.__meta__ = __meta__;\n }\n\n override toString(): string & DocumentTypeDecoration<TResult, TVariables> {\n return this.value;\n }\n}\nexport const DeploymentFieldsFragmentDoc = new TypedDocumentString(`\n fragment DeploymentFields on Deployment {\n id\n workspaceID\n kind\n runtime\n alias\n serviceMode\n healthPath\n cronSchedule\n cronPath\n url\n previewUrl\n sshCommand\n aliasHeld\n aliasRevision\n status\n error\n filesCount\n sizeBytes\n size\n spaMode\n gitRepo\n gitCommit\n createdAt\n}\n `, {\"fragmentName\":\"DeploymentFields\"}) as unknown as TypedDocumentString<DeploymentFieldsFragment, unknown>;\nexport const SdkWhoamiDocument = new TypedDocumentString(`\n query SdkWhoami {\n whoami {\n kind\n userID\n name\n agentID\n agentName\n claimed\n claimedBy\n scopes\n expiresAt\n usage {\n month\n requests\n limit\n }\n resources {\n workspaces\n workspaceLimit\n services\n serviceLimit\n }\n }\n}\n `) as unknown as TypedDocumentString<SdkWhoamiQuery, SdkWhoamiQueryVariables>;\nexport const SdkCreateWorkspaceDocument = new TypedDocumentString(`\n mutation SdkCreateWorkspace($name: String!) {\n createWorkspace(input: {name: $name}) {\n workspace {\n id\n name\n ownerId\n projectId\n createdAt\n updatedAt\n }\n }\n}\n `) as unknown as TypedDocumentString<SdkCreateWorkspaceMutation, SdkCreateWorkspaceMutationVariables>;\nexport const SdkListWorkspacesDocument = new TypedDocumentString(`\n query SdkListWorkspaces {\n workspaces {\n id\n name\n ownerId\n projectId\n createdAt\n updatedAt\n }\n}\n `) as unknown as TypedDocumentString<SdkListWorkspacesQuery, SdkListWorkspacesQueryVariables>;\nexport const SdkDeleteWorkspaceDocument = new TypedDocumentString(`\n mutation SdkDeleteWorkspace($workspaceID: ID!, $withDeployments: Boolean) {\n deleteWorkspace(\n input: {workspaceID: $workspaceID, withDeployments: $withDeployments}\n ) {\n ok\n }\n}\n `) as unknown as TypedDocumentString<SdkDeleteWorkspaceMutation, SdkDeleteWorkspaceMutationVariables>;\nexport const SdkWriteTextFileDocument = new TypedDocumentString(`\n mutation SdkWriteTextFile($workspaceID: ID!, $path: String!, $text: String!) {\n writeWorkspaceTextFile(\n input: {workspaceID: $workspaceID, path: $path, text: $text}\n ) {\n file {\n path\n sizeBytes\n size\n sha256\n updatedAt\n }\n }\n}\n `) as unknown as TypedDocumentString<SdkWriteTextFileMutation, SdkWriteTextFileMutationVariables>;\nexport const SdkWriteBase64FileDocument = new TypedDocumentString(`\n mutation SdkWriteBase64File($workspaceID: ID!, $path: String!, $contentBase64: String!) {\n writeWorkspaceBase64File(\n input: {workspaceID: $workspaceID, path: $path, contentBase64: $contentBase64}\n ) {\n file {\n path\n sizeBytes\n size\n sha256\n updatedAt\n }\n }\n}\n `) as unknown as TypedDocumentString<SdkWriteBase64FileMutation, SdkWriteBase64FileMutationVariables>;\nexport const SdkListFilesDocument = new TypedDocumentString(`\n query SdkListFiles($input: ListWorkspaceFilesInput!) {\n workspaceFilesPage(input: $input) {\n items {\n path\n sizeBytes\n size\n sha256\n updatedAt\n }\n total\n limit\n offset\n hasMore\n nextOffset\n }\n}\n `) as unknown as TypedDocumentString<SdkListFilesQuery, SdkListFilesQueryVariables>;\nexport const SdkReadFileDocument = new TypedDocumentString(`\n query SdkReadFile($input: ReadWorkspaceFileInput!) {\n readWorkspaceFile(input: $input) {\n text\n offset\n limit\n totalBytes\n truncated\n nextOffset\n file {\n path\n sizeBytes\n size\n sha256\n updatedAt\n }\n }\n}\n `) as unknown as TypedDocumentString<SdkReadFileQuery, SdkReadFileQueryVariables>;\nexport const SdkDeleteFileDocument = new TypedDocumentString(`\n mutation SdkDeleteFile($workspaceID: ID!, $path: String!) {\n deleteWorkspaceFile(input: {workspaceID: $workspaceID, path: $path}) {\n ok\n }\n}\n `) as unknown as TypedDocumentString<SdkDeleteFileMutation, SdkDeleteFileMutationVariables>;\nexport const SdkCreateDeploymentDocument = new TypedDocumentString(`\n mutation SdkCreateDeployment($input: CreateDeploymentInput!) {\n createDeployment(input: $input) {\n deployment {\n ...DeploymentFields\n }\n }\n}\n fragment DeploymentFields on Deployment {\n id\n workspaceID\n kind\n runtime\n alias\n serviceMode\n healthPath\n cronSchedule\n cronPath\n url\n previewUrl\n sshCommand\n aliasHeld\n aliasRevision\n status\n error\n filesCount\n sizeBytes\n size\n spaMode\n gitRepo\n gitCommit\n createdAt\n}`) as unknown as TypedDocumentString<SdkCreateDeploymentMutation, SdkCreateDeploymentMutationVariables>;\nexport const SdkDeployWorkspaceDocument = new TypedDocumentString(`\n mutation SdkDeployWorkspace($input: DeployWorkspaceInput!) {\n deployWorkspace(input: $input) {\n deployment {\n ...DeploymentFields\n }\n }\n}\n fragment DeploymentFields on Deployment {\n id\n workspaceID\n kind\n runtime\n alias\n serviceMode\n healthPath\n cronSchedule\n cronPath\n url\n previewUrl\n sshCommand\n aliasHeld\n aliasRevision\n status\n error\n filesCount\n sizeBytes\n size\n spaMode\n gitRepo\n gitCommit\n createdAt\n}`) as unknown as TypedDocumentString<SdkDeployWorkspaceMutation, SdkDeployWorkspaceMutationVariables>;\nexport const SdkGetDeploymentDocument = new TypedDocumentString(`\n query SdkGetDeployment($id: ID!) {\n deployment(id: $id) {\n ...DeploymentFields\n }\n}\n fragment DeploymentFields on Deployment {\n id\n workspaceID\n kind\n runtime\n alias\n serviceMode\n healthPath\n cronSchedule\n cronPath\n url\n previewUrl\n sshCommand\n aliasHeld\n aliasRevision\n status\n error\n filesCount\n sizeBytes\n size\n spaMode\n gitRepo\n gitCommit\n createdAt\n}`) as unknown as TypedDocumentString<SdkGetDeploymentQuery, SdkGetDeploymentQueryVariables>;\nexport const SdkPollDeploymentDocument = new TypedDocumentString(`\n query SdkPollDeployment($id: ID!) {\n deployment(id: $id) {\n id\n status\n error\n aliasHeld\n url\n previewUrl\n }\n}\n `) as unknown as TypedDocumentString<SdkPollDeploymentQuery, SdkPollDeploymentQueryVariables>;\nexport const SdkGetDeploymentByAliasDocument = new TypedDocumentString(`\n query SdkGetDeploymentByAlias($alias: String!) {\n deploymentByAlias(alias: $alias) {\n ...DeploymentFields\n }\n}\n fragment DeploymentFields on Deployment {\n id\n workspaceID\n kind\n runtime\n alias\n serviceMode\n healthPath\n cronSchedule\n cronPath\n url\n previewUrl\n sshCommand\n aliasHeld\n aliasRevision\n status\n error\n filesCount\n sizeBytes\n size\n spaMode\n gitRepo\n gitCommit\n createdAt\n}`) as unknown as TypedDocumentString<SdkGetDeploymentByAliasQuery, SdkGetDeploymentByAliasQueryVariables>;\nexport const SdkListDeploymentsDocument = new TypedDocumentString(`\n query SdkListDeployments($input: ListDeploymentsInput) {\n deploymentsPage(input: $input) {\n items {\n ...DeploymentFields\n }\n total\n limit\n offset\n hasMore\n nextOffset\n }\n}\n fragment DeploymentFields on Deployment {\n id\n workspaceID\n kind\n runtime\n alias\n serviceMode\n healthPath\n cronSchedule\n cronPath\n url\n previewUrl\n sshCommand\n aliasHeld\n aliasRevision\n status\n error\n filesCount\n sizeBytes\n size\n spaMode\n gitRepo\n gitCommit\n createdAt\n}`) as unknown as TypedDocumentString<SdkListDeploymentsQuery, SdkListDeploymentsQueryVariables>;\nexport const SdkListReleasesDocument = new TypedDocumentString(`\n query SdkListReleases($alias: String!) {\n deploymentReleases(alias: $alias) {\n ...DeploymentFields\n }\n}\n fragment DeploymentFields on Deployment {\n id\n workspaceID\n kind\n runtime\n alias\n serviceMode\n healthPath\n cronSchedule\n cronPath\n url\n previewUrl\n sshCommand\n aliasHeld\n aliasRevision\n status\n error\n filesCount\n sizeBytes\n size\n spaMode\n gitRepo\n gitCommit\n createdAt\n}`) as unknown as TypedDocumentString<SdkListReleasesQuery, SdkListReleasesQueryVariables>;\nexport const SdkRollbackDocument = new TypedDocumentString(`\n mutation SdkRollback($deploymentID: ID!, $expectedCurrentDeploymentID: ID!, $expectedCurrentAliasRevision: String!) {\n rollbackDeployment(\n input: {deploymentID: $deploymentID, expectedCurrentDeploymentID: $expectedCurrentDeploymentID, expectedCurrentAliasRevision: $expectedCurrentAliasRevision}\n ) {\n ...DeploymentFields\n }\n}\n fragment DeploymentFields on Deployment {\n id\n workspaceID\n kind\n runtime\n alias\n serviceMode\n healthPath\n cronSchedule\n cronPath\n url\n previewUrl\n sshCommand\n aliasHeld\n aliasRevision\n status\n error\n filesCount\n sizeBytes\n size\n spaMode\n gitRepo\n gitCommit\n createdAt\n}`) as unknown as TypedDocumentString<SdkRollbackMutation, SdkRollbackMutationVariables>;\nexport const SdkServiceStatusDocument = new TypedDocumentString(`\n query SdkServiceStatus($deploymentID: ID!) {\n serviceStatus(deploymentID: $deploymentID) {\n deploymentID\n alias\n serviceMode\n running\n health\n vmID\n inFlight\n alwaysOn\n memSizeMiB\n startedAt\n lastUsedAt\n lastStoppedAt\n restartCount\n lastError\n }\n}\n `) as unknown as TypedDocumentString<SdkServiceStatusQuery, SdkServiceStatusQueryVariables>;\nexport const SdkServiceLogsDocument = new TypedDocumentString(`\n query SdkServiceLogs($deploymentID: ID!, $tailBytes: Int) {\n serviceLogs(deploymentID: $deploymentID, tailBytes: $tailBytes) {\n deploymentID\n stdout\n stderr\n truncated\n stdoutBytes\n stderrBytes\n tailBytes\n }\n}\n `) as unknown as TypedDocumentString<SdkServiceLogsQuery, SdkServiceLogsQueryVariables>;\nexport const SdkDeploymentEventsDocument = new TypedDocumentString(`\n query SdkDeploymentEvents($deploymentID: ID!, $limit: Int) {\n deploymentEvents(deploymentID: $deploymentID, limit: $limit) {\n id\n deploymentID\n type\n rawType\n severity\n message\n vmID\n createdAt\n }\n}\n `) as unknown as TypedDocumentString<SdkDeploymentEventsQuery, SdkDeploymentEventsQueryVariables>;\nexport const SdkRestartServiceDocument = new TypedDocumentString(`\n mutation SdkRestartService($deploymentID: ID!) {\n restartService(input: {deploymentID: $deploymentID}) {\n deploymentID\n running\n health\n vmID\n restartCount\n lastError\n }\n}\n `) as unknown as TypedDocumentString<SdkRestartServiceMutation, SdkRestartServiceMutationVariables>;\nexport const SdkStopServiceDocument = new TypedDocumentString(`\n mutation SdkStopService($deploymentID: ID!) {\n stopService(input: {deploymentID: $deploymentID}) {\n deploymentID\n running\n health\n vmID\n restartCount\n lastError\n }\n}\n `) as unknown as TypedDocumentString<SdkStopServiceMutation, SdkStopServiceMutationVariables>;\nexport const SdkDeleteDeploymentDocument = new TypedDocumentString(`\n mutation SdkDeleteDeployment($deploymentID: ID!) {\n deleteDeployment(input: {deploymentID: $deploymentID}) {\n ok\n }\n}\n `) as unknown as TypedDocumentString<SdkDeleteDeploymentMutation, SdkDeleteDeploymentMutationVariables>;\nexport const SdkSetWorkspaceEnvDocument = new TypedDocumentString(`\n mutation SdkSetWorkspaceEnv($workspaceID: ID!, $name: String!, $value: String!) {\n setWorkspaceEnv(input: {workspaceID: $workspaceID, name: $name, value: $value}) {\n env {\n name\n value\n secret\n alias\n inherited\n masked\n updatedAt\n }\n }\n}\n `) as unknown as TypedDocumentString<SdkSetWorkspaceEnvMutation, SdkSetWorkspaceEnvMutationVariables>;\nexport const SdkSetWorkspaceSecretDocument = new TypedDocumentString(`\n mutation SdkSetWorkspaceSecret($workspaceID: ID!, $name: String!, $value: String!) {\n setWorkspaceSecret(\n input: {workspaceID: $workspaceID, name: $name, value: $value}\n ) {\n env {\n name\n value\n secret\n alias\n inherited\n masked\n updatedAt\n }\n }\n}\n `) as unknown as TypedDocumentString<SdkSetWorkspaceSecretMutation, SdkSetWorkspaceSecretMutationVariables>;\nexport const SdkDeleteWorkspaceEnvDocument = new TypedDocumentString(`\n mutation SdkDeleteWorkspaceEnv($workspaceID: ID!, $name: String!) {\n deleteWorkspaceEnv(input: {workspaceID: $workspaceID, name: $name}) {\n ok\n }\n}\n `) as unknown as TypedDocumentString<SdkDeleteWorkspaceEnvMutation, SdkDeleteWorkspaceEnvMutationVariables>;\nexport const SdkListWorkspaceEnvDocument = new TypedDocumentString(`\n query SdkListWorkspaceEnv($workspaceID: ID!) {\n workspaceEnv(workspaceID: $workspaceID) {\n name\n value\n secret\n alias\n inherited\n masked\n updatedAt\n }\n}\n `) as unknown as TypedDocumentString<SdkListWorkspaceEnvQuery, SdkListWorkspaceEnvQueryVariables>;\nexport const SdkSetAppEnvDocument = new TypedDocumentString(`\n mutation SdkSetAppEnv($workspaceID: ID!, $alias: String!, $name: String!, $value: String!) {\n setAppEnv(\n input: {workspaceID: $workspaceID, alias: $alias, name: $name, value: $value}\n ) {\n env {\n name\n value\n secret\n alias\n inherited\n masked\n updatedAt\n }\n }\n}\n `) as unknown as TypedDocumentString<SdkSetAppEnvMutation, SdkSetAppEnvMutationVariables>;\nexport const SdkSetAppSecretDocument = new TypedDocumentString(`\n mutation SdkSetAppSecret($workspaceID: ID!, $alias: String!, $name: String!, $value: String!) {\n setAppSecret(\n input: {workspaceID: $workspaceID, alias: $alias, name: $name, value: $value}\n ) {\n env {\n name\n value\n secret\n alias\n inherited\n masked\n updatedAt\n }\n }\n}\n `) as unknown as TypedDocumentString<SdkSetAppSecretMutation, SdkSetAppSecretMutationVariables>;\nexport const SdkRemoveAppEnvDocument = new TypedDocumentString(`\n mutation SdkRemoveAppEnv($workspaceID: ID!, $alias: String!, $name: String!) {\n removeAppEnv(input: {workspaceID: $workspaceID, alias: $alias, name: $name}) {\n ok\n }\n}\n `) as unknown as TypedDocumentString<SdkRemoveAppEnvMutation, SdkRemoveAppEnvMutationVariables>;\nexport const SdkInheritAppEnvDocument = new TypedDocumentString(`\n mutation SdkInheritAppEnv($workspaceID: ID!, $alias: String!, $name: String!) {\n inheritAppEnv(input: {workspaceID: $workspaceID, alias: $alias, name: $name}) {\n ok\n }\n}\n `) as unknown as TypedDocumentString<SdkInheritAppEnvMutation, SdkInheritAppEnvMutationVariables>;\nexport const SdkListAppEnvDocument = new TypedDocumentString(`\n query SdkListAppEnv($workspaceID: ID!, $alias: String!) {\n appEnv(workspaceID: $workspaceID, alias: $alias) {\n name\n value\n secret\n alias\n inherited\n masked\n updatedAt\n }\n}\n `) as unknown as TypedDocumentString<SdkListAppEnvQuery, SdkListAppEnvQueryVariables>;"]}
@@ -0,0 +1 @@
1
+ export * from "./gql.js";
@@ -0,0 +1,2 @@
1
+ export * from "./gql.js";
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/generated/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC","sourcesContent":["export * from \"./gql.js\";"]}