@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.
Files changed (40) hide show
  1. package/client/root/index.d.ts +6 -2
  2. package/client/root/index.js +3 -1
  3. package/client/root/index.js.map +1 -1
  4. package/index.d.ts +1 -1
  5. package/index.js +1 -1
  6. package/index.js.map +1 -1
  7. package/internal/api-client/ApiClient.d.ts +4 -2
  8. package/internal/api-client/ApiClient.js +7 -1
  9. package/internal/api-client/ApiClient.js.map +1 -1
  10. package/internal/validators/operation/index.d.ts +2 -0
  11. package/internal/validators/operation/index.js +2 -0
  12. package/internal/validators/operation/index.js.map +1 -1
  13. package/internal/validators/operation/registry.d.ts +4 -0
  14. package/internal/validators/operation/registry.js +4 -0
  15. package/internal/validators/operation/registry.js.map +1 -1
  16. package/internal/validators/operation/rootAudit.d.ts +189 -0
  17. package/internal/validators/operation/rootAudit.js +28 -0
  18. package/internal/validators/operation/rootAudit.js.map +1 -0
  19. package/internal/validators/operation/rootOpsHealth.d.ts +287 -0
  20. package/internal/validators/operation/rootOpsHealth.js +18 -0
  21. package/internal/validators/operation/rootOpsHealth.js.map +1 -0
  22. package/internal/validators/response/index.d.ts +2 -0
  23. package/internal/validators/response/index.js +2 -0
  24. package/internal/validators/response/index.js.map +1 -1
  25. package/internal/validators/response/rootAudit.d.ts +106 -0
  26. package/internal/validators/response/rootAudit.js +53 -0
  27. package/internal/validators/response/rootAudit.js.map +1 -0
  28. package/internal/validators/response/rootOpsHealth.d.ts +224 -0
  29. package/internal/validators/response/rootOpsHealth.js +79 -0
  30. package/internal/validators/response/rootOpsHealth.js.map +1 -0
  31. package/package.json +1 -1
  32. package/workflows/root/audit.d.ts +21 -0
  33. package/workflows/root/audit.js +5 -0
  34. package/workflows/root/audit.js.map +1 -0
  35. package/workflows/root/index.d.ts +2 -0
  36. package/workflows/root/index.js +2 -0
  37. package/workflows/root/index.js.map +1 -1
  38. package/workflows/root/opsHealth.d.ts +9 -0
  39. package/workflows/root/opsHealth.js +5 -0
  40. package/workflows/root/opsHealth.js.map +1 -0
@@ -19,6 +19,8 @@ import { createOrganizationGroupOperation, createOrganizationOperation, deleteOr
19
19
  import { commitOrganizationGroupPolicyOperation, getPrincipalPolicyOperation, putPrincipalPolicyOperation } from "./principals.js";
20
20
  import { getProjectionPolicyHistoryOperation } from "./projectionPolicyHistory.js";
21
21
  import { getRootIdentityOperation, listRootIdentitiesOperation, listRootIdentityOrganizationsOperation } from "./root.js";
22
+ import { listRootAuditEventsOperation } from "./rootAudit.js";
23
+ import { getRootOpsHealthReportOperation } from "./rootOpsHealth.js";
22
24
  import { getRootOrganizationDataUsageOperation, getRootOrganizationOperation, listRootDataUsageReportOperation, listRootOrganizationIdentitiesOperation, listRootOrganizationsOperation } from "./rootOrganizations.js";
23
25
  import { cancelStripeSubscriptionOperation, createStripeCheckoutOperation, createStripeCheckoutSessionOperation, createStripePortalOperation, getStripeCheckoutOptionsOperation } from "./stripeCheckout.js";
24
26
  import { getContainerWriterProjectionOperation, getDocumentWriterProjectionOperation } from "./writerProjections.js";
@@ -100,5 +102,7 @@ export declare const protocolOperations: readonly [
100
102
  typeof listRootOrganizationIdentitiesOperation,
101
103
  typeof getRootIdentityOperation,
102
104
  typeof listRootIdentityOrganizationsOperation,
105
+ typeof listRootAuditEventsOperation,
106
+ typeof getRootOpsHealthReportOperation,
103
107
  typeof documentSyncOperation
104
108
  ];
@@ -19,6 +19,8 @@ import { createOrganizationGroupOperation, createOrganizationOperation, deleteOr
19
19
  import { commitOrganizationGroupPolicyOperation, getPrincipalPolicyOperation, putPrincipalPolicyOperation, } from "./principals.js";
20
20
  import { getProjectionPolicyHistoryOperation } from "./projectionPolicyHistory.js";
21
21
  import { getRootIdentityOperation, listRootIdentitiesOperation, listRootIdentityOrganizationsOperation, } from "./root.js";
22
+ import { listRootAuditEventsOperation } from "./rootAudit.js";
23
+ import { getRootOpsHealthReportOperation } from "./rootOpsHealth.js";
22
24
  import { getRootOrganizationDataUsageOperation, getRootOrganizationOperation, listRootDataUsageReportOperation, listRootOrganizationIdentitiesOperation, listRootOrganizationsOperation, } from "./rootOrganizations.js";
23
25
  import { cancelStripeSubscriptionOperation, createStripeCheckoutOperation, createStripeCheckoutSessionOperation, createStripePortalOperation, getStripeCheckoutOptionsOperation, } from "./stripeCheckout.js";
24
26
  import { getContainerWriterProjectionOperation, getDocumentWriterProjectionOperation, } from "./writerProjections.js";
@@ -102,6 +104,8 @@ export const protocolOperations = [
102
104
  listRootOrganizationIdentitiesOperation,
103
105
  getRootIdentityOperation,
104
106
  listRootIdentityOrganizationsOperation,
107
+ listRootAuditEventsOperation,
108
+ getRootOpsHealthReportOperation,
105
109
  documentSyncOperation,
106
110
  ];
107
111
  //# sourceMappingURL=registry.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"registry.js","sourceRoot":"","sources":["registry.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,2BAA2B,EAC3B,6BAA6B,EAC7B,gCAAgC,GACjC,MAAM,eAAe,CAAC;AACvB,OAAO,EACL,kBAAkB,EAClB,uBAAuB,EACvB,qBAAqB,EACrB,eAAe,EACf,iBAAiB,EACjB,qBAAqB,EACrB,eAAe,EACf,wBAAwB,GACzB,MAAM,QAAQ,CAAC;AAChB,OAAO,EACL,iCAAiC,EACjC,6BAA6B,GAC9B,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EACL,qBAAqB,EACrB,qCAAqC,GACtC,MAAM,aAAa,CAAC;AACrB,OAAO,EAAE,wBAAwB,EAAE,MAAM,iBAAiB,CAAC;AAC3D,OAAO,EACL,wBAAwB,EACxB,4CAA4C,EAC5C,wBAAwB,EACxB,sBAAsB,EACtB,wBAAwB,EACxB,uBAAuB,EACvB,wBAAwB,EACxB,uBAAuB,GACxB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EACL,2BAA2B,EAC3B,mCAAmC,EACnC,iCAAiC,GAClC,MAAM,kBAAkB,CAAC;AA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ACtC,2BAA2B;IAC3B,2BAA2B;IAC3B,8BAA8B;IAC9B,qCAAqC;IACrC,gCAAgC;IAChC,4BAA4B;IAC5B,uCAAuC;IACvC,wBAAwB;IACxB,sCAAsC;IACtC,qBAAqB;CACtB,CAAC","sourcesContent":["import {\n bindBlobAttachmentOperation,\n detachBlobAttachmentOperation,\n listDocumentAttachmentsOperation,\n} from \"./attachments\";\nimport {\n challengeOperation,\n destroySessionOperation,\n listSessionsOperation,\n logoutOperation,\n registerOperation,\n userIdentityOperation,\n verifyOperation,\n webSocketTicketOperation,\n} from \"./auth\";\nimport {\n receiveRevenueCatWebhookOperation,\n receiveStripeWebhookOperation,\n} from \"./billingWebhooks\";\nimport {\n getBlobBytesOperation,\n uploadMultipartBlobPartBytesOperation,\n} from \"./blobBytes\";\nimport { getBlobDownloadOperation } from \"./blobDownloads\";\nimport {\n createContainerOperation,\n createContainerWithMetadataDocumentOperation,\n deleteContainerOperation,\n moveContainerOperation,\n reciteContainerOperation,\n rekeyContainerOperation,\n revokeContainerOperation,\n shareContainerOperation,\n} from \"./containerMutations\";\nimport {\n getContainerKekLogOperation,\n listContainerDocumentLanesOperation,\n listContainerParentLanesOperation,\n} from \"./containerReads\";\nimport { getContainerReplacementAuthorizationsOperation } from \"./containerReplacement\";\nimport {\n getDocumentAttributionOperation,\n listDocumentAttributionRangesOperation,\n} from \"./documentAttribution\";\nimport {\n createDocumentOperation,\n getDocumentPurgeProofOperation,\n linkDocumentOperation,\n purgeDocumentOperation,\n unlinkDocumentOperation,\n} from \"./documentMutations\";\nimport { documentSyncOperation } from \"./documentSync\";\nimport { getHealthOperation } from \"./health\";\nimport {\n getMultipartBlobStageOperation,\n initiateMultipartBlobStageOperation,\n} from \"./multipartBlobs\";\nimport { authorizeMultipartBlobPartUploadOperation } from \"./multipartPartUploads\";\nimport {\n claimNativeOrganizationSubscriptionOperation,\n getOrganizationBillingHistoryOperation,\n getOrganizationBillingManagementUrlOperation,\n getOrganizationBillingOperation,\n getOrganizationNativePurchaseEligibilityOperation,\n startOrganizationTrialOperation,\n} from \"./organizationBilling\";\nimport {\n listOrganizationMembershipsOperation,\n requestOrganizationLeaveOperation,\n updateOrganizationMembershipOperation,\n withdrawOrganizationLeaveRequestOperation,\n} from \"./organizationMemberships\";\nimport { getOrganizationPolicyHistoryOperation } from \"./organizationPolicyHistory\";\nimport {\n createOrganizationGroupOperation,\n createOrganizationOperation,\n deleteOrganizationGroupOperation,\n getOrganizationDataUsageOperation,\n getOrganizationReadModelOperation,\n listOrganizationGroupMembersOperation,\n updateOrganizationProfileOperation,\n updateOrganizationRosterEntryOperation,\n} from \"./organizations\";\nimport {\n commitOrganizationGroupPolicyOperation,\n getPrincipalPolicyOperation,\n putPrincipalPolicyOperation,\n} from \"./principals\";\nimport { getProjectionPolicyHistoryOperation } from \"./projectionPolicyHistory\";\nimport {\n getRootIdentityOperation,\n listRootIdentitiesOperation,\n listRootIdentityOrganizationsOperation,\n} from \"./root\";\nimport {\n getRootOrganizationDataUsageOperation,\n getRootOrganizationOperation,\n listRootDataUsageReportOperation,\n listRootOrganizationIdentitiesOperation,\n listRootOrganizationsOperation,\n} from \"./rootOrganizations\";\nimport {\n cancelStripeSubscriptionOperation,\n createStripeCheckoutOperation,\n createStripeCheckoutSessionOperation,\n createStripePortalOperation,\n getStripeCheckoutOptionsOperation,\n} from \"./stripeCheckout\";\nimport {\n getContainerWriterProjectionOperation,\n getDocumentWriterProjectionOperation,\n} from \"./writerProjections\";\n\n// Name each imported operation type instead of expanding every Zod schema in\n// the emitted declaration; the exact readonly tuple and runtime order stay intact.\nexport const protocolOperations: readonly [\n typeof getContainerReplacementAuthorizationsOperation,\n typeof getHealthOperation,\n typeof challengeOperation,\n typeof destroySessionOperation,\n typeof listSessionsOperation,\n typeof logoutOperation,\n typeof registerOperation,\n typeof userIdentityOperation,\n typeof verifyOperation,\n typeof webSocketTicketOperation,\n typeof getBlobBytesOperation,\n typeof getBlobDownloadOperation,\n typeof receiveRevenueCatWebhookOperation,\n typeof receiveStripeWebhookOperation,\n typeof bindBlobAttachmentOperation,\n typeof detachBlobAttachmentOperation,\n typeof initiateMultipartBlobStageOperation,\n typeof getMultipartBlobStageOperation,\n typeof authorizeMultipartBlobPartUploadOperation,\n typeof uploadMultipartBlobPartBytesOperation,\n typeof listDocumentAttachmentsOperation,\n typeof getDocumentAttributionOperation,\n typeof listDocumentAttributionRangesOperation,\n typeof createDocumentOperation,\n typeof getDocumentPurgeProofOperation,\n typeof linkDocumentOperation,\n typeof purgeDocumentOperation,\n typeof unlinkDocumentOperation,\n typeof getContainerKekLogOperation,\n typeof listContainerDocumentLanesOperation,\n typeof listContainerParentLanesOperation,\n typeof createContainerOperation,\n typeof createContainerWithMetadataDocumentOperation,\n typeof deleteContainerOperation,\n typeof moveContainerOperation,\n typeof reciteContainerOperation,\n typeof rekeyContainerOperation,\n typeof revokeContainerOperation,\n typeof shareContainerOperation,\n typeof getContainerWriterProjectionOperation,\n typeof getDocumentWriterProjectionOperation,\n typeof createOrganizationOperation,\n typeof getOrganizationBillingOperation,\n typeof getOrganizationBillingHistoryOperation,\n typeof getOrganizationBillingManagementUrlOperation,\n typeof getOrganizationNativePurchaseEligibilityOperation,\n typeof claimNativeOrganizationSubscriptionOperation,\n typeof startOrganizationTrialOperation,\n typeof getStripeCheckoutOptionsOperation,\n typeof createStripeCheckoutOperation,\n typeof createStripeCheckoutSessionOperation,\n typeof createStripePortalOperation,\n typeof cancelStripeSubscriptionOperation,\n typeof getOrganizationDataUsageOperation,\n typeof getOrganizationReadModelOperation,\n typeof getOrganizationPolicyHistoryOperation,\n typeof createOrganizationGroupOperation,\n typeof deleteOrganizationGroupOperation,\n typeof listOrganizationGroupMembersOperation,\n typeof updateOrganizationProfileOperation,\n typeof updateOrganizationRosterEntryOperation,\n typeof listOrganizationMembershipsOperation,\n typeof updateOrganizationMembershipOperation,\n typeof requestOrganizationLeaveOperation,\n typeof withdrawOrganizationLeaveRequestOperation,\n typeof getPrincipalPolicyOperation,\n typeof getProjectionPolicyHistoryOperation,\n typeof commitOrganizationGroupPolicyOperation,\n typeof putPrincipalPolicyOperation,\n typeof listRootIdentitiesOperation,\n typeof listRootOrganizationsOperation,\n typeof getRootOrganizationDataUsageOperation,\n typeof listRootDataUsageReportOperation,\n typeof getRootOrganizationOperation,\n typeof listRootOrganizationIdentitiesOperation,\n typeof getRootIdentityOperation,\n typeof listRootIdentityOrganizationsOperation,\n typeof documentSyncOperation,\n] = [\n getContainerReplacementAuthorizationsOperation,\n getHealthOperation,\n challengeOperation,\n destroySessionOperation,\n listSessionsOperation,\n logoutOperation,\n registerOperation,\n userIdentityOperation,\n verifyOperation,\n webSocketTicketOperation,\n getBlobBytesOperation,\n getBlobDownloadOperation,\n receiveRevenueCatWebhookOperation,\n receiveStripeWebhookOperation,\n bindBlobAttachmentOperation,\n detachBlobAttachmentOperation,\n initiateMultipartBlobStageOperation,\n getMultipartBlobStageOperation,\n authorizeMultipartBlobPartUploadOperation,\n uploadMultipartBlobPartBytesOperation,\n listDocumentAttachmentsOperation,\n getDocumentAttributionOperation,\n listDocumentAttributionRangesOperation,\n createDocumentOperation,\n getDocumentPurgeProofOperation,\n linkDocumentOperation,\n purgeDocumentOperation,\n unlinkDocumentOperation,\n getContainerKekLogOperation,\n listContainerDocumentLanesOperation,\n listContainerParentLanesOperation,\n createContainerOperation,\n createContainerWithMetadataDocumentOperation,\n deleteContainerOperation,\n moveContainerOperation,\n reciteContainerOperation,\n rekeyContainerOperation,\n revokeContainerOperation,\n shareContainerOperation,\n getContainerWriterProjectionOperation,\n getDocumentWriterProjectionOperation,\n createOrganizationOperation,\n getOrganizationBillingOperation,\n getOrganizationBillingHistoryOperation,\n getOrganizationBillingManagementUrlOperation,\n getOrganizationNativePurchaseEligibilityOperation,\n claimNativeOrganizationSubscriptionOperation,\n startOrganizationTrialOperation,\n getStripeCheckoutOptionsOperation,\n createStripeCheckoutOperation,\n createStripeCheckoutSessionOperation,\n createStripePortalOperation,\n cancelStripeSubscriptionOperation,\n getOrganizationDataUsageOperation,\n getOrganizationReadModelOperation,\n getOrganizationPolicyHistoryOperation,\n createOrganizationGroupOperation,\n deleteOrganizationGroupOperation,\n listOrganizationGroupMembersOperation,\n updateOrganizationProfileOperation,\n updateOrganizationRosterEntryOperation,\n listOrganizationMembershipsOperation,\n updateOrganizationMembershipOperation,\n requestOrganizationLeaveOperation,\n withdrawOrganizationLeaveRequestOperation,\n getPrincipalPolicyOperation,\n getProjectionPolicyHistoryOperation,\n commitOrganizationGroupPolicyOperation,\n putPrincipalPolicyOperation,\n listRootIdentitiesOperation,\n listRootOrganizationsOperation,\n getRootOrganizationDataUsageOperation,\n listRootDataUsageReportOperation,\n getRootOrganizationOperation,\n listRootOrganizationIdentitiesOperation,\n getRootIdentityOperation,\n listRootIdentityOrganizationsOperation,\n documentSyncOperation,\n];\n"]}
1
+ {"version":3,"file":"registry.js","sourceRoot":"","sources":["registry.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,2BAA2B,EAC3B,6BAA6B,EAC7B,gCAAgC,GACjC,MAAM,eAAe,CAAC;AACvB,OAAO,EACL,kBAAkB,EAClB,uBAAuB,EACvB,qBAAqB,EACrB,eAAe,EACf,iBAAiB,EACjB,qBAAqB,EACrB,eAAe,EACf,wBAAwB,GACzB,MAAM,QAAQ,CAAC;AAChB,OAAO,EACL,iCAAiC,EACjC,6BAA6B,GAC9B,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EACL,qBAAqB,EACrB,qCAAqC,GACtC,MAAM,aAAa,CAAC;AACrB,OAAO,EAAE,wBAAwB,EAAE,MAAM,iBAAiB,CAAC;AAC3D,OAAO,EACL,wBAAwB,EACxB,4CAA4C,EAC5C,wBAAwB,EACxB,sBAAsB,EACtB,wBAAwB,EACxB,uBAAuB,EACvB,wBAAwB,EACxB,uBAAuB,GACxB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EACL,2BAA2B,EAC3B,mCAAmC,EACnC,iCAAiC,GAClC,MAAM,kBAAkB,CA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CAAsC;IACtC,oCAAoC;IACpC,qCAAqC;IACrC,iCAAiC;IACjC,yCAAyC;IACzC,2BAA2B;IAC3B,mCAAmC;IACnC,sCAAsC;IACtC,2BAA2B;IAC3B,2BAA2B;IAC3B,8BAA8B;IAC9B,qCAAqC;IACrC,gCAAgC;IAChC,4BAA4B;IAC5B,uCAAuC;IACvC,wBAAwB;IACxB,sCAAsC;IACtC,4BAA4B;IAC5B,+BAA+B;IAC/B,qBAAqB;CACtB,CAAC","sourcesContent":["import {\n bindBlobAttachmentOperation,\n detachBlobAttachmentOperation,\n listDocumentAttachmentsOperation,\n} from \"./attachments\";\nimport {\n challengeOperation,\n destroySessionOperation,\n listSessionsOperation,\n logoutOperation,\n registerOperation,\n userIdentityOperation,\n verifyOperation,\n webSocketTicketOperation,\n} from \"./auth\";\nimport {\n receiveRevenueCatWebhookOperation,\n receiveStripeWebhookOperation,\n} from \"./billingWebhooks\";\nimport {\n getBlobBytesOperation,\n uploadMultipartBlobPartBytesOperation,\n} from \"./blobBytes\";\nimport { getBlobDownloadOperation } from \"./blobDownloads\";\nimport {\n createContainerOperation,\n createContainerWithMetadataDocumentOperation,\n deleteContainerOperation,\n moveContainerOperation,\n reciteContainerOperation,\n rekeyContainerOperation,\n revokeContainerOperation,\n shareContainerOperation,\n} from \"./containerMutations\";\nimport {\n getContainerKekLogOperation,\n listContainerDocumentLanesOperation,\n listContainerParentLanesOperation,\n} from \"./containerReads\";\nimport { getContainerReplacementAuthorizationsOperation } from \"./containerReplacement\";\nimport {\n getDocumentAttributionOperation,\n listDocumentAttributionRangesOperation,\n} from \"./documentAttribution\";\nimport {\n createDocumentOperation,\n getDocumentPurgeProofOperation,\n linkDocumentOperation,\n purgeDocumentOperation,\n unlinkDocumentOperation,\n} from \"./documentMutations\";\nimport { documentSyncOperation } from \"./documentSync\";\nimport { getHealthOperation } from \"./health\";\nimport {\n getMultipartBlobStageOperation,\n initiateMultipartBlobStageOperation,\n} from \"./multipartBlobs\";\nimport { authorizeMultipartBlobPartUploadOperation } from \"./multipartPartUploads\";\nimport {\n claimNativeOrganizationSubscriptionOperation,\n getOrganizationBillingHistoryOperation,\n getOrganizationBillingManagementUrlOperation,\n getOrganizationBillingOperation,\n getOrganizationNativePurchaseEligibilityOperation,\n startOrganizationTrialOperation,\n} from \"./organizationBilling\";\nimport {\n listOrganizationMembershipsOperation,\n requestOrganizationLeaveOperation,\n updateOrganizationMembershipOperation,\n withdrawOrganizationLeaveRequestOperation,\n} from \"./organizationMemberships\";\nimport { getOrganizationPolicyHistoryOperation } from \"./organizationPolicyHistory\";\nimport {\n createOrganizationGroupOperation,\n createOrganizationOperation,\n deleteOrganizationGroupOperation,\n getOrganizationDataUsageOperation,\n getOrganizationReadModelOperation,\n listOrganizationGroupMembersOperation,\n updateOrganizationProfileOperation,\n updateOrganizationRosterEntryOperation,\n} from \"./organizations\";\nimport {\n commitOrganizationGroupPolicyOperation,\n getPrincipalPolicyOperation,\n putPrincipalPolicyOperation,\n} from \"./principals\";\nimport { getProjectionPolicyHistoryOperation } from \"./projectionPolicyHistory\";\nimport {\n getRootIdentityOperation,\n listRootIdentitiesOperation,\n listRootIdentityOrganizationsOperation,\n} from \"./root\";\nimport { listRootAuditEventsOperation } from \"./rootAudit\";\nimport { getRootOpsHealthReportOperation } from \"./rootOpsHealth\";\nimport {\n getRootOrganizationDataUsageOperation,\n getRootOrganizationOperation,\n listRootDataUsageReportOperation,\n listRootOrganizationIdentitiesOperation,\n listRootOrganizationsOperation,\n} from \"./rootOrganizations\";\nimport {\n cancelStripeSubscriptionOperation,\n createStripeCheckoutOperation,\n createStripeCheckoutSessionOperation,\n createStripePortalOperation,\n getStripeCheckoutOptionsOperation,\n} from \"./stripeCheckout\";\nimport {\n getContainerWriterProjectionOperation,\n getDocumentWriterProjectionOperation,\n} from \"./writerProjections\";\n\n// Name each imported operation type instead of expanding every Zod schema in\n// the emitted declaration; the exact readonly tuple and runtime order stay intact.\nexport const protocolOperations: readonly [\n typeof getContainerReplacementAuthorizationsOperation,\n typeof getHealthOperation,\n typeof challengeOperation,\n typeof destroySessionOperation,\n typeof listSessionsOperation,\n typeof logoutOperation,\n typeof registerOperation,\n typeof userIdentityOperation,\n typeof verifyOperation,\n typeof webSocketTicketOperation,\n typeof getBlobBytesOperation,\n typeof getBlobDownloadOperation,\n typeof receiveRevenueCatWebhookOperation,\n typeof receiveStripeWebhookOperation,\n typeof bindBlobAttachmentOperation,\n typeof detachBlobAttachmentOperation,\n typeof initiateMultipartBlobStageOperation,\n typeof getMultipartBlobStageOperation,\n typeof authorizeMultipartBlobPartUploadOperation,\n typeof uploadMultipartBlobPartBytesOperation,\n typeof listDocumentAttachmentsOperation,\n typeof getDocumentAttributionOperation,\n typeof listDocumentAttributionRangesOperation,\n typeof createDocumentOperation,\n typeof getDocumentPurgeProofOperation,\n typeof linkDocumentOperation,\n typeof purgeDocumentOperation,\n typeof unlinkDocumentOperation,\n typeof getContainerKekLogOperation,\n typeof listContainerDocumentLanesOperation,\n typeof listContainerParentLanesOperation,\n typeof createContainerOperation,\n typeof createContainerWithMetadataDocumentOperation,\n typeof deleteContainerOperation,\n typeof moveContainerOperation,\n typeof reciteContainerOperation,\n typeof rekeyContainerOperation,\n typeof revokeContainerOperation,\n typeof shareContainerOperation,\n typeof getContainerWriterProjectionOperation,\n typeof getDocumentWriterProjectionOperation,\n typeof createOrganizationOperation,\n typeof getOrganizationBillingOperation,\n typeof getOrganizationBillingHistoryOperation,\n typeof getOrganizationBillingManagementUrlOperation,\n typeof getOrganizationNativePurchaseEligibilityOperation,\n typeof claimNativeOrganizationSubscriptionOperation,\n typeof startOrganizationTrialOperation,\n typeof getStripeCheckoutOptionsOperation,\n typeof createStripeCheckoutOperation,\n typeof createStripeCheckoutSessionOperation,\n typeof createStripePortalOperation,\n typeof cancelStripeSubscriptionOperation,\n typeof getOrganizationDataUsageOperation,\n typeof getOrganizationReadModelOperation,\n typeof getOrganizationPolicyHistoryOperation,\n typeof createOrganizationGroupOperation,\n typeof deleteOrganizationGroupOperation,\n typeof listOrganizationGroupMembersOperation,\n typeof updateOrganizationProfileOperation,\n typeof updateOrganizationRosterEntryOperation,\n typeof listOrganizationMembershipsOperation,\n typeof updateOrganizationMembershipOperation,\n typeof requestOrganizationLeaveOperation,\n typeof withdrawOrganizationLeaveRequestOperation,\n typeof getPrincipalPolicyOperation,\n typeof getProjectionPolicyHistoryOperation,\n typeof commitOrganizationGroupPolicyOperation,\n typeof putPrincipalPolicyOperation,\n typeof listRootIdentitiesOperation,\n typeof listRootOrganizationsOperation,\n typeof getRootOrganizationDataUsageOperation,\n typeof listRootDataUsageReportOperation,\n typeof getRootOrganizationOperation,\n typeof listRootOrganizationIdentitiesOperation,\n typeof getRootIdentityOperation,\n typeof listRootIdentityOrganizationsOperation,\n typeof listRootAuditEventsOperation,\n typeof getRootOpsHealthReportOperation,\n typeof documentSyncOperation,\n] = [\n getContainerReplacementAuthorizationsOperation,\n getHealthOperation,\n challengeOperation,\n destroySessionOperation,\n listSessionsOperation,\n logoutOperation,\n registerOperation,\n userIdentityOperation,\n verifyOperation,\n webSocketTicketOperation,\n getBlobBytesOperation,\n getBlobDownloadOperation,\n receiveRevenueCatWebhookOperation,\n receiveStripeWebhookOperation,\n bindBlobAttachmentOperation,\n detachBlobAttachmentOperation,\n initiateMultipartBlobStageOperation,\n getMultipartBlobStageOperation,\n authorizeMultipartBlobPartUploadOperation,\n uploadMultipartBlobPartBytesOperation,\n listDocumentAttachmentsOperation,\n getDocumentAttributionOperation,\n listDocumentAttributionRangesOperation,\n createDocumentOperation,\n getDocumentPurgeProofOperation,\n linkDocumentOperation,\n purgeDocumentOperation,\n unlinkDocumentOperation,\n getContainerKekLogOperation,\n listContainerDocumentLanesOperation,\n listContainerParentLanesOperation,\n createContainerOperation,\n createContainerWithMetadataDocumentOperation,\n deleteContainerOperation,\n moveContainerOperation,\n reciteContainerOperation,\n rekeyContainerOperation,\n revokeContainerOperation,\n shareContainerOperation,\n getContainerWriterProjectionOperation,\n getDocumentWriterProjectionOperation,\n createOrganizationOperation,\n getOrganizationBillingOperation,\n getOrganizationBillingHistoryOperation,\n getOrganizationBillingManagementUrlOperation,\n getOrganizationNativePurchaseEligibilityOperation,\n claimNativeOrganizationSubscriptionOperation,\n startOrganizationTrialOperation,\n getStripeCheckoutOptionsOperation,\n createStripeCheckoutOperation,\n createStripeCheckoutSessionOperation,\n createStripePortalOperation,\n cancelStripeSubscriptionOperation,\n getOrganizationDataUsageOperation,\n getOrganizationReadModelOperation,\n getOrganizationPolicyHistoryOperation,\n createOrganizationGroupOperation,\n deleteOrganizationGroupOperation,\n listOrganizationGroupMembersOperation,\n updateOrganizationProfileOperation,\n updateOrganizationRosterEntryOperation,\n listOrganizationMembershipsOperation,\n updateOrganizationMembershipOperation,\n requestOrganizationLeaveOperation,\n withdrawOrganizationLeaveRequestOperation,\n getPrincipalPolicyOperation,\n getProjectionPolicyHistoryOperation,\n commitOrganizationGroupPolicyOperation,\n putPrincipalPolicyOperation,\n listRootIdentitiesOperation,\n listRootOrganizationsOperation,\n getRootOrganizationDataUsageOperation,\n listRootDataUsageReportOperation,\n getRootOrganizationOperation,\n listRootOrganizationIdentitiesOperation,\n getRootIdentityOperation,\n listRootIdentityOrganizationsOperation,\n listRootAuditEventsOperation,\n getRootOpsHealthReportOperation,\n documentSyncOperation,\n];\n"]}
@@ -0,0 +1,189 @@
1
+ import { z } from "zod";
2
+ import { ErrorResponseSchema } from "../response/index.js";
3
+ declare const RootAuditEventsQuerySchema: z.ZodType<{
4
+ cursor?: string | undefined;
5
+ limit?: string | number | undefined;
6
+ subjectId?: string | undefined;
7
+ }, {
8
+ cursor?: string | undefined;
9
+ limit?: string | number | undefined;
10
+ subjectId?: string | undefined;
11
+ }, z.core.$ZodTypeInternals<{
12
+ cursor?: string | undefined;
13
+ limit?: string | number | undefined;
14
+ subjectId?: string | undefined;
15
+ }, {
16
+ cursor?: string | undefined;
17
+ limit?: string | number | undefined;
18
+ subjectId?: string | undefined;
19
+ }>>;
20
+ export type RootAuditEventsQuery = z.infer<typeof RootAuditEventsQuerySchema>;
21
+ export declare const listRootAuditEventsOperation: Omit<{
22
+ readonly auth: "session";
23
+ readonly failureResponses: {
24
+ readonly 400: z.ZodType<{
25
+ error: string;
26
+ }, {
27
+ error: string;
28
+ }, z.core.$ZodTypeInternals<{
29
+ error: string;
30
+ }, {
31
+ error: string;
32
+ }>>;
33
+ readonly 401: z.ZodType<{
34
+ error: string;
35
+ code?: "session_refresh_required" | undefined;
36
+ }, {
37
+ error: string;
38
+ code?: "session_refresh_required" | undefined;
39
+ }, z.core.$ZodTypeInternals<{
40
+ error: string;
41
+ code?: "session_refresh_required" | undefined;
42
+ }, {
43
+ error: string;
44
+ code?: "session_refresh_required" | undefined;
45
+ }>>;
46
+ readonly 403: z.ZodType<{
47
+ error: string;
48
+ }, {
49
+ error: string;
50
+ }, z.core.$ZodTypeInternals<{
51
+ error: string;
52
+ }, {
53
+ error: string;
54
+ }>>;
55
+ readonly 500: z.ZodType<{
56
+ error: string;
57
+ }, {
58
+ error: string;
59
+ }, z.core.$ZodTypeInternals<{
60
+ error: string;
61
+ }, {
62
+ error: string;
63
+ }>>;
64
+ };
65
+ readonly failureStatuses: readonly [400, 401, 403, 500];
66
+ readonly id: "root.auditEvents.list";
67
+ readonly method: "GET";
68
+ readonly params: z.ZodObject<{}, z.core.$strict>;
69
+ readonly path: "/root/audit-events";
70
+ readonly query: z.ZodType<{
71
+ cursor?: string | undefined;
72
+ limit?: string | number | undefined;
73
+ subjectId?: string | undefined;
74
+ }, {
75
+ cursor?: string | undefined;
76
+ limit?: string | number | undefined;
77
+ subjectId?: string | undefined;
78
+ }, z.core.$ZodTypeInternals<{
79
+ cursor?: string | undefined;
80
+ limit?: string | number | undefined;
81
+ subjectId?: string | undefined;
82
+ }, {
83
+ cursor?: string | undefined;
84
+ limit?: string | number | undefined;
85
+ subjectId?: string | undefined;
86
+ }>>;
87
+ readonly responses: {
88
+ readonly 200: z.ZodType<{
89
+ events: {
90
+ action: string;
91
+ actorSigningKeyFingerprint: string | null;
92
+ actorUserId: string | null;
93
+ filter: string | null;
94
+ id: string;
95
+ occurredAt: string;
96
+ sourceIpAddress: string | null;
97
+ targetOrganizationId: string | null;
98
+ targetUserId: string | null;
99
+ }[];
100
+ nextCursor: string | null;
101
+ }, {
102
+ events: {
103
+ action: string;
104
+ actorSigningKeyFingerprint: string | null;
105
+ actorUserId: string | null;
106
+ filter: string | null;
107
+ id: string;
108
+ occurredAt: string;
109
+ sourceIpAddress: string | null;
110
+ targetOrganizationId: string | null;
111
+ targetUserId: string | null;
112
+ }[];
113
+ nextCursor: string | null;
114
+ }, z.core.$ZodTypeInternals<{
115
+ events: {
116
+ action: string;
117
+ actorSigningKeyFingerprint: string | null;
118
+ actorUserId: string | null;
119
+ filter: string | null;
120
+ id: string;
121
+ occurredAt: string;
122
+ sourceIpAddress: string | null;
123
+ targetOrganizationId: string | null;
124
+ targetUserId: string | null;
125
+ }[];
126
+ nextCursor: string | null;
127
+ }, {
128
+ events: {
129
+ action: string;
130
+ actorSigningKeyFingerprint: string | null;
131
+ actorUserId: string | null;
132
+ filter: string | null;
133
+ id: string;
134
+ occurredAt: string;
135
+ sourceIpAddress: string | null;
136
+ targetOrganizationId: string | null;
137
+ targetUserId: string | null;
138
+ }[];
139
+ nextCursor: string | null;
140
+ }>>;
141
+ };
142
+ }, "failureResponses" | "failureStatuses"> & {
143
+ readonly failureResponses: {
144
+ readonly 400: z.ZodType<{
145
+ error: string;
146
+ }, {
147
+ error: string;
148
+ }, z.core.$ZodTypeInternals<{
149
+ error: string;
150
+ }, {
151
+ error: string;
152
+ }>>;
153
+ readonly 401: z.ZodType<{
154
+ error: string;
155
+ code?: "session_refresh_required" | undefined;
156
+ }, {
157
+ error: string;
158
+ code?: "session_refresh_required" | undefined;
159
+ }, z.core.$ZodTypeInternals<{
160
+ error: string;
161
+ code?: "session_refresh_required" | undefined;
162
+ }, {
163
+ error: string;
164
+ code?: "session_refresh_required" | undefined;
165
+ }>>;
166
+ readonly 403: z.ZodType<{
167
+ error: string;
168
+ }, {
169
+ error: string;
170
+ }, z.core.$ZodTypeInternals<{
171
+ error: string;
172
+ }, {
173
+ error: string;
174
+ }>>;
175
+ readonly 500: z.ZodType<{
176
+ error: string;
177
+ }, {
178
+ error: string;
179
+ }, z.core.$ZodTypeInternals<{
180
+ error: string;
181
+ }, {
182
+ error: string;
183
+ }>>;
184
+ } & {
185
+ readonly 503: typeof ErrorResponseSchema;
186
+ };
187
+ readonly failureStatuses: readonly [400, 401, 403, 500] | readonly [400, 401, 403, 500, 503];
188
+ };
189
+ export {};
@@ -0,0 +1,28 @@
1
+ import { z } from "zod";
2
+ import { ErrorResponseSchema, RootAuditEventsResponseSchema, SessionFailureResponseSchema, } from "../response/index.js";
3
+ import { loosePlainObject, uuidV4StringSchema } from "../schema.js";
4
+ import { defineJsonOperation } from "./definition.js";
5
+ import { rootIdentityPageLimitSchema } from "./root.js";
6
+ const RootAuditEventsQuerySchema = loosePlainObject({
7
+ cursor: z.string().min(1).optional(),
8
+ limit: rootIdentityPageLimitSchema().optional(),
9
+ /** Only events this identity or organization acted in or was the target of. */
10
+ subjectId: uuidV4StringSchema.optional(),
11
+ });
12
+ export const listRootAuditEventsOperation = defineJsonOperation({
13
+ auth: "session",
14
+ failureResponses: {
15
+ 400: ErrorResponseSchema,
16
+ 401: SessionFailureResponseSchema,
17
+ 403: ErrorResponseSchema,
18
+ 500: ErrorResponseSchema,
19
+ },
20
+ failureStatuses: [400, 401, 403, 500],
21
+ id: "root.auditEvents.list",
22
+ method: "GET",
23
+ params: z.strictObject({}),
24
+ path: "/root/audit-events",
25
+ query: RootAuditEventsQuerySchema,
26
+ responses: { 200: RootAuditEventsResponseSchema },
27
+ });
28
+ //# 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,EACL,mBAAmB,EACnB,6BAA6B,EAC7B,4BAA4B,GAC7B,MAAM,aAAa,CAAC;AACrB,OAAO,EAAE,gBAAgB,EAAE,kBAAkB,EAAE,MAAM,WAAW,CAAC;AACjE,OAAO,EAAE,mBAAmB,EAAE,MAAM,cAAc,CAAC;AACnD,OAAO,EAAE,2BAA2B,EAAE,MAAM,QAAQ,CAAC;AAErD,MAAM,0BAA0B,GAAG,gBAAgB,CAAC;IAClD,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,QAAQ,EAAE;IACpC,KAAK,EAAE,2BAA2B,EAAE,CAAC,QAAQ,EAAE;IAC/C,+EAA+E;IAC/E,SAAS,EAAE,kBAAkB,CAAC,QAAQ,EAAE;CACzC,CAAC,CAAC;AAGH,MAAM,CAAC,MAAM,4BAA4B,GAAG,mBAAmB,CAAC;IAC9D,IAAI,EAAE,SAAS;IACf,gBAAgB,EAAE;QAChB,GAAG,EAAE,mBAAmB;QACxB,GAAG,EAAE,4BAA4B;QACjC,GAAG,EAAE,mBAAmB;QACxB,GAAG,EAAE,mBAAmB;KACzB;IACD,eAAe,EAAE,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,CAAC;IACrC,EAAE,EAAE,uBAAuB;IAC3B,MAAM,EAAE,KAAK;IACb,MAAM,EAAE,CAAC,CAAC,YAAY,CAAC,EAAE,CAAC;IAC1B,IAAI,EAAE,oBAAoB;IAC1B,KAAK,EAAE,0BAA0B;IACjC,SAAS,EAAE,EAAE,GAAG,EAAE,6BAA6B,EAAE;CAClD,CAAC,CAAC","sourcesContent":["import { z } from \"zod\";\nimport {\n ErrorResponseSchema,\n RootAuditEventsResponseSchema,\n SessionFailureResponseSchema,\n} from \"../response\";\nimport { loosePlainObject, uuidV4StringSchema } from \"../schema\";\nimport { defineJsonOperation } from \"./definition\";\nimport { rootIdentityPageLimitSchema } from \"./root\";\n\nconst RootAuditEventsQuerySchema = loosePlainObject({\n cursor: z.string().min(1).optional(),\n limit: rootIdentityPageLimitSchema().optional(),\n /** Only events this identity or organization acted in or was the target of. */\n subjectId: uuidV4StringSchema.optional(),\n});\nexport type RootAuditEventsQuery = z.infer<typeof RootAuditEventsQuerySchema>;\n\nexport const listRootAuditEventsOperation = defineJsonOperation({\n auth: \"session\",\n failureResponses: {\n 400: ErrorResponseSchema,\n 401: SessionFailureResponseSchema,\n 403: ErrorResponseSchema,\n 500: ErrorResponseSchema,\n },\n failureStatuses: [400, 401, 403, 500],\n id: \"root.auditEvents.list\",\n method: \"GET\",\n params: z.strictObject({}),\n path: \"/root/audit-events\",\n query: RootAuditEventsQuerySchema,\n responses: { 200: RootAuditEventsResponseSchema },\n});\n"]}
@@ -0,0 +1,287 @@
1
+ import { z } from "zod";
2
+ import { ErrorResponseSchema } from "../response/index.js";
3
+ export declare const getRootOpsHealthReportOperation: Omit<{
4
+ readonly auth: "session";
5
+ readonly failureResponses: {
6
+ readonly 401: z.ZodType<{
7
+ error: string;
8
+ code?: "session_refresh_required" | undefined;
9
+ }, {
10
+ error: string;
11
+ code?: "session_refresh_required" | undefined;
12
+ }, z.core.$ZodTypeInternals<{
13
+ error: string;
14
+ code?: "session_refresh_required" | undefined;
15
+ }, {
16
+ error: string;
17
+ code?: "session_refresh_required" | undefined;
18
+ }>>;
19
+ readonly 403: z.ZodType<{
20
+ error: string;
21
+ }, {
22
+ error: string;
23
+ }, z.core.$ZodTypeInternals<{
24
+ error: string;
25
+ }, {
26
+ error: string;
27
+ }>>;
28
+ readonly 500: z.ZodType<{
29
+ error: string;
30
+ }, {
31
+ error: string;
32
+ }, z.core.$ZodTypeInternals<{
33
+ error: string;
34
+ }, {
35
+ error: string;
36
+ }>>;
37
+ };
38
+ readonly failureStatuses: readonly [401, 403, 500];
39
+ readonly id: "root.reports.opsHealth.get";
40
+ readonly method: "GET";
41
+ readonly params: z.ZodObject<{}, z.core.$strict>;
42
+ readonly path: "/root/reports/ops-health";
43
+ readonly responses: {
44
+ readonly 200: z.ZodType<{
45
+ generatedAt: string;
46
+ seatSync: {
47
+ rows: {
48
+ organizationId: string;
49
+ conditions: ("failing" | "stalled" | "leaseExpired")[];
50
+ attemptCount: number;
51
+ appliedRevision: number;
52
+ desiredRevision: number;
53
+ lastError: string | null;
54
+ lastSyncedAt: string | null;
55
+ leaseExpiresAt: string | null;
56
+ nextAttemptAt: string | null;
57
+ }[];
58
+ truncated: boolean;
59
+ };
60
+ trialExpiry: {
61
+ rows: {
62
+ organizationId: string;
63
+ trialEndsAt: string;
64
+ attemptCount: number;
65
+ lastError: string | null;
66
+ nextAttemptAt: string | null;
67
+ requiresAttention: boolean;
68
+ }[];
69
+ truncated: boolean;
70
+ };
71
+ purges: {
72
+ rows: {
73
+ organizationId: string;
74
+ status: "disabled" | "deleting";
75
+ purgeAfter: string | null;
76
+ purgeStartedAt: string | null;
77
+ }[];
78
+ truncated: boolean;
79
+ };
80
+ trialsEnding: {
81
+ rows: {
82
+ organizationId: string;
83
+ trialEndsAt: string;
84
+ }[];
85
+ truncated: boolean;
86
+ };
87
+ purgesDue: {
88
+ rows: {
89
+ organizationId: string;
90
+ disabledAt: string | null;
91
+ purgeAfter: string;
92
+ }[];
93
+ truncated: boolean;
94
+ };
95
+ }, {
96
+ generatedAt: string;
97
+ seatSync: {
98
+ rows: {
99
+ organizationId: string;
100
+ conditions: ("failing" | "stalled" | "leaseExpired")[];
101
+ attemptCount: number;
102
+ appliedRevision: number;
103
+ desiredRevision: number;
104
+ lastError: string | null;
105
+ lastSyncedAt: string | null;
106
+ leaseExpiresAt: string | null;
107
+ nextAttemptAt: string | null;
108
+ }[];
109
+ truncated: boolean;
110
+ };
111
+ trialExpiry: {
112
+ rows: {
113
+ organizationId: string;
114
+ trialEndsAt: string;
115
+ attemptCount: number;
116
+ lastError: string | null;
117
+ nextAttemptAt: string | null;
118
+ requiresAttention: boolean;
119
+ }[];
120
+ truncated: boolean;
121
+ };
122
+ purges: {
123
+ rows: {
124
+ organizationId: string;
125
+ status: "disabled" | "deleting";
126
+ purgeAfter: string | null;
127
+ purgeStartedAt: string | null;
128
+ }[];
129
+ truncated: boolean;
130
+ };
131
+ trialsEnding: {
132
+ rows: {
133
+ organizationId: string;
134
+ trialEndsAt: string;
135
+ }[];
136
+ truncated: boolean;
137
+ };
138
+ purgesDue: {
139
+ rows: {
140
+ organizationId: string;
141
+ disabledAt: string | null;
142
+ purgeAfter: string;
143
+ }[];
144
+ truncated: boolean;
145
+ };
146
+ }, z.core.$ZodTypeInternals<{
147
+ generatedAt: string;
148
+ seatSync: {
149
+ rows: {
150
+ organizationId: string;
151
+ conditions: ("failing" | "stalled" | "leaseExpired")[];
152
+ attemptCount: number;
153
+ appliedRevision: number;
154
+ desiredRevision: number;
155
+ lastError: string | null;
156
+ lastSyncedAt: string | null;
157
+ leaseExpiresAt: string | null;
158
+ nextAttemptAt: string | null;
159
+ }[];
160
+ truncated: boolean;
161
+ };
162
+ trialExpiry: {
163
+ rows: {
164
+ organizationId: string;
165
+ trialEndsAt: string;
166
+ attemptCount: number;
167
+ lastError: string | null;
168
+ nextAttemptAt: string | null;
169
+ requiresAttention: boolean;
170
+ }[];
171
+ truncated: boolean;
172
+ };
173
+ purges: {
174
+ rows: {
175
+ organizationId: string;
176
+ status: "disabled" | "deleting";
177
+ purgeAfter: string | null;
178
+ purgeStartedAt: string | null;
179
+ }[];
180
+ truncated: boolean;
181
+ };
182
+ trialsEnding: {
183
+ rows: {
184
+ organizationId: string;
185
+ trialEndsAt: string;
186
+ }[];
187
+ truncated: boolean;
188
+ };
189
+ purgesDue: {
190
+ rows: {
191
+ organizationId: string;
192
+ disabledAt: string | null;
193
+ purgeAfter: string;
194
+ }[];
195
+ truncated: boolean;
196
+ };
197
+ }, {
198
+ generatedAt: string;
199
+ seatSync: {
200
+ rows: {
201
+ organizationId: string;
202
+ conditions: ("failing" | "stalled" | "leaseExpired")[];
203
+ attemptCount: number;
204
+ appliedRevision: number;
205
+ desiredRevision: number;
206
+ lastError: string | null;
207
+ lastSyncedAt: string | null;
208
+ leaseExpiresAt: string | null;
209
+ nextAttemptAt: string | null;
210
+ }[];
211
+ truncated: boolean;
212
+ };
213
+ trialExpiry: {
214
+ rows: {
215
+ organizationId: string;
216
+ trialEndsAt: string;
217
+ attemptCount: number;
218
+ lastError: string | null;
219
+ nextAttemptAt: string | null;
220
+ requiresAttention: boolean;
221
+ }[];
222
+ truncated: boolean;
223
+ };
224
+ purges: {
225
+ rows: {
226
+ organizationId: string;
227
+ status: "disabled" | "deleting";
228
+ purgeAfter: string | null;
229
+ purgeStartedAt: string | null;
230
+ }[];
231
+ truncated: boolean;
232
+ };
233
+ trialsEnding: {
234
+ rows: {
235
+ organizationId: string;
236
+ trialEndsAt: string;
237
+ }[];
238
+ truncated: boolean;
239
+ };
240
+ purgesDue: {
241
+ rows: {
242
+ organizationId: string;
243
+ disabledAt: string | null;
244
+ purgeAfter: string;
245
+ }[];
246
+ truncated: boolean;
247
+ };
248
+ }>>;
249
+ };
250
+ }, "failureResponses" | "failureStatuses"> & {
251
+ readonly failureResponses: {
252
+ readonly 401: z.ZodType<{
253
+ error: string;
254
+ code?: "session_refresh_required" | undefined;
255
+ }, {
256
+ error: string;
257
+ code?: "session_refresh_required" | undefined;
258
+ }, z.core.$ZodTypeInternals<{
259
+ error: string;
260
+ code?: "session_refresh_required" | undefined;
261
+ }, {
262
+ error: string;
263
+ code?: "session_refresh_required" | undefined;
264
+ }>>;
265
+ readonly 403: z.ZodType<{
266
+ error: string;
267
+ }, {
268
+ error: string;
269
+ }, z.core.$ZodTypeInternals<{
270
+ error: string;
271
+ }, {
272
+ error: string;
273
+ }>>;
274
+ readonly 500: z.ZodType<{
275
+ error: string;
276
+ }, {
277
+ error: string;
278
+ }, z.core.$ZodTypeInternals<{
279
+ error: string;
280
+ }, {
281
+ error: string;
282
+ }>>;
283
+ } & {
284
+ readonly 503: typeof ErrorResponseSchema;
285
+ };
286
+ readonly failureStatuses: readonly [401, 403, 500] | readonly [401, 403, 500, 503];
287
+ };
@@ -0,0 +1,18 @@
1
+ import { z } from "zod";
2
+ import { ErrorResponseSchema, RootOpsHealthReportResponseSchema, SessionFailureResponseSchema, } from "../response/index.js";
3
+ import { defineJsonOperation } from "./definition.js";
4
+ export const getRootOpsHealthReportOperation = defineJsonOperation({
5
+ auth: "session",
6
+ failureResponses: {
7
+ 401: SessionFailureResponseSchema,
8
+ 403: ErrorResponseSchema,
9
+ 500: ErrorResponseSchema,
10
+ },
11
+ failureStatuses: [401, 403, 500],
12
+ id: "root.reports.opsHealth.get",
13
+ method: "GET",
14
+ params: z.strictObject({}),
15
+ path: "/root/reports/ops-health",
16
+ responses: { 200: RootOpsHealthReportResponseSchema },
17
+ });
18
+ //# 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,mBAAmB,EACnB,iCAAiC,EACjC,4BAA4B,GAC7B,MAAM,aAAa,CAAC;AACrB,OAAO,EAAE,mBAAmB,EAAE,MAAM,cAAc,CAAC;AAEnD,MAAM,CAAC,MAAM,+BAA+B,GAAG,mBAAmB,CAAC;IACjE,IAAI,EAAE,SAAS;IACf,gBAAgB,EAAE;QAChB,GAAG,EAAE,4BAA4B;QACjC,GAAG,EAAE,mBAAmB;QACxB,GAAG,EAAE,mBAAmB;KACzB;IACD,eAAe,EAAE,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,CAAC;IAChC,EAAE,EAAE,4BAA4B;IAChC,MAAM,EAAE,KAAK;IACb,MAAM,EAAE,CAAC,CAAC,YAAY,CAAC,EAAE,CAAC;IAC1B,IAAI,EAAE,0BAA0B;IAChC,SAAS,EAAE,EAAE,GAAG,EAAE,iCAAiC,EAAE;CACtD,CAAC,CAAC","sourcesContent":["import { z } from \"zod\";\nimport {\n ErrorResponseSchema,\n RootOpsHealthReportResponseSchema,\n SessionFailureResponseSchema,\n} from \"../response\";\nimport { defineJsonOperation } from \"./definition\";\n\nexport const getRootOpsHealthReportOperation = defineJsonOperation({\n auth: \"session\",\n failureResponses: {\n 401: SessionFailureResponseSchema,\n 403: ErrorResponseSchema,\n 500: ErrorResponseSchema,\n },\n failureStatuses: [401, 403, 500],\n id: \"root.reports.opsHealth.get\",\n method: \"GET\",\n params: z.strictObject({}),\n path: \"/root/reports/ops-health\",\n responses: { 200: RootOpsHealthReportResponseSchema },\n});\n"]}
@@ -37,6 +37,8 @@ export { isReferencedPrincipalStateResponse, type ReferencedPrincipalStateRespon
37
37
  export { type ProjectionPolicyEvidenceResponse, ProjectionPolicyEvidenceResponseSchema, } from "./projectionPolicyEvidence.js";
38
38
  export { isRegistrationResponse, type RegistrationResponse, RegistrationResponseSchema, } from "./registration.js";
39
39
  export { isRootIdentitiesResponse, isRootIdentityDetailResponse, isRootIdentityOrganizationsResponse, type RootIdentitiesResponse, RootIdentitiesResponseSchema, type RootIdentityDetailResponse, RootIdentityDetailResponseSchema, type RootIdentityOrganizationBillingResponse, RootIdentityOrganizationBillingResponseSchema, type RootIdentityOrganizationResponse, RootIdentityOrganizationResponseSchema, type RootIdentityOrganizationsResponse, RootIdentityOrganizationsResponseSchema, type RootIdentitySessionResponse, RootIdentitySessionResponseSchema, type RootIdentitySummaryResponse, RootIdentitySummaryResponseSchema, } from "./root.js";
40
+ export { ROOT_AUDIT_ACTIONS, type RootAuditAction, RootAuditActionSchema, type RootAuditEventResponse, RootAuditEventResponseSchema, type RootAuditEventsResponse, RootAuditEventsResponseSchema, } from "./rootAudit.js";
41
+ export { ROOT_OPS_HEALTH_OVERDUE_MINUTES, ROOT_OPS_HEALTH_SECTION_LIMIT, ROOT_OPS_HEALTH_UPCOMING_DAYS, ROOT_SEAT_SYNC_CONDITIONS, type RootOpsHealthReportResponse, RootOpsHealthReportResponseSchema, RootSeatSyncConditionSchema, } from "./rootOpsHealth.js";
40
42
  export { type RootDataUsageReportResponse, RootDataUsageReportResponseSchema, type RootOrganizationDetailResponse, RootOrganizationDetailResponseSchema, type RootOrganizationIdentitiesResponse, RootOrganizationIdentitiesResponseSchema, type RootOrganizationIdentityResponse, RootOrganizationIdentityResponseSchema, type RootOrganizationSummaryResponse, RootOrganizationSummaryResponseSchema, type RootOrganizationsResponse, RootOrganizationsResponseSchema, } from "./rootOrganizations.js";
41
43
  export { isStripeCancelResponse, isStripeCheckoutIntentResponse, isStripeCheckoutOptionsResponse, isStripeCheckoutSessionResponse, isStripePortalResponse, type StripeCancelResponse, StripeCancelResponseSchema, type StripeCheckoutIntentResponse, StripeCheckoutIntentResponseSchema, type StripeCheckoutOptionsResponse, StripeCheckoutOptionsResponseSchema, type StripeCheckoutSessionResponse, StripeCheckoutSessionResponseSchema, type StripePortalResponse, StripePortalResponseSchema, type StripeSyncOptionResponse, StripeSyncOptionResponseSchema, } from "./stripeCheckout.js";
42
44
  export { isSyncWatermark, type SyncWatermark, SyncWatermarkSchema, } from "./syncWatermark.js";
@@ -36,6 +36,8 @@ export { isReferencedPrincipalStateResponse, ReferencedPrincipalStateResponseSch
36
36
  export { ProjectionPolicyEvidenceResponseSchema, } from "./projectionPolicyEvidence.js";
37
37
  export { isRegistrationResponse, RegistrationResponseSchema, } from "./registration.js";
38
38
  export { isRootIdentitiesResponse, isRootIdentityDetailResponse, isRootIdentityOrganizationsResponse, RootIdentitiesResponseSchema, RootIdentityDetailResponseSchema, RootIdentityOrganizationBillingResponseSchema, RootIdentityOrganizationResponseSchema, RootIdentityOrganizationsResponseSchema, RootIdentitySessionResponseSchema, RootIdentitySummaryResponseSchema, } from "./root.js";
39
+ export { ROOT_AUDIT_ACTIONS, RootAuditActionSchema, RootAuditEventResponseSchema, RootAuditEventsResponseSchema, } from "./rootAudit.js";
40
+ export { ROOT_OPS_HEALTH_OVERDUE_MINUTES, ROOT_OPS_HEALTH_SECTION_LIMIT, ROOT_OPS_HEALTH_UPCOMING_DAYS, ROOT_SEAT_SYNC_CONDITIONS, RootOpsHealthReportResponseSchema, RootSeatSyncConditionSchema, } from "./rootOpsHealth.js";
39
41
  export { RootDataUsageReportResponseSchema, RootOrganizationDetailResponseSchema, RootOrganizationIdentitiesResponseSchema, RootOrganizationIdentityResponseSchema, RootOrganizationSummaryResponseSchema, RootOrganizationsResponseSchema, } from "./rootOrganizations.js";
40
42
  export { isStripeCancelResponse, isStripeCheckoutIntentResponse, isStripeCheckoutOptionsResponse, isStripeCheckoutSessionResponse, isStripePortalResponse, StripeCancelResponseSchema, StripeCheckoutIntentResponseSchema, StripeCheckoutOptionsResponseSchema, StripeCheckoutSessionResponseSchema, StripePortalResponseSchema, StripeSyncOptionResponseSchema, } from "./stripeCheckout.js";
41
43
  export { isSyncWatermark, SyncWatermarkSchema, } from "./syncWatermark.js";