@hasna/contacts 0.6.23 → 0.6.28

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.
Files changed (103) hide show
  1. package/README.md +61 -3
  2. package/dist/cli/commands/advanced.d.ts.map +1 -1
  3. package/dist/cli/commands/audience.d.ts +18 -0
  4. package/dist/cli/commands/audience.d.ts.map +1 -0
  5. package/dist/cli/commands/core.d.ts.map +1 -1
  6. package/dist/cli/commands/crm.d.ts.map +1 -1
  7. package/dist/cli/index.js +8605 -5889
  8. package/dist/cli/storage.d.ts.map +1 -1
  9. package/dist/cloud/http-storage.d.ts +88 -0
  10. package/dist/cloud/http-storage.d.ts.map +1 -0
  11. package/dist/db/audiences.d.ts +51 -0
  12. package/dist/db/audiences.d.ts.map +1 -0
  13. package/dist/db/companies.d.ts.map +1 -1
  14. package/dist/db/contacts.d.ts.map +1 -1
  15. package/dist/db/database.d.ts +1 -2
  16. package/dist/db/database.d.ts.map +1 -1
  17. package/dist/db/paths.d.ts +3 -0
  18. package/dist/db/paths.d.ts.map +1 -0
  19. package/dist/db/pg-migrations.d.ts.map +1 -1
  20. package/dist/db/storage.d.ts +1 -1
  21. package/dist/db/storage.d.ts.map +1 -1
  22. package/dist/db/tags.d.ts.map +1 -1
  23. package/dist/db/tombstones.d.ts +19 -0
  24. package/dist/db/tombstones.d.ts.map +1 -0
  25. package/dist/generated/storage-kit/health.d.ts +20 -0
  26. package/dist/generated/storage-kit/health.d.ts.map +1 -0
  27. package/dist/generated/storage-kit/index.d.ts +8 -0
  28. package/dist/generated/storage-kit/index.d.ts.map +1 -0
  29. package/dist/generated/storage-kit/migrations.d.ts +48 -0
  30. package/dist/generated/storage-kit/migrations.d.ts.map +1 -0
  31. package/dist/generated/storage-kit/mode.d.ts +48 -0
  32. package/dist/generated/storage-kit/mode.d.ts.map +1 -0
  33. package/dist/generated/storage-kit/pool.d.ts +34 -0
  34. package/dist/generated/storage-kit/pool.d.ts.map +1 -0
  35. package/dist/generated/storage-kit/query.d.ts +36 -0
  36. package/dist/generated/storage-kit/query.d.ts.map +1 -0
  37. package/dist/generated/storage-kit/tls.d.ts +26 -0
  38. package/dist/generated/storage-kit/tls.d.ts.map +1 -0
  39. package/dist/index.d.ts +6 -79
  40. package/dist/index.d.ts.map +1 -1
  41. package/dist/index.js +4144 -4050
  42. package/dist/lib/audience-contract.d.ts +215 -0
  43. package/dist/lib/audience-contract.d.ts.map +1 -0
  44. package/dist/lib/mailery-sync.d.ts +46 -0
  45. package/dist/lib/mailery-sync.d.ts.map +1 -0
  46. package/dist/lib/package-version.d.ts +6 -0
  47. package/dist/lib/package-version.d.ts.map +1 -0
  48. package/dist/mcp/handlers/advanced.d.ts +5 -0
  49. package/dist/mcp/handlers/advanced.d.ts.map +1 -1
  50. package/dist/mcp/handlers/audience.d.ts +9 -0
  51. package/dist/mcp/handlers/audience.d.ts.map +1 -0
  52. package/dist/mcp/handlers/core.d.ts +4 -0
  53. package/dist/mcp/handlers/core.d.ts.map +1 -1
  54. package/dist/mcp/handlers/crm.d.ts +5 -0
  55. package/dist/mcp/handlers/crm.d.ts.map +1 -1
  56. package/dist/mcp/handlers/index.d.ts.map +1 -1
  57. package/dist/mcp/index.js +10963 -10178
  58. package/dist/mcp/storage-tools.d.ts.map +1 -1
  59. package/dist/mcp/tools.d.ts +252 -0
  60. package/dist/mcp/tools.d.ts.map +1 -1
  61. package/dist/sdk/index.d.ts +16 -0
  62. package/dist/sdk/index.d.ts.map +1 -0
  63. package/dist/sdk/index.js +173 -0
  64. package/dist/sdk/v1.generated.d.ts +189 -0
  65. package/dist/sdk/v1.generated.d.ts.map +1 -0
  66. package/dist/server/cloud.d.ts +51 -0
  67. package/dist/server/cloud.d.ts.map +1 -0
  68. package/dist/server/index.js +23204 -20342
  69. package/dist/server/openapi.d.ts +708 -0
  70. package/dist/server/openapi.d.ts.map +1 -0
  71. package/dist/server/pg-store.d.ts +57 -0
  72. package/dist/server/pg-store.d.ts.map +1 -0
  73. package/dist/server/security.d.ts +24 -0
  74. package/dist/server/security.d.ts.map +1 -0
  75. package/dist/server/serve.d.ts +8 -1
  76. package/dist/server/serve.d.ts.map +1 -1
  77. package/dist/server/v1.d.ts +6 -0
  78. package/dist/server/v1.d.ts.map +1 -0
  79. package/dist/store/index.d.ts +383 -0
  80. package/dist/store/index.d.ts.map +1 -0
  81. package/dist/types/index.d.ts +96 -0
  82. package/dist/types/index.d.ts.map +1 -1
  83. package/hasna.contract.json +32 -0
  84. package/migrations/0001_core_schema.sql +162 -0
  85. package/migrations/0002_contact_fields_groups.sql +22 -0
  86. package/migrations/0003_status_archiving.sql +17 -0
  87. package/migrations/0004_company_relationships.sql +16 -0
  88. package/migrations/0005_contact_projects.sql +19 -0
  89. package/migrations/0006_contact_notes.sql +14 -0
  90. package/migrations/0007_entities_vendor_tasks.sql +91 -0
  91. package/migrations/0008_deals_events.sql +36 -0
  92. package/migrations/0009_history_learnings_coordination.sql +122 -0
  93. package/migrations/0010_documents_health.sql +38 -0
  94. package/migrations/0011_feedback.sql +14 -0
  95. package/migrations/0012_audiences_consent_suppressions.sql +38 -0
  96. package/migrations/9001_api_keys.sql +18 -0
  97. package/package.json +14 -3
  98. package/dist/db/feedback.d.ts +0 -15
  99. package/dist/db/feedback.d.ts.map +0 -1
  100. package/dist/db/remote-storage.d.ts +0 -14
  101. package/dist/db/remote-storage.d.ts.map +0 -1
  102. package/dist/db/remote-sync.d.ts +0 -49
  103. package/dist/db/remote-sync.d.ts.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"storage-tools.d.ts","sourceRoot":"","sources":["../../src/mcp/storage-tools.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,yCAAyC,CAAC;AAkDzE,wBAAgB,4BAA4B,CAAC,MAAM,EAAE,SAAS,GAAG,IAAI,CAwHpE"}
1
+ {"version":3,"file":"storage-tools.d.ts","sourceRoot":"","sources":["../../src/mcp/storage-tools.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,yCAAyC,CAAC;AA0CzE,wBAAgB,4BAA4B,CAAC,MAAM,EAAE,SAAS,GAAG,IAAI,CA4CpE"}
@@ -3543,5 +3543,257 @@ export declare const TOOL_DEFINITIONS: readonly [{
3543
3543
  readonly type: "object";
3544
3544
  readonly properties: {};
3545
3545
  };
3546
+ }, {
3547
+ readonly name: "create_audience";
3548
+ readonly description: "Create an audience segment (hasna.audience.v1): predicates over contact tags, attributes (columns or custom fields), and group membership. match: all|any. consent_policy: opt_in|opt_out|transactional|none.";
3549
+ readonly inputSchema: {
3550
+ readonly type: "object";
3551
+ readonly properties: {
3552
+ readonly audience_id: {
3553
+ readonly type: "string";
3554
+ readonly description: "Lowercase dashed slug, e.g. beta-testers";
3555
+ };
3556
+ readonly name: {
3557
+ readonly type: "string";
3558
+ };
3559
+ readonly match: {
3560
+ readonly type: "string";
3561
+ readonly enum: readonly ["all", "any"];
3562
+ };
3563
+ readonly predicates: {
3564
+ readonly type: "array";
3565
+ readonly items: {
3566
+ readonly type: "object";
3567
+ readonly properties: {
3568
+ readonly kind: {
3569
+ readonly type: "string";
3570
+ readonly enum: readonly ["tag", "attribute", "group"];
3571
+ };
3572
+ readonly key: {
3573
+ readonly type: "string";
3574
+ readonly description: "Attribute key (required for attribute predicates)";
3575
+ };
3576
+ readonly op: {
3577
+ readonly type: "string";
3578
+ readonly enum: readonly ["eq", "neq", "in", "not_in", "exists", "not_exists"];
3579
+ };
3580
+ readonly value: {
3581
+ readonly description: "Value for eq/neq";
3582
+ };
3583
+ readonly values: {
3584
+ readonly type: "array";
3585
+ readonly description: "Values for in/not_in";
3586
+ };
3587
+ };
3588
+ readonly required: readonly ["kind"];
3589
+ };
3590
+ };
3591
+ readonly consent_policy: {
3592
+ readonly type: "string";
3593
+ readonly enum: readonly ["opt_in", "opt_out", "transactional", "none"];
3594
+ };
3595
+ };
3596
+ readonly required: readonly ["audience_id", "name", "predicates"];
3597
+ };
3598
+ }, {
3599
+ readonly name: "get_audience";
3600
+ readonly description: "Get an audience by id or slug as its hasna.audience.v1 contract document.";
3601
+ readonly inputSchema: {
3602
+ readonly type: "object";
3603
+ readonly properties: {
3604
+ readonly id: {
3605
+ readonly type: "string";
3606
+ };
3607
+ };
3608
+ readonly required: readonly ["id"];
3609
+ };
3610
+ }, {
3611
+ readonly name: "list_audiences";
3612
+ readonly description: "List all audience segments.";
3613
+ readonly inputSchema: {
3614
+ readonly type: "object";
3615
+ readonly properties: {};
3616
+ };
3617
+ }, {
3618
+ readonly name: "update_audience";
3619
+ readonly description: "Update an audience's name, match mode, predicates, or consent policy.";
3620
+ readonly inputSchema: {
3621
+ readonly type: "object";
3622
+ readonly properties: {
3623
+ readonly id: {
3624
+ readonly type: "string";
3625
+ };
3626
+ readonly name: {
3627
+ readonly type: "string";
3628
+ };
3629
+ readonly match: {
3630
+ readonly type: "string";
3631
+ readonly enum: readonly ["all", "any"];
3632
+ };
3633
+ readonly predicates: {
3634
+ readonly type: "array";
3635
+ readonly items: {
3636
+ readonly type: "object";
3637
+ readonly properties: {
3638
+ readonly kind: {
3639
+ readonly type: "string";
3640
+ readonly enum: readonly ["tag", "attribute", "group"];
3641
+ };
3642
+ readonly key: {
3643
+ readonly type: "string";
3644
+ readonly description: "Attribute key (required for attribute predicates)";
3645
+ };
3646
+ readonly op: {
3647
+ readonly type: "string";
3648
+ readonly enum: readonly ["eq", "neq", "in", "not_in", "exists", "not_exists"];
3649
+ };
3650
+ readonly value: {
3651
+ readonly description: "Value for eq/neq";
3652
+ };
3653
+ readonly values: {
3654
+ readonly type: "array";
3655
+ readonly description: "Values for in/not_in";
3656
+ };
3657
+ };
3658
+ readonly required: readonly ["kind"];
3659
+ };
3660
+ };
3661
+ readonly consent_policy: {
3662
+ readonly type: "string";
3663
+ readonly enum: readonly ["opt_in", "opt_out", "transactional", "none"];
3664
+ };
3665
+ };
3666
+ readonly required: readonly ["id"];
3667
+ };
3668
+ }, {
3669
+ readonly name: "delete_audience";
3670
+ readonly description: "Delete an audience segment by id or slug.";
3671
+ readonly inputSchema: {
3672
+ readonly type: "object";
3673
+ readonly properties: {
3674
+ readonly id: {
3675
+ readonly type: "string";
3676
+ };
3677
+ };
3678
+ readonly required: readonly ["id"];
3679
+ };
3680
+ }, {
3681
+ readonly name: "resolve_audience";
3682
+ readonly description: "Resolve an audience to per-channel recipients honoring consent policy, per-channel consent, suppressions, and do_not_contact. Returns recipients plus exclusions with reasons.";
3683
+ readonly inputSchema: {
3684
+ readonly type: "object";
3685
+ readonly properties: {
3686
+ readonly id: {
3687
+ readonly type: "string";
3688
+ };
3689
+ readonly channel: {
3690
+ readonly type: "string";
3691
+ readonly enum: readonly ["email", "telegram", "sms"];
3692
+ };
3693
+ };
3694
+ readonly required: readonly ["id", "channel"];
3695
+ };
3696
+ }, {
3697
+ readonly name: "set_contact_consent";
3698
+ readonly description: "Set a contact's subscription consent for a channel (opt_in, opt_out, unknown).";
3699
+ readonly inputSchema: {
3700
+ readonly type: "object";
3701
+ readonly properties: {
3702
+ readonly contact_id: {
3703
+ readonly type: "string";
3704
+ };
3705
+ readonly channel: {
3706
+ readonly type: "string";
3707
+ readonly enum: readonly ["email", "telegram", "sms"];
3708
+ };
3709
+ readonly status: {
3710
+ readonly type: "string";
3711
+ readonly enum: readonly ["opt_in", "opt_out", "unknown"];
3712
+ };
3713
+ readonly source: {
3714
+ readonly type: "string";
3715
+ readonly description: "Where the consent signal came from";
3716
+ };
3717
+ };
3718
+ readonly required: readonly ["contact_id", "channel", "status"];
3719
+ };
3720
+ }, {
3721
+ readonly name: "get_contact_consent";
3722
+ readonly description: "Get a contact's consent status for all channels.";
3723
+ readonly inputSchema: {
3724
+ readonly type: "object";
3725
+ readonly properties: {
3726
+ readonly contact_id: {
3727
+ readonly type: "string";
3728
+ };
3729
+ };
3730
+ readonly required: readonly ["contact_id"];
3731
+ };
3732
+ }, {
3733
+ readonly name: "suppress_address";
3734
+ readonly description: "Suppress an address on a channel (unsubscribe/bounce/complaint). Also records an opt-out for the linked contact when contact_id is provided.";
3735
+ readonly inputSchema: {
3736
+ readonly type: "object";
3737
+ readonly properties: {
3738
+ readonly channel: {
3739
+ readonly type: "string";
3740
+ readonly enum: readonly ["email", "telegram", "sms"];
3741
+ };
3742
+ readonly address: {
3743
+ readonly type: "string";
3744
+ };
3745
+ readonly contact_id: {
3746
+ readonly type: "string";
3747
+ };
3748
+ readonly reason: {
3749
+ readonly type: "string";
3750
+ };
3751
+ };
3752
+ readonly required: readonly ["channel", "address"];
3753
+ };
3754
+ }, {
3755
+ readonly name: "unsuppress_address";
3756
+ readonly description: "Remove an address from the suppression list.";
3757
+ readonly inputSchema: {
3758
+ readonly type: "object";
3759
+ readonly properties: {
3760
+ readonly channel: {
3761
+ readonly type: "string";
3762
+ readonly enum: readonly ["email", "telegram", "sms"];
3763
+ };
3764
+ readonly address: {
3765
+ readonly type: "string";
3766
+ };
3767
+ };
3768
+ readonly required: readonly ["channel", "address"];
3769
+ };
3770
+ }, {
3771
+ readonly name: "list_suppressions";
3772
+ readonly description: "List suppressed addresses, optionally filtered by channel or unsynced-only.";
3773
+ readonly inputSchema: {
3774
+ readonly type: "object";
3775
+ readonly properties: {
3776
+ readonly channel: {
3777
+ readonly type: "string";
3778
+ readonly enum: readonly ["email", "telegram", "sms"];
3779
+ };
3780
+ readonly unsynced_only: {
3781
+ readonly type: "boolean";
3782
+ };
3783
+ };
3784
+ readonly required: readonly [];
3785
+ };
3786
+ }, {
3787
+ readonly name: "sync_suppressions";
3788
+ readonly description: "Push unsynced email suppressions to mailery via @hasna/mailery. Use dry_run to preview.";
3789
+ readonly inputSchema: {
3790
+ readonly type: "object";
3791
+ readonly properties: {
3792
+ readonly dry_run: {
3793
+ readonly type: "boolean";
3794
+ };
3795
+ };
3796
+ readonly required: readonly [];
3797
+ };
3546
3798
  }];
3547
3799
  //# sourceMappingURL=tools.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"tools.d.ts","sourceRoot":"","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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAg/CnB,CAAC"}
@@ -0,0 +1,16 @@
1
+ /**
2
+ * @hasna/contacts SDK — typed `/v1` cloud client.
3
+ *
4
+ * Generated from the serve OpenAPI document (src/server/openapi.ts).
5
+ * Regenerate with `bun run scripts/generate-sdk.ts`.
6
+ *
7
+ * import { ContactsV1Client } from "@hasna/contacts/sdk";
8
+ * const client = new ContactsV1Client({
9
+ * baseUrl: process.env.CONTACTS_API_URL!, // self_hosted service URL
10
+ * apiKey: process.env.CONTACTS_API_KEY!, // contracts-issued key
11
+ * });
12
+ * const { contacts } = await client.listContacts({ limit: 20 });
13
+ */
14
+ export { ContactsV1Client, ApiError as ContactsV1ApiError } from "./v1.generated.js";
15
+ export type { ContactsV1ClientOptions, Contact as ContactsV1Contact, Company as ContactsV1Company, Tag as ContactsV1Tag, CreateContactInput as ContactsV1CreateContactInput, UpdateContactInput as ContactsV1UpdateContactInput, CreateCompanyInput as ContactsV1CreateCompanyInput, UpdateCompanyInput as ContactsV1UpdateCompanyInput, CreateTagInput as ContactsV1CreateTagInput, UpdateTagInput as ContactsV1UpdateTagInput, } from "./v1.generated.js";
16
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/sdk/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AACH,OAAO,EAAE,gBAAgB,EAAE,QAAQ,IAAI,kBAAkB,EAAE,MAAM,mBAAmB,CAAC;AACrF,YAAY,EACV,uBAAuB,EACvB,OAAO,IAAI,iBAAiB,EAC5B,OAAO,IAAI,iBAAiB,EAC5B,GAAG,IAAI,aAAa,EACpB,kBAAkB,IAAI,4BAA4B,EAClD,kBAAkB,IAAI,4BAA4B,EAClD,kBAAkB,IAAI,4BAA4B,EAClD,kBAAkB,IAAI,4BAA4B,EAClD,cAAc,IAAI,wBAAwB,EAC1C,cAAc,IAAI,wBAAwB,GAC3C,MAAM,mBAAmB,CAAC"}
@@ -0,0 +1,173 @@
1
+ // @bun
2
+ // src/sdk/v1.generated.ts
3
+ class ApiError extends Error {
4
+ status;
5
+ body;
6
+ constructor(status, message, body) {
7
+ super(message);
8
+ this.status = status;
9
+ this.body = body;
10
+ this.name = "ApiError";
11
+ }
12
+ }
13
+
14
+ class ContactsV1Client {
15
+ baseUrl;
16
+ apiKey;
17
+ fetchImpl;
18
+ baseHeaders;
19
+ constructor(options) {
20
+ if (!options.baseUrl)
21
+ throw new Error("ContactsV1Client requires a baseUrl.");
22
+ this.baseUrl = options.baseUrl.replace(/\/$/, "");
23
+ this.apiKey = options.apiKey;
24
+ this.fetchImpl = options.fetch ?? globalThis.fetch;
25
+ this.baseHeaders = options.headers ?? {};
26
+ }
27
+ async request(method, path, opts) {
28
+ const url = new URL(this.baseUrl + path);
29
+ if (opts.query) {
30
+ for (const [key, value] of Object.entries(opts.query)) {
31
+ if (value !== undefined && value !== null)
32
+ url.searchParams.set(key, String(value));
33
+ }
34
+ }
35
+ const headers = { Accept: "application/json", ...this.baseHeaders, ...opts.init?.headers };
36
+ if (this.apiKey)
37
+ headers["x-api-key"] = this.apiKey;
38
+ let payload;
39
+ if (opts.body !== undefined) {
40
+ headers["Content-Type"] = "application/json";
41
+ payload = JSON.stringify(opts.body);
42
+ }
43
+ const response = await this.fetchImpl(url.toString(), { ...opts.init, method, headers, body: payload });
44
+ const text = await response.text();
45
+ const data = text ? (() => {
46
+ try {
47
+ return JSON.parse(text);
48
+ } catch {
49
+ return text;
50
+ }
51
+ })() : undefined;
52
+ if (!response.ok) {
53
+ throw new ApiError(response.status, `${method} ${path} failed: ${response.status}`, data);
54
+ }
55
+ return data;
56
+ }
57
+ async listCompanies(query, init) {
58
+ return this.request("GET", `/v1/companies`, {
59
+ body: undefined,
60
+ query,
61
+ init
62
+ });
63
+ }
64
+ async createCompany(body, init) {
65
+ return this.request("POST", `/v1/companies`, {
66
+ body,
67
+ query: undefined,
68
+ init
69
+ });
70
+ }
71
+ async getCompany(id, init) {
72
+ return this.request("GET", `/v1/companies/${encodeURIComponent(String(id))}`, {
73
+ body: undefined,
74
+ query: undefined,
75
+ init
76
+ });
77
+ }
78
+ async deleteCompany(id, init) {
79
+ return this.request("DELETE", `/v1/companies/${encodeURIComponent(String(id))}`, {
80
+ body: undefined,
81
+ query: undefined,
82
+ init
83
+ });
84
+ }
85
+ async updateCompany(id, body, init) {
86
+ return this.request("PATCH", `/v1/companies/${encodeURIComponent(String(id))}`, {
87
+ body,
88
+ query: undefined,
89
+ init
90
+ });
91
+ }
92
+ async listContacts(query, init) {
93
+ return this.request("GET", `/v1/contacts`, {
94
+ body: undefined,
95
+ query,
96
+ init
97
+ });
98
+ }
99
+ async createContact(body, init) {
100
+ return this.request("POST", `/v1/contacts`, {
101
+ body,
102
+ query: undefined,
103
+ init
104
+ });
105
+ }
106
+ async getContact(id, init) {
107
+ return this.request("GET", `/v1/contacts/${encodeURIComponent(String(id))}`, {
108
+ body: undefined,
109
+ query: undefined,
110
+ init
111
+ });
112
+ }
113
+ async deleteContact(id, init) {
114
+ return this.request("DELETE", `/v1/contacts/${encodeURIComponent(String(id))}`, {
115
+ body: undefined,
116
+ query: undefined,
117
+ init
118
+ });
119
+ }
120
+ async updateContact(id, body, init) {
121
+ return this.request("PATCH", `/v1/contacts/${encodeURIComponent(String(id))}`, {
122
+ body,
123
+ query: undefined,
124
+ init
125
+ });
126
+ }
127
+ async getStats(init) {
128
+ return this.request("GET", `/v1/stats`, {
129
+ body: undefined,
130
+ query: undefined,
131
+ init
132
+ });
133
+ }
134
+ async listTags(init) {
135
+ return this.request("GET", `/v1/tags`, {
136
+ body: undefined,
137
+ query: undefined,
138
+ init
139
+ });
140
+ }
141
+ async createTag(body, init) {
142
+ return this.request("POST", `/v1/tags`, {
143
+ body,
144
+ query: undefined,
145
+ init
146
+ });
147
+ }
148
+ async getTag(id, init) {
149
+ return this.request("GET", `/v1/tags/${encodeURIComponent(String(id))}`, {
150
+ body: undefined,
151
+ query: undefined,
152
+ init
153
+ });
154
+ }
155
+ async deleteTag(id, init) {
156
+ return this.request("DELETE", `/v1/tags/${encodeURIComponent(String(id))}`, {
157
+ body: undefined,
158
+ query: undefined,
159
+ init
160
+ });
161
+ }
162
+ async updateTag(id, body, init) {
163
+ return this.request("PATCH", `/v1/tags/${encodeURIComponent(String(id))}`, {
164
+ body,
165
+ query: undefined,
166
+ init
167
+ });
168
+ }
169
+ }
170
+ export {
171
+ ContactsV1Client,
172
+ ApiError as ContactsV1ApiError
173
+ };
@@ -0,0 +1,189 @@
1
+ export interface Contact {
2
+ "id"?: string;
3
+ "first_name"?: string;
4
+ "last_name"?: string;
5
+ "display_name"?: string;
6
+ "nickname"?: string | null;
7
+ "company_id"?: string | null;
8
+ "job_title"?: string | null;
9
+ "notes"?: string | null;
10
+ "source"?: string;
11
+ "status"?: string;
12
+ "sensitivity"?: string;
13
+ "archived"?: boolean;
14
+ "priority"?: number;
15
+ "created_at"?: string;
16
+ "updated_at"?: string;
17
+ }
18
+ export interface Company {
19
+ "id"?: string;
20
+ "name"?: string;
21
+ "domain"?: string | null;
22
+ "industry"?: string | null;
23
+ "size"?: string | null;
24
+ "founded_year"?: number | null;
25
+ "notes"?: string | null;
26
+ "is_owned_entity"?: boolean;
27
+ "created_at"?: string;
28
+ "updated_at"?: string;
29
+ }
30
+ export interface Tag {
31
+ "id"?: string;
32
+ "name"?: string;
33
+ "color"?: string;
34
+ "description"?: string | null;
35
+ "created_at"?: string;
36
+ }
37
+ export interface CreateContactInput {
38
+ "first_name"?: string;
39
+ "last_name"?: string;
40
+ "display_name"?: string;
41
+ "nickname"?: string;
42
+ "company_id"?: string;
43
+ "job_title"?: string;
44
+ "notes"?: string;
45
+ "source"?: string;
46
+ "status"?: string;
47
+ "sensitivity"?: string;
48
+ }
49
+ export interface UpdateContactInput {
50
+ "first_name"?: string;
51
+ "last_name"?: string;
52
+ "display_name"?: string;
53
+ "nickname"?: string;
54
+ "company_id"?: string;
55
+ "job_title"?: string;
56
+ "notes"?: string;
57
+ "status"?: string;
58
+ }
59
+ export interface CreateCompanyInput {
60
+ "name": string;
61
+ "domain"?: string;
62
+ "industry"?: string;
63
+ "size"?: string;
64
+ "founded_year"?: number;
65
+ "notes"?: string;
66
+ "is_owned_entity"?: boolean;
67
+ }
68
+ export interface UpdateCompanyInput {
69
+ "name"?: string;
70
+ "domain"?: string;
71
+ "industry"?: string;
72
+ "notes"?: string;
73
+ }
74
+ export interface CreateTagInput {
75
+ "name": string;
76
+ "color"?: string;
77
+ "description"?: string;
78
+ }
79
+ export interface UpdateTagInput {
80
+ "name"?: string;
81
+ "color"?: string;
82
+ "description"?: string;
83
+ }
84
+ export interface ContactsV1ClientOptions {
85
+ /** Base URL, e.g. process.env.APP_API_URL. */
86
+ baseUrl: string;
87
+ /** API key, e.g. process.env.APP_API_KEY. Sent as the 'x-api-key' header. */
88
+ apiKey?: string;
89
+ /** Custom fetch (defaults to global fetch). */
90
+ fetch?: typeof fetch;
91
+ /** Extra headers merged into every request. */
92
+ headers?: Record<string, string>;
93
+ }
94
+ export declare class ApiError extends Error {
95
+ readonly status: number;
96
+ readonly body: unknown;
97
+ constructor(status: number, message: string, body: unknown);
98
+ }
99
+ export declare class ContactsV1Client {
100
+ private readonly baseUrl;
101
+ private readonly apiKey;
102
+ private readonly fetchImpl;
103
+ private readonly baseHeaders;
104
+ constructor(options: ContactsV1ClientOptions);
105
+ private request;
106
+ /** List companies */
107
+ listCompanies(query?: {
108
+ "industry"?: string;
109
+ "limit"?: number;
110
+ "offset"?: number;
111
+ }, init?: RequestInit): Promise<{
112
+ "companies"?: Array<Company>;
113
+ "count"?: number;
114
+ }>;
115
+ /** Create a company */
116
+ createCompany(body: CreateCompanyInput, init?: RequestInit): Promise<{
117
+ "company"?: Company;
118
+ }>;
119
+ /** Get a company by id */
120
+ getCompany(id: string, init?: RequestInit): Promise<{
121
+ "company"?: Company;
122
+ }>;
123
+ /** Delete a company */
124
+ deleteCompany(id: string, init?: RequestInit): Promise<{
125
+ "deleted"?: boolean;
126
+ "id"?: string;
127
+ }>;
128
+ /** Update a company */
129
+ updateCompany(id: string, body: UpdateCompanyInput, init?: RequestInit): Promise<{
130
+ "company"?: Company;
131
+ }>;
132
+ /** List contacts */
133
+ listContacts(query?: {
134
+ "q"?: string;
135
+ "company_id"?: string;
136
+ "status"?: string;
137
+ "limit"?: number;
138
+ "offset"?: number;
139
+ }, init?: RequestInit): Promise<{
140
+ "contacts"?: Array<Contact>;
141
+ "count"?: number;
142
+ }>;
143
+ /** Create a contact */
144
+ createContact(body: CreateContactInput, init?: RequestInit): Promise<{
145
+ "contact"?: Contact;
146
+ }>;
147
+ /** Get a contact by id */
148
+ getContact(id: string, init?: RequestInit): Promise<{
149
+ "contact"?: Contact;
150
+ }>;
151
+ /** Delete a contact */
152
+ deleteContact(id: string, init?: RequestInit): Promise<{
153
+ "deleted"?: boolean;
154
+ "id"?: string;
155
+ }>;
156
+ /** Update a contact */
157
+ updateContact(id: string, body: UpdateContactInput, init?: RequestInit): Promise<{
158
+ "contact"?: Contact;
159
+ }>;
160
+ /** Aggregate counts */
161
+ getStats(init?: RequestInit): Promise<{
162
+ "contacts"?: number;
163
+ "companies"?: number;
164
+ "tags"?: number;
165
+ }>;
166
+ /** List tags */
167
+ listTags(init?: RequestInit): Promise<{
168
+ "tags"?: Array<Tag>;
169
+ "count"?: number;
170
+ }>;
171
+ /** Create a tag */
172
+ createTag(body: CreateTagInput, init?: RequestInit): Promise<{
173
+ "tag"?: Tag;
174
+ }>;
175
+ /** Get a tag by id */
176
+ getTag(id: string, init?: RequestInit): Promise<{
177
+ "tag"?: Tag;
178
+ }>;
179
+ /** Delete a tag */
180
+ deleteTag(id: string, init?: RequestInit): Promise<{
181
+ "deleted"?: boolean;
182
+ "id"?: string;
183
+ }>;
184
+ /** Update a tag */
185
+ updateTag(id: string, body: UpdateTagInput, init?: RequestInit): Promise<{
186
+ "tag"?: Tag;
187
+ }>;
188
+ }
189
+ //# sourceMappingURL=v1.generated.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"v1.generated.d.ts","sourceRoot":"","sources":["../../src/sdk/v1.generated.ts"],"names":[],"mappings":"AAMA,MAAM,WAAW,OAAO;IAAG,IAAI,CAAC,EAAE,MAAM,CAAC;IAAC,YAAY,CAAC,EAAE,MAAM,CAAC;IAAC,WAAW,CAAC,EAAE,MAAM,CAAC;IAAC,cAAc,CAAC,EAAE,MAAM,CAAC;IAAC,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAAC,YAAY,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAAC,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAAC,OAAO,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAAC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAAC,aAAa,CAAC,EAAE,MAAM,CAAC;IAAC,UAAU,CAAC,EAAE,OAAO,CAAC;IAAC,UAAU,CAAC,EAAE,MAAM,CAAC;IAAC,YAAY,CAAC,EAAE,MAAM,CAAC;IAAC,YAAY,CAAC,EAAE,MAAM,CAAA;CAAE;AAEvX,MAAM,WAAW,OAAO;IAAG,IAAI,CAAC,EAAE,MAAM,CAAC;IAAC,MAAM,CAAC,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,EAAE,MAAM,GAAG,IAA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