@openrouter/sdk 1.5.84 → 1.5.86
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/endpointsList.d.ts +1 -1
- package/esm/funcs/endpointsList.js +2 -2
- package/esm/funcs/endpointsListZdrEndpoints.d.ts +1 -1
- package/esm/funcs/endpointsListZdrEndpoints.js +2 -2
- package/esm/funcs/guardrailPoliciesListBudgetPolicies.d.ts +1 -1
- package/esm/funcs/guardrailPoliciesListBudgetPolicies.js +7 -7
- package/esm/funcs/guardrailPoliciesListModelAvailabilityPolicies.d.ts +1 -1
- package/esm/funcs/guardrailPoliciesListModelAvailabilityPolicies.js +8 -7
- package/esm/funcs/guardrailPoliciesListModerationPolicies.d.ts +1 -1
- package/esm/funcs/guardrailPoliciesListModerationPolicies.js +7 -7
- package/esm/funcs/guardrailsListKeyAssignments.js +1 -0
- package/esm/funcs/guardrailsListMemberAssignments.js +1 -0
- package/esm/lib/config.d.ts +2 -2
- package/esm/lib/config.js +2 -2
- package/esm/models/byokproviderslug.d.ts +1 -0
- package/esm/models/byokproviderslug.js +1 -0
- package/esm/models/changeguardrailpolicyassignmentrequest.d.ts +3 -3
- package/esm/models/changeguardrailpolicyassignmentrequest.js +1 -1
- package/esm/models/chatrequest.d.ts +22 -0
- package/esm/models/chatrequest.js +6 -0
- package/esm/models/createbudgetguardrailpolicyrequest.d.ts +3 -3
- package/esm/models/createbudgetguardrailpolicyrequest.js +1 -1
- package/esm/models/createmodelavailabilityguardrailpolicyrequest.d.ts +3 -3
- package/esm/models/createmodelavailabilityguardrailpolicyrequest.js +1 -1
- package/esm/models/createmoderationguardrailpolicyrequest.d.ts +3 -3
- package/esm/models/createmoderationguardrailpolicyrequest.js +1 -1
- package/esm/models/imagegenerationproviderpreferences.d.ts +6 -0
- package/esm/models/imagegenerationproviderpreferences.js +1 -0
- package/esm/models/operations/deletebudgetpolicy.d.ts +3 -3
- package/esm/models/operations/deletebudgetpolicy.js +1 -1
- package/esm/models/operations/deletemodelavailabilitypolicy.d.ts +3 -3
- package/esm/models/operations/deletemodelavailabilitypolicy.js +1 -1
- package/esm/models/operations/deletemoderationpolicy.d.ts +3 -3
- package/esm/models/operations/deletemoderationpolicy.js +1 -1
- package/esm/models/operations/getapikeypolicyassignment.d.ts +3 -3
- package/esm/models/operations/getapikeypolicyassignment.js +1 -1
- package/esm/models/operations/getbudgetpolicy.d.ts +3 -3
- package/esm/models/operations/getbudgetpolicy.js +1 -1
- package/esm/models/operations/getmemberpolicyassignment.d.ts +3 -3
- package/esm/models/operations/getmemberpolicyassignment.js +1 -1
- package/esm/models/operations/getmodelavailabilitypolicy.d.ts +3 -3
- package/esm/models/operations/getmodelavailabilitypolicy.js +1 -1
- package/esm/models/operations/getmoderationpolicy.d.ts +3 -3
- package/esm/models/operations/getmoderationpolicy.js +1 -1
- package/esm/models/operations/listbudgetpolicies.d.ts +3 -3
- package/esm/models/operations/listbudgetpolicies.js +1 -1
- package/esm/models/operations/listbyokkeys.d.ts +1 -0
- package/esm/models/operations/listbyokkeys.js +1 -0
- package/esm/models/operations/listkeyassignments.d.ts +5 -0
- package/esm/models/operations/listkeyassignments.js +2 -0
- package/esm/models/operations/listmemberassignments.d.ts +5 -0
- package/esm/models/operations/listmemberassignments.js +2 -0
- package/esm/models/operations/listmodelavailabilitypolicies.d.ts +3 -3
- package/esm/models/operations/listmodelavailabilitypolicies.js +1 -1
- package/esm/models/operations/listmoderationpolicies.d.ts +3 -3
- package/esm/models/operations/listmoderationpolicies.js +1 -1
- package/esm/models/operations/updatekeys.d.ts +1 -1
- package/esm/models/providername.d.ts +1 -0
- package/esm/models/providername.js +1 -0
- package/esm/models/provideroptions.d.ts +6 -0
- package/esm/models/provideroptions.js +1 -0
- package/esm/models/providerresponse.d.ts +1 -0
- package/esm/models/providerresponse.js +1 -0
- package/esm/models/updatebudgetguardrailpolicyrequest.d.ts +3 -3
- package/esm/models/updatebudgetguardrailpolicyrequest.js +1 -1
- package/esm/models/updatemodelavailabilityguardrailpolicyrequest.d.ts +3 -3
- package/esm/models/updatemodelavailabilityguardrailpolicyrequest.js +1 -1
- package/esm/models/updatemoderationguardrailpolicyrequest.d.ts +3 -3
- package/esm/models/updatemoderationguardrailpolicyrequest.js +1 -1
- package/esm/models/videogenerationrequest.d.ts +6 -0
- package/esm/models/videogenerationrequest.js +1 -0
- package/esm/sdk/guardrailpolicies.d.ts +3 -3
- package/jsr.json +1 -1
- package/package.json +7 -7
|
@@ -45,9 +45,9 @@ export type GetBudgetPolicyRequest = {
|
|
|
45
45
|
*/
|
|
46
46
|
id: string;
|
|
47
47
|
/**
|
|
48
|
-
* Workspace the policy belongs to
|
|
48
|
+
* Workspace the policy belongs to. Required for an organization management key; a workspace-scoped key defaults to its own workspace and gets 403 for any other.
|
|
49
49
|
*/
|
|
50
|
-
workspaceId
|
|
50
|
+
workspaceId?: string | undefined;
|
|
51
51
|
};
|
|
52
52
|
/** @internal */
|
|
53
53
|
export type GetBudgetPolicyRequest$Outbound = {
|
|
@@ -55,7 +55,7 @@ export type GetBudgetPolicyRequest$Outbound = {
|
|
|
55
55
|
appTitle?: string | undefined;
|
|
56
56
|
appCategories?: string | undefined;
|
|
57
57
|
id: string;
|
|
58
|
-
workspace_id
|
|
58
|
+
workspace_id?: string | undefined;
|
|
59
59
|
};
|
|
60
60
|
/** @internal */
|
|
61
61
|
export declare const GetBudgetPolicyRequest$outboundSchema: z.ZodType<GetBudgetPolicyRequest$Outbound, GetBudgetPolicyRequest>;
|
|
@@ -10,7 +10,7 @@ export const GetBudgetPolicyRequest$outboundSchema = z.object({
|
|
|
10
10
|
appTitle: z.string().optional(),
|
|
11
11
|
appCategories: z.string().optional(),
|
|
12
12
|
id: z.string(),
|
|
13
|
-
workspaceId: z.string(),
|
|
13
|
+
workspaceId: z.string().optional(),
|
|
14
14
|
}).transform((v) => {
|
|
15
15
|
return remap$(v, {
|
|
16
16
|
httpReferer: "HTTP-Referer",
|
|
@@ -59,9 +59,9 @@ export type GetMemberPolicyAssignmentRequest = {
|
|
|
59
59
|
*/
|
|
60
60
|
memberId: string;
|
|
61
61
|
/**
|
|
62
|
-
* Workspace the policy belongs to
|
|
62
|
+
* Workspace the policy belongs to. Required for an organization management key; a workspace-scoped key defaults to its own workspace and gets 403 for any other.
|
|
63
63
|
*/
|
|
64
|
-
workspaceId
|
|
64
|
+
workspaceId?: string | undefined;
|
|
65
65
|
/**
|
|
66
66
|
* Policy type the assignment is read or changed for
|
|
67
67
|
*/
|
|
@@ -75,7 +75,7 @@ export type GetMemberPolicyAssignmentRequest$Outbound = {
|
|
|
75
75
|
appTitle?: string | undefined;
|
|
76
76
|
appCategories?: string | undefined;
|
|
77
77
|
member_id: string;
|
|
78
|
-
workspace_id
|
|
78
|
+
workspace_id?: string | undefined;
|
|
79
79
|
policy_type: string;
|
|
80
80
|
};
|
|
81
81
|
/** @internal */
|
|
@@ -22,7 +22,7 @@ export const GetMemberPolicyAssignmentRequest$outboundSchema = z.object({
|
|
|
22
22
|
appTitle: z.string().optional(),
|
|
23
23
|
appCategories: z.string().optional(),
|
|
24
24
|
memberId: z.string(),
|
|
25
|
-
workspaceId: z.string(),
|
|
25
|
+
workspaceId: z.string().optional(),
|
|
26
26
|
policyType: GetMemberPolicyAssignmentPolicyType$outboundSchema,
|
|
27
27
|
}).transform((v) => {
|
|
28
28
|
return remap$(v, {
|
|
@@ -45,9 +45,9 @@ export type GetModelAvailabilityPolicyRequest = {
|
|
|
45
45
|
*/
|
|
46
46
|
id: string;
|
|
47
47
|
/**
|
|
48
|
-
* Workspace the policy belongs to
|
|
48
|
+
* Workspace the policy belongs to. Required for an organization management key; a workspace-scoped key defaults to its own workspace and gets 403 for any other.
|
|
49
49
|
*/
|
|
50
|
-
workspaceId
|
|
50
|
+
workspaceId?: string | undefined;
|
|
51
51
|
};
|
|
52
52
|
/** @internal */
|
|
53
53
|
export type GetModelAvailabilityPolicyRequest$Outbound = {
|
|
@@ -55,7 +55,7 @@ export type GetModelAvailabilityPolicyRequest$Outbound = {
|
|
|
55
55
|
appTitle?: string | undefined;
|
|
56
56
|
appCategories?: string | undefined;
|
|
57
57
|
id: string;
|
|
58
|
-
workspace_id
|
|
58
|
+
workspace_id?: string | undefined;
|
|
59
59
|
};
|
|
60
60
|
/** @internal */
|
|
61
61
|
export declare const GetModelAvailabilityPolicyRequest$outboundSchema: z.ZodType<GetModelAvailabilityPolicyRequest$Outbound, GetModelAvailabilityPolicyRequest>;
|
|
@@ -10,7 +10,7 @@ export const GetModelAvailabilityPolicyRequest$outboundSchema = z.object({
|
|
|
10
10
|
appTitle: z.string().optional(),
|
|
11
11
|
appCategories: z.string().optional(),
|
|
12
12
|
id: z.string(),
|
|
13
|
-
workspaceId: z.string(),
|
|
13
|
+
workspaceId: z.string().optional(),
|
|
14
14
|
}).transform((v) => {
|
|
15
15
|
return remap$(v, {
|
|
16
16
|
httpReferer: "HTTP-Referer",
|
|
@@ -45,9 +45,9 @@ export type GetModerationPolicyRequest = {
|
|
|
45
45
|
*/
|
|
46
46
|
id: string;
|
|
47
47
|
/**
|
|
48
|
-
* Workspace the policy belongs to
|
|
48
|
+
* Workspace the policy belongs to. Required for an organization management key; a workspace-scoped key defaults to its own workspace and gets 403 for any other.
|
|
49
49
|
*/
|
|
50
|
-
workspaceId
|
|
50
|
+
workspaceId?: string | undefined;
|
|
51
51
|
};
|
|
52
52
|
/** @internal */
|
|
53
53
|
export type GetModerationPolicyRequest$Outbound = {
|
|
@@ -55,7 +55,7 @@ export type GetModerationPolicyRequest$Outbound = {
|
|
|
55
55
|
appTitle?: string | undefined;
|
|
56
56
|
appCategories?: string | undefined;
|
|
57
57
|
id: string;
|
|
58
|
-
workspace_id
|
|
58
|
+
workspace_id?: string | undefined;
|
|
59
59
|
};
|
|
60
60
|
/** @internal */
|
|
61
61
|
export declare const GetModerationPolicyRequest$outboundSchema: z.ZodType<GetModerationPolicyRequest$Outbound, GetModerationPolicyRequest>;
|
|
@@ -10,7 +10,7 @@ export const GetModerationPolicyRequest$outboundSchema = z.object({
|
|
|
10
10
|
appTitle: z.string().optional(),
|
|
11
11
|
appCategories: z.string().optional(),
|
|
12
12
|
id: z.string(),
|
|
13
|
-
workspaceId: z.string(),
|
|
13
|
+
workspaceId: z.string().optional(),
|
|
14
14
|
}).transform((v) => {
|
|
15
15
|
return remap$(v, {
|
|
16
16
|
httpReferer: "HTTP-Referer",
|
|
@@ -52,9 +52,9 @@ export type ListBudgetPoliciesRequest = {
|
|
|
52
52
|
*/
|
|
53
53
|
limit?: number | undefined;
|
|
54
54
|
/**
|
|
55
|
-
* Workspace the policy belongs to
|
|
55
|
+
* Workspace the policy belongs to. Required for an organization management key; a workspace-scoped key defaults to its own workspace and gets 403 for any other.
|
|
56
56
|
*/
|
|
57
|
-
workspaceId
|
|
57
|
+
workspaceId?: string | undefined;
|
|
58
58
|
};
|
|
59
59
|
export type ListBudgetPoliciesResponse = {
|
|
60
60
|
result: models.ListBudgetGuardrailPoliciesResponse;
|
|
@@ -66,7 +66,7 @@ export type ListBudgetPoliciesRequest$Outbound = {
|
|
|
66
66
|
appCategories?: string | undefined;
|
|
67
67
|
offset?: number | undefined;
|
|
68
68
|
limit?: number | undefined;
|
|
69
|
-
workspace_id
|
|
69
|
+
workspace_id?: string | undefined;
|
|
70
70
|
};
|
|
71
71
|
/** @internal */
|
|
72
72
|
export declare const ListBudgetPoliciesRequest$outboundSchema: z.ZodType<ListBudgetPoliciesRequest$Outbound, ListBudgetPoliciesRequest>;
|
|
@@ -13,7 +13,7 @@ export const ListBudgetPoliciesRequest$outboundSchema = z.object({
|
|
|
13
13
|
appCategories: z.string().optional(),
|
|
14
14
|
offset: z.int().optional(),
|
|
15
15
|
limit: z.int().optional(),
|
|
16
|
-
workspaceId: z.string(),
|
|
16
|
+
workspaceId: z.string().optional(),
|
|
17
17
|
}).transform((v) => {
|
|
18
18
|
return remap$(v, {
|
|
19
19
|
httpReferer: "HTTP-Referer",
|
|
@@ -134,6 +134,7 @@ export declare const Provider: {
|
|
|
134
134
|
readonly Seed: "seed";
|
|
135
135
|
readonly Siliconflow: "siliconflow";
|
|
136
136
|
readonly Sourceful: "sourceful";
|
|
137
|
+
readonly Speechify: "speechify";
|
|
137
138
|
readonly Stepfun: "stepfun";
|
|
138
139
|
readonly Streamlake: "streamlake";
|
|
139
140
|
readonly Switchpoint: "switchpoint";
|
|
@@ -51,6 +51,10 @@ export type ListKeyAssignmentsRequest = {
|
|
|
51
51
|
* Maximum number of records to return (max 100)
|
|
52
52
|
*/
|
|
53
53
|
limit?: number | undefined;
|
|
54
|
+
/**
|
|
55
|
+
* Only list assignments of guardrails in this workspace. When omitted, an organization management key lists every workspace and a workspace-scoped key lists its own workspace. A workspace-scoped key gets 403 for any other workspace.
|
|
56
|
+
*/
|
|
57
|
+
workspaceId?: string | undefined;
|
|
54
58
|
};
|
|
55
59
|
export type ListKeyAssignmentsResponse = {
|
|
56
60
|
result: models.ListKeyAssignmentsResponse;
|
|
@@ -62,6 +66,7 @@ export type ListKeyAssignmentsRequest$Outbound = {
|
|
|
62
66
|
appCategories?: string | undefined;
|
|
63
67
|
offset: number | null;
|
|
64
68
|
limit: number;
|
|
69
|
+
workspace_id?: string | undefined;
|
|
65
70
|
};
|
|
66
71
|
/** @internal */
|
|
67
72
|
export declare const ListKeyAssignmentsRequest$outboundSchema: z.ZodType<ListKeyAssignmentsRequest$Outbound, ListKeyAssignmentsRequest>;
|
|
@@ -13,9 +13,11 @@ export const ListKeyAssignmentsRequest$outboundSchema = z.object({
|
|
|
13
13
|
appCategories: z.string().optional(),
|
|
14
14
|
offset: z.nullable(z.int().default(0)),
|
|
15
15
|
limit: z.int().default(50),
|
|
16
|
+
workspaceId: z.string().optional(),
|
|
16
17
|
}).transform((v) => {
|
|
17
18
|
return remap$(v, {
|
|
18
19
|
httpReferer: "HTTP-Referer",
|
|
20
|
+
workspaceId: "workspace_id",
|
|
19
21
|
});
|
|
20
22
|
});
|
|
21
23
|
export function listKeyAssignmentsRequestToJSON(listKeyAssignmentsRequest) {
|
|
@@ -51,6 +51,10 @@ export type ListMemberAssignmentsRequest = {
|
|
|
51
51
|
* Maximum number of records to return (max 100)
|
|
52
52
|
*/
|
|
53
53
|
limit?: number | undefined;
|
|
54
|
+
/**
|
|
55
|
+
* Only list assignments of guardrails in this workspace. When omitted, an organization management key lists every workspace and a workspace-scoped key lists its own workspace. A workspace-scoped key gets 403 for any other workspace.
|
|
56
|
+
*/
|
|
57
|
+
workspaceId?: string | undefined;
|
|
54
58
|
};
|
|
55
59
|
export type ListMemberAssignmentsResponse = {
|
|
56
60
|
result: models.ListMemberAssignmentsResponse;
|
|
@@ -62,6 +66,7 @@ export type ListMemberAssignmentsRequest$Outbound = {
|
|
|
62
66
|
appCategories?: string | undefined;
|
|
63
67
|
offset: number | null;
|
|
64
68
|
limit: number;
|
|
69
|
+
workspace_id?: string | undefined;
|
|
65
70
|
};
|
|
66
71
|
/** @internal */
|
|
67
72
|
export declare const ListMemberAssignmentsRequest$outboundSchema: z.ZodType<ListMemberAssignmentsRequest$Outbound, ListMemberAssignmentsRequest>;
|
|
@@ -13,9 +13,11 @@ export const ListMemberAssignmentsRequest$outboundSchema = z.object({
|
|
|
13
13
|
appCategories: z.string().optional(),
|
|
14
14
|
offset: z.nullable(z.int().default(0)),
|
|
15
15
|
limit: z.int().default(50),
|
|
16
|
+
workspaceId: z.string().optional(),
|
|
16
17
|
}).transform((v) => {
|
|
17
18
|
return remap$(v, {
|
|
18
19
|
httpReferer: "HTTP-Referer",
|
|
20
|
+
workspaceId: "workspace_id",
|
|
19
21
|
});
|
|
20
22
|
});
|
|
21
23
|
export function listMemberAssignmentsRequestToJSON(listMemberAssignmentsRequest) {
|
|
@@ -52,9 +52,9 @@ export type ListModelAvailabilityPoliciesRequest = {
|
|
|
52
52
|
*/
|
|
53
53
|
limit?: number | undefined;
|
|
54
54
|
/**
|
|
55
|
-
* Workspace the policy belongs to
|
|
55
|
+
* Workspace the policy belongs to. Required for an organization management key; a workspace-scoped key defaults to its own workspace and gets 403 for any other.
|
|
56
56
|
*/
|
|
57
|
-
workspaceId
|
|
57
|
+
workspaceId?: string | undefined;
|
|
58
58
|
};
|
|
59
59
|
export type ListModelAvailabilityPoliciesResponse = {
|
|
60
60
|
result: models.ListModelAvailabilityGuardrailPoliciesResponse;
|
|
@@ -66,7 +66,7 @@ export type ListModelAvailabilityPoliciesRequest$Outbound = {
|
|
|
66
66
|
appCategories?: string | undefined;
|
|
67
67
|
offset?: number | undefined;
|
|
68
68
|
limit?: number | undefined;
|
|
69
|
-
workspace_id
|
|
69
|
+
workspace_id?: string | undefined;
|
|
70
70
|
};
|
|
71
71
|
/** @internal */
|
|
72
72
|
export declare const ListModelAvailabilityPoliciesRequest$outboundSchema: z.ZodType<ListModelAvailabilityPoliciesRequest$Outbound, ListModelAvailabilityPoliciesRequest>;
|
|
@@ -13,7 +13,7 @@ export const ListModelAvailabilityPoliciesRequest$outboundSchema = z.object({
|
|
|
13
13
|
appCategories: z.string().optional(),
|
|
14
14
|
offset: z.int().optional(),
|
|
15
15
|
limit: z.int().optional(),
|
|
16
|
-
workspaceId: z.string(),
|
|
16
|
+
workspaceId: z.string().optional(),
|
|
17
17
|
}).transform((v) => {
|
|
18
18
|
return remap$(v, {
|
|
19
19
|
httpReferer: "HTTP-Referer",
|
|
@@ -52,9 +52,9 @@ export type ListModerationPoliciesRequest = {
|
|
|
52
52
|
*/
|
|
53
53
|
limit?: number | undefined;
|
|
54
54
|
/**
|
|
55
|
-
* Workspace the policy belongs to
|
|
55
|
+
* Workspace the policy belongs to. Required for an organization management key; a workspace-scoped key defaults to its own workspace and gets 403 for any other.
|
|
56
56
|
*/
|
|
57
|
-
workspaceId
|
|
57
|
+
workspaceId?: string | undefined;
|
|
58
58
|
};
|
|
59
59
|
export type ListModerationPoliciesResponse = {
|
|
60
60
|
result: models.ListModerationGuardrailPoliciesResponse;
|
|
@@ -66,7 +66,7 @@ export type ListModerationPoliciesRequest$Outbound = {
|
|
|
66
66
|
appCategories?: string | undefined;
|
|
67
67
|
offset?: number | undefined;
|
|
68
68
|
limit?: number | undefined;
|
|
69
|
-
workspace_id
|
|
69
|
+
workspace_id?: string | undefined;
|
|
70
70
|
};
|
|
71
71
|
/** @internal */
|
|
72
72
|
export declare const ListModerationPoliciesRequest$outboundSchema: z.ZodType<ListModerationPoliciesRequest$Outbound, ListModerationPoliciesRequest>;
|
|
@@ -13,7 +13,7 @@ export const ListModerationPoliciesRequest$outboundSchema = z.object({
|
|
|
13
13
|
appCategories: z.string().optional(),
|
|
14
14
|
offset: z.int().optional(),
|
|
15
15
|
limit: z.int().optional(),
|
|
16
|
-
workspaceId: z.string(),
|
|
16
|
+
workspaceId: z.string().optional(),
|
|
17
17
|
}).transform((v) => {
|
|
18
18
|
return remap$(v, {
|
|
19
19
|
httpReferer: "HTTP-Referer",
|
|
@@ -57,7 +57,7 @@ export type UpdateKeysRequestBody = {
|
|
|
57
57
|
*/
|
|
58
58
|
name?: string | undefined;
|
|
59
59
|
/**
|
|
60
|
-
* Move the API key to this workspace. The key keeps its value; guardrail selections move with it, while other workspace-scoped settings (presets, BYOK keys, broadcast destinations, routing rules) do not. Sending the key's current workspace is a no-op.
|
|
60
|
+
* Move the API key to this workspace. The key keeps its value; guardrail selections move with it, except direct guardrail assignments owned by the key's current workspace, which are removed along with the selections derived from them, while other workspace-scoped settings (presets, BYOK keys, broadcast destinations, routing rules) do not. Sending the key's current workspace is a no-op.
|
|
61
61
|
*/
|
|
62
62
|
workspaceId?: string | undefined;
|
|
63
63
|
};
|
|
@@ -104,6 +104,7 @@ export declare const ProviderName: {
|
|
|
104
104
|
readonly Seed: "Seed";
|
|
105
105
|
readonly SiliconFlow: "SiliconFlow";
|
|
106
106
|
readonly Sourceful: "Sourceful";
|
|
107
|
+
readonly Speechify: "Speechify";
|
|
107
108
|
readonly StepFun: "StepFun";
|
|
108
109
|
readonly Stealth: "Stealth";
|
|
109
110
|
readonly StreamLake: "StreamLake";
|
|
@@ -402,6 +402,9 @@ export type ProviderOptions = {
|
|
|
402
402
|
sourceful?: {
|
|
403
403
|
[k: string]: any;
|
|
404
404
|
} | undefined;
|
|
405
|
+
speechify?: {
|
|
406
|
+
[k: string]: any;
|
|
407
|
+
} | undefined;
|
|
405
408
|
stealth?: {
|
|
406
409
|
[k: string]: any;
|
|
407
410
|
} | undefined;
|
|
@@ -870,6 +873,9 @@ export type ProviderOptions$Outbound = {
|
|
|
870
873
|
sourceful?: {
|
|
871
874
|
[k: string]: any;
|
|
872
875
|
} | undefined;
|
|
876
|
+
speechify?: {
|
|
877
|
+
[k: string]: any;
|
|
878
|
+
} | undefined;
|
|
873
879
|
stealth?: {
|
|
874
880
|
[k: string]: any;
|
|
875
881
|
} | undefined;
|
|
@@ -139,6 +139,7 @@ export const ProviderOptions$outboundSchema = z.object({
|
|
|
139
139
|
sfCompute: z.record(z.string(), z.any()).optional(),
|
|
140
140
|
siliconflow: z.record(z.string(), z.any()).optional(),
|
|
141
141
|
sourceful: z.record(z.string(), z.any()).optional(),
|
|
142
|
+
speechify: z.record(z.string(), z.any()).optional(),
|
|
142
143
|
stealth: z.record(z.string(), z.any()).optional(),
|
|
143
144
|
stepfun: z.record(z.string(), z.any()).optional(),
|
|
144
145
|
streamlake: z.record(z.string(), z.any()).optional(),
|
|
@@ -137,6 +137,7 @@ export declare const ProviderResponseProviderName: {
|
|
|
137
137
|
readonly Seed: "Seed";
|
|
138
138
|
readonly SiliconFlow: "SiliconFlow";
|
|
139
139
|
readonly Sourceful: "Sourceful";
|
|
140
|
+
readonly Speechify: "Speechify";
|
|
140
141
|
readonly StepFun: "StepFun";
|
|
141
142
|
readonly Stealth: "Stealth";
|
|
142
143
|
readonly StreamLake: "StreamLake";
|
|
@@ -27,9 +27,9 @@ export type UpdateBudgetGuardrailPolicyRequest = {
|
|
|
27
27
|
*/
|
|
28
28
|
optedOutMemberIds?: Array<string> | undefined;
|
|
29
29
|
/**
|
|
30
|
-
* Workspace the policy belongs to
|
|
30
|
+
* Workspace the policy belongs to. Required for an organization management key; a workspace-scoped key defaults to its own workspace and gets 403 for any other.
|
|
31
31
|
*/
|
|
32
|
-
workspaceId
|
|
32
|
+
workspaceId?: string | undefined;
|
|
33
33
|
};
|
|
34
34
|
/** @internal */
|
|
35
35
|
export type UpdateBudgetGuardrailPolicyRequest$Outbound = {
|
|
@@ -40,7 +40,7 @@ export type UpdateBudgetGuardrailPolicyRequest$Outbound = {
|
|
|
40
40
|
name: string;
|
|
41
41
|
opted_out_api_key_hashes?: Array<string> | undefined;
|
|
42
42
|
opted_out_member_ids?: Array<string> | undefined;
|
|
43
|
-
workspace_id
|
|
43
|
+
workspace_id?: string | undefined;
|
|
44
44
|
};
|
|
45
45
|
/** @internal */
|
|
46
46
|
export declare const UpdateBudgetGuardrailPolicyRequest$outboundSchema: z.ZodType<UpdateBudgetGuardrailPolicyRequest$Outbound, UpdateBudgetGuardrailPolicyRequest>;
|
|
@@ -14,7 +14,7 @@ export const UpdateBudgetGuardrailPolicyRequest$outboundSchema = z.object({
|
|
|
14
14
|
name: z.string(),
|
|
15
15
|
optedOutApiKeyHashes: z.array(z.string()).optional(),
|
|
16
16
|
optedOutMemberIds: z.array(z.string()).optional(),
|
|
17
|
-
workspaceId: z.string(),
|
|
17
|
+
workspaceId: z.string().optional(),
|
|
18
18
|
}).transform((v) => {
|
|
19
19
|
return remap$(v, {
|
|
20
20
|
apiKeyHashes: "api_key_hashes",
|
|
@@ -27,9 +27,9 @@ export type UpdateModelAvailabilityGuardrailPolicyRequest = {
|
|
|
27
27
|
*/
|
|
28
28
|
optedOutMemberIds?: Array<string> | undefined;
|
|
29
29
|
/**
|
|
30
|
-
* Workspace the policy belongs to
|
|
30
|
+
* Workspace the policy belongs to. Required for an organization management key; a workspace-scoped key defaults to its own workspace and gets 403 for any other.
|
|
31
31
|
*/
|
|
32
|
-
workspaceId
|
|
32
|
+
workspaceId?: string | undefined;
|
|
33
33
|
};
|
|
34
34
|
/** @internal */
|
|
35
35
|
export type UpdateModelAvailabilityGuardrailPolicyRequest$Outbound = {
|
|
@@ -40,7 +40,7 @@ export type UpdateModelAvailabilityGuardrailPolicyRequest$Outbound = {
|
|
|
40
40
|
name: string;
|
|
41
41
|
opted_out_api_key_hashes?: Array<string> | undefined;
|
|
42
42
|
opted_out_member_ids?: Array<string> | undefined;
|
|
43
|
-
workspace_id
|
|
43
|
+
workspace_id?: string | undefined;
|
|
44
44
|
};
|
|
45
45
|
/** @internal */
|
|
46
46
|
export declare const UpdateModelAvailabilityGuardrailPolicyRequest$outboundSchema: z.ZodType<UpdateModelAvailabilityGuardrailPolicyRequest$Outbound, UpdateModelAvailabilityGuardrailPolicyRequest>;
|
|
@@ -14,7 +14,7 @@ export const UpdateModelAvailabilityGuardrailPolicyRequest$outboundSchema = z.ob
|
|
|
14
14
|
name: z.string(),
|
|
15
15
|
optedOutApiKeyHashes: z.array(z.string()).optional(),
|
|
16
16
|
optedOutMemberIds: z.array(z.string()).optional(),
|
|
17
|
-
workspaceId: z.string(),
|
|
17
|
+
workspaceId: z.string().optional(),
|
|
18
18
|
}).transform((v) => {
|
|
19
19
|
return remap$(v, {
|
|
20
20
|
apiKeyHashes: "api_key_hashes",
|
|
@@ -27,9 +27,9 @@ export type UpdateModerationGuardrailPolicyRequest = {
|
|
|
27
27
|
*/
|
|
28
28
|
optedOutMemberIds?: Array<string> | undefined;
|
|
29
29
|
/**
|
|
30
|
-
* Workspace the policy belongs to
|
|
30
|
+
* Workspace the policy belongs to. Required for an organization management key; a workspace-scoped key defaults to its own workspace and gets 403 for any other.
|
|
31
31
|
*/
|
|
32
|
-
workspaceId
|
|
32
|
+
workspaceId?: string | undefined;
|
|
33
33
|
};
|
|
34
34
|
/** @internal */
|
|
35
35
|
export type UpdateModerationGuardrailPolicyRequest$Outbound = {
|
|
@@ -40,7 +40,7 @@ export type UpdateModerationGuardrailPolicyRequest$Outbound = {
|
|
|
40
40
|
name: string;
|
|
41
41
|
opted_out_api_key_hashes?: Array<string> | undefined;
|
|
42
42
|
opted_out_member_ids?: Array<string> | undefined;
|
|
43
|
-
workspace_id
|
|
43
|
+
workspace_id?: string | undefined;
|
|
44
44
|
};
|
|
45
45
|
/** @internal */
|
|
46
46
|
export declare const UpdateModerationGuardrailPolicyRequest$outboundSchema: z.ZodType<UpdateModerationGuardrailPolicyRequest$Outbound, UpdateModerationGuardrailPolicyRequest>;
|
|
@@ -14,7 +14,7 @@ export const UpdateModerationGuardrailPolicyRequest$outboundSchema = z.object({
|
|
|
14
14
|
name: z.string(),
|
|
15
15
|
optedOutApiKeyHashes: z.array(z.string()).optional(),
|
|
16
16
|
optedOutMemberIds: z.array(z.string()).optional(),
|
|
17
|
-
workspaceId: z.string(),
|
|
17
|
+
workspaceId: z.string().optional(),
|
|
18
18
|
}).transform((v) => {
|
|
19
19
|
return remap$(v, {
|
|
20
20
|
apiKeyHashes: "api_key_hashes",
|
|
@@ -427,6 +427,9 @@ export type VideoGenerationRequestOptions = {
|
|
|
427
427
|
sourceful?: {
|
|
428
428
|
[k: string]: any;
|
|
429
429
|
} | undefined;
|
|
430
|
+
speechify?: {
|
|
431
|
+
[k: string]: any;
|
|
432
|
+
} | undefined;
|
|
430
433
|
stealth?: {
|
|
431
434
|
[k: string]: any;
|
|
432
435
|
} | undefined;
|
|
@@ -1014,6 +1017,9 @@ export type VideoGenerationRequestOptions$Outbound = {
|
|
|
1014
1017
|
sourceful?: {
|
|
1015
1018
|
[k: string]: any;
|
|
1016
1019
|
} | undefined;
|
|
1020
|
+
speechify?: {
|
|
1021
|
+
[k: string]: any;
|
|
1022
|
+
} | undefined;
|
|
1017
1023
|
stealth?: {
|
|
1018
1024
|
[k: string]: any;
|
|
1019
1025
|
} | undefined;
|
|
@@ -183,6 +183,7 @@ export const VideoGenerationRequestOptions$outboundSchema = z.object({
|
|
|
183
183
|
sfCompute: z.record(z.string(), z.any()).optional(),
|
|
184
184
|
siliconflow: z.record(z.string(), z.any()).optional(),
|
|
185
185
|
sourceful: z.record(z.string(), z.any()).optional(),
|
|
186
|
+
speechify: z.record(z.string(), z.any()).optional(),
|
|
186
187
|
stealth: z.record(z.string(), z.any()).optional(),
|
|
187
188
|
stepfun: z.record(z.string(), z.any()).optional(),
|
|
188
189
|
streamlake: z.record(z.string(), z.any()).optional(),
|
|
@@ -67,7 +67,7 @@ export declare class GuardrailPolicies extends ClientSDK {
|
|
|
67
67
|
* @remarks
|
|
68
68
|
* List the budget policies in a workspace. [Management key](/docs/guides/overview/auth/management-api-keys) required.
|
|
69
69
|
*/
|
|
70
|
-
listBudgetPolicies(request
|
|
70
|
+
listBudgetPolicies(request?: operations.ListBudgetPoliciesRequest | undefined, options?: RequestOptions): Promise<PageIterator<operations.ListBudgetPoliciesResponse, {
|
|
71
71
|
offset: number;
|
|
72
72
|
}>>;
|
|
73
73
|
/**
|
|
@@ -104,7 +104,7 @@ export declare class GuardrailPolicies extends ClientSDK {
|
|
|
104
104
|
* @remarks
|
|
105
105
|
* List the model availability policies in a workspace. [Management key](/docs/guides/overview/auth/management-api-keys) required.
|
|
106
106
|
*/
|
|
107
|
-
listModelAvailabilityPolicies(request
|
|
107
|
+
listModelAvailabilityPolicies(request?: operations.ListModelAvailabilityPoliciesRequest | undefined, options?: RequestOptions): Promise<PageIterator<operations.ListModelAvailabilityPoliciesResponse, {
|
|
108
108
|
offset: number;
|
|
109
109
|
}>>;
|
|
110
110
|
/**
|
|
@@ -141,7 +141,7 @@ export declare class GuardrailPolicies extends ClientSDK {
|
|
|
141
141
|
* @remarks
|
|
142
142
|
* List the moderation policies in a workspace. [Management key](/docs/guides/overview/auth/management-api-keys) required.
|
|
143
143
|
*/
|
|
144
|
-
listModerationPolicies(request
|
|
144
|
+
listModerationPolicies(request?: operations.ListModerationPoliciesRequest | undefined, options?: RequestOptions): Promise<PageIterator<operations.ListModerationPoliciesResponse, {
|
|
145
145
|
offset: number;
|
|
146
146
|
}>>;
|
|
147
147
|
/**
|
package/jsr.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openrouter/sdk",
|
|
3
|
-
"version": "1.5.
|
|
3
|
+
"version": "1.5.86",
|
|
4
4
|
"author": "OpenRouter",
|
|
5
5
|
"description": "The OpenRouter TypeScript SDK is a type-safe toolkit for building AI applications with access to 400+ language models through a unified API.",
|
|
6
6
|
"keywords": [
|
|
@@ -73,15 +73,15 @@
|
|
|
73
73
|
"lint": "eslint --cache --max-warnings=0 src",
|
|
74
74
|
"build": "tsc && node scripts/unbarrel-imports.js",
|
|
75
75
|
"prepublishOnly": "npm run build",
|
|
76
|
-
"test": "vitest --run --project unit",
|
|
77
|
-
"test:e2e": "vitest --run --project e2e",
|
|
78
|
-
"test:transit": "exit 0",
|
|
79
76
|
"typecheck": "tsc --noEmit",
|
|
77
|
+
"postinstall": "node scripts/check-types.js || true",
|
|
78
|
+
"test:transit": "exit 0",
|
|
80
79
|
"typecheck:transit": "exit 0",
|
|
81
|
-
"prepare": "npm run build",
|
|
82
|
-
"test:watch": "vitest --watch --project unit",
|
|
83
80
|
"compile": "tsc && node scripts/unbarrel-imports.js",
|
|
84
|
-
"
|
|
81
|
+
"prepare": "npm run build",
|
|
82
|
+
"test": "vitest --run --project unit",
|
|
83
|
+
"test:e2e": "vitest --run --project e2e",
|
|
84
|
+
"test:watch": "vitest --watch --project unit"
|
|
85
85
|
},
|
|
86
86
|
"peerDependencies": {
|
|
87
87
|
|