@oxy.so/contracts 5.8.0 → 6.1.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 (231) hide show
  1. package/dist/cjs/accountAccess.js +6 -5
  2. package/dist/cjs/accountEmail.js +13 -5
  3. package/dist/cjs/accountGraph.js +10 -9
  4. package/dist/cjs/accountName.js +3 -2
  5. package/dist/cjs/agency.js +91 -34
  6. package/dist/cjs/agentKeys.js +21 -17
  7. package/dist/cjs/appAssertions.js +14 -13
  8. package/dist/cjs/applicationRoles.js +19 -12
  9. package/dist/cjs/campaignAttribution.js +28 -0
  10. package/dist/cjs/civic.js +10 -9
  11. package/dist/cjs/client/campaignAttribution.js +14 -0
  12. package/dist/cjs/client/check.js +61 -53
  13. package/dist/cjs/client/index.js +7 -1
  14. package/dist/cjs/client/language.js +7 -0
  15. package/dist/cjs/consoleOnboarding.js +9 -4
  16. package/dist/cjs/contentClaims.js +23 -14
  17. package/dist/cjs/deviceDirectory.js +11 -9
  18. package/dist/cjs/deviceSession.js +27 -25
  19. package/dist/cjs/email/messages.js +20 -18
  20. package/dist/cjs/emailAgentContext.js +11 -9
  21. package/dist/cjs/externalIdentity.js +15 -11
  22. package/dist/cjs/federationInstanceFetch.js +12 -7
  23. package/dist/cjs/identity.js +19 -17
  24. package/dist/cjs/identityLink.js +6 -4
  25. package/dist/cjs/identityProof.js +6 -4
  26. package/dist/cjs/inboxPush.js +5 -4
  27. package/dist/cjs/index.js +17 -6
  28. package/dist/cjs/inference/accountBilling.js +35 -33
  29. package/dist/cjs/inference/aliaModelRelease.js +9 -7
  30. package/dist/cjs/inference/attribution.js +14 -12
  31. package/dist/cjs/inference/catalogue.js +35 -29
  32. package/dist/cjs/inference/economics.js +24 -19
  33. package/dist/cjs/inference/embeddings.js +9 -7
  34. package/dist/cjs/inference/entitlement.js +17 -15
  35. package/dist/cjs/inference/errors.js +15 -8
  36. package/dist/cjs/inference/identifiers.js +33 -21
  37. package/dist/cjs/inference/inbox.js +37 -35
  38. package/dist/cjs/inference/modelDocumentation.js +16 -14
  39. package/dist/cjs/inference/money.js +5 -4
  40. package/dist/cjs/inference/priceVersion.js +10 -5
  41. package/dist/cjs/inference/providerConnection.js +21 -14
  42. package/dist/cjs/inference/realtime.js +88 -47
  43. package/dist/cjs/inference/request.js +27 -25
  44. package/dist/cjs/inference/routingPolicy.js +12 -10
  45. package/dist/cjs/inference/streamEvents.js +22 -16
  46. package/dist/cjs/inference/usage.js +32 -15
  47. package/dist/cjs/keyRecovery.js +8 -6
  48. package/dist/cjs/keyRotation.js +5 -4
  49. package/dist/cjs/linkedAccounts.js +22 -18
  50. package/dist/cjs/moderationReputation.js +29 -27
  51. package/dist/cjs/notifications.js +25 -9
  52. package/dist/cjs/numberChecks.js +45 -0
  53. package/dist/cjs/oauth.js +14 -12
  54. package/dist/cjs/organizations.js +23 -21
  55. package/dist/cjs/products/access.js +10 -8
  56. package/dist/cjs/products/billing.js +10 -8
  57. package/dist/cjs/products/checkout.js +22 -10
  58. package/dist/cjs/products/plans.js +15 -10
  59. package/dist/cjs/protocol.js +6 -5
  60. package/dist/cjs/recommendations.js +27 -19
  61. package/dist/cjs/reputation.js +15 -13
  62. package/dist/cjs/safety.js +43 -27
  63. package/dist/cjs/serviceToken.js +81 -2
  64. package/dist/cjs/sessionRevocation.js +8 -6
  65. package/dist/cjs/signIn.js +50 -24
  66. package/dist/cjs/stickers.js +19 -15
  67. package/dist/cjs/stringChecks.js +70 -0
  68. package/dist/cjs/transparency.js +14 -12
  69. package/dist/cjs/updates.js +24 -22
  70. package/dist/cjs/userInvalidation.js +7 -5
  71. package/dist/cjs/userResponse.js +8 -7
  72. package/dist/cjs/username.js +7 -6
  73. package/dist/esm/accountAccess.js +4 -3
  74. package/dist/esm/accountEmail.js +13 -5
  75. package/dist/esm/accountGraph.js +8 -7
  76. package/dist/esm/accountName.js +3 -2
  77. package/dist/esm/agency.js +90 -33
  78. package/dist/esm/agentKeys.js +21 -17
  79. package/dist/esm/appAssertions.js +11 -10
  80. package/dist/esm/applicationRoles.js +16 -9
  81. package/dist/esm/campaignAttribution.js +25 -0
  82. package/dist/esm/civic.js +8 -7
  83. package/dist/esm/client/campaignAttribution.js +10 -0
  84. package/dist/esm/client/check.js +61 -53
  85. package/dist/esm/client/index.js +2 -0
  86. package/dist/esm/client/language.js +4 -0
  87. package/dist/esm/consoleOnboarding.js +7 -2
  88. package/dist/esm/contentClaims.js +23 -14
  89. package/dist/esm/deviceDirectory.js +11 -9
  90. package/dist/esm/deviceSession.js +27 -25
  91. package/dist/esm/email/messages.js +18 -16
  92. package/dist/esm/emailAgentContext.js +11 -9
  93. package/dist/esm/externalIdentity.js +15 -11
  94. package/dist/esm/federationInstanceFetch.js +10 -5
  95. package/dist/esm/identity.js +17 -15
  96. package/dist/esm/identityLink.js +6 -4
  97. package/dist/esm/identityProof.js +6 -4
  98. package/dist/esm/inboxPush.js +3 -2
  99. package/dist/esm/index.js +5 -2
  100. package/dist/esm/inference/accountBilling.js +33 -31
  101. package/dist/esm/inference/aliaModelRelease.js +7 -5
  102. package/dist/esm/inference/attribution.js +14 -12
  103. package/dist/esm/inference/catalogue.js +33 -27
  104. package/dist/esm/inference/economics.js +22 -17
  105. package/dist/esm/inference/embeddings.js +9 -7
  106. package/dist/esm/inference/entitlement.js +15 -13
  107. package/dist/esm/inference/errors.js +13 -6
  108. package/dist/esm/inference/identifiers.js +31 -19
  109. package/dist/esm/inference/inbox.js +37 -35
  110. package/dist/esm/inference/modelDocumentation.js +14 -12
  111. package/dist/esm/inference/money.js +3 -2
  112. package/dist/esm/inference/priceVersion.js +8 -3
  113. package/dist/esm/inference/providerConnection.js +19 -12
  114. package/dist/esm/inference/realtime.js +85 -44
  115. package/dist/esm/inference/request.js +25 -23
  116. package/dist/esm/inference/routingPolicy.js +9 -7
  117. package/dist/esm/inference/streamEvents.js +20 -14
  118. package/dist/esm/inference/usage.js +30 -13
  119. package/dist/esm/keyRecovery.js +8 -6
  120. package/dist/esm/keyRotation.js +5 -4
  121. package/dist/esm/linkedAccounts.js +20 -16
  122. package/dist/esm/moderationReputation.js +27 -25
  123. package/dist/esm/notifications.js +23 -7
  124. package/dist/esm/numberChecks.js +41 -0
  125. package/dist/esm/oauth.js +14 -12
  126. package/dist/esm/organizations.js +23 -21
  127. package/dist/esm/products/access.js +10 -8
  128. package/dist/esm/products/billing.js +10 -8
  129. package/dist/esm/products/checkout.js +22 -10
  130. package/dist/esm/products/plans.js +15 -10
  131. package/dist/esm/protocol.js +4 -3
  132. package/dist/esm/recommendations.js +25 -17
  133. package/dist/esm/reputation.js +13 -11
  134. package/dist/esm/safety.js +43 -27
  135. package/dist/esm/serviceToken.js +80 -1
  136. package/dist/esm/sessionRevocation.js +6 -4
  137. package/dist/esm/signIn.js +50 -24
  138. package/dist/esm/stickers.js +17 -13
  139. package/dist/esm/stringChecks.js +63 -0
  140. package/dist/esm/transparency.js +14 -12
  141. package/dist/esm/updates.js +22 -20
  142. package/dist/esm/userInvalidation.js +4 -2
  143. package/dist/esm/userResponse.js +4 -3
  144. package/dist/esm/username.js +3 -2
  145. package/dist/types/accountAccess.d.ts +29 -70
  146. package/dist/types/accountEmail.d.ts +2 -14
  147. package/dist/types/accountGraph.d.ts +179 -171
  148. package/dist/types/accountName.d.ts +1 -1
  149. package/dist/types/accountSubject.d.ts +20 -93
  150. package/dist/types/agency.d.ts +528 -2924
  151. package/dist/types/agentKeys.d.ts +48 -421
  152. package/dist/types/appAssertions.d.ts +56 -210
  153. package/dist/types/applicationRoles.d.ts +30 -276
  154. package/dist/types/avatarCharacter.d.ts +1 -1
  155. package/dist/types/campaignAttribution.d.ts +10 -0
  156. package/dist/types/civic.d.ts +1 -13
  157. package/dist/types/client/agentKeys.d.ts +18 -18
  158. package/dist/types/client/appAssertions.d.ts +3 -3
  159. package/dist/types/client/campaignAttribution.d.ts +12 -0
  160. package/dist/types/client/check.d.ts +13 -13
  161. package/dist/types/client/deviceDirectory.d.ts +51 -51
  162. package/dist/types/client/deviceSession.d.ts +14 -14
  163. package/dist/types/client/index.d.ts +3 -0
  164. package/dist/types/client/language.d.ts +2 -0
  165. package/dist/types/client/organizations.d.ts +25 -25
  166. package/dist/types/client/products.d.ts +33 -33
  167. package/dist/types/client/recommendations.d.ts +2 -2
  168. package/dist/types/client/safety.d.ts +45 -45
  169. package/dist/types/client/sessionStatus.d.ts +4 -4
  170. package/dist/types/client/signIn.d.ts +1 -1
  171. package/dist/types/commonsSignIn.d.ts +4 -1
  172. package/dist/types/consoleOnboarding.d.ts +24 -44
  173. package/dist/types/contentClaims.d.ts +24 -180
  174. package/dist/types/deviceDirectory.d.ts +109 -1040
  175. package/dist/types/deviceSession.d.ts +36 -298
  176. package/dist/types/email/messages.d.ts +212 -1793
  177. package/dist/types/emailAgentContext.d.ts +10 -194
  178. package/dist/types/externalIdentity.d.ts +121 -615
  179. package/dist/types/federationInstanceFetch.d.ts +3 -32
  180. package/dist/types/identity.d.ts +15 -92
  181. package/dist/types/identityLink.d.ts +6 -84
  182. package/dist/types/identityProof.d.ts +5 -17
  183. package/dist/types/inboxPush.d.ts +1 -9
  184. package/dist/types/index.d.ts +7 -3
  185. package/dist/types/inference/accountBilling.d.ts +151 -488
  186. package/dist/types/inference/aliaModelRelease.d.ts +42 -439
  187. package/dist/types/inference/attribution.d.ts +75 -104
  188. package/dist/types/inference/catalogue.d.ts +417 -1599
  189. package/dist/types/inference/economics.d.ts +69 -276
  190. package/dist/types/inference/embeddings.d.ts +110 -406
  191. package/dist/types/inference/entitlement.d.ts +80 -335
  192. package/dist/types/inference/errors.d.ts +90 -102
  193. package/dist/types/inference/identifiers.d.ts +12 -4
  194. package/dist/types/inference/inbox.d.ts +105 -420
  195. package/dist/types/inference/modelDocumentation.d.ts +201 -1390
  196. package/dist/types/inference/money.d.ts +65 -32
  197. package/dist/types/inference/priceVersion.d.ts +53 -120
  198. package/dist/types/inference/providerConnection.d.ts +253 -710
  199. package/dist/types/inference/realtime.d.ts +954 -6825
  200. package/dist/types/inference/request.d.ts +300 -2572
  201. package/dist/types/inference/routingPolicy.d.ts +95 -503
  202. package/dist/types/inference/streamEvents.d.ts +253 -721
  203. package/dist/types/inference/usage.d.ts +317 -950
  204. package/dist/types/keyRecovery.d.ts +3 -51
  205. package/dist/types/keyRotation.d.ts +3 -38
  206. package/dist/types/linkedAccounts.d.ts +50 -236
  207. package/dist/types/moderationReputation.d.ts +81 -14
  208. package/dist/types/notifications.d.ts +19 -51
  209. package/dist/types/numberChecks.d.ts +9 -0
  210. package/dist/types/oauth.d.ts +101 -809
  211. package/dist/types/organizations.d.ts +268 -921
  212. package/dist/types/oxyRecordTypes.d.ts +11 -1
  213. package/dist/types/products/access.d.ts +125 -775
  214. package/dist/types/products/billing.d.ts +67 -503
  215. package/dist/types/products/checkout.d.ts +16 -69
  216. package/dist/types/products/plans.d.ts +33 -366
  217. package/dist/types/recommendations.d.ts +76 -389
  218. package/dist/types/reputation.d.ts +37 -5
  219. package/dist/types/safety.d.ts +408 -2048
  220. package/dist/types/serviceToken.d.ts +247 -7
  221. package/dist/types/sessionRevocation.d.ts +2 -17
  222. package/dist/types/sessionStatus.d.ts +27 -115
  223. package/dist/types/signIn.d.ts +62 -553
  224. package/dist/types/stickers.d.ts +67 -819
  225. package/dist/types/stringChecks.d.ts +16 -0
  226. package/dist/types/transparency.d.ts +14 -302
  227. package/dist/types/updates.d.ts +60 -316
  228. package/dist/types/userInvalidation.d.ts +4 -13
  229. package/dist/types/userResponse.d.ts +302 -2400
  230. package/dist/types/username.d.ts +3 -3
  231. package/package.json +6 -4
@@ -1,96 +1,43 @@
1
1
  import { z } from 'zod';
2
2
  export declare const personalPlanCheckoutRequestSchema: z.ZodObject<{
3
- expectedSubjectAccountId: z.ZodBranded<z.ZodString, "OxyAccountId">;
3
+ expectedSubjectAccountId: z.core.$ZodBranded<z.ZodString, "OxyAccountId", "out">;
4
4
  offerId: z.ZodString;
5
5
  offerVersion: z.ZodNumber;
6
6
  idempotencyKey: z.ZodString;
7
- }, "strict", z.ZodTypeAny, {
8
- idempotencyKey: string;
9
- offerId: string;
10
- offerVersion: number;
11
- expectedSubjectAccountId: string & z.BRAND<"OxyAccountId">;
12
- }, {
13
- idempotencyKey: string;
14
- offerId: string;
15
- offerVersion: number;
16
- expectedSubjectAccountId: string;
17
- }>;
7
+ }, z.core.$strict>;
18
8
  /** No grant or subscription is created by checkout completion in the browser. */
19
- export declare const personalPlanCheckoutResultSchema: z.ZodDiscriminatedUnion<"state", [z.ZodObject<{
9
+ export declare const personalPlanCheckoutResultSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
20
10
  state: z.ZodLiteral<"unconfigured">;
21
- reason: z.ZodEnum<["provider_unconfigured", "offer_unconfigured", "price_unconfigured"]>;
22
- }, "strict", z.ZodTypeAny, {
23
- reason: "provider_unconfigured" | "offer_unconfigured" | "price_unconfigured";
24
- state: "unconfigured";
25
- }, {
26
- reason: "provider_unconfigured" | "offer_unconfigured" | "price_unconfigured";
27
- state: "unconfigured";
28
- }>, z.ZodObject<{
11
+ reason: z.ZodEnum<{
12
+ provider_unconfigured: "provider_unconfigured";
13
+ offer_unconfigured: "offer_unconfigured";
14
+ price_unconfigured: "price_unconfigured";
15
+ }>;
16
+ }, z.core.$strict>, z.ZodObject<{
29
17
  state: z.ZodLiteral<"pending">;
30
18
  intentId: z.ZodString;
31
19
  checkoutUrl: z.ZodOptional<z.ZodString>;
32
- }, "strict", z.ZodTypeAny, {
33
- state: "pending";
34
- intentId: string;
35
- checkoutUrl?: string | undefined;
36
- }, {
37
- state: "pending";
38
- intentId: string;
39
- checkoutUrl?: string | undefined;
40
- }>, z.ZodObject<{
20
+ }, z.core.$strict>, z.ZodObject<{
41
21
  state: z.ZodLiteral<"closed">;
42
22
  intentId: z.ZodString;
43
- }, "strict", z.ZodTypeAny, {
44
- state: "closed";
45
- intentId: string;
46
- }, {
47
- state: "closed";
48
- intentId: string;
49
- }>, z.ZodObject<{
23
+ }, z.core.$strict>, z.ZodObject<{
50
24
  state: z.ZodLiteral<"fulfilled">;
51
25
  intentId: z.ZodString;
52
- }, "strict", z.ZodTypeAny, {
53
- state: "fulfilled";
54
- intentId: string;
55
- }, {
56
- state: "fulfilled";
57
- intentId: string;
58
- }>]>;
26
+ }, z.core.$strict>], "state">;
59
27
  export type PersonalPlanCheckoutRequest = z.infer<typeof personalPlanCheckoutRequestSchema>;
60
28
  export type PersonalPlanCheckoutResult = z.infer<typeof personalPlanCheckoutResultSchema>;
61
29
  /** Explicit individual product offer; still owned and paid through Oxy. */
62
30
  export declare const productPlanCheckoutRequestSchema: z.ZodObject<{
63
- expectedSubjectAccountId: z.ZodBranded<z.ZodString, "OxyAccountId">;
31
+ expectedSubjectAccountId: z.core.$ZodBranded<z.ZodString, "OxyAccountId", "out">;
64
32
  offerId: z.ZodString;
65
33
  offerVersion: z.ZodNumber;
66
34
  idempotencyKey: z.ZodString;
67
- } & {
68
35
  productId: z.ZodString;
69
- }, "strict", z.ZodTypeAny, {
70
- idempotencyKey: string;
71
- productId: string;
72
- offerId: string;
73
- offerVersion: number;
74
- expectedSubjectAccountId: string & z.BRAND<"OxyAccountId">;
75
- }, {
76
- idempotencyKey: string;
77
- productId: string;
78
- offerId: string;
79
- offerVersion: number;
80
- expectedSubjectAccountId: string;
81
- }>;
36
+ }, z.core.$strict>;
82
37
  export type ProductPlanCheckoutRequest = z.infer<typeof productPlanCheckoutRequestSchema>;
83
38
  export declare const productSubscriptionRenewalRequestSchema: z.ZodObject<{
84
- expectedSubjectAccountId: z.ZodBranded<z.ZodString, "OxyAccountId">;
39
+ expectedSubjectAccountId: z.core.$ZodBranded<z.ZodString, "OxyAccountId", "out">;
85
40
  sourceId: z.ZodString;
86
41
  idempotencyKey: z.ZodString;
87
- }, "strict", z.ZodTypeAny, {
88
- sourceId: string;
89
- idempotencyKey: string;
90
- expectedSubjectAccountId: string & z.BRAND<"OxyAccountId">;
91
- }, {
92
- sourceId: string;
93
- idempotencyKey: string;
94
- expectedSubjectAccountId: string;
95
- }>;
42
+ }, z.core.$strict>;
96
43
  export type ProductSubscriptionRenewalRequest = z.infer<typeof productSubscriptionRenewalRequestSchema>;
@@ -7,26 +7,18 @@ export declare const personalPlanDisplayPriceSchema: z.ZodObject<{
7
7
  trial: z.ZodLiteral<"none">;
8
8
  taxTreatment: z.ZodLiteral<"inclusive">;
9
9
  merchantTotal: z.ZodLiteral<"final">;
10
- }, "strict", z.ZodTypeAny, {
11
- currency: string;
12
- amountMinorUnits: number;
13
- interval: "month";
14
- trial: "none";
15
- taxTreatment: "inclusive";
16
- merchantTotal: "final";
17
- }, {
18
- currency: string;
19
- amountMinorUnits: number;
20
- interval: "month";
21
- trial: "none";
22
- taxTreatment: "inclusive";
23
- merchantTotal: "final";
24
- }>;
10
+ }, z.core.$strict>;
25
11
  /** Public discovery is separate from customer access. No provider or owner IDs. */
26
- export declare const personalPlanCatalogueSchema: z.ZodEffects<z.ZodObject<{
12
+ export declare const personalPlanCatalogueSchema: z.ZodObject<{
27
13
  schemaVersion: z.ZodLiteral<1>;
28
- state: z.ZodEnum<["unconfigured", "configured"]>;
29
- purchase: z.ZodEnum<["unavailable", "available"]>;
14
+ state: z.ZodEnum<{
15
+ unconfigured: "unconfigured";
16
+ configured: "configured";
17
+ }>;
18
+ purchase: z.ZodEnum<{
19
+ unavailable: "unavailable";
20
+ available: "available";
21
+ }>;
30
22
  plans: z.ZodArray<z.ZodObject<{
31
23
  offerId: z.ZodString;
32
24
  offerVersion: z.ZodNumber;
@@ -40,287 +32,36 @@ export declare const personalPlanCatalogueSchema: z.ZodEffects<z.ZodObject<{
40
32
  trial: z.ZodLiteral<"none">;
41
33
  taxTreatment: z.ZodLiteral<"inclusive">;
42
34
  merchantTotal: z.ZodLiteral<"final">;
43
- }, "strict", z.ZodTypeAny, {
44
- currency: string;
45
- amountMinorUnits: number;
46
- interval: "month";
47
- trial: "none";
48
- taxTreatment: "inclusive";
49
- merchantTotal: "final";
50
- }, {
51
- currency: string;
52
- amountMinorUnits: number;
53
- interval: "month";
54
- trial: "none";
55
- taxTreatment: "inclusive";
56
- merchantTotal: "final";
57
- }>>;
35
+ }, z.core.$strict>>;
58
36
  benefits: z.ZodArray<z.ZodObject<{
59
37
  displayName: z.ZodString;
60
- benefit: z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
38
+ benefit: z.ZodDiscriminatedUnion<[z.ZodObject<{
61
39
  kind: z.ZodLiteral<"capability">;
62
40
  productId: z.ZodString;
63
41
  key: z.ZodString;
64
- }, "strict", z.ZodTypeAny, {
65
- kind: "capability";
66
- key: string;
67
- productId: string;
68
- }, {
69
- kind: "capability";
70
- key: string;
71
- productId: string;
72
- }>, z.ZodObject<{
42
+ }, z.core.$strict>, z.ZodObject<{
73
43
  kind: z.ZodLiteral<"quota">;
74
44
  productId: z.ZodString;
75
45
  key: z.ZodString;
76
46
  unit: z.ZodString;
77
47
  included: z.ZodNumber;
78
- combination: z.ZodEnum<["maximum", "sum", "exclusive"]>;
79
- }, "strict", z.ZodTypeAny, {
80
- kind: "quota";
81
- key: string;
82
- unit: string;
83
- included: number;
84
- productId: string;
85
- combination: "maximum" | "sum" | "exclusive";
86
- }, {
87
- kind: "quota";
88
- key: string;
89
- unit: string;
90
- included: number;
91
- productId: string;
92
- combination: "maximum" | "sum" | "exclusive";
93
- }>]>;
94
- }, "strict", z.ZodTypeAny, {
95
- displayName: string;
96
- benefit: {
97
- kind: "capability";
98
- key: string;
99
- productId: string;
100
- } | {
101
- kind: "quota";
102
- key: string;
103
- unit: string;
104
- included: number;
105
- productId: string;
106
- combination: "maximum" | "sum" | "exclusive";
107
- };
108
- }, {
109
- displayName: string;
110
- benefit: {
111
- kind: "capability";
112
- key: string;
113
- productId: string;
114
- } | {
115
- kind: "quota";
116
- key: string;
117
- unit: string;
118
- included: number;
119
- productId: string;
120
- combination: "maximum" | "sum" | "exclusive";
121
- };
122
- }>, "many">;
123
- }, "strict", z.ZodTypeAny, {
124
- kind: "oxy_one";
125
- displayName: string;
126
- audience: "personal";
127
- benefits: {
128
- displayName: string;
129
- benefit: {
130
- kind: "capability";
131
- key: string;
132
- productId: string;
133
- } | {
134
- kind: "quota";
135
- key: string;
136
- unit: string;
137
- included: number;
138
- productId: string;
139
- combination: "maximum" | "sum" | "exclusive";
140
- };
141
- }[];
142
- offerId: string;
143
- offerVersion: number;
144
- price?: {
145
- currency: string;
146
- amountMinorUnits: number;
147
- interval: "month";
148
- trial: "none";
149
- taxTreatment: "inclusive";
150
- merchantTotal: "final";
151
- } | undefined;
152
- }, {
153
- kind: "oxy_one";
154
- displayName: string;
155
- audience: "personal";
156
- benefits: {
157
- displayName: string;
158
- benefit: {
159
- kind: "capability";
160
- key: string;
161
- productId: string;
162
- } | {
163
- kind: "quota";
164
- key: string;
165
- unit: string;
166
- included: number;
167
- productId: string;
168
- combination: "maximum" | "sum" | "exclusive";
169
- };
170
- }[];
171
- offerId: string;
172
- offerVersion: number;
173
- price?: {
174
- currency: string;
175
- amountMinorUnits: number;
176
- interval: "month";
177
- trial: "none";
178
- taxTreatment: "inclusive";
179
- merchantTotal: "final";
180
- } | undefined;
181
- }>, "many">;
182
- }, "strict", z.ZodTypeAny, {
183
- schemaVersion: 1;
184
- state: "unconfigured" | "configured";
185
- purchase: "unavailable" | "available";
186
- plans: {
187
- kind: "oxy_one";
188
- displayName: string;
189
- audience: "personal";
190
- benefits: {
191
- displayName: string;
192
- benefit: {
193
- kind: "capability";
194
- key: string;
195
- productId: string;
196
- } | {
197
- kind: "quota";
198
- key: string;
199
- unit: string;
200
- included: number;
201
- productId: string;
202
- combination: "maximum" | "sum" | "exclusive";
203
- };
204
- }[];
205
- offerId: string;
206
- offerVersion: number;
207
- price?: {
208
- currency: string;
209
- amountMinorUnits: number;
210
- interval: "month";
211
- trial: "none";
212
- taxTreatment: "inclusive";
213
- merchantTotal: "final";
214
- } | undefined;
215
- }[];
216
- }, {
217
- schemaVersion: 1;
218
- state: "unconfigured" | "configured";
219
- purchase: "unavailable" | "available";
220
- plans: {
221
- kind: "oxy_one";
222
- displayName: string;
223
- audience: "personal";
224
- benefits: {
225
- displayName: string;
226
- benefit: {
227
- kind: "capability";
228
- key: string;
229
- productId: string;
230
- } | {
231
- kind: "quota";
232
- key: string;
233
- unit: string;
234
- included: number;
235
- productId: string;
236
- combination: "maximum" | "sum" | "exclusive";
237
- };
238
- }[];
239
- offerId: string;
240
- offerVersion: number;
241
- price?: {
242
- currency: string;
243
- amountMinorUnits: number;
244
- interval: "month";
245
- trial: "none";
246
- taxTreatment: "inclusive";
247
- merchantTotal: "final";
248
- } | undefined;
249
- }[];
250
- }>, {
251
- schemaVersion: 1;
252
- state: "unconfigured" | "configured";
253
- purchase: "unavailable" | "available";
254
- plans: {
255
- kind: "oxy_one";
256
- displayName: string;
257
- audience: "personal";
258
- benefits: {
259
- displayName: string;
260
- benefit: {
261
- kind: "capability";
262
- key: string;
263
- productId: string;
264
- } | {
265
- kind: "quota";
266
- key: string;
267
- unit: string;
268
- included: number;
269
- productId: string;
270
- combination: "maximum" | "sum" | "exclusive";
271
- };
272
- }[];
273
- offerId: string;
274
- offerVersion: number;
275
- price?: {
276
- currency: string;
277
- amountMinorUnits: number;
278
- interval: "month";
279
- trial: "none";
280
- taxTreatment: "inclusive";
281
- merchantTotal: "final";
282
- } | undefined;
283
- }[];
284
- }, {
285
- schemaVersion: 1;
286
- state: "unconfigured" | "configured";
287
- purchase: "unavailable" | "available";
288
- plans: {
289
- kind: "oxy_one";
290
- displayName: string;
291
- audience: "personal";
292
- benefits: {
293
- displayName: string;
294
- benefit: {
295
- kind: "capability";
296
- key: string;
297
- productId: string;
298
- } | {
299
- kind: "quota";
300
- key: string;
301
- unit: string;
302
- included: number;
303
- productId: string;
304
- combination: "maximum" | "sum" | "exclusive";
305
- };
306
- }[];
307
- offerId: string;
308
- offerVersion: number;
309
- price?: {
310
- currency: string;
311
- amountMinorUnits: number;
312
- interval: "month";
313
- trial: "none";
314
- taxTreatment: "inclusive";
315
- merchantTotal: "final";
316
- } | undefined;
317
- }[];
318
- }>;
48
+ combination: z.ZodEnum<{
49
+ maximum: "maximum";
50
+ sum: "sum";
51
+ exclusive: "exclusive";
52
+ }>;
53
+ }, z.core.$strict>], "kind">;
54
+ }, z.core.$strict>>;
55
+ }, z.core.$strict>>;
56
+ }, z.core.$strict>;
319
57
  export type PersonalPlanCatalogue = z.infer<typeof personalPlanCatalogueSchema>;
320
58
  export declare const productPlanCatalogueSchema: z.ZodObject<{
321
59
  schemaVersion: z.ZodLiteral<1>;
322
60
  productId: z.ZodString;
323
- purchase: z.ZodEnum<["unavailable", "available"]>;
61
+ purchase: z.ZodEnum<{
62
+ unavailable: "unavailable";
63
+ available: "available";
64
+ }>;
324
65
  plans: z.ZodArray<z.ZodObject<{
325
66
  productId: z.ZodString;
326
67
  offerId: z.ZodString;
@@ -332,85 +73,11 @@ export declare const productPlanCatalogueSchema: z.ZodObject<{
332
73
  trial: z.ZodLiteral<"none">;
333
74
  taxTreatment: z.ZodLiteral<"inclusive">;
334
75
  merchantTotal: z.ZodLiteral<"final">;
335
- } & {
336
- interval: z.ZodEnum<["month", "year"]>;
337
- }, "strict", z.ZodTypeAny, {
338
- currency: string;
339
- amountMinorUnits: number;
340
- interval: "year" | "month";
341
- trial: "none";
342
- taxTreatment: "inclusive";
343
- merchantTotal: "final";
344
- }, {
345
- currency: string;
346
- amountMinorUnits: number;
347
- interval: "year" | "month";
348
- trial: "none";
349
- taxTreatment: "inclusive";
350
- merchantTotal: "final";
351
- }>;
352
- }, "strict", z.ZodTypeAny, {
353
- displayName: string;
354
- price: {
355
- currency: string;
356
- amountMinorUnits: number;
357
- interval: "year" | "month";
358
- trial: "none";
359
- taxTreatment: "inclusive";
360
- merchantTotal: "final";
361
- };
362
- productId: string;
363
- offerId: string;
364
- offerVersion: number;
365
- }, {
366
- displayName: string;
367
- price: {
368
- currency: string;
369
- amountMinorUnits: number;
370
- interval: "year" | "month";
371
- trial: "none";
372
- taxTreatment: "inclusive";
373
- merchantTotal: "final";
374
- };
375
- productId: string;
376
- offerId: string;
377
- offerVersion: number;
378
- }>, "many">;
379
- }, "strict", z.ZodTypeAny, {
380
- schemaVersion: 1;
381
- purchase: "unavailable" | "available";
382
- productId: string;
383
- plans: {
384
- displayName: string;
385
- price: {
386
- currency: string;
387
- amountMinorUnits: number;
388
- interval: "year" | "month";
389
- trial: "none";
390
- taxTreatment: "inclusive";
391
- merchantTotal: "final";
392
- };
393
- productId: string;
394
- offerId: string;
395
- offerVersion: number;
396
- }[];
397
- }, {
398
- schemaVersion: 1;
399
- purchase: "unavailable" | "available";
400
- productId: string;
401
- plans: {
402
- displayName: string;
403
- price: {
404
- currency: string;
405
- amountMinorUnits: number;
406
- interval: "year" | "month";
407
- trial: "none";
408
- taxTreatment: "inclusive";
409
- merchantTotal: "final";
410
- };
411
- productId: string;
412
- offerId: string;
413
- offerVersion: number;
414
- }[];
415
- }>;
76
+ interval: z.ZodEnum<{
77
+ year: "year";
78
+ month: "month";
79
+ }>;
80
+ }, z.core.$strict>;
81
+ }, z.core.$strict>>;
82
+ }, z.core.$strict>;
416
83
  export type ProductPlanCatalogue = z.infer<typeof productPlanCatalogueSchema>;