@openrouter/sdk 1.4.10 → 1.4.12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (56) hide show
  1. package/esm/funcs/endUsersCreate.d.ts +19 -0
  2. package/esm/funcs/endUsersCreate.js +100 -0
  3. package/esm/funcs/endUsersDelete.d.ts +18 -0
  4. package/esm/funcs/endUsersDelete.js +103 -0
  5. package/esm/funcs/endUsersGet.d.ts +19 -0
  6. package/esm/funcs/endUsersGet.js +103 -0
  7. package/esm/funcs/endUsersList.d.ts +21 -0
  8. package/esm/funcs/endUsersList.js +135 -0
  9. package/esm/funcs/endUsersUpdate.d.ts +19 -0
  10. package/esm/funcs/endUsersUpdate.js +106 -0
  11. package/esm/funcs/organizationGetSettings.d.ts +18 -0
  12. package/esm/funcs/organizationGetSettings.js +96 -0
  13. package/esm/funcs/organizationUpdateSettings.d.ts +18 -0
  14. package/esm/funcs/organizationUpdateSettings.js +99 -0
  15. package/esm/lib/config.d.ts +2 -2
  16. package/esm/lib/config.js +2 -2
  17. package/esm/models/createenduserrequest.d.ts +15 -0
  18. package/esm/models/createenduserrequest.js +13 -0
  19. package/esm/models/enduser.d.ts +25 -0
  20. package/esm/models/enduser.js +24 -0
  21. package/esm/models/enduserresponse.d.ts +11 -0
  22. package/esm/models/enduserresponse.js +15 -0
  23. package/esm/models/index.d.ts +7 -0
  24. package/esm/models/index.js +7 -0
  25. package/esm/models/listendusersresponse.d.ts +15 -0
  26. package/esm/models/listendusersresponse.js +21 -0
  27. package/esm/models/operations/createenduser.d.ts +56 -0
  28. package/esm/models/operations/createenduser.js +23 -0
  29. package/esm/models/operations/deleteenduser.d.ts +58 -0
  30. package/esm/models/operations/deleteenduser.js +21 -0
  31. package/esm/models/operations/getenduser.d.ts +58 -0
  32. package/esm/models/operations/getenduser.js +21 -0
  33. package/esm/models/operations/getorganizationsettings.d.ts +65 -0
  34. package/esm/models/operations/getorganizationsettings.js +29 -0
  35. package/esm/models/operations/index.d.ts +7 -0
  36. package/esm/models/operations/index.js +7 -0
  37. package/esm/models/operations/listendusers.d.ts +82 -0
  38. package/esm/models/operations/listendusers.js +38 -0
  39. package/esm/models/operations/updateenduser.d.ts +61 -0
  40. package/esm/models/operations/updateenduser.js +24 -0
  41. package/esm/models/operations/updateorganizationsettings.d.ts +67 -0
  42. package/esm/models/operations/updateorganizationsettings.js +31 -0
  43. package/esm/models/organizationsettings.d.ts +17 -0
  44. package/esm/models/organizationsettings.js +20 -0
  45. package/esm/models/updateenduserrequest.d.ts +15 -0
  46. package/esm/models/updateenduserrequest.js +18 -0
  47. package/esm/models/updateorganizationsettingsrequest.d.ts +15 -0
  48. package/esm/models/updateorganizationsettingsrequest.js +18 -0
  49. package/esm/sdk/endusers.d.ts +44 -0
  50. package/esm/sdk/endusers.js +60 -0
  51. package/esm/sdk/organization.d.ts +14 -0
  52. package/esm/sdk/organization.js +21 -0
  53. package/esm/sdk/sdk.d.ts +3 -0
  54. package/esm/sdk/sdk.js +4 -0
  55. package/jsr.json +1 -1
  56. package/package.json +8 -8
@@ -0,0 +1,56 @@
1
+ import * as z from "zod/v4";
2
+ import * as models from "../index.js";
3
+ export type CreateEndUserGlobals = {
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 CreateEndUserRequest = {
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
+ createEndUserRequest: models.CreateEndUserRequest;
45
+ };
46
+ /** @internal */
47
+ export type CreateEndUserRequest$Outbound = {
48
+ "HTTP-Referer"?: string | undefined;
49
+ appTitle?: string | undefined;
50
+ appCategories?: string | undefined;
51
+ CreateEndUserRequest: models.CreateEndUserRequest$Outbound;
52
+ };
53
+ /** @internal */
54
+ export declare const CreateEndUserRequest$outboundSchema: z.ZodType<CreateEndUserRequest$Outbound, CreateEndUserRequest>;
55
+ export declare function createEndUserRequestToJSON(createEndUserRequest: CreateEndUserRequest): string;
56
+ //# sourceMappingURL=createenduser.d.ts.map
@@ -0,0 +1,23 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ * @generated-id: 0f247a9b55fb
4
+ */
5
+ import * as z from "zod/v4";
6
+ import { remap as remap$ } from "../../lib/primitives.js";
7
+ import { CreateEndUserRequest$outboundSchema as models_CreateEndUserRequest$outboundSchema } from "../createenduserrequest.js";
8
+ /** @internal */
9
+ export const CreateEndUserRequest$outboundSchema = z.object({
10
+ httpReferer: z.string().optional(),
11
+ appTitle: z.string().optional(),
12
+ appCategories: z.string().optional(),
13
+ createEndUserRequest: models_CreateEndUserRequest$outboundSchema,
14
+ }).transform((v) => {
15
+ return remap$(v, {
16
+ httpReferer: "HTTP-Referer",
17
+ createEndUserRequest: "CreateEndUserRequest",
18
+ });
19
+ });
20
+ export function createEndUserRequestToJSON(createEndUserRequest) {
21
+ return JSON.stringify(CreateEndUserRequest$outboundSchema.parse(createEndUserRequest));
22
+ }
23
+ //# sourceMappingURL=createenduser.js.map
@@ -0,0 +1,58 @@
1
+ import * as z from "zod/v4";
2
+ export type DeleteEndUserGlobals = {
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 DeleteEndUserRequest = {
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
+ /**
44
+ * Immutable case-sensitive tracking string supplied as user on inference requests. URL-encode it in resource paths.
45
+ */
46
+ user: string;
47
+ };
48
+ /** @internal */
49
+ export type DeleteEndUserRequest$Outbound = {
50
+ "HTTP-Referer"?: string | undefined;
51
+ appTitle?: string | undefined;
52
+ appCategories?: string | undefined;
53
+ user: string;
54
+ };
55
+ /** @internal */
56
+ export declare const DeleteEndUserRequest$outboundSchema: z.ZodType<DeleteEndUserRequest$Outbound, DeleteEndUserRequest>;
57
+ export declare function deleteEndUserRequestToJSON(deleteEndUserRequest: DeleteEndUserRequest): string;
58
+ //# sourceMappingURL=deleteenduser.d.ts.map
@@ -0,0 +1,21 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ * @generated-id: 3ae73f681eb2
4
+ */
5
+ import * as z from "zod/v4";
6
+ import { remap as remap$ } from "../../lib/primitives.js";
7
+ /** @internal */
8
+ export const DeleteEndUserRequest$outboundSchema = z.object({
9
+ httpReferer: z.string().optional(),
10
+ appTitle: z.string().optional(),
11
+ appCategories: z.string().optional(),
12
+ user: z.string(),
13
+ }).transform((v) => {
14
+ return remap$(v, {
15
+ httpReferer: "HTTP-Referer",
16
+ });
17
+ });
18
+ export function deleteEndUserRequestToJSON(deleteEndUserRequest) {
19
+ return JSON.stringify(DeleteEndUserRequest$outboundSchema.parse(deleteEndUserRequest));
20
+ }
21
+ //# sourceMappingURL=deleteenduser.js.map
@@ -0,0 +1,58 @@
1
+ import * as z from "zod/v4";
2
+ export type GetEndUserGlobals = {
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 GetEndUserRequest = {
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
+ /**
44
+ * Immutable case-sensitive tracking string supplied as user on inference requests. URL-encode it in resource paths.
45
+ */
46
+ user: string;
47
+ };
48
+ /** @internal */
49
+ export type GetEndUserRequest$Outbound = {
50
+ "HTTP-Referer"?: string | undefined;
51
+ appTitle?: string | undefined;
52
+ appCategories?: string | undefined;
53
+ user: string;
54
+ };
55
+ /** @internal */
56
+ export declare const GetEndUserRequest$outboundSchema: z.ZodType<GetEndUserRequest$Outbound, GetEndUserRequest>;
57
+ export declare function getEndUserRequestToJSON(getEndUserRequest: GetEndUserRequest): string;
58
+ //# sourceMappingURL=getenduser.d.ts.map
@@ -0,0 +1,21 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ * @generated-id: a59cb5362b77
4
+ */
5
+ import * as z from "zod/v4";
6
+ import { remap as remap$ } from "../../lib/primitives.js";
7
+ /** @internal */
8
+ export const GetEndUserRequest$outboundSchema = z.object({
9
+ httpReferer: z.string().optional(),
10
+ appTitle: z.string().optional(),
11
+ appCategories: z.string().optional(),
12
+ user: z.string(),
13
+ }).transform((v) => {
14
+ return remap$(v, {
15
+ httpReferer: "HTTP-Referer",
16
+ });
17
+ });
18
+ export function getEndUserRequestToJSON(getEndUserRequest) {
19
+ return JSON.stringify(GetEndUserRequest$outboundSchema.parse(getEndUserRequest));
20
+ }
21
+ //# sourceMappingURL=getenduser.js.map
@@ -0,0 +1,65 @@
1
+ import * as z from "zod/v4";
2
+ import { Result as SafeParseResult } from "../../types/fp.js";
3
+ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
4
+ import * as models from "../index.js";
5
+ export type GetOrganizationSettingsGlobals = {
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 GetOrganizationSettingsRequest = {
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
+ /**
48
+ * Organization settings
49
+ */
50
+ export type GetOrganizationSettingsResponse = {
51
+ data: models.OrganizationSettings;
52
+ };
53
+ /** @internal */
54
+ export type GetOrganizationSettingsRequest$Outbound = {
55
+ "HTTP-Referer"?: string | undefined;
56
+ appTitle?: string | undefined;
57
+ appCategories?: string | undefined;
58
+ };
59
+ /** @internal */
60
+ export declare const GetOrganizationSettingsRequest$outboundSchema: z.ZodType<GetOrganizationSettingsRequest$Outbound, GetOrganizationSettingsRequest>;
61
+ export declare function getOrganizationSettingsRequestToJSON(getOrganizationSettingsRequest: GetOrganizationSettingsRequest): string;
62
+ /** @internal */
63
+ export declare const GetOrganizationSettingsResponse$inboundSchema: z.ZodType<GetOrganizationSettingsResponse, unknown>;
64
+ export declare function getOrganizationSettingsResponseFromJSON(jsonString: string): SafeParseResult<GetOrganizationSettingsResponse, SDKValidationError>;
65
+ //# sourceMappingURL=getorganizationsettings.d.ts.map
@@ -0,0 +1,29 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ * @generated-id: 1e33010d5333
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 { OrganizationSettings$inboundSchema as models_OrganizationSettings$inboundSchema } from "../organizationsettings.js";
9
+ /** @internal */
10
+ export const GetOrganizationSettingsRequest$outboundSchema = z.object({
11
+ httpReferer: z.string().optional(),
12
+ appTitle: z.string().optional(),
13
+ appCategories: z.string().optional(),
14
+ }).transform((v) => {
15
+ return remap$(v, {
16
+ httpReferer: "HTTP-Referer",
17
+ });
18
+ });
19
+ export function getOrganizationSettingsRequestToJSON(getOrganizationSettingsRequest) {
20
+ return JSON.stringify(GetOrganizationSettingsRequest$outboundSchema.parse(getOrganizationSettingsRequest));
21
+ }
22
+ /** @internal */
23
+ export const GetOrganizationSettingsResponse$inboundSchema = z.object({
24
+ data: models_OrganizationSettings$inboundSchema,
25
+ });
26
+ export function getOrganizationSettingsResponseFromJSON(jsonString) {
27
+ return safeParse(jsonString, (x) => GetOrganizationSettingsResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetOrganizationSettingsResponse' from JSON`);
28
+ }
29
+ //# sourceMappingURL=getorganizationsettings.js.map
@@ -14,6 +14,7 @@ export * from "./createauthkeyscode.js";
14
14
  export * from "./createbatches.js";
15
15
  export * from "./createbyokkey.js";
16
16
  export * from "./createembeddings.js";
17
+ export * from "./createenduser.js";
17
18
  export * from "./createguardrail.js";
18
19
  export * from "./createimages.js";
19
20
  export * from "./createintern.js";
@@ -34,6 +35,7 @@ export * from "./createvideos.js";
34
35
  export * from "./createworkspace.js";
35
36
  export * from "./deletebatch.js";
36
37
  export * from "./deletebyokkey.js";
38
+ export * from "./deleteenduser.js";
37
39
  export * from "./deletefile.js";
38
40
  export * from "./deleteguardrail.js";
39
41
  export * from "./deleteintern.js";
@@ -58,6 +60,7 @@ export * from "./getbyokkey.js";
58
60
  export * from "./getcontainerfile.js";
59
61
  export * from "./getcredits.js";
60
62
  export * from "./getcurrentkey.js";
63
+ export * from "./getenduser.js";
61
64
  export * from "./getfilemetadata.js";
62
65
  export * from "./getgeneration.js";
63
66
  export * from "./getguardrail.js";
@@ -68,6 +71,7 @@ export * from "./getkey.js";
68
71
  export * from "./getmodel.js";
69
72
  export * from "./getmodels.js";
70
73
  export * from "./getobservabilitydestination.js";
74
+ export * from "./getorganizationsettings.js";
71
75
  export * from "./getpreset.js";
72
76
  export * from "./getpresetversion.js";
73
77
  export * from "./getprivateendpoint.js";
@@ -89,6 +93,7 @@ export * from "./listcontainerfiles.js";
89
93
  export * from "./listembeddingsmodels.js";
90
94
  export * from "./listendpoints.js";
91
95
  export * from "./listendpointszdr.js";
96
+ export * from "./listendusers.js";
92
97
  export * from "./listfiles.js";
93
98
  export * from "./listgenerationcontent.js";
94
99
  export * from "./listguardrailkeyassignments.js";
@@ -128,10 +133,12 @@ export * from "./storevaultsecret.js";
128
133
  export * from "./submitgenerationfeedback.js";
129
134
  export * from "./suspendintern.js";
130
135
  export * from "./updatebyokkey.js";
136
+ export * from "./updateenduser.js";
131
137
  export * from "./updateguardrail.js";
132
138
  export * from "./updateintern.js";
133
139
  export * from "./updatekeys.js";
134
140
  export * from "./updateobservabilitydestination.js";
141
+ export * from "./updateorganizationsettings.js";
135
142
  export * from "./updateprivateendpoint.js";
136
143
  export * from "./updateprivateendpointpricing.js";
137
144
  export * from "./updatescimgroupmapping.js";
@@ -18,6 +18,7 @@ export * from "./createauthkeyscode.js";
18
18
  export * from "./createbatches.js";
19
19
  export * from "./createbyokkey.js";
20
20
  export * from "./createembeddings.js";
21
+ export * from "./createenduser.js";
21
22
  export * from "./createguardrail.js";
22
23
  export * from "./createimages.js";
23
24
  export * from "./createintern.js";
@@ -38,6 +39,7 @@ export * from "./createvideos.js";
38
39
  export * from "./createworkspace.js";
39
40
  export * from "./deletebatch.js";
40
41
  export * from "./deletebyokkey.js";
42
+ export * from "./deleteenduser.js";
41
43
  export * from "./deletefile.js";
42
44
  export * from "./deleteguardrail.js";
43
45
  export * from "./deleteintern.js";
@@ -62,6 +64,7 @@ export * from "./getbyokkey.js";
62
64
  export * from "./getcontainerfile.js";
63
65
  export * from "./getcredits.js";
64
66
  export * from "./getcurrentkey.js";
67
+ export * from "./getenduser.js";
65
68
  export * from "./getfilemetadata.js";
66
69
  export * from "./getgeneration.js";
67
70
  export * from "./getguardrail.js";
@@ -72,6 +75,7 @@ export * from "./getkey.js";
72
75
  export * from "./getmodel.js";
73
76
  export * from "./getmodels.js";
74
77
  export * from "./getobservabilitydestination.js";
78
+ export * from "./getorganizationsettings.js";
75
79
  export * from "./getpreset.js";
76
80
  export * from "./getpresetversion.js";
77
81
  export * from "./getprivateendpoint.js";
@@ -93,6 +97,7 @@ export * from "./listcontainerfiles.js";
93
97
  export * from "./listembeddingsmodels.js";
94
98
  export * from "./listendpoints.js";
95
99
  export * from "./listendpointszdr.js";
100
+ export * from "./listendusers.js";
96
101
  export * from "./listfiles.js";
97
102
  export * from "./listgenerationcontent.js";
98
103
  export * from "./listguardrailkeyassignments.js";
@@ -132,10 +137,12 @@ export * from "./storevaultsecret.js";
132
137
  export * from "./submitgenerationfeedback.js";
133
138
  export * from "./suspendintern.js";
134
139
  export * from "./updatebyokkey.js";
140
+ export * from "./updateenduser.js";
135
141
  export * from "./updateguardrail.js";
136
142
  export * from "./updateintern.js";
137
143
  export * from "./updatekeys.js";
138
144
  export * from "./updateobservabilitydestination.js";
145
+ export * from "./updateorganizationsettings.js";
139
146
  export * from "./updateprivateendpoint.js";
140
147
  export * from "./updateprivateendpointpricing.js";
141
148
  export * from "./updatescimgroupmapping.js";
@@ -0,0 +1,82 @@
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 ListEndUsersGlobals = {
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 ListEndUsersRequest = {
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
+ * Immutable case-sensitive tracking string supplied as user on inference requests. URL-encode it in resource paths.
56
+ */
57
+ user?: string | undefined;
58
+ /**
59
+ * Include deactivated registrations.
60
+ */
61
+ includeInactive?: boolean | undefined;
62
+ };
63
+ export type ListEndUsersResponse = {
64
+ result: models.ListEndUsersResponse;
65
+ };
66
+ /** @internal */
67
+ export type ListEndUsersRequest$Outbound = {
68
+ "HTTP-Referer"?: string | undefined;
69
+ appTitle?: string | undefined;
70
+ appCategories?: string | undefined;
71
+ offset: number | null;
72
+ limit: number;
73
+ user?: string | undefined;
74
+ include_inactive: boolean;
75
+ };
76
+ /** @internal */
77
+ export declare const ListEndUsersRequest$outboundSchema: z.ZodType<ListEndUsersRequest$Outbound, ListEndUsersRequest>;
78
+ export declare function listEndUsersRequestToJSON(listEndUsersRequest: ListEndUsersRequest): string;
79
+ /** @internal */
80
+ export declare const ListEndUsersResponse$inboundSchema: z.ZodType<ListEndUsersResponse, unknown>;
81
+ export declare function listEndUsersResponseFromJSON(jsonString: string): SafeParseResult<ListEndUsersResponse, SDKValidationError>;
82
+ //# sourceMappingURL=listendusers.d.ts.map
@@ -0,0 +1,38 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ * @generated-id: a9ea0c370613
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 { ListEndUsersResponse$inboundSchema as models_ListEndUsersResponse$inboundSchema } from "../listendusersresponse.js";
9
+ /** @internal */
10
+ export const ListEndUsersRequest$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
+ user: z.string().optional(),
17
+ includeInactive: z.boolean().default(false),
18
+ }).transform((v) => {
19
+ return remap$(v, {
20
+ httpReferer: "HTTP-Referer",
21
+ includeInactive: "include_inactive",
22
+ });
23
+ });
24
+ export function listEndUsersRequestToJSON(listEndUsersRequest) {
25
+ return JSON.stringify(ListEndUsersRequest$outboundSchema.parse(listEndUsersRequest));
26
+ }
27
+ /** @internal */
28
+ export const ListEndUsersResponse$inboundSchema = z.object({
29
+ Result: models_ListEndUsersResponse$inboundSchema,
30
+ }).transform((v) => {
31
+ return remap$(v, {
32
+ "Result": "result",
33
+ });
34
+ });
35
+ export function listEndUsersResponseFromJSON(jsonString) {
36
+ return safeParse(jsonString, (x) => ListEndUsersResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListEndUsersResponse' from JSON`);
37
+ }
38
+ //# sourceMappingURL=listendusers.js.map
@@ -0,0 +1,61 @@
1
+ import * as z from "zod/v4";
2
+ import * as models from "../index.js";
3
+ export type UpdateEndUserGlobals = {
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 UpdateEndUserRequest = {
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
+ /**
45
+ * Immutable case-sensitive tracking string supplied as user on inference requests. URL-encode it in resource paths.
46
+ */
47
+ user: string;
48
+ updateEndUserRequest: models.UpdateEndUserRequest;
49
+ };
50
+ /** @internal */
51
+ export type UpdateEndUserRequest$Outbound = {
52
+ "HTTP-Referer"?: string | undefined;
53
+ appTitle?: string | undefined;
54
+ appCategories?: string | undefined;
55
+ user: string;
56
+ UpdateEndUserRequest: models.UpdateEndUserRequest$Outbound;
57
+ };
58
+ /** @internal */
59
+ export declare const UpdateEndUserRequest$outboundSchema: z.ZodType<UpdateEndUserRequest$Outbound, UpdateEndUserRequest>;
60
+ export declare function updateEndUserRequestToJSON(updateEndUserRequest: UpdateEndUserRequest): string;
61
+ //# sourceMappingURL=updateenduser.d.ts.map
@@ -0,0 +1,24 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ * @generated-id: 15ed3e7fa116
4
+ */
5
+ import * as z from "zod/v4";
6
+ import { remap as remap$ } from "../../lib/primitives.js";
7
+ import { UpdateEndUserRequest$outboundSchema as models_UpdateEndUserRequest$outboundSchema } from "../updateenduserrequest.js";
8
+ /** @internal */
9
+ export const UpdateEndUserRequest$outboundSchema = z.object({
10
+ httpReferer: z.string().optional(),
11
+ appTitle: z.string().optional(),
12
+ appCategories: z.string().optional(),
13
+ user: z.string(),
14
+ updateEndUserRequest: models_UpdateEndUserRequest$outboundSchema,
15
+ }).transform((v) => {
16
+ return remap$(v, {
17
+ httpReferer: "HTTP-Referer",
18
+ updateEndUserRequest: "UpdateEndUserRequest",
19
+ });
20
+ });
21
+ export function updateEndUserRequestToJSON(updateEndUserRequest) {
22
+ return JSON.stringify(UpdateEndUserRequest$outboundSchema.parse(updateEndUserRequest));
23
+ }
24
+ //# sourceMappingURL=updateenduser.js.map