@barndoor-ai/sdk 1.3.0 → 2.0.0-dev.g37b8897

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (1188) hide show
  1. package/README.md +98 -254
  2. package/dist/apis/DlpApi.d.ts +666 -0
  3. package/dist/apis/DlpApi.js +1983 -0
  4. package/dist/apis/IdentityApi.d.ts +168 -0
  5. package/dist/apis/IdentityApi.js +545 -0
  6. package/dist/apis/LlmGatewayApi.d.ts +1250 -0
  7. package/dist/apis/LlmGatewayApi.js +3724 -0
  8. package/dist/apis/NotificationApi.d.ts +145 -0
  9. package/dist/apis/NotificationApi.js +442 -0
  10. package/dist/apis/PolicyApi.d.ts +510 -0
  11. package/dist/apis/PolicyApi.js +1213 -0
  12. package/dist/apis/RegistryApi.d.ts +594 -0
  13. package/dist/apis/RegistryApi.js +1387 -0
  14. package/dist/apis/SystemManagementApi.d.ts +265 -0
  15. package/dist/apis/SystemManagementApi.js +661 -0
  16. package/dist/apis/index.d.ts +7 -0
  17. package/dist/apis/index.js +25 -0
  18. package/dist/esm/apis/DlpApi.d.ts +666 -0
  19. package/dist/esm/apis/DlpApi.js +1946 -0
  20. package/dist/esm/apis/IdentityApi.d.ts +168 -0
  21. package/dist/esm/apis/IdentityApi.js +508 -0
  22. package/dist/esm/apis/LlmGatewayApi.d.ts +1250 -0
  23. package/dist/esm/apis/LlmGatewayApi.js +3687 -0
  24. package/dist/esm/apis/NotificationApi.d.ts +145 -0
  25. package/dist/esm/apis/NotificationApi.js +405 -0
  26. package/dist/esm/apis/PolicyApi.d.ts +510 -0
  27. package/dist/esm/apis/PolicyApi.js +1176 -0
  28. package/dist/esm/apis/RegistryApi.d.ts +594 -0
  29. package/dist/esm/apis/RegistryApi.js +1350 -0
  30. package/dist/esm/apis/SystemManagementApi.d.ts +265 -0
  31. package/dist/esm/apis/SystemManagementApi.js +624 -0
  32. package/dist/esm/apis/index.d.ts +7 -0
  33. package/dist/esm/apis/index.js +9 -0
  34. package/dist/esm/index.d.ts +4 -0
  35. package/dist/esm/index.js +6 -0
  36. package/dist/esm/lib/auth.d.ts +95 -0
  37. package/dist/esm/lib/auth.js +175 -0
  38. package/dist/esm/lib/cli.d.ts +44 -0
  39. package/dist/esm/lib/cli.js +89 -0
  40. package/dist/esm/lib/client.d.ts +51 -0
  41. package/dist/esm/lib/client.js +45 -0
  42. package/dist/esm/lib/config.d.ts +14 -0
  43. package/dist/esm/lib/config.js +62 -0
  44. package/dist/esm/lib/http.d.ts +23 -0
  45. package/dist/esm/lib/http.js +80 -0
  46. package/dist/esm/lib/index.d.ts +15 -0
  47. package/dist/esm/lib/index.js +15 -0
  48. package/dist/esm/lib/mcp.d.ts +41 -0
  49. package/dist/esm/lib/mcp.js +78 -0
  50. package/dist/esm/models/AWSTrustInfoResponse.d.ts +34 -0
  51. package/dist/esm/models/AWSTrustInfoResponse.js +47 -0
  52. package/dist/esm/models/AddRouteGroupMembersRequest.d.ts +36 -0
  53. package/dist/esm/models/AddRouteGroupMembersRequest.js +45 -0
  54. package/dist/esm/models/AdminModelPricing.d.ts +133 -0
  55. package/dist/esm/models/AdminModelPricing.js +101 -0
  56. package/dist/esm/models/AffectedPoliciesResponse.d.ts +48 -0
  57. package/dist/esm/models/AffectedPoliciesResponse.js +52 -0
  58. package/dist/esm/models/AffectedPolicyPreview.d.ts +49 -0
  59. package/dist/esm/models/AffectedPolicyPreview.js +57 -0
  60. package/dist/esm/models/AgentPolicyCounts.d.ts +36 -0
  61. package/dist/esm/models/AgentPolicyCounts.js +43 -0
  62. package/dist/esm/models/AgentRuntimeCapabilities.d.ts +85 -0
  63. package/dist/esm/models/AgentRuntimeCapabilities.js +67 -0
  64. package/dist/esm/models/AgentRuntimeProfile.d.ts +77 -0
  65. package/dist/esm/models/AgentRuntimeProfile.js +89 -0
  66. package/dist/esm/models/AgentType.d.ts +25 -0
  67. package/dist/esm/models/AgentType.js +43 -0
  68. package/dist/esm/models/AlertType.d.ts +44 -0
  69. package/dist/esm/models/AlertType.js +62 -0
  70. package/dist/esm/models/AlertTypeOption.d.ts +42 -0
  71. package/dist/esm/models/AlertTypeOption.js +55 -0
  72. package/dist/esm/models/AllowListEntryResponse.d.ts +58 -0
  73. package/dist/esm/models/AllowListEntryResponse.js +71 -0
  74. package/dist/esm/models/ApiKey.d.ts +89 -0
  75. package/dist/esm/models/ApiKey.js +85 -0
  76. package/dist/esm/models/ApiKeyDisabledResponse.d.ts +30 -0
  77. package/dist/esm/models/ApiKeyDisabledResponse.js +43 -0
  78. package/dist/esm/models/ApiKeyKind.d.ts +36 -0
  79. package/dist/esm/models/ApiKeyKind.js +54 -0
  80. package/dist/esm/models/AppType.d.ts +30 -0
  81. package/dist/esm/models/AppType.js +48 -0
  82. package/dist/esm/models/Application.d.ts +58 -0
  83. package/dist/esm/models/Application.js +72 -0
  84. package/dist/esm/models/ApplicationCounts.d.ts +38 -0
  85. package/dist/esm/models/ApplicationCounts.js +51 -0
  86. package/dist/esm/models/ApplicationDirectoryBase.d.ts +87 -0
  87. package/dist/esm/models/ApplicationDirectoryBase.js +101 -0
  88. package/dist/esm/models/ApplicationDirectoryResponse.d.ts +92 -0
  89. package/dist/esm/models/ApplicationDirectoryResponse.js +106 -0
  90. package/dist/esm/models/ApplicationLlmGatewayPayload.d.ts +30 -0
  91. package/dist/esm/models/ApplicationLlmGatewayPayload.js +43 -0
  92. package/dist/esm/models/ApplicationPayload.d.ts +38 -0
  93. package/dist/esm/models/ApplicationPayload.js +47 -0
  94. package/dist/esm/models/ApplicationResponse.d.ts +68 -0
  95. package/dist/esm/models/ApplicationResponse.js +81 -0
  96. package/dist/esm/models/ApplicationWriteConfirmationsPayload.d.ts +30 -0
  97. package/dist/esm/models/ApplicationWriteConfirmationsPayload.js +43 -0
  98. package/dist/esm/models/ArchivePricingResponse.d.ts +45 -0
  99. package/dist/esm/models/ArchivePricingResponse.js +55 -0
  100. package/dist/esm/models/AttentionTier.d.ts +34 -0
  101. package/dist/esm/models/AttentionTier.js +52 -0
  102. package/dist/esm/models/AutoDisabledReason.d.ts +27 -0
  103. package/dist/esm/models/AutoDisabledReason.js +45 -0
  104. package/dist/esm/models/AwsBedrockGuardrailsConnectionResponse.d.ts +66 -0
  105. package/dist/esm/models/AwsBedrockGuardrailsConnectionResponse.js +71 -0
  106. package/dist/esm/models/AwsComprehendPiiConnectionResponse.d.ts +62 -0
  107. package/dist/esm/models/AwsComprehendPiiConnectionResponse.js +67 -0
  108. package/dist/esm/models/AwsRoleConfigResponse.d.ts +34 -0
  109. package/dist/esm/models/AwsRoleConfigResponse.js +45 -0
  110. package/dist/esm/models/AwsRoleValidationResponse.d.ts +31 -0
  111. package/dist/esm/models/AwsRoleValidationResponse.js +43 -0
  112. package/dist/esm/models/AzureAiLanguagePiiConnectionResponse.d.ts +46 -0
  113. package/dist/esm/models/AzureAiLanguagePiiConnectionResponse.js +59 -0
  114. package/dist/esm/models/AzureContentSafetyConnectionResponse.d.ts +46 -0
  115. package/dist/esm/models/AzureContentSafetyConnectionResponse.js +59 -0
  116. package/dist/esm/models/BillingMode.d.ts +36 -0
  117. package/dist/esm/models/BillingMode.js +54 -0
  118. package/dist/esm/models/BillingReason.d.ts +42 -0
  119. package/dist/esm/models/BillingReason.js +60 -0
  120. package/dist/esm/models/BudgetAction.d.ts +26 -0
  121. package/dist/esm/models/BudgetAction.js +44 -0
  122. package/dist/esm/models/BudgetLimitKind.d.ts +25 -0
  123. package/dist/esm/models/BudgetLimitKind.js +43 -0
  124. package/dist/esm/models/BudgetPeriod.d.ts +33 -0
  125. package/dist/esm/models/BudgetPeriod.js +51 -0
  126. package/dist/esm/models/BudgetTargetKind.d.ts +28 -0
  127. package/dist/esm/models/BudgetTargetKind.js +46 -0
  128. package/dist/esm/models/BudgetTargetStatus.d.ts +58 -0
  129. package/dist/esm/models/BudgetTargetStatus.js +69 -0
  130. package/dist/esm/models/ChangeAttribution.d.ts +73 -0
  131. package/dist/esm/models/ChangeAttribution.js +56 -0
  132. package/dist/esm/models/ChannelListResponse.d.ts +32 -0
  133. package/dist/esm/models/ChannelListResponse.js +44 -0
  134. package/dist/esm/models/ChannelOptionsResponse.d.ts +43 -0
  135. package/dist/esm/models/ChannelOptionsResponse.js +53 -0
  136. package/dist/esm/models/ChannelResponse.d.ts +87 -0
  137. package/dist/esm/models/ChannelResponse.js +92 -0
  138. package/dist/esm/models/ChannelSubscription.d.ts +31 -0
  139. package/dist/esm/models/ChannelSubscription.js +44 -0
  140. package/dist/esm/models/ChannelSubscriptionInput.d.ts +38 -0
  141. package/dist/esm/models/ChannelSubscriptionInput.js +44 -0
  142. package/dist/esm/models/ChannelTestResponse.d.ts +37 -0
  143. package/dist/esm/models/ChannelTestResponse.js +45 -0
  144. package/dist/esm/models/ChannelType.d.ts +49 -0
  145. package/dist/esm/models/ChannelType.js +67 -0
  146. package/dist/esm/models/ChannelUpsertRequest.d.ts +86 -0
  147. package/dist/esm/models/ChannelUpsertRequest.js +61 -0
  148. package/dist/esm/models/ConditionOfInput.d.ts +31 -0
  149. package/dist/esm/models/ConditionOfInput.js +44 -0
  150. package/dist/esm/models/ConditionOfOutput.d.ts +31 -0
  151. package/dist/esm/models/ConditionOfOutput.js +44 -0
  152. package/dist/esm/models/ConfigureDestinationRequest.d.ts +78 -0
  153. package/dist/esm/models/ConfigureDestinationRequest.js +65 -0
  154. package/dist/esm/models/Connection.d.ts +126 -0
  155. package/dist/esm/models/Connection.js +102 -0
  156. package/dist/esm/models/ConnectionInitiateResponse.d.ts +42 -0
  157. package/dist/esm/models/ConnectionInitiateResponse.js +53 -0
  158. package/dist/esm/models/ConnectionRead.d.ts +58 -0
  159. package/dist/esm/models/ConnectionRead.js +64 -0
  160. package/dist/esm/models/ConnectionStatus.d.ts +26 -0
  161. package/dist/esm/models/ConnectionStatus.js +31 -0
  162. package/dist/esm/models/CreateAllowListEntryRequest.d.ts +42 -0
  163. package/dist/esm/models/CreateAllowListEntryRequest.js +51 -0
  164. package/dist/esm/models/CreateApiKeyRequest.d.ts +51 -0
  165. package/dist/esm/models/CreateApiKeyRequest.js +54 -0
  166. package/dist/esm/models/CreateApiKeyResponse.d.ts +58 -0
  167. package/dist/esm/models/CreateApiKeyResponse.js +68 -0
  168. package/dist/esm/models/CreateBudgetRequest.d.ts +110 -0
  169. package/dist/esm/models/CreateBudgetRequest.js +81 -0
  170. package/dist/esm/models/CreateConnectionRequest.d.ts +61 -0
  171. package/dist/esm/models/CreateConnectionRequest.js +61 -0
  172. package/dist/esm/models/CreateCustomDetectionTypeRequest.d.ts +47 -0
  173. package/dist/esm/models/CreateCustomDetectionTypeRequest.js +54 -0
  174. package/dist/esm/models/CreateDetectionEngineRequest.d.ts +46 -0
  175. package/dist/esm/models/CreateDetectionEngineRequest.js +53 -0
  176. package/dist/esm/models/CreateEnforcementPolicyRequest.d.ts +77 -0
  177. package/dist/esm/models/CreateEnforcementPolicyRequest.js +70 -0
  178. package/dist/esm/models/CreateModelAccessRequest.d.ts +60 -0
  179. package/dist/esm/models/CreateModelAccessRequest.js +64 -0
  180. package/dist/esm/models/CreateModelMappingRequest.d.ts +103 -0
  181. package/dist/esm/models/CreateModelMappingRequest.js +70 -0
  182. package/dist/esm/models/CreatePolicy.d.ts +60 -0
  183. package/dist/esm/models/CreatePolicy.js +61 -0
  184. package/dist/esm/models/CreatePricingRequest.d.ts +88 -0
  185. package/dist/esm/models/CreatePricingRequest.js +72 -0
  186. package/dist/esm/models/CreateProfileRequest.d.ts +49 -0
  187. package/dist/esm/models/CreateProfileRequest.js +58 -0
  188. package/dist/esm/models/CreateProviderRequest.d.ts +124 -0
  189. package/dist/esm/models/CreateProviderRequest.js +84 -0
  190. package/dist/esm/models/CreateRateLimitRequest.d.ts +95 -0
  191. package/dist/esm/models/CreateRateLimitRequest.js +69 -0
  192. package/dist/esm/models/CreateRouteGroupRequest.d.ts +46 -0
  193. package/dist/esm/models/CreateRouteGroupRequest.js +49 -0
  194. package/dist/esm/models/CredentialsPayload.d.ts +52 -0
  195. package/dist/esm/models/CredentialsPayload.js +51 -0
  196. package/dist/esm/models/CustomDetectionPatternRequest.d.ts +34 -0
  197. package/dist/esm/models/CustomDetectionPatternRequest.js +47 -0
  198. package/dist/esm/models/CustomDetectionPatternResponse.d.ts +34 -0
  199. package/dist/esm/models/CustomDetectionPatternResponse.js +47 -0
  200. package/dist/esm/models/CustomDetectionTypeResponse.d.ts +71 -0
  201. package/dist/esm/models/CustomDetectionTypeResponse.js +84 -0
  202. package/dist/esm/models/CustomDetectionTypesResponse.d.ts +31 -0
  203. package/dist/esm/models/CustomDetectionTypesResponse.js +44 -0
  204. package/dist/esm/models/DefaultModelAccess.d.ts +35 -0
  205. package/dist/esm/models/DefaultModelAccess.js +53 -0
  206. package/dist/esm/models/DefaultPricingEntry.d.ts +81 -0
  207. package/dist/esm/models/DefaultPricingEntry.js +78 -0
  208. package/dist/esm/models/DeletedResponse.d.ts +35 -0
  209. package/dist/esm/models/DeletedResponse.js +43 -0
  210. package/dist/esm/models/DestinationResponse.d.ts +48 -0
  211. package/dist/esm/models/DestinationResponse.js +61 -0
  212. package/dist/esm/models/DetectionEngineCapabilitiesResponse.d.ts +62 -0
  213. package/dist/esm/models/DetectionEngineCapabilitiesResponse.js +75 -0
  214. package/dist/esm/models/DetectionEngineResponse.d.ts +93 -0
  215. package/dist/esm/models/DetectionEngineResponse.js +99 -0
  216. package/dist/esm/models/DetectionTypeInfoResponse.d.ts +59 -0
  217. package/dist/esm/models/DetectionTypeInfoResponse.js +71 -0
  218. package/dist/esm/models/DetectionTypesResponse.d.ts +31 -0
  219. package/dist/esm/models/DetectionTypesResponse.js +44 -0
  220. package/dist/esm/models/DlpAwsTrustInfoResponse.d.ts +34 -0
  221. package/dist/esm/models/DlpAwsTrustInfoResponse.js +47 -0
  222. package/dist/esm/models/DlpErrorResponse.d.ts +41 -0
  223. package/dist/esm/models/DlpErrorResponse.js +43 -0
  224. package/dist/esm/models/EffectivePricing.d.ts +89 -0
  225. package/dist/esm/models/EffectivePricing.js +56 -0
  226. package/dist/esm/models/EnforcementPoliciesResponse.d.ts +31 -0
  227. package/dist/esm/models/EnforcementPoliciesResponse.js +44 -0
  228. package/dist/esm/models/EnforcementPolicyMcpTargetRequest.d.ts +34 -0
  229. package/dist/esm/models/EnforcementPolicyMcpTargetRequest.js +47 -0
  230. package/dist/esm/models/EnforcementPolicyMcpTargetResponse.d.ts +38 -0
  231. package/dist/esm/models/EnforcementPolicyMcpTargetResponse.js +51 -0
  232. package/dist/esm/models/EnforcementPolicyPrincipalRequest.d.ts +34 -0
  233. package/dist/esm/models/EnforcementPolicyPrincipalRequest.js +47 -0
  234. package/dist/esm/models/EnforcementPolicyPrincipalResponse.d.ts +38 -0
  235. package/dist/esm/models/EnforcementPolicyPrincipalResponse.js +51 -0
  236. package/dist/esm/models/EnforcementPolicyResponse.d.ts +101 -0
  237. package/dist/esm/models/EnforcementPolicyResponse.js +110 -0
  238. package/dist/esm/models/ErrorDetail.d.ts +38 -0
  239. package/dist/esm/models/ErrorDetail.js +45 -0
  240. package/dist/esm/models/ErrorModel.d.ts +51 -0
  241. package/dist/esm/models/ErrorModel.js +52 -0
  242. package/dist/esm/models/ExportDestination.d.ts +74 -0
  243. package/dist/esm/models/ExportDestination.js +63 -0
  244. package/dist/esm/models/ExportHealthCheck.d.ts +42 -0
  245. package/dist/esm/models/ExportHealthCheck.js +48 -0
  246. package/dist/esm/models/ExportResponse.d.ts +69 -0
  247. package/dist/esm/models/ExportResponse.js +83 -0
  248. package/dist/esm/models/ExportRuntimeStatus.d.ts +47 -0
  249. package/dist/esm/models/ExportRuntimeStatus.js +51 -0
  250. package/dist/esm/models/ExportSettings.d.ts +50 -0
  251. package/dist/esm/models/ExportSettings.js +61 -0
  252. package/dist/esm/models/ExportsResponse.d.ts +31 -0
  253. package/dist/esm/models/ExportsResponse.js +44 -0
  254. package/dist/esm/models/Expression.d.ts +30 -0
  255. package/dist/esm/models/Expression.js +43 -0
  256. package/dist/esm/models/FieldControlPoliciesResponse.d.ts +31 -0
  257. package/dist/esm/models/FieldControlPoliciesResponse.js +44 -0
  258. package/dist/esm/models/FieldControlPolicyResponse.d.ts +70 -0
  259. package/dist/esm/models/FieldControlPolicyResponse.js +83 -0
  260. package/dist/esm/models/FilterCategory.d.ts +39 -0
  261. package/dist/esm/models/FilterCategory.js +50 -0
  262. package/dist/esm/models/FilterOption.d.ts +38 -0
  263. package/dist/esm/models/FilterOption.js +49 -0
  264. package/dist/esm/models/GoogleDlpConnectionResponse.d.ts +46 -0
  265. package/dist/esm/models/GoogleDlpConnectionResponse.js +59 -0
  266. package/dist/esm/models/GovernanceConfig.d.ts +52 -0
  267. package/dist/esm/models/GovernanceConfig.js +48 -0
  268. package/dist/esm/models/HTTPValidationError.d.ts +31 -0
  269. package/dist/esm/models/HTTPValidationError.js +42 -0
  270. package/dist/esm/models/IdListResponse.d.ts +30 -0
  271. package/dist/esm/models/IdListResponse.js +41 -0
  272. package/dist/esm/models/IdpConnectionConfig.d.ts +89 -0
  273. package/dist/esm/models/IdpConnectionConfig.js +85 -0
  274. package/dist/esm/models/IdpConnectionResponse.d.ts +86 -0
  275. package/dist/esm/models/IdpConnectionResponse.js +69 -0
  276. package/dist/esm/models/IdpRoleMappingConfig.d.ts +30 -0
  277. package/dist/esm/models/IdpRoleMappingConfig.js +41 -0
  278. package/dist/esm/models/IdpRoleMappingResponse.d.ts +38 -0
  279. package/dist/esm/models/IdpRoleMappingResponse.js +45 -0
  280. package/dist/esm/models/IdpSettingsResponse.d.ts +38 -0
  281. package/dist/esm/models/IdpSettingsResponse.js +45 -0
  282. package/dist/esm/models/IdpTestResult.d.ts +40 -0
  283. package/dist/esm/models/IdpTestResult.js +49 -0
  284. package/dist/esm/models/LabeledOption.d.ts +34 -0
  285. package/dist/esm/models/LabeledOption.js +47 -0
  286. package/dist/esm/models/ListProfilesResponse.d.ts +31 -0
  287. package/dist/esm/models/ListProfilesResponse.js +44 -0
  288. package/dist/esm/models/ListRoutingRulesResponse.d.ts +40 -0
  289. package/dist/esm/models/ListRoutingRulesResponse.js +49 -0
  290. package/dist/esm/models/LlmGatewayAwsRoleConfigResponse.d.ts +42 -0
  291. package/dist/esm/models/LlmGatewayAwsRoleConfigResponse.js +45 -0
  292. package/dist/esm/models/LlmGatewayAwsTrustInfoResponse.d.ts +34 -0
  293. package/dist/esm/models/LlmGatewayAwsTrustInfoResponse.js +47 -0
  294. package/dist/esm/models/LocationInner.d.ts +26 -0
  295. package/dist/esm/models/LocationInner.js +31 -0
  296. package/dist/esm/models/LongContextTier.d.ts +58 -0
  297. package/dist/esm/models/LongContextTier.js +55 -0
  298. package/dist/esm/models/LongContextTierEntry.d.ts +48 -0
  299. package/dist/esm/models/LongContextTierEntry.js +55 -0
  300. package/dist/esm/models/LongContextTierRequest.d.ts +53 -0
  301. package/dist/esm/models/LongContextTierRequest.js +55 -0
  302. package/dist/esm/models/MCPServerCategory.d.ts +50 -0
  303. package/dist/esm/models/MCPServerCategory.js +64 -0
  304. package/dist/esm/models/MCPServerDirectoryBase.d.ts +126 -0
  305. package/dist/esm/models/MCPServerDirectoryBase.js +134 -0
  306. package/dist/esm/models/MCPServerDirectoryRead.d.ts +135 -0
  307. package/dist/esm/models/MCPServerDirectoryRead.js +143 -0
  308. package/dist/esm/models/MCPServerDirectoryReadWithServers.d.ts +140 -0
  309. package/dist/esm/models/MCPServerDirectoryReadWithServers.js +148 -0
  310. package/dist/esm/models/MaskFormat.d.ts +45 -0
  311. package/dist/esm/models/MaskFormat.js +52 -0
  312. package/dist/esm/models/MaskKeep.d.ts +25 -0
  313. package/dist/esm/models/MaskKeep.js +43 -0
  314. package/dist/esm/models/Match.d.ts +25 -0
  315. package/dist/esm/models/Match.js +65 -0
  316. package/dist/esm/models/Match1.d.ts +25 -0
  317. package/dist/esm/models/Match1.js +65 -0
  318. package/dist/esm/models/MetadataPatchRequest.d.ts +34 -0
  319. package/dist/esm/models/MetadataPatchRequest.js +43 -0
  320. package/dist/esm/models/ModelAccessTarget.d.ts +43 -0
  321. package/dist/esm/models/ModelAccessTarget.js +72 -0
  322. package/dist/esm/models/ModelAccessTargetOneOf.d.ts +46 -0
  323. package/dist/esm/models/ModelAccessTargetOneOf.js +55 -0
  324. package/dist/esm/models/ModelAccessTargetOneOf1.d.ts +46 -0
  325. package/dist/esm/models/ModelAccessTargetOneOf1.js +55 -0
  326. package/dist/esm/models/ModelAccessTargetOneOf2.d.ts +46 -0
  327. package/dist/esm/models/ModelAccessTargetOneOf2.js +55 -0
  328. package/dist/esm/models/ModelAccessTargetOneOf3.d.ts +46 -0
  329. package/dist/esm/models/ModelAccessTargetOneOf3.js +59 -0
  330. package/dist/esm/models/ModelAccessTargetOneOf4.d.ts +55 -0
  331. package/dist/esm/models/ModelAccessTargetOneOf4.js +55 -0
  332. package/dist/esm/models/ModelMapping.d.ts +155 -0
  333. package/dist/esm/models/ModelMapping.js +104 -0
  334. package/dist/esm/models/ModelMappingWithBudgetStatus.d.ts +192 -0
  335. package/dist/esm/models/ModelMappingWithBudgetStatus.js +118 -0
  336. package/dist/esm/models/ModelMappingWithProvider.d.ts +134 -0
  337. package/dist/esm/models/ModelMappingWithProvider.js +116 -0
  338. package/dist/esm/models/ModelMappingWithProviderAndBudgetStatus.d.ts +155 -0
  339. package/dist/esm/models/ModelMappingWithProviderAndBudgetStatus.js +130 -0
  340. package/dist/esm/models/ModelPricing.d.ts +94 -0
  341. package/dist/esm/models/ModelPricing.js +79 -0
  342. package/dist/esm/models/ModelRouteGroup.d.ts +92 -0
  343. package/dist/esm/models/ModelRouteGroup.js +76 -0
  344. package/dist/esm/models/ModelSource.d.ts +35 -0
  345. package/dist/esm/models/ModelSource.js +53 -0
  346. package/dist/esm/models/ModelStaleStatus.d.ts +31 -0
  347. package/dist/esm/models/ModelStaleStatus.js +44 -0
  348. package/dist/esm/models/ModelSyncMode.d.ts +35 -0
  349. package/dist/esm/models/ModelSyncMode.js +53 -0
  350. package/dist/esm/models/OAuthConfig.d.ts +39 -0
  351. package/dist/esm/models/OAuthConfig.js +46 -0
  352. package/dist/esm/models/OfInner.d.ts +25 -0
  353. package/dist/esm/models/OfInner.js +65 -0
  354. package/dist/esm/models/OfInner1.d.ts +25 -0
  355. package/dist/esm/models/OfInner1.js +65 -0
  356. package/dist/esm/models/OperatorAllInput.d.ts +31 -0
  357. package/dist/esm/models/OperatorAllInput.js +44 -0
  358. package/dist/esm/models/OperatorAllOutput.d.ts +31 -0
  359. package/dist/esm/models/OperatorAllOutput.js +44 -0
  360. package/dist/esm/models/OperatorAnyInput.d.ts +31 -0
  361. package/dist/esm/models/OperatorAnyInput.js +44 -0
  362. package/dist/esm/models/OperatorAnyOutput.d.ts +31 -0
  363. package/dist/esm/models/OperatorAnyOutput.js +44 -0
  364. package/dist/esm/models/OperatorNoneInput.d.ts +31 -0
  365. package/dist/esm/models/OperatorNoneInput.js +44 -0
  366. package/dist/esm/models/OperatorNoneOutput.d.ts +31 -0
  367. package/dist/esm/models/OperatorNoneOutput.js +44 -0
  368. package/dist/esm/models/OrgConfigResponse.d.ts +50 -0
  369. package/dist/esm/models/OrgConfigResponse.js +63 -0
  370. package/dist/esm/models/OrganizationRolesGroupsResponse.d.ts +39 -0
  371. package/dist/esm/models/OrganizationRolesGroupsResponse.js +47 -0
  372. package/dist/esm/models/PaginatedResponseAllowListEntryResponse.d.ts +39 -0
  373. package/dist/esm/models/PaginatedResponseAllowListEntryResponse.js +52 -0
  374. package/dist/esm/models/PaginatedResponseAllowListEntryResponseItemsInner.d.ts +58 -0
  375. package/dist/esm/models/PaginatedResponseAllowListEntryResponseItemsInner.js +71 -0
  376. package/dist/esm/models/PaginationMeta.d.ts +50 -0
  377. package/dist/esm/models/PaginationMeta.js +63 -0
  378. package/dist/esm/models/PaginationResponseApplicationDirectoryResponse.d.ts +36 -0
  379. package/dist/esm/models/PaginationResponseApplicationDirectoryResponse.js +49 -0
  380. package/dist/esm/models/PaginationResponseApplicationResponse.d.ts +36 -0
  381. package/dist/esm/models/PaginationResponseApplicationResponse.js +49 -0
  382. package/dist/esm/models/PaginationResponseMCPServerDirectoryReadWithServers.d.ts +36 -0
  383. package/dist/esm/models/PaginationResponseMCPServerDirectoryReadWithServers.js +49 -0
  384. package/dist/esm/models/PaginationResponsePolicyImpactSummary.d.ts +36 -0
  385. package/dist/esm/models/PaginationResponsePolicyImpactSummary.js +49 -0
  386. package/dist/esm/models/PaginationResponsePolicyRevisionSummary.d.ts +36 -0
  387. package/dist/esm/models/PaginationResponsePolicyRevisionSummary.js +49 -0
  388. package/dist/esm/models/PaginationResponsePolicySummary.d.ts +36 -0
  389. package/dist/esm/models/PaginationResponsePolicySummary.js +49 -0
  390. package/dist/esm/models/PaginationResponseServerListResponse.d.ts +36 -0
  391. package/dist/esm/models/PaginationResponseServerListResponse.js +49 -0
  392. package/dist/esm/models/PolicyAttributionResponse.d.ts +47 -0
  393. package/dist/esm/models/PolicyAttributionResponse.js +56 -0
  394. package/dist/esm/models/PolicyDetail.d.ts +83 -0
  395. package/dist/esm/models/PolicyDetail.js +87 -0
  396. package/dist/esm/models/PolicyDetailResponse.d.ts +31 -0
  397. package/dist/esm/models/PolicyDetailResponse.js +44 -0
  398. package/dist/esm/models/PolicyImpactSeverityCounts.d.ts +51 -0
  399. package/dist/esm/models/PolicyImpactSeverityCounts.js +47 -0
  400. package/dist/esm/models/PolicyImpactSummary.d.ts +105 -0
  401. package/dist/esm/models/PolicyImpactSummary.js +98 -0
  402. package/dist/esm/models/PolicyRevisionCompareResponse.d.ts +58 -0
  403. package/dist/esm/models/PolicyRevisionCompareResponse.js +60 -0
  404. package/dist/esm/models/PolicyRevisionCompareSide.d.ts +54 -0
  405. package/dist/esm/models/PolicyRevisionCompareSide.js +62 -0
  406. package/dist/esm/models/PolicyRevisionDetailResponse.d.ts +37 -0
  407. package/dist/esm/models/PolicyRevisionDetailResponse.js +46 -0
  408. package/dist/esm/models/PolicyRevisionSummary.d.ts +79 -0
  409. package/dist/esm/models/PolicyRevisionSummary.js +75 -0
  410. package/dist/esm/models/PolicyRuleConditionInput.d.ts +31 -0
  411. package/dist/esm/models/PolicyRuleConditionInput.js +44 -0
  412. package/dist/esm/models/PolicyRuleConditionOutput.d.ts +31 -0
  413. package/dist/esm/models/PolicyRuleConditionOutput.js +44 -0
  414. package/dist/esm/models/PolicyRuleInput.d.ts +55 -0
  415. package/dist/esm/models/PolicyRuleInput.js +56 -0
  416. package/dist/esm/models/PolicyRuleOutput.d.ts +55 -0
  417. package/dist/esm/models/PolicyRuleOutput.js +56 -0
  418. package/dist/esm/models/PolicyStatus.d.ts +34 -0
  419. package/dist/esm/models/PolicyStatus.js +52 -0
  420. package/dist/esm/models/PolicySummary.d.ts +86 -0
  421. package/dist/esm/models/PolicySummary.js +82 -0
  422. package/dist/esm/models/PolicySummaryResponse.d.ts +46 -0
  423. package/dist/esm/models/PolicySummaryResponse.js +49 -0
  424. package/dist/esm/models/Posture.d.ts +31 -0
  425. package/dist/esm/models/Posture.js +49 -0
  426. package/dist/esm/models/PresidioConnectionResponse.d.ts +46 -0
  427. package/dist/esm/models/PresidioConnectionResponse.js +59 -0
  428. package/dist/esm/models/PricingChangeSource.d.ts +34 -0
  429. package/dist/esm/models/PricingChangeSource.js +52 -0
  430. package/dist/esm/models/PricingRuleSummary.d.ts +146 -0
  431. package/dist/esm/models/PricingRuleSummary.js +111 -0
  432. package/dist/esm/models/PricingSyncMode.d.ts +27 -0
  433. package/dist/esm/models/PricingSyncMode.js +45 -0
  434. package/dist/esm/models/Protocol.d.ts +25 -0
  435. package/dist/esm/models/Protocol.js +43 -0
  436. package/dist/esm/models/Provider.d.ts +200 -0
  437. package/dist/esm/models/Provider.js +137 -0
  438. package/dist/esm/models/ProviderConnectionResponse.d.ts +28 -0
  439. package/dist/esm/models/ProviderConnectionResponse.js +86 -0
  440. package/dist/esm/models/ProviderConnectionResponseOneOf.d.ts +57 -0
  441. package/dist/esm/models/ProviderConnectionResponseOneOf.js +71 -0
  442. package/dist/esm/models/ProviderConnectionResponseOneOf1.d.ts +49 -0
  443. package/dist/esm/models/ProviderConnectionResponseOneOf1.js +63 -0
  444. package/dist/esm/models/ProviderConnectionResponseOneOf2.d.ts +57 -0
  445. package/dist/esm/models/ProviderConnectionResponseOneOf2.js +71 -0
  446. package/dist/esm/models/ProviderConnectionResponseOneOf3.d.ts +73 -0
  447. package/dist/esm/models/ProviderConnectionResponseOneOf3.js +79 -0
  448. package/dist/esm/models/ProviderConnectionResponseOneOf4.d.ts +77 -0
  449. package/dist/esm/models/ProviderConnectionResponseOneOf4.js +83 -0
  450. package/dist/esm/models/ProviderConnectionResponseOneOf5.d.ts +57 -0
  451. package/dist/esm/models/ProviderConnectionResponseOneOf5.js +71 -0
  452. package/dist/esm/models/ProviderConnectionResponseOneOf6.d.ts +57 -0
  453. package/dist/esm/models/ProviderConnectionResponseOneOf6.js +71 -0
  454. package/dist/esm/models/PublishBlocker.d.ts +27 -0
  455. package/dist/esm/models/PublishBlocker.js +45 -0
  456. package/dist/esm/models/ReorderEntry.d.ts +34 -0
  457. package/dist/esm/models/ReorderEntry.js +47 -0
  458. package/dist/esm/models/ReorderModelMappingsRequest.d.ts +31 -0
  459. package/dist/esm/models/ReorderModelMappingsRequest.js +44 -0
  460. package/dist/esm/models/ReorderedResponse.d.ts +30 -0
  461. package/dist/esm/models/ReorderedResponse.js +43 -0
  462. package/dist/esm/models/ResolvedProtectionResponse.d.ts +31 -0
  463. package/dist/esm/models/ResolvedProtectionResponse.js +44 -0
  464. package/dist/esm/models/ResolvedProtectionRuleResponse.d.ts +87 -0
  465. package/dist/esm/models/ResolvedProtectionRuleResponse.js +84 -0
  466. package/dist/esm/models/ResolvedRef.d.ts +42 -0
  467. package/dist/esm/models/ResolvedRef.js +54 -0
  468. package/dist/esm/models/RevokedResponse.d.ts +30 -0
  469. package/dist/esm/models/RevokedResponse.js +43 -0
  470. package/dist/esm/models/RouteHealthStatus.d.ts +53 -0
  471. package/dist/esm/models/RouteHealthStatus.js +59 -0
  472. package/dist/esm/models/RoutingPolicy.d.ts +90 -0
  473. package/dist/esm/models/RoutingPolicy.js +92 -0
  474. package/dist/esm/models/RoutingPolicyDraft.d.ts +68 -0
  475. package/dist/esm/models/RoutingPolicyDraft.js +65 -0
  476. package/dist/esm/models/RoutingPolicyUpdate.d.ts +69 -0
  477. package/dist/esm/models/RoutingPolicyUpdate.js +61 -0
  478. package/dist/esm/models/RoutingRule.d.ts +60 -0
  479. package/dist/esm/models/RoutingRule.js +69 -0
  480. package/dist/esm/models/RoutingRuleDraft.d.ts +46 -0
  481. package/dist/esm/models/RoutingRuleDraft.js +53 -0
  482. package/dist/esm/models/RoutingRuleWriteResponse.d.ts +65 -0
  483. package/dist/esm/models/RoutingRuleWriteResponse.js +74 -0
  484. package/dist/esm/models/RoutingSlot.d.ts +41 -0
  485. package/dist/esm/models/RoutingSlot.js +47 -0
  486. package/dist/esm/models/RuleConflict.d.ts +43 -0
  487. package/dist/esm/models/RuleConflict.js +51 -0
  488. package/dist/esm/models/ScopeJson.d.ts +42 -0
  489. package/dist/esm/models/ScopeJson.js +47 -0
  490. package/dist/esm/models/ScopeType.d.ts +43 -0
  491. package/dist/esm/models/ScopeType.js +61 -0
  492. package/dist/esm/models/ServerConnectionResponse.d.ts +62 -0
  493. package/dist/esm/models/ServerConnectionResponse.js +66 -0
  494. package/dist/esm/models/ServerListResponse.d.ts +156 -0
  495. package/dist/esm/models/ServerListResponse.js +163 -0
  496. package/dist/esm/models/ServerResponse.d.ts +158 -0
  497. package/dist/esm/models/ServerResponse.js +167 -0
  498. package/dist/esm/models/ServerSource.d.ts +30 -0
  499. package/dist/esm/models/ServerSource.js +48 -0
  500. package/dist/esm/models/SetApiKeyDisabledRequest.d.ts +30 -0
  501. package/dist/esm/models/SetApiKeyDisabledRequest.js +43 -0
  502. package/dist/esm/models/StaleReason.d.ts +24 -0
  503. package/dist/esm/models/StaleReason.js +42 -0
  504. package/dist/esm/models/TestFindingResponse.d.ts +90 -0
  505. package/dist/esm/models/TestFindingResponse.js +99 -0
  506. package/dist/esm/models/TestProcessTextRequest.d.ts +55 -0
  507. package/dist/esm/models/TestProcessTextRequest.js +58 -0
  508. package/dist/esm/models/TestProcessTextResponse.d.ts +56 -0
  509. package/dist/esm/models/TestProcessTextResponse.js +65 -0
  510. package/dist/esm/models/TokenizationConnectionResponse.d.ts +38 -0
  511. package/dist/esm/models/TokenizationConnectionResponse.js +51 -0
  512. package/dist/esm/models/TrafficType.d.ts +26 -0
  513. package/dist/esm/models/TrafficType.js +44 -0
  514. package/dist/esm/models/UpdateBudgetRequest.d.ts +64 -0
  515. package/dist/esm/models/UpdateBudgetRequest.js +57 -0
  516. package/dist/esm/models/UpdateConnectionRequest.d.ts +56 -0
  517. package/dist/esm/models/UpdateConnectionRequest.js +53 -0
  518. package/dist/esm/models/UpdateContractRequest.d.ts +41 -0
  519. package/dist/esm/models/UpdateContractRequest.js +48 -0
  520. package/dist/esm/models/UpdateCustomDetectionTypeRequest.d.ts +47 -0
  521. package/dist/esm/models/UpdateCustomDetectionTypeRequest.js +50 -0
  522. package/dist/esm/models/UpdateDetectionEngineRequest.d.ts +46 -0
  523. package/dist/esm/models/UpdateDetectionEngineRequest.js +49 -0
  524. package/dist/esm/models/UpdateEnforcementPolicyRequest.d.ts +77 -0
  525. package/dist/esm/models/UpdateEnforcementPolicyRequest.js +66 -0
  526. package/dist/esm/models/UpdateFieldControlPolicyRequest.d.ts +42 -0
  527. package/dist/esm/models/UpdateFieldControlPolicyRequest.js +47 -0
  528. package/dist/esm/models/UpdateModelAccessRequest.d.ts +70 -0
  529. package/dist/esm/models/UpdateModelAccessRequest.js +58 -0
  530. package/dist/esm/models/UpdateModelMappingRequest.d.ts +79 -0
  531. package/dist/esm/models/UpdateModelMappingRequest.js +59 -0
  532. package/dist/esm/models/UpdateOrgConfigRequest.d.ts +34 -0
  533. package/dist/esm/models/UpdateOrgConfigRequest.js +43 -0
  534. package/dist/esm/models/UpdatePolicy.d.ts +56 -0
  535. package/dist/esm/models/UpdatePolicy.js +55 -0
  536. package/dist/esm/models/UpdatePricingRequest.d.ts +70 -0
  537. package/dist/esm/models/UpdatePricingRequest.js +58 -0
  538. package/dist/esm/models/UpdateProviderRequest.d.ts +124 -0
  539. package/dist/esm/models/UpdateProviderRequest.js +74 -0
  540. package/dist/esm/models/UpdateRateLimitRequest.d.ts +87 -0
  541. package/dist/esm/models/UpdateRateLimitRequest.js +65 -0
  542. package/dist/esm/models/UpdateRouteGroupRequest.d.ts +46 -0
  543. package/dist/esm/models/UpdateRouteGroupRequest.js +47 -0
  544. package/dist/esm/models/UpdateSettingsRequest.d.ts +50 -0
  545. package/dist/esm/models/UpdateSettingsRequest.js +51 -0
  546. package/dist/esm/models/UpsertAwsBedrockGuardrailsRequest.d.ts +66 -0
  547. package/dist/esm/models/UpsertAwsBedrockGuardrailsRequest.js +61 -0
  548. package/dist/esm/models/UpsertAwsComprehendPiiRequest.d.ts +62 -0
  549. package/dist/esm/models/UpsertAwsComprehendPiiRequest.js +57 -0
  550. package/dist/esm/models/UpsertAzureAiLanguagePiiRequest.d.ts +42 -0
  551. package/dist/esm/models/UpsertAzureAiLanguagePiiRequest.js +49 -0
  552. package/dist/esm/models/UpsertAzureContentSafetyRequest.d.ts +42 -0
  553. package/dist/esm/models/UpsertAzureContentSafetyRequest.js +49 -0
  554. package/dist/esm/models/UpsertConnectionRequest.d.ts +28 -0
  555. package/dist/esm/models/UpsertConnectionRequest.js +86 -0
  556. package/dist/esm/models/UpsertConnectionRequestOneOf.d.ts +53 -0
  557. package/dist/esm/models/UpsertConnectionRequestOneOf.js +61 -0
  558. package/dist/esm/models/UpsertConnectionRequestOneOf1.d.ts +45 -0
  559. package/dist/esm/models/UpsertConnectionRequestOneOf1.js +57 -0
  560. package/dist/esm/models/UpsertConnectionRequestOneOf2.d.ts +53 -0
  561. package/dist/esm/models/UpsertConnectionRequestOneOf2.js +61 -0
  562. package/dist/esm/models/UpsertConnectionRequestOneOf3.d.ts +73 -0
  563. package/dist/esm/models/UpsertConnectionRequestOneOf3.js +69 -0
  564. package/dist/esm/models/UpsertConnectionRequestOneOf4.d.ts +77 -0
  565. package/dist/esm/models/UpsertConnectionRequestOneOf4.js +73 -0
  566. package/dist/esm/models/UpsertConnectionRequestOneOf5.d.ts +53 -0
  567. package/dist/esm/models/UpsertConnectionRequestOneOf5.js +61 -0
  568. package/dist/esm/models/UpsertConnectionRequestOneOf6.d.ts +53 -0
  569. package/dist/esm/models/UpsertConnectionRequestOneOf6.js +61 -0
  570. package/dist/esm/models/UpsertFieldControlPolicyRequest.d.ts +46 -0
  571. package/dist/esm/models/UpsertFieldControlPolicyRequest.js +53 -0
  572. package/dist/esm/models/UpsertGoogleDlpRequest.d.ts +42 -0
  573. package/dist/esm/models/UpsertGoogleDlpRequest.js +49 -0
  574. package/dist/esm/models/UpsertPresidioRequest.d.ts +42 -0
  575. package/dist/esm/models/UpsertPresidioRequest.js +49 -0
  576. package/dist/esm/models/UpsertTokenizationRequest.d.ts +34 -0
  577. package/dist/esm/models/UpsertTokenizationRequest.js +45 -0
  578. package/dist/esm/models/ValidateAwsRoleRequest.d.ts +38 -0
  579. package/dist/esm/models/ValidateAwsRoleRequest.js +51 -0
  580. package/dist/esm/models/ValidatePolicyRequest.d.ts +42 -0
  581. package/dist/esm/models/ValidatePolicyRequest.js +49 -0
  582. package/dist/esm/models/ValidatePolicyResponse.d.ts +38 -0
  583. package/dist/esm/models/ValidatePolicyResponse.js +49 -0
  584. package/dist/esm/models/ValidationError.d.ts +47 -0
  585. package/dist/esm/models/ValidationError.js +56 -0
  586. package/dist/esm/models/WebhookSecretResponse.d.ts +30 -0
  587. package/dist/esm/models/WebhookSecretResponse.js +43 -0
  588. package/dist/esm/models/WithAttributionModelAccessPolicy.d.ts +119 -0
  589. package/dist/esm/models/WithAttributionModelAccessPolicy.js +93 -0
  590. package/dist/esm/models/WithAttributionRateLimitPolicy.d.ts +188 -0
  591. package/dist/esm/models/WithAttributionRateLimitPolicy.js +100 -0
  592. package/dist/esm/models/WithAttributionTokenBudget.d.ts +200 -0
  593. package/dist/esm/models/WithAttributionTokenBudget.js +120 -0
  594. package/dist/esm/models/index.d.ts +272 -0
  595. package/dist/esm/models/index.js +274 -0
  596. package/dist/esm/package.json +1 -0
  597. package/dist/esm/runtime.d.ts +214 -0
  598. package/dist/esm/runtime.js +416 -0
  599. package/dist/index.d.ts +4 -42
  600. package/dist/index.js +22 -13
  601. package/dist/lib/auth.d.ts +95 -0
  602. package/dist/lib/auth.js +215 -0
  603. package/dist/lib/cli.d.ts +44 -0
  604. package/dist/lib/cli.js +92 -0
  605. package/dist/lib/client.d.ts +51 -0
  606. package/dist/lib/client.js +48 -0
  607. package/dist/lib/config.d.ts +14 -0
  608. package/dist/lib/config.js +66 -0
  609. package/dist/lib/http.d.ts +23 -0
  610. package/dist/lib/http.js +83 -0
  611. package/dist/lib/index.d.ts +15 -0
  612. package/dist/lib/index.js +30 -0
  613. package/dist/lib/mcp.d.ts +41 -0
  614. package/dist/lib/mcp.js +82 -0
  615. package/dist/models/AWSTrustInfoResponse.d.ts +34 -0
  616. package/dist/models/AWSTrustInfoResponse.js +54 -0
  617. package/dist/models/AddRouteGroupMembersRequest.d.ts +36 -0
  618. package/dist/models/AddRouteGroupMembersRequest.js +52 -0
  619. package/dist/models/AdminModelPricing.d.ts +133 -0
  620. package/dist/models/AdminModelPricing.js +108 -0
  621. package/dist/models/AffectedPoliciesResponse.d.ts +48 -0
  622. package/dist/models/AffectedPoliciesResponse.js +59 -0
  623. package/dist/models/AffectedPolicyPreview.d.ts +49 -0
  624. package/dist/models/AffectedPolicyPreview.js +64 -0
  625. package/dist/models/AgentPolicyCounts.d.ts +36 -0
  626. package/dist/models/AgentPolicyCounts.js +50 -0
  627. package/dist/models/AgentRuntimeCapabilities.d.ts +85 -0
  628. package/dist/models/AgentRuntimeCapabilities.js +74 -0
  629. package/dist/models/AgentRuntimeProfile.d.ts +77 -0
  630. package/dist/models/AgentRuntimeProfile.js +96 -0
  631. package/dist/models/AgentType.d.ts +25 -0
  632. package/dist/models/AgentType.js +51 -0
  633. package/dist/models/AlertType.d.ts +44 -0
  634. package/dist/models/AlertType.js +70 -0
  635. package/dist/models/AlertTypeOption.d.ts +42 -0
  636. package/dist/models/AlertTypeOption.js +62 -0
  637. package/dist/models/AllowListEntryResponse.d.ts +58 -0
  638. package/dist/models/AllowListEntryResponse.js +78 -0
  639. package/dist/models/ApiKey.d.ts +89 -0
  640. package/dist/models/ApiKey.js +92 -0
  641. package/dist/models/ApiKeyDisabledResponse.d.ts +30 -0
  642. package/dist/models/ApiKeyDisabledResponse.js +50 -0
  643. package/dist/models/ApiKeyKind.d.ts +36 -0
  644. package/dist/models/ApiKeyKind.js +62 -0
  645. package/dist/models/AppType.d.ts +30 -0
  646. package/dist/models/AppType.js +56 -0
  647. package/dist/models/Application.d.ts +58 -0
  648. package/dist/models/Application.js +79 -0
  649. package/dist/models/ApplicationCounts.d.ts +38 -0
  650. package/dist/models/ApplicationCounts.js +58 -0
  651. package/dist/models/ApplicationDirectoryBase.d.ts +87 -0
  652. package/dist/models/ApplicationDirectoryBase.js +108 -0
  653. package/dist/models/ApplicationDirectoryResponse.d.ts +92 -0
  654. package/dist/models/ApplicationDirectoryResponse.js +113 -0
  655. package/dist/models/ApplicationLlmGatewayPayload.d.ts +30 -0
  656. package/dist/models/ApplicationLlmGatewayPayload.js +50 -0
  657. package/dist/models/ApplicationPayload.d.ts +38 -0
  658. package/dist/models/ApplicationPayload.js +54 -0
  659. package/dist/models/ApplicationResponse.d.ts +68 -0
  660. package/dist/models/ApplicationResponse.js +88 -0
  661. package/dist/models/ApplicationWriteConfirmationsPayload.d.ts +30 -0
  662. package/dist/models/ApplicationWriteConfirmationsPayload.js +50 -0
  663. package/dist/models/ArchivePricingResponse.d.ts +45 -0
  664. package/dist/models/ArchivePricingResponse.js +62 -0
  665. package/dist/models/AttentionTier.d.ts +34 -0
  666. package/dist/models/AttentionTier.js +60 -0
  667. package/dist/models/AutoDisabledReason.d.ts +27 -0
  668. package/dist/models/AutoDisabledReason.js +53 -0
  669. package/dist/models/AwsBedrockGuardrailsConnectionResponse.d.ts +66 -0
  670. package/dist/models/AwsBedrockGuardrailsConnectionResponse.js +78 -0
  671. package/dist/models/AwsComprehendPiiConnectionResponse.d.ts +62 -0
  672. package/dist/models/AwsComprehendPiiConnectionResponse.js +74 -0
  673. package/dist/models/AwsRoleConfigResponse.d.ts +34 -0
  674. package/dist/models/AwsRoleConfigResponse.js +52 -0
  675. package/dist/models/AwsRoleValidationResponse.d.ts +31 -0
  676. package/dist/models/AwsRoleValidationResponse.js +50 -0
  677. package/dist/models/AzureAiLanguagePiiConnectionResponse.d.ts +46 -0
  678. package/dist/models/AzureAiLanguagePiiConnectionResponse.js +66 -0
  679. package/dist/models/AzureContentSafetyConnectionResponse.d.ts +46 -0
  680. package/dist/models/AzureContentSafetyConnectionResponse.js +66 -0
  681. package/dist/models/BillingMode.d.ts +36 -0
  682. package/dist/models/BillingMode.js +62 -0
  683. package/dist/models/BillingReason.d.ts +42 -0
  684. package/dist/models/BillingReason.js +68 -0
  685. package/dist/models/BudgetAction.d.ts +26 -0
  686. package/dist/models/BudgetAction.js +52 -0
  687. package/dist/models/BudgetLimitKind.d.ts +25 -0
  688. package/dist/models/BudgetLimitKind.js +51 -0
  689. package/dist/models/BudgetPeriod.d.ts +33 -0
  690. package/dist/models/BudgetPeriod.js +59 -0
  691. package/dist/models/BudgetTargetKind.d.ts +28 -0
  692. package/dist/models/BudgetTargetKind.js +54 -0
  693. package/dist/models/BudgetTargetStatus.d.ts +58 -0
  694. package/dist/models/BudgetTargetStatus.js +76 -0
  695. package/dist/models/ChangeAttribution.d.ts +73 -0
  696. package/dist/models/ChangeAttribution.js +63 -0
  697. package/dist/models/ChannelListResponse.d.ts +32 -0
  698. package/dist/models/ChannelListResponse.js +51 -0
  699. package/dist/models/ChannelOptionsResponse.d.ts +43 -0
  700. package/dist/models/ChannelOptionsResponse.js +60 -0
  701. package/dist/models/ChannelResponse.d.ts +87 -0
  702. package/dist/models/ChannelResponse.js +99 -0
  703. package/dist/models/ChannelSubscription.d.ts +31 -0
  704. package/dist/models/ChannelSubscription.js +51 -0
  705. package/dist/models/ChannelSubscriptionInput.d.ts +38 -0
  706. package/dist/models/ChannelSubscriptionInput.js +51 -0
  707. package/dist/models/ChannelTestResponse.d.ts +37 -0
  708. package/dist/models/ChannelTestResponse.js +52 -0
  709. package/dist/models/ChannelType.d.ts +49 -0
  710. package/dist/models/ChannelType.js +75 -0
  711. package/dist/models/ChannelUpsertRequest.d.ts +86 -0
  712. package/dist/models/ChannelUpsertRequest.js +68 -0
  713. package/dist/models/ConditionOfInput.d.ts +31 -0
  714. package/dist/models/ConditionOfInput.js +51 -0
  715. package/dist/models/ConditionOfOutput.d.ts +31 -0
  716. package/dist/models/ConditionOfOutput.js +51 -0
  717. package/dist/models/ConfigureDestinationRequest.d.ts +78 -0
  718. package/dist/models/ConfigureDestinationRequest.js +72 -0
  719. package/dist/models/Connection.d.ts +126 -0
  720. package/dist/models/Connection.js +109 -0
  721. package/dist/models/ConnectionInitiateResponse.d.ts +42 -0
  722. package/dist/models/ConnectionInitiateResponse.js +60 -0
  723. package/dist/models/ConnectionRead.d.ts +58 -0
  724. package/dist/models/ConnectionRead.js +71 -0
  725. package/dist/models/ConnectionStatus.d.ts +26 -0
  726. package/dist/models/ConnectionStatus.js +38 -0
  727. package/dist/models/CreateAllowListEntryRequest.d.ts +42 -0
  728. package/dist/models/CreateAllowListEntryRequest.js +58 -0
  729. package/dist/models/CreateApiKeyRequest.d.ts +51 -0
  730. package/dist/models/CreateApiKeyRequest.js +61 -0
  731. package/dist/models/CreateApiKeyResponse.d.ts +58 -0
  732. package/dist/models/CreateApiKeyResponse.js +75 -0
  733. package/dist/models/CreateBudgetRequest.d.ts +110 -0
  734. package/dist/models/CreateBudgetRequest.js +88 -0
  735. package/dist/models/CreateConnectionRequest.d.ts +61 -0
  736. package/dist/models/CreateConnectionRequest.js +68 -0
  737. package/dist/models/CreateCustomDetectionTypeRequest.d.ts +47 -0
  738. package/dist/models/CreateCustomDetectionTypeRequest.js +61 -0
  739. package/dist/models/CreateDetectionEngineRequest.d.ts +46 -0
  740. package/dist/models/CreateDetectionEngineRequest.js +60 -0
  741. package/dist/models/CreateEnforcementPolicyRequest.d.ts +77 -0
  742. package/dist/models/CreateEnforcementPolicyRequest.js +77 -0
  743. package/dist/models/CreateModelAccessRequest.d.ts +60 -0
  744. package/dist/models/CreateModelAccessRequest.js +71 -0
  745. package/dist/models/CreateModelMappingRequest.d.ts +103 -0
  746. package/dist/models/CreateModelMappingRequest.js +77 -0
  747. package/dist/models/CreatePolicy.d.ts +60 -0
  748. package/dist/models/CreatePolicy.js +68 -0
  749. package/dist/models/CreatePricingRequest.d.ts +88 -0
  750. package/dist/models/CreatePricingRequest.js +79 -0
  751. package/dist/models/CreateProfileRequest.d.ts +49 -0
  752. package/dist/models/CreateProfileRequest.js +65 -0
  753. package/dist/models/CreateProviderRequest.d.ts +124 -0
  754. package/dist/models/CreateProviderRequest.js +91 -0
  755. package/dist/models/CreateRateLimitRequest.d.ts +95 -0
  756. package/dist/models/CreateRateLimitRequest.js +76 -0
  757. package/dist/models/CreateRouteGroupRequest.d.ts +46 -0
  758. package/dist/models/CreateRouteGroupRequest.js +56 -0
  759. package/dist/models/CredentialsPayload.d.ts +52 -0
  760. package/dist/models/CredentialsPayload.js +58 -0
  761. package/dist/models/CustomDetectionPatternRequest.d.ts +34 -0
  762. package/dist/models/CustomDetectionPatternRequest.js +54 -0
  763. package/dist/models/CustomDetectionPatternResponse.d.ts +34 -0
  764. package/dist/models/CustomDetectionPatternResponse.js +54 -0
  765. package/dist/models/CustomDetectionTypeResponse.d.ts +71 -0
  766. package/dist/models/CustomDetectionTypeResponse.js +91 -0
  767. package/dist/models/CustomDetectionTypesResponse.d.ts +31 -0
  768. package/dist/models/CustomDetectionTypesResponse.js +51 -0
  769. package/dist/models/DefaultModelAccess.d.ts +35 -0
  770. package/dist/models/DefaultModelAccess.js +61 -0
  771. package/dist/models/DefaultPricingEntry.d.ts +81 -0
  772. package/dist/models/DefaultPricingEntry.js +85 -0
  773. package/dist/models/DeletedResponse.d.ts +35 -0
  774. package/dist/models/DeletedResponse.js +50 -0
  775. package/dist/models/DestinationResponse.d.ts +48 -0
  776. package/dist/models/DestinationResponse.js +68 -0
  777. package/dist/models/DetectionEngineCapabilitiesResponse.d.ts +62 -0
  778. package/dist/models/DetectionEngineCapabilitiesResponse.js +82 -0
  779. package/dist/models/DetectionEngineResponse.d.ts +93 -0
  780. package/dist/models/DetectionEngineResponse.js +106 -0
  781. package/dist/models/DetectionTypeInfoResponse.d.ts +59 -0
  782. package/dist/models/DetectionTypeInfoResponse.js +78 -0
  783. package/dist/models/DetectionTypesResponse.d.ts +31 -0
  784. package/dist/models/DetectionTypesResponse.js +51 -0
  785. package/dist/models/DlpAwsTrustInfoResponse.d.ts +34 -0
  786. package/dist/models/DlpAwsTrustInfoResponse.js +54 -0
  787. package/dist/models/DlpErrorResponse.d.ts +41 -0
  788. package/dist/models/DlpErrorResponse.js +50 -0
  789. package/dist/models/EffectivePricing.d.ts +89 -0
  790. package/dist/models/EffectivePricing.js +63 -0
  791. package/dist/models/EnforcementPoliciesResponse.d.ts +31 -0
  792. package/dist/models/EnforcementPoliciesResponse.js +51 -0
  793. package/dist/models/EnforcementPolicyMcpTargetRequest.d.ts +34 -0
  794. package/dist/models/EnforcementPolicyMcpTargetRequest.js +54 -0
  795. package/dist/models/EnforcementPolicyMcpTargetResponse.d.ts +38 -0
  796. package/dist/models/EnforcementPolicyMcpTargetResponse.js +58 -0
  797. package/dist/models/EnforcementPolicyPrincipalRequest.d.ts +34 -0
  798. package/dist/models/EnforcementPolicyPrincipalRequest.js +54 -0
  799. package/dist/models/EnforcementPolicyPrincipalResponse.d.ts +38 -0
  800. package/dist/models/EnforcementPolicyPrincipalResponse.js +58 -0
  801. package/dist/models/EnforcementPolicyResponse.d.ts +101 -0
  802. package/dist/models/EnforcementPolicyResponse.js +117 -0
  803. package/dist/models/ErrorDetail.d.ts +38 -0
  804. package/dist/models/ErrorDetail.js +52 -0
  805. package/dist/models/ErrorModel.d.ts +51 -0
  806. package/dist/models/ErrorModel.js +59 -0
  807. package/dist/models/ExportDestination.d.ts +74 -0
  808. package/dist/models/ExportDestination.js +70 -0
  809. package/dist/models/ExportHealthCheck.d.ts +42 -0
  810. package/dist/models/ExportHealthCheck.js +55 -0
  811. package/dist/models/ExportResponse.d.ts +69 -0
  812. package/dist/models/ExportResponse.js +90 -0
  813. package/dist/models/ExportRuntimeStatus.d.ts +47 -0
  814. package/dist/models/ExportRuntimeStatus.js +58 -0
  815. package/dist/models/ExportSettings.d.ts +50 -0
  816. package/dist/models/ExportSettings.js +68 -0
  817. package/dist/models/ExportsResponse.d.ts +31 -0
  818. package/dist/models/ExportsResponse.js +51 -0
  819. package/dist/models/Expression.d.ts +30 -0
  820. package/dist/models/Expression.js +50 -0
  821. package/dist/models/FieldControlPoliciesResponse.d.ts +31 -0
  822. package/dist/models/FieldControlPoliciesResponse.js +51 -0
  823. package/dist/models/FieldControlPolicyResponse.d.ts +70 -0
  824. package/dist/models/FieldControlPolicyResponse.js +90 -0
  825. package/dist/models/FilterCategory.d.ts +39 -0
  826. package/dist/models/FilterCategory.js +57 -0
  827. package/dist/models/FilterOption.d.ts +38 -0
  828. package/dist/models/FilterOption.js +56 -0
  829. package/dist/models/GoogleDlpConnectionResponse.d.ts +46 -0
  830. package/dist/models/GoogleDlpConnectionResponse.js +66 -0
  831. package/dist/models/GovernanceConfig.d.ts +52 -0
  832. package/dist/models/GovernanceConfig.js +55 -0
  833. package/dist/models/HTTPValidationError.d.ts +31 -0
  834. package/dist/models/HTTPValidationError.js +49 -0
  835. package/dist/models/IdListResponse.d.ts +30 -0
  836. package/dist/models/IdListResponse.js +48 -0
  837. package/dist/models/IdpConnectionConfig.d.ts +89 -0
  838. package/dist/models/IdpConnectionConfig.js +93 -0
  839. package/dist/models/IdpConnectionResponse.d.ts +86 -0
  840. package/dist/models/IdpConnectionResponse.js +76 -0
  841. package/dist/models/IdpRoleMappingConfig.d.ts +30 -0
  842. package/dist/models/IdpRoleMappingConfig.js +48 -0
  843. package/dist/models/IdpRoleMappingResponse.d.ts +38 -0
  844. package/dist/models/IdpRoleMappingResponse.js +52 -0
  845. package/dist/models/IdpSettingsResponse.d.ts +38 -0
  846. package/dist/models/IdpSettingsResponse.js +52 -0
  847. package/dist/models/IdpTestResult.d.ts +40 -0
  848. package/dist/models/IdpTestResult.js +56 -0
  849. package/dist/models/LabeledOption.d.ts +34 -0
  850. package/dist/models/LabeledOption.js +54 -0
  851. package/dist/models/ListProfilesResponse.d.ts +31 -0
  852. package/dist/models/ListProfilesResponse.js +51 -0
  853. package/dist/models/ListRoutingRulesResponse.d.ts +40 -0
  854. package/dist/models/ListRoutingRulesResponse.js +56 -0
  855. package/dist/models/LlmGatewayAwsRoleConfigResponse.d.ts +42 -0
  856. package/dist/models/LlmGatewayAwsRoleConfigResponse.js +52 -0
  857. package/dist/models/LlmGatewayAwsTrustInfoResponse.d.ts +34 -0
  858. package/dist/models/LlmGatewayAwsTrustInfoResponse.js +54 -0
  859. package/dist/models/LocationInner.d.ts +26 -0
  860. package/dist/models/LocationInner.js +38 -0
  861. package/dist/models/LongContextTier.d.ts +58 -0
  862. package/dist/models/LongContextTier.js +62 -0
  863. package/dist/models/LongContextTierEntry.d.ts +48 -0
  864. package/dist/models/LongContextTierEntry.js +62 -0
  865. package/dist/models/LongContextTierRequest.d.ts +53 -0
  866. package/dist/models/LongContextTierRequest.js +62 -0
  867. package/dist/models/MCPServerCategory.d.ts +50 -0
  868. package/dist/models/MCPServerCategory.js +71 -0
  869. package/dist/models/MCPServerDirectoryBase.d.ts +126 -0
  870. package/dist/models/MCPServerDirectoryBase.js +141 -0
  871. package/dist/models/MCPServerDirectoryRead.d.ts +135 -0
  872. package/dist/models/MCPServerDirectoryRead.js +150 -0
  873. package/dist/models/MCPServerDirectoryReadWithServers.d.ts +140 -0
  874. package/dist/models/MCPServerDirectoryReadWithServers.js +155 -0
  875. package/dist/models/MaskFormat.d.ts +45 -0
  876. package/dist/models/MaskFormat.js +59 -0
  877. package/dist/models/MaskKeep.d.ts +25 -0
  878. package/dist/models/MaskKeep.js +51 -0
  879. package/dist/models/Match.d.ts +25 -0
  880. package/dist/models/Match.js +71 -0
  881. package/dist/models/Match1.d.ts +25 -0
  882. package/dist/models/Match1.js +71 -0
  883. package/dist/models/MetadataPatchRequest.d.ts +34 -0
  884. package/dist/models/MetadataPatchRequest.js +50 -0
  885. package/dist/models/ModelAccessTarget.d.ts +43 -0
  886. package/dist/models/ModelAccessTarget.js +78 -0
  887. package/dist/models/ModelAccessTargetOneOf.d.ts +46 -0
  888. package/dist/models/ModelAccessTargetOneOf.js +63 -0
  889. package/dist/models/ModelAccessTargetOneOf1.d.ts +46 -0
  890. package/dist/models/ModelAccessTargetOneOf1.js +63 -0
  891. package/dist/models/ModelAccessTargetOneOf2.d.ts +46 -0
  892. package/dist/models/ModelAccessTargetOneOf2.js +63 -0
  893. package/dist/models/ModelAccessTargetOneOf3.d.ts +46 -0
  894. package/dist/models/ModelAccessTargetOneOf3.js +67 -0
  895. package/dist/models/ModelAccessTargetOneOf4.d.ts +55 -0
  896. package/dist/models/ModelAccessTargetOneOf4.js +63 -0
  897. package/dist/models/ModelMapping.d.ts +155 -0
  898. package/dist/models/ModelMapping.js +111 -0
  899. package/dist/models/ModelMappingWithBudgetStatus.d.ts +192 -0
  900. package/dist/models/ModelMappingWithBudgetStatus.js +125 -0
  901. package/dist/models/ModelMappingWithProvider.d.ts +134 -0
  902. package/dist/models/ModelMappingWithProvider.js +123 -0
  903. package/dist/models/ModelMappingWithProviderAndBudgetStatus.d.ts +155 -0
  904. package/dist/models/ModelMappingWithProviderAndBudgetStatus.js +137 -0
  905. package/dist/models/ModelPricing.d.ts +94 -0
  906. package/dist/models/ModelPricing.js +86 -0
  907. package/dist/models/ModelRouteGroup.d.ts +92 -0
  908. package/dist/models/ModelRouteGroup.js +83 -0
  909. package/dist/models/ModelSource.d.ts +35 -0
  910. package/dist/models/ModelSource.js +61 -0
  911. package/dist/models/ModelStaleStatus.d.ts +31 -0
  912. package/dist/models/ModelStaleStatus.js +51 -0
  913. package/dist/models/ModelSyncMode.d.ts +35 -0
  914. package/dist/models/ModelSyncMode.js +61 -0
  915. package/dist/models/OAuthConfig.d.ts +39 -0
  916. package/dist/models/OAuthConfig.js +53 -0
  917. package/dist/models/OfInner.d.ts +25 -0
  918. package/dist/models/OfInner.js +71 -0
  919. package/dist/models/OfInner1.d.ts +25 -0
  920. package/dist/models/OfInner1.js +71 -0
  921. package/dist/models/OperatorAllInput.d.ts +31 -0
  922. package/dist/models/OperatorAllInput.js +51 -0
  923. package/dist/models/OperatorAllOutput.d.ts +31 -0
  924. package/dist/models/OperatorAllOutput.js +51 -0
  925. package/dist/models/OperatorAnyInput.d.ts +31 -0
  926. package/dist/models/OperatorAnyInput.js +51 -0
  927. package/dist/models/OperatorAnyOutput.d.ts +31 -0
  928. package/dist/models/OperatorAnyOutput.js +51 -0
  929. package/dist/models/OperatorNoneInput.d.ts +31 -0
  930. package/dist/models/OperatorNoneInput.js +51 -0
  931. package/dist/models/OperatorNoneOutput.d.ts +31 -0
  932. package/dist/models/OperatorNoneOutput.js +51 -0
  933. package/dist/models/OrgConfigResponse.d.ts +50 -0
  934. package/dist/models/OrgConfigResponse.js +70 -0
  935. package/dist/models/OrganizationRolesGroupsResponse.d.ts +39 -0
  936. package/dist/models/OrganizationRolesGroupsResponse.js +54 -0
  937. package/dist/models/PaginatedResponseAllowListEntryResponse.d.ts +39 -0
  938. package/dist/models/PaginatedResponseAllowListEntryResponse.js +59 -0
  939. package/dist/models/PaginatedResponseAllowListEntryResponseItemsInner.d.ts +58 -0
  940. package/dist/models/PaginatedResponseAllowListEntryResponseItemsInner.js +78 -0
  941. package/dist/models/PaginationMeta.d.ts +50 -0
  942. package/dist/models/PaginationMeta.js +70 -0
  943. package/dist/models/PaginationResponseApplicationDirectoryResponse.d.ts +36 -0
  944. package/dist/models/PaginationResponseApplicationDirectoryResponse.js +56 -0
  945. package/dist/models/PaginationResponseApplicationResponse.d.ts +36 -0
  946. package/dist/models/PaginationResponseApplicationResponse.js +56 -0
  947. package/dist/models/PaginationResponseMCPServerDirectoryReadWithServers.d.ts +36 -0
  948. package/dist/models/PaginationResponseMCPServerDirectoryReadWithServers.js +56 -0
  949. package/dist/models/PaginationResponsePolicyImpactSummary.d.ts +36 -0
  950. package/dist/models/PaginationResponsePolicyImpactSummary.js +56 -0
  951. package/dist/models/PaginationResponsePolicyRevisionSummary.d.ts +36 -0
  952. package/dist/models/PaginationResponsePolicyRevisionSummary.js +56 -0
  953. package/dist/models/PaginationResponsePolicySummary.d.ts +36 -0
  954. package/dist/models/PaginationResponsePolicySummary.js +56 -0
  955. package/dist/models/PaginationResponseServerListResponse.d.ts +36 -0
  956. package/dist/models/PaginationResponseServerListResponse.js +56 -0
  957. package/dist/models/PolicyAttributionResponse.d.ts +47 -0
  958. package/dist/models/PolicyAttributionResponse.js +63 -0
  959. package/dist/models/PolicyDetail.d.ts +83 -0
  960. package/dist/models/PolicyDetail.js +94 -0
  961. package/dist/models/PolicyDetailResponse.d.ts +31 -0
  962. package/dist/models/PolicyDetailResponse.js +51 -0
  963. package/dist/models/PolicyImpactSeverityCounts.d.ts +51 -0
  964. package/dist/models/PolicyImpactSeverityCounts.js +54 -0
  965. package/dist/models/PolicyImpactSummary.d.ts +105 -0
  966. package/dist/models/PolicyImpactSummary.js +105 -0
  967. package/dist/models/PolicyRevisionCompareResponse.d.ts +58 -0
  968. package/dist/models/PolicyRevisionCompareResponse.js +67 -0
  969. package/dist/models/PolicyRevisionCompareSide.d.ts +54 -0
  970. package/dist/models/PolicyRevisionCompareSide.js +69 -0
  971. package/dist/models/PolicyRevisionDetailResponse.d.ts +37 -0
  972. package/dist/models/PolicyRevisionDetailResponse.js +53 -0
  973. package/dist/models/PolicyRevisionSummary.d.ts +79 -0
  974. package/dist/models/PolicyRevisionSummary.js +82 -0
  975. package/dist/models/PolicyRuleConditionInput.d.ts +31 -0
  976. package/dist/models/PolicyRuleConditionInput.js +51 -0
  977. package/dist/models/PolicyRuleConditionOutput.d.ts +31 -0
  978. package/dist/models/PolicyRuleConditionOutput.js +51 -0
  979. package/dist/models/PolicyRuleInput.d.ts +55 -0
  980. package/dist/models/PolicyRuleInput.js +63 -0
  981. package/dist/models/PolicyRuleOutput.d.ts +55 -0
  982. package/dist/models/PolicyRuleOutput.js +63 -0
  983. package/dist/models/PolicyStatus.d.ts +34 -0
  984. package/dist/models/PolicyStatus.js +60 -0
  985. package/dist/models/PolicySummary.d.ts +86 -0
  986. package/dist/models/PolicySummary.js +89 -0
  987. package/dist/models/PolicySummaryResponse.d.ts +46 -0
  988. package/dist/models/PolicySummaryResponse.js +56 -0
  989. package/dist/models/Posture.d.ts +31 -0
  990. package/dist/models/Posture.js +57 -0
  991. package/dist/models/PresidioConnectionResponse.d.ts +46 -0
  992. package/dist/models/PresidioConnectionResponse.js +66 -0
  993. package/dist/models/PricingChangeSource.d.ts +34 -0
  994. package/dist/models/PricingChangeSource.js +60 -0
  995. package/dist/models/PricingRuleSummary.d.ts +146 -0
  996. package/dist/models/PricingRuleSummary.js +118 -0
  997. package/dist/models/PricingSyncMode.d.ts +27 -0
  998. package/dist/models/PricingSyncMode.js +53 -0
  999. package/dist/models/Protocol.d.ts +25 -0
  1000. package/dist/models/Protocol.js +51 -0
  1001. package/dist/models/Provider.d.ts +200 -0
  1002. package/dist/models/Provider.js +144 -0
  1003. package/dist/models/ProviderConnectionResponse.d.ts +28 -0
  1004. package/dist/models/ProviderConnectionResponse.js +92 -0
  1005. package/dist/models/ProviderConnectionResponseOneOf.d.ts +57 -0
  1006. package/dist/models/ProviderConnectionResponseOneOf.js +79 -0
  1007. package/dist/models/ProviderConnectionResponseOneOf1.d.ts +49 -0
  1008. package/dist/models/ProviderConnectionResponseOneOf1.js +71 -0
  1009. package/dist/models/ProviderConnectionResponseOneOf2.d.ts +57 -0
  1010. package/dist/models/ProviderConnectionResponseOneOf2.js +79 -0
  1011. package/dist/models/ProviderConnectionResponseOneOf3.d.ts +73 -0
  1012. package/dist/models/ProviderConnectionResponseOneOf3.js +87 -0
  1013. package/dist/models/ProviderConnectionResponseOneOf4.d.ts +77 -0
  1014. package/dist/models/ProviderConnectionResponseOneOf4.js +91 -0
  1015. package/dist/models/ProviderConnectionResponseOneOf5.d.ts +57 -0
  1016. package/dist/models/ProviderConnectionResponseOneOf5.js +79 -0
  1017. package/dist/models/ProviderConnectionResponseOneOf6.d.ts +57 -0
  1018. package/dist/models/ProviderConnectionResponseOneOf6.js +79 -0
  1019. package/dist/models/PublishBlocker.d.ts +27 -0
  1020. package/dist/models/PublishBlocker.js +53 -0
  1021. package/dist/models/ReorderEntry.d.ts +34 -0
  1022. package/dist/models/ReorderEntry.js +54 -0
  1023. package/dist/models/ReorderModelMappingsRequest.d.ts +31 -0
  1024. package/dist/models/ReorderModelMappingsRequest.js +51 -0
  1025. package/dist/models/ReorderedResponse.d.ts +30 -0
  1026. package/dist/models/ReorderedResponse.js +50 -0
  1027. package/dist/models/ResolvedProtectionResponse.d.ts +31 -0
  1028. package/dist/models/ResolvedProtectionResponse.js +51 -0
  1029. package/dist/models/ResolvedProtectionRuleResponse.d.ts +87 -0
  1030. package/dist/models/ResolvedProtectionRuleResponse.js +91 -0
  1031. package/dist/models/ResolvedRef.d.ts +42 -0
  1032. package/dist/models/ResolvedRef.js +62 -0
  1033. package/dist/models/RevokedResponse.d.ts +30 -0
  1034. package/dist/models/RevokedResponse.js +50 -0
  1035. package/dist/models/RouteHealthStatus.d.ts +53 -0
  1036. package/dist/models/RouteHealthStatus.js +66 -0
  1037. package/dist/models/RoutingPolicy.d.ts +90 -0
  1038. package/dist/models/RoutingPolicy.js +99 -0
  1039. package/dist/models/RoutingPolicyDraft.d.ts +68 -0
  1040. package/dist/models/RoutingPolicyDraft.js +72 -0
  1041. package/dist/models/RoutingPolicyUpdate.d.ts +69 -0
  1042. package/dist/models/RoutingPolicyUpdate.js +68 -0
  1043. package/dist/models/RoutingRule.d.ts +60 -0
  1044. package/dist/models/RoutingRule.js +76 -0
  1045. package/dist/models/RoutingRuleDraft.d.ts +46 -0
  1046. package/dist/models/RoutingRuleDraft.js +60 -0
  1047. package/dist/models/RoutingRuleWriteResponse.d.ts +65 -0
  1048. package/dist/models/RoutingRuleWriteResponse.js +81 -0
  1049. package/dist/models/RoutingSlot.d.ts +41 -0
  1050. package/dist/models/RoutingSlot.js +54 -0
  1051. package/dist/models/RuleConflict.d.ts +43 -0
  1052. package/dist/models/RuleConflict.js +58 -0
  1053. package/dist/models/ScopeJson.d.ts +42 -0
  1054. package/dist/models/ScopeJson.js +54 -0
  1055. package/dist/models/ScopeType.d.ts +43 -0
  1056. package/dist/models/ScopeType.js +69 -0
  1057. package/dist/models/ServerConnectionResponse.d.ts +62 -0
  1058. package/dist/models/ServerConnectionResponse.js +73 -0
  1059. package/dist/models/ServerListResponse.d.ts +156 -0
  1060. package/dist/models/ServerListResponse.js +170 -0
  1061. package/dist/models/ServerResponse.d.ts +158 -0
  1062. package/dist/models/ServerResponse.js +174 -0
  1063. package/dist/models/ServerSource.d.ts +30 -0
  1064. package/dist/models/ServerSource.js +56 -0
  1065. package/dist/models/SetApiKeyDisabledRequest.d.ts +30 -0
  1066. package/dist/models/SetApiKeyDisabledRequest.js +50 -0
  1067. package/dist/models/StaleReason.d.ts +24 -0
  1068. package/dist/models/StaleReason.js +50 -0
  1069. package/dist/models/TestFindingResponse.d.ts +90 -0
  1070. package/dist/models/TestFindingResponse.js +106 -0
  1071. package/dist/models/TestProcessTextRequest.d.ts +55 -0
  1072. package/dist/models/TestProcessTextRequest.js +65 -0
  1073. package/dist/models/TestProcessTextResponse.d.ts +56 -0
  1074. package/dist/models/TestProcessTextResponse.js +72 -0
  1075. package/dist/models/TokenizationConnectionResponse.d.ts +38 -0
  1076. package/dist/models/TokenizationConnectionResponse.js +58 -0
  1077. package/dist/models/TrafficType.d.ts +26 -0
  1078. package/dist/models/TrafficType.js +52 -0
  1079. package/dist/models/UpdateBudgetRequest.d.ts +64 -0
  1080. package/dist/models/UpdateBudgetRequest.js +64 -0
  1081. package/dist/models/UpdateConnectionRequest.d.ts +56 -0
  1082. package/dist/models/UpdateConnectionRequest.js +60 -0
  1083. package/dist/models/UpdateContractRequest.d.ts +41 -0
  1084. package/dist/models/UpdateContractRequest.js +55 -0
  1085. package/dist/models/UpdateCustomDetectionTypeRequest.d.ts +47 -0
  1086. package/dist/models/UpdateCustomDetectionTypeRequest.js +57 -0
  1087. package/dist/models/UpdateDetectionEngineRequest.d.ts +46 -0
  1088. package/dist/models/UpdateDetectionEngineRequest.js +56 -0
  1089. package/dist/models/UpdateEnforcementPolicyRequest.d.ts +77 -0
  1090. package/dist/models/UpdateEnforcementPolicyRequest.js +73 -0
  1091. package/dist/models/UpdateFieldControlPolicyRequest.d.ts +42 -0
  1092. package/dist/models/UpdateFieldControlPolicyRequest.js +54 -0
  1093. package/dist/models/UpdateModelAccessRequest.d.ts +70 -0
  1094. package/dist/models/UpdateModelAccessRequest.js +65 -0
  1095. package/dist/models/UpdateModelMappingRequest.d.ts +79 -0
  1096. package/dist/models/UpdateModelMappingRequest.js +66 -0
  1097. package/dist/models/UpdateOrgConfigRequest.d.ts +34 -0
  1098. package/dist/models/UpdateOrgConfigRequest.js +50 -0
  1099. package/dist/models/UpdatePolicy.d.ts +56 -0
  1100. package/dist/models/UpdatePolicy.js +62 -0
  1101. package/dist/models/UpdatePricingRequest.d.ts +70 -0
  1102. package/dist/models/UpdatePricingRequest.js +65 -0
  1103. package/dist/models/UpdateProviderRequest.d.ts +124 -0
  1104. package/dist/models/UpdateProviderRequest.js +81 -0
  1105. package/dist/models/UpdateRateLimitRequest.d.ts +87 -0
  1106. package/dist/models/UpdateRateLimitRequest.js +72 -0
  1107. package/dist/models/UpdateRouteGroupRequest.d.ts +46 -0
  1108. package/dist/models/UpdateRouteGroupRequest.js +54 -0
  1109. package/dist/models/UpdateSettingsRequest.d.ts +50 -0
  1110. package/dist/models/UpdateSettingsRequest.js +58 -0
  1111. package/dist/models/UpsertAwsBedrockGuardrailsRequest.d.ts +66 -0
  1112. package/dist/models/UpsertAwsBedrockGuardrailsRequest.js +68 -0
  1113. package/dist/models/UpsertAwsComprehendPiiRequest.d.ts +62 -0
  1114. package/dist/models/UpsertAwsComprehendPiiRequest.js +64 -0
  1115. package/dist/models/UpsertAzureAiLanguagePiiRequest.d.ts +42 -0
  1116. package/dist/models/UpsertAzureAiLanguagePiiRequest.js +56 -0
  1117. package/dist/models/UpsertAzureContentSafetyRequest.d.ts +42 -0
  1118. package/dist/models/UpsertAzureContentSafetyRequest.js +56 -0
  1119. package/dist/models/UpsertConnectionRequest.d.ts +28 -0
  1120. package/dist/models/UpsertConnectionRequest.js +92 -0
  1121. package/dist/models/UpsertConnectionRequestOneOf.d.ts +53 -0
  1122. package/dist/models/UpsertConnectionRequestOneOf.js +69 -0
  1123. package/dist/models/UpsertConnectionRequestOneOf1.d.ts +45 -0
  1124. package/dist/models/UpsertConnectionRequestOneOf1.js +65 -0
  1125. package/dist/models/UpsertConnectionRequestOneOf2.d.ts +53 -0
  1126. package/dist/models/UpsertConnectionRequestOneOf2.js +69 -0
  1127. package/dist/models/UpsertConnectionRequestOneOf3.d.ts +73 -0
  1128. package/dist/models/UpsertConnectionRequestOneOf3.js +77 -0
  1129. package/dist/models/UpsertConnectionRequestOneOf4.d.ts +77 -0
  1130. package/dist/models/UpsertConnectionRequestOneOf4.js +81 -0
  1131. package/dist/models/UpsertConnectionRequestOneOf5.d.ts +53 -0
  1132. package/dist/models/UpsertConnectionRequestOneOf5.js +69 -0
  1133. package/dist/models/UpsertConnectionRequestOneOf6.d.ts +53 -0
  1134. package/dist/models/UpsertConnectionRequestOneOf6.js +69 -0
  1135. package/dist/models/UpsertFieldControlPolicyRequest.d.ts +46 -0
  1136. package/dist/models/UpsertFieldControlPolicyRequest.js +60 -0
  1137. package/dist/models/UpsertGoogleDlpRequest.d.ts +42 -0
  1138. package/dist/models/UpsertGoogleDlpRequest.js +56 -0
  1139. package/dist/models/UpsertPresidioRequest.d.ts +42 -0
  1140. package/dist/models/UpsertPresidioRequest.js +56 -0
  1141. package/dist/models/UpsertTokenizationRequest.d.ts +34 -0
  1142. package/dist/models/UpsertTokenizationRequest.js +52 -0
  1143. package/dist/models/ValidateAwsRoleRequest.d.ts +38 -0
  1144. package/dist/models/ValidateAwsRoleRequest.js +58 -0
  1145. package/dist/models/ValidatePolicyRequest.d.ts +42 -0
  1146. package/dist/models/ValidatePolicyRequest.js +56 -0
  1147. package/dist/models/ValidatePolicyResponse.d.ts +38 -0
  1148. package/dist/models/ValidatePolicyResponse.js +56 -0
  1149. package/dist/models/ValidationError.d.ts +47 -0
  1150. package/dist/models/ValidationError.js +63 -0
  1151. package/dist/models/WebhookSecretResponse.d.ts +30 -0
  1152. package/dist/models/WebhookSecretResponse.js +50 -0
  1153. package/dist/models/WithAttributionModelAccessPolicy.d.ts +119 -0
  1154. package/dist/models/WithAttributionModelAccessPolicy.js +100 -0
  1155. package/dist/models/WithAttributionRateLimitPolicy.d.ts +188 -0
  1156. package/dist/models/WithAttributionRateLimitPolicy.js +107 -0
  1157. package/dist/models/WithAttributionTokenBudget.d.ts +200 -0
  1158. package/dist/models/WithAttributionTokenBudget.js +127 -0
  1159. package/dist/models/index.d.ts +272 -249
  1160. package/dist/models/index.js +290 -0
  1161. package/dist/runtime.d.ts +214 -0
  1162. package/dist/runtime.js +437 -0
  1163. package/package.json +28 -99
  1164. package/dist/auth/clientCredentials.d.ts +0 -67
  1165. package/dist/auth/clientCredentials.d.ts.map +0 -1
  1166. package/dist/auth/index.d.ts +0 -14
  1167. package/dist/auth/index.d.ts.map +0 -1
  1168. package/dist/auth/pkce.d.ts +0 -98
  1169. package/dist/auth/pkce.d.ts.map +0 -1
  1170. package/dist/auth/store.d.ts +0 -168
  1171. package/dist/auth/store.d.ts.map +0 -1
  1172. package/dist/client.d.ts +0 -363
  1173. package/dist/client.d.ts.map +0 -1
  1174. package/dist/config.d.ts +0 -154
  1175. package/dist/config.d.ts.map +0 -1
  1176. package/dist/exceptions/index.d.ts +0 -119
  1177. package/dist/exceptions/index.d.ts.map +0 -1
  1178. package/dist/http/client.d.ts +0 -82
  1179. package/dist/http/client.d.ts.map +0 -1
  1180. package/dist/index.d.ts.map +0 -1
  1181. package/dist/index.esm.js +0 -13
  1182. package/dist/logging.d.ts +0 -48
  1183. package/dist/logging.d.ts.map +0 -1
  1184. package/dist/models/index.d.ts.map +0 -1
  1185. package/dist/quickstart.d.ts +0 -106
  1186. package/dist/quickstart.d.ts.map +0 -1
  1187. package/dist/version.d.ts +0 -17
  1188. package/dist/version.d.ts.map +0 -1
@@ -0,0 +1,3687 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Barndoor.ai Public API
5
+ * Unified public API specification for Barndoor.ai platform
6
+ *
7
+ * The version of the OpenAPI document: 2.0.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ import * as runtime from '../runtime.js';
15
+ import { AddRouteGroupMembersRequestToJSON, } from '../models/AddRouteGroupMembersRequest.js';
16
+ import { AdminModelPricingFromJSON, } from '../models/AdminModelPricing.js';
17
+ import { AgentRuntimeProfileFromJSON, } from '../models/AgentRuntimeProfile.js';
18
+ import { ApiKeyFromJSON, } from '../models/ApiKey.js';
19
+ import { ApiKeyDisabledResponseFromJSON, } from '../models/ApiKeyDisabledResponse.js';
20
+ import { ArchivePricingResponseFromJSON, } from '../models/ArchivePricingResponse.js';
21
+ import { ConnectionFromJSON, } from '../models/Connection.js';
22
+ import { CreateApiKeyRequestToJSON, } from '../models/CreateApiKeyRequest.js';
23
+ import { CreateApiKeyResponseFromJSON, } from '../models/CreateApiKeyResponse.js';
24
+ import { CreateBudgetRequestToJSON, } from '../models/CreateBudgetRequest.js';
25
+ import { CreateConnectionRequestToJSON, } from '../models/CreateConnectionRequest.js';
26
+ import { CreateModelAccessRequestToJSON, } from '../models/CreateModelAccessRequest.js';
27
+ import { CreateModelMappingRequestToJSON, } from '../models/CreateModelMappingRequest.js';
28
+ import { CreatePricingRequestToJSON, } from '../models/CreatePricingRequest.js';
29
+ import { CreateProfileRequestToJSON, } from '../models/CreateProfileRequest.js';
30
+ import { CreateProviderRequestToJSON, } from '../models/CreateProviderRequest.js';
31
+ import { CreateRateLimitRequestToJSON, } from '../models/CreateRateLimitRequest.js';
32
+ import { CreateRouteGroupRequestToJSON, } from '../models/CreateRouteGroupRequest.js';
33
+ import { DefaultPricingEntryFromJSON, } from '../models/DefaultPricingEntry.js';
34
+ import { DeletedResponseFromJSON, } from '../models/DeletedResponse.js';
35
+ import { GovernanceConfigFromJSON, GovernanceConfigToJSON, } from '../models/GovernanceConfig.js';
36
+ import { ListProfilesResponseFromJSON, } from '../models/ListProfilesResponse.js';
37
+ import { ListRoutingRulesResponseFromJSON, } from '../models/ListRoutingRulesResponse.js';
38
+ import { LlmGatewayAwsRoleConfigResponseFromJSON, } from '../models/LlmGatewayAwsRoleConfigResponse.js';
39
+ import { LlmGatewayAwsTrustInfoResponseFromJSON, } from '../models/LlmGatewayAwsTrustInfoResponse.js';
40
+ import { MetadataPatchRequestToJSON, } from '../models/MetadataPatchRequest.js';
41
+ import { ModelMappingFromJSON, } from '../models/ModelMapping.js';
42
+ import { ModelMappingWithBudgetStatusFromJSON, } from '../models/ModelMappingWithBudgetStatus.js';
43
+ import { ModelMappingWithProviderAndBudgetStatusFromJSON, } from '../models/ModelMappingWithProviderAndBudgetStatus.js';
44
+ import { ModelRouteGroupFromJSON, } from '../models/ModelRouteGroup.js';
45
+ import { PricingRuleSummaryFromJSON, } from '../models/PricingRuleSummary.js';
46
+ import { ProviderFromJSON, } from '../models/Provider.js';
47
+ import { ReorderModelMappingsRequestToJSON, } from '../models/ReorderModelMappingsRequest.js';
48
+ import { ReorderedResponseFromJSON, } from '../models/ReorderedResponse.js';
49
+ import { RevokedResponseFromJSON, } from '../models/RevokedResponse.js';
50
+ import { RoutingPolicyFromJSON, } from '../models/RoutingPolicy.js';
51
+ import { RoutingPolicyDraftToJSON, } from '../models/RoutingPolicyDraft.js';
52
+ import { RoutingPolicyUpdateToJSON, } from '../models/RoutingPolicyUpdate.js';
53
+ import { RoutingRuleDraftToJSON, } from '../models/RoutingRuleDraft.js';
54
+ import { RoutingRuleWriteResponseFromJSON, } from '../models/RoutingRuleWriteResponse.js';
55
+ import { SetApiKeyDisabledRequestToJSON, } from '../models/SetApiKeyDisabledRequest.js';
56
+ import { UpdateBudgetRequestToJSON, } from '../models/UpdateBudgetRequest.js';
57
+ import { UpdateConnectionRequestToJSON, } from '../models/UpdateConnectionRequest.js';
58
+ import { UpdateContractRequestToJSON, } from '../models/UpdateContractRequest.js';
59
+ import { UpdateModelAccessRequestToJSON, } from '../models/UpdateModelAccessRequest.js';
60
+ import { UpdateModelMappingRequestToJSON, } from '../models/UpdateModelMappingRequest.js';
61
+ import { UpdatePricingRequestToJSON, } from '../models/UpdatePricingRequest.js';
62
+ import { UpdateProviderRequestToJSON, } from '../models/UpdateProviderRequest.js';
63
+ import { UpdateRateLimitRequestToJSON, } from '../models/UpdateRateLimitRequest.js';
64
+ import { UpdateRouteGroupRequestToJSON, } from '../models/UpdateRouteGroupRequest.js';
65
+ import { WithAttributionModelAccessPolicyFromJSON, } from '../models/WithAttributionModelAccessPolicy.js';
66
+ import { WithAttributionRateLimitPolicyFromJSON, } from '../models/WithAttributionRateLimitPolicy.js';
67
+ import { WithAttributionTokenBudgetFromJSON, } from '../models/WithAttributionTokenBudget.js';
68
+ /**
69
+ *
70
+ */
71
+ export class LlmGatewayApi extends runtime.BaseAPI {
72
+ /**
73
+ * Creates request options for addRouteGroupMembers without sending the request
74
+ */
75
+ async addRouteGroupMembersRequestOpts(requestParameters) {
76
+ if (requestParameters['id'] == null) {
77
+ throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling addRouteGroupMembers().');
78
+ }
79
+ if (requestParameters['addRouteGroupMembersRequest'] == null) {
80
+ throw new runtime.RequiredError('addRouteGroupMembersRequest', 'Required parameter "addRouteGroupMembersRequest" was null or undefined when calling addRouteGroupMembers().');
81
+ }
82
+ const queryParameters = {};
83
+ const headerParameters = {};
84
+ headerParameters['Content-Type'] = 'application/json';
85
+ if (this.configuration && this.configuration.accessToken) {
86
+ // oauth required
87
+ const oauthToken = await this.configuration.accessToken("OAuth2", ["openid", "profile", "email"]);
88
+ if (oauthToken) {
89
+ headerParameters["Authorization"] = oauthToken.startsWith("Bearer ") ? oauthToken : `Bearer ${oauthToken}`;
90
+ }
91
+ }
92
+ if (this.configuration && this.configuration.accessToken) {
93
+ // oauth required
94
+ const oauthToken = await this.configuration.accessToken("OAuth2", ["openid", "profile", "email"]);
95
+ if (oauthToken) {
96
+ headerParameters["Authorization"] = oauthToken.startsWith("Bearer ") ? oauthToken : `Bearer ${oauthToken}`;
97
+ }
98
+ }
99
+ if (this.configuration && this.configuration.accessToken) {
100
+ const token = this.configuration.accessToken;
101
+ const tokenString = await token("ApiKey", []);
102
+ if (tokenString) {
103
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
104
+ }
105
+ }
106
+ let urlPath = `/api/llm-gateway/admin/model-route-groups/{id}/members`;
107
+ urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
108
+ return {
109
+ path: urlPath,
110
+ method: 'POST',
111
+ headers: headerParameters,
112
+ query: queryParameters,
113
+ body: AddRouteGroupMembersRequestToJSON(requestParameters['addRouteGroupMembersRequest']),
114
+ };
115
+ }
116
+ /**
117
+ * Add models to a route group
118
+ */
119
+ async addRouteGroupMembersRaw(requestParameters, initOverrides) {
120
+ const requestOptions = await this.addRouteGroupMembersRequestOpts(requestParameters);
121
+ const response = await this.request(requestOptions, initOverrides);
122
+ return new runtime.JSONApiResponse(response, (jsonValue) => ModelRouteGroupFromJSON(jsonValue));
123
+ }
124
+ /**
125
+ * Add models to a route group
126
+ */
127
+ async addRouteGroupMembers(requestParameters, initOverrides) {
128
+ const response = await this.addRouteGroupMembersRaw(requestParameters, initOverrides);
129
+ return await response.value();
130
+ }
131
+ /**
132
+ * Creates request options for archivePricing without sending the request
133
+ */
134
+ async archivePricingRequestOpts(requestParameters) {
135
+ if (requestParameters['id'] == null) {
136
+ throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling archivePricing().');
137
+ }
138
+ const queryParameters = {};
139
+ const headerParameters = {};
140
+ if (this.configuration && this.configuration.accessToken) {
141
+ // oauth required
142
+ const oauthToken = await this.configuration.accessToken("OAuth2", ["openid", "profile", "email"]);
143
+ if (oauthToken) {
144
+ headerParameters["Authorization"] = oauthToken.startsWith("Bearer ") ? oauthToken : `Bearer ${oauthToken}`;
145
+ }
146
+ }
147
+ if (this.configuration && this.configuration.accessToken) {
148
+ // oauth required
149
+ const oauthToken = await this.configuration.accessToken("OAuth2", ["openid", "profile", "email"]);
150
+ if (oauthToken) {
151
+ headerParameters["Authorization"] = oauthToken.startsWith("Bearer ") ? oauthToken : `Bearer ${oauthToken}`;
152
+ }
153
+ }
154
+ if (this.configuration && this.configuration.accessToken) {
155
+ const token = this.configuration.accessToken;
156
+ const tokenString = await token("ApiKey", []);
157
+ if (tokenString) {
158
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
159
+ }
160
+ }
161
+ let urlPath = `/api/llm-gateway/admin/model-pricing/{id}`;
162
+ urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
163
+ return {
164
+ path: urlPath,
165
+ method: 'DELETE',
166
+ headers: headerParameters,
167
+ query: queryParameters,
168
+ };
169
+ }
170
+ /**
171
+ * Dispatches on whether the targeted version is future-dated. A scheduled version is cancelled outright. The current effective version is archived instead: a tombstone version is appended, any pending future versions are cancelled, and the rule leaves the summary list. Archived rules stay readable via `GET /admin/model-pricing/archived` and their full history via `GET /admin/model-pricing/history`.
172
+ * Delete a model pricing rule
173
+ */
174
+ async archivePricingRaw(requestParameters, initOverrides) {
175
+ const requestOptions = await this.archivePricingRequestOpts(requestParameters);
176
+ const response = await this.request(requestOptions, initOverrides);
177
+ return new runtime.JSONApiResponse(response, (jsonValue) => ArchivePricingResponseFromJSON(jsonValue));
178
+ }
179
+ /**
180
+ * Dispatches on whether the targeted version is future-dated. A scheduled version is cancelled outright. The current effective version is archived instead: a tombstone version is appended, any pending future versions are cancelled, and the rule leaves the summary list. Archived rules stay readable via `GET /admin/model-pricing/archived` and their full history via `GET /admin/model-pricing/history`.
181
+ * Delete a model pricing rule
182
+ */
183
+ async archivePricing(requestParameters, initOverrides) {
184
+ const response = await this.archivePricingRaw(requestParameters, initOverrides);
185
+ return await response.value();
186
+ }
187
+ /**
188
+ * Creates request options for awsRoleConfig without sending the request
189
+ */
190
+ async awsRoleConfigRequestOpts() {
191
+ const queryParameters = {};
192
+ const headerParameters = {};
193
+ if (this.configuration && this.configuration.accessToken) {
194
+ // oauth required
195
+ const oauthToken = await this.configuration.accessToken("OAuth2", ["openid", "profile", "email"]);
196
+ if (oauthToken) {
197
+ headerParameters["Authorization"] = oauthToken.startsWith("Bearer ") ? oauthToken : `Bearer ${oauthToken}`;
198
+ }
199
+ }
200
+ if (this.configuration && this.configuration.accessToken) {
201
+ // oauth required
202
+ const oauthToken = await this.configuration.accessToken("OAuth2", ["openid", "profile", "email"]);
203
+ if (oauthToken) {
204
+ headerParameters["Authorization"] = oauthToken.startsWith("Bearer ") ? oauthToken : `Bearer ${oauthToken}`;
205
+ }
206
+ }
207
+ if (this.configuration && this.configuration.accessToken) {
208
+ const token = this.configuration.accessToken;
209
+ const tokenString = await token("ApiKey", []);
210
+ if (tokenString) {
211
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
212
+ }
213
+ }
214
+ let urlPath = `/api/llm-gateway/admin/connections/aws-role-config`;
215
+ return {
216
+ path: urlPath,
217
+ method: 'GET',
218
+ headers: headerParameters,
219
+ query: queryParameters,
220
+ };
221
+ }
222
+ /**
223
+ * Get Barndoor\'s AWS principal for role-assumption trust policies
224
+ */
225
+ async awsRoleConfigRaw(initOverrides) {
226
+ const requestOptions = await this.awsRoleConfigRequestOpts();
227
+ const response = await this.request(requestOptions, initOverrides);
228
+ return new runtime.JSONApiResponse(response, (jsonValue) => LlmGatewayAwsRoleConfigResponseFromJSON(jsonValue));
229
+ }
230
+ /**
231
+ * Get Barndoor\'s AWS principal for role-assumption trust policies
232
+ */
233
+ async awsRoleConfig(initOverrides) {
234
+ const response = await this.awsRoleConfigRaw(initOverrides);
235
+ return await response.value();
236
+ }
237
+ /**
238
+ * Creates request options for awsTrustInfo without sending the request
239
+ */
240
+ async awsTrustInfoRequestOpts(requestParameters) {
241
+ if (requestParameters['id'] == null) {
242
+ throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling awsTrustInfo().');
243
+ }
244
+ const queryParameters = {};
245
+ const headerParameters = {};
246
+ if (this.configuration && this.configuration.accessToken) {
247
+ // oauth required
248
+ const oauthToken = await this.configuration.accessToken("OAuth2", ["openid", "profile", "email"]);
249
+ if (oauthToken) {
250
+ headerParameters["Authorization"] = oauthToken.startsWith("Bearer ") ? oauthToken : `Bearer ${oauthToken}`;
251
+ }
252
+ }
253
+ if (this.configuration && this.configuration.accessToken) {
254
+ // oauth required
255
+ const oauthToken = await this.configuration.accessToken("OAuth2", ["openid", "profile", "email"]);
256
+ if (oauthToken) {
257
+ headerParameters["Authorization"] = oauthToken.startsWith("Bearer ") ? oauthToken : `Bearer ${oauthToken}`;
258
+ }
259
+ }
260
+ if (this.configuration && this.configuration.accessToken) {
261
+ const token = this.configuration.accessToken;
262
+ const tokenString = await token("ApiKey", []);
263
+ if (tokenString) {
264
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
265
+ }
266
+ }
267
+ let urlPath = `/api/llm-gateway/admin/connections/{id}/aws-trust-info`;
268
+ urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
269
+ return {
270
+ path: urlPath,
271
+ method: 'GET',
272
+ headers: headerParameters,
273
+ query: queryParameters,
274
+ };
275
+ }
276
+ /**
277
+ * Get the trust-policy principal and external id for a provider connection
278
+ */
279
+ async awsTrustInfoRaw(requestParameters, initOverrides) {
280
+ const requestOptions = await this.awsTrustInfoRequestOpts(requestParameters);
281
+ const response = await this.request(requestOptions, initOverrides);
282
+ return new runtime.JSONApiResponse(response, (jsonValue) => LlmGatewayAwsTrustInfoResponseFromJSON(jsonValue));
283
+ }
284
+ /**
285
+ * Get the trust-policy principal and external id for a provider connection
286
+ */
287
+ async awsTrustInfo(requestParameters, initOverrides) {
288
+ const response = await this.awsTrustInfoRaw(requestParameters, initOverrides);
289
+ return await response.value();
290
+ }
291
+ /**
292
+ * Creates request options for createApiKey without sending the request
293
+ */
294
+ async createApiKeyRequestOpts(requestParameters) {
295
+ if (requestParameters['createApiKeyRequest'] == null) {
296
+ throw new runtime.RequiredError('createApiKeyRequest', 'Required parameter "createApiKeyRequest" was null or undefined when calling createApiKey().');
297
+ }
298
+ const queryParameters = {};
299
+ const headerParameters = {};
300
+ headerParameters['Content-Type'] = 'application/json';
301
+ if (this.configuration && this.configuration.accessToken) {
302
+ // oauth required
303
+ const oauthToken = await this.configuration.accessToken("OAuth2", ["openid", "profile", "email"]);
304
+ if (oauthToken) {
305
+ headerParameters["Authorization"] = oauthToken.startsWith("Bearer ") ? oauthToken : `Bearer ${oauthToken}`;
306
+ }
307
+ }
308
+ if (this.configuration && this.configuration.accessToken) {
309
+ // oauth required
310
+ const oauthToken = await this.configuration.accessToken("OAuth2", ["openid", "profile", "email"]);
311
+ if (oauthToken) {
312
+ headerParameters["Authorization"] = oauthToken.startsWith("Bearer ") ? oauthToken : `Bearer ${oauthToken}`;
313
+ }
314
+ }
315
+ if (this.configuration && this.configuration.accessToken) {
316
+ const token = this.configuration.accessToken;
317
+ const tokenString = await token("ApiKey", []);
318
+ if (tokenString) {
319
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
320
+ }
321
+ }
322
+ let urlPath = `/api/llm-gateway/admin/api-keys`;
323
+ return {
324
+ path: urlPath,
325
+ method: 'POST',
326
+ headers: headerParameters,
327
+ query: queryParameters,
328
+ body: CreateApiKeyRequestToJSON(requestParameters['createApiKeyRequest']),
329
+ };
330
+ }
331
+ /**
332
+ * Create a API key
333
+ */
334
+ async createApiKeyRaw(requestParameters, initOverrides) {
335
+ const requestOptions = await this.createApiKeyRequestOpts(requestParameters);
336
+ const response = await this.request(requestOptions, initOverrides);
337
+ return new runtime.JSONApiResponse(response, (jsonValue) => CreateApiKeyResponseFromJSON(jsonValue));
338
+ }
339
+ /**
340
+ * Create a API key
341
+ */
342
+ async createApiKey(requestParameters, initOverrides) {
343
+ const response = await this.createApiKeyRaw(requestParameters, initOverrides);
344
+ return await response.value();
345
+ }
346
+ /**
347
+ * Creates request options for createBudget without sending the request
348
+ */
349
+ async createBudgetRequestOpts(requestParameters) {
350
+ if (requestParameters['createBudgetRequest'] == null) {
351
+ throw new runtime.RequiredError('createBudgetRequest', 'Required parameter "createBudgetRequest" was null or undefined when calling createBudget().');
352
+ }
353
+ const queryParameters = {};
354
+ const headerParameters = {};
355
+ headerParameters['Content-Type'] = 'application/json';
356
+ if (this.configuration && this.configuration.accessToken) {
357
+ // oauth required
358
+ const oauthToken = await this.configuration.accessToken("OAuth2", ["openid", "profile", "email"]);
359
+ if (oauthToken) {
360
+ headerParameters["Authorization"] = oauthToken.startsWith("Bearer ") ? oauthToken : `Bearer ${oauthToken}`;
361
+ }
362
+ }
363
+ if (this.configuration && this.configuration.accessToken) {
364
+ // oauth required
365
+ const oauthToken = await this.configuration.accessToken("OAuth2", ["openid", "profile", "email"]);
366
+ if (oauthToken) {
367
+ headerParameters["Authorization"] = oauthToken.startsWith("Bearer ") ? oauthToken : `Bearer ${oauthToken}`;
368
+ }
369
+ }
370
+ if (this.configuration && this.configuration.accessToken) {
371
+ const token = this.configuration.accessToken;
372
+ const tokenString = await token("ApiKey", []);
373
+ if (tokenString) {
374
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
375
+ }
376
+ }
377
+ let urlPath = `/api/llm-gateway/admin/budgets`;
378
+ return {
379
+ path: urlPath,
380
+ method: 'POST',
381
+ headers: headerParameters,
382
+ query: queryParameters,
383
+ body: CreateBudgetRequestToJSON(requestParameters['createBudgetRequest']),
384
+ };
385
+ }
386
+ /**
387
+ * Create a token budget
388
+ */
389
+ async createBudgetRaw(requestParameters, initOverrides) {
390
+ const requestOptions = await this.createBudgetRequestOpts(requestParameters);
391
+ const response = await this.request(requestOptions, initOverrides);
392
+ return new runtime.JSONApiResponse(response, (jsonValue) => WithAttributionTokenBudgetFromJSON(jsonValue));
393
+ }
394
+ /**
395
+ * Create a token budget
396
+ */
397
+ async createBudget(requestParameters, initOverrides) {
398
+ const response = await this.createBudgetRaw(requestParameters, initOverrides);
399
+ return await response.value();
400
+ }
401
+ /**
402
+ * Creates request options for createConnection without sending the request
403
+ */
404
+ async createConnectionRequestOpts(requestParameters) {
405
+ if (requestParameters['createConnectionRequest'] == null) {
406
+ throw new runtime.RequiredError('createConnectionRequest', 'Required parameter "createConnectionRequest" was null or undefined when calling createConnection().');
407
+ }
408
+ const queryParameters = {};
409
+ const headerParameters = {};
410
+ headerParameters['Content-Type'] = 'application/json';
411
+ if (this.configuration && this.configuration.accessToken) {
412
+ // oauth required
413
+ const oauthToken = await this.configuration.accessToken("OAuth2", ["openid", "profile", "email"]);
414
+ if (oauthToken) {
415
+ headerParameters["Authorization"] = oauthToken.startsWith("Bearer ") ? oauthToken : `Bearer ${oauthToken}`;
416
+ }
417
+ }
418
+ if (this.configuration && this.configuration.accessToken) {
419
+ // oauth required
420
+ const oauthToken = await this.configuration.accessToken("OAuth2", ["openid", "profile", "email"]);
421
+ if (oauthToken) {
422
+ headerParameters["Authorization"] = oauthToken.startsWith("Bearer ") ? oauthToken : `Bearer ${oauthToken}`;
423
+ }
424
+ }
425
+ if (this.configuration && this.configuration.accessToken) {
426
+ const token = this.configuration.accessToken;
427
+ const tokenString = await token("ApiKey", []);
428
+ if (tokenString) {
429
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
430
+ }
431
+ }
432
+ let urlPath = `/api/llm-gateway/admin/connections`;
433
+ return {
434
+ path: urlPath,
435
+ method: 'POST',
436
+ headers: headerParameters,
437
+ query: queryParameters,
438
+ body: CreateConnectionRequestToJSON(requestParameters['createConnectionRequest']),
439
+ };
440
+ }
441
+ /**
442
+ * Create a provider connection
443
+ */
444
+ async createConnectionRaw(requestParameters, initOverrides) {
445
+ const requestOptions = await this.createConnectionRequestOpts(requestParameters);
446
+ const response = await this.request(requestOptions, initOverrides);
447
+ return new runtime.JSONApiResponse(response, (jsonValue) => ConnectionFromJSON(jsonValue));
448
+ }
449
+ /**
450
+ * Create a provider connection
451
+ */
452
+ async createConnection(requestParameters, initOverrides) {
453
+ const response = await this.createConnectionRaw(requestParameters, initOverrides);
454
+ return await response.value();
455
+ }
456
+ /**
457
+ * Creates request options for createModelAccess without sending the request
458
+ */
459
+ async createModelAccessRequestOpts(requestParameters) {
460
+ if (requestParameters['createModelAccessRequest'] == null) {
461
+ throw new runtime.RequiredError('createModelAccessRequest', 'Required parameter "createModelAccessRequest" was null or undefined when calling createModelAccess().');
462
+ }
463
+ const queryParameters = {};
464
+ const headerParameters = {};
465
+ headerParameters['Content-Type'] = 'application/json';
466
+ if (this.configuration && this.configuration.accessToken) {
467
+ // oauth required
468
+ const oauthToken = await this.configuration.accessToken("OAuth2", ["openid", "profile", "email"]);
469
+ if (oauthToken) {
470
+ headerParameters["Authorization"] = oauthToken.startsWith("Bearer ") ? oauthToken : `Bearer ${oauthToken}`;
471
+ }
472
+ }
473
+ if (this.configuration && this.configuration.accessToken) {
474
+ // oauth required
475
+ const oauthToken = await this.configuration.accessToken("OAuth2", ["openid", "profile", "email"]);
476
+ if (oauthToken) {
477
+ headerParameters["Authorization"] = oauthToken.startsWith("Bearer ") ? oauthToken : `Bearer ${oauthToken}`;
478
+ }
479
+ }
480
+ if (this.configuration && this.configuration.accessToken) {
481
+ const token = this.configuration.accessToken;
482
+ const tokenString = await token("ApiKey", []);
483
+ if (tokenString) {
484
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
485
+ }
486
+ }
487
+ let urlPath = `/api/llm-gateway/admin/model-access`;
488
+ return {
489
+ path: urlPath,
490
+ method: 'POST',
491
+ headers: headerParameters,
492
+ query: queryParameters,
493
+ body: CreateModelAccessRequestToJSON(requestParameters['createModelAccessRequest']),
494
+ };
495
+ }
496
+ /**
497
+ * Create a model-access policy
498
+ */
499
+ async createModelAccessRaw(requestParameters, initOverrides) {
500
+ const requestOptions = await this.createModelAccessRequestOpts(requestParameters);
501
+ const response = await this.request(requestOptions, initOverrides);
502
+ return new runtime.JSONApiResponse(response, (jsonValue) => WithAttributionModelAccessPolicyFromJSON(jsonValue));
503
+ }
504
+ /**
505
+ * Create a model-access policy
506
+ */
507
+ async createModelAccess(requestParameters, initOverrides) {
508
+ const response = await this.createModelAccessRaw(requestParameters, initOverrides);
509
+ return await response.value();
510
+ }
511
+ /**
512
+ * Creates request options for createModelMapping without sending the request
513
+ */
514
+ async createModelMappingRequestOpts(requestParameters) {
515
+ if (requestParameters['createModelMappingRequest'] == null) {
516
+ throw new runtime.RequiredError('createModelMappingRequest', 'Required parameter "createModelMappingRequest" was null or undefined when calling createModelMapping().');
517
+ }
518
+ const queryParameters = {};
519
+ const headerParameters = {};
520
+ headerParameters['Content-Type'] = 'application/json';
521
+ if (this.configuration && this.configuration.accessToken) {
522
+ // oauth required
523
+ const oauthToken = await this.configuration.accessToken("OAuth2", ["openid", "profile", "email"]);
524
+ if (oauthToken) {
525
+ headerParameters["Authorization"] = oauthToken.startsWith("Bearer ") ? oauthToken : `Bearer ${oauthToken}`;
526
+ }
527
+ }
528
+ if (this.configuration && this.configuration.accessToken) {
529
+ // oauth required
530
+ const oauthToken = await this.configuration.accessToken("OAuth2", ["openid", "profile", "email"]);
531
+ if (oauthToken) {
532
+ headerParameters["Authorization"] = oauthToken.startsWith("Bearer ") ? oauthToken : `Bearer ${oauthToken}`;
533
+ }
534
+ }
535
+ if (this.configuration && this.configuration.accessToken) {
536
+ const token = this.configuration.accessToken;
537
+ const tokenString = await token("ApiKey", []);
538
+ if (tokenString) {
539
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
540
+ }
541
+ }
542
+ let urlPath = `/api/llm-gateway/admin/model-mappings`;
543
+ return {
544
+ path: urlPath,
545
+ method: 'POST',
546
+ headers: headerParameters,
547
+ query: queryParameters,
548
+ body: CreateModelMappingRequestToJSON(requestParameters['createModelMappingRequest']),
549
+ };
550
+ }
551
+ /**
552
+ * Create a model mapping
553
+ */
554
+ async createModelMappingRaw(requestParameters, initOverrides) {
555
+ const requestOptions = await this.createModelMappingRequestOpts(requestParameters);
556
+ const response = await this.request(requestOptions, initOverrides);
557
+ return new runtime.JSONApiResponse(response, (jsonValue) => ModelMappingFromJSON(jsonValue));
558
+ }
559
+ /**
560
+ * Create a model mapping
561
+ */
562
+ async createModelMapping(requestParameters, initOverrides) {
563
+ const response = await this.createModelMappingRaw(requestParameters, initOverrides);
564
+ return await response.value();
565
+ }
566
+ /**
567
+ * Creates request options for createPricing without sending the request
568
+ */
569
+ async createPricingRequestOpts(requestParameters) {
570
+ if (requestParameters['createPricingRequest'] == null) {
571
+ throw new runtime.RequiredError('createPricingRequest', 'Required parameter "createPricingRequest" was null or undefined when calling createPricing().');
572
+ }
573
+ const queryParameters = {};
574
+ const headerParameters = {};
575
+ headerParameters['Content-Type'] = 'application/json';
576
+ if (this.configuration && this.configuration.accessToken) {
577
+ // oauth required
578
+ const oauthToken = await this.configuration.accessToken("OAuth2", ["openid", "profile", "email"]);
579
+ if (oauthToken) {
580
+ headerParameters["Authorization"] = oauthToken.startsWith("Bearer ") ? oauthToken : `Bearer ${oauthToken}`;
581
+ }
582
+ }
583
+ if (this.configuration && this.configuration.accessToken) {
584
+ // oauth required
585
+ const oauthToken = await this.configuration.accessToken("OAuth2", ["openid", "profile", "email"]);
586
+ if (oauthToken) {
587
+ headerParameters["Authorization"] = oauthToken.startsWith("Bearer ") ? oauthToken : `Bearer ${oauthToken}`;
588
+ }
589
+ }
590
+ if (this.configuration && this.configuration.accessToken) {
591
+ const token = this.configuration.accessToken;
592
+ const tokenString = await token("ApiKey", []);
593
+ if (tokenString) {
594
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
595
+ }
596
+ }
597
+ let urlPath = `/api/llm-gateway/admin/model-pricing`;
598
+ return {
599
+ path: urlPath,
600
+ method: 'POST',
601
+ headers: headerParameters,
602
+ query: queryParameters,
603
+ body: CreatePricingRequestToJSON(requestParameters['createPricingRequest']),
604
+ };
605
+ }
606
+ /**
607
+ * Create a model pricing rule
608
+ */
609
+ async createPricingRaw(requestParameters, initOverrides) {
610
+ const requestOptions = await this.createPricingRequestOpts(requestParameters);
611
+ const response = await this.request(requestOptions, initOverrides);
612
+ return new runtime.JSONApiResponse(response, (jsonValue) => AdminModelPricingFromJSON(jsonValue));
613
+ }
614
+ /**
615
+ * Create a model pricing rule
616
+ */
617
+ async createPricing(requestParameters, initOverrides) {
618
+ const response = await this.createPricingRaw(requestParameters, initOverrides);
619
+ return await response.value();
620
+ }
621
+ /**
622
+ * Creates request options for createProfile without sending the request
623
+ */
624
+ async createProfileRequestOpts(requestParameters) {
625
+ if (requestParameters['createProfileRequest'] == null) {
626
+ throw new runtime.RequiredError('createProfileRequest', 'Required parameter "createProfileRequest" was null or undefined when calling createProfile().');
627
+ }
628
+ const queryParameters = {};
629
+ const headerParameters = {};
630
+ headerParameters['Content-Type'] = 'application/json';
631
+ if (this.configuration && this.configuration.accessToken) {
632
+ // oauth required
633
+ const oauthToken = await this.configuration.accessToken("OAuth2", ["openid", "profile", "email"]);
634
+ if (oauthToken) {
635
+ headerParameters["Authorization"] = oauthToken.startsWith("Bearer ") ? oauthToken : `Bearer ${oauthToken}`;
636
+ }
637
+ }
638
+ if (this.configuration && this.configuration.accessToken) {
639
+ // oauth required
640
+ const oauthToken = await this.configuration.accessToken("OAuth2", ["openid", "profile", "email"]);
641
+ if (oauthToken) {
642
+ headerParameters["Authorization"] = oauthToken.startsWith("Bearer ") ? oauthToken : `Bearer ${oauthToken}`;
643
+ }
644
+ }
645
+ if (this.configuration && this.configuration.accessToken) {
646
+ const token = this.configuration.accessToken;
647
+ const tokenString = await token("ApiKey", []);
648
+ if (tokenString) {
649
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
650
+ }
651
+ }
652
+ let urlPath = `/api/llm-gateway/admin/agent-runtime-profiles`;
653
+ return {
654
+ path: urlPath,
655
+ method: 'POST',
656
+ headers: headerParameters,
657
+ query: queryParameters,
658
+ body: CreateProfileRequestToJSON(requestParameters['createProfileRequest']),
659
+ };
660
+ }
661
+ /**
662
+ * Create an agent runtime profile
663
+ */
664
+ async createProfileRaw(requestParameters, initOverrides) {
665
+ const requestOptions = await this.createProfileRequestOpts(requestParameters);
666
+ const response = await this.request(requestOptions, initOverrides);
667
+ return new runtime.JSONApiResponse(response, (jsonValue) => AgentRuntimeProfileFromJSON(jsonValue));
668
+ }
669
+ /**
670
+ * Create an agent runtime profile
671
+ */
672
+ async createProfile(requestParameters, initOverrides) {
673
+ const response = await this.createProfileRaw(requestParameters, initOverrides);
674
+ return await response.value();
675
+ }
676
+ /**
677
+ * Creates request options for createProvider without sending the request
678
+ */
679
+ async createProviderRequestOpts(requestParameters) {
680
+ if (requestParameters['createProviderRequest'] == null) {
681
+ throw new runtime.RequiredError('createProviderRequest', 'Required parameter "createProviderRequest" was null or undefined when calling createProvider().');
682
+ }
683
+ const queryParameters = {};
684
+ const headerParameters = {};
685
+ headerParameters['Content-Type'] = 'application/json';
686
+ if (this.configuration && this.configuration.accessToken) {
687
+ // oauth required
688
+ const oauthToken = await this.configuration.accessToken("OAuth2", ["openid", "profile", "email"]);
689
+ if (oauthToken) {
690
+ headerParameters["Authorization"] = oauthToken.startsWith("Bearer ") ? oauthToken : `Bearer ${oauthToken}`;
691
+ }
692
+ }
693
+ if (this.configuration && this.configuration.accessToken) {
694
+ // oauth required
695
+ const oauthToken = await this.configuration.accessToken("OAuth2", ["openid", "profile", "email"]);
696
+ if (oauthToken) {
697
+ headerParameters["Authorization"] = oauthToken.startsWith("Bearer ") ? oauthToken : `Bearer ${oauthToken}`;
698
+ }
699
+ }
700
+ if (this.configuration && this.configuration.accessToken) {
701
+ const token = this.configuration.accessToken;
702
+ const tokenString = await token("ApiKey", []);
703
+ if (tokenString) {
704
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
705
+ }
706
+ }
707
+ let urlPath = `/api/llm-gateway/admin/providers`;
708
+ return {
709
+ path: urlPath,
710
+ method: 'POST',
711
+ headers: headerParameters,
712
+ query: queryParameters,
713
+ body: CreateProviderRequestToJSON(requestParameters['createProviderRequest']),
714
+ };
715
+ }
716
+ /**
717
+ * Create a provider
718
+ */
719
+ async createProviderRaw(requestParameters, initOverrides) {
720
+ const requestOptions = await this.createProviderRequestOpts(requestParameters);
721
+ const response = await this.request(requestOptions, initOverrides);
722
+ return new runtime.JSONApiResponse(response, (jsonValue) => ProviderFromJSON(jsonValue));
723
+ }
724
+ /**
725
+ * Create a provider
726
+ */
727
+ async createProvider(requestParameters, initOverrides) {
728
+ const response = await this.createProviderRaw(requestParameters, initOverrides);
729
+ return await response.value();
730
+ }
731
+ /**
732
+ * Creates request options for createRateLimit without sending the request
733
+ */
734
+ async createRateLimitRequestOpts(requestParameters) {
735
+ if (requestParameters['createRateLimitRequest'] == null) {
736
+ throw new runtime.RequiredError('createRateLimitRequest', 'Required parameter "createRateLimitRequest" was null or undefined when calling createRateLimit().');
737
+ }
738
+ const queryParameters = {};
739
+ const headerParameters = {};
740
+ headerParameters['Content-Type'] = 'application/json';
741
+ if (this.configuration && this.configuration.accessToken) {
742
+ // oauth required
743
+ const oauthToken = await this.configuration.accessToken("OAuth2", ["openid", "profile", "email"]);
744
+ if (oauthToken) {
745
+ headerParameters["Authorization"] = oauthToken.startsWith("Bearer ") ? oauthToken : `Bearer ${oauthToken}`;
746
+ }
747
+ }
748
+ if (this.configuration && this.configuration.accessToken) {
749
+ // oauth required
750
+ const oauthToken = await this.configuration.accessToken("OAuth2", ["openid", "profile", "email"]);
751
+ if (oauthToken) {
752
+ headerParameters["Authorization"] = oauthToken.startsWith("Bearer ") ? oauthToken : `Bearer ${oauthToken}`;
753
+ }
754
+ }
755
+ if (this.configuration && this.configuration.accessToken) {
756
+ const token = this.configuration.accessToken;
757
+ const tokenString = await token("ApiKey", []);
758
+ if (tokenString) {
759
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
760
+ }
761
+ }
762
+ let urlPath = `/api/llm-gateway/admin/rate-limits`;
763
+ return {
764
+ path: urlPath,
765
+ method: 'POST',
766
+ headers: headerParameters,
767
+ query: queryParameters,
768
+ body: CreateRateLimitRequestToJSON(requestParameters['createRateLimitRequest']),
769
+ };
770
+ }
771
+ /**
772
+ * Create a rate-limit policy
773
+ */
774
+ async createRateLimitRaw(requestParameters, initOverrides) {
775
+ const requestOptions = await this.createRateLimitRequestOpts(requestParameters);
776
+ const response = await this.request(requestOptions, initOverrides);
777
+ return new runtime.JSONApiResponse(response, (jsonValue) => WithAttributionRateLimitPolicyFromJSON(jsonValue));
778
+ }
779
+ /**
780
+ * Create a rate-limit policy
781
+ */
782
+ async createRateLimit(requestParameters, initOverrides) {
783
+ const response = await this.createRateLimitRaw(requestParameters, initOverrides);
784
+ return await response.value();
785
+ }
786
+ /**
787
+ * Creates request options for createRouteGroup without sending the request
788
+ */
789
+ async createRouteGroupRequestOpts(requestParameters) {
790
+ if (requestParameters['createRouteGroupRequest'] == null) {
791
+ throw new runtime.RequiredError('createRouteGroupRequest', 'Required parameter "createRouteGroupRequest" was null or undefined when calling createRouteGroup().');
792
+ }
793
+ const queryParameters = {};
794
+ const headerParameters = {};
795
+ headerParameters['Content-Type'] = 'application/json';
796
+ if (this.configuration && this.configuration.accessToken) {
797
+ // oauth required
798
+ const oauthToken = await this.configuration.accessToken("OAuth2", ["openid", "profile", "email"]);
799
+ if (oauthToken) {
800
+ headerParameters["Authorization"] = oauthToken.startsWith("Bearer ") ? oauthToken : `Bearer ${oauthToken}`;
801
+ }
802
+ }
803
+ if (this.configuration && this.configuration.accessToken) {
804
+ // oauth required
805
+ const oauthToken = await this.configuration.accessToken("OAuth2", ["openid", "profile", "email"]);
806
+ if (oauthToken) {
807
+ headerParameters["Authorization"] = oauthToken.startsWith("Bearer ") ? oauthToken : `Bearer ${oauthToken}`;
808
+ }
809
+ }
810
+ if (this.configuration && this.configuration.accessToken) {
811
+ const token = this.configuration.accessToken;
812
+ const tokenString = await token("ApiKey", []);
813
+ if (tokenString) {
814
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
815
+ }
816
+ }
817
+ let urlPath = `/api/llm-gateway/admin/model-route-groups`;
818
+ return {
819
+ path: urlPath,
820
+ method: 'POST',
821
+ headers: headerParameters,
822
+ query: queryParameters,
823
+ body: CreateRouteGroupRequestToJSON(requestParameters['createRouteGroupRequest']),
824
+ };
825
+ }
826
+ /**
827
+ * Create a model route group
828
+ */
829
+ async createRouteGroupRaw(requestParameters, initOverrides) {
830
+ const requestOptions = await this.createRouteGroupRequestOpts(requestParameters);
831
+ const response = await this.request(requestOptions, initOverrides);
832
+ return new runtime.JSONApiResponse(response, (jsonValue) => ModelRouteGroupFromJSON(jsonValue));
833
+ }
834
+ /**
835
+ * Create a model route group
836
+ */
837
+ async createRouteGroup(requestParameters, initOverrides) {
838
+ const response = await this.createRouteGroupRaw(requestParameters, initOverrides);
839
+ return await response.value();
840
+ }
841
+ /**
842
+ * Creates request options for createRoutingPolicy without sending the request
843
+ */
844
+ async createRoutingPolicyRequestOpts(requestParameters) {
845
+ if (requestParameters['routingPolicyDraft'] == null) {
846
+ throw new runtime.RequiredError('routingPolicyDraft', 'Required parameter "routingPolicyDraft" was null or undefined when calling createRoutingPolicy().');
847
+ }
848
+ const queryParameters = {};
849
+ const headerParameters = {};
850
+ headerParameters['Content-Type'] = 'application/json';
851
+ if (this.configuration && this.configuration.accessToken) {
852
+ // oauth required
853
+ const oauthToken = await this.configuration.accessToken("OAuth2", ["openid", "profile", "email"]);
854
+ if (oauthToken) {
855
+ headerParameters["Authorization"] = oauthToken.startsWith("Bearer ") ? oauthToken : `Bearer ${oauthToken}`;
856
+ }
857
+ }
858
+ if (this.configuration && this.configuration.accessToken) {
859
+ // oauth required
860
+ const oauthToken = await this.configuration.accessToken("OAuth2", ["openid", "profile", "email"]);
861
+ if (oauthToken) {
862
+ headerParameters["Authorization"] = oauthToken.startsWith("Bearer ") ? oauthToken : `Bearer ${oauthToken}`;
863
+ }
864
+ }
865
+ if (this.configuration && this.configuration.accessToken) {
866
+ const token = this.configuration.accessToken;
867
+ const tokenString = await token("ApiKey", []);
868
+ if (tokenString) {
869
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
870
+ }
871
+ }
872
+ let urlPath = `/api/llm-gateway/admin/routing-policies`;
873
+ return {
874
+ path: urlPath,
875
+ method: 'POST',
876
+ headers: headerParameters,
877
+ query: queryParameters,
878
+ body: RoutingPolicyDraftToJSON(requestParameters['routingPolicyDraft']),
879
+ };
880
+ }
881
+ /**
882
+ * Create a routing policy
883
+ */
884
+ async createRoutingPolicyRaw(requestParameters, initOverrides) {
885
+ const requestOptions = await this.createRoutingPolicyRequestOpts(requestParameters);
886
+ const response = await this.request(requestOptions, initOverrides);
887
+ return new runtime.JSONApiResponse(response, (jsonValue) => RoutingPolicyFromJSON(jsonValue));
888
+ }
889
+ /**
890
+ * Create a routing policy
891
+ */
892
+ async createRoutingPolicy(requestParameters, initOverrides) {
893
+ const response = await this.createRoutingPolicyRaw(requestParameters, initOverrides);
894
+ return await response.value();
895
+ }
896
+ /**
897
+ * Creates request options for createRoutingRule without sending the request
898
+ */
899
+ async createRoutingRuleRequestOpts(requestParameters) {
900
+ if (requestParameters['policyId'] == null) {
901
+ throw new runtime.RequiredError('policyId', 'Required parameter "policyId" was null or undefined when calling createRoutingRule().');
902
+ }
903
+ if (requestParameters['routingRuleDraft'] == null) {
904
+ throw new runtime.RequiredError('routingRuleDraft', 'Required parameter "routingRuleDraft" was null or undefined when calling createRoutingRule().');
905
+ }
906
+ const queryParameters = {};
907
+ if (requestParameters['policyId'] != null) {
908
+ queryParameters['policy_id'] = requestParameters['policyId'];
909
+ }
910
+ const headerParameters = {};
911
+ headerParameters['Content-Type'] = 'application/json';
912
+ if (this.configuration && this.configuration.accessToken) {
913
+ // oauth required
914
+ const oauthToken = await this.configuration.accessToken("OAuth2", ["openid", "profile", "email"]);
915
+ if (oauthToken) {
916
+ headerParameters["Authorization"] = oauthToken.startsWith("Bearer ") ? oauthToken : `Bearer ${oauthToken}`;
917
+ }
918
+ }
919
+ if (this.configuration && this.configuration.accessToken) {
920
+ // oauth required
921
+ const oauthToken = await this.configuration.accessToken("OAuth2", ["openid", "profile", "email"]);
922
+ if (oauthToken) {
923
+ headerParameters["Authorization"] = oauthToken.startsWith("Bearer ") ? oauthToken : `Bearer ${oauthToken}`;
924
+ }
925
+ }
926
+ if (this.configuration && this.configuration.accessToken) {
927
+ const token = this.configuration.accessToken;
928
+ const tokenString = await token("ApiKey", []);
929
+ if (tokenString) {
930
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
931
+ }
932
+ }
933
+ let urlPath = `/api/llm-gateway/admin/routing-rules`;
934
+ return {
935
+ path: urlPath,
936
+ method: 'POST',
937
+ headers: headerParameters,
938
+ query: queryParameters,
939
+ body: RoutingRuleDraftToJSON(requestParameters['routingRuleDraft']),
940
+ };
941
+ }
942
+ /**
943
+ * Create a routing rule
944
+ */
945
+ async createRoutingRuleRaw(requestParameters, initOverrides) {
946
+ const requestOptions = await this.createRoutingRuleRequestOpts(requestParameters);
947
+ const response = await this.request(requestOptions, initOverrides);
948
+ return new runtime.JSONApiResponse(response, (jsonValue) => RoutingRuleWriteResponseFromJSON(jsonValue));
949
+ }
950
+ /**
951
+ * Create a routing rule
952
+ */
953
+ async createRoutingRule(requestParameters, initOverrides) {
954
+ const response = await this.createRoutingRuleRaw(requestParameters, initOverrides);
955
+ return await response.value();
956
+ }
957
+ /**
958
+ * Creates request options for deleteBudget without sending the request
959
+ */
960
+ async deleteBudgetRequestOpts(requestParameters) {
961
+ if (requestParameters['id'] == null) {
962
+ throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling deleteBudget().');
963
+ }
964
+ const queryParameters = {};
965
+ const headerParameters = {};
966
+ if (this.configuration && this.configuration.accessToken) {
967
+ // oauth required
968
+ const oauthToken = await this.configuration.accessToken("OAuth2", ["openid", "profile", "email"]);
969
+ if (oauthToken) {
970
+ headerParameters["Authorization"] = oauthToken.startsWith("Bearer ") ? oauthToken : `Bearer ${oauthToken}`;
971
+ }
972
+ }
973
+ if (this.configuration && this.configuration.accessToken) {
974
+ // oauth required
975
+ const oauthToken = await this.configuration.accessToken("OAuth2", ["openid", "profile", "email"]);
976
+ if (oauthToken) {
977
+ headerParameters["Authorization"] = oauthToken.startsWith("Bearer ") ? oauthToken : `Bearer ${oauthToken}`;
978
+ }
979
+ }
980
+ if (this.configuration && this.configuration.accessToken) {
981
+ const token = this.configuration.accessToken;
982
+ const tokenString = await token("ApiKey", []);
983
+ if (tokenString) {
984
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
985
+ }
986
+ }
987
+ let urlPath = `/api/llm-gateway/admin/budgets/{id}`;
988
+ urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
989
+ return {
990
+ path: urlPath,
991
+ method: 'DELETE',
992
+ headers: headerParameters,
993
+ query: queryParameters,
994
+ };
995
+ }
996
+ /**
997
+ * Delete a token budget
998
+ */
999
+ async deleteBudgetRaw(requestParameters, initOverrides) {
1000
+ const requestOptions = await this.deleteBudgetRequestOpts(requestParameters);
1001
+ const response = await this.request(requestOptions, initOverrides);
1002
+ return new runtime.JSONApiResponse(response, (jsonValue) => DeletedResponseFromJSON(jsonValue));
1003
+ }
1004
+ /**
1005
+ * Delete a token budget
1006
+ */
1007
+ async deleteBudget(requestParameters, initOverrides) {
1008
+ const response = await this.deleteBudgetRaw(requestParameters, initOverrides);
1009
+ return await response.value();
1010
+ }
1011
+ /**
1012
+ * Creates request options for deleteConnection without sending the request
1013
+ */
1014
+ async deleteConnectionRequestOpts(requestParameters) {
1015
+ if (requestParameters['id'] == null) {
1016
+ throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling deleteConnection().');
1017
+ }
1018
+ const queryParameters = {};
1019
+ const headerParameters = {};
1020
+ if (this.configuration && this.configuration.accessToken) {
1021
+ // oauth required
1022
+ const oauthToken = await this.configuration.accessToken("OAuth2", ["openid", "profile", "email"]);
1023
+ if (oauthToken) {
1024
+ headerParameters["Authorization"] = oauthToken.startsWith("Bearer ") ? oauthToken : `Bearer ${oauthToken}`;
1025
+ }
1026
+ }
1027
+ if (this.configuration && this.configuration.accessToken) {
1028
+ // oauth required
1029
+ const oauthToken = await this.configuration.accessToken("OAuth2", ["openid", "profile", "email"]);
1030
+ if (oauthToken) {
1031
+ headerParameters["Authorization"] = oauthToken.startsWith("Bearer ") ? oauthToken : `Bearer ${oauthToken}`;
1032
+ }
1033
+ }
1034
+ if (this.configuration && this.configuration.accessToken) {
1035
+ const token = this.configuration.accessToken;
1036
+ const tokenString = await token("ApiKey", []);
1037
+ if (tokenString) {
1038
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
1039
+ }
1040
+ }
1041
+ let urlPath = `/api/llm-gateway/admin/connections/{id}`;
1042
+ urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
1043
+ return {
1044
+ path: urlPath,
1045
+ method: 'DELETE',
1046
+ headers: headerParameters,
1047
+ query: queryParameters,
1048
+ };
1049
+ }
1050
+ /**
1051
+ * Delete a provider connection
1052
+ */
1053
+ async deleteConnectionRaw(requestParameters, initOverrides) {
1054
+ const requestOptions = await this.deleteConnectionRequestOpts(requestParameters);
1055
+ const response = await this.request(requestOptions, initOverrides);
1056
+ return new runtime.JSONApiResponse(response, (jsonValue) => DeletedResponseFromJSON(jsonValue));
1057
+ }
1058
+ /**
1059
+ * Delete a provider connection
1060
+ */
1061
+ async deleteConnection(requestParameters, initOverrides) {
1062
+ const response = await this.deleteConnectionRaw(requestParameters, initOverrides);
1063
+ return await response.value();
1064
+ }
1065
+ /**
1066
+ * Creates request options for deleteModelAccess without sending the request
1067
+ */
1068
+ async deleteModelAccessRequestOpts(requestParameters) {
1069
+ if (requestParameters['id'] == null) {
1070
+ throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling deleteModelAccess().');
1071
+ }
1072
+ const queryParameters = {};
1073
+ const headerParameters = {};
1074
+ if (this.configuration && this.configuration.accessToken) {
1075
+ // oauth required
1076
+ const oauthToken = await this.configuration.accessToken("OAuth2", ["openid", "profile", "email"]);
1077
+ if (oauthToken) {
1078
+ headerParameters["Authorization"] = oauthToken.startsWith("Bearer ") ? oauthToken : `Bearer ${oauthToken}`;
1079
+ }
1080
+ }
1081
+ if (this.configuration && this.configuration.accessToken) {
1082
+ // oauth required
1083
+ const oauthToken = await this.configuration.accessToken("OAuth2", ["openid", "profile", "email"]);
1084
+ if (oauthToken) {
1085
+ headerParameters["Authorization"] = oauthToken.startsWith("Bearer ") ? oauthToken : `Bearer ${oauthToken}`;
1086
+ }
1087
+ }
1088
+ if (this.configuration && this.configuration.accessToken) {
1089
+ const token = this.configuration.accessToken;
1090
+ const tokenString = await token("ApiKey", []);
1091
+ if (tokenString) {
1092
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
1093
+ }
1094
+ }
1095
+ let urlPath = `/api/llm-gateway/admin/model-access/{id}`;
1096
+ urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
1097
+ return {
1098
+ path: urlPath,
1099
+ method: 'DELETE',
1100
+ headers: headerParameters,
1101
+ query: queryParameters,
1102
+ };
1103
+ }
1104
+ /**
1105
+ * Delete a model-access policy
1106
+ */
1107
+ async deleteModelAccessRaw(requestParameters, initOverrides) {
1108
+ const requestOptions = await this.deleteModelAccessRequestOpts(requestParameters);
1109
+ const response = await this.request(requestOptions, initOverrides);
1110
+ return new runtime.JSONApiResponse(response, (jsonValue) => DeletedResponseFromJSON(jsonValue));
1111
+ }
1112
+ /**
1113
+ * Delete a model-access policy
1114
+ */
1115
+ async deleteModelAccess(requestParameters, initOverrides) {
1116
+ const response = await this.deleteModelAccessRaw(requestParameters, initOverrides);
1117
+ return await response.value();
1118
+ }
1119
+ /**
1120
+ * Creates request options for deleteModelMapping without sending the request
1121
+ */
1122
+ async deleteModelMappingRequestOpts(requestParameters) {
1123
+ if (requestParameters['id'] == null) {
1124
+ throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling deleteModelMapping().');
1125
+ }
1126
+ const queryParameters = {};
1127
+ const headerParameters = {};
1128
+ if (this.configuration && this.configuration.accessToken) {
1129
+ // oauth required
1130
+ const oauthToken = await this.configuration.accessToken("OAuth2", ["openid", "profile", "email"]);
1131
+ if (oauthToken) {
1132
+ headerParameters["Authorization"] = oauthToken.startsWith("Bearer ") ? oauthToken : `Bearer ${oauthToken}`;
1133
+ }
1134
+ }
1135
+ if (this.configuration && this.configuration.accessToken) {
1136
+ // oauth required
1137
+ const oauthToken = await this.configuration.accessToken("OAuth2", ["openid", "profile", "email"]);
1138
+ if (oauthToken) {
1139
+ headerParameters["Authorization"] = oauthToken.startsWith("Bearer ") ? oauthToken : `Bearer ${oauthToken}`;
1140
+ }
1141
+ }
1142
+ if (this.configuration && this.configuration.accessToken) {
1143
+ const token = this.configuration.accessToken;
1144
+ const tokenString = await token("ApiKey", []);
1145
+ if (tokenString) {
1146
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
1147
+ }
1148
+ }
1149
+ let urlPath = `/api/llm-gateway/admin/model-mappings/{id}`;
1150
+ urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
1151
+ return {
1152
+ path: urlPath,
1153
+ method: 'DELETE',
1154
+ headers: headerParameters,
1155
+ query: queryParameters,
1156
+ };
1157
+ }
1158
+ /**
1159
+ * Delete a model mapping
1160
+ */
1161
+ async deleteModelMappingRaw(requestParameters, initOverrides) {
1162
+ const requestOptions = await this.deleteModelMappingRequestOpts(requestParameters);
1163
+ const response = await this.request(requestOptions, initOverrides);
1164
+ return new runtime.JSONApiResponse(response, (jsonValue) => DeletedResponseFromJSON(jsonValue));
1165
+ }
1166
+ /**
1167
+ * Delete a model mapping
1168
+ */
1169
+ async deleteModelMapping(requestParameters, initOverrides) {
1170
+ const response = await this.deleteModelMappingRaw(requestParameters, initOverrides);
1171
+ return await response.value();
1172
+ }
1173
+ /**
1174
+ * Creates request options for deleteProfile without sending the request
1175
+ */
1176
+ async deleteProfileRequestOpts(requestParameters) {
1177
+ if (requestParameters['slug'] == null) {
1178
+ throw new runtime.RequiredError('slug', 'Required parameter "slug" was null or undefined when calling deleteProfile().');
1179
+ }
1180
+ const queryParameters = {};
1181
+ const headerParameters = {};
1182
+ if (this.configuration && this.configuration.accessToken) {
1183
+ // oauth required
1184
+ const oauthToken = await this.configuration.accessToken("OAuth2", ["openid", "profile", "email"]);
1185
+ if (oauthToken) {
1186
+ headerParameters["Authorization"] = oauthToken.startsWith("Bearer ") ? oauthToken : `Bearer ${oauthToken}`;
1187
+ }
1188
+ }
1189
+ if (this.configuration && this.configuration.accessToken) {
1190
+ // oauth required
1191
+ const oauthToken = await this.configuration.accessToken("OAuth2", ["openid", "profile", "email"]);
1192
+ if (oauthToken) {
1193
+ headerParameters["Authorization"] = oauthToken.startsWith("Bearer ") ? oauthToken : `Bearer ${oauthToken}`;
1194
+ }
1195
+ }
1196
+ if (this.configuration && this.configuration.accessToken) {
1197
+ const token = this.configuration.accessToken;
1198
+ const tokenString = await token("ApiKey", []);
1199
+ if (tokenString) {
1200
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
1201
+ }
1202
+ }
1203
+ let urlPath = `/api/llm-gateway/admin/agent-runtime-profiles/{slug}`;
1204
+ urlPath = urlPath.replace('{slug}', encodeURIComponent(String(requestParameters['slug'])));
1205
+ return {
1206
+ path: urlPath,
1207
+ method: 'DELETE',
1208
+ headers: headerParameters,
1209
+ query: queryParameters,
1210
+ };
1211
+ }
1212
+ /**
1213
+ * Delete an agent runtime profile
1214
+ */
1215
+ async deleteProfileRaw(requestParameters, initOverrides) {
1216
+ const requestOptions = await this.deleteProfileRequestOpts(requestParameters);
1217
+ const response = await this.request(requestOptions, initOverrides);
1218
+ return new runtime.JSONApiResponse(response, (jsonValue) => DeletedResponseFromJSON(jsonValue));
1219
+ }
1220
+ /**
1221
+ * Delete an agent runtime profile
1222
+ */
1223
+ async deleteProfile(requestParameters, initOverrides) {
1224
+ const response = await this.deleteProfileRaw(requestParameters, initOverrides);
1225
+ return await response.value();
1226
+ }
1227
+ /**
1228
+ * Creates request options for deleteProvider without sending the request
1229
+ */
1230
+ async deleteProviderRequestOpts(requestParameters) {
1231
+ if (requestParameters['id'] == null) {
1232
+ throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling deleteProvider().');
1233
+ }
1234
+ const queryParameters = {};
1235
+ const headerParameters = {};
1236
+ if (this.configuration && this.configuration.accessToken) {
1237
+ // oauth required
1238
+ const oauthToken = await this.configuration.accessToken("OAuth2", ["openid", "profile", "email"]);
1239
+ if (oauthToken) {
1240
+ headerParameters["Authorization"] = oauthToken.startsWith("Bearer ") ? oauthToken : `Bearer ${oauthToken}`;
1241
+ }
1242
+ }
1243
+ if (this.configuration && this.configuration.accessToken) {
1244
+ // oauth required
1245
+ const oauthToken = await this.configuration.accessToken("OAuth2", ["openid", "profile", "email"]);
1246
+ if (oauthToken) {
1247
+ headerParameters["Authorization"] = oauthToken.startsWith("Bearer ") ? oauthToken : `Bearer ${oauthToken}`;
1248
+ }
1249
+ }
1250
+ if (this.configuration && this.configuration.accessToken) {
1251
+ const token = this.configuration.accessToken;
1252
+ const tokenString = await token("ApiKey", []);
1253
+ if (tokenString) {
1254
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
1255
+ }
1256
+ }
1257
+ let urlPath = `/api/llm-gateway/admin/providers/{id}`;
1258
+ urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
1259
+ return {
1260
+ path: urlPath,
1261
+ method: 'DELETE',
1262
+ headers: headerParameters,
1263
+ query: queryParameters,
1264
+ };
1265
+ }
1266
+ /**
1267
+ * Delete a provider
1268
+ */
1269
+ async deleteProviderRaw(requestParameters, initOverrides) {
1270
+ const requestOptions = await this.deleteProviderRequestOpts(requestParameters);
1271
+ const response = await this.request(requestOptions, initOverrides);
1272
+ return new runtime.JSONApiResponse(response, (jsonValue) => DeletedResponseFromJSON(jsonValue));
1273
+ }
1274
+ /**
1275
+ * Delete a provider
1276
+ */
1277
+ async deleteProvider(requestParameters, initOverrides) {
1278
+ const response = await this.deleteProviderRaw(requestParameters, initOverrides);
1279
+ return await response.value();
1280
+ }
1281
+ /**
1282
+ * Creates request options for deleteRateLimit without sending the request
1283
+ */
1284
+ async deleteRateLimitRequestOpts(requestParameters) {
1285
+ if (requestParameters['id'] == null) {
1286
+ throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling deleteRateLimit().');
1287
+ }
1288
+ const queryParameters = {};
1289
+ const headerParameters = {};
1290
+ if (this.configuration && this.configuration.accessToken) {
1291
+ // oauth required
1292
+ const oauthToken = await this.configuration.accessToken("OAuth2", ["openid", "profile", "email"]);
1293
+ if (oauthToken) {
1294
+ headerParameters["Authorization"] = oauthToken.startsWith("Bearer ") ? oauthToken : `Bearer ${oauthToken}`;
1295
+ }
1296
+ }
1297
+ if (this.configuration && this.configuration.accessToken) {
1298
+ // oauth required
1299
+ const oauthToken = await this.configuration.accessToken("OAuth2", ["openid", "profile", "email"]);
1300
+ if (oauthToken) {
1301
+ headerParameters["Authorization"] = oauthToken.startsWith("Bearer ") ? oauthToken : `Bearer ${oauthToken}`;
1302
+ }
1303
+ }
1304
+ if (this.configuration && this.configuration.accessToken) {
1305
+ const token = this.configuration.accessToken;
1306
+ const tokenString = await token("ApiKey", []);
1307
+ if (tokenString) {
1308
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
1309
+ }
1310
+ }
1311
+ let urlPath = `/api/llm-gateway/admin/rate-limits/{id}`;
1312
+ urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
1313
+ return {
1314
+ path: urlPath,
1315
+ method: 'DELETE',
1316
+ headers: headerParameters,
1317
+ query: queryParameters,
1318
+ };
1319
+ }
1320
+ /**
1321
+ * Delete a rate-limit policy
1322
+ */
1323
+ async deleteRateLimitRaw(requestParameters, initOverrides) {
1324
+ const requestOptions = await this.deleteRateLimitRequestOpts(requestParameters);
1325
+ const response = await this.request(requestOptions, initOverrides);
1326
+ return new runtime.JSONApiResponse(response, (jsonValue) => DeletedResponseFromJSON(jsonValue));
1327
+ }
1328
+ /**
1329
+ * Delete a rate-limit policy
1330
+ */
1331
+ async deleteRateLimit(requestParameters, initOverrides) {
1332
+ const response = await this.deleteRateLimitRaw(requestParameters, initOverrides);
1333
+ return await response.value();
1334
+ }
1335
+ /**
1336
+ * Creates request options for deleteRouteGroup without sending the request
1337
+ */
1338
+ async deleteRouteGroupRequestOpts(requestParameters) {
1339
+ if (requestParameters['id'] == null) {
1340
+ throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling deleteRouteGroup().');
1341
+ }
1342
+ const queryParameters = {};
1343
+ const headerParameters = {};
1344
+ if (this.configuration && this.configuration.accessToken) {
1345
+ // oauth required
1346
+ const oauthToken = await this.configuration.accessToken("OAuth2", ["openid", "profile", "email"]);
1347
+ if (oauthToken) {
1348
+ headerParameters["Authorization"] = oauthToken.startsWith("Bearer ") ? oauthToken : `Bearer ${oauthToken}`;
1349
+ }
1350
+ }
1351
+ if (this.configuration && this.configuration.accessToken) {
1352
+ // oauth required
1353
+ const oauthToken = await this.configuration.accessToken("OAuth2", ["openid", "profile", "email"]);
1354
+ if (oauthToken) {
1355
+ headerParameters["Authorization"] = oauthToken.startsWith("Bearer ") ? oauthToken : `Bearer ${oauthToken}`;
1356
+ }
1357
+ }
1358
+ if (this.configuration && this.configuration.accessToken) {
1359
+ const token = this.configuration.accessToken;
1360
+ const tokenString = await token("ApiKey", []);
1361
+ if (tokenString) {
1362
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
1363
+ }
1364
+ }
1365
+ let urlPath = `/api/llm-gateway/admin/model-route-groups/{id}`;
1366
+ urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
1367
+ return {
1368
+ path: urlPath,
1369
+ method: 'DELETE',
1370
+ headers: headerParameters,
1371
+ query: queryParameters,
1372
+ };
1373
+ }
1374
+ /**
1375
+ * Policies that targeted the group keep the now-dangling target rather than being rewritten. Rewriting them would silently change what an allowlist permits at a moment nobody was looking at the policy; the dangling target expands to nothing and logs, which is the loud version of the same outcome.
1376
+ * Delete a model route group
1377
+ */
1378
+ async deleteRouteGroupRaw(requestParameters, initOverrides) {
1379
+ const requestOptions = await this.deleteRouteGroupRequestOpts(requestParameters);
1380
+ const response = await this.request(requestOptions, initOverrides);
1381
+ return new runtime.JSONApiResponse(response, (jsonValue) => DeletedResponseFromJSON(jsonValue));
1382
+ }
1383
+ /**
1384
+ * Policies that targeted the group keep the now-dangling target rather than being rewritten. Rewriting them would silently change what an allowlist permits at a moment nobody was looking at the policy; the dangling target expands to nothing and logs, which is the loud version of the same outcome.
1385
+ * Delete a model route group
1386
+ */
1387
+ async deleteRouteGroup(requestParameters, initOverrides) {
1388
+ const response = await this.deleteRouteGroupRaw(requestParameters, initOverrides);
1389
+ return await response.value();
1390
+ }
1391
+ /**
1392
+ * Creates request options for deleteRoutingPolicy without sending the request
1393
+ */
1394
+ async deleteRoutingPolicyRequestOpts(requestParameters) {
1395
+ if (requestParameters['id'] == null) {
1396
+ throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling deleteRoutingPolicy().');
1397
+ }
1398
+ const queryParameters = {};
1399
+ const headerParameters = {};
1400
+ if (this.configuration && this.configuration.accessToken) {
1401
+ // oauth required
1402
+ const oauthToken = await this.configuration.accessToken("OAuth2", ["openid", "profile", "email"]);
1403
+ if (oauthToken) {
1404
+ headerParameters["Authorization"] = oauthToken.startsWith("Bearer ") ? oauthToken : `Bearer ${oauthToken}`;
1405
+ }
1406
+ }
1407
+ if (this.configuration && this.configuration.accessToken) {
1408
+ // oauth required
1409
+ const oauthToken = await this.configuration.accessToken("OAuth2", ["openid", "profile", "email"]);
1410
+ if (oauthToken) {
1411
+ headerParameters["Authorization"] = oauthToken.startsWith("Bearer ") ? oauthToken : `Bearer ${oauthToken}`;
1412
+ }
1413
+ }
1414
+ if (this.configuration && this.configuration.accessToken) {
1415
+ const token = this.configuration.accessToken;
1416
+ const tokenString = await token("ApiKey", []);
1417
+ if (tokenString) {
1418
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
1419
+ }
1420
+ }
1421
+ let urlPath = `/api/llm-gateway/admin/routing-policies/{id}`;
1422
+ urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
1423
+ return {
1424
+ path: urlPath,
1425
+ method: 'DELETE',
1426
+ headers: headerParameters,
1427
+ query: queryParameters,
1428
+ };
1429
+ }
1430
+ /**
1431
+ * Delete a routing policy
1432
+ */
1433
+ async deleteRoutingPolicyRaw(requestParameters, initOverrides) {
1434
+ const requestOptions = await this.deleteRoutingPolicyRequestOpts(requestParameters);
1435
+ const response = await this.request(requestOptions, initOverrides);
1436
+ return new runtime.JSONApiResponse(response, (jsonValue) => DeletedResponseFromJSON(jsonValue));
1437
+ }
1438
+ /**
1439
+ * Delete a routing policy
1440
+ */
1441
+ async deleteRoutingPolicy(requestParameters, initOverrides) {
1442
+ const response = await this.deleteRoutingPolicyRaw(requestParameters, initOverrides);
1443
+ return await response.value();
1444
+ }
1445
+ /**
1446
+ * Creates request options for deleteRoutingRule without sending the request
1447
+ */
1448
+ async deleteRoutingRuleRequestOpts(requestParameters) {
1449
+ if (requestParameters['id'] == null) {
1450
+ throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling deleteRoutingRule().');
1451
+ }
1452
+ const queryParameters = {};
1453
+ const headerParameters = {};
1454
+ if (this.configuration && this.configuration.accessToken) {
1455
+ // oauth required
1456
+ const oauthToken = await this.configuration.accessToken("OAuth2", ["openid", "profile", "email"]);
1457
+ if (oauthToken) {
1458
+ headerParameters["Authorization"] = oauthToken.startsWith("Bearer ") ? oauthToken : `Bearer ${oauthToken}`;
1459
+ }
1460
+ }
1461
+ if (this.configuration && this.configuration.accessToken) {
1462
+ // oauth required
1463
+ const oauthToken = await this.configuration.accessToken("OAuth2", ["openid", "profile", "email"]);
1464
+ if (oauthToken) {
1465
+ headerParameters["Authorization"] = oauthToken.startsWith("Bearer ") ? oauthToken : `Bearer ${oauthToken}`;
1466
+ }
1467
+ }
1468
+ if (this.configuration && this.configuration.accessToken) {
1469
+ const token = this.configuration.accessToken;
1470
+ const tokenString = await token("ApiKey", []);
1471
+ if (tokenString) {
1472
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
1473
+ }
1474
+ }
1475
+ let urlPath = `/api/llm-gateway/admin/routing-rules/{id}`;
1476
+ urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
1477
+ return {
1478
+ path: urlPath,
1479
+ method: 'DELETE',
1480
+ headers: headerParameters,
1481
+ query: queryParameters,
1482
+ };
1483
+ }
1484
+ /**
1485
+ * Gates on `update`, not `delete`: rules are versionless config and the admin UI treats add/edit/remove as one editing capability, the same way it does for policy slots.
1486
+ * Delete a routing rule
1487
+ */
1488
+ async deleteRoutingRuleRaw(requestParameters, initOverrides) {
1489
+ const requestOptions = await this.deleteRoutingRuleRequestOpts(requestParameters);
1490
+ const response = await this.request(requestOptions, initOverrides);
1491
+ return new runtime.VoidApiResponse(response);
1492
+ }
1493
+ /**
1494
+ * Gates on `update`, not `delete`: rules are versionless config and the admin UI treats add/edit/remove as one editing capability, the same way it does for policy slots.
1495
+ * Delete a routing rule
1496
+ */
1497
+ async deleteRoutingRule(requestParameters, initOverrides) {
1498
+ await this.deleteRoutingRuleRaw(requestParameters, initOverrides);
1499
+ }
1500
+ /**
1501
+ * Creates request options for getApiKey without sending the request
1502
+ */
1503
+ async getApiKeyRequestOpts(requestParameters) {
1504
+ if (requestParameters['id'] == null) {
1505
+ throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling getApiKey().');
1506
+ }
1507
+ const queryParameters = {};
1508
+ const headerParameters = {};
1509
+ if (this.configuration && this.configuration.accessToken) {
1510
+ // oauth required
1511
+ const oauthToken = await this.configuration.accessToken("OAuth2", ["openid", "profile", "email"]);
1512
+ if (oauthToken) {
1513
+ headerParameters["Authorization"] = oauthToken.startsWith("Bearer ") ? oauthToken : `Bearer ${oauthToken}`;
1514
+ }
1515
+ }
1516
+ if (this.configuration && this.configuration.accessToken) {
1517
+ // oauth required
1518
+ const oauthToken = await this.configuration.accessToken("OAuth2", ["openid", "profile", "email"]);
1519
+ if (oauthToken) {
1520
+ headerParameters["Authorization"] = oauthToken.startsWith("Bearer ") ? oauthToken : `Bearer ${oauthToken}`;
1521
+ }
1522
+ }
1523
+ if (this.configuration && this.configuration.accessToken) {
1524
+ const token = this.configuration.accessToken;
1525
+ const tokenString = await token("ApiKey", []);
1526
+ if (tokenString) {
1527
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
1528
+ }
1529
+ }
1530
+ let urlPath = `/api/llm-gateway/admin/api-keys/{id}`;
1531
+ urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
1532
+ return {
1533
+ path: urlPath,
1534
+ method: 'GET',
1535
+ headers: headerParameters,
1536
+ query: queryParameters,
1537
+ };
1538
+ }
1539
+ /**
1540
+ * Fetch one API key
1541
+ */
1542
+ async getApiKeyRaw(requestParameters, initOverrides) {
1543
+ const requestOptions = await this.getApiKeyRequestOpts(requestParameters);
1544
+ const response = await this.request(requestOptions, initOverrides);
1545
+ return new runtime.JSONApiResponse(response, (jsonValue) => ApiKeyFromJSON(jsonValue));
1546
+ }
1547
+ /**
1548
+ * Fetch one API key
1549
+ */
1550
+ async getApiKey(requestParameters, initOverrides) {
1551
+ const response = await this.getApiKeyRaw(requestParameters, initOverrides);
1552
+ return await response.value();
1553
+ }
1554
+ /**
1555
+ * Creates request options for getConnection without sending the request
1556
+ */
1557
+ async getConnectionRequestOpts(requestParameters) {
1558
+ if (requestParameters['id'] == null) {
1559
+ throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling getConnection().');
1560
+ }
1561
+ const queryParameters = {};
1562
+ const headerParameters = {};
1563
+ if (this.configuration && this.configuration.accessToken) {
1564
+ // oauth required
1565
+ const oauthToken = await this.configuration.accessToken("OAuth2", ["openid", "profile", "email"]);
1566
+ if (oauthToken) {
1567
+ headerParameters["Authorization"] = oauthToken.startsWith("Bearer ") ? oauthToken : `Bearer ${oauthToken}`;
1568
+ }
1569
+ }
1570
+ if (this.configuration && this.configuration.accessToken) {
1571
+ // oauth required
1572
+ const oauthToken = await this.configuration.accessToken("OAuth2", ["openid", "profile", "email"]);
1573
+ if (oauthToken) {
1574
+ headerParameters["Authorization"] = oauthToken.startsWith("Bearer ") ? oauthToken : `Bearer ${oauthToken}`;
1575
+ }
1576
+ }
1577
+ if (this.configuration && this.configuration.accessToken) {
1578
+ const token = this.configuration.accessToken;
1579
+ const tokenString = await token("ApiKey", []);
1580
+ if (tokenString) {
1581
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
1582
+ }
1583
+ }
1584
+ let urlPath = `/api/llm-gateway/admin/connections/{id}`;
1585
+ urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
1586
+ return {
1587
+ path: urlPath,
1588
+ method: 'GET',
1589
+ headers: headerParameters,
1590
+ query: queryParameters,
1591
+ };
1592
+ }
1593
+ /**
1594
+ * Fetch one provider connection
1595
+ */
1596
+ async getConnectionRaw(requestParameters, initOverrides) {
1597
+ const requestOptions = await this.getConnectionRequestOpts(requestParameters);
1598
+ const response = await this.request(requestOptions, initOverrides);
1599
+ return new runtime.JSONApiResponse(response, (jsonValue) => ConnectionFromJSON(jsonValue));
1600
+ }
1601
+ /**
1602
+ * Fetch one provider connection
1603
+ */
1604
+ async getConnection(requestParameters, initOverrides) {
1605
+ const response = await this.getConnectionRaw(requestParameters, initOverrides);
1606
+ return await response.value();
1607
+ }
1608
+ /**
1609
+ * Creates request options for getGovernanceConfig without sending the request
1610
+ */
1611
+ async getGovernanceConfigRequestOpts() {
1612
+ const queryParameters = {};
1613
+ const headerParameters = {};
1614
+ if (this.configuration && this.configuration.accessToken) {
1615
+ // oauth required
1616
+ const oauthToken = await this.configuration.accessToken("OAuth2", ["openid", "profile", "email"]);
1617
+ if (oauthToken) {
1618
+ headerParameters["Authorization"] = oauthToken.startsWith("Bearer ") ? oauthToken : `Bearer ${oauthToken}`;
1619
+ }
1620
+ }
1621
+ if (this.configuration && this.configuration.accessToken) {
1622
+ // oauth required
1623
+ const oauthToken = await this.configuration.accessToken("OAuth2", ["openid", "profile", "email"]);
1624
+ if (oauthToken) {
1625
+ headerParameters["Authorization"] = oauthToken.startsWith("Bearer ") ? oauthToken : `Bearer ${oauthToken}`;
1626
+ }
1627
+ }
1628
+ if (this.configuration && this.configuration.accessToken) {
1629
+ const token = this.configuration.accessToken;
1630
+ const tokenString = await token("ApiKey", []);
1631
+ if (tokenString) {
1632
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
1633
+ }
1634
+ }
1635
+ let urlPath = `/api/llm-gateway/admin/governance-config`;
1636
+ return {
1637
+ path: urlPath,
1638
+ method: 'GET',
1639
+ headers: headerParameters,
1640
+ query: queryParameters,
1641
+ };
1642
+ }
1643
+ /**
1644
+ * List the organization\'s governance configurations
1645
+ */
1646
+ async getGovernanceConfigRaw(initOverrides) {
1647
+ const requestOptions = await this.getGovernanceConfigRequestOpts();
1648
+ const response = await this.request(requestOptions, initOverrides);
1649
+ return new runtime.JSONApiResponse(response, (jsonValue) => GovernanceConfigFromJSON(jsonValue));
1650
+ }
1651
+ /**
1652
+ * List the organization\'s governance configurations
1653
+ */
1654
+ async getGovernanceConfig(initOverrides) {
1655
+ const response = await this.getGovernanceConfigRaw(initOverrides);
1656
+ return await response.value();
1657
+ }
1658
+ /**
1659
+ * Creates request options for getProfile without sending the request
1660
+ */
1661
+ async getProfileRequestOpts(requestParameters) {
1662
+ if (requestParameters['slug'] == null) {
1663
+ throw new runtime.RequiredError('slug', 'Required parameter "slug" was null or undefined when calling getProfile().');
1664
+ }
1665
+ const queryParameters = {};
1666
+ const headerParameters = {};
1667
+ if (this.configuration && this.configuration.accessToken) {
1668
+ // oauth required
1669
+ const oauthToken = await this.configuration.accessToken("OAuth2", ["openid", "profile", "email"]);
1670
+ if (oauthToken) {
1671
+ headerParameters["Authorization"] = oauthToken.startsWith("Bearer ") ? oauthToken : `Bearer ${oauthToken}`;
1672
+ }
1673
+ }
1674
+ if (this.configuration && this.configuration.accessToken) {
1675
+ // oauth required
1676
+ const oauthToken = await this.configuration.accessToken("OAuth2", ["openid", "profile", "email"]);
1677
+ if (oauthToken) {
1678
+ headerParameters["Authorization"] = oauthToken.startsWith("Bearer ") ? oauthToken : `Bearer ${oauthToken}`;
1679
+ }
1680
+ }
1681
+ if (this.configuration && this.configuration.accessToken) {
1682
+ const token = this.configuration.accessToken;
1683
+ const tokenString = await token("ApiKey", []);
1684
+ if (tokenString) {
1685
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
1686
+ }
1687
+ }
1688
+ let urlPath = `/api/llm-gateway/admin/agent-runtime-profiles/{slug}`;
1689
+ urlPath = urlPath.replace('{slug}', encodeURIComponent(String(requestParameters['slug'])));
1690
+ return {
1691
+ path: urlPath,
1692
+ method: 'GET',
1693
+ headers: headerParameters,
1694
+ query: queryParameters,
1695
+ };
1696
+ }
1697
+ /**
1698
+ * Fetch one agent runtime profile
1699
+ */
1700
+ async getProfileRaw(requestParameters, initOverrides) {
1701
+ const requestOptions = await this.getProfileRequestOpts(requestParameters);
1702
+ const response = await this.request(requestOptions, initOverrides);
1703
+ return new runtime.JSONApiResponse(response, (jsonValue) => AgentRuntimeProfileFromJSON(jsonValue));
1704
+ }
1705
+ /**
1706
+ * Fetch one agent runtime profile
1707
+ */
1708
+ async getProfile(requestParameters, initOverrides) {
1709
+ const response = await this.getProfileRaw(requestParameters, initOverrides);
1710
+ return await response.value();
1711
+ }
1712
+ /**
1713
+ * Creates request options for getProvider without sending the request
1714
+ */
1715
+ async getProviderRequestOpts(requestParameters) {
1716
+ if (requestParameters['id'] == null) {
1717
+ throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling getProvider().');
1718
+ }
1719
+ const queryParameters = {};
1720
+ const headerParameters = {};
1721
+ if (this.configuration && this.configuration.accessToken) {
1722
+ // oauth required
1723
+ const oauthToken = await this.configuration.accessToken("OAuth2", ["openid", "profile", "email"]);
1724
+ if (oauthToken) {
1725
+ headerParameters["Authorization"] = oauthToken.startsWith("Bearer ") ? oauthToken : `Bearer ${oauthToken}`;
1726
+ }
1727
+ }
1728
+ if (this.configuration && this.configuration.accessToken) {
1729
+ // oauth required
1730
+ const oauthToken = await this.configuration.accessToken("OAuth2", ["openid", "profile", "email"]);
1731
+ if (oauthToken) {
1732
+ headerParameters["Authorization"] = oauthToken.startsWith("Bearer ") ? oauthToken : `Bearer ${oauthToken}`;
1733
+ }
1734
+ }
1735
+ if (this.configuration && this.configuration.accessToken) {
1736
+ const token = this.configuration.accessToken;
1737
+ const tokenString = await token("ApiKey", []);
1738
+ if (tokenString) {
1739
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
1740
+ }
1741
+ }
1742
+ let urlPath = `/api/llm-gateway/admin/providers/{id}`;
1743
+ urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
1744
+ return {
1745
+ path: urlPath,
1746
+ method: 'GET',
1747
+ headers: headerParameters,
1748
+ query: queryParameters,
1749
+ };
1750
+ }
1751
+ /**
1752
+ * Fetch one provider
1753
+ */
1754
+ async getProviderRaw(requestParameters, initOverrides) {
1755
+ const requestOptions = await this.getProviderRequestOpts(requestParameters);
1756
+ const response = await this.request(requestOptions, initOverrides);
1757
+ return new runtime.JSONApiResponse(response, (jsonValue) => ProviderFromJSON(jsonValue));
1758
+ }
1759
+ /**
1760
+ * Fetch one provider
1761
+ */
1762
+ async getProvider(requestParameters, initOverrides) {
1763
+ const response = await this.getProviderRaw(requestParameters, initOverrides);
1764
+ return await response.value();
1765
+ }
1766
+ /**
1767
+ * Creates request options for listAllModelMappings without sending the request
1768
+ */
1769
+ async listAllModelMappingsRequestOpts() {
1770
+ const queryParameters = {};
1771
+ const headerParameters = {};
1772
+ if (this.configuration && this.configuration.accessToken) {
1773
+ // oauth required
1774
+ const oauthToken = await this.configuration.accessToken("OAuth2", ["openid", "profile", "email"]);
1775
+ if (oauthToken) {
1776
+ headerParameters["Authorization"] = oauthToken.startsWith("Bearer ") ? oauthToken : `Bearer ${oauthToken}`;
1777
+ }
1778
+ }
1779
+ if (this.configuration && this.configuration.accessToken) {
1780
+ // oauth required
1781
+ const oauthToken = await this.configuration.accessToken("OAuth2", ["openid", "profile", "email"]);
1782
+ if (oauthToken) {
1783
+ headerParameters["Authorization"] = oauthToken.startsWith("Bearer ") ? oauthToken : `Bearer ${oauthToken}`;
1784
+ }
1785
+ }
1786
+ if (this.configuration && this.configuration.accessToken) {
1787
+ const token = this.configuration.accessToken;
1788
+ const tokenString = await token("ApiKey", []);
1789
+ if (tokenString) {
1790
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
1791
+ }
1792
+ }
1793
+ let urlPath = `/api/llm-gateway/admin/model-mappings`;
1794
+ return {
1795
+ path: urlPath,
1796
+ method: 'GET',
1797
+ headers: headerParameters,
1798
+ query: queryParameters,
1799
+ };
1800
+ }
1801
+ /**
1802
+ * List the organization\'s model mappings
1803
+ */
1804
+ async listAllModelMappingsRaw(initOverrides) {
1805
+ const requestOptions = await this.listAllModelMappingsRequestOpts();
1806
+ const response = await this.request(requestOptions, initOverrides);
1807
+ return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(ModelMappingWithProviderAndBudgetStatusFromJSON));
1808
+ }
1809
+ /**
1810
+ * List the organization\'s model mappings
1811
+ */
1812
+ async listAllModelMappings(initOverrides) {
1813
+ const response = await this.listAllModelMappingsRaw(initOverrides);
1814
+ return await response.value();
1815
+ }
1816
+ /**
1817
+ * Creates request options for listApiKeys without sending the request
1818
+ */
1819
+ async listApiKeysRequestOpts() {
1820
+ const queryParameters = {};
1821
+ const headerParameters = {};
1822
+ if (this.configuration && this.configuration.accessToken) {
1823
+ // oauth required
1824
+ const oauthToken = await this.configuration.accessToken("OAuth2", ["openid", "profile", "email"]);
1825
+ if (oauthToken) {
1826
+ headerParameters["Authorization"] = oauthToken.startsWith("Bearer ") ? oauthToken : `Bearer ${oauthToken}`;
1827
+ }
1828
+ }
1829
+ if (this.configuration && this.configuration.accessToken) {
1830
+ // oauth required
1831
+ const oauthToken = await this.configuration.accessToken("OAuth2", ["openid", "profile", "email"]);
1832
+ if (oauthToken) {
1833
+ headerParameters["Authorization"] = oauthToken.startsWith("Bearer ") ? oauthToken : `Bearer ${oauthToken}`;
1834
+ }
1835
+ }
1836
+ if (this.configuration && this.configuration.accessToken) {
1837
+ const token = this.configuration.accessToken;
1838
+ const tokenString = await token("ApiKey", []);
1839
+ if (tokenString) {
1840
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
1841
+ }
1842
+ }
1843
+ let urlPath = `/api/llm-gateway/admin/api-keys`;
1844
+ return {
1845
+ path: urlPath,
1846
+ method: 'GET',
1847
+ headers: headerParameters,
1848
+ query: queryParameters,
1849
+ };
1850
+ }
1851
+ /**
1852
+ * List the organization\'s API keys
1853
+ */
1854
+ async listApiKeysRaw(initOverrides) {
1855
+ const requestOptions = await this.listApiKeysRequestOpts();
1856
+ const response = await this.request(requestOptions, initOverrides);
1857
+ return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(ApiKeyFromJSON));
1858
+ }
1859
+ /**
1860
+ * List the organization\'s API keys
1861
+ */
1862
+ async listApiKeys(initOverrides) {
1863
+ const response = await this.listApiKeysRaw(initOverrides);
1864
+ return await response.value();
1865
+ }
1866
+ /**
1867
+ * Creates request options for listArchivedPricing without sending the request
1868
+ */
1869
+ async listArchivedPricingRequestOpts() {
1870
+ const queryParameters = {};
1871
+ const headerParameters = {};
1872
+ if (this.configuration && this.configuration.accessToken) {
1873
+ // oauth required
1874
+ const oauthToken = await this.configuration.accessToken("OAuth2", ["openid", "profile", "email"]);
1875
+ if (oauthToken) {
1876
+ headerParameters["Authorization"] = oauthToken.startsWith("Bearer ") ? oauthToken : `Bearer ${oauthToken}`;
1877
+ }
1878
+ }
1879
+ if (this.configuration && this.configuration.accessToken) {
1880
+ // oauth required
1881
+ const oauthToken = await this.configuration.accessToken("OAuth2", ["openid", "profile", "email"]);
1882
+ if (oauthToken) {
1883
+ headerParameters["Authorization"] = oauthToken.startsWith("Bearer ") ? oauthToken : `Bearer ${oauthToken}`;
1884
+ }
1885
+ }
1886
+ if (this.configuration && this.configuration.accessToken) {
1887
+ const token = this.configuration.accessToken;
1888
+ const tokenString = await token("ApiKey", []);
1889
+ if (tokenString) {
1890
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
1891
+ }
1892
+ }
1893
+ let urlPath = `/api/llm-gateway/admin/model-pricing/archived`;
1894
+ return {
1895
+ path: urlPath,
1896
+ method: 'GET',
1897
+ headers: headerParameters,
1898
+ query: queryParameters,
1899
+ };
1900
+ }
1901
+ /**
1902
+ * List the organization\'s archived pricing rules
1903
+ */
1904
+ async listArchivedPricingRaw(initOverrides) {
1905
+ const requestOptions = await this.listArchivedPricingRequestOpts();
1906
+ const response = await this.request(requestOptions, initOverrides);
1907
+ return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(PricingRuleSummaryFromJSON));
1908
+ }
1909
+ /**
1910
+ * List the organization\'s archived pricing rules
1911
+ */
1912
+ async listArchivedPricing(initOverrides) {
1913
+ const response = await this.listArchivedPricingRaw(initOverrides);
1914
+ return await response.value();
1915
+ }
1916
+ /**
1917
+ * Creates request options for listBudgets without sending the request
1918
+ */
1919
+ async listBudgetsRequestOpts() {
1920
+ const queryParameters = {};
1921
+ const headerParameters = {};
1922
+ if (this.configuration && this.configuration.accessToken) {
1923
+ // oauth required
1924
+ const oauthToken = await this.configuration.accessToken("OAuth2", ["openid", "profile", "email"]);
1925
+ if (oauthToken) {
1926
+ headerParameters["Authorization"] = oauthToken.startsWith("Bearer ") ? oauthToken : `Bearer ${oauthToken}`;
1927
+ }
1928
+ }
1929
+ if (this.configuration && this.configuration.accessToken) {
1930
+ // oauth required
1931
+ const oauthToken = await this.configuration.accessToken("OAuth2", ["openid", "profile", "email"]);
1932
+ if (oauthToken) {
1933
+ headerParameters["Authorization"] = oauthToken.startsWith("Bearer ") ? oauthToken : `Bearer ${oauthToken}`;
1934
+ }
1935
+ }
1936
+ if (this.configuration && this.configuration.accessToken) {
1937
+ const token = this.configuration.accessToken;
1938
+ const tokenString = await token("ApiKey", []);
1939
+ if (tokenString) {
1940
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
1941
+ }
1942
+ }
1943
+ let urlPath = `/api/llm-gateway/admin/budgets`;
1944
+ return {
1945
+ path: urlPath,
1946
+ method: 'GET',
1947
+ headers: headerParameters,
1948
+ query: queryParameters,
1949
+ };
1950
+ }
1951
+ /**
1952
+ * List the organization\'s token budgets
1953
+ */
1954
+ async listBudgetsRaw(initOverrides) {
1955
+ const requestOptions = await this.listBudgetsRequestOpts();
1956
+ const response = await this.request(requestOptions, initOverrides);
1957
+ return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(WithAttributionTokenBudgetFromJSON));
1958
+ }
1959
+ /**
1960
+ * List the organization\'s token budgets
1961
+ */
1962
+ async listBudgets(initOverrides) {
1963
+ const response = await this.listBudgetsRaw(initOverrides);
1964
+ return await response.value();
1965
+ }
1966
+ /**
1967
+ * Creates request options for listConnections without sending the request
1968
+ */
1969
+ async listConnectionsRequestOpts() {
1970
+ const queryParameters = {};
1971
+ const headerParameters = {};
1972
+ if (this.configuration && this.configuration.accessToken) {
1973
+ // oauth required
1974
+ const oauthToken = await this.configuration.accessToken("OAuth2", ["openid", "profile", "email"]);
1975
+ if (oauthToken) {
1976
+ headerParameters["Authorization"] = oauthToken.startsWith("Bearer ") ? oauthToken : `Bearer ${oauthToken}`;
1977
+ }
1978
+ }
1979
+ if (this.configuration && this.configuration.accessToken) {
1980
+ // oauth required
1981
+ const oauthToken = await this.configuration.accessToken("OAuth2", ["openid", "profile", "email"]);
1982
+ if (oauthToken) {
1983
+ headerParameters["Authorization"] = oauthToken.startsWith("Bearer ") ? oauthToken : `Bearer ${oauthToken}`;
1984
+ }
1985
+ }
1986
+ if (this.configuration && this.configuration.accessToken) {
1987
+ const token = this.configuration.accessToken;
1988
+ const tokenString = await token("ApiKey", []);
1989
+ if (tokenString) {
1990
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
1991
+ }
1992
+ }
1993
+ let urlPath = `/api/llm-gateway/admin/connections`;
1994
+ return {
1995
+ path: urlPath,
1996
+ method: 'GET',
1997
+ headers: headerParameters,
1998
+ query: queryParameters,
1999
+ };
2000
+ }
2001
+ /**
2002
+ * List the organization\'s provider connections
2003
+ */
2004
+ async listConnectionsRaw(initOverrides) {
2005
+ const requestOptions = await this.listConnectionsRequestOpts();
2006
+ const response = await this.request(requestOptions, initOverrides);
2007
+ return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(ConnectionFromJSON));
2008
+ }
2009
+ /**
2010
+ * List the organization\'s provider connections
2011
+ */
2012
+ async listConnections(initOverrides) {
2013
+ const response = await this.listConnectionsRaw(initOverrides);
2014
+ return await response.value();
2015
+ }
2016
+ /**
2017
+ * Creates request options for listDefaults without sending the request
2018
+ */
2019
+ async listDefaultsRequestOpts() {
2020
+ const queryParameters = {};
2021
+ const headerParameters = {};
2022
+ if (this.configuration && this.configuration.accessToken) {
2023
+ // oauth required
2024
+ const oauthToken = await this.configuration.accessToken("OAuth2", ["openid", "profile", "email"]);
2025
+ if (oauthToken) {
2026
+ headerParameters["Authorization"] = oauthToken.startsWith("Bearer ") ? oauthToken : `Bearer ${oauthToken}`;
2027
+ }
2028
+ }
2029
+ if (this.configuration && this.configuration.accessToken) {
2030
+ // oauth required
2031
+ const oauthToken = await this.configuration.accessToken("OAuth2", ["openid", "profile", "email"]);
2032
+ if (oauthToken) {
2033
+ headerParameters["Authorization"] = oauthToken.startsWith("Bearer ") ? oauthToken : `Bearer ${oauthToken}`;
2034
+ }
2035
+ }
2036
+ if (this.configuration && this.configuration.accessToken) {
2037
+ const token = this.configuration.accessToken;
2038
+ const tokenString = await token("ApiKey", []);
2039
+ if (tokenString) {
2040
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
2041
+ }
2042
+ }
2043
+ let urlPath = `/api/llm-gateway/admin/model-pricing/defaults`;
2044
+ return {
2045
+ path: urlPath,
2046
+ method: 'GET',
2047
+ headers: headerParameters,
2048
+ query: queryParameters,
2049
+ };
2050
+ }
2051
+ /**
2052
+ * List the built-in default model pricing
2053
+ */
2054
+ async listDefaultsRaw(initOverrides) {
2055
+ const requestOptions = await this.listDefaultsRequestOpts();
2056
+ const response = await this.request(requestOptions, initOverrides);
2057
+ return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(DefaultPricingEntryFromJSON));
2058
+ }
2059
+ /**
2060
+ * List the built-in default model pricing
2061
+ */
2062
+ async listDefaults(initOverrides) {
2063
+ const response = await this.listDefaultsRaw(initOverrides);
2064
+ return await response.value();
2065
+ }
2066
+ /**
2067
+ * Creates request options for listModelAccess without sending the request
2068
+ */
2069
+ async listModelAccessRequestOpts() {
2070
+ const queryParameters = {};
2071
+ const headerParameters = {};
2072
+ if (this.configuration && this.configuration.accessToken) {
2073
+ // oauth required
2074
+ const oauthToken = await this.configuration.accessToken("OAuth2", ["openid", "profile", "email"]);
2075
+ if (oauthToken) {
2076
+ headerParameters["Authorization"] = oauthToken.startsWith("Bearer ") ? oauthToken : `Bearer ${oauthToken}`;
2077
+ }
2078
+ }
2079
+ if (this.configuration && this.configuration.accessToken) {
2080
+ // oauth required
2081
+ const oauthToken = await this.configuration.accessToken("OAuth2", ["openid", "profile", "email"]);
2082
+ if (oauthToken) {
2083
+ headerParameters["Authorization"] = oauthToken.startsWith("Bearer ") ? oauthToken : `Bearer ${oauthToken}`;
2084
+ }
2085
+ }
2086
+ if (this.configuration && this.configuration.accessToken) {
2087
+ const token = this.configuration.accessToken;
2088
+ const tokenString = await token("ApiKey", []);
2089
+ if (tokenString) {
2090
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
2091
+ }
2092
+ }
2093
+ let urlPath = `/api/llm-gateway/admin/model-access`;
2094
+ return {
2095
+ path: urlPath,
2096
+ method: 'GET',
2097
+ headers: headerParameters,
2098
+ query: queryParameters,
2099
+ };
2100
+ }
2101
+ /**
2102
+ * List the organization\'s model-access policys
2103
+ */
2104
+ async listModelAccessRaw(initOverrides) {
2105
+ const requestOptions = await this.listModelAccessRequestOpts();
2106
+ const response = await this.request(requestOptions, initOverrides);
2107
+ return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(WithAttributionModelAccessPolicyFromJSON));
2108
+ }
2109
+ /**
2110
+ * List the organization\'s model-access policys
2111
+ */
2112
+ async listModelAccess(initOverrides) {
2113
+ const response = await this.listModelAccessRaw(initOverrides);
2114
+ return await response.value();
2115
+ }
2116
+ /**
2117
+ * Creates request options for listModelMappings without sending the request
2118
+ */
2119
+ async listModelMappingsRequestOpts(requestParameters) {
2120
+ if (requestParameters['providerId'] == null) {
2121
+ throw new runtime.RequiredError('providerId', 'Required parameter "providerId" was null or undefined when calling listModelMappings().');
2122
+ }
2123
+ const queryParameters = {};
2124
+ const headerParameters = {};
2125
+ if (this.configuration && this.configuration.accessToken) {
2126
+ // oauth required
2127
+ const oauthToken = await this.configuration.accessToken("OAuth2", ["openid", "profile", "email"]);
2128
+ if (oauthToken) {
2129
+ headerParameters["Authorization"] = oauthToken.startsWith("Bearer ") ? oauthToken : `Bearer ${oauthToken}`;
2130
+ }
2131
+ }
2132
+ if (this.configuration && this.configuration.accessToken) {
2133
+ // oauth required
2134
+ const oauthToken = await this.configuration.accessToken("OAuth2", ["openid", "profile", "email"]);
2135
+ if (oauthToken) {
2136
+ headerParameters["Authorization"] = oauthToken.startsWith("Bearer ") ? oauthToken : `Bearer ${oauthToken}`;
2137
+ }
2138
+ }
2139
+ if (this.configuration && this.configuration.accessToken) {
2140
+ const token = this.configuration.accessToken;
2141
+ const tokenString = await token("ApiKey", []);
2142
+ if (tokenString) {
2143
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
2144
+ }
2145
+ }
2146
+ let urlPath = `/api/llm-gateway/admin/providers/{provider_id}/model-mappings`;
2147
+ urlPath = urlPath.replace('{provider_id}', encodeURIComponent(String(requestParameters['providerId'])));
2148
+ return {
2149
+ path: urlPath,
2150
+ method: 'GET',
2151
+ headers: headerParameters,
2152
+ query: queryParameters,
2153
+ };
2154
+ }
2155
+ /**
2156
+ * List the model mappings for one provider
2157
+ */
2158
+ async listModelMappingsRaw(requestParameters, initOverrides) {
2159
+ const requestOptions = await this.listModelMappingsRequestOpts(requestParameters);
2160
+ const response = await this.request(requestOptions, initOverrides);
2161
+ return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(ModelMappingWithBudgetStatusFromJSON));
2162
+ }
2163
+ /**
2164
+ * List the model mappings for one provider
2165
+ */
2166
+ async listModelMappings(requestParameters, initOverrides) {
2167
+ const response = await this.listModelMappingsRaw(requestParameters, initOverrides);
2168
+ return await response.value();
2169
+ }
2170
+ /**
2171
+ * Creates request options for listPricing without sending the request
2172
+ */
2173
+ async listPricingRequestOpts() {
2174
+ const queryParameters = {};
2175
+ const headerParameters = {};
2176
+ if (this.configuration && this.configuration.accessToken) {
2177
+ // oauth required
2178
+ const oauthToken = await this.configuration.accessToken("OAuth2", ["openid", "profile", "email"]);
2179
+ if (oauthToken) {
2180
+ headerParameters["Authorization"] = oauthToken.startsWith("Bearer ") ? oauthToken : `Bearer ${oauthToken}`;
2181
+ }
2182
+ }
2183
+ if (this.configuration && this.configuration.accessToken) {
2184
+ // oauth required
2185
+ const oauthToken = await this.configuration.accessToken("OAuth2", ["openid", "profile", "email"]);
2186
+ if (oauthToken) {
2187
+ headerParameters["Authorization"] = oauthToken.startsWith("Bearer ") ? oauthToken : `Bearer ${oauthToken}`;
2188
+ }
2189
+ }
2190
+ if (this.configuration && this.configuration.accessToken) {
2191
+ const token = this.configuration.accessToken;
2192
+ const tokenString = await token("ApiKey", []);
2193
+ if (tokenString) {
2194
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
2195
+ }
2196
+ }
2197
+ let urlPath = `/api/llm-gateway/admin/model-pricing`;
2198
+ return {
2199
+ path: urlPath,
2200
+ method: 'GET',
2201
+ headers: headerParameters,
2202
+ query: queryParameters,
2203
+ };
2204
+ }
2205
+ /**
2206
+ * List the organization\'s model pricing rules
2207
+ */
2208
+ async listPricingRaw(initOverrides) {
2209
+ const requestOptions = await this.listPricingRequestOpts();
2210
+ const response = await this.request(requestOptions, initOverrides);
2211
+ return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(PricingRuleSummaryFromJSON));
2212
+ }
2213
+ /**
2214
+ * List the organization\'s model pricing rules
2215
+ */
2216
+ async listPricing(initOverrides) {
2217
+ const response = await this.listPricingRaw(initOverrides);
2218
+ return await response.value();
2219
+ }
2220
+ /**
2221
+ * Creates request options for listPricingHistory without sending the request
2222
+ */
2223
+ async listPricingHistoryRequestOpts(requestParameters) {
2224
+ if (requestParameters['modelPattern'] == null) {
2225
+ throw new runtime.RequiredError('modelPattern', 'Required parameter "modelPattern" was null or undefined when calling listPricingHistory().');
2226
+ }
2227
+ const queryParameters = {};
2228
+ if (requestParameters['modelPattern'] != null) {
2229
+ queryParameters['model_pattern'] = requestParameters['modelPattern'];
2230
+ }
2231
+ if (requestParameters['modelProvider'] != null) {
2232
+ queryParameters['model_provider'] = requestParameters['modelProvider'];
2233
+ }
2234
+ const headerParameters = {};
2235
+ if (this.configuration && this.configuration.accessToken) {
2236
+ // oauth required
2237
+ const oauthToken = await this.configuration.accessToken("OAuth2", ["openid", "profile", "email"]);
2238
+ if (oauthToken) {
2239
+ headerParameters["Authorization"] = oauthToken.startsWith("Bearer ") ? oauthToken : `Bearer ${oauthToken}`;
2240
+ }
2241
+ }
2242
+ if (this.configuration && this.configuration.accessToken) {
2243
+ // oauth required
2244
+ const oauthToken = await this.configuration.accessToken("OAuth2", ["openid", "profile", "email"]);
2245
+ if (oauthToken) {
2246
+ headerParameters["Authorization"] = oauthToken.startsWith("Bearer ") ? oauthToken : `Bearer ${oauthToken}`;
2247
+ }
2248
+ }
2249
+ if (this.configuration && this.configuration.accessToken) {
2250
+ const token = this.configuration.accessToken;
2251
+ const tokenString = await token("ApiKey", []);
2252
+ if (tokenString) {
2253
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
2254
+ }
2255
+ }
2256
+ let urlPath = `/api/llm-gateway/admin/model-pricing/history`;
2257
+ return {
2258
+ path: urlPath,
2259
+ method: 'GET',
2260
+ headers: headerParameters,
2261
+ query: queryParameters,
2262
+ };
2263
+ }
2264
+ /**
2265
+ * List the change history for the organization\'s pricing rules
2266
+ */
2267
+ async listPricingHistoryRaw(requestParameters, initOverrides) {
2268
+ const requestOptions = await this.listPricingHistoryRequestOpts(requestParameters);
2269
+ const response = await this.request(requestOptions, initOverrides);
2270
+ return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(AdminModelPricingFromJSON));
2271
+ }
2272
+ /**
2273
+ * List the change history for the organization\'s pricing rules
2274
+ */
2275
+ async listPricingHistory(requestParameters, initOverrides) {
2276
+ const response = await this.listPricingHistoryRaw(requestParameters, initOverrides);
2277
+ return await response.value();
2278
+ }
2279
+ /**
2280
+ * Creates request options for listProfiles without sending the request
2281
+ */
2282
+ async listProfilesRequestOpts(requestParameters) {
2283
+ const queryParameters = {};
2284
+ if (requestParameters['client'] != null) {
2285
+ queryParameters['client'] = requestParameters['client'];
2286
+ }
2287
+ const headerParameters = {};
2288
+ if (this.configuration && this.configuration.accessToken) {
2289
+ // oauth required
2290
+ const oauthToken = await this.configuration.accessToken("OAuth2", ["openid", "profile", "email"]);
2291
+ if (oauthToken) {
2292
+ headerParameters["Authorization"] = oauthToken.startsWith("Bearer ") ? oauthToken : `Bearer ${oauthToken}`;
2293
+ }
2294
+ }
2295
+ if (this.configuration && this.configuration.accessToken) {
2296
+ // oauth required
2297
+ const oauthToken = await this.configuration.accessToken("OAuth2", ["openid", "profile", "email"]);
2298
+ if (oauthToken) {
2299
+ headerParameters["Authorization"] = oauthToken.startsWith("Bearer ") ? oauthToken : `Bearer ${oauthToken}`;
2300
+ }
2301
+ }
2302
+ if (this.configuration && this.configuration.accessToken) {
2303
+ const token = this.configuration.accessToken;
2304
+ const tokenString = await token("ApiKey", []);
2305
+ if (tokenString) {
2306
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
2307
+ }
2308
+ }
2309
+ let urlPath = `/api/llm-gateway/admin/agent-runtime-profiles`;
2310
+ return {
2311
+ path: urlPath,
2312
+ method: 'GET',
2313
+ headers: headerParameters,
2314
+ query: queryParameters,
2315
+ };
2316
+ }
2317
+ /**
2318
+ * List the organization\'s agent runtime profiles
2319
+ */
2320
+ async listProfilesRaw(requestParameters, initOverrides) {
2321
+ const requestOptions = await this.listProfilesRequestOpts(requestParameters);
2322
+ const response = await this.request(requestOptions, initOverrides);
2323
+ return new runtime.JSONApiResponse(response, (jsonValue) => ListProfilesResponseFromJSON(jsonValue));
2324
+ }
2325
+ /**
2326
+ * List the organization\'s agent runtime profiles
2327
+ */
2328
+ async listProfiles(requestParameters = {}, initOverrides) {
2329
+ const response = await this.listProfilesRaw(requestParameters, initOverrides);
2330
+ return await response.value();
2331
+ }
2332
+ /**
2333
+ * Creates request options for listProviders without sending the request
2334
+ */
2335
+ async listProvidersRequestOpts() {
2336
+ const queryParameters = {};
2337
+ const headerParameters = {};
2338
+ if (this.configuration && this.configuration.accessToken) {
2339
+ // oauth required
2340
+ const oauthToken = await this.configuration.accessToken("OAuth2", ["openid", "profile", "email"]);
2341
+ if (oauthToken) {
2342
+ headerParameters["Authorization"] = oauthToken.startsWith("Bearer ") ? oauthToken : `Bearer ${oauthToken}`;
2343
+ }
2344
+ }
2345
+ if (this.configuration && this.configuration.accessToken) {
2346
+ // oauth required
2347
+ const oauthToken = await this.configuration.accessToken("OAuth2", ["openid", "profile", "email"]);
2348
+ if (oauthToken) {
2349
+ headerParameters["Authorization"] = oauthToken.startsWith("Bearer ") ? oauthToken : `Bearer ${oauthToken}`;
2350
+ }
2351
+ }
2352
+ if (this.configuration && this.configuration.accessToken) {
2353
+ const token = this.configuration.accessToken;
2354
+ const tokenString = await token("ApiKey", []);
2355
+ if (tokenString) {
2356
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
2357
+ }
2358
+ }
2359
+ let urlPath = `/api/llm-gateway/admin/providers`;
2360
+ return {
2361
+ path: urlPath,
2362
+ method: 'GET',
2363
+ headers: headerParameters,
2364
+ query: queryParameters,
2365
+ };
2366
+ }
2367
+ /**
2368
+ * List the organization\'s providers
2369
+ */
2370
+ async listProvidersRaw(initOverrides) {
2371
+ const requestOptions = await this.listProvidersRequestOpts();
2372
+ const response = await this.request(requestOptions, initOverrides);
2373
+ return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(ProviderFromJSON));
2374
+ }
2375
+ /**
2376
+ * List the organization\'s providers
2377
+ */
2378
+ async listProviders(initOverrides) {
2379
+ const response = await this.listProvidersRaw(initOverrides);
2380
+ return await response.value();
2381
+ }
2382
+ /**
2383
+ * Creates request options for listRateLimits without sending the request
2384
+ */
2385
+ async listRateLimitsRequestOpts() {
2386
+ const queryParameters = {};
2387
+ const headerParameters = {};
2388
+ if (this.configuration && this.configuration.accessToken) {
2389
+ // oauth required
2390
+ const oauthToken = await this.configuration.accessToken("OAuth2", ["openid", "profile", "email"]);
2391
+ if (oauthToken) {
2392
+ headerParameters["Authorization"] = oauthToken.startsWith("Bearer ") ? oauthToken : `Bearer ${oauthToken}`;
2393
+ }
2394
+ }
2395
+ if (this.configuration && this.configuration.accessToken) {
2396
+ // oauth required
2397
+ const oauthToken = await this.configuration.accessToken("OAuth2", ["openid", "profile", "email"]);
2398
+ if (oauthToken) {
2399
+ headerParameters["Authorization"] = oauthToken.startsWith("Bearer ") ? oauthToken : `Bearer ${oauthToken}`;
2400
+ }
2401
+ }
2402
+ if (this.configuration && this.configuration.accessToken) {
2403
+ const token = this.configuration.accessToken;
2404
+ const tokenString = await token("ApiKey", []);
2405
+ if (tokenString) {
2406
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
2407
+ }
2408
+ }
2409
+ let urlPath = `/api/llm-gateway/admin/rate-limits`;
2410
+ return {
2411
+ path: urlPath,
2412
+ method: 'GET',
2413
+ headers: headerParameters,
2414
+ query: queryParameters,
2415
+ };
2416
+ }
2417
+ /**
2418
+ * List the organization\'s rate-limit policys
2419
+ */
2420
+ async listRateLimitsRaw(initOverrides) {
2421
+ const requestOptions = await this.listRateLimitsRequestOpts();
2422
+ const response = await this.request(requestOptions, initOverrides);
2423
+ return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(WithAttributionRateLimitPolicyFromJSON));
2424
+ }
2425
+ /**
2426
+ * List the organization\'s rate-limit policys
2427
+ */
2428
+ async listRateLimits(initOverrides) {
2429
+ const response = await this.listRateLimitsRaw(initOverrides);
2430
+ return await response.value();
2431
+ }
2432
+ /**
2433
+ * Creates request options for listRouteGroups without sending the request
2434
+ */
2435
+ async listRouteGroupsRequestOpts() {
2436
+ const queryParameters = {};
2437
+ const headerParameters = {};
2438
+ if (this.configuration && this.configuration.accessToken) {
2439
+ // oauth required
2440
+ const oauthToken = await this.configuration.accessToken("OAuth2", ["openid", "profile", "email"]);
2441
+ if (oauthToken) {
2442
+ headerParameters["Authorization"] = oauthToken.startsWith("Bearer ") ? oauthToken : `Bearer ${oauthToken}`;
2443
+ }
2444
+ }
2445
+ if (this.configuration && this.configuration.accessToken) {
2446
+ // oauth required
2447
+ const oauthToken = await this.configuration.accessToken("OAuth2", ["openid", "profile", "email"]);
2448
+ if (oauthToken) {
2449
+ headerParameters["Authorization"] = oauthToken.startsWith("Bearer ") ? oauthToken : `Bearer ${oauthToken}`;
2450
+ }
2451
+ }
2452
+ if (this.configuration && this.configuration.accessToken) {
2453
+ const token = this.configuration.accessToken;
2454
+ const tokenString = await token("ApiKey", []);
2455
+ if (tokenString) {
2456
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
2457
+ }
2458
+ }
2459
+ let urlPath = `/api/llm-gateway/admin/model-route-groups`;
2460
+ return {
2461
+ path: urlPath,
2462
+ method: 'GET',
2463
+ headers: headerParameters,
2464
+ query: queryParameters,
2465
+ };
2466
+ }
2467
+ /**
2468
+ * List the organization\'s model route groups
2469
+ */
2470
+ async listRouteGroupsRaw(initOverrides) {
2471
+ const requestOptions = await this.listRouteGroupsRequestOpts();
2472
+ const response = await this.request(requestOptions, initOverrides);
2473
+ return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(ModelRouteGroupFromJSON));
2474
+ }
2475
+ /**
2476
+ * List the organization\'s model route groups
2477
+ */
2478
+ async listRouteGroups(initOverrides) {
2479
+ const response = await this.listRouteGroupsRaw(initOverrides);
2480
+ return await response.value();
2481
+ }
2482
+ /**
2483
+ * Creates request options for listRoutingPolicies without sending the request
2484
+ */
2485
+ async listRoutingPoliciesRequestOpts() {
2486
+ const queryParameters = {};
2487
+ const headerParameters = {};
2488
+ if (this.configuration && this.configuration.accessToken) {
2489
+ // oauth required
2490
+ const oauthToken = await this.configuration.accessToken("OAuth2", ["openid", "profile", "email"]);
2491
+ if (oauthToken) {
2492
+ headerParameters["Authorization"] = oauthToken.startsWith("Bearer ") ? oauthToken : `Bearer ${oauthToken}`;
2493
+ }
2494
+ }
2495
+ if (this.configuration && this.configuration.accessToken) {
2496
+ // oauth required
2497
+ const oauthToken = await this.configuration.accessToken("OAuth2", ["openid", "profile", "email"]);
2498
+ if (oauthToken) {
2499
+ headerParameters["Authorization"] = oauthToken.startsWith("Bearer ") ? oauthToken : `Bearer ${oauthToken}`;
2500
+ }
2501
+ }
2502
+ if (this.configuration && this.configuration.accessToken) {
2503
+ const token = this.configuration.accessToken;
2504
+ const tokenString = await token("ApiKey", []);
2505
+ if (tokenString) {
2506
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
2507
+ }
2508
+ }
2509
+ let urlPath = `/api/llm-gateway/admin/routing-policies`;
2510
+ return {
2511
+ path: urlPath,
2512
+ method: 'GET',
2513
+ headers: headerParameters,
2514
+ query: queryParameters,
2515
+ };
2516
+ }
2517
+ /**
2518
+ * List the organization\'s routing policys
2519
+ */
2520
+ async listRoutingPoliciesRaw(initOverrides) {
2521
+ const requestOptions = await this.listRoutingPoliciesRequestOpts();
2522
+ const response = await this.request(requestOptions, initOverrides);
2523
+ return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(RoutingPolicyFromJSON));
2524
+ }
2525
+ /**
2526
+ * List the organization\'s routing policys
2527
+ */
2528
+ async listRoutingPolicies(initOverrides) {
2529
+ const response = await this.listRoutingPoliciesRaw(initOverrides);
2530
+ return await response.value();
2531
+ }
2532
+ /**
2533
+ * Creates request options for listRoutingRules without sending the request
2534
+ */
2535
+ async listRoutingRulesRequestOpts(requestParameters) {
2536
+ if (requestParameters['policyId'] == null) {
2537
+ throw new runtime.RequiredError('policyId', 'Required parameter "policyId" was null or undefined when calling listRoutingRules().');
2538
+ }
2539
+ const queryParameters = {};
2540
+ if (requestParameters['policyId'] != null) {
2541
+ queryParameters['policy_id'] = requestParameters['policyId'];
2542
+ }
2543
+ const headerParameters = {};
2544
+ if (this.configuration && this.configuration.accessToken) {
2545
+ // oauth required
2546
+ const oauthToken = await this.configuration.accessToken("OAuth2", ["openid", "profile", "email"]);
2547
+ if (oauthToken) {
2548
+ headerParameters["Authorization"] = oauthToken.startsWith("Bearer ") ? oauthToken : `Bearer ${oauthToken}`;
2549
+ }
2550
+ }
2551
+ if (this.configuration && this.configuration.accessToken) {
2552
+ // oauth required
2553
+ const oauthToken = await this.configuration.accessToken("OAuth2", ["openid", "profile", "email"]);
2554
+ if (oauthToken) {
2555
+ headerParameters["Authorization"] = oauthToken.startsWith("Bearer ") ? oauthToken : `Bearer ${oauthToken}`;
2556
+ }
2557
+ }
2558
+ if (this.configuration && this.configuration.accessToken) {
2559
+ const token = this.configuration.accessToken;
2560
+ const tokenString = await token("ApiKey", []);
2561
+ if (tokenString) {
2562
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
2563
+ }
2564
+ }
2565
+ let urlPath = `/api/llm-gateway/admin/routing-rules`;
2566
+ return {
2567
+ path: urlPath,
2568
+ method: 'GET',
2569
+ headers: headerParameters,
2570
+ query: queryParameters,
2571
+ };
2572
+ }
2573
+ /**
2574
+ * List the organization\'s routing rules
2575
+ */
2576
+ async listRoutingRulesRaw(requestParameters, initOverrides) {
2577
+ const requestOptions = await this.listRoutingRulesRequestOpts(requestParameters);
2578
+ const response = await this.request(requestOptions, initOverrides);
2579
+ return new runtime.JSONApiResponse(response, (jsonValue) => ListRoutingRulesResponseFromJSON(jsonValue));
2580
+ }
2581
+ /**
2582
+ * List the organization\'s routing rules
2583
+ */
2584
+ async listRoutingRules(requestParameters, initOverrides) {
2585
+ const response = await this.listRoutingRulesRaw(requestParameters, initOverrides);
2586
+ return await response.value();
2587
+ }
2588
+ /**
2589
+ * Creates request options for lookupPricingVersion without sending the request
2590
+ */
2591
+ async lookupPricingVersionRequestOpts(requestParameters) {
2592
+ if (requestParameters['id'] == null) {
2593
+ throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling lookupPricingVersion().');
2594
+ }
2595
+ const queryParameters = {};
2596
+ const headerParameters = {};
2597
+ if (this.configuration && this.configuration.accessToken) {
2598
+ // oauth required
2599
+ const oauthToken = await this.configuration.accessToken("OAuth2", ["openid", "profile", "email"]);
2600
+ if (oauthToken) {
2601
+ headerParameters["Authorization"] = oauthToken.startsWith("Bearer ") ? oauthToken : `Bearer ${oauthToken}`;
2602
+ }
2603
+ }
2604
+ if (this.configuration && this.configuration.accessToken) {
2605
+ // oauth required
2606
+ const oauthToken = await this.configuration.accessToken("OAuth2", ["openid", "profile", "email"]);
2607
+ if (oauthToken) {
2608
+ headerParameters["Authorization"] = oauthToken.startsWith("Bearer ") ? oauthToken : `Bearer ${oauthToken}`;
2609
+ }
2610
+ }
2611
+ if (this.configuration && this.configuration.accessToken) {
2612
+ const token = this.configuration.accessToken;
2613
+ const tokenString = await token("ApiKey", []);
2614
+ if (tokenString) {
2615
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
2616
+ }
2617
+ }
2618
+ let urlPath = `/api/llm-gateway/admin/model-pricing/version/{id}`;
2619
+ urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
2620
+ return {
2621
+ path: urlPath,
2622
+ method: 'GET',
2623
+ headers: headerParameters,
2624
+ query: queryParameters,
2625
+ };
2626
+ }
2627
+ /**
2628
+ * Fetch one version of a pricing rule
2629
+ */
2630
+ async lookupPricingVersionRaw(requestParameters, initOverrides) {
2631
+ const requestOptions = await this.lookupPricingVersionRequestOpts(requestParameters);
2632
+ const response = await this.request(requestOptions, initOverrides);
2633
+ return new runtime.JSONApiResponse(response, (jsonValue) => AdminModelPricingFromJSON(jsonValue));
2634
+ }
2635
+ /**
2636
+ * Fetch one version of a pricing rule
2637
+ */
2638
+ async lookupPricingVersion(requestParameters, initOverrides) {
2639
+ const response = await this.lookupPricingVersionRaw(requestParameters, initOverrides);
2640
+ return await response.value();
2641
+ }
2642
+ /**
2643
+ * Creates request options for patchProfileMetadata without sending the request
2644
+ */
2645
+ async patchProfileMetadataRequestOpts(requestParameters) {
2646
+ if (requestParameters['slug'] == null) {
2647
+ throw new runtime.RequiredError('slug', 'Required parameter "slug" was null or undefined when calling patchProfileMetadata().');
2648
+ }
2649
+ if (requestParameters['metadataPatchRequest'] == null) {
2650
+ throw new runtime.RequiredError('metadataPatchRequest', 'Required parameter "metadataPatchRequest" was null or undefined when calling patchProfileMetadata().');
2651
+ }
2652
+ const queryParameters = {};
2653
+ const headerParameters = {};
2654
+ headerParameters['Content-Type'] = 'application/json';
2655
+ if (this.configuration && this.configuration.accessToken) {
2656
+ // oauth required
2657
+ const oauthToken = await this.configuration.accessToken("OAuth2", ["openid", "profile", "email"]);
2658
+ if (oauthToken) {
2659
+ headerParameters["Authorization"] = oauthToken.startsWith("Bearer ") ? oauthToken : `Bearer ${oauthToken}`;
2660
+ }
2661
+ }
2662
+ if (this.configuration && this.configuration.accessToken) {
2663
+ // oauth required
2664
+ const oauthToken = await this.configuration.accessToken("OAuth2", ["openid", "profile", "email"]);
2665
+ if (oauthToken) {
2666
+ headerParameters["Authorization"] = oauthToken.startsWith("Bearer ") ? oauthToken : `Bearer ${oauthToken}`;
2667
+ }
2668
+ }
2669
+ if (this.configuration && this.configuration.accessToken) {
2670
+ const token = this.configuration.accessToken;
2671
+ const tokenString = await token("ApiKey", []);
2672
+ if (tokenString) {
2673
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
2674
+ }
2675
+ }
2676
+ let urlPath = `/api/llm-gateway/admin/agent-runtime-profiles/{slug}`;
2677
+ urlPath = urlPath.replace('{slug}', encodeURIComponent(String(requestParameters['slug'])));
2678
+ return {
2679
+ path: urlPath,
2680
+ method: 'PATCH',
2681
+ headers: headerParameters,
2682
+ query: queryParameters,
2683
+ body: MetadataPatchRequestToJSON(requestParameters['metadataPatchRequest']),
2684
+ };
2685
+ }
2686
+ /**
2687
+ * Update a profile\'s display metadata
2688
+ */
2689
+ async patchProfileMetadataRaw(requestParameters, initOverrides) {
2690
+ const requestOptions = await this.patchProfileMetadataRequestOpts(requestParameters);
2691
+ const response = await this.request(requestOptions, initOverrides);
2692
+ return new runtime.JSONApiResponse(response, (jsonValue) => AgentRuntimeProfileFromJSON(jsonValue));
2693
+ }
2694
+ /**
2695
+ * Update a profile\'s display metadata
2696
+ */
2697
+ async patchProfileMetadata(requestParameters, initOverrides) {
2698
+ const response = await this.patchProfileMetadataRaw(requestParameters, initOverrides);
2699
+ return await response.value();
2700
+ }
2701
+ /**
2702
+ * Creates request options for removeRouteGroupMember without sending the request
2703
+ */
2704
+ async removeRouteGroupMemberRequestOpts(requestParameters) {
2705
+ if (requestParameters['id'] == null) {
2706
+ throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling removeRouteGroupMember().');
2707
+ }
2708
+ if (requestParameters['alias'] == null) {
2709
+ throw new runtime.RequiredError('alias', 'Required parameter "alias" was null or undefined when calling removeRouteGroupMember().');
2710
+ }
2711
+ const queryParameters = {};
2712
+ const headerParameters = {};
2713
+ if (this.configuration && this.configuration.accessToken) {
2714
+ // oauth required
2715
+ const oauthToken = await this.configuration.accessToken("OAuth2", ["openid", "profile", "email"]);
2716
+ if (oauthToken) {
2717
+ headerParameters["Authorization"] = oauthToken.startsWith("Bearer ") ? oauthToken : `Bearer ${oauthToken}`;
2718
+ }
2719
+ }
2720
+ if (this.configuration && this.configuration.accessToken) {
2721
+ // oauth required
2722
+ const oauthToken = await this.configuration.accessToken("OAuth2", ["openid", "profile", "email"]);
2723
+ if (oauthToken) {
2724
+ headerParameters["Authorization"] = oauthToken.startsWith("Bearer ") ? oauthToken : `Bearer ${oauthToken}`;
2725
+ }
2726
+ }
2727
+ if (this.configuration && this.configuration.accessToken) {
2728
+ const token = this.configuration.accessToken;
2729
+ const tokenString = await token("ApiKey", []);
2730
+ if (tokenString) {
2731
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
2732
+ }
2733
+ }
2734
+ let urlPath = `/api/llm-gateway/admin/model-route-groups/{id}/members/{alias}`;
2735
+ urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
2736
+ urlPath = urlPath.replace('{alias}', encodeURIComponent(String(requestParameters['alias'])));
2737
+ return {
2738
+ path: urlPath,
2739
+ method: 'DELETE',
2740
+ headers: headerParameters,
2741
+ query: queryParameters,
2742
+ };
2743
+ }
2744
+ /**
2745
+ * Remove a model from a route group
2746
+ */
2747
+ async removeRouteGroupMemberRaw(requestParameters, initOverrides) {
2748
+ const requestOptions = await this.removeRouteGroupMemberRequestOpts(requestParameters);
2749
+ const response = await this.request(requestOptions, initOverrides);
2750
+ return new runtime.JSONApiResponse(response, (jsonValue) => ModelRouteGroupFromJSON(jsonValue));
2751
+ }
2752
+ /**
2753
+ * Remove a model from a route group
2754
+ */
2755
+ async removeRouteGroupMember(requestParameters, initOverrides) {
2756
+ const response = await this.removeRouteGroupMemberRaw(requestParameters, initOverrides);
2757
+ return await response.value();
2758
+ }
2759
+ /**
2760
+ * Creates request options for reorderModelMappings without sending the request
2761
+ */
2762
+ async reorderModelMappingsRequestOpts(requestParameters) {
2763
+ if (requestParameters['reorderModelMappingsRequest'] == null) {
2764
+ throw new runtime.RequiredError('reorderModelMappingsRequest', 'Required parameter "reorderModelMappingsRequest" was null or undefined when calling reorderModelMappings().');
2765
+ }
2766
+ const queryParameters = {};
2767
+ const headerParameters = {};
2768
+ headerParameters['Content-Type'] = 'application/json';
2769
+ if (this.configuration && this.configuration.accessToken) {
2770
+ // oauth required
2771
+ const oauthToken = await this.configuration.accessToken("OAuth2", ["openid", "profile", "email"]);
2772
+ if (oauthToken) {
2773
+ headerParameters["Authorization"] = oauthToken.startsWith("Bearer ") ? oauthToken : `Bearer ${oauthToken}`;
2774
+ }
2775
+ }
2776
+ if (this.configuration && this.configuration.accessToken) {
2777
+ // oauth required
2778
+ const oauthToken = await this.configuration.accessToken("OAuth2", ["openid", "profile", "email"]);
2779
+ if (oauthToken) {
2780
+ headerParameters["Authorization"] = oauthToken.startsWith("Bearer ") ? oauthToken : `Bearer ${oauthToken}`;
2781
+ }
2782
+ }
2783
+ if (this.configuration && this.configuration.accessToken) {
2784
+ const token = this.configuration.accessToken;
2785
+ const tokenString = await token("ApiKey", []);
2786
+ if (tokenString) {
2787
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
2788
+ }
2789
+ }
2790
+ let urlPath = `/api/llm-gateway/admin/model-mappings/reorder`;
2791
+ return {
2792
+ path: urlPath,
2793
+ method: 'PUT',
2794
+ headers: headerParameters,
2795
+ query: queryParameters,
2796
+ body: ReorderModelMappingsRequestToJSON(requestParameters['reorderModelMappingsRequest']),
2797
+ };
2798
+ }
2799
+ /**
2800
+ * Reorder the organization\'s model mappings
2801
+ */
2802
+ async reorderModelMappingsRaw(requestParameters, initOverrides) {
2803
+ const requestOptions = await this.reorderModelMappingsRequestOpts(requestParameters);
2804
+ const response = await this.request(requestOptions, initOverrides);
2805
+ return new runtime.JSONApiResponse(response, (jsonValue) => ReorderedResponseFromJSON(jsonValue));
2806
+ }
2807
+ /**
2808
+ * Reorder the organization\'s model mappings
2809
+ */
2810
+ async reorderModelMappings(requestParameters, initOverrides) {
2811
+ const response = await this.reorderModelMappingsRaw(requestParameters, initOverrides);
2812
+ return await response.value();
2813
+ }
2814
+ /**
2815
+ * Creates request options for revokeApiKey without sending the request
2816
+ */
2817
+ async revokeApiKeyRequestOpts(requestParameters) {
2818
+ if (requestParameters['id'] == null) {
2819
+ throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling revokeApiKey().');
2820
+ }
2821
+ const queryParameters = {};
2822
+ const headerParameters = {};
2823
+ if (this.configuration && this.configuration.accessToken) {
2824
+ // oauth required
2825
+ const oauthToken = await this.configuration.accessToken("OAuth2", ["openid", "profile", "email"]);
2826
+ if (oauthToken) {
2827
+ headerParameters["Authorization"] = oauthToken.startsWith("Bearer ") ? oauthToken : `Bearer ${oauthToken}`;
2828
+ }
2829
+ }
2830
+ if (this.configuration && this.configuration.accessToken) {
2831
+ // oauth required
2832
+ const oauthToken = await this.configuration.accessToken("OAuth2", ["openid", "profile", "email"]);
2833
+ if (oauthToken) {
2834
+ headerParameters["Authorization"] = oauthToken.startsWith("Bearer ") ? oauthToken : `Bearer ${oauthToken}`;
2835
+ }
2836
+ }
2837
+ if (this.configuration && this.configuration.accessToken) {
2838
+ const token = this.configuration.accessToken;
2839
+ const tokenString = await token("ApiKey", []);
2840
+ if (tokenString) {
2841
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
2842
+ }
2843
+ }
2844
+ let urlPath = `/api/llm-gateway/admin/api-keys/{id}`;
2845
+ urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
2846
+ return {
2847
+ path: urlPath,
2848
+ method: 'DELETE',
2849
+ headers: headerParameters,
2850
+ query: queryParameters,
2851
+ };
2852
+ }
2853
+ /**
2854
+ * Delete a API key
2855
+ */
2856
+ async revokeApiKeyRaw(requestParameters, initOverrides) {
2857
+ const requestOptions = await this.revokeApiKeyRequestOpts(requestParameters);
2858
+ const response = await this.request(requestOptions, initOverrides);
2859
+ return new runtime.JSONApiResponse(response, (jsonValue) => RevokedResponseFromJSON(jsonValue));
2860
+ }
2861
+ /**
2862
+ * Delete a API key
2863
+ */
2864
+ async revokeApiKey(requestParameters, initOverrides) {
2865
+ const response = await this.revokeApiKeyRaw(requestParameters, initOverrides);
2866
+ return await response.value();
2867
+ }
2868
+ /**
2869
+ * Creates request options for setApiKeyDisabled without sending the request
2870
+ */
2871
+ async setApiKeyDisabledRequestOpts(requestParameters) {
2872
+ if (requestParameters['id'] == null) {
2873
+ throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling setApiKeyDisabled().');
2874
+ }
2875
+ if (requestParameters['setApiKeyDisabledRequest'] == null) {
2876
+ throw new runtime.RequiredError('setApiKeyDisabledRequest', 'Required parameter "setApiKeyDisabledRequest" was null or undefined when calling setApiKeyDisabled().');
2877
+ }
2878
+ const queryParameters = {};
2879
+ const headerParameters = {};
2880
+ headerParameters['Content-Type'] = 'application/json';
2881
+ if (this.configuration && this.configuration.accessToken) {
2882
+ // oauth required
2883
+ const oauthToken = await this.configuration.accessToken("OAuth2", ["openid", "profile", "email"]);
2884
+ if (oauthToken) {
2885
+ headerParameters["Authorization"] = oauthToken.startsWith("Bearer ") ? oauthToken : `Bearer ${oauthToken}`;
2886
+ }
2887
+ }
2888
+ if (this.configuration && this.configuration.accessToken) {
2889
+ // oauth required
2890
+ const oauthToken = await this.configuration.accessToken("OAuth2", ["openid", "profile", "email"]);
2891
+ if (oauthToken) {
2892
+ headerParameters["Authorization"] = oauthToken.startsWith("Bearer ") ? oauthToken : `Bearer ${oauthToken}`;
2893
+ }
2894
+ }
2895
+ if (this.configuration && this.configuration.accessToken) {
2896
+ const token = this.configuration.accessToken;
2897
+ const tokenString = await token("ApiKey", []);
2898
+ if (tokenString) {
2899
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
2900
+ }
2901
+ }
2902
+ let urlPath = `/api/llm-gateway/admin/api-keys/{id}`;
2903
+ urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
2904
+ return {
2905
+ path: urlPath,
2906
+ method: 'PATCH',
2907
+ headers: headerParameters,
2908
+ query: queryParameters,
2909
+ body: SetApiKeyDisabledRequestToJSON(requestParameters['setApiKeyDisabledRequest']),
2910
+ };
2911
+ }
2912
+ /**
2913
+ * Update a API key
2914
+ */
2915
+ async setApiKeyDisabledRaw(requestParameters, initOverrides) {
2916
+ const requestOptions = await this.setApiKeyDisabledRequestOpts(requestParameters);
2917
+ const response = await this.request(requestOptions, initOverrides);
2918
+ return new runtime.JSONApiResponse(response, (jsonValue) => ApiKeyDisabledResponseFromJSON(jsonValue));
2919
+ }
2920
+ /**
2921
+ * Update a API key
2922
+ */
2923
+ async setApiKeyDisabled(requestParameters, initOverrides) {
2924
+ const response = await this.setApiKeyDisabledRaw(requestParameters, initOverrides);
2925
+ return await response.value();
2926
+ }
2927
+ /**
2928
+ * Creates request options for setProfileDefault without sending the request
2929
+ */
2930
+ async setProfileDefaultRequestOpts(requestParameters) {
2931
+ if (requestParameters['slug'] == null) {
2932
+ throw new runtime.RequiredError('slug', 'Required parameter "slug" was null or undefined when calling setProfileDefault().');
2933
+ }
2934
+ const queryParameters = {};
2935
+ const headerParameters = {};
2936
+ if (this.configuration && this.configuration.accessToken) {
2937
+ // oauth required
2938
+ const oauthToken = await this.configuration.accessToken("OAuth2", ["openid", "profile", "email"]);
2939
+ if (oauthToken) {
2940
+ headerParameters["Authorization"] = oauthToken.startsWith("Bearer ") ? oauthToken : `Bearer ${oauthToken}`;
2941
+ }
2942
+ }
2943
+ if (this.configuration && this.configuration.accessToken) {
2944
+ // oauth required
2945
+ const oauthToken = await this.configuration.accessToken("OAuth2", ["openid", "profile", "email"]);
2946
+ if (oauthToken) {
2947
+ headerParameters["Authorization"] = oauthToken.startsWith("Bearer ") ? oauthToken : `Bearer ${oauthToken}`;
2948
+ }
2949
+ }
2950
+ if (this.configuration && this.configuration.accessToken) {
2951
+ const token = this.configuration.accessToken;
2952
+ const tokenString = await token("ApiKey", []);
2953
+ if (tokenString) {
2954
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
2955
+ }
2956
+ }
2957
+ let urlPath = `/api/llm-gateway/admin/agent-runtime-profiles/{slug}/default`;
2958
+ urlPath = urlPath.replace('{slug}', encodeURIComponent(String(requestParameters['slug'])));
2959
+ return {
2960
+ path: urlPath,
2961
+ method: 'POST',
2962
+ headers: headerParameters,
2963
+ query: queryParameters,
2964
+ };
2965
+ }
2966
+ /**
2967
+ * Make this the organization\'s default profile for its client
2968
+ */
2969
+ async setProfileDefaultRaw(requestParameters, initOverrides) {
2970
+ const requestOptions = await this.setProfileDefaultRequestOpts(requestParameters);
2971
+ const response = await this.request(requestOptions, initOverrides);
2972
+ return new runtime.JSONApiResponse(response, (jsonValue) => AgentRuntimeProfileFromJSON(jsonValue));
2973
+ }
2974
+ /**
2975
+ * Make this the organization\'s default profile for its client
2976
+ */
2977
+ async setProfileDefault(requestParameters, initOverrides) {
2978
+ const response = await this.setProfileDefaultRaw(requestParameters, initOverrides);
2979
+ return await response.value();
2980
+ }
2981
+ /**
2982
+ * Creates request options for updateBudget without sending the request
2983
+ */
2984
+ async updateBudgetRequestOpts(requestParameters) {
2985
+ if (requestParameters['id'] == null) {
2986
+ throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling updateBudget().');
2987
+ }
2988
+ if (requestParameters['updateBudgetRequest'] == null) {
2989
+ throw new runtime.RequiredError('updateBudgetRequest', 'Required parameter "updateBudgetRequest" was null or undefined when calling updateBudget().');
2990
+ }
2991
+ const queryParameters = {};
2992
+ const headerParameters = {};
2993
+ headerParameters['Content-Type'] = 'application/json';
2994
+ if (this.configuration && this.configuration.accessToken) {
2995
+ // oauth required
2996
+ const oauthToken = await this.configuration.accessToken("OAuth2", ["openid", "profile", "email"]);
2997
+ if (oauthToken) {
2998
+ headerParameters["Authorization"] = oauthToken.startsWith("Bearer ") ? oauthToken : `Bearer ${oauthToken}`;
2999
+ }
3000
+ }
3001
+ if (this.configuration && this.configuration.accessToken) {
3002
+ // oauth required
3003
+ const oauthToken = await this.configuration.accessToken("OAuth2", ["openid", "profile", "email"]);
3004
+ if (oauthToken) {
3005
+ headerParameters["Authorization"] = oauthToken.startsWith("Bearer ") ? oauthToken : `Bearer ${oauthToken}`;
3006
+ }
3007
+ }
3008
+ if (this.configuration && this.configuration.accessToken) {
3009
+ const token = this.configuration.accessToken;
3010
+ const tokenString = await token("ApiKey", []);
3011
+ if (tokenString) {
3012
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
3013
+ }
3014
+ }
3015
+ let urlPath = `/api/llm-gateway/admin/budgets/{id}`;
3016
+ urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
3017
+ return {
3018
+ path: urlPath,
3019
+ method: 'PUT',
3020
+ headers: headerParameters,
3021
+ query: queryParameters,
3022
+ body: UpdateBudgetRequestToJSON(requestParameters['updateBudgetRequest']),
3023
+ };
3024
+ }
3025
+ /**
3026
+ * Update a token budget
3027
+ */
3028
+ async updateBudgetRaw(requestParameters, initOverrides) {
3029
+ const requestOptions = await this.updateBudgetRequestOpts(requestParameters);
3030
+ const response = await this.request(requestOptions, initOverrides);
3031
+ return new runtime.JSONApiResponse(response, (jsonValue) => WithAttributionTokenBudgetFromJSON(jsonValue));
3032
+ }
3033
+ /**
3034
+ * Update a token budget
3035
+ */
3036
+ async updateBudget(requestParameters, initOverrides) {
3037
+ const response = await this.updateBudgetRaw(requestParameters, initOverrides);
3038
+ return await response.value();
3039
+ }
3040
+ /**
3041
+ * Creates request options for updateConnection without sending the request
3042
+ */
3043
+ async updateConnectionRequestOpts(requestParameters) {
3044
+ if (requestParameters['id'] == null) {
3045
+ throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling updateConnection().');
3046
+ }
3047
+ if (requestParameters['updateConnectionRequest'] == null) {
3048
+ throw new runtime.RequiredError('updateConnectionRequest', 'Required parameter "updateConnectionRequest" was null or undefined when calling updateConnection().');
3049
+ }
3050
+ const queryParameters = {};
3051
+ const headerParameters = {};
3052
+ headerParameters['Content-Type'] = 'application/json';
3053
+ if (this.configuration && this.configuration.accessToken) {
3054
+ // oauth required
3055
+ const oauthToken = await this.configuration.accessToken("OAuth2", ["openid", "profile", "email"]);
3056
+ if (oauthToken) {
3057
+ headerParameters["Authorization"] = oauthToken.startsWith("Bearer ") ? oauthToken : `Bearer ${oauthToken}`;
3058
+ }
3059
+ }
3060
+ if (this.configuration && this.configuration.accessToken) {
3061
+ // oauth required
3062
+ const oauthToken = await this.configuration.accessToken("OAuth2", ["openid", "profile", "email"]);
3063
+ if (oauthToken) {
3064
+ headerParameters["Authorization"] = oauthToken.startsWith("Bearer ") ? oauthToken : `Bearer ${oauthToken}`;
3065
+ }
3066
+ }
3067
+ if (this.configuration && this.configuration.accessToken) {
3068
+ const token = this.configuration.accessToken;
3069
+ const tokenString = await token("ApiKey", []);
3070
+ if (tokenString) {
3071
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
3072
+ }
3073
+ }
3074
+ let urlPath = `/api/llm-gateway/admin/connections/{id}`;
3075
+ urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
3076
+ return {
3077
+ path: urlPath,
3078
+ method: 'PUT',
3079
+ headers: headerParameters,
3080
+ query: queryParameters,
3081
+ body: UpdateConnectionRequestToJSON(requestParameters['updateConnectionRequest']),
3082
+ };
3083
+ }
3084
+ /**
3085
+ * Update a provider connection
3086
+ */
3087
+ async updateConnectionRaw(requestParameters, initOverrides) {
3088
+ const requestOptions = await this.updateConnectionRequestOpts(requestParameters);
3089
+ const response = await this.request(requestOptions, initOverrides);
3090
+ return new runtime.JSONApiResponse(response, (jsonValue) => ConnectionFromJSON(jsonValue));
3091
+ }
3092
+ /**
3093
+ * Update a provider connection
3094
+ */
3095
+ async updateConnection(requestParameters, initOverrides) {
3096
+ const response = await this.updateConnectionRaw(requestParameters, initOverrides);
3097
+ return await response.value();
3098
+ }
3099
+ /**
3100
+ * Creates request options for updateGovernanceConfig without sending the request
3101
+ */
3102
+ async updateGovernanceConfigRequestOpts(requestParameters) {
3103
+ if (requestParameters['governanceConfig'] == null) {
3104
+ throw new runtime.RequiredError('governanceConfig', 'Required parameter "governanceConfig" was null or undefined when calling updateGovernanceConfig().');
3105
+ }
3106
+ const queryParameters = {};
3107
+ const headerParameters = {};
3108
+ headerParameters['Content-Type'] = 'application/json';
3109
+ if (this.configuration && this.configuration.accessToken) {
3110
+ // oauth required
3111
+ const oauthToken = await this.configuration.accessToken("OAuth2", ["openid", "profile", "email"]);
3112
+ if (oauthToken) {
3113
+ headerParameters["Authorization"] = oauthToken.startsWith("Bearer ") ? oauthToken : `Bearer ${oauthToken}`;
3114
+ }
3115
+ }
3116
+ if (this.configuration && this.configuration.accessToken) {
3117
+ // oauth required
3118
+ const oauthToken = await this.configuration.accessToken("OAuth2", ["openid", "profile", "email"]);
3119
+ if (oauthToken) {
3120
+ headerParameters["Authorization"] = oauthToken.startsWith("Bearer ") ? oauthToken : `Bearer ${oauthToken}`;
3121
+ }
3122
+ }
3123
+ if (this.configuration && this.configuration.accessToken) {
3124
+ const token = this.configuration.accessToken;
3125
+ const tokenString = await token("ApiKey", []);
3126
+ if (tokenString) {
3127
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
3128
+ }
3129
+ }
3130
+ let urlPath = `/api/llm-gateway/admin/governance-config`;
3131
+ return {
3132
+ path: urlPath,
3133
+ method: 'PUT',
3134
+ headers: headerParameters,
3135
+ query: queryParameters,
3136
+ body: GovernanceConfigToJSON(requestParameters['governanceConfig']),
3137
+ };
3138
+ }
3139
+ /**
3140
+ * Update a governance configuration
3141
+ */
3142
+ async updateGovernanceConfigRaw(requestParameters, initOverrides) {
3143
+ const requestOptions = await this.updateGovernanceConfigRequestOpts(requestParameters);
3144
+ const response = await this.request(requestOptions, initOverrides);
3145
+ return new runtime.JSONApiResponse(response, (jsonValue) => GovernanceConfigFromJSON(jsonValue));
3146
+ }
3147
+ /**
3148
+ * Update a governance configuration
3149
+ */
3150
+ async updateGovernanceConfig(requestParameters, initOverrides) {
3151
+ const response = await this.updateGovernanceConfigRaw(requestParameters, initOverrides);
3152
+ return await response.value();
3153
+ }
3154
+ /**
3155
+ * Creates request options for updateModelAccess without sending the request
3156
+ */
3157
+ async updateModelAccessRequestOpts(requestParameters) {
3158
+ if (requestParameters['id'] == null) {
3159
+ throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling updateModelAccess().');
3160
+ }
3161
+ if (requestParameters['updateModelAccessRequest'] == null) {
3162
+ throw new runtime.RequiredError('updateModelAccessRequest', 'Required parameter "updateModelAccessRequest" was null or undefined when calling updateModelAccess().');
3163
+ }
3164
+ const queryParameters = {};
3165
+ const headerParameters = {};
3166
+ headerParameters['Content-Type'] = 'application/json';
3167
+ if (this.configuration && this.configuration.accessToken) {
3168
+ // oauth required
3169
+ const oauthToken = await this.configuration.accessToken("OAuth2", ["openid", "profile", "email"]);
3170
+ if (oauthToken) {
3171
+ headerParameters["Authorization"] = oauthToken.startsWith("Bearer ") ? oauthToken : `Bearer ${oauthToken}`;
3172
+ }
3173
+ }
3174
+ if (this.configuration && this.configuration.accessToken) {
3175
+ // oauth required
3176
+ const oauthToken = await this.configuration.accessToken("OAuth2", ["openid", "profile", "email"]);
3177
+ if (oauthToken) {
3178
+ headerParameters["Authorization"] = oauthToken.startsWith("Bearer ") ? oauthToken : `Bearer ${oauthToken}`;
3179
+ }
3180
+ }
3181
+ if (this.configuration && this.configuration.accessToken) {
3182
+ const token = this.configuration.accessToken;
3183
+ const tokenString = await token("ApiKey", []);
3184
+ if (tokenString) {
3185
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
3186
+ }
3187
+ }
3188
+ let urlPath = `/api/llm-gateway/admin/model-access/{id}`;
3189
+ urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
3190
+ return {
3191
+ path: urlPath,
3192
+ method: 'PUT',
3193
+ headers: headerParameters,
3194
+ query: queryParameters,
3195
+ body: UpdateModelAccessRequestToJSON(requestParameters['updateModelAccessRequest']),
3196
+ };
3197
+ }
3198
+ /**
3199
+ * Update a model-access policy
3200
+ */
3201
+ async updateModelAccessRaw(requestParameters, initOverrides) {
3202
+ const requestOptions = await this.updateModelAccessRequestOpts(requestParameters);
3203
+ const response = await this.request(requestOptions, initOverrides);
3204
+ return new runtime.JSONApiResponse(response, (jsonValue) => WithAttributionModelAccessPolicyFromJSON(jsonValue));
3205
+ }
3206
+ /**
3207
+ * Update a model-access policy
3208
+ */
3209
+ async updateModelAccess(requestParameters, initOverrides) {
3210
+ const response = await this.updateModelAccessRaw(requestParameters, initOverrides);
3211
+ return await response.value();
3212
+ }
3213
+ /**
3214
+ * Creates request options for updateModelMapping without sending the request
3215
+ */
3216
+ async updateModelMappingRequestOpts(requestParameters) {
3217
+ if (requestParameters['id'] == null) {
3218
+ throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling updateModelMapping().');
3219
+ }
3220
+ if (requestParameters['updateModelMappingRequest'] == null) {
3221
+ throw new runtime.RequiredError('updateModelMappingRequest', 'Required parameter "updateModelMappingRequest" was null or undefined when calling updateModelMapping().');
3222
+ }
3223
+ const queryParameters = {};
3224
+ const headerParameters = {};
3225
+ headerParameters['Content-Type'] = 'application/json';
3226
+ if (this.configuration && this.configuration.accessToken) {
3227
+ // oauth required
3228
+ const oauthToken = await this.configuration.accessToken("OAuth2", ["openid", "profile", "email"]);
3229
+ if (oauthToken) {
3230
+ headerParameters["Authorization"] = oauthToken.startsWith("Bearer ") ? oauthToken : `Bearer ${oauthToken}`;
3231
+ }
3232
+ }
3233
+ if (this.configuration && this.configuration.accessToken) {
3234
+ // oauth required
3235
+ const oauthToken = await this.configuration.accessToken("OAuth2", ["openid", "profile", "email"]);
3236
+ if (oauthToken) {
3237
+ headerParameters["Authorization"] = oauthToken.startsWith("Bearer ") ? oauthToken : `Bearer ${oauthToken}`;
3238
+ }
3239
+ }
3240
+ if (this.configuration && this.configuration.accessToken) {
3241
+ const token = this.configuration.accessToken;
3242
+ const tokenString = await token("ApiKey", []);
3243
+ if (tokenString) {
3244
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
3245
+ }
3246
+ }
3247
+ let urlPath = `/api/llm-gateway/admin/model-mappings/{id}`;
3248
+ urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
3249
+ return {
3250
+ path: urlPath,
3251
+ method: 'PUT',
3252
+ headers: headerParameters,
3253
+ query: queryParameters,
3254
+ body: UpdateModelMappingRequestToJSON(requestParameters['updateModelMappingRequest']),
3255
+ };
3256
+ }
3257
+ /**
3258
+ * When `require_pricing_for_mappings` is on, an enabled post-update row must have pricing configured for its `upstream_model`. Mirrors the create-path guard so disabled rows can\'t be silently re-enabled (or swapped to an unpriced upstream) without re-validating. `enabled: false` is always allowed.
3259
+ * Update a model mapping
3260
+ */
3261
+ async updateModelMappingRaw(requestParameters, initOverrides) {
3262
+ const requestOptions = await this.updateModelMappingRequestOpts(requestParameters);
3263
+ const response = await this.request(requestOptions, initOverrides);
3264
+ return new runtime.JSONApiResponse(response, (jsonValue) => ModelMappingFromJSON(jsonValue));
3265
+ }
3266
+ /**
3267
+ * When `require_pricing_for_mappings` is on, an enabled post-update row must have pricing configured for its `upstream_model`. Mirrors the create-path guard so disabled rows can\'t be silently re-enabled (or swapped to an unpriced upstream) without re-validating. `enabled: false` is always allowed.
3268
+ * Update a model mapping
3269
+ */
3270
+ async updateModelMapping(requestParameters, initOverrides) {
3271
+ const response = await this.updateModelMappingRaw(requestParameters, initOverrides);
3272
+ return await response.value();
3273
+ }
3274
+ /**
3275
+ * Creates request options for updatePricing without sending the request
3276
+ */
3277
+ async updatePricingRequestOpts(requestParameters) {
3278
+ if (requestParameters['id'] == null) {
3279
+ throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling updatePricing().');
3280
+ }
3281
+ if (requestParameters['updatePricingRequest'] == null) {
3282
+ throw new runtime.RequiredError('updatePricingRequest', 'Required parameter "updatePricingRequest" was null or undefined when calling updatePricing().');
3283
+ }
3284
+ const queryParameters = {};
3285
+ const headerParameters = {};
3286
+ headerParameters['Content-Type'] = 'application/json';
3287
+ if (this.configuration && this.configuration.accessToken) {
3288
+ // oauth required
3289
+ const oauthToken = await this.configuration.accessToken("OAuth2", ["openid", "profile", "email"]);
3290
+ if (oauthToken) {
3291
+ headerParameters["Authorization"] = oauthToken.startsWith("Bearer ") ? oauthToken : `Bearer ${oauthToken}`;
3292
+ }
3293
+ }
3294
+ if (this.configuration && this.configuration.accessToken) {
3295
+ // oauth required
3296
+ const oauthToken = await this.configuration.accessToken("OAuth2", ["openid", "profile", "email"]);
3297
+ if (oauthToken) {
3298
+ headerParameters["Authorization"] = oauthToken.startsWith("Bearer ") ? oauthToken : `Bearer ${oauthToken}`;
3299
+ }
3300
+ }
3301
+ if (this.configuration && this.configuration.accessToken) {
3302
+ const token = this.configuration.accessToken;
3303
+ const tokenString = await token("ApiKey", []);
3304
+ if (tokenString) {
3305
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
3306
+ }
3307
+ }
3308
+ let urlPath = `/api/llm-gateway/admin/model-pricing/{id}`;
3309
+ urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
3310
+ return {
3311
+ path: urlPath,
3312
+ method: 'PUT',
3313
+ headers: headerParameters,
3314
+ query: queryParameters,
3315
+ body: UpdatePricingRequestToJSON(requestParameters['updatePricingRequest']),
3316
+ };
3317
+ }
3318
+ /**
3319
+ * Update a model pricing rule
3320
+ */
3321
+ async updatePricingRaw(requestParameters, initOverrides) {
3322
+ const requestOptions = await this.updatePricingRequestOpts(requestParameters);
3323
+ const response = await this.request(requestOptions, initOverrides);
3324
+ return new runtime.JSONApiResponse(response, (jsonValue) => AdminModelPricingFromJSON(jsonValue));
3325
+ }
3326
+ /**
3327
+ * Update a model pricing rule
3328
+ */
3329
+ async updatePricing(requestParameters, initOverrides) {
3330
+ const response = await this.updatePricingRaw(requestParameters, initOverrides);
3331
+ return await response.value();
3332
+ }
3333
+ /**
3334
+ * Creates request options for updateProfileContract without sending the request
3335
+ */
3336
+ async updateProfileContractRequestOpts(requestParameters) {
3337
+ if (requestParameters['slug'] == null) {
3338
+ throw new runtime.RequiredError('slug', 'Required parameter "slug" was null or undefined when calling updateProfileContract().');
3339
+ }
3340
+ if (requestParameters['updateContractRequest'] == null) {
3341
+ throw new runtime.RequiredError('updateContractRequest', 'Required parameter "updateContractRequest" was null or undefined when calling updateProfileContract().');
3342
+ }
3343
+ const queryParameters = {};
3344
+ const headerParameters = {};
3345
+ headerParameters['Content-Type'] = 'application/json';
3346
+ if (this.configuration && this.configuration.accessToken) {
3347
+ // oauth required
3348
+ const oauthToken = await this.configuration.accessToken("OAuth2", ["openid", "profile", "email"]);
3349
+ if (oauthToken) {
3350
+ headerParameters["Authorization"] = oauthToken.startsWith("Bearer ") ? oauthToken : `Bearer ${oauthToken}`;
3351
+ }
3352
+ }
3353
+ if (this.configuration && this.configuration.accessToken) {
3354
+ // oauth required
3355
+ const oauthToken = await this.configuration.accessToken("OAuth2", ["openid", "profile", "email"]);
3356
+ if (oauthToken) {
3357
+ headerParameters["Authorization"] = oauthToken.startsWith("Bearer ") ? oauthToken : `Bearer ${oauthToken}`;
3358
+ }
3359
+ }
3360
+ if (this.configuration && this.configuration.accessToken) {
3361
+ const token = this.configuration.accessToken;
3362
+ const tokenString = await token("ApiKey", []);
3363
+ if (tokenString) {
3364
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
3365
+ }
3366
+ }
3367
+ let urlPath = `/api/llm-gateway/admin/agent-runtime-profiles/{slug}`;
3368
+ urlPath = urlPath.replace('{slug}', encodeURIComponent(String(requestParameters['slug'])));
3369
+ return {
3370
+ path: urlPath,
3371
+ method: 'PUT',
3372
+ headers: headerParameters,
3373
+ query: queryParameters,
3374
+ body: UpdateContractRequestToJSON(requestParameters['updateContractRequest']),
3375
+ };
3376
+ }
3377
+ /**
3378
+ * Replace a profile\'s capability contract
3379
+ */
3380
+ async updateProfileContractRaw(requestParameters, initOverrides) {
3381
+ const requestOptions = await this.updateProfileContractRequestOpts(requestParameters);
3382
+ const response = await this.request(requestOptions, initOverrides);
3383
+ return new runtime.JSONApiResponse(response, (jsonValue) => AgentRuntimeProfileFromJSON(jsonValue));
3384
+ }
3385
+ /**
3386
+ * Replace a profile\'s capability contract
3387
+ */
3388
+ async updateProfileContract(requestParameters, initOverrides) {
3389
+ const response = await this.updateProfileContractRaw(requestParameters, initOverrides);
3390
+ return await response.value();
3391
+ }
3392
+ /**
3393
+ * Creates request options for updateProvider without sending the request
3394
+ */
3395
+ async updateProviderRequestOpts(requestParameters) {
3396
+ if (requestParameters['id'] == null) {
3397
+ throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling updateProvider().');
3398
+ }
3399
+ if (requestParameters['updateProviderRequest'] == null) {
3400
+ throw new runtime.RequiredError('updateProviderRequest', 'Required parameter "updateProviderRequest" was null or undefined when calling updateProvider().');
3401
+ }
3402
+ const queryParameters = {};
3403
+ const headerParameters = {};
3404
+ headerParameters['Content-Type'] = 'application/json';
3405
+ if (this.configuration && this.configuration.accessToken) {
3406
+ // oauth required
3407
+ const oauthToken = await this.configuration.accessToken("OAuth2", ["openid", "profile", "email"]);
3408
+ if (oauthToken) {
3409
+ headerParameters["Authorization"] = oauthToken.startsWith("Bearer ") ? oauthToken : `Bearer ${oauthToken}`;
3410
+ }
3411
+ }
3412
+ if (this.configuration && this.configuration.accessToken) {
3413
+ // oauth required
3414
+ const oauthToken = await this.configuration.accessToken("OAuth2", ["openid", "profile", "email"]);
3415
+ if (oauthToken) {
3416
+ headerParameters["Authorization"] = oauthToken.startsWith("Bearer ") ? oauthToken : `Bearer ${oauthToken}`;
3417
+ }
3418
+ }
3419
+ if (this.configuration && this.configuration.accessToken) {
3420
+ const token = this.configuration.accessToken;
3421
+ const tokenString = await token("ApiKey", []);
3422
+ if (tokenString) {
3423
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
3424
+ }
3425
+ }
3426
+ let urlPath = `/api/llm-gateway/admin/providers/{id}`;
3427
+ urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
3428
+ return {
3429
+ path: urlPath,
3430
+ method: 'PUT',
3431
+ headers: headerParameters,
3432
+ query: queryParameters,
3433
+ body: UpdateProviderRequestToJSON(requestParameters['updateProviderRequest']),
3434
+ };
3435
+ }
3436
+ /**
3437
+ * Update a provider
3438
+ */
3439
+ async updateProviderRaw(requestParameters, initOverrides) {
3440
+ const requestOptions = await this.updateProviderRequestOpts(requestParameters);
3441
+ const response = await this.request(requestOptions, initOverrides);
3442
+ return new runtime.JSONApiResponse(response, (jsonValue) => ProviderFromJSON(jsonValue));
3443
+ }
3444
+ /**
3445
+ * Update a provider
3446
+ */
3447
+ async updateProvider(requestParameters, initOverrides) {
3448
+ const response = await this.updateProviderRaw(requestParameters, initOverrides);
3449
+ return await response.value();
3450
+ }
3451
+ /**
3452
+ * Creates request options for updateRateLimit without sending the request
3453
+ */
3454
+ async updateRateLimitRequestOpts(requestParameters) {
3455
+ if (requestParameters['id'] == null) {
3456
+ throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling updateRateLimit().');
3457
+ }
3458
+ if (requestParameters['updateRateLimitRequest'] == null) {
3459
+ throw new runtime.RequiredError('updateRateLimitRequest', 'Required parameter "updateRateLimitRequest" was null or undefined when calling updateRateLimit().');
3460
+ }
3461
+ const queryParameters = {};
3462
+ const headerParameters = {};
3463
+ headerParameters['Content-Type'] = 'application/json';
3464
+ if (this.configuration && this.configuration.accessToken) {
3465
+ // oauth required
3466
+ const oauthToken = await this.configuration.accessToken("OAuth2", ["openid", "profile", "email"]);
3467
+ if (oauthToken) {
3468
+ headerParameters["Authorization"] = oauthToken.startsWith("Bearer ") ? oauthToken : `Bearer ${oauthToken}`;
3469
+ }
3470
+ }
3471
+ if (this.configuration && this.configuration.accessToken) {
3472
+ // oauth required
3473
+ const oauthToken = await this.configuration.accessToken("OAuth2", ["openid", "profile", "email"]);
3474
+ if (oauthToken) {
3475
+ headerParameters["Authorization"] = oauthToken.startsWith("Bearer ") ? oauthToken : `Bearer ${oauthToken}`;
3476
+ }
3477
+ }
3478
+ if (this.configuration && this.configuration.accessToken) {
3479
+ const token = this.configuration.accessToken;
3480
+ const tokenString = await token("ApiKey", []);
3481
+ if (tokenString) {
3482
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
3483
+ }
3484
+ }
3485
+ let urlPath = `/api/llm-gateway/admin/rate-limits/{id}`;
3486
+ urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
3487
+ return {
3488
+ path: urlPath,
3489
+ method: 'PUT',
3490
+ headers: headerParameters,
3491
+ query: queryParameters,
3492
+ body: UpdateRateLimitRequestToJSON(requestParameters['updateRateLimitRequest']),
3493
+ };
3494
+ }
3495
+ /**
3496
+ * Update a rate-limit policy
3497
+ */
3498
+ async updateRateLimitRaw(requestParameters, initOverrides) {
3499
+ const requestOptions = await this.updateRateLimitRequestOpts(requestParameters);
3500
+ const response = await this.request(requestOptions, initOverrides);
3501
+ return new runtime.JSONApiResponse(response, (jsonValue) => WithAttributionRateLimitPolicyFromJSON(jsonValue));
3502
+ }
3503
+ /**
3504
+ * Update a rate-limit policy
3505
+ */
3506
+ async updateRateLimit(requestParameters, initOverrides) {
3507
+ const response = await this.updateRateLimitRaw(requestParameters, initOverrides);
3508
+ return await response.value();
3509
+ }
3510
+ /**
3511
+ * Creates request options for updateRouteGroup without sending the request
3512
+ */
3513
+ async updateRouteGroupRequestOpts(requestParameters) {
3514
+ if (requestParameters['id'] == null) {
3515
+ throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling updateRouteGroup().');
3516
+ }
3517
+ if (requestParameters['updateRouteGroupRequest'] == null) {
3518
+ throw new runtime.RequiredError('updateRouteGroupRequest', 'Required parameter "updateRouteGroupRequest" was null or undefined when calling updateRouteGroup().');
3519
+ }
3520
+ const queryParameters = {};
3521
+ const headerParameters = {};
3522
+ headerParameters['Content-Type'] = 'application/json';
3523
+ if (this.configuration && this.configuration.accessToken) {
3524
+ // oauth required
3525
+ const oauthToken = await this.configuration.accessToken("OAuth2", ["openid", "profile", "email"]);
3526
+ if (oauthToken) {
3527
+ headerParameters["Authorization"] = oauthToken.startsWith("Bearer ") ? oauthToken : `Bearer ${oauthToken}`;
3528
+ }
3529
+ }
3530
+ if (this.configuration && this.configuration.accessToken) {
3531
+ // oauth required
3532
+ const oauthToken = await this.configuration.accessToken("OAuth2", ["openid", "profile", "email"]);
3533
+ if (oauthToken) {
3534
+ headerParameters["Authorization"] = oauthToken.startsWith("Bearer ") ? oauthToken : `Bearer ${oauthToken}`;
3535
+ }
3536
+ }
3537
+ if (this.configuration && this.configuration.accessToken) {
3538
+ const token = this.configuration.accessToken;
3539
+ const tokenString = await token("ApiKey", []);
3540
+ if (tokenString) {
3541
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
3542
+ }
3543
+ }
3544
+ let urlPath = `/api/llm-gateway/admin/model-route-groups/{id}`;
3545
+ urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
3546
+ return {
3547
+ path: urlPath,
3548
+ method: 'PUT',
3549
+ headers: headerParameters,
3550
+ query: queryParameters,
3551
+ body: UpdateRouteGroupRequestToJSON(requestParameters['updateRouteGroupRequest']),
3552
+ };
3553
+ }
3554
+ /**
3555
+ * Update a model route group
3556
+ */
3557
+ async updateRouteGroupRaw(requestParameters, initOverrides) {
3558
+ const requestOptions = await this.updateRouteGroupRequestOpts(requestParameters);
3559
+ const response = await this.request(requestOptions, initOverrides);
3560
+ return new runtime.JSONApiResponse(response, (jsonValue) => ModelRouteGroupFromJSON(jsonValue));
3561
+ }
3562
+ /**
3563
+ * Update a model route group
3564
+ */
3565
+ async updateRouteGroup(requestParameters, initOverrides) {
3566
+ const response = await this.updateRouteGroupRaw(requestParameters, initOverrides);
3567
+ return await response.value();
3568
+ }
3569
+ /**
3570
+ * Creates request options for updateRoutingPolicy without sending the request
3571
+ */
3572
+ async updateRoutingPolicyRequestOpts(requestParameters) {
3573
+ if (requestParameters['id'] == null) {
3574
+ throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling updateRoutingPolicy().');
3575
+ }
3576
+ if (requestParameters['routingPolicyUpdate'] == null) {
3577
+ throw new runtime.RequiredError('routingPolicyUpdate', 'Required parameter "routingPolicyUpdate" was null or undefined when calling updateRoutingPolicy().');
3578
+ }
3579
+ const queryParameters = {};
3580
+ const headerParameters = {};
3581
+ headerParameters['Content-Type'] = 'application/json';
3582
+ if (this.configuration && this.configuration.accessToken) {
3583
+ // oauth required
3584
+ const oauthToken = await this.configuration.accessToken("OAuth2", ["openid", "profile", "email"]);
3585
+ if (oauthToken) {
3586
+ headerParameters["Authorization"] = oauthToken.startsWith("Bearer ") ? oauthToken : `Bearer ${oauthToken}`;
3587
+ }
3588
+ }
3589
+ if (this.configuration && this.configuration.accessToken) {
3590
+ // oauth required
3591
+ const oauthToken = await this.configuration.accessToken("OAuth2", ["openid", "profile", "email"]);
3592
+ if (oauthToken) {
3593
+ headerParameters["Authorization"] = oauthToken.startsWith("Bearer ") ? oauthToken : `Bearer ${oauthToken}`;
3594
+ }
3595
+ }
3596
+ if (this.configuration && this.configuration.accessToken) {
3597
+ const token = this.configuration.accessToken;
3598
+ const tokenString = await token("ApiKey", []);
3599
+ if (tokenString) {
3600
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
3601
+ }
3602
+ }
3603
+ let urlPath = `/api/llm-gateway/admin/routing-policies/{id}`;
3604
+ urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
3605
+ return {
3606
+ path: urlPath,
3607
+ method: 'PUT',
3608
+ headers: headerParameters,
3609
+ query: queryParameters,
3610
+ body: RoutingPolicyUpdateToJSON(requestParameters['routingPolicyUpdate']),
3611
+ };
3612
+ }
3613
+ /**
3614
+ * Update a routing policy
3615
+ */
3616
+ async updateRoutingPolicyRaw(requestParameters, initOverrides) {
3617
+ const requestOptions = await this.updateRoutingPolicyRequestOpts(requestParameters);
3618
+ const response = await this.request(requestOptions, initOverrides);
3619
+ return new runtime.JSONApiResponse(response, (jsonValue) => RoutingPolicyFromJSON(jsonValue));
3620
+ }
3621
+ /**
3622
+ * Update a routing policy
3623
+ */
3624
+ async updateRoutingPolicy(requestParameters, initOverrides) {
3625
+ const response = await this.updateRoutingPolicyRaw(requestParameters, initOverrides);
3626
+ return await response.value();
3627
+ }
3628
+ /**
3629
+ * Creates request options for updateRoutingRule without sending the request
3630
+ */
3631
+ async updateRoutingRuleRequestOpts(requestParameters) {
3632
+ if (requestParameters['id'] == null) {
3633
+ throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling updateRoutingRule().');
3634
+ }
3635
+ if (requestParameters['routingRuleDraft'] == null) {
3636
+ throw new runtime.RequiredError('routingRuleDraft', 'Required parameter "routingRuleDraft" was null or undefined when calling updateRoutingRule().');
3637
+ }
3638
+ const queryParameters = {};
3639
+ const headerParameters = {};
3640
+ headerParameters['Content-Type'] = 'application/json';
3641
+ if (this.configuration && this.configuration.accessToken) {
3642
+ // oauth required
3643
+ const oauthToken = await this.configuration.accessToken("OAuth2", ["openid", "profile", "email"]);
3644
+ if (oauthToken) {
3645
+ headerParameters["Authorization"] = oauthToken.startsWith("Bearer ") ? oauthToken : `Bearer ${oauthToken}`;
3646
+ }
3647
+ }
3648
+ if (this.configuration && this.configuration.accessToken) {
3649
+ // oauth required
3650
+ const oauthToken = await this.configuration.accessToken("OAuth2", ["openid", "profile", "email"]);
3651
+ if (oauthToken) {
3652
+ headerParameters["Authorization"] = oauthToken.startsWith("Bearer ") ? oauthToken : `Bearer ${oauthToken}`;
3653
+ }
3654
+ }
3655
+ if (this.configuration && this.configuration.accessToken) {
3656
+ const token = this.configuration.accessToken;
3657
+ const tokenString = await token("ApiKey", []);
3658
+ if (tokenString) {
3659
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
3660
+ }
3661
+ }
3662
+ let urlPath = `/api/llm-gateway/admin/routing-rules/{id}`;
3663
+ urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
3664
+ return {
3665
+ path: urlPath,
3666
+ method: 'PUT',
3667
+ headers: headerParameters,
3668
+ query: queryParameters,
3669
+ body: RoutingRuleDraftToJSON(requestParameters['routingRuleDraft']),
3670
+ };
3671
+ }
3672
+ /**
3673
+ * Update a routing rule
3674
+ */
3675
+ async updateRoutingRuleRaw(requestParameters, initOverrides) {
3676
+ const requestOptions = await this.updateRoutingRuleRequestOpts(requestParameters);
3677
+ const response = await this.request(requestOptions, initOverrides);
3678
+ return new runtime.JSONApiResponse(response, (jsonValue) => RoutingRuleWriteResponseFromJSON(jsonValue));
3679
+ }
3680
+ /**
3681
+ * Update a routing rule
3682
+ */
3683
+ async updateRoutingRule(requestParameters, initOverrides) {
3684
+ const response = await this.updateRoutingRuleRaw(requestParameters, initOverrides);
3685
+ return await response.value();
3686
+ }
3687
+ }