@camunda/ccma-api 2.1.0 → 3.0.0
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/dist/index.d.ts +12 -4
- package/dist/index.js +8 -0
- package/dist/index.js.map +2 -2
- package/dist/services/accounts/approvals.m2m.service.d.ts +33 -0
- package/dist/services/accounts/approvals.m2m.service.js +64 -0
- package/dist/services/accounts/approvals.m2m.service.js.map +7 -0
- package/dist/services/accounts/hdp.service.d.ts +62 -1
- package/dist/services/accounts/hdp.service.js +123 -0
- package/dist/services/accounts/hdp.service.js.map +2 -2
- package/dist/services/accounts/hdp.service.spec.d.ts +1 -0
- package/dist/services/accounts/orgs.service.d.ts +6 -2
- package/dist/services/accounts/orgs.service.js +6 -2
- package/dist/services/accounts/orgs.service.js.map +2 -2
- package/dist/services/console/console.admin.service.d.ts +25 -0
- package/dist/services/console/console.admin.service.js +40 -0
- package/dist/services/console/console.admin.service.js.map +2 -2
- package/dist/services/console/console.approvals.m2m.service.d.ts +47 -0
- package/dist/services/console/console.approvals.m2m.service.js +105 -0
- package/dist/services/console/console.approvals.m2m.service.js.map +7 -0
- package/dist/services/console/console.channel.service.d.ts +4 -2
- package/dist/services/console/console.channel.service.js.map +2 -2
- package/dist/services/console/console.cluster.service.d.ts +15 -0
- package/dist/services/console/console.cluster.service.js +40 -0
- package/dist/services/console/console.cluster.service.js.map +2 -2
- package/dist/services/console/console.cluster.v2.service.d.ts +11 -3
- package/dist/services/console/console.cluster.v2.service.js +37 -2
- package/dist/services/console/console.cluster.v2.service.js.map +2 -2
- package/dist/services/control/control.annotations.service.d.ts +149 -0
- package/dist/services/control/control.annotations.service.js +193 -0
- package/dist/services/control/control.annotations.service.js.map +7 -0
- package/dist/services/control/control.approvals.service.d.ts +118 -6
- package/dist/services/control/control.approvals.service.js +99 -13
- package/dist/services/control/control.approvals.service.js.map +2 -2
- package/dist/services/control/control.platform.service.d.ts +24 -0
- package/dist/services/control/control.platform.service.js +36 -0
- package/dist/services/control/control.platform.service.js.map +7 -0
- package/dist/services/external/external.accounts.service.d.ts +10 -1
- package/dist/services/external/external.accounts.service.js +39 -0
- package/dist/services/external/external.accounts.service.js.map +2 -2
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -3,6 +3,8 @@ export { AccountsDataExportService } from './services/accounts/accounts.data-exp
|
|
|
3
3
|
export type { GetValueMetricsPerDayParams } from './services/accounts/accounts.valuemetrics.service.js';
|
|
4
4
|
export type { DownloadDatabaseDumpParams, TriggerValueMetricsCronParams, } from './services/accounts/admin-tools.service.js';
|
|
5
5
|
export { AdminToolsService } from './services/accounts/admin-tools.service.js';
|
|
6
|
+
export type { ExtendTrialThroughApprovalRequest, SendToExpiredTrialThroughApprovalRequest, } from './services/accounts/approvals.m2m.service.js';
|
|
7
|
+
export { AccountsApprovalsM2MService } from './services/accounts/approvals.m2m.service.js';
|
|
6
8
|
export { AccountsBotService } from './services/accounts/bot.service.js';
|
|
7
9
|
export type { BugReportRequest, BugReportRequestBody, BugReportResponse, } from './services/accounts/bug-report.service.js';
|
|
8
10
|
export { BugReportService } from './services/accounts/bug-report.service.js';
|
|
@@ -15,7 +17,7 @@ export { DashboardsService } from './services/accounts/dashboards.service.js';
|
|
|
15
17
|
export type { CreateEarlyAccessFeatureParams, DeleteEarlyAccessFeatureParams, EarlyAccessFeatureActivationDto, EarlyAccessFeatureDto, EarlyAccessFeatureOrgDto, EarlyAccessFeatureSalesPlanConfigDto, GetEarlyAccessFeatureOrgsParams, GetEarlyAccessFeaturesForOrgParams, SetEarlyAccessFeatureActivationParams, UpdateEarlyAccessFeatureParams, } from './services/accounts/early-access-features.service.js';
|
|
16
18
|
export { EarlyAccessFeaturesService } from './services/accounts/early-access-features.service.js';
|
|
17
19
|
export { GenericCacheService } from './services/accounts/genericCache.service.js';
|
|
18
|
-
export type { GetActiveOrgsRequest, GetActiveOrgsResponse, GetBackendChangeEventsRequest, GetClusterActivityRequest, GetClusterCapacityRequest, GetLlmUsageRequest, GetTenantUsageRequest, GetUsageMetricsRequest, GetUsageMetricsResponse, LlmUsageEntry, } from './services/accounts/hdp.service.js';
|
|
20
|
+
export type { GetActiveOrgsRequest, GetActiveOrgsResponse, GetBackendChangeEventsRequest, GetClusterActivityRequest, GetClusterCapacityRequest, GetClusterDiskUsageParams, GetClusterDiskUsageRequest, GetClusterHostingCostRequest, GetClusterHostingCostResponse, GetLlmUsageRequest, GetTenantUsageRequest, GetUsageMetricsRequest, GetUsageMetricsResponse, LlmUsageEntry, } from './services/accounts/hdp.service.js';
|
|
19
21
|
export { HdpService } from './services/accounts/hdp.service.js';
|
|
20
22
|
export { type InviteDto, InvitesService, type SearchInvitesRequest, } from './services/accounts/invites.service.js';
|
|
21
23
|
export type { OffboardCamundiRequest, OffboardCamundiResponse, } from './services/accounts/offboarding.service.js';
|
|
@@ -61,15 +63,17 @@ export type { Auth0Request } from './services/auth0/auth0.service.js';
|
|
|
61
63
|
export { Auth0Service } from './services/auth0/auth0.service.js';
|
|
62
64
|
export type { CommBridgeClientRequest } from './services/comm-bridge/comm-bridge.service.js';
|
|
63
65
|
export { CommBridgeService } from './services/comm-bridge/comm-bridge.service.js';
|
|
64
|
-
export type { AdminClusterAutoUpdateRequest, AdminClusterDetailsDto, AdminClusterNonSpotNodesRequest, AdminClusterOptionalTelemetryRequest, CreateLiteLLMSecretsForOrgRequest, GetAdminClusterDetailsRequest, GetClusterCrdStateRequest, GetClusterRequest, GetSpecExplainerRequest, RepointLlmSecretsForOrgRequest, RepointLlmSecretsForOrgResponse, RotateLiteLLMKeySecretsForOrgRequest, RotateLiteLLMKeySecretsForOrgResponse, SignalSignupRequest, SpecExplainerFieldAnnotation, SpecExplainerFieldSource, SpecExplainerResponse, UpdateClusterMetricsStartDateRequest, UpdateClusterToNewPlanTypeRequest, } from './services/console/console.admin.service.js';
|
|
66
|
+
export type { AdminClusterAutoUpdateRequest, AdminClusterDetailsDto, AdminClusterNonSpotNodesRequest, AdminClusterOptionalTelemetryRequest, CreateLiteLLMSecretsForOrgRequest, GetAdminClusterDetailsRequest, GetClusterCrdStateRequest, GetClusterRequest, GetSpecExplainerRequest, RemoveLlmSecretsForOrgRequest, RemoveLlmSecretsForOrgResponse, RepointLlmSecretsForOrgRequest, RepointLlmSecretsForOrgResponse, RotateLiteLLMKeySecretsForOrgRequest, RotateLiteLLMKeySecretsForOrgResponse, SignalSignupRequest, SpecExplainerFieldAnnotation, SpecExplainerFieldSource, SpecExplainerResponse, UpdateClusterMetricsStartDateRequest, UpdateClusterToNewPlanTypeRequest, } from './services/console/console.admin.service.js';
|
|
65
67
|
export { ConsoleAdminService } from './services/console/console.admin.service.js';
|
|
66
68
|
export { type CheckConsoleAlertParams, type CheckConsoleAlertResponse, ConsoleAlertsService, type CreateConsoleAlertParams, type DeleteConsoleAlertParams, type GetConsoleAlertsParams, type UpdateConsoleAlertParams, } from './services/console/console.alerts.service.js';
|
|
67
69
|
export { type ConsoleApiClientDto, ConsoleApiClientsService, type CreateConsoleApiClientParams, type CreateConsoleApiClientResponse, type DeleteConsoleApiClientParams, type GetConsoleApiClientsParams, type UpdateConsoleApiClientParams, } from './services/console/console.api-clients.service.js';
|
|
70
|
+
export type { AnnounceClusterBulkPlanUpdateRequest, MoveClusterOwnerThroughApprovalRequest, RunClusterBulkStepThroughApprovalRequest, } from './services/console/console.approvals.m2m.service.js';
|
|
71
|
+
export { ConsoleApprovalsM2MService } from './services/console/console.approvals.m2m.service.js';
|
|
68
72
|
export { ConsoleBackupScheduleService, type GetConsoleBackupScheduleParams, type UpdateConsoleBackupScheduleParams, } from './services/console/console.backup-schedule.service.js';
|
|
69
73
|
export { ConsoleByokScriptsService, type GetConsoleByokKmsPolicyParams, type GetConsoleByokScriptParams, } from './services/console/console.byok-scripts.service.js';
|
|
70
74
|
export { type ActivateConsoleByomMonitoringParams, type ByomMonitoringClientsResponseDto, type ByomMonitoringClientWithPasswordDto, ConsoleByomMonitoringService, type CreateConsoleByomMonitoringClientParams, type DeactivateConsoleByomMonitoringParams, type DeleteConsoleByomMonitoringClientParams, type GetConsoleByomMonitoringClientsParams, type RotateConsoleByomMonitoringClientPasswordParams, } from './services/console/console.byom-monitoring.service.js';
|
|
71
75
|
export { ChannelService, type ConsoleChannelDto, type CreateConsoleChannelParams, type DeleteConsoleChannelParams, type GetConsoleChannelsParams, type UpdateConsoleChannelParams, } from './services/console/console.channel.service.js';
|
|
72
|
-
export type { ConsoleClusterCarryOverResult, CreateConsoleClusterRequest, CreateConsoleClusterResponse, DeleteConsoleClusterRequest, DeleteExternalIdpRequest, DuplicateConsoleClusterRequest, DuplicateConsoleClusterResponse, FailoverConsoleClusterRequest, FailoverConsoleClusterResult, GetConsoleClusterRequest, GetConsoleClustersRequest, MoveClusterOwnerRequest, ProxyOrchestrationClusterRequest, SuspendConsoleClusterRequest, UpdateClusterRequest, UpdateExternalIdpSecretRequest, WakeConsoleClusterRequest, } from './services/console/console.cluster.service.js';
|
|
76
|
+
export type { ConsoleClusterCarryOverResult, CreateConsoleClusterRequest, CreateConsoleClusterResponse, DeleteConsoleClusterRequest, DeleteExternalIdpRequest, DuplicateConsoleClusterRequest, DuplicateConsoleClusterResponse, FailoverConsoleClusterRequest, FailoverConsoleClusterResult, GetAdminClusterRequest, GetConsoleClusterRequest, GetConsoleClustersRequest, MoveClusterOwnerRequest, ProxyOrchestrationClusterRequest, SuspendConsoleClusterRequest, UpdateClusterRequest, UpdateExternalIdpSecretRequest, WakeConsoleClusterRequest, } from './services/console/console.cluster.service.js';
|
|
73
77
|
export { ConsoleClusterService } from './services/console/console.cluster.service.js';
|
|
74
78
|
export type { GetClusterParametersV2Request, GetClusterV2Request, ListClustersV2Request, ListOrgClustersV2Request, } from './services/console/console.cluster.v2.service.js';
|
|
75
79
|
export { ConsoleClusterV2Service } from './services/console/console.cluster.v2.service.js';
|
|
@@ -94,8 +98,12 @@ export { type ActivateSecureConnectivityParams, ConsoleSecureConnectivityService
|
|
|
94
98
|
export { type GetStorybookConfigParams, StorybookConfigService, } from './services/console/console.storybook-config.service.js';
|
|
95
99
|
export { ConsoleValueMetricsService } from './services/console/console.valuemetrics.service.js';
|
|
96
100
|
export { type CreateGenerationParams, type DeleteGenerationParams, GenerationService, type GenerationVersionsInput, type ListGenerationsParams, type SetGenerationArchivedParams, type SetGenerationBespokeParams, type UpdateGenerationParams, } from './services/console/generation.service.js';
|
|
97
|
-
export type {
|
|
101
|
+
export type { AddAnnotationNoteRequest, AddAnnotationTagRequest, AnnotationIdRequest, AnnotationPageDto, AnnotationPageInfoDto, AnnotationTagPageDto, AnnotationTargetDto, EditAnnotationNoteRequest, GetEntityAnnotationsRequest, ListAnnotationTagsRequest, LookupAnnotationsRequest, SearchAnnotationsRequest, } from './services/control/control.annotations.service.js';
|
|
102
|
+
export { ControlAnnotationsService } from './services/control/control.annotations.service.js';
|
|
103
|
+
export type { ApprovalFacetParams, ApprovalIdRequest, ApprovalPageDto, CountApprovalsRequest, CreateApprovalRequest, ExtendTrialPayloadDto, ListApprovalsRequest, MoveClusterOrgPayloadDto, RejectApprovalRequest, SendToExpiredTrialPayloadDto, WithdrawApprovalRequest, } from './services/control/control.approvals.service.js';
|
|
98
104
|
export { ControlApprovalsService } from './services/control/control.approvals.service.js';
|
|
105
|
+
export type { ControlWhoamiDto } from './services/control/control.platform.service.js';
|
|
106
|
+
export { ControlPlatformService } from './services/control/control.platform.service.js';
|
|
99
107
|
export type { GetFeatureFlagsParams, UpdateUserThemeParams, UserThemePreference, } from './services/external/external.accounts.service.js';
|
|
100
108
|
export { ExternalAccountsService } from './services/external/external.accounts.service.js';
|
|
101
109
|
export type { GetOrgClustersParams, StreamOrgEventsParams, } from './services/external/external.console.service.js';
|
package/dist/index.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { AccountsDataExportService } from "./services/accounts/accounts.data-export.service.js";
|
|
2
2
|
import { AdminToolsService } from "./services/accounts/admin-tools.service.js";
|
|
3
|
+
import { AccountsApprovalsM2MService } from "./services/accounts/approvals.m2m.service.js";
|
|
3
4
|
import { AccountsBotService } from "./services/accounts/bot.service.js";
|
|
4
5
|
import { BugReportService } from "./services/accounts/bug-report.service.js";
|
|
5
6
|
import { ChallengeService } from "./services/accounts/challenge.service.js";
|
|
@@ -43,6 +44,7 @@ import {
|
|
|
43
44
|
import {
|
|
44
45
|
ConsoleApiClientsService
|
|
45
46
|
} from "./services/console/console.api-clients.service.js";
|
|
47
|
+
import { ConsoleApprovalsM2MService } from "./services/console/console.approvals.m2m.service.js";
|
|
46
48
|
import {
|
|
47
49
|
ConsoleBackupScheduleService
|
|
48
50
|
} from "./services/console/console.backup-schedule.service.js";
|
|
@@ -94,7 +96,9 @@ import { ConsoleValueMetricsService } from "./services/console/console.valuemetr
|
|
|
94
96
|
import {
|
|
95
97
|
GenerationService
|
|
96
98
|
} from "./services/console/generation.service.js";
|
|
99
|
+
import { ControlAnnotationsService } from "./services/control/control.annotations.service.js";
|
|
97
100
|
import { ControlApprovalsService } from "./services/control/control.approvals.service.js";
|
|
101
|
+
import { ControlPlatformService } from "./services/control/control.platform.service.js";
|
|
98
102
|
import { ExternalAccountsService } from "./services/external/external.accounts.service.js";
|
|
99
103
|
import { ExternalConsoleService } from "./services/external/external.console.service.js";
|
|
100
104
|
import { ExternalNotificationsService } from "./services/external/external.notifications.service.js";
|
|
@@ -141,6 +145,7 @@ import {
|
|
|
141
145
|
traceparentHeaders
|
|
142
146
|
} from "./utils/traceparent.js";
|
|
143
147
|
export {
|
|
148
|
+
AccountsApprovalsM2MService,
|
|
144
149
|
AccountsBotService,
|
|
145
150
|
AccountsDataExportService,
|
|
146
151
|
AdminToolsService,
|
|
@@ -160,6 +165,7 @@ export {
|
|
|
160
165
|
ConsoleAdminService,
|
|
161
166
|
ConsoleAlertsService,
|
|
162
167
|
ConsoleApiClientsService,
|
|
168
|
+
ConsoleApprovalsM2MService,
|
|
163
169
|
ConsoleBackupScheduleService,
|
|
164
170
|
ConsoleByokScriptsService,
|
|
165
171
|
ConsoleByomMonitoringService,
|
|
@@ -175,7 +181,9 @@ export {
|
|
|
175
181
|
ConsoleM2MService,
|
|
176
182
|
ConsoleSecureConnectivityService,
|
|
177
183
|
ConsoleValueMetricsService,
|
|
184
|
+
ControlAnnotationsService,
|
|
178
185
|
ControlApprovalsService,
|
|
186
|
+
ControlPlatformService,
|
|
179
187
|
CustomMetricsCCMA,
|
|
180
188
|
DashboardsService,
|
|
181
189
|
EarlyAccessFeaturesService,
|
package/dist/index.js.map
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../src/index.ts"],
|
|
4
|
-
"sourcesContent": ["/*\n * Copyright Camunda Services GmbH and/or licensed to Camunda Services GmbH\n * under one or more contributor license agreements. Licensed under a commercial license.\n * You may not use this file except in compliance with the commercial license.\n */\n\nexport type {\n GetDataExportRequest,\n GetDataExportResponse,\n} from './services/accounts/accounts.data-export.service.js'\n// accounts services\nexport { AccountsDataExportService } from './services/accounts/accounts.data-export.service.js'\nexport type { GetValueMetricsPerDayParams } from './services/accounts/accounts.valuemetrics.service.js'\nexport type {\n DownloadDatabaseDumpParams,\n TriggerValueMetricsCronParams,\n} from './services/accounts/admin-tools.service.js'\nexport { AdminToolsService } from './services/accounts/admin-tools.service.js'\nexport { AccountsBotService } from './services/accounts/bot.service.js'\nexport type {\n BugReportRequest,\n BugReportRequestBody,\n BugReportResponse,\n} from './services/accounts/bug-report.service.js'\nexport { BugReportService } from './services/accounts/bug-report.service.js'\nexport type {\n CancelMatchParams,\n CancelMatchResponse,\n GameInfo,\n GetGameInfoParams,\n GetHighscoresParams,\n GetHighscoresResponse,\n GetMatchStateParams,\n GetOrganizationalGroupsParams,\n GetOrganizationalGroupsResponse,\n GetRunningMatchesParams,\n GetRunningMatchesResponse,\n HighscoreEntry,\n InitiateMatchParams,\n InitiateMatchResponse,\n JoinMatchParams,\n JoinMatchResponse,\n Match,\n Player,\n PlayerAnswer,\n Question,\n QuestionChoice,\n SlackProfile,\n StartMatchParams,\n StartMatchResponse,\n SubmitAnswerParams,\n SubmitAnswerResponse,\n} from './services/accounts/challenge.service.js'\nexport { ChallengeService } from './services/accounts/challenge.service.js'\nexport type {\n AzureConnectionPayload,\n Connection,\n ConnectionPayload,\n ConnectionUserDto,\n ConnectionWriteStrategy,\n CreateConnectionParams,\n DeleteConnectionParams,\n GetConnectionParams,\n GetConnectionsParams,\n SamlConnectionPayload,\n UpdateConnectionParams,\n} from './services/accounts/connections.service.js'\nexport { ConnectionsService } from './services/accounts/connections.service.js'\nexport type { GetEngineeringOperationsDashboardRequest } from './services/accounts/dashboards.service.js'\nexport { DashboardsService } from './services/accounts/dashboards.service.js'\nexport type {\n CreateEarlyAccessFeatureParams,\n DeleteEarlyAccessFeatureParams,\n EarlyAccessFeatureActivationDto,\n EarlyAccessFeatureDto,\n EarlyAccessFeatureOrgDto,\n EarlyAccessFeatureSalesPlanConfigDto,\n GetEarlyAccessFeatureOrgsParams,\n GetEarlyAccessFeaturesForOrgParams,\n SetEarlyAccessFeatureActivationParams,\n UpdateEarlyAccessFeatureParams,\n} from './services/accounts/early-access-features.service.js'\nexport { EarlyAccessFeaturesService } from './services/accounts/early-access-features.service.js'\nexport { GenericCacheService } from './services/accounts/genericCache.service.js'\nexport type {\n GetActiveOrgsRequest,\n GetActiveOrgsResponse,\n GetBackendChangeEventsRequest,\n GetClusterActivityRequest,\n GetClusterCapacityRequest,\n GetLlmUsageRequest,\n GetTenantUsageRequest,\n GetUsageMetricsRequest,\n GetUsageMetricsResponse,\n LlmUsageEntry,\n} from './services/accounts/hdp.service.js'\nexport { HdpService } from './services/accounts/hdp.service.js'\nexport {\n type InviteDto,\n InvitesService,\n type SearchInvitesRequest,\n} from './services/accounts/invites.service.js'\nexport type {\n OffboardCamundiRequest,\n OffboardCamundiResponse,\n} from './services/accounts/offboarding.service.js'\nexport { OffboardingService } from './services/accounts/offboarding.service.js'\nexport type {\n AssignNewOwnerParams,\n AssignNewOwnerResponse,\n CancelOrganizationInviteParams,\n GetOrganizationMembersParams,\n LeaveOrganizationParams,\n OrganizationMemberDto,\n OrganizationMemberInviteDto,\n RemoveUserFromOrganizationParams,\n ResendOrganizationInviteParams,\n UpdateOrganizationMemberRolesParams,\n} from './services/accounts/organization-members.service.js'\nexport { OrganizationMembersService } from './services/accounts/organization-members.service.js'\nexport type {\n AutomatedEnterpriseOnboardingRequest,\n AutomatedEnterpriseOnboardingResult,\n AwsOnlyRequest,\n BlockLiteLLMParams,\n ChangeSalesPlanRequest,\n CheckUserExistsForInviteRequest,\n CheckUserExistsForInviteResponse,\n ConvertTrialToInNegotiationRequest,\n DeleteOrganizationRequest,\n EnterpriseDevOnlyRequest,\n ExtendTrialRequest,\n GetLLMUsageInfoParams,\n GetQueuedOperationsParams,\n GetSubscriptionDetailsParams,\n GetSubscriptionDetailsResponse,\n GetSubscriptionItemsParams,\n IncreaseLLMBudgetParams,\n IncreaseLLMBudgetResponse,\n LicensingModelRequest,\n LLMUsageInfoResponse,\n OnboardLiteLLMParams,\n OrgClusterDefaultsRequest,\n OrgClusterDefaultsResponse,\n OrgInfo,\n QueuedOperationDto,\n RenameOrganizationRequest,\n ResetTrialExtensionsRequest,\n SelfExtendTrialRequest,\n SendInviteRequest,\n SetBetaTermsAcceptedRequest,\n SetLimitRequest,\n UnblockLiteLLMParams,\n UpdateOrgClusterDefaultsRequest,\n UpdateSuppressDropDisksRequest,\n UpdateSuppressDropDisksResponse,\n} from './services/accounts/orgs.service.js'\nexport { OrgsService } from './services/accounts/orgs.service.js'\nexport type {\n GetControlSessionRequest,\n GetOrganizationV2Request,\n ListOrganizationsV2Request,\n ListOrgMembersV2Request,\n} from './services/accounts/orgs.v2.service.js'\nexport { OrgsV2Service } from './services/accounts/orgs.v2.service.js'\nexport type {\n CreatePdfWatermarkProjectParams,\n PdfWatermarkAuditEntryDto,\n PdfWatermarkPasswordParams,\n PdfWatermarkProjectDto,\n PdfWatermarkProjectIdParams,\n RecordPdfWatermarkAuditParams,\n SetPdfWatermarkPdfParams,\n UpdatePdfWatermarkProjectParams,\n} from './services/accounts/pdf-watermark.service.js'\nexport { PdfWatermarkService } from './services/accounts/pdf-watermark.service.js'\nexport type {\n FleetQueuedOperationDto,\n ListQueuedOperationsParams,\n QueuedOperationStatus,\n QueuedOperationsResponse,\n QueueHealthDto,\n} from './services/accounts/queued-operations.service.js'\nexport { QueuedOperationsService } from './services/accounts/queued-operations.service.js'\nexport type {\n GetReleaseTrainParams,\n ReleaseTrainInfoDto,\n} from './services/accounts/release-train.service.js'\nexport {\n KNOWN_RELEASE_TRAINS,\n ReleaseTrainService,\n} from './services/accounts/release-train.service.js'\nexport type {\n CreateSalesPlanRequest,\n DeleteSalesPlanRequest,\n GetSalesPlansRequest,\n UpdateSalesPlanMetadataRequest,\n UpdateSalesPlanRequest,\n UpdateSalesPlanReservationsRequest,\n} from './services/accounts/salesplan.service.js'\nexport { SalesPlanService } from './services/accounts/salesplan.service.js'\nexport { SpamDetectionService } from './services/accounts/spam-detection.service.js'\nexport type { GetStatsParams } from './services/accounts/stats.service.js'\nexport { StatsService } from './services/accounts/stats.service.js'\nexport type { PostTracesRequest } from './services/accounts/telemetry-ingest.service.js'\nexport { TelemetryIngestService } from './services/accounts/telemetry-ingest.service.js'\nexport type {\n InvalidateTokenByClientParams,\n InvalidateTokenParams,\n} from './services/accounts/token-issuer.service.js'\nexport { TokenIssuerService } from './services/accounts/token-issuer.service.js'\nexport type {\n GetOrgTrialDetailParams,\n GetTrialManagementOrgsParams,\n GetTrialManagementParams,\n} from './services/accounts/trial-management.service.js'\nexport { TrialManagementService } from './services/accounts/trial-management.service.js'\nexport type {\n CreateUsageAlertParams,\n GetUsageAlertsParams,\n PatchUsageAlertParams,\n} from './services/accounts/usage-alerts.service.js'\nexport { UsageAlertsService } from './services/accounts/usage-alerts.service.js'\nexport type {\n AddUserToOrganizationRequest,\n ChangeUserEmailRequest,\n ChangeUserNameRequest,\n DeleteMeRequest,\n RemoveStaleOrganizationRequest,\n RemoveUserFromOrganizationRequest,\n SearchParams,\n SetDefaultOrgRequest,\n SimpleSearchParams,\n UpdateUserRoleRequest,\n UserIdRequest,\n} from './services/accounts/users.service.js'\nexport { UsersService } from './services/accounts/users.service.js'\nexport type {\n CreateAlertSubscription,\n DeleteAlertSubscription,\n GetAlertSubscriptions,\n UpdateAlertSubscription,\n} from './services/alerts/alerts.service.js'\n// alerts services\nexport { AlertsService } from './services/alerts/alerts.service.js'\nexport type {\n AddAnalyticBridgeRequest,\n AddClusterAnalyticBridgeRequest,\n} from './services/analytic-bridge/analytic-bridge.service.js'\n// analytic-bridge services\nexport { AnalyticBridgeService } from './services/analytic-bridge/analytic-bridge.service.js'\nexport type {\n AskBackendBaseParams,\n AskBackendGetOrgClustersParams,\n AskBackendOrgParams,\n AskBackendRunQueryParams,\n AskBackendSearchOrgsParams,\n OrgClusterRow,\n OrgDetail,\n OrgMemberInfo,\n OrgOwnerInfo,\n OrgSummary,\n} from './services/ask-backend/ask-backend.service.js'\n// ask-backend service\nexport { AskBackendService } from './services/ask-backend/ask-backend.service.js'\nexport type {\n AddAuditRequest,\n GetAuditRequest,\n GetClusterAuditRequest,\n} from './services/audit-logger/audit-logger.service.js'\n// audit-logger services\nexport { AuditLoggerService } from './services/audit-logger/audit-logger.service.js'\nexport type {\n AddSystemAuditRequest,\n GetSystemAuditRequest,\n} from './services/audit-logger/audit-logger.system.service.js'\nexport { SystemAuditLoggerService } from './services/audit-logger/audit-logger.system.service.js'\nexport type { Auth0Request } from './services/auth0/auth0.service.js'\n// auth0 services\nexport { Auth0Service } from './services/auth0/auth0.service.js'\nexport type { CommBridgeClientRequest } from './services/comm-bridge/comm-bridge.service.js'\n// comm-bridge services\nexport { CommBridgeService } from './services/comm-bridge/comm-bridge.service.js'\nexport type {\n AdminClusterAutoUpdateRequest,\n AdminClusterDetailsDto,\n AdminClusterNonSpotNodesRequest,\n AdminClusterOptionalTelemetryRequest,\n CreateLiteLLMSecretsForOrgRequest,\n GetAdminClusterDetailsRequest,\n GetClusterCrdStateRequest,\n GetClusterRequest,\n GetSpecExplainerRequest,\n RepointLlmSecretsForOrgRequest,\n RepointLlmSecretsForOrgResponse,\n RotateLiteLLMKeySecretsForOrgRequest,\n RotateLiteLLMKeySecretsForOrgResponse,\n SignalSignupRequest,\n SpecExplainerFieldAnnotation,\n SpecExplainerFieldSource,\n SpecExplainerResponse,\n UpdateClusterMetricsStartDateRequest,\n UpdateClusterToNewPlanTypeRequest,\n} from './services/console/console.admin.service.js'\n// console services\nexport { ConsoleAdminService } from './services/console/console.admin.service.js'\nexport {\n type CheckConsoleAlertParams,\n type CheckConsoleAlertResponse,\n ConsoleAlertsService,\n type CreateConsoleAlertParams,\n type DeleteConsoleAlertParams,\n type GetConsoleAlertsParams,\n type UpdateConsoleAlertParams,\n} from './services/console/console.alerts.service.js'\nexport {\n type ConsoleApiClientDto,\n ConsoleApiClientsService,\n type CreateConsoleApiClientParams,\n type CreateConsoleApiClientResponse,\n type DeleteConsoleApiClientParams,\n type GetConsoleApiClientsParams,\n type UpdateConsoleApiClientParams,\n} from './services/console/console.api-clients.service.js'\nexport {\n ConsoleBackupScheduleService,\n type GetConsoleBackupScheduleParams,\n type UpdateConsoleBackupScheduleParams,\n} from './services/console/console.backup-schedule.service.js'\nexport {\n ConsoleByokScriptsService,\n type GetConsoleByokKmsPolicyParams,\n type GetConsoleByokScriptParams,\n} from './services/console/console.byok-scripts.service.js'\nexport {\n type ActivateConsoleByomMonitoringParams,\n type ByomMonitoringClientsResponseDto,\n type ByomMonitoringClientWithPasswordDto,\n ConsoleByomMonitoringService,\n type CreateConsoleByomMonitoringClientParams,\n type DeactivateConsoleByomMonitoringParams,\n type DeleteConsoleByomMonitoringClientParams,\n type GetConsoleByomMonitoringClientsParams,\n type RotateConsoleByomMonitoringClientPasswordParams,\n} from './services/console/console.byom-monitoring.service.js'\nexport {\n ChannelService,\n type ConsoleChannelDto,\n type CreateConsoleChannelParams,\n type DeleteConsoleChannelParams,\n type GetConsoleChannelsParams,\n type UpdateConsoleChannelParams,\n} from './services/console/console.channel.service.js'\nexport type {\n ConsoleClusterCarryOverResult,\n CreateConsoleClusterRequest,\n CreateConsoleClusterResponse,\n DeleteConsoleClusterRequest,\n DeleteExternalIdpRequest,\n DuplicateConsoleClusterRequest,\n DuplicateConsoleClusterResponse,\n FailoverConsoleClusterRequest,\n FailoverConsoleClusterResult,\n GetConsoleClusterRequest,\n GetConsoleClustersRequest,\n MoveClusterOwnerRequest,\n ProxyOrchestrationClusterRequest,\n SuspendConsoleClusterRequest,\n UpdateClusterRequest,\n UpdateExternalIdpSecretRequest,\n WakeConsoleClusterRequest,\n} from './services/console/console.cluster.service.js'\nexport { ConsoleClusterService } from './services/console/console.cluster.service.js'\nexport type {\n GetClusterParametersV2Request,\n GetClusterV2Request,\n ListClustersV2Request,\n ListOrgClustersV2Request,\n} from './services/console/console.cluster.v2.service.js'\nexport { ConsoleClusterV2Service } from './services/console/console.cluster.v2.service.js'\nexport {\n type ConsoleClusterClientDto,\n ConsoleClusterClientsService,\n type CreateConsoleClusterClientParams,\n type CreateConsoleClusterClientResponse,\n type DeleteConsoleClusterClientParams,\n type GetConsoleClusterClientsParams,\n type RotateConsoleClusterClientSecretParams,\n type RotateConsoleClusterClientSecretResponse,\n type UpdateConsoleClusterClientParams,\n} from './services/console/console.cluster-clients.service.js'\nexport {\n type ConsoleClusterCreationParametersChannel,\n type ConsoleClusterCreationParametersClusterPlanType,\n type ConsoleClusterCreationParametersGeneration,\n type ConsoleClusterCreationParametersRegion,\n type ConsoleClusterCreationParametersRegionBackup,\n type ConsoleClusterCreationParametersRegionBackupRegion,\n type ConsoleClusterCreationParametersResponse,\n ConsoleClusterParametersService,\n type GetConsoleClusterCreationParametersRequest,\n} from './services/console/console.cluster-parameters.service.js'\nexport { ConsoleClusterBulkOperationService } from './services/console/console.clusterBulkOperation.service.js'\nexport { ClusterPlanModificationService } from './services/console/console.clusterplan.modification.service.js'\nexport type {\n CreateClusterPlanParams,\n DeleteClusterPlanParams,\n UpdateMigratableFromParams,\n UpdatePerformanceExpectationsParams,\n} from './services/console/console.clusterplan.service.js'\nexport { ClusterPlanService } from './services/console/console.clusterplan.service.js'\nexport {\n ClusterPlanTypeService,\n type CreateClusterPlanTypeParams,\n type DeleteClusterPlanTypeParams,\n type GetClusterPlanTypesParams,\n type SetClusterPlanTypeLimitsParams,\n type UpdateClusterPlanTypeParams,\n} from './services/console/console.clusterplantype.service.js'\nexport {\n ConsoleConnectorSecretsService,\n type DeleteConsoleConnectorSecretParams,\n type GetConsoleConnectorSecretsParams,\n type PutConsoleConnectorSecretParams,\n} from './services/console/console.connector-secrets.service.js'\nexport type {\n ConsoleCustomMetricsRequest,\n ConsoleCustomMetricsResponse,\n} from './services/console/console.custommetrics.service.js'\nexport { ConsoleCustomMetricsService } from './services/console/console.custommetrics.service.js'\nexport {\n ConsoleHotBackupsService,\n type CreateConsoleHotBackupParams,\n type CreateConsoleInternalBackupParams,\n type DeleteConsoleHotBackupParams,\n type DeleteConsoleInternalBackupParams,\n type GetConsoleHotBackupsParams,\n type GetConsoleInternalBackupsParams,\n type RestoreConsoleHotBackupParams,\n type RetryConsoleHotBackupParams,\n} from './services/console/console.hotbackups.service.js'\nexport {\n ConsoleIpWhitelistService,\n type IpWhitelistEntryDto,\n type UpdateConsoleIpWhitelistParams,\n} from './services/console/console.ip-whitelist.service.js'\nexport type {\n SaaSJobsBaseParams,\n SaaSJobsErrorsParams,\n SaaSJobsGlobalParams,\n SaaSJobsOverviewParams,\n SaaSJobsTimeSeriesParams,\n SaaSJobsWorkersParams,\n} from './services/console/console.jobs.saas.service.js'\nexport { SaaSJobsService } from './services/console/console.jobs.saas.service.js'\nexport {\n type GetK8sContextsParams,\n K8sContextService,\n} from './services/console/console.k8scontext.service.js'\nexport type {\n VerifyApiClientCredentialsResponse,\n VerifyClientCredentialsRequest,\n VerifyZeebeClientCredentialsResponse,\n} from './services/console/console.m2m.service.js'\nexport { ConsoleM2MService } from './services/console/console.m2m.service.js'\nexport {\n type ActivateSecureConnectivityParams,\n ConsoleSecureConnectivityService,\n type DeactivateSecureConnectivityParams,\n type GetSecureConnectivityStatusParams,\n type SecureConnectivityStatusDto,\n type UpdateSecureConnectivityParams,\n} from './services/console/console.secure-connectivity.service.js'\nexport {\n type GetStorybookConfigParams,\n StorybookConfigService,\n} from './services/console/console.storybook-config.service.js'\nexport { ConsoleValueMetricsService } from './services/console/console.valuemetrics.service.js'\n\nexport {\n type CreateGenerationParams,\n type DeleteGenerationParams,\n GenerationService,\n type GenerationVersionsInput,\n type ListGenerationsParams,\n type SetGenerationArchivedParams,\n type SetGenerationBespokeParams,\n type UpdateGenerationParams,\n} from './services/console/generation.service.js'\n// control-backend \u2014 the four-eyes approval surface\nexport type {\n ApprovalIdRequest,\n ApprovalPageDto,\n CreateApprovalRequest,\n ExtendTrialPayloadDto,\n ListApprovalsRequest,\n RejectApprovalRequest,\n SendToExpiredTrialPayloadDto,\n} from './services/control/control.approvals.service.js'\nexport { ControlApprovalsService } from './services/control/control.approvals.service.js'\n// external services (CORS-enabled webapp navigation surface)\nexport type {\n GetFeatureFlagsParams,\n UpdateUserThemeParams,\n UserThemePreference,\n} from './services/external/external.accounts.service.js'\nexport { ExternalAccountsService } from './services/external/external.accounts.service.js'\nexport type {\n GetOrgClustersParams,\n StreamOrgEventsParams,\n} from './services/external/external.console.service.js'\nexport { ExternalConsoleService } from './services/external/external.console.service.js'\nexport type {\n DismissAllNotificationsParams,\n GetUserNotificationsParams,\n MarkManyNotificationsReadParams,\n SetNotificationStateParams,\n StreamUserNotificationsParams,\n TrackNotificationEventParams,\n UserNotificationAnalyticsEvent,\n} from './services/external/external.notifications.service.js'\nexport { ExternalNotificationsService } from './services/external/external.notifications.service.js'\nexport type {\n GithubContentItem,\n GithubGetRawFileRequest,\n GithubListDirectoryContentRequest,\n GithubListMajorMinorReleasesRequest,\n GithubListReleasesRequest,\n GithubRelease,\n} from './services/github/github.service.js'\n// github services\nexport { GithubService } from './services/github/github.service.js'\nexport type {\n GleanSearchRequest,\n GleanSearchResult,\n} from './services/glean/glean.service.js'\n// glean services\nexport { GleanService } from './services/glean/glean.service.js'\nexport type {\n HelpCenterCardResponse,\n HelpCenterConfigResponse,\n HelpCenterGetCardsRequest,\n HelpCenterGetConfigRequest,\n} from './services/helpcenter/helpcenter.service.js'\n// helpcenter services\nexport { HelpCenterService } from './services/helpcenter/helpcenter.service.js'\nexport type {\n HibobEmployee,\n HibobGetAllUsersRequest,\n HibobReportsTo,\n HibobSearchRequest,\n HibobSearchResponse,\n} from './services/hibob/hibob.service.js'\n// hibob services\nexport {\n DEPARTMENT as HIBOB_DEPARTMENT_PATH,\n DIVISION as HIBOB_DIVISION_PATH,\n DIVISION_ID as HIBOB_DIVISION_ID,\n HibobService,\n SUB_DIVISION as HIBOB_SUB_DIVISION_PATH,\n SUB_DIVISION_ID as HIBOB_SUB_DIVISION_ID,\n} from './services/hibob/hibob.service.js'\nexport type {\n HubspotChangeContactPropertiesRequest,\n HubspotSubmission,\n HubspotSubmitRequest,\n HubspotTokenRequest,\n HubspotTokenResponse,\n} from './services/hubspot/hubspot.service.js'\n// hubspot services\nexport { HubspotService } from './services/hubspot/hubspot.service.js'\nexport type {\n IncidentIoGetOpenIncidentsRequest,\n OpenIncident,\n} from './services/incident-io/incident-io.service.js'\n// incident.io services\nexport { IncidentIoService } from './services/incident-io/incident-io.service.js'\n// litellm services\nexport type {\n BlockKeyRequest,\n BlockKeyResponse,\n CreateTeamRequest,\n CreateTeamResponse,\n DeleteKeyRequest,\n DeleteKeyResponse,\n DeleteTeamRequest,\n DeleteTeamResponse,\n GenerateKeyRequest,\n GenerateKeyResponse,\n GetKeyInfoRequest,\n GetKeyInfoResponse,\n RegenerateKeyRequest,\n RegenerateKeyResponse,\n UnblockKeyRequest,\n UnblockKeyResponse,\n UpdateKeyBudgetRequest,\n UpdateKeyBudgetResponse,\n UpdateTeamBudgetRequest,\n UpdateTeamBudgetResponse,\n} from './services/litellm/litellm.service.js'\nexport { LiteLLMService } from './services/litellm/litellm.service.js'\nexport type { LoginPayload } from './services/login/login.service.js'\n// login services\nexport { LoginService } from './services/login/login.service.js'\nexport type { MixpanelSetGroupPropertiesOnceRequest } from './services/mixpanel/mixpanel.service.js'\n// mixpanel services\nexport { MixpanelService } from './services/mixpanel/mixpanel.service.js'\n// notifications services\nexport type {\n CreateGlobalNotificationParams,\n CreateNotificationBySalesPlanParams,\n DeleteGlobalNotificationParams,\n UpdateNotificationParams,\n} from './services/notifications/notifications.service.js'\nexport { NotificationsService } from './services/notifications/notifications.service.js'\n// openrouter services\nexport type {\n CreateOpenRouterKeyRequest,\n CreateOpenRouterKeyResponse,\n DeleteOpenRouterKeyRequest,\n DeleteOpenRouterKeyResponse,\n GetOpenRouterKeyRequest,\n GetOpenRouterKeyResponse,\n ListOpenRouterKeysRequest,\n ListOpenRouterKeysResponse,\n OpenRouterKeyData,\n UpdateOpenRouterKeyRequest,\n UpdateOpenRouterKeyResponse,\n} from './services/openrouter/openrouter.service.js'\nexport {\n OPENROUTER_KEY_PAGE_SIZE,\n OpenRouterService,\n} from './services/openrouter/openrouter.service.js'\nexport type {\n IncomingWebhookData,\n IncomingWebhookRequest,\n SlackChatPostMessageParams,\n SlackChatPostMessageResponse,\n SlackConversationsInviteParams,\n SlackConversationsInviteResponse,\n SlackLookupUserByEmailParams,\n SlackLookupUserByEmailResponse,\n} from './services/slack/slack.service.js'\n// slack services\nexport { SlackService } from './services/slack/slack.service.js'\nexport type {\n SendBlockKitMessageParams,\n SendBlockKitMessageResponse,\n SlackBlock,\n} from './services/slack/slack-blockkit.service.js'\nexport { SlackBlockKitService } from './services/slack/slack-blockkit.service.js'\nexport type { TelemetryPostRequest } from './services/telemetry/telemetry.service.js'\n// telemetry services\nexport { TelemetryService } from './services/telemetry/telemetry.service.js'\nexport type {\n ThanosQueryRequest,\n ThanosQueryResponse,\n ThanosQueryResult,\n} from './services/thanos/thanos.service.js'\n// thanos services\nexport {\n ThanosApiEndpoint,\n ThanosService,\n} from './services/thanos/thanos.service.js'\nexport type {\n JwksRequest,\n JwksResponse,\n} from './services/token-issuer/token-issuer.jwks.service.js'\n// token-issuer services\nexport { TokenIssuerJwksService } from './services/token-issuer/token-issuer.jwks.service.js'\nexport type {\n WordpressGetCardsRequest,\n WordpressGetHelpCenterConfigRequest,\n WordpressGetSurveyConfigRequest,\n} from './services/wordpress/wordpress.service.js'\n// wordpress services\nexport { WordpressService } from './services/wordpress/wordpress.service.js'\n\n// types\nexport type {\n RequestBaseCustomMetrics,\n RequestBaseCustomMetricsDetailsType,\n RequestBaseMethodType,\n RequestBaseParams,\n RequestBaseParamsAuth,\n RequestBaseParamsConfig,\n RequestBaseParamsEnvOverride,\n RequestBaseParamsLogger,\n RequestBaseServiceContext,\n Stage,\n} from './types/general.types.js'\nexport type { RequestPayload, Response } from './utils/api.js'\n// utils\nexport { request } from './utils/api.js'\nexport { CustomMetricsCCMA } from './utils/ccma-metrics.js'\nexport type { ServiceAudience, ServiceName } from './utils/environments.js'\nexport { HttpError } from './utils/errors.js'\nexport type {\n SseConnection,\n SseConnectionOptions,\n SseConnectionState,\n SseMessage,\n} from './utils/sse.js'\nexport { connectSse } from './utils/sse.js'\n\nexport {\n correlationHeaders,\n generateTraceparent,\n getSessionId,\n sessionHeaders,\n setTraceparentProvider,\n traceparentHeaders,\n} from './utils/traceparent.js'\n"],
|
|
5
|
-
"mappings": "AAWA,SAAS,iCAAiC;AAM1C,SAAS,yBAAyB;
|
|
4
|
+
"sourcesContent": ["/*\n * Copyright Camunda Services GmbH and/or licensed to Camunda Services GmbH\n * under one or more contributor license agreements. Licensed under a commercial license.\n * You may not use this file except in compliance with the commercial license.\n */\n\nexport type {\n GetDataExportRequest,\n GetDataExportResponse,\n} from './services/accounts/accounts.data-export.service.js'\n// accounts services\nexport { AccountsDataExportService } from './services/accounts/accounts.data-export.service.js'\nexport type { GetValueMetricsPerDayParams } from './services/accounts/accounts.valuemetrics.service.js'\nexport type {\n DownloadDatabaseDumpParams,\n TriggerValueMetricsCronParams,\n} from './services/accounts/admin-tools.service.js'\nexport { AdminToolsService } from './services/accounts/admin-tools.service.js'\nexport type {\n ExtendTrialThroughApprovalRequest,\n SendToExpiredTrialThroughApprovalRequest,\n} from './services/accounts/approvals.m2m.service.js'\nexport { AccountsApprovalsM2MService } from './services/accounts/approvals.m2m.service.js'\nexport { AccountsBotService } from './services/accounts/bot.service.js'\nexport type {\n BugReportRequest,\n BugReportRequestBody,\n BugReportResponse,\n} from './services/accounts/bug-report.service.js'\nexport { BugReportService } from './services/accounts/bug-report.service.js'\nexport type {\n CancelMatchParams,\n CancelMatchResponse,\n GameInfo,\n GetGameInfoParams,\n GetHighscoresParams,\n GetHighscoresResponse,\n GetMatchStateParams,\n GetOrganizationalGroupsParams,\n GetOrganizationalGroupsResponse,\n GetRunningMatchesParams,\n GetRunningMatchesResponse,\n HighscoreEntry,\n InitiateMatchParams,\n InitiateMatchResponse,\n JoinMatchParams,\n JoinMatchResponse,\n Match,\n Player,\n PlayerAnswer,\n Question,\n QuestionChoice,\n SlackProfile,\n StartMatchParams,\n StartMatchResponse,\n SubmitAnswerParams,\n SubmitAnswerResponse,\n} from './services/accounts/challenge.service.js'\nexport { ChallengeService } from './services/accounts/challenge.service.js'\nexport type {\n AzureConnectionPayload,\n Connection,\n ConnectionPayload,\n ConnectionUserDto,\n ConnectionWriteStrategy,\n CreateConnectionParams,\n DeleteConnectionParams,\n GetConnectionParams,\n GetConnectionsParams,\n SamlConnectionPayload,\n UpdateConnectionParams,\n} from './services/accounts/connections.service.js'\nexport { ConnectionsService } from './services/accounts/connections.service.js'\nexport type { GetEngineeringOperationsDashboardRequest } from './services/accounts/dashboards.service.js'\nexport { DashboardsService } from './services/accounts/dashboards.service.js'\nexport type {\n CreateEarlyAccessFeatureParams,\n DeleteEarlyAccessFeatureParams,\n EarlyAccessFeatureActivationDto,\n EarlyAccessFeatureDto,\n EarlyAccessFeatureOrgDto,\n EarlyAccessFeatureSalesPlanConfigDto,\n GetEarlyAccessFeatureOrgsParams,\n GetEarlyAccessFeaturesForOrgParams,\n SetEarlyAccessFeatureActivationParams,\n UpdateEarlyAccessFeatureParams,\n} from './services/accounts/early-access-features.service.js'\nexport { EarlyAccessFeaturesService } from './services/accounts/early-access-features.service.js'\nexport { GenericCacheService } from './services/accounts/genericCache.service.js'\nexport type {\n GetActiveOrgsRequest,\n GetActiveOrgsResponse,\n GetBackendChangeEventsRequest,\n GetClusterActivityRequest,\n GetClusterCapacityRequest,\n GetClusterDiskUsageParams,\n GetClusterDiskUsageRequest,\n GetClusterHostingCostRequest,\n GetClusterHostingCostResponse,\n GetLlmUsageRequest,\n GetTenantUsageRequest,\n GetUsageMetricsRequest,\n GetUsageMetricsResponse,\n LlmUsageEntry,\n} from './services/accounts/hdp.service.js'\nexport { HdpService } from './services/accounts/hdp.service.js'\nexport {\n type InviteDto,\n InvitesService,\n type SearchInvitesRequest,\n} from './services/accounts/invites.service.js'\nexport type {\n OffboardCamundiRequest,\n OffboardCamundiResponse,\n} from './services/accounts/offboarding.service.js'\nexport { OffboardingService } from './services/accounts/offboarding.service.js'\nexport type {\n AssignNewOwnerParams,\n AssignNewOwnerResponse,\n CancelOrganizationInviteParams,\n GetOrganizationMembersParams,\n LeaveOrganizationParams,\n OrganizationMemberDto,\n OrganizationMemberInviteDto,\n RemoveUserFromOrganizationParams,\n ResendOrganizationInviteParams,\n UpdateOrganizationMemberRolesParams,\n} from './services/accounts/organization-members.service.js'\nexport { OrganizationMembersService } from './services/accounts/organization-members.service.js'\nexport type {\n AutomatedEnterpriseOnboardingRequest,\n AutomatedEnterpriseOnboardingResult,\n AwsOnlyRequest,\n BlockLiteLLMParams,\n ChangeSalesPlanRequest,\n CheckUserExistsForInviteRequest,\n CheckUserExistsForInviteResponse,\n ConvertTrialToInNegotiationRequest,\n DeleteOrganizationRequest,\n EnterpriseDevOnlyRequest,\n ExtendTrialRequest,\n GetLLMUsageInfoParams,\n GetQueuedOperationsParams,\n GetSubscriptionDetailsParams,\n GetSubscriptionDetailsResponse,\n GetSubscriptionItemsParams,\n IncreaseLLMBudgetParams,\n IncreaseLLMBudgetResponse,\n LicensingModelRequest,\n LLMUsageInfoResponse,\n OnboardLiteLLMParams,\n OrgClusterDefaultsRequest,\n OrgClusterDefaultsResponse,\n OrgInfo,\n QueuedOperationDto,\n RenameOrganizationRequest,\n ResetTrialExtensionsRequest,\n SelfExtendTrialRequest,\n SendInviteRequest,\n SetBetaTermsAcceptedRequest,\n SetLimitRequest,\n UnblockLiteLLMParams,\n UpdateOrgClusterDefaultsRequest,\n UpdateSuppressDropDisksRequest,\n UpdateSuppressDropDisksResponse,\n} from './services/accounts/orgs.service.js'\nexport { OrgsService } from './services/accounts/orgs.service.js'\nexport type {\n GetControlSessionRequest,\n GetOrganizationV2Request,\n ListOrganizationsV2Request,\n ListOrgMembersV2Request,\n} from './services/accounts/orgs.v2.service.js'\nexport { OrgsV2Service } from './services/accounts/orgs.v2.service.js'\nexport type {\n CreatePdfWatermarkProjectParams,\n PdfWatermarkAuditEntryDto,\n PdfWatermarkPasswordParams,\n PdfWatermarkProjectDto,\n PdfWatermarkProjectIdParams,\n RecordPdfWatermarkAuditParams,\n SetPdfWatermarkPdfParams,\n UpdatePdfWatermarkProjectParams,\n} from './services/accounts/pdf-watermark.service.js'\nexport { PdfWatermarkService } from './services/accounts/pdf-watermark.service.js'\nexport type {\n FleetQueuedOperationDto,\n ListQueuedOperationsParams,\n QueuedOperationStatus,\n QueuedOperationsResponse,\n QueueHealthDto,\n} from './services/accounts/queued-operations.service.js'\nexport { QueuedOperationsService } from './services/accounts/queued-operations.service.js'\nexport type {\n GetReleaseTrainParams,\n ReleaseTrainInfoDto,\n} from './services/accounts/release-train.service.js'\nexport {\n KNOWN_RELEASE_TRAINS,\n ReleaseTrainService,\n} from './services/accounts/release-train.service.js'\nexport type {\n CreateSalesPlanRequest,\n DeleteSalesPlanRequest,\n GetSalesPlansRequest,\n UpdateSalesPlanMetadataRequest,\n UpdateSalesPlanRequest,\n UpdateSalesPlanReservationsRequest,\n} from './services/accounts/salesplan.service.js'\nexport { SalesPlanService } from './services/accounts/salesplan.service.js'\nexport { SpamDetectionService } from './services/accounts/spam-detection.service.js'\nexport type { GetStatsParams } from './services/accounts/stats.service.js'\nexport { StatsService } from './services/accounts/stats.service.js'\nexport type { PostTracesRequest } from './services/accounts/telemetry-ingest.service.js'\nexport { TelemetryIngestService } from './services/accounts/telemetry-ingest.service.js'\nexport type {\n InvalidateTokenByClientParams,\n InvalidateTokenParams,\n} from './services/accounts/token-issuer.service.js'\nexport { TokenIssuerService } from './services/accounts/token-issuer.service.js'\nexport type {\n GetOrgTrialDetailParams,\n GetTrialManagementOrgsParams,\n GetTrialManagementParams,\n} from './services/accounts/trial-management.service.js'\nexport { TrialManagementService } from './services/accounts/trial-management.service.js'\nexport type {\n CreateUsageAlertParams,\n GetUsageAlertsParams,\n PatchUsageAlertParams,\n} from './services/accounts/usage-alerts.service.js'\nexport { UsageAlertsService } from './services/accounts/usage-alerts.service.js'\nexport type {\n AddUserToOrganizationRequest,\n ChangeUserEmailRequest,\n ChangeUserNameRequest,\n DeleteMeRequest,\n RemoveStaleOrganizationRequest,\n RemoveUserFromOrganizationRequest,\n SearchParams,\n SetDefaultOrgRequest,\n SimpleSearchParams,\n UpdateUserRoleRequest,\n UserIdRequest,\n} from './services/accounts/users.service.js'\nexport { UsersService } from './services/accounts/users.service.js'\nexport type {\n CreateAlertSubscription,\n DeleteAlertSubscription,\n GetAlertSubscriptions,\n UpdateAlertSubscription,\n} from './services/alerts/alerts.service.js'\n// alerts services\nexport { AlertsService } from './services/alerts/alerts.service.js'\nexport type {\n AddAnalyticBridgeRequest,\n AddClusterAnalyticBridgeRequest,\n} from './services/analytic-bridge/analytic-bridge.service.js'\n// analytic-bridge services\nexport { AnalyticBridgeService } from './services/analytic-bridge/analytic-bridge.service.js'\nexport type {\n AskBackendBaseParams,\n AskBackendGetOrgClustersParams,\n AskBackendOrgParams,\n AskBackendRunQueryParams,\n AskBackendSearchOrgsParams,\n OrgClusterRow,\n OrgDetail,\n OrgMemberInfo,\n OrgOwnerInfo,\n OrgSummary,\n} from './services/ask-backend/ask-backend.service.js'\n// ask-backend service\nexport { AskBackendService } from './services/ask-backend/ask-backend.service.js'\nexport type {\n AddAuditRequest,\n GetAuditRequest,\n GetClusterAuditRequest,\n} from './services/audit-logger/audit-logger.service.js'\n// audit-logger services\nexport { AuditLoggerService } from './services/audit-logger/audit-logger.service.js'\nexport type {\n AddSystemAuditRequest,\n GetSystemAuditRequest,\n} from './services/audit-logger/audit-logger.system.service.js'\nexport { SystemAuditLoggerService } from './services/audit-logger/audit-logger.system.service.js'\nexport type { Auth0Request } from './services/auth0/auth0.service.js'\n// auth0 services\nexport { Auth0Service } from './services/auth0/auth0.service.js'\nexport type { CommBridgeClientRequest } from './services/comm-bridge/comm-bridge.service.js'\n// comm-bridge services\nexport { CommBridgeService } from './services/comm-bridge/comm-bridge.service.js'\nexport type {\n AdminClusterAutoUpdateRequest,\n AdminClusterDetailsDto,\n AdminClusterNonSpotNodesRequest,\n AdminClusterOptionalTelemetryRequest,\n CreateLiteLLMSecretsForOrgRequest,\n GetAdminClusterDetailsRequest,\n GetClusterCrdStateRequest,\n GetClusterRequest,\n GetSpecExplainerRequest,\n RemoveLlmSecretsForOrgRequest,\n RemoveLlmSecretsForOrgResponse,\n RepointLlmSecretsForOrgRequest,\n RepointLlmSecretsForOrgResponse,\n RotateLiteLLMKeySecretsForOrgRequest,\n RotateLiteLLMKeySecretsForOrgResponse,\n SignalSignupRequest,\n SpecExplainerFieldAnnotation,\n SpecExplainerFieldSource,\n SpecExplainerResponse,\n UpdateClusterMetricsStartDateRequest,\n UpdateClusterToNewPlanTypeRequest,\n} from './services/console/console.admin.service.js'\n// console services\nexport { ConsoleAdminService } from './services/console/console.admin.service.js'\nexport {\n type CheckConsoleAlertParams,\n type CheckConsoleAlertResponse,\n ConsoleAlertsService,\n type CreateConsoleAlertParams,\n type DeleteConsoleAlertParams,\n type GetConsoleAlertsParams,\n type UpdateConsoleAlertParams,\n} from './services/console/console.alerts.service.js'\nexport {\n type ConsoleApiClientDto,\n ConsoleApiClientsService,\n type CreateConsoleApiClientParams,\n type CreateConsoleApiClientResponse,\n type DeleteConsoleApiClientParams,\n type GetConsoleApiClientsParams,\n type UpdateConsoleApiClientParams,\n} from './services/console/console.api-clients.service.js'\nexport type {\n AnnounceClusterBulkPlanUpdateRequest,\n MoveClusterOwnerThroughApprovalRequest,\n RunClusterBulkStepThroughApprovalRequest,\n} from './services/console/console.approvals.m2m.service.js'\nexport { ConsoleApprovalsM2MService } from './services/console/console.approvals.m2m.service.js'\nexport {\n ConsoleBackupScheduleService,\n type GetConsoleBackupScheduleParams,\n type UpdateConsoleBackupScheduleParams,\n} from './services/console/console.backup-schedule.service.js'\nexport {\n ConsoleByokScriptsService,\n type GetConsoleByokKmsPolicyParams,\n type GetConsoleByokScriptParams,\n} from './services/console/console.byok-scripts.service.js'\nexport {\n type ActivateConsoleByomMonitoringParams,\n type ByomMonitoringClientsResponseDto,\n type ByomMonitoringClientWithPasswordDto,\n ConsoleByomMonitoringService,\n type CreateConsoleByomMonitoringClientParams,\n type DeactivateConsoleByomMonitoringParams,\n type DeleteConsoleByomMonitoringClientParams,\n type GetConsoleByomMonitoringClientsParams,\n type RotateConsoleByomMonitoringClientPasswordParams,\n} from './services/console/console.byom-monitoring.service.js'\nexport {\n ChannelService,\n type ConsoleChannelDto,\n type CreateConsoleChannelParams,\n type DeleteConsoleChannelParams,\n type GetConsoleChannelsParams,\n type UpdateConsoleChannelParams,\n} from './services/console/console.channel.service.js'\nexport type {\n ConsoleClusterCarryOverResult,\n CreateConsoleClusterRequest,\n CreateConsoleClusterResponse,\n DeleteConsoleClusterRequest,\n DeleteExternalIdpRequest,\n DuplicateConsoleClusterRequest,\n DuplicateConsoleClusterResponse,\n FailoverConsoleClusterRequest,\n FailoverConsoleClusterResult,\n GetAdminClusterRequest,\n GetConsoleClusterRequest,\n GetConsoleClustersRequest,\n MoveClusterOwnerRequest,\n ProxyOrchestrationClusterRequest,\n SuspendConsoleClusterRequest,\n UpdateClusterRequest,\n UpdateExternalIdpSecretRequest,\n WakeConsoleClusterRequest,\n} from './services/console/console.cluster.service.js'\nexport { ConsoleClusterService } from './services/console/console.cluster.service.js'\nexport type {\n GetClusterParametersV2Request,\n GetClusterV2Request,\n ListClustersV2Request,\n ListOrgClustersV2Request,\n} from './services/console/console.cluster.v2.service.js'\nexport { ConsoleClusterV2Service } from './services/console/console.cluster.v2.service.js'\nexport {\n type ConsoleClusterClientDto,\n ConsoleClusterClientsService,\n type CreateConsoleClusterClientParams,\n type CreateConsoleClusterClientResponse,\n type DeleteConsoleClusterClientParams,\n type GetConsoleClusterClientsParams,\n type RotateConsoleClusterClientSecretParams,\n type RotateConsoleClusterClientSecretResponse,\n type UpdateConsoleClusterClientParams,\n} from './services/console/console.cluster-clients.service.js'\nexport {\n type ConsoleClusterCreationParametersChannel,\n type ConsoleClusterCreationParametersClusterPlanType,\n type ConsoleClusterCreationParametersGeneration,\n type ConsoleClusterCreationParametersRegion,\n type ConsoleClusterCreationParametersRegionBackup,\n type ConsoleClusterCreationParametersRegionBackupRegion,\n type ConsoleClusterCreationParametersResponse,\n ConsoleClusterParametersService,\n type GetConsoleClusterCreationParametersRequest,\n} from './services/console/console.cluster-parameters.service.js'\nexport { ConsoleClusterBulkOperationService } from './services/console/console.clusterBulkOperation.service.js'\nexport { ClusterPlanModificationService } from './services/console/console.clusterplan.modification.service.js'\nexport type {\n CreateClusterPlanParams,\n DeleteClusterPlanParams,\n UpdateMigratableFromParams,\n UpdatePerformanceExpectationsParams,\n} from './services/console/console.clusterplan.service.js'\nexport { ClusterPlanService } from './services/console/console.clusterplan.service.js'\nexport {\n ClusterPlanTypeService,\n type CreateClusterPlanTypeParams,\n type DeleteClusterPlanTypeParams,\n type GetClusterPlanTypesParams,\n type SetClusterPlanTypeLimitsParams,\n type UpdateClusterPlanTypeParams,\n} from './services/console/console.clusterplantype.service.js'\nexport {\n ConsoleConnectorSecretsService,\n type DeleteConsoleConnectorSecretParams,\n type GetConsoleConnectorSecretsParams,\n type PutConsoleConnectorSecretParams,\n} from './services/console/console.connector-secrets.service.js'\nexport type {\n ConsoleCustomMetricsRequest,\n ConsoleCustomMetricsResponse,\n} from './services/console/console.custommetrics.service.js'\nexport { ConsoleCustomMetricsService } from './services/console/console.custommetrics.service.js'\nexport {\n ConsoleHotBackupsService,\n type CreateConsoleHotBackupParams,\n type CreateConsoleInternalBackupParams,\n type DeleteConsoleHotBackupParams,\n type DeleteConsoleInternalBackupParams,\n type GetConsoleHotBackupsParams,\n type GetConsoleInternalBackupsParams,\n type RestoreConsoleHotBackupParams,\n type RetryConsoleHotBackupParams,\n} from './services/console/console.hotbackups.service.js'\nexport {\n ConsoleIpWhitelistService,\n type IpWhitelistEntryDto,\n type UpdateConsoleIpWhitelistParams,\n} from './services/console/console.ip-whitelist.service.js'\nexport type {\n SaaSJobsBaseParams,\n SaaSJobsErrorsParams,\n SaaSJobsGlobalParams,\n SaaSJobsOverviewParams,\n SaaSJobsTimeSeriesParams,\n SaaSJobsWorkersParams,\n} from './services/console/console.jobs.saas.service.js'\nexport { SaaSJobsService } from './services/console/console.jobs.saas.service.js'\nexport {\n type GetK8sContextsParams,\n K8sContextService,\n} from './services/console/console.k8scontext.service.js'\nexport type {\n VerifyApiClientCredentialsResponse,\n VerifyClientCredentialsRequest,\n VerifyZeebeClientCredentialsResponse,\n} from './services/console/console.m2m.service.js'\nexport { ConsoleM2MService } from './services/console/console.m2m.service.js'\nexport {\n type ActivateSecureConnectivityParams,\n ConsoleSecureConnectivityService,\n type DeactivateSecureConnectivityParams,\n type GetSecureConnectivityStatusParams,\n type SecureConnectivityStatusDto,\n type UpdateSecureConnectivityParams,\n} from './services/console/console.secure-connectivity.service.js'\nexport {\n type GetStorybookConfigParams,\n StorybookConfigService,\n} from './services/console/console.storybook-config.service.js'\nexport { ConsoleValueMetricsService } from './services/console/console.valuemetrics.service.js'\n\nexport {\n type CreateGenerationParams,\n type DeleteGenerationParams,\n GenerationService,\n type GenerationVersionsInput,\n type ListGenerationsParams,\n type SetGenerationArchivedParams,\n type SetGenerationBespokeParams,\n type UpdateGenerationParams,\n} from './services/console/generation.service.js'\nexport type {\n AddAnnotationNoteRequest,\n AddAnnotationTagRequest,\n AnnotationIdRequest,\n AnnotationPageDto,\n AnnotationPageInfoDto,\n AnnotationTagPageDto,\n AnnotationTargetDto,\n EditAnnotationNoteRequest,\n GetEntityAnnotationsRequest,\n ListAnnotationTagsRequest,\n LookupAnnotationsRequest,\n SearchAnnotationsRequest,\n} from './services/control/control.annotations.service.js'\nexport { ControlAnnotationsService } from './services/control/control.annotations.service.js'\n// control-backend \u2014 the four-eyes approval surface\nexport type {\n ApprovalFacetParams,\n ApprovalIdRequest,\n ApprovalPageDto,\n CountApprovalsRequest,\n CreateApprovalRequest,\n ExtendTrialPayloadDto,\n ListApprovalsRequest,\n MoveClusterOrgPayloadDto,\n RejectApprovalRequest,\n SendToExpiredTrialPayloadDto,\n WithdrawApprovalRequest,\n} from './services/control/control.approvals.service.js'\nexport { ControlApprovalsService } from './services/control/control.approvals.service.js'\nexport type { ControlWhoamiDto } from './services/control/control.platform.service.js'\nexport { ControlPlatformService } from './services/control/control.platform.service.js'\n// external services (CORS-enabled webapp navigation surface)\nexport type {\n GetFeatureFlagsParams,\n UpdateUserThemeParams,\n UserThemePreference,\n} from './services/external/external.accounts.service.js'\nexport { ExternalAccountsService } from './services/external/external.accounts.service.js'\nexport type {\n GetOrgClustersParams,\n StreamOrgEventsParams,\n} from './services/external/external.console.service.js'\nexport { ExternalConsoleService } from './services/external/external.console.service.js'\nexport type {\n DismissAllNotificationsParams,\n GetUserNotificationsParams,\n MarkManyNotificationsReadParams,\n SetNotificationStateParams,\n StreamUserNotificationsParams,\n TrackNotificationEventParams,\n UserNotificationAnalyticsEvent,\n} from './services/external/external.notifications.service.js'\nexport { ExternalNotificationsService } from './services/external/external.notifications.service.js'\nexport type {\n GithubContentItem,\n GithubGetRawFileRequest,\n GithubListDirectoryContentRequest,\n GithubListMajorMinorReleasesRequest,\n GithubListReleasesRequest,\n GithubRelease,\n} from './services/github/github.service.js'\n// github services\nexport { GithubService } from './services/github/github.service.js'\nexport type {\n GleanSearchRequest,\n GleanSearchResult,\n} from './services/glean/glean.service.js'\n// glean services\nexport { GleanService } from './services/glean/glean.service.js'\nexport type {\n HelpCenterCardResponse,\n HelpCenterConfigResponse,\n HelpCenterGetCardsRequest,\n HelpCenterGetConfigRequest,\n} from './services/helpcenter/helpcenter.service.js'\n// helpcenter services\nexport { HelpCenterService } from './services/helpcenter/helpcenter.service.js'\nexport type {\n HibobEmployee,\n HibobGetAllUsersRequest,\n HibobReportsTo,\n HibobSearchRequest,\n HibobSearchResponse,\n} from './services/hibob/hibob.service.js'\n// hibob services\nexport {\n DEPARTMENT as HIBOB_DEPARTMENT_PATH,\n DIVISION as HIBOB_DIVISION_PATH,\n DIVISION_ID as HIBOB_DIVISION_ID,\n HibobService,\n SUB_DIVISION as HIBOB_SUB_DIVISION_PATH,\n SUB_DIVISION_ID as HIBOB_SUB_DIVISION_ID,\n} from './services/hibob/hibob.service.js'\nexport type {\n HubspotChangeContactPropertiesRequest,\n HubspotSubmission,\n HubspotSubmitRequest,\n HubspotTokenRequest,\n HubspotTokenResponse,\n} from './services/hubspot/hubspot.service.js'\n// hubspot services\nexport { HubspotService } from './services/hubspot/hubspot.service.js'\nexport type {\n IncidentIoGetOpenIncidentsRequest,\n OpenIncident,\n} from './services/incident-io/incident-io.service.js'\n// incident.io services\nexport { IncidentIoService } from './services/incident-io/incident-io.service.js'\n// litellm services\nexport type {\n BlockKeyRequest,\n BlockKeyResponse,\n CreateTeamRequest,\n CreateTeamResponse,\n DeleteKeyRequest,\n DeleteKeyResponse,\n DeleteTeamRequest,\n DeleteTeamResponse,\n GenerateKeyRequest,\n GenerateKeyResponse,\n GetKeyInfoRequest,\n GetKeyInfoResponse,\n RegenerateKeyRequest,\n RegenerateKeyResponse,\n UnblockKeyRequest,\n UnblockKeyResponse,\n UpdateKeyBudgetRequest,\n UpdateKeyBudgetResponse,\n UpdateTeamBudgetRequest,\n UpdateTeamBudgetResponse,\n} from './services/litellm/litellm.service.js'\nexport { LiteLLMService } from './services/litellm/litellm.service.js'\nexport type { LoginPayload } from './services/login/login.service.js'\n// login services\nexport { LoginService } from './services/login/login.service.js'\nexport type { MixpanelSetGroupPropertiesOnceRequest } from './services/mixpanel/mixpanel.service.js'\n// mixpanel services\nexport { MixpanelService } from './services/mixpanel/mixpanel.service.js'\n// notifications services\nexport type {\n CreateGlobalNotificationParams,\n CreateNotificationBySalesPlanParams,\n DeleteGlobalNotificationParams,\n UpdateNotificationParams,\n} from './services/notifications/notifications.service.js'\nexport { NotificationsService } from './services/notifications/notifications.service.js'\n// openrouter services\nexport type {\n CreateOpenRouterKeyRequest,\n CreateOpenRouterKeyResponse,\n DeleteOpenRouterKeyRequest,\n DeleteOpenRouterKeyResponse,\n GetOpenRouterKeyRequest,\n GetOpenRouterKeyResponse,\n ListOpenRouterKeysRequest,\n ListOpenRouterKeysResponse,\n OpenRouterKeyData,\n UpdateOpenRouterKeyRequest,\n UpdateOpenRouterKeyResponse,\n} from './services/openrouter/openrouter.service.js'\nexport {\n OPENROUTER_KEY_PAGE_SIZE,\n OpenRouterService,\n} from './services/openrouter/openrouter.service.js'\nexport type {\n IncomingWebhookData,\n IncomingWebhookRequest,\n SlackChatPostMessageParams,\n SlackChatPostMessageResponse,\n SlackConversationsInviteParams,\n SlackConversationsInviteResponse,\n SlackLookupUserByEmailParams,\n SlackLookupUserByEmailResponse,\n} from './services/slack/slack.service.js'\n// slack services\nexport { SlackService } from './services/slack/slack.service.js'\nexport type {\n SendBlockKitMessageParams,\n SendBlockKitMessageResponse,\n SlackBlock,\n} from './services/slack/slack-blockkit.service.js'\nexport { SlackBlockKitService } from './services/slack/slack-blockkit.service.js'\nexport type { TelemetryPostRequest } from './services/telemetry/telemetry.service.js'\n// telemetry services\nexport { TelemetryService } from './services/telemetry/telemetry.service.js'\nexport type {\n ThanosQueryRequest,\n ThanosQueryResponse,\n ThanosQueryResult,\n} from './services/thanos/thanos.service.js'\n// thanos services\nexport {\n ThanosApiEndpoint,\n ThanosService,\n} from './services/thanos/thanos.service.js'\nexport type {\n JwksRequest,\n JwksResponse,\n} from './services/token-issuer/token-issuer.jwks.service.js'\n// token-issuer services\nexport { TokenIssuerJwksService } from './services/token-issuer/token-issuer.jwks.service.js'\nexport type {\n WordpressGetCardsRequest,\n WordpressGetHelpCenterConfigRequest,\n WordpressGetSurveyConfigRequest,\n} from './services/wordpress/wordpress.service.js'\n// wordpress services\nexport { WordpressService } from './services/wordpress/wordpress.service.js'\n\n// types\nexport type {\n RequestBaseCustomMetrics,\n RequestBaseCustomMetricsDetailsType,\n RequestBaseMethodType,\n RequestBaseParams,\n RequestBaseParamsAuth,\n RequestBaseParamsConfig,\n RequestBaseParamsEnvOverride,\n RequestBaseParamsLogger,\n RequestBaseServiceContext,\n Stage,\n} from './types/general.types.js'\nexport type { RequestPayload, Response } from './utils/api.js'\n// utils\nexport { request } from './utils/api.js'\nexport { CustomMetricsCCMA } from './utils/ccma-metrics.js'\nexport type { ServiceAudience, ServiceName } from './utils/environments.js'\nexport { HttpError } from './utils/errors.js'\nexport type {\n SseConnection,\n SseConnectionOptions,\n SseConnectionState,\n SseMessage,\n} from './utils/sse.js'\nexport { connectSse } from './utils/sse.js'\n\nexport {\n correlationHeaders,\n generateTraceparent,\n getSessionId,\n sessionHeaders,\n setTraceparentProvider,\n traceparentHeaders,\n} from './utils/traceparent.js'\n"],
|
|
5
|
+
"mappings": "AAWA,SAAS,iCAAiC;AAM1C,SAAS,yBAAyB;AAKlC,SAAS,mCAAmC;AAC5C,SAAS,0BAA0B;AAMnC,SAAS,wBAAwB;AA6BjC,SAAS,wBAAwB;AAcjC,SAAS,0BAA0B;AAEnC,SAAS,yBAAyB;AAalC,SAAS,kCAAkC;AAC3C,SAAS,2BAA2B;AAiBpC,SAAS,kBAAkB;AAC3B;AAAA,EAEE;AAAA,OAEK;AAKP,SAAS,0BAA0B;AAanC,SAAS,kCAAkC;AAsC3C,SAAS,mBAAmB;AAO5B,SAAS,qBAAqB;AAW9B,SAAS,2BAA2B;AAQpC,SAAS,+BAA+B;AAKxC;AAAA,EACE;AAAA,EACA;AAAA,OACK;AASP,SAAS,wBAAwB;AACjC,SAAS,4BAA4B;AAErC,SAAS,oBAAoB;AAE7B,SAAS,8BAA8B;AAKvC,SAAS,0BAA0B;AAMnC,SAAS,8BAA8B;AAMvC,SAAS,0BAA0B;AAcnC,SAAS,oBAAoB;AAQ7B,SAAS,qBAAqB;AAM9B,SAAS,6BAA6B;AActC,SAAS,yBAAyB;AAOlC,SAAS,0BAA0B;AAKnC,SAAS,gCAAgC;AAGzC,SAAS,oBAAoB;AAG7B,SAAS,yBAAyB;AAyBlC,SAAS,2BAA2B;AACpC;AAAA,EAGE;AAAA,OAKK;AACP;AAAA,EAEE;AAAA,OAMK;AAMP,SAAS,kCAAkC;AAC3C;AAAA,EACE;AAAA,OAGK;AACP;AAAA,EACE;AAAA,OAGK;AACP;AAAA,EAIE;AAAA,OAMK;AACP;AAAA,EACE;AAAA,OAMK;AAqBP,SAAS,6BAA6B;AAOtC,SAAS,+BAA+B;AACxC;AAAA,EAEE;AAAA,OAQK;AACP;AAAA,EAQE;AAAA,OAEK;AACP,SAAS,0CAA0C;AACnD,SAAS,sCAAsC;AAO/C,SAAS,0BAA0B;AACnC;AAAA,EACE;AAAA,OAMK;AACP;AAAA,EACE;AAAA,OAIK;AAKP,SAAS,mCAAmC;AAC5C;AAAA,EACE;AAAA,OASK;AACP;AAAA,EACE;AAAA,OAGK;AASP,SAAS,uBAAuB;AAChC;AAAA,EAEE;AAAA,OACK;AAMP,SAAS,yBAAyB;AAClC;AAAA,EAEE;AAAA,OAKK;AACP;AAAA,EAEE;AAAA,OACK;AACP,SAAS,kCAAkC;AAE3C;AAAA,EAGE;AAAA,OAMK;AAeP,SAAS,iCAAiC;AAe1C,SAAS,+BAA+B;AAExC,SAAS,8BAA8B;AAOvC,SAAS,+BAA+B;AAKxC,SAAS,8BAA8B;AAUvC,SAAS,oCAAoC;AAU7C,SAAS,qBAAqB;AAM9B,SAAS,oBAAoB;AAQ7B,SAAS,yBAAyB;AASlC;AAAA,EACgB;AAAA,EACF;AAAA,EACG;AAAA,EACf;AAAA,EACgB;AAAA,EACG;AAAA,OACd;AASP,SAAS,sBAAsB;AAM/B,SAAS,yBAAyB;AAwBlC,SAAS,sBAAsB;AAG/B,SAAS,oBAAoB;AAG7B,SAAS,uBAAuB;AAQhC,SAAS,4BAA4B;AAerC;AAAA,EACE;AAAA,EACA;AAAA,OACK;AAYP,SAAS,oBAAoB;AAM7B,SAAS,4BAA4B;AAGrC,SAAS,wBAAwB;AAOjC;AAAA,EACE;AAAA,EACA;AAAA,OACK;AAMP,SAAS,8BAA8B;AAOvC,SAAS,wBAAwB;AAiBjC,SAAS,eAAe;AACxB,SAAS,yBAAyB;AAElC,SAAS,iBAAiB;AAO1B,SAAS,kBAAkB;AAE3B;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OACK;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import type { ApprovalM2mActor } from '@camunda/ccma-shared-types';
|
|
2
|
+
import type { RequestBaseParams } from '../../types/general.types.js';
|
|
3
|
+
/**
|
|
4
|
+
* The routes of `api/admin/approvals` in accounts-backend.
|
|
5
|
+
*
|
|
6
|
+
* control-backend calls these when a four-eyes request holds the approvals
|
|
7
|
+
* that it needs. They are separate from `OrgsService`, because they are a
|
|
8
|
+
* separate surface: each one carries its own m2m permission, and each one
|
|
9
|
+
* takes the actor envelope that names the Camundis. The routes that a browser
|
|
10
|
+
* calls today go away, and this service does not go with them.
|
|
11
|
+
*/
|
|
12
|
+
export interface ExtendTrialThroughApprovalRequest extends RequestBaseParams {
|
|
13
|
+
params: {
|
|
14
|
+
orgId: string;
|
|
15
|
+
};
|
|
16
|
+
body: {
|
|
17
|
+
actor: ApprovalM2mActor;
|
|
18
|
+
/** An ISO timestamp, between 14 and 62 days from when the call ARRIVES. */
|
|
19
|
+
newExpireDate: string;
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
export interface SendToExpiredTrialThroughApprovalRequest extends RequestBaseParams {
|
|
23
|
+
params: {
|
|
24
|
+
orgId: string;
|
|
25
|
+
};
|
|
26
|
+
body: {
|
|
27
|
+
actor: ApprovalM2mActor;
|
|
28
|
+
};
|
|
29
|
+
}
|
|
30
|
+
export declare class AccountsApprovalsM2MService {
|
|
31
|
+
static extendTrial(params: ExtendTrialThroughApprovalRequest): Promise<void>;
|
|
32
|
+
static sendToExpiredTrial(params: SendToExpiredTrialThroughApprovalRequest): Promise<void>;
|
|
33
|
+
}
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import { request } from "../../utils/api.js";
|
|
2
|
+
import { HttpError } from "../../utils/errors.js";
|
|
3
|
+
class AccountsApprovalsM2MService {
|
|
4
|
+
static async extendTrial(params) {
|
|
5
|
+
const serviceContext = {
|
|
6
|
+
method: {
|
|
7
|
+
name: "AccountsApprovalsM2MService.extendTrial",
|
|
8
|
+
url: `api/admin/approvals/organizations/${params.params.orgId}/extend-trial`,
|
|
9
|
+
normalizedUrl: "api/admin/approvals/organizations/:orgId/extend-trial",
|
|
10
|
+
type: "post"
|
|
11
|
+
},
|
|
12
|
+
source: params.config.metrics?.source || "unset",
|
|
13
|
+
target: { name: "accounts", type: "internal" }
|
|
14
|
+
};
|
|
15
|
+
const response = await request({
|
|
16
|
+
config: params.config,
|
|
17
|
+
base: { id: "accounts" },
|
|
18
|
+
url: serviceContext.method.url,
|
|
19
|
+
method: serviceContext.method.type,
|
|
20
|
+
metricsDetails: serviceContext,
|
|
21
|
+
body: params.body,
|
|
22
|
+
responseType: "none"
|
|
23
|
+
});
|
|
24
|
+
if (!response.ok) {
|
|
25
|
+
throw new HttpError(
|
|
26
|
+
`${serviceContext.method.name}: ${response.status} ${response.statusText}`,
|
|
27
|
+
response.status,
|
|
28
|
+
response.statusText
|
|
29
|
+
);
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
static async sendToExpiredTrial(params) {
|
|
33
|
+
const serviceContext = {
|
|
34
|
+
method: {
|
|
35
|
+
name: "AccountsApprovalsM2MService.sendToExpiredTrial",
|
|
36
|
+
url: `api/admin/approvals/organizations/${params.params.orgId}/expire-trial`,
|
|
37
|
+
normalizedUrl: "api/admin/approvals/organizations/:orgId/expire-trial",
|
|
38
|
+
type: "post"
|
|
39
|
+
},
|
|
40
|
+
source: params.config.metrics?.source || "unset",
|
|
41
|
+
target: { name: "accounts", type: "internal" }
|
|
42
|
+
};
|
|
43
|
+
const response = await request({
|
|
44
|
+
config: params.config,
|
|
45
|
+
base: { id: "accounts" },
|
|
46
|
+
url: serviceContext.method.url,
|
|
47
|
+
method: serviceContext.method.type,
|
|
48
|
+
metricsDetails: serviceContext,
|
|
49
|
+
body: params.body,
|
|
50
|
+
responseType: "none"
|
|
51
|
+
});
|
|
52
|
+
if (!response.ok) {
|
|
53
|
+
throw new HttpError(
|
|
54
|
+
`${serviceContext.method.name}: ${response.status} ${response.statusText}`,
|
|
55
|
+
response.status,
|
|
56
|
+
response.statusText
|
|
57
|
+
);
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
export {
|
|
62
|
+
AccountsApprovalsM2MService
|
|
63
|
+
};
|
|
64
|
+
//# sourceMappingURL=approvals.m2m.service.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../src/services/accounts/approvals.m2m.service.ts"],
|
|
4
|
+
"sourcesContent": ["/*\n * Copyright Camunda Services GmbH and/or licensed to Camunda Services GmbH\n * under one or more contributor license agreements. Licensed under a commercial license.\n * You may not use this file except in compliance with the commercial license.\n */\n\nimport type { ApprovalM2mActor } from '@camunda/ccma-shared-types'\nimport type {\n RequestBaseParams,\n RequestBaseServiceContext,\n} from '../../types/general.types.js'\nimport { request } from '../../utils/api.js'\nimport { HttpError } from '../../utils/errors.js'\n\n/**\n * The routes of `api/admin/approvals` in accounts-backend.\n *\n * control-backend calls these when a four-eyes request holds the approvals\n * that it needs. They are separate from `OrgsService`, because they are a\n * separate surface: each one carries its own m2m permission, and each one\n * takes the actor envelope that names the Camundis. The routes that a browser\n * calls today go away, and this service does not go with them.\n */\n\nexport interface ExtendTrialThroughApprovalRequest extends RequestBaseParams {\n params: { orgId: string }\n body: {\n actor: ApprovalM2mActor\n /** An ISO timestamp, between 14 and 62 days from when the call ARRIVES. */\n newExpireDate: string\n }\n}\n\nexport interface SendToExpiredTrialThroughApprovalRequest\n extends RequestBaseParams {\n params: { orgId: string }\n body: { actor: ApprovalM2mActor }\n}\n\nexport class AccountsApprovalsM2MService {\n public static async extendTrial(\n params: ExtendTrialThroughApprovalRequest,\n ): Promise<void> {\n const serviceContext: RequestBaseServiceContext = {\n method: {\n name: 'AccountsApprovalsM2MService.extendTrial',\n url: `api/admin/approvals/organizations/${params.params.orgId}/extend-trial`,\n normalizedUrl: 'api/admin/approvals/organizations/:orgId/extend-trial',\n type: 'post',\n },\n source: params.config.metrics?.source || 'unset',\n target: { name: 'accounts', type: 'internal' },\n }\n\n const response = await request<void>({\n config: params.config,\n base: { id: 'accounts' },\n url: serviceContext.method.url,\n method: serviceContext.method.type,\n metricsDetails: serviceContext,\n body: params.body,\n responseType: 'none',\n })\n\n if (!response.ok) {\n throw new HttpError(\n `${serviceContext.method.name}: ${response.status} ${response.statusText}`,\n response.status,\n response.statusText,\n )\n }\n }\n\n public static async sendToExpiredTrial(\n params: SendToExpiredTrialThroughApprovalRequest,\n ): Promise<void> {\n const serviceContext: RequestBaseServiceContext = {\n method: {\n name: 'AccountsApprovalsM2MService.sendToExpiredTrial',\n url: `api/admin/approvals/organizations/${params.params.orgId}/expire-trial`,\n normalizedUrl: 'api/admin/approvals/organizations/:orgId/expire-trial',\n type: 'post',\n },\n source: params.config.metrics?.source || 'unset',\n target: { name: 'accounts', type: 'internal' },\n }\n\n const response = await request<void>({\n config: params.config,\n base: { id: 'accounts' },\n url: serviceContext.method.url,\n method: serviceContext.method.type,\n metricsDetails: serviceContext,\n body: params.body,\n responseType: 'none',\n })\n\n if (!response.ok) {\n throw new HttpError(\n `${serviceContext.method.name}: ${response.status} ${response.statusText}`,\n response.status,\n response.statusText,\n )\n }\n }\n}\n"],
|
|
5
|
+
"mappings": "AAWA,SAAS,eAAe;AACxB,SAAS,iBAAiB;AA2BnB,MAAM,4BAA4B;AAAA,EACvC,aAAoB,YAClB,QACe;AACf,UAAM,iBAA4C;AAAA,MAChD,QAAQ;AAAA,QACN,MAAM;AAAA,QACN,KAAK,qCAAqC,OAAO,OAAO,KAAK;AAAA,QAC7D,eAAe;AAAA,QACf,MAAM;AAAA,MACR;AAAA,MACA,QAAQ,OAAO,OAAO,SAAS,UAAU;AAAA,MACzC,QAAQ,EAAE,MAAM,YAAY,MAAM,WAAW;AAAA,IAC/C;AAEA,UAAM,WAAW,MAAM,QAAc;AAAA,MACnC,QAAQ,OAAO;AAAA,MACf,MAAM,EAAE,IAAI,WAAW;AAAA,MACvB,KAAK,eAAe,OAAO;AAAA,MAC3B,QAAQ,eAAe,OAAO;AAAA,MAC9B,gBAAgB;AAAA,MAChB,MAAM,OAAO;AAAA,MACb,cAAc;AAAA,IAChB,CAAC;AAED,QAAI,CAAC,SAAS,IAAI;AAChB,YAAM,IAAI;AAAA,QACR,GAAG,eAAe,OAAO,IAAI,KAAK,SAAS,MAAM,IAAI,SAAS,UAAU;AAAA,QACxE,SAAS;AAAA,QACT,SAAS;AAAA,MACX;AAAA,IACF;AAAA,EACF;AAAA,EAEA,aAAoB,mBAClB,QACe;AACf,UAAM,iBAA4C;AAAA,MAChD,QAAQ;AAAA,QACN,MAAM;AAAA,QACN,KAAK,qCAAqC,OAAO,OAAO,KAAK;AAAA,QAC7D,eAAe;AAAA,QACf,MAAM;AAAA,MACR;AAAA,MACA,QAAQ,OAAO,OAAO,SAAS,UAAU;AAAA,MACzC,QAAQ,EAAE,MAAM,YAAY,MAAM,WAAW;AAAA,IAC/C;AAEA,UAAM,WAAW,MAAM,QAAc;AAAA,MACnC,QAAQ,OAAO;AAAA,MACf,MAAM,EAAE,IAAI,WAAW;AAAA,MACvB,KAAK,eAAe,OAAO;AAAA,MAC3B,QAAQ,eAAe,OAAO;AAAA,MAC9B,gBAAgB;AAAA,MAChB,MAAM,OAAO;AAAA,MACb,cAAc;AAAA,IAChB,CAAC;AAED,QAAI,CAAC,SAAS,IAAI;AAChB,YAAM,IAAI;AAAA,QACR,GAAG,eAAe,OAAO,IAAI,KAAK,SAAS,MAAM,IAAI,SAAS,UAAU;AAAA,QACxE,SAAS;AAAA,QACT,SAAS;AAAA,MACX;AAAA,IACF;AAAA,EACF;AACF;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { Hdp, HdpBackendChangeEvent, HdpPrometheusDataCapacityDataPoint, HdpTenantUsageBreakdown, HdpTenantUsagePoint } from '@camunda/ccma-shared-types';
|
|
1
|
+
import type { Hdp, HdpBackendChangeEvent, HdpDisk, HdpPrometheusDataCapacityDataPoint, HdpTenantUsageBreakdown, HdpTenantUsagePoint } from '@camunda/ccma-shared-types';
|
|
2
2
|
import type { RequestBaseParams } from '../../types/general.types.js';
|
|
3
3
|
export interface GetClusterCapacityRequest extends RequestBaseParams {
|
|
4
4
|
params: {
|
|
@@ -8,6 +8,29 @@ export interface GetClusterCapacityRequest extends RequestBaseParams {
|
|
|
8
8
|
operation: 'per-day' | 'latest' | '24h';
|
|
9
9
|
};
|
|
10
10
|
}
|
|
11
|
+
/**
|
|
12
|
+
* `per-day`/`24h` read one cluster and `latest` reads a set — the identifiers
|
|
13
|
+
* are not interchangeable, so the discriminant carries only the one its
|
|
14
|
+
* operation needs. A flat `{clusterId?, clusterIds?, operation}` shape let a
|
|
15
|
+
* caller send `{operation: '24h', clusterIds: [...]}`, which reached the
|
|
16
|
+
* accounts-backend route with an undefined `clusterId` and returned 200 with
|
|
17
|
+
* `[]` instead of a 400.
|
|
18
|
+
*/
|
|
19
|
+
export type GetClusterDiskUsageParams = {
|
|
20
|
+
/** The disk to read. Without it, the route reads Elasticsearch. */
|
|
21
|
+
disk?: HdpDisk;
|
|
22
|
+
} & ({
|
|
23
|
+
orgId: string;
|
|
24
|
+
operation: 'per-day' | '24h';
|
|
25
|
+
clusterId: string;
|
|
26
|
+
} | {
|
|
27
|
+
orgId: string;
|
|
28
|
+
operation: 'latest';
|
|
29
|
+
clusterIds: string[];
|
|
30
|
+
});
|
|
31
|
+
export type GetClusterDiskUsageRequest = RequestBaseParams & {
|
|
32
|
+
params: GetClusterDiskUsageParams;
|
|
33
|
+
};
|
|
11
34
|
export interface GetTenantUsageRequest extends RequestBaseParams {
|
|
12
35
|
params: {
|
|
13
36
|
orgId: string;
|
|
@@ -62,8 +85,24 @@ export interface GetClusterActivityRequest extends RequestBaseParams {
|
|
|
62
85
|
windowDays?: number;
|
|
63
86
|
};
|
|
64
87
|
}
|
|
88
|
+
export interface GetClusterHostingCostRequest extends RequestBaseParams {
|
|
89
|
+
params: {
|
|
90
|
+
clusterId: string;
|
|
91
|
+
};
|
|
92
|
+
}
|
|
93
|
+
export interface GetClusterHostingCostResponse {
|
|
94
|
+
/** Absent when the cluster has no rows in the window. */
|
|
95
|
+
hostingCost?: Hdp.ClusterHostingCost;
|
|
96
|
+
}
|
|
65
97
|
export declare class HdpService {
|
|
66
98
|
static getClusterCapacity(params: GetClusterCapacityRequest): Promise<HdpPrometheusDataCapacityDataPoint[]>;
|
|
99
|
+
/**
|
|
100
|
+
* Used bytes of one cluster disk (Elasticsearch or Zeebe), as avg/min/max,
|
|
101
|
+
* with the same shape and operations as `getClusterCapacity`. The value is
|
|
102
|
+
* the total over all nodes of the disk. See
|
|
103
|
+
* camunda/Holistic-Data-Platform#1923 for the ingestion side.
|
|
104
|
+
*/
|
|
105
|
+
static getClusterDiskUsage(params: GetClusterDiskUsageRequest): Promise<HdpPrometheusDataCapacityDataPoint[]>;
|
|
67
106
|
static getTenantUsage(params: GetTenantUsageRequest): Promise<HdpTenantUsagePoint[]>;
|
|
68
107
|
/**
|
|
69
108
|
* Tenant usage broken down by cluster, plus the org roll-up of the same rows.
|
|
@@ -82,6 +121,28 @@ export declare class HdpService {
|
|
|
82
121
|
* fleet, and the caller caches it for every user.
|
|
83
122
|
*/
|
|
84
123
|
static getClusterActivity(params: GetClusterActivityRequest): Promise<Hdp.ClusterActivity>;
|
|
124
|
+
/**
|
|
125
|
+
* One cluster's trailing 30-day loaded hosting cost
|
|
126
|
+
* (`GET /api/hdp/hosting-cost/:clusterId`).
|
|
127
|
+
*
|
|
128
|
+
* Only accounts-backend can query HDP, thus console-backend and
|
|
129
|
+
* control-frontend both read it from here. The response's `hostingCost` is
|
|
130
|
+
* absent when the cluster has no rows in the window, so the caller can show
|
|
131
|
+
* "no data" rather than a false $0.
|
|
132
|
+
*/
|
|
133
|
+
static getClusterHostingCost(params: GetClusterHostingCostRequest): Promise<GetClusterHostingCostResponse>;
|
|
134
|
+
/**
|
|
135
|
+
* The trailing 30-day loaded hosting cost of every cluster HDP holds, for
|
|
136
|
+
* the whole fleet (`GET /api/hdp/hosting-cost`).
|
|
137
|
+
*
|
|
138
|
+
* accounts-backend answers only a caller with `admin.readAll`, and caches
|
|
139
|
+
* the answer for one hour, thus a page can call this on load. HDP keeps the
|
|
140
|
+
* rows of deleted clusters, thus the caller matches `rows` against its own
|
|
141
|
+
* cluster list. A cluster with no row has no cost data. That is not a cost
|
|
142
|
+
* of 0. While `control.fleetHostingCost` is off on the stage, `rows` is
|
|
143
|
+
* empty.
|
|
144
|
+
*/
|
|
145
|
+
static getFleetHostingCost(params: RequestBaseParams): Promise<Hdp.FleetHostingCost>;
|
|
85
146
|
static getActiveOrgs(params: GetActiveOrgsRequest): Promise<GetActiveOrgsResponse>;
|
|
86
147
|
static getLlmUsage(params: GetLlmUsageRequest): Promise<LlmUsageEntry[]>;
|
|
87
148
|
}
|
|
@@ -34,6 +34,45 @@ class HdpService {
|
|
|
34
34
|
}
|
|
35
35
|
return response.body;
|
|
36
36
|
}
|
|
37
|
+
/**
|
|
38
|
+
* Used bytes of one cluster disk (Elasticsearch or Zeebe), as avg/min/max,
|
|
39
|
+
* with the same shape and operations as `getClusterCapacity`. The value is
|
|
40
|
+
* the total over all nodes of the disk. See
|
|
41
|
+
* camunda/Holistic-Data-Platform#1923 for the ingestion side.
|
|
42
|
+
*/
|
|
43
|
+
static async getClusterDiskUsage(params) {
|
|
44
|
+
const serviceContext = {
|
|
45
|
+
method: {
|
|
46
|
+
name: `HdpService.getClusterDiskUsage`,
|
|
47
|
+
url: `api/hdp/${params.params.orgId}/clusters/disk-usage`,
|
|
48
|
+
normalizedUrl: `api/hdp/:orgId/clusters/disk-usage`,
|
|
49
|
+
type: "post"
|
|
50
|
+
},
|
|
51
|
+
source: params.config.metrics?.source || "unset",
|
|
52
|
+
target: {
|
|
53
|
+
name: "accounts",
|
|
54
|
+
type: "internal"
|
|
55
|
+
}
|
|
56
|
+
};
|
|
57
|
+
const response = await request({
|
|
58
|
+
...params,
|
|
59
|
+
base: {
|
|
60
|
+
id: "accounts"
|
|
61
|
+
},
|
|
62
|
+
url: serviceContext.method.url,
|
|
63
|
+
method: serviceContext.method.type,
|
|
64
|
+
metricsDetails: serviceContext,
|
|
65
|
+
body: params.params
|
|
66
|
+
});
|
|
67
|
+
if (!response.ok) {
|
|
68
|
+
throw new HttpError(
|
|
69
|
+
`${serviceContext.method.name}: ${response.status} ${response.statusText}`,
|
|
70
|
+
response.status,
|
|
71
|
+
response.statusText
|
|
72
|
+
);
|
|
73
|
+
}
|
|
74
|
+
return response.body;
|
|
75
|
+
}
|
|
37
76
|
static async getTenantUsage(params) {
|
|
38
77
|
const serviceContext = {
|
|
39
78
|
method: {
|
|
@@ -225,6 +264,90 @@ class HdpService {
|
|
|
225
264
|
}
|
|
226
265
|
return response.body;
|
|
227
266
|
}
|
|
267
|
+
/**
|
|
268
|
+
* One cluster's trailing 30-day loaded hosting cost
|
|
269
|
+
* (`GET /api/hdp/hosting-cost/:clusterId`).
|
|
270
|
+
*
|
|
271
|
+
* Only accounts-backend can query HDP, thus console-backend and
|
|
272
|
+
* control-frontend both read it from here. The response's `hostingCost` is
|
|
273
|
+
* absent when the cluster has no rows in the window, so the caller can show
|
|
274
|
+
* "no data" rather than a false $0.
|
|
275
|
+
*/
|
|
276
|
+
static async getClusterHostingCost(params) {
|
|
277
|
+
const serviceContext = {
|
|
278
|
+
method: {
|
|
279
|
+
name: `HdpService.getClusterHostingCost`,
|
|
280
|
+
url: `api/hdp/hosting-cost/${encodeURIComponent(params.params.clusterId)}`,
|
|
281
|
+
normalizedUrl: `api/hdp/hosting-cost/:clusterId`,
|
|
282
|
+
type: "get"
|
|
283
|
+
},
|
|
284
|
+
source: params.config.metrics?.source || "unset",
|
|
285
|
+
target: {
|
|
286
|
+
name: "accounts",
|
|
287
|
+
type: "internal"
|
|
288
|
+
}
|
|
289
|
+
};
|
|
290
|
+
const response = await request({
|
|
291
|
+
...params,
|
|
292
|
+
base: {
|
|
293
|
+
id: "accounts"
|
|
294
|
+
},
|
|
295
|
+
url: serviceContext.method.url,
|
|
296
|
+
method: serviceContext.method.type,
|
|
297
|
+
metricsDetails: serviceContext
|
|
298
|
+
});
|
|
299
|
+
if (!response.ok) {
|
|
300
|
+
throw new HttpError(
|
|
301
|
+
`${serviceContext.method.name}: ${response.status} ${response.statusText}`,
|
|
302
|
+
response.status,
|
|
303
|
+
response.statusText
|
|
304
|
+
);
|
|
305
|
+
}
|
|
306
|
+
return response.body;
|
|
307
|
+
}
|
|
308
|
+
/**
|
|
309
|
+
* The trailing 30-day loaded hosting cost of every cluster HDP holds, for
|
|
310
|
+
* the whole fleet (`GET /api/hdp/hosting-cost`).
|
|
311
|
+
*
|
|
312
|
+
* accounts-backend answers only a caller with `admin.readAll`, and caches
|
|
313
|
+
* the answer for one hour, thus a page can call this on load. HDP keeps the
|
|
314
|
+
* rows of deleted clusters, thus the caller matches `rows` against its own
|
|
315
|
+
* cluster list. A cluster with no row has no cost data. That is not a cost
|
|
316
|
+
* of 0. While `control.fleetHostingCost` is off on the stage, `rows` is
|
|
317
|
+
* empty.
|
|
318
|
+
*/
|
|
319
|
+
static async getFleetHostingCost(params) {
|
|
320
|
+
const serviceContext = {
|
|
321
|
+
method: {
|
|
322
|
+
name: `HdpService.getFleetHostingCost`,
|
|
323
|
+
url: "api/hdp/hosting-cost",
|
|
324
|
+
normalizedUrl: "api/hdp/hosting-cost",
|
|
325
|
+
type: "get"
|
|
326
|
+
},
|
|
327
|
+
source: params.config.metrics?.source || "unset",
|
|
328
|
+
target: {
|
|
329
|
+
name: "accounts",
|
|
330
|
+
type: "internal"
|
|
331
|
+
}
|
|
332
|
+
};
|
|
333
|
+
const response = await request({
|
|
334
|
+
...params,
|
|
335
|
+
base: {
|
|
336
|
+
id: "accounts"
|
|
337
|
+
},
|
|
338
|
+
url: serviceContext.method.url,
|
|
339
|
+
method: serviceContext.method.type,
|
|
340
|
+
metricsDetails: serviceContext
|
|
341
|
+
});
|
|
342
|
+
if (!response.ok || !response.body) {
|
|
343
|
+
throw new HttpError(
|
|
344
|
+
`${serviceContext.method.name}: ${response.status} ${response.statusText}`,
|
|
345
|
+
response.status,
|
|
346
|
+
response.statusText
|
|
347
|
+
);
|
|
348
|
+
}
|
|
349
|
+
return response.body;
|
|
350
|
+
}
|
|
228
351
|
static async getActiveOrgs(params) {
|
|
229
352
|
const serviceContext = {
|
|
230
353
|
method: {
|