@openrouter/sdk 1.4.10 → 1.4.12

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 (56) hide show
  1. package/esm/funcs/endUsersCreate.d.ts +19 -0
  2. package/esm/funcs/endUsersCreate.js +100 -0
  3. package/esm/funcs/endUsersDelete.d.ts +18 -0
  4. package/esm/funcs/endUsersDelete.js +103 -0
  5. package/esm/funcs/endUsersGet.d.ts +19 -0
  6. package/esm/funcs/endUsersGet.js +103 -0
  7. package/esm/funcs/endUsersList.d.ts +21 -0
  8. package/esm/funcs/endUsersList.js +135 -0
  9. package/esm/funcs/endUsersUpdate.d.ts +19 -0
  10. package/esm/funcs/endUsersUpdate.js +106 -0
  11. package/esm/funcs/organizationGetSettings.d.ts +18 -0
  12. package/esm/funcs/organizationGetSettings.js +96 -0
  13. package/esm/funcs/organizationUpdateSettings.d.ts +18 -0
  14. package/esm/funcs/organizationUpdateSettings.js +99 -0
  15. package/esm/lib/config.d.ts +2 -2
  16. package/esm/lib/config.js +2 -2
  17. package/esm/models/createenduserrequest.d.ts +15 -0
  18. package/esm/models/createenduserrequest.js +13 -0
  19. package/esm/models/enduser.d.ts +25 -0
  20. package/esm/models/enduser.js +24 -0
  21. package/esm/models/enduserresponse.d.ts +11 -0
  22. package/esm/models/enduserresponse.js +15 -0
  23. package/esm/models/index.d.ts +7 -0
  24. package/esm/models/index.js +7 -0
  25. package/esm/models/listendusersresponse.d.ts +15 -0
  26. package/esm/models/listendusersresponse.js +21 -0
  27. package/esm/models/operations/createenduser.d.ts +56 -0
  28. package/esm/models/operations/createenduser.js +23 -0
  29. package/esm/models/operations/deleteenduser.d.ts +58 -0
  30. package/esm/models/operations/deleteenduser.js +21 -0
  31. package/esm/models/operations/getenduser.d.ts +58 -0
  32. package/esm/models/operations/getenduser.js +21 -0
  33. package/esm/models/operations/getorganizationsettings.d.ts +65 -0
  34. package/esm/models/operations/getorganizationsettings.js +29 -0
  35. package/esm/models/operations/index.d.ts +7 -0
  36. package/esm/models/operations/index.js +7 -0
  37. package/esm/models/operations/listendusers.d.ts +82 -0
  38. package/esm/models/operations/listendusers.js +38 -0
  39. package/esm/models/operations/updateenduser.d.ts +61 -0
  40. package/esm/models/operations/updateenduser.js +24 -0
  41. package/esm/models/operations/updateorganizationsettings.d.ts +67 -0
  42. package/esm/models/operations/updateorganizationsettings.js +31 -0
  43. package/esm/models/organizationsettings.d.ts +17 -0
  44. package/esm/models/organizationsettings.js +20 -0
  45. package/esm/models/updateenduserrequest.d.ts +15 -0
  46. package/esm/models/updateenduserrequest.js +18 -0
  47. package/esm/models/updateorganizationsettingsrequest.d.ts +15 -0
  48. package/esm/models/updateorganizationsettingsrequest.js +18 -0
  49. package/esm/sdk/endusers.d.ts +44 -0
  50. package/esm/sdk/endusers.js +60 -0
  51. package/esm/sdk/organization.d.ts +14 -0
  52. package/esm/sdk/organization.js +21 -0
  53. package/esm/sdk/sdk.d.ts +3 -0
  54. package/esm/sdk/sdk.js +4 -0
  55. package/jsr.json +1 -1
  56. package/package.json +8 -8
@@ -0,0 +1,67 @@
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 UpdateOrganizationSettingsGlobals = {
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 UpdateOrganizationSettingsRequest = {
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
+ updateOrganizationSettingsRequest: models.UpdateOrganizationSettingsRequest;
47
+ };
48
+ /**
49
+ * Organization settings updated successfully
50
+ */
51
+ export type UpdateOrganizationSettingsResponse = {
52
+ data: models.OrganizationSettings;
53
+ };
54
+ /** @internal */
55
+ export type UpdateOrganizationSettingsRequest$Outbound = {
56
+ "HTTP-Referer"?: string | undefined;
57
+ appTitle?: string | undefined;
58
+ appCategories?: string | undefined;
59
+ UpdateOrganizationSettingsRequest: models.UpdateOrganizationSettingsRequest$Outbound;
60
+ };
61
+ /** @internal */
62
+ export declare const UpdateOrganizationSettingsRequest$outboundSchema: z.ZodType<UpdateOrganizationSettingsRequest$Outbound, UpdateOrganizationSettingsRequest>;
63
+ export declare function updateOrganizationSettingsRequestToJSON(updateOrganizationSettingsRequest: UpdateOrganizationSettingsRequest): string;
64
+ /** @internal */
65
+ export declare const UpdateOrganizationSettingsResponse$inboundSchema: z.ZodType<UpdateOrganizationSettingsResponse, unknown>;
66
+ export declare function updateOrganizationSettingsResponseFromJSON(jsonString: string): SafeParseResult<UpdateOrganizationSettingsResponse, SDKValidationError>;
67
+ //# sourceMappingURL=updateorganizationsettings.d.ts.map
@@ -0,0 +1,31 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ * @generated-id: a634597bbc3c
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 { OrganizationSettings$inboundSchema as models_OrganizationSettings$inboundSchema } from "../organizationsettings.js"; import { UpdateOrganizationSettingsRequest$outboundSchema as models_UpdateOrganizationSettingsRequest$outboundSchema } from "../updateorganizationsettingsrequest.js";
9
+ /** @internal */
10
+ export const UpdateOrganizationSettingsRequest$outboundSchema = z.object({
11
+ httpReferer: z.string().optional(),
12
+ appTitle: z.string().optional(),
13
+ appCategories: z.string().optional(),
14
+ updateOrganizationSettingsRequest: models_UpdateOrganizationSettingsRequest$outboundSchema,
15
+ }).transform((v) => {
16
+ return remap$(v, {
17
+ httpReferer: "HTTP-Referer",
18
+ updateOrganizationSettingsRequest: "UpdateOrganizationSettingsRequest",
19
+ });
20
+ });
21
+ export function updateOrganizationSettingsRequestToJSON(updateOrganizationSettingsRequest) {
22
+ return JSON.stringify(UpdateOrganizationSettingsRequest$outboundSchema.parse(updateOrganizationSettingsRequest));
23
+ }
24
+ /** @internal */
25
+ export const UpdateOrganizationSettingsResponse$inboundSchema = z.object({
26
+ data: models_OrganizationSettings$inboundSchema,
27
+ });
28
+ export function updateOrganizationSettingsResponseFromJSON(jsonString) {
29
+ return safeParse(jsonString, (x) => UpdateOrganizationSettingsResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdateOrganizationSettingsResponse' from JSON`);
30
+ }
31
+ //# sourceMappingURL=updateorganizationsettings.js.map
@@ -0,0 +1,17 @@
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 OrganizationSettings = {
5
+ /**
6
+ * ID of the organization the settings belong to
7
+ */
8
+ id: string;
9
+ /**
10
+ * When true, `GET /api/v1/models` called with one of the organization's API keys returns only the models that key can use (the `/api/v1/models/user` catalog), and the signed-in dashboard shows the same list. Anonymous requests always receive the public catalog.
11
+ */
12
+ isFilteredModelCatalogEnabled: boolean;
13
+ };
14
+ /** @internal */
15
+ export declare const OrganizationSettings$inboundSchema: z.ZodType<OrganizationSettings, unknown>;
16
+ export declare function organizationSettingsFromJSON(jsonString: string): SafeParseResult<OrganizationSettings, SDKValidationError>;
17
+ //# sourceMappingURL=organizationsettings.d.ts.map
@@ -0,0 +1,20 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ * @generated-id: 9998a62748cc
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
+ /** @internal */
9
+ export const OrganizationSettings$inboundSchema = z.object({
10
+ id: z.string(),
11
+ is_filtered_model_catalog_enabled: z.boolean(),
12
+ }).transform((v) => {
13
+ return remap$(v, {
14
+ "is_filtered_model_catalog_enabled": "isFilteredModelCatalogEnabled",
15
+ });
16
+ });
17
+ export function organizationSettingsFromJSON(jsonString) {
18
+ return safeParse(jsonString, (x) => OrganizationSettings$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'OrganizationSettings' from JSON`);
19
+ }
20
+ //# sourceMappingURL=organizationsettings.js.map
@@ -0,0 +1,15 @@
1
+ import * as z from "zod/v4";
2
+ export type UpdateEndUserRequest = {
3
+ /**
4
+ * Registration state only; does not enforce inference access.
5
+ */
6
+ isActive: boolean;
7
+ };
8
+ /** @internal */
9
+ export type UpdateEndUserRequest$Outbound = {
10
+ is_active: boolean;
11
+ };
12
+ /** @internal */
13
+ export declare const UpdateEndUserRequest$outboundSchema: z.ZodType<UpdateEndUserRequest$Outbound, UpdateEndUserRequest>;
14
+ export declare function updateEndUserRequestToJSON(updateEndUserRequest: UpdateEndUserRequest): string;
15
+ //# sourceMappingURL=updateenduserrequest.d.ts.map
@@ -0,0 +1,18 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ * @generated-id: 74fcb924ddd3
4
+ */
5
+ import * as z from "zod/v4";
6
+ import { remap as remap$ } from "../lib/primitives.js";
7
+ /** @internal */
8
+ export const UpdateEndUserRequest$outboundSchema = z.object({
9
+ isActive: z.boolean(),
10
+ }).transform((v) => {
11
+ return remap$(v, {
12
+ isActive: "is_active",
13
+ });
14
+ });
15
+ export function updateEndUserRequestToJSON(updateEndUserRequest) {
16
+ return JSON.stringify(UpdateEndUserRequest$outboundSchema.parse(updateEndUserRequest));
17
+ }
18
+ //# sourceMappingURL=updateenduserrequest.js.map
@@ -0,0 +1,15 @@
1
+ import * as z from "zod/v4";
2
+ export type UpdateOrganizationSettingsRequest = {
3
+ /**
4
+ * When true, `GET /api/v1/models` called with one of the organization's API keys returns only the models that key can use (the `/api/v1/models/user` catalog), and the signed-in dashboard shows the same list. Anonymous requests always receive the public catalog.
5
+ */
6
+ isFilteredModelCatalogEnabled: boolean;
7
+ };
8
+ /** @internal */
9
+ export type UpdateOrganizationSettingsRequest$Outbound = {
10
+ is_filtered_model_catalog_enabled: boolean;
11
+ };
12
+ /** @internal */
13
+ export declare const UpdateOrganizationSettingsRequest$outboundSchema: z.ZodType<UpdateOrganizationSettingsRequest$Outbound, UpdateOrganizationSettingsRequest>;
14
+ export declare function updateOrganizationSettingsRequestToJSON(updateOrganizationSettingsRequest: UpdateOrganizationSettingsRequest): string;
15
+ //# sourceMappingURL=updateorganizationsettingsrequest.d.ts.map
@@ -0,0 +1,18 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ * @generated-id: 0eff61f1211f
4
+ */
5
+ import * as z from "zod/v4";
6
+ import { remap as remap$ } from "../lib/primitives.js";
7
+ /** @internal */
8
+ export const UpdateOrganizationSettingsRequest$outboundSchema = z.object({
9
+ isFilteredModelCatalogEnabled: z.boolean(),
10
+ }).transform((v) => {
11
+ return remap$(v, {
12
+ isFilteredModelCatalogEnabled: "is_filtered_model_catalog_enabled",
13
+ });
14
+ });
15
+ export function updateOrganizationSettingsRequestToJSON(updateOrganizationSettingsRequest) {
16
+ return JSON.stringify(UpdateOrganizationSettingsRequest$outboundSchema.parse(updateOrganizationSettingsRequest));
17
+ }
18
+ //# sourceMappingURL=updateorganizationsettingsrequest.js.map
@@ -0,0 +1,44 @@
1
+ import { ClientSDK, RequestOptions } from "../lib/sdks.js";
2
+ import * as models from "../models/index.js";
3
+ import * as operations from "../models/operations/index.js";
4
+ import { PageIterator } from "../types/operations.js";
5
+ export declare class EndUsers extends ClientSDK {
6
+ /**
7
+ * List registered end users
8
+ *
9
+ * @remarks
10
+ * List registrations belonging to the authenticated organization. Inactive registrations are excluded by default. [Management key](/docs/guides/overview/auth/management-api-keys) required.
11
+ */
12
+ list(request?: operations.ListEndUsersRequest | undefined, options?: RequestOptions): Promise<PageIterator<operations.ListEndUsersResponse, {
13
+ offset: number;
14
+ }>>;
15
+ /**
16
+ * Register an end user
17
+ *
18
+ * @remarks
19
+ * Register a caller-supplied tracking ID under the authenticated organization. No login account, policy, or credentials are created. [Management key](/docs/guides/overview/auth/management-api-keys) required.
20
+ */
21
+ create(request: operations.CreateEndUserRequest, options?: RequestOptions): Promise<models.EndUserResponse>;
22
+ /**
23
+ * Deactivate a registered end user
24
+ *
25
+ * @remarks
26
+ * Soft-deactivate a registration while retaining its tracking ID. Repeat deactivation succeeds. This does not block inference; reactivate through PATCH. [Management key](/docs/guides/overview/auth/management-api-keys) required.
27
+ */
28
+ delete(request: operations.DeleteEndUserRequest, options?: RequestOptions): Promise<void>;
29
+ /**
30
+ * Get a registered end user
31
+ *
32
+ * @remarks
33
+ * Retrieve an active or inactive registration by its URL-encoded, caller-supplied tracking ID. [Management key](/docs/guides/overview/auth/management-api-keys) required.
34
+ */
35
+ get(request: operations.GetEndUserRequest, options?: RequestOptions): Promise<models.EndUserResponse>;
36
+ /**
37
+ * Update a registered end user
38
+ *
39
+ * @remarks
40
+ * Update registration state without changing identity. State changes do not enforce inference access. [Management key](/docs/guides/overview/auth/management-api-keys) required.
41
+ */
42
+ update(request: operations.UpdateEndUserRequest, options?: RequestOptions): Promise<models.EndUserResponse>;
43
+ }
44
+ //# sourceMappingURL=endusers.d.ts.map
@@ -0,0 +1,60 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ * @generated-id: 8e12697ee658
4
+ */
5
+ import { endUsersCreate } from "../funcs/endUsersCreate.js";
6
+ import { endUsersDelete } from "../funcs/endUsersDelete.js";
7
+ import { endUsersGet } from "../funcs/endUsersGet.js";
8
+ import { endUsersList } from "../funcs/endUsersList.js";
9
+ import { endUsersUpdate } from "../funcs/endUsersUpdate.js";
10
+ import { ClientSDK } from "../lib/sdks.js";
11
+ import { unwrapAsync } from "../types/fp.js";
12
+ import { unwrapResultIterator } from "../types/operations.js";
13
+ export class EndUsers extends ClientSDK {
14
+ /**
15
+ * List registered end users
16
+ *
17
+ * @remarks
18
+ * List registrations belonging to the authenticated organization. Inactive registrations are excluded by default. [Management key](/docs/guides/overview/auth/management-api-keys) required.
19
+ */
20
+ async list(request, options) {
21
+ return unwrapResultIterator(endUsersList(this, request, options));
22
+ }
23
+ /**
24
+ * Register an end user
25
+ *
26
+ * @remarks
27
+ * Register a caller-supplied tracking ID under the authenticated organization. No login account, policy, or credentials are created. [Management key](/docs/guides/overview/auth/management-api-keys) required.
28
+ */
29
+ async create(request, options) {
30
+ return unwrapAsync(endUsersCreate(this, request, options));
31
+ }
32
+ /**
33
+ * Deactivate a registered end user
34
+ *
35
+ * @remarks
36
+ * Soft-deactivate a registration while retaining its tracking ID. Repeat deactivation succeeds. This does not block inference; reactivate through PATCH. [Management key](/docs/guides/overview/auth/management-api-keys) required.
37
+ */
38
+ async delete(request, options) {
39
+ return unwrapAsync(endUsersDelete(this, request, options));
40
+ }
41
+ /**
42
+ * Get a registered end user
43
+ *
44
+ * @remarks
45
+ * Retrieve an active or inactive registration by its URL-encoded, caller-supplied tracking ID. [Management key](/docs/guides/overview/auth/management-api-keys) required.
46
+ */
47
+ async get(request, options) {
48
+ return unwrapAsync(endUsersGet(this, request, options));
49
+ }
50
+ /**
51
+ * Update a registered end user
52
+ *
53
+ * @remarks
54
+ * Update registration state without changing identity. State changes do not enforce inference access. [Management key](/docs/guides/overview/auth/management-api-keys) required.
55
+ */
56
+ async update(request, options) {
57
+ return unwrapAsync(endUsersUpdate(this, request, options));
58
+ }
59
+ }
60
+ //# sourceMappingURL=endusers.js.map
@@ -11,5 +11,19 @@ export declare class Organization extends ClientSDK {
11
11
  listMembers(request?: operations.ListOrganizationMembersRequest | undefined, options?: RequestOptions): Promise<PageIterator<operations.ListOrganizationMembersResponse, {
12
12
  offset: number;
13
13
  }>>;
14
+ /**
15
+ * Get organization settings
16
+ *
17
+ * @remarks
18
+ * Get the settings of the organization associated with the authenticated management key. [Management key](/docs/guides/overview/auth/management-api-keys) required.
19
+ */
20
+ getSettings(request?: operations.GetOrganizationSettingsRequest | undefined, options?: RequestOptions): Promise<operations.GetOrganizationSettingsResponse>;
21
+ /**
22
+ * Update organization settings
23
+ *
24
+ * @remarks
25
+ * Update the settings of the organization associated with the authenticated management key. [Management key](/docs/guides/overview/auth/management-api-keys) required.
26
+ */
27
+ updateSettings(request: operations.UpdateOrganizationSettingsRequest, options?: RequestOptions): Promise<operations.UpdateOrganizationSettingsResponse>;
14
28
  }
15
29
  //# sourceMappingURL=organization.d.ts.map
@@ -2,8 +2,11 @@
2
2
  * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
3
  * @generated-id: 976de6f449fe
4
4
  */
5
+ import { organizationGetSettings } from "../funcs/organizationGetSettings.js";
5
6
  import { organizationListMembers } from "../funcs/organizationListMembers.js";
7
+ import { organizationUpdateSettings } from "../funcs/organizationUpdateSettings.js";
6
8
  import { ClientSDK } from "../lib/sdks.js";
9
+ import { unwrapAsync } from "../types/fp.js";
7
10
  import { unwrapResultIterator } from "../types/operations.js";
8
11
  export class Organization extends ClientSDK {
9
12
  /**
@@ -15,5 +18,23 @@ export class Organization extends ClientSDK {
15
18
  async listMembers(request, options) {
16
19
  return unwrapResultIterator(organizationListMembers(this, request, options));
17
20
  }
21
+ /**
22
+ * Get organization settings
23
+ *
24
+ * @remarks
25
+ * Get the settings of the organization associated with the authenticated management key. [Management key](/docs/guides/overview/auth/management-api-keys) required.
26
+ */
27
+ async getSettings(request, options) {
28
+ return unwrapAsync(organizationGetSettings(this, request, options));
29
+ }
30
+ /**
31
+ * Update organization settings
32
+ *
33
+ * @remarks
34
+ * Update the settings of the organization associated with the authenticated management key. [Management key](/docs/guides/overview/auth/management-api-keys) required.
35
+ */
36
+ async updateSettings(request, options) {
37
+ return unwrapAsync(organizationUpdateSettings(this, request, options));
38
+ }
18
39
  }
19
40
  //# sourceMappingURL=organization.js.map
package/esm/sdk/sdk.d.ts CHANGED
@@ -13,6 +13,7 @@ import { Credits } from "./credits.js";
13
13
  import { Datasets } from "./datasets.js";
14
14
  import { Embeddings } from "./embeddings.js";
15
15
  import { Endpoints } from "./endpoints.js";
16
+ import { EndUsers } from "./endusers.js";
16
17
  import { Files } from "./files.js";
17
18
  import { Generations } from "./generations.js";
18
19
  import { Guardrails } from "./guardrails.js";
@@ -70,6 +71,8 @@ export declare class OpenRouter extends ClientSDK {
70
71
  get datasets(): Datasets;
71
72
  private _embeddings?;
72
73
  get embeddings(): Embeddings;
74
+ private _endUsers?;
75
+ get endUsers(): EndUsers;
73
76
  private _endpoints?;
74
77
  get endpoints(): Endpoints;
75
78
  private _files?;
package/esm/sdk/sdk.js CHANGED
@@ -17,6 +17,7 @@ import { Credits } from "./credits.js";
17
17
  import { Datasets } from "./datasets.js";
18
18
  import { Embeddings } from "./embeddings.js";
19
19
  import { Endpoints } from "./endpoints.js";
20
+ import { EndUsers } from "./endusers.js";
20
21
  import { Files } from "./files.js";
21
22
  import { Generations } from "./generations.js";
22
23
  import { Guardrails } from "./guardrails.js";
@@ -86,6 +87,9 @@ export class OpenRouter extends ClientSDK {
86
87
  get embeddings() {
87
88
  return (this._embeddings ?? (this._embeddings = new Embeddings(this._options)));
88
89
  }
90
+ get endUsers() {
91
+ return (this._endUsers ?? (this._endUsers = new EndUsers(this._options)));
92
+ }
89
93
  get endpoints() {
90
94
  return (this._endpoints ?? (this._endpoints = new Endpoints(this._options)));
91
95
  }
package/jsr.json CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  {
4
4
  "name": "@openrouter/sdk",
5
- "version": "1.4.10",
5
+ "version": "1.4.12",
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": "1.4.10",
3
+ "version": "1.4.12",
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 && node scripts/unbarrel-imports.js",
75
75
  "prepublishOnly": "npm run build",
76
- "typecheck": "tsc --noEmit",
77
- "typecheck:transit": "exit 0",
78
- "postinstall": "node scripts/check-types.js || true",
79
- "prepare": "npm run build",
80
76
  "compile": "tsc && node scripts/unbarrel-imports.js",
77
+ "prepare": "npm run build",
81
78
  "test": "vitest --run --project unit",
79
+ "typecheck:transit": "exit 0",
80
+ "postinstall": "node scripts/check-types.js || true",
82
81
  "test:e2e": "vitest --run --project e2e",
83
82
  "test:transit": "exit 0",
84
- "test:watch": "vitest --watch --project unit"
83
+ "test:watch": "vitest --watch --project unit",
84
+ "typecheck": "tsc --noEmit"
85
85
  },
86
86
  "peerDependencies": {
87
87