@oxy.so/contracts 4.14.0 → 4.16.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 (51) hide show
  1. package/dist/cjs/.tsbuildinfo +1 -1
  2. package/dist/cjs/index.js +15 -9
  3. package/dist/cjs/inference/money.js +10 -0
  4. package/dist/cjs/inference/version.js +1 -1
  5. package/dist/cjs/signIn.js +40 -1
  6. package/dist/esm/.tsbuildinfo +1 -1
  7. package/dist/esm/index.js +1 -1
  8. package/dist/esm/inference/money.js +10 -0
  9. package/dist/esm/inference/version.js +1 -1
  10. package/dist/esm/signIn.js +38 -0
  11. package/dist/types/.tsbuildinfo +1 -1
  12. package/dist/types/accountGraph.d.ts +22 -22
  13. package/dist/types/accountSubject.d.ts +4 -4
  14. package/dist/types/agency.d.ts +86 -86
  15. package/dist/types/deviceDirectory.d.ts +180 -180
  16. package/dist/types/email/messages.d.ts +78 -78
  17. package/dist/types/externalIdentity.d.ts +59 -59
  18. package/dist/types/index.d.ts +2 -2
  19. package/dist/types/inference/accountBilling.d.ts +36 -36
  20. package/dist/types/inference/catalogue.d.ts +19 -19
  21. package/dist/types/inference/decisions.d.ts +47 -47
  22. package/dist/types/inference/economics.d.ts +11 -11
  23. package/dist/types/inference/embeddings.d.ts +18 -18
  24. package/dist/types/inference/entitlement.d.ts +12 -12
  25. package/dist/types/inference/errors.d.ts +4 -4
  26. package/dist/types/inference/inbox.d.ts +17 -17
  27. package/dist/types/inference/money.d.ts +17 -8
  28. package/dist/types/inference/priceVersion.d.ts +20 -20
  29. package/dist/types/inference/privateAutoExecution.d.ts +12 -12
  30. package/dist/types/inference/providerConnection.d.ts +24 -24
  31. package/dist/types/inference/realtime.d.ts +50 -50
  32. package/dist/types/inference/request.d.ts +26 -26
  33. package/dist/types/inference/routingPolicy.d.ts +11 -11
  34. package/dist/types/inference/scopedExecution.d.ts +8 -8
  35. package/dist/types/inference/streamEvents.d.ts +30 -30
  36. package/dist/types/inference/usage.d.ts +36 -36
  37. package/dist/types/inference/version.d.ts +1 -1
  38. package/dist/types/keyRecovery.d.ts +4 -4
  39. package/dist/types/linkedAccounts.d.ts +16 -16
  40. package/dist/types/notifications.d.ts +4 -4
  41. package/dist/types/oauth.d.ts +40 -40
  42. package/dist/types/products/access.d.ts +18 -18
  43. package/dist/types/products/billing.d.ts +24 -24
  44. package/dist/types/products/plans.d.ts +6 -6
  45. package/dist/types/recommendations.d.ts +30 -30
  46. package/dist/types/safety.d.ts +2 -2
  47. package/dist/types/sessionStatus.d.ts +6 -6
  48. package/dist/types/signIn.d.ts +82 -1
  49. package/dist/types/stickers.d.ts +32 -32
  50. package/dist/types/userResponse.d.ts +108 -108
  51. package/package.json +1 -1
@@ -207,7 +207,7 @@ export declare const MAX_ACCOUNT_CATEGORIES = 4;
207
207
  * property the list exists to carry. A duplicate only ever comes from a client
208
208
  * bug, and a 400 naming the index is how that bug gets found.
209
209
  */
210
- export declare const accountCategoriesSchema: 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">, ("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")[], ("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")[]>;
210
+ export declare const accountCategoriesSchema: 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" | "security" | "news" | "politics" | "startup" | "finance" | "crypto" | "marketplace" | "retail" | "real_estate" | "agency" | "landlord" | "cooperative" | "architecture" | "technology" | "software" | "ai" | "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" | "security" | "news" | "politics" | "startup" | "finance" | "crypto" | "marketplace" | "retail" | "real_estate" | "agency" | "landlord" | "cooperative" | "architecture" | "technology" | "software" | "ai" | "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")[]>;
211
211
  /**
212
212
  * Kinds that may carry categories: every kind EXCEPT `personal`.
213
213
  *
@@ -314,7 +314,7 @@ export declare const createAccountRequestSchema: z.ZodEffects<z.ZodObject<{
314
314
  */
315
315
  color: z.ZodOptional<z.ZodString>;
316
316
  /** Ordered, PRIMARY FIRST — see rule 2 above {@link ACCOUNT_CATEGORY_IDS}. */
317
- 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">, ("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")[], ("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")[]>>;
317
+ 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" | "security" | "news" | "politics" | "startup" | "finance" | "crypto" | "marketplace" | "retail" | "real_estate" | "agency" | "landlord" | "cooperative" | "architecture" | "technology" | "software" | "ai" | "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" | "security" | "news" | "politics" | "startup" | "finance" | "crypto" | "marketplace" | "retail" | "real_estate" | "agency" | "landlord" | "cooperative" | "architecture" | "technology" | "software" | "ai" | "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")[]>>;
318
318
  organizationType: z.ZodOptional<z.ZodEnum<["business", "nonprofit", "public_body", "community", "other"]>>;
319
319
  /**
320
320
  * Create the account already opted OUT of discovery.
@@ -365,71 +365,71 @@ export declare const createAccountRequestSchema: z.ZodEffects<z.ZodObject<{
365
365
  */
366
366
  character: z.ZodOptional<z.ZodType<import("./avatarCharacter").AvatarCharacter, z.ZodTypeDef, unknown>>;
367
367
  }, "strip", z.ZodTypeAny, {
368
- kind: "organization" | "project" | "bot" | "channel";
368
+ kind: "organization" | "bot" | "project" | "channel";
369
369
  username: string;
370
370
  color?: string | undefined;
371
- parentAccountId?: string | undefined;
372
371
  name?: {
373
372
  first?: string | undefined;
374
373
  last?: string | undefined;
375
374
  displayName?: string | undefined;
376
375
  } | undefined;
377
- bio?: string | undefined;
376
+ organizationType?: "business" | "nonprofit" | "public_body" | "community" | "other" | undefined;
378
377
  avatar?: string | undefined;
378
+ parentAccountId?: string | undefined;
379
+ bio?: string | undefined;
379
380
  description?: string | undefined;
380
- accountCategories?: ("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")[] | undefined;
381
- organizationType?: "business" | "nonprofit" | "community" | "other" | "public_body" | undefined;
381
+ accountCategories?: ("business" | "nonprofit" | "community" | "other" | "security" | "news" | "politics" | "startup" | "finance" | "crypto" | "marketplace" | "retail" | "real_estate" | "agency" | "landlord" | "cooperative" | "architecture" | "technology" | "software" | "ai" | "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;
382
382
  isPrivateAccount?: boolean | undefined;
383
383
  character?: import("./avatarCharacter").AvatarCharacter | undefined;
384
384
  }, {
385
- kind: "organization" | "project" | "bot" | "channel";
385
+ kind: "organization" | "bot" | "project" | "channel";
386
386
  username: string;
387
387
  color?: string | undefined;
388
- parentAccountId?: string | undefined;
389
388
  name?: {
390
389
  first?: string | undefined;
391
390
  last?: string | undefined;
392
391
  displayName?: string | undefined;
393
392
  } | undefined;
394
- bio?: string | undefined;
393
+ organizationType?: "business" | "nonprofit" | "public_body" | "community" | "other" | undefined;
395
394
  avatar?: string | undefined;
395
+ parentAccountId?: string | undefined;
396
+ bio?: string | undefined;
396
397
  description?: string | undefined;
397
- accountCategories?: ("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")[] | undefined;
398
- organizationType?: "business" | "nonprofit" | "community" | "other" | "public_body" | undefined;
398
+ accountCategories?: ("business" | "nonprofit" | "community" | "other" | "security" | "news" | "politics" | "startup" | "finance" | "crypto" | "marketplace" | "retail" | "real_estate" | "agency" | "landlord" | "cooperative" | "architecture" | "technology" | "software" | "ai" | "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;
399
399
  isPrivateAccount?: boolean | undefined;
400
400
  character?: unknown;
401
401
  }>, {
402
- kind: "organization" | "project" | "bot" | "channel";
402
+ kind: "organization" | "bot" | "project" | "channel";
403
403
  username: string;
404
404
  color?: string | undefined;
405
- parentAccountId?: string | undefined;
406
405
  name?: {
407
406
  first?: string | undefined;
408
407
  last?: string | undefined;
409
408
  displayName?: string | undefined;
410
409
  } | undefined;
411
- bio?: string | undefined;
410
+ organizationType?: "business" | "nonprofit" | "public_body" | "community" | "other" | undefined;
412
411
  avatar?: string | undefined;
412
+ parentAccountId?: string | undefined;
413
+ bio?: string | undefined;
413
414
  description?: string | undefined;
414
- accountCategories?: ("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")[] | undefined;
415
- organizationType?: "business" | "nonprofit" | "community" | "other" | "public_body" | undefined;
415
+ accountCategories?: ("business" | "nonprofit" | "community" | "other" | "security" | "news" | "politics" | "startup" | "finance" | "crypto" | "marketplace" | "retail" | "real_estate" | "agency" | "landlord" | "cooperative" | "architecture" | "technology" | "software" | "ai" | "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;
416
416
  isPrivateAccount?: boolean | undefined;
417
417
  character?: import("./avatarCharacter").AvatarCharacter | undefined;
418
418
  }, {
419
- kind: "organization" | "project" | "bot" | "channel";
419
+ kind: "organization" | "bot" | "project" | "channel";
420
420
  username: string;
421
421
  color?: string | undefined;
422
- parentAccountId?: string | undefined;
423
422
  name?: {
424
423
  first?: string | undefined;
425
424
  last?: string | undefined;
426
425
  displayName?: string | undefined;
427
426
  } | undefined;
428
- bio?: string | undefined;
427
+ organizationType?: "business" | "nonprofit" | "public_body" | "community" | "other" | undefined;
429
428
  avatar?: string | undefined;
429
+ parentAccountId?: string | undefined;
430
+ bio?: string | undefined;
430
431
  description?: string | undefined;
431
- accountCategories?: ("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")[] | undefined;
432
- organizationType?: "business" | "nonprofit" | "community" | "other" | "public_body" | undefined;
432
+ accountCategories?: ("business" | "nonprofit" | "community" | "other" | "security" | "news" | "politics" | "startup" | "finance" | "crypto" | "marketplace" | "retail" | "real_estate" | "agency" | "landlord" | "cooperative" | "architecture" | "technology" | "software" | "ai" | "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;
433
433
  isPrivateAccount?: boolean | undefined;
434
434
  character?: unknown;
435
435
  }>;
@@ -166,7 +166,7 @@ export declare const financialEffectAttributionSchema: z.ZodEffects<z.ZodObject<
166
166
  }>;
167
167
  }, "strict", z.ZodTypeAny, {
168
168
  schemaVersion: 1;
169
- direction: "debit" | "credit";
169
+ direction: "credit" | "debit";
170
170
  subjectAccountId: string & z.BRAND<"OxyAccountId">;
171
171
  actor: {
172
172
  schemaVersion: 1;
@@ -176,7 +176,7 @@ export declare const financialEffectAttributionSchema: z.ZodEffects<z.ZodObject<
176
176
  };
177
177
  }, {
178
178
  schemaVersion: 1;
179
- direction: "debit" | "credit";
179
+ direction: "credit" | "debit";
180
180
  subjectAccountId: string;
181
181
  actor: {
182
182
  schemaVersion: 1;
@@ -186,7 +186,7 @@ export declare const financialEffectAttributionSchema: z.ZodEffects<z.ZodObject<
186
186
  };
187
187
  }>, {
188
188
  schemaVersion: 1;
189
- direction: "debit" | "credit";
189
+ direction: "credit" | "debit";
190
190
  subjectAccountId: string & z.BRAND<"OxyAccountId">;
191
191
  actor: {
192
192
  schemaVersion: 1;
@@ -196,7 +196,7 @@ export declare const financialEffectAttributionSchema: z.ZodEffects<z.ZodObject<
196
196
  };
197
197
  }, {
198
198
  schemaVersion: 1;
199
- direction: "debit" | "credit";
199
+ direction: "credit" | "debit";
200
200
  subjectAccountId: string;
201
201
  actor: {
202
202
  schemaVersion: 1;