geodedo 0.1.0 → 0.1.2

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/dist/index.cjs CHANGED
@@ -435,7 +435,7 @@ var Contacts = class {
435
435
  return fetchPage({
436
436
  client: this.client,
437
437
  method: "POST",
438
- path: "/api/contacts/search",
438
+ path: "/api/v1/contacts/search",
439
439
  body: { ...body, page: page ?? 1, perPage: perPage ?? 25 },
440
440
  responseKey: "contacts",
441
441
  options
@@ -446,7 +446,7 @@ var Contacts = class {
446
446
  */
447
447
  async enrich(params, options) {
448
448
  const raw = await this.client.post(
449
- "/api/contacts/enrich",
449
+ "/api/v1/contacts/enrich",
450
450
  params,
451
451
  options
452
452
  );
@@ -456,7 +456,7 @@ var Contacts = class {
456
456
  * Import a batch of contacts (CSV-like).
457
457
  */
458
458
  async importCsv(params, options) {
459
- return this.client.post("/api/contacts/import", params, options);
459
+ return this.client.post("/api/v1/contacts/import", params, options);
460
460
  }
461
461
  /**
462
462
  * List stored contacts for the current user. Paginated.
@@ -468,7 +468,7 @@ var Contacts = class {
468
468
  return fetchPage({
469
469
  client: this.client,
470
470
  method: "GET",
471
- path: "/api/contacts",
471
+ path: "/api/v1/contacts",
472
472
  query,
473
473
  responseKey: "contacts",
474
474
  options
@@ -479,7 +479,7 @@ var Contacts = class {
479
479
  */
480
480
  async csvLists(options) {
481
481
  const raw = await this.client.get(
482
- "/api/contacts/csv-lists",
482
+ "/api/v1/contacts/csv-lists",
483
483
  options
484
484
  );
485
485
  return raw.lists;
@@ -497,7 +497,7 @@ var Sequences = class {
497
497
  */
498
498
  async create(params, options) {
499
499
  const raw = await this.client.post(
500
- "/api/sequences",
500
+ "/api/v1/sequences",
501
501
  params,
502
502
  options
503
503
  );
@@ -513,7 +513,7 @@ var Sequences = class {
513
513
  return fetchPage({
514
514
  client: this.client,
515
515
  method: "GET",
516
- path: "/api/sequences",
516
+ path: "/api/v1/sequences",
517
517
  query,
518
518
  responseKey: "sequences",
519
519
  options
@@ -524,7 +524,7 @@ var Sequences = class {
524
524
  */
525
525
  async get(sequenceId, options) {
526
526
  const raw = await this.client.get(
527
- `/api/sequences/${sequenceId}`,
527
+ `/api/v1/sequences/${sequenceId}`,
528
528
  options
529
529
  );
530
530
  return raw.sequence;
@@ -534,7 +534,7 @@ var Sequences = class {
534
534
  */
535
535
  async pause(sequenceId, options) {
536
536
  const raw = await this.client.post(
537
- `/api/sequences/${sequenceId}/pause`,
537
+ `/api/v1/sequences/${sequenceId}/pause`,
538
538
  void 0,
539
539
  options
540
540
  );
@@ -545,7 +545,7 @@ var Sequences = class {
545
545
  */
546
546
  async resume(sequenceId, options) {
547
547
  const raw = await this.client.post(
548
- `/api/sequences/${sequenceId}/resume`,
548
+ `/api/v1/sequences/${sequenceId}/resume`,
549
549
  void 0,
550
550
  options
551
551
  );
@@ -556,7 +556,7 @@ var Sequences = class {
556
556
  */
557
557
  async stop(sequenceId, options) {
558
558
  const raw = await this.client.post(
559
- `/api/sequences/${sequenceId}/stop`,
559
+ `/api/v1/sequences/${sequenceId}/stop`,
560
560
  void 0,
561
561
  options
562
562
  );
@@ -567,7 +567,7 @@ var Sequences = class {
567
567
  */
568
568
  async status(sequenceId, options) {
569
569
  const raw = await this.client.get(
570
- `/api/sequences/${sequenceId}/status`,
570
+ `/api/v1/sequences/${sequenceId}/status`,
571
571
  options
572
572
  );
573
573
  return raw.sequence;
@@ -584,7 +584,7 @@ var Drafts = class {
584
584
  * Generate outreach drafts for a list of contacts.
585
585
  */
586
586
  async generate(params, options) {
587
- return this.client.post("/api/drafts/generate", params, options);
587
+ return this.client.post("/api/v1/drafts/generate", params, options);
588
588
  }
589
589
  /**
590
590
  * List drafts, optionally filtered by conversation, batch, or status. Paginated.
@@ -599,7 +599,7 @@ var Drafts = class {
599
599
  return fetchPage({
600
600
  client: this.client,
601
601
  method: "GET",
602
- path: "/api/drafts",
602
+ path: "/api/v1/drafts",
603
603
  query,
604
604
  responseKey: "drafts",
605
605
  options
@@ -610,7 +610,7 @@ var Drafts = class {
610
610
  */
611
611
  async update(draftId, params, options) {
612
612
  const raw = await this.client.put(
613
- `/api/drafts/${draftId}`,
613
+ `/api/v1/drafts/${draftId}`,
614
614
  params,
615
615
  options
616
616
  );
@@ -620,13 +620,13 @@ var Drafts = class {
620
620
  * Approve drafts by their IDs.
621
621
  */
622
622
  async approve(params, options) {
623
- return this.client.post("/api/drafts/approve", params, options);
623
+ return this.client.post("/api/v1/drafts/approve", params, options);
624
624
  }
625
625
  /**
626
626
  * Send approved drafts.
627
627
  */
628
628
  async send(params, options) {
629
- return this.client.post("/api/drafts/send", params, options);
629
+ return this.client.post("/api/v1/drafts/send", params, options);
630
630
  }
631
631
  };
632
632
 
@@ -640,32 +640,32 @@ var Messages = class {
640
640
  * Send an email via Gmail or AgentMail.
641
641
  */
642
642
  async sendEmail(params, options) {
643
- return this.client.post("/api/messages/email", params, options);
643
+ return this.client.post("/api/v1/messages/email", params, options);
644
644
  }
645
645
  /**
646
646
  * Send a LinkedIn message or connection request.
647
647
  */
648
648
  async sendLinkedIn(params, options) {
649
- return this.client.post("/api/messages/linkedin", params, options);
649
+ return this.client.post("/api/v1/messages/linkedin", params, options);
650
650
  }
651
651
  /**
652
652
  * Send an Instagram DM.
653
653
  */
654
654
  async sendInstagram(params, options) {
655
- return this.client.post("/api/messages/instagram", params, options);
655
+ return this.client.post("/api/v1/messages/instagram", params, options);
656
656
  }
657
657
  /**
658
658
  * Send an SMS message.
659
659
  */
660
660
  async sendSms(params, options) {
661
- return this.client.post("/api/messages/sms", params, options);
661
+ return this.client.post("/api/v1/messages/sms", params, options);
662
662
  }
663
663
  /**
664
664
  * Get the unified inbox for a specific channel.
665
665
  */
666
666
  async inbox(channel, options) {
667
667
  return this.client.get(
668
- `/api/messages/inbox/${channel}`,
668
+ `/api/v1/messages/inbox/${channel}`,
669
669
  options
670
670
  );
671
671
  }
@@ -682,7 +682,7 @@ var ConversationsResource = class {
682
682
  */
683
683
  async list(options) {
684
684
  const raw = await this.client.get(
685
- "/api/chat/conversations",
685
+ "/api/v1/chat/conversations",
686
686
  options
687
687
  );
688
688
  return raw.conversations;
@@ -692,7 +692,7 @@ var ConversationsResource = class {
692
692
  */
693
693
  async get(conversationId, options) {
694
694
  const raw = await this.client.get(
695
- `/api/chat/conversations/${conversationId}`,
695
+ `/api/v1/chat/conversations/${conversationId}`,
696
696
  options
697
697
  );
698
698
  return raw.messages;
@@ -702,7 +702,7 @@ var ConversationsResource = class {
702
702
  */
703
703
  async delete(conversationId, options) {
704
704
  await this.client.delete(
705
- `/api/chat/conversations/${conversationId}`,
705
+ `/api/v1/chat/conversations/${conversationId}`,
706
706
  options
707
707
  );
708
708
  }
@@ -719,7 +719,7 @@ var Chat = class {
719
719
  * Send a message to the AI assistant.
720
720
  */
721
721
  async create(params, options) {
722
- return this.client.post("/api/chat", params, options);
722
+ return this.client.post("/api/v1/chat", params, options);
723
723
  }
724
724
  };
725
725
 
@@ -733,7 +733,7 @@ var GmailChannel = class {
733
733
  * Initiate Gmail OAuth flow. Returns an authUrl for the user to visit.
734
734
  */
735
735
  async connect(options) {
736
- return this.client.post("/api/channels/gmail/connect", void 0, options);
736
+ return this.client.post("/api/v1/channels/gmail/connect", void 0, options);
737
737
  }
738
738
  };
739
739
  var LinkedInChannel = class {
@@ -745,13 +745,13 @@ var LinkedInChannel = class {
745
745
  * Connect a LinkedIn account with credentials.
746
746
  */
747
747
  async connect(params, options) {
748
- return this.client.post("/api/channels/linkedin/connect", params, options);
748
+ return this.client.post("/api/v1/channels/linkedin/connect", params, options);
749
749
  }
750
750
  /**
751
751
  * Resolve a LinkedIn 2FA checkpoint.
752
752
  */
753
753
  async checkpoint(params, options) {
754
- return this.client.post("/api/channels/linkedin/checkpoint", params, options);
754
+ return this.client.post("/api/v1/channels/linkedin/checkpoint", params, options);
755
755
  }
756
756
  };
757
757
  var InstagramChannel = class {
@@ -763,13 +763,13 @@ var InstagramChannel = class {
763
763
  * Connect an Instagram account with credentials.
764
764
  */
765
765
  async connect(params, options) {
766
- return this.client.post("/api/channels/instagram/connect", params, options);
766
+ return this.client.post("/api/v1/channels/instagram/connect", params, options);
767
767
  }
768
768
  /**
769
769
  * Resolve an Instagram 2FA checkpoint.
770
770
  */
771
771
  async checkpoint(params, options) {
772
- return this.client.post("/api/channels/instagram/checkpoint", params, options);
772
+ return this.client.post("/api/v1/channels/instagram/checkpoint", params, options);
773
773
  }
774
774
  };
775
775
  var AgentMailChannel = class {
@@ -781,7 +781,7 @@ var AgentMailChannel = class {
781
781
  * Create a new AgentMail address.
782
782
  */
783
783
  async create(params, options) {
784
- return this.client.post("/api/channels/agentmail/create", params, options);
784
+ return this.client.post("/api/v1/channels/agentmail/create", params, options);
785
785
  }
786
786
  };
787
787
  var SmsChannel = class {
@@ -793,13 +793,13 @@ var SmsChannel = class {
793
793
  * Initiate SMS verification for a phone number.
794
794
  */
795
795
  async verify(params, options) {
796
- return this.client.post("/api/channels/sms/verify", params, options);
796
+ return this.client.post("/api/v1/channels/sms/verify", params, options);
797
797
  }
798
798
  /**
799
799
  * Confirm SMS verification with the code.
800
800
  */
801
801
  async confirm(params, options) {
802
- return this.client.post("/api/channels/sms/confirm", params, options);
802
+ return this.client.post("/api/v1/channels/sms/confirm", params, options);
803
803
  }
804
804
  };
805
805
  var Channels = class {
@@ -826,13 +826,13 @@ var Channels = class {
826
826
  * Get the connection status of all channels.
827
827
  */
828
828
  async status(options) {
829
- return this.client.get("/api/channels/status", options);
829
+ return this.client.get("/api/v1/channels/status", options);
830
830
  }
831
831
  /**
832
832
  * Disconnect a specific channel.
833
833
  */
834
834
  async disconnect(channel, options) {
835
- await this.client.post(`/api/channels/${channel}/disconnect`, void 0, options);
835
+ await this.client.post(`/api/v1/channels/${channel}/disconnect`, void 0, options);
836
836
  }
837
837
  };
838
838
 
@@ -846,12 +846,11 @@ var Documents = class {
846
846
  * Upload a document.
847
847
  */
848
848
  async upload(params, options) {
849
- const raw = await this.client.post(
850
- "/api/documents",
849
+ return this.client.post(
850
+ "/api/v1/documents",
851
851
  params,
852
852
  options
853
853
  );
854
- return raw.document;
855
854
  }
856
855
  /**
857
856
  * List all documents. Paginated.
@@ -863,7 +862,7 @@ var Documents = class {
863
862
  return fetchPage({
864
863
  client: this.client,
865
864
  method: "GET",
866
- path: "/api/documents",
865
+ path: "/api/v1/documents",
867
866
  query,
868
867
  responseKey: "documents",
869
868
  options
@@ -873,7 +872,7 @@ var Documents = class {
873
872
  * Delete a document by ID.
874
873
  */
875
874
  async delete(documentId, options) {
876
- await this.client.delete(`/api/documents/${documentId}`, options);
875
+ await this.client.delete(`/api/v1/documents/${documentId}`, options);
877
876
  }
878
877
  };
879
878
 
@@ -887,19 +886,19 @@ var Recommendations = class {
887
886
  * Get an ICP analysis recommendation.
888
887
  */
889
888
  async icpAnalysis(options) {
890
- return this.client.get("/api/recommendations/icp", options);
889
+ return this.client.post("/api/v1/recommendations/icp-analysis", void 0, options);
891
890
  }
892
891
  /**
893
892
  * Get a channel recommendation.
894
893
  */
895
894
  async channel(options) {
896
- return this.client.get("/api/recommendations/channel", options);
895
+ return this.client.post("/api/v1/recommendations/channel", void 0, options);
897
896
  }
898
897
  /**
899
898
  * Get a sequence strategy recommendation.
900
899
  */
901
900
  async sequenceStrategy(options) {
902
- return this.client.get("/api/recommendations/sequence-strategy", options);
901
+ return this.client.post("/api/v1/recommendations/sequence-strategy", void 0, options);
903
902
  }
904
903
  };
905
904
 
@@ -913,7 +912,7 @@ var Billing = class {
913
912
  * Get the current credit balance.
914
913
  */
915
914
  async balance(options) {
916
- return this.client.get("/api/billing/balance", options);
915
+ return this.client.get("/api/v1/billing/balance", options);
917
916
  }
918
917
  /**
919
918
  * List usage entries. Paginated.
@@ -926,7 +925,7 @@ var Billing = class {
926
925
  return fetchPage({
927
926
  client: this.client,
928
927
  method: "GET",
929
- path: "/api/billing/usage",
928
+ path: "/api/v1/billing/usage",
930
929
  query,
931
930
  responseKey: "usage",
932
931
  options
@@ -936,7 +935,7 @@ var Billing = class {
936
935
  * Get an aggregated usage summary.
937
936
  */
938
937
  async usageSummary(options) {
939
- return this.client.get("/api/billing/usage/summary", options);
938
+ return this.client.get("/api/v1/billing/usage/summary", options);
940
939
  }
941
940
  };
942
941
 
@@ -951,7 +950,7 @@ var Users = class {
951
950
  */
952
951
  async register(params, options) {
953
952
  const raw = await this.client.post(
954
- "/api/users/register",
953
+ "/api/v1/users/register",
955
954
  params,
956
955
  options
957
956
  );
@@ -961,7 +960,7 @@ var Users = class {
961
960
  * Get the current user's profile.
962
961
  */
963
962
  async me(options) {
964
- const raw = await this.client.get("/api/users/me", options);
963
+ const raw = await this.client.get("/api/v1/users/me", options);
965
964
  return raw.user;
966
965
  }
967
966
  /**
@@ -969,7 +968,7 @@ var Users = class {
969
968
  */
970
969
  async update(params, options) {
971
970
  const raw = await this.client.put(
972
- "/api/users/me",
971
+ "/api/v1/users/me",
973
972
  params,
974
973
  options
975
974
  );