@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,23 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
* @generated-id: dbae08e2c580
|
|
4
|
+
*/
|
|
5
|
+
import * as z from "zod/v4";
|
|
6
|
+
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
+
/** @internal */
|
|
8
|
+
export const DeleteModelAvailabilityPolicyRequest$outboundSchema = z.object({
|
|
9
|
+
httpReferer: z.string().optional(),
|
|
10
|
+
appTitle: z.string().optional(),
|
|
11
|
+
appCategories: z.string().optional(),
|
|
12
|
+
id: z.string(),
|
|
13
|
+
workspaceId: z.string(),
|
|
14
|
+
}).transform((v) => {
|
|
15
|
+
return remap$(v, {
|
|
16
|
+
httpReferer: "HTTP-Referer",
|
|
17
|
+
workspaceId: "workspace_id",
|
|
18
|
+
});
|
|
19
|
+
});
|
|
20
|
+
export function deleteModelAvailabilityPolicyRequestToJSON(deleteModelAvailabilityPolicyRequest) {
|
|
21
|
+
return JSON.stringify(DeleteModelAvailabilityPolicyRequest$outboundSchema.parse(deleteModelAvailabilityPolicyRequest));
|
|
22
|
+
}
|
|
23
|
+
//# sourceMappingURL=deletemodelavailabilitypolicy.js.map
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import * as z from "zod/v4";
|
|
2
|
+
export type DeleteModerationPolicyGlobals = {
|
|
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 DeleteModerationPolicyRequest = {
|
|
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
|
+
* Policy ID
|
|
45
|
+
*/
|
|
46
|
+
id: string;
|
|
47
|
+
/**
|
|
48
|
+
* Workspace the policy belongs to
|
|
49
|
+
*/
|
|
50
|
+
workspaceId: string;
|
|
51
|
+
};
|
|
52
|
+
/** @internal */
|
|
53
|
+
export type DeleteModerationPolicyRequest$Outbound = {
|
|
54
|
+
"HTTP-Referer"?: string | undefined;
|
|
55
|
+
appTitle?: string | undefined;
|
|
56
|
+
appCategories?: string | undefined;
|
|
57
|
+
id: string;
|
|
58
|
+
workspace_id: string;
|
|
59
|
+
};
|
|
60
|
+
/** @internal */
|
|
61
|
+
export declare const DeleteModerationPolicyRequest$outboundSchema: z.ZodType<DeleteModerationPolicyRequest$Outbound, DeleteModerationPolicyRequest>;
|
|
62
|
+
export declare function deleteModerationPolicyRequestToJSON(deleteModerationPolicyRequest: DeleteModerationPolicyRequest): string;
|
|
63
|
+
//# sourceMappingURL=deletemoderationpolicy.d.ts.map
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
* @generated-id: 184b68d6138c
|
|
4
|
+
*/
|
|
5
|
+
import * as z from "zod/v4";
|
|
6
|
+
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
+
/** @internal */
|
|
8
|
+
export const DeleteModerationPolicyRequest$outboundSchema = z.object({
|
|
9
|
+
httpReferer: z.string().optional(),
|
|
10
|
+
appTitle: z.string().optional(),
|
|
11
|
+
appCategories: z.string().optional(),
|
|
12
|
+
id: z.string(),
|
|
13
|
+
workspaceId: z.string(),
|
|
14
|
+
}).transform((v) => {
|
|
15
|
+
return remap$(v, {
|
|
16
|
+
httpReferer: "HTTP-Referer",
|
|
17
|
+
workspaceId: "workspace_id",
|
|
18
|
+
});
|
|
19
|
+
});
|
|
20
|
+
export function deleteModerationPolicyRequestToJSON(deleteModerationPolicyRequest) {
|
|
21
|
+
return JSON.stringify(DeleteModerationPolicyRequest$outboundSchema.parse(deleteModerationPolicyRequest));
|
|
22
|
+
}
|
|
23
|
+
//# sourceMappingURL=deletemoderationpolicy.js.map
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
import * as z from "zod/v4";
|
|
2
|
+
import { OpenEnum } from "../../types/enums.js";
|
|
3
|
+
export type GetApiKeyPolicyAssignmentGlobals = {
|
|
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
|
+
/**
|
|
25
|
+
* Policy type the assignment is read or changed for
|
|
26
|
+
*/
|
|
27
|
+
export declare const GetApiKeyPolicyAssignmentPolicyType: {
|
|
28
|
+
readonly Budget: "budget";
|
|
29
|
+
readonly ModelAvailability: "model_availability";
|
|
30
|
+
readonly Moderation: "moderation";
|
|
31
|
+
readonly RateLimit: "rate_limit";
|
|
32
|
+
};
|
|
33
|
+
/**
|
|
34
|
+
* Policy type the assignment is read or changed for
|
|
35
|
+
*/
|
|
36
|
+
export type GetApiKeyPolicyAssignmentPolicyType = OpenEnum<typeof GetApiKeyPolicyAssignmentPolicyType>;
|
|
37
|
+
export type GetApiKeyPolicyAssignmentRequest = {
|
|
38
|
+
/**
|
|
39
|
+
* The app identifier should be your app's URL and is used as the primary identifier for rankings.
|
|
40
|
+
*
|
|
41
|
+
* @remarks
|
|
42
|
+
* This is used to track API usage per application.
|
|
43
|
+
*/
|
|
44
|
+
httpReferer?: string | undefined;
|
|
45
|
+
/**
|
|
46
|
+
* The app display name allows you to customize how your app appears in OpenRouter's dashboard.
|
|
47
|
+
*
|
|
48
|
+
* @remarks
|
|
49
|
+
*/
|
|
50
|
+
appTitle?: string | undefined;
|
|
51
|
+
/**
|
|
52
|
+
* Comma-separated list of app categories (e.g. "cli-agent,cloud-agent"). Used for marketplace rankings.
|
|
53
|
+
*
|
|
54
|
+
* @remarks
|
|
55
|
+
*/
|
|
56
|
+
appCategories?: string | undefined;
|
|
57
|
+
/**
|
|
58
|
+
* API key hash
|
|
59
|
+
*/
|
|
60
|
+
hash: string;
|
|
61
|
+
/**
|
|
62
|
+
* Workspace the policy belongs to
|
|
63
|
+
*/
|
|
64
|
+
workspaceId: string;
|
|
65
|
+
/**
|
|
66
|
+
* Policy type the assignment is read or changed for
|
|
67
|
+
*/
|
|
68
|
+
policyType: GetApiKeyPolicyAssignmentPolicyType;
|
|
69
|
+
};
|
|
70
|
+
/** @internal */
|
|
71
|
+
export declare const GetApiKeyPolicyAssignmentPolicyType$outboundSchema: z.ZodType<string, GetApiKeyPolicyAssignmentPolicyType>;
|
|
72
|
+
/** @internal */
|
|
73
|
+
export type GetApiKeyPolicyAssignmentRequest$Outbound = {
|
|
74
|
+
"HTTP-Referer"?: string | undefined;
|
|
75
|
+
appTitle?: string | undefined;
|
|
76
|
+
appCategories?: string | undefined;
|
|
77
|
+
hash: string;
|
|
78
|
+
workspace_id: string;
|
|
79
|
+
policy_type: string;
|
|
80
|
+
};
|
|
81
|
+
/** @internal */
|
|
82
|
+
export declare const GetApiKeyPolicyAssignmentRequest$outboundSchema: z.ZodType<GetApiKeyPolicyAssignmentRequest$Outbound, GetApiKeyPolicyAssignmentRequest>;
|
|
83
|
+
export declare function getApiKeyPolicyAssignmentRequestToJSON(getApiKeyPolicyAssignmentRequest: GetApiKeyPolicyAssignmentRequest): string;
|
|
84
|
+
//# sourceMappingURL=getapikeypolicyassignment.d.ts.map
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
* @generated-id: a37bbe823303
|
|
4
|
+
*/
|
|
5
|
+
import * as z from "zod/v4";
|
|
6
|
+
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
+
import * as openEnums from "../../types/enums.js";
|
|
8
|
+
/**
|
|
9
|
+
* Policy type the assignment is read or changed for
|
|
10
|
+
*/
|
|
11
|
+
export const GetApiKeyPolicyAssignmentPolicyType = {
|
|
12
|
+
Budget: "budget",
|
|
13
|
+
ModelAvailability: "model_availability",
|
|
14
|
+
Moderation: "moderation",
|
|
15
|
+
RateLimit: "rate_limit",
|
|
16
|
+
};
|
|
17
|
+
/** @internal */
|
|
18
|
+
export const GetApiKeyPolicyAssignmentPolicyType$outboundSchema = openEnums.outboundSchema(GetApiKeyPolicyAssignmentPolicyType);
|
|
19
|
+
/** @internal */
|
|
20
|
+
export const GetApiKeyPolicyAssignmentRequest$outboundSchema = z.object({
|
|
21
|
+
httpReferer: z.string().optional(),
|
|
22
|
+
appTitle: z.string().optional(),
|
|
23
|
+
appCategories: z.string().optional(),
|
|
24
|
+
hash: z.string(),
|
|
25
|
+
workspaceId: z.string(),
|
|
26
|
+
policyType: GetApiKeyPolicyAssignmentPolicyType$outboundSchema,
|
|
27
|
+
}).transform((v) => {
|
|
28
|
+
return remap$(v, {
|
|
29
|
+
httpReferer: "HTTP-Referer",
|
|
30
|
+
workspaceId: "workspace_id",
|
|
31
|
+
policyType: "policy_type",
|
|
32
|
+
});
|
|
33
|
+
});
|
|
34
|
+
export function getApiKeyPolicyAssignmentRequestToJSON(getApiKeyPolicyAssignmentRequest) {
|
|
35
|
+
return JSON.stringify(GetApiKeyPolicyAssignmentRequest$outboundSchema.parse(getApiKeyPolicyAssignmentRequest));
|
|
36
|
+
}
|
|
37
|
+
//# sourceMappingURL=getapikeypolicyassignment.js.map
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import * as z from "zod/v4";
|
|
2
|
+
export type GetBudgetPolicyGlobals = {
|
|
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 GetBudgetPolicyRequest = {
|
|
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
|
+
* Policy ID
|
|
45
|
+
*/
|
|
46
|
+
id: string;
|
|
47
|
+
/**
|
|
48
|
+
* Workspace the policy belongs to
|
|
49
|
+
*/
|
|
50
|
+
workspaceId: string;
|
|
51
|
+
};
|
|
52
|
+
/** @internal */
|
|
53
|
+
export type GetBudgetPolicyRequest$Outbound = {
|
|
54
|
+
"HTTP-Referer"?: string | undefined;
|
|
55
|
+
appTitle?: string | undefined;
|
|
56
|
+
appCategories?: string | undefined;
|
|
57
|
+
id: string;
|
|
58
|
+
workspace_id: string;
|
|
59
|
+
};
|
|
60
|
+
/** @internal */
|
|
61
|
+
export declare const GetBudgetPolicyRequest$outboundSchema: z.ZodType<GetBudgetPolicyRequest$Outbound, GetBudgetPolicyRequest>;
|
|
62
|
+
export declare function getBudgetPolicyRequestToJSON(getBudgetPolicyRequest: GetBudgetPolicyRequest): string;
|
|
63
|
+
//# sourceMappingURL=getbudgetpolicy.d.ts.map
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
* @generated-id: 7316da8d4d3a
|
|
4
|
+
*/
|
|
5
|
+
import * as z from "zod/v4";
|
|
6
|
+
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
+
/** @internal */
|
|
8
|
+
export const GetBudgetPolicyRequest$outboundSchema = z.object({
|
|
9
|
+
httpReferer: z.string().optional(),
|
|
10
|
+
appTitle: z.string().optional(),
|
|
11
|
+
appCategories: z.string().optional(),
|
|
12
|
+
id: z.string(),
|
|
13
|
+
workspaceId: z.string(),
|
|
14
|
+
}).transform((v) => {
|
|
15
|
+
return remap$(v, {
|
|
16
|
+
httpReferer: "HTTP-Referer",
|
|
17
|
+
workspaceId: "workspace_id",
|
|
18
|
+
});
|
|
19
|
+
});
|
|
20
|
+
export function getBudgetPolicyRequestToJSON(getBudgetPolicyRequest) {
|
|
21
|
+
return JSON.stringify(GetBudgetPolicyRequest$outboundSchema.parse(getBudgetPolicyRequest));
|
|
22
|
+
}
|
|
23
|
+
//# sourceMappingURL=getbudgetpolicy.js.map
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
import * as z from "zod/v4";
|
|
2
|
+
import { OpenEnum } from "../../types/enums.js";
|
|
3
|
+
export type GetMemberPolicyAssignmentGlobals = {
|
|
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
|
+
/**
|
|
25
|
+
* Policy type the assignment is read or changed for
|
|
26
|
+
*/
|
|
27
|
+
export declare const GetMemberPolicyAssignmentPolicyType: {
|
|
28
|
+
readonly Budget: "budget";
|
|
29
|
+
readonly ModelAvailability: "model_availability";
|
|
30
|
+
readonly Moderation: "moderation";
|
|
31
|
+
readonly RateLimit: "rate_limit";
|
|
32
|
+
};
|
|
33
|
+
/**
|
|
34
|
+
* Policy type the assignment is read or changed for
|
|
35
|
+
*/
|
|
36
|
+
export type GetMemberPolicyAssignmentPolicyType = OpenEnum<typeof GetMemberPolicyAssignmentPolicyType>;
|
|
37
|
+
export type GetMemberPolicyAssignmentRequest = {
|
|
38
|
+
/**
|
|
39
|
+
* The app identifier should be your app's URL and is used as the primary identifier for rankings.
|
|
40
|
+
*
|
|
41
|
+
* @remarks
|
|
42
|
+
* This is used to track API usage per application.
|
|
43
|
+
*/
|
|
44
|
+
httpReferer?: string | undefined;
|
|
45
|
+
/**
|
|
46
|
+
* The app display name allows you to customize how your app appears in OpenRouter's dashboard.
|
|
47
|
+
*
|
|
48
|
+
* @remarks
|
|
49
|
+
*/
|
|
50
|
+
appTitle?: string | undefined;
|
|
51
|
+
/**
|
|
52
|
+
* Comma-separated list of app categories (e.g. "cli-agent,cloud-agent"). Used for marketplace rankings.
|
|
53
|
+
*
|
|
54
|
+
* @remarks
|
|
55
|
+
*/
|
|
56
|
+
appCategories?: string | undefined;
|
|
57
|
+
/**
|
|
58
|
+
* Organization member user ID
|
|
59
|
+
*/
|
|
60
|
+
memberId: string;
|
|
61
|
+
/**
|
|
62
|
+
* Workspace the policy belongs to
|
|
63
|
+
*/
|
|
64
|
+
workspaceId: string;
|
|
65
|
+
/**
|
|
66
|
+
* Policy type the assignment is read or changed for
|
|
67
|
+
*/
|
|
68
|
+
policyType: GetMemberPolicyAssignmentPolicyType;
|
|
69
|
+
};
|
|
70
|
+
/** @internal */
|
|
71
|
+
export declare const GetMemberPolicyAssignmentPolicyType$outboundSchema: z.ZodType<string, GetMemberPolicyAssignmentPolicyType>;
|
|
72
|
+
/** @internal */
|
|
73
|
+
export type GetMemberPolicyAssignmentRequest$Outbound = {
|
|
74
|
+
"HTTP-Referer"?: string | undefined;
|
|
75
|
+
appTitle?: string | undefined;
|
|
76
|
+
appCategories?: string | undefined;
|
|
77
|
+
member_id: string;
|
|
78
|
+
workspace_id: string;
|
|
79
|
+
policy_type: string;
|
|
80
|
+
};
|
|
81
|
+
/** @internal */
|
|
82
|
+
export declare const GetMemberPolicyAssignmentRequest$outboundSchema: z.ZodType<GetMemberPolicyAssignmentRequest$Outbound, GetMemberPolicyAssignmentRequest>;
|
|
83
|
+
export declare function getMemberPolicyAssignmentRequestToJSON(getMemberPolicyAssignmentRequest: GetMemberPolicyAssignmentRequest): string;
|
|
84
|
+
//# sourceMappingURL=getmemberpolicyassignment.d.ts.map
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
* @generated-id: 789d41ca2ef5
|
|
4
|
+
*/
|
|
5
|
+
import * as z from "zod/v4";
|
|
6
|
+
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
+
import * as openEnums from "../../types/enums.js";
|
|
8
|
+
/**
|
|
9
|
+
* Policy type the assignment is read or changed for
|
|
10
|
+
*/
|
|
11
|
+
export const GetMemberPolicyAssignmentPolicyType = {
|
|
12
|
+
Budget: "budget",
|
|
13
|
+
ModelAvailability: "model_availability",
|
|
14
|
+
Moderation: "moderation",
|
|
15
|
+
RateLimit: "rate_limit",
|
|
16
|
+
};
|
|
17
|
+
/** @internal */
|
|
18
|
+
export const GetMemberPolicyAssignmentPolicyType$outboundSchema = openEnums.outboundSchema(GetMemberPolicyAssignmentPolicyType);
|
|
19
|
+
/** @internal */
|
|
20
|
+
export const GetMemberPolicyAssignmentRequest$outboundSchema = z.object({
|
|
21
|
+
httpReferer: z.string().optional(),
|
|
22
|
+
appTitle: z.string().optional(),
|
|
23
|
+
appCategories: z.string().optional(),
|
|
24
|
+
memberId: z.string(),
|
|
25
|
+
workspaceId: z.string(),
|
|
26
|
+
policyType: GetMemberPolicyAssignmentPolicyType$outboundSchema,
|
|
27
|
+
}).transform((v) => {
|
|
28
|
+
return remap$(v, {
|
|
29
|
+
httpReferer: "HTTP-Referer",
|
|
30
|
+
memberId: "member_id",
|
|
31
|
+
workspaceId: "workspace_id",
|
|
32
|
+
policyType: "policy_type",
|
|
33
|
+
});
|
|
34
|
+
});
|
|
35
|
+
export function getMemberPolicyAssignmentRequestToJSON(getMemberPolicyAssignmentRequest) {
|
|
36
|
+
return JSON.stringify(GetMemberPolicyAssignmentRequest$outboundSchema.parse(getMemberPolicyAssignmentRequest));
|
|
37
|
+
}
|
|
38
|
+
//# sourceMappingURL=getmemberpolicyassignment.js.map
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import * as z from "zod/v4";
|
|
2
|
+
export type GetModelAvailabilityPolicyGlobals = {
|
|
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 GetModelAvailabilityPolicyRequest = {
|
|
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
|
+
* Policy ID
|
|
45
|
+
*/
|
|
46
|
+
id: string;
|
|
47
|
+
/**
|
|
48
|
+
* Workspace the policy belongs to
|
|
49
|
+
*/
|
|
50
|
+
workspaceId: string;
|
|
51
|
+
};
|
|
52
|
+
/** @internal */
|
|
53
|
+
export type GetModelAvailabilityPolicyRequest$Outbound = {
|
|
54
|
+
"HTTP-Referer"?: string | undefined;
|
|
55
|
+
appTitle?: string | undefined;
|
|
56
|
+
appCategories?: string | undefined;
|
|
57
|
+
id: string;
|
|
58
|
+
workspace_id: string;
|
|
59
|
+
};
|
|
60
|
+
/** @internal */
|
|
61
|
+
export declare const GetModelAvailabilityPolicyRequest$outboundSchema: z.ZodType<GetModelAvailabilityPolicyRequest$Outbound, GetModelAvailabilityPolicyRequest>;
|
|
62
|
+
export declare function getModelAvailabilityPolicyRequestToJSON(getModelAvailabilityPolicyRequest: GetModelAvailabilityPolicyRequest): string;
|
|
63
|
+
//# sourceMappingURL=getmodelavailabilitypolicy.d.ts.map
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
* @generated-id: 4ca4e22e48f5
|
|
4
|
+
*/
|
|
5
|
+
import * as z from "zod/v4";
|
|
6
|
+
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
+
/** @internal */
|
|
8
|
+
export const GetModelAvailabilityPolicyRequest$outboundSchema = z.object({
|
|
9
|
+
httpReferer: z.string().optional(),
|
|
10
|
+
appTitle: z.string().optional(),
|
|
11
|
+
appCategories: z.string().optional(),
|
|
12
|
+
id: z.string(),
|
|
13
|
+
workspaceId: z.string(),
|
|
14
|
+
}).transform((v) => {
|
|
15
|
+
return remap$(v, {
|
|
16
|
+
httpReferer: "HTTP-Referer",
|
|
17
|
+
workspaceId: "workspace_id",
|
|
18
|
+
});
|
|
19
|
+
});
|
|
20
|
+
export function getModelAvailabilityPolicyRequestToJSON(getModelAvailabilityPolicyRequest) {
|
|
21
|
+
return JSON.stringify(GetModelAvailabilityPolicyRequest$outboundSchema.parse(getModelAvailabilityPolicyRequest));
|
|
22
|
+
}
|
|
23
|
+
//# sourceMappingURL=getmodelavailabilitypolicy.js.map
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import * as z from "zod/v4";
|
|
2
|
+
export type GetModerationPolicyGlobals = {
|
|
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 GetModerationPolicyRequest = {
|
|
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
|
+
* Policy ID
|
|
45
|
+
*/
|
|
46
|
+
id: string;
|
|
47
|
+
/**
|
|
48
|
+
* Workspace the policy belongs to
|
|
49
|
+
*/
|
|
50
|
+
workspaceId: string;
|
|
51
|
+
};
|
|
52
|
+
/** @internal */
|
|
53
|
+
export type GetModerationPolicyRequest$Outbound = {
|
|
54
|
+
"HTTP-Referer"?: string | undefined;
|
|
55
|
+
appTitle?: string | undefined;
|
|
56
|
+
appCategories?: string | undefined;
|
|
57
|
+
id: string;
|
|
58
|
+
workspace_id: string;
|
|
59
|
+
};
|
|
60
|
+
/** @internal */
|
|
61
|
+
export declare const GetModerationPolicyRequest$outboundSchema: z.ZodType<GetModerationPolicyRequest$Outbound, GetModerationPolicyRequest>;
|
|
62
|
+
export declare function getModerationPolicyRequestToJSON(getModerationPolicyRequest: GetModerationPolicyRequest): string;
|
|
63
|
+
//# sourceMappingURL=getmoderationpolicy.d.ts.map
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
* @generated-id: 82b889cf0b29
|
|
4
|
+
*/
|
|
5
|
+
import * as z from "zod/v4";
|
|
6
|
+
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
+
/** @internal */
|
|
8
|
+
export const GetModerationPolicyRequest$outboundSchema = z.object({
|
|
9
|
+
httpReferer: z.string().optional(),
|
|
10
|
+
appTitle: z.string().optional(),
|
|
11
|
+
appCategories: z.string().optional(),
|
|
12
|
+
id: z.string(),
|
|
13
|
+
workspaceId: z.string(),
|
|
14
|
+
}).transform((v) => {
|
|
15
|
+
return remap$(v, {
|
|
16
|
+
httpReferer: "HTTP-Referer",
|
|
17
|
+
workspaceId: "workspace_id",
|
|
18
|
+
});
|
|
19
|
+
});
|
|
20
|
+
export function getModerationPolicyRequestToJSON(getModerationPolicyRequest) {
|
|
21
|
+
return JSON.stringify(GetModerationPolicyRequest$outboundSchema.parse(getModerationPolicyRequest));
|
|
22
|
+
}
|
|
23
|
+
//# sourceMappingURL=getmoderationpolicy.js.map
|