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