@haakco/custd-sdk 2.4.0 → 3.71.2
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/LICENSE +21 -0
- package/README.md +586 -40
- 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 +22 -0
- package/dist/admin-client-setup.js +11 -1
- 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 +20 -6
- package/dist/admin-offboarding.js +27 -6
- package/dist/admin-predictions.d.ts +127 -8
- package/dist/admin-predictions.js +22 -12
- package/dist/admin-privacy-erasures.d.ts +24 -12
- package/dist/admin-privacy-erasures.js +3 -2
- package/dist/admin-retention.d.ts +72 -24
- package/dist/admin-retention.js +38 -13
- 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 +58 -27
- package/dist/admin-subject-exports.js +32 -16
- 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 +22 -14
- package/dist/admin-tenant-storage.js +13 -14
- package/dist/admin-timeplans.d.ts +276 -2
- package/dist/admin-timeplans.js +54 -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 +82 -0
- package/dist/analytics-events.js +157 -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 +2 -2
- package/dist/browser-manifest.json +5 -5
- package/dist/browser-script-BWnwDjAC.js +711 -0
- package/dist/browser-sign-in.d.ts +153 -0
- package/dist/browser-sign-in.js +410 -0
- package/dist/browser-tracker.d.ts +95 -0
- package/dist/browser-tracker.js +362 -40
- package/dist/browser-web-vitals.d.ts +22 -0
- package/dist/browser-web-vitals.js +116 -0
- package/dist/browser.d.ts +9 -0
- package/dist/browser.js +9 -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 +1168 -154
- package/dist/index.js +682 -162
- 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/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/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/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 +2 -2
- package/dist/version.js +1 -1
- package/package.json +25 -14
- package/dist/browser-script-BvgjdZSO.js +0 -429
- package/dist/fixtures.d.ts +0 -10
- package/dist/fixtures.js +0 -57
package/dist/index.d.ts
CHANGED
|
@@ -1,25 +1,89 @@
|
|
|
1
|
+
import { AuthProjectAdminClient } from "./admin-auth-projects.js";
|
|
1
2
|
import { ClientSetupClient } from "./admin-client-setup.js";
|
|
2
3
|
import { DataLabelAdminClient } from "./admin-data-labels.js";
|
|
3
|
-
import {
|
|
4
|
+
import { DataScopeAdminClient } from "./admin-data-scopes.js";
|
|
5
|
+
import { OffboardingClient, type OffboardingDownloadStream, type OffboardingReceiptPerStore } from "./admin-offboarding.js";
|
|
4
6
|
import { PredictionAdminClient } from "./admin-predictions.js";
|
|
5
7
|
import { PrivacyErasureClient } from "./admin-privacy-erasures.js";
|
|
6
8
|
import { RetentionClient } from "./admin-retention.js";
|
|
9
|
+
import { SiteDomainAdminClient } from "./admin-site-domains.js";
|
|
10
|
+
import { SiteInsightsAdminClient } from "./admin-site-insights-tasks.js";
|
|
7
11
|
import { SubjectExportClient } from "./admin-subject-exports.js";
|
|
8
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";
|
|
9
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";
|
|
10
40
|
import { AnalyticsEventClient } from "./analytics-events.js";
|
|
11
41
|
import { BackendLifecycleClient } from "./backend-lifecycle.js";
|
|
12
|
-
|
|
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";
|
|
13
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";
|
|
14
|
-
export { type
|
|
15
|
-
export { type
|
|
16
|
-
export { type
|
|
17
|
-
export {
|
|
18
|
-
export { type
|
|
19
|
-
export {
|
|
20
|
-
export {
|
|
21
|
-
export {
|
|
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";
|
|
22
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";
|
|
23
87
|
export { classifyReportingData, getReportingViewState, type ReportingDataState, type ReportingQueryState, type ReportingViewState, reportingQueryKey, } from "./reporting-state.js";
|
|
24
88
|
export { checkRuntimeReadiness, type RuntimeReadinessCredentialResult, type RuntimeReadinessOAuthConfig, type RuntimeReadinessOptions, type RuntimeReadinessResult, } from "./runtime-readiness.js";
|
|
25
89
|
export type EventContext = {
|
|
@@ -96,6 +160,56 @@ type EventResult = {
|
|
|
96
160
|
status?: number;
|
|
97
161
|
error?: ProblemDetails;
|
|
98
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
|
+
};
|
|
99
213
|
export type ProducerOAuthConfig = {
|
|
100
214
|
clientId: string;
|
|
101
215
|
clientSecret: string;
|
|
@@ -112,7 +226,20 @@ export type ProvisionedProducerCredentials = {
|
|
|
112
226
|
clientSecret: string;
|
|
113
227
|
scopes?: string[];
|
|
114
228
|
environment?: string;
|
|
115
|
-
|
|
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[];
|
|
116
243
|
};
|
|
117
244
|
export type RedactedProvisionedProducerCredentials = Omit<ProvisionedProducerCredentials, "clientSecret">;
|
|
118
245
|
export type DataSpaceCreate = {
|
|
@@ -135,22 +262,117 @@ export type DataSpaceListResponse = {
|
|
|
135
262
|
dataSpaces: DataSpace[];
|
|
136
263
|
entitlement: DataSpaceEntitlementState;
|
|
137
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
|
+
};
|
|
138
298
|
export type ProducerProvisionCreate = {
|
|
139
299
|
companySlug: string;
|
|
140
300
|
producerSlug: string;
|
|
141
301
|
displayName?: string;
|
|
142
302
|
environment?: string;
|
|
143
303
|
scopes?: string[];
|
|
144
|
-
scopeTemplate?: "events" | "schemas" | "managed-audit" | "managed-audit-reporting-read" | "managed-audit-reporting-subject-insight" | "managed-audit-event-read";
|
|
145
|
-
|
|
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[];
|
|
146
366
|
};
|
|
147
367
|
export type ProducerProvisionPublicClient = {
|
|
148
368
|
clientId: string;
|
|
149
369
|
companySlug: string;
|
|
150
370
|
producerSlug: string;
|
|
371
|
+
displayName?: string;
|
|
151
372
|
scopes: string[];
|
|
152
373
|
environment?: string;
|
|
153
|
-
|
|
374
|
+
/** The environments this producer may send; empty when it may send any. */
|
|
375
|
+
allowedEnvironments: string[];
|
|
154
376
|
};
|
|
155
377
|
export type ClientConfig = {
|
|
156
378
|
baseUrl: string;
|
|
@@ -164,6 +386,15 @@ export type ClientConfig = {
|
|
|
164
386
|
oauth?: ProducerOAuthConfig;
|
|
165
387
|
fetch?: typeof fetch;
|
|
166
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;
|
|
167
398
|
retry?: RetryOptions;
|
|
168
399
|
batch?: BatchOptions;
|
|
169
400
|
queue?: QueueOptions;
|
|
@@ -173,6 +404,13 @@ export type RequestOptions = {
|
|
|
173
404
|
signal?: AbortSignal;
|
|
174
405
|
/** Stable key for retry-safe POST operations supported by the API. */
|
|
175
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;
|
|
176
414
|
};
|
|
177
415
|
export declare class AdminWorkflowError extends Error {
|
|
178
416
|
readonly status: number;
|
|
@@ -195,6 +433,30 @@ export declare class CustdRequestError extends Error {
|
|
|
195
433
|
});
|
|
196
434
|
get unavailable(): boolean;
|
|
197
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
|
+
}
|
|
198
460
|
export type PreparedDataState = "accepted" | "processing" | "ready" | "failed";
|
|
199
461
|
export type PreparedDataAvailability = "complete" | "partial" | "stale" | "unavailable";
|
|
200
462
|
export type PreparedDataNextAction = "none" | "poll" | "retry" | "rotate" | "escalate";
|
|
@@ -266,18 +528,48 @@ export type QueueStorage = {
|
|
|
266
528
|
save: (events: EventEnvelope[]) => void;
|
|
267
529
|
clear: () => void;
|
|
268
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";
|
|
269
533
|
export type AdminTenantCreate = {
|
|
270
534
|
slug: string;
|
|
271
535
|
companyName: string;
|
|
536
|
+
purpose?: AdminTenantPurpose;
|
|
272
537
|
};
|
|
273
538
|
export type AdminTenant = {
|
|
274
539
|
slug: string;
|
|
275
540
|
companyName: string;
|
|
541
|
+
companyId: number;
|
|
542
|
+
companyUuid: string;
|
|
276
543
|
enabled: boolean;
|
|
544
|
+
purpose: AdminTenantPurpose;
|
|
545
|
+
autoCreateEnvironments: boolean;
|
|
277
546
|
};
|
|
278
547
|
export type AdminTenantListResponse = {
|
|
279
548
|
tenants: AdminTenant[];
|
|
280
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
|
+
};
|
|
281
573
|
export type AdminOAuthClientCreate = {
|
|
282
574
|
clientId: string;
|
|
283
575
|
companySlug: string;
|
|
@@ -290,6 +582,8 @@ export type AdminOAuthClientCreate = {
|
|
|
290
582
|
environment?: string;
|
|
291
583
|
profile?: string;
|
|
292
584
|
purposeProfile?: string;
|
|
585
|
+
/** Binds a browser sign-in client to one Site. */
|
|
586
|
+
siteUuid?: string;
|
|
293
587
|
};
|
|
294
588
|
export type AdminOAuthClient = {
|
|
295
589
|
clientId: string;
|
|
@@ -299,8 +593,26 @@ export type AdminOAuthClient = {
|
|
|
299
593
|
profile?: string;
|
|
300
594
|
purposeProfile?: string;
|
|
301
595
|
};
|
|
302
|
-
|
|
303
|
-
|
|
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;
|
|
304
616
|
};
|
|
305
617
|
export type AdminOAuthClientListResponse = {
|
|
306
618
|
clients: AdminOAuthClient[];
|
|
@@ -308,13 +620,30 @@ export type AdminOAuthClientListResponse = {
|
|
|
308
620
|
export type AdminOAuthClientSecretResponse = {
|
|
309
621
|
clientSecret: string;
|
|
310
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
|
+
};
|
|
311
634
|
export type AdminSiteCreate = {
|
|
312
635
|
companySlug: string;
|
|
313
636
|
name: string;
|
|
314
637
|
identityMode: "cookieless" | "extended";
|
|
315
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[];
|
|
316
643
|
rateLimitPerMinute?: number;
|
|
317
644
|
retentionDays?: number;
|
|
645
|
+
/** Required: a site whose write key cannot write anywhere is not a usable setup. */
|
|
646
|
+
ingestTarget: AdminSiteIngestTarget;
|
|
318
647
|
};
|
|
319
648
|
export type AdminSite = {
|
|
320
649
|
siteUuid: string;
|
|
@@ -322,9 +651,23 @@ export type AdminSite = {
|
|
|
322
651
|
name: string;
|
|
323
652
|
identityMode: "cookieless" | "extended";
|
|
324
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[];
|
|
325
658
|
rateLimitPerMinute: number;
|
|
326
659
|
retentionDays: number;
|
|
327
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;
|
|
328
671
|
};
|
|
329
672
|
export type AdminSiteCreateResponse = AdminSite & {
|
|
330
673
|
writeKey: string;
|
|
@@ -335,23 +678,6 @@ export type AdminSiteListResponse = {
|
|
|
335
678
|
export type AdminSiteWriteKeyResponse = {
|
|
336
679
|
writeKey: string;
|
|
337
680
|
};
|
|
338
|
-
export type AdminSchemaRegister = {
|
|
339
|
-
eventTypeSlug: string;
|
|
340
|
-
version: string;
|
|
341
|
-
jsonSchema: Record<string, unknown>;
|
|
342
|
-
};
|
|
343
|
-
export type AdminSchemaVersionCreate = {
|
|
344
|
-
version: string;
|
|
345
|
-
jsonSchema: Record<string, unknown>;
|
|
346
|
-
};
|
|
347
|
-
export type AdminSchema = {
|
|
348
|
-
eventTypeSlug: string;
|
|
349
|
-
version: string;
|
|
350
|
-
jsonSchema?: Record<string, unknown>;
|
|
351
|
-
};
|
|
352
|
-
export type AdminSchemaListResponse = {
|
|
353
|
-
schemas: AdminSchema[];
|
|
354
|
-
};
|
|
355
681
|
export type AdminOAuthClientUpdateScopesRequest = {
|
|
356
682
|
companySlug?: string;
|
|
357
683
|
profile?: string;
|
|
@@ -379,6 +705,16 @@ export type AdminSchemaEnableRequest = {
|
|
|
379
705
|
version: string;
|
|
380
706
|
enabledAt?: string;
|
|
381
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
|
+
};
|
|
382
718
|
export type AdminSchemaDryRunRequest = {
|
|
383
719
|
tenantSlug: string;
|
|
384
720
|
eventTypeSlug: string;
|
|
@@ -391,55 +727,170 @@ export type AdminSchemaDryRunResult = {
|
|
|
391
727
|
failed: number;
|
|
392
728
|
issues: AdminSchemaIssue[];
|
|
393
729
|
};
|
|
394
|
-
|
|
395
|
-
|
|
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;
|
|
396
751
|
eventTypeSlug: string;
|
|
397
752
|
version: string;
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
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;
|
|
401
767
|
};
|
|
402
768
|
export type AdminSchemaAuditListResponse = {
|
|
403
|
-
|
|
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;
|
|
404
778
|
};
|
|
405
779
|
export type AdminPrivacyRulesResponse = {
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
780
|
+
companySlug: string;
|
|
781
|
+
enabled: boolean;
|
|
782
|
+
applyMode: string;
|
|
783
|
+
rules: AdminPrivacyRule[];
|
|
409
784
|
};
|
|
785
|
+
/** Replaces the tenant's whole privacy rule set. */
|
|
410
786
|
export type AdminPrivacyRuleUpdate = {
|
|
411
|
-
|
|
412
|
-
|
|
787
|
+
companySlug: string;
|
|
788
|
+
enabled: boolean;
|
|
789
|
+
applyMode: string;
|
|
790
|
+
rules: AdminPrivacyRule[];
|
|
413
791
|
};
|
|
414
792
|
export type AdminPrivacyIdentifierMapping = {
|
|
415
793
|
identifierId: string;
|
|
416
794
|
internalIdHash: string;
|
|
417
795
|
internalIdHashPrefix: string;
|
|
418
796
|
saltVersion: number;
|
|
419
|
-
createdAt
|
|
797
|
+
createdAt: string;
|
|
798
|
+
};
|
|
799
|
+
export type AdminPrivacyIdentifierMappingList = {
|
|
800
|
+
companySlug: string;
|
|
801
|
+
mappings: AdminPrivacyIdentifierMapping[];
|
|
420
802
|
};
|
|
421
803
|
export type AdminPrivacyIdentifierMapRequest = {
|
|
422
804
|
externalId: string;
|
|
423
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
|
+
};
|
|
424
845
|
export type AdminStorageAlertRule = {
|
|
425
846
|
ruleId: string;
|
|
426
847
|
tenantSlug: string;
|
|
427
848
|
metric: string;
|
|
428
849
|
thresholdPercent: number;
|
|
429
|
-
channel:
|
|
850
|
+
channel: "email" | "webhook";
|
|
851
|
+
emailRecipient?: string;
|
|
430
852
|
enabled: boolean;
|
|
431
|
-
|
|
432
|
-
|
|
853
|
+
evaluation?: AdminStorageAlertEvaluation;
|
|
854
|
+
createdAt: string;
|
|
855
|
+
updatedAt: string;
|
|
433
856
|
};
|
|
434
857
|
export type AdminStorageAlertRuleCreateRequest = {
|
|
435
858
|
metric: string;
|
|
436
859
|
thresholdPercent: number;
|
|
437
|
-
channel:
|
|
860
|
+
channel: "email" | "webhook";
|
|
861
|
+
/** Where an email-channel rule sends its alert. */
|
|
862
|
+
emailRecipient?: string;
|
|
438
863
|
enabled: boolean;
|
|
439
864
|
};
|
|
440
865
|
export type AdminStorageAlertRuleListResponse = {
|
|
441
866
|
rules: AdminStorageAlertRule[];
|
|
442
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
|
+
};
|
|
443
894
|
export type AdminAuditEvent = {
|
|
444
895
|
/** Stable public audit event UUID. */
|
|
445
896
|
eventId: string;
|
|
@@ -457,10 +908,25 @@ export type AdminAuditEvent = {
|
|
|
457
908
|
changes?: AdminAuditChange[];
|
|
458
909
|
details?: Record<string, unknown>;
|
|
459
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;
|
|
460
925
|
createdAt: string;
|
|
461
926
|
};
|
|
927
|
+
/** The next page's cursor; `cursor` is absent on the last page. */
|
|
462
928
|
export type AdminAuditListCursor = {
|
|
463
|
-
cursor
|
|
929
|
+
cursor?: string;
|
|
464
930
|
};
|
|
465
931
|
export type AdminAuditOutcome = "attempted" | "success" | "failure" | "denied" | "pending" | "unknown";
|
|
466
932
|
export type AdminAuditDisclosureState = "available" | "redacted" | "not_recorded";
|
|
@@ -499,19 +965,18 @@ export type AdminAuditListOptions = {
|
|
|
499
965
|
resourceId?: string;
|
|
500
966
|
outcome?: AdminAuditOutcome;
|
|
501
967
|
correlationId?: string;
|
|
968
|
+
/** Only events attributed to this auth-project environment (realm). */
|
|
969
|
+
environmentId?: string;
|
|
502
970
|
limit?: number;
|
|
503
971
|
cursor?: string;
|
|
504
972
|
};
|
|
505
|
-
export
|
|
506
|
-
|
|
507
|
-
contentType: string;
|
|
508
|
-
};
|
|
973
|
+
/** The audit export as it arrives, in the requested format, with the server's request id. */
|
|
974
|
+
export type AdminAuditExportResponse = CustdDownloadStream;
|
|
509
975
|
export type AdminReportingPackAuditEvent = {
|
|
510
976
|
action: string;
|
|
511
977
|
actorReference?: string;
|
|
512
978
|
actorDisplayName: string;
|
|
513
979
|
resourceType: string;
|
|
514
|
-
resourceId: string;
|
|
515
980
|
packKey: string;
|
|
516
981
|
createdAt: string;
|
|
517
982
|
};
|
|
@@ -520,10 +985,21 @@ export type AdminReportingPackAuditListResponse = {
|
|
|
520
985
|
};
|
|
521
986
|
export type SelectorDefinition = {
|
|
522
987
|
selector: string;
|
|
523
|
-
|
|
524
|
-
|
|
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";
|
|
525
1001
|
export type NumericSelector = SelectorDefinition & {
|
|
526
|
-
unit:
|
|
1002
|
+
unit: RenderedUnit;
|
|
527
1003
|
};
|
|
528
1004
|
export type IdentitySelectors = {
|
|
529
1005
|
subject?: SelectorDefinition;
|
|
@@ -534,7 +1010,7 @@ export type IdentitySelectors = {
|
|
|
534
1010
|
};
|
|
535
1011
|
export type FilterDefinition = {
|
|
536
1012
|
dimension: string;
|
|
537
|
-
operators:
|
|
1013
|
+
operators: ("eq" | "neq" | "in" | "contains")[];
|
|
538
1014
|
};
|
|
539
1015
|
export type SubjectScopeRule = {
|
|
540
1016
|
required: boolean;
|
|
@@ -560,17 +1036,17 @@ export type FlowRule = {
|
|
|
560
1036
|
export type PackMetric = {
|
|
561
1037
|
key: string;
|
|
562
1038
|
label: string;
|
|
563
|
-
kind:
|
|
1039
|
+
kind: PackMetricKind;
|
|
564
1040
|
unit?: string;
|
|
565
1041
|
description?: string;
|
|
566
|
-
calculation:
|
|
1042
|
+
calculation: PackMetricCalculation;
|
|
567
1043
|
numeric?: NumericSelector;
|
|
568
1044
|
distinct?: SelectorDefinition;
|
|
569
|
-
measurementKind?:
|
|
1045
|
+
measurementKind?: "gauge" | "monotonicCounter" | "intervalIncrement" | "state";
|
|
570
1046
|
maximumGapSeconds?: number;
|
|
571
|
-
resetPolicy?:
|
|
1047
|
+
resetPolicy?: "as_increment" | "reject" | "rollover";
|
|
572
1048
|
rolloverAt?: number;
|
|
573
|
-
canonicalUnit?:
|
|
1049
|
+
canonicalUnit?: CanonicalUnit;
|
|
574
1050
|
percentile?: number;
|
|
575
1051
|
numeratorMetric?: string;
|
|
576
1052
|
denominatorMetric?: string;
|
|
@@ -587,19 +1063,22 @@ export type PackDimension = {
|
|
|
587
1063
|
allowedValuePattern?: string;
|
|
588
1064
|
fallback?: string;
|
|
589
1065
|
maxCardinality?: number;
|
|
1066
|
+
labelDefinitionKey?: string;
|
|
1067
|
+
labelDefinitionUuid?: string;
|
|
1068
|
+
labelValueUuids?: string[];
|
|
590
1069
|
};
|
|
591
1070
|
export type PackTemplate = {
|
|
592
1071
|
name: string;
|
|
593
1072
|
allowedMetrics: string[];
|
|
594
1073
|
allowedDimensions?: string[];
|
|
595
1074
|
allowedFilters?: FilterDefinition[];
|
|
596
|
-
sourceModes:
|
|
1075
|
+
sourceModes: ("auto" | "postgres" | "duckdb")[];
|
|
597
1076
|
maxRows: number;
|
|
598
1077
|
defaultRange?: string;
|
|
599
1078
|
subjectScope?: SubjectScopeRule;
|
|
600
1079
|
compositionRules?: string[];
|
|
601
1080
|
eventTypes: string[];
|
|
602
|
-
aggregation:
|
|
1081
|
+
aggregation: PackTemplateAggregation;
|
|
603
1082
|
flowRule?: string;
|
|
604
1083
|
};
|
|
605
1084
|
export type TrustDiagnostics = {
|
|
@@ -613,6 +1092,233 @@ export type ProofProfile = {
|
|
|
613
1092
|
forbiddenFields: string[];
|
|
614
1093
|
outputLayout: string;
|
|
615
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
|
+
*/
|
|
616
1322
|
export type PackDefinition = {
|
|
617
1323
|
key: string;
|
|
618
1324
|
displayName: string;
|
|
@@ -624,16 +1330,69 @@ export type PackDefinition = {
|
|
|
624
1330
|
dimensions: PackDimension[];
|
|
625
1331
|
templates: PackTemplate[];
|
|
626
1332
|
flowRules?: FlowRule[];
|
|
1333
|
+
rollupRules?: RollupRule[];
|
|
1334
|
+
dashboards?: PackDashboardDefinition[];
|
|
1335
|
+
exportFormats?: string[];
|
|
627
1336
|
trust: TrustDiagnostics;
|
|
1337
|
+
redactionRules?: RedactionRule[];
|
|
628
1338
|
proof: ProofProfile;
|
|
629
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;
|
|
630
1388
|
};
|
|
631
1389
|
export type ReportingPackDraft = {
|
|
632
1390
|
id: number;
|
|
633
1391
|
revision: number;
|
|
634
1392
|
definition: PackDefinition;
|
|
635
|
-
|
|
636
|
-
|
|
1393
|
+
validationError?: string;
|
|
1394
|
+
createdAt: string;
|
|
1395
|
+
updatedAt: string;
|
|
637
1396
|
};
|
|
638
1397
|
export type ReportingPackDraftCreateRequest = {
|
|
639
1398
|
definition: PackDefinition;
|
|
@@ -648,29 +1407,55 @@ export type ReportingPackDraftListResponse = {
|
|
|
648
1407
|
export type ReportingPackValidateResponse = {
|
|
649
1408
|
valid: boolean;
|
|
650
1409
|
};
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
metrics: string[];
|
|
654
|
-
dimensions?: string[];
|
|
655
|
-
rangeDays?: number;
|
|
656
|
-
};
|
|
1410
|
+
/** The widget query a preview renders: the same request the analytics query endpoint takes. */
|
|
1411
|
+
export type ReportingPackPreviewQueryHint = ReportingQueryRequest;
|
|
657
1412
|
export type ReportingPackPreviewRequest = {
|
|
658
1413
|
definition: PackDefinition;
|
|
659
1414
|
tenantSlug: string;
|
|
660
1415
|
query: ReportingPackPreviewQueryHint;
|
|
661
1416
|
};
|
|
662
|
-
|
|
663
|
-
date: string;
|
|
664
|
-
value: RenderedMetricValue;
|
|
665
|
-
source: string;
|
|
666
|
-
queryDurationMs: number;
|
|
667
|
-
parquetUriCount?: number;
|
|
668
|
-
message?: string;
|
|
669
|
-
secondary?: RenderedMetricValue;
|
|
670
|
-
};
|
|
1417
|
+
/** The preview envelope: the rendered widget under `data`, aggregate-only with no raw rows. */
|
|
671
1418
|
export type ReportingPackPreviewResponse = {
|
|
672
|
-
|
|
673
|
-
|
|
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[];
|
|
674
1459
|
};
|
|
675
1460
|
export type ReportingPackGeneration = {
|
|
676
1461
|
id: number;
|
|
@@ -705,18 +1490,18 @@ export type ReportingPackMaterializationProvenance = {
|
|
|
705
1490
|
export type ReportingPackRollupProvenance = {
|
|
706
1491
|
generationId: number;
|
|
707
1492
|
definitionFingerprint: string;
|
|
708
|
-
tenantSlug
|
|
1493
|
+
tenantSlug: string;
|
|
709
1494
|
materializations: ReportingPackMaterializationProvenance[];
|
|
710
1495
|
};
|
|
711
1496
|
export type ProducerReservation = {
|
|
712
1497
|
producerSlug: string;
|
|
713
1498
|
parentCompanySlug: string;
|
|
714
|
-
childCompanySlug
|
|
1499
|
+
childCompanySlug: string;
|
|
715
1500
|
claimedByClientId?: string;
|
|
716
|
-
status:
|
|
717
|
-
reservedAt
|
|
718
|
-
expiresAt
|
|
719
|
-
maxTtlSeconds
|
|
1501
|
+
status: "pending" | "claimed" | "released" | "expired";
|
|
1502
|
+
reservedAt: string;
|
|
1503
|
+
expiresAt: string;
|
|
1504
|
+
maxTtlSeconds: number;
|
|
720
1505
|
};
|
|
721
1506
|
export type ProducerReservationListResponse = {
|
|
722
1507
|
reservations: ProducerReservation[];
|
|
@@ -729,10 +1514,12 @@ export type ProducerReservationClaimRequest = {
|
|
|
729
1514
|
claimedByClientId: string;
|
|
730
1515
|
};
|
|
731
1516
|
export type MeasurementProjectCreate = {
|
|
1517
|
+
/** The tenant a system administrator creates the project for. */
|
|
1518
|
+
companySlug?: string;
|
|
732
1519
|
projectCode: string;
|
|
733
1520
|
name: string;
|
|
734
|
-
kind: string;
|
|
735
1521
|
description?: string;
|
|
1522
|
+
kind: string;
|
|
736
1523
|
series: MeasurementSeriesCreate[];
|
|
737
1524
|
target: MeasurementTargetCreate;
|
|
738
1525
|
};
|
|
@@ -740,17 +1527,34 @@ export type MeasurementProject = {
|
|
|
740
1527
|
projectUuid: string;
|
|
741
1528
|
projectCode: string;
|
|
742
1529
|
name: string;
|
|
1530
|
+
description: string;
|
|
743
1531
|
kind: string;
|
|
744
1532
|
status: string;
|
|
745
|
-
|
|
1533
|
+
delivery: MeasurementProjectDelivery;
|
|
1534
|
+
run: MeasurementProjectRun;
|
|
746
1535
|
series?: MeasurementSeries[];
|
|
747
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;
|
|
748
1551
|
};
|
|
749
1552
|
export type MeasurementSeries = {
|
|
750
1553
|
seriesUuid: string;
|
|
751
1554
|
seriesCode: string;
|
|
752
1555
|
name: string;
|
|
753
1556
|
unitSlug: string;
|
|
1557
|
+
unitLabel?: string;
|
|
754
1558
|
completionDirection: string;
|
|
755
1559
|
source: string;
|
|
756
1560
|
};
|
|
@@ -760,6 +1564,7 @@ export type MeasurementTarget = {
|
|
|
760
1564
|
name: string;
|
|
761
1565
|
targetValue: number;
|
|
762
1566
|
targetDate?: string;
|
|
1567
|
+
completedAt?: string;
|
|
763
1568
|
state: string;
|
|
764
1569
|
};
|
|
765
1570
|
export type MeasurementProjectListResponse = {
|
|
@@ -769,6 +1574,7 @@ export type MeasurementSeriesCreate = {
|
|
|
769
1574
|
seriesCode: string;
|
|
770
1575
|
name: string;
|
|
771
1576
|
unitSlug: string;
|
|
1577
|
+
unitLabel?: string;
|
|
772
1578
|
completionDirection: string;
|
|
773
1579
|
source: string;
|
|
774
1580
|
};
|
|
@@ -798,18 +1604,15 @@ export type MeasurementObservationResult = {
|
|
|
798
1604
|
title?: string;
|
|
799
1605
|
detail?: string;
|
|
800
1606
|
};
|
|
1607
|
+
/** Each row's outcome. completedTargetUuid names a target an accepted observation reached. */
|
|
801
1608
|
export type MeasurementObservationBulkResponse = {
|
|
802
1609
|
importId: string;
|
|
803
1610
|
accepted: number;
|
|
804
1611
|
rejected: number;
|
|
805
1612
|
results: MeasurementObservationResult[];
|
|
1613
|
+
completedTargetUuid?: string;
|
|
806
1614
|
};
|
|
807
|
-
export type MeasurementCSVImportResponse =
|
|
808
|
-
importId: string;
|
|
809
|
-
accepted: number;
|
|
810
|
-
rejected: number;
|
|
811
|
-
results: MeasurementObservationResult[];
|
|
812
|
-
};
|
|
1615
|
+
export type MeasurementCSVImportResponse = MeasurementObservationBulkResponse;
|
|
813
1616
|
export type SchemaValidationIssue = {
|
|
814
1617
|
path: string;
|
|
815
1618
|
keyword: string;
|
|
@@ -871,23 +1674,9 @@ export type SendTestEventResponse = {
|
|
|
871
1674
|
success: boolean;
|
|
872
1675
|
eventUuid: string;
|
|
873
1676
|
};
|
|
874
|
-
|
|
875
|
-
|
|
876
|
-
|
|
877
|
-
hidden?: boolean;
|
|
878
|
-
defaultRange: string;
|
|
879
|
-
refreshSeconds: number;
|
|
880
|
-
requiredScopes: string[];
|
|
881
|
-
widgets: ReportingWidget[];
|
|
882
|
-
};
|
|
883
|
-
export type ReportingWidget = {
|
|
884
|
-
key: string;
|
|
885
|
-
title: string;
|
|
886
|
-
kind: string;
|
|
887
|
-
template: string;
|
|
888
|
-
metrics: string[];
|
|
889
|
-
dimensions?: string[];
|
|
890
|
-
};
|
|
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;
|
|
891
1680
|
export type ReportingQueryRequest = {
|
|
892
1681
|
dashboardKey?: string;
|
|
893
1682
|
widgetKey?: string;
|
|
@@ -920,6 +1709,8 @@ export type SubjectInsightResponse = {
|
|
|
920
1709
|
export type RenderedWidgetData = {
|
|
921
1710
|
buckets: RenderedWidgetBucket[];
|
|
922
1711
|
value: RenderedMetricValue;
|
|
1712
|
+
emailDelivery?: ReportingEmailDelivery;
|
|
1713
|
+
labelMetadata?: ReportingLabelMetadata[];
|
|
923
1714
|
metadata?: ReportingQueryMetadata;
|
|
924
1715
|
sources?: ReportingSourceSummary[];
|
|
925
1716
|
warnings?: string[];
|
|
@@ -969,11 +1760,80 @@ export type RenderedWidgetBucket = {
|
|
|
969
1760
|
};
|
|
970
1761
|
export type RenderedMetricValue = {
|
|
971
1762
|
value: number;
|
|
972
|
-
unit:
|
|
1763
|
+
unit: RenderedUnit;
|
|
1764
|
+
currency?: string;
|
|
973
1765
|
sampleCount: number;
|
|
974
|
-
dataSufficiency:
|
|
1766
|
+
dataSufficiency: "unknown" | "sufficient" | "partial" | "insufficient";
|
|
975
1767
|
complete: boolean;
|
|
976
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
|
+
}>;
|
|
977
1837
|
};
|
|
978
1838
|
export type ReportingQueryMetadata = {
|
|
979
1839
|
resolvedTemplate: string;
|
|
@@ -1012,10 +1872,15 @@ export declare class CustdClient {
|
|
|
1012
1872
|
readonly reporting: ReportingNamespace;
|
|
1013
1873
|
readonly schemas: SchemaNamespace;
|
|
1014
1874
|
readonly analytics: AnalyticsEventClient;
|
|
1875
|
+
readonly parsers: ParserClient;
|
|
1876
|
+
readonly measurement: MeasurementClient;
|
|
1877
|
+
readonly ingestOperations: IngestOperationsClient;
|
|
1878
|
+
readonly publicReads: PublicReadClient;
|
|
1015
1879
|
private baseUrl;
|
|
1016
1880
|
private getToken;
|
|
1017
1881
|
private fetchImpl;
|
|
1018
1882
|
private defaultHeaders;
|
|
1883
|
+
private actingCompanySlug;
|
|
1019
1884
|
private retry;
|
|
1020
1885
|
private batch;
|
|
1021
1886
|
private queueEnabled;
|
|
@@ -1035,19 +1900,46 @@ export declare class CustdClient {
|
|
|
1035
1900
|
static fromBrokerEnv(env: BrokerEnv, options?: BrokerEnvClientOptions): CustdClient;
|
|
1036
1901
|
private fetchOAuthToken;
|
|
1037
1902
|
ingestEvent(event: EventEnvelope): Promise<Response>;
|
|
1038
|
-
track(event: EventEnvelope): Promise<
|
|
1903
|
+
track(event: EventEnvelope): Promise<undefined | Response>;
|
|
1039
1904
|
enqueue(event: EventEnvelope): void;
|
|
1040
1905
|
flush(): Promise<void>;
|
|
1041
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>;
|
|
1042
1925
|
private sendWithRetry;
|
|
1043
1926
|
private sendBatchWithRetry;
|
|
1044
1927
|
private encodeBatchBody;
|
|
1045
1928
|
private assertBatchResponse;
|
|
1046
1929
|
private batchRejectionMessage;
|
|
1047
1930
|
private adminRequest;
|
|
1931
|
+
private actingCompanyPath;
|
|
1932
|
+
private adminDownload;
|
|
1048
1933
|
private offboardingDownload;
|
|
1049
1934
|
private auditExportDownload;
|
|
1050
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;
|
|
1051
1943
|
private apiDownload;
|
|
1052
1944
|
}
|
|
1053
1945
|
type AdminRequester = <T>(method: string, path: string, body?: unknown, options?: RequestOptions) => Promise<T>;
|
|
@@ -1074,6 +1966,13 @@ export interface ReportExportArtifact {
|
|
|
1074
1966
|
fallbackForFormat?: string;
|
|
1075
1967
|
rendererVersion?: string;
|
|
1076
1968
|
}
|
|
1969
|
+
export interface ReportExportProgressCounter {
|
|
1970
|
+
key: string;
|
|
1971
|
+
count: number;
|
|
1972
|
+
}
|
|
1973
|
+
export type ReportExportJobList = {
|
|
1974
|
+
exports: ReportExportJob[];
|
|
1975
|
+
};
|
|
1077
1976
|
export interface ReportExportJob {
|
|
1078
1977
|
id: string;
|
|
1079
1978
|
packKey: string;
|
|
@@ -1084,7 +1983,7 @@ export interface ReportExportJob {
|
|
|
1084
1983
|
snapshotSha256?: string;
|
|
1085
1984
|
state: string;
|
|
1086
1985
|
progressStage: string;
|
|
1087
|
-
progressCounters?:
|
|
1986
|
+
progressCounters?: ReportExportProgressCounter[];
|
|
1088
1987
|
queuedAt: string;
|
|
1089
1988
|
startedAt?: string;
|
|
1090
1989
|
finishedAt?: string;
|
|
@@ -1104,10 +2003,18 @@ declare class ReportingNamespace {
|
|
|
1104
2003
|
private readonly download;
|
|
1105
2004
|
constructor(request: APIRequester, download: APIDownloader);
|
|
1106
2005
|
createExport(input: ReportExportCreateRequest, options?: RequestOptions): Promise<ReportExportJob>;
|
|
1107
|
-
listExports(limit?: number, options?: RequestOptions): Promise<
|
|
2006
|
+
listExports(limit?: number, options?: RequestOptions): Promise<ReportExportJobList>;
|
|
1108
2007
|
getExport(exportId: string, options?: RequestOptions): Promise<ReportExportJob>;
|
|
1109
2008
|
cancelExport(exportId: string, reason?: string, options?: RequestOptions): Promise<ReportExportJob>;
|
|
1110
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>;
|
|
1111
2018
|
dashboard(key: string, options?: RequestOptions): Promise<ReportingDashboard>;
|
|
1112
2019
|
receipt(receiptUuid: string, options?: RequestOptions): Promise<PreparedDataReceiptStatus>;
|
|
1113
2020
|
outputs(options?: RequestOptions): Promise<PreparedDataOutputList>;
|
|
@@ -1122,15 +2029,34 @@ declare class SchemaNamespace {
|
|
|
1122
2029
|
validate(input: SchemaValidationRequest): Promise<SchemaValidationResponse>;
|
|
1123
2030
|
dryRun(input: SchemaValidationRequest): Promise<SchemaValidationResponse>;
|
|
1124
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>;
|
|
1125
2048
|
sendTestEvent(event: EventEnvelope): Promise<SendTestEventResponse>;
|
|
1126
2049
|
}
|
|
1127
2050
|
declare class AdminNamespace {
|
|
1128
2051
|
readonly dataLabels: DataLabelAdminClient;
|
|
2052
|
+
readonly dataScopes: DataScopeAdminClient;
|
|
1129
2053
|
readonly tenants: AdminTenantNamespace;
|
|
1130
2054
|
readonly lifecycle: BackendLifecycleClient;
|
|
1131
2055
|
readonly clientSetup: ClientSetupClient;
|
|
1132
2056
|
readonly oauthClients: AdminOAuthClientNamespace;
|
|
1133
2057
|
readonly sites: AdminSiteNamespace;
|
|
2058
|
+
readonly siteDomains: SiteDomainAdminClient;
|
|
2059
|
+
readonly siteInsights: SiteInsightsAdminClient;
|
|
1134
2060
|
readonly schemas: AdminSchemaNamespace;
|
|
1135
2061
|
readonly measurement: AdminMeasurementNamespace;
|
|
1136
2062
|
readonly predictions: PredictionAdminClient;
|
|
@@ -1144,7 +2070,28 @@ declare class AdminNamespace {
|
|
|
1144
2070
|
readonly subjectExports: SubjectExportClient;
|
|
1145
2071
|
readonly privacyErasures: PrivacyErasureClient;
|
|
1146
2072
|
readonly timePlans: TimePlanAdminClient;
|
|
1147
|
-
|
|
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);
|
|
1148
2095
|
}
|
|
1149
2096
|
declare class ProvisioningNamespace {
|
|
1150
2097
|
readonly dataSpaces: ProvisioningDataSpaceNamespace;
|
|
@@ -1152,27 +2099,43 @@ declare class ProvisioningNamespace {
|
|
|
1152
2099
|
readonly reservations: ProvisioningReservationsNamespace;
|
|
1153
2100
|
constructor(request: APIRequester);
|
|
1154
2101
|
}
|
|
2102
|
+
/** Producer reservations under one data space. A system administrator names the parent tenant. */
|
|
1155
2103
|
declare class ProvisioningReservationsNamespace {
|
|
1156
2104
|
private readonly request;
|
|
1157
2105
|
constructor(request: APIRequester);
|
|
1158
|
-
reserve(dataSpaceSlug: string, body: ProducerReservationCreateRequest): Promise<ProducerReservation>;
|
|
1159
|
-
list(dataSpaceSlug: string): Promise<ProducerReservationListResponse>;
|
|
1160
|
-
claim(dataSpaceSlug: string, producerSlug: string, body: ProducerReservationClaimRequest): Promise<ProducerReservation>;
|
|
1161
|
-
release(dataSpaceSlug: string, producerSlug: string): Promise<void>;
|
|
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>;
|
|
1162
2110
|
}
|
|
1163
2111
|
declare class ProvisioningDataSpaceNamespace {
|
|
1164
2112
|
private readonly request;
|
|
1165
2113
|
constructor(request: APIRequester);
|
|
1166
|
-
|
|
1167
|
-
|
|
1168
|
-
|
|
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>;
|
|
1169
2131
|
}
|
|
1170
2132
|
declare class ProvisioningProducerNamespace {
|
|
1171
2133
|
private readonly request;
|
|
1172
2134
|
constructor(request: APIRequester);
|
|
1173
2135
|
provision(request: ProducerProvisionCreate): Promise<ProvisionedProducerCredentials>;
|
|
1174
|
-
list(companySlug?: string): Promise<
|
|
1175
|
-
|
|
2136
|
+
list(companySlug?: string): Promise<ProducerProvisionListResponse>;
|
|
2137
|
+
get(clientId: string): Promise<ProducerProvisionPublicClient>;
|
|
2138
|
+
rotateSecret(clientId: string): Promise<ProducerSecretRotation>;
|
|
1176
2139
|
/**
|
|
1177
2140
|
* Sets the environment recorded for this producer. It is the authenticated
|
|
1178
2141
|
* default for events that do not declare their own, not a per-environment
|
|
@@ -1180,6 +2143,10 @@ declare class ProvisioningProducerNamespace {
|
|
|
1180
2143
|
* operator deliberately restricts it.
|
|
1181
2144
|
*/
|
|
1182
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>;
|
|
1183
2150
|
revoke(clientId: string): Promise<void>;
|
|
1184
2151
|
}
|
|
1185
2152
|
declare class AdminTenantNamespace {
|
|
@@ -1189,6 +2156,19 @@ declare class AdminTenantNamespace {
|
|
|
1189
2156
|
list(): Promise<AdminTenantListResponse>;
|
|
1190
2157
|
get(slug: string): Promise<AdminTenant>;
|
|
1191
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>;
|
|
1192
2172
|
}
|
|
1193
2173
|
declare class AdminOAuthClientNamespace {
|
|
1194
2174
|
private readonly request;
|
|
@@ -1198,6 +2178,11 @@ declare class AdminOAuthClientNamespace {
|
|
|
1198
2178
|
get(clientId: string): Promise<AdminOAuthClient>;
|
|
1199
2179
|
delete(clientId: string, options?: RequestOptions): Promise<void>;
|
|
1200
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>;
|
|
1201
2186
|
updateScopes(clientId: string, body: AdminOAuthClientUpdateScopesRequest, options?: RequestOptions): Promise<AdminOAuthClient>;
|
|
1202
2187
|
}
|
|
1203
2188
|
declare class AdminSiteNamespace {
|
|
@@ -1206,28 +2191,29 @@ declare class AdminSiteNamespace {
|
|
|
1206
2191
|
create(site: AdminSiteCreate): Promise<AdminSiteCreateResponse>;
|
|
1207
2192
|
list(): Promise<AdminSiteListResponse>;
|
|
1208
2193
|
get(siteUuid: string): Promise<AdminSite>;
|
|
2194
|
+
update(siteUuid: string, body: AdminSiteUpdate): Promise<AdminSite>;
|
|
1209
2195
|
delete(siteUuid: string): Promise<void>;
|
|
1210
2196
|
rotateWriteKey(siteUuid: string): Promise<AdminSiteWriteKeyResponse>;
|
|
1211
2197
|
}
|
|
1212
2198
|
declare class AdminSchemaNamespace {
|
|
1213
2199
|
private readonly request;
|
|
1214
2200
|
constructor(request: AdminRequester);
|
|
1215
|
-
list(): Promise<AdminSchemaListResponse>;
|
|
1216
|
-
get(eventTypeSlug: string): Promise<AdminSchema>;
|
|
1217
|
-
register(schema: AdminSchemaRegister): Promise<AdminSchema>;
|
|
1218
|
-
createVersion(eventTypeSlug: string, schema: AdminSchemaVersionCreate): Promise<AdminSchema>;
|
|
1219
2201
|
validate(body: AdminSchemaValidateRequest): Promise<AdminSchemaValidateResult>;
|
|
1220
2202
|
enableVersion(tenantSlug: string, eventTypeSlug: string, body: AdminSchemaEnableRequest): Promise<void>;
|
|
2203
|
+
register(tenantSlug: string, eventTypeSlug: string, body: AdminSchemaRegisterRequest): Promise<void>;
|
|
1221
2204
|
dryRun(tenantSlug: string, eventTypeSlug: string, body: AdminSchemaDryRunRequest): Promise<AdminSchemaDryRunResult>;
|
|
1222
|
-
audit(): Promise<AdminSchemaAuditListResponse>;
|
|
2205
|
+
audit(tenantSlug?: string): Promise<AdminSchemaAuditListResponse>;
|
|
1223
2206
|
}
|
|
1224
2207
|
declare class AdminPrivacyNamespace {
|
|
1225
2208
|
private readonly request;
|
|
1226
2209
|
constructor(request: AdminRequester);
|
|
1227
|
-
getRules(): Promise<AdminPrivacyRulesResponse>;
|
|
2210
|
+
getRules(companySlug?: string): Promise<AdminPrivacyRulesResponse>;
|
|
1228
2211
|
setRules(body: AdminPrivacyRuleUpdate): Promise<AdminPrivacyRulesResponse>;
|
|
1229
2212
|
mapIdentifier(companySlug: string, body: AdminPrivacyIdentifierMapRequest): Promise<AdminPrivacyIdentifierMapping>;
|
|
1230
|
-
listIdentifierMappings(companySlug: string): Promise<
|
|
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>;
|
|
1231
2217
|
}
|
|
1232
2218
|
declare class AdminStorageAlertsNamespace {
|
|
1233
2219
|
private readonly request;
|
|
@@ -1235,6 +2221,7 @@ declare class AdminStorageAlertsNamespace {
|
|
|
1235
2221
|
listRules(tenantSlug: string): Promise<AdminStorageAlertRuleListResponse>;
|
|
1236
2222
|
createRule(tenantSlug: string, body: AdminStorageAlertRuleCreateRequest): Promise<AdminStorageAlertRule>;
|
|
1237
2223
|
deleteRule(tenantSlug: string, ruleId: string): Promise<void>;
|
|
2224
|
+
listEvents(tenantSlug: string): Promise<AdminStorageAlertEventListResponse>;
|
|
1238
2225
|
}
|
|
1239
2226
|
declare class AdminAuditNamespace {
|
|
1240
2227
|
private readonly request;
|
|
@@ -1251,32 +2238,28 @@ declare class AdminReportingPacksNamespace {
|
|
|
1251
2238
|
private readonly request;
|
|
1252
2239
|
constructor(request: AdminRequester);
|
|
1253
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>;
|
|
1254
2250
|
getDraft(draftId: string): Promise<ReportingPackDraft>;
|
|
1255
2251
|
createDraft(body: ReportingPackDraftCreateRequest): Promise<ReportingPackDraft>;
|
|
1256
2252
|
updateDraft(draftId: string, body: ReportingPackDraftUpdateRequest): Promise<ReportingPackDraft>;
|
|
1257
2253
|
validate(body: ReportingPackDraftCreateRequest): Promise<ReportingPackValidateResponse>;
|
|
1258
2254
|
preview(body: ReportingPackPreviewRequest): Promise<ReportingPackPreviewResponse>;
|
|
1259
2255
|
publish(draftId: string): Promise<ReportingPackGeneration>;
|
|
1260
|
-
restart(draftId: string): Promise<
|
|
2256
|
+
restart(draftId: string): Promise<ReportingPackDraft>;
|
|
1261
2257
|
getGeneration(generationId: string): Promise<ReportingPackGeneration>;
|
|
1262
2258
|
getGenerationStatus(generationId: string): Promise<ReportingPackGenerationStatusResponse>;
|
|
1263
|
-
rollbackGeneration(generationId: string): Promise<
|
|
2259
|
+
rollbackGeneration(generationId: string): Promise<ReportingPackGeneration>;
|
|
2260
|
+
listGenerationValidity(): Promise<ReportingPackGenerationValidityListResponse>;
|
|
1264
2261
|
getRollupProvenance(generationId: string): Promise<ReportingPackRollupProvenance>;
|
|
1265
2262
|
}
|
|
1266
|
-
declare class AdminMeasurementNamespace {
|
|
1267
|
-
readonly projects: AdminMeasurementProjectNamespace;
|
|
1268
|
-
constructor(request: AdminRequester);
|
|
1269
|
-
}
|
|
1270
|
-
declare class AdminMeasurementProjectNamespace {
|
|
1271
|
-
private readonly request;
|
|
1272
|
-
constructor(request: AdminRequester);
|
|
1273
|
-
create(project: MeasurementProjectCreate): Promise<MeasurementProject>;
|
|
1274
|
-
list(): Promise<MeasurementProjectListResponse>;
|
|
1275
|
-
get(projectUuid: string): Promise<MeasurementProject>;
|
|
1276
|
-
submitObservation(projectUuid: string, observation: MeasurementObservationInput): Promise<MeasurementObservationBulkResponse>;
|
|
1277
|
-
submitObservations(projectUuid: string, request: MeasurementObservationBulkRequest): Promise<MeasurementObservationBulkResponse>;
|
|
1278
|
-
importCSVString(projectUuid: string, csv: string, expectedRows: number): Promise<MeasurementCSVImportResponse>;
|
|
1279
|
-
}
|
|
1280
2263
|
export type PrepareEventMode = "producer" | "browser-cookieless";
|
|
1281
2264
|
export type PrepareEventOptions = {
|
|
1282
2265
|
mode?: PrepareEventMode;
|
|
@@ -1308,3 +2291,34 @@ export declare class CustdProblemError extends Error {
|
|
|
1308
2291
|
}
|
|
1309
2292
|
export declare function normalizeRetryOptions(options?: RetryOptions): Required<RetryOptions>;
|
|
1310
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";
|