unfazed 0.8.0 → 0.9.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 +80 -0
- package/README.md +93 -5
- package/REFERENCE.md +72 -13
- package/dist/cli/login.d.ts +1 -1
- package/dist/client.d.ts +21 -1
- package/dist/client.js +12 -4
- package/dist/client.js.map +1 -1
- package/dist/errors.d.ts +49 -0
- package/dist/errors.js +25 -0
- package/dist/errors.js.map +1 -1
- package/dist/generated/gql.d.ts +14 -2
- package/dist/generated/gql.js +5 -2
- package/dist/generated/gql.js.map +1 -1
- package/dist/generated/graphql.d.ts +82 -1
- package/dist/generated/graphql.js +87 -1
- package/dist/generated/graphql.js.map +1 -1
- package/dist/index.d.ts +17 -3
- package/dist/index.js +14 -1
- package/dist/index.js.map +1 -1
- package/dist/oidc.d.ts +161 -0
- package/dist/oidc.js +391 -0
- package/dist/oidc.js.map +1 -0
- package/dist/operations.d.ts +29 -1
- package/dist/operations.js +70 -1
- package/dist/operations.js.map +1 -1
- package/dist/reference.generated.js +1 -1
- package/dist/reference.generated.js.map +1 -1
- package/dist/reference.js +3 -3
- package/dist/reference.js.map +1 -1
- package/dist/unfazed.d.ts +84 -19
- package/dist/unfazed.js +249 -54
- package/dist/unfazed.js.map +1 -1
- package/package.json +1 -1
- package/schema/SOURCE.json +3 -3
- package/schema/schema.graphqls +81 -5
|
@@ -481,10 +481,12 @@ export type SdkRestoreVersionMutation = {
|
|
|
481
481
|
committed: boolean;
|
|
482
482
|
deploys: boolean;
|
|
483
483
|
message: string;
|
|
484
|
+
workspaceID: string;
|
|
484
485
|
branch: string;
|
|
485
486
|
deployAlias: string | null;
|
|
486
487
|
restoredFrom: string;
|
|
487
488
|
parent: string | null;
|
|
489
|
+
waitAfter: number;
|
|
488
490
|
};
|
|
489
491
|
};
|
|
490
492
|
export type AppErrorGroupFieldsFragment = {
|
|
@@ -1036,6 +1038,15 @@ export type SdkServiceLogsQuery = {
|
|
|
1036
1038
|
tailBytes: number;
|
|
1037
1039
|
};
|
|
1038
1040
|
};
|
|
1041
|
+
export type DeploymentTimingsFieldsFragment = {
|
|
1042
|
+
totalMs: number | null;
|
|
1043
|
+
buildMs: number | null;
|
|
1044
|
+
promoteMs: number | null;
|
|
1045
|
+
phases: unknown;
|
|
1046
|
+
buildMode: string | null;
|
|
1047
|
+
artifactTransport: string | null;
|
|
1048
|
+
buildMemoryMiB: number | null;
|
|
1049
|
+
};
|
|
1039
1050
|
export type SdkDeploymentEventsQueryVariables = Exact<{
|
|
1040
1051
|
deploymentID: string | number;
|
|
1041
1052
|
limit?: number | null | undefined;
|
|
@@ -1051,8 +1062,34 @@ export type SdkDeploymentEventsQuery = {
|
|
|
1051
1062
|
vmID: string | null;
|
|
1052
1063
|
metadata: unknown;
|
|
1053
1064
|
createdAt: string;
|
|
1065
|
+
timings: {
|
|
1066
|
+
totalMs: number | null;
|
|
1067
|
+
buildMs: number | null;
|
|
1068
|
+
promoteMs: number | null;
|
|
1069
|
+
phases: unknown;
|
|
1070
|
+
buildMode: string | null;
|
|
1071
|
+
artifactTransport: string | null;
|
|
1072
|
+
buildMemoryMiB: number | null;
|
|
1073
|
+
} | null;
|
|
1054
1074
|
}>;
|
|
1055
1075
|
};
|
|
1076
|
+
export type SdkDeploymentTimingsQueryVariables = Exact<{
|
|
1077
|
+
id: string | number;
|
|
1078
|
+
}>;
|
|
1079
|
+
export type SdkDeploymentTimingsQuery = {
|
|
1080
|
+
deployment: {
|
|
1081
|
+
id: string;
|
|
1082
|
+
timings: {
|
|
1083
|
+
totalMs: number | null;
|
|
1084
|
+
buildMs: number | null;
|
|
1085
|
+
promoteMs: number | null;
|
|
1086
|
+
phases: unknown;
|
|
1087
|
+
buildMode: string | null;
|
|
1088
|
+
artifactTransport: string | null;
|
|
1089
|
+
buildMemoryMiB: number | null;
|
|
1090
|
+
} | null;
|
|
1091
|
+
} | null;
|
|
1092
|
+
};
|
|
1056
1093
|
export type SdkWaitForDeploymentQueryVariables = Exact<{
|
|
1057
1094
|
id: string | number;
|
|
1058
1095
|
timeoutSeconds?: number | null | undefined;
|
|
@@ -1086,7 +1123,48 @@ export type SdkWaitForDeploymentQuery = {
|
|
|
1086
1123
|
gitRepo: string | null;
|
|
1087
1124
|
gitCommit: string | null;
|
|
1088
1125
|
createdAt: string;
|
|
1089
|
-
};
|
|
1126
|
+
} | null;
|
|
1127
|
+
};
|
|
1128
|
+
};
|
|
1129
|
+
export type SdkWaitForCommitDeploymentQueryVariables = Exact<{
|
|
1130
|
+
workspaceID: string | number;
|
|
1131
|
+
gitCommit: string;
|
|
1132
|
+
alias?: string | null | undefined;
|
|
1133
|
+
after?: number | null | undefined;
|
|
1134
|
+
timeoutSeconds?: number | null | undefined;
|
|
1135
|
+
}>;
|
|
1136
|
+
export type SdkWaitForCommitDeploymentQuery = {
|
|
1137
|
+
waitForDeployment: {
|
|
1138
|
+
status: string;
|
|
1139
|
+
importStatus: string | null;
|
|
1140
|
+
importError: string | null;
|
|
1141
|
+
timedOut: boolean;
|
|
1142
|
+
waitedMs: number;
|
|
1143
|
+
deployment: {
|
|
1144
|
+
id: string;
|
|
1145
|
+
workspaceID: string;
|
|
1146
|
+
kind: DeploymentKind;
|
|
1147
|
+
runtime: ServiceRuntime | null;
|
|
1148
|
+
alias: string | null;
|
|
1149
|
+
serviceMode: ServiceMode;
|
|
1150
|
+
healthPath: string | null;
|
|
1151
|
+
cronSchedule: string | null;
|
|
1152
|
+
cronPath: string | null;
|
|
1153
|
+
url: string;
|
|
1154
|
+
previewUrl: string;
|
|
1155
|
+
sshCommand: string | null;
|
|
1156
|
+
aliasHeld: boolean;
|
|
1157
|
+
aliasRevision: string;
|
|
1158
|
+
status: DeploymentStatus;
|
|
1159
|
+
error: string | null;
|
|
1160
|
+
filesCount: number;
|
|
1161
|
+
sizeBytes: number;
|
|
1162
|
+
size: string;
|
|
1163
|
+
spaMode: boolean;
|
|
1164
|
+
gitRepo: string | null;
|
|
1165
|
+
gitCommit: string | null;
|
|
1166
|
+
createdAt: string;
|
|
1167
|
+
} | null;
|
|
1090
1168
|
};
|
|
1091
1169
|
};
|
|
1092
1170
|
export type SdkRestartServiceMutationVariables = Exact<{
|
|
@@ -1763,6 +1841,7 @@ export declare class TypedDocumentString<TResult, TVariables> extends String imp
|
|
|
1763
1841
|
export declare const DeploymentFieldsFragmentDoc: TypedDocumentString<DeploymentFieldsFragment, unknown>;
|
|
1764
1842
|
export declare const FileCommitFieldsFragmentDoc: TypedDocumentString<FileCommitFieldsFragment, unknown>;
|
|
1765
1843
|
export declare const AppErrorGroupFieldsFragmentDoc: TypedDocumentString<AppErrorGroupFieldsFragment, unknown>;
|
|
1844
|
+
export declare const DeploymentTimingsFieldsFragmentDoc: TypedDocumentString<DeploymentTimingsFieldsFragment, unknown>;
|
|
1766
1845
|
export declare const RunFieldsFragmentDoc: TypedDocumentString<RunFieldsFragment, unknown>;
|
|
1767
1846
|
export declare const SdkWhoamiDocument: TypedDocumentString<SdkWhoamiQuery, SdkWhoamiQueryVariables>;
|
|
1768
1847
|
export declare const SdkCreateWorkspaceDocument: TypedDocumentString<SdkCreateWorkspaceMutation, SdkCreateWorkspaceMutationVariables>;
|
|
@@ -1800,7 +1879,9 @@ export declare const SdkRollbackDocument: TypedDocumentString<SdkRollbackMutatio
|
|
|
1800
1879
|
export declare const SdkServiceStatusDocument: TypedDocumentString<SdkServiceStatusQuery, SdkServiceStatusQueryVariables>;
|
|
1801
1880
|
export declare const SdkServiceLogsDocument: TypedDocumentString<SdkServiceLogsQuery, SdkServiceLogsQueryVariables>;
|
|
1802
1881
|
export declare const SdkDeploymentEventsDocument: TypedDocumentString<SdkDeploymentEventsQuery, SdkDeploymentEventsQueryVariables>;
|
|
1882
|
+
export declare const SdkDeploymentTimingsDocument: TypedDocumentString<SdkDeploymentTimingsQuery, SdkDeploymentTimingsQueryVariables>;
|
|
1803
1883
|
export declare const SdkWaitForDeploymentDocument: TypedDocumentString<SdkWaitForDeploymentQuery, SdkWaitForDeploymentQueryVariables>;
|
|
1884
|
+
export declare const SdkWaitForCommitDeploymentDocument: TypedDocumentString<SdkWaitForCommitDeploymentQuery, SdkWaitForCommitDeploymentQueryVariables>;
|
|
1804
1885
|
export declare const SdkRestartServiceDocument: TypedDocumentString<SdkRestartServiceMutation, SdkRestartServiceMutationVariables>;
|
|
1805
1886
|
export declare const SdkStopServiceDocument: TypedDocumentString<SdkStopServiceMutation, SdkStopServiceMutationVariables>;
|
|
1806
1887
|
export declare const SdkDeleteDeploymentDocument: TypedDocumentString<SdkDeleteDeploymentMutation, SdkDeleteDeploymentMutationVariables>;
|
|
@@ -74,6 +74,17 @@ export const AppErrorGroupFieldsFragmentDoc = new TypedDocumentString(`
|
|
|
74
74
|
regressedAt
|
|
75
75
|
}
|
|
76
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" });
|
|
77
88
|
export const RunFieldsFragmentDoc = new TypedDocumentString(`
|
|
78
89
|
fragment RunFields on Run {
|
|
79
90
|
id
|
|
@@ -371,10 +382,12 @@ export const SdkRestoreVersionDocument = new TypedDocumentString(`
|
|
|
371
382
|
committed
|
|
372
383
|
deploys
|
|
373
384
|
message
|
|
385
|
+
workspaceID
|
|
374
386
|
branch
|
|
375
387
|
deployAlias
|
|
376
388
|
restoredFrom
|
|
377
389
|
parent
|
|
390
|
+
waitAfter
|
|
378
391
|
}
|
|
379
392
|
}
|
|
380
393
|
`);
|
|
@@ -918,10 +931,39 @@ export const SdkDeploymentEventsDocument = new TypedDocumentString(`
|
|
|
918
931
|
message
|
|
919
932
|
vmID
|
|
920
933
|
metadata
|
|
934
|
+
timings {
|
|
935
|
+
...DeploymentTimingsFields
|
|
936
|
+
}
|
|
921
937
|
createdAt
|
|
922
938
|
}
|
|
923
939
|
}
|
|
924
|
-
|
|
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
|
+
}`);
|
|
925
967
|
export const SdkWaitForDeploymentDocument = new TypedDocumentString(`
|
|
926
968
|
query SdkWaitForDeployment($id: ID!, $timeoutSeconds: Int) {
|
|
927
969
|
waitForDeployment(id: $id, timeoutSeconds: $timeoutSeconds) {
|
|
@@ -958,6 +1000,50 @@ export const SdkWaitForDeploymentDocument = new TypedDocumentString(`
|
|
|
958
1000
|
gitCommit
|
|
959
1001
|
createdAt
|
|
960
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
|
+
}`);
|
|
961
1047
|
export const SdkRestartServiceDocument = new TypedDocumentString(`
|
|
962
1048
|
mutation SdkRestartService($deploymentID: ID!) {
|
|
963
1049
|
restartService(input: {deploymentID: $deploymentID}) {
|