@oxy.so/contracts 4.8.0 → 4.9.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 +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/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/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
|
@@ -38,6 +38,7 @@ export declare const deviceSessionStateSchema: z.ZodObject<{
|
|
|
38
38
|
updatedAt: z.ZodNumber;
|
|
39
39
|
}, "strip", z.ZodTypeAny, {
|
|
40
40
|
updatedAt: number;
|
|
41
|
+
activeAccountId: string | null;
|
|
41
42
|
deviceId: string;
|
|
42
43
|
accounts: {
|
|
43
44
|
accountId: string;
|
|
@@ -45,10 +46,10 @@ export declare const deviceSessionStateSchema: z.ZodObject<{
|
|
|
45
46
|
authuser: number;
|
|
46
47
|
operatedByUserId?: string | undefined;
|
|
47
48
|
}[];
|
|
48
|
-
activeAccountId: string | null;
|
|
49
49
|
revision: number;
|
|
50
50
|
}, {
|
|
51
51
|
updatedAt: number;
|
|
52
|
+
activeAccountId: string | null;
|
|
52
53
|
deviceId: string;
|
|
53
54
|
accounts: {
|
|
54
55
|
accountId: string;
|
|
@@ -56,7 +57,6 @@ export declare const deviceSessionStateSchema: z.ZodObject<{
|
|
|
56
57
|
authuser: number;
|
|
57
58
|
operatedByUserId?: string | undefined;
|
|
58
59
|
}[];
|
|
59
|
-
activeAccountId: string | null;
|
|
60
60
|
revision: number;
|
|
61
61
|
}>;
|
|
62
62
|
export declare const activeTokenSchema: z.ZodObject<{
|
|
@@ -93,6 +93,7 @@ export declare const deviceSessionSyncSchema: z.ZodObject<{
|
|
|
93
93
|
updatedAt: z.ZodNumber;
|
|
94
94
|
}, "strip", z.ZodTypeAny, {
|
|
95
95
|
updatedAt: number;
|
|
96
|
+
activeAccountId: string | null;
|
|
96
97
|
deviceId: string;
|
|
97
98
|
accounts: {
|
|
98
99
|
accountId: string;
|
|
@@ -100,10 +101,10 @@ export declare const deviceSessionSyncSchema: z.ZodObject<{
|
|
|
100
101
|
authuser: number;
|
|
101
102
|
operatedByUserId?: string | undefined;
|
|
102
103
|
}[];
|
|
103
|
-
activeAccountId: string | null;
|
|
104
104
|
revision: number;
|
|
105
105
|
}, {
|
|
106
106
|
updatedAt: number;
|
|
107
|
+
activeAccountId: string | null;
|
|
107
108
|
deviceId: string;
|
|
108
109
|
accounts: {
|
|
109
110
|
accountId: string;
|
|
@@ -111,7 +112,6 @@ export declare const deviceSessionSyncSchema: z.ZodObject<{
|
|
|
111
112
|
authuser: number;
|
|
112
113
|
operatedByUserId?: string | undefined;
|
|
113
114
|
}[];
|
|
114
|
-
activeAccountId: string | null;
|
|
115
115
|
revision: number;
|
|
116
116
|
}>;
|
|
117
117
|
activeToken: z.ZodNullable<z.ZodObject<{
|
|
@@ -127,6 +127,7 @@ export declare const deviceSessionSyncSchema: z.ZodObject<{
|
|
|
127
127
|
}, "strip", z.ZodTypeAny, {
|
|
128
128
|
state: {
|
|
129
129
|
updatedAt: number;
|
|
130
|
+
activeAccountId: string | null;
|
|
130
131
|
deviceId: string;
|
|
131
132
|
accounts: {
|
|
132
133
|
accountId: string;
|
|
@@ -134,7 +135,6 @@ export declare const deviceSessionSyncSchema: z.ZodObject<{
|
|
|
134
135
|
authuser: number;
|
|
135
136
|
operatedByUserId?: string | undefined;
|
|
136
137
|
}[];
|
|
137
|
-
activeAccountId: string | null;
|
|
138
138
|
revision: number;
|
|
139
139
|
};
|
|
140
140
|
activeToken: {
|
|
@@ -144,6 +144,7 @@ export declare const deviceSessionSyncSchema: z.ZodObject<{
|
|
|
144
144
|
}, {
|
|
145
145
|
state: {
|
|
146
146
|
updatedAt: number;
|
|
147
|
+
activeAccountId: string | null;
|
|
147
148
|
deviceId: string;
|
|
148
149
|
accounts: {
|
|
149
150
|
accountId: string;
|
|
@@ -151,7 +152,6 @@ export declare const deviceSessionSyncSchema: z.ZodObject<{
|
|
|
151
152
|
authuser: number;
|
|
152
153
|
operatedByUserId?: string | undefined;
|
|
153
154
|
}[];
|
|
154
|
-
activeAccountId: string | null;
|
|
155
155
|
revision: number;
|
|
156
156
|
};
|
|
157
157
|
activeToken: {
|
|
@@ -227,6 +227,7 @@ export declare const deviceTokenMintResponseSchema: z.ZodObject<{
|
|
|
227
227
|
updatedAt: z.ZodNumber;
|
|
228
228
|
}, "strip", z.ZodTypeAny, {
|
|
229
229
|
updatedAt: number;
|
|
230
|
+
activeAccountId: string | null;
|
|
230
231
|
deviceId: string;
|
|
231
232
|
accounts: {
|
|
232
233
|
accountId: string;
|
|
@@ -234,10 +235,10 @@ export declare const deviceTokenMintResponseSchema: z.ZodObject<{
|
|
|
234
235
|
authuser: number;
|
|
235
236
|
operatedByUserId?: string | undefined;
|
|
236
237
|
}[];
|
|
237
|
-
activeAccountId: string | null;
|
|
238
238
|
revision: number;
|
|
239
239
|
}, {
|
|
240
240
|
updatedAt: number;
|
|
241
|
+
activeAccountId: string | null;
|
|
241
242
|
deviceId: string;
|
|
242
243
|
accounts: {
|
|
243
244
|
accountId: string;
|
|
@@ -245,7 +246,6 @@ export declare const deviceTokenMintResponseSchema: z.ZodObject<{
|
|
|
245
246
|
authuser: number;
|
|
246
247
|
operatedByUserId?: string | undefined;
|
|
247
248
|
}[];
|
|
248
|
-
activeAccountId: string | null;
|
|
249
249
|
revision: number;
|
|
250
250
|
}>;
|
|
251
251
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -253,6 +253,7 @@ export declare const deviceTokenMintResponseSchema: z.ZodObject<{
|
|
|
253
253
|
accessToken: string;
|
|
254
254
|
state: {
|
|
255
255
|
updatedAt: number;
|
|
256
|
+
activeAccountId: string | null;
|
|
256
257
|
deviceId: string;
|
|
257
258
|
accounts: {
|
|
258
259
|
accountId: string;
|
|
@@ -260,7 +261,6 @@ export declare const deviceTokenMintResponseSchema: z.ZodObject<{
|
|
|
260
261
|
authuser: number;
|
|
261
262
|
operatedByUserId?: string | undefined;
|
|
262
263
|
}[];
|
|
263
|
-
activeAccountId: string | null;
|
|
264
264
|
revision: number;
|
|
265
265
|
};
|
|
266
266
|
nextDeviceSecret: string;
|
|
@@ -269,6 +269,7 @@ export declare const deviceTokenMintResponseSchema: z.ZodObject<{
|
|
|
269
269
|
accessToken: string;
|
|
270
270
|
state: {
|
|
271
271
|
updatedAt: number;
|
|
272
|
+
activeAccountId: string | null;
|
|
272
273
|
deviceId: string;
|
|
273
274
|
accounts: {
|
|
274
275
|
accountId: string;
|
|
@@ -276,7 +277,6 @@ export declare const deviceTokenMintResponseSchema: z.ZodObject<{
|
|
|
276
277
|
authuser: number;
|
|
277
278
|
operatedByUserId?: string | undefined;
|
|
278
279
|
}[];
|
|
279
|
-
activeAccountId: string | null;
|
|
280
280
|
revision: number;
|
|
281
281
|
};
|
|
282
282
|
nextDeviceSecret: string;
|
|
@@ -316,12 +316,12 @@ export declare const sessionAccountsChangedEventSchema: z.ZodObject<{
|
|
|
316
316
|
reason: z.ZodEnum<["login", "add", "switch", "signout", "revoke"]>;
|
|
317
317
|
}, "strip", z.ZodTypeAny, {
|
|
318
318
|
reason: "login" | "add" | "switch" | "signout" | "revoke";
|
|
319
|
-
userId: string;
|
|
320
319
|
revision: number;
|
|
320
|
+
userId: string;
|
|
321
321
|
}, {
|
|
322
322
|
reason: "login" | "add" | "switch" | "signout" | "revoke";
|
|
323
|
-
userId: string;
|
|
324
323
|
revision: number;
|
|
324
|
+
userId: string;
|
|
325
325
|
}>;
|
|
326
326
|
export type SessionAccountsChangedReason = z.infer<typeof sessionAccountsChangedReasonSchema>;
|
|
327
327
|
export type SessionAccountsChangedEvent = z.infer<typeof sessionAccountsChangedEventSchema>;
|
|
@@ -458,16 +458,16 @@ export declare const deviceJoinCodeRequestSchema: z.ZodObject<{
|
|
|
458
458
|
codeChallenge: z.ZodString;
|
|
459
459
|
codeChallengeMethod: z.ZodLiteral<"S256">;
|
|
460
460
|
}, "strip", z.ZodTypeAny, {
|
|
461
|
+
clientId: string;
|
|
461
462
|
deviceId: string;
|
|
462
463
|
deviceSecret: string;
|
|
463
|
-
clientId: string;
|
|
464
464
|
redirectUri: string;
|
|
465
465
|
codeChallenge: string;
|
|
466
466
|
codeChallengeMethod: "S256";
|
|
467
467
|
}, {
|
|
468
|
+
clientId: string;
|
|
468
469
|
deviceId: string;
|
|
469
470
|
deviceSecret: string;
|
|
470
|
-
clientId: string;
|
|
471
471
|
redirectUri: string;
|
|
472
472
|
codeChallenge: string;
|
|
473
473
|
codeChallengeMethod: "S256";
|
|
@@ -498,6 +498,7 @@ export declare const lookupExternalIdentitiesResponseSchema: z.ZodObject<{
|
|
|
498
498
|
redirectedUserIds: z.ZodArray<z.ZodString, "many">;
|
|
499
499
|
}, "strip", z.ZodTypeAny, {
|
|
500
500
|
userId: string | null;
|
|
501
|
+
identifier: string;
|
|
501
502
|
externalIdentities: {
|
|
502
503
|
canonicalAcct: string;
|
|
503
504
|
network: string;
|
|
@@ -507,9 +508,9 @@ export declare const lookupExternalIdentitiesResponseSchema: z.ZodObject<{
|
|
|
507
508
|
sourceUserId: string;
|
|
508
509
|
}[];
|
|
509
510
|
redirectedUserIds: string[];
|
|
510
|
-
identifier: string;
|
|
511
511
|
}, {
|
|
512
512
|
userId: string | null;
|
|
513
|
+
identifier: string;
|
|
513
514
|
externalIdentities: {
|
|
514
515
|
canonicalAcct: string;
|
|
515
516
|
network: string;
|
|
@@ -519,11 +520,11 @@ export declare const lookupExternalIdentitiesResponseSchema: z.ZodObject<{
|
|
|
519
520
|
sourceUserId: string;
|
|
520
521
|
}[];
|
|
521
522
|
redirectedUserIds: string[];
|
|
522
|
-
identifier: string;
|
|
523
523
|
}>, "many">;
|
|
524
524
|
}, "strip", z.ZodTypeAny, {
|
|
525
525
|
identities: {
|
|
526
526
|
userId: string | null;
|
|
527
|
+
identifier: string;
|
|
527
528
|
externalIdentities: {
|
|
528
529
|
canonicalAcct: string;
|
|
529
530
|
network: string;
|
|
@@ -533,11 +534,11 @@ export declare const lookupExternalIdentitiesResponseSchema: z.ZodObject<{
|
|
|
533
534
|
sourceUserId: string;
|
|
534
535
|
}[];
|
|
535
536
|
redirectedUserIds: string[];
|
|
536
|
-
identifier: string;
|
|
537
537
|
}[];
|
|
538
538
|
}, {
|
|
539
539
|
identities: {
|
|
540
540
|
userId: string | null;
|
|
541
|
+
identifier: string;
|
|
541
542
|
externalIdentities: {
|
|
542
543
|
canonicalAcct: string;
|
|
543
544
|
network: string;
|
|
@@ -547,7 +548,6 @@ export declare const lookupExternalIdentitiesResponseSchema: z.ZodObject<{
|
|
|
547
548
|
sourceUserId: string;
|
|
548
549
|
}[];
|
|
549
550
|
redirectedUserIds: string[];
|
|
550
|
-
identifier: string;
|
|
551
551
|
}[];
|
|
552
552
|
}>;
|
|
553
553
|
export type ExternalIdentityProtocol = z.infer<typeof externalIdentityProtocolSchema>;
|
package/dist/types/identity.d.ts
CHANGED
|
@@ -289,8 +289,8 @@ export declare const domainVerificationInstructionsSchema: z.ZodObject<{
|
|
|
289
289
|
body: string;
|
|
290
290
|
}>;
|
|
291
291
|
}, "strip", z.ZodTypeAny, {
|
|
292
|
-
domain: string;
|
|
293
292
|
token: string;
|
|
293
|
+
domain: string;
|
|
294
294
|
dns: {
|
|
295
295
|
value: string;
|
|
296
296
|
name: string;
|
|
@@ -300,8 +300,8 @@ export declare const domainVerificationInstructionsSchema: z.ZodObject<{
|
|
|
300
300
|
body: string;
|
|
301
301
|
};
|
|
302
302
|
}, {
|
|
303
|
-
domain: string;
|
|
304
303
|
token: string;
|
|
304
|
+
domain: string;
|
|
305
305
|
dns: {
|
|
306
306
|
value: string;
|
|
307
307
|
name: string;
|
package/dist/types/index.d.ts
CHANGED
|
@@ -11,6 +11,8 @@
|
|
|
11
11
|
*/
|
|
12
12
|
export { ACCOUNT_KINDS, accountKindSchema, CHILD_ACCOUNT_KINDS, childAccountKindSchema, isAccountKind, isDelegatedActAsEligibleKind, isOperatorSwitchTargetKind, ACCOUNT_CATEGORY_IDS, ACCOUNT_CATEGORY_KINDS, accountCategoriesSchema, accountCategoryIdSchema, isSelectableAccountCategoryId, kindAcceptsAccountCategories, MAX_ACCOUNT_CATEGORIES, newlyAddedRetiredCategories, RETIRED_ACCOUNT_CATEGORY_IDS, SELECTABLE_ACCOUNT_CATEGORY_IDS, createAccountRequestSchema, } from './accountGraph';
|
|
13
13
|
export type { AccountKind, AccountCategoryId, AccountCategoryKind, ChildAccountKind, CreateAccountRequest, } from './accountGraph';
|
|
14
|
+
export { ACCOUNT_ACTOR_NATURES, ACCOUNT_SUBJECT_CONTRACT_VERSION, FINANCIAL_EFFECT_DIRECTIONS, KIND_INDEPENDENT_ACCOUNT_DIMENSIONS, accountActorChainFromSession, accountActorChainSchema, accountActorNatureSchema, accountKindActorNature, accountKindActsAsItself, attributeFinancialEffect, financialEffectAttributionSchema, } from './accountSubject';
|
|
15
|
+
export type { AccountActorChain, AccountActorNature, FinancialEffectAttribution, FinancialEffectDirection, KindIndependentAccountDimension, } from './accountSubject';
|
|
14
16
|
export { usernameSchema, usernameSchemaForAccountKind, isValidUsername, stripDisallowedUsernameCharacters, applyBotUsernameSuffix, USERNAME_MIN_LENGTH, USERNAME_MAX_LENGTH, USERNAME_INVALID_MESSAGE, BOT_USERNAME_INVALID_MESSAGE, RESERVED_USERNAME_MESSAGE, NUMERIC_USERNAME_MESSAGE, } from './username';
|
|
15
17
|
export { userNameSchema, userRelationshipSchema, themePreferenceSchema, dateOfBirthSchema, userResponseSchema, userProfileUpdateSchema, currentUserResponseSchema, deviceLinkedSessionSchema, deviceLinkedSessionsResponseSchema, resolveUserId, safeParseContract, } from './userResponse';
|
|
16
18
|
export type { UserNameResponse, UserRelationship, ThemePreference, UserResponse, UserProfileUpdate, CurrentUserResponseContract, DeviceLinkedSessionResponse, DeviceLinkedSessionsResponseContract, } from './userResponse';
|
|
@@ -96,8 +98,10 @@ export { BILLING_MODES, billingModeSchema, BILLING_PROFILE_STATUSES, billingProf
|
|
|
96
98
|
export type { BillingMode, BillingProfileStatus, AutoRecharge, BillingProfile, AccountBillingState, BillingInvoiceStatus, BillingInvoice, ExternalPaymentProvider, ExternalPaymentKind, ExternalPayment, AutoRechargeStatus, AutoRechargeAttempt, ReconciliationDiscrepancyKind, ReconciliationRunStatus, ReconciliationDiscrepancy, ReconciliationRun, ReconciliationReport, } from './inference/accountBilling';
|
|
97
99
|
export { PRODUCT_PLAN_STATUSES, productPlanStatusSchema, LIVE_PRODUCT_PLAN_STATUSES, planAllowanceSchema, productPlanSchema, payAsYouGoEntitlementSchema, COST_CENTER_STATUSES, costCenterStatusSchema, costCenterSchema, costCenterSpendSchema, productEntitlementSchema, } from './inference/entitlement';
|
|
98
100
|
export type { ProductPlanStatus, PlanAllowance, ProductPlan, PayAsYouGoEntitlement, CostCenterStatus, CostCenter, CostCenterSpend, ProductEntitlement, } from './inference/entitlement';
|
|
99
|
-
export {
|
|
100
|
-
export type {
|
|
101
|
+
export { INFERENCE_ECONOMIC_TREATMENTS, inferenceEconomicTreatmentSchema, PROVIDER_COST_SOURCES, providerCostSourceSchema, costCenterUsageSchema, } from './inference/economics';
|
|
102
|
+
export type { InferenceEconomicTreatment, ProviderCostSource, CostCenterUsage, } from './inference/economics';
|
|
103
|
+
export { AUTONOMY_LEVELS, CAPABILITY_PACKAGES, autonomyLevelSchema, capabilityPackageSchema, actorRefSchema, executionActorRefSchema, foregroundExecutionAuthorizationInputSchema, resourceRefSchema, toolGrantOverrideSchema, grantLimitSchema, capabilityCatalogBindingSchema, executionAuthorizationRefSchema, capabilityCoordinatorSchema, capabilityTicketRequestSchema, delegationGrantSchema, automationTriggerSchema, automationActorSelectionSchema, automationDataFlowSchema, automationDefinitionSchema, capabilityTicketClaimsSchema, invocationPrincipalSchema, policyDecisionSchema, auditResultSchema, auditEventSchema, catalogToolSchema, catalogEventSchema, appCapabilityCatalogSchema, catalogRegistrationSchema, normalizedAppEventSchema, } from './agency';
|
|
104
|
+
export type { AutonomyLevel, CapabilityPackage, ActorRef, ExecutionActorRef, ForegroundExecutionAuthorizationInput, ResourceRef, ToolGrantOverride, GrantLimit, CapabilityCatalogBinding, ExecutionAuthorizationRef, CapabilityCoordinator, CapabilityTicketRequest, DelegationGrant, AutomationTrigger, AutomationActorSelection, AutomationDefinition, CapabilityTicketClaims, InvocationPrincipal, PolicyDecision, AuditEvent, CatalogTool, CatalogEvent, AppCapabilityCatalog, CatalogRegistration, NormalizedAppEvent, } from './agency';
|
|
101
105
|
export { catalogInvocationPathParameters, catalogInvocationsOverlap, catalogInvocationTemplatesEquivalent, findOverlappingCatalogInvocations, matchCatalogInvocation, resolveCatalogInvocation, } from './capabilityInvocation';
|
|
102
106
|
export type { CatalogInvocationMatch, CatalogInvocationTemplate, ResolvedCatalogInvocation, } from './capabilityInvocation';
|
|
103
107
|
export { emailContextAddressSchema, emailContextMailboxSchema, emailContextMessageSchema, emailAgentContextSchema, } from './emailAgentContext';
|
|
@@ -116,3 +120,9 @@ export { SCOPED_EXECUTION_CONTRACT_VERSION, SCOPED_REQUEST_ENVELOPE_VERSION, sco
|
|
|
116
120
|
export type { ScopedExecutionAudience, ScopedExecution } from './inference/scopedExecution';
|
|
117
121
|
export { scopedInferenceRequestSchema } from './inference/request';
|
|
118
122
|
export type { ScopedInferenceRequest } from './inference/request';
|
|
123
|
+
export { productDefinitionSchema, subjectProductAccessQuerySchema, productBenefitSchema, productOfferSchema, productSubscriptionSourceSchema, productAccessGrantSchema, productOfferSegmentSchema, subjectProductAccessSchema, } from './products/access';
|
|
124
|
+
export type { ProductDefinition, SubjectProductAccessQuery, ProductBenefit, ProductOffer, ProductSubscriptionSource, ProductAccessGrant, ProductOfferSegment, SubjectProductAccess, } from './products/access';
|
|
125
|
+
export { meteredGenerationSchema, type MeteredGeneration } from "./inference/economics";
|
|
126
|
+
export { canonicalCapabilityJson, inputSatisfiesCapabilityLimits, isLoopbackOrigin } from './capabilityBindings';
|
|
127
|
+
export * from './agentKeys';
|
|
128
|
+
export { productSubscriptionSummarySchema, productSubscriptionsResponseSchema, subscriptionCreditGrantSchema, subscriptionCreditGrantsResponseSchema, cancelProductSubscriptionSchema, productSubscriptionCancellationResultSchema, type ProductSubscriptionSummary, type SubscriptionCreditGrant, type ProductSubscriptionCancellationResult } from './products/billing';
|
|
@@ -133,10 +133,10 @@ export declare const billingProfileSchema: z.ZodObject<{
|
|
|
133
133
|
updatedAt: z.ZodString;
|
|
134
134
|
}, "strict", z.ZodTypeAny, {
|
|
135
135
|
status: "active" | "suspended" | "closed";
|
|
136
|
+
schemaVersion: 1;
|
|
136
137
|
accountId: string & z.BRAND<"OxyAccountId">;
|
|
137
138
|
createdAt: string;
|
|
138
139
|
updatedAt: string;
|
|
139
|
-
schemaVersion: 1;
|
|
140
140
|
currency: string;
|
|
141
141
|
billingMode: "prepaid" | "invoiced";
|
|
142
142
|
creditLimit: string & z.BRAND<"ExactDecimal">;
|
|
@@ -147,10 +147,10 @@ export declare const billingProfileSchema: z.ZodObject<{
|
|
|
147
147
|
};
|
|
148
148
|
}, {
|
|
149
149
|
status: "active" | "suspended" | "closed";
|
|
150
|
+
schemaVersion: 1;
|
|
150
151
|
accountId: string;
|
|
151
152
|
createdAt: string;
|
|
152
153
|
updatedAt: string;
|
|
153
|
-
schemaVersion: 1;
|
|
154
154
|
currency: string;
|
|
155
155
|
billingMode: "prepaid" | "invoiced";
|
|
156
156
|
creditLimit: string;
|
|
@@ -222,10 +222,10 @@ export declare const accountBillingStateSchema: z.ZodObject<{
|
|
|
222
222
|
updatedAt: z.ZodString;
|
|
223
223
|
}, "strict", z.ZodTypeAny, {
|
|
224
224
|
status: "active" | "suspended" | "closed";
|
|
225
|
+
schemaVersion: 1;
|
|
225
226
|
accountId: string & z.BRAND<"OxyAccountId">;
|
|
226
227
|
createdAt: string;
|
|
227
228
|
updatedAt: string;
|
|
228
|
-
schemaVersion: 1;
|
|
229
229
|
currency: string;
|
|
230
230
|
billingMode: "prepaid" | "invoiced";
|
|
231
231
|
creditLimit: string & z.BRAND<"ExactDecimal">;
|
|
@@ -236,10 +236,10 @@ export declare const accountBillingStateSchema: z.ZodObject<{
|
|
|
236
236
|
};
|
|
237
237
|
}, {
|
|
238
238
|
status: "active" | "suspended" | "closed";
|
|
239
|
+
schemaVersion: 1;
|
|
239
240
|
accountId: string;
|
|
240
241
|
createdAt: string;
|
|
241
242
|
updatedAt: string;
|
|
242
|
-
schemaVersion: 1;
|
|
243
243
|
currency: string;
|
|
244
244
|
billingMode: "prepaid" | "invoiced";
|
|
245
245
|
creditLimit: string;
|
|
@@ -250,14 +250,14 @@ export declare const accountBillingStateSchema: z.ZodObject<{
|
|
|
250
250
|
};
|
|
251
251
|
}>;
|
|
252
252
|
}, "strict", z.ZodTypeAny, {
|
|
253
|
-
accountId: string & z.BRAND<"OxyAccountId">;
|
|
254
253
|
schemaVersion: 1;
|
|
254
|
+
accountId: string & z.BRAND<"OxyAccountId">;
|
|
255
255
|
profile: {
|
|
256
256
|
status: "active" | "suspended" | "closed";
|
|
257
|
+
schemaVersion: 1;
|
|
257
258
|
accountId: string & z.BRAND<"OxyAccountId">;
|
|
258
259
|
createdAt: string;
|
|
259
260
|
updatedAt: string;
|
|
260
|
-
schemaVersion: 1;
|
|
261
261
|
currency: string;
|
|
262
262
|
billingMode: "prepaid" | "invoiced";
|
|
263
263
|
creditLimit: string & z.BRAND<"ExactDecimal">;
|
|
@@ -270,14 +270,14 @@ export declare const accountBillingStateSchema: z.ZodObject<{
|
|
|
270
270
|
billingAccountId: string & z.BRAND<"OxyAccountId">;
|
|
271
271
|
inherited: boolean;
|
|
272
272
|
}, {
|
|
273
|
-
accountId: string;
|
|
274
273
|
schemaVersion: 1;
|
|
274
|
+
accountId: string;
|
|
275
275
|
profile: {
|
|
276
276
|
status: "active" | "suspended" | "closed";
|
|
277
|
+
schemaVersion: 1;
|
|
277
278
|
accountId: string;
|
|
278
279
|
createdAt: string;
|
|
279
280
|
updatedAt: string;
|
|
280
|
-
schemaVersion: 1;
|
|
281
281
|
currency: string;
|
|
282
282
|
billingMode: "prepaid" | "invoiced";
|
|
283
283
|
creditLimit: string;
|
|
@@ -323,9 +323,9 @@ export declare const billingInvoiceSchema: z.ZodObject<{
|
|
|
323
323
|
receiptCount: z.ZodNumber;
|
|
324
324
|
}, "strict", z.ZodTypeAny, {
|
|
325
325
|
status: "void" | "draft" | "open" | "paid";
|
|
326
|
+
schemaVersion: 1;
|
|
326
327
|
accountId: string & z.BRAND<"OxyAccountId">;
|
|
327
328
|
id: string;
|
|
328
|
-
schemaVersion: 1;
|
|
329
329
|
currency: string;
|
|
330
330
|
periodEnd: string;
|
|
331
331
|
periodStart: string;
|
|
@@ -338,9 +338,9 @@ export declare const billingInvoiceSchema: z.ZodObject<{
|
|
|
338
338
|
paidAt?: string | undefined;
|
|
339
339
|
}, {
|
|
340
340
|
status: "void" | "draft" | "open" | "paid";
|
|
341
|
+
schemaVersion: 1;
|
|
341
342
|
accountId: string;
|
|
342
343
|
id: string;
|
|
343
|
-
schemaVersion: 1;
|
|
344
344
|
currency: string;
|
|
345
345
|
periodEnd: string;
|
|
346
346
|
periodStart: string;
|
|
@@ -434,11 +434,11 @@ export declare const autoRechargeAttemptSchema: z.ZodObject<{
|
|
|
434
434
|
updatedAt: z.ZodString;
|
|
435
435
|
}, "strict", z.ZodTypeAny, {
|
|
436
436
|
status: "succeeded" | "failed" | "pending";
|
|
437
|
+
schemaVersion: 1;
|
|
437
438
|
accountId: string & z.BRAND<"OxyAccountId">;
|
|
438
439
|
id: string;
|
|
439
440
|
createdAt: string;
|
|
440
441
|
updatedAt: string;
|
|
441
|
-
schemaVersion: 1;
|
|
442
442
|
currency: string;
|
|
443
443
|
requestedAmount: string & z.BRAND<"ExactDecimal">;
|
|
444
444
|
balanceAtTrigger: string & z.BRAND<"ExactDecimal">;
|
|
@@ -446,11 +446,11 @@ export declare const autoRechargeAttemptSchema: z.ZodObject<{
|
|
|
446
446
|
externalRef?: string | undefined;
|
|
447
447
|
}, {
|
|
448
448
|
status: "succeeded" | "failed" | "pending";
|
|
449
|
+
schemaVersion: 1;
|
|
449
450
|
accountId: string;
|
|
450
451
|
id: string;
|
|
451
452
|
createdAt: string;
|
|
452
453
|
updatedAt: string;
|
|
453
|
-
schemaVersion: 1;
|
|
454
454
|
currency: string;
|
|
455
455
|
requestedAmount: string;
|
|
456
456
|
balanceAtTrigger: string;
|
|
@@ -494,10 +494,10 @@ export declare const reconciliationDiscrepancySchema: z.ZodObject<{
|
|
|
494
494
|
createdAt: z.ZodString;
|
|
495
495
|
}, "strict", z.ZodTypeAny, {
|
|
496
496
|
kind: "missing_in_ledger" | "missing_in_external" | "amount_mismatch" | "account_unresolved";
|
|
497
|
+
schemaVersion: 1;
|
|
498
|
+
runId: string;
|
|
497
499
|
id: string;
|
|
498
500
|
createdAt: string;
|
|
499
|
-
runId: string;
|
|
500
|
-
schemaVersion: 1;
|
|
501
501
|
currency: string;
|
|
502
502
|
accountId?: (string & z.BRAND<"OxyAccountId">) | undefined;
|
|
503
503
|
externalRef?: string | undefined;
|
|
@@ -506,10 +506,10 @@ export declare const reconciliationDiscrepancySchema: z.ZodObject<{
|
|
|
506
506
|
externalAmount?: (string & z.BRAND<"ExactDecimal">) | undefined;
|
|
507
507
|
}, {
|
|
508
508
|
kind: "missing_in_ledger" | "missing_in_external" | "amount_mismatch" | "account_unresolved";
|
|
509
|
+
schemaVersion: 1;
|
|
510
|
+
runId: string;
|
|
509
511
|
id: string;
|
|
510
512
|
createdAt: string;
|
|
511
|
-
runId: string;
|
|
512
|
-
schemaVersion: 1;
|
|
513
513
|
currency: string;
|
|
514
514
|
accountId?: string | undefined;
|
|
515
515
|
externalRef?: string | undefined;
|
|
@@ -543,8 +543,8 @@ export declare const reconciliationRunSchema: z.ZodObject<{
|
|
|
543
543
|
completedAt: z.ZodOptional<z.ZodString>;
|
|
544
544
|
}, "strict", z.ZodTypeAny, {
|
|
545
545
|
status: "failed" | "completed" | "running";
|
|
546
|
-
id: string;
|
|
547
546
|
schemaVersion: 1;
|
|
547
|
+
id: string;
|
|
548
548
|
currency: string;
|
|
549
549
|
periodEnd: string;
|
|
550
550
|
provider: "stripe";
|
|
@@ -557,8 +557,8 @@ export declare const reconciliationRunSchema: z.ZodObject<{
|
|
|
557
557
|
completedAt?: string | undefined;
|
|
558
558
|
}, {
|
|
559
559
|
status: "failed" | "completed" | "running";
|
|
560
|
-
id: string;
|
|
561
560
|
schemaVersion: 1;
|
|
561
|
+
id: string;
|
|
562
562
|
currency: string;
|
|
563
563
|
periodEnd: string;
|
|
564
564
|
provider: "stripe";
|
|
@@ -591,8 +591,8 @@ export declare const reconciliationReportSchema: z.ZodObject<{
|
|
|
591
591
|
completedAt: z.ZodOptional<z.ZodString>;
|
|
592
592
|
}, "strict", z.ZodTypeAny, {
|
|
593
593
|
status: "failed" | "completed" | "running";
|
|
594
|
-
id: string;
|
|
595
594
|
schemaVersion: 1;
|
|
595
|
+
id: string;
|
|
596
596
|
currency: string;
|
|
597
597
|
periodEnd: string;
|
|
598
598
|
provider: "stripe";
|
|
@@ -605,8 +605,8 @@ export declare const reconciliationReportSchema: z.ZodObject<{
|
|
|
605
605
|
completedAt?: string | undefined;
|
|
606
606
|
}, {
|
|
607
607
|
status: "failed" | "completed" | "running";
|
|
608
|
-
id: string;
|
|
609
608
|
schemaVersion: 1;
|
|
609
|
+
id: string;
|
|
610
610
|
currency: string;
|
|
611
611
|
periodEnd: string;
|
|
612
612
|
provider: "stripe";
|
|
@@ -635,10 +635,10 @@ export declare const reconciliationReportSchema: z.ZodObject<{
|
|
|
635
635
|
createdAt: z.ZodString;
|
|
636
636
|
}, "strict", z.ZodTypeAny, {
|
|
637
637
|
kind: "missing_in_ledger" | "missing_in_external" | "amount_mismatch" | "account_unresolved";
|
|
638
|
+
schemaVersion: 1;
|
|
639
|
+
runId: string;
|
|
638
640
|
id: string;
|
|
639
641
|
createdAt: string;
|
|
640
|
-
runId: string;
|
|
641
|
-
schemaVersion: 1;
|
|
642
642
|
currency: string;
|
|
643
643
|
accountId?: (string & z.BRAND<"OxyAccountId">) | undefined;
|
|
644
644
|
externalRef?: string | undefined;
|
|
@@ -647,10 +647,10 @@ export declare const reconciliationReportSchema: z.ZodObject<{
|
|
|
647
647
|
externalAmount?: (string & z.BRAND<"ExactDecimal">) | undefined;
|
|
648
648
|
}, {
|
|
649
649
|
kind: "missing_in_ledger" | "missing_in_external" | "amount_mismatch" | "account_unresolved";
|
|
650
|
+
schemaVersion: 1;
|
|
651
|
+
runId: string;
|
|
650
652
|
id: string;
|
|
651
653
|
createdAt: string;
|
|
652
|
-
runId: string;
|
|
653
|
-
schemaVersion: 1;
|
|
654
654
|
currency: string;
|
|
655
655
|
accountId?: string | undefined;
|
|
656
656
|
externalRef?: string | undefined;
|
|
@@ -662,8 +662,8 @@ export declare const reconciliationReportSchema: z.ZodObject<{
|
|
|
662
662
|
schemaVersion: 1;
|
|
663
663
|
run: {
|
|
664
664
|
status: "failed" | "completed" | "running";
|
|
665
|
-
id: string;
|
|
666
665
|
schemaVersion: 1;
|
|
666
|
+
id: string;
|
|
667
667
|
currency: string;
|
|
668
668
|
periodEnd: string;
|
|
669
669
|
provider: "stripe";
|
|
@@ -677,10 +677,10 @@ export declare const reconciliationReportSchema: z.ZodObject<{
|
|
|
677
677
|
};
|
|
678
678
|
discrepancies: {
|
|
679
679
|
kind: "missing_in_ledger" | "missing_in_external" | "amount_mismatch" | "account_unresolved";
|
|
680
|
+
schemaVersion: 1;
|
|
681
|
+
runId: string;
|
|
680
682
|
id: string;
|
|
681
683
|
createdAt: string;
|
|
682
|
-
runId: string;
|
|
683
|
-
schemaVersion: 1;
|
|
684
684
|
currency: string;
|
|
685
685
|
accountId?: (string & z.BRAND<"OxyAccountId">) | undefined;
|
|
686
686
|
externalRef?: string | undefined;
|
|
@@ -692,8 +692,8 @@ export declare const reconciliationReportSchema: z.ZodObject<{
|
|
|
692
692
|
schemaVersion: 1;
|
|
693
693
|
run: {
|
|
694
694
|
status: "failed" | "completed" | "running";
|
|
695
|
-
id: string;
|
|
696
695
|
schemaVersion: 1;
|
|
696
|
+
id: string;
|
|
697
697
|
currency: string;
|
|
698
698
|
periodEnd: string;
|
|
699
699
|
provider: "stripe";
|
|
@@ -707,10 +707,10 @@ export declare const reconciliationReportSchema: z.ZodObject<{
|
|
|
707
707
|
};
|
|
708
708
|
discrepancies: {
|
|
709
709
|
kind: "missing_in_ledger" | "missing_in_external" | "amount_mismatch" | "account_unresolved";
|
|
710
|
+
schemaVersion: 1;
|
|
711
|
+
runId: string;
|
|
710
712
|
id: string;
|
|
711
713
|
createdAt: string;
|
|
712
|
-
runId: string;
|
|
713
|
-
schemaVersion: 1;
|
|
714
714
|
currency: string;
|
|
715
715
|
accountId?: string | undefined;
|
|
716
716
|
externalRef?: string | undefined;
|