@haakco/custd-sdk 0.0.0-stage → 3.71.1
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 +958 -2
- package/dist/admin-accounting-evidence.d.ts +48 -0
- package/dist/admin-accounting-evidence.js +24 -0
- package/dist/admin-app-releases.d.ts +116 -0
- package/dist/admin-app-releases.js +8 -0
- package/dist/admin-apps.d.ts +120 -0
- package/dist/admin-apps.js +47 -0
- package/dist/admin-auth-project-domain.d.ts +125 -0
- package/dist/admin-auth-project-domain.js +37 -0
- package/dist/admin-auth-projects.d.ts +989 -0
- package/dist/admin-auth-projects.js +527 -0
- package/dist/admin-campaign-email.d.ts +120 -0
- package/dist/admin-campaign-email.js +64 -0
- package/dist/admin-client-setup.d.ts +122 -0
- package/dist/admin-client-setup.js +408 -0
- package/dist/admin-data-labels.d.ts +124 -0
- package/dist/admin-data-labels.js +51 -0
- package/dist/admin-data-scopes.d.ts +93 -0
- package/dist/admin-data-scopes.js +154 -0
- package/dist/admin-email-relay.d.ts +66 -0
- package/dist/admin-email-relay.js +25 -0
- package/dist/admin-environment-policy.d.ts +32 -0
- package/dist/admin-environment-policy.js +26 -0
- package/dist/admin-error-issues.d.ts +91 -0
- package/dist/admin-error-issues.js +52 -0
- package/dist/admin-event-types.d.ts +57 -0
- package/dist/admin-event-types.js +28 -0
- package/dist/admin-impersonation.d.ts +48 -0
- package/dist/admin-impersonation.js +27 -0
- package/dist/admin-ingest-claims.d.ts +35 -0
- package/dist/admin-ingest-claims.js +26 -0
- package/dist/admin-managed-audit.d.ts +13 -0
- package/dist/admin-managed-audit.js +13 -0
- package/dist/admin-measurement-projects.d.ts +166 -0
- package/dist/admin-measurement-projects.js +120 -0
- package/dist/admin-notification-destinations.d.ts +31 -0
- package/dist/admin-notification-destinations.js +19 -0
- package/dist/admin-notification-webhooks.d.ts +64 -0
- package/dist/admin-notification-webhooks.js +42 -0
- package/dist/admin-oauth-client-admissions.d.ts +65 -0
- package/dist/admin-oauth-client-admissions.js +46 -0
- package/dist/admin-offboarding.d.ts +123 -0
- package/dist/admin-offboarding.js +129 -0
- package/dist/admin-predictions.d.ts +266 -0
- package/dist/admin-predictions.js +93 -0
- package/dist/admin-privacy-erasures.d.ts +74 -0
- package/dist/admin-privacy-erasures.js +73 -0
- package/dist/admin-retention.d.ts +99 -0
- package/dist/admin-retention.js +60 -0
- package/dist/admin-rls.d.ts +94 -0
- package/dist/admin-rls.js +33 -0
- package/dist/admin-sdk-usage.d.ts +41 -0
- package/dist/admin-sdk-usage.js +23 -0
- package/dist/admin-site-ai.d.ts +72 -0
- package/dist/admin-site-ai.js +1 -0
- package/dist/admin-site-analytics.d.ts +52 -0
- package/dist/admin-site-analytics.js +14 -0
- package/dist/admin-site-audit-pages.d.ts +76 -0
- package/dist/admin-site-audit-pages.js +27 -0
- package/dist/admin-site-campaign-links.d.ts +40 -0
- package/dist/admin-site-campaign-links.js +9 -0
- package/dist/admin-site-domains.d.ts +733 -0
- package/dist/admin-site-domains.js +768 -0
- package/dist/admin-site-export.d.ts +76 -0
- package/dist/admin-site-export.js +15 -0
- package/dist/admin-site-insights-tasks.d.ts +44 -0
- package/dist/admin-site-insights-tasks.js +28 -0
- package/dist/admin-site-insights.d.ts +527 -0
- package/dist/admin-site-insights.js +61 -0
- package/dist/admin-site-links.d.ts +87 -0
- package/dist/admin-site-links.js +16 -0
- package/dist/admin-site-monitors.d.ts +110 -0
- package/dist/admin-site-monitors.js +25 -0
- package/dist/admin-site-next-actions.d.ts +93 -0
- package/dist/admin-site-next-actions.js +36 -0
- package/dist/admin-site-page-queries.d.ts +63 -0
- package/dist/admin-site-page-queries.js +20 -0
- package/dist/admin-site-rankings.d.ts +98 -0
- package/dist/admin-site-rankings.js +46 -0
- package/dist/admin-site-regional-trends.d.ts +30 -0
- package/dist/admin-site-regional-trends.js +1 -0
- package/dist/admin-site-saved-reports.d.ts +45 -0
- package/dist/admin-site-saved-reports.js +13 -0
- package/dist/admin-site-search-pool.d.ts +77 -0
- package/dist/admin-site-search-pool.js +41 -0
- package/dist/admin-site-search-value.d.ts +97 -0
- package/dist/admin-site-search-value.js +29 -0
- package/dist/admin-site-status-page.d.ts +57 -0
- package/dist/admin-site-status-page.js +10 -0
- package/dist/admin-site-traffic.d.ts +145 -0
- package/dist/admin-site-traffic.js +32 -0
- package/dist/admin-site-web-data.d.ts +258 -0
- package/dist/admin-site-web-data.js +60 -0
- package/dist/admin-subject-exports.d.ts +79 -0
- package/dist/admin-subject-exports.js +44 -0
- package/dist/admin-support-access.d.ts +32 -0
- package/dist/admin-support-access.js +21 -0
- package/dist/admin-system.d.ts +283 -0
- package/dist/admin-system.js +65 -0
- package/dist/admin-tenant-storage.d.ts +35 -0
- package/dist/admin-tenant-storage.js +24 -0
- package/dist/admin-timeplans.d.ts +512 -0
- package/dist/admin-timeplans.js +200 -0
- package/dist/admin-uncertainty-models.d.ts +42 -0
- package/dist/admin-uncertainty-models.js +53 -0
- package/dist/admin-usage.d.ts +124 -0
- package/dist/admin-usage.js +169 -0
- package/dist/admin-users.d.ts +124 -0
- package/dist/admin-users.js +82 -0
- package/dist/admin-workflow-timings.d.ts +367 -0
- package/dist/admin-workflow-timings.js +117 -0
- package/dist/analytics-events.d.ts +167 -0
- package/dist/analytics-events.js +197 -0
- package/dist/analytics-reads.d.ts +81 -0
- package/dist/analytics-reads.js +5 -0
- package/dist/app-account.d.ts +84 -0
- package/dist/app-account.js +177 -0
- package/dist/app-alerts.d.ts +120 -0
- package/dist/app-alerts.js +44 -0
- package/dist/app-items.d.ts +786 -0
- package/dist/app-items.js +524 -0
- package/dist/app-live.d.ts +84 -0
- package/dist/app-live.js +228 -0
- package/dist/app-meetings.d.ts +95 -0
- package/dist/app-meetings.js +26 -0
- package/dist/app-models.d.ts +271 -0
- package/dist/app-models.js +83 -0
- package/dist/app-push.d.ts +64 -0
- package/dist/app-push.js +178 -0
- package/dist/backend-lifecycle.d.ts +85 -0
- package/dist/backend-lifecycle.js +212 -0
- package/dist/browser-manifest.json +7 -0
- package/dist/browser-script-BWnwDjAC.js +711 -0
- package/dist/browser-script.d.ts +1 -0
- package/dist/browser-script.js +5 -0
- package/dist/browser-sign-in.d.ts +153 -0
- package/dist/browser-sign-in.js +410 -0
- package/dist/browser-tracker.d.ts +142 -0
- package/dist/browser-tracker.js +775 -0
- package/dist/browser-web-vitals.d.ts +22 -0
- package/dist/browser-web-vitals.js +116 -0
- package/dist/browser.d.ts +10 -0
- package/dist/browser.js +10 -0
- package/dist/download-stream.d.ts +16 -0
- package/dist/download-stream.js +55 -0
- package/dist/error-capture.d.ts +62 -0
- package/dist/error-capture.js +168 -0
- package/dist/hosted-app.d.ts +115 -0
- package/dist/hosted-app.js +275 -0
- package/dist/index.d.ts +2324 -0
- package/dist/index.js +2226 -0
- package/dist/ingest-operations.d.ts +483 -0
- package/dist/ingest-operations.js +154 -0
- package/dist/measurement.d.ts +164 -0
- package/dist/measurement.js +104 -0
- package/dist/mobile-adapter.d.ts +25 -0
- package/dist/mobile-adapter.js +57 -0
- package/dist/mobile-context.d.ts +32 -0
- package/dist/mobile-context.js +156 -0
- package/dist/mobile-queue.d.ts +22 -0
- package/dist/mobile-queue.js +73 -0
- package/dist/oauth.d.ts +1 -0
- package/dist/oauth.js +8 -0
- package/dist/parsers.d.ts +149 -0
- package/dist/parsers.js +115 -0
- package/dist/public-reads.d.ts +79 -0
- package/dist/public-reads.js +57 -0
- package/dist/reporting-catalogue.d.ts +264 -0
- package/dist/reporting-catalogue.js +5 -0
- package/dist/reporting-state.d.ts +46 -0
- package/dist/reporting-state.js +76 -0
- package/dist/response-lists.d.ts +16 -0
- package/dist/response-lists.generated.d.ts +7 -0
- package/dist/response-lists.generated.js +1927 -0
- package/dist/response-lists.js +70 -0
- package/dist/response-validation.d.ts +30 -0
- package/dist/response-validation.js +94 -0
- package/dist/runtime-readiness.d.ts +30 -0
- package/dist/runtime-readiness.js +150 -0
- package/dist/schema-registry.d.ts +45 -0
- package/dist/schema-registry.js +9 -0
- package/dist/secure-url.d.ts +4 -0
- package/dist/secure-url.js +23 -0
- package/dist/site-ai-owner.d.ts +34 -0
- package/dist/site-ai-owner.js +99 -0
- package/dist/site-monitor-reports.d.ts +15 -0
- package/dist/site-monitor-reports.js +87 -0
- package/dist/testing/fake-custd.d.ts +150 -0
- package/dist/testing/fake-custd.js +842 -0
- package/dist/testing/fake-results.d.ts +30 -0
- package/dist/testing/fake-results.js +293 -0
- package/dist/testing.d.ts +2 -0
- package/dist/testing.js +3 -0
- package/dist/version.d.ts +10 -0
- package/dist/version.js +10 -0
- package/package.json +57 -4
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,2324 @@
|
|
|
1
|
+
import { AuthProjectAdminClient } from "./admin-auth-projects.js";
|
|
2
|
+
import { ClientSetupClient } from "./admin-client-setup.js";
|
|
3
|
+
import { DataLabelAdminClient } from "./admin-data-labels.js";
|
|
4
|
+
import { DataScopeAdminClient } from "./admin-data-scopes.js";
|
|
5
|
+
import { OffboardingClient, type OffboardingDownloadStream, type OffboardingReceiptPerStore } from "./admin-offboarding.js";
|
|
6
|
+
import { PredictionAdminClient } from "./admin-predictions.js";
|
|
7
|
+
import { PrivacyErasureClient } from "./admin-privacy-erasures.js";
|
|
8
|
+
import { RetentionClient } from "./admin-retention.js";
|
|
9
|
+
import { SiteDomainAdminClient } from "./admin-site-domains.js";
|
|
10
|
+
import { SiteInsightsAdminClient } from "./admin-site-insights-tasks.js";
|
|
11
|
+
import { SubjectExportClient } from "./admin-subject-exports.js";
|
|
12
|
+
import { TenantStorageClient } from "./admin-tenant-storage.js";
|
|
13
|
+
import { type CustdDownloadStream } from "./download-stream.js";
|
|
14
|
+
export { AUTH_PROJECT_DOMAIN_CONVERGENCES, AUTH_PROJECT_DOMAIN_IMAGE_COMPONENTS, AUTH_PROJECT_DOMAIN_IMAGE_SOURCES, AUTH_PROJECT_DOMAIN_LIFECYCLES, AUTH_PROJECT_DOMAIN_STATUSES, type AuthProjectAppLink, type AuthProjectAppLinkList, type AuthProjectBrandLogo, type AuthProjectDomainBinding, type AuthProjectDomainBindRequest, type AuthProjectDomainConvergence, type AuthProjectDomainDNSProof, type AuthProjectDomainImageComponent, type AuthProjectDomainImageOverride, type AuthProjectDomainImageOverrideRequest, type AuthProjectDomainImageSet, type AuthProjectDomainImageSource, type AuthProjectDomainImages, type AuthProjectDomainLifecycle, type AuthProjectDomainMintRequest, type AuthProjectDomainStatus, } from "./admin-auth-project-domain.js";
|
|
15
|
+
export { ADMIN_USER_GLOBAL_STATES, ADMIN_USER_MEMBERSHIP_STATES, ADMIN_USER_ROLES, type AdminUser, AdminUserAdminClient, type AdminUserCreateRequest, type AdminUserDisableRequest, type AdminUserEnableRequest, type AdminUserGlobalState, type AdminUserListQuery, type AdminUserListResponse, type AdminUserMembershipCreateRequest, type AdminUserMembershipState, type AdminUserPasswordReset, type AdminUserRemovalRequest, type AdminUserRole, type AdminUserScope, type AdminUserUpdateRequest, } from "./admin-users.js";
|
|
16
|
+
export { WORKFLOW_TIMING_FACT_KINDS, WORKFLOW_TIMING_STATES, WorkflowTimingAdminClient, type WorkflowTimingAttempt, type WorkflowTimingBatchResult, type WorkflowTimingContribution, type WorkflowTimingDeclaration, type WorkflowTimingDefinition, type WorkflowTimingDefinitionList, type WorkflowTimingDimensionDefinition, type WorkflowTimingDurationHistory, type WorkflowTimingDurationHistoryEntry, type WorkflowTimingDurationProjection, type WorkflowTimingEvaluation, type WorkflowTimingEvaluationArtifact, type WorkflowTimingExcludedStep, type WorkflowTimingExpectation, type WorkflowTimingFact, type WorkflowTimingFactKind, type WorkflowTimingObservation, type WorkflowTimingObservationResult, type WorkflowTimingOutcomeCounts, type WorkflowTimingPrediction, type WorkflowTimingProjectionStatus, type WorkflowTimingProvenance, type WorkflowTimingRebuildResult, type WorkflowTimingReconcileResult, type WorkflowTimingRevision, type WorkflowTimingRun, type WorkflowTimingRunDuration, type WorkflowTimingRunFact, type WorkflowTimingRunList, type WorkflowTimingRunListQuery, type WorkflowTimingRunProjection, type WorkflowTimingRunSummary, type WorkflowTimingRunTiming, type WorkflowTimingState, type WorkflowTimingStepDeclaration, type WorkflowTimingStepDefinition, type WorkflowTimingStepDuration, type WorkflowTimingStepFact, } from "./admin-workflow-timings.js";
|
|
17
|
+
import { AccountingEvidenceAdminClient } from "./admin-accounting-evidence.js";
|
|
18
|
+
import { CampaignEmailAdminClient } from "./admin-campaign-email.js";
|
|
19
|
+
import { EmailRelayAdminClient } from "./admin-email-relay.js";
|
|
20
|
+
import { EnvironmentPolicyAdminClient } from "./admin-environment-policy.js";
|
|
21
|
+
import { ErrorIssueAdminClient } from "./admin-error-issues.js";
|
|
22
|
+
import { EventTypeAdminClient } from "./admin-event-types.js";
|
|
23
|
+
import { ImpersonationAdminClient } from "./admin-impersonation.js";
|
|
24
|
+
import { IngestClaimAdminClient } from "./admin-ingest-claims.js";
|
|
25
|
+
import { ManagedAuditAdminClient } from "./admin-managed-audit.js";
|
|
26
|
+
import { AdminMeasurementNamespace } from "./admin-measurement-projects.js";
|
|
27
|
+
import { NotificationDestinationAdminClient } from "./admin-notification-destinations.js";
|
|
28
|
+
import { NotificationWebhookAdminClient } from "./admin-notification-webhooks.js";
|
|
29
|
+
import { OAuthClientAdmissionAdminClient } from "./admin-oauth-client-admissions.js";
|
|
30
|
+
import { RlsAdminClient } from "./admin-rls.js";
|
|
31
|
+
import { SdkUsageAdminClient } from "./admin-sdk-usage.js";
|
|
32
|
+
import type { SiteAIOwnerHandoff } from "./admin-site-ai.js";
|
|
33
|
+
import { SupportAccessAdminClient } from "./admin-support-access.js";
|
|
34
|
+
import { SystemAdminClient } from "./admin-system.js";
|
|
35
|
+
import { TimePlanAdminClient } from "./admin-timeplans.js";
|
|
36
|
+
import { UncertaintyModelAdminClient } from "./admin-uncertainty-models.js";
|
|
37
|
+
import { UsageAdminClient } from "./admin-usage.js";
|
|
38
|
+
import { AdminUserAdminClient } from "./admin-users.js";
|
|
39
|
+
import { WorkflowTimingAdminClient } from "./admin-workflow-timings.js";
|
|
40
|
+
import { AnalyticsEventClient } from "./analytics-events.js";
|
|
41
|
+
import { BackendLifecycleClient } from "./backend-lifecycle.js";
|
|
42
|
+
import { IngestOperationsClient } from "./ingest-operations.js";
|
|
43
|
+
import { MeasurementClient } from "./measurement.js";
|
|
44
|
+
import { ParserClient } from "./parsers.js";
|
|
45
|
+
import { PublicReadClient } from "./public-reads.js";
|
|
46
|
+
import type { CompletedRunExportRequest, ReportingDashboardCatalogue, ReportingDashboardGeneration, ReportingDashboardGenerationRequest, ReportingDraftPreviewRequest } from "./reporting-catalogue.js";
|
|
47
|
+
import { type EventSchemaDocument, type EventSchemaRegisterRequest, type EventSchemaStateResult, type EventSchemaVersionList, type RegisteredEventType, type RegisteredEventTypeList } from "./schema-registry.js";
|
|
48
|
+
import { type SiteAIOwnerSession } from "./site-ai-owner.js";
|
|
49
|
+
export type { AppRelease, AppReleaseCacheMode, AppReleaseCacheRule, AppReleaseCreateRequest, AppReleaseFile, AppReleaseFramingMode, AppReleaseHeaderRule, AppReleaseList, AppReleaseManifest, AppReleasePromotion, AppReleaseResponseHeader, AppReleaseRouting, AppReleaseShareableRoute, AppReleaseSiteCard, AppReleaseSpaFallback, AppReleaseState, AppReleaseSummary, AppReleaseUploadedFile, } from "./admin-app-releases.js";
|
|
50
|
+
export { APP_ERROR_CODES, APP_REASON_CODES, APP_SIGN_IN_MODES, APP_STATUSES, type AppCreateRequest, type AppCreation, type AppDeployCredential, type AppDeployCredentialList, type AppDeployCredentialSummary, type AppListResponse, type AppOverview, type AppReason, type AppReasonCode, type AppSignInMode, type AppSignInRequest, type AppStatus, type AppSummary, type AppTrafficReporting, } from "./admin-apps.js";
|
|
51
|
+
export { type ApplicationIdentityTrait, type ApplicationIdentityTraitsStatus, type ApplicationIdentityTraitValue, type ApplicationMembershipChoice, type ApplicationMembershipContext, type ApplicationMembershipRevocation, type ApplicationMembershipRevokeRequest, type ApplicationPrincipalErasure, type ApplicationPrincipalErasureRequest, type ApplicationPrincipalExport, type ApplicationPrincipalIdentityExport, type ApplicationPrincipalListItem, type ApplicationPrincipalListQuery, type ApplicationPrincipalListResponse, type ApplicationPrincipalMembershipView, type ApplicationPrincipalProfile, type ApplicationPrincipalProfileValueView, type ApplicationPrincipalSuspension, type ApplicationPrincipalTarget, type ApplicationProfileField, type ApplicationProfileValue, type ApplicationProfileValuesRequest, type ApplicationSession, type ApplicationSessionInventory, type ApplicationSessionRevocation, type ApplicationSessionRevokeRequest, type ApplicationSessionsRevokeAllRequest, type AudienceGrant, type AudienceGrantRequest, type AuthEnvironmentClientCleanup, type AuthEnvironmentHostingRemoval, type AuthEnvironmentHostingWithdrawal, type AuthEnvironmentRetainedResources, AuthProjectAdminClient, type AuthProjectApplicationSessionPolicy, type AuthProjectAudienceBinding, type AuthProjectCapability, type AuthProjectChange, type AuthProjectClientRegistration, type AuthProjectClientSync, type AuthProjectClientSyncRegistration, type AuthProjectClientSyncReport, type AuthProjectClientSyncRequest, type AuthProjectConfiguredState, type AuthProjectCreateRequest, type AuthProjectCreation, type AuthProjectDeletion, type AuthProjectDeletionRequest, type AuthProjectDesiredState, type AuthProjectDesiredStateRequest, type AuthProjectDirectoryAction, type AuthProjectDirectoryCapacity, type AuthProjectDirectoryRequest, type AuthProjectDirectoryStatus, type AuthProjectDirectoryView, type AuthProjectEnvironmentCreateRequest, type AuthProjectEnvironmentDeletion, type AuthProjectEnvironmentDeletionRequest, type AuthProjectEnvironmentOffboarding, type AuthProjectEnvironmentOffboardRequest, type AuthProjectEnvironmentOrganisation, type AuthProjectEnvironmentOrganisationList, type AuthProjectEnvironmentReleasedResources, type AuthProjectHostedSignIn, type AuthProjectHosting, type AuthProjectHostingCapability, type AuthProjectHostingIngestTarget, type AuthProjectHostingMode, type AuthProjectHostingRemoval, type AuthProjectHostingStatus, type AuthProjectIdentityMode, type AuthProjectInvitation, type AuthProjectInvitationIssued, type AuthProjectInvitationIssueRequest, type AuthProjectInvitationListResponse, type AuthProjectInvitationRedeliveryRequest, type AuthProjectInvitationRevocationRequest, type AuthProjectListResponse, type AuthProjectOperation, type AuthProjectPreview, type AuthProjectProfileField, AuthProjectRealmNotConvergedError, AuthProjectRealmProvisionError, type AuthProjectRealmProvisionReceipt, type AuthProjectRealmProvisionRequest, type AuthProjectRealmStep, type AuthProjectReleasedResources, type AuthProjectSocialProvider, type AuthProjectSocialProviderName, type AuthProjectSocialSignIn, type AuthProjectSocialSignInStatus, type AuthProjectStatus, type AuthProjectSummary, type PrincipalAudience, type PrincipalAudiences, } from "./admin-auth-projects.js";
|
|
52
|
+
export { type ClientSetupApplyAndWaitOptions, type ClientSetupApplyAndWaitResult, type ClientSetupApplyOptions, type ClientSetupApplyResponse, ClientSetupClient, type ClientSetupEventTypeDesiredState, type ClientSetupManifest, type ClientSetupOAuthClientDesiredState, type ClientSetupOAuthPurposeProfile, type ClientSetupOperationPending, type ClientSetupOperationStatus, type ClientSetupPrivacyDesiredState, type ClientSetupPrivacyRule, type ClientSetupReadinessResponse, type ClientSetupReportingPackDesiredState, type ClientSetupResourceStatus, type ClientSetupRetentionDesiredState, type ClientSetupSchemaDesiredState, validateClientSetupManifest, } from "./admin-client-setup.js";
|
|
53
|
+
export { DataLabelAdminClient, type DataLabelAssignmentListResponse, type DataLabelCatalogue, type DataLabelCatalogueAssignment, type DataLabelCatalogueDataset, type DataLabelCataloguePack, type DataLabelCatalogueResponse, type DataLabelDefinition, type DataLabelDefinitionCreateRequest, type DataLabelDefinitionListResponse, type DataLabelDefinitionUpdateRequest, type DataLabelPropagationPolicy, type DataLabelSensitivity, type DataLabelUsage, type DataLabelUsageListResponse, type DataLabelValue, type DataLabelValueCreateRequest, type DataLabelValueUpdateRequest, type DescriptiveDataLabel, type EventTypeDataLabelDefault, type EventTypeDataLabelDefaultRequest, type SchemaFieldDataLabelAssignment, type SchemaFieldDataLabelAssignmentRequest, } from "./admin-data-labels.js";
|
|
54
|
+
export { type DataScope, type DataScopeAction, DataScopeAdminClient, type DataScopeCreateRequest, type DataScopeGrant, type DataScopeGrantListResponse, type DataScopeGrantTarget, type DataScopeGrantTargetKind, type DataScopeListResponse, type DataScopePrincipalKind, type DataScopePrincipalRef, type DataScopeResource, type DataScopeResourceCreateRequest, type DataScopeResourceListResponse, type DataScopeResourceUpdateRequest, type DataScopeStatus, type DataScopeUpdateRequest, validDataScopeCode, validDataScopeName, } from "./admin-data-scopes.js";
|
|
55
|
+
export { type OffboardingAcknowledgeResponse, type OffboardingCancelRequest, OffboardingClient, type OffboardingDownloadResponse, type OffboardingDownloadStream, type OffboardingExecuteResponse, type OffboardingExportResponse, type OffboardingPreviewExclusion, type OffboardingPreviewResponse, type OffboardingPreviewStore, type OffboardingReceiptPerStore, type OffboardingReceiptResponse, type OffboardingRequest, type OffboardingRequestCreate, type OffboardingRequesterKind, type OffboardingRetryResponse, type OffboardingSchedule, type OffboardingScheduleListResponse, type OffboardingScheduleRequest, type OffboardingWaiver, } from "./admin-offboarding.js";
|
|
56
|
+
export { type PredictionActivateRequest, PredictionAdminClient, type PredictionDefinition, type PredictionDefinitionCreateRequest, type PredictionDefinitionListResponse, type PredictionDefinitionUpdateRequest, type PredictionEvaluationSummary, type PredictionOutcomeListResponse, type PredictionOutcomeSummary, type PredictionPauseRequest, type PredictionProjectKind, type PredictionRunListResponse, type PredictionRunNowRequest, type PredictionRunSummary, type PredictionSignalSource, type PredictionSignalSourceCreateRequest, type PredictionSignalSourceListResponse, type PredictionThresholdEvent, type PredictionThresholdEventListResponse, type PredictionVersion, type PredictionVersionPublishRequest, } from "./admin-predictions.js";
|
|
57
|
+
export { type PrivacyErasure, PrivacyErasureClient, type PrivacyErasureCreateRequest, PrivacyErasureError, type PrivacyErasureListResponse, type PrivacyErasureRetryClassification, type PrivacyErasureSelector, type PrivacyErasureState, type PrivacyErasureWaitOptions, } from "./admin-privacy-erasures.js";
|
|
58
|
+
export { type RetentionClass, RetentionClient, type RetentionPolicy, type RetentionPolicyListResponse, type RetentionPolicyUpsertRequest, type RetentionRun, type RetentionRunPreview, type RetentionRunsListResponse, type RetentionRunsPage, type RetentionScope, type RetentionStoreBreakdown, } from "./admin-retention.js";
|
|
59
|
+
export type { SiteAIConsentRequest, SiteAIMode, SiteAIOwnerHandoff, SiteAIOwnerHandoffRequest, SiteAIPlatformUsage, SiteAIProduct, SiteAISettings, SiteAISettingsRequest, SiteAITenantUsage, SiteAIUsage, SiteAIUsagePeriod, SiteAIUsageRow, } from "./admin-site-ai.js";
|
|
60
|
+
export { SITE_ANALYTICS_CONNECTION_NOT_FOUND_CODE, SITE_ANALYTICS_PROPERTY_INVALID_CODE, SITE_ANALYTICS_PROVIDER_GA4, type SiteAnalyticsConnection, type SiteAnalyticsConnectionRequest, type SiteAnalyticsReport, type SiteAnalyticsRow, type SiteAnalyticsUnavailable, SiteAnalyticsUnavailableReport, } from "./admin-site-analytics.js";
|
|
61
|
+
export { SITE_AUDIT_PAGES_DEFAULT_LIMIT, SITE_AUDIT_PAGES_MAX_LIMIT, SITE_LIGHTHOUSE_MAX_EXTRA_PAGES, SITE_LIGHTHOUSE_PAGE_NOT_EXTRA_CODE, type SiteAuditDelta, type SiteAuditPage, SiteAuditPageIndexability, type SiteAuditPageList, SiteAuditRun, type SiteLighthousePages, type SiteLighthouseRequestOptions, } from "./admin-site-audit-pages.js";
|
|
62
|
+
export { SITE_CAMPAIGN_LINK_LIMIT_CODE, SITE_CAMPAIGN_LINK_TAKEN_CODE, SITE_CAMPAIGN_LINKS_MAX, type SiteCampaignLink, type SiteCampaignLinkList, type SiteCampaignLinkRequest, } from "./admin-site-campaign-links.js";
|
|
63
|
+
export { SITE_BROWSER_COLLECTOR_MODES, SITE_DOMAIN_NOT_VERIFIED_CODE, SITE_FINDING_DISMISSAL_SCOPES, SITE_SEARCH_CONNECTION_NOT_FOUND_CODE, SITE_SEARCH_NOT_CONFIGURED_CODE, SITE_SEARCH_RETRY_NOT_FAILING_CODE, type SiteAlertDestination, type SiteAlertDestinationRequest, type SiteAuditSummary, type SiteBrowserCollector, type SiteBrowserCollectorMode, type SiteBrowserCollectorRequest, type SiteCheckMode, type SiteChromeUX, type SiteChromeUXObservation, type SiteDomain, SiteDomainAdminClient, type SiteDomainAttestation, type SiteDomainAudit, type SiteDomainChecks, type SiteDomainCreateRequest, type SiteDomainList, type SiteDomainOwnership, type SiteDomainRequestOptions, type SiteDomainVerification, type SiteDomainVerifiedBy, type SiteFinding, type SiteFindingDismissal, type SiteFindingDismissalRequest, type SiteFindingDismissalScope, type SiteFindingDismissals, type SiteFindingHistory, type SiteFindingList, type SiteFindingSeverity, type SiteFindingState, type SiteFindingSuggestion, type SiteIncident, type SiteIncidentList, type SiteProbe, type SiteProbeDetail, type SiteProbeList, type SiteProbeSpec, type SiteRegistration, SiteRule, type SiteRuleId, type SiteSearchAccount, type SiteSearchConnection, type SiteSearchConnectionRequest, type SiteSearchConnectionStatus, type SiteSearchDay, type SiteSearchPerformance, type SiteSearchProvider, type SiteSearchRow, type SiteSearchSource, type SiteSearchTotals, type SiteTLS, type SiteUptime, type SiteUptimeStatus, type SiteWarming, } from "./admin-site-domains.js";
|
|
64
|
+
export { SITE_INSIGHTS_EXPORT_SCHEMA, SITE_INSIGHTS_EXPORT_SEARCH_METRICS_MAX_LIMIT, type SiteInsightsExport, type SiteInsightsMonitoringExport, type SiteInsightsReportsExport, type SiteInsightsSearchExport, type SiteInsightsSiteExport, type SiteSearchMetricDay, SiteSearchMetricDimension, type SiteSearchMetricPage, type SiteSearchMetricsQuery, } from "./admin-site-export.js";
|
|
65
|
+
export { type IndexNowState, type IndexNowSubmission, type IndexNowSubmissionRequest, IndexNowSubmissionStatus, SITE_CHOICE_REQUIRED_CODE, SITE_INDEXNOW_DOMAIN_UNVERIFIED_CODE, SITE_INDEXNOW_KEY_UNVERIFIED_CODE, SITE_INDEXNOW_LIMIT_CODE, SITE_INDEXNOW_NOT_ENABLED_CODE, SITE_INDEXNOW_URLS_INVALID_CODE, SITE_PAGE_NOT_ON_DOMAIN_CODE, SITE_PAGE_NOT_READ_CODE, SITE_PAGE_RECHECK_LIMIT_CODE, SITE_PAGE_RECHECK_READ_LIMIT, SITE_SEARCH_INSPECTION_LIMIT_CODE, SITE_SEARCH_INSPECTION_NOT_CONNECTED_CODE, SITE_SEARCH_INSPECTION_URL_INVALID_CODE, type SiteGeneratedFix, SiteGeneratedFormat, type SiteHreflangLink, type SiteLighthouseHistory, type SiteLighthouseMetrics, type SiteLighthousePageComparison, type SiteLighthouseProfile, type SiteLighthouseRun, type SiteLighthouseScores, type SiteMarket, type SiteObservedWording, type SitePageCheckRequest, type SitePageCheckResponse, SitePageCheckScope, type SitePageFacts, type SitePageFinding, type SitePageHeading, type SitePageOpenGraph, type SitePageReadability, type SitePageRecheck, type SitePageRecheckList, SitePageRecheckState, type SitePageRobots, type SitePageTwitter, type SitePageWordingQuery, type SitePhraseUse, type SiteProjectContext, type SiteProjectContextRequest, type SiteRemedy, SiteRemedyKind, type SiteReport, type SiteReportAudit, type SiteReportCertificate, type SiteReportFinding, type SiteReportSearch, type SiteReportShare, type SiteReportShareCreated, type SiteReportShareList, type SiteReportShareRequest, type SiteReportSpeed, type SiteReportUptime, type SiteResponseHour, type SiteRobotsRule, type SiteRobotsTestRequest, type SiteRobotsTestResponse, type SiteSearchDimension, type SiteSearchInspection, type SiteSearchInspectionList, type SiteSearchInspectionStatus, type SiteSearchRowPage, type SiteSearchRowsQuery, type SiteSearchUnavailable, type SiteUptimeDay, type SiteUptimeHistory, type SiteUptimeWindow, type SiteUptimeWindows, type SiteWordingCompare, type SiteWordingCompareRequest, type SiteWordingObservation, type SiteWordingObservationState, } from "./admin-site-insights.js";
|
|
66
|
+
export { SiteInsightsAdminClient, type SiteInsightsBacklog, type SiteInsightsTaskList, SiteInsightsTaskName, type SiteInsightsTaskStatus, } from "./admin-site-insights-tasks.js";
|
|
67
|
+
export { type SiteDomainAuthority, SiteLinkSource, SiteLinkSourceStatus, type SiteLinkSourceTotal, type SiteLostLinks, type SiteLostReferringDomain, type SiteReferringDomain, type SiteReferringDomains, } from "./admin-site-links.js";
|
|
68
|
+
export { PRIVATE_UPTIME_FAILURES, PRIVATE_UPTIME_STATUSES, type PrivateUptimeCredential, type PrivateUptimeFailure, type PrivateUptimeMonitor, type PrivateUptimeReport, type PrivateUptimeStatus, type PrivateUptimeWork, SITE_HEARTBEAT_OUTCOMES, SITE_HEARTBEAT_STATUSES, type SiteHeartbeatCreateRequest, type SiteHeartbeatCredential, type SiteHeartbeatList, type SiteHeartbeatMonitor, type SiteHeartbeatOutcome, type SiteHeartbeatReceipt, type SiteHeartbeatReport, type SiteHeartbeatSchedule, type SiteHeartbeatStatus, type SiteMaintenanceWindow, type SiteMaintenanceWindowRequest, type SiteMaintenanceWindows, } from "./admin-site-monitors.js";
|
|
69
|
+
export { SITE_NEXT_ACTIONS_MAX, type SiteFindingCounts, type SiteNextAction, SiteNextActionKind, SiteNextActionPlace, type SiteNextActions, type SiteNextActionTarget, SiteNotChecked, type SitePortfolioDomain, type SitePortfolioSummary, } from "./admin-site-next-actions.js";
|
|
70
|
+
export { type SitePageLinkSource, SitePageLinkSourceWhere, SitePageQueriesState, type SitePageQuery, type SitePageQueryWindow, type SitePageSearchQueries, type SiteTitleOption, SiteTitleTemplate, } from "./admin-site-page-queries.js";
|
|
71
|
+
export { SITE_RANKINGS_DAYS_INVALID_CODE, SITE_RANKINGS_DEFAULT_DAYS, SITE_RANKINGS_MAX_DAYS, SITE_TRACKED_KEYWORD_ALL, SITE_TRACKED_KEYWORD_DEFAULT_NOTIFY_POSITION, SITE_TRACKED_KEYWORD_DUPLICATE_CODE, SITE_TRACKED_KEYWORD_INVALID_CODE, SITE_TRACKED_KEYWORD_LIMIT_CODE, SITE_TRACKED_KEYWORD_NOT_FOUND_CODE, SITE_TRACKED_KEYWORDS_MAX, SiteRankDevice, type SiteRankings, SiteRankingsSource, type SiteRankObservation, SiteRankState, type SiteTrackedKeyword, SiteTrackedKeywordStatus, type SiteTrackedKeywordUpdate, type SiteTrackKeywordRequest, } from "./admin-site-rankings.js";
|
|
72
|
+
export { SAVED_SITE_REPORT_LIMIT_CODE, SAVED_SITE_REPORT_NAME_TAKEN_CODE, type SavedSiteReport, type SavedSiteReportList, type SavedSiteReportRequest, type SavedSiteReportSummary, SITE_SAVED_REPORTS_MAX, type SiteReportRequestOptions, SiteReportTemplate, } from "./admin-site-saved-reports.js";
|
|
73
|
+
export { SEARCH_POOL_MIN_CONTRIBUTORS, SEARCH_POOL_MIN_IMPRESSIONS, SEARCH_POOL_QUERIES_DEFAULT_LIMIT, SEARCH_POOL_QUERIES_MAX_LIMIT, SEARCH_POOL_SEARCH_MAX_LENGTH, SEARCH_POOL_TERMS_VERSION, SEARCH_POOL_WINDOW_DAYS, SearchPoolAccess, type SearchPoolBand, SearchPoolDemandBand, type SearchPoolPositions, type SearchPoolQuery, type SearchPoolQueryPage, type SearchPoolSetting, SITE_SEARCH_POOL_NOT_JOINED_CODE, SITE_SEARCH_POOL_QUERY_INVALID_CODE, SITE_SEARCH_POOL_SETTING_INVALID_CODE, SITE_SEARCH_POOL_SITE_BOUND_CODE, } from "./admin-site-search-pool.js";
|
|
74
|
+
export { SITE_FINDING_IMPACT_DEFAULT_DAYS, SITE_FINDING_IMPACT_MAX_DAYS, SITE_FINDING_IMPACT_MIN_DAYS, SITE_SEARCH_VALUE_DEFAULT_DAYS, SITE_SEARCH_VALUE_MAX_DAYS, SITE_SEARCH_VALUE_MAX_GOALS, SITE_SEARCH_VALUE_MAX_PAGES, type SiteFindingImpact, type SiteFindingImpactPeriod, type SiteFindingImpactSource, SiteFindingImpactStatus, type SiteFindingImpactWindow, SiteSearchGoalStatus, type SiteSearchValue, type SiteSearchValuePage, } from "./admin-site-search-value.js";
|
|
75
|
+
export { type SiteStatusComponent, type SiteStatusComponentStatus, type SiteStatusPage, type SiteStatusPageDraft, type SiteStatusPagePublication, type SiteStatusPageSelection, type SiteStatusPageSettings, type SiteStatusUpdate, type SiteStatusUpdateHistory, type SiteStatusUpdateRequest, siteStatusPagePublicUrl, } from "./admin-site-status-page.js";
|
|
76
|
+
export { ACCESS_LOG_HOUR_INVALID_CODE, type AccessLogHourReplay, AccessLogHourStatus, type SiteAIPage, type SiteAIVisibility, SiteCrawlerIdentity, SiteReferrerClass, type SiteTraffic, type SiteTrafficCount, type SiteTrafficCoverage, type SiteTrafficCrawler, type SiteTrafficDay, SiteTrafficDayCoverage, type SiteTrafficReferrer, type SiteTrafficReferrerClass, type SiteTrafficSlowPath, type SiteTrafficTotals, TRAFFIC_OTHER_KEY, } from "./admin-site-traffic.js";
|
|
77
|
+
export { SITE_KEYWORD_DEMAND_SOURCE_BING, SITE_KEYWORD_LIST_LIMIT_CODE, SITE_KEYWORD_LIST_NOT_FOUND_CODE, type SiteContentGap, type SiteContentGapCompetitor, SiteContentGapCoverage, type SiteContentGapPage, type SiteContentGapTopic, type SiteKeywordCluster, type SiteKeywordClusters, type SiteKeywordDemand, type SiteKeywordDemandSet, SiteKeywordDemandState, type SiteKeywordList, type SiteKeywordListRequest, type SiteKeywordLists, type SiteRelatedKeyword, type SiteRelatedKeywords, type SiteStrikingKeyword, type SiteTopicTrend, type SiteTopicTrendMonth, SiteTopicTrendSource, SiteTopicTrendStatus, SiteTrancoBand, type SiteWebDomain, SiteWebDomainRole, type SiteWebDomains, SiteWebInventoryStatus, type SiteWebPage, SiteWebPageSource, type SiteWebPages, type SiteWebPagesQuery, } from "./admin-site-web-data.js";
|
|
78
|
+
export { type SubjectExport, type SubjectExportArtifactScope, SubjectExportClient, type SubjectExportCreateRequest, type SubjectExportDownloadResponse, type SubjectExportForceOptions, type SubjectExportListResponse, type SubjectExportScope, type SubjectExportStatus, type SubjectExportStoreProgress, } from "./admin-subject-exports.js";
|
|
79
|
+
export { TenantStorageClient, type TenantStorageListResponse, type TenantStorageLocation, } from "./admin-tenant-storage.js";
|
|
80
|
+
export { type TimePlan, TimePlanAdminClient, type TimePlanAllocation, type TimePlanAllocationBasis, type TimePlanAllocationPreview, type TimePlanAnnotation, type TimePlanAnnotationField, type TimePlanAnnotationInput, type TimePlanAnnotationListResponse, type TimePlanAnnotationSchema, type TimePlanAnnotationType, type TimePlanCalculationChange, type TimePlanCalculationReceipt, type TimePlanCommandRequest, type TimePlanCommandResult, type TimePlanCorrectedCommand, type TimePlanCreatedRun, type TimePlanDefinition, type TimePlanDefinitionBlock, type TimePlanDraftRequest, type TimePlanDraftRevisionRequest, type TimePlanHistoryResponse, type TimePlanListResponse, type TimePlanRedactionRequest, type TimePlanRevisionRequest, type TimePlanRun, type TimePlanRunBlock, type TimePlanRunRequest, type TimePlanStoredDefinition, type TimePlanThresholdCue, type TimePlanThresholdCueSeverity, type TimePlanTransition, type TimePlanVersion, validateTimePlanDefinition, } from "./admin-timeplans.js";
|
|
81
|
+
export { USAGE_DEFAULT_LIMIT, USAGE_MAX_LIMIT, UsageAdminClient, type UsageCompletenessState, type UsageQuery, type UsageReport, type UsageRow, type UsageTotal, } from "./admin-usage.js";
|
|
82
|
+
export { ANALYTICS_MAX_LABEL_FILTERS, ANALYTICS_MAX_RANGE_DAYS, ANALYTICS_RANGE_GROUP_BY, AnalyticsEventClient, type AnalyticsEventQueryRequest, type AnalyticsEventQueryResponse, type AnalyticsEventRangeBucket, type AnalyticsEventRangeQueryRequest, type AnalyticsEventRangeQueryResponse, type AnalyticsEventRow, type AnalyticsEventSourceSummary, type AnalyticsEventTiming, type AnalyticsLabelFilter, type AnalyticsQuerySource, type AnalyticsRangeQuerySource, } from "./analytics-events.js";
|
|
83
|
+
export { BackendLifecycleClient, type BackendLifecycleDownloader, type BackendLifecycleRequester, type CompleteOffboardingOptions, type CompleteOffboardingResult, createVerifiedOffboardingExportReceiver, type OneTimeCredentialSecret, type PersistOffboardingExport, type PersistOneTimeCredentialSecret, type ReceiveAndVerifyOffboardingExport, type RotateCredentialOptions, type RotateCredentialResult, type VerifiedExportReceiverOptions, type VerifyZeroState, type ZeroStateReconciliationOptions, type ZeroStateReconciliationResult, } from "./backend-lifecycle.js";
|
|
84
|
+
export { BrowserSignIn, type BrowserSignInConfig, type BrowserSignInEndpoints, type CustdDiscoveryDocument, type CustdDiscoverySignIn, createSignInCodeChallenge, DEFAULT_SIGN_IN_SCOPES, SIGN_IN_ERROR_CODES, SIGN_IN_STATUSES, type SignInCompletion, type SignInDiscoveryOptions, SignInError, type SignInErrorCode, type SignInRestoreResult, type SignInSession, type SignInStart, type SignInStartOptions, type SignInState, type SignInStatus, type SignInStorage, type SignOutOptions, type SignOutResult, signInConfigFromDiscovery, } from "./browser-sign-in.js";
|
|
85
|
+
export type { CustdDownloadStream } from "./download-stream.js";
|
|
86
|
+
export { DEFAULT_PARSER_FRAMING_MAX_LINES, DEFAULT_PARSER_FRAMING_MAX_RECORD_BYTES, MAX_PARSER_FRAMING_LINES, MAX_PARSER_FRAMING_RECORD_BYTES, ParserClient, type ParserDefinition, type ParserDeleteResponse, type ParserFraming, type ParserFramingOutcome, type ParserFramingType, type ParserGeneratedFieldConfig, type ParserListResponse, type ParserPreset, type ParserPresetListResponse, type ParserPreviewDefinition, type ParserPreviewRequest, type ParserPreviewResponse, type ParserPreviewRow, type ParserSaveRequest, type ParserType, } from "./parsers.js";
|
|
87
|
+
export { classifyReportingData, getReportingViewState, type ReportingDataState, type ReportingQueryState, type ReportingViewState, reportingQueryKey, } from "./reporting-state.js";
|
|
88
|
+
export { checkRuntimeReadiness, type RuntimeReadinessCredentialResult, type RuntimeReadinessOAuthConfig, type RuntimeReadinessOptions, type RuntimeReadinessResult, } from "./runtime-readiness.js";
|
|
89
|
+
export type EventContext = {
|
|
90
|
+
page?: {
|
|
91
|
+
url?: string;
|
|
92
|
+
path?: string;
|
|
93
|
+
title?: string;
|
|
94
|
+
referrer?: string;
|
|
95
|
+
};
|
|
96
|
+
device?: {
|
|
97
|
+
type?: string;
|
|
98
|
+
os?: string;
|
|
99
|
+
browser?: string;
|
|
100
|
+
};
|
|
101
|
+
locale?: string;
|
|
102
|
+
timezone?: string;
|
|
103
|
+
ip?: string;
|
|
104
|
+
appVersion?: string;
|
|
105
|
+
networkState?: "offline" | "online" | "unknown";
|
|
106
|
+
};
|
|
107
|
+
export { createMobileAsyncQueueStorage, createMobileFlushTriggers, type MobileAppState, type MobileFlushTriggerOptions, type MobileKeyValueStorage, type MobileNetwork, type MobileNetworkState, type MobileSubscription, } from "./mobile-adapter.js";
|
|
108
|
+
export { createMobileEvent, type MobileEventContext, type MobileEventInput, type MobileNetworkState as MobileEventNetworkState, type MobilePlatform, type MobileSubject, } from "./mobile-context.js";
|
|
109
|
+
export { AsyncEventQueue, type AsyncQueueStorage } from "./mobile-queue.js";
|
|
110
|
+
export type EventEnvelope = {
|
|
111
|
+
eventUuid?: string;
|
|
112
|
+
eventTypeSlug: string;
|
|
113
|
+
schemaVersion: string;
|
|
114
|
+
timestamp: string;
|
|
115
|
+
sessionId?: string;
|
|
116
|
+
anonymousId?: string;
|
|
117
|
+
userUuid?: string | null;
|
|
118
|
+
companySlug?: string;
|
|
119
|
+
/**
|
|
120
|
+
* The environment this event came from. One credential serves every
|
|
121
|
+
* environment, so this is how a preview build, a staging deploy, or a local
|
|
122
|
+
* machine declares itself without provisioning another credential. It is sent
|
|
123
|
+
* as the reserved `custd.environment` label, not as a field of its own.
|
|
124
|
+
*/
|
|
125
|
+
environment?: string;
|
|
126
|
+
labels?: Record<string, string>;
|
|
127
|
+
context: EventContext;
|
|
128
|
+
payload: Record<string, unknown>;
|
|
129
|
+
};
|
|
130
|
+
export type DogfoodEventInput = {
|
|
131
|
+
eventTypeSlug: string;
|
|
132
|
+
schemaVersion: string;
|
|
133
|
+
companySlug: string;
|
|
134
|
+
sourceSystem: string;
|
|
135
|
+
sourceCompany: string;
|
|
136
|
+
environment: string;
|
|
137
|
+
correlationId?: string;
|
|
138
|
+
strictPayloadKeys?: boolean;
|
|
139
|
+
payload?: Record<string, unknown>;
|
|
140
|
+
};
|
|
141
|
+
export type ProblemDetails = {
|
|
142
|
+
type: string;
|
|
143
|
+
title: string;
|
|
144
|
+
status: number;
|
|
145
|
+
detail?: string;
|
|
146
|
+
code?: string;
|
|
147
|
+
instance?: string;
|
|
148
|
+
traceId?: string;
|
|
149
|
+
fields?: Record<string, string>;
|
|
150
|
+
retryability?: "none" | "bounded";
|
|
151
|
+
nextAction?: {
|
|
152
|
+
action: "none" | "poll" | "retry" | "rotate" | "escalate";
|
|
153
|
+
pollAfterSeconds?: number;
|
|
154
|
+
maxRetries?: number;
|
|
155
|
+
};
|
|
156
|
+
};
|
|
157
|
+
type EventResult = {
|
|
158
|
+
eventUuid?: string;
|
|
159
|
+
success?: boolean;
|
|
160
|
+
status?: number;
|
|
161
|
+
error?: ProblemDetails;
|
|
162
|
+
};
|
|
163
|
+
/**
|
|
164
|
+
* The declarative default data-scope target for one raw upload. Both fields are
|
|
165
|
+
* registered immutable codes supplied as a pair, never numeric identities.
|
|
166
|
+
*/
|
|
167
|
+
export type RawSourceTarget = {
|
|
168
|
+
subClient: string;
|
|
169
|
+
resource: string;
|
|
170
|
+
};
|
|
171
|
+
/** One raw, line-delimited upload for the bound parser. */
|
|
172
|
+
export type RawIngestRequest = {
|
|
173
|
+
content: string;
|
|
174
|
+
/** Binds the parser executed for every line (X-Parser-UUID). */
|
|
175
|
+
parserUuid: string;
|
|
176
|
+
target?: RawSourceTarget;
|
|
177
|
+
/**
|
|
178
|
+
* Opts the upload into stable admission. Absent means the existing one-shot
|
|
179
|
+
* unkeyed behavior with no safe replay.
|
|
180
|
+
*/
|
|
181
|
+
idempotencyKey?: RawRequestIdempotencyKey;
|
|
182
|
+
};
|
|
183
|
+
/** The caller-supplied raw upload intent. */
|
|
184
|
+
export type RawIngestInput = {
|
|
185
|
+
content: string;
|
|
186
|
+
parserUuid: string;
|
|
187
|
+
target?: RawSourceTarget;
|
|
188
|
+
};
|
|
189
|
+
/**
|
|
190
|
+
* A standard raw-upload idempotency key: `<unix-milliseconds>:<uuid-v4>`. The
|
|
191
|
+
* same key and the same body/parser/target let the backend return the accepted
|
|
192
|
+
* receipt again instead of landing a second copy; a changed intent under the
|
|
193
|
+
* same key is refused with a conflict. It carries no payload or credential.
|
|
194
|
+
*/
|
|
195
|
+
export type RawRequestIdempotencyKey = string;
|
|
196
|
+
/**
|
|
197
|
+
* Mint a fresh key from the current time and a random UUIDv4. Mint it ONCE per
|
|
198
|
+
* request object so a resend reuses the key; a genuinely repeated occurrence
|
|
199
|
+
* needs a new request object and therefore a new key.
|
|
200
|
+
*/
|
|
201
|
+
export declare function createRawRequestIdempotencyKey(): RawRequestIdempotencyKey;
|
|
202
|
+
/** Mint one prepared request with a fresh, retained idempotency key. */
|
|
203
|
+
export declare function createRawIngestRequest(input: RawIngestInput): RawIngestRequest;
|
|
204
|
+
/**
|
|
205
|
+
* The POST /api/v1/raw acceptance body. The route always answers 202 Accepted,
|
|
206
|
+
* so the status alone is not per-record success: read `processed` and `failed`.
|
|
207
|
+
*/
|
|
208
|
+
export type RawIngestResult = {
|
|
209
|
+
success: boolean;
|
|
210
|
+
processed: number;
|
|
211
|
+
failed: number;
|
|
212
|
+
};
|
|
213
|
+
export type ProducerOAuthConfig = {
|
|
214
|
+
clientId: string;
|
|
215
|
+
clientSecret: string;
|
|
216
|
+
tokenUrl: string;
|
|
217
|
+
audience?: string;
|
|
218
|
+
scopes?: string[];
|
|
219
|
+
};
|
|
220
|
+
export type ProvisionedProducerCredentials = {
|
|
221
|
+
companySlug: string;
|
|
222
|
+
baseUrl: string;
|
|
223
|
+
tokenUrl: string;
|
|
224
|
+
audience?: string;
|
|
225
|
+
clientId: string;
|
|
226
|
+
clientSecret: string;
|
|
227
|
+
scopes?: string[];
|
|
228
|
+
environment?: string;
|
|
229
|
+
producerSlug?: string;
|
|
230
|
+
/** The environments this producer may send; empty when it may send any. */
|
|
231
|
+
allowedEnvironments?: string[];
|
|
232
|
+
};
|
|
233
|
+
/** A rotated producer secret, with where to mint tokens with it. Shown once. */
|
|
234
|
+
export type ProducerSecretRotation = {
|
|
235
|
+
clientId: string;
|
|
236
|
+
clientSecret: string;
|
|
237
|
+
baseUrl: string;
|
|
238
|
+
tokenUrl: string;
|
|
239
|
+
audience: string;
|
|
240
|
+
};
|
|
241
|
+
export type ProducerProvisionListResponse = {
|
|
242
|
+
producers: ProducerProvisionPublicClient[];
|
|
243
|
+
};
|
|
244
|
+
export type RedactedProvisionedProducerCredentials = Omit<ProvisionedProducerCredentials, "clientSecret">;
|
|
245
|
+
export type DataSpaceCreate = {
|
|
246
|
+
slug: string;
|
|
247
|
+
companyName: string;
|
|
248
|
+
};
|
|
249
|
+
export type DataSpace = {
|
|
250
|
+
slug: string;
|
|
251
|
+
companyName: string;
|
|
252
|
+
parentCompanySlug: string;
|
|
253
|
+
enabled: boolean;
|
|
254
|
+
};
|
|
255
|
+
export type DataSpaceEntitlementState = {
|
|
256
|
+
enabled: boolean;
|
|
257
|
+
activeDataSpaces: number;
|
|
258
|
+
maxActiveDataSpaces: number;
|
|
259
|
+
maxActiveProducersPerDataSpace: number;
|
|
260
|
+
};
|
|
261
|
+
export type DataSpaceListResponse = {
|
|
262
|
+
dataSpaces: DataSpace[];
|
|
263
|
+
entitlement: DataSpaceEntitlementState;
|
|
264
|
+
};
|
|
265
|
+
/** The tenant's new data-space limits. */
|
|
266
|
+
export type DataSpaceEntitlementUpdateRequest = {
|
|
267
|
+
enabled: boolean;
|
|
268
|
+
maxActiveDataSpaces: number;
|
|
269
|
+
maxActiveProducersPerDataSpace: number;
|
|
270
|
+
};
|
|
271
|
+
/** How complete a stored-usage measurement is, and which calculation produced it. */
|
|
272
|
+
export type StorageMeasurementState = {
|
|
273
|
+
sourceWatermark: number;
|
|
274
|
+
completenessState: string;
|
|
275
|
+
calculationVersion: number;
|
|
276
|
+
};
|
|
277
|
+
/** One data space's retained storage. */
|
|
278
|
+
export type DataSpaceUsageRow = {
|
|
279
|
+
slug: string;
|
|
280
|
+
companyName: string;
|
|
281
|
+
enabled: boolean;
|
|
282
|
+
revokedAt?: string;
|
|
283
|
+
measuredAt: string;
|
|
284
|
+
retainedLogicalBytes: number;
|
|
285
|
+
retainedEventCount: number;
|
|
286
|
+
measurementState: StorageMeasurementState;
|
|
287
|
+
};
|
|
288
|
+
/** Retained storage across a parent tenant's data spaces. */
|
|
289
|
+
export type DataSpaceUsageSummary = {
|
|
290
|
+
parentCompanySlug: string;
|
|
291
|
+
retainedLogicalBytes: number;
|
|
292
|
+
retainedEventCount: number;
|
|
293
|
+
measuredAt: string;
|
|
294
|
+
measurementState: StorageMeasurementState;
|
|
295
|
+
dataSpaceCount: number;
|
|
296
|
+
dataSpaces: DataSpaceUsageRow[];
|
|
297
|
+
};
|
|
298
|
+
export type ProducerProvisionCreate = {
|
|
299
|
+
companySlug: string;
|
|
300
|
+
producerSlug: string;
|
|
301
|
+
displayName?: string;
|
|
302
|
+
environment?: string;
|
|
303
|
+
scopes?: string[];
|
|
304
|
+
scopeTemplate?: "events" | "schemas" | "managed-audit" | "managed-audit-reporting-read" | "managed-audit-reporting-subject-insight" | "managed-audit-event-read" | "site-insights" | "site-insights-read" | "site-ai-read" | "hosting-email-delivery" | "hosting-panel-read";
|
|
305
|
+
/** Restricts the producer to these environments; omitted or empty allows every environment. */
|
|
306
|
+
allowedEnvironments?: string[];
|
|
307
|
+
};
|
|
308
|
+
/** Where a data space erasure is in its life. */
|
|
309
|
+
export type DataSpaceErasureStatus = "requested" | "erasing" | "completed" | "failed";
|
|
310
|
+
/** The erasure request for one data space and how far it has got. */
|
|
311
|
+
export type DataSpaceErasure = {
|
|
312
|
+
requestUuid: string;
|
|
313
|
+
dataSpaceSlug: string;
|
|
314
|
+
parentCompanySlug: string;
|
|
315
|
+
status: DataSpaceErasureStatus;
|
|
316
|
+
requestedAt: string;
|
|
317
|
+
};
|
|
318
|
+
/** Replaces a signing producer's Ed25519 public keys: one or two base64 keys, two while rotating. */
|
|
319
|
+
export type ProducerSigningKeysUpdate = {
|
|
320
|
+
publicKeys: string[];
|
|
321
|
+
};
|
|
322
|
+
/** The public keys Custd now verifies a producer's signed events with. */
|
|
323
|
+
export type ProducerSigningKeys = {
|
|
324
|
+
clientId: string;
|
|
325
|
+
companySlug: string;
|
|
326
|
+
publicKeys: string[];
|
|
327
|
+
/** The keys' sha256 fingerprints, `sha256:<hex>`, in publicKeys order. */
|
|
328
|
+
keyFingerprints: string[];
|
|
329
|
+
};
|
|
330
|
+
/** Whether a data space still accepts signed events. */
|
|
331
|
+
export type DataSpaceSigningState = "active" | "revoked" | "erased";
|
|
332
|
+
/** Whether a signing producer's events are accepted. */
|
|
333
|
+
export type SigningProducerState = "ready" | "awaiting_keys" | "cancelled";
|
|
334
|
+
/** The signed events ingest refused for one producer, by reason. */
|
|
335
|
+
export type SigningRefusalCounts = {
|
|
336
|
+
bindingNotReady: number;
|
|
337
|
+
bindingCancelled: number;
|
|
338
|
+
invalidSignature: number;
|
|
339
|
+
lastRefusedAt?: string;
|
|
340
|
+
};
|
|
341
|
+
/** One signing producer of a data space: its keys and its refusals. */
|
|
342
|
+
export type SigningProducerStatus = {
|
|
343
|
+
clientId: string;
|
|
344
|
+
state: SigningProducerState;
|
|
345
|
+
keyFingerprints: string[];
|
|
346
|
+
refusals: SigningRefusalCounts;
|
|
347
|
+
};
|
|
348
|
+
/** Whether a data space's signing producers can deliver events. */
|
|
349
|
+
export type DataSpaceSigningStatus = {
|
|
350
|
+
dataSpaceSlug: string;
|
|
351
|
+
parentCompanySlug: string;
|
|
352
|
+
state: DataSpaceSigningState;
|
|
353
|
+
erasedAt?: string;
|
|
354
|
+
producers: SigningProducerStatus[];
|
|
355
|
+
};
|
|
356
|
+
/** Whether an adoption moved the Site or found it already moved. */
|
|
357
|
+
export type DataSpaceSiteAdoptionStatus = "adopted" | "already_adopted";
|
|
358
|
+
/** The result of moving a parent's Site into an owned data space. */
|
|
359
|
+
export type DataSpaceSiteAdoption = {
|
|
360
|
+
siteUuid: string;
|
|
361
|
+
dataSpaceSlug: string;
|
|
362
|
+
parentCompanySlug: string;
|
|
363
|
+
status: DataSpaceSiteAdoptionStatus;
|
|
364
|
+
movedRecords: number;
|
|
365
|
+
credentialClientIds: string[];
|
|
366
|
+
};
|
|
367
|
+
export type ProducerProvisionPublicClient = {
|
|
368
|
+
clientId: string;
|
|
369
|
+
companySlug: string;
|
|
370
|
+
producerSlug: string;
|
|
371
|
+
displayName?: string;
|
|
372
|
+
scopes: string[];
|
|
373
|
+
environment?: string;
|
|
374
|
+
/** The environments this producer may send; empty when it may send any. */
|
|
375
|
+
allowedEnvironments: string[];
|
|
376
|
+
};
|
|
377
|
+
export type ClientConfig = {
|
|
378
|
+
baseUrl: string;
|
|
379
|
+
/**
|
|
380
|
+
* The environment this process sends from: the default for events that do not
|
|
381
|
+
* declare their own. A credential is expected to carry every environment
|
|
382
|
+
* unless an operator deliberately restricts it.
|
|
383
|
+
*/
|
|
384
|
+
environment?: string;
|
|
385
|
+
getToken?: (options?: RequestOptions) => string | Promise<string>;
|
|
386
|
+
oauth?: ProducerOAuthConfig;
|
|
387
|
+
fetch?: typeof fetch;
|
|
388
|
+
defaultHeaders?: Record<string, string>;
|
|
389
|
+
/**
|
|
390
|
+
* The client company a system administrator's requests target. Admin routes
|
|
391
|
+
* receive it as the `companySlug` query parameter unless the call names its own;
|
|
392
|
+
* it never opens support context there. The ingest cleanup-job reads and cancel
|
|
393
|
+
* name their tenant only through `X-Custd-Effective-Company`, so those calls send
|
|
394
|
+
* it in that header, and the server then requires an active support grant for it.
|
|
395
|
+
* Ordinary tenant callers leave it unset.
|
|
396
|
+
*/
|
|
397
|
+
actingCompanySlug?: string;
|
|
398
|
+
retry?: RetryOptions;
|
|
399
|
+
batch?: BatchOptions;
|
|
400
|
+
queue?: QueueOptions;
|
|
401
|
+
compression?: CompressionOptions;
|
|
402
|
+
};
|
|
403
|
+
export type RequestOptions = {
|
|
404
|
+
signal?: AbortSignal;
|
|
405
|
+
/** Stable key for retry-safe POST operations supported by the API. */
|
|
406
|
+
idempotencyKey?: string;
|
|
407
|
+
/**
|
|
408
|
+
* The platform user a machine credential acts for, sent as
|
|
409
|
+
* X-Custd-Owning-User-UUID. Required by the /admin/auth-projects surface for a
|
|
410
|
+
* machine caller; a human administrator's own token subject is the actor and
|
|
411
|
+
* leaves it unset.
|
|
412
|
+
*/
|
|
413
|
+
owningUserUuid?: string;
|
|
414
|
+
};
|
|
415
|
+
export declare class AdminWorkflowError extends Error {
|
|
416
|
+
readonly status: number;
|
|
417
|
+
readonly reason: string;
|
|
418
|
+
readonly code: string;
|
|
419
|
+
readonly safeNextAction: string;
|
|
420
|
+
readonly name = "AdminWorkflowError";
|
|
421
|
+
constructor(status: number, reason: string, code: string, safeNextAction: string);
|
|
422
|
+
}
|
|
423
|
+
export declare class CustdRequestError extends Error {
|
|
424
|
+
readonly status: number | null;
|
|
425
|
+
readonly code: string;
|
|
426
|
+
readonly retryability: "none" | "bounded";
|
|
427
|
+
readonly nextAction: NonNullable<ProblemDetails["nextAction"]>;
|
|
428
|
+
readonly problem?: ProblemDetails | undefined;
|
|
429
|
+
readonly name = "CustdRequestError";
|
|
430
|
+
readonly cause?: unknown;
|
|
431
|
+
constructor(status: number | null, code: string, retryability: "none" | "bounded", nextAction: NonNullable<ProblemDetails["nextAction"]>, problem?: ProblemDetails | undefined, options?: {
|
|
432
|
+
cause?: unknown;
|
|
433
|
+
});
|
|
434
|
+
get unavailable(): boolean;
|
|
435
|
+
}
|
|
436
|
+
/**
|
|
437
|
+
* CustdRawAcceptanceUnknownError reports that a raw upload's acceptance could
|
|
438
|
+
* not be determined: the connection failed before a response arrived, the 202
|
|
439
|
+
* acceptance body was missing or malformed, or the response carried a status
|
|
440
|
+
* that does not prove rejection. The request may or may not have landed, so
|
|
441
|
+
* this error carries no retry guidance (`retryability` "none", `nextAction`
|
|
442
|
+
* "escalate"): there is no verified occurrence identity, and replaying the POST
|
|
443
|
+
* could double-land accepted records. The cause never carries the request
|
|
444
|
+
* payload or a token.
|
|
445
|
+
*/
|
|
446
|
+
export declare class CustdRawAcceptanceUnknownError extends Error {
|
|
447
|
+
readonly name = "CustdRawAcceptanceUnknownError";
|
|
448
|
+
readonly retryability: "none";
|
|
449
|
+
readonly nextAction: {
|
|
450
|
+
action: "escalate";
|
|
451
|
+
};
|
|
452
|
+
readonly cause?: unknown;
|
|
453
|
+
/** The original operation idempotency key, when the request carried one. */
|
|
454
|
+
readonly operationKey?: RawRequestIdempotencyKey;
|
|
455
|
+
constructor(options?: {
|
|
456
|
+
cause?: unknown;
|
|
457
|
+
operationKey?: RawRequestIdempotencyKey;
|
|
458
|
+
});
|
|
459
|
+
}
|
|
460
|
+
export type PreparedDataState = "accepted" | "processing" | "ready" | "failed";
|
|
461
|
+
export type PreparedDataAvailability = "complete" | "partial" | "stale" | "unavailable";
|
|
462
|
+
export type PreparedDataNextAction = "none" | "poll" | "retry" | "rotate" | "escalate";
|
|
463
|
+
export type PreparedDataStatus = {
|
|
464
|
+
tenantSlug: string;
|
|
465
|
+
processingState: PreparedDataState;
|
|
466
|
+
availability: PreparedDataAvailability;
|
|
467
|
+
observedAt: string;
|
|
468
|
+
watermark?: string;
|
|
469
|
+
provenance: {
|
|
470
|
+
owner: string;
|
|
471
|
+
generation?: string;
|
|
472
|
+
sourceUrn?: string;
|
|
473
|
+
watermark?: string;
|
|
474
|
+
};
|
|
475
|
+
retryability: "none" | "bounded";
|
|
476
|
+
warnings?: Array<{
|
|
477
|
+
code: string;
|
|
478
|
+
message: string;
|
|
479
|
+
}> | null;
|
|
480
|
+
nextAction: {
|
|
481
|
+
action: PreparedDataNextAction;
|
|
482
|
+
pollAfterSeconds?: number;
|
|
483
|
+
maxRetries?: number;
|
|
484
|
+
};
|
|
485
|
+
};
|
|
486
|
+
export type PreparedDataReceiptStatus = PreparedDataStatus & {
|
|
487
|
+
receiptUuid: string;
|
|
488
|
+
};
|
|
489
|
+
export type PreparedDataOutputStatus = PreparedDataStatus & {
|
|
490
|
+
outputUuid: string;
|
|
491
|
+
};
|
|
492
|
+
export type PreparedDataOutputList = {
|
|
493
|
+
outputs: PreparedDataOutputStatus[] | null;
|
|
494
|
+
};
|
|
495
|
+
export type PreparedDataQueryEnvelope = {
|
|
496
|
+
output: PreparedDataOutputStatus;
|
|
497
|
+
data: RenderedWidgetData;
|
|
498
|
+
};
|
|
499
|
+
export type BrokerEnv = Record<string, string | undefined>;
|
|
500
|
+
export type BrokerEnvClientOptions = Omit<ClientConfig, "baseUrl" | "getToken" | "oauth"> & {
|
|
501
|
+
baseUrl?: string;
|
|
502
|
+
scopes?: string[];
|
|
503
|
+
};
|
|
504
|
+
export type CompressionOptions = {
|
|
505
|
+
enabled?: boolean;
|
|
506
|
+
thresholdBytes?: number;
|
|
507
|
+
};
|
|
508
|
+
export type RetryOptions = {
|
|
509
|
+
maxAttempts?: number;
|
|
510
|
+
baseDelayMs?: number;
|
|
511
|
+
maxDelayMs?: number;
|
|
512
|
+
jitter?: number;
|
|
513
|
+
retryOnStatuses?: number[];
|
|
514
|
+
};
|
|
515
|
+
export type BatchOptions = {
|
|
516
|
+
maxBatchSize?: number;
|
|
517
|
+
flushIntervalMs?: number;
|
|
518
|
+
};
|
|
519
|
+
export type QueueOptions = {
|
|
520
|
+
enabled?: boolean;
|
|
521
|
+
storage?: QueueStorage;
|
|
522
|
+
maxQueueSize?: number;
|
|
523
|
+
flushOnOnline?: boolean;
|
|
524
|
+
flushTriggers?: Array<(flush: () => Promise<void>) => () => void>;
|
|
525
|
+
};
|
|
526
|
+
export type QueueStorage = {
|
|
527
|
+
load: () => EventEnvelope[];
|
|
528
|
+
save: (events: EventEnvelope[]) => void;
|
|
529
|
+
clear: () => void;
|
|
530
|
+
};
|
|
531
|
+
/** Whether a tenant is a real customer or proof data that generated-data cleanup may remove. */
|
|
532
|
+
export type AdminTenantPurpose = "customer" | "generated_proof";
|
|
533
|
+
export type AdminTenantCreate = {
|
|
534
|
+
slug: string;
|
|
535
|
+
companyName: string;
|
|
536
|
+
purpose?: AdminTenantPurpose;
|
|
537
|
+
};
|
|
538
|
+
export type AdminTenant = {
|
|
539
|
+
slug: string;
|
|
540
|
+
companyName: string;
|
|
541
|
+
companyId: number;
|
|
542
|
+
companyUuid: string;
|
|
543
|
+
enabled: boolean;
|
|
544
|
+
purpose: AdminTenantPurpose;
|
|
545
|
+
autoCreateEnvironments: boolean;
|
|
546
|
+
};
|
|
547
|
+
export type AdminTenantListResponse = {
|
|
548
|
+
tenants: AdminTenant[];
|
|
549
|
+
};
|
|
550
|
+
/** A tenant's storage allowance. Writes are refused past it only when hardLimitEnabled is set. */
|
|
551
|
+
export type StorageLimit = {
|
|
552
|
+
includedStorageBytes: number;
|
|
553
|
+
purchasedStorageBytes: number;
|
|
554
|
+
warnPercent: number;
|
|
555
|
+
hardLimitEnabled: boolean;
|
|
556
|
+
};
|
|
557
|
+
export type StorageLimitUpdateRequest = StorageLimit;
|
|
558
|
+
/** The content-free receipt for a deleted tenant's historical cleanup. */
|
|
559
|
+
export type TenantHistoricalCleanupReceipt = {
|
|
560
|
+
companyId: number;
|
|
561
|
+
requestedByKind: string;
|
|
562
|
+
requestedAt: string;
|
|
563
|
+
completedAt: string;
|
|
564
|
+
finalState: string;
|
|
565
|
+
perStore: OffboardingReceiptPerStore[];
|
|
566
|
+
waiver?: TenantHistoricalCleanupWaiver;
|
|
567
|
+
sha256: string;
|
|
568
|
+
};
|
|
569
|
+
export type TenantHistoricalCleanupWaiver = {
|
|
570
|
+
role: string;
|
|
571
|
+
timestamp: string;
|
|
572
|
+
};
|
|
573
|
+
export type AdminOAuthClientCreate = {
|
|
574
|
+
clientId: string;
|
|
575
|
+
companySlug: string;
|
|
576
|
+
/**
|
|
577
|
+
* Custd derives the least-privilege scope set from `purposeProfile` and sets
|
|
578
|
+
* the matching client profile, so a caller states its intent rather than the
|
|
579
|
+
* scope vocabulary. Pass `scopes` explicitly only when no purpose profile fits.
|
|
580
|
+
*/
|
|
581
|
+
scopes?: string[];
|
|
582
|
+
environment?: string;
|
|
583
|
+
profile?: string;
|
|
584
|
+
purposeProfile?: string;
|
|
585
|
+
/** Binds a browser sign-in client to one Site. */
|
|
586
|
+
siteUuid?: string;
|
|
587
|
+
};
|
|
588
|
+
export type AdminOAuthClient = {
|
|
589
|
+
clientId: string;
|
|
590
|
+
companySlug: string;
|
|
591
|
+
scopes: string[];
|
|
592
|
+
environment?: string;
|
|
593
|
+
profile?: string;
|
|
594
|
+
purposeProfile?: string;
|
|
595
|
+
};
|
|
596
|
+
/** What a person needs to sign a CLI or app in with a newly created client. */
|
|
597
|
+
export type AdminOAuthClientLoginSetup = {
|
|
598
|
+
profileName: string;
|
|
599
|
+
clientId: string;
|
|
600
|
+
issuerUrl: string;
|
|
601
|
+
apiUrl: string;
|
|
602
|
+
audience: string;
|
|
603
|
+
scopes: string[];
|
|
604
|
+
redirectUris: string[];
|
|
605
|
+
configInitCommand: string;
|
|
606
|
+
};
|
|
607
|
+
/** The created client. clientSecret is present once, for a confidential client only. */
|
|
608
|
+
export type AdminOAuthClientCreateResponse = {
|
|
609
|
+
clientId: string;
|
|
610
|
+
companySlug: string;
|
|
611
|
+
scopes: string[];
|
|
612
|
+
profile: string;
|
|
613
|
+
purposeProfile?: string;
|
|
614
|
+
clientSecret?: string;
|
|
615
|
+
loginSetup?: AdminOAuthClientLoginSetup;
|
|
616
|
+
};
|
|
617
|
+
export type AdminOAuthClientListResponse = {
|
|
618
|
+
clients: AdminOAuthClient[];
|
|
619
|
+
};
|
|
620
|
+
export type AdminOAuthClientSecretResponse = {
|
|
621
|
+
clientSecret: string;
|
|
622
|
+
};
|
|
623
|
+
/**
|
|
624
|
+
* The one data destination a browser site writes to. `scopeCode` and
|
|
625
|
+
* `resourceCode` are resolved by the server and read back for display; they are
|
|
626
|
+
* ignored on input.
|
|
627
|
+
*/
|
|
628
|
+
export type AdminSiteIngestTarget = {
|
|
629
|
+
scopeUuid: string;
|
|
630
|
+
resourceUuid: string;
|
|
631
|
+
scopeCode?: string;
|
|
632
|
+
resourceCode?: string;
|
|
633
|
+
};
|
|
634
|
+
export type AdminSiteCreate = {
|
|
635
|
+
companySlug: string;
|
|
636
|
+
name: string;
|
|
637
|
+
identityMode: "cookieless" | "extended";
|
|
638
|
+
allowedOrigins: string[];
|
|
639
|
+
/** The environment events default to when they do not declare one. */
|
|
640
|
+
environment?: string;
|
|
641
|
+
/** Restricts the Site to these environments; omitted or empty allows every environment. */
|
|
642
|
+
allowedEnvironments?: string[];
|
|
643
|
+
rateLimitPerMinute?: number;
|
|
644
|
+
retentionDays?: number;
|
|
645
|
+
/** Required: a site whose write key cannot write anywhere is not a usable setup. */
|
|
646
|
+
ingestTarget: AdminSiteIngestTarget;
|
|
647
|
+
};
|
|
648
|
+
export type AdminSite = {
|
|
649
|
+
siteUuid: string;
|
|
650
|
+
companySlug: string;
|
|
651
|
+
name: string;
|
|
652
|
+
identityMode: "cookieless" | "extended";
|
|
653
|
+
allowedOrigins: string[];
|
|
654
|
+
/** The environment the site's events default to. */
|
|
655
|
+
environment: string;
|
|
656
|
+
/** The environments the site may send; empty when it may send any. */
|
|
657
|
+
allowedEnvironments: string[];
|
|
658
|
+
rateLimitPerMinute: number;
|
|
659
|
+
retentionDays: number;
|
|
660
|
+
enabled: boolean;
|
|
661
|
+
/** Absent for a site created before destinations existed. */
|
|
662
|
+
ingestTarget?: AdminSiteIngestTarget;
|
|
663
|
+
};
|
|
664
|
+
/** Replaces a site's browser settings. Omit `allowedEnvironments` or `ingestTarget` to keep them. */
|
|
665
|
+
export type AdminSiteUpdate = {
|
|
666
|
+
identityMode: "cookieless" | "extended";
|
|
667
|
+
allowedOrigins: string[];
|
|
668
|
+
environment: string;
|
|
669
|
+
allowedEnvironments?: string[];
|
|
670
|
+
ingestTarget?: AdminSiteIngestTarget;
|
|
671
|
+
};
|
|
672
|
+
export type AdminSiteCreateResponse = AdminSite & {
|
|
673
|
+
writeKey: string;
|
|
674
|
+
};
|
|
675
|
+
export type AdminSiteListResponse = {
|
|
676
|
+
sites: AdminSite[];
|
|
677
|
+
};
|
|
678
|
+
export type AdminSiteWriteKeyResponse = {
|
|
679
|
+
writeKey: string;
|
|
680
|
+
};
|
|
681
|
+
export type AdminOAuthClientUpdateScopesRequest = {
|
|
682
|
+
companySlug?: string;
|
|
683
|
+
profile?: string;
|
|
684
|
+
scopes: string[];
|
|
685
|
+
};
|
|
686
|
+
export type AdminSchemaIssue = {
|
|
687
|
+
code?: string;
|
|
688
|
+
path?: string;
|
|
689
|
+
message: string;
|
|
690
|
+
};
|
|
691
|
+
export type AdminSchemaValidateRequest = {
|
|
692
|
+
tenantSlug: string;
|
|
693
|
+
eventTypeSlug: string;
|
|
694
|
+
dialect: "jsonschema" | "avro";
|
|
695
|
+
schemaJson: string;
|
|
696
|
+
};
|
|
697
|
+
export type AdminSchemaValidateResult = {
|
|
698
|
+
valid: boolean;
|
|
699
|
+
issues: AdminSchemaIssue[];
|
|
700
|
+
suggestedAction: "register" | "fix_before_register" | "none" | string;
|
|
701
|
+
};
|
|
702
|
+
export type AdminSchemaEnableRequest = {
|
|
703
|
+
tenantSlug: string;
|
|
704
|
+
eventTypeSlug: string;
|
|
705
|
+
version: string;
|
|
706
|
+
enabledAt?: string;
|
|
707
|
+
};
|
|
708
|
+
/** Registers one schema version for a tenant's event type; `checksum` is the schema's SHA-256 hex. */
|
|
709
|
+
export type AdminSchemaRegisterRequest = {
|
|
710
|
+
tenantSlug: string;
|
|
711
|
+
eventTypeSlug: string;
|
|
712
|
+
version: string;
|
|
713
|
+
dialect: "jsonschema" | "avro";
|
|
714
|
+
schemaJson: string;
|
|
715
|
+
checksum: string;
|
|
716
|
+
enabled: boolean;
|
|
717
|
+
};
|
|
718
|
+
export type AdminSchemaDryRunRequest = {
|
|
719
|
+
tenantSlug: string;
|
|
720
|
+
eventTypeSlug: string;
|
|
721
|
+
dialect: "jsonschema" | "avro";
|
|
722
|
+
schemaJson: string;
|
|
723
|
+
samples: unknown[];
|
|
724
|
+
};
|
|
725
|
+
export type AdminSchemaDryRunResult = {
|
|
726
|
+
passed: number;
|
|
727
|
+
failed: number;
|
|
728
|
+
issues: AdminSchemaIssue[];
|
|
729
|
+
};
|
|
730
|
+
/** A 404 on schema audit: the named tenant does not exist. */
|
|
731
|
+
export declare const SCHEMA_AUDIT_TENANT_NOT_FOUND_CODE = "schema_audit_tenant_not_found";
|
|
732
|
+
/** A 400 on schema audit: the request names no tenantSlug. */
|
|
733
|
+
export declare const SCHEMA_AUDIT_TENANT_SLUG_REQUIRED_CODE = "schema_audit_tenant_slug_required";
|
|
734
|
+
/** One compile pass of a schema under one validator. */
|
|
735
|
+
export type AdminSchemaCompileResult = {
|
|
736
|
+
valid: boolean;
|
|
737
|
+
issues: string[];
|
|
738
|
+
};
|
|
739
|
+
/** How the schema's recorded examples validate under the shared validator. */
|
|
740
|
+
export type AdminSchemaExampleValidation = {
|
|
741
|
+
discovered: number;
|
|
742
|
+
run: number;
|
|
743
|
+
sameAccept: number;
|
|
744
|
+
sameReject: number;
|
|
745
|
+
deltas: number;
|
|
746
|
+
issueCodes: string[];
|
|
747
|
+
};
|
|
748
|
+
/** One registered schema version's migration audit result. */
|
|
749
|
+
export type AdminSchemaAuditResult = {
|
|
750
|
+
tenantSlug: string;
|
|
751
|
+
eventTypeSlug: string;
|
|
752
|
+
version: string;
|
|
753
|
+
dialect: string;
|
|
754
|
+
schemaChecksum: string;
|
|
755
|
+
class: string;
|
|
756
|
+
recommendedAction: string;
|
|
757
|
+
issueCodes: string[];
|
|
758
|
+
legacyCompile: AdminSchemaCompileResult;
|
|
759
|
+
sharedCompile: AdminSchemaCompileResult;
|
|
760
|
+
exampleValidation: AdminSchemaExampleValidation;
|
|
761
|
+
};
|
|
762
|
+
export type AdminSchemaAuditSummary = {
|
|
763
|
+
total: number;
|
|
764
|
+
compatible: number;
|
|
765
|
+
needsMigration: number;
|
|
766
|
+
blocked: number;
|
|
767
|
+
};
|
|
768
|
+
export type AdminSchemaAuditListResponse = {
|
|
769
|
+
schemas: AdminSchemaAuditResult[];
|
|
770
|
+
summary: AdminSchemaAuditSummary;
|
|
771
|
+
};
|
|
772
|
+
/** One field rule: what the tenant's privacy pipeline does to fieldPath. */
|
|
773
|
+
export type AdminPrivacyRule = {
|
|
774
|
+
fieldPath: string;
|
|
775
|
+
action: string;
|
|
776
|
+
enabled: boolean;
|
|
777
|
+
truncateLength?: number;
|
|
778
|
+
};
|
|
779
|
+
export type AdminPrivacyRulesResponse = {
|
|
780
|
+
companySlug: string;
|
|
781
|
+
enabled: boolean;
|
|
782
|
+
applyMode: string;
|
|
783
|
+
rules: AdminPrivacyRule[];
|
|
784
|
+
};
|
|
785
|
+
/** Replaces the tenant's whole privacy rule set. */
|
|
786
|
+
export type AdminPrivacyRuleUpdate = {
|
|
787
|
+
companySlug: string;
|
|
788
|
+
enabled: boolean;
|
|
789
|
+
applyMode: string;
|
|
790
|
+
rules: AdminPrivacyRule[];
|
|
791
|
+
};
|
|
792
|
+
export type AdminPrivacyIdentifierMapping = {
|
|
793
|
+
identifierId: string;
|
|
794
|
+
internalIdHash: string;
|
|
795
|
+
internalIdHashPrefix: string;
|
|
796
|
+
saltVersion: number;
|
|
797
|
+
createdAt: string;
|
|
798
|
+
};
|
|
799
|
+
export type AdminPrivacyIdentifierMappingList = {
|
|
800
|
+
companySlug: string;
|
|
801
|
+
mappings: AdminPrivacyIdentifierMapping[];
|
|
802
|
+
};
|
|
803
|
+
export type AdminPrivacyIdentifierMapRequest = {
|
|
804
|
+
externalId: string;
|
|
805
|
+
};
|
|
806
|
+
/** The purposes a subject's consent is recorded for. */
|
|
807
|
+
export type AdminPrivacyConsentPurpose = "analytics" | "product_improvement" | "marketing";
|
|
808
|
+
/** One subject's consent decision for one purpose and source. */
|
|
809
|
+
export type AdminPrivacyConsentRecord = {
|
|
810
|
+
subjectId: string;
|
|
811
|
+
purpose: AdminPrivacyConsentPurpose;
|
|
812
|
+
source: string;
|
|
813
|
+
granted: boolean;
|
|
814
|
+
recordedAt: string;
|
|
815
|
+
grantedAt?: string;
|
|
816
|
+
revokedAt?: string;
|
|
817
|
+
expiresAt?: string;
|
|
818
|
+
};
|
|
819
|
+
export type AdminPrivacyConsentList = {
|
|
820
|
+
companySlug: string;
|
|
821
|
+
subjectId: string;
|
|
822
|
+
records: AdminPrivacyConsentRecord[];
|
|
823
|
+
};
|
|
824
|
+
export type AdminPrivacyConsentRecordRequest = {
|
|
825
|
+
companySlug: string;
|
|
826
|
+
subjectId: string;
|
|
827
|
+
purpose: AdminPrivacyConsentPurpose;
|
|
828
|
+
source: string;
|
|
829
|
+
granted: boolean;
|
|
830
|
+
expiresAt?: string;
|
|
831
|
+
};
|
|
832
|
+
/** Which consent a revoke ends. Leaving `source` out revokes the purpose from every source. */
|
|
833
|
+
export type AdminPrivacyConsentRevokeRequest = {
|
|
834
|
+
purpose: AdminPrivacyConsentPurpose;
|
|
835
|
+
source?: string;
|
|
836
|
+
companySlug?: string;
|
|
837
|
+
};
|
|
838
|
+
/** The latest evaluation of a storage alert rule against measured usage. */
|
|
839
|
+
export type AdminStorageAlertEvaluation = {
|
|
840
|
+
evaluatedAt: string;
|
|
841
|
+
measuredValue: number;
|
|
842
|
+
breached: boolean;
|
|
843
|
+
firedAt?: string;
|
|
844
|
+
};
|
|
845
|
+
export type AdminStorageAlertRule = {
|
|
846
|
+
ruleId: string;
|
|
847
|
+
tenantSlug: string;
|
|
848
|
+
metric: string;
|
|
849
|
+
thresholdPercent: number;
|
|
850
|
+
channel: "email" | "webhook";
|
|
851
|
+
emailRecipient?: string;
|
|
852
|
+
enabled: boolean;
|
|
853
|
+
evaluation?: AdminStorageAlertEvaluation;
|
|
854
|
+
createdAt: string;
|
|
855
|
+
updatedAt: string;
|
|
856
|
+
};
|
|
857
|
+
export type AdminStorageAlertRuleCreateRequest = {
|
|
858
|
+
metric: string;
|
|
859
|
+
thresholdPercent: number;
|
|
860
|
+
channel: "email" | "webhook";
|
|
861
|
+
/** Where an email-channel rule sends its alert. */
|
|
862
|
+
emailRecipient?: string;
|
|
863
|
+
enabled: boolean;
|
|
864
|
+
};
|
|
865
|
+
export type AdminStorageAlertRuleListResponse = {
|
|
866
|
+
rules: AdminStorageAlertRule[];
|
|
867
|
+
};
|
|
868
|
+
export type AdminStorageAlertDelivery = {
|
|
869
|
+
state: string;
|
|
870
|
+
updatedAt?: string;
|
|
871
|
+
error?: string;
|
|
872
|
+
};
|
|
873
|
+
export type AdminStorageAlertMeasurement = {
|
|
874
|
+
limitBytes: number;
|
|
875
|
+
measuredValue: number;
|
|
876
|
+
thresholdPercent: number;
|
|
877
|
+
warningState: string;
|
|
878
|
+
};
|
|
879
|
+
/** One storage alert that fired and how its delivery went. */
|
|
880
|
+
export type AdminStorageAlertEvent = {
|
|
881
|
+
eventId: string;
|
|
882
|
+
tenantSlug: string;
|
|
883
|
+
ruleId?: string;
|
|
884
|
+
metric: string;
|
|
885
|
+
channel: "email" | "webhook";
|
|
886
|
+
emailRecipient?: string;
|
|
887
|
+
triggeredAt: string;
|
|
888
|
+
measurement: AdminStorageAlertMeasurement;
|
|
889
|
+
delivery: AdminStorageAlertDelivery;
|
|
890
|
+
};
|
|
891
|
+
export type AdminStorageAlertEventListResponse = {
|
|
892
|
+
events: AdminStorageAlertEvent[];
|
|
893
|
+
};
|
|
894
|
+
export type AdminAuditEvent = {
|
|
895
|
+
/** Stable public audit event UUID. */
|
|
896
|
+
eventId: string;
|
|
897
|
+
tenantSlug: string;
|
|
898
|
+
actorKind: string;
|
|
899
|
+
actorReference?: string;
|
|
900
|
+
actorDisplayName: string;
|
|
901
|
+
actorRoles?: string[];
|
|
902
|
+
action: string;
|
|
903
|
+
resourceType: string;
|
|
904
|
+
resourceId?: string;
|
|
905
|
+
outcome: AdminAuditOutcome;
|
|
906
|
+
correlationId?: string;
|
|
907
|
+
operationId?: string;
|
|
908
|
+
changes?: AdminAuditChange[];
|
|
909
|
+
details?: Record<string, unknown>;
|
|
910
|
+
network?: AdminAuditNetworkDisclosure;
|
|
911
|
+
domainHistory?: AdminAuditDomainHistory;
|
|
912
|
+
createdAt: string;
|
|
913
|
+
};
|
|
914
|
+
/** The domain state change an audit event recorded, from the resource's own history stream. */
|
|
915
|
+
export type AdminAuditDomainHistory = {
|
|
916
|
+
source: string;
|
|
917
|
+
sourceId: string;
|
|
918
|
+
resourceType?: string;
|
|
919
|
+
resourceId?: string;
|
|
920
|
+
action?: string;
|
|
921
|
+
state?: string;
|
|
922
|
+
previousState?: string;
|
|
923
|
+
currentState?: string;
|
|
924
|
+
streamVersion?: number;
|
|
925
|
+
createdAt: string;
|
|
926
|
+
};
|
|
927
|
+
/** The next page's cursor; `cursor` is absent on the last page. */
|
|
928
|
+
export type AdminAuditListCursor = {
|
|
929
|
+
cursor?: string;
|
|
930
|
+
};
|
|
931
|
+
export type AdminAuditOutcome = "attempted" | "success" | "failure" | "denied" | "pending" | "unknown";
|
|
932
|
+
export type AdminAuditDisclosureState = "available" | "redacted" | "not_recorded";
|
|
933
|
+
export type AdminAuditChange = {
|
|
934
|
+
field: string;
|
|
935
|
+
before?: unknown;
|
|
936
|
+
after?: unknown;
|
|
937
|
+
};
|
|
938
|
+
export type AdminAuditNetworkDisclosure = {
|
|
939
|
+
ipAddress?: string;
|
|
940
|
+
ipAddressState: AdminAuditDisclosureState;
|
|
941
|
+
userAgent?: string;
|
|
942
|
+
userAgentState: AdminAuditDisclosureState;
|
|
943
|
+
};
|
|
944
|
+
export type AdminAuditRetentionDisclosure = {
|
|
945
|
+
eventMaxAgeSeconds: number;
|
|
946
|
+
ipAddressMaxAgeSeconds: number;
|
|
947
|
+
userAgentMaxAgeSeconds: number;
|
|
948
|
+
};
|
|
949
|
+
export type AdminAuditListResponse = {
|
|
950
|
+
events: AdminAuditEvent[];
|
|
951
|
+
nextCursor: AdminAuditListCursor;
|
|
952
|
+
coverageBeginsAt?: string;
|
|
953
|
+
retention?: AdminAuditRetentionDisclosure;
|
|
954
|
+
};
|
|
955
|
+
export type AdminAuditListOptions = {
|
|
956
|
+
scope?: "tenant" | "global";
|
|
957
|
+
companySlug?: string;
|
|
958
|
+
affectedTenantSlug?: string;
|
|
959
|
+
since?: string;
|
|
960
|
+
until?: string;
|
|
961
|
+
actorKind?: string;
|
|
962
|
+
actorReference?: string;
|
|
963
|
+
action?: string;
|
|
964
|
+
resourceType?: string;
|
|
965
|
+
resourceId?: string;
|
|
966
|
+
outcome?: AdminAuditOutcome;
|
|
967
|
+
correlationId?: string;
|
|
968
|
+
/** Only events attributed to this auth-project environment (realm). */
|
|
969
|
+
environmentId?: string;
|
|
970
|
+
limit?: number;
|
|
971
|
+
cursor?: string;
|
|
972
|
+
};
|
|
973
|
+
/** The audit export as it arrives, in the requested format, with the server's request id. */
|
|
974
|
+
export type AdminAuditExportResponse = CustdDownloadStream;
|
|
975
|
+
export type AdminReportingPackAuditEvent = {
|
|
976
|
+
action: string;
|
|
977
|
+
actorReference?: string;
|
|
978
|
+
actorDisplayName: string;
|
|
979
|
+
resourceType: string;
|
|
980
|
+
packKey: string;
|
|
981
|
+
createdAt: string;
|
|
982
|
+
};
|
|
983
|
+
export type AdminReportingPackAuditListResponse = {
|
|
984
|
+
events: AdminReportingPackAuditEvent[];
|
|
985
|
+
};
|
|
986
|
+
export type SelectorDefinition = {
|
|
987
|
+
selector: string;
|
|
988
|
+
/** Empty, with an empty selector, where the platform serialises an unset identity selector. */
|
|
989
|
+
type: "string" | "integer" | "number" | "";
|
|
990
|
+
};
|
|
991
|
+
/** The unit a numeric selector or rendered metric value is expressed in. */
|
|
992
|
+
export type RenderedUnit = "currency_per_unit" | "count" | "milliseconds" | "bytes" | "percent" | "currency" | "W" | "kW" | "Wh" | "kWh" | "V" | "A" | "L" | "Cel" | "L/s" | "score";
|
|
993
|
+
/** How a reporting-pack metric is computed. */
|
|
994
|
+
export type PackMetricKind = "count" | "unique_count" | "rate" | "latency" | "percentile" | "failure_ratio" | "freshness_age" | "latest_value" | "probability" | "quantile" | "credible_interval" | "forecast_date" | "value_of_information";
|
|
995
|
+
/** The accounting or measurement calculation a reporting-pack metric applies. */
|
|
996
|
+
export type PackMetricCalculation = "usage_charge" | "marginal_rate" | "projection" | "purchased_vs_used" | "observed_balance" | "projected_balance" | "allocated_recovery" | "correction_count" | "count" | "failure_count" | "flow" | "distinct_count" | "sum" | "average" | "percentile" | "ratio" | "latest" | "minimum" | "maximum" | "firstLastDelta" | "timeWeightedAverage" | "rate" | "integral";
|
|
997
|
+
/** A measurement series' canonical unit; By is bytes and 1 is a dimensionless count. */
|
|
998
|
+
export type CanonicalUnit = "W" | "kW" | "Wh" | "kWh" | "V" | "A" | "L" | "Cel" | "By" | "1";
|
|
999
|
+
/** How a reporting-pack template aggregates its source rows. */
|
|
1000
|
+
export type PackTemplateAggregation = "count" | "flow" | "distinct_count" | "sum" | "average" | "percentile" | "ratio";
|
|
1001
|
+
export type NumericSelector = SelectorDefinition & {
|
|
1002
|
+
unit: RenderedUnit;
|
|
1003
|
+
};
|
|
1004
|
+
export type IdentitySelectors = {
|
|
1005
|
+
subject?: SelectorDefinition;
|
|
1006
|
+
session?: SelectorDefinition;
|
|
1007
|
+
entity?: SelectorDefinition;
|
|
1008
|
+
cohort?: SelectorDefinition;
|
|
1009
|
+
correlation?: SelectorDefinition;
|
|
1010
|
+
};
|
|
1011
|
+
export type FilterDefinition = {
|
|
1012
|
+
dimension: string;
|
|
1013
|
+
operators: ("eq" | "neq" | "in" | "contains")[];
|
|
1014
|
+
};
|
|
1015
|
+
export type SubjectScopeRule = {
|
|
1016
|
+
required: boolean;
|
|
1017
|
+
dimension: string;
|
|
1018
|
+
};
|
|
1019
|
+
export type MatchPredicate = {
|
|
1020
|
+
selector: string;
|
|
1021
|
+
exact?: string;
|
|
1022
|
+
anyOf?: string[];
|
|
1023
|
+
nonEmpty?: boolean;
|
|
1024
|
+
pattern?: string;
|
|
1025
|
+
};
|
|
1026
|
+
export type FlowRule = {
|
|
1027
|
+
key: string;
|
|
1028
|
+
correlationSelector: string;
|
|
1029
|
+
familySelector?: string;
|
|
1030
|
+
familyValue?: string;
|
|
1031
|
+
stepSelector: string;
|
|
1032
|
+
startMarkers: string[];
|
|
1033
|
+
completionMarkers: string[];
|
|
1034
|
+
includeUncorrelated: boolean;
|
|
1035
|
+
};
|
|
1036
|
+
export type PackMetric = {
|
|
1037
|
+
key: string;
|
|
1038
|
+
label: string;
|
|
1039
|
+
kind: PackMetricKind;
|
|
1040
|
+
unit?: string;
|
|
1041
|
+
description?: string;
|
|
1042
|
+
calculation: PackMetricCalculation;
|
|
1043
|
+
numeric?: NumericSelector;
|
|
1044
|
+
distinct?: SelectorDefinition;
|
|
1045
|
+
measurementKind?: "gauge" | "monotonicCounter" | "intervalIncrement" | "state";
|
|
1046
|
+
maximumGapSeconds?: number;
|
|
1047
|
+
resetPolicy?: "as_increment" | "reject" | "rollover";
|
|
1048
|
+
rolloverAt?: number;
|
|
1049
|
+
canonicalUnit?: CanonicalUnit;
|
|
1050
|
+
percentile?: number;
|
|
1051
|
+
numeratorMetric?: string;
|
|
1052
|
+
denominatorMetric?: string;
|
|
1053
|
+
seriesKey?: string;
|
|
1054
|
+
hierarchyRootKey?: string;
|
|
1055
|
+
match?: MatchPredicate[];
|
|
1056
|
+
flowResult?: "steps" | "starts" | "completions" | "drop_offs" | "completion_rate" | "uncorrelated";
|
|
1057
|
+
};
|
|
1058
|
+
export type PackDimension = {
|
|
1059
|
+
key: string;
|
|
1060
|
+
label: string;
|
|
1061
|
+
description?: string;
|
|
1062
|
+
selector?: string;
|
|
1063
|
+
allowedValuePattern?: string;
|
|
1064
|
+
fallback?: string;
|
|
1065
|
+
maxCardinality?: number;
|
|
1066
|
+
labelDefinitionKey?: string;
|
|
1067
|
+
labelDefinitionUuid?: string;
|
|
1068
|
+
labelValueUuids?: string[];
|
|
1069
|
+
};
|
|
1070
|
+
export type PackTemplate = {
|
|
1071
|
+
name: string;
|
|
1072
|
+
allowedMetrics: string[];
|
|
1073
|
+
allowedDimensions?: string[];
|
|
1074
|
+
allowedFilters?: FilterDefinition[];
|
|
1075
|
+
sourceModes: ("auto" | "postgres" | "duckdb")[];
|
|
1076
|
+
maxRows: number;
|
|
1077
|
+
defaultRange?: string;
|
|
1078
|
+
subjectScope?: SubjectScopeRule;
|
|
1079
|
+
compositionRules?: string[];
|
|
1080
|
+
eventTypes: string[];
|
|
1081
|
+
aggregation: PackTemplateAggregation;
|
|
1082
|
+
flowRule?: string;
|
|
1083
|
+
};
|
|
1084
|
+
export type TrustDiagnostics = {
|
|
1085
|
+
safeFields: string[];
|
|
1086
|
+
redactionGuard: string[];
|
|
1087
|
+
};
|
|
1088
|
+
export type ProofProfile = {
|
|
1089
|
+
key: string;
|
|
1090
|
+
templates: string[];
|
|
1091
|
+
safeMetadataFields: string[];
|
|
1092
|
+
forbiddenFields: string[];
|
|
1093
|
+
outputLayout: string;
|
|
1094
|
+
};
|
|
1095
|
+
export type RollupDimension = {
|
|
1096
|
+
slot: number;
|
|
1097
|
+
dimension: string;
|
|
1098
|
+
selector: string;
|
|
1099
|
+
allowedValuePattern?: string;
|
|
1100
|
+
};
|
|
1101
|
+
export type RollupRule = {
|
|
1102
|
+
family: string;
|
|
1103
|
+
templates?: string[];
|
|
1104
|
+
metric: string;
|
|
1105
|
+
sourceEventType: string;
|
|
1106
|
+
match?: MatchPredicate[];
|
|
1107
|
+
dimensions?: RollupDimension[];
|
|
1108
|
+
completenessRequired: boolean;
|
|
1109
|
+
};
|
|
1110
|
+
export type PresentationPresetSelection = {
|
|
1111
|
+
presetId: "forecast_convergence_v1" | "anomaly_reference_v1" | "descriptive_driver_v1" | "uncertainty_reference_v1";
|
|
1112
|
+
version: number;
|
|
1113
|
+
nonColorEncoding: "line_symbol_label" | "signed_bar_label" | "band_boundary_label";
|
|
1114
|
+
summaryTemplateId: "forecast_window_evidence" | "anomaly_reference_evidence" | "descriptive_driver_evidence" | "uncertainty_reference_evidence";
|
|
1115
|
+
};
|
|
1116
|
+
export type PackWidgetDefinition = {
|
|
1117
|
+
key: string;
|
|
1118
|
+
title: string;
|
|
1119
|
+
kind: string;
|
|
1120
|
+
template: string;
|
|
1121
|
+
metrics: string[];
|
|
1122
|
+
dimensions?: string[];
|
|
1123
|
+
presentation?: PresentationPresetSelection;
|
|
1124
|
+
};
|
|
1125
|
+
export type DashboardSharePolicy = {
|
|
1126
|
+
relativeRanges?: ("1d" | "7d" | "14d" | "30d" | "90d")[];
|
|
1127
|
+
comparisonPresets?: ("previous_period" | "previous_year")[];
|
|
1128
|
+
};
|
|
1129
|
+
export type DashboardInteractionRule = {
|
|
1130
|
+
key: string;
|
|
1131
|
+
sourceWidget: string;
|
|
1132
|
+
targetWidget: string;
|
|
1133
|
+
dimension: string;
|
|
1134
|
+
action: "filter" | "drill_down";
|
|
1135
|
+
linkedFilterGroup: string;
|
|
1136
|
+
comparisonPreset?: "previous_period" | "previous_year";
|
|
1137
|
+
resetBehavior: "interaction" | "dashboard";
|
|
1138
|
+
};
|
|
1139
|
+
export type NarrativeValueReference = {
|
|
1140
|
+
widgetKey: string;
|
|
1141
|
+
value: "primary" | "delta";
|
|
1142
|
+
};
|
|
1143
|
+
export type NarrativeBlock = {
|
|
1144
|
+
text: string;
|
|
1145
|
+
references?: NarrativeValueReference[];
|
|
1146
|
+
};
|
|
1147
|
+
export type ReportSectionDefinition = {
|
|
1148
|
+
key: string;
|
|
1149
|
+
title: string;
|
|
1150
|
+
layout: "lead" | "grid" | "detail";
|
|
1151
|
+
columnSpan: number;
|
|
1152
|
+
widgetKeys?: string[];
|
|
1153
|
+
narrative?: NarrativeBlock[];
|
|
1154
|
+
};
|
|
1155
|
+
export type ExecutiveReportDefinition = {
|
|
1156
|
+
recipe: "blank" | "weekly-performance" | "operations-health" | "forecast-decision";
|
|
1157
|
+
primaryWidgetKey: string;
|
|
1158
|
+
primaryMetricKey: string;
|
|
1159
|
+
primaryLabel: string;
|
|
1160
|
+
primaryUnit: string;
|
|
1161
|
+
scopeLabel: string;
|
|
1162
|
+
comparisonBasis: "none" | "previous-period" | "target";
|
|
1163
|
+
comparisonLabel?: string;
|
|
1164
|
+
targetValue?: number;
|
|
1165
|
+
targetUnit?: string;
|
|
1166
|
+
findings?: string[];
|
|
1167
|
+
actions?: string[];
|
|
1168
|
+
supportingWidgetKeys?: string[];
|
|
1169
|
+
};
|
|
1170
|
+
export type PackDashboardDefinition = {
|
|
1171
|
+
key: string;
|
|
1172
|
+
packKey?: string;
|
|
1173
|
+
exportFormats?: string[];
|
|
1174
|
+
title: string;
|
|
1175
|
+
description?: string;
|
|
1176
|
+
group?: string;
|
|
1177
|
+
defaultRange: string;
|
|
1178
|
+
refreshSeconds: number;
|
|
1179
|
+
requiredScopes: string[];
|
|
1180
|
+
widgets: PackWidgetDefinition[];
|
|
1181
|
+
interactions?: DashboardInteractionRule[];
|
|
1182
|
+
sharePolicy?: DashboardSharePolicy;
|
|
1183
|
+
sections?: ReportSectionDefinition[];
|
|
1184
|
+
executive?: ExecutiveReportDefinition;
|
|
1185
|
+
};
|
|
1186
|
+
export type RedactionRule = {
|
|
1187
|
+
sourceSystem: string;
|
|
1188
|
+
sourceEventType: string;
|
|
1189
|
+
selectorFields: string[];
|
|
1190
|
+
allowedFields: string[];
|
|
1191
|
+
reasonClasses: string[];
|
|
1192
|
+
resultShape: string;
|
|
1193
|
+
};
|
|
1194
|
+
export type TransitionRule = {
|
|
1195
|
+
key: string;
|
|
1196
|
+
identity: "subject" | "session" | "correlation";
|
|
1197
|
+
stepSelector: string;
|
|
1198
|
+
steps: string[];
|
|
1199
|
+
maxDurationMs: number;
|
|
1200
|
+
maxEvents: number;
|
|
1201
|
+
};
|
|
1202
|
+
export type ActivationRule = {
|
|
1203
|
+
key: string;
|
|
1204
|
+
identity: "subject" | "session" | "correlation";
|
|
1205
|
+
predicate: MatchPredicate;
|
|
1206
|
+
cohortWindowDays: number;
|
|
1207
|
+
};
|
|
1208
|
+
export type RetentionRule = {
|
|
1209
|
+
key: string;
|
|
1210
|
+
activationRule: string;
|
|
1211
|
+
returnWindowDays: number[];
|
|
1212
|
+
returnPredicate: MatchPredicate;
|
|
1213
|
+
};
|
|
1214
|
+
export type ActivityRule = {
|
|
1215
|
+
key: string;
|
|
1216
|
+
identity: "subject" | "session" | "correlation";
|
|
1217
|
+
bucketDays: number;
|
|
1218
|
+
};
|
|
1219
|
+
export type ObservationSource = {
|
|
1220
|
+
key: string;
|
|
1221
|
+
label: string;
|
|
1222
|
+
};
|
|
1223
|
+
export type ObservationAsset = {
|
|
1224
|
+
key: string;
|
|
1225
|
+
label: string;
|
|
1226
|
+
};
|
|
1227
|
+
export type SourceSeries = {
|
|
1228
|
+
sourceKey: string;
|
|
1229
|
+
sourceSeriesKey: string;
|
|
1230
|
+
priority: number;
|
|
1231
|
+
};
|
|
1232
|
+
export type SemanticSeries = {
|
|
1233
|
+
key: string;
|
|
1234
|
+
assetKey?: string;
|
|
1235
|
+
assetKeys?: string[];
|
|
1236
|
+
measurementKind: "gauge" | "monotonicCounter" | "intervalIncrement" | "state";
|
|
1237
|
+
canonicalUnit: CanonicalUnit;
|
|
1238
|
+
allowedSourceUnits: CanonicalUnit[];
|
|
1239
|
+
expectedCadenceSeconds: number;
|
|
1240
|
+
maximumGapSeconds: number;
|
|
1241
|
+
sources: SourceSeries[];
|
|
1242
|
+
};
|
|
1243
|
+
export type ObservationContract = {
|
|
1244
|
+
version: number;
|
|
1245
|
+
sources: ObservationSource[];
|
|
1246
|
+
assets: ObservationAsset[];
|
|
1247
|
+
series: SemanticSeries[];
|
|
1248
|
+
};
|
|
1249
|
+
export type SourceReconciliation = {
|
|
1250
|
+
version: number;
|
|
1251
|
+
tenantKey: string;
|
|
1252
|
+
seriesKey: string;
|
|
1253
|
+
canonicalUnit?: CanonicalUnit;
|
|
1254
|
+
mode: "priority" | "freshness" | "availability" | "agreement";
|
|
1255
|
+
maxAgeSeconds: number;
|
|
1256
|
+
absoluteTolerance?: number;
|
|
1257
|
+
relativeTolerance?: number;
|
|
1258
|
+
sources: SourceSeries[];
|
|
1259
|
+
};
|
|
1260
|
+
export type AssetNode = {
|
|
1261
|
+
tenantKey: string;
|
|
1262
|
+
key: string;
|
|
1263
|
+
label: string;
|
|
1264
|
+
};
|
|
1265
|
+
export type AssetHierarchyEdge = {
|
|
1266
|
+
tenantKey: string;
|
|
1267
|
+
parentKey: string;
|
|
1268
|
+
childKey: string;
|
|
1269
|
+
mode: string;
|
|
1270
|
+
};
|
|
1271
|
+
export type AssetHierarchy = {
|
|
1272
|
+
version: number;
|
|
1273
|
+
tenantKey: string;
|
|
1274
|
+
maxDepth?: number;
|
|
1275
|
+
nodes: AssetNode[];
|
|
1276
|
+
edges?: AssetHierarchyEdge[];
|
|
1277
|
+
};
|
|
1278
|
+
export type RateTier = {
|
|
1279
|
+
lowerBound: number;
|
|
1280
|
+
upperBound?: number;
|
|
1281
|
+
pricePerUnit: number;
|
|
1282
|
+
};
|
|
1283
|
+
export type AllocationTarget = {
|
|
1284
|
+
seriesKey: string;
|
|
1285
|
+
weight: number;
|
|
1286
|
+
};
|
|
1287
|
+
export type RoundingMode = "half_up" | "half_even" | "down" | "up";
|
|
1288
|
+
export type RoundingPolicy = {
|
|
1289
|
+
mode: RoundingMode;
|
|
1290
|
+
decimalPlaces: number;
|
|
1291
|
+
};
|
|
1292
|
+
export type SteppedRateSchedule = {
|
|
1293
|
+
key: string;
|
|
1294
|
+
usageMetric: string;
|
|
1295
|
+
usageUnit: CanonicalUnit;
|
|
1296
|
+
timezone: string;
|
|
1297
|
+
billingBoundary: "calendar_month" | "calendar_day";
|
|
1298
|
+
effectiveFrom: string;
|
|
1299
|
+
effectiveTo?: string;
|
|
1300
|
+
currency: string;
|
|
1301
|
+
tiers: RateTier[];
|
|
1302
|
+
rounding: RoundingPolicy;
|
|
1303
|
+
};
|
|
1304
|
+
export type AllocationRule = {
|
|
1305
|
+
key: string;
|
|
1306
|
+
sourceSeriesKey: string;
|
|
1307
|
+
targets: AllocationTarget[];
|
|
1308
|
+
rounding: RoundingPolicy;
|
|
1309
|
+
};
|
|
1310
|
+
export type AccountingContract = {
|
|
1311
|
+
version: number;
|
|
1312
|
+
usageMetric: string;
|
|
1313
|
+
schedules: SteppedRateSchedule[];
|
|
1314
|
+
allocations?: AllocationRule[];
|
|
1315
|
+
};
|
|
1316
|
+
/**
|
|
1317
|
+
* The canonical reporting-pack definition, mirroring libs/go/reporting.Pack.
|
|
1318
|
+
* Every contracted field is carried so a definition round-trips losslessly
|
|
1319
|
+
* through create/validate/preview/publish; unknown extension fields are the only
|
|
1320
|
+
* thing a decode may drop.
|
|
1321
|
+
*/
|
|
1322
|
+
export type PackDefinition = {
|
|
1323
|
+
key: string;
|
|
1324
|
+
displayName: string;
|
|
1325
|
+
owner: string;
|
|
1326
|
+
version: number;
|
|
1327
|
+
enabled: boolean;
|
|
1328
|
+
eventTypes: string[];
|
|
1329
|
+
metrics: PackMetric[];
|
|
1330
|
+
dimensions: PackDimension[];
|
|
1331
|
+
templates: PackTemplate[];
|
|
1332
|
+
flowRules?: FlowRule[];
|
|
1333
|
+
rollupRules?: RollupRule[];
|
|
1334
|
+
dashboards?: PackDashboardDefinition[];
|
|
1335
|
+
exportFormats?: string[];
|
|
1336
|
+
trust: TrustDiagnostics;
|
|
1337
|
+
redactionRules?: RedactionRule[];
|
|
1338
|
+
proof: ProofProfile;
|
|
1339
|
+
identity?: IdentitySelectors;
|
|
1340
|
+
transitionRules?: TransitionRule[];
|
|
1341
|
+
activationRules?: ActivationRule[];
|
|
1342
|
+
retentionRules?: RetentionRule[];
|
|
1343
|
+
activityRules?: ActivityRule[];
|
|
1344
|
+
observation?: ObservationContract;
|
|
1345
|
+
reconciliations?: SourceReconciliation[];
|
|
1346
|
+
assetHierarchy?: AssetHierarchy;
|
|
1347
|
+
accounting?: AccountingContract;
|
|
1348
|
+
};
|
|
1349
|
+
/** One client-selectable binding descriptor a setup template renders. */
|
|
1350
|
+
/** Whether one published reporting-pack generation still validates against the current contracts. */
|
|
1351
|
+
export type ReportingPackGenerationValidity = {
|
|
1352
|
+
id: number;
|
|
1353
|
+
packKey: string;
|
|
1354
|
+
generationNumber: number;
|
|
1355
|
+
state: string;
|
|
1356
|
+
validationError?: string;
|
|
1357
|
+
};
|
|
1358
|
+
export type ReportingPackGenerationValidityListResponse = {
|
|
1359
|
+
generations: ReportingPackGenerationValidity[];
|
|
1360
|
+
};
|
|
1361
|
+
export type ReportingPackSetupBindingField = {
|
|
1362
|
+
key: string;
|
|
1363
|
+
label: string;
|
|
1364
|
+
required: boolean;
|
|
1365
|
+
};
|
|
1366
|
+
/** The typed log-observability bindings a client selects. Never a dictionary. */
|
|
1367
|
+
export type LogObservabilityBindings = {
|
|
1368
|
+
eventType: string;
|
|
1369
|
+
severityField: string;
|
|
1370
|
+
resourceField: string;
|
|
1371
|
+
};
|
|
1372
|
+
/** One reviewed setup template: its canonical definition plus selectable bindings. */
|
|
1373
|
+
export type ReportingPackSetupTemplate = {
|
|
1374
|
+
kind: string;
|
|
1375
|
+
displayName: string;
|
|
1376
|
+
definition: PackDefinition;
|
|
1377
|
+
bindings: ReportingPackSetupBindingField[];
|
|
1378
|
+
};
|
|
1379
|
+
export type ReportingPackSetupTemplateListResponse = {
|
|
1380
|
+
templates: ReportingPackSetupTemplate[];
|
|
1381
|
+
};
|
|
1382
|
+
export type ReportingPackSetupTemplateBindRequest = {
|
|
1383
|
+
bindings: LogObservabilityBindings;
|
|
1384
|
+
};
|
|
1385
|
+
export type ReportingPackSetupTemplateBindResponse = {
|
|
1386
|
+
kind: string;
|
|
1387
|
+
definition: PackDefinition;
|
|
1388
|
+
};
|
|
1389
|
+
export type ReportingPackDraft = {
|
|
1390
|
+
id: number;
|
|
1391
|
+
revision: number;
|
|
1392
|
+
definition: PackDefinition;
|
|
1393
|
+
validationError?: string;
|
|
1394
|
+
createdAt: string;
|
|
1395
|
+
updatedAt: string;
|
|
1396
|
+
};
|
|
1397
|
+
export type ReportingPackDraftCreateRequest = {
|
|
1398
|
+
definition: PackDefinition;
|
|
1399
|
+
};
|
|
1400
|
+
export type ReportingPackDraftUpdateRequest = {
|
|
1401
|
+
definition: PackDefinition;
|
|
1402
|
+
expectedRevision: number;
|
|
1403
|
+
};
|
|
1404
|
+
export type ReportingPackDraftListResponse = {
|
|
1405
|
+
drafts: ReportingPackDraft[];
|
|
1406
|
+
};
|
|
1407
|
+
export type ReportingPackValidateResponse = {
|
|
1408
|
+
valid: boolean;
|
|
1409
|
+
};
|
|
1410
|
+
/** The widget query a preview renders: the same request the analytics query endpoint takes. */
|
|
1411
|
+
export type ReportingPackPreviewQueryHint = ReportingQueryRequest;
|
|
1412
|
+
export type ReportingPackPreviewRequest = {
|
|
1413
|
+
definition: PackDefinition;
|
|
1414
|
+
tenantSlug: string;
|
|
1415
|
+
query: ReportingPackPreviewQueryHint;
|
|
1416
|
+
};
|
|
1417
|
+
/** The preview envelope: the rendered widget under `data`, aggregate-only with no raw rows. */
|
|
1418
|
+
export type ReportingPackPreviewResponse = {
|
|
1419
|
+
data: RenderedWidgetData;
|
|
1420
|
+
executive?: ExecutiveReport;
|
|
1421
|
+
presentation?: PresentationPresetSelection;
|
|
1422
|
+
};
|
|
1423
|
+
export type ExecutiveReport = {
|
|
1424
|
+
recipe: "blank" | "weekly-performance" | "operations-health" | "forecast-decision";
|
|
1425
|
+
title: string;
|
|
1426
|
+
tenantDisplayName: string;
|
|
1427
|
+
asOf: string;
|
|
1428
|
+
generatedAt: string;
|
|
1429
|
+
period: {
|
|
1430
|
+
label: string;
|
|
1431
|
+
from?: string;
|
|
1432
|
+
to?: string;
|
|
1433
|
+
};
|
|
1434
|
+
primary: {
|
|
1435
|
+
label: string;
|
|
1436
|
+
scope: string;
|
|
1437
|
+
unit: string;
|
|
1438
|
+
value: RenderedMetricValue;
|
|
1439
|
+
periodTotal: RenderedMetricValue;
|
|
1440
|
+
};
|
|
1441
|
+
comparison: {
|
|
1442
|
+
available: boolean;
|
|
1443
|
+
basis: "none" | "previous-period" | "target";
|
|
1444
|
+
label: string;
|
|
1445
|
+
value?: RenderedMetricValue;
|
|
1446
|
+
percentChange?: number;
|
|
1447
|
+
targetValue?: number;
|
|
1448
|
+
};
|
|
1449
|
+
confidence: {
|
|
1450
|
+
status: "healthy" | "partial" | "unavailable" | "unknown";
|
|
1451
|
+
coverage: string;
|
|
1452
|
+
freshness: string;
|
|
1453
|
+
completeness: string;
|
|
1454
|
+
warnings?: string[];
|
|
1455
|
+
};
|
|
1456
|
+
findings?: string[];
|
|
1457
|
+
actions?: string[];
|
|
1458
|
+
supportingWidgets?: string[];
|
|
1459
|
+
};
|
|
1460
|
+
export type ReportingPackGeneration = {
|
|
1461
|
+
id: number;
|
|
1462
|
+
generationNumber: number;
|
|
1463
|
+
sourceDraftId: number;
|
|
1464
|
+
definition: PackDefinition;
|
|
1465
|
+
state: string;
|
|
1466
|
+
createdAt?: string;
|
|
1467
|
+
};
|
|
1468
|
+
export type ReportingPackGenerationStatusDetail = {
|
|
1469
|
+
id: number;
|
|
1470
|
+
generationNumber: number;
|
|
1471
|
+
packKey: string;
|
|
1472
|
+
state: string;
|
|
1473
|
+
};
|
|
1474
|
+
export type ReportingPackGenerationAcknowledgement = {
|
|
1475
|
+
accepted: boolean;
|
|
1476
|
+
consumer: string;
|
|
1477
|
+
errorDetail?: string;
|
|
1478
|
+
observedAt?: string;
|
|
1479
|
+
observedGenerationId: number;
|
|
1480
|
+
};
|
|
1481
|
+
export type ReportingPackGenerationStatusResponse = {
|
|
1482
|
+
generation: ReportingPackGenerationStatusDetail;
|
|
1483
|
+
acknowledgements: ReportingPackGenerationAcknowledgement[];
|
|
1484
|
+
};
|
|
1485
|
+
export type ReportingPackMaterializationProvenance = {
|
|
1486
|
+
status: string;
|
|
1487
|
+
definitionFingerprint: string;
|
|
1488
|
+
sourceCoverageCount: number;
|
|
1489
|
+
};
|
|
1490
|
+
export type ReportingPackRollupProvenance = {
|
|
1491
|
+
generationId: number;
|
|
1492
|
+
definitionFingerprint: string;
|
|
1493
|
+
tenantSlug: string;
|
|
1494
|
+
materializations: ReportingPackMaterializationProvenance[];
|
|
1495
|
+
};
|
|
1496
|
+
export type ProducerReservation = {
|
|
1497
|
+
producerSlug: string;
|
|
1498
|
+
parentCompanySlug: string;
|
|
1499
|
+
childCompanySlug: string;
|
|
1500
|
+
claimedByClientId?: string;
|
|
1501
|
+
status: "pending" | "claimed" | "released" | "expired";
|
|
1502
|
+
reservedAt: string;
|
|
1503
|
+
expiresAt: string;
|
|
1504
|
+
maxTtlSeconds: number;
|
|
1505
|
+
};
|
|
1506
|
+
export type ProducerReservationListResponse = {
|
|
1507
|
+
reservations: ProducerReservation[];
|
|
1508
|
+
};
|
|
1509
|
+
export type ProducerReservationCreateRequest = {
|
|
1510
|
+
producerSlug: string;
|
|
1511
|
+
ttlSeconds?: number;
|
|
1512
|
+
};
|
|
1513
|
+
export type ProducerReservationClaimRequest = {
|
|
1514
|
+
claimedByClientId: string;
|
|
1515
|
+
};
|
|
1516
|
+
export type MeasurementProjectCreate = {
|
|
1517
|
+
/** The tenant a system administrator creates the project for. */
|
|
1518
|
+
companySlug?: string;
|
|
1519
|
+
projectCode: string;
|
|
1520
|
+
name: string;
|
|
1521
|
+
description?: string;
|
|
1522
|
+
kind: string;
|
|
1523
|
+
series: MeasurementSeriesCreate[];
|
|
1524
|
+
target: MeasurementTargetCreate;
|
|
1525
|
+
};
|
|
1526
|
+
export type MeasurementProject = {
|
|
1527
|
+
projectUuid: string;
|
|
1528
|
+
projectCode: string;
|
|
1529
|
+
name: string;
|
|
1530
|
+
description: string;
|
|
1531
|
+
kind: string;
|
|
1532
|
+
status: string;
|
|
1533
|
+
delivery: MeasurementProjectDelivery;
|
|
1534
|
+
run: MeasurementProjectRun;
|
|
1535
|
+
series?: MeasurementSeries[];
|
|
1536
|
+
target?: MeasurementTarget;
|
|
1537
|
+
createdAt: string;
|
|
1538
|
+
updatedAt: string;
|
|
1539
|
+
};
|
|
1540
|
+
/** What done means for a project, and when it is due or was completed. */
|
|
1541
|
+
export type MeasurementProjectDelivery = {
|
|
1542
|
+
definitionOfDone: string;
|
|
1543
|
+
targetDate?: string;
|
|
1544
|
+
completedAt?: string;
|
|
1545
|
+
};
|
|
1546
|
+
/** How the project forecasts, and the series root it forecasts from. */
|
|
1547
|
+
export type MeasurementProjectRun = {
|
|
1548
|
+
forecastMethod?: string;
|
|
1549
|
+
seriesRootUuid?: string;
|
|
1550
|
+
similar: boolean;
|
|
1551
|
+
};
|
|
1552
|
+
export type MeasurementSeries = {
|
|
1553
|
+
seriesUuid: string;
|
|
1554
|
+
seriesCode: string;
|
|
1555
|
+
name: string;
|
|
1556
|
+
unitSlug: string;
|
|
1557
|
+
unitLabel?: string;
|
|
1558
|
+
completionDirection: string;
|
|
1559
|
+
source: string;
|
|
1560
|
+
};
|
|
1561
|
+
export type MeasurementTarget = {
|
|
1562
|
+
targetUuid: string;
|
|
1563
|
+
targetCode: string;
|
|
1564
|
+
name: string;
|
|
1565
|
+
targetValue: number;
|
|
1566
|
+
targetDate?: string;
|
|
1567
|
+
completedAt?: string;
|
|
1568
|
+
state: string;
|
|
1569
|
+
};
|
|
1570
|
+
export type MeasurementProjectListResponse = {
|
|
1571
|
+
projects: MeasurementProject[];
|
|
1572
|
+
};
|
|
1573
|
+
export type MeasurementSeriesCreate = {
|
|
1574
|
+
seriesCode: string;
|
|
1575
|
+
name: string;
|
|
1576
|
+
unitSlug: string;
|
|
1577
|
+
unitLabel?: string;
|
|
1578
|
+
completionDirection: string;
|
|
1579
|
+
source: string;
|
|
1580
|
+
};
|
|
1581
|
+
export type MeasurementTargetCreate = {
|
|
1582
|
+
targetCode: string;
|
|
1583
|
+
name: string;
|
|
1584
|
+
targetValue: number;
|
|
1585
|
+
targetDate?: string;
|
|
1586
|
+
state: string;
|
|
1587
|
+
};
|
|
1588
|
+
export type MeasurementObservationInput = {
|
|
1589
|
+
seriesUuid: string;
|
|
1590
|
+
observedAt: string;
|
|
1591
|
+
value: number;
|
|
1592
|
+
idempotencyKey?: string;
|
|
1593
|
+
metadata?: Record<string, string>;
|
|
1594
|
+
};
|
|
1595
|
+
export type MeasurementObservationBulkRequest = {
|
|
1596
|
+
rows: MeasurementObservationInput[];
|
|
1597
|
+
};
|
|
1598
|
+
export type MeasurementObservationResult = {
|
|
1599
|
+
rowIndex: number;
|
|
1600
|
+
success: boolean;
|
|
1601
|
+
status?: number;
|
|
1602
|
+
observationUuid?: string;
|
|
1603
|
+
type?: string;
|
|
1604
|
+
title?: string;
|
|
1605
|
+
detail?: string;
|
|
1606
|
+
};
|
|
1607
|
+
/** Each row's outcome. completedTargetUuid names a target an accepted observation reached. */
|
|
1608
|
+
export type MeasurementObservationBulkResponse = {
|
|
1609
|
+
importId: string;
|
|
1610
|
+
accepted: number;
|
|
1611
|
+
rejected: number;
|
|
1612
|
+
results: MeasurementObservationResult[];
|
|
1613
|
+
completedTargetUuid?: string;
|
|
1614
|
+
};
|
|
1615
|
+
export type MeasurementCSVImportResponse = MeasurementObservationBulkResponse;
|
|
1616
|
+
export type SchemaValidationIssue = {
|
|
1617
|
+
path: string;
|
|
1618
|
+
keyword: string;
|
|
1619
|
+
message: string;
|
|
1620
|
+
schemaLocation: string;
|
|
1621
|
+
instanceLocation: string;
|
|
1622
|
+
severity: string;
|
|
1623
|
+
};
|
|
1624
|
+
export type SchemaExampleResult = {
|
|
1625
|
+
index: number;
|
|
1626
|
+
valid: boolean;
|
|
1627
|
+
class: string;
|
|
1628
|
+
oldValid: boolean;
|
|
1629
|
+
newValid: boolean;
|
|
1630
|
+
issueCodes: string[];
|
|
1631
|
+
issues: SchemaValidationIssue[];
|
|
1632
|
+
};
|
|
1633
|
+
export type SchemaValidationRequest = {
|
|
1634
|
+
slug?: string;
|
|
1635
|
+
name?: string;
|
|
1636
|
+
version?: string;
|
|
1637
|
+
jsonSchema: string;
|
|
1638
|
+
examples?: Array<Record<string, unknown>>;
|
|
1639
|
+
};
|
|
1640
|
+
export type SchemaValidationResponse = {
|
|
1641
|
+
valid: boolean;
|
|
1642
|
+
schemaValid: boolean;
|
|
1643
|
+
issues: SchemaValidationIssue[];
|
|
1644
|
+
warnings: SchemaValidationIssue[];
|
|
1645
|
+
exampleResults: SchemaExampleResult[];
|
|
1646
|
+
normalizedSchema: string;
|
|
1647
|
+
dialect: string;
|
|
1648
|
+
checksum: string;
|
|
1649
|
+
wouldCreateEventType: boolean;
|
|
1650
|
+
wouldCreateVersion: boolean;
|
|
1651
|
+
conflicts: Array<{
|
|
1652
|
+
field: string;
|
|
1653
|
+
message: string;
|
|
1654
|
+
}>;
|
|
1655
|
+
validatorEngine: string;
|
|
1656
|
+
validatorVersion: string;
|
|
1657
|
+
schemaChecksum: string;
|
|
1658
|
+
schemaDialect: string;
|
|
1659
|
+
};
|
|
1660
|
+
export type SchemaInferenceRequest = {
|
|
1661
|
+
samples: Array<Record<string, unknown>>;
|
|
1662
|
+
};
|
|
1663
|
+
export type SchemaInferenceResponse = {
|
|
1664
|
+
valid: boolean;
|
|
1665
|
+
issues: SchemaValidationIssue[];
|
|
1666
|
+
inferenceWarnings: SchemaValidationIssue[];
|
|
1667
|
+
candidateSchema: string;
|
|
1668
|
+
validatorEngine: string;
|
|
1669
|
+
validatorVersion: string;
|
|
1670
|
+
schemaChecksum: string;
|
|
1671
|
+
schemaDialect: string;
|
|
1672
|
+
};
|
|
1673
|
+
export type SendTestEventResponse = {
|
|
1674
|
+
success: boolean;
|
|
1675
|
+
eventUuid: string;
|
|
1676
|
+
};
|
|
1677
|
+
/** A dashboard as the analytics API serves it: the same definition a reporting pack declares. */
|
|
1678
|
+
export type ReportingDashboard = PackDashboardDefinition;
|
|
1679
|
+
export type ReportingWidget = PackWidgetDefinition;
|
|
1680
|
+
export type ReportingQueryRequest = {
|
|
1681
|
+
dashboardKey?: string;
|
|
1682
|
+
widgetKey?: string;
|
|
1683
|
+
template: string;
|
|
1684
|
+
metrics: string[];
|
|
1685
|
+
dimensions?: string[];
|
|
1686
|
+
filters?: ReportingFilter[];
|
|
1687
|
+
from?: string;
|
|
1688
|
+
to?: string;
|
|
1689
|
+
rangeDays?: number;
|
|
1690
|
+
maxRows?: number;
|
|
1691
|
+
countOnly?: boolean;
|
|
1692
|
+
comparison?: "previous_period" | "previous_year";
|
|
1693
|
+
};
|
|
1694
|
+
export type ReportingFilter = {
|
|
1695
|
+
dimension: string;
|
|
1696
|
+
operator: string;
|
|
1697
|
+
value?: string;
|
|
1698
|
+
};
|
|
1699
|
+
export type SubjectInsightRequest = {
|
|
1700
|
+
template: string;
|
|
1701
|
+
subject: string;
|
|
1702
|
+
from?: string;
|
|
1703
|
+
to?: string;
|
|
1704
|
+
rangeDays?: number;
|
|
1705
|
+
};
|
|
1706
|
+
export type SubjectInsightResponse = {
|
|
1707
|
+
data: RenderedWidgetData;
|
|
1708
|
+
};
|
|
1709
|
+
export type RenderedWidgetData = {
|
|
1710
|
+
buckets: RenderedWidgetBucket[];
|
|
1711
|
+
value: RenderedMetricValue;
|
|
1712
|
+
emailDelivery?: ReportingEmailDelivery;
|
|
1713
|
+
labelMetadata?: ReportingLabelMetadata[];
|
|
1714
|
+
metadata?: ReportingQueryMetadata;
|
|
1715
|
+
sources?: ReportingSourceSummary[];
|
|
1716
|
+
warnings?: string[];
|
|
1717
|
+
queryDurationMs: number;
|
|
1718
|
+
parquetUriCount?: number;
|
|
1719
|
+
snapshotAgeMs: number;
|
|
1720
|
+
eventLagP95Ms: number;
|
|
1721
|
+
delta?: RenderedMetricValue;
|
|
1722
|
+
deltaPercent?: number;
|
|
1723
|
+
deltaLabel?: string;
|
|
1724
|
+
secondaryLabel?: string;
|
|
1725
|
+
trust?: RenderedReportingTrust;
|
|
1726
|
+
visual?: unknown;
|
|
1727
|
+
};
|
|
1728
|
+
export type RenderedReportingTrust = {
|
|
1729
|
+
status: string;
|
|
1730
|
+
dataFreshness: string;
|
|
1731
|
+
retryability: "none" | "bounded" | string;
|
|
1732
|
+
nextAction: ReportingNextActionHint;
|
|
1733
|
+
lastExport?: string;
|
|
1734
|
+
schemaVersion?: string;
|
|
1735
|
+
contractVersion?: string;
|
|
1736
|
+
rollupState: string;
|
|
1737
|
+
queryWarnings?: string[];
|
|
1738
|
+
coverage: string;
|
|
1739
|
+
permissionClass?: string;
|
|
1740
|
+
captureState: string;
|
|
1741
|
+
consentState: string;
|
|
1742
|
+
exportState: string;
|
|
1743
|
+
partialReason?: string;
|
|
1744
|
+
unavailableReason?: string;
|
|
1745
|
+
};
|
|
1746
|
+
export type ReportingNextAction = "none" | "poll" | "retry" | "rotate" | "escalate" | string;
|
|
1747
|
+
export type ReportingNextActionHint = {
|
|
1748
|
+
action: ReportingNextAction;
|
|
1749
|
+
pollAfterSeconds?: number;
|
|
1750
|
+
maxRetries?: number;
|
|
1751
|
+
};
|
|
1752
|
+
export type RenderedWidgetBucket = {
|
|
1753
|
+
date: string;
|
|
1754
|
+
value: RenderedMetricValue;
|
|
1755
|
+
source: string;
|
|
1756
|
+
queryDurationMs: number;
|
|
1757
|
+
parquetUriCount?: number;
|
|
1758
|
+
message?: string;
|
|
1759
|
+
secondary?: RenderedMetricValue;
|
|
1760
|
+
};
|
|
1761
|
+
export type RenderedMetricValue = {
|
|
1762
|
+
value: number;
|
|
1763
|
+
unit: RenderedUnit;
|
|
1764
|
+
currency?: string;
|
|
1765
|
+
sampleCount: number;
|
|
1766
|
+
dataSufficiency: "unknown" | "sufficient" | "partial" | "insufficient";
|
|
1767
|
+
complete: boolean;
|
|
1768
|
+
truncated?: boolean;
|
|
1769
|
+
trust?: ReportingTemporalTrust;
|
|
1770
|
+
};
|
|
1771
|
+
/** One reporting source's reading in a reconciliation. */
|
|
1772
|
+
export type ReportingSourceContribution = {
|
|
1773
|
+
sourceKey: string;
|
|
1774
|
+
sourceSeriesKey: string;
|
|
1775
|
+
availability: "available" | "unavailable";
|
|
1776
|
+
value?: number;
|
|
1777
|
+
unit?: string;
|
|
1778
|
+
observedAt?: string;
|
|
1779
|
+
freshnessSeconds?: number;
|
|
1780
|
+
stale?: boolean;
|
|
1781
|
+
selected?: boolean;
|
|
1782
|
+
};
|
|
1783
|
+
/** How far the reconciled sources disagree. */
|
|
1784
|
+
export type ReportingSourceDivergence = {
|
|
1785
|
+
detected: boolean;
|
|
1786
|
+
absoluteDifference?: number;
|
|
1787
|
+
relativeDifference?: number;
|
|
1788
|
+
};
|
|
1789
|
+
/** Which source a reconciled value came from, and how its alternatives compared. */
|
|
1790
|
+
export type ReportingReconciliation = {
|
|
1791
|
+
tenantKey: string;
|
|
1792
|
+
seriesKey: string;
|
|
1793
|
+
status: "available" | "stale" | "unavailable";
|
|
1794
|
+
availability: "available" | "unavailable";
|
|
1795
|
+
value?: number;
|
|
1796
|
+
unit?: string;
|
|
1797
|
+
observedAt?: string;
|
|
1798
|
+
selectedSourceKey?: string;
|
|
1799
|
+
selectedSourceSeries?: string;
|
|
1800
|
+
contributingSources?: ReportingSourceContribution[];
|
|
1801
|
+
divergence: ReportingSourceDivergence;
|
|
1802
|
+
};
|
|
1803
|
+
/** The time coverage and freshness behind one rendered value. */
|
|
1804
|
+
export type ReportingTemporalTrust = {
|
|
1805
|
+
calculationVersion?: string;
|
|
1806
|
+
coverageStart?: string;
|
|
1807
|
+
coverageEnd?: string;
|
|
1808
|
+
sourceRange?: {
|
|
1809
|
+
start: string;
|
|
1810
|
+
end: string;
|
|
1811
|
+
};
|
|
1812
|
+
windowCoverage?: number;
|
|
1813
|
+
freshnessMs?: number;
|
|
1814
|
+
reconciliation?: ReportingReconciliation;
|
|
1815
|
+
warnings?: string[];
|
|
1816
|
+
};
|
|
1817
|
+
/** The delivery outcome of one email recipient, by opaque recipient id. */
|
|
1818
|
+
export type ReportingEmailDeliveryRecipient = {
|
|
1819
|
+
recipientId: string;
|
|
1820
|
+
outcome: "deferred" | "remote_accepted" | "terminal_failure";
|
|
1821
|
+
occurredAt: string;
|
|
1822
|
+
};
|
|
1823
|
+
export type ReportingEmailDelivery = {
|
|
1824
|
+
complete: boolean;
|
|
1825
|
+
recipients: ReportingEmailDeliveryRecipient[];
|
|
1826
|
+
};
|
|
1827
|
+
/** The display names of one data label a widget grouped by. */
|
|
1828
|
+
export type ReportingLabelMetadata = {
|
|
1829
|
+
definitionUuid: string;
|
|
1830
|
+
key: string;
|
|
1831
|
+
displayName: string;
|
|
1832
|
+
sensitivity: string;
|
|
1833
|
+
values: Array<{
|
|
1834
|
+
uuid: string;
|
|
1835
|
+
displayName: string;
|
|
1836
|
+
}>;
|
|
1837
|
+
};
|
|
1838
|
+
export type ReportingQueryMetadata = {
|
|
1839
|
+
resolvedTemplate: string;
|
|
1840
|
+
rangeStart?: string;
|
|
1841
|
+
rangeEnd?: string;
|
|
1842
|
+
effectiveMaxRows: number;
|
|
1843
|
+
returnedRows: number;
|
|
1844
|
+
returnedBuckets: number;
|
|
1845
|
+
coveredWindows: number;
|
|
1846
|
+
};
|
|
1847
|
+
export type ReportingSourceSummary = {
|
|
1848
|
+
kind: string;
|
|
1849
|
+
count: number;
|
|
1850
|
+
coverageStart?: string;
|
|
1851
|
+
coverageEnd?: string;
|
|
1852
|
+
completeness: string;
|
|
1853
|
+
};
|
|
1854
|
+
export type ReportingWidgetData = RenderedWidgetData;
|
|
1855
|
+
export type ReportingTrust = RenderedReportingTrust;
|
|
1856
|
+
export declare class MemoryQueueStorage implements QueueStorage {
|
|
1857
|
+
private events;
|
|
1858
|
+
load(): EventEnvelope[];
|
|
1859
|
+
save(events: EventEnvelope[]): void;
|
|
1860
|
+
clear(): void;
|
|
1861
|
+
}
|
|
1862
|
+
export declare class LocalStorageQueueStorage implements QueueStorage {
|
|
1863
|
+
private key;
|
|
1864
|
+
constructor(key?: string);
|
|
1865
|
+
load(): EventEnvelope[];
|
|
1866
|
+
save(events: EventEnvelope[]): void;
|
|
1867
|
+
clear(): void;
|
|
1868
|
+
}
|
|
1869
|
+
export declare class CustdClient {
|
|
1870
|
+
readonly admin: AdminNamespace;
|
|
1871
|
+
readonly provisioning: ProvisioningNamespace;
|
|
1872
|
+
readonly reporting: ReportingNamespace;
|
|
1873
|
+
readonly schemas: SchemaNamespace;
|
|
1874
|
+
readonly analytics: AnalyticsEventClient;
|
|
1875
|
+
readonly parsers: ParserClient;
|
|
1876
|
+
readonly measurement: MeasurementClient;
|
|
1877
|
+
readonly ingestOperations: IngestOperationsClient;
|
|
1878
|
+
readonly publicReads: PublicReadClient;
|
|
1879
|
+
private baseUrl;
|
|
1880
|
+
private getToken;
|
|
1881
|
+
private fetchImpl;
|
|
1882
|
+
private defaultHeaders;
|
|
1883
|
+
private actingCompanySlug;
|
|
1884
|
+
private retry;
|
|
1885
|
+
private batch;
|
|
1886
|
+
private queueEnabled;
|
|
1887
|
+
private queueStorage;
|
|
1888
|
+
private queue;
|
|
1889
|
+
private maxQueueSize;
|
|
1890
|
+
private flushOnOnline;
|
|
1891
|
+
private onlineHandler;
|
|
1892
|
+
private compressionEnabled;
|
|
1893
|
+
private compressionThresholdBytes;
|
|
1894
|
+
private batchTimer;
|
|
1895
|
+
private removeFlushTriggers;
|
|
1896
|
+
private oauthToken;
|
|
1897
|
+
private readonly config;
|
|
1898
|
+
constructor(config: ClientConfig);
|
|
1899
|
+
static fromProvisionedProducer(credentials: ProvisionedProducerCredentials): CustdClient;
|
|
1900
|
+
static fromBrokerEnv(env: BrokerEnv, options?: BrokerEnvClientOptions): CustdClient;
|
|
1901
|
+
private fetchOAuthToken;
|
|
1902
|
+
ingestEvent(event: EventEnvelope): Promise<Response>;
|
|
1903
|
+
track(event: EventEnvelope): Promise<undefined | Response>;
|
|
1904
|
+
enqueue(event: EventEnvelope): void;
|
|
1905
|
+
flush(): Promise<void>;
|
|
1906
|
+
close(): void;
|
|
1907
|
+
/**
|
|
1908
|
+
* Upload raw, line-delimited content for the bound parser.
|
|
1909
|
+
*
|
|
1910
|
+
* X-Parser-UUID binds the parser exactly as direct collectors do. When
|
|
1911
|
+
* `target` is supplied its paired subClient/resource codes are appended as
|
|
1912
|
+
* query parameters: a declarative default the backend applies to records with
|
|
1913
|
+
* no canonical selection and refuses to let override an explicit selection.
|
|
1914
|
+
*
|
|
1915
|
+
* The route answers 202 Accepted, so the status alone is not success. Read
|
|
1916
|
+
* `processed` and `failed` on the returned result.
|
|
1917
|
+
*
|
|
1918
|
+
* A transport failure or an unusable acceptance body cannot prove whether the
|
|
1919
|
+
* upload landed, so it throws {@link CustdRawAcceptanceUnknownError} — which
|
|
1920
|
+
* carries no retry guidance — rather than a retryable transport error.
|
|
1921
|
+
* Replaying the POST could double-land accepted records; the SDK never retries
|
|
1922
|
+
* this operation automatically.
|
|
1923
|
+
*/
|
|
1924
|
+
ingestRawLines(request: RawIngestRequest, options?: RequestOptions): Promise<RawIngestResult>;
|
|
1925
|
+
private sendWithRetry;
|
|
1926
|
+
private sendBatchWithRetry;
|
|
1927
|
+
private encodeBatchBody;
|
|
1928
|
+
private assertBatchResponse;
|
|
1929
|
+
private batchRejectionMessage;
|
|
1930
|
+
private adminRequest;
|
|
1931
|
+
private actingCompanyPath;
|
|
1932
|
+
private adminDownload;
|
|
1933
|
+
private offboardingDownload;
|
|
1934
|
+
private auditExportDownload;
|
|
1935
|
+
private apiRequest;
|
|
1936
|
+
private publicRead;
|
|
1937
|
+
/**
|
|
1938
|
+
* Opens a data-space owner's AI settings session from a handoff, on the broker's hub server.
|
|
1939
|
+
* hubOrigin is the broker's registered hub origin; the session never sends this client's credential.
|
|
1940
|
+
*/
|
|
1941
|
+
redeemSiteAIOwnerHandoff(handoff: SiteAIOwnerHandoff, hubOrigin: string, options?: RequestOptions): Promise<SiteAIOwnerSession>;
|
|
1942
|
+
private publicWrite;
|
|
1943
|
+
private apiDownload;
|
|
1944
|
+
}
|
|
1945
|
+
type AdminRequester = <T>(method: string, path: string, body?: unknown, options?: RequestOptions) => Promise<T>;
|
|
1946
|
+
type AdminAuditDownloader = (path: string, options?: RequestOptions) => Promise<AdminAuditExportResponse>;
|
|
1947
|
+
type NonAdminRequester = <T>(method: string, path: string, body?: unknown, options?: RequestOptions) => Promise<T>;
|
|
1948
|
+
type SchemaRequester = <T>(method: string, path: string, body?: unknown) => Promise<T>;
|
|
1949
|
+
type APIRequester = <T>(method: string, path: string, body?: unknown, options?: RequestOptions) => Promise<T>;
|
|
1950
|
+
type APIDownloader = (path: string, options?: RequestOptions) => Promise<Uint8Array>;
|
|
1951
|
+
export interface ReportExportCreateRequest {
|
|
1952
|
+
dashboardKey: string;
|
|
1953
|
+
formats: string[];
|
|
1954
|
+
parameters: Record<string, unknown>;
|
|
1955
|
+
idempotencyKey?: string;
|
|
1956
|
+
}
|
|
1957
|
+
export interface ReportExportArtifact {
|
|
1958
|
+
id: string;
|
|
1959
|
+
artifactKey: string;
|
|
1960
|
+
format: string;
|
|
1961
|
+
filename: string;
|
|
1962
|
+
mediaType: string;
|
|
1963
|
+
objectBytes: number;
|
|
1964
|
+
objectSha256: string;
|
|
1965
|
+
warnings?: string[];
|
|
1966
|
+
fallbackForFormat?: string;
|
|
1967
|
+
rendererVersion?: string;
|
|
1968
|
+
}
|
|
1969
|
+
export interface ReportExportProgressCounter {
|
|
1970
|
+
key: string;
|
|
1971
|
+
count: number;
|
|
1972
|
+
}
|
|
1973
|
+
export type ReportExportJobList = {
|
|
1974
|
+
exports: ReportExportJob[];
|
|
1975
|
+
};
|
|
1976
|
+
export interface ReportExportJob {
|
|
1977
|
+
id: string;
|
|
1978
|
+
packKey: string;
|
|
1979
|
+
packGeneration: number;
|
|
1980
|
+
dashboardKey: string;
|
|
1981
|
+
formats: string[];
|
|
1982
|
+
parametersDigest: string;
|
|
1983
|
+
snapshotSha256?: string;
|
|
1984
|
+
state: string;
|
|
1985
|
+
progressStage: string;
|
|
1986
|
+
progressCounters?: ReportExportProgressCounter[];
|
|
1987
|
+
queuedAt: string;
|
|
1988
|
+
startedAt?: string;
|
|
1989
|
+
finishedAt?: string;
|
|
1990
|
+
expiresAt?: string;
|
|
1991
|
+
failureCategory?: string;
|
|
1992
|
+
failureMessage?: string;
|
|
1993
|
+
cancellationReason?: string;
|
|
1994
|
+
attemptCount: number;
|
|
1995
|
+
nextAttemptAt?: string;
|
|
1996
|
+
cleanupState: string;
|
|
1997
|
+
cleanupAttempts: number;
|
|
1998
|
+
nextCleanupAt?: string;
|
|
1999
|
+
artifacts?: ReportExportArtifact[];
|
|
2000
|
+
}
|
|
2001
|
+
declare class ReportingNamespace {
|
|
2002
|
+
private readonly request;
|
|
2003
|
+
private readonly download;
|
|
2004
|
+
constructor(request: APIRequester, download: APIDownloader);
|
|
2005
|
+
createExport(input: ReportExportCreateRequest, options?: RequestOptions): Promise<ReportExportJob>;
|
|
2006
|
+
listExports(limit?: number, options?: RequestOptions): Promise<ReportExportJobList>;
|
|
2007
|
+
getExport(exportId: string, options?: RequestOptions): Promise<ReportExportJob>;
|
|
2008
|
+
cancelExport(exportId: string, reason?: string, options?: RequestOptions): Promise<ReportExportJob>;
|
|
2009
|
+
downloadExport(exportId: string, artifactId: string, options?: RequestOptions): Promise<Uint8Array>;
|
|
2010
|
+
/** Exports a completed time-plan run's frozen report source in one to eight formats. */
|
|
2011
|
+
createCompletedRunExport(input: CompletedRunExportRequest, options?: RequestOptions): Promise<ReportExportJob>;
|
|
2012
|
+
/** Lists the dashboards the tenant can open. */
|
|
2013
|
+
dashboards(options?: RequestOptions): Promise<ReportingDashboardCatalogue>;
|
|
2014
|
+
/** Starts, or returns, the data generation that backs one dashboard view. */
|
|
2015
|
+
generateDashboardData(input: ReportingDashboardGenerationRequest, options?: RequestOptions): Promise<ReportingDashboardGeneration>;
|
|
2016
|
+
/** Renders one query against a pack definition that is not published. */
|
|
2017
|
+
previewDraft(input: ReportingDraftPreviewRequest, options?: RequestOptions): Promise<RenderedWidgetData>;
|
|
2018
|
+
dashboard(key: string, options?: RequestOptions): Promise<ReportingDashboard>;
|
|
2019
|
+
receipt(receiptUuid: string, options?: RequestOptions): Promise<PreparedDataReceiptStatus>;
|
|
2020
|
+
outputs(options?: RequestOptions): Promise<PreparedDataOutputList>;
|
|
2021
|
+
output(outputUuid: string, options?: RequestOptions): Promise<PreparedDataOutputStatus>;
|
|
2022
|
+
queryOutput(outputUuid: string, request: ReportingQueryRequest, options?: RequestOptions): Promise<PreparedDataQueryEnvelope>;
|
|
2023
|
+
query(request: ReportingQueryRequest, options?: RequestOptions): Promise<RenderedWidgetData>;
|
|
2024
|
+
subjectInsight(request: SubjectInsightRequest, options?: RequestOptions): Promise<SubjectInsightResponse>;
|
|
2025
|
+
}
|
|
2026
|
+
declare class SchemaNamespace {
|
|
2027
|
+
private readonly request;
|
|
2028
|
+
constructor(request: SchemaRequester);
|
|
2029
|
+
validate(input: SchemaValidationRequest): Promise<SchemaValidationResponse>;
|
|
2030
|
+
dryRun(input: SchemaValidationRequest): Promise<SchemaValidationResponse>;
|
|
2031
|
+
infer(input: SchemaInferenceRequest): Promise<SchemaInferenceResponse>;
|
|
2032
|
+
/** Lists the tenant's event types. */
|
|
2033
|
+
list(): Promise<RegisteredEventTypeList>;
|
|
2034
|
+
/** Lists an event type's schema versions. */
|
|
2035
|
+
listVersions(eventType: string): Promise<EventSchemaVersionList>;
|
|
2036
|
+
/** Returns one version's JSON Schema document. */
|
|
2037
|
+
get(eventType: string, version: string): Promise<EventSchemaDocument>;
|
|
2038
|
+
/** Stores a schema version, creating the event type when it is new, and returns the event type. */
|
|
2039
|
+
register(input: EventSchemaRegisterRequest): Promise<RegisteredEventType>;
|
|
2040
|
+
/** Makes one version the event type's active schema. */
|
|
2041
|
+
activate(eventType: string, version: string): Promise<EventSchemaStateResult>;
|
|
2042
|
+
/** Lets events validate against one version again. */
|
|
2043
|
+
enable(eventType: string, version: string): Promise<EventSchemaStateResult>;
|
|
2044
|
+
/** Deprecates one version so new events no longer validate against it. */
|
|
2045
|
+
disable(eventType: string, version: string): Promise<EventSchemaStateResult>;
|
|
2046
|
+
/** Retires the tenant's event type. Its schemas and stored events stay readable. */
|
|
2047
|
+
disableEventType(eventType: string): Promise<EventSchemaStateResult>;
|
|
2048
|
+
sendTestEvent(event: EventEnvelope): Promise<SendTestEventResponse>;
|
|
2049
|
+
}
|
|
2050
|
+
declare class AdminNamespace {
|
|
2051
|
+
readonly dataLabels: DataLabelAdminClient;
|
|
2052
|
+
readonly dataScopes: DataScopeAdminClient;
|
|
2053
|
+
readonly tenants: AdminTenantNamespace;
|
|
2054
|
+
readonly lifecycle: BackendLifecycleClient;
|
|
2055
|
+
readonly clientSetup: ClientSetupClient;
|
|
2056
|
+
readonly oauthClients: AdminOAuthClientNamespace;
|
|
2057
|
+
readonly sites: AdminSiteNamespace;
|
|
2058
|
+
readonly siteDomains: SiteDomainAdminClient;
|
|
2059
|
+
readonly siteInsights: SiteInsightsAdminClient;
|
|
2060
|
+
readonly schemas: AdminSchemaNamespace;
|
|
2061
|
+
readonly measurement: AdminMeasurementNamespace;
|
|
2062
|
+
readonly predictions: PredictionAdminClient;
|
|
2063
|
+
readonly privacy: AdminPrivacyNamespace;
|
|
2064
|
+
readonly retention: RetentionClient;
|
|
2065
|
+
readonly storageAlerts: AdminStorageAlertsNamespace;
|
|
2066
|
+
readonly audit: AdminAuditNamespace;
|
|
2067
|
+
readonly offboarding: OffboardingClient;
|
|
2068
|
+
readonly reportingPacks: AdminReportingPacksNamespace;
|
|
2069
|
+
readonly tenantStorage: TenantStorageClient;
|
|
2070
|
+
readonly subjectExports: SubjectExportClient;
|
|
2071
|
+
readonly privacyErasures: PrivacyErasureClient;
|
|
2072
|
+
readonly timePlans: TimePlanAdminClient;
|
|
2073
|
+
readonly usage: UsageAdminClient;
|
|
2074
|
+
readonly authProjects: AuthProjectAdminClient;
|
|
2075
|
+
readonly workflowTimings: WorkflowTimingAdminClient;
|
|
2076
|
+
readonly users: AdminUserAdminClient;
|
|
2077
|
+
readonly uncertaintyModels: UncertaintyModelAdminClient;
|
|
2078
|
+
readonly impersonation: ImpersonationAdminClient;
|
|
2079
|
+
readonly supportAccess: SupportAccessAdminClient;
|
|
2080
|
+
readonly system: SystemAdminClient;
|
|
2081
|
+
readonly environmentPolicy: EnvironmentPolicyAdminClient;
|
|
2082
|
+
readonly rls: RlsAdminClient;
|
|
2083
|
+
readonly oauthClientAdmissions: OAuthClientAdmissionAdminClient;
|
|
2084
|
+
readonly sdkUsage: SdkUsageAdminClient;
|
|
2085
|
+
readonly ingestClaims: IngestClaimAdminClient;
|
|
2086
|
+
readonly accountingEvidence: AccountingEvidenceAdminClient;
|
|
2087
|
+
readonly webhooks: NotificationWebhookAdminClient;
|
|
2088
|
+
readonly notificationDestinations: NotificationDestinationAdminClient;
|
|
2089
|
+
readonly emailRelay: EmailRelayAdminClient;
|
|
2090
|
+
readonly campaignEmail: CampaignEmailAdminClient;
|
|
2091
|
+
readonly eventTypes: EventTypeAdminClient;
|
|
2092
|
+
readonly errorIssues: ErrorIssueAdminClient;
|
|
2093
|
+
readonly managedAudit: ManagedAuditAdminClient;
|
|
2094
|
+
constructor(request: AdminRequester, nonAdminRequest: NonAdminRequester, offboardingDownload: (path: string, options?: RequestOptions) => Promise<OffboardingDownloadStream>, auditExportDownload: AdminAuditDownloader);
|
|
2095
|
+
}
|
|
2096
|
+
declare class ProvisioningNamespace {
|
|
2097
|
+
readonly dataSpaces: ProvisioningDataSpaceNamespace;
|
|
2098
|
+
readonly producers: ProvisioningProducerNamespace;
|
|
2099
|
+
readonly reservations: ProvisioningReservationsNamespace;
|
|
2100
|
+
constructor(request: APIRequester);
|
|
2101
|
+
}
|
|
2102
|
+
/** Producer reservations under one data space. A system administrator names the parent tenant. */
|
|
2103
|
+
declare class ProvisioningReservationsNamespace {
|
|
2104
|
+
private readonly request;
|
|
2105
|
+
constructor(request: APIRequester);
|
|
2106
|
+
reserve(dataSpaceSlug: string, body: ProducerReservationCreateRequest, parentCompanySlug?: string): Promise<ProducerReservation>;
|
|
2107
|
+
list(dataSpaceSlug: string, parentCompanySlug?: string): Promise<ProducerReservationListResponse>;
|
|
2108
|
+
claim(dataSpaceSlug: string, producerSlug: string, body: ProducerReservationClaimRequest, parentCompanySlug?: string): Promise<ProducerReservation>;
|
|
2109
|
+
release(dataSpaceSlug: string, producerSlug: string, parentCompanySlug?: string): Promise<void>;
|
|
2110
|
+
}
|
|
2111
|
+
declare class ProvisioningDataSpaceNamespace {
|
|
2112
|
+
private readonly request;
|
|
2113
|
+
constructor(request: APIRequester);
|
|
2114
|
+
/** Creates a data space under the caller's company; a system administrator names the parent tenant. */
|
|
2115
|
+
create(dataSpace: DataSpaceCreate, parentCompanySlug?: string): Promise<DataSpace>;
|
|
2116
|
+
/** Lists the caller's data spaces; a system administrator names the parent tenant. */
|
|
2117
|
+
list(parentCompanySlug?: string): Promise<DataSpaceListResponse>;
|
|
2118
|
+
/** Reads retained storage per data space. A system administrator names the parent tenant. */
|
|
2119
|
+
usage(parentCompanySlug?: string): Promise<DataSpaceUsageSummary>;
|
|
2120
|
+
revoke(slug: string, parentCompanySlug?: string): Promise<void>;
|
|
2121
|
+
/** Asks Custd to erase everything a data space holds. The answer is the accepted request, not the finished erasure. */
|
|
2122
|
+
erase(slug: string, parentCompanySlug?: string): Promise<DataSpaceErasure>;
|
|
2123
|
+
getErasure(slug: string, parentCompanySlug?: string): Promise<DataSpaceErasure>;
|
|
2124
|
+
/** Reads whether a data space's signing producers are ready and what ingest refused. */
|
|
2125
|
+
getSigningStatus(slug: string, parentCompanySlug?: string): Promise<DataSpaceSigningStatus>;
|
|
2126
|
+
/**
|
|
2127
|
+
* Moves a parent's Site, with every record keyed to it, into the data space. Its credentials keep their
|
|
2128
|
+
* client id and secret. Repeating it answers `already_adopted`.
|
|
2129
|
+
*/
|
|
2130
|
+
adoptSite(slug: string, siteUuid: string, parentCompanySlug?: string): Promise<DataSpaceSiteAdoption>;
|
|
2131
|
+
}
|
|
2132
|
+
declare class ProvisioningProducerNamespace {
|
|
2133
|
+
private readonly request;
|
|
2134
|
+
constructor(request: APIRequester);
|
|
2135
|
+
provision(request: ProducerProvisionCreate): Promise<ProvisionedProducerCredentials>;
|
|
2136
|
+
list(companySlug?: string): Promise<ProducerProvisionListResponse>;
|
|
2137
|
+
get(clientId: string): Promise<ProducerProvisionPublicClient>;
|
|
2138
|
+
rotateSecret(clientId: string): Promise<ProducerSecretRotation>;
|
|
2139
|
+
/**
|
|
2140
|
+
* Sets the environment recorded for this producer. It is the authenticated
|
|
2141
|
+
* default for events that do not declare their own, not a per-environment
|
|
2142
|
+
* credential: one producer is expected to carry every environment unless an
|
|
2143
|
+
* operator deliberately restricts it.
|
|
2144
|
+
*/
|
|
2145
|
+
updateEnvironment(clientId: string, environment: string): Promise<ProducerProvisionPublicClient>;
|
|
2146
|
+
/** Replaces the public keys a producer minted with the hosting-email-delivery template signs with. */
|
|
2147
|
+
setSigningKeys(clientId: string, update: ProducerSigningKeysUpdate): Promise<ProducerSigningKeys>;
|
|
2148
|
+
/** Reads the public keys, and their fingerprints, a signing producer's events are verified with. */
|
|
2149
|
+
getSigningKeys(clientId: string): Promise<ProducerSigningKeys>;
|
|
2150
|
+
revoke(clientId: string): Promise<void>;
|
|
2151
|
+
}
|
|
2152
|
+
declare class AdminTenantNamespace {
|
|
2153
|
+
private readonly request;
|
|
2154
|
+
constructor(request: AdminRequester);
|
|
2155
|
+
create(tenant: AdminTenantCreate): Promise<AdminTenant>;
|
|
2156
|
+
list(): Promise<AdminTenantListResponse>;
|
|
2157
|
+
get(slug: string): Promise<AdminTenant>;
|
|
2158
|
+
delete(slug: string): Promise<void>;
|
|
2159
|
+
/**
|
|
2160
|
+
* Permanently removes an already deleted tenant once its cleanup is finished.
|
|
2161
|
+
* The server refuses an unready tenant with a conflict.
|
|
2162
|
+
*/
|
|
2163
|
+
finalize(slug: string, companyId: number): Promise<void>;
|
|
2164
|
+
/**
|
|
2165
|
+
* Runs the credential-revoking, queue, database and object-storage cleanup for a
|
|
2166
|
+
* deleted tenant. The idempotencyKey is required: repeat it to retry the same cleanup.
|
|
2167
|
+
*/
|
|
2168
|
+
historicalCleanup(slug: string, companyId: number, options?: RequestOptions): Promise<TenantHistoricalCleanupReceipt>;
|
|
2169
|
+
getDataSpaceEntitlement(slug: string): Promise<DataSpaceEntitlementState>;
|
|
2170
|
+
updateDataSpaceEntitlement(slug: string, body: DataSpaceEntitlementUpdateRequest): Promise<DataSpaceEntitlementState>;
|
|
2171
|
+
updateStorageLimit(slug: string, body: StorageLimitUpdateRequest): Promise<StorageLimit>;
|
|
2172
|
+
}
|
|
2173
|
+
declare class AdminOAuthClientNamespace {
|
|
2174
|
+
private readonly request;
|
|
2175
|
+
constructor(request: AdminRequester);
|
|
2176
|
+
create(client: AdminOAuthClientCreate, options?: RequestOptions): Promise<AdminOAuthClientCreateResponse>;
|
|
2177
|
+
list(): Promise<AdminOAuthClientListResponse>;
|
|
2178
|
+
get(clientId: string): Promise<AdminOAuthClient>;
|
|
2179
|
+
delete(clientId: string, options?: RequestOptions): Promise<void>;
|
|
2180
|
+
rotateSecret(clientId: string, options?: RequestOptions): Promise<AdminOAuthClientSecretResponse>;
|
|
2181
|
+
/**
|
|
2182
|
+
* Issues a new secret for a client whose current secret nobody holds. The new secret is shown only
|
|
2183
|
+
* in this response.
|
|
2184
|
+
*/
|
|
2185
|
+
replaceUnknownSecret(clientId: string, options?: RequestOptions): Promise<AdminOAuthClientSecretResponse>;
|
|
2186
|
+
updateScopes(clientId: string, body: AdminOAuthClientUpdateScopesRequest, options?: RequestOptions): Promise<AdminOAuthClient>;
|
|
2187
|
+
}
|
|
2188
|
+
declare class AdminSiteNamespace {
|
|
2189
|
+
private readonly request;
|
|
2190
|
+
constructor(request: AdminRequester);
|
|
2191
|
+
create(site: AdminSiteCreate): Promise<AdminSiteCreateResponse>;
|
|
2192
|
+
list(): Promise<AdminSiteListResponse>;
|
|
2193
|
+
get(siteUuid: string): Promise<AdminSite>;
|
|
2194
|
+
update(siteUuid: string, body: AdminSiteUpdate): Promise<AdminSite>;
|
|
2195
|
+
delete(siteUuid: string): Promise<void>;
|
|
2196
|
+
rotateWriteKey(siteUuid: string): Promise<AdminSiteWriteKeyResponse>;
|
|
2197
|
+
}
|
|
2198
|
+
declare class AdminSchemaNamespace {
|
|
2199
|
+
private readonly request;
|
|
2200
|
+
constructor(request: AdminRequester);
|
|
2201
|
+
validate(body: AdminSchemaValidateRequest): Promise<AdminSchemaValidateResult>;
|
|
2202
|
+
enableVersion(tenantSlug: string, eventTypeSlug: string, body: AdminSchemaEnableRequest): Promise<void>;
|
|
2203
|
+
register(tenantSlug: string, eventTypeSlug: string, body: AdminSchemaRegisterRequest): Promise<void>;
|
|
2204
|
+
dryRun(tenantSlug: string, eventTypeSlug: string, body: AdminSchemaDryRunRequest): Promise<AdminSchemaDryRunResult>;
|
|
2205
|
+
audit(tenantSlug?: string): Promise<AdminSchemaAuditListResponse>;
|
|
2206
|
+
}
|
|
2207
|
+
declare class AdminPrivacyNamespace {
|
|
2208
|
+
private readonly request;
|
|
2209
|
+
constructor(request: AdminRequester);
|
|
2210
|
+
getRules(companySlug?: string): Promise<AdminPrivacyRulesResponse>;
|
|
2211
|
+
setRules(body: AdminPrivacyRuleUpdate): Promise<AdminPrivacyRulesResponse>;
|
|
2212
|
+
mapIdentifier(companySlug: string, body: AdminPrivacyIdentifierMapRequest): Promise<AdminPrivacyIdentifierMapping>;
|
|
2213
|
+
listIdentifierMappings(companySlug: string): Promise<AdminPrivacyIdentifierMappingList>;
|
|
2214
|
+
listConsent(subjectId: string, companySlug?: string): Promise<AdminPrivacyConsentList>;
|
|
2215
|
+
recordConsent(body: AdminPrivacyConsentRecordRequest): Promise<AdminPrivacyConsentRecord>;
|
|
2216
|
+
revokeConsent(subjectId: string, revoke: AdminPrivacyConsentRevokeRequest): Promise<AdminPrivacyConsentRecord>;
|
|
2217
|
+
}
|
|
2218
|
+
declare class AdminStorageAlertsNamespace {
|
|
2219
|
+
private readonly request;
|
|
2220
|
+
constructor(request: AdminRequester);
|
|
2221
|
+
listRules(tenantSlug: string): Promise<AdminStorageAlertRuleListResponse>;
|
|
2222
|
+
createRule(tenantSlug: string, body: AdminStorageAlertRuleCreateRequest): Promise<AdminStorageAlertRule>;
|
|
2223
|
+
deleteRule(tenantSlug: string, ruleId: string): Promise<void>;
|
|
2224
|
+
listEvents(tenantSlug: string): Promise<AdminStorageAlertEventListResponse>;
|
|
2225
|
+
}
|
|
2226
|
+
declare class AdminAuditNamespace {
|
|
2227
|
+
private readonly request;
|
|
2228
|
+
private readonly download;
|
|
2229
|
+
constructor(request: AdminRequester, download: AdminAuditDownloader);
|
|
2230
|
+
private auditQuery;
|
|
2231
|
+
private auditLookupQuery;
|
|
2232
|
+
listEvents(options?: AdminAuditListOptions): Promise<AdminAuditListResponse>;
|
|
2233
|
+
getEvent(eventId: string, options?: AdminAuditListOptions): Promise<AdminAuditEvent>;
|
|
2234
|
+
exportEvents(options?: AdminAuditListOptions, format?: "csv" | "json"): Promise<AdminAuditExportResponse>;
|
|
2235
|
+
listReportingPackEvents(packKey: string): Promise<AdminReportingPackAuditListResponse>;
|
|
2236
|
+
}
|
|
2237
|
+
declare class AdminReportingPacksNamespace {
|
|
2238
|
+
private readonly request;
|
|
2239
|
+
constructor(request: AdminRequester);
|
|
2240
|
+
listDrafts(): Promise<ReportingPackDraftListResponse>;
|
|
2241
|
+
/** List the reviewed setup templates (each with its canonical definition). */
|
|
2242
|
+
listSetupTemplates(): Promise<ReportingPackSetupTemplateListResponse>;
|
|
2243
|
+
/**
|
|
2244
|
+
* Apply typed bindings to one reviewed setup template and return the
|
|
2245
|
+
* server-built definition. Pure build: the server creates no data, grants no
|
|
2246
|
+
* scope, and writes no generation; post the result through createDraft/preview
|
|
2247
|
+
* only when the caller intends to.
|
|
2248
|
+
*/
|
|
2249
|
+
bindSetupTemplate(kind: string, body: ReportingPackSetupTemplateBindRequest): Promise<ReportingPackSetupTemplateBindResponse>;
|
|
2250
|
+
getDraft(draftId: string): Promise<ReportingPackDraft>;
|
|
2251
|
+
createDraft(body: ReportingPackDraftCreateRequest): Promise<ReportingPackDraft>;
|
|
2252
|
+
updateDraft(draftId: string, body: ReportingPackDraftUpdateRequest): Promise<ReportingPackDraft>;
|
|
2253
|
+
validate(body: ReportingPackDraftCreateRequest): Promise<ReportingPackValidateResponse>;
|
|
2254
|
+
preview(body: ReportingPackPreviewRequest): Promise<ReportingPackPreviewResponse>;
|
|
2255
|
+
publish(draftId: string): Promise<ReportingPackGeneration>;
|
|
2256
|
+
restart(draftId: string): Promise<ReportingPackDraft>;
|
|
2257
|
+
getGeneration(generationId: string): Promise<ReportingPackGeneration>;
|
|
2258
|
+
getGenerationStatus(generationId: string): Promise<ReportingPackGenerationStatusResponse>;
|
|
2259
|
+
rollbackGeneration(generationId: string): Promise<ReportingPackGeneration>;
|
|
2260
|
+
listGenerationValidity(): Promise<ReportingPackGenerationValidityListResponse>;
|
|
2261
|
+
getRollupProvenance(generationId: string): Promise<ReportingPackRollupProvenance>;
|
|
2262
|
+
}
|
|
2263
|
+
export type PrepareEventMode = "producer" | "browser-cookieless";
|
|
2264
|
+
export type PrepareEventOptions = {
|
|
2265
|
+
mode?: PrepareEventMode;
|
|
2266
|
+
};
|
|
2267
|
+
export declare function redactedProvisionedProducer(credentials: ProvisionedProducerCredentials): RedactedProvisionedProducerCredentials;
|
|
2268
|
+
export declare function validateEvent(event: EventEnvelope): void;
|
|
2269
|
+
/** Reserved envelope label carrying a declared environment. */
|
|
2270
|
+
export declare const environmentLabelKey = "custd.environment";
|
|
2271
|
+
/**
|
|
2272
|
+
* Checks a declared environment against the contract ingest applies, so a
|
|
2273
|
+
* rejected declaration fails locally instead of failing the event at the API.
|
|
2274
|
+
*/
|
|
2275
|
+
export declare function validateEnvironmentValue(value: string): void;
|
|
2276
|
+
/**
|
|
2277
|
+
* Stamps the effective environment onto the envelope labels. An event-level
|
|
2278
|
+
* declaration wins over the client default, and a label the caller set is never
|
|
2279
|
+
* overwritten.
|
|
2280
|
+
*/
|
|
2281
|
+
export declare function applyEnvironmentLabel(event: EventEnvelope, clientEnvironment?: string): void;
|
|
2282
|
+
export declare function validateBrowserEvent(event: EventEnvelope): void;
|
|
2283
|
+
export declare function createDogfoodEvent(input: DogfoodEventInput): EventEnvelope;
|
|
2284
|
+
export declare function prepareEvent(event: EventEnvelope, options?: PrepareEventOptions): EventEnvelope;
|
|
2285
|
+
export declare class RetryableError extends Error {
|
|
2286
|
+
}
|
|
2287
|
+
export declare class CustdProblemError extends Error {
|
|
2288
|
+
readonly problem?: ProblemDetails;
|
|
2289
|
+
readonly failures: EventResult[];
|
|
2290
|
+
constructor(message: string, problem?: ProblemDetails, failures?: EventResult[]);
|
|
2291
|
+
}
|
|
2292
|
+
export declare function normalizeRetryOptions(options?: RetryOptions): Required<RetryOptions>;
|
|
2293
|
+
export declare function withRetry<T>(options: Required<RetryOptions>, op: () => Promise<T>): Promise<T>;
|
|
2294
|
+
/** Opaque per-event identity, including runtimes without Web Crypto. Not an authentication token. */
|
|
2295
|
+
export declare function createEventId(): string;
|
|
2296
|
+
export * from "./admin-accounting-evidence.js";
|
|
2297
|
+
export * from "./admin-campaign-email.js";
|
|
2298
|
+
export * from "./admin-email-relay.js";
|
|
2299
|
+
export * from "./admin-environment-policy.js";
|
|
2300
|
+
export * from "./admin-error-issues.js";
|
|
2301
|
+
export * from "./admin-event-types.js";
|
|
2302
|
+
export * from "./admin-impersonation.js";
|
|
2303
|
+
export * from "./admin-ingest-claims.js";
|
|
2304
|
+
export * from "./admin-managed-audit.js";
|
|
2305
|
+
export * from "./admin-measurement-projects.js";
|
|
2306
|
+
export * from "./admin-notification-destinations.js";
|
|
2307
|
+
export * from "./admin-notification-webhooks.js";
|
|
2308
|
+
export * from "./admin-oauth-client-admissions.js";
|
|
2309
|
+
export * from "./admin-rls.js";
|
|
2310
|
+
export * from "./admin-sdk-usage.js";
|
|
2311
|
+
export type { SiteRegionalTrendMarket, SiteRegionalTrendMatch, SiteRegionalTrends, SiteTechnicalTrends, } from "./admin-site-regional-trends.js";
|
|
2312
|
+
export * from "./admin-support-access.js";
|
|
2313
|
+
export * from "./admin-system.js";
|
|
2314
|
+
export * from "./admin-uncertainty-models.js";
|
|
2315
|
+
export * from "./analytics-reads.js";
|
|
2316
|
+
export * from "./app-account.js";
|
|
2317
|
+
export { type CaptureExceptionRequest, createErrorCaptureEvent, ErrorCaptureClient, type ErrorCaptureConfig, type ErrorCaptureEvent, type ErrorCaptureEventConfig, type ErrorCaptureResult, type ErrorFrame, installBrowserErrorCapture, installNativeErrorCapture, type NativeErrorHandler, type NativeErrorSource, } from "./error-capture.js";
|
|
2318
|
+
export * from "./ingest-operations.js";
|
|
2319
|
+
export * from "./measurement.js";
|
|
2320
|
+
export * from "./public-reads.js";
|
|
2321
|
+
export * from "./reporting-catalogue.js";
|
|
2322
|
+
export type { EventSchemaDocument, EventSchemaRegisterRequest, EventSchemaStateResult, EventSchemaVersion, EventSchemaVersionList, RegisteredEventType, RegisteredEventTypeList, } from "./schema-registry.js";
|
|
2323
|
+
export { SiteAIOwnerSession, type SiteAIOwnerSettings, type SiteAIOwnerTransport } from "./site-ai-owner.js";
|
|
2324
|
+
export * from "./site-monitor-reports.js";
|