@sealant/api-contracts-next 0.40.0-next.802 → 0.40.0-next.805
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/dist/core-api/control-plane.d.ts +1177 -1115
- package/dist/core-api/workspaces.d.ts +250 -20
- package/dist/core-api/workspaces.js +73 -0
- package/package.json +2 -2
|
@@ -1580,27 +1580,133 @@ export declare const workspaceSummarySchema: Schema.Struct<{
|
|
|
1580
1580
|
readonly expiresAt: Schema.optional<Schema.String>;
|
|
1581
1581
|
}>;
|
|
1582
1582
|
export type WorkspaceSummary = typeof workspaceSummarySchema.Type;
|
|
1583
|
-
/**
|
|
1584
|
-
|
|
1585
|
-
|
|
1586
|
-
|
|
1587
|
-
|
|
1588
|
-
|
|
1589
|
-
|
|
1590
|
-
|
|
1591
|
-
|
|
1592
|
-
|
|
1593
|
-
|
|
1594
|
-
|
|
1595
|
-
|
|
1596
|
-
|
|
1597
|
-
|
|
1598
|
-
|
|
1599
|
-
|
|
1600
|
-
|
|
1601
|
-
|
|
1602
|
-
|
|
1583
|
+
/** Current custody and dated provider facts. Snapshot custody never implies a running VM. */
|
|
1584
|
+
export declare const workspacePreservationSchema: Schema.Struct<{
|
|
1585
|
+
readonly version: Schema.Literal<1>;
|
|
1586
|
+
readonly runId: Schema.String;
|
|
1587
|
+
readonly revision: Schema.Int;
|
|
1588
|
+
readonly desired: Schema.Literals<readonly ["preserve", "recover", "discard"]>;
|
|
1589
|
+
readonly state: Schema.Literals<readonly ["active", "retained", "parking", "parked", "recovering", "closed", "unknown"]>;
|
|
1590
|
+
readonly snapshotOnly: Schema.Boolean;
|
|
1591
|
+
readonly retainedSince: Schema.String;
|
|
1592
|
+
readonly parkingEligibleAt: Schema.String;
|
|
1593
|
+
readonly parkingDelaySeconds: Schema.Int;
|
|
1594
|
+
readonly policyRevision: Schema.String;
|
|
1595
|
+
readonly currentIncarnationId: Schema.String;
|
|
1596
|
+
readonly vms: Schema.$Array<Schema.Struct<{
|
|
1597
|
+
readonly id: Schema.String;
|
|
1598
|
+
readonly incarnationId: Schema.String;
|
|
1599
|
+
readonly runtimeInstanceId: Schema.String;
|
|
1600
|
+
readonly role: Schema.Literals<readonly ["source", "recovery"]>;
|
|
1601
|
+
readonly compute: Schema.Union<readonly [Schema.Struct<{
|
|
1602
|
+
readonly state: Schema.Literals<readonly ["running", "not-running"]>;
|
|
1603
|
+
readonly observedAt: Schema.String;
|
|
1604
|
+
readonly basis: Schema.Literals<readonly ["provider-running", "provider-stopped"]>;
|
|
1605
|
+
}>, Schema.Struct<{
|
|
1606
|
+
readonly state: Schema.Literal<"not-running">;
|
|
1607
|
+
readonly observedAt: Schema.String;
|
|
1608
|
+
readonly basis: Schema.Literal<"completed-removal">;
|
|
1609
|
+
}>, Schema.Struct<{
|
|
1610
|
+
readonly state: Schema.Literal<"unknown">;
|
|
1611
|
+
readonly reason: Schema.Literals<readonly ["not-observed", "stale", "removal-unresolved"]>;
|
|
1612
|
+
readonly lastObserved: Schema.optional<Schema.Struct<{
|
|
1613
|
+
readonly state: Schema.Literals<readonly ["running", "not-running"]>;
|
|
1614
|
+
readonly observedAt: Schema.String;
|
|
1615
|
+
readonly basis: Schema.Literals<readonly ["provider-running", "provider-stopped"]>;
|
|
1616
|
+
}>>;
|
|
1617
|
+
}>]>;
|
|
1618
|
+
readonly removal: Schema.Literals<readonly ["not-issued", "unresolved", "completed"]>;
|
|
1619
|
+
}>>;
|
|
1620
|
+
readonly snapshots: Schema.$Array<Schema.Struct<{
|
|
1621
|
+
readonly name: Schema.String;
|
|
1622
|
+
readonly snapshotId: Schema.optional<Schema.String>;
|
|
1623
|
+
readonly sourceVmId: Schema.String;
|
|
1624
|
+
readonly state: Schema.Literals<readonly ["reserved", "saving", "verified", "retiring", "removed", "unknown"]>;
|
|
1625
|
+
readonly privacy: Schema.Literals<readonly ["verified-private", "unknown"]>;
|
|
1626
|
+
}>>;
|
|
1627
|
+
readonly operations: Schema.$Array<Schema.Struct<{
|
|
1628
|
+
readonly id: Schema.String;
|
|
1629
|
+
readonly kind: Schema.String;
|
|
1630
|
+
readonly state: Schema.Literals<readonly ["prepared", "issued", "unknown", "settled"]>;
|
|
1631
|
+
}>>;
|
|
1632
|
+
readonly allowance: Schema.Struct<{
|
|
1633
|
+
readonly state: Schema.Literals<readonly ["observed", "unknown"]>;
|
|
1634
|
+
readonly reason: Schema.optional<Schema.Literals<readonly ["not-observed", "stale"]>>;
|
|
1635
|
+
readonly lastObserved: Schema.optional<Schema.Struct<{
|
|
1636
|
+
readonly scope: Schema.String;
|
|
1637
|
+
readonly included: Schema.Int;
|
|
1638
|
+
readonly used: Schema.Int;
|
|
1639
|
+
readonly extra: Schema.Int;
|
|
1640
|
+
readonly extraDailyDollars: Schema.Number;
|
|
1641
|
+
readonly observedAt: Schema.String;
|
|
1642
|
+
}>>;
|
|
1643
|
+
}>;
|
|
1644
|
+
readonly blockers: Schema.$Array<Schema.String>;
|
|
1645
|
+
}>;
|
|
1646
|
+
export type WorkspacePreservation = typeof workspacePreservationSchema.Type;
|
|
1603
1647
|
export declare const workspaceCaptureDrainSchema: Schema.Struct<{
|
|
1648
|
+
readonly preservation: Schema.optional<Schema.Struct<{
|
|
1649
|
+
readonly version: Schema.Literal<1>;
|
|
1650
|
+
readonly runId: Schema.String;
|
|
1651
|
+
readonly revision: Schema.Int;
|
|
1652
|
+
readonly desired: Schema.Literals<readonly ["preserve", "recover", "discard"]>;
|
|
1653
|
+
readonly state: Schema.Literals<readonly ["active", "retained", "parking", "parked", "recovering", "closed", "unknown"]>;
|
|
1654
|
+
readonly snapshotOnly: Schema.Boolean;
|
|
1655
|
+
readonly retainedSince: Schema.String;
|
|
1656
|
+
readonly parkingEligibleAt: Schema.String;
|
|
1657
|
+
readonly parkingDelaySeconds: Schema.Int;
|
|
1658
|
+
readonly policyRevision: Schema.String;
|
|
1659
|
+
readonly currentIncarnationId: Schema.String;
|
|
1660
|
+
readonly vms: Schema.$Array<Schema.Struct<{
|
|
1661
|
+
readonly id: Schema.String;
|
|
1662
|
+
readonly incarnationId: Schema.String;
|
|
1663
|
+
readonly runtimeInstanceId: Schema.String;
|
|
1664
|
+
readonly role: Schema.Literals<readonly ["source", "recovery"]>;
|
|
1665
|
+
readonly compute: Schema.Union<readonly [Schema.Struct<{
|
|
1666
|
+
readonly state: Schema.Literals<readonly ["running", "not-running"]>;
|
|
1667
|
+
readonly observedAt: Schema.String;
|
|
1668
|
+
readonly basis: Schema.Literals<readonly ["provider-running", "provider-stopped"]>;
|
|
1669
|
+
}>, Schema.Struct<{
|
|
1670
|
+
readonly state: Schema.Literal<"not-running">;
|
|
1671
|
+
readonly observedAt: Schema.String;
|
|
1672
|
+
readonly basis: Schema.Literal<"completed-removal">;
|
|
1673
|
+
}>, Schema.Struct<{
|
|
1674
|
+
readonly state: Schema.Literal<"unknown">;
|
|
1675
|
+
readonly reason: Schema.Literals<readonly ["not-observed", "stale", "removal-unresolved"]>;
|
|
1676
|
+
readonly lastObserved: Schema.optional<Schema.Struct<{
|
|
1677
|
+
readonly state: Schema.Literals<readonly ["running", "not-running"]>;
|
|
1678
|
+
readonly observedAt: Schema.String;
|
|
1679
|
+
readonly basis: Schema.Literals<readonly ["provider-running", "provider-stopped"]>;
|
|
1680
|
+
}>>;
|
|
1681
|
+
}>]>;
|
|
1682
|
+
readonly removal: Schema.Literals<readonly ["not-issued", "unresolved", "completed"]>;
|
|
1683
|
+
}>>;
|
|
1684
|
+
readonly snapshots: Schema.$Array<Schema.Struct<{
|
|
1685
|
+
readonly name: Schema.String;
|
|
1686
|
+
readonly snapshotId: Schema.optional<Schema.String>;
|
|
1687
|
+
readonly sourceVmId: Schema.String;
|
|
1688
|
+
readonly state: Schema.Literals<readonly ["reserved", "saving", "verified", "retiring", "removed", "unknown"]>;
|
|
1689
|
+
readonly privacy: Schema.Literals<readonly ["verified-private", "unknown"]>;
|
|
1690
|
+
}>>;
|
|
1691
|
+
readonly operations: Schema.$Array<Schema.Struct<{
|
|
1692
|
+
readonly id: Schema.String;
|
|
1693
|
+
readonly kind: Schema.String;
|
|
1694
|
+
readonly state: Schema.Literals<readonly ["prepared", "issued", "unknown", "settled"]>;
|
|
1695
|
+
}>>;
|
|
1696
|
+
readonly allowance: Schema.Struct<{
|
|
1697
|
+
readonly state: Schema.Literals<readonly ["observed", "unknown"]>;
|
|
1698
|
+
readonly reason: Schema.optional<Schema.Literals<readonly ["not-observed", "stale"]>>;
|
|
1699
|
+
readonly lastObserved: Schema.optional<Schema.Struct<{
|
|
1700
|
+
readonly scope: Schema.String;
|
|
1701
|
+
readonly included: Schema.Int;
|
|
1702
|
+
readonly used: Schema.Int;
|
|
1703
|
+
readonly extra: Schema.Int;
|
|
1704
|
+
readonly extraDailyDollars: Schema.Number;
|
|
1705
|
+
readonly observedAt: Schema.String;
|
|
1706
|
+
}>>;
|
|
1707
|
+
}>;
|
|
1708
|
+
readonly blockers: Schema.$Array<Schema.String>;
|
|
1709
|
+
}>>;
|
|
1604
1710
|
readonly state: Schema.Literals<readonly ["draining", "kept", "saved", "gone", "stop-failed", "stopped", "discarded"]>;
|
|
1605
1711
|
readonly detail: Schema.optional<Schema.String>;
|
|
1606
1712
|
/** ISO-8601: when this was observed. */
|
|
@@ -1799,6 +1905,68 @@ export declare const workspaceDetailsSchema: Schema.Struct<{
|
|
|
1799
1905
|
* Absent while no drain or preservation schedule exists, and from older control planes.
|
|
1800
1906
|
*/
|
|
1801
1907
|
readonly captureDrain: Schema.optional<Schema.Struct<{
|
|
1908
|
+
readonly preservation: Schema.optional<Schema.Struct<{
|
|
1909
|
+
readonly version: Schema.Literal<1>;
|
|
1910
|
+
readonly runId: Schema.String;
|
|
1911
|
+
readonly revision: Schema.Int;
|
|
1912
|
+
readonly desired: Schema.Literals<readonly ["preserve", "recover", "discard"]>;
|
|
1913
|
+
readonly state: Schema.Literals<readonly ["active", "retained", "parking", "parked", "recovering", "closed", "unknown"]>;
|
|
1914
|
+
readonly snapshotOnly: Schema.Boolean;
|
|
1915
|
+
readonly retainedSince: Schema.String;
|
|
1916
|
+
readonly parkingEligibleAt: Schema.String;
|
|
1917
|
+
readonly parkingDelaySeconds: Schema.Int;
|
|
1918
|
+
readonly policyRevision: Schema.String;
|
|
1919
|
+
readonly currentIncarnationId: Schema.String;
|
|
1920
|
+
readonly vms: Schema.$Array<Schema.Struct<{
|
|
1921
|
+
readonly id: Schema.String;
|
|
1922
|
+
readonly incarnationId: Schema.String;
|
|
1923
|
+
readonly runtimeInstanceId: Schema.String;
|
|
1924
|
+
readonly role: Schema.Literals<readonly ["source", "recovery"]>;
|
|
1925
|
+
readonly compute: Schema.Union<readonly [Schema.Struct<{
|
|
1926
|
+
readonly state: Schema.Literals<readonly ["running", "not-running"]>;
|
|
1927
|
+
readonly observedAt: Schema.String;
|
|
1928
|
+
readonly basis: Schema.Literals<readonly ["provider-running", "provider-stopped"]>;
|
|
1929
|
+
}>, Schema.Struct<{
|
|
1930
|
+
readonly state: Schema.Literal<"not-running">;
|
|
1931
|
+
readonly observedAt: Schema.String;
|
|
1932
|
+
readonly basis: Schema.Literal<"completed-removal">;
|
|
1933
|
+
}>, Schema.Struct<{
|
|
1934
|
+
readonly state: Schema.Literal<"unknown">;
|
|
1935
|
+
readonly reason: Schema.Literals<readonly ["not-observed", "stale", "removal-unresolved"]>;
|
|
1936
|
+
readonly lastObserved: Schema.optional<Schema.Struct<{
|
|
1937
|
+
readonly state: Schema.Literals<readonly ["running", "not-running"]>;
|
|
1938
|
+
readonly observedAt: Schema.String;
|
|
1939
|
+
readonly basis: Schema.Literals<readonly ["provider-running", "provider-stopped"]>;
|
|
1940
|
+
}>>;
|
|
1941
|
+
}>]>;
|
|
1942
|
+
readonly removal: Schema.Literals<readonly ["not-issued", "unresolved", "completed"]>;
|
|
1943
|
+
}>>;
|
|
1944
|
+
readonly snapshots: Schema.$Array<Schema.Struct<{
|
|
1945
|
+
readonly name: Schema.String;
|
|
1946
|
+
readonly snapshotId: Schema.optional<Schema.String>;
|
|
1947
|
+
readonly sourceVmId: Schema.String;
|
|
1948
|
+
readonly state: Schema.Literals<readonly ["reserved", "saving", "verified", "retiring", "removed", "unknown"]>;
|
|
1949
|
+
readonly privacy: Schema.Literals<readonly ["verified-private", "unknown"]>;
|
|
1950
|
+
}>>;
|
|
1951
|
+
readonly operations: Schema.$Array<Schema.Struct<{
|
|
1952
|
+
readonly id: Schema.String;
|
|
1953
|
+
readonly kind: Schema.String;
|
|
1954
|
+
readonly state: Schema.Literals<readonly ["prepared", "issued", "unknown", "settled"]>;
|
|
1955
|
+
}>>;
|
|
1956
|
+
readonly allowance: Schema.Struct<{
|
|
1957
|
+
readonly state: Schema.Literals<readonly ["observed", "unknown"]>;
|
|
1958
|
+
readonly reason: Schema.optional<Schema.Literals<readonly ["not-observed", "stale"]>>;
|
|
1959
|
+
readonly lastObserved: Schema.optional<Schema.Struct<{
|
|
1960
|
+
readonly scope: Schema.String;
|
|
1961
|
+
readonly included: Schema.Int;
|
|
1962
|
+
readonly used: Schema.Int;
|
|
1963
|
+
readonly extra: Schema.Int;
|
|
1964
|
+
readonly extraDailyDollars: Schema.Number;
|
|
1965
|
+
readonly observedAt: Schema.String;
|
|
1966
|
+
}>>;
|
|
1967
|
+
}>;
|
|
1968
|
+
readonly blockers: Schema.$Array<Schema.String>;
|
|
1969
|
+
}>>;
|
|
1802
1970
|
readonly state: Schema.Literals<readonly ["draining", "kept", "saved", "gone", "stop-failed", "stopped", "discarded"]>;
|
|
1803
1971
|
readonly detail: Schema.optional<Schema.String>;
|
|
1804
1972
|
/** ISO-8601: when this was observed. */
|
|
@@ -2942,6 +3110,68 @@ export declare const WorkspacesGroup: HttpApiGroup.HttpApiGroup<"workspaces", Ht
|
|
|
2942
3110
|
* Absent while no drain or preservation schedule exists, and from older control planes.
|
|
2943
3111
|
*/
|
|
2944
3112
|
readonly captureDrain: Schema.optional<Schema.Struct<{
|
|
3113
|
+
readonly preservation: Schema.optional<Schema.Struct<{
|
|
3114
|
+
readonly version: Schema.Literal<1>;
|
|
3115
|
+
readonly runId: Schema.String;
|
|
3116
|
+
readonly revision: Schema.Int;
|
|
3117
|
+
readonly desired: Schema.Literals<readonly ["preserve", "recover", "discard"]>;
|
|
3118
|
+
readonly state: Schema.Literals<readonly ["active", "retained", "parking", "parked", "recovering", "closed", "unknown"]>;
|
|
3119
|
+
readonly snapshotOnly: Schema.Boolean;
|
|
3120
|
+
readonly retainedSince: Schema.String;
|
|
3121
|
+
readonly parkingEligibleAt: Schema.String;
|
|
3122
|
+
readonly parkingDelaySeconds: Schema.Int;
|
|
3123
|
+
readonly policyRevision: Schema.String;
|
|
3124
|
+
readonly currentIncarnationId: Schema.String;
|
|
3125
|
+
readonly vms: Schema.$Array<Schema.Struct<{
|
|
3126
|
+
readonly id: Schema.String;
|
|
3127
|
+
readonly incarnationId: Schema.String;
|
|
3128
|
+
readonly runtimeInstanceId: Schema.String;
|
|
3129
|
+
readonly role: Schema.Literals<readonly ["source", "recovery"]>;
|
|
3130
|
+
readonly compute: Schema.Union<readonly [Schema.Struct<{
|
|
3131
|
+
readonly state: Schema.Literals<readonly ["running", "not-running"]>;
|
|
3132
|
+
readonly observedAt: Schema.String;
|
|
3133
|
+
readonly basis: Schema.Literals<readonly ["provider-running", "provider-stopped"]>;
|
|
3134
|
+
}>, Schema.Struct<{
|
|
3135
|
+
readonly state: Schema.Literal<"not-running">;
|
|
3136
|
+
readonly observedAt: Schema.String;
|
|
3137
|
+
readonly basis: Schema.Literal<"completed-removal">;
|
|
3138
|
+
}>, Schema.Struct<{
|
|
3139
|
+
readonly state: Schema.Literal<"unknown">;
|
|
3140
|
+
readonly reason: Schema.Literals<readonly ["not-observed", "stale", "removal-unresolved"]>;
|
|
3141
|
+
readonly lastObserved: Schema.optional<Schema.Struct<{
|
|
3142
|
+
readonly state: Schema.Literals<readonly ["running", "not-running"]>;
|
|
3143
|
+
readonly observedAt: Schema.String;
|
|
3144
|
+
readonly basis: Schema.Literals<readonly ["provider-running", "provider-stopped"]>;
|
|
3145
|
+
}>>;
|
|
3146
|
+
}>]>;
|
|
3147
|
+
readonly removal: Schema.Literals<readonly ["not-issued", "unresolved", "completed"]>;
|
|
3148
|
+
}>>;
|
|
3149
|
+
readonly snapshots: Schema.$Array<Schema.Struct<{
|
|
3150
|
+
readonly name: Schema.String;
|
|
3151
|
+
readonly snapshotId: Schema.optional<Schema.String>;
|
|
3152
|
+
readonly sourceVmId: Schema.String;
|
|
3153
|
+
readonly state: Schema.Literals<readonly ["reserved", "saving", "verified", "retiring", "removed", "unknown"]>;
|
|
3154
|
+
readonly privacy: Schema.Literals<readonly ["verified-private", "unknown"]>;
|
|
3155
|
+
}>>;
|
|
3156
|
+
readonly operations: Schema.$Array<Schema.Struct<{
|
|
3157
|
+
readonly id: Schema.String;
|
|
3158
|
+
readonly kind: Schema.String;
|
|
3159
|
+
readonly state: Schema.Literals<readonly ["prepared", "issued", "unknown", "settled"]>;
|
|
3160
|
+
}>>;
|
|
3161
|
+
readonly allowance: Schema.Struct<{
|
|
3162
|
+
readonly state: Schema.Literals<readonly ["observed", "unknown"]>;
|
|
3163
|
+
readonly reason: Schema.optional<Schema.Literals<readonly ["not-observed", "stale"]>>;
|
|
3164
|
+
readonly lastObserved: Schema.optional<Schema.Struct<{
|
|
3165
|
+
readonly scope: Schema.String;
|
|
3166
|
+
readonly included: Schema.Int;
|
|
3167
|
+
readonly used: Schema.Int;
|
|
3168
|
+
readonly extra: Schema.Int;
|
|
3169
|
+
readonly extraDailyDollars: Schema.Number;
|
|
3170
|
+
readonly observedAt: Schema.String;
|
|
3171
|
+
}>>;
|
|
3172
|
+
}>;
|
|
3173
|
+
readonly blockers: Schema.$Array<Schema.String>;
|
|
3174
|
+
}>>;
|
|
2945
3175
|
readonly state: Schema.Literals<readonly ["draining", "kept", "saved", "gone", "stop-failed", "stopped", "discarded"]>;
|
|
2946
3176
|
readonly detail: Schema.optional<Schema.String>;
|
|
2947
3177
|
/** ISO-8601: when this was observed. */
|
|
@@ -1064,7 +1064,80 @@ export const workspaceSummarySchema = Schema.Struct({
|
|
|
1064
1064
|
* `preservationStartsAt` is when the control plane starts that drain on its own ahead of the
|
|
1065
1065
|
* runtime's deadline (`runtime.deadline`), once it has planned one.
|
|
1066
1066
|
*/
|
|
1067
|
+
const preservationComputeObservation = Schema.Struct({
|
|
1068
|
+
state: Schema.Literals(["running", "not-running"]),
|
|
1069
|
+
observedAt: Schema.String,
|
|
1070
|
+
basis: Schema.Literals(["provider-running", "provider-stopped"]),
|
|
1071
|
+
});
|
|
1072
|
+
/** Current custody and dated provider facts. Snapshot custody never implies a running VM. */
|
|
1073
|
+
export const workspacePreservationSchema = Schema.Struct({
|
|
1074
|
+
version: Schema.Literal(1),
|
|
1075
|
+
runId: NonEmptyString,
|
|
1076
|
+
revision: Schema.Int,
|
|
1077
|
+
desired: Schema.Literals(["preserve", "recover", "discard"]),
|
|
1078
|
+
state: Schema.Literals([
|
|
1079
|
+
"active",
|
|
1080
|
+
"retained",
|
|
1081
|
+
"parking",
|
|
1082
|
+
"parked",
|
|
1083
|
+
"recovering",
|
|
1084
|
+
"closed",
|
|
1085
|
+
"unknown",
|
|
1086
|
+
]),
|
|
1087
|
+
snapshotOnly: Schema.Boolean,
|
|
1088
|
+
retainedSince: Schema.String,
|
|
1089
|
+
parkingEligibleAt: Schema.String,
|
|
1090
|
+
parkingDelaySeconds: Schema.Int,
|
|
1091
|
+
policyRevision: NonEmptyString,
|
|
1092
|
+
currentIncarnationId: NonEmptyString,
|
|
1093
|
+
vms: Schema.Array(Schema.Struct({
|
|
1094
|
+
id: NonEmptyString,
|
|
1095
|
+
incarnationId: NonEmptyString,
|
|
1096
|
+
runtimeInstanceId: NonEmptyString,
|
|
1097
|
+
role: Schema.Literals(["source", "recovery"]),
|
|
1098
|
+
compute: Schema.Union([
|
|
1099
|
+
preservationComputeObservation,
|
|
1100
|
+
Schema.Struct({
|
|
1101
|
+
state: Schema.Literal("not-running"),
|
|
1102
|
+
observedAt: Schema.String,
|
|
1103
|
+
basis: Schema.Literal("completed-removal"),
|
|
1104
|
+
}),
|
|
1105
|
+
Schema.Struct({
|
|
1106
|
+
state: Schema.Literal("unknown"),
|
|
1107
|
+
reason: Schema.Literals(["not-observed", "stale", "removal-unresolved"]),
|
|
1108
|
+
lastObserved: Schema.optional(preservationComputeObservation),
|
|
1109
|
+
}),
|
|
1110
|
+
]),
|
|
1111
|
+
removal: Schema.Literals(["not-issued", "unresolved", "completed"]),
|
|
1112
|
+
})),
|
|
1113
|
+
snapshots: Schema.Array(Schema.Struct({
|
|
1114
|
+
name: NonEmptyString,
|
|
1115
|
+
snapshotId: Schema.optional(NonEmptyString),
|
|
1116
|
+
sourceVmId: NonEmptyString,
|
|
1117
|
+
state: Schema.Literals(["reserved", "saving", "verified", "retiring", "removed", "unknown"]),
|
|
1118
|
+
privacy: Schema.Literals(["verified-private", "unknown"]),
|
|
1119
|
+
})),
|
|
1120
|
+
operations: Schema.Array(Schema.Struct({
|
|
1121
|
+
id: NonEmptyString,
|
|
1122
|
+
kind: NonEmptyString,
|
|
1123
|
+
state: Schema.Literals(["prepared", "issued", "unknown", "settled"]),
|
|
1124
|
+
})),
|
|
1125
|
+
allowance: Schema.Struct({
|
|
1126
|
+
state: Schema.Literals(["observed", "unknown"]),
|
|
1127
|
+
reason: Schema.optional(Schema.Literals(["not-observed", "stale"])),
|
|
1128
|
+
lastObserved: Schema.optional(Schema.Struct({
|
|
1129
|
+
scope: NonEmptyString,
|
|
1130
|
+
included: Schema.Int,
|
|
1131
|
+
used: Schema.Int,
|
|
1132
|
+
extra: Schema.Int,
|
|
1133
|
+
extraDailyDollars: Schema.Number,
|
|
1134
|
+
observedAt: Schema.String,
|
|
1135
|
+
})),
|
|
1136
|
+
}),
|
|
1137
|
+
blockers: Schema.Array(Schema.String),
|
|
1138
|
+
});
|
|
1067
1139
|
export const workspaceCaptureDrainSchema = Schema.Struct({
|
|
1140
|
+
preservation: Schema.optional(workspacePreservationSchema),
|
|
1068
1141
|
state: Schema.Literals([
|
|
1069
1142
|
"draining",
|
|
1070
1143
|
"kept",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sealant/api-contracts-next",
|
|
3
|
-
"version": "0.40.0-next.
|
|
3
|
+
"version": "0.40.0-next.805",
|
|
4
4
|
"description": "Contract-first HTTP API definitions for Sealant services",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
"peerDependencies": {
|
|
37
37
|
"effect": "^4.0.5"
|
|
38
38
|
},
|
|
39
|
-
"gitHead": "
|
|
39
|
+
"gitHead": "838b41ce8b61d17a5a42c3292d2e4e9f102ff2e5",
|
|
40
40
|
"publishConfig": {
|
|
41
41
|
"access": "public"
|
|
42
42
|
}
|