@deepraxis/sdk 0.1.1-dev.69cffcf → 0.1.1-dev.76902b6

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";
@@ -354,6 +358,96 @@ export declare function createAgent(transport: Transport): {
354
358
  }>;
355
359
  };
356
360
  };
361
+ block: {
362
+ create: (options: import("./core/transport.js").CallOptions<Types.BlockCustomerData>) => Promise<{
363
+ id: string;
364
+ type: "identified" | "anonymous";
365
+ merged_into: string | null;
366
+ blocked: boolean;
367
+ first_seen_at: string | null;
368
+ last_seen_at: string | null;
369
+ session_count: number;
370
+ cost: {
371
+ amount: string;
372
+ currency: "USD";
373
+ };
374
+ }>;
375
+ };
376
+ delete: (options: import("./core/transport.js").CallOptions<Types.DeleteCustomerData>) => Promise<{
377
+ id: string;
378
+ status: "pending";
379
+ }>;
380
+ list: (options: import("./core/transport.js").CallOptions<Types.ListCustomersData>) => Promise<{
381
+ data: Array<{
382
+ id: string;
383
+ type: "identified" | "anonymous";
384
+ merged_into: string | null;
385
+ blocked: boolean;
386
+ first_seen_at: string | null;
387
+ last_seen_at: string | null;
388
+ session_count: number;
389
+ cost: {
390
+ amount: string;
391
+ currency: "USD";
392
+ };
393
+ }>;
394
+ next_page: string | null;
395
+ }>;
396
+ retrieve: (options: import("./core/transport.js").CallOptions<Types.GetCustomerData>) => Promise<{
397
+ id: string;
398
+ type: "identified" | "anonymous";
399
+ merged_into: string | null;
400
+ blocked: boolean;
401
+ first_seen_at: string | null;
402
+ last_seen_at: string | null;
403
+ session_count: number;
404
+ cost: {
405
+ amount: string;
406
+ currency: "USD";
407
+ };
408
+ recent_sessions: Array<{
409
+ id: string;
410
+ title: string | null;
411
+ source: string | null;
412
+ created_at: string;
413
+ updated_at: string;
414
+ }>;
415
+ }>;
416
+ retrieveDeletion: (options: import("./core/transport.js").CallOptions<Types.GetCustomerDeletionData>) => Promise<{
417
+ id: string;
418
+ status: "pending" | "snapshotting" | "deleting" | "done" | "failed";
419
+ counts: {
420
+ sessions?: number;
421
+ events?: number;
422
+ messages?: number;
423
+ d1_rows?: number;
424
+ attachments?: number;
425
+ };
426
+ snapshot_key?: string;
427
+ error?: string;
428
+ created_at: string;
429
+ updated_at: string;
430
+ }>;
431
+ revokeTokens: {
432
+ create: (options: import("./core/transport.js").CallOptions<Types.RevokeCustomerTokensData>) => Promise<{
433
+ revoked: number;
434
+ }>;
435
+ };
436
+ unblock: {
437
+ create: (options: import("./core/transport.js").CallOptions<Types.UnblockCustomerData>) => Promise<{
438
+ id: string;
439
+ type: "identified" | "anonymous";
440
+ merged_into: string | null;
441
+ blocked: boolean;
442
+ first_seen_at: string | null;
443
+ last_seen_at: string | null;
444
+ session_count: number;
445
+ cost: {
446
+ amount: string;
447
+ currency: "USD";
448
+ };
449
+ }>;
450
+ };
357
451
  };
358
452
  endUsers: {
359
453
  block: {
@@ -479,9 +573,11 @@ export declare function createAgent(transport: Transport): {
479
573
  id: string;
480
574
  access: "read_only" | "read_write" | "invoke";
481
575
  instructions?: string;
576
+ readonly verified?: boolean;
482
577
  enabled?: boolean;
483
578
  } | {
484
579
  type: "search" | "browser";
580
+ readonly verified?: boolean;
485
581
  enabled?: boolean;
486
582
  }>;
487
583
  kind: "personal" | "service";
@@ -638,9 +734,11 @@ export declare function createAgent(transport: Transport): {
638
734
  id: string;
639
735
  access: "read_only" | "read_write" | "invoke";
640
736
  instructions?: string;
737
+ readonly verified?: boolean;
641
738
  enabled?: boolean;
642
739
  } | {
643
740
  type: "search" | "browser";
741
+ readonly verified?: boolean;
644
742
  enabled?: boolean;
645
743
  }>;
646
744
  kind: "personal" | "service";
@@ -756,6 +854,64 @@ export declare function createAgent(transport: Transport): {
756
854
  vault_ids?: Array<string>;
757
855
  status: "active" | "archived";
758
856
  }>;
857
+ retrieveAppearance: (options: import("./core/transport.js").CallOptions<Types.GetAgentAppearanceData>) => Promise<{
858
+ agent?: {
859
+ name?: string;
860
+ avatar?: string;
861
+ };
862
+ layout?: "inline" | "sidebar" | "popup" | "modal";
863
+ launcher?: {
864
+ type: "none" | "bubble" | "mascot";
865
+ pack?: {
866
+ preset?: "mint" | "cat" | "bot";
867
+ images?: {
868
+ idle: string;
869
+ greet?: string;
870
+ listening?: string;
871
+ thinking?: string;
872
+ talking?: string;
873
+ "talking-2"?: string;
874
+ sorry?: string;
875
+ sleep?: string;
876
+ };
877
+ };
878
+ image?: string;
879
+ motion?: "float" | "none";
880
+ position?: "bottom-right" | "bottom-left";
881
+ label?: string;
882
+ };
883
+ header?: {
884
+ title?: string;
885
+ subtitle?: string;
886
+ icon?: string;
887
+ };
888
+ theme?: {
889
+ colorScheme?: "light" | "dark" | "system";
890
+ accent?: string;
891
+ surface?: string;
892
+ grayscale?: "neutral" | "warm" | "cool";
893
+ radius?: "none" | "sm" | "md" | "lg" | "full";
894
+ density?: "compact" | "normal" | "spacious";
895
+ fontFamily?: string;
896
+ fontSize?: number;
897
+ };
898
+ locale?: "zh" | "en";
899
+ startScreen?: {
900
+ greeting?: string;
901
+ prompts?: Array<{
902
+ label: string;
903
+ prompt: string;
904
+ }>;
905
+ };
906
+ composer?: {
907
+ placeholder?: string;
908
+ };
909
+ disclaimer?: string;
910
+ footer?: string;
911
+ history?: {
912
+ enabled?: boolean;
913
+ };
914
+ }>;
759
915
  unarchive: {
760
916
  create: (options: import("./core/transport.js").CallOptions<Types.UnarchiveAgentData>) => Promise<{
761
917
  id: string;
@@ -998,9 +1154,11 @@ export declare function createAgent(transport: Transport): {
998
1154
  id: string;
999
1155
  access: "read_only" | "read_write" | "invoke";
1000
1156
  instructions?: string;
1157
+ readonly verified?: boolean;
1001
1158
  enabled?: boolean;
1002
1159
  } | {
1003
1160
  type: "search" | "browser";
1161
+ readonly verified?: boolean;
1004
1162
  enabled?: boolean;
1005
1163
  }>;
1006
1164
  kind: "personal" | "service";
@@ -1156,9 +1314,11 @@ export declare function createAgent(transport: Transport): {
1156
1314
  id: string;
1157
1315
  access: "read_only" | "read_write" | "invoke";
1158
1316
  instructions?: string;
1317
+ readonly verified?: boolean;
1159
1318
  enabled?: boolean;
1160
1319
  } | {
1161
1320
  type: "search" | "browser";
1321
+ readonly verified?: boolean;
1162
1322
  enabled?: boolean;
1163
1323
  }>;
1164
1324
  kind: "personal" | "service";
@@ -1516,9 +1676,11 @@ export declare function createAgent(transport: Transport): {
1516
1676
  id: string;
1517
1677
  access: "read_only" | "read_write" | "invoke";
1518
1678
  instructions?: string;
1679
+ readonly verified?: boolean;
1519
1680
  enabled?: boolean;
1520
1681
  } | {
1521
1682
  type: "search" | "browser";
1683
+ readonly verified?: boolean;
1522
1684
  enabled?: boolean;
1523
1685
  }>;
1524
1686
  kind: "personal" | "service";
@@ -1675,9 +1837,11 @@ export declare function createAgent(transport: Transport): {
1675
1837
  id: string;
1676
1838
  access: "read_only" | "read_write" | "invoke";
1677
1839
  instructions?: string;
1840
+ readonly verified?: boolean;
1678
1841
  enabled?: boolean;
1679
1842
  } | {
1680
1843
  type: "search" | "browser";
1844
+ readonly verified?: boolean;
1681
1845
  enabled?: boolean;
1682
1846
  }>;
1683
1847
  kind: "personal" | "service";
@@ -20,6 +20,19 @@ export function createAgent(transport) {
20
20
  create: bind(transport, sdk.createCustomerGrantCode),
21
21
  },
22
22
  },
23
+ block: {
24
+ create: bind(transport, sdk.blockCustomer),
25
+ },
26
+ delete: bind(transport, sdk.deleteCustomer),
27
+ list: bind(transport, sdk.listCustomers),
28
+ retrieve: bind(transport, sdk.getCustomer),
29
+ retrieveDeletion: bind(transport, sdk.getCustomerDeletion),
30
+ revokeTokens: {
31
+ create: bind(transport, sdk.revokeCustomerTokens),
32
+ },
33
+ unblock: {
34
+ create: bind(transport, sdk.unblockCustomer),
35
+ },
23
36
  },
24
37
  endUsers: {
25
38
  block: {
@@ -38,6 +51,7 @@ export function createAgent(transport) {
38
51
  },
39
52
  list: bind(transport, sdk.agentsList),
40
53
  retrieve: bind(transport, sdk.agentsRetrieve),
54
+ retrieveAppearance: bind(transport, sdk.getAgentAppearance),
41
55
  unarchive: {
42
56
  create: bind(transport, sdk.unarchiveAgent),
43
57
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@deepraxis/sdk",
3
- "version": "0.1.1-dev.69cffcf",
3
+ "version": "0.1.1-dev.76902b6",
4
4
  "type": "module",
5
5
  "sideEffects": false,
6
6
  "exports": {