@spacefast/common 0.0.12 → 0.0.13
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/contracts/access.d.ts +386 -1201
- package/dist/contracts/access.js +240 -1057
- package/dist/contracts/activity.d.ts +1 -1
- package/dist/contracts/activity.js +6 -14
- package/dist/contracts/api-keys.d.ts +16 -0
- package/dist/contracts/api-keys.js +2 -0
- package/dist/contracts/archives.d.ts +1 -2
- package/dist/contracts/archives.js +4 -6
- package/dist/contracts/comments.d.ts +58 -85
- package/dist/contracts/comments.js +86 -67
- package/dist/contracts/countries.js +2 -7
- package/dist/contracts/data-source-routes.d.ts +20 -0
- package/dist/contracts/data-source-routes.js +15 -0
- package/dist/contracts/device-auth.d.ts +7 -3
- package/dist/contracts/enums.d.ts +2 -4
- package/dist/contracts/enums.js +3 -8
- package/dist/contracts/error-code-meta.d.ts +17 -20
- package/dist/contracts/error-code-meta.js +8 -5
- package/dist/contracts/error-codes.d.ts +1 -1
- package/dist/contracts/error-codes.js +4 -5
- package/dist/contracts/events.d.ts +13 -13
- package/dist/contracts/execution.d.ts +212 -0
- package/dist/contracts/execution.js +288 -0
- package/dist/contracts/feature-lifecycle.d.ts +21 -167
- package/dist/contracts/feature-lifecycle.js +27 -173
- package/dist/contracts/features.d.ts +13 -115
- package/dist/contracts/features.js +1 -31
- package/dist/contracts/functions.d.ts +729 -0
- package/dist/contracts/functions.js +485 -0
- package/dist/contracts/git.d.ts +1 -1
- package/dist/contracts/grants.d.ts +1158 -0
- package/dist/contracts/grants.js +696 -0
- package/dist/contracts/ids.d.ts +5 -3
- package/dist/contracts/ids.js +5 -3
- package/dist/contracts/mcp.d.ts +6 -6
- package/dist/contracts/oauth-resources.d.ts +5 -5
- package/dist/contracts/oauth-resources.js +1 -0
- package/dist/contracts/operations.d.ts +2 -2
- package/dist/contracts/pages.d.ts +6 -14
- package/dist/contracts/pages.js +6 -23
- package/dist/contracts/plan-policy.d.ts +1 -8
- package/dist/contracts/plan-policy.js +1 -4
- package/dist/contracts/platform.d.ts +78 -30
- package/dist/contracts/platform.js +59 -12
- package/dist/contracts/push-new.d.ts +26 -2
- package/dist/contracts/push-new.js +8 -0
- package/dist/contracts/quotas.d.ts +0 -1
- package/dist/contracts/quotas.js +0 -5
- package/dist/contracts/repository-connections.d.ts +1 -1
- package/dist/contracts/resources.d.ts +10 -66
- package/dist/contracts/resources.js +4 -10
- package/dist/contracts/runtime-api.d.ts +558 -265
- package/dist/contracts/runtime-api.js +178 -91
- package/dist/contracts/runtime-app.d.ts +138 -0
- package/dist/contracts/runtime-app.js +21 -0
- package/dist/contracts/sf-config-v1.d.ts +5 -0
- package/dist/contracts/sites.d.ts +5 -0
- package/dist/contracts/sites.js +12 -1
- package/dist/contracts/space-config.d.ts +46 -116
- package/dist/contracts/space-config.js +320 -24
- package/dist/contracts/spaces.d.ts +253 -158
- package/dist/contracts/spaces.js +68 -54
- package/dist/contracts/superadmin-emails.d.ts +2 -2
- package/dist/contracts/superadmin-spaces.d.ts +15 -130
- package/dist/contracts/superadmin-spaces.js +7 -0
- package/dist/contracts/tags.d.ts +23 -23
- package/dist/contracts/teams.d.ts +9 -9
- package/dist/contracts/transfers.d.ts +0 -1
- package/dist/contracts/zero.d.ts +195 -273
- package/dist/contracts/zero.js +78 -206
- package/dist/dashboard-paths/index.d.ts +2 -2
- package/dist/dashboard-paths/index.js +1 -0
- package/dist/docs/agent-prose.js +10 -8
- package/dist/docs/agent-setup.d.ts +2 -2
- package/dist/docs/agent-setup.js +11 -9
- package/dist/docs/agent-solutions.js +1 -1
- package/dist/docs/catalog.d.ts +28 -28
- package/dist/docs/catalog.js +29 -29
- package/dist/docs/error-docs.js +23 -27
- package/dist/utils/asset-fingerprint.d.ts +11 -0
- package/dist/utils/asset-fingerprint.js +46 -0
- package/dist/utils/auth-redirect.d.ts +1 -3
- package/dist/utils/auth-redirect.js +1 -21
- package/dist/utils/build-settings.d.ts +2 -0
- package/dist/utils/build-settings.js +61 -9
- package/dist/utils/credential-policy.d.ts +1 -1
- package/dist/utils/credential-policy.js +4 -0
- package/dist/utils/egress-policy.fixtures.json +1 -1
- package/dist/utils/grants.d.ts +53 -0
- package/dist/utils/grants.js +160 -0
- package/dist/utils/local-space-state.js +1 -0
- package/dist/utils/pages.d.ts +11 -5
- package/dist/utils/pages.js +19 -32
- package/dist/utils/publish-policy.d.ts +34 -4
- package/dist/utils/publish-policy.js +132 -61
- package/dist/utils/query-keys.d.ts +1 -6
- package/dist/utils/query-keys.js +1 -6
- package/dist/utils/space-config.d.ts +5 -1
- package/dist/utils/space-config.js +35 -0
- package/dist/utils/static-runtime-policy.d.ts +5 -0
- package/dist/utils/static-runtime-policy.js +54 -10
- package/dist/utils/upload-session.d.ts +3 -0
- package/dist/utils/upload-session.js +31 -0
- package/package.json +2 -1
- package/dist/utils/access-grant.d.ts +0 -14
- package/dist/utils/access-grant.js +0 -88
- package/dist/utils/access-match.d.ts +0 -46
- package/dist/utils/access-match.fixtures.json +0 -513
- package/dist/utils/access-match.js +0 -312
- package/dist/utils/access-verdict.fixtures.json +0 -421
- package/dist/utils/sf-config-v1.d.ts +0 -2
- package/dist/utils/sf-config-v1.fixtures.json +0 -9
- package/dist/utils/sf-config-v1.js +0 -551
|
@@ -10,7 +10,7 @@ export declare const planCodeSchema: z.ZodEnum<{
|
|
|
10
10
|
}>;
|
|
11
11
|
export type PlanCode = z.infer<typeof planCodeSchema>;
|
|
12
12
|
export declare const DEFAULT_PLAN_CODE: PlanCode;
|
|
13
|
-
export declare const FEATURE_KEYS: readonly ("zero" | "plans.paid.available" | "anonymous.publishing" | "beta.enrollment_gate" | "domains.search" | "domains.registration" | "domains.dns_management" | "domains.wpcom_dns" | "domains.domain_connect" | "domains.proxy_bindings" | "collab.
|
|
13
|
+
export declare const FEATURE_KEYS: readonly ("zero" | "plans.paid.available" | "anonymous.publishing" | "beta.enrollment_gate" | "domains.search" | "domains.registration" | "domains.dns_management" | "domains.wpcom_dns" | "domains.domain_connect" | "domains.proxy_bindings" | "collab.notices" | "collab.drawing" | "sites.dedicated_runtime" | "shelf" | "tags" | "functions" | "spaces.slug_rename")[];
|
|
14
14
|
export declare const featureKeySchema: z.ZodEnum<{
|
|
15
15
|
zero: "zero";
|
|
16
16
|
"plans.paid.available": "plans.paid.available";
|
|
@@ -22,19 +22,13 @@ export declare const featureKeySchema: z.ZodEnum<{
|
|
|
22
22
|
"domains.wpcom_dns": "domains.wpcom_dns";
|
|
23
23
|
"domains.domain_connect": "domains.domain_connect";
|
|
24
24
|
"domains.proxy_bindings": "domains.proxy_bindings";
|
|
25
|
-
"collab.comments": "collab.comments";
|
|
26
|
-
"collab.anonymous_commenters": "collab.anonymous_commenters";
|
|
27
25
|
"collab.notices": "collab.notices";
|
|
28
|
-
"collab.published_comments": "collab.published_comments";
|
|
29
26
|
"collab.drawing": "collab.drawing";
|
|
30
27
|
"sites.dedicated_runtime": "sites.dedicated_runtime";
|
|
31
28
|
shelf: "shelf";
|
|
32
29
|
tags: "tags";
|
|
33
|
-
|
|
34
|
-
"
|
|
35
|
-
"access.sso_connections": "access.sso_connections";
|
|
36
|
-
"access.byo_issuers": "access.byo_issuers";
|
|
37
|
-
"access.views_panel": "access.views_panel";
|
|
30
|
+
functions: "functions";
|
|
31
|
+
"spaces.slug_rename": "spaces.slug_rename";
|
|
38
32
|
}>;
|
|
39
33
|
export type FeatureKey = RuntimeFeatureKey;
|
|
40
34
|
export declare const FEATURE_OVERRIDE_STATES: readonly ["enabled", "disabled", "kill_switch"];
|
|
@@ -51,7 +45,6 @@ export declare const planLimitsSchema: z.ZodObject<{
|
|
|
51
45
|
teamMembers: z.ZodUnion<readonly [z.ZodNumber, z.ZodLiteral<"unlimited">]>;
|
|
52
46
|
subTeams: z.ZodUnion<readonly [z.ZodNumber, z.ZodLiteral<"unlimited">]>;
|
|
53
47
|
externalDomainGroups: z.ZodUnion<readonly [z.ZodNumber, z.ZodLiteral<"unlimited">]>;
|
|
54
|
-
publicImmutableVersionWindowDays: z.ZodUnion<readonly [z.ZodNumber, z.ZodLiteral<"unlimited">]>;
|
|
55
48
|
versionRetentionDays: z.ZodUnion<readonly [z.ZodNumber, z.ZodLiteral<"unlimited">]>;
|
|
56
49
|
versionGatedKeepDays: z.ZodUnion<readonly [z.ZodNumber, z.ZodLiteral<"unlimited">]>;
|
|
57
50
|
egressBytesPerDay: z.ZodUnion<readonly [z.ZodNumber, z.ZodLiteral<"unlimited">]>;
|
|
@@ -62,15 +55,11 @@ export declare const planLimitsSchema: z.ZodObject<{
|
|
|
62
55
|
buildAccessLogRetentionHours: z.ZodUnion<readonly [z.ZodNumber, z.ZodLiteral<"unlimited">]>;
|
|
63
56
|
buildsDeploysMonthly: z.ZodUnion<readonly [z.ZodNumber, z.ZodLiteral<"unlimited">]>;
|
|
64
57
|
analyticsRetentionDays: z.ZodUnion<readonly [z.ZodNumber, z.ZodLiteral<"unlimited">]>;
|
|
65
|
-
cloudRulesPerSpace: z.ZodUnion<readonly [z.ZodNumber, z.ZodLiteral<"unlimited">]>;
|
|
66
58
|
shareLinksPerSpace: z.ZodUnion<readonly [z.ZodNumber, z.ZodLiteral<"unlimited">]>;
|
|
67
59
|
invitesPerSpace: z.ZodUnion<readonly [z.ZodNumber, z.ZodLiteral<"unlimited">]>;
|
|
68
60
|
inviteEmailsPerSpaceDaily: z.ZodUnion<readonly [z.ZodNumber, z.ZodLiteral<"unlimited">]>;
|
|
69
61
|
inviteEmailsPerAccountDaily: z.ZodUnion<readonly [z.ZodNumber, z.ZodLiteral<"unlimited">]>;
|
|
70
62
|
pendingAccessRequestsPerSpace: z.ZodUnion<readonly [z.ZodNumber, z.ZodLiteral<"unlimited">]>;
|
|
71
|
-
serviceTokensPerTeam: z.ZodUnion<readonly [z.ZodNumber, z.ZodLiteral<"unlimited">]>;
|
|
72
|
-
connectionsPerTeam: z.ZodUnion<readonly [z.ZodNumber, z.ZodLiteral<"unlimited">]>;
|
|
73
|
-
teamDefaultRules: z.ZodUnion<readonly [z.ZodNumber, z.ZodLiteral<"unlimited">]>;
|
|
74
63
|
}, z.core.$strip>;
|
|
75
64
|
export type PlanLimits = z.infer<typeof planLimitsSchema>;
|
|
76
65
|
export declare const teamEntitlementsSchema: z.ZodObject<{
|
|
@@ -86,7 +75,6 @@ export declare const teamEntitlementsSchema: z.ZodObject<{
|
|
|
86
75
|
teamMembers: z.ZodUnion<readonly [z.ZodNumber, z.ZodLiteral<"unlimited">]>;
|
|
87
76
|
subTeams: z.ZodUnion<readonly [z.ZodNumber, z.ZodLiteral<"unlimited">]>;
|
|
88
77
|
externalDomainGroups: z.ZodUnion<readonly [z.ZodNumber, z.ZodLiteral<"unlimited">]>;
|
|
89
|
-
publicImmutableVersionWindowDays: z.ZodUnion<readonly [z.ZodNumber, z.ZodLiteral<"unlimited">]>;
|
|
90
78
|
versionRetentionDays: z.ZodUnion<readonly [z.ZodNumber, z.ZodLiteral<"unlimited">]>;
|
|
91
79
|
versionGatedKeepDays: z.ZodUnion<readonly [z.ZodNumber, z.ZodLiteral<"unlimited">]>;
|
|
92
80
|
egressBytesPerDay: z.ZodUnion<readonly [z.ZodNumber, z.ZodLiteral<"unlimited">]>;
|
|
@@ -97,17 +85,12 @@ export declare const teamEntitlementsSchema: z.ZodObject<{
|
|
|
97
85
|
buildAccessLogRetentionHours: z.ZodUnion<readonly [z.ZodNumber, z.ZodLiteral<"unlimited">]>;
|
|
98
86
|
buildsDeploysMonthly: z.ZodUnion<readonly [z.ZodNumber, z.ZodLiteral<"unlimited">]>;
|
|
99
87
|
analyticsRetentionDays: z.ZodUnion<readonly [z.ZodNumber, z.ZodLiteral<"unlimited">]>;
|
|
100
|
-
cloudRulesPerSpace: z.ZodUnion<readonly [z.ZodNumber, z.ZodLiteral<"unlimited">]>;
|
|
101
88
|
shareLinksPerSpace: z.ZodUnion<readonly [z.ZodNumber, z.ZodLiteral<"unlimited">]>;
|
|
102
89
|
invitesPerSpace: z.ZodUnion<readonly [z.ZodNumber, z.ZodLiteral<"unlimited">]>;
|
|
103
90
|
inviteEmailsPerSpaceDaily: z.ZodUnion<readonly [z.ZodNumber, z.ZodLiteral<"unlimited">]>;
|
|
104
91
|
inviteEmailsPerAccountDaily: z.ZodUnion<readonly [z.ZodNumber, z.ZodLiteral<"unlimited">]>;
|
|
105
92
|
pendingAccessRequestsPerSpace: z.ZodUnion<readonly [z.ZodNumber, z.ZodLiteral<"unlimited">]>;
|
|
106
|
-
serviceTokensPerTeam: z.ZodUnion<readonly [z.ZodNumber, z.ZodLiteral<"unlimited">]>;
|
|
107
|
-
connectionsPerTeam: z.ZodUnion<readonly [z.ZodNumber, z.ZodLiteral<"unlimited">]>;
|
|
108
|
-
teamDefaultRules: z.ZodUnion<readonly [z.ZodNumber, z.ZodLiteral<"unlimited">]>;
|
|
109
93
|
}, z.core.$strip>;
|
|
110
|
-
headersBasicAuth: z.ZodBoolean;
|
|
111
94
|
externalProxy: z.ZodBoolean;
|
|
112
95
|
dedicatedRuntime: z.ZodBoolean;
|
|
113
96
|
pagesTemplates: z.ZodBoolean;
|
|
@@ -125,7 +108,6 @@ export declare const teamEntitlementsResponseSchema: z.ZodObject<{
|
|
|
125
108
|
personal: "personal";
|
|
126
109
|
enterprise: "enterprise";
|
|
127
110
|
}>;
|
|
128
|
-
headersBasicAuth: z.ZodBoolean;
|
|
129
111
|
externalProxy: z.ZodBoolean;
|
|
130
112
|
dedicatedRuntime: z.ZodBoolean;
|
|
131
113
|
pagesTemplates: z.ZodBoolean;
|
|
@@ -138,7 +120,6 @@ export declare const teamEntitlementsResponseSchema: z.ZodObject<{
|
|
|
138
120
|
subTeams: z.ZodUnion<readonly [z.ZodNumber, z.ZodLiteral<"unlimited">]>;
|
|
139
121
|
storageBytes: z.ZodUnion<readonly [z.ZodNumber, z.ZodLiteral<"unlimited">]>;
|
|
140
122
|
externalDomainGroups: z.ZodUnion<readonly [z.ZodNumber, z.ZodLiteral<"unlimited">]>;
|
|
141
|
-
publicImmutableVersionWindowDays: z.ZodUnion<readonly [z.ZodNumber, z.ZodLiteral<"unlimited">]>;
|
|
142
123
|
maxFileBytes: z.ZodUnion<readonly [z.ZodNumber, z.ZodLiteral<"unlimited">]>;
|
|
143
124
|
maxVersionFiles: z.ZodUnion<readonly [z.ZodNumber, z.ZodLiteral<"unlimited">]>;
|
|
144
125
|
routingRules: z.ZodUnion<readonly [z.ZodNumber, z.ZodLiteral<"unlimited">]>;
|
|
@@ -146,15 +127,11 @@ export declare const teamEntitlementsResponseSchema: z.ZodObject<{
|
|
|
146
127
|
buildAccessLogRetentionHours: z.ZodUnion<readonly [z.ZodNumber, z.ZodLiteral<"unlimited">]>;
|
|
147
128
|
buildsDeploysMonthly: z.ZodUnion<readonly [z.ZodNumber, z.ZodLiteral<"unlimited">]>;
|
|
148
129
|
analyticsRetentionDays: z.ZodUnion<readonly [z.ZodNumber, z.ZodLiteral<"unlimited">]>;
|
|
149
|
-
cloudRulesPerSpace: z.ZodUnion<readonly [z.ZodNumber, z.ZodLiteral<"unlimited">]>;
|
|
150
130
|
shareLinksPerSpace: z.ZodUnion<readonly [z.ZodNumber, z.ZodLiteral<"unlimited">]>;
|
|
151
131
|
invitesPerSpace: z.ZodUnion<readonly [z.ZodNumber, z.ZodLiteral<"unlimited">]>;
|
|
152
132
|
inviteEmailsPerSpaceDaily: z.ZodUnion<readonly [z.ZodNumber, z.ZodLiteral<"unlimited">]>;
|
|
153
133
|
inviteEmailsPerAccountDaily: z.ZodUnion<readonly [z.ZodNumber, z.ZodLiteral<"unlimited">]>;
|
|
154
134
|
pendingAccessRequestsPerSpace: z.ZodUnion<readonly [z.ZodNumber, z.ZodLiteral<"unlimited">]>;
|
|
155
|
-
serviceTokensPerTeam: z.ZodUnion<readonly [z.ZodNumber, z.ZodLiteral<"unlimited">]>;
|
|
156
|
-
connectionsPerTeam: z.ZodUnion<readonly [z.ZodNumber, z.ZodLiteral<"unlimited">]>;
|
|
157
|
-
teamDefaultRules: z.ZodUnion<readonly [z.ZodNumber, z.ZodLiteral<"unlimited">]>;
|
|
158
135
|
}, z.core.$strip>;
|
|
159
136
|
}, z.core.$strip>;
|
|
160
137
|
export type PlanDefinition = {
|
|
@@ -162,7 +139,6 @@ export type PlanDefinition = {
|
|
|
162
139
|
name: string;
|
|
163
140
|
monthlyPriceUsd: number | null;
|
|
164
141
|
limits: PlanLimits;
|
|
165
|
-
headersBasicAuth: boolean;
|
|
166
142
|
externalProxy: boolean;
|
|
167
143
|
dedicatedRuntime: boolean;
|
|
168
144
|
/** Paid full-page takeover templates under _pages/. */
|
|
@@ -275,26 +251,6 @@ export declare const FEATURE_DEFINITIONS: Readonly<{
|
|
|
275
251
|
readonly enabledForA8c: boolean;
|
|
276
252
|
readonly planDefaults: Readonly<Partial<Record<PlanCode, boolean>>>;
|
|
277
253
|
};
|
|
278
|
-
readonly "collab.comments": {
|
|
279
|
-
readonly key: "collab.comments";
|
|
280
|
-
readonly name: string;
|
|
281
|
-
readonly description: string;
|
|
282
|
-
readonly defaultEnabled: boolean;
|
|
283
|
-
} & {
|
|
284
|
-
readonly enabledInDevelopment?: boolean;
|
|
285
|
-
readonly enabledForA8c: boolean;
|
|
286
|
-
readonly planDefaults: Readonly<Partial<Record<PlanCode, boolean>>>;
|
|
287
|
-
};
|
|
288
|
-
readonly "collab.anonymous_commenters": {
|
|
289
|
-
readonly key: "collab.anonymous_commenters";
|
|
290
|
-
readonly name: string;
|
|
291
|
-
readonly description: string;
|
|
292
|
-
readonly defaultEnabled: boolean;
|
|
293
|
-
} & {
|
|
294
|
-
readonly enabledInDevelopment?: boolean;
|
|
295
|
-
readonly enabledForA8c: boolean;
|
|
296
|
-
readonly planDefaults: Readonly<Partial<Record<PlanCode, boolean>>>;
|
|
297
|
-
};
|
|
298
254
|
readonly "collab.notices": {
|
|
299
255
|
readonly key: "collab.notices";
|
|
300
256
|
readonly name: string;
|
|
@@ -305,16 +261,6 @@ export declare const FEATURE_DEFINITIONS: Readonly<{
|
|
|
305
261
|
readonly enabledForA8c: boolean;
|
|
306
262
|
readonly planDefaults: Readonly<Partial<Record<PlanCode, boolean>>>;
|
|
307
263
|
};
|
|
308
|
-
readonly "collab.published_comments": {
|
|
309
|
-
readonly key: "collab.published_comments";
|
|
310
|
-
readonly name: string;
|
|
311
|
-
readonly description: string;
|
|
312
|
-
readonly defaultEnabled: boolean;
|
|
313
|
-
} & {
|
|
314
|
-
readonly enabledInDevelopment?: boolean;
|
|
315
|
-
readonly enabledForA8c: boolean;
|
|
316
|
-
readonly planDefaults: Readonly<Partial<Record<PlanCode, boolean>>>;
|
|
317
|
-
};
|
|
318
264
|
readonly "collab.drawing": {
|
|
319
265
|
readonly key: "collab.drawing";
|
|
320
266
|
readonly name: string;
|
|
@@ -355,38 +301,8 @@ export declare const FEATURE_DEFINITIONS: Readonly<{
|
|
|
355
301
|
readonly enabledForA8c: boolean;
|
|
356
302
|
readonly planDefaults: Readonly<Partial<Record<PlanCode, boolean>>>;
|
|
357
303
|
};
|
|
358
|
-
readonly
|
|
359
|
-
readonly key: "
|
|
360
|
-
readonly name: string;
|
|
361
|
-
readonly description: string;
|
|
362
|
-
readonly defaultEnabled: boolean;
|
|
363
|
-
} & {
|
|
364
|
-
readonly enabledInDevelopment?: boolean;
|
|
365
|
-
readonly enabledForA8c: boolean;
|
|
366
|
-
readonly planDefaults: Readonly<Partial<Record<PlanCode, boolean>>>;
|
|
367
|
-
};
|
|
368
|
-
readonly "access.firewall_card": {
|
|
369
|
-
readonly key: "access.firewall_card";
|
|
370
|
-
readonly name: string;
|
|
371
|
-
readonly description: string;
|
|
372
|
-
readonly defaultEnabled: boolean;
|
|
373
|
-
} & {
|
|
374
|
-
readonly enabledInDevelopment?: boolean;
|
|
375
|
-
readonly enabledForA8c: boolean;
|
|
376
|
-
readonly planDefaults: Readonly<Partial<Record<PlanCode, boolean>>>;
|
|
377
|
-
};
|
|
378
|
-
readonly "access.sso_connections": {
|
|
379
|
-
readonly key: "access.sso_connections";
|
|
380
|
-
readonly name: string;
|
|
381
|
-
readonly description: string;
|
|
382
|
-
readonly defaultEnabled: boolean;
|
|
383
|
-
} & {
|
|
384
|
-
readonly enabledInDevelopment?: boolean;
|
|
385
|
-
readonly enabledForA8c: boolean;
|
|
386
|
-
readonly planDefaults: Readonly<Partial<Record<PlanCode, boolean>>>;
|
|
387
|
-
};
|
|
388
|
-
readonly "access.byo_issuers": {
|
|
389
|
-
readonly key: "access.byo_issuers";
|
|
304
|
+
readonly functions: {
|
|
305
|
+
readonly key: "functions";
|
|
390
306
|
readonly name: string;
|
|
391
307
|
readonly description: string;
|
|
392
308
|
readonly defaultEnabled: boolean;
|
|
@@ -395,8 +311,8 @@ export declare const FEATURE_DEFINITIONS: Readonly<{
|
|
|
395
311
|
readonly enabledForA8c: boolean;
|
|
396
312
|
readonly planDefaults: Readonly<Partial<Record<PlanCode, boolean>>>;
|
|
397
313
|
};
|
|
398
|
-
readonly "
|
|
399
|
-
readonly key: "
|
|
314
|
+
readonly "spaces.slug_rename": {
|
|
315
|
+
readonly key: "spaces.slug_rename";
|
|
400
316
|
readonly name: string;
|
|
401
317
|
readonly description: string;
|
|
402
318
|
readonly defaultEnabled: boolean;
|
|
@@ -424,19 +340,13 @@ export declare const FeatureStateSchema: z.ZodObject<{
|
|
|
424
340
|
"domains.wpcom_dns": "domains.wpcom_dns";
|
|
425
341
|
"domains.domain_connect": "domains.domain_connect";
|
|
426
342
|
"domains.proxy_bindings": "domains.proxy_bindings";
|
|
427
|
-
"collab.comments": "collab.comments";
|
|
428
|
-
"collab.anonymous_commenters": "collab.anonymous_commenters";
|
|
429
343
|
"collab.notices": "collab.notices";
|
|
430
|
-
"collab.published_comments": "collab.published_comments";
|
|
431
344
|
"collab.drawing": "collab.drawing";
|
|
432
345
|
"sites.dedicated_runtime": "sites.dedicated_runtime";
|
|
433
346
|
shelf: "shelf";
|
|
434
347
|
tags: "tags";
|
|
435
|
-
|
|
436
|
-
"
|
|
437
|
-
"access.sso_connections": "access.sso_connections";
|
|
438
|
-
"access.byo_issuers": "access.byo_issuers";
|
|
439
|
-
"access.views_panel": "access.views_panel";
|
|
348
|
+
functions: "functions";
|
|
349
|
+
"spaces.slug_rename": "spaces.slug_rename";
|
|
440
350
|
}>;
|
|
441
351
|
enabled: z.ZodBoolean;
|
|
442
352
|
source: z.ZodEnum<{
|
|
@@ -465,19 +375,13 @@ export declare const FeatureStateResponseSchema: z.ZodObject<{
|
|
|
465
375
|
"domains.wpcom_dns": "domains.wpcom_dns";
|
|
466
376
|
"domains.domain_connect": "domains.domain_connect";
|
|
467
377
|
"domains.proxy_bindings": "domains.proxy_bindings";
|
|
468
|
-
"collab.comments": "collab.comments";
|
|
469
|
-
"collab.anonymous_commenters": "collab.anonymous_commenters";
|
|
470
378
|
"collab.notices": "collab.notices";
|
|
471
|
-
"collab.published_comments": "collab.published_comments";
|
|
472
379
|
"collab.drawing": "collab.drawing";
|
|
473
380
|
"sites.dedicated_runtime": "sites.dedicated_runtime";
|
|
474
381
|
shelf: "shelf";
|
|
475
382
|
tags: "tags";
|
|
476
|
-
|
|
477
|
-
"
|
|
478
|
-
"access.sso_connections": "access.sso_connections";
|
|
479
|
-
"access.byo_issuers": "access.byo_issuers";
|
|
480
|
-
"access.views_panel": "access.views_panel";
|
|
383
|
+
functions: "functions";
|
|
384
|
+
"spaces.slug_rename": "spaces.slug_rename";
|
|
481
385
|
}>, z.ZodObject<{
|
|
482
386
|
key: z.ZodEnum<{
|
|
483
387
|
zero: "zero";
|
|
@@ -490,19 +394,13 @@ export declare const FeatureStateResponseSchema: z.ZodObject<{
|
|
|
490
394
|
"domains.wpcom_dns": "domains.wpcom_dns";
|
|
491
395
|
"domains.domain_connect": "domains.domain_connect";
|
|
492
396
|
"domains.proxy_bindings": "domains.proxy_bindings";
|
|
493
|
-
"collab.comments": "collab.comments";
|
|
494
|
-
"collab.anonymous_commenters": "collab.anonymous_commenters";
|
|
495
397
|
"collab.notices": "collab.notices";
|
|
496
|
-
"collab.published_comments": "collab.published_comments";
|
|
497
398
|
"collab.drawing": "collab.drawing";
|
|
498
399
|
"sites.dedicated_runtime": "sites.dedicated_runtime";
|
|
499
400
|
shelf: "shelf";
|
|
500
401
|
tags: "tags";
|
|
501
|
-
|
|
502
|
-
"
|
|
503
|
-
"access.sso_connections": "access.sso_connections";
|
|
504
|
-
"access.byo_issuers": "access.byo_issuers";
|
|
505
|
-
"access.views_panel": "access.views_panel";
|
|
402
|
+
functions: "functions";
|
|
403
|
+
"spaces.slug_rename": "spaces.slug_rename";
|
|
506
404
|
}>;
|
|
507
405
|
enabled: z.ZodBoolean;
|
|
508
406
|
source: z.ZodEnum<{
|
|
@@ -23,7 +23,6 @@ export const planLimitsSchema = z
|
|
|
23
23
|
teamMembers: planLimitValueSchema,
|
|
24
24
|
subTeams: planLimitValueSchema,
|
|
25
25
|
externalDomainGroups: planLimitValueSchema,
|
|
26
|
-
publicImmutableVersionWindowDays: planLimitValueSchema,
|
|
27
26
|
// Version retention (charter arbitration A3, internal plan data — never on
|
|
28
27
|
// the PlanPolicyResponse wire shape): `versionRetentionDays` is the included
|
|
29
28
|
// full-retention window; after it versions stay stored but gated until
|
|
@@ -48,12 +47,7 @@ export const planLimitsSchema = z
|
|
|
48
47
|
// Queryable analytics history window. Storage retains rollups for everyone
|
|
49
48
|
// (env-bounded); this only clamps how far back the analytics API serves.
|
|
50
49
|
analyticsRetentionDays: planLimitValueSchema,
|
|
51
|
-
// Access-surface abuse ceilings
|
|
52
|
-
// default, enterprise unlimited — never upsell levers. Per-plan tightening
|
|
53
|
-
// (if ever) happens here, never as constants in route code.
|
|
54
|
-
// Cloud-lane rules per space (incl. TTL'd blocks; managed blocks excluded
|
|
55
|
-
// from the count).
|
|
56
|
-
cloudRulesPerSpace: planLimitValueSchema,
|
|
50
|
+
// Access-surface abuse ceilings: generous by default, enterprise unlimited.
|
|
57
51
|
// Active (non-revoked, non-expired) share links per space.
|
|
58
52
|
shareLinksPerSpace: planLimitValueSchema,
|
|
59
53
|
// Active invites per space (§5.3 — enforced when invites land).
|
|
@@ -63,12 +57,6 @@ export const planLimitsSchema = z
|
|
|
63
57
|
inviteEmailsPerAccountDaily: planLimitValueSchema,
|
|
64
58
|
// Pending access requests per space (§5.4).
|
|
65
59
|
pendingAccessRequestsPerSpace: planLimitValueSchema,
|
|
66
|
-
// Service tokens per team (§5.5).
|
|
67
|
-
serviceTokensPerTeam: planLimitValueSchema,
|
|
68
|
-
// OIDC + external issuer connections per team (§6).
|
|
69
|
-
connectionsPerTeam: planLimitValueSchema,
|
|
70
|
-
// Team-default rules (X-24).
|
|
71
|
-
teamDefaultRules: planLimitValueSchema,
|
|
72
60
|
})
|
|
73
61
|
.describe("Named plan limit table.");
|
|
74
62
|
// Resolved team entitlements: plan limits after add-on grants plus the
|
|
@@ -78,9 +66,6 @@ export const teamEntitlementsSchema = z
|
|
|
78
66
|
.object({
|
|
79
67
|
planCode: planCodeSchema,
|
|
80
68
|
limits: planLimitsSchema,
|
|
81
|
-
headersBasicAuth: z
|
|
82
|
-
.boolean()
|
|
83
|
-
.describe("Whether `_headers` Basic-Auth rules compile on this plan."),
|
|
84
69
|
externalProxy: z.boolean().describe("Whether external proxy upstreams compile on this plan."),
|
|
85
70
|
dedicatedRuntime: z.boolean().describe("Whether the team can use dedicated runtime sites."),
|
|
86
71
|
pagesTemplates: z
|
|
@@ -119,7 +104,6 @@ const UNLIMITED_LIMITS = {
|
|
|
119
104
|
teamMembers: "unlimited",
|
|
120
105
|
subTeams: "unlimited",
|
|
121
106
|
externalDomainGroups: "unlimited",
|
|
122
|
-
publicImmutableVersionWindowDays: "unlimited",
|
|
123
107
|
versionRetentionDays: "unlimited",
|
|
124
108
|
versionGatedKeepDays: "unlimited",
|
|
125
109
|
egressBytesPerDay: "unlimited",
|
|
@@ -130,29 +114,21 @@ const UNLIMITED_LIMITS = {
|
|
|
130
114
|
buildAccessLogRetentionHours: "unlimited",
|
|
131
115
|
buildsDeploysMonthly: "unlimited",
|
|
132
116
|
analyticsRetentionDays: "unlimited",
|
|
133
|
-
cloudRulesPerSpace: "unlimited",
|
|
134
117
|
shareLinksPerSpace: "unlimited",
|
|
135
118
|
invitesPerSpace: "unlimited",
|
|
136
119
|
inviteEmailsPerSpaceDaily: "unlimited",
|
|
137
120
|
inviteEmailsPerAccountDaily: "unlimited",
|
|
138
121
|
pendingAccessRequestsPerSpace: "unlimited",
|
|
139
|
-
serviceTokensPerTeam: "unlimited",
|
|
140
|
-
connectionsPerTeam: "unlimited",
|
|
141
|
-
teamDefaultRules: "unlimited",
|
|
142
122
|
};
|
|
143
123
|
// The §5.1 access abuse-ceiling table (X-40): applied verbatim to every
|
|
144
124
|
// self-serve plan; enterprise/internal stay unlimited. These sit far above
|
|
145
125
|
// honest use — they are abuse ceilings, not upsell levers.
|
|
146
126
|
const ACCESS_QUOTA_DEFAULTS = {
|
|
147
|
-
cloudRulesPerSpace: 200,
|
|
148
127
|
shareLinksPerSpace: 100,
|
|
149
128
|
invitesPerSpace: 500,
|
|
150
129
|
inviteEmailsPerSpaceDaily: 200,
|
|
151
130
|
inviteEmailsPerAccountDaily: 500,
|
|
152
131
|
pendingAccessRequestsPerSpace: 100,
|
|
153
|
-
serviceTokensPerTeam: 50,
|
|
154
|
-
connectionsPerTeam: 10,
|
|
155
|
-
teamDefaultRules: 50,
|
|
156
132
|
};
|
|
157
133
|
export const PLAN_DEFINITIONS = {
|
|
158
134
|
free: {
|
|
@@ -164,7 +140,6 @@ export const PLAN_DEFINITIONS = {
|
|
|
164
140
|
teamMembers: 3,
|
|
165
141
|
subTeams: 0,
|
|
166
142
|
externalDomainGroups: 3,
|
|
167
|
-
publicImmutableVersionWindowDays: 7,
|
|
168
143
|
versionRetentionDays: 30, // included full-retention window (charter A3)
|
|
169
144
|
versionGatedKeepDays: 183, // kept gated ~6 months from readyAt, then deleted
|
|
170
145
|
egressBytesPerDay: 100 * GB, // = worst-case ceiling; tunable per plan
|
|
@@ -177,7 +152,6 @@ export const PLAN_DEFINITIONS = {
|
|
|
177
152
|
analyticsRetentionDays: 30,
|
|
178
153
|
...ACCESS_QUOTA_DEFAULTS,
|
|
179
154
|
},
|
|
180
|
-
headersBasicAuth: false,
|
|
181
155
|
externalProxy: false,
|
|
182
156
|
dedicatedRuntime: false,
|
|
183
157
|
pagesTemplates: false,
|
|
@@ -203,7 +177,6 @@ export const PLAN_DEFINITIONS = {
|
|
|
203
177
|
analyticsRetentionDays: 365,
|
|
204
178
|
...ACCESS_QUOTA_DEFAULTS,
|
|
205
179
|
},
|
|
206
|
-
headersBasicAuth: true,
|
|
207
180
|
externalProxy: true,
|
|
208
181
|
dedicatedRuntime: false,
|
|
209
182
|
pagesTemplates: true,
|
|
@@ -225,7 +198,6 @@ export const PLAN_DEFINITIONS = {
|
|
|
225
198
|
subTeams: 0,
|
|
226
199
|
...ACCESS_QUOTA_DEFAULTS,
|
|
227
200
|
},
|
|
228
|
-
headersBasicAuth: true,
|
|
229
201
|
externalProxy: true,
|
|
230
202
|
dedicatedRuntime: false,
|
|
231
203
|
pagesTemplates: true,
|
|
@@ -239,7 +211,6 @@ export const PLAN_DEFINITIONS = {
|
|
|
239
211
|
name: "Enterprise",
|
|
240
212
|
monthlyPriceUsd: null,
|
|
241
213
|
limits: { ...UNLIMITED_LIMITS },
|
|
242
|
-
headersBasicAuth: true,
|
|
243
214
|
externalProxy: true,
|
|
244
215
|
dedicatedRuntime: true,
|
|
245
216
|
pagesTemplates: true,
|
|
@@ -252,7 +223,6 @@ export const PLAN_DEFINITIONS = {
|
|
|
252
223
|
name: "Internal",
|
|
253
224
|
monthlyPriceUsd: null,
|
|
254
225
|
limits: { ...UNLIMITED_LIMITS },
|
|
255
|
-
headersBasicAuth: true,
|
|
256
226
|
externalProxy: true,
|
|
257
227
|
dedicatedRuntime: true,
|
|
258
228
|
pagesTemplates: true,
|