@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
@@ -181,8 +181,8 @@ export declare const BuildSchema: z.ZodObject<{
181
181
  code: z.ZodString;
182
182
  severity: z.ZodEnum<{
183
183
  info: "info";
184
- warning: "warning";
185
184
  error: "error";
185
+ warning: "warning";
186
186
  }>;
187
187
  message: z.ZodString;
188
188
  path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -232,8 +232,8 @@ export declare const buildCreateRequestSchema: z.ZodObject<{
232
232
  code: z.ZodString;
233
233
  severity: z.ZodEnum<{
234
234
  info: "info";
235
- warning: "warning";
236
235
  error: "error";
236
+ warning: "warning";
237
237
  }>;
238
238
  message: z.ZodString;
239
239
  path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -264,8 +264,8 @@ export declare const buildSourceArchiveUploadSchema: z.ZodObject<{
264
264
  targets: z.ZodDefault<z.ZodArray<z.ZodObject<{
265
265
  path: z.ZodString;
266
266
  method: z.ZodEnum<{
267
- PUT: "PUT";
268
267
  POST: "POST";
268
+ PUT: "PUT";
269
269
  }>;
270
270
  url: z.ZodUnion<[z.ZodString, z.ZodString]>;
271
271
  headers: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
@@ -295,8 +295,8 @@ export declare const buildSourceArchiveUploadSchema: z.ZodObject<{
295
295
  code: z.ZodString;
296
296
  severity: z.ZodEnum<{
297
297
  info: "info";
298
- warning: "warning";
299
298
  error: "error";
299
+ warning: "warning";
300
300
  }>;
301
301
  message: z.ZodString;
302
302
  path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -359,8 +359,8 @@ export declare const buildCreateResponseSchema: z.ZodObject<{
359
359
  code: z.ZodString;
360
360
  severity: z.ZodEnum<{
361
361
  info: "info";
362
- warning: "warning";
363
362
  error: "error";
363
+ warning: "warning";
364
364
  }>;
365
365
  message: z.ZodString;
366
366
  path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -393,8 +393,8 @@ export declare const buildCreateResponseSchema: z.ZodObject<{
393
393
  targets: z.ZodDefault<z.ZodArray<z.ZodObject<{
394
394
  path: z.ZodString;
395
395
  method: z.ZodEnum<{
396
- PUT: "PUT";
397
396
  POST: "POST";
397
+ PUT: "PUT";
398
398
  }>;
399
399
  url: z.ZodUnion<[z.ZodString, z.ZodString]>;
400
400
  headers: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
@@ -424,8 +424,8 @@ export declare const buildCreateResponseSchema: z.ZodObject<{
424
424
  code: z.ZodString;
425
425
  severity: z.ZodEnum<{
426
426
  info: "info";
427
- warning: "warning";
428
427
  error: "error";
428
+ warning: "warning";
429
429
  }>;
430
430
  message: z.ZodString;
431
431
  path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -493,8 +493,8 @@ export declare const buildListResponseSchema: z.ZodObject<{
493
493
  code: z.ZodString;
494
494
  severity: z.ZodEnum<{
495
495
  info: "info";
496
- warning: "warning";
497
496
  error: "error";
497
+ warning: "warning";
498
498
  }>;
499
499
  message: z.ZodString;
500
500
  path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -40,6 +40,32 @@ export const BuildTargetSchema = z
40
40
  preview: z.boolean().default(false).describe("Whether the build targets preview behavior."),
41
41
  })
42
42
  .describe("Where a successful build should publish or preview.");
43
+ // Shared by InternalBuildSourceSchema and InternalBuildInputSchema: both carry
44
+ // this exact archive-source member in their `kind` discriminated union.
45
+ const internalArchiveBuildSourceSchema = z.object({
46
+ kind: z.literal("archive").describe("Build from an uploaded source archive."),
47
+ uploadId: z.string().optional().describe("Upload session (`upl_`) carrying the archive."),
48
+ sourceMetadata: z
49
+ .record(z.string(), z.unknown())
50
+ .optional()
51
+ .describe("Internal source provenance copied to the produced Version."),
52
+ objectKey: z.string().optional().describe("Internal staged archive object key."),
53
+ uploadedAt: z.string().datetime().optional().describe("When the archive finished staging."),
54
+ recoveredAt: z
55
+ .string()
56
+ .datetime()
57
+ .optional()
58
+ .describe("When an interrupted archive upload was recovered."),
59
+ sha256: z.string().optional().describe("SHA-256 checksum of the staged source archive."),
60
+ compressedBytes: z.number().int().nonnegative().optional(),
61
+ expandedBytes: z.number().int().nonnegative().optional(),
62
+ fileCount: z.number().int().nonnegative().optional(),
63
+ expiresAt: z
64
+ .string()
65
+ .datetime()
66
+ .optional()
67
+ .describe("Server-enforced upload expiry while the archive is waiting for upload."),
68
+ });
43
69
  const InternalBuildSourceSchema = z
44
70
  .discriminatedUnion("kind", [
45
71
  z.object({
@@ -48,58 +74,12 @@ const InternalBuildSourceSchema = z
48
74
  ref: z.string().describe("Branch, tag, or ref to build."),
49
75
  commit: z.string().optional().describe("Exact commit built, once resolved."),
50
76
  }),
51
- z.object({
52
- kind: z.literal("archive").describe("Build from an uploaded source archive."),
53
- uploadId: z.string().optional().describe("Upload session (`upl_`) carrying the archive."),
54
- sourceMetadata: z
55
- .record(z.string(), z.unknown())
56
- .optional()
57
- .describe("Internal source provenance copied to the produced Version."),
58
- objectKey: z.string().optional().describe("Internal staged archive object key."),
59
- uploadedAt: z.string().datetime().optional().describe("When the archive finished staging."),
60
- recoveredAt: z
61
- .string()
62
- .datetime()
63
- .optional()
64
- .describe("When an interrupted archive upload was recovered."),
65
- sha256: z.string().optional().describe("SHA-256 checksum of the staged source archive."),
66
- compressedBytes: z.number().int().nonnegative().optional(),
67
- expandedBytes: z.number().int().nonnegative().optional(),
68
- fileCount: z.number().int().nonnegative().optional(),
69
- expiresAt: z
70
- .string()
71
- .datetime()
72
- .optional()
73
- .describe("Server-enforced upload expiry while the archive is waiting for upload."),
74
- }),
77
+ internalArchiveBuildSourceSchema,
75
78
  ])
76
79
  .describe("Legacy internal build source shape retained while build routes migrate to input.");
77
80
  const InternalBuildInputSchema = z
78
81
  .discriminatedUnion("kind", [
79
- z.object({
80
- kind: z.literal("archive").describe("Build from an uploaded source archive."),
81
- uploadId: z.string().optional().describe("Upload session (`upl_`) carrying the archive."),
82
- sourceMetadata: z
83
- .record(z.string(), z.unknown())
84
- .optional()
85
- .describe("Internal source provenance copied to the produced Version."),
86
- objectKey: z.string().optional().describe("Internal staged archive object key."),
87
- uploadedAt: z.string().datetime().optional().describe("When the archive finished staging."),
88
- recoveredAt: z
89
- .string()
90
- .datetime()
91
- .optional()
92
- .describe("When an interrupted archive upload was recovered."),
93
- sha256: z.string().optional().describe("SHA-256 checksum of the staged source archive."),
94
- compressedBytes: z.number().int().nonnegative().optional(),
95
- expandedBytes: z.number().int().nonnegative().optional(),
96
- fileCount: z.number().int().nonnegative().optional(),
97
- expiresAt: z
98
- .string()
99
- .datetime()
100
- .optional()
101
- .describe("Server-enforced upload expiry while the archive is waiting for upload."),
102
- }),
82
+ internalArchiveBuildSourceSchema,
103
83
  z.object({
104
84
  kind: z.literal("connected_repository").describe("Build from a repository connection."),
105
85
  repositoryConnectionId: z.string().describe("Repository connection (`rpc_`) to build from."),
@@ -4,8 +4,7 @@ import { z } from "zod";
4
4
  // activity log. No writes, no new storage — promotion stays owned by the
5
5
  // publish/version lifecycle. Additive only.
6
6
  // One row of the channel list: where each named channel points right now.
7
- // `currentVersionId` is the live pointer (`channels.versionId`); weighted
8
- // pointers are not surfaced here yet (live-only at launch).
7
+ // `currentVersionId` is the channel's version pointer (`channels.versionId`).
9
8
  export const channelListItemSchema = z.object({
10
9
  name: z.string().describe("Channel name; `live` is the default channel."),
11
10
  currentVersionId: z
@@ -1,123 +1,120 @@
1
1
  import { z } from "zod";
2
- export declare const collaborationModeSchema: z.ZodEnum<{
3
- review: "review";
4
- }>;
2
+ import type { GrantCapability } from "./grants.js";
5
3
  export declare const commentThreadStatusSchema: z.ZodEnum<{
6
4
  open: "open";
7
5
  archived: "archived";
8
6
  }>;
9
- export declare const collaborationReviewerLevelSchema: z.ZodEnum<{
10
- viewer: "viewer";
11
- commenter: "commenter";
12
- editor: "editor";
13
- }>;
14
- export declare const collaborationInvitedReviewerSchema: z.ZodObject<{
15
- email: z.ZodString;
16
- level: z.ZodEnum<{
7
+ export declare const COMMENT_SEARCH_QUERY_MAX_LENGTH = 160;
8
+ export declare function normalizeCommentSearchQuery(value: string | undefined): string | undefined;
9
+ export declare const COMMENT_PAGE_PATH_MAX_LENGTH = 2048;
10
+ export declare const commentCapabilitiesSchema: z.ZodArray<z.ZodEnum<{
11
+ "page.view": "page.view";
12
+ "comments.read": "comments.read";
13
+ "comments.write": "comments.write";
14
+ }>>;
15
+ export type CommentCapability = Extract<GrantCapability, "page.view" | "comments.read" | "comments.write">;
16
+ export type CommentCapabilities = CommentCapability[];
17
+ export declare const collaborationGuestProjectionSchema: z.ZodObject<{
18
+ anonymousId: z.ZodString;
19
+ name: z.ZodString;
20
+ namedByUser: z.ZodBoolean;
21
+ grantId: z.ZodString;
22
+ admittedBy: z.ZodUnion<readonly [z.ZodLiteral<"anyone">, z.ZodTemplateLiteral<`link:${string}`>, z.ZodTemplateLiteral<`password:${string}`>]>;
23
+ emailVerified: z.ZodDefault<z.ZodBoolean>;
24
+ capabilities: z.ZodArray<z.ZodEnum<{
25
+ "page.view": "page.view";
26
+ "comments.read": "comments.read";
27
+ "comments.write": "comments.write";
28
+ }>>;
29
+ }, z.core.$strip>;
30
+ export type CollaborationGuestProjection = z.infer<typeof collaborationGuestProjectionSchema>;
31
+ export declare const collaborationTicketClaimsSchema: z.ZodObject<{
32
+ sub: z.ZodString;
33
+ email: z.ZodOptional<z.ZodString>;
34
+ role: z.ZodEnum<{
17
35
  viewer: "viewer";
18
36
  commenter: "commenter";
19
37
  editor: "editor";
38
+ manager: "manager";
39
+ }>;
40
+ actorKind: z.ZodEnum<{
41
+ user: "user";
42
+ guest: "guest";
20
43
  }>;
44
+ capabilities: z.ZodArray<z.ZodEnum<{
45
+ "page.view": "page.view";
46
+ "comments.read": "comments.read";
47
+ "comments.write": "comments.write";
48
+ }>>;
49
+ anonymousId: z.ZodOptional<z.ZodString>;
50
+ namedByUser: z.ZodOptional<z.ZodBoolean>;
51
+ admittedBy: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"anyone">, z.ZodTemplateLiteral<`link:${string}`>, z.ZodTemplateLiteral<`password:${string}`>]>>;
52
+ emailVerified: z.ZodOptional<z.ZodBoolean>;
53
+ room: z.ZodString;
54
+ scope: z.ZodString;
55
+ surface: z.ZodEnum<{
56
+ preview: "preview";
57
+ published: "published";
58
+ }>;
59
+ nonce: z.ZodString;
60
+ iat: z.ZodNumber;
61
+ nbf: z.ZodNumber;
62
+ exp: z.ZodNumber;
63
+ iss: z.ZodLiteral<"spacefast-api">;
64
+ aud: z.ZodString;
21
65
  }, z.core.$strip>;
22
66
  export declare const collaborationSettingsSchema: z.ZodObject<{
23
- anonymousReviewers: z.ZodOptional<z.ZodBoolean>;
24
- publishedAnonymousCommenters: z.ZodOptional<z.ZodBoolean>;
25
- invitedReviewers: z.ZodOptional<z.ZodArray<z.ZodObject<{
26
- email: z.ZodString;
27
- level: z.ZodEnum<{
28
- viewer: "viewer";
29
- commenter: "commenter";
30
- editor: "editor";
31
- }>;
32
- }, z.core.$strip>>>;
67
+ spamFilterEnabled: z.ZodOptional<z.ZodBoolean>;
33
68
  publishedComments: z.ZodOptional<z.ZodBoolean>;
34
- allowedOrigins: z.ZodOptional<z.ZodArray<z.ZodString>>;
35
69
  notificationPreferences: z.ZodOptional<z.ZodObject<{
36
70
  newThreads: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
37
71
  newReplies: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
38
72
  statusChanges: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
39
73
  }, z.core.$strip>>;
40
- }, z.core.$catchall<z.ZodUnknown>>;
74
+ }, z.core.$strict>;
41
75
  export declare const collaborationSchema: z.ZodObject<{
42
76
  spaceId: z.ZodString;
43
77
  enabled: z.ZodBoolean;
44
- mode: z.ZodEnum<{
45
- review: "review";
46
- }>;
47
78
  castResourceId: z.ZodNullable<z.ZodString>;
48
79
  castResourceKey: z.ZodNullable<z.ZodString>;
49
80
  settings: z.ZodObject<{
50
- anonymousReviewers: z.ZodOptional<z.ZodBoolean>;
51
- publishedAnonymousCommenters: z.ZodOptional<z.ZodBoolean>;
52
- invitedReviewers: z.ZodOptional<z.ZodArray<z.ZodObject<{
53
- email: z.ZodString;
54
- level: z.ZodEnum<{
55
- viewer: "viewer";
56
- commenter: "commenter";
57
- editor: "editor";
58
- }>;
59
- }, z.core.$strip>>>;
81
+ spamFilterEnabled: z.ZodOptional<z.ZodBoolean>;
60
82
  publishedComments: z.ZodOptional<z.ZodBoolean>;
61
- allowedOrigins: z.ZodOptional<z.ZodArray<z.ZodString>>;
62
83
  notificationPreferences: z.ZodOptional<z.ZodObject<{
63
84
  newThreads: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
64
85
  newReplies: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
65
86
  statusChanges: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
66
87
  }, z.core.$strip>>;
67
- }, z.core.$catchall<z.ZodUnknown>>;
88
+ }, z.core.$strict>;
68
89
  createdAt: z.ZodNullable<z.ZodString>;
69
90
  updatedAt: z.ZodNullable<z.ZodString>;
70
91
  }, z.core.$strip>;
71
92
  export declare const collaborationUpdateSchema: z.ZodObject<{
72
93
  enabled: z.ZodBoolean;
73
- mode: z.ZodOptional<z.ZodEnum<{
74
- review: "review";
75
- }>>;
76
94
  settings: z.ZodOptional<z.ZodObject<{
77
- anonymousReviewers: z.ZodOptional<z.ZodBoolean>;
78
- publishedAnonymousCommenters: z.ZodOptional<z.ZodBoolean>;
79
- invitedReviewers: z.ZodOptional<z.ZodArray<z.ZodObject<{
80
- email: z.ZodString;
81
- level: z.ZodEnum<{
82
- viewer: "viewer";
83
- commenter: "commenter";
84
- editor: "editor";
85
- }>;
86
- }, z.core.$strip>>>;
95
+ spamFilterEnabled: z.ZodOptional<z.ZodBoolean>;
87
96
  publishedComments: z.ZodOptional<z.ZodBoolean>;
88
- allowedOrigins: z.ZodOptional<z.ZodArray<z.ZodString>>;
89
97
  notificationPreferences: z.ZodOptional<z.ZodObject<{
90
98
  newThreads: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
91
99
  newReplies: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
92
100
  statusChanges: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
93
101
  }, z.core.$strip>>;
94
- }, z.core.$catchall<z.ZodUnknown>>>;
102
+ }, z.core.$strict>>;
95
103
  }, z.core.$strip>;
96
- export declare const collaborationTokenRequestSchema: z.ZodObject<{
97
- versionId: z.ZodOptional<z.ZodString>;
104
+ export declare const commentsTicketRequestSchema: z.ZodObject<{
105
+ spaceId: z.ZodString;
98
106
  pagePath: z.ZodDefault<z.ZodString>;
99
- displayName: z.ZodOptional<z.ZodString>;
107
+ origin: z.ZodString;
108
+ versionId: z.ZodOptional<z.ZodString>;
100
109
  }, z.core.$strip>;
101
- export declare const collaborationTokenResponseSchema: z.ZodObject<{
110
+ export declare const commentsTicketResponseSchema: z.ZodObject<{
102
111
  token: z.ZodString;
103
112
  expiresAt: z.ZodString;
104
113
  cast: z.ZodObject<{
105
114
  resource: z.ZodString;
106
- room: z.ZodNullable<z.ZodString>;
115
+ room: z.ZodString;
107
116
  }, z.core.$strip>;
108
117
  }, z.core.$strip>;
109
- export declare const collaborationHandoffRequestSchema: z.ZodObject<{
110
- versionId: z.ZodString;
111
- pagePath: z.ZodDefault<z.ZodString>;
112
- }, z.core.$strip>;
113
- export declare const collaborationHandoffResponseSchema: z.ZodObject<{
114
- handoffToken: z.ZodString;
115
- expiresAt: z.ZodString;
116
- url: z.ZodNullable<z.ZodString>;
117
- }, z.core.$strip>;
118
- export declare const collaborationHandoffExchangeSchema: z.ZodObject<{
119
- handoffToken: z.ZodString;
120
- }, z.core.$strip>;
121
118
  export declare const realtimeTokenRequestSchema: z.ZodObject<{
122
119
  versionId: z.ZodOptional<z.ZodString>;
123
120
  scope: z.ZodDefault<z.ZodEnum<{
@@ -131,7 +128,6 @@ export declare const realtimeTokenResponseSchema: z.ZodObject<{
131
128
  cast: z.ZodObject<{
132
129
  resource: z.ZodString;
133
130
  room: z.ZodString;
134
- loaderUrl: z.ZodString;
135
131
  }, z.core.$strip>;
136
132
  }, z.core.$strip>;
137
133
  export declare const noticePublishSchema: z.ZodObject<{
@@ -142,8 +138,8 @@ export declare const noticePublishSchema: z.ZodObject<{
142
138
  level: z.ZodDefault<z.ZodEnum<{
143
139
  info: "info";
144
140
  success: "success";
145
- warning: "warning";
146
141
  error: "error";
142
+ warning: "warning";
147
143
  }>>;
148
144
  payload: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
149
145
  durable: z.ZodDefault<z.ZodBoolean>;
@@ -161,30 +157,20 @@ export declare const collabOverlayConfigQuerySchema: z.ZodObject<{
161
157
  }, z.core.$strip>;
162
158
  export declare const collabOverlayConfigSchema: z.ZodObject<{
163
159
  enabled: z.ZodBoolean;
164
- anonymous_commenters: z.ZodBoolean;
165
- resource_key: z.ZodNullable<z.ZodString>;
166
- room_key: z.ZodNullable<z.ZodString>;
167
- version: z.ZodObject<{
168
- id: z.ZodNullable<z.ZodString>;
169
- current: z.ZodNullable<z.ZodString>;
170
- }, z.core.$strip>;
171
- ws_url: z.ZodNullable<z.ZodString>;
172
- endpoints: z.ZodObject<{
173
- token: z.ZodString;
174
- handoff_exchange: z.ZodString;
175
- auth_bridge: z.ZodString;
176
- screenshots: z.ZodString;
177
- }, z.core.$strip>;
178
- features: z.ZodObject<{
179
- drawing: z.ZodBoolean;
180
- capture: z.ZodBoolean;
181
- notices: z.ZodBoolean;
182
- }, z.core.$strip>;
160
+ surface_url: z.ZodNullable<z.ZodString>;
161
+ }, z.core.$strip>;
162
+ export declare const COLLAB_VERSION_URLS_MAX_IDS = 50;
163
+ export declare const collabVersionUrlSchema: z.ZodObject<{
164
+ id: z.ZodString;
165
+ url: z.ZodString;
166
+ number: z.ZodNullable<z.ZodNumber>;
167
+ createdAt: z.ZodNullable<z.ZodString>;
183
168
  }, z.core.$strip>;
184
169
  export declare const commentAuthorSchema: z.ZodObject<{
185
170
  kind: z.ZodNullable<z.ZodString>;
186
171
  id: z.ZodNullable<z.ZodString>;
187
172
  name: z.ZodNullable<z.ZodString>;
173
+ color: z.ZodNullable<z.ZodString>;
188
174
  }, z.core.$strip>;
189
175
  export declare const commentTargetSchema: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
190
176
  export declare const commentThreadSchema: z.ZodObject<{
@@ -199,6 +185,11 @@ export declare const commentThreadSchema: z.ZodObject<{
199
185
  open: "open";
200
186
  archived: "archived";
201
187
  }>;
188
+ moderationState: z.ZodEnum<{
189
+ spam: "spam";
190
+ clear: "clear";
191
+ }>;
192
+ heldCommentIds: z.ZodArray<z.ZodString>;
202
193
  unread: z.ZodBoolean;
203
194
  unreadCount: z.ZodNumber;
204
195
  body: z.ZodNullable<z.ZodString>;
@@ -206,6 +197,7 @@ export declare const commentThreadSchema: z.ZodObject<{
206
197
  kind: z.ZodNullable<z.ZodString>;
207
198
  id: z.ZodNullable<z.ZodString>;
208
199
  name: z.ZodNullable<z.ZodString>;
200
+ color: z.ZodNullable<z.ZodString>;
209
201
  }, z.core.$strip>>;
210
202
  target: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
211
203
  comments: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
@@ -220,8 +212,19 @@ export declare const commentListQuerySchema: z.ZodObject<{
220
212
  open: "open";
221
213
  archived: "archived";
222
214
  }>>;
215
+ filter: z.ZodOptional<z.ZodEnum<{
216
+ open: "open";
217
+ spam: "spam";
218
+ archived: "archived";
219
+ }>>;
223
220
  pagePath: z.ZodOptional<z.ZodString>;
221
+ q: z.ZodOptional<z.ZodString>;
222
+ author: z.ZodOptional<z.ZodString>;
223
+ unread: z.ZodOptional<z.ZodCodec<z.ZodString, z.ZodBoolean>>;
224
224
  }, z.core.$strip>;
225
+ export declare const commentSpamFeedbackSchema: z.ZodDefault<z.ZodObject<{
226
+ commentId: z.ZodOptional<z.ZodString>;
227
+ }, z.core.$strip>>;
225
228
  export declare const commentCreateSchema: z.ZodObject<{
226
229
  pagePath: z.ZodDefault<z.ZodString>;
227
230
  body: z.ZodString;
@@ -232,8 +235,8 @@ export declare const commentScreenshotCreateSchema: z.ZodObject<{
232
235
  versionId: z.ZodString;
233
236
  pagePath: z.ZodDefault<z.ZodString>;
234
237
  contentType: z.ZodEnum<{
235
- "image/png": "image/png";
236
238
  "image/jpeg": "image/jpeg";
239
+ "image/png": "image/png";
237
240
  "image/webp": "image/webp";
238
241
  }>;
239
242
  contentBase64: z.ZodString;
@@ -277,6 +280,11 @@ export declare const commentListResponseSchema: z.ZodObject<{
277
280
  open: "open";
278
281
  archived: "archived";
279
282
  }>;
283
+ moderationState: z.ZodEnum<{
284
+ spam: "spam";
285
+ clear: "clear";
286
+ }>;
287
+ heldCommentIds: z.ZodArray<z.ZodString>;
280
288
  unread: z.ZodBoolean;
281
289
  unreadCount: z.ZodNumber;
282
290
  body: z.ZodNullable<z.ZodString>;
@@ -284,6 +292,7 @@ export declare const commentListResponseSchema: z.ZodObject<{
284
292
  kind: z.ZodNullable<z.ZodString>;
285
293
  id: z.ZodNullable<z.ZodString>;
286
294
  name: z.ZodNullable<z.ZodString>;
295
+ color: z.ZodNullable<z.ZodString>;
287
296
  }, z.core.$strip>>;
288
297
  target: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
289
298
  comments: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
@@ -302,8 +311,8 @@ export declare const commentExportResponseSchema: z.ZodObject<{
302
311
  }>;
303
312
  content: z.ZodString;
304
313
  }, z.core.$strip>;
305
- export type CollaborationInvitedReviewer = z.infer<typeof collaborationInvitedReviewerSchema>;
306
314
  export type Collaboration = z.infer<typeof collaborationSchema>;
307
315
  export type CollaborationUpdate = z.infer<typeof collaborationUpdateSchema>;
308
316
  export type CollabOverlayConfig = z.infer<typeof collabOverlayConfigSchema>;
317
+ export type CollabVersionUrl = z.infer<typeof collabVersionUrlSchema>;
309
318
  export type CommentThread = z.infer<typeof commentThreadSchema>;