@spacefast/common 0.2.2 → 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 +18 -4
- package/dist/contracts/builds.js +7 -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 +384 -20
- package/dist/contracts/error-code-meta.js +200 -5
- package/dist/contracts/error-codes.d.ts +17 -4
- package/dist/contracts/error-codes.js +108 -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 +46 -9
- package/dist/contracts/oauth-resources.js +50 -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 +361 -17
- package/dist/docs/error-docs.js +365 -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
|
@@ -1,7 +1,86 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
export declare const APPLICATION_JOURNAL_MAX_DELIVERY_ATTEMPTS = 12;
|
|
3
|
+
/**
|
|
4
|
+
* The sink that carries editor changes back to a Space's repository. Its PHP
|
|
5
|
+
* twin is `STATTIC_APPLICATION_JOURNAL_CONTENT_SOURCE_SINK` in
|
|
6
|
+
* runtime/engine/shared/content-source-journal.php; the two must agree or the
|
|
7
|
+
* runtime answers a drain for this sink with an empty page.
|
|
8
|
+
*/
|
|
9
|
+
export declare const APPLICATION_JOURNAL_CONTENT_SOURCE_SINK = "control-plane:content-source";
|
|
3
10
|
export declare const applicationJournalEntryIdSchema: z.core.$ZodBranded<z.ZodString, "ApplicationJournalEntryId", "out">;
|
|
4
11
|
export type ApplicationJournalEntryId = z.infer<typeof applicationJournalEntryIdSchema>;
|
|
12
|
+
export declare const journalEmailAddressSchema: z.ZodObject<{
|
|
13
|
+
email: z.ZodString;
|
|
14
|
+
name: z.ZodOptional<z.ZodString>;
|
|
15
|
+
}, z.core.$strict>;
|
|
16
|
+
export declare const applicationJournalMailPayloadSchema: z.ZodObject<{
|
|
17
|
+
messageId: z.ZodString;
|
|
18
|
+
from: z.ZodObject<{
|
|
19
|
+
email: z.ZodString;
|
|
20
|
+
name: z.ZodOptional<z.ZodString>;
|
|
21
|
+
}, z.core.$strict>;
|
|
22
|
+
to: z.ZodArray<z.ZodObject<{
|
|
23
|
+
email: z.ZodString;
|
|
24
|
+
name: z.ZodOptional<z.ZodString>;
|
|
25
|
+
}, z.core.$strict>>;
|
|
26
|
+
cc: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
27
|
+
email: z.ZodString;
|
|
28
|
+
name: z.ZodOptional<z.ZodString>;
|
|
29
|
+
}, z.core.$strict>>>;
|
|
30
|
+
bcc: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
31
|
+
email: z.ZodString;
|
|
32
|
+
name: z.ZodOptional<z.ZodString>;
|
|
33
|
+
}, z.core.$strict>>>;
|
|
34
|
+
subject: z.ZodString;
|
|
35
|
+
body: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
36
|
+
kind: z.ZodLiteral<"text">;
|
|
37
|
+
text: z.ZodString;
|
|
38
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
39
|
+
kind: z.ZodLiteral<"html">;
|
|
40
|
+
html: z.ZodString;
|
|
41
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
42
|
+
kind: z.ZodLiteral<"multipart">;
|
|
43
|
+
text: z.ZodString;
|
|
44
|
+
html: z.ZodString;
|
|
45
|
+
}, z.core.$strict>], "kind">;
|
|
46
|
+
replyTo: z.ZodOptional<z.ZodObject<{
|
|
47
|
+
email: z.ZodString;
|
|
48
|
+
name: z.ZodOptional<z.ZodString>;
|
|
49
|
+
}, z.core.$strict>>;
|
|
50
|
+
headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
51
|
+
}, z.core.$strict>;
|
|
52
|
+
export type ApplicationJournalMailPayload = z.infer<typeof applicationJournalMailPayloadSchema>;
|
|
53
|
+
export declare const applicationJournalContentSourcePayloadSchema: z.ZodObject<{
|
|
54
|
+
bindingId: z.core.$ZodBranded<z.ZodString, "ContentSyncBindingId", "out">;
|
|
55
|
+
source: z.ZodString;
|
|
56
|
+
postId: z.ZodNumber;
|
|
57
|
+
wordpressRevisionId: z.ZodNumber;
|
|
58
|
+
baseRevision: z.core.$ZodBranded<z.ZodString, "ContentModelSha256", "out">;
|
|
59
|
+
author: z.ZodObject<{
|
|
60
|
+
name: z.ZodString;
|
|
61
|
+
email: z.ZodString;
|
|
62
|
+
}, z.core.$strict>;
|
|
63
|
+
}, z.core.$strict>;
|
|
64
|
+
export type ApplicationJournalContentSourcePayload = z.infer<typeof applicationJournalContentSourcePayloadSchema>;
|
|
65
|
+
/**
|
|
66
|
+
* A document the editor holds needs a file of its own.
|
|
67
|
+
*
|
|
68
|
+
* A post created in wp-admin under a collection that declares where its files
|
|
69
|
+
* live has no binding yet, so the entry names the post and the collection and
|
|
70
|
+
* lets the runtime decide the path — the same decision it would make for any
|
|
71
|
+
* other document in that collection. There is no `source` to carry because
|
|
72
|
+
* there is no file yet, and no `baseRevision` because there is no common base.
|
|
73
|
+
*/
|
|
74
|
+
export declare const applicationJournalContentMaterializePayloadSchema: z.ZodObject<{
|
|
75
|
+
resourceId: z.core.$ZodBranded<z.ZodString, "ContentResourceId", "out">;
|
|
76
|
+
postId: z.ZodNumber;
|
|
77
|
+
wordpressRevisionId: z.ZodNumber;
|
|
78
|
+
author: z.ZodObject<{
|
|
79
|
+
name: z.ZodString;
|
|
80
|
+
email: z.ZodString;
|
|
81
|
+
}, z.core.$strict>;
|
|
82
|
+
}, z.core.$strict>;
|
|
83
|
+
export type ApplicationJournalContentMaterializePayload = z.infer<typeof applicationJournalContentMaterializePayloadSchema>;
|
|
5
84
|
export declare const applicationJournalEntryV1Schema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
6
85
|
kind: z.ZodLiteral<"application-event">;
|
|
7
86
|
payload: z.ZodObject<{
|
|
@@ -18,7 +97,7 @@ export declare const applicationJournalEntryV1Schema: z.ZodDiscriminatedUnion<[z
|
|
|
18
97
|
wordpress: "wordpress";
|
|
19
98
|
lakebed: "lakebed";
|
|
20
99
|
}>;
|
|
21
|
-
payloadDigest: z.core.$ZodBranded<z.ZodString, "
|
|
100
|
+
payloadDigest: z.core.$ZodBranded<z.ZodString, "ContentModelSha256", "out">;
|
|
22
101
|
createdAt: z.ZodString;
|
|
23
102
|
}, z.core.$strict>, z.ZodObject<{
|
|
24
103
|
kind: z.ZodLiteral<"mail">;
|
|
@@ -32,6 +111,14 @@ export declare const applicationJournalEntryV1Schema: z.ZodDiscriminatedUnion<[z
|
|
|
32
111
|
email: z.ZodString;
|
|
33
112
|
name: z.ZodOptional<z.ZodString>;
|
|
34
113
|
}, z.core.$strict>>;
|
|
114
|
+
cc: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
115
|
+
email: z.ZodString;
|
|
116
|
+
name: z.ZodOptional<z.ZodString>;
|
|
117
|
+
}, z.core.$strict>>>;
|
|
118
|
+
bcc: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
119
|
+
email: z.ZodString;
|
|
120
|
+
name: z.ZodOptional<z.ZodString>;
|
|
121
|
+
}, z.core.$strict>>>;
|
|
35
122
|
subject: z.ZodString;
|
|
36
123
|
body: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
37
124
|
kind: z.ZodLiteral<"text">;
|
|
@@ -48,6 +135,55 @@ export declare const applicationJournalEntryV1Schema: z.ZodDiscriminatedUnion<[z
|
|
|
48
135
|
email: z.ZodString;
|
|
49
136
|
name: z.ZodOptional<z.ZodString>;
|
|
50
137
|
}, z.core.$strict>>;
|
|
138
|
+
headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
139
|
+
}, z.core.$strict>;
|
|
140
|
+
format: z.ZodLiteral<"spacefast.application-journal">;
|
|
141
|
+
version: z.ZodLiteral<1>;
|
|
142
|
+
id: z.core.$ZodBranded<z.ZodString, "ApplicationJournalEntryId", "out">;
|
|
143
|
+
spaceId: z.ZodTemplateLiteral<`spc_${string}`>;
|
|
144
|
+
operationId: z.ZodTemplateLiteral<`op_${string}`>;
|
|
145
|
+
effectOrdinal: z.ZodNumber;
|
|
146
|
+
store: z.ZodEnum<{
|
|
147
|
+
wordpress: "wordpress";
|
|
148
|
+
lakebed: "lakebed";
|
|
149
|
+
}>;
|
|
150
|
+
payloadDigest: z.core.$ZodBranded<z.ZodString, "ContentModelSha256", "out">;
|
|
151
|
+
createdAt: z.ZodString;
|
|
152
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
153
|
+
kind: z.ZodLiteral<"content-source-changed">;
|
|
154
|
+
payload: z.ZodObject<{
|
|
155
|
+
bindingId: z.core.$ZodBranded<z.ZodString, "ContentSyncBindingId", "out">;
|
|
156
|
+
source: z.ZodString;
|
|
157
|
+
postId: z.ZodNumber;
|
|
158
|
+
wordpressRevisionId: z.ZodNumber;
|
|
159
|
+
baseRevision: z.core.$ZodBranded<z.ZodString, "ContentModelSha256", "out">;
|
|
160
|
+
author: z.ZodObject<{
|
|
161
|
+
name: z.ZodString;
|
|
162
|
+
email: z.ZodString;
|
|
163
|
+
}, z.core.$strict>;
|
|
164
|
+
}, z.core.$strict>;
|
|
165
|
+
format: z.ZodLiteral<"spacefast.application-journal">;
|
|
166
|
+
version: z.ZodLiteral<1>;
|
|
167
|
+
id: z.core.$ZodBranded<z.ZodString, "ApplicationJournalEntryId", "out">;
|
|
168
|
+
spaceId: z.ZodTemplateLiteral<`spc_${string}`>;
|
|
169
|
+
operationId: z.ZodTemplateLiteral<`op_${string}`>;
|
|
170
|
+
effectOrdinal: z.ZodNumber;
|
|
171
|
+
store: z.ZodEnum<{
|
|
172
|
+
wordpress: "wordpress";
|
|
173
|
+
lakebed: "lakebed";
|
|
174
|
+
}>;
|
|
175
|
+
payloadDigest: z.core.$ZodBranded<z.ZodString, "ContentModelSha256", "out">;
|
|
176
|
+
createdAt: z.ZodString;
|
|
177
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
178
|
+
kind: z.ZodLiteral<"content-source-materialized">;
|
|
179
|
+
payload: z.ZodObject<{
|
|
180
|
+
resourceId: z.core.$ZodBranded<z.ZodString, "ContentResourceId", "out">;
|
|
181
|
+
postId: z.ZodNumber;
|
|
182
|
+
wordpressRevisionId: z.ZodNumber;
|
|
183
|
+
author: z.ZodObject<{
|
|
184
|
+
name: z.ZodString;
|
|
185
|
+
email: z.ZodString;
|
|
186
|
+
}, z.core.$strict>;
|
|
51
187
|
}, z.core.$strict>;
|
|
52
188
|
format: z.ZodLiteral<"spacefast.application-journal">;
|
|
53
189
|
version: z.ZodLiteral<1>;
|
|
@@ -59,7 +195,7 @@ export declare const applicationJournalEntryV1Schema: z.ZodDiscriminatedUnion<[z
|
|
|
59
195
|
wordpress: "wordpress";
|
|
60
196
|
lakebed: "lakebed";
|
|
61
197
|
}>;
|
|
62
|
-
payloadDigest: z.core.$ZodBranded<z.ZodString, "
|
|
198
|
+
payloadDigest: z.core.$ZodBranded<z.ZodString, "ContentModelSha256", "out">;
|
|
63
199
|
createdAt: z.ZodString;
|
|
64
200
|
}, z.core.$strict>], "kind">;
|
|
65
201
|
export type ApplicationJournalEntryV1 = z.infer<typeof applicationJournalEntryV1Schema>;
|
|
@@ -160,7 +296,7 @@ export declare const applicationJournalDeliveryClaimV1Schema: z.ZodObject<{
|
|
|
160
296
|
wordpress: "wordpress";
|
|
161
297
|
lakebed: "lakebed";
|
|
162
298
|
}>;
|
|
163
|
-
payloadDigest: z.core.$ZodBranded<z.ZodString, "
|
|
299
|
+
payloadDigest: z.core.$ZodBranded<z.ZodString, "ContentModelSha256", "out">;
|
|
164
300
|
createdAt: z.ZodString;
|
|
165
301
|
}, z.core.$strict>, z.ZodObject<{
|
|
166
302
|
kind: z.ZodLiteral<"mail">;
|
|
@@ -174,6 +310,14 @@ export declare const applicationJournalDeliveryClaimV1Schema: z.ZodObject<{
|
|
|
174
310
|
email: z.ZodString;
|
|
175
311
|
name: z.ZodOptional<z.ZodString>;
|
|
176
312
|
}, z.core.$strict>>;
|
|
313
|
+
cc: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
314
|
+
email: z.ZodString;
|
|
315
|
+
name: z.ZodOptional<z.ZodString>;
|
|
316
|
+
}, z.core.$strict>>>;
|
|
317
|
+
bcc: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
318
|
+
email: z.ZodString;
|
|
319
|
+
name: z.ZodOptional<z.ZodString>;
|
|
320
|
+
}, z.core.$strict>>>;
|
|
177
321
|
subject: z.ZodString;
|
|
178
322
|
body: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
179
323
|
kind: z.ZodLiteral<"text">;
|
|
@@ -190,6 +334,55 @@ export declare const applicationJournalDeliveryClaimV1Schema: z.ZodObject<{
|
|
|
190
334
|
email: z.ZodString;
|
|
191
335
|
name: z.ZodOptional<z.ZodString>;
|
|
192
336
|
}, z.core.$strict>>;
|
|
337
|
+
headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
338
|
+
}, z.core.$strict>;
|
|
339
|
+
format: z.ZodLiteral<"spacefast.application-journal">;
|
|
340
|
+
version: z.ZodLiteral<1>;
|
|
341
|
+
id: z.core.$ZodBranded<z.ZodString, "ApplicationJournalEntryId", "out">;
|
|
342
|
+
spaceId: z.ZodTemplateLiteral<`spc_${string}`>;
|
|
343
|
+
operationId: z.ZodTemplateLiteral<`op_${string}`>;
|
|
344
|
+
effectOrdinal: z.ZodNumber;
|
|
345
|
+
store: z.ZodEnum<{
|
|
346
|
+
wordpress: "wordpress";
|
|
347
|
+
lakebed: "lakebed";
|
|
348
|
+
}>;
|
|
349
|
+
payloadDigest: z.core.$ZodBranded<z.ZodString, "ContentModelSha256", "out">;
|
|
350
|
+
createdAt: z.ZodString;
|
|
351
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
352
|
+
kind: z.ZodLiteral<"content-source-changed">;
|
|
353
|
+
payload: z.ZodObject<{
|
|
354
|
+
bindingId: z.core.$ZodBranded<z.ZodString, "ContentSyncBindingId", "out">;
|
|
355
|
+
source: z.ZodString;
|
|
356
|
+
postId: z.ZodNumber;
|
|
357
|
+
wordpressRevisionId: z.ZodNumber;
|
|
358
|
+
baseRevision: z.core.$ZodBranded<z.ZodString, "ContentModelSha256", "out">;
|
|
359
|
+
author: z.ZodObject<{
|
|
360
|
+
name: z.ZodString;
|
|
361
|
+
email: z.ZodString;
|
|
362
|
+
}, z.core.$strict>;
|
|
363
|
+
}, z.core.$strict>;
|
|
364
|
+
format: z.ZodLiteral<"spacefast.application-journal">;
|
|
365
|
+
version: z.ZodLiteral<1>;
|
|
366
|
+
id: z.core.$ZodBranded<z.ZodString, "ApplicationJournalEntryId", "out">;
|
|
367
|
+
spaceId: z.ZodTemplateLiteral<`spc_${string}`>;
|
|
368
|
+
operationId: z.ZodTemplateLiteral<`op_${string}`>;
|
|
369
|
+
effectOrdinal: z.ZodNumber;
|
|
370
|
+
store: z.ZodEnum<{
|
|
371
|
+
wordpress: "wordpress";
|
|
372
|
+
lakebed: "lakebed";
|
|
373
|
+
}>;
|
|
374
|
+
payloadDigest: z.core.$ZodBranded<z.ZodString, "ContentModelSha256", "out">;
|
|
375
|
+
createdAt: z.ZodString;
|
|
376
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
377
|
+
kind: z.ZodLiteral<"content-source-materialized">;
|
|
378
|
+
payload: z.ZodObject<{
|
|
379
|
+
resourceId: z.core.$ZodBranded<z.ZodString, "ContentResourceId", "out">;
|
|
380
|
+
postId: z.ZodNumber;
|
|
381
|
+
wordpressRevisionId: z.ZodNumber;
|
|
382
|
+
author: z.ZodObject<{
|
|
383
|
+
name: z.ZodString;
|
|
384
|
+
email: z.ZodString;
|
|
385
|
+
}, z.core.$strict>;
|
|
193
386
|
}, z.core.$strict>;
|
|
194
387
|
format: z.ZodLiteral<"spacefast.application-journal">;
|
|
195
388
|
version: z.ZodLiteral<1>;
|
|
@@ -201,7 +394,7 @@ export declare const applicationJournalDeliveryClaimV1Schema: z.ZodObject<{
|
|
|
201
394
|
wordpress: "wordpress";
|
|
202
395
|
lakebed: "lakebed";
|
|
203
396
|
}>;
|
|
204
|
-
payloadDigest: z.core.$ZodBranded<z.ZodString, "
|
|
397
|
+
payloadDigest: z.core.$ZodBranded<z.ZodString, "ContentModelSha256", "out">;
|
|
205
398
|
createdAt: z.ZodString;
|
|
206
399
|
}, z.core.$strict>], "kind">;
|
|
207
400
|
fence: z.ZodObject<{
|
|
@@ -1,14 +1,21 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
2
|
+
import { contentModelSha256Schema, contentResourceIdSchema, contentSyncBindingIdSchema, contentSyncSourcePathSchema, } from "./content-model.js";
|
|
3
|
+
import { prefixedIdSchema } from "./ids-core.js";
|
|
4
4
|
export const APPLICATION_JOURNAL_MAX_DELIVERY_ATTEMPTS = 12;
|
|
5
|
+
/**
|
|
6
|
+
* The sink that carries editor changes back to a Space's repository. Its PHP
|
|
7
|
+
* twin is `STATTIC_APPLICATION_JOURNAL_CONTENT_SOURCE_SINK` in
|
|
8
|
+
* runtime/engine/shared/content-source-journal.php; the two must agree or the
|
|
9
|
+
* runtime answers a drain for this sink with an empty page.
|
|
10
|
+
*/
|
|
11
|
+
export const APPLICATION_JOURNAL_CONTENT_SOURCE_SINK = "control-plane:content-source";
|
|
5
12
|
export const applicationJournalEntryIdSchema = z
|
|
6
13
|
.string()
|
|
7
14
|
.min(1)
|
|
8
15
|
.max(512)
|
|
9
16
|
.regex(/^spc_[A-Za-z0-9]+:op_[A-Za-z0-9]+:[0-9]+$/)
|
|
10
17
|
.brand();
|
|
11
|
-
const journalEmailAddressSchema = z
|
|
18
|
+
export const journalEmailAddressSchema = z
|
|
12
19
|
.object({
|
|
13
20
|
email: z.string().email(),
|
|
14
21
|
name: z.string().trim().min(1).max(200).optional(),
|
|
@@ -25,15 +32,84 @@ const journalMailBodySchema = z.discriminatedUnion("kind", [
|
|
|
25
32
|
})
|
|
26
33
|
.strict(),
|
|
27
34
|
]);
|
|
35
|
+
export const applicationJournalMailPayloadSchema = z
|
|
36
|
+
.object({
|
|
37
|
+
messageId: z.string().min(1).max(255),
|
|
38
|
+
from: journalEmailAddressSchema,
|
|
39
|
+
to: z.array(journalEmailAddressSchema).min(1).max(100),
|
|
40
|
+
cc: z.array(journalEmailAddressSchema).max(100).optional(),
|
|
41
|
+
bcc: z.array(journalEmailAddressSchema).max(100).optional(),
|
|
42
|
+
subject: z.string().min(1).max(998),
|
|
43
|
+
body: journalMailBodySchema,
|
|
44
|
+
replyTo: journalEmailAddressSchema.optional(),
|
|
45
|
+
headers: z
|
|
46
|
+
.record(z.string().regex(/^[!#$%&'*+\-.^_`|~0-9A-Za-z]+$/), z.string().refine((value) => !/[\r\n\0]/.test(value)))
|
|
47
|
+
.optional(),
|
|
48
|
+
})
|
|
49
|
+
.strict();
|
|
50
|
+
/**
|
|
51
|
+
* A bound document changed in the editor and its source file has to catch up.
|
|
52
|
+
*
|
|
53
|
+
* The entry is intent, not content: it names the binding, the post revision the
|
|
54
|
+
* editor produced, and the common base the WordPress ledger stood on when the
|
|
55
|
+
* save committed. The canonical Markdown is deliberately absent — only
|
|
56
|
+
* `source.reconcile` may produce it, and only against the file the repository
|
|
57
|
+
* actually holds at delivery time.
|
|
58
|
+
*
|
|
59
|
+
* `author` is the acting principal's display identity, carried so the commit
|
|
60
|
+
* this becomes is attributed to the person who made the edit.
|
|
61
|
+
*/
|
|
62
|
+
const journalAuthorSchema = z
|
|
63
|
+
.object({ name: z.string().trim().min(1).max(200), email: z.string().email() })
|
|
64
|
+
.strict();
|
|
65
|
+
export const applicationJournalContentSourcePayloadSchema = z
|
|
66
|
+
.object({
|
|
67
|
+
bindingId: contentSyncBindingIdSchema,
|
|
68
|
+
source: contentSyncSourcePathSchema,
|
|
69
|
+
postId: z.number().int().positive(),
|
|
70
|
+
wordpressRevisionId: z.number().int().positive(),
|
|
71
|
+
/**
|
|
72
|
+
* What the WordPress side called its base when the save committed, and what
|
|
73
|
+
* it means depends on the binding's class.
|
|
74
|
+
*
|
|
75
|
+
* A two-way binding has a ledger, so this is that ledger's revision and the
|
|
76
|
+
* reconciliation compares against it. A compile-class binding has no ledger
|
|
77
|
+
* — `source.reconcile` refuses it — so the runtime fills this with the
|
|
78
|
+
* document's blocks digest instead. That value is still a digest, but it is
|
|
79
|
+
* not a common base: the takeover lane never compare-and-swaps against it
|
|
80
|
+
* (its write goes in against `"absent"`), and the control plane only mirrors
|
|
81
|
+
* it onto the ledger row for reading.
|
|
82
|
+
*/
|
|
83
|
+
baseRevision: contentModelSha256Schema,
|
|
84
|
+
author: journalAuthorSchema,
|
|
85
|
+
})
|
|
86
|
+
.strict();
|
|
87
|
+
/**
|
|
88
|
+
* A document the editor holds needs a file of its own.
|
|
89
|
+
*
|
|
90
|
+
* A post created in wp-admin under a collection that declares where its files
|
|
91
|
+
* live has no binding yet, so the entry names the post and the collection and
|
|
92
|
+
* lets the runtime decide the path — the same decision it would make for any
|
|
93
|
+
* other document in that collection. There is no `source` to carry because
|
|
94
|
+
* there is no file yet, and no `baseRevision` because there is no common base.
|
|
95
|
+
*/
|
|
96
|
+
export const applicationJournalContentMaterializePayloadSchema = z
|
|
97
|
+
.object({
|
|
98
|
+
resourceId: contentResourceIdSchema,
|
|
99
|
+
postId: z.number().int().positive(),
|
|
100
|
+
wordpressRevisionId: z.number().int().positive(),
|
|
101
|
+
author: journalAuthorSchema,
|
|
102
|
+
})
|
|
103
|
+
.strict();
|
|
28
104
|
const journalEntryFields = {
|
|
29
105
|
format: z.literal("spacefast.application-journal"),
|
|
30
106
|
version: z.literal(1),
|
|
31
107
|
id: applicationJournalEntryIdSchema,
|
|
32
|
-
spaceId:
|
|
33
|
-
operationId:
|
|
108
|
+
spaceId: prefixedIdSchema("spc", "Space"),
|
|
109
|
+
operationId: prefixedIdSchema("op", "Operation"),
|
|
34
110
|
effectOrdinal: z.number().int().nonnegative(),
|
|
35
111
|
store: z.enum(["wordpress", "lakebed"]),
|
|
36
|
-
payloadDigest:
|
|
112
|
+
payloadDigest: contentModelSha256Schema,
|
|
37
113
|
createdAt: z.string().datetime({ offset: true }),
|
|
38
114
|
};
|
|
39
115
|
export const applicationJournalEntryV1Schema = z
|
|
@@ -54,16 +130,21 @@ export const applicationJournalEntryV1Schema = z
|
|
|
54
130
|
.object({
|
|
55
131
|
...journalEntryFields,
|
|
56
132
|
kind: z.literal("mail"),
|
|
57
|
-
payload:
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
133
|
+
payload: applicationJournalMailPayloadSchema,
|
|
134
|
+
})
|
|
135
|
+
.strict(),
|
|
136
|
+
z
|
|
137
|
+
.object({
|
|
138
|
+
...journalEntryFields,
|
|
139
|
+
kind: z.literal("content-source-changed"),
|
|
140
|
+
payload: applicationJournalContentSourcePayloadSchema,
|
|
141
|
+
})
|
|
142
|
+
.strict(),
|
|
143
|
+
z
|
|
144
|
+
.object({
|
|
145
|
+
...journalEntryFields,
|
|
146
|
+
kind: z.literal("content-source-materialized"),
|
|
147
|
+
payload: applicationJournalContentMaterializePayloadSchema,
|
|
67
148
|
})
|
|
68
149
|
.strict(),
|
|
69
150
|
])
|
package/dist/contracts/auth.d.ts
CHANGED
|
@@ -13,6 +13,13 @@ export declare const betterAuthAdditionalFields: {
|
|
|
13
13
|
readonly returned: true;
|
|
14
14
|
readonly input: false;
|
|
15
15
|
};
|
|
16
|
+
readonly analyticsOptOut: {
|
|
17
|
+
readonly type: "boolean";
|
|
18
|
+
readonly required: false;
|
|
19
|
+
readonly defaultValue: false;
|
|
20
|
+
readonly returned: true;
|
|
21
|
+
readonly input: false;
|
|
22
|
+
};
|
|
16
23
|
readonly isAutomattician: {
|
|
17
24
|
readonly type: "boolean";
|
|
18
25
|
readonly required: false;
|
|
@@ -73,6 +80,19 @@ export type BetterAuthCustomSessionUser = {
|
|
|
73
80
|
wpcomUserId?: string | null;
|
|
74
81
|
isSuperadmin?: boolean;
|
|
75
82
|
};
|
|
83
|
+
/**
|
|
84
|
+
* The providers that are a way INTO an account, as opposed to the utility
|
|
85
|
+
* lanes (`wpcom-dns`, `cloudflare`) that only manage domains. Mirrored by
|
|
86
|
+
* `authMethodsResponseSchema.providers` below and by the dashboard's
|
|
87
|
+
* `AuthProviderId`: a provider missing here cannot be asked for by name.
|
|
88
|
+
*/
|
|
89
|
+
export declare const AUTH_LOGIN_PROVIDER_IDS: readonly ["wpcom", "google", "github"];
|
|
90
|
+
export declare const authLoginProviderIdSchema: z.ZodEnum<{
|
|
91
|
+
google: "google";
|
|
92
|
+
github: "github";
|
|
93
|
+
wpcom: "wpcom";
|
|
94
|
+
}>;
|
|
95
|
+
export type AuthLoginProviderId = z.infer<typeof authLoginProviderIdSchema>;
|
|
76
96
|
/**
|
|
77
97
|
* What this deployment can sign people in with. The sign-in page renders its
|
|
78
98
|
* available controls from this response; the account-specific email lane is a
|
package/dist/contracts/auth.js
CHANGED
|
@@ -13,6 +13,16 @@ export const betterAuthAdditionalFields = {
|
|
|
13
13
|
returned: true,
|
|
14
14
|
input: false,
|
|
15
15
|
},
|
|
16
|
+
// Rides the session so server-side product-event emission can honor the
|
|
17
|
+
// account analytics opt-out without a per-event lookup. Written only
|
|
18
|
+
// through PATCH /v1/me/privacy.
|
|
19
|
+
analyticsOptOut: {
|
|
20
|
+
type: "boolean",
|
|
21
|
+
required: false,
|
|
22
|
+
defaultValue: false,
|
|
23
|
+
returned: true,
|
|
24
|
+
input: false,
|
|
25
|
+
},
|
|
16
26
|
isAutomattician: {
|
|
17
27
|
type: "boolean",
|
|
18
28
|
required: false,
|
|
@@ -75,6 +85,14 @@ export const betterAuthAdditionalFields = {
|
|
|
75
85
|
},
|
|
76
86
|
},
|
|
77
87
|
};
|
|
88
|
+
/**
|
|
89
|
+
* The providers that are a way INTO an account, as opposed to the utility
|
|
90
|
+
* lanes (`wpcom-dns`, `cloudflare`) that only manage domains. Mirrored by
|
|
91
|
+
* `authMethodsResponseSchema.providers` below and by the dashboard's
|
|
92
|
+
* `AuthProviderId`: a provider missing here cannot be asked for by name.
|
|
93
|
+
*/
|
|
94
|
+
export const AUTH_LOGIN_PROVIDER_IDS = ["wpcom", "google", "github"];
|
|
95
|
+
export const authLoginProviderIdSchema = z.enum(AUTH_LOGIN_PROVIDER_IDS);
|
|
78
96
|
/**
|
|
79
97
|
* What this deployment can sign people in with. The sign-in page renders its
|
|
80
98
|
* available controls from this response; the account-specific email lane is a
|
package/dist/contracts/beta.d.ts
CHANGED
|
@@ -39,6 +39,19 @@ export declare const betaAcceptSchema: z.ZodObject<{
|
|
|
39
39
|
export declare const betaAcceptResponseSchema: z.ZodObject<{
|
|
40
40
|
enrolled: z.ZodLiteral<true>;
|
|
41
41
|
}, z.core.$strip>;
|
|
42
|
+
/**
|
|
43
|
+
* Domains that may never be whole-domain auto-enroll entries: free-mail
|
|
44
|
+
* providers, where a domain match would offer the listing team to the entire
|
|
45
|
+
* public internet, plus `wordpress.com`, which is an Automattic-controlled
|
|
46
|
+
* domain no single team owns. The control plane enforces this after IDNA
|
|
47
|
+
* canonicalization; the dashboard reads it to skip suggesting these domains.
|
|
48
|
+
*
|
|
49
|
+
* `a8c.com` / `automattic.com` are deliberately NOT here. Their dedicated
|
|
50
|
+
* admission path runs first, while authoritative WP.com identity alone owns
|
|
51
|
+
* the global `automattic` team. A team entry can only add that listing team as
|
|
52
|
+
* an optional join in the person's picker.
|
|
53
|
+
*/
|
|
54
|
+
export declare const AUTO_ENROLL_DOMAIN_BLOCKLIST: Set<string>;
|
|
42
55
|
export declare const teamAutoEnrollEntrySchema: z.ZodObject<{
|
|
43
56
|
id: z.ZodString;
|
|
44
57
|
teamId: z.ZodString;
|
package/dist/contracts/beta.js
CHANGED
|
@@ -60,6 +60,34 @@ export const betaAcceptSchema = z.object({
|
|
|
60
60
|
export const betaAcceptResponseSchema = z.object({
|
|
61
61
|
enrolled: z.literal(true).describe("The calling account is enrolled in the private beta."),
|
|
62
62
|
});
|
|
63
|
+
/**
|
|
64
|
+
* Domains that may never be whole-domain auto-enroll entries: free-mail
|
|
65
|
+
* providers, where a domain match would offer the listing team to the entire
|
|
66
|
+
* public internet, plus `wordpress.com`, which is an Automattic-controlled
|
|
67
|
+
* domain no single team owns. The control plane enforces this after IDNA
|
|
68
|
+
* canonicalization; the dashboard reads it to skip suggesting these domains.
|
|
69
|
+
*
|
|
70
|
+
* `a8c.com` / `automattic.com` are deliberately NOT here. Their dedicated
|
|
71
|
+
* admission path runs first, while authoritative WP.com identity alone owns
|
|
72
|
+
* the global `automattic` team. A team entry can only add that listing team as
|
|
73
|
+
* an optional join in the person's picker.
|
|
74
|
+
*/
|
|
75
|
+
export const AUTO_ENROLL_DOMAIN_BLOCKLIST = new Set([
|
|
76
|
+
"gmail.com",
|
|
77
|
+
"googlemail.com",
|
|
78
|
+
"outlook.com",
|
|
79
|
+
"hotmail.com",
|
|
80
|
+
"live.com",
|
|
81
|
+
"yahoo.com",
|
|
82
|
+
"proton.me",
|
|
83
|
+
"protonmail.com",
|
|
84
|
+
"icloud.com",
|
|
85
|
+
"me.com",
|
|
86
|
+
"aol.com",
|
|
87
|
+
"mail.com",
|
|
88
|
+
"gmx.com",
|
|
89
|
+
"wordpress.com",
|
|
90
|
+
]);
|
|
63
91
|
// Team auto-enroll entries (`GET/POST/DELETE /v1/teams/{teamId}/auto-enroll`).
|
|
64
92
|
// A match grants beta enrollment but NOT team membership; the user gets a
|
|
65
93
|
// picker. Domains are IDNA-canonicalized to ASCII before storage.
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
export declare const billingProviderValues: readonly ["stripe", "grant"];
|
|
3
3
|
export declare const billingProviderSchema: z.ZodEnum<{
|
|
4
|
-
grant: "grant";
|
|
5
4
|
stripe: "stripe";
|
|
5
|
+
grant: "grant";
|
|
6
6
|
}>;
|
|
7
7
|
export declare const billingIntervalValues: readonly ["monthly", "yearly"];
|
|
8
8
|
export declare const billingIntervalSchema: z.ZodEnum<{
|
|
@@ -39,8 +39,8 @@ export declare const billingAddonLimitKeySchema: z.ZodEnum<{
|
|
|
39
39
|
export type BillingAddonLimitKey = z.infer<typeof billingAddonLimitKeySchema>;
|
|
40
40
|
export declare const billingPlanSourceSchema: z.ZodObject<{
|
|
41
41
|
provider: z.ZodEnum<{
|
|
42
|
-
grant: "grant";
|
|
43
42
|
stripe: "stripe";
|
|
43
|
+
grant: "grant";
|
|
44
44
|
}>;
|
|
45
45
|
planCode: z.ZodEnum<{
|
|
46
46
|
free: "free";
|
|
@@ -128,6 +128,9 @@ export declare const bootstrapResponseSchema: z.ZodObject<{
|
|
|
128
128
|
personal: "personal";
|
|
129
129
|
enterprise: "enterprise";
|
|
130
130
|
}>;
|
|
131
|
+
partner: z.ZodNullable<z.ZodObject<{
|
|
132
|
+
enabledAt: z.ZodString;
|
|
133
|
+
}, z.core.$strip>>;
|
|
131
134
|
defaultDataLocation: z.ZodString;
|
|
132
135
|
createdAt: z.ZodString;
|
|
133
136
|
updatedAt: z.ZodString;
|
|
@@ -155,6 +158,9 @@ export declare const bootstrapResponseSchema: z.ZodObject<{
|
|
|
155
158
|
personal: "personal";
|
|
156
159
|
enterprise: "enterprise";
|
|
157
160
|
}>;
|
|
161
|
+
partner: z.ZodNullable<z.ZodObject<{
|
|
162
|
+
enabledAt: z.ZodString;
|
|
163
|
+
}, z.core.$strip>>;
|
|
158
164
|
defaultDataLocation: z.ZodString;
|
|
159
165
|
createdAt: z.ZodString;
|
|
160
166
|
updatedAt: z.ZodString;
|
|
@@ -172,6 +178,7 @@ export declare const bootstrapResponseSchema: z.ZodObject<{
|
|
|
172
178
|
}>;
|
|
173
179
|
detail: z.ZodOptional<z.ZodString>;
|
|
174
180
|
since: z.ZodString;
|
|
181
|
+
challenge: z.ZodOptional<z.ZodString>;
|
|
175
182
|
audience: z.ZodOptional<z.ZodString>;
|
|
176
183
|
}, z.core.$strip>>;
|
|
177
184
|
sourceVersionId: z.ZodNullable<z.ZodString>;
|
|
@@ -229,8 +236,8 @@ export declare const bootstrapResponseSchema: z.ZodObject<{
|
|
|
229
236
|
providerMainHostname: z.ZodNullable<z.ZodString>;
|
|
230
237
|
provisioningState: z.ZodEnum<{
|
|
231
238
|
provisioning: "provisioning";
|
|
232
|
-
degraded: "degraded";
|
|
233
239
|
converged: "converged";
|
|
240
|
+
degraded: "degraded";
|
|
234
241
|
}>;
|
|
235
242
|
}, z.core.$strip>>;
|
|
236
243
|
anonymous: z.ZodBoolean;
|
|
@@ -238,10 +245,10 @@ export declare const bootstrapResponseSchema: z.ZodObject<{
|
|
|
238
245
|
title: z.ZodString;
|
|
239
246
|
status: z.ZodEnum<{
|
|
240
247
|
active: "active";
|
|
241
|
-
failed: "failed";
|
|
242
248
|
provisioning: "provisioning";
|
|
243
249
|
updating: "updating";
|
|
244
250
|
deleting: "deleting";
|
|
251
|
+
failed: "failed";
|
|
245
252
|
}>;
|
|
246
253
|
disabled: z.ZodNullable<z.ZodObject<{
|
|
247
254
|
at: z.ZodNullable<z.ZodString>;
|
|
@@ -353,7 +360,6 @@ export declare const bootstrapResponseSchema: z.ZodObject<{
|
|
|
353
360
|
burstable: z.ZodOptional<z.ZodBoolean>;
|
|
354
361
|
}, z.core.$strict>>;
|
|
355
362
|
markdownNegotiation: z.ZodOptional<z.ZodBoolean>;
|
|
356
|
-
experimental_gutenberg: z.ZodOptional<z.ZodBoolean>;
|
|
357
363
|
inject: z.ZodOptional<z.ZodObject<{
|
|
358
364
|
head: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
359
365
|
bodyStart: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
@@ -377,6 +383,7 @@ export declare const bootstrapResponseSchema: z.ZodObject<{
|
|
|
377
383
|
remoteUrl: z.ZodNullable<z.ZodString>;
|
|
378
384
|
repository: z.ZodNullable<z.ZodString>;
|
|
379
385
|
defaultBranch: z.ZodNullable<z.ZodString>;
|
|
386
|
+
provisioned: z.ZodBoolean;
|
|
380
387
|
}, z.core.$strip>>;
|
|
381
388
|
operation: z.ZodNullable<z.ZodObject<{
|
|
382
389
|
id: z.ZodString;
|
|
@@ -446,10 +453,10 @@ export declare const bootstrapResponseSchema: z.ZodObject<{
|
|
|
446
453
|
liveUrl: z.ZodNullable<z.ZodString>;
|
|
447
454
|
runtimeState: z.ZodEnum<{
|
|
448
455
|
active: "active";
|
|
449
|
-
failed: "failed";
|
|
450
456
|
provisioning: "provisioning";
|
|
451
457
|
updating: "updating";
|
|
452
458
|
deleting: "deleting";
|
|
459
|
+
failed: "failed";
|
|
453
460
|
}>;
|
|
454
461
|
liveVersionStatus: z.ZodNullable<z.ZodEnum<{
|
|
455
462
|
failed: "failed";
|
|
@@ -558,8 +565,11 @@ export declare const bootstrapResponseSchema: z.ZodObject<{
|
|
|
558
565
|
tables: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
559
566
|
queries: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
560
567
|
mutations: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
561
|
-
actions: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
562
568
|
endpoints: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
569
|
+
mode: z.ZodEnum<{
|
|
570
|
+
read: "read";
|
|
571
|
+
write: "write";
|
|
572
|
+
}>;
|
|
563
573
|
method: z.ZodEnum<{
|
|
564
574
|
POST: "POST";
|
|
565
575
|
PUT: "PUT";
|
|
@@ -629,6 +639,8 @@ export declare const bootstrapResponseSchema: z.ZodObject<{
|
|
|
629
639
|
spam: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
630
640
|
email: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
631
641
|
content: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
642
|
+
storage: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
643
|
+
connectors: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
632
644
|
}, z.core.$strip>>;
|
|
633
645
|
executionState: z.ZodEnum<{
|
|
634
646
|
ready: "ready";
|
|
@@ -685,8 +697,11 @@ export declare const bootstrapResponseSchema: z.ZodObject<{
|
|
|
685
697
|
tables: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
686
698
|
queries: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
687
699
|
mutations: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
688
|
-
actions: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
689
700
|
endpoints: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
701
|
+
mode: z.ZodEnum<{
|
|
702
|
+
read: "read";
|
|
703
|
+
write: "write";
|
|
704
|
+
}>;
|
|
690
705
|
method: z.ZodEnum<{
|
|
691
706
|
POST: "POST";
|
|
692
707
|
PUT: "PUT";
|
|
@@ -756,6 +771,8 @@ export declare const bootstrapResponseSchema: z.ZodObject<{
|
|
|
756
771
|
spam: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
757
772
|
email: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
758
773
|
content: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
774
|
+
storage: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
775
|
+
connectors: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
759
776
|
}, z.core.$strip>>;
|
|
760
777
|
executionState: z.ZodEnum<{
|
|
761
778
|
ready: "ready";
|