@naturali/sdk 0.40.0 → 0.41.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +123 -0
- package/dist/index.d.cts +569 -1
- package/dist/index.d.mts +569 -1
- package/dist/index.mjs +123 -1
- package/package.json +2 -2
package/dist/index.d.cts
CHANGED
|
@@ -2269,6 +2269,151 @@ type TraceList = {
|
|
|
2269
2269
|
limit: number;
|
|
2270
2270
|
offset: number;
|
|
2271
2271
|
};
|
|
2272
|
+
/**
|
|
2273
|
+
* A naturali event type. The set below is what v1 emits — deliberately only the events naturali itself causes, so no declared name is one that never fires.
|
|
2274
|
+
*
|
|
2275
|
+
*/
|
|
2276
|
+
type EventType = 'task.created' | 'task.updated' | 'conversation.started' | 'message.received' | 'knowledge.document_ingested' | 'knowledge.ingest_failed' | 'generation.completed' | 'generation.failed';
|
|
2277
|
+
/**
|
|
2278
|
+
* Which events this endpoint receives. Each entry is an exact type (`task.created`), a resource wildcard (`task.*`), or `*` for everything. A bare resource name (`task`) matches nothing and is rejected.
|
|
2279
|
+
*
|
|
2280
|
+
*/
|
|
2281
|
+
type EventSubscription = Array<string>;
|
|
2282
|
+
/**
|
|
2283
|
+
* The envelope POSTed to your endpoint. It is also what a delivery's `payload` holds, byte for byte, so the signed body and the recorded one are the same document.
|
|
2284
|
+
*
|
|
2285
|
+
*/
|
|
2286
|
+
type Event = {
|
|
2287
|
+
/**
|
|
2288
|
+
* Unique per event (`evt_` prefix), and stable across redeliveries — dedupe on this if your receiver must process an event exactly once.
|
|
2289
|
+
*
|
|
2290
|
+
*/
|
|
2291
|
+
id: string;
|
|
2292
|
+
type: EventType;
|
|
2293
|
+
project_id: string;
|
|
2294
|
+
/**
|
|
2295
|
+
* What the event is about.
|
|
2296
|
+
*/
|
|
2297
|
+
resource_type: 'task' | 'conversation' | 'message' | 'knowledge_document' | 'generation';
|
|
2298
|
+
/**
|
|
2299
|
+
* The id of that resource, in the form its own API uses.
|
|
2300
|
+
*/
|
|
2301
|
+
resource_id: string;
|
|
2302
|
+
/**
|
|
2303
|
+
* The resource, shaped exactly as its own API returns it — a `task.created` payload carries the same object `getTask` would.
|
|
2304
|
+
*
|
|
2305
|
+
*/
|
|
2306
|
+
data: {
|
|
2307
|
+
[key: string]: unknown;
|
|
2308
|
+
};
|
|
2309
|
+
created_at: Date;
|
|
2310
|
+
};
|
|
2311
|
+
type Webhook = {
|
|
2312
|
+
/**
|
|
2313
|
+
* Public webhook ID (whk_ prefix).
|
|
2314
|
+
*/
|
|
2315
|
+
id: string;
|
|
2316
|
+
project_id: string;
|
|
2317
|
+
/**
|
|
2318
|
+
* Where deliveries are POSTed.
|
|
2319
|
+
*/
|
|
2320
|
+
url: string;
|
|
2321
|
+
events: EventSubscription;
|
|
2322
|
+
/**
|
|
2323
|
+
* Operator-facing label.
|
|
2324
|
+
*/
|
|
2325
|
+
description: string | null;
|
|
2326
|
+
/**
|
|
2327
|
+
* Whether deliveries are attempted.
|
|
2328
|
+
*/
|
|
2329
|
+
active: boolean;
|
|
2330
|
+
created_at: Date;
|
|
2331
|
+
updated_at: Date;
|
|
2332
|
+
};
|
|
2333
|
+
type WebhookWithSecret = Webhook & {
|
|
2334
|
+
/**
|
|
2335
|
+
* The signing key (`whsec_` prefix), returned only by create and rotate. Never readable afterwards.
|
|
2336
|
+
*
|
|
2337
|
+
*/
|
|
2338
|
+
secret: string;
|
|
2339
|
+
};
|
|
2340
|
+
type WebhookCreate = {
|
|
2341
|
+
/**
|
|
2342
|
+
* An `https://` endpoint (`http://` is accepted for localhost, so a tunnel works in development).
|
|
2343
|
+
*
|
|
2344
|
+
*/
|
|
2345
|
+
url: string;
|
|
2346
|
+
events: EventSubscription;
|
|
2347
|
+
description?: string | null;
|
|
2348
|
+
active?: boolean;
|
|
2349
|
+
};
|
|
2350
|
+
/**
|
|
2351
|
+
* At least one field is required.
|
|
2352
|
+
*/
|
|
2353
|
+
type WebhookUpdate = {
|
|
2354
|
+
url?: string;
|
|
2355
|
+
events?: EventSubscription;
|
|
2356
|
+
description?: string | null;
|
|
2357
|
+
active?: boolean;
|
|
2358
|
+
};
|
|
2359
|
+
type WebhookList = {
|
|
2360
|
+
data: Array<Webhook>;
|
|
2361
|
+
/**
|
|
2362
|
+
* Cursor for the next page, or null when there are no more.
|
|
2363
|
+
*/
|
|
2364
|
+
next_cursor: string | null;
|
|
2365
|
+
};
|
|
2366
|
+
/**
|
|
2367
|
+
* One event addressed to one endpoint, and everything that happened to it.
|
|
2368
|
+
*/
|
|
2369
|
+
type WebhookDelivery = {
|
|
2370
|
+
/**
|
|
2371
|
+
* Public delivery ID (whd_ prefix). Sent with the request as `X-Naturali-Delivery`.
|
|
2372
|
+
*
|
|
2373
|
+
*/
|
|
2374
|
+
id: string;
|
|
2375
|
+
project_id: string;
|
|
2376
|
+
webhook_id: string;
|
|
2377
|
+
/**
|
|
2378
|
+
* The event's id; shared by every delivery and redelivery of it.
|
|
2379
|
+
*/
|
|
2380
|
+
event_id: string;
|
|
2381
|
+
event_type: EventType;
|
|
2382
|
+
payload: Event;
|
|
2383
|
+
/**
|
|
2384
|
+
* `pending` until a 2xx is received (`success`) or the attempts are exhausted (`failed`). A failed delivery can be replayed with `…:redeliver`.
|
|
2385
|
+
*
|
|
2386
|
+
*/
|
|
2387
|
+
status: 'pending' | 'success' | 'failed';
|
|
2388
|
+
/**
|
|
2389
|
+
* The receiver's HTTP status on the last attempt; null when the attempt never got a response (DNS, TLS, refused, timed out).
|
|
2390
|
+
*
|
|
2391
|
+
*/
|
|
2392
|
+
status_code: number | null;
|
|
2393
|
+
/**
|
|
2394
|
+
* Attempts made so far.
|
|
2395
|
+
*/
|
|
2396
|
+
attempts: number;
|
|
2397
|
+
/**
|
|
2398
|
+
* When the next retry is due; null once the delivery is terminal.
|
|
2399
|
+
*/
|
|
2400
|
+
next_attempt_at: Date | null;
|
|
2401
|
+
last_attempt_at: Date | null;
|
|
2402
|
+
/**
|
|
2403
|
+
* A truncated snippet of the receiver's response, or the transport error when there was no response.
|
|
2404
|
+
*
|
|
2405
|
+
*/
|
|
2406
|
+
response_body: string | null;
|
|
2407
|
+
created_at: Date;
|
|
2408
|
+
updated_at: Date;
|
|
2409
|
+
};
|
|
2410
|
+
type WebhookDeliveryList = {
|
|
2411
|
+
data: Array<WebhookDelivery>;
|
|
2412
|
+
/**
|
|
2413
|
+
* Cursor for the next page, or null when there are no more.
|
|
2414
|
+
*/
|
|
2415
|
+
next_cursor: string | null;
|
|
2416
|
+
};
|
|
2272
2417
|
/**
|
|
2273
2418
|
* Maximum items per page.
|
|
2274
2419
|
*/
|
|
@@ -2382,6 +2527,14 @@ type ToolId = string;
|
|
|
2382
2527
|
* Trace public ID (trace_ prefix).
|
|
2383
2528
|
*/
|
|
2384
2529
|
type TraceId = string;
|
|
2530
|
+
/**
|
|
2531
|
+
* Webhook public ID (whk_ prefix).
|
|
2532
|
+
*/
|
|
2533
|
+
type WebhookId = string;
|
|
2534
|
+
/**
|
|
2535
|
+
* Delivery public ID (whd_ prefix).
|
|
2536
|
+
*/
|
|
2537
|
+
type DeliveryId = string;
|
|
2385
2538
|
type ListAgentsData = {
|
|
2386
2539
|
body?: never;
|
|
2387
2540
|
path: {
|
|
@@ -6002,6 +6155,353 @@ type ListTraceGenerationsResponses = {
|
|
|
6002
6155
|
200: GenerationList;
|
|
6003
6156
|
};
|
|
6004
6157
|
type ListTraceGenerationsResponse = ListTraceGenerationsResponses[keyof ListTraceGenerationsResponses];
|
|
6158
|
+
type ListWebhooksData = {
|
|
6159
|
+
body?: never;
|
|
6160
|
+
path: {
|
|
6161
|
+
/**
|
|
6162
|
+
* Project public ID (proj_ prefix).
|
|
6163
|
+
*/
|
|
6164
|
+
project_id: string;
|
|
6165
|
+
};
|
|
6166
|
+
query?: {
|
|
6167
|
+
/**
|
|
6168
|
+
* Maximum items per page.
|
|
6169
|
+
*/
|
|
6170
|
+
limit?: number;
|
|
6171
|
+
/**
|
|
6172
|
+
* Opaque pagination cursor from a previous response's next_cursor.
|
|
6173
|
+
*/
|
|
6174
|
+
cursor?: string;
|
|
6175
|
+
};
|
|
6176
|
+
url: '/v1/projects/{project_id}/webhooks';
|
|
6177
|
+
};
|
|
6178
|
+
type ListWebhooksErrors = {
|
|
6179
|
+
/**
|
|
6180
|
+
* The request was malformed or failed validation.
|
|
6181
|
+
*/
|
|
6182
|
+
400: ErrorResponse;
|
|
6183
|
+
/**
|
|
6184
|
+
* Missing or invalid credentials.
|
|
6185
|
+
*/
|
|
6186
|
+
401: ErrorResponse;
|
|
6187
|
+
/**
|
|
6188
|
+
* The resource does not exist (existence is not leaked).
|
|
6189
|
+
*/
|
|
6190
|
+
404: ErrorResponse;
|
|
6191
|
+
};
|
|
6192
|
+
type ListWebhooksError = ListWebhooksErrors[keyof ListWebhooksErrors];
|
|
6193
|
+
type ListWebhooksResponses = {
|
|
6194
|
+
/**
|
|
6195
|
+
* A page of webhooks.
|
|
6196
|
+
*/
|
|
6197
|
+
200: WebhookList;
|
|
6198
|
+
};
|
|
6199
|
+
type ListWebhooksResponse = ListWebhooksResponses[keyof ListWebhooksResponses];
|
|
6200
|
+
type CreateWebhookData = {
|
|
6201
|
+
body: WebhookCreate;
|
|
6202
|
+
headers?: {
|
|
6203
|
+
/**
|
|
6204
|
+
* Client-supplied key to make this mutating POST idempotent.
|
|
6205
|
+
*/
|
|
6206
|
+
'Idempotency-Key'?: string;
|
|
6207
|
+
};
|
|
6208
|
+
path: {
|
|
6209
|
+
/**
|
|
6210
|
+
* Project public ID (proj_ prefix).
|
|
6211
|
+
*/
|
|
6212
|
+
project_id: string;
|
|
6213
|
+
};
|
|
6214
|
+
query?: never;
|
|
6215
|
+
url: '/v1/projects/{project_id}/webhooks';
|
|
6216
|
+
};
|
|
6217
|
+
type CreateWebhookErrors = {
|
|
6218
|
+
/**
|
|
6219
|
+
* The request was malformed or failed validation.
|
|
6220
|
+
*/
|
|
6221
|
+
400: ErrorResponse;
|
|
6222
|
+
/**
|
|
6223
|
+
* Missing or invalid credentials.
|
|
6224
|
+
*/
|
|
6225
|
+
401: ErrorResponse;
|
|
6226
|
+
/**
|
|
6227
|
+
* The resource does not exist (existence is not leaked).
|
|
6228
|
+
*/
|
|
6229
|
+
404: ErrorResponse;
|
|
6230
|
+
/**
|
|
6231
|
+
* The requested path is not enabled on this deployment (e.g. embedded signup before Meta App credentials are configured, or a Discord channel before `CHANNEL_TOKEN_KEY` is set).
|
|
6232
|
+
*
|
|
6233
|
+
*/
|
|
6234
|
+
501: ErrorResponse;
|
|
6235
|
+
};
|
|
6236
|
+
type CreateWebhookError = CreateWebhookErrors[keyof CreateWebhookErrors];
|
|
6237
|
+
type CreateWebhookResponses = {
|
|
6238
|
+
/**
|
|
6239
|
+
* Webhook created. The signing secret is included, once.
|
|
6240
|
+
*/
|
|
6241
|
+
201: WebhookWithSecret;
|
|
6242
|
+
};
|
|
6243
|
+
type CreateWebhookResponse = CreateWebhookResponses[keyof CreateWebhookResponses];
|
|
6244
|
+
type DeleteWebhookData = {
|
|
6245
|
+
body?: never;
|
|
6246
|
+
path: {
|
|
6247
|
+
/**
|
|
6248
|
+
* Project public ID (proj_ prefix).
|
|
6249
|
+
*/
|
|
6250
|
+
project_id: string;
|
|
6251
|
+
/**
|
|
6252
|
+
* Webhook public ID (whk_ prefix).
|
|
6253
|
+
*/
|
|
6254
|
+
webhook_id: string;
|
|
6255
|
+
};
|
|
6256
|
+
query?: never;
|
|
6257
|
+
url: '/v1/projects/{project_id}/webhooks/{webhook_id}';
|
|
6258
|
+
};
|
|
6259
|
+
type DeleteWebhookErrors = {
|
|
6260
|
+
/**
|
|
6261
|
+
* Missing or invalid credentials.
|
|
6262
|
+
*/
|
|
6263
|
+
401: ErrorResponse;
|
|
6264
|
+
/**
|
|
6265
|
+
* The resource does not exist (existence is not leaked).
|
|
6266
|
+
*/
|
|
6267
|
+
404: ErrorResponse;
|
|
6268
|
+
};
|
|
6269
|
+
type DeleteWebhookError = DeleteWebhookErrors[keyof DeleteWebhookErrors];
|
|
6270
|
+
type DeleteWebhookResponses = {
|
|
6271
|
+
/**
|
|
6272
|
+
* Webhook deleted.
|
|
6273
|
+
*/
|
|
6274
|
+
204: void;
|
|
6275
|
+
};
|
|
6276
|
+
type DeleteWebhookResponse = DeleteWebhookResponses[keyof DeleteWebhookResponses];
|
|
6277
|
+
type GetWebhookData = {
|
|
6278
|
+
body?: never;
|
|
6279
|
+
path: {
|
|
6280
|
+
/**
|
|
6281
|
+
* Project public ID (proj_ prefix).
|
|
6282
|
+
*/
|
|
6283
|
+
project_id: string;
|
|
6284
|
+
/**
|
|
6285
|
+
* Webhook public ID (whk_ prefix).
|
|
6286
|
+
*/
|
|
6287
|
+
webhook_id: string;
|
|
6288
|
+
};
|
|
6289
|
+
query?: never;
|
|
6290
|
+
url: '/v1/projects/{project_id}/webhooks/{webhook_id}';
|
|
6291
|
+
};
|
|
6292
|
+
type GetWebhookErrors = {
|
|
6293
|
+
/**
|
|
6294
|
+
* Missing or invalid credentials.
|
|
6295
|
+
*/
|
|
6296
|
+
401: ErrorResponse;
|
|
6297
|
+
/**
|
|
6298
|
+
* The resource does not exist (existence is not leaked).
|
|
6299
|
+
*/
|
|
6300
|
+
404: ErrorResponse;
|
|
6301
|
+
};
|
|
6302
|
+
type GetWebhookError = GetWebhookErrors[keyof GetWebhookErrors];
|
|
6303
|
+
type GetWebhookResponses = {
|
|
6304
|
+
/**
|
|
6305
|
+
* The webhook.
|
|
6306
|
+
*/
|
|
6307
|
+
200: Webhook;
|
|
6308
|
+
};
|
|
6309
|
+
type GetWebhookResponse = GetWebhookResponses[keyof GetWebhookResponses];
|
|
6310
|
+
type UpdateWebhookData = {
|
|
6311
|
+
body: WebhookUpdate;
|
|
6312
|
+
path: {
|
|
6313
|
+
/**
|
|
6314
|
+
* Project public ID (proj_ prefix).
|
|
6315
|
+
*/
|
|
6316
|
+
project_id: string;
|
|
6317
|
+
/**
|
|
6318
|
+
* Webhook public ID (whk_ prefix).
|
|
6319
|
+
*/
|
|
6320
|
+
webhook_id: string;
|
|
6321
|
+
};
|
|
6322
|
+
query?: never;
|
|
6323
|
+
url: '/v1/projects/{project_id}/webhooks/{webhook_id}';
|
|
6324
|
+
};
|
|
6325
|
+
type UpdateWebhookErrors = {
|
|
6326
|
+
/**
|
|
6327
|
+
* The request was malformed or failed validation.
|
|
6328
|
+
*/
|
|
6329
|
+
400: ErrorResponse;
|
|
6330
|
+
/**
|
|
6331
|
+
* Missing or invalid credentials.
|
|
6332
|
+
*/
|
|
6333
|
+
401: ErrorResponse;
|
|
6334
|
+
/**
|
|
6335
|
+
* The resource does not exist (existence is not leaked).
|
|
6336
|
+
*/
|
|
6337
|
+
404: ErrorResponse;
|
|
6338
|
+
};
|
|
6339
|
+
type UpdateWebhookError = UpdateWebhookErrors[keyof UpdateWebhookErrors];
|
|
6340
|
+
type UpdateWebhookResponses = {
|
|
6341
|
+
/**
|
|
6342
|
+
* Webhook updated.
|
|
6343
|
+
*/
|
|
6344
|
+
200: Webhook;
|
|
6345
|
+
};
|
|
6346
|
+
type UpdateWebhookResponse = UpdateWebhookResponses[keyof UpdateWebhookResponses];
|
|
6347
|
+
type RotateWebhookSecretData = {
|
|
6348
|
+
body?: never;
|
|
6349
|
+
path: {
|
|
6350
|
+
/**
|
|
6351
|
+
* Project public ID (proj_ prefix).
|
|
6352
|
+
*/
|
|
6353
|
+
project_id: string;
|
|
6354
|
+
/**
|
|
6355
|
+
* Webhook public ID (whk_ prefix).
|
|
6356
|
+
*/
|
|
6357
|
+
webhook_id: string;
|
|
6358
|
+
};
|
|
6359
|
+
query?: never;
|
|
6360
|
+
url: '/v1/projects/{project_id}/webhooks/{webhook_id}:rotate-secret';
|
|
6361
|
+
};
|
|
6362
|
+
type RotateWebhookSecretErrors = {
|
|
6363
|
+
/**
|
|
6364
|
+
* Missing or invalid credentials.
|
|
6365
|
+
*/
|
|
6366
|
+
401: ErrorResponse;
|
|
6367
|
+
/**
|
|
6368
|
+
* The resource does not exist (existence is not leaked).
|
|
6369
|
+
*/
|
|
6370
|
+
404: ErrorResponse;
|
|
6371
|
+
/**
|
|
6372
|
+
* The requested path is not enabled on this deployment (e.g. embedded signup before Meta App credentials are configured, or a Discord channel before `CHANNEL_TOKEN_KEY` is set).
|
|
6373
|
+
*
|
|
6374
|
+
*/
|
|
6375
|
+
501: ErrorResponse;
|
|
6376
|
+
};
|
|
6377
|
+
type RotateWebhookSecretError = RotateWebhookSecretErrors[keyof RotateWebhookSecretErrors];
|
|
6378
|
+
type RotateWebhookSecretResponses = {
|
|
6379
|
+
/**
|
|
6380
|
+
* A new signing secret was issued.
|
|
6381
|
+
*/
|
|
6382
|
+
200: WebhookWithSecret;
|
|
6383
|
+
};
|
|
6384
|
+
type RotateWebhookSecretResponse = RotateWebhookSecretResponses[keyof RotateWebhookSecretResponses];
|
|
6385
|
+
type ListWebhookDeliveriesData = {
|
|
6386
|
+
body?: never;
|
|
6387
|
+
path: {
|
|
6388
|
+
/**
|
|
6389
|
+
* Project public ID (proj_ prefix).
|
|
6390
|
+
*/
|
|
6391
|
+
project_id: string;
|
|
6392
|
+
};
|
|
6393
|
+
query?: {
|
|
6394
|
+
/**
|
|
6395
|
+
* Maximum items per page.
|
|
6396
|
+
*/
|
|
6397
|
+
limit?: number;
|
|
6398
|
+
/**
|
|
6399
|
+
* Opaque pagination cursor from a previous response's next_cursor.
|
|
6400
|
+
*/
|
|
6401
|
+
cursor?: string;
|
|
6402
|
+
/**
|
|
6403
|
+
* Only deliveries addressed to this endpoint.
|
|
6404
|
+
*/
|
|
6405
|
+
webhook_id?: string;
|
|
6406
|
+
/**
|
|
6407
|
+
* Only deliveries in this state.
|
|
6408
|
+
*/
|
|
6409
|
+
status?: 'pending' | 'success' | 'failed';
|
|
6410
|
+
/**
|
|
6411
|
+
* Only deliveries of this event type.
|
|
6412
|
+
*/
|
|
6413
|
+
event_type?: string;
|
|
6414
|
+
};
|
|
6415
|
+
url: '/v1/projects/{project_id}/webhook-deliveries';
|
|
6416
|
+
};
|
|
6417
|
+
type ListWebhookDeliveriesErrors = {
|
|
6418
|
+
/**
|
|
6419
|
+
* The request was malformed or failed validation.
|
|
6420
|
+
*/
|
|
6421
|
+
400: ErrorResponse;
|
|
6422
|
+
/**
|
|
6423
|
+
* Missing or invalid credentials.
|
|
6424
|
+
*/
|
|
6425
|
+
401: ErrorResponse;
|
|
6426
|
+
/**
|
|
6427
|
+
* The resource does not exist (existence is not leaked).
|
|
6428
|
+
*/
|
|
6429
|
+
404: ErrorResponse;
|
|
6430
|
+
};
|
|
6431
|
+
type ListWebhookDeliveriesError = ListWebhookDeliveriesErrors[keyof ListWebhookDeliveriesErrors];
|
|
6432
|
+
type ListWebhookDeliveriesResponses = {
|
|
6433
|
+
/**
|
|
6434
|
+
* A page of deliveries.
|
|
6435
|
+
*/
|
|
6436
|
+
200: WebhookDeliveryList;
|
|
6437
|
+
};
|
|
6438
|
+
type ListWebhookDeliveriesResponse = ListWebhookDeliveriesResponses[keyof ListWebhookDeliveriesResponses];
|
|
6439
|
+
type GetWebhookDeliveryData = {
|
|
6440
|
+
body?: never;
|
|
6441
|
+
path: {
|
|
6442
|
+
/**
|
|
6443
|
+
* Project public ID (proj_ prefix).
|
|
6444
|
+
*/
|
|
6445
|
+
project_id: string;
|
|
6446
|
+
/**
|
|
6447
|
+
* Delivery public ID (whd_ prefix).
|
|
6448
|
+
*/
|
|
6449
|
+
delivery_id: string;
|
|
6450
|
+
};
|
|
6451
|
+
query?: never;
|
|
6452
|
+
url: '/v1/projects/{project_id}/webhook-deliveries/{delivery_id}';
|
|
6453
|
+
};
|
|
6454
|
+
type GetWebhookDeliveryErrors = {
|
|
6455
|
+
/**
|
|
6456
|
+
* Missing or invalid credentials.
|
|
6457
|
+
*/
|
|
6458
|
+
401: ErrorResponse;
|
|
6459
|
+
/**
|
|
6460
|
+
* The resource does not exist (existence is not leaked).
|
|
6461
|
+
*/
|
|
6462
|
+
404: ErrorResponse;
|
|
6463
|
+
};
|
|
6464
|
+
type GetWebhookDeliveryError = GetWebhookDeliveryErrors[keyof GetWebhookDeliveryErrors];
|
|
6465
|
+
type GetWebhookDeliveryResponses = {
|
|
6466
|
+
/**
|
|
6467
|
+
* The delivery.
|
|
6468
|
+
*/
|
|
6469
|
+
200: WebhookDelivery;
|
|
6470
|
+
};
|
|
6471
|
+
type GetWebhookDeliveryResponse = GetWebhookDeliveryResponses[keyof GetWebhookDeliveryResponses];
|
|
6472
|
+
type RedeliverWebhookDeliveryData = {
|
|
6473
|
+
body?: never;
|
|
6474
|
+
path: {
|
|
6475
|
+
/**
|
|
6476
|
+
* Project public ID (proj_ prefix).
|
|
6477
|
+
*/
|
|
6478
|
+
project_id: string;
|
|
6479
|
+
/**
|
|
6480
|
+
* Delivery public ID (whd_ prefix).
|
|
6481
|
+
*/
|
|
6482
|
+
delivery_id: string;
|
|
6483
|
+
};
|
|
6484
|
+
query?: never;
|
|
6485
|
+
url: '/v1/projects/{project_id}/webhook-deliveries/{delivery_id}:redeliver';
|
|
6486
|
+
};
|
|
6487
|
+
type RedeliverWebhookDeliveryErrors = {
|
|
6488
|
+
/**
|
|
6489
|
+
* Missing or invalid credentials.
|
|
6490
|
+
*/
|
|
6491
|
+
401: ErrorResponse;
|
|
6492
|
+
/**
|
|
6493
|
+
* The resource does not exist (existence is not leaked).
|
|
6494
|
+
*/
|
|
6495
|
+
404: ErrorResponse;
|
|
6496
|
+
};
|
|
6497
|
+
type RedeliverWebhookDeliveryError = RedeliverWebhookDeliveryErrors[keyof RedeliverWebhookDeliveryErrors];
|
|
6498
|
+
type RedeliverWebhookDeliveryResponses = {
|
|
6499
|
+
/**
|
|
6500
|
+
* A new delivery was queued.
|
|
6501
|
+
*/
|
|
6502
|
+
202: WebhookDelivery;
|
|
6503
|
+
};
|
|
6504
|
+
type RedeliverWebhookDeliveryResponse = RedeliverWebhookDeliveryResponses[keyof RedeliverWebhookDeliveryResponses];
|
|
6005
6505
|
//#endregion
|
|
6006
6506
|
//#region src/generated/sdk.gen.d.ts
|
|
6007
6507
|
type Options<TData extends TDataShape = TDataShape, ThrowOnError extends boolean = boolean, TResponse = unknown> = Options$1<TData, ThrowOnError, TResponse> & {
|
|
@@ -6656,6 +7156,73 @@ declare class Traces {
|
|
|
6656
7156
|
*/
|
|
6657
7157
|
static listTraceGenerations<ThrowOnError extends boolean = false>(options: Options<ListTraceGenerationsData, ThrowOnError>): RequestResult<ListTraceGenerationsResponses, ListTraceGenerationsErrors, ThrowOnError>;
|
|
6658
7158
|
}
|
|
7159
|
+
declare class Webhooks {
|
|
7160
|
+
/**
|
|
7161
|
+
* List webhooks
|
|
7162
|
+
*
|
|
7163
|
+
* The endpoints registered in the project, newest first.
|
|
7164
|
+
*/
|
|
7165
|
+
static listWebhooks<ThrowOnError extends boolean = false>(options: Options<ListWebhooksData, ThrowOnError>): RequestResult<ListWebhooksResponses, ListWebhooksErrors, ThrowOnError>;
|
|
7166
|
+
/**
|
|
7167
|
+
* Create a webhook
|
|
7168
|
+
*
|
|
7169
|
+
* Register an endpoint and subscribe it to one or more event types.
|
|
7170
|
+
* The response carries `secret` — the signing key, in plaintext. **This is the only time it is returned.** Store it where your receiver can read it; if you lose it, rotate rather than re-create, so the endpoint keeps its delivery history.
|
|
7171
|
+
* Returns `501` on a deployment with no credential-sealing key configured, since the secret could not then be stored safely.
|
|
7172
|
+
*
|
|
7173
|
+
*/
|
|
7174
|
+
static createWebhook<ThrowOnError extends boolean = false>(options: Options<CreateWebhookData, ThrowOnError>): RequestResult<CreateWebhookResponses, CreateWebhookErrors, ThrowOnError>;
|
|
7175
|
+
/**
|
|
7176
|
+
* Delete a webhook
|
|
7177
|
+
*
|
|
7178
|
+
* Removes the endpoint and its delivery records. To stop deliveries while keeping the audit trail, `PATCH` it to `active: false` instead.
|
|
7179
|
+
*
|
|
7180
|
+
*/
|
|
7181
|
+
static deleteWebhook<ThrowOnError extends boolean = false>(options: Options<DeleteWebhookData, ThrowOnError>): RequestResult<DeleteWebhookResponses, DeleteWebhookErrors, ThrowOnError>;
|
|
7182
|
+
/**
|
|
7183
|
+
* Get a webhook
|
|
7184
|
+
*/
|
|
7185
|
+
static getWebhook<ThrowOnError extends boolean = false>(options: Options<GetWebhookData, ThrowOnError>): RequestResult<GetWebhookResponses, GetWebhookErrors, ThrowOnError>;
|
|
7186
|
+
/**
|
|
7187
|
+
* Update a webhook
|
|
7188
|
+
*
|
|
7189
|
+
* Change the destination, the subscription, the label, or whether deliveries are attempted at all. At least one field is required.
|
|
7190
|
+
* Setting `active: false` is the reversible half of `DELETE`: deliveries stop, the endpoint and its history stay. It is what to reach for while a receiver is being repaired.
|
|
7191
|
+
*
|
|
7192
|
+
*/
|
|
7193
|
+
static updateWebhook<ThrowOnError extends boolean = false>(options: Options<UpdateWebhookData, ThrowOnError>): RequestResult<UpdateWebhookResponses, UpdateWebhookErrors, ThrowOnError>;
|
|
7194
|
+
/**
|
|
7195
|
+
* Rotate the signing secret
|
|
7196
|
+
*
|
|
7197
|
+
* Issues a new signing secret for the same endpoint and returns it — the second and last time a secret is ever returned. This is the `…:rotate-secret` action; the path segment is `{webhook_id}:rotate-secret`.
|
|
7198
|
+
* The change takes effect on the next delivery, including retries of deliveries already queued, so roll the new secret out to your receiver promptly. There is no overlap window in which both secrets verify.
|
|
7199
|
+
*
|
|
7200
|
+
*/
|
|
7201
|
+
static rotateWebhookSecret<ThrowOnError extends boolean = false>(options: Options<RotateWebhookSecretData, ThrowOnError>): RequestResult<RotateWebhookSecretResponses, RotateWebhookSecretErrors, ThrowOnError>;
|
|
7202
|
+
/**
|
|
7203
|
+
* List webhook deliveries
|
|
7204
|
+
*
|
|
7205
|
+
* Every delivery attempted in the project, newest first — what was sent, where, how many times, and what came back. Filter by endpoint, by lifecycle status, or by event type.
|
|
7206
|
+
* Deliveries are per (event, endpoint): an event matching two subscribed endpoints produces two rows, retried and observed independently.
|
|
7207
|
+
*
|
|
7208
|
+
*/
|
|
7209
|
+
static listWebhookDeliveries<ThrowOnError extends boolean = false>(options: Options<ListWebhookDeliveriesData, ThrowOnError>): RequestResult<ListWebhookDeliveriesResponses, ListWebhookDeliveriesErrors, ThrowOnError>;
|
|
7210
|
+
/**
|
|
7211
|
+
* Get a webhook delivery
|
|
7212
|
+
*
|
|
7213
|
+
* One delivery, including the exact payload that was signed and sent.
|
|
7214
|
+
*
|
|
7215
|
+
*/
|
|
7216
|
+
static getWebhookDelivery<ThrowOnError extends boolean = false>(options: Options<GetWebhookDeliveryData, ThrowOnError>): RequestResult<GetWebhookDeliveryResponses, GetWebhookDeliveryErrors, ThrowOnError>;
|
|
7217
|
+
/**
|
|
7218
|
+
* Redeliver an event
|
|
7219
|
+
*
|
|
7220
|
+
* Queue the same event at the same endpoint again — the recovery path for a delivery that failed, or one your receiver dropped. This is the `…:redeliver` action; the path segment is `{delivery_id}:redeliver`.
|
|
7221
|
+
* A **new** delivery is created and returned; the original record is left untouched, because its attempt history is the evidence you redelivered on. The event's `id` is carried over unchanged, so a receiver deduping on the event sees the same event twice while one deduping on `X-Naturali-Delivery` sees a distinct delivery.
|
|
7222
|
+
*
|
|
7223
|
+
*/
|
|
7224
|
+
static redeliverWebhookDelivery<ThrowOnError extends boolean = false>(options: Options<RedeliverWebhookDeliveryData, ThrowOnError>): RequestResult<RedeliverWebhookDeliveryResponses, RedeliverWebhookDeliveryErrors, ThrowOnError>;
|
|
7225
|
+
}
|
|
6659
7226
|
//#endregion
|
|
6660
7227
|
//#region src/naturaliClient.d.ts
|
|
6661
7228
|
interface NaturaliClientOptions {
|
|
@@ -6713,9 +7280,10 @@ declare class NaturaliClient {
|
|
|
6713
7280
|
readonly tasks: typeof Tasks;
|
|
6714
7281
|
readonly tools: typeof Tools;
|
|
6715
7282
|
readonly traces: typeof Traces;
|
|
7283
|
+
readonly webhooks: typeof Webhooks;
|
|
6716
7284
|
/** The underlying HTTP client, for interceptors or one-off requests. */
|
|
6717
7285
|
readonly http: Client;
|
|
6718
7286
|
constructor({ token, headers }?: NaturaliClientOptions);
|
|
6719
7287
|
}
|
|
6720
7288
|
//#endregion
|
|
6721
|
-
export { type Acknowledgement, type AddSessionMessageData, type AddSessionMessageError, type AddSessionMessageErrors, type AddSessionMessageResponse, type AddSessionMessageResponses, type Agent, type AgentCreate, type AgentId, type AgentList, type AgentUpdate, Agents, type ApiKeyCreate, type ApiKeyCreated, type ApiKeyId, type ApiKeyList, type ApiKeyRecord, type ApiKeyUpdate, ApiKeys, type AssigneeFilter, Auth, type AuthSession, type Board, type BoardCompletionRule, type BoardCreate, type BoardDispatch, type BoardId, type BoardIdFilter, type BoardList, type BoardOnEnter, type BoardState, type BoardTransition, type BoardUpdate, Boards, type Channel, type ChannelBinding, type ChannelBindingSet, type ChannelCreate, type ChannelId, type ChannelList, type ChannelUpdate, Channels, type ClientOptions, type CollectionId, type Contact, type ContactConversation, type ContactConversationList, type ContactCreate, type ContactId, type ContactIdentity, type ContactIdentityCreate, type ContactList, type ContactMerge, type ContactMergeList, type ContactMergeRequest, type ContactMergeResult, type ContactUpdate, Contacts, type Conversation, type ConversationId, type ConversationList, type ConversationMessage, type ConversationMessageList, type CreateAgentData, type CreateAgentError, type CreateAgentErrors, type CreateAgentResponse, type CreateAgentResponses, type CreateApiKeyData, type CreateApiKeyError, type CreateApiKeyErrors, type CreateApiKeyResponse, type CreateApiKeyResponses, type CreateBoardData, type CreateBoardError, type CreateBoardErrors, type CreateBoardResponse, type CreateBoardResponses, type CreateChannelData, type CreateChannelError, type CreateChannelErrors, type CreateChannelResponse, type CreateChannelResponses, type CreateContactData, type CreateContactError, type CreateContactErrors, type CreateContactIdentityData, type CreateContactIdentityError, type CreateContactIdentityErrors, type CreateContactIdentityResponse, type CreateContactIdentityResponses, type CreateContactResponse, type CreateContactResponses, type CreateGenerationData, type CreateGenerationError, type CreateGenerationErrors, type CreateGenerationResponse, type CreateGenerationResponses, type CreateKnowledgeCollectionData, type CreateKnowledgeCollectionError, type CreateKnowledgeCollectionErrors, type CreateKnowledgeCollectionResponse, type CreateKnowledgeCollectionResponses, type CreateKnowledgeDocumentData, type CreateKnowledgeDocumentError, type CreateKnowledgeDocumentErrors, type CreateKnowledgeDocumentResponse, type CreateKnowledgeDocumentResponses, type CreateProjectData, type CreateProjectError, type CreateProjectErrors, type CreateProjectResponse, type CreateProjectResponses, type CreateProviderData, type CreateProviderError, type CreateProviderErrors, type CreateProviderResponse, type CreateProviderResponses, type CreateSessionData, type CreateSessionError, type CreateSessionErrors, type CreateSessionResponse, type CreateSessionResponses, type CreateTaskData, type CreateTaskError, type CreateTaskErrors, type CreateTaskResponse, type CreateTaskResponses, type CreateToolData, type CreateToolError, type CreateToolErrors, type CreateToolResponse, type CreateToolResponses, type Cursor, type DeleteAgentData, type DeleteAgentError, type DeleteAgentErrors, type DeleteAgentResponse, type DeleteAgentResponses, type DeleteApiKeyData, type DeleteApiKeyError, type DeleteApiKeyErrors, type DeleteApiKeyResponse, type DeleteApiKeyResponses, type DeleteBoardData, type DeleteBoardError, type DeleteBoardErrors, type DeleteBoardResponse, type DeleteBoardResponses, type DeleteChannelBindingData, type DeleteChannelBindingError, type DeleteChannelBindingErrors, type DeleteChannelBindingResponse, type DeleteChannelBindingResponses, type DeleteChannelData, type DeleteChannelError, type DeleteChannelErrors, type DeleteChannelResponse, type DeleteChannelResponses, type DeleteContactData, type DeleteContactError, type DeleteContactErrors, type DeleteContactIdentityData, type DeleteContactIdentityError, type DeleteContactIdentityErrors, type DeleteContactIdentityResponse, type DeleteContactIdentityResponses, type DeleteContactResponse, type DeleteContactResponses, type DeleteKnowledgeCollectionData, type DeleteKnowledgeCollectionError, type DeleteKnowledgeCollectionErrors, type DeleteKnowledgeCollectionResponse, type DeleteKnowledgeCollectionResponses, type DeleteKnowledgeDocumentData, type DeleteKnowledgeDocumentError, type DeleteKnowledgeDocumentErrors, type DeleteKnowledgeDocumentResponse, type DeleteKnowledgeDocumentResponses, type DeleteProjectData, type DeleteProjectError, type DeleteProjectErrors, type DeleteProjectResponse, type DeleteProjectResponses, type DeleteProviderData, type DeleteProviderError, type DeleteProviderErrors, type DeleteProviderResponse, type DeleteProviderResponses, type DeleteTaskData, type DeleteTaskError, type DeleteTaskErrors, type DeleteTaskResponse, type DeleteTaskResponses, type DeleteToolData, type DeleteToolError, type DeleteToolErrors, type DeleteToolResponse, type DeleteToolResponses, type DiscordModes, type DocumentId, type ErrorResponse, type Force, type GenerateSessionResponseData, type GenerateSessionResponseError, type GenerateSessionResponseErrors, type GenerateSessionResponseResponse, type GenerateSessionResponseResponses, type Generation, type GenerationCreate, type GenerationId, type GenerationList, type GenerationResult, type GenerationStatus, type GenerationUsage, Generations, type GetAgentData, type GetAgentError, type GetAgentErrors, type GetAgentResponse, type GetAgentResponses, type GetApiKeyData, type GetApiKeyError, type GetApiKeyErrors, type GetApiKeyResponse, type GetApiKeyResponses, type GetBoardData, type GetBoardError, type GetBoardErrors, type GetBoardResponse, type GetBoardResponses, type GetChannelBindingData, type GetChannelBindingError, type GetChannelBindingErrors, type GetChannelBindingResponse, type GetChannelBindingResponses, type GetChannelConversationData, type GetChannelConversationError, type GetChannelConversationErrors, type GetChannelConversationResponse, type GetChannelConversationResponses, type GetChannelData, type GetChannelError, type GetChannelErrors, type GetChannelResponse, type GetChannelResponses, type GetContactData, type GetContactError, type GetContactErrors, type GetContactResponse, type GetContactResponses, type GetCurrentUserData, type GetCurrentUserError, type GetCurrentUserErrors, type GetCurrentUserResponse, type GetCurrentUserResponses, type GetGenerationData, type GetGenerationError, type GetGenerationErrors, type GetGenerationResponse, type GetGenerationResponses, type GetGenerationUsageData, type GetGenerationUsageError, type GetGenerationUsageErrors, type GetGenerationUsageResponse, type GetGenerationUsageResponses, type GetKnowledgeCollectionData, type GetKnowledgeCollectionError, type GetKnowledgeCollectionErrors, type GetKnowledgeCollectionResponse, type GetKnowledgeCollectionResponses, type GetKnowledgeDocumentData, type GetKnowledgeDocumentError, type GetKnowledgeDocumentErrors, type GetKnowledgeDocumentResponse, type GetKnowledgeDocumentResponses, type GetModelData, type GetModelError, type GetModelErrors, type GetModelResponse, type GetModelResponses, type GetProjectData, type GetProjectError, type GetProjectErrors, type GetProjectResponse, type GetProjectResponses, type GetProjectUsageData, type GetProjectUsageError, type GetProjectUsageErrors, type GetProjectUsageResponse, type GetProjectUsageResponses, type GetProviderData, type GetProviderError, type GetProviderErrors, type GetProviderResponse, type GetProviderResponses, type GetSessionData, type GetSessionError, type GetSessionErrors, type GetSessionResponse, type GetSessionResponses, type GetTaskData, type GetTaskError, type GetTaskErrors, type GetTaskResponse, type GetTaskResponses, type GetToolData, type GetToolError, type GetToolErrors, type GetToolResponse, type GetToolResponses, type GetTraceData, type GetTraceError, type GetTraceErrors, type GetTraceResponse, type GetTraceResponses, type GetTraceTreeData, type GetTraceTreeError, type GetTraceTreeErrors, type GetTraceTreeResponse, type GetTraceTreeResponses, type HttpExecute, type IdempotencyKey, type IdentityId, Knowledge, type KnowledgeChunk, type KnowledgeCollection, type KnowledgeCollectionCreate, type KnowledgeCollectionList, type KnowledgeCollectionUpdate, type KnowledgeDocument, type KnowledgeDocumentCreate, type KnowledgeDocumentList, type KnowledgeQueryRequest, type KnowledgeQueryResult, type Limit, type ListAgentGenerationsData, type ListAgentGenerationsError, type ListAgentGenerationsErrors, type ListAgentGenerationsResponse, type ListAgentGenerationsResponses, type ListAgentsData, type ListAgentsError, type ListAgentsErrors, type ListAgentsResponse, type ListAgentsResponses, type ListApiKeysData, type ListApiKeysError, type ListApiKeysErrors, type ListApiKeysResponse, type ListApiKeysResponses, type ListBoardsData, type ListBoardsError, type ListBoardsErrors, type ListBoardsResponse, type ListBoardsResponses, type ListChannelConversationMessagesData, type ListChannelConversationMessagesError, type ListChannelConversationMessagesErrors, type ListChannelConversationMessagesResponse, type ListChannelConversationMessagesResponses, type ListChannelConversationsData, type ListChannelConversationsError, type ListChannelConversationsErrors, type ListChannelConversationsResponse, type ListChannelConversationsResponses, type ListChannelsData, type ListChannelsError, type ListChannelsErrors, type ListChannelsResponse, type ListChannelsResponses, type ListContactConversationsData, type ListContactConversationsError, type ListContactConversationsErrors, type ListContactConversationsResponse, type ListContactConversationsResponses, type ListContactMergesData, type ListContactMergesError, type ListContactMergesErrors, type ListContactMergesResponse, type ListContactMergesResponses, type ListContactsData, type ListContactsError, type ListContactsErrors, type ListContactsResponse, type ListContactsResponses, type ListKnowledgeCollectionsData, type ListKnowledgeCollectionsError, type ListKnowledgeCollectionsErrors, type ListKnowledgeCollectionsResponse, type ListKnowledgeCollectionsResponses, type ListKnowledgeDocumentsData, type ListKnowledgeDocumentsError, type ListKnowledgeDocumentsErrors, type ListKnowledgeDocumentsResponse, type ListKnowledgeDocumentsResponses, type ListModelsData, type ListModelsError, type ListModelsErrors, type ListModelsResponse, type ListModelsResponses, type ListProjectsData, type ListProjectsError, type ListProjectsErrors, type ListProjectsResponse, type ListProjectsResponses, type ListProvidersData, type ListProvidersError, type ListProvidersErrors, type ListProvidersResponse, type ListProvidersResponses, type ListTaskTransitionsData, type ListTaskTransitionsError, type ListTaskTransitionsErrors, type ListTaskTransitionsResponse, type ListTaskTransitionsResponses, type ListTasksData, type ListTasksError, type ListTasksErrors, type ListTasksResponse, type ListTasksResponses, type ListToolsData, type ListToolsError, type ListToolsErrors, type ListToolsResponse, type ListToolsResponses, type ListTraceGenerationsData, type ListTraceGenerationsError, type ListTraceGenerationsErrors, type ListTraceGenerationsResponse, type ListTraceGenerationsResponses, type ListTracesData, type ListTracesError, type ListTracesErrors, type ListTracesResponse, type ListTracesResponses, type LogoutData, type LogoutError, type LogoutErrors, type LogoutRequest, type LogoutResponse, type LogoutResponses, type McpConfig, type MergeContactData, type MergeContactError, type MergeContactErrors, type MergeContactResponse, type MergeContactResponses, type MergeId, type Message, type MessagesLimit, type Model, type ModelList, Models, NaturaliClient, type NaturaliClientOptions, type Offset, type Options, type Project, type ProjectCreate, type ProjectId, type ProjectList, type ProjectUpdate, type ProjectUsage, Projects, type Provider, type ProviderCreate, type ProviderId, type ProviderList, type ProviderUpdate, Providers, type QueryKnowledgeCollectionData, type QueryKnowledgeCollectionError, type QueryKnowledgeCollectionErrors, type QueryKnowledgeCollectionResponse, type QueryKnowledgeCollectionResponses, type RefreshRequest, type RefreshSessionData, type RefreshSessionError, type RefreshSessionErrors, type RefreshSessionResponse, type RefreshSessionResponses, type ReingestKnowledgeDocumentData, type ReingestKnowledgeDocumentError, type ReingestKnowledgeDocumentErrors, type ReingestKnowledgeDocumentResponse, type ReingestKnowledgeDocumentResponses, type RequestSignInCodeData, type RequestSignInCodeError, type RequestSignInCodeErrors, type RequestSignInCodeResponse, type RequestSignInCodeResponses, type RevertContactMergeData, type RevertContactMergeError, type RevertContactMergeErrors, type RevertContactMergeResponse, type RevertContactMergeResponses, type RotateApiKeyData, type RotateApiKeyError, type RotateApiKeyErrors, type RotateApiKeyResponse, type RotateApiKeyResponses, type Session, type SessionCreate, type SessionGenerate, type SessionGeneration, type SessionId, type SessionMessage, type SessionMessageCreate, Sessions, type SetChannelBindingData, type SetChannelBindingError, type SetChannelBindingErrors, type SetChannelBindingResponse, type SetChannelBindingResponses, type SignInCodeRequest, type SignInCodeVerify, type StateFilter, type StatusFilter, type Task, type TaskCreate, type TaskId, type TaskList, type TaskTransitionList, type TaskTransitionRecord, type TaskTransitionRequest, type TaskUpdate, Tasks, type Tool, type ToolChoice, type ToolContext, type ToolCreate, type ToolId, type ToolList, type ToolUpdate, Tools, type Trace, type TraceId, type TraceList, type TraceTreeNode, Traces, type TransitionTaskData, type TransitionTaskError, type TransitionTaskErrors, type TransitionTaskResponse, type TransitionTaskResponses, type UpdateAgentData, type UpdateAgentError, type UpdateAgentErrors, type UpdateAgentResponse, type UpdateAgentResponses, type UpdateApiKeyData, type UpdateApiKeyError, type UpdateApiKeyErrors, type UpdateApiKeyResponse, type UpdateApiKeyResponses, type UpdateBoardData, type UpdateBoardError, type UpdateBoardErrors, type UpdateBoardResponse, type UpdateBoardResponses, type UpdateChannelData, type UpdateChannelError, type UpdateChannelErrors, type UpdateChannelResponse, type UpdateChannelResponses, type UpdateContactData, type UpdateContactError, type UpdateContactErrors, type UpdateContactResponse, type UpdateContactResponses, type UpdateKnowledgeCollectionData, type UpdateKnowledgeCollectionError, type UpdateKnowledgeCollectionErrors, type UpdateKnowledgeCollectionResponse, type UpdateKnowledgeCollectionResponses, type UpdateProjectData, type UpdateProjectError, type UpdateProjectErrors, type UpdateProjectResponse, type UpdateProjectResponses, type UpdateProviderData, type UpdateProviderError, type UpdateProviderErrors, type UpdateProviderResponse, type UpdateProviderResponses, type UpdateTaskData, type UpdateTaskError, type UpdateTaskErrors, type UpdateTaskResponse, type UpdateTaskResponses, type UpdateToolData, type UpdateToolError, type UpdateToolErrors, type UpdateToolResponse, type UpdateToolResponses, type UsageGroup, type UsageTokens, type User, type VerifySignInCodeData, type VerifySignInCodeError, type VerifySignInCodeErrors, type VerifySignInCodeResponse, type VerifySignInCodeResponses, createClient, createConfig };
|
|
7289
|
+
export { type Acknowledgement, type AddSessionMessageData, type AddSessionMessageError, type AddSessionMessageErrors, type AddSessionMessageResponse, type AddSessionMessageResponses, type Agent, type AgentCreate, type AgentId, type AgentList, type AgentUpdate, Agents, type ApiKeyCreate, type ApiKeyCreated, type ApiKeyId, type ApiKeyList, type ApiKeyRecord, type ApiKeyUpdate, ApiKeys, type AssigneeFilter, Auth, type AuthSession, type Board, type BoardCompletionRule, type BoardCreate, type BoardDispatch, type BoardId, type BoardIdFilter, type BoardList, type BoardOnEnter, type BoardState, type BoardTransition, type BoardUpdate, Boards, type Channel, type ChannelBinding, type ChannelBindingSet, type ChannelCreate, type ChannelId, type ChannelList, type ChannelUpdate, Channels, type ClientOptions, type CollectionId, type Contact, type ContactConversation, type ContactConversationList, type ContactCreate, type ContactId, type ContactIdentity, type ContactIdentityCreate, type ContactList, type ContactMerge, type ContactMergeList, type ContactMergeRequest, type ContactMergeResult, type ContactUpdate, Contacts, type Conversation, type ConversationId, type ConversationList, type ConversationMessage, type ConversationMessageList, type CreateAgentData, type CreateAgentError, type CreateAgentErrors, type CreateAgentResponse, type CreateAgentResponses, type CreateApiKeyData, type CreateApiKeyError, type CreateApiKeyErrors, type CreateApiKeyResponse, type CreateApiKeyResponses, type CreateBoardData, type CreateBoardError, type CreateBoardErrors, type CreateBoardResponse, type CreateBoardResponses, type CreateChannelData, type CreateChannelError, type CreateChannelErrors, type CreateChannelResponse, type CreateChannelResponses, type CreateContactData, type CreateContactError, type CreateContactErrors, type CreateContactIdentityData, type CreateContactIdentityError, type CreateContactIdentityErrors, type CreateContactIdentityResponse, type CreateContactIdentityResponses, type CreateContactResponse, type CreateContactResponses, type CreateGenerationData, type CreateGenerationError, type CreateGenerationErrors, type CreateGenerationResponse, type CreateGenerationResponses, type CreateKnowledgeCollectionData, type CreateKnowledgeCollectionError, type CreateKnowledgeCollectionErrors, type CreateKnowledgeCollectionResponse, type CreateKnowledgeCollectionResponses, type CreateKnowledgeDocumentData, type CreateKnowledgeDocumentError, type CreateKnowledgeDocumentErrors, type CreateKnowledgeDocumentResponse, type CreateKnowledgeDocumentResponses, type CreateProjectData, type CreateProjectError, type CreateProjectErrors, type CreateProjectResponse, type CreateProjectResponses, type CreateProviderData, type CreateProviderError, type CreateProviderErrors, type CreateProviderResponse, type CreateProviderResponses, type CreateSessionData, type CreateSessionError, type CreateSessionErrors, type CreateSessionResponse, type CreateSessionResponses, type CreateTaskData, type CreateTaskError, type CreateTaskErrors, type CreateTaskResponse, type CreateTaskResponses, type CreateToolData, type CreateToolError, type CreateToolErrors, type CreateToolResponse, type CreateToolResponses, type CreateWebhookData, type CreateWebhookError, type CreateWebhookErrors, type CreateWebhookResponse, type CreateWebhookResponses, type Cursor, type DeleteAgentData, type DeleteAgentError, type DeleteAgentErrors, type DeleteAgentResponse, type DeleteAgentResponses, type DeleteApiKeyData, type DeleteApiKeyError, type DeleteApiKeyErrors, type DeleteApiKeyResponse, type DeleteApiKeyResponses, type DeleteBoardData, type DeleteBoardError, type DeleteBoardErrors, type DeleteBoardResponse, type DeleteBoardResponses, type DeleteChannelBindingData, type DeleteChannelBindingError, type DeleteChannelBindingErrors, type DeleteChannelBindingResponse, type DeleteChannelBindingResponses, type DeleteChannelData, type DeleteChannelError, type DeleteChannelErrors, type DeleteChannelResponse, type DeleteChannelResponses, type DeleteContactData, type DeleteContactError, type DeleteContactErrors, type DeleteContactIdentityData, type DeleteContactIdentityError, type DeleteContactIdentityErrors, type DeleteContactIdentityResponse, type DeleteContactIdentityResponses, type DeleteContactResponse, type DeleteContactResponses, type DeleteKnowledgeCollectionData, type DeleteKnowledgeCollectionError, type DeleteKnowledgeCollectionErrors, type DeleteKnowledgeCollectionResponse, type DeleteKnowledgeCollectionResponses, type DeleteKnowledgeDocumentData, type DeleteKnowledgeDocumentError, type DeleteKnowledgeDocumentErrors, type DeleteKnowledgeDocumentResponse, type DeleteKnowledgeDocumentResponses, type DeleteProjectData, type DeleteProjectError, type DeleteProjectErrors, type DeleteProjectResponse, type DeleteProjectResponses, type DeleteProviderData, type DeleteProviderError, type DeleteProviderErrors, type DeleteProviderResponse, type DeleteProviderResponses, type DeleteTaskData, type DeleteTaskError, type DeleteTaskErrors, type DeleteTaskResponse, type DeleteTaskResponses, type DeleteToolData, type DeleteToolError, type DeleteToolErrors, type DeleteToolResponse, type DeleteToolResponses, type DeleteWebhookData, type DeleteWebhookError, type DeleteWebhookErrors, type DeleteWebhookResponse, type DeleteWebhookResponses, type DeliveryId, type DiscordModes, type DocumentId, type ErrorResponse, type Event, type EventSubscription, type EventType, type Force, type GenerateSessionResponseData, type GenerateSessionResponseError, type GenerateSessionResponseErrors, type GenerateSessionResponseResponse, type GenerateSessionResponseResponses, type Generation, type GenerationCreate, type GenerationId, type GenerationList, type GenerationResult, type GenerationStatus, type GenerationUsage, Generations, type GetAgentData, type GetAgentError, type GetAgentErrors, type GetAgentResponse, type GetAgentResponses, type GetApiKeyData, type GetApiKeyError, type GetApiKeyErrors, type GetApiKeyResponse, type GetApiKeyResponses, type GetBoardData, type GetBoardError, type GetBoardErrors, type GetBoardResponse, type GetBoardResponses, type GetChannelBindingData, type GetChannelBindingError, type GetChannelBindingErrors, type GetChannelBindingResponse, type GetChannelBindingResponses, type GetChannelConversationData, type GetChannelConversationError, type GetChannelConversationErrors, type GetChannelConversationResponse, type GetChannelConversationResponses, type GetChannelData, type GetChannelError, type GetChannelErrors, type GetChannelResponse, type GetChannelResponses, type GetContactData, type GetContactError, type GetContactErrors, type GetContactResponse, type GetContactResponses, type GetCurrentUserData, type GetCurrentUserError, type GetCurrentUserErrors, type GetCurrentUserResponse, type GetCurrentUserResponses, type GetGenerationData, type GetGenerationError, type GetGenerationErrors, type GetGenerationResponse, type GetGenerationResponses, type GetGenerationUsageData, type GetGenerationUsageError, type GetGenerationUsageErrors, type GetGenerationUsageResponse, type GetGenerationUsageResponses, type GetKnowledgeCollectionData, type GetKnowledgeCollectionError, type GetKnowledgeCollectionErrors, type GetKnowledgeCollectionResponse, type GetKnowledgeCollectionResponses, type GetKnowledgeDocumentData, type GetKnowledgeDocumentError, type GetKnowledgeDocumentErrors, type GetKnowledgeDocumentResponse, type GetKnowledgeDocumentResponses, type GetModelData, type GetModelError, type GetModelErrors, type GetModelResponse, type GetModelResponses, type GetProjectData, type GetProjectError, type GetProjectErrors, type GetProjectResponse, type GetProjectResponses, type GetProjectUsageData, type GetProjectUsageError, type GetProjectUsageErrors, type GetProjectUsageResponse, type GetProjectUsageResponses, type GetProviderData, type GetProviderError, type GetProviderErrors, type GetProviderResponse, type GetProviderResponses, type GetSessionData, type GetSessionError, type GetSessionErrors, type GetSessionResponse, type GetSessionResponses, type GetTaskData, type GetTaskError, type GetTaskErrors, type GetTaskResponse, type GetTaskResponses, type GetToolData, type GetToolError, type GetToolErrors, type GetToolResponse, type GetToolResponses, type GetTraceData, type GetTraceError, type GetTraceErrors, type GetTraceResponse, type GetTraceResponses, type GetTraceTreeData, type GetTraceTreeError, type GetTraceTreeErrors, type GetTraceTreeResponse, type GetTraceTreeResponses, type GetWebhookData, type GetWebhookDeliveryData, type GetWebhookDeliveryError, type GetWebhookDeliveryErrors, type GetWebhookDeliveryResponse, type GetWebhookDeliveryResponses, type GetWebhookError, type GetWebhookErrors, type GetWebhookResponse, type GetWebhookResponses, type HttpExecute, type IdempotencyKey, type IdentityId, Knowledge, type KnowledgeChunk, type KnowledgeCollection, type KnowledgeCollectionCreate, type KnowledgeCollectionList, type KnowledgeCollectionUpdate, type KnowledgeDocument, type KnowledgeDocumentCreate, type KnowledgeDocumentList, type KnowledgeQueryRequest, type KnowledgeQueryResult, type Limit, type ListAgentGenerationsData, type ListAgentGenerationsError, type ListAgentGenerationsErrors, type ListAgentGenerationsResponse, type ListAgentGenerationsResponses, type ListAgentsData, type ListAgentsError, type ListAgentsErrors, type ListAgentsResponse, type ListAgentsResponses, type ListApiKeysData, type ListApiKeysError, type ListApiKeysErrors, type ListApiKeysResponse, type ListApiKeysResponses, type ListBoardsData, type ListBoardsError, type ListBoardsErrors, type ListBoardsResponse, type ListBoardsResponses, type ListChannelConversationMessagesData, type ListChannelConversationMessagesError, type ListChannelConversationMessagesErrors, type ListChannelConversationMessagesResponse, type ListChannelConversationMessagesResponses, type ListChannelConversationsData, type ListChannelConversationsError, type ListChannelConversationsErrors, type ListChannelConversationsResponse, type ListChannelConversationsResponses, type ListChannelsData, type ListChannelsError, type ListChannelsErrors, type ListChannelsResponse, type ListChannelsResponses, type ListContactConversationsData, type ListContactConversationsError, type ListContactConversationsErrors, type ListContactConversationsResponse, type ListContactConversationsResponses, type ListContactMergesData, type ListContactMergesError, type ListContactMergesErrors, type ListContactMergesResponse, type ListContactMergesResponses, type ListContactsData, type ListContactsError, type ListContactsErrors, type ListContactsResponse, type ListContactsResponses, type ListKnowledgeCollectionsData, type ListKnowledgeCollectionsError, type ListKnowledgeCollectionsErrors, type ListKnowledgeCollectionsResponse, type ListKnowledgeCollectionsResponses, type ListKnowledgeDocumentsData, type ListKnowledgeDocumentsError, type ListKnowledgeDocumentsErrors, type ListKnowledgeDocumentsResponse, type ListKnowledgeDocumentsResponses, type ListModelsData, type ListModelsError, type ListModelsErrors, type ListModelsResponse, type ListModelsResponses, type ListProjectsData, type ListProjectsError, type ListProjectsErrors, type ListProjectsResponse, type ListProjectsResponses, type ListProvidersData, type ListProvidersError, type ListProvidersErrors, type ListProvidersResponse, type ListProvidersResponses, type ListTaskTransitionsData, type ListTaskTransitionsError, type ListTaskTransitionsErrors, type ListTaskTransitionsResponse, type ListTaskTransitionsResponses, type ListTasksData, type ListTasksError, type ListTasksErrors, type ListTasksResponse, type ListTasksResponses, type ListToolsData, type ListToolsError, type ListToolsErrors, type ListToolsResponse, type ListToolsResponses, type ListTraceGenerationsData, type ListTraceGenerationsError, type ListTraceGenerationsErrors, type ListTraceGenerationsResponse, type ListTraceGenerationsResponses, type ListTracesData, type ListTracesError, type ListTracesErrors, type ListTracesResponse, type ListTracesResponses, type ListWebhookDeliveriesData, type ListWebhookDeliveriesError, type ListWebhookDeliveriesErrors, type ListWebhookDeliveriesResponse, type ListWebhookDeliveriesResponses, type ListWebhooksData, type ListWebhooksError, type ListWebhooksErrors, type ListWebhooksResponse, type ListWebhooksResponses, type LogoutData, type LogoutError, type LogoutErrors, type LogoutRequest, type LogoutResponse, type LogoutResponses, type McpConfig, type MergeContactData, type MergeContactError, type MergeContactErrors, type MergeContactResponse, type MergeContactResponses, type MergeId, type Message, type MessagesLimit, type Model, type ModelList, Models, NaturaliClient, type NaturaliClientOptions, type Offset, type Options, type Project, type ProjectCreate, type ProjectId, type ProjectList, type ProjectUpdate, type ProjectUsage, Projects, type Provider, type ProviderCreate, type ProviderId, type ProviderList, type ProviderUpdate, Providers, type QueryKnowledgeCollectionData, type QueryKnowledgeCollectionError, type QueryKnowledgeCollectionErrors, type QueryKnowledgeCollectionResponse, type QueryKnowledgeCollectionResponses, type RedeliverWebhookDeliveryData, type RedeliverWebhookDeliveryError, type RedeliverWebhookDeliveryErrors, type RedeliverWebhookDeliveryResponse, type RedeliverWebhookDeliveryResponses, type RefreshRequest, type RefreshSessionData, type RefreshSessionError, type RefreshSessionErrors, type RefreshSessionResponse, type RefreshSessionResponses, type ReingestKnowledgeDocumentData, type ReingestKnowledgeDocumentError, type ReingestKnowledgeDocumentErrors, type ReingestKnowledgeDocumentResponse, type ReingestKnowledgeDocumentResponses, type RequestSignInCodeData, type RequestSignInCodeError, type RequestSignInCodeErrors, type RequestSignInCodeResponse, type RequestSignInCodeResponses, type RevertContactMergeData, type RevertContactMergeError, type RevertContactMergeErrors, type RevertContactMergeResponse, type RevertContactMergeResponses, type RotateApiKeyData, type RotateApiKeyError, type RotateApiKeyErrors, type RotateApiKeyResponse, type RotateApiKeyResponses, type RotateWebhookSecretData, type RotateWebhookSecretError, type RotateWebhookSecretErrors, type RotateWebhookSecretResponse, type RotateWebhookSecretResponses, type Session, type SessionCreate, type SessionGenerate, type SessionGeneration, type SessionId, type SessionMessage, type SessionMessageCreate, Sessions, type SetChannelBindingData, type SetChannelBindingError, type SetChannelBindingErrors, type SetChannelBindingResponse, type SetChannelBindingResponses, type SignInCodeRequest, type SignInCodeVerify, type StateFilter, type StatusFilter, type Task, type TaskCreate, type TaskId, type TaskList, type TaskTransitionList, type TaskTransitionRecord, type TaskTransitionRequest, type TaskUpdate, Tasks, type Tool, type ToolChoice, type ToolContext, type ToolCreate, type ToolId, type ToolList, type ToolUpdate, Tools, type Trace, type TraceId, type TraceList, type TraceTreeNode, Traces, type TransitionTaskData, type TransitionTaskError, type TransitionTaskErrors, type TransitionTaskResponse, type TransitionTaskResponses, type UpdateAgentData, type UpdateAgentError, type UpdateAgentErrors, type UpdateAgentResponse, type UpdateAgentResponses, type UpdateApiKeyData, type UpdateApiKeyError, type UpdateApiKeyErrors, type UpdateApiKeyResponse, type UpdateApiKeyResponses, type UpdateBoardData, type UpdateBoardError, type UpdateBoardErrors, type UpdateBoardResponse, type UpdateBoardResponses, type UpdateChannelData, type UpdateChannelError, type UpdateChannelErrors, type UpdateChannelResponse, type UpdateChannelResponses, type UpdateContactData, type UpdateContactError, type UpdateContactErrors, type UpdateContactResponse, type UpdateContactResponses, type UpdateKnowledgeCollectionData, type UpdateKnowledgeCollectionError, type UpdateKnowledgeCollectionErrors, type UpdateKnowledgeCollectionResponse, type UpdateKnowledgeCollectionResponses, type UpdateProjectData, type UpdateProjectError, type UpdateProjectErrors, type UpdateProjectResponse, type UpdateProjectResponses, type UpdateProviderData, type UpdateProviderError, type UpdateProviderErrors, type UpdateProviderResponse, type UpdateProviderResponses, type UpdateTaskData, type UpdateTaskError, type UpdateTaskErrors, type UpdateTaskResponse, type UpdateTaskResponses, type UpdateToolData, type UpdateToolError, type UpdateToolErrors, type UpdateToolResponse, type UpdateToolResponses, type UpdateWebhookData, type UpdateWebhookError, type UpdateWebhookErrors, type UpdateWebhookResponse, type UpdateWebhookResponses, type UsageGroup, type UsageTokens, type User, type VerifySignInCodeData, type VerifySignInCodeError, type VerifySignInCodeErrors, type VerifySignInCodeResponse, type VerifySignInCodeResponses, type Webhook, type WebhookCreate, type WebhookDelivery, type WebhookDeliveryList, type WebhookId, type WebhookList, type WebhookUpdate, type WebhookWithSecret, Webhooks, createClient, createConfig };
|