@agents24/node 0.3.0 → 0.5.0
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 +27 -3
- package/compatibility.json +6 -6
- package/dist/bff.cjs +481 -52
- package/dist/bff.cjs.map +1 -1
- package/dist/bff.d.cts +24 -4
- package/dist/bff.d.ts +24 -4
- package/dist/bff.js +481 -52
- package/dist/bff.js.map +1 -1
- package/dist/{client-Rmk3dh_D.d.cts → client-xWr_OGEe.d.cts} +437 -76
- package/dist/{client-Rmk3dh_D.d.ts → client-xWr_OGEe.d.ts} +437 -76
- package/dist/index.cjs +302 -57
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +302 -57
- package/dist/index.js.map +1 -1
- package/dist/types/bff-agent-resolution.d.ts +41 -0
- package/dist/types/bff-agent-resolution.d.ts.map +1 -0
- package/dist/types/bff-errors.d.ts +3 -0
- package/dist/types/bff-errors.d.ts.map +1 -0
- package/dist/types/bff.d.ts +6 -19
- package/dist/types/bff.d.ts.map +1 -1
- package/dist/types/client.d.ts +4 -2
- package/dist/types/client.d.ts.map +1 -1
- package/dist/types/embed.d.ts +8 -2
- package/dist/types/embed.d.ts.map +1 -1
- package/dist/types/generated/customerProfiles.d.ts +11 -0
- package/dist/types/generated/customerProfiles.d.ts.map +1 -0
- package/dist/types/generated/manifest.d.ts +1 -1
- package/dist/types/generated/manifest.d.ts.map +1 -1
- package/dist/types/generated/resourceInstallations.d.ts +25 -0
- package/dist/types/generated/resourceInstallations.d.ts.map +1 -0
- package/dist/types/generated/resourcePackages.d.ts +7 -3
- package/dist/types/generated/resourcePackages.d.ts.map +1 -1
- package/dist/types/generated/resourcePolicies.d.ts +3 -3
- package/dist/types/generated/resourcePolicies.d.ts.map +1 -1
- package/dist/types/types.d.ts +389 -61
- package/dist/types/types.d.ts.map +1 -1
- package/package.json +2 -2
- package/dist/types/generated/resourceBundles.d.ts +0 -12
- package/dist/types/generated/resourceBundles.d.ts.map +0 -1
package/dist/index.js
CHANGED
|
@@ -491,9 +491,21 @@ var EmbedNamespace = class {
|
|
|
491
491
|
startAgentRunMcpAuth(agentId, runId, serverId, payload, options) {
|
|
492
492
|
return this.http.requestJson(`/public/embed/agents/${agentId}/runs/${runId}/mcp/servers/${serverId}/auth/start`, { method: "POST", body: payload, options, mutation: true });
|
|
493
493
|
}
|
|
494
|
-
getRuntimeBootstrap(agentId, agentVersionId) {
|
|
494
|
+
getRuntimeBootstrap(agentId, agentVersionId, runtimeTarget = "published") {
|
|
495
495
|
return this.http.requestJson(`/public/embed/agents/${agentId}/runtime/bootstrap`, {
|
|
496
|
-
query: { agent_version_id: agentVersionId }
|
|
496
|
+
query: { agent_version_id: agentVersionId, runtime_target: runtimeTarget }
|
|
497
|
+
});
|
|
498
|
+
}
|
|
499
|
+
resolveAgentAlias(agentAlias) {
|
|
500
|
+
return this.http.requestJson("/public/embed/resolve-agent-alias", {
|
|
501
|
+
method: "POST",
|
|
502
|
+
body: { agent_alias: agentAlias }
|
|
503
|
+
});
|
|
504
|
+
}
|
|
505
|
+
resolveCustomerPrincipal(request) {
|
|
506
|
+
return this.http.requestJson("/public/embed/customer-principals/resolve", {
|
|
507
|
+
method: "POST",
|
|
508
|
+
body: request
|
|
497
509
|
});
|
|
498
510
|
}
|
|
499
511
|
getResourcePolicy(agentId, request) {
|
|
@@ -507,7 +519,9 @@ var EmbedNamespace = class {
|
|
|
507
519
|
external_user_id: options.externalUserId,
|
|
508
520
|
external_session_id: options.externalSessionId,
|
|
509
521
|
skip: options.skip ?? 0,
|
|
510
|
-
limit: options.limit ?? 20
|
|
522
|
+
limit: options.limit ?? 20,
|
|
523
|
+
runtime_target: options.runtimeTarget,
|
|
524
|
+
integration_id: options.integrationId
|
|
511
525
|
} });
|
|
512
526
|
}
|
|
513
527
|
listAgentThreadsMulti(options) {
|
|
@@ -517,7 +531,9 @@ var EmbedNamespace = class {
|
|
|
517
531
|
const response = await this.http.fetchOrThrow(this.http.url(`/public/embed/agents/${agentId}/threads/events`, {
|
|
518
532
|
external_user_id: options.externalUserId,
|
|
519
533
|
external_session_id: options.externalSessionId,
|
|
520
|
-
cursor: options.cursor
|
|
534
|
+
cursor: options.cursor,
|
|
535
|
+
runtime_target: options.runtimeTarget,
|
|
536
|
+
integration_id: options.integrationId
|
|
521
537
|
}), { method: "GET", headers: this.http.streamHeaders(), signal: options.signal }, "Failed to connect to the embedded-agent thread event endpoint.");
|
|
522
538
|
await assertOk(response);
|
|
523
539
|
await consumeThreadSummaryEventStream(response, onEvent, options.signal);
|
|
@@ -527,11 +543,39 @@ var EmbedNamespace = class {
|
|
|
527
543
|
agent_ids: options.agentIds,
|
|
528
544
|
external_user_id: options.externalUserId,
|
|
529
545
|
external_session_id: options.externalSessionId,
|
|
530
|
-
cursor: options.cursor
|
|
546
|
+
cursor: options.cursor,
|
|
547
|
+
runtime_target: options.runtimeTarget,
|
|
548
|
+
integration_id: options.integrationId
|
|
531
549
|
}), { method: "GET", headers: this.http.streamHeaders(), signal: options.signal }, "Failed to connect to the embedded-agent thread event endpoint.");
|
|
532
550
|
await assertOk(response);
|
|
533
551
|
await consumeThreadSummaryEventStream(response, onEvent, options.signal);
|
|
534
552
|
}
|
|
553
|
+
getConversationThread(threadId, options) {
|
|
554
|
+
return this.http.requestJson(`/public/embed/threads/${threadId}`, { query: {
|
|
555
|
+
agent_ids: options.agentIds,
|
|
556
|
+
external_user_id: options.externalUserId,
|
|
557
|
+
external_session_id: options.externalSessionId,
|
|
558
|
+
integration_id: options.integrationId,
|
|
559
|
+
before_turn_index: options.beforeTurnIndex,
|
|
560
|
+
limit: options.limit,
|
|
561
|
+
runtime_target: options.runtimeTarget
|
|
562
|
+
} });
|
|
563
|
+
}
|
|
564
|
+
setConversationRuntimeSelection(threadId, request) {
|
|
565
|
+
return this.http.requestJson(`/public/embed/threads/${threadId}/runtime-selection`, { method: "PATCH", body: request, mutation: true });
|
|
566
|
+
}
|
|
567
|
+
resolveConversationRun(runId, request) {
|
|
568
|
+
return this.http.requestJson(`/public/embed/runs/${runId}/resolve`, { method: "POST", body: request });
|
|
569
|
+
}
|
|
570
|
+
deleteConversationThread(threadId, options, requestOptions) {
|
|
571
|
+
return this.http.requestJson(`/public/embed/threads/${threadId}`, { method: "DELETE", query: {
|
|
572
|
+
agent_ids: options.agentIds,
|
|
573
|
+
external_user_id: options.externalUserId,
|
|
574
|
+
external_session_id: options.externalSessionId,
|
|
575
|
+
integration_id: options.integrationId,
|
|
576
|
+
runtime_target: options.runtimeTarget
|
|
577
|
+
}, options: requestOptions, mutation: true });
|
|
578
|
+
}
|
|
535
579
|
getAgentThread(agentId, threadId, options) {
|
|
536
580
|
return this.http.requestJson(`/public/embed/agents/${agentId}/threads/${threadId}`, { query: {
|
|
537
581
|
external_user_id: options.externalUserId,
|
|
@@ -541,25 +585,33 @@ var EmbedNamespace = class {
|
|
|
541
585
|
include_subthreads: options.includeSubthreads,
|
|
542
586
|
subthread_depth: options.subthreadDepth,
|
|
543
587
|
subthread_turn_limit: options.subthreadTurnLimit,
|
|
544
|
-
subthread_child_limit: options.subthreadChildLimit
|
|
588
|
+
subthread_child_limit: options.subthreadChildLimit,
|
|
589
|
+
runtime_target: options.runtimeTarget,
|
|
590
|
+
integration_id: options.integrationId
|
|
545
591
|
} });
|
|
546
592
|
}
|
|
547
593
|
deleteAgentThread(agentId, threadId, options, requestOptions) {
|
|
548
594
|
return this.http.requestJson(`/public/embed/agents/${agentId}/threads/${threadId}`, { method: "DELETE", query: {
|
|
549
595
|
external_user_id: options.externalUserId,
|
|
550
|
-
external_session_id: options.externalSessionId
|
|
596
|
+
external_session_id: options.externalSessionId,
|
|
597
|
+
runtime_target: options.runtimeTarget,
|
|
598
|
+
integration_id: options.integrationId
|
|
551
599
|
}, options: requestOptions, mutation: true });
|
|
552
600
|
}
|
|
553
601
|
getAgentRunContext(agentId, runId, options) {
|
|
554
602
|
return this.http.requestJson(`/public/embed/agents/${agentId}/runs/${runId}/context`, { query: {
|
|
555
603
|
external_user_id: options.externalUserId,
|
|
556
|
-
external_session_id: options.externalSessionId
|
|
604
|
+
external_session_id: options.externalSessionId,
|
|
605
|
+
runtime_target: options.runtimeTarget,
|
|
606
|
+
integration_id: options.integrationId
|
|
557
607
|
} });
|
|
558
608
|
}
|
|
559
609
|
cancelAgentRun(agentId, runId, options, requestOptions) {
|
|
560
610
|
return this.http.requestJson(`/public/embed/agents/${agentId}/runs/${runId}/cancel`, { method: "POST", query: {
|
|
561
611
|
external_user_id: options.externalUserId,
|
|
562
|
-
external_session_id: options.externalSessionId
|
|
612
|
+
external_session_id: options.externalSessionId,
|
|
613
|
+
runtime_target: options.runtimeTarget,
|
|
614
|
+
integration_id: options.integrationId
|
|
563
615
|
}, body: {}, options: requestOptions, mutation: true });
|
|
564
616
|
}
|
|
565
617
|
setAgentRunFeedback(agentId, runId, payload) {
|
|
@@ -573,6 +625,8 @@ var EmbedNamespace = class {
|
|
|
573
625
|
form.set("external_user_id", options.externalUserId);
|
|
574
626
|
if (options.externalSessionId) form.set("external_session_id", options.externalSessionId);
|
|
575
627
|
if (options.threadId) form.set("thread_id", options.threadId);
|
|
628
|
+
if (options.runtimeTarget) form.set("runtime_target", options.runtimeTarget);
|
|
629
|
+
if (options.integrationId) form.set("integration_id", options.integrationId);
|
|
576
630
|
for (const file of options.files) form.append("files", file, file.name);
|
|
577
631
|
const response = await this.http.fetchOrThrow(this.http.url(`/public/embed/agents/${agentId}/attachments/upload`), {
|
|
578
632
|
method: "POST",
|
|
@@ -590,26 +644,79 @@ var EmbedNamespace = class {
|
|
|
590
644
|
}
|
|
591
645
|
};
|
|
592
646
|
|
|
593
|
-
// src/generated/
|
|
594
|
-
var
|
|
647
|
+
// src/generated/resourcePackages.ts
|
|
648
|
+
var ResourcePackagesNamespace = class {
|
|
595
649
|
constructor(http) {
|
|
596
650
|
this.http = http;
|
|
597
651
|
}
|
|
598
652
|
http;
|
|
653
|
+
getExportability() {
|
|
654
|
+
return this.http.requestJson("/resource-packages/exportability");
|
|
655
|
+
}
|
|
599
656
|
exportPlan(request) {
|
|
600
|
-
return this.http.requestJson("/resource-
|
|
657
|
+
return this.http.requestJson("/resource-packages/export/plan", {
|
|
601
658
|
method: "POST",
|
|
602
659
|
body: request
|
|
603
660
|
});
|
|
604
661
|
}
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
body: request
|
|
609
|
-
|
|
662
|
+
async exportPackage(request) {
|
|
663
|
+
const response = await this.http.fetchOrThrow(
|
|
664
|
+
this.http.url("/resource-packages/export"),
|
|
665
|
+
{ method: "POST", headers: this.http.jsonHeaders(), body: JSON.stringify(request) },
|
|
666
|
+
"Failed to export the Agents24 resource package."
|
|
667
|
+
);
|
|
668
|
+
await assertOk(response);
|
|
669
|
+
const disposition = response.headers.get("content-disposition") || "";
|
|
670
|
+
const candidate = /filename="?([^";]+)"?/i.exec(disposition)?.[1] || "";
|
|
671
|
+
const filename = /^[A-Za-z0-9][A-Za-z0-9._-]{0,200}\.zip$/.test(candidate) ? candidate : "resource.agents24.zip";
|
|
672
|
+
return { data: new Uint8Array(await response.arrayBuffer()), filename };
|
|
673
|
+
}
|
|
674
|
+
async validatePackage(upload) {
|
|
675
|
+
const formData = new FormData();
|
|
676
|
+
const archiveBytes = upload.data.slice().buffer;
|
|
677
|
+
const candidate = upload.filename || "";
|
|
678
|
+
const filename = /^[A-Za-z0-9][A-Za-z0-9._-]{0,200}\.zip$/.test(candidate) ? candidate : "resource.agents24.zip";
|
|
679
|
+
formData.append("file", new Blob([archiveBytes]), filename);
|
|
680
|
+
const response = await this.http.fetchOrThrow(
|
|
681
|
+
this.http.url("/resource-packages/validate", void 0),
|
|
682
|
+
{ method: "POST", headers: this.http.multipartHeaders(void 0, void 0, false), body: formData },
|
|
683
|
+
"Failed to upload the Agents24 resource package."
|
|
684
|
+
);
|
|
685
|
+
await assertOk(response);
|
|
686
|
+
return await response.json();
|
|
687
|
+
}
|
|
688
|
+
async importPreview(upload) {
|
|
689
|
+
const formData = new FormData();
|
|
690
|
+
const archiveBytes = upload.data.slice().buffer;
|
|
691
|
+
const candidate = upload.filename || "";
|
|
692
|
+
const filename = /^[A-Za-z0-9][A-Za-z0-9._-]{0,200}\.zip$/.test(candidate) ? candidate : "resource.agents24.zip";
|
|
693
|
+
formData.append("file", new Blob([archiveBytes]), filename);
|
|
694
|
+
formData.set("mappings", JSON.stringify(upload.mappings || {}));
|
|
695
|
+
const response = await this.http.fetchOrThrow(
|
|
696
|
+
this.http.url("/resource-packages/import/preview", void 0),
|
|
697
|
+
{ method: "POST", headers: this.http.multipartHeaders(void 0, void 0, false), body: formData },
|
|
698
|
+
"Failed to upload the Agents24 resource package."
|
|
699
|
+
);
|
|
700
|
+
await assertOk(response);
|
|
701
|
+
return await response.json();
|
|
702
|
+
}
|
|
703
|
+
async importPackage(upload, options = {}) {
|
|
704
|
+
const formData = new FormData();
|
|
705
|
+
const archiveBytes = upload.data.slice().buffer;
|
|
706
|
+
const candidate = upload.filename || "";
|
|
707
|
+
const filename = /^[A-Za-z0-9][A-Za-z0-9._-]{0,200}\.zip$/.test(candidate) ? candidate : "resource.agents24.zip";
|
|
708
|
+
formData.append("file", new Blob([archiveBytes]), filename);
|
|
709
|
+
formData.set("mappings", JSON.stringify(upload.mappings || {}));
|
|
710
|
+
const response = await this.http.fetchOrThrow(
|
|
711
|
+
this.http.url("/resource-packages/import", void 0),
|
|
712
|
+
{ method: "POST", headers: this.http.multipartHeaders(void 0, options, true), body: formData },
|
|
713
|
+
"Failed to upload the Agents24 resource package."
|
|
714
|
+
);
|
|
715
|
+
await assertOk(response);
|
|
716
|
+
return await response.json();
|
|
610
717
|
}
|
|
611
718
|
candidates(options) {
|
|
612
|
-
return this.http.requestJson("/resource-
|
|
719
|
+
return this.http.requestJson("/resource-packages/import/candidates", {
|
|
613
720
|
query: {
|
|
614
721
|
kind: options.kind,
|
|
615
722
|
q: options.query,
|
|
@@ -619,68 +726,142 @@ var ResourceBundlesNamespace = class {
|
|
|
619
726
|
}
|
|
620
727
|
});
|
|
621
728
|
}
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
729
|
+
};
|
|
730
|
+
|
|
731
|
+
// src/generated/resourceInstallations.ts
|
|
732
|
+
var ResourceInstallationsNamespace = class {
|
|
733
|
+
constructor(http) {
|
|
734
|
+
this.http = http;
|
|
735
|
+
}
|
|
736
|
+
http;
|
|
737
|
+
list() {
|
|
738
|
+
return this.http.requestJson("/resource-installations");
|
|
627
739
|
}
|
|
628
|
-
|
|
629
|
-
return this.http.requestJson("/resource-
|
|
740
|
+
create(request, options) {
|
|
741
|
+
return this.http.requestJson("/resource-installations", {
|
|
630
742
|
method: "POST",
|
|
631
743
|
body: request,
|
|
632
744
|
options,
|
|
633
745
|
mutation: true
|
|
634
746
|
});
|
|
635
747
|
}
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
// src/generated/resourcePackages.ts
|
|
639
|
-
var ResourcePackagesNamespace = class {
|
|
640
|
-
constructor(http) {
|
|
641
|
-
this.http = http;
|
|
748
|
+
get(installationId) {
|
|
749
|
+
return this.http.requestJson(`/resource-installations/${installationId}`);
|
|
642
750
|
}
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
const response = await this.http.fetchOrThrow(
|
|
646
|
-
this.http.url("/resource-packages/export"),
|
|
647
|
-
{ method: "POST", headers: this.http.jsonHeaders(), body: JSON.stringify(request) },
|
|
648
|
-
"Failed to export the Agents24 resource package."
|
|
649
|
-
);
|
|
650
|
-
await assertOk(response);
|
|
651
|
-
const disposition = response.headers.get("content-disposition") || "";
|
|
652
|
-
const candidate = /filename="?([^";]+)"?/i.exec(disposition)?.[1] || "";
|
|
653
|
-
const filename = /^[A-Za-z0-9][A-Za-z0-9._-]{0,200}\.zip$/.test(candidate) ? candidate : "resource.agents24.zip";
|
|
654
|
-
return { data: new Uint8Array(await response.arrayBuffer()), filename };
|
|
751
|
+
getByPackageId(packageId) {
|
|
752
|
+
return this.http.requestJson(`/resource-installations/by-package/${packageId}`);
|
|
655
753
|
}
|
|
656
|
-
async
|
|
754
|
+
async plan(upload) {
|
|
657
755
|
const formData = new FormData();
|
|
658
756
|
const archiveBytes = upload.data.slice().buffer;
|
|
659
757
|
const candidate = upload.filename || "";
|
|
660
758
|
const filename = /^[A-Za-z0-9][A-Za-z0-9._-]{0,200}\.zip$/.test(candidate) ? candidate : "resource.agents24.zip";
|
|
661
759
|
formData.append("file", new Blob([archiveBytes]), filename);
|
|
662
760
|
const response = await this.http.fetchOrThrow(
|
|
663
|
-
this.http.url("/resource-
|
|
664
|
-
|
|
761
|
+
this.http.url("/resource-installations/plan", {
|
|
762
|
+
prune: upload.prune
|
|
763
|
+
}),
|
|
764
|
+
{ method: "POST", headers: this.http.multipartHeaders(void 0, void 0, false), body: formData },
|
|
665
765
|
"Failed to upload the Agents24 resource package."
|
|
666
766
|
);
|
|
667
767
|
await assertOk(response);
|
|
668
768
|
return await response.json();
|
|
669
769
|
}
|
|
670
|
-
async
|
|
770
|
+
async planPull(installationId, upload) {
|
|
671
771
|
const formData = new FormData();
|
|
672
772
|
const archiveBytes = upload.data.slice().buffer;
|
|
673
773
|
const candidate = upload.filename || "";
|
|
674
774
|
const filename = /^[A-Za-z0-9][A-Za-z0-9._-]{0,200}\.zip$/.test(candidate) ? candidate : "resource.agents24.zip";
|
|
675
775
|
formData.append("file", new Blob([archiveBytes]), filename);
|
|
676
776
|
const response = await this.http.fetchOrThrow(
|
|
677
|
-
this.http.url(
|
|
678
|
-
{ method: "POST", headers: this.http.multipartHeaders(), body: formData },
|
|
777
|
+
this.http.url(`/resource-installations/${installationId}/pull/plan`, void 0),
|
|
778
|
+
{ method: "POST", headers: this.http.multipartHeaders(void 0, void 0, false), body: formData },
|
|
679
779
|
"Failed to upload the Agents24 resource package."
|
|
680
780
|
);
|
|
681
781
|
await assertOk(response);
|
|
682
782
|
return await response.json();
|
|
683
783
|
}
|
|
784
|
+
downloadPull(installationId, pullId) {
|
|
785
|
+
return this.http.requestJson(`/resource-installations/${installationId}/pull/${pullId}/download`);
|
|
786
|
+
}
|
|
787
|
+
acceptPull(installationId, pullId, request, options) {
|
|
788
|
+
return this.http.requestJson(`/resource-installations/${installationId}/pull/${pullId}/accept`, {
|
|
789
|
+
method: "POST",
|
|
790
|
+
body: request,
|
|
791
|
+
options,
|
|
792
|
+
mutation: true
|
|
793
|
+
});
|
|
794
|
+
}
|
|
795
|
+
link(installationId, request, options) {
|
|
796
|
+
return this.http.requestJson(`/resource-installations/${installationId}/link`, {
|
|
797
|
+
method: "POST",
|
|
798
|
+
body: request,
|
|
799
|
+
options,
|
|
800
|
+
mutation: true
|
|
801
|
+
});
|
|
802
|
+
}
|
|
803
|
+
configureSecrets(installationId, request, options) {
|
|
804
|
+
return this.http.requestJson(`/resource-installations/${installationId}/secrets`, {
|
|
805
|
+
method: "PUT",
|
|
806
|
+
body: request,
|
|
807
|
+
options,
|
|
808
|
+
mutation: true
|
|
809
|
+
});
|
|
810
|
+
}
|
|
811
|
+
apply(operationId, request, options) {
|
|
812
|
+
return this.http.requestJson(`/resource-installations/operations/${operationId}/apply`, {
|
|
813
|
+
method: "POST",
|
|
814
|
+
body: request,
|
|
815
|
+
options,
|
|
816
|
+
mutation: true
|
|
817
|
+
});
|
|
818
|
+
}
|
|
819
|
+
operationStatus(operationId) {
|
|
820
|
+
return this.http.requestJson(`/resource-installations/operations/${operationId}/status`);
|
|
821
|
+
}
|
|
822
|
+
publish(installationId, request, options) {
|
|
823
|
+
return this.http.requestJson(`/resource-installations/${installationId}/publish`, {
|
|
824
|
+
method: "POST",
|
|
825
|
+
body: request,
|
|
826
|
+
options,
|
|
827
|
+
mutation: true
|
|
828
|
+
});
|
|
829
|
+
}
|
|
830
|
+
prepareDevelopmentSession(installationId, request, options) {
|
|
831
|
+
return this.http.requestJson(`/resource-installations/${installationId}/artifact-development-sessions`, {
|
|
832
|
+
method: "POST",
|
|
833
|
+
body: request,
|
|
834
|
+
options,
|
|
835
|
+
mutation: true
|
|
836
|
+
});
|
|
837
|
+
}
|
|
838
|
+
developmentSessionStatus(installationId, resourceKey) {
|
|
839
|
+
return this.http.requestJson(`/resource-installations/${installationId}/artifact-development-sessions/${resourceKey}`);
|
|
840
|
+
}
|
|
841
|
+
revokeDevelopmentSession(installationId, sessionId, options) {
|
|
842
|
+
return this.http.requestJson(`/resource-installations/${installationId}/artifact-development-sessions/${sessionId}`, {
|
|
843
|
+
method: "DELETE",
|
|
844
|
+
options,
|
|
845
|
+
mutation: true
|
|
846
|
+
});
|
|
847
|
+
}
|
|
848
|
+
bindDeployment(installationId, request, options) {
|
|
849
|
+
return this.http.requestJson(`/resource-installations/${installationId}/deployment`, {
|
|
850
|
+
method: "PUT",
|
|
851
|
+
body: request,
|
|
852
|
+
options,
|
|
853
|
+
mutation: true
|
|
854
|
+
});
|
|
855
|
+
}
|
|
856
|
+
resources(options) {
|
|
857
|
+
return this.http.requestJson("/resource-installations/resources/list", {
|
|
858
|
+
query: {
|
|
859
|
+
kind: options.kind,
|
|
860
|
+
query: options.query,
|
|
861
|
+
limit: options.limit
|
|
862
|
+
}
|
|
863
|
+
});
|
|
864
|
+
}
|
|
684
865
|
};
|
|
685
866
|
|
|
686
867
|
// src/runs.ts
|
|
@@ -779,28 +960,65 @@ var ResourcePoliciesNamespace = class {
|
|
|
779
960
|
}
|
|
780
961
|
};
|
|
781
962
|
|
|
963
|
+
// src/generated/customerProfiles.ts
|
|
964
|
+
var CustomerProfilesNamespace = class {
|
|
965
|
+
constructor(http) {
|
|
966
|
+
this.http = http;
|
|
967
|
+
}
|
|
968
|
+
http;
|
|
969
|
+
upsert(request, options) {
|
|
970
|
+
return this.http.requestJson("/public/embed/customer-principals/resolve", {
|
|
971
|
+
method: "POST",
|
|
972
|
+
body: request,
|
|
973
|
+
options,
|
|
974
|
+
mutation: true
|
|
975
|
+
});
|
|
976
|
+
}
|
|
977
|
+
get(customerPrincipalRef) {
|
|
978
|
+
return this.http.requestJson(`/public/embed/customer-principals/${customerPrincipalRef}/profile`);
|
|
979
|
+
}
|
|
980
|
+
clear(customerPrincipalRef, options) {
|
|
981
|
+
return this.http.requestJson(`/public/embed/customer-principals/${customerPrincipalRef}/profile`, {
|
|
982
|
+
method: "DELETE",
|
|
983
|
+
options,
|
|
984
|
+
mutation: true
|
|
985
|
+
});
|
|
986
|
+
}
|
|
987
|
+
search(options) {
|
|
988
|
+
return this.http.requestJson("/public/embed/customer-principals", {
|
|
989
|
+
query: {
|
|
990
|
+
q: options.query,
|
|
991
|
+
integration_id: options.integrationId,
|
|
992
|
+
limit: options.limit ?? 25
|
|
993
|
+
}
|
|
994
|
+
});
|
|
995
|
+
}
|
|
996
|
+
};
|
|
997
|
+
|
|
782
998
|
// src/client.ts
|
|
783
999
|
var Agents24 = class {
|
|
784
1000
|
agents;
|
|
785
1001
|
embed;
|
|
786
1002
|
runs;
|
|
787
|
-
resourceBundles;
|
|
788
1003
|
resourcePackages;
|
|
1004
|
+
resourceInstallations;
|
|
789
1005
|
clientDeployments;
|
|
790
1006
|
clientSessions;
|
|
791
1007
|
instructions;
|
|
792
1008
|
resourcePolicies;
|
|
1009
|
+
customerProfiles;
|
|
793
1010
|
constructor(options) {
|
|
794
1011
|
const http = new Agents24HttpClient(options);
|
|
795
1012
|
this.agents = new AgentsNamespace(http);
|
|
796
1013
|
this.embed = new EmbedNamespace(http);
|
|
797
1014
|
this.runs = new RunsNamespace(http);
|
|
798
|
-
this.resourceBundles = new ResourceBundlesNamespace(http);
|
|
799
1015
|
this.resourcePackages = new ResourcePackagesNamespace(http);
|
|
1016
|
+
this.resourceInstallations = new ResourceInstallationsNamespace(http);
|
|
800
1017
|
this.clientDeployments = new ClientDeploymentsNamespace(http);
|
|
801
1018
|
this.clientSessions = new ClientSessionsNamespace(http);
|
|
802
1019
|
this.instructions = new InstructionsNamespace(http);
|
|
803
1020
|
this.resourcePolicies = new ResourcePoliciesNamespace(http);
|
|
1021
|
+
this.customerProfiles = new CustomerProfilesNamespace(http);
|
|
804
1022
|
}
|
|
805
1023
|
agent(options) {
|
|
806
1024
|
return new AgentDefinitionBuilder(this.agents, options);
|
|
@@ -853,31 +1071,58 @@ var SDK_OPERATION_IDS = [
|
|
|
853
1071
|
"client.threads.events",
|
|
854
1072
|
"client.threads.get",
|
|
855
1073
|
"client.threads.list",
|
|
1074
|
+
"customer_profiles.clear",
|
|
1075
|
+
"customer_profiles.get",
|
|
1076
|
+
"customer_profiles.search",
|
|
1077
|
+
"customer_profiles.upsert",
|
|
856
1078
|
"embed.attach_agent_run",
|
|
857
1079
|
"embed.cancel_agent_run",
|
|
858
1080
|
"embed.create_attachment_content_access",
|
|
859
1081
|
"embed.delete_agent_thread",
|
|
1082
|
+
"embed.delete_conversation_thread",
|
|
860
1083
|
"embed.get_agent_run_context",
|
|
861
1084
|
"embed.get_agent_thread",
|
|
1085
|
+
"embed.get_conversation_thread",
|
|
862
1086
|
"embed.get_resource_policy",
|
|
863
1087
|
"embed.get_runtime_bootstrap",
|
|
864
1088
|
"embed.list_agent_threads",
|
|
865
1089
|
"embed.list_agent_threads_multi",
|
|
1090
|
+
"embed.resolve_agent_alias",
|
|
1091
|
+
"embed.resolve_conversation_run",
|
|
1092
|
+
"embed.resolve_customer_principal",
|
|
866
1093
|
"embed.resume_agent_run",
|
|
867
1094
|
"embed.set_agent_run_feedback",
|
|
1095
|
+
"embed.set_conversation_runtime_selection",
|
|
868
1096
|
"embed.start_agent_run_mcp_auth",
|
|
869
1097
|
"embed.stream_agent",
|
|
870
1098
|
"embed.stream_agent_thread_events",
|
|
871
1099
|
"embed.stream_agent_thread_events_multi",
|
|
872
1100
|
"embed.upload_agent_attachments",
|
|
873
1101
|
"instructions.publish",
|
|
874
|
-
"
|
|
875
|
-
"
|
|
876
|
-
"
|
|
877
|
-
"
|
|
878
|
-
"
|
|
879
|
-
"
|
|
1102
|
+
"resource_installations.accept_pull",
|
|
1103
|
+
"resource_installations.apply",
|
|
1104
|
+
"resource_installations.bind_deployment",
|
|
1105
|
+
"resource_installations.configure_secrets",
|
|
1106
|
+
"resource_installations.create",
|
|
1107
|
+
"resource_installations.development_session_status",
|
|
1108
|
+
"resource_installations.download_pull",
|
|
1109
|
+
"resource_installations.get",
|
|
1110
|
+
"resource_installations.get_by_package_id",
|
|
1111
|
+
"resource_installations.link",
|
|
1112
|
+
"resource_installations.list",
|
|
1113
|
+
"resource_installations.operation_status",
|
|
1114
|
+
"resource_installations.plan",
|
|
1115
|
+
"resource_installations.plan_pull",
|
|
1116
|
+
"resource_installations.prepare_development_session",
|
|
1117
|
+
"resource_installations.publish",
|
|
1118
|
+
"resource_installations.resources",
|
|
1119
|
+
"resource_installations.revoke_development_session",
|
|
1120
|
+
"resource_packages.candidates",
|
|
880
1121
|
"resource_packages.export",
|
|
1122
|
+
"resource_packages.export_plan",
|
|
1123
|
+
"resource_packages.exportability",
|
|
1124
|
+
"resource_packages.import",
|
|
1125
|
+
"resource_packages.import_preview",
|
|
881
1126
|
"resource_packages.validate",
|
|
882
1127
|
"resource_policies.clear_customer_assignment",
|
|
883
1128
|
"resource_policies.get_customer_assignment",
|