@oxyhq/contracts 0.28.0 → 0.30.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/identity.js +33 -1
- package/dist/cjs/index.js +20 -7
- package/dist/cjs/inference/aliaModelRelease.js +250 -0
- package/dist/cjs/inference/catalogue.js +1 -4
- package/dist/cjs/inference/errors.js +108 -9
- package/dist/cjs/inference/identifiers.js +23 -3
- package/dist/cjs/inference/request.js +188 -5
- package/dist/cjs/inference/routingPolicy.js +81 -2
- package/dist/cjs/inference/streamEvents.js +38 -1
- package/dist/cjs/inference/usage.js +32 -1
- package/dist/cjs/inference/version.js +24 -4
- package/dist/esm/.tsbuildinfo +1 -1
- package/dist/esm/identity.js +32 -0
- package/dist/esm/index.js +8 -3
- package/dist/esm/inference/aliaModelRelease.js +247 -0
- package/dist/esm/inference/catalogue.js +2 -5
- package/dist/esm/inference/errors.js +108 -9
- package/dist/esm/inference/identifiers.js +22 -2
- package/dist/esm/inference/request.js +189 -6
- package/dist/esm/inference/routingPolicy.js +81 -2
- package/dist/esm/inference/streamEvents.js +38 -1
- package/dist/esm/inference/usage.js +32 -1
- package/dist/esm/inference/version.js +24 -4
- package/dist/types/.tsbuildinfo +1 -1
- package/dist/types/identity.d.ts +59 -1
- package/dist/types/index.d.ts +7 -5
- package/dist/types/inference/accountBilling.d.ts +26 -26
- package/dist/types/inference/aliaModelRelease.d.ts +597 -0
- package/dist/types/inference/catalogue.d.ts +6 -6
- package/dist/types/inference/entitlement.d.ts +4 -4
- package/dist/types/inference/errors.d.ts +46 -10
- package/dist/types/inference/identifiers.d.ts +20 -2
- package/dist/types/inference/money.d.ts +4 -4
- package/dist/types/inference/priceVersion.d.ts +14 -14
- package/dist/types/inference/providerConnection.d.ts +4 -4
- package/dist/types/inference/request.d.ts +291 -5
- package/dist/types/inference/routingPolicy.d.ts +109 -13
- package/dist/types/inference/streamEvents.d.ts +84 -48
- package/dist/types/inference/usage.d.ts +103 -79
- package/dist/types/inference/version.d.ts +24 -4
- package/dist/types/keyRecovery.d.ts +4 -4
- package/package.json +1 -1
package/dist/types/identity.d.ts
CHANGED
|
@@ -313,11 +313,68 @@ export interface ExportAttestation {
|
|
|
313
313
|
signedAt: number;
|
|
314
314
|
}
|
|
315
315
|
export declare const exportAttestationSchema: z.ZodType<ExportAttestation>;
|
|
316
|
+
/**
|
|
317
|
+
* One settled charge, as the account it was charged to may take it away.
|
|
318
|
+
*
|
|
319
|
+
* Amounts are EXACT DECIMAL STRINGS, never numbers — the same rule the ledger
|
|
320
|
+
* itself follows. A JSON number cannot represent `0.000000700000` and a bill a
|
|
321
|
+
* customer re-adds must reproduce the figure Oxy charged.
|
|
322
|
+
*/
|
|
323
|
+
export interface ExportUsageReceipt {
|
|
324
|
+
receiptId: string;
|
|
325
|
+
requestId: string;
|
|
326
|
+
settledAt: string;
|
|
327
|
+
billedAmount: string;
|
|
328
|
+
currency: string;
|
|
329
|
+
outcome: string;
|
|
330
|
+
resolvedModelReference: string;
|
|
331
|
+
servingProvider: string;
|
|
332
|
+
/** True when the charge is Oxy's fee on a BYOK request, not the model cost. */
|
|
333
|
+
platformFeeOnly: boolean;
|
|
334
|
+
}
|
|
335
|
+
export declare const exportUsageReceiptSchema: z.ZodType<ExportUsageReceipt>;
|
|
336
|
+
/** One entry in the account's own journal. */
|
|
337
|
+
export interface ExportLedgerEntry {
|
|
338
|
+
entryId: string;
|
|
339
|
+
kind: string;
|
|
340
|
+
currency: string;
|
|
341
|
+
createdAt: string;
|
|
342
|
+
}
|
|
343
|
+
export declare const exportLedgerEntrySchema: z.ZodType<ExportLedgerEntry>;
|
|
344
|
+
/** One hold: money that was neither spent nor returned at the time it was taken. */
|
|
345
|
+
export interface ExportUsageReservation {
|
|
346
|
+
reservationId: string;
|
|
347
|
+
requestId: string;
|
|
348
|
+
status: string;
|
|
349
|
+
reservedAmount: string;
|
|
350
|
+
currency: string;
|
|
351
|
+
createdAt: string;
|
|
352
|
+
expiresAt: string;
|
|
353
|
+
}
|
|
354
|
+
export declare const exportUsageReservationSchema: z.ZodType<ExportUsageReservation>;
|
|
355
|
+
/**
|
|
356
|
+
* What the account was charged, in the subject-access export (#972 section 12).
|
|
357
|
+
*
|
|
358
|
+
* Scoped to the CALLING user's own account and read-only. It exists because a
|
|
359
|
+
* person exercising a subject-access request previously learned nothing about
|
|
360
|
+
* what they had been charged unless they also happened to be an account
|
|
361
|
+
* administrator hitting the enterprise reporting route — the deletion side of
|
|
362
|
+
* that checkbox preserved financial records the export then never disclosed.
|
|
363
|
+
*
|
|
364
|
+
* Empty arrays are the normal answer, and mean the account has no ledger history
|
|
365
|
+
* rather than that anything was withheld.
|
|
366
|
+
*/
|
|
367
|
+
export interface ExportFinancialSection {
|
|
368
|
+
receipts: ExportUsageReceipt[];
|
|
369
|
+
ledgerEntries: ExportLedgerEntry[];
|
|
370
|
+
reservations: ExportUsageReservation[];
|
|
371
|
+
}
|
|
372
|
+
export declare const exportFinancialSectionSchema: z.ZodType<ExportFinancialSection>;
|
|
316
373
|
/**
|
|
317
374
|
* The signed, open-format data-export bundle from `GET /users/me/export`. A
|
|
318
375
|
* portable snapshot of the account: its DID document, profile, verified
|
|
319
376
|
* domains, auth methods (no secrets), published signed records, per-app data,
|
|
320
|
-
* and
|
|
377
|
+
* social graph, and what the account was charged.
|
|
321
378
|
*
|
|
322
379
|
* `attestation` is the Oxy custodial provenance signature. It is `null` only
|
|
323
380
|
* when the Oxy custodial signing key (`OXY_PRIVATE_KEY`) is unset (dev /
|
|
@@ -338,6 +395,7 @@ export interface ExportBundle {
|
|
|
338
395
|
following: string[];
|
|
339
396
|
followers: string[];
|
|
340
397
|
};
|
|
398
|
+
financial: ExportFinancialSection;
|
|
341
399
|
attestation: ExportAttestation | null;
|
|
342
400
|
proof?: ExportAttestation;
|
|
343
401
|
}
|
package/dist/types/index.d.ts
CHANGED
|
@@ -23,8 +23,8 @@ export { OXY_USER_INVALIDATION_CHANNEL, OXY_USER_CHANGE_REASONS, OXY_PUBLISHED_U
|
|
|
23
23
|
export type { OxyUserChangeReason, PublishedOxyUserChangeReason, OxyUserInvalidationEvent, } from './userInvalidation';
|
|
24
24
|
export { recommendationExcludeTypeSchema, recommendationBoostSchema, recommendationSignalWeightsSchema, recommendationRequestSchema, recommendationCountSchema, recommendationItemSchema, recommendationResponseSchema, appEndorsementInputSchema, appInterestInputSchema, appUserSignalIngestSchema, appAffinityEventTypeSchema, appAffinityEventSchema, appAffinityEventsIngestSchema, } from './recommendations';
|
|
25
25
|
export type { RecommendationExcludeType, RecommendationBoost, RecommendationSignalWeights, RecommendationRequest, RecommendationCount, RecommendationItem, RecommendationResponse, AppEndorsementInput, AppInterestInput, AppUserSignalIngest, AppAffinityEventType, AppAffinityEvent, AppAffinityEventsIngest, } from './recommendations';
|
|
26
|
-
export { verificationMethodSchema, didServiceSchema, didDocumentSchema, signedRecordEnvelopeSchema, verifiedDomainSchema, domainVerificationRequestSchema, domainVerificationInstructionsSchema, authMethodEntrySchema, authMethodsResponseSchema, exportAttestationSchema, exportBundleSchema, } from './identity';
|
|
27
|
-
export type { VerificationMethod, Secp256k1VerificationMethod, MultikeyVerificationMethod, DidService, DidDocument, SignedRecordEnvelope, VerifiedDomain, DomainVerificationRequest, DomainVerificationInstructions, AuthMethodEntry, AuthMethodsResponse, ExportAttestation, ExportBundle, } from './identity';
|
|
26
|
+
export { verificationMethodSchema, didServiceSchema, didDocumentSchema, signedRecordEnvelopeSchema, verifiedDomainSchema, domainVerificationRequestSchema, domainVerificationInstructionsSchema, authMethodEntrySchema, authMethodsResponseSchema, exportAttestationSchema, exportUsageReceiptSchema, exportLedgerEntrySchema, exportUsageReservationSchema, exportFinancialSectionSchema, exportBundleSchema, } from './identity';
|
|
27
|
+
export type { VerificationMethod, Secp256k1VerificationMethod, MultikeyVerificationMethod, DidService, DidDocument, SignedRecordEnvelope, VerifiedDomain, DomainVerificationRequest, DomainVerificationInstructions, AuthMethodEntry, AuthMethodsResponse, ExportAttestation, ExportUsageReceipt, ExportLedgerEntry, ExportUsageReservation, ExportFinancialSection, ExportBundle, } from './identity';
|
|
28
28
|
export { oxySignedRecordTypeSchema, } from './oxyRecordTypes';
|
|
29
29
|
export type { OxySignedRecordType, } from './oxyRecordTypes';
|
|
30
30
|
export { chainHeadResponseSchema, logPageResponseSchema, } from './protocol';
|
|
@@ -61,7 +61,7 @@ export type { DevicePairingStatus, DeviceTransferInitRequest, DeviceTransferInit
|
|
|
61
61
|
export { transparencyCheckpointSignatureSchema, transparencyAnchorSchema, transparencyCheckpointSchema, transparencyInclusionProofSchema, transparencyCheckpointListSchema, } from './transparency';
|
|
62
62
|
export type { TransparencyCheckpointSignature, TransparencyAnchor, TransparencyCheckpoint, TransparencyInclusionProof, TransparencyCheckpointList, } from './transparency';
|
|
63
63
|
export { INFERENCE_CONTRACT_VERSION, } from './inference/version';
|
|
64
|
-
export { oxyAccountIdSchema, delegatedUserIdSchema, oxyApplicationIdSchema, oxyCredentialIdSchema, requestIdSchema, generationIdSchema, idempotencyKeySchema, inferenceEnvironmentSchema, inferenceTimestampSchema, inferenceDateSchema, inferenceHttpsUrlSchema, publisherSlugSchema, modelSlugSchema, modelIdSchema, modelRevisionLabelSchema, modelReferenceSchema, routingProfileSlugSchema, inferenceProviderSlugSchema, deploymentIdSchema, inferenceRegionSchema, RESERVED_ALIA_PUBLISHER, } from './inference/identifiers';
|
|
64
|
+
export { oxyAccountIdSchema, delegatedUserIdSchema, oxyApplicationIdSchema, oxyCredentialIdSchema, requestIdSchema, generationIdSchema, idempotencyKeySchema, inferenceEnvironmentSchema, inferenceTimestampSchema, inferenceDateSchema, inferenceHttpsUrlSchema, sha256DigestSchema, publisherSlugSchema, modelSlugSchema, modelIdSchema, modelRevisionLabelSchema, modelReferenceSchema, routingProfileSlugSchema, inferenceProviderSlugSchema, deploymentIdSchema, inferenceRegionSchema, RESERVED_ALIA_PUBLISHER, } from './inference/identifiers';
|
|
65
65
|
export type { OxyAccountId, DelegatedUserId, InferenceEnvironment, ModelReference, ModelId, } from './inference/identifiers';
|
|
66
66
|
export { currencyCodeSchema, INFERENCE_MONEY_SCALE, exactDecimalSchema, moneySchema, USAGE_UNITS, usageUnitSchema, USAGE_SOURCES, usageSourceSchema, usageQuantitySchema, unitPriceSchema, } from './inference/money';
|
|
67
67
|
export type { CurrencyCode, ExactDecimal, Money, UsageUnit, UsageSource, UsageQuantity, UnitPrice, } from './inference/money';
|
|
@@ -73,8 +73,10 @@ export { priceVersionStatusSchema, priceVersionSchema, priceSnapshotSchema, } fr
|
|
|
73
73
|
export type { PriceVersionStatus, PriceVersion, PriceSnapshot, } from './inference/priceVersion';
|
|
74
74
|
export { inferenceModalitySchema, modelCapabilitiesSchema, modelLicenseSchema, modelProvenanceSchema, inferenceDataPolicySchema, availabilityScopeSchema, commercialPermissionSchema, modelDeprecationSchema, modelEvaluationResultSchema, modelSafetyMetadataSchema, modelPublisherSchema, catalogueModelSchema, modelRevisionSchema, inferenceProviderSchema, modelDeploymentSchema, routingProfileCandidateSchema, routingProfileSchema, cataloguePublisherSummarySchema, catalogueServingProviderSummarySchema, modelCatalogueEntrySchema, } from './inference/catalogue';
|
|
75
75
|
export type { InferenceModality, ModelCapabilities, ModelLicense, ModelProvenance, InferenceDataPolicy, AvailabilityScope, CommercialPermission, ModelDeprecation, ModelEvaluationResult, ModelSafetyMetadata, ModelPublisher, CatalogueModel, ModelRevision, InferenceProvider, ModelDeployment, RoutingProfileCandidate, RoutingProfile, CataloguePublisherSummary, CatalogueServingProviderSummary, ModelCatalogueEntry, } from './inference/catalogue';
|
|
76
|
-
export { routingTargetSchema, routingPolicyScopeSchema, routingFallbackPolicySchema, routingPolicySchema, routingPolicyReferenceSchema, } from './inference/routingPolicy';
|
|
77
|
-
export type { RoutingTarget, RoutingPolicyScope, RoutingFallbackPolicy, RoutingPolicy, RoutingPolicyReference, } from './inference/routingPolicy';
|
|
76
|
+
export { routingTargetSchema, routingPolicyScopeSchema, routingFallbackPolicySchema, routingPolicySchema, routingPolicyReferenceSchema, authorizedRouteSchema, } from './inference/routingPolicy';
|
|
77
|
+
export type { RoutingTarget, RoutingPolicyScope, RoutingFallbackPolicy, RoutingPolicy, RoutingPolicyReference, AuthorizedRoute, } from './inference/routingPolicy';
|
|
78
|
+
export { aliaReleaseArtifactSchema, aliaReleaseSignatureSchema, aliaModelReleaseManifestSchema, } from './inference/aliaModelRelease';
|
|
79
|
+
export type { AliaReleaseArtifact, AliaReleaseSignature, AliaModelReleaseManifest, } from './inference/aliaModelRelease';
|
|
78
80
|
export { inferenceContentSourceSchema, inferenceContentPartSchema, inferenceToolCallSchema, inferenceMessageRoleSchema, inferenceMessageSchema, inferenceInputSchema, samplingParametersSchema, toolDefinitionSchema, toolChoiceSchema, responseFormatSchema, clientRequestMetadataSchema, inferenceRequestSchema, } from './inference/request';
|
|
79
81
|
export type { InferenceContentSource, InferenceContentPart, InferenceToolCall, InferenceMessageRole, InferenceMessage, InferenceInput, SamplingParameters, ToolDefinition, ToolChoice, ResponseFormat, ClientRequestMetadata, InferenceRequest, } from './inference/request';
|
|
80
82
|
export { inferenceStreamStartEventSchema, inferenceStreamDeltaEventSchema, inferenceStreamToolCallEventSchema, inferenceStreamUsageEventSchema, inferenceRouteSwitchDetailSchema, inferenceRouteSwitchReasonSchema, inferenceStreamRouteSwitchEventSchema, inferenceStreamErrorEventSchema, inferenceFinishReasonSchema, inferenceStreamDoneEventSchema, inferenceStreamEventSchema, } from './inference/streamEvents';
|
|
@@ -135,8 +135,8 @@ export declare const billingProfileSchema: z.ZodObject<{
|
|
|
135
135
|
status: "active" | "suspended" | "closed";
|
|
136
136
|
accountId: string & z.BRAND<"OxyAccountId">;
|
|
137
137
|
updatedAt: string;
|
|
138
|
-
createdAt: string;
|
|
139
138
|
currency: string;
|
|
139
|
+
createdAt: string;
|
|
140
140
|
schemaVersion: 1;
|
|
141
141
|
billingMode: "prepaid" | "invoiced";
|
|
142
142
|
creditLimit: string & z.BRAND<"ExactDecimal">;
|
|
@@ -149,8 +149,8 @@ export declare const billingProfileSchema: z.ZodObject<{
|
|
|
149
149
|
status: "active" | "suspended" | "closed";
|
|
150
150
|
accountId: string;
|
|
151
151
|
updatedAt: string;
|
|
152
|
-
createdAt: string;
|
|
153
152
|
currency: string;
|
|
153
|
+
createdAt: string;
|
|
154
154
|
schemaVersion: 1;
|
|
155
155
|
billingMode: "prepaid" | "invoiced";
|
|
156
156
|
creditLimit: string;
|
|
@@ -224,8 +224,8 @@ export declare const accountBillingStateSchema: z.ZodObject<{
|
|
|
224
224
|
status: "active" | "suspended" | "closed";
|
|
225
225
|
accountId: string & z.BRAND<"OxyAccountId">;
|
|
226
226
|
updatedAt: string;
|
|
227
|
-
createdAt: string;
|
|
228
227
|
currency: string;
|
|
228
|
+
createdAt: string;
|
|
229
229
|
schemaVersion: 1;
|
|
230
230
|
billingMode: "prepaid" | "invoiced";
|
|
231
231
|
creditLimit: string & z.BRAND<"ExactDecimal">;
|
|
@@ -238,8 +238,8 @@ export declare const accountBillingStateSchema: z.ZodObject<{
|
|
|
238
238
|
status: "active" | "suspended" | "closed";
|
|
239
239
|
accountId: string;
|
|
240
240
|
updatedAt: string;
|
|
241
|
-
createdAt: string;
|
|
242
241
|
currency: string;
|
|
242
|
+
createdAt: string;
|
|
243
243
|
schemaVersion: 1;
|
|
244
244
|
billingMode: "prepaid" | "invoiced";
|
|
245
245
|
creditLimit: string;
|
|
@@ -255,8 +255,8 @@ export declare const accountBillingStateSchema: z.ZodObject<{
|
|
|
255
255
|
status: "active" | "suspended" | "closed";
|
|
256
256
|
accountId: string & z.BRAND<"OxyAccountId">;
|
|
257
257
|
updatedAt: string;
|
|
258
|
-
createdAt: string;
|
|
259
258
|
currency: string;
|
|
259
|
+
createdAt: string;
|
|
260
260
|
schemaVersion: 1;
|
|
261
261
|
billingMode: "prepaid" | "invoiced";
|
|
262
262
|
creditLimit: string & z.BRAND<"ExactDecimal">;
|
|
@@ -275,8 +275,8 @@ export declare const accountBillingStateSchema: z.ZodObject<{
|
|
|
275
275
|
status: "active" | "suspended" | "closed";
|
|
276
276
|
accountId: string;
|
|
277
277
|
updatedAt: string;
|
|
278
|
-
createdAt: string;
|
|
279
278
|
currency: string;
|
|
279
|
+
createdAt: string;
|
|
280
280
|
schemaVersion: 1;
|
|
281
281
|
billingMode: "prepaid" | "invoiced";
|
|
282
282
|
creditLimit: string;
|
|
@@ -325,8 +325,8 @@ export declare const billingInvoiceSchema: z.ZodObject<{
|
|
|
325
325
|
status: "void" | "open" | "draft" | "paid";
|
|
326
326
|
accountId: string & z.BRAND<"OxyAccountId">;
|
|
327
327
|
id: string;
|
|
328
|
-
periodEnd: string;
|
|
329
328
|
currency: string;
|
|
329
|
+
periodEnd: string;
|
|
330
330
|
schemaVersion: 1;
|
|
331
331
|
periodStart: string;
|
|
332
332
|
subtotalAmount: string & z.BRAND<"ExactDecimal">;
|
|
@@ -340,8 +340,8 @@ export declare const billingInvoiceSchema: z.ZodObject<{
|
|
|
340
340
|
status: "void" | "open" | "draft" | "paid";
|
|
341
341
|
accountId: string;
|
|
342
342
|
id: string;
|
|
343
|
-
periodEnd: string;
|
|
344
343
|
currency: string;
|
|
344
|
+
periodEnd: string;
|
|
345
345
|
schemaVersion: 1;
|
|
346
346
|
periodStart: string;
|
|
347
347
|
subtotalAmount: string;
|
|
@@ -386,10 +386,10 @@ export declare const externalPaymentSchema: z.ZodObject<{
|
|
|
386
386
|
}, "strict", z.ZodTypeAny, {
|
|
387
387
|
accountId: string & z.BRAND<"OxyAccountId">;
|
|
388
388
|
id: string;
|
|
389
|
-
|
|
389
|
+
currency: string;
|
|
390
390
|
createdAt: string;
|
|
391
|
+
occurredAt: string;
|
|
391
392
|
amount: string & z.BRAND<"ExactDecimal">;
|
|
392
|
-
currency: string;
|
|
393
393
|
provider: "stripe";
|
|
394
394
|
externalKind: "payment_intent" | "invoice";
|
|
395
395
|
externalRef: string;
|
|
@@ -397,10 +397,10 @@ export declare const externalPaymentSchema: z.ZodObject<{
|
|
|
397
397
|
}, {
|
|
398
398
|
accountId: string;
|
|
399
399
|
id: string;
|
|
400
|
-
|
|
400
|
+
currency: string;
|
|
401
401
|
createdAt: string;
|
|
402
|
+
occurredAt: string;
|
|
402
403
|
amount: string;
|
|
403
|
-
currency: string;
|
|
404
404
|
provider: "stripe";
|
|
405
405
|
externalKind: "payment_intent" | "invoice";
|
|
406
406
|
externalRef: string;
|
|
@@ -437,8 +437,8 @@ export declare const autoRechargeAttemptSchema: z.ZodObject<{
|
|
|
437
437
|
accountId: string & z.BRAND<"OxyAccountId">;
|
|
438
438
|
updatedAt: string;
|
|
439
439
|
id: string;
|
|
440
|
-
createdAt: string;
|
|
441
440
|
currency: string;
|
|
441
|
+
createdAt: string;
|
|
442
442
|
schemaVersion: 1;
|
|
443
443
|
requestedAmount: string & z.BRAND<"ExactDecimal">;
|
|
444
444
|
balanceAtTrigger: string & z.BRAND<"ExactDecimal">;
|
|
@@ -449,8 +449,8 @@ export declare const autoRechargeAttemptSchema: z.ZodObject<{
|
|
|
449
449
|
accountId: string;
|
|
450
450
|
updatedAt: string;
|
|
451
451
|
id: string;
|
|
452
|
-
createdAt: string;
|
|
453
452
|
currency: string;
|
|
453
|
+
createdAt: string;
|
|
454
454
|
schemaVersion: 1;
|
|
455
455
|
requestedAmount: string;
|
|
456
456
|
balanceAtTrigger: string;
|
|
@@ -495,8 +495,8 @@ export declare const reconciliationDiscrepancySchema: z.ZodObject<{
|
|
|
495
495
|
}, "strict", z.ZodTypeAny, {
|
|
496
496
|
kind: "missing_in_ledger" | "missing_in_external" | "amount_mismatch" | "account_unresolved";
|
|
497
497
|
id: string;
|
|
498
|
-
createdAt: string;
|
|
499
498
|
currency: string;
|
|
499
|
+
createdAt: string;
|
|
500
500
|
schemaVersion: 1;
|
|
501
501
|
runId: string;
|
|
502
502
|
accountId?: (string & z.BRAND<"OxyAccountId">) | undefined;
|
|
@@ -507,8 +507,8 @@ export declare const reconciliationDiscrepancySchema: z.ZodObject<{
|
|
|
507
507
|
}, {
|
|
508
508
|
kind: "missing_in_ledger" | "missing_in_external" | "amount_mismatch" | "account_unresolved";
|
|
509
509
|
id: string;
|
|
510
|
-
createdAt: string;
|
|
511
510
|
currency: string;
|
|
511
|
+
createdAt: string;
|
|
512
512
|
schemaVersion: 1;
|
|
513
513
|
runId: string;
|
|
514
514
|
accountId?: string | undefined;
|
|
@@ -544,8 +544,8 @@ export declare const reconciliationRunSchema: z.ZodObject<{
|
|
|
544
544
|
}, "strict", z.ZodTypeAny, {
|
|
545
545
|
status: "completed" | "failed" | "running";
|
|
546
546
|
id: string;
|
|
547
|
-
periodEnd: string;
|
|
548
547
|
currency: string;
|
|
548
|
+
periodEnd: string;
|
|
549
549
|
provider: "stripe";
|
|
550
550
|
schemaVersion: 1;
|
|
551
551
|
startedAt: string;
|
|
@@ -558,8 +558,8 @@ export declare const reconciliationRunSchema: z.ZodObject<{
|
|
|
558
558
|
}, {
|
|
559
559
|
status: "completed" | "failed" | "running";
|
|
560
560
|
id: string;
|
|
561
|
-
periodEnd: string;
|
|
562
561
|
currency: string;
|
|
562
|
+
periodEnd: string;
|
|
563
563
|
provider: "stripe";
|
|
564
564
|
schemaVersion: 1;
|
|
565
565
|
startedAt: string;
|
|
@@ -592,8 +592,8 @@ export declare const reconciliationReportSchema: z.ZodObject<{
|
|
|
592
592
|
}, "strict", z.ZodTypeAny, {
|
|
593
593
|
status: "completed" | "failed" | "running";
|
|
594
594
|
id: string;
|
|
595
|
-
periodEnd: string;
|
|
596
595
|
currency: string;
|
|
596
|
+
periodEnd: string;
|
|
597
597
|
provider: "stripe";
|
|
598
598
|
schemaVersion: 1;
|
|
599
599
|
startedAt: string;
|
|
@@ -606,8 +606,8 @@ export declare const reconciliationReportSchema: z.ZodObject<{
|
|
|
606
606
|
}, {
|
|
607
607
|
status: "completed" | "failed" | "running";
|
|
608
608
|
id: string;
|
|
609
|
-
periodEnd: string;
|
|
610
609
|
currency: string;
|
|
610
|
+
periodEnd: string;
|
|
611
611
|
provider: "stripe";
|
|
612
612
|
schemaVersion: 1;
|
|
613
613
|
startedAt: string;
|
|
@@ -636,8 +636,8 @@ export declare const reconciliationReportSchema: z.ZodObject<{
|
|
|
636
636
|
}, "strict", z.ZodTypeAny, {
|
|
637
637
|
kind: "missing_in_ledger" | "missing_in_external" | "amount_mismatch" | "account_unresolved";
|
|
638
638
|
id: string;
|
|
639
|
-
createdAt: string;
|
|
640
639
|
currency: string;
|
|
640
|
+
createdAt: string;
|
|
641
641
|
schemaVersion: 1;
|
|
642
642
|
runId: string;
|
|
643
643
|
accountId?: (string & z.BRAND<"OxyAccountId">) | undefined;
|
|
@@ -648,8 +648,8 @@ export declare const reconciliationReportSchema: z.ZodObject<{
|
|
|
648
648
|
}, {
|
|
649
649
|
kind: "missing_in_ledger" | "missing_in_external" | "amount_mismatch" | "account_unresolved";
|
|
650
650
|
id: string;
|
|
651
|
-
createdAt: string;
|
|
652
651
|
currency: string;
|
|
652
|
+
createdAt: string;
|
|
653
653
|
schemaVersion: 1;
|
|
654
654
|
runId: string;
|
|
655
655
|
accountId?: string | undefined;
|
|
@@ -663,8 +663,8 @@ export declare const reconciliationReportSchema: z.ZodObject<{
|
|
|
663
663
|
run: {
|
|
664
664
|
status: "completed" | "failed" | "running";
|
|
665
665
|
id: string;
|
|
666
|
-
periodEnd: string;
|
|
667
666
|
currency: string;
|
|
667
|
+
periodEnd: string;
|
|
668
668
|
provider: "stripe";
|
|
669
669
|
schemaVersion: 1;
|
|
670
670
|
startedAt: string;
|
|
@@ -678,8 +678,8 @@ export declare const reconciliationReportSchema: z.ZodObject<{
|
|
|
678
678
|
discrepancies: {
|
|
679
679
|
kind: "missing_in_ledger" | "missing_in_external" | "amount_mismatch" | "account_unresolved";
|
|
680
680
|
id: string;
|
|
681
|
-
createdAt: string;
|
|
682
681
|
currency: string;
|
|
682
|
+
createdAt: string;
|
|
683
683
|
schemaVersion: 1;
|
|
684
684
|
runId: string;
|
|
685
685
|
accountId?: (string & z.BRAND<"OxyAccountId">) | undefined;
|
|
@@ -693,8 +693,8 @@ export declare const reconciliationReportSchema: z.ZodObject<{
|
|
|
693
693
|
run: {
|
|
694
694
|
status: "completed" | "failed" | "running";
|
|
695
695
|
id: string;
|
|
696
|
-
periodEnd: string;
|
|
697
696
|
currency: string;
|
|
697
|
+
periodEnd: string;
|
|
698
698
|
provider: "stripe";
|
|
699
699
|
schemaVersion: 1;
|
|
700
700
|
startedAt: string;
|
|
@@ -708,8 +708,8 @@ export declare const reconciliationReportSchema: z.ZodObject<{
|
|
|
708
708
|
discrepancies: {
|
|
709
709
|
kind: "missing_in_ledger" | "missing_in_external" | "amount_mismatch" | "account_unresolved";
|
|
710
710
|
id: string;
|
|
711
|
-
createdAt: string;
|
|
712
711
|
currency: string;
|
|
712
|
+
createdAt: string;
|
|
713
713
|
schemaVersion: 1;
|
|
714
714
|
runId: string;
|
|
715
715
|
accountId?: string | undefined;
|