@spacefast/common 0.0.12 → 0.0.17

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