@deepraxis/sdk 0.1.1-dev.69cffcf → 0.1.1-dev.6c9ff91

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.
@@ -348,6 +348,21 @@ export declare const operations: readonly [{
348
348
  readonly description: "Optional tool preset. minimal enables read, glob, grep and ask_user_question; data-editor also enables write and edit; full uses the default toolset with always_allow. Explicit tools override matching preset entries. codemode requires bash and is absent from data-editor.";
349
349
  }];
350
350
  };
351
+ }, {
352
+ readonly resource: "agent.agents";
353
+ readonly method: "retrieveAppearance";
354
+ readonly summary: "Get agent appearance";
355
+ readonly description: "Read the saved chat appearance of a service agent.\n\nAgent Kit calls this from the page with a customer access token of this agent; your API key and console members can read it too. A token of another agent returns 404. The body is the same as the embed appearance read; a missing appearance returns the agent's own name and avatar only. Responses are private and cacheable for 60 seconds.";
356
+ readonly http: "GET";
357
+ readonly path: "/agent/v1/agents/{agent_id}/appearance";
358
+ readonly streaming: "no";
359
+ readonly pagination: false;
360
+ readonly pathParams: readonly [{
361
+ readonly name: "agent_id";
362
+ readonly sdkName: "agent_id";
363
+ readonly description: "Service agent id from agent creation or listing; with a customer access token, the agent the token was issued for.";
364
+ }];
365
+ readonly query: readonly [];
351
366
  }, {
352
367
  readonly resource: "agent.agents";
353
368
  readonly method: "archive";
@@ -363,6 +378,47 @@ export declare const operations: readonly [{
363
378
  readonly description: "Agent id, as returned by agents.create or agents.list (for a session filter, the agent the session was created with). Not the agent name.";
364
379
  }];
365
380
  readonly query: readonly [];
381
+ }, {
382
+ readonly resource: "agent.agents.customers";
383
+ readonly method: "list";
384
+ readonly summary: "List customers";
385
+ readonly description: "List the customers of a service agent, identified and anonymous, most recently seen first.\n\nCall this from your backend with your API key, or from the console. Customers follow Shopify Admin customers (list, retrieve, block, sign-out and data deletion of the people who use your storefront), so that experience applies. The list includes customers who signed in but have not started a session yet, and customers recorded under your own ids by embed tokens before customer sign-in existed; an id first seen that way is identified unless it starts with anon_. Unlike Shopify, a customer can be anonymous: a visitor admitted with the publishable key gets an anon_ id, and when it later signs in with anonymous_access_token it is merged: merged_into names the identified customer, and its sessions count toward that customer. Filter with q (a case-sensitive customer id prefix), type (identified or anonymous) and blocked (true or false). limit is 1 to 100, default 20; reuse next_page with the same filters and limit. A customer access token gets 404. Example: GET /agent/v1/agents/agent_example/customers?type=identified&blocked=false&limit=50.";
386
+ readonly http: "GET";
387
+ readonly path: "/agent/v1/agents/{agent_id}/customers";
388
+ readonly streaming: "no";
389
+ readonly pagination: false;
390
+ readonly pathParams: readonly [{
391
+ readonly name: "agent_id";
392
+ readonly sdkName: "agent_id";
393
+ readonly description: "Active service agent id from agent creation or listing.";
394
+ }];
395
+ readonly query: readonly [{
396
+ readonly name: "limit";
397
+ readonly type: "integer";
398
+ readonly required: false;
399
+ readonly description: "Maximum customers per page, 1 to 100; defaults to 20.";
400
+ }, {
401
+ readonly name: "page";
402
+ readonly type: "string";
403
+ readonly required: false;
404
+ readonly description: "next_page from the previous response with the same q, type, blocked and limit.";
405
+ }, {
406
+ readonly name: "q";
407
+ readonly type: "string";
408
+ readonly required: false;
409
+ readonly description: "Case-sensitive literal prefix of the customer id; omit for all customers.";
410
+ }, {
411
+ readonly name: "type";
412
+ readonly type: "string";
413
+ readonly enum: readonly ["identified", "anonymous"];
414
+ readonly required: false;
415
+ readonly description: "Only identified or only anonymous customers; omit for both.";
416
+ }, {
417
+ readonly name: "blocked";
418
+ readonly type: "boolean";
419
+ readonly required: false;
420
+ readonly description: "true for blocked customers only, false for customers who are not blocked; omit for both.";
421
+ }];
366
422
  }, {
367
423
  readonly resource: "agent.agents.customers.auth.accessTokens";
368
424
  readonly method: "create";
@@ -487,6 +543,125 @@ export declare const operations: readonly [{
487
543
  readonly description: "Set true to also return hosted_url, a link to the agent's Hosted chat page that carries the code in its fragment. The page exchanges the code only when the customer clicks to start, so link previews in email or chat apps do not use it up. The agent must have an identity_number, and origin cannot be set: the code is bound to no origin. Defaults to false.";
488
544
  }];
489
545
  };
546
+ }, {
547
+ readonly resource: "agent.agents.customers";
548
+ readonly method: "delete";
549
+ readonly summary: "Delete customer data";
550
+ readonly description: "Delete a customer's data from one service agent after explicit confirmation.\n\nDevelop only. Set confirm to the exact customer id; a missing or different confirm returns 400 naming the value to send. Returns 202 with a pending task id; poll the deletion endpoint. Concurrent requests reuse the unfinished task; retry DELETE after failure to resume it. Tokens are revoked and the customer is blocked before a seven-day recovery snapshot is verified; sessions including child sessions, conversation data, grants and feedback are then removed. A block that existed before stays; a temporary block is removed on success. File attachments are retained. Example: DELETE /agent/v1/agents/agent_example/customers/cus_8f2a91?confirm=cus_8f2a91.";
551
+ readonly http: "DELETE";
552
+ readonly path: "/agent/v1/agents/{agent_id}/customers/{customer_id}";
553
+ readonly streaming: "no";
554
+ readonly pagination: false;
555
+ readonly pathParams: readonly [{
556
+ readonly name: "agent_id";
557
+ readonly sdkName: "agent_id";
558
+ readonly description: "Active service agent id from agent creation or listing.";
559
+ }, {
560
+ readonly name: "customer_id";
561
+ readonly sdkName: "customer_id";
562
+ readonly description: "Customer id from customer listing, or your own customer_id.";
563
+ }];
564
+ readonly query: readonly [{
565
+ readonly name: "confirm";
566
+ readonly type: "string";
567
+ readonly required: true;
568
+ readonly description: "Must equal the customer_id path parameter exactly, confirming the destructive deletion.";
569
+ }];
570
+ }, {
571
+ readonly resource: "agent.agents.customers";
572
+ readonly method: "retrieve";
573
+ readonly summary: "Get customer";
574
+ readonly description: "Retrieve one customer of a service agent with its twenty most recently updated sessions.\n\nUse the customer id from the list or your own customer_id. An unknown customer returns 404 CUSTOMER_NOT_FOUND, and so does a customer access token. Unlike Shopify, an identified customer's session_count, cost and recent_sessions include the sessions of anonymous customers merged into it; the merged anonymous customer still shows its own sessions and its merged_into.";
575
+ readonly http: "GET";
576
+ readonly path: "/agent/v1/agents/{agent_id}/customers/{customer_id}";
577
+ readonly streaming: "no";
578
+ readonly pagination: false;
579
+ readonly pathParams: readonly [{
580
+ readonly name: "agent_id";
581
+ readonly sdkName: "agent_id";
582
+ readonly description: "Active service agent id from agent creation or listing.";
583
+ }, {
584
+ readonly name: "customer_id";
585
+ readonly sdkName: "customer_id";
586
+ readonly description: "Customer id from customer listing, or your own customer_id.";
587
+ }];
588
+ readonly query: readonly [];
589
+ }, {
590
+ readonly resource: "agent.agents.customers.block";
591
+ readonly method: "create";
592
+ readonly summary: "Block customer";
593
+ readonly description: "Block a customer and end every sign-in it has on this agent.\n\nBlocks the customer, then ends every live sign-in the way logout does: each access token is revoked and its open event streams close. From then on grant_codes, access_tokens, renew and new sessions for this customer return CUSTOMER_BLOCKED until you unblock it. Idempotent: a repeat keeps the first block time and revokes whatever is still live. If credential revocation fails the request returns 502 and the customer stays blocked; retry to finish. An unknown customer returns 404 CUSTOMER_NOT_FOUND.";
594
+ readonly http: "POST";
595
+ readonly path: "/agent/v1/agents/{agent_id}/customers/{customer_id}/block";
596
+ readonly streaming: "no";
597
+ readonly pagination: false;
598
+ readonly pathParams: readonly [{
599
+ readonly name: "agent_id";
600
+ readonly sdkName: "agent_id";
601
+ readonly description: "Active service agent id from agent creation or listing.";
602
+ }, {
603
+ readonly name: "customer_id";
604
+ readonly sdkName: "customer_id";
605
+ readonly description: "Customer id from customer listing, or your own customer_id.";
606
+ }];
607
+ readonly query: readonly [];
608
+ }, {
609
+ readonly resource: "agent.agents.customers";
610
+ readonly method: "retrieveDeletion";
611
+ readonly summary: "Get customer deletion";
612
+ readonly description: "Poll the latest deletion task of a customer, including after its data has been removed.\n\nUse the same agent_id and customer id as the confirmed DELETE. Status is pending, snapshotting, deleting, done or failed. Counts are empty until a verified snapshot exists. snapshot_key is an operator recovery reference retained for seven days, not a download URL. A customer access token and a missing task return 404.";
613
+ readonly http: "GET";
614
+ readonly path: "/agent/v1/agents/{agent_id}/customers/{customer_id}/deletion";
615
+ readonly streaming: "no";
616
+ readonly pagination: false;
617
+ readonly pathParams: readonly [{
618
+ readonly name: "agent_id";
619
+ readonly sdkName: "agent_id";
620
+ readonly description: "Active service agent id from agent creation or listing.";
621
+ }, {
622
+ readonly name: "customer_id";
623
+ readonly sdkName: "customer_id";
624
+ readonly description: "Customer id from customer listing, or your own customer_id.";
625
+ }];
626
+ readonly query: readonly [];
627
+ }, {
628
+ readonly resource: "agent.agents.customers.revokeTokens";
629
+ readonly method: "create";
630
+ readonly summary: "Revoke customer tokens";
631
+ readonly description: "Sign a customer out everywhere without blocking it.\n\nEnds every live sign-in of the customer, revoking each access token and closing its open event streams; the customer can sign in again right away. Returns the number of access tokens this request revoked; a repeat returns 0. Credential revocation failure returns 502; retry to finish. An unknown customer returns 404 CUSTOMER_NOT_FOUND.";
632
+ readonly http: "POST";
633
+ readonly path: "/agent/v1/agents/{agent_id}/customers/{customer_id}/revoke_tokens";
634
+ readonly streaming: "no";
635
+ readonly pagination: false;
636
+ readonly pathParams: readonly [{
637
+ readonly name: "agent_id";
638
+ readonly sdkName: "agent_id";
639
+ readonly description: "Active service agent id from agent creation or listing.";
640
+ }, {
641
+ readonly name: "customer_id";
642
+ readonly sdkName: "customer_id";
643
+ readonly description: "Customer id from customer listing, or your own customer_id.";
644
+ }];
645
+ readonly query: readonly [];
646
+ }, {
647
+ readonly resource: "agent.agents.customers.unblock";
648
+ readonly method: "create";
649
+ readonly summary: "Unblock customer";
650
+ readonly description: "Allow a blocked customer to sign in and start sessions again.\n\nIdempotent. Access tokens revoked while the customer was blocked stay revoked; sign the customer in again with a new grant code. An unknown customer returns 404 CUSTOMER_NOT_FOUND.";
651
+ readonly http: "POST";
652
+ readonly path: "/agent/v1/agents/{agent_id}/customers/{customer_id}/unblock";
653
+ readonly streaming: "no";
654
+ readonly pagination: false;
655
+ readonly pathParams: readonly [{
656
+ readonly name: "agent_id";
657
+ readonly sdkName: "agent_id";
658
+ readonly description: "Active service agent id from agent creation or listing.";
659
+ }, {
660
+ readonly name: "customer_id";
661
+ readonly sdkName: "customer_id";
662
+ readonly description: "Customer id from customer listing, or your own customer_id.";
663
+ }];
664
+ readonly query: readonly [];
490
665
  }, {
491
666
  readonly resource: "agent.agents.endUsers";
492
667
  readonly method: "list";
@@ -436,6 +436,24 @@ export const operations = [
436
436
  ]
437
437
  }
438
438
  },
439
+ {
440
+ "resource": "agent.agents",
441
+ "method": "retrieveAppearance",
442
+ "summary": "Get agent appearance",
443
+ "description": "Read the saved chat appearance of a service agent.\n\nAgent Kit calls this from the page with a customer access token of this agent; your API key and console members can read it too. A token of another agent returns 404. The body is the same as the embed appearance read; a missing appearance returns the agent's own name and avatar only. Responses are private and cacheable for 60 seconds.",
444
+ "http": "GET",
445
+ "path": "/agent/v1/agents/{agent_id}/appearance",
446
+ "streaming": "no",
447
+ "pagination": false,
448
+ "pathParams": [
449
+ {
450
+ "name": "agent_id",
451
+ "sdkName": "agent_id",
452
+ "description": "Service agent id from agent creation or listing; with a customer access token, the agent the token was issued for."
453
+ }
454
+ ],
455
+ "query": []
456
+ },
439
457
  {
440
458
  "resource": "agent.agents",
441
459
  "method": "archive",
@@ -454,6 +472,59 @@ export const operations = [
454
472
  ],
455
473
  "query": []
456
474
  },
475
+ {
476
+ "resource": "agent.agents.customers",
477
+ "method": "list",
478
+ "summary": "List customers",
479
+ "description": "List the customers of a service agent, identified and anonymous, most recently seen first.\n\nCall this from your backend with your API key, or from the console. Customers follow Shopify Admin customers (list, retrieve, block, sign-out and data deletion of the people who use your storefront), so that experience applies. The list includes customers who signed in but have not started a session yet, and customers recorded under your own ids by embed tokens before customer sign-in existed; an id first seen that way is identified unless it starts with anon_. Unlike Shopify, a customer can be anonymous: a visitor admitted with the publishable key gets an anon_ id, and when it later signs in with anonymous_access_token it is merged: merged_into names the identified customer, and its sessions count toward that customer. Filter with q (a case-sensitive customer id prefix), type (identified or anonymous) and blocked (true or false). limit is 1 to 100, default 20; reuse next_page with the same filters and limit. A customer access token gets 404. Example: GET /agent/v1/agents/agent_example/customers?type=identified&blocked=false&limit=50.",
480
+ "http": "GET",
481
+ "path": "/agent/v1/agents/{agent_id}/customers",
482
+ "streaming": "no",
483
+ "pagination": false,
484
+ "pathParams": [
485
+ {
486
+ "name": "agent_id",
487
+ "sdkName": "agent_id",
488
+ "description": "Active service agent id from agent creation or listing."
489
+ }
490
+ ],
491
+ "query": [
492
+ {
493
+ "name": "limit",
494
+ "type": "integer",
495
+ "required": false,
496
+ "description": "Maximum customers per page, 1 to 100; defaults to 20."
497
+ },
498
+ {
499
+ "name": "page",
500
+ "type": "string",
501
+ "required": false,
502
+ "description": "next_page from the previous response with the same q, type, blocked and limit."
503
+ },
504
+ {
505
+ "name": "q",
506
+ "type": "string",
507
+ "required": false,
508
+ "description": "Case-sensitive literal prefix of the customer id; omit for all customers."
509
+ },
510
+ {
511
+ "name": "type",
512
+ "type": "string",
513
+ "enum": [
514
+ "identified",
515
+ "anonymous"
516
+ ],
517
+ "required": false,
518
+ "description": "Only identified or only anonymous customers; omit for both."
519
+ },
520
+ {
521
+ "name": "blocked",
522
+ "type": "boolean",
523
+ "required": false,
524
+ "description": "true for blocked customers only, false for customers who are not blocked; omit for both."
525
+ }
526
+ ]
527
+ },
457
528
  {
458
529
  "resource": "agent.agents.customers.auth.accessTokens",
459
530
  "method": "create",
@@ -602,6 +673,151 @@ export const operations = [
602
673
  ]
603
674
  }
604
675
  },
676
+ {
677
+ "resource": "agent.agents.customers",
678
+ "method": "delete",
679
+ "summary": "Delete customer data",
680
+ "description": "Delete a customer's data from one service agent after explicit confirmation.\n\nDevelop only. Set confirm to the exact customer id; a missing or different confirm returns 400 naming the value to send. Returns 202 with a pending task id; poll the deletion endpoint. Concurrent requests reuse the unfinished task; retry DELETE after failure to resume it. Tokens are revoked and the customer is blocked before a seven-day recovery snapshot is verified; sessions including child sessions, conversation data, grants and feedback are then removed. A block that existed before stays; a temporary block is removed on success. File attachments are retained. Example: DELETE /agent/v1/agents/agent_example/customers/cus_8f2a91?confirm=cus_8f2a91.",
681
+ "http": "DELETE",
682
+ "path": "/agent/v1/agents/{agent_id}/customers/{customer_id}",
683
+ "streaming": "no",
684
+ "pagination": false,
685
+ "pathParams": [
686
+ {
687
+ "name": "agent_id",
688
+ "sdkName": "agent_id",
689
+ "description": "Active service agent id from agent creation or listing."
690
+ },
691
+ {
692
+ "name": "customer_id",
693
+ "sdkName": "customer_id",
694
+ "description": "Customer id from customer listing, or your own customer_id."
695
+ }
696
+ ],
697
+ "query": [
698
+ {
699
+ "name": "confirm",
700
+ "type": "string",
701
+ "required": true,
702
+ "description": "Must equal the customer_id path parameter exactly, confirming the destructive deletion."
703
+ }
704
+ ]
705
+ },
706
+ {
707
+ "resource": "agent.agents.customers",
708
+ "method": "retrieve",
709
+ "summary": "Get customer",
710
+ "description": "Retrieve one customer of a service agent with its twenty most recently updated sessions.\n\nUse the customer id from the list or your own customer_id. An unknown customer returns 404 CUSTOMER_NOT_FOUND, and so does a customer access token. Unlike Shopify, an identified customer's session_count, cost and recent_sessions include the sessions of anonymous customers merged into it; the merged anonymous customer still shows its own sessions and its merged_into.",
711
+ "http": "GET",
712
+ "path": "/agent/v1/agents/{agent_id}/customers/{customer_id}",
713
+ "streaming": "no",
714
+ "pagination": false,
715
+ "pathParams": [
716
+ {
717
+ "name": "agent_id",
718
+ "sdkName": "agent_id",
719
+ "description": "Active service agent id from agent creation or listing."
720
+ },
721
+ {
722
+ "name": "customer_id",
723
+ "sdkName": "customer_id",
724
+ "description": "Customer id from customer listing, or your own customer_id."
725
+ }
726
+ ],
727
+ "query": []
728
+ },
729
+ {
730
+ "resource": "agent.agents.customers.block",
731
+ "method": "create",
732
+ "summary": "Block customer",
733
+ "description": "Block a customer and end every sign-in it has on this agent.\n\nBlocks the customer, then ends every live sign-in the way logout does: each access token is revoked and its open event streams close. From then on grant_codes, access_tokens, renew and new sessions for this customer return CUSTOMER_BLOCKED until you unblock it. Idempotent: a repeat keeps the first block time and revokes whatever is still live. If credential revocation fails the request returns 502 and the customer stays blocked; retry to finish. An unknown customer returns 404 CUSTOMER_NOT_FOUND.",
734
+ "http": "POST",
735
+ "path": "/agent/v1/agents/{agent_id}/customers/{customer_id}/block",
736
+ "streaming": "no",
737
+ "pagination": false,
738
+ "pathParams": [
739
+ {
740
+ "name": "agent_id",
741
+ "sdkName": "agent_id",
742
+ "description": "Active service agent id from agent creation or listing."
743
+ },
744
+ {
745
+ "name": "customer_id",
746
+ "sdkName": "customer_id",
747
+ "description": "Customer id from customer listing, or your own customer_id."
748
+ }
749
+ ],
750
+ "query": []
751
+ },
752
+ {
753
+ "resource": "agent.agents.customers",
754
+ "method": "retrieveDeletion",
755
+ "summary": "Get customer deletion",
756
+ "description": "Poll the latest deletion task of a customer, including after its data has been removed.\n\nUse the same agent_id and customer id as the confirmed DELETE. Status is pending, snapshotting, deleting, done or failed. Counts are empty until a verified snapshot exists. snapshot_key is an operator recovery reference retained for seven days, not a download URL. A customer access token and a missing task return 404.",
757
+ "http": "GET",
758
+ "path": "/agent/v1/agents/{agent_id}/customers/{customer_id}/deletion",
759
+ "streaming": "no",
760
+ "pagination": false,
761
+ "pathParams": [
762
+ {
763
+ "name": "agent_id",
764
+ "sdkName": "agent_id",
765
+ "description": "Active service agent id from agent creation or listing."
766
+ },
767
+ {
768
+ "name": "customer_id",
769
+ "sdkName": "customer_id",
770
+ "description": "Customer id from customer listing, or your own customer_id."
771
+ }
772
+ ],
773
+ "query": []
774
+ },
775
+ {
776
+ "resource": "agent.agents.customers.revokeTokens",
777
+ "method": "create",
778
+ "summary": "Revoke customer tokens",
779
+ "description": "Sign a customer out everywhere without blocking it.\n\nEnds every live sign-in of the customer, revoking each access token and closing its open event streams; the customer can sign in again right away. Returns the number of access tokens this request revoked; a repeat returns 0. Credential revocation failure returns 502; retry to finish. An unknown customer returns 404 CUSTOMER_NOT_FOUND.",
780
+ "http": "POST",
781
+ "path": "/agent/v1/agents/{agent_id}/customers/{customer_id}/revoke_tokens",
782
+ "streaming": "no",
783
+ "pagination": false,
784
+ "pathParams": [
785
+ {
786
+ "name": "agent_id",
787
+ "sdkName": "agent_id",
788
+ "description": "Active service agent id from agent creation or listing."
789
+ },
790
+ {
791
+ "name": "customer_id",
792
+ "sdkName": "customer_id",
793
+ "description": "Customer id from customer listing, or your own customer_id."
794
+ }
795
+ ],
796
+ "query": []
797
+ },
798
+ {
799
+ "resource": "agent.agents.customers.unblock",
800
+ "method": "create",
801
+ "summary": "Unblock customer",
802
+ "description": "Allow a blocked customer to sign in and start sessions again.\n\nIdempotent. Access tokens revoked while the customer was blocked stay revoked; sign the customer in again with a new grant code. An unknown customer returns 404 CUSTOMER_NOT_FOUND.",
803
+ "http": "POST",
804
+ "path": "/agent/v1/agents/{agent_id}/customers/{customer_id}/unblock",
805
+ "streaming": "no",
806
+ "pagination": false,
807
+ "pathParams": [
808
+ {
809
+ "name": "agent_id",
810
+ "sdkName": "agent_id",
811
+ "description": "Active service agent id from agent creation or listing."
812
+ },
813
+ {
814
+ "name": "customer_id",
815
+ "sdkName": "customer_id",
816
+ "description": "Customer id from customer listing, or your own customer_id."
817
+ }
818
+ ],
819
+ "query": []
820
+ },
605
821
  {
606
822
  "resource": "agent.agents.endUsers",
607
823
  "method": "list",
@@ -354,6 +354,96 @@ export declare function createAgent(transport: Transport): {
354
354
  }>;
355
355
  };
356
356
  };
357
+ block: {
358
+ create: (options: import("./core/transport.js").CallOptions<Types.BlockCustomerData>) => Promise<{
359
+ id: string;
360
+ type: "identified" | "anonymous";
361
+ merged_into: string | null;
362
+ blocked: boolean;
363
+ first_seen_at: string | null;
364
+ last_seen_at: string | null;
365
+ session_count: number;
366
+ cost: {
367
+ amount: string;
368
+ currency: "USD";
369
+ };
370
+ }>;
371
+ };
372
+ delete: (options: import("./core/transport.js").CallOptions<Types.DeleteCustomerData>) => Promise<{
373
+ id: string;
374
+ status: "pending";
375
+ }>;
376
+ list: (options: import("./core/transport.js").CallOptions<Types.ListCustomersData>) => Promise<{
377
+ data: Array<{
378
+ id: string;
379
+ type: "identified" | "anonymous";
380
+ merged_into: string | null;
381
+ blocked: boolean;
382
+ first_seen_at: string | null;
383
+ last_seen_at: string | null;
384
+ session_count: number;
385
+ cost: {
386
+ amount: string;
387
+ currency: "USD";
388
+ };
389
+ }>;
390
+ next_page: string | null;
391
+ }>;
392
+ retrieve: (options: import("./core/transport.js").CallOptions<Types.GetCustomerData>) => Promise<{
393
+ id: string;
394
+ type: "identified" | "anonymous";
395
+ merged_into: string | null;
396
+ blocked: boolean;
397
+ first_seen_at: string | null;
398
+ last_seen_at: string | null;
399
+ session_count: number;
400
+ cost: {
401
+ amount: string;
402
+ currency: "USD";
403
+ };
404
+ recent_sessions: Array<{
405
+ id: string;
406
+ title: string | null;
407
+ source: string | null;
408
+ created_at: string;
409
+ updated_at: string;
410
+ }>;
411
+ }>;
412
+ retrieveDeletion: (options: import("./core/transport.js").CallOptions<Types.GetCustomerDeletionData>) => Promise<{
413
+ id: string;
414
+ status: "pending" | "snapshotting" | "deleting" | "done" | "failed";
415
+ counts: {
416
+ sessions?: number;
417
+ events?: number;
418
+ messages?: number;
419
+ d1_rows?: number;
420
+ attachments?: number;
421
+ };
422
+ snapshot_key?: string;
423
+ error?: string;
424
+ created_at: string;
425
+ updated_at: string;
426
+ }>;
427
+ revokeTokens: {
428
+ create: (options: import("./core/transport.js").CallOptions<Types.RevokeCustomerTokensData>) => Promise<{
429
+ revoked: number;
430
+ }>;
431
+ };
432
+ unblock: {
433
+ create: (options: import("./core/transport.js").CallOptions<Types.UnblockCustomerData>) => Promise<{
434
+ id: string;
435
+ type: "identified" | "anonymous";
436
+ merged_into: string | null;
437
+ blocked: boolean;
438
+ first_seen_at: string | null;
439
+ last_seen_at: string | null;
440
+ session_count: number;
441
+ cost: {
442
+ amount: string;
443
+ currency: "USD";
444
+ };
445
+ }>;
446
+ };
357
447
  };
358
448
  endUsers: {
359
449
  block: {
@@ -756,6 +846,64 @@ export declare function createAgent(transport: Transport): {
756
846
  vault_ids?: Array<string>;
757
847
  status: "active" | "archived";
758
848
  }>;
849
+ retrieveAppearance: (options: import("./core/transport.js").CallOptions<Types.GetAgentAppearanceData>) => Promise<{
850
+ agent?: {
851
+ name?: string;
852
+ avatar?: string;
853
+ };
854
+ layout?: "inline" | "sidebar" | "popup" | "modal";
855
+ launcher?: {
856
+ type: "none" | "bubble" | "mascot";
857
+ pack?: {
858
+ preset?: "mint" | "cat" | "bot";
859
+ images?: {
860
+ idle: string;
861
+ greet?: string;
862
+ listening?: string;
863
+ thinking?: string;
864
+ talking?: string;
865
+ "talking-2"?: string;
866
+ sorry?: string;
867
+ sleep?: string;
868
+ };
869
+ };
870
+ image?: string;
871
+ motion?: "float" | "none";
872
+ position?: "bottom-right" | "bottom-left";
873
+ label?: string;
874
+ };
875
+ header?: {
876
+ title?: string;
877
+ subtitle?: string;
878
+ icon?: string;
879
+ };
880
+ theme?: {
881
+ colorScheme?: "light" | "dark" | "system";
882
+ accent?: string;
883
+ surface?: string;
884
+ grayscale?: "neutral" | "warm" | "cool";
885
+ radius?: "none" | "sm" | "md" | "lg" | "full";
886
+ density?: "compact" | "normal" | "spacious";
887
+ fontFamily?: string;
888
+ fontSize?: number;
889
+ };
890
+ locale?: "zh" | "en";
891
+ startScreen?: {
892
+ greeting?: string;
893
+ prompts?: Array<{
894
+ label: string;
895
+ prompt: string;
896
+ }>;
897
+ };
898
+ composer?: {
899
+ placeholder?: string;
900
+ };
901
+ disclaimer?: string;
902
+ footer?: string;
903
+ history?: {
904
+ enabled?: boolean;
905
+ };
906
+ }>;
759
907
  unarchive: {
760
908
  create: (options: import("./core/transport.js").CallOptions<Types.UnarchiveAgentData>) => Promise<{
761
909
  id: string;
@@ -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.6c9ff91",
4
4
  "type": "module",
5
5
  "sideEffects": false,
6
6
  "exports": {