@openrouter/sdk 1.1.24 → 1.2.0
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.
- package/esm/funcs/scimCreate.d.ts +19 -0
- package/esm/funcs/scimCreate.js +100 -0
- package/esm/funcs/scimDelete.d.ts +19 -0
- package/esm/funcs/scimDelete.js +107 -0
- package/esm/funcs/scimListGroups.d.ts +21 -0
- package/esm/funcs/scimListGroups.js +133 -0
- package/esm/funcs/scimListMappings.d.ts +21 -0
- package/esm/funcs/scimListMappings.js +133 -0
- package/esm/funcs/scimRead.d.ts +19 -0
- package/esm/funcs/scimRead.js +103 -0
- package/esm/funcs/scimUpdate.d.ts +19 -0
- package/esm/funcs/scimUpdate.js +106 -0
- package/esm/lib/config.d.ts +2 -2
- package/esm/lib/config.js +2 -2
- package/esm/models/createscimgroupmappingrequest.d.ts +24 -0
- package/esm/models/createscimgroupmappingrequest.js +28 -0
- package/esm/models/createscimgroupmappingresponse.d.ts +11 -0
- package/esm/models/createscimgroupmappingresponse.js +15 -0
- package/esm/models/deletescimgroupmappingresponse.d.ts +10 -0
- package/esm/models/deletescimgroupmappingresponse.js +14 -0
- package/esm/models/generationresponse.d.ts +2 -2
- package/esm/models/generationresponse.js +2 -2
- package/esm/models/getscimgroupmappingresponse.d.ts +11 -0
- package/esm/models/getscimgroupmappingresponse.js +15 -0
- package/esm/models/index.d.ts +10 -0
- package/esm/models/index.js +10 -0
- package/esm/models/listscimgroupmappingsresponse.d.ts +12 -0
- package/esm/models/listscimgroupmappingsresponse.js +21 -0
- package/esm/models/listscimgroupsresponse.d.ts +12 -0
- package/esm/models/listscimgroupsresponse.js +21 -0
- package/esm/models/operations/createscimgroupmapping.d.ts +56 -0
- package/esm/models/operations/createscimgroupmapping.js +23 -0
- package/esm/models/operations/deletescimgroupmapping.d.ts +77 -0
- package/esm/models/operations/deletescimgroupmapping.js +35 -0
- package/esm/models/operations/getscimgroupmapping.d.ts +55 -0
- package/esm/models/operations/getscimgroupmapping.js +21 -0
- package/esm/models/operations/index.d.ts +6 -0
- package/esm/models/operations/index.js +6 -0
- package/esm/models/operations/listscimgroupmappings.d.ts +72 -0
- package/esm/models/operations/listscimgroupmappings.js +35 -0
- package/esm/models/operations/listscimgroups.d.ts +72 -0
- package/esm/models/operations/listscimgroups.js +35 -0
- package/esm/models/operations/updatescimgroupmapping.d.ts +58 -0
- package/esm/models/operations/updatescimgroupmapping.js +24 -0
- package/esm/models/scimgroup.d.ts +15 -0
- package/esm/models/scimgroup.js +28 -0
- package/esm/models/scimgroupmapping.d.ts +24 -0
- package/esm/models/scimgroupmapping.js +36 -0
- package/esm/models/updatescimgroupmappingrequest.d.ts +20 -0
- package/esm/models/updatescimgroupmappingrequest.js +20 -0
- package/esm/models/updatescimgroupmappingresponse.d.ts +11 -0
- package/esm/models/updatescimgroupmappingresponse.js +15 -0
- package/esm/sdk/byok.d.ts +1 -1
- package/esm/sdk/byok.js +1 -1
- package/esm/sdk/scim.d.ts +53 -0
- package/esm/sdk/scim.js +70 -0
- package/esm/sdk/sdk.d.ts +9 -6
- package/esm/sdk/sdk.js +10 -6
- package/esm/sdk/stt.d.ts +1 -1
- package/esm/sdk/stt.js +1 -1
- package/esm/sdk/tts.d.ts +1 -1
- package/esm/sdk/tts.js +1 -1
- package/jsr.json +1 -1
- package/package.json +9 -9
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
* @generated-id: 851ea3a51b22
|
|
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
|
+
export const ScimGroupMappingRole = {
|
|
10
|
+
Admin: "admin",
|
|
11
|
+
Member: "member",
|
|
12
|
+
};
|
|
13
|
+
/** @internal */
|
|
14
|
+
export const ScimGroupMappingRole$inboundSchema = openEnums.inboundSchema(ScimGroupMappingRole);
|
|
15
|
+
/** @internal */
|
|
16
|
+
export const ScimGroupMapping$inboundSchema = z.object({
|
|
17
|
+
created_at: z.string(),
|
|
18
|
+
id: z.string(),
|
|
19
|
+
organization_id: z.string(),
|
|
20
|
+
role: ScimGroupMappingRole$inboundSchema,
|
|
21
|
+
scim_group_id: z.string(),
|
|
22
|
+
updated_at: z.string(),
|
|
23
|
+
workspace_id: z.string(),
|
|
24
|
+
}).transform((v) => {
|
|
25
|
+
return remap$(v, {
|
|
26
|
+
"created_at": "createdAt",
|
|
27
|
+
"organization_id": "organizationId",
|
|
28
|
+
"scim_group_id": "scimGroupId",
|
|
29
|
+
"updated_at": "updatedAt",
|
|
30
|
+
"workspace_id": "workspaceId",
|
|
31
|
+
});
|
|
32
|
+
});
|
|
33
|
+
export function scimGroupMappingFromJSON(jsonString) {
|
|
34
|
+
return safeParse(jsonString, (x) => ScimGroupMapping$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ScimGroupMapping' from JSON`);
|
|
35
|
+
}
|
|
36
|
+
//# sourceMappingURL=scimgroupmapping.js.map
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import * as z from "zod/v4";
|
|
2
|
+
import { OpenEnum } from "../types/enums.js";
|
|
3
|
+
export declare const UpdateScimGroupMappingRequestRole: {
|
|
4
|
+
readonly Admin: "admin";
|
|
5
|
+
readonly Member: "member";
|
|
6
|
+
};
|
|
7
|
+
export type UpdateScimGroupMappingRequestRole = OpenEnum<typeof UpdateScimGroupMappingRequestRole>;
|
|
8
|
+
export type UpdateScimGroupMappingRequest = {
|
|
9
|
+
role: UpdateScimGroupMappingRequestRole;
|
|
10
|
+
};
|
|
11
|
+
/** @internal */
|
|
12
|
+
export declare const UpdateScimGroupMappingRequestRole$outboundSchema: z.ZodType<string, UpdateScimGroupMappingRequestRole>;
|
|
13
|
+
/** @internal */
|
|
14
|
+
export type UpdateScimGroupMappingRequest$Outbound = {
|
|
15
|
+
role: string;
|
|
16
|
+
};
|
|
17
|
+
/** @internal */
|
|
18
|
+
export declare const UpdateScimGroupMappingRequest$outboundSchema: z.ZodType<UpdateScimGroupMappingRequest$Outbound, UpdateScimGroupMappingRequest>;
|
|
19
|
+
export declare function updateScimGroupMappingRequestToJSON(updateScimGroupMappingRequest: UpdateScimGroupMappingRequest): string;
|
|
20
|
+
//# sourceMappingURL=updatescimgroupmappingrequest.d.ts.map
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
* @generated-id: ae49c0bf110c
|
|
4
|
+
*/
|
|
5
|
+
import * as z from "zod/v4";
|
|
6
|
+
import * as openEnums from "../types/enums.js";
|
|
7
|
+
export const UpdateScimGroupMappingRequestRole = {
|
|
8
|
+
Admin: "admin",
|
|
9
|
+
Member: "member",
|
|
10
|
+
};
|
|
11
|
+
/** @internal */
|
|
12
|
+
export const UpdateScimGroupMappingRequestRole$outboundSchema = openEnums.outboundSchema(UpdateScimGroupMappingRequestRole);
|
|
13
|
+
/** @internal */
|
|
14
|
+
export const UpdateScimGroupMappingRequest$outboundSchema = z.object({
|
|
15
|
+
role: UpdateScimGroupMappingRequestRole$outboundSchema,
|
|
16
|
+
});
|
|
17
|
+
export function updateScimGroupMappingRequestToJSON(updateScimGroupMappingRequest) {
|
|
18
|
+
return JSON.stringify(UpdateScimGroupMappingRequest$outboundSchema.parse(updateScimGroupMappingRequest));
|
|
19
|
+
}
|
|
20
|
+
//# sourceMappingURL=updatescimgroupmappingrequest.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 { ScimGroupMapping } from "./scimgroupmapping.js";
|
|
5
|
+
export type UpdateScimGroupMappingResponse = {
|
|
6
|
+
data: ScimGroupMapping;
|
|
7
|
+
};
|
|
8
|
+
/** @internal */
|
|
9
|
+
export declare const UpdateScimGroupMappingResponse$inboundSchema: z.ZodType<UpdateScimGroupMappingResponse, unknown>;
|
|
10
|
+
export declare function updateScimGroupMappingResponseFromJSON(jsonString: string): SafeParseResult<UpdateScimGroupMappingResponse, SDKValidationError>;
|
|
11
|
+
//# sourceMappingURL=updatescimgroupmappingresponse.d.ts.map
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
* @generated-id: 36503c874458
|
|
4
|
+
*/
|
|
5
|
+
import * as z from "zod/v4";
|
|
6
|
+
import { safeParse } from "../lib/schemas.js";
|
|
7
|
+
import { ScimGroupMapping$inboundSchema, } from "./scimgroupmapping.js";
|
|
8
|
+
/** @internal */
|
|
9
|
+
export const UpdateScimGroupMappingResponse$inboundSchema = z.object({
|
|
10
|
+
data: ScimGroupMapping$inboundSchema,
|
|
11
|
+
});
|
|
12
|
+
export function updateScimGroupMappingResponseFromJSON(jsonString) {
|
|
13
|
+
return safeParse(jsonString, (x) => UpdateScimGroupMappingResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdateScimGroupMappingResponse' from JSON`);
|
|
14
|
+
}
|
|
15
|
+
//# sourceMappingURL=updatescimgroupmappingresponse.js.map
|
package/esm/sdk/byok.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ import { ClientSDK, RequestOptions } from "../lib/sdks.js";
|
|
|
2
2
|
import * as models from "../models/index.js";
|
|
3
3
|
import * as operations from "../models/operations/index.js";
|
|
4
4
|
import { PageIterator } from "../types/operations.js";
|
|
5
|
-
export declare class
|
|
5
|
+
export declare class BYOK extends ClientSDK {
|
|
6
6
|
/**
|
|
7
7
|
* List BYOK provider credentials
|
|
8
8
|
*
|
package/esm/sdk/byok.js
CHANGED
|
@@ -10,7 +10,7 @@ import { byokUpdate } from "../funcs/byokUpdate.js";
|
|
|
10
10
|
import { ClientSDK } from "../lib/sdks.js";
|
|
11
11
|
import { unwrapAsync } from "../types/fp.js";
|
|
12
12
|
import { unwrapResultIterator } from "../types/operations.js";
|
|
13
|
-
export class
|
|
13
|
+
export class BYOK extends ClientSDK {
|
|
14
14
|
/**
|
|
15
15
|
* List BYOK provider credentials
|
|
16
16
|
*
|
|
@@ -0,0 +1,53 @@
|
|
|
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 Scim extends ClientSDK {
|
|
6
|
+
/**
|
|
7
|
+
* List SCIM group mappings
|
|
8
|
+
*
|
|
9
|
+
* @remarks
|
|
10
|
+
* List SCIM group-to-workspace mappings for the organization. [Management key](/docs/guides/overview/auth/management-api-keys) required.
|
|
11
|
+
*/
|
|
12
|
+
listMappings(request?: operations.ListScimGroupMappingsRequest | undefined, options?: RequestOptions): Promise<PageIterator<operations.ListScimGroupMappingsResponse, {
|
|
13
|
+
offset: number;
|
|
14
|
+
}>>;
|
|
15
|
+
/**
|
|
16
|
+
* Create a SCIM group mapping
|
|
17
|
+
*
|
|
18
|
+
* @remarks
|
|
19
|
+
* Create a SCIM group-to-workspace role mapping. [Management key](/docs/guides/overview/auth/management-api-keys) required.
|
|
20
|
+
*/
|
|
21
|
+
create(request: operations.CreateScimGroupMappingRequest, options?: RequestOptions): Promise<models.CreateScimGroupMappingResponse>;
|
|
22
|
+
/**
|
|
23
|
+
* Delete a SCIM group mapping
|
|
24
|
+
*
|
|
25
|
+
* @remarks
|
|
26
|
+
* Delete a SCIM group-to-workspace mapping. [Management key](/docs/guides/overview/auth/management-api-keys) required.
|
|
27
|
+
*/
|
|
28
|
+
delete(request: operations.DeleteScimGroupMappingRequest, options?: RequestOptions): Promise<models.DeleteScimGroupMappingResponse>;
|
|
29
|
+
/**
|
|
30
|
+
* Get a SCIM group mapping
|
|
31
|
+
*
|
|
32
|
+
* @remarks
|
|
33
|
+
* Get a SCIM group-to-workspace mapping. [Management key](/docs/guides/overview/auth/management-api-keys) required.
|
|
34
|
+
*/
|
|
35
|
+
read(request: operations.GetScimGroupMappingRequest, options?: RequestOptions): Promise<models.GetScimGroupMappingResponse>;
|
|
36
|
+
/**
|
|
37
|
+
* Update a SCIM group mapping
|
|
38
|
+
*
|
|
39
|
+
* @remarks
|
|
40
|
+
* Update a SCIM group mapping role. [Management key](/docs/guides/overview/auth/management-api-keys) required.
|
|
41
|
+
*/
|
|
42
|
+
update(request: operations.UpdateScimGroupMappingRequest, options?: RequestOptions): Promise<models.UpdateScimGroupMappingResponse>;
|
|
43
|
+
/**
|
|
44
|
+
* List SCIM groups
|
|
45
|
+
*
|
|
46
|
+
* @remarks
|
|
47
|
+
* List SCIM groups for the organization. [Management key](/docs/guides/overview/auth/management-api-keys) required.
|
|
48
|
+
*/
|
|
49
|
+
listGroups(request?: operations.ListScimGroupsRequest | undefined, options?: RequestOptions): Promise<PageIterator<operations.ListScimGroupsResponse, {
|
|
50
|
+
offset: number;
|
|
51
|
+
}>>;
|
|
52
|
+
}
|
|
53
|
+
//# sourceMappingURL=scim.d.ts.map
|
package/esm/sdk/scim.js
ADDED
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
* @generated-id: ecf200b1abaf
|
|
4
|
+
*/
|
|
5
|
+
import { scimCreate } from "../funcs/scimCreate.js";
|
|
6
|
+
import { scimDelete } from "../funcs/scimDelete.js";
|
|
7
|
+
import { scimListGroups } from "../funcs/scimListGroups.js";
|
|
8
|
+
import { scimListMappings } from "../funcs/scimListMappings.js";
|
|
9
|
+
import { scimRead } from "../funcs/scimRead.js";
|
|
10
|
+
import { scimUpdate } from "../funcs/scimUpdate.js";
|
|
11
|
+
import { ClientSDK } from "../lib/sdks.js";
|
|
12
|
+
import { unwrapAsync } from "../types/fp.js";
|
|
13
|
+
import { unwrapResultIterator } from "../types/operations.js";
|
|
14
|
+
export class Scim extends ClientSDK {
|
|
15
|
+
/**
|
|
16
|
+
* List SCIM group mappings
|
|
17
|
+
*
|
|
18
|
+
* @remarks
|
|
19
|
+
* List SCIM group-to-workspace mappings for the organization. [Management key](/docs/guides/overview/auth/management-api-keys) required.
|
|
20
|
+
*/
|
|
21
|
+
async listMappings(request, options) {
|
|
22
|
+
return unwrapResultIterator(scimListMappings(this, request, options));
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* Create a SCIM group mapping
|
|
26
|
+
*
|
|
27
|
+
* @remarks
|
|
28
|
+
* Create a SCIM group-to-workspace role mapping. [Management key](/docs/guides/overview/auth/management-api-keys) required.
|
|
29
|
+
*/
|
|
30
|
+
async create(request, options) {
|
|
31
|
+
return unwrapAsync(scimCreate(this, request, options));
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* Delete a SCIM group mapping
|
|
35
|
+
*
|
|
36
|
+
* @remarks
|
|
37
|
+
* Delete a SCIM group-to-workspace mapping. [Management key](/docs/guides/overview/auth/management-api-keys) required.
|
|
38
|
+
*/
|
|
39
|
+
async delete(request, options) {
|
|
40
|
+
return unwrapAsync(scimDelete(this, request, options));
|
|
41
|
+
}
|
|
42
|
+
/**
|
|
43
|
+
* Get a SCIM group mapping
|
|
44
|
+
*
|
|
45
|
+
* @remarks
|
|
46
|
+
* Get a SCIM group-to-workspace mapping. [Management key](/docs/guides/overview/auth/management-api-keys) required.
|
|
47
|
+
*/
|
|
48
|
+
async read(request, options) {
|
|
49
|
+
return unwrapAsync(scimRead(this, request, options));
|
|
50
|
+
}
|
|
51
|
+
/**
|
|
52
|
+
* Update a SCIM group mapping
|
|
53
|
+
*
|
|
54
|
+
* @remarks
|
|
55
|
+
* Update a SCIM group mapping role. [Management key](/docs/guides/overview/auth/management-api-keys) required.
|
|
56
|
+
*/
|
|
57
|
+
async update(request, options) {
|
|
58
|
+
return unwrapAsync(scimUpdate(this, request, options));
|
|
59
|
+
}
|
|
60
|
+
/**
|
|
61
|
+
* List SCIM groups
|
|
62
|
+
*
|
|
63
|
+
* @remarks
|
|
64
|
+
* List SCIM groups for the organization. [Management key](/docs/guides/overview/auth/management-api-keys) required.
|
|
65
|
+
*/
|
|
66
|
+
async listGroups(request, options) {
|
|
67
|
+
return unwrapResultIterator(scimListGroups(this, request, options));
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
//# sourceMappingURL=scim.js.map
|
package/esm/sdk/sdk.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ import { Analytics } from "./analytics.js";
|
|
|
3
3
|
import { APIKeys } from "./apikeys.js";
|
|
4
4
|
import { Benchmarks } from "./benchmarks.js";
|
|
5
5
|
import { Beta } from "./beta.js";
|
|
6
|
-
import {
|
|
6
|
+
import { BYOK } from "./byok.js";
|
|
7
7
|
import { Chat } from "./chat.js";
|
|
8
8
|
import { Classifications } from "./classifications.js";
|
|
9
9
|
import { Credits } from "./credits.js";
|
|
@@ -22,8 +22,9 @@ import { Presets } from "./presets.js";
|
|
|
22
22
|
import { Providers } from "./providers.js";
|
|
23
23
|
import { Rerank } from "./rerank.js";
|
|
24
24
|
import { Responses } from "./responses.js";
|
|
25
|
-
import {
|
|
26
|
-
import {
|
|
25
|
+
import { Scim } from "./scim.js";
|
|
26
|
+
import { STT } from "./stt.js";
|
|
27
|
+
import { TTS } from "./tts.js";
|
|
27
28
|
import { VideoGeneration } from "./videogeneration.js";
|
|
28
29
|
import { Workspaces } from "./workspaces.js";
|
|
29
30
|
import type { $ZodObject, $ZodShape, infer as zodInfer } from "zod/v4/core";
|
|
@@ -38,15 +39,15 @@ export declare class OpenRouter extends ClientSDK {
|
|
|
38
39
|
private _beta?;
|
|
39
40
|
get beta(): Beta;
|
|
40
41
|
private _tts?;
|
|
41
|
-
get tts():
|
|
42
|
+
get tts(): TTS;
|
|
42
43
|
private _stt?;
|
|
43
|
-
get stt():
|
|
44
|
+
get stt(): STT;
|
|
44
45
|
private _oAuth?;
|
|
45
46
|
get oAuth(): OAuth;
|
|
46
47
|
private _benchmarks?;
|
|
47
48
|
get benchmarks(): Benchmarks;
|
|
48
49
|
private _byok?;
|
|
49
|
-
get byok():
|
|
50
|
+
get byok(): BYOK;
|
|
50
51
|
private _chat?;
|
|
51
52
|
get chat(): Chat;
|
|
52
53
|
private _classifications?;
|
|
@@ -83,6 +84,8 @@ export declare class OpenRouter extends ClientSDK {
|
|
|
83
84
|
get rerank(): Rerank;
|
|
84
85
|
private _responses?;
|
|
85
86
|
get responses(): Responses;
|
|
87
|
+
private _scim?;
|
|
88
|
+
get scim(): Scim;
|
|
86
89
|
private _videoGeneration?;
|
|
87
90
|
get videoGeneration(): VideoGeneration;
|
|
88
91
|
private _workspaces?;
|
package/esm/sdk/sdk.js
CHANGED
|
@@ -7,7 +7,7 @@ import { Analytics } from "./analytics.js";
|
|
|
7
7
|
import { APIKeys } from "./apikeys.js";
|
|
8
8
|
import { Benchmarks } from "./benchmarks.js";
|
|
9
9
|
import { Beta } from "./beta.js";
|
|
10
|
-
import {
|
|
10
|
+
import { BYOK } from "./byok.js";
|
|
11
11
|
import { Chat } from "./chat.js";
|
|
12
12
|
import { Classifications } from "./classifications.js";
|
|
13
13
|
import { Credits } from "./credits.js";
|
|
@@ -26,8 +26,9 @@ import { Presets } from "./presets.js";
|
|
|
26
26
|
import { Providers } from "./providers.js";
|
|
27
27
|
import { Rerank } from "./rerank.js";
|
|
28
28
|
import { Responses } from "./responses.js";
|
|
29
|
-
import {
|
|
30
|
-
import {
|
|
29
|
+
import { Scim } from "./scim.js";
|
|
30
|
+
import { STT } from "./stt.js";
|
|
31
|
+
import { TTS } from "./tts.js";
|
|
31
32
|
import { VideoGeneration } from "./videogeneration.js";
|
|
32
33
|
import { Workspaces } from "./workspaces.js";
|
|
33
34
|
import { callModel as callModelFunc, } from "../funcs/call-model.js";
|
|
@@ -42,10 +43,10 @@ export class OpenRouter extends ClientSDK {
|
|
|
42
43
|
return (this._beta ?? (this._beta = new Beta(this._options)));
|
|
43
44
|
}
|
|
44
45
|
get tts() {
|
|
45
|
-
return (this._tts ?? (this._tts = new
|
|
46
|
+
return (this._tts ?? (this._tts = new TTS(this._options)));
|
|
46
47
|
}
|
|
47
48
|
get stt() {
|
|
48
|
-
return (this._stt ?? (this._stt = new
|
|
49
|
+
return (this._stt ?? (this._stt = new STT(this._options)));
|
|
49
50
|
}
|
|
50
51
|
get oAuth() {
|
|
51
52
|
return (this._oAuth ?? (this._oAuth = new OAuth(this._options)));
|
|
@@ -54,7 +55,7 @@ export class OpenRouter extends ClientSDK {
|
|
|
54
55
|
return (this._benchmarks ?? (this._benchmarks = new Benchmarks(this._options)));
|
|
55
56
|
}
|
|
56
57
|
get byok() {
|
|
57
|
-
return (this._byok ?? (this._byok = new
|
|
58
|
+
return (this._byok ?? (this._byok = new BYOK(this._options)));
|
|
58
59
|
}
|
|
59
60
|
get chat() {
|
|
60
61
|
return (this._chat ?? (this._chat = new Chat(this._options)));
|
|
@@ -110,6 +111,9 @@ export class OpenRouter extends ClientSDK {
|
|
|
110
111
|
get responses() {
|
|
111
112
|
return (this._responses ?? (this._responses = new Responses(this._options)));
|
|
112
113
|
}
|
|
114
|
+
get scim() {
|
|
115
|
+
return (this._scim ?? (this._scim = new Scim(this._options)));
|
|
116
|
+
}
|
|
113
117
|
get videoGeneration() {
|
|
114
118
|
return (this._videoGeneration ?? (this._videoGeneration = new VideoGeneration(this._options)));
|
|
115
119
|
}
|
package/esm/sdk/stt.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ClientSDK, RequestOptions } from "../lib/sdks.js";
|
|
2
2
|
import * as models from "../models/index.js";
|
|
3
3
|
import * as operations from "../models/operations/index.js";
|
|
4
|
-
export declare class
|
|
4
|
+
export declare class STT extends ClientSDK {
|
|
5
5
|
/**
|
|
6
6
|
* Create transcription
|
|
7
7
|
*
|
package/esm/sdk/stt.js
CHANGED
|
@@ -6,7 +6,7 @@ import { sttCreateTranscription } from "../funcs/sttCreateTranscription.js";
|
|
|
6
6
|
import { sttCreateTranscriptionMultipart } from "../funcs/sttCreateTranscriptionMultipart.js";
|
|
7
7
|
import { ClientSDK } from "../lib/sdks.js";
|
|
8
8
|
import { unwrapAsync } from "../types/fp.js";
|
|
9
|
-
export class
|
|
9
|
+
export class STT extends ClientSDK {
|
|
10
10
|
/**
|
|
11
11
|
* Create transcription
|
|
12
12
|
*
|
package/esm/sdk/tts.d.ts
CHANGED
package/esm/sdk/tts.js
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
import { ttsCreateSpeech } from "../funcs/ttsCreateSpeech.js";
|
|
6
6
|
import { ClientSDK } from "../lib/sdks.js";
|
|
7
7
|
import { unwrapAsync } from "../types/fp.js";
|
|
8
|
-
export class
|
|
8
|
+
export class TTS extends ClientSDK {
|
|
9
9
|
/**
|
|
10
10
|
* Create speech
|
|
11
11
|
*
|
package/jsr.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openrouter/sdk",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.2.0",
|
|
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
|
-
"
|
|
25
|
-
"
|
|
24
|
+
"provenance": true,
|
|
25
|
+
"access": "public"
|
|
26
26
|
},
|
|
27
27
|
"type": "module",
|
|
28
28
|
"main": "./esm/index.js",
|
|
@@ -73,15 +73,15 @@
|
|
|
73
73
|
"lint": "eslint --cache --max-warnings=0 src",
|
|
74
74
|
"build": "tsc",
|
|
75
75
|
"prepublishOnly": "npm run build",
|
|
76
|
-
"test:e2e": "vitest --run --project e2e",
|
|
77
|
-
"test:watch": "vitest --watch --project unit",
|
|
78
|
-
"typecheck": "tsc --noEmit",
|
|
79
|
-
"typecheck:transit": "exit 0",
|
|
80
|
-
"postinstall": "node scripts/check-types.js || true",
|
|
81
76
|
"prepare": "npm run build",
|
|
77
|
+
"test": "vitest --run --project unit",
|
|
82
78
|
"test:transit": "exit 0",
|
|
79
|
+
"typecheck": "tsc --noEmit",
|
|
80
|
+
"typecheck:transit": "exit 0",
|
|
83
81
|
"compile": "tsc",
|
|
84
|
-
"
|
|
82
|
+
"postinstall": "node scripts/check-types.js || true",
|
|
83
|
+
"test:e2e": "vitest --run --project e2e",
|
|
84
|
+
"test:watch": "vitest --watch --project unit"
|
|
85
85
|
},
|
|
86
86
|
"peerDependencies": {},
|
|
87
87
|
"devDependencies": {
|