geodedo 0.1.0 → 0.1.1
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 +48 -48
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +48 -48
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
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
|
|
|
@@ -847,7 +847,7 @@ var Documents = class {
|
|
|
847
847
|
*/
|
|
848
848
|
async upload(params, options) {
|
|
849
849
|
const raw = await this.client.post(
|
|
850
|
-
"/api/documents",
|
|
850
|
+
"/api/v1/documents",
|
|
851
851
|
params,
|
|
852
852
|
options
|
|
853
853
|
);
|
|
@@ -863,7 +863,7 @@ var Documents = class {
|
|
|
863
863
|
return fetchPage({
|
|
864
864
|
client: this.client,
|
|
865
865
|
method: "GET",
|
|
866
|
-
path: "/api/documents",
|
|
866
|
+
path: "/api/v1/documents",
|
|
867
867
|
query,
|
|
868
868
|
responseKey: "documents",
|
|
869
869
|
options
|
|
@@ -873,7 +873,7 @@ var Documents = class {
|
|
|
873
873
|
* Delete a document by ID.
|
|
874
874
|
*/
|
|
875
875
|
async delete(documentId, options) {
|
|
876
|
-
await this.client.delete(`/api/documents/${documentId}`, options);
|
|
876
|
+
await this.client.delete(`/api/v1/documents/${documentId}`, options);
|
|
877
877
|
}
|
|
878
878
|
};
|
|
879
879
|
|
|
@@ -887,19 +887,19 @@ var Recommendations = class {
|
|
|
887
887
|
* Get an ICP analysis recommendation.
|
|
888
888
|
*/
|
|
889
889
|
async icpAnalysis(options) {
|
|
890
|
-
return this.client.get("/api/recommendations/icp", options);
|
|
890
|
+
return this.client.get("/api/v1/recommendations/icp", options);
|
|
891
891
|
}
|
|
892
892
|
/**
|
|
893
893
|
* Get a channel recommendation.
|
|
894
894
|
*/
|
|
895
895
|
async channel(options) {
|
|
896
|
-
return this.client.get("/api/recommendations/channel", options);
|
|
896
|
+
return this.client.get("/api/v1/recommendations/channel", options);
|
|
897
897
|
}
|
|
898
898
|
/**
|
|
899
899
|
* Get a sequence strategy recommendation.
|
|
900
900
|
*/
|
|
901
901
|
async sequenceStrategy(options) {
|
|
902
|
-
return this.client.get("/api/recommendations/sequence-strategy", options);
|
|
902
|
+
return this.client.get("/api/v1/recommendations/sequence-strategy", options);
|
|
903
903
|
}
|
|
904
904
|
};
|
|
905
905
|
|
|
@@ -913,7 +913,7 @@ var Billing = class {
|
|
|
913
913
|
* Get the current credit balance.
|
|
914
914
|
*/
|
|
915
915
|
async balance(options) {
|
|
916
|
-
return this.client.get("/api/billing/balance", options);
|
|
916
|
+
return this.client.get("/api/v1/billing/balance", options);
|
|
917
917
|
}
|
|
918
918
|
/**
|
|
919
919
|
* List usage entries. Paginated.
|
|
@@ -926,7 +926,7 @@ var Billing = class {
|
|
|
926
926
|
return fetchPage({
|
|
927
927
|
client: this.client,
|
|
928
928
|
method: "GET",
|
|
929
|
-
path: "/api/billing/usage",
|
|
929
|
+
path: "/api/v1/billing/usage",
|
|
930
930
|
query,
|
|
931
931
|
responseKey: "usage",
|
|
932
932
|
options
|
|
@@ -936,7 +936,7 @@ var Billing = class {
|
|
|
936
936
|
* Get an aggregated usage summary.
|
|
937
937
|
*/
|
|
938
938
|
async usageSummary(options) {
|
|
939
|
-
return this.client.get("/api/billing/usage/summary", options);
|
|
939
|
+
return this.client.get("/api/v1/billing/usage/summary", options);
|
|
940
940
|
}
|
|
941
941
|
};
|
|
942
942
|
|
|
@@ -951,7 +951,7 @@ var Users = class {
|
|
|
951
951
|
*/
|
|
952
952
|
async register(params, options) {
|
|
953
953
|
const raw = await this.client.post(
|
|
954
|
-
"/api/users/register",
|
|
954
|
+
"/api/v1/users/register",
|
|
955
955
|
params,
|
|
956
956
|
options
|
|
957
957
|
);
|
|
@@ -961,7 +961,7 @@ var Users = class {
|
|
|
961
961
|
* Get the current user's profile.
|
|
962
962
|
*/
|
|
963
963
|
async me(options) {
|
|
964
|
-
const raw = await this.client.get("/api/users/me", options);
|
|
964
|
+
const raw = await this.client.get("/api/v1/users/me", options);
|
|
965
965
|
return raw.user;
|
|
966
966
|
}
|
|
967
967
|
/**
|
|
@@ -969,7 +969,7 @@ var Users = class {
|
|
|
969
969
|
*/
|
|
970
970
|
async update(params, options) {
|
|
971
971
|
const raw = await this.client.put(
|
|
972
|
-
"/api/users/me",
|
|
972
|
+
"/api/v1/users/me",
|
|
973
973
|
params,
|
|
974
974
|
options
|
|
975
975
|
);
|