@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,1387 @@
|
|
|
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.RegistryApi = void 0;
|
|
50
|
+
const runtime = __importStar(require("../runtime.js"));
|
|
51
|
+
const Application_js_1 = require("../models/Application.js");
|
|
52
|
+
const ApplicationCounts_js_1 = require("../models/ApplicationCounts.js");
|
|
53
|
+
const ApplicationDirectoryResponse_js_1 = require("../models/ApplicationDirectoryResponse.js");
|
|
54
|
+
const ApplicationLlmGatewayPayload_js_1 = require("../models/ApplicationLlmGatewayPayload.js");
|
|
55
|
+
const ApplicationPayload_js_1 = require("../models/ApplicationPayload.js");
|
|
56
|
+
const ApplicationResponse_js_1 = require("../models/ApplicationResponse.js");
|
|
57
|
+
const ApplicationWriteConfirmationsPayload_js_1 = require("../models/ApplicationWriteConfirmationsPayload.js");
|
|
58
|
+
const ConnectionInitiateResponse_js_1 = require("../models/ConnectionInitiateResponse.js");
|
|
59
|
+
const ConnectionRead_js_1 = require("../models/ConnectionRead.js");
|
|
60
|
+
const CredentialsPayload_js_1 = require("../models/CredentialsPayload.js");
|
|
61
|
+
const IdListResponse_js_1 = require("../models/IdListResponse.js");
|
|
62
|
+
const MCPServerDirectoryRead_js_1 = require("../models/MCPServerDirectoryRead.js");
|
|
63
|
+
const PaginationResponseApplicationDirectoryResponse_js_1 = require("../models/PaginationResponseApplicationDirectoryResponse.js");
|
|
64
|
+
const PaginationResponseApplicationResponse_js_1 = require("../models/PaginationResponseApplicationResponse.js");
|
|
65
|
+
const PaginationResponseMCPServerDirectoryReadWithServers_js_1 = require("../models/PaginationResponseMCPServerDirectoryReadWithServers.js");
|
|
66
|
+
const PaginationResponseServerListResponse_js_1 = require("../models/PaginationResponseServerListResponse.js");
|
|
67
|
+
const ServerResponse_js_1 = require("../models/ServerResponse.js");
|
|
68
|
+
/**
|
|
69
|
+
*
|
|
70
|
+
*/
|
|
71
|
+
class RegistryApi extends runtime.BaseAPI {
|
|
72
|
+
/**
|
|
73
|
+
* Creates request options for connectMcpServer without sending the request
|
|
74
|
+
*/
|
|
75
|
+
async connectMcpServerRequestOpts(requestParameters) {
|
|
76
|
+
if (requestParameters['serverId'] == null) {
|
|
77
|
+
throw new runtime.RequiredError('serverId', 'Required parameter "serverId" was null or undefined when calling connectMcpServer().');
|
|
78
|
+
}
|
|
79
|
+
const queryParameters = {};
|
|
80
|
+
if (requestParameters['returnUrl'] != null) {
|
|
81
|
+
queryParameters['return_url'] = requestParameters['returnUrl'];
|
|
82
|
+
}
|
|
83
|
+
if (requestParameters['scopes'] != null) {
|
|
84
|
+
queryParameters['scopes'] = requestParameters['scopes'];
|
|
85
|
+
}
|
|
86
|
+
if (requestParameters['asService'] != null) {
|
|
87
|
+
queryParameters['as_service'] = requestParameters['asService'];
|
|
88
|
+
}
|
|
89
|
+
const headerParameters = {};
|
|
90
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
91
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
92
|
+
// oauth required
|
|
93
|
+
const oauthToken = await this.configuration.accessToken("OAuth2", ["openid", "profile", "email"]);
|
|
94
|
+
if (oauthToken) {
|
|
95
|
+
headerParameters["Authorization"] = oauthToken.startsWith("Bearer ") ? oauthToken : `Bearer ${oauthToken}`;
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
99
|
+
// oauth required
|
|
100
|
+
const oauthToken = await this.configuration.accessToken("OAuth2", ["openid", "profile", "email"]);
|
|
101
|
+
if (oauthToken) {
|
|
102
|
+
headerParameters["Authorization"] = oauthToken.startsWith("Bearer ") ? oauthToken : `Bearer ${oauthToken}`;
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
106
|
+
const token = this.configuration.accessToken;
|
|
107
|
+
const tokenString = await token("ApiKey", []);
|
|
108
|
+
if (tokenString) {
|
|
109
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
let urlPath = `/api/registry/v1/servers/{server_id}/connect`;
|
|
113
|
+
urlPath = urlPath.replace('{server_id}', encodeURIComponent(String(requestParameters['serverId'])));
|
|
114
|
+
return {
|
|
115
|
+
path: urlPath,
|
|
116
|
+
method: 'POST',
|
|
117
|
+
headers: headerParameters,
|
|
118
|
+
query: queryParameters,
|
|
119
|
+
body: (0, CredentialsPayload_js_1.CredentialsPayloadToJSON)(requestParameters['credentialsPayload']),
|
|
120
|
+
};
|
|
121
|
+
}
|
|
122
|
+
/**
|
|
123
|
+
* Authenticates the caller against an MCP server that is ALREADY registered in this organization. It does not add a server: a `server_id` that is not yet registered returns 404, and a catalog (directory) id is never valid here — that ordering is the usual reason this endpoint 404s. Registering a server is not available as a tool; an operator adds it in the console first. For OAuth providers it returns an authorization URL for the user to visit. For non-OAuth providers (api_key, bearer_token, basic_auth, generic) credentials go in the request body — prefer a server registered with managed credentials so no secret passes through the caller at all, and never solicit one in a chat transcript. `as_service: true` connects the tenant\'s shared service account rather than the calling user, which is what a server needs before it can be published.
|
|
124
|
+
* Authenticate an already-registered server
|
|
125
|
+
*/
|
|
126
|
+
async connectMcpServerRaw(requestParameters, initOverrides) {
|
|
127
|
+
const requestOptions = await this.connectMcpServerRequestOpts(requestParameters);
|
|
128
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
129
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, ConnectionInitiateResponse_js_1.ConnectionInitiateResponseFromJSON)(jsonValue));
|
|
130
|
+
}
|
|
131
|
+
/**
|
|
132
|
+
* Authenticates the caller against an MCP server that is ALREADY registered in this organization. It does not add a server: a `server_id` that is not yet registered returns 404, and a catalog (directory) id is never valid here — that ordering is the usual reason this endpoint 404s. Registering a server is not available as a tool; an operator adds it in the console first. For OAuth providers it returns an authorization URL for the user to visit. For non-OAuth providers (api_key, bearer_token, basic_auth, generic) credentials go in the request body — prefer a server registered with managed credentials so no secret passes through the caller at all, and never solicit one in a chat transcript. `as_service: true` connects the tenant\'s shared service account rather than the calling user, which is what a server needs before it can be published.
|
|
133
|
+
* Authenticate an already-registered server
|
|
134
|
+
*/
|
|
135
|
+
async connectMcpServer(requestParameters, initOverrides) {
|
|
136
|
+
const response = await this.connectMcpServerRaw(requestParameters, initOverrides);
|
|
137
|
+
return await response.value();
|
|
138
|
+
}
|
|
139
|
+
/**
|
|
140
|
+
* Creates request options for countAgentsByType without sending the request
|
|
141
|
+
*/
|
|
142
|
+
async countAgentsByTypeRequestOpts() {
|
|
143
|
+
const queryParameters = {};
|
|
144
|
+
const headerParameters = {};
|
|
145
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
146
|
+
// oauth required
|
|
147
|
+
const oauthToken = await this.configuration.accessToken("OAuth2", ["openid", "profile", "email"]);
|
|
148
|
+
if (oauthToken) {
|
|
149
|
+
headerParameters["Authorization"] = oauthToken.startsWith("Bearer ") ? oauthToken : `Bearer ${oauthToken}`;
|
|
150
|
+
}
|
|
151
|
+
}
|
|
152
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
153
|
+
// oauth required
|
|
154
|
+
const oauthToken = await this.configuration.accessToken("OAuth2", ["openid", "profile", "email"]);
|
|
155
|
+
if (oauthToken) {
|
|
156
|
+
headerParameters["Authorization"] = oauthToken.startsWith("Bearer ") ? oauthToken : `Bearer ${oauthToken}`;
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
160
|
+
const token = this.configuration.accessToken;
|
|
161
|
+
const tokenString = await token("ApiKey", []);
|
|
162
|
+
if (tokenString) {
|
|
163
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
164
|
+
}
|
|
165
|
+
}
|
|
166
|
+
let urlPath = `/api/registry/v1/agents/counts`;
|
|
167
|
+
return {
|
|
168
|
+
path: urlPath,
|
|
169
|
+
method: 'GET',
|
|
170
|
+
headers: headerParameters,
|
|
171
|
+
query: queryParameters,
|
|
172
|
+
};
|
|
173
|
+
}
|
|
174
|
+
/**
|
|
175
|
+
* Get counts of applications by agent type.
|
|
176
|
+
* Get Application Counts
|
|
177
|
+
*/
|
|
178
|
+
async countAgentsByTypeRaw(initOverrides) {
|
|
179
|
+
const requestOptions = await this.countAgentsByTypeRequestOpts();
|
|
180
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
181
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, ApplicationCounts_js_1.ApplicationCountsFromJSON)(jsonValue));
|
|
182
|
+
}
|
|
183
|
+
/**
|
|
184
|
+
* Get counts of applications by agent type.
|
|
185
|
+
* Get Application Counts
|
|
186
|
+
*/
|
|
187
|
+
async countAgentsByType(initOverrides) {
|
|
188
|
+
const response = await this.countAgentsByTypeRaw(initOverrides);
|
|
189
|
+
return await response.value();
|
|
190
|
+
}
|
|
191
|
+
/**
|
|
192
|
+
* Creates request options for disconnectMcpServer without sending the request
|
|
193
|
+
*/
|
|
194
|
+
async disconnectMcpServerRequestOpts(requestParameters) {
|
|
195
|
+
if (requestParameters['serverId'] == null) {
|
|
196
|
+
throw new runtime.RequiredError('serverId', 'Required parameter "serverId" was null or undefined when calling disconnectMcpServer().');
|
|
197
|
+
}
|
|
198
|
+
const queryParameters = {};
|
|
199
|
+
if (requestParameters['asService'] != null) {
|
|
200
|
+
queryParameters['as_service'] = requestParameters['asService'];
|
|
201
|
+
}
|
|
202
|
+
const headerParameters = {};
|
|
203
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
204
|
+
// oauth required
|
|
205
|
+
const oauthToken = await this.configuration.accessToken("OAuth2", ["openid", "profile", "email"]);
|
|
206
|
+
if (oauthToken) {
|
|
207
|
+
headerParameters["Authorization"] = oauthToken.startsWith("Bearer ") ? oauthToken : `Bearer ${oauthToken}`;
|
|
208
|
+
}
|
|
209
|
+
}
|
|
210
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
211
|
+
// oauth required
|
|
212
|
+
const oauthToken = await this.configuration.accessToken("OAuth2", ["openid", "profile", "email"]);
|
|
213
|
+
if (oauthToken) {
|
|
214
|
+
headerParameters["Authorization"] = oauthToken.startsWith("Bearer ") ? oauthToken : `Bearer ${oauthToken}`;
|
|
215
|
+
}
|
|
216
|
+
}
|
|
217
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
218
|
+
const token = this.configuration.accessToken;
|
|
219
|
+
const tokenString = await token("ApiKey", []);
|
|
220
|
+
if (tokenString) {
|
|
221
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
222
|
+
}
|
|
223
|
+
}
|
|
224
|
+
let urlPath = `/api/registry/v1/servers/{server_id}/connection`;
|
|
225
|
+
urlPath = urlPath.replace('{server_id}', encodeURIComponent(String(requestParameters['serverId'])));
|
|
226
|
+
return {
|
|
227
|
+
path: urlPath,
|
|
228
|
+
method: 'DELETE',
|
|
229
|
+
headers: headerParameters,
|
|
230
|
+
query: queryParameters,
|
|
231
|
+
};
|
|
232
|
+
}
|
|
233
|
+
/**
|
|
234
|
+
* Delete the current user\'s (or service-account) connection to this server.
|
|
235
|
+
* Delete Connection
|
|
236
|
+
*/
|
|
237
|
+
async disconnectMcpServerRaw(requestParameters, initOverrides) {
|
|
238
|
+
const requestOptions = await this.disconnectMcpServerRequestOpts(requestParameters);
|
|
239
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
240
|
+
return new runtime.VoidApiResponse(response);
|
|
241
|
+
}
|
|
242
|
+
/**
|
|
243
|
+
* Delete the current user\'s (or service-account) connection to this server.
|
|
244
|
+
* Delete Connection
|
|
245
|
+
*/
|
|
246
|
+
async disconnectMcpServer(requestParameters, initOverrides) {
|
|
247
|
+
await this.disconnectMcpServerRaw(requestParameters, initOverrides);
|
|
248
|
+
}
|
|
249
|
+
/**
|
|
250
|
+
* Creates request options for getAgent without sending the request
|
|
251
|
+
*/
|
|
252
|
+
async getAgentRequestOpts(requestParameters) {
|
|
253
|
+
if (requestParameters['applicationId'] == null) {
|
|
254
|
+
throw new runtime.RequiredError('applicationId', 'Required parameter "applicationId" was null or undefined when calling getAgent().');
|
|
255
|
+
}
|
|
256
|
+
const queryParameters = {};
|
|
257
|
+
const headerParameters = {};
|
|
258
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
259
|
+
// oauth required
|
|
260
|
+
const oauthToken = await this.configuration.accessToken("OAuth2", ["openid", "profile", "email"]);
|
|
261
|
+
if (oauthToken) {
|
|
262
|
+
headerParameters["Authorization"] = oauthToken.startsWith("Bearer ") ? oauthToken : `Bearer ${oauthToken}`;
|
|
263
|
+
}
|
|
264
|
+
}
|
|
265
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
266
|
+
// oauth required
|
|
267
|
+
const oauthToken = await this.configuration.accessToken("OAuth2", ["openid", "profile", "email"]);
|
|
268
|
+
if (oauthToken) {
|
|
269
|
+
headerParameters["Authorization"] = oauthToken.startsWith("Bearer ") ? oauthToken : `Bearer ${oauthToken}`;
|
|
270
|
+
}
|
|
271
|
+
}
|
|
272
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
273
|
+
const token = this.configuration.accessToken;
|
|
274
|
+
const tokenString = await token("ApiKey", []);
|
|
275
|
+
if (tokenString) {
|
|
276
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
277
|
+
}
|
|
278
|
+
}
|
|
279
|
+
let urlPath = `/api/registry/v1/agents/{application_id}`;
|
|
280
|
+
urlPath = urlPath.replace('{application_id}', encodeURIComponent(String(requestParameters['applicationId'])));
|
|
281
|
+
return {
|
|
282
|
+
path: urlPath,
|
|
283
|
+
method: 'GET',
|
|
284
|
+
headers: headerParameters,
|
|
285
|
+
query: queryParameters,
|
|
286
|
+
};
|
|
287
|
+
}
|
|
288
|
+
/**
|
|
289
|
+
* Get Application
|
|
290
|
+
*/
|
|
291
|
+
async getAgentRaw(requestParameters, initOverrides) {
|
|
292
|
+
const requestOptions = await this.getAgentRequestOpts(requestParameters);
|
|
293
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
294
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, ApplicationResponse_js_1.ApplicationResponseFromJSON)(jsonValue));
|
|
295
|
+
}
|
|
296
|
+
/**
|
|
297
|
+
* Get Application
|
|
298
|
+
*/
|
|
299
|
+
async getAgent(requestParameters, initOverrides) {
|
|
300
|
+
const response = await this.getAgentRaw(requestParameters, initOverrides);
|
|
301
|
+
return await response.value();
|
|
302
|
+
}
|
|
303
|
+
/**
|
|
304
|
+
* Creates request options for getAgentDirectoryEntry without sending the request
|
|
305
|
+
*/
|
|
306
|
+
async getAgentDirectoryEntryRequestOpts(requestParameters) {
|
|
307
|
+
if (requestParameters['applicationDirectoryId'] == null) {
|
|
308
|
+
throw new runtime.RequiredError('applicationDirectoryId', 'Required parameter "applicationDirectoryId" was null or undefined when calling getAgentDirectoryEntry().');
|
|
309
|
+
}
|
|
310
|
+
const queryParameters = {};
|
|
311
|
+
if (requestParameters['includeOauthConfig'] != null) {
|
|
312
|
+
queryParameters['include_oauth_config'] = requestParameters['includeOauthConfig'];
|
|
313
|
+
}
|
|
314
|
+
const headerParameters = {};
|
|
315
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
316
|
+
// oauth required
|
|
317
|
+
const oauthToken = await this.configuration.accessToken("OAuth2", ["openid", "profile", "email"]);
|
|
318
|
+
if (oauthToken) {
|
|
319
|
+
headerParameters["Authorization"] = oauthToken.startsWith("Bearer ") ? oauthToken : `Bearer ${oauthToken}`;
|
|
320
|
+
}
|
|
321
|
+
}
|
|
322
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
323
|
+
// oauth required
|
|
324
|
+
const oauthToken = await this.configuration.accessToken("OAuth2", ["openid", "profile", "email"]);
|
|
325
|
+
if (oauthToken) {
|
|
326
|
+
headerParameters["Authorization"] = oauthToken.startsWith("Bearer ") ? oauthToken : `Bearer ${oauthToken}`;
|
|
327
|
+
}
|
|
328
|
+
}
|
|
329
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
330
|
+
const token = this.configuration.accessToken;
|
|
331
|
+
const tokenString = await token("ApiKey", []);
|
|
332
|
+
if (tokenString) {
|
|
333
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
334
|
+
}
|
|
335
|
+
}
|
|
336
|
+
let urlPath = `/api/registry/v1/agent-directory/{application_directory_id}`;
|
|
337
|
+
urlPath = urlPath.replace('{application_directory_id}', encodeURIComponent(String(requestParameters['applicationDirectoryId'])));
|
|
338
|
+
return {
|
|
339
|
+
path: urlPath,
|
|
340
|
+
method: 'GET',
|
|
341
|
+
headers: headerParameters,
|
|
342
|
+
query: queryParameters,
|
|
343
|
+
};
|
|
344
|
+
}
|
|
345
|
+
/**
|
|
346
|
+
* Get Application Directory
|
|
347
|
+
*/
|
|
348
|
+
async getAgentDirectoryEntryRaw(requestParameters, initOverrides) {
|
|
349
|
+
const requestOptions = await this.getAgentDirectoryEntryRequestOpts(requestParameters);
|
|
350
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
351
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, ApplicationDirectoryResponse_js_1.ApplicationDirectoryResponseFromJSON)(jsonValue));
|
|
352
|
+
}
|
|
353
|
+
/**
|
|
354
|
+
* Get Application Directory
|
|
355
|
+
*/
|
|
356
|
+
async getAgentDirectoryEntry(requestParameters, initOverrides) {
|
|
357
|
+
const response = await this.getAgentDirectoryEntryRaw(requestParameters, initOverrides);
|
|
358
|
+
return await response.value();
|
|
359
|
+
}
|
|
360
|
+
/**
|
|
361
|
+
* Creates request options for getMcpServer without sending the request
|
|
362
|
+
*/
|
|
363
|
+
async getMcpServerRequestOpts(requestParameters) {
|
|
364
|
+
if (requestParameters['serverId'] == null) {
|
|
365
|
+
throw new runtime.RequiredError('serverId', 'Required parameter "serverId" was null or undefined when calling getMcpServer().');
|
|
366
|
+
}
|
|
367
|
+
const queryParameters = {};
|
|
368
|
+
if (requestParameters['includeServiceAccounts'] != null) {
|
|
369
|
+
queryParameters['include_service_accounts'] = requestParameters['includeServiceAccounts'];
|
|
370
|
+
}
|
|
371
|
+
if (requestParameters['includeConnectionStatus'] != null) {
|
|
372
|
+
queryParameters['include_connection_status'] = requestParameters['includeConnectionStatus'];
|
|
373
|
+
}
|
|
374
|
+
const headerParameters = {};
|
|
375
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
376
|
+
// oauth required
|
|
377
|
+
const oauthToken = await this.configuration.accessToken("OAuth2", ["openid", "profile", "email"]);
|
|
378
|
+
if (oauthToken) {
|
|
379
|
+
headerParameters["Authorization"] = oauthToken.startsWith("Bearer ") ? oauthToken : `Bearer ${oauthToken}`;
|
|
380
|
+
}
|
|
381
|
+
}
|
|
382
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
383
|
+
// oauth required
|
|
384
|
+
const oauthToken = await this.configuration.accessToken("OAuth2", ["openid", "profile", "email"]);
|
|
385
|
+
if (oauthToken) {
|
|
386
|
+
headerParameters["Authorization"] = oauthToken.startsWith("Bearer ") ? oauthToken : `Bearer ${oauthToken}`;
|
|
387
|
+
}
|
|
388
|
+
}
|
|
389
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
390
|
+
const token = this.configuration.accessToken;
|
|
391
|
+
const tokenString = await token("ApiKey", []);
|
|
392
|
+
if (tokenString) {
|
|
393
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
394
|
+
}
|
|
395
|
+
}
|
|
396
|
+
let urlPath = `/api/registry/v1/servers/{server_id}`;
|
|
397
|
+
urlPath = urlPath.replace('{server_id}', encodeURIComponent(String(requestParameters['serverId'])));
|
|
398
|
+
return {
|
|
399
|
+
path: urlPath,
|
|
400
|
+
method: 'GET',
|
|
401
|
+
headers: headerParameters,
|
|
402
|
+
query: queryParameters,
|
|
403
|
+
};
|
|
404
|
+
}
|
|
405
|
+
/**
|
|
406
|
+
* Return details for an individual MCP server including connection status and base URL. ``server_id`` is the UUID from ``GET /v1/servers`` list rows. The response includes derived fields computed per request — ``connection_status``, ``url``, and the ``attention_tier`` / ``publish_blockers`` publish-state pair — alongside the stored record.
|
|
407
|
+
* Get Mcp Server
|
|
408
|
+
*/
|
|
409
|
+
async getMcpServerRaw(requestParameters, initOverrides) {
|
|
410
|
+
const requestOptions = await this.getMcpServerRequestOpts(requestParameters);
|
|
411
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
412
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, ServerResponse_js_1.ServerResponseFromJSON)(jsonValue));
|
|
413
|
+
}
|
|
414
|
+
/**
|
|
415
|
+
* Return details for an individual MCP server including connection status and base URL. ``server_id`` is the UUID from ``GET /v1/servers`` list rows. The response includes derived fields computed per request — ``connection_status``, ``url``, and the ``attention_tier`` / ``publish_blockers`` publish-state pair — alongside the stored record.
|
|
416
|
+
* Get Mcp Server
|
|
417
|
+
*/
|
|
418
|
+
async getMcpServer(requestParameters, initOverrides) {
|
|
419
|
+
const response = await this.getMcpServerRaw(requestParameters, initOverrides);
|
|
420
|
+
return await response.value();
|
|
421
|
+
}
|
|
422
|
+
/**
|
|
423
|
+
* Creates request options for getMcpServerBySlug without sending the request
|
|
424
|
+
*/
|
|
425
|
+
async getMcpServerBySlugRequestOpts(requestParameters) {
|
|
426
|
+
if (requestParameters['slug'] == null) {
|
|
427
|
+
throw new runtime.RequiredError('slug', 'Required parameter "slug" was null or undefined when calling getMcpServerBySlug().');
|
|
428
|
+
}
|
|
429
|
+
const queryParameters = {};
|
|
430
|
+
if (requestParameters['includeServiceAccounts'] != null) {
|
|
431
|
+
queryParameters['include_service_accounts'] = requestParameters['includeServiceAccounts'];
|
|
432
|
+
}
|
|
433
|
+
if (requestParameters['includeConnectionStatus'] != null) {
|
|
434
|
+
queryParameters['include_connection_status'] = requestParameters['includeConnectionStatus'];
|
|
435
|
+
}
|
|
436
|
+
const headerParameters = {};
|
|
437
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
438
|
+
// oauth required
|
|
439
|
+
const oauthToken = await this.configuration.accessToken("OAuth2", ["openid", "profile", "email"]);
|
|
440
|
+
if (oauthToken) {
|
|
441
|
+
headerParameters["Authorization"] = oauthToken.startsWith("Bearer ") ? oauthToken : `Bearer ${oauthToken}`;
|
|
442
|
+
}
|
|
443
|
+
}
|
|
444
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
445
|
+
// oauth required
|
|
446
|
+
const oauthToken = await this.configuration.accessToken("OAuth2", ["openid", "profile", "email"]);
|
|
447
|
+
if (oauthToken) {
|
|
448
|
+
headerParameters["Authorization"] = oauthToken.startsWith("Bearer ") ? oauthToken : `Bearer ${oauthToken}`;
|
|
449
|
+
}
|
|
450
|
+
}
|
|
451
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
452
|
+
const token = this.configuration.accessToken;
|
|
453
|
+
const tokenString = await token("ApiKey", []);
|
|
454
|
+
if (tokenString) {
|
|
455
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
456
|
+
}
|
|
457
|
+
}
|
|
458
|
+
let urlPath = `/api/registry/v1/servers/by-slug/{slug}`;
|
|
459
|
+
urlPath = urlPath.replace('{slug}', encodeURIComponent(String(requestParameters['slug'])));
|
|
460
|
+
return {
|
|
461
|
+
path: urlPath,
|
|
462
|
+
method: 'GET',
|
|
463
|
+
headers: headerParameters,
|
|
464
|
+
query: queryParameters,
|
|
465
|
+
};
|
|
466
|
+
}
|
|
467
|
+
/**
|
|
468
|
+
* Return details for an individual MCP server by slug. Uses the slug and organization ID from auth context to fetch the server. This is useful for fetching server details when you only have the service name/slug.
|
|
469
|
+
* Get Mcp Server By Slug
|
|
470
|
+
*/
|
|
471
|
+
async getMcpServerBySlugRaw(requestParameters, initOverrides) {
|
|
472
|
+
const requestOptions = await this.getMcpServerBySlugRequestOpts(requestParameters);
|
|
473
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
474
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, ServerResponse_js_1.ServerResponseFromJSON)(jsonValue));
|
|
475
|
+
}
|
|
476
|
+
/**
|
|
477
|
+
* Return details for an individual MCP server by slug. Uses the slug and organization ID from auth context to fetch the server. This is useful for fetching server details when you only have the service name/slug.
|
|
478
|
+
* Get Mcp Server By Slug
|
|
479
|
+
*/
|
|
480
|
+
async getMcpServerBySlug(requestParameters, initOverrides) {
|
|
481
|
+
const response = await this.getMcpServerBySlugRaw(requestParameters, initOverrides);
|
|
482
|
+
return await response.value();
|
|
483
|
+
}
|
|
484
|
+
/**
|
|
485
|
+
* Creates request options for getMcpServerConnection without sending the request
|
|
486
|
+
*/
|
|
487
|
+
async getMcpServerConnectionRequestOpts(requestParameters) {
|
|
488
|
+
if (requestParameters['serverId'] == null) {
|
|
489
|
+
throw new runtime.RequiredError('serverId', 'Required parameter "serverId" was null or undefined when calling getMcpServerConnection().');
|
|
490
|
+
}
|
|
491
|
+
const queryParameters = {};
|
|
492
|
+
if (requestParameters['asService'] != null) {
|
|
493
|
+
queryParameters['as_service'] = requestParameters['asService'];
|
|
494
|
+
}
|
|
495
|
+
const headerParameters = {};
|
|
496
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
497
|
+
// oauth required
|
|
498
|
+
const oauthToken = await this.configuration.accessToken("OAuth2", ["openid", "profile", "email"]);
|
|
499
|
+
if (oauthToken) {
|
|
500
|
+
headerParameters["Authorization"] = oauthToken.startsWith("Bearer ") ? oauthToken : `Bearer ${oauthToken}`;
|
|
501
|
+
}
|
|
502
|
+
}
|
|
503
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
504
|
+
// oauth required
|
|
505
|
+
const oauthToken = await this.configuration.accessToken("OAuth2", ["openid", "profile", "email"]);
|
|
506
|
+
if (oauthToken) {
|
|
507
|
+
headerParameters["Authorization"] = oauthToken.startsWith("Bearer ") ? oauthToken : `Bearer ${oauthToken}`;
|
|
508
|
+
}
|
|
509
|
+
}
|
|
510
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
511
|
+
const token = this.configuration.accessToken;
|
|
512
|
+
const tokenString = await token("ApiKey", []);
|
|
513
|
+
if (tokenString) {
|
|
514
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
515
|
+
}
|
|
516
|
+
}
|
|
517
|
+
let urlPath = `/api/registry/v1/servers/{server_id}/connection`;
|
|
518
|
+
urlPath = urlPath.replace('{server_id}', encodeURIComponent(String(requestParameters['serverId'])));
|
|
519
|
+
return {
|
|
520
|
+
path: urlPath,
|
|
521
|
+
method: 'GET',
|
|
522
|
+
headers: headerParameters,
|
|
523
|
+
query: queryParameters,
|
|
524
|
+
};
|
|
525
|
+
}
|
|
526
|
+
/**
|
|
527
|
+
* Get the current user\'s (or service-account) connection status for this server.
|
|
528
|
+
* Get Connection
|
|
529
|
+
*/
|
|
530
|
+
async getMcpServerConnectionRaw(requestParameters, initOverrides) {
|
|
531
|
+
const requestOptions = await this.getMcpServerConnectionRequestOpts(requestParameters);
|
|
532
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
533
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, ConnectionRead_js_1.ConnectionReadFromJSON)(jsonValue));
|
|
534
|
+
}
|
|
535
|
+
/**
|
|
536
|
+
* Get the current user\'s (or service-account) connection status for this server.
|
|
537
|
+
* Get Connection
|
|
538
|
+
*/
|
|
539
|
+
async getMcpServerConnection(requestParameters, initOverrides) {
|
|
540
|
+
const response = await this.getMcpServerConnectionRaw(requestParameters, initOverrides);
|
|
541
|
+
return await response.value();
|
|
542
|
+
}
|
|
543
|
+
/**
|
|
544
|
+
* Creates request options for getMcpServerDirectoryEntry without sending the request
|
|
545
|
+
*/
|
|
546
|
+
async getMcpServerDirectoryEntryRequestOpts(requestParameters) {
|
|
547
|
+
if (requestParameters['serverDirectoryId'] == null) {
|
|
548
|
+
throw new runtime.RequiredError('serverDirectoryId', 'Required parameter "serverDirectoryId" was null or undefined when calling getMcpServerDirectoryEntry().');
|
|
549
|
+
}
|
|
550
|
+
const queryParameters = {};
|
|
551
|
+
if (requestParameters['includeActiveServerIds'] != null) {
|
|
552
|
+
queryParameters['include_active_server_ids'] = requestParameters['includeActiveServerIds'];
|
|
553
|
+
}
|
|
554
|
+
const headerParameters = {};
|
|
555
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
556
|
+
// oauth required
|
|
557
|
+
const oauthToken = await this.configuration.accessToken("OAuth2", ["openid", "profile", "email"]);
|
|
558
|
+
if (oauthToken) {
|
|
559
|
+
headerParameters["Authorization"] = oauthToken.startsWith("Bearer ") ? oauthToken : `Bearer ${oauthToken}`;
|
|
560
|
+
}
|
|
561
|
+
}
|
|
562
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
563
|
+
// oauth required
|
|
564
|
+
const oauthToken = await this.configuration.accessToken("OAuth2", ["openid", "profile", "email"]);
|
|
565
|
+
if (oauthToken) {
|
|
566
|
+
headerParameters["Authorization"] = oauthToken.startsWith("Bearer ") ? oauthToken : `Bearer ${oauthToken}`;
|
|
567
|
+
}
|
|
568
|
+
}
|
|
569
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
570
|
+
const token = this.configuration.accessToken;
|
|
571
|
+
const tokenString = await token("ApiKey", []);
|
|
572
|
+
if (tokenString) {
|
|
573
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
574
|
+
}
|
|
575
|
+
}
|
|
576
|
+
let urlPath = `/api/registry/v1/server-directory/{server_directory_id}`;
|
|
577
|
+
urlPath = urlPath.replace('{server_directory_id}', encodeURIComponent(String(requestParameters['serverDirectoryId'])));
|
|
578
|
+
return {
|
|
579
|
+
path: urlPath,
|
|
580
|
+
method: 'GET',
|
|
581
|
+
headers: headerParameters,
|
|
582
|
+
query: queryParameters,
|
|
583
|
+
};
|
|
584
|
+
}
|
|
585
|
+
/**
|
|
586
|
+
* Get Server Directory
|
|
587
|
+
*/
|
|
588
|
+
async getMcpServerDirectoryEntryRaw(requestParameters, initOverrides) {
|
|
589
|
+
const requestOptions = await this.getMcpServerDirectoryEntryRequestOpts(requestParameters);
|
|
590
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
591
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, MCPServerDirectoryRead_js_1.MCPServerDirectoryReadFromJSON)(jsonValue));
|
|
592
|
+
}
|
|
593
|
+
/**
|
|
594
|
+
* Get Server Directory
|
|
595
|
+
*/
|
|
596
|
+
async getMcpServerDirectoryEntry(requestParameters, initOverrides) {
|
|
597
|
+
const response = await this.getMcpServerDirectoryEntryRaw(requestParameters, initOverrides);
|
|
598
|
+
return await response.value();
|
|
599
|
+
}
|
|
600
|
+
/**
|
|
601
|
+
* Creates request options for listActiveAgentIds without sending the request
|
|
602
|
+
*/
|
|
603
|
+
async listActiveAgentIdsRequestOpts() {
|
|
604
|
+
const queryParameters = {};
|
|
605
|
+
const headerParameters = {};
|
|
606
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
607
|
+
// oauth required
|
|
608
|
+
const oauthToken = await this.configuration.accessToken("OAuth2", ["openid", "profile", "email"]);
|
|
609
|
+
if (oauthToken) {
|
|
610
|
+
headerParameters["Authorization"] = oauthToken.startsWith("Bearer ") ? oauthToken : `Bearer ${oauthToken}`;
|
|
611
|
+
}
|
|
612
|
+
}
|
|
613
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
614
|
+
// oauth required
|
|
615
|
+
const oauthToken = await this.configuration.accessToken("OAuth2", ["openid", "profile", "email"]);
|
|
616
|
+
if (oauthToken) {
|
|
617
|
+
headerParameters["Authorization"] = oauthToken.startsWith("Bearer ") ? oauthToken : `Bearer ${oauthToken}`;
|
|
618
|
+
}
|
|
619
|
+
}
|
|
620
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
621
|
+
const token = this.configuration.accessToken;
|
|
622
|
+
const tokenString = await token("ApiKey", []);
|
|
623
|
+
if (tokenString) {
|
|
624
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
625
|
+
}
|
|
626
|
+
}
|
|
627
|
+
let urlPath = `/api/registry/v1/applications/active-ids`;
|
|
628
|
+
return {
|
|
629
|
+
path: urlPath,
|
|
630
|
+
method: 'GET',
|
|
631
|
+
headers: headerParameters,
|
|
632
|
+
query: queryParameters,
|
|
633
|
+
};
|
|
634
|
+
}
|
|
635
|
+
/**
|
|
636
|
+
* Return org-scoped, non-soft-deleted application IDs (uncapped, BCP-2766).
|
|
637
|
+
* Get Active Application Ids
|
|
638
|
+
*/
|
|
639
|
+
async listActiveAgentIdsRaw(initOverrides) {
|
|
640
|
+
const requestOptions = await this.listActiveAgentIdsRequestOpts();
|
|
641
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
642
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, IdListResponse_js_1.IdListResponseFromJSON)(jsonValue));
|
|
643
|
+
}
|
|
644
|
+
/**
|
|
645
|
+
* Return org-scoped, non-soft-deleted application IDs (uncapped, BCP-2766).
|
|
646
|
+
* Get Active Application Ids
|
|
647
|
+
*/
|
|
648
|
+
async listActiveAgentIds(initOverrides) {
|
|
649
|
+
const response = await this.listActiveAgentIdsRaw(initOverrides);
|
|
650
|
+
return await response.value();
|
|
651
|
+
}
|
|
652
|
+
/**
|
|
653
|
+
* Creates request options for listActiveMcpDirectoryIds without sending the request
|
|
654
|
+
*/
|
|
655
|
+
async listActiveMcpDirectoryIdsRequestOpts() {
|
|
656
|
+
const queryParameters = {};
|
|
657
|
+
const headerParameters = {};
|
|
658
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
659
|
+
// oauth required
|
|
660
|
+
const oauthToken = await this.configuration.accessToken("OAuth2", ["openid", "profile", "email"]);
|
|
661
|
+
if (oauthToken) {
|
|
662
|
+
headerParameters["Authorization"] = oauthToken.startsWith("Bearer ") ? oauthToken : `Bearer ${oauthToken}`;
|
|
663
|
+
}
|
|
664
|
+
}
|
|
665
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
666
|
+
// oauth required
|
|
667
|
+
const oauthToken = await this.configuration.accessToken("OAuth2", ["openid", "profile", "email"]);
|
|
668
|
+
if (oauthToken) {
|
|
669
|
+
headerParameters["Authorization"] = oauthToken.startsWith("Bearer ") ? oauthToken : `Bearer ${oauthToken}`;
|
|
670
|
+
}
|
|
671
|
+
}
|
|
672
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
673
|
+
const token = this.configuration.accessToken;
|
|
674
|
+
const tokenString = await token("ApiKey", []);
|
|
675
|
+
if (tokenString) {
|
|
676
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
677
|
+
}
|
|
678
|
+
}
|
|
679
|
+
let urlPath = `/api/registry/v1/server-directory/active-ids`;
|
|
680
|
+
return {
|
|
681
|
+
path: urlPath,
|
|
682
|
+
method: 'GET',
|
|
683
|
+
headers: headerParameters,
|
|
684
|
+
query: queryParameters,
|
|
685
|
+
};
|
|
686
|
+
}
|
|
687
|
+
/**
|
|
688
|
+
* Return alive (non-soft-deleted) directory IDs visible to the org (BCP-3308). Mirrors ``GET /servers/active-ids`` (BCP-2766): backs the audit-history \"Deleted\" badge. Directory audit events store the directory id in the ``mcp_server_id`` field, so the frontend unions these ids with the server active set when tagging audit dimensions.
|
|
689
|
+
* Get Active Server Directory Ids
|
|
690
|
+
*/
|
|
691
|
+
async listActiveMcpDirectoryIdsRaw(initOverrides) {
|
|
692
|
+
const requestOptions = await this.listActiveMcpDirectoryIdsRequestOpts();
|
|
693
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
694
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, IdListResponse_js_1.IdListResponseFromJSON)(jsonValue));
|
|
695
|
+
}
|
|
696
|
+
/**
|
|
697
|
+
* Return alive (non-soft-deleted) directory IDs visible to the org (BCP-3308). Mirrors ``GET /servers/active-ids`` (BCP-2766): backs the audit-history \"Deleted\" badge. Directory audit events store the directory id in the ``mcp_server_id`` field, so the frontend unions these ids with the server active set when tagging audit dimensions.
|
|
698
|
+
* Get Active Server Directory Ids
|
|
699
|
+
*/
|
|
700
|
+
async listActiveMcpDirectoryIds(initOverrides) {
|
|
701
|
+
const response = await this.listActiveMcpDirectoryIdsRaw(initOverrides);
|
|
702
|
+
return await response.value();
|
|
703
|
+
}
|
|
704
|
+
/**
|
|
705
|
+
* Creates request options for listActiveMcpServerIds without sending the request
|
|
706
|
+
*/
|
|
707
|
+
async listActiveMcpServerIdsRequestOpts(requestParameters) {
|
|
708
|
+
const queryParameters = {};
|
|
709
|
+
if (requestParameters['availabilityStatus'] != null) {
|
|
710
|
+
queryParameters['availability_status'] = requestParameters['availabilityStatus'];
|
|
711
|
+
}
|
|
712
|
+
if (requestParameters['audienceScoped'] != null) {
|
|
713
|
+
queryParameters['audience_scoped'] = requestParameters['audienceScoped'];
|
|
714
|
+
}
|
|
715
|
+
const headerParameters = {};
|
|
716
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
717
|
+
// oauth required
|
|
718
|
+
const oauthToken = await this.configuration.accessToken("OAuth2", ["openid", "profile", "email"]);
|
|
719
|
+
if (oauthToken) {
|
|
720
|
+
headerParameters["Authorization"] = oauthToken.startsWith("Bearer ") ? oauthToken : `Bearer ${oauthToken}`;
|
|
721
|
+
}
|
|
722
|
+
}
|
|
723
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
724
|
+
// oauth required
|
|
725
|
+
const oauthToken = await this.configuration.accessToken("OAuth2", ["openid", "profile", "email"]);
|
|
726
|
+
if (oauthToken) {
|
|
727
|
+
headerParameters["Authorization"] = oauthToken.startsWith("Bearer ") ? oauthToken : `Bearer ${oauthToken}`;
|
|
728
|
+
}
|
|
729
|
+
}
|
|
730
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
731
|
+
const token = this.configuration.accessToken;
|
|
732
|
+
const tokenString = await token("ApiKey", []);
|
|
733
|
+
if (tokenString) {
|
|
734
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
735
|
+
}
|
|
736
|
+
}
|
|
737
|
+
let urlPath = `/api/registry/v1/servers/active-ids`;
|
|
738
|
+
return {
|
|
739
|
+
path: urlPath,
|
|
740
|
+
method: 'GET',
|
|
741
|
+
headers: headerParameters,
|
|
742
|
+
query: queryParameters,
|
|
743
|
+
};
|
|
744
|
+
}
|
|
745
|
+
/**
|
|
746
|
+
* Return org-scoped server IDs in a single uncapped response (BCP-2766). Backs active-set lookups (audit-history deleted tagging, dashboard denominator) that previously paginated/capped GET /servers at 100 items per page.
|
|
747
|
+
* Get Active Server Ids
|
|
748
|
+
*/
|
|
749
|
+
async listActiveMcpServerIdsRaw(requestParameters, initOverrides) {
|
|
750
|
+
const requestOptions = await this.listActiveMcpServerIdsRequestOpts(requestParameters);
|
|
751
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
752
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, IdListResponse_js_1.IdListResponseFromJSON)(jsonValue));
|
|
753
|
+
}
|
|
754
|
+
/**
|
|
755
|
+
* Return org-scoped server IDs in a single uncapped response (BCP-2766). Backs active-set lookups (audit-history deleted tagging, dashboard denominator) that previously paginated/capped GET /servers at 100 items per page.
|
|
756
|
+
* Get Active Server Ids
|
|
757
|
+
*/
|
|
758
|
+
async listActiveMcpServerIds(requestParameters = {}, initOverrides) {
|
|
759
|
+
const response = await this.listActiveMcpServerIdsRaw(requestParameters, initOverrides);
|
|
760
|
+
return await response.value();
|
|
761
|
+
}
|
|
762
|
+
/**
|
|
763
|
+
* Creates request options for listAgentDirectory without sending the request
|
|
764
|
+
*/
|
|
765
|
+
async listAgentDirectoryRequestOpts(requestParameters) {
|
|
766
|
+
const queryParameters = {};
|
|
767
|
+
if (requestParameters['search'] != null) {
|
|
768
|
+
queryParameters['search'] = requestParameters['search'];
|
|
769
|
+
}
|
|
770
|
+
if (requestParameters['page'] != null) {
|
|
771
|
+
queryParameters['page'] = requestParameters['page'];
|
|
772
|
+
}
|
|
773
|
+
if (requestParameters['limit'] != null) {
|
|
774
|
+
queryParameters['limit'] = requestParameters['limit'];
|
|
775
|
+
}
|
|
776
|
+
const headerParameters = {};
|
|
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/registry/v1/agent-directory`;
|
|
799
|
+
return {
|
|
800
|
+
path: urlPath,
|
|
801
|
+
method: 'GET',
|
|
802
|
+
headers: headerParameters,
|
|
803
|
+
query: queryParameters,
|
|
804
|
+
};
|
|
805
|
+
}
|
|
806
|
+
/**
|
|
807
|
+
* List application directories with pagination.
|
|
808
|
+
* List Applications Directory
|
|
809
|
+
*/
|
|
810
|
+
async listAgentDirectoryRaw(requestParameters, initOverrides) {
|
|
811
|
+
const requestOptions = await this.listAgentDirectoryRequestOpts(requestParameters);
|
|
812
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
813
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, PaginationResponseApplicationDirectoryResponse_js_1.PaginationResponseApplicationDirectoryResponseFromJSON)(jsonValue));
|
|
814
|
+
}
|
|
815
|
+
/**
|
|
816
|
+
* List application directories with pagination.
|
|
817
|
+
* List Applications Directory
|
|
818
|
+
*/
|
|
819
|
+
async listAgentDirectory(requestParameters = {}, initOverrides) {
|
|
820
|
+
const response = await this.listAgentDirectoryRaw(requestParameters, initOverrides);
|
|
821
|
+
return await response.value();
|
|
822
|
+
}
|
|
823
|
+
/**
|
|
824
|
+
* Creates request options for listAgents without sending the request
|
|
825
|
+
*/
|
|
826
|
+
async listAgentsRequestOpts(requestParameters) {
|
|
827
|
+
const queryParameters = {};
|
|
828
|
+
if (requestParameters['search'] != null) {
|
|
829
|
+
queryParameters['search'] = requestParameters['search'];
|
|
830
|
+
}
|
|
831
|
+
if (requestParameters['agentType'] != null) {
|
|
832
|
+
queryParameters['agent_type'] = requestParameters['agentType'];
|
|
833
|
+
}
|
|
834
|
+
if (requestParameters['page'] != null) {
|
|
835
|
+
queryParameters['page'] = requestParameters['page'];
|
|
836
|
+
}
|
|
837
|
+
if (requestParameters['limit'] != null) {
|
|
838
|
+
queryParameters['limit'] = requestParameters['limit'];
|
|
839
|
+
}
|
|
840
|
+
const headerParameters = {};
|
|
841
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
842
|
+
// oauth required
|
|
843
|
+
const oauthToken = await this.configuration.accessToken("OAuth2", ["openid", "profile", "email"]);
|
|
844
|
+
if (oauthToken) {
|
|
845
|
+
headerParameters["Authorization"] = oauthToken.startsWith("Bearer ") ? oauthToken : `Bearer ${oauthToken}`;
|
|
846
|
+
}
|
|
847
|
+
}
|
|
848
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
849
|
+
// oauth required
|
|
850
|
+
const oauthToken = await this.configuration.accessToken("OAuth2", ["openid", "profile", "email"]);
|
|
851
|
+
if (oauthToken) {
|
|
852
|
+
headerParameters["Authorization"] = oauthToken.startsWith("Bearer ") ? oauthToken : `Bearer ${oauthToken}`;
|
|
853
|
+
}
|
|
854
|
+
}
|
|
855
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
856
|
+
const token = this.configuration.accessToken;
|
|
857
|
+
const tokenString = await token("ApiKey", []);
|
|
858
|
+
if (tokenString) {
|
|
859
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
860
|
+
}
|
|
861
|
+
}
|
|
862
|
+
let urlPath = `/api/registry/v1/agents`;
|
|
863
|
+
return {
|
|
864
|
+
path: urlPath,
|
|
865
|
+
method: 'GET',
|
|
866
|
+
headers: headerParameters,
|
|
867
|
+
query: queryParameters,
|
|
868
|
+
};
|
|
869
|
+
}
|
|
870
|
+
/**
|
|
871
|
+
* List applications with pagination.
|
|
872
|
+
* List Applications
|
|
873
|
+
*/
|
|
874
|
+
async listAgentsRaw(requestParameters, initOverrides) {
|
|
875
|
+
const requestOptions = await this.listAgentsRequestOpts(requestParameters);
|
|
876
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
877
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, PaginationResponseApplicationResponse_js_1.PaginationResponseApplicationResponseFromJSON)(jsonValue));
|
|
878
|
+
}
|
|
879
|
+
/**
|
|
880
|
+
* List applications with pagination.
|
|
881
|
+
* List Applications
|
|
882
|
+
*/
|
|
883
|
+
async listAgents(requestParameters = {}, initOverrides) {
|
|
884
|
+
const response = await this.listAgentsRaw(requestParameters, initOverrides);
|
|
885
|
+
return await response.value();
|
|
886
|
+
}
|
|
887
|
+
/**
|
|
888
|
+
* Creates request options for listMcpServerDirectory without sending the request
|
|
889
|
+
*/
|
|
890
|
+
async listMcpServerDirectoryRequestOpts(requestParameters) {
|
|
891
|
+
const queryParameters = {};
|
|
892
|
+
if (requestParameters['search'] != null) {
|
|
893
|
+
queryParameters['search'] = requestParameters['search'];
|
|
894
|
+
}
|
|
895
|
+
if (requestParameters['category'] != null) {
|
|
896
|
+
queryParameters['category'] = requestParameters['category'];
|
|
897
|
+
}
|
|
898
|
+
if (requestParameters['orderBy'] != null) {
|
|
899
|
+
queryParameters['order_by'] = requestParameters['orderBy'];
|
|
900
|
+
}
|
|
901
|
+
if (requestParameters['order'] != null) {
|
|
902
|
+
queryParameters['order'] = requestParameters['order'];
|
|
903
|
+
}
|
|
904
|
+
if (requestParameters['includeServers'] != null) {
|
|
905
|
+
queryParameters['include_servers'] = requestParameters['includeServers'];
|
|
906
|
+
}
|
|
907
|
+
if (requestParameters['page'] != null) {
|
|
908
|
+
queryParameters['page'] = requestParameters['page'];
|
|
909
|
+
}
|
|
910
|
+
if (requestParameters['limit'] != null) {
|
|
911
|
+
queryParameters['limit'] = requestParameters['limit'];
|
|
912
|
+
}
|
|
913
|
+
if (requestParameters['source'] != null) {
|
|
914
|
+
queryParameters['source'] = requestParameters['source'];
|
|
915
|
+
}
|
|
916
|
+
const headerParameters = {};
|
|
917
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
918
|
+
// oauth required
|
|
919
|
+
const oauthToken = await this.configuration.accessToken("OAuth2", ["openid", "profile", "email"]);
|
|
920
|
+
if (oauthToken) {
|
|
921
|
+
headerParameters["Authorization"] = oauthToken.startsWith("Bearer ") ? oauthToken : `Bearer ${oauthToken}`;
|
|
922
|
+
}
|
|
923
|
+
}
|
|
924
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
925
|
+
// oauth required
|
|
926
|
+
const oauthToken = await this.configuration.accessToken("OAuth2", ["openid", "profile", "email"]);
|
|
927
|
+
if (oauthToken) {
|
|
928
|
+
headerParameters["Authorization"] = oauthToken.startsWith("Bearer ") ? oauthToken : `Bearer ${oauthToken}`;
|
|
929
|
+
}
|
|
930
|
+
}
|
|
931
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
932
|
+
const token = this.configuration.accessToken;
|
|
933
|
+
const tokenString = await token("ApiKey", []);
|
|
934
|
+
if (tokenString) {
|
|
935
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
936
|
+
}
|
|
937
|
+
}
|
|
938
|
+
let urlPath = `/api/registry/v1/server-directory`;
|
|
939
|
+
return {
|
|
940
|
+
path: urlPath,
|
|
941
|
+
method: 'GET',
|
|
942
|
+
headers: headerParameters,
|
|
943
|
+
query: queryParameters,
|
|
944
|
+
};
|
|
945
|
+
}
|
|
946
|
+
/**
|
|
947
|
+
* List server directories with pagination.
|
|
948
|
+
* List Server Directory
|
|
949
|
+
*/
|
|
950
|
+
async listMcpServerDirectoryRaw(requestParameters, initOverrides) {
|
|
951
|
+
const requestOptions = await this.listMcpServerDirectoryRequestOpts(requestParameters);
|
|
952
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
953
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, PaginationResponseMCPServerDirectoryReadWithServers_js_1.PaginationResponseMCPServerDirectoryReadWithServersFromJSON)(jsonValue));
|
|
954
|
+
}
|
|
955
|
+
/**
|
|
956
|
+
* List server directories with pagination.
|
|
957
|
+
* List Server Directory
|
|
958
|
+
*/
|
|
959
|
+
async listMcpServerDirectory(requestParameters = {}, initOverrides) {
|
|
960
|
+
const response = await this.listMcpServerDirectoryRaw(requestParameters, initOverrides);
|
|
961
|
+
return await response.value();
|
|
962
|
+
}
|
|
963
|
+
/**
|
|
964
|
+
* Creates request options for listMcpServers without sending the request
|
|
965
|
+
*/
|
|
966
|
+
async listMcpServersRequestOpts(requestParameters) {
|
|
967
|
+
const queryParameters = {};
|
|
968
|
+
if (requestParameters['search'] != null) {
|
|
969
|
+
queryParameters['search'] = requestParameters['search'];
|
|
970
|
+
}
|
|
971
|
+
if (requestParameters['availabilityStatus'] != null) {
|
|
972
|
+
queryParameters['availability_status'] = requestParameters['availabilityStatus'];
|
|
973
|
+
}
|
|
974
|
+
if (requestParameters['orderBy'] != null) {
|
|
975
|
+
queryParameters['order_by'] = requestParameters['orderBy'];
|
|
976
|
+
}
|
|
977
|
+
if (requestParameters['order'] != null) {
|
|
978
|
+
queryParameters['order'] = requestParameters['order'];
|
|
979
|
+
}
|
|
980
|
+
if (requestParameters['includeServiceAccounts'] != null) {
|
|
981
|
+
queryParameters['include_service_accounts'] = requestParameters['includeServiceAccounts'];
|
|
982
|
+
}
|
|
983
|
+
if (requestParameters['includeConnectionStatus'] != null) {
|
|
984
|
+
queryParameters['include_connection_status'] = requestParameters['includeConnectionStatus'];
|
|
985
|
+
}
|
|
986
|
+
if (requestParameters['audienceScoped'] != null) {
|
|
987
|
+
queryParameters['audience_scoped'] = requestParameters['audienceScoped'];
|
|
988
|
+
}
|
|
989
|
+
if (requestParameters['page'] != null) {
|
|
990
|
+
queryParameters['page'] = requestParameters['page'];
|
|
991
|
+
}
|
|
992
|
+
if (requestParameters['limit'] != null) {
|
|
993
|
+
queryParameters['limit'] = requestParameters['limit'];
|
|
994
|
+
}
|
|
995
|
+
if (requestParameters['connectionStatus'] != null) {
|
|
996
|
+
queryParameters['connection_status'] = requestParameters['connectionStatus'];
|
|
997
|
+
}
|
|
998
|
+
if (requestParameters['status'] != null) {
|
|
999
|
+
queryParameters['status'] = requestParameters['status'];
|
|
1000
|
+
}
|
|
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/registry/v1/servers`;
|
|
1024
|
+
return {
|
|
1025
|
+
path: urlPath,
|
|
1026
|
+
method: 'GET',
|
|
1027
|
+
headers: headerParameters,
|
|
1028
|
+
query: queryParameters,
|
|
1029
|
+
};
|
|
1030
|
+
}
|
|
1031
|
+
/**
|
|
1032
|
+
* Get Mcp Servers
|
|
1033
|
+
*/
|
|
1034
|
+
async listMcpServersRaw(requestParameters, initOverrides) {
|
|
1035
|
+
const requestOptions = await this.listMcpServersRequestOpts(requestParameters);
|
|
1036
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
1037
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, PaginationResponseServerListResponse_js_1.PaginationResponseServerListResponseFromJSON)(jsonValue));
|
|
1038
|
+
}
|
|
1039
|
+
/**
|
|
1040
|
+
* Get Mcp Servers
|
|
1041
|
+
*/
|
|
1042
|
+
async listMcpServers(requestParameters = {}, initOverrides) {
|
|
1043
|
+
const response = await this.listMcpServersRaw(requestParameters, initOverrides);
|
|
1044
|
+
return await response.value();
|
|
1045
|
+
}
|
|
1046
|
+
/**
|
|
1047
|
+
* Creates request options for publishMcpServer without sending the request
|
|
1048
|
+
*/
|
|
1049
|
+
async publishMcpServerRequestOpts(requestParameters) {
|
|
1050
|
+
if (requestParameters['serverId'] == null) {
|
|
1051
|
+
throw new runtime.RequiredError('serverId', 'Required parameter "serverId" was null or undefined when calling publishMcpServer().');
|
|
1052
|
+
}
|
|
1053
|
+
const queryParameters = {};
|
|
1054
|
+
const headerParameters = {};
|
|
1055
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
1056
|
+
// oauth required
|
|
1057
|
+
const oauthToken = await this.configuration.accessToken("OAuth2", ["openid", "profile", "email"]);
|
|
1058
|
+
if (oauthToken) {
|
|
1059
|
+
headerParameters["Authorization"] = oauthToken.startsWith("Bearer ") ? oauthToken : `Bearer ${oauthToken}`;
|
|
1060
|
+
}
|
|
1061
|
+
}
|
|
1062
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
1063
|
+
// oauth required
|
|
1064
|
+
const oauthToken = await this.configuration.accessToken("OAuth2", ["openid", "profile", "email"]);
|
|
1065
|
+
if (oauthToken) {
|
|
1066
|
+
headerParameters["Authorization"] = oauthToken.startsWith("Bearer ") ? oauthToken : `Bearer ${oauthToken}`;
|
|
1067
|
+
}
|
|
1068
|
+
}
|
|
1069
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
1070
|
+
const token = this.configuration.accessToken;
|
|
1071
|
+
const tokenString = await token("ApiKey", []);
|
|
1072
|
+
if (tokenString) {
|
|
1073
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
1074
|
+
}
|
|
1075
|
+
}
|
|
1076
|
+
let urlPath = `/api/registry/v1/servers/{server_id}/publish`;
|
|
1077
|
+
urlPath = urlPath.replace('{server_id}', encodeURIComponent(String(requestParameters['serverId'])));
|
|
1078
|
+
return {
|
|
1079
|
+
path: urlPath,
|
|
1080
|
+
method: 'POST',
|
|
1081
|
+
headers: headerParameters,
|
|
1082
|
+
query: queryParameters,
|
|
1083
|
+
};
|
|
1084
|
+
}
|
|
1085
|
+
/**
|
|
1086
|
+
* BCP-3039 — one-way publish gate. Publishing makes a server discoverable in end-user listings (``published_at IS NOT NULL``). It is deliberately one-way: there is no unpublish, and later operational-state changes never hide a published server — taking a server out of service means deactivating its policies. Preconditions (422 when unmet): - the server is operationally available (``server_available_expr``: status=active AND requires_auth=false / embedded-local source / a \"connected\" tenant service-account connection), and - it has at least one ACTIVE policy (verified against policy-service with the caller\'s own token; 403 when policy-service refuses the caller, 503 when it can\'t answer). Re-publishing an already-published server is an idempotent no-op success. Audit: every rejected publish of an existing server (403/422/503) and every state-changing success emit an event; the idempotent no-op does not, so the audit trail means \"a publish happened\".
|
|
1087
|
+
* Publish Mcp Server
|
|
1088
|
+
*/
|
|
1089
|
+
async publishMcpServerRaw(requestParameters, initOverrides) {
|
|
1090
|
+
const requestOptions = await this.publishMcpServerRequestOpts(requestParameters);
|
|
1091
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
1092
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, ServerResponse_js_1.ServerResponseFromJSON)(jsonValue));
|
|
1093
|
+
}
|
|
1094
|
+
/**
|
|
1095
|
+
* BCP-3039 — one-way publish gate. Publishing makes a server discoverable in end-user listings (``published_at IS NOT NULL``). It is deliberately one-way: there is no unpublish, and later operational-state changes never hide a published server — taking a server out of service means deactivating its policies. Preconditions (422 when unmet): - the server is operationally available (``server_available_expr``: status=active AND requires_auth=false / embedded-local source / a \"connected\" tenant service-account connection), and - it has at least one ACTIVE policy (verified against policy-service with the caller\'s own token; 403 when policy-service refuses the caller, 503 when it can\'t answer). Re-publishing an already-published server is an idempotent no-op success. Audit: every rejected publish of an existing server (403/422/503) and every state-changing success emit an event; the idempotent no-op does not, so the audit trail means \"a publish happened\".
|
|
1096
|
+
* Publish Mcp Server
|
|
1097
|
+
*/
|
|
1098
|
+
async publishMcpServer(requestParameters, initOverrides) {
|
|
1099
|
+
const response = await this.publishMcpServerRaw(requestParameters, initOverrides);
|
|
1100
|
+
return await response.value();
|
|
1101
|
+
}
|
|
1102
|
+
/**
|
|
1103
|
+
* Creates request options for registerAgent without sending the request
|
|
1104
|
+
*/
|
|
1105
|
+
async registerAgentRequestOpts(requestParameters) {
|
|
1106
|
+
if (requestParameters['applicationPayload'] == null) {
|
|
1107
|
+
throw new runtime.RequiredError('applicationPayload', 'Required parameter "applicationPayload" was null or undefined when calling registerAgent().');
|
|
1108
|
+
}
|
|
1109
|
+
const queryParameters = {};
|
|
1110
|
+
const headerParameters = {};
|
|
1111
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
1112
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
1113
|
+
// oauth required
|
|
1114
|
+
const oauthToken = await this.configuration.accessToken("OAuth2", ["openid", "profile", "email"]);
|
|
1115
|
+
if (oauthToken) {
|
|
1116
|
+
headerParameters["Authorization"] = oauthToken.startsWith("Bearer ") ? oauthToken : `Bearer ${oauthToken}`;
|
|
1117
|
+
}
|
|
1118
|
+
}
|
|
1119
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
1120
|
+
// oauth required
|
|
1121
|
+
const oauthToken = await this.configuration.accessToken("OAuth2", ["openid", "profile", "email"]);
|
|
1122
|
+
if (oauthToken) {
|
|
1123
|
+
headerParameters["Authorization"] = oauthToken.startsWith("Bearer ") ? oauthToken : `Bearer ${oauthToken}`;
|
|
1124
|
+
}
|
|
1125
|
+
}
|
|
1126
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
1127
|
+
const token = this.configuration.accessToken;
|
|
1128
|
+
const tokenString = await token("ApiKey", []);
|
|
1129
|
+
if (tokenString) {
|
|
1130
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
1131
|
+
}
|
|
1132
|
+
}
|
|
1133
|
+
let urlPath = `/api/registry/v1/agents`;
|
|
1134
|
+
return {
|
|
1135
|
+
path: urlPath,
|
|
1136
|
+
method: 'POST',
|
|
1137
|
+
headers: headerParameters,
|
|
1138
|
+
query: queryParameters,
|
|
1139
|
+
body: (0, ApplicationPayload_js_1.ApplicationPayloadToJSON)(requestParameters['applicationPayload']),
|
|
1140
|
+
};
|
|
1141
|
+
}
|
|
1142
|
+
/**
|
|
1143
|
+
* Register Application
|
|
1144
|
+
*/
|
|
1145
|
+
async registerAgentRaw(requestParameters, initOverrides) {
|
|
1146
|
+
const requestOptions = await this.registerAgentRequestOpts(requestParameters);
|
|
1147
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
1148
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, Application_js_1.ApplicationFromJSON)(jsonValue));
|
|
1149
|
+
}
|
|
1150
|
+
/**
|
|
1151
|
+
* Register Application
|
|
1152
|
+
*/
|
|
1153
|
+
async registerAgent(requestParameters, initOverrides) {
|
|
1154
|
+
const response = await this.registerAgentRaw(requestParameters, initOverrides);
|
|
1155
|
+
return await response.value();
|
|
1156
|
+
}
|
|
1157
|
+
/**
|
|
1158
|
+
* Creates request options for reportMcpConnectionAuthError without sending the request
|
|
1159
|
+
*/
|
|
1160
|
+
async reportMcpConnectionAuthErrorRequestOpts(requestParameters) {
|
|
1161
|
+
if (requestParameters['serverId'] == null) {
|
|
1162
|
+
throw new runtime.RequiredError('serverId', 'Required parameter "serverId" was null or undefined when calling reportMcpConnectionAuthError().');
|
|
1163
|
+
}
|
|
1164
|
+
const queryParameters = {};
|
|
1165
|
+
if (requestParameters['rejectedFingerprint'] != null) {
|
|
1166
|
+
queryParameters['rejected_fingerprint'] = requestParameters['rejectedFingerprint'];
|
|
1167
|
+
}
|
|
1168
|
+
const headerParameters = {};
|
|
1169
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
1170
|
+
// oauth required
|
|
1171
|
+
const oauthToken = await this.configuration.accessToken("OAuth2", ["openid", "profile", "email"]);
|
|
1172
|
+
if (oauthToken) {
|
|
1173
|
+
headerParameters["Authorization"] = oauthToken.startsWith("Bearer ") ? oauthToken : `Bearer ${oauthToken}`;
|
|
1174
|
+
}
|
|
1175
|
+
}
|
|
1176
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
1177
|
+
// oauth required
|
|
1178
|
+
const oauthToken = await this.configuration.accessToken("OAuth2", ["openid", "profile", "email"]);
|
|
1179
|
+
if (oauthToken) {
|
|
1180
|
+
headerParameters["Authorization"] = oauthToken.startsWith("Bearer ") ? oauthToken : `Bearer ${oauthToken}`;
|
|
1181
|
+
}
|
|
1182
|
+
}
|
|
1183
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
1184
|
+
const token = this.configuration.accessToken;
|
|
1185
|
+
const tokenString = await token("ApiKey", []);
|
|
1186
|
+
if (tokenString) {
|
|
1187
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
1188
|
+
}
|
|
1189
|
+
}
|
|
1190
|
+
let urlPath = `/api/registry/v1/servers/{server_id}/connection/auth-error`;
|
|
1191
|
+
urlPath = urlPath.replace('{server_id}', encodeURIComponent(String(requestParameters['serverId'])));
|
|
1192
|
+
return {
|
|
1193
|
+
path: urlPath,
|
|
1194
|
+
method: 'POST',
|
|
1195
|
+
headers: headerParameters,
|
|
1196
|
+
query: queryParameters,
|
|
1197
|
+
};
|
|
1198
|
+
}
|
|
1199
|
+
/**
|
|
1200
|
+
* Mark the calling user\'s connection as needing re-authorization. Called by tool-router when the upstream provider rejects the stored OAuth token mid-use (e.g. a Salesforce session revoked out-of-band while the recorded expiry is still in the future), so the UI flips to a reconnect prompt instead of continuing to show \"connected\". Scoped to the caller\'s own connection on this server — it cannot affect other users\' connections or the server configuration, so the worst a misbehaving caller can do is force themselves to reconnect.
|
|
1201
|
+
* Report Connection Auth Error
|
|
1202
|
+
*/
|
|
1203
|
+
async reportMcpConnectionAuthErrorRaw(requestParameters, initOverrides) {
|
|
1204
|
+
const requestOptions = await this.reportMcpConnectionAuthErrorRequestOpts(requestParameters);
|
|
1205
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
1206
|
+
return new runtime.VoidApiResponse(response);
|
|
1207
|
+
}
|
|
1208
|
+
/**
|
|
1209
|
+
* Mark the calling user\'s connection as needing re-authorization. Called by tool-router when the upstream provider rejects the stored OAuth token mid-use (e.g. a Salesforce session revoked out-of-band while the recorded expiry is still in the future), so the UI flips to a reconnect prompt instead of continuing to show \"connected\". Scoped to the caller\'s own connection on this server — it cannot affect other users\' connections or the server configuration, so the worst a misbehaving caller can do is force themselves to reconnect.
|
|
1210
|
+
* Report Connection Auth Error
|
|
1211
|
+
*/
|
|
1212
|
+
async reportMcpConnectionAuthError(requestParameters, initOverrides) {
|
|
1213
|
+
await this.reportMcpConnectionAuthErrorRaw(requestParameters, initOverrides);
|
|
1214
|
+
}
|
|
1215
|
+
/**
|
|
1216
|
+
* Creates request options for unregisterAgent without sending the request
|
|
1217
|
+
*/
|
|
1218
|
+
async unregisterAgentRequestOpts(requestParameters) {
|
|
1219
|
+
if (requestParameters['applicationId'] == null) {
|
|
1220
|
+
throw new runtime.RequiredError('applicationId', 'Required parameter "applicationId" was null or undefined when calling unregisterAgent().');
|
|
1221
|
+
}
|
|
1222
|
+
const queryParameters = {};
|
|
1223
|
+
const headerParameters = {};
|
|
1224
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
1225
|
+
// oauth required
|
|
1226
|
+
const oauthToken = await this.configuration.accessToken("OAuth2", ["openid", "profile", "email"]);
|
|
1227
|
+
if (oauthToken) {
|
|
1228
|
+
headerParameters["Authorization"] = oauthToken.startsWith("Bearer ") ? oauthToken : `Bearer ${oauthToken}`;
|
|
1229
|
+
}
|
|
1230
|
+
}
|
|
1231
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
1232
|
+
// oauth required
|
|
1233
|
+
const oauthToken = await this.configuration.accessToken("OAuth2", ["openid", "profile", "email"]);
|
|
1234
|
+
if (oauthToken) {
|
|
1235
|
+
headerParameters["Authorization"] = oauthToken.startsWith("Bearer ") ? oauthToken : `Bearer ${oauthToken}`;
|
|
1236
|
+
}
|
|
1237
|
+
}
|
|
1238
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
1239
|
+
const token = this.configuration.accessToken;
|
|
1240
|
+
const tokenString = await token("ApiKey", []);
|
|
1241
|
+
if (tokenString) {
|
|
1242
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
1243
|
+
}
|
|
1244
|
+
}
|
|
1245
|
+
let urlPath = `/api/registry/v1/agents/{application_id}`;
|
|
1246
|
+
urlPath = urlPath.replace('{application_id}', encodeURIComponent(String(requestParameters['applicationId'])));
|
|
1247
|
+
return {
|
|
1248
|
+
path: urlPath,
|
|
1249
|
+
method: 'DELETE',
|
|
1250
|
+
headers: headerParameters,
|
|
1251
|
+
query: queryParameters,
|
|
1252
|
+
};
|
|
1253
|
+
}
|
|
1254
|
+
/**
|
|
1255
|
+
* Unregister Application
|
|
1256
|
+
*/
|
|
1257
|
+
async unregisterAgentRaw(requestParameters, initOverrides) {
|
|
1258
|
+
const requestOptions = await this.unregisterAgentRequestOpts(requestParameters);
|
|
1259
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
1260
|
+
return new runtime.VoidApiResponse(response);
|
|
1261
|
+
}
|
|
1262
|
+
/**
|
|
1263
|
+
* Unregister Application
|
|
1264
|
+
*/
|
|
1265
|
+
async unregisterAgent(requestParameters, initOverrides) {
|
|
1266
|
+
await this.unregisterAgentRaw(requestParameters, initOverrides);
|
|
1267
|
+
}
|
|
1268
|
+
/**
|
|
1269
|
+
* Creates request options for updateAgentLlmGateway without sending the request
|
|
1270
|
+
*/
|
|
1271
|
+
async updateAgentLlmGatewayRequestOpts(requestParameters) {
|
|
1272
|
+
if (requestParameters['applicationId'] == null) {
|
|
1273
|
+
throw new runtime.RequiredError('applicationId', 'Required parameter "applicationId" was null or undefined when calling updateAgentLlmGateway().');
|
|
1274
|
+
}
|
|
1275
|
+
if (requestParameters['applicationLlmGatewayPayload'] == null) {
|
|
1276
|
+
throw new runtime.RequiredError('applicationLlmGatewayPayload', 'Required parameter "applicationLlmGatewayPayload" was null or undefined when calling updateAgentLlmGateway().');
|
|
1277
|
+
}
|
|
1278
|
+
const queryParameters = {};
|
|
1279
|
+
const headerParameters = {};
|
|
1280
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
1281
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
1282
|
+
// oauth required
|
|
1283
|
+
const oauthToken = await this.configuration.accessToken("OAuth2", ["openid", "profile", "email"]);
|
|
1284
|
+
if (oauthToken) {
|
|
1285
|
+
headerParameters["Authorization"] = oauthToken.startsWith("Bearer ") ? oauthToken : `Bearer ${oauthToken}`;
|
|
1286
|
+
}
|
|
1287
|
+
}
|
|
1288
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
1289
|
+
// oauth required
|
|
1290
|
+
const oauthToken = await this.configuration.accessToken("OAuth2", ["openid", "profile", "email"]);
|
|
1291
|
+
if (oauthToken) {
|
|
1292
|
+
headerParameters["Authorization"] = oauthToken.startsWith("Bearer ") ? oauthToken : `Bearer ${oauthToken}`;
|
|
1293
|
+
}
|
|
1294
|
+
}
|
|
1295
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
1296
|
+
const token = this.configuration.accessToken;
|
|
1297
|
+
const tokenString = await token("ApiKey", []);
|
|
1298
|
+
if (tokenString) {
|
|
1299
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
1300
|
+
}
|
|
1301
|
+
}
|
|
1302
|
+
let urlPath = `/api/registry/v1/agents/{application_id}/llm-gateway`;
|
|
1303
|
+
urlPath = urlPath.replace('{application_id}', encodeURIComponent(String(requestParameters['applicationId'])));
|
|
1304
|
+
return {
|
|
1305
|
+
path: urlPath,
|
|
1306
|
+
method: 'PATCH',
|
|
1307
|
+
headers: headerParameters,
|
|
1308
|
+
query: queryParameters,
|
|
1309
|
+
body: (0, ApplicationLlmGatewayPayload_js_1.ApplicationLlmGatewayPayloadToJSON)(requestParameters['applicationLlmGatewayPayload']),
|
|
1310
|
+
};
|
|
1311
|
+
}
|
|
1312
|
+
/**
|
|
1313
|
+
* Update Application Llm Gateway
|
|
1314
|
+
*/
|
|
1315
|
+
async updateAgentLlmGatewayRaw(requestParameters, initOverrides) {
|
|
1316
|
+
const requestOptions = await this.updateAgentLlmGatewayRequestOpts(requestParameters);
|
|
1317
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
1318
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, ApplicationResponse_js_1.ApplicationResponseFromJSON)(jsonValue));
|
|
1319
|
+
}
|
|
1320
|
+
/**
|
|
1321
|
+
* Update Application Llm Gateway
|
|
1322
|
+
*/
|
|
1323
|
+
async updateAgentLlmGateway(requestParameters, initOverrides) {
|
|
1324
|
+
const response = await this.updateAgentLlmGatewayRaw(requestParameters, initOverrides);
|
|
1325
|
+
return await response.value();
|
|
1326
|
+
}
|
|
1327
|
+
/**
|
|
1328
|
+
* Creates request options for updateAgentWriteConfirmations without sending the request
|
|
1329
|
+
*/
|
|
1330
|
+
async updateAgentWriteConfirmationsRequestOpts(requestParameters) {
|
|
1331
|
+
if (requestParameters['applicationId'] == null) {
|
|
1332
|
+
throw new runtime.RequiredError('applicationId', 'Required parameter "applicationId" was null or undefined when calling updateAgentWriteConfirmations().');
|
|
1333
|
+
}
|
|
1334
|
+
if (requestParameters['applicationWriteConfirmationsPayload'] == null) {
|
|
1335
|
+
throw new runtime.RequiredError('applicationWriteConfirmationsPayload', 'Required parameter "applicationWriteConfirmationsPayload" was null or undefined when calling updateAgentWriteConfirmations().');
|
|
1336
|
+
}
|
|
1337
|
+
const queryParameters = {};
|
|
1338
|
+
const headerParameters = {};
|
|
1339
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
1340
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
1341
|
+
// oauth required
|
|
1342
|
+
const oauthToken = await this.configuration.accessToken("OAuth2", ["openid", "profile", "email"]);
|
|
1343
|
+
if (oauthToken) {
|
|
1344
|
+
headerParameters["Authorization"] = oauthToken.startsWith("Bearer ") ? oauthToken : `Bearer ${oauthToken}`;
|
|
1345
|
+
}
|
|
1346
|
+
}
|
|
1347
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
1348
|
+
// oauth required
|
|
1349
|
+
const oauthToken = await this.configuration.accessToken("OAuth2", ["openid", "profile", "email"]);
|
|
1350
|
+
if (oauthToken) {
|
|
1351
|
+
headerParameters["Authorization"] = oauthToken.startsWith("Bearer ") ? oauthToken : `Bearer ${oauthToken}`;
|
|
1352
|
+
}
|
|
1353
|
+
}
|
|
1354
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
1355
|
+
const token = this.configuration.accessToken;
|
|
1356
|
+
const tokenString = await token("ApiKey", []);
|
|
1357
|
+
if (tokenString) {
|
|
1358
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
1359
|
+
}
|
|
1360
|
+
}
|
|
1361
|
+
let urlPath = `/api/registry/v1/agents/{application_id}/write-confirmations`;
|
|
1362
|
+
urlPath = urlPath.replace('{application_id}', encodeURIComponent(String(requestParameters['applicationId'])));
|
|
1363
|
+
return {
|
|
1364
|
+
path: urlPath,
|
|
1365
|
+
method: 'PATCH',
|
|
1366
|
+
headers: headerParameters,
|
|
1367
|
+
query: queryParameters,
|
|
1368
|
+
body: (0, ApplicationWriteConfirmationsPayload_js_1.ApplicationWriteConfirmationsPayloadToJSON)(requestParameters['applicationWriteConfirmationsPayload']),
|
|
1369
|
+
};
|
|
1370
|
+
}
|
|
1371
|
+
/**
|
|
1372
|
+
* Update Application Write Confirmations
|
|
1373
|
+
*/
|
|
1374
|
+
async updateAgentWriteConfirmationsRaw(requestParameters, initOverrides) {
|
|
1375
|
+
const requestOptions = await this.updateAgentWriteConfirmationsRequestOpts(requestParameters);
|
|
1376
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
1377
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, ApplicationResponse_js_1.ApplicationResponseFromJSON)(jsonValue));
|
|
1378
|
+
}
|
|
1379
|
+
/**
|
|
1380
|
+
* Update Application Write Confirmations
|
|
1381
|
+
*/
|
|
1382
|
+
async updateAgentWriteConfirmations(requestParameters, initOverrides) {
|
|
1383
|
+
const response = await this.updateAgentWriteConfirmationsRaw(requestParameters, initOverrides);
|
|
1384
|
+
return await response.value();
|
|
1385
|
+
}
|
|
1386
|
+
}
|
|
1387
|
+
exports.RegistryApi = RegistryApi;
|