@sealant/api-contracts-next 0.40.0-next.849 → 0.40.0-next.850
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 +919 -981
- package/dist/core-api/workspaces.d.ts +20 -250
- package/dist/core-api/workspaces.js +0 -73
- package/package.json +2 -2
|
@@ -1585,133 +1585,27 @@ export declare const workspaceSummarySchema: Schema.Struct<{
|
|
|
1585
1585
|
readonly expiresAt: Schema.optional<Schema.String>;
|
|
1586
1586
|
}>;
|
|
1587
1587
|
export type WorkspaceSummary = typeof workspaceSummarySchema.Type;
|
|
1588
|
-
/**
|
|
1589
|
-
|
|
1590
|
-
|
|
1591
|
-
|
|
1592
|
-
|
|
1593
|
-
|
|
1594
|
-
|
|
1595
|
-
|
|
1596
|
-
|
|
1597
|
-
|
|
1598
|
-
|
|
1599
|
-
|
|
1600
|
-
|
|
1601
|
-
|
|
1602
|
-
|
|
1603
|
-
|
|
1604
|
-
|
|
1605
|
-
|
|
1606
|
-
|
|
1607
|
-
|
|
1608
|
-
readonly observedAt: Schema.String;
|
|
1609
|
-
readonly basis: Schema.Literals<readonly ["provider-running", "provider-stopped"]>;
|
|
1610
|
-
}>, Schema.Struct<{
|
|
1611
|
-
readonly state: Schema.Literal<"not-running">;
|
|
1612
|
-
readonly observedAt: Schema.String;
|
|
1613
|
-
readonly basis: Schema.Literal<"completed-removal">;
|
|
1614
|
-
}>, Schema.Struct<{
|
|
1615
|
-
readonly state: Schema.Literal<"unknown">;
|
|
1616
|
-
readonly reason: Schema.Literals<readonly ["not-observed", "stale", "removal-unresolved"]>;
|
|
1617
|
-
readonly lastObserved: Schema.optional<Schema.Struct<{
|
|
1618
|
-
readonly state: Schema.Literals<readonly ["running", "not-running"]>;
|
|
1619
|
-
readonly observedAt: Schema.String;
|
|
1620
|
-
readonly basis: Schema.Literals<readonly ["provider-running", "provider-stopped"]>;
|
|
1621
|
-
}>>;
|
|
1622
|
-
}>]>;
|
|
1623
|
-
readonly removal: Schema.Literals<readonly ["not-issued", "unresolved", "completed"]>;
|
|
1624
|
-
}>>;
|
|
1625
|
-
readonly snapshots: Schema.$Array<Schema.Struct<{
|
|
1626
|
-
readonly name: Schema.String;
|
|
1627
|
-
readonly snapshotId: Schema.optional<Schema.String>;
|
|
1628
|
-
readonly sourceVmId: Schema.String;
|
|
1629
|
-
readonly state: Schema.Literals<readonly ["reserved", "saving", "verified", "retiring", "removed", "unknown"]>;
|
|
1630
|
-
readonly privacy: Schema.Literals<readonly ["verified-private", "unknown"]>;
|
|
1631
|
-
}>>;
|
|
1632
|
-
readonly operations: Schema.$Array<Schema.Struct<{
|
|
1633
|
-
readonly id: Schema.String;
|
|
1634
|
-
readonly kind: Schema.String;
|
|
1635
|
-
readonly state: Schema.Literals<readonly ["prepared", "issued", "unknown", "settled"]>;
|
|
1636
|
-
}>>;
|
|
1637
|
-
readonly allowance: Schema.Struct<{
|
|
1638
|
-
readonly state: Schema.Literals<readonly ["observed", "unknown"]>;
|
|
1639
|
-
readonly reason: Schema.optional<Schema.Literals<readonly ["not-observed", "stale"]>>;
|
|
1640
|
-
readonly lastObserved: Schema.optional<Schema.Struct<{
|
|
1641
|
-
readonly scope: Schema.String;
|
|
1642
|
-
readonly included: Schema.Int;
|
|
1643
|
-
readonly used: Schema.Int;
|
|
1644
|
-
readonly extra: Schema.Int;
|
|
1645
|
-
readonly extraDailyDollars: Schema.Number;
|
|
1646
|
-
readonly observedAt: Schema.String;
|
|
1647
|
-
}>>;
|
|
1648
|
-
}>;
|
|
1649
|
-
readonly blockers: Schema.$Array<Schema.String>;
|
|
1650
|
-
}>;
|
|
1651
|
-
export type WorkspacePreservation = typeof workspacePreservationSchema.Type;
|
|
1588
|
+
/**
|
|
1589
|
+
* What the control plane last OBSERVED of a capture-sourced workspace's drain — the FINAL flush
|
|
1590
|
+
* and queue polling every platform stop runs before it removes the runtime. A stop request is
|
|
1591
|
+
* not a stop: until the runtime is gone, this is what is happening.
|
|
1592
|
+
*
|
|
1593
|
+
* - `draining`: the queue is still moving; the stop continues on the server.
|
|
1594
|
+
* - `kept`: nothing will stop the runtime — the work is not confirmed saved (the queue stalled,
|
|
1595
|
+
* a class was refused, the daemon is silent while the executor runs, or the daemon did not
|
|
1596
|
+
* report its final flush complete). `detail` says which.
|
|
1597
|
+
* - `saved`: the daemon reported its final flush complete; the runtime is being removed.
|
|
1598
|
+
* - `gone`: the daemon is silent and the runtime reports the executor ended.
|
|
1599
|
+
* - `stop-failed`: the drain let the stop through but removing the runtime failed (`detail`
|
|
1600
|
+
* has the error); the control plane retries the stop.
|
|
1601
|
+
* - `stopped`: the runtime was removed after its drain let it go.
|
|
1602
|
+
* - `discarded`: the owner discarded the unsaved captures (`stop({ discardUnsaved: true })`);
|
|
1603
|
+
* the runtime was terminated without a drain. `discard` records who asked, and when.
|
|
1604
|
+
*
|
|
1605
|
+
* `preservationStartsAt` is when the control plane starts that drain on its own ahead of the
|
|
1606
|
+
* runtime's deadline (`runtime.deadline`), once it has planned one.
|
|
1607
|
+
*/
|
|
1652
1608
|
export declare const workspaceCaptureDrainSchema: Schema.Struct<{
|
|
1653
|
-
readonly preservation: Schema.optional<Schema.Struct<{
|
|
1654
|
-
readonly version: Schema.Literal<1>;
|
|
1655
|
-
readonly runId: Schema.String;
|
|
1656
|
-
readonly revision: Schema.Int;
|
|
1657
|
-
readonly desired: Schema.Literals<readonly ["preserve", "recover", "discard"]>;
|
|
1658
|
-
readonly state: Schema.Literals<readonly ["active", "retained", "parking", "parked", "recovering", "closed", "unknown"]>;
|
|
1659
|
-
readonly snapshotOnly: Schema.Boolean;
|
|
1660
|
-
readonly retainedSince: Schema.String;
|
|
1661
|
-
readonly parkingEligibleAt: Schema.String;
|
|
1662
|
-
readonly parkingDelaySeconds: Schema.Int;
|
|
1663
|
-
readonly policyRevision: Schema.String;
|
|
1664
|
-
readonly currentIncarnationId: Schema.String;
|
|
1665
|
-
readonly vms: Schema.$Array<Schema.Struct<{
|
|
1666
|
-
readonly id: Schema.String;
|
|
1667
|
-
readonly incarnationId: Schema.String;
|
|
1668
|
-
readonly runtimeInstanceId: Schema.String;
|
|
1669
|
-
readonly role: Schema.Literals<readonly ["source", "recovery"]>;
|
|
1670
|
-
readonly compute: Schema.Union<readonly [Schema.Struct<{
|
|
1671
|
-
readonly state: Schema.Literals<readonly ["running", "not-running"]>;
|
|
1672
|
-
readonly observedAt: Schema.String;
|
|
1673
|
-
readonly basis: Schema.Literals<readonly ["provider-running", "provider-stopped"]>;
|
|
1674
|
-
}>, Schema.Struct<{
|
|
1675
|
-
readonly state: Schema.Literal<"not-running">;
|
|
1676
|
-
readonly observedAt: Schema.String;
|
|
1677
|
-
readonly basis: Schema.Literal<"completed-removal">;
|
|
1678
|
-
}>, Schema.Struct<{
|
|
1679
|
-
readonly state: Schema.Literal<"unknown">;
|
|
1680
|
-
readonly reason: Schema.Literals<readonly ["not-observed", "stale", "removal-unresolved"]>;
|
|
1681
|
-
readonly lastObserved: Schema.optional<Schema.Struct<{
|
|
1682
|
-
readonly state: Schema.Literals<readonly ["running", "not-running"]>;
|
|
1683
|
-
readonly observedAt: Schema.String;
|
|
1684
|
-
readonly basis: Schema.Literals<readonly ["provider-running", "provider-stopped"]>;
|
|
1685
|
-
}>>;
|
|
1686
|
-
}>]>;
|
|
1687
|
-
readonly removal: Schema.Literals<readonly ["not-issued", "unresolved", "completed"]>;
|
|
1688
|
-
}>>;
|
|
1689
|
-
readonly snapshots: Schema.$Array<Schema.Struct<{
|
|
1690
|
-
readonly name: Schema.String;
|
|
1691
|
-
readonly snapshotId: Schema.optional<Schema.String>;
|
|
1692
|
-
readonly sourceVmId: Schema.String;
|
|
1693
|
-
readonly state: Schema.Literals<readonly ["reserved", "saving", "verified", "retiring", "removed", "unknown"]>;
|
|
1694
|
-
readonly privacy: Schema.Literals<readonly ["verified-private", "unknown"]>;
|
|
1695
|
-
}>>;
|
|
1696
|
-
readonly operations: Schema.$Array<Schema.Struct<{
|
|
1697
|
-
readonly id: Schema.String;
|
|
1698
|
-
readonly kind: Schema.String;
|
|
1699
|
-
readonly state: Schema.Literals<readonly ["prepared", "issued", "unknown", "settled"]>;
|
|
1700
|
-
}>>;
|
|
1701
|
-
readonly allowance: Schema.Struct<{
|
|
1702
|
-
readonly state: Schema.Literals<readonly ["observed", "unknown"]>;
|
|
1703
|
-
readonly reason: Schema.optional<Schema.Literals<readonly ["not-observed", "stale"]>>;
|
|
1704
|
-
readonly lastObserved: Schema.optional<Schema.Struct<{
|
|
1705
|
-
readonly scope: Schema.String;
|
|
1706
|
-
readonly included: Schema.Int;
|
|
1707
|
-
readonly used: Schema.Int;
|
|
1708
|
-
readonly extra: Schema.Int;
|
|
1709
|
-
readonly extraDailyDollars: Schema.Number;
|
|
1710
|
-
readonly observedAt: Schema.String;
|
|
1711
|
-
}>>;
|
|
1712
|
-
}>;
|
|
1713
|
-
readonly blockers: Schema.$Array<Schema.String>;
|
|
1714
|
-
}>>;
|
|
1715
1609
|
readonly state: Schema.Literals<readonly ["draining", "kept", "saved", "gone", "stop-failed", "stopped", "discarded"]>;
|
|
1716
1610
|
readonly detail: Schema.optional<Schema.String>;
|
|
1717
1611
|
/** ISO-8601: when this was observed. */
|
|
@@ -1909,68 +1803,6 @@ export declare const workspaceDetailsSchema: Schema.Struct<{
|
|
|
1909
1803
|
* Absent while no drain or preservation schedule exists, and from older control planes.
|
|
1910
1804
|
*/
|
|
1911
1805
|
readonly captureDrain: Schema.optional<Schema.Struct<{
|
|
1912
|
-
readonly preservation: Schema.optional<Schema.Struct<{
|
|
1913
|
-
readonly version: Schema.Literal<1>;
|
|
1914
|
-
readonly runId: Schema.String;
|
|
1915
|
-
readonly revision: Schema.Int;
|
|
1916
|
-
readonly desired: Schema.Literals<readonly ["preserve", "recover", "discard"]>;
|
|
1917
|
-
readonly state: Schema.Literals<readonly ["active", "retained", "parking", "parked", "recovering", "closed", "unknown"]>;
|
|
1918
|
-
readonly snapshotOnly: Schema.Boolean;
|
|
1919
|
-
readonly retainedSince: Schema.String;
|
|
1920
|
-
readonly parkingEligibleAt: Schema.String;
|
|
1921
|
-
readonly parkingDelaySeconds: Schema.Int;
|
|
1922
|
-
readonly policyRevision: Schema.String;
|
|
1923
|
-
readonly currentIncarnationId: Schema.String;
|
|
1924
|
-
readonly vms: Schema.$Array<Schema.Struct<{
|
|
1925
|
-
readonly id: Schema.String;
|
|
1926
|
-
readonly incarnationId: Schema.String;
|
|
1927
|
-
readonly runtimeInstanceId: Schema.String;
|
|
1928
|
-
readonly role: Schema.Literals<readonly ["source", "recovery"]>;
|
|
1929
|
-
readonly compute: Schema.Union<readonly [Schema.Struct<{
|
|
1930
|
-
readonly state: Schema.Literals<readonly ["running", "not-running"]>;
|
|
1931
|
-
readonly observedAt: Schema.String;
|
|
1932
|
-
readonly basis: Schema.Literals<readonly ["provider-running", "provider-stopped"]>;
|
|
1933
|
-
}>, Schema.Struct<{
|
|
1934
|
-
readonly state: Schema.Literal<"not-running">;
|
|
1935
|
-
readonly observedAt: Schema.String;
|
|
1936
|
-
readonly basis: Schema.Literal<"completed-removal">;
|
|
1937
|
-
}>, Schema.Struct<{
|
|
1938
|
-
readonly state: Schema.Literal<"unknown">;
|
|
1939
|
-
readonly reason: Schema.Literals<readonly ["not-observed", "stale", "removal-unresolved"]>;
|
|
1940
|
-
readonly lastObserved: Schema.optional<Schema.Struct<{
|
|
1941
|
-
readonly state: Schema.Literals<readonly ["running", "not-running"]>;
|
|
1942
|
-
readonly observedAt: Schema.String;
|
|
1943
|
-
readonly basis: Schema.Literals<readonly ["provider-running", "provider-stopped"]>;
|
|
1944
|
-
}>>;
|
|
1945
|
-
}>]>;
|
|
1946
|
-
readonly removal: Schema.Literals<readonly ["not-issued", "unresolved", "completed"]>;
|
|
1947
|
-
}>>;
|
|
1948
|
-
readonly snapshots: Schema.$Array<Schema.Struct<{
|
|
1949
|
-
readonly name: Schema.String;
|
|
1950
|
-
readonly snapshotId: Schema.optional<Schema.String>;
|
|
1951
|
-
readonly sourceVmId: Schema.String;
|
|
1952
|
-
readonly state: Schema.Literals<readonly ["reserved", "saving", "verified", "retiring", "removed", "unknown"]>;
|
|
1953
|
-
readonly privacy: Schema.Literals<readonly ["verified-private", "unknown"]>;
|
|
1954
|
-
}>>;
|
|
1955
|
-
readonly operations: Schema.$Array<Schema.Struct<{
|
|
1956
|
-
readonly id: Schema.String;
|
|
1957
|
-
readonly kind: Schema.String;
|
|
1958
|
-
readonly state: Schema.Literals<readonly ["prepared", "issued", "unknown", "settled"]>;
|
|
1959
|
-
}>>;
|
|
1960
|
-
readonly allowance: Schema.Struct<{
|
|
1961
|
-
readonly state: Schema.Literals<readonly ["observed", "unknown"]>;
|
|
1962
|
-
readonly reason: Schema.optional<Schema.Literals<readonly ["not-observed", "stale"]>>;
|
|
1963
|
-
readonly lastObserved: Schema.optional<Schema.Struct<{
|
|
1964
|
-
readonly scope: Schema.String;
|
|
1965
|
-
readonly included: Schema.Int;
|
|
1966
|
-
readonly used: Schema.Int;
|
|
1967
|
-
readonly extra: Schema.Int;
|
|
1968
|
-
readonly extraDailyDollars: Schema.Number;
|
|
1969
|
-
readonly observedAt: Schema.String;
|
|
1970
|
-
}>>;
|
|
1971
|
-
}>;
|
|
1972
|
-
readonly blockers: Schema.$Array<Schema.String>;
|
|
1973
|
-
}>>;
|
|
1974
1806
|
readonly state: Schema.Literals<readonly ["draining", "kept", "saved", "gone", "stop-failed", "stopped", "discarded"]>;
|
|
1975
1807
|
readonly detail: Schema.optional<Schema.String>;
|
|
1976
1808
|
/** ISO-8601: when this was observed. */
|
|
@@ -3110,68 +2942,6 @@ export declare const WorkspacesGroup: HttpApiGroup.HttpApiGroup<"workspaces", Ht
|
|
|
3110
2942
|
* Absent while no drain or preservation schedule exists, and from older control planes.
|
|
3111
2943
|
*/
|
|
3112
2944
|
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
|
-
}>>;
|
|
3175
2945
|
readonly state: Schema.Literals<readonly ["draining", "kept", "saved", "gone", "stop-failed", "stopped", "discarded"]>;
|
|
3176
2946
|
readonly detail: Schema.optional<Schema.String>;
|
|
3177
2947
|
/** ISO-8601: when this was observed. */
|
|
@@ -1066,80 +1066,7 @@ export const workspaceSummarySchema = Schema.Struct({
|
|
|
1066
1066
|
* `preservationStartsAt` is when the control plane starts that drain on its own ahead of the
|
|
1067
1067
|
* runtime's deadline (`runtime.deadline`), once it has planned one.
|
|
1068
1068
|
*/
|
|
1069
|
-
const preservationComputeObservation = Schema.Struct({
|
|
1070
|
-
state: Schema.Literals(["running", "not-running"]),
|
|
1071
|
-
observedAt: Schema.String,
|
|
1072
|
-
basis: Schema.Literals(["provider-running", "provider-stopped"]),
|
|
1073
|
-
});
|
|
1074
|
-
/** Current custody and dated provider facts. Snapshot custody never implies a running VM. */
|
|
1075
|
-
export const workspacePreservationSchema = Schema.Struct({
|
|
1076
|
-
version: Schema.Literal(1),
|
|
1077
|
-
runId: NonEmptyString,
|
|
1078
|
-
revision: Schema.Int,
|
|
1079
|
-
desired: Schema.Literals(["preserve", "recover", "discard"]),
|
|
1080
|
-
state: Schema.Literals([
|
|
1081
|
-
"active",
|
|
1082
|
-
"retained",
|
|
1083
|
-
"parking",
|
|
1084
|
-
"parked",
|
|
1085
|
-
"recovering",
|
|
1086
|
-
"closed",
|
|
1087
|
-
"unknown",
|
|
1088
|
-
]),
|
|
1089
|
-
snapshotOnly: Schema.Boolean,
|
|
1090
|
-
retainedSince: Schema.String,
|
|
1091
|
-
parkingEligibleAt: Schema.String,
|
|
1092
|
-
parkingDelaySeconds: Schema.Int,
|
|
1093
|
-
policyRevision: NonEmptyString,
|
|
1094
|
-
currentIncarnationId: NonEmptyString,
|
|
1095
|
-
vms: Schema.Array(Schema.Struct({
|
|
1096
|
-
id: NonEmptyString,
|
|
1097
|
-
incarnationId: NonEmptyString,
|
|
1098
|
-
runtimeInstanceId: NonEmptyString,
|
|
1099
|
-
role: Schema.Literals(["source", "recovery"]),
|
|
1100
|
-
compute: Schema.Union([
|
|
1101
|
-
preservationComputeObservation,
|
|
1102
|
-
Schema.Struct({
|
|
1103
|
-
state: Schema.Literal("not-running"),
|
|
1104
|
-
observedAt: Schema.String,
|
|
1105
|
-
basis: Schema.Literal("completed-removal"),
|
|
1106
|
-
}),
|
|
1107
|
-
Schema.Struct({
|
|
1108
|
-
state: Schema.Literal("unknown"),
|
|
1109
|
-
reason: Schema.Literals(["not-observed", "stale", "removal-unresolved"]),
|
|
1110
|
-
lastObserved: Schema.optional(preservationComputeObservation),
|
|
1111
|
-
}),
|
|
1112
|
-
]),
|
|
1113
|
-
removal: Schema.Literals(["not-issued", "unresolved", "completed"]),
|
|
1114
|
-
})),
|
|
1115
|
-
snapshots: Schema.Array(Schema.Struct({
|
|
1116
|
-
name: NonEmptyString,
|
|
1117
|
-
snapshotId: Schema.optional(NonEmptyString),
|
|
1118
|
-
sourceVmId: NonEmptyString,
|
|
1119
|
-
state: Schema.Literals(["reserved", "saving", "verified", "retiring", "removed", "unknown"]),
|
|
1120
|
-
privacy: Schema.Literals(["verified-private", "unknown"]),
|
|
1121
|
-
})),
|
|
1122
|
-
operations: Schema.Array(Schema.Struct({
|
|
1123
|
-
id: NonEmptyString,
|
|
1124
|
-
kind: NonEmptyString,
|
|
1125
|
-
state: Schema.Literals(["prepared", "issued", "unknown", "settled"]),
|
|
1126
|
-
})),
|
|
1127
|
-
allowance: Schema.Struct({
|
|
1128
|
-
state: Schema.Literals(["observed", "unknown"]),
|
|
1129
|
-
reason: Schema.optional(Schema.Literals(["not-observed", "stale"])),
|
|
1130
|
-
lastObserved: Schema.optional(Schema.Struct({
|
|
1131
|
-
scope: NonEmptyString,
|
|
1132
|
-
included: Schema.Int,
|
|
1133
|
-
used: Schema.Int,
|
|
1134
|
-
extra: Schema.Int,
|
|
1135
|
-
extraDailyDollars: Schema.Number,
|
|
1136
|
-
observedAt: Schema.String,
|
|
1137
|
-
})),
|
|
1138
|
-
}),
|
|
1139
|
-
blockers: Schema.Array(Schema.String),
|
|
1140
|
-
});
|
|
1141
1069
|
export const workspaceCaptureDrainSchema = Schema.Struct({
|
|
1142
|
-
preservation: Schema.optional(workspacePreservationSchema),
|
|
1143
1070
|
state: Schema.Literals([
|
|
1144
1071
|
"draining",
|
|
1145
1072
|
"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.850",
|
|
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": "12d5276e82fac9d6e1b3bc2c3571a8c39a7d0517",
|
|
40
40
|
"publishConfig": {
|
|
41
41
|
"access": "public"
|
|
42
42
|
}
|