@oxy.so/contracts 5.8.0 → 6.0.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/accountAccess.js +6 -5
- package/dist/cjs/accountEmail.js +13 -5
- package/dist/cjs/accountGraph.js +10 -9
- package/dist/cjs/accountName.js +3 -2
- package/dist/cjs/agency.js +91 -34
- package/dist/cjs/agentKeys.js +21 -17
- package/dist/cjs/appAssertions.js +14 -13
- package/dist/cjs/applicationRoles.js +19 -12
- package/dist/cjs/civic.js +10 -9
- package/dist/cjs/client/check.js +61 -53
- package/dist/cjs/consoleOnboarding.js +9 -4
- package/dist/cjs/contentClaims.js +23 -14
- package/dist/cjs/deviceDirectory.js +11 -9
- package/dist/cjs/deviceSession.js +27 -25
- package/dist/cjs/email/messages.js +20 -18
- package/dist/cjs/emailAgentContext.js +11 -9
- package/dist/cjs/externalIdentity.js +15 -11
- package/dist/cjs/federationInstanceFetch.js +12 -7
- package/dist/cjs/identity.js +19 -17
- package/dist/cjs/identityLink.js +6 -4
- package/dist/cjs/identityProof.js +6 -4
- package/dist/cjs/inboxPush.js +5 -4
- package/dist/cjs/index.js +15 -6
- package/dist/cjs/inference/accountBilling.js +35 -33
- package/dist/cjs/inference/aliaModelRelease.js +9 -7
- package/dist/cjs/inference/attribution.js +14 -12
- package/dist/cjs/inference/catalogue.js +35 -29
- package/dist/cjs/inference/economics.js +24 -19
- package/dist/cjs/inference/embeddings.js +9 -7
- package/dist/cjs/inference/entitlement.js +17 -15
- package/dist/cjs/inference/errors.js +15 -8
- package/dist/cjs/inference/identifiers.js +33 -21
- package/dist/cjs/inference/inbox.js +37 -35
- package/dist/cjs/inference/modelDocumentation.js +16 -14
- package/dist/cjs/inference/money.js +5 -4
- package/dist/cjs/inference/priceVersion.js +10 -5
- package/dist/cjs/inference/providerConnection.js +21 -14
- package/dist/cjs/inference/realtime.js +88 -47
- package/dist/cjs/inference/request.js +27 -25
- package/dist/cjs/inference/routingPolicy.js +12 -10
- package/dist/cjs/inference/streamEvents.js +22 -16
- package/dist/cjs/inference/usage.js +32 -15
- package/dist/cjs/keyRecovery.js +8 -6
- package/dist/cjs/keyRotation.js +5 -4
- package/dist/cjs/linkedAccounts.js +22 -18
- package/dist/cjs/moderationReputation.js +29 -27
- package/dist/cjs/notifications.js +25 -9
- package/dist/cjs/numberChecks.js +45 -0
- package/dist/cjs/oauth.js +14 -12
- package/dist/cjs/organizations.js +23 -21
- package/dist/cjs/products/access.js +10 -8
- package/dist/cjs/products/billing.js +10 -8
- package/dist/cjs/products/checkout.js +22 -10
- package/dist/cjs/products/plans.js +15 -10
- package/dist/cjs/protocol.js +6 -5
- package/dist/cjs/recommendations.js +27 -19
- package/dist/cjs/reputation.js +15 -13
- package/dist/cjs/safety.js +43 -27
- package/dist/cjs/serviceToken.js +81 -2
- package/dist/cjs/sessionRevocation.js +8 -6
- package/dist/cjs/signIn.js +42 -24
- package/dist/cjs/stickers.js +19 -15
- package/dist/cjs/stringChecks.js +70 -0
- package/dist/cjs/transparency.js +14 -12
- package/dist/cjs/updates.js +24 -22
- package/dist/cjs/userInvalidation.js +7 -5
- package/dist/cjs/userResponse.js +8 -7
- package/dist/cjs/username.js +7 -6
- package/dist/esm/accountAccess.js +4 -3
- package/dist/esm/accountEmail.js +13 -5
- package/dist/esm/accountGraph.js +8 -7
- package/dist/esm/accountName.js +3 -2
- package/dist/esm/agency.js +90 -33
- package/dist/esm/agentKeys.js +21 -17
- package/dist/esm/appAssertions.js +11 -10
- package/dist/esm/applicationRoles.js +16 -9
- package/dist/esm/civic.js +8 -7
- package/dist/esm/client/check.js +61 -53
- package/dist/esm/consoleOnboarding.js +7 -2
- package/dist/esm/contentClaims.js +23 -14
- package/dist/esm/deviceDirectory.js +11 -9
- package/dist/esm/deviceSession.js +27 -25
- package/dist/esm/email/messages.js +18 -16
- package/dist/esm/emailAgentContext.js +11 -9
- package/dist/esm/externalIdentity.js +15 -11
- package/dist/esm/federationInstanceFetch.js +10 -5
- package/dist/esm/identity.js +17 -15
- package/dist/esm/identityLink.js +6 -4
- package/dist/esm/identityProof.js +6 -4
- package/dist/esm/inboxPush.js +3 -2
- package/dist/esm/index.js +4 -2
- package/dist/esm/inference/accountBilling.js +33 -31
- package/dist/esm/inference/aliaModelRelease.js +7 -5
- package/dist/esm/inference/attribution.js +14 -12
- package/dist/esm/inference/catalogue.js +33 -27
- package/dist/esm/inference/economics.js +22 -17
- package/dist/esm/inference/embeddings.js +9 -7
- package/dist/esm/inference/entitlement.js +15 -13
- package/dist/esm/inference/errors.js +13 -6
- package/dist/esm/inference/identifiers.js +31 -19
- package/dist/esm/inference/inbox.js +37 -35
- package/dist/esm/inference/modelDocumentation.js +14 -12
- package/dist/esm/inference/money.js +3 -2
- package/dist/esm/inference/priceVersion.js +8 -3
- package/dist/esm/inference/providerConnection.js +19 -12
- package/dist/esm/inference/realtime.js +85 -44
- package/dist/esm/inference/request.js +25 -23
- package/dist/esm/inference/routingPolicy.js +9 -7
- package/dist/esm/inference/streamEvents.js +20 -14
- package/dist/esm/inference/usage.js +30 -13
- package/dist/esm/keyRecovery.js +8 -6
- package/dist/esm/keyRotation.js +5 -4
- package/dist/esm/linkedAccounts.js +20 -16
- package/dist/esm/moderationReputation.js +27 -25
- package/dist/esm/notifications.js +23 -7
- package/dist/esm/numberChecks.js +41 -0
- package/dist/esm/oauth.js +14 -12
- package/dist/esm/organizations.js +23 -21
- package/dist/esm/products/access.js +10 -8
- package/dist/esm/products/billing.js +10 -8
- package/dist/esm/products/checkout.js +22 -10
- package/dist/esm/products/plans.js +15 -10
- package/dist/esm/protocol.js +4 -3
- package/dist/esm/recommendations.js +25 -17
- package/dist/esm/reputation.js +13 -11
- package/dist/esm/safety.js +43 -27
- package/dist/esm/serviceToken.js +80 -1
- package/dist/esm/sessionRevocation.js +6 -4
- package/dist/esm/signIn.js +42 -24
- package/dist/esm/stickers.js +17 -13
- package/dist/esm/stringChecks.js +63 -0
- package/dist/esm/transparency.js +14 -12
- package/dist/esm/updates.js +22 -20
- package/dist/esm/userInvalidation.js +4 -2
- package/dist/esm/userResponse.js +4 -3
- package/dist/esm/username.js +3 -2
- package/dist/types/accountAccess.d.ts +29 -70
- package/dist/types/accountEmail.d.ts +2 -14
- package/dist/types/accountGraph.d.ts +179 -171
- package/dist/types/accountName.d.ts +1 -1
- package/dist/types/accountSubject.d.ts +20 -93
- package/dist/types/agency.d.ts +528 -2924
- package/dist/types/agentKeys.d.ts +48 -421
- package/dist/types/appAssertions.d.ts +56 -210
- package/dist/types/applicationRoles.d.ts +30 -276
- package/dist/types/avatarCharacter.d.ts +1 -1
- package/dist/types/civic.d.ts +1 -13
- package/dist/types/client/agentKeys.d.ts +18 -18
- package/dist/types/client/appAssertions.d.ts +3 -3
- package/dist/types/client/check.d.ts +13 -13
- package/dist/types/client/deviceDirectory.d.ts +51 -51
- package/dist/types/client/deviceSession.d.ts +14 -14
- package/dist/types/client/organizations.d.ts +25 -25
- package/dist/types/client/products.d.ts +33 -33
- package/dist/types/client/recommendations.d.ts +2 -2
- package/dist/types/client/safety.d.ts +45 -45
- package/dist/types/client/sessionStatus.d.ts +4 -4
- package/dist/types/client/signIn.d.ts +1 -1
- package/dist/types/commonsSignIn.d.ts +4 -1
- package/dist/types/consoleOnboarding.d.ts +24 -44
- package/dist/types/contentClaims.d.ts +24 -180
- package/dist/types/deviceDirectory.d.ts +109 -1040
- package/dist/types/deviceSession.d.ts +36 -298
- package/dist/types/email/messages.d.ts +212 -1793
- package/dist/types/emailAgentContext.d.ts +10 -194
- package/dist/types/externalIdentity.d.ts +121 -615
- package/dist/types/federationInstanceFetch.d.ts +3 -32
- package/dist/types/identity.d.ts +15 -92
- package/dist/types/identityLink.d.ts +6 -84
- package/dist/types/identityProof.d.ts +5 -17
- package/dist/types/inboxPush.d.ts +1 -9
- package/dist/types/index.d.ts +5 -3
- package/dist/types/inference/accountBilling.d.ts +151 -488
- package/dist/types/inference/aliaModelRelease.d.ts +42 -439
- package/dist/types/inference/attribution.d.ts +75 -104
- package/dist/types/inference/catalogue.d.ts +417 -1599
- package/dist/types/inference/economics.d.ts +69 -276
- package/dist/types/inference/embeddings.d.ts +110 -406
- package/dist/types/inference/entitlement.d.ts +80 -335
- package/dist/types/inference/errors.d.ts +90 -102
- package/dist/types/inference/identifiers.d.ts +12 -4
- package/dist/types/inference/inbox.d.ts +105 -420
- package/dist/types/inference/modelDocumentation.d.ts +201 -1390
- package/dist/types/inference/money.d.ts +65 -32
- package/dist/types/inference/priceVersion.d.ts +53 -120
- package/dist/types/inference/providerConnection.d.ts +253 -710
- package/dist/types/inference/realtime.d.ts +954 -6825
- package/dist/types/inference/request.d.ts +300 -2572
- package/dist/types/inference/routingPolicy.d.ts +95 -503
- package/dist/types/inference/streamEvents.d.ts +253 -721
- package/dist/types/inference/usage.d.ts +317 -950
- package/dist/types/keyRecovery.d.ts +3 -51
- package/dist/types/keyRotation.d.ts +3 -38
- package/dist/types/linkedAccounts.d.ts +50 -236
- package/dist/types/moderationReputation.d.ts +81 -14
- package/dist/types/notifications.d.ts +19 -51
- package/dist/types/numberChecks.d.ts +9 -0
- package/dist/types/oauth.d.ts +101 -809
- package/dist/types/organizations.d.ts +268 -921
- package/dist/types/oxyRecordTypes.d.ts +11 -1
- package/dist/types/products/access.d.ts +125 -775
- package/dist/types/products/billing.d.ts +67 -503
- package/dist/types/products/checkout.d.ts +16 -69
- package/dist/types/products/plans.d.ts +33 -366
- package/dist/types/recommendations.d.ts +76 -389
- package/dist/types/reputation.d.ts +37 -5
- package/dist/types/safety.d.ts +408 -2048
- package/dist/types/serviceToken.d.ts +247 -7
- package/dist/types/sessionRevocation.d.ts +2 -17
- package/dist/types/sessionStatus.d.ts +27 -115
- package/dist/types/signIn.d.ts +53 -553
- package/dist/types/stickers.d.ts +67 -819
- package/dist/types/stringChecks.d.ts +16 -0
- package/dist/types/transparency.d.ts +14 -302
- package/dist/types/updates.d.ts +60 -316
- package/dist/types/userInvalidation.d.ts +4 -13
- package/dist/types/userResponse.d.ts +302 -2400
- package/dist/types/username.d.ts +3 -3
- package/package.json +2 -2
|
@@ -51,7 +51,16 @@ import { z } from 'zod';
|
|
|
51
51
|
* nobody is paying for.
|
|
52
52
|
*/
|
|
53
53
|
export declare const PRODUCT_PLAN_STATUSES: readonly ["active", "canceled", "incomplete", "incomplete_expired", "past_due", "paused", "trialing", "unpaid"];
|
|
54
|
-
export declare const productPlanStatusSchema: z.ZodEnum<
|
|
54
|
+
export declare const productPlanStatusSchema: z.ZodEnum<{
|
|
55
|
+
active: "active";
|
|
56
|
+
incomplete: "incomplete";
|
|
57
|
+
canceled: "canceled";
|
|
58
|
+
incomplete_expired: "incomplete_expired";
|
|
59
|
+
past_due: "past_due";
|
|
60
|
+
paused: "paused";
|
|
61
|
+
trialing: "trialing";
|
|
62
|
+
unpaid: "unpaid";
|
|
63
|
+
}>;
|
|
55
64
|
/**
|
|
56
65
|
* The statuses that mean the plan is LIVE.
|
|
57
66
|
*
|
|
@@ -68,20 +77,10 @@ export declare const LIVE_PRODUCT_PLAN_STATUSES: readonly ["active", "trialing"]
|
|
|
68
77
|
* refuse a user who has spent nothing.
|
|
69
78
|
*/
|
|
70
79
|
export declare const planAllowanceSchema: z.ZodObject<{
|
|
71
|
-
/** A stable machine name, e.g. `api_credits_per_month`. */
|
|
72
80
|
key: z.ZodString;
|
|
73
|
-
/** Whole units included per period. Never money. */
|
|
74
81
|
included: z.ZodNumber;
|
|
75
82
|
remaining: z.ZodOptional<z.ZodNumber>;
|
|
76
|
-
},
|
|
77
|
-
key: string;
|
|
78
|
-
included: number;
|
|
79
|
-
remaining?: number | undefined;
|
|
80
|
-
}, {
|
|
81
|
-
key: string;
|
|
82
|
-
included: number;
|
|
83
|
-
remaining?: number | undefined;
|
|
84
|
-
}>;
|
|
83
|
+
}, z.core.$strict>;
|
|
85
84
|
/**
|
|
86
85
|
* The plan an account is on, if any.
|
|
87
86
|
*
|
|
@@ -93,53 +92,26 @@ export declare const planAllowanceSchema: z.ZodObject<{
|
|
|
93
92
|
export declare const productPlanSchema: z.ZodObject<{
|
|
94
93
|
id: z.ZodString;
|
|
95
94
|
name: z.ZodString;
|
|
96
|
-
status: z.ZodEnum<
|
|
95
|
+
status: z.ZodEnum<{
|
|
96
|
+
active: "active";
|
|
97
|
+
incomplete: "incomplete";
|
|
98
|
+
canceled: "canceled";
|
|
99
|
+
incomplete_expired: "incomplete_expired";
|
|
100
|
+
past_due: "past_due";
|
|
101
|
+
paused: "paused";
|
|
102
|
+
trialing: "trialing";
|
|
103
|
+
unpaid: "unpaid";
|
|
104
|
+
}>;
|
|
97
105
|
live: z.ZodBoolean;
|
|
98
106
|
currentPeriodStart: z.ZodString;
|
|
99
107
|
currentPeriodEnd: z.ZodString;
|
|
100
108
|
cancelAtPeriodEnd: z.ZodBoolean;
|
|
101
109
|
allowances: z.ZodArray<z.ZodObject<{
|
|
102
|
-
/** A stable machine name, e.g. `api_credits_per_month`. */
|
|
103
110
|
key: z.ZodString;
|
|
104
|
-
/** Whole units included per period. Never money. */
|
|
105
111
|
included: z.ZodNumber;
|
|
106
112
|
remaining: z.ZodOptional<z.ZodNumber>;
|
|
107
|
-
},
|
|
108
|
-
|
|
109
|
-
included: number;
|
|
110
|
-
remaining?: number | undefined;
|
|
111
|
-
}, {
|
|
112
|
-
key: string;
|
|
113
|
-
included: number;
|
|
114
|
-
remaining?: number | undefined;
|
|
115
|
-
}>, "many">;
|
|
116
|
-
}, "strict", z.ZodTypeAny, {
|
|
117
|
-
status: "active" | "incomplete" | "canceled" | "incomplete_expired" | "past_due" | "paused" | "trialing" | "unpaid";
|
|
118
|
-
name: string;
|
|
119
|
-
id: string;
|
|
120
|
-
live: boolean;
|
|
121
|
-
currentPeriodStart: string;
|
|
122
|
-
currentPeriodEnd: string;
|
|
123
|
-
cancelAtPeriodEnd: boolean;
|
|
124
|
-
allowances: {
|
|
125
|
-
key: string;
|
|
126
|
-
included: number;
|
|
127
|
-
remaining?: number | undefined;
|
|
128
|
-
}[];
|
|
129
|
-
}, {
|
|
130
|
-
status: "active" | "incomplete" | "canceled" | "incomplete_expired" | "past_due" | "paused" | "trialing" | "unpaid";
|
|
131
|
-
name: string;
|
|
132
|
-
id: string;
|
|
133
|
-
live: boolean;
|
|
134
|
-
currentPeriodStart: string;
|
|
135
|
-
currentPeriodEnd: string;
|
|
136
|
-
cancelAtPeriodEnd: boolean;
|
|
137
|
-
allowances: {
|
|
138
|
-
key: string;
|
|
139
|
-
included: number;
|
|
140
|
-
remaining?: number | undefined;
|
|
141
|
-
}[];
|
|
142
|
-
}>;
|
|
113
|
+
}, z.core.$strict>>;
|
|
114
|
+
}, z.core.$strict>;
|
|
143
115
|
/**
|
|
144
116
|
* The account's inference-spend position, summarised for a product consumer.
|
|
145
117
|
*
|
|
@@ -151,34 +123,22 @@ export declare const productPlanSchema: z.ZodObject<{
|
|
|
151
123
|
* consumer is first-party.
|
|
152
124
|
*/
|
|
153
125
|
export declare const payAsYouGoEntitlementSchema: z.ZodObject<{
|
|
154
|
-
|
|
155
|
-
billingAccountId: z.ZodBranded<z.ZodString, "OxyAccountId">;
|
|
126
|
+
billingAccountId: z.core.$ZodBranded<z.ZodString, "OxyAccountId", "out">;
|
|
156
127
|
currency: z.ZodString;
|
|
157
|
-
billingMode: z.ZodEnum<
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
128
|
+
billingMode: z.ZodEnum<{
|
|
129
|
+
prepaid: "prepaid";
|
|
130
|
+
invoiced: "invoiced";
|
|
131
|
+
}>;
|
|
132
|
+
purchasedBalance: z.core.$ZodBranded<z.ZodString, "ExactDecimal", "out">;
|
|
133
|
+
promotionalBalance: z.core.$ZodBranded<z.ZodString, "ExactDecimal", "out">;
|
|
134
|
+
availableToSpend: z.core.$ZodBranded<z.ZodString, "ExactDecimal", "out">;
|
|
162
135
|
canSpend: z.ZodBoolean;
|
|
163
|
-
},
|
|
164
|
-
currency: string;
|
|
165
|
-
billingMode: "prepaid" | "invoiced";
|
|
166
|
-
billingAccountId: string & z.BRAND<"OxyAccountId">;
|
|
167
|
-
purchasedBalance: string & z.BRAND<"ExactDecimal">;
|
|
168
|
-
promotionalBalance: string & z.BRAND<"ExactDecimal">;
|
|
169
|
-
availableToSpend: string & z.BRAND<"ExactDecimal">;
|
|
170
|
-
canSpend: boolean;
|
|
171
|
-
}, {
|
|
172
|
-
currency: string;
|
|
173
|
-
billingMode: "prepaid" | "invoiced";
|
|
174
|
-
billingAccountId: string;
|
|
175
|
-
purchasedBalance: string;
|
|
176
|
-
promotionalBalance: string;
|
|
177
|
-
availableToSpend: string;
|
|
178
|
-
canSpend: boolean;
|
|
179
|
-
}>;
|
|
136
|
+
}, z.core.$strict>;
|
|
180
137
|
export declare const COST_CENTER_STATUSES: readonly ["active", "retired"];
|
|
181
|
-
export declare const costCenterStatusSchema: z.ZodEnum<
|
|
138
|
+
export declare const costCenterStatusSchema: z.ZodEnum<{
|
|
139
|
+
active: "active";
|
|
140
|
+
retired: "retired";
|
|
141
|
+
}>;
|
|
182
142
|
/**
|
|
183
143
|
* An internal cost centre — an Oxy account that first-party spend is attributed
|
|
184
144
|
* to, with a stable slug so a report can name it without an id.
|
|
@@ -188,31 +148,17 @@ export declare const costCenterStatusSchema: z.ZodEnum<["active", "retired"]>;
|
|
|
188
148
|
* second parent link would be a second hierarchy that can disagree with it.
|
|
189
149
|
*/
|
|
190
150
|
export declare const costCenterSchema: z.ZodObject<{
|
|
191
|
-
/** See `version.ts`: this shape is served to Console and to Alia. */
|
|
192
151
|
schemaVersion: z.ZodLiteral<1>;
|
|
193
|
-
accountId: z.ZodBranded<z.ZodString, "OxyAccountId">;
|
|
152
|
+
accountId: z.core.$ZodBranded<z.ZodString, "OxyAccountId", "out">;
|
|
194
153
|
slug: z.ZodString;
|
|
195
154
|
label: z.ZodString;
|
|
196
|
-
status: z.ZodEnum<
|
|
155
|
+
status: z.ZodEnum<{
|
|
156
|
+
active: "active";
|
|
157
|
+
retired: "retired";
|
|
158
|
+
}>;
|
|
197
159
|
createdAt: z.ZodString;
|
|
198
160
|
updatedAt: z.ZodString;
|
|
199
|
-
},
|
|
200
|
-
status: "active" | "retired";
|
|
201
|
-
accountId: string & z.BRAND<"OxyAccountId">;
|
|
202
|
-
createdAt: string;
|
|
203
|
-
updatedAt: string;
|
|
204
|
-
schemaVersion: 1;
|
|
205
|
-
label: string;
|
|
206
|
-
slug: string;
|
|
207
|
-
}, {
|
|
208
|
-
status: "active" | "retired";
|
|
209
|
-
accountId: string;
|
|
210
|
-
createdAt: string;
|
|
211
|
-
updatedAt: string;
|
|
212
|
-
schemaVersion: 1;
|
|
213
|
-
label: string;
|
|
214
|
-
slug: string;
|
|
215
|
-
}>;
|
|
161
|
+
}, z.core.$strict>;
|
|
216
162
|
/**
|
|
217
163
|
* What one cost centre spent over a window.
|
|
218
164
|
*
|
|
@@ -221,72 +167,25 @@ export declare const costCenterSchema: z.ZodObject<{
|
|
|
221
167
|
* so the two are always about the same set of rows.
|
|
222
168
|
*/
|
|
223
169
|
export declare const costCenterSpendSchema: z.ZodObject<{
|
|
224
|
-
/** See `version.ts`: this shape is served to Console and to Alia. */
|
|
225
170
|
schemaVersion: z.ZodLiteral<1>;
|
|
226
171
|
costCenter: z.ZodObject<{
|
|
227
|
-
/** See `version.ts`: this shape is served to Console and to Alia. */
|
|
228
172
|
schemaVersion: z.ZodLiteral<1>;
|
|
229
|
-
accountId: z.ZodBranded<z.ZodString, "OxyAccountId">;
|
|
173
|
+
accountId: z.core.$ZodBranded<z.ZodString, "OxyAccountId", "out">;
|
|
230
174
|
slug: z.ZodString;
|
|
231
175
|
label: z.ZodString;
|
|
232
|
-
status: z.ZodEnum<
|
|
176
|
+
status: z.ZodEnum<{
|
|
177
|
+
active: "active";
|
|
178
|
+
retired: "retired";
|
|
179
|
+
}>;
|
|
233
180
|
createdAt: z.ZodString;
|
|
234
181
|
updatedAt: z.ZodString;
|
|
235
|
-
},
|
|
236
|
-
status: "active" | "retired";
|
|
237
|
-
accountId: string & z.BRAND<"OxyAccountId">;
|
|
238
|
-
createdAt: string;
|
|
239
|
-
updatedAt: string;
|
|
240
|
-
schemaVersion: 1;
|
|
241
|
-
label: string;
|
|
242
|
-
slug: string;
|
|
243
|
-
}, {
|
|
244
|
-
status: "active" | "retired";
|
|
245
|
-
accountId: string;
|
|
246
|
-
createdAt: string;
|
|
247
|
-
updatedAt: string;
|
|
248
|
-
schemaVersion: 1;
|
|
249
|
-
label: string;
|
|
250
|
-
slug: string;
|
|
251
|
-
}>;
|
|
182
|
+
}, z.core.$strict>;
|
|
252
183
|
currency: z.ZodString;
|
|
253
184
|
periodStart: z.ZodString;
|
|
254
185
|
periodEnd: z.ZodString;
|
|
255
|
-
billedAmount: z.ZodBranded<z.ZodString, "ExactDecimal">;
|
|
186
|
+
billedAmount: z.core.$ZodBranded<z.ZodString, "ExactDecimal", "out">;
|
|
256
187
|
requestCount: z.ZodNumber;
|
|
257
|
-
},
|
|
258
|
-
schemaVersion: 1;
|
|
259
|
-
billedAmount: string & z.BRAND<"ExactDecimal">;
|
|
260
|
-
currency: string;
|
|
261
|
-
periodEnd: string;
|
|
262
|
-
periodStart: string;
|
|
263
|
-
costCenter: {
|
|
264
|
-
status: "active" | "retired";
|
|
265
|
-
accountId: string & z.BRAND<"OxyAccountId">;
|
|
266
|
-
createdAt: string;
|
|
267
|
-
updatedAt: string;
|
|
268
|
-
schemaVersion: 1;
|
|
269
|
-
label: string;
|
|
270
|
-
slug: string;
|
|
271
|
-
};
|
|
272
|
-
requestCount: number;
|
|
273
|
-
}, {
|
|
274
|
-
schemaVersion: 1;
|
|
275
|
-
billedAmount: string;
|
|
276
|
-
currency: string;
|
|
277
|
-
periodEnd: string;
|
|
278
|
-
periodStart: string;
|
|
279
|
-
costCenter: {
|
|
280
|
-
status: "active" | "retired";
|
|
281
|
-
accountId: string;
|
|
282
|
-
createdAt: string;
|
|
283
|
-
updatedAt: string;
|
|
284
|
-
schemaVersion: 1;
|
|
285
|
-
label: string;
|
|
286
|
-
slug: string;
|
|
287
|
-
};
|
|
288
|
-
requestCount: number;
|
|
289
|
-
}>;
|
|
188
|
+
}, z.core.$strict>;
|
|
290
189
|
/**
|
|
291
190
|
* Everything a product needs to decide what an account may do, in one read.
|
|
292
191
|
*
|
|
@@ -299,216 +198,62 @@ export declare const costCenterSpendSchema: z.ZodObject<{
|
|
|
299
198
|
* - `costCenter` — where first-party spend is booked, `null` for a customer.
|
|
300
199
|
*/
|
|
301
200
|
export declare const productEntitlementSchema: z.ZodObject<{
|
|
302
|
-
/** See `version.ts`: this shape is served to Console and to Alia. */
|
|
303
201
|
schemaVersion: z.ZodLiteral<1>;
|
|
304
|
-
accountId: z.ZodBranded<z.ZodString, "OxyAccountId">;
|
|
202
|
+
accountId: z.core.$ZodBranded<z.ZodString, "OxyAccountId", "out">;
|
|
305
203
|
plan: z.ZodNullable<z.ZodObject<{
|
|
306
204
|
id: z.ZodString;
|
|
307
205
|
name: z.ZodString;
|
|
308
|
-
status: z.ZodEnum<
|
|
206
|
+
status: z.ZodEnum<{
|
|
207
|
+
active: "active";
|
|
208
|
+
incomplete: "incomplete";
|
|
209
|
+
canceled: "canceled";
|
|
210
|
+
incomplete_expired: "incomplete_expired";
|
|
211
|
+
past_due: "past_due";
|
|
212
|
+
paused: "paused";
|
|
213
|
+
trialing: "trialing";
|
|
214
|
+
unpaid: "unpaid";
|
|
215
|
+
}>;
|
|
309
216
|
live: z.ZodBoolean;
|
|
310
217
|
currentPeriodStart: z.ZodString;
|
|
311
218
|
currentPeriodEnd: z.ZodString;
|
|
312
219
|
cancelAtPeriodEnd: z.ZodBoolean;
|
|
313
220
|
allowances: z.ZodArray<z.ZodObject<{
|
|
314
|
-
/** A stable machine name, e.g. `api_credits_per_month`. */
|
|
315
221
|
key: z.ZodString;
|
|
316
|
-
/** Whole units included per period. Never money. */
|
|
317
222
|
included: z.ZodNumber;
|
|
318
223
|
remaining: z.ZodOptional<z.ZodNumber>;
|
|
319
|
-
},
|
|
320
|
-
|
|
321
|
-
included: number;
|
|
322
|
-
remaining?: number | undefined;
|
|
323
|
-
}, {
|
|
324
|
-
key: string;
|
|
325
|
-
included: number;
|
|
326
|
-
remaining?: number | undefined;
|
|
327
|
-
}>, "many">;
|
|
328
|
-
}, "strict", z.ZodTypeAny, {
|
|
329
|
-
status: "active" | "incomplete" | "canceled" | "incomplete_expired" | "past_due" | "paused" | "trialing" | "unpaid";
|
|
330
|
-
name: string;
|
|
331
|
-
id: string;
|
|
332
|
-
live: boolean;
|
|
333
|
-
currentPeriodStart: string;
|
|
334
|
-
currentPeriodEnd: string;
|
|
335
|
-
cancelAtPeriodEnd: boolean;
|
|
336
|
-
allowances: {
|
|
337
|
-
key: string;
|
|
338
|
-
included: number;
|
|
339
|
-
remaining?: number | undefined;
|
|
340
|
-
}[];
|
|
341
|
-
}, {
|
|
342
|
-
status: "active" | "incomplete" | "canceled" | "incomplete_expired" | "past_due" | "paused" | "trialing" | "unpaid";
|
|
343
|
-
name: string;
|
|
344
|
-
id: string;
|
|
345
|
-
live: boolean;
|
|
346
|
-
currentPeriodStart: string;
|
|
347
|
-
currentPeriodEnd: string;
|
|
348
|
-
cancelAtPeriodEnd: boolean;
|
|
349
|
-
allowances: {
|
|
350
|
-
key: string;
|
|
351
|
-
included: number;
|
|
352
|
-
remaining?: number | undefined;
|
|
353
|
-
}[];
|
|
354
|
-
}>>;
|
|
355
|
-
/**
|
|
356
|
-
* Allowances in force right now, whether they came from a plan or from the
|
|
357
|
-
* platform's own free tier. Whole counts; never money.
|
|
358
|
-
*/
|
|
224
|
+
}, z.core.$strict>>;
|
|
225
|
+
}, z.core.$strict>>;
|
|
359
226
|
allowances: z.ZodArray<z.ZodObject<{
|
|
360
|
-
/** A stable machine name, e.g. `api_credits_per_month`. */
|
|
361
227
|
key: z.ZodString;
|
|
362
|
-
/** Whole units included per period. Never money. */
|
|
363
228
|
included: z.ZodNumber;
|
|
364
229
|
remaining: z.ZodOptional<z.ZodNumber>;
|
|
365
|
-
},
|
|
366
|
-
key: string;
|
|
367
|
-
included: number;
|
|
368
|
-
remaining?: number | undefined;
|
|
369
|
-
}, {
|
|
370
|
-
key: string;
|
|
371
|
-
included: number;
|
|
372
|
-
remaining?: number | undefined;
|
|
373
|
-
}>, "many">;
|
|
230
|
+
}, z.core.$strict>>;
|
|
374
231
|
payAsYouGo: z.ZodNullable<z.ZodObject<{
|
|
375
|
-
|
|
376
|
-
billingAccountId: z.ZodBranded<z.ZodString, "OxyAccountId">;
|
|
232
|
+
billingAccountId: z.core.$ZodBranded<z.ZodString, "OxyAccountId", "out">;
|
|
377
233
|
currency: z.ZodString;
|
|
378
|
-
billingMode: z.ZodEnum<
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
234
|
+
billingMode: z.ZodEnum<{
|
|
235
|
+
prepaid: "prepaid";
|
|
236
|
+
invoiced: "invoiced";
|
|
237
|
+
}>;
|
|
238
|
+
purchasedBalance: z.core.$ZodBranded<z.ZodString, "ExactDecimal", "out">;
|
|
239
|
+
promotionalBalance: z.core.$ZodBranded<z.ZodString, "ExactDecimal", "out">;
|
|
240
|
+
availableToSpend: z.core.$ZodBranded<z.ZodString, "ExactDecimal", "out">;
|
|
383
241
|
canSpend: z.ZodBoolean;
|
|
384
|
-
},
|
|
385
|
-
currency: string;
|
|
386
|
-
billingMode: "prepaid" | "invoiced";
|
|
387
|
-
billingAccountId: string & z.BRAND<"OxyAccountId">;
|
|
388
|
-
purchasedBalance: string & z.BRAND<"ExactDecimal">;
|
|
389
|
-
promotionalBalance: string & z.BRAND<"ExactDecimal">;
|
|
390
|
-
availableToSpend: string & z.BRAND<"ExactDecimal">;
|
|
391
|
-
canSpend: boolean;
|
|
392
|
-
}, {
|
|
393
|
-
currency: string;
|
|
394
|
-
billingMode: "prepaid" | "invoiced";
|
|
395
|
-
billingAccountId: string;
|
|
396
|
-
purchasedBalance: string;
|
|
397
|
-
promotionalBalance: string;
|
|
398
|
-
availableToSpend: string;
|
|
399
|
-
canSpend: boolean;
|
|
400
|
-
}>>;
|
|
242
|
+
}, z.core.$strict>>;
|
|
401
243
|
costCenter: z.ZodNullable<z.ZodObject<{
|
|
402
|
-
/** See `version.ts`: this shape is served to Console and to Alia. */
|
|
403
244
|
schemaVersion: z.ZodLiteral<1>;
|
|
404
|
-
accountId: z.ZodBranded<z.ZodString, "OxyAccountId">;
|
|
245
|
+
accountId: z.core.$ZodBranded<z.ZodString, "OxyAccountId", "out">;
|
|
405
246
|
slug: z.ZodString;
|
|
406
247
|
label: z.ZodString;
|
|
407
|
-
status: z.ZodEnum<
|
|
248
|
+
status: z.ZodEnum<{
|
|
249
|
+
active: "active";
|
|
250
|
+
retired: "retired";
|
|
251
|
+
}>;
|
|
408
252
|
createdAt: z.ZodString;
|
|
409
253
|
updatedAt: z.ZodString;
|
|
410
|
-
},
|
|
411
|
-
status: "active" | "retired";
|
|
412
|
-
accountId: string & z.BRAND<"OxyAccountId">;
|
|
413
|
-
createdAt: string;
|
|
414
|
-
updatedAt: string;
|
|
415
|
-
schemaVersion: 1;
|
|
416
|
-
label: string;
|
|
417
|
-
slug: string;
|
|
418
|
-
}, {
|
|
419
|
-
status: "active" | "retired";
|
|
420
|
-
accountId: string;
|
|
421
|
-
createdAt: string;
|
|
422
|
-
updatedAt: string;
|
|
423
|
-
schemaVersion: 1;
|
|
424
|
-
label: string;
|
|
425
|
-
slug: string;
|
|
426
|
-
}>>;
|
|
427
|
-
/** When this view was computed. Entitlements are eventually consistent. */
|
|
254
|
+
}, z.core.$strict>>;
|
|
428
255
|
resolvedAt: z.ZodString;
|
|
429
|
-
},
|
|
430
|
-
accountId: string & z.BRAND<"OxyAccountId">;
|
|
431
|
-
plan: {
|
|
432
|
-
status: "active" | "incomplete" | "canceled" | "incomplete_expired" | "past_due" | "paused" | "trialing" | "unpaid";
|
|
433
|
-
name: string;
|
|
434
|
-
id: string;
|
|
435
|
-
live: boolean;
|
|
436
|
-
currentPeriodStart: string;
|
|
437
|
-
currentPeriodEnd: string;
|
|
438
|
-
cancelAtPeriodEnd: boolean;
|
|
439
|
-
allowances: {
|
|
440
|
-
key: string;
|
|
441
|
-
included: number;
|
|
442
|
-
remaining?: number | undefined;
|
|
443
|
-
}[];
|
|
444
|
-
} | null;
|
|
445
|
-
schemaVersion: 1;
|
|
446
|
-
allowances: {
|
|
447
|
-
key: string;
|
|
448
|
-
included: number;
|
|
449
|
-
remaining?: number | undefined;
|
|
450
|
-
}[];
|
|
451
|
-
costCenter: {
|
|
452
|
-
status: "active" | "retired";
|
|
453
|
-
accountId: string & z.BRAND<"OxyAccountId">;
|
|
454
|
-
createdAt: string;
|
|
455
|
-
updatedAt: string;
|
|
456
|
-
schemaVersion: 1;
|
|
457
|
-
label: string;
|
|
458
|
-
slug: string;
|
|
459
|
-
} | null;
|
|
460
|
-
payAsYouGo: {
|
|
461
|
-
currency: string;
|
|
462
|
-
billingMode: "prepaid" | "invoiced";
|
|
463
|
-
billingAccountId: string & z.BRAND<"OxyAccountId">;
|
|
464
|
-
purchasedBalance: string & z.BRAND<"ExactDecimal">;
|
|
465
|
-
promotionalBalance: string & z.BRAND<"ExactDecimal">;
|
|
466
|
-
availableToSpend: string & z.BRAND<"ExactDecimal">;
|
|
467
|
-
canSpend: boolean;
|
|
468
|
-
} | null;
|
|
469
|
-
resolvedAt: string;
|
|
470
|
-
}, {
|
|
471
|
-
accountId: string;
|
|
472
|
-
plan: {
|
|
473
|
-
status: "active" | "incomplete" | "canceled" | "incomplete_expired" | "past_due" | "paused" | "trialing" | "unpaid";
|
|
474
|
-
name: string;
|
|
475
|
-
id: string;
|
|
476
|
-
live: boolean;
|
|
477
|
-
currentPeriodStart: string;
|
|
478
|
-
currentPeriodEnd: string;
|
|
479
|
-
cancelAtPeriodEnd: boolean;
|
|
480
|
-
allowances: {
|
|
481
|
-
key: string;
|
|
482
|
-
included: number;
|
|
483
|
-
remaining?: number | undefined;
|
|
484
|
-
}[];
|
|
485
|
-
} | null;
|
|
486
|
-
schemaVersion: 1;
|
|
487
|
-
allowances: {
|
|
488
|
-
key: string;
|
|
489
|
-
included: number;
|
|
490
|
-
remaining?: number | undefined;
|
|
491
|
-
}[];
|
|
492
|
-
costCenter: {
|
|
493
|
-
status: "active" | "retired";
|
|
494
|
-
accountId: string;
|
|
495
|
-
createdAt: string;
|
|
496
|
-
updatedAt: string;
|
|
497
|
-
schemaVersion: 1;
|
|
498
|
-
label: string;
|
|
499
|
-
slug: string;
|
|
500
|
-
} | null;
|
|
501
|
-
payAsYouGo: {
|
|
502
|
-
currency: string;
|
|
503
|
-
billingMode: "prepaid" | "invoiced";
|
|
504
|
-
billingAccountId: string;
|
|
505
|
-
purchasedBalance: string;
|
|
506
|
-
promotionalBalance: string;
|
|
507
|
-
availableToSpend: string;
|
|
508
|
-
canSpend: boolean;
|
|
509
|
-
} | null;
|
|
510
|
-
resolvedAt: string;
|
|
511
|
-
}>;
|
|
256
|
+
}, z.core.$strict>;
|
|
512
257
|
export type ProductPlanStatus = z.infer<typeof productPlanStatusSchema>;
|
|
513
258
|
export type PlanAllowance = z.infer<typeof planAllowanceSchema>;
|
|
514
259
|
export type ProductPlan = z.infer<typeof productPlanSchema>;
|