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.js CHANGED
@@ -380,7 +380,7 @@ var Contacts = class {
380
380
  return fetchPage({
381
381
  client: this.client,
382
382
  method: "POST",
383
- path: "/api/contacts/search",
383
+ path: "/api/v1/contacts/search",
384
384
  body: { ...body, page: page ?? 1, perPage: perPage ?? 25 },
385
385
  responseKey: "contacts",
386
386
  options
@@ -391,7 +391,7 @@ var Contacts = class {
391
391
  */
392
392
  async enrich(params, options) {
393
393
  const raw = await this.client.post(
394
- "/api/contacts/enrich",
394
+ "/api/v1/contacts/enrich",
395
395
  params,
396
396
  options
397
397
  );
@@ -401,7 +401,7 @@ var Contacts = class {
401
401
  * Import a batch of contacts (CSV-like).
402
402
  */
403
403
  async importCsv(params, options) {
404
- return this.client.post("/api/contacts/import", params, options);
404
+ return this.client.post("/api/v1/contacts/import", params, options);
405
405
  }
406
406
  /**
407
407
  * List stored contacts for the current user. Paginated.
@@ -413,7 +413,7 @@ var Contacts = class {
413
413
  return fetchPage({
414
414
  client: this.client,
415
415
  method: "GET",
416
- path: "/api/contacts",
416
+ path: "/api/v1/contacts",
417
417
  query,
418
418
  responseKey: "contacts",
419
419
  options
@@ -424,7 +424,7 @@ var Contacts = class {
424
424
  */
425
425
  async csvLists(options) {
426
426
  const raw = await this.client.get(
427
- "/api/contacts/csv-lists",
427
+ "/api/v1/contacts/csv-lists",
428
428
  options
429
429
  );
430
430
  return raw.lists;
@@ -442,7 +442,7 @@ var Sequences = class {
442
442
  */
443
443
  async create(params, options) {
444
444
  const raw = await this.client.post(
445
- "/api/sequences",
445
+ "/api/v1/sequences",
446
446
  params,
447
447
  options
448
448
  );
@@ -458,7 +458,7 @@ var Sequences = class {
458
458
  return fetchPage({
459
459
  client: this.client,
460
460
  method: "GET",
461
- path: "/api/sequences",
461
+ path: "/api/v1/sequences",
462
462
  query,
463
463
  responseKey: "sequences",
464
464
  options
@@ -469,7 +469,7 @@ var Sequences = class {
469
469
  */
470
470
  async get(sequenceId, options) {
471
471
  const raw = await this.client.get(
472
- `/api/sequences/${sequenceId}`,
472
+ `/api/v1/sequences/${sequenceId}`,
473
473
  options
474
474
  );
475
475
  return raw.sequence;
@@ -479,7 +479,7 @@ var Sequences = class {
479
479
  */
480
480
  async pause(sequenceId, options) {
481
481
  const raw = await this.client.post(
482
- `/api/sequences/${sequenceId}/pause`,
482
+ `/api/v1/sequences/${sequenceId}/pause`,
483
483
  void 0,
484
484
  options
485
485
  );
@@ -490,7 +490,7 @@ var Sequences = class {
490
490
  */
491
491
  async resume(sequenceId, options) {
492
492
  const raw = await this.client.post(
493
- `/api/sequences/${sequenceId}/resume`,
493
+ `/api/v1/sequences/${sequenceId}/resume`,
494
494
  void 0,
495
495
  options
496
496
  );
@@ -501,7 +501,7 @@ var Sequences = class {
501
501
  */
502
502
  async stop(sequenceId, options) {
503
503
  const raw = await this.client.post(
504
- `/api/sequences/${sequenceId}/stop`,
504
+ `/api/v1/sequences/${sequenceId}/stop`,
505
505
  void 0,
506
506
  options
507
507
  );
@@ -512,7 +512,7 @@ var Sequences = class {
512
512
  */
513
513
  async status(sequenceId, options) {
514
514
  const raw = await this.client.get(
515
- `/api/sequences/${sequenceId}/status`,
515
+ `/api/v1/sequences/${sequenceId}/status`,
516
516
  options
517
517
  );
518
518
  return raw.sequence;
@@ -529,7 +529,7 @@ var Drafts = class {
529
529
  * Generate outreach drafts for a list of contacts.
530
530
  */
531
531
  async generate(params, options) {
532
- return this.client.post("/api/drafts/generate", params, options);
532
+ return this.client.post("/api/v1/drafts/generate", params, options);
533
533
  }
534
534
  /**
535
535
  * List drafts, optionally filtered by conversation, batch, or status. Paginated.
@@ -544,7 +544,7 @@ var Drafts = class {
544
544
  return fetchPage({
545
545
  client: this.client,
546
546
  method: "GET",
547
- path: "/api/drafts",
547
+ path: "/api/v1/drafts",
548
548
  query,
549
549
  responseKey: "drafts",
550
550
  options
@@ -555,7 +555,7 @@ var Drafts = class {
555
555
  */
556
556
  async update(draftId, params, options) {
557
557
  const raw = await this.client.put(
558
- `/api/drafts/${draftId}`,
558
+ `/api/v1/drafts/${draftId}`,
559
559
  params,
560
560
  options
561
561
  );
@@ -565,13 +565,13 @@ var Drafts = class {
565
565
  * Approve drafts by their IDs.
566
566
  */
567
567
  async approve(params, options) {
568
- return this.client.post("/api/drafts/approve", params, options);
568
+ return this.client.post("/api/v1/drafts/approve", params, options);
569
569
  }
570
570
  /**
571
571
  * Send approved drafts.
572
572
  */
573
573
  async send(params, options) {
574
- return this.client.post("/api/drafts/send", params, options);
574
+ return this.client.post("/api/v1/drafts/send", params, options);
575
575
  }
576
576
  };
577
577
 
@@ -585,32 +585,32 @@ var Messages = class {
585
585
  * Send an email via Gmail or AgentMail.
586
586
  */
587
587
  async sendEmail(params, options) {
588
- return this.client.post("/api/messages/email", params, options);
588
+ return this.client.post("/api/v1/messages/email", params, options);
589
589
  }
590
590
  /**
591
591
  * Send a LinkedIn message or connection request.
592
592
  */
593
593
  async sendLinkedIn(params, options) {
594
- return this.client.post("/api/messages/linkedin", params, options);
594
+ return this.client.post("/api/v1/messages/linkedin", params, options);
595
595
  }
596
596
  /**
597
597
  * Send an Instagram DM.
598
598
  */
599
599
  async sendInstagram(params, options) {
600
- return this.client.post("/api/messages/instagram", params, options);
600
+ return this.client.post("/api/v1/messages/instagram", params, options);
601
601
  }
602
602
  /**
603
603
  * Send an SMS message.
604
604
  */
605
605
  async sendSms(params, options) {
606
- return this.client.post("/api/messages/sms", params, options);
606
+ return this.client.post("/api/v1/messages/sms", params, options);
607
607
  }
608
608
  /**
609
609
  * Get the unified inbox for a specific channel.
610
610
  */
611
611
  async inbox(channel, options) {
612
612
  return this.client.get(
613
- `/api/messages/inbox/${channel}`,
613
+ `/api/v1/messages/inbox/${channel}`,
614
614
  options
615
615
  );
616
616
  }
@@ -627,7 +627,7 @@ var ConversationsResource = class {
627
627
  */
628
628
  async list(options) {
629
629
  const raw = await this.client.get(
630
- "/api/chat/conversations",
630
+ "/api/v1/chat/conversations",
631
631
  options
632
632
  );
633
633
  return raw.conversations;
@@ -637,7 +637,7 @@ var ConversationsResource = class {
637
637
  */
638
638
  async get(conversationId, options) {
639
639
  const raw = await this.client.get(
640
- `/api/chat/conversations/${conversationId}`,
640
+ `/api/v1/chat/conversations/${conversationId}`,
641
641
  options
642
642
  );
643
643
  return raw.messages;
@@ -647,7 +647,7 @@ var ConversationsResource = class {
647
647
  */
648
648
  async delete(conversationId, options) {
649
649
  await this.client.delete(
650
- `/api/chat/conversations/${conversationId}`,
650
+ `/api/v1/chat/conversations/${conversationId}`,
651
651
  options
652
652
  );
653
653
  }
@@ -664,7 +664,7 @@ var Chat = class {
664
664
  * Send a message to the AI assistant.
665
665
  */
666
666
  async create(params, options) {
667
- return this.client.post("/api/chat", params, options);
667
+ return this.client.post("/api/v1/chat", params, options);
668
668
  }
669
669
  };
670
670
 
@@ -678,7 +678,7 @@ var GmailChannel = class {
678
678
  * Initiate Gmail OAuth flow. Returns an authUrl for the user to visit.
679
679
  */
680
680
  async connect(options) {
681
- return this.client.post("/api/channels/gmail/connect", void 0, options);
681
+ return this.client.post("/api/v1/channels/gmail/connect", void 0, options);
682
682
  }
683
683
  };
684
684
  var LinkedInChannel = class {
@@ -690,13 +690,13 @@ var LinkedInChannel = class {
690
690
  * Connect a LinkedIn account with credentials.
691
691
  */
692
692
  async connect(params, options) {
693
- return this.client.post("/api/channels/linkedin/connect", params, options);
693
+ return this.client.post("/api/v1/channels/linkedin/connect", params, options);
694
694
  }
695
695
  /**
696
696
  * Resolve a LinkedIn 2FA checkpoint.
697
697
  */
698
698
  async checkpoint(params, options) {
699
- return this.client.post("/api/channels/linkedin/checkpoint", params, options);
699
+ return this.client.post("/api/v1/channels/linkedin/checkpoint", params, options);
700
700
  }
701
701
  };
702
702
  var InstagramChannel = class {
@@ -708,13 +708,13 @@ var InstagramChannel = class {
708
708
  * Connect an Instagram account with credentials.
709
709
  */
710
710
  async connect(params, options) {
711
- return this.client.post("/api/channels/instagram/connect", params, options);
711
+ return this.client.post("/api/v1/channels/instagram/connect", params, options);
712
712
  }
713
713
  /**
714
714
  * Resolve an Instagram 2FA checkpoint.
715
715
  */
716
716
  async checkpoint(params, options) {
717
- return this.client.post("/api/channels/instagram/checkpoint", params, options);
717
+ return this.client.post("/api/v1/channels/instagram/checkpoint", params, options);
718
718
  }
719
719
  };
720
720
  var AgentMailChannel = class {
@@ -726,7 +726,7 @@ var AgentMailChannel = class {
726
726
  * Create a new AgentMail address.
727
727
  */
728
728
  async create(params, options) {
729
- return this.client.post("/api/channels/agentmail/create", params, options);
729
+ return this.client.post("/api/v1/channels/agentmail/create", params, options);
730
730
  }
731
731
  };
732
732
  var SmsChannel = class {
@@ -738,13 +738,13 @@ var SmsChannel = class {
738
738
  * Initiate SMS verification for a phone number.
739
739
  */
740
740
  async verify(params, options) {
741
- return this.client.post("/api/channels/sms/verify", params, options);
741
+ return this.client.post("/api/v1/channels/sms/verify", params, options);
742
742
  }
743
743
  /**
744
744
  * Confirm SMS verification with the code.
745
745
  */
746
746
  async confirm(params, options) {
747
- return this.client.post("/api/channels/sms/confirm", params, options);
747
+ return this.client.post("/api/v1/channels/sms/confirm", params, options);
748
748
  }
749
749
  };
750
750
  var Channels = class {
@@ -771,13 +771,13 @@ var Channels = class {
771
771
  * Get the connection status of all channels.
772
772
  */
773
773
  async status(options) {
774
- return this.client.get("/api/channels/status", options);
774
+ return this.client.get("/api/v1/channels/status", options);
775
775
  }
776
776
  /**
777
777
  * Disconnect a specific channel.
778
778
  */
779
779
  async disconnect(channel, options) {
780
- await this.client.post(`/api/channels/${channel}/disconnect`, void 0, options);
780
+ await this.client.post(`/api/v1/channels/${channel}/disconnect`, void 0, options);
781
781
  }
782
782
  };
783
783
 
@@ -791,12 +791,11 @@ var Documents = class {
791
791
  * Upload a document.
792
792
  */
793
793
  async upload(params, options) {
794
- const raw = await this.client.post(
795
- "/api/documents",
794
+ return this.client.post(
795
+ "/api/v1/documents",
796
796
  params,
797
797
  options
798
798
  );
799
- return raw.document;
800
799
  }
801
800
  /**
802
801
  * List all documents. Paginated.
@@ -808,7 +807,7 @@ var Documents = class {
808
807
  return fetchPage({
809
808
  client: this.client,
810
809
  method: "GET",
811
- path: "/api/documents",
810
+ path: "/api/v1/documents",
812
811
  query,
813
812
  responseKey: "documents",
814
813
  options
@@ -818,7 +817,7 @@ var Documents = class {
818
817
  * Delete a document by ID.
819
818
  */
820
819
  async delete(documentId, options) {
821
- await this.client.delete(`/api/documents/${documentId}`, options);
820
+ await this.client.delete(`/api/v1/documents/${documentId}`, options);
822
821
  }
823
822
  };
824
823
 
@@ -832,19 +831,19 @@ var Recommendations = class {
832
831
  * Get an ICP analysis recommendation.
833
832
  */
834
833
  async icpAnalysis(options) {
835
- return this.client.get("/api/recommendations/icp", options);
834
+ return this.client.post("/api/v1/recommendations/icp-analysis", void 0, options);
836
835
  }
837
836
  /**
838
837
  * Get a channel recommendation.
839
838
  */
840
839
  async channel(options) {
841
- return this.client.get("/api/recommendations/channel", options);
840
+ return this.client.post("/api/v1/recommendations/channel", void 0, options);
842
841
  }
843
842
  /**
844
843
  * Get a sequence strategy recommendation.
845
844
  */
846
845
  async sequenceStrategy(options) {
847
- return this.client.get("/api/recommendations/sequence-strategy", options);
846
+ return this.client.post("/api/v1/recommendations/sequence-strategy", void 0, options);
848
847
  }
849
848
  };
850
849
 
@@ -858,7 +857,7 @@ var Billing = class {
858
857
  * Get the current credit balance.
859
858
  */
860
859
  async balance(options) {
861
- return this.client.get("/api/billing/balance", options);
860
+ return this.client.get("/api/v1/billing/balance", options);
862
861
  }
863
862
  /**
864
863
  * List usage entries. Paginated.
@@ -871,7 +870,7 @@ var Billing = class {
871
870
  return fetchPage({
872
871
  client: this.client,
873
872
  method: "GET",
874
- path: "/api/billing/usage",
873
+ path: "/api/v1/billing/usage",
875
874
  query,
876
875
  responseKey: "usage",
877
876
  options
@@ -881,7 +880,7 @@ var Billing = class {
881
880
  * Get an aggregated usage summary.
882
881
  */
883
882
  async usageSummary(options) {
884
- return this.client.get("/api/billing/usage/summary", options);
883
+ return this.client.get("/api/v1/billing/usage/summary", options);
885
884
  }
886
885
  };
887
886
 
@@ -896,7 +895,7 @@ var Users = class {
896
895
  */
897
896
  async register(params, options) {
898
897
  const raw = await this.client.post(
899
- "/api/users/register",
898
+ "/api/v1/users/register",
900
899
  params,
901
900
  options
902
901
  );
@@ -906,7 +905,7 @@ var Users = class {
906
905
  * Get the current user's profile.
907
906
  */
908
907
  async me(options) {
909
- const raw = await this.client.get("/api/users/me", options);
908
+ const raw = await this.client.get("/api/v1/users/me", options);
910
909
  return raw.user;
911
910
  }
912
911
  /**
@@ -914,7 +913,7 @@ var Users = class {
914
913
  */
915
914
  async update(params, options) {
916
915
  const raw = await this.client.put(
917
- "/api/users/me",
916
+ "/api/v1/users/me",
918
917
  params,
919
918
  options
920
919
  );