@faiber/faiber-chat 0.24.1 → 1.1.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 +110 -8
- package/dist/.tsbuildinfo +1 -1
- package/dist/index.d.ts +170 -42
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +136 -6
- package/dist/index.js.map +1 -1
- package/dist/learning.d.ts +2 -2
- package/dist/operations.d.ts +312 -248
- package/dist/operations.d.ts.map +1 -1
- package/dist/operations.js +267 -189
- package/dist/operations.js.map +1 -1
- package/dist/operations.types.d.ts +101 -240
- package/dist/operations.types.d.ts.map +1 -1
- package/dist/personal.d.ts +30 -15
- package/dist/personal.d.ts.map +1 -1
- package/dist/personal.js.map +1 -1
- package/dist/reviewed-wire.d.ts +262 -0
- package/dist/reviewed-wire.d.ts.map +1 -0
- package/dist/reviewed-wire.js +2 -0
- package/dist/reviewed-wire.js.map +1 -0
- package/dist/types.d.ts +140 -36
- package/dist/types.d.ts.map +1 -1
- package/dist/workspace.d.ts +4 -4
- package/dist/workspace.d.ts.map +1 -1
- package/package.json +5 -4
- package/provenance.json +34 -0
package/dist/index.js
CHANGED
|
@@ -33,39 +33,167 @@ export class ChatApi extends ServiceApi {
|
|
|
33
33
|
transcribe(recording, language = 'auto', options) {
|
|
34
34
|
return this.client.request({ ...options, method: 'POST', url: '/api/v1/speech/transcribe', params: { language }, data: recording, timeout: options?.timeout ?? 200000, headers: { ...options?.headers, 'Content-Type': recording.type } });
|
|
35
35
|
}
|
|
36
|
-
/** Synthesize speech through the configured metered provider; requires chat:ai.
|
|
37
|
-
* Returns compact MP3 by default, or explicit WAV. Preserves Axios metadata and cancellation.
|
|
38
|
-
* Disabled voices return 400; unavailable/mismatched provider output returns 502. */
|
|
39
36
|
synthesize(input, options) {
|
|
40
|
-
return this.client.request({ ...options, method: 'POST', url: '/api/v1/speech/tts', data: { ...input, format: input.format ?? 'mp3' }
|
|
37
|
+
return this.client.request({ responseType: 'blob', ...options, method: 'POST', url: '/api/v1/speech/tts', data: { ...input, format: input.format ?? 'mp3' } });
|
|
41
38
|
}
|
|
39
|
+
/** List current active memberships in nondeleted, nonquarantined organization conversations ordered by last message; direct rooms must retain exactly their private pair.
|
|
40
|
+
* @returns Complete Axios response with backend status and headers.
|
|
41
|
+
* @throws AxiosError on validation, current authority, access, conflict or transport failure; Authenticated IDP session; chat:read.
|
|
42
|
+
*/
|
|
42
43
|
conversations(options) { return this.client.get("/api/v1/conversations", undefined, options); }
|
|
44
|
+
/** Create a conversation (201); direct rooms require exactly two distinct members and deduplicate by pair. Reserved learning slugs/settings are rejected. Configured LMS contact policy and guest assistant restrictions are enforced.
|
|
45
|
+
* @returns Complete Axios response with backend status and headers.
|
|
46
|
+
* @throws AxiosError on validation, current authority, access, conflict or transport failure; Authenticated IDP session; chat:write.
|
|
47
|
+
*/
|
|
43
48
|
createConversation(data, options) { return this.client.post("/api/v1/conversations", data, options); }
|
|
49
|
+
/** Read one accessible conversation; membership, organization, deleted/quarantined state and private direct-room rules are rechecked.
|
|
50
|
+
* @returns Complete Axios response with backend status and headers.
|
|
51
|
+
* @throws AxiosError on validation, current authority, access, conflict or transport failure; Authenticated IDP session; chat:read.
|
|
52
|
+
*/
|
|
44
53
|
conversation(conversationId, options) { return this.client.get(`/api/v1/conversations/${id(conversationId)}`, undefined, options); }
|
|
54
|
+
/** Update conversation fields with optional expected_version; null preserves optional values. Stale versions conflict. Conversation access and write role are checked.
|
|
55
|
+
* @returns Complete Axios response with backend status and headers.
|
|
56
|
+
* @throws AxiosError on validation, current authority, access, conflict or transport failure; Authenticated IDP session; chat:write.
|
|
57
|
+
*/
|
|
45
58
|
updateConversation(conversationId, data, options) { return this.client.put(`/api/v1/conversations/${id(conversationId)}`, data, options); }
|
|
59
|
+
/** Archive the accessible conversation; requires the owner and returns 204 with no body.
|
|
60
|
+
* @returns Complete Axios response with backend status and headers.
|
|
61
|
+
* @throws AxiosError on validation, current authority, access, conflict or transport failure; Authenticated IDP session; chat:delete.
|
|
62
|
+
*/
|
|
46
63
|
archiveConversation(conversationId, options) { return this.client.delete(`/api/v1/conversations/${id(conversationId)}`, options); }
|
|
64
|
+
/** List active members of an accessible conversation ordered by joined_at; includes state, notification settings and read sequence.
|
|
65
|
+
* @returns Complete Axios response with backend status and headers.
|
|
66
|
+
* @throws AxiosError on validation, current authority, access, conflict or transport failure; Authenticated IDP session; chat:read.
|
|
67
|
+
*/
|
|
47
68
|
members(conversationId, options) { return this.client.get(`/api/v1/conversations/${id(conversationId)}/members`, undefined, options); }
|
|
69
|
+
/** Add a member (201); owner/admin role and contact/direct-room restrictions apply.
|
|
70
|
+
* @returns Complete Axios response with backend status and headers.
|
|
71
|
+
* @throws AxiosError on validation, current authority, access, conflict or transport failure; Authenticated IDP session; chat:manage.
|
|
72
|
+
*/
|
|
48
73
|
addMember(conversationId, data, options) { return this.client.post(`/api/v1/conversations/${id(conversationId)}/members`, data, options); }
|
|
74
|
+
/** Mark an active member left; self-removal is allowed, other removals require owner/admin. The conversation owner cannot be removed; returns 409 until ownership is transferred. Returns 204.
|
|
75
|
+
* @returns Complete Axios response with backend status and headers.
|
|
76
|
+
* @throws AxiosError on validation, current authority, access, conflict or transport failure; Authenticated IDP session; chat:manage.
|
|
77
|
+
*/
|
|
49
78
|
removeMember(conversationId, userId, options) { return this.client.delete(`/api/v1/conversations/${id(conversationId)}/members/${id(userId)}`, options); }
|
|
79
|
+
/** Read descending undeleted message history with ready attachments. before/after are exclusive sequences; limit defaults to 50 and clamps 1..200. q is accepted but not applied. meta contains limit and has_more.
|
|
80
|
+
* @returns Complete Axios response with backend status and headers.
|
|
81
|
+
* @throws AxiosError on validation, current authority, access, conflict or transport failure; Authenticated IDP session; chat:read.
|
|
82
|
+
*/
|
|
50
83
|
messages(conversationId, params, options) { return this.client.get(`/api/v1/conversations/${id(conversationId)}/messages`, params, options); }
|
|
84
|
+
/** Send a message (201); conversation and assigned contact policy are rechecked. Reuse client_id for an identical retry; changed request content conflicts. Attachments must belong to the current conversation/uploader and be ready.
|
|
85
|
+
* @returns Complete Axios response with backend status and headers.
|
|
86
|
+
* @throws AxiosError on validation, current authority, access, conflict or transport failure; Authenticated IDP session; chat:write.
|
|
87
|
+
*/
|
|
51
88
|
sendMessage(conversationId, data, options) { return this.client.post(`/api/v1/conversations/${id(conversationId)}/messages`, data, options); }
|
|
89
|
+
/** Run governed AI for an accessible conversation and return user_message, assistant_message, ai_turn and Agentic billing authority. Assistant, context, fitness, workspace, plan and current upstream authority checks apply.
|
|
90
|
+
* @returns Complete Axios response with backend status and headers.
|
|
91
|
+
* @throws AxiosError on validation, current authority, access, conflict or transport failure; Authenticated IDP session; chat:ai.
|
|
92
|
+
*/
|
|
52
93
|
sendAiMessage(conversationId, data, options) { return this.client.post(`/api/v1/conversations/${id(conversationId)}/ai/messages`, data, options); }
|
|
94
|
+
/** Advance the current active member read sequence monotonically. Sequence cannot be negative or exceed the conversation head; message_id, when provided, must have that exact sequence. Returns 204.
|
|
95
|
+
* @returns Complete Axios response with backend status and headers.
|
|
96
|
+
* @throws AxiosError on validation, current authority, access, conflict or transport failure; Authenticated IDP session; chat:write.
|
|
97
|
+
*/
|
|
53
98
|
markRead(conversationId, data, options) { return this.client.post(`/api/v1/conversations/${id(conversationId)}/read`, data, options); }
|
|
99
|
+
/** Subscribe to conversation SSE after access checks; stream includes named events and 15-second keep-alives. Retain authenticated transport and abort on exit.
|
|
100
|
+
* @returns Complete Axios response with backend status and headers.
|
|
101
|
+
* @throws AxiosError on validation, current authority, access, conflict or transport failure; Authenticated IDP session; chat:read.
|
|
102
|
+
*/
|
|
54
103
|
events(conversationId, options) { return this.client.get(`/api/v1/conversations/${id(conversationId)}/events`, undefined, { ...options, responseType: "stream" }); }
|
|
104
|
+
/** Replace content of an accessible message; only the original sender may edit it.
|
|
105
|
+
* @returns Complete Axios response with backend status and headers.
|
|
106
|
+
* @throws AxiosError on validation, current authority, access, conflict or transport failure; Authenticated IDP session; chat:write.
|
|
107
|
+
*/
|
|
55
108
|
editMessage(messageId, data, options) { return this.client.put(`/api/v1/messages/${id(messageId)}`, data, options); }
|
|
109
|
+
/** Soft-delete an accessible message subject to sender/manager checks; returns 204.
|
|
110
|
+
* @returns Complete Axios response with backend status and headers.
|
|
111
|
+
* @throws AxiosError on validation, current authority, access, conflict or transport failure; Authenticated IDP session; chat:delete.
|
|
112
|
+
*/
|
|
56
113
|
deleteMessage(messageId, options) { return this.client.delete(`/api/v1/messages/${id(messageId)}`, options); }
|
|
114
|
+
/** Insert a reaction and return its own reaction record (201), rather than the message. Emoji is at most 16 characters; duplicate reaction returns 409.
|
|
115
|
+
* @returns Complete Axios response with backend status and headers.
|
|
116
|
+
* @throws AxiosError on validation, current authority, access, conflict or transport failure; Authenticated IDP session; chat:write.
|
|
117
|
+
*/
|
|
57
118
|
react(messageId, data, options) { return this.client.post(`/api/v1/messages/${id(messageId)}/reactions`, data, options); }
|
|
119
|
+
/** List active nondeleted assistant catalog items (id, name, status) ordered by update time; this repository list has no organization predicate.
|
|
120
|
+
* @returns Complete Axios response with backend status and headers.
|
|
121
|
+
* @throws AxiosError on validation, current authority, access, conflict or transport failure; Authenticated IDP session; assistant:read.
|
|
122
|
+
*/
|
|
58
123
|
assistants(options) { return this.operations.routesListAssistantsGet(options); }
|
|
124
|
+
/** Read one active nondeleted assistant catalog item (id, name, status); this lookup has no organization predicate.
|
|
125
|
+
* @returns Complete Axios response with backend status and headers.
|
|
126
|
+
* @throws AxiosError on validation, current authority, access, conflict or transport failure; Authenticated IDP session; assistant:read.
|
|
127
|
+
*/
|
|
59
128
|
assistant(assistantId, options) { return this.operations.routesGetAssistantGet(assistantId, options); }
|
|
129
|
+
/** List nondeleted managed assistant records ordered by updated_at; the repository has no organization filter on this list, so caller/gateway authority remains essential.
|
|
130
|
+
* @returns Complete Axios response with backend status and headers.
|
|
131
|
+
* @throws AxiosError on validation, current authority, access, conflict or transport failure; Authenticated IDP session; assistant:manage.
|
|
132
|
+
*/
|
|
60
133
|
managedAssistants(options) { return this.operations.routesListManagedAssistantsGet(options); }
|
|
134
|
+
/** Read managed assistant detail for this organization including expected_knowledge_policy_revision; capture both revisions when opening an edit draft.
|
|
135
|
+
* @returns Complete Axios response with backend status and headers.
|
|
136
|
+
* @throws AxiosError on validation, current authority, access, conflict or transport failure; Authenticated IDP session; assistant:manage.
|
|
137
|
+
*/
|
|
61
138
|
managedAssistant(assistantId, options) { return this.operations.routesGetManagedAssistantGet(assistantId, options); }
|
|
62
|
-
|
|
63
|
-
|
|
139
|
+
/** Create a managed assistant (201) using a non-nil caller configuration UUID. Keep the UUID and exact request for retries; governed configuration reconciles Knowledge policy before application.
|
|
140
|
+
* @returns Complete Axios response with backend status and headers.
|
|
141
|
+
* @throws AxiosError on validation, current authority, access, conflict or transport failure; Authenticated IDP session; assistant:manage.
|
|
142
|
+
*/
|
|
143
|
+
createAssistant(data, options) {
|
|
144
|
+
if (!validConfigurationId(data.configuration_id))
|
|
145
|
+
throw new TypeError("A non-nil configuration UUID is required");
|
|
146
|
+
return this.operations.routesCreateAssistantPost(data, options);
|
|
147
|
+
}
|
|
148
|
+
/** Send the UUID and both revisions captured with the draft; no automatic GET/rebase. */
|
|
149
|
+
/** Apply a managed assistant edit with configuration_id and both captured Chat/Knowledge revisions. Omitted knowledge_level preserves it; explicit null clears it. Stale or pending competing edits return 409.
|
|
150
|
+
* @returns Complete Axios response with backend status and headers.
|
|
151
|
+
* @throws AxiosError on validation, current authority, access, conflict or transport failure; Authenticated IDP session; assistant:manage.
|
|
152
|
+
*/
|
|
153
|
+
updateAssistant(assistantId, data, options) {
|
|
154
|
+
if (!validConfigurationId(data.configuration_id) || !Number.isSafeInteger(data.expected_version) || data.expected_version < 1 || !Number.isSafeInteger(data.expected_knowledge_policy_revision) || data.expected_knowledge_policy_revision < 0)
|
|
155
|
+
throw new TypeError("Configuration UUID and both captured revisions are required");
|
|
156
|
+
return this.operations.routesUpdateAssistantPut(assistantId, data, options);
|
|
157
|
+
}
|
|
158
|
+
/** Read the tenant-scoped retained configuration intent. Current assistant:manage is required; credentials/grants are never retained.
|
|
159
|
+
* @returns Complete Axios response with backend status and headers.
|
|
160
|
+
* @throws AxiosError on validation, current authority, access, conflict or transport failure; Authenticated IDP session; assistant:manage.
|
|
161
|
+
*/
|
|
162
|
+
assistantPolicyOperation(operationId, options) { return this.client.get('/api/v1/admin/assistant-policy-operations/' + id(operationId), undefined, options); }
|
|
163
|
+
/** Recover or cancel an exact durable assistant configuration intent using current assistant:manage and fitness settings guard. Applied operations return their retained result; conflicts require explicit review.
|
|
164
|
+
* @returns Complete Axios response with backend status and headers.
|
|
165
|
+
* @throws AxiosError on validation, current authority, access, conflict or transport failure; Authenticated IDP session; assistant:manage.
|
|
166
|
+
*/
|
|
167
|
+
reconcileAssistantPolicy(operationId, input, options) { return this.client.post('/api/v1/admin/assistant-policy-operations/' + id(operationId), input, options); }
|
|
168
|
+
/** Soft-delete a managed assistant after fitness and pending configuration guards; returns 204.
|
|
169
|
+
* @returns Complete Axios response with backend status and headers.
|
|
170
|
+
* @throws AxiosError on validation, current authority, access, conflict or transport failure; Authenticated IDP session; assistant:manage.
|
|
171
|
+
*/
|
|
64
172
|
deleteAssistant(assistantId, options) { return this.operations.routesDeleteAssistantDelete(assistantId, options); }
|
|
173
|
+
/** Return Agentic model catalog unchanged for billing_payer user or project_owner (default project_owner); upstream errors return 502.
|
|
174
|
+
* @returns Complete Axios response with backend status and headers.
|
|
175
|
+
* @throws AxiosError on validation, current authority, access, conflict or transport failure; Authenticated IDP session; assistant:manage.
|
|
176
|
+
*/
|
|
65
177
|
assistantModels(params, options) { return this.operations.routesAssistantModelsGet(params, options); }
|
|
178
|
+
/** Return Knowledge platform catalog data unchanged; upstream missing data is null. Requires assistant:manage.
|
|
179
|
+
* @returns Complete Axios response with backend status and headers.
|
|
180
|
+
* @throws AxiosError on validation, current authority, access, conflict or transport failure; Authenticated IDP session; assistant:manage.
|
|
181
|
+
*/
|
|
66
182
|
assistantContextCatalog(options) { return this.operations.routesAssistantContextCatalogGet(options); }
|
|
183
|
+
/** Discover up to the upstream first 100 products, LMS courses or weblog posts and normalize content links. q is trimmed and case-insensitively filters title/description; products also forward search.
|
|
184
|
+
* @returns Complete Axios response with backend status and headers.
|
|
185
|
+
* @throws AxiosError on validation, current authority, access, conflict or transport failure; Authenticated IDP session; assistant:manage.
|
|
186
|
+
*/
|
|
67
187
|
customerActionContent(params, options) { return this.operations.routesCustomerActionContentGet(params, options); }
|
|
188
|
+
/** Reserve an attachment (201) for an accessible conversation, returning attachment, expiring upload_url and expires_in_seconds. Size is 0..100 MiB; download through the authenticated content route.
|
|
189
|
+
* @returns Complete Axios response with backend status and headers.
|
|
190
|
+
* @throws AxiosError on validation, current authority, access, conflict or transport failure; Authenticated IDP session; chat:write.
|
|
191
|
+
*/
|
|
68
192
|
createAttachment(conversationId, data, options) { return this.operations.routesCreateAttachmentPost(conversationId, data, options); }
|
|
193
|
+
/** Finalize an existing presigned upload or upload raw application/octet-stream bytes (100 MiB maximum). Reserved byte size/checksum and conversation/uploader authority are checked; returns the stored attachment.
|
|
194
|
+
* @returns Complete Axios response with backend status and headers.
|
|
195
|
+
* @throws AxiosError on validation, current authority, access, conflict or transport failure; Authenticated IDP session; chat:write.
|
|
196
|
+
*/
|
|
69
197
|
completeAttachment(attachmentId, options) { return this.operations.routesCompleteAttachmentPost(attachmentId, options); }
|
|
70
198
|
/** Upload reservation bytes and mark the attachment ready (chat:write).
|
|
71
199
|
* Maximum 100 MiB; size/checksum must match the reservation. Supports onUploadProgress and cancellation.
|
|
@@ -100,4 +228,6 @@ export * from "./speech-playback.js";
|
|
|
100
228
|
export * from "./speech-live.js";
|
|
101
229
|
export * from "./assistant-voice.js";
|
|
102
230
|
export * from "./personal.js";
|
|
231
|
+
function validConfigurationId(value) { return typeof value === "string" && /^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}$/i.test(value) && value.replaceAll("-", "") !== "0".repeat(32); }
|
|
232
|
+
export * from "./reviewed-wire.js";
|
|
103
233
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC;AAChD,OAAO,EAAE,kBAAkB,EAAE,MAAM,eAAe,CAAC;AACnD,OAAO,EAAE,uBAAuB,EAAE,MAAM,gBAAgB,CAAC;AACzD,OAAO,EAAE,UAAU,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC;AAChD,OAAO,EAAE,kBAAkB,EAAE,MAAM,eAAe,CAAC;AACnD,OAAO,EAAE,uBAAuB,EAAE,MAAM,gBAAgB,CAAC;AACzD,OAAO,EAAE,UAAU,EAA4D,MAAM,kBAAkB,CAAC;AAGxG,OAAO,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AACjD,MAAM,EAAE,GAAG,CAAC,KAAiB,EAAE,EAAE,CAAC,kBAAkB,CAAC,KAAK,CAAC,CAAC;AAC5D,MAAM,OAAO,OAAQ,SAAQ,UAAU;IAC5B,QAAQ,GAAG,IAAI,eAAe,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;IACrD;;;;;OAKG;IACH,cAAc,CAAC,KAAwD,EAAC,OAA2E,IAAE,OAAO,IAAI,CAAC,MAAM,CAAC,IAAI,CAA2G,sBAAsB,EAAC,KAAK,EAAC,OAAO,CAAC,CAAC,CAAA,CAAC;IAC9T;;mFAE+E;IAC/E,UAAU,CAAC,KAAiD,EAAE,OAAoE;QAChI,OAAO,IAAI,CAAC,MAAM,CAAC,IAAI,CAA4F,qBAAqB,EAAC,KAAK,EAAC,OAAO,CAAC,CAAC;IAC1J,CAAC;IAGQ,QAAQ,GAAG,IAA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AAgB,CAAC;AAE/B,cAAc,eAAe,CAAC;AAE9B,cAAc,sBAAsB,CAAC;AAErC,cAAc,sBAAsB,CAAC;AACrC,cAAc,kBAAkB,CAAC;AACjC,cAAc,sBAAsB,CAAC;AAErC,cAAc,eAAe,CAAC;AAE9B,SAAS,oBAAoB,CAAC,KAAa,IAAkB,OAAO,OAAO,KAAK,KAAG,QAAQ,IAAE,iEAAiE,CAAC,IAAI,CAAC,KAAK,CAAC,IAAE,KAAK,CAAC,UAAU,CAAC,GAAG,EAAC,EAAE,CAAC,KAAG,GAAG,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC,CAAA,CAAC;AAEvN,cAAc,oBAAoB,CAAC"}
|
package/dist/learning.d.ts
CHANGED
|
@@ -31,9 +31,9 @@ export interface LearningHistoryResponse {
|
|
|
31
31
|
export declare class LearningTeacherApi {
|
|
32
32
|
private readonly client;
|
|
33
33
|
/** Read the most recent 40 messages in chronological order. Requires chat:read and ownership of the LMS run. */
|
|
34
|
-
history(runId: string, options?: RequestOptions): Promise<import("axios").AxiosResponse<LearningHistoryResponse, any, {}>>;
|
|
34
|
+
history(runId: string, options?: RequestOptions): Promise<import("axios").AxiosResponse<LearningHistoryResponse, any, {}, any>>;
|
|
35
35
|
constructor(client: FaiberClient);
|
|
36
36
|
/** Ask a lesson-bound teacher. Requires chat:ai and active ownership of the LMS run. Context/model are resolved server-side. Reuse the key only for an identical retry. No developer tools are exposed. */
|
|
37
|
-
ask(runId: string, input: LearningQuestionInput, options?: RequestOptions<LearningQuestionInput>): Promise<import("axios").AxiosResponse<LearningQuestionResponse, LearningQuestionInput, {}>>;
|
|
37
|
+
ask(runId: string, input: LearningQuestionInput, options?: RequestOptions<LearningQuestionInput>): Promise<import("axios").AxiosResponse<LearningQuestionResponse, LearningQuestionInput, {}, any>>;
|
|
38
38
|
}
|
|
39
39
|
//# sourceMappingURL=learning.d.ts.map
|