@deepraxis/sdk 0.1.1-dev.b176367 → 0.1.1-dev.bdcd5e6

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,14 +42,17 @@ 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";
51
53
  computer_id?: string;
52
54
  subagent_model?: string | null;
55
+ image_model?: string | null;
53
56
  subagents?: Array<{
54
57
  name: string;
55
58
  description: string;
@@ -198,14 +201,17 @@ export declare function createAgent(transport: Transport): {
198
201
  id: string;
199
202
  access: "read_only" | "read_write" | "invoke";
200
203
  instructions?: string;
204
+ readonly verified?: boolean;
201
205
  enabled?: boolean;
202
206
  } | {
203
207
  type: "search" | "browser";
208
+ readonly verified?: boolean;
204
209
  enabled?: boolean;
205
210
  }>;
206
211
  kind: "personal" | "service";
207
212
  computer_id?: string;
208
213
  subagent_model?: string | null;
214
+ image_model?: string | null;
209
215
  subagents?: Array<{
210
216
  name: string;
211
217
  description: string;
@@ -352,40 +358,53 @@ export declare function createAgent(transport: Transport): {
352
358
  }>;
353
359
  };
354
360
  };
355
- };
356
- endUsers: {
357
361
  block: {
358
- create: (options: import("./core/transport.js").CallOptions<Types.BlockEndUserData>) => Promise<{
359
- external_user_id: string;
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;
360
367
  first_seen_at: string | null;
361
- last_active_at: string | null;
368
+ last_seen_at: string | null;
362
369
  session_count: number;
363
- cost_micro_usd: number;
364
- blocked: boolean;
370
+ cost: {
371
+ amount: string;
372
+ currency: "USD";
373
+ };
365
374
  }>;
366
375
  };
367
- delete: (options: import("./core/transport.js").CallOptions<Types.DeleteEndUserData>) => Promise<{
376
+ delete: (options: import("./core/transport.js").CallOptions<Types.DeleteCustomerData>) => Promise<{
368
377
  id: string;
369
378
  status: "pending";
370
379
  }>;
371
- list: (options: import("./core/transport.js").CallOptions<Types.ListEndUsersData>) => Promise<{
380
+ list: (options: import("./core/transport.js").CallOptions<Types.ListCustomersData>) => Promise<{
372
381
  data: Array<{
373
- external_user_id: string;
382
+ id: string;
383
+ type: "identified" | "anonymous";
384
+ merged_into: string | null;
385
+ blocked: boolean;
374
386
  first_seen_at: string | null;
375
- last_active_at: string | null;
387
+ last_seen_at: string | null;
376
388
  session_count: number;
377
- cost_micro_usd: number;
378
- blocked: boolean;
389
+ cost: {
390
+ amount: string;
391
+ currency: "USD";
392
+ };
379
393
  }>;
380
394
  next_page: string | null;
381
395
  }>;
382
- retrieve: (options: import("./core/transport.js").CallOptions<Types.GetEndUserData>) => Promise<{
383
- external_user_id: string;
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;
384
401
  first_seen_at: string | null;
385
- last_active_at: string | null;
402
+ last_seen_at: string | null;
386
403
  session_count: number;
387
- cost_micro_usd: number;
388
- blocked: boolean;
404
+ cost: {
405
+ amount: string;
406
+ currency: "USD";
407
+ };
389
408
  recent_sessions: Array<{
390
409
  id: string;
391
410
  title: string | null;
@@ -394,7 +413,7 @@ export declare function createAgent(transport: Transport): {
394
413
  updated_at: string;
395
414
  }>;
396
415
  }>;
397
- retrieveDeletion: (options: import("./core/transport.js").CallOptions<Types.GetEndUserDeletionData>) => Promise<{
416
+ retrieveDeletion: (options: import("./core/transport.js").CallOptions<Types.GetCustomerDeletionData>) => Promise<{
398
417
  id: string;
399
418
  status: "pending" | "snapshotting" | "deleting" | "done" | "failed";
400
419
  counts: {
@@ -410,18 +429,23 @@ export declare function createAgent(transport: Transport): {
410
429
  updated_at: string;
411
430
  }>;
412
431
  revokeTokens: {
413
- create: (options: import("./core/transport.js").CallOptions<Types.RevokeEndUserTokensData>) => Promise<{
432
+ create: (options: import("./core/transport.js").CallOptions<Types.RevokeCustomerTokensData>) => Promise<{
414
433
  revoked: number;
415
434
  }>;
416
435
  };
417
436
  unblock: {
418
- create: (options: import("./core/transport.js").CallOptions<Types.UnblockEndUserData>) => Promise<{
419
- external_user_id: string;
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;
420
442
  first_seen_at: string | null;
421
- last_active_at: string | null;
443
+ last_seen_at: string | null;
422
444
  session_count: number;
423
- cost_micro_usd: number;
424
- blocked: boolean;
445
+ cost: {
446
+ amount: string;
447
+ currency: "USD";
448
+ };
425
449
  }>;
426
450
  };
427
451
  };
@@ -465,14 +489,17 @@ export declare function createAgent(transport: Transport): {
465
489
  id: string;
466
490
  access: "read_only" | "read_write" | "invoke";
467
491
  instructions?: string;
492
+ readonly verified?: boolean;
468
493
  enabled?: boolean;
469
494
  } | {
470
495
  type: "search" | "browser";
496
+ readonly verified?: boolean;
471
497
  enabled?: boolean;
472
498
  }>;
473
499
  kind: "personal" | "service";
474
500
  computer_id?: string;
475
501
  subagent_model?: string | null;
502
+ image_model?: string | null;
476
503
  subagents?: Array<{
477
504
  name: string;
478
505
  description: string;
@@ -623,14 +650,17 @@ export declare function createAgent(transport: Transport): {
623
650
  id: string;
624
651
  access: "read_only" | "read_write" | "invoke";
625
652
  instructions?: string;
653
+ readonly verified?: boolean;
626
654
  enabled?: boolean;
627
655
  } | {
628
656
  type: "search" | "browser";
657
+ readonly verified?: boolean;
629
658
  enabled?: boolean;
630
659
  }>;
631
660
  kind: "personal" | "service";
632
661
  computer_id?: string;
633
662
  subagent_model?: string | null;
663
+ image_model?: string | null;
634
664
  subagents?: Array<{
635
665
  name: string;
636
666
  description: string;
@@ -740,6 +770,64 @@ export declare function createAgent(transport: Transport): {
740
770
  vault_ids?: Array<string>;
741
771
  status: "active" | "archived";
742
772
  }>;
773
+ retrieveAppearance: (options: import("./core/transport.js").CallOptions<Types.GetAgentAppearanceData>) => Promise<{
774
+ agent?: {
775
+ name?: string;
776
+ avatar?: string;
777
+ };
778
+ layout?: "inline" | "sidebar" | "popup" | "modal";
779
+ launcher?: {
780
+ type: "none" | "bubble" | "mascot";
781
+ pack?: {
782
+ preset?: "mint" | "cat" | "bot";
783
+ images?: {
784
+ idle: string;
785
+ greet?: string;
786
+ listening?: string;
787
+ thinking?: string;
788
+ talking?: string;
789
+ "talking-2"?: string;
790
+ sorry?: string;
791
+ sleep?: string;
792
+ };
793
+ };
794
+ image?: string;
795
+ motion?: "float" | "none";
796
+ position?: "bottom-right" | "bottom-left";
797
+ label?: string;
798
+ };
799
+ header?: {
800
+ title?: string;
801
+ subtitle?: string;
802
+ icon?: string;
803
+ };
804
+ theme?: {
805
+ colorScheme?: "light" | "dark" | "system";
806
+ accent?: string;
807
+ surface?: string;
808
+ grayscale?: "neutral" | "warm" | "cool";
809
+ radius?: "none" | "sm" | "md" | "lg" | "full";
810
+ density?: "compact" | "normal" | "spacious";
811
+ fontFamily?: string;
812
+ fontSize?: number;
813
+ };
814
+ locale?: "zh" | "en";
815
+ startScreen?: {
816
+ greeting?: string;
817
+ prompts?: Array<{
818
+ label: string;
819
+ prompt: string;
820
+ }>;
821
+ };
822
+ composer?: {
823
+ placeholder?: string;
824
+ };
825
+ disclaimer?: string;
826
+ footer?: string;
827
+ history?: {
828
+ enabled?: boolean;
829
+ };
830
+ }>;
743
831
  unarchive: {
744
832
  create: (options: import("./core/transport.js").CallOptions<Types.UnarchiveAgentData>) => Promise<{
745
833
  id: string;
@@ -982,14 +1070,17 @@ export declare function createAgent(transport: Transport): {
982
1070
  id: string;
983
1071
  access: "read_only" | "read_write" | "invoke";
984
1072
  instructions?: string;
1073
+ readonly verified?: boolean;
985
1074
  enabled?: boolean;
986
1075
  } | {
987
1076
  type: "search" | "browser";
1077
+ readonly verified?: boolean;
988
1078
  enabled?: boolean;
989
1079
  }>;
990
1080
  kind: "personal" | "service";
991
1081
  computer_id?: string;
992
1082
  subagent_model?: string | null;
1083
+ image_model?: string | null;
993
1084
  subagents?: Array<{
994
1085
  name: string;
995
1086
  description: string;
@@ -1139,14 +1230,17 @@ export declare function createAgent(transport: Transport): {
1139
1230
  id: string;
1140
1231
  access: "read_only" | "read_write" | "invoke";
1141
1232
  instructions?: string;
1233
+ readonly verified?: boolean;
1142
1234
  enabled?: boolean;
1143
1235
  } | {
1144
1236
  type: "search" | "browser";
1237
+ readonly verified?: boolean;
1145
1238
  enabled?: boolean;
1146
1239
  }>;
1147
1240
  kind: "personal" | "service";
1148
1241
  computer_id?: string;
1149
1242
  subagent_model?: string | null;
1243
+ image_model?: string | null;
1150
1244
  subagents?: Array<{
1151
1245
  name: string;
1152
1246
  description: string;
@@ -1498,14 +1592,17 @@ export declare function createAgent(transport: Transport): {
1498
1592
  id: string;
1499
1593
  access: "read_only" | "read_write" | "invoke";
1500
1594
  instructions?: string;
1595
+ readonly verified?: boolean;
1501
1596
  enabled?: boolean;
1502
1597
  } | {
1503
1598
  type: "search" | "browser";
1599
+ readonly verified?: boolean;
1504
1600
  enabled?: boolean;
1505
1601
  }>;
1506
1602
  kind: "personal" | "service";
1507
1603
  computer_id?: string;
1508
1604
  subagent_model?: string | null;
1605
+ image_model?: string | null;
1509
1606
  subagents?: Array<{
1510
1607
  name: string;
1511
1608
  description: string;
@@ -1656,14 +1753,17 @@ export declare function createAgent(transport: Transport): {
1656
1753
  id: string;
1657
1754
  access: "read_only" | "read_write" | "invoke";
1658
1755
  instructions?: string;
1756
+ readonly verified?: boolean;
1659
1757
  enabled?: boolean;
1660
1758
  } | {
1661
1759
  type: "search" | "browser";
1760
+ readonly verified?: boolean;
1662
1761
  enabled?: boolean;
1663
1762
  }>;
1664
1763
  kind: "personal" | "service";
1665
1764
  computer_id?: string;
1666
1765
  subagent_model?: string | null;
1766
+ image_model?: string | null;
1667
1767
  subagents?: Array<{
1668
1768
  name: string;
1669
1769
  description: string;
@@ -2176,122 +2276,6 @@ export declare function createAgent(transport: Transport): {
2176
2276
  };
2177
2277
  }>;
2178
2278
  };
2179
- embed: {
2180
- exchange: {
2181
- create: (options: import("./core/transport.js").CallOptions<Types.ExchangeEmbedCodeData>) => Promise<{
2182
- token: string;
2183
- expires_at: string;
2184
- }>;
2185
- };
2186
- retrieveAppearance: (options?: import("./core/transport.js").CallOptions<Types.GetEmbedAppearanceData> | undefined) => Promise<{
2187
- agent?: {
2188
- name?: string;
2189
- avatar?: string;
2190
- };
2191
- layout?: "inline" | "sidebar" | "popup" | "modal";
2192
- launcher?: {
2193
- type: "none" | "bubble" | "mascot";
2194
- pack?: {
2195
- preset?: "mint" | "cat" | "bot";
2196
- images?: {
2197
- idle: string;
2198
- greet?: string;
2199
- listening?: string;
2200
- thinking?: string;
2201
- talking?: string;
2202
- "talking-2"?: string;
2203
- sorry?: string;
2204
- sleep?: string;
2205
- };
2206
- };
2207
- image?: string;
2208
- motion?: "float" | "none";
2209
- position?: "bottom-right" | "bottom-left";
2210
- label?: string;
2211
- };
2212
- header?: {
2213
- title?: string;
2214
- subtitle?: string;
2215
- icon?: string;
2216
- };
2217
- theme?: {
2218
- colorScheme?: "light" | "dark" | "system";
2219
- accent?: string;
2220
- surface?: string;
2221
- grayscale?: "neutral" | "warm" | "cool";
2222
- radius?: "none" | "sm" | "md" | "lg" | "full";
2223
- density?: "compact" | "normal" | "spacious";
2224
- fontFamily?: string;
2225
- fontSize?: number;
2226
- };
2227
- locale?: "zh" | "en";
2228
- startScreen?: {
2229
- greeting?: string;
2230
- prompts?: Array<{
2231
- label: string;
2232
- prompt: string;
2233
- }>;
2234
- };
2235
- composer?: {
2236
- placeholder?: string;
2237
- };
2238
- disclaimer?: string;
2239
- footer?: string;
2240
- history?: {
2241
- enabled?: boolean;
2242
- };
2243
- }>;
2244
- };
2245
- embedTokens: {
2246
- anonymous: {
2247
- create: (options: import("./core/transport.js").CallOptions<Types.CreateAnonymousEmbedTokenData>) => Promise<{
2248
- token: string;
2249
- expires_at: string;
2250
- visitor_secret?: string;
2251
- }>;
2252
- };
2253
- create: (options: import("./core/transport.js").CallOptions<Types.CreateEmbedTokenData>) => Promise<{
2254
- hosted_url?: string;
2255
- id: string;
2256
- token: string;
2257
- expires_at: string;
2258
- }>;
2259
- list: (options?: import("./core/transport.js").CallOptions<Types.ListEmbedTokensData> | undefined) => Promise<{
2260
- data: Array<{
2261
- id: string;
2262
- type: "embed_token";
2263
- agent_id: string;
2264
- agent_version: number;
2265
- external_user_id: string;
2266
- created_at: string;
2267
- expires_at: string;
2268
- revoked_at: string | null;
2269
- host_origin: string | null;
2270
- issued_by: {
2271
- type: "user" | "api_key";
2272
- id: string;
2273
- };
2274
- }>;
2275
- next_page: string | null;
2276
- }>;
2277
- revoke: {
2278
- create: (options: import("./core/transport.js").CallOptions<Types.RevokeEmbedTokenData>) => Promise<{
2279
- id: string;
2280
- type: "embed_token";
2281
- agent_id: string;
2282
- agent_version: number;
2283
- external_user_id: string;
2284
- created_at: string;
2285
- expires_at: string;
2286
- revoked_at: string | null;
2287
- host_origin: string | null;
2288
- issued_by: {
2289
- type: "user" | "api_key";
2290
- id: string;
2291
- };
2292
- }>;
2293
- };
2294
- };
2295
2279
  environments: {
2296
2280
  archive: (options: import("./core/transport.js").CallOptions<Types.EnvironmentsArchiveData>) => Promise<Types.AgentManaged138>;
2297
2281
  create: (options: import("./core/transport.js").CallOptions<Types.EnvironmentsCreateData>) => Promise<Types.AgentManaged138>;
@@ -3213,6 +3197,10 @@ export declare function createAgent(transport: Transport): {
3213
3197
  web_fetch_requests?: number;
3214
3198
  web_search_requests?: number;
3215
3199
  };
3200
+ runtime_cost?: {
3201
+ amount: string;
3202
+ currency: "USD";
3203
+ };
3216
3204
  };
3217
3205
  vault_ids: Array<string>;
3218
3206
  deployment_id?: null | string;
@@ -20,24 +20,23 @@ export function createAgent(transport) {
20
20
  create: bind(transport, sdk.createCustomerGrantCode),
21
21
  },
22
22
  },
23
- },
24
- endUsers: {
25
23
  block: {
26
- create: bind(transport, sdk.blockEndUser),
24
+ create: bind(transport, sdk.blockCustomer),
27
25
  },
28
- delete: bind(transport, sdk.deleteEndUser),
29
- list: bind(transport, sdk.listEndUsers),
30
- retrieve: bind(transport, sdk.getEndUser),
31
- retrieveDeletion: bind(transport, sdk.getEndUserDeletion),
26
+ delete: bind(transport, sdk.deleteCustomer),
27
+ list: bind(transport, sdk.listCustomers),
28
+ retrieve: bind(transport, sdk.getCustomer),
29
+ retrieveDeletion: bind(transport, sdk.getCustomerDeletion),
32
30
  revokeTokens: {
33
- create: bind(transport, sdk.revokeEndUserTokens),
31
+ create: bind(transport, sdk.revokeCustomerTokens),
34
32
  },
35
33
  unblock: {
36
- create: bind(transport, sdk.unblockEndUser),
34
+ create: bind(transport, sdk.unblockCustomer),
37
35
  },
38
36
  },
39
37
  list: bind(transport, sdk.agentsList),
40
38
  retrieve: bind(transport, sdk.agentsRetrieve),
39
+ retrieveAppearance: bind(transport, sdk.getAgentAppearance),
41
40
  unarchive: {
42
41
  create: bind(transport, sdk.unarchiveAgent),
43
42
  },
@@ -87,22 +86,6 @@ export function createAgent(transport) {
87
86
  },
88
87
  update: bind(transport, sdk.deploymentsUpdate),
89
88
  },
90
- embed: {
91
- exchange: {
92
- create: bind(transport, sdk.exchangeEmbedCode),
93
- },
94
- retrieveAppearance: bind(transport, sdk.getEmbedAppearance),
95
- },
96
- embedTokens: {
97
- anonymous: {
98
- create: bind(transport, sdk.createAnonymousEmbedToken),
99
- },
100
- create: bind(transport, sdk.createEmbedToken),
101
- list: bind(transport, sdk.listEmbedTokens),
102
- revoke: {
103
- create: bind(transport, sdk.revokeEmbedToken),
104
- },
105
- },
106
89
  environments: {
107
90
  archive: bind(transport, sdk.environmentsArchive),
108
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.b176367",
3
+ "version": "0.1.1-dev.bdcd5e6",
4
4
  "type": "module",
5
5
  "sideEffects": false,
6
6
  "exports": {