@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
@@ -0,0 +1,1158 @@
1
+ import { z } from "zod";
2
+ export declare const GRANT_CAPABILITIES: readonly ["page.view", "comments.read", "comments.write", "content.publish", "access.manage"];
3
+ export declare const grantCapabilitySchema: z.ZodEnum<{
4
+ "page.view": "page.view";
5
+ "comments.read": "comments.read";
6
+ "comments.write": "comments.write";
7
+ "content.publish": "content.publish";
8
+ "access.manage": "access.manage";
9
+ }>;
10
+ export type GrantCapability = z.infer<typeof grantCapabilitySchema>;
11
+ export declare const GRANT_CAPABILITY_PRESETS: readonly ["view", "comment", "publish", "manage"];
12
+ export type GrantCapabilityPreset = (typeof GRANT_CAPABILITY_PRESETS)[number];
13
+ export declare const GRANT_PRESET_CAPABILITIES: Record<GrantCapabilityPreset, GrantCapability[]>;
14
+ export declare const GRANT_AUDIENCE_KINDS: readonly ["public", "team", "person", "link", "password", "machine", "external"];
15
+ export declare const grantAudienceKindSchema: z.ZodEnum<{
16
+ link: "link";
17
+ team: "team";
18
+ external: "external";
19
+ public: "public";
20
+ person: "person";
21
+ password: "password";
22
+ machine: "machine";
23
+ }>;
24
+ export type GrantAudienceKind = z.infer<typeof grantAudienceKindSchema>;
25
+ export declare const grantAudienceSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
26
+ kind: z.ZodLiteral<"public">;
27
+ }, z.core.$strict>, z.ZodObject<{
28
+ kind: z.ZodLiteral<"team">;
29
+ teamId: z.ZodString;
30
+ }, z.core.$strict>, z.ZodObject<{
31
+ kind: z.ZodLiteral<"person">;
32
+ personId: z.ZodString;
33
+ }, z.core.$strict>, z.ZodObject<{
34
+ kind: z.ZodLiteral<"link">;
35
+ linkId: z.ZodString;
36
+ }, z.core.$strict>, z.ZodObject<{
37
+ kind: z.ZodLiteral<"password">;
38
+ credentialId: z.ZodString;
39
+ }, z.core.$strict>, z.ZodObject<{
40
+ kind: z.ZodLiteral<"machine">;
41
+ machineId: z.ZodString;
42
+ }, z.core.$strict>, z.ZodObject<{
43
+ kind: z.ZodLiteral<"external">;
44
+ issuer: z.ZodString;
45
+ subject: z.ZodString;
46
+ }, z.core.$strict>], "kind">;
47
+ export type GrantAudience = z.infer<typeof grantAudienceSchema>;
48
+ /**
49
+ * Canonical resource-pattern syntax shared by config compilation and evaluation.
50
+ * `*` matches one path segment and `**` matches zero or more segments. Wildcards
51
+ * are whole segments so a pattern can never disguise an encoded separator.
52
+ *
53
+ * Unlike URL-route canonicalization, resource patterns retain a terminal
54
+ * `index.html`: Grants can constrain the visitor-facing route and the artifact
55
+ * it resolves to independently.
56
+ */
57
+ export declare function normalizeGrantResourcePattern(input: string): string;
58
+ export declare const grantResourcePatternSchema: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
59
+ export type GrantResourcePattern = z.infer<typeof grantResourcePatternSchema>;
60
+ export declare const GRANT_RESOURCE_PATTERN_LIMIT = 100;
61
+ export declare const grantResourceSetSchema: z.ZodObject<{
62
+ include: z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>;
63
+ exclude: z.ZodDefault<z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>>;
64
+ }, z.core.$strict>;
65
+ export type GrantResourceSet = z.infer<typeof grantResourceSetSchema>;
66
+ export declare const GRANT_TARGET_KINDS: readonly ["live", "version", "branch", "all_versions"];
67
+ export declare const grantTargetKindSchema: z.ZodEnum<{
68
+ live: "live";
69
+ version: "version";
70
+ branch: "branch";
71
+ all_versions: "all_versions";
72
+ }>;
73
+ export type GrantTargetKind = z.infer<typeof grantTargetKindSchema>;
74
+ export declare const grantTargetSelectorSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
75
+ kind: z.ZodLiteral<"live">;
76
+ }, z.core.$strict>, z.ZodObject<{
77
+ kind: z.ZodLiteral<"version">;
78
+ versionId: z.ZodString;
79
+ }, z.core.$strict>, z.ZodObject<{
80
+ kind: z.ZodLiteral<"branch">;
81
+ branch: z.ZodString;
82
+ }, z.core.$strict>, z.ZodObject<{
83
+ kind: z.ZodLiteral<"all_versions">;
84
+ }, z.core.$strict>], "kind">;
85
+ export type GrantTargetSelector = z.infer<typeof grantTargetSelectorSchema>;
86
+ export declare function normalizeGrantNetworkCidr(input: string): string;
87
+ export declare function grantNetworkCidrMatches(cidr: string, ipAddress: string): boolean;
88
+ export declare const grantConstraintsSchema: z.ZodObject<{
89
+ notBefore: z.ZodOptional<z.ZodString>;
90
+ expiresAt: z.ZodOptional<z.ZodString>;
91
+ maxUses: z.ZodOptional<z.ZodNumber>;
92
+ requireVerifiedEmail: z.ZodOptional<z.ZodBoolean>;
93
+ network: z.ZodOptional<z.ZodObject<{
94
+ ipCidrs: z.ZodOptional<z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>>;
95
+ countries: z.ZodOptional<z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>>;
96
+ excludedCountries: z.ZodOptional<z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>>;
97
+ excludedUserAgentSubstrings: z.ZodOptional<z.ZodArray<z.ZodString>>;
98
+ }, z.core.$strict>>;
99
+ }, z.core.$strict>;
100
+ export type GrantConstraints = z.infer<typeof grantConstraintsSchema>;
101
+ export declare const GRANT_SOURCE_KINDS: readonly ["config", "managed", "system"];
102
+ export declare const grantSourceKindSchema: z.ZodEnum<{
103
+ config: "config";
104
+ system: "system";
105
+ managed: "managed";
106
+ }>;
107
+ export type GrantSourceKind = z.infer<typeof grantSourceKindSchema>;
108
+ export declare const PRECLAIM_OPEN_GRANT_SOURCE_REFERENCE = "open:preclaim-author";
109
+ export declare const OWNING_TEAM_MANAGEMENT_GRANT_SOURCE_REFERENCE = "ownership:team";
110
+ export declare const OWNING_TEAM_VERSION_GRANT_SOURCE_REFERENCE = "ownership:team:versions";
111
+ export declare const OWNING_EXTERNAL_MANAGEMENT_GRANT_SOURCE_REFERENCE = "ownership:external";
112
+ export declare const OWNING_EXTERNAL_VERSION_GRANT_SOURCE_REFERENCE = "ownership:external:versions";
113
+ export declare const CONFIG_PUBLIC_GRANT_SOURCE_REFERENCE = "sf.jsonc#$.access.public";
114
+ export declare const grantSourceSchema: z.ZodObject<{
115
+ kind: z.ZodEnum<{
116
+ config: "config";
117
+ system: "system";
118
+ managed: "managed";
119
+ }>;
120
+ reference: z.ZodString;
121
+ }, z.core.$strict>;
122
+ export type GrantSource = z.infer<typeof grantSourceSchema>;
123
+ export declare const grantSchema: z.ZodObject<{
124
+ name: z.ZodOptional<z.ZodString>;
125
+ audience: z.ZodDiscriminatedUnion<[z.ZodObject<{
126
+ kind: z.ZodLiteral<"public">;
127
+ }, z.core.$strict>, z.ZodObject<{
128
+ kind: z.ZodLiteral<"team">;
129
+ teamId: z.ZodString;
130
+ }, z.core.$strict>, z.ZodObject<{
131
+ kind: z.ZodLiteral<"person">;
132
+ personId: z.ZodString;
133
+ }, z.core.$strict>, z.ZodObject<{
134
+ kind: z.ZodLiteral<"link">;
135
+ linkId: z.ZodString;
136
+ }, z.core.$strict>, z.ZodObject<{
137
+ kind: z.ZodLiteral<"password">;
138
+ credentialId: z.ZodString;
139
+ }, z.core.$strict>, z.ZodObject<{
140
+ kind: z.ZodLiteral<"machine">;
141
+ machineId: z.ZodString;
142
+ }, z.core.$strict>, z.ZodObject<{
143
+ kind: z.ZodLiteral<"external">;
144
+ issuer: z.ZodString;
145
+ subject: z.ZodString;
146
+ }, z.core.$strict>], "kind">;
147
+ resources: z.ZodObject<{
148
+ include: z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>;
149
+ exclude: z.ZodDefault<z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>>;
150
+ }, z.core.$strict>;
151
+ capabilities: z.ZodArray<z.ZodEnum<{
152
+ "page.view": "page.view";
153
+ "comments.read": "comments.read";
154
+ "comments.write": "comments.write";
155
+ "content.publish": "content.publish";
156
+ "access.manage": "access.manage";
157
+ }>>;
158
+ constraints: z.ZodDefault<z.ZodObject<{
159
+ notBefore: z.ZodOptional<z.ZodString>;
160
+ expiresAt: z.ZodOptional<z.ZodString>;
161
+ maxUses: z.ZodOptional<z.ZodNumber>;
162
+ requireVerifiedEmail: z.ZodOptional<z.ZodBoolean>;
163
+ network: z.ZodOptional<z.ZodObject<{
164
+ ipCidrs: z.ZodOptional<z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>>;
165
+ countries: z.ZodOptional<z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>>;
166
+ excludedCountries: z.ZodOptional<z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>>;
167
+ excludedUserAgentSubstrings: z.ZodOptional<z.ZodArray<z.ZodString>>;
168
+ }, z.core.$strict>>;
169
+ }, z.core.$strict>>;
170
+ target: z.ZodDiscriminatedUnion<[z.ZodObject<{
171
+ kind: z.ZodLiteral<"live">;
172
+ }, z.core.$strict>, z.ZodObject<{
173
+ kind: z.ZodLiteral<"version">;
174
+ versionId: z.ZodString;
175
+ }, z.core.$strict>, z.ZodObject<{
176
+ kind: z.ZodLiteral<"branch">;
177
+ branch: z.ZodString;
178
+ }, z.core.$strict>, z.ZodObject<{
179
+ kind: z.ZodLiteral<"all_versions">;
180
+ }, z.core.$strict>], "kind">;
181
+ id: z.ZodString;
182
+ source: z.ZodObject<{
183
+ kind: z.ZodEnum<{
184
+ config: "config";
185
+ system: "system";
186
+ managed: "managed";
187
+ }>;
188
+ reference: z.ZodString;
189
+ }, z.core.$strict>;
190
+ }, z.core.$strict>;
191
+ export type Grant = z.infer<typeof grantSchema>;
192
+ export declare const managedGrantWriteSchema: z.ZodObject<{
193
+ name: z.ZodOptional<z.ZodString>;
194
+ audience: z.ZodDiscriminatedUnion<[z.ZodObject<{
195
+ kind: z.ZodLiteral<"public">;
196
+ }, z.core.$strict>, z.ZodObject<{
197
+ kind: z.ZodLiteral<"team">;
198
+ teamId: z.ZodString;
199
+ }, z.core.$strict>, z.ZodObject<{
200
+ kind: z.ZodLiteral<"person">;
201
+ personId: z.ZodString;
202
+ }, z.core.$strict>, z.ZodObject<{
203
+ kind: z.ZodLiteral<"link">;
204
+ linkId: z.ZodString;
205
+ }, z.core.$strict>, z.ZodObject<{
206
+ kind: z.ZodLiteral<"password">;
207
+ credentialId: z.ZodString;
208
+ }, z.core.$strict>, z.ZodObject<{
209
+ kind: z.ZodLiteral<"machine">;
210
+ machineId: z.ZodString;
211
+ }, z.core.$strict>, z.ZodObject<{
212
+ kind: z.ZodLiteral<"external">;
213
+ issuer: z.ZodString;
214
+ subject: z.ZodString;
215
+ }, z.core.$strict>], "kind">;
216
+ resources: z.ZodObject<{
217
+ include: z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>;
218
+ exclude: z.ZodDefault<z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>>;
219
+ }, z.core.$strict>;
220
+ capabilities: z.ZodArray<z.ZodEnum<{
221
+ "page.view": "page.view";
222
+ "comments.read": "comments.read";
223
+ "comments.write": "comments.write";
224
+ "content.publish": "content.publish";
225
+ "access.manage": "access.manage";
226
+ }>>;
227
+ constraints: z.ZodDefault<z.ZodObject<{
228
+ notBefore: z.ZodOptional<z.ZodString>;
229
+ expiresAt: z.ZodOptional<z.ZodString>;
230
+ maxUses: z.ZodOptional<z.ZodNumber>;
231
+ requireVerifiedEmail: z.ZodOptional<z.ZodBoolean>;
232
+ network: z.ZodOptional<z.ZodObject<{
233
+ ipCidrs: z.ZodOptional<z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>>;
234
+ countries: z.ZodOptional<z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>>;
235
+ excludedCountries: z.ZodOptional<z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>>;
236
+ excludedUserAgentSubstrings: z.ZodOptional<z.ZodArray<z.ZodString>>;
237
+ }, z.core.$strict>>;
238
+ }, z.core.$strict>>;
239
+ target: z.ZodDiscriminatedUnion<[z.ZodObject<{
240
+ kind: z.ZodLiteral<"live">;
241
+ }, z.core.$strict>, z.ZodObject<{
242
+ kind: z.ZodLiteral<"version">;
243
+ versionId: z.ZodString;
244
+ }, z.core.$strict>, z.ZodObject<{
245
+ kind: z.ZodLiteral<"branch">;
246
+ branch: z.ZodString;
247
+ }, z.core.$strict>, z.ZodObject<{
248
+ kind: z.ZodLiteral<"all_versions">;
249
+ }, z.core.$strict>], "kind">;
250
+ }, z.core.$strict>;
251
+ export type ManagedGrantWrite = z.infer<typeof managedGrantWriteSchema>;
252
+ export declare const directManagedGrantWriteSchema: z.ZodObject<{
253
+ name: z.ZodOptional<z.ZodString>;
254
+ audience: z.ZodDiscriminatedUnion<[z.ZodObject<{
255
+ kind: z.ZodLiteral<"public">;
256
+ }, z.core.$strict>, z.ZodObject<{
257
+ kind: z.ZodLiteral<"team">;
258
+ teamId: z.ZodString;
259
+ }, z.core.$strict>, z.ZodObject<{
260
+ kind: z.ZodLiteral<"person">;
261
+ personId: z.ZodString;
262
+ }, z.core.$strict>, z.ZodObject<{
263
+ kind: z.ZodLiteral<"link">;
264
+ linkId: z.ZodString;
265
+ }, z.core.$strict>, z.ZodObject<{
266
+ kind: z.ZodLiteral<"password">;
267
+ credentialId: z.ZodString;
268
+ }, z.core.$strict>, z.ZodObject<{
269
+ kind: z.ZodLiteral<"machine">;
270
+ machineId: z.ZodString;
271
+ }, z.core.$strict>, z.ZodObject<{
272
+ kind: z.ZodLiteral<"external">;
273
+ issuer: z.ZodString;
274
+ subject: z.ZodString;
275
+ }, z.core.$strict>], "kind">;
276
+ resources: z.ZodObject<{
277
+ include: z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>;
278
+ exclude: z.ZodDefault<z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>>;
279
+ }, z.core.$strict>;
280
+ capabilities: z.ZodArray<z.ZodEnum<{
281
+ "page.view": "page.view";
282
+ "comments.read": "comments.read";
283
+ "comments.write": "comments.write";
284
+ "content.publish": "content.publish";
285
+ "access.manage": "access.manage";
286
+ }>>;
287
+ constraints: z.ZodDefault<z.ZodObject<{
288
+ notBefore: z.ZodOptional<z.ZodString>;
289
+ expiresAt: z.ZodOptional<z.ZodString>;
290
+ maxUses: z.ZodOptional<z.ZodNumber>;
291
+ requireVerifiedEmail: z.ZodOptional<z.ZodBoolean>;
292
+ network: z.ZodOptional<z.ZodObject<{
293
+ ipCidrs: z.ZodOptional<z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>>;
294
+ countries: z.ZodOptional<z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>>;
295
+ excludedCountries: z.ZodOptional<z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>>;
296
+ excludedUserAgentSubstrings: z.ZodOptional<z.ZodArray<z.ZodString>>;
297
+ }, z.core.$strict>>;
298
+ }, z.core.$strict>>;
299
+ target: z.ZodDiscriminatedUnion<[z.ZodObject<{
300
+ kind: z.ZodLiteral<"live">;
301
+ }, z.core.$strict>, z.ZodObject<{
302
+ kind: z.ZodLiteral<"version">;
303
+ versionId: z.ZodString;
304
+ }, z.core.$strict>, z.ZodObject<{
305
+ kind: z.ZodLiteral<"branch">;
306
+ branch: z.ZodString;
307
+ }, z.core.$strict>, z.ZodObject<{
308
+ kind: z.ZodLiteral<"all_versions">;
309
+ }, z.core.$strict>], "kind">;
310
+ }, z.core.$strict>;
311
+ export type DirectManagedGrantWrite = z.infer<typeof directManagedGrantWriteSchema>;
312
+ export declare const grantSourceExplanationSchema: z.ZodObject<{
313
+ editable: z.ZodBoolean;
314
+ label: z.ZodString;
315
+ detail: z.ZodString;
316
+ }, z.core.$strict>;
317
+ export type GrantSourceExplanation = z.infer<typeof grantSourceExplanationSchema>;
318
+ export declare const spaceGrantSchema: z.ZodObject<{
319
+ grant: z.ZodObject<{
320
+ name: z.ZodOptional<z.ZodString>;
321
+ audience: z.ZodDiscriminatedUnion<[z.ZodObject<{
322
+ kind: z.ZodLiteral<"public">;
323
+ }, z.core.$strict>, z.ZodObject<{
324
+ kind: z.ZodLiteral<"team">;
325
+ teamId: z.ZodString;
326
+ }, z.core.$strict>, z.ZodObject<{
327
+ kind: z.ZodLiteral<"person">;
328
+ personId: z.ZodString;
329
+ }, z.core.$strict>, z.ZodObject<{
330
+ kind: z.ZodLiteral<"link">;
331
+ linkId: z.ZodString;
332
+ }, z.core.$strict>, z.ZodObject<{
333
+ kind: z.ZodLiteral<"password">;
334
+ credentialId: z.ZodString;
335
+ }, z.core.$strict>, z.ZodObject<{
336
+ kind: z.ZodLiteral<"machine">;
337
+ machineId: z.ZodString;
338
+ }, z.core.$strict>, z.ZodObject<{
339
+ kind: z.ZodLiteral<"external">;
340
+ issuer: z.ZodString;
341
+ subject: z.ZodString;
342
+ }, z.core.$strict>], "kind">;
343
+ resources: z.ZodObject<{
344
+ include: z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>;
345
+ exclude: z.ZodDefault<z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>>;
346
+ }, z.core.$strict>;
347
+ capabilities: z.ZodArray<z.ZodEnum<{
348
+ "page.view": "page.view";
349
+ "comments.read": "comments.read";
350
+ "comments.write": "comments.write";
351
+ "content.publish": "content.publish";
352
+ "access.manage": "access.manage";
353
+ }>>;
354
+ constraints: z.ZodDefault<z.ZodObject<{
355
+ notBefore: z.ZodOptional<z.ZodString>;
356
+ expiresAt: z.ZodOptional<z.ZodString>;
357
+ maxUses: z.ZodOptional<z.ZodNumber>;
358
+ requireVerifiedEmail: z.ZodOptional<z.ZodBoolean>;
359
+ network: z.ZodOptional<z.ZodObject<{
360
+ ipCidrs: z.ZodOptional<z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>>;
361
+ countries: z.ZodOptional<z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>>;
362
+ excludedCountries: z.ZodOptional<z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>>;
363
+ excludedUserAgentSubstrings: z.ZodOptional<z.ZodArray<z.ZodString>>;
364
+ }, z.core.$strict>>;
365
+ }, z.core.$strict>>;
366
+ target: z.ZodDiscriminatedUnion<[z.ZodObject<{
367
+ kind: z.ZodLiteral<"live">;
368
+ }, z.core.$strict>, z.ZodObject<{
369
+ kind: z.ZodLiteral<"version">;
370
+ versionId: z.ZodString;
371
+ }, z.core.$strict>, z.ZodObject<{
372
+ kind: z.ZodLiteral<"branch">;
373
+ branch: z.ZodString;
374
+ }, z.core.$strict>, z.ZodObject<{
375
+ kind: z.ZodLiteral<"all_versions">;
376
+ }, z.core.$strict>], "kind">;
377
+ source: z.ZodObject<{
378
+ kind: z.ZodEnum<{
379
+ config: "config";
380
+ system: "system";
381
+ managed: "managed";
382
+ }>;
383
+ reference: z.ZodString;
384
+ }, z.core.$strict>;
385
+ id: z.ZodCustom<`grt_${string}`, `grt_${string}`>;
386
+ }, z.core.$strict>;
387
+ generation: z.ZodNumber;
388
+ status: z.ZodEnum<{
389
+ active: "active";
390
+ expired: "expired";
391
+ scheduled: "scheduled";
392
+ }>;
393
+ sourceExplanation: z.ZodObject<{
394
+ editable: z.ZodBoolean;
395
+ label: z.ZodString;
396
+ detail: z.ZodString;
397
+ }, z.core.$strict>;
398
+ createdAt: z.ZodString;
399
+ updatedAt: z.ZodString;
400
+ }, z.core.$strict>;
401
+ export type SpaceGrant = z.infer<typeof spaceGrantSchema>;
402
+ export declare const grantCheckQuerySchema: z.ZodObject<{
403
+ path: z.ZodDefault<z.ZodString>;
404
+ target: z.ZodDefault<z.ZodEnum<{
405
+ live: "live";
406
+ version: "version";
407
+ branch: "branch";
408
+ }>>;
409
+ targetId: z.ZodOptional<z.ZodString>;
410
+ audience: z.ZodDefault<z.ZodEnum<{
411
+ link: "link";
412
+ team: "team";
413
+ external: "external";
414
+ public: "public";
415
+ person: "person";
416
+ password: "password";
417
+ machine: "machine";
418
+ }>>;
419
+ personId: z.ZodOptional<z.ZodString>;
420
+ linkId: z.ZodOptional<z.ZodString>;
421
+ passwordCredentialId: z.ZodOptional<z.ZodString>;
422
+ machineId: z.ZodOptional<z.ZodString>;
423
+ issuer: z.ZodOptional<z.ZodString>;
424
+ subject: z.ZodOptional<z.ZodString>;
425
+ verifiedEmail: z.ZodOptional<z.ZodEnum<{
426
+ true: "true";
427
+ false: "false";
428
+ }>>;
429
+ ipAddress: z.ZodOptional<z.ZodString>;
430
+ }, z.core.$strict>;
431
+ export type GrantCheckQuery = z.infer<typeof grantCheckQuerySchema>;
432
+ export declare const GRANT_CHECK_FAILURES: readonly ["space_unclaimed_config", "audience", "target", "invalid_time", "not_before", "expired", "max_uses", "verified_email", "network", "resource_not_included", "resource_excluded"];
433
+ export declare const grantCheckFailureSchema: z.ZodEnum<{
434
+ network: "network";
435
+ target: "target";
436
+ expired: "expired";
437
+ audience: "audience";
438
+ space_unclaimed_config: "space_unclaimed_config";
439
+ invalid_time: "invalid_time";
440
+ not_before: "not_before";
441
+ max_uses: "max_uses";
442
+ verified_email: "verified_email";
443
+ resource_not_included: "resource_not_included";
444
+ resource_excluded: "resource_excluded";
445
+ }>;
446
+ export type GrantCheckFailure = z.infer<typeof grantCheckFailureSchema>;
447
+ export declare const grantCheckSchema: z.ZodObject<{
448
+ path: z.ZodString;
449
+ target: z.ZodDiscriminatedUnion<[z.ZodObject<{
450
+ kind: z.ZodLiteral<"live">;
451
+ }, z.core.$strict>, z.ZodObject<{
452
+ kind: z.ZodLiteral<"version">;
453
+ versionId: z.ZodString;
454
+ }, z.core.$strict>, z.ZodObject<{
455
+ kind: z.ZodLiteral<"branch">;
456
+ branch: z.ZodString;
457
+ }, z.core.$strict>], "kind">;
458
+ simulatedAudience: z.ZodDiscriminatedUnion<[z.ZodObject<{
459
+ kind: z.ZodLiteral<"public">;
460
+ }, z.core.$strict>, z.ZodObject<{
461
+ kind: z.ZodLiteral<"team">;
462
+ teamId: z.ZodString;
463
+ }, z.core.$strict>, z.ZodObject<{
464
+ kind: z.ZodLiteral<"person">;
465
+ personId: z.ZodString;
466
+ }, z.core.$strict>, z.ZodObject<{
467
+ kind: z.ZodLiteral<"link">;
468
+ linkId: z.ZodString;
469
+ }, z.core.$strict>, z.ZodObject<{
470
+ kind: z.ZodLiteral<"password">;
471
+ credentialId: z.ZodString;
472
+ }, z.core.$strict>, z.ZodObject<{
473
+ kind: z.ZodLiteral<"machine">;
474
+ machineId: z.ZodString;
475
+ }, z.core.$strict>, z.ZodObject<{
476
+ kind: z.ZodLiteral<"external">;
477
+ issuer: z.ZodString;
478
+ subject: z.ZodString;
479
+ }, z.core.$strict>], "kind">;
480
+ capabilities: z.ZodArray<z.ZodEnum<{
481
+ "page.view": "page.view";
482
+ "comments.read": "comments.read";
483
+ "comments.write": "comments.write";
484
+ "content.publish": "content.publish";
485
+ "access.manage": "access.manage";
486
+ }>>;
487
+ matchingGrants: z.ZodArray<z.ZodObject<{
488
+ grant: z.ZodObject<{
489
+ grant: z.ZodObject<{
490
+ name: z.ZodOptional<z.ZodString>;
491
+ audience: z.ZodDiscriminatedUnion<[z.ZodObject<{
492
+ kind: z.ZodLiteral<"public">;
493
+ }, z.core.$strict>, z.ZodObject<{
494
+ kind: z.ZodLiteral<"team">;
495
+ teamId: z.ZodString;
496
+ }, z.core.$strict>, z.ZodObject<{
497
+ kind: z.ZodLiteral<"person">;
498
+ personId: z.ZodString;
499
+ }, z.core.$strict>, z.ZodObject<{
500
+ kind: z.ZodLiteral<"link">;
501
+ linkId: z.ZodString;
502
+ }, z.core.$strict>, z.ZodObject<{
503
+ kind: z.ZodLiteral<"password">;
504
+ credentialId: z.ZodString;
505
+ }, z.core.$strict>, z.ZodObject<{
506
+ kind: z.ZodLiteral<"machine">;
507
+ machineId: z.ZodString;
508
+ }, z.core.$strict>, z.ZodObject<{
509
+ kind: z.ZodLiteral<"external">;
510
+ issuer: z.ZodString;
511
+ subject: z.ZodString;
512
+ }, z.core.$strict>], "kind">;
513
+ resources: z.ZodObject<{
514
+ include: z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>;
515
+ exclude: z.ZodDefault<z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>>;
516
+ }, z.core.$strict>;
517
+ capabilities: z.ZodArray<z.ZodEnum<{
518
+ "page.view": "page.view";
519
+ "comments.read": "comments.read";
520
+ "comments.write": "comments.write";
521
+ "content.publish": "content.publish";
522
+ "access.manage": "access.manage";
523
+ }>>;
524
+ constraints: z.ZodDefault<z.ZodObject<{
525
+ notBefore: z.ZodOptional<z.ZodString>;
526
+ expiresAt: z.ZodOptional<z.ZodString>;
527
+ maxUses: z.ZodOptional<z.ZodNumber>;
528
+ requireVerifiedEmail: z.ZodOptional<z.ZodBoolean>;
529
+ network: z.ZodOptional<z.ZodObject<{
530
+ ipCidrs: z.ZodOptional<z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>>;
531
+ countries: z.ZodOptional<z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>>;
532
+ excludedCountries: z.ZodOptional<z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>>;
533
+ excludedUserAgentSubstrings: z.ZodOptional<z.ZodArray<z.ZodString>>;
534
+ }, z.core.$strict>>;
535
+ }, z.core.$strict>>;
536
+ target: z.ZodDiscriminatedUnion<[z.ZodObject<{
537
+ kind: z.ZodLiteral<"live">;
538
+ }, z.core.$strict>, z.ZodObject<{
539
+ kind: z.ZodLiteral<"version">;
540
+ versionId: z.ZodString;
541
+ }, z.core.$strict>, z.ZodObject<{
542
+ kind: z.ZodLiteral<"branch">;
543
+ branch: z.ZodString;
544
+ }, z.core.$strict>, z.ZodObject<{
545
+ kind: z.ZodLiteral<"all_versions">;
546
+ }, z.core.$strict>], "kind">;
547
+ source: z.ZodObject<{
548
+ kind: z.ZodEnum<{
549
+ config: "config";
550
+ system: "system";
551
+ managed: "managed";
552
+ }>;
553
+ reference: z.ZodString;
554
+ }, z.core.$strict>;
555
+ id: z.ZodCustom<`grt_${string}`, `grt_${string}`>;
556
+ }, z.core.$strict>;
557
+ generation: z.ZodNumber;
558
+ status: z.ZodEnum<{
559
+ active: "active";
560
+ expired: "expired";
561
+ scheduled: "scheduled";
562
+ }>;
563
+ sourceExplanation: z.ZodObject<{
564
+ editable: z.ZodBoolean;
565
+ label: z.ZodString;
566
+ detail: z.ZodString;
567
+ }, z.core.$strict>;
568
+ createdAt: z.ZodString;
569
+ updatedAt: z.ZodString;
570
+ }, z.core.$strict>;
571
+ capabilities: z.ZodArray<z.ZodEnum<{
572
+ "page.view": "page.view";
573
+ "comments.read": "comments.read";
574
+ "comments.write": "comments.write";
575
+ "content.publish": "content.publish";
576
+ "access.manage": "access.manage";
577
+ }>>;
578
+ }, z.core.$strict>>;
579
+ evaluatedGrants: z.ZodArray<z.ZodObject<{
580
+ grant: z.ZodObject<{
581
+ grant: z.ZodObject<{
582
+ name: z.ZodOptional<z.ZodString>;
583
+ audience: z.ZodDiscriminatedUnion<[z.ZodObject<{
584
+ kind: z.ZodLiteral<"public">;
585
+ }, z.core.$strict>, z.ZodObject<{
586
+ kind: z.ZodLiteral<"team">;
587
+ teamId: z.ZodString;
588
+ }, z.core.$strict>, z.ZodObject<{
589
+ kind: z.ZodLiteral<"person">;
590
+ personId: z.ZodString;
591
+ }, z.core.$strict>, z.ZodObject<{
592
+ kind: z.ZodLiteral<"link">;
593
+ linkId: z.ZodString;
594
+ }, z.core.$strict>, z.ZodObject<{
595
+ kind: z.ZodLiteral<"password">;
596
+ credentialId: z.ZodString;
597
+ }, z.core.$strict>, z.ZodObject<{
598
+ kind: z.ZodLiteral<"machine">;
599
+ machineId: z.ZodString;
600
+ }, z.core.$strict>, z.ZodObject<{
601
+ kind: z.ZodLiteral<"external">;
602
+ issuer: z.ZodString;
603
+ subject: z.ZodString;
604
+ }, z.core.$strict>], "kind">;
605
+ resources: z.ZodObject<{
606
+ include: z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>;
607
+ exclude: z.ZodDefault<z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>>;
608
+ }, z.core.$strict>;
609
+ capabilities: z.ZodArray<z.ZodEnum<{
610
+ "page.view": "page.view";
611
+ "comments.read": "comments.read";
612
+ "comments.write": "comments.write";
613
+ "content.publish": "content.publish";
614
+ "access.manage": "access.manage";
615
+ }>>;
616
+ constraints: z.ZodDefault<z.ZodObject<{
617
+ notBefore: z.ZodOptional<z.ZodString>;
618
+ expiresAt: z.ZodOptional<z.ZodString>;
619
+ maxUses: z.ZodOptional<z.ZodNumber>;
620
+ requireVerifiedEmail: z.ZodOptional<z.ZodBoolean>;
621
+ network: z.ZodOptional<z.ZodObject<{
622
+ ipCidrs: z.ZodOptional<z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>>;
623
+ countries: z.ZodOptional<z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>>;
624
+ excludedCountries: z.ZodOptional<z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>>;
625
+ excludedUserAgentSubstrings: z.ZodOptional<z.ZodArray<z.ZodString>>;
626
+ }, z.core.$strict>>;
627
+ }, z.core.$strict>>;
628
+ target: z.ZodDiscriminatedUnion<[z.ZodObject<{
629
+ kind: z.ZodLiteral<"live">;
630
+ }, z.core.$strict>, z.ZodObject<{
631
+ kind: z.ZodLiteral<"version">;
632
+ versionId: z.ZodString;
633
+ }, z.core.$strict>, z.ZodObject<{
634
+ kind: z.ZodLiteral<"branch">;
635
+ branch: z.ZodString;
636
+ }, z.core.$strict>, z.ZodObject<{
637
+ kind: z.ZodLiteral<"all_versions">;
638
+ }, z.core.$strict>], "kind">;
639
+ source: z.ZodObject<{
640
+ kind: z.ZodEnum<{
641
+ config: "config";
642
+ system: "system";
643
+ managed: "managed";
644
+ }>;
645
+ reference: z.ZodString;
646
+ }, z.core.$strict>;
647
+ id: z.ZodCustom<`grt_${string}`, `grt_${string}`>;
648
+ }, z.core.$strict>;
649
+ generation: z.ZodNumber;
650
+ status: z.ZodEnum<{
651
+ active: "active";
652
+ expired: "expired";
653
+ scheduled: "scheduled";
654
+ }>;
655
+ sourceExplanation: z.ZodObject<{
656
+ editable: z.ZodBoolean;
657
+ label: z.ZodString;
658
+ detail: z.ZodString;
659
+ }, z.core.$strict>;
660
+ createdAt: z.ZodString;
661
+ updatedAt: z.ZodString;
662
+ }, z.core.$strict>;
663
+ failures: z.ZodArray<z.ZodEnum<{
664
+ network: "network";
665
+ target: "target";
666
+ expired: "expired";
667
+ audience: "audience";
668
+ space_unclaimed_config: "space_unclaimed_config";
669
+ invalid_time: "invalid_time";
670
+ not_before: "not_before";
671
+ max_uses: "max_uses";
672
+ verified_email: "verified_email";
673
+ resource_not_included: "resource_not_included";
674
+ resource_excluded: "resource_excluded";
675
+ }>>;
676
+ }, z.core.$strict>>;
677
+ }, z.core.$strict>;
678
+ export type GrantCheck = z.infer<typeof grantCheckSchema>;
679
+ export declare const passwordCredentialCreateSchema: z.ZodObject<{
680
+ password: z.ZodString;
681
+ name: z.ZodString;
682
+ resources: z.ZodObject<{
683
+ include: z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>;
684
+ exclude: z.ZodDefault<z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>>;
685
+ }, z.core.$strict>;
686
+ capabilities: z.ZodArray<z.ZodEnum<{
687
+ "page.view": "page.view";
688
+ "comments.read": "comments.read";
689
+ "comments.write": "comments.write";
690
+ "content.publish": "content.publish";
691
+ "access.manage": "access.manage";
692
+ }>>;
693
+ constraints: z.ZodDefault<z.ZodObject<{
694
+ notBefore: z.ZodOptional<z.ZodString>;
695
+ expiresAt: z.ZodOptional<z.ZodString>;
696
+ maxUses: z.ZodOptional<z.ZodNumber>;
697
+ requireVerifiedEmail: z.ZodOptional<z.ZodBoolean>;
698
+ network: z.ZodOptional<z.ZodObject<{
699
+ ipCidrs: z.ZodOptional<z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>>;
700
+ countries: z.ZodOptional<z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>>;
701
+ excludedCountries: z.ZodOptional<z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>>;
702
+ excludedUserAgentSubstrings: z.ZodOptional<z.ZodArray<z.ZodString>>;
703
+ }, z.core.$strict>>;
704
+ }, z.core.$strict>>;
705
+ target: z.ZodDiscriminatedUnion<[z.ZodObject<{
706
+ kind: z.ZodLiteral<"live">;
707
+ }, z.core.$strict>, z.ZodObject<{
708
+ kind: z.ZodLiteral<"version">;
709
+ versionId: z.ZodString;
710
+ }, z.core.$strict>, z.ZodObject<{
711
+ kind: z.ZodLiteral<"branch">;
712
+ branch: z.ZodString;
713
+ }, z.core.$strict>, z.ZodObject<{
714
+ kind: z.ZodLiteral<"all_versions">;
715
+ }, z.core.$strict>], "kind">;
716
+ }, z.core.$strict>;
717
+ export type PasswordCredentialCreate = z.infer<typeof passwordCredentialCreateSchema>;
718
+ export declare const passwordCredentialRotateSchema: z.ZodObject<{
719
+ password: z.ZodString;
720
+ }, z.core.$strict>;
721
+ export type PasswordCredentialRotate = z.infer<typeof passwordCredentialRotateSchema>;
722
+ export declare const machineCredentialCreateSchema: z.ZodObject<{
723
+ name: z.ZodString;
724
+ resources: z.ZodObject<{
725
+ include: z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>;
726
+ exclude: z.ZodDefault<z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>>;
727
+ }, z.core.$strict>;
728
+ capabilities: z.ZodArray<z.ZodEnum<{
729
+ "page.view": "page.view";
730
+ "comments.read": "comments.read";
731
+ "comments.write": "comments.write";
732
+ "content.publish": "content.publish";
733
+ "access.manage": "access.manage";
734
+ }>>;
735
+ constraints: z.ZodDefault<z.ZodObject<{
736
+ notBefore: z.ZodOptional<z.ZodString>;
737
+ expiresAt: z.ZodOptional<z.ZodString>;
738
+ maxUses: z.ZodOptional<z.ZodNumber>;
739
+ requireVerifiedEmail: z.ZodOptional<z.ZodBoolean>;
740
+ network: z.ZodOptional<z.ZodObject<{
741
+ ipCidrs: z.ZodOptional<z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>>;
742
+ countries: z.ZodOptional<z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>>;
743
+ excludedCountries: z.ZodOptional<z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>>;
744
+ excludedUserAgentSubstrings: z.ZodOptional<z.ZodArray<z.ZodString>>;
745
+ }, z.core.$strict>>;
746
+ }, z.core.$strict>>;
747
+ target: z.ZodDiscriminatedUnion<[z.ZodObject<{
748
+ kind: z.ZodLiteral<"live">;
749
+ }, z.core.$strict>, z.ZodObject<{
750
+ kind: z.ZodLiteral<"version">;
751
+ versionId: z.ZodString;
752
+ }, z.core.$strict>, z.ZodObject<{
753
+ kind: z.ZodLiteral<"branch">;
754
+ branch: z.ZodString;
755
+ }, z.core.$strict>, z.ZodObject<{
756
+ kind: z.ZodLiteral<"all_versions">;
757
+ }, z.core.$strict>], "kind">;
758
+ }, z.core.$strict>;
759
+ export type MachineCredentialCreate = z.infer<typeof machineCredentialCreateSchema>;
760
+ export declare const passwordCredentialSchema: z.ZodObject<{
761
+ id: z.ZodCustom<`pwd_${string}`, `pwd_${string}`>;
762
+ grant: z.ZodObject<{
763
+ grant: z.ZodObject<{
764
+ name: z.ZodOptional<z.ZodString>;
765
+ audience: z.ZodDiscriminatedUnion<[z.ZodObject<{
766
+ kind: z.ZodLiteral<"public">;
767
+ }, z.core.$strict>, z.ZodObject<{
768
+ kind: z.ZodLiteral<"team">;
769
+ teamId: z.ZodString;
770
+ }, z.core.$strict>, z.ZodObject<{
771
+ kind: z.ZodLiteral<"person">;
772
+ personId: z.ZodString;
773
+ }, z.core.$strict>, z.ZodObject<{
774
+ kind: z.ZodLiteral<"link">;
775
+ linkId: z.ZodString;
776
+ }, z.core.$strict>, z.ZodObject<{
777
+ kind: z.ZodLiteral<"password">;
778
+ credentialId: z.ZodString;
779
+ }, z.core.$strict>, z.ZodObject<{
780
+ kind: z.ZodLiteral<"machine">;
781
+ machineId: z.ZodString;
782
+ }, z.core.$strict>, z.ZodObject<{
783
+ kind: z.ZodLiteral<"external">;
784
+ issuer: z.ZodString;
785
+ subject: z.ZodString;
786
+ }, z.core.$strict>], "kind">;
787
+ resources: z.ZodObject<{
788
+ include: z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>;
789
+ exclude: z.ZodDefault<z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>>;
790
+ }, z.core.$strict>;
791
+ capabilities: z.ZodArray<z.ZodEnum<{
792
+ "page.view": "page.view";
793
+ "comments.read": "comments.read";
794
+ "comments.write": "comments.write";
795
+ "content.publish": "content.publish";
796
+ "access.manage": "access.manage";
797
+ }>>;
798
+ constraints: z.ZodDefault<z.ZodObject<{
799
+ notBefore: z.ZodOptional<z.ZodString>;
800
+ expiresAt: z.ZodOptional<z.ZodString>;
801
+ maxUses: z.ZodOptional<z.ZodNumber>;
802
+ requireVerifiedEmail: z.ZodOptional<z.ZodBoolean>;
803
+ network: z.ZodOptional<z.ZodObject<{
804
+ ipCidrs: z.ZodOptional<z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>>;
805
+ countries: z.ZodOptional<z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>>;
806
+ excludedCountries: z.ZodOptional<z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>>;
807
+ excludedUserAgentSubstrings: z.ZodOptional<z.ZodArray<z.ZodString>>;
808
+ }, z.core.$strict>>;
809
+ }, z.core.$strict>>;
810
+ target: z.ZodDiscriminatedUnion<[z.ZodObject<{
811
+ kind: z.ZodLiteral<"live">;
812
+ }, z.core.$strict>, z.ZodObject<{
813
+ kind: z.ZodLiteral<"version">;
814
+ versionId: z.ZodString;
815
+ }, z.core.$strict>, z.ZodObject<{
816
+ kind: z.ZodLiteral<"branch">;
817
+ branch: z.ZodString;
818
+ }, z.core.$strict>, z.ZodObject<{
819
+ kind: z.ZodLiteral<"all_versions">;
820
+ }, z.core.$strict>], "kind">;
821
+ source: z.ZodObject<{
822
+ kind: z.ZodEnum<{
823
+ config: "config";
824
+ system: "system";
825
+ managed: "managed";
826
+ }>;
827
+ reference: z.ZodString;
828
+ }, z.core.$strict>;
829
+ id: z.ZodCustom<`grt_${string}`, `grt_${string}`>;
830
+ }, z.core.$strict>;
831
+ generation: z.ZodNumber;
832
+ status: z.ZodEnum<{
833
+ active: "active";
834
+ expired: "expired";
835
+ scheduled: "scheduled";
836
+ }>;
837
+ sourceExplanation: z.ZodObject<{
838
+ editable: z.ZodBoolean;
839
+ label: z.ZodString;
840
+ detail: z.ZodString;
841
+ }, z.core.$strict>;
842
+ createdAt: z.ZodString;
843
+ updatedAt: z.ZodString;
844
+ }, z.core.$strict>;
845
+ rotatedAt: z.ZodNullable<z.ZodString>;
846
+ lastUsedAt: z.ZodNullable<z.ZodString>;
847
+ revokedAt: z.ZodNullable<z.ZodString>;
848
+ }, z.core.$strict>;
849
+ export type PasswordCredential = z.infer<typeof passwordCredentialSchema>;
850
+ export declare const machineCredentialSchema: z.ZodObject<{
851
+ id: z.ZodCustom<`mch_${string}`, `mch_${string}`>;
852
+ grant: z.ZodObject<{
853
+ grant: z.ZodObject<{
854
+ name: z.ZodOptional<z.ZodString>;
855
+ audience: z.ZodDiscriminatedUnion<[z.ZodObject<{
856
+ kind: z.ZodLiteral<"public">;
857
+ }, z.core.$strict>, z.ZodObject<{
858
+ kind: z.ZodLiteral<"team">;
859
+ teamId: z.ZodString;
860
+ }, z.core.$strict>, z.ZodObject<{
861
+ kind: z.ZodLiteral<"person">;
862
+ personId: z.ZodString;
863
+ }, z.core.$strict>, z.ZodObject<{
864
+ kind: z.ZodLiteral<"link">;
865
+ linkId: z.ZodString;
866
+ }, z.core.$strict>, z.ZodObject<{
867
+ kind: z.ZodLiteral<"password">;
868
+ credentialId: z.ZodString;
869
+ }, z.core.$strict>, z.ZodObject<{
870
+ kind: z.ZodLiteral<"machine">;
871
+ machineId: z.ZodString;
872
+ }, z.core.$strict>, z.ZodObject<{
873
+ kind: z.ZodLiteral<"external">;
874
+ issuer: z.ZodString;
875
+ subject: z.ZodString;
876
+ }, z.core.$strict>], "kind">;
877
+ resources: z.ZodObject<{
878
+ include: z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>;
879
+ exclude: z.ZodDefault<z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>>;
880
+ }, z.core.$strict>;
881
+ capabilities: z.ZodArray<z.ZodEnum<{
882
+ "page.view": "page.view";
883
+ "comments.read": "comments.read";
884
+ "comments.write": "comments.write";
885
+ "content.publish": "content.publish";
886
+ "access.manage": "access.manage";
887
+ }>>;
888
+ constraints: z.ZodDefault<z.ZodObject<{
889
+ notBefore: z.ZodOptional<z.ZodString>;
890
+ expiresAt: z.ZodOptional<z.ZodString>;
891
+ maxUses: z.ZodOptional<z.ZodNumber>;
892
+ requireVerifiedEmail: z.ZodOptional<z.ZodBoolean>;
893
+ network: z.ZodOptional<z.ZodObject<{
894
+ ipCidrs: z.ZodOptional<z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>>;
895
+ countries: z.ZodOptional<z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>>;
896
+ excludedCountries: z.ZodOptional<z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>>;
897
+ excludedUserAgentSubstrings: z.ZodOptional<z.ZodArray<z.ZodString>>;
898
+ }, z.core.$strict>>;
899
+ }, z.core.$strict>>;
900
+ target: z.ZodDiscriminatedUnion<[z.ZodObject<{
901
+ kind: z.ZodLiteral<"live">;
902
+ }, z.core.$strict>, z.ZodObject<{
903
+ kind: z.ZodLiteral<"version">;
904
+ versionId: z.ZodString;
905
+ }, z.core.$strict>, z.ZodObject<{
906
+ kind: z.ZodLiteral<"branch">;
907
+ branch: z.ZodString;
908
+ }, z.core.$strict>, z.ZodObject<{
909
+ kind: z.ZodLiteral<"all_versions">;
910
+ }, z.core.$strict>], "kind">;
911
+ source: z.ZodObject<{
912
+ kind: z.ZodEnum<{
913
+ config: "config";
914
+ system: "system";
915
+ managed: "managed";
916
+ }>;
917
+ reference: z.ZodString;
918
+ }, z.core.$strict>;
919
+ id: z.ZodCustom<`grt_${string}`, `grt_${string}`>;
920
+ }, z.core.$strict>;
921
+ generation: z.ZodNumber;
922
+ status: z.ZodEnum<{
923
+ active: "active";
924
+ expired: "expired";
925
+ scheduled: "scheduled";
926
+ }>;
927
+ sourceExplanation: z.ZodObject<{
928
+ editable: z.ZodBoolean;
929
+ label: z.ZodString;
930
+ detail: z.ZodString;
931
+ }, z.core.$strict>;
932
+ createdAt: z.ZodString;
933
+ updatedAt: z.ZodString;
934
+ }, z.core.$strict>;
935
+ tokenHint: z.ZodString;
936
+ rotatedAt: z.ZodNullable<z.ZodString>;
937
+ lastUsedAt: z.ZodNullable<z.ZodString>;
938
+ revokedAt: z.ZodNullable<z.ZodString>;
939
+ }, z.core.$strict>;
940
+ export type MachineCredential = z.infer<typeof machineCredentialSchema>;
941
+ export declare const machineCredentialSecretSchema: z.ZodObject<{
942
+ credential: z.ZodObject<{
943
+ id: z.ZodCustom<`mch_${string}`, `mch_${string}`>;
944
+ grant: z.ZodObject<{
945
+ grant: z.ZodObject<{
946
+ name: z.ZodOptional<z.ZodString>;
947
+ audience: z.ZodDiscriminatedUnion<[z.ZodObject<{
948
+ kind: z.ZodLiteral<"public">;
949
+ }, z.core.$strict>, z.ZodObject<{
950
+ kind: z.ZodLiteral<"team">;
951
+ teamId: z.ZodString;
952
+ }, z.core.$strict>, z.ZodObject<{
953
+ kind: z.ZodLiteral<"person">;
954
+ personId: z.ZodString;
955
+ }, z.core.$strict>, z.ZodObject<{
956
+ kind: z.ZodLiteral<"link">;
957
+ linkId: z.ZodString;
958
+ }, z.core.$strict>, z.ZodObject<{
959
+ kind: z.ZodLiteral<"password">;
960
+ credentialId: z.ZodString;
961
+ }, z.core.$strict>, z.ZodObject<{
962
+ kind: z.ZodLiteral<"machine">;
963
+ machineId: z.ZodString;
964
+ }, z.core.$strict>, z.ZodObject<{
965
+ kind: z.ZodLiteral<"external">;
966
+ issuer: z.ZodString;
967
+ subject: z.ZodString;
968
+ }, z.core.$strict>], "kind">;
969
+ resources: z.ZodObject<{
970
+ include: z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>;
971
+ exclude: z.ZodDefault<z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>>;
972
+ }, z.core.$strict>;
973
+ capabilities: z.ZodArray<z.ZodEnum<{
974
+ "page.view": "page.view";
975
+ "comments.read": "comments.read";
976
+ "comments.write": "comments.write";
977
+ "content.publish": "content.publish";
978
+ "access.manage": "access.manage";
979
+ }>>;
980
+ constraints: z.ZodDefault<z.ZodObject<{
981
+ notBefore: z.ZodOptional<z.ZodString>;
982
+ expiresAt: z.ZodOptional<z.ZodString>;
983
+ maxUses: z.ZodOptional<z.ZodNumber>;
984
+ requireVerifiedEmail: z.ZodOptional<z.ZodBoolean>;
985
+ network: z.ZodOptional<z.ZodObject<{
986
+ ipCidrs: z.ZodOptional<z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>>;
987
+ countries: z.ZodOptional<z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>>;
988
+ excludedCountries: z.ZodOptional<z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>>;
989
+ excludedUserAgentSubstrings: z.ZodOptional<z.ZodArray<z.ZodString>>;
990
+ }, z.core.$strict>>;
991
+ }, z.core.$strict>>;
992
+ target: z.ZodDiscriminatedUnion<[z.ZodObject<{
993
+ kind: z.ZodLiteral<"live">;
994
+ }, z.core.$strict>, z.ZodObject<{
995
+ kind: z.ZodLiteral<"version">;
996
+ versionId: z.ZodString;
997
+ }, z.core.$strict>, z.ZodObject<{
998
+ kind: z.ZodLiteral<"branch">;
999
+ branch: z.ZodString;
1000
+ }, z.core.$strict>, z.ZodObject<{
1001
+ kind: z.ZodLiteral<"all_versions">;
1002
+ }, z.core.$strict>], "kind">;
1003
+ source: z.ZodObject<{
1004
+ kind: z.ZodEnum<{
1005
+ config: "config";
1006
+ system: "system";
1007
+ managed: "managed";
1008
+ }>;
1009
+ reference: z.ZodString;
1010
+ }, z.core.$strict>;
1011
+ id: z.ZodCustom<`grt_${string}`, `grt_${string}`>;
1012
+ }, z.core.$strict>;
1013
+ generation: z.ZodNumber;
1014
+ status: z.ZodEnum<{
1015
+ active: "active";
1016
+ expired: "expired";
1017
+ scheduled: "scheduled";
1018
+ }>;
1019
+ sourceExplanation: z.ZodObject<{
1020
+ editable: z.ZodBoolean;
1021
+ label: z.ZodString;
1022
+ detail: z.ZodString;
1023
+ }, z.core.$strict>;
1024
+ createdAt: z.ZodString;
1025
+ updatedAt: z.ZodString;
1026
+ }, z.core.$strict>;
1027
+ tokenHint: z.ZodString;
1028
+ rotatedAt: z.ZodNullable<z.ZodString>;
1029
+ lastUsedAt: z.ZodNullable<z.ZodString>;
1030
+ revokedAt: z.ZodNullable<z.ZodString>;
1031
+ }, z.core.$strict>;
1032
+ token: z.ZodString;
1033
+ }, z.core.$strict>;
1034
+ export type MachineCredentialSecret = z.infer<typeof machineCredentialSecretSchema>;
1035
+ export declare const machineCredentialExchangeRequestSchema: z.ZodObject<{
1036
+ spaceId: z.ZodCustom<`spc_${string}`, `spc_${string}`>;
1037
+ host: z.ZodString;
1038
+ resource: z.ZodString;
1039
+ target: z.ZodDefault<z.ZodDiscriminatedUnion<[z.ZodObject<{
1040
+ kind: z.ZodLiteral<"live">;
1041
+ }, z.core.$strict>, z.ZodObject<{
1042
+ kind: z.ZodLiteral<"version">;
1043
+ versionId: z.ZodString;
1044
+ }, z.core.$strict>, z.ZodObject<{
1045
+ kind: z.ZodLiteral<"branch">;
1046
+ branch: z.ZodString;
1047
+ }, z.core.$strict>], "kind">>;
1048
+ }, z.core.$strict>;
1049
+ export type MachineCredentialExchangeRequest = z.infer<typeof machineCredentialExchangeRequestSchema>;
1050
+ export declare const machineCredentialExchangeResponseSchema: z.ZodObject<{
1051
+ token: z.ZodString;
1052
+ expiresAt: z.ZodString;
1053
+ }, z.core.$strict>;
1054
+ export declare const credentialRevocationSchema: z.ZodObject<{
1055
+ grantId: z.ZodCustom<`grt_${string}`, `grt_${string}`>;
1056
+ revoked: z.ZodLiteral<true>;
1057
+ }, z.core.$strict>;
1058
+ export declare const IDENTITY_CONNECTION_DEFAULT_TTL_SECONDS: number;
1059
+ export declare const EXTERNAL_IDENTITY_MAX_TTL_SECONDS: number;
1060
+ export declare const identityConnectionPublicKeySchema: z.ZodObject<{
1061
+ kid: z.ZodString;
1062
+ publicKey: z.ZodString;
1063
+ }, z.core.$strict>;
1064
+ export type IdentityConnectionPublicKey = z.infer<typeof identityConnectionPublicKeySchema>;
1065
+ export declare const identityConnectionCreateSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
1066
+ type: z.ZodLiteral<"oidc">;
1067
+ name: z.ZodString;
1068
+ issuer: z.ZodString;
1069
+ clientId: z.ZodString;
1070
+ clientSecret: z.ZodString;
1071
+ sessionTtlSeconds: z.ZodOptional<z.ZodNumber>;
1072
+ }, z.core.$strict>, z.ZodObject<{
1073
+ type: z.ZodLiteral<"signer">;
1074
+ name: z.ZodString;
1075
+ issuer: z.ZodString;
1076
+ authorizeUrl: z.ZodString;
1077
+ publicKeys: z.ZodArray<z.ZodObject<{
1078
+ kid: z.ZodString;
1079
+ publicKey: z.ZodString;
1080
+ }, z.core.$strict>>;
1081
+ sessionTtlSeconds: z.ZodOptional<z.ZodNumber>;
1082
+ }, z.core.$strict>], "type">;
1083
+ export type IdentityConnectionCreate = z.infer<typeof identityConnectionCreateSchema>;
1084
+ export declare const identityConnectionUpdateSchema: z.ZodObject<{
1085
+ name: z.ZodOptional<z.ZodString>;
1086
+ clientId: z.ZodOptional<z.ZodString>;
1087
+ clientSecret: z.ZodOptional<z.ZodString>;
1088
+ authorizeUrl: z.ZodOptional<z.ZodString>;
1089
+ publicKeys: z.ZodOptional<z.ZodArray<z.ZodObject<{
1090
+ kid: z.ZodString;
1091
+ publicKey: z.ZodString;
1092
+ }, z.core.$strict>>>;
1093
+ sessionTtlSeconds: z.ZodOptional<z.ZodNumber>;
1094
+ }, z.core.$strict>;
1095
+ export type IdentityConnectionUpdate = z.infer<typeof identityConnectionUpdateSchema>;
1096
+ export declare const identityConnectionSchema: z.ZodObject<{
1097
+ id: z.ZodCustom<`acn_${string}`, `acn_${string}`>;
1098
+ teamId: z.ZodString;
1099
+ type: z.ZodEnum<{
1100
+ oidc: "oidc";
1101
+ signer: "signer";
1102
+ }>;
1103
+ name: z.ZodString;
1104
+ issuer: z.ZodString;
1105
+ clientId: z.ZodNullable<z.ZodString>;
1106
+ clientSecretSet: z.ZodBoolean;
1107
+ authorizeUrl: z.ZodNullable<z.ZodString>;
1108
+ publicKeys: z.ZodArray<z.ZodObject<{
1109
+ kid: z.ZodString;
1110
+ publicKey: z.ZodString;
1111
+ }, z.core.$strict>>;
1112
+ sessionTtlSeconds: z.ZodNumber;
1113
+ createdAt: z.ZodString;
1114
+ rotatedAt: z.ZodNullable<z.ZodString>;
1115
+ lastUsedAt: z.ZodNullable<z.ZodString>;
1116
+ revokedAt: z.ZodNullable<z.ZodString>;
1117
+ }, z.core.$strict>;
1118
+ export type IdentityConnection = z.infer<typeof identityConnectionSchema>;
1119
+ export declare const externalGrantCreateSchema: z.ZodObject<{
1120
+ name: z.ZodString;
1121
+ resources: z.ZodObject<{
1122
+ include: z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>;
1123
+ exclude: z.ZodDefault<z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>>;
1124
+ }, z.core.$strict>;
1125
+ capabilities: z.ZodArray<z.ZodEnum<{
1126
+ "page.view": "page.view";
1127
+ "comments.read": "comments.read";
1128
+ "comments.write": "comments.write";
1129
+ "content.publish": "content.publish";
1130
+ "access.manage": "access.manage";
1131
+ }>>;
1132
+ constraints: z.ZodDefault<z.ZodObject<{
1133
+ notBefore: z.ZodOptional<z.ZodString>;
1134
+ expiresAt: z.ZodOptional<z.ZodString>;
1135
+ maxUses: z.ZodOptional<z.ZodNumber>;
1136
+ requireVerifiedEmail: z.ZodOptional<z.ZodBoolean>;
1137
+ network: z.ZodOptional<z.ZodObject<{
1138
+ ipCidrs: z.ZodOptional<z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>>;
1139
+ countries: z.ZodOptional<z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>>;
1140
+ excludedCountries: z.ZodOptional<z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>>;
1141
+ excludedUserAgentSubstrings: z.ZodOptional<z.ZodArray<z.ZodString>>;
1142
+ }, z.core.$strict>>;
1143
+ }, z.core.$strict>>;
1144
+ target: z.ZodDiscriminatedUnion<[z.ZodObject<{
1145
+ kind: z.ZodLiteral<"live">;
1146
+ }, z.core.$strict>, z.ZodObject<{
1147
+ kind: z.ZodLiteral<"version">;
1148
+ versionId: z.ZodString;
1149
+ }, z.core.$strict>, z.ZodObject<{
1150
+ kind: z.ZodLiteral<"branch">;
1151
+ branch: z.ZodString;
1152
+ }, z.core.$strict>, z.ZodObject<{
1153
+ kind: z.ZodLiteral<"all_versions">;
1154
+ }, z.core.$strict>], "kind">;
1155
+ connectionId: z.ZodCustom<`acn_${string}`, `acn_${string}`>;
1156
+ subject: z.ZodString;
1157
+ }, z.core.$strict>;
1158
+ export type ExternalGrantCreate = z.infer<typeof externalGrantCreateSchema>;