@oxy.so/contracts 4.24.0 → 5.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/client/index.js +15 -0
- package/dist/cjs/index.js +2 -35
- package/dist/cjs/inference/catalogue.js +2 -5
- package/dist/cjs/inference/request.js +5 -79
- package/dist/cjs/inference/version.js +1 -1
- package/dist/cjs/products/one.js +142 -0
- package/dist/esm/client/index.js +1 -0
- package/dist/esm/index.js +1 -5
- package/dist/esm/inference/catalogue.js +0 -3
- package/dist/esm/inference/request.js +4 -78
- package/dist/esm/inference/version.js +1 -1
- package/dist/esm/products/one.js +137 -0
- package/dist/types/client/index.d.ts +1 -0
- package/dist/types/index.d.ts +1 -10
- package/dist/types/inference/catalogue.d.ts +4 -194
- package/dist/types/inference/economics.d.ts +2 -2
- package/dist/types/inference/realtime.d.ts +88 -88
- package/dist/types/inference/request.d.ts +28 -5055
- package/dist/types/inference/routingPolicy.d.ts +16 -16
- package/dist/types/inference/streamEvents.d.ts +8 -8
- package/dist/types/inference/usage.d.ts +4 -4
- package/dist/types/inference/version.d.ts +1 -1
- package/dist/types/products/one.d.ts +250 -0
- package/dist/types/safety.d.ts +10 -10
- package/package.json +1 -1
- package/dist/cjs/inference/decisions.js +0 -305
- package/dist/cjs/inference/privateAutoExecution.js +0 -153
- package/dist/cjs/inference/scopedExecution.js +0 -87
- package/dist/esm/inference/decisions.js +0 -299
- package/dist/esm/inference/privateAutoExecution.js +0 -149
- package/dist/esm/inference/scopedExecution.js +0 -83
- package/dist/types/inference/decisions.d.ts +0 -1853
- package/dist/types/inference/privateAutoExecution.d.ts +0 -694
- package/dist/types/inference/scopedExecution.d.ts +0 -202
|
@@ -263,10 +263,10 @@ export declare const routingPolicySchema: z.ZodEffects<z.ZodObject<{
|
|
|
263
263
|
accountId: string & z.BRAND<"OxyAccountId">;
|
|
264
264
|
applicationId: string;
|
|
265
265
|
};
|
|
266
|
-
routingPolicyId: string;
|
|
267
|
-
policyVersion: number;
|
|
268
266
|
dedicatedCapacity: "disabled" | "prefer" | "require";
|
|
269
267
|
optimiseFor: "price" | "latency" | "throughput" | "balanced";
|
|
268
|
+
routingPolicyId: string;
|
|
269
|
+
policyVersion: number;
|
|
270
270
|
providerAllowlist: string[];
|
|
271
271
|
providerDenylist: string[];
|
|
272
272
|
allowedRegions: string[];
|
|
@@ -311,10 +311,10 @@ export declare const routingPolicySchema: z.ZodEffects<z.ZodObject<{
|
|
|
311
311
|
accountId: string;
|
|
312
312
|
applicationId: string;
|
|
313
313
|
};
|
|
314
|
-
routingPolicyId: string;
|
|
315
|
-
policyVersion: number;
|
|
316
314
|
dedicatedCapacity: "disabled" | "prefer" | "require";
|
|
317
315
|
optimiseFor: "price" | "latency" | "throughput" | "balanced";
|
|
316
|
+
routingPolicyId: string;
|
|
317
|
+
policyVersion: number;
|
|
318
318
|
requireZeroDataRetention: boolean;
|
|
319
319
|
prohibitTrainingOnCustomerData: boolean;
|
|
320
320
|
oxyHostedOnly: boolean;
|
|
@@ -359,10 +359,10 @@ export declare const routingPolicySchema: z.ZodEffects<z.ZodObject<{
|
|
|
359
359
|
accountId: string & z.BRAND<"OxyAccountId">;
|
|
360
360
|
applicationId: string;
|
|
361
361
|
};
|
|
362
|
-
routingPolicyId: string;
|
|
363
|
-
policyVersion: number;
|
|
364
362
|
dedicatedCapacity: "disabled" | "prefer" | "require";
|
|
365
363
|
optimiseFor: "price" | "latency" | "throughput" | "balanced";
|
|
364
|
+
routingPolicyId: string;
|
|
365
|
+
policyVersion: number;
|
|
366
366
|
providerAllowlist: string[];
|
|
367
367
|
providerDenylist: string[];
|
|
368
368
|
allowedRegions: string[];
|
|
@@ -407,10 +407,10 @@ export declare const routingPolicySchema: z.ZodEffects<z.ZodObject<{
|
|
|
407
407
|
accountId: string;
|
|
408
408
|
applicationId: string;
|
|
409
409
|
};
|
|
410
|
-
routingPolicyId: string;
|
|
411
|
-
policyVersion: number;
|
|
412
410
|
dedicatedCapacity: "disabled" | "prefer" | "require";
|
|
413
411
|
optimiseFor: "price" | "latency" | "throughput" | "balanced";
|
|
412
|
+
routingPolicyId: string;
|
|
413
|
+
policyVersion: number;
|
|
414
414
|
requireZeroDataRetention: boolean;
|
|
415
415
|
prohibitTrainingOnCustomerData: boolean;
|
|
416
416
|
oxyHostedOnly: boolean;
|
|
@@ -510,8 +510,8 @@ export declare const authorizedRouteSchema: z.ZodEffects<z.ZodDiscriminatedUnion
|
|
|
510
510
|
}, "strict", z.ZodTypeAny, {
|
|
511
511
|
provider: string;
|
|
512
512
|
modelReference: string;
|
|
513
|
-
deploymentId: string;
|
|
514
513
|
regions: string[];
|
|
514
|
+
deploymentId: string;
|
|
515
515
|
substitution: "same_model";
|
|
516
516
|
maxFundingTier?: "free" | "credit" | "paid" | undefined;
|
|
517
517
|
customerProviderCredential?: {
|
|
@@ -524,8 +524,8 @@ export declare const authorizedRouteSchema: z.ZodEffects<z.ZodDiscriminatedUnion
|
|
|
524
524
|
}, {
|
|
525
525
|
provider: string;
|
|
526
526
|
modelReference: string;
|
|
527
|
-
deploymentId: string;
|
|
528
527
|
regions: string[];
|
|
528
|
+
deploymentId: string;
|
|
529
529
|
substitution: "same_model";
|
|
530
530
|
maxFundingTier?: "free" | "credit" | "paid" | undefined;
|
|
531
531
|
customerProviderCredential?: {
|
|
@@ -566,8 +566,8 @@ export declare const authorizedRouteSchema: z.ZodEffects<z.ZodDiscriminatedUnion
|
|
|
566
566
|
}, "strict", z.ZodTypeAny, {
|
|
567
567
|
provider: string;
|
|
568
568
|
modelReference: string;
|
|
569
|
-
deploymentId: string;
|
|
570
569
|
regions: string[];
|
|
570
|
+
deploymentId: string;
|
|
571
571
|
substitution: "cross_model";
|
|
572
572
|
authorizedByPolicy: true;
|
|
573
573
|
maxFundingTier?: "free" | "credit" | "paid" | undefined;
|
|
@@ -581,8 +581,8 @@ export declare const authorizedRouteSchema: z.ZodEffects<z.ZodDiscriminatedUnion
|
|
|
581
581
|
}, {
|
|
582
582
|
provider: string;
|
|
583
583
|
modelReference: string;
|
|
584
|
-
deploymentId: string;
|
|
585
584
|
regions: string[];
|
|
585
|
+
deploymentId: string;
|
|
586
586
|
substitution: "cross_model";
|
|
587
587
|
authorizedByPolicy: true;
|
|
588
588
|
maxFundingTier?: "free" | "credit" | "paid" | undefined;
|
|
@@ -596,8 +596,8 @@ export declare const authorizedRouteSchema: z.ZodEffects<z.ZodDiscriminatedUnion
|
|
|
596
596
|
}>]>, {
|
|
597
597
|
provider: string;
|
|
598
598
|
modelReference: string;
|
|
599
|
-
deploymentId: string;
|
|
600
599
|
regions: string[];
|
|
600
|
+
deploymentId: string;
|
|
601
601
|
substitution: "same_model";
|
|
602
602
|
maxFundingTier?: "free" | "credit" | "paid" | undefined;
|
|
603
603
|
customerProviderCredential?: {
|
|
@@ -610,8 +610,8 @@ export declare const authorizedRouteSchema: z.ZodEffects<z.ZodDiscriminatedUnion
|
|
|
610
610
|
} | {
|
|
611
611
|
provider: string;
|
|
612
612
|
modelReference: string;
|
|
613
|
-
deploymentId: string;
|
|
614
613
|
regions: string[];
|
|
614
|
+
deploymentId: string;
|
|
615
615
|
substitution: "cross_model";
|
|
616
616
|
authorizedByPolicy: true;
|
|
617
617
|
maxFundingTier?: "free" | "credit" | "paid" | undefined;
|
|
@@ -625,8 +625,8 @@ export declare const authorizedRouteSchema: z.ZodEffects<z.ZodDiscriminatedUnion
|
|
|
625
625
|
}, {
|
|
626
626
|
provider: string;
|
|
627
627
|
modelReference: string;
|
|
628
|
-
deploymentId: string;
|
|
629
628
|
regions: string[];
|
|
629
|
+
deploymentId: string;
|
|
630
630
|
substitution: "same_model";
|
|
631
631
|
maxFundingTier?: "free" | "credit" | "paid" | undefined;
|
|
632
632
|
customerProviderCredential?: {
|
|
@@ -639,8 +639,8 @@ export declare const authorizedRouteSchema: z.ZodEffects<z.ZodDiscriminatedUnion
|
|
|
639
639
|
} | {
|
|
640
640
|
provider: string;
|
|
641
641
|
modelReference: string;
|
|
642
|
-
deploymentId: string;
|
|
643
642
|
regions: string[];
|
|
643
|
+
deploymentId: string;
|
|
644
644
|
substitution: "cross_model";
|
|
645
645
|
authorizedByPolicy: true;
|
|
646
646
|
maxFundingTier?: "free" | "credit" | "paid" | undefined;
|
|
@@ -46,8 +46,8 @@ export declare const inferenceStreamStartEventSchema: z.ZodObject<{
|
|
|
46
46
|
requestId: string;
|
|
47
47
|
resolvedModelReference: string;
|
|
48
48
|
servingProvider: string;
|
|
49
|
-
startedAt: string;
|
|
50
49
|
sequence: number;
|
|
50
|
+
startedAt: string;
|
|
51
51
|
generationId?: string | undefined;
|
|
52
52
|
}, {
|
|
53
53
|
type: "start";
|
|
@@ -55,8 +55,8 @@ export declare const inferenceStreamStartEventSchema: z.ZodObject<{
|
|
|
55
55
|
requestId: string;
|
|
56
56
|
resolvedModelReference: string;
|
|
57
57
|
servingProvider: string;
|
|
58
|
-
startedAt: string;
|
|
59
58
|
sequence: number;
|
|
59
|
+
startedAt: string;
|
|
60
60
|
generationId?: string | undefined;
|
|
61
61
|
}>;
|
|
62
62
|
/**
|
|
@@ -225,23 +225,23 @@ export declare const inferenceStreamUsageEventSchema: z.ZodObject<{
|
|
|
225
225
|
schemaVersion: 2;
|
|
226
226
|
requestId: string;
|
|
227
227
|
deploymentId: string;
|
|
228
|
+
sequence: number;
|
|
228
229
|
units: {
|
|
229
230
|
unit: "input_tokens" | "cached_input_tokens" | "output_tokens" | "reasoning_tokens" | "requests" | "images" | "audio_input_milliseconds" | "audio_output_milliseconds" | "video_milliseconds" | "characters" | "embeddings" | "audio_input_tokens" | "cached_audio_input_tokens" | "audio_output_tokens" | "session_milliseconds" | "input_transcription_milliseconds";
|
|
230
231
|
quantity: number;
|
|
231
232
|
}[];
|
|
232
233
|
usageSource: "provider_reported" | "oxy_measured" | "estimated";
|
|
233
|
-
sequence: number;
|
|
234
234
|
}, {
|
|
235
235
|
type: "usage";
|
|
236
236
|
schemaVersion: 2;
|
|
237
237
|
requestId: string;
|
|
238
238
|
deploymentId: string;
|
|
239
|
+
sequence: number;
|
|
239
240
|
units: {
|
|
240
241
|
unit: "input_tokens" | "cached_input_tokens" | "output_tokens" | "reasoning_tokens" | "requests" | "images" | "audio_input_milliseconds" | "audio_output_milliseconds" | "video_milliseconds" | "characters" | "embeddings" | "audio_input_tokens" | "cached_audio_input_tokens" | "audio_output_tokens" | "session_milliseconds" | "input_transcription_milliseconds";
|
|
241
242
|
quantity: number;
|
|
242
243
|
}[];
|
|
243
244
|
usageSource: "provider_reported" | "oxy_measured" | "estimated";
|
|
244
|
-
sequence: number;
|
|
245
245
|
}>;
|
|
246
246
|
/**
|
|
247
247
|
* What kind of re-route happened.
|
|
@@ -609,8 +609,8 @@ export declare const inferenceStreamEventSchema: z.ZodDiscriminatedUnion<"type",
|
|
|
609
609
|
requestId: string;
|
|
610
610
|
resolvedModelReference: string;
|
|
611
611
|
servingProvider: string;
|
|
612
|
-
startedAt: string;
|
|
613
612
|
sequence: number;
|
|
613
|
+
startedAt: string;
|
|
614
614
|
generationId?: string | undefined;
|
|
615
615
|
}, {
|
|
616
616
|
type: "start";
|
|
@@ -618,8 +618,8 @@ export declare const inferenceStreamEventSchema: z.ZodDiscriminatedUnion<"type",
|
|
|
618
618
|
requestId: string;
|
|
619
619
|
resolvedModelReference: string;
|
|
620
620
|
servingProvider: string;
|
|
621
|
-
startedAt: string;
|
|
622
621
|
sequence: number;
|
|
622
|
+
startedAt: string;
|
|
623
623
|
generationId?: string | undefined;
|
|
624
624
|
}>, z.ZodObject<{
|
|
625
625
|
/** See `version.ts`: each stream event is a whole message on the wire. */
|
|
@@ -730,23 +730,23 @@ export declare const inferenceStreamEventSchema: z.ZodDiscriminatedUnion<"type",
|
|
|
730
730
|
schemaVersion: 2;
|
|
731
731
|
requestId: string;
|
|
732
732
|
deploymentId: string;
|
|
733
|
+
sequence: number;
|
|
733
734
|
units: {
|
|
734
735
|
unit: "input_tokens" | "cached_input_tokens" | "output_tokens" | "reasoning_tokens" | "requests" | "images" | "audio_input_milliseconds" | "audio_output_milliseconds" | "video_milliseconds" | "characters" | "embeddings" | "audio_input_tokens" | "cached_audio_input_tokens" | "audio_output_tokens" | "session_milliseconds" | "input_transcription_milliseconds";
|
|
735
736
|
quantity: number;
|
|
736
737
|
}[];
|
|
737
738
|
usageSource: "provider_reported" | "oxy_measured" | "estimated";
|
|
738
|
-
sequence: number;
|
|
739
739
|
}, {
|
|
740
740
|
type: "usage";
|
|
741
741
|
schemaVersion: 2;
|
|
742
742
|
requestId: string;
|
|
743
743
|
deploymentId: string;
|
|
744
|
+
sequence: number;
|
|
744
745
|
units: {
|
|
745
746
|
unit: "input_tokens" | "cached_input_tokens" | "output_tokens" | "reasoning_tokens" | "requests" | "images" | "audio_input_milliseconds" | "audio_output_milliseconds" | "video_milliseconds" | "characters" | "embeddings" | "audio_input_tokens" | "cached_audio_input_tokens" | "audio_output_tokens" | "session_milliseconds" | "input_transcription_milliseconds";
|
|
746
747
|
quantity: number;
|
|
747
748
|
}[];
|
|
748
749
|
usageSource: "provider_reported" | "oxy_measured" | "estimated";
|
|
749
|
-
sequence: number;
|
|
750
750
|
}>, z.ZodObject<{
|
|
751
751
|
/** See `version.ts`: each stream event is a whole message on the wire. */
|
|
752
752
|
schemaVersion: z.ZodLiteral<1>;
|
|
@@ -517,13 +517,13 @@ export declare const normalizedUsageReportSchema: z.ZodEffects<z.ZodObject<{
|
|
|
517
517
|
};
|
|
518
518
|
deploymentId: string;
|
|
519
519
|
completedAt: string;
|
|
520
|
+
startedAt: string;
|
|
520
521
|
units: {
|
|
521
522
|
unit: "input_tokens" | "cached_input_tokens" | "output_tokens" | "reasoning_tokens" | "requests" | "images" | "audio_input_milliseconds" | "audio_output_milliseconds" | "video_milliseconds" | "characters" | "embeddings" | "audio_input_tokens" | "cached_audio_input_tokens" | "audio_output_tokens" | "session_milliseconds" | "input_transcription_milliseconds";
|
|
522
523
|
quantity: number;
|
|
523
524
|
}[];
|
|
524
525
|
usageSource: "provider_reported" | "oxy_measured" | "estimated";
|
|
525
526
|
routeSwitches: number;
|
|
526
|
-
startedAt: string;
|
|
527
527
|
generationId?: string | undefined;
|
|
528
528
|
fundingTier?: "free" | "credit" | "paid" | undefined;
|
|
529
529
|
timeToFirstTokenMs?: number | undefined;
|
|
@@ -549,13 +549,13 @@ export declare const normalizedUsageReportSchema: z.ZodEffects<z.ZodObject<{
|
|
|
549
549
|
};
|
|
550
550
|
deploymentId: string;
|
|
551
551
|
completedAt: string;
|
|
552
|
+
startedAt: string;
|
|
552
553
|
units: {
|
|
553
554
|
unit: "input_tokens" | "cached_input_tokens" | "output_tokens" | "reasoning_tokens" | "requests" | "images" | "audio_input_milliseconds" | "audio_output_milliseconds" | "video_milliseconds" | "characters" | "embeddings" | "audio_input_tokens" | "cached_audio_input_tokens" | "audio_output_tokens" | "session_milliseconds" | "input_transcription_milliseconds";
|
|
554
555
|
quantity: number;
|
|
555
556
|
}[];
|
|
556
557
|
usageSource: "provider_reported" | "oxy_measured" | "estimated";
|
|
557
558
|
routeSwitches: number;
|
|
558
|
-
startedAt: string;
|
|
559
559
|
generationId?: string | undefined;
|
|
560
560
|
fundingTier?: "free" | "credit" | "paid" | undefined;
|
|
561
561
|
timeToFirstTokenMs?: number | undefined;
|
|
@@ -581,13 +581,13 @@ export declare const normalizedUsageReportSchema: z.ZodEffects<z.ZodObject<{
|
|
|
581
581
|
};
|
|
582
582
|
deploymentId: string;
|
|
583
583
|
completedAt: string;
|
|
584
|
+
startedAt: string;
|
|
584
585
|
units: {
|
|
585
586
|
unit: "input_tokens" | "cached_input_tokens" | "output_tokens" | "reasoning_tokens" | "requests" | "images" | "audio_input_milliseconds" | "audio_output_milliseconds" | "video_milliseconds" | "characters" | "embeddings" | "audio_input_tokens" | "cached_audio_input_tokens" | "audio_output_tokens" | "session_milliseconds" | "input_transcription_milliseconds";
|
|
586
587
|
quantity: number;
|
|
587
588
|
}[];
|
|
588
589
|
usageSource: "provider_reported" | "oxy_measured" | "estimated";
|
|
589
590
|
routeSwitches: number;
|
|
590
|
-
startedAt: string;
|
|
591
591
|
generationId?: string | undefined;
|
|
592
592
|
fundingTier?: "free" | "credit" | "paid" | undefined;
|
|
593
593
|
timeToFirstTokenMs?: number | undefined;
|
|
@@ -613,13 +613,13 @@ export declare const normalizedUsageReportSchema: z.ZodEffects<z.ZodObject<{
|
|
|
613
613
|
};
|
|
614
614
|
deploymentId: string;
|
|
615
615
|
completedAt: string;
|
|
616
|
+
startedAt: string;
|
|
616
617
|
units: {
|
|
617
618
|
unit: "input_tokens" | "cached_input_tokens" | "output_tokens" | "reasoning_tokens" | "requests" | "images" | "audio_input_milliseconds" | "audio_output_milliseconds" | "video_milliseconds" | "characters" | "embeddings" | "audio_input_tokens" | "cached_audio_input_tokens" | "audio_output_tokens" | "session_milliseconds" | "input_transcription_milliseconds";
|
|
618
619
|
quantity: number;
|
|
619
620
|
}[];
|
|
620
621
|
usageSource: "provider_reported" | "oxy_measured" | "estimated";
|
|
621
622
|
routeSwitches: number;
|
|
622
|
-
startedAt: string;
|
|
623
623
|
generationId?: string | undefined;
|
|
624
624
|
fundingTier?: "free" | "credit" | "paid" | undefined;
|
|
625
625
|
timeToFirstTokenMs?: number | undefined;
|
|
@@ -99,4 +99,4 @@
|
|
|
99
99
|
* change to, say, the catalogue reject every in-flight inference request; the
|
|
100
100
|
* per-shape `schemaVersion` is what a message is validated against.
|
|
101
101
|
*/
|
|
102
|
-
export declare const INFERENCE_CONTRACT_VERSION = "
|
|
102
|
+
export declare const INFERENCE_CONTRACT_VERSION = "4.0.0";
|
|
@@ -0,0 +1,250 @@
|
|
|
1
|
+
/** Oxy One commercial catalogue. Source: website /one, approved by Nate 2026-10-17.
|
|
2
|
+
* Display terms do not grant access: fulfillment requires verified provider evidence. */
|
|
3
|
+
export type PersonalPlanMode = 'individual' | 'family';
|
|
4
|
+
export type OneAudience = 'personal' | 'creator' | 'business';
|
|
5
|
+
export interface OnePlan {
|
|
6
|
+
name: string;
|
|
7
|
+
monthlyPrice: number;
|
|
8
|
+
monthlyCredits: number;
|
|
9
|
+
creditDiscount: number;
|
|
10
|
+
/** Proposed shared storage in GB; does not provision a backend quota. */
|
|
11
|
+
storageGB: number;
|
|
12
|
+
storagePerSeatGB?: number;
|
|
13
|
+
monthlySeatPrice?: number;
|
|
14
|
+
creditsPerSeat?: number;
|
|
15
|
+
}
|
|
16
|
+
export declare const OXY_ONE_ANNUAL_DISCOUNT = 20;
|
|
17
|
+
export declare const OXY_ONE_FAMILY_MEMBERS = 6;
|
|
18
|
+
export declare const OXY_ONE_AUDIENCE_THEMES: {
|
|
19
|
+
readonly personal: "one-plans-theme";
|
|
20
|
+
readonly creator: "one-creator-theme";
|
|
21
|
+
readonly business: "one-professional-theme";
|
|
22
|
+
};
|
|
23
|
+
/** Approved prices and credits; proposed storage capacities for the bundle design.
|
|
24
|
+
* USD minor units; credits renew monthly even on annual plans. Free 2 GB and Go 20 GB follow
|
|
25
|
+
* the new product direction; existing backend quotas are not changed here. */
|
|
26
|
+
export declare const OXY_ONE_PERSONAL_PLANS: {
|
|
27
|
+
readonly Free: {
|
|
28
|
+
readonly monthlyPrice: 0;
|
|
29
|
+
readonly monthlyCredits: 0;
|
|
30
|
+
readonly creditDiscount: 0;
|
|
31
|
+
readonly storageGB: 2;
|
|
32
|
+
};
|
|
33
|
+
readonly Go: {
|
|
34
|
+
readonly monthlyPrice: 1500;
|
|
35
|
+
readonly monthlyCredits: 4000;
|
|
36
|
+
readonly creditDiscount: 5;
|
|
37
|
+
readonly storageGB: 20;
|
|
38
|
+
};
|
|
39
|
+
readonly Pro: {
|
|
40
|
+
readonly monthlyPrice: 2999;
|
|
41
|
+
readonly monthlyCredits: 10000;
|
|
42
|
+
readonly creditDiscount: 10;
|
|
43
|
+
readonly storageGB: 100;
|
|
44
|
+
};
|
|
45
|
+
readonly Max: {
|
|
46
|
+
readonly monthlyPrice: 9900;
|
|
47
|
+
readonly monthlyCredits: 50000;
|
|
48
|
+
readonly creditDiscount: 15;
|
|
49
|
+
readonly storageGB: 500;
|
|
50
|
+
};
|
|
51
|
+
readonly Ultra: {
|
|
52
|
+
readonly monthlyPrice: 40000;
|
|
53
|
+
readonly monthlyCredits: 200000;
|
|
54
|
+
readonly creditDiscount: 20;
|
|
55
|
+
readonly storageGB: 2000;
|
|
56
|
+
};
|
|
57
|
+
};
|
|
58
|
+
/** A family quota belongs to the whole group, never multiplied by member count. */
|
|
59
|
+
export declare const OXY_ONE_FAMILY_PLANS: {
|
|
60
|
+
readonly Go: {
|
|
61
|
+
readonly monthlyPrice: 2500;
|
|
62
|
+
readonly monthlyCredits: 8000;
|
|
63
|
+
readonly creditDiscount: 5;
|
|
64
|
+
readonly storageGB: 40;
|
|
65
|
+
};
|
|
66
|
+
readonly Pro: {
|
|
67
|
+
readonly monthlyPrice: 4900;
|
|
68
|
+
readonly monthlyCredits: 20000;
|
|
69
|
+
readonly creditDiscount: 10;
|
|
70
|
+
readonly storageGB: 200;
|
|
71
|
+
};
|
|
72
|
+
readonly Max: {
|
|
73
|
+
readonly monthlyPrice: 16900;
|
|
74
|
+
readonly monthlyCredits: 100000;
|
|
75
|
+
readonly creditDiscount: 15;
|
|
76
|
+
readonly storageGB: 1000;
|
|
77
|
+
};
|
|
78
|
+
readonly Ultra: {
|
|
79
|
+
readonly monthlyPrice: 59900;
|
|
80
|
+
readonly monthlyCredits: 300000;
|
|
81
|
+
readonly creditDiscount: 20;
|
|
82
|
+
readonly storageGB: 4000;
|
|
83
|
+
};
|
|
84
|
+
};
|
|
85
|
+
export declare const OXY_ONE_BUSINESS_PLANS: {
|
|
86
|
+
readonly Go: {
|
|
87
|
+
readonly monthlyPrice: 3900;
|
|
88
|
+
readonly monthlySeatPrice: 900;
|
|
89
|
+
readonly monthlyCredits: 8000;
|
|
90
|
+
readonly creditsPerSeat: 2000;
|
|
91
|
+
readonly creditDiscount: 15;
|
|
92
|
+
readonly storageGB: 20;
|
|
93
|
+
readonly storagePerSeatGB: 5;
|
|
94
|
+
};
|
|
95
|
+
readonly Pro: {
|
|
96
|
+
readonly monthlyPrice: 9999;
|
|
97
|
+
readonly monthlySeatPrice: 1900;
|
|
98
|
+
readonly monthlyCredits: 25000;
|
|
99
|
+
readonly creditsPerSeat: 5000;
|
|
100
|
+
readonly creditDiscount: 25;
|
|
101
|
+
readonly storageGB: 100;
|
|
102
|
+
readonly storagePerSeatGB: 10;
|
|
103
|
+
};
|
|
104
|
+
readonly Max: {
|
|
105
|
+
readonly monthlyPrice: 19900;
|
|
106
|
+
readonly monthlySeatPrice: 2900;
|
|
107
|
+
readonly monthlyCredits: 60000;
|
|
108
|
+
readonly creditsPerSeat: 8000;
|
|
109
|
+
readonly creditDiscount: 30;
|
|
110
|
+
readonly storageGB: 500;
|
|
111
|
+
readonly storagePerSeatGB: 25;
|
|
112
|
+
};
|
|
113
|
+
readonly Ultra: {
|
|
114
|
+
readonly monthlyPrice: 59900;
|
|
115
|
+
readonly monthlySeatPrice: 4900;
|
|
116
|
+
readonly monthlyCredits: 200000;
|
|
117
|
+
readonly creditsPerSeat: 15000;
|
|
118
|
+
readonly creditDiscount: 35;
|
|
119
|
+
readonly storageGB: 2000;
|
|
120
|
+
readonly storagePerSeatGB: 50;
|
|
121
|
+
};
|
|
122
|
+
};
|
|
123
|
+
/** Verification, basic app access and model access are not subscription gates. */
|
|
124
|
+
export declare const OXY_ONE_CREATOR_PLANS: {
|
|
125
|
+
readonly Go: {
|
|
126
|
+
readonly monthlyPrice: 2900;
|
|
127
|
+
readonly monthlyCredits: 10000;
|
|
128
|
+
readonly creditDiscount: 10;
|
|
129
|
+
readonly storageGB: 20;
|
|
130
|
+
};
|
|
131
|
+
readonly Pro: {
|
|
132
|
+
readonly monthlyPrice: 6900;
|
|
133
|
+
readonly monthlyCredits: 25000;
|
|
134
|
+
readonly creditDiscount: 15;
|
|
135
|
+
readonly storageGB: 100;
|
|
136
|
+
};
|
|
137
|
+
readonly Max: {
|
|
138
|
+
readonly monthlyPrice: 14900;
|
|
139
|
+
readonly monthlyCredits: 60000;
|
|
140
|
+
readonly creditDiscount: 20;
|
|
141
|
+
readonly storageGB: 500;
|
|
142
|
+
};
|
|
143
|
+
readonly Ultra: {
|
|
144
|
+
readonly monthlyPrice: 49900;
|
|
145
|
+
readonly monthlyCredits: 250000;
|
|
146
|
+
readonly creditDiscount: 25;
|
|
147
|
+
readonly storageGB: 2000;
|
|
148
|
+
};
|
|
149
|
+
};
|
|
150
|
+
export declare function getOnePlans(audience: OneAudience, mode?: PersonalPlanMode): OnePlan[];
|
|
151
|
+
/** Each product owns its tier names; an Oxy One level selects an app subscription.
|
|
152
|
+
* Bundle inclusion is a proposal and does not activate product entitlements. */
|
|
153
|
+
export declare const OXY_ONE_APP_SUBSCRIPTIONS: {
|
|
154
|
+
readonly alia: {
|
|
155
|
+
readonly name: "Alia";
|
|
156
|
+
readonly tiers: {
|
|
157
|
+
readonly Free: null;
|
|
158
|
+
readonly Go: "Go";
|
|
159
|
+
readonly Pro: "Pro";
|
|
160
|
+
readonly Max: "Max";
|
|
161
|
+
readonly Ultra: "Ultra";
|
|
162
|
+
};
|
|
163
|
+
};
|
|
164
|
+
readonly mention: {
|
|
165
|
+
readonly name: "Mention";
|
|
166
|
+
readonly tiers: {
|
|
167
|
+
readonly Free: null;
|
|
168
|
+
readonly Go: "Plus";
|
|
169
|
+
readonly Pro: "Plus";
|
|
170
|
+
readonly Max: "Plus";
|
|
171
|
+
readonly Ultra: "Plus";
|
|
172
|
+
};
|
|
173
|
+
};
|
|
174
|
+
readonly mercaria: {
|
|
175
|
+
readonly name: "Mercaria";
|
|
176
|
+
readonly tiers: {
|
|
177
|
+
readonly Free: null;
|
|
178
|
+
readonly Go: "Go";
|
|
179
|
+
readonly Pro: "Plus";
|
|
180
|
+
readonly Max: "Plus";
|
|
181
|
+
readonly Ultra: "Ultra";
|
|
182
|
+
};
|
|
183
|
+
readonly creatorTiers: {
|
|
184
|
+
readonly Free: null;
|
|
185
|
+
readonly Go: "Creator";
|
|
186
|
+
readonly Pro: "Creator";
|
|
187
|
+
readonly Max: "Creator";
|
|
188
|
+
readonly Ultra: "Creator";
|
|
189
|
+
};
|
|
190
|
+
};
|
|
191
|
+
readonly noted: {
|
|
192
|
+
readonly name: "Noted";
|
|
193
|
+
readonly tiers: {
|
|
194
|
+
readonly Free: null;
|
|
195
|
+
readonly Go: "+";
|
|
196
|
+
readonly Pro: "+";
|
|
197
|
+
readonly Max: "+";
|
|
198
|
+
readonly Ultra: "+";
|
|
199
|
+
};
|
|
200
|
+
};
|
|
201
|
+
readonly clarity: {
|
|
202
|
+
readonly name: "Clarity";
|
|
203
|
+
readonly tiers: {
|
|
204
|
+
readonly Free: null;
|
|
205
|
+
readonly Go: null;
|
|
206
|
+
readonly Pro: "Plus";
|
|
207
|
+
readonly Max: "Plus";
|
|
208
|
+
readonly Ultra: "Plus";
|
|
209
|
+
};
|
|
210
|
+
};
|
|
211
|
+
readonly schedio: {
|
|
212
|
+
readonly name: "Schedio";
|
|
213
|
+
readonly tiers: {
|
|
214
|
+
readonly Free: null;
|
|
215
|
+
readonly Go: null;
|
|
216
|
+
readonly Pro: "Plus";
|
|
217
|
+
readonly Max: "Plus";
|
|
218
|
+
readonly Ultra: "Plus";
|
|
219
|
+
};
|
|
220
|
+
};
|
|
221
|
+
readonly inbox: {
|
|
222
|
+
readonly name: "Inbox";
|
|
223
|
+
readonly tiers: {
|
|
224
|
+
readonly Free: null;
|
|
225
|
+
readonly Go: null;
|
|
226
|
+
readonly Pro: "Plus";
|
|
227
|
+
readonly Max: "Plus";
|
|
228
|
+
readonly Ultra: "Plus";
|
|
229
|
+
};
|
|
230
|
+
};
|
|
231
|
+
readonly homiio: {
|
|
232
|
+
readonly name: "Homiio";
|
|
233
|
+
readonly tiers: {
|
|
234
|
+
readonly Free: null;
|
|
235
|
+
readonly Go: "Plus";
|
|
236
|
+
readonly Pro: "Plus";
|
|
237
|
+
readonly Max: "Plus";
|
|
238
|
+
readonly Ultra: "Plus";
|
|
239
|
+
};
|
|
240
|
+
};
|
|
241
|
+
};
|
|
242
|
+
/** Annual rounding follows the billable base and per-seat line items. */
|
|
243
|
+
export declare function onePlanQuote(plan: OnePlan, period: 'monthly' | 'annual', seats: number | undefined): {
|
|
244
|
+
baseMonthly: number;
|
|
245
|
+
seatMonthly: number | undefined;
|
|
246
|
+
totalMonthly: number | undefined;
|
|
247
|
+
totalAnnual: number | undefined;
|
|
248
|
+
storageGB: number | undefined;
|
|
249
|
+
monthlyCredits: number | undefined;
|
|
250
|
+
};
|
package/dist/types/safety.d.ts
CHANGED
|
@@ -278,6 +278,7 @@ export declare const publicationPoliciesResponseSchema: z.ZodObject<{
|
|
|
278
278
|
federationAllowed: boolean;
|
|
279
279
|
}>;
|
|
280
280
|
}, "strict", z.ZodTypeAny, {
|
|
281
|
+
authorAccountId: string;
|
|
281
282
|
policy: {
|
|
282
283
|
policyVersion: "2";
|
|
283
284
|
publicationAllowed: boolean;
|
|
@@ -285,8 +286,8 @@ export declare const publicationPoliciesResponseSchema: z.ZodObject<{
|
|
|
285
286
|
collaborationAllowed: boolean;
|
|
286
287
|
federationAllowed: boolean;
|
|
287
288
|
};
|
|
288
|
-
authorAccountId: string;
|
|
289
289
|
}, {
|
|
290
|
+
authorAccountId: string;
|
|
290
291
|
policy: {
|
|
291
292
|
policyVersion: "2";
|
|
292
293
|
publicationAllowed: boolean;
|
|
@@ -294,10 +295,10 @@ export declare const publicationPoliciesResponseSchema: z.ZodObject<{
|
|
|
294
295
|
collaborationAllowed: boolean;
|
|
295
296
|
federationAllowed: boolean;
|
|
296
297
|
};
|
|
297
|
-
authorAccountId: string;
|
|
298
298
|
}>, "many">;
|
|
299
299
|
}, "strict", z.ZodTypeAny, {
|
|
300
300
|
items: {
|
|
301
|
+
authorAccountId: string;
|
|
301
302
|
policy: {
|
|
302
303
|
policyVersion: "2";
|
|
303
304
|
publicationAllowed: boolean;
|
|
@@ -305,10 +306,10 @@ export declare const publicationPoliciesResponseSchema: z.ZodObject<{
|
|
|
305
306
|
collaborationAllowed: boolean;
|
|
306
307
|
federationAllowed: boolean;
|
|
307
308
|
};
|
|
308
|
-
authorAccountId: string;
|
|
309
309
|
}[];
|
|
310
310
|
}, {
|
|
311
311
|
items: {
|
|
312
|
+
authorAccountId: string;
|
|
312
313
|
policy: {
|
|
313
314
|
policyVersion: "2";
|
|
314
315
|
publicationAllowed: boolean;
|
|
@@ -316,7 +317,6 @@ export declare const publicationPoliciesResponseSchema: z.ZodObject<{
|
|
|
316
317
|
collaborationAllowed: boolean;
|
|
317
318
|
federationAllowed: boolean;
|
|
318
319
|
};
|
|
319
|
-
authorAccountId: string;
|
|
320
320
|
}[];
|
|
321
321
|
}>;
|
|
322
322
|
export type PublicationPoliciesInput = z.infer<typeof publicationPoliciesInputSchema>;
|
|
@@ -1481,7 +1481,6 @@ export declare const reservePurchaseSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1481
1481
|
resourceId: string;
|
|
1482
1482
|
currency: string;
|
|
1483
1483
|
operationId: string;
|
|
1484
|
-
approvalId: string;
|
|
1485
1484
|
summary: string;
|
|
1486
1485
|
cartFingerprint: string;
|
|
1487
1486
|
merchantAccountIds: string[];
|
|
@@ -1500,12 +1499,12 @@ export declare const reservePurchaseSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1500
1499
|
roundingAdjustmentMinor: number;
|
|
1501
1500
|
paymentFingerprint: string;
|
|
1502
1501
|
amountMinor: number;
|
|
1502
|
+
approvalId: string;
|
|
1503
1503
|
}, {
|
|
1504
1504
|
expiresAt: string;
|
|
1505
1505
|
resourceId: string;
|
|
1506
1506
|
currency: string;
|
|
1507
1507
|
operationId: string;
|
|
1508
|
-
approvalId: string;
|
|
1509
1508
|
summary: string;
|
|
1510
1509
|
cartFingerprint: string;
|
|
1511
1510
|
merchantAccountIds: string[];
|
|
@@ -1524,12 +1523,12 @@ export declare const reservePurchaseSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1524
1523
|
roundingAdjustmentMinor: number;
|
|
1525
1524
|
paymentFingerprint: string;
|
|
1526
1525
|
amountMinor: number;
|
|
1526
|
+
approvalId: string;
|
|
1527
1527
|
}>, {
|
|
1528
1528
|
expiresAt: string;
|
|
1529
1529
|
resourceId: string;
|
|
1530
1530
|
currency: string;
|
|
1531
1531
|
operationId: string;
|
|
1532
|
-
approvalId: string;
|
|
1533
1532
|
summary: string;
|
|
1534
1533
|
cartFingerprint: string;
|
|
1535
1534
|
merchantAccountIds: string[];
|
|
@@ -1548,12 +1547,12 @@ export declare const reservePurchaseSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1548
1547
|
roundingAdjustmentMinor: number;
|
|
1549
1548
|
paymentFingerprint: string;
|
|
1550
1549
|
amountMinor: number;
|
|
1550
|
+
approvalId: string;
|
|
1551
1551
|
}, {
|
|
1552
1552
|
expiresAt: string;
|
|
1553
1553
|
resourceId: string;
|
|
1554
1554
|
currency: string;
|
|
1555
1555
|
operationId: string;
|
|
1556
|
-
approvalId: string;
|
|
1557
1556
|
summary: string;
|
|
1558
1557
|
cartFingerprint: string;
|
|
1559
1558
|
merchantAccountIds: string[];
|
|
@@ -1572,6 +1571,7 @@ export declare const reservePurchaseSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1572
1571
|
roundingAdjustmentMinor: number;
|
|
1573
1572
|
paymentFingerprint: string;
|
|
1574
1573
|
amountMinor: number;
|
|
1574
|
+
approvalId: string;
|
|
1575
1575
|
}>;
|
|
1576
1576
|
export type PurchaseApprovalLine = z.infer<typeof purchaseApprovalLineSchema>;
|
|
1577
1577
|
export type PurchaseApprovalSummary = z.infer<typeof purchaseApprovalSummarySchema>;
|
|
@@ -1582,12 +1582,12 @@ export declare const confirmPurchaseSchema: z.ZodObject<{
|
|
|
1582
1582
|
receiptReference: z.ZodString;
|
|
1583
1583
|
}, "strict", z.ZodTypeAny, {
|
|
1584
1584
|
operationId: string;
|
|
1585
|
-
approvalId: string;
|
|
1586
1585
|
receiptReference: string;
|
|
1586
|
+
approvalId: string;
|
|
1587
1587
|
}, {
|
|
1588
1588
|
operationId: string;
|
|
1589
|
-
approvalId: string;
|
|
1590
1589
|
receiptReference: string;
|
|
1590
|
+
approvalId: string;
|
|
1591
1591
|
}>;
|
|
1592
1592
|
export declare const cancelPurchaseSchema: z.ZodObject<Omit<{
|
|
1593
1593
|
approvalId: z.ZodString;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@oxy.so/contracts",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "5.0.0",
|
|
4
4
|
"description": "OxyHQ API contracts — single source of truth for request/response Zod schemas and inferred types, shared by the backend and the client SDKs",
|
|
5
5
|
"main": "dist/cjs/index.js",
|
|
6
6
|
"module": "dist/esm/index.js",
|