@deepraxis/sdk 0.1.0-dev.9d9e2b6 → 0.1.0-dev.d939e0f
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/METHODS.md +32 -1
- package/dist/generated/index.d.ts +2 -2
- package/dist/generated/index.js +1 -1
- package/dist/generated/sdk.gen.d.ts +47 -1
- package/dist/generated/sdk.gen.js +118 -0
- package/dist/generated/types.gen.d.ts +636 -8
- package/dist/operations.generated.d.ts +120 -2
- package/dist/operations.generated.js +152 -8
- package/dist/resources.generated.d.ts +136 -0
- package/dist/resources.generated.js +16 -0
- package/package.json +1 -1
|
@@ -284,6 +284,103 @@ export declare const operations: readonly [{
|
|
|
284
284
|
readonly sdkName: "agent_id";
|
|
285
285
|
}];
|
|
286
286
|
readonly query: readonly [];
|
|
287
|
+
}, {
|
|
288
|
+
readonly resource: "agent.agents.endUsers";
|
|
289
|
+
readonly method: "list";
|
|
290
|
+
readonly summary: "List End Users";
|
|
291
|
+
readonly description: "List users who have sessions or token issuance history on a service agent.\n\nOrdered by last_active_at and external_user_id descending. q is a case-sensitive literal prefix, including underscores. limit is 1–100, default 20. Reuse next_page with the same organization, agent, q and limit. Preemptively blocked users without history do not appear. End-user credentials and inaccessible or personal agents return 404.";
|
|
292
|
+
readonly http: "GET";
|
|
293
|
+
readonly path: "/agent/v1/agents/{agent_id}/end_users";
|
|
294
|
+
readonly streaming: "no";
|
|
295
|
+
readonly pagination: false;
|
|
296
|
+
readonly pathParams: readonly [{
|
|
297
|
+
readonly name: "agent_id";
|
|
298
|
+
readonly sdkName: "agent_id";
|
|
299
|
+
}];
|
|
300
|
+
readonly query: readonly [{
|
|
301
|
+
readonly name: "limit";
|
|
302
|
+
readonly type: "integer";
|
|
303
|
+
readonly required: false;
|
|
304
|
+
readonly description: "Maximum users per page; defaults to 20.";
|
|
305
|
+
}, {
|
|
306
|
+
readonly name: "page";
|
|
307
|
+
readonly type: "string";
|
|
308
|
+
readonly required: false;
|
|
309
|
+
readonly description: "next_page from the previous response with the same agent, q and limit.";
|
|
310
|
+
}, {
|
|
311
|
+
readonly name: "q";
|
|
312
|
+
readonly type: "string";
|
|
313
|
+
readonly required: false;
|
|
314
|
+
readonly description: "Case-sensitive literal prefix of external_user_id; omit or use an empty string for all users.";
|
|
315
|
+
}];
|
|
316
|
+
}, {
|
|
317
|
+
readonly resource: "agent.agents.endUsers";
|
|
318
|
+
readonly method: "retrieve";
|
|
319
|
+
readonly summary: "Get End User";
|
|
320
|
+
readonly description: "Inspect one end user and their twenty most recently updated sessions.\n\nUse external_user_id from listing or your host application. Users without session or issuance history return 404, including preemptively blocked users. End-user credentials and inaccessible or personal agents return 404.";
|
|
321
|
+
readonly http: "GET";
|
|
322
|
+
readonly path: "/agent/v1/agents/{agent_id}/end_users/{external_user_id}";
|
|
323
|
+
readonly streaming: "no";
|
|
324
|
+
readonly pagination: false;
|
|
325
|
+
readonly pathParams: readonly [{
|
|
326
|
+
readonly name: "agent_id";
|
|
327
|
+
readonly sdkName: "agent_id";
|
|
328
|
+
}, {
|
|
329
|
+
readonly name: "external_user_id";
|
|
330
|
+
readonly sdkName: "external_user_id";
|
|
331
|
+
}];
|
|
332
|
+
readonly query: readonly [];
|
|
333
|
+
}, {
|
|
334
|
+
readonly resource: "agent.agents.endUsers.block";
|
|
335
|
+
readonly method: "create";
|
|
336
|
+
readonly summary: "Block End User";
|
|
337
|
+
readonly description: "Block token issuance and session creation, then revoke existing tokens for an end user.\n\nMay block a user before any history exists; timestamps are then null and counts and cost are zero. Requires an embed policy, otherwise returns 409 with setup guidance. Deduplicates the policy blocklist and retains its 1000-user maximum. If revocation returns 502, the user remains blocked; retry to finish revocation. Repeats keep the user blocked and revoke any remaining grants. End-user credentials and inaccessible or personal agents return 404.";
|
|
338
|
+
readonly http: "POST";
|
|
339
|
+
readonly path: "/agent/v1/agents/{agent_id}/end_users/{external_user_id}/block";
|
|
340
|
+
readonly streaming: "no";
|
|
341
|
+
readonly pagination: false;
|
|
342
|
+
readonly pathParams: readonly [{
|
|
343
|
+
readonly name: "agent_id";
|
|
344
|
+
readonly sdkName: "agent_id";
|
|
345
|
+
}, {
|
|
346
|
+
readonly name: "external_user_id";
|
|
347
|
+
readonly sdkName: "external_user_id";
|
|
348
|
+
}];
|
|
349
|
+
readonly query: readonly [];
|
|
350
|
+
}, {
|
|
351
|
+
readonly resource: "agent.agents.endUsers.revokeTokens";
|
|
352
|
+
readonly method: "create";
|
|
353
|
+
readonly summary: "Revoke End User Tokens";
|
|
354
|
+
readonly description: "Revoke all issued tokens for an end user and terminate their open embed streams.\n\nRevokes credentials before marking grants revoked. Upstream failure returns 502 without changing grant revocation timestamps. Returns the count of newly revoked grants; a repeat without new grants returns zero. Does not block future issuance. End-user credentials and inaccessible or personal agents return 404.";
|
|
355
|
+
readonly http: "POST";
|
|
356
|
+
readonly path: "/agent/v1/agents/{agent_id}/end_users/{external_user_id}/revoke_tokens";
|
|
357
|
+
readonly streaming: "no";
|
|
358
|
+
readonly pagination: false;
|
|
359
|
+
readonly pathParams: readonly [{
|
|
360
|
+
readonly name: "agent_id";
|
|
361
|
+
readonly sdkName: "agent_id";
|
|
362
|
+
}, {
|
|
363
|
+
readonly name: "external_user_id";
|
|
364
|
+
readonly sdkName: "external_user_id";
|
|
365
|
+
}];
|
|
366
|
+
readonly query: readonly [];
|
|
367
|
+
}, {
|
|
368
|
+
readonly resource: "agent.agents.endUsers.unblock";
|
|
369
|
+
readonly method: "create";
|
|
370
|
+
readonly summary: "Unblock End User";
|
|
371
|
+
readonly description: "Allow an end user to receive new tokens and create new sessions again.\n\nRemoves the user from the blocklist; previously revoked tokens stay revoked. Idempotent. Requires an embed policy, otherwise returns 409 with setup guidance. Returns null timestamps and zero counts and cost when no session or issuance history exists. End-user credentials and inaccessible or personal agents return 404.";
|
|
372
|
+
readonly http: "POST";
|
|
373
|
+
readonly path: "/agent/v1/agents/{agent_id}/end_users/{external_user_id}/unblock";
|
|
374
|
+
readonly streaming: "no";
|
|
375
|
+
readonly pagination: false;
|
|
376
|
+
readonly pathParams: readonly [{
|
|
377
|
+
readonly name: "agent_id";
|
|
378
|
+
readonly sdkName: "agent_id";
|
|
379
|
+
}, {
|
|
380
|
+
readonly name: "external_user_id";
|
|
381
|
+
readonly sdkName: "external_user_id";
|
|
382
|
+
}];
|
|
383
|
+
readonly query: readonly [];
|
|
287
384
|
}, {
|
|
288
385
|
readonly resource: "agent.agents.versions";
|
|
289
386
|
readonly method: "list";
|
|
@@ -1159,6 +1256,17 @@ export declare const operations: readonly [{
|
|
|
1159
1256
|
readonly type: "string";
|
|
1160
1257
|
readonly required: false;
|
|
1161
1258
|
readonly description: "Opaque pagination cursor: pass the next_page value of the previous response unchanged. Omit it for the first page. A cursor from a different query or a malformed one returns 400.";
|
|
1259
|
+
}, {
|
|
1260
|
+
readonly name: "external_user_id";
|
|
1261
|
+
readonly type: "string";
|
|
1262
|
+
readonly required: false;
|
|
1263
|
+
readonly description: "Filter by an exact end-user identifier (1–128 characters: A-Z, a-z, 0-9, underscore, dot, colon, at sign or hyphen). Keep this filter unchanged when following page.";
|
|
1264
|
+
}, {
|
|
1265
|
+
readonly name: "source";
|
|
1266
|
+
readonly type: "string";
|
|
1267
|
+
readonly enum: readonly ["kit", "iframe", "hosted", "api", "automation"];
|
|
1268
|
+
readonly required: false;
|
|
1269
|
+
readonly description: "Filter by session origin: kit, iframe, hosted, api or automation. Keep this filter unchanged when following page.";
|
|
1162
1270
|
}];
|
|
1163
1271
|
}, {
|
|
1164
1272
|
readonly resource: "agent.sessions";
|
|
@@ -9118,9 +9226,8 @@ export declare const operations: readonly [{
|
|
|
9118
9226
|
readonly query: readonly [{
|
|
9119
9227
|
readonly name: "phase";
|
|
9120
9228
|
readonly type: "string";
|
|
9121
|
-
readonly enum: readonly ["open", "awaiting_customer", "in_progress", "resolved", "closed"];
|
|
9122
9229
|
readonly required: false;
|
|
9123
|
-
readonly description: "Only feedback in
|
|
9230
|
+
readonly description: "Only feedback in these phases: a comma-separated list of open, awaiting_customer, in_progress, resolved or closed, for example open,in_progress; see the phase field of a feedback for what each means.";
|
|
9124
9231
|
}, {
|
|
9125
9232
|
readonly name: "query";
|
|
9126
9233
|
readonly type: "string";
|
|
@@ -9209,6 +9316,17 @@ export declare const operations: readonly [{
|
|
|
9209
9316
|
readonly description: "Up to five attachments; decoded bytes must not exceed 10 MiB per attachment or 20 MiB in total.";
|
|
9210
9317
|
}];
|
|
9211
9318
|
};
|
|
9319
|
+
}, {
|
|
9320
|
+
readonly resource: "organization.feedback.counts";
|
|
9321
|
+
readonly method: "list";
|
|
9322
|
+
readonly summary: "Count your organization's feedback by phase";
|
|
9323
|
+
readonly description: "How many of your organization's feedback are in each phase, for status tabs. Counts never include another organization's feedback.";
|
|
9324
|
+
readonly http: "GET";
|
|
9325
|
+
readonly path: "/organization/v1/feedback/counts";
|
|
9326
|
+
readonly streaming: "no";
|
|
9327
|
+
readonly pagination: false;
|
|
9328
|
+
readonly pathParams: readonly [];
|
|
9329
|
+
readonly query: readonly [];
|
|
9212
9330
|
}, {
|
|
9213
9331
|
readonly resource: "organization.feedback";
|
|
9214
9332
|
readonly method: "retrieve";
|
|
@@ -353,6 +353,126 @@ export const operations = [
|
|
|
353
353
|
],
|
|
354
354
|
"query": []
|
|
355
355
|
},
|
|
356
|
+
{
|
|
357
|
+
"resource": "agent.agents.endUsers",
|
|
358
|
+
"method": "list",
|
|
359
|
+
"summary": "List End Users",
|
|
360
|
+
"description": "List users who have sessions or token issuance history on a service agent.\n\nOrdered by last_active_at and external_user_id descending. q is a case-sensitive literal prefix, including underscores. limit is 1–100, default 20. Reuse next_page with the same organization, agent, q and limit. Preemptively blocked users without history do not appear. End-user credentials and inaccessible or personal agents return 404.",
|
|
361
|
+
"http": "GET",
|
|
362
|
+
"path": "/agent/v1/agents/{agent_id}/end_users",
|
|
363
|
+
"streaming": "no",
|
|
364
|
+
"pagination": false,
|
|
365
|
+
"pathParams": [
|
|
366
|
+
{
|
|
367
|
+
"name": "agent_id",
|
|
368
|
+
"sdkName": "agent_id"
|
|
369
|
+
}
|
|
370
|
+
],
|
|
371
|
+
"query": [
|
|
372
|
+
{
|
|
373
|
+
"name": "limit",
|
|
374
|
+
"type": "integer",
|
|
375
|
+
"required": false,
|
|
376
|
+
"description": "Maximum users per page; defaults to 20."
|
|
377
|
+
},
|
|
378
|
+
{
|
|
379
|
+
"name": "page",
|
|
380
|
+
"type": "string",
|
|
381
|
+
"required": false,
|
|
382
|
+
"description": "next_page from the previous response with the same agent, q and limit."
|
|
383
|
+
},
|
|
384
|
+
{
|
|
385
|
+
"name": "q",
|
|
386
|
+
"type": "string",
|
|
387
|
+
"required": false,
|
|
388
|
+
"description": "Case-sensitive literal prefix of external_user_id; omit or use an empty string for all users."
|
|
389
|
+
}
|
|
390
|
+
]
|
|
391
|
+
},
|
|
392
|
+
{
|
|
393
|
+
"resource": "agent.agents.endUsers",
|
|
394
|
+
"method": "retrieve",
|
|
395
|
+
"summary": "Get End User",
|
|
396
|
+
"description": "Inspect one end user and their twenty most recently updated sessions.\n\nUse external_user_id from listing or your host application. Users without session or issuance history return 404, including preemptively blocked users. End-user credentials and inaccessible or personal agents return 404.",
|
|
397
|
+
"http": "GET",
|
|
398
|
+
"path": "/agent/v1/agents/{agent_id}/end_users/{external_user_id}",
|
|
399
|
+
"streaming": "no",
|
|
400
|
+
"pagination": false,
|
|
401
|
+
"pathParams": [
|
|
402
|
+
{
|
|
403
|
+
"name": "agent_id",
|
|
404
|
+
"sdkName": "agent_id"
|
|
405
|
+
},
|
|
406
|
+
{
|
|
407
|
+
"name": "external_user_id",
|
|
408
|
+
"sdkName": "external_user_id"
|
|
409
|
+
}
|
|
410
|
+
],
|
|
411
|
+
"query": []
|
|
412
|
+
},
|
|
413
|
+
{
|
|
414
|
+
"resource": "agent.agents.endUsers.block",
|
|
415
|
+
"method": "create",
|
|
416
|
+
"summary": "Block End User",
|
|
417
|
+
"description": "Block token issuance and session creation, then revoke existing tokens for an end user.\n\nMay block a user before any history exists; timestamps are then null and counts and cost are zero. Requires an embed policy, otherwise returns 409 with setup guidance. Deduplicates the policy blocklist and retains its 1000-user maximum. If revocation returns 502, the user remains blocked; retry to finish revocation. Repeats keep the user blocked and revoke any remaining grants. End-user credentials and inaccessible or personal agents return 404.",
|
|
418
|
+
"http": "POST",
|
|
419
|
+
"path": "/agent/v1/agents/{agent_id}/end_users/{external_user_id}/block",
|
|
420
|
+
"streaming": "no",
|
|
421
|
+
"pagination": false,
|
|
422
|
+
"pathParams": [
|
|
423
|
+
{
|
|
424
|
+
"name": "agent_id",
|
|
425
|
+
"sdkName": "agent_id"
|
|
426
|
+
},
|
|
427
|
+
{
|
|
428
|
+
"name": "external_user_id",
|
|
429
|
+
"sdkName": "external_user_id"
|
|
430
|
+
}
|
|
431
|
+
],
|
|
432
|
+
"query": []
|
|
433
|
+
},
|
|
434
|
+
{
|
|
435
|
+
"resource": "agent.agents.endUsers.revokeTokens",
|
|
436
|
+
"method": "create",
|
|
437
|
+
"summary": "Revoke End User Tokens",
|
|
438
|
+
"description": "Revoke all issued tokens for an end user and terminate their open embed streams.\n\nRevokes credentials before marking grants revoked. Upstream failure returns 502 without changing grant revocation timestamps. Returns the count of newly revoked grants; a repeat without new grants returns zero. Does not block future issuance. End-user credentials and inaccessible or personal agents return 404.",
|
|
439
|
+
"http": "POST",
|
|
440
|
+
"path": "/agent/v1/agents/{agent_id}/end_users/{external_user_id}/revoke_tokens",
|
|
441
|
+
"streaming": "no",
|
|
442
|
+
"pagination": false,
|
|
443
|
+
"pathParams": [
|
|
444
|
+
{
|
|
445
|
+
"name": "agent_id",
|
|
446
|
+
"sdkName": "agent_id"
|
|
447
|
+
},
|
|
448
|
+
{
|
|
449
|
+
"name": "external_user_id",
|
|
450
|
+
"sdkName": "external_user_id"
|
|
451
|
+
}
|
|
452
|
+
],
|
|
453
|
+
"query": []
|
|
454
|
+
},
|
|
455
|
+
{
|
|
456
|
+
"resource": "agent.agents.endUsers.unblock",
|
|
457
|
+
"method": "create",
|
|
458
|
+
"summary": "Unblock End User",
|
|
459
|
+
"description": "Allow an end user to receive new tokens and create new sessions again.\n\nRemoves the user from the blocklist; previously revoked tokens stay revoked. Idempotent. Requires an embed policy, otherwise returns 409 with setup guidance. Returns null timestamps and zero counts and cost when no session or issuance history exists. End-user credentials and inaccessible or personal agents return 404.",
|
|
460
|
+
"http": "POST",
|
|
461
|
+
"path": "/agent/v1/agents/{agent_id}/end_users/{external_user_id}/unblock",
|
|
462
|
+
"streaming": "no",
|
|
463
|
+
"pagination": false,
|
|
464
|
+
"pathParams": [
|
|
465
|
+
{
|
|
466
|
+
"name": "agent_id",
|
|
467
|
+
"sdkName": "agent_id"
|
|
468
|
+
},
|
|
469
|
+
{
|
|
470
|
+
"name": "external_user_id",
|
|
471
|
+
"sdkName": "external_user_id"
|
|
472
|
+
}
|
|
473
|
+
],
|
|
474
|
+
"query": []
|
|
475
|
+
},
|
|
356
476
|
{
|
|
357
477
|
"resource": "agent.agents.versions",
|
|
358
478
|
"method": "list",
|
|
@@ -1432,6 +1552,25 @@ export const operations = [
|
|
|
1432
1552
|
"type": "string",
|
|
1433
1553
|
"required": false,
|
|
1434
1554
|
"description": "Opaque pagination cursor: pass the next_page value of the previous response unchanged. Omit it for the first page. A cursor from a different query or a malformed one returns 400."
|
|
1555
|
+
},
|
|
1556
|
+
{
|
|
1557
|
+
"name": "external_user_id",
|
|
1558
|
+
"type": "string",
|
|
1559
|
+
"required": false,
|
|
1560
|
+
"description": "Filter by an exact end-user identifier (1–128 characters: A-Z, a-z, 0-9, underscore, dot, colon, at sign or hyphen). Keep this filter unchanged when following page."
|
|
1561
|
+
},
|
|
1562
|
+
{
|
|
1563
|
+
"name": "source",
|
|
1564
|
+
"type": "string",
|
|
1565
|
+
"enum": [
|
|
1566
|
+
"kit",
|
|
1567
|
+
"iframe",
|
|
1568
|
+
"hosted",
|
|
1569
|
+
"api",
|
|
1570
|
+
"automation"
|
|
1571
|
+
],
|
|
1572
|
+
"required": false,
|
|
1573
|
+
"description": "Filter by session origin: kit, iframe, hosted, api or automation. Keep this filter unchanged when following page."
|
|
1435
1574
|
}
|
|
1436
1575
|
]
|
|
1437
1576
|
},
|
|
@@ -11378,15 +11517,8 @@ export const operations = [
|
|
|
11378
11517
|
{
|
|
11379
11518
|
"name": "phase",
|
|
11380
11519
|
"type": "string",
|
|
11381
|
-
"enum": [
|
|
11382
|
-
"open",
|
|
11383
|
-
"awaiting_customer",
|
|
11384
|
-
"in_progress",
|
|
11385
|
-
"resolved",
|
|
11386
|
-
"closed"
|
|
11387
|
-
],
|
|
11388
11520
|
"required": false,
|
|
11389
|
-
"description": "Only feedback in
|
|
11521
|
+
"description": "Only feedback in these phases: a comma-separated list of open, awaiting_customer, in_progress, resolved or closed, for example open,in_progress; see the phase field of a feedback for what each means."
|
|
11390
11522
|
},
|
|
11391
11523
|
{
|
|
11392
11524
|
"name": "query",
|
|
@@ -11496,6 +11628,18 @@ export const operations = [
|
|
|
11496
11628
|
]
|
|
11497
11629
|
}
|
|
11498
11630
|
},
|
|
11631
|
+
{
|
|
11632
|
+
"resource": "organization.feedback.counts",
|
|
11633
|
+
"method": "list",
|
|
11634
|
+
"summary": "Count your organization's feedback by phase",
|
|
11635
|
+
"description": "How many of your organization's feedback are in each phase, for status tabs. Counts never include another organization's feedback.",
|
|
11636
|
+
"http": "GET",
|
|
11637
|
+
"path": "/organization/v1/feedback/counts",
|
|
11638
|
+
"streaming": "no",
|
|
11639
|
+
"pagination": false,
|
|
11640
|
+
"pathParams": [],
|
|
11641
|
+
"query": []
|
|
11642
|
+
},
|
|
11499
11643
|
{
|
|
11500
11644
|
"resource": "organization.feedback",
|
|
11501
11645
|
"method": "retrieve",
|
|
@@ -263,6 +263,59 @@ export declare function createAgent(transport: Transport): {
|
|
|
263
263
|
allowed: Array<string>;
|
|
264
264
|
};
|
|
265
265
|
}>;
|
|
266
|
+
endUsers: {
|
|
267
|
+
block: {
|
|
268
|
+
create: (options: import("./core/transport.js").CallOptions<Types.BlockEndUserData>) => Promise<{
|
|
269
|
+
external_user_id: string;
|
|
270
|
+
first_seen_at: string | null;
|
|
271
|
+
last_active_at: string | null;
|
|
272
|
+
session_count: number;
|
|
273
|
+
cost_micro_usd: number;
|
|
274
|
+
blocked: boolean;
|
|
275
|
+
}>;
|
|
276
|
+
};
|
|
277
|
+
list: (options: import("./core/transport.js").CallOptions<Types.ListEndUsersData>) => Promise<{
|
|
278
|
+
data: Array<{
|
|
279
|
+
external_user_id: string;
|
|
280
|
+
first_seen_at: string | null;
|
|
281
|
+
last_active_at: string | null;
|
|
282
|
+
session_count: number;
|
|
283
|
+
cost_micro_usd: number;
|
|
284
|
+
blocked: boolean;
|
|
285
|
+
}>;
|
|
286
|
+
next_page: string | null;
|
|
287
|
+
}>;
|
|
288
|
+
retrieve: (options: import("./core/transport.js").CallOptions<Types.GetEndUserData>) => Promise<{
|
|
289
|
+
external_user_id: string;
|
|
290
|
+
first_seen_at: string | null;
|
|
291
|
+
last_active_at: string | null;
|
|
292
|
+
session_count: number;
|
|
293
|
+
cost_micro_usd: number;
|
|
294
|
+
blocked: boolean;
|
|
295
|
+
recent_sessions: Array<{
|
|
296
|
+
id: string;
|
|
297
|
+
title: string | null;
|
|
298
|
+
source: string | null;
|
|
299
|
+
created_at: string;
|
|
300
|
+
updated_at: string;
|
|
301
|
+
}>;
|
|
302
|
+
}>;
|
|
303
|
+
revokeTokens: {
|
|
304
|
+
create: (options: import("./core/transport.js").CallOptions<Types.RevokeEndUserTokensData>) => Promise<{
|
|
305
|
+
revoked: number;
|
|
306
|
+
}>;
|
|
307
|
+
};
|
|
308
|
+
unblock: {
|
|
309
|
+
create: (options: import("./core/transport.js").CallOptions<Types.UnblockEndUserData>) => Promise<{
|
|
310
|
+
external_user_id: string;
|
|
311
|
+
first_seen_at: string | null;
|
|
312
|
+
last_active_at: string | null;
|
|
313
|
+
session_count: number;
|
|
314
|
+
cost_micro_usd: number;
|
|
315
|
+
blocked: boolean;
|
|
316
|
+
}>;
|
|
317
|
+
};
|
|
318
|
+
};
|
|
266
319
|
list: (options?: import("./core/transport.js").CallOptions<Types.AgentsListData> | undefined) => Promise<{
|
|
267
320
|
data: Array<{
|
|
268
321
|
id: string;
|
|
@@ -1277,6 +1330,8 @@ export declare function createAgent(transport: Transport): {
|
|
|
1277
1330
|
session_id: string;
|
|
1278
1331
|
message_id: string;
|
|
1279
1332
|
} | null;
|
|
1333
|
+
readonly external_user_id: string | null;
|
|
1334
|
+
readonly source: "kit" | "iframe" | "hosted" | "api" | "automation" | null;
|
|
1280
1335
|
}>;
|
|
1281
1336
|
backgroundTasks: {
|
|
1282
1337
|
list: (options: import("./core/transport.js").CallOptions<Types.ListSessionBackgroundTasksData>) => Promise<{
|
|
@@ -1396,6 +1451,8 @@ export declare function createAgent(transport: Transport): {
|
|
|
1396
1451
|
session_id: string;
|
|
1397
1452
|
message_id: string;
|
|
1398
1453
|
} | null;
|
|
1454
|
+
readonly external_user_id: string | null;
|
|
1455
|
+
readonly source: "kit" | "iframe" | "hosted" | "api" | "automation" | null;
|
|
1399
1456
|
}>;
|
|
1400
1457
|
events: {
|
|
1401
1458
|
list: (options: import("./core/transport.js").CallOptions<Types.SessionsEventsListData>) => Promise<{
|
|
@@ -1617,6 +1674,27 @@ export declare function createAgent(transport: Transport): {
|
|
|
1617
1674
|
type: "url";
|
|
1618
1675
|
name: string;
|
|
1619
1676
|
url: string;
|
|
1677
|
+
headers?: {
|
|
1678
|
+
[key: string]: string;
|
|
1679
|
+
};
|
|
1680
|
+
timeout_ms?: number;
|
|
1681
|
+
} | {
|
|
1682
|
+
type: "sse";
|
|
1683
|
+
name: string;
|
|
1684
|
+
url: string;
|
|
1685
|
+
headers?: {
|
|
1686
|
+
[key: string]: string;
|
|
1687
|
+
};
|
|
1688
|
+
timeout_ms?: number;
|
|
1689
|
+
} | {
|
|
1690
|
+
type: "stdio";
|
|
1691
|
+
name: string;
|
|
1692
|
+
command: string;
|
|
1693
|
+
args?: Array<string>;
|
|
1694
|
+
env?: {
|
|
1695
|
+
[key: string]: string;
|
|
1696
|
+
};
|
|
1697
|
+
timeout_ms?: number;
|
|
1620
1698
|
}>;
|
|
1621
1699
|
model: {
|
|
1622
1700
|
id: "claude-opus-5-5" | "claude-fable-5-1" | "claude-sonnet-5" | "claude-fable-5" | "claude-opus-5" | "claude-opus-4-8" | "claude-opus-4-7" | "claude-opus-4-6" | "claude-sonnet-4-6" | "claude-haiku-4-5" | "claude-haiku-4-5-20251001" | "claude-opus-4-5" | "claude-opus-4-5-20251101" | "claude-sonnet-4-5" | "claude-sonnet-4-5-20250929" | string;
|
|
@@ -1648,6 +1726,27 @@ export declare function createAgent(transport: Transport): {
|
|
|
1648
1726
|
type: "url";
|
|
1649
1727
|
name: string;
|
|
1650
1728
|
url: string;
|
|
1729
|
+
headers?: {
|
|
1730
|
+
[key: string]: string;
|
|
1731
|
+
};
|
|
1732
|
+
timeout_ms?: number;
|
|
1733
|
+
} | {
|
|
1734
|
+
type: "sse";
|
|
1735
|
+
name: string;
|
|
1736
|
+
url: string;
|
|
1737
|
+
headers?: {
|
|
1738
|
+
[key: string]: string;
|
|
1739
|
+
};
|
|
1740
|
+
timeout_ms?: number;
|
|
1741
|
+
} | {
|
|
1742
|
+
type: "stdio";
|
|
1743
|
+
name: string;
|
|
1744
|
+
command: string;
|
|
1745
|
+
args?: Array<string>;
|
|
1746
|
+
env?: {
|
|
1747
|
+
[key: string]: string;
|
|
1748
|
+
};
|
|
1749
|
+
timeout_ms?: number;
|
|
1651
1750
|
}>;
|
|
1652
1751
|
model: {
|
|
1653
1752
|
id: "claude-opus-5-5" | "claude-fable-5-1" | "claude-sonnet-5" | "claude-fable-5" | "claude-opus-5" | "claude-opus-4-8" | "claude-opus-4-7" | "claude-opus-4-6" | "claude-sonnet-4-6" | "claude-haiku-4-5" | "claude-haiku-4-5-20251001" | "claude-opus-4-5" | "claude-opus-4-5-20251101" | "claude-sonnet-4-5" | "claude-sonnet-4-5-20250929" | string;
|
|
@@ -2088,6 +2187,8 @@ export declare function createAgent(transport: Transport): {
|
|
|
2088
2187
|
session_id: string;
|
|
2089
2188
|
message_id: string;
|
|
2090
2189
|
} | null;
|
|
2190
|
+
readonly external_user_id: string | null;
|
|
2191
|
+
readonly source: "kit" | "iframe" | "hosted" | "api" | "automation" | null;
|
|
2091
2192
|
}>;
|
|
2092
2193
|
list: (options?: import("./core/transport.js").CallOptions<Types.SessionsListData> | undefined) => Promise<{
|
|
2093
2194
|
data: Array<{
|
|
@@ -2145,6 +2246,8 @@ export declare function createAgent(transport: Transport): {
|
|
|
2145
2246
|
session_id: string;
|
|
2146
2247
|
message_id: string;
|
|
2147
2248
|
} | null;
|
|
2249
|
+
readonly external_user_id: string | null;
|
|
2250
|
+
readonly source: "kit" | "iframe" | "hosted" | "api" | "automation" | null;
|
|
2148
2251
|
}>;
|
|
2149
2252
|
next_page: string | null;
|
|
2150
2253
|
}>;
|
|
@@ -2220,6 +2323,8 @@ export declare function createAgent(transport: Transport): {
|
|
|
2220
2323
|
session_id: string;
|
|
2221
2324
|
message_id: string;
|
|
2222
2325
|
} | null;
|
|
2326
|
+
readonly external_user_id: string | null;
|
|
2327
|
+
readonly source: "kit" | "iframe" | "hosted" | "api" | "automation" | null;
|
|
2223
2328
|
}>;
|
|
2224
2329
|
retrieveCompact: (options: import("./core/transport.js").CallOptions<Types.GetSessionCompactionData>) => Promise<{
|
|
2225
2330
|
type: "session_compaction";
|
|
@@ -2550,6 +2655,8 @@ export declare function createAgent(transport: Transport): {
|
|
|
2550
2655
|
session_id: string;
|
|
2551
2656
|
message_id: string;
|
|
2552
2657
|
} | null;
|
|
2658
|
+
readonly external_user_id: string | null;
|
|
2659
|
+
readonly source: "kit" | "iframe" | "hosted" | "api" | "automation" | null;
|
|
2553
2660
|
}>;
|
|
2554
2661
|
};
|
|
2555
2662
|
toolsets: {
|
|
@@ -3579,6 +3686,17 @@ export declare function createOrganization(transport: Transport): {
|
|
|
3579
3686
|
}>;
|
|
3580
3687
|
};
|
|
3581
3688
|
feedback: {
|
|
3689
|
+
counts: {
|
|
3690
|
+
list: (options?: import("./core/transport.js").CallOptions<Types.GetOrganizationFeedbackCountsData> | undefined) => Promise<{
|
|
3691
|
+
object: "feedback.counts";
|
|
3692
|
+
open: number;
|
|
3693
|
+
awaiting_customer: number;
|
|
3694
|
+
in_progress: number;
|
|
3695
|
+
resolved: number;
|
|
3696
|
+
closed: number;
|
|
3697
|
+
total: number;
|
|
3698
|
+
}>;
|
|
3699
|
+
};
|
|
3582
3700
|
create: (options: import("./core/transport.js").CallOptions<Types.CreateOrganizationFeedbackData>) => Promise<{
|
|
3583
3701
|
id: string;
|
|
3584
3702
|
}>;
|
|
@@ -3600,6 +3718,14 @@ export declare function createOrganization(transport: Transport): {
|
|
|
3600
3718
|
unread: boolean;
|
|
3601
3719
|
create_time: string;
|
|
3602
3720
|
update_time: string;
|
|
3721
|
+
reporter?: {
|
|
3722
|
+
type?: "user" | "api_key" | "agent_session";
|
|
3723
|
+
};
|
|
3724
|
+
last_message_preview?: {
|
|
3725
|
+
author_kind?: "customer" | "staff" | "system";
|
|
3726
|
+
body?: string;
|
|
3727
|
+
create_time?: string;
|
|
3728
|
+
} | null;
|
|
3603
3729
|
attachments: Array<{
|
|
3604
3730
|
id?: string;
|
|
3605
3731
|
name?: string;
|
|
@@ -3618,6 +3744,7 @@ export declare function createOrganization(transport: Transport): {
|
|
|
3618
3744
|
feedback_id: string;
|
|
3619
3745
|
author: {
|
|
3620
3746
|
kind?: "customer" | "staff" | "system";
|
|
3747
|
+
name?: string;
|
|
3621
3748
|
};
|
|
3622
3749
|
body: string;
|
|
3623
3750
|
event?: {
|
|
@@ -3642,6 +3769,7 @@ export declare function createOrganization(transport: Transport): {
|
|
|
3642
3769
|
feedback_id: string;
|
|
3643
3770
|
author: {
|
|
3644
3771
|
kind?: "customer" | "staff" | "system";
|
|
3772
|
+
name?: string;
|
|
3645
3773
|
};
|
|
3646
3774
|
body: string;
|
|
3647
3775
|
event?: {
|
|
@@ -3678,6 +3806,14 @@ export declare function createOrganization(transport: Transport): {
|
|
|
3678
3806
|
unread: boolean;
|
|
3679
3807
|
create_time: string;
|
|
3680
3808
|
update_time: string;
|
|
3809
|
+
reporter?: {
|
|
3810
|
+
type?: "user" | "api_key" | "agent_session";
|
|
3811
|
+
};
|
|
3812
|
+
last_message_preview?: {
|
|
3813
|
+
author_kind?: "customer" | "staff" | "system";
|
|
3814
|
+
body?: string;
|
|
3815
|
+
create_time?: string;
|
|
3816
|
+
} | null;
|
|
3681
3817
|
attachments: Array<{
|
|
3682
3818
|
id?: string;
|
|
3683
3819
|
name?: string;
|
|
@@ -7,6 +7,19 @@ export function createAgent(transport) {
|
|
|
7
7
|
agents: {
|
|
8
8
|
archive: bind(transport, sdk.agentsArchive),
|
|
9
9
|
create: bind(transport, sdk.agentsCreate),
|
|
10
|
+
endUsers: {
|
|
11
|
+
block: {
|
|
12
|
+
create: bind(transport, sdk.blockEndUser),
|
|
13
|
+
},
|
|
14
|
+
list: bind(transport, sdk.listEndUsers),
|
|
15
|
+
retrieve: bind(transport, sdk.getEndUser),
|
|
16
|
+
revokeTokens: {
|
|
17
|
+
create: bind(transport, sdk.revokeEndUserTokens),
|
|
18
|
+
},
|
|
19
|
+
unblock: {
|
|
20
|
+
create: bind(transport, sdk.unblockEndUser),
|
|
21
|
+
},
|
|
22
|
+
},
|
|
10
23
|
list: bind(transport, sdk.agentsList),
|
|
11
24
|
retrieve: bind(transport, sdk.agentsRetrieve),
|
|
12
25
|
update: bind(transport, sdk.agentsUpdate),
|
|
@@ -570,6 +583,9 @@ export function createOrganization(transport) {
|
|
|
570
583
|
retrieve: bind(transport, sdk.getOrganizationEvent),
|
|
571
584
|
},
|
|
572
585
|
feedback: {
|
|
586
|
+
counts: {
|
|
587
|
+
list: bind(transport, sdk.getOrganizationFeedbackCounts),
|
|
588
|
+
},
|
|
573
589
|
create: bind(transport, sdk.createOrganizationFeedback),
|
|
574
590
|
list: bind(transport, sdk.listOrganizationFeedback),
|
|
575
591
|
messages: {
|