@spacefast/common 0.0.11 → 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.
Files changed (160) hide show
  1. package/dist/agents/connect-targets.d.ts +4 -4
  2. package/dist/agents/connect-targets.js +3 -3
  3. package/dist/agents/private-key-oauth.d.ts +37 -0
  4. package/dist/agents/private-key-oauth.js +158 -0
  5. package/dist/config/domains.js +1 -1
  6. package/dist/config/index.d.ts +1 -0
  7. package/dist/config/index.js +1 -0
  8. package/dist/config/postgres-budget.d.ts +126 -0
  9. package/dist/config/postgres-budget.js +135 -0
  10. package/dist/config/postgres-budget.json +50 -0
  11. package/dist/contracts/access.d.ts +386 -1183
  12. package/dist/contracts/access.js +240 -1018
  13. package/dist/contracts/activity.d.ts +1 -1
  14. package/dist/contracts/activity.js +11 -19
  15. package/dist/contracts/api-keys.d.ts +69 -45
  16. package/dist/contracts/api-keys.js +3 -0
  17. package/dist/contracts/archives.d.ts +9 -10
  18. package/dist/contracts/archives.js +4 -6
  19. package/dist/contracts/builds.d.ts +8 -8
  20. package/dist/contracts/builds.js +28 -48
  21. package/dist/contracts/channels.js +1 -2
  22. package/dist/contracts/comments.d.ts +102 -93
  23. package/dist/contracts/comments.js +121 -63
  24. package/dist/contracts/common.d.ts +4 -3
  25. package/dist/contracts/common.js +2 -0
  26. package/dist/contracts/countries.js +2 -7
  27. package/dist/contracts/data-source-routes.d.ts +20 -0
  28. package/dist/contracts/data-source-routes.js +15 -0
  29. package/dist/contracts/deployments.d.ts +3 -3
  30. package/dist/contracts/device-auth.d.ts +21 -15
  31. package/dist/contracts/docs.d.ts +5 -5
  32. package/dist/contracts/domains.d.ts +261 -1330
  33. package/dist/contracts/domains.js +39 -301
  34. package/dist/contracts/email-preferences.d.ts +50 -0
  35. package/dist/contracts/email-preferences.js +44 -0
  36. package/dist/contracts/enums.d.ts +3 -5
  37. package/dist/contracts/enums.js +3 -8
  38. package/dist/contracts/error-code-meta.d.ts +99 -33
  39. package/dist/contracts/error-code-meta.js +36 -9
  40. package/dist/contracts/error-codes.d.ts +1 -1
  41. package/dist/contracts/error-codes.js +28 -11
  42. package/dist/contracts/execution.d.ts +212 -0
  43. package/dist/contracts/execution.js +288 -0
  44. package/dist/contracts/feature-lifecycle.d.ts +498 -2
  45. package/dist/contracts/feature-lifecycle.js +539 -2
  46. package/dist/contracts/features.d.ts +184 -74
  47. package/dist/contracts/features.js +4 -303
  48. package/dist/contracts/functions.d.ts +729 -0
  49. package/dist/contracts/functions.js +485 -0
  50. package/dist/contracts/git.d.ts +1 -1
  51. package/dist/contracts/grants.d.ts +1158 -0
  52. package/dist/contracts/grants.js +696 -0
  53. package/dist/contracts/ids.d.ts +6 -5
  54. package/dist/contracts/ids.js +6 -5
  55. package/dist/contracts/internal.d.ts +3 -3
  56. package/dist/contracts/mcp.d.ts +12 -12
  57. package/dist/contracts/me.js +1 -1
  58. package/dist/contracts/mounts.d.ts +142 -0
  59. package/dist/contracts/mounts.js +56 -0
  60. package/dist/contracts/oauth-resources.d.ts +5 -5
  61. package/dist/contracts/oauth-resources.js +2 -0
  62. package/dist/contracts/operations.d.ts +4 -4
  63. package/dist/contracts/pages.d.ts +6 -14
  64. package/dist/contracts/pages.js +11 -23
  65. package/dist/contracts/plan-policy.d.ts +2 -9
  66. package/dist/contracts/plan-policy.js +1 -4
  67. package/dist/contracts/platform.d.ts +80 -32
  68. package/dist/contracts/platform.js +59 -12
  69. package/dist/contracts/push-new.d.ts +26 -2
  70. package/dist/contracts/push-new.js +8 -0
  71. package/dist/contracts/quotas.d.ts +0 -1
  72. package/dist/contracts/quotas.js +0 -5
  73. package/dist/contracts/repository-connections.d.ts +1 -1
  74. package/dist/contracts/resources.d.ts +21 -85
  75. package/dist/contracts/resources.js +17 -47
  76. package/dist/contracts/runtime-api.d.ts +799 -192
  77. package/dist/contracts/runtime-api.js +231 -100
  78. package/dist/contracts/runtime-app.d.ts +138 -0
  79. package/dist/contracts/runtime-app.js +21 -0
  80. package/dist/contracts/sf-config-v1.d.ts +5 -0
  81. package/dist/contracts/sf-config-v1.js +1 -1
  82. package/dist/contracts/sites.d.ts +17 -12
  83. package/dist/contracts/sites.js +30 -12
  84. package/dist/contracts/space-config.d.ts +46 -117
  85. package/dist/contracts/space-config.js +323 -25
  86. package/dist/contracts/spaces.d.ts +392 -256
  87. package/dist/contracts/spaces.js +163 -83
  88. package/dist/contracts/superadmin-emails.d.ts +27 -3
  89. package/dist/contracts/superadmin-emails.js +10 -15
  90. package/dist/contracts/superadmin-runtime.d.ts +2 -2
  91. package/dist/contracts/superadmin-spaces.d.ts +19 -142
  92. package/dist/contracts/superadmin-spaces.js +7 -0
  93. package/dist/contracts/tags.d.ts +66 -36
  94. package/dist/contracts/tags.js +195 -11
  95. package/dist/contracts/teams.d.ts +9 -9
  96. package/dist/contracts/transfers.d.ts +1 -2
  97. package/dist/contracts/variables.d.ts +4 -4
  98. package/dist/contracts/variables.js +4 -3
  99. package/dist/contracts/webhooks.d.ts +2 -2
  100. package/dist/contracts/zero.d.ts +437 -193
  101. package/dist/contracts/zero.js +149 -158
  102. package/dist/dashboard-paths/index.d.ts +3 -3
  103. package/dist/dashboard-paths/index.js +1 -0
  104. package/dist/docs/agent-prose.js +10 -8
  105. package/dist/docs/agent-setup.d.ts +6 -4
  106. package/dist/docs/agent-setup.js +26 -16
  107. package/dist/docs/agent-solutions.js +1 -1
  108. package/dist/docs/catalog.d.ts +35 -37
  109. package/dist/docs/catalog.js +36 -38
  110. package/dist/docs/error-docs.js +108 -44
  111. package/dist/utils/asset-fingerprint.d.ts +11 -0
  112. package/dist/utils/asset-fingerprint.js +46 -0
  113. package/dist/utils/auth-redirect.d.ts +1 -3
  114. package/dist/utils/auth-redirect.js +1 -21
  115. package/dist/utils/build-settings.d.ts +2 -0
  116. package/dist/utils/build-settings.js +61 -9
  117. package/dist/utils/credential-policy.d.ts +1 -1
  118. package/dist/utils/credential-policy.js +4 -0
  119. package/dist/utils/dns-instructions.d.ts +29 -0
  120. package/dist/utils/dns-instructions.js +78 -0
  121. package/dist/utils/domain-diagnostics.d.ts +29 -0
  122. package/dist/utils/domain-diagnostics.js +63 -0
  123. package/dist/utils/egress-policy.fixtures.json +51 -0
  124. package/dist/utils/grants.d.ts +53 -0
  125. package/dist/utils/grants.js +160 -0
  126. package/dist/utils/id-hints.d.ts +1 -0
  127. package/dist/utils/id-hints.js +55 -13
  128. package/dist/utils/local-space-state.js +1 -0
  129. package/dist/utils/page-colors.d.ts +50 -0
  130. package/dist/utils/page-colors.js +167 -0
  131. package/dist/utils/page-fonts.d.ts +2 -0
  132. package/dist/utils/page-fonts.js +4 -0
  133. package/dist/utils/pages.d.ts +19 -6
  134. package/dist/utils/pages.js +122 -49
  135. package/dist/utils/production-runtime.d.ts +18 -0
  136. package/dist/utils/production-runtime.js +28 -0
  137. package/dist/utils/publish-policy.d.ts +34 -4
  138. package/dist/utils/publish-policy.js +132 -61
  139. package/dist/utils/query-keys.d.ts +7 -13
  140. package/dist/utils/query-keys.js +12 -18
  141. package/dist/utils/source-archive-policy.d.ts +2 -0
  142. package/dist/utils/source-archive-policy.js +2 -0
  143. package/dist/utils/space-config.d.ts +5 -1
  144. package/dist/utils/space-config.js +35 -0
  145. package/dist/utils/static-runtime-policy.d.ts +5 -0
  146. package/dist/utils/static-runtime-policy.fixtures.json +57 -0
  147. package/dist/utils/static-runtime-policy.js +54 -10
  148. package/dist/utils/upload-session.d.ts +3 -0
  149. package/dist/utils/upload-session.js +31 -0
  150. package/package.json +6 -4
  151. package/dist/contracts/annotations.d.ts +0 -327
  152. package/dist/contracts/annotations.js +0 -235
  153. package/dist/contracts/generated-feature-launch-entries.d.ts +0 -2
  154. package/dist/contracts/generated-feature-launch-entries.js +0 -518
  155. package/dist/contracts/publishes.d.ts +0 -135
  156. package/dist/contracts/publishes.js +0 -162
  157. package/dist/utils/access-match.d.ts +0 -39
  158. package/dist/utils/access-match.js +0 -296
  159. package/dist/utils/sf-config-v1.d.ts +0 -2
  160. package/dist/utils/sf-config-v1.js +0 -542
@@ -147,7 +147,6 @@ export declare const SuperadminSpaceDetailSchema: z.ZodObject<{
147
147
  abuse_takedown: "abuse_takedown";
148
148
  tenant_suspended: "tenant_suspended";
149
149
  site_suspended: "site_suspended";
150
- visit_cap_exceeded: "visit_cap_exceeded";
151
150
  }>;
152
151
  }, z.core.$strip>>;
153
152
  claimState: z.ZodNullable<z.ZodObject<{
@@ -187,11 +186,7 @@ export declare const SuperadminSpaceDetailSchema: z.ZodObject<{
187
186
  }>;
188
187
  moving: z.ZodBoolean;
189
188
  channels: z.ZodRecord<z.ZodString, z.ZodObject<{
190
- versionId: z.ZodOptional<z.ZodString>;
191
- weighted: z.ZodOptional<z.ZodArray<z.ZodObject<{
192
- versionId: z.ZodString;
193
- percentage: z.ZodNumber;
194
- }, z.core.$strip>>>;
189
+ versionId: z.ZodString;
195
190
  updatedAt: z.ZodString;
196
191
  }, z.core.$strip>>;
197
192
  config: z.ZodNullable<z.ZodObject<{
@@ -258,7 +253,6 @@ export declare const SuperadminSpaceDetailSchema: z.ZodObject<{
258
253
  timeoutSeconds: z.ZodOptional<z.ZodNumber>;
259
254
  }, z.core.$strict>>;
260
255
  placement: z.ZodOptional<z.ZodObject<{
261
- region: z.ZodOptional<z.ZodString>;
262
256
  mode: z.ZodOptional<z.ZodEnum<{
263
257
  shared: "shared";
264
258
  dedicated: "dedicated";
@@ -273,72 +267,14 @@ export declare const SuperadminSpaceDetailSchema: z.ZodObject<{
273
267
  bodyEnd: z.ZodOptional<z.ZodArray<z.ZodString>>;
274
268
  noscript: z.ZodOptional<z.ZodArray<z.ZodString>>;
275
269
  }, z.core.$strip>>;
270
+ dataSources: z.ZodOptional<z.ZodPreprocess<z.ZodRecord<z.ZodString, z.ZodObject<{
271
+ kind: z.ZodLiteral<"wordpress">;
272
+ url: z.ZodString;
273
+ }, z.core.$strict>>>>;
274
+ defaultDataSource: z.ZodOptional<z.ZodString>;
276
275
  }, z.core.$strip>>;
277
276
  settingsDigest: z.ZodString;
278
277
  noindex: z.ZodBoolean;
279
- policy: z.ZodNullable<z.ZodObject<{
280
- rules: z.ZodDefault<z.ZodArray<z.ZodObject<{
281
- id: z.ZodOptional<z.ZodString>;
282
- match: z.ZodDefault<z.ZodObject<{
283
- host: z.ZodOptional<z.ZodString>;
284
- hostPattern: z.ZodOptional<z.ZodString>;
285
- hostTemplate: z.ZodOptional<z.ZodString>;
286
- pathPattern: z.ZodOptional<z.ZodString>;
287
- channel: z.ZodOptional<z.ZodString>;
288
- ipCidrs: z.ZodOptional<z.ZodArray<z.ZodString>>;
289
- agent: z.ZodOptional<z.ZodString>;
290
- country: z.ZodOptional<z.ZodString>;
291
- header: z.ZodOptional<z.ZodObject<{
292
- name: z.ZodString;
293
- value: z.ZodString;
294
- }, z.core.$strip>>;
295
- }, z.core.$strip>>;
296
- effect: z.ZodEnum<{
297
- allow: "allow";
298
- deny: "deny";
299
- challenge: "challenge";
300
- }>;
301
- auth: z.ZodOptional<z.ZodObject<{
302
- requiredGrants: z.ZodArray<z.ZodString>;
303
- issuers: z.ZodOptional<z.ZodArray<z.ZodObject<{
304
- kid: z.ZodString;
305
- alg: z.ZodLiteral<"EdDSA">;
306
- publicKey: z.ZodString;
307
- grantNamespaces: z.ZodArray<z.ZodString>;
308
- }, z.core.$strip>>>;
309
- acquire: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
310
- type: z.ZodLiteral<"password">;
311
- ref: z.ZodString;
312
- transport: z.ZodEnum<{
313
- basic: "basic";
314
- form: "form";
315
- }>;
316
- username: z.ZodOptional<z.ZodString>;
317
- }, z.core.$strip>, z.ZodObject<{
318
- type: z.ZodLiteral<"login">;
319
- url: z.ZodString;
320
- label: z.ZodOptional<z.ZodString>;
321
- }, z.core.$strip>], "type">>>;
322
- }, z.core.$strip>>;
323
- managedBy: z.ZodOptional<z.ZodEnum<{
324
- sharing: "sharing";
325
- firewall: "firewall";
326
- file_share: "file_share";
327
- cast_reviewer: "cast_reviewer";
328
- team_default: "team_default";
329
- }>>;
330
- expiresAt: z.ZodOptional<z.ZodNumber>;
331
- reasonCode: z.ZodOptional<z.ZodString>;
332
- message: z.ZodOptional<z.ZodString>;
333
- }, z.core.$strip>>>;
334
- issuers: z.ZodOptional<z.ZodArray<z.ZodObject<{
335
- kid: z.ZodString;
336
- alg: z.ZodLiteral<"EdDSA">;
337
- publicKey: z.ZodString;
338
- grantNamespaces: z.ZodArray<z.ZodString>;
339
- }, z.core.$strip>>>;
340
- sessionVersion: z.ZodOptional<z.ZodNumber>;
341
- }, z.core.$strip>>;
342
278
  operation: z.ZodNullable<z.ZodObject<{
343
279
  id: z.ZodString;
344
280
  kind: z.ZodString;
@@ -362,8 +298,8 @@ export declare const SuperadminSpaceDetailSchema: z.ZodObject<{
362
298
  code: z.ZodString;
363
299
  severity: z.ZodEnum<{
364
300
  info: "info";
365
- warning: "warning";
366
301
  error: "error";
302
+ warning: "warning";
367
303
  }>;
368
304
  message: z.ZodString;
369
305
  path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -383,6 +319,11 @@ export declare const SuperadminSpaceDetailSchema: z.ZodObject<{
383
319
  createdAt: z.ZodString;
384
320
  updatedAt: z.ZodString;
385
321
  }, z.core.$strip>;
322
+ access: z.ZodObject<{
323
+ generation: z.ZodNumber;
324
+ activeGrantCount: z.ZodNumber;
325
+ public: z.ZodBoolean;
326
+ }, z.core.$strict>;
386
327
  hostnames: z.ZodArray<z.ZodObject<{
387
328
  hostname: z.ZodString;
388
329
  url: z.ZodString;
@@ -532,7 +473,6 @@ export declare const SuperadminAnonymousSpaceAssignResponseSchema: z.ZodObject<{
532
473
  abuse_takedown: "abuse_takedown";
533
474
  tenant_suspended: "tenant_suspended";
534
475
  site_suspended: "site_suspended";
535
- visit_cap_exceeded: "visit_cap_exceeded";
536
476
  }>;
537
477
  }, z.core.$strip>>;
538
478
  claimState: z.ZodNullable<z.ZodObject<{
@@ -572,11 +512,7 @@ export declare const SuperadminAnonymousSpaceAssignResponseSchema: z.ZodObject<{
572
512
  }>;
573
513
  moving: z.ZodBoolean;
574
514
  channels: z.ZodRecord<z.ZodString, z.ZodObject<{
575
- versionId: z.ZodOptional<z.ZodString>;
576
- weighted: z.ZodOptional<z.ZodArray<z.ZodObject<{
577
- versionId: z.ZodString;
578
- percentage: z.ZodNumber;
579
- }, z.core.$strip>>>;
515
+ versionId: z.ZodString;
580
516
  updatedAt: z.ZodString;
581
517
  }, z.core.$strip>>;
582
518
  config: z.ZodNullable<z.ZodObject<{
@@ -643,7 +579,6 @@ export declare const SuperadminAnonymousSpaceAssignResponseSchema: z.ZodObject<{
643
579
  timeoutSeconds: z.ZodOptional<z.ZodNumber>;
644
580
  }, z.core.$strict>>;
645
581
  placement: z.ZodOptional<z.ZodObject<{
646
- region: z.ZodOptional<z.ZodString>;
647
582
  mode: z.ZodOptional<z.ZodEnum<{
648
583
  shared: "shared";
649
584
  dedicated: "dedicated";
@@ -658,72 +593,14 @@ export declare const SuperadminAnonymousSpaceAssignResponseSchema: z.ZodObject<{
658
593
  bodyEnd: z.ZodOptional<z.ZodArray<z.ZodString>>;
659
594
  noscript: z.ZodOptional<z.ZodArray<z.ZodString>>;
660
595
  }, z.core.$strip>>;
596
+ dataSources: z.ZodOptional<z.ZodPreprocess<z.ZodRecord<z.ZodString, z.ZodObject<{
597
+ kind: z.ZodLiteral<"wordpress">;
598
+ url: z.ZodString;
599
+ }, z.core.$strict>>>>;
600
+ defaultDataSource: z.ZodOptional<z.ZodString>;
661
601
  }, z.core.$strip>>;
662
602
  settingsDigest: z.ZodString;
663
603
  noindex: z.ZodBoolean;
664
- policy: z.ZodNullable<z.ZodObject<{
665
- rules: z.ZodDefault<z.ZodArray<z.ZodObject<{
666
- id: z.ZodOptional<z.ZodString>;
667
- match: z.ZodDefault<z.ZodObject<{
668
- host: z.ZodOptional<z.ZodString>;
669
- hostPattern: z.ZodOptional<z.ZodString>;
670
- hostTemplate: z.ZodOptional<z.ZodString>;
671
- pathPattern: z.ZodOptional<z.ZodString>;
672
- channel: z.ZodOptional<z.ZodString>;
673
- ipCidrs: z.ZodOptional<z.ZodArray<z.ZodString>>;
674
- agent: z.ZodOptional<z.ZodString>;
675
- country: z.ZodOptional<z.ZodString>;
676
- header: z.ZodOptional<z.ZodObject<{
677
- name: z.ZodString;
678
- value: z.ZodString;
679
- }, z.core.$strip>>;
680
- }, z.core.$strip>>;
681
- effect: z.ZodEnum<{
682
- allow: "allow";
683
- deny: "deny";
684
- challenge: "challenge";
685
- }>;
686
- auth: z.ZodOptional<z.ZodObject<{
687
- requiredGrants: z.ZodArray<z.ZodString>;
688
- issuers: z.ZodOptional<z.ZodArray<z.ZodObject<{
689
- kid: z.ZodString;
690
- alg: z.ZodLiteral<"EdDSA">;
691
- publicKey: z.ZodString;
692
- grantNamespaces: z.ZodArray<z.ZodString>;
693
- }, z.core.$strip>>>;
694
- acquire: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
695
- type: z.ZodLiteral<"password">;
696
- ref: z.ZodString;
697
- transport: z.ZodEnum<{
698
- basic: "basic";
699
- form: "form";
700
- }>;
701
- username: z.ZodOptional<z.ZodString>;
702
- }, z.core.$strip>, z.ZodObject<{
703
- type: z.ZodLiteral<"login">;
704
- url: z.ZodString;
705
- label: z.ZodOptional<z.ZodString>;
706
- }, z.core.$strip>], "type">>>;
707
- }, z.core.$strip>>;
708
- managedBy: z.ZodOptional<z.ZodEnum<{
709
- sharing: "sharing";
710
- firewall: "firewall";
711
- file_share: "file_share";
712
- cast_reviewer: "cast_reviewer";
713
- team_default: "team_default";
714
- }>>;
715
- expiresAt: z.ZodOptional<z.ZodNumber>;
716
- reasonCode: z.ZodOptional<z.ZodString>;
717
- message: z.ZodOptional<z.ZodString>;
718
- }, z.core.$strip>>>;
719
- issuers: z.ZodOptional<z.ZodArray<z.ZodObject<{
720
- kid: z.ZodString;
721
- alg: z.ZodLiteral<"EdDSA">;
722
- publicKey: z.ZodString;
723
- grantNamespaces: z.ZodArray<z.ZodString>;
724
- }, z.core.$strip>>>;
725
- sessionVersion: z.ZodOptional<z.ZodNumber>;
726
- }, z.core.$strip>>;
727
604
  operation: z.ZodNullable<z.ZodObject<{
728
605
  id: z.ZodString;
729
606
  kind: z.ZodString;
@@ -747,8 +624,8 @@ export declare const SuperadminAnonymousSpaceAssignResponseSchema: z.ZodObject<{
747
624
  code: z.ZodString;
748
625
  severity: z.ZodEnum<{
749
626
  info: "info";
750
- warning: "warning";
751
627
  error: "error";
628
+ warning: "warning";
752
629
  }>;
753
630
  message: z.ZodString;
754
631
  path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -77,6 +77,13 @@ export const SuperadminSpaceVersionSchema = z.object({
77
77
  });
78
78
  export const SuperadminSpaceDetailSchema = z.object({
79
79
  space: SpaceSchema,
80
+ access: z
81
+ .object({
82
+ generation: z.number().int().nonnegative(),
83
+ activeGrantCount: z.number().int().nonnegative(),
84
+ public: z.boolean(),
85
+ })
86
+ .strict(),
80
87
  hostnames: z.array(SuperadminSpaceHostnameSchema),
81
88
  versions: z.array(SuperadminSpaceVersionSchema),
82
89
  });
@@ -1,15 +1,15 @@
1
1
  import { z } from "zod";
2
2
  export declare const tagVersionStatusSchema: z.ZodEnum<{
3
3
  approved: "approved";
4
+ published: "published";
4
5
  publishing: "publishing";
5
6
  draft: "draft";
6
7
  in_review: "in_review";
7
- published: "published";
8
8
  abandoned: "abandoned";
9
9
  }>;
10
10
  export declare const tagEnvironmentSchema: z.ZodEnum<{
11
- production: "production";
12
11
  preview: "preview";
12
+ production: "production";
13
13
  development: "development";
14
14
  }>;
15
15
  export declare const tagConsentCategorySchema: z.ZodEnum<{
@@ -81,8 +81,8 @@ export declare const tagConsentPolicySchema: z.ZodObject<{
81
81
  code: z.ZodString;
82
82
  severity: z.ZodEnum<{
83
83
  info: "info";
84
- warning: "warning";
85
84
  error: "error";
85
+ warning: "warning";
86
86
  }>;
87
87
  message: z.ZodString;
88
88
  path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -100,6 +100,16 @@ export declare const tagConsentPolicySchema: z.ZodObject<{
100
100
  export type TagConsentPolicy = z.infer<typeof tagConsentPolicySchema>;
101
101
  export declare function isKnownTagConsentCategory(value: string): value is TagConsentCategory;
102
102
  export declare function mergeTagConsentPolicyInputs(...policies: unknown[]): Record<string, unknown> | undefined;
103
+ export declare const TAG_GRAPH_MAX_ENCODED_BYTES: number;
104
+ export declare const TAG_GRAPH_MAX_REQUEST_BODY_BYTES: number;
105
+ export declare const TAG_GRAPH_MAX_TAGS = 256;
106
+ export declare const TAG_GRAPH_MAX_TRIGGERS = 256;
107
+ export declare const TAG_GRAPH_MAX_VARIABLES = 256;
108
+ export declare const TAG_GRAPH_MAX_SYSTEM_MODULES = 64;
109
+ export declare const TAG_GRAPH_MAX_ARRAY_ITEMS = 256;
110
+ export declare const TAG_GRAPH_MAX_OBJECT_KEYS = 64;
111
+ export declare const TAG_GRAPH_MAX_STRING_BYTES: number;
112
+ export declare const TAG_GRAPH_MAX_DEPTH = 16;
103
113
  export declare const tagGraphSchema: z.ZodObject<{
104
114
  format: z.ZodDefault<z.ZodLiteral<"spacefast.tag_graph.v1">>;
105
115
  tags: z.ZodDefault<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
@@ -108,6 +118,22 @@ export declare const tagGraphSchema: z.ZodObject<{
108
118
  systemModules: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
109
119
  consentPolicy: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
110
120
  }, z.core.$loose>;
121
+ export declare const tagGraphCloneSchema: z.ZodObject<{
122
+ format: z.ZodDefault<z.ZodLiteral<"spacefast.tag_graph.v1">>;
123
+ tags: z.ZodDefault<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
124
+ triggers: z.ZodDefault<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
125
+ variables: z.ZodDefault<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
126
+ systemModules: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
127
+ consentPolicy: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
128
+ }, z.core.$loose>;
129
+ export declare const tagGraphWriteSchema: z.ZodObject<{
130
+ format: z.ZodDefault<z.ZodLiteral<"spacefast.tag_graph.v1">>;
131
+ tags: z.ZodDefault<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
132
+ triggers: z.ZodDefault<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
133
+ variables: z.ZodDefault<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
134
+ systemModules: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
135
+ consentPolicy: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
136
+ }, z.core.$strict>;
111
137
  export type TagGraph = z.infer<typeof tagGraphSchema>;
112
138
  export declare const emptyTagGraph: TagGraph;
113
139
  export declare const tagValidationResultSchema: z.ZodObject<{
@@ -116,8 +142,8 @@ export declare const tagValidationResultSchema: z.ZodObject<{
116
142
  code: z.ZodString;
117
143
  severity: z.ZodEnum<{
118
144
  info: "info";
119
- warning: "warning";
120
145
  error: "error";
146
+ warning: "warning";
121
147
  }>;
122
148
  message: z.ZodString;
123
149
  path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -142,10 +168,10 @@ export declare const tagVersionSchema: z.ZodObject<{
142
168
  baseVersionId: z.ZodNullable<z.ZodString>;
143
169
  status: z.ZodEnum<{
144
170
  approved: "approved";
171
+ published: "published";
145
172
  publishing: "publishing";
146
173
  draft: "draft";
147
174
  in_review: "in_review";
148
- published: "published";
149
175
  abandoned: "abandoned";
150
176
  }>;
151
177
  title: z.ZodString;
@@ -165,8 +191,8 @@ export declare const tagVersionSchema: z.ZodObject<{
165
191
  code: z.ZodString;
166
192
  severity: z.ZodEnum<{
167
193
  info: "info";
168
- warning: "warning";
169
194
  error: "error";
195
+ warning: "warning";
170
196
  }>;
171
197
  message: z.ZodString;
172
198
  path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -197,10 +223,10 @@ export declare const tagVersionListQuerySchema: z.ZodObject<{
197
223
  cursor: z.ZodOptional<z.ZodString>;
198
224
  status: z.ZodOptional<z.ZodEnum<{
199
225
  approved: "approved";
226
+ published: "published";
200
227
  publishing: "publishing";
201
228
  draft: "draft";
202
229
  in_review: "in_review";
203
- published: "published";
204
230
  abandoned: "abandoned";
205
231
  }>>;
206
232
  }, z.core.$strip>;
@@ -212,10 +238,10 @@ export declare const tagVersionListResponseSchema: z.ZodObject<{
212
238
  baseVersionId: z.ZodNullable<z.ZodString>;
213
239
  status: z.ZodEnum<{
214
240
  approved: "approved";
241
+ published: "published";
215
242
  publishing: "publishing";
216
243
  draft: "draft";
217
244
  in_review: "in_review";
218
- published: "published";
219
245
  abandoned: "abandoned";
220
246
  }>;
221
247
  title: z.ZodString;
@@ -235,8 +261,8 @@ export declare const tagVersionListResponseSchema: z.ZodObject<{
235
261
  code: z.ZodString;
236
262
  severity: z.ZodEnum<{
237
263
  info: "info";
238
- warning: "warning";
239
264
  error: "error";
265
+ warning: "warning";
240
266
  }>;
241
267
  message: z.ZodString;
242
268
  path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -275,10 +301,10 @@ export declare const tagVersionResponseSchema: z.ZodObject<{
275
301
  baseVersionId: z.ZodNullable<z.ZodString>;
276
302
  status: z.ZodEnum<{
277
303
  approved: "approved";
304
+ published: "published";
278
305
  publishing: "publishing";
279
306
  draft: "draft";
280
307
  in_review: "in_review";
281
- published: "published";
282
308
  abandoned: "abandoned";
283
309
  }>;
284
310
  title: z.ZodString;
@@ -298,8 +324,8 @@ export declare const tagVersionResponseSchema: z.ZodObject<{
298
324
  code: z.ZodString;
299
325
  severity: z.ZodEnum<{
300
326
  info: "info";
301
- warning: "warning";
302
327
  error: "error";
328
+ warning: "warning";
303
329
  }>;
304
330
  message: z.ZodString;
305
331
  path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -337,7 +363,7 @@ export declare const tagVersionCreateSchema: z.ZodObject<{
337
363
  variables: z.ZodDefault<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
338
364
  systemModules: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
339
365
  consentPolicy: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
340
- }, z.core.$loose>>;
366
+ }, z.core.$strict>>;
341
367
  }, z.core.$strip>;
342
368
  export declare const tagVersionPatchSchema: z.ZodObject<{
343
369
  title: z.ZodOptional<z.ZodString>;
@@ -365,7 +391,7 @@ export declare const tagGraphPutSchema: z.ZodObject<{
365
391
  variables: z.ZodDefault<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
366
392
  systemModules: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
367
393
  consentPolicy: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
368
- }, z.core.$loose>;
394
+ }, z.core.$strict>;
369
395
  }, z.core.$strip>;
370
396
  export declare const tagGraphPatchSchema: z.ZodObject<{
371
397
  baseGraphRevision: z.ZodNumber;
@@ -383,7 +409,7 @@ export declare const tagGraphPatchSchema: z.ZodObject<{
383
409
  variables: z.ZodDefault<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
384
410
  systemModules: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
385
411
  consentPolicy: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
386
- }, z.core.$loose>;
412
+ }, z.core.$strict>;
387
413
  }, z.core.$strip>>;
388
414
  }, z.core.$strip>;
389
415
  export declare const tagValidateResponseSchema: z.ZodObject<{
@@ -393,8 +419,8 @@ export declare const tagValidateResponseSchema: z.ZodObject<{
393
419
  code: z.ZodString;
394
420
  severity: z.ZodEnum<{
395
421
  info: "info";
396
- warning: "warning";
397
422
  error: "error";
423
+ warning: "warning";
398
424
  }>;
399
425
  message: z.ZodString;
400
426
  path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -434,8 +460,8 @@ export declare const tagReleaseSchema: z.ZodObject<{
434
460
  id: z.ZodString;
435
461
  tagSetId: z.ZodString;
436
462
  environment: z.ZodEnum<{
437
- production: "production";
438
463
  preview: "preview";
464
+ production: "production";
439
465
  development: "development";
440
466
  }>;
441
467
  versionId: z.ZodString;
@@ -450,8 +476,8 @@ export declare const tagReleaseListResponseSchema: z.ZodObject<{
450
476
  id: z.ZodString;
451
477
  tagSetId: z.ZodString;
452
478
  environment: z.ZodEnum<{
453
- production: "production";
454
479
  preview: "preview";
480
+ production: "production";
455
481
  development: "development";
456
482
  }>;
457
483
  versionId: z.ZodString;
@@ -467,8 +493,8 @@ export declare const tagReleaseResponseSchema: z.ZodObject<{
467
493
  id: z.ZodString;
468
494
  tagSetId: z.ZodString;
469
495
  environment: z.ZodEnum<{
470
- production: "production";
471
496
  preview: "preview";
497
+ production: "production";
472
498
  development: "development";
473
499
  }>;
474
500
  versionId: z.ZodString;
@@ -526,8 +552,8 @@ export declare const tagActivityEventSchema: z.ZodObject<{
526
552
  type: z.ZodString;
527
553
  versionId: z.ZodNullable<z.ZodString>;
528
554
  environment: z.ZodNullable<z.ZodEnum<{
529
- production: "production";
530
555
  preview: "preview";
556
+ production: "production";
531
557
  development: "development";
532
558
  }>>;
533
559
  message: z.ZodString;
@@ -540,8 +566,8 @@ export declare const tagActivityResponseSchema: z.ZodObject<{
540
566
  type: z.ZodString;
541
567
  versionId: z.ZodNullable<z.ZodString>;
542
568
  environment: z.ZodNullable<z.ZodEnum<{
543
- production: "production";
544
569
  preview: "preview";
570
+ production: "production";
545
571
  development: "development";
546
572
  }>>;
547
573
  message: z.ZodString;
@@ -553,8 +579,8 @@ export declare const tagEffectiveTagResponseSchema: z.ZodObject<{
553
579
  data: z.ZodObject<{
554
580
  tag: z.ZodRecord<z.ZodString, z.ZodUnknown>;
555
581
  environment: z.ZodEnum<{
556
- production: "production";
557
582
  preview: "preview";
583
+ production: "production";
558
584
  development: "development";
559
585
  }>;
560
586
  source: z.ZodEnum<{
@@ -576,8 +602,8 @@ export declare const tagApplySchema: z.ZodObject<{
576
602
  description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
577
603
  submit: z.ZodDefault<z.ZodBoolean>;
578
604
  releaseEnvironment: z.ZodOptional<z.ZodEnum<{
579
- production: "production";
580
605
  preview: "preview";
606
+ production: "production";
581
607
  development: "development";
582
608
  }>>;
583
609
  expectedCurrentVersionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -591,10 +617,10 @@ export declare const tagApplyResponseSchema: z.ZodObject<{
591
617
  baseVersionId: z.ZodNullable<z.ZodString>;
592
618
  status: z.ZodEnum<{
593
619
  approved: "approved";
620
+ published: "published";
594
621
  publishing: "publishing";
595
622
  draft: "draft";
596
623
  in_review: "in_review";
597
- published: "published";
598
624
  abandoned: "abandoned";
599
625
  }>;
600
626
  title: z.ZodString;
@@ -614,8 +640,8 @@ export declare const tagApplyResponseSchema: z.ZodObject<{
614
640
  code: z.ZodString;
615
641
  severity: z.ZodEnum<{
616
642
  info: "info";
617
- warning: "warning";
618
643
  error: "error";
644
+ warning: "warning";
619
645
  }>;
620
646
  message: z.ZodString;
621
647
  path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -647,8 +673,8 @@ export declare const tagApplyResponseSchema: z.ZodObject<{
647
673
  code: z.ZodString;
648
674
  severity: z.ZodEnum<{
649
675
  info: "info";
650
- warning: "warning";
651
676
  error: "error";
677
+ warning: "warning";
652
678
  }>;
653
679
  message: z.ZodString;
654
680
  path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -669,8 +695,8 @@ export declare const tagApplyResponseSchema: z.ZodObject<{
669
695
  id: z.ZodString;
670
696
  tagSetId: z.ZodString;
671
697
  environment: z.ZodEnum<{
672
- production: "production";
673
698
  preview: "preview";
699
+ production: "production";
674
700
  development: "development";
675
701
  }>;
676
702
  versionId: z.ZodString;
@@ -696,8 +722,8 @@ export declare const tagPreviewSessionSchema: z.ZodObject<{
696
722
  id: z.ZodString;
697
723
  versionId: z.ZodString;
698
724
  environment: z.ZodEnum<{
699
- production: "production";
700
725
  preview: "preview";
726
+ production: "production";
701
727
  development: "development";
702
728
  }>;
703
729
  previewUrl: z.ZodString;
@@ -715,8 +741,8 @@ export declare const tagPreviewSessionResponseSchema: z.ZodObject<{
715
741
  id: z.ZodString;
716
742
  versionId: z.ZodString;
717
743
  environment: z.ZodEnum<{
718
- production: "production";
719
744
  preview: "preview";
745
+ production: "production";
720
746
  development: "development";
721
747
  }>;
722
748
  previewUrl: z.ZodString;
@@ -734,8 +760,8 @@ export declare const tagPreviewSessionCreateSchema: z.ZodObject<{
734
760
  url: z.ZodOptional<z.ZodString>;
735
761
  ttlSeconds: z.ZodDefault<z.ZodNumber>;
736
762
  environment: z.ZodDefault<z.ZodEnum<{
737
- production: "production";
738
763
  preview: "preview";
764
+ production: "production";
739
765
  development: "development";
740
766
  }>>;
741
767
  }, z.core.$strip>;
@@ -743,8 +769,8 @@ export declare const tagDebugSessionCreateSchema: z.ZodObject<{
743
769
  url: z.ZodOptional<z.ZodString>;
744
770
  ttlSeconds: z.ZodDefault<z.ZodNumber>;
745
771
  environment: z.ZodDefault<z.ZodEnum<{
746
- production: "production";
747
772
  preview: "preview";
773
+ production: "production";
748
774
  development: "development";
749
775
  }>>;
750
776
  }, z.core.$strip>;
@@ -755,6 +781,10 @@ export declare const tagTriggerPresetSchema: z.ZodEnum<{
755
781
  file_download: "file_download";
756
782
  scroll_depth: "scroll_depth";
757
783
  }>;
784
+ export declare const TAG_TEMPLATE_MAX_SELECTIONS = 256;
785
+ export declare const TAG_TEMPLATE_MAX_TRIGGERS: 5;
786
+ export declare const TAG_TEMPLATE_MAX_CONSENT_CATEGORIES: number;
787
+ export declare const TAG_TEMPLATE_MAX_ENVIRONMENTS: number;
758
788
  export type TagTriggerPreset = z.infer<typeof tagTriggerPresetSchema>;
759
789
  export declare const TAG_TRIGGER_PRESETS: Array<{
760
790
  id: TagTriggerPreset;
@@ -875,8 +905,8 @@ export declare const tagTemplateSelectionSchema: z.ZodObject<{
875
905
  personalization: "personalization";
876
906
  }>>>;
877
907
  environments: z.ZodOptional<z.ZodArray<z.ZodEnum<{
878
- production: "production";
879
908
  preview: "preview";
909
+ production: "production";
880
910
  development: "development";
881
911
  }>>>;
882
912
  schedule: z.ZodOptional<z.ZodObject<{
@@ -964,8 +994,8 @@ export declare const tagTemplateListResponseSchema: z.ZodObject<{
964
994
  export declare const tagConsentPolicyResponseSchema: z.ZodObject<{
965
995
  data: z.ZodObject<{
966
996
  environment: z.ZodEnum<{
967
- production: "production";
968
997
  preview: "preview";
998
+ production: "production";
969
999
  development: "development";
970
1000
  }>;
971
1001
  versionId: z.ZodNullable<z.ZodString>;
@@ -992,8 +1022,8 @@ export declare const tagConsentPolicyResponseSchema: z.ZodObject<{
992
1022
  code: z.ZodString;
993
1023
  severity: z.ZodEnum<{
994
1024
  info: "info";
995
- warning: "warning";
996
1025
  error: "error";
1026
+ warning: "warning";
997
1027
  }>;
998
1028
  message: z.ZodString;
999
1029
  path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -1047,8 +1077,8 @@ export declare const tagTemplateGraphSchema: z.ZodObject<{
1047
1077
  personalization: "personalization";
1048
1078
  }>>>;
1049
1079
  environments: z.ZodOptional<z.ZodArray<z.ZodEnum<{
1050
- production: "production";
1051
1080
  preview: "preview";
1081
+ production: "production";
1052
1082
  development: "development";
1053
1083
  }>>>;
1054
1084
  schedule: z.ZodOptional<z.ZodObject<{
@@ -1070,7 +1100,7 @@ export declare const tagTemplateGraphSchema: z.ZodObject<{
1070
1100
  variables: z.ZodDefault<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
1071
1101
  systemModules: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1072
1102
  consentPolicy: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1073
- }, z.core.$loose>>;
1103
+ }, z.core.$strict>>;
1074
1104
  }, z.core.$strip>;
1075
1105
  export declare const TAG_TEMPLATE_DEFINITIONS: TagTemplateDefinition[];
1076
1106
  export declare function listTagTemplates(): {
@@ -1114,8 +1144,8 @@ export declare const tagEffectiveResponseSchema: z.ZodObject<{
1114
1144
  data: z.ZodObject<{
1115
1145
  tagSetId: z.ZodNullable<z.ZodString>;
1116
1146
  environment: z.ZodEnum<{
1117
- production: "production";
1118
1147
  preview: "preview";
1148
+ production: "production";
1119
1149
  development: "development";
1120
1150
  }>;
1121
1151
  versionId: z.ZodNullable<z.ZodString>;