@oxy.so/contracts 4.22.0 → 4.23.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.
- package/dist/cjs/client/index.js +6 -3
- package/dist/cjs/client/products.js +33 -11
- package/dist/cjs/index.js +2 -1
- package/dist/cjs/products/billing.js +1 -0
- package/dist/cjs/products/checkout.js +14 -1
- package/dist/cjs/products/plans.js +18 -2
- package/dist/cjs/userResponse.js +8 -1
- package/dist/esm/client/index.js +1 -1
- package/dist/esm/client/products.js +32 -10
- package/dist/esm/index.js +1 -1
- package/dist/esm/products/billing.js +1 -0
- package/dist/esm/products/checkout.js +13 -0
- package/dist/esm/products/plans.js +17 -1
- package/dist/esm/userResponse.js +8 -1
- package/dist/types/client/index.d.ts +1 -1
- package/dist/types/client/products.d.ts +43 -10
- package/dist/types/externalIdentity.d.ts +33 -0
- package/dist/types/index.d.ts +1 -1
- package/dist/types/products/billing.d.ts +8 -0
- package/dist/types/products/checkout.d.ts +36 -0
- package/dist/types/products/plans.d.ts +102 -5
- package/dist/types/safety.d.ts +27 -0
- package/dist/types/userResponse.d.ts +139 -3
- package/package.json +1 -1
|
@@ -74,6 +74,13 @@ export declare const resolveExternalIdentityResponseSchema: z.ZodEffects<z.ZodOb
|
|
|
74
74
|
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")[]>>;
|
|
75
75
|
character: z.ZodOptional<z.ZodType<import("./avatarCharacter").AvatarCharacter, z.ZodTypeDef, unknown>>;
|
|
76
76
|
relationship: z.ZodOptional<z.ZodType<import("./userResponse").UserRelationship, z.ZodTypeDef, import("./userResponse").UserRelationship>>;
|
|
77
|
+
userPreferences: z.ZodOptional<z.ZodObject<{
|
|
78
|
+
displayCurrency: z.ZodOptional<z.ZodEnum<["USD", "EUR", "FAIR"]>>;
|
|
79
|
+
}, "strip", z.ZodUnknown, z.objectOutputType<{
|
|
80
|
+
displayCurrency: z.ZodOptional<z.ZodEnum<["USD", "EUR", "FAIR"]>>;
|
|
81
|
+
}, z.ZodUnknown, "strip">, z.objectInputType<{
|
|
82
|
+
displayCurrency: z.ZodOptional<z.ZodEnum<["USD", "EUR", "FAIR"]>>;
|
|
83
|
+
}, z.ZodUnknown, "strip">>>;
|
|
77
84
|
themePreference: z.ZodOptional<z.ZodType<import("./userResponse").ThemePreference, z.ZodTypeDef, import("./userResponse").ThemePreference>>;
|
|
78
85
|
personalization: z.ZodOptional<z.ZodObject<{
|
|
79
86
|
mentionMono: z.ZodObject<{
|
|
@@ -144,6 +151,13 @@ export declare const resolveExternalIdentityResponseSchema: z.ZodEffects<z.ZodOb
|
|
|
144
151
|
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")[]>>;
|
|
145
152
|
character: z.ZodOptional<z.ZodType<import("./avatarCharacter").AvatarCharacter, z.ZodTypeDef, unknown>>;
|
|
146
153
|
relationship: z.ZodOptional<z.ZodType<import("./userResponse").UserRelationship, z.ZodTypeDef, import("./userResponse").UserRelationship>>;
|
|
154
|
+
userPreferences: z.ZodOptional<z.ZodObject<{
|
|
155
|
+
displayCurrency: z.ZodOptional<z.ZodEnum<["USD", "EUR", "FAIR"]>>;
|
|
156
|
+
}, "strip", z.ZodUnknown, z.objectOutputType<{
|
|
157
|
+
displayCurrency: z.ZodOptional<z.ZodEnum<["USD", "EUR", "FAIR"]>>;
|
|
158
|
+
}, z.ZodUnknown, "strip">, z.objectInputType<{
|
|
159
|
+
displayCurrency: z.ZodOptional<z.ZodEnum<["USD", "EUR", "FAIR"]>>;
|
|
160
|
+
}, z.ZodUnknown, "strip">>>;
|
|
147
161
|
themePreference: z.ZodOptional<z.ZodType<import("./userResponse").ThemePreference, z.ZodTypeDef, import("./userResponse").ThemePreference>>;
|
|
148
162
|
personalization: z.ZodOptional<z.ZodObject<{
|
|
149
163
|
mentionMono: z.ZodObject<{
|
|
@@ -214,6 +228,13 @@ export declare const resolveExternalIdentityResponseSchema: z.ZodEffects<z.ZodOb
|
|
|
214
228
|
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")[]>>;
|
|
215
229
|
character: z.ZodOptional<z.ZodType<import("./avatarCharacter").AvatarCharacter, z.ZodTypeDef, unknown>>;
|
|
216
230
|
relationship: z.ZodOptional<z.ZodType<import("./userResponse").UserRelationship, z.ZodTypeDef, import("./userResponse").UserRelationship>>;
|
|
231
|
+
userPreferences: z.ZodOptional<z.ZodObject<{
|
|
232
|
+
displayCurrency: z.ZodOptional<z.ZodEnum<["USD", "EUR", "FAIR"]>>;
|
|
233
|
+
}, "strip", z.ZodUnknown, z.objectOutputType<{
|
|
234
|
+
displayCurrency: z.ZodOptional<z.ZodEnum<["USD", "EUR", "FAIR"]>>;
|
|
235
|
+
}, z.ZodUnknown, "strip">, z.objectInputType<{
|
|
236
|
+
displayCurrency: z.ZodOptional<z.ZodEnum<["USD", "EUR", "FAIR"]>>;
|
|
237
|
+
}, z.ZodUnknown, "strip">>>;
|
|
217
238
|
themePreference: z.ZodOptional<z.ZodType<import("./userResponse").ThemePreference, z.ZodTypeDef, import("./userResponse").ThemePreference>>;
|
|
218
239
|
personalization: z.ZodOptional<z.ZodObject<{
|
|
219
240
|
mentionMono: z.ZodObject<{
|
|
@@ -347,6 +368,9 @@ export declare const resolveExternalIdentityResponseSchema: z.ZodEffects<z.ZodOb
|
|
|
347
368
|
dateOfBirth?: string | undefined;
|
|
348
369
|
isAdult?: boolean | undefined;
|
|
349
370
|
languages?: string[] | undefined;
|
|
371
|
+
userPreferences?: z.objectOutputType<{
|
|
372
|
+
displayCurrency: z.ZodOptional<z.ZodEnum<["USD", "EUR", "FAIR"]>>;
|
|
373
|
+
}, z.ZodUnknown, "strip"> | undefined;
|
|
350
374
|
themePreference?: import("./userResponse").ThemePreference | undefined;
|
|
351
375
|
personalization?: {
|
|
352
376
|
mentionMono: {
|
|
@@ -408,6 +432,9 @@ export declare const resolveExternalIdentityResponseSchema: z.ZodEffects<z.ZodOb
|
|
|
408
432
|
dateOfBirth?: string | undefined;
|
|
409
433
|
isAdult?: boolean | undefined;
|
|
410
434
|
languages?: string[] | undefined;
|
|
435
|
+
userPreferences?: z.objectInputType<{
|
|
436
|
+
displayCurrency: z.ZodOptional<z.ZodEnum<["USD", "EUR", "FAIR"]>>;
|
|
437
|
+
}, z.ZodUnknown, "strip"> | undefined;
|
|
411
438
|
themePreference?: import("./userResponse").ThemePreference | undefined;
|
|
412
439
|
personalization?: {
|
|
413
440
|
mentionMono: {
|
|
@@ -469,6 +496,9 @@ export declare const resolveExternalIdentityResponseSchema: z.ZodEffects<z.ZodOb
|
|
|
469
496
|
dateOfBirth?: string | undefined;
|
|
470
497
|
isAdult?: boolean | undefined;
|
|
471
498
|
languages?: string[] | undefined;
|
|
499
|
+
userPreferences?: z.objectOutputType<{
|
|
500
|
+
displayCurrency: z.ZodOptional<z.ZodEnum<["USD", "EUR", "FAIR"]>>;
|
|
501
|
+
}, z.ZodUnknown, "strip"> | undefined;
|
|
472
502
|
themePreference?: import("./userResponse").ThemePreference | undefined;
|
|
473
503
|
personalization?: {
|
|
474
504
|
mentionMono: {
|
|
@@ -530,6 +560,9 @@ export declare const resolveExternalIdentityResponseSchema: z.ZodEffects<z.ZodOb
|
|
|
530
560
|
dateOfBirth?: string | undefined;
|
|
531
561
|
isAdult?: boolean | undefined;
|
|
532
562
|
languages?: string[] | undefined;
|
|
563
|
+
userPreferences?: z.objectInputType<{
|
|
564
|
+
displayCurrency: z.ZodOptional<z.ZodEnum<["USD", "EUR", "FAIR"]>>;
|
|
565
|
+
}, z.ZodUnknown, "strip"> | undefined;
|
|
533
566
|
themePreference?: import("./userResponse").ThemePreference | undefined;
|
|
534
567
|
personalization?: {
|
|
535
568
|
mentionMono: {
|
package/dist/types/index.d.ts
CHANGED
|
@@ -133,7 +133,7 @@ export { meteredGenerationSchema, type MeteredGeneration } from './inference/eco
|
|
|
133
133
|
export { canonicalCapabilityJson, inputSatisfiesCapabilityLimits, isLoopbackOrigin, } from './capabilityBindings';
|
|
134
134
|
export * from './agentKeys';
|
|
135
135
|
export { productSubscriptionSummarySchema, productSubscriptionsResponseSchema, subscriptionCreditGrantSchema, subscriptionCreditGrantsResponseSchema, cancelProductSubscriptionSchema, productSubscriptionCancellationResultSchema, type ProductSubscriptionSummary, type SubscriptionCreditGrant, type ProductSubscriptionCancellationResult, } from './products/billing';
|
|
136
|
-
export { personalPlanDisplayPriceSchema, personalPlanCatalogueSchema, type PersonalPlanCatalogue, } from './products/plans';
|
|
136
|
+
export { personalPlanDisplayPriceSchema, personalPlanCatalogueSchema, productPlanCatalogueSchema, type ProductPlanCatalogue, type PersonalPlanCatalogue, } from './products/plans';
|
|
137
137
|
export * from './products/checkout';
|
|
138
138
|
export * from './organizations';
|
|
139
139
|
export * from './safety';
|
|
@@ -21,6 +21,7 @@ export declare const productSubscriptionSummarySchema: z.ZodObject<{
|
|
|
21
21
|
}>;
|
|
22
22
|
cancelAtPeriodEnd: z.ZodBoolean;
|
|
23
23
|
canCancel: z.ZodBoolean;
|
|
24
|
+
canRenew: z.ZodOptional<z.ZodBoolean>;
|
|
24
25
|
offers: z.ZodArray<z.ZodObject<{
|
|
25
26
|
segmentId: z.ZodString;
|
|
26
27
|
offerId: z.ZodString;
|
|
@@ -110,6 +111,7 @@ export declare const productSubscriptionSummarySchema: z.ZodObject<{
|
|
|
110
111
|
displayName: string;
|
|
111
112
|
}[];
|
|
112
113
|
}[];
|
|
114
|
+
canRenew?: boolean | undefined;
|
|
113
115
|
}, {
|
|
114
116
|
status: "active" | "incomplete" | "canceled" | "incomplete_expired" | "past_due" | "paused" | "trialing" | "unpaid";
|
|
115
117
|
sourceId: string;
|
|
@@ -135,6 +137,7 @@ export declare const productSubscriptionSummarySchema: z.ZodObject<{
|
|
|
135
137
|
displayName: string;
|
|
136
138
|
}[];
|
|
137
139
|
}[];
|
|
140
|
+
canRenew?: boolean | undefined;
|
|
138
141
|
}>;
|
|
139
142
|
export declare const productSubscriptionsResponseSchema: z.ZodObject<{
|
|
140
143
|
subscriptions: z.ZodArray<z.ZodObject<{
|
|
@@ -158,6 +161,7 @@ export declare const productSubscriptionsResponseSchema: z.ZodObject<{
|
|
|
158
161
|
}>;
|
|
159
162
|
cancelAtPeriodEnd: z.ZodBoolean;
|
|
160
163
|
canCancel: z.ZodBoolean;
|
|
164
|
+
canRenew: z.ZodOptional<z.ZodBoolean>;
|
|
161
165
|
offers: z.ZodArray<z.ZodObject<{
|
|
162
166
|
segmentId: z.ZodString;
|
|
163
167
|
offerId: z.ZodString;
|
|
@@ -247,6 +251,7 @@ export declare const productSubscriptionsResponseSchema: z.ZodObject<{
|
|
|
247
251
|
displayName: string;
|
|
248
252
|
}[];
|
|
249
253
|
}[];
|
|
254
|
+
canRenew?: boolean | undefined;
|
|
250
255
|
}, {
|
|
251
256
|
status: "active" | "incomplete" | "canceled" | "incomplete_expired" | "past_due" | "paused" | "trialing" | "unpaid";
|
|
252
257
|
sourceId: string;
|
|
@@ -272,6 +277,7 @@ export declare const productSubscriptionsResponseSchema: z.ZodObject<{
|
|
|
272
277
|
displayName: string;
|
|
273
278
|
}[];
|
|
274
279
|
}[];
|
|
280
|
+
canRenew?: boolean | undefined;
|
|
275
281
|
}>, "many">;
|
|
276
282
|
}, "strict", z.ZodTypeAny, {
|
|
277
283
|
subscriptions: {
|
|
@@ -299,6 +305,7 @@ export declare const productSubscriptionsResponseSchema: z.ZodObject<{
|
|
|
299
305
|
displayName: string;
|
|
300
306
|
}[];
|
|
301
307
|
}[];
|
|
308
|
+
canRenew?: boolean | undefined;
|
|
302
309
|
}[];
|
|
303
310
|
}, {
|
|
304
311
|
subscriptions: {
|
|
@@ -326,6 +333,7 @@ export declare const productSubscriptionsResponseSchema: z.ZodObject<{
|
|
|
326
333
|
displayName: string;
|
|
327
334
|
}[];
|
|
328
335
|
}[];
|
|
336
|
+
canRenew?: boolean | undefined;
|
|
329
337
|
}[];
|
|
330
338
|
}>;
|
|
331
339
|
export declare const subscriptionCreditGrantSchema: z.ZodEffects<z.ZodObject<{
|
|
@@ -58,3 +58,39 @@ export declare const personalPlanCheckoutResultSchema: z.ZodDiscriminatedUnion<"
|
|
|
58
58
|
}>]>;
|
|
59
59
|
export type PersonalPlanCheckoutRequest = z.infer<typeof personalPlanCheckoutRequestSchema>;
|
|
60
60
|
export type PersonalPlanCheckoutResult = z.infer<typeof personalPlanCheckoutResultSchema>;
|
|
61
|
+
/** Explicit individual product offer; still owned and paid through Oxy. */
|
|
62
|
+
export declare const productPlanCheckoutRequestSchema: z.ZodObject<{
|
|
63
|
+
expectedSubjectAccountId: z.ZodBranded<z.ZodString, "OxyAccountId">;
|
|
64
|
+
offerId: z.ZodString;
|
|
65
|
+
offerVersion: z.ZodNumber;
|
|
66
|
+
idempotencyKey: z.ZodString;
|
|
67
|
+
} & {
|
|
68
|
+
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
|
+
}>;
|
|
82
|
+
export type ProductPlanCheckoutRequest = z.infer<typeof productPlanCheckoutRequestSchema>;
|
|
83
|
+
export declare const productSubscriptionRenewalRequestSchema: z.ZodObject<{
|
|
84
|
+
expectedSubjectAccountId: z.ZodBranded<z.ZodString, "OxyAccountId">;
|
|
85
|
+
sourceId: z.ZodString;
|
|
86
|
+
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
|
+
}>;
|
|
96
|
+
export type ProductSubscriptionRenewalRequest = z.infer<typeof productSubscriptionRenewalRequestSchema>;
|
|
@@ -26,7 +26,7 @@ export declare const personalPlanDisplayPriceSchema: z.ZodObject<{
|
|
|
26
26
|
export declare const personalPlanCatalogueSchema: z.ZodEffects<z.ZodObject<{
|
|
27
27
|
schemaVersion: z.ZodLiteral<1>;
|
|
28
28
|
state: z.ZodEnum<["unconfigured", "configured"]>;
|
|
29
|
-
purchase: z.
|
|
29
|
+
purchase: z.ZodEnum<["unavailable", "available"]>;
|
|
30
30
|
plans: z.ZodArray<z.ZodObject<{
|
|
31
31
|
offerId: z.ZodString;
|
|
32
32
|
offerVersion: z.ZodNumber;
|
|
@@ -182,7 +182,7 @@ export declare const personalPlanCatalogueSchema: z.ZodEffects<z.ZodObject<{
|
|
|
182
182
|
}, "strict", z.ZodTypeAny, {
|
|
183
183
|
schemaVersion: 1;
|
|
184
184
|
state: "unconfigured" | "configured";
|
|
185
|
-
purchase: "unavailable";
|
|
185
|
+
purchase: "unavailable" | "available";
|
|
186
186
|
plans: {
|
|
187
187
|
kind: "oxy_one";
|
|
188
188
|
displayName: string;
|
|
@@ -216,7 +216,7 @@ export declare const personalPlanCatalogueSchema: z.ZodEffects<z.ZodObject<{
|
|
|
216
216
|
}, {
|
|
217
217
|
schemaVersion: 1;
|
|
218
218
|
state: "unconfigured" | "configured";
|
|
219
|
-
purchase: "unavailable";
|
|
219
|
+
purchase: "unavailable" | "available";
|
|
220
220
|
plans: {
|
|
221
221
|
kind: "oxy_one";
|
|
222
222
|
displayName: string;
|
|
@@ -250,7 +250,7 @@ export declare const personalPlanCatalogueSchema: z.ZodEffects<z.ZodObject<{
|
|
|
250
250
|
}>, {
|
|
251
251
|
schemaVersion: 1;
|
|
252
252
|
state: "unconfigured" | "configured";
|
|
253
|
-
purchase: "unavailable";
|
|
253
|
+
purchase: "unavailable" | "available";
|
|
254
254
|
plans: {
|
|
255
255
|
kind: "oxy_one";
|
|
256
256
|
displayName: string;
|
|
@@ -284,7 +284,7 @@ export declare const personalPlanCatalogueSchema: z.ZodEffects<z.ZodObject<{
|
|
|
284
284
|
}, {
|
|
285
285
|
schemaVersion: 1;
|
|
286
286
|
state: "unconfigured" | "configured";
|
|
287
|
-
purchase: "unavailable";
|
|
287
|
+
purchase: "unavailable" | "available";
|
|
288
288
|
plans: {
|
|
289
289
|
kind: "oxy_one";
|
|
290
290
|
displayName: string;
|
|
@@ -317,3 +317,100 @@ export declare const personalPlanCatalogueSchema: z.ZodEffects<z.ZodObject<{
|
|
|
317
317
|
}[];
|
|
318
318
|
}>;
|
|
319
319
|
export type PersonalPlanCatalogue = z.infer<typeof personalPlanCatalogueSchema>;
|
|
320
|
+
export declare const productPlanCatalogueSchema: z.ZodObject<{
|
|
321
|
+
schemaVersion: z.ZodLiteral<1>;
|
|
322
|
+
productId: z.ZodString;
|
|
323
|
+
purchase: z.ZodEnum<["unavailable", "available"]>;
|
|
324
|
+
plans: z.ZodArray<z.ZodObject<{
|
|
325
|
+
productId: z.ZodString;
|
|
326
|
+
offerId: z.ZodString;
|
|
327
|
+
offerVersion: z.ZodNumber;
|
|
328
|
+
displayName: z.ZodString;
|
|
329
|
+
price: z.ZodObject<{
|
|
330
|
+
currency: z.ZodString;
|
|
331
|
+
amountMinorUnits: z.ZodNumber;
|
|
332
|
+
trial: z.ZodLiteral<"none">;
|
|
333
|
+
taxTreatment: z.ZodLiteral<"inclusive">;
|
|
334
|
+
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
|
+
}>;
|
|
416
|
+
export type ProductPlanCatalogue = z.infer<typeof productPlanCatalogueSchema>;
|
package/dist/types/safety.d.ts
CHANGED
|
@@ -2014,6 +2014,13 @@ export declare const safetySessionValidationSchema: z.ZodObject<{
|
|
|
2014
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
2015
|
character: z.ZodOptional<z.ZodType<import("./avatarCharacter").AvatarCharacter, z.ZodTypeDef, unknown>>;
|
|
2016
2016
|
relationship: z.ZodOptional<z.ZodType<import("./userResponse").UserRelationship, z.ZodTypeDef, import("./userResponse").UserRelationship>>;
|
|
2017
|
+
userPreferences: z.ZodOptional<z.ZodObject<{
|
|
2018
|
+
displayCurrency: z.ZodOptional<z.ZodEnum<["USD", "EUR", "FAIR"]>>;
|
|
2019
|
+
}, "strip", z.ZodUnknown, z.objectOutputType<{
|
|
2020
|
+
displayCurrency: z.ZodOptional<z.ZodEnum<["USD", "EUR", "FAIR"]>>;
|
|
2021
|
+
}, z.ZodUnknown, "strip">, z.objectInputType<{
|
|
2022
|
+
displayCurrency: z.ZodOptional<z.ZodEnum<["USD", "EUR", "FAIR"]>>;
|
|
2023
|
+
}, z.ZodUnknown, "strip">>>;
|
|
2017
2024
|
themePreference: z.ZodOptional<z.ZodType<import("./userResponse").ThemePreference, z.ZodTypeDef, import("./userResponse").ThemePreference>>;
|
|
2018
2025
|
personalization: z.ZodOptional<z.ZodObject<{
|
|
2019
2026
|
mentionMono: z.ZodObject<{
|
|
@@ -2059,6 +2066,13 @@ export declare const safetySessionValidationSchema: z.ZodObject<{
|
|
|
2059
2066
|
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
2067
|
character: z.ZodOptional<z.ZodType<import("./avatarCharacter").AvatarCharacter, z.ZodTypeDef, unknown>>;
|
|
2061
2068
|
relationship: z.ZodOptional<z.ZodType<import("./userResponse").UserRelationship, z.ZodTypeDef, import("./userResponse").UserRelationship>>;
|
|
2069
|
+
userPreferences: z.ZodOptional<z.ZodObject<{
|
|
2070
|
+
displayCurrency: z.ZodOptional<z.ZodEnum<["USD", "EUR", "FAIR"]>>;
|
|
2071
|
+
}, "strip", z.ZodUnknown, z.objectOutputType<{
|
|
2072
|
+
displayCurrency: z.ZodOptional<z.ZodEnum<["USD", "EUR", "FAIR"]>>;
|
|
2073
|
+
}, z.ZodUnknown, "strip">, z.objectInputType<{
|
|
2074
|
+
displayCurrency: z.ZodOptional<z.ZodEnum<["USD", "EUR", "FAIR"]>>;
|
|
2075
|
+
}, z.ZodUnknown, "strip">>>;
|
|
2062
2076
|
themePreference: z.ZodOptional<z.ZodType<import("./userResponse").ThemePreference, z.ZodTypeDef, import("./userResponse").ThemePreference>>;
|
|
2063
2077
|
personalization: z.ZodOptional<z.ZodObject<{
|
|
2064
2078
|
mentionMono: z.ZodObject<{
|
|
@@ -2104,6 +2118,13 @@ export declare const safetySessionValidationSchema: z.ZodObject<{
|
|
|
2104
2118
|
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
2119
|
character: z.ZodOptional<z.ZodType<import("./avatarCharacter").AvatarCharacter, z.ZodTypeDef, unknown>>;
|
|
2106
2120
|
relationship: z.ZodOptional<z.ZodType<import("./userResponse").UserRelationship, z.ZodTypeDef, import("./userResponse").UserRelationship>>;
|
|
2121
|
+
userPreferences: z.ZodOptional<z.ZodObject<{
|
|
2122
|
+
displayCurrency: z.ZodOptional<z.ZodEnum<["USD", "EUR", "FAIR"]>>;
|
|
2123
|
+
}, "strip", z.ZodUnknown, z.objectOutputType<{
|
|
2124
|
+
displayCurrency: z.ZodOptional<z.ZodEnum<["USD", "EUR", "FAIR"]>>;
|
|
2125
|
+
}, z.ZodUnknown, "strip">, z.objectInputType<{
|
|
2126
|
+
displayCurrency: z.ZodOptional<z.ZodEnum<["USD", "EUR", "FAIR"]>>;
|
|
2127
|
+
}, z.ZodUnknown, "strip">>>;
|
|
2107
2128
|
themePreference: z.ZodOptional<z.ZodType<import("./userResponse").ThemePreference, z.ZodTypeDef, import("./userResponse").ThemePreference>>;
|
|
2108
2129
|
personalization: z.ZodOptional<z.ZodObject<{
|
|
2109
2130
|
mentionMono: z.ZodObject<{
|
|
@@ -2186,6 +2207,9 @@ export declare const safetySessionValidationSchema: z.ZodObject<{
|
|
|
2186
2207
|
dateOfBirth?: string | undefined;
|
|
2187
2208
|
isAdult?: boolean | undefined;
|
|
2188
2209
|
languages?: string[] | undefined;
|
|
2210
|
+
userPreferences?: z.objectOutputType<{
|
|
2211
|
+
displayCurrency: z.ZodOptional<z.ZodEnum<["USD", "EUR", "FAIR"]>>;
|
|
2212
|
+
}, z.ZodUnknown, "strip"> | undefined;
|
|
2189
2213
|
themePreference?: import("./userResponse").ThemePreference | undefined;
|
|
2190
2214
|
personalization?: {
|
|
2191
2215
|
mentionMono: {
|
|
@@ -2229,6 +2253,9 @@ export declare const safetySessionValidationSchema: z.ZodObject<{
|
|
|
2229
2253
|
dateOfBirth?: string | undefined;
|
|
2230
2254
|
isAdult?: boolean | undefined;
|
|
2231
2255
|
languages?: string[] | undefined;
|
|
2256
|
+
userPreferences?: z.objectInputType<{
|
|
2257
|
+
displayCurrency: z.ZodOptional<z.ZodEnum<["USD", "EUR", "FAIR"]>>;
|
|
2258
|
+
}, z.ZodUnknown, "strip"> | undefined;
|
|
2232
2259
|
themePreference?: import("./userResponse").ThemePreference | undefined;
|
|
2233
2260
|
personalization?: {
|
|
2234
2261
|
mentionMono: {
|