@openrouter/sdk 1.5.126 → 1.5.128

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.
@@ -13,9 +13,7 @@ import { Result } from "../types/fp.js";
13
13
  * Create a SCIM group mapping
14
14
  *
15
15
  * @remarks
16
- * Create a SCIM group-to-workspace role mapping. Disabled: no API key can perform this write, including management keys. Use the organization settings in the dashboard, which require step-up verification. A valid management key for an organization with SCIM access receives 403; an invalid key still receives 401 and an organization without SCIM access receives 404.
17
- *
18
- * @deprecated method: This will be removed in a future release, please migrate away from it as soon as possible.
16
+ * Create a SCIM group-to-workspace role mapping. Creating a mapping that already exists with the same role succeeds and re-applies the mapping to the group members. Requesting a different role for an existing mapping returns 409. Assigning the `admin` role is dashboard-only and returns 403 for management keys. [Management key](/docs/guides/overview/auth/management-api-keys) required.
19
17
  */
20
18
  export declare function scimCreate(client: OpenRouterCore, request: operations.CreateScimGroupMappingRequest, options?: RequestOptions): APIPromise<Result<models.CreateScimGroupMappingResponse, errors.BadRequestResponseError | errors.UnauthorizedResponseError | errors.ForbiddenResponseError | errors.NotFoundResponseError | errors.ConflictResponseError | errors.InternalServerResponseError | OpenRouterError | ResponseValidationError | ConnectionError | RequestAbortedError | RequestTimeoutError | InvalidRequestError | UnexpectedClientError | SDKValidationError>>;
21
19
  //# sourceMappingURL=scimCreate.d.ts.map
@@ -16,9 +16,7 @@ import { APIPromise } from "../types/async.js";
16
16
  * Create a SCIM group mapping
17
17
  *
18
18
  * @remarks
19
- * Create a SCIM group-to-workspace role mapping. Disabled: no API key can perform this write, including management keys. Use the organization settings in the dashboard, which require step-up verification. A valid management key for an organization with SCIM access receives 403; an invalid key still receives 401 and an organization without SCIM access receives 404.
20
- *
21
- * @deprecated method: This will be removed in a future release, please migrate away from it as soon as possible.
19
+ * Create a SCIM group-to-workspace role mapping. Creating a mapping that already exists with the same role succeeds and re-applies the mapping to the group members. Requesting a different role for an existing mapping returns 409. Assigning the `admin` role is dashboard-only and returns 403 for management keys. [Management key](/docs/guides/overview/auth/management-api-keys) required.
22
20
  */
23
21
  export function scimCreate(client, request, options) {
24
22
  return new APIPromise($do(client, request, options));
@@ -12,9 +12,7 @@ import { Result } from "../types/fp.js";
12
12
  * Start a SCIM directory sync
13
13
  *
14
14
  * @remarks
15
- * Start a SCIM directory sync. Disabled: no API key can perform this write, including management keys. Use the organization settings in the dashboard, which require step-up verification. A valid management key for an organization with SCIM access receives 403; an invalid key still receives 401 and an organization without SCIM access receives 404.
16
- *
17
- * @deprecated method: This will be removed in a future release, please migrate away from it as soon as possible.
15
+ * Start a SCIM directory sync. [Management key](/docs/guides/overview/auth/management-api-keys) required.
18
16
  */
19
17
  export declare function scimCreateSyncJob(client: OpenRouterCore, request?: operations.CreateScimSyncJobRequest | undefined, options?: RequestOptions): APIPromise<Result<operations.CreateScimSyncJobResponse, errors.UnauthorizedResponseError | errors.ForbiddenResponseError | errors.NotFoundResponseError | errors.InternalServerResponseError | OpenRouterError | ResponseValidationError | ConnectionError | RequestAbortedError | RequestTimeoutError | InvalidRequestError | UnexpectedClientError | SDKValidationError>>;
20
18
  //# sourceMappingURL=scimCreateSyncJob.d.ts.map
@@ -15,9 +15,7 @@ import { APIPromise } from "../types/async.js";
15
15
  * Start a SCIM directory sync
16
16
  *
17
17
  * @remarks
18
- * Start a SCIM directory sync. Disabled: no API key can perform this write, including management keys. Use the organization settings in the dashboard, which require step-up verification. A valid management key for an organization with SCIM access receives 403; an invalid key still receives 401 and an organization without SCIM access receives 404.
19
- *
20
- * @deprecated method: This will be removed in a future release, please migrate away from it as soon as possible.
18
+ * Start a SCIM directory sync. [Management key](/docs/guides/overview/auth/management-api-keys) required.
21
19
  */
22
20
  export function scimCreateSyncJob(client, request, options) {
23
21
  return new APIPromise($do(client, request, options));
@@ -13,9 +13,7 @@ import { Result } from "../types/fp.js";
13
13
  * Delete a SCIM group mapping
14
14
  *
15
15
  * @remarks
16
- * Delete a SCIM group-to-workspace mapping. Disabled: no API key can perform this write, including management keys. Use the organization settings in the dashboard, which require step-up verification. A valid management key for an organization with SCIM access receives 403; an invalid key still receives 401 and an organization without SCIM access receives 404.
17
- *
18
- * @deprecated method: This will be removed in a future release, please migrate away from it as soon as possible.
16
+ * Delete a SCIM group-to-workspace mapping. For an `admin` mapping, `keep_members=true` returns `403` and leaves the mapping in place — preserving members as workspace admins is dashboard-only. [Management key](/docs/guides/overview/auth/management-api-keys) required.
19
17
  */
20
18
  export declare function scimDelete(client: OpenRouterCore, request: operations.DeleteScimGroupMappingRequest, options?: RequestOptions): APIPromise<Result<models.DeleteScimGroupMappingResponse, errors.BadRequestResponseError | errors.UnauthorizedResponseError | errors.ForbiddenResponseError | errors.NotFoundResponseError | errors.InternalServerResponseError | OpenRouterError | ResponseValidationError | ConnectionError | RequestAbortedError | RequestTimeoutError | InvalidRequestError | UnexpectedClientError | SDKValidationError>>;
21
19
  //# sourceMappingURL=scimDelete.d.ts.map
@@ -16,9 +16,7 @@ import { APIPromise } from "../types/async.js";
16
16
  * Delete a SCIM group mapping
17
17
  *
18
18
  * @remarks
19
- * Delete a SCIM group-to-workspace mapping. Disabled: no API key can perform this write, including management keys. Use the organization settings in the dashboard, which require step-up verification. A valid management key for an organization with SCIM access receives 403; an invalid key still receives 401 and an organization without SCIM access receives 404.
20
- *
21
- * @deprecated method: This will be removed in a future release, please migrate away from it as soon as possible.
19
+ * Delete a SCIM group-to-workspace mapping. For an `admin` mapping, `keep_members=true` returns `403` and leaves the mapping in place — preserving members as workspace admins is dashboard-only. [Management key](/docs/guides/overview/auth/management-api-keys) required.
22
20
  */
23
21
  export function scimDelete(client, request, options) {
24
22
  return new APIPromise($do(client, request, options));
@@ -13,9 +13,7 @@ import { Result } from "../types/fp.js";
13
13
  * Update a SCIM group mapping
14
14
  *
15
15
  * @remarks
16
- * Update a SCIM group mapping role. Disabled: no API key can perform this write, including management keys. Use the organization settings in the dashboard, which require step-up verification. A valid management key for an organization with SCIM access receives 403; an invalid key still receives 401 and an organization without SCIM access receives 404.
17
- *
18
- * @deprecated method: This will be removed in a future release, please migrate away from it as soon as possible.
16
+ * Update a SCIM group mapping role. Assigning the `admin` role is dashboard-only and returns 403 for management keys. [Management key](/docs/guides/overview/auth/management-api-keys) required.
19
17
  */
20
18
  export declare function scimUpdate(client: OpenRouterCore, request: operations.UpdateScimGroupMappingRequest, options?: RequestOptions): APIPromise<Result<models.UpdateScimGroupMappingResponse, errors.BadRequestResponseError | errors.UnauthorizedResponseError | errors.ForbiddenResponseError | errors.NotFoundResponseError | errors.InternalServerResponseError | OpenRouterError | ResponseValidationError | ConnectionError | RequestAbortedError | RequestTimeoutError | InvalidRequestError | UnexpectedClientError | SDKValidationError>>;
21
19
  //# sourceMappingURL=scimUpdate.d.ts.map
@@ -16,9 +16,7 @@ import { APIPromise } from "../types/async.js";
16
16
  * Update a SCIM group mapping
17
17
  *
18
18
  * @remarks
19
- * Update a SCIM group mapping role. Disabled: no API key can perform this write, including management keys. Use the organization settings in the dashboard, which require step-up verification. A valid management key for an organization with SCIM access receives 403; an invalid key still receives 401 and an organization without SCIM access receives 404.
20
- *
21
- * @deprecated method: This will be removed in a future release, please migrate away from it as soon as possible.
19
+ * Update a SCIM group mapping role. Assigning the `admin` role is dashboard-only and returns 403 for management keys. [Management key](/docs/guides/overview/auth/management-api-keys) required.
22
20
  */
23
21
  export function scimUpdate(client, request, options) {
24
22
  return new APIPromise($do(client, request, options));
@@ -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: "1.5.126";
52
+ readonly sdkVersion: "1.5.128";
53
53
  readonly genVersion: "2.960.8";
54
- readonly userAgent: "speakeasy-sdk/typescript 1.5.126 2.960.8 1.0.0 @openrouter/sdk";
54
+ readonly userAgent: "speakeasy-sdk/typescript 1.5.128 2.960.8 1.0.0 @openrouter/sdk";
55
55
  };
56
56
  //# sourceMappingURL=config.d.ts.map
package/esm/lib/config.js CHANGED
@@ -25,8 +25,8 @@ export function serverURLFromOptions(options) {
25
25
  export const SDK_METADATA = {
26
26
  language: "typescript",
27
27
  openapiDocVersion: "1.0.0",
28
- sdkVersion: "1.5.126",
28
+ sdkVersion: "1.5.128",
29
29
  genVersion: "2.960.8",
30
- userAgent: "speakeasy-sdk/typescript 1.5.126 2.960.8 1.0.0 @openrouter/sdk",
30
+ userAgent: "speakeasy-sdk/typescript 1.5.128 2.960.8 1.0.0 @openrouter/sdk",
31
31
  };
32
32
  //# sourceMappingURL=config.js.map
@@ -87,6 +87,7 @@ export declare const BYOKProviderSlug: {
87
87
  readonly Parallel: "parallel";
88
88
  readonly Parasail: "parasail";
89
89
  readonly ParetoAlpha: "pareto-alpha";
90
+ readonly ParetoInference: "pareto-inference";
90
91
  readonly ParticleAi: "particle-ai";
91
92
  readonly PearlResearch: "pearl-research";
92
93
  readonly Perceptron: "perceptron";
@@ -89,6 +89,7 @@ export const BYOKProviderSlug = {
89
89
  Parallel: "parallel",
90
90
  Parasail: "parasail",
91
91
  ParetoAlpha: "pareto-alpha",
92
+ ParetoInference: "pareto-inference",
92
93
  ParticleAi: "particle-ai",
93
94
  PearlResearch: "pearl-research",
94
95
  Perceptron: "perceptron",
@@ -345,6 +345,9 @@ export type ImageGenerationProviderPreferencesOptions = {
345
345
  paretoAlpha?: {
346
346
  [k: string]: any;
347
347
  } | undefined;
348
+ paretoInference?: {
349
+ [k: string]: any;
350
+ } | undefined;
348
351
  particleAi?: {
349
352
  [k: string]: any;
350
353
  } | undefined;
@@ -879,6 +882,9 @@ export type ImageGenerationProviderPreferencesOptions$Outbound = {
879
882
  "pareto-alpha"?: {
880
883
  [k: string]: any;
881
884
  } | undefined;
885
+ "pareto-inference"?: {
886
+ [k: string]: any;
887
+ } | undefined;
882
888
  "particle-ai"?: {
883
889
  [k: string]: any;
884
890
  } | undefined;
@@ -138,6 +138,7 @@ export const ImageGenerationProviderPreferencesOptions$outboundSchema = z.object
138
138
  parallel: z.record(z.string(), z.any()).optional(),
139
139
  parasail: z.record(z.string(), z.any()).optional(),
140
140
  paretoAlpha: z.record(z.string(), z.any()).optional(),
141
+ paretoInference: z.record(z.string(), z.any()).optional(),
141
142
  particleAi: z.record(z.string(), z.any()).optional(),
142
143
  pearlResearch: z.record(z.string(), z.any()).optional(),
143
144
  perceptron: z.record(z.string(), z.any()).optional(),
@@ -216,6 +217,7 @@ export const ImageGenerationProviderPreferencesOptions$outboundSchema = z.object
216
217
  nexAgi: "nex-agi",
217
218
  openInference: "open-inference",
218
219
  paretoAlpha: "pareto-alpha",
220
+ paretoInference: "pareto-inference",
219
221
  particleAi: "particle-ai",
220
222
  pearlResearch: "pearl-research",
221
223
  sailResearch: "sail-research",
@@ -105,6 +105,7 @@ export declare const ImageGenerationRequestResolution: {
105
105
  readonly OneDot5K: "1.5K";
106
106
  readonly TwoK: "2K";
107
107
  readonly FourK: "4K";
108
+ readonly EightK: "8K";
108
109
  };
109
110
  /**
110
111
  * Normalized resolution tier of the generated image. Concrete pixel dimensions are derived per-provider.
@@ -82,6 +82,7 @@ export const ImageGenerationRequestResolution = {
82
82
  OneDot5K: "1.5K",
83
83
  TwoK: "2K",
84
84
  FourK: "4K",
85
+ EightK: "8K",
85
86
  };
86
87
  /**
87
88
  * `b64_json` (default) returns the image bytes inline. `url` stores each output in OpenRouter storage and returns a signed download URL in place of the bytes. The URL is a bearer link: anyone holding it can download the image until it expires, up to 24 hours after the image was stored (use `expires_at`); the stored copy is deleted by the storage lifecycle within the following day. The response falls back to `b64_json` when a URL cannot be issued: streaming responses, zero-data-retention requests (account settings, guardrails or `provider.zdr`) or endpoints, or storage being unavailable.
@@ -27,7 +27,7 @@ export declare const KeepMembersEnum: {
27
27
  };
28
28
  export type KeepMembersEnum = OpenEnum<typeof KeepMembersEnum>;
29
29
  /**
30
- * Required. Whether to keep workspace members after deleting the mapping. `false` **removes** the members this mapping granted access to; `true` deletes the mapping while leaving membership intact as manually-managed. There is deliberately no default — omitting it returns `400` so the destructive path cannot be reached by accident. Mirrors the dashboard, whose `DeleteMappingSchema.keepMembers` is likewise required.
30
+ * Required. Whether to keep workspace members after deleting the mapping. `false` **removes** the members this mapping granted access to; `true` deletes the mapping while leaving membership intact as manually-managed. Exception: for an `admin` mapping, `keep_members=true` returns `403` and leaves the mapping in place — management keys cannot preserve members as workspace admins, so do not plan an admin mapping rotation around preserving members through this endpoint (use the dashboard instead). There is deliberately no default — omitting it returns `400` so the destructive path cannot be reached by accident. Mirrors the dashboard, whose `DeleteMappingSchema.keepMembers` is likewise required.
31
31
  */
32
32
  export type KeepMembers = KeepMembersEnum | boolean;
33
33
  export type DeleteScimGroupMappingRequest = {
@@ -52,7 +52,7 @@ export type DeleteScimGroupMappingRequest = {
52
52
  appCategories?: string | undefined;
53
53
  id: string;
54
54
  /**
55
- * Required. Whether to keep workspace members after deleting the mapping. `false` **removes** the members this mapping granted access to; `true` deletes the mapping while leaving membership intact as manually-managed. There is deliberately no default — omitting it returns `400` so the destructive path cannot be reached by accident. Mirrors the dashboard, whose `DeleteMappingSchema.keepMembers` is likewise required.
55
+ * Required. Whether to keep workspace members after deleting the mapping. `false` **removes** the members this mapping granted access to; `true` deletes the mapping while leaving membership intact as manually-managed. Exception: for an `admin` mapping, `keep_members=true` returns `403` and leaves the mapping in place — management keys cannot preserve members as workspace admins, so do not plan an admin mapping rotation around preserving members through this endpoint (use the dashboard instead). There is deliberately no default — omitting it returns `400` so the destructive path cannot be reached by accident. Mirrors the dashboard, whose `DeleteMappingSchema.keepMembers` is likewise required.
56
56
  */
57
57
  keepMembers: KeepMembersEnum | boolean;
58
58
  };
@@ -111,6 +111,7 @@ export declare const Provider: {
111
111
  readonly Parallel: "parallel";
112
112
  readonly Parasail: "parasail";
113
113
  readonly ParetoAlpha: "pareto-alpha";
114
+ readonly ParetoInference: "pareto-inference";
114
115
  readonly ParticleAi: "particle-ai";
115
116
  readonly PearlResearch: "pearl-research";
116
117
  readonly Perceptron: "perceptron";
@@ -93,6 +93,7 @@ export const Provider = {
93
93
  Parallel: "parallel",
94
94
  Parasail: "parasail",
95
95
  ParetoAlpha: "pareto-alpha",
96
+ ParetoInference: "pareto-inference",
96
97
  ParticleAi: "particle-ai",
97
98
  PearlResearch: "pearl-research",
98
99
  Perceptron: "perceptron",
@@ -84,6 +84,7 @@ export declare const ProviderName: {
84
84
  readonly Parallel: "Parallel";
85
85
  readonly Parasail: "Parasail";
86
86
  readonly ParetoAlpha: "ParetoAlpha";
87
+ readonly ParetoInference: "Pareto Inference";
87
88
  readonly ParticleAI: "Particle AI";
88
89
  readonly PearlResearch: "Pearl Research";
89
90
  readonly Poolside: "Poolside";
@@ -86,6 +86,7 @@ export const ProviderName = {
86
86
  Parallel: "Parallel",
87
87
  Parasail: "Parasail",
88
88
  ParetoAlpha: "ParetoAlpha",
89
+ ParetoInference: "Pareto Inference",
89
90
  ParticleAI: "Particle AI",
90
91
  PearlResearch: "Pearl Research",
91
92
  Poolside: "Poolside",
@@ -318,6 +318,9 @@ export type ProviderOptions = {
318
318
  paretoAlpha?: {
319
319
  [k: string]: any;
320
320
  } | undefined;
321
+ paretoInference?: {
322
+ [k: string]: any;
323
+ } | undefined;
321
324
  particleAi?: {
322
325
  [k: string]: any;
323
326
  } | undefined;
@@ -792,6 +795,9 @@ export type ProviderOptions$Outbound = {
792
795
  "pareto-alpha"?: {
793
796
  [k: string]: any;
794
797
  } | undefined;
798
+ "pareto-inference"?: {
799
+ [k: string]: any;
800
+ } | undefined;
795
801
  "particle-ai"?: {
796
802
  [k: string]: any;
797
803
  } | undefined;
@@ -110,6 +110,7 @@ export const ProviderOptions$outboundSchema = z.object({
110
110
  parallel: z.record(z.string(), z.any()).optional(),
111
111
  parasail: z.record(z.string(), z.any()).optional(),
112
112
  paretoAlpha: z.record(z.string(), z.any()).optional(),
113
+ paretoInference: z.record(z.string(), z.any()).optional(),
113
114
  particleAi: z.record(z.string(), z.any()).optional(),
114
115
  pearlResearch: z.record(z.string(), z.any()).optional(),
115
116
  perceptron: z.record(z.string(), z.any()).optional(),
@@ -188,6 +189,7 @@ export const ProviderOptions$outboundSchema = z.object({
188
189
  nexAgi: "nex-agi",
189
190
  openInference: "open-inference",
190
191
  paretoAlpha: "pareto-alpha",
192
+ paretoInference: "pareto-inference",
191
193
  particleAi: "particle-ai",
192
194
  pearlResearch: "pearl-research",
193
195
  sailResearch: "sail-research",
@@ -117,6 +117,7 @@ export declare const ProviderResponseProviderName: {
117
117
  readonly Parallel: "Parallel";
118
118
  readonly Parasail: "Parasail";
119
119
  readonly ParetoAlpha: "ParetoAlpha";
120
+ readonly ParetoInference: "Pareto Inference";
120
121
  readonly ParticleAI: "Particle AI";
121
122
  readonly PearlResearch: "Pearl Research";
122
123
  readonly Poolside: "Poolside";
@@ -120,6 +120,7 @@ export const ProviderResponseProviderName = {
120
120
  Parallel: "Parallel",
121
121
  Parasail: "Parasail",
122
122
  ParetoAlpha: "ParetoAlpha",
123
+ ParetoInference: "Pareto Inference",
123
124
  ParticleAI: "Particle AI",
124
125
  PearlResearch: "Pearl Research",
125
126
  Poolside: "Poolside",
@@ -366,6 +366,9 @@ export type VideoGenerationRequestOptions = {
366
366
  paretoAlpha?: {
367
367
  [k: string]: any;
368
368
  } | undefined;
369
+ paretoInference?: {
370
+ [k: string]: any;
371
+ } | undefined;
369
372
  particleAi?: {
370
373
  [k: string]: any;
371
374
  } | undefined;
@@ -974,6 +977,9 @@ export type VideoGenerationRequestOptions$Outbound = {
974
977
  "pareto-alpha"?: {
975
978
  [k: string]: any;
976
979
  } | undefined;
980
+ "pareto-inference"?: {
981
+ [k: string]: any;
982
+ } | undefined;
977
983
  "particle-ai"?: {
978
984
  [k: string]: any;
979
985
  } | undefined;
@@ -170,6 +170,7 @@ export const VideoGenerationRequestOptions$outboundSchema = z.object({
170
170
  parallel: z.record(z.string(), z.any()).optional(),
171
171
  parasail: z.record(z.string(), z.any()).optional(),
172
172
  paretoAlpha: z.record(z.string(), z.any()).optional(),
173
+ paretoInference: z.record(z.string(), z.any()).optional(),
173
174
  particleAi: z.record(z.string(), z.any()).optional(),
174
175
  pearlResearch: z.record(z.string(), z.any()).optional(),
175
176
  perceptron: z.record(z.string(), z.any()).optional(),
@@ -248,6 +249,7 @@ export const VideoGenerationRequestOptions$outboundSchema = z.object({
248
249
  nexAgi: "nex-agi",
249
250
  openInference: "open-inference",
250
251
  paretoAlpha: "pareto-alpha",
252
+ paretoInference: "pareto-inference",
251
253
  particleAi: "particle-ai",
252
254
  pearlResearch: "pearl-research",
253
255
  sailResearch: "sail-research",
package/esm/sdk/scim.d.ts CHANGED
@@ -16,18 +16,14 @@ export declare class Scim extends ClientSDK {
16
16
  * Create a SCIM group mapping
17
17
  *
18
18
  * @remarks
19
- * Create a SCIM group-to-workspace role mapping. Disabled: no API key can perform this write, including management keys. Use the organization settings in the dashboard, which require step-up verification. A valid management key for an organization with SCIM access receives 403; an invalid key still receives 401 and an organization without SCIM access receives 404.
20
- *
21
- * @deprecated method: This will be removed in a future release, please migrate away from it as soon as possible.
19
+ * Create a SCIM group-to-workspace role mapping. Creating a mapping that already exists with the same role succeeds and re-applies the mapping to the group members. Requesting a different role for an existing mapping returns 409. Assigning the `admin` role is dashboard-only and returns 403 for management keys. [Management key](/docs/guides/overview/auth/management-api-keys) required.
22
20
  */
23
21
  create(request: operations.CreateScimGroupMappingRequest, options?: RequestOptions): Promise<models.CreateScimGroupMappingResponse>;
24
22
  /**
25
23
  * Delete a SCIM group mapping
26
24
  *
27
25
  * @remarks
28
- * Delete a SCIM group-to-workspace mapping. Disabled: no API key can perform this write, including management keys. Use the organization settings in the dashboard, which require step-up verification. A valid management key for an organization with SCIM access receives 403; an invalid key still receives 401 and an organization without SCIM access receives 404.
29
- *
30
- * @deprecated method: This will be removed in a future release, please migrate away from it as soon as possible.
26
+ * Delete a SCIM group-to-workspace mapping. For an `admin` mapping, `keep_members=true` returns `403` and leaves the mapping in place — preserving members as workspace admins is dashboard-only. [Management key](/docs/guides/overview/auth/management-api-keys) required.
31
27
  */
32
28
  delete(request: operations.DeleteScimGroupMappingRequest, options?: RequestOptions): Promise<models.DeleteScimGroupMappingResponse>;
33
29
  /**
@@ -41,9 +37,7 @@ export declare class Scim extends ClientSDK {
41
37
  * Update a SCIM group mapping
42
38
  *
43
39
  * @remarks
44
- * Update a SCIM group mapping role. Disabled: no API key can perform this write, including management keys. Use the organization settings in the dashboard, which require step-up verification. A valid management key for an organization with SCIM access receives 403; an invalid key still receives 401 and an organization without SCIM access receives 404.
45
- *
46
- * @deprecated method: This will be removed in a future release, please migrate away from it as soon as possible.
40
+ * Update a SCIM group mapping role. Assigning the `admin` role is dashboard-only and returns 403 for management keys. [Management key](/docs/guides/overview/auth/management-api-keys) required.
47
41
  */
48
42
  update(request: operations.UpdateScimGroupMappingRequest, options?: RequestOptions): Promise<models.UpdateScimGroupMappingResponse>;
49
43
  /**
@@ -59,9 +53,7 @@ export declare class Scim extends ClientSDK {
59
53
  * Start a SCIM directory sync
60
54
  *
61
55
  * @remarks
62
- * Start a SCIM directory sync. Disabled: no API key can perform this write, including management keys. Use the organization settings in the dashboard, which require step-up verification. A valid management key for an organization with SCIM access receives 403; an invalid key still receives 401 and an organization without SCIM access receives 404.
63
- *
64
- * @deprecated method: This will be removed in a future release, please migrate away from it as soon as possible.
56
+ * Start a SCIM directory sync. [Management key](/docs/guides/overview/auth/management-api-keys) required.
65
57
  */
66
58
  createSyncJob(request?: operations.CreateScimSyncJobRequest | undefined, options?: RequestOptions): Promise<operations.CreateScimSyncJobResponse>;
67
59
  /**
package/esm/sdk/scim.js CHANGED
@@ -26,9 +26,7 @@ export class Scim extends ClientSDK {
26
26
  * Create a SCIM group mapping
27
27
  *
28
28
  * @remarks
29
- * Create a SCIM group-to-workspace role mapping. Disabled: no API key can perform this write, including management keys. Use the organization settings in the dashboard, which require step-up verification. A valid management key for an organization with SCIM access receives 403; an invalid key still receives 401 and an organization without SCIM access receives 404.
30
- *
31
- * @deprecated method: This will be removed in a future release, please migrate away from it as soon as possible.
29
+ * Create a SCIM group-to-workspace role mapping. Creating a mapping that already exists with the same role succeeds and re-applies the mapping to the group members. Requesting a different role for an existing mapping returns 409. Assigning the `admin` role is dashboard-only and returns 403 for management keys. [Management key](/docs/guides/overview/auth/management-api-keys) required.
32
30
  */
33
31
  async create(request, options) {
34
32
  return unwrapAsync(scimCreate(this, request, options));
@@ -37,9 +35,7 @@ export class Scim extends ClientSDK {
37
35
  * Delete a SCIM group mapping
38
36
  *
39
37
  * @remarks
40
- * Delete a SCIM group-to-workspace mapping. Disabled: no API key can perform this write, including management keys. Use the organization settings in the dashboard, which require step-up verification. A valid management key for an organization with SCIM access receives 403; an invalid key still receives 401 and an organization without SCIM access receives 404.
41
- *
42
- * @deprecated method: This will be removed in a future release, please migrate away from it as soon as possible.
38
+ * Delete a SCIM group-to-workspace mapping. For an `admin` mapping, `keep_members=true` returns `403` and leaves the mapping in place — preserving members as workspace admins is dashboard-only. [Management key](/docs/guides/overview/auth/management-api-keys) required.
43
39
  */
44
40
  async delete(request, options) {
45
41
  return unwrapAsync(scimDelete(this, request, options));
@@ -57,9 +53,7 @@ export class Scim extends ClientSDK {
57
53
  * Update a SCIM group mapping
58
54
  *
59
55
  * @remarks
60
- * Update a SCIM group mapping role. Disabled: no API key can perform this write, including management keys. Use the organization settings in the dashboard, which require step-up verification. A valid management key for an organization with SCIM access receives 403; an invalid key still receives 401 and an organization without SCIM access receives 404.
61
- *
62
- * @deprecated method: This will be removed in a future release, please migrate away from it as soon as possible.
56
+ * Update a SCIM group mapping role. Assigning the `admin` role is dashboard-only and returns 403 for management keys. [Management key](/docs/guides/overview/auth/management-api-keys) required.
63
57
  */
64
58
  async update(request, options) {
65
59
  return unwrapAsync(scimUpdate(this, request, options));
@@ -77,9 +71,7 @@ export class Scim extends ClientSDK {
77
71
  * Start a SCIM directory sync
78
72
  *
79
73
  * @remarks
80
- * Start a SCIM directory sync. Disabled: no API key can perform this write, including management keys. Use the organization settings in the dashboard, which require step-up verification. A valid management key for an organization with SCIM access receives 403; an invalid key still receives 401 and an organization without SCIM access receives 404.
81
- *
82
- * @deprecated method: This will be removed in a future release, please migrate away from it as soon as possible.
74
+ * Start a SCIM directory sync. [Management key](/docs/guides/overview/auth/management-api-keys) required.
83
75
  */
84
76
  async createSyncJob(request, options) {
85
77
  return unwrapAsync(scimCreateSyncJob(this, request, options));
package/jsr.json CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  {
4
4
  "name": "@openrouter/sdk",
5
- "version": "1.5.126",
5
+ "version": "1.5.128",
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.5.126",
3
+ "version": "1.5.128",
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": [
@@ -73,13 +73,13 @@
73
73
  "lint": "eslint --cache --max-warnings=0 src",
74
74
  "build": "node --max-old-space-size=8192 ./node_modules/typescript/bin/tsc && node scripts/unbarrel-imports.js",
75
75
  "prepublishOnly": "npm run build",
76
+ "compile": "node --max-old-space-size=8192 ./node_modules/typescript/bin/tsc && node scripts/unbarrel-imports.js",
77
+ "test": "vitest --run --project unit",
76
78
  "test:e2e": "vitest --run --project e2e",
77
79
  "test:transit": "exit 0",
78
80
  "test:watch": "vitest --watch --project unit",
79
81
  "typecheck": "tsc --noEmit",
80
- "test": "vitest --run --project unit",
81
82
  "typecheck:transit": "exit 0",
82
- "compile": "node --max-old-space-size=8192 ./node_modules/typescript/bin/tsc && node scripts/unbarrel-imports.js",
83
83
  "postinstall": "node scripts/check-types.js || true",
84
84
  "prepare": "npm run build"
85
85
  },