@oxy.so/contracts 1.1.1 → 1.2.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.
@@ -400,7 +400,7 @@ export declare const inferenceStreamErrorEventSchema: z.ZodObject<{
400
400
  status?: number | undefined;
401
401
  }>>;
402
402
  }, "strip", z.ZodTypeAny, {
403
- code: "invalid_request" | "authentication_failed" | "permission_denied" | "insufficient_scope" | "model_not_found" | "unsupported_modality" | "context_length_exceeded" | "request_too_large" | "output_limit_exceeded" | "idempotency_conflict" | "insufficient_balance" | "spending_limit_exceeded" | "quota_exceeded" | "byok_credential_invalid" | "policy_violation" | "commercial_permission_denied" | "no_route_available" | "upstream_content_filtered" | "cancelled" | "rate_limited" | "deployment_unavailable" | "provider_error" | "provider_timeout" | "provider_overloaded" | "provider_credential_invalid" | "provider_billing_refused" | "service_unavailable" | "internal_error";
403
+ code: "cancelled" | "invalid_request" | "authentication_failed" | "permission_denied" | "insufficient_scope" | "model_not_found" | "unsupported_modality" | "context_length_exceeded" | "request_too_large" | "output_limit_exceeded" | "idempotency_conflict" | "insufficient_balance" | "spending_limit_exceeded" | "quota_exceeded" | "byok_credential_invalid" | "policy_violation" | "commercial_permission_denied" | "no_route_available" | "upstream_content_filtered" | "rate_limited" | "deployment_unavailable" | "provider_error" | "provider_timeout" | "provider_overloaded" | "provider_credential_invalid" | "provider_billing_refused" | "service_unavailable" | "internal_error";
404
404
  message: string;
405
405
  schemaVersion: 1;
406
406
  requestId: string;
@@ -415,7 +415,7 @@ export declare const inferenceStreamErrorEventSchema: z.ZodObject<{
415
415
  status?: number | undefined;
416
416
  } | undefined;
417
417
  }, {
418
- code: "invalid_request" | "authentication_failed" | "permission_denied" | "insufficient_scope" | "model_not_found" | "unsupported_modality" | "context_length_exceeded" | "request_too_large" | "output_limit_exceeded" | "idempotency_conflict" | "insufficient_balance" | "spending_limit_exceeded" | "quota_exceeded" | "byok_credential_invalid" | "policy_violation" | "commercial_permission_denied" | "no_route_available" | "upstream_content_filtered" | "cancelled" | "rate_limited" | "deployment_unavailable" | "provider_error" | "provider_timeout" | "provider_overloaded" | "provider_credential_invalid" | "provider_billing_refused" | "service_unavailable" | "internal_error";
418
+ code: "cancelled" | "invalid_request" | "authentication_failed" | "permission_denied" | "insufficient_scope" | "model_not_found" | "unsupported_modality" | "context_length_exceeded" | "request_too_large" | "output_limit_exceeded" | "idempotency_conflict" | "insufficient_balance" | "spending_limit_exceeded" | "quota_exceeded" | "byok_credential_invalid" | "policy_violation" | "commercial_permission_denied" | "no_route_available" | "upstream_content_filtered" | "rate_limited" | "deployment_unavailable" | "provider_error" | "provider_timeout" | "provider_overloaded" | "provider_credential_invalid" | "provider_billing_refused" | "service_unavailable" | "internal_error";
419
419
  message: string;
420
420
  schemaVersion: 1;
421
421
  requestId: string;
@@ -430,7 +430,7 @@ export declare const inferenceStreamErrorEventSchema: z.ZodObject<{
430
430
  status?: number | undefined;
431
431
  } | undefined;
432
432
  }>, {
433
- code: "invalid_request" | "authentication_failed" | "permission_denied" | "insufficient_scope" | "model_not_found" | "unsupported_modality" | "context_length_exceeded" | "request_too_large" | "output_limit_exceeded" | "idempotency_conflict" | "insufficient_balance" | "spending_limit_exceeded" | "quota_exceeded" | "byok_credential_invalid" | "policy_violation" | "commercial_permission_denied" | "no_route_available" | "upstream_content_filtered" | "cancelled" | "rate_limited" | "deployment_unavailable" | "provider_error" | "provider_timeout" | "provider_overloaded" | "provider_credential_invalid" | "provider_billing_refused" | "service_unavailable" | "internal_error";
433
+ code: "cancelled" | "invalid_request" | "authentication_failed" | "permission_denied" | "insufficient_scope" | "model_not_found" | "unsupported_modality" | "context_length_exceeded" | "request_too_large" | "output_limit_exceeded" | "idempotency_conflict" | "insufficient_balance" | "spending_limit_exceeded" | "quota_exceeded" | "byok_credential_invalid" | "policy_violation" | "commercial_permission_denied" | "no_route_available" | "upstream_content_filtered" | "rate_limited" | "deployment_unavailable" | "provider_error" | "provider_timeout" | "provider_overloaded" | "provider_credential_invalid" | "provider_billing_refused" | "service_unavailable" | "internal_error";
434
434
  message: string;
435
435
  schemaVersion: 1;
436
436
  requestId: string;
@@ -445,7 +445,7 @@ export declare const inferenceStreamErrorEventSchema: z.ZodObject<{
445
445
  status?: number | undefined;
446
446
  } | undefined;
447
447
  }, {
448
- code: "invalid_request" | "authentication_failed" | "permission_denied" | "insufficient_scope" | "model_not_found" | "unsupported_modality" | "context_length_exceeded" | "request_too_large" | "output_limit_exceeded" | "idempotency_conflict" | "insufficient_balance" | "spending_limit_exceeded" | "quota_exceeded" | "byok_credential_invalid" | "policy_violation" | "commercial_permission_denied" | "no_route_available" | "upstream_content_filtered" | "cancelled" | "rate_limited" | "deployment_unavailable" | "provider_error" | "provider_timeout" | "provider_overloaded" | "provider_credential_invalid" | "provider_billing_refused" | "service_unavailable" | "internal_error";
448
+ code: "cancelled" | "invalid_request" | "authentication_failed" | "permission_denied" | "insufficient_scope" | "model_not_found" | "unsupported_modality" | "context_length_exceeded" | "request_too_large" | "output_limit_exceeded" | "idempotency_conflict" | "insufficient_balance" | "spending_limit_exceeded" | "quota_exceeded" | "byok_credential_invalid" | "policy_violation" | "commercial_permission_denied" | "no_route_available" | "upstream_content_filtered" | "rate_limited" | "deployment_unavailable" | "provider_error" | "provider_timeout" | "provider_overloaded" | "provider_credential_invalid" | "provider_billing_refused" | "service_unavailable" | "internal_error";
449
449
  message: string;
450
450
  schemaVersion: 1;
451
451
  requestId: string;
@@ -465,7 +465,7 @@ export declare const inferenceStreamErrorEventSchema: z.ZodObject<{
465
465
  schemaVersion: 1;
466
466
  requestId: string;
467
467
  error: {
468
- code: "invalid_request" | "authentication_failed" | "permission_denied" | "insufficient_scope" | "model_not_found" | "unsupported_modality" | "context_length_exceeded" | "request_too_large" | "output_limit_exceeded" | "idempotency_conflict" | "insufficient_balance" | "spending_limit_exceeded" | "quota_exceeded" | "byok_credential_invalid" | "policy_violation" | "commercial_permission_denied" | "no_route_available" | "upstream_content_filtered" | "cancelled" | "rate_limited" | "deployment_unavailable" | "provider_error" | "provider_timeout" | "provider_overloaded" | "provider_credential_invalid" | "provider_billing_refused" | "service_unavailable" | "internal_error";
468
+ code: "cancelled" | "invalid_request" | "authentication_failed" | "permission_denied" | "insufficient_scope" | "model_not_found" | "unsupported_modality" | "context_length_exceeded" | "request_too_large" | "output_limit_exceeded" | "idempotency_conflict" | "insufficient_balance" | "spending_limit_exceeded" | "quota_exceeded" | "byok_credential_invalid" | "policy_violation" | "commercial_permission_denied" | "no_route_available" | "upstream_content_filtered" | "rate_limited" | "deployment_unavailable" | "provider_error" | "provider_timeout" | "provider_overloaded" | "provider_credential_invalid" | "provider_billing_refused" | "service_unavailable" | "internal_error";
469
469
  message: string;
470
470
  schemaVersion: 1;
471
471
  requestId: string;
@@ -486,7 +486,7 @@ export declare const inferenceStreamErrorEventSchema: z.ZodObject<{
486
486
  schemaVersion: 1;
487
487
  requestId: string;
488
488
  error: {
489
- code: "invalid_request" | "authentication_failed" | "permission_denied" | "insufficient_scope" | "model_not_found" | "unsupported_modality" | "context_length_exceeded" | "request_too_large" | "output_limit_exceeded" | "idempotency_conflict" | "insufficient_balance" | "spending_limit_exceeded" | "quota_exceeded" | "byok_credential_invalid" | "policy_violation" | "commercial_permission_denied" | "no_route_available" | "upstream_content_filtered" | "cancelled" | "rate_limited" | "deployment_unavailable" | "provider_error" | "provider_timeout" | "provider_overloaded" | "provider_credential_invalid" | "provider_billing_refused" | "service_unavailable" | "internal_error";
489
+ code: "cancelled" | "invalid_request" | "authentication_failed" | "permission_denied" | "insufficient_scope" | "model_not_found" | "unsupported_modality" | "context_length_exceeded" | "request_too_large" | "output_limit_exceeded" | "idempotency_conflict" | "insufficient_balance" | "spending_limit_exceeded" | "quota_exceeded" | "byok_credential_invalid" | "policy_violation" | "commercial_permission_denied" | "no_route_available" | "upstream_content_filtered" | "rate_limited" | "deployment_unavailable" | "provider_error" | "provider_timeout" | "provider_overloaded" | "provider_credential_invalid" | "provider_billing_refused" | "service_unavailable" | "internal_error";
490
490
  message: string;
491
491
  schemaVersion: 1;
492
492
  requestId: string;
@@ -806,7 +806,7 @@ export declare const inferenceStreamEventSchema: z.ZodDiscriminatedUnion<"type",
806
806
  status?: number | undefined;
807
807
  }>>;
808
808
  }, "strip", z.ZodTypeAny, {
809
- code: "invalid_request" | "authentication_failed" | "permission_denied" | "insufficient_scope" | "model_not_found" | "unsupported_modality" | "context_length_exceeded" | "request_too_large" | "output_limit_exceeded" | "idempotency_conflict" | "insufficient_balance" | "spending_limit_exceeded" | "quota_exceeded" | "byok_credential_invalid" | "policy_violation" | "commercial_permission_denied" | "no_route_available" | "upstream_content_filtered" | "cancelled" | "rate_limited" | "deployment_unavailable" | "provider_error" | "provider_timeout" | "provider_overloaded" | "provider_credential_invalid" | "provider_billing_refused" | "service_unavailable" | "internal_error";
809
+ code: "cancelled" | "invalid_request" | "authentication_failed" | "permission_denied" | "insufficient_scope" | "model_not_found" | "unsupported_modality" | "context_length_exceeded" | "request_too_large" | "output_limit_exceeded" | "idempotency_conflict" | "insufficient_balance" | "spending_limit_exceeded" | "quota_exceeded" | "byok_credential_invalid" | "policy_violation" | "commercial_permission_denied" | "no_route_available" | "upstream_content_filtered" | "rate_limited" | "deployment_unavailable" | "provider_error" | "provider_timeout" | "provider_overloaded" | "provider_credential_invalid" | "provider_billing_refused" | "service_unavailable" | "internal_error";
810
810
  message: string;
811
811
  schemaVersion: 1;
812
812
  requestId: string;
@@ -821,7 +821,7 @@ export declare const inferenceStreamEventSchema: z.ZodDiscriminatedUnion<"type",
821
821
  status?: number | undefined;
822
822
  } | undefined;
823
823
  }, {
824
- code: "invalid_request" | "authentication_failed" | "permission_denied" | "insufficient_scope" | "model_not_found" | "unsupported_modality" | "context_length_exceeded" | "request_too_large" | "output_limit_exceeded" | "idempotency_conflict" | "insufficient_balance" | "spending_limit_exceeded" | "quota_exceeded" | "byok_credential_invalid" | "policy_violation" | "commercial_permission_denied" | "no_route_available" | "upstream_content_filtered" | "cancelled" | "rate_limited" | "deployment_unavailable" | "provider_error" | "provider_timeout" | "provider_overloaded" | "provider_credential_invalid" | "provider_billing_refused" | "service_unavailable" | "internal_error";
824
+ code: "cancelled" | "invalid_request" | "authentication_failed" | "permission_denied" | "insufficient_scope" | "model_not_found" | "unsupported_modality" | "context_length_exceeded" | "request_too_large" | "output_limit_exceeded" | "idempotency_conflict" | "insufficient_balance" | "spending_limit_exceeded" | "quota_exceeded" | "byok_credential_invalid" | "policy_violation" | "commercial_permission_denied" | "no_route_available" | "upstream_content_filtered" | "rate_limited" | "deployment_unavailable" | "provider_error" | "provider_timeout" | "provider_overloaded" | "provider_credential_invalid" | "provider_billing_refused" | "service_unavailable" | "internal_error";
825
825
  message: string;
826
826
  schemaVersion: 1;
827
827
  requestId: string;
@@ -836,7 +836,7 @@ export declare const inferenceStreamEventSchema: z.ZodDiscriminatedUnion<"type",
836
836
  status?: number | undefined;
837
837
  } | undefined;
838
838
  }>, {
839
- code: "invalid_request" | "authentication_failed" | "permission_denied" | "insufficient_scope" | "model_not_found" | "unsupported_modality" | "context_length_exceeded" | "request_too_large" | "output_limit_exceeded" | "idempotency_conflict" | "insufficient_balance" | "spending_limit_exceeded" | "quota_exceeded" | "byok_credential_invalid" | "policy_violation" | "commercial_permission_denied" | "no_route_available" | "upstream_content_filtered" | "cancelled" | "rate_limited" | "deployment_unavailable" | "provider_error" | "provider_timeout" | "provider_overloaded" | "provider_credential_invalid" | "provider_billing_refused" | "service_unavailable" | "internal_error";
839
+ code: "cancelled" | "invalid_request" | "authentication_failed" | "permission_denied" | "insufficient_scope" | "model_not_found" | "unsupported_modality" | "context_length_exceeded" | "request_too_large" | "output_limit_exceeded" | "idempotency_conflict" | "insufficient_balance" | "spending_limit_exceeded" | "quota_exceeded" | "byok_credential_invalid" | "policy_violation" | "commercial_permission_denied" | "no_route_available" | "upstream_content_filtered" | "rate_limited" | "deployment_unavailable" | "provider_error" | "provider_timeout" | "provider_overloaded" | "provider_credential_invalid" | "provider_billing_refused" | "service_unavailable" | "internal_error";
840
840
  message: string;
841
841
  schemaVersion: 1;
842
842
  requestId: string;
@@ -851,7 +851,7 @@ export declare const inferenceStreamEventSchema: z.ZodDiscriminatedUnion<"type",
851
851
  status?: number | undefined;
852
852
  } | undefined;
853
853
  }, {
854
- code: "invalid_request" | "authentication_failed" | "permission_denied" | "insufficient_scope" | "model_not_found" | "unsupported_modality" | "context_length_exceeded" | "request_too_large" | "output_limit_exceeded" | "idempotency_conflict" | "insufficient_balance" | "spending_limit_exceeded" | "quota_exceeded" | "byok_credential_invalid" | "policy_violation" | "commercial_permission_denied" | "no_route_available" | "upstream_content_filtered" | "cancelled" | "rate_limited" | "deployment_unavailable" | "provider_error" | "provider_timeout" | "provider_overloaded" | "provider_credential_invalid" | "provider_billing_refused" | "service_unavailable" | "internal_error";
854
+ code: "cancelled" | "invalid_request" | "authentication_failed" | "permission_denied" | "insufficient_scope" | "model_not_found" | "unsupported_modality" | "context_length_exceeded" | "request_too_large" | "output_limit_exceeded" | "idempotency_conflict" | "insufficient_balance" | "spending_limit_exceeded" | "quota_exceeded" | "byok_credential_invalid" | "policy_violation" | "commercial_permission_denied" | "no_route_available" | "upstream_content_filtered" | "rate_limited" | "deployment_unavailable" | "provider_error" | "provider_timeout" | "provider_overloaded" | "provider_credential_invalid" | "provider_billing_refused" | "service_unavailable" | "internal_error";
855
855
  message: string;
856
856
  schemaVersion: 1;
857
857
  requestId: string;
@@ -871,7 +871,7 @@ export declare const inferenceStreamEventSchema: z.ZodDiscriminatedUnion<"type",
871
871
  schemaVersion: 1;
872
872
  requestId: string;
873
873
  error: {
874
- code: "invalid_request" | "authentication_failed" | "permission_denied" | "insufficient_scope" | "model_not_found" | "unsupported_modality" | "context_length_exceeded" | "request_too_large" | "output_limit_exceeded" | "idempotency_conflict" | "insufficient_balance" | "spending_limit_exceeded" | "quota_exceeded" | "byok_credential_invalid" | "policy_violation" | "commercial_permission_denied" | "no_route_available" | "upstream_content_filtered" | "cancelled" | "rate_limited" | "deployment_unavailable" | "provider_error" | "provider_timeout" | "provider_overloaded" | "provider_credential_invalid" | "provider_billing_refused" | "service_unavailable" | "internal_error";
874
+ code: "cancelled" | "invalid_request" | "authentication_failed" | "permission_denied" | "insufficient_scope" | "model_not_found" | "unsupported_modality" | "context_length_exceeded" | "request_too_large" | "output_limit_exceeded" | "idempotency_conflict" | "insufficient_balance" | "spending_limit_exceeded" | "quota_exceeded" | "byok_credential_invalid" | "policy_violation" | "commercial_permission_denied" | "no_route_available" | "upstream_content_filtered" | "rate_limited" | "deployment_unavailable" | "provider_error" | "provider_timeout" | "provider_overloaded" | "provider_credential_invalid" | "provider_billing_refused" | "service_unavailable" | "internal_error";
875
875
  message: string;
876
876
  schemaVersion: 1;
877
877
  requestId: string;
@@ -892,7 +892,7 @@ export declare const inferenceStreamEventSchema: z.ZodDiscriminatedUnion<"type",
892
892
  schemaVersion: 1;
893
893
  requestId: string;
894
894
  error: {
895
- code: "invalid_request" | "authentication_failed" | "permission_denied" | "insufficient_scope" | "model_not_found" | "unsupported_modality" | "context_length_exceeded" | "request_too_large" | "output_limit_exceeded" | "idempotency_conflict" | "insufficient_balance" | "spending_limit_exceeded" | "quota_exceeded" | "byok_credential_invalid" | "policy_violation" | "commercial_permission_denied" | "no_route_available" | "upstream_content_filtered" | "cancelled" | "rate_limited" | "deployment_unavailable" | "provider_error" | "provider_timeout" | "provider_overloaded" | "provider_credential_invalid" | "provider_billing_refused" | "service_unavailable" | "internal_error";
895
+ code: "cancelled" | "invalid_request" | "authentication_failed" | "permission_denied" | "insufficient_scope" | "model_not_found" | "unsupported_modality" | "context_length_exceeded" | "request_too_large" | "output_limit_exceeded" | "idempotency_conflict" | "insufficient_balance" | "spending_limit_exceeded" | "quota_exceeded" | "byok_credential_invalid" | "policy_violation" | "commercial_permission_denied" | "no_route_available" | "upstream_content_filtered" | "rate_limited" | "deployment_unavailable" | "provider_error" | "provider_timeout" | "provider_overloaded" | "provider_credential_invalid" | "provider_billing_refused" | "service_unavailable" | "internal_error";
896
896
  message: string;
897
897
  schemaVersion: 1;
898
898
  requestId: string;
@@ -490,7 +490,7 @@ export declare const normalizedUsageReportSchema: z.ZodEffects<z.ZodObject<{
490
490
  }, "strip", z.ZodTypeAny, {
491
491
  schemaVersion: 2;
492
492
  requestId: string;
493
- outcome: "failed" | "cancelled" | "completed" | "partial";
493
+ outcome: "failed" | "completed" | "cancelled" | "partial";
494
494
  resolvedModelReference: string;
495
495
  servingProvider: string;
496
496
  attribution: {
@@ -521,7 +521,7 @@ export declare const normalizedUsageReportSchema: z.ZodEffects<z.ZodObject<{
521
521
  }, {
522
522
  schemaVersion: 2;
523
523
  requestId: string;
524
- outcome: "failed" | "cancelled" | "completed" | "partial";
524
+ outcome: "failed" | "completed" | "cancelled" | "partial";
525
525
  resolvedModelReference: string;
526
526
  servingProvider: string;
527
527
  attribution: {
@@ -552,7 +552,7 @@ export declare const normalizedUsageReportSchema: z.ZodEffects<z.ZodObject<{
552
552
  }>, {
553
553
  schemaVersion: 2;
554
554
  requestId: string;
555
- outcome: "failed" | "cancelled" | "completed" | "partial";
555
+ outcome: "failed" | "completed" | "cancelled" | "partial";
556
556
  resolvedModelReference: string;
557
557
  servingProvider: string;
558
558
  attribution: {
@@ -583,7 +583,7 @@ export declare const normalizedUsageReportSchema: z.ZodEffects<z.ZodObject<{
583
583
  }, {
584
584
  schemaVersion: 2;
585
585
  requestId: string;
586
- outcome: "failed" | "cancelled" | "completed" | "partial";
586
+ outcome: "failed" | "completed" | "cancelled" | "partial";
587
587
  resolvedModelReference: string;
588
588
  servingProvider: string;
589
589
  attribution: {
@@ -753,7 +753,7 @@ export declare const usageReceiptSchema: z.ZodEffects<z.ZodObject<{
753
753
  settledAt: string;
754
754
  billedAmount: string & z.BRAND<"ExactDecimal">;
755
755
  currency: string;
756
- outcome: "failed" | "cancelled" | "completed" | "partial";
756
+ outcome: "failed" | "completed" | "cancelled" | "partial";
757
757
  resolvedModelReference: string;
758
758
  servingProvider: string;
759
759
  platformFeeOnly: boolean;
@@ -794,7 +794,7 @@ export declare const usageReceiptSchema: z.ZodEffects<z.ZodObject<{
794
794
  settledAt: string;
795
795
  billedAmount: string;
796
796
  currency: string;
797
- outcome: "failed" | "cancelled" | "completed" | "partial";
797
+ outcome: "failed" | "completed" | "cancelled" | "partial";
798
798
  resolvedModelReference: string;
799
799
  servingProvider: string;
800
800
  platformFeeOnly: boolean;
@@ -835,7 +835,7 @@ export declare const usageReceiptSchema: z.ZodEffects<z.ZodObject<{
835
835
  settledAt: string;
836
836
  billedAmount: string & z.BRAND<"ExactDecimal">;
837
837
  currency: string;
838
- outcome: "failed" | "cancelled" | "completed" | "partial";
838
+ outcome: "failed" | "completed" | "cancelled" | "partial";
839
839
  resolvedModelReference: string;
840
840
  servingProvider: string;
841
841
  platformFeeOnly: boolean;
@@ -876,7 +876,7 @@ export declare const usageReceiptSchema: z.ZodEffects<z.ZodObject<{
876
876
  settledAt: string;
877
877
  billedAmount: string;
878
878
  currency: string;
879
- outcome: "failed" | "cancelled" | "completed" | "partial";
879
+ outcome: "failed" | "completed" | "cancelled" | "partial";
880
880
  resolvedModelReference: string;
881
881
  servingProvider: string;
882
882
  platformFeeOnly: boolean;
@@ -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 = "2.0.0";
102
+ export declare const INFERENCE_CONTRACT_VERSION = "3.0.0";