@openrouter/sdk 1.2.102 → 1.2.104

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 (38) hide show
  1. package/esm/funcs/scimCreateSyncJob.d.ts +18 -0
  2. package/esm/funcs/scimCreateSyncJob.js +99 -0
  3. package/esm/funcs/scimGetSyncJob.d.ts +19 -0
  4. package/esm/funcs/scimGetSyncJob.js +103 -0
  5. package/esm/lib/config.d.ts +2 -2
  6. package/esm/lib/config.js +2 -2
  7. package/esm/models/byokproviderslug.d.ts +1 -0
  8. package/esm/models/byokproviderslug.js +1 -0
  9. package/esm/models/createscimsyncjobresponse.d.ts +11 -0
  10. package/esm/models/createscimsyncjobresponse.js +15 -0
  11. package/esm/models/getscimsyncjobresponse.d.ts +11 -0
  12. package/esm/models/getscimsyncjobresponse.js +15 -0
  13. package/esm/models/imagegenerationproviderpreferences.d.ts +6 -0
  14. package/esm/models/imagegenerationproviderpreferences.js +2 -0
  15. package/esm/models/index.d.ts +3 -0
  16. package/esm/models/index.js +3 -0
  17. package/esm/models/operations/createscimsyncjob.d.ts +65 -0
  18. package/esm/models/operations/createscimsyncjob.js +35 -0
  19. package/esm/models/operations/getscimsyncjob.d.ts +55 -0
  20. package/esm/models/operations/getscimsyncjob.js +21 -0
  21. package/esm/models/operations/index.d.ts +2 -0
  22. package/esm/models/operations/index.js +2 -0
  23. package/esm/models/operations/listbyokkeys.d.ts +1 -0
  24. package/esm/models/operations/listbyokkeys.js +1 -0
  25. package/esm/models/providername.d.ts +1 -0
  26. package/esm/models/providername.js +1 -0
  27. package/esm/models/provideroptions.d.ts +6 -0
  28. package/esm/models/provideroptions.js +2 -0
  29. package/esm/models/providerresponse.d.ts +1 -0
  30. package/esm/models/providerresponse.js +1 -0
  31. package/esm/models/scimsyncjob.d.ts +57 -0
  32. package/esm/models/scimsyncjob.js +44 -0
  33. package/esm/models/videogenerationrequest.d.ts +6 -0
  34. package/esm/models/videogenerationrequest.js +2 -0
  35. package/esm/sdk/scim.d.ts +14 -0
  36. package/esm/sdk/scim.js +20 -0
  37. package/jsr.json +1 -1
  38. package/package.json +6 -6
@@ -0,0 +1,18 @@
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
+ /**
12
+ * Start a SCIM directory sync
13
+ *
14
+ * @remarks
15
+ * Start a SCIM directory sync. [Management key](/docs/guides/overview/auth/management-api-keys) required.
16
+ */
17
+ export declare function scimCreateSyncJob(client: OpenRouterCore, request?: operations.CreateScimSyncJobRequest | undefined, options?: RequestOptions): APIPromise<Result<operations.CreateScimSyncJobResponse, errors.UnauthorizedResponseError | errors.NotFoundResponseError | errors.InternalServerResponseError | OpenRouterError | ResponseValidationError | ConnectionError | RequestAbortedError | RequestTimeoutError | InvalidRequestError | UnexpectedClientError | SDKValidationError>>;
18
+ //# sourceMappingURL=scimCreateSyncJob.d.ts.map
@@ -0,0 +1,99 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ * @generated-id: e5a91c340b44
4
+ */
5
+ import { encodeSimple } from "../lib/encodings.js";
6
+ import { matchStatusCode } from "../lib/http.js";
7
+ import * as M from "../lib/matchers.js";
8
+ import { compactMap } from "../lib/primitives.js";
9
+ import { safeParse } from "../lib/schemas.js";
10
+ import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
11
+ import { pathToFunc } from "../lib/url.js";
12
+ import * as errors from "../models/errors/index.js";
13
+ import * as operations from "../models/operations/index.js";
14
+ import { APIPromise } from "../types/async.js";
15
+ /**
16
+ * Start a SCIM directory sync
17
+ *
18
+ * @remarks
19
+ * Start a SCIM directory sync. [Management key](/docs/guides/overview/auth/management-api-keys) required.
20
+ */
21
+ export function scimCreateSyncJob(client, request, options) {
22
+ return new APIPromise($do(client, request, options));
23
+ }
24
+ async function $do(client, request, options) {
25
+ const parsed = safeParse(request, (value) => operations.CreateScimSyncJobRequest$outboundSchema.optional().parse(value), "Input validation failed");
26
+ if (!parsed.ok) {
27
+ return [parsed, { status: "invalid" }];
28
+ }
29
+ const payload = parsed.value;
30
+ const body = null;
31
+ const path = pathToFunc("/scim/sync-jobs")();
32
+ const headers = new Headers(compactMap({
33
+ Accept: "application/json",
34
+ "HTTP-Referer": encodeSimple("HTTP-Referer", payload?.["HTTP-Referer"] ?? client._options.httpReferer, { explode: false, charEncoding: "none" }),
35
+ "X-OpenRouter-Categories": encodeSimple("X-OpenRouter-Categories", payload?.appCategories ?? client._options.appCategories, { explode: false, charEncoding: "none" }),
36
+ "X-OpenRouter-Title": encodeSimple("X-OpenRouter-Title", payload?.appTitle ?? client._options.appTitle, { explode: false, charEncoding: "none" }),
37
+ }));
38
+ const secConfig = await extractSecurity(client._options.apiKey);
39
+ const securityInput = secConfig == null ? {} : { apiKey: secConfig };
40
+ const requestSecurity = resolveGlobalSecurity(securityInput);
41
+ const context = {
42
+ options: client._options,
43
+ baseURL: options?.serverURL ?? client._baseURL ?? "",
44
+ operationID: "createScimSyncJob",
45
+ oAuth2Scopes: null,
46
+ resolvedSecurity: requestSecurity,
47
+ securitySource: client._options.apiKey,
48
+ retryConfig: options?.retries
49
+ || client._options.retryConfig
50
+ || {
51
+ strategy: "backoff",
52
+ backoff: {
53
+ initialInterval: 500,
54
+ maxInterval: 60000,
55
+ exponent: 1.5,
56
+ maxElapsedTime: 3600000,
57
+ },
58
+ retryConnectionErrors: true,
59
+ }
60
+ || { strategy: "none" },
61
+ retryCodes: options?.retryCodes || ["5XX"],
62
+ };
63
+ const requestRes = client._createRequest(context, {
64
+ security: requestSecurity,
65
+ method: "POST",
66
+ baseURL: options?.serverURL,
67
+ path: path,
68
+ headers: headers,
69
+ body: body,
70
+ userAgent: client._options.userAgent,
71
+ timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
72
+ }, options);
73
+ if (!requestRes.ok) {
74
+ return [requestRes, { status: "invalid" }];
75
+ }
76
+ const req = requestRes.value;
77
+ const doResult = await client._do(req, {
78
+ context,
79
+ isErrorStatusCode: (statusCode) => matchStatusCode({ status: statusCode }, ["4XX", "5XX"]),
80
+ retryConfig: context.retryConfig,
81
+ retryCodes: context.retryCodes,
82
+ });
83
+ if (!doResult.ok) {
84
+ return [doResult, { status: "request-error", request: req }];
85
+ }
86
+ const response = doResult.value;
87
+ const responseFields = {
88
+ HttpMeta: { Response: response, Request: req },
89
+ };
90
+ const [result] = await M.match(M.json(202, operations.CreateScimSyncJobResponse$inboundSchema, {
91
+ hdrs: true,
92
+ key: "Result",
93
+ }), M.jsonErr(401, errors.UnauthorizedResponseError$inboundSchema), M.jsonErr(404, errors.NotFoundResponseError$inboundSchema), M.jsonErr(500, errors.InternalServerResponseError$inboundSchema), M.fail("4XX"), M.fail("5XX"))(response, req, { extraFields: responseFields });
94
+ if (!result.ok) {
95
+ return [result, { status: "complete", request: req, response }];
96
+ }
97
+ return [result, { status: "complete", request: req, response }];
98
+ }
99
+ //# sourceMappingURL=scimCreateSyncJob.js.map
@@ -0,0 +1,19 @@
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 models from "../models/index.js";
9
+ import * as operations from "../models/operations/index.js";
10
+ import { APIPromise } from "../types/async.js";
11
+ import { Result } from "../types/fp.js";
12
+ /**
13
+ * Get SCIM directory sync status
14
+ *
15
+ * @remarks
16
+ * Get SCIM directory sync status. [Management key](/docs/guides/overview/auth/management-api-keys) required.
17
+ */
18
+ export declare function scimGetSyncJob(client: OpenRouterCore, request: operations.GetScimSyncJobRequest, options?: RequestOptions): APIPromise<Result<models.GetScimSyncJobResponse, errors.UnauthorizedResponseError | errors.NotFoundResponseError | errors.InternalServerResponseError | OpenRouterError | ResponseValidationError | ConnectionError | RequestAbortedError | RequestTimeoutError | InvalidRequestError | UnexpectedClientError | SDKValidationError>>;
19
+ //# sourceMappingURL=scimGetSyncJob.d.ts.map
@@ -0,0 +1,103 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ * @generated-id: 95876bc94c5c
4
+ */
5
+ import { encodeSimple } from "../lib/encodings.js";
6
+ import { matchStatusCode } from "../lib/http.js";
7
+ import * as M from "../lib/matchers.js";
8
+ import { compactMap } from "../lib/primitives.js";
9
+ import { safeParse } from "../lib/schemas.js";
10
+ import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
11
+ import { pathToFunc } from "../lib/url.js";
12
+ import * as errors from "../models/errors/index.js";
13
+ import * as models from "../models/index.js";
14
+ import * as operations from "../models/operations/index.js";
15
+ import { APIPromise } from "../types/async.js";
16
+ /**
17
+ * Get SCIM directory sync status
18
+ *
19
+ * @remarks
20
+ * Get SCIM directory sync status. [Management key](/docs/guides/overview/auth/management-api-keys) required.
21
+ */
22
+ export function scimGetSyncJob(client, request, options) {
23
+ return new APIPromise($do(client, request, options));
24
+ }
25
+ async function $do(client, request, options) {
26
+ const parsed = safeParse(request, (value) => operations.GetScimSyncJobRequest$outboundSchema.parse(value), "Input validation failed");
27
+ if (!parsed.ok) {
28
+ return [parsed, { status: "invalid" }];
29
+ }
30
+ const payload = parsed.value;
31
+ const body = null;
32
+ const pathParams = {
33
+ id: encodeSimple("id", payload.id, {
34
+ explode: false,
35
+ charEncoding: "percent",
36
+ }),
37
+ };
38
+ const path = pathToFunc("/scim/sync-jobs/{id}")(pathParams);
39
+ const headers = new Headers(compactMap({
40
+ Accept: "application/json",
41
+ "HTTP-Referer": encodeSimple("HTTP-Referer", payload["HTTP-Referer"] ?? client._options.httpReferer, { explode: false, charEncoding: "none" }),
42
+ "X-OpenRouter-Categories": encodeSimple("X-OpenRouter-Categories", payload.appCategories ?? client._options.appCategories, { explode: false, charEncoding: "none" }),
43
+ "X-OpenRouter-Title": encodeSimple("X-OpenRouter-Title", payload.appTitle ?? client._options.appTitle, { explode: false, charEncoding: "none" }),
44
+ }));
45
+ const secConfig = await extractSecurity(client._options.apiKey);
46
+ const securityInput = secConfig == null ? {} : { apiKey: secConfig };
47
+ const requestSecurity = resolveGlobalSecurity(securityInput);
48
+ const context = {
49
+ options: client._options,
50
+ baseURL: options?.serverURL ?? client._baseURL ?? "",
51
+ operationID: "getScimSyncJob",
52
+ oAuth2Scopes: null,
53
+ resolvedSecurity: requestSecurity,
54
+ securitySource: client._options.apiKey,
55
+ retryConfig: options?.retries
56
+ || client._options.retryConfig
57
+ || {
58
+ strategy: "backoff",
59
+ backoff: {
60
+ initialInterval: 500,
61
+ maxInterval: 60000,
62
+ exponent: 1.5,
63
+ maxElapsedTime: 3600000,
64
+ },
65
+ retryConnectionErrors: true,
66
+ }
67
+ || { strategy: "none" },
68
+ retryCodes: options?.retryCodes || ["5XX"],
69
+ };
70
+ const requestRes = client._createRequest(context, {
71
+ security: requestSecurity,
72
+ method: "GET",
73
+ baseURL: options?.serverURL,
74
+ path: path,
75
+ headers: headers,
76
+ body: body,
77
+ userAgent: client._options.userAgent,
78
+ timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
79
+ }, options);
80
+ if (!requestRes.ok) {
81
+ return [requestRes, { status: "invalid" }];
82
+ }
83
+ const req = requestRes.value;
84
+ const doResult = await client._do(req, {
85
+ context,
86
+ isErrorStatusCode: (statusCode) => matchStatusCode({ status: statusCode }, ["4XX", "5XX"]),
87
+ retryConfig: context.retryConfig,
88
+ retryCodes: context.retryCodes,
89
+ });
90
+ if (!doResult.ok) {
91
+ return [doResult, { status: "request-error", request: req }];
92
+ }
93
+ const response = doResult.value;
94
+ const responseFields = {
95
+ HttpMeta: { Response: response, Request: req },
96
+ };
97
+ const [result] = await M.match(M.json(200, models.GetScimSyncJobResponse$inboundSchema), M.jsonErr(401, errors.UnauthorizedResponseError$inboundSchema), M.jsonErr(404, errors.NotFoundResponseError$inboundSchema), M.jsonErr(500, errors.InternalServerResponseError$inboundSchema), M.fail("4XX"), M.fail("5XX"))(response, req, { extraFields: responseFields });
98
+ if (!result.ok) {
99
+ return [result, { status: "complete", request: req, response }];
100
+ }
101
+ return [result, { status: "complete", request: req, response }];
102
+ }
103
+ //# sourceMappingURL=scimGetSyncJob.js.map
@@ -50,8 +50,8 @@ export declare function serverURLFromOptions(options: SDKOptions): URL | null;
50
50
  export declare const SDK_METADATA: {
51
51
  readonly language: "typescript";
52
52
  readonly openapiDocVersion: "1.0.0";
53
- readonly sdkVersion: "1.2.102";
53
+ readonly sdkVersion: "1.2.104";
54
54
  readonly genVersion: "2.914.0";
55
- readonly userAgent: "speakeasy-sdk/typescript 1.2.102 2.914.0 1.0.0 @openrouter/sdk";
55
+ readonly userAgent: "speakeasy-sdk/typescript 1.2.104 2.914.0 1.0.0 @openrouter/sdk";
56
56
  };
57
57
  //# sourceMappingURL=config.d.ts.map
package/esm/lib/config.js CHANGED
@@ -29,8 +29,8 @@ export function serverURLFromOptions(options) {
29
29
  export const SDK_METADATA = {
30
30
  language: "typescript",
31
31
  openapiDocVersion: "1.0.0",
32
- sdkVersion: "1.2.102",
32
+ sdkVersion: "1.2.104",
33
33
  genVersion: "2.914.0",
34
- userAgent: "speakeasy-sdk/typescript 1.2.102 2.914.0 1.0.0 @openrouter/sdk",
34
+ userAgent: "speakeasy-sdk/typescript 1.2.104 2.914.0 1.0.0 @openrouter/sdk",
35
35
  };
36
36
  //# sourceMappingURL=config.js.map
@@ -81,6 +81,7 @@ export declare const BYOKProviderSlug: {
81
81
  readonly Perplexity: "perplexity";
82
82
  readonly Phala: "phala";
83
83
  readonly Poolside: "poolside";
84
+ readonly PrimeIntellect: "prime-intellect";
84
85
  readonly Quiver: "quiver";
85
86
  readonly Recraft: "recraft";
86
87
  readonly Reka: "reka";
@@ -84,6 +84,7 @@ export const BYOKProviderSlug = {
84
84
  Perplexity: "perplexity",
85
85
  Phala: "phala",
86
86
  Poolside: "poolside",
87
+ PrimeIntellect: "prime-intellect",
87
88
  Quiver: "quiver",
88
89
  Recraft: "recraft",
89
90
  Reka: "reka",
@@ -0,0 +1,11 @@
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 { ScimSyncJob } from "./scimsyncjob.js";
5
+ export type CreateScimSyncJobResponse = {
6
+ data: ScimSyncJob;
7
+ };
8
+ /** @internal */
9
+ export declare const CreateScimSyncJobResponse$inboundSchema: z.ZodType<CreateScimSyncJobResponse, unknown>;
10
+ export declare function createScimSyncJobResponseFromJSON(jsonString: string): SafeParseResult<CreateScimSyncJobResponse, SDKValidationError>;
11
+ //# sourceMappingURL=createscimsyncjobresponse.d.ts.map
@@ -0,0 +1,15 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ * @generated-id: cbd527ad55e4
4
+ */
5
+ import * as z from "zod/v4";
6
+ import { safeParse } from "../lib/schemas.js";
7
+ import { ScimSyncJob$inboundSchema } from "./scimsyncjob.js";
8
+ /** @internal */
9
+ export const CreateScimSyncJobResponse$inboundSchema = z.object({
10
+ data: ScimSyncJob$inboundSchema,
11
+ });
12
+ export function createScimSyncJobResponseFromJSON(jsonString) {
13
+ return safeParse(jsonString, (x) => CreateScimSyncJobResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CreateScimSyncJobResponse' from JSON`);
14
+ }
15
+ //# sourceMappingURL=createscimsyncjobresponse.js.map
@@ -0,0 +1,11 @@
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 { ScimSyncJob } from "./scimsyncjob.js";
5
+ export type GetScimSyncJobResponse = {
6
+ data: ScimSyncJob;
7
+ };
8
+ /** @internal */
9
+ export declare const GetScimSyncJobResponse$inboundSchema: z.ZodType<GetScimSyncJobResponse, unknown>;
10
+ export declare function getScimSyncJobResponseFromJSON(jsonString: string): SafeParseResult<GetScimSyncJobResponse, SDKValidationError>;
11
+ //# sourceMappingURL=getscimsyncjobresponse.d.ts.map
@@ -0,0 +1,15 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ * @generated-id: 3ada334326d5
4
+ */
5
+ import * as z from "zod/v4";
6
+ import { safeParse } from "../lib/schemas.js";
7
+ import { ScimSyncJob$inboundSchema } from "./scimsyncjob.js";
8
+ /** @internal */
9
+ export const GetScimSyncJobResponse$inboundSchema = z.object({
10
+ data: ScimSyncJob$inboundSchema,
11
+ });
12
+ export function getScimSyncJobResponseFromJSON(jsonString) {
13
+ return safeParse(jsonString, (x) => GetScimSyncJobResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetScimSyncJobResponse' from JSON`);
14
+ }
15
+ //# sourceMappingURL=getscimsyncjobresponse.js.map
@@ -311,6 +311,9 @@ export type ImageGenerationProviderPreferencesOptions = {
311
311
  poolside?: {
312
312
  [k: string]: any;
313
313
  } | undefined;
314
+ primeIntellect?: {
315
+ [k: string]: any;
316
+ } | undefined;
314
317
  quiver?: {
315
318
  [k: string]: any;
316
319
  } | undefined;
@@ -773,6 +776,9 @@ export type ImageGenerationProviderPreferencesOptions$Outbound = {
773
776
  poolside?: {
774
777
  [k: string]: any;
775
778
  } | undefined;
779
+ "prime-intellect"?: {
780
+ [k: string]: any;
781
+ } | undefined;
776
782
  quiver?: {
777
783
  [k: string]: any;
778
784
  } | undefined;
@@ -120,6 +120,7 @@ export const ImageGenerationProviderPreferencesOptions$outboundSchema = z.object
120
120
  perplexity: z.record(z.string(), z.any()).optional(),
121
121
  phala: z.record(z.string(), z.any()).optional(),
122
122
  poolside: z.record(z.string(), z.any()).optional(),
123
+ primeIntellect: z.record(z.string(), z.any()).optional(),
123
124
  quiver: z.record(z.string(), z.any()).optional(),
124
125
  recraft: z.record(z.string(), z.any()).optional(),
125
126
  recursal: z.record(z.string(), z.any()).optional(),
@@ -181,6 +182,7 @@ export const ImageGenerationProviderPreferencesOptions$outboundSchema = z.object
181
182
  mancerOld: "mancer-old",
182
183
  nexAgi: "nex-agi",
183
184
  openInference: "open-inference",
185
+ primeIntellect: "prime-intellect",
184
186
  sailResearch: "sail-research",
185
187
  sakanaAi: "sakana-ai",
186
188
  sambanovaCloaked: "sambanova-cloaked",
@@ -183,6 +183,7 @@ export * from "./createobservabilitydestinationresponse.js";
183
183
  export * from "./createpresetfrominferenceresponse.js";
184
184
  export * from "./createscimgroupmappingrequest.js";
185
185
  export * from "./createscimgroupmappingresponse.js";
186
+ export * from "./createscimsyncjobresponse.js";
186
187
  export * from "./createworkspacerequest.js";
187
188
  export * from "./createworkspaceresponse.js";
188
189
  export * from "./customtool.js";
@@ -254,6 +255,7 @@ export * from "./getobservabilitydestinationresponse.js";
254
255
  export * from "./getpresetresponse.js";
255
256
  export * from "./getpresetversionresponse.js";
256
257
  export * from "./getscimgroupmappingresponse.js";
258
+ export * from "./getscimsyncjobresponse.js";
257
259
  export * from "./getworkspacebudgetresponse.js";
258
260
  export * from "./getworkspaceresponse.js";
259
261
  export * from "./guardrail.js";
@@ -504,6 +506,7 @@ export * from "./routerparams.js";
504
506
  export * from "./routingstrategy.js";
505
507
  export * from "./scimgroup.js";
506
508
  export * from "./scimgroupmapping.js";
509
+ export * from "./scimsyncjob.js";
507
510
  export * from "./searchcontextsizeenum.js";
508
511
  export * from "./searchmodelsservertoolconfig.js";
509
512
  export * from "./searchmodelsservertoolopenrouter.js";
@@ -187,6 +187,7 @@ export * from "./createobservabilitydestinationresponse.js";
187
187
  export * from "./createpresetfrominferenceresponse.js";
188
188
  export * from "./createscimgroupmappingrequest.js";
189
189
  export * from "./createscimgroupmappingresponse.js";
190
+ export * from "./createscimsyncjobresponse.js";
190
191
  export * from "./createworkspacerequest.js";
191
192
  export * from "./createworkspaceresponse.js";
192
193
  export * from "./customtool.js";
@@ -258,6 +259,7 @@ export * from "./getobservabilitydestinationresponse.js";
258
259
  export * from "./getpresetresponse.js";
259
260
  export * from "./getpresetversionresponse.js";
260
261
  export * from "./getscimgroupmappingresponse.js";
262
+ export * from "./getscimsyncjobresponse.js";
261
263
  export * from "./getworkspacebudgetresponse.js";
262
264
  export * from "./getworkspaceresponse.js";
263
265
  export * from "./guardrail.js";
@@ -508,6 +510,7 @@ export * from "./routerparams.js";
508
510
  export * from "./routingstrategy.js";
509
511
  export * from "./scimgroup.js";
510
512
  export * from "./scimgroupmapping.js";
513
+ export * from "./scimsyncjob.js";
511
514
  export * from "./searchcontextsizeenum.js";
512
515
  export * from "./searchmodelsservertoolconfig.js";
513
516
  export * from "./searchmodelsservertoolopenrouter.js";
@@ -0,0 +1,65 @@
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 CreateScimSyncJobGlobals = {
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 CreateScimSyncJobRequest = {
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
+ export type CreateScimSyncJobResponse = {
48
+ headers: {
49
+ [k: string]: Array<string>;
50
+ };
51
+ result: models.CreateScimSyncJobResponse;
52
+ };
53
+ /** @internal */
54
+ export type CreateScimSyncJobRequest$Outbound = {
55
+ "HTTP-Referer"?: string | undefined;
56
+ appTitle?: string | undefined;
57
+ appCategories?: string | undefined;
58
+ };
59
+ /** @internal */
60
+ export declare const CreateScimSyncJobRequest$outboundSchema: z.ZodType<CreateScimSyncJobRequest$Outbound, CreateScimSyncJobRequest>;
61
+ export declare function createScimSyncJobRequestToJSON(createScimSyncJobRequest: CreateScimSyncJobRequest): string;
62
+ /** @internal */
63
+ export declare const CreateScimSyncJobResponse$inboundSchema: z.ZodType<CreateScimSyncJobResponse, unknown>;
64
+ export declare function createScimSyncJobResponseFromJSON(jsonString: string): SafeParseResult<CreateScimSyncJobResponse, SDKValidationError>;
65
+ //# sourceMappingURL=createscimsyncjob.d.ts.map
@@ -0,0 +1,35 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ * @generated-id: ebd7800a291d
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 CreateScimSyncJobRequest$outboundSchema = z.object({
11
+ httpReferer: z.string().optional(),
12
+ appTitle: z.string().optional(),
13
+ appCategories: z.string().optional(),
14
+ }).transform((v) => {
15
+ return remap$(v, {
16
+ httpReferer: "HTTP-Referer",
17
+ });
18
+ });
19
+ export function createScimSyncJobRequestToJSON(createScimSyncJobRequest) {
20
+ return JSON.stringify(CreateScimSyncJobRequest$outboundSchema.parse(createScimSyncJobRequest));
21
+ }
22
+ /** @internal */
23
+ export const CreateScimSyncJobResponse$inboundSchema = z.object({
24
+ Headers: z.record(z.string(), z.array(z.string())).default({}),
25
+ Result: models.CreateScimSyncJobResponse$inboundSchema,
26
+ }).transform((v) => {
27
+ return remap$(v, {
28
+ "Headers": "headers",
29
+ "Result": "result",
30
+ });
31
+ });
32
+ export function createScimSyncJobResponseFromJSON(jsonString) {
33
+ return safeParse(jsonString, (x) => CreateScimSyncJobResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CreateScimSyncJobResponse' from JSON`);
34
+ }
35
+ //# sourceMappingURL=createscimsyncjob.js.map
@@ -0,0 +1,55 @@
1
+ import * as z from "zod/v4";
2
+ export type GetScimSyncJobGlobals = {
3
+ /**
4
+ * The app identifier should be your app's URL and is used as the primary identifier for rankings.
5
+ *
6
+ * @remarks
7
+ * This is used to track API usage per application.
8
+ */
9
+ httpReferer?: string | undefined;
10
+ /**
11
+ * The app display name allows you to customize how your app appears in OpenRouter's dashboard.
12
+ *
13
+ * @remarks
14
+ */
15
+ appTitle?: string | undefined;
16
+ /**
17
+ * Comma-separated list of app categories (e.g. "cli-agent,cloud-agent"). Used for marketplace rankings.
18
+ *
19
+ * @remarks
20
+ */
21
+ appCategories?: string | undefined;
22
+ };
23
+ export type GetScimSyncJobRequest = {
24
+ /**
25
+ * The app identifier should be your app's URL and is used as the primary identifier for rankings.
26
+ *
27
+ * @remarks
28
+ * This is used to track API usage per application.
29
+ */
30
+ httpReferer?: string | undefined;
31
+ /**
32
+ * The app display name allows you to customize how your app appears in OpenRouter's dashboard.
33
+ *
34
+ * @remarks
35
+ */
36
+ appTitle?: string | undefined;
37
+ /**
38
+ * Comma-separated list of app categories (e.g. "cli-agent,cloud-agent"). Used for marketplace rankings.
39
+ *
40
+ * @remarks
41
+ */
42
+ appCategories?: string | undefined;
43
+ id: string;
44
+ };
45
+ /** @internal */
46
+ export type GetScimSyncJobRequest$Outbound = {
47
+ "HTTP-Referer"?: string | undefined;
48
+ appTitle?: string | undefined;
49
+ appCategories?: string | undefined;
50
+ id: string;
51
+ };
52
+ /** @internal */
53
+ export declare const GetScimSyncJobRequest$outboundSchema: z.ZodType<GetScimSyncJobRequest$Outbound, GetScimSyncJobRequest>;
54
+ export declare function getScimSyncJobRequestToJSON(getScimSyncJobRequest: GetScimSyncJobRequest): string;
55
+ //# sourceMappingURL=getscimsyncjob.d.ts.map
@@ -0,0 +1,21 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ * @generated-id: 7ab3b0cef3ee
4
+ */
5
+ import * as z from "zod/v4";
6
+ import { remap as remap$ } from "../../lib/primitives.js";
7
+ /** @internal */
8
+ export const GetScimSyncJobRequest$outboundSchema = z.object({
9
+ httpReferer: z.string().optional(),
10
+ appTitle: z.string().optional(),
11
+ appCategories: z.string().optional(),
12
+ id: z.string(),
13
+ }).transform((v) => {
14
+ return remap$(v, {
15
+ httpReferer: "HTTP-Referer",
16
+ });
17
+ });
18
+ export function getScimSyncJobRequestToJSON(getScimSyncJobRequest) {
19
+ return JSON.stringify(GetScimSyncJobRequest$outboundSchema.parse(getScimSyncJobRequest));
20
+ }
21
+ //# sourceMappingURL=getscimsyncjob.js.map
@@ -21,6 +21,7 @@ export * from "./createpresetsresponses.js";
21
21
  export * from "./creatererank.js";
22
22
  export * from "./createresponses.js";
23
23
  export * from "./createscimgroupmapping.js";
24
+ export * from "./createscimsyncjob.js";
24
25
  export * from "./createvideos.js";
25
26
  export * from "./createworkspace.js";
26
27
  export * from "./deletebyokkey.js";
@@ -52,6 +53,7 @@ export * from "./getpreset.js";
52
53
  export * from "./getpresetversion.js";
53
54
  export * from "./getrankingsdaily.js";
54
55
  export * from "./getscimgroupmapping.js";
56
+ export * from "./getscimsyncjob.js";
55
57
  export * from "./getsessioncost.js";
56
58
  export * from "./gettaskclassifications.js";
57
59
  export * from "./getuseractivity.js";
@@ -25,6 +25,7 @@ export * from "./createpresetsresponses.js";
25
25
  export * from "./creatererank.js";
26
26
  export * from "./createresponses.js";
27
27
  export * from "./createscimgroupmapping.js";
28
+ export * from "./createscimsyncjob.js";
28
29
  export * from "./createvideos.js";
29
30
  export * from "./createworkspace.js";
30
31
  export * from "./deletebyokkey.js";
@@ -56,6 +57,7 @@ export * from "./getpreset.js";
56
57
  export * from "./getpresetversion.js";
57
58
  export * from "./getrankingsdaily.js";
58
59
  export * from "./getscimgroupmapping.js";
60
+ export * from "./getscimsyncjob.js";
59
61
  export * from "./getsessioncost.js";
60
62
  export * from "./gettaskclassifications.js";
61
63
  export * from "./getuseractivity.js";
@@ -105,6 +105,7 @@ export declare const Provider: {
105
105
  readonly Perplexity: "perplexity";
106
106
  readonly Phala: "phala";
107
107
  readonly Poolside: "poolside";
108
+ readonly PrimeIntellect: "prime-intellect";
108
109
  readonly Quiver: "quiver";
109
110
  readonly Recraft: "recraft";
110
111
  readonly Reka: "reka";
@@ -88,6 +88,7 @@ export const Provider = {
88
88
  Perplexity: "perplexity",
89
89
  Phala: "phala",
90
90
  Poolside: "poolside",
91
+ PrimeIntellect: "prime-intellect",
91
92
  Quiver: "quiver",
92
93
  Recraft: "recraft",
93
94
  Reka: "reka",
@@ -77,6 +77,7 @@ export declare const ProviderName: {
77
77
  readonly OpenInference: "OpenInference";
78
78
  readonly Parasail: "Parasail";
79
79
  readonly Poolside: "Poolside";
80
+ readonly PrimeIntellect: "PrimeIntellect";
80
81
  readonly Perceptron: "Perceptron";
81
82
  readonly Perplexity: "Perplexity";
82
83
  readonly Phala: "Phala";
@@ -80,6 +80,7 @@ export const ProviderName = {
80
80
  OpenInference: "OpenInference",
81
81
  Parasail: "Parasail",
82
82
  Poolside: "Poolside",
83
+ PrimeIntellect: "PrimeIntellect",
83
84
  Perceptron: "Perceptron",
84
85
  Perplexity: "Perplexity",
85
86
  Phala: "Phala",
@@ -306,6 +306,9 @@ export type ProviderOptions = {
306
306
  poolside?: {
307
307
  [k: string]: any;
308
308
  } | undefined;
309
+ primeIntellect?: {
310
+ [k: string]: any;
311
+ } | undefined;
309
312
  quiver?: {
310
313
  [k: string]: any;
311
314
  } | undefined;
@@ -723,6 +726,9 @@ export type ProviderOptions$Outbound = {
723
726
  poolside?: {
724
727
  [k: string]: any;
725
728
  } | undefined;
729
+ "prime-intellect"?: {
730
+ [k: string]: any;
731
+ } | undefined;
726
732
  quiver?: {
727
733
  [k: string]: any;
728
734
  } | undefined;
@@ -107,6 +107,7 @@ export const ProviderOptions$outboundSchema = z.object({
107
107
  perplexity: z.record(z.string(), z.any()).optional(),
108
108
  phala: z.record(z.string(), z.any()).optional(),
109
109
  poolside: z.record(z.string(), z.any()).optional(),
110
+ primeIntellect: z.record(z.string(), z.any()).optional(),
110
111
  quiver: z.record(z.string(), z.any()).optional(),
111
112
  recraft: z.record(z.string(), z.any()).optional(),
112
113
  recursal: z.record(z.string(), z.any()).optional(),
@@ -168,6 +169,7 @@ export const ProviderOptions$outboundSchema = z.object({
168
169
  mancerOld: "mancer-old",
169
170
  nexAgi: "nex-agi",
170
171
  openInference: "open-inference",
172
+ primeIntellect: "prime-intellect",
171
173
  sailResearch: "sail-research",
172
174
  sakanaAi: "sakana-ai",
173
175
  sambanovaCloaked: "sambanova-cloaked",
@@ -109,6 +109,7 @@ export declare const ProviderResponseProviderName: {
109
109
  readonly OpenInference: "OpenInference";
110
110
  readonly Parasail: "Parasail";
111
111
  readonly Poolside: "Poolside";
112
+ readonly PrimeIntellect: "PrimeIntellect";
112
113
  readonly Perceptron: "Perceptron";
113
114
  readonly Perplexity: "Perplexity";
114
115
  readonly Phala: "Phala";
@@ -113,6 +113,7 @@ export const ProviderResponseProviderName = {
113
113
  OpenInference: "OpenInference",
114
114
  Parasail: "Parasail",
115
115
  Poolside: "Poolside",
116
+ PrimeIntellect: "PrimeIntellect",
116
117
  Perceptron: "Perceptron",
117
118
  Perplexity: "Perplexity",
118
119
  Phala: "Phala",
@@ -0,0 +1,57 @@
1
+ import * as z from "zod/v4";
2
+ import { OpenEnum } from "../types/enums.js";
3
+ import { Result as SafeParseResult } from "../types/fp.js";
4
+ import { SDKValidationError } from "./errors/sdkvalidationerror.js";
5
+ /**
6
+ * Current status of the sync job: queued, running, succeeded, or failed.
7
+ */
8
+ export declare const ScimSyncJobStatus: {
9
+ readonly Queued: "queued";
10
+ readonly Running: "running";
11
+ readonly Succeeded: "succeeded";
12
+ readonly Failed: "failed";
13
+ };
14
+ /**
15
+ * Current status of the sync job: queued, running, succeeded, or failed.
16
+ */
17
+ export type ScimSyncJobStatus = OpenEnum<typeof ScimSyncJobStatus>;
18
+ export type ScimSyncJob = {
19
+ /**
20
+ * Time when the sync job was created.
21
+ */
22
+ createdAt: string;
23
+ /**
24
+ * Number of groups deleted, when the job completed successfully.
25
+ */
26
+ deletedGroups: number | null;
27
+ /**
28
+ * Stable error message when the job failed.
29
+ */
30
+ errorMessage: string | null;
31
+ /**
32
+ * Time when synchronization finished.
33
+ */
34
+ finishedAt: string | null;
35
+ /**
36
+ * Unique identifier for the sync job.
37
+ */
38
+ id: string;
39
+ /**
40
+ * Time when synchronization started.
41
+ */
42
+ startedAt: string | null;
43
+ /**
44
+ * Current status of the sync job: queued, running, succeeded, or failed.
45
+ */
46
+ status: ScimSyncJobStatus;
47
+ /**
48
+ * Number of groups synchronized, when the job completed successfully.
49
+ */
50
+ syncedGroups: number | null;
51
+ };
52
+ /** @internal */
53
+ export declare const ScimSyncJobStatus$inboundSchema: z.ZodType<ScimSyncJobStatus, unknown>;
54
+ /** @internal */
55
+ export declare const ScimSyncJob$inboundSchema: z.ZodType<ScimSyncJob, unknown>;
56
+ export declare function scimSyncJobFromJSON(jsonString: string): SafeParseResult<ScimSyncJob, SDKValidationError>;
57
+ //# sourceMappingURL=scimsyncjob.d.ts.map
@@ -0,0 +1,44 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ * @generated-id: c04d52fe7194
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 openEnums from "../types/enums.js";
9
+ /**
10
+ * Current status of the sync job: queued, running, succeeded, or failed.
11
+ */
12
+ export const ScimSyncJobStatus = {
13
+ Queued: "queued",
14
+ Running: "running",
15
+ Succeeded: "succeeded",
16
+ Failed: "failed",
17
+ };
18
+ /** @internal */
19
+ export const ScimSyncJobStatus$inboundSchema = openEnums.inboundSchema(ScimSyncJobStatus);
20
+ /** @internal */
21
+ export const ScimSyncJob$inboundSchema = z
22
+ .object({
23
+ created_at: z.string(),
24
+ deleted_groups: z.nullable(z.int()),
25
+ error_message: z.nullable(z.string()),
26
+ finished_at: z.nullable(z.string()),
27
+ id: z.string(),
28
+ started_at: z.nullable(z.string()),
29
+ status: ScimSyncJobStatus$inboundSchema,
30
+ synced_groups: z.nullable(z.int()),
31
+ }).transform((v) => {
32
+ return remap$(v, {
33
+ "created_at": "createdAt",
34
+ "deleted_groups": "deletedGroups",
35
+ "error_message": "errorMessage",
36
+ "finished_at": "finishedAt",
37
+ "started_at": "startedAt",
38
+ "synced_groups": "syncedGroups",
39
+ });
40
+ });
41
+ export function scimSyncJobFromJSON(jsonString) {
42
+ return safeParse(jsonString, (x) => ScimSyncJob$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ScimSyncJob' from JSON`);
43
+ }
44
+ //# sourceMappingURL=scimsyncjob.js.map
@@ -327,6 +327,9 @@ export type VideoGenerationRequestOptions = {
327
327
  poolside?: {
328
328
  [k: string]: any;
329
329
  } | undefined;
330
+ primeIntellect?: {
331
+ [k: string]: any;
332
+ } | undefined;
330
333
  quiver?: {
331
334
  [k: string]: any;
332
335
  } | undefined;
@@ -823,6 +826,9 @@ export type VideoGenerationRequestOptions$Outbound = {
823
826
  poolside?: {
824
827
  [k: string]: any;
825
828
  } | undefined;
829
+ "prime-intellect"?: {
830
+ [k: string]: any;
831
+ } | undefined;
826
832
  quiver?: {
827
833
  [k: string]: any;
828
834
  } | undefined;
@@ -138,6 +138,7 @@ export const VideoGenerationRequestOptions$outboundSchema = z.object({
138
138
  perplexity: z.record(z.string(), z.any()).optional(),
139
139
  phala: z.record(z.string(), z.any()).optional(),
140
140
  poolside: z.record(z.string(), z.any()).optional(),
141
+ primeIntellect: z.record(z.string(), z.any()).optional(),
141
142
  quiver: z.record(z.string(), z.any()).optional(),
142
143
  recraft: z.record(z.string(), z.any()).optional(),
143
144
  recursal: z.record(z.string(), z.any()).optional(),
@@ -199,6 +200,7 @@ export const VideoGenerationRequestOptions$outboundSchema = z.object({
199
200
  mancerOld: "mancer-old",
200
201
  nexAgi: "nex-agi",
201
202
  openInference: "open-inference",
203
+ primeIntellect: "prime-intellect",
202
204
  sailResearch: "sail-research",
203
205
  sakanaAi: "sakana-ai",
204
206
  sambanovaCloaked: "sambanova-cloaked",
package/esm/sdk/scim.d.ts CHANGED
@@ -49,5 +49,19 @@ export declare class Scim extends ClientSDK {
49
49
  listGroups(request?: operations.ListScimGroupsRequest | undefined, options?: RequestOptions): Promise<PageIterator<operations.ListScimGroupsResponse, {
50
50
  offset: number;
51
51
  }>>;
52
+ /**
53
+ * Start a SCIM directory sync
54
+ *
55
+ * @remarks
56
+ * Start a SCIM directory sync. [Management key](/docs/guides/overview/auth/management-api-keys) required.
57
+ */
58
+ createSyncJob(request?: operations.CreateScimSyncJobRequest | undefined, options?: RequestOptions): Promise<operations.CreateScimSyncJobResponse>;
59
+ /**
60
+ * Get SCIM directory sync status
61
+ *
62
+ * @remarks
63
+ * Get SCIM directory sync status. [Management key](/docs/guides/overview/auth/management-api-keys) required.
64
+ */
65
+ getSyncJob(request: operations.GetScimSyncJobRequest, options?: RequestOptions): Promise<models.GetScimSyncJobResponse>;
52
66
  }
53
67
  //# sourceMappingURL=scim.d.ts.map
package/esm/sdk/scim.js CHANGED
@@ -3,7 +3,9 @@
3
3
  * @generated-id: ecf200b1abaf
4
4
  */
5
5
  import { scimCreate } from "../funcs/scimCreate.js";
6
+ import { scimCreateSyncJob } from "../funcs/scimCreateSyncJob.js";
6
7
  import { scimDelete } from "../funcs/scimDelete.js";
8
+ import { scimGetSyncJob } from "../funcs/scimGetSyncJob.js";
7
9
  import { scimListGroups } from "../funcs/scimListGroups.js";
8
10
  import { scimListMappings } from "../funcs/scimListMappings.js";
9
11
  import { scimRead } from "../funcs/scimRead.js";
@@ -66,5 +68,23 @@ export class Scim extends ClientSDK {
66
68
  async listGroups(request, options) {
67
69
  return unwrapResultIterator(scimListGroups(this, request, options));
68
70
  }
71
+ /**
72
+ * Start a SCIM directory sync
73
+ *
74
+ * @remarks
75
+ * Start a SCIM directory sync. [Management key](/docs/guides/overview/auth/management-api-keys) required.
76
+ */
77
+ async createSyncJob(request, options) {
78
+ return unwrapAsync(scimCreateSyncJob(this, request, options));
79
+ }
80
+ /**
81
+ * Get SCIM directory sync status
82
+ *
83
+ * @remarks
84
+ * Get SCIM directory sync status. [Management key](/docs/guides/overview/auth/management-api-keys) required.
85
+ */
86
+ async getSyncJob(request, options) {
87
+ return unwrapAsync(scimGetSyncJob(this, request, options));
88
+ }
69
89
  }
70
90
  //# sourceMappingURL=scim.js.map
package/jsr.json CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  {
4
4
  "name": "@openrouter/sdk",
5
- "version": "1.2.102",
5
+ "version": "1.2.104",
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.2.102",
3
+ "version": "1.2.104",
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,15 +73,15 @@
73
73
  "lint": "eslint --cache --max-warnings=0 src",
74
74
  "build": "tsc",
75
75
  "prepublishOnly": "npm run build",
76
+ "compile": "tsc",
77
+ "postinstall": "node scripts/check-types.js || true",
76
78
  "test": "vitest --run --project unit",
77
79
  "test:e2e": "vitest --run --project e2e",
80
+ "prepare": "npm run build",
81
+ "test:transit": "exit 0",
78
82
  "test:watch": "vitest --watch --project unit",
79
83
  "typecheck": "tsc --noEmit",
80
- "postinstall": "node scripts/check-types.js || true",
81
- "test:transit": "exit 0",
82
- "typecheck:transit": "exit 0",
83
- "compile": "tsc",
84
- "prepare": "npm run build"
84
+ "typecheck:transit": "exit 0"
85
85
  },
86
86
  "peerDependencies": {},
87
87
  "devDependencies": {