@spacefast/common 0.0.5 → 0.0.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (150) hide show
  1. package/dist/agents/connect-targets.d.ts +133 -0
  2. package/dist/agents/connect-targets.js +224 -0
  3. package/dist/brand.d.ts +1 -0
  4. package/dist/brand.js +5 -0
  5. package/dist/config/domains.d.ts +12 -6
  6. package/dist/config/domains.js +30 -38
  7. package/dist/contracts/access.d.ts +825 -125
  8. package/dist/contracts/access.js +771 -148
  9. package/dist/contracts/activity.d.ts +1 -1
  10. package/dist/contracts/activity.js +28 -2
  11. package/dist/contracts/annotations.d.ts +2 -4
  12. package/dist/contracts/api-keys.d.ts +3 -4
  13. package/dist/contracts/api-keys.js +9 -6
  14. package/dist/contracts/archives.d.ts +8 -2
  15. package/dist/contracts/archives.js +11 -4
  16. package/dist/contracts/billing.d.ts +0 -9
  17. package/dist/contracts/builds.d.ts +25 -21
  18. package/dist/contracts/builds.js +12 -0
  19. package/dist/contracts/common.d.ts +2 -0
  20. package/dist/contracts/common.js +4 -0
  21. package/dist/contracts/continuation.d.ts +0 -3
  22. package/dist/contracts/countries.d.ts +2 -0
  23. package/dist/contracts/countries.js +261 -0
  24. package/dist/contracts/deployments.d.ts +34 -34
  25. package/dist/contracts/device-auth.d.ts +4 -11
  26. package/dist/contracts/device-auth.js +4 -0
  27. package/dist/contracts/docs.d.ts +119 -0
  28. package/dist/contracts/docs.js +51 -0
  29. package/dist/contracts/domains.d.ts +96 -54
  30. package/dist/contracts/domains.js +26 -4
  31. package/dist/contracts/enums.d.ts +15 -16
  32. package/dist/contracts/enums.js +25 -14
  33. package/dist/contracts/error-code-meta.d.ts +72 -0
  34. package/dist/contracts/error-code-meta.js +96 -10
  35. package/dist/contracts/error-codes.d.ts +1 -1
  36. package/dist/contracts/error-codes.js +14 -0
  37. package/dist/contracts/events.d.ts +1 -1
  38. package/dist/contracts/features.d.ts +76 -6
  39. package/dist/contracts/features.js +178 -13
  40. package/dist/contracts/git.d.ts +2 -8
  41. package/dist/contracts/ids.d.ts +5 -0
  42. package/dist/contracts/ids.js +5 -0
  43. package/dist/contracts/mcp.d.ts +8 -10
  44. package/dist/contracts/me.js +1 -1
  45. package/dist/contracts/oauth-resources.d.ts +19 -8
  46. package/dist/contracts/oauth-resources.js +44 -13
  47. package/dist/contracts/platform.d.ts +0 -102
  48. package/dist/contracts/platform.js +0 -50
  49. package/dist/contracts/push-new.d.ts +4 -4
  50. package/dist/contracts/quotas.d.ts +2 -0
  51. package/dist/contracts/quotas.js +8 -0
  52. package/dist/contracts/repository-connections.d.ts +6 -8
  53. package/dist/contracts/resources.d.ts +97 -13
  54. package/dist/contracts/resources.js +26 -2
  55. package/dist/contracts/routes.d.ts +0 -2
  56. package/dist/contracts/runtime-api.d.ts +361 -39
  57. package/dist/contracts/runtime-api.js +275 -6
  58. package/dist/contracts/sites.d.ts +19 -2
  59. package/dist/contracts/sites.js +21 -0
  60. package/dist/contracts/space-config.d.ts +201 -2
  61. package/dist/contracts/space-config.js +135 -5
  62. package/dist/contracts/spaces.d.ts +364 -193
  63. package/dist/contracts/spaces.js +40 -8
  64. package/dist/contracts/superadmin-emails.d.ts +4 -2
  65. package/dist/contracts/superadmin-emails.js +8 -0
  66. package/dist/contracts/superadmin-queues.d.ts +26 -26
  67. package/dist/contracts/superadmin-spaces.d.ts +170 -42
  68. package/dist/contracts/superadmin.d.ts +6 -93
  69. package/dist/contracts/superadmin.js +6 -14
  70. package/dist/contracts/tags.d.ts +10 -9
  71. package/dist/contracts/tags.js +2 -1
  72. package/dist/contracts/teams.d.ts +21 -22
  73. package/dist/contracts/teams.js +0 -1
  74. package/dist/contracts/theme-json.d.ts +30 -0
  75. package/dist/contracts/theme-json.js +48 -0
  76. package/dist/contracts/variables.d.ts +0 -2
  77. package/dist/contracts/variables.js +0 -5
  78. package/dist/contracts/webhooks.d.ts +2 -0
  79. package/dist/contracts/webhooks.js +1 -1
  80. package/dist/contracts/zero.d.ts +5 -10
  81. package/dist/docs/agent-prose.d.ts +43 -3
  82. package/dist/docs/agent-prose.js +146 -7
  83. package/dist/docs/agent-setup.js +45 -13
  84. package/dist/docs/agent-solutions.d.ts +5 -5
  85. package/dist/docs/agent-solutions.js +2 -2
  86. package/dist/docs/catalog.d.ts +650 -0
  87. package/dist/docs/catalog.js +758 -0
  88. package/dist/docs/error-docs.d.ts +0 -2
  89. package/dist/docs/error-docs.js +77 -35
  90. package/dist/docs/index-build.d.ts +17 -0
  91. package/dist/docs/index-build.js +24 -0
  92. package/dist/docs/search.d.ts +54 -0
  93. package/dist/docs/search.js +96 -0
  94. package/dist/docs/skill-distribution.d.ts +5 -3
  95. package/dist/docs/skill-distribution.js +8 -8
  96. package/dist/utils/access-match.d.ts +39 -0
  97. package/dist/utils/access-match.js +296 -0
  98. package/dist/utils/auth-redirect.d.ts +3 -1
  99. package/dist/utils/auth-redirect.js +21 -1
  100. package/dist/utils/build-settings.d.ts +6 -0
  101. package/dist/utils/build-settings.js +429 -46
  102. package/dist/utils/claim-token.d.ts +8 -0
  103. package/dist/utils/claim-token.js +23 -2
  104. package/dist/utils/content-type.d.ts +1 -0
  105. package/dist/utils/content-type.js +1 -1
  106. package/dist/utils/credential-policy.d.ts +54 -0
  107. package/dist/utils/{access-policy.js → credential-policy.js} +28 -2
  108. package/dist/utils/gate-theme.d.ts +61 -0
  109. package/dist/utils/gate-theme.js +217 -0
  110. package/dist/utils/git-repository.d.ts +0 -1
  111. package/dist/utils/git-repository.js +0 -3
  112. package/dist/utils/id-hints.d.ts +8 -0
  113. package/dist/utils/id-hints.js +61 -0
  114. package/dist/utils/local-space-state.d.ts +91 -0
  115. package/dist/utils/local-space-state.js +251 -0
  116. package/dist/utils/oauth-signed-query.d.ts +8 -0
  117. package/dist/utils/oauth-signed-query.js +26 -0
  118. package/dist/utils/publish-detection.d.ts +0 -8
  119. package/dist/utils/publish-detection.js +0 -93
  120. package/dist/utils/publish-policy.d.ts +6 -5
  121. package/dist/utils/publish-policy.js +71 -7
  122. package/dist/utils/query-keys.d.ts +15 -4
  123. package/dist/utils/query-keys.js +27 -4
  124. package/dist/utils/runtime-paths.d.ts +0 -1
  125. package/dist/utils/runtime-paths.js +0 -1
  126. package/dist/utils/runtime-upload-batch.d.ts +18 -0
  127. package/dist/utils/runtime-upload-batch.js +90 -0
  128. package/dist/utils/runtime-upload.d.ts +2 -0
  129. package/dist/utils/runtime-upload.js +5 -0
  130. package/dist/utils/space-config.d.ts +4 -0
  131. package/dist/utils/space-config.js +10 -1
  132. package/dist/utils/space-theme.d.ts +2 -0
  133. package/dist/utils/space-theme.js +9 -0
  134. package/dist/utils/static-runtime-policy.d.ts +0 -21
  135. package/dist/utils/static-runtime-policy.js +19 -103
  136. package/dist/utils/upload-session.d.ts +1 -1
  137. package/dist/utils/wpcom-auth-redirects.d.ts +32 -2
  138. package/dist/utils/wpcom-auth-redirects.js +26 -10
  139. package/dist/vocabulary.d.ts +130 -30
  140. package/dist/vocabulary.js +77 -36
  141. package/package.json +16 -1
  142. package/dist/contracts/account.d.ts +0 -28
  143. package/dist/contracts/account.js +0 -54
  144. package/dist/contracts/intercom.d.ts +0 -6
  145. package/dist/contracts/intercom.js +0 -5
  146. package/dist/contracts/telemetry.d.ts +0 -2
  147. package/dist/contracts/telemetry.js +0 -1
  148. package/dist/utils/access-policy.d.ts +0 -39
  149. package/dist/utils/error-display.d.ts +0 -7
  150. package/dist/utils/error-display.js +0 -42
@@ -1,8 +1,8 @@
1
1
  import { z } from "zod";
2
2
  export declare const tagVersionStatusSchema: z.ZodEnum<{
3
3
  approved: "approved";
4
- draft: "draft";
5
4
  publishing: "publishing";
5
+ draft: "draft";
6
6
  in_review: "in_review";
7
7
  published: "published";
8
8
  abandoned: "abandoned";
@@ -142,8 +142,8 @@ export declare const tagVersionSchema: z.ZodObject<{
142
142
  baseVersionId: z.ZodNullable<z.ZodString>;
143
143
  status: z.ZodEnum<{
144
144
  approved: "approved";
145
- draft: "draft";
146
145
  publishing: "publishing";
146
+ draft: "draft";
147
147
  in_review: "in_review";
148
148
  published: "published";
149
149
  abandoned: "abandoned";
@@ -197,8 +197,8 @@ export declare const tagVersionListQuerySchema: z.ZodObject<{
197
197
  cursor: z.ZodOptional<z.ZodString>;
198
198
  status: z.ZodOptional<z.ZodEnum<{
199
199
  approved: "approved";
200
- draft: "draft";
201
200
  publishing: "publishing";
201
+ draft: "draft";
202
202
  in_review: "in_review";
203
203
  published: "published";
204
204
  abandoned: "abandoned";
@@ -212,8 +212,8 @@ export declare const tagVersionListResponseSchema: z.ZodObject<{
212
212
  baseVersionId: z.ZodNullable<z.ZodString>;
213
213
  status: z.ZodEnum<{
214
214
  approved: "approved";
215
- draft: "draft";
216
215
  publishing: "publishing";
216
+ draft: "draft";
217
217
  in_review: "in_review";
218
218
  published: "published";
219
219
  abandoned: "abandoned";
@@ -275,8 +275,8 @@ export declare const tagVersionResponseSchema: z.ZodObject<{
275
275
  baseVersionId: z.ZodNullable<z.ZodString>;
276
276
  status: z.ZodEnum<{
277
277
  approved: "approved";
278
- draft: "draft";
279
278
  publishing: "publishing";
279
+ draft: "draft";
280
280
  in_review: "in_review";
281
281
  published: "published";
282
282
  abandoned: "abandoned";
@@ -591,8 +591,8 @@ export declare const tagApplyResponseSchema: z.ZodObject<{
591
591
  baseVersionId: z.ZodNullable<z.ZodString>;
592
592
  status: z.ZodEnum<{
593
593
  approved: "approved";
594
- draft: "draft";
595
594
  publishing: "publishing";
595
+ draft: "draft";
596
596
  in_review: "in_review";
597
597
  published: "published";
598
598
  abandoned: "abandoned";
@@ -825,9 +825,9 @@ export declare const tagTemplateDefinitionSchema: z.ZodObject<{
825
825
  label: z.ZodString;
826
826
  kind: z.ZodDefault<z.ZodEnum<{
827
827
  boolean: "boolean";
828
+ text: "text";
828
829
  url: "url";
829
830
  secret: "secret";
830
- text: "text";
831
831
  textarea: "textarea";
832
832
  }>>;
833
833
  required: z.ZodDefault<z.ZodBoolean>;
@@ -934,9 +934,9 @@ export declare const tagTemplateListResponseSchema: z.ZodObject<{
934
934
  label: z.ZodString;
935
935
  kind: z.ZodDefault<z.ZodEnum<{
936
936
  boolean: "boolean";
937
+ text: "text";
937
938
  url: "url";
938
939
  secret: "secret";
939
- text: "text";
940
940
  textarea: "textarea";
941
941
  }>>;
942
942
  required: z.ZodDefault<z.ZodBoolean>;
@@ -1084,7 +1084,7 @@ export declare function listTagTemplates(): {
1084
1084
  fields: {
1085
1085
  key: string;
1086
1086
  label: string;
1087
- kind: "boolean" | "url" | "secret" | "text" | "textarea";
1087
+ kind: "boolean" | "text" | "url" | "secret" | "textarea";
1088
1088
  required: boolean;
1089
1089
  placeholder?: string | undefined;
1090
1090
  help?: string | undefined;
@@ -1101,6 +1101,7 @@ export declare function listTagTemplates(): {
1101
1101
  }[];
1102
1102
  };
1103
1103
  export declare function tagTemplateById(id: string): TagTemplateDefinition | null;
1104
+ export declare function safeTagIdPart(value: string): string;
1104
1105
  export declare function tagPresetTriggers(ids: TagTriggerPreset[]): {
1105
1106
  id: string;
1106
1107
  type: "page_view" | "outbound_click" | "form_submit" | "file_download" | "scroll_depth";
@@ -698,7 +698,7 @@ function templateFieldValue(config, key) {
698
698
  const value = config[key];
699
699
  return typeof value === "string" ? value.trim() : "";
700
700
  }
701
- function safeTagIdPart(value) {
701
+ export function safeTagIdPart(value) {
702
702
  return value
703
703
  .trim()
704
704
  .toLowerCase()
@@ -966,6 +966,7 @@ export function tagGraphFromTemplateSelection(input) {
966
966
  const tags = [
967
967
  {
968
968
  ...common,
969
+ templateConfig: selection.config,
969
970
  id: idBase,
970
971
  name: selection.name ?? template.name,
971
972
  triggerIds: template.id === "custom-javascript"
@@ -1,16 +1,15 @@
1
1
  import { z } from "zod";
2
2
  export declare const TEAM_ROLE_VALUES: readonly ["owner", "admin", "member"];
3
- export declare const PLAN_FEATURE_VALUES: readonly ["version-diagnostics"];
4
3
  export declare const teamMemberRole: z.ZodEnum<{
5
- owner: "owner";
6
4
  admin: "admin";
5
+ owner: "owner";
7
6
  member: "member";
8
7
  }>;
9
8
  export declare const teamInvitationCreateSchema: z.ZodObject<{
10
9
  email: z.ZodString;
11
10
  role: z.ZodDefault<z.ZodEnum<{
12
- owner: "owner";
13
11
  admin: "admin";
12
+ owner: "owner";
14
13
  member: "member";
15
14
  }>>;
16
15
  }, z.core.$strip>;
@@ -35,8 +34,8 @@ export declare const TeamInvitationSchema: z.ZodObject<{
35
34
  teamId: z.ZodString;
36
35
  email: z.ZodString;
37
36
  role: z.ZodEnum<{
38
- owner: "owner";
39
37
  admin: "admin";
38
+ owner: "owner";
40
39
  member: "member";
41
40
  }>;
42
41
  status: z.ZodString;
@@ -45,10 +44,10 @@ export declare const TeamInvitationSchema: z.ZodObject<{
45
44
  }, z.core.$strip>;
46
45
  export declare const teamPlanCode: z.ZodEnum<{
47
46
  free: "free";
48
- personal: "personal";
47
+ internal: "internal";
49
48
  work: "work";
49
+ personal: "personal";
50
50
  enterprise: "enterprise";
51
- internal: "internal";
52
51
  }>;
53
52
  export declare const TeamSummarySchema: z.ZodObject<{
54
53
  id: z.ZodString;
@@ -56,16 +55,16 @@ export declare const TeamSummarySchema: z.ZodObject<{
56
55
  name: z.ZodString;
57
56
  slug: z.ZodString;
58
57
  role: z.ZodEnum<{
59
- owner: "owner";
60
58
  admin: "admin";
59
+ owner: "owner";
61
60
  member: "member";
62
61
  }>;
63
62
  plan: z.ZodEnum<{
64
63
  free: "free";
65
- personal: "personal";
64
+ internal: "internal";
66
65
  work: "work";
66
+ personal: "personal";
67
67
  enterprise: "enterprise";
68
- internal: "internal";
69
68
  }>;
70
69
  defaultDataLocation: z.ZodString;
71
70
  createdAt: z.ZodString;
@@ -77,16 +76,16 @@ export declare const TeamDetailSchema: z.ZodObject<{
77
76
  name: z.ZodString;
78
77
  slug: z.ZodString;
79
78
  role: z.ZodEnum<{
80
- owner: "owner";
81
79
  admin: "admin";
80
+ owner: "owner";
82
81
  member: "member";
83
82
  }>;
84
83
  plan: z.ZodEnum<{
85
84
  free: "free";
86
- personal: "personal";
85
+ internal: "internal";
87
86
  work: "work";
87
+ personal: "personal";
88
88
  enterprise: "enterprise";
89
- internal: "internal";
90
89
  }>;
91
90
  defaultDataLocation: z.ZodString;
92
91
  createdAt: z.ZodString;
@@ -102,16 +101,16 @@ export declare const teamListResponseSchema: z.ZodObject<{
102
101
  name: z.ZodString;
103
102
  slug: z.ZodString;
104
103
  role: z.ZodEnum<{
105
- owner: "owner";
106
104
  admin: "admin";
105
+ owner: "owner";
107
106
  member: "member";
108
107
  }>;
109
108
  plan: z.ZodEnum<{
110
109
  free: "free";
111
- personal: "personal";
110
+ internal: "internal";
112
111
  work: "work";
112
+ personal: "personal";
113
113
  enterprise: "enterprise";
114
- internal: "internal";
115
114
  }>;
116
115
  defaultDataLocation: z.ZodString;
117
116
  createdAt: z.ZodString;
@@ -128,8 +127,8 @@ export declare const teamMemberListResponseSchema: z.ZodObject<{
128
127
  teamId: z.ZodString;
129
128
  userId: z.ZodString;
130
129
  role: z.ZodEnum<{
131
- owner: "owner";
132
130
  admin: "admin";
131
+ owner: "owner";
133
132
  member: "member";
134
133
  }>;
135
134
  createdAt: z.ZodString;
@@ -161,8 +160,8 @@ export declare const teamInvitationAcceptResponseSchema: z.ZodObject<{
161
160
  teamSlug: z.ZodString;
162
161
  userId: z.ZodString;
163
162
  role: z.ZodEnum<{
164
- owner: "owner";
165
163
  admin: "admin";
164
+ owner: "owner";
166
165
  member: "member";
167
166
  }>;
168
167
  }, z.core.$strip>;
@@ -173,8 +172,8 @@ export declare const teamInvitationListResponseSchema: z.ZodObject<{
173
172
  teamId: z.ZodString;
174
173
  email: z.ZodString;
175
174
  role: z.ZodEnum<{
176
- owner: "owner";
177
175
  admin: "admin";
176
+ owner: "owner";
178
177
  member: "member";
179
178
  }>;
180
179
  status: z.ZodString;
@@ -199,10 +198,10 @@ export declare const teamSettingsResponseSchema: z.ZodObject<{
199
198
  }, z.core.$strip>>;
200
199
  wpCloudCapabilities: z.ZodObject<{
201
200
  status: z.ZodEnum<{
202
- idle: "idle";
203
- running: "running";
204
- ready: "ready";
205
201
  failed: "failed";
202
+ ready: "ready";
203
+ running: "running";
204
+ idle: "idle";
206
205
  }>;
207
206
  degraded: z.ZodBoolean;
208
207
  lastSyncedAt: z.ZodNullable<z.ZodString>;
@@ -233,9 +232,9 @@ export declare const teamInvitationPreviewSchema: z.ZodObject<{
233
232
  teamName: z.ZodString;
234
233
  invitedEmail: z.ZodString;
235
234
  status: z.ZodEnum<{
236
- pending: "pending";
237
235
  expired: "expired";
238
236
  closed: "closed";
237
+ pending: "pending";
239
238
  }>;
240
239
  expiresAt: z.ZodString;
241
240
  }, z.core.$strip>;
@@ -2,7 +2,6 @@ import { z } from "zod";
2
2
  import { CursorPaginationSchema, cursorListQuerySchema } from "./common.js";
3
3
  import { planCodeSchema, planLimitValueSchema } from "./features.js";
4
4
  export const TEAM_ROLE_VALUES = ["owner", "admin", "member"];
5
- export const PLAN_FEATURE_VALUES = ["version-diagnostics"];
6
5
  export const teamMemberRole = z.enum(TEAM_ROLE_VALUES);
7
6
  export const teamInvitationCreateSchema = z.object({
8
7
  email: z.string().trim().email().toLowerCase(),
@@ -0,0 +1,30 @@
1
+ import { z } from "zod";
2
+ export declare const themeJsonColorPaletteEntrySchema: z.ZodObject<{
3
+ slug: z.ZodString;
4
+ color: z.ZodString;
5
+ name: z.ZodOptional<z.ZodString>;
6
+ }, z.core.$strip>;
7
+ export declare const themeJsonFontFamilyEntrySchema: z.ZodObject<{
8
+ slug: z.ZodString;
9
+ fontFamily: z.ZodString;
10
+ name: z.ZodOptional<z.ZodString>;
11
+ }, z.core.$strip>;
12
+ export declare const themeJsonSchema: z.ZodObject<{
13
+ settings: z.ZodOptional<z.ZodObject<{
14
+ color: z.ZodOptional<z.ZodObject<{
15
+ palette: z.ZodOptional<z.ZodArray<z.ZodObject<{
16
+ slug: z.ZodString;
17
+ color: z.ZodString;
18
+ name: z.ZodOptional<z.ZodString>;
19
+ }, z.core.$strip>>>;
20
+ }, z.core.$loose>>;
21
+ typography: z.ZodOptional<z.ZodObject<{
22
+ fontFamilies: z.ZodOptional<z.ZodArray<z.ZodObject<{
23
+ slug: z.ZodString;
24
+ fontFamily: z.ZodString;
25
+ name: z.ZodOptional<z.ZodString>;
26
+ }, z.core.$strip>>>;
27
+ }, z.core.$loose>>;
28
+ }, z.core.$loose>>;
29
+ }, z.core.$loose>;
30
+ export type ThemeJson = z.infer<typeof themeJsonSchema>;
@@ -0,0 +1,48 @@
1
+ import { z } from "zod";
2
+ // WordPress `theme.json`-compatible subset (access-plan §8 tier 3, middle
3
+ // precedence: `sf.theme.jsonc` > `theme.json` > `spacefast.jsonc "pages.theme"`).
4
+ // Real WP theme.json carries dozens of unrelated keys (layout, blocks,
5
+ // customTemplates, styles, ...); this schema accepts the file as a loose
6
+ // object (`.passthrough()`) and only VALIDATES the two branches gate pages
7
+ // actually consume: `settings.color.palette` and
8
+ // `settings.typography.fontFamilies`. Everything else rides through
9
+ // unvalidated and is simply never read — this is not a reimplementation of
10
+ // WP_Theme_JSON, just the safe slice that reaches presentation-only gate
11
+ // pages (access-plan §8).
12
+ const presetSlug = z
13
+ .string()
14
+ .min(1)
15
+ .max(64)
16
+ .regex(/^[a-z0-9-]+$/, { message: "Preset slugs are lowercase alphanumerics and dashes." });
17
+ export const themeJsonColorPaletteEntrySchema = z.object({
18
+ slug: presetSlug,
19
+ color: z.string().min(1).max(128),
20
+ name: z.string().min(1).max(128).optional(),
21
+ });
22
+ export const themeJsonFontFamilyEntrySchema = z.object({
23
+ slug: presetSlug,
24
+ fontFamily: z.string().min(1).max(256),
25
+ name: z.string().min(1).max(128).optional(),
26
+ });
27
+ export const themeJsonSchema = z
28
+ .object({
29
+ settings: z
30
+ .object({
31
+ color: z
32
+ .object({
33
+ palette: z.array(themeJsonColorPaletteEntrySchema).max(64).optional(),
34
+ })
35
+ .passthrough()
36
+ .optional(),
37
+ typography: z
38
+ .object({
39
+ fontFamilies: z.array(themeJsonFontFamilyEntrySchema).max(32).optional(),
40
+ })
41
+ .passthrough()
42
+ .optional(),
43
+ })
44
+ .passthrough()
45
+ .optional(),
46
+ })
47
+ .passthrough()
48
+ .describe("WordPress theme.json-compatible file; only color.palette/typography.fontFamilies feed gate pages.");
@@ -23,8 +23,6 @@ export declare const variableProvenanceSchema: z.ZodArray<z.ZodObject<{
23
23
  name: z.ZodString;
24
24
  valueHash: z.ZodString;
25
25
  }, z.core.$strip>>;
26
- export type VariableProvenance = z.infer<typeof variableProvenanceSchema>;
27
- export declare function variableResourceId(scope: z.infer<typeof variableScope>, name: string): string;
28
26
  export declare const SystemVariableSchema: z.ZodObject<{
29
27
  name: z.ZodString;
30
28
  value: z.ZodString;
@@ -39,11 +39,6 @@ export const variableProvenanceSchema = z
39
39
  .describe("sha256 of the resolved value at finalize time. Never the value itself."),
40
40
  }))
41
41
  .describe("Variable names + value hashes baked into this version at finalize. Never values.");
42
- // Operation `resources` entry id for a coalesced variable write
43
- // (internal-docs/platform.md "Debounce contract"): `{scope}/{name}`.
44
- export function variableResourceId(scope, name) {
45
- return `${scope}/${name}`;
46
- }
47
42
  // Platform-provided, read-only values (SPACEFAST_*) surfaced alongside stored
48
43
  // variables on list reads. Not persistable and not a Variable scope.
49
44
  export const SystemVariableSchema = z.object({
@@ -27,6 +27,7 @@ export declare const webhookSchema: z.ZodObject<{
27
27
  events: z.ZodArray<z.ZodString>;
28
28
  status: z.ZodEnum<{
29
29
  active: "active";
30
+ deleted: "deleted";
30
31
  disabled: "disabled";
31
32
  failing: "failing";
32
33
  }>;
@@ -56,6 +57,7 @@ export declare const webhookListResponseSchema: z.ZodObject<{
56
57
  events: z.ZodArray<z.ZodString>;
57
58
  status: z.ZodEnum<{
58
59
  active: "active";
60
+ deleted: "deleted";
59
61
  disabled: "disabled";
60
62
  failing: "failing";
61
63
  }>;
@@ -24,7 +24,7 @@ export const webhookSchema = z.object({
24
24
  .nullable(),
25
25
  url: z.string().url(),
26
26
  events: z.array(z.string()),
27
- status: z.enum(["active", "disabled", "failing"]),
27
+ status: z.enum(["active", "disabled", "failing", "deleted"]),
28
28
  secret: z.string().optional(),
29
29
  secretPreview: z.string(),
30
30
  previousSecretExpiresAt: z.string().datetime().nullable(),
@@ -245,8 +245,8 @@ export declare const zeroRuntimePublicRealtimeModeSchema: z.ZodEnum<{
245
245
  "local-websocket": "local-websocket";
246
246
  }>;
247
247
  export declare const zeroInspectPolicySchema: z.ZodEnum<{
248
- private: "private";
249
248
  public: "public";
249
+ private: "private";
250
250
  }>;
251
251
  export declare const zeroRuntimePublicAuthConfigSchema: z.ZodObject<{
252
252
  provider: z.ZodDefault<z.ZodLiteral<"wpcom">>;
@@ -256,7 +256,6 @@ export declare const zeroRuntimePublicAuthConfigSchema: z.ZodObject<{
256
256
  signOutUrl: z.ZodDefault<z.ZodNullable<z.ZodString>>;
257
257
  returnToParam: z.ZodDefault<z.ZodString>;
258
258
  }, z.core.$strict>;
259
- export type ZeroRuntimePublicAuthConfig = z.infer<typeof zeroRuntimePublicAuthConfigSchema>;
260
259
  export declare const zeroRuntimePublicRealtimeConfigSchema: z.ZodObject<{
261
260
  mode: z.ZodEnum<{
262
261
  "stattic-central": "stattic-central";
@@ -275,7 +274,6 @@ export declare const zeroRuntimePublicRealtimeConfigSchema: z.ZodObject<{
275
274
  spaceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
276
275
  versionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
277
276
  }, z.core.$strict>;
278
- export type ZeroRuntimePublicRealtimeConfig = z.infer<typeof zeroRuntimePublicRealtimeConfigSchema>;
279
277
  export declare const zeroRuntimeClientConfigSchema: z.ZodObject<{
280
278
  runtimeKind: z.ZodLiteral<"zero">;
281
279
  basePath: z.ZodOptional<z.ZodString>;
@@ -782,8 +780,8 @@ export declare const zeroRuntimeFinalizePayloadSchema: z.ZodObject<{
782
780
  }, z.core.$strict>>;
783
781
  inspect: z.ZodDefault<z.ZodObject<{
784
782
  policy: z.ZodDefault<z.ZodEnum<{
785
- private: "private";
786
783
  public: "public";
784
+ private: "private";
787
785
  }>>;
788
786
  }, z.core.$strict>>;
789
787
  }, z.core.$strict>;
@@ -1057,8 +1055,8 @@ export declare const zeroDeployMetadataSchema: z.ZodObject<{
1057
1055
  }, z.core.$strict>>;
1058
1056
  inspect: z.ZodDefault<z.ZodObject<{
1059
1057
  policy: z.ZodDefault<z.ZodEnum<{
1060
- private: "private";
1061
1058
  public: "public";
1059
+ private: "private";
1062
1060
  }>>;
1063
1061
  }, z.core.$strict>>;
1064
1062
  }, z.core.$strict>;
@@ -1073,8 +1071,8 @@ export declare const zeroInspectResponseSchema: z.ZodObject<{
1073
1071
  serverRuntime: z.ZodLiteral<"quickjs-rust">;
1074
1072
  inspect: z.ZodObject<{
1075
1073
  policy: z.ZodEnum<{
1076
- private: "private";
1077
1074
  public: "public";
1075
+ private: "private";
1078
1076
  }>;
1079
1077
  }, z.core.$strict>;
1080
1078
  install: z.ZodObject<{
@@ -1156,8 +1154,8 @@ export declare const zeroInspectPublicResponseSchema: z.ZodObject<{
1156
1154
  serverRuntime: z.ZodLiteral<"quickjs-rust">;
1157
1155
  inspect: z.ZodObject<{
1158
1156
  policy: z.ZodEnum<{
1159
- private: "private";
1160
1157
  public: "public";
1158
+ private: "private";
1161
1159
  }>;
1162
1160
  }, z.core.$strict>;
1163
1161
  install: z.ZodObject<{
@@ -1372,7 +1370,6 @@ export declare const zeroDbDumpQuerySchema: z.ZodObject<{
1372
1370
  table: z.ZodOptional<z.ZodString>;
1373
1371
  limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
1374
1372
  }, z.core.$strict>;
1375
- export type ZeroDbDumpQuery = z.infer<typeof zeroDbDumpQuerySchema>;
1376
1373
  export declare const zeroDbDumpTableSchema: z.ZodObject<{
1377
1374
  name: z.ZodString;
1378
1375
  rows: z.ZodDefault<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
@@ -1447,12 +1444,10 @@ export declare const zeroRealtimeEventIntakeResponseSchema: z.ZodObject<{
1447
1444
  delivered: z.ZodDefault<z.ZodNumber>;
1448
1445
  duplicate: z.ZodDefault<z.ZodBoolean>;
1449
1446
  }, z.core.$strict>;
1450
- export type ZeroRealtimeEventIntakeResponse = z.infer<typeof zeroRealtimeEventIntakeResponseSchema>;
1451
1447
  export declare const zeroRealtimeEventListQuerySchema: z.ZodObject<{
1452
1448
  afterEventId: z.ZodOptional<z.ZodString>;
1453
1449
  limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
1454
1450
  }, z.core.$strict>;
1455
- export type ZeroRealtimeEventListQuery = z.infer<typeof zeroRealtimeEventListQuerySchema>;
1456
1451
  export declare const zeroRealtimeEventListResponseSchema: z.ZodObject<{
1457
1452
  data: z.ZodArray<z.ZodObject<{
1458
1453
  eventId: z.ZodString;
@@ -1,9 +1,37 @@
1
- export declare const ARCHIVE_SECRET_GLOBS: readonly [".env*", ".npmrc", ".netrc", "*/.git/*", "*/.stattic/*", "*/.ssh/*", "*/.aws/*", "*/.kube/*", "*/.docker/*", "credentials.json", "*.pem", "*.key", "*.p12", "*.pfx", "*.crt", "*id_rsa*"];
1
+ export declare const ARCHIVE_SECRET_GLOBS: readonly [".env*", ".npmrc", ".netrc", "*/.git/*", "*/.spacefast/*", "*/.ssh/*", "*/.aws/*", "*/.kube/*", "*/.docker/*", "credentials.json", "*.pem", "*.key", "*.p12", "*.pfx", "*.crt", "*id_rsa*"];
2
2
  /**
3
3
  * The credential rules every surface must repeat. Treat tokens as secrets, keep
4
4
  * them out of logs and transcripts, and never echo them back.
5
5
  */
6
6
  export declare const SECRET_RULES_PROSE: string;
7
+ export declare const POSITIONING_PROSE: string;
8
+ export declare const EXPLAIN_TO_USER_PROSE: string;
9
+ export declare const FAILURE_CONDUCT_PROSE: string;
10
+ export declare const LANE_PICKER_PROSE: string;
11
+ export declare const HOW_TO_RESEARCH_PROSE: string;
12
+ export declare const ENV_NOTES_PROSE: string;
13
+ /**
14
+ * The CHECK verb: before ever creating a space, look for the one the project
15
+ * already has. This is what keeps a returning agent from pushing a duplicate
16
+ * anonymous space instead of a new version.
17
+ */
18
+ export declare const CHECK_BEFORE_PUBLISH_PROSE: string;
19
+ /**
20
+ * The SAVE verb: persist the space id and credential after a first publish so
21
+ * every later publish targets the same space. The CLI and On-Device MCP write
22
+ * this state automatically; curl-only agents write the same files themselves.
23
+ */
24
+ export declare const SAVE_STATE_PROSE: string;
25
+ /**
26
+ * The UPDATE verb: a new version to the SAME space. Never re-run the
27
+ * first-publish recipe when saved state exists.
28
+ */
29
+ export declare const UPDATE_SPACE_PROSE: string;
30
+ /**
31
+ * The CLAIM / CONTINUE verb: show the claim link, and after the user claims,
32
+ * self-correct by exchanging the claim token once for a durable credential.
33
+ */
34
+ export declare const CONTINUE_AFTER_CLAIM_PROSE: string;
7
35
  /**
8
36
  * The zero-install publish sequence: one curl for a file, a secret-preflighted
9
37
  * zip for a folder. This is the load-bearing rung 0 — an agent that stops here
@@ -21,15 +49,27 @@ export declare const RECEIPT_SHAPE_PROSE: string;
21
49
  */
22
50
  export declare const SIGNED_UPLOAD_PROSE: string;
23
51
  /**
24
- * Named fragments for the skill-template generator. The template carries
52
+ * Named fragments for the skill-template generator. The templates carry
25
53
  * `{{prose.secretRules}}`, `{{prose.publishSequence}}`,
26
- * `{{prose.receiptShape}}`, and `{{prose.signedUpload}}` placeholders;
54
+ * `{{prose.receiptShape}}`, `{{prose.signedUpload}}`,
55
+ * `{{prose.checkBeforePublish}}`, `{{prose.saveState}}`,
56
+ * `{{prose.updateSpace}}`, and `{{prose.continueAfterClaim}}` placeholders;
27
57
  * generate-skill.mjs substitutes these.
28
58
  */
29
59
  export declare const AGENT_PROSE: {
60
+ readonly positioning: string;
30
61
  readonly secretRules: string;
62
+ readonly explainToUser: string;
63
+ readonly failureConduct: string;
31
64
  readonly publishSequence: string;
32
65
  readonly receiptShape: string;
33
66
  readonly signedUpload: string;
67
+ readonly checkBeforePublish: string;
68
+ readonly saveState: string;
69
+ readonly updateSpace: string;
70
+ readonly continueAfterClaim: string;
71
+ readonly lanePicker: string;
72
+ readonly howToResearch: string;
73
+ readonly envNotes: string;
34
74
  };
35
75
  export type AgentProseKey = keyof typeof AGENT_PROSE;