@spacefast/common 0.0.3 → 0.0.6
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/connect-targets.d.ts +133 -0
- package/dist/agents/connect-targets.js +224 -0
- package/dist/brand.d.ts +1 -0
- package/dist/brand.js +5 -0
- package/dist/config/domains.d.ts +12 -6
- package/dist/config/domains.js +30 -38
- package/dist/contracts/access.d.ts +829 -129
- package/dist/contracts/access.js +771 -148
- package/dist/contracts/activity.d.ts +5 -5
- package/dist/contracts/activity.js +28 -2
- package/dist/contracts/annotations.d.ts +3 -5
- package/dist/contracts/api-keys.d.ts +9 -10
- package/dist/contracts/api-keys.js +9 -6
- package/dist/contracts/archives.d.ts +22 -16
- package/dist/contracts/archives.js +11 -4
- package/dist/contracts/billing.d.ts +21 -30
- package/dist/contracts/builds.d.ts +21 -17
- package/dist/contracts/builds.js +12 -0
- package/dist/contracts/channels.d.ts +2 -2
- package/dist/contracts/common.d.ts +7 -5
- package/dist/contracts/common.js +4 -0
- package/dist/contracts/continuation.d.ts +63 -0
- package/dist/contracts/continuation.js +91 -0
- package/dist/contracts/countries.d.ts +2 -0
- package/dist/contracts/countries.js +261 -0
- package/dist/contracts/deployments.d.ts +34 -34
- package/dist/contracts/device-auth.d.ts +4 -11
- package/dist/contracts/device-auth.js +4 -0
- package/dist/contracts/docs.d.ts +119 -0
- package/dist/contracts/docs.js +51 -0
- package/dist/contracts/domains.d.ts +295 -253
- package/dist/contracts/domains.js +26 -4
- package/dist/contracts/enums.d.ts +17 -18
- package/dist/contracts/enums.js +25 -14
- package/dist/contracts/error-code-meta.d.ts +84 -0
- package/dist/contracts/error-code-meta.js +99 -10
- package/dist/contracts/error-codes.d.ts +1 -1
- package/dist/contracts/error-codes.js +17 -0
- package/dist/contracts/events.d.ts +13 -13
- package/dist/contracts/features.d.ts +93 -23
- package/dist/contracts/features.js +178 -13
- package/dist/contracts/git.d.ts +3 -9
- package/dist/contracts/ids.d.ts +5 -0
- package/dist/contracts/ids.js +5 -0
- package/dist/contracts/internal.d.ts +3 -3
- package/dist/contracts/mcp.d.ts +34 -36
- package/dist/contracts/me.d.ts +8 -8
- package/dist/contracts/me.js +1 -1
- package/dist/contracts/oauth-resources.d.ts +19 -8
- package/dist/contracts/oauth-resources.js +44 -13
- package/dist/contracts/operations.d.ts +2 -2
- package/dist/contracts/plan-policy.d.ts +4 -4
- package/dist/contracts/platform.d.ts +3 -105
- package/dist/contracts/platform.js +0 -50
- package/dist/contracts/push-new.d.ts +4 -4
- package/dist/contracts/quotas.d.ts +2 -0
- package/dist/contracts/quotas.js +8 -0
- package/dist/contracts/repository-connections.d.ts +1 -3
- package/dist/contracts/resources.d.ts +112 -28
- package/dist/contracts/resources.js +26 -2
- package/dist/contracts/routes.d.ts +0 -2
- package/dist/contracts/runtime-api.d.ts +365 -43
- package/dist/contracts/runtime-api.js +275 -6
- package/dist/contracts/sites.d.ts +45 -28
- package/dist/contracts/sites.js +21 -0
- package/dist/contracts/space-config.d.ts +201 -2
- package/dist/contracts/space-config.js +135 -5
- package/dist/contracts/spaces.d.ts +423 -162
- package/dist/contracts/spaces.js +94 -8
- package/dist/contracts/superadmin-emails.d.ts +7 -5
- package/dist/contracts/superadmin-emails.js +8 -0
- package/dist/contracts/superadmin-queues.d.ts +32 -32
- package/dist/contracts/superadmin-spaces.d.ts +418 -24
- package/dist/contracts/superadmin-spaces.js +24 -0
- package/dist/contracts/superadmin-tenants.d.ts +8 -8
- package/dist/contracts/superadmin.d.ts +17 -104
- package/dist/contracts/superadmin.js +6 -14
- package/dist/contracts/tags.d.ts +42 -41
- package/dist/contracts/tags.js +2 -1
- package/dist/contracts/teams.d.ts +40 -23
- package/dist/contracts/teams.js +20 -1
- package/dist/contracts/theme-json.d.ts +30 -0
- package/dist/contracts/theme-json.js +48 -0
- package/dist/contracts/transfers.d.ts +9 -9
- package/dist/contracts/variables.d.ts +14 -16
- package/dist/contracts/variables.js +0 -5
- package/dist/contracts/webhooks.d.ts +6 -4
- package/dist/contracts/webhooks.js +1 -1
- package/dist/contracts/zero.d.ts +13 -18
- package/dist/docs/agent-prose.d.ts +43 -3
- package/dist/docs/agent-prose.js +153 -10
- package/dist/docs/agent-setup.js +48 -15
- package/dist/docs/agent-solutions.d.ts +5 -5
- package/dist/docs/agent-solutions.js +2 -2
- package/dist/docs/catalog.d.ts +650 -0
- package/dist/docs/catalog.js +758 -0
- package/dist/docs/error-docs.d.ts +0 -2
- package/dist/docs/error-docs.js +89 -35
- package/dist/docs/index-build.d.ts +17 -0
- package/dist/docs/index-build.js +24 -0
- package/dist/docs/search.d.ts +54 -0
- package/dist/docs/search.js +96 -0
- package/dist/docs/skill-distribution.d.ts +5 -3
- package/dist/docs/skill-distribution.js +8 -8
- package/dist/utils/access-match.d.ts +39 -0
- package/dist/utils/access-match.js +296 -0
- package/dist/utils/auth-redirect.d.ts +3 -1
- package/dist/utils/auth-redirect.js +21 -1
- package/dist/utils/build-settings.d.ts +6 -0
- package/dist/utils/build-settings.js +429 -46
- package/dist/utils/claim-token.d.ts +8 -0
- package/dist/utils/claim-token.js +23 -2
- package/dist/utils/content-type.d.ts +1 -0
- package/dist/utils/content-type.js +1 -1
- package/dist/utils/credential-policy.d.ts +54 -0
- package/dist/utils/{access-policy.js → credential-policy.js} +28 -2
- package/dist/utils/gate-theme.d.ts +61 -0
- package/dist/utils/gate-theme.js +217 -0
- package/dist/utils/git-repository.d.ts +0 -1
- package/dist/utils/git-repository.js +0 -3
- package/dist/utils/id-hints.d.ts +8 -0
- package/dist/utils/id-hints.js +61 -0
- package/dist/utils/local-space-state.d.ts +91 -0
- package/dist/utils/local-space-state.js +251 -0
- package/dist/utils/oauth-signed-query.d.ts +8 -0
- package/dist/utils/oauth-signed-query.js +26 -0
- package/dist/utils/publish-detection.d.ts +0 -8
- package/dist/utils/publish-detection.js +0 -93
- package/dist/utils/publish-policy.d.ts +6 -5
- package/dist/utils/publish-policy.js +71 -7
- package/dist/utils/query-keys.d.ts +17 -6
- package/dist/utils/query-keys.js +27 -4
- package/dist/utils/runtime-paths.d.ts +0 -1
- package/dist/utils/runtime-paths.js +0 -1
- package/dist/utils/runtime-upload-batch.d.ts +18 -0
- package/dist/utils/runtime-upload-batch.js +90 -0
- package/dist/utils/runtime-upload.d.ts +2 -0
- package/dist/utils/runtime-upload.js +5 -0
- package/dist/utils/space-config.d.ts +4 -0
- package/dist/utils/space-config.js +10 -1
- package/dist/utils/space-theme.d.ts +2 -0
- package/dist/utils/space-theme.js +9 -0
- package/dist/utils/static-runtime-policy.d.ts +1 -1
- package/dist/utils/static-runtime-policy.js +47 -15
- package/dist/utils/upload-session.d.ts +1 -1
- package/dist/utils/wpcom-auth-redirects.d.ts +32 -2
- package/dist/utils/wpcom-auth-redirects.js +26 -10
- package/dist/vocabulary.d.ts +130 -30
- package/dist/vocabulary.js +77 -36
- package/package.json +16 -1
- package/dist/contracts/account.d.ts +0 -28
- package/dist/contracts/account.js +0 -54
- package/dist/contracts/intercom.d.ts +0 -6
- package/dist/contracts/intercom.js +0 -5
- package/dist/contracts/telemetry.d.ts +0 -2
- package/dist/contracts/telemetry.js +0 -1
- package/dist/utils/access-policy.d.ts +0 -39
- package/dist/utils/error-display.d.ts +0 -7
- package/dist/utils/error-display.js +0 -42
package/dist/contracts/spaces.js
CHANGED
|
@@ -3,7 +3,7 @@ import { AsyncOperationSchema, baseDiagnosticSchema, CursorPaginationSchema, cur
|
|
|
3
3
|
import { versionStatus, spaceStatus } from "./enums.js";
|
|
4
4
|
import { conventionFilesSchema, uploadInstructionsSchema, manifestFileSchema } from "./internal.js";
|
|
5
5
|
import { ChannelPointerSchema, VersionSchema, PublishSourceSchema, SpaceSchema, } from "./resources.js";
|
|
6
|
-
import { spaceConfigSchema } from "./space-config.js";
|
|
6
|
+
import { spaceConfigSchema, spacePlacementConfigSchema } from "./space-config.js";
|
|
7
7
|
import { principalIdSchema } from "./transfers.js";
|
|
8
8
|
import { zeroRuntimeKindSchema } from "./zero.js";
|
|
9
9
|
export const AnonymousSpaceAccessSchema = z.object({
|
|
@@ -14,7 +14,7 @@ export const AnonymousSpaceAccessSchema = z.object({
|
|
|
14
14
|
claimUrl: z
|
|
15
15
|
.string()
|
|
16
16
|
.nullable()
|
|
17
|
-
.describe("Browser-only link
|
|
17
|
+
.describe("Browser-only claim link in `/claim#nonce` form. The fragment is a human handoff capability; API clients use the claim token as bearer auth for publish/update/status/exchange."),
|
|
18
18
|
expiresAt: z
|
|
19
19
|
.string()
|
|
20
20
|
.datetime()
|
|
@@ -74,6 +74,7 @@ export const spacePatchSchema = z.object({
|
|
|
74
74
|
.optional()
|
|
75
75
|
.describe("Replaces the stored SpaceConfig overlay; null clears it."),
|
|
76
76
|
dataLocation: z.string().min(1).optional(),
|
|
77
|
+
placement: spacePlacementConfigSchema.optional(),
|
|
77
78
|
noindex: z
|
|
78
79
|
.boolean()
|
|
79
80
|
.optional()
|
|
@@ -91,7 +92,7 @@ export const spaceClaimSchema = z
|
|
|
91
92
|
claimToken: z
|
|
92
93
|
.string()
|
|
93
94
|
.min(1)
|
|
94
|
-
.describe("One-time claim token returned at anonymous creation.
|
|
95
|
+
.describe("One-time claim token returned at anonymous creation. API clients send it as bearer auth; browser claim links carry a separate nonce fragment."),
|
|
95
96
|
teamId: z
|
|
96
97
|
.string()
|
|
97
98
|
.min(1)
|
|
@@ -102,6 +103,10 @@ export const spaceClaimSchema = z
|
|
|
102
103
|
.min(1)
|
|
103
104
|
.optional()
|
|
104
105
|
.describe("Alias of teamId; must match when both are provided."),
|
|
106
|
+
agentContinuation: z
|
|
107
|
+
.boolean()
|
|
108
|
+
.optional()
|
|
109
|
+
.describe("Keep the publishing agent authorized after the claim (default false unless explicitly granted): the claim token demotes to a one-time voucher exchangeable for a durable publish access token."),
|
|
105
110
|
})
|
|
106
111
|
.superRefine((value, ctx) => {
|
|
107
112
|
if (value.teamId && value.targetTeamId && value.teamId !== value.targetTeamId) {
|
|
@@ -112,6 +117,84 @@ export const spaceClaimSchema = z
|
|
|
112
117
|
});
|
|
113
118
|
}
|
|
114
119
|
});
|
|
120
|
+
export const anonymousClaimAssignSchema = z.object({
|
|
121
|
+
teamId: z.string().min(1).optional(),
|
|
122
|
+
nonce: z.string().min(1).optional().describe("Browser claim nonce from the claim URL fragment."),
|
|
123
|
+
agentContinuation: z
|
|
124
|
+
.boolean()
|
|
125
|
+
.optional()
|
|
126
|
+
.describe("Keep the publishing agent authorized after the claim (default false unless explicitly granted): the claim token demotes to a one-time voucher exchangeable for a durable publish access token."),
|
|
127
|
+
});
|
|
128
|
+
export const anonymousClaimResolveSchema = z.object({
|
|
129
|
+
nonce: z.string().min(1).optional().describe("Browser claim nonce from the claim URL fragment."),
|
|
130
|
+
agentContinuation: z
|
|
131
|
+
.boolean()
|
|
132
|
+
.optional()
|
|
133
|
+
.describe("Applied when the resolve auto-claims (signed-in user with exactly one writable team). Defaults to false unless explicitly granted."),
|
|
134
|
+
});
|
|
135
|
+
export const anonymousClaimTeamSchema = z.object({
|
|
136
|
+
id: z.string(),
|
|
137
|
+
slug: z.string(),
|
|
138
|
+
name: z.string(),
|
|
139
|
+
});
|
|
140
|
+
export const anonymousClaimSpacePreviewSchema = z.object({
|
|
141
|
+
id: z.string(),
|
|
142
|
+
title: z.string(),
|
|
143
|
+
liveUrl: z.string().nullable(),
|
|
144
|
+
createdAt: z.string().datetime().nullable(),
|
|
145
|
+
});
|
|
146
|
+
export const anonymousClaimResponseSchema = z.object({
|
|
147
|
+
state: z.enum(["unclaimed", "claimed"]),
|
|
148
|
+
action: z.enum(["claimed", "login_required", "team_required", "confirm_assign"]),
|
|
149
|
+
space: anonymousClaimSpacePreviewSchema,
|
|
150
|
+
claim: z.object({
|
|
151
|
+
expiresAt: z.string().datetime().nullable(),
|
|
152
|
+
claimedAt: z.string().datetime().nullable(),
|
|
153
|
+
}),
|
|
154
|
+
teams: z.array(anonymousClaimTeamSchema).optional(),
|
|
155
|
+
});
|
|
156
|
+
export const anonymousClaimStatusResponseSchema = z.object({
|
|
157
|
+
publish: z.object({
|
|
158
|
+
status: z.enum(["pending", "ready", "failed", "expired", "claimed"]),
|
|
159
|
+
operationId: z.string().nullable().optional(),
|
|
160
|
+
}),
|
|
161
|
+
space: z.object({
|
|
162
|
+
id: z.string(),
|
|
163
|
+
liveUrl: z.string().nullable(),
|
|
164
|
+
}),
|
|
165
|
+
version: z.object({
|
|
166
|
+
id: z.string(),
|
|
167
|
+
ref: z.string().nullable(),
|
|
168
|
+
number: z.number().int().positive().nullable(),
|
|
169
|
+
status: VersionSchema.shape.status,
|
|
170
|
+
immutableUrl: z.string().nullable(),
|
|
171
|
+
manifestHash: z.string().nullable(),
|
|
172
|
+
}),
|
|
173
|
+
claim: z.object({
|
|
174
|
+
state: z.enum(["unclaimed", "claimed"]),
|
|
175
|
+
url: z.string().nullable(),
|
|
176
|
+
expiresAt: z.string().datetime().nullable(),
|
|
177
|
+
continuation: z
|
|
178
|
+
.enum(["available", "used", "unavailable"])
|
|
179
|
+
.optional()
|
|
180
|
+
.describe("Present once the space is claimed: whether this claim token can still be exchanged once for a durable access token (POST /v1/anonymous-claim/exchange)."),
|
|
181
|
+
}),
|
|
182
|
+
});
|
|
183
|
+
export const anonymousClaimExchangeResponseSchema = z.object({
|
|
184
|
+
space: z.object({
|
|
185
|
+
id: z.string(),
|
|
186
|
+
slug: z.string(),
|
|
187
|
+
liveUrl: z.string().nullable(),
|
|
188
|
+
}),
|
|
189
|
+
credential: z.object({
|
|
190
|
+
accessToken: z
|
|
191
|
+
.string()
|
|
192
|
+
.describe("Durable publish access token minted by the one-time exchange. Shown exactly once — store it (e.g. .spacefast/state.json) and never print it."),
|
|
193
|
+
accessTokenId: z.string(),
|
|
194
|
+
label: z.string().nullable(),
|
|
195
|
+
teamId: z.string(),
|
|
196
|
+
}),
|
|
197
|
+
});
|
|
115
198
|
export const spaceClaimReminderSchema = z.object({
|
|
116
199
|
email: z
|
|
117
200
|
.string()
|
|
@@ -214,9 +297,6 @@ export const spaceVersionFileIndexSchema = z.object({
|
|
|
214
297
|
byHash: z.record(z.string(), spaceVersionFileIndexEntrySchema),
|
|
215
298
|
byPath: z.record(z.string(), spaceVersionFileIndexEntrySchema),
|
|
216
299
|
});
|
|
217
|
-
export const spaceVersionFilesQuerySchema = z.object({
|
|
218
|
-
q: z.string().trim().min(1).max(255).optional(),
|
|
219
|
-
});
|
|
220
300
|
export const spaceVersionFilesSearchSchema = z.object({
|
|
221
301
|
query: z.string().nullable(),
|
|
222
302
|
total: z.number().int().nonnegative(),
|
|
@@ -448,7 +528,9 @@ export const publishReceiptSpaceSchema = z.object({
|
|
|
448
528
|
export const publishReceiptVersionSchema = z.object({
|
|
449
529
|
id: z.string(),
|
|
450
530
|
status: VersionSchema.shape.status,
|
|
451
|
-
immutableUrl: z.string()
|
|
531
|
+
immutableUrl: z.string(),
|
|
532
|
+
ref: z.string().nullable().optional(),
|
|
533
|
+
number: z.number().int().positive().nullable().optional(),
|
|
452
534
|
manifestHash: z.string().nullable(),
|
|
453
535
|
});
|
|
454
536
|
export const publishReceiptSchema = z.object({
|
|
@@ -486,6 +568,11 @@ export const publishReceiptSchema = z.object({
|
|
|
486
568
|
.describe('Promote endpoint; followable once the version reaches status "ready".'),
|
|
487
569
|
operation: z.string().optional().describe("Operation polling endpoint when publish queued."),
|
|
488
570
|
inspect: z.string().optional().describe("Space resource URL for follow-up reads."),
|
|
571
|
+
version: z.string().optional().describe("Version resource URL for structured clients."),
|
|
572
|
+
status: z
|
|
573
|
+
.string()
|
|
574
|
+
.optional()
|
|
575
|
+
.describe("Claim-token-authenticated anonymous publish status endpoint."),
|
|
489
576
|
})
|
|
490
577
|
.optional()
|
|
491
578
|
.describe("Follow-up links so agents can act on the receipt without knowing the full API."),
|
|
@@ -502,7 +589,6 @@ export const spaceVersionResumeResponseSchema = z.object({
|
|
|
502
589
|
.default([])
|
|
503
590
|
.describe("Manifest paths ignored by the server because the current plan does not allow them."),
|
|
504
591
|
});
|
|
505
|
-
export const spaceVersionRefreshResponseSchema = spaceVersionResumeResponseSchema;
|
|
506
592
|
// Promote body (spec "Explicit version routes"): `{ channel? }` defaulting to
|
|
507
593
|
// "live". Channels beyond live arrive additively; non-live names reject with
|
|
508
594
|
// `channel_unsupported` until then. Rollback is promoting an older ready
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
export declare const superadminEmailStatusValues: readonly ["all", "scheduled", "sent", "delivered", "bounced", "dropped", "complained", "opened", "clicked", "failed"];
|
|
3
|
-
export declare const superadminEmailCategoryValues: readonly ["transactional", "announcements", "offers", "system"];
|
|
3
|
+
export declare const superadminEmailCategoryValues: readonly ["transactional", "announcements", "offers", "system", "invites"];
|
|
4
4
|
export declare const superadminEmailListQuerySchema: z.ZodObject<{
|
|
5
5
|
limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
6
6
|
offset: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
7
7
|
status: z.ZodDefault<z.ZodEnum<{
|
|
8
|
-
failed: "failed";
|
|
9
8
|
all: "all";
|
|
9
|
+
failed: "failed";
|
|
10
10
|
delivered: "delivered";
|
|
11
|
+
dropped: "dropped";
|
|
11
12
|
scheduled: "scheduled";
|
|
12
13
|
sent: "sent";
|
|
13
14
|
bounced: "bounced";
|
|
14
|
-
dropped: "dropped";
|
|
15
15
|
complained: "complained";
|
|
16
16
|
opened: "opened";
|
|
17
17
|
clicked: "clicked";
|
|
@@ -20,17 +20,18 @@ export declare const superadminEmailListQuerySchema: z.ZodObject<{
|
|
|
20
20
|
userId: z.ZodOptional<z.ZodString>;
|
|
21
21
|
template: z.ZodOptional<z.ZodString>;
|
|
22
22
|
category: z.ZodDefault<z.ZodEnum<{
|
|
23
|
-
system: "system";
|
|
24
23
|
all: "all";
|
|
24
|
+
system: "system";
|
|
25
25
|
transactional: "transactional";
|
|
26
26
|
announcements: "announcements";
|
|
27
27
|
offers: "offers";
|
|
28
|
+
invites: "invites";
|
|
28
29
|
}>>;
|
|
29
30
|
timeRange: z.ZodDefault<z.ZodEnum<{
|
|
31
|
+
now: "now";
|
|
30
32
|
all: "all";
|
|
31
33
|
"7d": "7d";
|
|
32
34
|
"30d": "30d";
|
|
33
|
-
now: "now";
|
|
34
35
|
"1h": "1h";
|
|
35
36
|
"24h": "24h";
|
|
36
37
|
}>>;
|
|
@@ -46,6 +47,7 @@ export declare const superadminEmailSendSchema: z.ZodObject<{
|
|
|
46
47
|
transactional: "transactional";
|
|
47
48
|
announcements: "announcements";
|
|
48
49
|
offers: "offers";
|
|
50
|
+
invites: "invites";
|
|
49
51
|
}>>;
|
|
50
52
|
type: z.ZodDefault<z.ZodString>;
|
|
51
53
|
props: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
@@ -13,11 +13,19 @@ export const superadminEmailStatusValues = [
|
|
|
13
13
|
"clicked",
|
|
14
14
|
"failed",
|
|
15
15
|
];
|
|
16
|
+
// "invites" is the invite/request sending stream (access-plan X-25): mail
|
|
17
|
+
// carrying sender-authored content to arbitrary non-user addresses is
|
|
18
|
+
// attacker-adjacent, so it is categorized apart from transactional mail —
|
|
19
|
+
// burned reputation on the invite stream must never take down password
|
|
20
|
+
// resets. Stream-level isolation at the provider (a separate SES
|
|
21
|
+
// configuration set / sending identity) is an infra follow-up; the category
|
|
22
|
+
// is the seam it keys off.
|
|
16
23
|
export const superadminEmailCategoryValues = [
|
|
17
24
|
"transactional",
|
|
18
25
|
"announcements",
|
|
19
26
|
"offers",
|
|
20
27
|
"system",
|
|
28
|
+
"invites",
|
|
21
29
|
];
|
|
22
30
|
export const superadminEmailListQuerySchema = z.object({
|
|
23
31
|
limit: z.coerce.number().int().min(1).max(100).default(25),
|
|
@@ -2,9 +2,9 @@ import { z } from "zod";
|
|
|
2
2
|
export declare const SUPERADMIN_BULLMQ_JOB_STATE_VALUES: readonly ["active", "completed", "delayed", "failed", "paused", "prioritized", "waiting", "waiting-children"];
|
|
3
3
|
export declare const SUPERADMIN_BULLMQ_QUEUE_CLEAN_STATE_VALUES: readonly ["active", "completed", "delayed", "failed", "paused", "prioritized", "waiting"];
|
|
4
4
|
export declare const superadminBullmqJobStateSchema: z.ZodEnum<{
|
|
5
|
-
completed: "completed";
|
|
6
|
-
failed: "failed";
|
|
7
5
|
active: "active";
|
|
6
|
+
failed: "failed";
|
|
7
|
+
completed: "completed";
|
|
8
8
|
waiting: "waiting";
|
|
9
9
|
delayed: "delayed";
|
|
10
10
|
paused: "paused";
|
|
@@ -12,9 +12,9 @@ export declare const superadminBullmqJobStateSchema: z.ZodEnum<{
|
|
|
12
12
|
"waiting-children": "waiting-children";
|
|
13
13
|
}>;
|
|
14
14
|
export declare const superadminBullmqQueueCleanStateSchema: z.ZodEnum<{
|
|
15
|
-
completed: "completed";
|
|
16
|
-
failed: "failed";
|
|
17
15
|
active: "active";
|
|
16
|
+
failed: "failed";
|
|
17
|
+
completed: "completed";
|
|
18
18
|
waiting: "waiting";
|
|
19
19
|
delayed: "delayed";
|
|
20
20
|
paused: "paused";
|
|
@@ -80,9 +80,9 @@ export declare const SuperadminBullmqJobSchema: z.ZodObject<{
|
|
|
80
80
|
id: z.ZodString;
|
|
81
81
|
name: z.ZodString;
|
|
82
82
|
state: z.ZodEnum<{
|
|
83
|
-
completed: "completed";
|
|
84
|
-
failed: "failed";
|
|
85
83
|
active: "active";
|
|
84
|
+
failed: "failed";
|
|
85
|
+
completed: "completed";
|
|
86
86
|
waiting: "waiting";
|
|
87
87
|
delayed: "delayed";
|
|
88
88
|
paused: "paused";
|
|
@@ -100,9 +100,9 @@ export declare const SuperadminBullmqFleetJobSchema: z.ZodObject<{
|
|
|
100
100
|
id: z.ZodString;
|
|
101
101
|
name: z.ZodString;
|
|
102
102
|
state: z.ZodEnum<{
|
|
103
|
-
completed: "completed";
|
|
104
|
-
failed: "failed";
|
|
105
103
|
active: "active";
|
|
104
|
+
failed: "failed";
|
|
105
|
+
completed: "completed";
|
|
106
106
|
waiting: "waiting";
|
|
107
107
|
delayed: "delayed";
|
|
108
108
|
paused: "paused";
|
|
@@ -123,9 +123,9 @@ export declare const superadminBullmqJobListQuerySchema: z.ZodObject<{
|
|
|
123
123
|
limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
124
124
|
offset: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
125
125
|
state: z.ZodDefault<z.ZodUnion<readonly [z.ZodLiteral<"all">, z.ZodEnum<{
|
|
126
|
-
completed: "completed";
|
|
127
|
-
failed: "failed";
|
|
128
126
|
active: "active";
|
|
127
|
+
failed: "failed";
|
|
128
|
+
completed: "completed";
|
|
129
129
|
waiting: "waiting";
|
|
130
130
|
delayed: "delayed";
|
|
131
131
|
paused: "paused";
|
|
@@ -140,9 +140,9 @@ export declare const SuperadminBullmqJobListSchema: z.ZodObject<{
|
|
|
140
140
|
prev: z.ZodNullable<z.ZodNumber>;
|
|
141
141
|
}, z.core.$strip>;
|
|
142
142
|
state: z.ZodUnion<readonly [z.ZodLiteral<"all">, z.ZodEnum<{
|
|
143
|
-
completed: "completed";
|
|
144
|
-
failed: "failed";
|
|
145
143
|
active: "active";
|
|
144
|
+
failed: "failed";
|
|
145
|
+
completed: "completed";
|
|
146
146
|
waiting: "waiting";
|
|
147
147
|
delayed: "delayed";
|
|
148
148
|
paused: "paused";
|
|
@@ -157,9 +157,9 @@ export declare const SuperadminBullmqJobListSchema: z.ZodObject<{
|
|
|
157
157
|
id: z.ZodString;
|
|
158
158
|
name: z.ZodString;
|
|
159
159
|
state: z.ZodEnum<{
|
|
160
|
-
completed: "completed";
|
|
161
|
-
failed: "failed";
|
|
162
160
|
active: "active";
|
|
161
|
+
failed: "failed";
|
|
162
|
+
completed: "completed";
|
|
163
163
|
waiting: "waiting";
|
|
164
164
|
delayed: "delayed";
|
|
165
165
|
paused: "paused";
|
|
@@ -177,9 +177,9 @@ export declare const SuperadminBullmqJobListSchema: z.ZodObject<{
|
|
|
177
177
|
}, z.core.$strip>;
|
|
178
178
|
export declare const superadminBullmqFleetJobListQuerySchema: z.ZodObject<{
|
|
179
179
|
state: z.ZodDefault<z.ZodUnion<readonly [z.ZodLiteral<"all">, z.ZodEnum<{
|
|
180
|
-
completed: "completed";
|
|
181
|
-
failed: "failed";
|
|
182
180
|
active: "active";
|
|
181
|
+
failed: "failed";
|
|
182
|
+
completed: "completed";
|
|
183
183
|
waiting: "waiting";
|
|
184
184
|
delayed: "delayed";
|
|
185
185
|
paused: "paused";
|
|
@@ -199,9 +199,9 @@ export declare const SuperadminBullmqFleetJobListSchema: z.ZodObject<{
|
|
|
199
199
|
prev: z.ZodNullable<z.ZodNumber>;
|
|
200
200
|
}, z.core.$strip>;
|
|
201
201
|
state: z.ZodUnion<readonly [z.ZodLiteral<"all">, z.ZodEnum<{
|
|
202
|
-
completed: "completed";
|
|
203
|
-
failed: "failed";
|
|
204
202
|
active: "active";
|
|
203
|
+
failed: "failed";
|
|
204
|
+
completed: "completed";
|
|
205
205
|
waiting: "waiting";
|
|
206
206
|
delayed: "delayed";
|
|
207
207
|
paused: "paused";
|
|
@@ -217,9 +217,9 @@ export declare const SuperadminBullmqFleetJobListSchema: z.ZodObject<{
|
|
|
217
217
|
id: z.ZodString;
|
|
218
218
|
name: z.ZodString;
|
|
219
219
|
state: z.ZodEnum<{
|
|
220
|
-
completed: "completed";
|
|
221
|
-
failed: "failed";
|
|
222
220
|
active: "active";
|
|
221
|
+
failed: "failed";
|
|
222
|
+
completed: "completed";
|
|
223
223
|
waiting: "waiting";
|
|
224
224
|
delayed: "delayed";
|
|
225
225
|
paused: "paused";
|
|
@@ -241,9 +241,9 @@ export declare const SuperadminBullmqJobDetailSchema: z.ZodObject<{
|
|
|
241
241
|
queueName: z.ZodString;
|
|
242
242
|
name: z.ZodString;
|
|
243
243
|
state: z.ZodEnum<{
|
|
244
|
-
completed: "completed";
|
|
245
|
-
failed: "failed";
|
|
246
244
|
active: "active";
|
|
245
|
+
failed: "failed";
|
|
246
|
+
completed: "completed";
|
|
247
247
|
waiting: "waiting";
|
|
248
248
|
delayed: "delayed";
|
|
249
249
|
paused: "paused";
|
|
@@ -292,9 +292,9 @@ export declare const SuperadminBullmqWorkerListSchema: z.ZodObject<{
|
|
|
292
292
|
}, z.core.$strip>;
|
|
293
293
|
export declare const superadminBullmqQueueCleanSchema: z.ZodObject<{
|
|
294
294
|
state: z.ZodDefault<z.ZodEnum<{
|
|
295
|
-
completed: "completed";
|
|
296
|
-
failed: "failed";
|
|
297
295
|
active: "active";
|
|
296
|
+
failed: "failed";
|
|
297
|
+
completed: "completed";
|
|
298
298
|
waiting: "waiting";
|
|
299
299
|
delayed: "delayed";
|
|
300
300
|
paused: "paused";
|
|
@@ -327,9 +327,9 @@ export declare const superadminBullmqQueueActionBodySchema: z.ZodUnion<readonly
|
|
|
327
327
|
}>;
|
|
328
328
|
}, z.core.$strip>, z.ZodObject<{
|
|
329
329
|
state: z.ZodDefault<z.ZodEnum<{
|
|
330
|
-
completed: "completed";
|
|
331
|
-
failed: "failed";
|
|
332
330
|
active: "active";
|
|
331
|
+
failed: "failed";
|
|
332
|
+
completed: "completed";
|
|
333
333
|
waiting: "waiting";
|
|
334
334
|
delayed: "delayed";
|
|
335
335
|
paused: "paused";
|
|
@@ -372,15 +372,15 @@ export declare const SuperadminBullmqFleetActionResponseSchema: z.ZodObject<{
|
|
|
372
372
|
affectedJobs: z.ZodNullable<z.ZodNumber>;
|
|
373
373
|
}, z.core.$strip>;
|
|
374
374
|
export declare const superadminBullmqJobActionSchema: z.ZodEnum<{
|
|
375
|
-
retry: "retry";
|
|
376
|
-
promote: "promote";
|
|
377
375
|
remove: "remove";
|
|
376
|
+
promote: "promote";
|
|
377
|
+
retry: "retry";
|
|
378
378
|
}>;
|
|
379
379
|
export declare const superadminBullmqJobActionBodySchema: z.ZodObject<{
|
|
380
380
|
action: z.ZodEnum<{
|
|
381
|
-
retry: "retry";
|
|
382
|
-
promote: "promote";
|
|
383
381
|
remove: "remove";
|
|
382
|
+
promote: "promote";
|
|
383
|
+
retry: "retry";
|
|
384
384
|
}>;
|
|
385
385
|
}, z.core.$strip>;
|
|
386
386
|
export declare const SuperadminBullmqJobActionResponseSchema: z.ZodObject<{
|
|
@@ -388,9 +388,9 @@ export declare const SuperadminBullmqJobActionResponseSchema: z.ZodObject<{
|
|
|
388
388
|
queueName: z.ZodString;
|
|
389
389
|
jobId: z.ZodString;
|
|
390
390
|
action: z.ZodEnum<{
|
|
391
|
-
retry: "retry";
|
|
392
|
-
promote: "promote";
|
|
393
391
|
remove: "remove";
|
|
392
|
+
promote: "promote";
|
|
393
|
+
retry: "retry";
|
|
394
394
|
}>;
|
|
395
395
|
}, z.core.$strip>;
|
|
396
396
|
export type SuperadminBullmqJobState = z.infer<typeof superadminBullmqJobStateSchema>;
|