@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/types/types.d.ts
CHANGED
|
@@ -52,10 +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>;
|
|
58
|
+
runtime_target?: "draft" | "published";
|
|
59
|
+
integration_id: string;
|
|
59
60
|
};
|
|
60
61
|
export type AttachRunRequest = {
|
|
61
62
|
external_user_id: string;
|
|
@@ -63,6 +64,8 @@ export type AttachRunRequest = {
|
|
|
63
64
|
metadata?: Record<string, unknown>;
|
|
64
65
|
client?: Record<string, unknown>;
|
|
65
66
|
cursor?: number;
|
|
67
|
+
runtime_target?: "draft" | "published";
|
|
68
|
+
integration_id: string;
|
|
66
69
|
};
|
|
67
70
|
export type FeedbackRating = "like" | "dislike";
|
|
68
71
|
export type FeedbackReason = "incorrect" | "irrelevant" | "incomplete" | "unsafe" | "citation_issue" | "other";
|
|
@@ -83,6 +86,8 @@ export type EmbeddedResponseFeedbackInput = {
|
|
|
83
86
|
rating: FeedbackRating | null;
|
|
84
87
|
reason?: FeedbackReason | null;
|
|
85
88
|
comment?: string | null;
|
|
89
|
+
runtime_target?: "draft" | "published";
|
|
90
|
+
integration_id: string;
|
|
86
91
|
};
|
|
87
92
|
export type HitlAction = "approve" | "reject" | "connect" | "skip" | "respond";
|
|
88
93
|
export type HitlAnswer = {
|
|
@@ -108,39 +113,56 @@ export type McpAuthStartResult = {
|
|
|
108
113
|
};
|
|
109
114
|
export type EmbedRuntimeBootstrap = {
|
|
110
115
|
version: string;
|
|
111
|
-
|
|
116
|
+
agent_id: string;
|
|
117
|
+
agent_name: string;
|
|
118
|
+
agent_alias: string;
|
|
119
|
+
agent_aliases: string[];
|
|
112
120
|
agent_version_id?: string;
|
|
113
121
|
agent_version_number?: number;
|
|
114
122
|
features: Record<string, unknown>;
|
|
115
123
|
thread_events_path?: string | null;
|
|
116
124
|
thread_events_url?: string | null;
|
|
117
125
|
};
|
|
126
|
+
export type EmbedAgentAliasResolution = {
|
|
127
|
+
agent_id: string;
|
|
128
|
+
agent_name: string;
|
|
129
|
+
agent_alias: string;
|
|
130
|
+
agent_aliases: string[];
|
|
131
|
+
};
|
|
118
132
|
export type MultiAgentThreadListRequest = {
|
|
119
133
|
agent_ids: string[];
|
|
120
134
|
external_user_id: string;
|
|
121
135
|
external_session_id?: string | null;
|
|
136
|
+
runtime_target?: "draft" | "published";
|
|
137
|
+
integration_id: string;
|
|
122
138
|
skip?: number;
|
|
123
139
|
limit?: number;
|
|
124
140
|
};
|
|
125
141
|
export type ThreadListOptions = {
|
|
126
142
|
externalUserId: string;
|
|
127
143
|
externalSessionId?: string;
|
|
144
|
+
runtimeTarget?: "draft" | "published";
|
|
145
|
+
integrationId: string;
|
|
128
146
|
skip?: number;
|
|
129
147
|
limit?: number;
|
|
130
148
|
};
|
|
131
149
|
export type ThreadDetailOptions = {
|
|
132
150
|
externalUserId: string;
|
|
133
151
|
externalSessionId?: string;
|
|
152
|
+
runtimeTarget?: "draft" | "published";
|
|
134
153
|
beforeTurnIndex?: number;
|
|
135
154
|
limit?: number;
|
|
136
155
|
includeSubthreads?: boolean;
|
|
137
156
|
subthreadDepth?: number;
|
|
138
157
|
subthreadTurnLimit?: number;
|
|
139
158
|
subthreadChildLimit?: number;
|
|
159
|
+
integrationId: string;
|
|
140
160
|
};
|
|
141
161
|
export type RunContextOptions = {
|
|
142
162
|
externalUserId: string;
|
|
143
163
|
externalSessionId?: string;
|
|
164
|
+
runtimeTarget?: "draft" | "published";
|
|
165
|
+
integrationId: string;
|
|
144
166
|
};
|
|
145
167
|
export type RunCancelOptions = {
|
|
146
168
|
externalUserId?: string;
|
|
@@ -150,20 +172,62 @@ export type RunCancelOptions = {
|
|
|
150
172
|
export type EmbedRunCancelOptions = {
|
|
151
173
|
externalUserId?: string;
|
|
152
174
|
externalSessionId?: string;
|
|
175
|
+
runtimeTarget?: "draft" | "published";
|
|
176
|
+
integrationId: string;
|
|
153
177
|
};
|
|
154
178
|
export type ThreadDeleteOptions = {
|
|
155
179
|
externalUserId: string;
|
|
156
180
|
externalSessionId?: string;
|
|
181
|
+
runtimeTarget?: "draft" | "published";
|
|
182
|
+
integrationId: string;
|
|
157
183
|
};
|
|
158
184
|
export type ThreadSummaryEventOptions = {
|
|
159
185
|
externalUserId: string;
|
|
160
186
|
externalSessionId?: string | null;
|
|
161
187
|
cursor?: number | null;
|
|
162
188
|
signal?: AbortSignal;
|
|
189
|
+
runtimeTarget?: "draft" | "published";
|
|
190
|
+
integrationId: string;
|
|
163
191
|
};
|
|
164
192
|
export type MultiAgentThreadSummaryEventOptions = ThreadSummaryEventOptions & {
|
|
165
193
|
agentIds: string[];
|
|
166
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
|
+
};
|
|
167
231
|
export type ServerAttachmentUploadOptions = {
|
|
168
232
|
threadId?: string;
|
|
169
233
|
agentVersionId?: string;
|
|
@@ -176,10 +240,14 @@ export type AttachmentContentAccessRequest = {
|
|
|
176
240
|
export type EmbedAttachmentContentAccessRequest = AttachmentContentAccessRequest & {
|
|
177
241
|
external_user_id: string;
|
|
178
242
|
external_session_id?: string | null;
|
|
243
|
+
runtime_target?: "draft" | "published";
|
|
244
|
+
integration_id: string;
|
|
179
245
|
};
|
|
180
246
|
export type ServerEmbedAttachmentUploadOptions = ServerAttachmentUploadOptions & {
|
|
181
247
|
externalUserId: string;
|
|
182
248
|
externalSessionId?: string;
|
|
249
|
+
runtimeTarget?: "draft" | "published";
|
|
250
|
+
integrationId: string;
|
|
183
251
|
};
|
|
184
252
|
export type GraphValueRef = {
|
|
185
253
|
namespace: "workflow_input" | "state" | "node_output";
|
|
@@ -307,6 +375,7 @@ export type AgentValidationResult = {
|
|
|
307
375
|
};
|
|
308
376
|
export type AgentCreateRequest = {
|
|
309
377
|
name: string;
|
|
378
|
+
aliases?: string[];
|
|
310
379
|
description?: string | null;
|
|
311
380
|
tags?: string[];
|
|
312
381
|
graph_definition: GraphDefinition;
|
|
@@ -318,6 +387,7 @@ export type AgentSummary = {
|
|
|
318
387
|
id: string;
|
|
319
388
|
organization_id: string;
|
|
320
389
|
name: string;
|
|
390
|
+
aliases: string[];
|
|
321
391
|
description?: string | null;
|
|
322
392
|
tags: string[];
|
|
323
393
|
lifecycle_status: "active" | "deprecated" | "archived" | "disabled";
|
|
@@ -611,7 +681,7 @@ export type ClientSessionCredentials = {
|
|
|
611
681
|
refresh_expires_at: string | null;
|
|
612
682
|
dpop_nonce: string | null;
|
|
613
683
|
};
|
|
614
|
-
export type PortableResourceKind = "agent" | "rag_pipeline" | "instruction" | "knowledge_store";
|
|
684
|
+
export type PortableResourceKind = "agent" | "rag_pipeline" | "instruction" | "knowledge_store" | "artifact";
|
|
615
685
|
export type ResourceSelector = {
|
|
616
686
|
kind: PortableResourceKind;
|
|
617
687
|
id: string;
|
|
@@ -629,44 +699,81 @@ export type ResourcePackageUpload = {
|
|
|
629
699
|
data: Uint8Array;
|
|
630
700
|
filename?: string;
|
|
631
701
|
};
|
|
702
|
+
export type ResourcePackageImportUpload = ResourcePackageUpload & {
|
|
703
|
+
mappings?: Record<string, string>;
|
|
704
|
+
};
|
|
705
|
+
export type ResourceInstallationPlanUpload = ResourcePackageUpload & {
|
|
706
|
+
prune?: boolean;
|
|
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;
|
|
734
|
+
};
|
|
632
735
|
export type ResourcePackageDiagnostic = {
|
|
633
736
|
severity: "error" | "warning";
|
|
634
737
|
code: string;
|
|
635
738
|
path: string;
|
|
636
739
|
message: string;
|
|
637
740
|
};
|
|
638
|
-
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 = {
|
|
639
763
|
valid: boolean;
|
|
764
|
+
package_hash?: string;
|
|
640
765
|
format: "agents24.resource_package";
|
|
641
|
-
schema_version: "
|
|
766
|
+
schema_version: "2.0";
|
|
642
767
|
package: Record<string, unknown>;
|
|
643
768
|
resources: Array<Record<string, unknown>>;
|
|
644
769
|
requirements: string[];
|
|
645
|
-
tool_exports:
|
|
646
|
-
callable_bindings:
|
|
770
|
+
tool_exports: ResourceToolExport[];
|
|
771
|
+
callable_bindings: ResourceCallableBinding[];
|
|
647
772
|
diagnostics: ResourcePackageDiagnostic[];
|
|
648
|
-
bundle?: ResourceBundle | null;
|
|
649
|
-
};
|
|
650
|
-
export type ResourceBundleImportRequest = {
|
|
651
|
-
bundle: ResourceBundle;
|
|
652
|
-
selected_resource_keys?: string[];
|
|
653
|
-
mappings?: Record<string, string>;
|
|
654
|
-
};
|
|
655
|
-
export type ResourceBundleOrigin = {
|
|
656
|
-
source_id: string;
|
|
657
|
-
target: "draft" | "version";
|
|
658
|
-
version_id?: string | null;
|
|
659
|
-
label: string;
|
|
660
|
-
};
|
|
661
|
-
export type ResourceBundleResource = {
|
|
662
|
-
resource_key: string;
|
|
663
|
-
kind: PortableResourceKind;
|
|
664
|
-
name: string;
|
|
665
|
-
document: Record<string, unknown>;
|
|
666
|
-
origin?: ResourceBundleOrigin;
|
|
667
773
|
};
|
|
668
|
-
export type
|
|
774
|
+
export type ResourcePackageDependency = {
|
|
669
775
|
id: string;
|
|
776
|
+
requirement_key?: string | null;
|
|
670
777
|
from_resource_key: string;
|
|
671
778
|
to_resource_key?: string | null;
|
|
672
779
|
kind: string;
|
|
@@ -678,44 +785,243 @@ export type ResourceBundleDependency = {
|
|
|
678
785
|
bundled: boolean;
|
|
679
786
|
included?: boolean;
|
|
680
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;
|
|
681
794
|
};
|
|
682
|
-
export type
|
|
683
|
-
format: "agents24.
|
|
684
|
-
schema_version: "
|
|
685
|
-
|
|
686
|
-
resources:
|
|
687
|
-
|
|
795
|
+
export type ResourcePackageExportPlan = {
|
|
796
|
+
format: "agents24.resource_package";
|
|
797
|
+
schema_version: "2.0";
|
|
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
|
+
}>;
|
|
688
811
|
warnings: string[];
|
|
689
|
-
tool_exports?: Array<Record<string, unknown>>;
|
|
690
|
-
callable_bindings?: Array<Record<string, unknown>>;
|
|
691
|
-
};
|
|
692
|
-
export type ResourceBundlePlan = Omit<ResourceBundle, "resources"> & {
|
|
693
|
-
resources: Array<Omit<ResourceBundleResource, "document">>;
|
|
694
812
|
blockers: Array<{
|
|
695
813
|
code: string;
|
|
696
814
|
message: string;
|
|
697
815
|
}>;
|
|
698
816
|
can_export: boolean;
|
|
699
|
-
external_references: ResourceBundleDependency[];
|
|
700
817
|
};
|
|
701
|
-
export type
|
|
702
|
-
|
|
703
|
-
|
|
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<{
|
|
824
|
+
resource_key: string;
|
|
825
|
+
kind: PortableResourceKind;
|
|
826
|
+
name: string;
|
|
827
|
+
status: "ready" | "incomplete";
|
|
828
|
+
incomplete_reasons: Array<{
|
|
829
|
+
dependency_id: string;
|
|
830
|
+
kind: string;
|
|
831
|
+
message: string;
|
|
832
|
+
}>;
|
|
833
|
+
}>;
|
|
834
|
+
dependencies: ResourcePackageDependency[];
|
|
835
|
+
suggested_mappings: Array<{
|
|
836
|
+
dependency_id: string;
|
|
837
|
+
id: string;
|
|
838
|
+
name: string;
|
|
839
|
+
}>;
|
|
840
|
+
warnings: string[];
|
|
841
|
+
blockers: Array<{
|
|
842
|
+
code: string;
|
|
843
|
+
message: string;
|
|
844
|
+
}>;
|
|
845
|
+
can_import: boolean;
|
|
846
|
+
};
|
|
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[];
|
|
704
861
|
};
|
|
705
|
-
export type
|
|
862
|
+
export type ResourceCandidateList = {
|
|
706
863
|
items: Array<{
|
|
707
864
|
id: string;
|
|
708
865
|
name: string;
|
|
709
866
|
}>;
|
|
710
867
|
total: number;
|
|
711
868
|
};
|
|
712
|
-
export type
|
|
869
|
+
export type ResourcePackageCandidateOptions = {
|
|
713
870
|
kind: string;
|
|
714
871
|
query?: string;
|
|
715
872
|
limit?: number;
|
|
716
873
|
offset?: number;
|
|
717
874
|
requiredCapability?: "chat" | "embedding";
|
|
718
875
|
};
|
|
876
|
+
export type ResourceInstallationBinding = {
|
|
877
|
+
resource_key: string;
|
|
878
|
+
kind: string;
|
|
879
|
+
resource_id: string;
|
|
880
|
+
source_hash?: string | null;
|
|
881
|
+
retained_orphan?: boolean;
|
|
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
|
+
};
|
|
898
|
+
export type ResourceInstallationOperation = {
|
|
899
|
+
operation_id: string;
|
|
900
|
+
installation_id: string;
|
|
901
|
+
package_id: string;
|
|
902
|
+
status: "planned" | "applying" | "waiting" | "completed" | "failed";
|
|
903
|
+
phase: string;
|
|
904
|
+
result: Record<string, unknown>;
|
|
905
|
+
failure_id?: string | null;
|
|
906
|
+
};
|
|
907
|
+
export type ResourceInstallation = {
|
|
908
|
+
id: string;
|
|
909
|
+
package_id: string | null;
|
|
910
|
+
package_name: string;
|
|
911
|
+
primary_resource_key?: string | null;
|
|
912
|
+
integration_mode: "bff" | "client-deployment" | "publish-only";
|
|
913
|
+
client_deployment_id?: string | null;
|
|
914
|
+
status: string;
|
|
915
|
+
synchronized_package_hash?: string | null;
|
|
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>;
|
|
920
|
+
last_published_package_hash?: string | null;
|
|
921
|
+
last_published_at?: string | null;
|
|
922
|
+
publication_state?: "never_published" | "current" | "draft_changes";
|
|
923
|
+
bindings?: ResourceInstallationBinding[];
|
|
924
|
+
callable_bindings?: ResourceCallableBindingStatus[];
|
|
925
|
+
development_connections?: ArtifactDevelopmentSession[];
|
|
926
|
+
remote_artifact_stages?: Array<{
|
|
927
|
+
resource_key: string;
|
|
928
|
+
artifact_id: string;
|
|
929
|
+
target: "development" | "production";
|
|
930
|
+
status: string;
|
|
931
|
+
manifest_hash: string;
|
|
932
|
+
base_url?: string | null;
|
|
933
|
+
}>;
|
|
934
|
+
latest_apply?: ResourceInstallationOperation | null;
|
|
935
|
+
latest_pull?: ResourceInstallationPullPlan | null;
|
|
936
|
+
};
|
|
937
|
+
export type ResourceInstallationList = {
|
|
938
|
+
items: ResourceInstallation[];
|
|
939
|
+
};
|
|
940
|
+
export type ResourceInstallationCreateRequest = {
|
|
941
|
+
package_id: string;
|
|
942
|
+
package_name: string;
|
|
943
|
+
operation_id: string;
|
|
944
|
+
};
|
|
945
|
+
export type ResourceInstallationPlan = {
|
|
946
|
+
installation_id: string | null;
|
|
947
|
+
operation_id: string;
|
|
948
|
+
package_id: string;
|
|
949
|
+
package_name: string;
|
|
950
|
+
package_hash: string;
|
|
951
|
+
actions: Array<Record<string, unknown>>;
|
|
952
|
+
content: Array<Record<string, unknown>>;
|
|
953
|
+
external_requirements: Array<Record<string, unknown>>;
|
|
954
|
+
artifact_actions: Array<Record<string, unknown>>;
|
|
955
|
+
artifact_readiness: Array<{
|
|
956
|
+
resource_key: string;
|
|
957
|
+
status: string;
|
|
958
|
+
blocking: false;
|
|
959
|
+
}>;
|
|
960
|
+
generated_tool_changes: Array<Record<string, unknown>>;
|
|
961
|
+
publication_order: string[];
|
|
962
|
+
deployment: Record<string, unknown>;
|
|
963
|
+
blockers: Array<Record<string, unknown>>;
|
|
964
|
+
can_apply: boolean;
|
|
965
|
+
prune: boolean;
|
|
966
|
+
};
|
|
967
|
+
export type ResourceInstallationLinkRequest = {
|
|
968
|
+
resource_key: string;
|
|
969
|
+
resource_id: string;
|
|
970
|
+
};
|
|
971
|
+
export type ResourceInstallationSecretsRequest = {
|
|
972
|
+
secrets: Record<string, string>;
|
|
973
|
+
};
|
|
974
|
+
export type ResourceInstallationSecretStatus = {
|
|
975
|
+
installation_id: string;
|
|
976
|
+
configured: string[];
|
|
977
|
+
};
|
|
978
|
+
export type ResourceInstallationApplyRequest = {
|
|
979
|
+
secrets?: Record<string, string>;
|
|
980
|
+
primary_resource_key?: string;
|
|
981
|
+
integration_mode?: "bff" | "client-deployment" | "publish-only";
|
|
982
|
+
};
|
|
983
|
+
export type ResourceInstallationPublishRequest = {
|
|
984
|
+
package_hash: string;
|
|
985
|
+
};
|
|
986
|
+
export type ResourceInstallationPublication = {
|
|
987
|
+
installation_id: string;
|
|
988
|
+
operation_id: string;
|
|
989
|
+
package_hash: string;
|
|
990
|
+
status: "published" | "already_published";
|
|
991
|
+
published_at?: string | null;
|
|
992
|
+
client_deployment_id?: string | null;
|
|
993
|
+
};
|
|
994
|
+
export type ArtifactDevelopmentSessionPrepareRequest = {
|
|
995
|
+
resource_key: string;
|
|
996
|
+
machine_label: string;
|
|
997
|
+
};
|
|
998
|
+
export type ArtifactDevelopmentSession = {
|
|
999
|
+
id?: string;
|
|
1000
|
+
installation_id: string;
|
|
1001
|
+
resource_key: string;
|
|
1002
|
+
artifact_id?: string | null;
|
|
1003
|
+
status: "prepared" | "connecting" | "connected" | "disconnected" | "expired" | "superseded" | "revoked";
|
|
1004
|
+
contract_status: "unverified" | "verifying" | "healthy" | "stale";
|
|
1005
|
+
machine_label?: string;
|
|
1006
|
+
manifest_hash?: string | null;
|
|
1007
|
+
last_heartbeat_at?: string | null;
|
|
1008
|
+
contract_checked_at?: string | null;
|
|
1009
|
+
failure_id?: string | null;
|
|
1010
|
+
expires_at?: string | null;
|
|
1011
|
+
};
|
|
1012
|
+
export type ArtifactDevelopmentSessionAdmission = ArtifactDevelopmentSession & {
|
|
1013
|
+
id: string;
|
|
1014
|
+
relay_token: string;
|
|
1015
|
+
relay_path: string;
|
|
1016
|
+
};
|
|
1017
|
+
export type ResourceInstallationDeploymentRequest = {
|
|
1018
|
+
client_deployment_id?: string | null;
|
|
1019
|
+
};
|
|
1020
|
+
export type ResourceInstallationResourceListOptions = {
|
|
1021
|
+
kind: string;
|
|
1022
|
+
query?: string;
|
|
1023
|
+
limit?: number;
|
|
1024
|
+
};
|
|
719
1025
|
export type ResourcePolicySummary = {
|
|
720
1026
|
id: string;
|
|
721
1027
|
name: string;
|
|
@@ -727,16 +1033,51 @@ export type CustomerIdentityRequest = {
|
|
|
727
1033
|
issuer: string;
|
|
728
1034
|
subject: string;
|
|
729
1035
|
};
|
|
730
|
-
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 & {
|
|
731
1071
|
policy_set_id: string;
|
|
732
1072
|
};
|
|
733
|
-
export type EffectiveCustomerResourcePolicyRequest =
|
|
1073
|
+
export type EffectiveCustomerResourcePolicyRequest = CustomerPrincipalRefRequest & {
|
|
734
1074
|
deployment_id: string;
|
|
735
1075
|
};
|
|
736
1076
|
export type EmbedResourcePolicyRequest = {
|
|
737
1077
|
external_user_id: string;
|
|
738
|
-
|
|
1078
|
+
integration_id: string;
|
|
739
1079
|
agent_version_id?: string;
|
|
1080
|
+
runtime_target?: "draft" | "published";
|
|
740
1081
|
};
|
|
741
1082
|
export type ResourcePolicySubjectRef = {
|
|
742
1083
|
kind: "agent" | "client_deployment" | "organization_user" | "customer_principal";
|
|
@@ -764,6 +1105,7 @@ export type ClearCustomerResourcePolicyAssignmentResult = {
|
|
|
764
1105
|
cleared: boolean;
|
|
765
1106
|
};
|
|
766
1107
|
export type EffectiveResourcePolicy = {
|
|
1108
|
+
agent_access_allowed?: boolean;
|
|
767
1109
|
customer_principal_ref: string | null;
|
|
768
1110
|
model_selection: {
|
|
769
1111
|
selectable: boolean;
|
|
@@ -802,18 +1144,4 @@ export type ResourcePolicyQuotaScheduleResult = {
|
|
|
802
1144
|
subject_ref: ResourcePolicySubjectRef;
|
|
803
1145
|
quota_schedule: ResourcePolicyQuotaSchedule;
|
|
804
1146
|
};
|
|
805
|
-
export type ResourceBundleImportPreview = {
|
|
806
|
-
resources: Array<Record<string, unknown>>;
|
|
807
|
-
dependencies: Array<Record<string, unknown>>;
|
|
808
|
-
warnings: unknown[];
|
|
809
|
-
blockers: unknown[];
|
|
810
|
-
can_import: boolean;
|
|
811
|
-
[key: string]: unknown;
|
|
812
|
-
};
|
|
813
|
-
export type ResourceBundleImportResult = {
|
|
814
|
-
status: "created";
|
|
815
|
-
resources: Array<Record<string, unknown>>;
|
|
816
|
-
id_map: Record<string, string>;
|
|
817
|
-
warnings: unknown[];
|
|
818
|
-
};
|
|
819
1147
|
//# sourceMappingURL=types.d.ts.map
|