@spacefast/common 0.2.1 → 0.4.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.
- package/dist/agents/marketplace-prompts.d.ts +1 -0
- package/dist/agents/marketplace-prompts.js +6 -0
- package/dist/agents/registry/core.d.ts +4 -12
- package/dist/agents/registry/core.js +7 -28
- package/dist/config/domains.d.ts +10 -8
- package/dist/config/domains.js +4 -7
- package/dist/contracts/access-core.d.ts +135 -0
- package/dist/contracts/access-core.js +242 -0
- package/dist/contracts/access-profiles.d.ts +8 -8
- package/dist/contracts/access-profiles.js +8 -8
- package/dist/contracts/access.d.ts +14 -103
- package/dist/contracts/access.js +10 -210
- package/dist/contracts/activity.d.ts +54 -55
- package/dist/contracts/activity.js +38 -9
- package/dist/contracts/api-keys.d.ts +69 -26
- package/dist/contracts/api-keys.js +29 -2
- package/dist/contracts/application-journal.d.ts +197 -4
- package/dist/contracts/application-journal.js +97 -16
- package/dist/contracts/auth.d.ts +20 -0
- package/dist/contracts/auth.js +18 -0
- package/dist/contracts/beta.d.ts +13 -0
- package/dist/contracts/beta.js +28 -0
- package/dist/contracts/billing.d.ts +2 -2
- package/dist/contracts/bootstrap.d.ts +23 -6
- package/dist/contracts/builds.d.ts +24 -4
- package/dist/contracts/builds.js +16 -4
- package/dist/contracts/channels.d.ts +43 -0
- package/dist/contracts/channels.js +22 -6
- package/dist/contracts/comments.d.ts +49 -0
- package/dist/contracts/comments.js +61 -2
- package/dist/contracts/commerce.d.ts +19 -13
- package/dist/contracts/connector-access.d.ts +28 -0
- package/dist/contracts/connector-access.js +31 -0
- package/dist/contracts/connectors.d.ts +2382 -0
- package/dist/contracts/connectors.js +941 -0
- package/dist/contracts/content-contract-verification.d.ts +112 -58
- package/dist/contracts/content-contract-verification.js +42 -54
- package/dist/contracts/content-model-emit.d.ts +97 -0
- package/dist/contracts/content-model-emit.js +306 -0
- package/dist/contracts/content-model-sdk.d.ts +101 -0
- package/dist/contracts/content-model-sdk.js +232 -0
- package/dist/contracts/{content-program.d.ts → content-model.d.ts} +338 -82
- package/dist/contracts/{content-program.js → content-model.js} +291 -63
- package/dist/contracts/content-platform-fixture.d.ts +380 -110
- package/dist/contracts/content-platform-fixture.js +8 -8
- package/dist/contracts/content-sync.d.ts +197 -74
- package/dist/contracts/content-sync.js +98 -37
- package/dist/contracts/content.d.ts +30 -422
- package/dist/contracts/content.js +34 -294
- package/dist/contracts/dashboard-prefs.d.ts +10 -3
- package/dist/contracts/dashboard-prefs.js +6 -3
- package/dist/contracts/data-location.d.ts +9 -0
- package/dist/contracts/data-location.js +7 -0
- package/dist/contracts/deployment-comparison.d.ts +67 -0
- package/dist/contracts/deployment-comparison.js +68 -0
- package/dist/contracts/device-auth.d.ts +55 -11
- package/dist/contracts/domains.d.ts +40 -16
- package/dist/contracts/domains.js +23 -0
- package/dist/contracts/enums.d.ts +1 -10
- package/dist/contracts/enums.js +0 -15
- package/dist/contracts/error-code-meta.d.ts +388 -20
- package/dist/contracts/error-code-meta.js +201 -5
- package/dist/contracts/error-codes.d.ts +17 -4
- package/dist/contracts/error-codes.js +109 -10
- package/dist/contracts/events.d.ts +5 -0
- package/dist/contracts/events.js +12 -3
- package/dist/contracts/execution.d.ts +5 -1
- package/dist/contracts/execution.js +4 -0
- package/dist/contracts/feature-lifecycle.d.ts +53 -20
- package/dist/contracts/feature-lifecycle.js +65 -23
- package/dist/contracts/features.d.ts +57 -31
- package/dist/contracts/features.js +0 -1
- package/dist/contracts/feedback.d.ts +124 -0
- package/dist/contracts/feedback.js +64 -0
- package/dist/contracts/fixtures/content-model-sdk-v1.generated.d.ts +129 -0
- package/dist/contracts/fixtures/content-model-sdk-v1.generated.js +48 -0
- package/dist/contracts/fixtures/content-platform-v1.json +101 -49
- package/dist/contracts/frame-session.d.ts +60 -10
- package/dist/contracts/frame-session.js +52 -12
- package/dist/contracts/functions.d.ts +28 -2
- package/dist/contracts/functions.js +25 -2
- package/dist/contracts/grant-copy.d.ts +2 -0
- package/dist/contracts/grant-copy.js +2 -0
- package/dist/contracts/grants-core.d.ts +95 -0
- package/dist/contracts/grants-core.js +435 -0
- package/dist/contracts/grants.d.ts +13 -84
- package/dist/contracts/grants.js +21 -369
- package/dist/contracts/ids-core.d.ts +11 -0
- package/dist/contracts/ids-core.js +14 -0
- package/dist/contracts/ids.d.ts +7 -4
- package/dist/contracts/ids.js +12 -4
- package/dist/contracts/internal.d.ts +18 -0
- package/dist/contracts/internal.js +19 -0
- package/dist/contracts/mcp.d.ts +8 -18
- package/dist/contracts/mcp.js +2 -23
- package/dist/contracts/notifications.d.ts +4 -1
- package/dist/contracts/notifications.js +1 -0
- package/dist/contracts/oauth-resources.d.ts +55 -9
- package/dist/contracts/oauth-resources.js +64 -1
- package/dist/contracts/oauth-scope-actions.d.ts +27 -3
- package/dist/contracts/oauth-scope-actions.js +18 -8
- package/dist/contracts/operations.d.ts +1 -1
- package/dist/contracts/partner-account.d.ts +629 -0
- package/dist/contracts/partner-account.js +18 -0
- package/dist/contracts/principal-assertion.d.ts +74 -1
- package/dist/contracts/principal-assertion.js +67 -3
- package/dist/contracts/publish-archive.d.ts +22 -1
- package/dist/contracts/push-new.d.ts +3 -3
- package/dist/contracts/push-new.js +1 -1
- package/dist/contracts/quotas.js +2 -1
- package/dist/contracts/repository-connections.d.ts +10 -6
- package/dist/contracts/repository-connections.js +15 -0
- package/dist/contracts/resources.d.ts +6 -5
- package/dist/contracts/resources.js +7 -0
- package/dist/contracts/route-inventory.d.ts +74 -19
- package/dist/contracts/route-inventory.js +20 -6
- package/dist/contracts/runtime-api.d.ts +415 -4
- package/dist/contracts/runtime-api.js +60 -15
- package/dist/contracts/runtime-app.d.ts +6 -1
- package/dist/contracts/runtime-components.d.ts +646 -18
- package/dist/contracts/runtime-components.js +304 -188
- package/dist/contracts/runtime-services.d.ts +15 -0
- package/dist/contracts/runtime-services.js +25 -0
- package/dist/contracts/runtime-storage.d.ts +32 -0
- package/dist/contracts/runtime-storage.js +37 -0
- package/dist/contracts/source-workspaces.d.ts +511 -0
- package/dist/contracts/source-workspaces.js +276 -0
- package/dist/contracts/space-config-spacefast.d.ts +394 -0
- package/dist/contracts/space-config-spacefast.js +70 -0
- package/dist/contracts/space-config.d.ts +177 -90
- package/dist/contracts/space-config.js +77 -92
- package/dist/contracts/spaces.d.ts +132 -24
- package/dist/contracts/spaces.js +77 -13
- package/dist/contracts/superadmin-connectors.d.ts +371 -0
- package/dist/contracts/superadmin-connectors.js +61 -0
- package/dist/contracts/superadmin-emails.d.ts +1 -1
- package/dist/contracts/superadmin-emails.js +1 -1
- package/dist/contracts/superadmin-entities.d.ts +105 -0
- package/dist/contracts/superadmin-entities.js +64 -0
- package/dist/contracts/superadmin-runtime.d.ts +35 -116
- package/dist/contracts/superadmin-runtime.js +13 -69
- package/dist/contracts/superadmin-search.d.ts +12 -14
- package/dist/contracts/superadmin-search.js +2 -2
- package/dist/contracts/superadmin-spaces.d.ts +15 -72
- package/dist/contracts/superadmin-spaces.js +2 -7
- package/dist/contracts/superadmin-teams.d.ts +12 -0
- package/dist/contracts/superadmin-teams.js +7 -1
- package/dist/contracts/superadmin-tenants.d.ts +44 -16
- package/dist/contracts/superadmin.d.ts +2 -2
- package/dist/contracts/tags.d.ts +12 -12
- package/dist/contracts/teams.d.ts +29 -1
- package/dist/contracts/teams.js +24 -2
- package/dist/contracts/tenants.d.ts +98 -0
- package/dist/contracts/tenants.js +20 -0
- package/dist/contracts/transfers.d.ts +92 -0
- package/dist/contracts/transfers.js +37 -0
- package/dist/contracts/usage.d.ts +9 -1
- package/dist/contracts/usage.js +2 -0
- package/dist/contracts/visual-review.d.ts +448 -0
- package/dist/contracts/visual-review.js +156 -0
- package/dist/contracts/wordpress-php-toolkit.json +9 -0
- package/dist/contracts/work-mode.d.ts +24 -0
- package/dist/contracts/work-mode.js +17 -0
- package/dist/contracts/wp-cli.d.ts +66 -0
- package/dist/contracts/wp-cli.js +68 -0
- package/dist/contracts/zero-catalog.d.ts +29 -0
- package/dist/contracts/zero-catalog.js +55 -0
- package/dist/contracts/zero-platform-abilities.generated.d.ts +31 -0
- package/dist/contracts/zero-platform-abilities.generated.js +373 -0
- package/dist/contracts/zero-spacefast.d.ts +444 -0
- package/dist/contracts/zero-spacefast.js +149 -0
- package/dist/contracts/zero-types.d.ts +47 -0
- package/dist/contracts/zero-types.js +263 -0
- package/dist/contracts/zero.d.ts +781 -14
- package/dist/contracts/zero.js +204 -10
- package/dist/dashboard-paths/index.d.ts +2 -2
- package/dist/dashboard-paths/route-reservations.generated.d.ts +2 -2
- package/dist/dashboard-paths/route-reservations.generated.js +5 -0
- package/dist/docs/agent-prose.d.ts +1 -1
- package/dist/docs/agent-prose.js +15 -18
- package/dist/docs/agent-setup.d.ts +1 -1
- package/dist/docs/agent-setup.js +5 -13
- package/dist/docs/catalog.d.ts +64 -28
- package/dist/docs/catalog.js +155 -28
- package/dist/docs/error-docs.d.ts +365 -17
- package/dist/docs/error-docs.js +369 -21
- package/dist/docs/reference-urls.js +1 -1
- package/dist/docs/skills.d.ts +84 -84
- package/dist/docs/skills.js +66 -47
- package/dist/docs/start-prompts.d.ts +14 -0
- package/dist/docs/start-prompts.js +20 -0
- package/dist/utils/account-labels.d.ts +7 -0
- package/dist/utils/account-labels.js +15 -0
- package/dist/utils/auth.d.ts +1 -0
- package/dist/utils/auth.js +1 -0
- package/dist/utils/credential-policy.d.ts +22 -1
- package/dist/utils/credential-policy.js +55 -6
- package/dist/utils/local-space-state.d.ts +7 -0
- package/dist/utils/local-space-state.js +7 -0
- package/dist/utils/logger.d.ts +34 -0
- package/dist/utils/logger.js +144 -0
- package/dist/utils/page-routes.d.ts +9 -0
- package/dist/utils/page-routes.js +82 -0
- package/dist/utils/pages.d.ts +2 -0
- package/dist/utils/pages.js +7 -0
- package/dist/utils/publish-form-data.d.ts +2 -0
- package/dist/utils/publish-form-data.js +2 -0
- package/dist/utils/publish-policy-spacefast.d.ts +13 -0
- package/dist/utils/publish-policy-spacefast.js +117 -0
- package/dist/utils/publish-policy.d.ts +22 -16
- package/dist/utils/publish-policy.fixtures.json +15 -0
- package/dist/utils/publish-policy.js +62 -139
- package/dist/utils/query-client.js +9 -1
- package/dist/utils/runtime-upload.d.ts +4 -0
- package/dist/utils/runtime-upload.js +5 -0
- package/dist/utils/space-config.d.ts +2 -3
- package/dist/utils/space-config.js +1 -1
- package/dist/utils/uploaded-source.d.ts +4 -0
- package/dist/utils/uploaded-source.js +12 -0
- package/dist/visual-review.d.ts +4 -0
- package/dist/visual-review.js +208 -0
- package/dist/vocabulary.d.ts +38 -0
- package/dist/vocabulary.js +55 -0
- package/package.json +7 -2
- package/dist/agents/registry/deeplink-probes.d.ts +0 -23
- package/dist/agents/registry/deeplink-probes.js +0 -18
|
@@ -6,28 +6,24 @@ export declare const SuperadminRuntimeReleaseSchema: z.ZodObject<{
|
|
|
6
6
|
zipUrl: z.ZodString;
|
|
7
7
|
md5: z.ZodString;
|
|
8
8
|
nativeSha256: z.ZodString;
|
|
9
|
-
admissionPercent: z.ZodNumber;
|
|
10
9
|
promotedAt: z.ZodString;
|
|
11
10
|
current: z.ZodBoolean;
|
|
12
11
|
}, z.core.$strict>;
|
|
13
12
|
export declare const SuperadminRuntimeFleetBoxSchema: z.ZodObject<{
|
|
14
|
-
kind: z.ZodEnum<{
|
|
15
|
-
space: "space";
|
|
16
|
-
pool: "pool";
|
|
17
|
-
}>;
|
|
18
13
|
id: z.ZodString;
|
|
14
|
+
status: z.ZodEnum<{
|
|
15
|
+
failed: "failed";
|
|
16
|
+
ready: "ready";
|
|
17
|
+
warming: "warming";
|
|
18
|
+
assigned: "assigned";
|
|
19
|
+
}>;
|
|
20
|
+
spaceId: z.ZodNullable<z.ZodString>;
|
|
19
21
|
slug: z.ZodNullable<z.ZodString>;
|
|
20
22
|
title: z.ZodNullable<z.ZodString>;
|
|
23
|
+
providerRef: z.ZodNullable<z.ZodString>;
|
|
21
24
|
reportedRevision: z.ZodNullable<z.ZodString>;
|
|
22
|
-
pinnedRevision: z.ZodNullable<z.ZodString>;
|
|
23
25
|
desiredRevision: z.ZodNullable<z.ZodString>;
|
|
24
|
-
|
|
25
|
-
syncState: z.ZodEnum<{
|
|
26
|
-
failed: "failed";
|
|
27
|
-
running: "running";
|
|
28
|
-
pending: "pending";
|
|
29
|
-
idle: "idle";
|
|
30
|
-
}>;
|
|
26
|
+
pinnedRevision: z.ZodNullable<z.ZodString>;
|
|
31
27
|
}, z.core.$strict>;
|
|
32
28
|
export declare const SuperadminRuntimeStatusSchema: z.ZodObject<{
|
|
33
29
|
checkedAt: z.ZodString;
|
|
@@ -38,7 +34,6 @@ export declare const SuperadminRuntimeStatusSchema: z.ZodObject<{
|
|
|
38
34
|
zipUrl: z.ZodString;
|
|
39
35
|
md5: z.ZodString;
|
|
40
36
|
nativeSha256: z.ZodString;
|
|
41
|
-
admissionPercent: z.ZodNumber;
|
|
42
37
|
promotedAt: z.ZodString;
|
|
43
38
|
current: z.ZodBoolean;
|
|
44
39
|
}, z.core.$strict>>;
|
|
@@ -48,7 +43,6 @@ export declare const SuperadminRuntimeStatusSchema: z.ZodObject<{
|
|
|
48
43
|
zipUrl: z.ZodString;
|
|
49
44
|
md5: z.ZodString;
|
|
50
45
|
nativeSha256: z.ZodString;
|
|
51
|
-
admissionPercent: z.ZodNumber;
|
|
52
46
|
promotedAt: z.ZodString;
|
|
53
47
|
current: z.ZodBoolean;
|
|
54
48
|
}, z.core.$strict>>;
|
|
@@ -60,140 +54,65 @@ export declare const SuperadminRuntimeStatusSchema: z.ZodObject<{
|
|
|
60
54
|
current: z.ZodBoolean;
|
|
61
55
|
}, z.core.$strict>>>;
|
|
62
56
|
fleet: z.ZodNullable<z.ZodObject<{
|
|
63
|
-
|
|
64
|
-
total: z.ZodNumber;
|
|
65
|
-
current: z.ZodNumber;
|
|
66
|
-
diverged: z.ZodNumber;
|
|
67
|
-
pinned: z.ZodNumber;
|
|
68
|
-
}, z.core.$strip>;
|
|
69
|
-
pool: z.ZodObject<{
|
|
57
|
+
boxes: z.ZodObject<{
|
|
70
58
|
total: z.ZodNumber;
|
|
59
|
+
ready: z.ZodNumber;
|
|
60
|
+
assigned: z.ZodNumber;
|
|
61
|
+
warming: z.ZodNumber;
|
|
71
62
|
current: z.ZodNumber;
|
|
72
63
|
diverged: z.ZodNumber;
|
|
73
64
|
}, z.core.$strip>;
|
|
74
65
|
divergedBoxes: z.ZodArray<z.ZodObject<{
|
|
75
|
-
kind: z.ZodEnum<{
|
|
76
|
-
space: "space";
|
|
77
|
-
pool: "pool";
|
|
78
|
-
}>;
|
|
79
66
|
id: z.ZodString;
|
|
80
|
-
|
|
81
|
-
title: z.ZodNullable<z.ZodString>;
|
|
82
|
-
reportedRevision: z.ZodNullable<z.ZodString>;
|
|
83
|
-
pinnedRevision: z.ZodNullable<z.ZodString>;
|
|
84
|
-
desiredRevision: z.ZodNullable<z.ZodString>;
|
|
85
|
-
reportedAt: z.ZodNullable<z.ZodString>;
|
|
86
|
-
syncState: z.ZodEnum<{
|
|
67
|
+
status: z.ZodEnum<{
|
|
87
68
|
failed: "failed";
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
69
|
+
ready: "ready";
|
|
70
|
+
warming: "warming";
|
|
71
|
+
assigned: "assigned";
|
|
91
72
|
}>;
|
|
92
|
-
|
|
93
|
-
pinnedSpaces: z.ZodArray<z.ZodObject<{
|
|
94
|
-
kind: z.ZodEnum<{
|
|
95
|
-
space: "space";
|
|
96
|
-
pool: "pool";
|
|
97
|
-
}>;
|
|
98
|
-
id: z.ZodString;
|
|
73
|
+
spaceId: z.ZodNullable<z.ZodString>;
|
|
99
74
|
slug: z.ZodNullable<z.ZodString>;
|
|
100
75
|
title: z.ZodNullable<z.ZodString>;
|
|
76
|
+
providerRef: z.ZodNullable<z.ZodString>;
|
|
101
77
|
reportedRevision: z.ZodNullable<z.ZodString>;
|
|
102
|
-
pinnedRevision: z.ZodNullable<z.ZodString>;
|
|
103
78
|
desiredRevision: z.ZodNullable<z.ZodString>;
|
|
104
|
-
|
|
105
|
-
syncState: z.ZodEnum<{
|
|
106
|
-
failed: "failed";
|
|
107
|
-
running: "running";
|
|
108
|
-
pending: "pending";
|
|
109
|
-
idle: "idle";
|
|
110
|
-
}>;
|
|
79
|
+
pinnedRevision: z.ZodNullable<z.ZodString>;
|
|
111
80
|
}, z.core.$strict>>;
|
|
112
81
|
}, z.core.$strip>>;
|
|
113
82
|
}, z.core.$strict>;
|
|
114
|
-
export declare const superadminRuntimePreviewBodySchema: z.ZodObject<{
|
|
115
|
-
revision: z.ZodString;
|
|
116
|
-
}, z.core.$strict>;
|
|
117
|
-
export declare const SuperadminRuntimePreviewActionSchema: z.ZodObject<{
|
|
118
|
-
action: z.ZodEnum<{
|
|
119
|
-
rollback: "rollback";
|
|
120
|
-
retry: "retry";
|
|
121
|
-
promote: "promote";
|
|
122
|
-
}>;
|
|
123
|
-
admissionPercent: z.ZodUnion<readonly [z.ZodLiteral<10>, z.ZodLiteral<50>, z.ZodLiteral<100>]>;
|
|
124
|
-
affected: z.ZodObject<{
|
|
125
|
-
spaces: z.ZodNumber;
|
|
126
|
-
pool: z.ZodNumber;
|
|
127
|
-
}, z.core.$strict>;
|
|
128
|
-
}, z.core.$strict>;
|
|
129
|
-
export declare const SuperadminRuntimePreviewSchema: z.ZodObject<{
|
|
130
|
-
revision: z.ZodString;
|
|
131
|
-
tag: z.ZodString;
|
|
132
|
-
zipUrl: z.ZodString;
|
|
133
|
-
md5: z.ZodString;
|
|
134
|
-
nativeSha256: z.ZodString;
|
|
135
|
-
previouslyPromotedAt: z.ZodNullable<z.ZodString>;
|
|
136
|
-
currentRevision: z.ZodNullable<z.ZodString>;
|
|
137
|
-
actions: z.ZodArray<z.ZodObject<{
|
|
138
|
-
action: z.ZodEnum<{
|
|
139
|
-
rollback: "rollback";
|
|
140
|
-
retry: "retry";
|
|
141
|
-
promote: "promote";
|
|
142
|
-
}>;
|
|
143
|
-
admissionPercent: z.ZodUnion<readonly [z.ZodLiteral<10>, z.ZodLiteral<50>, z.ZodLiteral<100>]>;
|
|
144
|
-
affected: z.ZodObject<{
|
|
145
|
-
spaces: z.ZodNumber;
|
|
146
|
-
pool: z.ZodNumber;
|
|
147
|
-
}, z.core.$strict>;
|
|
148
|
-
}, z.core.$strict>>;
|
|
149
|
-
}, z.core.$strict>;
|
|
150
83
|
export declare const superadminRuntimePromoteBodySchema: z.ZodObject<{
|
|
151
84
|
revision: z.ZodString;
|
|
152
85
|
confirmRevision: z.ZodString;
|
|
153
|
-
action: z.ZodEnum<{
|
|
154
|
-
rollback: "rollback";
|
|
155
|
-
retry: "retry";
|
|
156
|
-
promote: "promote";
|
|
157
|
-
}>;
|
|
158
|
-
admissionPercent: z.ZodUnion<readonly [z.ZodLiteral<10>, z.ZodLiteral<50>, z.ZodLiteral<100>]>;
|
|
159
86
|
}, z.core.$strict>;
|
|
160
87
|
export declare const SuperadminRuntimeMutationSchema: z.ZodObject<{
|
|
161
88
|
revision: z.ZodString;
|
|
162
|
-
admissionPercent: z.ZodNumber;
|
|
163
|
-
accepted: z.ZodNumber;
|
|
164
89
|
queued: z.ZodNumber;
|
|
165
90
|
}, z.core.$strict>;
|
|
166
|
-
export declare const superadminRuntimeAdmissionBodySchema: z.ZodObject<{
|
|
167
|
-
admissionPercent: z.ZodUnion<readonly [z.ZodLiteral<10>, z.ZodLiteral<50>, z.ZodLiteral<100>]>;
|
|
168
|
-
confirm: z.ZodLiteral<true>;
|
|
169
|
-
}, z.core.$strict>;
|
|
170
91
|
export declare const superadminRuntimeSyncBodySchema: z.ZodObject<{
|
|
171
92
|
spaceIds: z.ZodArray<z.ZodString>;
|
|
172
|
-
action: z.ZodEnum<{
|
|
173
|
-
pin: "pin";
|
|
174
|
-
sync: "sync";
|
|
175
|
-
unpin: "unpin";
|
|
176
|
-
}>;
|
|
177
|
-
revision: z.ZodOptional<z.ZodString>;
|
|
178
93
|
force: z.ZodOptional<z.ZodBoolean>;
|
|
94
|
+
pin: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
179
95
|
}, z.core.$strict>;
|
|
180
96
|
export declare const SuperadminRuntimeSyncResponseSchema: z.ZodObject<{
|
|
181
97
|
accepted: z.ZodNumber;
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
targetRevision: z.ZodNullable<z.ZodString>;
|
|
186
|
-
desiredRevision: z.ZodNullable<z.ZodString>;
|
|
187
|
-
state: z.ZodEnum<{
|
|
98
|
+
boxes: z.ZodArray<z.ZodObject<{
|
|
99
|
+
id: z.ZodString;
|
|
100
|
+
status: z.ZodEnum<{
|
|
188
101
|
failed: "failed";
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
102
|
+
ready: "ready";
|
|
103
|
+
warming: "warming";
|
|
104
|
+
assigned: "assigned";
|
|
192
105
|
}>;
|
|
106
|
+
spaceId: z.ZodNullable<z.ZodString>;
|
|
107
|
+
slug: z.ZodNullable<z.ZodString>;
|
|
108
|
+
title: z.ZodNullable<z.ZodString>;
|
|
109
|
+
providerRef: z.ZodNullable<z.ZodString>;
|
|
110
|
+
reportedRevision: z.ZodNullable<z.ZodString>;
|
|
111
|
+
desiredRevision: z.ZodNullable<z.ZodString>;
|
|
112
|
+
pinnedRevision: z.ZodNullable<z.ZodString>;
|
|
193
113
|
}, z.core.$strict>>;
|
|
194
114
|
}, z.core.$strict>;
|
|
195
115
|
export type SuperadminRuntimeStatus = z.infer<typeof SuperadminRuntimeStatusSchema>;
|
|
196
|
-
export type
|
|
197
|
-
export type SuperadminRuntimePreviewAction = z.infer<typeof SuperadminRuntimePreviewActionSchema>;
|
|
116
|
+
export type SuperadminRuntimeFleetBox = z.infer<typeof SuperadminRuntimeFleetBoxSchema>;
|
|
198
117
|
export type SuperadminRuntimeMutation = z.infer<typeof SuperadminRuntimeMutationSchema>;
|
|
199
118
|
export type SuperadminRuntimeSyncResponse = z.infer<typeof SuperadminRuntimeSyncResponseSchema>;
|
|
@@ -7,22 +7,21 @@ export const SuperadminRuntimeReleaseSchema = z
|
|
|
7
7
|
zipUrl: z.string(),
|
|
8
8
|
md5: z.string(),
|
|
9
9
|
nativeSha256: z.string(),
|
|
10
|
-
admissionPercent: z.number().int().min(0).max(100),
|
|
11
10
|
promotedAt: z.string(),
|
|
12
11
|
current: z.boolean(),
|
|
13
12
|
})
|
|
14
13
|
.strict();
|
|
15
14
|
export const SuperadminRuntimeFleetBoxSchema = z
|
|
16
15
|
.object({
|
|
17
|
-
kind: z.enum(["space", "pool"]),
|
|
18
16
|
id: z.string(),
|
|
17
|
+
status: z.enum(["warming", "ready", "assigned", "failed"]),
|
|
18
|
+
spaceId: z.string().nullable(),
|
|
19
19
|
slug: z.string().nullable(),
|
|
20
20
|
title: z.string().nullable(),
|
|
21
|
+
providerRef: z.string().nullable(),
|
|
21
22
|
reportedRevision: z.string().nullable(),
|
|
22
|
-
pinnedRevision: z.string().nullable(),
|
|
23
23
|
desiredRevision: z.string().nullable(),
|
|
24
|
-
|
|
25
|
-
syncState: z.enum(["idle", "pending", "running", "failed"]),
|
|
24
|
+
pinnedRevision: z.string().nullable(),
|
|
26
25
|
})
|
|
27
26
|
.strict();
|
|
28
27
|
export const SuperadminRuntimeStatusSchema = z
|
|
@@ -44,98 +43,43 @@ export const SuperadminRuntimeStatusSchema = z
|
|
|
44
43
|
.nullable(),
|
|
45
44
|
fleet: z
|
|
46
45
|
.object({
|
|
47
|
-
|
|
48
|
-
total: z.number().int().nonnegative(),
|
|
49
|
-
current: z.number().int().nonnegative(),
|
|
50
|
-
diverged: z.number().int().nonnegative(),
|
|
51
|
-
pinned: z.number().int().nonnegative(),
|
|
52
|
-
}),
|
|
53
|
-
pool: z.object({
|
|
46
|
+
boxes: z.object({
|
|
54
47
|
total: z.number().int().nonnegative(),
|
|
48
|
+
ready: z.number().int().nonnegative(),
|
|
49
|
+
assigned: z.number().int().nonnegative(),
|
|
50
|
+
warming: z.number().int().nonnegative(),
|
|
55
51
|
current: z.number().int().nonnegative(),
|
|
56
52
|
diverged: z.number().int().nonnegative(),
|
|
57
53
|
}),
|
|
58
54
|
divergedBoxes: z.array(SuperadminRuntimeFleetBoxSchema),
|
|
59
|
-
pinnedSpaces: z.array(SuperadminRuntimeFleetBoxSchema),
|
|
60
55
|
})
|
|
61
56
|
.nullable(),
|
|
62
57
|
})
|
|
63
58
|
.strict();
|
|
64
|
-
export const superadminRuntimePreviewBodySchema = z
|
|
65
|
-
.object({ revision: superadminRuntimeRevisionSchema })
|
|
66
|
-
.strict();
|
|
67
|
-
export const SuperadminRuntimePreviewActionSchema = z
|
|
68
|
-
.object({
|
|
69
|
-
action: z.enum(["promote", "rollback", "retry"]),
|
|
70
|
-
admissionPercent: z.union([z.literal(10), z.literal(50), z.literal(100)]),
|
|
71
|
-
affected: z.object({ spaces: z.number().int(), pool: z.number().int() }).strict(),
|
|
72
|
-
})
|
|
73
|
-
.strict();
|
|
74
|
-
export const SuperadminRuntimePreviewSchema = z
|
|
75
|
-
.object({
|
|
76
|
-
revision: z.string(),
|
|
77
|
-
tag: z.string(),
|
|
78
|
-
zipUrl: z.string(),
|
|
79
|
-
md5: z.string(),
|
|
80
|
-
nativeSha256: z.string(),
|
|
81
|
-
previouslyPromotedAt: z.string().nullable(),
|
|
82
|
-
currentRevision: z.string().nullable(),
|
|
83
|
-
actions: z.array(SuperadminRuntimePreviewActionSchema).min(1),
|
|
84
|
-
})
|
|
85
|
-
.strict();
|
|
86
59
|
export const superadminRuntimePromoteBodySchema = z
|
|
87
60
|
.object({
|
|
88
61
|
revision: superadminRuntimeRevisionSchema,
|
|
89
62
|
confirmRevision: superadminRuntimeRevisionSchema,
|
|
90
|
-
action: z.enum(["promote", "rollback", "retry"]),
|
|
91
|
-
admissionPercent: z.union([z.literal(10), z.literal(50), z.literal(100)]),
|
|
92
63
|
})
|
|
93
64
|
.strict();
|
|
94
65
|
export const SuperadminRuntimeMutationSchema = z
|
|
95
66
|
.object({
|
|
96
67
|
revision: z.string(),
|
|
97
|
-
admissionPercent: z.number().int().min(0).max(100),
|
|
98
|
-
accepted: z.number().int().nonnegative(),
|
|
99
68
|
queued: z.number().int().nonnegative(),
|
|
100
69
|
})
|
|
101
70
|
.strict();
|
|
102
|
-
export const superadminRuntimeAdmissionBodySchema = z
|
|
103
|
-
.object({
|
|
104
|
-
admissionPercent: z.union([z.literal(10), z.literal(50), z.literal(100)]),
|
|
105
|
-
confirm: z.literal(true),
|
|
106
|
-
})
|
|
107
|
-
.strict();
|
|
108
71
|
export const superadminRuntimeSyncBodySchema = z
|
|
109
72
|
.object({
|
|
110
73
|
spaceIds: z.array(z.string().min(1)).min(1).max(100),
|
|
111
|
-
action: z.enum(["sync", "pin", "unpin"]),
|
|
112
|
-
revision: superadminRuntimeRevisionSchema.optional(),
|
|
113
74
|
force: z.boolean().optional(),
|
|
75
|
+
// A revision (or unique prefix of a promoted one) pins the spaces' boxes
|
|
76
|
+
// to it; explicit null clears the pin. Absent = leave pins untouched.
|
|
77
|
+
pin: superadminRuntimeRevisionSchema.nullable().optional(),
|
|
114
78
|
})
|
|
115
|
-
.strict()
|
|
116
|
-
.superRefine((value, context) => {
|
|
117
|
-
if (value.action === "pin" && !value.revision) {
|
|
118
|
-
context.addIssue({ code: "custom", path: ["revision"], message: "Pin requires a revision." });
|
|
119
|
-
}
|
|
120
|
-
if (value.action !== "pin" && value.revision !== undefined) {
|
|
121
|
-
context.addIssue({
|
|
122
|
-
code: "custom",
|
|
123
|
-
path: ["revision"],
|
|
124
|
-
message: "Only pin accepts a revision.",
|
|
125
|
-
});
|
|
126
|
-
}
|
|
127
|
-
});
|
|
79
|
+
.strict();
|
|
128
80
|
export const SuperadminRuntimeSyncResponseSchema = z
|
|
129
81
|
.object({
|
|
130
82
|
accepted: z.number().int().nonnegative(),
|
|
131
|
-
|
|
132
|
-
spaces: z.array(z
|
|
133
|
-
.object({
|
|
134
|
-
spaceId: z.string(),
|
|
135
|
-
targetRevision: z.string().nullable(),
|
|
136
|
-
desiredRevision: z.string().nullable(),
|
|
137
|
-
state: z.enum(["idle", "pending", "running", "failed"]),
|
|
138
|
-
})
|
|
139
|
-
.strict()),
|
|
83
|
+
boxes: z.array(SuperadminRuntimeFleetBoxSchema),
|
|
140
84
|
})
|
|
141
85
|
.strict();
|
|
@@ -9,10 +9,10 @@ export declare const SuperadminSearchHitSchema: z.ZodDiscriminatedUnion<[z.ZodOb
|
|
|
9
9
|
teamSlug: z.ZodNullable<z.ZodString>;
|
|
10
10
|
status: z.ZodEnum<{
|
|
11
11
|
active: "active";
|
|
12
|
-
failed: "failed";
|
|
13
12
|
provisioning: "provisioning";
|
|
14
13
|
updating: "updating";
|
|
15
14
|
deleting: "deleting";
|
|
15
|
+
failed: "failed";
|
|
16
16
|
}>;
|
|
17
17
|
anonymous: z.ZodBoolean;
|
|
18
18
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -42,11 +42,10 @@ export declare const SuperadminSearchHitSchema: z.ZodDiscriminatedUnion<[z.ZodOb
|
|
|
42
42
|
providerRef: z.ZodNullable<z.ZodString>;
|
|
43
43
|
primaryHostname: z.ZodString;
|
|
44
44
|
status: z.ZodEnum<{
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
cleanup_pending: "cleanup_pending";
|
|
45
|
+
failed: "failed";
|
|
46
|
+
ready: "ready";
|
|
47
|
+
warming: "warming";
|
|
48
|
+
assigned: "assigned";
|
|
50
49
|
}>;
|
|
51
50
|
}, z.core.$strip>, z.ZodObject<{
|
|
52
51
|
kind: z.ZodLiteral<"operation">;
|
|
@@ -61,10 +60,10 @@ export declare const SuperadminSearchHitSchema: z.ZodDiscriminatedUnion<[z.ZodOb
|
|
|
61
60
|
spaceId: z.ZodString;
|
|
62
61
|
matchedBy: z.ZodEnum<{
|
|
63
62
|
domain: "domain";
|
|
64
|
-
retired: "retired";
|
|
65
63
|
hostname: "hostname";
|
|
66
64
|
derived: "derived";
|
|
67
65
|
retained: "retained";
|
|
66
|
+
retired: "retired";
|
|
68
67
|
}>;
|
|
69
68
|
}, z.core.$strip>], "kind">;
|
|
70
69
|
export declare const SuperadminSearchResultSchema: z.ZodObject<{
|
|
@@ -79,10 +78,10 @@ export declare const SuperadminSearchResultSchema: z.ZodObject<{
|
|
|
79
78
|
teamSlug: z.ZodNullable<z.ZodString>;
|
|
80
79
|
status: z.ZodEnum<{
|
|
81
80
|
active: "active";
|
|
82
|
-
failed: "failed";
|
|
83
81
|
provisioning: "provisioning";
|
|
84
82
|
updating: "updating";
|
|
85
83
|
deleting: "deleting";
|
|
84
|
+
failed: "failed";
|
|
86
85
|
}>;
|
|
87
86
|
anonymous: z.ZodBoolean;
|
|
88
87
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -112,11 +111,10 @@ export declare const SuperadminSearchResultSchema: z.ZodObject<{
|
|
|
112
111
|
providerRef: z.ZodNullable<z.ZodString>;
|
|
113
112
|
primaryHostname: z.ZodString;
|
|
114
113
|
status: z.ZodEnum<{
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
cleanup_pending: "cleanup_pending";
|
|
114
|
+
failed: "failed";
|
|
115
|
+
ready: "ready";
|
|
116
|
+
warming: "warming";
|
|
117
|
+
assigned: "assigned";
|
|
120
118
|
}>;
|
|
121
119
|
}, z.core.$strip>, z.ZodObject<{
|
|
122
120
|
kind: z.ZodLiteral<"operation">;
|
|
@@ -131,10 +129,10 @@ export declare const SuperadminSearchResultSchema: z.ZodObject<{
|
|
|
131
129
|
spaceId: z.ZodString;
|
|
132
130
|
matchedBy: z.ZodEnum<{
|
|
133
131
|
domain: "domain";
|
|
134
|
-
retired: "retired";
|
|
135
132
|
hostname: "hostname";
|
|
136
133
|
derived: "derived";
|
|
137
134
|
retained: "retained";
|
|
135
|
+
retired: "retired";
|
|
138
136
|
}>;
|
|
139
137
|
}, z.core.$strip>], "kind">>;
|
|
140
138
|
}, z.core.$strip>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
-
import {
|
|
2
|
+
import { spaceStatus, tenantStatus } from "./enums.js";
|
|
3
3
|
// The operator omnibox: one query string over every operator-visible identity.
|
|
4
4
|
// Each hit carries just enough to render a row and route to the resource.
|
|
5
5
|
export const SuperadminSearchHitSchema = z.discriminatedUnion("kind", [
|
|
@@ -38,7 +38,7 @@ export const SuperadminSearchHitSchema = z.discriminatedUnion("kind", [
|
|
|
38
38
|
id: z.string(),
|
|
39
39
|
providerRef: z.string().nullable(),
|
|
40
40
|
primaryHostname: z.string(),
|
|
41
|
-
status:
|
|
41
|
+
status: z.enum(["warming", "ready", "assigned", "failed"]),
|
|
42
42
|
}),
|
|
43
43
|
z.object({
|
|
44
44
|
kind: z.literal("operation"),
|