@deepraxis/sdk 0.1.1-dev.13dab28 → 0.1.1-dev.1538445

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.
@@ -42,9 +42,11 @@ export declare function createAgent(transport: Transport): {
42
42
  id: string;
43
43
  access: "read_only" | "read_write" | "invoke";
44
44
  instructions?: string;
45
+ readonly verified?: boolean;
45
46
  enabled?: boolean;
46
47
  } | {
47
48
  type: "search" | "browser";
49
+ readonly verified?: boolean;
48
50
  enabled?: boolean;
49
51
  }>;
50
52
  kind: "personal" | "service";
@@ -199,9 +201,11 @@ export declare function createAgent(transport: Transport): {
199
201
  id: string;
200
202
  access: "read_only" | "read_write" | "invoke";
201
203
  instructions?: string;
204
+ readonly verified?: boolean;
202
205
  enabled?: boolean;
203
206
  } | {
204
207
  type: "search" | "browser";
208
+ readonly verified?: boolean;
205
209
  enabled?: boolean;
206
210
  }>;
207
211
  kind: "personal" | "service";
@@ -445,90 +449,6 @@ export declare function createAgent(transport: Transport): {
445
449
  }>;
446
450
  };
447
451
  };
448
- endUsers: {
449
- block: {
450
- create: (options: import("./core/transport.js").CallOptions<Types.BlockEndUserData>) => Promise<{
451
- external_user_id: string;
452
- first_seen_at: string | null;
453
- last_active_at: string | null;
454
- session_count: number;
455
- cost: {
456
- amount: string;
457
- currency: "USD";
458
- };
459
- blocked: boolean;
460
- }>;
461
- };
462
- delete: (options: import("./core/transport.js").CallOptions<Types.DeleteEndUserData>) => Promise<{
463
- id: string;
464
- status: "pending";
465
- }>;
466
- list: (options: import("./core/transport.js").CallOptions<Types.ListEndUsersData>) => Promise<{
467
- data: Array<{
468
- external_user_id: string;
469
- first_seen_at: string | null;
470
- last_active_at: string | null;
471
- session_count: number;
472
- cost: {
473
- amount: string;
474
- currency: "USD";
475
- };
476
- blocked: boolean;
477
- }>;
478
- next_page: string | null;
479
- }>;
480
- retrieve: (options: import("./core/transport.js").CallOptions<Types.GetEndUserData>) => Promise<{
481
- external_user_id: string;
482
- first_seen_at: string | null;
483
- last_active_at: string | null;
484
- session_count: number;
485
- cost: {
486
- amount: string;
487
- currency: "USD";
488
- };
489
- blocked: boolean;
490
- recent_sessions: Array<{
491
- id: string;
492
- title: string | null;
493
- source: string | null;
494
- created_at: string;
495
- updated_at: string;
496
- }>;
497
- }>;
498
- retrieveDeletion: (options: import("./core/transport.js").CallOptions<Types.GetEndUserDeletionData>) => Promise<{
499
- id: string;
500
- status: "pending" | "snapshotting" | "deleting" | "done" | "failed";
501
- counts: {
502
- sessions?: number;
503
- events?: number;
504
- messages?: number;
505
- d1_rows?: number;
506
- attachments?: number;
507
- };
508
- snapshot_key?: string;
509
- error?: string;
510
- created_at: string;
511
- updated_at: string;
512
- }>;
513
- revokeTokens: {
514
- create: (options: import("./core/transport.js").CallOptions<Types.RevokeEndUserTokensData>) => Promise<{
515
- revoked: number;
516
- }>;
517
- };
518
- unblock: {
519
- create: (options: import("./core/transport.js").CallOptions<Types.UnblockEndUserData>) => Promise<{
520
- external_user_id: string;
521
- first_seen_at: string | null;
522
- last_active_at: string | null;
523
- session_count: number;
524
- cost: {
525
- amount: string;
526
- currency: "USD";
527
- };
528
- blocked: boolean;
529
- }>;
530
- };
531
- };
532
452
  list: (options?: import("./core/transport.js").CallOptions<Types.AgentsListData> | undefined) => Promise<{
533
453
  data: Array<{
534
454
  id: string;
@@ -569,9 +489,11 @@ export declare function createAgent(transport: Transport): {
569
489
  id: string;
570
490
  access: "read_only" | "read_write" | "invoke";
571
491
  instructions?: string;
492
+ readonly verified?: boolean;
572
493
  enabled?: boolean;
573
494
  } | {
574
495
  type: "search" | "browser";
496
+ readonly verified?: boolean;
575
497
  enabled?: boolean;
576
498
  }>;
577
499
  kind: "personal" | "service";
@@ -728,9 +650,11 @@ export declare function createAgent(transport: Transport): {
728
650
  id: string;
729
651
  access: "read_only" | "read_write" | "invoke";
730
652
  instructions?: string;
653
+ readonly verified?: boolean;
731
654
  enabled?: boolean;
732
655
  } | {
733
656
  type: "search" | "browser";
657
+ readonly verified?: boolean;
734
658
  enabled?: boolean;
735
659
  }>;
736
660
  kind: "personal" | "service";
@@ -1146,9 +1070,11 @@ export declare function createAgent(transport: Transport): {
1146
1070
  id: string;
1147
1071
  access: "read_only" | "read_write" | "invoke";
1148
1072
  instructions?: string;
1073
+ readonly verified?: boolean;
1149
1074
  enabled?: boolean;
1150
1075
  } | {
1151
1076
  type: "search" | "browser";
1077
+ readonly verified?: boolean;
1152
1078
  enabled?: boolean;
1153
1079
  }>;
1154
1080
  kind: "personal" | "service";
@@ -1304,9 +1230,11 @@ export declare function createAgent(transport: Transport): {
1304
1230
  id: string;
1305
1231
  access: "read_only" | "read_write" | "invoke";
1306
1232
  instructions?: string;
1233
+ readonly verified?: boolean;
1307
1234
  enabled?: boolean;
1308
1235
  } | {
1309
1236
  type: "search" | "browser";
1237
+ readonly verified?: boolean;
1310
1238
  enabled?: boolean;
1311
1239
  }>;
1312
1240
  kind: "personal" | "service";
@@ -1664,9 +1592,11 @@ export declare function createAgent(transport: Transport): {
1664
1592
  id: string;
1665
1593
  access: "read_only" | "read_write" | "invoke";
1666
1594
  instructions?: string;
1595
+ readonly verified?: boolean;
1667
1596
  enabled?: boolean;
1668
1597
  } | {
1669
1598
  type: "search" | "browser";
1599
+ readonly verified?: boolean;
1670
1600
  enabled?: boolean;
1671
1601
  }>;
1672
1602
  kind: "personal" | "service";
@@ -1823,9 +1753,11 @@ export declare function createAgent(transport: Transport): {
1823
1753
  id: string;
1824
1754
  access: "read_only" | "read_write" | "invoke";
1825
1755
  instructions?: string;
1756
+ readonly verified?: boolean;
1826
1757
  enabled?: boolean;
1827
1758
  } | {
1828
1759
  type: "search" | "browser";
1760
+ readonly verified?: boolean;
1829
1761
  enabled?: boolean;
1830
1762
  }>;
1831
1763
  kind: "personal" | "service";
@@ -2344,122 +2276,6 @@ export declare function createAgent(transport: Transport): {
2344
2276
  };
2345
2277
  }>;
2346
2278
  };
2347
- embed: {
2348
- exchange: {
2349
- create: (options: import("./core/transport.js").CallOptions<Types.ExchangeEmbedCodeData>) => Promise<{
2350
- token: string;
2351
- expires_at: string;
2352
- }>;
2353
- };
2354
- retrieveAppearance: (options?: import("./core/transport.js").CallOptions<Types.GetEmbedAppearanceData> | undefined) => Promise<{
2355
- agent?: {
2356
- name?: string;
2357
- avatar?: string;
2358
- };
2359
- layout?: "inline" | "sidebar" | "popup" | "modal";
2360
- launcher?: {
2361
- type: "none" | "bubble" | "mascot";
2362
- pack?: {
2363
- preset?: "mint" | "cat" | "bot";
2364
- images?: {
2365
- idle: string;
2366
- greet?: string;
2367
- listening?: string;
2368
- thinking?: string;
2369
- talking?: string;
2370
- "talking-2"?: string;
2371
- sorry?: string;
2372
- sleep?: string;
2373
- };
2374
- };
2375
- image?: string;
2376
- motion?: "float" | "none";
2377
- position?: "bottom-right" | "bottom-left";
2378
- label?: string;
2379
- };
2380
- header?: {
2381
- title?: string;
2382
- subtitle?: string;
2383
- icon?: string;
2384
- };
2385
- theme?: {
2386
- colorScheme?: "light" | "dark" | "system";
2387
- accent?: string;
2388
- surface?: string;
2389
- grayscale?: "neutral" | "warm" | "cool";
2390
- radius?: "none" | "sm" | "md" | "lg" | "full";
2391
- density?: "compact" | "normal" | "spacious";
2392
- fontFamily?: string;
2393
- fontSize?: number;
2394
- };
2395
- locale?: "zh" | "en";
2396
- startScreen?: {
2397
- greeting?: string;
2398
- prompts?: Array<{
2399
- label: string;
2400
- prompt: string;
2401
- }>;
2402
- };
2403
- composer?: {
2404
- placeholder?: string;
2405
- };
2406
- disclaimer?: string;
2407
- footer?: string;
2408
- history?: {
2409
- enabled?: boolean;
2410
- };
2411
- }>;
2412
- };
2413
- embedTokens: {
2414
- anonymous: {
2415
- create: (options: import("./core/transport.js").CallOptions<Types.CreateAnonymousEmbedTokenData>) => Promise<{
2416
- token: string;
2417
- expires_at: string;
2418
- visitor_secret?: string;
2419
- }>;
2420
- };
2421
- create: (options: import("./core/transport.js").CallOptions<Types.CreateEmbedTokenData>) => Promise<{
2422
- hosted_url?: string;
2423
- id: string;
2424
- token: string;
2425
- expires_at: string;
2426
- }>;
2427
- list: (options?: import("./core/transport.js").CallOptions<Types.ListEmbedTokensData> | undefined) => Promise<{
2428
- data: Array<{
2429
- id: string;
2430
- type: "embed_token";
2431
- agent_id: string;
2432
- agent_version: number;
2433
- external_user_id: string;
2434
- created_at: string;
2435
- expires_at: string;
2436
- revoked_at: string | null;
2437
- host_origin: string | null;
2438
- issued_by: {
2439
- type: "user" | "api_key";
2440
- id: string;
2441
- };
2442
- }>;
2443
- next_page: string | null;
2444
- }>;
2445
- revoke: {
2446
- create: (options: import("./core/transport.js").CallOptions<Types.RevokeEmbedTokenData>) => Promise<{
2447
- id: string;
2448
- type: "embed_token";
2449
- agent_id: string;
2450
- agent_version: number;
2451
- external_user_id: string;
2452
- created_at: string;
2453
- expires_at: string;
2454
- revoked_at: string | null;
2455
- host_origin: string | null;
2456
- issued_by: {
2457
- type: "user" | "api_key";
2458
- id: string;
2459
- };
2460
- }>;
2461
- };
2462
- };
2463
2279
  environments: {
2464
2280
  archive: (options: import("./core/transport.js").CallOptions<Types.EnvironmentsArchiveData>) => Promise<Types.AgentManaged138>;
2465
2281
  create: (options: import("./core/transport.js").CallOptions<Types.EnvironmentsCreateData>) => Promise<Types.AgentManaged138>;
@@ -34,21 +34,6 @@ export function createAgent(transport) {
34
34
  create: bind(transport, sdk.unblockCustomer),
35
35
  },
36
36
  },
37
- endUsers: {
38
- block: {
39
- create: bind(transport, sdk.blockEndUser),
40
- },
41
- delete: bind(transport, sdk.deleteEndUser),
42
- list: bind(transport, sdk.listEndUsers),
43
- retrieve: bind(transport, sdk.getEndUser),
44
- retrieveDeletion: bind(transport, sdk.getEndUserDeletion),
45
- revokeTokens: {
46
- create: bind(transport, sdk.revokeEndUserTokens),
47
- },
48
- unblock: {
49
- create: bind(transport, sdk.unblockEndUser),
50
- },
51
- },
52
37
  list: bind(transport, sdk.agentsList),
53
38
  retrieve: bind(transport, sdk.agentsRetrieve),
54
39
  retrieveAppearance: bind(transport, sdk.getAgentAppearance),
@@ -101,22 +86,6 @@ export function createAgent(transport) {
101
86
  },
102
87
  update: bind(transport, sdk.deploymentsUpdate),
103
88
  },
104
- embed: {
105
- exchange: {
106
- create: bind(transport, sdk.exchangeEmbedCode),
107
- },
108
- retrieveAppearance: bind(transport, sdk.getEmbedAppearance),
109
- },
110
- embedTokens: {
111
- anonymous: {
112
- create: bind(transport, sdk.createAnonymousEmbedToken),
113
- },
114
- create: bind(transport, sdk.createEmbedToken),
115
- list: bind(transport, sdk.listEmbedTokens),
116
- revoke: {
117
- create: bind(transport, sdk.revokeEmbedToken),
118
- },
119
- },
120
89
  environments: {
121
90
  archive: bind(transport, sdk.environmentsArchive),
122
91
  create: bind(transport, sdk.environmentsCreate),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@deepraxis/sdk",
3
- "version": "0.1.1-dev.13dab28",
3
+ "version": "0.1.1-dev.1538445",
4
4
  "type": "module",
5
5
  "sideEffects": false,
6
6
  "exports": {