@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,23 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
* @generated-id: c5875c4ab24d
|
|
4
|
+
*/
|
|
5
|
+
import * as z from "zod/v4";
|
|
6
|
+
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
+
import * as models from "../index.js";
|
|
8
|
+
/** @internal */
|
|
9
|
+
export const CreateScimGroupMappingRequest$outboundSchema = z.object({
|
|
10
|
+
httpReferer: z.string().optional(),
|
|
11
|
+
appTitle: z.string().optional(),
|
|
12
|
+
appCategories: z.string().optional(),
|
|
13
|
+
createScimGroupMappingRequest: models.CreateScimGroupMappingRequest$outboundSchema,
|
|
14
|
+
}).transform((v) => {
|
|
15
|
+
return remap$(v, {
|
|
16
|
+
httpReferer: "HTTP-Referer",
|
|
17
|
+
createScimGroupMappingRequest: "CreateScimGroupMappingRequest",
|
|
18
|
+
});
|
|
19
|
+
});
|
|
20
|
+
export function createScimGroupMappingRequestToJSON(createScimGroupMappingRequest) {
|
|
21
|
+
return JSON.stringify(CreateScimGroupMappingRequest$outboundSchema.parse(createScimGroupMappingRequest));
|
|
22
|
+
}
|
|
23
|
+
//# sourceMappingURL=createscimgroupmapping.js.map
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
import * as z from "zod/v4";
|
|
2
|
+
import { OpenEnum } from "../../types/enums.js";
|
|
3
|
+
export type DeleteScimGroupMappingGlobals = {
|
|
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 declare const KeepMembersEnum: {
|
|
25
|
+
readonly True: "true";
|
|
26
|
+
readonly False: "false";
|
|
27
|
+
};
|
|
28
|
+
export type KeepMembersEnum = OpenEnum<typeof KeepMembersEnum>;
|
|
29
|
+
/**
|
|
30
|
+
* Required. Whether to keep workspace members after deleting the mapping. `false` **removes** the members this mapping granted access to; `true` deletes the mapping while leaving membership intact as manually-managed. There is deliberately no default — omitting it returns `400` so the destructive path cannot be reached by accident. Mirrors the dashboard, whose `DeleteMappingSchema.keepMembers` is likewise required.
|
|
31
|
+
*/
|
|
32
|
+
export type KeepMembers = KeepMembersEnum | boolean;
|
|
33
|
+
export type DeleteScimGroupMappingRequest = {
|
|
34
|
+
/**
|
|
35
|
+
* The app identifier should be your app's URL and is used as the primary identifier for rankings.
|
|
36
|
+
*
|
|
37
|
+
* @remarks
|
|
38
|
+
* This is used to track API usage per application.
|
|
39
|
+
*/
|
|
40
|
+
httpReferer?: string | undefined;
|
|
41
|
+
/**
|
|
42
|
+
* The app display name allows you to customize how your app appears in OpenRouter's dashboard.
|
|
43
|
+
*
|
|
44
|
+
* @remarks
|
|
45
|
+
*/
|
|
46
|
+
appTitle?: string | undefined;
|
|
47
|
+
/**
|
|
48
|
+
* Comma-separated list of app categories (e.g. "cli-agent,cloud-agent"). Used for marketplace rankings.
|
|
49
|
+
*
|
|
50
|
+
* @remarks
|
|
51
|
+
*/
|
|
52
|
+
appCategories?: string | undefined;
|
|
53
|
+
id: string;
|
|
54
|
+
/**
|
|
55
|
+
* Required. Whether to keep workspace members after deleting the mapping. `false` **removes** the members this mapping granted access to; `true` deletes the mapping while leaving membership intact as manually-managed. There is deliberately no default — omitting it returns `400` so the destructive path cannot be reached by accident. Mirrors the dashboard, whose `DeleteMappingSchema.keepMembers` is likewise required.
|
|
56
|
+
*/
|
|
57
|
+
keepMembers: KeepMembersEnum | boolean;
|
|
58
|
+
};
|
|
59
|
+
/** @internal */
|
|
60
|
+
export declare const KeepMembersEnum$outboundSchema: z.ZodType<string, KeepMembersEnum>;
|
|
61
|
+
/** @internal */
|
|
62
|
+
export type KeepMembers$Outbound = string | boolean;
|
|
63
|
+
/** @internal */
|
|
64
|
+
export declare const KeepMembers$outboundSchema: z.ZodType<KeepMembers$Outbound, KeepMembers>;
|
|
65
|
+
export declare function keepMembersToJSON(keepMembers: KeepMembers): string;
|
|
66
|
+
/** @internal */
|
|
67
|
+
export type DeleteScimGroupMappingRequest$Outbound = {
|
|
68
|
+
"HTTP-Referer"?: string | undefined;
|
|
69
|
+
appTitle?: string | undefined;
|
|
70
|
+
appCategories?: string | undefined;
|
|
71
|
+
id: string;
|
|
72
|
+
keep_members: string | boolean;
|
|
73
|
+
};
|
|
74
|
+
/** @internal */
|
|
75
|
+
export declare const DeleteScimGroupMappingRequest$outboundSchema: z.ZodType<DeleteScimGroupMappingRequest$Outbound, DeleteScimGroupMappingRequest>;
|
|
76
|
+
export declare function deleteScimGroupMappingRequestToJSON(deleteScimGroupMappingRequest: DeleteScimGroupMappingRequest): string;
|
|
77
|
+
//# sourceMappingURL=deletescimgroupmapping.d.ts.map
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
* @generated-id: 28528c6c5f62
|
|
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 KeepMembersEnum = {
|
|
9
|
+
True: "true",
|
|
10
|
+
False: "false",
|
|
11
|
+
};
|
|
12
|
+
/** @internal */
|
|
13
|
+
export const KeepMembersEnum$outboundSchema = openEnums.outboundSchema(KeepMembersEnum);
|
|
14
|
+
/** @internal */
|
|
15
|
+
export const KeepMembers$outboundSchema = z.union([KeepMembersEnum$outboundSchema, z.boolean()]);
|
|
16
|
+
export function keepMembersToJSON(keepMembers) {
|
|
17
|
+
return JSON.stringify(KeepMembers$outboundSchema.parse(keepMembers));
|
|
18
|
+
}
|
|
19
|
+
/** @internal */
|
|
20
|
+
export const DeleteScimGroupMappingRequest$outboundSchema = z.object({
|
|
21
|
+
httpReferer: z.string().optional(),
|
|
22
|
+
appTitle: z.string().optional(),
|
|
23
|
+
appCategories: z.string().optional(),
|
|
24
|
+
id: z.string(),
|
|
25
|
+
keepMembers: z.union([KeepMembersEnum$outboundSchema, z.boolean()]),
|
|
26
|
+
}).transform((v) => {
|
|
27
|
+
return remap$(v, {
|
|
28
|
+
httpReferer: "HTTP-Referer",
|
|
29
|
+
keepMembers: "keep_members",
|
|
30
|
+
});
|
|
31
|
+
});
|
|
32
|
+
export function deleteScimGroupMappingRequestToJSON(deleteScimGroupMappingRequest) {
|
|
33
|
+
return JSON.stringify(DeleteScimGroupMappingRequest$outboundSchema.parse(deleteScimGroupMappingRequest));
|
|
34
|
+
}
|
|
35
|
+
//# sourceMappingURL=deletescimgroupmapping.js.map
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import * as z from "zod/v4";
|
|
2
|
+
export type GetScimGroupMappingGlobals = {
|
|
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 GetScimGroupMappingRequest = {
|
|
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 GetScimGroupMappingRequest$Outbound = {
|
|
47
|
+
"HTTP-Referer"?: string | undefined;
|
|
48
|
+
appTitle?: string | undefined;
|
|
49
|
+
appCategories?: string | undefined;
|
|
50
|
+
id: string;
|
|
51
|
+
};
|
|
52
|
+
/** @internal */
|
|
53
|
+
export declare const GetScimGroupMappingRequest$outboundSchema: z.ZodType<GetScimGroupMappingRequest$Outbound, GetScimGroupMappingRequest>;
|
|
54
|
+
export declare function getScimGroupMappingRequestToJSON(getScimGroupMappingRequest: GetScimGroupMappingRequest): string;
|
|
55
|
+
//# sourceMappingURL=getscimgroupmapping.d.ts.map
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
* @generated-id: 770ff3da0b58
|
|
4
|
+
*/
|
|
5
|
+
import * as z from "zod/v4";
|
|
6
|
+
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
+
/** @internal */
|
|
8
|
+
export const GetScimGroupMappingRequest$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 getScimGroupMappingRequestToJSON(getScimGroupMappingRequest) {
|
|
19
|
+
return JSON.stringify(GetScimGroupMappingRequest$outboundSchema.parse(getScimGroupMappingRequest));
|
|
20
|
+
}
|
|
21
|
+
//# sourceMappingURL=getscimgroupmapping.js.map
|
|
@@ -19,6 +19,7 @@ export * from "./createpresetsmessages.js";
|
|
|
19
19
|
export * from "./createpresetsresponses.js";
|
|
20
20
|
export * from "./creatererank.js";
|
|
21
21
|
export * from "./createresponses.js";
|
|
22
|
+
export * from "./createscimgroupmapping.js";
|
|
22
23
|
export * from "./createvideos.js";
|
|
23
24
|
export * from "./createworkspace.js";
|
|
24
25
|
export * from "./deletebyokkey.js";
|
|
@@ -26,6 +27,7 @@ export * from "./deletefile.js";
|
|
|
26
27
|
export * from "./deleteguardrail.js";
|
|
27
28
|
export * from "./deletekeys.js";
|
|
28
29
|
export * from "./deleteobservabilitydestination.js";
|
|
30
|
+
export * from "./deletescimgroupmapping.js";
|
|
29
31
|
export * from "./deleteworkspace.js";
|
|
30
32
|
export * from "./deleteworkspacebudget.js";
|
|
31
33
|
export * from "./downloadfilecontent.js";
|
|
@@ -46,6 +48,7 @@ export * from "./getobservabilitydestination.js";
|
|
|
46
48
|
export * from "./getpreset.js";
|
|
47
49
|
export * from "./getpresetversion.js";
|
|
48
50
|
export * from "./getrankingsdaily.js";
|
|
51
|
+
export * from "./getscimgroupmapping.js";
|
|
49
52
|
export * from "./gettaskclassifications.js";
|
|
50
53
|
export * from "./getuseractivity.js";
|
|
51
54
|
export * from "./getvideos.js";
|
|
@@ -71,6 +74,8 @@ export * from "./listorganizationmembers.js";
|
|
|
71
74
|
export * from "./listpresets.js";
|
|
72
75
|
export * from "./listpresetversions.js";
|
|
73
76
|
export * from "./listproviders.js";
|
|
77
|
+
export * from "./listscimgroupmappings.js";
|
|
78
|
+
export * from "./listscimgroups.js";
|
|
74
79
|
export * from "./listvideoscontent.js";
|
|
75
80
|
export * from "./listvideosmodels.js";
|
|
76
81
|
export * from "./listworkspacebudgets.js";
|
|
@@ -83,6 +88,7 @@ export * from "./updatebyokkey.js";
|
|
|
83
88
|
export * from "./updateguardrail.js";
|
|
84
89
|
export * from "./updatekeys.js";
|
|
85
90
|
export * from "./updateobservabilitydestination.js";
|
|
91
|
+
export * from "./updatescimgroupmapping.js";
|
|
86
92
|
export * from "./updateworkspace.js";
|
|
87
93
|
export * from "./uploadfile.js";
|
|
88
94
|
export * from "./upsertworkspacebudget.js";
|
|
@@ -23,6 +23,7 @@ export * from "./createpresetsmessages.js";
|
|
|
23
23
|
export * from "./createpresetsresponses.js";
|
|
24
24
|
export * from "./creatererank.js";
|
|
25
25
|
export * from "./createresponses.js";
|
|
26
|
+
export * from "./createscimgroupmapping.js";
|
|
26
27
|
export * from "./createvideos.js";
|
|
27
28
|
export * from "./createworkspace.js";
|
|
28
29
|
export * from "./deletebyokkey.js";
|
|
@@ -30,6 +31,7 @@ export * from "./deletefile.js";
|
|
|
30
31
|
export * from "./deleteguardrail.js";
|
|
31
32
|
export * from "./deletekeys.js";
|
|
32
33
|
export * from "./deleteobservabilitydestination.js";
|
|
34
|
+
export * from "./deletescimgroupmapping.js";
|
|
33
35
|
export * from "./deleteworkspace.js";
|
|
34
36
|
export * from "./deleteworkspacebudget.js";
|
|
35
37
|
export * from "./downloadfilecontent.js";
|
|
@@ -50,6 +52,7 @@ export * from "./getobservabilitydestination.js";
|
|
|
50
52
|
export * from "./getpreset.js";
|
|
51
53
|
export * from "./getpresetversion.js";
|
|
52
54
|
export * from "./getrankingsdaily.js";
|
|
55
|
+
export * from "./getscimgroupmapping.js";
|
|
53
56
|
export * from "./gettaskclassifications.js";
|
|
54
57
|
export * from "./getuseractivity.js";
|
|
55
58
|
export * from "./getvideos.js";
|
|
@@ -75,6 +78,8 @@ export * from "./listorganizationmembers.js";
|
|
|
75
78
|
export * from "./listpresets.js";
|
|
76
79
|
export * from "./listpresetversions.js";
|
|
77
80
|
export * from "./listproviders.js";
|
|
81
|
+
export * from "./listscimgroupmappings.js";
|
|
82
|
+
export * from "./listscimgroups.js";
|
|
78
83
|
export * from "./listvideoscontent.js";
|
|
79
84
|
export * from "./listvideosmodels.js";
|
|
80
85
|
export * from "./listworkspacebudgets.js";
|
|
@@ -87,6 +92,7 @@ export * from "./updatebyokkey.js";
|
|
|
87
92
|
export * from "./updateguardrail.js";
|
|
88
93
|
export * from "./updatekeys.js";
|
|
89
94
|
export * from "./updateobservabilitydestination.js";
|
|
95
|
+
export * from "./updatescimgroupmapping.js";
|
|
90
96
|
export * from "./updateworkspace.js";
|
|
91
97
|
export * from "./uploadfile.js";
|
|
92
98
|
export * from "./upsertworkspacebudget.js";
|
|
@@ -0,0 +1,72 @@
|
|
|
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 ListScimGroupMappingsGlobals = {
|
|
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 ListScimGroupMappingsRequest = {
|
|
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
|
+
* Number of records to skip for pagination
|
|
48
|
+
*/
|
|
49
|
+
offset?: number | null | undefined;
|
|
50
|
+
/**
|
|
51
|
+
* Maximum number of records to return (max 100)
|
|
52
|
+
*/
|
|
53
|
+
limit?: number | undefined;
|
|
54
|
+
};
|
|
55
|
+
export type ListScimGroupMappingsResponse = {
|
|
56
|
+
result: models.ListScimGroupMappingsResponse;
|
|
57
|
+
};
|
|
58
|
+
/** @internal */
|
|
59
|
+
export type ListScimGroupMappingsRequest$Outbound = {
|
|
60
|
+
"HTTP-Referer"?: string | undefined;
|
|
61
|
+
appTitle?: string | undefined;
|
|
62
|
+
appCategories?: string | undefined;
|
|
63
|
+
offset: number | null;
|
|
64
|
+
limit: number;
|
|
65
|
+
};
|
|
66
|
+
/** @internal */
|
|
67
|
+
export declare const ListScimGroupMappingsRequest$outboundSchema: z.ZodType<ListScimGroupMappingsRequest$Outbound, ListScimGroupMappingsRequest>;
|
|
68
|
+
export declare function listScimGroupMappingsRequestToJSON(listScimGroupMappingsRequest: ListScimGroupMappingsRequest): string;
|
|
69
|
+
/** @internal */
|
|
70
|
+
export declare const ListScimGroupMappingsResponse$inboundSchema: z.ZodType<ListScimGroupMappingsResponse, unknown>;
|
|
71
|
+
export declare function listScimGroupMappingsResponseFromJSON(jsonString: string): SafeParseResult<ListScimGroupMappingsResponse, SDKValidationError>;
|
|
72
|
+
//# sourceMappingURL=listscimgroupmappings.d.ts.map
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
* @generated-id: be5b19bb327f
|
|
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 ListScimGroupMappingsRequest$outboundSchema = z.object({
|
|
11
|
+
httpReferer: z.string().optional(),
|
|
12
|
+
appTitle: z.string().optional(),
|
|
13
|
+
appCategories: z.string().optional(),
|
|
14
|
+
offset: z.nullable(z.int().default(0)),
|
|
15
|
+
limit: z.int().default(50),
|
|
16
|
+
}).transform((v) => {
|
|
17
|
+
return remap$(v, {
|
|
18
|
+
httpReferer: "HTTP-Referer",
|
|
19
|
+
});
|
|
20
|
+
});
|
|
21
|
+
export function listScimGroupMappingsRequestToJSON(listScimGroupMappingsRequest) {
|
|
22
|
+
return JSON.stringify(ListScimGroupMappingsRequest$outboundSchema.parse(listScimGroupMappingsRequest));
|
|
23
|
+
}
|
|
24
|
+
/** @internal */
|
|
25
|
+
export const ListScimGroupMappingsResponse$inboundSchema = z.object({
|
|
26
|
+
Result: models.ListScimGroupMappingsResponse$inboundSchema,
|
|
27
|
+
}).transform((v) => {
|
|
28
|
+
return remap$(v, {
|
|
29
|
+
"Result": "result",
|
|
30
|
+
});
|
|
31
|
+
});
|
|
32
|
+
export function listScimGroupMappingsResponseFromJSON(jsonString) {
|
|
33
|
+
return safeParse(jsonString, (x) => ListScimGroupMappingsResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListScimGroupMappingsResponse' from JSON`);
|
|
34
|
+
}
|
|
35
|
+
//# sourceMappingURL=listscimgroupmappings.js.map
|
|
@@ -0,0 +1,72 @@
|
|
|
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 ListScimGroupsGlobals = {
|
|
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 ListScimGroupsRequest = {
|
|
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
|
+
* Number of records to skip for pagination
|
|
48
|
+
*/
|
|
49
|
+
offset?: number | null | undefined;
|
|
50
|
+
/**
|
|
51
|
+
* Maximum number of records to return (max 100)
|
|
52
|
+
*/
|
|
53
|
+
limit?: number | undefined;
|
|
54
|
+
};
|
|
55
|
+
export type ListScimGroupsResponse = {
|
|
56
|
+
result: models.ListScimGroupsResponse;
|
|
57
|
+
};
|
|
58
|
+
/** @internal */
|
|
59
|
+
export type ListScimGroupsRequest$Outbound = {
|
|
60
|
+
"HTTP-Referer"?: string | undefined;
|
|
61
|
+
appTitle?: string | undefined;
|
|
62
|
+
appCategories?: string | undefined;
|
|
63
|
+
offset: number | null;
|
|
64
|
+
limit: number;
|
|
65
|
+
};
|
|
66
|
+
/** @internal */
|
|
67
|
+
export declare const ListScimGroupsRequest$outboundSchema: z.ZodType<ListScimGroupsRequest$Outbound, ListScimGroupsRequest>;
|
|
68
|
+
export declare function listScimGroupsRequestToJSON(listScimGroupsRequest: ListScimGroupsRequest): string;
|
|
69
|
+
/** @internal */
|
|
70
|
+
export declare const ListScimGroupsResponse$inboundSchema: z.ZodType<ListScimGroupsResponse, unknown>;
|
|
71
|
+
export declare function listScimGroupsResponseFromJSON(jsonString: string): SafeParseResult<ListScimGroupsResponse, SDKValidationError>;
|
|
72
|
+
//# sourceMappingURL=listscimgroups.d.ts.map
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
* @generated-id: f6a6cc9a951f
|
|
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 ListScimGroupsRequest$outboundSchema = z.object({
|
|
11
|
+
httpReferer: z.string().optional(),
|
|
12
|
+
appTitle: z.string().optional(),
|
|
13
|
+
appCategories: z.string().optional(),
|
|
14
|
+
offset: z.nullable(z.int().default(0)),
|
|
15
|
+
limit: z.int().default(50),
|
|
16
|
+
}).transform((v) => {
|
|
17
|
+
return remap$(v, {
|
|
18
|
+
httpReferer: "HTTP-Referer",
|
|
19
|
+
});
|
|
20
|
+
});
|
|
21
|
+
export function listScimGroupsRequestToJSON(listScimGroupsRequest) {
|
|
22
|
+
return JSON.stringify(ListScimGroupsRequest$outboundSchema.parse(listScimGroupsRequest));
|
|
23
|
+
}
|
|
24
|
+
/** @internal */
|
|
25
|
+
export const ListScimGroupsResponse$inboundSchema = z.object({
|
|
26
|
+
Result: models.ListScimGroupsResponse$inboundSchema,
|
|
27
|
+
}).transform((v) => {
|
|
28
|
+
return remap$(v, {
|
|
29
|
+
"Result": "result",
|
|
30
|
+
});
|
|
31
|
+
});
|
|
32
|
+
export function listScimGroupsResponseFromJSON(jsonString) {
|
|
33
|
+
return safeParse(jsonString, (x) => ListScimGroupsResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListScimGroupsResponse' from JSON`);
|
|
34
|
+
}
|
|
35
|
+
//# sourceMappingURL=listscimgroups.js.map
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import * as z from "zod/v4";
|
|
2
|
+
import * as models from "../index.js";
|
|
3
|
+
export type UpdateScimGroupMappingGlobals = {
|
|
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 UpdateScimGroupMappingRequest = {
|
|
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
|
+
id: string;
|
|
45
|
+
updateScimGroupMappingRequest: models.UpdateScimGroupMappingRequest;
|
|
46
|
+
};
|
|
47
|
+
/** @internal */
|
|
48
|
+
export type UpdateScimGroupMappingRequest$Outbound = {
|
|
49
|
+
"HTTP-Referer"?: string | undefined;
|
|
50
|
+
appTitle?: string | undefined;
|
|
51
|
+
appCategories?: string | undefined;
|
|
52
|
+
id: string;
|
|
53
|
+
UpdateScimGroupMappingRequest: models.UpdateScimGroupMappingRequest$Outbound;
|
|
54
|
+
};
|
|
55
|
+
/** @internal */
|
|
56
|
+
export declare const UpdateScimGroupMappingRequest$outboundSchema: z.ZodType<UpdateScimGroupMappingRequest$Outbound, UpdateScimGroupMappingRequest>;
|
|
57
|
+
export declare function updateScimGroupMappingRequestToJSON(updateScimGroupMappingRequest: UpdateScimGroupMappingRequest): string;
|
|
58
|
+
//# sourceMappingURL=updatescimgroupmapping.d.ts.map
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
* @generated-id: 6b5a9008ec50
|
|
4
|
+
*/
|
|
5
|
+
import * as z from "zod/v4";
|
|
6
|
+
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
+
import * as models from "../index.js";
|
|
8
|
+
/** @internal */
|
|
9
|
+
export const UpdateScimGroupMappingRequest$outboundSchema = z.object({
|
|
10
|
+
httpReferer: z.string().optional(),
|
|
11
|
+
appTitle: z.string().optional(),
|
|
12
|
+
appCategories: z.string().optional(),
|
|
13
|
+
id: z.string(),
|
|
14
|
+
updateScimGroupMappingRequest: models.UpdateScimGroupMappingRequest$outboundSchema,
|
|
15
|
+
}).transform((v) => {
|
|
16
|
+
return remap$(v, {
|
|
17
|
+
httpReferer: "HTTP-Referer",
|
|
18
|
+
updateScimGroupMappingRequest: "UpdateScimGroupMappingRequest",
|
|
19
|
+
});
|
|
20
|
+
});
|
|
21
|
+
export function updateScimGroupMappingRequestToJSON(updateScimGroupMappingRequest) {
|
|
22
|
+
return JSON.stringify(UpdateScimGroupMappingRequest$outboundSchema.parse(updateScimGroupMappingRequest));
|
|
23
|
+
}
|
|
24
|
+
//# sourceMappingURL=updatescimgroupmapping.js.map
|
|
@@ -0,0 +1,15 @@
|
|
|
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 ScimGroup = {
|
|
5
|
+
createdAt: string;
|
|
6
|
+
displayName: string;
|
|
7
|
+
externalId: string | null;
|
|
8
|
+
id: string;
|
|
9
|
+
organizationId: string;
|
|
10
|
+
updatedAt: string;
|
|
11
|
+
};
|
|
12
|
+
/** @internal */
|
|
13
|
+
export declare const ScimGroup$inboundSchema: z.ZodType<ScimGroup, unknown>;
|
|
14
|
+
export declare function scimGroupFromJSON(jsonString: string): SafeParseResult<ScimGroup, SDKValidationError>;
|
|
15
|
+
//# sourceMappingURL=scimgroup.d.ts.map
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
* @generated-id: 660f64066687
|
|
4
|
+
*/
|
|
5
|
+
import * as z from "zod/v4";
|
|
6
|
+
import { remap as remap$ } from "../lib/primitives.js";
|
|
7
|
+
import { safeParse } from "../lib/schemas.js";
|
|
8
|
+
/** @internal */
|
|
9
|
+
export const ScimGroup$inboundSchema = z.object({
|
|
10
|
+
created_at: z.string(),
|
|
11
|
+
display_name: z.string(),
|
|
12
|
+
external_id: z.nullable(z.string()),
|
|
13
|
+
id: z.string(),
|
|
14
|
+
organization_id: z.string(),
|
|
15
|
+
updated_at: z.string(),
|
|
16
|
+
}).transform((v) => {
|
|
17
|
+
return remap$(v, {
|
|
18
|
+
"created_at": "createdAt",
|
|
19
|
+
"display_name": "displayName",
|
|
20
|
+
"external_id": "externalId",
|
|
21
|
+
"organization_id": "organizationId",
|
|
22
|
+
"updated_at": "updatedAt",
|
|
23
|
+
});
|
|
24
|
+
});
|
|
25
|
+
export function scimGroupFromJSON(jsonString) {
|
|
26
|
+
return safeParse(jsonString, (x) => ScimGroup$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ScimGroup' from JSON`);
|
|
27
|
+
}
|
|
28
|
+
//# sourceMappingURL=scimgroup.js.map
|
|
@@ -0,0 +1,24 @@
|
|
|
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
|
+
export declare const ScimGroupMappingRole: {
|
|
6
|
+
readonly Admin: "admin";
|
|
7
|
+
readonly Member: "member";
|
|
8
|
+
};
|
|
9
|
+
export type ScimGroupMappingRole = OpenEnum<typeof ScimGroupMappingRole>;
|
|
10
|
+
export type ScimGroupMapping = {
|
|
11
|
+
createdAt: string;
|
|
12
|
+
id: string;
|
|
13
|
+
organizationId: string;
|
|
14
|
+
role: ScimGroupMappingRole;
|
|
15
|
+
scimGroupId: string;
|
|
16
|
+
updatedAt: string;
|
|
17
|
+
workspaceId: string;
|
|
18
|
+
};
|
|
19
|
+
/** @internal */
|
|
20
|
+
export declare const ScimGroupMappingRole$inboundSchema: z.ZodType<ScimGroupMappingRole, unknown>;
|
|
21
|
+
/** @internal */
|
|
22
|
+
export declare const ScimGroupMapping$inboundSchema: z.ZodType<ScimGroupMapping, unknown>;
|
|
23
|
+
export declare function scimGroupMappingFromJSON(jsonString: string): SafeParseResult<ScimGroupMapping, SDKValidationError>;
|
|
24
|
+
//# sourceMappingURL=scimgroupmapping.d.ts.map
|