@oxy.so/contracts 4.11.0-oxy-one.0 → 4.11.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/.tsbuildinfo +1 -1
- package/dist/cjs/accountGraph.js +5 -3
- package/dist/cjs/agency.js +178 -96
- package/dist/cjs/agentKeys.js +80 -26
- package/dist/cjs/capabilityBindings.js +2 -2
- package/dist/cjs/capabilityInvocation.js +3 -1
- package/dist/cjs/commonsSignIn.js +2 -2
- package/dist/cjs/deviceSession.js +5 -1
- package/dist/cjs/email/messages.js +70 -4
- package/dist/cjs/emailAgentContext.js +16 -8
- package/dist/cjs/externalIdentity.js +30 -12
- package/dist/cjs/identity.js +14 -6
- package/dist/cjs/identityLink.js +7 -2
- package/dist/cjs/identityProof.js +2 -1
- package/dist/cjs/index.js +5 -3
- package/dist/cjs/inference/catalogue.js +2 -12
- package/dist/cjs/inference/decisions.js +102 -83
- package/dist/cjs/inference/economics.js +15 -5
- package/dist/cjs/inference/embeddings.js +44 -6
- package/dist/cjs/inference/inbox.js +33 -2
- package/dist/cjs/inference/providerConnection.js +21 -6
- package/dist/cjs/inference/realtime.js +114 -107
- package/dist/cjs/inference/scopedExecution.js +12 -12
- package/dist/cjs/inference/usage.js +2 -9
- package/dist/cjs/notifications.js +25 -5
- package/dist/cjs/oauth.js +30 -14
- package/dist/cjs/oxyRecordTypes.js +2 -2
- package/dist/cjs/products/access.js +146 -57
- package/dist/cjs/products/billing.js +71 -17
- package/dist/cjs/products/checkout.js +24 -6
- package/dist/cjs/products/plans.js +22 -7
- package/dist/cjs/recommendations.js +4 -6
- package/dist/cjs/reputation.js +3 -6
- package/dist/cjs/sessionStatus.js +1 -6
- package/dist/cjs/signIn.js +17 -4
- package/dist/cjs/transparency.js +3 -1
- package/dist/cjs/updates.js +2 -4
- package/dist/cjs/userResponse.js +27 -7
- package/dist/cjs/username.js +3 -1
- package/dist/esm/.tsbuildinfo +1 -1
- package/dist/esm/accountGraph.js +5 -3
- package/dist/esm/agency.js +178 -96
- package/dist/esm/agentKeys.js +80 -26
- package/dist/esm/capabilityBindings.js +2 -2
- package/dist/esm/capabilityInvocation.js +3 -1
- package/dist/esm/commonsSignIn.js +2 -2
- package/dist/esm/deviceSession.js +5 -1
- package/dist/esm/email/messages.js +69 -3
- package/dist/esm/emailAgentContext.js +16 -8
- package/dist/esm/externalIdentity.js +30 -12
- package/dist/esm/identity.js +14 -6
- package/dist/esm/identityLink.js +7 -2
- package/dist/esm/identityProof.js +2 -1
- package/dist/esm/index.js +7 -7
- package/dist/esm/inference/aliaModelRelease.js +1 -1
- package/dist/esm/inference/catalogue.js +3 -13
- package/dist/esm/inference/decisions.js +108 -89
- package/dist/esm/inference/economics.js +16 -6
- package/dist/esm/inference/embeddings.js +44 -6
- package/dist/esm/inference/inbox.js +32 -1
- package/dist/esm/inference/providerConnection.js +21 -6
- package/dist/esm/inference/realtime.js +123 -116
- package/dist/esm/inference/scopedExecution.js +15 -15
- package/dist/esm/inference/usage.js +2 -9
- package/dist/esm/notifications.js +25 -5
- package/dist/esm/oauth.js +30 -14
- package/dist/esm/oxyRecordTypes.js +2 -2
- package/dist/esm/products/access.js +146 -57
- package/dist/esm/products/billing.js +71 -17
- package/dist/esm/products/checkout.js +24 -6
- package/dist/esm/products/plans.js +22 -7
- package/dist/esm/recommendations.js +4 -6
- package/dist/esm/reputation.js +3 -6
- package/dist/esm/sessionStatus.js +1 -6
- package/dist/esm/signIn.js +17 -4
- package/dist/esm/transparency.js +3 -1
- package/dist/esm/updates.js +2 -4
- package/dist/esm/userResponse.js +27 -7
- package/dist/esm/username.js +3 -1
- package/dist/types/.tsbuildinfo +1 -1
- package/dist/types/accountGraph.d.ts +1 -1
- package/dist/types/commonsSignIn.d.ts +2 -2
- package/dist/types/email/messages.d.ts +208 -2
- package/dist/types/identity.d.ts +1 -1
- package/dist/types/index.d.ts +8 -8
- package/dist/types/inference/decisions.d.ts +1 -1
- package/dist/types/inference/inbox.d.ts +129 -5
- package/dist/types/inference/realtime.d.ts +1 -1
- package/dist/types/inference/scopedExecution.d.ts +1 -1
- package/dist/types/moderationReputation.d.ts +1 -1
- package/dist/types/oxyRecordTypes.d.ts +2 -2
- package/dist/types/products/access.d.ts +102 -102
- package/dist/types/products/checkout.d.ts +3 -3
- package/dist/types/products/plans.d.ts +40 -40
- package/dist/types/reputation.d.ts +4 -4
- package/dist/types/updates.d.ts +1 -1
- package/dist/types/userResponse.d.ts +22 -23
- package/package.json +1 -2
|
@@ -7,13 +7,13 @@ export declare const productDefinitionSchema: z.ZodObject<{
|
|
|
7
7
|
applicationId: z.ZodString;
|
|
8
8
|
}, "strict", z.ZodTypeAny, {
|
|
9
9
|
schemaVersion: 1;
|
|
10
|
-
id: string;
|
|
11
10
|
ownerAccountId: string & z.BRAND<"OxyAccountId">;
|
|
11
|
+
id: string;
|
|
12
12
|
applicationId: string;
|
|
13
13
|
}, {
|
|
14
14
|
schemaVersion: 1;
|
|
15
|
-
id: string;
|
|
16
15
|
ownerAccountId: string;
|
|
16
|
+
id: string;
|
|
17
17
|
applicationId: string;
|
|
18
18
|
}>;
|
|
19
19
|
export declare const subjectProductAccessQuerySchema: z.ZodObject<{
|
|
@@ -35,13 +35,13 @@ export declare const productBenefitSchema: z.ZodDiscriminatedUnion<"kind", [z.Zo
|
|
|
35
35
|
productId: z.ZodString;
|
|
36
36
|
key: z.ZodString;
|
|
37
37
|
}, "strict", z.ZodTypeAny, {
|
|
38
|
-
productId: string;
|
|
39
38
|
kind: "capability";
|
|
40
39
|
key: string;
|
|
41
|
-
}, {
|
|
42
40
|
productId: string;
|
|
41
|
+
}, {
|
|
43
42
|
kind: "capability";
|
|
44
43
|
key: string;
|
|
44
|
+
productId: string;
|
|
45
45
|
}>, z.ZodObject<{
|
|
46
46
|
kind: z.ZodLiteral<"quota">;
|
|
47
47
|
productId: z.ZodString;
|
|
@@ -50,18 +50,18 @@ export declare const productBenefitSchema: z.ZodDiscriminatedUnion<"kind", [z.Zo
|
|
|
50
50
|
included: z.ZodNumber;
|
|
51
51
|
combination: z.ZodEnum<["maximum", "sum", "exclusive"]>;
|
|
52
52
|
}, "strict", z.ZodTypeAny, {
|
|
53
|
-
productId: string;
|
|
54
53
|
kind: "quota";
|
|
55
54
|
key: string;
|
|
56
55
|
unit: string;
|
|
57
56
|
included: number;
|
|
57
|
+
productId: string;
|
|
58
58
|
combination: "maximum" | "sum" | "exclusive";
|
|
59
59
|
}, {
|
|
60
|
-
productId: string;
|
|
61
60
|
kind: "quota";
|
|
62
61
|
key: string;
|
|
63
62
|
unit: string;
|
|
64
63
|
included: number;
|
|
64
|
+
productId: string;
|
|
65
65
|
combination: "maximum" | "sum" | "exclusive";
|
|
66
66
|
}>]>;
|
|
67
67
|
/** A version names a frozen offer. An empty bundle grants nothing. */
|
|
@@ -75,13 +75,13 @@ export declare const productOfferSchema: z.ZodEffects<z.ZodObject<{
|
|
|
75
75
|
productId: z.ZodString;
|
|
76
76
|
key: z.ZodString;
|
|
77
77
|
}, "strict", z.ZodTypeAny, {
|
|
78
|
-
productId: string;
|
|
79
78
|
kind: "capability";
|
|
80
79
|
key: string;
|
|
81
|
-
}, {
|
|
82
80
|
productId: string;
|
|
81
|
+
}, {
|
|
83
82
|
kind: "capability";
|
|
84
83
|
key: string;
|
|
84
|
+
productId: string;
|
|
85
85
|
}>, z.ZodObject<{
|
|
86
86
|
kind: z.ZodLiteral<"quota">;
|
|
87
87
|
productId: z.ZodString;
|
|
@@ -90,86 +90,86 @@ export declare const productOfferSchema: z.ZodEffects<z.ZodObject<{
|
|
|
90
90
|
included: z.ZodNumber;
|
|
91
91
|
combination: z.ZodEnum<["maximum", "sum", "exclusive"]>;
|
|
92
92
|
}, "strict", z.ZodTypeAny, {
|
|
93
|
-
productId: string;
|
|
94
93
|
kind: "quota";
|
|
95
94
|
key: string;
|
|
96
95
|
unit: string;
|
|
97
96
|
included: number;
|
|
97
|
+
productId: string;
|
|
98
98
|
combination: "maximum" | "sum" | "exclusive";
|
|
99
99
|
}, {
|
|
100
|
-
productId: string;
|
|
101
100
|
kind: "quota";
|
|
102
101
|
key: string;
|
|
103
102
|
unit: string;
|
|
104
103
|
included: number;
|
|
104
|
+
productId: string;
|
|
105
105
|
combination: "maximum" | "sum" | "exclusive";
|
|
106
106
|
}>]>, "many">;
|
|
107
107
|
}, "strict", z.ZodTypeAny, {
|
|
108
|
+
kind: "bundle" | "individual";
|
|
108
109
|
schemaVersion: 1;
|
|
109
|
-
id: string;
|
|
110
|
-
kind: "individual" | "bundle";
|
|
111
110
|
version: number;
|
|
111
|
+
id: string;
|
|
112
112
|
benefits: ({
|
|
113
|
-
productId: string;
|
|
114
113
|
kind: "capability";
|
|
115
114
|
key: string;
|
|
116
|
-
} | {
|
|
117
115
|
productId: string;
|
|
116
|
+
} | {
|
|
118
117
|
kind: "quota";
|
|
119
118
|
key: string;
|
|
120
119
|
unit: string;
|
|
121
120
|
included: number;
|
|
121
|
+
productId: string;
|
|
122
122
|
combination: "maximum" | "sum" | "exclusive";
|
|
123
123
|
})[];
|
|
124
124
|
}, {
|
|
125
|
+
kind: "bundle" | "individual";
|
|
125
126
|
schemaVersion: 1;
|
|
126
|
-
id: string;
|
|
127
|
-
kind: "individual" | "bundle";
|
|
128
127
|
version: number;
|
|
128
|
+
id: string;
|
|
129
129
|
benefits: ({
|
|
130
|
-
productId: string;
|
|
131
130
|
kind: "capability";
|
|
132
131
|
key: string;
|
|
133
|
-
} | {
|
|
134
132
|
productId: string;
|
|
133
|
+
} | {
|
|
135
134
|
kind: "quota";
|
|
136
135
|
key: string;
|
|
137
136
|
unit: string;
|
|
138
137
|
included: number;
|
|
138
|
+
productId: string;
|
|
139
139
|
combination: "maximum" | "sum" | "exclusive";
|
|
140
140
|
})[];
|
|
141
141
|
}>, {
|
|
142
|
+
kind: "bundle" | "individual";
|
|
142
143
|
schemaVersion: 1;
|
|
143
|
-
id: string;
|
|
144
|
-
kind: "individual" | "bundle";
|
|
145
144
|
version: number;
|
|
145
|
+
id: string;
|
|
146
146
|
benefits: ({
|
|
147
|
-
productId: string;
|
|
148
147
|
kind: "capability";
|
|
149
148
|
key: string;
|
|
150
|
-
} | {
|
|
151
149
|
productId: string;
|
|
150
|
+
} | {
|
|
152
151
|
kind: "quota";
|
|
153
152
|
key: string;
|
|
154
153
|
unit: string;
|
|
155
154
|
included: number;
|
|
155
|
+
productId: string;
|
|
156
156
|
combination: "maximum" | "sum" | "exclusive";
|
|
157
157
|
})[];
|
|
158
158
|
}, {
|
|
159
|
+
kind: "bundle" | "individual";
|
|
159
160
|
schemaVersion: 1;
|
|
160
|
-
id: string;
|
|
161
|
-
kind: "individual" | "bundle";
|
|
162
161
|
version: number;
|
|
162
|
+
id: string;
|
|
163
163
|
benefits: ({
|
|
164
|
-
productId: string;
|
|
165
164
|
kind: "capability";
|
|
166
165
|
key: string;
|
|
167
|
-
} | {
|
|
168
166
|
productId: string;
|
|
167
|
+
} | {
|
|
169
168
|
kind: "quota";
|
|
170
169
|
key: string;
|
|
171
170
|
unit: string;
|
|
172
171
|
included: number;
|
|
172
|
+
productId: string;
|
|
173
173
|
combination: "maximum" | "sum" | "exclusive";
|
|
174
174
|
})[];
|
|
175
175
|
}>;
|
|
@@ -199,31 +199,31 @@ export declare const productSubscriptionSourceSchema: z.ZodObject<{
|
|
|
199
199
|
}>;
|
|
200
200
|
cancelAtPeriodEnd: z.ZodBoolean;
|
|
201
201
|
}, "strict", z.ZodTypeAny, {
|
|
202
|
+
status: "active" | "incomplete" | "canceled" | "incomplete_expired" | "past_due" | "paused" | "trialing" | "unpaid";
|
|
202
203
|
schemaVersion: 1;
|
|
203
|
-
status: "active" | "trialing" | "past_due" | "unpaid" | "canceled" | "paused" | "incomplete" | "incomplete_expired";
|
|
204
204
|
id: string;
|
|
205
|
+
provider: "stripe" | "peable";
|
|
206
|
+
cancelAtPeriodEnd: boolean;
|
|
205
207
|
beneficiaryAccountId: string & z.BRAND<"OxyAccountId">;
|
|
206
208
|
payerAccountId: string & z.BRAND<"OxyAccountId">;
|
|
207
|
-
provider: "stripe" | "peable";
|
|
208
209
|
providerSubscriptionId: string;
|
|
209
210
|
period: {
|
|
210
211
|
start: string;
|
|
211
212
|
end: string;
|
|
212
213
|
};
|
|
213
|
-
cancelAtPeriodEnd: boolean;
|
|
214
214
|
}, {
|
|
215
|
+
status: "active" | "incomplete" | "canceled" | "incomplete_expired" | "past_due" | "paused" | "trialing" | "unpaid";
|
|
215
216
|
schemaVersion: 1;
|
|
216
|
-
status: "active" | "trialing" | "past_due" | "unpaid" | "canceled" | "paused" | "incomplete" | "incomplete_expired";
|
|
217
217
|
id: string;
|
|
218
|
+
provider: "stripe" | "peable";
|
|
219
|
+
cancelAtPeriodEnd: boolean;
|
|
218
220
|
beneficiaryAccountId: string;
|
|
219
221
|
payerAccountId: string;
|
|
220
|
-
provider: "stripe" | "peable";
|
|
221
222
|
providerSubscriptionId: string;
|
|
222
223
|
period: {
|
|
223
224
|
start: string;
|
|
224
225
|
end: string;
|
|
225
226
|
};
|
|
226
|
-
cancelAtPeriodEnd: boolean;
|
|
227
227
|
}>;
|
|
228
228
|
/** A frozen paid-period/offer segment; upgrades append, never rewrite it. */
|
|
229
229
|
export declare const productOfferSegmentSchema: z.ZodObject<{
|
|
@@ -261,7 +261,7 @@ export declare const productOfferSegmentSchema: z.ZodObject<{
|
|
|
261
261
|
subscriptionId: string;
|
|
262
262
|
offerId: string;
|
|
263
263
|
offerVersion: number;
|
|
264
|
-
origin: "
|
|
264
|
+
origin: "bundle" | "individual";
|
|
265
265
|
}, {
|
|
266
266
|
schemaVersion: 1;
|
|
267
267
|
id: string;
|
|
@@ -273,7 +273,7 @@ export declare const productOfferSegmentSchema: z.ZodObject<{
|
|
|
273
273
|
subscriptionId: string;
|
|
274
274
|
offerId: string;
|
|
275
275
|
offerVersion: number;
|
|
276
|
-
origin: "
|
|
276
|
+
origin: "bundle" | "individual";
|
|
277
277
|
}>;
|
|
278
278
|
/** Provenance survives cancellation: deactivate a source, never delete history. */
|
|
279
279
|
export declare const productAccessGrantSchema: z.ZodObject<{
|
|
@@ -289,13 +289,13 @@ export declare const productAccessGrantSchema: z.ZodObject<{
|
|
|
289
289
|
productId: z.ZodString;
|
|
290
290
|
key: z.ZodString;
|
|
291
291
|
}, "strict", z.ZodTypeAny, {
|
|
292
|
-
productId: string;
|
|
293
292
|
kind: "capability";
|
|
294
293
|
key: string;
|
|
295
|
-
}, {
|
|
296
294
|
productId: string;
|
|
295
|
+
}, {
|
|
297
296
|
kind: "capability";
|
|
298
297
|
key: string;
|
|
298
|
+
productId: string;
|
|
299
299
|
}>, z.ZodObject<{
|
|
300
300
|
kind: z.ZodLiteral<"quota">;
|
|
301
301
|
productId: z.ZodString;
|
|
@@ -304,18 +304,18 @@ export declare const productAccessGrantSchema: z.ZodObject<{
|
|
|
304
304
|
included: z.ZodNumber;
|
|
305
305
|
combination: z.ZodEnum<["maximum", "sum", "exclusive"]>;
|
|
306
306
|
}, "strict", z.ZodTypeAny, {
|
|
307
|
-
productId: string;
|
|
308
307
|
kind: "quota";
|
|
309
308
|
key: string;
|
|
310
309
|
unit: string;
|
|
311
310
|
included: number;
|
|
311
|
+
productId: string;
|
|
312
312
|
combination: "maximum" | "sum" | "exclusive";
|
|
313
313
|
}, {
|
|
314
|
-
productId: string;
|
|
315
314
|
kind: "quota";
|
|
316
315
|
key: string;
|
|
317
316
|
unit: string;
|
|
318
317
|
included: number;
|
|
318
|
+
productId: string;
|
|
319
319
|
combination: "maximum" | "sum" | "exclusive";
|
|
320
320
|
}>]>;
|
|
321
321
|
period: z.ZodEffects<z.ZodObject<{
|
|
@@ -338,6 +338,7 @@ export declare const productAccessGrantSchema: z.ZodObject<{
|
|
|
338
338
|
}, "strict", z.ZodTypeAny, {
|
|
339
339
|
schemaVersion: 1;
|
|
340
340
|
id: string;
|
|
341
|
+
revokedAt: string | null;
|
|
341
342
|
beneficiaryAccountId: string & z.BRAND<"OxyAccountId">;
|
|
342
343
|
period: {
|
|
343
344
|
start: string;
|
|
@@ -345,24 +346,24 @@ export declare const productAccessGrantSchema: z.ZodObject<{
|
|
|
345
346
|
};
|
|
346
347
|
offerId: string;
|
|
347
348
|
offerVersion: number;
|
|
348
|
-
origin: "
|
|
349
|
+
origin: "bundle" | "individual";
|
|
349
350
|
sourceSegmentId: string;
|
|
350
351
|
benefit: {
|
|
351
|
-
productId: string;
|
|
352
352
|
kind: "capability";
|
|
353
353
|
key: string;
|
|
354
|
-
} | {
|
|
355
354
|
productId: string;
|
|
355
|
+
} | {
|
|
356
356
|
kind: "quota";
|
|
357
357
|
key: string;
|
|
358
358
|
unit: string;
|
|
359
359
|
included: number;
|
|
360
|
+
productId: string;
|
|
360
361
|
combination: "maximum" | "sum" | "exclusive";
|
|
361
362
|
};
|
|
362
|
-
revokedAt: string | null;
|
|
363
363
|
}, {
|
|
364
364
|
schemaVersion: 1;
|
|
365
365
|
id: string;
|
|
366
|
+
revokedAt: string | null;
|
|
366
367
|
beneficiaryAccountId: string;
|
|
367
368
|
period: {
|
|
368
369
|
start: string;
|
|
@@ -370,21 +371,20 @@ export declare const productAccessGrantSchema: z.ZodObject<{
|
|
|
370
371
|
};
|
|
371
372
|
offerId: string;
|
|
372
373
|
offerVersion: number;
|
|
373
|
-
origin: "
|
|
374
|
+
origin: "bundle" | "individual";
|
|
374
375
|
sourceSegmentId: string;
|
|
375
376
|
benefit: {
|
|
376
|
-
productId: string;
|
|
377
377
|
kind: "capability";
|
|
378
378
|
key: string;
|
|
379
|
-
} | {
|
|
380
379
|
productId: string;
|
|
380
|
+
} | {
|
|
381
381
|
kind: "quota";
|
|
382
382
|
key: string;
|
|
383
383
|
unit: string;
|
|
384
384
|
included: number;
|
|
385
|
+
productId: string;
|
|
385
386
|
combination: "maximum" | "sum" | "exclusive";
|
|
386
387
|
};
|
|
387
|
-
revokedAt: string | null;
|
|
388
388
|
}>;
|
|
389
389
|
/** Access answers contain no payer, provider reference, price or account balance. */
|
|
390
390
|
export declare const subjectProductAccessSchema: z.ZodObject<{
|
|
@@ -427,22 +427,22 @@ export declare const subjectProductAccessSchema: z.ZodObject<{
|
|
|
427
427
|
grantIds: z.ZodArray<z.ZodString, "many">;
|
|
428
428
|
}, "strict", z.ZodTypeAny, {
|
|
429
429
|
key: string;
|
|
430
|
-
grantIds: string[];
|
|
431
430
|
reason: "combination_mismatch" | "unit_mismatch" | "exclusive_overlap" | "unsafe_total";
|
|
431
|
+
grantIds: string[];
|
|
432
432
|
}, {
|
|
433
433
|
key: string;
|
|
434
|
-
grantIds: string[];
|
|
435
434
|
reason: "combination_mismatch" | "unit_mismatch" | "exclusive_overlap" | "unsafe_total";
|
|
435
|
+
grantIds: string[];
|
|
436
436
|
}>, "many">;
|
|
437
437
|
}, "strict", z.ZodTypeAny, {
|
|
438
438
|
schemaVersion: 1;
|
|
439
439
|
subjectAccountId: string & z.BRAND<"OxyAccountId">;
|
|
440
|
-
productId: string;
|
|
441
|
-
evaluatedAt: string;
|
|
442
440
|
capabilities: {
|
|
443
441
|
key: string;
|
|
444
442
|
grantIds: string[];
|
|
445
443
|
}[];
|
|
444
|
+
evaluatedAt: string;
|
|
445
|
+
productId: string;
|
|
446
446
|
quotas: {
|
|
447
447
|
key: string;
|
|
448
448
|
unit: string;
|
|
@@ -452,18 +452,18 @@ export declare const subjectProductAccessSchema: z.ZodObject<{
|
|
|
452
452
|
}[];
|
|
453
453
|
conflicts: {
|
|
454
454
|
key: string;
|
|
455
|
-
grantIds: string[];
|
|
456
455
|
reason: "combination_mismatch" | "unit_mismatch" | "exclusive_overlap" | "unsafe_total";
|
|
456
|
+
grantIds: string[];
|
|
457
457
|
}[];
|
|
458
458
|
}, {
|
|
459
459
|
schemaVersion: 1;
|
|
460
460
|
subjectAccountId: string;
|
|
461
|
-
productId: string;
|
|
462
|
-
evaluatedAt: string;
|
|
463
461
|
capabilities: {
|
|
464
462
|
key: string;
|
|
465
463
|
grantIds: string[];
|
|
466
464
|
}[];
|
|
465
|
+
evaluatedAt: string;
|
|
466
|
+
productId: string;
|
|
467
467
|
quotas: {
|
|
468
468
|
key: string;
|
|
469
469
|
unit: string;
|
|
@@ -473,8 +473,8 @@ export declare const subjectProductAccessSchema: z.ZodObject<{
|
|
|
473
473
|
}[];
|
|
474
474
|
conflicts: {
|
|
475
475
|
key: string;
|
|
476
|
-
grantIds: string[];
|
|
477
476
|
reason: "combination_mismatch" | "unit_mismatch" | "exclusive_overlap" | "unsafe_total";
|
|
477
|
+
grantIds: string[];
|
|
478
478
|
}[];
|
|
479
479
|
}>;
|
|
480
480
|
export type ProductBenefit = z.infer<typeof productBenefitSchema>;
|
|
@@ -528,22 +528,22 @@ export declare const subjectProductGrantSnapshotSchema: z.ZodEffects<z.ZodObject
|
|
|
528
528
|
grantIds: z.ZodArray<z.ZodString, "many">;
|
|
529
529
|
}, "strict", z.ZodTypeAny, {
|
|
530
530
|
key: string;
|
|
531
|
-
grantIds: string[];
|
|
532
531
|
reason: "combination_mismatch" | "unit_mismatch" | "exclusive_overlap" | "unsafe_total";
|
|
532
|
+
grantIds: string[];
|
|
533
533
|
}, {
|
|
534
534
|
key: string;
|
|
535
|
-
grantIds: string[];
|
|
536
535
|
reason: "combination_mismatch" | "unit_mismatch" | "exclusive_overlap" | "unsafe_total";
|
|
536
|
+
grantIds: string[];
|
|
537
537
|
}>, "many">;
|
|
538
538
|
}, "strict", z.ZodTypeAny, {
|
|
539
539
|
schemaVersion: 1;
|
|
540
540
|
subjectAccountId: string & z.BRAND<"OxyAccountId">;
|
|
541
|
-
productId: string;
|
|
542
|
-
evaluatedAt: string;
|
|
543
541
|
capabilities: {
|
|
544
542
|
key: string;
|
|
545
543
|
grantIds: string[];
|
|
546
544
|
}[];
|
|
545
|
+
evaluatedAt: string;
|
|
546
|
+
productId: string;
|
|
547
547
|
quotas: {
|
|
548
548
|
key: string;
|
|
549
549
|
unit: string;
|
|
@@ -553,18 +553,18 @@ export declare const subjectProductGrantSnapshotSchema: z.ZodEffects<z.ZodObject
|
|
|
553
553
|
}[];
|
|
554
554
|
conflicts: {
|
|
555
555
|
key: string;
|
|
556
|
-
grantIds: string[];
|
|
557
556
|
reason: "combination_mismatch" | "unit_mismatch" | "exclusive_overlap" | "unsafe_total";
|
|
557
|
+
grantIds: string[];
|
|
558
558
|
}[];
|
|
559
559
|
}, {
|
|
560
560
|
schemaVersion: 1;
|
|
561
561
|
subjectAccountId: string;
|
|
562
|
-
productId: string;
|
|
563
|
-
evaluatedAt: string;
|
|
564
562
|
capabilities: {
|
|
565
563
|
key: string;
|
|
566
564
|
grantIds: string[];
|
|
567
565
|
}[];
|
|
566
|
+
evaluatedAt: string;
|
|
567
|
+
productId: string;
|
|
568
568
|
quotas: {
|
|
569
569
|
key: string;
|
|
570
570
|
unit: string;
|
|
@@ -574,8 +574,8 @@ export declare const subjectProductGrantSnapshotSchema: z.ZodEffects<z.ZodObject
|
|
|
574
574
|
}[];
|
|
575
575
|
conflicts: {
|
|
576
576
|
key: string;
|
|
577
|
-
grantIds: string[];
|
|
578
577
|
reason: "combination_mismatch" | "unit_mismatch" | "exclusive_overlap" | "unsafe_total";
|
|
578
|
+
grantIds: string[];
|
|
579
579
|
}[];
|
|
580
580
|
}>;
|
|
581
581
|
grants: z.ZodArray<z.ZodObject<{
|
|
@@ -591,13 +591,13 @@ export declare const subjectProductGrantSnapshotSchema: z.ZodEffects<z.ZodObject
|
|
|
591
591
|
productId: z.ZodString;
|
|
592
592
|
key: z.ZodString;
|
|
593
593
|
}, "strict", z.ZodTypeAny, {
|
|
594
|
-
productId: string;
|
|
595
594
|
kind: "capability";
|
|
596
595
|
key: string;
|
|
597
|
-
}, {
|
|
598
596
|
productId: string;
|
|
597
|
+
}, {
|
|
599
598
|
kind: "capability";
|
|
600
599
|
key: string;
|
|
600
|
+
productId: string;
|
|
601
601
|
}>, z.ZodObject<{
|
|
602
602
|
kind: z.ZodLiteral<"quota">;
|
|
603
603
|
productId: z.ZodString;
|
|
@@ -606,18 +606,18 @@ export declare const subjectProductGrantSnapshotSchema: z.ZodEffects<z.ZodObject
|
|
|
606
606
|
included: z.ZodNumber;
|
|
607
607
|
combination: z.ZodEnum<["maximum", "sum", "exclusive"]>;
|
|
608
608
|
}, "strict", z.ZodTypeAny, {
|
|
609
|
-
productId: string;
|
|
610
609
|
kind: "quota";
|
|
611
610
|
key: string;
|
|
612
611
|
unit: string;
|
|
613
612
|
included: number;
|
|
613
|
+
productId: string;
|
|
614
614
|
combination: "maximum" | "sum" | "exclusive";
|
|
615
615
|
}, {
|
|
616
|
-
productId: string;
|
|
617
616
|
kind: "quota";
|
|
618
617
|
key: string;
|
|
619
618
|
unit: string;
|
|
620
619
|
included: number;
|
|
620
|
+
productId: string;
|
|
621
621
|
combination: "maximum" | "sum" | "exclusive";
|
|
622
622
|
}>]>;
|
|
623
623
|
period: z.ZodEffects<z.ZodObject<{
|
|
@@ -640,6 +640,7 @@ export declare const subjectProductGrantSnapshotSchema: z.ZodEffects<z.ZodObject
|
|
|
640
640
|
}, "strict", z.ZodTypeAny, {
|
|
641
641
|
schemaVersion: 1;
|
|
642
642
|
id: string;
|
|
643
|
+
revokedAt: string | null;
|
|
643
644
|
beneficiaryAccountId: string & z.BRAND<"OxyAccountId">;
|
|
644
645
|
period: {
|
|
645
646
|
start: string;
|
|
@@ -647,24 +648,24 @@ export declare const subjectProductGrantSnapshotSchema: z.ZodEffects<z.ZodObject
|
|
|
647
648
|
};
|
|
648
649
|
offerId: string;
|
|
649
650
|
offerVersion: number;
|
|
650
|
-
origin: "
|
|
651
|
+
origin: "bundle" | "individual";
|
|
651
652
|
sourceSegmentId: string;
|
|
652
653
|
benefit: {
|
|
653
|
-
productId: string;
|
|
654
654
|
kind: "capability";
|
|
655
655
|
key: string;
|
|
656
|
-
} | {
|
|
657
656
|
productId: string;
|
|
657
|
+
} | {
|
|
658
658
|
kind: "quota";
|
|
659
659
|
key: string;
|
|
660
660
|
unit: string;
|
|
661
661
|
included: number;
|
|
662
|
+
productId: string;
|
|
662
663
|
combination: "maximum" | "sum" | "exclusive";
|
|
663
664
|
};
|
|
664
|
-
revokedAt: string | null;
|
|
665
665
|
}, {
|
|
666
666
|
schemaVersion: 1;
|
|
667
667
|
id: string;
|
|
668
|
+
revokedAt: string | null;
|
|
668
669
|
beneficiaryAccountId: string;
|
|
669
670
|
period: {
|
|
670
671
|
start: string;
|
|
@@ -672,33 +673,32 @@ export declare const subjectProductGrantSnapshotSchema: z.ZodEffects<z.ZodObject
|
|
|
672
673
|
};
|
|
673
674
|
offerId: string;
|
|
674
675
|
offerVersion: number;
|
|
675
|
-
origin: "
|
|
676
|
+
origin: "bundle" | "individual";
|
|
676
677
|
sourceSegmentId: string;
|
|
677
678
|
benefit: {
|
|
678
|
-
productId: string;
|
|
679
679
|
kind: "capability";
|
|
680
680
|
key: string;
|
|
681
|
-
} | {
|
|
682
681
|
productId: string;
|
|
682
|
+
} | {
|
|
683
683
|
kind: "quota";
|
|
684
684
|
key: string;
|
|
685
685
|
unit: string;
|
|
686
686
|
included: number;
|
|
687
|
+
productId: string;
|
|
687
688
|
combination: "maximum" | "sum" | "exclusive";
|
|
688
689
|
};
|
|
689
|
-
revokedAt: string | null;
|
|
690
690
|
}>, "many">;
|
|
691
691
|
}, "strict", z.ZodTypeAny, {
|
|
692
692
|
schemaVersion: 1;
|
|
693
693
|
access: {
|
|
694
694
|
schemaVersion: 1;
|
|
695
695
|
subjectAccountId: string & z.BRAND<"OxyAccountId">;
|
|
696
|
-
productId: string;
|
|
697
|
-
evaluatedAt: string;
|
|
698
696
|
capabilities: {
|
|
699
697
|
key: string;
|
|
700
698
|
grantIds: string[];
|
|
701
699
|
}[];
|
|
700
|
+
evaluatedAt: string;
|
|
701
|
+
productId: string;
|
|
702
702
|
quotas: {
|
|
703
703
|
key: string;
|
|
704
704
|
unit: string;
|
|
@@ -708,13 +708,14 @@ export declare const subjectProductGrantSnapshotSchema: z.ZodEffects<z.ZodObject
|
|
|
708
708
|
}[];
|
|
709
709
|
conflicts: {
|
|
710
710
|
key: string;
|
|
711
|
-
grantIds: string[];
|
|
712
711
|
reason: "combination_mismatch" | "unit_mismatch" | "exclusive_overlap" | "unsafe_total";
|
|
712
|
+
grantIds: string[];
|
|
713
713
|
}[];
|
|
714
714
|
};
|
|
715
715
|
grants: {
|
|
716
716
|
schemaVersion: 1;
|
|
717
717
|
id: string;
|
|
718
|
+
revokedAt: string | null;
|
|
718
719
|
beneficiaryAccountId: string & z.BRAND<"OxyAccountId">;
|
|
719
720
|
period: {
|
|
720
721
|
start: string;
|
|
@@ -722,33 +723,32 @@ export declare const subjectProductGrantSnapshotSchema: z.ZodEffects<z.ZodObject
|
|
|
722
723
|
};
|
|
723
724
|
offerId: string;
|
|
724
725
|
offerVersion: number;
|
|
725
|
-
origin: "
|
|
726
|
+
origin: "bundle" | "individual";
|
|
726
727
|
sourceSegmentId: string;
|
|
727
728
|
benefit: {
|
|
728
|
-
productId: string;
|
|
729
729
|
kind: "capability";
|
|
730
730
|
key: string;
|
|
731
|
-
} | {
|
|
732
731
|
productId: string;
|
|
732
|
+
} | {
|
|
733
733
|
kind: "quota";
|
|
734
734
|
key: string;
|
|
735
735
|
unit: string;
|
|
736
736
|
included: number;
|
|
737
|
+
productId: string;
|
|
737
738
|
combination: "maximum" | "sum" | "exclusive";
|
|
738
739
|
};
|
|
739
|
-
revokedAt: string | null;
|
|
740
740
|
}[];
|
|
741
741
|
}, {
|
|
742
742
|
schemaVersion: 1;
|
|
743
743
|
access: {
|
|
744
744
|
schemaVersion: 1;
|
|
745
745
|
subjectAccountId: string;
|
|
746
|
-
productId: string;
|
|
747
|
-
evaluatedAt: string;
|
|
748
746
|
capabilities: {
|
|
749
747
|
key: string;
|
|
750
748
|
grantIds: string[];
|
|
751
749
|
}[];
|
|
750
|
+
evaluatedAt: string;
|
|
751
|
+
productId: string;
|
|
752
752
|
quotas: {
|
|
753
753
|
key: string;
|
|
754
754
|
unit: string;
|
|
@@ -758,13 +758,14 @@ export declare const subjectProductGrantSnapshotSchema: z.ZodEffects<z.ZodObject
|
|
|
758
758
|
}[];
|
|
759
759
|
conflicts: {
|
|
760
760
|
key: string;
|
|
761
|
-
grantIds: string[];
|
|
762
761
|
reason: "combination_mismatch" | "unit_mismatch" | "exclusive_overlap" | "unsafe_total";
|
|
762
|
+
grantIds: string[];
|
|
763
763
|
}[];
|
|
764
764
|
};
|
|
765
765
|
grants: {
|
|
766
766
|
schemaVersion: 1;
|
|
767
767
|
id: string;
|
|
768
|
+
revokedAt: string | null;
|
|
768
769
|
beneficiaryAccountId: string;
|
|
769
770
|
period: {
|
|
770
771
|
start: string;
|
|
@@ -772,33 +773,32 @@ export declare const subjectProductGrantSnapshotSchema: z.ZodEffects<z.ZodObject
|
|
|
772
773
|
};
|
|
773
774
|
offerId: string;
|
|
774
775
|
offerVersion: number;
|
|
775
|
-
origin: "
|
|
776
|
+
origin: "bundle" | "individual";
|
|
776
777
|
sourceSegmentId: string;
|
|
777
778
|
benefit: {
|
|
778
|
-
productId: string;
|
|
779
779
|
kind: "capability";
|
|
780
780
|
key: string;
|
|
781
|
-
} | {
|
|
782
781
|
productId: string;
|
|
782
|
+
} | {
|
|
783
783
|
kind: "quota";
|
|
784
784
|
key: string;
|
|
785
785
|
unit: string;
|
|
786
786
|
included: number;
|
|
787
|
+
productId: string;
|
|
787
788
|
combination: "maximum" | "sum" | "exclusive";
|
|
788
789
|
};
|
|
789
|
-
revokedAt: string | null;
|
|
790
790
|
}[];
|
|
791
791
|
}>, {
|
|
792
792
|
schemaVersion: 1;
|
|
793
793
|
access: {
|
|
794
794
|
schemaVersion: 1;
|
|
795
795
|
subjectAccountId: string & z.BRAND<"OxyAccountId">;
|
|
796
|
-
productId: string;
|
|
797
|
-
evaluatedAt: string;
|
|
798
796
|
capabilities: {
|
|
799
797
|
key: string;
|
|
800
798
|
grantIds: string[];
|
|
801
799
|
}[];
|
|
800
|
+
evaluatedAt: string;
|
|
801
|
+
productId: string;
|
|
802
802
|
quotas: {
|
|
803
803
|
key: string;
|
|
804
804
|
unit: string;
|
|
@@ -808,13 +808,14 @@ export declare const subjectProductGrantSnapshotSchema: z.ZodEffects<z.ZodObject
|
|
|
808
808
|
}[];
|
|
809
809
|
conflicts: {
|
|
810
810
|
key: string;
|
|
811
|
-
grantIds: string[];
|
|
812
811
|
reason: "combination_mismatch" | "unit_mismatch" | "exclusive_overlap" | "unsafe_total";
|
|
812
|
+
grantIds: string[];
|
|
813
813
|
}[];
|
|
814
814
|
};
|
|
815
815
|
grants: {
|
|
816
816
|
schemaVersion: 1;
|
|
817
817
|
id: string;
|
|
818
|
+
revokedAt: string | null;
|
|
818
819
|
beneficiaryAccountId: string & z.BRAND<"OxyAccountId">;
|
|
819
820
|
period: {
|
|
820
821
|
start: string;
|
|
@@ -822,33 +823,32 @@ export declare const subjectProductGrantSnapshotSchema: z.ZodEffects<z.ZodObject
|
|
|
822
823
|
};
|
|
823
824
|
offerId: string;
|
|
824
825
|
offerVersion: number;
|
|
825
|
-
origin: "
|
|
826
|
+
origin: "bundle" | "individual";
|
|
826
827
|
sourceSegmentId: string;
|
|
827
828
|
benefit: {
|
|
828
|
-
productId: string;
|
|
829
829
|
kind: "capability";
|
|
830
830
|
key: string;
|
|
831
|
-
} | {
|
|
832
831
|
productId: string;
|
|
832
|
+
} | {
|
|
833
833
|
kind: "quota";
|
|
834
834
|
key: string;
|
|
835
835
|
unit: string;
|
|
836
836
|
included: number;
|
|
837
|
+
productId: string;
|
|
837
838
|
combination: "maximum" | "sum" | "exclusive";
|
|
838
839
|
};
|
|
839
|
-
revokedAt: string | null;
|
|
840
840
|
}[];
|
|
841
841
|
}, {
|
|
842
842
|
schemaVersion: 1;
|
|
843
843
|
access: {
|
|
844
844
|
schemaVersion: 1;
|
|
845
845
|
subjectAccountId: string;
|
|
846
|
-
productId: string;
|
|
847
|
-
evaluatedAt: string;
|
|
848
846
|
capabilities: {
|
|
849
847
|
key: string;
|
|
850
848
|
grantIds: string[];
|
|
851
849
|
}[];
|
|
850
|
+
evaluatedAt: string;
|
|
851
|
+
productId: string;
|
|
852
852
|
quotas: {
|
|
853
853
|
key: string;
|
|
854
854
|
unit: string;
|
|
@@ -858,13 +858,14 @@ export declare const subjectProductGrantSnapshotSchema: z.ZodEffects<z.ZodObject
|
|
|
858
858
|
}[];
|
|
859
859
|
conflicts: {
|
|
860
860
|
key: string;
|
|
861
|
-
grantIds: string[];
|
|
862
861
|
reason: "combination_mismatch" | "unit_mismatch" | "exclusive_overlap" | "unsafe_total";
|
|
862
|
+
grantIds: string[];
|
|
863
863
|
}[];
|
|
864
864
|
};
|
|
865
865
|
grants: {
|
|
866
866
|
schemaVersion: 1;
|
|
867
867
|
id: string;
|
|
868
|
+
revokedAt: string | null;
|
|
868
869
|
beneficiaryAccountId: string;
|
|
869
870
|
period: {
|
|
870
871
|
start: string;
|
|
@@ -872,21 +873,20 @@ export declare const subjectProductGrantSnapshotSchema: z.ZodEffects<z.ZodObject
|
|
|
872
873
|
};
|
|
873
874
|
offerId: string;
|
|
874
875
|
offerVersion: number;
|
|
875
|
-
origin: "
|
|
876
|
+
origin: "bundle" | "individual";
|
|
876
877
|
sourceSegmentId: string;
|
|
877
878
|
benefit: {
|
|
878
|
-
productId: string;
|
|
879
879
|
kind: "capability";
|
|
880
880
|
key: string;
|
|
881
|
-
} | {
|
|
882
881
|
productId: string;
|
|
882
|
+
} | {
|
|
883
883
|
kind: "quota";
|
|
884
884
|
key: string;
|
|
885
885
|
unit: string;
|
|
886
886
|
included: number;
|
|
887
|
+
productId: string;
|
|
887
888
|
combination: "maximum" | "sum" | "exclusive";
|
|
888
889
|
};
|
|
889
|
-
revokedAt: string | null;
|
|
890
890
|
}[];
|
|
891
891
|
}>;
|
|
892
892
|
export type SubjectProductGrantSnapshot = z.infer<typeof subjectProductGrantSnapshotSchema>;
|