@safetech/inheriti-client-sdk 1.17.28 → 1.17.30

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.
@@ -60,6 +60,94 @@ declare function getAvailableEnvs(): {
60
60
  demoKeyApiUrl: string;
61
61
  };
62
62
 
63
+ interface ListOrganizationMembersInput {
64
+ limit?: number;
65
+ offset?: number;
66
+ }
67
+ interface OrganizationMember {
68
+ id: string;
69
+ displayName: string;
70
+ role: string;
71
+ status: string;
72
+ }
73
+ interface OrganizationMemberPage {
74
+ items: OrganizationMember[];
75
+ total: number;
76
+ }
77
+ interface ListOrganizationAuditTrailInput {
78
+ from: string;
79
+ to: string;
80
+ limit?: number;
81
+ cursor?: string;
82
+ category?: string;
83
+ memberId?: string;
84
+ responsibleMemberId?: string;
85
+ }
86
+ interface OrganizationAuditEvent {
87
+ id: string;
88
+ occurredOn: string;
89
+ actorName: string;
90
+ actorRole: string;
91
+ category: string;
92
+ action: string;
93
+ subject: string;
94
+ status: string;
95
+ sourceEvent: string;
96
+ planId?: string;
97
+ planName?: string;
98
+ responsibleMemberName?: string;
99
+ }
100
+ interface OrganizationAuditPage {
101
+ items: OrganizationAuditEvent[];
102
+ total: number;
103
+ shownCount: number;
104
+ totalCount: number;
105
+ nextCursor: string | null;
106
+ hasMore: boolean;
107
+ }
108
+ interface OrganizationInsightsInput {
109
+ from?: string;
110
+ to?: string;
111
+ }
112
+ interface OrganizationInsights {
113
+ stats: {
114
+ totalPlans: number;
115
+ plansCreatedThisMonth: number;
116
+ activeMembers: number;
117
+ totalSeats: number | null;
118
+ accessRequests30d: number;
119
+ accessRequestsPrevious30d: number;
120
+ pendingApprovals: number;
121
+ };
122
+ plansOverTime: Array<{
123
+ month: string;
124
+ count: number;
125
+ }>;
126
+ planTypes: Array<{
127
+ type: string;
128
+ count: number;
129
+ }>;
130
+ accessModerationActivity: Array<{
131
+ week: string;
132
+ requests: number;
133
+ approvals: number;
134
+ }>;
135
+ planAccessResults: {
136
+ success: number;
137
+ aborted: number;
138
+ expired: number;
139
+ };
140
+ }
141
+ interface PlanResponsibilities {
142
+ planId: string;
143
+ participants: Array<{
144
+ id: string;
145
+ displayName: string;
146
+ relationships: string[];
147
+ lifecycle: string;
148
+ }>;
149
+ }
150
+
63
151
  declare const CANONICAL_PLAN_ASSET_TYPES: readonly ["PLAIN-TEXT", "USER-PSWD", "RECOVERY-CODE", "PIN-CODE", "API-KEY", "PRIVATE-KEY", "SEED-PHRASE", "PAYMENT-DEBIT-CARD", "PAYMENT-CREDIT-CARD", "DOCUMENT", "IMAGE", "VIDEO"];
64
152
  type CanonicalPlanAssetType = (typeof CANONICAL_PLAN_ASSET_TYPES)[number];
65
153
  declare const CANONICAL_STRUCTURED_ASSET_FIELDS: Readonly<Record<Exclude<CanonicalPlanAssetType, 'DOCUMENT' | 'IMAGE' | 'VIDEO'>, readonly string[]>>;
@@ -131,6 +219,7 @@ interface ListMemberLogsInput {
131
219
  source?: 'MEMBER' | 'AUTOMATION';
132
220
  from?: string;
133
221
  to?: string;
222
+ q?: string;
134
223
  limit?: number;
135
224
  offset?: number;
136
225
  }
@@ -615,6 +704,17 @@ type OpenedInboxFile = Omit<OpenedInboxMessage, 'shares'> & {
615
704
  shares: StageInboxFileInput['shares'];
616
705
  };
617
706
 
707
+ interface OperationContext {
708
+ reason?: string;
709
+ commitSha?: string;
710
+ workflow?: string;
711
+ pipeline?: string;
712
+ target?: string;
713
+ image?: string;
714
+ version?: string;
715
+ }
716
+ declare function validateOperationContext(value: unknown): OperationContext;
717
+
618
718
  interface CollectedPlanMaterial {
619
719
  planId: string;
620
720
  mergeThreshold: number;
@@ -789,6 +889,10 @@ interface ElementsApiPort {
789
889
  getPlan(planId: string): Promise<PlanDetail>;
790
890
  listPlanLogs(planId: string, input?: ListPlanLogsInput): Promise<PlanLogPage>;
791
891
  listMemberLogs(memberId: string, input?: ListMemberLogsInput): Promise<MemberLogPage>;
892
+ listOrganizationMembers(input?: ListOrganizationMembersInput): Promise<OrganizationMemberPage>;
893
+ listOrganizationAuditTrail(input: ListOrganizationAuditTrailInput): Promise<OrganizationAuditPage>;
894
+ getOrganizationInsights(input?: OrganizationInsightsInput): Promise<OrganizationInsights>;
895
+ getPlanResponsibilities(planId: string): Promise<PlanResponsibilities>;
792
896
  startPlanCreation(input: StartPlanCreationInput): Promise<PlanCreationProgress>;
793
897
  getPlanCreation(operationId: string): Promise<PlanCreationProgress>;
794
898
  supplyPlanCreationMaterial(operationId: string, material: EncryptedPlanMaterial): Promise<PlanCreationProgress>;
@@ -974,6 +1078,7 @@ interface StartRevealInput {
974
1078
  mode: RevealMode;
975
1079
  idempotencyKey: string;
976
1080
  protectedCopy?: boolean;
1081
+ operationContext?: OperationContext;
977
1082
  }
978
1083
  interface RevealReconstructionInput {
979
1084
  status: 'SUCCEEDED' | 'FAILED';
@@ -1373,6 +1478,7 @@ interface RevealProgress {
1373
1478
  readonly session?: RevealSession;
1374
1479
  }
1375
1480
  interface OpenRevealOptions {
1481
+ operationContext?: OperationContext;
1376
1482
  mode?: RevealMode;
1377
1483
  protectedCopy?: boolean;
1378
1484
  idempotencyKey?: string;
@@ -1498,6 +1604,10 @@ declare class ElementsClient {
1498
1604
  getPlan(planId: string): Promise<PlanDetail>;
1499
1605
  listPlanLogs(planId: string, input?: ListPlanLogsInput): Promise<PlanLogPage>;
1500
1606
  listMemberLogs(memberId: string, input?: ListMemberLogsInput): Promise<MemberLogPage>;
1607
+ listOrganizationMembers(input?: ListOrganizationMembersInput): Promise<OrganizationMemberPage>;
1608
+ listOrganizationAuditTrail(input: ListOrganizationAuditTrailInput): Promise<OrganizationAuditPage>;
1609
+ getOrganizationInsights(input?: OrganizationInsightsInput): Promise<OrganizationInsights>;
1610
+ getPlanResponsibilities(planId: string): Promise<PlanResponsibilities>;
1501
1611
  startPlanCreation(input: StartPlanCreationInput): Promise<PlanCreationProgress>;
1502
1612
  getPlanCreation(operationId: string): Promise<PlanCreationProgress>;
1503
1613
  supplyPlanCreationMaterial(operationId: string, material: EncryptedPlanMaterial): Promise<PlanCreationProgress>;
@@ -1760,6 +1870,10 @@ declare class HttpElementsApiPort implements ElementsApiPort {
1760
1870
  getPlan(planId: string): Promise<PlanDetail>;
1761
1871
  listPlanLogs(planId: string, input?: ListPlanLogsInput): Promise<PlanLogPage>;
1762
1872
  listMemberLogs(memberId: string, input?: ListMemberLogsInput): Promise<MemberLogPage>;
1873
+ listOrganizationMembers(input?: ListOrganizationMembersInput): Promise<OrganizationMemberPage>;
1874
+ listOrganizationAuditTrail(input: ListOrganizationAuditTrailInput): Promise<OrganizationAuditPage>;
1875
+ getOrganizationInsights(input?: OrganizationInsightsInput): Promise<OrganizationInsights>;
1876
+ getPlanResponsibilities(planId: string): Promise<PlanResponsibilities>;
1763
1877
  startPlanCreation(input: StartPlanCreationInput): Promise<PlanCreationProgress>;
1764
1878
  getPlanCreation(operationId: string): Promise<PlanCreationProgress>;
1765
1879
  supplyPlanCreationMaterial(operationId: string, material: EncryptedPlanMaterial): Promise<PlanCreationProgress>;
@@ -1817,6 +1931,7 @@ declare class HttpElementsApiPort implements ElementsApiPort {
1817
1931
  private request;
1818
1932
  private requestBinary;
1819
1933
  private requestWithoutResult;
1934
+ private requireOrganizationSelection;
1820
1935
  private requireBusinessSelection;
1821
1936
  }
1822
1937
 
@@ -2225,5 +2340,5 @@ declare class OperatorSessionController {
2225
2340
  logout(): Promise<void>;
2226
2341
  }
2227
2342
 
2228
- export { BusinessOrganizationSelectionError, CANONICAL_PLAN_ASSET_TYPES, CANONICAL_STRUCTURED_ASSET_FIELDS, CorePlanMaterialBuilder, ElementsApiPortRequired, ElementsApiRequestFailed, ElementsClient, GuidedCreateRecoveryError, GuidedPlanCreator, HostProcessRuntimeEnvironment, HttpAutomationRevealApiPort, HttpElementsApiPort, HttpOperatorAuthTransport, InheritiClientProvider, InvalidPlanDeclaration, InvalidPlanMaterial, LocalProcessReconciliationOwnership, MasterKeyRelayCancellationFailed, MasterKeyRelayExpired, MasterKeyRelayTimedOut, MasterKeyRequired, MemoryGuidedCreateCheckpointStore, MemoryKeyVault, MemoryStatePort, OAuthProtocolError, OperatorAuthClient, OperatorAuthError, OperatorReauthenticationRequired, OperatorSessionController, PLAN_CREATION_SERVER_STAGES, PlanMaterialReconstructionFailed, PlanMaterialReconstructorRequired, PollingSharedPlanEventListener, RelayMasterKeySource, RevealActionsNotOpen, RevealFieldAccessError, RevealHandleClosed, StaticMasterKeyResolver, SystemOAuthClock, WebOAuthCrypto, createAutomationRevealClient, createElementsClient, createMasterKeyResolver, exportProtectedRevealAsset, getAvailableEnvs, masterKeyRefFor, masterKeyRefKey, oauthErrorCode, parseAssetFieldSelector, revealPhaseOf, selectBusinessOrganization, unwrapDekWithMasterKey, useClient, validatePlanCreationInput, validatePlanCreationMaterial };
2229
- export type { AssetFieldSelector, AuthorizationTransaction, AuthorizeRevealActionInput, AutomationRevealOptions, BusinessOperatorSession, BusinessOrganization, BusinessSessionResponse, CanonicalPlanAssetType, CollectedPlanMaterial, CompatibleValue, ConsumedRevealField, CorePlanSecrets, CreateInboxConversationInput, CreateInboxFileAccessInput, CreateRevealFileAccessInput, CustodianShareResult, DeclaredMasterKeySource, DecodedPlanAsset, DeviceAuthorization, DeviceTransaction, ElementsApiPort, ElementsClientOptions, ElementsEnvironment, EncryptedPlanMaterial, EncryptedPlanShard, ExportPlanBridgeInput, ExportProtectedRevealAssetInput, FileAccessOpening, FileAccessOpeningState, FileAccessStatus, GovernedRevealSession, GovernedRevealState, GovernedShare, GovernedSharesMaterial, GovernedValidatorMaterial, GuidedCreateCheckpoint, GuidedCreateCheckpointStore, GuidedCreateLocalStage, GuidedCreateOptions, InboxConversation, InboxConversationPage, InboxDevice, InboxMember, InboxMemberPage, InboxMessageMetadata, InboxMessagePage, InboxParentMetadata, InboxParentPage, InboxParticipant, InboxParticipantPage, InboxSendPreparation, InboxShareLayer, InheritiClientProviderProps, IntegrationPlanAssetDeclaration, KeyVault, ListInboxConversationsInput, ListInboxMessagesInput, ListInboxParticipantsInput, ListMemberLogsInput, ListPlanLogsInput, ListPlansInput, MasterKeyAcquisition, MasterKeyAcquisitionOptions, MasterKeyRef, MasterKeyRelayContext, MasterKeyRelayPort, MasterKeyRelaySessionOpened, MasterKeyRelaySessionState, MasterKeyResolver, MemberLog, MemberLogPage, NativePlanParticipant, NormalInboxMessageMetadata, NormalInboxMessagePage, NormalInboxSendPreparation, OAuthClock, OAuthCrypto, OAuthHttpTransport, OAuthTokenResponse, OAuthTransaction, OAuthTransactionStore, OidcDiscoveryDocument, OpenRevealOptions, OpenedInboxParent, OpenedNormalInboxMessage, OperatorAuthClientOptions, OperatorAuthConfiguration, OperatorAuthTransport, OperatorSession, OperatorSessionControlPort, OperatorSessionStore, OperatorSessionSummary, OperatorTokenValidator, PlanAssetContainerDecoder, PlanAssetSummary, PlanBridgeEnvelope, PlanCreationOutcome, PlanCreationProgress, PlanCreationServerStage, PlanDetail, PlanGovernanceMode, PlanGovernancePolicy, PlanLog, PlanLogPage, PlanMaterialBuilder, PlanMaterialReconstructor, PlanPage, PlanParticipantRelationship, PlanRevealProfile, PlanStatus, PlanSummary, ProCustodianShare, ProviderOperatorSession, PublishInboxMessageInput, PublishInboxParentInput, PublishNormalInboxMessageInput, PublishedInboxMessage, PublishedNormalInboxMessage, RegisterInboxDeviceInput, RelayMasterKeySourceOptions, ReplaceInboxDeviceInput, ReportRevealActionOutcomeInput, RevealAction, RevealActionDestination, RevealActionOutcome, RevealActionType, RevealCloseReason, RevealFieldConsumption, RevealFieldDestination, RevealFieldOptions, RevealHandle, RevealMode, RevealPhase, RevealProgress, RevealReconstructionInput, RevealSession, RevealStage, RevokeInboxDeviceInput, SafeIdOidcBusinessSession, StartPlanCreationInput, StartRevealInput, StatePort, StepUpReadContext, ValidatedOperatorToken };
2343
+ export { BusinessOrganizationSelectionError, CANONICAL_PLAN_ASSET_TYPES, CANONICAL_STRUCTURED_ASSET_FIELDS, CorePlanMaterialBuilder, ElementsApiPortRequired, ElementsApiRequestFailed, ElementsClient, GuidedCreateRecoveryError, GuidedPlanCreator, HostProcessRuntimeEnvironment, HttpAutomationRevealApiPort, HttpElementsApiPort, HttpOperatorAuthTransport, InheritiClientProvider, InvalidPlanDeclaration, InvalidPlanMaterial, LocalProcessReconciliationOwnership, MasterKeyRelayCancellationFailed, MasterKeyRelayExpired, MasterKeyRelayTimedOut, MasterKeyRequired, MemoryGuidedCreateCheckpointStore, MemoryKeyVault, MemoryStatePort, OAuthProtocolError, OperatorAuthClient, OperatorAuthError, OperatorReauthenticationRequired, OperatorSessionController, PLAN_CREATION_SERVER_STAGES, PlanMaterialReconstructionFailed, PlanMaterialReconstructorRequired, PollingSharedPlanEventListener, RelayMasterKeySource, RevealActionsNotOpen, RevealFieldAccessError, RevealHandleClosed, StaticMasterKeyResolver, SystemOAuthClock, WebOAuthCrypto, createAutomationRevealClient, createElementsClient, createMasterKeyResolver, exportProtectedRevealAsset, getAvailableEnvs, masterKeyRefFor, masterKeyRefKey, oauthErrorCode, parseAssetFieldSelector, revealPhaseOf, selectBusinessOrganization, unwrapDekWithMasterKey, useClient, validateOperationContext, validatePlanCreationInput, validatePlanCreationMaterial };
2344
+ export type { AssetFieldSelector, AuthorizationTransaction, AuthorizeRevealActionInput, AutomationRevealOptions, BusinessOperatorSession, BusinessOrganization, BusinessSessionResponse, CanonicalPlanAssetType, CollectedPlanMaterial, CompatibleValue, ConsumedRevealField, CorePlanSecrets, CreateInboxConversationInput, CreateInboxFileAccessInput, CreateRevealFileAccessInput, CustodianShareResult, DeclaredMasterKeySource, DecodedPlanAsset, DeviceAuthorization, DeviceTransaction, ElementsApiPort, ElementsClientOptions, ElementsEnvironment, EncryptedPlanMaterial, EncryptedPlanShard, ExportPlanBridgeInput, ExportProtectedRevealAssetInput, FileAccessOpening, FileAccessOpeningState, FileAccessStatus, GovernedRevealSession, GovernedRevealState, GovernedShare, GovernedSharesMaterial, GovernedValidatorMaterial, GuidedCreateCheckpoint, GuidedCreateCheckpointStore, GuidedCreateLocalStage, GuidedCreateOptions, InboxConversation, InboxConversationPage, InboxDevice, InboxMember, InboxMemberPage, InboxMessageMetadata, InboxMessagePage, InboxParentMetadata, InboxParentPage, InboxParticipant, InboxParticipantPage, InboxSendPreparation, InboxShareLayer, InheritiClientProviderProps, IntegrationPlanAssetDeclaration, KeyVault, ListInboxConversationsInput, ListInboxMessagesInput, ListInboxParticipantsInput, ListMemberLogsInput, ListOrganizationAuditTrailInput, ListOrganizationMembersInput, ListPlanLogsInput, ListPlansInput, MasterKeyAcquisition, MasterKeyAcquisitionOptions, MasterKeyRef, MasterKeyRelayContext, MasterKeyRelayPort, MasterKeyRelaySessionOpened, MasterKeyRelaySessionState, MasterKeyResolver, MemberLog, MemberLogPage, NativePlanParticipant, NormalInboxMessageMetadata, NormalInboxMessagePage, NormalInboxSendPreparation, OAuthClock, OAuthCrypto, OAuthHttpTransport, OAuthTokenResponse, OAuthTransaction, OAuthTransactionStore, OidcDiscoveryDocument, OpenRevealOptions, OpenedInboxParent, OpenedNormalInboxMessage, OperationContext, OperatorAuthClientOptions, OperatorAuthConfiguration, OperatorAuthTransport, OperatorSession, OperatorSessionControlPort, OperatorSessionStore, OperatorSessionSummary, OperatorTokenValidator, OrganizationAuditEvent, OrganizationAuditPage, OrganizationInsights, OrganizationInsightsInput, OrganizationMember, OrganizationMemberPage, PlanAssetContainerDecoder, PlanAssetSummary, PlanBridgeEnvelope, PlanCreationOutcome, PlanCreationProgress, PlanCreationServerStage, PlanDetail, PlanGovernanceMode, PlanGovernancePolicy, PlanLog, PlanLogPage, PlanMaterialBuilder, PlanMaterialReconstructor, PlanPage, PlanParticipantRelationship, PlanResponsibilities, PlanRevealProfile, PlanStatus, PlanSummary, ProCustodianShare, ProviderOperatorSession, PublishInboxMessageInput, PublishInboxParentInput, PublishNormalInboxMessageInput, PublishedInboxMessage, PublishedNormalInboxMessage, RegisterInboxDeviceInput, RelayMasterKeySourceOptions, ReplaceInboxDeviceInput, ReportRevealActionOutcomeInput, RevealAction, RevealActionDestination, RevealActionOutcome, RevealActionType, RevealCloseReason, RevealFieldConsumption, RevealFieldDestination, RevealFieldOptions, RevealHandle, RevealMode, RevealPhase, RevealProgress, RevealReconstructionInput, RevealSession, RevealStage, RevokeInboxDeviceInput, SafeIdOidcBusinessSession, StartPlanCreationInput, StartRevealInput, StatePort, StepUpReadContext, ValidatedOperatorToken };
@@ -1,3 +1,4 @@
1
+ import type { OperationContext } from './operation-context';
1
2
  export interface CollectedPlanMaterial {
2
3
  planId: string;
3
4
  mergeThreshold: number;
@@ -172,6 +173,10 @@ export interface ElementsApiPort {
172
173
  getPlan(planId: string): Promise<import('./plan-operations').PlanDetail>;
173
174
  listPlanLogs(planId: string, input?: import('./plan-operations').ListPlanLogsInput): Promise<import('./plan-operations').PlanLogPage>;
174
175
  listMemberLogs(memberId: string, input?: import('./plan-operations').ListMemberLogsInput): Promise<import('./plan-operations').MemberLogPage>;
176
+ listOrganizationMembers(input?: import('./organization-queries').ListOrganizationMembersInput): Promise<import('./organization-queries').OrganizationMemberPage>;
177
+ listOrganizationAuditTrail(input: import('./organization-queries').ListOrganizationAuditTrailInput): Promise<import('./organization-queries').OrganizationAuditPage>;
178
+ getOrganizationInsights(input?: import('./organization-queries').OrganizationInsightsInput): Promise<import('./organization-queries').OrganizationInsights>;
179
+ getPlanResponsibilities(planId: string): Promise<import('./organization-queries').PlanResponsibilities>;
175
180
  startPlanCreation(input: import('./plan-operations').StartPlanCreationInput): Promise<import('./plan-operations').PlanCreationProgress>;
176
181
  getPlanCreation(operationId: string): Promise<import('./plan-operations').PlanCreationProgress>;
177
182
  supplyPlanCreationMaterial(operationId: string, material: import('./plan-operations').EncryptedPlanMaterial): Promise<import('./plan-operations').PlanCreationProgress>;
@@ -357,6 +362,7 @@ export interface StartRevealInput {
357
362
  mode: RevealMode;
358
363
  idempotencyKey: string;
359
364
  protectedCopy?: boolean;
365
+ operationContext?: OperationContext;
360
366
  }
361
367
  export interface RevealReconstructionInput {
362
368
  status: 'SUCCEEDED' | 'FAILED';
@@ -7,6 +7,7 @@ import type { PlanMaterialReconstructor } from './plan-material-reconstructor';
7
7
  import type { MasterKeyRef, MasterKeyResolver } from './master-key';
8
8
  import type { PlanAssetDeclaration } from '@safetech/inheriti-core-sdk';
9
9
  import type { EncryptedPlanMaterial, ListMemberLogsInput, ListPlanLogsInput, ListPlansInput, MemberLogPage, PlanCreationProgress, PlanDetail, PlanLogPage, PlanPage, StartPlanCreationInput } from './plan-operations';
10
+ import type { ListOrganizationMembersInput, OrganizationMemberPage, ListOrganizationAuditTrailInput, OrganizationAuditPage, OrganizationInsightsInput, OrganizationInsights, PlanResponsibilities } from './organization-queries';
10
11
  import type { GuidedCreateCheckpointStore } from './guided-plan-creator';
11
12
  import { GuidedPlanCreator } from './guided-plan-creator';
12
13
  import type { OpenRevealOptions, RevealHandle } from './scoped-reveal';
@@ -78,6 +79,10 @@ export default class ElementsClient {
78
79
  getPlan(planId: string): Promise<PlanDetail>;
79
80
  listPlanLogs(planId: string, input?: ListPlanLogsInput): Promise<PlanLogPage>;
80
81
  listMemberLogs(memberId: string, input?: ListMemberLogsInput): Promise<MemberLogPage>;
82
+ listOrganizationMembers(input?: ListOrganizationMembersInput): Promise<OrganizationMemberPage>;
83
+ listOrganizationAuditTrail(input: ListOrganizationAuditTrailInput): Promise<OrganizationAuditPage>;
84
+ getOrganizationInsights(input?: OrganizationInsightsInput): Promise<OrganizationInsights>;
85
+ getPlanResponsibilities(planId: string): Promise<PlanResponsibilities>;
81
86
  startPlanCreation(input: StartPlanCreationInput): Promise<PlanCreationProgress>;
82
87
  getPlanCreation(operationId: string): Promise<PlanCreationProgress>;
83
88
  supplyPlanCreationMaterial(operationId: string, material: EncryptedPlanMaterial): Promise<PlanCreationProgress>;
@@ -1,6 +1,7 @@
1
1
  import type { BearerTokenResolver, HttpTransport } from '@safetech/inheriti-core-sdk/node';
2
2
  import type { AuthorizeRevealActionInput, CollectedPlanMaterial, CreateInboxFileAccessInput, CreateRevealFileAccessInput, CustodianShareResult, ElementsApiPort, FileAccessOpening, FileAccessOpeningState, FileAccessStatus, OwnFileAccessIdentityKey, MasterKeyAcquisition, MasterKeyRelayContext, MasterKeyRelaySessionOpened, MasterKeyRelaySessionState, PlanKeyReference, ExportPlanBridgeInput, GovernedRevealSession, GovernedRevealState, GovernedSharesMaterial, GovernedValidatorMaterial, PlanBridgeEnvelope, ReportRevealActionOutcomeInput, RevealAction, RevealCloseReason, RevealReconstructionInput, RevealSession, StartRevealInput, StepUpReadContext } from './elements-api-port';
3
3
  import type { EncryptedPlanMaterial, ListMemberLogsInput, ListPlanLogsInput, ListPlansInput, MemberLogPage, PlanCreationProgress, PlanDetail, PlanLogPage, PlanPage, StartPlanCreationInput } from './plan-operations';
4
+ import type { ListOrganizationMembersInput, OrganizationMemberPage, ListOrganizationAuditTrailInput, OrganizationAuditPage, OrganizationInsightsInput, OrganizationInsights, PlanResponsibilities } from './organization-queries';
4
5
  import type { BusinessOrganization } from '../business/organizations';
5
6
  import type { InboxConversation, InboxConversationPage, InboxDevice, InboxMessagePage, InboxParticipantPage, InboxMemberPage, InboxSendPreparation, OpenedInboxMessage, OpenedInboxFile, PublishInboxMessageInput, StageInboxFileInput, PublishedInboxMessage, RegisterInboxDeviceInput, ReplaceInboxDeviceInput, RevokeInboxDeviceInput, CreateInboxConversationInput, ChangeInboxParticipantsInput, ListInboxConversationsInput, ListInboxMessagesInput, ListInboxParticipantsInput } from '../business/inbox/types';
6
7
  import type { PublishNormalInboxMessageInput, PublishedNormalInboxMessage, NormalInboxMessagePage, OpenedNormalInboxMessage } from '../business/inbox/types';
@@ -122,6 +123,10 @@ export default class HttpElementsApiPort implements ElementsApiPort {
122
123
  getPlan(planId: string): Promise<PlanDetail>;
123
124
  listPlanLogs(planId: string, input?: ListPlanLogsInput): Promise<PlanLogPage>;
124
125
  listMemberLogs(memberId: string, input?: ListMemberLogsInput): Promise<MemberLogPage>;
126
+ listOrganizationMembers(input?: ListOrganizationMembersInput): Promise<OrganizationMemberPage>;
127
+ listOrganizationAuditTrail(input: ListOrganizationAuditTrailInput): Promise<OrganizationAuditPage>;
128
+ getOrganizationInsights(input?: OrganizationInsightsInput): Promise<OrganizationInsights>;
129
+ getPlanResponsibilities(planId: string): Promise<PlanResponsibilities>;
125
130
  startPlanCreation(input: StartPlanCreationInput): Promise<PlanCreationProgress>;
126
131
  getPlanCreation(operationId: string): Promise<PlanCreationProgress>;
127
132
  supplyPlanCreationMaterial(operationId: string, material: EncryptedPlanMaterial): Promise<PlanCreationProgress>;
@@ -179,6 +184,7 @@ export default class HttpElementsApiPort implements ElementsApiPort {
179
184
  private request;
180
185
  private requestBinary;
181
186
  private requestWithoutResult;
187
+ private requireOrganizationSelection;
182
188
  private requireBusinessSelection;
183
189
  }
184
190
  export {};
@@ -13,6 +13,8 @@ export type { ExportPlanBridgeInput, PlanBridgeEnvelope, PlanRevealProfile } fro
13
13
  export { ElementsApiPortRequired, RevealActionsNotOpen } from './elements-api-port';
14
14
  export { parseAssetFieldSelector, revealPhaseOf, RevealFieldAccessError, RevealHandleClosed } from './scoped-reveal';
15
15
  export type { AssetFieldSelector, ConsumedRevealField, OpenRevealOptions, RevealFieldConsumption, RevealFieldDestination, RevealFieldOptions, RevealHandle, RevealPhase, RevealProgress } from './scoped-reveal';
16
+ export { validateOperationContext } from './operation-context';
17
+ export type { OperationContext } from './operation-context';
16
18
  export { generateInheritiFileKey, sealInheritiFile, readInheritiFileHeader, openInheritiFile, InheritiFileInvalid, MAX_INHERITI_FILE_BYTES } from './inheriti-file';
17
19
  export type { InheritiFileBinding, InheritiFileHeader } from './inheriti-file';
18
20
  export { exportProtectedRevealAsset } from './export-protected-reveal-asset';
@@ -35,6 +37,7 @@ export type { MasterKeyAcquisition, MasterKeyRelayContext, MasterKeyRelaySession
35
37
  export type { MasterKeyRelayPort, RelayMasterKeySourceOptions } from './relay-master-key-source';
36
38
  export { HostProcessRuntimeEnvironment, LocalProcessReconciliationOwnership, PollingSharedPlanEventListener } from './polling-shared-plan-event-listener';
37
39
  export * from './plan-operations';
40
+ export type { ListOrganizationMembersInput, OrganizationMember, OrganizationMemberPage, ListOrganizationAuditTrailInput, OrganizationAuditEvent, OrganizationAuditPage, OrganizationInsightsInput, OrganizationInsights, PlanResponsibilities } from './organization-queries';
38
41
  export * from './guided-plan-creator';
39
42
  export * from './core-plan-material-builder';
40
43
  export * from './inheriti-file-key';
@@ -0,0 +1,10 @@
1
+ export interface OperationContext {
2
+ reason?: string;
3
+ commitSha?: string;
4
+ workflow?: string;
5
+ pipeline?: string;
6
+ target?: string;
7
+ image?: string;
8
+ version?: string;
9
+ }
10
+ export declare function validateOperationContext(value: unknown): OperationContext;
@@ -0,0 +1,92 @@
1
+ export interface ListOrganizationMembersInput {
2
+ limit?: number;
3
+ offset?: number;
4
+ }
5
+ export interface OrganizationMember {
6
+ id: string;
7
+ displayName: string;
8
+ role: string;
9
+ status: string;
10
+ }
11
+ export interface OrganizationMemberPage {
12
+ items: OrganizationMember[];
13
+ total: number;
14
+ }
15
+ export interface ListOrganizationAuditTrailInput {
16
+ from: string;
17
+ to: string;
18
+ limit?: number;
19
+ cursor?: string;
20
+ category?: string;
21
+ memberId?: string;
22
+ responsibleMemberId?: string;
23
+ }
24
+ export interface OrganizationAuditEvent {
25
+ id: string;
26
+ occurredOn: string;
27
+ actorName: string;
28
+ actorRole: string;
29
+ category: string;
30
+ action: string;
31
+ subject: string;
32
+ status: string;
33
+ sourceEvent: string;
34
+ planId?: string;
35
+ planName?: string;
36
+ responsibleMemberName?: string;
37
+ }
38
+ export interface OrganizationAuditPage {
39
+ items: OrganizationAuditEvent[];
40
+ total: number;
41
+ shownCount: number;
42
+ totalCount: number;
43
+ nextCursor: string | null;
44
+ hasMore: boolean;
45
+ }
46
+ export interface OrganizationInsightsInput {
47
+ from?: string;
48
+ to?: string;
49
+ }
50
+ export interface OrganizationInsights {
51
+ stats: {
52
+ totalPlans: number;
53
+ plansCreatedThisMonth: number;
54
+ activeMembers: number;
55
+ totalSeats: number | null;
56
+ accessRequests30d: number;
57
+ accessRequestsPrevious30d: number;
58
+ pendingApprovals: number;
59
+ };
60
+ plansOverTime: Array<{
61
+ month: string;
62
+ count: number;
63
+ }>;
64
+ planTypes: Array<{
65
+ type: string;
66
+ count: number;
67
+ }>;
68
+ accessModerationActivity: Array<{
69
+ week: string;
70
+ requests: number;
71
+ approvals: number;
72
+ }>;
73
+ planAccessResults: {
74
+ success: number;
75
+ aborted: number;
76
+ expired: number;
77
+ };
78
+ }
79
+ export interface PlanResponsibilities {
80
+ planId: string;
81
+ participants: Array<{
82
+ id: string;
83
+ displayName: string;
84
+ relationships: string[];
85
+ lifecycle: string;
86
+ }>;
87
+ }
88
+ export declare function decodeOrganizationMembers(value: unknown): OrganizationMemberPage;
89
+ export declare function decodeOrganizationAuditTrail(value: unknown): OrganizationAuditPage;
90
+ export declare function decodeOrganizationInsights(value: unknown): OrganizationInsights;
91
+ export declare function decodePlanResponsibilities(value: unknown): PlanResponsibilities;
92
+ export declare function assertOnlyQueryFields(input: object, allowed: readonly string[]): void;
@@ -69,6 +69,7 @@ export interface ListMemberLogsInput {
69
69
  source?: 'MEMBER' | 'AUTOMATION';
70
70
  from?: string;
71
71
  to?: string;
72
+ q?: string;
72
73
  limit?: number;
73
74
  offset?: number;
74
75
  }
@@ -1,5 +1,6 @@
1
1
  import type ElementsClient from './elements-client';
2
2
  import type { ProCustodianShare, RevealActionDestination, RevealActionType, RevealCloseReason, RevealMode, RevealSession } from './elements-api-port';
3
+ import type { OperationContext } from './operation-context';
3
4
  export type AssetFieldSelector = string | {
4
5
  asset: string;
5
6
  field: string;
@@ -58,6 +59,7 @@ export interface RevealProgress {
58
59
  readonly session?: RevealSession;
59
60
  }
60
61
  export interface OpenRevealOptions {
62
+ operationContext?: OperationContext;
61
63
  mode?: RevealMode;
62
64
  protectedCopy?: boolean;
63
65
  idempotencyKey?: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@safetech/inheriti-client-sdk",
3
- "version": "1.17.28",
3
+ "version": "1.17.30",
4
4
  "type": "module",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.js",