@openrouter/sdk 1.5.30 → 1.5.32

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 (44) hide show
  1. package/esm/funcs/apiKeysDelete.d.ts +1 -1
  2. package/esm/funcs/apiKeysDelete.js +2 -2
  3. package/esm/funcs/apiKeysGet.d.ts +1 -1
  4. package/esm/funcs/apiKeysGet.js +2 -2
  5. package/esm/funcs/apiKeysList.d.ts +1 -1
  6. package/esm/funcs/apiKeysList.js +2 -2
  7. package/esm/lib/config.d.ts +2 -2
  8. package/esm/lib/config.js +2 -2
  9. package/esm/models/decisions.d.ts +16 -0
  10. package/esm/models/decisions.js +22 -0
  11. package/esm/models/embeddings.d.ts +16 -0
  12. package/esm/models/embeddings.js +23 -0
  13. package/esm/models/imagegeneration.d.ts +16 -0
  14. package/esm/models/imagegeneration.js +22 -0
  15. package/esm/models/index.d.ts +13 -0
  16. package/esm/models/index.js +13 -0
  17. package/esm/models/nativetools.d.ts +13 -0
  18. package/esm/models/nativetools.js +15 -0
  19. package/esm/models/operations/createkeys.d.ts +1 -1
  20. package/esm/models/operations/list.d.ts +1 -1
  21. package/esm/models/operations/listendpointszdr.d.ts +1 -1
  22. package/esm/models/operations/listendpointszdr.js +2 -2
  23. package/esm/models/perflast30mbyworkload.d.ts +30 -0
  24. package/esm/models/perflast30mbyworkload.js +38 -0
  25. package/esm/models/pricing.d.ts +74 -0
  26. package/esm/models/pricing.js +43 -0
  27. package/esm/models/publicendpoint.d.ts +3 -195
  28. package/esm/models/publicendpoint.js +6 -186
  29. package/esm/models/publiczdrendpoint.d.ts +93 -0
  30. package/esm/models/publiczdrendpoint.js +76 -0
  31. package/esm/models/rerank.d.ts +16 -0
  32. package/esm/models/rerank.js +22 -0
  33. package/esm/models/stt.d.ts +16 -0
  34. package/esm/models/stt.js +22 -0
  35. package/esm/models/textgeneration.d.ts +16 -0
  36. package/esm/models/textgeneration.js +22 -0
  37. package/esm/models/tts.d.ts +16 -0
  38. package/esm/models/tts.js +22 -0
  39. package/esm/models/unknown.d.ts +16 -0
  40. package/esm/models/unknown.js +22 -0
  41. package/esm/models/videogeneration.d.ts +16 -0
  42. package/esm/models/videogeneration.js +22 -0
  43. package/jsr.json +1 -1
  44. package/package.json +4 -4
@@ -14,5 +14,5 @@ import { Result } from "../types/fp.js";
14
14
  * @remarks
15
15
  * Delete an existing API key. Authenticate with a [management key](/docs/guides/overview/auth/management-api-keys).
16
16
  */
17
- export declare function apiKeysDelete(client: OpenRouterCore, request: operations.DeleteKeysRequest, options?: RequestOptions): APIPromise<Result<operations.DeleteKeysResponse, errors.UnauthorizedResponseError | errors.NotFoundResponseError | errors.TooManyRequestsResponseError | errors.InternalServerResponseError | OpenRouterError | ResponseValidationError | ConnectionError | RequestAbortedError | RequestTimeoutError | InvalidRequestError | UnexpectedClientError | SDKValidationError>>;
17
+ export declare function apiKeysDelete(client: OpenRouterCore, request: operations.DeleteKeysRequest, options?: RequestOptions): APIPromise<Result<operations.DeleteKeysResponse, errors.UnauthorizedResponseError | errors.ForbiddenResponseError | errors.NotFoundResponseError | errors.TooManyRequestsResponseError | errors.InternalServerResponseError | OpenRouterError | ResponseValidationError | ConnectionError | RequestAbortedError | RequestTimeoutError | InvalidRequestError | UnexpectedClientError | SDKValidationError>>;
18
18
  //# sourceMappingURL=apiKeysDelete.d.ts.map
@@ -9,7 +9,7 @@ import { compactMap } from "../lib/primitives.js";
9
9
  import { safeParse } from "../lib/schemas.js";
10
10
  import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
11
11
  import { pathToFunc } from "../lib/url.js";
12
- import { InternalServerResponseError$inboundSchema as errors_InternalServerResponseError$inboundSchema } from "../models/errors/internalserverresponseerror.js"; import { NotFoundResponseError$inboundSchema as errors_NotFoundResponseError$inboundSchema } from "../models/errors/notfoundresponseerror.js"; import { TooManyRequestsResponseError$inboundSchema as errors_TooManyRequestsResponseError$inboundSchema } from "../models/errors/toomanyrequestsresponseerror.js"; import { UnauthorizedResponseError$inboundSchema as errors_UnauthorizedResponseError$inboundSchema } from "../models/errors/unauthorizedresponseerror.js";
12
+ import { ForbiddenResponseError$inboundSchema as errors_ForbiddenResponseError$inboundSchema } from "../models/errors/forbiddenresponseerror.js"; import { InternalServerResponseError$inboundSchema as errors_InternalServerResponseError$inboundSchema } from "../models/errors/internalserverresponseerror.js"; import { NotFoundResponseError$inboundSchema as errors_NotFoundResponseError$inboundSchema } from "../models/errors/notfoundresponseerror.js"; import { TooManyRequestsResponseError$inboundSchema as errors_TooManyRequestsResponseError$inboundSchema } from "../models/errors/toomanyrequestsresponseerror.js"; import { UnauthorizedResponseError$inboundSchema as errors_UnauthorizedResponseError$inboundSchema } from "../models/errors/unauthorizedresponseerror.js";
13
13
  import { DeleteKeysRequest$outboundSchema as operations_DeleteKeysRequest$outboundSchema, DeleteKeysResponse$inboundSchema as operations_DeleteKeysResponse$inboundSchema } from "../models/operations/deletekeys.js";
14
14
  import { APIPromise } from "../types/async.js";
15
15
  /**
@@ -93,7 +93,7 @@ async function $do(client, request, options) {
93
93
  const responseFields = {
94
94
  HttpMeta: { Response: response, Request: req },
95
95
  };
96
- const [result] = await M.match(M.json(200, operations_DeleteKeysResponse$inboundSchema), M.jsonErr(401, errors_UnauthorizedResponseError$inboundSchema), M.jsonErr(404, errors_NotFoundResponseError$inboundSchema), M.jsonErr(429, errors_TooManyRequestsResponseError$inboundSchema), M.jsonErr(500, errors_InternalServerResponseError$inboundSchema), M.fail("4XX"), M.fail("5XX"))(response, req, { extraFields: responseFields });
96
+ const [result] = await M.match(M.json(200, operations_DeleteKeysResponse$inboundSchema), M.jsonErr(401, errors_UnauthorizedResponseError$inboundSchema), M.jsonErr(403, errors_ForbiddenResponseError$inboundSchema), M.jsonErr(404, errors_NotFoundResponseError$inboundSchema), M.jsonErr(429, errors_TooManyRequestsResponseError$inboundSchema), M.jsonErr(500, errors_InternalServerResponseError$inboundSchema), M.fail("4XX"), M.fail("5XX"))(response, req, { extraFields: responseFields });
97
97
  if (!result.ok) {
98
98
  return [result, { status: "complete", request: req, response }];
99
99
  }
@@ -14,5 +14,5 @@ import { Result } from "../types/fp.js";
14
14
  * @remarks
15
15
  * Get a single API key by hash. [Management key](/docs/guides/overview/auth/management-api-keys) required.
16
16
  */
17
- export declare function apiKeysGet(client: OpenRouterCore, request: operations.GetKeyRequest, options?: RequestOptions): APIPromise<Result<operations.GetKeyResponse, errors.UnauthorizedResponseError | errors.NotFoundResponseError | errors.TooManyRequestsResponseError | errors.InternalServerResponseError | OpenRouterError | ResponseValidationError | ConnectionError | RequestAbortedError | RequestTimeoutError | InvalidRequestError | UnexpectedClientError | SDKValidationError>>;
17
+ export declare function apiKeysGet(client: OpenRouterCore, request: operations.GetKeyRequest, options?: RequestOptions): APIPromise<Result<operations.GetKeyResponse, errors.UnauthorizedResponseError | errors.ForbiddenResponseError | errors.NotFoundResponseError | errors.TooManyRequestsResponseError | errors.InternalServerResponseError | OpenRouterError | ResponseValidationError | ConnectionError | RequestAbortedError | RequestTimeoutError | InvalidRequestError | UnexpectedClientError | SDKValidationError>>;
18
18
  //# sourceMappingURL=apiKeysGet.d.ts.map
@@ -9,7 +9,7 @@ import { compactMap } from "../lib/primitives.js";
9
9
  import { safeParse } from "../lib/schemas.js";
10
10
  import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
11
11
  import { pathToFunc } from "../lib/url.js";
12
- import { InternalServerResponseError$inboundSchema as errors_InternalServerResponseError$inboundSchema } from "../models/errors/internalserverresponseerror.js"; import { NotFoundResponseError$inboundSchema as errors_NotFoundResponseError$inboundSchema } from "../models/errors/notfoundresponseerror.js"; import { TooManyRequestsResponseError$inboundSchema as errors_TooManyRequestsResponseError$inboundSchema } from "../models/errors/toomanyrequestsresponseerror.js"; import { UnauthorizedResponseError$inboundSchema as errors_UnauthorizedResponseError$inboundSchema } from "../models/errors/unauthorizedresponseerror.js";
12
+ import { ForbiddenResponseError$inboundSchema as errors_ForbiddenResponseError$inboundSchema } from "../models/errors/forbiddenresponseerror.js"; import { InternalServerResponseError$inboundSchema as errors_InternalServerResponseError$inboundSchema } from "../models/errors/internalserverresponseerror.js"; import { NotFoundResponseError$inboundSchema as errors_NotFoundResponseError$inboundSchema } from "../models/errors/notfoundresponseerror.js"; import { TooManyRequestsResponseError$inboundSchema as errors_TooManyRequestsResponseError$inboundSchema } from "../models/errors/toomanyrequestsresponseerror.js"; import { UnauthorizedResponseError$inboundSchema as errors_UnauthorizedResponseError$inboundSchema } from "../models/errors/unauthorizedresponseerror.js";
13
13
  import { GetKeyRequest$outboundSchema as operations_GetKeyRequest$outboundSchema, GetKeyResponse$inboundSchema as operations_GetKeyResponse$inboundSchema } from "../models/operations/getkey.js";
14
14
  import { APIPromise } from "../types/async.js";
15
15
  /**
@@ -93,7 +93,7 @@ async function $do(client, request, options) {
93
93
  const responseFields = {
94
94
  HttpMeta: { Response: response, Request: req },
95
95
  };
96
- const [result] = await M.match(M.json(200, operations_GetKeyResponse$inboundSchema), M.jsonErr(401, errors_UnauthorizedResponseError$inboundSchema), M.jsonErr(404, errors_NotFoundResponseError$inboundSchema), M.jsonErr(429, errors_TooManyRequestsResponseError$inboundSchema), M.jsonErr(500, errors_InternalServerResponseError$inboundSchema), M.fail("4XX"), M.fail("5XX"))(response, req, { extraFields: responseFields });
96
+ const [result] = await M.match(M.json(200, operations_GetKeyResponse$inboundSchema), M.jsonErr(401, errors_UnauthorizedResponseError$inboundSchema), M.jsonErr(403, errors_ForbiddenResponseError$inboundSchema), M.jsonErr(404, errors_NotFoundResponseError$inboundSchema), M.jsonErr(429, errors_TooManyRequestsResponseError$inboundSchema), M.jsonErr(500, errors_InternalServerResponseError$inboundSchema), M.fail("4XX"), M.fail("5XX"))(response, req, { extraFields: responseFields });
97
97
  if (!result.ok) {
98
98
  return [result, { status: "complete", request: req, response }];
99
99
  }
@@ -14,5 +14,5 @@ import { Result } from "../types/fp.js";
14
14
  * @remarks
15
15
  * List all API keys for the authenticated user. [Management key](/docs/guides/overview/auth/management-api-keys) required.
16
16
  */
17
- export declare function apiKeysList(client: OpenRouterCore, request?: operations.ListRequest | undefined, options?: RequestOptions): APIPromise<Result<operations.ListResponse, errors.BadRequestResponseError | errors.UnauthorizedResponseError | errors.NotFoundResponseError | errors.TooManyRequestsResponseError | errors.InternalServerResponseError | OpenRouterError | ResponseValidationError | ConnectionError | RequestAbortedError | RequestTimeoutError | InvalidRequestError | UnexpectedClientError | SDKValidationError>>;
17
+ export declare function apiKeysList(client: OpenRouterCore, request?: operations.ListRequest | undefined, options?: RequestOptions): APIPromise<Result<operations.ListResponse, errors.BadRequestResponseError | errors.UnauthorizedResponseError | errors.ForbiddenResponseError | errors.NotFoundResponseError | errors.TooManyRequestsResponseError | errors.InternalServerResponseError | OpenRouterError | ResponseValidationError | ConnectionError | RequestAbortedError | RequestTimeoutError | InvalidRequestError | UnexpectedClientError | SDKValidationError>>;
18
18
  //# sourceMappingURL=apiKeysList.d.ts.map
@@ -9,7 +9,7 @@ import { compactMap } from "../lib/primitives.js";
9
9
  import { safeParse } from "../lib/schemas.js";
10
10
  import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
11
11
  import { pathToFunc } from "../lib/url.js";
12
- import { BadRequestResponseError$inboundSchema as errors_BadRequestResponseError$inboundSchema } from "../models/errors/badrequestresponseerror.js"; import { InternalServerResponseError$inboundSchema as errors_InternalServerResponseError$inboundSchema } from "../models/errors/internalserverresponseerror.js"; import { NotFoundResponseError$inboundSchema as errors_NotFoundResponseError$inboundSchema } from "../models/errors/notfoundresponseerror.js"; import { TooManyRequestsResponseError$inboundSchema as errors_TooManyRequestsResponseError$inboundSchema } from "../models/errors/toomanyrequestsresponseerror.js"; import { UnauthorizedResponseError$inboundSchema as errors_UnauthorizedResponseError$inboundSchema } from "../models/errors/unauthorizedresponseerror.js";
12
+ import { BadRequestResponseError$inboundSchema as errors_BadRequestResponseError$inboundSchema } from "../models/errors/badrequestresponseerror.js"; import { ForbiddenResponseError$inboundSchema as errors_ForbiddenResponseError$inboundSchema } from "../models/errors/forbiddenresponseerror.js"; import { InternalServerResponseError$inboundSchema as errors_InternalServerResponseError$inboundSchema } from "../models/errors/internalserverresponseerror.js"; import { NotFoundResponseError$inboundSchema as errors_NotFoundResponseError$inboundSchema } from "../models/errors/notfoundresponseerror.js"; import { TooManyRequestsResponseError$inboundSchema as errors_TooManyRequestsResponseError$inboundSchema } from "../models/errors/toomanyrequestsresponseerror.js"; import { UnauthorizedResponseError$inboundSchema as errors_UnauthorizedResponseError$inboundSchema } from "../models/errors/unauthorizedresponseerror.js";
13
13
  import { ListRequest$outboundSchema as operations_ListRequest$outboundSchema, ListResponse$inboundSchema as operations_ListResponse$inboundSchema } from "../models/operations/list.js";
14
14
  import { APIPromise } from "../types/async.js";
15
15
  /**
@@ -94,7 +94,7 @@ async function $do(client, request, options) {
94
94
  const responseFields = {
95
95
  HttpMeta: { Response: response, Request: req },
96
96
  };
97
- const [result] = await M.match(M.json(200, operations_ListResponse$inboundSchema), M.jsonErr(400, errors_BadRequestResponseError$inboundSchema), M.jsonErr(401, errors_UnauthorizedResponseError$inboundSchema), M.jsonErr(404, errors_NotFoundResponseError$inboundSchema), M.jsonErr(429, errors_TooManyRequestsResponseError$inboundSchema), M.jsonErr(500, errors_InternalServerResponseError$inboundSchema), M.fail("4XX"), M.fail("5XX"))(response, req, { extraFields: responseFields });
97
+ const [result] = await M.match(M.json(200, operations_ListResponse$inboundSchema), M.jsonErr(400, errors_BadRequestResponseError$inboundSchema), M.jsonErr(401, errors_UnauthorizedResponseError$inboundSchema), M.jsonErr(403, errors_ForbiddenResponseError$inboundSchema), M.jsonErr(404, errors_NotFoundResponseError$inboundSchema), M.jsonErr(429, errors_TooManyRequestsResponseError$inboundSchema), M.jsonErr(500, errors_InternalServerResponseError$inboundSchema), M.fail("4XX"), M.fail("5XX"))(response, req, { extraFields: responseFields });
98
98
  if (!result.ok) {
99
99
  return [result, { status: "complete", request: req, response }];
100
100
  }
@@ -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.30";
53
+ readonly sdkVersion: "1.5.32";
54
54
  readonly genVersion: "2.950.13";
55
- readonly userAgent: "speakeasy-sdk/typescript 1.5.30 2.950.13 1.0.0 @openrouter/sdk";
55
+ readonly userAgent: "speakeasy-sdk/typescript 1.5.32 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.30",
32
+ sdkVersion: "1.5.32",
33
33
  genVersion: "2.950.13",
34
- userAgent: "speakeasy-sdk/typescript 1.5.30 2.950.13 1.0.0 @openrouter/sdk",
34
+ userAgent: "speakeasy-sdk/typescript 1.5.32 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";
@@ -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
@@ -78,7 +78,7 @@ export type CreateKeysRequestBody = {
78
78
  */
79
79
  name: string;
80
80
  /**
81
- * The workspace to create the API key in. Defaults to the default workspace if not provided.
81
+ * The workspace to create the API key in. Defaults to the default workspace for an organization-scoped management key, or to the management key's own workspace for a workspace-scoped one, which cannot create keys elsewhere.
82
82
  */
83
83
  workspaceId?: string | undefined;
84
84
  };
@@ -55,7 +55,7 @@ export type ListRequest = {
55
55
  */
56
56
  offset?: number | null | undefined;
57
57
  /**
58
- * Filter API keys by workspace ID. By default, keys in the default workspace are returned.
58
+ * Filter API keys by workspace ID. By default an organization-scoped management key gets the default workspace; a workspace-scoped management key always gets its own workspace and cannot list another.
59
59
  */
60
60
  workspaceId?: string | undefined;
61
61
  };
@@ -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`);
@@ -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