unfazed 0.0.1 → 0.1.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,774 @@
1
+ /** Internal type. DO NOT USE DIRECTLY. */
2
+ type Exact<T extends {
3
+ [key: string]: unknown;
4
+ }> = {
5
+ [K in keyof T]: T[K];
6
+ };
7
+ /** Internal type. DO NOT USE DIRECTLY. */
8
+ export type Incremental<T> = T | {
9
+ [P in keyof T]?: P extends ' $fragmentName' | '__typename' ? T[P] : never;
10
+ };
11
+ /**
12
+ * Inlined from @graphql-typed-document-node/core by scripts/postcodegen.ts so
13
+ * this package ships with zero dependencies, type-only ones included.
14
+ * Structurally identical to the upstream interface.
15
+ */
16
+ interface DocumentTypeDecoration<TResult, TVariables> {
17
+ __apiType?: (variables: TVariables) => TResult;
18
+ }
19
+ /** A box's requested VM size. Omitted fields use the platform default. */
20
+ export type BoxResourcesInput = {
21
+ /** Persistent disk in GiB (default 8, max 64). Applies only when the disk is first created; an existing disk keeps its size. */
22
+ diskGiB?: number | null | undefined;
23
+ /** RAM in MiB (default 2048, min 512, max 16384). */
24
+ memMiB?: number | null | undefined;
25
+ /** vCPU count (default 2, max 8). */
26
+ vcpus?: number | null | undefined;
27
+ };
28
+ /**
29
+ * Creates a deployment from the workspace's current files. The build is driven by
30
+ * an optional root unfazed.json: STATIC serves the files as-is unless unfazed.json
31
+ * sets build (a command run in the build VM) + output (publish dir, default "dist"
32
+ * when build is set; output with no build republishes a committed dir like dist/ as
33
+ * is); SERVICE bundles server.ts by default, or the entry set in unfazed.json.
34
+ * install defaults to "bun install" (--frozen-lockfile when a bun lockfile exists).
35
+ */
36
+ export type CreateDeploymentInput = {
37
+ alias?: string | null | undefined;
38
+ /** BOX only: optional VM size. Omit for the platform defaults. */
39
+ boxResources?: BoxResourcesInput | null | undefined;
40
+ /** Absolute HTTP path the cron tick POSTs to; defaults to /cron when cronSchedule is set. */
41
+ cronPath?: string | null | undefined;
42
+ /**
43
+ * Standard 5-field cron spec (minute hour day-of-month month day-of-week). When
44
+ * set, the platform wakes the SERVICE on each tick with a POST to cronPath
45
+ * (default /cron) carrying header X-Unfz-Trigger: cron and a signed
46
+ * X-Unfz-Cron-Token equal to the service's UNFZ_STATE_TOKEN.
47
+ */
48
+ cronSchedule?: string | null | undefined;
49
+ healthPath?: string | null | undefined;
50
+ /** 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. */
51
+ kind: DeploymentKind;
52
+ /** SERVICE runtime. Omit to auto-detect (a go.mod+main.go is GO, otherwise BUN). Ignored for STATIC. */
53
+ runtime?: ServiceRuntime | null | undefined;
54
+ /** 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. */
55
+ serviceMode?: ServiceMode | null | undefined;
56
+ /** STATIC only: when true, missing paths serve index.html (single-page apps). Ignored for SERVICE. */
57
+ spaMode?: boolean | null | undefined;
58
+ workspaceID: string | number;
59
+ };
60
+ export type CurrentActorKind =
61
+ /** 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. */
62
+ 'AGENT'
63
+ /** The operator of this Unfazed instance, authenticated with the owner token. Full access, no free-tier limits. */
64
+ | 'OWNER'
65
+ /** A human signed in via GitHub OAuth, who manages their linked agents and apps. */
66
+ | 'USER';
67
+ export type DeployWorkspaceInput = {
68
+ /** Optional public alias; defaults to the workspace's git deploy alias when it was imported. */
69
+ alias?: string | null | undefined;
70
+ /** SERVICE only; defaults to the git source's mode, otherwise ON_DEMAND. */
71
+ serviceMode?: ServiceMode | null | undefined;
72
+ /** STATIC only; overrides the detected SPA fallback. */
73
+ spaMode?: boolean | null | undefined;
74
+ workspaceID: string | number;
75
+ };
76
+ export type DeploymentEventSeverity = 'ERROR' | 'INFO' | 'WARN';
77
+ export type DeploymentEventType = 'DEPLOYMENT_CREATED' | 'DEPLOYMENT_PROMOTION_REJECTED' | 'DEPLOYMENT_ROLLED_BACK' | 'SERVICE_BOOT_FAILED' | 'SERVICE_BUILD_FAILED' | 'SERVICE_BUILD_SUCCEEDED' | 'SERVICE_CRON_TRIGGERED' | 'SERVICE_HEALTH_PROBE_FAILED' | 'SERVICE_PROXY_ERROR' | 'SERVICE_RESTART_REQUESTED' | 'SERVICE_STOP_REQUESTED' | 'SERVICE_SUPERVISOR_STARTED' | 'SERVICE_SUPERVISOR_STOPPED' | 'SERVICE_VM_STARTED' | 'SERVICE_VM_START_FAILED' | 'SERVICE_VM_STOPPED' | 'SERVICE_WATCHDOG_PROBE_FAILED' | 'SERVICE_WATCHDOG_RESTART' | 'UNKNOWN';
78
+ export type DeploymentKind =
79
+ /** A persistent always-on Linux VM with a per-workspace data disk (docs/agent-box.md). */
80
+ 'BOX' | 'SERVICE' | 'STATIC';
81
+ export type DeploymentStatus = 'BUILDING' | 'FAILED' | 'READY';
82
+ export type ListDeploymentsInput = {
83
+ alias?: string | null | undefined;
84
+ kind?: DeploymentKind | null | undefined;
85
+ limit?: number | null | undefined;
86
+ offset?: number | null | undefined;
87
+ order?: string | null | undefined;
88
+ workspaceID?: string | number | null | undefined;
89
+ };
90
+ export type ListWorkspaceFilesInput = {
91
+ limit?: number | null | undefined;
92
+ offset?: number | null | undefined;
93
+ order?: string | null | undefined;
94
+ workspaceID: string | number;
95
+ };
96
+ export type ReadWorkspaceFileInput = {
97
+ limit?: number | null | undefined;
98
+ offset?: number | null | undefined;
99
+ path: string;
100
+ workspaceID: string | number;
101
+ };
102
+ export type ServiceMode =
103
+ /** 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. */
104
+ 'ALWAYS_ON'
105
+ /** 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. */
106
+ | 'ON_DEMAND';
107
+ export type ServiceRuntime =
108
+ /** Default. Bundles a TypeScript/JavaScript entry (server.ts) into a Bun HTTP server. */
109
+ 'BUN'
110
+ /** Compiles a Go module (go.mod) into a static binary that starts its own HTTP server on $PORT. */
111
+ | 'GO';
112
+ export type DeploymentFieldsFragment = {
113
+ id: string;
114
+ workspaceID: string;
115
+ kind: DeploymentKind;
116
+ runtime: ServiceRuntime | null;
117
+ alias: string | null;
118
+ serviceMode: ServiceMode;
119
+ healthPath: string | null;
120
+ cronSchedule: string | null;
121
+ cronPath: string | null;
122
+ url: string;
123
+ previewUrl: string;
124
+ sshCommand: string | null;
125
+ aliasHeld: boolean;
126
+ aliasRevision: string;
127
+ status: DeploymentStatus;
128
+ error: string | null;
129
+ filesCount: number;
130
+ sizeBytes: number;
131
+ size: string;
132
+ spaMode: boolean;
133
+ gitRepo: string | null;
134
+ gitCommit: string | null;
135
+ createdAt: string;
136
+ };
137
+ export type SdkWhoamiQueryVariables = Exact<{
138
+ [key: string]: never;
139
+ }>;
140
+ export type SdkWhoamiQuery = {
141
+ whoami: {
142
+ kind: CurrentActorKind;
143
+ userID: string;
144
+ name: string;
145
+ agentID: string | null;
146
+ agentName: string | null;
147
+ claimed: boolean;
148
+ claimedBy: string | null;
149
+ scopes: Array<string>;
150
+ expiresAt: string | null;
151
+ usage: {
152
+ month: string;
153
+ requests: number;
154
+ limit: number;
155
+ } | null;
156
+ resources: {
157
+ workspaces: number;
158
+ workspaceLimit: number;
159
+ services: number;
160
+ serviceLimit: number;
161
+ } | null;
162
+ };
163
+ };
164
+ export type SdkCreateWorkspaceMutationVariables = Exact<{
165
+ name: string;
166
+ }>;
167
+ export type SdkCreateWorkspaceMutation = {
168
+ createWorkspace: {
169
+ workspace: {
170
+ id: string;
171
+ name: string;
172
+ ownerId: string;
173
+ projectId: string | null;
174
+ createdAt: string;
175
+ updatedAt: string;
176
+ };
177
+ };
178
+ };
179
+ export type SdkListWorkspacesQueryVariables = Exact<{
180
+ [key: string]: never;
181
+ }>;
182
+ export type SdkListWorkspacesQuery = {
183
+ workspaces: Array<{
184
+ id: string;
185
+ name: string;
186
+ ownerId: string;
187
+ projectId: string | null;
188
+ createdAt: string;
189
+ updatedAt: string;
190
+ }>;
191
+ };
192
+ export type SdkDeleteWorkspaceMutationVariables = Exact<{
193
+ workspaceID: string | number;
194
+ }>;
195
+ export type SdkDeleteWorkspaceMutation = {
196
+ deleteWorkspace: {
197
+ ok: boolean;
198
+ };
199
+ };
200
+ export type SdkWriteTextFileMutationVariables = Exact<{
201
+ workspaceID: string | number;
202
+ path: string;
203
+ text: string;
204
+ }>;
205
+ export type SdkWriteTextFileMutation = {
206
+ writeWorkspaceTextFile: {
207
+ file: {
208
+ path: string;
209
+ sizeBytes: number;
210
+ size: string;
211
+ sha256: string;
212
+ updatedAt: string;
213
+ };
214
+ };
215
+ };
216
+ export type SdkWriteBase64FileMutationVariables = Exact<{
217
+ workspaceID: string | number;
218
+ path: string;
219
+ contentBase64: string;
220
+ }>;
221
+ export type SdkWriteBase64FileMutation = {
222
+ writeWorkspaceBase64File: {
223
+ file: {
224
+ path: string;
225
+ sizeBytes: number;
226
+ size: string;
227
+ sha256: string;
228
+ updatedAt: string;
229
+ };
230
+ };
231
+ };
232
+ export type SdkListFilesQueryVariables = Exact<{
233
+ input: ListWorkspaceFilesInput;
234
+ }>;
235
+ export type SdkListFilesQuery = {
236
+ workspaceFilesPage: {
237
+ total: number;
238
+ limit: number;
239
+ offset: number;
240
+ hasMore: boolean;
241
+ nextOffset: number | null;
242
+ items: Array<{
243
+ path: string;
244
+ sizeBytes: number;
245
+ size: string;
246
+ sha256: string;
247
+ updatedAt: string;
248
+ }>;
249
+ };
250
+ };
251
+ export type SdkReadFileQueryVariables = Exact<{
252
+ input: ReadWorkspaceFileInput;
253
+ }>;
254
+ export type SdkReadFileQuery = {
255
+ readWorkspaceFile: {
256
+ text: string;
257
+ offset: number;
258
+ limit: number;
259
+ totalBytes: number;
260
+ truncated: boolean;
261
+ nextOffset: number | null;
262
+ file: {
263
+ path: string;
264
+ sizeBytes: number;
265
+ size: string;
266
+ sha256: string;
267
+ updatedAt: string;
268
+ };
269
+ } | null;
270
+ };
271
+ export type SdkDeleteFileMutationVariables = Exact<{
272
+ workspaceID: string | number;
273
+ path: string;
274
+ }>;
275
+ export type SdkDeleteFileMutation = {
276
+ deleteWorkspaceFile: {
277
+ ok: boolean;
278
+ };
279
+ };
280
+ export type SdkCreateDeploymentMutationVariables = Exact<{
281
+ input: CreateDeploymentInput;
282
+ }>;
283
+ export type SdkCreateDeploymentMutation = {
284
+ createDeployment: {
285
+ deployment: {
286
+ id: string;
287
+ workspaceID: string;
288
+ kind: DeploymentKind;
289
+ runtime: ServiceRuntime | null;
290
+ alias: string | null;
291
+ serviceMode: ServiceMode;
292
+ healthPath: string | null;
293
+ cronSchedule: string | null;
294
+ cronPath: string | null;
295
+ url: string;
296
+ previewUrl: string;
297
+ sshCommand: string | null;
298
+ aliasHeld: boolean;
299
+ aliasRevision: string;
300
+ status: DeploymentStatus;
301
+ error: string | null;
302
+ filesCount: number;
303
+ sizeBytes: number;
304
+ size: string;
305
+ spaMode: boolean;
306
+ gitRepo: string | null;
307
+ gitCommit: string | null;
308
+ createdAt: string;
309
+ };
310
+ };
311
+ };
312
+ export type SdkDeployWorkspaceMutationVariables = Exact<{
313
+ input: DeployWorkspaceInput;
314
+ }>;
315
+ export type SdkDeployWorkspaceMutation = {
316
+ deployWorkspace: {
317
+ deployment: {
318
+ id: string;
319
+ workspaceID: string;
320
+ kind: DeploymentKind;
321
+ runtime: ServiceRuntime | null;
322
+ alias: string | null;
323
+ serviceMode: ServiceMode;
324
+ healthPath: string | null;
325
+ cronSchedule: string | null;
326
+ cronPath: string | null;
327
+ url: string;
328
+ previewUrl: string;
329
+ sshCommand: string | null;
330
+ aliasHeld: boolean;
331
+ aliasRevision: string;
332
+ status: DeploymentStatus;
333
+ error: string | null;
334
+ filesCount: number;
335
+ sizeBytes: number;
336
+ size: string;
337
+ spaMode: boolean;
338
+ gitRepo: string | null;
339
+ gitCommit: string | null;
340
+ createdAt: string;
341
+ };
342
+ };
343
+ };
344
+ export type SdkGetDeploymentQueryVariables = Exact<{
345
+ id: string | number;
346
+ }>;
347
+ export type SdkGetDeploymentQuery = {
348
+ deployment: {
349
+ id: string;
350
+ workspaceID: string;
351
+ kind: DeploymentKind;
352
+ runtime: ServiceRuntime | null;
353
+ alias: string | null;
354
+ serviceMode: ServiceMode;
355
+ healthPath: string | null;
356
+ cronSchedule: string | null;
357
+ cronPath: string | null;
358
+ url: string;
359
+ previewUrl: string;
360
+ sshCommand: string | null;
361
+ aliasHeld: boolean;
362
+ aliasRevision: string;
363
+ status: DeploymentStatus;
364
+ error: string | null;
365
+ filesCount: number;
366
+ sizeBytes: number;
367
+ size: string;
368
+ spaMode: boolean;
369
+ gitRepo: string | null;
370
+ gitCommit: string | null;
371
+ createdAt: string;
372
+ } | null;
373
+ };
374
+ export type SdkPollDeploymentQueryVariables = Exact<{
375
+ id: string | number;
376
+ }>;
377
+ export type SdkPollDeploymentQuery = {
378
+ deployment: {
379
+ id: string;
380
+ status: DeploymentStatus;
381
+ error: string | null;
382
+ aliasHeld: boolean;
383
+ url: string;
384
+ previewUrl: string;
385
+ } | null;
386
+ };
387
+ export type SdkGetDeploymentByAliasQueryVariables = Exact<{
388
+ alias: string;
389
+ }>;
390
+ export type SdkGetDeploymentByAliasQuery = {
391
+ deploymentByAlias: {
392
+ id: string;
393
+ workspaceID: string;
394
+ kind: DeploymentKind;
395
+ runtime: ServiceRuntime | null;
396
+ alias: string | null;
397
+ serviceMode: ServiceMode;
398
+ healthPath: string | null;
399
+ cronSchedule: string | null;
400
+ cronPath: string | null;
401
+ url: string;
402
+ previewUrl: string;
403
+ sshCommand: string | null;
404
+ aliasHeld: boolean;
405
+ aliasRevision: string;
406
+ status: DeploymentStatus;
407
+ error: string | null;
408
+ filesCount: number;
409
+ sizeBytes: number;
410
+ size: string;
411
+ spaMode: boolean;
412
+ gitRepo: string | null;
413
+ gitCommit: string | null;
414
+ createdAt: string;
415
+ } | null;
416
+ };
417
+ export type SdkListDeploymentsQueryVariables = Exact<{
418
+ input?: ListDeploymentsInput | null | undefined;
419
+ }>;
420
+ export type SdkListDeploymentsQuery = {
421
+ deploymentsPage: {
422
+ total: number;
423
+ limit: number;
424
+ offset: number;
425
+ hasMore: boolean;
426
+ nextOffset: number | null;
427
+ items: Array<{
428
+ id: string;
429
+ workspaceID: string;
430
+ kind: DeploymentKind;
431
+ runtime: ServiceRuntime | null;
432
+ alias: string | null;
433
+ serviceMode: ServiceMode;
434
+ healthPath: string | null;
435
+ cronSchedule: string | null;
436
+ cronPath: string | null;
437
+ url: string;
438
+ previewUrl: string;
439
+ sshCommand: string | null;
440
+ aliasHeld: boolean;
441
+ aliasRevision: string;
442
+ status: DeploymentStatus;
443
+ error: string | null;
444
+ filesCount: number;
445
+ sizeBytes: number;
446
+ size: string;
447
+ spaMode: boolean;
448
+ gitRepo: string | null;
449
+ gitCommit: string | null;
450
+ createdAt: string;
451
+ }>;
452
+ };
453
+ };
454
+ export type SdkListReleasesQueryVariables = Exact<{
455
+ alias: string;
456
+ }>;
457
+ export type SdkListReleasesQuery = {
458
+ deploymentReleases: Array<{
459
+ id: string;
460
+ workspaceID: string;
461
+ kind: DeploymentKind;
462
+ runtime: ServiceRuntime | null;
463
+ alias: string | null;
464
+ serviceMode: ServiceMode;
465
+ healthPath: string | null;
466
+ cronSchedule: string | null;
467
+ cronPath: string | null;
468
+ url: string;
469
+ previewUrl: string;
470
+ sshCommand: string | null;
471
+ aliasHeld: boolean;
472
+ aliasRevision: string;
473
+ status: DeploymentStatus;
474
+ error: string | null;
475
+ filesCount: number;
476
+ sizeBytes: number;
477
+ size: string;
478
+ spaMode: boolean;
479
+ gitRepo: string | null;
480
+ gitCommit: string | null;
481
+ createdAt: string;
482
+ }>;
483
+ };
484
+ export type SdkRollbackMutationVariables = Exact<{
485
+ deploymentID: string | number;
486
+ expectedCurrentDeploymentID: string | number;
487
+ expectedCurrentAliasRevision: string;
488
+ }>;
489
+ export type SdkRollbackMutation = {
490
+ rollbackDeployment: {
491
+ id: string;
492
+ workspaceID: string;
493
+ kind: DeploymentKind;
494
+ runtime: ServiceRuntime | null;
495
+ alias: string | null;
496
+ serviceMode: ServiceMode;
497
+ healthPath: string | null;
498
+ cronSchedule: string | null;
499
+ cronPath: string | null;
500
+ url: string;
501
+ previewUrl: string;
502
+ sshCommand: string | null;
503
+ aliasHeld: boolean;
504
+ aliasRevision: string;
505
+ status: DeploymentStatus;
506
+ error: string | null;
507
+ filesCount: number;
508
+ sizeBytes: number;
509
+ size: string;
510
+ spaMode: boolean;
511
+ gitRepo: string | null;
512
+ gitCommit: string | null;
513
+ createdAt: string;
514
+ };
515
+ };
516
+ export type SdkServiceStatusQueryVariables = Exact<{
517
+ deploymentID: string | number;
518
+ }>;
519
+ export type SdkServiceStatusQuery = {
520
+ serviceStatus: {
521
+ deploymentID: string;
522
+ alias: string | null;
523
+ serviceMode: ServiceMode;
524
+ running: boolean;
525
+ health: string;
526
+ vmID: string | null;
527
+ inFlight: number;
528
+ alwaysOn: boolean;
529
+ memSizeMiB: number;
530
+ startedAt: string | null;
531
+ lastUsedAt: string | null;
532
+ lastStoppedAt: string | null;
533
+ restartCount: number;
534
+ lastError: string | null;
535
+ };
536
+ };
537
+ export type SdkServiceLogsQueryVariables = Exact<{
538
+ deploymentID: string | number;
539
+ tailBytes?: number | null | undefined;
540
+ }>;
541
+ export type SdkServiceLogsQuery = {
542
+ serviceLogs: {
543
+ deploymentID: string;
544
+ stdout: string;
545
+ stderr: string;
546
+ truncated: boolean;
547
+ stdoutBytes: number;
548
+ stderrBytes: number;
549
+ tailBytes: number;
550
+ };
551
+ };
552
+ export type SdkDeploymentEventsQueryVariables = Exact<{
553
+ deploymentID: string | number;
554
+ limit?: number | null | undefined;
555
+ }>;
556
+ export type SdkDeploymentEventsQuery = {
557
+ deploymentEvents: Array<{
558
+ id: string;
559
+ deploymentID: string;
560
+ type: DeploymentEventType;
561
+ rawType: string;
562
+ severity: DeploymentEventSeverity;
563
+ message: string;
564
+ vmID: string | null;
565
+ createdAt: string;
566
+ }>;
567
+ };
568
+ export type SdkRestartServiceMutationVariables = Exact<{
569
+ deploymentID: string | number;
570
+ }>;
571
+ export type SdkRestartServiceMutation = {
572
+ restartService: {
573
+ deploymentID: string;
574
+ running: boolean;
575
+ health: string;
576
+ vmID: string | null;
577
+ restartCount: number;
578
+ lastError: string | null;
579
+ };
580
+ };
581
+ export type SdkStopServiceMutationVariables = Exact<{
582
+ deploymentID: string | number;
583
+ }>;
584
+ export type SdkStopServiceMutation = {
585
+ stopService: {
586
+ deploymentID: string;
587
+ running: boolean;
588
+ health: string;
589
+ vmID: string | null;
590
+ restartCount: number;
591
+ lastError: string | null;
592
+ };
593
+ };
594
+ export type SdkDeleteDeploymentMutationVariables = Exact<{
595
+ deploymentID: string | number;
596
+ }>;
597
+ export type SdkDeleteDeploymentMutation = {
598
+ deleteDeployment: {
599
+ ok: boolean;
600
+ };
601
+ };
602
+ export type SdkSetWorkspaceEnvMutationVariables = Exact<{
603
+ workspaceID: string | number;
604
+ name: string;
605
+ value: string;
606
+ }>;
607
+ export type SdkSetWorkspaceEnvMutation = {
608
+ setWorkspaceEnv: {
609
+ env: {
610
+ name: string;
611
+ value: string | null;
612
+ secret: boolean;
613
+ alias: string | null;
614
+ inherited: boolean;
615
+ masked: boolean;
616
+ updatedAt: string;
617
+ };
618
+ };
619
+ };
620
+ export type SdkSetWorkspaceSecretMutationVariables = Exact<{
621
+ workspaceID: string | number;
622
+ name: string;
623
+ value: string;
624
+ }>;
625
+ export type SdkSetWorkspaceSecretMutation = {
626
+ setWorkspaceSecret: {
627
+ env: {
628
+ name: string;
629
+ value: string | null;
630
+ secret: boolean;
631
+ alias: string | null;
632
+ inherited: boolean;
633
+ masked: boolean;
634
+ updatedAt: string;
635
+ };
636
+ };
637
+ };
638
+ export type SdkDeleteWorkspaceEnvMutationVariables = Exact<{
639
+ workspaceID: string | number;
640
+ name: string;
641
+ }>;
642
+ export type SdkDeleteWorkspaceEnvMutation = {
643
+ deleteWorkspaceEnv: {
644
+ ok: boolean;
645
+ };
646
+ };
647
+ export type SdkListWorkspaceEnvQueryVariables = Exact<{
648
+ workspaceID: string | number;
649
+ }>;
650
+ export type SdkListWorkspaceEnvQuery = {
651
+ workspaceEnv: Array<{
652
+ name: string;
653
+ value: string | null;
654
+ secret: boolean;
655
+ alias: string | null;
656
+ inherited: boolean;
657
+ masked: boolean;
658
+ updatedAt: string;
659
+ }>;
660
+ };
661
+ export type SdkSetAppEnvMutationVariables = Exact<{
662
+ workspaceID: string | number;
663
+ alias: string;
664
+ name: string;
665
+ value: string;
666
+ }>;
667
+ export type SdkSetAppEnvMutation = {
668
+ setAppEnv: {
669
+ env: {
670
+ name: string;
671
+ value: string | null;
672
+ secret: boolean;
673
+ alias: string | null;
674
+ inherited: boolean;
675
+ masked: boolean;
676
+ updatedAt: string;
677
+ };
678
+ };
679
+ };
680
+ export type SdkSetAppSecretMutationVariables = Exact<{
681
+ workspaceID: string | number;
682
+ alias: string;
683
+ name: string;
684
+ value: string;
685
+ }>;
686
+ export type SdkSetAppSecretMutation = {
687
+ setAppSecret: {
688
+ env: {
689
+ name: string;
690
+ value: string | null;
691
+ secret: boolean;
692
+ alias: string | null;
693
+ inherited: boolean;
694
+ masked: boolean;
695
+ updatedAt: string;
696
+ };
697
+ };
698
+ };
699
+ export type SdkRemoveAppEnvMutationVariables = Exact<{
700
+ workspaceID: string | number;
701
+ alias: string;
702
+ name: string;
703
+ }>;
704
+ export type SdkRemoveAppEnvMutation = {
705
+ removeAppEnv: {
706
+ ok: boolean;
707
+ };
708
+ };
709
+ export type SdkInheritAppEnvMutationVariables = Exact<{
710
+ workspaceID: string | number;
711
+ alias: string;
712
+ name: string;
713
+ }>;
714
+ export type SdkInheritAppEnvMutation = {
715
+ inheritAppEnv: {
716
+ ok: boolean;
717
+ };
718
+ };
719
+ export type SdkListAppEnvQueryVariables = Exact<{
720
+ workspaceID: string | number;
721
+ alias: string;
722
+ }>;
723
+ export type SdkListAppEnvQuery = {
724
+ appEnv: Array<{
725
+ name: string;
726
+ value: string | null;
727
+ secret: boolean;
728
+ alias: string | null;
729
+ inherited: boolean;
730
+ masked: boolean;
731
+ updatedAt: string;
732
+ }>;
733
+ };
734
+ export declare class TypedDocumentString<TResult, TVariables> extends String implements DocumentTypeDecoration<TResult, TVariables> {
735
+ __apiType?: NonNullable<DocumentTypeDecoration<TResult, TVariables>['__apiType']>;
736
+ private value;
737
+ __meta__?: Record<string, any> | undefined;
738
+ constructor(value: string, __meta__?: Record<string, any> | undefined);
739
+ toString(): string & DocumentTypeDecoration<TResult, TVariables>;
740
+ }
741
+ export declare const DeploymentFieldsFragmentDoc: TypedDocumentString<DeploymentFieldsFragment, unknown>;
742
+ export declare const SdkWhoamiDocument: TypedDocumentString<SdkWhoamiQuery, SdkWhoamiQueryVariables>;
743
+ export declare const SdkCreateWorkspaceDocument: TypedDocumentString<SdkCreateWorkspaceMutation, SdkCreateWorkspaceMutationVariables>;
744
+ export declare const SdkListWorkspacesDocument: TypedDocumentString<SdkListWorkspacesQuery, SdkListWorkspacesQueryVariables>;
745
+ export declare const SdkDeleteWorkspaceDocument: TypedDocumentString<SdkDeleteWorkspaceMutation, SdkDeleteWorkspaceMutationVariables>;
746
+ export declare const SdkWriteTextFileDocument: TypedDocumentString<SdkWriteTextFileMutation, SdkWriteTextFileMutationVariables>;
747
+ export declare const SdkWriteBase64FileDocument: TypedDocumentString<SdkWriteBase64FileMutation, SdkWriteBase64FileMutationVariables>;
748
+ export declare const SdkListFilesDocument: TypedDocumentString<SdkListFilesQuery, SdkListFilesQueryVariables>;
749
+ export declare const SdkReadFileDocument: TypedDocumentString<SdkReadFileQuery, SdkReadFileQueryVariables>;
750
+ export declare const SdkDeleteFileDocument: TypedDocumentString<SdkDeleteFileMutation, SdkDeleteFileMutationVariables>;
751
+ export declare const SdkCreateDeploymentDocument: TypedDocumentString<SdkCreateDeploymentMutation, SdkCreateDeploymentMutationVariables>;
752
+ export declare const SdkDeployWorkspaceDocument: TypedDocumentString<SdkDeployWorkspaceMutation, SdkDeployWorkspaceMutationVariables>;
753
+ export declare const SdkGetDeploymentDocument: TypedDocumentString<SdkGetDeploymentQuery, SdkGetDeploymentQueryVariables>;
754
+ export declare const SdkPollDeploymentDocument: TypedDocumentString<SdkPollDeploymentQuery, SdkPollDeploymentQueryVariables>;
755
+ export declare const SdkGetDeploymentByAliasDocument: TypedDocumentString<SdkGetDeploymentByAliasQuery, SdkGetDeploymentByAliasQueryVariables>;
756
+ export declare const SdkListDeploymentsDocument: TypedDocumentString<SdkListDeploymentsQuery, SdkListDeploymentsQueryVariables>;
757
+ export declare const SdkListReleasesDocument: TypedDocumentString<SdkListReleasesQuery, SdkListReleasesQueryVariables>;
758
+ export declare const SdkRollbackDocument: TypedDocumentString<SdkRollbackMutation, SdkRollbackMutationVariables>;
759
+ export declare const SdkServiceStatusDocument: TypedDocumentString<SdkServiceStatusQuery, SdkServiceStatusQueryVariables>;
760
+ export declare const SdkServiceLogsDocument: TypedDocumentString<SdkServiceLogsQuery, SdkServiceLogsQueryVariables>;
761
+ export declare const SdkDeploymentEventsDocument: TypedDocumentString<SdkDeploymentEventsQuery, SdkDeploymentEventsQueryVariables>;
762
+ export declare const SdkRestartServiceDocument: TypedDocumentString<SdkRestartServiceMutation, SdkRestartServiceMutationVariables>;
763
+ export declare const SdkStopServiceDocument: TypedDocumentString<SdkStopServiceMutation, SdkStopServiceMutationVariables>;
764
+ export declare const SdkDeleteDeploymentDocument: TypedDocumentString<SdkDeleteDeploymentMutation, SdkDeleteDeploymentMutationVariables>;
765
+ export declare const SdkSetWorkspaceEnvDocument: TypedDocumentString<SdkSetWorkspaceEnvMutation, SdkSetWorkspaceEnvMutationVariables>;
766
+ export declare const SdkSetWorkspaceSecretDocument: TypedDocumentString<SdkSetWorkspaceSecretMutation, SdkSetWorkspaceSecretMutationVariables>;
767
+ export declare const SdkDeleteWorkspaceEnvDocument: TypedDocumentString<SdkDeleteWorkspaceEnvMutation, SdkDeleteWorkspaceEnvMutationVariables>;
768
+ export declare const SdkListWorkspaceEnvDocument: TypedDocumentString<SdkListWorkspaceEnvQuery, SdkListWorkspaceEnvQueryVariables>;
769
+ export declare const SdkSetAppEnvDocument: TypedDocumentString<SdkSetAppEnvMutation, SdkSetAppEnvMutationVariables>;
770
+ export declare const SdkSetAppSecretDocument: TypedDocumentString<SdkSetAppSecretMutation, SdkSetAppSecretMutationVariables>;
771
+ export declare const SdkRemoveAppEnvDocument: TypedDocumentString<SdkRemoveAppEnvMutation, SdkRemoveAppEnvMutationVariables>;
772
+ export declare const SdkInheritAppEnvDocument: TypedDocumentString<SdkInheritAppEnvMutation, SdkInheritAppEnvMutationVariables>;
773
+ export declare const SdkListAppEnvDocument: TypedDocumentString<SdkListAppEnvQuery, SdkListAppEnvQueryVariables>;
774
+ export {};