samva 0.6.0 → 0.8.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 (53) hide show
  1. package/README.md +2 -2
  2. package/dist/{categories-4u9Az4No.js → categories-DvsHUJtX.js} +9 -1
  3. package/dist/client/sdk.gen.d.ts +119 -33
  4. package/dist/client/types.gen.d.ts +643 -142
  5. package/dist/{client-DCM6U0-I.js → client-ByJHYp7r.js} +612 -223
  6. package/dist/{client-attribution-DYUSAa76.js → client-attribution-N5A784Zo.js} +2 -2
  7. package/dist/effect/analytics.js +1 -1
  8. package/dist/effect/api-keys.js +1 -1
  9. package/dist/effect/attachments.js +1 -1
  10. package/dist/effect/brands.d.ts +212 -0
  11. package/dist/effect/brands.js +24 -0
  12. package/dist/effect/campaigns.d.ts +35 -1
  13. package/dist/effect/campaigns.js +1 -1
  14. package/dist/effect/categories.js +1 -1
  15. package/dist/effect/client.js +1 -1
  16. package/dist/effect/contact-groups.js +1 -1
  17. package/dist/effect/contacts.js +1 -1
  18. package/dist/effect/conversations.d.ts +21 -12
  19. package/dist/effect/conversations.js +1 -1
  20. package/dist/effect/custom-fields.js +1 -1
  21. package/dist/effect/email.d.ts +17 -6
  22. package/dist/effect/email.js +2 -2
  23. package/dist/effect/generated-metadata.d.ts +8 -0
  24. package/dist/effect/generated.d.ts +2880 -1661
  25. package/dist/effect/index.d.ts +2 -2
  26. package/dist/effect/index.js +4 -4
  27. package/dist/effect/internal/operation.d.ts +10 -4
  28. package/dist/effect/media.js +1 -1
  29. package/dist/effect/messages.d.ts +24 -6
  30. package/dist/effect/messages.js +1 -1
  31. package/dist/effect/operations.js +1 -1
  32. package/dist/effect/organizations.d.ts +5 -268
  33. package/dist/effect/organizations.js +4 -2
  34. package/dist/effect/retry.js +1 -1
  35. package/dist/effect/scheduled-messages.d.ts +16 -0
  36. package/dist/effect/scheduled-messages.js +1 -1
  37. package/dist/effect/templates.d.ts +260 -38
  38. package/dist/effect/templates.js +7 -3
  39. package/dist/effect/unsubscribe-groups.d.ts +17 -0
  40. package/dist/effect/unsubscribe-groups.js +4 -2
  41. package/dist/effect/webhooks.d.ts +6 -6
  42. package/dist/effect/webhooks.js +2 -2
  43. package/dist/index.js +2 -2
  44. package/dist/{operation-02YX3hY9.js → operation-D2nEeKBD.js} +34 -5
  45. package/dist/promises/errors.gen.d.ts +22 -4
  46. package/dist/promises/index.d.ts +3 -3
  47. package/dist/promises/index.js +2 -2
  48. package/dist/promises/types.gen.d.ts +1 -1
  49. package/dist/{promises-8MaPNAam.js → promises-DAv8ZtOX.js} +376 -52
  50. package/dist/service-map.d.ts +45 -6
  51. package/package.json +7 -7
  52. package/dist/effect/design.d.ts +0 -209
  53. package/dist/effect/design.js +0 -13
@@ -29,6 +29,14 @@ export declare const SDK_SERVICE_OPERATIONS: {
29
29
  readonly remove: "attachmentsRemove";
30
30
  readonly downloadUrl: "attachmentsDownloadUrl";
31
31
  };
32
+ readonly brands: {
33
+ readonly list: "brandsList";
34
+ readonly create: "brandsCreate";
35
+ readonly get: "brandsGet";
36
+ readonly update: "brandsUpdate";
37
+ readonly remove: "brandsRemove";
38
+ readonly setDefault: "brandsSetDefault";
39
+ };
32
40
  readonly campaigns: {
33
41
  readonly list: "campaignsList";
34
42
  readonly create: "campaignsCreate";
@@ -87,10 +95,6 @@ export declare const SDK_SERVICE_OPERATIONS: {
87
95
  readonly update: "customFieldsUpdate";
88
96
  readonly remove: "customFieldsRemove";
89
97
  };
90
- readonly design: {
91
- readonly get: "designGet";
92
- readonly update: "designUpdate";
93
- };
94
98
  readonly email: {
95
99
  readonly send: "messagesSend";
96
100
  readonly getTrackingDefaults: "emailGetTrackingDefaults";
@@ -180,6 +184,7 @@ export declare const SDK_SERVICE_OPERATIONS: {
180
184
  readonly organizations: {
181
185
  readonly create: "organizationsCreate";
182
186
  readonly get: "organizationsGet";
187
+ readonly getProfile: "organizationsGetProfile";
183
188
  readonly update: "organizationsUpdate";
184
189
  readonly getUsage: "organizationsGetUsage";
185
190
  readonly delete: "organizationsDelete";
@@ -194,6 +199,7 @@ export declare const SDK_SERVICE_OPERATIONS: {
194
199
  readonly templates: {
195
200
  readonly list: "templatesList";
196
201
  readonly create: "templatesCreate";
202
+ readonly addEntry: "templatesAddEntry";
197
203
  readonly listFamilies: "templatesListFamilies";
198
204
  readonly createFamily: "templatesCreateFamily";
199
205
  readonly getFamily: "templatesGetFamily";
@@ -209,6 +215,7 @@ export declare const SDK_SERVICE_OPERATIONS: {
209
215
  readonly getGitRepository: "templatesGetGitRepository";
210
216
  readonly issueGitCredential: "templatesIssueGitCredential";
211
217
  readonly patchWorkspace: "templatesPatchWorkspace";
218
+ readonly putWorkspaceAsset: "templatesPutWorkspaceAsset";
212
219
  readonly resolveWorkspaceConflict: "templatesResolveWorkspaceConflict";
213
220
  readonly attachWorkspaceResource: "templatesAttachWorkspaceResource";
214
221
  readonly removeWorkspaceResource: "templatesRemoveWorkspaceResource";
@@ -229,6 +236,7 @@ export declare const SDK_SERVICE_OPERATIONS: {
229
236
  readonly create: "unsubscribeCreate";
230
237
  readonly update: "unsubscribeUpdate";
231
238
  readonly remove: "unsubscribeRemove";
239
+ readonly setDefault: "unsubscribeSetDefault";
232
240
  readonly listMembers: "unsubscribeListMembers";
233
241
  readonly addEmails: "unsubscribeAddEmails";
234
242
  readonly removeEmails: "unsubscribeRemoveEmails";
@@ -249,12 +257,28 @@ export declare const SDK_SERVICE_OPERATIONS: {
249
257
  };
250
258
  /** How each generated Effect operation is adapted to the Promise facade's direct input shape. */
251
259
  export declare const SDK_OPERATION_CALLS: {
252
- readonly designGet: {
260
+ readonly brandsList: {
253
261
  readonly kind: "none";
254
262
  };
255
- readonly designUpdate: {
263
+ readonly brandsCreate: {
256
264
  readonly kind: "payload";
257
265
  };
266
+ readonly brandsGet: {
267
+ readonly kind: "path";
268
+ readonly paths: readonly ["slug"];
269
+ };
270
+ readonly brandsUpdate: {
271
+ readonly kind: "pathPayload";
272
+ readonly paths: readonly ["slug"];
273
+ };
274
+ readonly brandsRemove: {
275
+ readonly kind: "path";
276
+ readonly paths: readonly ["slug"];
277
+ };
278
+ readonly brandsSetDefault: {
279
+ readonly kind: "path";
280
+ readonly paths: readonly ["slug"];
281
+ };
258
282
  readonly operationsList: {
259
283
  readonly kind: "params";
260
284
  };
@@ -680,6 +704,10 @@ export declare const SDK_OPERATION_CALLS: {
680
704
  readonly templatesCreate: {
681
705
  readonly kind: "payload";
682
706
  };
707
+ readonly templatesAddEntry: {
708
+ readonly kind: "pathPayload";
709
+ readonly paths: readonly ["projectId"];
710
+ };
683
711
  readonly templatesListFamilies: {
684
712
  readonly kind: "params";
685
713
  };
@@ -738,6 +766,10 @@ export declare const SDK_OPERATION_CALLS: {
738
766
  readonly kind: "pathPayload";
739
767
  readonly paths: readonly ["id"];
740
768
  };
769
+ readonly templatesPutWorkspaceAsset: {
770
+ readonly kind: "pathPayload";
771
+ readonly paths: readonly ["id"];
772
+ };
741
773
  readonly templatesResolveWorkspaceConflict: {
742
774
  readonly kind: "pathPayload";
743
775
  readonly paths: readonly ["id"];
@@ -838,6 +870,9 @@ export declare const SDK_OPERATION_CALLS: {
838
870
  readonly organizationsGet: {
839
871
  readonly kind: "none";
840
872
  };
873
+ readonly organizationsGetProfile: {
874
+ readonly kind: "none";
875
+ };
841
876
  readonly organizationsUpdate: {
842
877
  readonly kind: "payload";
843
878
  };
@@ -961,6 +996,10 @@ export declare const SDK_OPERATION_CALLS: {
961
996
  readonly kind: "path";
962
997
  readonly paths: readonly ["id"];
963
998
  };
999
+ readonly unsubscribeSetDefault: {
1000
+ readonly kind: "path";
1001
+ readonly paths: readonly ["id"];
1002
+ };
964
1003
  readonly unsubscribeListMembers: {
965
1004
  readonly kind: "pathParams";
966
1005
  readonly paths: readonly ["groupId"];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "samva",
3
- "version": "0.6.0",
3
+ "version": "0.8.0",
4
4
  "description": "TypeScript SDK for the Samva email API",
5
5
  "keywords": [
6
6
  "api-client",
@@ -62,6 +62,10 @@
62
62
  "types": "./dist/effect/attachments.d.ts",
63
63
  "import": "./dist/effect/attachments.js"
64
64
  },
65
+ "./effect/brands": {
66
+ "types": "./dist/effect/brands.d.ts",
67
+ "import": "./dist/effect/brands.js"
68
+ },
65
69
  "./effect/campaigns": {
66
70
  "types": "./dist/effect/campaigns.d.ts",
67
71
  "import": "./dist/effect/campaigns.js"
@@ -86,10 +90,6 @@
86
90
  "types": "./dist/effect/custom-fields.d.ts",
87
91
  "import": "./dist/effect/custom-fields.js"
88
92
  },
89
- "./effect/design": {
90
- "types": "./dist/effect/design.d.ts",
91
- "import": "./dist/effect/design.js"
92
- },
93
93
  "./effect/email": {
94
94
  "types": "./dist/effect/email.d.ts",
95
95
  "import": "./dist/effect/email.js"
@@ -146,7 +146,7 @@
146
146
  "build": "NODE_OPTIONS=\"$NODE_OPTIONS --max-old-space-size=8192\" tsdown && tsc --project tsconfig.build.json",
147
147
  "prepack": "bun run build",
148
148
  "generate:openapi": "bun run scripts/openapi.ts",
149
- "generate:promises": "bun run --filter @samva/sdk-codegen generate && bun run scripts/generate-promise-errors.ts && oxfmt --config=../../oxfmt.config.ts src/client src/promises/errors.gen.ts src/promises/types.gen.ts",
149
+ "generate:promises": "bun run codegen/generate-promises.ts && bun run scripts/generate-promise-errors.ts && oxfmt --config=../../oxfmt.config.ts src/client src/promises/errors.gen.ts src/promises/types.gen.ts",
150
150
  "generate:effect": "bun run codegen/generate-effect.ts && oxfmt --config=../../oxfmt.config.ts src/effect/generated.ts src/effect/generated-metadata.ts && bun run codegen/normalize-effect.ts",
151
151
  "generate": "bun generate:openapi && bun generate:promises && bun generate:effect",
152
152
  "test:generation": "bun scripts/check-generation.ts",
@@ -157,7 +157,7 @@
157
157
  "typecheck": "tsc --noEmit && tsc --noEmit -p codegen/tsconfig.json && tsc --noEmit -p tests/tsconfig.json"
158
158
  },
159
159
  "dependencies": {
160
- "@samva/webhooks": "0.6.0"
160
+ "@samva/webhooks": "0.8.0"
161
161
  },
162
162
  "devDependencies": {
163
163
  "@effect/openapi-generator": "4.0.0-rc.117",
@@ -1,209 +0,0 @@
1
- export declare const get: (_?: never) => import("effect/Effect").Effect<{
2
- readonly design: {
3
- readonly theme?: {
4
- readonly colors?: {
5
- readonly [x: string]: string;
6
- } | null;
7
- readonly colorsDark?: {
8
- readonly [x: string]: string;
9
- } | null;
10
- readonly radiusPx?: {
11
- readonly [x: string]: number;
12
- } | null;
13
- readonly fontFamilies?: {
14
- readonly [x: string]: {
15
- readonly source: "custom" | "google" | "system";
16
- readonly family: string;
17
- readonly fallback: string;
18
- readonly faces?: readonly {
19
- readonly weight: number;
20
- readonly style: "italic" | "normal";
21
- readonly src: string;
22
- readonly unicodeRange?: string | null;
23
- }[] | null;
24
- };
25
- } | null;
26
- readonly fontWeights?: {
27
- readonly [x: string]: number;
28
- } | null;
29
- readonly text?: {
30
- readonly [x: string]: {
31
- readonly sizePx: number;
32
- readonly lineHeightPx: number;
33
- };
34
- } | null;
35
- readonly leading?: {
36
- readonly [x: string]: number;
37
- } | null;
38
- readonly spacingPx?: number | null;
39
- readonly containerPx?: {
40
- readonly [x: string]: number;
41
- } | null;
42
- readonly tracking?: {
43
- readonly [x: string]: number;
44
- } | null;
45
- } | null;
46
- readonly assets?: {
47
- readonly logoUrl?: string | null;
48
- readonly logoDarkUrl?: string | null;
49
- readonly iconUrl?: string | null;
50
- } | null;
51
- readonly footer?: {
52
- readonly companyName?: string | null;
53
- readonly address?: {
54
- readonly street1: string;
55
- readonly street2?: string | null;
56
- readonly city: string;
57
- readonly region: string;
58
- readonly postalCode: string;
59
- readonly country: string;
60
- } | null;
61
- readonly socialLinks?: readonly {
62
- readonly label: string;
63
- readonly url: string;
64
- }[] | null;
65
- readonly customHtml?: string | null;
66
- } | null;
67
- } | null;
68
- readonly footerCompleteness: {
69
- readonly missingAddress: boolean;
70
- };
71
- }, import("./generated").ForbiddenError | import("./generated").GatewayTimeoutError | import("effect/unstable/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("effect/Schema").SchemaError | import("./generated").UnauthorizedError, import("./client").Service>;
72
- export declare const update: (input: {
73
- readonly design: {
74
- readonly theme?: {
75
- readonly colors?: {
76
- readonly [x: string]: string | undefined;
77
- } | null | undefined;
78
- readonly colorsDark?: {
79
- readonly [x: string]: string | undefined;
80
- } | null | undefined;
81
- readonly radiusPx?: {
82
- readonly [x: string]: number | undefined;
83
- } | null | undefined;
84
- readonly fontFamilies?: {
85
- readonly [x: string]: {
86
- readonly source: string;
87
- readonly family: string;
88
- readonly fallback: string;
89
- readonly faces?: readonly {
90
- readonly weight: number;
91
- readonly style: string;
92
- readonly src: string;
93
- readonly unicodeRange?: string | null | undefined;
94
- }[] | null | undefined;
95
- } | undefined;
96
- } | null | undefined;
97
- readonly fontWeights?: {
98
- readonly [x: string]: number | undefined;
99
- } | null | undefined;
100
- readonly text?: {
101
- readonly [x: string]: {
102
- readonly sizePx: number;
103
- readonly lineHeightPx: number;
104
- } | undefined;
105
- } | null | undefined;
106
- readonly leading?: {
107
- readonly [x: string]: number | undefined;
108
- } | null | undefined;
109
- readonly spacingPx?: number | null | undefined;
110
- readonly containerPx?: {
111
- readonly [x: string]: number | undefined;
112
- } | null | undefined;
113
- readonly tracking?: {
114
- readonly [x: string]: number | undefined;
115
- } | null | undefined;
116
- } | null | undefined;
117
- readonly assets?: {
118
- readonly logoUrl?: string | null | undefined;
119
- readonly logoDarkUrl?: string | null | undefined;
120
- readonly iconUrl?: string | null | undefined;
121
- } | null | undefined;
122
- readonly footer?: {
123
- readonly companyName?: string | null | undefined;
124
- readonly address?: {
125
- readonly street1: string;
126
- readonly street2?: string | null | undefined;
127
- readonly city: string;
128
- readonly region: string;
129
- readonly postalCode: string;
130
- readonly country: string;
131
- } | null | undefined;
132
- readonly socialLinks?: readonly {
133
- readonly label: string;
134
- readonly url: string;
135
- }[] | null | undefined;
136
- readonly customHtml?: string | null | undefined;
137
- } | null | undefined;
138
- } | null;
139
- }) => import("effect/Effect").Effect<{
140
- readonly design: {
141
- readonly theme?: {
142
- readonly colors?: {
143
- readonly [x: string]: string;
144
- } | null;
145
- readonly colorsDark?: {
146
- readonly [x: string]: string;
147
- } | null;
148
- readonly radiusPx?: {
149
- readonly [x: string]: number;
150
- } | null;
151
- readonly fontFamilies?: {
152
- readonly [x: string]: {
153
- readonly source: "custom" | "google" | "system";
154
- readonly family: string;
155
- readonly fallback: string;
156
- readonly faces?: readonly {
157
- readonly weight: number;
158
- readonly style: "italic" | "normal";
159
- readonly src: string;
160
- readonly unicodeRange?: string | null;
161
- }[] | null;
162
- };
163
- } | null;
164
- readonly fontWeights?: {
165
- readonly [x: string]: number;
166
- } | null;
167
- readonly text?: {
168
- readonly [x: string]: {
169
- readonly sizePx: number;
170
- readonly lineHeightPx: number;
171
- };
172
- } | null;
173
- readonly leading?: {
174
- readonly [x: string]: number;
175
- } | null;
176
- readonly spacingPx?: number | null;
177
- readonly containerPx?: {
178
- readonly [x: string]: number;
179
- } | null;
180
- readonly tracking?: {
181
- readonly [x: string]: number;
182
- } | null;
183
- } | null;
184
- readonly assets?: {
185
- readonly logoUrl?: string | null;
186
- readonly logoDarkUrl?: string | null;
187
- readonly iconUrl?: string | null;
188
- } | null;
189
- readonly footer?: {
190
- readonly companyName?: string | null;
191
- readonly address?: {
192
- readonly street1: string;
193
- readonly street2?: string | null;
194
- readonly city: string;
195
- readonly region: string;
196
- readonly postalCode: string;
197
- readonly country: string;
198
- } | null;
199
- readonly socialLinks?: readonly {
200
- readonly label: string;
201
- readonly url: string;
202
- }[] | null;
203
- readonly customHtml?: string | null;
204
- } | null;
205
- } | null;
206
- readonly footerCompleteness: {
207
- readonly missingAddress: boolean;
208
- };
209
- }, import("./generated").ForbiddenError | import("./generated").GatewayTimeoutError | import("effect/unstable/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("effect/Schema").SchemaError | import("./generated").UnauthorizedError | import("./generated").ValidationError, import("./client").Service>;
@@ -1,13 +0,0 @@
1
- import { t as __exportAll } from "../rolldown-runtime-D7D4PA-g.js";
2
- import { n as make } from "../operation-02YX3hY9.js";
3
- //#region src/effect/design.ts
4
- var design_exports = /* @__PURE__ */ __exportAll({
5
- get: () => get,
6
- update: () => update
7
- });
8
- const get = make("designGet");
9
- const update = make("designUpdate");
10
- //#endregion
11
- export { get, design_exports as t, update };
12
-
13
- //# sourceMappingURL=design.js.map