@agents24/node 0.5.21 → 0.5.23
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/compatibility.json +6 -6
- package/dist/bff.cjs +314 -199
- package/dist/bff.cjs.map +1 -1
- package/dist/bff.d.cts +3 -1
- package/dist/bff.d.ts +3 -1
- package/dist/bff.js +314 -199
- package/dist/bff.js.map +1 -1
- package/dist/{client-CR3usQ8l.d.cts → client-BTqjlaCt.d.cts} +279 -185
- package/dist/{client-CR3usQ8l.d.ts → client-BTqjlaCt.d.ts} +279 -185
- package/dist/index.cjs +126 -18
- 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 +126 -18
- package/dist/index.js.map +1 -1
- package/dist/types/bff-agent-resolution.d.ts +2 -0
- package/dist/types/bff-agent-resolution.d.ts.map +1 -1
- package/dist/types/bff-delegations.d.ts +5 -0
- package/dist/types/bff-delegations.d.ts.map +1 -0
- package/dist/types/bff-request.d.ts +36 -0
- package/dist/types/bff-request.d.ts.map +1 -0
- package/dist/types/bff.d.ts.map +1 -1
- package/dist/types/delegations.d.ts +1 -78
- package/dist/types/delegations.d.ts.map +1 -1
- package/dist/types/embed-types.d.ts +302 -0
- package/dist/types/embed-types.d.ts.map +1 -0
- package/dist/types/embed.d.ts +3 -2
- package/dist/types/embed.d.ts.map +1 -1
- package/dist/types/generated/delegation-types.d.ts +130 -0
- package/dist/types/generated/delegation-types.d.ts.map +1 -0
- package/dist/types/generated/embedDelegations.d.ts +12 -0
- package/dist/types/generated/embedDelegations.d.ts.map +1 -0
- package/dist/types/generated/ingestion-types.d.ts +5 -0
- package/dist/types/generated/ingestion-types.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/types.d.ts +7 -276
- package/dist/types/types.d.ts.map +1 -1
- package/package.json +2 -2
package/dist/index.cjs
CHANGED
|
@@ -513,18 +513,87 @@ var ClientSessionsNamespace = class {
|
|
|
513
513
|
);
|
|
514
514
|
}
|
|
515
515
|
};
|
|
516
|
-
|
|
516
|
+
|
|
517
|
+
// src/generated/embedDelegations.ts
|
|
518
|
+
var EmbedDelegationsNamespace = class {
|
|
517
519
|
constructor(http) {
|
|
518
520
|
this.http = http;
|
|
519
521
|
}
|
|
520
522
|
http;
|
|
523
|
+
listAgentDelegations(agentId, threadId, options) {
|
|
524
|
+
return this.http.requestJson(`/public/embed/agents/${encodeURIComponent(agentId)}/threads/${encodeURIComponent(threadId)}/delegations`, {
|
|
525
|
+
query: {
|
|
526
|
+
external_user_id: options.externalUserId,
|
|
527
|
+
external_session_id: options.externalSessionId,
|
|
528
|
+
integration_id: options.integrationId,
|
|
529
|
+
runtime_target: options.runtimeTarget ?? "published",
|
|
530
|
+
chat_scope: options.chatScope
|
|
531
|
+
}
|
|
532
|
+
});
|
|
533
|
+
}
|
|
534
|
+
eventsAgentDelegations(agentId, threadId, options) {
|
|
535
|
+
return this.http.requestJson(`/public/embed/agents/${encodeURIComponent(agentId)}/threads/${encodeURIComponent(threadId)}/delegations/events`, {
|
|
536
|
+
query: {
|
|
537
|
+
external_user_id: options.externalUserId,
|
|
538
|
+
external_session_id: options.externalSessionId,
|
|
539
|
+
integration_id: options.integrationId,
|
|
540
|
+
runtime_target: options.runtimeTarget ?? "published",
|
|
541
|
+
after: options.after,
|
|
542
|
+
limit: options.limit,
|
|
543
|
+
chat_scope: options.chatScope
|
|
544
|
+
}
|
|
545
|
+
});
|
|
546
|
+
}
|
|
547
|
+
inspectAgentDelegation(agentId, threadId, handle, options) {
|
|
548
|
+
return this.http.requestJson(`/public/embed/agents/${encodeURIComponent(agentId)}/threads/${encodeURIComponent(threadId)}/delegations/${encodeURIComponent(handle)}`, {
|
|
549
|
+
query: {
|
|
550
|
+
external_user_id: options.externalUserId,
|
|
551
|
+
external_session_id: options.externalSessionId,
|
|
552
|
+
integration_id: options.integrationId,
|
|
553
|
+
runtime_target: options.runtimeTarget ?? "published",
|
|
554
|
+
chat_scope: options.chatScope
|
|
555
|
+
}
|
|
556
|
+
});
|
|
557
|
+
}
|
|
558
|
+
historyAgentDelegation(agentId, threadId, handle, options) {
|
|
559
|
+
return this.http.requestJson(`/public/embed/agents/${encodeURIComponent(agentId)}/threads/${encodeURIComponent(threadId)}/delegations/${encodeURIComponent(handle)}/history`, {
|
|
560
|
+
query: {
|
|
561
|
+
external_user_id: options.externalUserId,
|
|
562
|
+
external_session_id: options.externalSessionId,
|
|
563
|
+
integration_id: options.integrationId,
|
|
564
|
+
runtime_target: options.runtimeTarget ?? "published",
|
|
565
|
+
before: options.before,
|
|
566
|
+
limit: options.limit,
|
|
567
|
+
chat_scope: options.chatScope
|
|
568
|
+
}
|
|
569
|
+
});
|
|
570
|
+
}
|
|
571
|
+
actAgentDelegation(agentId, threadId, handle, request, options) {
|
|
572
|
+
return this.http.requestJson(`/public/embed/agents/${encodeURIComponent(agentId)}/threads/${encodeURIComponent(threadId)}/delegations/${encodeURIComponent(handle)}/actions`, {
|
|
573
|
+
method: "POST",
|
|
574
|
+
query: {
|
|
575
|
+
external_user_id: options.externalUserId,
|
|
576
|
+
external_session_id: options.externalSessionId,
|
|
577
|
+
integration_id: options.integrationId,
|
|
578
|
+
runtime_target: options.runtimeTarget ?? "published",
|
|
579
|
+
chat_scope: options.chatScope
|
|
580
|
+
},
|
|
581
|
+
body: request,
|
|
582
|
+
mutation: true
|
|
583
|
+
});
|
|
584
|
+
}
|
|
585
|
+
};
|
|
586
|
+
var EmbedNamespace = class extends EmbedDelegationsNamespace {
|
|
587
|
+
constructor(http) {
|
|
588
|
+
super(http);
|
|
589
|
+
}
|
|
521
590
|
async streamAgent(agentId, payload, onEvent, options = {}) {
|
|
522
591
|
return this.stream(`/public/embed/agents/${agentId}/chat/stream`, payload, onEvent, options);
|
|
523
592
|
}
|
|
524
593
|
startAgentRun(agentId, payload, options) {
|
|
525
594
|
return this.http.requestJson(`/public/embed/agents/${agentId}/runs`, {
|
|
526
595
|
method: "POST",
|
|
527
|
-
body: payload,
|
|
596
|
+
body: this.namespacePayload(payload),
|
|
528
597
|
options,
|
|
529
598
|
mutation: true
|
|
530
599
|
});
|
|
@@ -532,11 +601,20 @@ var EmbedNamespace = class {
|
|
|
532
601
|
async attachAgentRun(agentId, runId, payload, onEvent, options = {}) {
|
|
533
602
|
return this.stream(`/public/embed/agents/${agentId}/runs/${runId}/stream`, payload, onEvent, options);
|
|
534
603
|
}
|
|
604
|
+
namespacePayload(payload) {
|
|
605
|
+
if (!payload || typeof payload !== "object") return payload;
|
|
606
|
+
const { knowledgeNamespaces, chatScope, ...wire } = payload;
|
|
607
|
+
return {
|
|
608
|
+
...wire,
|
|
609
|
+
...knowledgeNamespaces === void 0 ? {} : { knowledge_namespaces: knowledgeNamespaces },
|
|
610
|
+
...chatScope === void 0 ? {} : { chat_scope: chatScope }
|
|
611
|
+
};
|
|
612
|
+
}
|
|
535
613
|
async stream(path, payload, onEvent, options) {
|
|
536
614
|
const response = await this.http.fetchOrThrow(this.http.url(path, { stream_features: "assistant-completion-v1", lease_seconds: options.leaseSeconds }), {
|
|
537
615
|
method: "POST",
|
|
538
616
|
headers: this.http.streamHeaders(void 0, options, true),
|
|
539
|
-
body: JSON.stringify(payload),
|
|
617
|
+
body: JSON.stringify(this.namespacePayload(payload)),
|
|
540
618
|
signal: options.signal
|
|
541
619
|
}, "Failed to connect to the embedded-agent stream endpoint.");
|
|
542
620
|
await assertOk(response);
|
|
@@ -561,10 +639,10 @@ var EmbedNamespace = class {
|
|
|
561
639
|
return { threadId: response.headers.get("X-Thread-ID"), runId };
|
|
562
640
|
}
|
|
563
641
|
resumeAgentRun(agentId, runId, payload, options) {
|
|
564
|
-
return this.http.requestJson(`/public/embed/agents/${agentId}/runs/${runId}/resume`, { method: "POST", body: payload, options, mutation: true });
|
|
642
|
+
return this.http.requestJson(`/public/embed/agents/${agentId}/runs/${runId}/resume`, { method: "POST", body: this.namespacePayload(payload), options, mutation: true });
|
|
565
643
|
}
|
|
566
644
|
startAgentRunMcpAuth(agentId, runId, serverId, payload, options) {
|
|
567
|
-
return this.http.requestJson(`/public/embed/agents/${agentId}/runs/${runId}/mcp/servers/${serverId}/auth/start`, { method: "POST", body: payload, options, mutation: true });
|
|
645
|
+
return this.http.requestJson(`/public/embed/agents/${agentId}/runs/${runId}/mcp/servers/${serverId}/auth/start`, { method: "POST", body: this.namespacePayload(payload), options, mutation: true });
|
|
568
646
|
}
|
|
569
647
|
getRuntimeBootstrap(agentId, agentVersionId, runtimeTarget = "published") {
|
|
570
648
|
return this.http.requestJson(`/public/embed/agents/${agentId}/runtime/bootstrap`, {
|
|
@@ -580,13 +658,13 @@ var EmbedNamespace = class {
|
|
|
580
658
|
resolveCustomerPrincipal(request) {
|
|
581
659
|
return this.http.requestJson("/public/embed/customer-principals/resolve", {
|
|
582
660
|
method: "POST",
|
|
583
|
-
body: request
|
|
661
|
+
body: this.namespacePayload(request)
|
|
584
662
|
});
|
|
585
663
|
}
|
|
586
664
|
getResourcePolicy(agentId, request) {
|
|
587
665
|
return this.http.requestJson(`/public/embed/agents/${agentId}/resource-policy`, {
|
|
588
666
|
method: "POST",
|
|
589
|
-
body: request
|
|
667
|
+
body: this.namespacePayload(request)
|
|
590
668
|
});
|
|
591
669
|
}
|
|
592
670
|
listAgentThreads(agentId, options) {
|
|
@@ -596,11 +674,12 @@ var EmbedNamespace = class {
|
|
|
596
674
|
skip: options.skip ?? 0,
|
|
597
675
|
limit: options.limit ?? 20,
|
|
598
676
|
runtime_target: options.runtimeTarget,
|
|
599
|
-
integration_id: options.integrationId
|
|
677
|
+
integration_id: options.integrationId,
|
|
678
|
+
chat_scope: options.chatScope
|
|
600
679
|
} });
|
|
601
680
|
}
|
|
602
681
|
listAgentThreadsMulti(options) {
|
|
603
|
-
return this.http.requestJson("/public/embed/threads/query", { method: "POST", body: options });
|
|
682
|
+
return this.http.requestJson("/public/embed/threads/query", { method: "POST", body: this.namespacePayload(options) });
|
|
604
683
|
}
|
|
605
684
|
async subscribeAgentThreadEvents(agentId, options, onEvent) {
|
|
606
685
|
const response = await this.http.fetchOrThrow(this.http.url(`/public/embed/agents/${agentId}/threads/events`, {
|
|
@@ -609,6 +688,7 @@ var EmbedNamespace = class {
|
|
|
609
688
|
cursor: options.cursor,
|
|
610
689
|
runtime_target: options.runtimeTarget,
|
|
611
690
|
integration_id: options.integrationId,
|
|
691
|
+
chat_scope: options.chatScope,
|
|
612
692
|
thread_id: options.threadId,
|
|
613
693
|
lease_seconds: options.leaseSeconds
|
|
614
694
|
}), { method: "GET", headers: this.http.streamHeaders(), signal: options.signal }, "Failed to connect to the embedded-agent thread event endpoint.");
|
|
@@ -623,6 +703,7 @@ var EmbedNamespace = class {
|
|
|
623
703
|
cursor: options.cursor,
|
|
624
704
|
runtime_target: options.runtimeTarget,
|
|
625
705
|
integration_id: options.integrationId,
|
|
706
|
+
chat_scope: options.chatScope,
|
|
626
707
|
thread_id: options.threadId,
|
|
627
708
|
lease_seconds: options.leaseSeconds
|
|
628
709
|
}), { method: "GET", headers: this.http.streamHeaders(), signal: options.signal }, "Failed to connect to the embedded-agent thread event endpoint.");
|
|
@@ -634,6 +715,7 @@ var EmbedNamespace = class {
|
|
|
634
715
|
external_user_id: scope.externalUserId,
|
|
635
716
|
external_session_id: scope.externalSessionId,
|
|
636
717
|
integration_id: scope.integrationId,
|
|
718
|
+
chat_scope: scope.chatScope,
|
|
637
719
|
runtime_target: scope.runtimeTarget ?? "published"
|
|
638
720
|
};
|
|
639
721
|
}
|
|
@@ -649,12 +731,16 @@ var EmbedNamespace = class {
|
|
|
649
731
|
external_user_id: payload.externalUserId,
|
|
650
732
|
external_session_id: payload.externalSessionId,
|
|
651
733
|
integration_id: payload.integrationId,
|
|
734
|
+
chat_scope: payload.chatScope,
|
|
652
735
|
runtime_target: payload.runtimeTarget ?? "published",
|
|
736
|
+
agent_version_id: payload.agentVersionId,
|
|
737
|
+
requested_agent_id: payload.requestedAgentId,
|
|
653
738
|
client_submission_id: payload.clientSubmissionId,
|
|
654
739
|
mode: payload.mode,
|
|
655
740
|
input: payload.input,
|
|
656
741
|
attachment_ids: payload.attachmentIds ?? [],
|
|
657
742
|
requested_model_id: payload.requestedModelId,
|
|
743
|
+
knowledge_namespaces: payload.knowledgeNamespaces,
|
|
658
744
|
tool_inputs: payload.toolInputs ?? {},
|
|
659
745
|
metadata: payload.metadata ?? {}
|
|
660
746
|
},
|
|
@@ -670,6 +756,8 @@ var EmbedNamespace = class {
|
|
|
670
756
|
revision: payload.revision,
|
|
671
757
|
input: payload.input,
|
|
672
758
|
mode: payload.mode,
|
|
759
|
+
agent_version_id: payload.agentVersionId,
|
|
760
|
+
requested_agent_id: payload.requestedAgentId,
|
|
673
761
|
attachment_ids: payload.attachmentIds ?? [],
|
|
674
762
|
requested_model_id: payload.requestedModelId
|
|
675
763
|
},
|
|
@@ -697,6 +785,7 @@ var EmbedNamespace = class {
|
|
|
697
785
|
external_user_id: options.externalUserId,
|
|
698
786
|
external_session_id: options.externalSessionId,
|
|
699
787
|
integration_id: options.integrationId,
|
|
788
|
+
chat_scope: options.chatScope,
|
|
700
789
|
before_turn_index: options.beforeTurnIndex,
|
|
701
790
|
limit: options.limit,
|
|
702
791
|
runtime_target: options.runtimeTarget
|
|
@@ -708,6 +797,7 @@ var EmbedNamespace = class {
|
|
|
708
797
|
external_user_id: options.externalUserId,
|
|
709
798
|
external_session_id: options.externalSessionId,
|
|
710
799
|
integration_id: options.integrationId,
|
|
800
|
+
chat_scope: options.chatScope,
|
|
711
801
|
runtime_target: options.runtimeTarget
|
|
712
802
|
} });
|
|
713
803
|
}
|
|
@@ -717,6 +807,7 @@ var EmbedNamespace = class {
|
|
|
717
807
|
external_user_id: options.externalUserId,
|
|
718
808
|
external_session_id: options.externalSessionId,
|
|
719
809
|
integration_id: options.integrationId,
|
|
810
|
+
chat_scope: options.chatScope,
|
|
720
811
|
runtime_target: options.runtimeTarget,
|
|
721
812
|
path: options.path,
|
|
722
813
|
cursor: options.cursor,
|
|
@@ -729,6 +820,7 @@ var EmbedNamespace = class {
|
|
|
729
820
|
external_user_id: options.externalUserId,
|
|
730
821
|
external_session_id: options.externalSessionId,
|
|
731
822
|
integration_id: options.integrationId,
|
|
823
|
+
chat_scope: options.chatScope,
|
|
732
824
|
runtime_target: options.runtimeTarget,
|
|
733
825
|
path: options.path
|
|
734
826
|
} });
|
|
@@ -739,16 +831,17 @@ var EmbedNamespace = class {
|
|
|
739
831
|
external_user_id: options.externalUserId,
|
|
740
832
|
external_session_id: options.externalSessionId,
|
|
741
833
|
integration_id: options.integrationId,
|
|
834
|
+
chat_scope: options.chatScope,
|
|
742
835
|
runtime_target: options.runtimeTarget,
|
|
743
836
|
path: options.path,
|
|
744
837
|
download: options.download
|
|
745
838
|
}, body: {}, mutation: true });
|
|
746
839
|
}
|
|
747
840
|
setConversationRuntimeSelection(threadId, request) {
|
|
748
|
-
return this.http.requestJson(`/public/embed/threads/${threadId}/runtime-selection`, { method: "PATCH", body: request, mutation: true });
|
|
841
|
+
return this.http.requestJson(`/public/embed/threads/${threadId}/runtime-selection`, { method: "PATCH", body: this.namespacePayload(request), mutation: true });
|
|
749
842
|
}
|
|
750
843
|
resolveConversationRun(runId, request) {
|
|
751
|
-
return this.http.requestJson(`/public/embed/runs/${runId}/resolve`, { method: "POST", body: request });
|
|
844
|
+
return this.http.requestJson(`/public/embed/runs/${runId}/resolve`, { method: "POST", body: this.namespacePayload(request) });
|
|
752
845
|
}
|
|
753
846
|
deleteConversationThread(threadId, options, requestOptions) {
|
|
754
847
|
return this.http.requestJson(`/public/embed/threads/${threadId}`, { method: "DELETE", query: {
|
|
@@ -756,6 +849,7 @@ var EmbedNamespace = class {
|
|
|
756
849
|
external_user_id: options.externalUserId,
|
|
757
850
|
external_session_id: options.externalSessionId,
|
|
758
851
|
integration_id: options.integrationId,
|
|
852
|
+
chat_scope: options.chatScope,
|
|
759
853
|
runtime_target: options.runtimeTarget
|
|
760
854
|
}, options: requestOptions, mutation: true });
|
|
761
855
|
}
|
|
@@ -770,7 +864,8 @@ var EmbedNamespace = class {
|
|
|
770
864
|
subthread_turn_limit: options.subthreadTurnLimit,
|
|
771
865
|
subthread_child_limit: options.subthreadChildLimit,
|
|
772
866
|
runtime_target: options.runtimeTarget,
|
|
773
|
-
integration_id: options.integrationId
|
|
867
|
+
integration_id: options.integrationId,
|
|
868
|
+
chat_scope: options.chatScope
|
|
774
869
|
} });
|
|
775
870
|
}
|
|
776
871
|
getAgentComputer(agentId, threadId, options) {
|
|
@@ -778,6 +873,7 @@ var EmbedNamespace = class {
|
|
|
778
873
|
external_user_id: options.externalUserId,
|
|
779
874
|
external_session_id: options.externalSessionId,
|
|
780
875
|
integration_id: options.integrationId,
|
|
876
|
+
chat_scope: options.chatScope,
|
|
781
877
|
runtime_target: options.runtimeTarget
|
|
782
878
|
} });
|
|
783
879
|
}
|
|
@@ -786,6 +882,7 @@ var EmbedNamespace = class {
|
|
|
786
882
|
external_user_id: options.externalUserId,
|
|
787
883
|
external_session_id: options.externalSessionId,
|
|
788
884
|
integration_id: options.integrationId,
|
|
885
|
+
chat_scope: options.chatScope,
|
|
789
886
|
runtime_target: options.runtimeTarget,
|
|
790
887
|
path: options.path,
|
|
791
888
|
cursor: options.cursor,
|
|
@@ -797,6 +894,7 @@ var EmbedNamespace = class {
|
|
|
797
894
|
external_user_id: options.externalUserId,
|
|
798
895
|
external_session_id: options.externalSessionId,
|
|
799
896
|
integration_id: options.integrationId,
|
|
897
|
+
chat_scope: options.chatScope,
|
|
800
898
|
runtime_target: options.runtimeTarget,
|
|
801
899
|
path: options.path
|
|
802
900
|
} });
|
|
@@ -806,6 +904,7 @@ var EmbedNamespace = class {
|
|
|
806
904
|
external_user_id: options.externalUserId,
|
|
807
905
|
external_session_id: options.externalSessionId,
|
|
808
906
|
integration_id: options.integrationId,
|
|
907
|
+
chat_scope: options.chatScope,
|
|
809
908
|
runtime_target: options.runtimeTarget,
|
|
810
909
|
path: options.path,
|
|
811
910
|
download: options.download
|
|
@@ -816,7 +915,8 @@ var EmbedNamespace = class {
|
|
|
816
915
|
external_user_id: options.externalUserId,
|
|
817
916
|
external_session_id: options.externalSessionId,
|
|
818
917
|
runtime_target: options.runtimeTarget,
|
|
819
|
-
integration_id: options.integrationId
|
|
918
|
+
integration_id: options.integrationId,
|
|
919
|
+
chat_scope: options.chatScope
|
|
820
920
|
}, options: requestOptions, mutation: true });
|
|
821
921
|
}
|
|
822
922
|
getAgentRunContext(agentId, runId, options) {
|
|
@@ -824,7 +924,8 @@ var EmbedNamespace = class {
|
|
|
824
924
|
external_user_id: options.externalUserId,
|
|
825
925
|
external_session_id: options.externalSessionId,
|
|
826
926
|
runtime_target: options.runtimeTarget,
|
|
827
|
-
integration_id: options.integrationId
|
|
927
|
+
integration_id: options.integrationId,
|
|
928
|
+
chat_scope: options.chatScope
|
|
828
929
|
} });
|
|
829
930
|
}
|
|
830
931
|
cancelAgentRun(agentId, runId, options, requestOptions) {
|
|
@@ -832,13 +933,14 @@ var EmbedNamespace = class {
|
|
|
832
933
|
external_user_id: options.externalUserId,
|
|
833
934
|
external_session_id: options.externalSessionId,
|
|
834
935
|
runtime_target: options.runtimeTarget,
|
|
835
|
-
integration_id: options.integrationId
|
|
936
|
+
integration_id: options.integrationId,
|
|
937
|
+
chat_scope: options.chatScope
|
|
836
938
|
}, body: {}, options: requestOptions, mutation: true });
|
|
837
939
|
}
|
|
838
940
|
setAgentRunFeedback(agentId, runId, payload) {
|
|
839
941
|
return this.http.requestJson(
|
|
840
942
|
`/public/embed/agents/${agentId}/runs/${runId}/feedback`,
|
|
841
|
-
{ method: "PUT", body: payload, mutation: true }
|
|
943
|
+
{ method: "PUT", body: this.namespacePayload(payload), mutation: true }
|
|
842
944
|
);
|
|
843
945
|
}
|
|
844
946
|
async uploadAgentAttachments(agentId, options) {
|
|
@@ -848,6 +950,7 @@ var EmbedNamespace = class {
|
|
|
848
950
|
if (options.threadId) form.set("thread_id", options.threadId);
|
|
849
951
|
if (options.runtimeTarget) form.set("runtime_target", options.runtimeTarget);
|
|
850
952
|
if (options.integrationId) form.set("integration_id", options.integrationId);
|
|
953
|
+
if (options.chatScope) form.set("chat_scope", options.chatScope);
|
|
851
954
|
for (const file of options.files) form.append("files", file.slice(0, file.size, client.normalizeAttachmentMimeType(file.type, file.name)), file.name);
|
|
852
955
|
const response = await this.http.fetchOrThrow(this.http.url(`/public/embed/agents/${agentId}/attachments/upload`), {
|
|
853
956
|
method: "POST",
|
|
@@ -860,7 +963,7 @@ var EmbedNamespace = class {
|
|
|
860
963
|
createAttachmentContentAccess(agentId, attachmentId, request, options) {
|
|
861
964
|
return this.http.requestJson(
|
|
862
965
|
`/public/embed/agents/${agentId}/attachments/${attachmentId}/content-access`,
|
|
863
|
-
{ method: "POST", body: request, options, mutation: true }
|
|
966
|
+
{ method: "POST", body: this.namespacePayload(request), options, mutation: true }
|
|
864
967
|
);
|
|
865
968
|
}
|
|
866
969
|
};
|
|
@@ -1346,7 +1449,7 @@ var IngestionJobsNamespace = class {
|
|
|
1346
1449
|
start(request, options) {
|
|
1347
1450
|
return this.http.requestJson("/admin/pipelines/jobs", {
|
|
1348
1451
|
method: "POST",
|
|
1349
|
-
body: request,
|
|
1452
|
+
body: (({ knowledgeNamespaces, ...wire }) => ({ ...wire, ...knowledgeNamespaces === void 0 ? {} : { knowledge_namespaces: knowledgeNamespaces } }))(request),
|
|
1350
1453
|
options,
|
|
1351
1454
|
mutation: true
|
|
1352
1455
|
});
|
|
@@ -1589,6 +1692,11 @@ var SDK_OPERATION_IDS = [
|
|
|
1589
1692
|
"embed.thread_messages.resume_queue",
|
|
1590
1693
|
"embed.thread_messages.submit",
|
|
1591
1694
|
"embed.upload_agent_attachments",
|
|
1695
|
+
"embed_delegations.act",
|
|
1696
|
+
"embed_delegations.events",
|
|
1697
|
+
"embed_delegations.history",
|
|
1698
|
+
"embed_delegations.inspect",
|
|
1699
|
+
"embed_delegations.list",
|
|
1592
1700
|
"ingestionJobs.cancel",
|
|
1593
1701
|
"ingestionJobs.get",
|
|
1594
1702
|
"ingestionJobs.list",
|