@faiber/faiber-chat 0.24.0 → 1.0.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 +111 -9
- 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/operations.js
CHANGED
|
@@ -1,685 +1,763 @@
|
|
|
1
1
|
import { ServiceApi, urlEncoded } from "@faiber/sdk-core";
|
|
2
2
|
export class ChatOperations extends ServiceApi {
|
|
3
3
|
/**
|
|
4
|
-
*
|
|
4
|
+
* Return Knowledge platform catalog data unchanged; upstream missing data is null. Requires assistant:manage.
|
|
5
5
|
* Calls `GET /api/v1/admin/assistant-context-catalog` through the shared IDP-aware Faiber client.
|
|
6
6
|
* @param options Axios headers, timeout, cancellation signal, credentials, adapter, and other request options.
|
|
7
|
-
* @returns The complete Axios response, including the typed
|
|
8
|
-
* @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: assistant:manage.
|
|
7
|
+
* @returns The complete Axios response, including the typed handler payload, status, and headers.
|
|
8
|
+
* @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: Authenticated IDP session; assistant:manage.
|
|
9
9
|
*/
|
|
10
10
|
routesAssistantContextCatalogGet(options) {
|
|
11
11
|
return this.client.request({ ...options, method: "GET", url: `/api/v1/admin/assistant-context-catalog` });
|
|
12
12
|
}
|
|
13
13
|
/**
|
|
14
|
-
*
|
|
14
|
+
* Return Agentic model catalog unchanged for billing_payer user or project_owner (default project_owner); upstream errors return 502.
|
|
15
15
|
* Calls `GET /api/v1/admin/assistant-models` through the shared IDP-aware Faiber client.
|
|
16
16
|
* @param params Typed query parameters; omitted members retain backend defaults.
|
|
17
17
|
* @param options Axios headers, timeout, cancellation signal, credentials, adapter, and other request options.
|
|
18
|
-
* @returns The complete Axios response, including the typed
|
|
19
|
-
* @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: assistant:manage.
|
|
18
|
+
* @returns The complete Axios response, including the typed handler payload, status, and headers.
|
|
19
|
+
* @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: Authenticated IDP session; assistant:manage.
|
|
20
20
|
*/
|
|
21
21
|
routesAssistantModelsGet(params, options) {
|
|
22
22
|
return this.client.request({ ...options, method: "GET", url: `/api/v1/admin/assistant-models`, params });
|
|
23
23
|
}
|
|
24
24
|
/**
|
|
25
|
-
*
|
|
25
|
+
* Read the tenant-scoped retained configuration intent. Current assistant:manage is required; credentials/grants are never retained.
|
|
26
|
+
* Calls `GET /api/v1/admin/assistant-policy-operations/{id}` through the shared IDP-aware Faiber client.
|
|
27
|
+
* @param id Backend path identifier `id`.
|
|
28
|
+
* @param options Axios headers, timeout, cancellation signal, credentials, adapter, and other request options.
|
|
29
|
+
* @returns The complete Axios response, including the typed handler payload, status, and headers.
|
|
30
|
+
* @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: Authenticated IDP session; assistant:manage.
|
|
31
|
+
*/
|
|
32
|
+
routesGetPolicyOperationGet(id, options) {
|
|
33
|
+
return this.client.request({ ...options, method: "GET", url: `/api/v1/admin/assistant-policy-operations/${encodeURIComponent(id)}` });
|
|
34
|
+
}
|
|
35
|
+
/**
|
|
36
|
+
* 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.
|
|
37
|
+
* Calls `POST /api/v1/admin/assistant-policy-operations/{id}` through the shared IDP-aware Faiber client.
|
|
38
|
+
* @param id Backend path identifier `id`.
|
|
39
|
+
* @param data Typed JSON request body.
|
|
40
|
+
* @param options Axios headers, timeout, cancellation signal, credentials, adapter, and other request options.
|
|
41
|
+
* @returns The complete Axios response, including the typed handler payload, status, and headers.
|
|
42
|
+
* @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: Authenticated IDP session; assistant:manage.
|
|
43
|
+
*/
|
|
44
|
+
routesReconcilePolicyOperationPost(id, data, options) {
|
|
45
|
+
return this.client.request({ ...options, method: "POST", url: `/api/v1/admin/assistant-policy-operations/${encodeURIComponent(id)}`, data: data });
|
|
46
|
+
}
|
|
47
|
+
/**
|
|
48
|
+
* List nondeleted managed assistant records ordered by updated_at; the repository has no organization filter on this list, so caller/gateway authority remains essential.
|
|
26
49
|
* Calls `GET /api/v1/admin/assistants` through the shared IDP-aware Faiber client.
|
|
27
50
|
* @param options Axios headers, timeout, cancellation signal, credentials, adapter, and other request options.
|
|
28
|
-
* @returns The complete Axios response, including the typed
|
|
29
|
-
* @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: assistant:manage.
|
|
51
|
+
* @returns The complete Axios response, including the typed handler payload, status, and headers.
|
|
52
|
+
* @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: Authenticated IDP session; assistant:manage.
|
|
30
53
|
*/
|
|
31
54
|
routesListManagedAssistantsGet(options) {
|
|
32
55
|
return this.client.request({ ...options, method: "GET", url: `/api/v1/admin/assistants` });
|
|
33
56
|
}
|
|
34
57
|
/**
|
|
35
|
-
*
|
|
58
|
+
* 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.
|
|
36
59
|
* Calls `POST /api/v1/admin/assistants` through the shared IDP-aware Faiber client.
|
|
37
60
|
* @param data Typed JSON request body.
|
|
38
61
|
* @param options Axios headers, timeout, cancellation signal, credentials, adapter, and other request options.
|
|
39
|
-
* @returns The complete Axios response, including the typed
|
|
40
|
-
* @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: assistant:manage.
|
|
62
|
+
* @returns The complete Axios response, including the typed handler payload, status, and headers.
|
|
63
|
+
* @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: Authenticated IDP session; assistant:manage.
|
|
41
64
|
*/
|
|
42
65
|
routesCreateAssistantPost(data, options) {
|
|
43
66
|
return this.client.request({ ...options, method: "POST", url: `/api/v1/admin/assistants`, data: data });
|
|
44
67
|
}
|
|
45
68
|
/**
|
|
46
|
-
*
|
|
69
|
+
* Soft-delete a managed assistant after fitness and pending configuration guards; returns 204.
|
|
47
70
|
* Calls `DELETE /api/v1/admin/assistants/{id}` through the shared IDP-aware Faiber client.
|
|
48
71
|
* @param id Backend path identifier `id`.
|
|
49
72
|
* @param options Axios headers, timeout, cancellation signal, credentials, adapter, and other request options.
|
|
50
|
-
* @returns The complete Axios response, including the typed
|
|
51
|
-
* @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: assistant:manage.
|
|
73
|
+
* @returns The complete Axios response, including the typed handler payload, status, and headers.
|
|
74
|
+
* @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: Authenticated IDP session; assistant:manage.
|
|
52
75
|
*/
|
|
53
76
|
routesDeleteAssistantDelete(id, options) {
|
|
54
77
|
return this.client.request({ ...options, method: "DELETE", url: `/api/v1/admin/assistants/${encodeURIComponent(id)}` });
|
|
55
78
|
}
|
|
56
79
|
/**
|
|
57
|
-
*
|
|
80
|
+
* Read managed assistant detail for this organization including expected_knowledge_policy_revision; capture both revisions when opening an edit draft.
|
|
58
81
|
* Calls `GET /api/v1/admin/assistants/{id}` through the shared IDP-aware Faiber client.
|
|
59
82
|
* @param id Backend path identifier `id`.
|
|
60
83
|
* @param options Axios headers, timeout, cancellation signal, credentials, adapter, and other request options.
|
|
61
|
-
* @returns The complete Axios response, including the typed
|
|
62
|
-
* @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: assistant:manage.
|
|
84
|
+
* @returns The complete Axios response, including the typed handler payload, status, and headers.
|
|
85
|
+
* @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: Authenticated IDP session; assistant:manage.
|
|
63
86
|
*/
|
|
64
87
|
routesGetManagedAssistantGet(id, options) {
|
|
65
88
|
return this.client.request({ ...options, method: "GET", url: `/api/v1/admin/assistants/${encodeURIComponent(id)}` });
|
|
66
89
|
}
|
|
67
90
|
/**
|
|
68
|
-
*
|
|
91
|
+
* 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.
|
|
69
92
|
* Calls `PUT /api/v1/admin/assistants/{id}` through the shared IDP-aware Faiber client.
|
|
70
93
|
* @param id Backend path identifier `id`.
|
|
71
94
|
* @param data Typed JSON request body.
|
|
72
95
|
* @param options Axios headers, timeout, cancellation signal, credentials, adapter, and other request options.
|
|
73
|
-
* @returns The complete Axios response, including the typed
|
|
74
|
-
* @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: assistant:manage.
|
|
96
|
+
* @returns The complete Axios response, including the typed handler payload, status, and headers.
|
|
97
|
+
* @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: Authenticated IDP session; assistant:manage.
|
|
75
98
|
*/
|
|
76
99
|
routesUpdateAssistantPut(id, data, options) {
|
|
77
100
|
return this.client.request({ ...options, method: "PUT", url: `/api/v1/admin/assistants/${encodeURIComponent(id)}`, data: data });
|
|
78
101
|
}
|
|
79
102
|
/**
|
|
80
|
-
*
|
|
103
|
+
* 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.
|
|
81
104
|
* Calls `GET /api/v1/admin/customer-action-content` through the shared IDP-aware Faiber client.
|
|
82
105
|
* @param params Typed query parameters; omitted members retain backend defaults.
|
|
83
106
|
* @param options Axios headers, timeout, cancellation signal, credentials, adapter, and other request options.
|
|
84
|
-
* @returns The complete Axios response, including the typed
|
|
85
|
-
* @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: assistant:manage.
|
|
107
|
+
* @returns The complete Axios response, including the typed handler payload, status, and headers.
|
|
108
|
+
* @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: Authenticated IDP session; assistant:manage.
|
|
86
109
|
*/
|
|
87
110
|
routesCustomerActionContentGet(params, options) {
|
|
88
111
|
return this.client.request({ ...options, method: "GET", url: `/api/v1/admin/customer-action-content`, params });
|
|
89
112
|
}
|
|
90
113
|
/**
|
|
91
|
-
*
|
|
114
|
+
* Read configured model catalog unchanged from upstream; image catalog filters vision-capable entries.
|
|
92
115
|
* Calls `GET /api/v1/admin/image-models` through the shared IDP-aware Faiber client.
|
|
93
116
|
* @param options Axios headers, timeout, cancellation signal, credentials, adapter, and other request options.
|
|
94
|
-
* @returns The complete Axios response, including the typed
|
|
95
|
-
* @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: assistant:manage.
|
|
117
|
+
* @returns The complete Axios response, including the typed handler payload, status, and headers.
|
|
118
|
+
* @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: Authenticated IDP session; assistant:manage.
|
|
96
119
|
*/
|
|
97
120
|
routesModelsGetApiV1AdminImageModels(options) {
|
|
98
121
|
return this.client.request({ ...options, method: "GET", url: `/api/v1/admin/image-models` });
|
|
99
122
|
}
|
|
100
123
|
/**
|
|
101
|
-
*
|
|
124
|
+
* Read current organization versioned image settings; requires assistant:manage.
|
|
102
125
|
* Calls `GET /api/v1/admin/image-settings` through the shared IDP-aware Faiber client.
|
|
103
126
|
* @param options Axios headers, timeout, cancellation signal, credentials, adapter, and other request options.
|
|
104
|
-
* @returns The complete Axios response, including the typed
|
|
105
|
-
* @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: assistant:manage.
|
|
127
|
+
* @returns The complete Axios response, including the typed handler payload, status, and headers.
|
|
128
|
+
* @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: Authenticated IDP session; assistant:manage.
|
|
106
129
|
*/
|
|
107
130
|
routesSettingsGetApiV1AdminImageSettings(options) {
|
|
108
131
|
return this.client.request({ ...options, method: "GET", url: `/api/v1/admin/image-settings` });
|
|
109
132
|
}
|
|
110
133
|
/**
|
|
111
|
-
*
|
|
134
|
+
* Save image capture settings with optimistic version (0 creates); enabled models must exist and support vision. Stale revisions return 409.
|
|
112
135
|
* Calls `PUT /api/v1/admin/image-settings` through the shared IDP-aware Faiber client.
|
|
113
136
|
* @param data Typed JSON request body.
|
|
114
137
|
* @param options Axios headers, timeout, cancellation signal, credentials, adapter, and other request options.
|
|
115
|
-
* @returns The complete Axios response, including the typed
|
|
116
|
-
* @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: assistant:manage.
|
|
138
|
+
* @returns The complete Axios response, including the typed handler payload, status, and headers.
|
|
139
|
+
* @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: Authenticated IDP session; assistant:manage.
|
|
117
140
|
*/
|
|
118
141
|
routesSavePut(data, options) {
|
|
119
142
|
return this.client.request({ ...options, method: "PUT", url: `/api/v1/admin/image-settings`, data: data });
|
|
120
143
|
}
|
|
121
144
|
/**
|
|
122
|
-
*
|
|
145
|
+
* Read configured model catalog unchanged from upstream; image catalog filters vision-capable entries.
|
|
123
146
|
* Calls `GET /api/v1/admin/speech-models` through the shared IDP-aware Faiber client.
|
|
124
147
|
* @param options Axios headers, timeout, cancellation signal, credentials, adapter, and other request options.
|
|
125
|
-
* @returns The complete Axios response, including the typed
|
|
126
|
-
* @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: assistant:manage.
|
|
148
|
+
* @returns The complete Axios response, including the typed handler payload, status, and headers.
|
|
149
|
+
* @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: Authenticated IDP session; assistant:manage.
|
|
127
150
|
*/
|
|
128
151
|
routesModelsGetApiV1AdminSpeechModels(options) {
|
|
129
152
|
return this.client.request({ ...options, method: "GET", url: `/api/v1/admin/speech-models` });
|
|
130
153
|
}
|
|
131
154
|
/**
|
|
132
|
-
*
|
|
155
|
+
* Read current organization versioned speech settings; requires assistant:manage.
|
|
133
156
|
* Calls `GET /api/v1/admin/speech-settings` through the shared IDP-aware Faiber client.
|
|
134
157
|
* @param options Axios headers, timeout, cancellation signal, credentials, adapter, and other request options.
|
|
135
|
-
* @returns The complete Axios response, including the typed
|
|
136
|
-
* @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: assistant:manage.
|
|
158
|
+
* @returns The complete Axios response, including the typed handler payload, status, and headers.
|
|
159
|
+
* @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: Authenticated IDP session; assistant:manage.
|
|
137
160
|
*/
|
|
138
161
|
routesSettingsGetApiV1AdminSpeechSettings(options) {
|
|
139
162
|
return this.client.request({ ...options, method: "GET", url: `/api/v1/admin/speech-settings` });
|
|
140
163
|
}
|
|
141
164
|
/**
|
|
142
|
-
*
|
|
165
|
+
* Save speech settings with optimistic version after the fitness settings boundary. Omitted/null language_models preserves overrides; {} clears them. Fitness instances reject generic changes.
|
|
143
166
|
* Calls `PUT /api/v1/admin/speech-settings` through the shared IDP-aware Faiber client.
|
|
144
167
|
* @param data Typed JSON request body.
|
|
145
168
|
* @param options Axios headers, timeout, cancellation signal, credentials, adapter, and other request options.
|
|
146
|
-
* @returns The complete Axios response, including the typed
|
|
147
|
-
* @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: session
|
|
169
|
+
* @returns The complete Axios response, including the typed handler payload, status, and headers.
|
|
170
|
+
* @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: Authenticated IDP session; current downstream authorization as documented.
|
|
148
171
|
*/
|
|
149
172
|
routesPublicSpeechSettingsPut(data, options) {
|
|
150
173
|
return this.client.request({ ...options, method: "PUT", url: `/api/v1/admin/speech-settings`, data: data });
|
|
151
174
|
}
|
|
152
175
|
/**
|
|
153
|
-
*
|
|
176
|
+
* List all stored organization workspace role bindings including disabled rows, ordered by role.
|
|
154
177
|
* Calls `GET /api/v1/admin/workspace-assistants` through the shared IDP-aware Faiber client.
|
|
155
178
|
* @param options Axios headers, timeout, cancellation signal, credentials, adapter, and other request options.
|
|
156
|
-
* @returns The complete Axios response, including the typed
|
|
157
|
-
* @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: assistant:manage.
|
|
179
|
+
* @returns The complete Axios response, including the typed handler payload, status, and headers.
|
|
180
|
+
* @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: Authenticated IDP session; assistant:manage.
|
|
158
181
|
*/
|
|
159
182
|
workspaceManagedRoles(options) {
|
|
160
183
|
return this.client.request({ ...options, method: "GET", url: `/api/v1/admin/workspace-assistants` });
|
|
161
184
|
}
|
|
162
185
|
/**
|
|
163
|
-
*
|
|
186
|
+
* Bind action/chat role using its matching 2done-action/2done-chat Knowledge slug. Enabling validates the published contract; expected_version 0 creates and stale revisions conflict.
|
|
164
187
|
* Calls `PUT /api/v1/admin/workspace-assistants/{role}` through the shared IDP-aware Faiber client.
|
|
165
188
|
* @param role Backend path identifier `role`.
|
|
166
189
|
* @param data Typed JSON request body.
|
|
167
190
|
* @param options Axios headers, timeout, cancellation signal, credentials, adapter, and other request options.
|
|
168
|
-
* @returns The complete Axios response, including the typed
|
|
169
|
-
* @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: assistant:manage.
|
|
191
|
+
* @returns The complete Axios response, including the typed handler payload, status, and headers.
|
|
192
|
+
* @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: Authenticated IDP session; assistant:manage.
|
|
170
193
|
*/
|
|
171
194
|
workspaceBind(role, data, options) {
|
|
172
195
|
return this.client.request({ ...options, method: "PUT", url: `/api/v1/admin/workspace-assistants/${encodeURIComponent(role)}`, data: data });
|
|
173
196
|
}
|
|
174
197
|
/**
|
|
175
|
-
*
|
|
198
|
+
* List active nondeleted assistant catalog items (id, name, status) ordered by update time; this repository list has no organization predicate.
|
|
176
199
|
* Calls `GET /api/v1/assistants` through the shared IDP-aware Faiber client.
|
|
177
200
|
* @param options Axios headers, timeout, cancellation signal, credentials, adapter, and other request options.
|
|
178
|
-
* @returns The complete Axios response, including the typed
|
|
179
|
-
* @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: assistant:read.
|
|
201
|
+
* @returns The complete Axios response, including the typed handler payload, status, and headers.
|
|
202
|
+
* @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: Authenticated IDP session; assistant:read.
|
|
180
203
|
*/
|
|
181
204
|
routesListAssistantsGet(options) {
|
|
182
205
|
return this.client.request({ ...options, method: "GET", url: `/api/v1/assistants` });
|
|
183
206
|
}
|
|
184
207
|
/**
|
|
185
|
-
*
|
|
208
|
+
* Read one active nondeleted assistant catalog item (id, name, status); this lookup has no organization predicate.
|
|
186
209
|
* Calls `GET /api/v1/assistants/{id}` through the shared IDP-aware Faiber client.
|
|
187
210
|
* @param id Backend path identifier `id`.
|
|
188
211
|
* @param options Axios headers, timeout, cancellation signal, credentials, adapter, and other request options.
|
|
189
|
-
* @returns The complete Axios response, including the typed
|
|
190
|
-
* @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: assistant:read.
|
|
212
|
+
* @returns The complete Axios response, including the typed handler payload, status, and headers.
|
|
213
|
+
* @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: Authenticated IDP session; assistant:read.
|
|
191
214
|
*/
|
|
192
215
|
routesGetAssistantGet(id, options) {
|
|
193
216
|
return this.client.request({ ...options, method: "GET", url: `/api/v1/assistants/${encodeURIComponent(id)}` });
|
|
194
217
|
}
|
|
195
218
|
/**
|
|
196
|
-
*
|
|
219
|
+
* 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.
|
|
197
220
|
* Calls `POST /api/v1/attachments/{id}/complete` through the shared IDP-aware Faiber client.
|
|
198
221
|
* @param id Backend path identifier `id`.
|
|
199
222
|
* @param data Typed binary byte stream.
|
|
200
223
|
* @param options Axios headers, timeout, cancellation signal, credentials, adapter, and other request options.
|
|
201
|
-
* @returns The complete Axios response, including the typed
|
|
202
|
-
* @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: chat:write.
|
|
224
|
+
* @returns The complete Axios response, including the typed handler payload, status, and headers.
|
|
225
|
+
* @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: Authenticated IDP session; chat:write.
|
|
203
226
|
*/
|
|
204
227
|
routesCompleteAttachmentPost(id, options, data) {
|
|
205
228
|
return this.client.request({ ...options, method: "POST", url: `/api/v1/attachments/${encodeURIComponent(id)}/complete`, ...(data === undefined ? {} : { data, headers: { ...options?.headers, "Content-Type": "application/octet-stream" } }) });
|
|
206
229
|
}
|
|
207
230
|
/**
|
|
208
|
-
*
|
|
231
|
+
* Download private attachment bytes with original media type and no-store headers after conversation access checks; storage failures return 502.
|
|
209
232
|
* Calls `GET /api/v1/attachments/{id}/content` through the shared IDP-aware Faiber client.
|
|
210
233
|
* @param id Backend path identifier `id`.
|
|
211
234
|
* @param options Axios headers, timeout, cancellation signal, credentials, adapter, and other request options.
|
|
212
|
-
* @returns The complete Axios response, including the typed
|
|
213
|
-
* @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: chat:read.
|
|
235
|
+
* @returns The complete Axios response, including the typed handler payload, status, and headers.
|
|
236
|
+
* @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: Authenticated IDP session; chat:read.
|
|
214
237
|
*/
|
|
215
238
|
routesDownloadAttachmentGet(id, options) {
|
|
216
239
|
return this.client.request({ ...options, method: "GET", url: `/api/v1/attachments/${encodeURIComponent(id)}/content`, responseType: "arraybuffer" });
|
|
217
240
|
}
|
|
218
241
|
/**
|
|
219
|
-
*
|
|
242
|
+
* List current active memberships in nondeleted, nonquarantined organization conversations ordered by last message; direct rooms must retain exactly their private pair.
|
|
220
243
|
* Calls `GET /api/v1/conversations` through the shared IDP-aware Faiber client.
|
|
221
244
|
* @param options Axios headers, timeout, cancellation signal, credentials, adapter, and other request options.
|
|
222
|
-
* @returns The complete Axios response, including the typed
|
|
223
|
-
* @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: chat:read.
|
|
245
|
+
* @returns The complete Axios response, including the typed handler payload, status, and headers.
|
|
246
|
+
* @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: Authenticated IDP session; chat:read.
|
|
224
247
|
*/
|
|
225
248
|
routesListGet(options) {
|
|
226
249
|
return this.client.request({ ...options, method: "GET", url: `/api/v1/conversations` });
|
|
227
250
|
}
|
|
228
251
|
/**
|
|
229
|
-
*
|
|
252
|
+
* 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.
|
|
230
253
|
* Calls `POST /api/v1/conversations` through the shared IDP-aware Faiber client.
|
|
231
254
|
* @param data Typed JSON request body.
|
|
232
255
|
* @param options Axios headers, timeout, cancellation signal, credentials, adapter, and other request options.
|
|
233
|
-
* @returns The complete Axios response, including the typed
|
|
234
|
-
* @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: chat:write.
|
|
256
|
+
* @returns The complete Axios response, including the typed handler payload, status, and headers.
|
|
257
|
+
* @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: Authenticated IDP session; chat:write.
|
|
235
258
|
*/
|
|
236
259
|
routesCreatePost(data, options) {
|
|
237
260
|
return this.client.request({ ...options, method: "POST", url: `/api/v1/conversations`, data: data });
|
|
238
261
|
}
|
|
239
262
|
/**
|
|
240
|
-
*
|
|
263
|
+
* Archive the accessible conversation; requires the owner and returns 204 with no body.
|
|
241
264
|
* Calls `DELETE /api/v1/conversations/{id}` through the shared IDP-aware Faiber client.
|
|
242
265
|
* @param id Backend path identifier `id`.
|
|
243
266
|
* @param options Axios headers, timeout, cancellation signal, credentials, adapter, and other request options.
|
|
244
|
-
* @returns The complete Axios response, including the typed
|
|
245
|
-
* @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: chat:delete.
|
|
267
|
+
* @returns The complete Axios response, including the typed handler payload, status, and headers.
|
|
268
|
+
* @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: Authenticated IDP session; chat:delete.
|
|
246
269
|
*/
|
|
247
270
|
routesArchiveDelete(id, options) {
|
|
248
271
|
return this.client.request({ ...options, method: "DELETE", url: `/api/v1/conversations/${encodeURIComponent(id)}` });
|
|
249
272
|
}
|
|
250
273
|
/**
|
|
251
|
-
*
|
|
274
|
+
* Read one accessible conversation; membership, organization, deleted/quarantined state and private direct-room rules are rechecked.
|
|
252
275
|
* Calls `GET /api/v1/conversations/{id}` through the shared IDP-aware Faiber client.
|
|
253
276
|
* @param id Backend path identifier `id`.
|
|
254
277
|
* @param options Axios headers, timeout, cancellation signal, credentials, adapter, and other request options.
|
|
255
|
-
* @returns The complete Axios response, including the typed
|
|
256
|
-
* @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: chat:read.
|
|
278
|
+
* @returns The complete Axios response, including the typed handler payload, status, and headers.
|
|
279
|
+
* @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: Authenticated IDP session; chat:read.
|
|
257
280
|
*/
|
|
258
281
|
routesGetOneGet(id, options) {
|
|
259
282
|
return this.client.request({ ...options, method: "GET", url: `/api/v1/conversations/${encodeURIComponent(id)}` });
|
|
260
283
|
}
|
|
261
284
|
/**
|
|
262
|
-
*
|
|
285
|
+
* Update conversation fields with optional expected_version; null preserves optional values. Stale versions conflict. Conversation access and write role are checked.
|
|
263
286
|
* Calls `PUT /api/v1/conversations/{id}` through the shared IDP-aware Faiber client.
|
|
264
287
|
* @param id Backend path identifier `id`.
|
|
265
288
|
* @param data Typed JSON request body.
|
|
266
289
|
* @param options Axios headers, timeout, cancellation signal, credentials, adapter, and other request options.
|
|
267
|
-
* @returns The complete Axios response, including the typed
|
|
268
|
-
* @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: chat:write.
|
|
290
|
+
* @returns The complete Axios response, including the typed handler payload, status, and headers.
|
|
291
|
+
* @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: Authenticated IDP session; chat:write.
|
|
269
292
|
*/
|
|
270
293
|
routesUpdatePut(id, data, options) {
|
|
271
294
|
return this.client.request({ ...options, method: "PUT", url: `/api/v1/conversations/${encodeURIComponent(id)}`, data: data });
|
|
272
295
|
}
|
|
273
296
|
/**
|
|
274
|
-
*
|
|
297
|
+
* 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.
|
|
275
298
|
* Calls `POST /api/v1/conversations/{id}/ai/messages` through the shared IDP-aware Faiber client.
|
|
276
299
|
* @param id Backend path identifier `id`.
|
|
277
300
|
* @param data Typed JSON request body.
|
|
278
301
|
* @param options Axios headers, timeout, cancellation signal, credentials, adapter, and other request options.
|
|
279
|
-
* @returns The complete Axios response, including the typed
|
|
280
|
-
* @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: chat:ai.
|
|
302
|
+
* @returns The complete Axios response, including the typed handler payload, status, and headers.
|
|
303
|
+
* @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: Authenticated IDP session; chat:ai.
|
|
281
304
|
*/
|
|
282
305
|
routesAiSendPost(id, data, options) {
|
|
283
306
|
return this.client.request({ ...options, method: "POST", url: `/api/v1/conversations/${encodeURIComponent(id)}/ai/messages`, data: data });
|
|
284
307
|
}
|
|
285
308
|
/**
|
|
286
|
-
*
|
|
309
|
+
* List only public pending runtime-input projection keys for the current Agentic thread; arbitrary schema/ui values are preserved and missing upstream keys become null.
|
|
287
310
|
* Calls `GET /api/v1/conversations/{id}/ai/runtime-inputs` through the shared IDP-aware Faiber client.
|
|
288
311
|
* @param id Backend path identifier `id`.
|
|
289
312
|
* @param options Axios headers, timeout, cancellation signal, credentials, adapter, and other request options.
|
|
290
|
-
* @returns The complete Axios response, including the typed
|
|
291
|
-
* @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: chat:ai.
|
|
313
|
+
* @returns The complete Axios response, including the typed handler payload, status, and headers.
|
|
314
|
+
* @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: Authenticated IDP session; chat:ai.
|
|
292
315
|
*/
|
|
293
316
|
routesAiRuntimeInputsGet(id, options) {
|
|
294
317
|
return this.client.request({ ...options, method: "GET", url: `/api/v1/conversations/${encodeURIComponent(id)}/ai/runtime-inputs` });
|
|
295
318
|
}
|
|
296
319
|
/**
|
|
297
|
-
*
|
|
320
|
+
* Complete an input currently pending on this accessible conversation thread; missing input returns 404 and success returns data:{ok:true}.
|
|
298
321
|
* Calls `POST /api/v1/conversations/{id}/ai/runtime-inputs/{input_id}/complete` through the shared IDP-aware Faiber client.
|
|
299
322
|
* @param id Backend path identifier `id`.
|
|
300
323
|
* @param inputId Backend path identifier `input_id`.
|
|
301
324
|
* @param data Typed JSON request body.
|
|
302
325
|
* @param options Axios headers, timeout, cancellation signal, credentials, adapter, and other request options.
|
|
303
|
-
* @returns The complete Axios response, including the typed
|
|
304
|
-
* @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: chat:ai.
|
|
326
|
+
* @returns The complete Axios response, including the typed handler payload, status, and headers.
|
|
327
|
+
* @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: Authenticated IDP session; chat:ai.
|
|
305
328
|
*/
|
|
306
329
|
routesAiCompleteRuntimeInputPost(id, inputId, data, options) {
|
|
307
330
|
return this.client.request({ ...options, method: "POST", url: `/api/v1/conversations/${encodeURIComponent(id)}/ai/runtime-inputs/${encodeURIComponent(inputId)}/complete`, data: data });
|
|
308
331
|
}
|
|
309
332
|
/**
|
|
310
|
-
*
|
|
333
|
+
* 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.
|
|
311
334
|
* Calls `POST /api/v1/conversations/{id}/attachments` through the shared IDP-aware Faiber client.
|
|
312
335
|
* @param id Backend path identifier `id`.
|
|
313
336
|
* @param data Typed JSON request body.
|
|
314
337
|
* @param options Axios headers, timeout, cancellation signal, credentials, adapter, and other request options.
|
|
315
|
-
* @returns The complete Axios response, including the typed
|
|
316
|
-
* @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: chat:write.
|
|
338
|
+
* @returns The complete Axios response, including the typed handler payload, status, and headers.
|
|
339
|
+
* @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: Authenticated IDP session; chat:write.
|
|
317
340
|
*/
|
|
318
341
|
routesCreateAttachmentPost(id, data, options) {
|
|
319
342
|
return this.client.request({ ...options, method: "POST", url: `/api/v1/conversations/${encodeURIComponent(id)}/attachments`, data: data });
|
|
320
343
|
}
|
|
321
344
|
/**
|
|
322
|
-
*
|
|
345
|
+
* Subscribe to conversation SSE after access checks; stream includes named events and 15-second keep-alives. Retain authenticated transport and abort on exit.
|
|
323
346
|
* Calls `GET /api/v1/conversations/{id}/events` through the shared IDP-aware Faiber client.
|
|
324
347
|
* @param id Backend path identifier `id`.
|
|
325
348
|
* @param options Axios headers, timeout, cancellation signal, credentials, adapter, and other request options.
|
|
326
|
-
* @returns The complete Axios response, including the typed
|
|
327
|
-
* @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: chat:read.
|
|
349
|
+
* @returns The complete Axios response, including the typed handler payload, status, and headers.
|
|
350
|
+
* @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: Authenticated IDP session; chat:read.
|
|
328
351
|
*/
|
|
329
352
|
routesEventsGet(id, options) {
|
|
330
|
-
return this.client.request({ ...options, method: "GET", url: `/api/v1/conversations/${encodeURIComponent(id)}/events
|
|
353
|
+
return this.client.request({ ...options, method: "GET", url: `/api/v1/conversations/${encodeURIComponent(id)}/events` });
|
|
331
354
|
}
|
|
332
355
|
/**
|
|
333
|
-
*
|
|
356
|
+
* List active members of an accessible conversation ordered by joined_at; includes state, notification settings and read sequence.
|
|
334
357
|
* Calls `GET /api/v1/conversations/{id}/members` through the shared IDP-aware Faiber client.
|
|
335
358
|
* @param id Backend path identifier `id`.
|
|
336
359
|
* @param options Axios headers, timeout, cancellation signal, credentials, adapter, and other request options.
|
|
337
|
-
* @returns The complete Axios response, including the typed
|
|
338
|
-
* @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: chat:read.
|
|
360
|
+
* @returns The complete Axios response, including the typed handler payload, status, and headers.
|
|
361
|
+
* @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: Authenticated IDP session; chat:read.
|
|
339
362
|
*/
|
|
340
363
|
routesMembersGet(id, options) {
|
|
341
364
|
return this.client.request({ ...options, method: "GET", url: `/api/v1/conversations/${encodeURIComponent(id)}/members` });
|
|
342
365
|
}
|
|
343
366
|
/**
|
|
344
|
-
*
|
|
367
|
+
* Add a member (201); owner/admin role and contact/direct-room restrictions apply.
|
|
345
368
|
* Calls `POST /api/v1/conversations/{id}/members` through the shared IDP-aware Faiber client.
|
|
346
369
|
* @param id Backend path identifier `id`.
|
|
347
370
|
* @param data Typed JSON request body.
|
|
348
371
|
* @param options Axios headers, timeout, cancellation signal, credentials, adapter, and other request options.
|
|
349
|
-
* @returns The complete Axios response, including the typed
|
|
350
|
-
* @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: chat:manage.
|
|
372
|
+
* @returns The complete Axios response, including the typed handler payload, status, and headers.
|
|
373
|
+
* @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: Authenticated IDP session; chat:manage.
|
|
351
374
|
*/
|
|
352
375
|
routesAddMemberPost(id, data, options) {
|
|
353
376
|
return this.client.request({ ...options, method: "POST", url: `/api/v1/conversations/${encodeURIComponent(id)}/members`, data: data });
|
|
354
377
|
}
|
|
355
378
|
/**
|
|
356
|
-
*
|
|
379
|
+
* 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.
|
|
357
380
|
* Calls `DELETE /api/v1/conversations/{id}/members/{user_id}` through the shared IDP-aware Faiber client.
|
|
358
381
|
* @param id Backend path identifier `id`.
|
|
359
382
|
* @param userId Backend path identifier `user_id`.
|
|
360
383
|
* @param options Axios headers, timeout, cancellation signal, credentials, adapter, and other request options.
|
|
361
|
-
* @returns The complete Axios response, including the typed
|
|
362
|
-
* @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: chat:manage.
|
|
384
|
+
* @returns The complete Axios response, including the typed handler payload, status, and headers.
|
|
385
|
+
* @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: Authenticated IDP session; chat:manage.
|
|
363
386
|
*/
|
|
364
387
|
routesRemoveMemberDelete(id, userId, options) {
|
|
365
388
|
return this.client.request({ ...options, method: "DELETE", url: `/api/v1/conversations/${encodeURIComponent(id)}/members/${encodeURIComponent(userId)}` });
|
|
366
389
|
}
|
|
367
390
|
/**
|
|
368
|
-
*
|
|
391
|
+
* 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.
|
|
369
392
|
* Calls `GET /api/v1/conversations/{id}/messages` through the shared IDP-aware Faiber client.
|
|
370
393
|
* @param id Backend path identifier `id`.
|
|
371
394
|
* @param params Typed query parameters; omitted members retain backend defaults.
|
|
372
395
|
* @param options Axios headers, timeout, cancellation signal, credentials, adapter, and other request options.
|
|
373
|
-
* @returns The complete Axios response, including the typed
|
|
374
|
-
* @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: chat:read.
|
|
396
|
+
* @returns The complete Axios response, including the typed handler payload, status, and headers.
|
|
397
|
+
* @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: Authenticated IDP session; chat:read.
|
|
375
398
|
*/
|
|
376
399
|
routesMessagesGet(id, params, options) {
|
|
377
400
|
return this.client.request({ ...options, method: "GET", url: `/api/v1/conversations/${encodeURIComponent(id)}/messages`, params });
|
|
378
401
|
}
|
|
379
402
|
/**
|
|
380
|
-
*
|
|
403
|
+
* 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.
|
|
381
404
|
* Calls `POST /api/v1/conversations/{id}/messages` through the shared IDP-aware Faiber client.
|
|
382
405
|
* @param id Backend path identifier `id`.
|
|
383
406
|
* @param data Typed JSON request body.
|
|
384
407
|
* @param options Axios headers, timeout, cancellation signal, credentials, adapter, and other request options.
|
|
385
|
-
* @returns The complete Axios response, including the typed
|
|
386
|
-
* @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: chat:write.
|
|
408
|
+
* @returns The complete Axios response, including the typed handler payload, status, and headers.
|
|
409
|
+
* @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: Authenticated IDP session; chat:write.
|
|
387
410
|
*/
|
|
388
411
|
routesSendPost(id, data, options) {
|
|
389
412
|
return this.client.request({ ...options, method: "POST", url: `/api/v1/conversations/${encodeURIComponent(id)}/messages`, data: data });
|
|
390
413
|
}
|
|
391
414
|
/**
|
|
392
|
-
*
|
|
415
|
+
* 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.
|
|
393
416
|
* Calls `POST /api/v1/conversations/{id}/read` through the shared IDP-aware Faiber client.
|
|
394
417
|
* @param id Backend path identifier `id`.
|
|
395
418
|
* @param data Typed JSON request body.
|
|
396
419
|
* @param options Axios headers, timeout, cancellation signal, credentials, adapter, and other request options.
|
|
397
|
-
* @returns The complete Axios response, including the typed
|
|
398
|
-
* @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: chat:write.
|
|
420
|
+
* @returns The complete Axios response, including the typed handler payload, status, and headers.
|
|
421
|
+
* @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: Authenticated IDP session; chat:write.
|
|
399
422
|
*/
|
|
400
423
|
routesReadPost(id, data, options) {
|
|
401
424
|
return this.client.request({ ...options, method: "POST", url: `/api/v1/conversations/${encodeURIComponent(id)}/read`, data: data });
|
|
402
425
|
}
|
|
403
426
|
/**
|
|
404
|
-
*
|
|
427
|
+
* Authorize an accessible conversation private channel with a URL-encoded socket_id/channel_name form; mismatched channel returns 403 and success is raw {auth:string}.
|
|
405
428
|
* Calls `POST /api/v1/conversations/{id}/realtime-auth` through the shared IDP-aware Faiber client.
|
|
406
429
|
* @param id Backend path identifier `id`.
|
|
407
430
|
* @param data Typed URL-encoded form.
|
|
408
431
|
* @param options Axios headers, timeout, cancellation signal, credentials, adapter, and other request options.
|
|
409
|
-
* @returns The complete Axios response, including the typed
|
|
410
|
-
* @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: chat:read.
|
|
432
|
+
* @returns The complete Axios response, including the typed handler payload, status, and headers.
|
|
433
|
+
* @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: Authenticated IDP session; chat:read.
|
|
411
434
|
*/
|
|
412
435
|
routesRealtimeAuthPost(id, data, options) {
|
|
413
436
|
return this.client.request({ ...options, method: "POST", url: `/api/v1/conversations/${encodeURIComponent(id)}/realtime-auth`, data: urlEncoded(data), headers: { ...options?.headers, "Content-Type": "application/x-www-form-urlencoded" } });
|
|
414
437
|
}
|
|
415
438
|
/**
|
|
416
|
-
*
|
|
439
|
+
* Read the accessible conversation realtime ws_url/app_key/channel; unavailable configuration returns 502.
|
|
417
440
|
* Calls `GET /api/v1/conversations/{id}/realtime-config` through the shared IDP-aware Faiber client.
|
|
418
441
|
* @param id Backend path identifier `id`.
|
|
419
442
|
* @param options Axios headers, timeout, cancellation signal, credentials, adapter, and other request options.
|
|
420
|
-
* @returns The complete Axios response, including the typed
|
|
421
|
-
* @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: chat:read.
|
|
443
|
+
* @returns The complete Axios response, including the typed handler payload, status, and headers.
|
|
444
|
+
* @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: Authenticated IDP session; chat:read.
|
|
422
445
|
*/
|
|
423
446
|
routesRealtimeConfigGet(id, options) {
|
|
424
447
|
return this.client.request({ ...options, method: "GET", url: `/api/v1/conversations/${encodeURIComponent(id)}/realtime-config` });
|
|
425
448
|
}
|
|
426
449
|
/**
|
|
427
|
-
*
|
|
450
|
+
* Server-only fitness plan generation using the deployment Bearer secret and deny-unknown-fields input. Returns parsed model JSON, which is not locally plan-schema validated; 180-second model timeout.
|
|
428
451
|
* Calls `POST /api/v1/fitness/generate` through the shared IDP-aware Faiber client.
|
|
429
452
|
* @param data Typed JSON request body.
|
|
430
453
|
* @param options Axios headers, timeout, cancellation signal, credentials, adapter, and other request options.
|
|
431
|
-
* @returns The complete Axios response, including the typed
|
|
432
|
-
* @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission:
|
|
454
|
+
* @returns The complete Axios response, including the typed handler payload, status, and headers.
|
|
455
|
+
* @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: Server-only FITNESS_PROFILE_SERVICE_TOKEN as Bearer; never expose in browsers.
|
|
433
456
|
*/
|
|
434
457
|
fitnessGeneratePost(data, options) {
|
|
435
458
|
return this.client.request({ ...options, method: "POST", url: `/api/v1/fitness/generate`, data: data });
|
|
436
459
|
}
|
|
437
460
|
/**
|
|
438
|
-
*
|
|
461
|
+
* Extract only allowed intake keys for a current enabled fitness member. text is at most 12000 bytes; locale is en/fa. Model-produced values are not type-coerced by this backend.
|
|
439
462
|
* Calls `POST /api/v1/fitness/intake-extract` through the shared IDP-aware Faiber client.
|
|
440
463
|
* @param data Typed JSON request body.
|
|
441
464
|
* @param options Axios headers, timeout, cancellation signal, credentials, adapter, and other request options.
|
|
442
|
-
* @returns The complete Axios response, including the typed
|
|
443
|
-
* @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission:
|
|
465
|
+
* @returns The complete Axios response, including the typed handler payload, status, and headers.
|
|
466
|
+
* @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: Authenticated current enabled fitness member, validated by Profile.
|
|
444
467
|
*/
|
|
445
468
|
routesExtractIntakePost(data, options) {
|
|
446
469
|
return this.client.request({ ...options, method: "POST", url: `/api/v1/fitness/intake-extract`, data: data });
|
|
447
470
|
}
|
|
448
471
|
/**
|
|
449
|
-
*
|
|
472
|
+
* Read fitness-authorized LLM and speech catalogs using current upstream fitness settings access.
|
|
450
473
|
* Calls `GET /api/v1/fitness/models` through the shared IDP-aware Faiber client.
|
|
451
474
|
* @param options Axios headers, timeout, cancellation signal, credentials, adapter, and other request options.
|
|
452
|
-
* @returns The complete Axios response, including the typed
|
|
453
|
-
* @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission:
|
|
475
|
+
* @returns The complete Axios response, including the typed handler payload, status, and headers.
|
|
476
|
+
* @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: Authenticated current Profile fitness settings access.
|
|
454
477
|
*/
|
|
455
478
|
routesModelsGetApiV1FitnessModels(options) {
|
|
456
479
|
return this.client.request({ ...options, method: "GET", url: `/api/v1/fitness/models` });
|
|
457
480
|
}
|
|
458
481
|
/**
|
|
459
|
-
*
|
|
482
|
+
* Validate requested fitness model references using the server-only deployment Bearer credential; returns the three validated references without persisting a settings row.
|
|
460
483
|
* Calls `PUT /api/v1/fitness/settings` through the shared IDP-aware Faiber client.
|
|
461
484
|
* @param data Typed JSON request body.
|
|
462
485
|
* @param options Axios headers, timeout, cancellation signal, credentials, adapter, and other request options.
|
|
463
|
-
* @returns The complete Axios response, including the typed
|
|
464
|
-
* @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission:
|
|
486
|
+
* @returns The complete Axios response, including the typed handler payload, status, and headers.
|
|
487
|
+
* @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: Server-only FITNESS_PROFILE_SERVICE_TOKEN as Bearer; never expose in browsers.
|
|
465
488
|
*/
|
|
466
489
|
fitnessSaveSettingsPut(data, options) {
|
|
467
490
|
return this.client.request({ ...options, method: "PUT", url: `/api/v1/fitness/settings`, data: data });
|
|
468
491
|
}
|
|
469
492
|
/**
|
|
470
|
-
*
|
|
493
|
+
* Read image capture enabled state; assistant:read OR assistant:manage is accepted.
|
|
471
494
|
* Calls `GET /api/v1/image-status` through the shared IDP-aware Faiber client.
|
|
472
495
|
* @param options Axios headers, timeout, cancellation signal, credentials, adapter, and other request options.
|
|
473
|
-
* @returns The complete Axios response, including the typed
|
|
474
|
-
* @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: assistant:read
|
|
496
|
+
* @returns The complete Axios response, including the typed handler payload, status, and headers.
|
|
497
|
+
* @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: assistant:read OR assistant:manage.
|
|
475
498
|
*/
|
|
476
499
|
routesStatusGetApiV1ImageStatus(options) {
|
|
477
500
|
return this.client.request({ ...options, method: "GET", url: `/api/v1/image-status` });
|
|
478
501
|
}
|
|
479
502
|
/**
|
|
480
|
-
*
|
|
503
|
+
* Server-only LMS notification lookup using x-infera-lms-token; returns identifiers and active recipient read state without message content. Lookup is global by message UUID.
|
|
504
|
+
* Calls `GET /api/v1/integrations/lms/messages/{id}/notification-context` through the shared IDP-aware Faiber client.
|
|
505
|
+
* @param id Backend path identifier `id`.
|
|
506
|
+
* @param options Axios headers, timeout, cancellation signal, credentials, adapter, and other request options.
|
|
507
|
+
* @returns The complete Axios response, including the typed handler payload, status, and headers.
|
|
508
|
+
* @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: Server-only x-infera-lms-token matching CHAT_LMS_SERVICE_TOKEN; never expose in browsers.
|
|
509
|
+
*/
|
|
510
|
+
humanChatNotificationContextGet(id, options) {
|
|
511
|
+
return this.client.request({ ...options, method: "GET", url: `/api/v1/integrations/lms/messages/${encodeURIComponent(id)}/notification-context` });
|
|
512
|
+
}
|
|
513
|
+
/**
|
|
514
|
+
* Server-only Task media import with x-task-import-token and stable UUID; changed source conflicts. OCR returns normalized text/tables/warnings; audio adds duration_ms and is limited to 60 seconds.
|
|
481
515
|
* Calls `POST /api/v1/internal/memory/media` through the shared IDP-aware Faiber client.
|
|
482
516
|
* @param data Typed JSON request body.
|
|
483
517
|
* @param options Axios headers, timeout, cancellation signal, credentials, adapter, and other request options.
|
|
484
|
-
* @returns The complete Axios response, including the typed
|
|
485
|
-
* @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission:
|
|
518
|
+
* @returns The complete Axios response, including the typed handler payload, status, and headers.
|
|
519
|
+
* @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: Server-only x-task-import-token matching CHAT_TASK_IMPORT_TOKEN; never expose in browsers.
|
|
486
520
|
*/
|
|
487
521
|
memoryImportExtractPost(data, options) {
|
|
488
522
|
return this.client.request({ ...options, method: "POST", url: `/api/v1/internal/memory/media`, data: data });
|
|
489
523
|
}
|
|
490
524
|
/**
|
|
491
|
-
*
|
|
525
|
+
* Server-only Task source import with x-task-import-token, non-nil user/organization UUIDs and URL up to 4096 bytes. Forwards upstream data unchanged with a bounded 12.5 MB response.
|
|
492
526
|
* Calls `POST /api/v1/internal/memory/source` through the shared IDP-aware Faiber client.
|
|
493
527
|
* @param data Typed JSON request body.
|
|
494
528
|
* @param options Axios headers, timeout, cancellation signal, credentials, adapter, and other request options.
|
|
495
|
-
* @returns The complete Axios response, including the typed
|
|
496
|
-
* @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission:
|
|
529
|
+
* @returns The complete Axios response, including the typed handler payload, status, and headers.
|
|
530
|
+
* @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: Server-only x-task-import-token matching CHAT_TASK_IMPORT_TOKEN; never expose in browsers.
|
|
497
531
|
*/
|
|
498
532
|
memoryImportSourcePost(data, options) {
|
|
499
533
|
return this.client.request({ ...options, method: "POST", url: `/api/v1/internal/memory/source`, data: data });
|
|
500
534
|
}
|
|
501
535
|
/**
|
|
502
|
-
*
|
|
536
|
+
* Read at most 40 current learner messages in chronological order after current LMS teacher-context authorization; returns id, role and extracted text only.
|
|
503
537
|
* Calls `GET /api/v1/learning/runs/{id}/messages` through the shared IDP-aware Faiber client.
|
|
504
538
|
* @param id Backend path identifier `id`.
|
|
505
539
|
* @param options Axios headers, timeout, cancellation signal, credentials, adapter, and other request options.
|
|
506
|
-
* @returns The complete Axios response, including the typed
|
|
507
|
-
* @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: chat:read.
|
|
540
|
+
* @returns The complete Axios response, including the typed handler payload, status, and headers.
|
|
541
|
+
* @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: Authenticated IDP session; chat:read.
|
|
508
542
|
*/
|
|
509
543
|
routesHistoryGet(id, options) {
|
|
510
544
|
return this.client.request({ ...options, method: "GET", url: `/api/v1/learning/runs/${encodeURIComponent(id)}/messages` });
|
|
511
545
|
}
|
|
512
546
|
/**
|
|
513
|
-
*
|
|
547
|
+
* Ask the LMS-run teacher using a UUID idempotency_key. Current chat:ai and run ownership/access are checked; identical retries reuse the presentation and daily quota conflicts return 409.
|
|
514
548
|
* Calls `POST /api/v1/learning/runs/{id}/questions` through the shared IDP-aware Faiber client.
|
|
515
549
|
* @param id Backend path identifier `id`.
|
|
516
550
|
* @param data Typed JSON request body.
|
|
517
551
|
* @param options Axios headers, timeout, cancellation signal, credentials, adapter, and other request options.
|
|
518
|
-
* @returns The complete Axios response, including the typed
|
|
519
|
-
* @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: chat:ai.
|
|
552
|
+
* @returns The complete Axios response, including the typed handler payload, status, and headers.
|
|
553
|
+
* @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: Authenticated IDP session; chat:ai.
|
|
520
554
|
*/
|
|
521
555
|
routesAskPost(id, data, options) {
|
|
522
556
|
return this.client.request({ ...options, method: "POST", url: `/api/v1/learning/runs/${encodeURIComponent(id)}/questions`, data: data });
|
|
523
557
|
}
|
|
524
558
|
/**
|
|
525
|
-
*
|
|
559
|
+
* Page current organization active-member summaries by ascending UUID, with incoming undeleted sent user-message unread counts. limit defaults 50 and clamps 1..100; next_cursor is null when exhausted.
|
|
526
560
|
* Calls `GET /api/v1/me/conversations` through the shared IDP-aware Faiber client.
|
|
527
561
|
* @param params Typed query parameters; omitted members retain backend defaults.
|
|
528
562
|
* @param options Axios headers, timeout, cancellation signal, credentials, adapter, and other request options.
|
|
529
|
-
* @returns The complete Axios response, including the typed
|
|
530
|
-
* @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: chat:read.
|
|
563
|
+
* @returns The complete Axios response, including the typed handler payload, status, and headers.
|
|
564
|
+
* @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: Authenticated IDP session; chat:read.
|
|
531
565
|
*/
|
|
532
566
|
humanChatSummariesGet(params, options) {
|
|
533
567
|
return this.client.request({ ...options, method: "GET", url: `/api/v1/me/conversations`, params });
|
|
534
568
|
}
|
|
535
569
|
/**
|
|
536
|
-
*
|
|
570
|
+
* Read durable current-user invalidations. Missing cursor initializes at head; invalid cursor returns 400 and requires resynchronization. At most 100 events; wait_seconds defaults and caps at 25.
|
|
537
571
|
* Calls `GET /api/v1/me/events` through the shared IDP-aware Faiber client.
|
|
538
572
|
* @param params Typed query parameters; omitted members retain backend defaults.
|
|
539
573
|
* @param options Axios headers, timeout, cancellation signal, credentials, adapter, and other request options.
|
|
540
|
-
* @returns The complete Axios response, including the typed
|
|
541
|
-
* @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: chat:read.
|
|
574
|
+
* @returns The complete Axios response, including the typed handler payload, status, and headers.
|
|
575
|
+
* @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: Authenticated IDP session; chat:read.
|
|
542
576
|
*/
|
|
543
577
|
humanChatEventsGet(params, options) {
|
|
544
578
|
return this.client.request({ timeout: 35000, ...options, method: "GET", url: `/api/v1/me/events`, params });
|
|
545
579
|
}
|
|
546
580
|
/**
|
|
547
|
-
*
|
|
581
|
+
* Authorize only the current organization/user private channel using JSON socket_id and channel_name; another channel returns 403.
|
|
548
582
|
* Calls `POST /api/v1/me/realtime/auth` through the shared IDP-aware Faiber client.
|
|
549
583
|
* @param data Typed JSON request body.
|
|
550
584
|
* @param options Axios headers, timeout, cancellation signal, credentials, adapter, and other request options.
|
|
551
|
-
* @returns The complete Axios response, including the typed
|
|
552
|
-
* @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: chat:read.
|
|
585
|
+
* @returns The complete Axios response, including the typed handler payload, status, and headers.
|
|
586
|
+
* @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: Authenticated IDP session; chat:read.
|
|
553
587
|
*/
|
|
554
588
|
humanChatRealtimeAuthPost(data, options) {
|
|
555
589
|
return this.client.request({ ...options, method: "POST", url: `/api/v1/me/realtime/auth`, data: data });
|
|
556
590
|
}
|
|
557
591
|
/**
|
|
558
|
-
*
|
|
592
|
+
* Read configured private organization/user channel connection details; unavailable realtime returns 502.
|
|
559
593
|
* Calls `GET /api/v1/me/realtime/config` through the shared IDP-aware Faiber client.
|
|
560
594
|
* @param options Axios headers, timeout, cancellation signal, credentials, adapter, and other request options.
|
|
561
|
-
* @returns The complete Axios response, including the typed
|
|
562
|
-
* @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: chat:read.
|
|
595
|
+
* @returns The complete Axios response, including the typed handler payload, status, and headers.
|
|
596
|
+
* @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: Authenticated IDP session; chat:read.
|
|
563
597
|
*/
|
|
564
598
|
humanChatRealtimeConfigGet(options) {
|
|
565
599
|
return this.client.request({ ...options, method: "GET", url: `/api/v1/me/realtime/config` });
|
|
566
600
|
}
|
|
567
601
|
/**
|
|
568
|
-
*
|
|
602
|
+
* Count all incoming unread sent user messages for current organization active memberships; own/deleted messages are excluded.
|
|
569
603
|
* Calls `GET /api/v1/me/unread-count` through the shared IDP-aware Faiber client.
|
|
570
604
|
* @param options Axios headers, timeout, cancellation signal, credentials, adapter, and other request options.
|
|
571
|
-
* @returns The complete Axios response, including the typed
|
|
572
|
-
* @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: chat:read.
|
|
605
|
+
* @returns The complete Axios response, including the typed handler payload, status, and headers.
|
|
606
|
+
* @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: Authenticated IDP session; chat:read.
|
|
573
607
|
*/
|
|
574
608
|
humanChatUnreadGet(options) {
|
|
575
609
|
return this.client.request({ ...options, method: "GET", url: `/api/v1/me/unread-count` });
|
|
576
610
|
}
|
|
577
611
|
/**
|
|
578
|
-
*
|
|
612
|
+
* Soft-delete an accessible message subject to sender/manager checks; returns 204.
|
|
579
613
|
* Calls `DELETE /api/v1/messages/{id}` through the shared IDP-aware Faiber client.
|
|
580
614
|
* @param id Backend path identifier `id`.
|
|
581
615
|
* @param options Axios headers, timeout, cancellation signal, credentials, adapter, and other request options.
|
|
582
|
-
* @returns The complete Axios response, including the typed
|
|
583
|
-
* @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: chat:delete.
|
|
616
|
+
* @returns The complete Axios response, including the typed handler payload, status, and headers.
|
|
617
|
+
* @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: Authenticated IDP session; chat:delete.
|
|
584
618
|
*/
|
|
585
619
|
routesDeleteMessageDelete(id, options) {
|
|
586
620
|
return this.client.request({ ...options, method: "DELETE", url: `/api/v1/messages/${encodeURIComponent(id)}` });
|
|
587
621
|
}
|
|
588
622
|
/**
|
|
589
|
-
*
|
|
623
|
+
* Replace content of an accessible message; only the original sender may edit it.
|
|
590
624
|
* Calls `PUT /api/v1/messages/{id}` through the shared IDP-aware Faiber client.
|
|
591
625
|
* @param id Backend path identifier `id`.
|
|
592
626
|
* @param data Typed JSON request body.
|
|
593
627
|
* @param options Axios headers, timeout, cancellation signal, credentials, adapter, and other request options.
|
|
594
|
-
* @returns The complete Axios response, including the typed
|
|
595
|
-
* @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: chat:write.
|
|
628
|
+
* @returns The complete Axios response, including the typed handler payload, status, and headers.
|
|
629
|
+
* @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: Authenticated IDP session; chat:write.
|
|
596
630
|
*/
|
|
597
631
|
routesEditPut(id, data, options) {
|
|
598
632
|
return this.client.request({ ...options, method: "PUT", url: `/api/v1/messages/${encodeURIComponent(id)}`, data: data });
|
|
599
633
|
}
|
|
600
634
|
/**
|
|
601
|
-
*
|
|
635
|
+
* Insert a reaction and return its own reaction record (201), rather than the message. Emoji is at most 16 characters; duplicate reaction returns 409.
|
|
602
636
|
* Calls `POST /api/v1/messages/{id}/reactions` through the shared IDP-aware Faiber client.
|
|
603
637
|
* @param id Backend path identifier `id`.
|
|
604
638
|
* @param data Typed JSON request body.
|
|
605
639
|
* @param options Axios headers, timeout, cancellation signal, credentials, adapter, and other request options.
|
|
606
|
-
* @returns The complete Axios response, including the typed
|
|
607
|
-
* @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: chat:write.
|
|
640
|
+
* @returns The complete Axios response, including the typed handler payload, status, and headers.
|
|
641
|
+
* @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: Authenticated IDP session; chat:write.
|
|
608
642
|
*/
|
|
609
643
|
routesReactPost(id, data, options) {
|
|
610
644
|
return this.client.request({ ...options, method: "POST", url: `/api/v1/messages/${encodeURIComponent(id)}/reactions`, data: data });
|
|
611
645
|
}
|
|
612
646
|
/**
|
|
613
|
-
*
|
|
647
|
+
* Forward ordered live speech actions through current configured language model with chat:ai. JSON body limit is 72 KiB and audio_base64 is at most 65536 characters. Provider result passes through unchanged.
|
|
614
648
|
* Calls `POST /api/v1/speech/live` through the shared IDP-aware Faiber client.
|
|
615
649
|
* @param data Typed JSON request body.
|
|
616
650
|
* @param options Axios headers, timeout, cancellation signal, credentials, adapter, and other request options.
|
|
617
|
-
* @returns The complete Axios response, including the typed
|
|
618
|
-
* @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: chat:ai.
|
|
651
|
+
* @returns The complete Axios response, including the typed handler payload, status, and headers.
|
|
652
|
+
* @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: Authenticated IDP session; chat:ai.
|
|
619
653
|
*/
|
|
620
654
|
routesLivePost(data, options) {
|
|
621
655
|
return this.client.request({ ...options, method: "POST", url: `/api/v1/speech/live`, data: data });
|
|
622
656
|
}
|
|
623
657
|
/**
|
|
624
|
-
*
|
|
658
|
+
* Read speech availability, engine, model_ref and max_bytes using current configured models; requires chat:ai.
|
|
625
659
|
* Calls `GET /api/v1/speech/status` through the shared IDP-aware Faiber client.
|
|
626
660
|
* @param options Axios headers, timeout, cancellation signal, credentials, adapter, and other request options.
|
|
627
|
-
* @returns The complete Axios response, including the typed
|
|
628
|
-
* @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: chat:ai.
|
|
661
|
+
* @returns The complete Axios response, including the typed handler payload, status, and headers.
|
|
662
|
+
* @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: Authenticated IDP session; chat:ai.
|
|
629
663
|
*/
|
|
630
664
|
routesStatusGetApiV1SpeechStatus(options) {
|
|
631
665
|
return this.client.request({ ...options, method: "GET", url: `/api/v1/speech/status` });
|
|
632
666
|
}
|
|
633
667
|
/**
|
|
634
|
-
*
|
|
668
|
+
* Transcribe raw audio/webm, audio/ogg, audio/mp4, audio/wav or audio/mpeg, up to 8 MiB. Required language is en/fa/auto. Supply the audio Content-Type header; private temporary storage is cleaned up.
|
|
635
669
|
* Calls `POST /api/v1/speech/transcribe` through the shared IDP-aware Faiber client.
|
|
636
670
|
* @param data Typed binary byte stream.
|
|
637
671
|
* @param params Typed query parameters; omitted members retain backend defaults.
|
|
638
672
|
* @param options Axios headers, timeout, cancellation signal, credentials, adapter, and other request options.
|
|
639
|
-
* @returns The complete Axios response, including the typed
|
|
640
|
-
* @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: chat:ai.
|
|
673
|
+
* @returns The complete Axios response, including the typed handler payload, status, and headers.
|
|
674
|
+
* @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: Authenticated IDP session; chat:ai.
|
|
641
675
|
*/
|
|
642
676
|
routesTranscribePost(data, params, options) {
|
|
643
|
-
return this.client.request({ ...options, method: "POST", url: `/api/v1/speech/transcribe`, data: data, params, headers: { "Content-Type": "application/octet-stream", ...options?.headers } });
|
|
677
|
+
return this.client.request({ ...options, method: "POST", url: `/api/v1/speech/transcribe`, data: data, params, headers: { "Content-Type": (typeof Blob !== "undefined" && data instanceof Blob && data.type ? data.type : "application/octet-stream"), ...options?.headers } });
|
|
644
678
|
}
|
|
645
679
|
/**
|
|
646
|
-
*
|
|
680
|
+
* Synthesize 1..5000 trimmed characters with chat:ai. Wire format is lowercase mp3/wav; omitted/null format selects WAV on the backend. Returns raw audio bytes, no envelope; mismatched provider content type returns 502.
|
|
647
681
|
* Calls `POST /api/v1/speech/tts` through the shared IDP-aware Faiber client.
|
|
648
682
|
* @param data Typed JSON request body.
|
|
649
683
|
* @param options Axios headers, timeout, cancellation signal, credentials, adapter, and other request options.
|
|
650
|
-
* @returns The complete Axios response, including the typed
|
|
651
|
-
* @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: chat:ai.
|
|
684
|
+
* @returns The complete Axios response, including the typed handler payload, status, and headers.
|
|
685
|
+
* @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: Authenticated IDP session; chat:ai.
|
|
652
686
|
*/
|
|
653
687
|
routesSynthesizePost(data, options) {
|
|
654
|
-
return this.client.request({ ...options, method: "POST", url: `/api/v1/speech/tts`, data: data });
|
|
688
|
+
return this.client.request({ ...options, method: "POST", url: `/api/v1/speech/tts`, data: data, responseType: "arraybuffer" });
|
|
655
689
|
}
|
|
656
690
|
/**
|
|
657
|
-
*
|
|
691
|
+
* Meter assistant voice under current Task project access and allowance; stable id/chunk sequence supports retries. Transcribe accepts canonical mono 16 kHz PCM WAV up to 60 seconds; TTS text is at most 600 characters. Feature disabled returns 404.
|
|
658
692
|
* Calls `POST /api/v1/speech/voice` through the shared IDP-aware Faiber client.
|
|
659
693
|
* @param data Typed JSON request body.
|
|
660
694
|
* @param options Axios headers, timeout, cancellation signal, credentials, adapter, and other request options.
|
|
661
|
-
* @returns The complete Axios response, including the typed
|
|
662
|
-
* @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: chat:ai.
|
|
695
|
+
* @returns The complete Axios response, including the typed handler payload, status, and headers.
|
|
696
|
+
* @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: Authenticated IDP session; chat:ai.
|
|
663
697
|
*/
|
|
664
698
|
routesHandlePost(data, options) {
|
|
665
699
|
return this.client.request({ ...options, method: "POST", url: `/api/v1/speech/voice`, data: data });
|
|
666
700
|
}
|
|
667
701
|
/**
|
|
668
|
-
*
|
|
702
|
+
* Read or mutate current native observer policy with current IDP authority; Bearer-only authorization, exact revision and reason rules apply. See source summary observation policy.
|
|
703
|
+
* Calls `GET /api/v1/summary-access` through the shared IDP-aware Faiber client.
|
|
704
|
+
* @param options Axios headers, timeout, cancellation signal, credentials, adapter, and other request options.
|
|
705
|
+
* @returns The complete Axios response, including the typed handler payload, status, and headers.
|
|
706
|
+
* @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: Current IDP Bearer chat:summary_access:manage; enabling also verifies collector chat:summary:read.
|
|
707
|
+
*/
|
|
708
|
+
nativeSummaryAccessStatus(options) {
|
|
709
|
+
return this.client.request({ ...options, method: "GET", url: `/api/v1/summary-access` });
|
|
710
|
+
}
|
|
711
|
+
/**
|
|
712
|
+
* Read or mutate current native observer policy with current IDP authority; Bearer-only authorization, exact revision and reason rules apply. See source summary observation policy.
|
|
713
|
+
* Calls `PUT /api/v1/summary-access` through the shared IDP-aware Faiber client.
|
|
714
|
+
* @param data Typed JSON request body.
|
|
715
|
+
* @param options Axios headers, timeout, cancellation signal, credentials, adapter, and other request options.
|
|
716
|
+
* @returns The complete Axios response, including the typed handler payload, status, and headers.
|
|
717
|
+
* @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: Current IDP Bearer chat:summary_access:manage; enabling also verifies collector chat:summary:read.
|
|
718
|
+
*/
|
|
719
|
+
saveNativeSummaryAccessPolicy(data, options) {
|
|
720
|
+
return this.client.request({ ...options, method: "PUT", url: `/api/v1/summary-access`, data: data });
|
|
721
|
+
}
|
|
722
|
+
/**
|
|
723
|
+
* Read or mutate current native observer policy with current IDP authority; Bearer-only authorization, exact revision and reason rules apply. See source summary observation policy.
|
|
724
|
+
* Calls `POST /api/v1/summary-access/revocations` through the shared IDP-aware Faiber client.
|
|
725
|
+
* @param data Typed JSON request body.
|
|
726
|
+
* @param options Axios headers, timeout, cancellation signal, credentials, adapter, and other request options.
|
|
727
|
+
* @returns The complete Axios response, including the typed handler payload, status, and headers.
|
|
728
|
+
* @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: Current IDP Bearer chat:summary_access:manage; enabling also verifies collector chat:summary:read.
|
|
729
|
+
*/
|
|
730
|
+
revokeNativeSummaryObject(data, options) {
|
|
731
|
+
return this.client.request({ ...options, method: "POST", url: `/api/v1/summary-access/revocations`, data: data });
|
|
732
|
+
}
|
|
733
|
+
/**
|
|
734
|
+
* Read or mutate current native observer policy with current IDP authority; Bearer-only authorization, exact revision and reason rules apply. See source summary observation policy.
|
|
735
|
+
* Calls `DELETE /api/v1/summary-access/revocations/{object}` through the shared IDP-aware Faiber client.
|
|
736
|
+
* @param object Backend path identifier `object`.
|
|
737
|
+
* @param data Typed JSON request body.
|
|
738
|
+
* @param options Axios headers, timeout, cancellation signal, credentials, adapter, and other request options.
|
|
739
|
+
* @returns The complete Axios response, including the typed handler payload, status, and headers.
|
|
740
|
+
* @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: Current IDP Bearer chat:summary_access:manage; enabling also verifies collector chat:summary:read.
|
|
741
|
+
*/
|
|
742
|
+
restoreNativeSummaryObject(object, data, options) {
|
|
743
|
+
return this.client.request({ ...options, method: "DELETE", url: `/api/v1/summary-access/revocations/${encodeURIComponent(object)}`, data: data });
|
|
744
|
+
}
|
|
745
|
+
/**
|
|
746
|
+
* List active assistant workspace role bindings for this organization; enabled bindings are returned, plus staged bindings for configured pilot users.
|
|
669
747
|
* Calls `GET /api/v1/workspace-assistants` through the shared IDP-aware Faiber client.
|
|
670
748
|
* @param options Axios headers, timeout, cancellation signal, credentials, adapter, and other request options.
|
|
671
|
-
* @returns The complete Axios response, including the typed
|
|
672
|
-
* @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: assistant:read.
|
|
749
|
+
* @returns The complete Axios response, including the typed handler payload, status, and headers.
|
|
750
|
+
* @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: Authenticated IDP session; assistant:read.
|
|
673
751
|
*/
|
|
674
752
|
workspaceRoles(options) {
|
|
675
753
|
return this.client.request({ ...options, method: "GET", url: `/api/v1/workspace-assistants` });
|
|
676
754
|
}
|
|
677
755
|
/**
|
|
678
|
-
*
|
|
756
|
+
* Read public process liveness/version/Agentic execution identity; this does not probe database readiness.
|
|
679
757
|
* Calls `GET /health` through the shared IDP-aware Faiber client.
|
|
680
758
|
* @param options Axios headers, timeout, cancellation signal, credentials, adapter, and other request options.
|
|
681
|
-
* @returns The complete Axios response, including the typed
|
|
682
|
-
* @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission:
|
|
759
|
+
* @returns The complete Axios response, including the typed handler payload, status, and headers.
|
|
760
|
+
* @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: public process liveness.
|
|
683
761
|
*/
|
|
684
762
|
mainHealthGet(options) {
|
|
685
763
|
return this.client.request({ ...options, method: "GET", url: `/health` });
|