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