@agents24/node 0.5.41 → 0.5.43
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/README.md +17 -1
- package/compatibility.json +6 -6
- package/dist/bff.cjs +296 -8
- package/dist/bff.cjs.map +1 -1
- package/dist/bff.d.cts +6 -2
- package/dist/bff.d.ts +6 -2
- package/dist/bff.js +296 -8
- package/dist/bff.js.map +1 -1
- package/dist/{client-BfSwZnv3.d.cts → client-9eTRFxs2.d.cts} +276 -6
- package/dist/{client-BfSwZnv3.d.ts → client-9eTRFxs2.d.ts} +276 -6
- package/dist/index.cjs +193 -4
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/index.js +193 -4
- package/dist/index.js.map +1 -1
- package/dist/types/bff-agent-resolution.d.ts +4 -0
- package/dist/types/bff-agent-resolution.d.ts.map +1 -1
- package/dist/types/bff-bootstrap.d.ts.map +1 -1
- package/dist/types/bff-conversation-submission.d.ts.map +1 -1
- package/dist/types/bff-customer-operations.d.ts +51 -0
- package/dist/types/bff-customer-operations.d.ts.map +1 -0
- package/dist/types/bff-multi-agent.d.ts.map +1 -1
- package/dist/types/bff-request.d.ts +1 -1
- package/dist/types/bff-request.d.ts.map +1 -1
- package/dist/types/bff.d.ts +1 -1
- package/dist/types/bff.d.ts.map +1 -1
- package/dist/types/client.d.ts +4 -0
- package/dist/types/client.d.ts.map +1 -1
- package/dist/types/embed-types.d.ts +2 -0
- package/dist/types/embed-types.d.ts.map +1 -1
- package/dist/types/embed.d.ts.map +1 -1
- package/dist/types/generated/clientGovernance.d.ts +8 -0
- package/dist/types/generated/clientGovernance.d.ts.map +1 -0
- package/dist/types/generated/clientServiceKeys.d.ts +10 -0
- package/dist/types/generated/clientServiceKeys.d.ts.map +1 -0
- package/dist/types/generated/embed.d.ts +10 -1
- package/dist/types/generated/embed.d.ts.map +1 -1
- package/dist/types/generated/manifest.d.ts +1 -1
- package/dist/types/generated/manifest.d.ts.map +1 -1
- package/dist/types/generated/personal-skills.d.ts +120 -0
- package/dist/types/generated/personal-skills.d.ts.map +1 -1
- package/dist/types/generated/resourcePolicies.d.ts +5 -1
- package/dist/types/generated/resourcePolicies.d.ts.map +1 -1
- package/dist/types/generated/runs.d.ts +8 -0
- package/dist/types/generated/runs.d.ts.map +1 -0
- package/dist/types/runs.d.ts +2 -2
- package/dist/types/runs.d.ts.map +1 -1
- package/dist/types/submission-and-service-key-types.d.ts +39 -0
- package/dist/types/submission-and-service-key-types.d.ts.map +1 -0
- package/dist/types/types.d.ts +81 -3
- package/dist/types/types.d.ts.map +1 -1
- package/package.json +2 -2
package/dist/index.cjs
CHANGED
|
@@ -836,6 +836,46 @@ var EmbedNamespace = class extends EmbedDelegationsNamespace {
|
|
|
836
836
|
mutation: true
|
|
837
837
|
});
|
|
838
838
|
}
|
|
839
|
+
listConnectorTriggers(agentId, options) {
|
|
840
|
+
return this.http.requestJson(`/public/embed/agents/${encodeURIComponent(agentId)}/connector-triggers`, {
|
|
841
|
+
query: {
|
|
842
|
+
external_user_id: options.externalUserId,
|
|
843
|
+
integration_id: options.integrationId,
|
|
844
|
+
runtime_target: options.runtimeTarget
|
|
845
|
+
}
|
|
846
|
+
});
|
|
847
|
+
}
|
|
848
|
+
subscribeConnectorTrigger(agentId, payload, options) {
|
|
849
|
+
return this.http.requestJson(`/public/embed/agents/${encodeURIComponent(agentId)}/connector-triggers`, {
|
|
850
|
+
method: "POST",
|
|
851
|
+
body: payload,
|
|
852
|
+
options,
|
|
853
|
+
mutation: true
|
|
854
|
+
});
|
|
855
|
+
}
|
|
856
|
+
unsubscribeConnectorTrigger(agentId, subscriptionId, options) {
|
|
857
|
+
return this.http.requestJson(`/public/embed/agents/${encodeURIComponent(agentId)}/connector-triggers/${encodeURIComponent(subscriptionId)}`, {
|
|
858
|
+
method: "DELETE",
|
|
859
|
+
query: {
|
|
860
|
+
external_user_id: options.externalUserId,
|
|
861
|
+
integration_id: options.integrationId,
|
|
862
|
+
runtime_target: options.runtimeTarget
|
|
863
|
+
},
|
|
864
|
+
mutation: true
|
|
865
|
+
});
|
|
866
|
+
}
|
|
867
|
+
readConnectorEvents(agentId, options) {
|
|
868
|
+
return this.http.requestJson(`/public/embed/agents/${encodeURIComponent(agentId)}/connector-events`, {
|
|
869
|
+
query: {
|
|
870
|
+
external_user_id: options.externalUserId,
|
|
871
|
+
integration_id: options.integrationId,
|
|
872
|
+
runtime_target: options.runtimeTarget,
|
|
873
|
+
after: options.after,
|
|
874
|
+
limit: options.limit,
|
|
875
|
+
wait_seconds: options.waitSeconds
|
|
876
|
+
}
|
|
877
|
+
});
|
|
878
|
+
}
|
|
839
879
|
readPersonalSkillAsset(agentId, skillId, versionId, options) {
|
|
840
880
|
return this.http.requestJson(`/public/embed/agents/${encodeURIComponent(agentId)}/personal-skills/${encodeURIComponent(skillId)}/versions/${encodeURIComponent(versionId)}/asset`, {
|
|
841
881
|
query: {
|
|
@@ -916,6 +956,47 @@ var EmbedNamespace = class extends EmbedDelegationsNamespace {
|
|
|
916
956
|
mutation: true
|
|
917
957
|
});
|
|
918
958
|
}
|
|
959
|
+
getRelay(agentId, options) {
|
|
960
|
+
return this.http.requestJson(`/public/embed/agents/${encodeURIComponent(agentId)}/relay`, {
|
|
961
|
+
query: {
|
|
962
|
+
external_user_id: options.externalUserId,
|
|
963
|
+
integration_id: options.integrationId,
|
|
964
|
+
agent_version_id: options.agentVersionId
|
|
965
|
+
}
|
|
966
|
+
});
|
|
967
|
+
}
|
|
968
|
+
createRelayClient(agentId, payload, options) {
|
|
969
|
+
return this.http.requestJson(`/public/embed/agents/${encodeURIComponent(agentId)}/relay-clients`, {
|
|
970
|
+
method: "POST",
|
|
971
|
+
body: payload,
|
|
972
|
+
options
|
|
973
|
+
});
|
|
974
|
+
}
|
|
975
|
+
issueRelayTicket(agentId, relayClientId, payload, options) {
|
|
976
|
+
return this.http.requestJson(`/public/embed/agents/${encodeURIComponent(agentId)}/relay-clients/${encodeURIComponent(relayClientId)}/tickets`, {
|
|
977
|
+
method: "POST",
|
|
978
|
+
body: payload,
|
|
979
|
+
options
|
|
980
|
+
});
|
|
981
|
+
}
|
|
982
|
+
revokeRelayClient(agentId, relayClientId, payload, options) {
|
|
983
|
+
return this.http.requestJson(`/public/embed/agents/${encodeURIComponent(agentId)}/relay-clients/${encodeURIComponent(relayClientId)}/revoke`, {
|
|
984
|
+
method: "POST",
|
|
985
|
+
body: payload,
|
|
986
|
+
options
|
|
987
|
+
});
|
|
988
|
+
}
|
|
989
|
+
getSubmission(agentId, clientSubmissionId, options) {
|
|
990
|
+
return this.http.requestJson(`/public/embed/agents/${encodeURIComponent(agentId)}/submissions/${encodeURIComponent(clientSubmissionId)}`, {
|
|
991
|
+
query: {
|
|
992
|
+
external_user_id: options.externalUserId,
|
|
993
|
+
external_session_id: options.externalSessionId,
|
|
994
|
+
runtime_target: options.runtimeTarget ?? "published",
|
|
995
|
+
integration_id: options.integrationId,
|
|
996
|
+
chat_scope: options.chatScope
|
|
997
|
+
}
|
|
998
|
+
});
|
|
999
|
+
}
|
|
919
1000
|
};
|
|
920
1001
|
var EmbedNamespace2 = class extends EmbedNamespace {
|
|
921
1002
|
constructor(http) {
|
|
@@ -1086,6 +1167,8 @@ var EmbedNamespace2 = class extends EmbedNamespace {
|
|
|
1086
1167
|
...payload.trustedContext === void 0 ? {} : { trusted_context: payload.trustedContext },
|
|
1087
1168
|
execution_limits: payload.executionLimits,
|
|
1088
1169
|
personal_skills: payload.personalSkills,
|
|
1170
|
+
selected_app_ids: payload.selectedAppIds,
|
|
1171
|
+
caller_restrictions: payload.callerRestrictions,
|
|
1089
1172
|
...payload.dictationSessionId === void 0 ? {} : { dictation_session_id: payload.dictationSessionId },
|
|
1090
1173
|
...payload.requestedOutputs === void 0 ? {} : { requested_outputs: payload.requestedOutputs },
|
|
1091
1174
|
tool_inputs: payload.toolInputs ?? {},
|
|
@@ -1613,10 +1696,22 @@ var ResourceInstallationsNamespace = class {
|
|
|
1613
1696
|
}
|
|
1614
1697
|
};
|
|
1615
1698
|
|
|
1616
|
-
// src/runs.ts
|
|
1617
|
-
var
|
|
1699
|
+
// src/generated/runs.ts
|
|
1700
|
+
var GeneratedRunsNamespace = class {
|
|
1618
1701
|
constructor(http) {
|
|
1619
1702
|
this.http = http;
|
|
1703
|
+
}
|
|
1704
|
+
http;
|
|
1705
|
+
getSubmission(clientSubmissionId) {
|
|
1706
|
+
return this.http.requestJson(`/agents/submissions/${encodeURIComponent(clientSubmissionId)}`);
|
|
1707
|
+
}
|
|
1708
|
+
};
|
|
1709
|
+
|
|
1710
|
+
// src/runs.ts
|
|
1711
|
+
var RunsNamespace = class extends GeneratedRunsNamespace {
|
|
1712
|
+
outputs;
|
|
1713
|
+
constructor(http) {
|
|
1714
|
+
super(http);
|
|
1620
1715
|
this.outputs = {
|
|
1621
1716
|
list: (input) => http.requestJson(
|
|
1622
1717
|
`/agents/runs/${encodeURIComponent(input.runId)}/outputs`,
|
|
@@ -1627,8 +1722,6 @@ var RunsNamespace = class {
|
|
|
1627
1722
|
)
|
|
1628
1723
|
};
|
|
1629
1724
|
}
|
|
1630
|
-
http;
|
|
1631
|
-
outputs;
|
|
1632
1725
|
get(runId, options = {}) {
|
|
1633
1726
|
return this.http.requestJson(`/agents/runs/${runId}`, { query: { include_tree: options.includeTree } });
|
|
1634
1727
|
}
|
|
@@ -1800,6 +1893,34 @@ var ResourcePoliciesNamespace = class {
|
|
|
1800
1893
|
mutation: true
|
|
1801
1894
|
});
|
|
1802
1895
|
}
|
|
1896
|
+
resolveCustomerTenant(request) {
|
|
1897
|
+
return this.http.requestJson("/admin/security/resource-policies/customer-tenants/resolve", {
|
|
1898
|
+
method: "POST",
|
|
1899
|
+
body: request
|
|
1900
|
+
});
|
|
1901
|
+
}
|
|
1902
|
+
setTenantAssignment(request, options) {
|
|
1903
|
+
return this.http.requestJson("/admin/security/resource-policies/tenant-assignments/set", {
|
|
1904
|
+
method: "POST",
|
|
1905
|
+
body: request,
|
|
1906
|
+
options,
|
|
1907
|
+
mutation: true
|
|
1908
|
+
});
|
|
1909
|
+
}
|
|
1910
|
+
getTenantAssignment(request) {
|
|
1911
|
+
return this.http.requestJson("/admin/security/resource-policies/tenant-assignments/get", {
|
|
1912
|
+
method: "POST",
|
|
1913
|
+
body: request
|
|
1914
|
+
});
|
|
1915
|
+
}
|
|
1916
|
+
clearTenantAssignment(request, options) {
|
|
1917
|
+
return this.http.requestJson("/admin/security/resource-policies/tenant-assignments/clear", {
|
|
1918
|
+
method: "POST",
|
|
1919
|
+
body: request,
|
|
1920
|
+
options,
|
|
1921
|
+
mutation: true
|
|
1922
|
+
});
|
|
1923
|
+
}
|
|
1803
1924
|
};
|
|
1804
1925
|
|
|
1805
1926
|
// src/generated/customerProfiles.ts
|
|
@@ -1837,6 +1958,49 @@ var CustomerProfilesNamespace = class {
|
|
|
1837
1958
|
}
|
|
1838
1959
|
};
|
|
1839
1960
|
|
|
1961
|
+
// src/generated/clientServiceKeys.ts
|
|
1962
|
+
var ClientServiceKeysNamespace = class {
|
|
1963
|
+
constructor(http) {
|
|
1964
|
+
this.http = http;
|
|
1965
|
+
}
|
|
1966
|
+
http;
|
|
1967
|
+
create(request, options) {
|
|
1968
|
+
return this.http.requestJson("/client-runtime/service-keys", {
|
|
1969
|
+
method: "POST",
|
|
1970
|
+
body: request,
|
|
1971
|
+
options
|
|
1972
|
+
});
|
|
1973
|
+
}
|
|
1974
|
+
list() {
|
|
1975
|
+
return this.http.requestJson("/client-runtime/service-keys");
|
|
1976
|
+
}
|
|
1977
|
+
revoke(keyId, options) {
|
|
1978
|
+
return this.http.requestJson(`/client-runtime/service-keys/${encodeURIComponent(keyId)}/revoke`, {
|
|
1979
|
+
method: "POST",
|
|
1980
|
+
options,
|
|
1981
|
+
mutation: true
|
|
1982
|
+
});
|
|
1983
|
+
}
|
|
1984
|
+
};
|
|
1985
|
+
|
|
1986
|
+
// src/generated/clientGovernance.ts
|
|
1987
|
+
var ClientGovernanceNamespace = class {
|
|
1988
|
+
constructor(http) {
|
|
1989
|
+
this.http = http;
|
|
1990
|
+
}
|
|
1991
|
+
http;
|
|
1992
|
+
getUsage(deploymentId, options) {
|
|
1993
|
+
return this.http.requestJson(`/client-runtime/deployments/${encodeURIComponent(deploymentId)}/usage`, {
|
|
1994
|
+
query: {
|
|
1995
|
+
since: options.since,
|
|
1996
|
+
until: options.until,
|
|
1997
|
+
group_by: options.groupBy,
|
|
1998
|
+
customer_tenant_ref: options.customerTenantRef
|
|
1999
|
+
}
|
|
2000
|
+
});
|
|
2001
|
+
}
|
|
2002
|
+
};
|
|
2003
|
+
|
|
1840
2004
|
// src/models.ts
|
|
1841
2005
|
var ModelsNamespace = class {
|
|
1842
2006
|
constructor(http) {
|
|
@@ -2303,6 +2467,8 @@ var Agents24 = class extends GeneratedIntegrationNamespaces {
|
|
|
2303
2467
|
hostedArtifacts;
|
|
2304
2468
|
resourcePolicies;
|
|
2305
2469
|
customerProfiles;
|
|
2470
|
+
clientServiceKeys;
|
|
2471
|
+
clientGovernance;
|
|
2306
2472
|
models;
|
|
2307
2473
|
constructor(options) {
|
|
2308
2474
|
const http = new Agents24HttpClient(options);
|
|
@@ -2320,6 +2486,8 @@ var Agents24 = class extends GeneratedIntegrationNamespaces {
|
|
|
2320
2486
|
this.hostedArtifacts = new HostedArtifactsNamespace(http);
|
|
2321
2487
|
this.resourcePolicies = new ResourcePoliciesNamespace(http);
|
|
2322
2488
|
this.customerProfiles = new CustomerProfilesNamespace(http);
|
|
2489
|
+
this.clientServiceKeys = new ClientServiceKeysNamespace(http);
|
|
2490
|
+
this.clientGovernance = new ClientGovernanceNamespace(http);
|
|
2323
2491
|
this.models = new ModelsNamespace(http);
|
|
2324
2492
|
}
|
|
2325
2493
|
agent(options) {
|
|
@@ -2361,6 +2529,10 @@ var SDK_OPERATION_IDS = [
|
|
|
2361
2529
|
"client.bootstrap",
|
|
2362
2530
|
"client.callerAuthority.raise",
|
|
2363
2531
|
"client.chat.stream",
|
|
2532
|
+
"client.connectorEvents.read",
|
|
2533
|
+
"client.connectorTriggers.list",
|
|
2534
|
+
"client.connectorTriggers.subscribe",
|
|
2535
|
+
"client.connectorTriggers.unsubscribe",
|
|
2364
2536
|
"client.deployments.create",
|
|
2365
2537
|
"client.deployments.delete",
|
|
2366
2538
|
"client.deployments.get",
|
|
@@ -2425,6 +2597,9 @@ var SDK_OPERATION_IDS = [
|
|
|
2425
2597
|
"client.toolSessions.invoke",
|
|
2426
2598
|
"client.toolSessions.open",
|
|
2427
2599
|
"client.toolSessions.resume",
|
|
2600
|
+
"client_service_keys.create",
|
|
2601
|
+
"client_service_keys.list",
|
|
2602
|
+
"client_service_keys.revoke",
|
|
2428
2603
|
"customer_profiles.clear",
|
|
2429
2604
|
"customer_profiles.get",
|
|
2430
2605
|
"customer_profiles.search",
|
|
@@ -2445,6 +2620,7 @@ var SDK_OPERATION_IDS = [
|
|
|
2445
2620
|
"embed.create_attachment_content_access",
|
|
2446
2621
|
"embed.create_conversation_computer_content_access",
|
|
2447
2622
|
"embed.create_dictation_session",
|
|
2623
|
+
"embed.create_relay_client",
|
|
2448
2624
|
"embed.delete_agent_thread",
|
|
2449
2625
|
"embed.delete_conversation_thread",
|
|
2450
2626
|
"embed.discover_host_tools",
|
|
@@ -2457,14 +2633,18 @@ var SDK_OPERATION_IDS = [
|
|
|
2457
2633
|
"embed.get_dictation_session",
|
|
2458
2634
|
"embed.get_output",
|
|
2459
2635
|
"embed.get_personal_skill",
|
|
2636
|
+
"embed.get_relay",
|
|
2460
2637
|
"embed.get_resource_policy",
|
|
2461
2638
|
"embed.get_runtime_bootstrap",
|
|
2639
|
+
"embed.get_submission",
|
|
2462
2640
|
"embed.import_personal_skill",
|
|
2463
2641
|
"embed.inspect_host_tool",
|
|
2464
2642
|
"embed.invoke_host_tool",
|
|
2643
|
+
"embed.issue_relay_ticket",
|
|
2465
2644
|
"embed.list_agent_computer_files",
|
|
2466
2645
|
"embed.list_agent_threads",
|
|
2467
2646
|
"embed.list_agent_threads_multi",
|
|
2647
|
+
"embed.list_connector_triggers",
|
|
2468
2648
|
"embed.list_conversation_computer_files",
|
|
2469
2649
|
"embed.list_outputs",
|
|
2470
2650
|
"embed.list_personal_connections",
|
|
@@ -2473,6 +2653,7 @@ var SDK_OPERATION_IDS = [
|
|
|
2473
2653
|
"embed.open_conversation_submission",
|
|
2474
2654
|
"embed.open_tool_session",
|
|
2475
2655
|
"embed.read_agent_computer_file",
|
|
2656
|
+
"embed.read_connector_events",
|
|
2476
2657
|
"embed.read_conversation_computer_file",
|
|
2477
2658
|
"embed.read_personal_skill_asset",
|
|
2478
2659
|
"embed.resolve_agent_alias",
|
|
@@ -2481,6 +2662,7 @@ var SDK_OPERATION_IDS = [
|
|
|
2481
2662
|
"embed.resume_agent_run",
|
|
2482
2663
|
"embed.resume_host_tool",
|
|
2483
2664
|
"embed.revoke_caller_authority",
|
|
2665
|
+
"embed.revoke_relay_client",
|
|
2484
2666
|
"embed.save_personal_skill",
|
|
2485
2667
|
"embed.set_agent_run_feedback",
|
|
2486
2668
|
"embed.set_conversation_runtime_selection",
|
|
@@ -2490,11 +2672,13 @@ var SDK_OPERATION_IDS = [
|
|
|
2490
2672
|
"embed.stream_agent",
|
|
2491
2673
|
"embed.stream_agent_thread_events",
|
|
2492
2674
|
"embed.stream_agent_thread_events_multi",
|
|
2675
|
+
"embed.subscribe_connector_trigger",
|
|
2493
2676
|
"embed.thread_messages.edit",
|
|
2494
2677
|
"embed.thread_messages.list",
|
|
2495
2678
|
"embed.thread_messages.remove",
|
|
2496
2679
|
"embed.thread_messages.resume_queue",
|
|
2497
2680
|
"embed.thread_messages.submit",
|
|
2681
|
+
"embed.unsubscribe_connector_trigger",
|
|
2498
2682
|
"embed.update_caller_restrictions",
|
|
2499
2683
|
"embed.upload_agent_attachments",
|
|
2500
2684
|
"embed_delegations.act",
|
|
@@ -2584,16 +2768,21 @@ var SDK_OPERATION_IDS = [
|
|
|
2584
2768
|
"resource_packages.import_preview",
|
|
2585
2769
|
"resource_packages.validate",
|
|
2586
2770
|
"resource_policies.clear_customer_assignment",
|
|
2771
|
+
"resource_policies.clear_tenant_assignment",
|
|
2587
2772
|
"resource_policies.get_customer_assignment",
|
|
2588
2773
|
"resource_policies.get_effective_customer_policy",
|
|
2774
|
+
"resource_policies.get_tenant_assignment",
|
|
2589
2775
|
"resource_policies.list",
|
|
2590
2776
|
"resource_policies.reset_quota_now",
|
|
2777
|
+
"resource_policies.resolve_customer_tenant",
|
|
2591
2778
|
"resource_policies.set_customer_assignment",
|
|
2592
2779
|
"resource_policies.set_quota_schedule",
|
|
2780
|
+
"resource_policies.set_tenant_assignment",
|
|
2593
2781
|
"runs.get",
|
|
2594
2782
|
"runs.get_context",
|
|
2595
2783
|
"runs.get_events",
|
|
2596
2784
|
"runs.get_output",
|
|
2785
|
+
"runs.get_submission",
|
|
2597
2786
|
"runs.get_trace",
|
|
2598
2787
|
"runs.get_tree",
|
|
2599
2788
|
"runs.list_outputs"
|