@agents24/node 0.5.9 → 0.5.11

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/compatibility.json +7 -7
  2. package/dist/bff.cjs +81 -57
  3. package/dist/bff.cjs.map +1 -1
  4. package/dist/bff.d.cts +1 -1
  5. package/dist/bff.d.ts +1 -1
  6. package/dist/bff.js +81 -57
  7. package/dist/bff.js.map +1 -1
  8. package/dist/{client-DA9J56wi.d.cts → client-DTdpRgGB.d.cts} +111 -1
  9. package/dist/{client-DA9J56wi.d.ts → client-DTdpRgGB.d.ts} +111 -1
  10. package/dist/index.cjs +65 -18
  11. package/dist/index.cjs.map +1 -1
  12. package/dist/index.d.cts +2 -2
  13. package/dist/index.d.ts +2 -2
  14. package/dist/index.js +65 -18
  15. package/dist/index.js.map +1 -1
  16. package/dist/server.cjs +11 -1
  17. package/dist/server.cjs.map +1 -1
  18. package/dist/server.d.cts +6 -1
  19. package/dist/server.d.ts +6 -1
  20. package/dist/server.js +11 -2
  21. package/dist/server.js.map +1 -1
  22. package/dist/types/bff-values.d.ts +6 -0
  23. package/dist/types/bff-values.d.ts.map +1 -0
  24. package/dist/types/bff.d.ts.map +1 -1
  25. package/dist/types/client.d.ts +2 -0
  26. package/dist/types/client.d.ts.map +1 -1
  27. package/dist/types/delegations.d.ts +80 -0
  28. package/dist/types/delegations.d.ts.map +1 -0
  29. package/dist/types/generated/delegations.d.ts +18 -0
  30. package/dist/types/generated/delegations.d.ts.map +1 -0
  31. package/dist/types/generated/manifest.d.ts +1 -1
  32. package/dist/types/generated/manifest.d.ts.map +1 -1
  33. package/dist/types/generated/resourceInstallations.d.ts.map +1 -1
  34. package/dist/types/index.d.ts +1 -0
  35. package/dist/types/index.d.ts.map +1 -1
  36. package/dist/types/server.d.ts +5 -0
  37. package/dist/types/server.d.ts.map +1 -1
  38. package/dist/types/types.d.ts +15 -0
  39. package/dist/types/types.d.ts.map +1 -1
  40. package/package.json +4 -4
@@ -24,6 +24,101 @@ declare class Agents24SDKError extends Error {
24
24
  get details(): Readonly<Record<string, unknown>>;
25
25
  }
26
26
 
27
+ declare class DelegationsNamespace {
28
+ protected readonly http: Agents24HttpClient;
29
+ constructor(http: Agents24HttpClient);
30
+ history(runId: string, handle: string, options?: {
31
+ before?: number;
32
+ limit?: number;
33
+ }): Promise<DelegationHistory>;
34
+ list(runId: string): Promise<DelegationTaskList>;
35
+ inspect(runId: string, handle: string): Promise<DelegationTask>;
36
+ events(runId: string, options?: {
37
+ after?: number;
38
+ limit?: number;
39
+ }): Promise<DelegationEvents>;
40
+ act(runId: string, handle: string, request: DelegationActionRequest, options?: RequestOptions): Promise<Record<string, unknown>>;
41
+ }
42
+
43
+ type DelegationStatus = "queued" | "running" | "waiting" | "paused" | "interrupt_requested" | "interrupted" | "completed" | "failed" | "cancelling" | "cancelled";
44
+ interface DelegationTask {
45
+ handle: string;
46
+ name: string;
47
+ path: string;
48
+ status: DelegationStatus;
49
+ background: boolean;
50
+ depth: number;
51
+ parent_node_id: string;
52
+ ownership_generation: number;
53
+ owner_run_id: string;
54
+ root_run_id: string;
55
+ origin: Record<string, unknown>;
56
+ run_id: string | null;
57
+ thread_id: string | null;
58
+ result_run_id: string | null;
59
+ updated_at: string;
60
+ capabilities: {
61
+ cancel: boolean;
62
+ interrupt: boolean;
63
+ };
64
+ result?: {
65
+ text: string;
66
+ failure_id: string | null;
67
+ };
68
+ invocations?: Array<{
69
+ run_id: string;
70
+ status: string;
71
+ usage: Record<string, unknown>;
72
+ }>;
73
+ pending_questions?: Array<{
74
+ interrupt_id: string;
75
+ kind: string;
76
+ can_answer: boolean;
77
+ request: Record<string, unknown>;
78
+ }>;
79
+ }
80
+ type DelegationAction = {
81
+ action: "interrupt" | "cancel";
82
+ };
83
+ type DelegationActionRequest = DelegationAction & {
84
+ operation_id: string;
85
+ };
86
+ interface DelegationTaskList {
87
+ tasks: DelegationTask[];
88
+ }
89
+ interface DelegationHistoryTurn {
90
+ id: string;
91
+ run_id: string;
92
+ turn_index: number;
93
+ status: DelegationStatus;
94
+ assignment_instruction: string;
95
+ sender: "parent";
96
+ created_at: string;
97
+ user_input_text: string | null;
98
+ assistant_output_text: string | null;
99
+ response_blocks: Array<Record<string, unknown>>;
100
+ }
101
+ interface DelegationHistory {
102
+ handle: string;
103
+ parent_agent_id: string;
104
+ kind: string;
105
+ turns: DelegationHistoryTurn[];
106
+ paging: {
107
+ has_more: boolean;
108
+ next_before_turn_index: number | null;
109
+ };
110
+ }
111
+ interface DelegationEvents {
112
+ schema_version: "agents24.delegation.events.v1";
113
+ cursor: number;
114
+ events: Array<{
115
+ seq: number;
116
+ kind: string;
117
+ task: DelegationTask;
118
+ }>;
119
+ snapshot: DelegationTask[];
120
+ }
121
+
27
122
  type Agents24NodeOptions = {
28
123
  baseUrl: string;
29
124
  apiKey: string;
@@ -476,6 +571,12 @@ type RunStatus = {
476
571
  id: string;
477
572
  status: string;
478
573
  result?: unknown;
574
+ assistant_output?: {
575
+ text: string | null;
576
+ final_output: unknown;
577
+ final_output_available: boolean;
578
+ };
579
+ model_context_summary?: Record<string, unknown>;
479
580
  failure?: FailureView | null;
480
581
  checkpoint?: Record<string, unknown> | null;
481
582
  run_usage?: Record<string, unknown>;
@@ -737,6 +838,8 @@ type ResourcePackageImportUpload = ResourcePackageUpload & {
737
838
  };
738
839
  type ResourceInstallationPlanUpload = ResourcePackageUpload & {
739
840
  prune?: boolean;
841
+ integrationMode?: "publish-only" | "bff" | "client-deployment";
842
+ primaryResourceKey?: string;
740
843
  };
741
844
  type ResourceInstallationPullChange = {
742
845
  status: "A" | "M" | "D";
@@ -975,12 +1078,18 @@ type ResourceInstallationCreateRequest = {
975
1078
  package_name: string;
976
1079
  operation_id: string;
977
1080
  };
1081
+ type ResourceInstallationApplication = {
1082
+ integration_mode: "publish-only" | "bff" | "client-deployment";
1083
+ primary_resource_key: string | null;
1084
+ };
978
1085
  type ResourceInstallationPlan = {
979
1086
  installation_id: string | null;
980
1087
  operation_id: string;
981
1088
  package_id: string;
982
1089
  package_name: string;
983
1090
  package_hash: string;
1091
+ application: ResourceInstallationApplication;
1092
+ pending_selections: Array<Record<string, unknown>>;
984
1093
  actions: Array<Record<string, unknown>>;
985
1094
  external_requirements: Array<Record<string, unknown>>;
986
1095
  artifact_actions: Array<Record<string, unknown>>;
@@ -1380,6 +1489,7 @@ declare class Agents24 {
1380
1489
  readonly agents: AgentsNamespace;
1381
1490
  readonly embed: EmbedNamespace;
1382
1491
  readonly runs: RunsNamespace;
1492
+ readonly delegations: DelegationsNamespace;
1383
1493
  readonly resourcePackages: ResourcePackagesNamespace;
1384
1494
  readonly resourceInstallations: ResourceInstallationsNamespace;
1385
1495
  readonly clientDeployments: ClientDeploymentsNamespace;
@@ -1392,4 +1502,4 @@ declare class Agents24 {
1392
1502
  graph(): GraphBuilder;
1393
1503
  }
1394
1504
 
1395
- export { type EffectiveResourcePolicy as $, Agents24 as A, type BackendSessionRequestOptions as B, type ClearCustomerResourcePolicyAssignmentResult as C, type ClientDeploymentListQuery as D, type ClientDeploymentListResponse as E, type ClientNativeProfile as F, type ClientRuntimeNativeProfileInput as G, type ClientRuntimeOidcConfig as H, type ClientRuntimePolicyInput as I, type ClientSessionCredentials as J, type ControlPlaneAgentRunRequest as K, type ControlPlaneRunEventsResponse as L, type ConversationRunRequest as M, type ConversationRunResult as N, type ConversationRuntimeSelectionRequest as O, type ConversationRuntimeSelectionResult as P, type ConversationThreadOptions as Q, type CreateBackendClientSessionRequest as R, type CreateClientDeploymentRequest as S, type CustomerIdentityRequest as T, type CustomerPrincipalRefRequest as U, type CustomerProfile as V, type CustomerProfileList as W, type CustomerProfilePatch as X, type CustomerProfileSearchOptions as Y, type CustomerResourcePolicyAssignment as Z, type EffectiveCustomerResourcePolicyRequest as _, type AgentCreateRequest as a, type ResourcePackageImportPreview as a$, type EmbedAgentAliasResolution as a0, type EmbedAttachmentContentAccessRequest as a1, type EmbedCustomerPrincipalResolveRequest as a2, type EmbedCustomerPrincipalResolveResponse as a3, type EmbedResourcePolicyRequest as a4, type EmbedRunCancelOptions as a5, type EmbedRunStartRequest as a6, type EmbedRuntimeBootstrap as a7, type EmbedStreamRequest as a8, type EmbeddedResponseFeedbackInput as a9, type ResourceCallableBindingStatus as aA, type ResourceCandidateList as aB, type ResourceInstallation as aC, type ResourceInstallationApplyRequest as aD, type ResourceInstallationBinding as aE, type ResourceInstallationCreateRequest as aF, type ResourceInstallationDeploymentRequest as aG, type ResourceInstallationLinkRequest as aH, type ResourceInstallationList as aI, type ResourceInstallationOperation as aJ, type ResourceInstallationPlan as aK, type ResourceInstallationPlanUpload as aL, type ResourceInstallationPublication as aM, type ResourceInstallationPublishRequest as aN, type ResourceInstallationPullAcceptRequest as aO, type ResourceInstallationPullChange as aP, type ResourceInstallationPullPayload as aQ, type ResourceInstallationPullPlan as aR, type ResourceInstallationResourceListOptions as aS, type ResourceInstallationSecretStatus as aT, type ResourceInstallationSecretsRequest as aU, type ResourcePackageArchive as aV, type ResourcePackageCandidateOptions as aW, type ResourcePackageDependency as aX, type ResourcePackageDiagnostic as aY, type ResourcePackageExportPlan as aZ, type ResourcePackageExportRequest as a_, type FailureCategory as aa, type FailureView as ab, type FeedbackRating as ac, type FeedbackReason as ad, GraphBuilder as ae, type GraphDefinition as af, type GraphEdge as ag, type GraphHints as ah, type GraphNode as ai, type GraphValueRef as aj, type HitlAction as ak, type HitlAnswer as al, type LatestOrPinnedPolicy as am, type McpAuthStartRequest as an, type McpAuthStartResult as ao, type MultiAgentThreadListRequest as ap, type MultiAgentThreadSummaryEventOptions as aq, type NativePlatform as ar, type NodeAuthoringSpec as as, type NodeCatalogItem as at, type NodeCatalogResponse as au, type NodeSchemaResponse as av, type PortableResourceKind as aw, type RequestOptions as ax, type ResetResourcePolicyQuotaRequest as ay, type ResourceCallableBinding as az, AgentDefinitionBuilder as b, type ResourcePackageImportResult as b0, type ResourcePackageImportUpload as b1, type ResourcePackageUpload as b2, type ResourcePackageValidationResult as b3, type ResourcePolicyList as b4, type ResourcePolicyQuotaSchedule as b5, type ResourcePolicyQuotaScheduleResult as b6, type ResourcePolicySubjectRef as b7, type ResourcePolicySummary as b8, type ResourceSelector as b9, type UpdateClientDeploymentRequest as bA, type WorkflowInputDefinition as bB, type ResourceToolExport as ba, type ResponseFeedback as bb, type ResponseFeedbackResult as bc, type ResumeRunRequest as bd, type RunCancelOptions as be, type RunContextOptions as bf, type RunStatus as bg, type RunTrace as bh, type ServerAttachmentUploadOptions as bi, type ServerEmbedAttachmentUploadOptions as bj, type SetCustomerResourcePolicyAssignmentRequest as bk, type SetResourcePolicyQuotaScheduleRequest as bl, type StartRunResult as bm, type StateVariableDefinition as bn, type StreamRequestOptions as bo, type StreamResult as bp, type ThreadDeleteOptions as bq, type ThreadDetailOptions as br, type ThreadListOptions as bs, type ThreadSummaryEventOptions as bt, type TraceContent as bu, type TraceError as bv, type TraceSpan as bw, type TraceSpanKind as bx, type TraceSpanStatus as by, type TraceView as bz, type AgentDefinitionOptions as c, type AgentListResponse as d, type AgentRef as e, type AgentResponse as f, type AgentStreamRequest as g, type AgentSummary as h, type AgentToolsetAttachment as i, type AgentUpdateRequest as j, type AgentValidationIssue as k, type AgentValidationResult as l, Agents24SDKError as m, type Agents24NodeErrorKind as n, type Agents24NodeOptions as o, type Agents24Options as p, type Agents24SDKErrorKind as q, type Agents24SDKSerializedError as r, type ArtifactDevelopmentSession as s, type ArtifactDevelopmentSessionAdmission as t, type ArtifactDevelopmentSessionPrepareRequest as u, type AttachRunRequest as v, type AttachmentContentAccessRequest as w, type BranchingHint as x, type ClientAuthMode as y, type ClientDeployment as z };
1505
+ export { type DelegationActionRequest as $, Agents24 as A, type BackendSessionRequestOptions as B, type ClearCustomerResourcePolicyAssignmentResult as C, type ClientDeploymentListQuery as D, type ClientDeploymentListResponse as E, type ClientNativeProfile as F, type ClientRuntimeNativeProfileInput as G, type ClientRuntimeOidcConfig as H, type ClientRuntimePolicyInput as I, type ClientSessionCredentials as J, type ControlPlaneAgentRunRequest as K, type ControlPlaneRunEventsResponse as L, type ConversationRunRequest as M, type ConversationRunResult as N, type ConversationRuntimeSelectionRequest as O, type ConversationRuntimeSelectionResult as P, type ConversationThreadOptions as Q, type CreateBackendClientSessionRequest as R, type CreateClientDeploymentRequest as S, type CustomerIdentityRequest as T, type CustomerPrincipalRefRequest as U, type CustomerProfile as V, type CustomerProfileList as W, type CustomerProfilePatch as X, type CustomerProfileSearchOptions as Y, type CustomerResourcePolicyAssignment as Z, type DelegationAction as _, type AgentCreateRequest as a, type ResourceInstallationResourceListOptions as a$, type DelegationEvents as a0, type DelegationHistory as a1, type DelegationHistoryTurn as a2, type DelegationStatus as a3, type DelegationTask as a4, type DelegationTaskList as a5, type EffectiveCustomerResourcePolicyRequest as a6, type EffectiveResourcePolicy as a7, type EmbedAgentAliasResolution as a8, type EmbedAttachmentContentAccessRequest as a9, type NodeAuthoringSpec as aA, type NodeCatalogItem as aB, type NodeCatalogResponse as aC, type NodeSchemaResponse as aD, type PortableResourceKind as aE, type RequestOptions as aF, type ResetResourcePolicyQuotaRequest as aG, type ResourceCallableBinding as aH, type ResourceCallableBindingStatus as aI, type ResourceCandidateList as aJ, type ResourceInstallation as aK, type ResourceInstallationApplication as aL, type ResourceInstallationApplyRequest as aM, type ResourceInstallationBinding as aN, type ResourceInstallationCreateRequest as aO, type ResourceInstallationDeploymentRequest as aP, type ResourceInstallationLinkRequest as aQ, type ResourceInstallationList as aR, type ResourceInstallationOperation as aS, type ResourceInstallationPlan as aT, type ResourceInstallationPlanUpload as aU, type ResourceInstallationPublication as aV, type ResourceInstallationPublishRequest as aW, type ResourceInstallationPullAcceptRequest as aX, type ResourceInstallationPullChange as aY, type ResourceInstallationPullPayload as aZ, type ResourceInstallationPullPlan as a_, type EmbedCustomerPrincipalResolveRequest as aa, type EmbedCustomerPrincipalResolveResponse as ab, type EmbedResourcePolicyRequest as ac, type EmbedRunCancelOptions as ad, type EmbedRunStartRequest as ae, type EmbedRuntimeBootstrap as af, type EmbedStreamRequest as ag, type EmbeddedResponseFeedbackInput as ah, type FailureCategory as ai, type FailureView as aj, type FeedbackRating as ak, type FeedbackReason as al, GraphBuilder as am, type GraphDefinition as an, type GraphEdge as ao, type GraphHints as ap, type GraphNode as aq, type GraphValueRef as ar, type HitlAction as as, type HitlAnswer as at, type LatestOrPinnedPolicy as au, type McpAuthStartRequest as av, type McpAuthStartResult as aw, type MultiAgentThreadListRequest as ax, type MultiAgentThreadSummaryEventOptions as ay, type NativePlatform as az, AgentDefinitionBuilder as b, type ResourceInstallationSecretStatus as b0, type ResourceInstallationSecretsRequest as b1, type ResourcePackageArchive as b2, type ResourcePackageCandidateOptions as b3, type ResourcePackageDependency as b4, type ResourcePackageDiagnostic as b5, type ResourcePackageExportPlan as b6, type ResourcePackageExportRequest as b7, type ResourcePackageImportPreview as b8, type ResourcePackageImportResult as b9, type ThreadDetailOptions as bA, type ThreadListOptions as bB, type ThreadSummaryEventOptions as bC, type TraceContent as bD, type TraceError as bE, type TraceSpan as bF, type TraceSpanKind as bG, type TraceSpanStatus as bH, type TraceView as bI, type UpdateClientDeploymentRequest as bJ, type WorkflowInputDefinition as bK, type ResourcePackageImportUpload as ba, type ResourcePackageUpload as bb, type ResourcePackageValidationResult as bc, type ResourcePolicyList as bd, type ResourcePolicyQuotaSchedule as be, type ResourcePolicyQuotaScheduleResult as bf, type ResourcePolicySubjectRef as bg, type ResourcePolicySummary as bh, type ResourceSelector as bi, type ResourceToolExport as bj, type ResponseFeedback as bk, type ResponseFeedbackResult as bl, type ResumeRunRequest as bm, type RunCancelOptions as bn, type RunContextOptions as bo, type RunStatus as bp, type RunTrace as bq, type ServerAttachmentUploadOptions as br, type ServerEmbedAttachmentUploadOptions as bs, type SetCustomerResourcePolicyAssignmentRequest as bt, type SetResourcePolicyQuotaScheduleRequest as bu, type StartRunResult as bv, type StateVariableDefinition as bw, type StreamRequestOptions as bx, type StreamResult as by, type ThreadDeleteOptions as bz, type AgentDefinitionOptions as c, type AgentListResponse as d, type AgentRef as e, type AgentResponse as f, type AgentStreamRequest as g, type AgentSummary as h, type AgentToolsetAttachment as i, type AgentUpdateRequest as j, type AgentValidationIssue as k, type AgentValidationResult as l, Agents24SDKError as m, type Agents24NodeErrorKind as n, type Agents24NodeOptions as o, type Agents24Options as p, type Agents24SDKErrorKind as q, type Agents24SDKSerializedError as r, type ArtifactDevelopmentSession as s, type ArtifactDevelopmentSessionAdmission as t, type ArtifactDevelopmentSessionPrepareRequest as u, type AttachRunRequest as v, type AttachmentContentAccessRequest as w, type BranchingHint as x, type ClientAuthMode as y, type ClientDeployment as z };
@@ -24,6 +24,101 @@ declare class Agents24SDKError extends Error {
24
24
  get details(): Readonly<Record<string, unknown>>;
25
25
  }
26
26
 
27
+ declare class DelegationsNamespace {
28
+ protected readonly http: Agents24HttpClient;
29
+ constructor(http: Agents24HttpClient);
30
+ history(runId: string, handle: string, options?: {
31
+ before?: number;
32
+ limit?: number;
33
+ }): Promise<DelegationHistory>;
34
+ list(runId: string): Promise<DelegationTaskList>;
35
+ inspect(runId: string, handle: string): Promise<DelegationTask>;
36
+ events(runId: string, options?: {
37
+ after?: number;
38
+ limit?: number;
39
+ }): Promise<DelegationEvents>;
40
+ act(runId: string, handle: string, request: DelegationActionRequest, options?: RequestOptions): Promise<Record<string, unknown>>;
41
+ }
42
+
43
+ type DelegationStatus = "queued" | "running" | "waiting" | "paused" | "interrupt_requested" | "interrupted" | "completed" | "failed" | "cancelling" | "cancelled";
44
+ interface DelegationTask {
45
+ handle: string;
46
+ name: string;
47
+ path: string;
48
+ status: DelegationStatus;
49
+ background: boolean;
50
+ depth: number;
51
+ parent_node_id: string;
52
+ ownership_generation: number;
53
+ owner_run_id: string;
54
+ root_run_id: string;
55
+ origin: Record<string, unknown>;
56
+ run_id: string | null;
57
+ thread_id: string | null;
58
+ result_run_id: string | null;
59
+ updated_at: string;
60
+ capabilities: {
61
+ cancel: boolean;
62
+ interrupt: boolean;
63
+ };
64
+ result?: {
65
+ text: string;
66
+ failure_id: string | null;
67
+ };
68
+ invocations?: Array<{
69
+ run_id: string;
70
+ status: string;
71
+ usage: Record<string, unknown>;
72
+ }>;
73
+ pending_questions?: Array<{
74
+ interrupt_id: string;
75
+ kind: string;
76
+ can_answer: boolean;
77
+ request: Record<string, unknown>;
78
+ }>;
79
+ }
80
+ type DelegationAction = {
81
+ action: "interrupt" | "cancel";
82
+ };
83
+ type DelegationActionRequest = DelegationAction & {
84
+ operation_id: string;
85
+ };
86
+ interface DelegationTaskList {
87
+ tasks: DelegationTask[];
88
+ }
89
+ interface DelegationHistoryTurn {
90
+ id: string;
91
+ run_id: string;
92
+ turn_index: number;
93
+ status: DelegationStatus;
94
+ assignment_instruction: string;
95
+ sender: "parent";
96
+ created_at: string;
97
+ user_input_text: string | null;
98
+ assistant_output_text: string | null;
99
+ response_blocks: Array<Record<string, unknown>>;
100
+ }
101
+ interface DelegationHistory {
102
+ handle: string;
103
+ parent_agent_id: string;
104
+ kind: string;
105
+ turns: DelegationHistoryTurn[];
106
+ paging: {
107
+ has_more: boolean;
108
+ next_before_turn_index: number | null;
109
+ };
110
+ }
111
+ interface DelegationEvents {
112
+ schema_version: "agents24.delegation.events.v1";
113
+ cursor: number;
114
+ events: Array<{
115
+ seq: number;
116
+ kind: string;
117
+ task: DelegationTask;
118
+ }>;
119
+ snapshot: DelegationTask[];
120
+ }
121
+
27
122
  type Agents24NodeOptions = {
28
123
  baseUrl: string;
29
124
  apiKey: string;
@@ -476,6 +571,12 @@ type RunStatus = {
476
571
  id: string;
477
572
  status: string;
478
573
  result?: unknown;
574
+ assistant_output?: {
575
+ text: string | null;
576
+ final_output: unknown;
577
+ final_output_available: boolean;
578
+ };
579
+ model_context_summary?: Record<string, unknown>;
479
580
  failure?: FailureView | null;
480
581
  checkpoint?: Record<string, unknown> | null;
481
582
  run_usage?: Record<string, unknown>;
@@ -737,6 +838,8 @@ type ResourcePackageImportUpload = ResourcePackageUpload & {
737
838
  };
738
839
  type ResourceInstallationPlanUpload = ResourcePackageUpload & {
739
840
  prune?: boolean;
841
+ integrationMode?: "publish-only" | "bff" | "client-deployment";
842
+ primaryResourceKey?: string;
740
843
  };
741
844
  type ResourceInstallationPullChange = {
742
845
  status: "A" | "M" | "D";
@@ -975,12 +1078,18 @@ type ResourceInstallationCreateRequest = {
975
1078
  package_name: string;
976
1079
  operation_id: string;
977
1080
  };
1081
+ type ResourceInstallationApplication = {
1082
+ integration_mode: "publish-only" | "bff" | "client-deployment";
1083
+ primary_resource_key: string | null;
1084
+ };
978
1085
  type ResourceInstallationPlan = {
979
1086
  installation_id: string | null;
980
1087
  operation_id: string;
981
1088
  package_id: string;
982
1089
  package_name: string;
983
1090
  package_hash: string;
1091
+ application: ResourceInstallationApplication;
1092
+ pending_selections: Array<Record<string, unknown>>;
984
1093
  actions: Array<Record<string, unknown>>;
985
1094
  external_requirements: Array<Record<string, unknown>>;
986
1095
  artifact_actions: Array<Record<string, unknown>>;
@@ -1380,6 +1489,7 @@ declare class Agents24 {
1380
1489
  readonly agents: AgentsNamespace;
1381
1490
  readonly embed: EmbedNamespace;
1382
1491
  readonly runs: RunsNamespace;
1492
+ readonly delegations: DelegationsNamespace;
1383
1493
  readonly resourcePackages: ResourcePackagesNamespace;
1384
1494
  readonly resourceInstallations: ResourceInstallationsNamespace;
1385
1495
  readonly clientDeployments: ClientDeploymentsNamespace;
@@ -1392,4 +1502,4 @@ declare class Agents24 {
1392
1502
  graph(): GraphBuilder;
1393
1503
  }
1394
1504
 
1395
- export { type EffectiveResourcePolicy as $, Agents24 as A, type BackendSessionRequestOptions as B, type ClearCustomerResourcePolicyAssignmentResult as C, type ClientDeploymentListQuery as D, type ClientDeploymentListResponse as E, type ClientNativeProfile as F, type ClientRuntimeNativeProfileInput as G, type ClientRuntimeOidcConfig as H, type ClientRuntimePolicyInput as I, type ClientSessionCredentials as J, type ControlPlaneAgentRunRequest as K, type ControlPlaneRunEventsResponse as L, type ConversationRunRequest as M, type ConversationRunResult as N, type ConversationRuntimeSelectionRequest as O, type ConversationRuntimeSelectionResult as P, type ConversationThreadOptions as Q, type CreateBackendClientSessionRequest as R, type CreateClientDeploymentRequest as S, type CustomerIdentityRequest as T, type CustomerPrincipalRefRequest as U, type CustomerProfile as V, type CustomerProfileList as W, type CustomerProfilePatch as X, type CustomerProfileSearchOptions as Y, type CustomerResourcePolicyAssignment as Z, type EffectiveCustomerResourcePolicyRequest as _, type AgentCreateRequest as a, type ResourcePackageImportPreview as a$, type EmbedAgentAliasResolution as a0, type EmbedAttachmentContentAccessRequest as a1, type EmbedCustomerPrincipalResolveRequest as a2, type EmbedCustomerPrincipalResolveResponse as a3, type EmbedResourcePolicyRequest as a4, type EmbedRunCancelOptions as a5, type EmbedRunStartRequest as a6, type EmbedRuntimeBootstrap as a7, type EmbedStreamRequest as a8, type EmbeddedResponseFeedbackInput as a9, type ResourceCallableBindingStatus as aA, type ResourceCandidateList as aB, type ResourceInstallation as aC, type ResourceInstallationApplyRequest as aD, type ResourceInstallationBinding as aE, type ResourceInstallationCreateRequest as aF, type ResourceInstallationDeploymentRequest as aG, type ResourceInstallationLinkRequest as aH, type ResourceInstallationList as aI, type ResourceInstallationOperation as aJ, type ResourceInstallationPlan as aK, type ResourceInstallationPlanUpload as aL, type ResourceInstallationPublication as aM, type ResourceInstallationPublishRequest as aN, type ResourceInstallationPullAcceptRequest as aO, type ResourceInstallationPullChange as aP, type ResourceInstallationPullPayload as aQ, type ResourceInstallationPullPlan as aR, type ResourceInstallationResourceListOptions as aS, type ResourceInstallationSecretStatus as aT, type ResourceInstallationSecretsRequest as aU, type ResourcePackageArchive as aV, type ResourcePackageCandidateOptions as aW, type ResourcePackageDependency as aX, type ResourcePackageDiagnostic as aY, type ResourcePackageExportPlan as aZ, type ResourcePackageExportRequest as a_, type FailureCategory as aa, type FailureView as ab, type FeedbackRating as ac, type FeedbackReason as ad, GraphBuilder as ae, type GraphDefinition as af, type GraphEdge as ag, type GraphHints as ah, type GraphNode as ai, type GraphValueRef as aj, type HitlAction as ak, type HitlAnswer as al, type LatestOrPinnedPolicy as am, type McpAuthStartRequest as an, type McpAuthStartResult as ao, type MultiAgentThreadListRequest as ap, type MultiAgentThreadSummaryEventOptions as aq, type NativePlatform as ar, type NodeAuthoringSpec as as, type NodeCatalogItem as at, type NodeCatalogResponse as au, type NodeSchemaResponse as av, type PortableResourceKind as aw, type RequestOptions as ax, type ResetResourcePolicyQuotaRequest as ay, type ResourceCallableBinding as az, AgentDefinitionBuilder as b, type ResourcePackageImportResult as b0, type ResourcePackageImportUpload as b1, type ResourcePackageUpload as b2, type ResourcePackageValidationResult as b3, type ResourcePolicyList as b4, type ResourcePolicyQuotaSchedule as b5, type ResourcePolicyQuotaScheduleResult as b6, type ResourcePolicySubjectRef as b7, type ResourcePolicySummary as b8, type ResourceSelector as b9, type UpdateClientDeploymentRequest as bA, type WorkflowInputDefinition as bB, type ResourceToolExport as ba, type ResponseFeedback as bb, type ResponseFeedbackResult as bc, type ResumeRunRequest as bd, type RunCancelOptions as be, type RunContextOptions as bf, type RunStatus as bg, type RunTrace as bh, type ServerAttachmentUploadOptions as bi, type ServerEmbedAttachmentUploadOptions as bj, type SetCustomerResourcePolicyAssignmentRequest as bk, type SetResourcePolicyQuotaScheduleRequest as bl, type StartRunResult as bm, type StateVariableDefinition as bn, type StreamRequestOptions as bo, type StreamResult as bp, type ThreadDeleteOptions as bq, type ThreadDetailOptions as br, type ThreadListOptions as bs, type ThreadSummaryEventOptions as bt, type TraceContent as bu, type TraceError as bv, type TraceSpan as bw, type TraceSpanKind as bx, type TraceSpanStatus as by, type TraceView as bz, type AgentDefinitionOptions as c, type AgentListResponse as d, type AgentRef as e, type AgentResponse as f, type AgentStreamRequest as g, type AgentSummary as h, type AgentToolsetAttachment as i, type AgentUpdateRequest as j, type AgentValidationIssue as k, type AgentValidationResult as l, Agents24SDKError as m, type Agents24NodeErrorKind as n, type Agents24NodeOptions as o, type Agents24Options as p, type Agents24SDKErrorKind as q, type Agents24SDKSerializedError as r, type ArtifactDevelopmentSession as s, type ArtifactDevelopmentSessionAdmission as t, type ArtifactDevelopmentSessionPrepareRequest as u, type AttachRunRequest as v, type AttachmentContentAccessRequest as w, type BranchingHint as x, type ClientAuthMode as y, type ClientDeployment as z };
1505
+ export { type DelegationActionRequest as $, Agents24 as A, type BackendSessionRequestOptions as B, type ClearCustomerResourcePolicyAssignmentResult as C, type ClientDeploymentListQuery as D, type ClientDeploymentListResponse as E, type ClientNativeProfile as F, type ClientRuntimeNativeProfileInput as G, type ClientRuntimeOidcConfig as H, type ClientRuntimePolicyInput as I, type ClientSessionCredentials as J, type ControlPlaneAgentRunRequest as K, type ControlPlaneRunEventsResponse as L, type ConversationRunRequest as M, type ConversationRunResult as N, type ConversationRuntimeSelectionRequest as O, type ConversationRuntimeSelectionResult as P, type ConversationThreadOptions as Q, type CreateBackendClientSessionRequest as R, type CreateClientDeploymentRequest as S, type CustomerIdentityRequest as T, type CustomerPrincipalRefRequest as U, type CustomerProfile as V, type CustomerProfileList as W, type CustomerProfilePatch as X, type CustomerProfileSearchOptions as Y, type CustomerResourcePolicyAssignment as Z, type DelegationAction as _, type AgentCreateRequest as a, type ResourceInstallationResourceListOptions as a$, type DelegationEvents as a0, type DelegationHistory as a1, type DelegationHistoryTurn as a2, type DelegationStatus as a3, type DelegationTask as a4, type DelegationTaskList as a5, type EffectiveCustomerResourcePolicyRequest as a6, type EffectiveResourcePolicy as a7, type EmbedAgentAliasResolution as a8, type EmbedAttachmentContentAccessRequest as a9, type NodeAuthoringSpec as aA, type NodeCatalogItem as aB, type NodeCatalogResponse as aC, type NodeSchemaResponse as aD, type PortableResourceKind as aE, type RequestOptions as aF, type ResetResourcePolicyQuotaRequest as aG, type ResourceCallableBinding as aH, type ResourceCallableBindingStatus as aI, type ResourceCandidateList as aJ, type ResourceInstallation as aK, type ResourceInstallationApplication as aL, type ResourceInstallationApplyRequest as aM, type ResourceInstallationBinding as aN, type ResourceInstallationCreateRequest as aO, type ResourceInstallationDeploymentRequest as aP, type ResourceInstallationLinkRequest as aQ, type ResourceInstallationList as aR, type ResourceInstallationOperation as aS, type ResourceInstallationPlan as aT, type ResourceInstallationPlanUpload as aU, type ResourceInstallationPublication as aV, type ResourceInstallationPublishRequest as aW, type ResourceInstallationPullAcceptRequest as aX, type ResourceInstallationPullChange as aY, type ResourceInstallationPullPayload as aZ, type ResourceInstallationPullPlan as a_, type EmbedCustomerPrincipalResolveRequest as aa, type EmbedCustomerPrincipalResolveResponse as ab, type EmbedResourcePolicyRequest as ac, type EmbedRunCancelOptions as ad, type EmbedRunStartRequest as ae, type EmbedRuntimeBootstrap as af, type EmbedStreamRequest as ag, type EmbeddedResponseFeedbackInput as ah, type FailureCategory as ai, type FailureView as aj, type FeedbackRating as ak, type FeedbackReason as al, GraphBuilder as am, type GraphDefinition as an, type GraphEdge as ao, type GraphHints as ap, type GraphNode as aq, type GraphValueRef as ar, type HitlAction as as, type HitlAnswer as at, type LatestOrPinnedPolicy as au, type McpAuthStartRequest as av, type McpAuthStartResult as aw, type MultiAgentThreadListRequest as ax, type MultiAgentThreadSummaryEventOptions as ay, type NativePlatform as az, AgentDefinitionBuilder as b, type ResourceInstallationSecretStatus as b0, type ResourceInstallationSecretsRequest as b1, type ResourcePackageArchive as b2, type ResourcePackageCandidateOptions as b3, type ResourcePackageDependency as b4, type ResourcePackageDiagnostic as b5, type ResourcePackageExportPlan as b6, type ResourcePackageExportRequest as b7, type ResourcePackageImportPreview as b8, type ResourcePackageImportResult as b9, type ThreadDetailOptions as bA, type ThreadListOptions as bB, type ThreadSummaryEventOptions as bC, type TraceContent as bD, type TraceError as bE, type TraceSpan as bF, type TraceSpanKind as bG, type TraceSpanStatus as bH, type TraceView as bI, type UpdateClientDeploymentRequest as bJ, type WorkflowInputDefinition as bK, type ResourcePackageImportUpload as ba, type ResourcePackageUpload as bb, type ResourcePackageValidationResult as bc, type ResourcePolicyList as bd, type ResourcePolicyQuotaSchedule as be, type ResourcePolicyQuotaScheduleResult as bf, type ResourcePolicySubjectRef as bg, type ResourcePolicySummary as bh, type ResourceSelector as bi, type ResourceToolExport as bj, type ResponseFeedback as bk, type ResponseFeedbackResult as bl, type ResumeRunRequest as bm, type RunCancelOptions as bn, type RunContextOptions as bo, type RunStatus as bp, type RunTrace as bq, type ServerAttachmentUploadOptions as br, type ServerEmbedAttachmentUploadOptions as bs, type SetCustomerResourcePolicyAssignmentRequest as bt, type SetResourcePolicyQuotaScheduleRequest as bu, type StartRunResult as bv, type StateVariableDefinition as bw, type StreamRequestOptions as bx, type StreamResult as by, type ThreadDeleteOptions as bz, type AgentDefinitionOptions as c, type AgentListResponse as d, type AgentRef as e, type AgentResponse as f, type AgentStreamRequest as g, type AgentSummary as h, type AgentToolsetAttachment as i, type AgentUpdateRequest as j, type AgentValidationIssue as k, type AgentValidationResult as l, Agents24SDKError as m, type Agents24NodeErrorKind as n, type Agents24NodeOptions as o, type Agents24Options as p, type Agents24SDKErrorKind as q, type Agents24SDKSerializedError as r, type ArtifactDevelopmentSession as s, type ArtifactDevelopmentSessionAdmission as t, type ArtifactDevelopmentSessionPrepareRequest as u, type AttachRunRequest as v, type AttachmentContentAccessRequest as w, type BranchingHint as x, type ClientAuthMode as y, type ClientDeployment as z };
package/dist/index.cjs CHANGED
@@ -755,10 +755,10 @@ var ResourceInstallationsNamespace = class {
755
755
  });
756
756
  }
757
757
  get(installationId) {
758
- return this.http.requestJson(`/resource-installations/${installationId}`);
758
+ return this.http.requestJson(`/resource-installations/${encodeURIComponent(installationId)}`);
759
759
  }
760
760
  getByPackageId(packageId) {
761
- return this.http.requestJson(`/resource-installations/by-package/${packageId}`);
761
+ return this.http.requestJson(`/resource-installations/by-package/${encodeURIComponent(packageId)}`);
762
762
  }
763
763
  async plan(upload) {
764
764
  const formData = new FormData();
@@ -768,7 +768,9 @@ var ResourceInstallationsNamespace = class {
768
768
  formData.append("file", new Blob([archiveBytes]), filename);
769
769
  const response = await this.http.fetchOrThrow(
770
770
  this.http.url("/resource-installations/plan", {
771
- prune: upload.prune
771
+ prune: upload.prune,
772
+ integration_mode: upload.integrationMode,
773
+ primary_resource_key: upload.primaryResourceKey
772
774
  }),
773
775
  { method: "POST", headers: this.http.multipartHeaders(void 0, void 0, false), body: formData },
774
776
  "Failed to upload the Agents24 resource package."
@@ -783,7 +785,7 @@ var ResourceInstallationsNamespace = class {
783
785
  const filename = /^[A-Za-z0-9][A-Za-z0-9._-]{0,200}\.zip$/.test(candidate) ? candidate : "resource.agents24.zip";
784
786
  formData.append("file", new Blob([archiveBytes]), filename);
785
787
  const response = await this.http.fetchOrThrow(
786
- this.http.url(`/resource-installations/${installationId}/pull/plan`, void 0),
788
+ this.http.url(`/resource-installations/${encodeURIComponent(installationId)}/pull/plan`, void 0),
787
789
  { method: "POST", headers: this.http.multipartHeaders(void 0, void 0, false), body: formData },
788
790
  "Failed to upload the Agents24 resource package."
789
791
  );
@@ -791,10 +793,10 @@ var ResourceInstallationsNamespace = class {
791
793
  return await response.json();
792
794
  }
793
795
  downloadPull(installationId, pullId) {
794
- return this.http.requestJson(`/resource-installations/${installationId}/pull/${pullId}/download`);
796
+ return this.http.requestJson(`/resource-installations/${encodeURIComponent(installationId)}/pull/${encodeURIComponent(pullId)}/download`);
795
797
  }
796
798
  acceptPull(installationId, pullId, request, options) {
797
- return this.http.requestJson(`/resource-installations/${installationId}/pull/${pullId}/accept`, {
799
+ return this.http.requestJson(`/resource-installations/${encodeURIComponent(installationId)}/pull/${encodeURIComponent(pullId)}/accept`, {
798
800
  method: "POST",
799
801
  body: request,
800
802
  options,
@@ -802,7 +804,7 @@ var ResourceInstallationsNamespace = class {
802
804
  });
803
805
  }
804
806
  link(installationId, request, options) {
805
- return this.http.requestJson(`/resource-installations/${installationId}/link`, {
807
+ return this.http.requestJson(`/resource-installations/${encodeURIComponent(installationId)}/link`, {
806
808
  method: "POST",
807
809
  body: request,
808
810
  options,
@@ -810,7 +812,7 @@ var ResourceInstallationsNamespace = class {
810
812
  });
811
813
  }
812
814
  configureSecrets(installationId, request, options) {
813
- return this.http.requestJson(`/resource-installations/${installationId}/secrets`, {
815
+ return this.http.requestJson(`/resource-installations/${encodeURIComponent(installationId)}/secrets`, {
814
816
  method: "PUT",
815
817
  body: request,
816
818
  options,
@@ -818,7 +820,7 @@ var ResourceInstallationsNamespace = class {
818
820
  });
819
821
  }
820
822
  apply(operationId, request, options) {
821
- return this.http.requestJson(`/resource-installations/operations/${operationId}/apply`, {
823
+ return this.http.requestJson(`/resource-installations/operations/${encodeURIComponent(operationId)}/apply`, {
822
824
  method: "POST",
823
825
  body: request,
824
826
  options,
@@ -826,10 +828,10 @@ var ResourceInstallationsNamespace = class {
826
828
  });
827
829
  }
828
830
  operationStatus(operationId) {
829
- return this.http.requestJson(`/resource-installations/operations/${operationId}/status`);
831
+ return this.http.requestJson(`/resource-installations/operations/${encodeURIComponent(operationId)}/status`);
830
832
  }
831
833
  publish(installationId, request, options) {
832
- return this.http.requestJson(`/resource-installations/${installationId}/publish`, {
834
+ return this.http.requestJson(`/resource-installations/${encodeURIComponent(installationId)}/publish`, {
833
835
  method: "POST",
834
836
  body: request,
835
837
  options,
@@ -837,7 +839,7 @@ var ResourceInstallationsNamespace = class {
837
839
  });
838
840
  }
839
841
  prepareDevelopmentSession(installationId, request, options) {
840
- return this.http.requestJson(`/resource-installations/${installationId}/artifact-development-sessions`, {
842
+ return this.http.requestJson(`/resource-installations/${encodeURIComponent(installationId)}/artifact-development-sessions`, {
841
843
  method: "POST",
842
844
  body: request,
843
845
  options,
@@ -845,17 +847,17 @@ var ResourceInstallationsNamespace = class {
845
847
  });
846
848
  }
847
849
  developmentSessionStatus(installationId, resourceKey) {
848
- return this.http.requestJson(`/resource-installations/${installationId}/artifact-development-sessions/${resourceKey}`);
850
+ return this.http.requestJson(`/resource-installations/${encodeURIComponent(installationId)}/artifact-development-sessions/${encodeURIComponent(resourceKey)}`);
849
851
  }
850
852
  revokeDevelopmentSession(installationId, sessionId, options) {
851
- return this.http.requestJson(`/resource-installations/${installationId}/artifact-development-sessions/${sessionId}`, {
853
+ return this.http.requestJson(`/resource-installations/${encodeURIComponent(installationId)}/artifact-development-sessions/${encodeURIComponent(sessionId)}`, {
852
854
  method: "DELETE",
853
855
  options,
854
856
  mutation: true
855
857
  });
856
858
  }
857
859
  bindDeployment(installationId, request, options) {
858
- return this.http.requestJson(`/resource-installations/${installationId}/deployment`, {
860
+ return this.http.requestJson(`/resource-installations/${encodeURIComponent(installationId)}/deployment`, {
859
861
  method: "PUT",
860
862
  body: request,
861
863
  options,
@@ -898,6 +900,44 @@ var RunsNamespace = class {
898
900
  }
899
901
  };
900
902
 
903
+ // src/generated/delegations.ts
904
+ var DelegationsNamespace = class {
905
+ constructor(http) {
906
+ this.http = http;
907
+ }
908
+ http;
909
+ history(runId, handle, options = {}) {
910
+ return this.http.requestJson(`/agents/runs/${encodeURIComponent(runId)}/delegations/${encodeURIComponent(handle)}/history`, {
911
+ query: {
912
+ before: options.before,
913
+ limit: options.limit ?? 20
914
+ }
915
+ });
916
+ }
917
+ list(runId) {
918
+ return this.http.requestJson(`/agents/runs/${encodeURIComponent(runId)}/delegations`);
919
+ }
920
+ inspect(runId, handle) {
921
+ return this.http.requestJson(`/agents/runs/${encodeURIComponent(runId)}/delegations/${encodeURIComponent(handle)}`);
922
+ }
923
+ events(runId, options = {}) {
924
+ return this.http.requestJson(`/agents/runs/${encodeURIComponent(runId)}/delegations/events`, {
925
+ query: {
926
+ after: options.after ?? 0,
927
+ limit: options.limit ?? 100
928
+ }
929
+ });
930
+ }
931
+ act(runId, handle, request, options) {
932
+ return this.http.requestJson(`/agents/runs/${encodeURIComponent(runId)}/delegations/${encodeURIComponent(handle)}/actions`, {
933
+ method: "POST",
934
+ body: request,
935
+ options,
936
+ mutation: true
937
+ });
938
+ }
939
+ };
940
+
901
941
  // src/generated/instructions.ts
902
942
  var InstructionsNamespace = class {
903
943
  constructor(http) {
@@ -905,7 +945,7 @@ var InstructionsNamespace = class {
905
945
  }
906
946
  http;
907
947
  publish(instructionId, options) {
908
- return this.http.requestJson(`/prompts/${instructionId}/publish`, {
948
+ return this.http.requestJson(`/prompts/${encodeURIComponent(instructionId)}/publish`, {
909
949
  method: "POST",
910
950
  body: {},
911
951
  options,
@@ -984,10 +1024,10 @@ var CustomerProfilesNamespace = class {
984
1024
  });
985
1025
  }
986
1026
  get(customerPrincipalRef) {
987
- return this.http.requestJson(`/public/embed/customer-principals/${customerPrincipalRef}/profile`);
1027
+ return this.http.requestJson(`/public/embed/customer-principals/${encodeURIComponent(customerPrincipalRef)}/profile`);
988
1028
  }
989
1029
  clear(customerPrincipalRef, options) {
990
- return this.http.requestJson(`/public/embed/customer-principals/${customerPrincipalRef}/profile`, {
1030
+ return this.http.requestJson(`/public/embed/customer-principals/${encodeURIComponent(customerPrincipalRef)}/profile`, {
991
1031
  method: "DELETE",
992
1032
  options,
993
1033
  mutation: true
@@ -1009,6 +1049,7 @@ var Agents24 = class {
1009
1049
  agents;
1010
1050
  embed;
1011
1051
  runs;
1052
+ delegations;
1012
1053
  resourcePackages;
1013
1054
  resourceInstallations;
1014
1055
  clientDeployments;
@@ -1021,6 +1062,7 @@ var Agents24 = class {
1021
1062
  this.agents = new AgentsNamespace(http);
1022
1063
  this.embed = new EmbedNamespace(http);
1023
1064
  this.runs = new RunsNamespace(http);
1065
+ this.delegations = new DelegationsNamespace(http);
1024
1066
  this.resourcePackages = new ResourcePackagesNamespace(http);
1025
1067
  this.resourceInstallations = new ResourceInstallationsNamespace(http);
1026
1068
  this.clientDeployments = new ClientDeploymentsNamespace(http);
@@ -1084,6 +1126,11 @@ var SDK_OPERATION_IDS = [
1084
1126
  "customer_profiles.get",
1085
1127
  "customer_profiles.search",
1086
1128
  "customer_profiles.upsert",
1129
+ "delegations.act",
1130
+ "delegations.events",
1131
+ "delegations.history",
1132
+ "delegations.inspect",
1133
+ "delegations.list",
1087
1134
  "embed.attach_agent_run",
1088
1135
  "embed.cancel_agent_run",
1089
1136
  "embed.create_attachment_content_access",