samva 0.5.0 → 0.6.0

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 (63) hide show
  1. package/AGENTS.md +3 -2
  2. package/README.md +12 -2
  3. package/dist/{categories-B9Nw2v_F.js → categories-4u9Az4No.js} +24 -8
  4. package/dist/client/sdk.gen.d.ts +406 -74
  5. package/dist/client/types.gen.d.ts +2583 -279
  6. package/dist/{client-B7gEkvEq.js → client-DCM6U0-I.js} +2183 -772
  7. package/dist/{client-attribution-B2yJBXdZ.js → client-attribution-DYUSAa76.js} +2 -2
  8. package/dist/effect/analytics.d.ts +66 -0
  9. package/dist/effect/analytics.js +21 -0
  10. package/dist/effect/api-keys.d.ts +198 -34
  11. package/dist/effect/api-keys.js +1 -1
  12. package/dist/effect/attachments.d.ts +53 -0
  13. package/dist/effect/attachments.js +17 -0
  14. package/dist/effect/campaigns.d.ts +36 -18
  15. package/dist/effect/campaigns.js +1 -1
  16. package/dist/effect/categories.d.ts +3 -3
  17. package/dist/effect/categories.js +1 -1
  18. package/dist/effect/client.js +1 -1
  19. package/dist/effect/contact-groups.d.ts +375 -0
  20. package/dist/effect/contact-groups.js +29 -0
  21. package/dist/effect/contacts.d.ts +35 -19
  22. package/dist/effect/contacts.js +1 -1
  23. package/dist/effect/conversations.d.ts +179 -47
  24. package/dist/effect/conversations.js +1 -1
  25. package/dist/effect/custom-fields.d.ts +111 -0
  26. package/dist/effect/custom-fields.js +17 -0
  27. package/dist/effect/design.d.ts +2 -2
  28. package/dist/effect/design.js +1 -1
  29. package/dist/effect/email.d.ts +254 -118
  30. package/dist/effect/email.js +2 -2
  31. package/dist/effect/generated-metadata.d.ts +12 -4
  32. package/dist/effect/generated.d.ts +11189 -6155
  33. package/dist/effect/index.d.ts +6 -1
  34. package/dist/effect/index.js +8 -3
  35. package/dist/effect/internal/operation.d.ts +115 -27
  36. package/dist/effect/media.d.ts +5 -5
  37. package/dist/effect/media.js +1 -1
  38. package/dist/effect/messages.d.ts +303 -73
  39. package/dist/effect/messages.js +1 -1
  40. package/dist/effect/operations.d.ts +6 -6
  41. package/dist/effect/operations.js +1 -1
  42. package/dist/effect/organizations.d.ts +7 -110
  43. package/dist/effect/organizations.js +2 -4
  44. package/dist/effect/retry.js +1 -1
  45. package/dist/effect/scheduled-messages.d.ts +7 -7
  46. package/dist/effect/scheduled-messages.js +1 -1
  47. package/dist/effect/templates.d.ts +35 -307
  48. package/dist/effect/templates.js +3 -5
  49. package/dist/effect/unsubscribe-groups.d.ts +161 -0
  50. package/dist/effect/unsubscribe-groups.js +25 -0
  51. package/dist/effect/webhooks.d.ts +18 -18
  52. package/dist/effect/webhooks.js +2 -2
  53. package/dist/index.js +2 -2
  54. package/dist/{normalize-BiIJnycv.js → normalize-B79uJIeb.js} +13 -14
  55. package/dist/normalize.d.ts +3 -7
  56. package/dist/{operation-B4FjN6wq.js → operation-02YX3hY9.js} +96 -8
  57. package/dist/promises/errors.gen.d.ts +30 -41
  58. package/dist/promises/index.d.ts +18 -4
  59. package/dist/promises/index.js +2 -2
  60. package/dist/promises/types.gen.d.ts +1 -1
  61. package/dist/{promises-CP_nxUus.js → promises-8MaPNAam.js} +1209 -288
  62. package/dist/service-map.d.ts +155 -8
  63. package/package.json +28 -8
@@ -4,6 +4,14 @@
4
4
  * is visible in review and test failures.
5
5
  */
6
6
  export declare const SDK_SERVICE_OPERATIONS: {
7
+ readonly analytics: {
8
+ readonly getStats: "analyticsGetStats";
9
+ readonly getChannelStats: "analyticsGetChannelStats";
10
+ readonly getTopContacts: "analyticsGetTopContacts";
11
+ readonly getHourlyDistribution: "analyticsGetHourlyDistribution";
12
+ readonly getDeliveryMetrics: "analyticsGetDeliveryMetrics";
13
+ readonly exportData: "analyticsExportData";
14
+ };
7
15
  readonly apiKeys: {
8
16
  readonly list: "apiKeysList";
9
17
  readonly create: "apiKeysCreate";
@@ -15,6 +23,12 @@ export declare const SDK_SERVICE_OPERATIONS: {
15
23
  readonly getStats: "apiKeysGetStats";
16
24
  readonly getActivity: "apiKeysGetActivity";
17
25
  };
26
+ readonly attachments: {
27
+ readonly list: "attachmentsList";
28
+ readonly getById: "attachmentsGetById";
29
+ readonly remove: "attachmentsRemove";
30
+ readonly downloadUrl: "attachmentsDownloadUrl";
31
+ };
18
32
  readonly campaigns: {
19
33
  readonly list: "campaignsList";
20
34
  readonly create: "campaignsCreate";
@@ -29,6 +43,18 @@ export declare const SDK_SERVICE_OPERATIONS: {
29
43
  readonly cancelRun: "campaignsCancelRun";
30
44
  readonly listRecipients: "campaignsListRecipients";
31
45
  };
46
+ readonly contactGroups: {
47
+ readonly list: "contactGroupsList";
48
+ readonly create: "contactGroupsCreate";
49
+ readonly getById: "contactGroupsGetById";
50
+ readonly update: "contactGroupsUpdate";
51
+ readonly remove: "contactGroupsRemove";
52
+ readonly preview: "contactGroupsPreview";
53
+ readonly evaluateDynamic: "contactGroupsEvaluateDynamic";
54
+ readonly getMembers: "contactGroupsGetMembers";
55
+ readonly addMembers: "contactGroupsAddMembers";
56
+ readonly removeMembers: "contactGroupsRemoveMembers";
57
+ };
32
58
  readonly contacts: {
33
59
  readonly list: "contactsList";
34
60
  readonly create: "contactsCreate";
@@ -55,6 +81,12 @@ export declare const SDK_SERVICE_OPERATIONS: {
55
81
  readonly addContacts: "conversationsAddContacts";
56
82
  readonly removeContacts: "conversationsRemoveContacts";
57
83
  };
84
+ readonly customFields: {
85
+ readonly list: "customFieldsList";
86
+ readonly create: "customFieldsCreate";
87
+ readonly update: "customFieldsUpdate";
88
+ readonly remove: "customFieldsRemove";
89
+ };
58
90
  readonly design: {
59
91
  readonly get: "designGet";
60
92
  readonly update: "designUpdate";
@@ -146,7 +178,6 @@ export declare const SDK_SERVICE_OPERATIONS: {
146
178
  readonly retry: "operationsRetry";
147
179
  };
148
180
  readonly organizations: {
149
- readonly bootstrap: "organizationsBootstrap";
150
181
  readonly create: "organizationsCreate";
151
182
  readonly get: "organizationsGet";
152
183
  readonly update: "organizationsUpdate";
@@ -163,7 +194,6 @@ export declare const SDK_SERVICE_OPERATIONS: {
163
194
  readonly templates: {
164
195
  readonly list: "templatesList";
165
196
  readonly create: "templatesCreate";
166
- readonly listDashboard: "templatesListDashboard";
167
197
  readonly listFamilies: "templatesListFamilies";
168
198
  readonly createFamily: "templatesCreateFamily";
169
199
  readonly getFamily: "templatesGetFamily";
@@ -194,6 +224,16 @@ export declare const SDK_SERVICE_OPERATIONS: {
194
224
  readonly listInputContracts: "templatesListInputContracts";
195
225
  readonly getInputContract: "templatesGetInputContract";
196
226
  };
227
+ readonly unsubscribeGroups: {
228
+ readonly list: "unsubscribeList";
229
+ readonly create: "unsubscribeCreate";
230
+ readonly update: "unsubscribeUpdate";
231
+ readonly remove: "unsubscribeRemove";
232
+ readonly listMembers: "unsubscribeListMembers";
233
+ readonly addEmails: "unsubscribeAddEmails";
234
+ readonly removeEmails: "unsubscribeRemoveEmails";
235
+ readonly checkSubscription: "unsubscribeCheckSubscription";
236
+ };
197
237
  readonly webhooks: {
198
238
  readonly list: "webhooksList";
199
239
  readonly create: "webhooksCreate";
@@ -640,9 +680,6 @@ export declare const SDK_OPERATION_CALLS: {
640
680
  readonly templatesCreate: {
641
681
  readonly kind: "payload";
642
682
  };
643
- readonly templatesListDashboard: {
644
- readonly kind: "params";
645
- };
646
683
  readonly templatesListFamilies: {
647
684
  readonly kind: "params";
648
685
  };
@@ -795,9 +832,6 @@ export declare const SDK_OPERATION_CALLS: {
795
832
  readonly kind: "path";
796
833
  readonly paths: readonly ["webhookId"];
797
834
  };
798
- readonly organizationsBootstrap: {
799
- readonly kind: "payload";
800
- };
801
835
  readonly organizationsCreate: {
802
836
  readonly kind: "payload";
803
837
  };
@@ -847,4 +881,117 @@ export declare const SDK_OPERATION_CALLS: {
847
881
  readonly kind: "pathParams";
848
882
  readonly paths: readonly ["id"];
849
883
  };
884
+ readonly attachmentsList: {
885
+ readonly kind: "params";
886
+ };
887
+ readonly attachmentsGetById: {
888
+ readonly kind: "path";
889
+ readonly paths: readonly ["id"];
890
+ };
891
+ readonly attachmentsRemove: {
892
+ readonly kind: "path";
893
+ readonly paths: readonly ["id"];
894
+ };
895
+ readonly attachmentsDownloadUrl: {
896
+ readonly kind: "pathParams";
897
+ readonly paths: readonly ["id"];
898
+ };
899
+ readonly contactGroupsList: {
900
+ readonly kind: "params";
901
+ };
902
+ readonly contactGroupsCreate: {
903
+ readonly kind: "payload";
904
+ };
905
+ readonly contactGroupsGetById: {
906
+ readonly kind: "path";
907
+ readonly paths: readonly ["id"];
908
+ };
909
+ readonly contactGroupsUpdate: {
910
+ readonly kind: "pathPayload";
911
+ readonly paths: readonly ["id"];
912
+ };
913
+ readonly contactGroupsRemove: {
914
+ readonly kind: "path";
915
+ readonly paths: readonly ["id"];
916
+ };
917
+ readonly contactGroupsPreview: {
918
+ readonly kind: "payload";
919
+ };
920
+ readonly contactGroupsEvaluateDynamic: {
921
+ readonly kind: "path";
922
+ readonly paths: readonly ["groupId"];
923
+ };
924
+ readonly contactGroupsGetMembers: {
925
+ readonly kind: "pathParams";
926
+ readonly paths: readonly ["groupId"];
927
+ };
928
+ readonly contactGroupsAddMembers: {
929
+ readonly kind: "pathPayload";
930
+ readonly paths: readonly ["groupId"];
931
+ };
932
+ readonly contactGroupsRemoveMembers: {
933
+ readonly kind: "pathPayload";
934
+ readonly paths: readonly ["groupId"];
935
+ };
936
+ readonly customFieldsList: {
937
+ readonly kind: "params";
938
+ };
939
+ readonly customFieldsCreate: {
940
+ readonly kind: "payload";
941
+ };
942
+ readonly customFieldsUpdate: {
943
+ readonly kind: "pathPayload";
944
+ readonly paths: readonly ["id"];
945
+ };
946
+ readonly customFieldsRemove: {
947
+ readonly kind: "path";
948
+ readonly paths: readonly ["id"];
949
+ };
950
+ readonly unsubscribeList: {
951
+ readonly kind: "params";
952
+ };
953
+ readonly unsubscribeCreate: {
954
+ readonly kind: "payload";
955
+ };
956
+ readonly unsubscribeUpdate: {
957
+ readonly kind: "pathPayload";
958
+ readonly paths: readonly ["id"];
959
+ };
960
+ readonly unsubscribeRemove: {
961
+ readonly kind: "path";
962
+ readonly paths: readonly ["id"];
963
+ };
964
+ readonly unsubscribeListMembers: {
965
+ readonly kind: "pathParams";
966
+ readonly paths: readonly ["groupId"];
967
+ };
968
+ readonly unsubscribeAddEmails: {
969
+ readonly kind: "pathPayload";
970
+ readonly paths: readonly ["groupId"];
971
+ };
972
+ readonly unsubscribeRemoveEmails: {
973
+ readonly kind: "pathPayload";
974
+ readonly paths: readonly ["groupId"];
975
+ };
976
+ readonly unsubscribeCheckSubscription: {
977
+ readonly kind: "params";
978
+ };
979
+ readonly analyticsGetStats: {
980
+ readonly kind: "params";
981
+ };
982
+ readonly analyticsGetChannelStats: {
983
+ readonly kind: "params";
984
+ };
985
+ readonly analyticsGetTopContacts: {
986
+ readonly kind: "params";
987
+ };
988
+ readonly analyticsGetHourlyDistribution: {
989
+ readonly kind: "params";
990
+ };
991
+ readonly analyticsGetDeliveryMetrics: {
992
+ readonly kind: "params";
993
+ };
994
+ readonly analyticsExportData: {
995
+ readonly kind: "payload";
996
+ };
850
997
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "samva",
3
- "version": "0.5.0",
3
+ "version": "0.6.0",
4
4
  "description": "TypeScript SDK for the Samva email API",
5
5
  "keywords": [
6
6
  "api-client",
@@ -50,10 +50,18 @@
50
50
  "types": "./dist/effect/categories.d.ts",
51
51
  "import": "./dist/effect/categories.js"
52
52
  },
53
+ "./effect/analytics": {
54
+ "types": "./dist/effect/analytics.d.ts",
55
+ "import": "./dist/effect/analytics.js"
56
+ },
53
57
  "./effect/api-keys": {
54
58
  "types": "./dist/effect/api-keys.d.ts",
55
59
  "import": "./dist/effect/api-keys.js"
56
60
  },
61
+ "./effect/attachments": {
62
+ "types": "./dist/effect/attachments.d.ts",
63
+ "import": "./dist/effect/attachments.js"
64
+ },
57
65
  "./effect/campaigns": {
58
66
  "types": "./dist/effect/campaigns.d.ts",
59
67
  "import": "./dist/effect/campaigns.js"
@@ -62,6 +70,10 @@
62
70
  "types": "./dist/effect/client.d.ts",
63
71
  "import": "./dist/effect/client.js"
64
72
  },
73
+ "./effect/contact-groups": {
74
+ "types": "./dist/effect/contact-groups.d.ts",
75
+ "import": "./dist/effect/contact-groups.js"
76
+ },
65
77
  "./effect/contacts": {
66
78
  "types": "./dist/effect/contacts.d.ts",
67
79
  "import": "./dist/effect/contacts.js"
@@ -70,6 +82,10 @@
70
82
  "types": "./dist/effect/conversations.d.ts",
71
83
  "import": "./dist/effect/conversations.js"
72
84
  },
85
+ "./effect/custom-fields": {
86
+ "types": "./dist/effect/custom-fields.d.ts",
87
+ "import": "./dist/effect/custom-fields.js"
88
+ },
73
89
  "./effect/design": {
74
90
  "types": "./dist/effect/design.d.ts",
75
91
  "import": "./dist/effect/design.js"
@@ -106,6 +122,10 @@
106
122
  "types": "./dist/effect/templates.d.ts",
107
123
  "import": "./dist/effect/templates.js"
108
124
  },
125
+ "./effect/unsubscribe-groups": {
126
+ "types": "./dist/effect/unsubscribe-groups.d.ts",
127
+ "import": "./dist/effect/unsubscribe-groups.js"
128
+ },
109
129
  "./effect/webhooks": {
110
130
  "types": "./dist/effect/webhooks.d.ts",
111
131
  "import": "./dist/effect/webhooks.js"
@@ -137,20 +157,20 @@
137
157
  "typecheck": "tsc --noEmit && tsc --noEmit -p codegen/tsconfig.json && tsc --noEmit -p tests/tsconfig.json"
138
158
  },
139
159
  "dependencies": {
140
- "@samva/webhooks": "0.5.0"
160
+ "@samva/webhooks": "0.6.0"
141
161
  },
142
162
  "devDependencies": {
143
- "@effect/openapi-generator": "4.0.0-rc.112",
144
- "@effect/platform-node": "4.0.0-rc.112",
145
- "@effect/vitest": "4.0.0-rc.112",
146
- "@types/node": "^26.4.0",
147
- "effect": "4.0.0-rc.112",
163
+ "@effect/openapi-generator": "4.0.0-rc.117",
164
+ "@effect/platform-node": "4.0.0-rc.117",
165
+ "@effect/vitest": "4.0.0-rc.117",
166
+ "@types/node": "^26.6.2",
167
+ "effect": "4.0.0-rc.117",
148
168
  "tsdown": "^0.22.13",
149
169
  "typescript": "^7.0.2",
150
170
  "vitest": "^4.1.11"
151
171
  },
152
172
  "peerDependencies": {
153
- "effect": "4.0.0-rc.112"
173
+ "effect": "4.0.0-rc.117"
154
174
  },
155
175
  "peerDependenciesMeta": {
156
176
  "effect": {