@vess-id/ai-identity 0.5.0-alpha.8 → 0.5.0-alpha.9

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
@@ -4230,6 +4230,7 @@ declare const ACTION_REGISTRY: {
4230
4230
  oldest?: undefined;
4231
4231
  limit?: undefined;
4232
4232
  inclusive?: undefined;
4233
+ cursor?: undefined;
4233
4234
  ts?: undefined;
4234
4235
  title?: undefined;
4235
4236
  body?: undefined;
@@ -4322,6 +4323,7 @@ declare const ACTION_REGISTRY: {
4322
4323
  oldest?: undefined;
4323
4324
  limit?: undefined;
4324
4325
  inclusive?: undefined;
4326
+ cursor?: undefined;
4325
4327
  ts?: undefined;
4326
4328
  title?: undefined;
4327
4329
  body?: undefined;
@@ -4417,6 +4419,7 @@ declare const ACTION_REGISTRY: {
4417
4419
  oldest?: undefined;
4418
4420
  limit?: undefined;
4419
4421
  inclusive?: undefined;
4422
+ cursor?: undefined;
4420
4423
  ts?: undefined;
4421
4424
  title?: undefined;
4422
4425
  body?: undefined;
@@ -4522,6 +4525,110 @@ declare const ACTION_REGISTRY: {
4522
4525
  icon_emoji?: undefined;
4523
4526
  blocks?: undefined;
4524
4527
  userId?: undefined;
4528
+ cursor?: undefined;
4529
+ ts?: undefined;
4530
+ title?: undefined;
4531
+ body?: undefined;
4532
+ labels?: undefined;
4533
+ assignees?: undefined;
4534
+ state?: undefined;
4535
+ sort?: undefined;
4536
+ direction?: undefined;
4537
+ per_page?: undefined;
4538
+ page?: undefined;
4539
+ issue_number?: undefined;
4540
+ query?: undefined;
4541
+ maxResults?: undefined;
4542
+ messageId?: undefined;
4543
+ to?: undefined;
4544
+ subject?: undefined;
4545
+ cc?: undefined;
4546
+ bcc?: undefined;
4547
+ messageIds?: undefined;
4548
+ calendarId?: undefined;
4549
+ timeMin?: undefined;
4550
+ timeMax?: undefined;
4551
+ eventId?: undefined;
4552
+ summary?: undefined;
4553
+ description?: undefined;
4554
+ start?: undefined;
4555
+ end?: undefined;
4556
+ attendees?: undefined;
4557
+ location?: undefined;
4558
+ recent?: undefined;
4559
+ projectKeyOrId?: undefined;
4560
+ type?: undefined;
4561
+ boardId?: undefined;
4562
+ sprintId?: undefined;
4563
+ jql?: undefined;
4564
+ startAt?: undefined;
4565
+ issueIdOrKey?: undefined;
4566
+ projectKey?: undefined;
4567
+ issueTypeName?: undefined;
4568
+ priority?: undefined;
4569
+ assigneeAccountId?: undefined;
4570
+ transitionId?: undefined;
4571
+ file_path?: undefined;
4572
+ content?: undefined;
4573
+ command?: undefined;
4574
+ working_directory?: undefined;
4575
+ env_profile?: undefined;
4576
+ timeout_seconds?: undefined;
4577
+ };
4578
+ required: string[];
4579
+ additionalProperties: boolean;
4580
+ };
4581
+ constraints: {
4582
+ rate_bucket: string;
4583
+ };
4584
+ effects: string[];
4585
+ risk: string;
4586
+ target_bindings: {
4587
+ resource_id: {
4588
+ source: "param";
4589
+ param: string;
4590
+ required?: undefined;
4591
+ key?: undefined;
4592
+ multi?: undefined;
4593
+ separator?: undefined;
4594
+ default?: undefined;
4595
+ fallback_param?: undefined;
4596
+ derive?: undefined;
4597
+ };
4598
+ secondary?: undefined;
4599
+ };
4600
+ version: string;
4601
+ } | {
4602
+ action: string;
4603
+ resource_type: string;
4604
+ required_relations: string[];
4605
+ required_scopes: string[];
4606
+ capability: string;
4607
+ input_schema: {
4608
+ type: string;
4609
+ properties: {
4610
+ channel: {
4611
+ type: string;
4612
+ description: string;
4613
+ };
4614
+ cursor: {
4615
+ type: string;
4616
+ description: string;
4617
+ };
4618
+ limit: {
4619
+ type: string;
4620
+ minimum: number;
4621
+ maximum: number;
4622
+ };
4623
+ text?: undefined;
4624
+ thread_ts?: undefined;
4625
+ username?: undefined;
4626
+ icon_emoji?: undefined;
4627
+ blocks?: undefined;
4628
+ userId?: undefined;
4629
+ latest?: undefined;
4630
+ oldest?: undefined;
4631
+ inclusive?: undefined;
4525
4632
  ts?: undefined;
4526
4633
  title?: undefined;
4527
4634
  body?: undefined;
@@ -4621,6 +4728,7 @@ declare const ACTION_REGISTRY: {
4621
4728
  latest?: undefined;
4622
4729
  oldest?: undefined;
4623
4730
  inclusive?: undefined;
4731
+ cursor?: undefined;
4624
4732
  ts?: undefined;
4625
4733
  title?: undefined;
4626
4734
  body?: undefined;
@@ -4724,6 +4832,7 @@ declare const ACTION_REGISTRY: {
4724
4832
  oldest?: undefined;
4725
4833
  limit?: undefined;
4726
4834
  inclusive?: undefined;
4835
+ cursor?: undefined;
4727
4836
  title?: undefined;
4728
4837
  body?: undefined;
4729
4838
  labels?: undefined;
@@ -4822,6 +4931,7 @@ declare const ACTION_REGISTRY: {
4822
4931
  oldest?: undefined;
4823
4932
  limit?: undefined;
4824
4933
  inclusive?: undefined;
4934
+ cursor?: undefined;
4825
4935
  title?: undefined;
4826
4936
  body?: undefined;
4827
4937
  labels?: undefined;
@@ -4933,6 +5043,7 @@ declare const ACTION_REGISTRY: {
4933
5043
  oldest?: undefined;
4934
5044
  limit?: undefined;
4935
5045
  inclusive?: undefined;
5046
+ cursor?: undefined;
4936
5047
  ts?: undefined;
4937
5048
  state?: undefined;
4938
5049
  sort?: undefined;
@@ -5046,6 +5157,7 @@ declare const ACTION_REGISTRY: {
5046
5157
  oldest?: undefined;
5047
5158
  limit?: undefined;
5048
5159
  inclusive?: undefined;
5160
+ cursor?: undefined;
5049
5161
  ts?: undefined;
5050
5162
  title?: undefined;
5051
5163
  body?: undefined;
@@ -5136,6 +5248,7 @@ declare const ACTION_REGISTRY: {
5136
5248
  oldest?: undefined;
5137
5249
  limit?: undefined;
5138
5250
  inclusive?: undefined;
5251
+ cursor?: undefined;
5139
5252
  ts?: undefined;
5140
5253
  title?: undefined;
5141
5254
  body?: undefined;
@@ -5255,6 +5368,7 @@ declare const ACTION_REGISTRY: {
5255
5368
  oldest?: undefined;
5256
5369
  limit?: undefined;
5257
5370
  inclusive?: undefined;
5371
+ cursor?: undefined;
5258
5372
  ts?: undefined;
5259
5373
  sort?: undefined;
5260
5374
  direction?: undefined;
@@ -5351,6 +5465,7 @@ declare const ACTION_REGISTRY: {
5351
5465
  oldest?: undefined;
5352
5466
  limit?: undefined;
5353
5467
  inclusive?: undefined;
5468
+ cursor?: undefined;
5354
5469
  ts?: undefined;
5355
5470
  title?: undefined;
5356
5471
  body?: undefined;
@@ -5445,6 +5560,7 @@ declare const ACTION_REGISTRY: {
5445
5560
  oldest?: undefined;
5446
5561
  limit?: undefined;
5447
5562
  inclusive?: undefined;
5563
+ cursor?: undefined;
5448
5564
  ts?: undefined;
5449
5565
  title?: undefined;
5450
5566
  body?: undefined;
@@ -5554,6 +5670,7 @@ declare const ACTION_REGISTRY: {
5554
5670
  oldest?: undefined;
5555
5671
  limit?: undefined;
5556
5672
  inclusive?: undefined;
5673
+ cursor?: undefined;
5557
5674
  ts?: undefined;
5558
5675
  title?: undefined;
5559
5676
  labels?: undefined;
@@ -5657,6 +5774,7 @@ declare const ACTION_REGISTRY: {
5657
5774
  oldest?: undefined;
5658
5775
  limit?: undefined;
5659
5776
  inclusive?: undefined;
5777
+ cursor?: undefined;
5660
5778
  ts?: undefined;
5661
5779
  title?: undefined;
5662
5780
  body?: undefined;
@@ -5766,6 +5884,7 @@ declare const ACTION_REGISTRY: {
5766
5884
  oldest?: undefined;
5767
5885
  limit?: undefined;
5768
5886
  inclusive?: undefined;
5887
+ cursor?: undefined;
5769
5888
  ts?: undefined;
5770
5889
  title?: undefined;
5771
5890
  body?: undefined;
@@ -5863,6 +5982,7 @@ declare const ACTION_REGISTRY: {
5863
5982
  oldest?: undefined;
5864
5983
  limit?: undefined;
5865
5984
  inclusive?: undefined;
5985
+ cursor?: undefined;
5866
5986
  ts?: undefined;
5867
5987
  title?: undefined;
5868
5988
  body?: undefined;
@@ -6018,6 +6138,7 @@ declare const ACTION_REGISTRY: {
6018
6138
  oldest?: undefined;
6019
6139
  limit?: undefined;
6020
6140
  inclusive?: undefined;
6141
+ cursor?: undefined;
6021
6142
  ts?: undefined;
6022
6143
  title?: undefined;
6023
6144
  body?: undefined;
@@ -6180,6 +6301,7 @@ declare const ACTION_REGISTRY: {
6180
6301
  oldest?: undefined;
6181
6302
  limit?: undefined;
6182
6303
  inclusive?: undefined;
6304
+ cursor?: undefined;
6183
6305
  ts?: undefined;
6184
6306
  title?: undefined;
6185
6307
  body?: undefined;
@@ -6280,6 +6402,7 @@ declare const ACTION_REGISTRY: {
6280
6402
  oldest?: undefined;
6281
6403
  limit?: undefined;
6282
6404
  inclusive?: undefined;
6405
+ cursor?: undefined;
6283
6406
  ts?: undefined;
6284
6407
  title?: undefined;
6285
6408
  body?: undefined;
@@ -6373,6 +6496,7 @@ declare const ACTION_REGISTRY: {
6373
6496
  oldest?: undefined;
6374
6497
  limit?: undefined;
6375
6498
  inclusive?: undefined;
6499
+ cursor?: undefined;
6376
6500
  ts?: undefined;
6377
6501
  title?: undefined;
6378
6502
  body?: undefined;
@@ -6470,6 +6594,7 @@ declare const ACTION_REGISTRY: {
6470
6594
  oldest?: undefined;
6471
6595
  limit?: undefined;
6472
6596
  inclusive?: undefined;
6597
+ cursor?: undefined;
6473
6598
  ts?: undefined;
6474
6599
  title?: undefined;
6475
6600
  body?: undefined;
@@ -6568,6 +6693,7 @@ declare const ACTION_REGISTRY: {
6568
6693
  oldest?: undefined;
6569
6694
  limit?: undefined;
6570
6695
  inclusive?: undefined;
6696
+ cursor?: undefined;
6571
6697
  ts?: undefined;
6572
6698
  title?: undefined;
6573
6699
  body?: undefined;
@@ -6668,6 +6794,7 @@ declare const ACTION_REGISTRY: {
6668
6794
  oldest?: undefined;
6669
6795
  limit?: undefined;
6670
6796
  inclusive?: undefined;
6797
+ cursor?: undefined;
6671
6798
  ts?: undefined;
6672
6799
  title?: undefined;
6673
6800
  body?: undefined;
@@ -6772,6 +6899,7 @@ declare const ACTION_REGISTRY: {
6772
6899
  oldest?: undefined;
6773
6900
  limit?: undefined;
6774
6901
  inclusive?: undefined;
6902
+ cursor?: undefined;
6775
6903
  ts?: undefined;
6776
6904
  title?: undefined;
6777
6905
  body?: undefined;
@@ -6865,6 +6993,7 @@ declare const ACTION_REGISTRY: {
6865
6993
  oldest?: undefined;
6866
6994
  limit?: undefined;
6867
6995
  inclusive?: undefined;
6996
+ cursor?: undefined;
6868
6997
  ts?: undefined;
6869
6998
  title?: undefined;
6870
6999
  body?: undefined;
@@ -6986,6 +7115,7 @@ declare const ACTION_REGISTRY: {
6986
7115
  oldest?: undefined;
6987
7116
  limit?: undefined;
6988
7117
  inclusive?: undefined;
7118
+ cursor?: undefined;
6989
7119
  ts?: undefined;
6990
7120
  title?: undefined;
6991
7121
  body?: undefined;
@@ -7096,6 +7226,7 @@ declare const ACTION_REGISTRY: {
7096
7226
  oldest?: undefined;
7097
7227
  limit?: undefined;
7098
7228
  inclusive?: undefined;
7229
+ cursor?: undefined;
7099
7230
  ts?: undefined;
7100
7231
  title?: undefined;
7101
7232
  body?: undefined;
@@ -7186,6 +7317,7 @@ declare const ACTION_REGISTRY: {
7186
7317
  oldest?: undefined;
7187
7318
  limit?: undefined;
7188
7319
  inclusive?: undefined;
7320
+ cursor?: undefined;
7189
7321
  ts?: undefined;
7190
7322
  title?: undefined;
7191
7323
  body?: undefined;
@@ -7285,6 +7417,7 @@ declare const ACTION_REGISTRY: {
7285
7417
  oldest?: undefined;
7286
7418
  limit?: undefined;
7287
7419
  inclusive?: undefined;
7420
+ cursor?: undefined;
7288
7421
  ts?: undefined;
7289
7422
  title?: undefined;
7290
7423
  labels?: undefined;
@@ -7383,6 +7516,7 @@ declare const ACTION_REGISTRY: {
7383
7516
  oldest?: undefined;
7384
7517
  limit?: undefined;
7385
7518
  inclusive?: undefined;
7519
+ cursor?: undefined;
7386
7520
  ts?: undefined;
7387
7521
  title?: undefined;
7388
7522
  body?: undefined;
@@ -7488,6 +7622,7 @@ declare const ACTION_REGISTRY: {
7488
7622
  oldest?: undefined;
7489
7623
  limit?: undefined;
7490
7624
  inclusive?: undefined;
7625
+ cursor?: undefined;
7491
7626
  ts?: undefined;
7492
7627
  title?: undefined;
7493
7628
  body?: undefined;
@@ -7579,6 +7714,7 @@ declare const ACTION_REGISTRY: {
7579
7714
  oldest?: undefined;
7580
7715
  limit?: undefined;
7581
7716
  inclusive?: undefined;
7717
+ cursor?: undefined;
7582
7718
  ts?: undefined;
7583
7719
  title?: undefined;
7584
7720
  body?: undefined;
@@ -7676,6 +7812,7 @@ declare const ACTION_REGISTRY: {
7676
7812
  oldest?: undefined;
7677
7813
  limit?: undefined;
7678
7814
  inclusive?: undefined;
7815
+ cursor?: undefined;
7679
7816
  ts?: undefined;
7680
7817
  title?: undefined;
7681
7818
  body?: undefined;
@@ -7783,6 +7920,7 @@ declare const ACTION_REGISTRY: {
7783
7920
  oldest?: undefined;
7784
7921
  limit?: undefined;
7785
7922
  inclusive?: undefined;
7923
+ cursor?: undefined;
7786
7924
  ts?: undefined;
7787
7925
  title?: undefined;
7788
7926
  body?: undefined;
@@ -8266,6 +8404,14 @@ declare function getKeyIdFromDid(did: string): string;
8266
8404
  */
8267
8405
  declare function publicKeysMatch(a: Record<string, unknown>, b: Record<string, unknown>): boolean;
8268
8406
 
8407
+ /**
8408
+ * Extract the project key from a Jira issue key.
8409
+ * Returns the project prefix (e.g., "AIDENTITY" from "AIDENTITY-35") or null if not a valid issue key.
8410
+ *
8411
+ * @remarks Project keys must be at least 2 uppercase characters, matching Jira's requirement.
8412
+ * Single-letter keys (e.g., "A-1") return null.
8413
+ */
8414
+ declare function extractProjectKey(value: string): string | null;
8269
8415
  /**
8270
8416
  * TargetResolver — extracts resource IDs and secondary targets from tool parameters.
8271
8417
  *
@@ -8314,4 +8460,4 @@ declare function getTierLimits(tier: string | undefined | null): TierLimits;
8314
8460
 
8315
8461
  declare const version = "0.0.1";
8316
8462
 
8317
- 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, 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 };
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 };
package/dist/index.d.ts CHANGED
@@ -27,7 +27,7 @@ export type { ActionParamDisplay } from './registry/action-summary';
27
27
  export { generateKeyPair, signJWT, verifyJWT, generateNonce } from './utils/crypto';
28
28
  export { SDJwtClient } from './utils/sdjwt-client';
29
29
  export { createDidJwk, extractPublicKey, extractPublicKeyFromDid, isValidDidJwk, getKeyIdFromDid, publicKeysMatch, } from './did/did-utils';
30
- export { TargetResolver } from './resolver/target-resolver';
30
+ export { TargetResolver, extractProjectKey } from './resolver/target-resolver';
31
31
  export * from './types';
32
32
  export { isWriteAction, WRITE_ACTION_NAMES } from './utils/action-classifier';
33
33
  export { resolveUserTier, getTierLimits, isUnlimited } from './utils/tier-utils';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,eAAe,EAAE,SAAS,EAAE,MAAM,UAAU,CAAA;AAGrD,OAAO,EAAE,SAAS,EAAE,eAAe,EAAE,MAAM,UAAU,CAAA;AAGrD,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAA;AAC1C,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAA;AAC9C,OAAO,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAA;AAC3D,OAAO,EAAE,mBAAmB,EAAE,MAAM,kCAAkC,CAAA;AACtE,OAAO,EAAE,kBAAkB,EAAE,MAAM,kCAAkC,CAAA;AACrE,YAAY,EAAE,uBAAuB,EAAE,MAAM,kCAAkC,CAAA;AAC/E,OAAO,EACL,mBAAmB,EACnB,uBAAuB,EACvB,4BAA4B,E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,MAAM,oBAAoB,CAAA;AAGhF,eAAO,MAAM,OAAO,UAAU,CAAA"}
package/dist/index.js CHANGED
@@ -96,6 +96,7 @@ __export(index_exports, {
96
96
  credentialStatusToVCStatus: () => credentialStatusToVCStatus,
97
97
  defaultConstraintEvaluator: () => defaultConstraintEvaluator,
98
98
  evaluateConstraints: () => evaluateConstraints,
99
+ extractProjectKey: () => extractProjectKey,
99
100
  extractPublicKey: () => extractPublicKey,
100
101
  extractPublicKeyFromDid: () => extractPublicKeyFromDid,
101
102
  generateActionParamsDisplay: () => generateActionParamsDisplay,
@@ -4686,11 +4687,39 @@ var ACTION_REGISTRY = {
4686
4687
  },
4687
4688
  version: "1.0.0"
4688
4689
  },
4690
+ {
4691
+ action: "slack.message.read_paginated",
4692
+ resource_type: "slack:channel",
4693
+ required_relations: ["viewer", "editor", "admin", "owner"],
4694
+ required_scopes: ["channels:history", "groups:history"],
4695
+ capability: "slack.read.basic",
4696
+ input_schema: {
4697
+ type: "object",
4698
+ properties: {
4699
+ channel: { type: "string", description: "Channel ID, channel name, or channel name with # prefix" },
4700
+ cursor: { type: "string", description: "Pagination cursor from previous response" },
4701
+ limit: { type: "integer", minimum: 1, maximum: 30 }
4702
+ },
4703
+ required: ["channel"],
4704
+ additionalProperties: false
4705
+ },
4706
+ constraints: { rate_bucket: "slack.read" },
4707
+ effects: ["Read:Message"],
4708
+ risk: "low",
4709
+ target_bindings: {
4710
+ resource_id: { source: "param", param: "channel" }
4711
+ },
4712
+ version: "1.0.0"
4713
+ },
4689
4714
  {
4690
4715
  action: "slack.batch.read",
4691
4716
  resource_type: "slack:channel",
4692
4717
  required_relations: ["viewer", "editor", "admin", "owner"],
4693
- required_scopes: ["channels:read", "groups:read", "channels:history", "groups:history"],
4718
+ // Documentation only NOT used for runtime access control.
4719
+ // Actual permission granting uses parseSlackScopes (oauth.service.ts) with OR-logic:
4720
+ // any read scope + any history scope grants slack.batch.read.
4721
+ // Tokens with partial scopes (e.g. channels:read + channels:history) will still receive this permission.
4722
+ required_scopes: ["channels:read", "groups:read", "im:read", "mpim:read", "channels:history", "groups:history", "im:history", "mpim:history"],
4694
4723
  capability: "slack.read.basic",
4695
4724
  input_schema: {
4696
4725
  type: "object",
@@ -5656,7 +5685,7 @@ var ACTION_REGISTRY = {
5656
5685
  {
5657
5686
  capability: "slack.read.basic",
5658
5687
  description: "Read channels, messages, and user info",
5659
- includes: ["slack.channel.read", "slack.user.read", "slack.message.read", "slack.batch.read"],
5688
+ includes: ["slack.channel.read", "slack.user.read", "slack.message.read", "slack.message.read_paginated", "slack.batch.read"],
5660
5689
  version: "1.0.0"
5661
5690
  },
5662
5691
  {
@@ -6028,6 +6057,11 @@ function generateActionParamsDisplay(action, params) {
6028
6057
  }
6029
6058
 
6030
6059
  // src/resolver/target-resolver.ts
6060
+ var PROJECT_KEY_PATTERN = /^([A-Z][A-Z0-9_]+)-\d+$/;
6061
+ function extractProjectKey(value) {
6062
+ const match = value.match(PROJECT_KEY_PATTERN);
6063
+ return match ? match[1] : null;
6064
+ }
6031
6065
  var TargetResolver = class {
6032
6066
  /**
6033
6067
  * Resolve target bindings against tool invocation parameters.
@@ -6065,10 +6099,7 @@ var TargetResolver = class {
6065
6099
  if (typeof rawValue !== "string") return { value: null };
6066
6100
  let strValue = rawValue;
6067
6101
  if (paramBinding.derive === "project_key") {
6068
- const match = strValue.match(/^([A-Z][A-Z0-9_]+)-\d+$/);
6069
- if (match) {
6070
- strValue = match[1];
6071
- }
6102
+ strValue = extractProjectKey(strValue) ?? strValue;
6072
6103
  }
6073
6104
  if (paramBinding.multi) {
6074
6105
  const separator = paramBinding.separator ?? ",";
@@ -6197,6 +6228,7 @@ var version = "0.0.1";
6197
6228
  credentialStatusToVCStatus,
6198
6229
  defaultConstraintEvaluator,
6199
6230
  evaluateConstraints,
6231
+ extractProjectKey,
6200
6232
  extractPublicKey,
6201
6233
  extractPublicKeyFromDid,
6202
6234
  generateActionParamsDisplay,