@agents24/node 0.4.0 → 0.5.1
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 +26 -2
- package/compatibility.json +6 -6
- package/dist/bff.cjs +468 -51
- package/dist/bff.cjs.map +1 -1
- package/dist/bff.d.cts +23 -4
- package/dist/bff.d.ts +23 -4
- package/dist/bff.js +468 -51
- package/dist/bff.js.map +1 -1
- package/dist/{client-C5ui84wi.d.cts → client-xWr_OGEe.d.cts} +285 -86
- package/dist/{client-C5ui84wi.d.ts → client-xWr_OGEe.d.ts} +285 -86
- package/dist/index.cjs +177 -65
- 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 +177 -65
- 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 -20
- package/dist/types/bff.d.ts.map +1 -1
- package/dist/types/client.d.ts +2 -2
- package/dist/types/client.d.ts.map +1 -1
- package/dist/types/embed.d.ts +7 -1
- 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 +6 -2
- package/dist/types/generated/resourceInstallations.d.ts.map +1 -1
- 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 +255 -69
- 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/types/types.d.ts
CHANGED
|
@@ -52,11 +52,11 @@ export type EmbedStreamRequest = {
|
|
|
52
52
|
requested_model_id?: string;
|
|
53
53
|
requested_model_node_id?: string;
|
|
54
54
|
external_user_id: string;
|
|
55
|
-
external_user_issuer?: string;
|
|
56
55
|
external_session_id?: string;
|
|
57
56
|
metadata?: Record<string, unknown>;
|
|
58
57
|
client?: Record<string, unknown>;
|
|
59
58
|
runtime_target?: "draft" | "published";
|
|
59
|
+
integration_id: string;
|
|
60
60
|
};
|
|
61
61
|
export type AttachRunRequest = {
|
|
62
62
|
external_user_id: string;
|
|
@@ -65,6 +65,7 @@ export type AttachRunRequest = {
|
|
|
65
65
|
client?: Record<string, unknown>;
|
|
66
66
|
cursor?: number;
|
|
67
67
|
runtime_target?: "draft" | "published";
|
|
68
|
+
integration_id: string;
|
|
68
69
|
};
|
|
69
70
|
export type FeedbackRating = "like" | "dislike";
|
|
70
71
|
export type FeedbackReason = "incorrect" | "irrelevant" | "incomplete" | "unsafe" | "citation_issue" | "other";
|
|
@@ -86,6 +87,7 @@ export type EmbeddedResponseFeedbackInput = {
|
|
|
86
87
|
reason?: FeedbackReason | null;
|
|
87
88
|
comment?: string | null;
|
|
88
89
|
runtime_target?: "draft" | "published";
|
|
90
|
+
integration_id: string;
|
|
89
91
|
};
|
|
90
92
|
export type HitlAction = "approve" | "reject" | "connect" | "skip" | "respond";
|
|
91
93
|
export type HitlAnswer = {
|
|
@@ -111,17 +113,28 @@ export type McpAuthStartResult = {
|
|
|
111
113
|
};
|
|
112
114
|
export type EmbedRuntimeBootstrap = {
|
|
113
115
|
version: string;
|
|
114
|
-
|
|
116
|
+
agent_id: string;
|
|
117
|
+
agent_name: string;
|
|
118
|
+
agent_alias: string;
|
|
119
|
+
agent_aliases: string[];
|
|
115
120
|
agent_version_id?: string;
|
|
116
121
|
agent_version_number?: number;
|
|
117
122
|
features: Record<string, unknown>;
|
|
118
123
|
thread_events_path?: string | null;
|
|
119
124
|
thread_events_url?: string | null;
|
|
120
125
|
};
|
|
126
|
+
export type EmbedAgentAliasResolution = {
|
|
127
|
+
agent_id: string;
|
|
128
|
+
agent_name: string;
|
|
129
|
+
agent_alias: string;
|
|
130
|
+
agent_aliases: string[];
|
|
131
|
+
};
|
|
121
132
|
export type MultiAgentThreadListRequest = {
|
|
122
133
|
agent_ids: string[];
|
|
123
134
|
external_user_id: string;
|
|
124
135
|
external_session_id?: string | null;
|
|
136
|
+
runtime_target?: "draft" | "published";
|
|
137
|
+
integration_id: string;
|
|
125
138
|
skip?: number;
|
|
126
139
|
limit?: number;
|
|
127
140
|
};
|
|
@@ -129,6 +142,7 @@ export type ThreadListOptions = {
|
|
|
129
142
|
externalUserId: string;
|
|
130
143
|
externalSessionId?: string;
|
|
131
144
|
runtimeTarget?: "draft" | "published";
|
|
145
|
+
integrationId: string;
|
|
132
146
|
skip?: number;
|
|
133
147
|
limit?: number;
|
|
134
148
|
};
|
|
@@ -142,11 +156,13 @@ export type ThreadDetailOptions = {
|
|
|
142
156
|
subthreadDepth?: number;
|
|
143
157
|
subthreadTurnLimit?: number;
|
|
144
158
|
subthreadChildLimit?: number;
|
|
159
|
+
integrationId: string;
|
|
145
160
|
};
|
|
146
161
|
export type RunContextOptions = {
|
|
147
162
|
externalUserId: string;
|
|
148
163
|
externalSessionId?: string;
|
|
149
164
|
runtimeTarget?: "draft" | "published";
|
|
165
|
+
integrationId: string;
|
|
150
166
|
};
|
|
151
167
|
export type RunCancelOptions = {
|
|
152
168
|
externalUserId?: string;
|
|
@@ -157,11 +173,13 @@ export type EmbedRunCancelOptions = {
|
|
|
157
173
|
externalUserId?: string;
|
|
158
174
|
externalSessionId?: string;
|
|
159
175
|
runtimeTarget?: "draft" | "published";
|
|
176
|
+
integrationId: string;
|
|
160
177
|
};
|
|
161
178
|
export type ThreadDeleteOptions = {
|
|
162
179
|
externalUserId: string;
|
|
163
180
|
externalSessionId?: string;
|
|
164
181
|
runtimeTarget?: "draft" | "published";
|
|
182
|
+
integrationId: string;
|
|
165
183
|
};
|
|
166
184
|
export type ThreadSummaryEventOptions = {
|
|
167
185
|
externalUserId: string;
|
|
@@ -169,10 +187,47 @@ export type ThreadSummaryEventOptions = {
|
|
|
169
187
|
cursor?: number | null;
|
|
170
188
|
signal?: AbortSignal;
|
|
171
189
|
runtimeTarget?: "draft" | "published";
|
|
190
|
+
integrationId: string;
|
|
172
191
|
};
|
|
173
192
|
export type MultiAgentThreadSummaryEventOptions = ThreadSummaryEventOptions & {
|
|
174
193
|
agentIds: string[];
|
|
175
194
|
};
|
|
195
|
+
export type ConversationThreadOptions = ThreadDetailOptions & {
|
|
196
|
+
agentIds: string[];
|
|
197
|
+
integrationId: string;
|
|
198
|
+
};
|
|
199
|
+
export type ConversationRuntimeSelectionRequest = {
|
|
200
|
+
agent_ids: string[];
|
|
201
|
+
preferred_agent_id: string;
|
|
202
|
+
preferred_model_id?: string | null;
|
|
203
|
+
external_user_id: string;
|
|
204
|
+
external_session_id?: string | null;
|
|
205
|
+
integration_id: string;
|
|
206
|
+
runtime_target?: "draft" | "published";
|
|
207
|
+
};
|
|
208
|
+
export type ConversationRuntimeSelectionResult = {
|
|
209
|
+
runtime_selection: {
|
|
210
|
+
agent_id: string;
|
|
211
|
+
model_id: string | null;
|
|
212
|
+
};
|
|
213
|
+
models: {
|
|
214
|
+
default_id: string | null;
|
|
215
|
+
options: Array<{
|
|
216
|
+
id: string;
|
|
217
|
+
label: string;
|
|
218
|
+
}>;
|
|
219
|
+
};
|
|
220
|
+
};
|
|
221
|
+
export type ConversationRunRequest = {
|
|
222
|
+
agent_ids: string[];
|
|
223
|
+
external_user_id: string;
|
|
224
|
+
external_session_id?: string | null;
|
|
225
|
+
integration_id: string;
|
|
226
|
+
runtime_target?: "draft" | "published";
|
|
227
|
+
};
|
|
228
|
+
export type ConversationRunResult = {
|
|
229
|
+
agent_id: string;
|
|
230
|
+
};
|
|
176
231
|
export type ServerAttachmentUploadOptions = {
|
|
177
232
|
threadId?: string;
|
|
178
233
|
agentVersionId?: string;
|
|
@@ -186,11 +241,13 @@ export type EmbedAttachmentContentAccessRequest = AttachmentContentAccessRequest
|
|
|
186
241
|
external_user_id: string;
|
|
187
242
|
external_session_id?: string | null;
|
|
188
243
|
runtime_target?: "draft" | "published";
|
|
244
|
+
integration_id: string;
|
|
189
245
|
};
|
|
190
246
|
export type ServerEmbedAttachmentUploadOptions = ServerAttachmentUploadOptions & {
|
|
191
247
|
externalUserId: string;
|
|
192
248
|
externalSessionId?: string;
|
|
193
249
|
runtimeTarget?: "draft" | "published";
|
|
250
|
+
integrationId: string;
|
|
194
251
|
};
|
|
195
252
|
export type GraphValueRef = {
|
|
196
253
|
namespace: "workflow_input" | "state" | "node_output";
|
|
@@ -318,6 +375,7 @@ export type AgentValidationResult = {
|
|
|
318
375
|
};
|
|
319
376
|
export type AgentCreateRequest = {
|
|
320
377
|
name: string;
|
|
378
|
+
aliases?: string[];
|
|
321
379
|
description?: string | null;
|
|
322
380
|
tags?: string[];
|
|
323
381
|
graph_definition: GraphDefinition;
|
|
@@ -329,6 +387,7 @@ export type AgentSummary = {
|
|
|
329
387
|
id: string;
|
|
330
388
|
organization_id: string;
|
|
331
389
|
name: string;
|
|
390
|
+
aliases: string[];
|
|
332
391
|
description?: string | null;
|
|
333
392
|
tags: string[];
|
|
334
393
|
lifecycle_status: "active" | "deprecated" | "archived" | "disabled";
|
|
@@ -640,10 +699,38 @@ export type ResourcePackageUpload = {
|
|
|
640
699
|
data: Uint8Array;
|
|
641
700
|
filename?: string;
|
|
642
701
|
};
|
|
702
|
+
export type ResourcePackageImportUpload = ResourcePackageUpload & {
|
|
703
|
+
mappings?: Record<string, string>;
|
|
704
|
+
};
|
|
643
705
|
export type ResourceInstallationPlanUpload = ResourcePackageUpload & {
|
|
644
|
-
installationId?: string;
|
|
645
706
|
prune?: boolean;
|
|
646
|
-
|
|
707
|
+
};
|
|
708
|
+
export type ResourceInstallationPullChange = {
|
|
709
|
+
status: "A" | "M" | "D";
|
|
710
|
+
path: string;
|
|
711
|
+
};
|
|
712
|
+
export type ResourceInstallationPullPlan = {
|
|
713
|
+
pull_id: string;
|
|
714
|
+
installation_id: string;
|
|
715
|
+
status: "planned" | "completed";
|
|
716
|
+
platform_snapshot_hash: string;
|
|
717
|
+
package_hash: string;
|
|
718
|
+
plan: {
|
|
719
|
+
summary: Record<string, number>;
|
|
720
|
+
files: ResourceInstallationPullChange[];
|
|
721
|
+
resources: Array<Record<string, unknown>>;
|
|
722
|
+
};
|
|
723
|
+
completed_at?: string | null;
|
|
724
|
+
};
|
|
725
|
+
export type ResourceInstallationPullPayload = {
|
|
726
|
+
pull_id: string;
|
|
727
|
+
platform_snapshot_hash: string;
|
|
728
|
+
package_hash: string;
|
|
729
|
+
files: Record<string, string>;
|
|
730
|
+
};
|
|
731
|
+
export type ResourceInstallationPullAcceptRequest = {
|
|
732
|
+
platform_snapshot_hash: string;
|
|
733
|
+
package_hash: string;
|
|
647
734
|
};
|
|
648
735
|
export type ResourcePackageDiagnostic = {
|
|
649
736
|
severity: "error" | "warning";
|
|
@@ -651,38 +738,42 @@ export type ResourcePackageDiagnostic = {
|
|
|
651
738
|
path: string;
|
|
652
739
|
message: string;
|
|
653
740
|
};
|
|
654
|
-
export type
|
|
741
|
+
export type ResourceToolExport = {
|
|
742
|
+
source_resource_key: string;
|
|
743
|
+
source_kind: "agent" | "rag_pipeline";
|
|
744
|
+
key?: string;
|
|
745
|
+
name: string;
|
|
746
|
+
description: string;
|
|
747
|
+
input_schema: Record<string, unknown>;
|
|
748
|
+
output_schema: Record<string, unknown>;
|
|
749
|
+
session?: "fresh" | "persistent" | "shared";
|
|
750
|
+
};
|
|
751
|
+
export type ResourceCallableBinding = {
|
|
752
|
+
consumer_resource_key: string;
|
|
753
|
+
consumer_node_id: string;
|
|
754
|
+
source_resource_key: string;
|
|
755
|
+
source_kind: "agent" | "rag_pipeline" | "artifact";
|
|
756
|
+
tool_title?: string;
|
|
757
|
+
description?: string;
|
|
758
|
+
source_tool_id?: string;
|
|
759
|
+
export_key?: string;
|
|
760
|
+
loading_mode?: "static" | "dynamic";
|
|
761
|
+
};
|
|
762
|
+
export type ResourcePackageValidationResult = {
|
|
655
763
|
valid: boolean;
|
|
764
|
+
package_hash?: string;
|
|
656
765
|
format: "agents24.resource_package";
|
|
657
766
|
schema_version: "2.0";
|
|
658
767
|
package: Record<string, unknown>;
|
|
659
768
|
resources: Array<Record<string, unknown>>;
|
|
660
769
|
requirements: string[];
|
|
661
|
-
tool_exports:
|
|
662
|
-
callable_bindings:
|
|
770
|
+
tool_exports: ResourceToolExport[];
|
|
771
|
+
callable_bindings: ResourceCallableBinding[];
|
|
663
772
|
diagnostics: ResourcePackageDiagnostic[];
|
|
664
|
-
bundle?: ResourceBundle | null;
|
|
665
|
-
};
|
|
666
|
-
export type ResourceBundleImportRequest = {
|
|
667
|
-
bundle: ResourceBundle;
|
|
668
|
-
selected_resource_keys?: string[];
|
|
669
|
-
mappings?: Record<string, string>;
|
|
670
773
|
};
|
|
671
|
-
export type
|
|
672
|
-
source_id: string;
|
|
673
|
-
target: "draft" | "version";
|
|
674
|
-
version_id?: string | null;
|
|
675
|
-
label: string;
|
|
676
|
-
};
|
|
677
|
-
export type ResourceBundleResource = {
|
|
678
|
-
resource_key: string;
|
|
679
|
-
kind: PortableResourceKind;
|
|
680
|
-
name: string;
|
|
681
|
-
document: Record<string, unknown>;
|
|
682
|
-
origin?: ResourceBundleOrigin;
|
|
683
|
-
};
|
|
684
|
-
export type ResourceBundleDependency = {
|
|
774
|
+
export type ResourcePackageDependency = {
|
|
685
775
|
id: string;
|
|
776
|
+
requirement_key?: string | null;
|
|
686
777
|
from_resource_key: string;
|
|
687
778
|
to_resource_key?: string | null;
|
|
688
779
|
kind: string;
|
|
@@ -694,45 +785,88 @@ export type ResourceBundleDependency = {
|
|
|
694
785
|
bundled: boolean;
|
|
695
786
|
included?: boolean;
|
|
696
787
|
required_capability?: "chat" | "embedding";
|
|
788
|
+
status?: "bundled" | "mapped" | "unresolved";
|
|
789
|
+
mapped_id?: string | null;
|
|
790
|
+
suggested_mapping?: {
|
|
791
|
+
id: string;
|
|
792
|
+
name: string;
|
|
793
|
+
} | null;
|
|
697
794
|
};
|
|
698
|
-
export type
|
|
699
|
-
format: "agents24.
|
|
795
|
+
export type ResourcePackageExportPlan = {
|
|
796
|
+
format: "agents24.resource_package";
|
|
700
797
|
schema_version: "2.0";
|
|
701
|
-
|
|
702
|
-
resources:
|
|
703
|
-
|
|
798
|
+
selected_roots: ResourceSelector[];
|
|
799
|
+
resources: Array<{
|
|
800
|
+
resource_key: string;
|
|
801
|
+
kind: PortableResourceKind;
|
|
802
|
+
name: string;
|
|
803
|
+
}>;
|
|
804
|
+
external_requirements: Array<{
|
|
805
|
+
requirement_key: string | null;
|
|
806
|
+
kind: string;
|
|
807
|
+
name?: string | null;
|
|
808
|
+
required: boolean;
|
|
809
|
+
required_capability?: "chat" | "embedding";
|
|
810
|
+
}>;
|
|
704
811
|
warnings: string[];
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
812
|
+
blockers: Array<{
|
|
813
|
+
code: string;
|
|
814
|
+
message: string;
|
|
815
|
+
}>;
|
|
816
|
+
can_export: boolean;
|
|
817
|
+
};
|
|
818
|
+
export type ResourcePackageImportPreview = {
|
|
819
|
+
format: "agents24.resource_package";
|
|
820
|
+
schema_version: "2.0";
|
|
821
|
+
package: Record<string, unknown>;
|
|
822
|
+
package_hash: string;
|
|
823
|
+
resources: Array<{
|
|
708
824
|
resource_key: string;
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
825
|
+
kind: PortableResourceKind;
|
|
826
|
+
name: string;
|
|
827
|
+
status: "ready" | "incomplete";
|
|
828
|
+
incomplete_reasons: Array<{
|
|
829
|
+
dependency_id: string;
|
|
830
|
+
kind: string;
|
|
831
|
+
message: string;
|
|
712
832
|
}>;
|
|
713
833
|
}>;
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
834
|
+
dependencies: ResourcePackageDependency[];
|
|
835
|
+
suggested_mappings: Array<{
|
|
836
|
+
dependency_id: string;
|
|
837
|
+
id: string;
|
|
838
|
+
name: string;
|
|
839
|
+
}>;
|
|
840
|
+
warnings: string[];
|
|
717
841
|
blockers: Array<{
|
|
718
842
|
code: string;
|
|
719
843
|
message: string;
|
|
720
844
|
}>;
|
|
721
|
-
|
|
722
|
-
external_references: ResourceBundleDependency[];
|
|
845
|
+
can_import: boolean;
|
|
723
846
|
};
|
|
724
|
-
export type
|
|
725
|
-
|
|
726
|
-
|
|
847
|
+
export type ResourcePackageImportResult = {
|
|
848
|
+
format: "agents24.resource_package";
|
|
849
|
+
schema_version: "2.0";
|
|
850
|
+
package_hash: string;
|
|
851
|
+
status: "created";
|
|
852
|
+
resources: Array<{
|
|
853
|
+
resource_key: string;
|
|
854
|
+
kind: PortableResourceKind;
|
|
855
|
+
id: string;
|
|
856
|
+
name: string;
|
|
857
|
+
status: "ready" | "incomplete";
|
|
858
|
+
}>;
|
|
859
|
+
id_map: Record<string, string>;
|
|
860
|
+
warnings: string[];
|
|
727
861
|
};
|
|
728
|
-
export type
|
|
862
|
+
export type ResourceCandidateList = {
|
|
729
863
|
items: Array<{
|
|
730
864
|
id: string;
|
|
731
865
|
name: string;
|
|
732
866
|
}>;
|
|
733
867
|
total: number;
|
|
734
868
|
};
|
|
735
|
-
export type
|
|
869
|
+
export type ResourcePackageCandidateOptions = {
|
|
736
870
|
kind: string;
|
|
737
871
|
query?: string;
|
|
738
872
|
limit?: number;
|
|
@@ -746,9 +880,25 @@ export type ResourceInstallationBinding = {
|
|
|
746
880
|
source_hash?: string | null;
|
|
747
881
|
retained_orphan?: boolean;
|
|
748
882
|
};
|
|
883
|
+
export type ResourceCallableBindingStatus = {
|
|
884
|
+
consumer_resource_key: string;
|
|
885
|
+
consumer_node_id: string;
|
|
886
|
+
source_resource_key: string;
|
|
887
|
+
source_kind: "agent" | "rag_pipeline" | "artifact";
|
|
888
|
+
registry_kind: "tool" | "toolset" | null;
|
|
889
|
+
tool_id: string | null;
|
|
890
|
+
tool_key: string | null;
|
|
891
|
+
toolset_id: string | null;
|
|
892
|
+
toolset_key: string | null;
|
|
893
|
+
draft_status: "attached" | "unavailable" | "missing" | "stale" | "blocked";
|
|
894
|
+
published_status: "attached" | "unavailable" | "missing" | "stale" | "not_published";
|
|
895
|
+
published_version_id: string | null;
|
|
896
|
+
blocker_code: string | null;
|
|
897
|
+
};
|
|
749
898
|
export type ResourceInstallationOperation = {
|
|
750
899
|
operation_id: string;
|
|
751
900
|
installation_id: string;
|
|
901
|
+
package_id: string;
|
|
752
902
|
status: "planned" | "applying" | "waiting" | "completed" | "failed";
|
|
753
903
|
phase: string;
|
|
754
904
|
result: Record<string, unknown>;
|
|
@@ -756,17 +906,22 @@ export type ResourceInstallationOperation = {
|
|
|
756
906
|
};
|
|
757
907
|
export type ResourceInstallation = {
|
|
758
908
|
id: string;
|
|
909
|
+
package_id: string | null;
|
|
759
910
|
package_name: string;
|
|
760
911
|
primary_resource_key?: string | null;
|
|
761
912
|
integration_mode: "bff" | "client-deployment" | "publish-only";
|
|
762
913
|
client_deployment_id?: string | null;
|
|
763
914
|
status: string;
|
|
764
|
-
|
|
915
|
+
synchronized_package_hash?: string | null;
|
|
765
916
|
last_applied_at?: string | null;
|
|
917
|
+
last_sync_direction?: "apply" | "pull" | null;
|
|
918
|
+
last_synchronized_at?: string | null;
|
|
919
|
+
last_pull_summary?: Record<string, unknown>;
|
|
766
920
|
last_published_package_hash?: string | null;
|
|
767
921
|
last_published_at?: string | null;
|
|
768
922
|
publication_state?: "never_published" | "current" | "draft_changes";
|
|
769
923
|
bindings?: ResourceInstallationBinding[];
|
|
924
|
+
callable_bindings?: ResourceCallableBindingStatus[];
|
|
770
925
|
development_connections?: ArtifactDevelopmentSession[];
|
|
771
926
|
remote_artifact_stages?: Array<{
|
|
772
927
|
resource_key: string;
|
|
@@ -776,24 +931,32 @@ export type ResourceInstallation = {
|
|
|
776
931
|
manifest_hash: string;
|
|
777
932
|
base_url?: string | null;
|
|
778
933
|
}>;
|
|
779
|
-
|
|
934
|
+
latest_apply?: ResourceInstallationOperation | null;
|
|
935
|
+
latest_pull?: ResourceInstallationPullPlan | null;
|
|
780
936
|
};
|
|
781
937
|
export type ResourceInstallationList = {
|
|
782
938
|
items: ResourceInstallation[];
|
|
783
939
|
};
|
|
784
940
|
export type ResourceInstallationCreateRequest = {
|
|
941
|
+
package_id: string;
|
|
785
942
|
package_name: string;
|
|
786
943
|
operation_id: string;
|
|
787
944
|
};
|
|
788
945
|
export type ResourceInstallationPlan = {
|
|
789
946
|
installation_id: string | null;
|
|
790
947
|
operation_id: string;
|
|
948
|
+
package_id: string;
|
|
791
949
|
package_name: string;
|
|
792
950
|
package_hash: string;
|
|
793
951
|
actions: Array<Record<string, unknown>>;
|
|
794
952
|
content: Array<Record<string, unknown>>;
|
|
795
953
|
external_requirements: Array<Record<string, unknown>>;
|
|
796
954
|
artifact_actions: Array<Record<string, unknown>>;
|
|
955
|
+
artifact_readiness: Array<{
|
|
956
|
+
resource_key: string;
|
|
957
|
+
status: string;
|
|
958
|
+
blocking: false;
|
|
959
|
+
}>;
|
|
797
960
|
generated_tool_changes: Array<Record<string, unknown>>;
|
|
798
961
|
publication_order: string[];
|
|
799
962
|
deployment: Record<string, unknown>;
|
|
@@ -816,7 +979,6 @@ export type ResourceInstallationApplyRequest = {
|
|
|
816
979
|
secrets?: Record<string, string>;
|
|
817
980
|
primary_resource_key?: string;
|
|
818
981
|
integration_mode?: "bff" | "client-deployment" | "publish-only";
|
|
819
|
-
development_sessions?: Record<string, string>;
|
|
820
982
|
};
|
|
821
983
|
export type ResourceInstallationPublishRequest = {
|
|
822
984
|
package_hash: string;
|
|
@@ -838,10 +1000,13 @@ export type ArtifactDevelopmentSession = {
|
|
|
838
1000
|
installation_id: string;
|
|
839
1001
|
resource_key: string;
|
|
840
1002
|
artifact_id?: string | null;
|
|
841
|
-
status: "prepared" | "connecting" | "
|
|
1003
|
+
status: "prepared" | "connecting" | "connected" | "disconnected" | "expired" | "superseded" | "revoked";
|
|
1004
|
+
contract_status: "unverified" | "verifying" | "healthy" | "stale";
|
|
842
1005
|
machine_label?: string;
|
|
843
1006
|
manifest_hash?: string | null;
|
|
844
1007
|
last_heartbeat_at?: string | null;
|
|
1008
|
+
contract_checked_at?: string | null;
|
|
1009
|
+
failure_id?: string | null;
|
|
845
1010
|
expires_at?: string | null;
|
|
846
1011
|
};
|
|
847
1012
|
export type ArtifactDevelopmentSessionAdmission = ArtifactDevelopmentSession & {
|
|
@@ -868,15 +1033,49 @@ export type CustomerIdentityRequest = {
|
|
|
868
1033
|
issuer: string;
|
|
869
1034
|
subject: string;
|
|
870
1035
|
};
|
|
871
|
-
export type
|
|
1036
|
+
export type CustomerProfilePatch = {
|
|
1037
|
+
display_name?: string | null;
|
|
1038
|
+
email?: string | null;
|
|
1039
|
+
avatar_url?: string | null;
|
|
1040
|
+
};
|
|
1041
|
+
export type EmbedCustomerPrincipalResolveRequest = {
|
|
1042
|
+
integration_id: string;
|
|
1043
|
+
integration_name?: string;
|
|
1044
|
+
issuer?: string;
|
|
1045
|
+
subject: string;
|
|
1046
|
+
profile?: CustomerProfilePatch;
|
|
1047
|
+
};
|
|
1048
|
+
export type EmbedCustomerPrincipalResolveResponse = {
|
|
1049
|
+
customer_principal_ref: string;
|
|
1050
|
+
};
|
|
1051
|
+
export type CustomerProfile = {
|
|
1052
|
+
customer_principal_ref: string;
|
|
1053
|
+
display_name: string | null;
|
|
1054
|
+
email: string | null;
|
|
1055
|
+
avatar_url: string | null;
|
|
1056
|
+
integration_id: string | null;
|
|
1057
|
+
integration_name: string | null;
|
|
1058
|
+
};
|
|
1059
|
+
export type CustomerProfileList = {
|
|
1060
|
+
items: CustomerProfile[];
|
|
1061
|
+
};
|
|
1062
|
+
export type CustomerProfileSearchOptions = {
|
|
1063
|
+
query?: string;
|
|
1064
|
+
integrationId?: string;
|
|
1065
|
+
limit?: number;
|
|
1066
|
+
};
|
|
1067
|
+
export type CustomerPrincipalRefRequest = {
|
|
1068
|
+
customer_principal_ref: string;
|
|
1069
|
+
};
|
|
1070
|
+
export type SetCustomerResourcePolicyAssignmentRequest = CustomerPrincipalRefRequest & {
|
|
872
1071
|
policy_set_id: string;
|
|
873
1072
|
};
|
|
874
|
-
export type EffectiveCustomerResourcePolicyRequest =
|
|
1073
|
+
export type EffectiveCustomerResourcePolicyRequest = CustomerPrincipalRefRequest & {
|
|
875
1074
|
deployment_id: string;
|
|
876
1075
|
};
|
|
877
1076
|
export type EmbedResourcePolicyRequest = {
|
|
878
1077
|
external_user_id: string;
|
|
879
|
-
|
|
1078
|
+
integration_id: string;
|
|
880
1079
|
agent_version_id?: string;
|
|
881
1080
|
runtime_target?: "draft" | "published";
|
|
882
1081
|
};
|
|
@@ -906,6 +1105,7 @@ export type ClearCustomerResourcePolicyAssignmentResult = {
|
|
|
906
1105
|
cleared: boolean;
|
|
907
1106
|
};
|
|
908
1107
|
export type EffectiveResourcePolicy = {
|
|
1108
|
+
agent_access_allowed?: boolean;
|
|
909
1109
|
customer_principal_ref: string | null;
|
|
910
1110
|
model_selection: {
|
|
911
1111
|
selectable: boolean;
|
|
@@ -944,18 +1144,4 @@ export type ResourcePolicyQuotaScheduleResult = {
|
|
|
944
1144
|
subject_ref: ResourcePolicySubjectRef;
|
|
945
1145
|
quota_schedule: ResourcePolicyQuotaSchedule;
|
|
946
1146
|
};
|
|
947
|
-
export type ResourceBundleImportPreview = {
|
|
948
|
-
resources: Array<Record<string, unknown>>;
|
|
949
|
-
dependencies: Array<Record<string, unknown>>;
|
|
950
|
-
warnings: unknown[];
|
|
951
|
-
blockers: unknown[];
|
|
952
|
-
can_import: boolean;
|
|
953
|
-
[key: string]: unknown;
|
|
954
|
-
};
|
|
955
|
-
export type ResourceBundleImportResult = {
|
|
956
|
-
status: "created";
|
|
957
|
-
resources: Array<Record<string, unknown>>;
|
|
958
|
-
id_map: Record<string, string>;
|
|
959
|
-
warnings: unknown[];
|
|
960
|
-
};
|
|
961
1147
|
//# sourceMappingURL=types.d.ts.map
|