@tearleads/client-sdk 0.1.94 → 0.1.95
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 +10 -2
- package/client/root/index.js +9 -1
- package/client/root/index.js.map +1 -1
- package/client/session/index.js +7 -4
- package/client/session/index.js.map +1 -1
- package/client/session/sessionLoginRefusal.js +17 -0
- package/client/session/sessionLoginRefusal.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 +5 -1
- package/internal/api-client/ApiClient.js +14 -3
- package/internal/api-client/ApiClient.js.map +1 -1
- package/internal/api-client/accountSuspension.d.ts +12 -0
- package/internal/api-client/accountSuspension.js +23 -0
- package/internal/api-client/accountSuspension.js.map +1 -0
- package/internal/api-client/index.d.ts +1 -0
- package/internal/api-client/index.js +1 -0
- package/internal/api-client/index.js.map +1 -1
- package/internal/validators/operation/auth.d.ts +104 -2
- package/internal/validators/operation/auth.js +2 -1
- package/internal/validators/operation/auth.js.map +1 -1
- package/internal/validators/operation/index.d.ts +1 -0
- package/internal/validators/operation/index.js +1 -0
- package/internal/validators/operation/index.js.map +1 -1
- package/internal/validators/operation/registry.d.ts +3 -0
- package/internal/validators/operation/registry.js +3 -0
- package/internal/validators/operation/registry.js.map +1 -1
- package/internal/validators/operation/root.d.ts +8 -0
- package/internal/validators/operation/rootOrganizations.d.ts +4 -0
- package/internal/validators/operation/rootSuspension.d.ts +352 -0
- package/internal/validators/operation/rootSuspension.js +45 -0
- package/internal/validators/operation/rootSuspension.js.map +1 -0
- package/internal/validators/response/auth/index.d.ts +1 -1
- package/internal/validators/response/auth/index.js +1 -1
- package/internal/validators/response/auth/index.js.map +1 -1
- package/internal/validators/response/auth/verify.d.ts +15 -0
- package/internal/validators/response/auth/verify.js +9 -0
- package/internal/validators/response/auth/verify.js.map +1 -1
- package/internal/validators/response/index.d.ts +2 -2
- package/internal/validators/response/index.js +2 -2
- package/internal/validators/response/index.js.map +1 -1
- package/internal/validators/response/root.d.ts +60 -0
- package/internal/validators/response/root.js +9 -0
- package/internal/validators/response/root.js.map +1 -1
- package/internal/validators/response/rootAudit.d.ts +2 -2
- package/internal/validators/response/rootAudit.js +2 -0
- package/internal/validators/response/rootAudit.js.map +1 -1
- package/internal/validators/response/rootOrganizations.d.ts +8 -0
- package/package.json +1 -1
- package/workflows/root/index.d.ts +1 -0
- package/workflows/root/index.js +1 -0
- package/workflows/root/index.js.map +1 -1
- package/workflows/root/suspension.d.ts +13 -0
- package/workflows/root/suspension.js +17 -0
- package/workflows/root/suspension.js.map +1 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,kCAAkC,GACnC,MAAM,SAAS,CAAC;AACjB,OAAO,EAEL,0BAA0B,EAC1B,sBAAsB,GACvB,MAAM,eAAe,CAAC;AACvB,OAAO,EAEL,4BAA4B,EAE5B,uBAAuB,EAEvB,4BAA4B,EAC5B,wBAAwB,EACxB,mBAAmB,EACnB,wBAAwB,EACxB,sBAAsB,EACtB,+BAA+B,EAC/B,sBAAsB,EACtB,qBAAqB,EACrB,gBAAgB,EAChB,yBAAyB,EAEzB,0BAA0B,EAC1B,mBAAmB,EAEnB,sBAAsB,EAEtB,4BAA4B,EAE5B,0BAA0B,EAE1B,yBAAyB,EAEzB,2BAA2B,EAG3B,2BAA2B,EAE3B,6BAA6B,GAC9B,MAAM,QAAQ,CAAC;AAChB,OAAO,EACL,2BAA2B,EAC3B,uBAAuB,EAEvB,+BAA+B,EAE/B,2BAA2B,GAC5B,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAEL,gCAAgC,EAEhC,kCAAkC,EAElC,2BAA2B,EAE3B,kCAAkC,EAElC,0CAA0C,EAE1C,4BAA4B,EAE5B,wCAAwC,EACxC,4BAA4B,EAC5B,8BAA8B,EAC9B,oCAAoC,EACpC,i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AA8B,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"]}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,kCAAkC,GACnC,MAAM,SAAS,CAAC;AACjB,OAAO,EAEL,0BAA0B,EAC1B,sBAAsB,GACvB,MAAM,eAAe,CAAC;AACvB,OAAO,EAEL,4BAA4B,EAE5B,uBAAuB,EAEvB,4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BAAgB,CAAC;AACxB,OAAO,EACL,wBAAwB,EACxB,4BAA4B,EAC5B,mCAAmC,EACnC,gCAAgC,EAEhC,4BAA4B,EAE5B,gCAAgC,EAEhC,6CAA6C,EAE7C,sCAAsC,EAEtC,uCAAuC,EAEvC,iCAAiC,EAEjC,iCAAiC,EAEjC,oCAAoC,GACrC,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 VERIFY_ERROR_CODES,\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 isRootIdentitySuspensionResponse,\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 type RootIdentitySuspensionResponse,\n RootIdentitySuspensionResponseSchema,\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"]}
|
|
@@ -32,6 +32,7 @@ export declare const RootIdentitySummaryResponseSchema: z.ZodType<{
|
|
|
32
32
|
lastActiveAt: string | null;
|
|
33
33
|
registrationSourceIpAddress: string | null;
|
|
34
34
|
signingKeyFingerprint: string;
|
|
35
|
+
suspendedAt: string | null;
|
|
35
36
|
userId: string;
|
|
36
37
|
}, {
|
|
37
38
|
createdAt: string;
|
|
@@ -40,6 +41,7 @@ export declare const RootIdentitySummaryResponseSchema: z.ZodType<{
|
|
|
40
41
|
lastActiveAt: string | null;
|
|
41
42
|
registrationSourceIpAddress: string | null;
|
|
42
43
|
signingKeyFingerprint: string;
|
|
44
|
+
suspendedAt: string | null;
|
|
43
45
|
userId: string;
|
|
44
46
|
}, z.core.$ZodTypeInternals<{
|
|
45
47
|
createdAt: string;
|
|
@@ -48,6 +50,7 @@ export declare const RootIdentitySummaryResponseSchema: z.ZodType<{
|
|
|
48
50
|
lastActiveAt: string | null;
|
|
49
51
|
registrationSourceIpAddress: string | null;
|
|
50
52
|
signingKeyFingerprint: string;
|
|
53
|
+
suspendedAt: string | null;
|
|
51
54
|
userId: string;
|
|
52
55
|
}, {
|
|
53
56
|
createdAt: string;
|
|
@@ -56,6 +59,7 @@ export declare const RootIdentitySummaryResponseSchema: z.ZodType<{
|
|
|
56
59
|
lastActiveAt: string | null;
|
|
57
60
|
registrationSourceIpAddress: string | null;
|
|
58
61
|
signingKeyFingerprint: string;
|
|
62
|
+
suspendedAt: string | null;
|
|
59
63
|
userId: string;
|
|
60
64
|
}>>;
|
|
61
65
|
export type RootIdentitySummaryResponse = z.infer<typeof RootIdentitySummaryResponseSchema>;
|
|
@@ -67,6 +71,7 @@ export declare const RootIdentitiesResponseSchema: z.ZodType<{
|
|
|
67
71
|
lastActiveAt: string | null;
|
|
68
72
|
registrationSourceIpAddress: string | null;
|
|
69
73
|
signingKeyFingerprint: string;
|
|
74
|
+
suspendedAt: string | null;
|
|
70
75
|
userId: string;
|
|
71
76
|
}[];
|
|
72
77
|
nextCursor: string | null;
|
|
@@ -78,6 +83,7 @@ export declare const RootIdentitiesResponseSchema: z.ZodType<{
|
|
|
78
83
|
lastActiveAt: string | null;
|
|
79
84
|
registrationSourceIpAddress: string | null;
|
|
80
85
|
signingKeyFingerprint: string;
|
|
86
|
+
suspendedAt: string | null;
|
|
81
87
|
userId: string;
|
|
82
88
|
}[];
|
|
83
89
|
nextCursor: string | null;
|
|
@@ -89,6 +95,7 @@ export declare const RootIdentitiesResponseSchema: z.ZodType<{
|
|
|
89
95
|
lastActiveAt: string | null;
|
|
90
96
|
registrationSourceIpAddress: string | null;
|
|
91
97
|
signingKeyFingerprint: string;
|
|
98
|
+
suspendedAt: string | null;
|
|
92
99
|
userId: string;
|
|
93
100
|
}[];
|
|
94
101
|
nextCursor: string | null;
|
|
@@ -100,6 +107,7 @@ export declare const RootIdentitiesResponseSchema: z.ZodType<{
|
|
|
100
107
|
lastActiveAt: string | null;
|
|
101
108
|
registrationSourceIpAddress: string | null;
|
|
102
109
|
signingKeyFingerprint: string;
|
|
110
|
+
suspendedAt: string | null;
|
|
103
111
|
userId: string;
|
|
104
112
|
}[];
|
|
105
113
|
nextCursor: string | null;
|
|
@@ -144,6 +152,7 @@ export declare const RootIdentityDetailResponseSchema: z.ZodType<{
|
|
|
144
152
|
lastActiveAt: string | null;
|
|
145
153
|
registrationSourceIpAddress: string | null;
|
|
146
154
|
signingKeyFingerprint: string;
|
|
155
|
+
suspendedAt: string | null;
|
|
147
156
|
userId: string;
|
|
148
157
|
};
|
|
149
158
|
sessions: {
|
|
@@ -162,6 +171,7 @@ export declare const RootIdentityDetailResponseSchema: z.ZodType<{
|
|
|
162
171
|
lastActiveAt: string | null;
|
|
163
172
|
registrationSourceIpAddress: string | null;
|
|
164
173
|
signingKeyFingerprint: string;
|
|
174
|
+
suspendedAt: string | null;
|
|
165
175
|
userId: string;
|
|
166
176
|
};
|
|
167
177
|
sessions: {
|
|
@@ -180,6 +190,7 @@ export declare const RootIdentityDetailResponseSchema: z.ZodType<{
|
|
|
180
190
|
lastActiveAt: string | null;
|
|
181
191
|
registrationSourceIpAddress: string | null;
|
|
182
192
|
signingKeyFingerprint: string;
|
|
193
|
+
suspendedAt: string | null;
|
|
183
194
|
userId: string;
|
|
184
195
|
};
|
|
185
196
|
sessions: {
|
|
@@ -198,6 +209,7 @@ export declare const RootIdentityDetailResponseSchema: z.ZodType<{
|
|
|
198
209
|
lastActiveAt: string | null;
|
|
199
210
|
registrationSourceIpAddress: string | null;
|
|
200
211
|
signingKeyFingerprint: string;
|
|
212
|
+
suspendedAt: string | null;
|
|
201
213
|
userId: string;
|
|
202
214
|
};
|
|
203
215
|
sessions: {
|
|
@@ -210,6 +222,53 @@ export declare const RootIdentityDetailResponseSchema: z.ZodType<{
|
|
|
210
222
|
}[];
|
|
211
223
|
}>>;
|
|
212
224
|
export type RootIdentityDetailResponse = z.infer<typeof RootIdentityDetailResponseSchema>;
|
|
225
|
+
/** The identity after a suspension was placed or lifted. */
|
|
226
|
+
export declare const RootIdentitySuspensionResponseSchema: z.ZodType<{
|
|
227
|
+
identity: {
|
|
228
|
+
createdAt: string;
|
|
229
|
+
defaultOrganizationId: string;
|
|
230
|
+
isRoot: boolean;
|
|
231
|
+
lastActiveAt: string | null;
|
|
232
|
+
registrationSourceIpAddress: string | null;
|
|
233
|
+
signingKeyFingerprint: string;
|
|
234
|
+
suspendedAt: string | null;
|
|
235
|
+
userId: string;
|
|
236
|
+
};
|
|
237
|
+
}, {
|
|
238
|
+
identity: {
|
|
239
|
+
createdAt: string;
|
|
240
|
+
defaultOrganizationId: string;
|
|
241
|
+
isRoot: boolean;
|
|
242
|
+
lastActiveAt: string | null;
|
|
243
|
+
registrationSourceIpAddress: string | null;
|
|
244
|
+
signingKeyFingerprint: string;
|
|
245
|
+
suspendedAt: string | null;
|
|
246
|
+
userId: string;
|
|
247
|
+
};
|
|
248
|
+
}, z.core.$ZodTypeInternals<{
|
|
249
|
+
identity: {
|
|
250
|
+
createdAt: string;
|
|
251
|
+
defaultOrganizationId: string;
|
|
252
|
+
isRoot: boolean;
|
|
253
|
+
lastActiveAt: string | null;
|
|
254
|
+
registrationSourceIpAddress: string | null;
|
|
255
|
+
signingKeyFingerprint: string;
|
|
256
|
+
suspendedAt: string | null;
|
|
257
|
+
userId: string;
|
|
258
|
+
};
|
|
259
|
+
}, {
|
|
260
|
+
identity: {
|
|
261
|
+
createdAt: string;
|
|
262
|
+
defaultOrganizationId: string;
|
|
263
|
+
isRoot: boolean;
|
|
264
|
+
lastActiveAt: string | null;
|
|
265
|
+
registrationSourceIpAddress: string | null;
|
|
266
|
+
signingKeyFingerprint: string;
|
|
267
|
+
suspendedAt: string | null;
|
|
268
|
+
userId: string;
|
|
269
|
+
};
|
|
270
|
+
}>>;
|
|
271
|
+
export type RootIdentitySuspensionResponse = z.infer<typeof RootIdentitySuspensionResponseSchema>;
|
|
213
272
|
export declare const rootOrganizationBillingShape: {
|
|
214
273
|
currentPeriodEndsAt: z.ZodNullable<z.ZodString>;
|
|
215
274
|
disabledAt: z.ZodNullable<z.ZodString>;
|
|
@@ -440,4 +499,5 @@ export declare const RootIdentityOrganizationsResponseSchema: z.ZodType<{
|
|
|
440
499
|
export type RootIdentityOrganizationsResponse = z.infer<typeof RootIdentityOrganizationsResponseSchema>;
|
|
441
500
|
export declare function isRootIdentitiesResponse(value: unknown): value is RootIdentitiesResponse;
|
|
442
501
|
export declare function isRootIdentityDetailResponse(value: unknown): value is RootIdentityDetailResponse;
|
|
502
|
+
export declare function isRootIdentitySuspensionResponse(value: unknown): value is RootIdentitySuspensionResponse;
|
|
443
503
|
export declare function isRootIdentityOrganizationsResponse(value: unknown): value is RootIdentityOrganizationsResponse;
|
|
@@ -18,6 +18,8 @@ export const RootIdentitySummaryResponseSchema = loosePlainObject({
|
|
|
18
18
|
lastActiveAt: z.string().nullable(),
|
|
19
19
|
registrationSourceIpAddress: z.string().nullable(),
|
|
20
20
|
signingKeyFingerprint: sha256HexStringSchema,
|
|
21
|
+
/** When an operator suspended the account; null while in good standing. */
|
|
22
|
+
suspendedAt: z.string().nullable(),
|
|
21
23
|
userId: nonEmptyStringSchema,
|
|
22
24
|
});
|
|
23
25
|
export const RootIdentitiesResponseSchema = loosePlainObject({
|
|
@@ -38,6 +40,10 @@ export const RootIdentityDetailResponseSchema = loosePlainObject({
|
|
|
38
40
|
identity: RootIdentitySummaryResponseSchema,
|
|
39
41
|
sessions: arraySchema(RootIdentitySessionResponseSchema),
|
|
40
42
|
});
|
|
43
|
+
/** The identity after a suspension was placed or lifted. */
|
|
44
|
+
export const RootIdentitySuspensionResponseSchema = loosePlainObject({
|
|
45
|
+
identity: RootIdentitySummaryResponseSchema,
|
|
46
|
+
});
|
|
41
47
|
export const rootOrganizationBillingShape = {
|
|
42
48
|
currentPeriodEndsAt: z.string().nullable(),
|
|
43
49
|
disabledAt: z.string().nullable(),
|
|
@@ -66,6 +72,9 @@ export function isRootIdentitiesResponse(value) {
|
|
|
66
72
|
export function isRootIdentityDetailResponse(value) {
|
|
67
73
|
return RootIdentityDetailResponseSchema.safeParse(value).success;
|
|
68
74
|
}
|
|
75
|
+
export function isRootIdentitySuspensionResponse(value) {
|
|
76
|
+
return RootIdentitySuspensionResponseSchema.safeParse(value).success;
|
|
77
|
+
}
|
|
69
78
|
export function isRootIdentityOrganizationsResponse(value) {
|
|
70
79
|
return RootIdentityOrganizationsResponseSchema.safeParse(value).success;
|
|
71
80
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"root.js","sourceRoot":"","sources":["root.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EACL,WAAW,EACX,gBAAgB,EAChB,oBAAoB,EACpB,wBAAwB,EACxB,qBAAqB,GACtB,MAAM,WAAW,CAAC;AACnB,OAAO,EAAE,+BAA+B,EAAE,MAAM,uBAAuB,CAAC;AAExE,MAAM,CAAC,MAAM,gBAAgB,GAAG,gBAAgB,CAAC;IAC/C,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACjC,8EAA8E;IAC9E,SAAS,EAAE,CAAC,CAAC,OAAO,EAAE;IACtB,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE;IACpB,MAAM,EAAE,CAAC,CAAC,OAAO,CAAC,CAAC,QAAQ,EAAE,UAAU,CAAC,CAAC;IACzC,kFAAkF;IAClF,YAAY,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CACpC,CAAC,CAAC;AAEH,oFAAoF;AACpF,MAAM,CAAC,MAAM,iCAAiC,GAAG,gBAAgB,CAAC;IAChE,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE;IACrB,qBAAqB,EAAE,oBAAoB;IAC3C,MAAM,EAAE,CAAC,CAAC,OAAO,EAAE;IACnB,YAAY,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACnC,2BAA2B,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAClD,qBAAqB,EAAE,qBAAqB;IAC5C,MAAM,EAAE,oBAAoB;CAC7B,CAAC,CAAC;AAMH,MAAM,CAAC,MAAM,4BAA4B,GAAG,gBAA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gB,CAAC;IACrE,+EAA+E;IAC/E,OAAO,EAAE,6CAA6C,CAAC,QAAQ,EAAE;IACjE,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE;IACrB,qBAAqB,EAAE,CAAC,CAAC,OAAO,EAAE;IAClC,cAAc,EAAE,oBAAoB;IACpC,MAAM,EAAE,gBAAgB;CACzB,CAAC,CAAC;AAMH,MAAM,CAAC,MAAM,uCAAuC,GAAG,gBAAgB,CAAC;IACtE,aAAa,EAAE,WAAW,CAAC,sCAAsC,CAAC;CACnE,CAAC,CAAC;AAMH,MAAM,UAAU,wBAAwB,CACtC,KAAc;IAEd,OAAO,4BAA4B,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC,OAAO,CAAC;AAC/D,CAAC;AAED,MAAM,UAAU,4BAA4B,CAC1C,KAAc;IAEd,OAAO,gCAAgC,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC,OAAO,CAAC;AACnE,CAAC;AAED,MAAM,UAAU,mCAAmC,CACjD,KAAc;IAEd,OAAO,uCAAuC,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC,OAAO,CAAC;AAC1E,CAAC","sourcesContent":["import { z } from \"zod\";\nimport {\n arraySchema,\n loosePlainObject,\n nonEmptyStringSchema,\n nonNegativeIntegerSchema,\n sha256HexStringSchema,\n} from \"../schema\";\nimport { OrganizationBillingStatusSchema } from \"./organizationBilling\";\n\nexport const RootRosterSchema = loosePlainObject({\n disabledAt: z.string().nullable(),\n /** Whether the identity holds an open billable-seat assignment in the org. */\n holdsSeat: z.boolean(),\n joinedAt: z.string(),\n status: z.literal([\"active\", \"disabled\"]),\n /** When the member paused the org's sync to their devices; null while syncing. */\n syncPausedAt: z.string().nullable(),\n});\n\n/** Operator-facing view of one registered identity, from `GET /root/identities`. */\nexport const RootIdentitySummaryResponseSchema = loosePlainObject({\n createdAt: z.string(),\n defaultOrganizationId: nonEmptyStringSchema,\n isRoot: z.boolean(),\n lastActiveAt: z.string().nullable(),\n registrationSourceIpAddress: z.string().nullable(),\n signingKeyFingerprint: sha256HexStringSchema,\n userId: nonEmptyStringSchema,\n});\n\nexport type RootIdentitySummaryResponse = z.infer<\n typeof RootIdentitySummaryResponseSchema\n>;\n\nexport const RootIdentitiesResponseSchema = loosePlainObject({\n identities: arraySchema(RootIdentitySummaryResponseSchema),\n /** Opaque cursor for the next page; null when the listing is exhausted. */\n nextCursor: z.string().nullable(),\n});\n\nexport type RootIdentitiesResponse = z.infer<\n typeof RootIdentitiesResponseSchema\n>;\n\n/** A live session of the inspected identity; no session is the operator's. */\nexport const RootIdentitySessionResponseSchema = loosePlainObject({\n createdAt: z.string(),\n id: sha256HexStringSchema,\n ipAddresses: arraySchema(nonEmptyStringSchema),\n lastActiveAt: z.string(),\n lastActiveIp: nonEmptyStringSchema.nullable(),\n signingKeyFingerprint: z.string(),\n});\n\nexport type RootIdentitySessionResponse = z.infer<\n typeof RootIdentitySessionResponseSchema\n>;\n\nexport const RootIdentityDetailResponseSchema = loosePlainObject({\n identity: RootIdentitySummaryResponseSchema,\n sessions: arraySchema(RootIdentitySessionResponseSchema),\n});\n\nexport type RootIdentityDetailResponse = z.infer<\n typeof RootIdentityDetailResponseSchema\n>;\n\nexport const rootOrganizationBillingShape = {\n currentPeriodEndsAt: z.string().nullable(),\n disabledAt: z.string().nullable(),\n provider: z.string().nullable(),\n purgeAfter: z.string().nullable(),\n purgedAt: z.string().nullable(),\n seatCount: nonNegativeIntegerSchema,\n status: OrganizationBillingStatusSchema,\n trialEndsAt: z.string().nullable(),\n};\nexport const RootIdentityOrganizationBillingResponseSchema = loosePlainObject(\n rootOrganizationBillingShape,\n);\n\nexport type RootIdentityOrganizationBillingResponse = z.infer<\n typeof RootIdentityOrganizationBillingResponseSchema\n>;\n\nexport const RootIdentityOrganizationResponseSchema = loosePlainObject({\n /** Null only when the organization has no billing row, which is unexpected. */\n billing: RootIdentityOrganizationBillingResponseSchema.nullable(),\n createdAt: z.string(),\n isDefaultOrganization: z.boolean(),\n organizationId: nonEmptyStringSchema,\n roster: RootRosterSchema,\n});\n\nexport type RootIdentityOrganizationResponse = z.infer<\n typeof RootIdentityOrganizationResponseSchema\n>;\n\nexport const RootIdentityOrganizationsResponseSchema = loosePlainObject({\n organizations: arraySchema(RootIdentityOrganizationResponseSchema),\n});\n\nexport type RootIdentityOrganizationsResponse = z.infer<\n typeof RootIdentityOrganizationsResponseSchema\n>;\n\nexport function isRootIdentitiesResponse(\n value: unknown,\n): value is RootIdentitiesResponse {\n return RootIdentitiesResponseSchema.safeParse(value).success;\n}\n\nexport function isRootIdentityDetailResponse(\n value: unknown,\n): value is RootIdentityDetailResponse {\n return RootIdentityDetailResponseSchema.safeParse(value).success;\n}\n\nexport function isRootIdentityOrganizationsResponse(\n value: unknown,\n): value is RootIdentityOrganizationsResponse {\n return RootIdentityOrganizationsResponseSchema.safeParse(value).success;\n}\n"]}
|
|
1
|
+
{"version":3,"file":"root.js","sourceRoot":"","sources":["root.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EACL,WAAW,EACX,gBAAgB,EAChB,oBAAoB,EACpB,wBAAwB,EACxB,qBAAqB,GACtB,MAAM,WAAW,CAAC;AACnB,OAAO,EAAE,+BAA+B,EAAE,MAAM,uBAAuB,CAAC;AAExE,MAAM,CAAC,MAAM,gBAAgB,GAAG,gBAAgB,CAAC;IAC/C,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACjC,8EAA8E;IAC9E,SAAS,EAAE,CAAC,CAAC,OAAO,EAAE;IACtB,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE;IACpB,MAAM,EAAE,CAAC,CAAC,OAAO,CAAC,CAAC,QAAQ,EAAE,UAAU,CAAC,CAAC;IACzC,kFAAkF;IAClF,YAAY,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CACpC,CAAC,CAAC;AAEH,oFAAoF;AACpF,MAAM,CAAC,M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,SAAS,CAAC,KAAK,CAAC,CAAC,OAAO,CAAC;AACvE,CAAC;AAED,MAAM,UAAU,mCAAmC,CACjD,KAAc;IAEd,OAAO,uCAAuC,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC,OAAO,CAAC;AAC1E,CAAC","sourcesContent":["import { z } from \"zod\";\nimport {\n arraySchema,\n loosePlainObject,\n nonEmptyStringSchema,\n nonNegativeIntegerSchema,\n sha256HexStringSchema,\n} from \"../schema\";\nimport { OrganizationBillingStatusSchema } from \"./organizationBilling\";\n\nexport const RootRosterSchema = loosePlainObject({\n disabledAt: z.string().nullable(),\n /** Whether the identity holds an open billable-seat assignment in the org. */\n holdsSeat: z.boolean(),\n joinedAt: z.string(),\n status: z.literal([\"active\", \"disabled\"]),\n /** When the member paused the org's sync to their devices; null while syncing. */\n syncPausedAt: z.string().nullable(),\n});\n\n/** Operator-facing view of one registered identity, from `GET /root/identities`. */\nexport const RootIdentitySummaryResponseSchema = loosePlainObject({\n createdAt: z.string(),\n defaultOrganizationId: nonEmptyStringSchema,\n isRoot: z.boolean(),\n lastActiveAt: z.string().nullable(),\n registrationSourceIpAddress: z.string().nullable(),\n signingKeyFingerprint: sha256HexStringSchema,\n /** When an operator suspended the account; null while in good standing. */\n suspendedAt: z.string().nullable(),\n userId: nonEmptyStringSchema,\n});\n\nexport type RootIdentitySummaryResponse = z.infer<\n typeof RootIdentitySummaryResponseSchema\n>;\n\nexport const RootIdentitiesResponseSchema = loosePlainObject({\n identities: arraySchema(RootIdentitySummaryResponseSchema),\n /** Opaque cursor for the next page; null when the listing is exhausted. */\n nextCursor: z.string().nullable(),\n});\n\nexport type RootIdentitiesResponse = z.infer<\n typeof RootIdentitiesResponseSchema\n>;\n\n/** A live session of the inspected identity; no session is the operator's. */\nexport const RootIdentitySessionResponseSchema = loosePlainObject({\n createdAt: z.string(),\n id: sha256HexStringSchema,\n ipAddresses: arraySchema(nonEmptyStringSchema),\n lastActiveAt: z.string(),\n lastActiveIp: nonEmptyStringSchema.nullable(),\n signingKeyFingerprint: z.string(),\n});\n\nexport type RootIdentitySessionResponse = z.infer<\n typeof RootIdentitySessionResponseSchema\n>;\n\nexport const RootIdentityDetailResponseSchema = loosePlainObject({\n identity: RootIdentitySummaryResponseSchema,\n sessions: arraySchema(RootIdentitySessionResponseSchema),\n});\n\nexport type RootIdentityDetailResponse = z.infer<\n typeof RootIdentityDetailResponseSchema\n>;\n\n/** The identity after a suspension was placed or lifted. */\nexport const RootIdentitySuspensionResponseSchema = loosePlainObject({\n identity: RootIdentitySummaryResponseSchema,\n});\n\nexport type RootIdentitySuspensionResponse = z.infer<\n typeof RootIdentitySuspensionResponseSchema\n>;\n\nexport const rootOrganizationBillingShape = {\n currentPeriodEndsAt: z.string().nullable(),\n disabledAt: z.string().nullable(),\n provider: z.string().nullable(),\n purgeAfter: z.string().nullable(),\n purgedAt: z.string().nullable(),\n seatCount: nonNegativeIntegerSchema,\n status: OrganizationBillingStatusSchema,\n trialEndsAt: z.string().nullable(),\n};\nexport const RootIdentityOrganizationBillingResponseSchema = loosePlainObject(\n rootOrganizationBillingShape,\n);\n\nexport type RootIdentityOrganizationBillingResponse = z.infer<\n typeof RootIdentityOrganizationBillingResponseSchema\n>;\n\nexport const RootIdentityOrganizationResponseSchema = loosePlainObject({\n /** Null only when the organization has no billing row, which is unexpected. */\n billing: RootIdentityOrganizationBillingResponseSchema.nullable(),\n createdAt: z.string(),\n isDefaultOrganization: z.boolean(),\n organizationId: nonEmptyStringSchema,\n roster: RootRosterSchema,\n});\n\nexport type RootIdentityOrganizationResponse = z.infer<\n typeof RootIdentityOrganizationResponseSchema\n>;\n\nexport const RootIdentityOrganizationsResponseSchema = loosePlainObject({\n organizations: arraySchema(RootIdentityOrganizationResponseSchema),\n});\n\nexport type RootIdentityOrganizationsResponse = z.infer<\n typeof RootIdentityOrganizationsResponseSchema\n>;\n\nexport function isRootIdentitiesResponse(\n value: unknown,\n): value is RootIdentitiesResponse {\n return RootIdentitiesResponseSchema.safeParse(value).success;\n}\n\nexport function isRootIdentityDetailResponse(\n value: unknown,\n): value is RootIdentityDetailResponse {\n return RootIdentityDetailResponseSchema.safeParse(value).success;\n}\n\nexport function isRootIdentitySuspensionResponse(\n value: unknown,\n): value is RootIdentitySuspensionResponse {\n return RootIdentitySuspensionResponseSchema.safeParse(value).success;\n}\n\nexport function isRootIdentityOrganizationsResponse(\n value: unknown,\n): value is RootIdentityOrganizationsResponse {\n return RootIdentityOrganizationsResponseSchema.safeParse(value).success;\n}\n"]}
|
|
@@ -3,9 +3,9 @@ import { z } from "zod";
|
|
|
3
3
|
* Every action the root audit trail records: one per `/root` operation, plus
|
|
4
4
|
* the API CLI's root grant and revoke.
|
|
5
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"];
|
|
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.identities.suspension.delete", "root.identities.suspension.put", "root.organizations.dataUsage.get", "root.organizations.get", "root.organizations.identities.list", "root.organizations.list", "root.reports.dataUsage.list", "root.reports.opsHealth.get"];
|
|
7
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">;
|
|
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.identities.suspension.delete" | "root.identities.suspension.put" | "root.organizations.dataUsage.get" | "root.organizations.get" | "root.organizations.identities.list" | "root.organizations.list" | "root.reports.dataUsage.list" | "root.reports.opsHealth.get">;
|
|
9
9
|
export type RootAuditAction = z.infer<typeof RootAuditActionSchema>;
|
|
10
10
|
/** One recorded operator action, from `GET /root/audit-events`. */
|
|
11
11
|
export declare const RootAuditEventResponseSchema: z.ZodType<{
|
|
@@ -12,6 +12,8 @@ export const ROOT_AUDIT_ACTIONS = [
|
|
|
12
12
|
"root.identities.get",
|
|
13
13
|
"root.identities.list",
|
|
14
14
|
"root.identities.organizations.list",
|
|
15
|
+
"root.identities.suspension.delete",
|
|
16
|
+
"root.identities.suspension.put",
|
|
15
17
|
"root.organizations.dataUsage.get",
|
|
16
18
|
"root.organizations.get",
|
|
17
19
|
"root.organizations.identities.list",
|
|
@@ -1 +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"]}
|
|
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,EAC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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.identities.suspension.delete\",\n \"root.identities.suspension.put\",\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"]}
|
|
@@ -353,6 +353,7 @@ export declare const RootOrganizationIdentityResponseSchema: z.ZodType<{
|
|
|
353
353
|
lastActiveAt: string | null;
|
|
354
354
|
registrationSourceIpAddress: string | null;
|
|
355
355
|
signingKeyFingerprint: string;
|
|
356
|
+
suspendedAt: string | null;
|
|
356
357
|
userId: string;
|
|
357
358
|
};
|
|
358
359
|
roster: {
|
|
@@ -370,6 +371,7 @@ export declare const RootOrganizationIdentityResponseSchema: z.ZodType<{
|
|
|
370
371
|
lastActiveAt: string | null;
|
|
371
372
|
registrationSourceIpAddress: string | null;
|
|
372
373
|
signingKeyFingerprint: string;
|
|
374
|
+
suspendedAt: string | null;
|
|
373
375
|
userId: string;
|
|
374
376
|
};
|
|
375
377
|
roster: {
|
|
@@ -387,6 +389,7 @@ export declare const RootOrganizationIdentityResponseSchema: z.ZodType<{
|
|
|
387
389
|
lastActiveAt: string | null;
|
|
388
390
|
registrationSourceIpAddress: string | null;
|
|
389
391
|
signingKeyFingerprint: string;
|
|
392
|
+
suspendedAt: string | null;
|
|
390
393
|
userId: string;
|
|
391
394
|
};
|
|
392
395
|
roster: {
|
|
@@ -404,6 +407,7 @@ export declare const RootOrganizationIdentityResponseSchema: z.ZodType<{
|
|
|
404
407
|
lastActiveAt: string | null;
|
|
405
408
|
registrationSourceIpAddress: string | null;
|
|
406
409
|
signingKeyFingerprint: string;
|
|
410
|
+
suspendedAt: string | null;
|
|
407
411
|
userId: string;
|
|
408
412
|
};
|
|
409
413
|
roster: {
|
|
@@ -424,6 +428,7 @@ export declare const RootOrganizationIdentitiesResponseSchema: z.ZodType<{
|
|
|
424
428
|
lastActiveAt: string | null;
|
|
425
429
|
registrationSourceIpAddress: string | null;
|
|
426
430
|
signingKeyFingerprint: string;
|
|
431
|
+
suspendedAt: string | null;
|
|
427
432
|
userId: string;
|
|
428
433
|
};
|
|
429
434
|
roster: {
|
|
@@ -444,6 +449,7 @@ export declare const RootOrganizationIdentitiesResponseSchema: z.ZodType<{
|
|
|
444
449
|
lastActiveAt: string | null;
|
|
445
450
|
registrationSourceIpAddress: string | null;
|
|
446
451
|
signingKeyFingerprint: string;
|
|
452
|
+
suspendedAt: string | null;
|
|
447
453
|
userId: string;
|
|
448
454
|
};
|
|
449
455
|
roster: {
|
|
@@ -464,6 +470,7 @@ export declare const RootOrganizationIdentitiesResponseSchema: z.ZodType<{
|
|
|
464
470
|
lastActiveAt: string | null;
|
|
465
471
|
registrationSourceIpAddress: string | null;
|
|
466
472
|
signingKeyFingerprint: string;
|
|
473
|
+
suspendedAt: string | null;
|
|
467
474
|
userId: string;
|
|
468
475
|
};
|
|
469
476
|
roster: {
|
|
@@ -484,6 +491,7 @@ export declare const RootOrganizationIdentitiesResponseSchema: z.ZodType<{
|
|
|
484
491
|
lastActiveAt: string | null;
|
|
485
492
|
registrationSourceIpAddress: string | null;
|
|
486
493
|
signingKeyFingerprint: string;
|
|
494
|
+
suspendedAt: string | null;
|
|
487
495
|
userId: string;
|
|
488
496
|
};
|
|
489
497
|
roster: {
|
package/package.json
CHANGED
|
@@ -3,3 +3,4 @@ export { listRootDataUsageReport, loadRootOrganizationDataUsage, type RootDataUs
|
|
|
3
3
|
export { listRootIdentities, listRootIdentityOrganizations, loadRootIdentity, type RootIdentitiesApi, type RootIdentitiesPage, type RootIdentitiesQueryInput, type RootIdentity, type RootIdentityDetail, type RootIdentityOrganization, type RootIdentitySession, type RootRequestOutcome, } from "./identities.js";
|
|
4
4
|
export { loadRootOpsHealthReport, type RootOpsHealthApi, type RootOpsHealthReport, } from "./opsHealth.js";
|
|
5
5
|
export { listRootOrganizationIdentities, listRootOrganizations, loadRootOrganization, type RootOrganization, type RootOrganizationDetail, type RootOrganizationIdentitiesPage, type RootOrganizationIdentity, type RootOrganizationPageQueryInput, type RootOrganizationsApi, type RootOrganizationsPage, type RootOrganizationsQueryInput, } from "./organizations.js";
|
|
6
|
+
export { liftRootIdentitySuspension, type RootSuspensionApi, suspendRootIdentity, } from "./suspension.js";
|
package/workflows/root/index.js
CHANGED
|
@@ -3,4 +3,5 @@ export { listRootDataUsageReport, loadRootOrganizationDataUsage, } from "./dataU
|
|
|
3
3
|
export { listRootIdentities, listRootIdentityOrganizations, loadRootIdentity, } from "./identities.js";
|
|
4
4
|
export { loadRootOpsHealthReport, } from "./opsHealth.js";
|
|
5
5
|
export { listRootOrganizationIdentities, listRootOrganizations, loadRootOrganization, } from "./organizations.js";
|
|
6
|
+
export { liftRootIdentitySuspension, suspendRootIdentity, } from "./suspension.js";
|
|
6
7
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,mBAAmB,GAKpB,MAAM,SAAS,CAAC;AACjB,OAAO,EACL,uBAAuB,EACvB,6BAA6B,GAG9B,MAAM,aAAa,CAAC;AACrB,OAAO,EACL,kBAAkB,EAClB,6BAA6B,EAC7B,gBAAgB,GASjB,MAAM,cAAc,CAAC;AACtB,OAAO,EACL,uBAAuB,GAGxB,MAAM,aAAa,CAAC;AACrB,OAAO,EACL,8BAA8B,EAC9B,qBAAqB,EACrB,oBAAoB,GASrB,MAAM,iBAAiB,CAAC","sourcesContent":["export {\n listRootAuditEvents,\n type RootAuditApi,\n type RootAuditEvent,\n type RootAuditEventsPage,\n type RootAuditEventsQueryInput,\n} from \"./audit\";\nexport {\n listRootDataUsageReport,\n loadRootOrganizationDataUsage,\n type RootDataUsageApi,\n type RootDataUsageReportPage,\n} from \"./dataUsage\";\nexport {\n listRootIdentities,\n listRootIdentityOrganizations,\n loadRootIdentity,\n type RootIdentitiesApi,\n type RootIdentitiesPage,\n type RootIdentitiesQueryInput,\n type RootIdentity,\n type RootIdentityDetail,\n type RootIdentityOrganization,\n type RootIdentitySession,\n type RootRequestOutcome,\n} from \"./identities\";\nexport {\n loadRootOpsHealthReport,\n type RootOpsHealthApi,\n type RootOpsHealthReport,\n} from \"./opsHealth\";\nexport {\n listRootOrganizationIdentities,\n listRootOrganizations,\n loadRootOrganization,\n type RootOrganization,\n type RootOrganizationDetail,\n type RootOrganizationIdentitiesPage,\n type RootOrganizationIdentity,\n type RootOrganizationPageQueryInput,\n type RootOrganizationsApi,\n type RootOrganizationsPage,\n type RootOrganizationsQueryInput,\n} from \"./organizations\";\n"]}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,mBAAmB,GAKpB,MAAM,SAAS,CAAC;AACjB,OAAO,EACL,uBAAuB,EACvB,6BAA6B,GAG9B,MAAM,aAAa,CAAC;AACrB,OAAO,EACL,kBAAkB,EAClB,6BAA6B,EAC7B,gBAAgB,GASjB,MAAM,cAAc,CAAC;AACtB,OAAO,EACL,uBAAuB,GAGxB,MAAM,aAAa,CAAC;AACrB,OAAO,EACL,8BAA8B,EAC9B,qBAAqB,EACrB,oBAAoB,GASrB,MAAM,iBAAiB,CAAC;AACzB,OAAO,EACL,0BAA0B,EAE1B,mBAAmB,GACpB,MAAM,cAAc,CAAC","sourcesContent":["export {\n listRootAuditEvents,\n type RootAuditApi,\n type RootAuditEvent,\n type RootAuditEventsPage,\n type RootAuditEventsQueryInput,\n} from \"./audit\";\nexport {\n listRootDataUsageReport,\n loadRootOrganizationDataUsage,\n type RootDataUsageApi,\n type RootDataUsageReportPage,\n} from \"./dataUsage\";\nexport {\n listRootIdentities,\n listRootIdentityOrganizations,\n loadRootIdentity,\n type RootIdentitiesApi,\n type RootIdentitiesPage,\n type RootIdentitiesQueryInput,\n type RootIdentity,\n type RootIdentityDetail,\n type RootIdentityOrganization,\n type RootIdentitySession,\n type RootRequestOutcome,\n} from \"./identities\";\nexport {\n loadRootOpsHealthReport,\n type RootOpsHealthApi,\n type RootOpsHealthReport,\n} from \"./opsHealth\";\nexport {\n listRootOrganizationIdentities,\n listRootOrganizations,\n loadRootOrganization,\n type RootOrganization,\n type RootOrganizationDetail,\n type RootOrganizationIdentitiesPage,\n type RootOrganizationIdentity,\n type RootOrganizationPageQueryInput,\n type RootOrganizationsApi,\n type RootOrganizationsPage,\n type RootOrganizationsQueryInput,\n} from \"./organizations\";\nexport {\n liftRootIdentitySuspension,\n type RootSuspensionApi,\n suspendRootIdentity,\n} from \"./suspension\";\n"]}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { RequestResult } from "../../internal/api-client/index.js";
|
|
2
|
+
import type { RootIdentitySuspensionResponse } from "../../internal/validators/response/index.js";
|
|
3
|
+
import { type RootIdentity, type RootRequestOutcome } from "./identities.js";
|
|
4
|
+
export interface RootSuspensionApi {
|
|
5
|
+
liftRootIdentitySuspensionResult(userId: string): Promise<RequestResult<RootIdentitySuspensionResponse>>;
|
|
6
|
+
suspendRootIdentityResult(userId: string): Promise<RequestResult<RootIdentitySuspensionResponse>>;
|
|
7
|
+
}
|
|
8
|
+
/**
|
|
9
|
+
* Signs the identity out of every device and refuses its sign-in until the
|
|
10
|
+
* suspension is lifted. Root identities are refused with status 409.
|
|
11
|
+
*/
|
|
12
|
+
export declare function suspendRootIdentity(api: RootSuspensionApi, userId: string): Promise<RootRequestOutcome<RootIdentity>>;
|
|
13
|
+
export declare function liftRootIdentitySuspension(api: RootSuspensionApi, userId: string): Promise<RootRequestOutcome<RootIdentity>>;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { toOutcome, } from "./identities.js";
|
|
2
|
+
function identityOutcome(result) {
|
|
3
|
+
return result.ok
|
|
4
|
+
? { data: result.data.identity, ok: true }
|
|
5
|
+
: toOutcome(result);
|
|
6
|
+
}
|
|
7
|
+
/**
|
|
8
|
+
* Signs the identity out of every device and refuses its sign-in until the
|
|
9
|
+
* suspension is lifted. Root identities are refused with status 409.
|
|
10
|
+
*/
|
|
11
|
+
export async function suspendRootIdentity(api, userId) {
|
|
12
|
+
return identityOutcome(await api.suspendRootIdentityResult(userId));
|
|
13
|
+
}
|
|
14
|
+
export async function liftRootIdentitySuspension(api, userId) {
|
|
15
|
+
return identityOutcome(await api.liftRootIdentitySuspensionResult(userId));
|
|
16
|
+
}
|
|
17
|
+
//# sourceMappingURL=suspension.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"suspension.js","sourceRoot":"","sources":["suspension.ts"],"names":[],"mappings":"AAEA,OAAO,EAGL,SAAS,GACV,MAAM,cAAc,CAAC;AAWtB,SAAS,eAAe,CACtB,MAAqD;IAErD,OAAO,MAAM,CAAC,EAAE;QACd,CAAC,CAAC,EAAE,IAAI,EAAE,MAAM,CAAC,IAAI,CAAC,QAAQ,EAAE,EAAE,EAAE,IAAI,EAAE;QAC1C,CAAC,CAAC,SAAS,CAAC,MAAM,CAAC,CAAC;AACxB,CAAC;AAED;;;GAGG;AACH,MAAM,CAAC,KAAK,UAAU,mBAAmB,CACvC,GAAsB,EACtB,MAAc;IAEd,OAAO,eAAe,CAAC,MAAM,GAAG,CAAC,yBAAyB,CAAC,MAAM,CAAC,CAAC,CAAC;AACtE,CAAC;AAED,MAAM,CAAC,KAAK,UAAU,0BAA0B,CAC9C,GAAsB,EACtB,MAAc;IAEd,OAAO,eAAe,CAAC,MAAM,GAAG,CAAC,gCAAgC,CAAC,MAAM,CAAC,CAAC,CAAC;AAC7E,CAAC","sourcesContent":["import type { RequestResult } from \"@tearleads/api-client\";\nimport type { RootIdentitySuspensionResponse } from \"@tearleads/validators/response\";\nimport {\n type RootIdentity,\n type RootRequestOutcome,\n toOutcome,\n} from \"./identities\";\n\nexport interface RootSuspensionApi {\n liftRootIdentitySuspensionResult(\n userId: string,\n ): Promise<RequestResult<RootIdentitySuspensionResponse>>;\n suspendRootIdentityResult(\n userId: string,\n ): Promise<RequestResult<RootIdentitySuspensionResponse>>;\n}\n\nfunction identityOutcome(\n result: RequestResult<RootIdentitySuspensionResponse>,\n): RootRequestOutcome<RootIdentity> {\n return result.ok\n ? { data: result.data.identity, ok: true }\n : toOutcome(result);\n}\n\n/**\n * Signs the identity out of every device and refuses its sign-in until the\n * suspension is lifted. Root identities are refused with status 409.\n */\nexport async function suspendRootIdentity(\n api: RootSuspensionApi,\n userId: string,\n): Promise<RootRequestOutcome<RootIdentity>> {\n return identityOutcome(await api.suspendRootIdentityResult(userId));\n}\n\nexport async function liftRootIdentitySuspension(\n api: RootSuspensionApi,\n userId: string,\n): Promise<RootRequestOutcome<RootIdentity>> {\n return identityOutcome(await api.liftRootIdentitySuspensionResult(userId));\n}\n"]}
|