unfazed 0.6.1 → 0.8.1

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.
@@ -38,6 +38,53 @@ 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" });
77
+ export const DeploymentTimingsFieldsFragmentDoc = new TypedDocumentString(`
78
+ fragment DeploymentTimingsFields on DeploymentTimings {
79
+ totalMs
80
+ buildMs
81
+ promoteMs
82
+ phases
83
+ buildMode
84
+ artifactTransport
85
+ buildMemoryMiB
86
+ }
87
+ `, { "fragmentName": "DeploymentTimingsFields" });
41
88
  export const RunFieldsFragmentDoc = new TypedDocumentString(`
42
89
  fragment RunFields on Run {
43
90
  id
@@ -150,14 +197,39 @@ export const SdkListWorkspacesDocument = new TypedDocumentString(`
150
197
  }
151
198
  `);
152
199
  export const SdkDeleteWorkspaceDocument = new TypedDocumentString(`
153
- mutation SdkDeleteWorkspace($workspaceID: ID!, $withDeployments: Boolean) {
200
+ mutation SdkDeleteWorkspace($workspaceID: ID!, $withDeployments: Boolean, $confirmAliases: [String!]) {
154
201
  deleteWorkspace(
155
- input: {workspaceID: $workspaceID, withDeployments: $withDeployments}
202
+ input: {workspaceID: $workspaceID, withDeployments: $withDeployments, confirmAliases: $confirmAliases}
156
203
  ) {
157
204
  ok
158
205
  }
159
206
  }
160
207
  `);
208
+ export const SdkWorkspaceLiveAppsDocument = new TypedDocumentString(`
209
+ query SdkWorkspaceLiveApps($id: ID!) {
210
+ workspace(id: $id) {
211
+ id
212
+ liveApps {
213
+ alias
214
+ deploymentID
215
+ domains
216
+ }
217
+ }
218
+ }
219
+ `);
220
+ export const SdkDeleteAppDocument = new TypedDocumentString(`
221
+ mutation SdkDeleteApp($workspaceID: ID!, $alias: String!) {
222
+ deleteApp(input: {workspaceID: $workspaceID, alias: $alias}) {
223
+ ok
224
+ alias
225
+ deployments
226
+ domains
227
+ envEntries
228
+ skippedOnSync
229
+ otherApps
230
+ }
231
+ }
232
+ `);
161
233
  export const SdkWriteTextFileDocument = new TypedDocumentString(`
162
234
  mutation SdkWriteTextFile($workspaceID: ID!, $path: String!, $text: String!) {
163
235
  writeWorkspaceTextFile(
@@ -188,6 +260,347 @@ export const SdkWriteBase64FileDocument = new TypedDocumentString(`
188
260
  }
189
261
  }
190
262
  `);
263
+ export const SdkWriteFilesDocument = new TypedDocumentString(`
264
+ mutation SdkWriteFiles($workspaceID: ID!, $files: [WorkspaceFileWriteInput!]!, $commitMessage: String) {
265
+ writeWorkspaceFiles(
266
+ input: {workspaceID: $workspaceID, files: $files, commitMessage: $commitMessage}
267
+ ) {
268
+ workspaceID
269
+ written
270
+ failed
271
+ totalBytes
272
+ files {
273
+ path
274
+ ok
275
+ error
276
+ file {
277
+ path
278
+ sizeBytes
279
+ size
280
+ sha256
281
+ updatedAt
282
+ }
283
+ }
284
+ commit {
285
+ ...FileCommitFields
286
+ }
287
+ }
288
+ }
289
+ fragment FileCommitFields on FileCommit {
290
+ sha
291
+ branch
292
+ message
293
+ committed
294
+ waiting
295
+ waitingCount
296
+ deploys
297
+ conflicts
298
+ writeSHA
299
+ paused
300
+ }`);
301
+ export const SdkAppCommitsDocument = new TypedDocumentString(`
302
+ query SdkAppCommits($workspaceID: ID!, $limit: Int, $before: String) {
303
+ appCommits(workspaceID: $workspaceID, limit: $limit, before: $before) {
304
+ branch
305
+ head
306
+ nextBefore
307
+ autoDeploy
308
+ waitingCommits
309
+ waitingSince
310
+ commits {
311
+ sha
312
+ message
313
+ authorName
314
+ authorEmail
315
+ authoredAt
316
+ filesChanged
317
+ deployedTo
318
+ }
319
+ deployed {
320
+ alias
321
+ sha
322
+ deploymentID
323
+ }
324
+ }
325
+ }
326
+ `);
327
+ export const SdkAppCommitsWaitingDocument = new TypedDocumentString(`
328
+ query SdkAppCommitsWaiting($workspaceID: ID!) {
329
+ appCommits(workspaceID: $workspaceID, limit: 1) {
330
+ branch
331
+ head
332
+ waitingCommits
333
+ waitingSince
334
+ }
335
+ }
336
+ `);
337
+ export const SdkWorkspaceGitSourceDocument = new TypedDocumentString(`
338
+ query SdkWorkspaceGitSource($id: ID!) {
339
+ workspace(id: $id) {
340
+ id
341
+ gitSource {
342
+ branch
343
+ autoDeploy
344
+ deployAlias
345
+ lastImportedCommit
346
+ lastImportedAt
347
+ lastImportStatus
348
+ lastImportError
349
+ }
350
+ }
351
+ }
352
+ `);
353
+ export const SdkAppCommitDocument = new TypedDocumentString(`
354
+ query SdkAppCommit($workspaceID: ID!, $sha: String!) {
355
+ appCommit(workspaceID: $workspaceID, sha: $sha) {
356
+ commit {
357
+ sha
358
+ message
359
+ authorName
360
+ authorEmail
361
+ authoredAt
362
+ filesChanged
363
+ deployedTo
364
+ }
365
+ files {
366
+ path
367
+ status
368
+ }
369
+ patch
370
+ truncated
371
+ additions
372
+ deletions
373
+ }
374
+ }
375
+ `);
376
+ export const SdkRestoreVersionDocument = new TypedDocumentString(`
377
+ mutation SdkRestoreVersion($workspaceID: ID!, $sha: String!, $expectedHead: String, $message: String) {
378
+ restoreAppVersion(
379
+ input: {workspaceID: $workspaceID, sha: $sha, expectedHead: $expectedHead, message: $message}
380
+ ) {
381
+ sha
382
+ committed
383
+ deploys
384
+ message
385
+ workspaceID
386
+ branch
387
+ deployAlias
388
+ restoredFrom
389
+ parent
390
+ waitAfter
391
+ }
392
+ }
393
+ `);
394
+ export const SdkAppErrorsDocument = new TypedDocumentString(`
395
+ query SdkAppErrors($workspaceID: ID!, $alias: String!, $status: String, $limit: Int, $cursor: String) {
396
+ appErrors(
397
+ workspaceID: $workspaceID
398
+ alias: $alias
399
+ status: $status
400
+ limit: $limit
401
+ cursor: $cursor
402
+ ) {
403
+ groups {
404
+ ...AppErrorGroupFields
405
+ }
406
+ nextCursor
407
+ note
408
+ }
409
+ }
410
+ fragment AppErrorGroupFields on AppErrorGroup {
411
+ id
412
+ title
413
+ type
414
+ culprit
415
+ level
416
+ status
417
+ count
418
+ storedEvents
419
+ firstSeen
420
+ lastSeen
421
+ firstDeploymentID
422
+ firstGitCommit
423
+ lastDeploymentID
424
+ lastGitCommit
425
+ resolvedInDeploymentID
426
+ resolvedAt
427
+ mutedAt
428
+ regressedAt
429
+ }`);
430
+ export const SdkAppErrorGroupDocument = new TypedDocumentString(`
431
+ query SdkAppErrorGroup($workspaceID: ID!, $alias: String!, $groupID: ID!) {
432
+ appErrorGroup(workspaceID: $workspaceID, alias: $alias, groupID: $groupID) {
433
+ group {
434
+ ...AppErrorGroupFields
435
+ }
436
+ latestEvent
437
+ firstEvent {
438
+ eventID
439
+ at
440
+ deploymentID
441
+ level
442
+ }
443
+ recentEvents {
444
+ eventID
445
+ at
446
+ deploymentID
447
+ level
448
+ }
449
+ deployments {
450
+ deploymentID
451
+ gitCommit
452
+ current
453
+ count
454
+ firstSeen
455
+ lastSeen
456
+ }
457
+ fatal
458
+ vmID
459
+ }
460
+ }
461
+ fragment AppErrorGroupFields on AppErrorGroup {
462
+ id
463
+ title
464
+ type
465
+ culprit
466
+ level
467
+ status
468
+ count
469
+ storedEvents
470
+ firstSeen
471
+ lastSeen
472
+ firstDeploymentID
473
+ firstGitCommit
474
+ lastDeploymentID
475
+ lastGitCommit
476
+ resolvedInDeploymentID
477
+ resolvedAt
478
+ mutedAt
479
+ regressedAt
480
+ }`);
481
+ export const SdkResolveErrorGroupDocument = new TypedDocumentString(`
482
+ mutation SdkResolveErrorGroup($input: AppErrorGroupInput!) {
483
+ resolveAppErrorGroup(input: $input) {
484
+ ...AppErrorGroupFields
485
+ }
486
+ }
487
+ fragment AppErrorGroupFields on AppErrorGroup {
488
+ id
489
+ title
490
+ type
491
+ culprit
492
+ level
493
+ status
494
+ count
495
+ storedEvents
496
+ firstSeen
497
+ lastSeen
498
+ firstDeploymentID
499
+ firstGitCommit
500
+ lastDeploymentID
501
+ lastGitCommit
502
+ resolvedInDeploymentID
503
+ resolvedAt
504
+ mutedAt
505
+ regressedAt
506
+ }`);
507
+ export const SdkMuteErrorGroupDocument = new TypedDocumentString(`
508
+ mutation SdkMuteErrorGroup($input: AppErrorGroupInput!) {
509
+ muteAppErrorGroup(input: $input) {
510
+ ...AppErrorGroupFields
511
+ }
512
+ }
513
+ fragment AppErrorGroupFields on AppErrorGroup {
514
+ id
515
+ title
516
+ type
517
+ culprit
518
+ level
519
+ status
520
+ count
521
+ storedEvents
522
+ firstSeen
523
+ lastSeen
524
+ firstDeploymentID
525
+ firstGitCommit
526
+ lastDeploymentID
527
+ lastGitCommit
528
+ resolvedInDeploymentID
529
+ resolvedAt
530
+ mutedAt
531
+ regressedAt
532
+ }`);
533
+ export const SdkReopenErrorGroupDocument = new TypedDocumentString(`
534
+ mutation SdkReopenErrorGroup($input: AppErrorGroupInput!) {
535
+ reopenAppErrorGroup(input: $input) {
536
+ ...AppErrorGroupFields
537
+ }
538
+ }
539
+ fragment AppErrorGroupFields on AppErrorGroup {
540
+ id
541
+ title
542
+ type
543
+ culprit
544
+ level
545
+ status
546
+ count
547
+ storedEvents
548
+ firstSeen
549
+ lastSeen
550
+ firstDeploymentID
551
+ firstGitCommit
552
+ lastDeploymentID
553
+ lastGitCommit
554
+ resolvedInDeploymentID
555
+ resolvedAt
556
+ mutedAt
557
+ regressedAt
558
+ }`);
559
+ export const SdkEventTypesDocument = new TypedDocumentString(`
560
+ query SdkEventTypes {
561
+ platformEventTypes {
562
+ name
563
+ description
564
+ delivery
565
+ inputSchema
566
+ payloadSchema
567
+ }
568
+ }
569
+ `);
570
+ export const SdkPollEventsDocument = new TypedDocumentString(`
571
+ query SdkPollEvents($input: PlatformEventsInput) {
572
+ pollEvents(input: $input) {
573
+ cursor
574
+ truncated
575
+ hasMore
576
+ nextPollMs
577
+ timedOut
578
+ events {
579
+ eventID
580
+ name
581
+ timestamp
582
+ data
583
+ }
584
+ }
585
+ }
586
+ `);
587
+ export const SdkWaitForEventsDocument = new TypedDocumentString(`
588
+ query SdkWaitForEvents($input: PlatformEventsInput, $timeoutSeconds: Int) {
589
+ waitForEvents(input: $input, timeoutSeconds: $timeoutSeconds) {
590
+ cursor
591
+ truncated
592
+ hasMore
593
+ nextPollMs
594
+ timedOut
595
+ events {
596
+ eventID
597
+ name
598
+ timestamp
599
+ data
600
+ }
601
+ }
602
+ }
603
+ `);
191
604
  export const SdkListFilesDocument = new TypedDocumentString(`
192
605
  query SdkListFiles($input: ListWorkspaceFilesInput!) {
193
606
  workspaceFilesPage(input: $input) {
@@ -517,10 +930,120 @@ export const SdkDeploymentEventsDocument = new TypedDocumentString(`
517
930
  severity
518
931
  message
519
932
  vmID
933
+ metadata
934
+ timings {
935
+ ...DeploymentTimingsFields
936
+ }
520
937
  createdAt
521
938
  }
522
939
  }
523
- `);
940
+ fragment DeploymentTimingsFields on DeploymentTimings {
941
+ totalMs
942
+ buildMs
943
+ promoteMs
944
+ phases
945
+ buildMode
946
+ artifactTransport
947
+ buildMemoryMiB
948
+ }`);
949
+ export const SdkDeploymentTimingsDocument = new TypedDocumentString(`
950
+ query SdkDeploymentTimings($id: ID!) {
951
+ deployment(id: $id) {
952
+ id
953
+ timings {
954
+ ...DeploymentTimingsFields
955
+ }
956
+ }
957
+ }
958
+ fragment DeploymentTimingsFields on DeploymentTimings {
959
+ totalMs
960
+ buildMs
961
+ promoteMs
962
+ phases
963
+ buildMode
964
+ artifactTransport
965
+ buildMemoryMiB
966
+ }`);
967
+ export const SdkWaitForDeploymentDocument = new TypedDocumentString(`
968
+ query SdkWaitForDeployment($id: ID!, $timeoutSeconds: Int) {
969
+ waitForDeployment(id: $id, timeoutSeconds: $timeoutSeconds) {
970
+ timedOut
971
+ waitedMs
972
+ placement
973
+ deployment {
974
+ ...DeploymentFields
975
+ }
976
+ }
977
+ }
978
+ fragment DeploymentFields on Deployment {
979
+ id
980
+ workspaceID
981
+ kind
982
+ runtime
983
+ alias
984
+ serviceMode
985
+ healthPath
986
+ cronSchedule
987
+ cronPath
988
+ url
989
+ previewUrl
990
+ sshCommand
991
+ aliasHeld
992
+ aliasRevision
993
+ status
994
+ error
995
+ filesCount
996
+ sizeBytes
997
+ size
998
+ spaMode
999
+ gitRepo
1000
+ gitCommit
1001
+ createdAt
1002
+ }`);
1003
+ export const SdkWaitForCommitDeploymentDocument = new TypedDocumentString(`
1004
+ query SdkWaitForCommitDeployment($workspaceID: ID!, $gitCommit: String!, $alias: String, $after: Int, $timeoutSeconds: Int) {
1005
+ waitForDeployment(
1006
+ workspaceID: $workspaceID
1007
+ gitCommit: $gitCommit
1008
+ alias: $alias
1009
+ after: $after
1010
+ timeoutSeconds: $timeoutSeconds
1011
+ ) {
1012
+ status
1013
+ importStatus
1014
+ importError
1015
+ timedOut
1016
+ waitedMs
1017
+ deployment {
1018
+ ...DeploymentFields
1019
+ }
1020
+ }
1021
+ }
1022
+ fragment DeploymentFields on Deployment {
1023
+ id
1024
+ workspaceID
1025
+ kind
1026
+ runtime
1027
+ alias
1028
+ serviceMode
1029
+ healthPath
1030
+ cronSchedule
1031
+ cronPath
1032
+ url
1033
+ previewUrl
1034
+ sshCommand
1035
+ aliasHeld
1036
+ aliasRevision
1037
+ status
1038
+ error
1039
+ filesCount
1040
+ sizeBytes
1041
+ size
1042
+ spaMode
1043
+ gitRepo
1044
+ gitCommit
1045
+ createdAt
1046
+ }`);
524
1047
  export const SdkRestartServiceDocument = new TypedDocumentString(`
525
1048
  mutation SdkRestartService($deploymentID: ID!) {
526
1049
  restartService(input: {deploymentID: $deploymentID}) {