@spacefast/common 0.2.1 → 0.4.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (226) hide show
  1. package/dist/agents/marketplace-prompts.d.ts +1 -0
  2. package/dist/agents/marketplace-prompts.js +6 -0
  3. package/dist/agents/registry/core.d.ts +4 -12
  4. package/dist/agents/registry/core.js +7 -28
  5. package/dist/config/domains.d.ts +10 -8
  6. package/dist/config/domains.js +4 -7
  7. package/dist/contracts/access-core.d.ts +135 -0
  8. package/dist/contracts/access-core.js +242 -0
  9. package/dist/contracts/access-profiles.d.ts +8 -8
  10. package/dist/contracts/access-profiles.js +8 -8
  11. package/dist/contracts/access.d.ts +14 -103
  12. package/dist/contracts/access.js +10 -210
  13. package/dist/contracts/activity.d.ts +54 -55
  14. package/dist/contracts/activity.js +38 -9
  15. package/dist/contracts/api-keys.d.ts +69 -26
  16. package/dist/contracts/api-keys.js +29 -2
  17. package/dist/contracts/application-journal.d.ts +197 -4
  18. package/dist/contracts/application-journal.js +97 -16
  19. package/dist/contracts/auth.d.ts +20 -0
  20. package/dist/contracts/auth.js +18 -0
  21. package/dist/contracts/beta.d.ts +13 -0
  22. package/dist/contracts/beta.js +28 -0
  23. package/dist/contracts/billing.d.ts +2 -2
  24. package/dist/contracts/bootstrap.d.ts +23 -6
  25. package/dist/contracts/builds.d.ts +24 -4
  26. package/dist/contracts/builds.js +16 -4
  27. package/dist/contracts/channels.d.ts +43 -0
  28. package/dist/contracts/channels.js +22 -6
  29. package/dist/contracts/comments.d.ts +49 -0
  30. package/dist/contracts/comments.js +61 -2
  31. package/dist/contracts/commerce.d.ts +19 -13
  32. package/dist/contracts/connector-access.d.ts +28 -0
  33. package/dist/contracts/connector-access.js +31 -0
  34. package/dist/contracts/connectors.d.ts +2382 -0
  35. package/dist/contracts/connectors.js +941 -0
  36. package/dist/contracts/content-contract-verification.d.ts +112 -58
  37. package/dist/contracts/content-contract-verification.js +42 -54
  38. package/dist/contracts/content-model-emit.d.ts +97 -0
  39. package/dist/contracts/content-model-emit.js +306 -0
  40. package/dist/contracts/content-model-sdk.d.ts +101 -0
  41. package/dist/contracts/content-model-sdk.js +232 -0
  42. package/dist/contracts/{content-program.d.ts → content-model.d.ts} +338 -82
  43. package/dist/contracts/{content-program.js → content-model.js} +291 -63
  44. package/dist/contracts/content-platform-fixture.d.ts +380 -110
  45. package/dist/contracts/content-platform-fixture.js +8 -8
  46. package/dist/contracts/content-sync.d.ts +197 -74
  47. package/dist/contracts/content-sync.js +98 -37
  48. package/dist/contracts/content.d.ts +30 -422
  49. package/dist/contracts/content.js +34 -294
  50. package/dist/contracts/dashboard-prefs.d.ts +10 -3
  51. package/dist/contracts/dashboard-prefs.js +6 -3
  52. package/dist/contracts/data-location.d.ts +9 -0
  53. package/dist/contracts/data-location.js +7 -0
  54. package/dist/contracts/deployment-comparison.d.ts +67 -0
  55. package/dist/contracts/deployment-comparison.js +68 -0
  56. package/dist/contracts/device-auth.d.ts +55 -11
  57. package/dist/contracts/domains.d.ts +40 -16
  58. package/dist/contracts/domains.js +23 -0
  59. package/dist/contracts/enums.d.ts +1 -10
  60. package/dist/contracts/enums.js +0 -15
  61. package/dist/contracts/error-code-meta.d.ts +388 -20
  62. package/dist/contracts/error-code-meta.js +201 -5
  63. package/dist/contracts/error-codes.d.ts +17 -4
  64. package/dist/contracts/error-codes.js +109 -10
  65. package/dist/contracts/events.d.ts +5 -0
  66. package/dist/contracts/events.js +12 -3
  67. package/dist/contracts/execution.d.ts +5 -1
  68. package/dist/contracts/execution.js +4 -0
  69. package/dist/contracts/feature-lifecycle.d.ts +53 -20
  70. package/dist/contracts/feature-lifecycle.js +65 -23
  71. package/dist/contracts/features.d.ts +57 -31
  72. package/dist/contracts/features.js +0 -1
  73. package/dist/contracts/feedback.d.ts +124 -0
  74. package/dist/contracts/feedback.js +64 -0
  75. package/dist/contracts/fixtures/content-model-sdk-v1.generated.d.ts +129 -0
  76. package/dist/contracts/fixtures/content-model-sdk-v1.generated.js +48 -0
  77. package/dist/contracts/fixtures/content-platform-v1.json +101 -49
  78. package/dist/contracts/frame-session.d.ts +60 -10
  79. package/dist/contracts/frame-session.js +52 -12
  80. package/dist/contracts/functions.d.ts +28 -2
  81. package/dist/contracts/functions.js +25 -2
  82. package/dist/contracts/grant-copy.d.ts +2 -0
  83. package/dist/contracts/grant-copy.js +2 -0
  84. package/dist/contracts/grants-core.d.ts +95 -0
  85. package/dist/contracts/grants-core.js +435 -0
  86. package/dist/contracts/grants.d.ts +13 -84
  87. package/dist/contracts/grants.js +21 -369
  88. package/dist/contracts/ids-core.d.ts +11 -0
  89. package/dist/contracts/ids-core.js +14 -0
  90. package/dist/contracts/ids.d.ts +7 -4
  91. package/dist/contracts/ids.js +12 -4
  92. package/dist/contracts/internal.d.ts +18 -0
  93. package/dist/contracts/internal.js +19 -0
  94. package/dist/contracts/mcp.d.ts +8 -18
  95. package/dist/contracts/mcp.js +2 -23
  96. package/dist/contracts/notifications.d.ts +4 -1
  97. package/dist/contracts/notifications.js +1 -0
  98. package/dist/contracts/oauth-resources.d.ts +55 -9
  99. package/dist/contracts/oauth-resources.js +64 -1
  100. package/dist/contracts/oauth-scope-actions.d.ts +27 -3
  101. package/dist/contracts/oauth-scope-actions.js +18 -8
  102. package/dist/contracts/operations.d.ts +1 -1
  103. package/dist/contracts/partner-account.d.ts +629 -0
  104. package/dist/contracts/partner-account.js +18 -0
  105. package/dist/contracts/principal-assertion.d.ts +74 -1
  106. package/dist/contracts/principal-assertion.js +67 -3
  107. package/dist/contracts/publish-archive.d.ts +22 -1
  108. package/dist/contracts/push-new.d.ts +3 -3
  109. package/dist/contracts/push-new.js +1 -1
  110. package/dist/contracts/quotas.js +2 -1
  111. package/dist/contracts/repository-connections.d.ts +10 -6
  112. package/dist/contracts/repository-connections.js +15 -0
  113. package/dist/contracts/resources.d.ts +6 -5
  114. package/dist/contracts/resources.js +7 -0
  115. package/dist/contracts/route-inventory.d.ts +74 -19
  116. package/dist/contracts/route-inventory.js +20 -6
  117. package/dist/contracts/runtime-api.d.ts +415 -4
  118. package/dist/contracts/runtime-api.js +60 -15
  119. package/dist/contracts/runtime-app.d.ts +6 -1
  120. package/dist/contracts/runtime-components.d.ts +646 -18
  121. package/dist/contracts/runtime-components.js +304 -188
  122. package/dist/contracts/runtime-services.d.ts +15 -0
  123. package/dist/contracts/runtime-services.js +25 -0
  124. package/dist/contracts/runtime-storage.d.ts +32 -0
  125. package/dist/contracts/runtime-storage.js +37 -0
  126. package/dist/contracts/source-workspaces.d.ts +511 -0
  127. package/dist/contracts/source-workspaces.js +276 -0
  128. package/dist/contracts/space-config-spacefast.d.ts +394 -0
  129. package/dist/contracts/space-config-spacefast.js +70 -0
  130. package/dist/contracts/space-config.d.ts +177 -90
  131. package/dist/contracts/space-config.js +77 -92
  132. package/dist/contracts/spaces.d.ts +132 -24
  133. package/dist/contracts/spaces.js +77 -13
  134. package/dist/contracts/superadmin-connectors.d.ts +371 -0
  135. package/dist/contracts/superadmin-connectors.js +61 -0
  136. package/dist/contracts/superadmin-emails.d.ts +1 -1
  137. package/dist/contracts/superadmin-emails.js +1 -1
  138. package/dist/contracts/superadmin-entities.d.ts +105 -0
  139. package/dist/contracts/superadmin-entities.js +64 -0
  140. package/dist/contracts/superadmin-runtime.d.ts +35 -116
  141. package/dist/contracts/superadmin-runtime.js +13 -69
  142. package/dist/contracts/superadmin-search.d.ts +12 -14
  143. package/dist/contracts/superadmin-search.js +2 -2
  144. package/dist/contracts/superadmin-spaces.d.ts +15 -72
  145. package/dist/contracts/superadmin-spaces.js +2 -7
  146. package/dist/contracts/superadmin-teams.d.ts +12 -0
  147. package/dist/contracts/superadmin-teams.js +7 -1
  148. package/dist/contracts/superadmin-tenants.d.ts +44 -16
  149. package/dist/contracts/superadmin.d.ts +2 -2
  150. package/dist/contracts/tags.d.ts +12 -12
  151. package/dist/contracts/teams.d.ts +29 -1
  152. package/dist/contracts/teams.js +24 -2
  153. package/dist/contracts/tenants.d.ts +98 -0
  154. package/dist/contracts/tenants.js +20 -0
  155. package/dist/contracts/transfers.d.ts +92 -0
  156. package/dist/contracts/transfers.js +37 -0
  157. package/dist/contracts/usage.d.ts +9 -1
  158. package/dist/contracts/usage.js +2 -0
  159. package/dist/contracts/visual-review.d.ts +448 -0
  160. package/dist/contracts/visual-review.js +156 -0
  161. package/dist/contracts/wordpress-php-toolkit.json +9 -0
  162. package/dist/contracts/work-mode.d.ts +24 -0
  163. package/dist/contracts/work-mode.js +17 -0
  164. package/dist/contracts/wp-cli.d.ts +66 -0
  165. package/dist/contracts/wp-cli.js +68 -0
  166. package/dist/contracts/zero-catalog.d.ts +29 -0
  167. package/dist/contracts/zero-catalog.js +55 -0
  168. package/dist/contracts/zero-platform-abilities.generated.d.ts +31 -0
  169. package/dist/contracts/zero-platform-abilities.generated.js +373 -0
  170. package/dist/contracts/zero-spacefast.d.ts +444 -0
  171. package/dist/contracts/zero-spacefast.js +149 -0
  172. package/dist/contracts/zero-types.d.ts +47 -0
  173. package/dist/contracts/zero-types.js +263 -0
  174. package/dist/contracts/zero.d.ts +781 -14
  175. package/dist/contracts/zero.js +204 -10
  176. package/dist/dashboard-paths/index.d.ts +2 -2
  177. package/dist/dashboard-paths/route-reservations.generated.d.ts +2 -2
  178. package/dist/dashboard-paths/route-reservations.generated.js +5 -0
  179. package/dist/docs/agent-prose.d.ts +1 -1
  180. package/dist/docs/agent-prose.js +15 -18
  181. package/dist/docs/agent-setup.d.ts +1 -1
  182. package/dist/docs/agent-setup.js +5 -13
  183. package/dist/docs/catalog.d.ts +64 -28
  184. package/dist/docs/catalog.js +155 -28
  185. package/dist/docs/error-docs.d.ts +365 -17
  186. package/dist/docs/error-docs.js +369 -21
  187. package/dist/docs/reference-urls.js +1 -1
  188. package/dist/docs/skills.d.ts +84 -84
  189. package/dist/docs/skills.js +66 -47
  190. package/dist/docs/start-prompts.d.ts +14 -0
  191. package/dist/docs/start-prompts.js +20 -0
  192. package/dist/utils/account-labels.d.ts +7 -0
  193. package/dist/utils/account-labels.js +15 -0
  194. package/dist/utils/auth.d.ts +1 -0
  195. package/dist/utils/auth.js +1 -0
  196. package/dist/utils/credential-policy.d.ts +22 -1
  197. package/dist/utils/credential-policy.js +55 -6
  198. package/dist/utils/local-space-state.d.ts +7 -0
  199. package/dist/utils/local-space-state.js +7 -0
  200. package/dist/utils/logger.d.ts +34 -0
  201. package/dist/utils/logger.js +144 -0
  202. package/dist/utils/page-routes.d.ts +9 -0
  203. package/dist/utils/page-routes.js +82 -0
  204. package/dist/utils/pages.d.ts +2 -0
  205. package/dist/utils/pages.js +7 -0
  206. package/dist/utils/publish-form-data.d.ts +2 -0
  207. package/dist/utils/publish-form-data.js +2 -0
  208. package/dist/utils/publish-policy-spacefast.d.ts +13 -0
  209. package/dist/utils/publish-policy-spacefast.js +117 -0
  210. package/dist/utils/publish-policy.d.ts +22 -16
  211. package/dist/utils/publish-policy.fixtures.json +15 -0
  212. package/dist/utils/publish-policy.js +62 -139
  213. package/dist/utils/query-client.js +9 -1
  214. package/dist/utils/runtime-upload.d.ts +4 -0
  215. package/dist/utils/runtime-upload.js +5 -0
  216. package/dist/utils/space-config.d.ts +2 -3
  217. package/dist/utils/space-config.js +1 -1
  218. package/dist/utils/uploaded-source.d.ts +4 -0
  219. package/dist/utils/uploaded-source.js +12 -0
  220. package/dist/visual-review.d.ts +4 -0
  221. package/dist/visual-review.js +208 -0
  222. package/dist/vocabulary.d.ts +38 -0
  223. package/dist/vocabulary.js +55 -0
  224. package/package.json +7 -2
  225. package/dist/agents/registry/deeplink-probes.d.ts +0 -23
  226. package/dist/agents/registry/deeplink-probes.js +0 -18
@@ -12,9 +12,12 @@ export type PlanCode = z.infer<typeof planCodeSchema>;
12
12
  export declare const DEFAULT_PLAN_CODE: PlanCode;
13
13
  export declare const SELF_SERVE_PLAN_CODES: readonly ["personal", "work"];
14
14
  export declare const PUBLIC_PLAN_CODES: readonly ["free", "personal", "work", "enterprise"];
15
- 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.comments" | "content.managed" | "sites.dedicated_runtime" | "collab.drawing" | "tags" | "functions" | "spaces.slug_rename" | "pages.templates" | "branding.hide")[];
15
+ export declare const FEATURE_KEYS: readonly ("connectors" | "zero" | "tags" | "functions" | "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.comments" | "content.managed" | "collab.drawing" | "sites.jetpack" | "spaces.slug_rename" | "content.users" | "pages.templates" | "branding.hide")[];
16
16
  export declare const featureKeySchema: z.ZodEnum<{
17
+ connectors: "connectors";
17
18
  zero: "zero";
19
+ tags: "tags";
20
+ functions: "functions";
18
21
  "plans.paid.available": "plans.paid.available";
19
22
  "anonymous.publishing": "anonymous.publishing";
20
23
  "beta.enrollment_gate": "beta.enrollment_gate";
@@ -27,11 +30,10 @@ export declare const featureKeySchema: z.ZodEnum<{
27
30
  "collab.notices": "collab.notices";
28
31
  "collab.comments": "collab.comments";
29
32
  "content.managed": "content.managed";
30
- "sites.dedicated_runtime": "sites.dedicated_runtime";
31
33
  "collab.drawing": "collab.drawing";
32
- tags: "tags";
33
- functions: "functions";
34
+ "sites.jetpack": "sites.jetpack";
34
35
  "spaces.slug_rename": "spaces.slug_rename";
36
+ "content.users": "content.users";
35
37
  "pages.templates": "pages.templates";
36
38
  "branding.hide": "branding.hide";
37
39
  }>;
@@ -91,7 +93,6 @@ export declare const teamEntitlementsSchema: z.ZodObject<{
91
93
  pendingAccessRequestsPerSpace: z.ZodUnion<readonly [z.ZodNumber, z.ZodLiteral<"unlimited">]>;
92
94
  }, z.core.$strip>;
93
95
  externalProxy: z.ZodBoolean;
94
- dedicatedRuntime: z.ZodLiteral<true>;
95
96
  pagesTemplates: z.ZodBoolean;
96
97
  hideSpacefastBranding: z.ZodBoolean;
97
98
  runtimePhpWorkers: z.ZodNumber;
@@ -107,7 +108,6 @@ export declare const teamEntitlementsResponseSchema: z.ZodObject<{
107
108
  enterprise: "enterprise";
108
109
  }>;
109
110
  externalProxy: z.ZodBoolean;
110
- dedicatedRuntime: z.ZodLiteral<true>;
111
111
  pagesTemplates: z.ZodBoolean;
112
112
  hideSpacefastBranding: z.ZodBoolean;
113
113
  runtimePhpWorkers: z.ZodNumber;
@@ -156,6 +156,16 @@ type PlanCatalog = {
156
156
  };
157
157
  export declare const PLAN_DEFINITIONS: PlanCatalog;
158
158
  export declare const FEATURE_DEFINITIONS: Readonly<{
159
+ readonly connectors: {
160
+ readonly key: "connectors";
161
+ readonly name: string;
162
+ readonly description: string;
163
+ readonly defaultEnabled: boolean;
164
+ } & {
165
+ readonly enabledInDevelopment?: boolean;
166
+ readonly enabledForA8c: boolean;
167
+ readonly planDefaults: Readonly<Partial<Record<PlanCode, boolean>>>;
168
+ };
159
169
  readonly zero: {
160
170
  readonly key: "zero";
161
171
  readonly name: string;
@@ -166,6 +176,26 @@ export declare const FEATURE_DEFINITIONS: Readonly<{
166
176
  readonly enabledForA8c: boolean;
167
177
  readonly planDefaults: Readonly<Partial<Record<PlanCode, boolean>>>;
168
178
  };
179
+ readonly tags: {
180
+ readonly key: "tags";
181
+ readonly name: string;
182
+ readonly description: string;
183
+ readonly defaultEnabled: boolean;
184
+ } & {
185
+ readonly enabledInDevelopment?: boolean;
186
+ readonly enabledForA8c: boolean;
187
+ readonly planDefaults: Readonly<Partial<Record<PlanCode, boolean>>>;
188
+ };
189
+ readonly functions: {
190
+ readonly key: "functions";
191
+ readonly name: string;
192
+ readonly description: string;
193
+ readonly defaultEnabled: boolean;
194
+ } & {
195
+ readonly enabledInDevelopment?: boolean;
196
+ readonly enabledForA8c: boolean;
197
+ readonly planDefaults: Readonly<Partial<Record<PlanCode, boolean>>>;
198
+ };
169
199
  readonly "plans.paid.available": {
170
200
  readonly key: "plans.paid.available";
171
201
  readonly name: string;
@@ -286,16 +316,6 @@ export declare const FEATURE_DEFINITIONS: Readonly<{
286
316
  readonly enabledForA8c: boolean;
287
317
  readonly planDefaults: Readonly<Partial<Record<PlanCode, boolean>>>;
288
318
  };
289
- readonly "sites.dedicated_runtime": {
290
- readonly key: "sites.dedicated_runtime";
291
- readonly name: string;
292
- readonly description: string;
293
- readonly defaultEnabled: boolean;
294
- } & {
295
- readonly enabledInDevelopment?: boolean;
296
- readonly enabledForA8c: boolean;
297
- readonly planDefaults: Readonly<Partial<Record<PlanCode, boolean>>>;
298
- };
299
319
  readonly "collab.drawing": {
300
320
  readonly key: "collab.drawing";
301
321
  readonly name: string;
@@ -306,8 +326,8 @@ export declare const FEATURE_DEFINITIONS: Readonly<{
306
326
  readonly enabledForA8c: boolean;
307
327
  readonly planDefaults: Readonly<Partial<Record<PlanCode, boolean>>>;
308
328
  };
309
- readonly tags: {
310
- readonly key: "tags";
329
+ readonly "sites.jetpack": {
330
+ readonly key: "sites.jetpack";
311
331
  readonly name: string;
312
332
  readonly description: string;
313
333
  readonly defaultEnabled: boolean;
@@ -316,8 +336,8 @@ export declare const FEATURE_DEFINITIONS: Readonly<{
316
336
  readonly enabledForA8c: boolean;
317
337
  readonly planDefaults: Readonly<Partial<Record<PlanCode, boolean>>>;
318
338
  };
319
- readonly functions: {
320
- readonly key: "functions";
339
+ readonly "spaces.slug_rename": {
340
+ readonly key: "spaces.slug_rename";
321
341
  readonly name: string;
322
342
  readonly description: string;
323
343
  readonly defaultEnabled: boolean;
@@ -326,8 +346,8 @@ export declare const FEATURE_DEFINITIONS: Readonly<{
326
346
  readonly enabledForA8c: boolean;
327
347
  readonly planDefaults: Readonly<Partial<Record<PlanCode, boolean>>>;
328
348
  };
329
- readonly "spaces.slug_rename": {
330
- readonly key: "spaces.slug_rename";
349
+ readonly "content.users": {
350
+ readonly key: "content.users";
331
351
  readonly name: string;
332
352
  readonly description: string;
333
353
  readonly defaultEnabled: boolean;
@@ -366,7 +386,10 @@ export declare const featureStateSourceSchema: z.ZodEnum<{
366
386
  }>;
367
387
  export declare const FeatureStateSchema: z.ZodObject<{
368
388
  key: z.ZodEnum<{
389
+ connectors: "connectors";
369
390
  zero: "zero";
391
+ tags: "tags";
392
+ functions: "functions";
370
393
  "plans.paid.available": "plans.paid.available";
371
394
  "anonymous.publishing": "anonymous.publishing";
372
395
  "beta.enrollment_gate": "beta.enrollment_gate";
@@ -379,11 +402,10 @@ export declare const FeatureStateSchema: z.ZodObject<{
379
402
  "collab.notices": "collab.notices";
380
403
  "collab.comments": "collab.comments";
381
404
  "content.managed": "content.managed";
382
- "sites.dedicated_runtime": "sites.dedicated_runtime";
383
405
  "collab.drawing": "collab.drawing";
384
- tags: "tags";
385
- functions: "functions";
406
+ "sites.jetpack": "sites.jetpack";
386
407
  "spaces.slug_rename": "spaces.slug_rename";
408
+ "content.users": "content.users";
387
409
  "pages.templates": "pages.templates";
388
410
  "branding.hide": "branding.hide";
389
411
  }>;
@@ -405,7 +427,10 @@ export declare const FeatureStateResponseSchema: z.ZodObject<{
405
427
  enterprise: "enterprise";
406
428
  }>;
407
429
  features: z.ZodRecord<z.ZodEnum<{
430
+ connectors: "connectors";
408
431
  zero: "zero";
432
+ tags: "tags";
433
+ functions: "functions";
409
434
  "plans.paid.available": "plans.paid.available";
410
435
  "anonymous.publishing": "anonymous.publishing";
411
436
  "beta.enrollment_gate": "beta.enrollment_gate";
@@ -418,16 +443,18 @@ export declare const FeatureStateResponseSchema: z.ZodObject<{
418
443
  "collab.notices": "collab.notices";
419
444
  "collab.comments": "collab.comments";
420
445
  "content.managed": "content.managed";
421
- "sites.dedicated_runtime": "sites.dedicated_runtime";
422
446
  "collab.drawing": "collab.drawing";
423
- tags: "tags";
424
- functions: "functions";
447
+ "sites.jetpack": "sites.jetpack";
425
448
  "spaces.slug_rename": "spaces.slug_rename";
449
+ "content.users": "content.users";
426
450
  "pages.templates": "pages.templates";
427
451
  "branding.hide": "branding.hide";
428
452
  }>, z.ZodObject<{
429
453
  key: z.ZodEnum<{
454
+ connectors: "connectors";
430
455
  zero: "zero";
456
+ tags: "tags";
457
+ functions: "functions";
431
458
  "plans.paid.available": "plans.paid.available";
432
459
  "anonymous.publishing": "anonymous.publishing";
433
460
  "beta.enrollment_gate": "beta.enrollment_gate";
@@ -440,11 +467,10 @@ export declare const FeatureStateResponseSchema: z.ZodObject<{
440
467
  "collab.notices": "collab.notices";
441
468
  "collab.comments": "collab.comments";
442
469
  "content.managed": "content.managed";
443
- "sites.dedicated_runtime": "sites.dedicated_runtime";
444
470
  "collab.drawing": "collab.drawing";
445
- tags: "tags";
446
- functions: "functions";
471
+ "sites.jetpack": "sites.jetpack";
447
472
  "spaces.slug_rename": "spaces.slug_rename";
473
+ "content.users": "content.users";
448
474
  "pages.templates": "pages.templates";
449
475
  "branding.hide": "branding.hide";
450
476
  }>;
@@ -64,7 +64,6 @@ export const teamEntitlementsSchema = z
64
64
  planCode: planCodeSchema,
65
65
  limits: planLimitsSchema,
66
66
  externalProxy: z.boolean().describe("Whether external proxy upstreams compile on this plan."),
67
- dedicatedRuntime: z.literal(true).describe("Every team receives its own runtime site."),
68
67
  pagesTemplates: z
69
68
  .boolean()
70
69
  .describe("Whether _pages/*.html full-page takeovers compile for this team."),
@@ -0,0 +1,124 @@
1
+ import { z } from "zod";
2
+ export declare const feedbackCategoryValues: readonly ["bug", "docs", "limit", "idea", "other"];
3
+ export declare const feedbackCategorySchema: z.ZodEnum<{
4
+ docs: "docs";
5
+ limit: "limit";
6
+ other: "other";
7
+ bug: "bug";
8
+ idea: "idea";
9
+ }>;
10
+ export type FeedbackCategory = z.infer<typeof feedbackCategorySchema>;
11
+ /** How the sender was identified: a signed-in user, a claim token for one space, or nothing. */
12
+ export declare const feedbackTierValues: readonly ["authenticated", "claim-token", "anonymous"];
13
+ export declare const feedbackTierSchema: z.ZodEnum<{
14
+ anonymous: "anonymous";
15
+ authenticated: "authenticated";
16
+ "claim-token": "claim-token";
17
+ }>;
18
+ export type FeedbackTier = z.infer<typeof feedbackTierSchema>;
19
+ export declare const feedbackBodySchema: z.ZodObject<{
20
+ message: z.ZodString;
21
+ category: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
22
+ docs: "docs";
23
+ limit: "limit";
24
+ other: "other";
25
+ bug: "bug";
26
+ idea: "idea";
27
+ }>>>;
28
+ context: z.ZodOptional<z.ZodObject<{
29
+ errorCode: z.ZodOptional<z.ZodString>;
30
+ requestId: z.ZodOptional<z.ZodString>;
31
+ spaceId: z.ZodOptional<z.ZodString>;
32
+ url: z.ZodOptional<z.ZodString>;
33
+ }, z.core.$strip>>;
34
+ }, z.core.$strip>;
35
+ export type FeedbackCreateInput = z.infer<typeof feedbackBodySchema>;
36
+ export declare const feedbackResponseSchema: z.ZodObject<{
37
+ ref: z.ZodString;
38
+ }, z.core.$strip>;
39
+ export declare const SuperadminFeedbackSchema: z.ZodObject<{
40
+ id: z.ZodString;
41
+ category: z.ZodEnum<{
42
+ docs: "docs";
43
+ limit: "limit";
44
+ other: "other";
45
+ bug: "bug";
46
+ idea: "idea";
47
+ }>;
48
+ message: z.ZodString;
49
+ tier: z.ZodEnum<{
50
+ anonymous: "anonymous";
51
+ authenticated: "authenticated";
52
+ "claim-token": "claim-token";
53
+ }>;
54
+ user: z.ZodNullable<z.ZodObject<{
55
+ id: z.ZodString;
56
+ email: z.ZodNullable<z.ZodString>;
57
+ name: z.ZodNullable<z.ZodString>;
58
+ }, z.core.$strip>>;
59
+ errorCode: z.ZodNullable<z.ZodString>;
60
+ requestId: z.ZodNullable<z.ZodString>;
61
+ spaceId: z.ZodNullable<z.ZodString>;
62
+ reportedSpaceId: z.ZodNullable<z.ZodString>;
63
+ url: z.ZodNullable<z.ZodString>;
64
+ userAgent: z.ZodNullable<z.ZodString>;
65
+ intercomConversationId: z.ZodNullable<z.ZodString>;
66
+ createdAt: z.ZodString;
67
+ }, z.core.$strip>;
68
+ export type SuperadminFeedback = z.infer<typeof SuperadminFeedbackSchema>;
69
+ export declare const superadminFeedbackListQuerySchema: z.ZodObject<{
70
+ limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
71
+ offset: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
72
+ search: z.ZodOptional<z.ZodString>;
73
+ category: z.ZodOptional<z.ZodEnum<{
74
+ docs: "docs";
75
+ limit: "limit";
76
+ other: "other";
77
+ bug: "bug";
78
+ idea: "idea";
79
+ }>>;
80
+ tier: z.ZodOptional<z.ZodEnum<{
81
+ anonymous: "anonymous";
82
+ authenticated: "authenticated";
83
+ "claim-token": "claim-token";
84
+ }>>;
85
+ }, z.core.$strip>;
86
+ export declare const SuperadminFeedbackListSchema: z.ZodObject<{
87
+ feedback: z.ZodArray<z.ZodObject<{
88
+ id: z.ZodString;
89
+ category: z.ZodEnum<{
90
+ docs: "docs";
91
+ limit: "limit";
92
+ other: "other";
93
+ bug: "bug";
94
+ idea: "idea";
95
+ }>;
96
+ message: z.ZodString;
97
+ tier: z.ZodEnum<{
98
+ anonymous: "anonymous";
99
+ authenticated: "authenticated";
100
+ "claim-token": "claim-token";
101
+ }>;
102
+ user: z.ZodNullable<z.ZodObject<{
103
+ id: z.ZodString;
104
+ email: z.ZodNullable<z.ZodString>;
105
+ name: z.ZodNullable<z.ZodString>;
106
+ }, z.core.$strip>>;
107
+ errorCode: z.ZodNullable<z.ZodString>;
108
+ requestId: z.ZodNullable<z.ZodString>;
109
+ spaceId: z.ZodNullable<z.ZodString>;
110
+ reportedSpaceId: z.ZodNullable<z.ZodString>;
111
+ url: z.ZodNullable<z.ZodString>;
112
+ userAgent: z.ZodNullable<z.ZodString>;
113
+ intercomConversationId: z.ZodNullable<z.ZodString>;
114
+ createdAt: z.ZodString;
115
+ }, z.core.$strip>>;
116
+ total: z.ZodNumber;
117
+ limit: z.ZodNumber;
118
+ offset: z.ZodNumber;
119
+ pagination: z.ZodObject<{
120
+ count: z.ZodNumber;
121
+ next: z.ZodNullable<z.ZodNumber>;
122
+ prev: z.ZodNullable<z.ZodNumber>;
123
+ }, z.core.$strip>;
124
+ }, z.core.$strip>;
@@ -0,0 +1,64 @@
1
+ import { z } from "zod";
2
+ import { makeOffsetListSchema } from "./common.js";
3
+ import { superadminPaginationSchema } from "./superadmin.js";
4
+ export const feedbackCategoryValues = ["bug", "docs", "limit", "idea", "other"];
5
+ export const feedbackCategorySchema = z.enum(feedbackCategoryValues);
6
+ /** How the sender was identified: a signed-in user, a claim token for one space, or nothing. */
7
+ export const feedbackTierValues = ["authenticated", "claim-token", "anonymous"];
8
+ export const feedbackTierSchema = z.enum(feedbackTierValues);
9
+ // One definition of each field's constraints. The intake body takes them as
10
+ // optional input; the stored row hands them back as nullable output.
11
+ const feedbackMessageSchema = z.string().trim().min(1).max(4000);
12
+ const feedbackContextFields = {
13
+ errorCode: z.string().trim().min(1).max(128),
14
+ requestId: z.string().trim().min(1).max(128),
15
+ spaceId: z.string().trim().min(1).max(128),
16
+ // http(s) only: the value is rendered as a link in the superadmin inbox and Slack.
17
+ url: z
18
+ .string()
19
+ .trim()
20
+ .url({ protocol: /^https?$/ })
21
+ .max(2000),
22
+ };
23
+ // Public intake (`POST /v1/feedback`, `sf feedback`, MCP).
24
+ export const feedbackBodySchema = z.object({
25
+ message: feedbackMessageSchema,
26
+ category: feedbackCategorySchema.optional().default("other"),
27
+ context: z.object(feedbackContextFields).partial().optional(),
28
+ });
29
+ export const feedbackResponseSchema = z.object({
30
+ ref: z.string(),
31
+ });
32
+ // Superadmin inbox (`GET /superadmin/feedback`), mirroring the beta-signup list shapes.
33
+ // `spaceId` is proved by the sender's claim token; `reportedSpaceId` is whatever
34
+ // the caller put in `context` and is never verified.
35
+ export const SuperadminFeedbackSchema = z.object({
36
+ id: z.string(),
37
+ category: feedbackCategorySchema,
38
+ message: feedbackMessageSchema,
39
+ tier: feedbackTierSchema,
40
+ user: z
41
+ .object({
42
+ id: z.string(),
43
+ email: z.string().nullable(),
44
+ name: z.string().nullable(),
45
+ })
46
+ .nullable(),
47
+ errorCode: feedbackContextFields.errorCode.nullable(),
48
+ requestId: feedbackContextFields.requestId.nullable(),
49
+ spaceId: z.string().nullable(),
50
+ reportedSpaceId: feedbackContextFields.spaceId.nullable(),
51
+ url: feedbackContextFields.url.nullable(),
52
+ userAgent: z.string().nullable(),
53
+ intercomConversationId: z.string().nullable(),
54
+ createdAt: z.string().datetime(),
55
+ });
56
+ export const superadminFeedbackListQuerySchema = z.object({
57
+ limit: z.coerce.number().int().min(1).max(100).default(50),
58
+ offset: z.coerce.number().int().min(0).default(0),
59
+ /** Matches the message, the sender's email, or an exact ref, user id, or space id. */
60
+ search: z.string().trim().optional(),
61
+ category: feedbackCategorySchema.optional(),
62
+ tier: feedbackTierSchema.optional(),
63
+ });
64
+ export const SuperadminFeedbackListSchema = makeOffsetListSchema("feedback", SuperadminFeedbackSchema, superadminPaginationSchema);
@@ -0,0 +1,129 @@
1
+ export declare const contentModelRevision = "sha256:5d447339ad5645d9c7473c8679a711d8bffb53053bc3875a2183a13765be772a";
2
+ /** Input for the `content.projects.list` Ability. */
3
+ export type ContentProjectsListInput = {
4
+ readonly limit: number;
5
+ };
6
+ /** Output of the `content.projects.list` Ability. */
7
+ export type ContentProjectsListOutput = Array<{
8
+ readonly id: number;
9
+ readonly title: string;
10
+ }>;
11
+ /** Input for the `query.featured-projects` Ability. */
12
+ export type QueryFeaturedProjectsInput = {
13
+ readonly limit: number;
14
+ };
15
+ /** Output of the `query.featured-projects` Ability. */
16
+ export type QueryFeaturedProjectsOutput = Array<{
17
+ readonly id: number;
18
+ readonly title: string;
19
+ }>;
20
+ /** Input for the `mutation.react` Ability. */
21
+ export type MutationReactInput = {
22
+ readonly projectId: string;
23
+ readonly emoji: string;
24
+ };
25
+ /** Output of the `mutation.react` Ability. */
26
+ export type MutationReactOutput = {
27
+ readonly id: string;
28
+ };
29
+ /** Input for the `endpoint.webhook` Ability. */
30
+ export type EndpointWebhookInput = {
31
+ readonly projectId: string;
32
+ readonly emoji: string;
33
+ };
34
+ /** Output of the `endpoint.webhook` Ability. */
35
+ export type EndpointWebhookOutput = {
36
+ readonly id: string;
37
+ };
38
+ /** Input for the `endpoint.preview` Ability. */
39
+ export type EndpointPreviewInput = {
40
+ readonly limit: number;
41
+ };
42
+ /** Output of the `endpoint.preview` Ability. */
43
+ export type EndpointPreviewOutput = Array<{
44
+ readonly id: number;
45
+ readonly title: string;
46
+ }>;
47
+ export type ContentModelAbilityTypes = {
48
+ "content.projects.list": {
49
+ input: ContentProjectsListInput;
50
+ output: ContentProjectsListOutput;
51
+ };
52
+ "query.featured-projects": {
53
+ input: QueryFeaturedProjectsInput;
54
+ output: QueryFeaturedProjectsOutput;
55
+ };
56
+ "mutation.react": {
57
+ input: MutationReactInput;
58
+ output: MutationReactOutput;
59
+ };
60
+ "endpoint.webhook": {
61
+ input: EndpointWebhookInput;
62
+ output: EndpointWebhookOutput;
63
+ };
64
+ "endpoint.preview": {
65
+ input: EndpointPreviewInput;
66
+ output: EndpointPreviewOutput;
67
+ };
68
+ };
69
+ export declare const contentModelAbilities: {
70
+ readonly "content.projects.list": {
71
+ readonly name: "zero/content-projects-list";
72
+ readonly kind: "query";
73
+ readonly mode: "read";
74
+ readonly cache: {
75
+ readonly kind: "public";
76
+ readonly maxAgeSeconds: 60;
77
+ readonly staleWhileRevalidateSeconds: 300;
78
+ };
79
+ readonly invalidates: readonly [];
80
+ };
81
+ readonly "query.featured-projects": {
82
+ readonly name: "zero/query-featured-projects";
83
+ readonly kind: "query";
84
+ readonly mode: "read";
85
+ readonly cache: {
86
+ readonly kind: "public";
87
+ readonly maxAgeSeconds: 60;
88
+ readonly staleWhileRevalidateSeconds: 300;
89
+ };
90
+ readonly invalidates: readonly [];
91
+ };
92
+ readonly "mutation.react": {
93
+ readonly name: "zero/mutation-react";
94
+ readonly kind: "mutation";
95
+ readonly mode: "write";
96
+ readonly cache: {
97
+ readonly kind: "none";
98
+ };
99
+ readonly invalidates: readonly ["endpoint.preview"];
100
+ };
101
+ readonly "endpoint.webhook": {
102
+ readonly name: "zero/endpoint-webhook";
103
+ readonly kind: "endpoint";
104
+ readonly mode: "write";
105
+ readonly cache: {
106
+ readonly kind: "none";
107
+ };
108
+ readonly invalidates: readonly ["endpoint.preview"];
109
+ };
110
+ readonly "endpoint.preview": {
111
+ readonly name: "zero/endpoint-preview";
112
+ readonly kind: "endpoint";
113
+ readonly mode: "read";
114
+ readonly cache: {
115
+ readonly kind: "private";
116
+ readonly maxAgeSeconds: 0;
117
+ };
118
+ readonly invalidates: readonly [];
119
+ };
120
+ };
121
+ export declare const contentModelSyncBindings: readonly [{
122
+ readonly id: "sync.projects-body";
123
+ readonly resourceId: "projects";
124
+ readonly source: "content/projects/launch.md";
125
+ }, {
126
+ readonly id: "sync.projects-guide";
127
+ readonly resourceId: "projects";
128
+ readonly source: "content/projects/guide.tsx";
129
+ }];
@@ -0,0 +1,48 @@
1
+ // Generated from a Spacefast ContentModelRelease. Do not edit.
2
+ //
3
+ // Every Ability below is published by the WordPress Abilities API under the
4
+ // `name` in `contentModelAbilities`. Hand this table to
5
+ // `createContentModelClient` from `@spacefast/common/contracts/content-model-sdk`
6
+ // for a typed `call`, or address the names directly over REST or MCP.
7
+ export const contentModelRevision = "sha256:5d447339ad5645d9c7473c8679a711d8bffb53053bc3875a2183a13765be772a";
8
+ export const contentModelAbilities = {
9
+ "content.projects.list": {
10
+ name: "zero/content-projects-list",
11
+ kind: "query",
12
+ mode: "read",
13
+ cache: { kind: "public", maxAgeSeconds: 60, staleWhileRevalidateSeconds: 300 },
14
+ invalidates: [],
15
+ },
16
+ "query.featured-projects": {
17
+ name: "zero/query-featured-projects",
18
+ kind: "query",
19
+ mode: "read",
20
+ cache: { kind: "public", maxAgeSeconds: 60, staleWhileRevalidateSeconds: 300 },
21
+ invalidates: [],
22
+ },
23
+ "mutation.react": {
24
+ name: "zero/mutation-react",
25
+ kind: "mutation",
26
+ mode: "write",
27
+ cache: { kind: "none" },
28
+ invalidates: ["endpoint.preview"],
29
+ },
30
+ "endpoint.webhook": {
31
+ name: "zero/endpoint-webhook",
32
+ kind: "endpoint",
33
+ mode: "write",
34
+ cache: { kind: "none" },
35
+ invalidates: ["endpoint.preview"],
36
+ },
37
+ "endpoint.preview": {
38
+ name: "zero/endpoint-preview",
39
+ kind: "endpoint",
40
+ mode: "read",
41
+ cache: { kind: "private", maxAgeSeconds: 0 },
42
+ invalidates: [],
43
+ },
44
+ };
45
+ export const contentModelSyncBindings = [
46
+ { id: "sync.projects-body", resourceId: "projects", source: "content/projects/launch.md" },
47
+ { id: "sync.projects-guide", resourceId: "projects", source: "content/projects/guide.tsx" },
48
+ ];