@tearleads/client-sdk 0.1.92 → 0.1.94
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/client/root/index.d.ts +6 -2
- package/client/root/index.js +3 -1
- package/client/root/index.js.map +1 -1
- package/index.d.ts +1 -1
- package/index.js +1 -1
- package/index.js.map +1 -1
- package/internal/api-client/ApiClient.d.ts +4 -2
- package/internal/api-client/ApiClient.js +7 -1
- package/internal/api-client/ApiClient.js.map +1 -1
- package/internal/validators/operation/index.d.ts +2 -0
- package/internal/validators/operation/index.js +2 -0
- package/internal/validators/operation/index.js.map +1 -1
- package/internal/validators/operation/registry.d.ts +4 -0
- package/internal/validators/operation/registry.js +4 -0
- package/internal/validators/operation/registry.js.map +1 -1
- package/internal/validators/operation/rootAudit.d.ts +189 -0
- package/internal/validators/operation/rootAudit.js +28 -0
- package/internal/validators/operation/rootAudit.js.map +1 -0
- package/internal/validators/operation/rootOpsHealth.d.ts +287 -0
- package/internal/validators/operation/rootOpsHealth.js +18 -0
- package/internal/validators/operation/rootOpsHealth.js.map +1 -0
- package/internal/validators/response/index.d.ts +2 -0
- package/internal/validators/response/index.js +2 -0
- package/internal/validators/response/index.js.map +1 -1
- package/internal/validators/response/rootAudit.d.ts +106 -0
- package/internal/validators/response/rootAudit.js +53 -0
- package/internal/validators/response/rootAudit.js.map +1 -0
- package/internal/validators/response/rootOpsHealth.d.ts +224 -0
- package/internal/validators/response/rootOpsHealth.js +79 -0
- package/internal/validators/response/rootOpsHealth.js.map +1 -0
- package/package.json +1 -1
- package/workflows/root/audit.d.ts +21 -0
- package/workflows/root/audit.js +5 -0
- package/workflows/root/audit.js.map +1 -0
- package/workflows/root/index.d.ts +2 -0
- package/workflows/root/index.js +2 -0
- package/workflows/root/index.js.map +1 -1
- package/workflows/root/opsHealth.d.ts +9 -0
- package/workflows/root/opsHealth.js +5 -0
- package/workflows/root/opsHealth.js.map +1 -0
|
@@ -1 +1 @@
|
|
|
1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,yCAAyC,GAC1C,MAAM,+BAA+B,CAAC;AACvC,OAAO,EACL,kCAAkC,EAElC,sCAAsC,GACvC,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAEL,sCAAsC,GACvC,MAAM,4BAA4B,CAAC;AACpC,OAAO,EACL,sBAAsB,EAEtB,0BAA0B,GAC3B,MAAM,gBAAgB,CAAC;AACxB,OAAO,EACL,wBAAwB,EACxB,4BAA4B,EAC5B,mCAAmC,EAEnC,4BAA4B,EAE5B,gCAAgC,EAEhC,6CAA6C,EAE7C,sCAAsC,EAEtC,uCAAuC,EAEvC,iCAAiC,EAEjC,iCAAiC,GAClC,MAAM,QAAQ,CAAC;AAChB,OAAO,EAEL,iCAAiC,EAEjC,oCAAoC,EAEpC,wCAAwC,EAExC,sCAAsC,EAEtC,qCAAqC,EAErC,+BAA+B,GAChC,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EACL,sBAAsB,EACtB,8BAA8B,EAC9B,+BAA+B,EAC/B,+BAA+B,EAC/B,sBAAsB,EAEtB,0BAA0B,EAE1B,kCAAkC,EAElC,mCAAmC,EAEnC,mCAAmC,EAEnC,0BAA0B,EAE1B,8BAA8B,GAC/B,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EACL,eAAe,EAEf,mBAAmB,GACpB,MAAM,iBAAiB,CAAC;AACzB,OAAO,EACL,+BAA+B,EAC/B,8BAA8B,EAC9B,+BAA+B,EAC/B,8BAA8B,GAC/B,MAAM,wBAAwB,CAAC","sourcesContent":["export {\n type AccessManifestBundleWireResponse,\n isAccessManifestBundleWireResponse,\n} from \"../util\";\nexport {\n type EffectiveAccessLevel,\n EffectiveAccessLevelSchema,\n isEffectiveAccessLevel,\n} from \"./accessLevel\";\nexport {\n type ChallengeErrorResponse,\n ChallengeErrorResponseSchema,\n type ChallengeResponse,\n ChallengeResponseSchema,\n type DestroySessionResponse,\n DestroySessionResponseSchema,\n isChallengeErrorResponse,\n isChallengeResponse,\n isDestroySessionResponse,\n isListSessionsResponse,\n isSessionRefreshRequiredFailure,\n isUserIdentityResponse,\n isUserSessionResponse,\n isVerifyResponse,\n isWebSocketTicketResponse,\n type ListSessionsResponse,\n ListSessionsResponseSchema,\n SESSION_ERROR_CODES,\n type SessionErrorCode,\n SessionErrorCodeSchema,\n type SessionFailureResponse,\n SessionFailureResponseSchema,\n type UserIdentityResponse,\n UserIdentityResponseSchema,\n type UserSessionResponse,\n UserSessionResponseSchema,\n type VerifyFailureResponse,\n VerifyFailureResponseSchema,\n type VerifyResponse,\n type VerifySuccessResponse,\n VerifySuccessResponseSchema,\n type WebSocketTicketResponse,\n WebSocketTicketResponseSchema,\n} from \"./auth\";\nexport {\n isRevenueCatWebhookResponse,\n isStripeWebhookResponse,\n type RevenueCatWebhookResponse,\n RevenueCatWebhookResponseSchema,\n type StripeWebhookResponse,\n StripeWebhookResponseSchema,\n} from \"./billingWebhooks\";\nexport {\n type BlobAttachmentBindResponse,\n BlobAttachmentBindResponseSchema,\n type BlobAttachmentDetachResponse,\n BlobAttachmentDetachResponseSchema,\n type BlobAttachmentSummary,\n BlobAttachmentSummarySchema,\n type BlobContentKeyBundleResponse,\n BlobContentKeyBundleResponseSchema,\n type BlobContentKeyTargetEnvelopeResponse,\n BlobContentKeyTargetEnvelopeResponseSchema,\n type BlobKekTargetsResponse,\n BlobKekTargetsResponseSchema,\n type InitiateMultipartBlobStageResponse,\n InitiateMultipartBlobStageResponseSchema,\n isBlobAttachmentBindResponse,\n isBlobAttachmentDetachResponse,\n isInitiateMultipartBlobStageResponse,\n isListDocumentAttachmentsResponse,\n isMultipartBlobStageStatusResponse,\n isUploadMultipartBlobPartResponse,\n type ListDocumentAttachmentsResponse,\n ListDocumentAttachmentsResponseSchema,\n type MultipartBlobStagePart,\n MultipartBlobStagePartSchema,\n type MultipartBlobStageStatusResponse,\n MultipartBlobStageStatusResponseSchema,\n type UploadMultipartBlobPartResponse,\n UploadMultipartBlobPartResponseSchema,\n} from \"./blob\";\nexport {\n BLOB_MUTATION_ERROR_CODES,\n type BlobMutationErrorCode,\n type BlobMutationFailureResponse,\n BlobMutationFailureResponseSchema,\n} from \"./blobMutationError\";\nexport {\n CONTAINER_PROJECTION_STATE_INVALID_ERROR_CODE,\n type ContainerDeleteResponse,\n ContainerDeleteResponseSchema,\n type ContainerKekKeyringWireResponse,\n type ContainerKekLogEpochResponse,\n ContainerKekLogEpochResponseSchema,\n type ContainerKekLogResponse,\n ContainerKekLogResponseSchema,\n type ContainerKekResponse,\n type ContainerKeyingPathResponse,\n ContainerKeyingPathResponseSchema,\n type ContainerMutationResponse,\n ContainerMutationResponseSchema,\n type ContainerReciteResponse,\n ContainerReciteResponseSchema,\n type ContainerRotationResponse,\n ContainerRotationResponseSchema,\n type ContainerSummary,\n ContainerSummaryResponseSchema,\n type ContainerSyncTombstone,\n ContainerSyncTombstoneResponseSchema,\n ContainerWriterProjectionErrorResponseSchema,\n type ContainerWriterProjectionResponse,\n ContainerWriterProjectionResponseSchema,\n type ContainerWriterProjectionWireResponse,\n ContainerWriterProjectionWireResponseSchema,\n isContainerDeleteResponse,\n isContainerKekLogResponse,\n isContainerMutationResponse,\n isContainerReciteResponse,\n isContainerRotationResponse,\n isContainerWriterProjectionResponse,\n isContainerWriterProjectionWireResponse,\n isListContainersResponse,\n type ListContainersResponse,\n ListContainersResponseSchema,\n} from \"./container\";\nexport type { ListContainerDocumentLanesResponse } from \"./containerDocumentLanes\";\nexport {\n type ContainerCreateWithMetadataDocumentResponse,\n ContainerCreateWithMetadataDocumentResponseSchema,\n isContainerCreateWithMetadataDocumentResponse,\n} from \"./containerMetadata\";\nexport {\n CONTAINER_MUTATION_ERROR_CODES,\n ContainerMutationBehaviorErrorCodeSchema,\n type ContainerMutationErrorCode,\n ContainerMutationErrorCodeSchema,\n type ContainerMutationFailureResponse,\n ContainerMutationFailureResponseSchema,\n} from \"./containerMutationError\";\nexport {\n CONTAINER_NOT_FOUND_ERROR_CODE,\n type ContainerNotFoundErrorResponse,\n ContainerNotFoundErrorResponseSchema,\n} from \"./containerNotFoundError\";\nexport {\n isListContainerParentLanesResponse,\n type ListContainerParentLanesResponse,\n ListContainerParentLanesResponseSchema,\n} from \"./containerParentLanes\";\nexport {\n CONTAINER_UNAVAILABLE_ERROR_CODE,\n type ContainerUnavailableErrorCode,\n} from \"./containerUnavailableError\";\nexport {\n type ContainerDocumentSummary,\n ContainerDocumentSummaryResponseSchema,\n type ContainerDocumentSyncTombstone,\n ContainerDocumentSyncTombstoneResponseSchema,\n type DocumentEditAttributionRangeResponse,\n DocumentEditAttributionRangeResponseSchema,\n type DocumentEditAttributionResponse,\n DocumentEditAttributionResponseSchema,\n type DocumentEditAttributionSegmentResponse,\n DocumentEditAttributionSegmentResponseSchema,\n isDocumentEditAttributionResponse,\n isListDocumentEditAttributionRangesResponse,\n type ListContainerDocumentsResponse,\n ListContainerDocumentsResponseSchema,\n type ListDocumentEditAttributionRangesResponse,\n ListDocumentEditAttributionRangesResponseSchema,\n} from \"./document\";\nexport {\n type DocumentContentKeyBundleResponse,\n DocumentContentKeyBundleResponseSchema,\n type DocumentContentKeyTargetEnvelopeResponse,\n DocumentContentKeyTargetEnvelopeResponseSchema,\n type DocumentCreateResponse,\n DocumentCreateResponseSchema,\n type DocumentCreateSeedResponse,\n type DocumentKekTargetsResponse,\n DocumentKekTargetsResponseSchema,\n type DocumentLinkSetMutationResponse,\n DocumentLinkSetMutationResponseSchema,\n type DocumentPurgeProofResponse,\n DocumentPurgeProofResponseSchema,\n type DocumentPurgeResponse,\n DocumentPurgeResponseSchema,\n type DocumentSyncPullPageResponse,\n DocumentSyncPullPageResponseSchema,\n type DocumentSyncResponse,\n DocumentSyncResponseSchema,\n type DocumentSyncUpdateResponse,\n DocumentSyncUpdateResponseSchema,\n type DocumentWriterProjectionResponse,\n DocumentWriterProjectionResponseSchema,\n type DocumentWriterProjectionWireResponse,\n DocumentWriterProjectionWireResponseSchema,\n documentKekTargetsFromContentKeyBundle,\n isDocumentContentKeyBundleResponse,\n isDocumentCreateResponse,\n isDocumentKekTargetsResponse,\n isDocumentLinkSetMutationResponse,\n isDocumentPurgeProofResponse,\n isDocumentPurgeResponse,\n isDocumentSyncResponse,\n isDocumentWriterProjectionResponse,\n isDocumentWriterProjectionWireResponse,\n} from \"./documentMutation\";\nexport {\n DOCUMENT_MUTATION_ERROR_CODES,\n DocumentMutationBehaviorErrorCodeSchema,\n type DocumentMutationErrorCode,\n DocumentMutationErrorCodeSchema,\n type DocumentMutationFailureResponse,\n DocumentMutationFailureResponseSchema,\n} from \"./documentMutationError\";\nexport {\n DOCUMENT_NOT_FOUND_ERROR_CODE,\n DOCUMENT_PROJECTION_ERROR_CODES,\n DOCUMENT_SYNC_ERROR_CODES,\n type DocumentNotFoundErrorCode,\n type DocumentNotFoundErrorResponse,\n DocumentNotFoundErrorResponseSchema,\n type DocumentProjectionErrorCode,\n DocumentProjectionErrorCodeSchema,\n type DocumentSyncErrorCode,\n DocumentSyncErrorCodeSchema,\n type DocumentSyncErrorResponse,\n DocumentSyncErrorResponseSchema,\n type DocumentSyncStateStaleErrorResponse,\n DocumentSyncStateStaleErrorResponseSchema,\n type DocumentWriterProjectionErrorResponse,\n DocumentWriterProjectionErrorResponseSchema,\n isDocumentSyncErrorCode,\n isDocumentSyncErrorResponse,\n isDocumentSyncStateStaleErrorResponse,\n} from \"./documentSyncError\";\nexport {\n type ErrorResponse,\n ErrorResponseSchema,\n isErrorResponse,\n} from \"./error\";\nexport {\n type HealthResponse,\n HealthResponseSchema,\n isHealthResponse,\n} from \"./health\";\nexport {\n MULTIPART_BLOB_STAGE_ERROR_CODES,\n type MultipartBlobStageConflictErrorResponse,\n MultipartBlobStageConflictErrorResponseSchema,\n type MultipartBlobStageErrorCode,\n type MultipartBlobStageExpiredErrorResponse,\n MultipartBlobStageExpiredErrorResponseSchema,\n type MultipartBlobStageNotFoundErrorResponse,\n MultipartBlobStageNotFoundErrorResponseSchema,\n} from \"./multipartBlobStageError\";\nexport {\n type CreateOrganizationGroupResponse,\n CreateOrganizationGroupResponseSchema,\n type DeleteOrganizationGroupResponse,\n DeleteOrganizationGroupResponseSchema,\n isCreateOrganizationGroupResponse,\n isDeleteOrganizationGroupResponse,\n isListOrganizationGroupsResponse,\n isOrganizationContainerGrantResponse,\n isOrganizationContainerGrantSubjectType,\n isOrganizationContainerGrantsResponse,\n isOrganizationDirectoryResponse,\n isOrganizationDirectoryUserResponse,\n isOrganizationGroupContainerAccessLevel,\n isOrganizationGroupContainerResponse,\n isOrganizationGroupContainersResponse,\n isOrganizationGroupCurrentStateResponse,\n isOrganizationGroupMemberResponse,\n isOrganizationGroupMembersResponse,\n isOrganizationGroupSummaryResponse,\n isOrganizationProfileResponse,\n isOrganizationUserDetailGrantsResponse,\n isOrganizationUserDetailResponse,\n type ListOrganizationGroupsResponse,\n ListOrganizationGroupsResponseSchema,\n type OrganizationContainerGrantResponse,\n OrganizationContainerGrantResponseSchema,\n type OrganizationContainerGrantSubjectType,\n type OrganizationContainerGrantsResponse,\n OrganizationContainerGrantsResponseSchema,\n type OrganizationDirectoryResponse,\n OrganizationDirectoryResponseSchema,\n type OrganizationDirectoryUserResponse,\n OrganizationDirectoryUserResponseSchema,\n type OrganizationGroupContainerAccessLevel,\n type OrganizationGroupContainerResponse,\n OrganizationGroupContainerResponseSchema,\n type OrganizationGroupContainersResponse,\n OrganizationGroupContainersResponseSchema,\n type OrganizationGroupCurrentStateResponse,\n OrganizationGroupCurrentStateResponseSchema,\n type OrganizationGroupMemberResponse,\n OrganizationGroupMemberResponseSchema,\n type OrganizationGroupMembersResponse,\n OrganizationGroupMembersResponseSchema,\n type OrganizationGroupSummaryResponse,\n OrganizationGroupSummaryResponseSchema,\n type OrganizationProfileResponse,\n OrganizationProfileResponseSchema,\n type OrganizationRole,\n type OrganizationRosterStatus,\n type OrganizationUserDetailGrantsResponse,\n OrganizationUserDetailGrantsResponseSchema,\n type OrganizationUserDetailResponse,\n OrganizationUserDetailResponseSchema,\n} from \"./organization\";\nexport {\n type BillingErrorResponse,\n BillingErrorResponseSchema,\n isOrganizationBillingProvider,\n isOrganizationBillingResponse,\n isOrganizationBillingStatus,\n isPaymentRequiredErrorResponse,\n type OrganizationBillingProvider,\n OrganizationBillingProviderSchema,\n type OrganizationBillingResponse,\n OrganizationBillingResponseSchema,\n type OrganizationBillingStatus,\n OrganizationBillingStatusSchema,\n type OrganizationBillingSubscriptionSource,\n OrganizationBillingSubscriptionSourceSchema,\n type PaymentRequiredErrorResponse,\n PaymentRequiredErrorResponseSchema,\n} from \"./organizationBilling\";\nexport {\n isOrganizationBillingHistoryResponse,\n type OrganizationBillingHistoryCategory,\n OrganizationBillingHistoryCategorySchema,\n type OrganizationBillingHistoryEntry,\n OrganizationBillingHistoryEntrySchema,\n type OrganizationBillingHistoryEnvironment,\n OrganizationBillingHistoryEnvironmentSchema,\n type OrganizationBillingHistoryOutcome,\n OrganizationBillingHistoryOutcomeSchema,\n type OrganizationBillingHistoryProvider,\n OrganizationBillingHistoryProviderSchema,\n type OrganizationBillingHistoryResponse,\n OrganizationBillingHistoryResponseSchema,\n} from \"./organizationBillingHistory\";\nexport {\n isOrganizationBillingManagementUrlResponse,\n type OrganizationBillingManagementUrlResponse,\n OrganizationBillingManagementUrlResponseSchema,\n} from \"./organizationBillingManagementUrl\";\nexport {\n isOrganizationDataUsageResponse,\n ORGANIZATION_DOCUMENT_USAGE_CATEGORIES,\n type OrganizationBlobDataUsageResponse,\n type OrganizationDataUsageResponse,\n OrganizationDataUsageResponseSchema,\n type OrganizationDocumentDataUsageResponse,\n type OrganizationDocumentUsageCategory,\n type OrganizationDocumentUsageCategoryBreakdown,\n} from \"./organizationDataUsage\";\nexport {\n isOrganizationMembershipResponse,\n isOrganizationMembershipsResponse,\n type OrganizationMembershipResponse,\n OrganizationMembershipResponseSchema,\n type OrganizationMembershipsResponse,\n OrganizationMembershipsResponseSchema,\n} from \"./organizationMembership\";\nexport {\n isOrganizationNativePurchaseEligibilityResponse,\n type OrganizationNativePurchaseEligibilityResponse,\n OrganizationNativePurchaseEligibilityResponseSchema,\n type OrganizationNativePurchaseIneligibilityReason,\n OrganizationNativePurchaseIneligibilityReasonSchema,\n} from \"./organizationNativePurchaseEligibility\";\nexport {\n type OrganizationPolicyHistoryResponse,\n OrganizationPolicyHistoryResponseSchema,\n PRINCIPAL_DISPLAY_HISTORY_PAGE_SIZE,\n} from \"./organizationPolicyHistory\";\nexport {\n ORGANIZATION_PRESENTATION_ERROR_CODES,\n type OrganizationPresentationErrorCode,\n OrganizationPresentationErrorCodeSchema,\n type OrganizationPresentationFailureResponse,\n OrganizationPresentationFailureResponseSchema,\n} from \"./organizationPresentationError\";\nexport {\n type CreateOrganizationResponse,\n CreateOrganizationResponseSchema,\n isCreateOrganizationResponse,\n isOrganizationProvisioningResponse,\n type OrganizationProvisioningResponse,\n OrganizationProvisioningResponseSchema,\n} from \"./organizationProvisioning\";\nexport {\n isOrganizationReadModelResponse,\n type OrganizationReadModelDeltaResponse,\n type OrganizationReadModelDirectoryResponse,\n type OrganizationReadModelGrantsResponse,\n type OrganizationReadModelGroupMemberResponse,\n type OrganizationReadModelGroupMembershipResponse,\n type OrganizationReadModelGroupMembershipsResponse,\n type OrganizationReadModelOrganizationPolicyResponse,\n type OrganizationReadModelResponse,\n OrganizationReadModelResponseSchema,\n type OrganizationReadModelSnapshotResponse,\n} from \"./organizationReadModel\";\nexport {\n ORGANIZATION_READ_MODEL_ERROR_CODES,\n type OrganizationReadModelErrorCode,\n OrganizationReadModelErrorCodeSchema,\n type OrganizationReadModelFailureResponse,\n OrganizationReadModelFailureResponseSchema,\n} from \"./organizationReadModelError\";\nexport {\n CommitOrganizationGroupPolicyConflictResponseSchema,\n type CommitOrganizationGroupPolicyResponse,\n CommitOrganizationGroupPolicyResponseSchema,\n type CurrentPrincipalMemberEnvelopesResponse,\n CurrentPrincipalMemberEnvelopesResponseSchema,\n isCommitOrganizationGroupPolicyResponse,\n isCurrentPrincipalMemberEnvelopesResponse,\n isPrincipalPolicyBundleResponse,\n isPrincipalPolicyMutationResponse,\n isPrincipalPolicyStaleErrorResponse,\n isPrincipalPolicyStateChainEntryResponse,\n isPrincipalStatePayloadResponse,\n isPrincipalStateResponse,\n type PrincipalContainerGrantResponse,\n PrincipalContainerGrantResponseSchema,\n type PrincipalMemberEnvelopeResponse,\n PrincipalMemberEnvelopeResponseSchema,\n type PrincipalPolicyBundleResponse,\n PrincipalPolicyBundleResponseSchema,\n type PrincipalPolicyErrorResponse,\n PrincipalPolicyErrorResponseSchema,\n type PrincipalPolicyMutationResponse,\n PrincipalPolicyMutationResponseSchema,\n type PrincipalPolicySnapshotResponse,\n PrincipalPolicySnapshotResponseSchema,\n type PrincipalPolicyStaleErrorResponse,\n PrincipalPolicyStaleErrorResponseSchema,\n type PrincipalPolicyStateChainEntryResponse,\n PrincipalPolicyStateChainEntryResponseSchema,\n type PrincipalProjectionMemberResponse,\n PrincipalProjectionMemberResponseSchema,\n type PrincipalStateExternalAuthorityResponse,\n PrincipalStateExternalAuthorityResponseSchema,\n type PrincipalStatePayloadResponse,\n PrincipalStatePayloadResponseSchema,\n type PrincipalStateResponse,\n PrincipalStateResponseSchema,\n} from \"./principal\";\nexport {\n isPrincipalPolicyPageResponse,\n type PrincipalPolicyPageResponse,\n PrincipalPolicyPageResponseSchema,\n} from \"./principalPolicyPage\";\nexport {\n isPrincipalPolicySnapshotPageResponse,\n type PrincipalPolicyHistorySourceResponse,\n PrincipalPolicyHistorySourceResponseSchema,\n type PrincipalPolicySnapshotPageResponse,\n PrincipalPolicySnapshotPageResponseSchema,\n} from \"./principalPolicySnapshotPage\";\nexport {\n isReferencedPrincipalStateResponse,\n type ReferencedPrincipalStateResponse,\n ReferencedPrincipalStateResponseSchema,\n} from \"./principalReference\";\nexport {\n type ProjectionPolicyEvidenceResponse,\n ProjectionPolicyEvidenceResponseSchema,\n} from \"./projectionPolicyEvidence\";\nexport {\n isRegistrationResponse,\n type RegistrationResponse,\n RegistrationResponseSchema,\n} from \"./registration\";\nexport {\n isRootIdentitiesResponse,\n isRootIdentityDetailResponse,\n isRootIdentityOrganizationsResponse,\n type RootIdentitiesResponse,\n RootIdentitiesResponseSchema,\n type RootIdentityDetailResponse,\n RootIdentityDetailResponseSchema,\n type RootIdentityOrganizationBillingResponse,\n RootIdentityOrganizationBillingResponseSchema,\n type RootIdentityOrganizationResponse,\n RootIdentityOrganizationResponseSchema,\n type RootIdentityOrganizationsResponse,\n RootIdentityOrganizationsResponseSchema,\n type RootIdentitySessionResponse,\n RootIdentitySessionResponseSchema,\n type RootIdentitySummaryResponse,\n RootIdentitySummaryResponseSchema,\n} from \"./root\";\nexport {\n type RootDataUsageReportResponse,\n RootDataUsageReportResponseSchema,\n type RootOrganizationDetailResponse,\n RootOrganizationDetailResponseSchema,\n type RootOrganizationIdentitiesResponse,\n RootOrganizationIdentitiesResponseSchema,\n type RootOrganizationIdentityResponse,\n RootOrganizationIdentityResponseSchema,\n type RootOrganizationSummaryResponse,\n RootOrganizationSummaryResponseSchema,\n type RootOrganizationsResponse,\n RootOrganizationsResponseSchema,\n} from \"./rootOrganizations\";\nexport {\n isStripeCancelResponse,\n isStripeCheckoutIntentResponse,\n isStripeCheckoutOptionsResponse,\n isStripeCheckoutSessionResponse,\n isStripePortalResponse,\n type StripeCancelResponse,\n StripeCancelResponseSchema,\n type StripeCheckoutIntentResponse,\n StripeCheckoutIntentResponseSchema,\n type StripeCheckoutOptionsResponse,\n StripeCheckoutOptionsResponseSchema,\n type StripeCheckoutSessionResponse,\n StripeCheckoutSessionResponseSchema,\n type StripePortalResponse,\n StripePortalResponseSchema,\n type StripeSyncOptionResponse,\n StripeSyncOptionResponseSchema,\n} from \"./stripeCheckout\";\nexport {\n isSyncWatermark,\n type SyncWatermark,\n SyncWatermarkSchema,\n} from \"./syncWatermark\";\nexport {\n decodeContainerWriterProjection,\n decodeDocumentWriterProjection,\n encodeContainerWriterProjection,\n encodeDocumentWriterProjection,\n} from \"./writerProjectionWire\";\n"]}
|
|
1
|
+
{"version":3,"file":"index.js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,+BAA+B,CAAC;AACvC,OAAO,EACL,kCAAkC,EAElC,sCAAsC,GACvC,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAEL,sCAAsC,GACvC,MAAM,4BAA4B,CAAC;AACpC,OAAO,EACL,sBAAsB,EAEtB,0BAA0B,GAC3B,MAAM,gBAAgB,CAAC;AACxB,OAAO,EACL,wBAAwB,EACxB,4BAA4B,EAC5B,mCAAmC,EAEnC,4BAA4B,EAE5B,gCAAgC,EAEhC,6CAA6C,EAE7C,sCAAsC,EAEtC,uCAAuC,EAEvC,iCAAiC,EAEjC,iCAAiC,GAClC,MAAM,QAAQ,CAAC;AAChB,OAAO,EACL,kBAAkB,EAElB,qBAAqB,EAErB,4BAA4B,EAE5B,6BAA6B,GAC9B,MAAM,aAAa,CAAC;AACrB,OAAO,EACL,+BAA+B,EAC/B,6BAA6B,EAC7B,6BAA6B,EAC7B,yBAAyB,EAEzB,iCAAiC,EACjC,2BAA2B,GAC5B,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAEL,iCAAiC,EAEjC,oCAAoC,EAEpC,wCAAwC,EAExC,sCAAsC,EAEtC,qCAAqC,EAErC,+BAA+B,GAChC,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EACL,sBAAsB,EACtB,8BAA8B,EAC9B,+BAA+B,EAC/B,+BAA+B,EAC/B,sBAAsB,EAEtB,0BAA0B,EAE1B,kCAAkC,EAElC,mCAAmC,EAEnC,mCAAmC,EAEnC,0BAA0B,EAE1B,8BAA8B,GAC/B,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EACL,eAAe,EAEf,mBAAmB,GACpB,MAAM,iBAAiB,CAAC;AACzB,OAAO,EACL,+BAA+B,EAC/B,8BAA8B,EAC9B,+BAA+B,EAC/B,8BAA8B,GAC/B,MAAM,wBAAwB,CAAC","sourcesContent":["export {\n type AccessManifestBundleWireResponse,\n isAccessManifestBundleWireResponse,\n} from \"../util\";\nexport {\n type EffectiveAccessLevel,\n EffectiveAccessLevelSchema,\n isEffectiveAccessLevel,\n} from \"./accessLevel\";\nexport {\n type ChallengeErrorResponse,\n ChallengeErrorResponseSchema,\n type ChallengeResponse,\n ChallengeResponseSchema,\n type DestroySessionResponse,\n DestroySessionResponseSchema,\n isChallengeErrorResponse,\n isChallengeResponse,\n isDestroySessionResponse,\n isListSessionsResponse,\n isSessionRefreshRequiredFailure,\n isUserIdentityResponse,\n isUserSessionResponse,\n isVerifyResponse,\n isWebSocketTicketResponse,\n type ListSessionsResponse,\n ListSessionsResponseSchema,\n SESSION_ERROR_CODES,\n type SessionErrorCode,\n SessionErrorCodeSchema,\n type SessionFailureResponse,\n SessionFailureResponseSchema,\n type UserIdentityResponse,\n UserIdentityResponseSchema,\n type UserSessionResponse,\n UserSessionResponseSchema,\n type VerifyFailureResponse,\n VerifyFailureResponseSchema,\n type VerifyResponse,\n type VerifySuccessResponse,\n VerifySuccessResponseSchema,\n type WebSocketTicketResponse,\n WebSocketTicketResponseSchema,\n} from \"./auth\";\nexport {\n isRevenueCatWebhookResponse,\n isStripeWebhookResponse,\n type RevenueCatWebhookResponse,\n RevenueCatWebhookResponseSchema,\n type StripeWebhookResponse,\n StripeWebhookResponseSchema,\n} from \"./billingWebhooks\";\nexport {\n type BlobAttachmentBindResponse,\n BlobAttachmentBindResponseSchema,\n type BlobAttachmentDetachResponse,\n BlobAttachmentDetachResponseSchema,\n type BlobAttachmentSummary,\n BlobAttachmentSummarySchema,\n type BlobContentKeyBundleResponse,\n BlobContentKeyBundleResponseSchema,\n type BlobContentKeyTargetEnvelopeResponse,\n BlobContentKeyTargetEnvelopeResponseSchema,\n type BlobKekTargetsResponse,\n BlobKekTargetsResponseSchema,\n type InitiateMultipartBlobStageResponse,\n InitiateMultipartBlobStageResponseSchema,\n isBlobAttachmentBindResponse,\n isBlobAttachmentDetachResponse,\n isInitiateMultipartBlobStageResponse,\n isListDocumentAttachmentsResponse,\n isMultipartBlobStageStatusResponse,\n isUploadMultipartBlobPartResponse,\n type ListDocumentAttachmentsResponse,\n ListDocumentAttachmentsResponseSchema,\n type MultipartBlobStagePart,\n MultipartBlobStagePartSchema,\n type MultipartBlobStageStatusResponse,\n MultipartBlobStageStatusResponseSchema,\n type UploadMultipartBlobPartResponse,\n UploadMultipartBlobPartResponseSchema,\n} from \"./blob\";\nexport {\n BLOB_MUTATION_ERROR_CODES,\n type BlobMutationErrorCode,\n type BlobMutationFailureResponse,\n BlobMutationFailureResponseSchema,\n} from \"./blobMutationError\";\nexport {\n CONTAINER_PROJECTION_STATE_INVALID_ERROR_CODE,\n type ContainerDeleteResponse,\n ContainerDeleteResponseSchema,\n type ContainerKekKeyringWireResponse,\n type ContainerKekLogEpochResponse,\n ContainerKekLogEpochResponseSchema,\n type ContainerKekLogResponse,\n ContainerKekLogResponseSchema,\n type ContainerKekResponse,\n type ContainerKeyingPathResponse,\n ContainerKeyingPathResponseSchema,\n type ContainerMutationResponse,\n ContainerMutationResponseSchema,\n type ContainerReciteResponse,\n ContainerReciteResponseSchema,\n type ContainerRotationResponse,\n ContainerRotationResponseSchema,\n type ContainerSummary,\n ContainerSummaryResponseSchema,\n type ContainerSyncTombstone,\n ContainerSyncTombstoneResponseSchema,\n ContainerWriterProjectionErrorResponseSchema,\n type ContainerWriterProjectionResponse,\n ContainerWriterProjectionResponseSchema,\n type ContainerWriterProjectionWireResponse,\n ContainerWriterProjectionWireResponseSchema,\n isContainerDeleteResponse,\n isContainerKekLogResponse,\n isContainerMutationResponse,\n isContainerReciteResponse,\n isContainerRotationResponse,\n isContainerWriterProjectionResponse,\n isContainerWriterProjectionWireResponse,\n isListContainersResponse,\n type ListContainersResponse,\n ListContainersResponseSchema,\n} from \"./container\";\nexport type { ListContainerDocumentLanesResponse } from \"./containerDocumentLanes\";\nexport {\n type ContainerCreateWithMetadataDocumentResponse,\n ContainerCreateWithMetadataDocumentResponseSchema,\n isContainerCreateWithMetadataDocumentResponse,\n} from \"./containerMetadata\";\nexport {\n CONTAINER_MUTATION_ERROR_CODES,\n ContainerMutationBehaviorErrorCodeSchema,\n type ContainerMutationErrorCode,\n ContainerMutationErrorCodeSchema,\n type ContainerMutationFailureResponse,\n ContainerMutationFailureResponseSchema,\n} from \"./containerMutationError\";\nexport {\n CONTAINER_NOT_FOUND_ERROR_CODE,\n type ContainerNotFoundErrorResponse,\n ContainerNotFoundErrorResponseSchema,\n} from \"./containerNotFoundError\";\nexport {\n isListContainerParentLanesResponse,\n type ListContainerParentLanesResponse,\n ListContainerParentLanesResponseSchema,\n} from \"./containerParentLanes\";\nexport {\n CONTAINER_UNAVAILABLE_ERROR_CODE,\n type ContainerUnavailableErrorCode,\n} from \"./containerUnavailableError\";\nexport {\n type ContainerDocumentSummary,\n ContainerDocumentSummaryResponseSchema,\n type ContainerDocumentSyncTombstone,\n ContainerDocumentSyncTombstoneResponseSchema,\n type DocumentEditAttributionRangeResponse,\n DocumentEditAttributionRangeResponseSchema,\n type DocumentEditAttributionResponse,\n DocumentEditAttributionResponseSchema,\n type DocumentEditAttributionSegmentResponse,\n DocumentEditAttributionSegmentResponseSchema,\n isDocumentEditAttributionResponse,\n isListDocumentEditAttributionRangesResponse,\n type ListContainerDocumentsResponse,\n ListContainerDocumentsResponseSchema,\n type ListDocumentEditAttributionRangesResponse,\n ListDocumentEditAttributionRangesResponseSchema,\n} from \"./document\";\nexport {\n type DocumentContentKeyBundleResponse,\n DocumentContentKeyBundleResponseSchema,\n type DocumentContentKeyTargetEnvelopeResponse,\n DocumentContentKeyTargetEnvelopeResponseSchema,\n type DocumentCreateResponse,\n DocumentCreateResponseSchema,\n type DocumentCreateSeedResponse,\n type DocumentKekTargetsResponse,\n DocumentKekTargetsResponseSchema,\n type DocumentLinkSetMutationResponse,\n DocumentLinkSetMutationResponseSchema,\n type DocumentPurgeProofResponse,\n DocumentPurgeProofResponseSchema,\n type DocumentPurgeResponse,\n DocumentPurgeResponseSchema,\n type DocumentSyncPullPageResponse,\n DocumentSyncPullPageResponseSchema,\n type DocumentSyncResponse,\n DocumentSyncResponseSchema,\n type DocumentSyncUpdateResponse,\n DocumentSyncUpdateResponseSchema,\n type DocumentWriterProjectionResponse,\n DocumentWriterProjectionResponseSchema,\n type DocumentWriterProjectionWireResponse,\n DocumentWriterProjectionWireResponseSchema,\n documentKekTargetsFromContentKeyBundle,\n isDocumentContentKeyBundleResponse,\n isDocumentCreateResponse,\n isDocumentKekTargetsResponse,\n isDocumentLinkSetMutationResponse,\n isDocumentPurgeProofResponse,\n isDocumentPurgeResponse,\n isDocumentSyncResponse,\n isDocumentWriterProjectionResponse,\n isDocumentWriterProjectionWireResponse,\n} from \"./documentMutation\";\nexport {\n DOCUMENT_MUTATION_ERROR_CODES,\n DocumentMutationBehaviorErrorCodeSchema,\n type DocumentMutationErrorCode,\n DocumentMutationErrorCodeSchema,\n type DocumentMutationFailureResponse,\n DocumentMutationFailureResponseSchema,\n} from \"./documentMutationError\";\nexport {\n DOCUMENT_NOT_FOUND_ERROR_CODE,\n DOCUMENT_PROJECTION_ERROR_CODES,\n DOCUMENT_SYNC_ERROR_CODES,\n type DocumentNotFoundErrorCode,\n type DocumentNotFoundErrorResponse,\n DocumentNotFoundErrorResponseSchema,\n type DocumentProjectionErrorCode,\n DocumentProjectionErrorCodeSchema,\n type DocumentSyncErrorCode,\n DocumentSyncErrorCodeSchema,\n type DocumentSyncErrorResponse,\n DocumentSyncErrorResponseSchema,\n type DocumentSyncStateStaleErrorResponse,\n DocumentSyncStateStaleErrorResponseSchema,\n type DocumentWriterProjectionErrorResponse,\n DocumentWriterProjectionErrorResponseSchema,\n isDocumentSyncErrorCode,\n isDocumentSyncErrorResponse,\n isDocumentSyncStateStaleErrorResponse,\n} from \"./documentSyncError\";\nexport {\n type ErrorResponse,\n ErrorResponseSchema,\n isErrorResponse,\n} from \"./error\";\nexport {\n type HealthResponse,\n HealthResponseSchema,\n isHealthResponse,\n} from \"./health\";\nexport {\n MULTIPART_BLOB_STAGE_ERROR_CODES,\n type MultipartBlobStageConflictErrorResponse,\n MultipartBlobStageConflictErrorResponseSchema,\n type MultipartBlobStageErrorCode,\n type MultipartBlobStageExpiredErrorResponse,\n MultipartBlobStageExpiredErrorResponseSchema,\n type MultipartBlobStageNotFoundErrorResponse,\n MultipartBlobStageNotFoundErrorResponseSchema,\n} from \"./multipartBlobStageError\";\nexport {\n type CreateOrganizationGroupResponse,\n CreateOrganizationGroupResponseSchema,\n type DeleteOrganizationGroupResponse,\n DeleteOrganizationGroupResponseSchema,\n isCreateOrganizationGroupResponse,\n isDeleteOrganizationGroupResponse,\n isListOrganizationGroupsResponse,\n isOrganizationContainerGrantResponse,\n isOrganizationContainerGrantSubjectType,\n isOrganizationContainerGrantsResponse,\n isOrganizationDirectoryResponse,\n isOrganizationDirectoryUserResponse,\n isOrganizationGroupContainerAccessLevel,\n isOrganizationGroupContainerResponse,\n isOrganizationGroupContainersResponse,\n isOrganizationGroupCurrentStateResponse,\n isOrganizationGroupMemberResponse,\n isOrganizationGroupMembersResponse,\n isOrganizationGroupSummaryResponse,\n isOrganizationProfileResponse,\n isOrganizationUserDetailGrantsResponse,\n isOrganizationUserDetailResponse,\n type ListOrganizationGroupsResponse,\n ListOrganizationGroupsResponseSchema,\n type OrganizationContainerGrantResponse,\n OrganizationContainerGrantResponseSchema,\n type OrganizationContainerGrantSubjectType,\n type OrganizationContainerGrantsResponse,\n OrganizationContainerGrantsResponseSchema,\n type OrganizationDirectoryResponse,\n OrganizationDirectoryResponseSchema,\n type OrganizationDirectoryUserResponse,\n OrganizationDirectoryUserResponseSchema,\n type OrganizationGroupContainerAccessLevel,\n type OrganizationGroupContainerResponse,\n OrganizationGroupContainerResponseSchema,\n type OrganizationGroupContainersResponse,\n OrganizationGroupContainersResponseSchema,\n type OrganizationGroupCurrentStateResponse,\n OrganizationGroupCurrentStateResponseSchema,\n type OrganizationGroupMemberResponse,\n OrganizationGroupMemberResponseSchema,\n type OrganizationGroupMembersResponse,\n OrganizationGroupMembersResponseSchema,\n type OrganizationGroupSummaryResponse,\n OrganizationGroupSummaryResponseSchema,\n type OrganizationProfileResponse,\n OrganizationProfileResponseSchema,\n type OrganizationRole,\n type OrganizationRosterStatus,\n type OrganizationUserDetailGrantsResponse,\n OrganizationUserDetailGrantsResponseSchema,\n type OrganizationUserDetailResponse,\n OrganizationUserDetailResponseSchema,\n} from \"./organization\";\nexport {\n type BillingErrorResponse,\n BillingErrorResponseSchema,\n isOrganizationBillingProvider,\n isOrganizationBillingResponse,\n isOrganizationBillingStatus,\n isPaymentRequiredErrorResponse,\n type OrganizationBillingProvider,\n OrganizationBillingProviderSchema,\n type OrganizationBillingResponse,\n OrganizationBillingResponseSchema,\n type OrganizationBillingStatus,\n OrganizationBillingStatusSchema,\n type OrganizationBillingSubscriptionSource,\n OrganizationBillingSubscriptionSourceSchema,\n type PaymentRequiredErrorResponse,\n PaymentRequiredErrorResponseSchema,\n} from \"./organizationBilling\";\nexport {\n isOrganizationBillingHistoryResponse,\n type OrganizationBillingHistoryCategory,\n OrganizationBillingHistoryCategorySchema,\n type OrganizationBillingHistoryEntry,\n OrganizationBillingHistoryEntrySchema,\n type OrganizationBillingHistoryEnvironment,\n OrganizationBillingHistoryEnvironmentSchema,\n type OrganizationBillingHistoryOutcome,\n OrganizationBillingHistoryOutcomeSchema,\n type OrganizationBillingHistoryProvider,\n OrganizationBillingHistoryProviderSchema,\n type OrganizationBillingHistoryResponse,\n OrganizationBillingHistoryResponseSchema,\n} from \"./organizationBillingHistory\";\nexport {\n isOrganizationBillingManagementUrlResponse,\n type OrganizationBillingManagementUrlResponse,\n OrganizationBillingManagementUrlResponseSchema,\n} from \"./organizationBillingManagementUrl\";\nexport {\n isOrganizationDataUsageResponse,\n ORGANIZATION_DOCUMENT_USAGE_CATEGORIES,\n type OrganizationBlobDataUsageResponse,\n type OrganizationDataUsageResponse,\n OrganizationDataUsageResponseSchema,\n type OrganizationDocumentDataUsageResponse,\n type OrganizationDocumentUsageCategory,\n type OrganizationDocumentUsageCategoryBreakdown,\n} from \"./organizationDataUsage\";\nexport {\n isOrganizationMembershipResponse,\n isOrganizationMembershipsResponse,\n type OrganizationMembershipResponse,\n OrganizationMembershipResponseSchema,\n type OrganizationMembershipsResponse,\n OrganizationMembershipsResponseSchema,\n} from \"./organizationMembership\";\nexport {\n isOrganizationNativePurchaseEligibilityResponse,\n type OrganizationNativePurchaseEligibilityResponse,\n OrganizationNativePurchaseEligibilityResponseSchema,\n type OrganizationNativePurchaseIneligibilityReason,\n OrganizationNativePurchaseIneligibilityReasonSchema,\n} from \"./organizationNativePurchaseEligibility\";\nexport {\n type OrganizationPolicyHistoryResponse,\n OrganizationPolicyHistoryResponseSchema,\n PRINCIPAL_DISPLAY_HISTORY_PAGE_SIZE,\n} from \"./organizationPolicyHistory\";\nexport {\n ORGANIZATION_PRESENTATION_ERROR_CODES,\n type OrganizationPresentationErrorCode,\n OrganizationPresentationErrorCodeSchema,\n type OrganizationPresentationFailureResponse,\n OrganizationPresentationFailureResponseSchema,\n} from \"./organizationPresentationError\";\nexport {\n type CreateOrganizationResponse,\n CreateOrganizationResponseSchema,\n isCreateOrganizationResponse,\n isOrganizationProvisioningResponse,\n type OrganizationProvisioningResponse,\n OrganizationProvisioningResponseSchema,\n} from \"./organizationProvisioning\";\nexport {\n isOrganizationReadModelResponse,\n type OrganizationReadModelDeltaResponse,\n type OrganizationReadModelDirectoryResponse,\n type OrganizationReadModelGrantsResponse,\n type OrganizationReadModelGroupMemberResponse,\n type OrganizationReadModelGroupMembershipResponse,\n type OrganizationReadModelGroupMembershipsResponse,\n type OrganizationReadModelOrganizationPolicyResponse,\n type OrganizationReadModelResponse,\n OrganizationReadModelResponseSchema,\n type OrganizationReadModelSnapshotResponse,\n} from \"./organizationReadModel\";\nexport {\n ORGANIZATION_READ_MODEL_ERROR_CODES,\n type OrganizationReadModelErrorCode,\n OrganizationReadModelErrorCodeSchema,\n type OrganizationReadModelFailureResponse,\n OrganizationReadModelFailureResponseSchema,\n} from \"./organizationReadModelError\";\nexport {\n CommitOrganizationGroupPolicyConflictResponseSchema,\n type CommitOrganizationGroupPolicyResponse,\n CommitOrganizationGroupPolicyResponseSchema,\n type CurrentPrincipalMemberEnvelopesResponse,\n CurrentPrincipalMemberEnvelopesResponseSchema,\n isCommitOrganizationGroupPolicyResponse,\n isCurrentPrincipalMemberEnvelopesResponse,\n isPrincipalPolicyBundleResponse,\n isPrincipalPolicyMutationResponse,\n isPrincipalPolicyStaleErrorResponse,\n isPrincipalPolicyStateChainEntryResponse,\n isPrincipalStatePayloadResponse,\n isPrincipalStateResponse,\n type PrincipalContainerGrantResponse,\n PrincipalContainerGrantResponseSchema,\n type PrincipalMemberEnvelopeResponse,\n PrincipalMemberEnvelopeResponseSchema,\n type PrincipalPolicyBundleResponse,\n PrincipalPolicyBundleResponseSchema,\n type PrincipalPolicyErrorResponse,\n PrincipalPolicyErrorResponseSchema,\n type PrincipalPolicyMutationResponse,\n PrincipalPolicyMutationResponseSchema,\n type PrincipalPolicySnapshotResponse,\n PrincipalPolicySnapshotResponseSchema,\n type PrincipalPolicyStaleErrorResponse,\n PrincipalPolicyStaleErrorResponseSchema,\n type PrincipalPolicyStateChainEntryResponse,\n PrincipalPolicyStateChainEntryResponseSchema,\n type PrincipalProjectionMemberResponse,\n PrincipalProjectionMemberResponseSchema,\n type PrincipalStateExternalAuthorityResponse,\n PrincipalStateExternalAuthorityResponseSchema,\n type PrincipalStatePayloadResponse,\n PrincipalStatePayloadResponseSchema,\n type PrincipalStateResponse,\n PrincipalStateResponseSchema,\n} from \"./principal\";\nexport {\n isPrincipalPolicyPageResponse,\n type PrincipalPolicyPageResponse,\n PrincipalPolicyPageResponseSchema,\n} from \"./principalPolicyPage\";\nexport {\n isPrincipalPolicySnapshotPageResponse,\n type PrincipalPolicyHistorySourceResponse,\n PrincipalPolicyHistorySourceResponseSchema,\n type PrincipalPolicySnapshotPageResponse,\n PrincipalPolicySnapshotPageResponseSchema,\n} from \"./principalPolicySnapshotPage\";\nexport {\n isReferencedPrincipalStateResponse,\n type ReferencedPrincipalStateResponse,\n ReferencedPrincipalStateResponseSchema,\n} from \"./principalReference\";\nexport {\n type ProjectionPolicyEvidenceResponse,\n ProjectionPolicyEvidenceResponseSchema,\n} from \"./projectionPolicyEvidence\";\nexport {\n isRegistrationResponse,\n type RegistrationResponse,\n RegistrationResponseSchema,\n} from \"./registration\";\nexport {\n isRootIdentitiesResponse,\n isRootIdentityDetailResponse,\n isRootIdentityOrganizationsResponse,\n type RootIdentitiesResponse,\n RootIdentitiesResponseSchema,\n type RootIdentityDetailResponse,\n RootIdentityDetailResponseSchema,\n type RootIdentityOrganizationBillingResponse,\n RootIdentityOrganizationBillingResponseSchema,\n type RootIdentityOrganizationResponse,\n RootIdentityOrganizationResponseSchema,\n type RootIdentityOrganizationsResponse,\n RootIdentityOrganizationsResponseSchema,\n type RootIdentitySessionResponse,\n RootIdentitySessionResponseSchema,\n type RootIdentitySummaryResponse,\n RootIdentitySummaryResponseSchema,\n} from \"./root\";\nexport {\n ROOT_AUDIT_ACTIONS,\n type RootAuditAction,\n RootAuditActionSchema,\n type RootAuditEventResponse,\n RootAuditEventResponseSchema,\n type RootAuditEventsResponse,\n RootAuditEventsResponseSchema,\n} from \"./rootAudit\";\nexport {\n ROOT_OPS_HEALTH_OVERDUE_MINUTES,\n ROOT_OPS_HEALTH_SECTION_LIMIT,\n ROOT_OPS_HEALTH_UPCOMING_DAYS,\n ROOT_SEAT_SYNC_CONDITIONS,\n type RootOpsHealthReportResponse,\n RootOpsHealthReportResponseSchema,\n RootSeatSyncConditionSchema,\n} from \"./rootOpsHealth\";\nexport {\n type RootDataUsageReportResponse,\n RootDataUsageReportResponseSchema,\n type RootOrganizationDetailResponse,\n RootOrganizationDetailResponseSchema,\n type RootOrganizationIdentitiesResponse,\n RootOrganizationIdentitiesResponseSchema,\n type RootOrganizationIdentityResponse,\n RootOrganizationIdentityResponseSchema,\n type RootOrganizationSummaryResponse,\n RootOrganizationSummaryResponseSchema,\n type RootOrganizationsResponse,\n RootOrganizationsResponseSchema,\n} from \"./rootOrganizations\";\nexport {\n isStripeCancelResponse,\n isStripeCheckoutIntentResponse,\n isStripeCheckoutOptionsResponse,\n isStripeCheckoutSessionResponse,\n isStripePortalResponse,\n type StripeCancelResponse,\n StripeCancelResponseSchema,\n type StripeCheckoutIntentResponse,\n StripeCheckoutIntentResponseSchema,\n type StripeCheckoutOptionsResponse,\n StripeCheckoutOptionsResponseSchema,\n type StripeCheckoutSessionResponse,\n StripeCheckoutSessionResponseSchema,\n type StripePortalResponse,\n StripePortalResponseSchema,\n type StripeSyncOptionResponse,\n StripeSyncOptionResponseSchema,\n} from \"./stripeCheckout\";\nexport {\n isSyncWatermark,\n type SyncWatermark,\n SyncWatermarkSchema,\n} from \"./syncWatermark\";\nexport {\n decodeContainerWriterProjection,\n decodeDocumentWriterProjection,\n encodeContainerWriterProjection,\n encodeDocumentWriterProjection,\n} from \"./writerProjectionWire\";\n"]}
|
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
/**
|
|
3
|
+
* Every action the root audit trail records: one per `/root` operation, plus
|
|
4
|
+
* the API CLI's root grant and revoke.
|
|
5
|
+
*/
|
|
6
|
+
export declare const ROOT_AUDIT_ACTIONS: readonly ["root.access.grant", "root.access.revoke", "root.auditEvents.list", "root.identities.get", "root.identities.list", "root.identities.organizations.list", "root.organizations.dataUsage.get", "root.organizations.get", "root.organizations.identities.list", "root.organizations.list", "root.reports.dataUsage.list", "root.reports.opsHealth.get"];
|
|
7
|
+
/** The server's own vocabulary: exactly the actions it records. */
|
|
8
|
+
export declare const RootAuditActionSchema: z.ZodLiteral<"root.access.grant" | "root.access.revoke" | "root.auditEvents.list" | "root.identities.get" | "root.identities.list" | "root.identities.organizations.list" | "root.organizations.dataUsage.get" | "root.organizations.get" | "root.organizations.identities.list" | "root.organizations.list" | "root.reports.dataUsage.list" | "root.reports.opsHealth.get">;
|
|
9
|
+
export type RootAuditAction = z.infer<typeof RootAuditActionSchema>;
|
|
10
|
+
/** One recorded operator action, from `GET /root/audit-events`. */
|
|
11
|
+
export declare const RootAuditEventResponseSchema: z.ZodType<{
|
|
12
|
+
action: string;
|
|
13
|
+
actorSigningKeyFingerprint: string | null;
|
|
14
|
+
actorUserId: string | null;
|
|
15
|
+
filter: string | null;
|
|
16
|
+
id: string;
|
|
17
|
+
occurredAt: string;
|
|
18
|
+
sourceIpAddress: string | null;
|
|
19
|
+
targetOrganizationId: string | null;
|
|
20
|
+
targetUserId: string | null;
|
|
21
|
+
}, {
|
|
22
|
+
action: string;
|
|
23
|
+
actorSigningKeyFingerprint: string | null;
|
|
24
|
+
actorUserId: string | null;
|
|
25
|
+
filter: string | null;
|
|
26
|
+
id: string;
|
|
27
|
+
occurredAt: string;
|
|
28
|
+
sourceIpAddress: string | null;
|
|
29
|
+
targetOrganizationId: string | null;
|
|
30
|
+
targetUserId: string | null;
|
|
31
|
+
}, z.core.$ZodTypeInternals<{
|
|
32
|
+
action: string;
|
|
33
|
+
actorSigningKeyFingerprint: string | null;
|
|
34
|
+
actorUserId: string | null;
|
|
35
|
+
filter: string | null;
|
|
36
|
+
id: string;
|
|
37
|
+
occurredAt: string;
|
|
38
|
+
sourceIpAddress: string | null;
|
|
39
|
+
targetOrganizationId: string | null;
|
|
40
|
+
targetUserId: string | null;
|
|
41
|
+
}, {
|
|
42
|
+
action: string;
|
|
43
|
+
actorSigningKeyFingerprint: string | null;
|
|
44
|
+
actorUserId: string | null;
|
|
45
|
+
filter: string | null;
|
|
46
|
+
id: string;
|
|
47
|
+
occurredAt: string;
|
|
48
|
+
sourceIpAddress: string | null;
|
|
49
|
+
targetOrganizationId: string | null;
|
|
50
|
+
targetUserId: string | null;
|
|
51
|
+
}>>;
|
|
52
|
+
export type RootAuditEventResponse = z.infer<typeof RootAuditEventResponseSchema>;
|
|
53
|
+
export declare const RootAuditEventsResponseSchema: z.ZodType<{
|
|
54
|
+
events: {
|
|
55
|
+
action: string;
|
|
56
|
+
actorSigningKeyFingerprint: string | null;
|
|
57
|
+
actorUserId: string | null;
|
|
58
|
+
filter: string | null;
|
|
59
|
+
id: string;
|
|
60
|
+
occurredAt: string;
|
|
61
|
+
sourceIpAddress: string | null;
|
|
62
|
+
targetOrganizationId: string | null;
|
|
63
|
+
targetUserId: string | null;
|
|
64
|
+
}[];
|
|
65
|
+
nextCursor: string | null;
|
|
66
|
+
}, {
|
|
67
|
+
events: {
|
|
68
|
+
action: string;
|
|
69
|
+
actorSigningKeyFingerprint: string | null;
|
|
70
|
+
actorUserId: string | null;
|
|
71
|
+
filter: string | null;
|
|
72
|
+
id: string;
|
|
73
|
+
occurredAt: string;
|
|
74
|
+
sourceIpAddress: string | null;
|
|
75
|
+
targetOrganizationId: string | null;
|
|
76
|
+
targetUserId: string | null;
|
|
77
|
+
}[];
|
|
78
|
+
nextCursor: string | null;
|
|
79
|
+
}, z.core.$ZodTypeInternals<{
|
|
80
|
+
events: {
|
|
81
|
+
action: string;
|
|
82
|
+
actorSigningKeyFingerprint: string | null;
|
|
83
|
+
actorUserId: string | null;
|
|
84
|
+
filter: string | null;
|
|
85
|
+
id: string;
|
|
86
|
+
occurredAt: string;
|
|
87
|
+
sourceIpAddress: string | null;
|
|
88
|
+
targetOrganizationId: string | null;
|
|
89
|
+
targetUserId: string | null;
|
|
90
|
+
}[];
|
|
91
|
+
nextCursor: string | null;
|
|
92
|
+
}, {
|
|
93
|
+
events: {
|
|
94
|
+
action: string;
|
|
95
|
+
actorSigningKeyFingerprint: string | null;
|
|
96
|
+
actorUserId: string | null;
|
|
97
|
+
filter: string | null;
|
|
98
|
+
id: string;
|
|
99
|
+
occurredAt: string;
|
|
100
|
+
sourceIpAddress: string | null;
|
|
101
|
+
targetOrganizationId: string | null;
|
|
102
|
+
targetUserId: string | null;
|
|
103
|
+
}[];
|
|
104
|
+
nextCursor: string | null;
|
|
105
|
+
}>>;
|
|
106
|
+
export type RootAuditEventsResponse = z.infer<typeof RootAuditEventsResponseSchema>;
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
import { registerJsonSchemaFragment } from "../jsonSchema.js";
|
|
3
|
+
import { arraySchema, loosePlainObject, nonEmptyStringSchema, sha256HexStringSchema, } from "../schema.js";
|
|
4
|
+
/**
|
|
5
|
+
* Every action the root audit trail records: one per `/root` operation, plus
|
|
6
|
+
* the API CLI's root grant and revoke.
|
|
7
|
+
*/
|
|
8
|
+
export const ROOT_AUDIT_ACTIONS = [
|
|
9
|
+
"root.access.grant",
|
|
10
|
+
"root.access.revoke",
|
|
11
|
+
"root.auditEvents.list",
|
|
12
|
+
"root.identities.get",
|
|
13
|
+
"root.identities.list",
|
|
14
|
+
"root.identities.organizations.list",
|
|
15
|
+
"root.organizations.dataUsage.get",
|
|
16
|
+
"root.organizations.get",
|
|
17
|
+
"root.organizations.identities.list",
|
|
18
|
+
"root.organizations.list",
|
|
19
|
+
"root.reports.dataUsage.list",
|
|
20
|
+
"root.reports.opsHealth.get",
|
|
21
|
+
];
|
|
22
|
+
/** The server's own vocabulary: exactly the actions it records. */
|
|
23
|
+
export const RootAuditActionSchema = z.literal(ROOT_AUDIT_ACTIONS);
|
|
24
|
+
/**
|
|
25
|
+
* An action as the audit listing reports it. Every new root operation adds an
|
|
26
|
+
* action, so clients accept any operation id rather than a closed list that a
|
|
27
|
+
* newer server would outgrow; the known ones are listed as extensible.
|
|
28
|
+
*/
|
|
29
|
+
const RootAuditEventActionSchema = registerJsonSchemaFragment(z.string().min(1), {
|
|
30
|
+
type: "string",
|
|
31
|
+
minLength: 1,
|
|
32
|
+
"x-extensible-enum": [...ROOT_AUDIT_ACTIONS],
|
|
33
|
+
});
|
|
34
|
+
/** One recorded operator action, from `GET /root/audit-events`. */
|
|
35
|
+
export const RootAuditEventResponseSchema = loosePlainObject({
|
|
36
|
+
action: RootAuditEventActionSchema,
|
|
37
|
+
/** The acting root identity's signing key; null when the API CLI acted. */
|
|
38
|
+
actorSigningKeyFingerprint: sha256HexStringSchema.nullable(),
|
|
39
|
+
actorUserId: nonEmptyStringSchema.nullable(),
|
|
40
|
+
/** Listing filters as a sorted query string; null when none applied. */
|
|
41
|
+
filter: z.string().nullable(),
|
|
42
|
+
id: nonEmptyStringSchema,
|
|
43
|
+
occurredAt: z.string(),
|
|
44
|
+
sourceIpAddress: z.string().nullable(),
|
|
45
|
+
targetOrganizationId: nonEmptyStringSchema.nullable(),
|
|
46
|
+
targetUserId: nonEmptyStringSchema.nullable(),
|
|
47
|
+
});
|
|
48
|
+
export const RootAuditEventsResponseSchema = loosePlainObject({
|
|
49
|
+
events: arraySchema(RootAuditEventResponseSchema),
|
|
50
|
+
/** Opaque cursor for the next page; null when the listing is exhausted. */
|
|
51
|
+
nextCursor: z.string().nullable(),
|
|
52
|
+
});
|
|
53
|
+
//# sourceMappingURL=rootAudit.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"rootAudit.js","sourceRoot":"","sources":["rootAudit.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,0BAA0B,EAAE,MAAM,eAAe,CAAC;AAC3D,OAAO,EACL,WAAW,EACX,gBAAgB,EAChB,oBAAoB,EACpB,qBAAqB,GACtB,MAAM,WAAW,CAAC;AAEnB;;;GAGG;AACH,MAAM,CAAC,MAAM,kBAAkB,GAAG;IAChC,mBAAmB;IACnB,oBAAoB;IACpB,uBAAuB;IACvB,qBAAqB;IACrB,sBAAsB;IACtB,oCAAoC;IACpC,kCAAkC;IAClC,wBAAwB;IACxB,oCAAoC;IACpC,yBAAyB;IACzB,6BAA6B;IAC7B,4BAA4B;CACpB,CAAC;AAEX,mEAAmE;AACnE,MAAM,CAAC,MAAM,qBAAqB,GAAG,CAAC,CAAC,OAAO,CAAC,kBAAkB,CAAC,CAAC;AAInE;;;;GAIG;AACH,MAAM,0BAA0B,GAAG,0BAA0B,CAC3D,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,EACjB;IACE,IAAI,EAAE,QAAQ;IACd,SAAS,EAAE,CAAC;IACZ,mBAAmB,EAAE,CAAC,GAAG,kBAAkB,CAAC;CAC7C,CACF,CAAC;AAEF,mEAAmE;AACnE,MAAM,CAAC,MAAM,4BAA4B,GAAG,gBAAgB,CAAC;IAC3D,MAAM,EAAE,0BAA0B;IAClC,2EAA2E;IAC3E,0BAA0B,EAAE,qBAAqB,CAAC,QAAQ,EAAE;IAC5D,WAAW,EAAE,oBAAoB,CAAC,QAAQ,EAAE;IAC5C,wEAAwE;IACxE,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC7B,EAAE,EAAE,oBAAoB;IACxB,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE;IACtB,eAAe,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACtC,oBAAoB,EAAE,oBAAoB,CAAC,QAAQ,EAAE;IACrD,YAAY,EAAE,oBAAoB,CAAC,QAAQ,EAAE;CAC9C,CAAC,CAAC;AAMH,MAAM,CAAC,MAAM,6BAA6B,GAAG,gBAAgB,CAAC;IAC5D,MAAM,EAAE,WAAW,CAAC,4BAA4B,CAAC;IACjD,2EAA2E;IAC3E,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CAClC,CAAC,CAAC","sourcesContent":["import { z } from \"zod\";\nimport { registerJsonSchemaFragment } from \"../jsonSchema\";\nimport {\n arraySchema,\n loosePlainObject,\n nonEmptyStringSchema,\n sha256HexStringSchema,\n} from \"../schema\";\n\n/**\n * Every action the root audit trail records: one per `/root` operation, plus\n * the API CLI's root grant and revoke.\n */\nexport const ROOT_AUDIT_ACTIONS = [\n \"root.access.grant\",\n \"root.access.revoke\",\n \"root.auditEvents.list\",\n \"root.identities.get\",\n \"root.identities.list\",\n \"root.identities.organizations.list\",\n \"root.organizations.dataUsage.get\",\n \"root.organizations.get\",\n \"root.organizations.identities.list\",\n \"root.organizations.list\",\n \"root.reports.dataUsage.list\",\n \"root.reports.opsHealth.get\",\n] as const;\n\n/** The server's own vocabulary: exactly the actions it records. */\nexport const RootAuditActionSchema = z.literal(ROOT_AUDIT_ACTIONS);\n\nexport type RootAuditAction = z.infer<typeof RootAuditActionSchema>;\n\n/**\n * An action as the audit listing reports it. Every new root operation adds an\n * action, so clients accept any operation id rather than a closed list that a\n * newer server would outgrow; the known ones are listed as extensible.\n */\nconst RootAuditEventActionSchema = registerJsonSchemaFragment(\n z.string().min(1),\n {\n type: \"string\",\n minLength: 1,\n \"x-extensible-enum\": [...ROOT_AUDIT_ACTIONS],\n },\n);\n\n/** One recorded operator action, from `GET /root/audit-events`. */\nexport const RootAuditEventResponseSchema = loosePlainObject({\n action: RootAuditEventActionSchema,\n /** The acting root identity's signing key; null when the API CLI acted. */\n actorSigningKeyFingerprint: sha256HexStringSchema.nullable(),\n actorUserId: nonEmptyStringSchema.nullable(),\n /** Listing filters as a sorted query string; null when none applied. */\n filter: z.string().nullable(),\n id: nonEmptyStringSchema,\n occurredAt: z.string(),\n sourceIpAddress: z.string().nullable(),\n targetOrganizationId: nonEmptyStringSchema.nullable(),\n targetUserId: nonEmptyStringSchema.nullable(),\n});\n\nexport type RootAuditEventResponse = z.infer<\n typeof RootAuditEventResponseSchema\n>;\n\nexport const RootAuditEventsResponseSchema = loosePlainObject({\n events: arraySchema(RootAuditEventResponseSchema),\n /** Opaque cursor for the next page; null when the listing is exhausted. */\n nextCursor: z.string().nullable(),\n});\n\nexport type RootAuditEventsResponse = z.infer<\n typeof RootAuditEventsResponseSchema\n>;\n"]}
|
|
@@ -0,0 +1,224 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
/** Rows each ops-health section returns at most; `truncated` marks more. */
|
|
3
|
+
export declare const ROOT_OPS_HEALTH_SECTION_LIMIT = 50;
|
|
4
|
+
/**
|
|
5
|
+
* Billing maintenance runs every minute, so work still due this long after it
|
|
6
|
+
* fell due means the job is not keeping up rather than about to reach it.
|
|
7
|
+
*/
|
|
8
|
+
export declare const ROOT_OPS_HEALTH_OVERDUE_MINUTES = 15;
|
|
9
|
+
/** How far ahead the report looks for trials ending and purges coming due. */
|
|
10
|
+
export declare const ROOT_OPS_HEALTH_UPCOMING_DAYS = 7;
|
|
11
|
+
export declare const ROOT_SEAT_SYNC_CONDITIONS: readonly ["failing", "stalled", "leaseExpired"];
|
|
12
|
+
/**
|
|
13
|
+
* Why a Stripe seat-sync row is listed: its last attempt failed, a pending
|
|
14
|
+
* change has waited well past its retry time, or a claim's lease expired
|
|
15
|
+
* without the claim completing or failing.
|
|
16
|
+
*/
|
|
17
|
+
export declare const RootSeatSyncConditionSchema: z.ZodLiteral<"failing" | "stalled" | "leaseExpired">;
|
|
18
|
+
/** Cross-organization billing maintenance health, from `GET /root/reports/ops-health`. */
|
|
19
|
+
export declare const RootOpsHealthReportResponseSchema: z.ZodType<{
|
|
20
|
+
generatedAt: string;
|
|
21
|
+
seatSync: {
|
|
22
|
+
rows: {
|
|
23
|
+
organizationId: string;
|
|
24
|
+
conditions: ("failing" | "stalled" | "leaseExpired")[];
|
|
25
|
+
attemptCount: number;
|
|
26
|
+
appliedRevision: number;
|
|
27
|
+
desiredRevision: number;
|
|
28
|
+
lastError: string | null;
|
|
29
|
+
lastSyncedAt: string | null;
|
|
30
|
+
leaseExpiresAt: string | null;
|
|
31
|
+
nextAttemptAt: string | null;
|
|
32
|
+
}[];
|
|
33
|
+
truncated: boolean;
|
|
34
|
+
};
|
|
35
|
+
trialExpiry: {
|
|
36
|
+
rows: {
|
|
37
|
+
organizationId: string;
|
|
38
|
+
trialEndsAt: string;
|
|
39
|
+
attemptCount: number;
|
|
40
|
+
lastError: string | null;
|
|
41
|
+
nextAttemptAt: string | null;
|
|
42
|
+
requiresAttention: boolean;
|
|
43
|
+
}[];
|
|
44
|
+
truncated: boolean;
|
|
45
|
+
};
|
|
46
|
+
purges: {
|
|
47
|
+
rows: {
|
|
48
|
+
organizationId: string;
|
|
49
|
+
status: "disabled" | "deleting";
|
|
50
|
+
purgeAfter: string | null;
|
|
51
|
+
purgeStartedAt: string | null;
|
|
52
|
+
}[];
|
|
53
|
+
truncated: boolean;
|
|
54
|
+
};
|
|
55
|
+
trialsEnding: {
|
|
56
|
+
rows: {
|
|
57
|
+
organizationId: string;
|
|
58
|
+
trialEndsAt: string;
|
|
59
|
+
}[];
|
|
60
|
+
truncated: boolean;
|
|
61
|
+
};
|
|
62
|
+
purgesDue: {
|
|
63
|
+
rows: {
|
|
64
|
+
organizationId: string;
|
|
65
|
+
disabledAt: string | null;
|
|
66
|
+
purgeAfter: string;
|
|
67
|
+
}[];
|
|
68
|
+
truncated: boolean;
|
|
69
|
+
};
|
|
70
|
+
}, {
|
|
71
|
+
generatedAt: string;
|
|
72
|
+
seatSync: {
|
|
73
|
+
rows: {
|
|
74
|
+
organizationId: string;
|
|
75
|
+
conditions: ("failing" | "stalled" | "leaseExpired")[];
|
|
76
|
+
attemptCount: number;
|
|
77
|
+
appliedRevision: number;
|
|
78
|
+
desiredRevision: number;
|
|
79
|
+
lastError: string | null;
|
|
80
|
+
lastSyncedAt: string | null;
|
|
81
|
+
leaseExpiresAt: string | null;
|
|
82
|
+
nextAttemptAt: string | null;
|
|
83
|
+
}[];
|
|
84
|
+
truncated: boolean;
|
|
85
|
+
};
|
|
86
|
+
trialExpiry: {
|
|
87
|
+
rows: {
|
|
88
|
+
organizationId: string;
|
|
89
|
+
trialEndsAt: string;
|
|
90
|
+
attemptCount: number;
|
|
91
|
+
lastError: string | null;
|
|
92
|
+
nextAttemptAt: string | null;
|
|
93
|
+
requiresAttention: boolean;
|
|
94
|
+
}[];
|
|
95
|
+
truncated: boolean;
|
|
96
|
+
};
|
|
97
|
+
purges: {
|
|
98
|
+
rows: {
|
|
99
|
+
organizationId: string;
|
|
100
|
+
status: "disabled" | "deleting";
|
|
101
|
+
purgeAfter: string | null;
|
|
102
|
+
purgeStartedAt: string | null;
|
|
103
|
+
}[];
|
|
104
|
+
truncated: boolean;
|
|
105
|
+
};
|
|
106
|
+
trialsEnding: {
|
|
107
|
+
rows: {
|
|
108
|
+
organizationId: string;
|
|
109
|
+
trialEndsAt: string;
|
|
110
|
+
}[];
|
|
111
|
+
truncated: boolean;
|
|
112
|
+
};
|
|
113
|
+
purgesDue: {
|
|
114
|
+
rows: {
|
|
115
|
+
organizationId: string;
|
|
116
|
+
disabledAt: string | null;
|
|
117
|
+
purgeAfter: string;
|
|
118
|
+
}[];
|
|
119
|
+
truncated: boolean;
|
|
120
|
+
};
|
|
121
|
+
}, z.core.$ZodTypeInternals<{
|
|
122
|
+
generatedAt: string;
|
|
123
|
+
seatSync: {
|
|
124
|
+
rows: {
|
|
125
|
+
organizationId: string;
|
|
126
|
+
conditions: ("failing" | "stalled" | "leaseExpired")[];
|
|
127
|
+
attemptCount: number;
|
|
128
|
+
appliedRevision: number;
|
|
129
|
+
desiredRevision: number;
|
|
130
|
+
lastError: string | null;
|
|
131
|
+
lastSyncedAt: string | null;
|
|
132
|
+
leaseExpiresAt: string | null;
|
|
133
|
+
nextAttemptAt: string | null;
|
|
134
|
+
}[];
|
|
135
|
+
truncated: boolean;
|
|
136
|
+
};
|
|
137
|
+
trialExpiry: {
|
|
138
|
+
rows: {
|
|
139
|
+
organizationId: string;
|
|
140
|
+
trialEndsAt: string;
|
|
141
|
+
attemptCount: number;
|
|
142
|
+
lastError: string | null;
|
|
143
|
+
nextAttemptAt: string | null;
|
|
144
|
+
requiresAttention: boolean;
|
|
145
|
+
}[];
|
|
146
|
+
truncated: boolean;
|
|
147
|
+
};
|
|
148
|
+
purges: {
|
|
149
|
+
rows: {
|
|
150
|
+
organizationId: string;
|
|
151
|
+
status: "disabled" | "deleting";
|
|
152
|
+
purgeAfter: string | null;
|
|
153
|
+
purgeStartedAt: string | null;
|
|
154
|
+
}[];
|
|
155
|
+
truncated: boolean;
|
|
156
|
+
};
|
|
157
|
+
trialsEnding: {
|
|
158
|
+
rows: {
|
|
159
|
+
organizationId: string;
|
|
160
|
+
trialEndsAt: string;
|
|
161
|
+
}[];
|
|
162
|
+
truncated: boolean;
|
|
163
|
+
};
|
|
164
|
+
purgesDue: {
|
|
165
|
+
rows: {
|
|
166
|
+
organizationId: string;
|
|
167
|
+
disabledAt: string | null;
|
|
168
|
+
purgeAfter: string;
|
|
169
|
+
}[];
|
|
170
|
+
truncated: boolean;
|
|
171
|
+
};
|
|
172
|
+
}, {
|
|
173
|
+
generatedAt: string;
|
|
174
|
+
seatSync: {
|
|
175
|
+
rows: {
|
|
176
|
+
organizationId: string;
|
|
177
|
+
conditions: ("failing" | "stalled" | "leaseExpired")[];
|
|
178
|
+
attemptCount: number;
|
|
179
|
+
appliedRevision: number;
|
|
180
|
+
desiredRevision: number;
|
|
181
|
+
lastError: string | null;
|
|
182
|
+
lastSyncedAt: string | null;
|
|
183
|
+
leaseExpiresAt: string | null;
|
|
184
|
+
nextAttemptAt: string | null;
|
|
185
|
+
}[];
|
|
186
|
+
truncated: boolean;
|
|
187
|
+
};
|
|
188
|
+
trialExpiry: {
|
|
189
|
+
rows: {
|
|
190
|
+
organizationId: string;
|
|
191
|
+
trialEndsAt: string;
|
|
192
|
+
attemptCount: number;
|
|
193
|
+
lastError: string | null;
|
|
194
|
+
nextAttemptAt: string | null;
|
|
195
|
+
requiresAttention: boolean;
|
|
196
|
+
}[];
|
|
197
|
+
truncated: boolean;
|
|
198
|
+
};
|
|
199
|
+
purges: {
|
|
200
|
+
rows: {
|
|
201
|
+
organizationId: string;
|
|
202
|
+
status: "disabled" | "deleting";
|
|
203
|
+
purgeAfter: string | null;
|
|
204
|
+
purgeStartedAt: string | null;
|
|
205
|
+
}[];
|
|
206
|
+
truncated: boolean;
|
|
207
|
+
};
|
|
208
|
+
trialsEnding: {
|
|
209
|
+
rows: {
|
|
210
|
+
organizationId: string;
|
|
211
|
+
trialEndsAt: string;
|
|
212
|
+
}[];
|
|
213
|
+
truncated: boolean;
|
|
214
|
+
};
|
|
215
|
+
purgesDue: {
|
|
216
|
+
rows: {
|
|
217
|
+
organizationId: string;
|
|
218
|
+
disabledAt: string | null;
|
|
219
|
+
purgeAfter: string;
|
|
220
|
+
}[];
|
|
221
|
+
truncated: boolean;
|
|
222
|
+
};
|
|
223
|
+
}>>;
|
|
224
|
+
export type RootOpsHealthReportResponse = z.infer<typeof RootOpsHealthReportResponseSchema>;
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
import { arraySchema, loosePlainObject, nonEmptyStringSchema, nonNegativeIntegerSchema, } from "../schema.js";
|
|
3
|
+
/** Rows each ops-health section returns at most; `truncated` marks more. */
|
|
4
|
+
export const ROOT_OPS_HEALTH_SECTION_LIMIT = 50;
|
|
5
|
+
/**
|
|
6
|
+
* Billing maintenance runs every minute, so work still due this long after it
|
|
7
|
+
* fell due means the job is not keeping up rather than about to reach it.
|
|
8
|
+
*/
|
|
9
|
+
export const ROOT_OPS_HEALTH_OVERDUE_MINUTES = 15;
|
|
10
|
+
/** How far ahead the report looks for trials ending and purges coming due. */
|
|
11
|
+
export const ROOT_OPS_HEALTH_UPCOMING_DAYS = 7;
|
|
12
|
+
function sectionSchema(rowSchema) {
|
|
13
|
+
return loosePlainObject({
|
|
14
|
+
rows: arraySchema(rowSchema, ROOT_OPS_HEALTH_SECTION_LIMIT),
|
|
15
|
+
/** More rows matched than the section returns. */
|
|
16
|
+
truncated: z.boolean(),
|
|
17
|
+
});
|
|
18
|
+
}
|
|
19
|
+
export const ROOT_SEAT_SYNC_CONDITIONS = [
|
|
20
|
+
"failing",
|
|
21
|
+
"stalled",
|
|
22
|
+
"leaseExpired",
|
|
23
|
+
];
|
|
24
|
+
/**
|
|
25
|
+
* Why a Stripe seat-sync row is listed: its last attempt failed, a pending
|
|
26
|
+
* change has waited well past its retry time, or a claim's lease expired
|
|
27
|
+
* without the claim completing or failing.
|
|
28
|
+
*/
|
|
29
|
+
export const RootSeatSyncConditionSchema = z.literal(ROOT_SEAT_SYNC_CONDITIONS);
|
|
30
|
+
const RootSeatSyncIssueSchema = loosePlainObject({
|
|
31
|
+
organizationId: nonEmptyStringSchema,
|
|
32
|
+
conditions: arraySchema(RootSeatSyncConditionSchema, ROOT_SEAT_SYNC_CONDITIONS.length),
|
|
33
|
+
attemptCount: nonNegativeIntegerSchema,
|
|
34
|
+
appliedRevision: nonNegativeIntegerSchema,
|
|
35
|
+
desiredRevision: nonNegativeIntegerSchema,
|
|
36
|
+
lastError: z.string().nullable(),
|
|
37
|
+
lastSyncedAt: z.string().nullable(),
|
|
38
|
+
leaseExpiresAt: z.string().nullable(),
|
|
39
|
+
nextAttemptAt: z.string().nullable(),
|
|
40
|
+
});
|
|
41
|
+
const RootTrialExpiryIssueSchema = loosePlainObject({
|
|
42
|
+
organizationId: nonEmptyStringSchema,
|
|
43
|
+
trialEndsAt: z.string(),
|
|
44
|
+
attemptCount: nonNegativeIntegerSchema,
|
|
45
|
+
lastError: z.string().nullable(),
|
|
46
|
+
nextAttemptAt: z.string().nullable(),
|
|
47
|
+
/** The sweep has failed often enough to report the organization. */
|
|
48
|
+
requiresAttention: z.boolean(),
|
|
49
|
+
});
|
|
50
|
+
const RootPurgeIssueSchema = loosePlainObject({
|
|
51
|
+
organizationId: nonEmptyStringSchema,
|
|
52
|
+
status: z.literal(["disabled", "deleting"]),
|
|
53
|
+
purgeAfter: z.string().nullable(),
|
|
54
|
+
purgeStartedAt: z.string().nullable(),
|
|
55
|
+
});
|
|
56
|
+
const RootTrialEndingSchema = loosePlainObject({
|
|
57
|
+
organizationId: nonEmptyStringSchema,
|
|
58
|
+
trialEndsAt: z.string(),
|
|
59
|
+
});
|
|
60
|
+
const RootPurgeDueSchema = loosePlainObject({
|
|
61
|
+
organizationId: nonEmptyStringSchema,
|
|
62
|
+
disabledAt: z.string().nullable(),
|
|
63
|
+
purgeAfter: z.string(),
|
|
64
|
+
});
|
|
65
|
+
/** Cross-organization billing maintenance health, from `GET /root/reports/ops-health`. */
|
|
66
|
+
export const RootOpsHealthReportResponseSchema = loosePlainObject({
|
|
67
|
+
generatedAt: z.string(),
|
|
68
|
+
/** Stripe seat-sync rows the worker would claim, in retry order. */
|
|
69
|
+
seatSync: sectionSchema(RootSeatSyncIssueSchema),
|
|
70
|
+
/** Ended trials the expiry sweep failed on or has not reached in time. */
|
|
71
|
+
trialExpiry: sectionSchema(RootTrialExpiryIssueSchema),
|
|
72
|
+
/** Purges past due to start, or started with a lapsed lease. */
|
|
73
|
+
purges: sectionSchema(RootPurgeIssueSchema),
|
|
74
|
+
/** Trials ending within the upcoming window, soonest first. */
|
|
75
|
+
trialsEnding: sectionSchema(RootTrialEndingSchema),
|
|
76
|
+
/** Disabled organizations whose purge falls due within the window. */
|
|
77
|
+
purgesDue: sectionSchema(RootPurgeDueSchema),
|
|
78
|
+
});
|
|
79
|
+
//# sourceMappingURL=rootOpsHealth.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"rootOpsHealth.js","sourceRoot":"","sources":["rootOpsHealth.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EACL,WAAW,EACX,gBAAgB,EAChB,oBAAoB,EACpB,wBAAwB,GACzB,MAAM,WAAW,CAAC;AAEnB,4EAA4E;AAC5E,MAAM,CAAC,MAAM,6BAA6B,GAAG,EAAE,CAAC;AAEhD;;;GAGG;AACH,MAAM,CAAC,MAAM,+BAA+B,GAAG,EAAE,CAAC;AAElD,8EAA8E;AAC9E,MAAM,CAAC,MAAM,6BAA6B,GAAG,CAAC,CAAC;AAE/C,SAAS,aAAa,CAA8B,SAAoB;IACtE,OAAO,gBAAgB,CAAC;QACtB,IAAI,EAAE,WAAW,CAAC,SAAS,EAAE,6BAA6B,CAAC;QAC3D,kDAAkD;QAClD,SAAS,EAAE,CAAC,CAAC,OAAO,EAAE;KACvB,CAAC,CAAC;AACL,CAAC;AAED,MAAM,CAAC,MAAM,yBAAyB,GAAG;IACvC,SAAS;IACT,SAAS;IACT,cAAc;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AAqB,GAAG,gBAAgB,CAAC;IAC7C,cAAc,EAAE,oBAAoB;IACpC,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE;CACxB,CAAC,CAAC;AAEH,MAAM,kBAAkB,GAAG,gBAAgB,CAAC;IAC1C,cAAc,EAAE,oBAAoB;IACpC,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACjC,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE;CACvB,CAAC,CAAC;AAEH,0FAA0F;AAC1F,MAAM,CAAC,MAAM,iCAAiC,GAAG,gBAAgB,CAAC;IAChE,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE;IACvB,oEAAoE;IACpE,QAAQ,EAAE,aAAa,CAAC,uBAAuB,CAAC;IAChD,0EAA0E;IAC1E,WAAW,EAAE,aAAa,CAAC,0BAA0B,CAAC;IACtD,gEAAgE;IAChE,MAAM,EAAE,aAAa,CAAC,oBAAoB,CAAC;IAC3C,+DAA+D;IAC/D,YAAY,EAAE,aAAa,CAAC,qBAAqB,CAAC;IAClD,sEAAsE;IACtE,SAAS,EAAE,aAAa,CAAC,kBAAkB,CAAC;CAC7C,CAAC,CAAC","sourcesContent":["import { z } from \"zod\";\nimport {\n arraySchema,\n loosePlainObject,\n nonEmptyStringSchema,\n nonNegativeIntegerSchema,\n} from \"../schema\";\n\n/** Rows each ops-health section returns at most; `truncated` marks more. */\nexport const ROOT_OPS_HEALTH_SECTION_LIMIT = 50;\n\n/**\n * Billing maintenance runs every minute, so work still due this long after it\n * fell due means the job is not keeping up rather than about to reach it.\n */\nexport const ROOT_OPS_HEALTH_OVERDUE_MINUTES = 15;\n\n/** How far ahead the report looks for trials ending and purges coming due. */\nexport const ROOT_OPS_HEALTH_UPCOMING_DAYS = 7;\n\nfunction sectionSchema<RowSchema extends z.ZodType>(rowSchema: RowSchema) {\n return loosePlainObject({\n rows: arraySchema(rowSchema, ROOT_OPS_HEALTH_SECTION_LIMIT),\n /** More rows matched than the section returns. */\n truncated: z.boolean(),\n });\n}\n\nexport const ROOT_SEAT_SYNC_CONDITIONS = [\n \"failing\",\n \"stalled\",\n \"leaseExpired\",\n] as const;\n\n/**\n * Why a Stripe seat-sync row is listed: its last attempt failed, a pending\n * change has waited well past its retry time, or a claim's lease expired\n * without the claim completing or failing.\n */\nexport const RootSeatSyncConditionSchema = z.literal(ROOT_SEAT_SYNC_CONDITIONS);\n\nconst RootSeatSyncIssueSchema = loosePlainObject({\n organizationId: nonEmptyStringSchema,\n conditions: arraySchema(\n RootSeatSyncConditionSchema,\n ROOT_SEAT_SYNC_CONDITIONS.length,\n ),\n attemptCount: nonNegativeIntegerSchema,\n appliedRevision: nonNegativeIntegerSchema,\n desiredRevision: nonNegativeIntegerSchema,\n lastError: z.string().nullable(),\n lastSyncedAt: z.string().nullable(),\n leaseExpiresAt: z.string().nullable(),\n nextAttemptAt: z.string().nullable(),\n});\n\nconst RootTrialExpiryIssueSchema = loosePlainObject({\n organizationId: nonEmptyStringSchema,\n trialEndsAt: z.string(),\n attemptCount: nonNegativeIntegerSchema,\n lastError: z.string().nullable(),\n nextAttemptAt: z.string().nullable(),\n /** The sweep has failed often enough to report the organization. */\n requiresAttention: z.boolean(),\n});\n\nconst RootPurgeIssueSchema = loosePlainObject({\n organizationId: nonEmptyStringSchema,\n status: z.literal([\"disabled\", \"deleting\"]),\n purgeAfter: z.string().nullable(),\n purgeStartedAt: z.string().nullable(),\n});\n\nconst RootTrialEndingSchema = loosePlainObject({\n organizationId: nonEmptyStringSchema,\n trialEndsAt: z.string(),\n});\n\nconst RootPurgeDueSchema = loosePlainObject({\n organizationId: nonEmptyStringSchema,\n disabledAt: z.string().nullable(),\n purgeAfter: z.string(),\n});\n\n/** Cross-organization billing maintenance health, from `GET /root/reports/ops-health`. */\nexport const RootOpsHealthReportResponseSchema = loosePlainObject({\n generatedAt: z.string(),\n /** Stripe seat-sync rows the worker would claim, in retry order. */\n seatSync: sectionSchema(RootSeatSyncIssueSchema),\n /** Ended trials the expiry sweep failed on or has not reached in time. */\n trialExpiry: sectionSchema(RootTrialExpiryIssueSchema),\n /** Purges past due to start, or started with a lapsed lease. */\n purges: sectionSchema(RootPurgeIssueSchema),\n /** Trials ending within the upcoming window, soonest first. */\n trialsEnding: sectionSchema(RootTrialEndingSchema),\n /** Disabled organizations whose purge falls due within the window. */\n purgesDue: sectionSchema(RootPurgeDueSchema),\n});\n\nexport type RootOpsHealthReportResponse = z.infer<\n typeof RootOpsHealthReportResponseSchema\n>;\n"]}
|
package/package.json
CHANGED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import type { RequestResult } from "../../internal/api-client/index.js";
|
|
2
|
+
import type { RootAuditEventsQuery } from "../../internal/validators/operation/index.js";
|
|
3
|
+
import type { RootAuditAction, RootAuditEventResponse, RootAuditEventsResponse } from "../../internal/validators/response/index.js";
|
|
4
|
+
import { type RootRequestOutcome } from "./identities.js";
|
|
5
|
+
/**
|
|
6
|
+
* One recorded operator action (wire shape); a null actor is the API CLI. The
|
|
7
|
+
* action is an operation id, which may be one this SDK predates.
|
|
8
|
+
*/
|
|
9
|
+
export type RootAuditEvent = RootAuditEventResponse & {
|
|
10
|
+
readonly action: RootAuditAction | (string & {});
|
|
11
|
+
};
|
|
12
|
+
/** A page of audit events, newest first, plus the next page's cursor. */
|
|
13
|
+
export type RootAuditEventsPage = RootAuditEventsResponse & {
|
|
14
|
+
readonly events: RootAuditEvent[];
|
|
15
|
+
};
|
|
16
|
+
/** Paging and the optional identity or organization the events involve. */
|
|
17
|
+
export type RootAuditEventsQueryInput = RootAuditEventsQuery;
|
|
18
|
+
export interface RootAuditApi {
|
|
19
|
+
listRootAuditEventsResult(query?: RootAuditEventsQuery): Promise<RequestResult<RootAuditEventsResponse>>;
|
|
20
|
+
}
|
|
21
|
+
export declare function listRootAuditEvents(api: RootAuditApi, query?: RootAuditEventsQueryInput): Promise<RootRequestOutcome<RootAuditEventsPage>>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"audit.js","sourceRoot":"","sources":["audit.ts"],"names":[],"mappings":"AAOA,OAAO,EAA2B,SAAS,EAAE,MAAM,cAAc,CAAC;AAwBlE,MAAM,CAAC,KAAK,UAAU,mBAAmB,CACvC,GAAiB,EACjB,QAAmC,EAAE;IAErC,OAAO,SAAS,CAAC,MAAM,GAAG,CAAC,yBAAyB,CAAC,KAAK,CAAC,CAAC,CAAC;AAC/D,CAAC","sourcesContent":["import type { RequestResult } from \"@tearleads/api-client\";\nimport type { RootAuditEventsQuery } from \"@tearleads/validators/operation\";\nimport type {\n RootAuditAction,\n RootAuditEventResponse,\n RootAuditEventsResponse,\n} from \"@tearleads/validators/response\";\nimport { type RootRequestOutcome, toOutcome } from \"./identities\";\n\n/**\n * One recorded operator action (wire shape); a null actor is the API CLI. The\n * action is an operation id, which may be one this SDK predates.\n */\nexport type RootAuditEvent = RootAuditEventResponse & {\n readonly action: RootAuditAction | (string & {});\n};\n\n/** A page of audit events, newest first, plus the next page's cursor. */\nexport type RootAuditEventsPage = RootAuditEventsResponse & {\n readonly events: RootAuditEvent[];\n};\n\n/** Paging and the optional identity or organization the events involve. */\nexport type RootAuditEventsQueryInput = RootAuditEventsQuery;\n\nexport interface RootAuditApi {\n listRootAuditEventsResult(\n query?: RootAuditEventsQuery,\n ): Promise<RequestResult<RootAuditEventsResponse>>;\n}\n\nexport async function listRootAuditEvents(\n api: RootAuditApi,\n query: RootAuditEventsQueryInput = {},\n): Promise<RootRequestOutcome<RootAuditEventsPage>> {\n return toOutcome(await api.listRootAuditEventsResult(query));\n}\n"]}
|