@vess-id/ai-identity 0.5.0-alpha.10 → 0.5.0-alpha.12

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/dist/index.d.mts CHANGED
@@ -4249,6 +4249,9 @@ declare const ACTION_REGISTRY: {
4249
4249
  subject?: undefined;
4250
4250
  cc?: undefined;
4251
4251
  bcc?: undefined;
4252
+ threadId?: undefined;
4253
+ inReplyTo?: undefined;
4254
+ references?: undefined;
4252
4255
  messageIds?: undefined;
4253
4256
  calendarId?: undefined;
4254
4257
  timeMin?: undefined;
@@ -4342,6 +4345,9 @@ declare const ACTION_REGISTRY: {
4342
4345
  subject?: undefined;
4343
4346
  cc?: undefined;
4344
4347
  bcc?: undefined;
4348
+ threadId?: undefined;
4349
+ inReplyTo?: undefined;
4350
+ references?: undefined;
4345
4351
  messageIds?: undefined;
4346
4352
  calendarId?: undefined;
4347
4353
  timeMin?: undefined;
@@ -4438,6 +4444,9 @@ declare const ACTION_REGISTRY: {
4438
4444
  subject?: undefined;
4439
4445
  cc?: undefined;
4440
4446
  bcc?: undefined;
4447
+ threadId?: undefined;
4448
+ inReplyTo?: undefined;
4449
+ references?: undefined;
4441
4450
  messageIds?: undefined;
4442
4451
  calendarId?: undefined;
4443
4452
  timeMin?: undefined;
@@ -4544,6 +4553,9 @@ declare const ACTION_REGISTRY: {
4544
4553
  subject?: undefined;
4545
4554
  cc?: undefined;
4546
4555
  bcc?: undefined;
4556
+ threadId?: undefined;
4557
+ inReplyTo?: undefined;
4558
+ references?: undefined;
4547
4559
  messageIds?: undefined;
4548
4560
  calendarId?: undefined;
4549
4561
  timeMin?: undefined;
@@ -4647,6 +4659,9 @@ declare const ACTION_REGISTRY: {
4647
4659
  subject?: undefined;
4648
4660
  cc?: undefined;
4649
4661
  bcc?: undefined;
4662
+ threadId?: undefined;
4663
+ inReplyTo?: undefined;
4664
+ references?: undefined;
4650
4665
  messageIds?: undefined;
4651
4666
  calendarId?: undefined;
4652
4667
  timeMin?: undefined;
@@ -4747,6 +4762,9 @@ declare const ACTION_REGISTRY: {
4747
4762
  subject?: undefined;
4748
4763
  cc?: undefined;
4749
4764
  bcc?: undefined;
4765
+ threadId?: undefined;
4766
+ inReplyTo?: undefined;
4767
+ references?: undefined;
4750
4768
  messageIds?: undefined;
4751
4769
  calendarId?: undefined;
4752
4770
  timeMin?: undefined;
@@ -4850,6 +4868,9 @@ declare const ACTION_REGISTRY: {
4850
4868
  subject?: undefined;
4851
4869
  cc?: undefined;
4852
4870
  bcc?: undefined;
4871
+ threadId?: undefined;
4872
+ inReplyTo?: undefined;
4873
+ references?: undefined;
4853
4874
  messageIds?: undefined;
4854
4875
  calendarId?: undefined;
4855
4876
  timeMin?: undefined;
@@ -4949,6 +4970,9 @@ declare const ACTION_REGISTRY: {
4949
4970
  subject?: undefined;
4950
4971
  cc?: undefined;
4951
4972
  bcc?: undefined;
4973
+ threadId?: undefined;
4974
+ inReplyTo?: undefined;
4975
+ references?: undefined;
4952
4976
  messageIds?: undefined;
4953
4977
  calendarId?: undefined;
4954
4978
  timeMin?: undefined;
@@ -5058,6 +5082,9 @@ declare const ACTION_REGISTRY: {
5058
5082
  subject?: undefined;
5059
5083
  cc?: undefined;
5060
5084
  bcc?: undefined;
5085
+ threadId?: undefined;
5086
+ inReplyTo?: undefined;
5087
+ references?: undefined;
5061
5088
  messageIds?: undefined;
5062
5089
  calendarId?: undefined;
5063
5090
  timeMin?: undefined;
@@ -5170,6 +5197,9 @@ declare const ACTION_REGISTRY: {
5170
5197
  subject?: undefined;
5171
5198
  cc?: undefined;
5172
5199
  bcc?: undefined;
5200
+ threadId?: undefined;
5201
+ inReplyTo?: undefined;
5202
+ references?: undefined;
5173
5203
  messageIds?: undefined;
5174
5204
  calendarId?: undefined;
5175
5205
  timeMin?: undefined;
@@ -5266,6 +5296,9 @@ declare const ACTION_REGISTRY: {
5266
5296
  subject?: undefined;
5267
5297
  cc?: undefined;
5268
5298
  bcc?: undefined;
5299
+ threadId?: undefined;
5300
+ inReplyTo?: undefined;
5301
+ references?: undefined;
5269
5302
  messageIds?: undefined;
5270
5303
  calendarId?: undefined;
5271
5304
  timeMin?: undefined;
@@ -5381,6 +5414,9 @@ declare const ACTION_REGISTRY: {
5381
5414
  subject?: undefined;
5382
5415
  cc?: undefined;
5383
5416
  bcc?: undefined;
5417
+ threadId?: undefined;
5418
+ inReplyTo?: undefined;
5419
+ references?: undefined;
5384
5420
  messageIds?: undefined;
5385
5421
  calendarId?: undefined;
5386
5422
  timeMin?: undefined;
@@ -5482,6 +5518,9 @@ declare const ACTION_REGISTRY: {
5482
5518
  subject?: undefined;
5483
5519
  cc?: undefined;
5484
5520
  bcc?: undefined;
5521
+ threadId?: undefined;
5522
+ inReplyTo?: undefined;
5523
+ references?: undefined;
5485
5524
  messageIds?: undefined;
5486
5525
  calendarId?: undefined;
5487
5526
  timeMin?: undefined;
@@ -5578,6 +5617,9 @@ declare const ACTION_REGISTRY: {
5578
5617
  subject?: undefined;
5579
5618
  cc?: undefined;
5580
5619
  bcc?: undefined;
5620
+ threadId?: undefined;
5621
+ inReplyTo?: undefined;
5622
+ references?: undefined;
5581
5623
  messageIds?: undefined;
5582
5624
  calendarId?: undefined;
5583
5625
  timeMin?: undefined;
@@ -5659,6 +5701,15 @@ declare const ACTION_REGISTRY: {
5659
5701
  bcc: {
5660
5702
  type: string;
5661
5703
  };
5704
+ threadId: {
5705
+ type: string;
5706
+ };
5707
+ inReplyTo: {
5708
+ type: string;
5709
+ };
5710
+ references: {
5711
+ type: string;
5712
+ };
5662
5713
  channel?: undefined;
5663
5714
  text?: undefined;
5664
5715
  thread_ts?: undefined;
@@ -5793,6 +5844,9 @@ declare const ACTION_REGISTRY: {
5793
5844
  subject?: undefined;
5794
5845
  cc?: undefined;
5795
5846
  bcc?: undefined;
5847
+ threadId?: undefined;
5848
+ inReplyTo?: undefined;
5849
+ references?: undefined;
5796
5850
  calendarId?: undefined;
5797
5851
  timeMin?: undefined;
5798
5852
  timeMax?: undefined;
@@ -5902,6 +5956,9 @@ declare const ACTION_REGISTRY: {
5902
5956
  subject?: undefined;
5903
5957
  cc?: undefined;
5904
5958
  bcc?: undefined;
5959
+ threadId?: undefined;
5960
+ inReplyTo?: undefined;
5961
+ references?: undefined;
5905
5962
  messageIds?: undefined;
5906
5963
  eventId?: undefined;
5907
5964
  summary?: undefined;
@@ -6001,6 +6058,9 @@ declare const ACTION_REGISTRY: {
6001
6058
  subject?: undefined;
6002
6059
  cc?: undefined;
6003
6060
  bcc?: undefined;
6061
+ threadId?: undefined;
6062
+ inReplyTo?: undefined;
6063
+ references?: undefined;
6004
6064
  messageIds?: undefined;
6005
6065
  timeMin?: undefined;
6006
6066
  timeMax?: undefined;
@@ -6157,6 +6217,9 @@ declare const ACTION_REGISTRY: {
6157
6217
  subject?: undefined;
6158
6218
  cc?: undefined;
6159
6219
  bcc?: undefined;
6220
+ threadId?: undefined;
6221
+ inReplyTo?: undefined;
6222
+ references?: undefined;
6160
6223
  messageIds?: undefined;
6161
6224
  timeMin?: undefined;
6162
6225
  timeMax?: undefined;
@@ -6320,6 +6383,9 @@ declare const ACTION_REGISTRY: {
6320
6383
  subject?: undefined;
6321
6384
  cc?: undefined;
6322
6385
  bcc?: undefined;
6386
+ threadId?: undefined;
6387
+ inReplyTo?: undefined;
6388
+ references?: undefined;
6323
6389
  messageIds?: undefined;
6324
6390
  timeMin?: undefined;
6325
6391
  timeMax?: undefined;
@@ -6421,6 +6487,9 @@ declare const ACTION_REGISTRY: {
6421
6487
  subject?: undefined;
6422
6488
  cc?: undefined;
6423
6489
  bcc?: undefined;
6490
+ threadId?: undefined;
6491
+ inReplyTo?: undefined;
6492
+ references?: undefined;
6424
6493
  messageIds?: undefined;
6425
6494
  timeMin?: undefined;
6426
6495
  timeMax?: undefined;
@@ -6515,6 +6584,9 @@ declare const ACTION_REGISTRY: {
6515
6584
  subject?: undefined;
6516
6585
  cc?: undefined;
6517
6586
  bcc?: undefined;
6587
+ threadId?: undefined;
6588
+ inReplyTo?: undefined;
6589
+ references?: undefined;
6518
6590
  messageIds?: undefined;
6519
6591
  calendarId?: undefined;
6520
6592
  timeMin?: undefined;
@@ -6613,6 +6685,9 @@ declare const ACTION_REGISTRY: {
6613
6685
  subject?: undefined;
6614
6686
  cc?: undefined;
6615
6687
  bcc?: undefined;
6688
+ threadId?: undefined;
6689
+ inReplyTo?: undefined;
6690
+ references?: undefined;
6616
6691
  messageIds?: undefined;
6617
6692
  calendarId?: undefined;
6618
6693
  timeMin?: undefined;
@@ -6711,6 +6786,9 @@ declare const ACTION_REGISTRY: {
6711
6786
  subject?: undefined;
6712
6787
  cc?: undefined;
6713
6788
  bcc?: undefined;
6789
+ threadId?: undefined;
6790
+ inReplyTo?: undefined;
6791
+ references?: undefined;
6714
6792
  messageIds?: undefined;
6715
6793
  calendarId?: undefined;
6716
6794
  timeMin?: undefined;
@@ -6812,6 +6890,9 @@ declare const ACTION_REGISTRY: {
6812
6890
  subject?: undefined;
6813
6891
  cc?: undefined;
6814
6892
  bcc?: undefined;
6893
+ threadId?: undefined;
6894
+ inReplyTo?: undefined;
6895
+ references?: undefined;
6815
6896
  messageIds?: undefined;
6816
6897
  calendarId?: undefined;
6817
6898
  timeMin?: undefined;
@@ -6917,6 +6998,9 @@ declare const ACTION_REGISTRY: {
6917
6998
  subject?: undefined;
6918
6999
  cc?: undefined;
6919
7000
  bcc?: undefined;
7001
+ threadId?: undefined;
7002
+ inReplyTo?: undefined;
7003
+ references?: undefined;
6920
7004
  messageIds?: undefined;
6921
7005
  calendarId?: undefined;
6922
7006
  timeMin?: undefined;
@@ -7012,6 +7096,9 @@ declare const ACTION_REGISTRY: {
7012
7096
  subject?: undefined;
7013
7097
  cc?: undefined;
7014
7098
  bcc?: undefined;
7099
+ threadId?: undefined;
7100
+ inReplyTo?: undefined;
7101
+ references?: undefined;
7015
7102
  messageIds?: undefined;
7016
7103
  calendarId?: undefined;
7017
7104
  timeMin?: undefined;
@@ -7133,6 +7220,9 @@ declare const ACTION_REGISTRY: {
7133
7220
  subject?: undefined;
7134
7221
  cc?: undefined;
7135
7222
  bcc?: undefined;
7223
+ threadId?: undefined;
7224
+ inReplyTo?: undefined;
7225
+ references?: undefined;
7136
7226
  messageIds?: undefined;
7137
7227
  calendarId?: undefined;
7138
7228
  timeMin?: undefined;
@@ -7244,6 +7334,9 @@ declare const ACTION_REGISTRY: {
7244
7334
  subject?: undefined;
7245
7335
  cc?: undefined;
7246
7336
  bcc?: undefined;
7337
+ threadId?: undefined;
7338
+ inReplyTo?: undefined;
7339
+ references?: undefined;
7247
7340
  messageIds?: undefined;
7248
7341
  calendarId?: undefined;
7249
7342
  timeMin?: undefined;
@@ -7336,6 +7429,9 @@ declare const ACTION_REGISTRY: {
7336
7429
  subject?: undefined;
7337
7430
  cc?: undefined;
7338
7431
  bcc?: undefined;
7432
+ threadId?: undefined;
7433
+ inReplyTo?: undefined;
7434
+ references?: undefined;
7339
7435
  messageIds?: undefined;
7340
7436
  calendarId?: undefined;
7341
7437
  timeMin?: undefined;
@@ -7435,6 +7531,9 @@ declare const ACTION_REGISTRY: {
7435
7531
  subject?: undefined;
7436
7532
  cc?: undefined;
7437
7533
  bcc?: undefined;
7534
+ threadId?: undefined;
7535
+ inReplyTo?: undefined;
7536
+ references?: undefined;
7438
7537
  messageIds?: undefined;
7439
7538
  calendarId?: undefined;
7440
7539
  timeMin?: undefined;
@@ -7535,6 +7634,9 @@ declare const ACTION_REGISTRY: {
7535
7634
  subject?: undefined;
7536
7635
  cc?: undefined;
7537
7636
  bcc?: undefined;
7637
+ threadId?: undefined;
7638
+ inReplyTo?: undefined;
7639
+ references?: undefined;
7538
7640
  messageIds?: undefined;
7539
7641
  calendarId?: undefined;
7540
7642
  timeMin?: undefined;
@@ -7641,6 +7743,9 @@ declare const ACTION_REGISTRY: {
7641
7743
  subject?: undefined;
7642
7744
  cc?: undefined;
7643
7745
  bcc?: undefined;
7746
+ threadId?: undefined;
7747
+ inReplyTo?: undefined;
7748
+ references?: undefined;
7644
7749
  messageIds?: undefined;
7645
7750
  calendarId?: undefined;
7646
7751
  timeMin?: undefined;
@@ -7733,6 +7838,9 @@ declare const ACTION_REGISTRY: {
7733
7838
  subject?: undefined;
7734
7839
  cc?: undefined;
7735
7840
  bcc?: undefined;
7841
+ threadId?: undefined;
7842
+ inReplyTo?: undefined;
7843
+ references?: undefined;
7736
7844
  messageIds?: undefined;
7737
7845
  calendarId?: undefined;
7738
7846
  timeMin?: undefined;
@@ -7831,6 +7939,9 @@ declare const ACTION_REGISTRY: {
7831
7939
  subject?: undefined;
7832
7940
  cc?: undefined;
7833
7941
  bcc?: undefined;
7942
+ threadId?: undefined;
7943
+ inReplyTo?: undefined;
7944
+ references?: undefined;
7834
7945
  messageIds?: undefined;
7835
7946
  calendarId?: undefined;
7836
7947
  timeMin?: undefined;
@@ -7939,6 +8050,9 @@ declare const ACTION_REGISTRY: {
7939
8050
  subject?: undefined;
7940
8051
  cc?: undefined;
7941
8052
  bcc?: undefined;
8053
+ threadId?: undefined;
8054
+ inReplyTo?: undefined;
8055
+ references?: undefined;
7942
8056
  messageIds?: undefined;
7943
8057
  calendarId?: undefined;
7944
8058
  timeMin?: undefined;
@@ -8121,6 +8235,39 @@ declare function getValidMcpActionNames(toolName: string): string[];
8121
8235
  */
8122
8236
  declare function normalizeMcpActionName(toolName: string, actionName: string): string;
8123
8237
 
8238
+ /**
8239
+ * Cross-package constants for the reauth pipeline.
8240
+ *
8241
+ * These string literals are contract-level identifiers shared between:
8242
+ * - api (`tool-auth.service.ts`, `token-refresh.service.ts`)
8243
+ * - remote-mcp (`mcp-format-result.ts`)
8244
+ * - agentd (`gateway-client.ts`, `credential-errors.ts`, `execution-engine.ts`)
8245
+ *
8246
+ * Hard-coding them at each site made typo bugs silent. Centralizing here
8247
+ * means any renames surface as a compile error on every import site.
8248
+ */
8249
+ /**
8250
+ * Value for `ToolInvokeResponse.metadata.action` when the api signals a
8251
+ * revoked/expired OAuth token. Consumers branch on this to render a reauth
8252
+ * prompt (Slack DM card, CLI authUrl, etc.) instead of treating the response
8253
+ * as a normal error.
8254
+ */
8255
+ declare const REAUTH_REQUIRED_ACTION: "reauth_required";
8256
+ /**
8257
+ * Error codes emitted by agentd's `gateway-client.invokeTool` to classify
8258
+ * failure modes for the ExecutionEngine to branch on. Kept as a const object
8259
+ * rather than an enum so it serializes cleanly across the wire and in logs.
8260
+ */
8261
+ declare const GATEWAY_ERROR_CODE: {
8262
+ /** Upstream OAuth token is revoked — the user must re-auth at the SaaS provider. */
8263
+ readonly REAUTH_REQUIRED: "REAUTH_REQUIRED";
8264
+ /** Local VC/VP is invalid (expired, malformed, signature mismatch). Try VC reissuance. */
8265
+ readonly CREDENTIAL_INVALID: "CREDENTIAL_INVALID";
8266
+ /** VC allowed a different resource than the request targeted. Try a new approval. */
8267
+ readonly RESOURCE_MISMATCH: "RESOURCE_MISMATCH";
8268
+ };
8269
+ type GatewayErrorCode = (typeof GATEWAY_ERROR_CODE)[keyof typeof GATEWAY_ERROR_CODE];
8270
+
8124
8271
  interface ActionParamDisplay {
8125
8272
  label: string;
8126
8273
  value: string;
@@ -8460,4 +8607,4 @@ declare function getTierLimits(tier: string | undefined | null): TierLimits;
8460
8607
 
8461
8608
  declare const version = "0.0.1";
8462
8609
 
8463
- export { type ABACPolicyEngine, ACTION_PARAMS_MAX_SIZE, ACTION_PREFIXES, ACTION_REGISTRY, AIdentityClient, type AIdentityConfig, AIdentityError, type APIAgent, type APICredential, APIVCManager, type AbacDecision, type AbacInput, type AcceptInvitationRequest, type AckEventResponse, type ActionInputSchema, type ActionMapping, type ActionMeta, type ActionParamDisplay, type ActionRegistry, type ActionRiskLevel, type Agent, type AgentCreateOptions, type AgentDIDConfig, AgentDIDManager, AgentManager, AgentStatus, AgentType, type AgentWithId, AllowAllAbac, type AnyProvider, type ApiKeyValidationResult, type AuditEvent, type AuditQuery, AuthProvider, type AuthState, AuthenticationError, type AutoApproveConfig, type BindingSource, CANONICAL_PROVIDERS, type CanonicalProvider, type CapabilityMeta, type CheckGrantPermissionRequest, type CheckGrantPermissionResult, type CheckPermissionInput, type CheckPermissionResult, type CollectContextRequest, type ConfirmGrantSuggestionRequest, type ConnectorAction, type ConnectorConfig, type ConnectorExecutionContext, type ConnectorResponse, type ConnectorResponseMetadata, type ConnectorTokenConfig, type ConstraintEvaluationResult, ConstraintEvaluator, type ConstraintEvaluatorOptions, type ConstraintViolation, type ConstraintWarning, type ContextBindingSource, type ContextProvider, type CreateGrantRequest, type CreateInvitationRequest, type CreateReceiptRequest, type CredentialRef, CredentialStatus, type CredentialStore, CredentialType, DEFAULT_CONSTRAINTS_BY_RISK, type DIDDocument, type DataAccessVC, type DecisionTrace, type DelegationVC, DeviceEnrollManager, type DeviceEnrollPollResult, type DeviceEnrollServerSideParams, type DeviceEnrollStartParams, type DeviceEnrollStartResult, type DisclosureFields, DummyCreds, DummyVpVerifier, type EmployeeVPRequest, type EvaluationContext, type ExternalActionRequest, FilesystemKeyStorage, GatewayClient, GatewayError, type GatewayEvent, type GetEventsOptions, type GetEventsResponse, type GitHubConfig, type GoogleConfig, type Grant, type GrantConstraints, type GrantResource, GrantResourceType, GrantScope, GrantStatus, type GrantUsage, type IConnectorService, type IStateStore, type Intent, type IntentEvaluationResult, type IntentObligation, type IntentResource, InvalidVPError, type Invitation, type InvitationRole, InvitationStatus, type IssueSDJWTVCRequest, type IssueSDJWTVCResult, type JiraBoard, type JiraConfig, type JiraIssue, type JiraIssueType, type JiraProject, type JiraSprint, type JiraStatus, type JiraUser, type JiraWorklog, type JsonSchema, JsonStateStore, KeyManager, type KeyPairGenerationResult, type KeyStorageConfig, type KeyStorageProvider, LEGACY_RESOURCE_TYPE_MAP, type MemoryDocument, MemoryKeyStorage, MemoryManager, type MemoryQuery, type MemoryQueryResult, NetworkError, type NormalizeIntentRequest, type NormalizedIntent, type OAuthAuthorizeRequest, type OAuthCallbackParams, type OAuthConnection, OAuthProvider, type OAuthToken, type OrganizationConfig, type OrganizationPermission, type OrganizationPolicy, type OrganizationVC, PROVIDER_ALIASES, type ParamBindingSource, type ParsedResourceType, type PermissionConstraints, type PermissionMode, type PermissionResource, type PermissionRule, type PermissionTimeConstraint, type PermissionVcClaims, type PlanDelegationInput, type PlanDelegationResult, type PolicyCondition, type PolicyEvaluationResult, type PolicyInput, type PolicyRule, type PolicyTarget, type Provider, RESOURCE_TYPES, type ReBACChecker, type Receipt, type ReceiptListResult, type ReceiptOutcome, type ReceiptSearchQuery, ReceiptStatus, type Relation, type ResolvedTargets, type ResourceIdBinding, type ResourceRef, type ResourceScope, type ResourceType, type RiskAssessmentResult, type RiskFactor, type RiskLevel, SDJwtClient, ScopeUnmatchedError, type SecondaryBinding, SimpleRebac, type SlackConfig, StandardActionCategory, type SuggestGrantRequest, type SuggestedAction, type SuggestedConstraints, type SuggestedGrant, type SuggestedResource, type SuggestionRiskLevel, TIER_LIMITS, type TargetBindings, type TargetConstraint, TargetResolver, type TierLimits, type TimeWindowCheckResult, type TimeWindowConstraint, type ToolDefinition, type ToolInvocation, ToolManager, type ToolPermissionRequest, type ToolPermissionVC, type UnifiedResourceType, type UpdateGrantRequest, type UserIdentity, type UserIdentityConfig, type UserIdentityCreateOptions, UserIdentityManager, UserKeyPairManager, type UserTier, VALID_MCP_ACTIONS, VALID_MCP_TOOLS, VCExpiredError, VCManager, VCRevokedError, VCStatus, type VCTemplate, VCType, VPManager, type VPRequest, type VerifiablePresentation, type VerificationMethod, type VerifiedVcClaims, type VerifyInvitationResponse, type VerifyReceiptRequest, type VerifyReceiptResult, type VerifySDJWTVCResult, type VpVerifier, WRITE_ACTION_NAMES, type WeeklyReportData, type WeeklyReportSummary, buildGrantIdFields, canonicalizeAction, checkPermissionWithVP, configure, createAjv, createDidJwk, credentialStatusToVCStatus, defaultConstraintEvaluator, evaluateConstraints, extractProjectKey, extractPublicKey, extractPublicKeyFromDid, generateActionParamsDisplay, generateActionSummary, generateKeyPair, generateNonce, getActionAliases, getAllActionForms, getAllValidMcpActionNames, getClient, getDefaultDisclosureFields, getKeyIdFromDid, getRequiredRelations, getRequiredScopes, getTierLimits, getValidMcpActionNames, grantConstraintsToPermissionConstraints, grantToPermissionRules, indexActions, indexCapabilities, isActionEquivalent, isCanonicalProvider, isUnlimited, isValidDidJwk, isValidProvider, isWriteAction, loadActionRegistryFromFile, loadActionRegistryFromObject, normalizeMcpActionName, parseGrantAction, parseGrantResourceType, planDelegationForVC, publicKeysMatch, resolveActionsFromSelection, resolveProvider, resolveResourceType, resolveUserTier, signJWT, validateRegistryObject, vcStatusToCredentialStatus, verifyJWT, version };
8610
+ export { type ABACPolicyEngine, ACTION_PARAMS_MAX_SIZE, ACTION_PREFIXES, ACTION_REGISTRY, AIdentityClient, type AIdentityConfig, AIdentityError, type APIAgent, type APICredential, APIVCManager, type AbacDecision, type AbacInput, type AcceptInvitationRequest, type AckEventResponse, type ActionInputSchema, type ActionMapping, type ActionMeta, type ActionParamDisplay, type ActionRegistry, type ActionRiskLevel, type Agent, type AgentCreateOptions, type AgentDIDConfig, AgentDIDManager, AgentManager, AgentStatus, AgentType, type AgentWithId, AllowAllAbac, type AnyProvider, type ApiKeyValidationResult, type AuditEvent, type AuditQuery, AuthProvider, type AuthState, AuthenticationError, type AutoApproveConfig, type BindingSource, CANONICAL_PROVIDERS, type CanonicalProvider, type CapabilityMeta, type CheckGrantPermissionRequest, type CheckGrantPermissionResult, type CheckPermissionInput, type CheckPermissionResult, type CollectContextRequest, type ConfirmGrantSuggestionRequest, type ConnectorAction, type ConnectorConfig, type ConnectorExecutionContext, type ConnectorResponse, type ConnectorResponseMetadata, type ConnectorTokenConfig, type ConstraintEvaluationResult, ConstraintEvaluator, type ConstraintEvaluatorOptions, type ConstraintViolation, type ConstraintWarning, type ContextBindingSource, type ContextProvider, type CreateGrantRequest, type CreateInvitationRequest, type CreateReceiptRequest, type CredentialRef, CredentialStatus, type CredentialStore, CredentialType, DEFAULT_CONSTRAINTS_BY_RISK, type DIDDocument, type DataAccessVC, type DecisionTrace, type DelegationVC, DeviceEnrollManager, type DeviceEnrollPollResult, type DeviceEnrollServerSideParams, type DeviceEnrollStartParams, type DeviceEnrollStartResult, type DisclosureFields, DummyCreds, DummyVpVerifier, type EmployeeVPRequest, type EvaluationContext, type ExternalActionRequest, FilesystemKeyStorage, GATEWAY_ERROR_CODE, GatewayClient, GatewayError, type GatewayErrorCode, type GatewayEvent, type GetEventsOptions, type GetEventsResponse, type GitHubConfig, type GoogleConfig, type Grant, type GrantConstraints, type GrantResource, GrantResourceType, GrantScope, GrantStatus, type GrantUsage, type IConnectorService, type IStateStore, type Intent, type IntentEvaluationResult, type IntentObligation, type IntentResource, InvalidVPError, type Invitation, type InvitationRole, InvitationStatus, type IssueSDJWTVCRequest, type IssueSDJWTVCResult, type JiraBoard, type JiraConfig, type JiraIssue, type JiraIssueType, type JiraProject, type JiraSprint, type JiraStatus, type JiraUser, type JiraWorklog, type JsonSchema, JsonStateStore, KeyManager, type KeyPairGenerationResult, type KeyStorageConfig, type KeyStorageProvider, LEGACY_RESOURCE_TYPE_MAP, type MemoryDocument, MemoryKeyStorage, MemoryManager, type MemoryQuery, type MemoryQueryResult, NetworkError, type NormalizeIntentRequest, type NormalizedIntent, type OAuthAuthorizeRequest, type OAuthCallbackParams, type OAuthConnection, OAuthProvider, type OAuthToken, type OrganizationConfig, type OrganizationPermission, type OrganizationPolicy, type OrganizationVC, PROVIDER_ALIASES, type ParamBindingSource, type ParsedResourceType, type PermissionConstraints, type PermissionMode, type PermissionResource, type PermissionRule, type PermissionTimeConstraint, type PermissionVcClaims, type PlanDelegationInput, type PlanDelegationResult, type PolicyCondition, type PolicyEvaluationResult, type PolicyInput, type PolicyRule, type PolicyTarget, type Provider, REAUTH_REQUIRED_ACTION, RESOURCE_TYPES, type ReBACChecker, type Receipt, type ReceiptListResult, type ReceiptOutcome, type ReceiptSearchQuery, ReceiptStatus, type Relation, type ResolvedTargets, type ResourceIdBinding, type ResourceRef, type ResourceScope, type ResourceType, type RiskAssessmentResult, type RiskFactor, type RiskLevel, SDJwtClient, ScopeUnmatchedError, type SecondaryBinding, SimpleRebac, type SlackConfig, StandardActionCategory, type SuggestGrantRequest, type SuggestedAction, type SuggestedConstraints, type SuggestedGrant, type SuggestedResource, type SuggestionRiskLevel, TIER_LIMITS, type TargetBindings, type TargetConstraint, TargetResolver, type TierLimits, type TimeWindowCheckResult, type TimeWindowConstraint, type ToolDefinition, type ToolInvocation, ToolManager, type ToolPermissionRequest, type ToolPermissionVC, type UnifiedResourceType, type UpdateGrantRequest, type UserIdentity, type UserIdentityConfig, type UserIdentityCreateOptions, UserIdentityManager, UserKeyPairManager, type UserTier, VALID_MCP_ACTIONS, VALID_MCP_TOOLS, VCExpiredError, VCManager, VCRevokedError, VCStatus, type VCTemplate, VCType, VPManager, type VPRequest, type VerifiablePresentation, type VerificationMethod, type VerifiedVcClaims, type VerifyInvitationResponse, type VerifyReceiptRequest, type VerifyReceiptResult, type VerifySDJWTVCResult, type VpVerifier, WRITE_ACTION_NAMES, type WeeklyReportData, type WeeklyReportSummary, buildGrantIdFields, canonicalizeAction, checkPermissionWithVP, configure, createAjv, createDidJwk, credentialStatusToVCStatus, defaultConstraintEvaluator, evaluateConstraints, extractProjectKey, extractPublicKey, extractPublicKeyFromDid, generateActionParamsDisplay, generateActionSummary, generateKeyPair, generateNonce, getActionAliases, getAllActionForms, getAllValidMcpActionNames, getClient, getDefaultDisclosureFields, getKeyIdFromDid, getRequiredRelations, getRequiredScopes, getTierLimits, getValidMcpActionNames, grantConstraintsToPermissionConstraints, grantToPermissionRules, indexActions, indexCapabilities, isActionEquivalent, isCanonicalProvider, isUnlimited, isValidDidJwk, isValidProvider, isWriteAction, loadActionRegistryFromFile, loadActionRegistryFromObject, normalizeMcpActionName, parseGrantAction, parseGrantResourceType, planDelegationForVC, publicKeysMatch, resolveActionsFromSelection, resolveProvider, resolveResourceType, resolveUserTier, signJWT, validateRegistryObject, vcStatusToCredentialStatus, verifyJWT, version };
package/dist/index.js CHANGED
@@ -52,6 +52,7 @@ __export(index_exports, {
52
52
  DummyCreds: () => DummyCreds,
53
53
  DummyVpVerifier: () => DummyVpVerifier,
54
54
  FilesystemKeyStorage: () => FilesystemKeyStorage,
55
+ GATEWAY_ERROR_CODE: () => GATEWAY_ERROR_CODE,
55
56
  GatewayClient: () => GatewayClient,
56
57
  GatewayError: () => GatewayError,
57
58
  GrantResourceType: () => GrantResourceType,
@@ -67,6 +68,7 @@ __export(index_exports, {
67
68
  NetworkError: () => NetworkError,
68
69
  OAuthProvider: () => OAuthProvider,
69
70
  PROVIDER_ALIASES: () => PROVIDER_ALIASES,
71
+ REAUTH_REQUIRED_ACTION: () => REAUTH_REQUIRED_ACTION,
70
72
  RESOURCE_TYPES: () => RESOURCE_TYPES,
71
73
  ReceiptStatus: () => ReceiptStatus,
72
74
  SDJwtClient: () => SDJwtClient,
@@ -4944,7 +4946,10 @@ var ACTION_REGISTRY = {
4944
4946
  subject: { type: "string", minLength: 1 },
4945
4947
  body: { type: "string", minLength: 1 },
4946
4948
  cc: { type: "string" },
4947
- bcc: { type: "string" }
4949
+ bcc: { type: "string" },
4950
+ threadId: { type: "string" },
4951
+ inReplyTo: { type: "string" },
4952
+ references: { type: "string" }
4948
4953
  },
4949
4954
  required: ["to", "subject", "body"],
4950
4955
  additionalProperties: false
@@ -4974,7 +4979,10 @@ var ACTION_REGISTRY = {
4974
4979
  subject: { type: "string", minLength: 1 },
4975
4980
  body: { type: "string", minLength: 1 },
4976
4981
  cc: { type: "string" },
4977
- bcc: { type: "string" }
4982
+ bcc: { type: "string" },
4983
+ threadId: { type: "string" },
4984
+ inReplyTo: { type: "string" },
4985
+ references: { type: "string" }
4978
4986
  },
4979
4987
  required: ["to", "subject", "body"],
4980
4988
  additionalProperties: false
@@ -5905,6 +5913,17 @@ function normalizeMcpActionName(toolName, actionName) {
5905
5913
  return actionName;
5906
5914
  }
5907
5915
 
5916
+ // src/registry/reauth-constants.ts
5917
+ var REAUTH_REQUIRED_ACTION = "reauth_required";
5918
+ var GATEWAY_ERROR_CODE = {
5919
+ /** Upstream OAuth token is revoked — the user must re-auth at the SaaS provider. */
5920
+ REAUTH_REQUIRED: "REAUTH_REQUIRED",
5921
+ /** Local VC/VP is invalid (expired, malformed, signature mismatch). Try VC reissuance. */
5922
+ CREDENTIAL_INVALID: "CREDENTIAL_INVALID",
5923
+ /** VC allowed a different resource than the request targeted. Try a new approval. */
5924
+ RESOURCE_MISMATCH: "RESOURCE_MISMATCH"
5925
+ };
5926
+
5908
5927
  // src/registry/action-summary.ts
5909
5928
  var ACTION_DISPLAY_CONFIGS = {
5910
5929
  "slack.message.post": {
@@ -6185,6 +6204,7 @@ var version = "0.0.1";
6185
6204
  DummyCreds,
6186
6205
  DummyVpVerifier,
6187
6206
  FilesystemKeyStorage,
6207
+ GATEWAY_ERROR_CODE,
6188
6208
  GatewayClient,
6189
6209
  GatewayError,
6190
6210
  GrantResourceType,
@@ -6200,6 +6220,7 @@ var version = "0.0.1";
6200
6220
  NetworkError,
6201
6221
  OAuthProvider,
6202
6222
  PROVIDER_ALIASES,
6223
+ REAUTH_REQUIRED_ACTION,
6203
6224
  RESOURCE_TYPES,
6204
6225
  ReceiptStatus,
6205
6226
  SDJwtClient,