@openrouter/sdk 1.5.29 → 1.5.31

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.
Files changed (40) hide show
  1. package/esm/lib/config.d.ts +2 -2
  2. package/esm/lib/config.js +2 -2
  3. package/esm/models/decisions.d.ts +16 -0
  4. package/esm/models/decisions.js +22 -0
  5. package/esm/models/embeddings.d.ts +16 -0
  6. package/esm/models/embeddings.js +23 -0
  7. package/esm/models/imagegeneration.d.ts +16 -0
  8. package/esm/models/imagegeneration.js +22 -0
  9. package/esm/models/index.d.ts +13 -0
  10. package/esm/models/index.js +13 -0
  11. package/esm/models/model.d.ts +4 -0
  12. package/esm/models/model.js +1 -0
  13. package/esm/models/nativetools.d.ts +13 -0
  14. package/esm/models/nativetools.js +15 -0
  15. package/esm/models/operations/listendpointszdr.d.ts +1 -1
  16. package/esm/models/operations/listendpointszdr.js +2 -2
  17. package/esm/models/operations/listmodelsuser.d.ts +3 -3
  18. package/esm/models/operations/listmodelsuser.js +1 -1
  19. package/esm/models/perflast30mbyworkload.d.ts +30 -0
  20. package/esm/models/perflast30mbyworkload.js +38 -0
  21. package/esm/models/pricing.d.ts +74 -0
  22. package/esm/models/pricing.js +43 -0
  23. package/esm/models/publicendpoint.d.ts +3 -195
  24. package/esm/models/publicendpoint.js +6 -186
  25. package/esm/models/publiczdrendpoint.d.ts +93 -0
  26. package/esm/models/publiczdrendpoint.js +76 -0
  27. package/esm/models/rerank.d.ts +16 -0
  28. package/esm/models/rerank.js +22 -0
  29. package/esm/models/stt.d.ts +16 -0
  30. package/esm/models/stt.js +22 -0
  31. package/esm/models/textgeneration.d.ts +16 -0
  32. package/esm/models/textgeneration.js +22 -0
  33. package/esm/models/tts.d.ts +16 -0
  34. package/esm/models/tts.js +22 -0
  35. package/esm/models/unknown.d.ts +16 -0
  36. package/esm/models/unknown.js +22 -0
  37. package/esm/models/videogeneration.d.ts +16 -0
  38. package/esm/models/videogeneration.js +22 -0
  39. package/jsr.json +1 -1
  40. package/package.json +7 -7
@@ -50,8 +50,8 @@ export declare function serverURLFromOptions(options: SDKOptions): URL | null;
50
50
  export declare const SDK_METADATA: {
51
51
  readonly language: "typescript";
52
52
  readonly openapiDocVersion: "1.0.0";
53
- readonly sdkVersion: "1.5.29";
53
+ readonly sdkVersion: "1.5.31";
54
54
  readonly genVersion: "2.950.13";
55
- readonly userAgent: "speakeasy-sdk/typescript 1.5.29 2.950.13 1.0.0 @openrouter/sdk";
55
+ readonly userAgent: "speakeasy-sdk/typescript 1.5.31 2.950.13 1.0.0 @openrouter/sdk";
56
56
  };
57
57
  //# sourceMappingURL=config.d.ts.map
package/esm/lib/config.js CHANGED
@@ -29,8 +29,8 @@ export function serverURLFromOptions(options) {
29
29
  export const SDK_METADATA = {
30
30
  language: "typescript",
31
31
  openapiDocVersion: "1.0.0",
32
- sdkVersion: "1.5.29",
32
+ sdkVersion: "1.5.31",
33
33
  genVersion: "2.950.13",
34
- userAgent: "speakeasy-sdk/typescript 1.5.29 2.950.13 1.0.0 @openrouter/sdk",
34
+ userAgent: "speakeasy-sdk/typescript 1.5.31 2.950.13 1.0.0 @openrouter/sdk",
35
35
  };
36
36
  //# sourceMappingURL=config.js.map
@@ -0,0 +1,16 @@
1
+ import * as z from "zod/v4";
2
+ import { Result as SafeParseResult } from "../types/fp.js";
3
+ import { SDKValidationError } from "./errors/sdkvalidationerror.js";
4
+ import { PercentileStats } from "./percentilestats.js";
5
+ export type Decisions = {
6
+ latency: PercentileStats | null;
7
+ /**
8
+ * Total requests admitted for this workload in the window.
9
+ */
10
+ requestCount: number | null;
11
+ throughput: PercentileStats | null;
12
+ };
13
+ /** @internal */
14
+ export declare const Decisions$inboundSchema: z.ZodType<Decisions, unknown>;
15
+ export declare function decisionsFromJSON(jsonString: string): SafeParseResult<Decisions, SDKValidationError>;
16
+ //# sourceMappingURL=decisions.d.ts.map
@@ -0,0 +1,22 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ * @generated-id: 18025f274744
4
+ */
5
+ import * as z from "zod/v4";
6
+ import { remap as remap$ } from "../lib/primitives.js";
7
+ import { safeParse } from "../lib/schemas.js";
8
+ import { PercentileStats$inboundSchema, } from "./percentilestats.js";
9
+ /** @internal */
10
+ export const Decisions$inboundSchema = z.object({
11
+ latency: z.nullable(PercentileStats$inboundSchema),
12
+ request_count: z.nullable(z.int()),
13
+ throughput: z.nullable(PercentileStats$inboundSchema),
14
+ }).transform((v) => {
15
+ return remap$(v, {
16
+ "request_count": "requestCount",
17
+ });
18
+ });
19
+ export function decisionsFromJSON(jsonString) {
20
+ return safeParse(jsonString, (x) => Decisions$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'Decisions' from JSON`);
21
+ }
22
+ //# sourceMappingURL=decisions.js.map
@@ -0,0 +1,16 @@
1
+ import * as z from "zod/v4";
2
+ import { Result as SafeParseResult } from "../types/fp.js";
3
+ import { SDKValidationError } from "./errors/sdkvalidationerror.js";
4
+ import { PercentileStats } from "./percentilestats.js";
5
+ export type Embeddings = {
6
+ latency: PercentileStats | null;
7
+ /**
8
+ * Total requests admitted for this workload in the window.
9
+ */
10
+ requestCount: number | null;
11
+ throughput: PercentileStats | null;
12
+ };
13
+ /** @internal */
14
+ export declare const Embeddings$inboundSchema: z.ZodType<Embeddings, unknown>;
15
+ export declare function embeddingsFromJSON(jsonString: string): SafeParseResult<Embeddings, SDKValidationError>;
16
+ //# sourceMappingURL=embeddings.d.ts.map
@@ -0,0 +1,23 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ * @generated-id: 2ae8548ed00e
4
+ */
5
+ import * as z from "zod/v4";
6
+ import { remap as remap$ } from "../lib/primitives.js";
7
+ import { safeParse } from "../lib/schemas.js";
8
+ import { PercentileStats$inboundSchema, } from "./percentilestats.js";
9
+ /** @internal */
10
+ export const Embeddings$inboundSchema = z
11
+ .object({
12
+ latency: z.nullable(PercentileStats$inboundSchema),
13
+ request_count: z.nullable(z.int()),
14
+ throughput: z.nullable(PercentileStats$inboundSchema),
15
+ }).transform((v) => {
16
+ return remap$(v, {
17
+ "request_count": "requestCount",
18
+ });
19
+ });
20
+ export function embeddingsFromJSON(jsonString) {
21
+ return safeParse(jsonString, (x) => Embeddings$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'Embeddings' from JSON`);
22
+ }
23
+ //# sourceMappingURL=embeddings.js.map
@@ -0,0 +1,16 @@
1
+ import * as z from "zod/v4";
2
+ import { Result as SafeParseResult } from "../types/fp.js";
3
+ import { SDKValidationError } from "./errors/sdkvalidationerror.js";
4
+ import { PercentileStats } from "./percentilestats.js";
5
+ export type ImageGeneration = {
6
+ latency: PercentileStats | null;
7
+ /**
8
+ * Total requests admitted for this workload in the window.
9
+ */
10
+ requestCount: number | null;
11
+ throughput: PercentileStats | null;
12
+ };
13
+ /** @internal */
14
+ export declare const ImageGeneration$inboundSchema: z.ZodType<ImageGeneration, unknown>;
15
+ export declare function imageGenerationFromJSON(jsonString: string): SafeParseResult<ImageGeneration, SDKValidationError>;
16
+ //# sourceMappingURL=imagegeneration.d.ts.map
@@ -0,0 +1,22 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ * @generated-id: a157e2a02f24
4
+ */
5
+ import * as z from "zod/v4";
6
+ import { remap as remap$ } from "../lib/primitives.js";
7
+ import { safeParse } from "../lib/schemas.js";
8
+ import { PercentileStats$inboundSchema, } from "./percentilestats.js";
9
+ /** @internal */
10
+ export const ImageGeneration$inboundSchema = z.object({
11
+ latency: z.nullable(PercentileStats$inboundSchema),
12
+ request_count: z.nullable(z.int()),
13
+ throughput: z.nullable(PercentileStats$inboundSchema),
14
+ }).transform((v) => {
15
+ return remap$(v, {
16
+ "request_count": "requestCount",
17
+ });
18
+ });
19
+ export function imageGenerationFromJSON(jsonString) {
20
+ return safeParse(jsonString, (x) => ImageGeneration$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ImageGeneration' from JSON`);
21
+ }
22
+ //# sourceMappingURL=imagegeneration.js.map
@@ -298,6 +298,7 @@ export * from "./dabenchmarkentry.js";
298
298
  export * from "./datetimeservertool.js";
299
299
  export * from "./datetimeservertoolconfig.js";
300
300
  export * from "./debugevent.js";
301
+ export * from "./decisions.js";
301
302
  export * from "./decisionsboxanswer.js";
302
303
  export * from "./decisionsboxquestion.js";
303
304
  export * from "./decisionschoiceanswer.js";
@@ -324,6 +325,7 @@ export * from "./deleteworkspacebudgetresponse.js";
324
325
  export * from "./deleteworkspaceresponse.js";
325
326
  export * from "./easyinputmessage.js";
326
327
  export * from "./edgenetworktimeoutresponseerrordata.js";
328
+ export * from "./embeddings.js";
327
329
  export * from "./endpointinfo.js";
328
330
  export * from "./endpointsmetadata.js";
329
331
  export * from "./endpointstatus.js";
@@ -419,6 +421,7 @@ export * from "./imagegencallgeneratingevent.js";
419
421
  export * from "./imagegencallinprogressevent.js";
420
422
  export * from "./imagegencallpartialimageevent.js";
421
423
  export * from "./imagegencompletedevent.js";
424
+ export * from "./imagegeneration.js";
422
425
  export * from "./imagegenerationproviderpreferences.js";
423
426
  export * from "./imagegenerationrequest.js";
424
427
  export * from "./imagegenerationresponse.js";
@@ -513,6 +516,7 @@ export * from "./moderationplugin.js";
513
516
  export * from "./multimodalmedia.js";
514
517
  export * from "./namespacefunctiontool.js";
515
518
  export * from "./namespacetool.js";
519
+ export * from "./nativetools.js";
516
520
  export * from "./notfoundresponseerrordata.js";
517
521
  export * from "./oautherrorresponse.js";
518
522
  export * from "./oauthjwks.js";
@@ -626,6 +630,7 @@ export * from "./pdfparseroptions.js";
626
630
  export * from "./percentilelatencycutoffs.js";
627
631
  export * from "./percentilestats.js";
628
632
  export * from "./percentilethroughputcutoffs.js";
633
+ export * from "./perflast30mbyworkload.js";
629
634
  export * from "./perrequestlimits.js";
630
635
  export * from "./pipelinestage.js";
631
636
  export * from "./pipelinestagetype.js";
@@ -640,6 +645,7 @@ export * from "./presetwithdesignatedversion.js";
640
645
  export * from "./preview20250311websearchservertool.js";
641
646
  export * from "./previewwebsearchservertool.js";
642
647
  export * from "./previewwebsearchuserlocation.js";
648
+ export * from "./pricing.js";
643
649
  export * from "./pricingoverride.js";
644
650
  export * from "./privateendpoint.js";
645
651
  export * from "./privateendpointactivation.js";
@@ -673,6 +679,7 @@ export * from "./providersortconfig.js";
673
679
  export * from "./publicendpoint.js";
674
680
  export * from "./publicpricing.js";
675
681
  export * from "./publicservicetier.js";
682
+ export * from "./publiczdrendpoint.js";
676
683
  export * from "./quantization.js";
677
684
  export * from "./rangecapability.js";
678
685
  export * from "./rankingsdailyitem.js";
@@ -700,6 +707,7 @@ export * from "./reasoningtextcontent.js";
700
707
  export * from "./refusaldeltaevent.js";
701
708
  export * from "./refusaldoneevent.js";
702
709
  export * from "./requesttimeoutresponseerrordata.js";
710
+ export * from "./rerank.js";
703
711
  export * from "./responsehealingplugin.js";
704
712
  export * from "./responseincludesenum.js";
705
713
  export * from "./responseoutputtext.js";
@@ -767,6 +775,7 @@ export * from "./streameventsresponseoutputitemadded.js";
767
775
  export * from "./streameventsresponseoutputitemdone.js";
768
776
  export * from "./streamlogprob.js";
769
777
  export * from "./streamlogprobtoplogprob.js";
778
+ export * from "./stt.js";
770
779
  export * from "./sttentity.js";
771
780
  export * from "./sttinlineinputaudio.js";
772
781
  export * from "./sttinputaudio.js";
@@ -791,6 +800,7 @@ export * from "./taskclassificationresponse.js";
791
800
  export * from "./textdeltaevent.js";
792
801
  export * from "./textdoneevent.js";
793
802
  export * from "./textextendedconfig.js";
803
+ export * from "./textgeneration.js";
794
804
  export * from "./tokenexchangerequest.js";
795
805
  export * from "./tokenexchangeresponse.js";
796
806
  export * from "./toolcallstatus.js";
@@ -804,6 +814,7 @@ export * from "./toomanyrequestsresponseerrordata.js";
804
814
  export * from "./topproviderinfo.js";
805
815
  export * from "./traceconfig.js";
806
816
  export * from "./truncation.js";
817
+ export * from "./tts.js";
807
818
  export * from "./unauthorizedresponseerrordata.js";
808
819
  export * from "./unifiedbenchmarkpricing.js";
809
820
  export * from "./unifiedbenchmarksaaitem.js";
@@ -813,6 +824,7 @@ export * from "./unifiedbenchmarksoritem.js";
813
824
  export * from "./unifiedbenchmarksresponse.js";
814
825
  export * from "./unifiedbenchmarkssearchitem.js";
815
826
  export * from "./unifiedbenchmarkssearchrunconfig.js";
827
+ export * from "./unknown.js";
816
828
  export * from "./unprocessableentityresponseerrordata.js";
817
829
  export * from "./updatebyokkeyrequest.js";
818
830
  export * from "./updatebyokkeyresponse.js";
@@ -844,6 +856,7 @@ export * from "./vaultsecretcopyresponse.js";
844
856
  export * from "./vaultsecretlistresponse.js";
845
857
  export * from "./vaultsecretresponse.js";
846
858
  export * from "./vaultsecretwriterequest.js";
859
+ export * from "./videogeneration.js";
847
860
  export * from "./videogenerationrequest.js";
848
861
  export * from "./videogenerationresponse.js";
849
862
  export * from "./videogenerationusage.js";
@@ -302,6 +302,7 @@ export * from "./dabenchmarkentry.js";
302
302
  export * from "./datetimeservertool.js";
303
303
  export * from "./datetimeservertoolconfig.js";
304
304
  export * from "./debugevent.js";
305
+ export * from "./decisions.js";
305
306
  export * from "./decisionsboxanswer.js";
306
307
  export * from "./decisionsboxquestion.js";
307
308
  export * from "./decisionschoiceanswer.js";
@@ -328,6 +329,7 @@ export * from "./deleteworkspacebudgetresponse.js";
328
329
  export * from "./deleteworkspaceresponse.js";
329
330
  export * from "./easyinputmessage.js";
330
331
  export * from "./edgenetworktimeoutresponseerrordata.js";
332
+ export * from "./embeddings.js";
331
333
  export * from "./endpointinfo.js";
332
334
  export * from "./endpointsmetadata.js";
333
335
  export * from "./endpointstatus.js";
@@ -423,6 +425,7 @@ export * from "./imagegencallgeneratingevent.js";
423
425
  export * from "./imagegencallinprogressevent.js";
424
426
  export * from "./imagegencallpartialimageevent.js";
425
427
  export * from "./imagegencompletedevent.js";
428
+ export * from "./imagegeneration.js";
426
429
  export * from "./imagegenerationproviderpreferences.js";
427
430
  export * from "./imagegenerationrequest.js";
428
431
  export * from "./imagegenerationresponse.js";
@@ -517,6 +520,7 @@ export * from "./moderationplugin.js";
517
520
  export * from "./multimodalmedia.js";
518
521
  export * from "./namespacefunctiontool.js";
519
522
  export * from "./namespacetool.js";
523
+ export * from "./nativetools.js";
520
524
  export * from "./notfoundresponseerrordata.js";
521
525
  export * from "./oautherrorresponse.js";
522
526
  export * from "./oauthjwks.js";
@@ -630,6 +634,7 @@ export * from "./pdfparseroptions.js";
630
634
  export * from "./percentilelatencycutoffs.js";
631
635
  export * from "./percentilestats.js";
632
636
  export * from "./percentilethroughputcutoffs.js";
637
+ export * from "./perflast30mbyworkload.js";
633
638
  export * from "./perrequestlimits.js";
634
639
  export * from "./pipelinestage.js";
635
640
  export * from "./pipelinestagetype.js";
@@ -644,6 +649,7 @@ export * from "./presetwithdesignatedversion.js";
644
649
  export * from "./preview20250311websearchservertool.js";
645
650
  export * from "./previewwebsearchservertool.js";
646
651
  export * from "./previewwebsearchuserlocation.js";
652
+ export * from "./pricing.js";
647
653
  export * from "./pricingoverride.js";
648
654
  export * from "./privateendpoint.js";
649
655
  export * from "./privateendpointactivation.js";
@@ -677,6 +683,7 @@ export * from "./providersortconfig.js";
677
683
  export * from "./publicendpoint.js";
678
684
  export * from "./publicpricing.js";
679
685
  export * from "./publicservicetier.js";
686
+ export * from "./publiczdrendpoint.js";
680
687
  export * from "./quantization.js";
681
688
  export * from "./rangecapability.js";
682
689
  export * from "./rankingsdailyitem.js";
@@ -704,6 +711,7 @@ export * from "./reasoningtextcontent.js";
704
711
  export * from "./refusaldeltaevent.js";
705
712
  export * from "./refusaldoneevent.js";
706
713
  export * from "./requesttimeoutresponseerrordata.js";
714
+ export * from "./rerank.js";
707
715
  export * from "./responsehealingplugin.js";
708
716
  export * from "./responseincludesenum.js";
709
717
  export * from "./responseoutputtext.js";
@@ -771,6 +779,7 @@ export * from "./streameventsresponseoutputitemadded.js";
771
779
  export * from "./streameventsresponseoutputitemdone.js";
772
780
  export * from "./streamlogprob.js";
773
781
  export * from "./streamlogprobtoplogprob.js";
782
+ export * from "./stt.js";
774
783
  export * from "./sttentity.js";
775
784
  export * from "./sttinlineinputaudio.js";
776
785
  export * from "./sttinputaudio.js";
@@ -795,6 +804,7 @@ export * from "./taskclassificationresponse.js";
795
804
  export * from "./textdeltaevent.js";
796
805
  export * from "./textdoneevent.js";
797
806
  export * from "./textextendedconfig.js";
807
+ export * from "./textgeneration.js";
798
808
  export * from "./tokenexchangerequest.js";
799
809
  export * from "./tokenexchangeresponse.js";
800
810
  export * from "./toolcallstatus.js";
@@ -808,6 +818,7 @@ export * from "./toomanyrequestsresponseerrordata.js";
808
818
  export * from "./topproviderinfo.js";
809
819
  export * from "./traceconfig.js";
810
820
  export * from "./truncation.js";
821
+ export * from "./tts.js";
811
822
  export * from "./unauthorizedresponseerrordata.js";
812
823
  export * from "./unifiedbenchmarkpricing.js";
813
824
  export * from "./unifiedbenchmarksaaitem.js";
@@ -817,6 +828,7 @@ export * from "./unifiedbenchmarksoritem.js";
817
828
  export * from "./unifiedbenchmarksresponse.js";
818
829
  export * from "./unifiedbenchmarkssearchitem.js";
819
830
  export * from "./unifiedbenchmarkssearchrunconfig.js";
831
+ export * from "./unknown.js";
820
832
  export * from "./unprocessableentityresponseerrordata.js";
821
833
  export * from "./updatebyokkeyrequest.js";
822
834
  export * from "./updatebyokkeyresponse.js";
@@ -848,6 +860,7 @@ export * from "./vaultsecretcopyresponse.js";
848
860
  export * from "./vaultsecretlistresponse.js";
849
861
  export * from "./vaultsecretresponse.js";
850
862
  export * from "./vaultsecretwriterequest.js";
863
+ export * from "./videogeneration.js";
851
864
  export * from "./videogenerationrequest.js";
852
865
  export * from "./videogenerationresponse.js";
853
866
  export * from "./videogenerationusage.js";
@@ -47,6 +47,10 @@ export type Model = {
47
47
  * Description of the model
48
48
  */
49
49
  description?: string | undefined;
50
+ /**
51
+ * Request API paths that serve this model, derived from the same modality and adapter rules the routers use. A model served only through an alpha surface lists only that path.
52
+ */
53
+ endpoints: Array<string>;
50
54
  /**
51
55
  * The date after which the model may be removed. ISO 8601 date string (YYYY-MM-DD) or null if no expiration.
52
56
  */
@@ -25,6 +25,7 @@ export const Model$inboundSchema = z.object({
25
25
  created: z.int(),
26
26
  default_parameters: z.nullable(DefaultParameters$inboundSchema),
27
27
  description: z.string().optional(),
28
+ endpoints: z.array(z.string()),
28
29
  expiration_date: z.nullable(z.string()).optional(),
29
30
  hugging_face_id: z.nullable(z.string()).optional(),
30
31
  id: z.string(),
@@ -0,0 +1,13 @@
1
+ import * as z from "zod/v4";
2
+ import { Result as SafeParseResult } from "../types/fp.js";
3
+ import { SDKValidationError } from "./errors/sdkvalidationerror.js";
4
+ export type NativeTools = {
5
+ /**
6
+ * The provider tool type the request is translated to when this tool runs natively, e.g. `web_search_20260209` on Anthropic or `google_search` on Gemini.
7
+ */
8
+ type: string;
9
+ };
10
+ /** @internal */
11
+ export declare const NativeTools$inboundSchema: z.ZodType<NativeTools, unknown>;
12
+ export declare function nativeToolsFromJSON(jsonString: string): SafeParseResult<NativeTools, SDKValidationError>;
13
+ //# sourceMappingURL=nativetools.d.ts.map
@@ -0,0 +1,15 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ * @generated-id: c2b977a8024d
4
+ */
5
+ import * as z from "zod/v4";
6
+ import { safeParse } from "../lib/schemas.js";
7
+ /** @internal */
8
+ export const NativeTools$inboundSchema = z
9
+ .object({
10
+ type: z.string(),
11
+ });
12
+ export function nativeToolsFromJSON(jsonString) {
13
+ return safeParse(jsonString, (x) => NativeTools$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'NativeTools' from JSON`);
14
+ }
15
+ //# sourceMappingURL=nativetools.js.map
@@ -48,7 +48,7 @@ export type ListEndpointsZdrRequest = {
48
48
  * Returns a list of endpoints
49
49
  */
50
50
  export type ListEndpointsZdrResponse = {
51
- data: Array<models.PublicEndpoint>;
51
+ data: Array<models.PublicZdrEndpoint>;
52
52
  };
53
53
  /** @internal */
54
54
  export type ListEndpointsZdrRequest$Outbound = {
@@ -5,7 +5,7 @@
5
5
  import * as z from "zod/v4";
6
6
  import { remap as remap$ } from "../../lib/primitives.js";
7
7
  import { safeParse } from "../../lib/schemas.js";
8
- import { PublicEndpoint$inboundSchema as models_PublicEndpoint$inboundSchema } from "../publicendpoint.js";
8
+ import { PublicZdrEndpoint$inboundSchema as models_PublicZdrEndpoint$inboundSchema } from "../publiczdrendpoint.js";
9
9
  /** @internal */
10
10
  export const ListEndpointsZdrRequest$outboundSchema = z.object({
11
11
  httpReferer: z.string().optional(),
@@ -21,7 +21,7 @@ export function listEndpointsZdrRequestToJSON(listEndpointsZdrRequest) {
21
21
  }
22
22
  /** @internal */
23
23
  export const ListEndpointsZdrResponse$inboundSchema = z.object({
24
- data: z.array(models_PublicEndpoint$inboundSchema),
24
+ data: z.array(models_PublicZdrEndpoint$inboundSchema),
25
25
  });
26
26
  export function listEndpointsZdrResponseFromJSON(jsonString) {
27
27
  return safeParse(jsonString, (x) => ListEndpointsZdrResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListEndpointsZdrResponse' from JSON`);
@@ -49,7 +49,7 @@ export declare const ListModelsUserSort: {
49
49
  */
50
50
  export type ListModelsUserSort = OpenEnum<typeof ListModelsUserSort>;
51
51
  /**
52
- * Filter models and presets by the named harness's eligibility policy: tool calling is required, and when one of your guardrails sets `enforce_first_party_harness_models`, only the harness vendor's own models remain (OpenAI for codex, Anthropic for claude_code and claude_desktop). This filter doesn't apply the harness's ranking, caps or Claude Desktop model ID aliases, so returned IDs stay routable. One of: claude_code, claude_desktop, codex. Omit it to get every model you can use.
52
+ * Filter models and presets by the named harness's eligibility policy: tool calling is required, and when one of your guardrails sets `enforce_first_party_harness_models`, only the harness vendor's own models remain (OpenAI for codex, Anthropic for claude_code and claude_desktop). When your workspace's Managed Machines policy sets a model list for that harness, only the listed models remain, and a preset remains only while every model it routes to is listed. This filter doesn't apply the harness's ranking, caps or Claude Desktop model ID aliases, so returned IDs stay routable. One of: claude_code, claude_desktop, codex. Omit it to get every model you can use.
53
53
  */
54
54
  export declare const Client: {
55
55
  readonly ClaudeCode: "claude_code";
@@ -57,7 +57,7 @@ export declare const Client: {
57
57
  readonly Codex: "codex";
58
58
  };
59
59
  /**
60
- * Filter models and presets by the named harness's eligibility policy: tool calling is required, and when one of your guardrails sets `enforce_first_party_harness_models`, only the harness vendor's own models remain (OpenAI for codex, Anthropic for claude_code and claude_desktop). This filter doesn't apply the harness's ranking, caps or Claude Desktop model ID aliases, so returned IDs stay routable. One of: claude_code, claude_desktop, codex. Omit it to get every model you can use.
60
+ * Filter models and presets by the named harness's eligibility policy: tool calling is required, and when one of your guardrails sets `enforce_first_party_harness_models`, only the harness vendor's own models remain (OpenAI for codex, Anthropic for claude_code and claude_desktop). When your workspace's Managed Machines policy sets a model list for that harness, only the listed models remain, and a preset remains only while every model it routes to is listed. This filter doesn't apply the harness's ranking, caps or Claude Desktop model ID aliases, so returned IDs stay routable. One of: claude_code, claude_desktop, codex. Omit it to get every model you can use.
61
61
  */
62
62
  export type Client = OpenEnum<typeof Client>;
63
63
  export type ListModelsUserRequest = {
@@ -97,7 +97,7 @@ export type ListModelsUserRequest = {
97
97
  */
98
98
  sort?: ListModelsUserSort | undefined;
99
99
  /**
100
- * Filter models and presets by the named harness's eligibility policy: tool calling is required, and when one of your guardrails sets `enforce_first_party_harness_models`, only the harness vendor's own models remain (OpenAI for codex, Anthropic for claude_code and claude_desktop). This filter doesn't apply the harness's ranking, caps or Claude Desktop model ID aliases, so returned IDs stay routable. One of: claude_code, claude_desktop, codex. Omit it to get every model you can use.
100
+ * Filter models and presets by the named harness's eligibility policy: tool calling is required, and when one of your guardrails sets `enforce_first_party_harness_models`, only the harness vendor's own models remain (OpenAI for codex, Anthropic for claude_code and claude_desktop). When your workspace's Managed Machines policy sets a model list for that harness, only the listed models remain, and a preset remains only while every model it routes to is listed. This filter doesn't apply the harness's ranking, caps or Claude Desktop model ID aliases, so returned IDs stay routable. One of: claude_code, claude_desktop, codex. Omit it to get every model you can use.
101
101
  */
102
102
  client?: Client | undefined;
103
103
  };
@@ -25,7 +25,7 @@ export const ListModelsUserSort = {
25
25
  DesignArenaEloHighToLow: "design-arena-elo-high-to-low",
26
26
  };
27
27
  /**
28
- * Filter models and presets by the named harness's eligibility policy: tool calling is required, and when one of your guardrails sets `enforce_first_party_harness_models`, only the harness vendor's own models remain (OpenAI for codex, Anthropic for claude_code and claude_desktop). This filter doesn't apply the harness's ranking, caps or Claude Desktop model ID aliases, so returned IDs stay routable. One of: claude_code, claude_desktop, codex. Omit it to get every model you can use.
28
+ * Filter models and presets by the named harness's eligibility policy: tool calling is required, and when one of your guardrails sets `enforce_first_party_harness_models`, only the harness vendor's own models remain (OpenAI for codex, Anthropic for claude_code and claude_desktop). When your workspace's Managed Machines policy sets a model list for that harness, only the listed models remain, and a preset remains only while every model it routes to is listed. This filter doesn't apply the harness's ranking, caps or Claude Desktop model ID aliases, so returned IDs stay routable. One of: claude_code, claude_desktop, codex. Omit it to get every model you can use.
29
29
  */
30
30
  export const Client = {
31
31
  ClaudeCode: "claude_code",
@@ -0,0 +1,30 @@
1
+ import * as z from "zod/v4";
2
+ import { Result as SafeParseResult } from "../types/fp.js";
3
+ import { Decisions } from "./decisions.js";
4
+ import { Embeddings } from "./embeddings.js";
5
+ import { SDKValidationError } from "./errors/sdkvalidationerror.js";
6
+ import { ImageGeneration } from "./imagegeneration.js";
7
+ import { Rerank } from "./rerank.js";
8
+ import { STT } from "./stt.js";
9
+ import { TextGeneration } from "./textgeneration.js";
10
+ import { TTS } from "./tts.js";
11
+ import { Unknown } from "./unknown.js";
12
+ import { VideoGeneration } from "./videogeneration.js";
13
+ /**
14
+ * Endpoint performance over the last 30 minutes, keyed by the kind of request served (e.g. `text_generation`, `image_generation`). Additive to the legacy singular latency and throughput fields; image and video generation report end-to-end latency. Only visible when authenticated with an API key or cookie.
15
+ */
16
+ export type PerfLast30mByWorkload = {
17
+ decisions?: Decisions | undefined;
18
+ embeddings?: Embeddings | undefined;
19
+ imageGeneration?: ImageGeneration | undefined;
20
+ rerank?: Rerank | undefined;
21
+ stt?: STT | undefined;
22
+ textGeneration?: TextGeneration | undefined;
23
+ tts?: TTS | undefined;
24
+ unknown?: Unknown | undefined;
25
+ videoGeneration?: VideoGeneration | undefined;
26
+ };
27
+ /** @internal */
28
+ export declare const PerfLast30mByWorkload$inboundSchema: z.ZodType<PerfLast30mByWorkload, unknown>;
29
+ export declare function perfLast30mByWorkloadFromJSON(jsonString: string): SafeParseResult<PerfLast30mByWorkload, SDKValidationError>;
30
+ //# sourceMappingURL=perflast30mbyworkload.d.ts.map
@@ -0,0 +1,38 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ * @generated-id: 405fa4a81638
4
+ */
5
+ import * as z from "zod/v4";
6
+ import { remap as remap$ } from "../lib/primitives.js";
7
+ import { safeParse } from "../lib/schemas.js";
8
+ import { Decisions$inboundSchema } from "./decisions.js";
9
+ import { Embeddings$inboundSchema } from "./embeddings.js";
10
+ import { ImageGeneration$inboundSchema, } from "./imagegeneration.js";
11
+ import { Rerank$inboundSchema } from "./rerank.js";
12
+ import { STT$inboundSchema } from "./stt.js";
13
+ import { TextGeneration$inboundSchema, } from "./textgeneration.js";
14
+ import { TTS$inboundSchema } from "./tts.js";
15
+ import { Unknown$inboundSchema } from "./unknown.js";
16
+ import { VideoGeneration$inboundSchema, } from "./videogeneration.js";
17
+ /** @internal */
18
+ export const PerfLast30mByWorkload$inboundSchema = z.object({
19
+ decisions: Decisions$inboundSchema.optional(),
20
+ embeddings: Embeddings$inboundSchema.optional(),
21
+ image_generation: ImageGeneration$inboundSchema.optional(),
22
+ rerank: Rerank$inboundSchema.optional(),
23
+ stt: STT$inboundSchema.optional(),
24
+ text_generation: TextGeneration$inboundSchema.optional(),
25
+ tts: TTS$inboundSchema.optional(),
26
+ unknown: Unknown$inboundSchema.optional(),
27
+ video_generation: VideoGeneration$inboundSchema.optional(),
28
+ }).transform((v) => {
29
+ return remap$(v, {
30
+ "image_generation": "imageGeneration",
31
+ "text_generation": "textGeneration",
32
+ "video_generation": "videoGeneration",
33
+ });
34
+ });
35
+ export function perfLast30mByWorkloadFromJSON(jsonString) {
36
+ return safeParse(jsonString, (x) => PerfLast30mByWorkload$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'PerfLast30mByWorkload' from JSON`);
37
+ }
38
+ //# sourceMappingURL=perflast30mbyworkload.js.map
@@ -0,0 +1,74 @@
1
+ import * as z from "zod/v4";
2
+ import { Result as SafeParseResult } from "../types/fp.js";
3
+ import { SDKValidationError } from "./errors/sdkvalidationerror.js";
4
+ import { PricingOverride } from "./pricingoverride.js";
5
+ export type Pricing = {
6
+ /**
7
+ * Price in USD per audio input token
8
+ */
9
+ audio?: string | undefined;
10
+ /**
11
+ * Price in USD per audio output token
12
+ */
13
+ audioOutput?: string | undefined;
14
+ /**
15
+ * Price in USD per token for completion (output) generation
16
+ */
17
+ completion: string;
18
+ /**
19
+ * Fractional discount applied to this endpoint's pricing; the price is multiplied by (1 - discount) (0 = no discount, 1 = free)
20
+ */
21
+ discount?: number | undefined;
22
+ /**
23
+ * Price in USD per input image
24
+ */
25
+ image?: string | undefined;
26
+ /**
27
+ * Price in USD per output image
28
+ */
29
+ imageOutput?: string | undefined;
30
+ /**
31
+ * Price in USD per image token
32
+ */
33
+ imageToken?: string | undefined;
34
+ /**
35
+ * Price in USD per cached audio input token
36
+ */
37
+ inputAudioCache?: string | undefined;
38
+ /**
39
+ * Price in USD per cached input token (read)
40
+ */
41
+ inputCacheRead?: string | undefined;
42
+ /**
43
+ * Price per cache-write token, in USD per token. For providers with multiple cache TTLs (e.g. Anthropic), this is the default (5-minute) cache-write rate.
44
+ */
45
+ inputCacheWrite?: string | undefined;
46
+ /**
47
+ * Price per 1-hour cache-write token, in USD per token. Only present for providers that price an extended (1-hour) cache TTL separately, such as Anthropic.
48
+ */
49
+ inputCacheWrite1h?: string | undefined;
50
+ /**
51
+ * Price in USD per internal reasoning token
52
+ */
53
+ internalReasoning?: string | undefined;
54
+ /**
55
+ * Conditional overrides of the base pricing (e.g. long-context or time-based pricing). An entry applies when all of its condition fields (e.g. min_prompt_tokens, or the utc_start/utc_end time window) match the request; among applicable entries, later entries win per key; price keys absent from an entry inherit the base price. The top-level pricing keys always reflect the price that applies under default conditions.
56
+ */
57
+ overrides?: Array<PricingOverride> | undefined;
58
+ /**
59
+ * Price in USD per token for prompt (input) processing
60
+ */
61
+ prompt: string;
62
+ /**
63
+ * Price in USD per request
64
+ */
65
+ request?: string | undefined;
66
+ /**
67
+ * Price in USD per web search
68
+ */
69
+ webSearch?: string | undefined;
70
+ };
71
+ /** @internal */
72
+ export declare const Pricing$inboundSchema: z.ZodType<Pricing, unknown>;
73
+ export declare function pricingFromJSON(jsonString: string): SafeParseResult<Pricing, SDKValidationError>;
74
+ //# sourceMappingURL=pricing.d.ts.map