@oxy.so/contracts 4.17.0 → 4.22.0

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 (61) hide show
  1. package/dist/cjs/accountAccess.js +72 -0
  2. package/dist/cjs/agency.js +112 -1
  3. package/dist/cjs/applicationRoles.js +211 -0
  4. package/dist/cjs/client/check.js +9 -0
  5. package/dist/cjs/client/contentClaims.js +139 -0
  6. package/dist/cjs/client/index.js +37 -1
  7. package/dist/cjs/client/safety.js +183 -2
  8. package/dist/cjs/client/signIn.js +2 -0
  9. package/dist/cjs/contentClaims.js +246 -0
  10. package/dist/cjs/index.js +14 -3
  11. package/dist/cjs/safety.js +430 -1
  12. package/dist/cjs/serviceToken.js +14 -0
  13. package/dist/esm/accountAccess.js +69 -0
  14. package/dist/esm/agency.js +111 -0
  15. package/dist/esm/applicationRoles.js +207 -0
  16. package/dist/esm/client/check.js +8 -0
  17. package/dist/esm/client/contentClaims.js +134 -0
  18. package/dist/esm/client/index.js +2 -1
  19. package/dist/esm/client/safety.js +183 -2
  20. package/dist/esm/client/signIn.js +2 -0
  21. package/dist/esm/contentClaims.js +229 -0
  22. package/dist/esm/index.js +5 -1
  23. package/dist/esm/safety.js +423 -0
  24. package/dist/esm/serviceToken.js +11 -0
  25. package/dist/types/accountAccess.d.ts +128 -0
  26. package/dist/types/accountEmail.d.ts +2 -2
  27. package/dist/types/agency.d.ts +327 -2
  28. package/dist/types/agentKeys.d.ts +6 -6
  29. package/dist/types/applicationRoles.d.ts +438 -0
  30. package/dist/types/client/agentKeys.d.ts +2 -2
  31. package/dist/types/client/check.d.ts +3 -0
  32. package/dist/types/client/contentClaims.d.ts +106 -0
  33. package/dist/types/client/deviceSession.d.ts +1 -1
  34. package/dist/types/client/index.d.ts +2 -1
  35. package/dist/types/client/safety.d.ts +204 -4
  36. package/dist/types/client/signIn.d.ts +1 -1
  37. package/dist/types/contentClaims.d.ts +383 -0
  38. package/dist/types/deviceSession.d.ts +4 -4
  39. package/dist/types/email/messages.d.ts +4 -4
  40. package/dist/types/externalIdentity.d.ts +16 -16
  41. package/dist/types/index.d.ts +6 -2
  42. package/dist/types/inference/accountBilling.d.ts +2 -2
  43. package/dist/types/inference/aliaModelRelease.d.ts +8 -8
  44. package/dist/types/inference/catalogue.d.ts +26 -26
  45. package/dist/types/inference/inbox.d.ts +4 -4
  46. package/dist/types/inference/modelDocumentation.d.ts +16 -16
  47. package/dist/types/inference/providerConnection.d.ts +4 -4
  48. package/dist/types/inference/realtime.d.ts +74 -74
  49. package/dist/types/inference/request.d.ts +60 -60
  50. package/dist/types/inference/usage.d.ts +4 -4
  51. package/dist/types/products/access.d.ts +4 -4
  52. package/dist/types/safety.d.ts +2374 -2
  53. package/dist/types/serviceToken.d.ts +11 -0
  54. package/dist/types/sessionStatus.d.ts +4 -4
  55. package/dist/types/signIn.d.ts +5 -5
  56. package/dist/types/updates.d.ts +6 -6
  57. package/dist/types/userResponse.d.ts +8 -8
  58. package/package.json +5 -20
  59. package/dist/cjs/.tsbuildinfo +0 -1
  60. package/dist/esm/.tsbuildinfo +0 -1
  61. package/dist/types/.tsbuildinfo +0 -1
@@ -1,4 +1,6 @@
1
1
  import { z } from 'zod';
2
+ import { PURCHASE_APPROVAL_STATUSES, SAFETY_POLICY_VERSION, SUPERVISED_ACTIONS, SUPERVISION_CONSENT_VERSION, SUPERVISION_INVITATION_STATUSES, SUPERVISION_STATUSES } from './client/safety';
3
+ export { PURCHASE_APPROVAL_STATUSES, SAFETY_POLICY_VERSION, SUPERVISED_ACTIONS, SUPERVISION_CONSENT_VERSION, SUPERVISION_INVITATION_STATUSES, SUPERVISION_STATUSES, };
2
4
  /** The requester is authenticated by the bearer; applications cannot submit viewer IDs. */
3
5
  export declare const profileAccessInputSchema: z.ZodObject<{
4
6
  subjectAccountId: z.ZodString;
@@ -13,12 +15,2382 @@ export declare const profileAccessDecisionSchema: z.ZodObject<{
13
15
  policyVersion: z.ZodLiteral<"1">;
14
16
  }, "strict", z.ZodTypeAny, {
15
17
  allowed: boolean;
16
- reason: "unavailable" | "owner" | "public" | "private" | "blocked";
18
+ reason: "owner" | "unavailable" | "blocked" | "private" | "public";
17
19
  policyVersion: "1";
18
20
  }, {
19
21
  allowed: boolean;
20
- reason: "unavailable" | "owner" | "public" | "private" | "blocked";
22
+ reason: "owner" | "unavailable" | "blocked" | "private" | "public";
21
23
  policyVersion: "1";
22
24
  }>;
23
25
  export type ProfileAccessInput = z.infer<typeof profileAccessInputSchema>;
24
26
  export type ProfileAccessDecision = z.infer<typeof profileAccessDecisionSchema>;
27
+ /** Supervision is a personal-account safety policy, never a new login/account kind. */
28
+ export type SupervisedAction = (typeof SUPERVISED_ACTIONS)[number];
29
+ export declare const SAFETY_DECISION_REASONS: readonly ["allowed", "owner", "public", "private", "blocked", "unavailable", "unsupported_consumer", "contact_not_approved", "mature_content", "unrated_content", "approval_required"];
30
+ export declare const safetyDecisionSchema: z.ZodObject<{
31
+ allowed: z.ZodBoolean;
32
+ reason: z.ZodEnum<["allowed", "owner", "public", "private", "blocked", "unavailable", "unsupported_consumer", "contact_not_approved", "mature_content", "unrated_content", "approval_required"]>;
33
+ policyVersion: z.ZodLiteral<"2">;
34
+ }, "strict", z.ZodTypeAny, {
35
+ allowed: boolean;
36
+ reason: "owner" | "unavailable" | "allowed" | "blocked" | "private" | "public" | "unsupported_consumer" | "contact_not_approved" | "mature_content" | "unrated_content" | "approval_required";
37
+ policyVersion: "2";
38
+ }, {
39
+ allowed: boolean;
40
+ reason: "owner" | "unavailable" | "allowed" | "blocked" | "private" | "public" | "unsupported_consumer" | "contact_not_approved" | "mature_content" | "unrated_content" | "approval_required";
41
+ policyVersion: "2";
42
+ }>;
43
+ export type SafetyDecision = z.infer<typeof safetyDecisionSchema>;
44
+ export declare const profileAccessBatchInputSchema: z.ZodObject<{
45
+ subjectAccountIds: z.ZodEffects<z.ZodArray<z.ZodString, "many">, string[], string[]>;
46
+ }, "strict", z.ZodTypeAny, {
47
+ subjectAccountIds: string[];
48
+ }, {
49
+ subjectAccountIds: string[];
50
+ }>;
51
+ export declare const profileAccessBatchResponseSchema: z.ZodObject<{
52
+ items: z.ZodArray<z.ZodObject<{
53
+ subjectAccountId: z.ZodString;
54
+ decision: z.ZodObject<{
55
+ allowed: z.ZodBoolean;
56
+ reason: z.ZodEnum<["allowed", "owner", "public", "private", "blocked", "unavailable", "unsupported_consumer", "contact_not_approved", "mature_content", "unrated_content", "approval_required"]>;
57
+ policyVersion: z.ZodLiteral<"2">;
58
+ }, "strict", z.ZodTypeAny, {
59
+ allowed: boolean;
60
+ reason: "owner" | "unavailable" | "allowed" | "blocked" | "private" | "public" | "unsupported_consumer" | "contact_not_approved" | "mature_content" | "unrated_content" | "approval_required";
61
+ policyVersion: "2";
62
+ }, {
63
+ allowed: boolean;
64
+ reason: "owner" | "unavailable" | "allowed" | "blocked" | "private" | "public" | "unsupported_consumer" | "contact_not_approved" | "mature_content" | "unrated_content" | "approval_required";
65
+ policyVersion: "2";
66
+ }>;
67
+ }, "strict", z.ZodTypeAny, {
68
+ decision: {
69
+ allowed: boolean;
70
+ reason: "owner" | "unavailable" | "allowed" | "blocked" | "private" | "public" | "unsupported_consumer" | "contact_not_approved" | "mature_content" | "unrated_content" | "approval_required";
71
+ policyVersion: "2";
72
+ };
73
+ subjectAccountId: string;
74
+ }, {
75
+ decision: {
76
+ allowed: boolean;
77
+ reason: "owner" | "unavailable" | "allowed" | "blocked" | "private" | "public" | "unsupported_consumer" | "contact_not_approved" | "mature_content" | "unrated_content" | "approval_required";
78
+ policyVersion: "2";
79
+ };
80
+ subjectAccountId: string;
81
+ }>, "many">;
82
+ }, "strict", z.ZodTypeAny, {
83
+ items: {
84
+ decision: {
85
+ allowed: boolean;
86
+ reason: "owner" | "unavailable" | "allowed" | "blocked" | "private" | "public" | "unsupported_consumer" | "contact_not_approved" | "mature_content" | "unrated_content" | "approval_required";
87
+ policyVersion: "2";
88
+ };
89
+ subjectAccountId: string;
90
+ }[];
91
+ }, {
92
+ items: {
93
+ decision: {
94
+ allowed: boolean;
95
+ reason: "owner" | "unavailable" | "allowed" | "blocked" | "private" | "public" | "unsupported_consumer" | "contact_not_approved" | "mature_content" | "unrated_content" | "approval_required";
96
+ policyVersion: "2";
97
+ };
98
+ subjectAccountId: string;
99
+ }[];
100
+ }>;
101
+ export declare const MESSAGE_ACCESS_MAX_RESOURCES = 100;
102
+ export declare const MESSAGE_ACCESS_MAX_PARTICIPANTS = 1024;
103
+ export declare const MESSAGE_ACCESS_MAX_SUPERVISED_PARTICIPANTS = 256;
104
+ export declare const MESSAGE_ACCESS_MAX_PARTICIPANT_SLOTS = 4096;
105
+ /** Leaves room for the original requester proof in a 512 KiB request. */
106
+ export declare const MESSAGE_ACCESS_MAX_INPUT_BYTES: number;
107
+ export declare const messageAccessInputSchema: z.ZodObject<{
108
+ participantAccountIds: z.ZodEffects<z.ZodArray<z.ZodString, "many">, string[], string[]>;
109
+ resourceId: z.ZodString;
110
+ }, "strict", z.ZodTypeAny, {
111
+ resourceId: string;
112
+ participantAccountIds: string[];
113
+ }, {
114
+ resourceId: string;
115
+ participantAccountIds: string[];
116
+ }>;
117
+ export declare const contactAccessInputSchema: z.ZodObject<{
118
+ targetAccountIds: z.ZodEffects<z.ZodArray<z.ZodString, "many">, string[], string[]>;
119
+ }, "strict", z.ZodTypeAny, {
120
+ targetAccountIds: string[];
121
+ }, {
122
+ targetAccountIds: string[];
123
+ }>;
124
+ export declare const contactAccessResponseSchema: z.ZodObject<{
125
+ items: z.ZodArray<z.ZodObject<{
126
+ targetAccountId: z.ZodString;
127
+ decision: z.ZodObject<{
128
+ allowed: z.ZodBoolean;
129
+ reason: z.ZodEnum<["allowed", "owner", "public", "private", "blocked", "unavailable", "unsupported_consumer", "contact_not_approved", "mature_content", "unrated_content", "approval_required"]>;
130
+ policyVersion: z.ZodLiteral<"2">;
131
+ }, "strict", z.ZodTypeAny, {
132
+ allowed: boolean;
133
+ reason: "owner" | "unavailable" | "allowed" | "blocked" | "private" | "public" | "unsupported_consumer" | "contact_not_approved" | "mature_content" | "unrated_content" | "approval_required";
134
+ policyVersion: "2";
135
+ }, {
136
+ allowed: boolean;
137
+ reason: "owner" | "unavailable" | "allowed" | "blocked" | "private" | "public" | "unsupported_consumer" | "contact_not_approved" | "mature_content" | "unrated_content" | "approval_required";
138
+ policyVersion: "2";
139
+ }>;
140
+ }, "strict", z.ZodTypeAny, {
141
+ decision: {
142
+ allowed: boolean;
143
+ reason: "owner" | "unavailable" | "allowed" | "blocked" | "private" | "public" | "unsupported_consumer" | "contact_not_approved" | "mature_content" | "unrated_content" | "approval_required";
144
+ policyVersion: "2";
145
+ };
146
+ targetAccountId: string;
147
+ }, {
148
+ decision: {
149
+ allowed: boolean;
150
+ reason: "owner" | "unavailable" | "allowed" | "blocked" | "private" | "public" | "unsupported_consumer" | "contact_not_approved" | "mature_content" | "unrated_content" | "approval_required";
151
+ policyVersion: "2";
152
+ };
153
+ targetAccountId: string;
154
+ }>, "many">;
155
+ }, "strict", z.ZodTypeAny, {
156
+ items: {
157
+ decision: {
158
+ allowed: boolean;
159
+ reason: "owner" | "unavailable" | "allowed" | "blocked" | "private" | "public" | "unsupported_consumer" | "contact_not_approved" | "mature_content" | "unrated_content" | "approval_required";
160
+ policyVersion: "2";
161
+ };
162
+ targetAccountId: string;
163
+ }[];
164
+ }, {
165
+ items: {
166
+ decision: {
167
+ allowed: boolean;
168
+ reason: "owner" | "unavailable" | "allowed" | "blocked" | "private" | "public" | "unsupported_consumer" | "contact_not_approved" | "mature_content" | "unrated_content" | "approval_required";
169
+ policyVersion: "2";
170
+ };
171
+ targetAccountId: string;
172
+ }[];
173
+ }>;
174
+ export declare const CONTENT_CLASSIFICATIONS: readonly ["general", "mature", "unrated"];
175
+ export declare const contentAccessInputSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
176
+ resourceId: z.ZodString;
177
+ classification: z.ZodEnum<["general", "mature", "unrated"]>;
178
+ authorAccountId: z.ZodOptional<z.ZodString>;
179
+ audience: z.ZodOptional<z.ZodEnum<["public", "private", "followers"]>>;
180
+ applicationAudienceAllowed: z.ZodOptional<z.ZodBoolean>;
181
+ applicationResourceGrant: z.ZodOptional<z.ZodBoolean>;
182
+ operation: z.ZodOptional<z.ZodEnum<["read", "manage_own"]>>;
183
+ }, "strict", z.ZodTypeAny, {
184
+ resourceId: string;
185
+ classification: "general" | "mature" | "unrated";
186
+ audience?: "followers" | "private" | "public" | undefined;
187
+ operation?: "read" | "manage_own" | undefined;
188
+ authorAccountId?: string | undefined;
189
+ applicationAudienceAllowed?: boolean | undefined;
190
+ applicationResourceGrant?: boolean | undefined;
191
+ }, {
192
+ resourceId: string;
193
+ classification: "general" | "mature" | "unrated";
194
+ audience?: "followers" | "private" | "public" | undefined;
195
+ operation?: "read" | "manage_own" | undefined;
196
+ authorAccountId?: string | undefined;
197
+ applicationAudienceAllowed?: boolean | undefined;
198
+ applicationResourceGrant?: boolean | undefined;
199
+ }>, {
200
+ resourceId: string;
201
+ classification: "general" | "mature" | "unrated";
202
+ audience?: "followers" | "private" | "public" | undefined;
203
+ operation?: "read" | "manage_own" | undefined;
204
+ authorAccountId?: string | undefined;
205
+ applicationAudienceAllowed?: boolean | undefined;
206
+ applicationResourceGrant?: boolean | undefined;
207
+ }, {
208
+ resourceId: string;
209
+ classification: "general" | "mature" | "unrated";
210
+ audience?: "followers" | "private" | "public" | undefined;
211
+ operation?: "read" | "manage_own" | undefined;
212
+ authorAccountId?: string | undefined;
213
+ applicationAudienceAllowed?: boolean | undefined;
214
+ applicationResourceGrant?: boolean | undefined;
215
+ }>, {
216
+ resourceId: string;
217
+ classification: "general" | "mature" | "unrated";
218
+ audience?: "followers" | "private" | "public" | undefined;
219
+ operation?: "read" | "manage_own" | undefined;
220
+ authorAccountId?: string | undefined;
221
+ applicationAudienceAllowed?: boolean | undefined;
222
+ applicationResourceGrant?: boolean | undefined;
223
+ }, {
224
+ resourceId: string;
225
+ classification: "general" | "mature" | "unrated";
226
+ audience?: "followers" | "private" | "public" | undefined;
227
+ operation?: "read" | "manage_own" | undefined;
228
+ authorAccountId?: string | undefined;
229
+ applicationAudienceAllowed?: boolean | undefined;
230
+ applicationResourceGrant?: boolean | undefined;
231
+ }>;
232
+ export declare const publicationPolicySchema: z.ZodObject<{
233
+ publicationAllowed: z.ZodBoolean;
234
+ requiredAudience: z.ZodNullable<z.ZodLiteral<"private">>;
235
+ collaborationAllowed: z.ZodBoolean;
236
+ federationAllowed: z.ZodBoolean;
237
+ policyVersion: z.ZodLiteral<"2">;
238
+ }, "strict", z.ZodTypeAny, {
239
+ policyVersion: "2";
240
+ publicationAllowed: boolean;
241
+ requiredAudience: "private" | null;
242
+ collaborationAllowed: boolean;
243
+ federationAllowed: boolean;
244
+ }, {
245
+ policyVersion: "2";
246
+ publicationAllowed: boolean;
247
+ requiredAudience: "private" | null;
248
+ collaborationAllowed: boolean;
249
+ federationAllowed: boolean;
250
+ }>;
251
+ export declare const publicationPoliciesInputSchema: z.ZodObject<{
252
+ authorAccountIds: z.ZodEffects<z.ZodArray<z.ZodString, "many">, string[], string[]>;
253
+ }, "strict", z.ZodTypeAny, {
254
+ authorAccountIds: string[];
255
+ }, {
256
+ authorAccountIds: string[];
257
+ }>;
258
+ export declare const publicationPoliciesResponseSchema: z.ZodObject<{
259
+ items: z.ZodArray<z.ZodObject<{
260
+ authorAccountId: z.ZodString;
261
+ policy: z.ZodObject<{
262
+ publicationAllowed: z.ZodBoolean;
263
+ requiredAudience: z.ZodNullable<z.ZodLiteral<"private">>;
264
+ collaborationAllowed: z.ZodBoolean;
265
+ federationAllowed: z.ZodBoolean;
266
+ policyVersion: z.ZodLiteral<"2">;
267
+ }, "strict", z.ZodTypeAny, {
268
+ policyVersion: "2";
269
+ publicationAllowed: boolean;
270
+ requiredAudience: "private" | null;
271
+ collaborationAllowed: boolean;
272
+ federationAllowed: boolean;
273
+ }, {
274
+ policyVersion: "2";
275
+ publicationAllowed: boolean;
276
+ requiredAudience: "private" | null;
277
+ collaborationAllowed: boolean;
278
+ federationAllowed: boolean;
279
+ }>;
280
+ }, "strict", z.ZodTypeAny, {
281
+ policy: {
282
+ policyVersion: "2";
283
+ publicationAllowed: boolean;
284
+ requiredAudience: "private" | null;
285
+ collaborationAllowed: boolean;
286
+ federationAllowed: boolean;
287
+ };
288
+ authorAccountId: string;
289
+ }, {
290
+ policy: {
291
+ policyVersion: "2";
292
+ publicationAllowed: boolean;
293
+ requiredAudience: "private" | null;
294
+ collaborationAllowed: boolean;
295
+ federationAllowed: boolean;
296
+ };
297
+ authorAccountId: string;
298
+ }>, "many">;
299
+ }, "strict", z.ZodTypeAny, {
300
+ items: {
301
+ policy: {
302
+ policyVersion: "2";
303
+ publicationAllowed: boolean;
304
+ requiredAudience: "private" | null;
305
+ collaborationAllowed: boolean;
306
+ federationAllowed: boolean;
307
+ };
308
+ authorAccountId: string;
309
+ }[];
310
+ }, {
311
+ items: {
312
+ policy: {
313
+ policyVersion: "2";
314
+ publicationAllowed: boolean;
315
+ requiredAudience: "private" | null;
316
+ collaborationAllowed: boolean;
317
+ federationAllowed: boolean;
318
+ };
319
+ authorAccountId: string;
320
+ }[];
321
+ }>;
322
+ export type PublicationPoliciesInput = z.infer<typeof publicationPoliciesInputSchema>;
323
+ export type PublicationPolicy = z.infer<typeof publicationPolicySchema>;
324
+ export declare const contentAccessBatchInputSchema: z.ZodObject<{
325
+ items: z.ZodEffects<z.ZodArray<z.ZodEffects<z.ZodEffects<z.ZodObject<{
326
+ resourceId: z.ZodString;
327
+ classification: z.ZodEnum<["general", "mature", "unrated"]>;
328
+ authorAccountId: z.ZodOptional<z.ZodString>;
329
+ audience: z.ZodOptional<z.ZodEnum<["public", "private", "followers"]>>;
330
+ applicationAudienceAllowed: z.ZodOptional<z.ZodBoolean>;
331
+ applicationResourceGrant: z.ZodOptional<z.ZodBoolean>;
332
+ operation: z.ZodOptional<z.ZodEnum<["read", "manage_own"]>>;
333
+ }, "strict", z.ZodTypeAny, {
334
+ resourceId: string;
335
+ classification: "general" | "mature" | "unrated";
336
+ audience?: "followers" | "private" | "public" | undefined;
337
+ operation?: "read" | "manage_own" | undefined;
338
+ authorAccountId?: string | undefined;
339
+ applicationAudienceAllowed?: boolean | undefined;
340
+ applicationResourceGrant?: boolean | undefined;
341
+ }, {
342
+ resourceId: string;
343
+ classification: "general" | "mature" | "unrated";
344
+ audience?: "followers" | "private" | "public" | undefined;
345
+ operation?: "read" | "manage_own" | undefined;
346
+ authorAccountId?: string | undefined;
347
+ applicationAudienceAllowed?: boolean | undefined;
348
+ applicationResourceGrant?: boolean | undefined;
349
+ }>, {
350
+ resourceId: string;
351
+ classification: "general" | "mature" | "unrated";
352
+ audience?: "followers" | "private" | "public" | undefined;
353
+ operation?: "read" | "manage_own" | undefined;
354
+ authorAccountId?: string | undefined;
355
+ applicationAudienceAllowed?: boolean | undefined;
356
+ applicationResourceGrant?: boolean | undefined;
357
+ }, {
358
+ resourceId: string;
359
+ classification: "general" | "mature" | "unrated";
360
+ audience?: "followers" | "private" | "public" | undefined;
361
+ operation?: "read" | "manage_own" | undefined;
362
+ authorAccountId?: string | undefined;
363
+ applicationAudienceAllowed?: boolean | undefined;
364
+ applicationResourceGrant?: boolean | undefined;
365
+ }>, {
366
+ resourceId: string;
367
+ classification: "general" | "mature" | "unrated";
368
+ audience?: "followers" | "private" | "public" | undefined;
369
+ operation?: "read" | "manage_own" | undefined;
370
+ authorAccountId?: string | undefined;
371
+ applicationAudienceAllowed?: boolean | undefined;
372
+ applicationResourceGrant?: boolean | undefined;
373
+ }, {
374
+ resourceId: string;
375
+ classification: "general" | "mature" | "unrated";
376
+ audience?: "followers" | "private" | "public" | undefined;
377
+ operation?: "read" | "manage_own" | undefined;
378
+ authorAccountId?: string | undefined;
379
+ applicationAudienceAllowed?: boolean | undefined;
380
+ applicationResourceGrant?: boolean | undefined;
381
+ }>, "many">, {
382
+ resourceId: string;
383
+ classification: "general" | "mature" | "unrated";
384
+ audience?: "followers" | "private" | "public" | undefined;
385
+ operation?: "read" | "manage_own" | undefined;
386
+ authorAccountId?: string | undefined;
387
+ applicationAudienceAllowed?: boolean | undefined;
388
+ applicationResourceGrant?: boolean | undefined;
389
+ }[], {
390
+ resourceId: string;
391
+ classification: "general" | "mature" | "unrated";
392
+ audience?: "followers" | "private" | "public" | undefined;
393
+ operation?: "read" | "manage_own" | undefined;
394
+ authorAccountId?: string | undefined;
395
+ applicationAudienceAllowed?: boolean | undefined;
396
+ applicationResourceGrant?: boolean | undefined;
397
+ }[]>;
398
+ }, "strict", z.ZodTypeAny, {
399
+ items: {
400
+ resourceId: string;
401
+ classification: "general" | "mature" | "unrated";
402
+ audience?: "followers" | "private" | "public" | undefined;
403
+ operation?: "read" | "manage_own" | undefined;
404
+ authorAccountId?: string | undefined;
405
+ applicationAudienceAllowed?: boolean | undefined;
406
+ applicationResourceGrant?: boolean | undefined;
407
+ }[];
408
+ }, {
409
+ items: {
410
+ resourceId: string;
411
+ classification: "general" | "mature" | "unrated";
412
+ audience?: "followers" | "private" | "public" | undefined;
413
+ operation?: "read" | "manage_own" | undefined;
414
+ authorAccountId?: string | undefined;
415
+ applicationAudienceAllowed?: boolean | undefined;
416
+ applicationResourceGrant?: boolean | undefined;
417
+ }[];
418
+ }>;
419
+ export declare const contentAccessBatchResponseSchema: z.ZodObject<{
420
+ items: z.ZodArray<z.ZodObject<{
421
+ resourceId: z.ZodString;
422
+ decision: z.ZodObject<{
423
+ allowed: z.ZodBoolean;
424
+ reason: z.ZodEnum<["allowed", "owner", "public", "private", "blocked", "unavailable", "unsupported_consumer", "contact_not_approved", "mature_content", "unrated_content", "approval_required"]>;
425
+ policyVersion: z.ZodLiteral<"2">;
426
+ }, "strict", z.ZodTypeAny, {
427
+ allowed: boolean;
428
+ reason: "owner" | "unavailable" | "allowed" | "blocked" | "private" | "public" | "unsupported_consumer" | "contact_not_approved" | "mature_content" | "unrated_content" | "approval_required";
429
+ policyVersion: "2";
430
+ }, {
431
+ allowed: boolean;
432
+ reason: "owner" | "unavailable" | "allowed" | "blocked" | "private" | "public" | "unsupported_consumer" | "contact_not_approved" | "mature_content" | "unrated_content" | "approval_required";
433
+ policyVersion: "2";
434
+ }>;
435
+ }, "strict", z.ZodTypeAny, {
436
+ decision: {
437
+ allowed: boolean;
438
+ reason: "owner" | "unavailable" | "allowed" | "blocked" | "private" | "public" | "unsupported_consumer" | "contact_not_approved" | "mature_content" | "unrated_content" | "approval_required";
439
+ policyVersion: "2";
440
+ };
441
+ resourceId: string;
442
+ }, {
443
+ decision: {
444
+ allowed: boolean;
445
+ reason: "owner" | "unavailable" | "allowed" | "blocked" | "private" | "public" | "unsupported_consumer" | "contact_not_approved" | "mature_content" | "unrated_content" | "approval_required";
446
+ policyVersion: "2";
447
+ };
448
+ resourceId: string;
449
+ }>, "many">;
450
+ }, "strict", z.ZodTypeAny, {
451
+ items: {
452
+ decision: {
453
+ allowed: boolean;
454
+ reason: "owner" | "unavailable" | "allowed" | "blocked" | "private" | "public" | "unsupported_consumer" | "contact_not_approved" | "mature_content" | "unrated_content" | "approval_required";
455
+ policyVersion: "2";
456
+ };
457
+ resourceId: string;
458
+ }[];
459
+ }, {
460
+ items: {
461
+ decision: {
462
+ allowed: boolean;
463
+ reason: "owner" | "unavailable" | "allowed" | "blocked" | "private" | "public" | "unsupported_consumer" | "contact_not_approved" | "mature_content" | "unrated_content" | "approval_required";
464
+ policyVersion: "2";
465
+ };
466
+ resourceId: string;
467
+ }[];
468
+ }>;
469
+ /** A reviewed background consumer may decide delivery, but never authenticate as the sender. */
470
+ export declare const deliveryAccessInputSchema: z.ZodObject<{
471
+ participantAccountIds: z.ZodEffects<z.ZodArray<z.ZodString, "many">, string[], string[]>;
472
+ resourceId: z.ZodString;
473
+ } & {
474
+ senderAccountId: z.ZodString;
475
+ }, "strict", z.ZodTypeAny, {
476
+ resourceId: string;
477
+ participantAccountIds: string[];
478
+ senderAccountId: string;
479
+ }, {
480
+ resourceId: string;
481
+ participantAccountIds: string[];
482
+ senderAccountId: string;
483
+ }>;
484
+ export declare const messageAccessBatchInputSchema: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodObject<{
485
+ items: z.ZodArray<z.ZodTypeAny, "many">;
486
+ }, "strict", z.ZodTypeAny, {
487
+ items: any[];
488
+ }, {
489
+ items: any[];
490
+ }>, {
491
+ items: any[];
492
+ }, {
493
+ items: any[];
494
+ }>, {
495
+ items: any[];
496
+ }, {
497
+ items: any[];
498
+ }>, {
499
+ items: any[];
500
+ }, {
501
+ items: any[];
502
+ }>;
503
+ export declare const deliveryAccessBatchInputSchema: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodObject<{
504
+ items: z.ZodArray<z.ZodTypeAny, "many">;
505
+ }, "strict", z.ZodTypeAny, {
506
+ items: any[];
507
+ }, {
508
+ items: any[];
509
+ }>, {
510
+ items: any[];
511
+ }, {
512
+ items: any[];
513
+ }>, {
514
+ items: any[];
515
+ }, {
516
+ items: any[];
517
+ }>, {
518
+ items: any[];
519
+ }, {
520
+ items: any[];
521
+ }>;
522
+ export declare const messageAccessBatchResponseSchema: z.ZodObject<{
523
+ items: z.ZodArray<z.ZodObject<{
524
+ resourceId: z.ZodString;
525
+ decision: z.ZodObject<{
526
+ allowed: z.ZodBoolean;
527
+ reason: z.ZodEnum<["allowed", "owner", "public", "private", "blocked", "unavailable", "unsupported_consumer", "contact_not_approved", "mature_content", "unrated_content", "approval_required"]>;
528
+ policyVersion: z.ZodLiteral<"2">;
529
+ }, "strict", z.ZodTypeAny, {
530
+ allowed: boolean;
531
+ reason: "owner" | "unavailable" | "allowed" | "blocked" | "private" | "public" | "unsupported_consumer" | "contact_not_approved" | "mature_content" | "unrated_content" | "approval_required";
532
+ policyVersion: "2";
533
+ }, {
534
+ allowed: boolean;
535
+ reason: "owner" | "unavailable" | "allowed" | "blocked" | "private" | "public" | "unsupported_consumer" | "contact_not_approved" | "mature_content" | "unrated_content" | "approval_required";
536
+ policyVersion: "2";
537
+ }>;
538
+ }, "strict", z.ZodTypeAny, {
539
+ decision: {
540
+ allowed: boolean;
541
+ reason: "owner" | "unavailable" | "allowed" | "blocked" | "private" | "public" | "unsupported_consumer" | "contact_not_approved" | "mature_content" | "unrated_content" | "approval_required";
542
+ policyVersion: "2";
543
+ };
544
+ resourceId: string;
545
+ }, {
546
+ decision: {
547
+ allowed: boolean;
548
+ reason: "owner" | "unavailable" | "allowed" | "blocked" | "private" | "public" | "unsupported_consumer" | "contact_not_approved" | "mature_content" | "unrated_content" | "approval_required";
549
+ policyVersion: "2";
550
+ };
551
+ resourceId: string;
552
+ }>, "many">;
553
+ }, "strict", z.ZodTypeAny, {
554
+ items: {
555
+ decision: {
556
+ allowed: boolean;
557
+ reason: "owner" | "unavailable" | "allowed" | "blocked" | "private" | "public" | "unsupported_consumer" | "contact_not_approved" | "mature_content" | "unrated_content" | "approval_required";
558
+ policyVersion: "2";
559
+ };
560
+ resourceId: string;
561
+ }[];
562
+ }, {
563
+ items: {
564
+ decision: {
565
+ allowed: boolean;
566
+ reason: "owner" | "unavailable" | "allowed" | "blocked" | "private" | "public" | "unsupported_consumer" | "contact_not_approved" | "mature_content" | "unrated_content" | "approval_required";
567
+ policyVersion: "2";
568
+ };
569
+ resourceId: string;
570
+ }[];
571
+ }>;
572
+ export type MessageAccessBatchInput = z.infer<typeof messageAccessBatchInputSchema>;
573
+ export type DeliveryAccessBatchInput = z.infer<typeof deliveryAccessBatchInputSchema>;
574
+ /** Live socket-recipient proof; a request ID correlates the result and never identifies an account. */
575
+ export declare const messagingSessionsInputSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
576
+ items: z.ZodArray<z.ZodObject<{
577
+ requestId: z.ZodString;
578
+ accessToken: z.ZodString;
579
+ }, "strict", z.ZodTypeAny, {
580
+ accessToken: string;
581
+ requestId: string;
582
+ }, {
583
+ accessToken: string;
584
+ requestId: string;
585
+ }>, "many">;
586
+ }, "strict", z.ZodTypeAny, {
587
+ items: {
588
+ accessToken: string;
589
+ requestId: string;
590
+ }[];
591
+ }, {
592
+ items: {
593
+ accessToken: string;
594
+ requestId: string;
595
+ }[];
596
+ }>, {
597
+ items: {
598
+ accessToken: string;
599
+ requestId: string;
600
+ }[];
601
+ }, {
602
+ items: {
603
+ accessToken: string;
604
+ requestId: string;
605
+ }[];
606
+ }>, {
607
+ items: {
608
+ accessToken: string;
609
+ requestId: string;
610
+ }[];
611
+ }, {
612
+ items: {
613
+ accessToken: string;
614
+ requestId: string;
615
+ }[];
616
+ }>;
617
+ export declare const messagingSessionsResponseSchema: z.ZodObject<{
618
+ items: z.ZodArray<z.ZodDiscriminatedUnion<"allowed", [z.ZodObject<{
619
+ requestId: z.ZodString;
620
+ allowed: z.ZodLiteral<true>;
621
+ accountId: z.ZodString;
622
+ }, "strict", z.ZodTypeAny, {
623
+ accountId: string;
624
+ allowed: true;
625
+ requestId: string;
626
+ }, {
627
+ accountId: string;
628
+ allowed: true;
629
+ requestId: string;
630
+ }>, z.ZodObject<{
631
+ requestId: z.ZodString;
632
+ allowed: z.ZodLiteral<false>;
633
+ }, "strict", z.ZodTypeAny, {
634
+ allowed: false;
635
+ requestId: string;
636
+ }, {
637
+ allowed: false;
638
+ requestId: string;
639
+ }>]>, "many">;
640
+ }, "strict", z.ZodTypeAny, {
641
+ items: ({
642
+ accountId: string;
643
+ allowed: true;
644
+ requestId: string;
645
+ } | {
646
+ allowed: false;
647
+ requestId: string;
648
+ })[];
649
+ }, {
650
+ items: ({
651
+ accountId: string;
652
+ allowed: true;
653
+ requestId: string;
654
+ } | {
655
+ allowed: false;
656
+ requestId: string;
657
+ })[];
658
+ }>;
659
+ export type MessagingSessionsInput = z.infer<typeof messagingSessionsInputSchema>;
660
+ export declare const safetyRequesterSchema: z.ZodUnion<[z.ZodObject<{
661
+ accessToken: z.ZodNullable<z.ZodString>;
662
+ }, "strict", z.ZodTypeAny, {
663
+ accessToken: string | null;
664
+ }, {
665
+ accessToken: string | null;
666
+ }>, z.ZodObject<{
667
+ connectionToken: z.ZodString;
668
+ }, "strict", z.ZodTypeAny, {
669
+ connectionToken: string;
670
+ }, {
671
+ connectionToken: string;
672
+ }>]>;
673
+ export type SafetyRequester = z.infer<typeof safetyRequesterSchema>;
674
+ export type ProfileAccessBatchInput = z.infer<typeof profileAccessBatchInputSchema>;
675
+ export type MessageAccessInput = z.infer<typeof messageAccessInputSchema>;
676
+ export type ContactAccessInput = z.infer<typeof contactAccessInputSchema>;
677
+ export type ContentAccessInput = z.infer<typeof contentAccessInputSchema>;
678
+ export type ContentAccessBatchInput = z.infer<typeof contentAccessBatchInputSchema>;
679
+ export type DeliveryAccessInput = z.infer<typeof deliveryAccessInputSchema>;
680
+ export declare const supervisionSchema: z.ZodObject<{
681
+ childAccountId: z.ZodString;
682
+ guardianAccountId: z.ZodNullable<z.ZodString>;
683
+ status: z.ZodEnum<["active", "orphaned", "ended"]>;
684
+ policyVersion: z.ZodLiteral<"2">;
685
+ consentVersion: z.ZodLiteral<"1">;
686
+ createdAt: z.ZodString;
687
+ }, "strict", z.ZodTypeAny, {
688
+ status: "active" | "orphaned" | "ended";
689
+ createdAt: string;
690
+ policyVersion: "2";
691
+ childAccountId: string;
692
+ guardianAccountId: string | null;
693
+ consentVersion: "1";
694
+ }, {
695
+ status: "active" | "orphaned" | "ended";
696
+ createdAt: string;
697
+ policyVersion: "2";
698
+ childAccountId: string;
699
+ guardianAccountId: string | null;
700
+ consentVersion: "1";
701
+ }>;
702
+ export declare const supervisionInvitationSchema: z.ZodObject<{
703
+ id: z.ZodString;
704
+ childAccountId: z.ZodString;
705
+ guardianAccountId: z.ZodString;
706
+ status: z.ZodEnum<["pending", "accepted", "cancelled"]>;
707
+ expiresAt: z.ZodString;
708
+ consentVersion: z.ZodLiteral<"1">;
709
+ createdAt: z.ZodString;
710
+ }, "strict", z.ZodTypeAny, {
711
+ status: "pending" | "accepted" | "cancelled";
712
+ createdAt: string;
713
+ id: string;
714
+ expiresAt: string;
715
+ childAccountId: string;
716
+ guardianAccountId: string;
717
+ consentVersion: "1";
718
+ }, {
719
+ status: "pending" | "accepted" | "cancelled";
720
+ createdAt: string;
721
+ id: string;
722
+ expiresAt: string;
723
+ childAccountId: string;
724
+ guardianAccountId: string;
725
+ consentVersion: "1";
726
+ }>;
727
+ export declare const supervisionContactSchema: z.ZodObject<{
728
+ childAccountId: z.ZodString;
729
+ contactAccountId: z.ZodString;
730
+ approvedAt: z.ZodString;
731
+ }, "strict", z.ZodTypeAny, {
732
+ childAccountId: string;
733
+ contactAccountId: string;
734
+ approvedAt: string;
735
+ }, {
736
+ childAccountId: string;
737
+ contactAccountId: string;
738
+ approvedAt: string;
739
+ }>;
740
+ export declare const supervisionStateSchema: z.ZodObject<{
741
+ self: z.ZodNullable<z.ZodObject<{
742
+ childAccountId: z.ZodString;
743
+ guardianAccountId: z.ZodNullable<z.ZodString>;
744
+ status: z.ZodEnum<["active", "orphaned", "ended"]>;
745
+ policyVersion: z.ZodLiteral<"2">;
746
+ consentVersion: z.ZodLiteral<"1">;
747
+ createdAt: z.ZodString;
748
+ }, "strict", z.ZodTypeAny, {
749
+ status: "active" | "orphaned" | "ended";
750
+ createdAt: string;
751
+ policyVersion: "2";
752
+ childAccountId: string;
753
+ guardianAccountId: string | null;
754
+ consentVersion: "1";
755
+ }, {
756
+ status: "active" | "orphaned" | "ended";
757
+ createdAt: string;
758
+ policyVersion: "2";
759
+ childAccountId: string;
760
+ guardianAccountId: string | null;
761
+ consentVersion: "1";
762
+ }>>;
763
+ children: z.ZodArray<z.ZodObject<{
764
+ childAccountId: z.ZodString;
765
+ guardianAccountId: z.ZodNullable<z.ZodString>;
766
+ status: z.ZodEnum<["active", "orphaned", "ended"]>;
767
+ policyVersion: z.ZodLiteral<"2">;
768
+ consentVersion: z.ZodLiteral<"1">;
769
+ createdAt: z.ZodString;
770
+ }, "strict", z.ZodTypeAny, {
771
+ status: "active" | "orphaned" | "ended";
772
+ createdAt: string;
773
+ policyVersion: "2";
774
+ childAccountId: string;
775
+ guardianAccountId: string | null;
776
+ consentVersion: "1";
777
+ }, {
778
+ status: "active" | "orphaned" | "ended";
779
+ createdAt: string;
780
+ policyVersion: "2";
781
+ childAccountId: string;
782
+ guardianAccountId: string | null;
783
+ consentVersion: "1";
784
+ }>, "many">;
785
+ invitations: z.ZodArray<z.ZodObject<{
786
+ id: z.ZodString;
787
+ childAccountId: z.ZodString;
788
+ guardianAccountId: z.ZodString;
789
+ status: z.ZodEnum<["pending", "accepted", "cancelled"]>;
790
+ expiresAt: z.ZodString;
791
+ consentVersion: z.ZodLiteral<"1">;
792
+ createdAt: z.ZodString;
793
+ }, "strict", z.ZodTypeAny, {
794
+ status: "pending" | "accepted" | "cancelled";
795
+ createdAt: string;
796
+ id: string;
797
+ expiresAt: string;
798
+ childAccountId: string;
799
+ guardianAccountId: string;
800
+ consentVersion: "1";
801
+ }, {
802
+ status: "pending" | "accepted" | "cancelled";
803
+ createdAt: string;
804
+ id: string;
805
+ expiresAt: string;
806
+ childAccountId: string;
807
+ guardianAccountId: string;
808
+ consentVersion: "1";
809
+ }>, "many">;
810
+ }, "strict", z.ZodTypeAny, {
811
+ self: {
812
+ status: "active" | "orphaned" | "ended";
813
+ createdAt: string;
814
+ policyVersion: "2";
815
+ childAccountId: string;
816
+ guardianAccountId: string | null;
817
+ consentVersion: "1";
818
+ } | null;
819
+ children: {
820
+ status: "active" | "orphaned" | "ended";
821
+ createdAt: string;
822
+ policyVersion: "2";
823
+ childAccountId: string;
824
+ guardianAccountId: string | null;
825
+ consentVersion: "1";
826
+ }[];
827
+ invitations: {
828
+ status: "pending" | "accepted" | "cancelled";
829
+ createdAt: string;
830
+ id: string;
831
+ expiresAt: string;
832
+ childAccountId: string;
833
+ guardianAccountId: string;
834
+ consentVersion: "1";
835
+ }[];
836
+ }, {
837
+ self: {
838
+ status: "active" | "orphaned" | "ended";
839
+ createdAt: string;
840
+ policyVersion: "2";
841
+ childAccountId: string;
842
+ guardianAccountId: string | null;
843
+ consentVersion: "1";
844
+ } | null;
845
+ children: {
846
+ status: "active" | "orphaned" | "ended";
847
+ createdAt: string;
848
+ policyVersion: "2";
849
+ childAccountId: string;
850
+ guardianAccountId: string | null;
851
+ consentVersion: "1";
852
+ }[];
853
+ invitations: {
854
+ status: "pending" | "accepted" | "cancelled";
855
+ createdAt: string;
856
+ id: string;
857
+ expiresAt: string;
858
+ childAccountId: string;
859
+ guardianAccountId: string;
860
+ consentVersion: "1";
861
+ }[];
862
+ }>;
863
+ export declare const supervisionContactsResponseSchema: z.ZodObject<{
864
+ items: z.ZodArray<z.ZodObject<{
865
+ childAccountId: z.ZodString;
866
+ contactAccountId: z.ZodString;
867
+ approvedAt: z.ZodString;
868
+ }, "strict", z.ZodTypeAny, {
869
+ childAccountId: string;
870
+ contactAccountId: string;
871
+ approvedAt: string;
872
+ }, {
873
+ childAccountId: string;
874
+ contactAccountId: string;
875
+ approvedAt: string;
876
+ }>, "many">;
877
+ }, "strict", z.ZodTypeAny, {
878
+ items: {
879
+ childAccountId: string;
880
+ contactAccountId: string;
881
+ approvedAt: string;
882
+ }[];
883
+ }, {
884
+ items: {
885
+ childAccountId: string;
886
+ contactAccountId: string;
887
+ approvedAt: string;
888
+ }[];
889
+ }>;
890
+ export type Supervision = z.infer<typeof supervisionSchema>;
891
+ export type SupervisionInvitation = z.infer<typeof supervisionInvitationSchema>;
892
+ export type SupervisionContact = z.infer<typeof supervisionContactSchema>;
893
+ export type SupervisionState = z.infer<typeof supervisionStateSchema>;
894
+ export type SupervisionContactsResponse = z.infer<typeof supervisionContactsResponseSchema>;
895
+ export declare const purchaseApprovalLineSchema: z.ZodObject<{
896
+ itemReference: z.ZodString;
897
+ title: z.ZodString;
898
+ optionsText: z.ZodString;
899
+ merchantAccountId: z.ZodString;
900
+ quantity: z.ZodNumber;
901
+ unitAmountMinor: z.ZodNumber;
902
+ lineAmountMinor: z.ZodNumber;
903
+ }, "strict", z.ZodTypeAny, {
904
+ title: string;
905
+ quantity: number;
906
+ itemReference: string;
907
+ optionsText: string;
908
+ merchantAccountId: string;
909
+ unitAmountMinor: number;
910
+ lineAmountMinor: number;
911
+ }, {
912
+ title: string;
913
+ quantity: number;
914
+ itemReference: string;
915
+ optionsText: string;
916
+ merchantAccountId: string;
917
+ unitAmountMinor: number;
918
+ lineAmountMinor: number;
919
+ }>;
920
+ export declare const purchaseEffectsSchema: z.ZodEffects<z.ZodObject<{
921
+ operationId: z.ZodString;
922
+ resourceId: z.ZodString;
923
+ cartFingerprint: z.ZodString;
924
+ summary: z.ZodString;
925
+ merchantAccountIds: z.ZodEffects<z.ZodEffects<z.ZodArray<z.ZodString, "many">, string[], string[]>, string[], string[]>;
926
+ lineItems: z.ZodArray<z.ZodObject<{
927
+ itemReference: z.ZodString;
928
+ title: z.ZodString;
929
+ optionsText: z.ZodString;
930
+ merchantAccountId: z.ZodString;
931
+ quantity: z.ZodNumber;
932
+ unitAmountMinor: z.ZodNumber;
933
+ lineAmountMinor: z.ZodNumber;
934
+ }, "strict", z.ZodTypeAny, {
935
+ title: string;
936
+ quantity: number;
937
+ itemReference: string;
938
+ optionsText: string;
939
+ merchantAccountId: string;
940
+ unitAmountMinor: number;
941
+ lineAmountMinor: number;
942
+ }, {
943
+ title: string;
944
+ quantity: number;
945
+ itemReference: string;
946
+ optionsText: string;
947
+ merchantAccountId: string;
948
+ unitAmountMinor: number;
949
+ lineAmountMinor: number;
950
+ }>, "many">;
951
+ shippingMinor: z.ZodNumber;
952
+ taxMinor: z.ZodNumber;
953
+ discountMinor: z.ZodNumber;
954
+ roundingAdjustmentMinor: z.ZodNumber;
955
+ paymentFingerprint: z.ZodString;
956
+ amountMinor: z.ZodNumber;
957
+ currency: z.ZodString;
958
+ expiresAt: z.ZodString;
959
+ }, "strict", z.ZodTypeAny, {
960
+ expiresAt: string;
961
+ resourceId: string;
962
+ currency: string;
963
+ operationId: string;
964
+ summary: string;
965
+ cartFingerprint: string;
966
+ merchantAccountIds: string[];
967
+ lineItems: {
968
+ title: string;
969
+ quantity: number;
970
+ itemReference: string;
971
+ optionsText: string;
972
+ merchantAccountId: string;
973
+ unitAmountMinor: number;
974
+ lineAmountMinor: number;
975
+ }[];
976
+ shippingMinor: number;
977
+ taxMinor: number;
978
+ discountMinor: number;
979
+ roundingAdjustmentMinor: number;
980
+ paymentFingerprint: string;
981
+ amountMinor: number;
982
+ }, {
983
+ expiresAt: string;
984
+ resourceId: string;
985
+ currency: string;
986
+ operationId: string;
987
+ summary: string;
988
+ cartFingerprint: string;
989
+ merchantAccountIds: string[];
990
+ lineItems: {
991
+ title: string;
992
+ quantity: number;
993
+ itemReference: string;
994
+ optionsText: string;
995
+ merchantAccountId: string;
996
+ unitAmountMinor: number;
997
+ lineAmountMinor: number;
998
+ }[];
999
+ shippingMinor: number;
1000
+ taxMinor: number;
1001
+ discountMinor: number;
1002
+ roundingAdjustmentMinor: number;
1003
+ paymentFingerprint: string;
1004
+ amountMinor: number;
1005
+ }>, {
1006
+ expiresAt: string;
1007
+ resourceId: string;
1008
+ currency: string;
1009
+ operationId: string;
1010
+ summary: string;
1011
+ cartFingerprint: string;
1012
+ merchantAccountIds: string[];
1013
+ lineItems: {
1014
+ title: string;
1015
+ quantity: number;
1016
+ itemReference: string;
1017
+ optionsText: string;
1018
+ merchantAccountId: string;
1019
+ unitAmountMinor: number;
1020
+ lineAmountMinor: number;
1021
+ }[];
1022
+ shippingMinor: number;
1023
+ taxMinor: number;
1024
+ discountMinor: number;
1025
+ roundingAdjustmentMinor: number;
1026
+ paymentFingerprint: string;
1027
+ amountMinor: number;
1028
+ }, {
1029
+ expiresAt: string;
1030
+ resourceId: string;
1031
+ currency: string;
1032
+ operationId: string;
1033
+ summary: string;
1034
+ cartFingerprint: string;
1035
+ merchantAccountIds: string[];
1036
+ lineItems: {
1037
+ title: string;
1038
+ quantity: number;
1039
+ itemReference: string;
1040
+ optionsText: string;
1041
+ merchantAccountId: string;
1042
+ unitAmountMinor: number;
1043
+ lineAmountMinor: number;
1044
+ }[];
1045
+ shippingMinor: number;
1046
+ taxMinor: number;
1047
+ discountMinor: number;
1048
+ roundingAdjustmentMinor: number;
1049
+ paymentFingerprint: string;
1050
+ amountMinor: number;
1051
+ }>;
1052
+ export declare const purchaseApprovalSchema: z.ZodEffects<z.ZodObject<{
1053
+ operationId: z.ZodString;
1054
+ resourceId: z.ZodString;
1055
+ cartFingerprint: z.ZodString;
1056
+ summary: z.ZodString;
1057
+ merchantAccountIds: z.ZodEffects<z.ZodEffects<z.ZodArray<z.ZodString, "many">, string[], string[]>, string[], string[]>;
1058
+ lineItems: z.ZodArray<z.ZodObject<{
1059
+ itemReference: z.ZodString;
1060
+ title: z.ZodString;
1061
+ optionsText: z.ZodString;
1062
+ merchantAccountId: z.ZodString;
1063
+ quantity: z.ZodNumber;
1064
+ unitAmountMinor: z.ZodNumber;
1065
+ lineAmountMinor: z.ZodNumber;
1066
+ }, "strict", z.ZodTypeAny, {
1067
+ title: string;
1068
+ quantity: number;
1069
+ itemReference: string;
1070
+ optionsText: string;
1071
+ merchantAccountId: string;
1072
+ unitAmountMinor: number;
1073
+ lineAmountMinor: number;
1074
+ }, {
1075
+ title: string;
1076
+ quantity: number;
1077
+ itemReference: string;
1078
+ optionsText: string;
1079
+ merchantAccountId: string;
1080
+ unitAmountMinor: number;
1081
+ lineAmountMinor: number;
1082
+ }>, "many">;
1083
+ shippingMinor: z.ZodNumber;
1084
+ taxMinor: z.ZodNumber;
1085
+ discountMinor: z.ZodNumber;
1086
+ roundingAdjustmentMinor: z.ZodNumber;
1087
+ paymentFingerprint: z.ZodString;
1088
+ amountMinor: z.ZodNumber;
1089
+ currency: z.ZodString;
1090
+ expiresAt: z.ZodString;
1091
+ } & {
1092
+ id: z.ZodString;
1093
+ childAccountId: z.ZodString;
1094
+ applicationId: z.ZodString;
1095
+ status: z.ZodEnum<["pending", "approved", "rejected", "reserved", "confirmed", "cancelled"]>;
1096
+ createdAt: z.ZodString;
1097
+ receiptReference: z.ZodNullable<z.ZodString>;
1098
+ }, "strict", z.ZodTypeAny, {
1099
+ status: "pending" | "approved" | "rejected" | "cancelled" | "confirmed" | "reserved";
1100
+ createdAt: string;
1101
+ id: string;
1102
+ expiresAt: string;
1103
+ resourceId: string;
1104
+ applicationId: string;
1105
+ currency: string;
1106
+ operationId: string;
1107
+ summary: string;
1108
+ childAccountId: string;
1109
+ cartFingerprint: string;
1110
+ merchantAccountIds: string[];
1111
+ lineItems: {
1112
+ title: string;
1113
+ quantity: number;
1114
+ itemReference: string;
1115
+ optionsText: string;
1116
+ merchantAccountId: string;
1117
+ unitAmountMinor: number;
1118
+ lineAmountMinor: number;
1119
+ }[];
1120
+ shippingMinor: number;
1121
+ taxMinor: number;
1122
+ discountMinor: number;
1123
+ roundingAdjustmentMinor: number;
1124
+ paymentFingerprint: string;
1125
+ amountMinor: number;
1126
+ receiptReference: string | null;
1127
+ }, {
1128
+ status: "pending" | "approved" | "rejected" | "cancelled" | "confirmed" | "reserved";
1129
+ createdAt: string;
1130
+ id: string;
1131
+ expiresAt: string;
1132
+ resourceId: string;
1133
+ applicationId: string;
1134
+ currency: string;
1135
+ operationId: string;
1136
+ summary: string;
1137
+ childAccountId: string;
1138
+ cartFingerprint: string;
1139
+ merchantAccountIds: string[];
1140
+ lineItems: {
1141
+ title: string;
1142
+ quantity: number;
1143
+ itemReference: string;
1144
+ optionsText: string;
1145
+ merchantAccountId: string;
1146
+ unitAmountMinor: number;
1147
+ lineAmountMinor: number;
1148
+ }[];
1149
+ shippingMinor: number;
1150
+ taxMinor: number;
1151
+ discountMinor: number;
1152
+ roundingAdjustmentMinor: number;
1153
+ paymentFingerprint: string;
1154
+ amountMinor: number;
1155
+ receiptReference: string | null;
1156
+ }>, {
1157
+ status: "pending" | "approved" | "rejected" | "cancelled" | "confirmed" | "reserved";
1158
+ createdAt: string;
1159
+ id: string;
1160
+ expiresAt: string;
1161
+ resourceId: string;
1162
+ applicationId: string;
1163
+ currency: string;
1164
+ operationId: string;
1165
+ summary: string;
1166
+ childAccountId: string;
1167
+ cartFingerprint: string;
1168
+ merchantAccountIds: string[];
1169
+ lineItems: {
1170
+ title: string;
1171
+ quantity: number;
1172
+ itemReference: string;
1173
+ optionsText: string;
1174
+ merchantAccountId: string;
1175
+ unitAmountMinor: number;
1176
+ lineAmountMinor: number;
1177
+ }[];
1178
+ shippingMinor: number;
1179
+ taxMinor: number;
1180
+ discountMinor: number;
1181
+ roundingAdjustmentMinor: number;
1182
+ paymentFingerprint: string;
1183
+ amountMinor: number;
1184
+ receiptReference: string | null;
1185
+ }, {
1186
+ status: "pending" | "approved" | "rejected" | "cancelled" | "confirmed" | "reserved";
1187
+ createdAt: string;
1188
+ id: string;
1189
+ expiresAt: string;
1190
+ resourceId: string;
1191
+ applicationId: string;
1192
+ currency: string;
1193
+ operationId: string;
1194
+ summary: string;
1195
+ childAccountId: string;
1196
+ cartFingerprint: string;
1197
+ merchantAccountIds: string[];
1198
+ lineItems: {
1199
+ title: string;
1200
+ quantity: number;
1201
+ itemReference: string;
1202
+ optionsText: string;
1203
+ merchantAccountId: string;
1204
+ unitAmountMinor: number;
1205
+ lineAmountMinor: number;
1206
+ }[];
1207
+ shippingMinor: number;
1208
+ taxMinor: number;
1209
+ discountMinor: number;
1210
+ roundingAdjustmentMinor: number;
1211
+ paymentFingerprint: string;
1212
+ amountMinor: number;
1213
+ receiptReference: string | null;
1214
+ }>;
1215
+ export declare const purchaseApprovalSummarySchema: z.ZodObject<Omit<{
1216
+ operationId: z.ZodString;
1217
+ resourceId: z.ZodString;
1218
+ cartFingerprint: z.ZodString;
1219
+ summary: z.ZodString;
1220
+ merchantAccountIds: z.ZodEffects<z.ZodEffects<z.ZodArray<z.ZodString, "many">, string[], string[]>, string[], string[]>;
1221
+ lineItems: z.ZodArray<z.ZodObject<{
1222
+ itemReference: z.ZodString;
1223
+ title: z.ZodString;
1224
+ optionsText: z.ZodString;
1225
+ merchantAccountId: z.ZodString;
1226
+ quantity: z.ZodNumber;
1227
+ unitAmountMinor: z.ZodNumber;
1228
+ lineAmountMinor: z.ZodNumber;
1229
+ }, "strict", z.ZodTypeAny, {
1230
+ title: string;
1231
+ quantity: number;
1232
+ itemReference: string;
1233
+ optionsText: string;
1234
+ merchantAccountId: string;
1235
+ unitAmountMinor: number;
1236
+ lineAmountMinor: number;
1237
+ }, {
1238
+ title: string;
1239
+ quantity: number;
1240
+ itemReference: string;
1241
+ optionsText: string;
1242
+ merchantAccountId: string;
1243
+ unitAmountMinor: number;
1244
+ lineAmountMinor: number;
1245
+ }>, "many">;
1246
+ shippingMinor: z.ZodNumber;
1247
+ taxMinor: z.ZodNumber;
1248
+ discountMinor: z.ZodNumber;
1249
+ roundingAdjustmentMinor: z.ZodNumber;
1250
+ paymentFingerprint: z.ZodString;
1251
+ amountMinor: z.ZodNumber;
1252
+ currency: z.ZodString;
1253
+ expiresAt: z.ZodString;
1254
+ }, "lineItems"> & {
1255
+ id: z.ZodString;
1256
+ childAccountId: z.ZodString;
1257
+ applicationId: z.ZodString;
1258
+ status: z.ZodEnum<["pending", "approved", "rejected", "reserved", "confirmed", "cancelled"]>;
1259
+ createdAt: z.ZodString;
1260
+ receiptReference: z.ZodNullable<z.ZodString>;
1261
+ }, "strict", z.ZodTypeAny, {
1262
+ status: "pending" | "approved" | "rejected" | "cancelled" | "confirmed" | "reserved";
1263
+ createdAt: string;
1264
+ id: string;
1265
+ expiresAt: string;
1266
+ resourceId: string;
1267
+ applicationId: string;
1268
+ currency: string;
1269
+ operationId: string;
1270
+ summary: string;
1271
+ childAccountId: string;
1272
+ cartFingerprint: string;
1273
+ merchantAccountIds: string[];
1274
+ shippingMinor: number;
1275
+ taxMinor: number;
1276
+ discountMinor: number;
1277
+ roundingAdjustmentMinor: number;
1278
+ paymentFingerprint: string;
1279
+ amountMinor: number;
1280
+ receiptReference: string | null;
1281
+ }, {
1282
+ status: "pending" | "approved" | "rejected" | "cancelled" | "confirmed" | "reserved";
1283
+ createdAt: string;
1284
+ id: string;
1285
+ expiresAt: string;
1286
+ resourceId: string;
1287
+ applicationId: string;
1288
+ currency: string;
1289
+ operationId: string;
1290
+ summary: string;
1291
+ childAccountId: string;
1292
+ cartFingerprint: string;
1293
+ merchantAccountIds: string[];
1294
+ shippingMinor: number;
1295
+ taxMinor: number;
1296
+ discountMinor: number;
1297
+ roundingAdjustmentMinor: number;
1298
+ paymentFingerprint: string;
1299
+ amountMinor: number;
1300
+ receiptReference: string | null;
1301
+ }>;
1302
+ export declare const purchaseApprovalListSchema: z.ZodObject<{
1303
+ items: z.ZodArray<z.ZodObject<Omit<{
1304
+ operationId: z.ZodString;
1305
+ resourceId: z.ZodString;
1306
+ cartFingerprint: z.ZodString;
1307
+ summary: z.ZodString;
1308
+ merchantAccountIds: z.ZodEffects<z.ZodEffects<z.ZodArray<z.ZodString, "many">, string[], string[]>, string[], string[]>;
1309
+ lineItems: z.ZodArray<z.ZodObject<{
1310
+ itemReference: z.ZodString;
1311
+ title: z.ZodString;
1312
+ optionsText: z.ZodString;
1313
+ merchantAccountId: z.ZodString;
1314
+ quantity: z.ZodNumber;
1315
+ unitAmountMinor: z.ZodNumber;
1316
+ lineAmountMinor: z.ZodNumber;
1317
+ }, "strict", z.ZodTypeAny, {
1318
+ title: string;
1319
+ quantity: number;
1320
+ itemReference: string;
1321
+ optionsText: string;
1322
+ merchantAccountId: string;
1323
+ unitAmountMinor: number;
1324
+ lineAmountMinor: number;
1325
+ }, {
1326
+ title: string;
1327
+ quantity: number;
1328
+ itemReference: string;
1329
+ optionsText: string;
1330
+ merchantAccountId: string;
1331
+ unitAmountMinor: number;
1332
+ lineAmountMinor: number;
1333
+ }>, "many">;
1334
+ shippingMinor: z.ZodNumber;
1335
+ taxMinor: z.ZodNumber;
1336
+ discountMinor: z.ZodNumber;
1337
+ roundingAdjustmentMinor: z.ZodNumber;
1338
+ paymentFingerprint: z.ZodString;
1339
+ amountMinor: z.ZodNumber;
1340
+ currency: z.ZodString;
1341
+ expiresAt: z.ZodString;
1342
+ }, "lineItems"> & {
1343
+ id: z.ZodString;
1344
+ childAccountId: z.ZodString;
1345
+ applicationId: z.ZodString;
1346
+ status: z.ZodEnum<["pending", "approved", "rejected", "reserved", "confirmed", "cancelled"]>;
1347
+ createdAt: z.ZodString;
1348
+ receiptReference: z.ZodNullable<z.ZodString>;
1349
+ }, "strict", z.ZodTypeAny, {
1350
+ status: "pending" | "approved" | "rejected" | "cancelled" | "confirmed" | "reserved";
1351
+ createdAt: string;
1352
+ id: string;
1353
+ expiresAt: string;
1354
+ resourceId: string;
1355
+ applicationId: string;
1356
+ currency: string;
1357
+ operationId: string;
1358
+ summary: string;
1359
+ childAccountId: string;
1360
+ cartFingerprint: string;
1361
+ merchantAccountIds: string[];
1362
+ shippingMinor: number;
1363
+ taxMinor: number;
1364
+ discountMinor: number;
1365
+ roundingAdjustmentMinor: number;
1366
+ paymentFingerprint: string;
1367
+ amountMinor: number;
1368
+ receiptReference: string | null;
1369
+ }, {
1370
+ status: "pending" | "approved" | "rejected" | "cancelled" | "confirmed" | "reserved";
1371
+ createdAt: string;
1372
+ id: string;
1373
+ expiresAt: string;
1374
+ resourceId: string;
1375
+ applicationId: string;
1376
+ currency: string;
1377
+ operationId: string;
1378
+ summary: string;
1379
+ childAccountId: string;
1380
+ cartFingerprint: string;
1381
+ merchantAccountIds: string[];
1382
+ shippingMinor: number;
1383
+ taxMinor: number;
1384
+ discountMinor: number;
1385
+ roundingAdjustmentMinor: number;
1386
+ paymentFingerprint: string;
1387
+ amountMinor: number;
1388
+ receiptReference: string | null;
1389
+ }>, "many">;
1390
+ nextCursor: z.ZodNullable<z.ZodString>;
1391
+ }, "strict", z.ZodTypeAny, {
1392
+ items: {
1393
+ status: "pending" | "approved" | "rejected" | "cancelled" | "confirmed" | "reserved";
1394
+ createdAt: string;
1395
+ id: string;
1396
+ expiresAt: string;
1397
+ resourceId: string;
1398
+ applicationId: string;
1399
+ currency: string;
1400
+ operationId: string;
1401
+ summary: string;
1402
+ childAccountId: string;
1403
+ cartFingerprint: string;
1404
+ merchantAccountIds: string[];
1405
+ shippingMinor: number;
1406
+ taxMinor: number;
1407
+ discountMinor: number;
1408
+ roundingAdjustmentMinor: number;
1409
+ paymentFingerprint: string;
1410
+ amountMinor: number;
1411
+ receiptReference: string | null;
1412
+ }[];
1413
+ nextCursor: string | null;
1414
+ }, {
1415
+ items: {
1416
+ status: "pending" | "approved" | "rejected" | "cancelled" | "confirmed" | "reserved";
1417
+ createdAt: string;
1418
+ id: string;
1419
+ expiresAt: string;
1420
+ resourceId: string;
1421
+ applicationId: string;
1422
+ currency: string;
1423
+ operationId: string;
1424
+ summary: string;
1425
+ childAccountId: string;
1426
+ cartFingerprint: string;
1427
+ merchantAccountIds: string[];
1428
+ shippingMinor: number;
1429
+ taxMinor: number;
1430
+ discountMinor: number;
1431
+ roundingAdjustmentMinor: number;
1432
+ paymentFingerprint: string;
1433
+ amountMinor: number;
1434
+ receiptReference: string | null;
1435
+ }[];
1436
+ nextCursor: string | null;
1437
+ }>;
1438
+ export declare const reservePurchaseSchema: z.ZodEffects<z.ZodObject<{
1439
+ operationId: z.ZodString;
1440
+ resourceId: z.ZodString;
1441
+ cartFingerprint: z.ZodString;
1442
+ summary: z.ZodString;
1443
+ merchantAccountIds: z.ZodEffects<z.ZodEffects<z.ZodArray<z.ZodString, "many">, string[], string[]>, string[], string[]>;
1444
+ lineItems: z.ZodArray<z.ZodObject<{
1445
+ itemReference: z.ZodString;
1446
+ title: z.ZodString;
1447
+ optionsText: z.ZodString;
1448
+ merchantAccountId: z.ZodString;
1449
+ quantity: z.ZodNumber;
1450
+ unitAmountMinor: z.ZodNumber;
1451
+ lineAmountMinor: z.ZodNumber;
1452
+ }, "strict", z.ZodTypeAny, {
1453
+ title: string;
1454
+ quantity: number;
1455
+ itemReference: string;
1456
+ optionsText: string;
1457
+ merchantAccountId: string;
1458
+ unitAmountMinor: number;
1459
+ lineAmountMinor: number;
1460
+ }, {
1461
+ title: string;
1462
+ quantity: number;
1463
+ itemReference: string;
1464
+ optionsText: string;
1465
+ merchantAccountId: string;
1466
+ unitAmountMinor: number;
1467
+ lineAmountMinor: number;
1468
+ }>, "many">;
1469
+ shippingMinor: z.ZodNumber;
1470
+ taxMinor: z.ZodNumber;
1471
+ discountMinor: z.ZodNumber;
1472
+ roundingAdjustmentMinor: z.ZodNumber;
1473
+ paymentFingerprint: z.ZodString;
1474
+ amountMinor: z.ZodNumber;
1475
+ currency: z.ZodString;
1476
+ expiresAt: z.ZodString;
1477
+ } & {
1478
+ approvalId: z.ZodString;
1479
+ }, "strict", z.ZodTypeAny, {
1480
+ expiresAt: string;
1481
+ resourceId: string;
1482
+ currency: string;
1483
+ operationId: string;
1484
+ approvalId: string;
1485
+ summary: string;
1486
+ cartFingerprint: string;
1487
+ merchantAccountIds: string[];
1488
+ lineItems: {
1489
+ title: string;
1490
+ quantity: number;
1491
+ itemReference: string;
1492
+ optionsText: string;
1493
+ merchantAccountId: string;
1494
+ unitAmountMinor: number;
1495
+ lineAmountMinor: number;
1496
+ }[];
1497
+ shippingMinor: number;
1498
+ taxMinor: number;
1499
+ discountMinor: number;
1500
+ roundingAdjustmentMinor: number;
1501
+ paymentFingerprint: string;
1502
+ amountMinor: number;
1503
+ }, {
1504
+ expiresAt: string;
1505
+ resourceId: string;
1506
+ currency: string;
1507
+ operationId: string;
1508
+ approvalId: string;
1509
+ summary: string;
1510
+ cartFingerprint: string;
1511
+ merchantAccountIds: string[];
1512
+ lineItems: {
1513
+ title: string;
1514
+ quantity: number;
1515
+ itemReference: string;
1516
+ optionsText: string;
1517
+ merchantAccountId: string;
1518
+ unitAmountMinor: number;
1519
+ lineAmountMinor: number;
1520
+ }[];
1521
+ shippingMinor: number;
1522
+ taxMinor: number;
1523
+ discountMinor: number;
1524
+ roundingAdjustmentMinor: number;
1525
+ paymentFingerprint: string;
1526
+ amountMinor: number;
1527
+ }>, {
1528
+ expiresAt: string;
1529
+ resourceId: string;
1530
+ currency: string;
1531
+ operationId: string;
1532
+ approvalId: string;
1533
+ summary: string;
1534
+ cartFingerprint: string;
1535
+ merchantAccountIds: string[];
1536
+ lineItems: {
1537
+ title: string;
1538
+ quantity: number;
1539
+ itemReference: string;
1540
+ optionsText: string;
1541
+ merchantAccountId: string;
1542
+ unitAmountMinor: number;
1543
+ lineAmountMinor: number;
1544
+ }[];
1545
+ shippingMinor: number;
1546
+ taxMinor: number;
1547
+ discountMinor: number;
1548
+ roundingAdjustmentMinor: number;
1549
+ paymentFingerprint: string;
1550
+ amountMinor: number;
1551
+ }, {
1552
+ expiresAt: string;
1553
+ resourceId: string;
1554
+ currency: string;
1555
+ operationId: string;
1556
+ approvalId: string;
1557
+ summary: string;
1558
+ cartFingerprint: string;
1559
+ merchantAccountIds: string[];
1560
+ lineItems: {
1561
+ title: string;
1562
+ quantity: number;
1563
+ itemReference: string;
1564
+ optionsText: string;
1565
+ merchantAccountId: string;
1566
+ unitAmountMinor: number;
1567
+ lineAmountMinor: number;
1568
+ }[];
1569
+ shippingMinor: number;
1570
+ taxMinor: number;
1571
+ discountMinor: number;
1572
+ roundingAdjustmentMinor: number;
1573
+ paymentFingerprint: string;
1574
+ amountMinor: number;
1575
+ }>;
1576
+ export type PurchaseApprovalLine = z.infer<typeof purchaseApprovalLineSchema>;
1577
+ export type PurchaseApprovalSummary = z.infer<typeof purchaseApprovalSummarySchema>;
1578
+ export type PurchaseApprovalList = z.infer<typeof purchaseApprovalListSchema>;
1579
+ export declare const confirmPurchaseSchema: z.ZodObject<{
1580
+ approvalId: z.ZodString;
1581
+ operationId: z.ZodString;
1582
+ receiptReference: z.ZodString;
1583
+ }, "strict", z.ZodTypeAny, {
1584
+ operationId: string;
1585
+ approvalId: string;
1586
+ receiptReference: string;
1587
+ }, {
1588
+ operationId: string;
1589
+ approvalId: string;
1590
+ receiptReference: string;
1591
+ }>;
1592
+ export declare const cancelPurchaseSchema: z.ZodObject<Omit<{
1593
+ approvalId: z.ZodString;
1594
+ operationId: z.ZodString;
1595
+ receiptReference: z.ZodString;
1596
+ }, "receiptReference">, "strict", z.ZodTypeAny, {
1597
+ operationId: string;
1598
+ approvalId: string;
1599
+ }, {
1600
+ operationId: string;
1601
+ approvalId: string;
1602
+ }>;
1603
+ export type PurchaseEffects = z.infer<typeof purchaseEffectsSchema>;
1604
+ export type PurchaseApproval = z.infer<typeof purchaseApprovalSchema>;
1605
+ export type ReservePurchase = z.infer<typeof reservePurchaseSchema>;
1606
+ export type ConfirmPurchase = z.infer<typeof confirmPurchaseSchema>;
1607
+ export type CancelPurchase = z.infer<typeof cancelPurchaseSchema>;
1608
+ export declare const SAFETY_ERROR_CODES: readonly ["bad_request", "validation_failed", "unauthorized", "forbidden", "not_found", "conflict", "reauth_required", "limit_reached", "service_unavailable", "rate_limited"];
1609
+ export declare const safetyErrorSchema: z.ZodObject<{
1610
+ error: z.ZodObject<{
1611
+ code: z.ZodEnum<["bad_request", "validation_failed", "unauthorized", "forbidden", "not_found", "conflict", "reauth_required", "limit_reached", "service_unavailable", "rate_limited"]>;
1612
+ message: z.ZodString;
1613
+ }, "strict", z.ZodTypeAny, {
1614
+ code: "bad_request" | "unauthorized" | "forbidden" | "not_found" | "conflict" | "validation_failed" | "rate_limited" | "service_unavailable" | "reauth_required" | "limit_reached";
1615
+ message: string;
1616
+ }, {
1617
+ code: "bad_request" | "unauthorized" | "forbidden" | "not_found" | "conflict" | "validation_failed" | "rate_limited" | "service_unavailable" | "reauth_required" | "limit_reached";
1618
+ message: string;
1619
+ }>;
1620
+ }, "strict", z.ZodTypeAny, {
1621
+ error: {
1622
+ code: "bad_request" | "unauthorized" | "forbidden" | "not_found" | "conflict" | "validation_failed" | "rate_limited" | "service_unavailable" | "reauth_required" | "limit_reached";
1623
+ message: string;
1624
+ };
1625
+ }, {
1626
+ error: {
1627
+ code: "bad_request" | "unauthorized" | "forbidden" | "not_found" | "conflict" | "validation_failed" | "rate_limited" | "service_unavailable" | "reauth_required" | "limit_reached";
1628
+ message: string;
1629
+ };
1630
+ }>;
1631
+ export type SafetyErrorCode = (typeof SAFETY_ERROR_CODES)[number];
1632
+ export declare const supervisionInviteInputSchema: z.ZodObject<{
1633
+ guardianAccountId: z.ZodString;
1634
+ consentVersion: z.ZodLiteral<"1">;
1635
+ reauth: z.ZodEffects<z.ZodObject<{
1636
+ password: z.ZodOptional<z.ZodString>;
1637
+ emailCode: z.ZodOptional<z.ZodObject<{
1638
+ verificationId: z.ZodString;
1639
+ code: z.ZodString;
1640
+ }, "strict", z.ZodTypeAny, {
1641
+ code: string;
1642
+ verificationId: string;
1643
+ }, {
1644
+ code: string;
1645
+ verificationId: string;
1646
+ }>>;
1647
+ totpCode: z.ZodOptional<z.ZodString>;
1648
+ }, "strict", z.ZodTypeAny, {
1649
+ password?: string | undefined;
1650
+ emailCode?: {
1651
+ code: string;
1652
+ verificationId: string;
1653
+ } | undefined;
1654
+ totpCode?: string | undefined;
1655
+ }, {
1656
+ password?: string | undefined;
1657
+ emailCode?: {
1658
+ code: string;
1659
+ verificationId: string;
1660
+ } | undefined;
1661
+ totpCode?: string | undefined;
1662
+ }>, {
1663
+ password?: string | undefined;
1664
+ emailCode?: {
1665
+ code: string;
1666
+ verificationId: string;
1667
+ } | undefined;
1668
+ totpCode?: string | undefined;
1669
+ }, {
1670
+ password?: string | undefined;
1671
+ emailCode?: {
1672
+ code: string;
1673
+ verificationId: string;
1674
+ } | undefined;
1675
+ totpCode?: string | undefined;
1676
+ }>;
1677
+ }, "strict", z.ZodTypeAny, {
1678
+ reauth: {
1679
+ password?: string | undefined;
1680
+ emailCode?: {
1681
+ code: string;
1682
+ verificationId: string;
1683
+ } | undefined;
1684
+ totpCode?: string | undefined;
1685
+ };
1686
+ guardianAccountId: string;
1687
+ consentVersion: "1";
1688
+ }, {
1689
+ reauth: {
1690
+ password?: string | undefined;
1691
+ emailCode?: {
1692
+ code: string;
1693
+ verificationId: string;
1694
+ } | undefined;
1695
+ totpCode?: string | undefined;
1696
+ };
1697
+ guardianAccountId: string;
1698
+ consentVersion: "1";
1699
+ }>;
1700
+ export declare const supervisionAcceptInputSchema: z.ZodObject<{
1701
+ consentVersion: z.ZodLiteral<"1">;
1702
+ reauth: z.ZodEffects<z.ZodObject<{
1703
+ password: z.ZodOptional<z.ZodString>;
1704
+ emailCode: z.ZodOptional<z.ZodObject<{
1705
+ verificationId: z.ZodString;
1706
+ code: z.ZodString;
1707
+ }, "strict", z.ZodTypeAny, {
1708
+ code: string;
1709
+ verificationId: string;
1710
+ }, {
1711
+ code: string;
1712
+ verificationId: string;
1713
+ }>>;
1714
+ totpCode: z.ZodOptional<z.ZodString>;
1715
+ }, "strict", z.ZodTypeAny, {
1716
+ password?: string | undefined;
1717
+ emailCode?: {
1718
+ code: string;
1719
+ verificationId: string;
1720
+ } | undefined;
1721
+ totpCode?: string | undefined;
1722
+ }, {
1723
+ password?: string | undefined;
1724
+ emailCode?: {
1725
+ code: string;
1726
+ verificationId: string;
1727
+ } | undefined;
1728
+ totpCode?: string | undefined;
1729
+ }>, {
1730
+ password?: string | undefined;
1731
+ emailCode?: {
1732
+ code: string;
1733
+ verificationId: string;
1734
+ } | undefined;
1735
+ totpCode?: string | undefined;
1736
+ }, {
1737
+ password?: string | undefined;
1738
+ emailCode?: {
1739
+ code: string;
1740
+ verificationId: string;
1741
+ } | undefined;
1742
+ totpCode?: string | undefined;
1743
+ }>;
1744
+ }, "strict", z.ZodTypeAny, {
1745
+ reauth: {
1746
+ password?: string | undefined;
1747
+ emailCode?: {
1748
+ code: string;
1749
+ verificationId: string;
1750
+ } | undefined;
1751
+ totpCode?: string | undefined;
1752
+ };
1753
+ consentVersion: "1";
1754
+ }, {
1755
+ reauth: {
1756
+ password?: string | undefined;
1757
+ emailCode?: {
1758
+ code: string;
1759
+ verificationId: string;
1760
+ } | undefined;
1761
+ totpCode?: string | undefined;
1762
+ };
1763
+ consentVersion: "1";
1764
+ }>;
1765
+ export declare const supervisionContactInputSchema: z.ZodObject<{
1766
+ childAccountId: z.ZodString;
1767
+ contactAccountId: z.ZodString;
1768
+ reauth: z.ZodEffects<z.ZodObject<{
1769
+ password: z.ZodOptional<z.ZodString>;
1770
+ emailCode: z.ZodOptional<z.ZodObject<{
1771
+ verificationId: z.ZodString;
1772
+ code: z.ZodString;
1773
+ }, "strict", z.ZodTypeAny, {
1774
+ code: string;
1775
+ verificationId: string;
1776
+ }, {
1777
+ code: string;
1778
+ verificationId: string;
1779
+ }>>;
1780
+ totpCode: z.ZodOptional<z.ZodString>;
1781
+ }, "strict", z.ZodTypeAny, {
1782
+ password?: string | undefined;
1783
+ emailCode?: {
1784
+ code: string;
1785
+ verificationId: string;
1786
+ } | undefined;
1787
+ totpCode?: string | undefined;
1788
+ }, {
1789
+ password?: string | undefined;
1790
+ emailCode?: {
1791
+ code: string;
1792
+ verificationId: string;
1793
+ } | undefined;
1794
+ totpCode?: string | undefined;
1795
+ }>, {
1796
+ password?: string | undefined;
1797
+ emailCode?: {
1798
+ code: string;
1799
+ verificationId: string;
1800
+ } | undefined;
1801
+ totpCode?: string | undefined;
1802
+ }, {
1803
+ password?: string | undefined;
1804
+ emailCode?: {
1805
+ code: string;
1806
+ verificationId: string;
1807
+ } | undefined;
1808
+ totpCode?: string | undefined;
1809
+ }>;
1810
+ }, "strict", z.ZodTypeAny, {
1811
+ reauth: {
1812
+ password?: string | undefined;
1813
+ emailCode?: {
1814
+ code: string;
1815
+ verificationId: string;
1816
+ } | undefined;
1817
+ totpCode?: string | undefined;
1818
+ };
1819
+ childAccountId: string;
1820
+ contactAccountId: string;
1821
+ }, {
1822
+ reauth: {
1823
+ password?: string | undefined;
1824
+ emailCode?: {
1825
+ code: string;
1826
+ verificationId: string;
1827
+ } | undefined;
1828
+ totpCode?: string | undefined;
1829
+ };
1830
+ childAccountId: string;
1831
+ contactAccountId: string;
1832
+ }>;
1833
+ export declare const supervisionReviewInputSchema: z.ZodObject<{
1834
+ childAccountId: z.ZodString;
1835
+ action: z.ZodEnum<["end", "transfer"]>;
1836
+ guardianAccountId: z.ZodOptional<z.ZodString>;
1837
+ evidenceReference: z.ZodString;
1838
+ reauth: z.ZodEffects<z.ZodObject<{
1839
+ password: z.ZodOptional<z.ZodString>;
1840
+ emailCode: z.ZodOptional<z.ZodObject<{
1841
+ verificationId: z.ZodString;
1842
+ code: z.ZodString;
1843
+ }, "strict", z.ZodTypeAny, {
1844
+ code: string;
1845
+ verificationId: string;
1846
+ }, {
1847
+ code: string;
1848
+ verificationId: string;
1849
+ }>>;
1850
+ totpCode: z.ZodOptional<z.ZodString>;
1851
+ }, "strict", z.ZodTypeAny, {
1852
+ password?: string | undefined;
1853
+ emailCode?: {
1854
+ code: string;
1855
+ verificationId: string;
1856
+ } | undefined;
1857
+ totpCode?: string | undefined;
1858
+ }, {
1859
+ password?: string | undefined;
1860
+ emailCode?: {
1861
+ code: string;
1862
+ verificationId: string;
1863
+ } | undefined;
1864
+ totpCode?: string | undefined;
1865
+ }>, {
1866
+ password?: string | undefined;
1867
+ emailCode?: {
1868
+ code: string;
1869
+ verificationId: string;
1870
+ } | undefined;
1871
+ totpCode?: string | undefined;
1872
+ }, {
1873
+ password?: string | undefined;
1874
+ emailCode?: {
1875
+ code: string;
1876
+ verificationId: string;
1877
+ } | undefined;
1878
+ totpCode?: string | undefined;
1879
+ }>;
1880
+ }, "strict", z.ZodTypeAny, {
1881
+ evidenceReference: string;
1882
+ reauth: {
1883
+ password?: string | undefined;
1884
+ emailCode?: {
1885
+ code: string;
1886
+ verificationId: string;
1887
+ } | undefined;
1888
+ totpCode?: string | undefined;
1889
+ };
1890
+ action: "end" | "transfer";
1891
+ childAccountId: string;
1892
+ guardianAccountId?: string | undefined;
1893
+ }, {
1894
+ evidenceReference: string;
1895
+ reauth: {
1896
+ password?: string | undefined;
1897
+ emailCode?: {
1898
+ code: string;
1899
+ verificationId: string;
1900
+ } | undefined;
1901
+ totpCode?: string | undefined;
1902
+ };
1903
+ action: "end" | "transfer";
1904
+ childAccountId: string;
1905
+ guardianAccountId?: string | undefined;
1906
+ }>;
1907
+ export declare const purchaseReviewInputSchema: z.ZodObject<{
1908
+ decision: z.ZodEnum<["approved", "rejected"]>;
1909
+ reauth: z.ZodEffects<z.ZodObject<{
1910
+ password: z.ZodOptional<z.ZodString>;
1911
+ emailCode: z.ZodOptional<z.ZodObject<{
1912
+ verificationId: z.ZodString;
1913
+ code: z.ZodString;
1914
+ }, "strict", z.ZodTypeAny, {
1915
+ code: string;
1916
+ verificationId: string;
1917
+ }, {
1918
+ code: string;
1919
+ verificationId: string;
1920
+ }>>;
1921
+ totpCode: z.ZodOptional<z.ZodString>;
1922
+ }, "strict", z.ZodTypeAny, {
1923
+ password?: string | undefined;
1924
+ emailCode?: {
1925
+ code: string;
1926
+ verificationId: string;
1927
+ } | undefined;
1928
+ totpCode?: string | undefined;
1929
+ }, {
1930
+ password?: string | undefined;
1931
+ emailCode?: {
1932
+ code: string;
1933
+ verificationId: string;
1934
+ } | undefined;
1935
+ totpCode?: string | undefined;
1936
+ }>, {
1937
+ password?: string | undefined;
1938
+ emailCode?: {
1939
+ code: string;
1940
+ verificationId: string;
1941
+ } | undefined;
1942
+ totpCode?: string | undefined;
1943
+ }, {
1944
+ password?: string | undefined;
1945
+ emailCode?: {
1946
+ code: string;
1947
+ verificationId: string;
1948
+ } | undefined;
1949
+ totpCode?: string | undefined;
1950
+ }>;
1951
+ }, "strict", z.ZodTypeAny, {
1952
+ decision: "approved" | "rejected";
1953
+ reauth: {
1954
+ password?: string | undefined;
1955
+ emailCode?: {
1956
+ code: string;
1957
+ verificationId: string;
1958
+ } | undefined;
1959
+ totpCode?: string | undefined;
1960
+ };
1961
+ }, {
1962
+ decision: "approved" | "rejected";
1963
+ reauth: {
1964
+ password?: string | undefined;
1965
+ emailCode?: {
1966
+ code: string;
1967
+ verificationId: string;
1968
+ } | undefined;
1969
+ totpCode?: string | undefined;
1970
+ };
1971
+ }>;
1972
+ export type SupervisionInviteInput = z.infer<typeof supervisionInviteInputSchema>;
1973
+ export type SupervisionAcceptInput = z.infer<typeof supervisionAcceptInputSchema>;
1974
+ export type SupervisionContactInput = z.infer<typeof supervisionContactInputSchema>;
1975
+ export type SupervisionReviewInput = z.infer<typeof supervisionReviewInputSchema>;
1976
+ export type PurchaseReviewInput = z.infer<typeof purchaseReviewInputSchema>;
1977
+ export declare const safetySessionInputSchema: z.ZodObject<{
1978
+ sessionId: z.ZodString;
1979
+ accessToken: z.ZodString;
1980
+ action: z.ZodEnum<["profile", "messaging", "content", "purchases"]>;
1981
+ }, "strict", z.ZodTypeAny, {
1982
+ sessionId: string;
1983
+ accessToken: string;
1984
+ action: "profile" | "content" | "messaging" | "purchases";
1985
+ }, {
1986
+ sessionId: string;
1987
+ accessToken: string;
1988
+ action: "profile" | "content" | "messaging" | "purchases";
1989
+ }>;
1990
+ export declare const safetySessionValidationSchema: z.ZodObject<{
1991
+ valid: z.ZodLiteral<true>;
1992
+ sessionId: z.ZodString;
1993
+ expiresAt: z.ZodString;
1994
+ lastActivity: z.ZodString;
1995
+ user: z.ZodObject<{
1996
+ id: z.ZodOptional<z.ZodString>;
1997
+ _id: z.ZodOptional<z.ZodString>;
1998
+ publicKey: z.ZodOptional<z.ZodString>;
1999
+ username: z.ZodOptional<z.ZodString>;
2000
+ email: z.ZodOptional<z.ZodString>;
2001
+ phone: z.ZodOptional<z.ZodString>;
2002
+ address: z.ZodOptional<z.ZodString>;
2003
+ birthday: z.ZodOptional<z.ZodString>;
2004
+ dateOfBirth: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>, string, string>>;
2005
+ isAdult: z.ZodOptional<z.ZodBoolean>;
2006
+ avatar: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2007
+ color: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2008
+ name: z.ZodType<import("./userResponse").UserNameResponse, z.ZodTypeDef, import("./userResponse").UserNameResponse>;
2009
+ verified: z.ZodOptional<z.ZodBoolean>;
2010
+ languages: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2011
+ did: z.ZodOptional<z.ZodString>;
2012
+ verifiedDomains: z.ZodOptional<z.ZodArray<z.ZodType<import("./identity").VerifiedDomain, z.ZodTypeDef, import("./identity").VerifiedDomain>, "many">>;
2013
+ kind: z.ZodOptional<z.ZodEnum<["personal", "organization", "project", "bot", "channel"]>>;
2014
+ accountCategories: z.ZodOptional<z.ZodEffects<z.ZodArray<z.ZodEnum<["news", "politics", "business", "startup", "finance", "crypto", "marketplace", "retail", "real_estate", "agency", "landlord", "cooperative", "architecture", "technology", "software", "ai", "security", "automation", "science", "education", "books", "health", "fitness", "sports", "gaming", "music", "film", "podcast", "art", "photography", "comedy", "food", "travel", "fashion", "home_garden", "diy", "automotive", "animals", "family", "nonprofit", "government", "community", "activism", "environment", "religion", "other"]>, "many">, ("business" | "nonprofit" | "community" | "other" | "news" | "politics" | "startup" | "finance" | "crypto" | "marketplace" | "retail" | "real_estate" | "agency" | "landlord" | "cooperative" | "architecture" | "technology" | "software" | "ai" | "security" | "automation" | "science" | "education" | "books" | "health" | "fitness" | "sports" | "gaming" | "music" | "film" | "podcast" | "art" | "photography" | "comedy" | "food" | "travel" | "fashion" | "home_garden" | "diy" | "automotive" | "animals" | "family" | "government" | "activism" | "environment" | "religion")[], ("business" | "nonprofit" | "community" | "other" | "news" | "politics" | "startup" | "finance" | "crypto" | "marketplace" | "retail" | "real_estate" | "agency" | "landlord" | "cooperative" | "architecture" | "technology" | "software" | "ai" | "security" | "automation" | "science" | "education" | "books" | "health" | "fitness" | "sports" | "gaming" | "music" | "film" | "podcast" | "art" | "photography" | "comedy" | "food" | "travel" | "fashion" | "home_garden" | "diy" | "automotive" | "animals" | "family" | "government" | "activism" | "environment" | "religion")[]>>;
2015
+ character: z.ZodOptional<z.ZodType<import("./avatarCharacter").AvatarCharacter, z.ZodTypeDef, unknown>>;
2016
+ relationship: z.ZodOptional<z.ZodType<import("./userResponse").UserRelationship, z.ZodTypeDef, import("./userResponse").UserRelationship>>;
2017
+ themePreference: z.ZodOptional<z.ZodType<import("./userResponse").ThemePreference, z.ZodTypeDef, import("./userResponse").ThemePreference>>;
2018
+ personalization: z.ZodOptional<z.ZodObject<{
2019
+ mentionMono: z.ZodObject<{
2020
+ allowed: z.ZodBoolean;
2021
+ expiresAt: z.ZodNullable<z.ZodString>;
2022
+ }, "strict", z.ZodTypeAny, {
2023
+ expiresAt: string | null;
2024
+ allowed: boolean;
2025
+ }, {
2026
+ expiresAt: string | null;
2027
+ allowed: boolean;
2028
+ }>;
2029
+ }, "strict", z.ZodTypeAny, {
2030
+ mentionMono: {
2031
+ expiresAt: string | null;
2032
+ allowed: boolean;
2033
+ };
2034
+ }, {
2035
+ mentionMono: {
2036
+ expiresAt: string | null;
2037
+ allowed: boolean;
2038
+ };
2039
+ }>>;
2040
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
2041
+ id: z.ZodOptional<z.ZodString>;
2042
+ _id: z.ZodOptional<z.ZodString>;
2043
+ publicKey: z.ZodOptional<z.ZodString>;
2044
+ username: z.ZodOptional<z.ZodString>;
2045
+ email: z.ZodOptional<z.ZodString>;
2046
+ phone: z.ZodOptional<z.ZodString>;
2047
+ address: z.ZodOptional<z.ZodString>;
2048
+ birthday: z.ZodOptional<z.ZodString>;
2049
+ dateOfBirth: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>, string, string>>;
2050
+ isAdult: z.ZodOptional<z.ZodBoolean>;
2051
+ avatar: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2052
+ color: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2053
+ name: z.ZodType<import("./userResponse").UserNameResponse, z.ZodTypeDef, import("./userResponse").UserNameResponse>;
2054
+ verified: z.ZodOptional<z.ZodBoolean>;
2055
+ languages: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2056
+ did: z.ZodOptional<z.ZodString>;
2057
+ verifiedDomains: z.ZodOptional<z.ZodArray<z.ZodType<import("./identity").VerifiedDomain, z.ZodTypeDef, import("./identity").VerifiedDomain>, "many">>;
2058
+ kind: z.ZodOptional<z.ZodEnum<["personal", "organization", "project", "bot", "channel"]>>;
2059
+ accountCategories: z.ZodOptional<z.ZodEffects<z.ZodArray<z.ZodEnum<["news", "politics", "business", "startup", "finance", "crypto", "marketplace", "retail", "real_estate", "agency", "landlord", "cooperative", "architecture", "technology", "software", "ai", "security", "automation", "science", "education", "books", "health", "fitness", "sports", "gaming", "music", "film", "podcast", "art", "photography", "comedy", "food", "travel", "fashion", "home_garden", "diy", "automotive", "animals", "family", "nonprofit", "government", "community", "activism", "environment", "religion", "other"]>, "many">, ("business" | "nonprofit" | "community" | "other" | "news" | "politics" | "startup" | "finance" | "crypto" | "marketplace" | "retail" | "real_estate" | "agency" | "landlord" | "cooperative" | "architecture" | "technology" | "software" | "ai" | "security" | "automation" | "science" | "education" | "books" | "health" | "fitness" | "sports" | "gaming" | "music" | "film" | "podcast" | "art" | "photography" | "comedy" | "food" | "travel" | "fashion" | "home_garden" | "diy" | "automotive" | "animals" | "family" | "government" | "activism" | "environment" | "religion")[], ("business" | "nonprofit" | "community" | "other" | "news" | "politics" | "startup" | "finance" | "crypto" | "marketplace" | "retail" | "real_estate" | "agency" | "landlord" | "cooperative" | "architecture" | "technology" | "software" | "ai" | "security" | "automation" | "science" | "education" | "books" | "health" | "fitness" | "sports" | "gaming" | "music" | "film" | "podcast" | "art" | "photography" | "comedy" | "food" | "travel" | "fashion" | "home_garden" | "diy" | "automotive" | "animals" | "family" | "government" | "activism" | "environment" | "religion")[]>>;
2060
+ character: z.ZodOptional<z.ZodType<import("./avatarCharacter").AvatarCharacter, z.ZodTypeDef, unknown>>;
2061
+ relationship: z.ZodOptional<z.ZodType<import("./userResponse").UserRelationship, z.ZodTypeDef, import("./userResponse").UserRelationship>>;
2062
+ themePreference: z.ZodOptional<z.ZodType<import("./userResponse").ThemePreference, z.ZodTypeDef, import("./userResponse").ThemePreference>>;
2063
+ personalization: z.ZodOptional<z.ZodObject<{
2064
+ mentionMono: z.ZodObject<{
2065
+ allowed: z.ZodBoolean;
2066
+ expiresAt: z.ZodNullable<z.ZodString>;
2067
+ }, "strict", z.ZodTypeAny, {
2068
+ expiresAt: string | null;
2069
+ allowed: boolean;
2070
+ }, {
2071
+ expiresAt: string | null;
2072
+ allowed: boolean;
2073
+ }>;
2074
+ }, "strict", z.ZodTypeAny, {
2075
+ mentionMono: {
2076
+ expiresAt: string | null;
2077
+ allowed: boolean;
2078
+ };
2079
+ }, {
2080
+ mentionMono: {
2081
+ expiresAt: string | null;
2082
+ allowed: boolean;
2083
+ };
2084
+ }>>;
2085
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
2086
+ id: z.ZodOptional<z.ZodString>;
2087
+ _id: z.ZodOptional<z.ZodString>;
2088
+ publicKey: z.ZodOptional<z.ZodString>;
2089
+ username: z.ZodOptional<z.ZodString>;
2090
+ email: z.ZodOptional<z.ZodString>;
2091
+ phone: z.ZodOptional<z.ZodString>;
2092
+ address: z.ZodOptional<z.ZodString>;
2093
+ birthday: z.ZodOptional<z.ZodString>;
2094
+ dateOfBirth: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>, string, string>>;
2095
+ isAdult: z.ZodOptional<z.ZodBoolean>;
2096
+ avatar: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2097
+ color: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2098
+ name: z.ZodType<import("./userResponse").UserNameResponse, z.ZodTypeDef, import("./userResponse").UserNameResponse>;
2099
+ verified: z.ZodOptional<z.ZodBoolean>;
2100
+ languages: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2101
+ did: z.ZodOptional<z.ZodString>;
2102
+ verifiedDomains: z.ZodOptional<z.ZodArray<z.ZodType<import("./identity").VerifiedDomain, z.ZodTypeDef, import("./identity").VerifiedDomain>, "many">>;
2103
+ kind: z.ZodOptional<z.ZodEnum<["personal", "organization", "project", "bot", "channel"]>>;
2104
+ accountCategories: z.ZodOptional<z.ZodEffects<z.ZodArray<z.ZodEnum<["news", "politics", "business", "startup", "finance", "crypto", "marketplace", "retail", "real_estate", "agency", "landlord", "cooperative", "architecture", "technology", "software", "ai", "security", "automation", "science", "education", "books", "health", "fitness", "sports", "gaming", "music", "film", "podcast", "art", "photography", "comedy", "food", "travel", "fashion", "home_garden", "diy", "automotive", "animals", "family", "nonprofit", "government", "community", "activism", "environment", "religion", "other"]>, "many">, ("business" | "nonprofit" | "community" | "other" | "news" | "politics" | "startup" | "finance" | "crypto" | "marketplace" | "retail" | "real_estate" | "agency" | "landlord" | "cooperative" | "architecture" | "technology" | "software" | "ai" | "security" | "automation" | "science" | "education" | "books" | "health" | "fitness" | "sports" | "gaming" | "music" | "film" | "podcast" | "art" | "photography" | "comedy" | "food" | "travel" | "fashion" | "home_garden" | "diy" | "automotive" | "animals" | "family" | "government" | "activism" | "environment" | "religion")[], ("business" | "nonprofit" | "community" | "other" | "news" | "politics" | "startup" | "finance" | "crypto" | "marketplace" | "retail" | "real_estate" | "agency" | "landlord" | "cooperative" | "architecture" | "technology" | "software" | "ai" | "security" | "automation" | "science" | "education" | "books" | "health" | "fitness" | "sports" | "gaming" | "music" | "film" | "podcast" | "art" | "photography" | "comedy" | "food" | "travel" | "fashion" | "home_garden" | "diy" | "automotive" | "animals" | "family" | "government" | "activism" | "environment" | "religion")[]>>;
2105
+ character: z.ZodOptional<z.ZodType<import("./avatarCharacter").AvatarCharacter, z.ZodTypeDef, unknown>>;
2106
+ relationship: z.ZodOptional<z.ZodType<import("./userResponse").UserRelationship, z.ZodTypeDef, import("./userResponse").UserRelationship>>;
2107
+ themePreference: z.ZodOptional<z.ZodType<import("./userResponse").ThemePreference, z.ZodTypeDef, import("./userResponse").ThemePreference>>;
2108
+ personalization: z.ZodOptional<z.ZodObject<{
2109
+ mentionMono: z.ZodObject<{
2110
+ allowed: z.ZodBoolean;
2111
+ expiresAt: z.ZodNullable<z.ZodString>;
2112
+ }, "strict", z.ZodTypeAny, {
2113
+ expiresAt: string | null;
2114
+ allowed: boolean;
2115
+ }, {
2116
+ expiresAt: string | null;
2117
+ allowed: boolean;
2118
+ }>;
2119
+ }, "strict", z.ZodTypeAny, {
2120
+ mentionMono: {
2121
+ expiresAt: string | null;
2122
+ allowed: boolean;
2123
+ };
2124
+ }, {
2125
+ mentionMono: {
2126
+ expiresAt: string | null;
2127
+ allowed: boolean;
2128
+ };
2129
+ }>>;
2130
+ }, z.ZodTypeAny, "passthrough">>;
2131
+ actor: z.ZodEffects<z.ZodObject<{
2132
+ schemaVersion: z.ZodLiteral<1>;
2133
+ effectiveAccountId: z.ZodBranded<z.ZodString, "OxyAccountId">;
2134
+ actorAccountId: z.ZodBranded<z.ZodString, "OxyAccountId">;
2135
+ delegated: z.ZodBoolean;
2136
+ }, "strict", z.ZodTypeAny, {
2137
+ schemaVersion: 1;
2138
+ effectiveAccountId: string & z.BRAND<"OxyAccountId">;
2139
+ actorAccountId: string & z.BRAND<"OxyAccountId">;
2140
+ delegated: boolean;
2141
+ }, {
2142
+ schemaVersion: 1;
2143
+ effectiveAccountId: string;
2144
+ actorAccountId: string;
2145
+ delegated: boolean;
2146
+ }>, {
2147
+ schemaVersion: 1;
2148
+ effectiveAccountId: string & z.BRAND<"OxyAccountId">;
2149
+ actorAccountId: string & z.BRAND<"OxyAccountId">;
2150
+ delegated: boolean;
2151
+ }, {
2152
+ schemaVersion: 1;
2153
+ effectiveAccountId: string;
2154
+ actorAccountId: string;
2155
+ delegated: boolean;
2156
+ }>;
2157
+ }, "strict", z.ZodTypeAny, {
2158
+ valid: true;
2159
+ expiresAt: string;
2160
+ actor: {
2161
+ schemaVersion: 1;
2162
+ effectiveAccountId: string & z.BRAND<"OxyAccountId">;
2163
+ actorAccountId: string & z.BRAND<"OxyAccountId">;
2164
+ delegated: boolean;
2165
+ };
2166
+ sessionId: string;
2167
+ user: {
2168
+ name: import("./userResponse").UserNameResponse;
2169
+ color?: string | null | undefined;
2170
+ kind?: "organization" | "personal" | "project" | "bot" | "channel" | undefined;
2171
+ username?: string | undefined;
2172
+ avatar?: string | null | undefined;
2173
+ verifiedDomains?: import("./identity").VerifiedDomain[] | undefined;
2174
+ id?: string | undefined;
2175
+ accountCategories?: ("business" | "nonprofit" | "community" | "other" | "news" | "politics" | "startup" | "finance" | "crypto" | "marketplace" | "retail" | "real_estate" | "agency" | "landlord" | "cooperative" | "architecture" | "technology" | "software" | "ai" | "security" | "automation" | "science" | "education" | "books" | "health" | "fitness" | "sports" | "gaming" | "music" | "film" | "podcast" | "art" | "photography" | "comedy" | "food" | "travel" | "fashion" | "home_garden" | "diy" | "automotive" | "animals" | "family" | "government" | "activism" | "environment" | "religion")[] | undefined;
2176
+ character?: import("./avatarCharacter").AvatarCharacter | undefined;
2177
+ email?: string | undefined;
2178
+ publicKey?: string | undefined;
2179
+ verified?: boolean | undefined;
2180
+ did?: string | undefined;
2181
+ relationship?: import("./userResponse").UserRelationship | undefined;
2182
+ address?: string | undefined;
2183
+ phone?: string | undefined;
2184
+ _id?: string | undefined;
2185
+ birthday?: string | undefined;
2186
+ dateOfBirth?: string | undefined;
2187
+ isAdult?: boolean | undefined;
2188
+ languages?: string[] | undefined;
2189
+ themePreference?: import("./userResponse").ThemePreference | undefined;
2190
+ personalization?: {
2191
+ mentionMono: {
2192
+ expiresAt: string | null;
2193
+ allowed: boolean;
2194
+ };
2195
+ } | undefined;
2196
+ } & {
2197
+ [k: string]: unknown;
2198
+ };
2199
+ lastActivity: string;
2200
+ }, {
2201
+ valid: true;
2202
+ expiresAt: string;
2203
+ actor: {
2204
+ schemaVersion: 1;
2205
+ effectiveAccountId: string;
2206
+ actorAccountId: string;
2207
+ delegated: boolean;
2208
+ };
2209
+ sessionId: string;
2210
+ user: {
2211
+ name: import("./userResponse").UserNameResponse;
2212
+ color?: string | null | undefined;
2213
+ kind?: "organization" | "personal" | "project" | "bot" | "channel" | undefined;
2214
+ username?: string | undefined;
2215
+ avatar?: string | null | undefined;
2216
+ verifiedDomains?: import("./identity").VerifiedDomain[] | undefined;
2217
+ id?: string | undefined;
2218
+ accountCategories?: ("business" | "nonprofit" | "community" | "other" | "news" | "politics" | "startup" | "finance" | "crypto" | "marketplace" | "retail" | "real_estate" | "agency" | "landlord" | "cooperative" | "architecture" | "technology" | "software" | "ai" | "security" | "automation" | "science" | "education" | "books" | "health" | "fitness" | "sports" | "gaming" | "music" | "film" | "podcast" | "art" | "photography" | "comedy" | "food" | "travel" | "fashion" | "home_garden" | "diy" | "automotive" | "animals" | "family" | "government" | "activism" | "environment" | "religion")[] | undefined;
2219
+ character?: unknown;
2220
+ email?: string | undefined;
2221
+ publicKey?: string | undefined;
2222
+ verified?: boolean | undefined;
2223
+ did?: string | undefined;
2224
+ relationship?: import("./userResponse").UserRelationship | undefined;
2225
+ address?: string | undefined;
2226
+ phone?: string | undefined;
2227
+ _id?: string | undefined;
2228
+ birthday?: string | undefined;
2229
+ dateOfBirth?: string | undefined;
2230
+ isAdult?: boolean | undefined;
2231
+ languages?: string[] | undefined;
2232
+ themePreference?: import("./userResponse").ThemePreference | undefined;
2233
+ personalization?: {
2234
+ mentionMono: {
2235
+ expiresAt: string | null;
2236
+ allowed: boolean;
2237
+ };
2238
+ } | undefined;
2239
+ } & {
2240
+ [k: string]: unknown;
2241
+ };
2242
+ lastActivity: string;
2243
+ }>;
2244
+ /** Minimal identity for the authenticated account's supervision management, never profile details. */
2245
+ export declare const safetyPersonSchema: z.ZodObject<{
2246
+ accountId: z.ZodString;
2247
+ username: z.ZodNullable<z.ZodString>;
2248
+ displayName: z.ZodNullable<z.ZodString>;
2249
+ }, "strict", z.ZodTypeAny, {
2250
+ accountId: string;
2251
+ username: string | null;
2252
+ displayName: string | null;
2253
+ }, {
2254
+ accountId: string;
2255
+ username: string | null;
2256
+ displayName: string | null;
2257
+ }>;
2258
+ export declare const safetyPeopleInputSchema: z.ZodUnion<[z.ZodObject<{
2259
+ query: z.ZodString;
2260
+ }, "strict", z.ZodTypeAny, {
2261
+ query: string;
2262
+ }, {
2263
+ query: string;
2264
+ }>, z.ZodObject<{
2265
+ accountIds: z.ZodEffects<z.ZodArray<z.ZodString, "many">, string[], string[]>;
2266
+ }, "strict", z.ZodTypeAny, {
2267
+ accountIds: string[];
2268
+ }, {
2269
+ accountIds: string[];
2270
+ }>]>;
2271
+ export declare const safetyPeopleResponseSchema: z.ZodObject<{
2272
+ items: z.ZodArray<z.ZodObject<{
2273
+ accountId: z.ZodString;
2274
+ username: z.ZodNullable<z.ZodString>;
2275
+ displayName: z.ZodNullable<z.ZodString>;
2276
+ }, "strict", z.ZodTypeAny, {
2277
+ accountId: string;
2278
+ username: string | null;
2279
+ displayName: string | null;
2280
+ }, {
2281
+ accountId: string;
2282
+ username: string | null;
2283
+ displayName: string | null;
2284
+ }>, "many">;
2285
+ }, "strict", z.ZodTypeAny, {
2286
+ items: {
2287
+ accountId: string;
2288
+ username: string | null;
2289
+ displayName: string | null;
2290
+ }[];
2291
+ }, {
2292
+ items: {
2293
+ accountId: string;
2294
+ username: string | null;
2295
+ displayName: string | null;
2296
+ }[];
2297
+ }>;
2298
+ export type SafetyPerson = z.infer<typeof safetyPersonSchema>;
2299
+ export type SafetyPeopleInput = z.infer<typeof safetyPeopleInputSchema>;
2300
+ export type SafetyPeopleResponse = z.infer<typeof safetyPeopleResponseSchema>;
2301
+ /** Existing public employer identity only; never directory content or management authority. */
2302
+ export declare const safetyOrganizationIdentitySchema: z.ZodObject<{
2303
+ accountId: z.ZodString;
2304
+ username: z.ZodNullable<z.ZodString>;
2305
+ name: z.ZodString;
2306
+ organizationType: z.ZodEnum<["business", "nonprofit", "public_body", "community", "other"]>;
2307
+ }, "strict", z.ZodTypeAny, {
2308
+ name: string;
2309
+ organizationType: "business" | "nonprofit" | "public_body" | "community" | "other";
2310
+ accountId: string;
2311
+ username: string | null;
2312
+ }, {
2313
+ name: string;
2314
+ organizationType: "business" | "nonprofit" | "public_body" | "community" | "other";
2315
+ accountId: string;
2316
+ username: string | null;
2317
+ }>;
2318
+ export declare const safetyOrganizationsInputSchema: z.ZodUnion<[z.ZodObject<{
2319
+ query: z.ZodString;
2320
+ limit: z.ZodOptional<z.ZodNumber>;
2321
+ }, "strict", z.ZodTypeAny, {
2322
+ query: string;
2323
+ limit?: number | undefined;
2324
+ }, {
2325
+ query: string;
2326
+ limit?: number | undefined;
2327
+ }>, z.ZodObject<{
2328
+ ids: z.ZodEffects<z.ZodArray<z.ZodString, "many">, string[], string[]>;
2329
+ }, "strict", z.ZodTypeAny, {
2330
+ ids: string[];
2331
+ }, {
2332
+ ids: string[];
2333
+ }>]>;
2334
+ export declare const safetyOrganizationsResponseSchema: z.ZodObject<{
2335
+ items: z.ZodArray<z.ZodObject<{
2336
+ requestedAccountId: z.ZodString;
2337
+ organization: z.ZodObject<{
2338
+ accountId: z.ZodString;
2339
+ username: z.ZodNullable<z.ZodString>;
2340
+ name: z.ZodString;
2341
+ organizationType: z.ZodEnum<["business", "nonprofit", "public_body", "community", "other"]>;
2342
+ }, "strict", z.ZodTypeAny, {
2343
+ name: string;
2344
+ organizationType: "business" | "nonprofit" | "public_body" | "community" | "other";
2345
+ accountId: string;
2346
+ username: string | null;
2347
+ }, {
2348
+ name: string;
2349
+ organizationType: "business" | "nonprofit" | "public_body" | "community" | "other";
2350
+ accountId: string;
2351
+ username: string | null;
2352
+ }>;
2353
+ }, "strict", z.ZodTypeAny, {
2354
+ requestedAccountId: string;
2355
+ organization: {
2356
+ name: string;
2357
+ organizationType: "business" | "nonprofit" | "public_body" | "community" | "other";
2358
+ accountId: string;
2359
+ username: string | null;
2360
+ };
2361
+ }, {
2362
+ requestedAccountId: string;
2363
+ organization: {
2364
+ name: string;
2365
+ organizationType: "business" | "nonprofit" | "public_body" | "community" | "other";
2366
+ accountId: string;
2367
+ username: string | null;
2368
+ };
2369
+ }>, "many">;
2370
+ missingIds: z.ZodArray<z.ZodString, "many">;
2371
+ }, "strict", z.ZodTypeAny, {
2372
+ items: {
2373
+ requestedAccountId: string;
2374
+ organization: {
2375
+ name: string;
2376
+ organizationType: "business" | "nonprofit" | "public_body" | "community" | "other";
2377
+ accountId: string;
2378
+ username: string | null;
2379
+ };
2380
+ }[];
2381
+ missingIds: string[];
2382
+ }, {
2383
+ items: {
2384
+ requestedAccountId: string;
2385
+ organization: {
2386
+ name: string;
2387
+ organizationType: "business" | "nonprofit" | "public_body" | "community" | "other";
2388
+ accountId: string;
2389
+ username: string | null;
2390
+ };
2391
+ }[];
2392
+ missingIds: string[];
2393
+ }>;
2394
+ export type SafetyOrganizationIdentity = z.infer<typeof safetyOrganizationIdentitySchema>;
2395
+ export type SafetyOrganizationsInput = z.infer<typeof safetyOrganizationsInputSchema>;
2396
+ export type SafetyOrganizationsResponse = z.infer<typeof safetyOrganizationsResponseSchema>;