samva 0.1.1 → 0.3.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.
- package/AGENTS.md +1 -1
- package/README.md +10 -3
- package/dist/client/sdk.gen.d.ts +333 -188
- package/dist/client/types.gen.d.ts +1452 -718
- package/dist/{client-DVALvDUe.js → client-BOghX8fr.js} +1990 -1631
- package/dist/effect/api-keys.d.ts +14 -14
- package/dist/effect/api-keys.js +1 -1
- package/dist/effect/campaigns.d.ts +233 -861
- package/dist/effect/campaigns.js +1 -1
- package/dist/effect/categories.d.ts +1 -1
- package/dist/effect/client.js +1 -1
- package/dist/effect/contacts.d.ts +131 -231
- package/dist/effect/contacts.js +1 -1
- package/dist/effect/conversations.d.ts +91 -208
- package/dist/effect/conversations.js +1 -1
- package/dist/effect/design.d.ts +11 -11
- package/dist/effect/design.js +1 -1
- package/dist/effect/email.d.ts +164 -168
- package/dist/effect/email.js +20 -18
- package/dist/effect/generated.d.ts +13753 -14935
- package/dist/effect/index.d.ts +1 -0
- package/dist/effect/index.js +3 -2
- package/dist/effect/internal/operation.d.ts +15 -113
- package/dist/effect/media.d.ts +80 -0
- package/dist/effect/media.js +19 -0
- package/dist/effect/messages.d.ts +41 -261
- package/dist/effect/messages.js +1 -1
- package/dist/effect/operations.d.ts +10 -10
- package/dist/effect/operations.js +1 -1
- package/dist/effect/organizations.d.ts +24 -42
- package/dist/effect/organizations.js +1 -1
- package/dist/effect/scheduled-messages.d.ts +43 -502
- package/dist/effect/scheduled-messages.js +1 -1
- package/dist/effect/templates.d.ts +312 -1542
- package/dist/effect/templates.js +26 -18
- package/dist/effect/webhooks.d.ts +26 -27
- package/dist/effect/webhooks.js +2 -2
- package/dist/index.js +1 -1
- package/dist/{normalize-LkWl4HUF.js → normalize-BKFjbR9t.js} +5 -13
- package/dist/normalize.d.ts +3 -33
- package/dist/{operation-UtKNITtG.js → operation-C2Q4cFJL.js} +67 -26
- package/dist/promises/index.d.ts +6 -14
- package/dist/promises/index.js +1 -1
- package/dist/promises/types.gen.d.ts +1 -1
- package/dist/{promises-QxEfMTho.js → promises-oiy7mOyu.js} +680 -157
- package/dist/service-map.d.ts +92 -40
- package/package.json +19 -14
package/dist/service-map.d.ts
CHANGED
|
@@ -67,9 +67,8 @@ export declare const SDK_SERVICE_OPERATIONS: {
|
|
|
67
67
|
readonly updateRecipientTrackingPreference: "emailUpdateRecipientTrackingPreference";
|
|
68
68
|
readonly listDomains: "emailListDomains";
|
|
69
69
|
readonly addDomain: "emailAddDomain";
|
|
70
|
-
readonly
|
|
71
|
-
readonly
|
|
72
|
-
readonly checkDomainVerification: "emailCheckDomainVerification";
|
|
70
|
+
readonly getDomainVerification: "emailGetDomainVerification";
|
|
71
|
+
readonly advanceDomainVerification: "emailAdvanceDomainVerification";
|
|
73
72
|
readonly getDomainById: "emailGetDomainById";
|
|
74
73
|
readonly removeDomain: "emailRemoveDomain";
|
|
75
74
|
readonly setDefaultDomain: "emailSetDefaultDomain";
|
|
@@ -81,10 +80,12 @@ export declare const SDK_SERVICE_OPERATIONS: {
|
|
|
81
80
|
readonly buildDomainConnectApplyUrl: "emailBuildDomainConnectApplyUrl";
|
|
82
81
|
readonly completeDomainConnect: "emailCompleteDomainConnect";
|
|
83
82
|
readonly enableReceiving: "emailEnableReceiving";
|
|
84
|
-
readonly
|
|
85
|
-
readonly
|
|
86
|
-
readonly
|
|
87
|
-
readonly
|
|
83
|
+
readonly enableCustomTracking: "emailEnableCustomTracking";
|
|
84
|
+
readonly getCustomTracking: "emailGetCustomTracking";
|
|
85
|
+
readonly getCustomTrackingDomainConnect: "emailGetCustomTrackingDomainConnect";
|
|
86
|
+
readonly buildCustomTrackingDomainConnectApplyUrl: "emailBuildCustomTrackingDomainConnectApplyUrl";
|
|
87
|
+
readonly completeCustomTrackingDomainConnect: "emailCompleteCustomTrackingDomainConnect";
|
|
88
|
+
readonly disableCustomTracking: "emailDisableCustomTracking";
|
|
88
89
|
readonly listSenders: "emailListSenders";
|
|
89
90
|
readonly addSender: "emailAddSender";
|
|
90
91
|
readonly checkSenderVerification: "emailCheckSenderVerification";
|
|
@@ -119,6 +120,13 @@ export declare const SDK_SERVICE_OPERATIONS: {
|
|
|
119
120
|
readonly getStatus: "messagesGetStatus";
|
|
120
121
|
readonly getEvents: "messagesGetEvents";
|
|
121
122
|
};
|
|
123
|
+
readonly media: {
|
|
124
|
+
readonly create: "mediaCreate";
|
|
125
|
+
readonly getById: "mediaGetById";
|
|
126
|
+
readonly remove: "mediaRemove";
|
|
127
|
+
readonly complete: "mediaComplete";
|
|
128
|
+
readonly downloadUrl: "mediaDownloadUrl";
|
|
129
|
+
};
|
|
122
130
|
readonly operations: {
|
|
123
131
|
readonly list: "operationsList";
|
|
124
132
|
readonly get: "operationsGet";
|
|
@@ -155,13 +163,17 @@ export declare const SDK_SERVICE_OPERATIONS: {
|
|
|
155
163
|
readonly remove: "templatesRemove";
|
|
156
164
|
readonly update: "templatesUpdate";
|
|
157
165
|
readonly approve: "templatesApprove";
|
|
158
|
-
readonly
|
|
159
|
-
readonly
|
|
160
|
-
readonly
|
|
161
|
-
readonly
|
|
162
|
-
readonly
|
|
163
|
-
readonly
|
|
164
|
-
readonly
|
|
166
|
+
readonly openDocument: "templateDocumentsBootstrap";
|
|
167
|
+
readonly getDocument: "templateDocumentsGet";
|
|
168
|
+
readonly replaceDocument: "templateDocumentsReplace";
|
|
169
|
+
readonly saveDocument: "templateDocumentsSave";
|
|
170
|
+
readonly renderDocument: "templateDocumentsRender";
|
|
171
|
+
readonly checkDocumentSpam: "templateDocumentsSpamCheck";
|
|
172
|
+
readonly sendDocumentTest: "templateDocumentsTestSend";
|
|
173
|
+
readonly listDocumentVersions: "templateDocumentsVersions";
|
|
174
|
+
readonly publishDocument: "templateDocumentsPublish";
|
|
175
|
+
readonly unpublishDocument: "templateDocumentsUnpublish";
|
|
176
|
+
readonly restoreDocument: "templateDocumentsRestore";
|
|
165
177
|
};
|
|
166
178
|
readonly webhooks: {
|
|
167
179
|
readonly list: "webhooksList";
|
|
@@ -221,6 +233,25 @@ export declare const SDK_OPERATION_CALLS: {
|
|
|
221
233
|
readonly kind: "path";
|
|
222
234
|
readonly paths: readonly ["id"];
|
|
223
235
|
};
|
|
236
|
+
readonly mediaCreate: {
|
|
237
|
+
readonly kind: "payload";
|
|
238
|
+
};
|
|
239
|
+
readonly mediaGetById: {
|
|
240
|
+
readonly kind: "path";
|
|
241
|
+
readonly paths: readonly ["mediaId"];
|
|
242
|
+
};
|
|
243
|
+
readonly mediaRemove: {
|
|
244
|
+
readonly kind: "path";
|
|
245
|
+
readonly paths: readonly ["mediaId"];
|
|
246
|
+
};
|
|
247
|
+
readonly mediaComplete: {
|
|
248
|
+
readonly kind: "path";
|
|
249
|
+
readonly paths: readonly ["mediaId"];
|
|
250
|
+
};
|
|
251
|
+
readonly mediaDownloadUrl: {
|
|
252
|
+
readonly kind: "path";
|
|
253
|
+
readonly paths: readonly ["mediaId"];
|
|
254
|
+
};
|
|
224
255
|
readonly scheduledMessagesList: {
|
|
225
256
|
readonly kind: "params";
|
|
226
257
|
};
|
|
@@ -299,14 +330,11 @@ export declare const SDK_OPERATION_CALLS: {
|
|
|
299
330
|
readonly emailAddDomain: {
|
|
300
331
|
readonly kind: "payload";
|
|
301
332
|
};
|
|
302
|
-
readonly
|
|
303
|
-
readonly kind: "idempotentPayload";
|
|
304
|
-
};
|
|
305
|
-
readonly emailVerifyDomain: {
|
|
333
|
+
readonly emailGetDomainVerification: {
|
|
306
334
|
readonly kind: "path";
|
|
307
335
|
readonly paths: readonly ["id"];
|
|
308
336
|
};
|
|
309
|
-
readonly
|
|
337
|
+
readonly emailAdvanceDomainVerification: {
|
|
310
338
|
readonly kind: "path";
|
|
311
339
|
readonly paths: readonly ["id"];
|
|
312
340
|
};
|
|
@@ -354,19 +382,27 @@ export declare const SDK_OPERATION_CALLS: {
|
|
|
354
382
|
readonly kind: "pathPayload";
|
|
355
383
|
readonly paths: readonly ["id"];
|
|
356
384
|
};
|
|
357
|
-
readonly
|
|
385
|
+
readonly emailEnableCustomTracking: {
|
|
386
|
+
readonly kind: "pathPayload";
|
|
387
|
+
readonly paths: readonly ["id"];
|
|
388
|
+
};
|
|
389
|
+
readonly emailGetCustomTracking: {
|
|
358
390
|
readonly kind: "path";
|
|
359
391
|
readonly paths: readonly ["id"];
|
|
360
392
|
};
|
|
361
|
-
readonly
|
|
362
|
-
readonly kind: "
|
|
393
|
+
readonly emailGetCustomTrackingDomainConnect: {
|
|
394
|
+
readonly kind: "path";
|
|
363
395
|
readonly paths: readonly ["id"];
|
|
364
396
|
};
|
|
365
|
-
readonly
|
|
397
|
+
readonly emailBuildCustomTrackingDomainConnectApplyUrl: {
|
|
366
398
|
readonly kind: "path";
|
|
367
399
|
readonly paths: readonly ["id"];
|
|
368
400
|
};
|
|
369
|
-
readonly
|
|
401
|
+
readonly emailCompleteCustomTrackingDomainConnect: {
|
|
402
|
+
readonly kind: "pathPayload";
|
|
403
|
+
readonly paths: readonly ["id"];
|
|
404
|
+
};
|
|
405
|
+
readonly emailDisableCustomTracking: {
|
|
370
406
|
readonly kind: "path";
|
|
371
407
|
readonly paths: readonly ["id"];
|
|
372
408
|
};
|
|
@@ -586,32 +622,48 @@ export declare const SDK_OPERATION_CALLS: {
|
|
|
586
622
|
readonly kind: "pathPayload";
|
|
587
623
|
readonly paths: readonly ["id"];
|
|
588
624
|
};
|
|
589
|
-
readonly
|
|
590
|
-
readonly kind: "
|
|
591
|
-
readonly paths: readonly ["id"];
|
|
625
|
+
readonly templateDocumentsBootstrap: {
|
|
626
|
+
readonly kind: "payload";
|
|
592
627
|
};
|
|
593
|
-
readonly
|
|
628
|
+
readonly templateDocumentsGet: {
|
|
594
629
|
readonly kind: "path";
|
|
595
|
-
readonly paths: readonly ["
|
|
630
|
+
readonly paths: readonly ["templateId"];
|
|
596
631
|
};
|
|
597
|
-
readonly
|
|
598
|
-
readonly kind: "
|
|
599
|
-
readonly paths: readonly ["
|
|
632
|
+
readonly templateDocumentsReplace: {
|
|
633
|
+
readonly kind: "pathPayload";
|
|
634
|
+
readonly paths: readonly ["templateId"];
|
|
635
|
+
};
|
|
636
|
+
readonly templateDocumentsSave: {
|
|
637
|
+
readonly kind: "pathPayload";
|
|
638
|
+
readonly paths: readonly ["templateId"];
|
|
639
|
+
};
|
|
640
|
+
readonly templateDocumentsRender: {
|
|
641
|
+
readonly kind: "pathPayload";
|
|
642
|
+
readonly paths: readonly ["templateId"];
|
|
643
|
+
};
|
|
644
|
+
readonly templateDocumentsSpamCheck: {
|
|
645
|
+
readonly kind: "pathPayload";
|
|
646
|
+
readonly paths: readonly ["templateId"];
|
|
647
|
+
};
|
|
648
|
+
readonly templateDocumentsTestSend: {
|
|
649
|
+
readonly kind: "pathPayload";
|
|
650
|
+
readonly paths: readonly ["templateId"];
|
|
600
651
|
};
|
|
601
|
-
readonly
|
|
652
|
+
readonly templateDocumentsVersions: {
|
|
602
653
|
readonly kind: "path";
|
|
603
|
-
readonly paths: readonly ["
|
|
654
|
+
readonly paths: readonly ["templateId"];
|
|
604
655
|
};
|
|
605
|
-
readonly
|
|
656
|
+
readonly templateDocumentsPublish: {
|
|
606
657
|
readonly kind: "path";
|
|
607
|
-
readonly paths: readonly ["
|
|
658
|
+
readonly paths: readonly ["templateId"];
|
|
608
659
|
};
|
|
609
|
-
readonly
|
|
660
|
+
readonly templateDocumentsUnpublish: {
|
|
610
661
|
readonly kind: "path";
|
|
611
|
-
readonly paths: readonly ["
|
|
662
|
+
readonly paths: readonly ["templateId"];
|
|
612
663
|
};
|
|
613
|
-
readonly
|
|
614
|
-
readonly kind: "
|
|
664
|
+
readonly templateDocumentsRestore: {
|
|
665
|
+
readonly kind: "pathPayload";
|
|
666
|
+
readonly paths: readonly ["templateId", "versionId"];
|
|
615
667
|
};
|
|
616
668
|
readonly webhooksList: {
|
|
617
669
|
readonly kind: "params";
|
package/package.json
CHANGED
|
@@ -1,16 +1,17 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "samva",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"description": "TypeScript SDK for the Samva
|
|
3
|
+
"version": "0.3.0",
|
|
4
|
+
"description": "TypeScript SDK for the Samva email API",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"api-client",
|
|
7
|
-
"
|
|
8
|
-
"
|
|
7
|
+
"effect",
|
|
8
|
+
"email",
|
|
9
|
+
"email-api",
|
|
9
10
|
"samva",
|
|
10
11
|
"sdk",
|
|
11
|
-
"
|
|
12
|
+
"transactional-email",
|
|
12
13
|
"typescript",
|
|
13
|
-
"
|
|
14
|
+
"webhooks"
|
|
14
15
|
],
|
|
15
16
|
"homepage": "https://samva.dev",
|
|
16
17
|
"bugs": {
|
|
@@ -81,6 +82,10 @@
|
|
|
81
82
|
"types": "./dist/effect/messages.d.ts",
|
|
82
83
|
"import": "./dist/effect/messages.js"
|
|
83
84
|
},
|
|
85
|
+
"./effect/media": {
|
|
86
|
+
"types": "./dist/effect/media.d.ts",
|
|
87
|
+
"import": "./dist/effect/media.js"
|
|
88
|
+
},
|
|
84
89
|
"./effect/operations": {
|
|
85
90
|
"types": "./dist/effect/operations.d.ts",
|
|
86
91
|
"import": "./dist/effect/operations.js"
|
|
@@ -121,8 +126,8 @@
|
|
|
121
126
|
"build": "NODE_OPTIONS=\"$NODE_OPTIONS --max-old-space-size=8192\" tsdown && tsc --project tsconfig.build.json",
|
|
122
127
|
"prepack": "bun run build",
|
|
123
128
|
"generate:openapi": "bun run scripts/openapi.ts",
|
|
124
|
-
"generate:promises": "openapi-ts && bun run scripts/loosen-optionals.ts && bun run scripts/generate-promise-errors.ts && oxfmt src/client src/promises/errors.gen.ts src/promises/types.gen.ts",
|
|
125
|
-
"generate:effect": "bun run codegen/generate-effect.ts && oxfmt src/effect/generated.ts src/effect/generated-metadata.ts",
|
|
129
|
+
"generate:promises": "openapi-ts && bun run scripts/loosen-optionals.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",
|
|
130
|
+
"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",
|
|
126
131
|
"generate": "bun generate:openapi && bun generate:promises && bun generate:effect",
|
|
127
132
|
"test:generation": "bun scripts/check-generation.ts",
|
|
128
133
|
"test:packed": "bun run build && bun scripts/test-packed-consumers.ts",
|
|
@@ -132,21 +137,21 @@
|
|
|
132
137
|
"typecheck": "tsgo --noEmit"
|
|
133
138
|
},
|
|
134
139
|
"dependencies": {
|
|
135
|
-
"@samva/webhooks": "0.
|
|
140
|
+
"@samva/webhooks": "0.3.0"
|
|
136
141
|
},
|
|
137
142
|
"devDependencies": {
|
|
138
|
-
"@effect/openapi-generator": "4.0.0-
|
|
139
|
-
"@effect/platform-node": "4.0.0-
|
|
140
|
-
"@effect/vitest": "4.0.0-
|
|
143
|
+
"@effect/openapi-generator": "4.0.0-rc.111",
|
|
144
|
+
"@effect/platform-node": "4.0.0-rc.111",
|
|
145
|
+
"@effect/vitest": "4.0.0-rc.111",
|
|
141
146
|
"@hey-api/openapi-ts": "0.99.0",
|
|
142
147
|
"@types/node": "^26.1.1",
|
|
143
|
-
"effect": "4.0.0-
|
|
148
|
+
"effect": "4.0.0-rc.111",
|
|
144
149
|
"tsdown": "^0.22.13",
|
|
145
150
|
"typescript": "^6.0.3",
|
|
146
151
|
"vitest": "^4.1.10"
|
|
147
152
|
},
|
|
148
153
|
"peerDependencies": {
|
|
149
|
-
"effect": "4.0.0-
|
|
154
|
+
"effect": "4.0.0-rc.111"
|
|
150
155
|
},
|
|
151
156
|
"peerDependenciesMeta": {
|
|
152
157
|
"effect": {
|