@openrouter/sdk 1.5.58 → 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/README.md +13 -11
- package/esm/funcs/apiKeysList.d.ts +4 -1
- package/esm/funcs/apiKeysList.js +32 -6
- 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/hooks/registration.d.ts +1 -1
- package/esm/hooks/registration.js +8 -1
- package/esm/hooks/signal-hooks.d.ts +42 -0
- package/esm/hooks/signal-hooks.js +236 -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/chatrequest.d.ts +5 -0
- package/esm/models/chatrequest.js +5 -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/list.d.ts +7 -1
- package/esm/models/operations/list.js +12 -1
- 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/apikeys.d.ts +4 -1
- package/esm/sdk/apikeys.js +2 -1
- 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 +9 -9
- package/scripts/check-types.js +113 -40
- package/vitest.config.ts +7 -0
|
@@ -5,7 +5,10 @@ export * from "./bulkassignmemberstoguardrail.js";
|
|
|
5
5
|
export * from "./bulkremoveworkspacemembers.js";
|
|
6
6
|
export * from "./bulkunassignkeysfromguardrail.js";
|
|
7
7
|
export * from "./bulkunassignmembersfromguardrail.js";
|
|
8
|
+
export * from "./changeapikeypolicyassignment.js";
|
|
9
|
+
export * from "./changememberpolicyassignment.js";
|
|
8
10
|
export * from "./copyvaultsecretstointern.js";
|
|
11
|
+
export * from "./createaccountpolicy.js";
|
|
9
12
|
export * from "./createapialphadecisions.js";
|
|
10
13
|
export * from "./createapialphaextractions.js";
|
|
11
14
|
export * from "./createaudiospeech.js";
|
|
@@ -13,12 +16,15 @@ export * from "./createaudiotranscriptions.js";
|
|
|
13
16
|
export * from "./createaudiotranscriptionsmultipart.js";
|
|
14
17
|
export * from "./createauthkeyscode.js";
|
|
15
18
|
export * from "./createbatches.js";
|
|
19
|
+
export * from "./createbudgetpolicy.js";
|
|
16
20
|
export * from "./createbyokkey.js";
|
|
17
21
|
export * from "./createembeddings.js";
|
|
18
22
|
export * from "./createexternaluser.js";
|
|
19
23
|
export * from "./createguardrail.js";
|
|
20
24
|
export * from "./createimages.js";
|
|
21
25
|
export * from "./createkeys.js";
|
|
26
|
+
export * from "./createmodelavailabilitypolicy.js";
|
|
27
|
+
export * from "./createmoderationpolicy.js";
|
|
22
28
|
export * from "./createoauthtoken.js";
|
|
23
29
|
export * from "./createobservabilitydestination.js";
|
|
24
30
|
export * from "./createpresetschatcompletions.js";
|
|
@@ -33,13 +39,17 @@ export * from "./createscimsyncjob.js";
|
|
|
33
39
|
export * from "./createsystemone.js";
|
|
34
40
|
export * from "./createvideos.js";
|
|
35
41
|
export * from "./createworkspace.js";
|
|
42
|
+
export * from "./deleteaccountpolicy.js";
|
|
36
43
|
export * from "./deletebatch.js";
|
|
44
|
+
export * from "./deletebudgetpolicy.js";
|
|
37
45
|
export * from "./deletebyokkey.js";
|
|
38
46
|
export * from "./deleteexternaluser.js";
|
|
39
47
|
export * from "./deletefile.js";
|
|
40
48
|
export * from "./deleteguardrail.js";
|
|
41
49
|
export * from "./deleteinternvaultsecret.js";
|
|
42
50
|
export * from "./deletekeys.js";
|
|
51
|
+
export * from "./deletemodelavailabilitypolicy.js";
|
|
52
|
+
export * from "./deletemoderationpolicy.js";
|
|
43
53
|
export * from "./deleteobservabilitydestination.js";
|
|
44
54
|
export * from "./deleteprivateendpoint.js";
|
|
45
55
|
export * from "./deleteprivateprovider.js";
|
|
@@ -53,9 +63,11 @@ export * from "./downloadfilecontent.js";
|
|
|
53
63
|
export * from "./enableprivateendpoint.js";
|
|
54
64
|
export * from "./exchangeauthcodeforapikey.js";
|
|
55
65
|
export * from "./getanalyticsmeta.js";
|
|
66
|
+
export * from "./getapikeypolicyassignment.js";
|
|
56
67
|
export * from "./getapprankings.js";
|
|
57
68
|
export * from "./getbatches.js";
|
|
58
69
|
export * from "./getbenchmarks.js";
|
|
70
|
+
export * from "./getbudgetpolicy.js";
|
|
59
71
|
export * from "./getbyokkey.js";
|
|
60
72
|
export * from "./getcontainerfile.js";
|
|
61
73
|
export * from "./getcredits.js";
|
|
@@ -65,8 +77,11 @@ export * from "./getfilemetadata.js";
|
|
|
65
77
|
export * from "./getgeneration.js";
|
|
66
78
|
export * from "./getguardrail.js";
|
|
67
79
|
export * from "./getkey.js";
|
|
80
|
+
export * from "./getmemberpolicyassignment.js";
|
|
68
81
|
export * from "./getmodel.js";
|
|
82
|
+
export * from "./getmodelavailabilitypolicy.js";
|
|
69
83
|
export * from "./getmodels.js";
|
|
84
|
+
export * from "./getmoderationpolicy.js";
|
|
70
85
|
export * from "./getobservabilitydestination.js";
|
|
71
86
|
export * from "./getorganizationsettings.js";
|
|
72
87
|
export * from "./getpreset.js";
|
|
@@ -84,7 +99,9 @@ export * from "./getvideos.js";
|
|
|
84
99
|
export * from "./getworkspace.js";
|
|
85
100
|
export * from "./getworkspacebudget.js";
|
|
86
101
|
export * from "./list.js";
|
|
102
|
+
export * from "./listaccountpolicies.js";
|
|
87
103
|
export * from "./listbatches.js";
|
|
104
|
+
export * from "./listbudgetpolicies.js";
|
|
88
105
|
export * from "./listbyokkeys.js";
|
|
89
106
|
export * from "./listcontainerfiles.js";
|
|
90
107
|
export * from "./listembeddingsmodels.js";
|
|
@@ -103,8 +120,10 @@ export * from "./listinterneffectivevaultsecrets.js";
|
|
|
103
120
|
export * from "./listinternvaultsecrets.js";
|
|
104
121
|
export * from "./listkeyassignments.js";
|
|
105
122
|
export * from "./listmemberassignments.js";
|
|
123
|
+
export * from "./listmodelavailabilitypolicies.js";
|
|
106
124
|
export * from "./listmodelscount.js";
|
|
107
125
|
export * from "./listmodelsuser.js";
|
|
126
|
+
export * from "./listmoderationpolicies.js";
|
|
108
127
|
export * from "./listoauthjwks.js";
|
|
109
128
|
export * from "./listobservabilitydestinations.js";
|
|
110
129
|
export * from "./listorganizationmembers.js";
|
|
@@ -128,10 +147,14 @@ export * from "./sendchatcompletionrequest.js";
|
|
|
128
147
|
export * from "./storeinternvaultsecret.js";
|
|
129
148
|
export * from "./storevaultsecret.js";
|
|
130
149
|
export * from "./submitgenerationfeedback.js";
|
|
150
|
+
export * from "./updateaccountpolicy.js";
|
|
151
|
+
export * from "./updatebudgetpolicy.js";
|
|
131
152
|
export * from "./updatebyokkey.js";
|
|
132
153
|
export * from "./updateexternaluser.js";
|
|
133
154
|
export * from "./updateguardrail.js";
|
|
134
155
|
export * from "./updatekeys.js";
|
|
156
|
+
export * from "./updatemodelavailabilitypolicy.js";
|
|
157
|
+
export * from "./updatemoderationpolicy.js";
|
|
135
158
|
export * from "./updateobservabilitydestination.js";
|
|
136
159
|
export * from "./updateorganizationsettings.js";
|
|
137
160
|
export * from "./updateprivateendpoint.js";
|
|
@@ -9,7 +9,10 @@ export * from "./bulkassignmemberstoguardrail.js";
|
|
|
9
9
|
export * from "./bulkremoveworkspacemembers.js";
|
|
10
10
|
export * from "./bulkunassignkeysfromguardrail.js";
|
|
11
11
|
export * from "./bulkunassignmembersfromguardrail.js";
|
|
12
|
+
export * from "./changeapikeypolicyassignment.js";
|
|
13
|
+
export * from "./changememberpolicyassignment.js";
|
|
12
14
|
export * from "./copyvaultsecretstointern.js";
|
|
15
|
+
export * from "./createaccountpolicy.js";
|
|
13
16
|
export * from "./createapialphadecisions.js";
|
|
14
17
|
export * from "./createapialphaextractions.js";
|
|
15
18
|
export * from "./createaudiospeech.js";
|
|
@@ -17,12 +20,15 @@ export * from "./createaudiotranscriptions.js";
|
|
|
17
20
|
export * from "./createaudiotranscriptionsmultipart.js";
|
|
18
21
|
export * from "./createauthkeyscode.js";
|
|
19
22
|
export * from "./createbatches.js";
|
|
23
|
+
export * from "./createbudgetpolicy.js";
|
|
20
24
|
export * from "./createbyokkey.js";
|
|
21
25
|
export * from "./createembeddings.js";
|
|
22
26
|
export * from "./createexternaluser.js";
|
|
23
27
|
export * from "./createguardrail.js";
|
|
24
28
|
export * from "./createimages.js";
|
|
25
29
|
export * from "./createkeys.js";
|
|
30
|
+
export * from "./createmodelavailabilitypolicy.js";
|
|
31
|
+
export * from "./createmoderationpolicy.js";
|
|
26
32
|
export * from "./createoauthtoken.js";
|
|
27
33
|
export * from "./createobservabilitydestination.js";
|
|
28
34
|
export * from "./createpresetschatcompletions.js";
|
|
@@ -37,13 +43,17 @@ export * from "./createscimsyncjob.js";
|
|
|
37
43
|
export * from "./createsystemone.js";
|
|
38
44
|
export * from "./createvideos.js";
|
|
39
45
|
export * from "./createworkspace.js";
|
|
46
|
+
export * from "./deleteaccountpolicy.js";
|
|
40
47
|
export * from "./deletebatch.js";
|
|
48
|
+
export * from "./deletebudgetpolicy.js";
|
|
41
49
|
export * from "./deletebyokkey.js";
|
|
42
50
|
export * from "./deleteexternaluser.js";
|
|
43
51
|
export * from "./deletefile.js";
|
|
44
52
|
export * from "./deleteguardrail.js";
|
|
45
53
|
export * from "./deleteinternvaultsecret.js";
|
|
46
54
|
export * from "./deletekeys.js";
|
|
55
|
+
export * from "./deletemodelavailabilitypolicy.js";
|
|
56
|
+
export * from "./deletemoderationpolicy.js";
|
|
47
57
|
export * from "./deleteobservabilitydestination.js";
|
|
48
58
|
export * from "./deleteprivateendpoint.js";
|
|
49
59
|
export * from "./deleteprivateprovider.js";
|
|
@@ -57,9 +67,11 @@ export * from "./downloadfilecontent.js";
|
|
|
57
67
|
export * from "./enableprivateendpoint.js";
|
|
58
68
|
export * from "./exchangeauthcodeforapikey.js";
|
|
59
69
|
export * from "./getanalyticsmeta.js";
|
|
70
|
+
export * from "./getapikeypolicyassignment.js";
|
|
60
71
|
export * from "./getapprankings.js";
|
|
61
72
|
export * from "./getbatches.js";
|
|
62
73
|
export * from "./getbenchmarks.js";
|
|
74
|
+
export * from "./getbudgetpolicy.js";
|
|
63
75
|
export * from "./getbyokkey.js";
|
|
64
76
|
export * from "./getcontainerfile.js";
|
|
65
77
|
export * from "./getcredits.js";
|
|
@@ -69,8 +81,11 @@ export * from "./getfilemetadata.js";
|
|
|
69
81
|
export * from "./getgeneration.js";
|
|
70
82
|
export * from "./getguardrail.js";
|
|
71
83
|
export * from "./getkey.js";
|
|
84
|
+
export * from "./getmemberpolicyassignment.js";
|
|
72
85
|
export * from "./getmodel.js";
|
|
86
|
+
export * from "./getmodelavailabilitypolicy.js";
|
|
73
87
|
export * from "./getmodels.js";
|
|
88
|
+
export * from "./getmoderationpolicy.js";
|
|
74
89
|
export * from "./getobservabilitydestination.js";
|
|
75
90
|
export * from "./getorganizationsettings.js";
|
|
76
91
|
export * from "./getpreset.js";
|
|
@@ -88,7 +103,9 @@ export * from "./getvideos.js";
|
|
|
88
103
|
export * from "./getworkspace.js";
|
|
89
104
|
export * from "./getworkspacebudget.js";
|
|
90
105
|
export * from "./list.js";
|
|
106
|
+
export * from "./listaccountpolicies.js";
|
|
91
107
|
export * from "./listbatches.js";
|
|
108
|
+
export * from "./listbudgetpolicies.js";
|
|
92
109
|
export * from "./listbyokkeys.js";
|
|
93
110
|
export * from "./listcontainerfiles.js";
|
|
94
111
|
export * from "./listembeddingsmodels.js";
|
|
@@ -107,8 +124,10 @@ export * from "./listinterneffectivevaultsecrets.js";
|
|
|
107
124
|
export * from "./listinternvaultsecrets.js";
|
|
108
125
|
export * from "./listkeyassignments.js";
|
|
109
126
|
export * from "./listmemberassignments.js";
|
|
127
|
+
export * from "./listmodelavailabilitypolicies.js";
|
|
110
128
|
export * from "./listmodelscount.js";
|
|
111
129
|
export * from "./listmodelsuser.js";
|
|
130
|
+
export * from "./listmoderationpolicies.js";
|
|
112
131
|
export * from "./listoauthjwks.js";
|
|
113
132
|
export * from "./listobservabilitydestinations.js";
|
|
114
133
|
export * from "./listorganizationmembers.js";
|
|
@@ -132,10 +151,14 @@ export * from "./sendchatcompletionrequest.js";
|
|
|
132
151
|
export * from "./storeinternvaultsecret.js";
|
|
133
152
|
export * from "./storevaultsecret.js";
|
|
134
153
|
export * from "./submitgenerationfeedback.js";
|
|
154
|
+
export * from "./updateaccountpolicy.js";
|
|
155
|
+
export * from "./updatebudgetpolicy.js";
|
|
135
156
|
export * from "./updatebyokkey.js";
|
|
136
157
|
export * from "./updateexternaluser.js";
|
|
137
158
|
export * from "./updateguardrail.js";
|
|
138
159
|
export * from "./updatekeys.js";
|
|
160
|
+
export * from "./updatemodelavailabilitypolicy.js";
|
|
161
|
+
export * from "./updatemoderationpolicy.js";
|
|
139
162
|
export * from "./updateobservabilitydestination.js";
|
|
140
163
|
export * from "./updateorganizationsettings.js";
|
|
141
164
|
export * from "./updateprivateendpoint.js";
|
|
@@ -156,12 +156,15 @@ export type ListData = {
|
|
|
156
156
|
/**
|
|
157
157
|
* List of API keys
|
|
158
158
|
*/
|
|
159
|
-
export type
|
|
159
|
+
export type ListResponseBody = {
|
|
160
160
|
/**
|
|
161
161
|
* List of API keys
|
|
162
162
|
*/
|
|
163
163
|
data: Array<ListData>;
|
|
164
164
|
};
|
|
165
|
+
export type ListResponse = {
|
|
166
|
+
result: ListResponseBody;
|
|
167
|
+
};
|
|
165
168
|
/** @internal */
|
|
166
169
|
export type ListRequest$Outbound = {
|
|
167
170
|
"HTTP-Referer"?: string | undefined;
|
|
@@ -179,6 +182,9 @@ export declare function listRequestToJSON(listRequest: ListRequest): string;
|
|
|
179
182
|
export declare const ListData$inboundSchema: z.ZodType<ListData, unknown>;
|
|
180
183
|
export declare function listDataFromJSON(jsonString: string): SafeParseResult<ListData, SDKValidationError>;
|
|
181
184
|
/** @internal */
|
|
185
|
+
export declare const ListResponseBody$inboundSchema: z.ZodType<ListResponseBody, unknown>;
|
|
186
|
+
export declare function listResponseBodyFromJSON(jsonString: string): SafeParseResult<ListResponseBody, SDKValidationError>;
|
|
187
|
+
/** @internal */
|
|
182
188
|
export declare const ListResponse$inboundSchema: z.ZodType<ListResponse, unknown>;
|
|
183
189
|
export declare function listResponseFromJSON(jsonString: string): SafeParseResult<ListResponse, SDKValidationError>;
|
|
184
190
|
//# sourceMappingURL=list.d.ts.map
|
|
@@ -75,9 +75,20 @@ export function listDataFromJSON(jsonString) {
|
|
|
75
75
|
return safeParse(jsonString, (x) => ListData$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListData' from JSON`);
|
|
76
76
|
}
|
|
77
77
|
/** @internal */
|
|
78
|
+
export const ListResponseBody$inboundSchema = z.object({
|
|
79
|
+
data: z.array(z.lazy(() => ListData$inboundSchema)),
|
|
80
|
+
});
|
|
81
|
+
export function listResponseBodyFromJSON(jsonString) {
|
|
82
|
+
return safeParse(jsonString, (x) => ListResponseBody$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListResponseBody' from JSON`);
|
|
83
|
+
}
|
|
84
|
+
/** @internal */
|
|
78
85
|
export const ListResponse$inboundSchema = z
|
|
79
86
|
.object({
|
|
80
|
-
|
|
87
|
+
Result: z.lazy(() => ListResponseBody$inboundSchema),
|
|
88
|
+
}).transform((v) => {
|
|
89
|
+
return remap$(v, {
|
|
90
|
+
"Result": "result",
|
|
91
|
+
});
|
|
81
92
|
});
|
|
82
93
|
export function listResponseFromJSON(jsonString) {
|
|
83
94
|
return safeParse(jsonString, (x) => ListResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListResponse' from JSON`);
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
import * as z from "zod/v4";
|
|
2
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
3
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
4
|
+
import * as models from "../index.js";
|
|
5
|
+
export type ListAccountPoliciesGlobals = {
|
|
6
|
+
/**
|
|
7
|
+
* The app identifier should be your app's URL and is used as the primary identifier for rankings.
|
|
8
|
+
*
|
|
9
|
+
* @remarks
|
|
10
|
+
* This is used to track API usage per application.
|
|
11
|
+
*/
|
|
12
|
+
httpReferer?: string | undefined;
|
|
13
|
+
/**
|
|
14
|
+
* The app display name allows you to customize how your app appears in OpenRouter's dashboard.
|
|
15
|
+
*
|
|
16
|
+
* @remarks
|
|
17
|
+
*/
|
|
18
|
+
appTitle?: string | undefined;
|
|
19
|
+
/**
|
|
20
|
+
* Comma-separated list of app categories (e.g. "cli-agent,cloud-agent"). Used for marketplace rankings.
|
|
21
|
+
*
|
|
22
|
+
* @remarks
|
|
23
|
+
*/
|
|
24
|
+
appCategories?: string | undefined;
|
|
25
|
+
};
|
|
26
|
+
export type ListAccountPoliciesRequest = {
|
|
27
|
+
/**
|
|
28
|
+
* The app identifier should be your app's URL and is used as the primary identifier for rankings.
|
|
29
|
+
*
|
|
30
|
+
* @remarks
|
|
31
|
+
* This is used to track API usage per application.
|
|
32
|
+
*/
|
|
33
|
+
httpReferer?: string | undefined;
|
|
34
|
+
/**
|
|
35
|
+
* The app display name allows you to customize how your app appears in OpenRouter's dashboard.
|
|
36
|
+
*
|
|
37
|
+
* @remarks
|
|
38
|
+
*/
|
|
39
|
+
appTitle?: string | undefined;
|
|
40
|
+
/**
|
|
41
|
+
* Comma-separated list of app categories (e.g. "cli-agent,cloud-agent"). Used for marketplace rankings.
|
|
42
|
+
*
|
|
43
|
+
* @remarks
|
|
44
|
+
*/
|
|
45
|
+
appCategories?: string | undefined;
|
|
46
|
+
/**
|
|
47
|
+
* Number of records to skip for pagination. When both offset and limit are omitted, the full list is returned
|
|
48
|
+
*/
|
|
49
|
+
offset?: number | undefined;
|
|
50
|
+
/**
|
|
51
|
+
* Maximum number of records to return (max 100). When both offset and limit are omitted, the full list is returned
|
|
52
|
+
*/
|
|
53
|
+
limit?: number | undefined;
|
|
54
|
+
};
|
|
55
|
+
export type ListAccountPoliciesResponse = {
|
|
56
|
+
result: models.ListAccountGuardrailPoliciesResponse;
|
|
57
|
+
};
|
|
58
|
+
/** @internal */
|
|
59
|
+
export type ListAccountPoliciesRequest$Outbound = {
|
|
60
|
+
"HTTP-Referer"?: string | undefined;
|
|
61
|
+
appTitle?: string | undefined;
|
|
62
|
+
appCategories?: string | undefined;
|
|
63
|
+
offset?: number | undefined;
|
|
64
|
+
limit?: number | undefined;
|
|
65
|
+
};
|
|
66
|
+
/** @internal */
|
|
67
|
+
export declare const ListAccountPoliciesRequest$outboundSchema: z.ZodType<ListAccountPoliciesRequest$Outbound, ListAccountPoliciesRequest>;
|
|
68
|
+
export declare function listAccountPoliciesRequestToJSON(listAccountPoliciesRequest: ListAccountPoliciesRequest): string;
|
|
69
|
+
/** @internal */
|
|
70
|
+
export declare const ListAccountPoliciesResponse$inboundSchema: z.ZodType<ListAccountPoliciesResponse, unknown>;
|
|
71
|
+
export declare function listAccountPoliciesResponseFromJSON(jsonString: string): SafeParseResult<ListAccountPoliciesResponse, SDKValidationError>;
|
|
72
|
+
//# sourceMappingURL=listaccountpolicies.d.ts.map
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
* @generated-id: 753aeb9db492
|
|
4
|
+
*/
|
|
5
|
+
import * as z from "zod/v4";
|
|
6
|
+
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
8
|
+
import { ListAccountGuardrailPoliciesResponse$inboundSchema as models_ListAccountGuardrailPoliciesResponse$inboundSchema } from "../listaccountguardrailpoliciesresponse.js";
|
|
9
|
+
/** @internal */
|
|
10
|
+
export const ListAccountPoliciesRequest$outboundSchema = z.object({
|
|
11
|
+
httpReferer: z.string().optional(),
|
|
12
|
+
appTitle: z.string().optional(),
|
|
13
|
+
appCategories: z.string().optional(),
|
|
14
|
+
offset: z.int().optional(),
|
|
15
|
+
limit: z.int().optional(),
|
|
16
|
+
}).transform((v) => {
|
|
17
|
+
return remap$(v, {
|
|
18
|
+
httpReferer: "HTTP-Referer",
|
|
19
|
+
});
|
|
20
|
+
});
|
|
21
|
+
export function listAccountPoliciesRequestToJSON(listAccountPoliciesRequest) {
|
|
22
|
+
return JSON.stringify(ListAccountPoliciesRequest$outboundSchema.parse(listAccountPoliciesRequest));
|
|
23
|
+
}
|
|
24
|
+
/** @internal */
|
|
25
|
+
export const ListAccountPoliciesResponse$inboundSchema = z.object({
|
|
26
|
+
Result: models_ListAccountGuardrailPoliciesResponse$inboundSchema,
|
|
27
|
+
}).transform((v) => {
|
|
28
|
+
return remap$(v, {
|
|
29
|
+
"Result": "result",
|
|
30
|
+
});
|
|
31
|
+
});
|
|
32
|
+
export function listAccountPoliciesResponseFromJSON(jsonString) {
|
|
33
|
+
return safeParse(jsonString, (x) => ListAccountPoliciesResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListAccountPoliciesResponse' from JSON`);
|
|
34
|
+
}
|
|
35
|
+
//# sourceMappingURL=listaccountpolicies.js.map
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
import * as z from "zod/v4";
|
|
2
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
3
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
4
|
+
import * as models from "../index.js";
|
|
5
|
+
export type ListBudgetPoliciesGlobals = {
|
|
6
|
+
/**
|
|
7
|
+
* The app identifier should be your app's URL and is used as the primary identifier for rankings.
|
|
8
|
+
*
|
|
9
|
+
* @remarks
|
|
10
|
+
* This is used to track API usage per application.
|
|
11
|
+
*/
|
|
12
|
+
httpReferer?: string | undefined;
|
|
13
|
+
/**
|
|
14
|
+
* The app display name allows you to customize how your app appears in OpenRouter's dashboard.
|
|
15
|
+
*
|
|
16
|
+
* @remarks
|
|
17
|
+
*/
|
|
18
|
+
appTitle?: string | undefined;
|
|
19
|
+
/**
|
|
20
|
+
* Comma-separated list of app categories (e.g. "cli-agent,cloud-agent"). Used for marketplace rankings.
|
|
21
|
+
*
|
|
22
|
+
* @remarks
|
|
23
|
+
*/
|
|
24
|
+
appCategories?: string | undefined;
|
|
25
|
+
};
|
|
26
|
+
export type ListBudgetPoliciesRequest = {
|
|
27
|
+
/**
|
|
28
|
+
* The app identifier should be your app's URL and is used as the primary identifier for rankings.
|
|
29
|
+
*
|
|
30
|
+
* @remarks
|
|
31
|
+
* This is used to track API usage per application.
|
|
32
|
+
*/
|
|
33
|
+
httpReferer?: string | undefined;
|
|
34
|
+
/**
|
|
35
|
+
* The app display name allows you to customize how your app appears in OpenRouter's dashboard.
|
|
36
|
+
*
|
|
37
|
+
* @remarks
|
|
38
|
+
*/
|
|
39
|
+
appTitle?: string | undefined;
|
|
40
|
+
/**
|
|
41
|
+
* Comma-separated list of app categories (e.g. "cli-agent,cloud-agent"). Used for marketplace rankings.
|
|
42
|
+
*
|
|
43
|
+
* @remarks
|
|
44
|
+
*/
|
|
45
|
+
appCategories?: string | undefined;
|
|
46
|
+
/**
|
|
47
|
+
* Number of records to skip for pagination. When both offset and limit are omitted, the full list is returned
|
|
48
|
+
*/
|
|
49
|
+
offset?: number | undefined;
|
|
50
|
+
/**
|
|
51
|
+
* Maximum number of records to return (max 100). When both offset and limit are omitted, the full list is returned
|
|
52
|
+
*/
|
|
53
|
+
limit?: number | undefined;
|
|
54
|
+
/**
|
|
55
|
+
* Workspace the policy belongs to
|
|
56
|
+
*/
|
|
57
|
+
workspaceId: string;
|
|
58
|
+
};
|
|
59
|
+
export type ListBudgetPoliciesResponse = {
|
|
60
|
+
result: models.ListBudgetGuardrailPoliciesResponse;
|
|
61
|
+
};
|
|
62
|
+
/** @internal */
|
|
63
|
+
export type ListBudgetPoliciesRequest$Outbound = {
|
|
64
|
+
"HTTP-Referer"?: string | undefined;
|
|
65
|
+
appTitle?: string | undefined;
|
|
66
|
+
appCategories?: string | undefined;
|
|
67
|
+
offset?: number | undefined;
|
|
68
|
+
limit?: number | undefined;
|
|
69
|
+
workspace_id: string;
|
|
70
|
+
};
|
|
71
|
+
/** @internal */
|
|
72
|
+
export declare const ListBudgetPoliciesRequest$outboundSchema: z.ZodType<ListBudgetPoliciesRequest$Outbound, ListBudgetPoliciesRequest>;
|
|
73
|
+
export declare function listBudgetPoliciesRequestToJSON(listBudgetPoliciesRequest: ListBudgetPoliciesRequest): string;
|
|
74
|
+
/** @internal */
|
|
75
|
+
export declare const ListBudgetPoliciesResponse$inboundSchema: z.ZodType<ListBudgetPoliciesResponse, unknown>;
|
|
76
|
+
export declare function listBudgetPoliciesResponseFromJSON(jsonString: string): SafeParseResult<ListBudgetPoliciesResponse, SDKValidationError>;
|
|
77
|
+
//# sourceMappingURL=listbudgetpolicies.d.ts.map
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
* @generated-id: 74571f5ec5f0
|
|
4
|
+
*/
|
|
5
|
+
import * as z from "zod/v4";
|
|
6
|
+
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
8
|
+
import { ListBudgetGuardrailPoliciesResponse$inboundSchema as models_ListBudgetGuardrailPoliciesResponse$inboundSchema } from "../listbudgetguardrailpoliciesresponse.js";
|
|
9
|
+
/** @internal */
|
|
10
|
+
export const ListBudgetPoliciesRequest$outboundSchema = z.object({
|
|
11
|
+
httpReferer: z.string().optional(),
|
|
12
|
+
appTitle: z.string().optional(),
|
|
13
|
+
appCategories: z.string().optional(),
|
|
14
|
+
offset: z.int().optional(),
|
|
15
|
+
limit: z.int().optional(),
|
|
16
|
+
workspaceId: z.string(),
|
|
17
|
+
}).transform((v) => {
|
|
18
|
+
return remap$(v, {
|
|
19
|
+
httpReferer: "HTTP-Referer",
|
|
20
|
+
workspaceId: "workspace_id",
|
|
21
|
+
});
|
|
22
|
+
});
|
|
23
|
+
export function listBudgetPoliciesRequestToJSON(listBudgetPoliciesRequest) {
|
|
24
|
+
return JSON.stringify(ListBudgetPoliciesRequest$outboundSchema.parse(listBudgetPoliciesRequest));
|
|
25
|
+
}
|
|
26
|
+
/** @internal */
|
|
27
|
+
export const ListBudgetPoliciesResponse$inboundSchema = z.object({
|
|
28
|
+
Result: models_ListBudgetGuardrailPoliciesResponse$inboundSchema,
|
|
29
|
+
}).transform((v) => {
|
|
30
|
+
return remap$(v, {
|
|
31
|
+
"Result": "result",
|
|
32
|
+
});
|
|
33
|
+
});
|
|
34
|
+
export function listBudgetPoliciesResponseFromJSON(jsonString) {
|
|
35
|
+
return safeParse(jsonString, (x) => ListBudgetPoliciesResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListBudgetPoliciesResponse' from JSON`);
|
|
36
|
+
}
|
|
37
|
+
//# sourceMappingURL=listbudgetpolicies.js.map
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
import * as z from "zod/v4";
|
|
2
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
3
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
4
|
+
import * as models from "../index.js";
|
|
5
|
+
export type ListModelAvailabilityPoliciesGlobals = {
|
|
6
|
+
/**
|
|
7
|
+
* The app identifier should be your app's URL and is used as the primary identifier for rankings.
|
|
8
|
+
*
|
|
9
|
+
* @remarks
|
|
10
|
+
* This is used to track API usage per application.
|
|
11
|
+
*/
|
|
12
|
+
httpReferer?: string | undefined;
|
|
13
|
+
/**
|
|
14
|
+
* The app display name allows you to customize how your app appears in OpenRouter's dashboard.
|
|
15
|
+
*
|
|
16
|
+
* @remarks
|
|
17
|
+
*/
|
|
18
|
+
appTitle?: string | undefined;
|
|
19
|
+
/**
|
|
20
|
+
* Comma-separated list of app categories (e.g. "cli-agent,cloud-agent"). Used for marketplace rankings.
|
|
21
|
+
*
|
|
22
|
+
* @remarks
|
|
23
|
+
*/
|
|
24
|
+
appCategories?: string | undefined;
|
|
25
|
+
};
|
|
26
|
+
export type ListModelAvailabilityPoliciesRequest = {
|
|
27
|
+
/**
|
|
28
|
+
* The app identifier should be your app's URL and is used as the primary identifier for rankings.
|
|
29
|
+
*
|
|
30
|
+
* @remarks
|
|
31
|
+
* This is used to track API usage per application.
|
|
32
|
+
*/
|
|
33
|
+
httpReferer?: string | undefined;
|
|
34
|
+
/**
|
|
35
|
+
* The app display name allows you to customize how your app appears in OpenRouter's dashboard.
|
|
36
|
+
*
|
|
37
|
+
* @remarks
|
|
38
|
+
*/
|
|
39
|
+
appTitle?: string | undefined;
|
|
40
|
+
/**
|
|
41
|
+
* Comma-separated list of app categories (e.g. "cli-agent,cloud-agent"). Used for marketplace rankings.
|
|
42
|
+
*
|
|
43
|
+
* @remarks
|
|
44
|
+
*/
|
|
45
|
+
appCategories?: string | undefined;
|
|
46
|
+
/**
|
|
47
|
+
* Number of records to skip for pagination. When both offset and limit are omitted, the full list is returned
|
|
48
|
+
*/
|
|
49
|
+
offset?: number | undefined;
|
|
50
|
+
/**
|
|
51
|
+
* Maximum number of records to return (max 100). When both offset and limit are omitted, the full list is returned
|
|
52
|
+
*/
|
|
53
|
+
limit?: number | undefined;
|
|
54
|
+
/**
|
|
55
|
+
* Workspace the policy belongs to
|
|
56
|
+
*/
|
|
57
|
+
workspaceId: string;
|
|
58
|
+
};
|
|
59
|
+
export type ListModelAvailabilityPoliciesResponse = {
|
|
60
|
+
result: models.ListModelAvailabilityGuardrailPoliciesResponse;
|
|
61
|
+
};
|
|
62
|
+
/** @internal */
|
|
63
|
+
export type ListModelAvailabilityPoliciesRequest$Outbound = {
|
|
64
|
+
"HTTP-Referer"?: string | undefined;
|
|
65
|
+
appTitle?: string | undefined;
|
|
66
|
+
appCategories?: string | undefined;
|
|
67
|
+
offset?: number | undefined;
|
|
68
|
+
limit?: number | undefined;
|
|
69
|
+
workspace_id: string;
|
|
70
|
+
};
|
|
71
|
+
/** @internal */
|
|
72
|
+
export declare const ListModelAvailabilityPoliciesRequest$outboundSchema: z.ZodType<ListModelAvailabilityPoliciesRequest$Outbound, ListModelAvailabilityPoliciesRequest>;
|
|
73
|
+
export declare function listModelAvailabilityPoliciesRequestToJSON(listModelAvailabilityPoliciesRequest: ListModelAvailabilityPoliciesRequest): string;
|
|
74
|
+
/** @internal */
|
|
75
|
+
export declare const ListModelAvailabilityPoliciesResponse$inboundSchema: z.ZodType<ListModelAvailabilityPoliciesResponse, unknown>;
|
|
76
|
+
export declare function listModelAvailabilityPoliciesResponseFromJSON(jsonString: string): SafeParseResult<ListModelAvailabilityPoliciesResponse, SDKValidationError>;
|
|
77
|
+
//# sourceMappingURL=listmodelavailabilitypolicies.d.ts.map
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
* @generated-id: add1d382c055
|
|
4
|
+
*/
|
|
5
|
+
import * as z from "zod/v4";
|
|
6
|
+
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
8
|
+
import { ListModelAvailabilityGuardrailPoliciesResponse$inboundSchema as models_ListModelAvailabilityGuardrailPoliciesResponse$inboundSchema } from "../listmodelavailabilityguardrailpoliciesresponse.js";
|
|
9
|
+
/** @internal */
|
|
10
|
+
export const ListModelAvailabilityPoliciesRequest$outboundSchema = z.object({
|
|
11
|
+
httpReferer: z.string().optional(),
|
|
12
|
+
appTitle: z.string().optional(),
|
|
13
|
+
appCategories: z.string().optional(),
|
|
14
|
+
offset: z.int().optional(),
|
|
15
|
+
limit: z.int().optional(),
|
|
16
|
+
workspaceId: z.string(),
|
|
17
|
+
}).transform((v) => {
|
|
18
|
+
return remap$(v, {
|
|
19
|
+
httpReferer: "HTTP-Referer",
|
|
20
|
+
workspaceId: "workspace_id",
|
|
21
|
+
});
|
|
22
|
+
});
|
|
23
|
+
export function listModelAvailabilityPoliciesRequestToJSON(listModelAvailabilityPoliciesRequest) {
|
|
24
|
+
return JSON.stringify(ListModelAvailabilityPoliciesRequest$outboundSchema.parse(listModelAvailabilityPoliciesRequest));
|
|
25
|
+
}
|
|
26
|
+
/** @internal */
|
|
27
|
+
export const ListModelAvailabilityPoliciesResponse$inboundSchema = z.object({
|
|
28
|
+
Result: models_ListModelAvailabilityGuardrailPoliciesResponse$inboundSchema,
|
|
29
|
+
}).transform((v) => {
|
|
30
|
+
return remap$(v, {
|
|
31
|
+
"Result": "result",
|
|
32
|
+
});
|
|
33
|
+
});
|
|
34
|
+
export function listModelAvailabilityPoliciesResponseFromJSON(jsonString) {
|
|
35
|
+
return safeParse(jsonString, (x) => ListModelAvailabilityPoliciesResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListModelAvailabilityPoliciesResponse' from JSON`);
|
|
36
|
+
}
|
|
37
|
+
//# sourceMappingURL=listmodelavailabilitypolicies.js.map
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
import * as z from "zod/v4";
|
|
2
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
3
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
4
|
+
import * as models from "../index.js";
|
|
5
|
+
export type ListModerationPoliciesGlobals = {
|
|
6
|
+
/**
|
|
7
|
+
* The app identifier should be your app's URL and is used as the primary identifier for rankings.
|
|
8
|
+
*
|
|
9
|
+
* @remarks
|
|
10
|
+
* This is used to track API usage per application.
|
|
11
|
+
*/
|
|
12
|
+
httpReferer?: string | undefined;
|
|
13
|
+
/**
|
|
14
|
+
* The app display name allows you to customize how your app appears in OpenRouter's dashboard.
|
|
15
|
+
*
|
|
16
|
+
* @remarks
|
|
17
|
+
*/
|
|
18
|
+
appTitle?: string | undefined;
|
|
19
|
+
/**
|
|
20
|
+
* Comma-separated list of app categories (e.g. "cli-agent,cloud-agent"). Used for marketplace rankings.
|
|
21
|
+
*
|
|
22
|
+
* @remarks
|
|
23
|
+
*/
|
|
24
|
+
appCategories?: string | undefined;
|
|
25
|
+
};
|
|
26
|
+
export type ListModerationPoliciesRequest = {
|
|
27
|
+
/**
|
|
28
|
+
* The app identifier should be your app's URL and is used as the primary identifier for rankings.
|
|
29
|
+
*
|
|
30
|
+
* @remarks
|
|
31
|
+
* This is used to track API usage per application.
|
|
32
|
+
*/
|
|
33
|
+
httpReferer?: string | undefined;
|
|
34
|
+
/**
|
|
35
|
+
* The app display name allows you to customize how your app appears in OpenRouter's dashboard.
|
|
36
|
+
*
|
|
37
|
+
* @remarks
|
|
38
|
+
*/
|
|
39
|
+
appTitle?: string | undefined;
|
|
40
|
+
/**
|
|
41
|
+
* Comma-separated list of app categories (e.g. "cli-agent,cloud-agent"). Used for marketplace rankings.
|
|
42
|
+
*
|
|
43
|
+
* @remarks
|
|
44
|
+
*/
|
|
45
|
+
appCategories?: string | undefined;
|
|
46
|
+
/**
|
|
47
|
+
* Number of records to skip for pagination. When both offset and limit are omitted, the full list is returned
|
|
48
|
+
*/
|
|
49
|
+
offset?: number | undefined;
|
|
50
|
+
/**
|
|
51
|
+
* Maximum number of records to return (max 100). When both offset and limit are omitted, the full list is returned
|
|
52
|
+
*/
|
|
53
|
+
limit?: number | undefined;
|
|
54
|
+
/**
|
|
55
|
+
* Workspace the policy belongs to
|
|
56
|
+
*/
|
|
57
|
+
workspaceId: string;
|
|
58
|
+
};
|
|
59
|
+
export type ListModerationPoliciesResponse = {
|
|
60
|
+
result: models.ListModerationGuardrailPoliciesResponse;
|
|
61
|
+
};
|
|
62
|
+
/** @internal */
|
|
63
|
+
export type ListModerationPoliciesRequest$Outbound = {
|
|
64
|
+
"HTTP-Referer"?: string | undefined;
|
|
65
|
+
appTitle?: string | undefined;
|
|
66
|
+
appCategories?: string | undefined;
|
|
67
|
+
offset?: number | undefined;
|
|
68
|
+
limit?: number | undefined;
|
|
69
|
+
workspace_id: string;
|
|
70
|
+
};
|
|
71
|
+
/** @internal */
|
|
72
|
+
export declare const ListModerationPoliciesRequest$outboundSchema: z.ZodType<ListModerationPoliciesRequest$Outbound, ListModerationPoliciesRequest>;
|
|
73
|
+
export declare function listModerationPoliciesRequestToJSON(listModerationPoliciesRequest: ListModerationPoliciesRequest): string;
|
|
74
|
+
/** @internal */
|
|
75
|
+
export declare const ListModerationPoliciesResponse$inboundSchema: z.ZodType<ListModerationPoliciesResponse, unknown>;
|
|
76
|
+
export declare function listModerationPoliciesResponseFromJSON(jsonString: string): SafeParseResult<ListModerationPoliciesResponse, SDKValidationError>;
|
|
77
|
+
//# sourceMappingURL=listmoderationpolicies.d.ts.map
|