@alfe.ai/agent-api-client 0.6.0 → 0.7.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/dist/index.cjs +83 -42
- package/dist/index.d.cts +76 -39
- package/dist/index.d.cts.map +1 -1
- package/dist/index.d.ts +76 -39
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +83 -42
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -15,6 +15,8 @@ const RETRYABLE_STATUS = new Set([
|
|
|
15
15
|
504
|
|
16
16
|
]);
|
|
17
17
|
const RETRY_DELAY_MS = 500;
|
|
18
|
+
const IMAGE_POLL_INTERVAL_MS = 2e3;
|
|
19
|
+
const IMAGE_JOB_TIMEOUT_MS = 18e4;
|
|
18
20
|
function sleep(ms) {
|
|
19
21
|
return new Promise((resolve) => {
|
|
20
22
|
setTimeout(resolve, ms);
|
|
@@ -592,36 +594,50 @@ var AgentApiClient = class {
|
|
|
592
594
|
}
|
|
593
595
|
/**
|
|
594
596
|
* Generate an image from a text prompt and get back a STABLE, public URL
|
|
595
|
-
* (served from the agent-assets CDN — it does not expire).
|
|
596
|
-
*
|
|
597
|
-
* markdown to show it to the user.
|
|
597
|
+
* (served from the agent-assets CDN — it does not expire). Embed the returned
|
|
598
|
+
* `imageUrl` in a reply as markdown to show it to the user.
|
|
598
599
|
*
|
|
599
|
-
*
|
|
600
|
-
*
|
|
601
|
-
*
|
|
602
|
-
*
|
|
600
|
+
* ASYNC: `gpt-image-1` routinely runs 30–60s, which exceeds the API Gateway
|
|
601
|
+
* 30s ceiling, so this enqueues a job (`POST /agent/images/generate` →
|
|
602
|
+
* `jobId`) then polls (`GET /agent/images/{jobId}`) until it completes. The
|
|
603
|
+
* worker's real failure message (e.g. an unsupported `size`) surfaces via the
|
|
604
|
+
* job's `error` field.
|
|
603
605
|
*/
|
|
604
606
|
async generateImage(args) {
|
|
605
607
|
const headers = new Headers();
|
|
606
608
|
headers.set("Authorization", `Bearer ${this.apiKey}`);
|
|
607
609
|
headers.set("Content-Type", "application/json");
|
|
608
|
-
const
|
|
610
|
+
const enqueueRes = await fetch(`${this.apiUrl}/agent/images/generate`, {
|
|
609
611
|
method: "POST",
|
|
610
612
|
headers,
|
|
611
613
|
body: JSON.stringify(args),
|
|
612
|
-
signal: AbortSignal.timeout(
|
|
614
|
+
signal: AbortSignal.timeout(REQUEST_TIMEOUT_MS)
|
|
613
615
|
});
|
|
614
|
-
if (!
|
|
615
|
-
|
|
616
|
-
|
|
616
|
+
if (!enqueueRes.ok) throw new Error(`Image generation failed to start (${String(enqueueRes.status)})`);
|
|
617
|
+
const { data: enqueued } = await enqueueRes.json();
|
|
618
|
+
const jobId = enqueued.jobId;
|
|
619
|
+
const deadline = Date.now() + IMAGE_JOB_TIMEOUT_MS;
|
|
620
|
+
while (Date.now() < deadline) {
|
|
621
|
+
await sleep(IMAGE_POLL_INTERVAL_MS);
|
|
622
|
+
let job;
|
|
617
623
|
try {
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
}
|
|
622
|
-
|
|
624
|
+
job = await this.request(`/agent/images/${jobId}`);
|
|
625
|
+
} catch {
|
|
626
|
+
continue;
|
|
627
|
+
}
|
|
628
|
+
if (job.status === "completed") {
|
|
629
|
+
if (!job.imageUrl) throw new Error("Image generation completed without a URL");
|
|
630
|
+
return {
|
|
631
|
+
imageUrl: job.imageUrl,
|
|
632
|
+
model: job.model ?? args.model ?? "gpt-image-1"
|
|
633
|
+
};
|
|
634
|
+
}
|
|
635
|
+
if (job.status === "failed") {
|
|
636
|
+
const detail = job.error ? `: ${job.error.split("\n")[0]}` : "";
|
|
637
|
+
throw new Error(`Image generation failed${detail}`);
|
|
638
|
+
}
|
|
623
639
|
}
|
|
624
|
-
|
|
640
|
+
throw new Error("Image generation timed out");
|
|
625
641
|
}
|
|
626
642
|
async recordActivity(data) {
|
|
627
643
|
return this.request("/agent/activity", {
|
|
@@ -980,30 +996,6 @@ var AgentApiClient = class {
|
|
|
980
996
|
async getScopeProfile(scopeType, scopeId) {
|
|
981
997
|
return this.request(`/agent/org/profile/${encodeURIComponent(scopeType)}/${encodeURIComponent(scopeId)}`);
|
|
982
998
|
}
|
|
983
|
-
/** List a scope's facts (non-semantic, full enumeration). */
|
|
984
|
-
async listScopeFacts(scopeType, scopeId, opts) {
|
|
985
|
-
const qs = new URLSearchParams();
|
|
986
|
-
if (opts?.limit !== void 0) qs.set("limit", String(opts.limit));
|
|
987
|
-
if (opts?.cursor) qs.set("cursor", opts.cursor);
|
|
988
|
-
const query = qs.toString();
|
|
989
|
-
return this.request(`/agent/org/facts/${encodeURIComponent(scopeType)}/${encodeURIComponent(scopeId)}${query ? `?${query}` : ""}`);
|
|
990
|
-
}
|
|
991
|
-
/**
|
|
992
|
-
* Publish a fact at a scope. This is the deliberate cross-agent learning
|
|
993
|
-
* boundary — facts are attributable (the agent is recorded as author) and
|
|
994
|
-
* never an automatic merge. Membership is enforced server-side (403 for a
|
|
995
|
-
* non-member scope).
|
|
996
|
-
*/
|
|
997
|
-
async createScopeFact(scopeType, scopeId, text) {
|
|
998
|
-
return this.request(`/agent/org/facts/${encodeURIComponent(scopeType)}/${encodeURIComponent(scopeId)}`, {
|
|
999
|
-
method: "POST",
|
|
1000
|
-
body: JSON.stringify({ text })
|
|
1001
|
-
});
|
|
1002
|
-
}
|
|
1003
|
-
/** Delete a fact at a scope. */
|
|
1004
|
-
async deleteScopeFact(scopeType, scopeId, factId) {
|
|
1005
|
-
return this.request(`/agent/org/facts/${encodeURIComponent(scopeType)}/${encodeURIComponent(scopeId)}/${encodeURIComponent(factId)}`, { method: "DELETE" });
|
|
1006
|
-
}
|
|
1007
999
|
/** List a scope's docs (the org-files corpus; mirrored to shared/<scope>/). */
|
|
1008
1000
|
async listScopeDocs(scopeType, scopeId, opts) {
|
|
1009
1001
|
const qs = new URLSearchParams();
|
|
@@ -1059,6 +1051,55 @@ var AgentApiClient = class {
|
|
|
1059
1051
|
}
|
|
1060
1052
|
return { filePath: presign.filePath };
|
|
1061
1053
|
}
|
|
1054
|
+
/**
|
|
1055
|
+
* Open a change request against a scope's knowledge resource. For a doc
|
|
1056
|
+
* create/update, `services/org` returns a presigned staging PUT; this method
|
|
1057
|
+
* uploads the proposed `content` to it (echoing the same Content-Type that
|
|
1058
|
+
* was signed), mirroring `writeScopeDoc`. The staged body is applied to the
|
|
1059
|
+
* canonical doc — attributed to this agent — only when a reviewer approves.
|
|
1060
|
+
*/
|
|
1061
|
+
async proposeScopeChange(scopeType, scopeId, input) {
|
|
1062
|
+
const isDocBody = input.resourceType === "doc" && input.operation !== "delete";
|
|
1063
|
+
const contentType = input.contentType ?? "text/markdown";
|
|
1064
|
+
const result = await this.request(`/agent/org/change-requests/${encodeURIComponent(scopeType)}/${encodeURIComponent(scopeId)}`, {
|
|
1065
|
+
method: "POST",
|
|
1066
|
+
body: JSON.stringify({
|
|
1067
|
+
resourceType: input.resourceType,
|
|
1068
|
+
operation: input.operation,
|
|
1069
|
+
rationale: input.rationale,
|
|
1070
|
+
targetPath: input.targetPath,
|
|
1071
|
+
proposedContentType: isDocBody ? contentType : void 0,
|
|
1072
|
+
proposedValue: input.proposedValue
|
|
1073
|
+
})
|
|
1074
|
+
});
|
|
1075
|
+
if (isDocBody && result.uploadUrl) {
|
|
1076
|
+
const putHeaders = new Headers(result.requiredHeaders ?? {});
|
|
1077
|
+
putHeaders.set("Content-Type", contentType);
|
|
1078
|
+
const res = await fetch(result.uploadUrl, {
|
|
1079
|
+
method: "PUT",
|
|
1080
|
+
body: input.content ?? "",
|
|
1081
|
+
headers: putHeaders,
|
|
1082
|
+
signal: AbortSignal.timeout(REQUEST_TIMEOUT_MS)
|
|
1083
|
+
});
|
|
1084
|
+
if (!res.ok) {
|
|
1085
|
+
await res.text();
|
|
1086
|
+
throw new Error(`Change-request body upload failed (${String(res.status)})`);
|
|
1087
|
+
}
|
|
1088
|
+
}
|
|
1089
|
+
return result.changeRequest;
|
|
1090
|
+
}
|
|
1091
|
+
/**
|
|
1092
|
+
* List the agent's OWN change requests in a scope (filtered server-side to
|
|
1093
|
+
* this agent as proposer). Pass `status` to narrow to open / approved / etc.
|
|
1094
|
+
*/
|
|
1095
|
+
async listScopeChangeRequests(scopeType, scopeId, opts) {
|
|
1096
|
+
const qs = new URLSearchParams();
|
|
1097
|
+
if (opts?.status) qs.set("status", opts.status);
|
|
1098
|
+
if (opts?.limit !== void 0) qs.set("limit", String(opts.limit));
|
|
1099
|
+
if (opts?.cursor) qs.set("cursor", opts.cursor);
|
|
1100
|
+
const query = qs.toString();
|
|
1101
|
+
return this.request(`/agent/org/change-requests/${encodeURIComponent(scopeType)}/${encodeURIComponent(scopeId)}${query ? `?${query}` : ""}`);
|
|
1102
|
+
}
|
|
1062
1103
|
async registerDatabaseCredentials() {
|
|
1063
1104
|
return this.request("/agent/database/register", { method: "POST" });
|
|
1064
1105
|
}
|
package/dist/index.d.cts
CHANGED
|
@@ -112,10 +112,15 @@ interface KnowledgeSearchHit {
|
|
|
112
112
|
score: number;
|
|
113
113
|
scopeType: KnowledgeScopeType;
|
|
114
114
|
scopeId: string;
|
|
115
|
+
/**
|
|
116
|
+
* Provenance of the hit. All live results are `"doc"`; `"fact"` only ever
|
|
117
|
+
* appears for legacy vectors indexed before the facts primitive was removed
|
|
118
|
+
* (the search index stays tolerant of them). Treat every hit as a doc.
|
|
119
|
+
*/
|
|
115
120
|
source: "doc" | "fact";
|
|
116
|
-
/**
|
|
121
|
+
/** The canonical file under shared/<scope>/ (present on doc hits). */
|
|
117
122
|
filePath?: string;
|
|
118
|
-
/**
|
|
123
|
+
/** Legacy-only: the id of a pre-removal fact vector. */
|
|
119
124
|
factId?: string;
|
|
120
125
|
}
|
|
121
126
|
interface KnowledgeSearchResult {
|
|
@@ -136,16 +141,6 @@ interface KnowledgeProfile {
|
|
|
136
141
|
updatedAt: string | null;
|
|
137
142
|
updatedBy: string | null;
|
|
138
143
|
}
|
|
139
|
-
interface KnowledgeFact {
|
|
140
|
-
factId: string;
|
|
141
|
-
scopeType: KnowledgeScopeType;
|
|
142
|
-
scopeId: string;
|
|
143
|
-
text: string;
|
|
144
|
-
sourceType: string;
|
|
145
|
-
createdBy: string;
|
|
146
|
-
createdAt: string;
|
|
147
|
-
updatedAt: string;
|
|
148
|
-
}
|
|
149
144
|
interface KnowledgeDoc {
|
|
150
145
|
filePath: string;
|
|
151
146
|
fileName: string;
|
|
@@ -155,6 +150,47 @@ interface KnowledgeDoc {
|
|
|
155
150
|
createdAt: string;
|
|
156
151
|
updatedAt: string;
|
|
157
152
|
}
|
|
153
|
+
type ChangeRequestResourceType = "doc" | "profile";
|
|
154
|
+
type ChangeRequestOperation = "create" | "update" | "delete";
|
|
155
|
+
type ChangeRequestStatus = "open" | "approved" | "rejected" | "withdrawn" | "superseded";
|
|
156
|
+
type ChangeRequestActorKind = "human" | "agent";
|
|
157
|
+
/** Public projection of a change request (mirrors `PublicChangeRequest` in services/org). */
|
|
158
|
+
interface KnowledgeChangeRequest {
|
|
159
|
+
changeRequestId: string;
|
|
160
|
+
scopeType: KnowledgeScopeType;
|
|
161
|
+
scopeId: string;
|
|
162
|
+
resourceType: ChangeRequestResourceType;
|
|
163
|
+
operation: ChangeRequestOperation;
|
|
164
|
+
targetPath: string | null;
|
|
165
|
+
baseVersionId: string | null;
|
|
166
|
+
proposedContentType: string | null;
|
|
167
|
+
status: ChangeRequestStatus;
|
|
168
|
+
proposerId: string;
|
|
169
|
+
proposerKind: ChangeRequestActorKind;
|
|
170
|
+
rationale: string;
|
|
171
|
+
reviewerId: string | null;
|
|
172
|
+
reviewerKind: ChangeRequestActorKind | null;
|
|
173
|
+
reviewedAt: string | null;
|
|
174
|
+
reviewNote: string | null;
|
|
175
|
+
appliedRef: string | null;
|
|
176
|
+
createdAt: string;
|
|
177
|
+
updatedAt: string;
|
|
178
|
+
}
|
|
179
|
+
/** Per-type proposal payload for `proposeScopeChange`. */
|
|
180
|
+
interface ProposeScopeChangeInput {
|
|
181
|
+
resourceType: ChangeRequestResourceType;
|
|
182
|
+
operation: ChangeRequestOperation;
|
|
183
|
+
/** Why the change is proposed — shown to the reviewer. */
|
|
184
|
+
rationale: string;
|
|
185
|
+
/** doc: the path the proposal applies to (e.g. designs/data-center.md). */
|
|
186
|
+
targetPath?: string;
|
|
187
|
+
/** doc create/update: the staged body to upload (markdown or other text). */
|
|
188
|
+
content?: string;
|
|
189
|
+
/** doc create/update: content type of the staged body (default text/markdown). */
|
|
190
|
+
contentType?: string;
|
|
191
|
+
/** profile: the proposed value ({ about, description, links }). */
|
|
192
|
+
proposedValue?: unknown;
|
|
193
|
+
}
|
|
158
194
|
/** Voice settings — core agent config. Mirrors `VoiceConfig` in `@alfe/types`. */
|
|
159
195
|
interface AgentVoiceConfig {
|
|
160
196
|
/** ElevenLabs voice ID; platform default when unset. */
|
|
@@ -746,14 +782,14 @@ declare class AgentApiClient {
|
|
|
746
782
|
}>;
|
|
747
783
|
/**
|
|
748
784
|
* Generate an image from a text prompt and get back a STABLE, public URL
|
|
749
|
-
* (served from the agent-assets CDN — it does not expire).
|
|
750
|
-
*
|
|
751
|
-
* markdown to show it to the user.
|
|
785
|
+
* (served from the agent-assets CDN — it does not expire). Embed the returned
|
|
786
|
+
* `imageUrl` in a reply as markdown to show it to the user.
|
|
752
787
|
*
|
|
753
|
-
*
|
|
754
|
-
*
|
|
755
|
-
*
|
|
756
|
-
*
|
|
788
|
+
* ASYNC: `gpt-image-1` routinely runs 30–60s, which exceeds the API Gateway
|
|
789
|
+
* 30s ceiling, so this enqueues a job (`POST /agent/images/generate` →
|
|
790
|
+
* `jobId`) then polls (`GET /agent/images/{jobId}`) until it completes. The
|
|
791
|
+
* worker's real failure message (e.g. an unsupported `size`) surfaces via the
|
|
792
|
+
* job's `error` field.
|
|
757
793
|
*/
|
|
758
794
|
generateImage(args: {
|
|
759
795
|
prompt: string;
|
|
@@ -1235,25 +1271,6 @@ declare class AgentApiClient {
|
|
|
1235
1271
|
}>;
|
|
1236
1272
|
/** Read a scope's structured knowledge profile (after membership check). */
|
|
1237
1273
|
getScopeProfile(scopeType: KnowledgeScopeType, scopeId: string): Promise<KnowledgeProfile>;
|
|
1238
|
-
/** List a scope's facts (non-semantic, full enumeration). */
|
|
1239
|
-
listScopeFacts(scopeType: KnowledgeScopeType, scopeId: string, opts?: {
|
|
1240
|
-
limit?: number;
|
|
1241
|
-
cursor?: string;
|
|
1242
|
-
}): Promise<{
|
|
1243
|
-
facts: KnowledgeFact[];
|
|
1244
|
-
nextCursor: string | null;
|
|
1245
|
-
}>;
|
|
1246
|
-
/**
|
|
1247
|
-
* Publish a fact at a scope. This is the deliberate cross-agent learning
|
|
1248
|
-
* boundary — facts are attributable (the agent is recorded as author) and
|
|
1249
|
-
* never an automatic merge. Membership is enforced server-side (403 for a
|
|
1250
|
-
* non-member scope).
|
|
1251
|
-
*/
|
|
1252
|
-
createScopeFact(scopeType: KnowledgeScopeType, scopeId: string, text: string): Promise<KnowledgeFact>;
|
|
1253
|
-
/** Delete a fact at a scope. */
|
|
1254
|
-
deleteScopeFact(scopeType: KnowledgeScopeType, scopeId: string, factId: string): Promise<{
|
|
1255
|
-
removed: boolean;
|
|
1256
|
-
}>;
|
|
1257
1274
|
/** List a scope's docs (the org-files corpus; mirrored to shared/<scope>/). */
|
|
1258
1275
|
listScopeDocs(scopeType: KnowledgeScopeType, scopeId: string, opts?: {
|
|
1259
1276
|
limit?: number;
|
|
@@ -1284,6 +1301,26 @@ declare class AgentApiClient {
|
|
|
1284
1301
|
}): Promise<{
|
|
1285
1302
|
filePath: string;
|
|
1286
1303
|
}>;
|
|
1304
|
+
/**
|
|
1305
|
+
* Open a change request against a scope's knowledge resource. For a doc
|
|
1306
|
+
* create/update, `services/org` returns a presigned staging PUT; this method
|
|
1307
|
+
* uploads the proposed `content` to it (echoing the same Content-Type that
|
|
1308
|
+
* was signed), mirroring `writeScopeDoc`. The staged body is applied to the
|
|
1309
|
+
* canonical doc — attributed to this agent — only when a reviewer approves.
|
|
1310
|
+
*/
|
|
1311
|
+
proposeScopeChange(scopeType: KnowledgeScopeType, scopeId: string, input: ProposeScopeChangeInput): Promise<KnowledgeChangeRequest>;
|
|
1312
|
+
/**
|
|
1313
|
+
* List the agent's OWN change requests in a scope (filtered server-side to
|
|
1314
|
+
* this agent as proposer). Pass `status` to narrow to open / approved / etc.
|
|
1315
|
+
*/
|
|
1316
|
+
listScopeChangeRequests(scopeType: KnowledgeScopeType, scopeId: string, opts?: {
|
|
1317
|
+
status?: ChangeRequestStatus;
|
|
1318
|
+
limit?: number;
|
|
1319
|
+
cursor?: string;
|
|
1320
|
+
}): Promise<{
|
|
1321
|
+
changeRequests: KnowledgeChangeRequest[];
|
|
1322
|
+
nextCursor: string | null;
|
|
1323
|
+
}>;
|
|
1287
1324
|
registerDatabaseCredentials(): Promise<{
|
|
1288
1325
|
connectionString: string;
|
|
1289
1326
|
username: string;
|
|
@@ -1339,5 +1376,5 @@ declare class AgentApiClient {
|
|
|
1339
1376
|
}
|
|
1340
1377
|
//# sourceMappingURL=index.d.ts.map
|
|
1341
1378
|
//#endregion
|
|
1342
|
-
export { AgentApiClient, AgentApiClientConfig, AgentAvatarPresign, AgentSelf, AgentVoice, AgentVoiceConfig, type ChangelogAction, type ChangelogActor, type ChangelogEntry, type EncryptedEnvelopeV1, type Field, type FieldEnvelope, type FieldFormat, type FieldSensitivity, type FieldView, type GeneratedDataKey, type IntegrationConfigResult, type IntegrationConfigSchemaField, type IntegrationInstall,
|
|
1379
|
+
export { AgentApiClient, AgentApiClientConfig, AgentAvatarPresign, AgentSelf, AgentVoice, AgentVoiceConfig, ChangeRequestActorKind, ChangeRequestOperation, ChangeRequestResourceType, ChangeRequestStatus, type ChangelogAction, type ChangelogActor, type ChangelogEntry, type EncryptedEnvelopeV1, type Field, type FieldEnvelope, type FieldFormat, type FieldSensitivity, type FieldView, type GeneratedDataKey, type IntegrationConfigResult, type IntegrationConfigSchemaField, type IntegrationInstall, KnowledgeChangeRequest, KnowledgeDoc, KnowledgeProfile, KnowledgeProfileLink, KnowledgeScope, KnowledgeScopeType, KnowledgeSearchHit, KnowledgeSearchResult, ProposeScopeChangeInput, type RegistryEntry, RemoteSessionInfo, type ScopeInfo, type SecretAggregate, type SecretCategory, type SecretMetadata, type SecretScope, SharedFileEntry, SyncAgentInfo, SyncAgentStats, SyncConfirmedUpload, SyncFileEntry, SyncManifest, SyncManifestEntry, SyncPresignedUrl, SyncReconstructBundle, SyncReconstructFile, SyncSessionContent, SyncSessionEntry, VoiceSttArgs, VoiceSttResult, VoiceTtsArgs, VoiceTtsModel, VoiceTtsResult };
|
|
1343
1380
|
//# sourceMappingURL=index.d.cts.map
|
package/dist/index.d.cts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.cts","names":[],"sources":["../src/index.ts"],"mappings":";;;;AAiGwB,UAlDP,oBAAA,CAkDO;QAAf,EAAA,MAAA;EAAM,MAAA,EAAA,MAAA;AAGf;AAMiB,UApDA,iBAAA,CAoDmB;EAQnB,SAAA,EAAA,MAAA;EAQA,OAAA,EAAA,MAAA;EASA,OAAA,EAAA,SAAc,GAAA,UAAA;EAQd,MAAA,EAAA,eAAa,GAAA,gBAAA,GAAA,kBAAA,GAAA,UAAA,GAAA,WAAA,GAAA,SAAA,GAAA,QAAA;EASb,GAAA,CAAA,EAAA,MAAA;EAQA,YAAA,CAAA,EAAA,MAAkB;EAMlB,WAAA,CAAA,EAAA,MAAe;AAehC;AAEiB,UA1GA,aAAA,CA0Gc;EAMd,OAAA,EAAA,MAAA;
|
|
1
|
+
{"version":3,"file":"index.d.cts","names":[],"sources":["../src/index.ts"],"mappings":";;;;AAiGwB,UAlDP,oBAAA,CAkDO;QAAf,EAAA,MAAA;EAAM,MAAA,EAAA,MAAA;AAGf;AAMiB,UApDA,iBAAA,CAoDmB;EAQnB,SAAA,EAAA,MAAA;EAQA,OAAA,EAAA,MAAA;EASA,OAAA,EAAA,SAAc,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
113
113
|
scopeType: KnowledgeScopeType;
|
|
114
114
|
scopeId: string;
|
|
115
|
+
/**
|
|
116
|
+
* Provenance of the hit. All live results are `"doc"`; `"fact"` only ever
|
|
117
|
+
* appears for legacy vectors indexed before the facts primitive was removed
|
|
118
|
+
* (the search index stays tolerant of them). Treat every hit as a doc.
|
|
119
|
+
*/
|
|
115
120
|
source: "doc" | "fact";
|
|
116
|
-
/**
|
|
121
|
+
/** The canonical file under shared/<scope>/ (present on doc hits). */
|
|
117
122
|
filePath?: string;
|
|
118
|
-
/**
|
|
123
|
+
/** Legacy-only: the id of a pre-removal fact vector. */
|
|
119
124
|
factId?: string;
|
|
120
125
|
}
|
|
121
126
|
interface KnowledgeSearchResult {
|
|
@@ -136,16 +141,6 @@ interface KnowledgeProfile {
|
|
|
136
141
|
updatedAt: string | null;
|
|
137
142
|
updatedBy: string | null;
|
|
138
143
|
}
|
|
139
|
-
interface KnowledgeFact {
|
|
140
|
-
factId: string;
|
|
141
|
-
scopeType: KnowledgeScopeType;
|
|
142
|
-
scopeId: string;
|
|
143
|
-
text: string;
|
|
144
|
-
sourceType: string;
|
|
145
|
-
createdBy: string;
|
|
146
|
-
createdAt: string;
|
|
147
|
-
updatedAt: string;
|
|
148
|
-
}
|
|
149
144
|
interface KnowledgeDoc {
|
|
150
145
|
filePath: string;
|
|
151
146
|
fileName: string;
|
|
@@ -155,6 +150,47 @@ interface KnowledgeDoc {
|
|
|
155
150
|
createdAt: string;
|
|
156
151
|
updatedAt: string;
|
|
157
152
|
}
|
|
153
|
+
type ChangeRequestResourceType = "doc" | "profile";
|
|
154
|
+
type ChangeRequestOperation = "create" | "update" | "delete";
|
|
155
|
+
type ChangeRequestStatus = "open" | "approved" | "rejected" | "withdrawn" | "superseded";
|
|
156
|
+
type ChangeRequestActorKind = "human" | "agent";
|
|
157
|
+
/** Public projection of a change request (mirrors `PublicChangeRequest` in services/org). */
|
|
158
|
+
interface KnowledgeChangeRequest {
|
|
159
|
+
changeRequestId: string;
|
|
160
|
+
scopeType: KnowledgeScopeType;
|
|
161
|
+
scopeId: string;
|
|
162
|
+
resourceType: ChangeRequestResourceType;
|
|
163
|
+
operation: ChangeRequestOperation;
|
|
164
|
+
targetPath: string | null;
|
|
165
|
+
baseVersionId: string | null;
|
|
166
|
+
proposedContentType: string | null;
|
|
167
|
+
status: ChangeRequestStatus;
|
|
168
|
+
proposerId: string;
|
|
169
|
+
proposerKind: ChangeRequestActorKind;
|
|
170
|
+
rationale: string;
|
|
171
|
+
reviewerId: string | null;
|
|
172
|
+
reviewerKind: ChangeRequestActorKind | null;
|
|
173
|
+
reviewedAt: string | null;
|
|
174
|
+
reviewNote: string | null;
|
|
175
|
+
appliedRef: string | null;
|
|
176
|
+
createdAt: string;
|
|
177
|
+
updatedAt: string;
|
|
178
|
+
}
|
|
179
|
+
/** Per-type proposal payload for `proposeScopeChange`. */
|
|
180
|
+
interface ProposeScopeChangeInput {
|
|
181
|
+
resourceType: ChangeRequestResourceType;
|
|
182
|
+
operation: ChangeRequestOperation;
|
|
183
|
+
/** Why the change is proposed — shown to the reviewer. */
|
|
184
|
+
rationale: string;
|
|
185
|
+
/** doc: the path the proposal applies to (e.g. designs/data-center.md). */
|
|
186
|
+
targetPath?: string;
|
|
187
|
+
/** doc create/update: the staged body to upload (markdown or other text). */
|
|
188
|
+
content?: string;
|
|
189
|
+
/** doc create/update: content type of the staged body (default text/markdown). */
|
|
190
|
+
contentType?: string;
|
|
191
|
+
/** profile: the proposed value ({ about, description, links }). */
|
|
192
|
+
proposedValue?: unknown;
|
|
193
|
+
}
|
|
158
194
|
/** Voice settings — core agent config. Mirrors `VoiceConfig` in `@alfe/types`. */
|
|
159
195
|
interface AgentVoiceConfig {
|
|
160
196
|
/** ElevenLabs voice ID; platform default when unset. */
|
|
@@ -746,14 +782,14 @@ declare class AgentApiClient {
|
|
|
746
782
|
}>;
|
|
747
783
|
/**
|
|
748
784
|
* Generate an image from a text prompt and get back a STABLE, public URL
|
|
749
|
-
* (served from the agent-assets CDN — it does not expire).
|
|
750
|
-
*
|
|
751
|
-
* markdown to show it to the user.
|
|
785
|
+
* (served from the agent-assets CDN — it does not expire). Embed the returned
|
|
786
|
+
* `imageUrl` in a reply as markdown to show it to the user.
|
|
752
787
|
*
|
|
753
|
-
*
|
|
754
|
-
*
|
|
755
|
-
*
|
|
756
|
-
*
|
|
788
|
+
* ASYNC: `gpt-image-1` routinely runs 30–60s, which exceeds the API Gateway
|
|
789
|
+
* 30s ceiling, so this enqueues a job (`POST /agent/images/generate` →
|
|
790
|
+
* `jobId`) then polls (`GET /agent/images/{jobId}`) until it completes. The
|
|
791
|
+
* worker's real failure message (e.g. an unsupported `size`) surfaces via the
|
|
792
|
+
* job's `error` field.
|
|
757
793
|
*/
|
|
758
794
|
generateImage(args: {
|
|
759
795
|
prompt: string;
|
|
@@ -1235,25 +1271,6 @@ declare class AgentApiClient {
|
|
|
1235
1271
|
}>;
|
|
1236
1272
|
/** Read a scope's structured knowledge profile (after membership check). */
|
|
1237
1273
|
getScopeProfile(scopeType: KnowledgeScopeType, scopeId: string): Promise<KnowledgeProfile>;
|
|
1238
|
-
/** List a scope's facts (non-semantic, full enumeration). */
|
|
1239
|
-
listScopeFacts(scopeType: KnowledgeScopeType, scopeId: string, opts?: {
|
|
1240
|
-
limit?: number;
|
|
1241
|
-
cursor?: string;
|
|
1242
|
-
}): Promise<{
|
|
1243
|
-
facts: KnowledgeFact[];
|
|
1244
|
-
nextCursor: string | null;
|
|
1245
|
-
}>;
|
|
1246
|
-
/**
|
|
1247
|
-
* Publish a fact at a scope. This is the deliberate cross-agent learning
|
|
1248
|
-
* boundary — facts are attributable (the agent is recorded as author) and
|
|
1249
|
-
* never an automatic merge. Membership is enforced server-side (403 for a
|
|
1250
|
-
* non-member scope).
|
|
1251
|
-
*/
|
|
1252
|
-
createScopeFact(scopeType: KnowledgeScopeType, scopeId: string, text: string): Promise<KnowledgeFact>;
|
|
1253
|
-
/** Delete a fact at a scope. */
|
|
1254
|
-
deleteScopeFact(scopeType: KnowledgeScopeType, scopeId: string, factId: string): Promise<{
|
|
1255
|
-
removed: boolean;
|
|
1256
|
-
}>;
|
|
1257
1274
|
/** List a scope's docs (the org-files corpus; mirrored to shared/<scope>/). */
|
|
1258
1275
|
listScopeDocs(scopeType: KnowledgeScopeType, scopeId: string, opts?: {
|
|
1259
1276
|
limit?: number;
|
|
@@ -1284,6 +1301,26 @@ declare class AgentApiClient {
|
|
|
1284
1301
|
}): Promise<{
|
|
1285
1302
|
filePath: string;
|
|
1286
1303
|
}>;
|
|
1304
|
+
/**
|
|
1305
|
+
* Open a change request against a scope's knowledge resource. For a doc
|
|
1306
|
+
* create/update, `services/org` returns a presigned staging PUT; this method
|
|
1307
|
+
* uploads the proposed `content` to it (echoing the same Content-Type that
|
|
1308
|
+
* was signed), mirroring `writeScopeDoc`. The staged body is applied to the
|
|
1309
|
+
* canonical doc — attributed to this agent — only when a reviewer approves.
|
|
1310
|
+
*/
|
|
1311
|
+
proposeScopeChange(scopeType: KnowledgeScopeType, scopeId: string, input: ProposeScopeChangeInput): Promise<KnowledgeChangeRequest>;
|
|
1312
|
+
/**
|
|
1313
|
+
* List the agent's OWN change requests in a scope (filtered server-side to
|
|
1314
|
+
* this agent as proposer). Pass `status` to narrow to open / approved / etc.
|
|
1315
|
+
*/
|
|
1316
|
+
listScopeChangeRequests(scopeType: KnowledgeScopeType, scopeId: string, opts?: {
|
|
1317
|
+
status?: ChangeRequestStatus;
|
|
1318
|
+
limit?: number;
|
|
1319
|
+
cursor?: string;
|
|
1320
|
+
}): Promise<{
|
|
1321
|
+
changeRequests: KnowledgeChangeRequest[];
|
|
1322
|
+
nextCursor: string | null;
|
|
1323
|
+
}>;
|
|
1287
1324
|
registerDatabaseCredentials(): Promise<{
|
|
1288
1325
|
connectionString: string;
|
|
1289
1326
|
username: string;
|
|
@@ -1339,5 +1376,5 @@ declare class AgentApiClient {
|
|
|
1339
1376
|
}
|
|
1340
1377
|
//# sourceMappingURL=index.d.ts.map
|
|
1341
1378
|
//#endregion
|
|
1342
|
-
export { AgentApiClient, AgentApiClientConfig, AgentAvatarPresign, AgentSelf, AgentVoice, AgentVoiceConfig, type ChangelogAction, type ChangelogActor, type ChangelogEntry, type EncryptedEnvelopeV1, type Field, type FieldEnvelope, type FieldFormat, type FieldSensitivity, type FieldView, type GeneratedDataKey, type IntegrationConfigResult, type IntegrationConfigSchemaField, type IntegrationInstall,
|
|
1379
|
+
export { AgentApiClient, AgentApiClientConfig, AgentAvatarPresign, AgentSelf, AgentVoice, AgentVoiceConfig, ChangeRequestActorKind, ChangeRequestOperation, ChangeRequestResourceType, ChangeRequestStatus, type ChangelogAction, type ChangelogActor, type ChangelogEntry, type EncryptedEnvelopeV1, type Field, type FieldEnvelope, type FieldFormat, type FieldSensitivity, type FieldView, type GeneratedDataKey, type IntegrationConfigResult, type IntegrationConfigSchemaField, type IntegrationInstall, KnowledgeChangeRequest, KnowledgeDoc, KnowledgeProfile, KnowledgeProfileLink, KnowledgeScope, KnowledgeScopeType, KnowledgeSearchHit, KnowledgeSearchResult, ProposeScopeChangeInput, type RegistryEntry, RemoteSessionInfo, type ScopeInfo, type SecretAggregate, type SecretCategory, type SecretMetadata, type SecretScope, SharedFileEntry, SyncAgentInfo, SyncAgentStats, SyncConfirmedUpload, SyncFileEntry, SyncManifest, SyncManifestEntry, SyncPresignedUrl, SyncReconstructBundle, SyncReconstructFile, SyncSessionContent, SyncSessionEntry, VoiceSttArgs, VoiceSttResult, VoiceTtsArgs, VoiceTtsModel, VoiceTtsResult };
|
|
1343
1380
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","names":[],"sources":["../src/index.ts"],"mappings":";;;;AAiGwB,UAlDP,oBAAA,CAkDO;QAAf,EAAA,MAAA;EAAM,MAAA,EAAA,MAAA;AAGf;AAMiB,UApDA,iBAAA,CAoDmB;EAQnB,SAAA,EAAA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