@openrouter/sdk 0.13.22 → 0.13.24

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.
@@ -0,0 +1,21 @@
1
+ import { OpenRouterCore } from "../core.js";
2
+ import { RequestOptions } from "../lib/sdks.js";
3
+ import { ConnectionError, InvalidRequestError, RequestAbortedError, RequestTimeoutError, UnexpectedClientError } from "../models/errors/httpclienterrors.js";
4
+ import * as errors from "../models/errors/index.js";
5
+ import { OpenRouterError } from "../models/errors/openroutererror.js";
6
+ import { ResponseValidationError } from "../models/errors/responsevalidationerror.js";
7
+ import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
8
+ import * as operations from "../models/operations/index.js";
9
+ import { APIPromise } from "../types/async.js";
10
+ import { Result } from "../types/fp.js";
11
+ import { PageIterator } from "../types/operations.js";
12
+ /**
13
+ * List workspace members
14
+ *
15
+ * @remarks
16
+ * List all members of a workspace. Returns paginated results. For the default workspace, returns all organization members (implicit membership). [Management key](/docs/guides/overview/auth/management-api-keys) required.
17
+ */
18
+ export declare function workspacesListMembers(client: OpenRouterCore, request: operations.ListWorkspaceMembersRequest, options?: RequestOptions): APIPromise<PageIterator<Result<operations.ListWorkspaceMembersResponse, errors.UnauthorizedResponseError | errors.ForbiddenResponseError | errors.NotFoundResponseError | errors.InternalServerResponseError | OpenRouterError | ResponseValidationError | ConnectionError | RequestAbortedError | RequestTimeoutError | InvalidRequestError | UnexpectedClientError | SDKValidationError>, {
19
+ offset: number;
20
+ }>>;
21
+ //# sourceMappingURL=workspacesListMembers.d.ts.map
@@ -0,0 +1,140 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ * @generated-id: 52e1d4037081
4
+ */
5
+ import { dlv } from "../lib/dlv.js";
6
+ import { encodeFormQuery, encodeSimple } from "../lib/encodings.js";
7
+ import { matchStatusCode } from "../lib/http.js";
8
+ import * as M from "../lib/matchers.js";
9
+ import { compactMap } from "../lib/primitives.js";
10
+ import { safeParse } from "../lib/schemas.js";
11
+ import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
12
+ import { pathToFunc } from "../lib/url.js";
13
+ import * as errors from "../models/errors/index.js";
14
+ import * as operations from "../models/operations/index.js";
15
+ import { APIPromise } from "../types/async.js";
16
+ import { createPageIterator, haltIterator, } from "../types/operations.js";
17
+ /**
18
+ * List workspace members
19
+ *
20
+ * @remarks
21
+ * List all members of a workspace. Returns paginated results. For the default workspace, returns all organization members (implicit membership). [Management key](/docs/guides/overview/auth/management-api-keys) required.
22
+ */
23
+ export function workspacesListMembers(client, request, options) {
24
+ return new APIPromise($do(client, request, options));
25
+ }
26
+ async function $do(client, request, options) {
27
+ const parsed = safeParse(request, (value) => operations.ListWorkspaceMembersRequest$outboundSchema.parse(value), "Input validation failed");
28
+ if (!parsed.ok) {
29
+ return [haltIterator(parsed), { status: "invalid" }];
30
+ }
31
+ const payload = parsed.value;
32
+ const body = null;
33
+ const pathParams = {
34
+ id: encodeSimple("id", payload.id, {
35
+ explode: false,
36
+ charEncoding: "percent",
37
+ }),
38
+ };
39
+ const path = pathToFunc("/workspaces/{id}/members")(pathParams);
40
+ const query = encodeFormQuery({
41
+ "limit": payload.limit,
42
+ "offset": payload.offset,
43
+ });
44
+ const headers = new Headers(compactMap({
45
+ Accept: "application/json",
46
+ "HTTP-Referer": encodeSimple("HTTP-Referer", payload["HTTP-Referer"] ?? client._options.httpReferer, { explode: false, charEncoding: "none" }),
47
+ "X-OpenRouter-Categories": encodeSimple("X-OpenRouter-Categories", payload.appCategories ?? client._options.appCategories, { explode: false, charEncoding: "none" }),
48
+ "X-OpenRouter-Title": encodeSimple("X-OpenRouter-Title", payload.appTitle ?? client._options.appTitle, { explode: false, charEncoding: "none" }),
49
+ }));
50
+ const secConfig = await extractSecurity(client._options.apiKey);
51
+ const securityInput = secConfig == null ? {} : { apiKey: secConfig };
52
+ const requestSecurity = resolveGlobalSecurity(securityInput);
53
+ const context = {
54
+ options: client._options,
55
+ baseURL: options?.serverURL ?? client._baseURL ?? "",
56
+ operationID: "listWorkspaceMembers",
57
+ oAuth2Scopes: null,
58
+ resolvedSecurity: requestSecurity,
59
+ securitySource: client._options.apiKey,
60
+ retryConfig: options?.retries
61
+ || client._options.retryConfig
62
+ || {
63
+ strategy: "backoff",
64
+ backoff: {
65
+ initialInterval: 500,
66
+ maxInterval: 60000,
67
+ exponent: 1.5,
68
+ maxElapsedTime: 3600000,
69
+ },
70
+ retryConnectionErrors: true,
71
+ }
72
+ || { strategy: "none" },
73
+ retryCodes: options?.retryCodes || ["5XX"],
74
+ };
75
+ const requestRes = client._createRequest(context, {
76
+ security: requestSecurity,
77
+ method: "GET",
78
+ baseURL: options?.serverURL,
79
+ path: path,
80
+ headers: headers,
81
+ query: query,
82
+ body: body,
83
+ userAgent: client._options.userAgent,
84
+ timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
85
+ }, options);
86
+ if (!requestRes.ok) {
87
+ return [haltIterator(requestRes), { status: "invalid" }];
88
+ }
89
+ const req = requestRes.value;
90
+ const doResult = await client._do(req, {
91
+ context,
92
+ isErrorStatusCode: (statusCode) => matchStatusCode({ status: statusCode }, ["4XX", "5XX"]),
93
+ retryConfig: context.retryConfig,
94
+ retryCodes: context.retryCodes,
95
+ });
96
+ if (!doResult.ok) {
97
+ return [haltIterator(doResult), { status: "request-error", request: req }];
98
+ }
99
+ const response = doResult.value;
100
+ const responseFields = {
101
+ HttpMeta: { Response: response, Request: req },
102
+ };
103
+ const [result, raw] = await M.match(M.json(200, operations.ListWorkspaceMembersResponse$inboundSchema, {
104
+ key: "Result",
105
+ }), M.jsonErr(401, errors.UnauthorizedResponseError$inboundSchema), M.jsonErr(403, errors.ForbiddenResponseError$inboundSchema), M.jsonErr(404, errors.NotFoundResponseError$inboundSchema), M.jsonErr(500, errors.InternalServerResponseError$inboundSchema), M.fail("4XX"), M.fail("5XX"))(response, req, { extraFields: responseFields });
106
+ if (!result.ok) {
107
+ return [haltIterator(result), {
108
+ status: "complete",
109
+ request: req,
110
+ response,
111
+ }];
112
+ }
113
+ const nextFunc = (responseData) => {
114
+ const offset = request?.offset ?? 0;
115
+ if (!responseData) {
116
+ return { next: () => null };
117
+ }
118
+ const results = dlv(responseData, "data");
119
+ if (!Array.isArray(results) || !results.length) {
120
+ return { next: () => null };
121
+ }
122
+ const limit = request?.limit ?? 0;
123
+ if (results.length < limit) {
124
+ return { next: () => null };
125
+ }
126
+ const nextOffset = offset + results.length;
127
+ const nextVal = () => workspacesListMembers(client, {
128
+ ...request,
129
+ offset: nextOffset,
130
+ }, options);
131
+ return { next: nextVal, "~next": { offset: nextOffset } };
132
+ };
133
+ const page = { ...result, ...nextFunc(raw) };
134
+ return [{ ...page, ...createPageIterator(page, (v) => !v.ok) }, {
135
+ status: "complete",
136
+ request: req,
137
+ response,
138
+ }];
139
+ }
140
+ //# sourceMappingURL=workspacesListMembers.js.map
@@ -49,8 +49,8 @@ export declare function serverURLFromOptions(options: SDKOptions): URL | null;
49
49
  export declare const SDK_METADATA: {
50
50
  readonly language: "typescript";
51
51
  readonly openapiDocVersion: "1.0.0";
52
- readonly sdkVersion: "0.13.22";
52
+ readonly sdkVersion: "0.13.24";
53
53
  readonly genVersion: "2.884.4";
54
- readonly userAgent: "speakeasy-sdk/typescript 0.13.22 2.884.4 1.0.0 @openrouter/sdk";
54
+ readonly userAgent: "speakeasy-sdk/typescript 0.13.24 2.884.4 1.0.0 @openrouter/sdk";
55
55
  };
56
56
  //# sourceMappingURL=config.d.ts.map
package/esm/lib/config.js CHANGED
@@ -26,8 +26,8 @@ export function serverURLFromOptions(options) {
26
26
  export const SDK_METADATA = {
27
27
  language: "typescript",
28
28
  openapiDocVersion: "1.0.0",
29
- sdkVersion: "0.13.22",
29
+ sdkVersion: "0.13.24",
30
30
  genVersion: "2.884.4",
31
- userAgent: "speakeasy-sdk/typescript 0.13.22 2.884.4 1.0.0 @openrouter/sdk",
31
+ userAgent: "speakeasy-sdk/typescript 0.13.24 2.884.4 1.0.0 @openrouter/sdk",
32
32
  };
33
33
  //# sourceMappingURL=config.js.map
@@ -273,6 +273,7 @@ export * from "./listobservabilitydestinationsresponse.js";
273
273
  export * from "./listpresetsresponse.js";
274
274
  export * from "./listpresetversionsresponse.js";
275
275
  export * from "./listworkspacebudgetsresponse.js";
276
+ export * from "./listworkspacemembersresponse.js";
276
277
  export * from "./listworkspacesresponse.js";
277
278
  export * from "./localshellcallitem.js";
278
279
  export * from "./localshellcalloutputitem.js";
@@ -346,6 +347,7 @@ export * from "./outputcustomtoolcallitem.js";
346
347
  export * from "./outputdatetimeitem.js";
347
348
  export * from "./outputfilesearchcallitem.js";
348
349
  export * from "./outputfilesearchservertoolitem.js";
350
+ export * from "./outputfilesservertoolitem.js";
349
351
  export * from "./outputfunctioncallitem.js";
350
352
  export * from "./outputfusionservertoolitem.js";
351
353
  export * from "./outputimagegenerationcallitem.js";
@@ -277,6 +277,7 @@ export * from "./listobservabilitydestinationsresponse.js";
277
277
  export * from "./listpresetsresponse.js";
278
278
  export * from "./listpresetversionsresponse.js";
279
279
  export * from "./listworkspacebudgetsresponse.js";
280
+ export * from "./listworkspacemembersresponse.js";
280
281
  export * from "./listworkspacesresponse.js";
281
282
  export * from "./localshellcallitem.js";
282
283
  export * from "./localshellcalloutputitem.js";
@@ -350,6 +351,7 @@ export * from "./outputcustomtoolcallitem.js";
350
351
  export * from "./outputdatetimeitem.js";
351
352
  export * from "./outputfilesearchcallitem.js";
352
353
  export * from "./outputfilesearchservertoolitem.js";
354
+ export * from "./outputfilesservertoolitem.js";
353
355
  export * from "./outputfunctioncallitem.js";
354
356
  export * from "./outputfusionservertoolitem.js";
355
357
  export * from "./outputimagegenerationcallitem.js";
@@ -28,6 +28,7 @@ import { OutputCustomToolCallItem, OutputCustomToolCallItem$Outbound } from "./o
28
28
  import { OutputDatetimeItem, OutputDatetimeItem$Outbound } from "./outputdatetimeitem.js";
29
29
  import { OutputFileSearchCallItem, OutputFileSearchCallItem$Outbound } from "./outputfilesearchcallitem.js";
30
30
  import { OutputFileSearchServerToolItem, OutputFileSearchServerToolItem$Outbound } from "./outputfilesearchservertoolitem.js";
31
+ import { OutputFilesServerToolItem, OutputFilesServerToolItem$Outbound } from "./outputfilesservertoolitem.js";
31
32
  import { OutputFunctionCallItem, OutputFunctionCallItem$Outbound } from "./outputfunctioncallitem.js";
32
33
  import { OutputFusionServerToolItem, OutputFusionServerToolItem$Outbound } from "./outputfusionservertoolitem.js";
33
34
  import { OutputImageGenerationCallItem, OutputImageGenerationCallItem$Outbound } from "./outputimagegenerationcallitem.js";
@@ -130,11 +131,11 @@ export type InputsMessage = {
130
131
  status?: InputsStatusCompleted1 | InputsStatusIncomplete1 | InputsStatusInProgress1 | undefined;
131
132
  type: InputsTypeMessage;
132
133
  };
133
- export type InputsUnion1 = OutputCodeInterpreterCallItem | FunctionCallItem | LocalShellCallItem | McpApprovalRequestItem | McpCallItem | ApplyPatchCallItem | InputsMessage | OutputFunctionCallItem | OutputCustomToolCallItem | OutputFileSearchCallItem | OutputComputerCallItem | OutputDatetimeItem | McpListToolsItem | CustomToolCallItem | ReasoningItem | FunctionCallOutputItem | ApplyPatchCallOutputItem | InputsReasoning | OutputWebSearchCallItem | OutputImageGenerationCallItem | LocalShellCallOutputItem | ShellCallItem | ShellCallOutputItem | McpApprovalResponseItem | CustomToolCallOutputItem | OutputWebSearchServerToolItem | OutputCodeInterpreterServerToolItem | OutputFileSearchServerToolItem | OutputImageGenerationServerToolItem | OutputBrowserUseServerToolItem | OutputBashServerToolItem | OutputTextEditorServerToolItem | OutputApplyPatchServerToolItem | OutputWebFetchServerToolItem | OutputToolSearchServerToolItem | OutputMemoryServerToolItem | OutputMcpServerToolItem | OutputSearchModelsServerToolItem | OutputFusionServerToolItem | OutputAdvisorServerToolItem | OutputSubagentServerToolItem | CompactionItem | ItemReferenceItem | EasyInputMessage | InputMessageItem;
134
+ export type InputsUnion1 = OutputCodeInterpreterCallItem | FunctionCallItem | LocalShellCallItem | McpApprovalRequestItem | McpCallItem | ApplyPatchCallItem | InputsMessage | OutputFunctionCallItem | OutputCustomToolCallItem | OutputFileSearchCallItem | OutputComputerCallItem | OutputDatetimeItem | McpListToolsItem | CustomToolCallItem | ReasoningItem | FunctionCallOutputItem | ApplyPatchCallOutputItem | InputsReasoning | OutputWebSearchCallItem | OutputImageGenerationCallItem | LocalShellCallOutputItem | ShellCallItem | ShellCallOutputItem | McpApprovalResponseItem | CustomToolCallOutputItem | OutputWebSearchServerToolItem | OutputCodeInterpreterServerToolItem | OutputFileSearchServerToolItem | OutputImageGenerationServerToolItem | OutputBrowserUseServerToolItem | OutputBashServerToolItem | OutputTextEditorServerToolItem | OutputApplyPatchServerToolItem | OutputWebFetchServerToolItem | OutputToolSearchServerToolItem | OutputMemoryServerToolItem | OutputMcpServerToolItem | OutputSearchModelsServerToolItem | OutputFusionServerToolItem | OutputAdvisorServerToolItem | OutputSubagentServerToolItem | OutputFilesServerToolItem | CompactionItem | ItemReferenceItem | EasyInputMessage | InputMessageItem;
134
135
  /**
135
136
  * Input for a response request - can be a string or array of items
136
137
  */
137
- export type InputsUnion = string | Array<OutputCodeInterpreterCallItem | FunctionCallItem | LocalShellCallItem | McpApprovalRequestItem | McpCallItem | ApplyPatchCallItem | InputsMessage | OutputFunctionCallItem | OutputCustomToolCallItem | OutputFileSearchCallItem | OutputComputerCallItem | OutputDatetimeItem | McpListToolsItem | CustomToolCallItem | ReasoningItem | FunctionCallOutputItem | ApplyPatchCallOutputItem | InputsReasoning | OutputWebSearchCallItem | OutputImageGenerationCallItem | LocalShellCallOutputItem | ShellCallItem | ShellCallOutputItem | McpApprovalResponseItem | CustomToolCallOutputItem | OutputWebSearchServerToolItem | OutputCodeInterpreterServerToolItem | OutputFileSearchServerToolItem | OutputImageGenerationServerToolItem | OutputBrowserUseServerToolItem | OutputBashServerToolItem | OutputTextEditorServerToolItem | OutputApplyPatchServerToolItem | OutputWebFetchServerToolItem | OutputToolSearchServerToolItem | OutputMemoryServerToolItem | OutputMcpServerToolItem | OutputSearchModelsServerToolItem | OutputFusionServerToolItem | OutputAdvisorServerToolItem | OutputSubagentServerToolItem | CompactionItem | ItemReferenceItem | EasyInputMessage | InputMessageItem>;
138
+ export type InputsUnion = string | Array<OutputCodeInterpreterCallItem | FunctionCallItem | LocalShellCallItem | McpApprovalRequestItem | McpCallItem | ApplyPatchCallItem | InputsMessage | OutputFunctionCallItem | OutputCustomToolCallItem | OutputFileSearchCallItem | OutputComputerCallItem | OutputDatetimeItem | McpListToolsItem | CustomToolCallItem | ReasoningItem | FunctionCallOutputItem | ApplyPatchCallOutputItem | InputsReasoning | OutputWebSearchCallItem | OutputImageGenerationCallItem | LocalShellCallOutputItem | ShellCallItem | ShellCallOutputItem | McpApprovalResponseItem | CustomToolCallOutputItem | OutputWebSearchServerToolItem | OutputCodeInterpreterServerToolItem | OutputFileSearchServerToolItem | OutputImageGenerationServerToolItem | OutputBrowserUseServerToolItem | OutputBashServerToolItem | OutputTextEditorServerToolItem | OutputApplyPatchServerToolItem | OutputWebFetchServerToolItem | OutputToolSearchServerToolItem | OutputMemoryServerToolItem | OutputMcpServerToolItem | OutputSearchModelsServerToolItem | OutputFusionServerToolItem | OutputAdvisorServerToolItem | OutputSubagentServerToolItem | OutputFilesServerToolItem | CompactionItem | ItemReferenceItem | EasyInputMessage | InputMessageItem>;
138
139
  /** @internal */
139
140
  export declare const InputsStatusInProgress2$outboundSchema: z.ZodEnum<typeof InputsStatusInProgress2>;
140
141
  /** @internal */
@@ -209,12 +210,12 @@ export type InputsMessage$Outbound = {
209
210
  export declare const InputsMessage$outboundSchema: z.ZodType<InputsMessage$Outbound, InputsMessage>;
210
211
  export declare function inputsMessageToJSON(inputsMessage: InputsMessage): string;
211
212
  /** @internal */
212
- export type InputsUnion1$Outbound = OutputCodeInterpreterCallItem$Outbound | FunctionCallItem$Outbound | LocalShellCallItem$Outbound | McpApprovalRequestItem$Outbound | McpCallItem$Outbound | ApplyPatchCallItem$Outbound | InputsMessage$Outbound | OutputFunctionCallItem$Outbound | OutputCustomToolCallItem$Outbound | OutputFileSearchCallItem$Outbound | OutputComputerCallItem$Outbound | OutputDatetimeItem$Outbound | McpListToolsItem$Outbound | CustomToolCallItem$Outbound | ReasoningItem$Outbound | FunctionCallOutputItem$Outbound | ApplyPatchCallOutputItem$Outbound | InputsReasoning$Outbound | OutputWebSearchCallItem$Outbound | OutputImageGenerationCallItem$Outbound | LocalShellCallOutputItem$Outbound | ShellCallItem$Outbound | ShellCallOutputItem$Outbound | McpApprovalResponseItem$Outbound | CustomToolCallOutputItem$Outbound | OutputWebSearchServerToolItem$Outbound | OutputCodeInterpreterServerToolItem$Outbound | OutputFileSearchServerToolItem$Outbound | OutputImageGenerationServerToolItem$Outbound | OutputBrowserUseServerToolItem$Outbound | OutputBashServerToolItem$Outbound | OutputTextEditorServerToolItem$Outbound | OutputApplyPatchServerToolItem$Outbound | OutputWebFetchServerToolItem$Outbound | OutputToolSearchServerToolItem$Outbound | OutputMemoryServerToolItem$Outbound | OutputMcpServerToolItem$Outbound | OutputSearchModelsServerToolItem$Outbound | OutputFusionServerToolItem$Outbound | OutputAdvisorServerToolItem$Outbound | OutputSubagentServerToolItem$Outbound | CompactionItem$Outbound | ItemReferenceItem$Outbound | EasyInputMessage$Outbound | InputMessageItem$Outbound;
213
+ export type InputsUnion1$Outbound = OutputCodeInterpreterCallItem$Outbound | FunctionCallItem$Outbound | LocalShellCallItem$Outbound | McpApprovalRequestItem$Outbound | McpCallItem$Outbound | ApplyPatchCallItem$Outbound | InputsMessage$Outbound | OutputFunctionCallItem$Outbound | OutputCustomToolCallItem$Outbound | OutputFileSearchCallItem$Outbound | OutputComputerCallItem$Outbound | OutputDatetimeItem$Outbound | McpListToolsItem$Outbound | CustomToolCallItem$Outbound | ReasoningItem$Outbound | FunctionCallOutputItem$Outbound | ApplyPatchCallOutputItem$Outbound | InputsReasoning$Outbound | OutputWebSearchCallItem$Outbound | OutputImageGenerationCallItem$Outbound | LocalShellCallOutputItem$Outbound | ShellCallItem$Outbound | ShellCallOutputItem$Outbound | McpApprovalResponseItem$Outbound | CustomToolCallOutputItem$Outbound | OutputWebSearchServerToolItem$Outbound | OutputCodeInterpreterServerToolItem$Outbound | OutputFileSearchServerToolItem$Outbound | OutputImageGenerationServerToolItem$Outbound | OutputBrowserUseServerToolItem$Outbound | OutputBashServerToolItem$Outbound | OutputTextEditorServerToolItem$Outbound | OutputApplyPatchServerToolItem$Outbound | OutputWebFetchServerToolItem$Outbound | OutputToolSearchServerToolItem$Outbound | OutputMemoryServerToolItem$Outbound | OutputMcpServerToolItem$Outbound | OutputSearchModelsServerToolItem$Outbound | OutputFusionServerToolItem$Outbound | OutputAdvisorServerToolItem$Outbound | OutputSubagentServerToolItem$Outbound | OutputFilesServerToolItem$Outbound | CompactionItem$Outbound | ItemReferenceItem$Outbound | EasyInputMessage$Outbound | InputMessageItem$Outbound;
213
214
  /** @internal */
214
215
  export declare const InputsUnion1$outboundSchema: z.ZodType<InputsUnion1$Outbound, InputsUnion1>;
215
216
  export declare function inputsUnion1ToJSON(inputsUnion1: InputsUnion1): string;
216
217
  /** @internal */
217
- export type InputsUnion$Outbound = string | Array<OutputCodeInterpreterCallItem$Outbound | FunctionCallItem$Outbound | LocalShellCallItem$Outbound | McpApprovalRequestItem$Outbound | McpCallItem$Outbound | ApplyPatchCallItem$Outbound | InputsMessage$Outbound | OutputFunctionCallItem$Outbound | OutputCustomToolCallItem$Outbound | OutputFileSearchCallItem$Outbound | OutputComputerCallItem$Outbound | OutputDatetimeItem$Outbound | McpListToolsItem$Outbound | CustomToolCallItem$Outbound | ReasoningItem$Outbound | FunctionCallOutputItem$Outbound | ApplyPatchCallOutputItem$Outbound | InputsReasoning$Outbound | OutputWebSearchCallItem$Outbound | OutputImageGenerationCallItem$Outbound | LocalShellCallOutputItem$Outbound | ShellCallItem$Outbound | ShellCallOutputItem$Outbound | McpApprovalResponseItem$Outbound | CustomToolCallOutputItem$Outbound | OutputWebSearchServerToolItem$Outbound | OutputCodeInterpreterServerToolItem$Outbound | OutputFileSearchServerToolItem$Outbound | OutputImageGenerationServerToolItem$Outbound | OutputBrowserUseServerToolItem$Outbound | OutputBashServerToolItem$Outbound | OutputTextEditorServerToolItem$Outbound | OutputApplyPatchServerToolItem$Outbound | OutputWebFetchServerToolItem$Outbound | OutputToolSearchServerToolItem$Outbound | OutputMemoryServerToolItem$Outbound | OutputMcpServerToolItem$Outbound | OutputSearchModelsServerToolItem$Outbound | OutputFusionServerToolItem$Outbound | OutputAdvisorServerToolItem$Outbound | OutputSubagentServerToolItem$Outbound | CompactionItem$Outbound | ItemReferenceItem$Outbound | EasyInputMessage$Outbound | InputMessageItem$Outbound>;
218
+ export type InputsUnion$Outbound = string | Array<OutputCodeInterpreterCallItem$Outbound | FunctionCallItem$Outbound | LocalShellCallItem$Outbound | McpApprovalRequestItem$Outbound | McpCallItem$Outbound | ApplyPatchCallItem$Outbound | InputsMessage$Outbound | OutputFunctionCallItem$Outbound | OutputCustomToolCallItem$Outbound | OutputFileSearchCallItem$Outbound | OutputComputerCallItem$Outbound | OutputDatetimeItem$Outbound | McpListToolsItem$Outbound | CustomToolCallItem$Outbound | ReasoningItem$Outbound | FunctionCallOutputItem$Outbound | ApplyPatchCallOutputItem$Outbound | InputsReasoning$Outbound | OutputWebSearchCallItem$Outbound | OutputImageGenerationCallItem$Outbound | LocalShellCallOutputItem$Outbound | ShellCallItem$Outbound | ShellCallOutputItem$Outbound | McpApprovalResponseItem$Outbound | CustomToolCallOutputItem$Outbound | OutputWebSearchServerToolItem$Outbound | OutputCodeInterpreterServerToolItem$Outbound | OutputFileSearchServerToolItem$Outbound | OutputImageGenerationServerToolItem$Outbound | OutputBrowserUseServerToolItem$Outbound | OutputBashServerToolItem$Outbound | OutputTextEditorServerToolItem$Outbound | OutputApplyPatchServerToolItem$Outbound | OutputWebFetchServerToolItem$Outbound | OutputToolSearchServerToolItem$Outbound | OutputMemoryServerToolItem$Outbound | OutputMcpServerToolItem$Outbound | OutputSearchModelsServerToolItem$Outbound | OutputFusionServerToolItem$Outbound | OutputAdvisorServerToolItem$Outbound | OutputSubagentServerToolItem$Outbound | OutputFilesServerToolItem$Outbound | CompactionItem$Outbound | ItemReferenceItem$Outbound | EasyInputMessage$Outbound | InputMessageItem$Outbound>;
218
219
  /** @internal */
219
220
  export declare const InputsUnion$outboundSchema: z.ZodType<InputsUnion$Outbound, InputsUnion>;
220
221
  export declare function inputsUnionToJSON(inputsUnion: InputsUnion): string;
@@ -32,6 +32,7 @@ import { OutputCustomToolCallItem$outboundSchema, } from "./outputcustomtoolcall
32
32
  import { OutputDatetimeItem$outboundSchema, } from "./outputdatetimeitem.js";
33
33
  import { OutputFileSearchCallItem$outboundSchema, } from "./outputfilesearchcallitem.js";
34
34
  import { OutputFileSearchServerToolItem$outboundSchema, } from "./outputfilesearchservertoolitem.js";
35
+ import { OutputFilesServerToolItem$outboundSchema, } from "./outputfilesservertoolitem.js";
35
36
  import { OutputFunctionCallItem$outboundSchema, } from "./outputfunctioncallitem.js";
36
37
  import { OutputFusionServerToolItem$outboundSchema, } from "./outputfusionservertoolitem.js";
37
38
  import { OutputImageGenerationCallItem$outboundSchema, } from "./outputimagegenerationcallitem.js";
@@ -246,6 +247,7 @@ export const InputsUnion1$outboundSchema = z.union([
246
247
  OutputFusionServerToolItem$outboundSchema,
247
248
  OutputAdvisorServerToolItem$outboundSchema,
248
249
  OutputSubagentServerToolItem$outboundSchema,
250
+ OutputFilesServerToolItem$outboundSchema,
249
251
  CompactionItem$outboundSchema,
250
252
  ItemReferenceItem$outboundSchema,
251
253
  EasyInputMessage$outboundSchema,
@@ -299,6 +301,7 @@ export const InputsUnion$outboundSchema = z.union([
299
301
  OutputFusionServerToolItem$outboundSchema,
300
302
  OutputAdvisorServerToolItem$outboundSchema,
301
303
  OutputSubagentServerToolItem$outboundSchema,
304
+ OutputFilesServerToolItem$outboundSchema,
302
305
  CompactionItem$outboundSchema,
303
306
  ItemReferenceItem$outboundSchema,
304
307
  EasyInputMessage$outboundSchema,
@@ -0,0 +1,18 @@
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 { WorkspaceMember } from "./workspacemember.js";
5
+ export type ListWorkspaceMembersResponse = {
6
+ /**
7
+ * List of workspace members
8
+ */
9
+ data: Array<WorkspaceMember>;
10
+ /**
11
+ * Total number of members in the workspace
12
+ */
13
+ totalCount: number;
14
+ };
15
+ /** @internal */
16
+ export declare const ListWorkspaceMembersResponse$inboundSchema: z.ZodType<ListWorkspaceMembersResponse, unknown>;
17
+ export declare function listWorkspaceMembersResponseFromJSON(jsonString: string): SafeParseResult<ListWorkspaceMembersResponse, SDKValidationError>;
18
+ //# sourceMappingURL=listworkspacemembersresponse.d.ts.map
@@ -0,0 +1,21 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ * @generated-id: b6bc81be6e23
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 { WorkspaceMember$inboundSchema, } from "./workspacemember.js";
9
+ /** @internal */
10
+ export const ListWorkspaceMembersResponse$inboundSchema = z.object({
11
+ data: z.array(WorkspaceMember$inboundSchema),
12
+ total_count: z.int(),
13
+ }).transform((v) => {
14
+ return remap$(v, {
15
+ "total_count": "totalCount",
16
+ });
17
+ });
18
+ export function listWorkspaceMembersResponseFromJSON(jsonString) {
19
+ return safeParse(jsonString, (x) => ListWorkspaceMembersResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListWorkspaceMembersResponse' from JSON`);
20
+ }
21
+ //# sourceMappingURL=listworkspacemembersresponse.js.map
@@ -73,6 +73,7 @@ export * from "./listproviders.js";
73
73
  export * from "./listvideoscontent.js";
74
74
  export * from "./listvideosmodels.js";
75
75
  export * from "./listworkspacebudgets.js";
76
+ export * from "./listworkspacemembers.js";
76
77
  export * from "./listworkspaces.js";
77
78
  export * from "./queryanalytics.js";
78
79
  export * from "./sendchatcompletionrequest.js";
@@ -77,6 +77,7 @@ export * from "./listproviders.js";
77
77
  export * from "./listvideoscontent.js";
78
78
  export * from "./listvideosmodels.js";
79
79
  export * from "./listworkspacebudgets.js";
80
+ export * from "./listworkspacemembers.js";
80
81
  export * from "./listworkspaces.js";
81
82
  export * from "./queryanalytics.js";
82
83
  export * from "./sendchatcompletionrequest.js";
@@ -0,0 +1,77 @@
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 * as models from "../index.js";
5
+ export type ListWorkspaceMembersGlobals = {
6
+ /**
7
+ * The app identifier should be your app's URL and is used as the primary identifier for rankings.
8
+ *
9
+ * @remarks
10
+ * This is used to track API usage per application.
11
+ */
12
+ httpReferer?: string | undefined;
13
+ /**
14
+ * The app display name allows you to customize how your app appears in OpenRouter's dashboard.
15
+ *
16
+ * @remarks
17
+ */
18
+ appTitle?: string | undefined;
19
+ /**
20
+ * Comma-separated list of app categories (e.g. "cli-agent,cloud-agent"). Used for marketplace rankings.
21
+ *
22
+ * @remarks
23
+ */
24
+ appCategories?: string | undefined;
25
+ };
26
+ export type ListWorkspaceMembersRequest = {
27
+ /**
28
+ * The app identifier should be your app's URL and is used as the primary identifier for rankings.
29
+ *
30
+ * @remarks
31
+ * This is used to track API usage per application.
32
+ */
33
+ httpReferer?: string | undefined;
34
+ /**
35
+ * The app display name allows you to customize how your app appears in OpenRouter's dashboard.
36
+ *
37
+ * @remarks
38
+ */
39
+ appTitle?: string | undefined;
40
+ /**
41
+ * Comma-separated list of app categories (e.g. "cli-agent,cloud-agent"). Used for marketplace rankings.
42
+ *
43
+ * @remarks
44
+ */
45
+ appCategories?: string | undefined;
46
+ /**
47
+ * The workspace ID (UUID) or slug
48
+ */
49
+ id: string;
50
+ /**
51
+ * Number of records to skip for pagination
52
+ */
53
+ offset?: number | null | undefined;
54
+ /**
55
+ * Maximum number of records to return (max 100)
56
+ */
57
+ limit?: number | undefined;
58
+ };
59
+ export type ListWorkspaceMembersResponse = {
60
+ result: models.ListWorkspaceMembersResponse;
61
+ };
62
+ /** @internal */
63
+ export type ListWorkspaceMembersRequest$Outbound = {
64
+ "HTTP-Referer"?: string | undefined;
65
+ appTitle?: string | undefined;
66
+ appCategories?: string | undefined;
67
+ id: string;
68
+ offset?: number | null | undefined;
69
+ limit?: number | undefined;
70
+ };
71
+ /** @internal */
72
+ export declare const ListWorkspaceMembersRequest$outboundSchema: z.ZodType<ListWorkspaceMembersRequest$Outbound, ListWorkspaceMembersRequest>;
73
+ export declare function listWorkspaceMembersRequestToJSON(listWorkspaceMembersRequest: ListWorkspaceMembersRequest): string;
74
+ /** @internal */
75
+ export declare const ListWorkspaceMembersResponse$inboundSchema: z.ZodType<ListWorkspaceMembersResponse, unknown>;
76
+ export declare function listWorkspaceMembersResponseFromJSON(jsonString: string): SafeParseResult<ListWorkspaceMembersResponse, SDKValidationError>;
77
+ //# sourceMappingURL=listworkspacemembers.d.ts.map
@@ -0,0 +1,36 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ * @generated-id: 009ed1f62eb4
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 * as models from "../index.js";
9
+ /** @internal */
10
+ export const ListWorkspaceMembersRequest$outboundSchema = z.object({
11
+ httpReferer: z.string().optional(),
12
+ appTitle: z.string().optional(),
13
+ appCategories: z.string().optional(),
14
+ id: z.string(),
15
+ offset: z.nullable(z.int()).optional(),
16
+ limit: z.int().optional(),
17
+ }).transform((v) => {
18
+ return remap$(v, {
19
+ httpReferer: "HTTP-Referer",
20
+ });
21
+ });
22
+ export function listWorkspaceMembersRequestToJSON(listWorkspaceMembersRequest) {
23
+ return JSON.stringify(ListWorkspaceMembersRequest$outboundSchema.parse(listWorkspaceMembersRequest));
24
+ }
25
+ /** @internal */
26
+ export const ListWorkspaceMembersResponse$inboundSchema = z.object({
27
+ Result: models.ListWorkspaceMembersResponse$inboundSchema,
28
+ }).transform((v) => {
29
+ return remap$(v, {
30
+ "Result": "result",
31
+ });
32
+ });
33
+ export function listWorkspaceMembersResponseFromJSON(jsonString) {
34
+ return safeParse(jsonString, (x) => ListWorkspaceMembersResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListWorkspaceMembersResponse' from JSON`);
35
+ }
36
+ //# sourceMappingURL=listworkspacemembers.js.map
@@ -0,0 +1,59 @@
1
+ import * as z from "zod/v4";
2
+ import { ClosedEnum } from "../types/enums.js";
3
+ import { Result as SafeParseResult } from "../types/fp.js";
4
+ import { SDKValidationError } from "./errors/sdkvalidationerror.js";
5
+ import { ToolCallStatus } from "./toolcallstatus.js";
6
+ export declare const OutputFilesServerToolItemType: {
7
+ readonly OpenrouterFiles: "openrouter:files";
8
+ };
9
+ export type OutputFilesServerToolItemType = ClosedEnum<typeof OutputFilesServerToolItemType>;
10
+ /**
11
+ * An openrouter:files server tool output item
12
+ */
13
+ export type OutputFilesServerToolItem = {
14
+ /**
15
+ * Error message when the file operation failed.
16
+ */
17
+ error?: string | undefined;
18
+ /**
19
+ * The target file id supplied in the tool-call arguments.
20
+ */
21
+ fileId?: string | undefined;
22
+ /**
23
+ * The target filename supplied in the tool-call arguments.
24
+ */
25
+ filename?: string | undefined;
26
+ id?: string | undefined;
27
+ /**
28
+ * The file operation performed (list, read, write, or edit).
29
+ */
30
+ operation?: string | undefined;
31
+ /**
32
+ * JSON-serialized result of the file operation.
33
+ */
34
+ result?: string | undefined;
35
+ status: ToolCallStatus;
36
+ type: OutputFilesServerToolItemType;
37
+ };
38
+ /** @internal */
39
+ export declare const OutputFilesServerToolItemType$inboundSchema: z.ZodEnum<typeof OutputFilesServerToolItemType>;
40
+ /** @internal */
41
+ export declare const OutputFilesServerToolItemType$outboundSchema: z.ZodEnum<typeof OutputFilesServerToolItemType>;
42
+ /** @internal */
43
+ export declare const OutputFilesServerToolItem$inboundSchema: z.ZodType<OutputFilesServerToolItem, unknown>;
44
+ /** @internal */
45
+ export type OutputFilesServerToolItem$Outbound = {
46
+ error?: string | undefined;
47
+ file_id?: string | undefined;
48
+ filename?: string | undefined;
49
+ id?: string | undefined;
50
+ operation?: string | undefined;
51
+ result?: string | undefined;
52
+ status: string;
53
+ type: string;
54
+ };
55
+ /** @internal */
56
+ export declare const OutputFilesServerToolItem$outboundSchema: z.ZodType<OutputFilesServerToolItem$Outbound, OutputFilesServerToolItem>;
57
+ export declare function outputFilesServerToolItemToJSON(outputFilesServerToolItem: OutputFilesServerToolItem): string;
58
+ export declare function outputFilesServerToolItemFromJSON(jsonString: string): SafeParseResult<OutputFilesServerToolItem, SDKValidationError>;
59
+ //# sourceMappingURL=outputfilesservertoolitem.d.ts.map
@@ -0,0 +1,52 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ * @generated-id: 66f4fffdcaca
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 { ToolCallStatus$inboundSchema, ToolCallStatus$outboundSchema, } from "./toolcallstatus.js";
9
+ export const OutputFilesServerToolItemType = {
10
+ OpenrouterFiles: "openrouter:files",
11
+ };
12
+ /** @internal */
13
+ export const OutputFilesServerToolItemType$inboundSchema = z.enum(OutputFilesServerToolItemType);
14
+ /** @internal */
15
+ export const OutputFilesServerToolItemType$outboundSchema = OutputFilesServerToolItemType$inboundSchema;
16
+ /** @internal */
17
+ export const OutputFilesServerToolItem$inboundSchema = z.object({
18
+ error: z.string().optional(),
19
+ file_id: z.string().optional(),
20
+ filename: z.string().optional(),
21
+ id: z.string().optional(),
22
+ operation: z.string().optional(),
23
+ result: z.string().optional(),
24
+ status: ToolCallStatus$inboundSchema,
25
+ type: OutputFilesServerToolItemType$inboundSchema,
26
+ }).transform((v) => {
27
+ return remap$(v, {
28
+ "file_id": "fileId",
29
+ });
30
+ });
31
+ /** @internal */
32
+ export const OutputFilesServerToolItem$outboundSchema = z.object({
33
+ error: z.string().optional(),
34
+ fileId: z.string().optional(),
35
+ filename: z.string().optional(),
36
+ id: z.string().optional(),
37
+ operation: z.string().optional(),
38
+ result: z.string().optional(),
39
+ status: ToolCallStatus$outboundSchema,
40
+ type: OutputFilesServerToolItemType$outboundSchema,
41
+ }).transform((v) => {
42
+ return remap$(v, {
43
+ fileId: "file_id",
44
+ });
45
+ });
46
+ export function outputFilesServerToolItemToJSON(outputFilesServerToolItem) {
47
+ return JSON.stringify(OutputFilesServerToolItem$outboundSchema.parse(outputFilesServerToolItem));
48
+ }
49
+ export function outputFilesServerToolItemFromJSON(jsonString) {
50
+ return safeParse(jsonString, (x) => OutputFilesServerToolItem$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'OutputFilesServerToolItem' from JSON`);
51
+ }
52
+ //# sourceMappingURL=outputfilesservertoolitem.js.map
@@ -14,6 +14,7 @@ import { OutputCustomToolCallItem } from "./outputcustomtoolcallitem.js";
14
14
  import { OutputDatetimeItem } from "./outputdatetimeitem.js";
15
15
  import { OutputFileSearchCallItem } from "./outputfilesearchcallitem.js";
16
16
  import { OutputFileSearchServerToolItem } from "./outputfilesearchservertoolitem.js";
17
+ import { OutputFilesServerToolItem } from "./outputfilesservertoolitem.js";
17
18
  import { OutputFunctionCallItem } from "./outputfunctioncallitem.js";
18
19
  import { OutputFusionServerToolItem } from "./outputfusionservertoolitem.js";
19
20
  import { OutputImageGenerationCallItem } from "./outputimagegenerationcallitem.js";
@@ -62,6 +63,8 @@ export type OutputItems = OutputApplyPatchCallItem | (OutputCodeInterpreterCallI
62
63
  type: "openrouter:experimental__search_models";
63
64
  }) | (OutputFileSearchServerToolItem & {
64
65
  type: "openrouter:file_search";
66
+ }) | (OutputFilesServerToolItem & {
67
+ type: "openrouter:files";
65
68
  }) | (OutputFusionServerToolItem & {
66
69
  type: "openrouter:fusion";
67
70
  }) | (OutputImageGenerationServerToolItem & {
@@ -17,6 +17,7 @@ import { OutputCustomToolCallItem$inboundSchema, } from "./outputcustomtoolcalli
17
17
  import { OutputDatetimeItem$inboundSchema, } from "./outputdatetimeitem.js";
18
18
  import { OutputFileSearchCallItem$inboundSchema, } from "./outputfilesearchcallitem.js";
19
19
  import { OutputFileSearchServerToolItem$inboundSchema, } from "./outputfilesearchservertoolitem.js";
20
+ import { OutputFilesServerToolItem$inboundSchema, } from "./outputfilesservertoolitem.js";
20
21
  import { OutputFunctionCallItem$inboundSchema, } from "./outputfunctioncallitem.js";
21
22
  import { OutputFusionServerToolItem$inboundSchema, } from "./outputfusionservertoolitem.js";
22
23
  import { OutputImageGenerationCallItem$inboundSchema, } from "./outputimagegenerationcallitem.js";
@@ -55,6 +56,7 @@ export const OutputItems$inboundSchema = discriminatedUnion("type", {
55
56
  ["openrouter:experimental__search_models"]: OutputSearchModelsServerToolItem$inboundSchema.and(z.object({ type: z.literal("openrouter:experimental__search_models") })),
56
57
  ["openrouter:file_search"]: OutputFileSearchServerToolItem$inboundSchema
57
58
  .and(z.object({ type: z.literal("openrouter:file_search") })),
59
+ ["openrouter:files"]: OutputFilesServerToolItem$inboundSchema.and(z.object({ type: z.literal("openrouter:files") })),
58
60
  ["openrouter:fusion"]: OutputFusionServerToolItem$inboundSchema.and(z.object({ type: z.literal("openrouter:fusion") })),
59
61
  ["openrouter:image_generation"]: OutputImageGenerationServerToolItem$inboundSchema.and(z.object({ type: z.literal("openrouter:image_generation") })),
60
62
  ["openrouter:mcp"]: OutputMcpServerToolItem$inboundSchema.and(z.object({ type: z.literal("openrouter:mcp") })),
@@ -61,6 +61,15 @@ export declare class Workspaces extends ClientSDK {
61
61
  * Create or update the budget for a given interval. Budget limits must strictly decrease as the interval narrows (lifetime > monthly > weekly > daily). [Management key](/docs/guides/overview/auth/management-api-keys) required.
62
62
  */
63
63
  setBudget(request: operations.UpsertWorkspaceBudgetRequest, options?: RequestOptions): Promise<models.UpsertWorkspaceBudgetResponse>;
64
+ /**
65
+ * List workspace members
66
+ *
67
+ * @remarks
68
+ * List all members of a workspace. Returns paginated results. For the default workspace, returns all organization members (implicit membership). [Management key](/docs/guides/overview/auth/management-api-keys) required.
69
+ */
70
+ listMembers(request: operations.ListWorkspaceMembersRequest, options?: RequestOptions): Promise<PageIterator<operations.ListWorkspaceMembersResponse, {
71
+ offset: number;
72
+ }>>;
64
73
  /**
65
74
  * Bulk add members to a workspace
66
75
  *
@@ -10,6 +10,7 @@ import { workspacesDeleteBudget } from "../funcs/workspacesDeleteBudget.js";
10
10
  import { workspacesGet } from "../funcs/workspacesGet.js";
11
11
  import { workspacesList } from "../funcs/workspacesList.js";
12
12
  import { workspacesListBudgets } from "../funcs/workspacesListBudgets.js";
13
+ import { workspacesListMembers } from "../funcs/workspacesListMembers.js";
13
14
  import { workspacesSetBudget } from "../funcs/workspacesSetBudget.js";
14
15
  import { workspacesUpdate } from "../funcs/workspacesUpdate.js";
15
16
  import { ClientSDK } from "../lib/sdks.js";
@@ -88,6 +89,15 @@ export class Workspaces extends ClientSDK {
88
89
  async setBudget(request, options) {
89
90
  return unwrapAsync(workspacesSetBudget(this, request, options));
90
91
  }
92
+ /**
93
+ * List workspace members
94
+ *
95
+ * @remarks
96
+ * List all members of a workspace. Returns paginated results. For the default workspace, returns all organization members (implicit membership). [Management key](/docs/guides/overview/auth/management-api-keys) required.
97
+ */
98
+ async listMembers(request, options) {
99
+ return unwrapResultIterator(workspacesListMembers(this, request, options));
100
+ }
91
101
  /**
92
102
  * Bulk add members to a workspace
93
103
  *
package/jsr.json CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  {
4
4
  "name": "@openrouter/sdk",
5
- "version": "0.13.22",
5
+ "version": "0.13.24",
6
6
  "exports": {
7
7
  ".": "./src/index.ts",
8
8
  "./models/errors": "./src/models/errors/index.ts",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openrouter/sdk",
3
- "version": "0.13.22",
3
+ "version": "0.13.24",
4
4
  "author": "OpenRouter",
5
5
  "description": "The OpenRouter TypeScript SDK is a type-safe toolkit for building AI applications with access to 400+ language models through a unified API.",
6
6
  "keywords": [
@@ -21,8 +21,8 @@
21
21
  "license": "Apache-2.0",
22
22
  "packageManager": "pnpm@10.22.0",
23
23
  "publishConfig": {
24
- "provenance": true,
25
- "access": "public"
24
+ "access": "public",
25
+ "provenance": true
26
26
  },
27
27
  "type": "module",
28
28
  "main": "./esm/index.js",
@@ -73,15 +73,15 @@
73
73
  "lint": "eslint --cache --max-warnings=0 src",
74
74
  "build": "tsc",
75
75
  "prepublishOnly": "npm run build",
76
- "postinstall": "node scripts/check-types.js || true",
77
76
  "prepare": "npm run build",
77
+ "test": "vitest --run --project unit",
78
+ "test:transit": "exit 0",
78
79
  "test:watch": "vitest --watch --project unit",
80
+ "typecheck": "tsc --noEmit",
79
81
  "typecheck:transit": "exit 0",
80
82
  "compile": "tsc",
81
- "test": "vitest --run --project unit",
82
- "test:e2e": "vitest --run --project e2e",
83
- "test:transit": "exit 0",
84
- "typecheck": "tsc --noEmit"
83
+ "postinstall": "node scripts/check-types.js || true",
84
+ "test:e2e": "vitest --run --project e2e"
85
85
  },
86
86
  "peerDependencies": {},
87
87
  "devDependencies": {