unfazed 0.6.1 → 0.8.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.
- package/CHANGELOG.md +88 -0
- package/README.md +201 -52
- package/REFERENCE.md +284 -0
- package/dist/cli/login.d.ts +1 -1
- package/dist/client.d.ts +1 -1
- package/dist/client.js +1 -1
- package/dist/client.js.map +1 -1
- package/dist/errors.d.ts +64 -0
- package/dist/errors.js +95 -0
- package/dist/errors.js.map +1 -1
- package/dist/generated/gql.d.ts +78 -2
- package/dist/generated/gql.js +21 -2
- package/dist/generated/gql.js.map +1 -1
- package/dist/generated/graphql.d.ts +505 -6
- package/dist/generated/graphql.js +439 -2
- package/dist/generated/graphql.js.map +1 -1
- package/dist/index.d.ts +13 -4
- package/dist/index.js +12 -3
- package/dist/index.js.map +1 -1
- package/dist/operations.d.ts +116 -5
- package/dist/operations.js +379 -7
- package/dist/operations.js.map +1 -1
- package/dist/reference.d.ts +18 -0
- package/dist/reference.generated.d.ts +2 -0
- package/dist/reference.generated.js +5 -0
- package/dist/reference.generated.js.map +1 -0
- package/dist/reference.js +38 -0
- package/dist/reference.js.map +1 -0
- package/dist/unfazed.d.ts +544 -67
- package/dist/unfazed.js +687 -63
- package/dist/unfazed.js.map +1 -1
- package/dist/wait.d.ts +7 -0
- package/dist/wait.js.map +1 -1
- package/dist/workflow/nitro.js +5 -3
- package/dist/workflow/nitro.js.map +1 -1
- package/package.json +8 -4
- package/schema/SOURCE.json +4 -4
- package/schema/schema.graphqls +1628 -30
|
@@ -38,6 +38,42 @@ export const DeploymentFieldsFragmentDoc = new TypedDocumentString(`
|
|
|
38
38
|
createdAt
|
|
39
39
|
}
|
|
40
40
|
`, { "fragmentName": "DeploymentFields" });
|
|
41
|
+
export const FileCommitFieldsFragmentDoc = new TypedDocumentString(`
|
|
42
|
+
fragment FileCommitFields on FileCommit {
|
|
43
|
+
sha
|
|
44
|
+
branch
|
|
45
|
+
message
|
|
46
|
+
committed
|
|
47
|
+
waiting
|
|
48
|
+
waitingCount
|
|
49
|
+
deploys
|
|
50
|
+
conflicts
|
|
51
|
+
writeSHA
|
|
52
|
+
paused
|
|
53
|
+
}
|
|
54
|
+
`, { "fragmentName": "FileCommitFields" });
|
|
55
|
+
export const AppErrorGroupFieldsFragmentDoc = new TypedDocumentString(`
|
|
56
|
+
fragment AppErrorGroupFields on AppErrorGroup {
|
|
57
|
+
id
|
|
58
|
+
title
|
|
59
|
+
type
|
|
60
|
+
culprit
|
|
61
|
+
level
|
|
62
|
+
status
|
|
63
|
+
count
|
|
64
|
+
storedEvents
|
|
65
|
+
firstSeen
|
|
66
|
+
lastSeen
|
|
67
|
+
firstDeploymentID
|
|
68
|
+
firstGitCommit
|
|
69
|
+
lastDeploymentID
|
|
70
|
+
lastGitCommit
|
|
71
|
+
resolvedInDeploymentID
|
|
72
|
+
resolvedAt
|
|
73
|
+
mutedAt
|
|
74
|
+
regressedAt
|
|
75
|
+
}
|
|
76
|
+
`, { "fragmentName": "AppErrorGroupFields" });
|
|
41
77
|
export const RunFieldsFragmentDoc = new TypedDocumentString(`
|
|
42
78
|
fragment RunFields on Run {
|
|
43
79
|
id
|
|
@@ -150,14 +186,39 @@ export const SdkListWorkspacesDocument = new TypedDocumentString(`
|
|
|
150
186
|
}
|
|
151
187
|
`);
|
|
152
188
|
export const SdkDeleteWorkspaceDocument = new TypedDocumentString(`
|
|
153
|
-
mutation SdkDeleteWorkspace($workspaceID: ID!, $withDeployments: Boolean) {
|
|
189
|
+
mutation SdkDeleteWorkspace($workspaceID: ID!, $withDeployments: Boolean, $confirmAliases: [String!]) {
|
|
154
190
|
deleteWorkspace(
|
|
155
|
-
input: {workspaceID: $workspaceID, withDeployments: $withDeployments}
|
|
191
|
+
input: {workspaceID: $workspaceID, withDeployments: $withDeployments, confirmAliases: $confirmAliases}
|
|
156
192
|
) {
|
|
157
193
|
ok
|
|
158
194
|
}
|
|
159
195
|
}
|
|
160
196
|
`);
|
|
197
|
+
export const SdkWorkspaceLiveAppsDocument = new TypedDocumentString(`
|
|
198
|
+
query SdkWorkspaceLiveApps($id: ID!) {
|
|
199
|
+
workspace(id: $id) {
|
|
200
|
+
id
|
|
201
|
+
liveApps {
|
|
202
|
+
alias
|
|
203
|
+
deploymentID
|
|
204
|
+
domains
|
|
205
|
+
}
|
|
206
|
+
}
|
|
207
|
+
}
|
|
208
|
+
`);
|
|
209
|
+
export const SdkDeleteAppDocument = new TypedDocumentString(`
|
|
210
|
+
mutation SdkDeleteApp($workspaceID: ID!, $alias: String!) {
|
|
211
|
+
deleteApp(input: {workspaceID: $workspaceID, alias: $alias}) {
|
|
212
|
+
ok
|
|
213
|
+
alias
|
|
214
|
+
deployments
|
|
215
|
+
domains
|
|
216
|
+
envEntries
|
|
217
|
+
skippedOnSync
|
|
218
|
+
otherApps
|
|
219
|
+
}
|
|
220
|
+
}
|
|
221
|
+
`);
|
|
161
222
|
export const SdkWriteTextFileDocument = new TypedDocumentString(`
|
|
162
223
|
mutation SdkWriteTextFile($workspaceID: ID!, $path: String!, $text: String!) {
|
|
163
224
|
writeWorkspaceTextFile(
|
|
@@ -188,6 +249,345 @@ export const SdkWriteBase64FileDocument = new TypedDocumentString(`
|
|
|
188
249
|
}
|
|
189
250
|
}
|
|
190
251
|
`);
|
|
252
|
+
export const SdkWriteFilesDocument = new TypedDocumentString(`
|
|
253
|
+
mutation SdkWriteFiles($workspaceID: ID!, $files: [WorkspaceFileWriteInput!]!, $commitMessage: String) {
|
|
254
|
+
writeWorkspaceFiles(
|
|
255
|
+
input: {workspaceID: $workspaceID, files: $files, commitMessage: $commitMessage}
|
|
256
|
+
) {
|
|
257
|
+
workspaceID
|
|
258
|
+
written
|
|
259
|
+
failed
|
|
260
|
+
totalBytes
|
|
261
|
+
files {
|
|
262
|
+
path
|
|
263
|
+
ok
|
|
264
|
+
error
|
|
265
|
+
file {
|
|
266
|
+
path
|
|
267
|
+
sizeBytes
|
|
268
|
+
size
|
|
269
|
+
sha256
|
|
270
|
+
updatedAt
|
|
271
|
+
}
|
|
272
|
+
}
|
|
273
|
+
commit {
|
|
274
|
+
...FileCommitFields
|
|
275
|
+
}
|
|
276
|
+
}
|
|
277
|
+
}
|
|
278
|
+
fragment FileCommitFields on FileCommit {
|
|
279
|
+
sha
|
|
280
|
+
branch
|
|
281
|
+
message
|
|
282
|
+
committed
|
|
283
|
+
waiting
|
|
284
|
+
waitingCount
|
|
285
|
+
deploys
|
|
286
|
+
conflicts
|
|
287
|
+
writeSHA
|
|
288
|
+
paused
|
|
289
|
+
}`);
|
|
290
|
+
export const SdkAppCommitsDocument = new TypedDocumentString(`
|
|
291
|
+
query SdkAppCommits($workspaceID: ID!, $limit: Int, $before: String) {
|
|
292
|
+
appCommits(workspaceID: $workspaceID, limit: $limit, before: $before) {
|
|
293
|
+
branch
|
|
294
|
+
head
|
|
295
|
+
nextBefore
|
|
296
|
+
autoDeploy
|
|
297
|
+
waitingCommits
|
|
298
|
+
waitingSince
|
|
299
|
+
commits {
|
|
300
|
+
sha
|
|
301
|
+
message
|
|
302
|
+
authorName
|
|
303
|
+
authorEmail
|
|
304
|
+
authoredAt
|
|
305
|
+
filesChanged
|
|
306
|
+
deployedTo
|
|
307
|
+
}
|
|
308
|
+
deployed {
|
|
309
|
+
alias
|
|
310
|
+
sha
|
|
311
|
+
deploymentID
|
|
312
|
+
}
|
|
313
|
+
}
|
|
314
|
+
}
|
|
315
|
+
`);
|
|
316
|
+
export const SdkAppCommitsWaitingDocument = new TypedDocumentString(`
|
|
317
|
+
query SdkAppCommitsWaiting($workspaceID: ID!) {
|
|
318
|
+
appCommits(workspaceID: $workspaceID, limit: 1) {
|
|
319
|
+
branch
|
|
320
|
+
head
|
|
321
|
+
waitingCommits
|
|
322
|
+
waitingSince
|
|
323
|
+
}
|
|
324
|
+
}
|
|
325
|
+
`);
|
|
326
|
+
export const SdkWorkspaceGitSourceDocument = new TypedDocumentString(`
|
|
327
|
+
query SdkWorkspaceGitSource($id: ID!) {
|
|
328
|
+
workspace(id: $id) {
|
|
329
|
+
id
|
|
330
|
+
gitSource {
|
|
331
|
+
branch
|
|
332
|
+
autoDeploy
|
|
333
|
+
deployAlias
|
|
334
|
+
lastImportedCommit
|
|
335
|
+
lastImportedAt
|
|
336
|
+
lastImportStatus
|
|
337
|
+
lastImportError
|
|
338
|
+
}
|
|
339
|
+
}
|
|
340
|
+
}
|
|
341
|
+
`);
|
|
342
|
+
export const SdkAppCommitDocument = new TypedDocumentString(`
|
|
343
|
+
query SdkAppCommit($workspaceID: ID!, $sha: String!) {
|
|
344
|
+
appCommit(workspaceID: $workspaceID, sha: $sha) {
|
|
345
|
+
commit {
|
|
346
|
+
sha
|
|
347
|
+
message
|
|
348
|
+
authorName
|
|
349
|
+
authorEmail
|
|
350
|
+
authoredAt
|
|
351
|
+
filesChanged
|
|
352
|
+
deployedTo
|
|
353
|
+
}
|
|
354
|
+
files {
|
|
355
|
+
path
|
|
356
|
+
status
|
|
357
|
+
}
|
|
358
|
+
patch
|
|
359
|
+
truncated
|
|
360
|
+
additions
|
|
361
|
+
deletions
|
|
362
|
+
}
|
|
363
|
+
}
|
|
364
|
+
`);
|
|
365
|
+
export const SdkRestoreVersionDocument = new TypedDocumentString(`
|
|
366
|
+
mutation SdkRestoreVersion($workspaceID: ID!, $sha: String!, $expectedHead: String, $message: String) {
|
|
367
|
+
restoreAppVersion(
|
|
368
|
+
input: {workspaceID: $workspaceID, sha: $sha, expectedHead: $expectedHead, message: $message}
|
|
369
|
+
) {
|
|
370
|
+
sha
|
|
371
|
+
committed
|
|
372
|
+
deploys
|
|
373
|
+
message
|
|
374
|
+
branch
|
|
375
|
+
deployAlias
|
|
376
|
+
restoredFrom
|
|
377
|
+
parent
|
|
378
|
+
}
|
|
379
|
+
}
|
|
380
|
+
`);
|
|
381
|
+
export const SdkAppErrorsDocument = new TypedDocumentString(`
|
|
382
|
+
query SdkAppErrors($workspaceID: ID!, $alias: String!, $status: String, $limit: Int, $cursor: String) {
|
|
383
|
+
appErrors(
|
|
384
|
+
workspaceID: $workspaceID
|
|
385
|
+
alias: $alias
|
|
386
|
+
status: $status
|
|
387
|
+
limit: $limit
|
|
388
|
+
cursor: $cursor
|
|
389
|
+
) {
|
|
390
|
+
groups {
|
|
391
|
+
...AppErrorGroupFields
|
|
392
|
+
}
|
|
393
|
+
nextCursor
|
|
394
|
+
note
|
|
395
|
+
}
|
|
396
|
+
}
|
|
397
|
+
fragment AppErrorGroupFields on AppErrorGroup {
|
|
398
|
+
id
|
|
399
|
+
title
|
|
400
|
+
type
|
|
401
|
+
culprit
|
|
402
|
+
level
|
|
403
|
+
status
|
|
404
|
+
count
|
|
405
|
+
storedEvents
|
|
406
|
+
firstSeen
|
|
407
|
+
lastSeen
|
|
408
|
+
firstDeploymentID
|
|
409
|
+
firstGitCommit
|
|
410
|
+
lastDeploymentID
|
|
411
|
+
lastGitCommit
|
|
412
|
+
resolvedInDeploymentID
|
|
413
|
+
resolvedAt
|
|
414
|
+
mutedAt
|
|
415
|
+
regressedAt
|
|
416
|
+
}`);
|
|
417
|
+
export const SdkAppErrorGroupDocument = new TypedDocumentString(`
|
|
418
|
+
query SdkAppErrorGroup($workspaceID: ID!, $alias: String!, $groupID: ID!) {
|
|
419
|
+
appErrorGroup(workspaceID: $workspaceID, alias: $alias, groupID: $groupID) {
|
|
420
|
+
group {
|
|
421
|
+
...AppErrorGroupFields
|
|
422
|
+
}
|
|
423
|
+
latestEvent
|
|
424
|
+
firstEvent {
|
|
425
|
+
eventID
|
|
426
|
+
at
|
|
427
|
+
deploymentID
|
|
428
|
+
level
|
|
429
|
+
}
|
|
430
|
+
recentEvents {
|
|
431
|
+
eventID
|
|
432
|
+
at
|
|
433
|
+
deploymentID
|
|
434
|
+
level
|
|
435
|
+
}
|
|
436
|
+
deployments {
|
|
437
|
+
deploymentID
|
|
438
|
+
gitCommit
|
|
439
|
+
current
|
|
440
|
+
count
|
|
441
|
+
firstSeen
|
|
442
|
+
lastSeen
|
|
443
|
+
}
|
|
444
|
+
fatal
|
|
445
|
+
vmID
|
|
446
|
+
}
|
|
447
|
+
}
|
|
448
|
+
fragment AppErrorGroupFields on AppErrorGroup {
|
|
449
|
+
id
|
|
450
|
+
title
|
|
451
|
+
type
|
|
452
|
+
culprit
|
|
453
|
+
level
|
|
454
|
+
status
|
|
455
|
+
count
|
|
456
|
+
storedEvents
|
|
457
|
+
firstSeen
|
|
458
|
+
lastSeen
|
|
459
|
+
firstDeploymentID
|
|
460
|
+
firstGitCommit
|
|
461
|
+
lastDeploymentID
|
|
462
|
+
lastGitCommit
|
|
463
|
+
resolvedInDeploymentID
|
|
464
|
+
resolvedAt
|
|
465
|
+
mutedAt
|
|
466
|
+
regressedAt
|
|
467
|
+
}`);
|
|
468
|
+
export const SdkResolveErrorGroupDocument = new TypedDocumentString(`
|
|
469
|
+
mutation SdkResolveErrorGroup($input: AppErrorGroupInput!) {
|
|
470
|
+
resolveAppErrorGroup(input: $input) {
|
|
471
|
+
...AppErrorGroupFields
|
|
472
|
+
}
|
|
473
|
+
}
|
|
474
|
+
fragment AppErrorGroupFields on AppErrorGroup {
|
|
475
|
+
id
|
|
476
|
+
title
|
|
477
|
+
type
|
|
478
|
+
culprit
|
|
479
|
+
level
|
|
480
|
+
status
|
|
481
|
+
count
|
|
482
|
+
storedEvents
|
|
483
|
+
firstSeen
|
|
484
|
+
lastSeen
|
|
485
|
+
firstDeploymentID
|
|
486
|
+
firstGitCommit
|
|
487
|
+
lastDeploymentID
|
|
488
|
+
lastGitCommit
|
|
489
|
+
resolvedInDeploymentID
|
|
490
|
+
resolvedAt
|
|
491
|
+
mutedAt
|
|
492
|
+
regressedAt
|
|
493
|
+
}`);
|
|
494
|
+
export const SdkMuteErrorGroupDocument = new TypedDocumentString(`
|
|
495
|
+
mutation SdkMuteErrorGroup($input: AppErrorGroupInput!) {
|
|
496
|
+
muteAppErrorGroup(input: $input) {
|
|
497
|
+
...AppErrorGroupFields
|
|
498
|
+
}
|
|
499
|
+
}
|
|
500
|
+
fragment AppErrorGroupFields on AppErrorGroup {
|
|
501
|
+
id
|
|
502
|
+
title
|
|
503
|
+
type
|
|
504
|
+
culprit
|
|
505
|
+
level
|
|
506
|
+
status
|
|
507
|
+
count
|
|
508
|
+
storedEvents
|
|
509
|
+
firstSeen
|
|
510
|
+
lastSeen
|
|
511
|
+
firstDeploymentID
|
|
512
|
+
firstGitCommit
|
|
513
|
+
lastDeploymentID
|
|
514
|
+
lastGitCommit
|
|
515
|
+
resolvedInDeploymentID
|
|
516
|
+
resolvedAt
|
|
517
|
+
mutedAt
|
|
518
|
+
regressedAt
|
|
519
|
+
}`);
|
|
520
|
+
export const SdkReopenErrorGroupDocument = new TypedDocumentString(`
|
|
521
|
+
mutation SdkReopenErrorGroup($input: AppErrorGroupInput!) {
|
|
522
|
+
reopenAppErrorGroup(input: $input) {
|
|
523
|
+
...AppErrorGroupFields
|
|
524
|
+
}
|
|
525
|
+
}
|
|
526
|
+
fragment AppErrorGroupFields on AppErrorGroup {
|
|
527
|
+
id
|
|
528
|
+
title
|
|
529
|
+
type
|
|
530
|
+
culprit
|
|
531
|
+
level
|
|
532
|
+
status
|
|
533
|
+
count
|
|
534
|
+
storedEvents
|
|
535
|
+
firstSeen
|
|
536
|
+
lastSeen
|
|
537
|
+
firstDeploymentID
|
|
538
|
+
firstGitCommit
|
|
539
|
+
lastDeploymentID
|
|
540
|
+
lastGitCommit
|
|
541
|
+
resolvedInDeploymentID
|
|
542
|
+
resolvedAt
|
|
543
|
+
mutedAt
|
|
544
|
+
regressedAt
|
|
545
|
+
}`);
|
|
546
|
+
export const SdkEventTypesDocument = new TypedDocumentString(`
|
|
547
|
+
query SdkEventTypes {
|
|
548
|
+
platformEventTypes {
|
|
549
|
+
name
|
|
550
|
+
description
|
|
551
|
+
delivery
|
|
552
|
+
inputSchema
|
|
553
|
+
payloadSchema
|
|
554
|
+
}
|
|
555
|
+
}
|
|
556
|
+
`);
|
|
557
|
+
export const SdkPollEventsDocument = new TypedDocumentString(`
|
|
558
|
+
query SdkPollEvents($input: PlatformEventsInput) {
|
|
559
|
+
pollEvents(input: $input) {
|
|
560
|
+
cursor
|
|
561
|
+
truncated
|
|
562
|
+
hasMore
|
|
563
|
+
nextPollMs
|
|
564
|
+
timedOut
|
|
565
|
+
events {
|
|
566
|
+
eventID
|
|
567
|
+
name
|
|
568
|
+
timestamp
|
|
569
|
+
data
|
|
570
|
+
}
|
|
571
|
+
}
|
|
572
|
+
}
|
|
573
|
+
`);
|
|
574
|
+
export const SdkWaitForEventsDocument = new TypedDocumentString(`
|
|
575
|
+
query SdkWaitForEvents($input: PlatformEventsInput, $timeoutSeconds: Int) {
|
|
576
|
+
waitForEvents(input: $input, timeoutSeconds: $timeoutSeconds) {
|
|
577
|
+
cursor
|
|
578
|
+
truncated
|
|
579
|
+
hasMore
|
|
580
|
+
nextPollMs
|
|
581
|
+
timedOut
|
|
582
|
+
events {
|
|
583
|
+
eventID
|
|
584
|
+
name
|
|
585
|
+
timestamp
|
|
586
|
+
data
|
|
587
|
+
}
|
|
588
|
+
}
|
|
589
|
+
}
|
|
590
|
+
`);
|
|
191
591
|
export const SdkListFilesDocument = new TypedDocumentString(`
|
|
192
592
|
query SdkListFiles($input: ListWorkspaceFilesInput!) {
|
|
193
593
|
workspaceFilesPage(input: $input) {
|
|
@@ -517,10 +917,47 @@ export const SdkDeploymentEventsDocument = new TypedDocumentString(`
|
|
|
517
917
|
severity
|
|
518
918
|
message
|
|
519
919
|
vmID
|
|
920
|
+
metadata
|
|
520
921
|
createdAt
|
|
521
922
|
}
|
|
522
923
|
}
|
|
523
924
|
`);
|
|
925
|
+
export const SdkWaitForDeploymentDocument = new TypedDocumentString(`
|
|
926
|
+
query SdkWaitForDeployment($id: ID!, $timeoutSeconds: Int) {
|
|
927
|
+
waitForDeployment(id: $id, timeoutSeconds: $timeoutSeconds) {
|
|
928
|
+
timedOut
|
|
929
|
+
waitedMs
|
|
930
|
+
placement
|
|
931
|
+
deployment {
|
|
932
|
+
...DeploymentFields
|
|
933
|
+
}
|
|
934
|
+
}
|
|
935
|
+
}
|
|
936
|
+
fragment DeploymentFields on Deployment {
|
|
937
|
+
id
|
|
938
|
+
workspaceID
|
|
939
|
+
kind
|
|
940
|
+
runtime
|
|
941
|
+
alias
|
|
942
|
+
serviceMode
|
|
943
|
+
healthPath
|
|
944
|
+
cronSchedule
|
|
945
|
+
cronPath
|
|
946
|
+
url
|
|
947
|
+
previewUrl
|
|
948
|
+
sshCommand
|
|
949
|
+
aliasHeld
|
|
950
|
+
aliasRevision
|
|
951
|
+
status
|
|
952
|
+
error
|
|
953
|
+
filesCount
|
|
954
|
+
sizeBytes
|
|
955
|
+
size
|
|
956
|
+
spaMode
|
|
957
|
+
gitRepo
|
|
958
|
+
gitCommit
|
|
959
|
+
createdAt
|
|
960
|
+
}`);
|
|
524
961
|
export const SdkRestartServiceDocument = new TypedDocumentString(`
|
|
525
962
|
mutation SdkRestartService($deploymentID: ID!) {
|
|
526
963
|
restartService(input: {deploymentID: $deploymentID}) {
|