@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,103 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
* @generated-id: 71d46eb8edca
|
|
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 a SCIM group mapping
|
|
18
|
+
*
|
|
19
|
+
* @remarks
|
|
20
|
+
* Get a SCIM group-to-workspace mapping. [Management key](/docs/guides/overview/auth/management-api-keys) required.
|
|
21
|
+
*/
|
|
22
|
+
export function scimRead(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.GetScimGroupMappingRequest$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/group-mappings/{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: "getScimGroupMapping",
|
|
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.GetScimGroupMappingResponse$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=scimRead.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
|
+
* Update a SCIM group mapping
|
|
14
|
+
*
|
|
15
|
+
* @remarks
|
|
16
|
+
* Update a SCIM group mapping role. [Management key](/docs/guides/overview/auth/management-api-keys) required.
|
|
17
|
+
*/
|
|
18
|
+
export declare function scimUpdate(client: OpenRouterCore, request: operations.UpdateScimGroupMappingRequest, options?: RequestOptions): APIPromise<Result<models.UpdateScimGroupMappingResponse, errors.BadRequestResponseError | errors.UnauthorizedResponseError | errors.NotFoundResponseError | errors.InternalServerResponseError | OpenRouterError | ResponseValidationError | ConnectionError | RequestAbortedError | RequestTimeoutError | InvalidRequestError | UnexpectedClientError | SDKValidationError>>;
|
|
19
|
+
//# sourceMappingURL=scimUpdate.d.ts.map
|
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
* @generated-id: 165bac1c9819
|
|
4
|
+
*/
|
|
5
|
+
import { encodeJSON, 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
|
+
* Update a SCIM group mapping
|
|
18
|
+
*
|
|
19
|
+
* @remarks
|
|
20
|
+
* Update a SCIM group mapping role. [Management key](/docs/guides/overview/auth/management-api-keys) required.
|
|
21
|
+
*/
|
|
22
|
+
export function scimUpdate(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.UpdateScimGroupMappingRequest$outboundSchema.parse(value), "Input validation failed");
|
|
27
|
+
if (!parsed.ok) {
|
|
28
|
+
return [parsed, { status: "invalid" }];
|
|
29
|
+
}
|
|
30
|
+
const payload = parsed.value;
|
|
31
|
+
const body = encodeJSON("body", payload.UpdateScimGroupMappingRequest, {
|
|
32
|
+
explode: true,
|
|
33
|
+
});
|
|
34
|
+
const pathParams = {
|
|
35
|
+
id: encodeSimple("id", payload.id, {
|
|
36
|
+
explode: false,
|
|
37
|
+
charEncoding: "percent",
|
|
38
|
+
}),
|
|
39
|
+
};
|
|
40
|
+
const path = pathToFunc("/scim/group-mappings/{id}")(pathParams);
|
|
41
|
+
const headers = new Headers(compactMap({
|
|
42
|
+
"Content-Type": "application/json",
|
|
43
|
+
Accept: "application/json",
|
|
44
|
+
"HTTP-Referer": encodeSimple("HTTP-Referer", payload["HTTP-Referer"] ?? client._options.httpReferer, { explode: false, charEncoding: "none" }),
|
|
45
|
+
"X-OpenRouter-Categories": encodeSimple("X-OpenRouter-Categories", payload.appCategories ?? client._options.appCategories, { explode: false, charEncoding: "none" }),
|
|
46
|
+
"X-OpenRouter-Title": encodeSimple("X-OpenRouter-Title", payload.appTitle ?? client._options.appTitle, { explode: false, charEncoding: "none" }),
|
|
47
|
+
}));
|
|
48
|
+
const secConfig = await extractSecurity(client._options.apiKey);
|
|
49
|
+
const securityInput = secConfig == null ? {} : { apiKey: secConfig };
|
|
50
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
51
|
+
const context = {
|
|
52
|
+
options: client._options,
|
|
53
|
+
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
54
|
+
operationID: "updateScimGroupMapping",
|
|
55
|
+
oAuth2Scopes: null,
|
|
56
|
+
resolvedSecurity: requestSecurity,
|
|
57
|
+
securitySource: client._options.apiKey,
|
|
58
|
+
retryConfig: options?.retries
|
|
59
|
+
|| client._options.retryConfig
|
|
60
|
+
|| {
|
|
61
|
+
strategy: "backoff",
|
|
62
|
+
backoff: {
|
|
63
|
+
initialInterval: 500,
|
|
64
|
+
maxInterval: 60000,
|
|
65
|
+
exponent: 1.5,
|
|
66
|
+
maxElapsedTime: 3600000,
|
|
67
|
+
},
|
|
68
|
+
retryConnectionErrors: true,
|
|
69
|
+
}
|
|
70
|
+
|| { strategy: "none" },
|
|
71
|
+
retryCodes: options?.retryCodes || ["5XX"],
|
|
72
|
+
};
|
|
73
|
+
const requestRes = client._createRequest(context, {
|
|
74
|
+
security: requestSecurity,
|
|
75
|
+
method: "PATCH",
|
|
76
|
+
baseURL: options?.serverURL,
|
|
77
|
+
path: path,
|
|
78
|
+
headers: headers,
|
|
79
|
+
body: body,
|
|
80
|
+
userAgent: client._options.userAgent,
|
|
81
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
|
|
82
|
+
}, options);
|
|
83
|
+
if (!requestRes.ok) {
|
|
84
|
+
return [requestRes, { status: "invalid" }];
|
|
85
|
+
}
|
|
86
|
+
const req = requestRes.value;
|
|
87
|
+
const doResult = await client._do(req, {
|
|
88
|
+
context,
|
|
89
|
+
isErrorStatusCode: (statusCode) => matchStatusCode({ status: statusCode }, ["4XX", "5XX"]),
|
|
90
|
+
retryConfig: context.retryConfig,
|
|
91
|
+
retryCodes: context.retryCodes,
|
|
92
|
+
});
|
|
93
|
+
if (!doResult.ok) {
|
|
94
|
+
return [doResult, { status: "request-error", request: req }];
|
|
95
|
+
}
|
|
96
|
+
const response = doResult.value;
|
|
97
|
+
const responseFields = {
|
|
98
|
+
HttpMeta: { Response: response, Request: req },
|
|
99
|
+
};
|
|
100
|
+
const [result] = await M.match(M.json(200, models.UpdateScimGroupMappingResponse$inboundSchema), M.jsonErr(400, errors.BadRequestResponseError$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 });
|
|
101
|
+
if (!result.ok) {
|
|
102
|
+
return [result, { status: "complete", request: req, response }];
|
|
103
|
+
}
|
|
104
|
+
return [result, { status: "complete", request: req, response }];
|
|
105
|
+
}
|
|
106
|
+
//# sourceMappingURL=scimUpdate.js.map
|
package/esm/lib/config.d.ts
CHANGED
|
@@ -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.
|
|
52
|
+
readonly sdkVersion: "1.2.0";
|
|
53
53
|
readonly genVersion: "2.914.0";
|
|
54
|
-
readonly userAgent: "speakeasy-sdk/typescript 1.
|
|
54
|
+
readonly userAgent: "speakeasy-sdk/typescript 1.2.0 2.914.0 1.0.0 @openrouter/sdk";
|
|
55
55
|
};
|
|
56
56
|
//# sourceMappingURL=config.d.ts.map
|
package/esm/lib/config.js
CHANGED
|
@@ -26,8 +26,8 @@ export function serverURLFromOptions(options) {
|
|
|
26
26
|
export const SDK_METADATA = {
|
|
27
27
|
language: "typescript",
|
|
28
28
|
openapiDocVersion: "1.0.0",
|
|
29
|
-
sdkVersion: "1.
|
|
29
|
+
sdkVersion: "1.2.0",
|
|
30
30
|
genVersion: "2.914.0",
|
|
31
|
-
userAgent: "speakeasy-sdk/typescript 1.
|
|
31
|
+
userAgent: "speakeasy-sdk/typescript 1.2.0 2.914.0 1.0.0 @openrouter/sdk",
|
|
32
32
|
};
|
|
33
33
|
//# sourceMappingURL=config.js.map
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import * as z from "zod/v4";
|
|
2
|
+
import { OpenEnum } from "../types/enums.js";
|
|
3
|
+
export declare const CreateScimGroupMappingRequestRole: {
|
|
4
|
+
readonly Admin: "admin";
|
|
5
|
+
readonly Member: "member";
|
|
6
|
+
};
|
|
7
|
+
export type CreateScimGroupMappingRequestRole = OpenEnum<typeof CreateScimGroupMappingRequestRole>;
|
|
8
|
+
export type CreateScimGroupMappingRequest = {
|
|
9
|
+
role: CreateScimGroupMappingRequestRole;
|
|
10
|
+
scimGroupId: string;
|
|
11
|
+
workspaceId: string;
|
|
12
|
+
};
|
|
13
|
+
/** @internal */
|
|
14
|
+
export declare const CreateScimGroupMappingRequestRole$outboundSchema: z.ZodType<string, CreateScimGroupMappingRequestRole>;
|
|
15
|
+
/** @internal */
|
|
16
|
+
export type CreateScimGroupMappingRequest$Outbound = {
|
|
17
|
+
role: string;
|
|
18
|
+
scim_group_id: string;
|
|
19
|
+
workspace_id: string;
|
|
20
|
+
};
|
|
21
|
+
/** @internal */
|
|
22
|
+
export declare const CreateScimGroupMappingRequest$outboundSchema: z.ZodType<CreateScimGroupMappingRequest$Outbound, CreateScimGroupMappingRequest>;
|
|
23
|
+
export declare function createScimGroupMappingRequestToJSON(createScimGroupMappingRequest: CreateScimGroupMappingRequest): string;
|
|
24
|
+
//# sourceMappingURL=createscimgroupmappingrequest.d.ts.map
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
* @generated-id: b5fef01e7c38
|
|
4
|
+
*/
|
|
5
|
+
import * as z from "zod/v4";
|
|
6
|
+
import { remap as remap$ } from "../lib/primitives.js";
|
|
7
|
+
import * as openEnums from "../types/enums.js";
|
|
8
|
+
export const CreateScimGroupMappingRequestRole = {
|
|
9
|
+
Admin: "admin",
|
|
10
|
+
Member: "member",
|
|
11
|
+
};
|
|
12
|
+
/** @internal */
|
|
13
|
+
export const CreateScimGroupMappingRequestRole$outboundSchema = openEnums.outboundSchema(CreateScimGroupMappingRequestRole);
|
|
14
|
+
/** @internal */
|
|
15
|
+
export const CreateScimGroupMappingRequest$outboundSchema = z.object({
|
|
16
|
+
role: CreateScimGroupMappingRequestRole$outboundSchema,
|
|
17
|
+
scimGroupId: z.string(),
|
|
18
|
+
workspaceId: z.string(),
|
|
19
|
+
}).transform((v) => {
|
|
20
|
+
return remap$(v, {
|
|
21
|
+
scimGroupId: "scim_group_id",
|
|
22
|
+
workspaceId: "workspace_id",
|
|
23
|
+
});
|
|
24
|
+
});
|
|
25
|
+
export function createScimGroupMappingRequestToJSON(createScimGroupMappingRequest) {
|
|
26
|
+
return JSON.stringify(CreateScimGroupMappingRequest$outboundSchema.parse(createScimGroupMappingRequest));
|
|
27
|
+
}
|
|
28
|
+
//# sourceMappingURL=createscimgroupmappingrequest.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 CreateScimGroupMappingResponse = {
|
|
6
|
+
data: ScimGroupMapping;
|
|
7
|
+
};
|
|
8
|
+
/** @internal */
|
|
9
|
+
export declare const CreateScimGroupMappingResponse$inboundSchema: z.ZodType<CreateScimGroupMappingResponse, unknown>;
|
|
10
|
+
export declare function createScimGroupMappingResponseFromJSON(jsonString: string): SafeParseResult<CreateScimGroupMappingResponse, SDKValidationError>;
|
|
11
|
+
//# sourceMappingURL=createscimgroupmappingresponse.d.ts.map
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
* @generated-id: b3723e0973bc
|
|
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 CreateScimGroupMappingResponse$inboundSchema = z.object({
|
|
10
|
+
data: ScimGroupMapping$inboundSchema,
|
|
11
|
+
});
|
|
12
|
+
export function createScimGroupMappingResponseFromJSON(jsonString) {
|
|
13
|
+
return safeParse(jsonString, (x) => CreateScimGroupMappingResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CreateScimGroupMappingResponse' from JSON`);
|
|
14
|
+
}
|
|
15
|
+
//# sourceMappingURL=createscimgroupmappingresponse.js.map
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import * as z from "zod/v4";
|
|
2
|
+
import { Result as SafeParseResult } from "../types/fp.js";
|
|
3
|
+
import { SDKValidationError } from "./errors/sdkvalidationerror.js";
|
|
4
|
+
export type DeleteScimGroupMappingResponse = {
|
|
5
|
+
deleted: true;
|
|
6
|
+
};
|
|
7
|
+
/** @internal */
|
|
8
|
+
export declare const DeleteScimGroupMappingResponse$inboundSchema: z.ZodType<DeleteScimGroupMappingResponse, unknown>;
|
|
9
|
+
export declare function deleteScimGroupMappingResponseFromJSON(jsonString: string): SafeParseResult<DeleteScimGroupMappingResponse, SDKValidationError>;
|
|
10
|
+
//# sourceMappingURL=deletescimgroupmappingresponse.d.ts.map
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
* @generated-id: 6773f6e7c59d
|
|
4
|
+
*/
|
|
5
|
+
import * as z from "zod/v4";
|
|
6
|
+
import { safeParse } from "../lib/schemas.js";
|
|
7
|
+
/** @internal */
|
|
8
|
+
export const DeleteScimGroupMappingResponse$inboundSchema = z.object({
|
|
9
|
+
deleted: z.literal(true),
|
|
10
|
+
});
|
|
11
|
+
export function deleteScimGroupMappingResponseFromJSON(jsonString) {
|
|
12
|
+
return safeParse(jsonString, (x) => DeleteScimGroupMappingResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeleteScimGroupMappingResponse' from JSON`);
|
|
13
|
+
}
|
|
14
|
+
//# sourceMappingURL=deletescimgroupmappingresponse.js.map
|
|
@@ -10,8 +10,8 @@ export declare const ApiType: {
|
|
|
10
10
|
readonly Completions: "completions";
|
|
11
11
|
readonly Embeddings: "embeddings";
|
|
12
12
|
readonly Rerank: "rerank";
|
|
13
|
-
readonly
|
|
14
|
-
readonly
|
|
13
|
+
readonly TTS: "tts";
|
|
14
|
+
readonly STT: "stt";
|
|
15
15
|
readonly Video: "video";
|
|
16
16
|
readonly Image: "image";
|
|
17
17
|
};
|
|
@@ -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 GetScimGroupMappingResponse = {
|
|
6
|
+
data: ScimGroupMapping;
|
|
7
|
+
};
|
|
8
|
+
/** @internal */
|
|
9
|
+
export declare const GetScimGroupMappingResponse$inboundSchema: z.ZodType<GetScimGroupMappingResponse, unknown>;
|
|
10
|
+
export declare function getScimGroupMappingResponseFromJSON(jsonString: string): SafeParseResult<GetScimGroupMappingResponse, SDKValidationError>;
|
|
11
|
+
//# sourceMappingURL=getscimgroupmappingresponse.d.ts.map
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
* @generated-id: 96e1fbabfc37
|
|
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 GetScimGroupMappingResponse$inboundSchema = z.object({
|
|
10
|
+
data: ScimGroupMapping$inboundSchema,
|
|
11
|
+
});
|
|
12
|
+
export function getScimGroupMappingResponseFromJSON(jsonString) {
|
|
13
|
+
return safeParse(jsonString, (x) => GetScimGroupMappingResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetScimGroupMappingResponse' from JSON`);
|
|
14
|
+
}
|
|
15
|
+
//# sourceMappingURL=getscimgroupmappingresponse.js.map
|
package/esm/models/index.d.ts
CHANGED
|
@@ -167,6 +167,8 @@ export * from "./createguardrailresponse.js";
|
|
|
167
167
|
export * from "./createobservabilitydestinationrequest.js";
|
|
168
168
|
export * from "./createobservabilitydestinationresponse.js";
|
|
169
169
|
export * from "./createpresetfrominferenceresponse.js";
|
|
170
|
+
export * from "./createscimgroupmappingrequest.js";
|
|
171
|
+
export * from "./createscimgroupmappingresponse.js";
|
|
170
172
|
export * from "./createworkspacerequest.js";
|
|
171
173
|
export * from "./createworkspaceresponse.js";
|
|
172
174
|
export * from "./customtool.js";
|
|
@@ -182,6 +184,7 @@ export * from "./defaultparameters.js";
|
|
|
182
184
|
export * from "./deletebyokkeyresponse.js";
|
|
183
185
|
export * from "./deleteguardrailresponse.js";
|
|
184
186
|
export * from "./deleteobservabilitydestinationresponse.js";
|
|
187
|
+
export * from "./deletescimgroupmappingresponse.js";
|
|
185
188
|
export * from "./deleteworkspacebudgetresponse.js";
|
|
186
189
|
export * from "./deleteworkspaceresponse.js";
|
|
187
190
|
export * from "./easyinputmessage.js";
|
|
@@ -233,6 +236,7 @@ export * from "./getguardrailresponse.js";
|
|
|
233
236
|
export * from "./getobservabilitydestinationresponse.js";
|
|
234
237
|
export * from "./getpresetresponse.js";
|
|
235
238
|
export * from "./getpresetversionresponse.js";
|
|
239
|
+
export * from "./getscimgroupmappingresponse.js";
|
|
236
240
|
export * from "./getworkspaceresponse.js";
|
|
237
241
|
export * from "./guardrail.js";
|
|
238
242
|
export * from "./guardrailinterval.js";
|
|
@@ -288,6 +292,8 @@ export * from "./listmemberassignmentsresponse.js";
|
|
|
288
292
|
export * from "./listobservabilitydestinationsresponse.js";
|
|
289
293
|
export * from "./listpresetsresponse.js";
|
|
290
294
|
export * from "./listpresetversionsresponse.js";
|
|
295
|
+
export * from "./listscimgroupmappingsresponse.js";
|
|
296
|
+
export * from "./listscimgroupsresponse.js";
|
|
291
297
|
export * from "./listworkspacebudgetsresponse.js";
|
|
292
298
|
export * from "./listworkspacemembersresponse.js";
|
|
293
299
|
export * from "./listworkspacesresponse.js";
|
|
@@ -472,6 +478,8 @@ export * from "./responsesstreamingresponse.js";
|
|
|
472
478
|
export * from "./routerattempt.js";
|
|
473
479
|
export * from "./routerparams.js";
|
|
474
480
|
export * from "./routingstrategy.js";
|
|
481
|
+
export * from "./scimgroup.js";
|
|
482
|
+
export * from "./scimgroupmapping.js";
|
|
475
483
|
export * from "./searchcontextsizeenum.js";
|
|
476
484
|
export * from "./searchmodelsservertoolconfig.js";
|
|
477
485
|
export * from "./searchmodelsservertoolopenrouter.js";
|
|
@@ -543,6 +551,8 @@ export * from "./updateguardrailrequest.js";
|
|
|
543
551
|
export * from "./updateguardrailresponse.js";
|
|
544
552
|
export * from "./updateobservabilitydestinationrequest.js";
|
|
545
553
|
export * from "./updateobservabilitydestinationresponse.js";
|
|
554
|
+
export * from "./updatescimgroupmappingrequest.js";
|
|
555
|
+
export * from "./updatescimgroupmappingresponse.js";
|
|
546
556
|
export * from "./updateworkspacerequest.js";
|
|
547
557
|
export * from "./updateworkspaceresponse.js";
|
|
548
558
|
export * from "./upsertworkspacebudgetrequest.js";
|
package/esm/models/index.js
CHANGED
|
@@ -171,6 +171,8 @@ export * from "./createguardrailresponse.js";
|
|
|
171
171
|
export * from "./createobservabilitydestinationrequest.js";
|
|
172
172
|
export * from "./createobservabilitydestinationresponse.js";
|
|
173
173
|
export * from "./createpresetfrominferenceresponse.js";
|
|
174
|
+
export * from "./createscimgroupmappingrequest.js";
|
|
175
|
+
export * from "./createscimgroupmappingresponse.js";
|
|
174
176
|
export * from "./createworkspacerequest.js";
|
|
175
177
|
export * from "./createworkspaceresponse.js";
|
|
176
178
|
export * from "./customtool.js";
|
|
@@ -186,6 +188,7 @@ export * from "./defaultparameters.js";
|
|
|
186
188
|
export * from "./deletebyokkeyresponse.js";
|
|
187
189
|
export * from "./deleteguardrailresponse.js";
|
|
188
190
|
export * from "./deleteobservabilitydestinationresponse.js";
|
|
191
|
+
export * from "./deletescimgroupmappingresponse.js";
|
|
189
192
|
export * from "./deleteworkspacebudgetresponse.js";
|
|
190
193
|
export * from "./deleteworkspaceresponse.js";
|
|
191
194
|
export * from "./easyinputmessage.js";
|
|
@@ -237,6 +240,7 @@ export * from "./getguardrailresponse.js";
|
|
|
237
240
|
export * from "./getobservabilitydestinationresponse.js";
|
|
238
241
|
export * from "./getpresetresponse.js";
|
|
239
242
|
export * from "./getpresetversionresponse.js";
|
|
243
|
+
export * from "./getscimgroupmappingresponse.js";
|
|
240
244
|
export * from "./getworkspaceresponse.js";
|
|
241
245
|
export * from "./guardrail.js";
|
|
242
246
|
export * from "./guardrailinterval.js";
|
|
@@ -292,6 +296,8 @@ export * from "./listmemberassignmentsresponse.js";
|
|
|
292
296
|
export * from "./listobservabilitydestinationsresponse.js";
|
|
293
297
|
export * from "./listpresetsresponse.js";
|
|
294
298
|
export * from "./listpresetversionsresponse.js";
|
|
299
|
+
export * from "./listscimgroupmappingsresponse.js";
|
|
300
|
+
export * from "./listscimgroupsresponse.js";
|
|
295
301
|
export * from "./listworkspacebudgetsresponse.js";
|
|
296
302
|
export * from "./listworkspacemembersresponse.js";
|
|
297
303
|
export * from "./listworkspacesresponse.js";
|
|
@@ -476,6 +482,8 @@ export * from "./responsesstreamingresponse.js";
|
|
|
476
482
|
export * from "./routerattempt.js";
|
|
477
483
|
export * from "./routerparams.js";
|
|
478
484
|
export * from "./routingstrategy.js";
|
|
485
|
+
export * from "./scimgroup.js";
|
|
486
|
+
export * from "./scimgroupmapping.js";
|
|
479
487
|
export * from "./searchcontextsizeenum.js";
|
|
480
488
|
export * from "./searchmodelsservertoolconfig.js";
|
|
481
489
|
export * from "./searchmodelsservertoolopenrouter.js";
|
|
@@ -547,6 +555,8 @@ export * from "./updateguardrailrequest.js";
|
|
|
547
555
|
export * from "./updateguardrailresponse.js";
|
|
548
556
|
export * from "./updateobservabilitydestinationrequest.js";
|
|
549
557
|
export * from "./updateobservabilitydestinationresponse.js";
|
|
558
|
+
export * from "./updatescimgroupmappingrequest.js";
|
|
559
|
+
export * from "./updatescimgroupmappingresponse.js";
|
|
550
560
|
export * from "./updateworkspacerequest.js";
|
|
551
561
|
export * from "./updateworkspaceresponse.js";
|
|
552
562
|
export * from "./upsertworkspacebudgetrequest.js";
|
|
@@ -0,0 +1,12 @@
|
|
|
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 ListScimGroupMappingsResponse = {
|
|
6
|
+
data: Array<ScimGroupMapping>;
|
|
7
|
+
totalCount: number;
|
|
8
|
+
};
|
|
9
|
+
/** @internal */
|
|
10
|
+
export declare const ListScimGroupMappingsResponse$inboundSchema: z.ZodType<ListScimGroupMappingsResponse, unknown>;
|
|
11
|
+
export declare function listScimGroupMappingsResponseFromJSON(jsonString: string): SafeParseResult<ListScimGroupMappingsResponse, SDKValidationError>;
|
|
12
|
+
//# sourceMappingURL=listscimgroupmappingsresponse.d.ts.map
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
* @generated-id: c04288fe6dbf
|
|
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 { ScimGroupMapping$inboundSchema, } from "./scimgroupmapping.js";
|
|
9
|
+
/** @internal */
|
|
10
|
+
export const ListScimGroupMappingsResponse$inboundSchema = z.object({
|
|
11
|
+
data: z.array(ScimGroupMapping$inboundSchema),
|
|
12
|
+
total_count: z.int(),
|
|
13
|
+
}).transform((v) => {
|
|
14
|
+
return remap$(v, {
|
|
15
|
+
"total_count": "totalCount",
|
|
16
|
+
});
|
|
17
|
+
});
|
|
18
|
+
export function listScimGroupMappingsResponseFromJSON(jsonString) {
|
|
19
|
+
return safeParse(jsonString, (x) => ListScimGroupMappingsResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListScimGroupMappingsResponse' from JSON`);
|
|
20
|
+
}
|
|
21
|
+
//# sourceMappingURL=listscimgroupmappingsresponse.js.map
|
|
@@ -0,0 +1,12 @@
|
|
|
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 { ScimGroup } from "./scimgroup.js";
|
|
5
|
+
export type ListScimGroupsResponse = {
|
|
6
|
+
data: Array<ScimGroup>;
|
|
7
|
+
totalCount: number;
|
|
8
|
+
};
|
|
9
|
+
/** @internal */
|
|
10
|
+
export declare const ListScimGroupsResponse$inboundSchema: z.ZodType<ListScimGroupsResponse, unknown>;
|
|
11
|
+
export declare function listScimGroupsResponseFromJSON(jsonString: string): SafeParseResult<ListScimGroupsResponse, SDKValidationError>;
|
|
12
|
+
//# sourceMappingURL=listscimgroupsresponse.d.ts.map
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
* @generated-id: d3fac2f94e20
|
|
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 { ScimGroup$inboundSchema } from "./scimgroup.js";
|
|
9
|
+
/** @internal */
|
|
10
|
+
export const ListScimGroupsResponse$inboundSchema = z.object({
|
|
11
|
+
data: z.array(ScimGroup$inboundSchema),
|
|
12
|
+
total_count: z.int(),
|
|
13
|
+
}).transform((v) => {
|
|
14
|
+
return remap$(v, {
|
|
15
|
+
"total_count": "totalCount",
|
|
16
|
+
});
|
|
17
|
+
});
|
|
18
|
+
export function listScimGroupsResponseFromJSON(jsonString) {
|
|
19
|
+
return safeParse(jsonString, (x) => ListScimGroupsResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListScimGroupsResponse' from JSON`);
|
|
20
|
+
}
|
|
21
|
+
//# sourceMappingURL=listscimgroupsresponse.js.map
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import * as z from "zod/v4";
|
|
2
|
+
import * as models from "../index.js";
|
|
3
|
+
export type CreateScimGroupMappingGlobals = {
|
|
4
|
+
/**
|
|
5
|
+
* The app identifier should be your app's URL and is used as the primary identifier for rankings.
|
|
6
|
+
*
|
|
7
|
+
* @remarks
|
|
8
|
+
* This is used to track API usage per application.
|
|
9
|
+
*/
|
|
10
|
+
httpReferer?: string | undefined;
|
|
11
|
+
/**
|
|
12
|
+
* The app display name allows you to customize how your app appears in OpenRouter's dashboard.
|
|
13
|
+
*
|
|
14
|
+
* @remarks
|
|
15
|
+
*/
|
|
16
|
+
appTitle?: string | undefined;
|
|
17
|
+
/**
|
|
18
|
+
* Comma-separated list of app categories (e.g. "cli-agent,cloud-agent"). Used for marketplace rankings.
|
|
19
|
+
*
|
|
20
|
+
* @remarks
|
|
21
|
+
*/
|
|
22
|
+
appCategories?: string | undefined;
|
|
23
|
+
};
|
|
24
|
+
export type CreateScimGroupMappingRequest = {
|
|
25
|
+
/**
|
|
26
|
+
* The app identifier should be your app's URL and is used as the primary identifier for rankings.
|
|
27
|
+
*
|
|
28
|
+
* @remarks
|
|
29
|
+
* This is used to track API usage per application.
|
|
30
|
+
*/
|
|
31
|
+
httpReferer?: string | undefined;
|
|
32
|
+
/**
|
|
33
|
+
* The app display name allows you to customize how your app appears in OpenRouter's dashboard.
|
|
34
|
+
*
|
|
35
|
+
* @remarks
|
|
36
|
+
*/
|
|
37
|
+
appTitle?: string | undefined;
|
|
38
|
+
/**
|
|
39
|
+
* Comma-separated list of app categories (e.g. "cli-agent,cloud-agent"). Used for marketplace rankings.
|
|
40
|
+
*
|
|
41
|
+
* @remarks
|
|
42
|
+
*/
|
|
43
|
+
appCategories?: string | undefined;
|
|
44
|
+
createScimGroupMappingRequest: models.CreateScimGroupMappingRequest;
|
|
45
|
+
};
|
|
46
|
+
/** @internal */
|
|
47
|
+
export type CreateScimGroupMappingRequest$Outbound = {
|
|
48
|
+
"HTTP-Referer"?: string | undefined;
|
|
49
|
+
appTitle?: string | undefined;
|
|
50
|
+
appCategories?: string | undefined;
|
|
51
|
+
CreateScimGroupMappingRequest: models.CreateScimGroupMappingRequest$Outbound;
|
|
52
|
+
};
|
|
53
|
+
/** @internal */
|
|
54
|
+
export declare const CreateScimGroupMappingRequest$outboundSchema: z.ZodType<CreateScimGroupMappingRequest$Outbound, CreateScimGroupMappingRequest>;
|
|
55
|
+
export declare function createScimGroupMappingRequestToJSON(createScimGroupMappingRequest: CreateScimGroupMappingRequest): string;
|
|
56
|
+
//# sourceMappingURL=createscimgroupmapping.d.ts.map
|