@oxy.so/contracts 4.8.0 → 4.9.1
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/.tsbuildinfo +1 -1
- package/dist/cjs/accountGraph.js +13 -5
- package/dist/cjs/accountSubject.js +189 -0
- package/dist/cjs/agency.js +56 -4
- package/dist/cjs/agentKeys.js +67 -0
- package/dist/cjs/capabilityBindings.js +72 -0
- package/dist/cjs/index.js +60 -13
- package/dist/cjs/inference/decisions.js +41 -0
- package/dist/cjs/inference/economics.js +135 -0
- package/dist/cjs/products/access.js +60 -0
- package/dist/cjs/products/billing.js +32 -0
- package/dist/cjs/signIn.js +1 -1
- package/dist/esm/.tsbuildinfo +1 -1
- package/dist/esm/accountGraph.js +13 -5
- package/dist/esm/accountSubject.js +182 -0
- package/dist/esm/agency.js +55 -3
- package/dist/esm/agentKeys.js +63 -0
- package/dist/esm/capabilityBindings.js +67 -0
- package/dist/esm/index.js +10 -1
- package/dist/esm/inference/decisions.js +41 -0
- package/dist/esm/inference/economics.js +132 -0
- package/dist/esm/products/access.js +57 -0
- package/dist/esm/products/billing.js +29 -0
- package/dist/esm/signIn.js +1 -1
- package/dist/types/.tsbuildinfo +1 -1
- package/dist/types/accountGraph.d.ts +23 -8
- package/dist/types/accountSubject.d.ts +210 -0
- package/dist/types/agency.d.ts +956 -190
- package/dist/types/agentKeys.d.ts +525 -0
- package/dist/types/capabilityBindings.d.ts +6 -0
- package/dist/types/deviceDirectory.d.ts +50 -50
- package/dist/types/deviceSession.d.ts +14 -14
- package/dist/types/externalIdentity.d.ts +4 -4
- package/dist/types/identity.d.ts +2 -2
- package/dist/types/index.d.ts +12 -2
- package/dist/types/inference/accountBilling.d.ts +30 -30
- package/dist/types/inference/aliaModelRelease.d.ts +83 -83
- package/dist/types/inference/catalogue.d.ts +180 -180
- package/dist/types/inference/economics.d.ts +376 -0
- package/dist/types/inference/entitlement.d.ts +47 -47
- package/dist/types/inference/inbox.d.ts +12 -12
- package/dist/types/inference/modelDocumentation.d.ts +231 -231
- package/dist/types/inference/priceVersion.d.ts +4 -4
- package/dist/types/inference/providerConnection.d.ts +38 -38
- package/dist/types/inference/realtime.d.ts +802 -802
- package/dist/types/inference/request.d.ts +844 -844
- package/dist/types/inference/routingPolicy.d.ts +4 -4
- package/dist/types/inference/scopedExecution.d.ts +38 -38
- package/dist/types/inference/streamEvents.d.ts +4 -4
- package/dist/types/inference/usage.d.ts +12 -12
- package/dist/types/keyRotation.d.ts +2 -2
- package/dist/types/notifications.d.ts +4 -4
- package/dist/types/oauth.d.ts +30 -30
- package/dist/types/products/access.d.ts +487 -0
- package/dist/types/products/billing.d.ts +563 -0
- package/dist/types/recommendations.d.ts +2 -2
- package/dist/types/sessionStatus.d.ts +10 -10
- package/dist/types/signIn.d.ts +6 -6
- package/dist/types/transparency.d.ts +2 -2
- package/package.json +1 -1
|
@@ -0,0 +1,563 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
/** Self-service provenance; no payer/provider identifiers or balances in access metadata. */
|
|
3
|
+
export declare const productSubscriptionSummarySchema: z.ZodObject<{
|
|
4
|
+
sourceId: z.ZodString;
|
|
5
|
+
status: z.ZodEnum<["active", "trialing", "past_due", "unpaid", "canceled", "paused", "incomplete", "incomplete_expired"]>;
|
|
6
|
+
period: z.ZodEffects<z.ZodObject<{
|
|
7
|
+
start: z.ZodString;
|
|
8
|
+
end: z.ZodString;
|
|
9
|
+
}, "strict", z.ZodTypeAny, {
|
|
10
|
+
start: string;
|
|
11
|
+
end: string;
|
|
12
|
+
}, {
|
|
13
|
+
start: string;
|
|
14
|
+
end: string;
|
|
15
|
+
}>, {
|
|
16
|
+
start: string;
|
|
17
|
+
end: string;
|
|
18
|
+
}, {
|
|
19
|
+
start: string;
|
|
20
|
+
end: string;
|
|
21
|
+
}>;
|
|
22
|
+
cancelAtPeriodEnd: z.ZodBoolean;
|
|
23
|
+
canCancel: z.ZodBoolean;
|
|
24
|
+
offers: z.ZodArray<z.ZodObject<{
|
|
25
|
+
segmentId: z.ZodString;
|
|
26
|
+
offerId: z.ZodString;
|
|
27
|
+
offerVersion: z.ZodNumber;
|
|
28
|
+
displayName: z.ZodString;
|
|
29
|
+
origin: z.ZodEnum<["individual", "bundle"]>;
|
|
30
|
+
period: z.ZodEffects<z.ZodObject<{
|
|
31
|
+
start: z.ZodString;
|
|
32
|
+
end: z.ZodString;
|
|
33
|
+
}, "strict", z.ZodTypeAny, {
|
|
34
|
+
start: string;
|
|
35
|
+
end: string;
|
|
36
|
+
}, {
|
|
37
|
+
start: string;
|
|
38
|
+
end: string;
|
|
39
|
+
}>, {
|
|
40
|
+
start: string;
|
|
41
|
+
end: string;
|
|
42
|
+
}, {
|
|
43
|
+
start: string;
|
|
44
|
+
end: string;
|
|
45
|
+
}>;
|
|
46
|
+
current: z.ZodBoolean;
|
|
47
|
+
products: z.ZodArray<z.ZodObject<{
|
|
48
|
+
id: z.ZodString;
|
|
49
|
+
displayName: z.ZodString;
|
|
50
|
+
}, "strict", z.ZodTypeAny, {
|
|
51
|
+
displayName: string;
|
|
52
|
+
id: string;
|
|
53
|
+
}, {
|
|
54
|
+
displayName: string;
|
|
55
|
+
id: string;
|
|
56
|
+
}>, "many">;
|
|
57
|
+
}, "strict", z.ZodTypeAny, {
|
|
58
|
+
displayName: string;
|
|
59
|
+
period: {
|
|
60
|
+
start: string;
|
|
61
|
+
end: string;
|
|
62
|
+
};
|
|
63
|
+
offerId: string;
|
|
64
|
+
offerVersion: number;
|
|
65
|
+
origin: "bundle" | "individual";
|
|
66
|
+
segmentId: string;
|
|
67
|
+
current: boolean;
|
|
68
|
+
products: {
|
|
69
|
+
displayName: string;
|
|
70
|
+
id: string;
|
|
71
|
+
}[];
|
|
72
|
+
}, {
|
|
73
|
+
displayName: string;
|
|
74
|
+
period: {
|
|
75
|
+
start: string;
|
|
76
|
+
end: string;
|
|
77
|
+
};
|
|
78
|
+
offerId: string;
|
|
79
|
+
offerVersion: number;
|
|
80
|
+
origin: "bundle" | "individual";
|
|
81
|
+
segmentId: string;
|
|
82
|
+
current: boolean;
|
|
83
|
+
products: {
|
|
84
|
+
displayName: string;
|
|
85
|
+
id: string;
|
|
86
|
+
}[];
|
|
87
|
+
}>, "many">;
|
|
88
|
+
}, "strict", z.ZodTypeAny, {
|
|
89
|
+
status: "active" | "incomplete" | "canceled" | "incomplete_expired" | "past_due" | "paused" | "trialing" | "unpaid";
|
|
90
|
+
sourceId: string;
|
|
91
|
+
cancelAtPeriodEnd: boolean;
|
|
92
|
+
period: {
|
|
93
|
+
start: string;
|
|
94
|
+
end: string;
|
|
95
|
+
};
|
|
96
|
+
canCancel: boolean;
|
|
97
|
+
offers: {
|
|
98
|
+
displayName: string;
|
|
99
|
+
period: {
|
|
100
|
+
start: string;
|
|
101
|
+
end: string;
|
|
102
|
+
};
|
|
103
|
+
offerId: string;
|
|
104
|
+
offerVersion: number;
|
|
105
|
+
origin: "bundle" | "individual";
|
|
106
|
+
segmentId: string;
|
|
107
|
+
current: boolean;
|
|
108
|
+
products: {
|
|
109
|
+
displayName: string;
|
|
110
|
+
id: string;
|
|
111
|
+
}[];
|
|
112
|
+
}[];
|
|
113
|
+
}, {
|
|
114
|
+
status: "active" | "incomplete" | "canceled" | "incomplete_expired" | "past_due" | "paused" | "trialing" | "unpaid";
|
|
115
|
+
sourceId: string;
|
|
116
|
+
cancelAtPeriodEnd: boolean;
|
|
117
|
+
period: {
|
|
118
|
+
start: string;
|
|
119
|
+
end: string;
|
|
120
|
+
};
|
|
121
|
+
canCancel: boolean;
|
|
122
|
+
offers: {
|
|
123
|
+
displayName: string;
|
|
124
|
+
period: {
|
|
125
|
+
start: string;
|
|
126
|
+
end: string;
|
|
127
|
+
};
|
|
128
|
+
offerId: string;
|
|
129
|
+
offerVersion: number;
|
|
130
|
+
origin: "bundle" | "individual";
|
|
131
|
+
segmentId: string;
|
|
132
|
+
current: boolean;
|
|
133
|
+
products: {
|
|
134
|
+
displayName: string;
|
|
135
|
+
id: string;
|
|
136
|
+
}[];
|
|
137
|
+
}[];
|
|
138
|
+
}>;
|
|
139
|
+
export declare const productSubscriptionsResponseSchema: z.ZodObject<{
|
|
140
|
+
subscriptions: z.ZodArray<z.ZodObject<{
|
|
141
|
+
sourceId: z.ZodString;
|
|
142
|
+
status: z.ZodEnum<["active", "trialing", "past_due", "unpaid", "canceled", "paused", "incomplete", "incomplete_expired"]>;
|
|
143
|
+
period: z.ZodEffects<z.ZodObject<{
|
|
144
|
+
start: z.ZodString;
|
|
145
|
+
end: z.ZodString;
|
|
146
|
+
}, "strict", z.ZodTypeAny, {
|
|
147
|
+
start: string;
|
|
148
|
+
end: string;
|
|
149
|
+
}, {
|
|
150
|
+
start: string;
|
|
151
|
+
end: string;
|
|
152
|
+
}>, {
|
|
153
|
+
start: string;
|
|
154
|
+
end: string;
|
|
155
|
+
}, {
|
|
156
|
+
start: string;
|
|
157
|
+
end: string;
|
|
158
|
+
}>;
|
|
159
|
+
cancelAtPeriodEnd: z.ZodBoolean;
|
|
160
|
+
canCancel: z.ZodBoolean;
|
|
161
|
+
offers: z.ZodArray<z.ZodObject<{
|
|
162
|
+
segmentId: z.ZodString;
|
|
163
|
+
offerId: z.ZodString;
|
|
164
|
+
offerVersion: z.ZodNumber;
|
|
165
|
+
displayName: z.ZodString;
|
|
166
|
+
origin: z.ZodEnum<["individual", "bundle"]>;
|
|
167
|
+
period: z.ZodEffects<z.ZodObject<{
|
|
168
|
+
start: z.ZodString;
|
|
169
|
+
end: z.ZodString;
|
|
170
|
+
}, "strict", z.ZodTypeAny, {
|
|
171
|
+
start: string;
|
|
172
|
+
end: string;
|
|
173
|
+
}, {
|
|
174
|
+
start: string;
|
|
175
|
+
end: string;
|
|
176
|
+
}>, {
|
|
177
|
+
start: string;
|
|
178
|
+
end: string;
|
|
179
|
+
}, {
|
|
180
|
+
start: string;
|
|
181
|
+
end: string;
|
|
182
|
+
}>;
|
|
183
|
+
current: z.ZodBoolean;
|
|
184
|
+
products: z.ZodArray<z.ZodObject<{
|
|
185
|
+
id: z.ZodString;
|
|
186
|
+
displayName: z.ZodString;
|
|
187
|
+
}, "strict", z.ZodTypeAny, {
|
|
188
|
+
displayName: string;
|
|
189
|
+
id: string;
|
|
190
|
+
}, {
|
|
191
|
+
displayName: string;
|
|
192
|
+
id: string;
|
|
193
|
+
}>, "many">;
|
|
194
|
+
}, "strict", z.ZodTypeAny, {
|
|
195
|
+
displayName: string;
|
|
196
|
+
period: {
|
|
197
|
+
start: string;
|
|
198
|
+
end: string;
|
|
199
|
+
};
|
|
200
|
+
offerId: string;
|
|
201
|
+
offerVersion: number;
|
|
202
|
+
origin: "bundle" | "individual";
|
|
203
|
+
segmentId: string;
|
|
204
|
+
current: boolean;
|
|
205
|
+
products: {
|
|
206
|
+
displayName: string;
|
|
207
|
+
id: string;
|
|
208
|
+
}[];
|
|
209
|
+
}, {
|
|
210
|
+
displayName: string;
|
|
211
|
+
period: {
|
|
212
|
+
start: string;
|
|
213
|
+
end: string;
|
|
214
|
+
};
|
|
215
|
+
offerId: string;
|
|
216
|
+
offerVersion: number;
|
|
217
|
+
origin: "bundle" | "individual";
|
|
218
|
+
segmentId: string;
|
|
219
|
+
current: boolean;
|
|
220
|
+
products: {
|
|
221
|
+
displayName: string;
|
|
222
|
+
id: string;
|
|
223
|
+
}[];
|
|
224
|
+
}>, "many">;
|
|
225
|
+
}, "strict", z.ZodTypeAny, {
|
|
226
|
+
status: "active" | "incomplete" | "canceled" | "incomplete_expired" | "past_due" | "paused" | "trialing" | "unpaid";
|
|
227
|
+
sourceId: string;
|
|
228
|
+
cancelAtPeriodEnd: boolean;
|
|
229
|
+
period: {
|
|
230
|
+
start: string;
|
|
231
|
+
end: string;
|
|
232
|
+
};
|
|
233
|
+
canCancel: boolean;
|
|
234
|
+
offers: {
|
|
235
|
+
displayName: string;
|
|
236
|
+
period: {
|
|
237
|
+
start: string;
|
|
238
|
+
end: string;
|
|
239
|
+
};
|
|
240
|
+
offerId: string;
|
|
241
|
+
offerVersion: number;
|
|
242
|
+
origin: "bundle" | "individual";
|
|
243
|
+
segmentId: string;
|
|
244
|
+
current: boolean;
|
|
245
|
+
products: {
|
|
246
|
+
displayName: string;
|
|
247
|
+
id: string;
|
|
248
|
+
}[];
|
|
249
|
+
}[];
|
|
250
|
+
}, {
|
|
251
|
+
status: "active" | "incomplete" | "canceled" | "incomplete_expired" | "past_due" | "paused" | "trialing" | "unpaid";
|
|
252
|
+
sourceId: string;
|
|
253
|
+
cancelAtPeriodEnd: boolean;
|
|
254
|
+
period: {
|
|
255
|
+
start: string;
|
|
256
|
+
end: string;
|
|
257
|
+
};
|
|
258
|
+
canCancel: boolean;
|
|
259
|
+
offers: {
|
|
260
|
+
displayName: string;
|
|
261
|
+
period: {
|
|
262
|
+
start: string;
|
|
263
|
+
end: string;
|
|
264
|
+
};
|
|
265
|
+
offerId: string;
|
|
266
|
+
offerVersion: number;
|
|
267
|
+
origin: "bundle" | "individual";
|
|
268
|
+
segmentId: string;
|
|
269
|
+
current: boolean;
|
|
270
|
+
products: {
|
|
271
|
+
displayName: string;
|
|
272
|
+
id: string;
|
|
273
|
+
}[];
|
|
274
|
+
}[];
|
|
275
|
+
}>, "many">;
|
|
276
|
+
}, "strict", z.ZodTypeAny, {
|
|
277
|
+
subscriptions: {
|
|
278
|
+
status: "active" | "incomplete" | "canceled" | "incomplete_expired" | "past_due" | "paused" | "trialing" | "unpaid";
|
|
279
|
+
sourceId: string;
|
|
280
|
+
cancelAtPeriodEnd: boolean;
|
|
281
|
+
period: {
|
|
282
|
+
start: string;
|
|
283
|
+
end: string;
|
|
284
|
+
};
|
|
285
|
+
canCancel: boolean;
|
|
286
|
+
offers: {
|
|
287
|
+
displayName: string;
|
|
288
|
+
period: {
|
|
289
|
+
start: string;
|
|
290
|
+
end: string;
|
|
291
|
+
};
|
|
292
|
+
offerId: string;
|
|
293
|
+
offerVersion: number;
|
|
294
|
+
origin: "bundle" | "individual";
|
|
295
|
+
segmentId: string;
|
|
296
|
+
current: boolean;
|
|
297
|
+
products: {
|
|
298
|
+
displayName: string;
|
|
299
|
+
id: string;
|
|
300
|
+
}[];
|
|
301
|
+
}[];
|
|
302
|
+
}[];
|
|
303
|
+
}, {
|
|
304
|
+
subscriptions: {
|
|
305
|
+
status: "active" | "incomplete" | "canceled" | "incomplete_expired" | "past_due" | "paused" | "trialing" | "unpaid";
|
|
306
|
+
sourceId: string;
|
|
307
|
+
cancelAtPeriodEnd: boolean;
|
|
308
|
+
period: {
|
|
309
|
+
start: string;
|
|
310
|
+
end: string;
|
|
311
|
+
};
|
|
312
|
+
canCancel: boolean;
|
|
313
|
+
offers: {
|
|
314
|
+
displayName: string;
|
|
315
|
+
period: {
|
|
316
|
+
start: string;
|
|
317
|
+
end: string;
|
|
318
|
+
};
|
|
319
|
+
offerId: string;
|
|
320
|
+
offerVersion: number;
|
|
321
|
+
origin: "bundle" | "individual";
|
|
322
|
+
segmentId: string;
|
|
323
|
+
current: boolean;
|
|
324
|
+
products: {
|
|
325
|
+
displayName: string;
|
|
326
|
+
id: string;
|
|
327
|
+
}[];
|
|
328
|
+
}[];
|
|
329
|
+
}[];
|
|
330
|
+
}>;
|
|
331
|
+
export declare const subscriptionCreditGrantSchema: z.ZodEffects<z.ZodObject<{
|
|
332
|
+
id: z.ZodString;
|
|
333
|
+
invoiceId: z.ZodString;
|
|
334
|
+
origin: z.ZodEnum<["subscription_payment", "subscription_proration", "subscription_promotional_grant"]>;
|
|
335
|
+
period: z.ZodEffects<z.ZodObject<{
|
|
336
|
+
start: z.ZodString;
|
|
337
|
+
end: z.ZodString;
|
|
338
|
+
}, "strict", z.ZodTypeAny, {
|
|
339
|
+
start: string;
|
|
340
|
+
end: string;
|
|
341
|
+
}, {
|
|
342
|
+
start: string;
|
|
343
|
+
end: string;
|
|
344
|
+
}>, {
|
|
345
|
+
start: string;
|
|
346
|
+
end: string;
|
|
347
|
+
}, {
|
|
348
|
+
start: string;
|
|
349
|
+
end: string;
|
|
350
|
+
}>;
|
|
351
|
+
granted: z.ZodNumber;
|
|
352
|
+
consumed: z.ZodNumber;
|
|
353
|
+
clawed: z.ZodNumber;
|
|
354
|
+
remaining: z.ZodNumber;
|
|
355
|
+
promotionId: z.ZodNullable<z.ZodString>;
|
|
356
|
+
createdAt: z.ZodString;
|
|
357
|
+
}, "strict", z.ZodTypeAny, {
|
|
358
|
+
id: string;
|
|
359
|
+
createdAt: string;
|
|
360
|
+
granted: number;
|
|
361
|
+
remaining: number;
|
|
362
|
+
period: {
|
|
363
|
+
start: string;
|
|
364
|
+
end: string;
|
|
365
|
+
};
|
|
366
|
+
origin: "subscription_payment" | "subscription_proration" | "subscription_promotional_grant";
|
|
367
|
+
invoiceId: string;
|
|
368
|
+
consumed: number;
|
|
369
|
+
clawed: number;
|
|
370
|
+
promotionId: string | null;
|
|
371
|
+
}, {
|
|
372
|
+
id: string;
|
|
373
|
+
createdAt: string;
|
|
374
|
+
granted: number;
|
|
375
|
+
remaining: number;
|
|
376
|
+
period: {
|
|
377
|
+
start: string;
|
|
378
|
+
end: string;
|
|
379
|
+
};
|
|
380
|
+
origin: "subscription_payment" | "subscription_proration" | "subscription_promotional_grant";
|
|
381
|
+
invoiceId: string;
|
|
382
|
+
consumed: number;
|
|
383
|
+
clawed: number;
|
|
384
|
+
promotionId: string | null;
|
|
385
|
+
}>, {
|
|
386
|
+
id: string;
|
|
387
|
+
createdAt: string;
|
|
388
|
+
granted: number;
|
|
389
|
+
remaining: number;
|
|
390
|
+
period: {
|
|
391
|
+
start: string;
|
|
392
|
+
end: string;
|
|
393
|
+
};
|
|
394
|
+
origin: "subscription_payment" | "subscription_proration" | "subscription_promotional_grant";
|
|
395
|
+
invoiceId: string;
|
|
396
|
+
consumed: number;
|
|
397
|
+
clawed: number;
|
|
398
|
+
promotionId: string | null;
|
|
399
|
+
}, {
|
|
400
|
+
id: string;
|
|
401
|
+
createdAt: string;
|
|
402
|
+
granted: number;
|
|
403
|
+
remaining: number;
|
|
404
|
+
period: {
|
|
405
|
+
start: string;
|
|
406
|
+
end: string;
|
|
407
|
+
};
|
|
408
|
+
origin: "subscription_payment" | "subscription_proration" | "subscription_promotional_grant";
|
|
409
|
+
invoiceId: string;
|
|
410
|
+
consumed: number;
|
|
411
|
+
clawed: number;
|
|
412
|
+
promotionId: string | null;
|
|
413
|
+
}>;
|
|
414
|
+
export declare const subscriptionCreditGrantsResponseSchema: z.ZodObject<{
|
|
415
|
+
grants: z.ZodArray<z.ZodEffects<z.ZodObject<{
|
|
416
|
+
id: z.ZodString;
|
|
417
|
+
invoiceId: z.ZodString;
|
|
418
|
+
origin: z.ZodEnum<["subscription_payment", "subscription_proration", "subscription_promotional_grant"]>;
|
|
419
|
+
period: z.ZodEffects<z.ZodObject<{
|
|
420
|
+
start: z.ZodString;
|
|
421
|
+
end: z.ZodString;
|
|
422
|
+
}, "strict", z.ZodTypeAny, {
|
|
423
|
+
start: string;
|
|
424
|
+
end: string;
|
|
425
|
+
}, {
|
|
426
|
+
start: string;
|
|
427
|
+
end: string;
|
|
428
|
+
}>, {
|
|
429
|
+
start: string;
|
|
430
|
+
end: string;
|
|
431
|
+
}, {
|
|
432
|
+
start: string;
|
|
433
|
+
end: string;
|
|
434
|
+
}>;
|
|
435
|
+
granted: z.ZodNumber;
|
|
436
|
+
consumed: z.ZodNumber;
|
|
437
|
+
clawed: z.ZodNumber;
|
|
438
|
+
remaining: z.ZodNumber;
|
|
439
|
+
promotionId: z.ZodNullable<z.ZodString>;
|
|
440
|
+
createdAt: z.ZodString;
|
|
441
|
+
}, "strict", z.ZodTypeAny, {
|
|
442
|
+
id: string;
|
|
443
|
+
createdAt: string;
|
|
444
|
+
granted: number;
|
|
445
|
+
remaining: number;
|
|
446
|
+
period: {
|
|
447
|
+
start: string;
|
|
448
|
+
end: string;
|
|
449
|
+
};
|
|
450
|
+
origin: "subscription_payment" | "subscription_proration" | "subscription_promotional_grant";
|
|
451
|
+
invoiceId: string;
|
|
452
|
+
consumed: number;
|
|
453
|
+
clawed: number;
|
|
454
|
+
promotionId: string | null;
|
|
455
|
+
}, {
|
|
456
|
+
id: string;
|
|
457
|
+
createdAt: string;
|
|
458
|
+
granted: number;
|
|
459
|
+
remaining: number;
|
|
460
|
+
period: {
|
|
461
|
+
start: string;
|
|
462
|
+
end: string;
|
|
463
|
+
};
|
|
464
|
+
origin: "subscription_payment" | "subscription_proration" | "subscription_promotional_grant";
|
|
465
|
+
invoiceId: string;
|
|
466
|
+
consumed: number;
|
|
467
|
+
clawed: number;
|
|
468
|
+
promotionId: string | null;
|
|
469
|
+
}>, {
|
|
470
|
+
id: string;
|
|
471
|
+
createdAt: string;
|
|
472
|
+
granted: number;
|
|
473
|
+
remaining: number;
|
|
474
|
+
period: {
|
|
475
|
+
start: string;
|
|
476
|
+
end: string;
|
|
477
|
+
};
|
|
478
|
+
origin: "subscription_payment" | "subscription_proration" | "subscription_promotional_grant";
|
|
479
|
+
invoiceId: string;
|
|
480
|
+
consumed: number;
|
|
481
|
+
clawed: number;
|
|
482
|
+
promotionId: string | null;
|
|
483
|
+
}, {
|
|
484
|
+
id: string;
|
|
485
|
+
createdAt: string;
|
|
486
|
+
granted: number;
|
|
487
|
+
remaining: number;
|
|
488
|
+
period: {
|
|
489
|
+
start: string;
|
|
490
|
+
end: string;
|
|
491
|
+
};
|
|
492
|
+
origin: "subscription_payment" | "subscription_proration" | "subscription_promotional_grant";
|
|
493
|
+
invoiceId: string;
|
|
494
|
+
consumed: number;
|
|
495
|
+
clawed: number;
|
|
496
|
+
promotionId: string | null;
|
|
497
|
+
}>, "many">;
|
|
498
|
+
}, "strict", z.ZodTypeAny, {
|
|
499
|
+
grants: {
|
|
500
|
+
id: string;
|
|
501
|
+
createdAt: string;
|
|
502
|
+
granted: number;
|
|
503
|
+
remaining: number;
|
|
504
|
+
period: {
|
|
505
|
+
start: string;
|
|
506
|
+
end: string;
|
|
507
|
+
};
|
|
508
|
+
origin: "subscription_payment" | "subscription_proration" | "subscription_promotional_grant";
|
|
509
|
+
invoiceId: string;
|
|
510
|
+
consumed: number;
|
|
511
|
+
clawed: number;
|
|
512
|
+
promotionId: string | null;
|
|
513
|
+
}[];
|
|
514
|
+
}, {
|
|
515
|
+
grants: {
|
|
516
|
+
id: string;
|
|
517
|
+
createdAt: string;
|
|
518
|
+
granted: number;
|
|
519
|
+
remaining: number;
|
|
520
|
+
period: {
|
|
521
|
+
start: string;
|
|
522
|
+
end: string;
|
|
523
|
+
};
|
|
524
|
+
origin: "subscription_payment" | "subscription_proration" | "subscription_promotional_grant";
|
|
525
|
+
invoiceId: string;
|
|
526
|
+
consumed: number;
|
|
527
|
+
clawed: number;
|
|
528
|
+
promotionId: string | null;
|
|
529
|
+
}[];
|
|
530
|
+
}>;
|
|
531
|
+
export declare const cancelProductSubscriptionSchema: z.ZodObject<{
|
|
532
|
+
sourceId: z.ZodString;
|
|
533
|
+
expectedSubjectAccountId: z.ZodOptional<z.ZodBranded<z.ZodString, "OxyAccountId">>;
|
|
534
|
+
}, "strict", z.ZodTypeAny, {
|
|
535
|
+
sourceId: string;
|
|
536
|
+
expectedSubjectAccountId?: (string & z.BRAND<"OxyAccountId">) | undefined;
|
|
537
|
+
}, {
|
|
538
|
+
sourceId: string;
|
|
539
|
+
expectedSubjectAccountId?: string | undefined;
|
|
540
|
+
}>;
|
|
541
|
+
export type ProductSubscriptionSummary = z.infer<typeof productSubscriptionSummarySchema>;
|
|
542
|
+
export type SubscriptionCreditGrant = z.infer<typeof subscriptionCreditGrantSchema>;
|
|
543
|
+
/** Remote acceptance is distinct from completed local reconciliation. */
|
|
544
|
+
export declare const productSubscriptionCancellationResultSchema: z.ZodUnion<[z.ZodObject<{
|
|
545
|
+
sourceId: z.ZodString;
|
|
546
|
+
cancelAtPeriodEnd: z.ZodLiteral<true>;
|
|
547
|
+
}, "strict", z.ZodTypeAny, {
|
|
548
|
+
sourceId: string;
|
|
549
|
+
cancelAtPeriodEnd: true;
|
|
550
|
+
}, {
|
|
551
|
+
sourceId: string;
|
|
552
|
+
cancelAtPeriodEnd: true;
|
|
553
|
+
}>, z.ZodObject<{
|
|
554
|
+
sourceId: z.ZodString;
|
|
555
|
+
reconciliationPending: z.ZodLiteral<true>;
|
|
556
|
+
}, "strict", z.ZodTypeAny, {
|
|
557
|
+
sourceId: string;
|
|
558
|
+
reconciliationPending: true;
|
|
559
|
+
}, {
|
|
560
|
+
sourceId: string;
|
|
561
|
+
reconciliationPending: true;
|
|
562
|
+
}>]>;
|
|
563
|
+
export type ProductSubscriptionCancellationResult = z.infer<typeof productSubscriptionCancellationResultSchema>;
|
|
@@ -124,8 +124,8 @@ export declare const recommendationRequestSchema: z.ZodObject<{
|
|
|
124
124
|
affinity?: number | undefined;
|
|
125
125
|
}>>;
|
|
126
126
|
}, "strip", z.ZodTypeAny, {
|
|
127
|
-
limit?: number | undefined;
|
|
128
127
|
clientId?: string | undefined;
|
|
128
|
+
limit?: number | undefined;
|
|
129
129
|
offset?: number | undefined;
|
|
130
130
|
excludeTypes?: ("agent" | "federated" | "automated")[] | undefined;
|
|
131
131
|
excludeIds?: string[] | undefined;
|
|
@@ -145,8 +145,8 @@ export declare const recommendationRequestSchema: z.ZodObject<{
|
|
|
145
145
|
affinity?: number | undefined;
|
|
146
146
|
} | undefined;
|
|
147
147
|
}, {
|
|
148
|
-
limit?: number | undefined;
|
|
149
148
|
clientId?: string | undefined;
|
|
149
|
+
limit?: number | undefined;
|
|
150
150
|
offset?: number | undefined;
|
|
151
151
|
excludeTypes?: ("agent" | "federated" | "automated")[] | undefined;
|
|
152
152
|
excludeIds?: string[] | undefined;
|
|
@@ -71,9 +71,9 @@ export declare const publicApplicationSchema: z.ZodObject<{
|
|
|
71
71
|
type: "system" | "internal" | "first_party" | "third_party";
|
|
72
72
|
name: string;
|
|
73
73
|
id: string;
|
|
74
|
+
scopes: string[];
|
|
74
75
|
isOfficial: boolean;
|
|
75
76
|
isInternal: boolean;
|
|
76
|
-
scopes: string[];
|
|
77
77
|
description?: string | undefined;
|
|
78
78
|
icon?: string | undefined;
|
|
79
79
|
websiteUrl?: string | undefined;
|
|
@@ -84,9 +84,9 @@ export declare const publicApplicationSchema: z.ZodObject<{
|
|
|
84
84
|
type: "system" | "internal" | "first_party" | "third_party";
|
|
85
85
|
name: string;
|
|
86
86
|
id: string;
|
|
87
|
+
scopes: string[];
|
|
87
88
|
isOfficial: boolean;
|
|
88
89
|
isInternal: boolean;
|
|
89
|
-
scopes: string[];
|
|
90
90
|
description?: string | undefined;
|
|
91
91
|
icon?: string | undefined;
|
|
92
92
|
websiteUrl?: string | undefined;
|
|
@@ -143,9 +143,9 @@ export declare const sessionStatusSchema: z.ZodObject<{
|
|
|
143
143
|
type: "system" | "internal" | "first_party" | "third_party";
|
|
144
144
|
name: string;
|
|
145
145
|
id: string;
|
|
146
|
+
scopes: string[];
|
|
146
147
|
isOfficial: boolean;
|
|
147
148
|
isInternal: boolean;
|
|
148
|
-
scopes: string[];
|
|
149
149
|
description?: string | undefined;
|
|
150
150
|
icon?: string | undefined;
|
|
151
151
|
websiteUrl?: string | undefined;
|
|
@@ -156,9 +156,9 @@ export declare const sessionStatusSchema: z.ZodObject<{
|
|
|
156
156
|
type: "system" | "internal" | "first_party" | "third_party";
|
|
157
157
|
name: string;
|
|
158
158
|
id: string;
|
|
159
|
+
scopes: string[];
|
|
159
160
|
isOfficial: boolean;
|
|
160
161
|
isInternal: boolean;
|
|
161
|
-
scopes: string[];
|
|
162
162
|
description?: string | undefined;
|
|
163
163
|
icon?: string | undefined;
|
|
164
164
|
websiteUrl?: string | undefined;
|
|
@@ -181,18 +181,18 @@ export declare const sessionStatusSchema: z.ZodObject<{
|
|
|
181
181
|
status: string;
|
|
182
182
|
purpose?: "device_sign_in" | "oauth_authorization" | undefined;
|
|
183
183
|
expiresAt?: string | undefined;
|
|
184
|
-
publicKey?: string | null | undefined;
|
|
185
|
-
userId?: string | null | undefined;
|
|
186
184
|
sessionId?: string | null | undefined;
|
|
185
|
+
userId?: string | null | undefined;
|
|
186
|
+
publicKey?: string | null | undefined;
|
|
187
187
|
authorized?: boolean | undefined;
|
|
188
188
|
sessionToken?: string | undefined;
|
|
189
189
|
application?: {
|
|
190
190
|
type: "system" | "internal" | "first_party" | "third_party";
|
|
191
191
|
name: string;
|
|
192
192
|
id: string;
|
|
193
|
+
scopes: string[];
|
|
193
194
|
isOfficial: boolean;
|
|
194
195
|
isInternal: boolean;
|
|
195
|
-
scopes: string[];
|
|
196
196
|
description?: string | undefined;
|
|
197
197
|
icon?: string | undefined;
|
|
198
198
|
websiteUrl?: string | undefined;
|
|
@@ -206,18 +206,18 @@ export declare const sessionStatusSchema: z.ZodObject<{
|
|
|
206
206
|
status: string;
|
|
207
207
|
purpose?: "device_sign_in" | "oauth_authorization" | undefined;
|
|
208
208
|
expiresAt?: string | undefined;
|
|
209
|
-
publicKey?: string | null | undefined;
|
|
210
|
-
userId?: string | null | undefined;
|
|
211
209
|
sessionId?: string | null | undefined;
|
|
210
|
+
userId?: string | null | undefined;
|
|
211
|
+
publicKey?: string | null | undefined;
|
|
212
212
|
authorized?: boolean | undefined;
|
|
213
213
|
sessionToken?: string | undefined;
|
|
214
214
|
application?: {
|
|
215
215
|
type: "system" | "internal" | "first_party" | "third_party";
|
|
216
216
|
name: string;
|
|
217
217
|
id: string;
|
|
218
|
+
scopes: string[];
|
|
218
219
|
isOfficial: boolean;
|
|
219
220
|
isInternal: boolean;
|
|
220
|
-
scopes: string[];
|
|
221
221
|
description?: string | undefined;
|
|
222
222
|
icon?: string | undefined;
|
|
223
223
|
websiteUrl?: string | undefined;
|
package/dist/types/signIn.d.ts
CHANGED
|
@@ -212,17 +212,17 @@ export declare const emailSignInLinkRequestSchema: z.ZodObject<{
|
|
|
212
212
|
deviceSecret: string;
|
|
213
213
|
}>;
|
|
214
214
|
}, "strict", z.ZodTypeAny, {
|
|
215
|
-
token: string;
|
|
216
215
|
device: {
|
|
217
216
|
deviceId: string;
|
|
218
217
|
deviceSecret: string;
|
|
219
218
|
};
|
|
220
|
-
}, {
|
|
221
219
|
token: string;
|
|
220
|
+
}, {
|
|
222
221
|
device: {
|
|
223
222
|
deviceId: string;
|
|
224
223
|
deviceSecret: string;
|
|
225
224
|
};
|
|
225
|
+
token: string;
|
|
226
226
|
}>;
|
|
227
227
|
export type EmailSignInLinkRequest = z.infer<typeof emailSignInLinkRequestSchema>;
|
|
228
228
|
export interface EmailSignInLinkResponse {
|
|
@@ -365,15 +365,15 @@ export declare function isSecondFactorRequired(result: SignInStepResult | EmailS
|
|
|
365
365
|
* What a re-verification email code confirms. The code is bound to it: a code
|
|
366
366
|
* asked for one change never authorises another, and the email names it.
|
|
367
367
|
*/
|
|
368
|
-
export declare const REAUTH_ACTIONS: readonly ["change_password", "totp", "link_commons", "delete_account"];
|
|
368
|
+
export declare const REAUTH_ACTIONS: readonly ["change_password", "totp", "link_commons", "delete_account", "credentials_manage"];
|
|
369
369
|
export type ReauthAction = (typeof REAUTH_ACTIONS)[number];
|
|
370
370
|
/** `POST /users/me/reauth/email` */
|
|
371
371
|
export declare const reauthEmailStartRequestSchema: z.ZodObject<{
|
|
372
|
-
action: z.ZodEnum<["change_password", "totp", "link_commons", "delete_account"]>;
|
|
372
|
+
action: z.ZodEnum<["change_password", "totp", "link_commons", "delete_account", "credentials_manage"]>;
|
|
373
373
|
}, "strict", z.ZodTypeAny, {
|
|
374
|
-
action: "change_password" | "totp" | "link_commons" | "delete_account";
|
|
374
|
+
action: "change_password" | "totp" | "link_commons" | "delete_account" | "credentials_manage";
|
|
375
375
|
}, {
|
|
376
|
-
action: "change_password" | "totp" | "link_commons" | "delete_account";
|
|
376
|
+
action: "change_password" | "totp" | "link_commons" | "delete_account" | "credentials_manage";
|
|
377
377
|
}>;
|
|
378
378
|
export type ReauthEmailStartRequest = z.infer<typeof reauthEmailStartRequestSchema>;
|
|
379
379
|
/**
|