@openrouter/sdk 1.5.59 → 1.5.60
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/guardrailPoliciesChangeApiKeyPolicyAssignment.d.ts +19 -0
- package/esm/funcs/guardrailPoliciesChangeApiKeyPolicyAssignment.js +104 -0
- package/esm/funcs/guardrailPoliciesChangeMemberPolicyAssignment.d.ts +19 -0
- package/esm/funcs/guardrailPoliciesChangeMemberPolicyAssignment.js +104 -0
- package/esm/funcs/guardrailPoliciesCreateAccountPolicy.d.ts +19 -0
- package/esm/funcs/guardrailPoliciesCreateAccountPolicy.js +100 -0
- package/esm/funcs/guardrailPoliciesCreateBudgetPolicy.d.ts +19 -0
- package/esm/funcs/guardrailPoliciesCreateBudgetPolicy.js +100 -0
- package/esm/funcs/guardrailPoliciesCreateModelAvailabilityPolicy.d.ts +19 -0
- package/esm/funcs/guardrailPoliciesCreateModelAvailabilityPolicy.js +98 -0
- package/esm/funcs/guardrailPoliciesCreateModerationPolicy.d.ts +19 -0
- package/esm/funcs/guardrailPoliciesCreateModerationPolicy.js +98 -0
- package/esm/funcs/guardrailPoliciesDeleteAccountPolicy.d.ts +19 -0
- package/esm/funcs/guardrailPoliciesDeleteAccountPolicy.js +103 -0
- package/esm/funcs/guardrailPoliciesDeleteBudgetPolicy.d.ts +19 -0
- package/esm/funcs/guardrailPoliciesDeleteBudgetPolicy.js +107 -0
- package/esm/funcs/guardrailPoliciesDeleteModelAvailabilityPolicy.d.ts +19 -0
- package/esm/funcs/guardrailPoliciesDeleteModelAvailabilityPolicy.js +107 -0
- package/esm/funcs/guardrailPoliciesDeleteModerationPolicy.d.ts +19 -0
- package/esm/funcs/guardrailPoliciesDeleteModerationPolicy.js +107 -0
- package/esm/funcs/guardrailPoliciesGetApiKeyPolicyAssignment.d.ts +19 -0
- package/esm/funcs/guardrailPoliciesGetApiKeyPolicyAssignment.js +108 -0
- package/esm/funcs/guardrailPoliciesGetBudgetPolicy.d.ts +19 -0
- package/esm/funcs/guardrailPoliciesGetBudgetPolicy.js +107 -0
- package/esm/funcs/guardrailPoliciesGetMemberPolicyAssignment.d.ts +19 -0
- package/esm/funcs/guardrailPoliciesGetMemberPolicyAssignment.js +108 -0
- package/esm/funcs/guardrailPoliciesGetModelAvailabilityPolicy.d.ts +19 -0
- package/esm/funcs/guardrailPoliciesGetModelAvailabilityPolicy.js +107 -0
- package/esm/funcs/guardrailPoliciesGetModerationPolicy.d.ts +19 -0
- package/esm/funcs/guardrailPoliciesGetModerationPolicy.js +107 -0
- package/esm/funcs/guardrailPoliciesListAccountPolicies.d.ts +21 -0
- package/esm/funcs/guardrailPoliciesListAccountPolicies.js +133 -0
- package/esm/funcs/guardrailPoliciesListBudgetPolicies.d.ts +21 -0
- package/esm/funcs/guardrailPoliciesListBudgetPolicies.js +134 -0
- package/esm/funcs/guardrailPoliciesListModelAvailabilityPolicies.d.ts +21 -0
- package/esm/funcs/guardrailPoliciesListModelAvailabilityPolicies.js +132 -0
- package/esm/funcs/guardrailPoliciesListModerationPolicies.d.ts +21 -0
- package/esm/funcs/guardrailPoliciesListModerationPolicies.js +134 -0
- package/esm/funcs/guardrailPoliciesUpdateAccountPolicy.d.ts +19 -0
- package/esm/funcs/guardrailPoliciesUpdateAccountPolicy.js +106 -0
- package/esm/funcs/guardrailPoliciesUpdateBudgetPolicy.d.ts +19 -0
- package/esm/funcs/guardrailPoliciesUpdateBudgetPolicy.js +106 -0
- package/esm/funcs/guardrailPoliciesUpdateModelAvailabilityPolicy.d.ts +19 -0
- package/esm/funcs/guardrailPoliciesUpdateModelAvailabilityPolicy.js +104 -0
- package/esm/funcs/guardrailPoliciesUpdateModerationPolicy.d.ts +19 -0
- package/esm/funcs/guardrailPoliciesUpdateModerationPolicy.js +104 -0
- package/esm/lib/config.d.ts +2 -2
- package/esm/lib/config.js +2 -2
- package/esm/models/accountguardrailpolicy.d.ts +12 -0
- package/esm/models/accountguardrailpolicy.js +19 -0
- package/esm/models/accountguardrailpolicyrequest.d.ts +11 -0
- package/esm/models/accountguardrailpolicyrequest.js +18 -0
- package/esm/models/accountguardrailpolicyresponse.d.ts +11 -0
- package/esm/models/accountguardrailpolicyresponse.js +15 -0
- package/esm/models/armorautomode.d.ts +17 -0
- package/esm/models/armorautomode.js +51 -2
- package/esm/models/armorcontext.d.ts +5 -0
- package/esm/models/armorcontext.js +14 -1
- package/esm/models/armorenvironmententry.d.ts +5 -0
- package/esm/models/armorenvironmententry.js +9 -0
- package/esm/models/armorplugin.d.ts +4 -4
- package/esm/models/armorplugin.js +3 -4
- package/esm/models/armorrule.d.ts +5 -0
- package/esm/models/armorrule.js +11 -0
- package/esm/models/budgetaccountguardrailpolicy.d.ts +34 -0
- package/esm/models/budgetaccountguardrailpolicy.js +39 -0
- package/esm/models/budgetaccountguardrailpolicyrequest.d.ts +68 -0
- package/esm/models/budgetaccountguardrailpolicyrequest.js +46 -0
- package/esm/models/budgetguardrailpolicy.d.ts +27 -0
- package/esm/models/budgetguardrailpolicy.js +28 -0
- package/esm/models/budgetguardrailpolicydetail.d.ts +74 -0
- package/esm/models/budgetguardrailpolicydetail.js +58 -0
- package/esm/models/budgetguardrailpolicydetailresponse.d.ts +11 -0
- package/esm/models/budgetguardrailpolicydetailresponse.js +15 -0
- package/esm/models/budgetguardrailpolicyresponse.d.ts +11 -0
- package/esm/models/budgetguardrailpolicyresponse.js +15 -0
- package/esm/models/budgetguardrailpolicysummary.d.ts +43 -0
- package/esm/models/budgetguardrailpolicysummary.js +42 -0
- package/esm/models/changeguardrailpolicyassignmentrequest.d.ts +49 -0
- package/esm/models/changeguardrailpolicyassignmentrequest.js +38 -0
- package/esm/models/changeguardrailpolicyassignmentresponse.d.ts +13 -0
- package/esm/models/changeguardrailpolicyassignmentresponse.js +14 -0
- package/esm/models/createbudgetguardrailpolicyrequest.d.ts +57 -0
- package/esm/models/createbudgetguardrailpolicyrequest.js +38 -0
- package/esm/models/createmodelavailabilityguardrailpolicyrequest.d.ts +57 -0
- package/esm/models/createmodelavailabilityguardrailpolicyrequest.js +39 -0
- package/esm/models/createmoderationguardrailpolicyrequest.d.ts +57 -0
- package/esm/models/createmoderationguardrailpolicyrequest.js +38 -0
- package/esm/models/deleteguardrailpolicyresponse.d.ts +13 -0
- package/esm/models/deleteguardrailpolicyresponse.js +14 -0
- package/esm/models/guardrailbudgetpolicyauthoringconfig.d.ts +25 -0
- package/esm/models/guardrailbudgetpolicyauthoringconfig.js +30 -0
- package/esm/models/guardrailbudgetpolicyconfig.d.ts +22 -0
- package/esm/models/guardrailbudgetpolicyconfig.js +24 -0
- package/esm/models/guardrailmodelavailabilitypolicyauthoringconfig.d.ts +52 -0
- package/esm/models/guardrailmodelavailabilitypolicyauthoringconfig.js +58 -0
- package/esm/models/guardrailmodelavailabilitypolicyconfig.d.ts +30 -0
- package/esm/models/guardrailmodelavailabilitypolicyconfig.js +59 -0
- package/esm/models/guardrailmoderationpolicyconfig.d.ts +240 -0
- package/esm/models/guardrailmoderationpolicyconfig.js +289 -0
- package/esm/models/guardrailpolicyassignmentresponse.d.ts +11 -0
- package/esm/models/guardrailpolicyassignmentresponse.js +15 -0
- package/esm/models/guardrailpolicyassignmentstate.d.ts +30 -0
- package/esm/models/guardrailpolicyassignmentstate.js +38 -0
- package/esm/models/index.d.ts +44 -0
- package/esm/models/index.js +44 -0
- package/esm/models/listaccountguardrailpoliciesresponse.d.ts +15 -0
- package/esm/models/listaccountguardrailpoliciesresponse.js +21 -0
- package/esm/models/listbudgetguardrailpoliciesresponse.d.ts +15 -0
- package/esm/models/listbudgetguardrailpoliciesresponse.js +21 -0
- package/esm/models/listmodelavailabilityguardrailpoliciesresponse.d.ts +15 -0
- package/esm/models/listmodelavailabilityguardrailpoliciesresponse.js +21 -0
- package/esm/models/listmoderationguardrailpoliciesresponse.d.ts +15 -0
- package/esm/models/listmoderationguardrailpoliciesresponse.js +21 -0
- package/esm/models/modelavailabilityaccountguardrailpolicy.d.ts +34 -0
- package/esm/models/modelavailabilityaccountguardrailpolicy.js +39 -0
- package/esm/models/modelavailabilityaccountguardrailpolicyrequest.d.ts +68 -0
- package/esm/models/modelavailabilityaccountguardrailpolicyrequest.js +47 -0
- package/esm/models/modelavailabilityguardrailpolicy.d.ts +27 -0
- package/esm/models/modelavailabilityguardrailpolicy.js +28 -0
- package/esm/models/modelavailabilityguardrailpolicydetail.d.ts +74 -0
- package/esm/models/modelavailabilityguardrailpolicydetail.js +57 -0
- package/esm/models/modelavailabilityguardrailpolicydetailresponse.d.ts +11 -0
- package/esm/models/modelavailabilityguardrailpolicydetailresponse.js +15 -0
- package/esm/models/modelavailabilityguardrailpolicyresponse.d.ts +11 -0
- package/esm/models/modelavailabilityguardrailpolicyresponse.js +15 -0
- package/esm/models/modelavailabilityguardrailpolicysummary.d.ts +43 -0
- package/esm/models/modelavailabilityguardrailpolicysummary.js +42 -0
- package/esm/models/moderationaccountguardrailpolicy.d.ts +34 -0
- package/esm/models/moderationaccountguardrailpolicy.js +39 -0
- package/esm/models/moderationaccountguardrailpolicyrequest.d.ts +68 -0
- package/esm/models/moderationaccountguardrailpolicyrequest.js +47 -0
- package/esm/models/moderationguardrailpolicy.d.ts +27 -0
- package/esm/models/moderationguardrailpolicy.js +28 -0
- package/esm/models/moderationguardrailpolicydetail.d.ts +78 -0
- package/esm/models/moderationguardrailpolicydetail.js +60 -0
- package/esm/models/moderationguardrailpolicydetailresponse.d.ts +11 -0
- package/esm/models/moderationguardrailpolicydetailresponse.js +15 -0
- package/esm/models/moderationguardrailpolicyresponse.d.ts +11 -0
- package/esm/models/moderationguardrailpolicyresponse.js +15 -0
- package/esm/models/moderationguardrailpolicysummary.d.ts +43 -0
- package/esm/models/moderationguardrailpolicysummary.js +42 -0
- package/esm/models/operations/changeapikeypolicyassignment.d.ts +61 -0
- package/esm/models/operations/changeapikeypolicyassignment.js +24 -0
- package/esm/models/operations/changememberpolicyassignment.d.ts +61 -0
- package/esm/models/operations/changememberpolicyassignment.js +25 -0
- package/esm/models/operations/createaccountpolicy.d.ts +56 -0
- package/esm/models/operations/createaccountpolicy.js +23 -0
- package/esm/models/operations/createbudgetpolicy.d.ts +56 -0
- package/esm/models/operations/createbudgetpolicy.js +23 -0
- package/esm/models/operations/createmodelavailabilitypolicy.d.ts +56 -0
- package/esm/models/operations/createmodelavailabilitypolicy.js +23 -0
- package/esm/models/operations/createmoderationpolicy.d.ts +56 -0
- package/esm/models/operations/createmoderationpolicy.js +23 -0
- package/esm/models/operations/deleteaccountpolicy.d.ts +58 -0
- package/esm/models/operations/deleteaccountpolicy.js +21 -0
- package/esm/models/operations/deletebudgetpolicy.d.ts +63 -0
- package/esm/models/operations/deletebudgetpolicy.js +23 -0
- package/esm/models/operations/deletemodelavailabilitypolicy.d.ts +63 -0
- package/esm/models/operations/deletemodelavailabilitypolicy.js +23 -0
- package/esm/models/operations/deletemoderationpolicy.d.ts +63 -0
- package/esm/models/operations/deletemoderationpolicy.js +23 -0
- package/esm/models/operations/getapikeypolicyassignment.d.ts +84 -0
- package/esm/models/operations/getapikeypolicyassignment.js +37 -0
- package/esm/models/operations/getbudgetpolicy.d.ts +63 -0
- package/esm/models/operations/getbudgetpolicy.js +23 -0
- package/esm/models/operations/getmemberpolicyassignment.d.ts +84 -0
- package/esm/models/operations/getmemberpolicyassignment.js +38 -0
- package/esm/models/operations/getmodelavailabilitypolicy.d.ts +63 -0
- package/esm/models/operations/getmodelavailabilitypolicy.js +23 -0
- package/esm/models/operations/getmoderationpolicy.d.ts +63 -0
- package/esm/models/operations/getmoderationpolicy.js +23 -0
- package/esm/models/operations/index.d.ts +23 -0
- package/esm/models/operations/index.js +23 -0
- package/esm/models/operations/listaccountpolicies.d.ts +72 -0
- package/esm/models/operations/listaccountpolicies.js +35 -0
- package/esm/models/operations/listbudgetpolicies.d.ts +77 -0
- package/esm/models/operations/listbudgetpolicies.js +37 -0
- package/esm/models/operations/listmodelavailabilitypolicies.d.ts +77 -0
- package/esm/models/operations/listmodelavailabilitypolicies.js +37 -0
- package/esm/models/operations/listmoderationpolicies.d.ts +77 -0
- package/esm/models/operations/listmoderationpolicies.js +37 -0
- package/esm/models/operations/updateaccountpolicy.d.ts +61 -0
- package/esm/models/operations/updateaccountpolicy.js +24 -0
- package/esm/models/operations/updatebudgetpolicy.d.ts +61 -0
- package/esm/models/operations/updatebudgetpolicy.js +24 -0
- package/esm/models/operations/updatemodelavailabilitypolicy.d.ts +61 -0
- package/esm/models/operations/updatemodelavailabilitypolicy.js +24 -0
- package/esm/models/operations/updatemoderationpolicy.d.ts +61 -0
- package/esm/models/operations/updatemoderationpolicy.js +24 -0
- package/esm/models/outputmemoryservertoolitem.d.ts +5 -5
- package/esm/models/outputmemoryservertoolitem.js +5 -5
- package/esm/models/updatebudgetguardrailpolicyrequest.d.ts +48 -0
- package/esm/models/updatebudgetguardrailpolicyrequest.js +31 -0
- package/esm/models/updatemodelavailabilityguardrailpolicyrequest.d.ts +48 -0
- package/esm/models/updatemodelavailabilityguardrailpolicyrequest.js +31 -0
- package/esm/models/updatemoderationguardrailpolicyrequest.d.ts +48 -0
- package/esm/models/updatemoderationguardrailpolicyrequest.js +31 -0
- package/esm/sdk/guardrailpolicies.d.ts +176 -0
- package/esm/sdk/guardrailpolicies.js +240 -0
- package/esm/sdk/sdk.d.ts +3 -0
- package/esm/sdk/sdk.js +4 -0
- package/jsr.json +1 -1
- package/package.json +8 -8
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import * as z from "zod/v4";
|
|
2
|
+
import * as models from "../index.js";
|
|
3
|
+
export type UpdateAccountPolicyGlobals = {
|
|
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 UpdateAccountPolicyRequest = {
|
|
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
|
+
* Policy ID
|
|
46
|
+
*/
|
|
47
|
+
id: string;
|
|
48
|
+
accountGuardrailPolicyRequest: models.AccountGuardrailPolicyRequest;
|
|
49
|
+
};
|
|
50
|
+
/** @internal */
|
|
51
|
+
export type UpdateAccountPolicyRequest$Outbound = {
|
|
52
|
+
"HTTP-Referer"?: string | undefined;
|
|
53
|
+
appTitle?: string | undefined;
|
|
54
|
+
appCategories?: string | undefined;
|
|
55
|
+
id: string;
|
|
56
|
+
AccountGuardrailPolicyRequest: models.AccountGuardrailPolicyRequest$Outbound;
|
|
57
|
+
};
|
|
58
|
+
/** @internal */
|
|
59
|
+
export declare const UpdateAccountPolicyRequest$outboundSchema: z.ZodType<UpdateAccountPolicyRequest$Outbound, UpdateAccountPolicyRequest>;
|
|
60
|
+
export declare function updateAccountPolicyRequestToJSON(updateAccountPolicyRequest: UpdateAccountPolicyRequest): string;
|
|
61
|
+
//# sourceMappingURL=updateaccountpolicy.d.ts.map
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
* @generated-id: da2410d14a44
|
|
4
|
+
*/
|
|
5
|
+
import * as z from "zod/v4";
|
|
6
|
+
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
+
import { AccountGuardrailPolicyRequest$outboundSchema as models_AccountGuardrailPolicyRequest$outboundSchema } from "../accountguardrailpolicyrequest.js";
|
|
8
|
+
/** @internal */
|
|
9
|
+
export const UpdateAccountPolicyRequest$outboundSchema = z.object({
|
|
10
|
+
httpReferer: z.string().optional(),
|
|
11
|
+
appTitle: z.string().optional(),
|
|
12
|
+
appCategories: z.string().optional(),
|
|
13
|
+
id: z.string(),
|
|
14
|
+
accountGuardrailPolicyRequest: models_AccountGuardrailPolicyRequest$outboundSchema,
|
|
15
|
+
}).transform((v) => {
|
|
16
|
+
return remap$(v, {
|
|
17
|
+
httpReferer: "HTTP-Referer",
|
|
18
|
+
accountGuardrailPolicyRequest: "AccountGuardrailPolicyRequest",
|
|
19
|
+
});
|
|
20
|
+
});
|
|
21
|
+
export function updateAccountPolicyRequestToJSON(updateAccountPolicyRequest) {
|
|
22
|
+
return JSON.stringify(UpdateAccountPolicyRequest$outboundSchema.parse(updateAccountPolicyRequest));
|
|
23
|
+
}
|
|
24
|
+
//# sourceMappingURL=updateaccountpolicy.js.map
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import * as z from "zod/v4";
|
|
2
|
+
import * as models from "../index.js";
|
|
3
|
+
export type UpdateBudgetPolicyGlobals = {
|
|
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 UpdateBudgetPolicyRequest = {
|
|
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
|
+
* Policy ID
|
|
46
|
+
*/
|
|
47
|
+
id: string;
|
|
48
|
+
updateBudgetGuardrailPolicyRequest: models.UpdateBudgetGuardrailPolicyRequest;
|
|
49
|
+
};
|
|
50
|
+
/** @internal */
|
|
51
|
+
export type UpdateBudgetPolicyRequest$Outbound = {
|
|
52
|
+
"HTTP-Referer"?: string | undefined;
|
|
53
|
+
appTitle?: string | undefined;
|
|
54
|
+
appCategories?: string | undefined;
|
|
55
|
+
id: string;
|
|
56
|
+
UpdateBudgetGuardrailPolicyRequest: models.UpdateBudgetGuardrailPolicyRequest$Outbound;
|
|
57
|
+
};
|
|
58
|
+
/** @internal */
|
|
59
|
+
export declare const UpdateBudgetPolicyRequest$outboundSchema: z.ZodType<UpdateBudgetPolicyRequest$Outbound, UpdateBudgetPolicyRequest>;
|
|
60
|
+
export declare function updateBudgetPolicyRequestToJSON(updateBudgetPolicyRequest: UpdateBudgetPolicyRequest): string;
|
|
61
|
+
//# sourceMappingURL=updatebudgetpolicy.d.ts.map
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
* @generated-id: 1a1357546ca1
|
|
4
|
+
*/
|
|
5
|
+
import * as z from "zod/v4";
|
|
6
|
+
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
+
import { UpdateBudgetGuardrailPolicyRequest$outboundSchema as models_UpdateBudgetGuardrailPolicyRequest$outboundSchema } from "../updatebudgetguardrailpolicyrequest.js";
|
|
8
|
+
/** @internal */
|
|
9
|
+
export const UpdateBudgetPolicyRequest$outboundSchema = z.object({
|
|
10
|
+
httpReferer: z.string().optional(),
|
|
11
|
+
appTitle: z.string().optional(),
|
|
12
|
+
appCategories: z.string().optional(),
|
|
13
|
+
id: z.string(),
|
|
14
|
+
updateBudgetGuardrailPolicyRequest: models_UpdateBudgetGuardrailPolicyRequest$outboundSchema,
|
|
15
|
+
}).transform((v) => {
|
|
16
|
+
return remap$(v, {
|
|
17
|
+
httpReferer: "HTTP-Referer",
|
|
18
|
+
updateBudgetGuardrailPolicyRequest: "UpdateBudgetGuardrailPolicyRequest",
|
|
19
|
+
});
|
|
20
|
+
});
|
|
21
|
+
export function updateBudgetPolicyRequestToJSON(updateBudgetPolicyRequest) {
|
|
22
|
+
return JSON.stringify(UpdateBudgetPolicyRequest$outboundSchema.parse(updateBudgetPolicyRequest));
|
|
23
|
+
}
|
|
24
|
+
//# sourceMappingURL=updatebudgetpolicy.js.map
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import * as z from "zod/v4";
|
|
2
|
+
import * as models from "../index.js";
|
|
3
|
+
export type UpdateModelAvailabilityPolicyGlobals = {
|
|
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 UpdateModelAvailabilityPolicyRequest = {
|
|
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
|
+
* Policy ID
|
|
46
|
+
*/
|
|
47
|
+
id: string;
|
|
48
|
+
updateModelAvailabilityGuardrailPolicyRequest: models.UpdateModelAvailabilityGuardrailPolicyRequest;
|
|
49
|
+
};
|
|
50
|
+
/** @internal */
|
|
51
|
+
export type UpdateModelAvailabilityPolicyRequest$Outbound = {
|
|
52
|
+
"HTTP-Referer"?: string | undefined;
|
|
53
|
+
appTitle?: string | undefined;
|
|
54
|
+
appCategories?: string | undefined;
|
|
55
|
+
id: string;
|
|
56
|
+
UpdateModelAvailabilityGuardrailPolicyRequest: models.UpdateModelAvailabilityGuardrailPolicyRequest$Outbound;
|
|
57
|
+
};
|
|
58
|
+
/** @internal */
|
|
59
|
+
export declare const UpdateModelAvailabilityPolicyRequest$outboundSchema: z.ZodType<UpdateModelAvailabilityPolicyRequest$Outbound, UpdateModelAvailabilityPolicyRequest>;
|
|
60
|
+
export declare function updateModelAvailabilityPolicyRequestToJSON(updateModelAvailabilityPolicyRequest: UpdateModelAvailabilityPolicyRequest): string;
|
|
61
|
+
//# sourceMappingURL=updatemodelavailabilitypolicy.d.ts.map
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
* @generated-id: 79dd3c94382b
|
|
4
|
+
*/
|
|
5
|
+
import * as z from "zod/v4";
|
|
6
|
+
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
+
import { UpdateModelAvailabilityGuardrailPolicyRequest$outboundSchema as models_UpdateModelAvailabilityGuardrailPolicyRequest$outboundSchema } from "../updatemodelavailabilityguardrailpolicyrequest.js";
|
|
8
|
+
/** @internal */
|
|
9
|
+
export const UpdateModelAvailabilityPolicyRequest$outboundSchema = z.object({
|
|
10
|
+
httpReferer: z.string().optional(),
|
|
11
|
+
appTitle: z.string().optional(),
|
|
12
|
+
appCategories: z.string().optional(),
|
|
13
|
+
id: z.string(),
|
|
14
|
+
updateModelAvailabilityGuardrailPolicyRequest: models_UpdateModelAvailabilityGuardrailPolicyRequest$outboundSchema,
|
|
15
|
+
}).transform((v) => {
|
|
16
|
+
return remap$(v, {
|
|
17
|
+
httpReferer: "HTTP-Referer",
|
|
18
|
+
updateModelAvailabilityGuardrailPolicyRequest: "UpdateModelAvailabilityGuardrailPolicyRequest",
|
|
19
|
+
});
|
|
20
|
+
});
|
|
21
|
+
export function updateModelAvailabilityPolicyRequestToJSON(updateModelAvailabilityPolicyRequest) {
|
|
22
|
+
return JSON.stringify(UpdateModelAvailabilityPolicyRequest$outboundSchema.parse(updateModelAvailabilityPolicyRequest));
|
|
23
|
+
}
|
|
24
|
+
//# sourceMappingURL=updatemodelavailabilitypolicy.js.map
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import * as z from "zod/v4";
|
|
2
|
+
import * as models from "../index.js";
|
|
3
|
+
export type UpdateModerationPolicyGlobals = {
|
|
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 UpdateModerationPolicyRequest = {
|
|
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
|
+
* Policy ID
|
|
46
|
+
*/
|
|
47
|
+
id: string;
|
|
48
|
+
updateModerationGuardrailPolicyRequest: models.UpdateModerationGuardrailPolicyRequest;
|
|
49
|
+
};
|
|
50
|
+
/** @internal */
|
|
51
|
+
export type UpdateModerationPolicyRequest$Outbound = {
|
|
52
|
+
"HTTP-Referer"?: string | undefined;
|
|
53
|
+
appTitle?: string | undefined;
|
|
54
|
+
appCategories?: string | undefined;
|
|
55
|
+
id: string;
|
|
56
|
+
UpdateModerationGuardrailPolicyRequest: models.UpdateModerationGuardrailPolicyRequest$Outbound;
|
|
57
|
+
};
|
|
58
|
+
/** @internal */
|
|
59
|
+
export declare const UpdateModerationPolicyRequest$outboundSchema: z.ZodType<UpdateModerationPolicyRequest$Outbound, UpdateModerationPolicyRequest>;
|
|
60
|
+
export declare function updateModerationPolicyRequestToJSON(updateModerationPolicyRequest: UpdateModerationPolicyRequest): string;
|
|
61
|
+
//# sourceMappingURL=updatemoderationpolicy.d.ts.map
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
* @generated-id: 64ed076c4478
|
|
4
|
+
*/
|
|
5
|
+
import * as z from "zod/v4";
|
|
6
|
+
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
+
import { UpdateModerationGuardrailPolicyRequest$outboundSchema as models_UpdateModerationGuardrailPolicyRequest$outboundSchema } from "../updatemoderationguardrailpolicyrequest.js";
|
|
8
|
+
/** @internal */
|
|
9
|
+
export const UpdateModerationPolicyRequest$outboundSchema = z.object({
|
|
10
|
+
httpReferer: z.string().optional(),
|
|
11
|
+
appTitle: z.string().optional(),
|
|
12
|
+
appCategories: z.string().optional(),
|
|
13
|
+
id: z.string(),
|
|
14
|
+
updateModerationGuardrailPolicyRequest: models_UpdateModerationGuardrailPolicyRequest$outboundSchema,
|
|
15
|
+
}).transform((v) => {
|
|
16
|
+
return remap$(v, {
|
|
17
|
+
httpReferer: "HTTP-Referer",
|
|
18
|
+
updateModerationGuardrailPolicyRequest: "UpdateModerationGuardrailPolicyRequest",
|
|
19
|
+
});
|
|
20
|
+
});
|
|
21
|
+
export function updateModerationPolicyRequestToJSON(updateModerationPolicyRequest) {
|
|
22
|
+
return JSON.stringify(UpdateModerationPolicyRequest$outboundSchema.parse(updateModerationPolicyRequest));
|
|
23
|
+
}
|
|
24
|
+
//# sourceMappingURL=updatemoderationpolicy.js.map
|
|
@@ -3,12 +3,12 @@ import { ClosedEnum, OpenEnum } from "../types/enums.js";
|
|
|
3
3
|
import { Result as SafeParseResult } from "../types/fp.js";
|
|
4
4
|
import { SDKValidationError } from "./errors/sdkvalidationerror.js";
|
|
5
5
|
import { ToolCallStatus } from "./toolcallstatus.js";
|
|
6
|
-
export declare const
|
|
6
|
+
export declare const OutputMemoryServerToolItemAction: {
|
|
7
7
|
readonly Read: "read";
|
|
8
8
|
readonly Write: "write";
|
|
9
9
|
readonly Delete: "delete";
|
|
10
10
|
};
|
|
11
|
-
export type
|
|
11
|
+
export type OutputMemoryServerToolItemAction = OpenEnum<typeof OutputMemoryServerToolItemAction>;
|
|
12
12
|
export declare const OutputMemoryServerToolItemType: {
|
|
13
13
|
readonly OpenrouterMemory: "openrouter:memory";
|
|
14
14
|
};
|
|
@@ -17,7 +17,7 @@ export type OutputMemoryServerToolItemType = ClosedEnum<typeof OutputMemoryServe
|
|
|
17
17
|
* An openrouter:memory server tool output item
|
|
18
18
|
*/
|
|
19
19
|
export type OutputMemoryServerToolItem = {
|
|
20
|
-
action?:
|
|
20
|
+
action?: OutputMemoryServerToolItemAction | undefined;
|
|
21
21
|
id?: string | undefined;
|
|
22
22
|
key?: string | undefined;
|
|
23
23
|
status: ToolCallStatus;
|
|
@@ -25,9 +25,9 @@ export type OutputMemoryServerToolItem = {
|
|
|
25
25
|
value?: any | undefined;
|
|
26
26
|
};
|
|
27
27
|
/** @internal */
|
|
28
|
-
export declare const
|
|
28
|
+
export declare const OutputMemoryServerToolItemAction$inboundSchema: z.ZodType<OutputMemoryServerToolItemAction, unknown>;
|
|
29
29
|
/** @internal */
|
|
30
|
-
export declare const
|
|
30
|
+
export declare const OutputMemoryServerToolItemAction$outboundSchema: z.ZodType<string, OutputMemoryServerToolItemAction>;
|
|
31
31
|
/** @internal */
|
|
32
32
|
export declare const OutputMemoryServerToolItemType$inboundSchema: z.ZodEnum<typeof OutputMemoryServerToolItemType>;
|
|
33
33
|
/** @internal */
|
|
@@ -6,7 +6,7 @@ import * as z from "zod/v4";
|
|
|
6
6
|
import { safeParse } from "../lib/schemas.js";
|
|
7
7
|
import * as openEnums from "../types/enums.js";
|
|
8
8
|
import { ToolCallStatus$inboundSchema, ToolCallStatus$outboundSchema, } from "./toolcallstatus.js";
|
|
9
|
-
export const
|
|
9
|
+
export const OutputMemoryServerToolItemAction = {
|
|
10
10
|
Read: "read",
|
|
11
11
|
Write: "write",
|
|
12
12
|
Delete: "delete",
|
|
@@ -15,16 +15,16 @@ export const OutputMemoryServerToolItemType = {
|
|
|
15
15
|
OpenrouterMemory: "openrouter:memory",
|
|
16
16
|
};
|
|
17
17
|
/** @internal */
|
|
18
|
-
export const
|
|
18
|
+
export const OutputMemoryServerToolItemAction$inboundSchema = openEnums.inboundSchema(OutputMemoryServerToolItemAction);
|
|
19
19
|
/** @internal */
|
|
20
|
-
export const
|
|
20
|
+
export const OutputMemoryServerToolItemAction$outboundSchema = openEnums.outboundSchema(OutputMemoryServerToolItemAction);
|
|
21
21
|
/** @internal */
|
|
22
22
|
export const OutputMemoryServerToolItemType$inboundSchema = z.enum(OutputMemoryServerToolItemType);
|
|
23
23
|
/** @internal */
|
|
24
24
|
export const OutputMemoryServerToolItemType$outboundSchema = OutputMemoryServerToolItemType$inboundSchema;
|
|
25
25
|
/** @internal */
|
|
26
26
|
export const OutputMemoryServerToolItem$inboundSchema = z.object({
|
|
27
|
-
action:
|
|
27
|
+
action: OutputMemoryServerToolItemAction$inboundSchema.optional(),
|
|
28
28
|
id: z.string().optional(),
|
|
29
29
|
key: z.string().optional(),
|
|
30
30
|
status: ToolCallStatus$inboundSchema,
|
|
@@ -33,7 +33,7 @@ export const OutputMemoryServerToolItem$inboundSchema = z.object({
|
|
|
33
33
|
});
|
|
34
34
|
/** @internal */
|
|
35
35
|
export const OutputMemoryServerToolItem$outboundSchema = z.object({
|
|
36
|
-
action:
|
|
36
|
+
action: OutputMemoryServerToolItemAction$outboundSchema.optional(),
|
|
37
37
|
id: z.string().optional(),
|
|
38
38
|
key: z.string().optional(),
|
|
39
39
|
status: ToolCallStatus$outboundSchema,
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import * as z from "zod/v4";
|
|
2
|
+
import { GuardrailBudgetPolicyAuthoringConfig, GuardrailBudgetPolicyAuthoringConfig$Outbound } from "./guardrailbudgetpolicyauthoringconfig.js";
|
|
3
|
+
export type UpdateBudgetGuardrailPolicyRequest = {
|
|
4
|
+
/**
|
|
5
|
+
* Complete new list of assigned API keys. Send together with `member_ids`, or omit both to keep the stored assignments.
|
|
6
|
+
*/
|
|
7
|
+
apiKeyHashes?: Array<string> | undefined;
|
|
8
|
+
config: GuardrailBudgetPolicyAuthoringConfig;
|
|
9
|
+
/**
|
|
10
|
+
* Omit to keep the stored default status; `false` unsets the policy as the workspace default.
|
|
11
|
+
*/
|
|
12
|
+
isWorkspaceDefault?: boolean | undefined;
|
|
13
|
+
/**
|
|
14
|
+
* Complete new list of assigned members. Send together with `api_key_hashes`, or omit both to keep the stored assignments.
|
|
15
|
+
*/
|
|
16
|
+
memberIds?: Array<string> | undefined;
|
|
17
|
+
/**
|
|
18
|
+
* Policy name
|
|
19
|
+
*/
|
|
20
|
+
name: string;
|
|
21
|
+
/**
|
|
22
|
+
* API key hashes
|
|
23
|
+
*/
|
|
24
|
+
optedOutApiKeyHashes?: Array<string> | undefined;
|
|
25
|
+
/**
|
|
26
|
+
* Organization member user IDs
|
|
27
|
+
*/
|
|
28
|
+
optedOutMemberIds?: Array<string> | undefined;
|
|
29
|
+
/**
|
|
30
|
+
* Workspace the policy belongs to
|
|
31
|
+
*/
|
|
32
|
+
workspaceId: string;
|
|
33
|
+
};
|
|
34
|
+
/** @internal */
|
|
35
|
+
export type UpdateBudgetGuardrailPolicyRequest$Outbound = {
|
|
36
|
+
api_key_hashes?: Array<string> | undefined;
|
|
37
|
+
config: GuardrailBudgetPolicyAuthoringConfig$Outbound;
|
|
38
|
+
is_workspace_default?: boolean | undefined;
|
|
39
|
+
member_ids?: Array<string> | undefined;
|
|
40
|
+
name: string;
|
|
41
|
+
opted_out_api_key_hashes?: Array<string> | undefined;
|
|
42
|
+
opted_out_member_ids?: Array<string> | undefined;
|
|
43
|
+
workspace_id: string;
|
|
44
|
+
};
|
|
45
|
+
/** @internal */
|
|
46
|
+
export declare const UpdateBudgetGuardrailPolicyRequest$outboundSchema: z.ZodType<UpdateBudgetGuardrailPolicyRequest$Outbound, UpdateBudgetGuardrailPolicyRequest>;
|
|
47
|
+
export declare function updateBudgetGuardrailPolicyRequestToJSON(updateBudgetGuardrailPolicyRequest: UpdateBudgetGuardrailPolicyRequest): string;
|
|
48
|
+
//# sourceMappingURL=updatebudgetguardrailpolicyrequest.d.ts.map
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
* @generated-id: 9af5f4afb16a
|
|
4
|
+
*/
|
|
5
|
+
import * as z from "zod/v4";
|
|
6
|
+
import { remap as remap$ } from "../lib/primitives.js";
|
|
7
|
+
import { GuardrailBudgetPolicyAuthoringConfig$outboundSchema, } from "./guardrailbudgetpolicyauthoringconfig.js";
|
|
8
|
+
/** @internal */
|
|
9
|
+
export const UpdateBudgetGuardrailPolicyRequest$outboundSchema = z.object({
|
|
10
|
+
apiKeyHashes: z.array(z.string()).optional(),
|
|
11
|
+
config: GuardrailBudgetPolicyAuthoringConfig$outboundSchema,
|
|
12
|
+
isWorkspaceDefault: z.boolean().optional(),
|
|
13
|
+
memberIds: z.array(z.string()).optional(),
|
|
14
|
+
name: z.string(),
|
|
15
|
+
optedOutApiKeyHashes: z.array(z.string()).optional(),
|
|
16
|
+
optedOutMemberIds: z.array(z.string()).optional(),
|
|
17
|
+
workspaceId: z.string(),
|
|
18
|
+
}).transform((v) => {
|
|
19
|
+
return remap$(v, {
|
|
20
|
+
apiKeyHashes: "api_key_hashes",
|
|
21
|
+
isWorkspaceDefault: "is_workspace_default",
|
|
22
|
+
memberIds: "member_ids",
|
|
23
|
+
optedOutApiKeyHashes: "opted_out_api_key_hashes",
|
|
24
|
+
optedOutMemberIds: "opted_out_member_ids",
|
|
25
|
+
workspaceId: "workspace_id",
|
|
26
|
+
});
|
|
27
|
+
});
|
|
28
|
+
export function updateBudgetGuardrailPolicyRequestToJSON(updateBudgetGuardrailPolicyRequest) {
|
|
29
|
+
return JSON.stringify(UpdateBudgetGuardrailPolicyRequest$outboundSchema.parse(updateBudgetGuardrailPolicyRequest));
|
|
30
|
+
}
|
|
31
|
+
//# sourceMappingURL=updatebudgetguardrailpolicyrequest.js.map
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import * as z from "zod/v4";
|
|
2
|
+
import { GuardrailModelAvailabilityPolicyAuthoringConfig, GuardrailModelAvailabilityPolicyAuthoringConfig$Outbound } from "./guardrailmodelavailabilitypolicyauthoringconfig.js";
|
|
3
|
+
export type UpdateModelAvailabilityGuardrailPolicyRequest = {
|
|
4
|
+
/**
|
|
5
|
+
* Complete new list of assigned API keys. Send together with `member_ids`, or omit both to keep the stored assignments.
|
|
6
|
+
*/
|
|
7
|
+
apiKeyHashes?: Array<string> | undefined;
|
|
8
|
+
config: GuardrailModelAvailabilityPolicyAuthoringConfig;
|
|
9
|
+
/**
|
|
10
|
+
* Omit to keep the stored default status; `false` unsets the policy as the workspace default.
|
|
11
|
+
*/
|
|
12
|
+
isWorkspaceDefault?: boolean | undefined;
|
|
13
|
+
/**
|
|
14
|
+
* Complete new list of assigned members. Send together with `api_key_hashes`, or omit both to keep the stored assignments.
|
|
15
|
+
*/
|
|
16
|
+
memberIds?: Array<string> | undefined;
|
|
17
|
+
/**
|
|
18
|
+
* Policy name
|
|
19
|
+
*/
|
|
20
|
+
name: string;
|
|
21
|
+
/**
|
|
22
|
+
* API key hashes
|
|
23
|
+
*/
|
|
24
|
+
optedOutApiKeyHashes?: Array<string> | undefined;
|
|
25
|
+
/**
|
|
26
|
+
* Organization member user IDs
|
|
27
|
+
*/
|
|
28
|
+
optedOutMemberIds?: Array<string> | undefined;
|
|
29
|
+
/**
|
|
30
|
+
* Workspace the policy belongs to
|
|
31
|
+
*/
|
|
32
|
+
workspaceId: string;
|
|
33
|
+
};
|
|
34
|
+
/** @internal */
|
|
35
|
+
export type UpdateModelAvailabilityGuardrailPolicyRequest$Outbound = {
|
|
36
|
+
api_key_hashes?: Array<string> | undefined;
|
|
37
|
+
config: GuardrailModelAvailabilityPolicyAuthoringConfig$Outbound;
|
|
38
|
+
is_workspace_default?: boolean | undefined;
|
|
39
|
+
member_ids?: Array<string> | undefined;
|
|
40
|
+
name: string;
|
|
41
|
+
opted_out_api_key_hashes?: Array<string> | undefined;
|
|
42
|
+
opted_out_member_ids?: Array<string> | undefined;
|
|
43
|
+
workspace_id: string;
|
|
44
|
+
};
|
|
45
|
+
/** @internal */
|
|
46
|
+
export declare const UpdateModelAvailabilityGuardrailPolicyRequest$outboundSchema: z.ZodType<UpdateModelAvailabilityGuardrailPolicyRequest$Outbound, UpdateModelAvailabilityGuardrailPolicyRequest>;
|
|
47
|
+
export declare function updateModelAvailabilityGuardrailPolicyRequestToJSON(updateModelAvailabilityGuardrailPolicyRequest: UpdateModelAvailabilityGuardrailPolicyRequest): string;
|
|
48
|
+
//# sourceMappingURL=updatemodelavailabilityguardrailpolicyrequest.d.ts.map
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
* @generated-id: 901f7f6e1525
|
|
4
|
+
*/
|
|
5
|
+
import * as z from "zod/v4";
|
|
6
|
+
import { remap as remap$ } from "../lib/primitives.js";
|
|
7
|
+
import { GuardrailModelAvailabilityPolicyAuthoringConfig$outboundSchema, } from "./guardrailmodelavailabilitypolicyauthoringconfig.js";
|
|
8
|
+
/** @internal */
|
|
9
|
+
export const UpdateModelAvailabilityGuardrailPolicyRequest$outboundSchema = z.object({
|
|
10
|
+
apiKeyHashes: z.array(z.string()).optional(),
|
|
11
|
+
config: GuardrailModelAvailabilityPolicyAuthoringConfig$outboundSchema,
|
|
12
|
+
isWorkspaceDefault: z.boolean().optional(),
|
|
13
|
+
memberIds: z.array(z.string()).optional(),
|
|
14
|
+
name: z.string(),
|
|
15
|
+
optedOutApiKeyHashes: z.array(z.string()).optional(),
|
|
16
|
+
optedOutMemberIds: z.array(z.string()).optional(),
|
|
17
|
+
workspaceId: z.string(),
|
|
18
|
+
}).transform((v) => {
|
|
19
|
+
return remap$(v, {
|
|
20
|
+
apiKeyHashes: "api_key_hashes",
|
|
21
|
+
isWorkspaceDefault: "is_workspace_default",
|
|
22
|
+
memberIds: "member_ids",
|
|
23
|
+
optedOutApiKeyHashes: "opted_out_api_key_hashes",
|
|
24
|
+
optedOutMemberIds: "opted_out_member_ids",
|
|
25
|
+
workspaceId: "workspace_id",
|
|
26
|
+
});
|
|
27
|
+
});
|
|
28
|
+
export function updateModelAvailabilityGuardrailPolicyRequestToJSON(updateModelAvailabilityGuardrailPolicyRequest) {
|
|
29
|
+
return JSON.stringify(UpdateModelAvailabilityGuardrailPolicyRequest$outboundSchema.parse(updateModelAvailabilityGuardrailPolicyRequest));
|
|
30
|
+
}
|
|
31
|
+
//# sourceMappingURL=updatemodelavailabilityguardrailpolicyrequest.js.map
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import * as z from "zod/v4";
|
|
2
|
+
import { GuardrailModerationPolicyConfig, GuardrailModerationPolicyConfig$Outbound } from "./guardrailmoderationpolicyconfig.js";
|
|
3
|
+
export type UpdateModerationGuardrailPolicyRequest = {
|
|
4
|
+
/**
|
|
5
|
+
* Complete new list of assigned API keys. Send together with `member_ids`, or omit both to keep the stored assignments.
|
|
6
|
+
*/
|
|
7
|
+
apiKeyHashes?: Array<string> | undefined;
|
|
8
|
+
config: GuardrailModerationPolicyConfig;
|
|
9
|
+
/**
|
|
10
|
+
* Omit to keep the stored default status; `false` unsets the policy as the workspace default.
|
|
11
|
+
*/
|
|
12
|
+
isWorkspaceDefault?: boolean | undefined;
|
|
13
|
+
/**
|
|
14
|
+
* Complete new list of assigned members. Send together with `api_key_hashes`, or omit both to keep the stored assignments.
|
|
15
|
+
*/
|
|
16
|
+
memberIds?: Array<string> | undefined;
|
|
17
|
+
/**
|
|
18
|
+
* Policy name
|
|
19
|
+
*/
|
|
20
|
+
name: string;
|
|
21
|
+
/**
|
|
22
|
+
* API key hashes
|
|
23
|
+
*/
|
|
24
|
+
optedOutApiKeyHashes?: Array<string> | undefined;
|
|
25
|
+
/**
|
|
26
|
+
* Organization member user IDs
|
|
27
|
+
*/
|
|
28
|
+
optedOutMemberIds?: Array<string> | undefined;
|
|
29
|
+
/**
|
|
30
|
+
* Workspace the policy belongs to
|
|
31
|
+
*/
|
|
32
|
+
workspaceId: string;
|
|
33
|
+
};
|
|
34
|
+
/** @internal */
|
|
35
|
+
export type UpdateModerationGuardrailPolicyRequest$Outbound = {
|
|
36
|
+
api_key_hashes?: Array<string> | undefined;
|
|
37
|
+
config: GuardrailModerationPolicyConfig$Outbound;
|
|
38
|
+
is_workspace_default?: boolean | undefined;
|
|
39
|
+
member_ids?: Array<string> | undefined;
|
|
40
|
+
name: string;
|
|
41
|
+
opted_out_api_key_hashes?: Array<string> | undefined;
|
|
42
|
+
opted_out_member_ids?: Array<string> | undefined;
|
|
43
|
+
workspace_id: string;
|
|
44
|
+
};
|
|
45
|
+
/** @internal */
|
|
46
|
+
export declare const UpdateModerationGuardrailPolicyRequest$outboundSchema: z.ZodType<UpdateModerationGuardrailPolicyRequest$Outbound, UpdateModerationGuardrailPolicyRequest>;
|
|
47
|
+
export declare function updateModerationGuardrailPolicyRequestToJSON(updateModerationGuardrailPolicyRequest: UpdateModerationGuardrailPolicyRequest): string;
|
|
48
|
+
//# sourceMappingURL=updatemoderationguardrailpolicyrequest.d.ts.map
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
* @generated-id: f677f9189829
|
|
4
|
+
*/
|
|
5
|
+
import * as z from "zod/v4";
|
|
6
|
+
import { remap as remap$ } from "../lib/primitives.js";
|
|
7
|
+
import { GuardrailModerationPolicyConfig$outboundSchema, } from "./guardrailmoderationpolicyconfig.js";
|
|
8
|
+
/** @internal */
|
|
9
|
+
export const UpdateModerationGuardrailPolicyRequest$outboundSchema = z.object({
|
|
10
|
+
apiKeyHashes: z.array(z.string()).optional(),
|
|
11
|
+
config: GuardrailModerationPolicyConfig$outboundSchema,
|
|
12
|
+
isWorkspaceDefault: z.boolean().optional(),
|
|
13
|
+
memberIds: z.array(z.string()).optional(),
|
|
14
|
+
name: z.string(),
|
|
15
|
+
optedOutApiKeyHashes: z.array(z.string()).optional(),
|
|
16
|
+
optedOutMemberIds: z.array(z.string()).optional(),
|
|
17
|
+
workspaceId: z.string(),
|
|
18
|
+
}).transform((v) => {
|
|
19
|
+
return remap$(v, {
|
|
20
|
+
apiKeyHashes: "api_key_hashes",
|
|
21
|
+
isWorkspaceDefault: "is_workspace_default",
|
|
22
|
+
memberIds: "member_ids",
|
|
23
|
+
optedOutApiKeyHashes: "opted_out_api_key_hashes",
|
|
24
|
+
optedOutMemberIds: "opted_out_member_ids",
|
|
25
|
+
workspaceId: "workspace_id",
|
|
26
|
+
});
|
|
27
|
+
});
|
|
28
|
+
export function updateModerationGuardrailPolicyRequestToJSON(updateModerationGuardrailPolicyRequest) {
|
|
29
|
+
return JSON.stringify(UpdateModerationGuardrailPolicyRequest$outboundSchema.parse(updateModerationGuardrailPolicyRequest));
|
|
30
|
+
}
|
|
31
|
+
//# sourceMappingURL=updatemoderationguardrailpolicyrequest.js.map
|