samva 0.3.0 → 0.5.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 +5 -1
- package/dist/{categories-CsUa8ojo.js → categories-B9Nw2v_F.js} +5 -1
- package/dist/client/sdk.gen.d.ts +312 -190
- package/dist/client/types.gen.d.ts +2284 -728
- package/dist/{client-BOghX8fr.js → client-B7gEkvEq.js} +2740 -1036
- package/dist/client-attribution-B2yJBXdZ.js +9 -0
- package/dist/client-attribution.d.ts +2 -0
- package/dist/effect/api-keys.d.ts +51 -51
- package/dist/effect/api-keys.js +1 -1
- package/dist/effect/campaigns.d.ts +269 -219
- package/dist/effect/campaigns.js +1 -1
- package/dist/effect/categories.d.ts +6 -6
- package/dist/effect/categories.js +1 -1
- package/dist/effect/client.js +1 -1
- package/dist/effect/contacts.d.ts +225 -225
- package/dist/effect/contacts.js +1 -1
- package/dist/effect/conversations.d.ts +308 -293
- package/dist/effect/conversations.js +1 -1
- package/dist/effect/design.d.ts +76 -76
- package/dist/effect/design.js +1 -1
- package/dist/effect/email.d.ts +923 -213
- package/dist/effect/email.js +27 -3
- package/dist/effect/generated-metadata.d.ts +4 -0
- package/dist/effect/generated.d.ts +14948 -10919
- package/dist/effect/index.js +2 -2
- package/dist/effect/internal/client.d.ts +1 -1
- package/dist/effect/internal/operation.d.ts +31 -20
- package/dist/effect/media.d.ts +12 -12
- package/dist/effect/media.js +1 -1
- package/dist/effect/messages.d.ts +243 -61
- package/dist/effect/messages.js +5 -3
- package/dist/effect/operations.d.ts +17 -17
- package/dist/effect/operations.js +1 -1
- package/dist/effect/organizations.d.ts +162 -162
- package/dist/effect/organizations.js +1 -1
- package/dist/effect/retry.js +1 -1
- package/dist/effect/runtime.d.ts +0 -2
- package/dist/effect/scheduled-messages.d.ts +375 -277
- package/dist/effect/scheduled-messages.js +5 -3
- package/dist/effect/templates.d.ts +1383 -1554
- package/dist/effect/templates.js +40 -30
- package/dist/effect/webhooks.d.ts +81 -47
- package/dist/effect/webhooks.js +2 -2
- package/dist/index.js +2 -2
- package/dist/{normalize-BKFjbR9t.js → normalize-BiIJnycv.js} +2 -3
- package/dist/{operation-C2Q4cFJL.js → operation-B4FjN6wq.js} +113 -38
- package/dist/promises/errors.gen.d.ts +21 -2
- package/dist/promises/index.d.ts +11 -8
- package/dist/promises/index.js +2 -2
- package/dist/promises/types.gen.d.ts +1 -1
- package/dist/{promises-oiy7mOyu.js → promises-CP_nxUus.js} +828 -306
- package/dist/service-map.d.ts +136 -44
- package/package.json +13 -14
package/dist/service-map.d.ts
CHANGED
|
@@ -67,6 +67,7 @@ export declare const SDK_SERVICE_OPERATIONS: {
|
|
|
67
67
|
readonly updateRecipientTrackingPreference: "emailUpdateRecipientTrackingPreference";
|
|
68
68
|
readonly listDomains: "emailListDomains";
|
|
69
69
|
readonly addDomain: "emailAddDomain";
|
|
70
|
+
readonly rotateDomainDkim: "emailRotateDomainDkim";
|
|
70
71
|
readonly getDomainVerification: "emailGetDomainVerification";
|
|
71
72
|
readonly advanceDomainVerification: "emailAdvanceDomainVerification";
|
|
72
73
|
readonly getDomainById: "emailGetDomainById";
|
|
@@ -86,7 +87,18 @@ export declare const SDK_SERVICE_OPERATIONS: {
|
|
|
86
87
|
readonly buildCustomTrackingDomainConnectApplyUrl: "emailBuildCustomTrackingDomainConnectApplyUrl";
|
|
87
88
|
readonly completeCustomTrackingDomainConnect: "emailCompleteCustomTrackingDomainConnect";
|
|
88
89
|
readonly disableCustomTracking: "emailDisableCustomTracking";
|
|
90
|
+
readonly getDomainWarming: "emailGetDomainWarming";
|
|
91
|
+
readonly createDomainWarmingPlan: "emailCreateDomainWarmingPlan";
|
|
92
|
+
readonly updateDomainWarmingPolicy: "emailUpdateDomainWarmingPolicy";
|
|
93
|
+
readonly cancelDomainWarmingBatch: "emailCancelDomainWarmingBatch";
|
|
94
|
+
readonly pauseDomainWarming: "emailPauseDomainWarming";
|
|
95
|
+
readonly resumeDomainWarming: "emailResumeDomainWarming";
|
|
96
|
+
readonly completeDomainWarming: "emailCompleteDomainWarming";
|
|
97
|
+
readonly getOnboardingReview: "emailGetOnboardingReview";
|
|
98
|
+
readonly reapplyOnboardingReview: "emailReapplyOnboardingReview";
|
|
99
|
+
readonly respondToOnboardingInformationRequest: "emailRespondToOnboardingInformationRequest";
|
|
89
100
|
readonly listSenders: "emailListSenders";
|
|
101
|
+
readonly getSender: "emailGetSender";
|
|
90
102
|
readonly addSender: "emailAddSender";
|
|
91
103
|
readonly checkSenderVerification: "emailCheckSenderVerification";
|
|
92
104
|
readonly removeSender: "emailRemoveSender";
|
|
@@ -114,6 +126,7 @@ export declare const SDK_SERVICE_OPERATIONS: {
|
|
|
114
126
|
readonly messages: {
|
|
115
127
|
readonly list: "messagesList";
|
|
116
128
|
readonly send: "messagesSend";
|
|
129
|
+
readonly validateEmail: "messagesValidateEmail";
|
|
117
130
|
readonly get: "messagesGet";
|
|
118
131
|
readonly getEmail: "messagesGetEmail";
|
|
119
132
|
readonly remove: "messagesRemove";
|
|
@@ -145,6 +158,7 @@ export declare const SDK_SERVICE_OPERATIONS: {
|
|
|
145
158
|
readonly create: "scheduledMessagesCreate";
|
|
146
159
|
readonly get: "scheduledMessagesGet";
|
|
147
160
|
readonly cancel: "scheduledMessagesCancel";
|
|
161
|
+
readonly resume: "scheduledMessagesResume";
|
|
148
162
|
};
|
|
149
163
|
readonly templates: {
|
|
150
164
|
readonly list: "templatesList";
|
|
@@ -158,22 +172,27 @@ export declare const SDK_SERVICE_OPERATIONS: {
|
|
|
158
172
|
readonly createFamilyFromTemplate: "templatesCreateFamilyFromTemplate";
|
|
159
173
|
readonly attachFamilyMember: "templatesAttachFamilyMember";
|
|
160
174
|
readonly detachFamilyMember: "templatesDetachFamilyMember";
|
|
161
|
-
readonly addFamilyChannel: "templatesAddFamilyChannel";
|
|
162
175
|
readonly getById: "templatesGetById";
|
|
163
176
|
readonly remove: "templatesRemove";
|
|
164
177
|
readonly update: "templatesUpdate";
|
|
165
|
-
readonly
|
|
166
|
-
readonly
|
|
167
|
-
readonly
|
|
168
|
-
readonly
|
|
169
|
-
readonly
|
|
170
|
-
readonly
|
|
171
|
-
readonly
|
|
172
|
-
readonly
|
|
173
|
-
readonly
|
|
174
|
-
readonly
|
|
175
|
-
readonly
|
|
176
|
-
readonly
|
|
178
|
+
readonly openWorkspace: "templatesOpenWorkspace";
|
|
179
|
+
readonly getGitRepository: "templatesGetGitRepository";
|
|
180
|
+
readonly issueGitCredential: "templatesIssueGitCredential";
|
|
181
|
+
readonly patchWorkspace: "templatesPatchWorkspace";
|
|
182
|
+
readonly resolveWorkspaceConflict: "templatesResolveWorkspaceConflict";
|
|
183
|
+
readonly attachWorkspaceResource: "templatesAttachWorkspaceResource";
|
|
184
|
+
readonly removeWorkspaceResource: "templatesRemoveWorkspaceResource";
|
|
185
|
+
readonly diffWorkspace: "templatesDiffWorkspace";
|
|
186
|
+
readonly workspaceHistory: "templatesWorkspaceHistory";
|
|
187
|
+
readonly checkWorkspace: "templatesCheckWorkspace";
|
|
188
|
+
readonly renderWorkspaceFixture: "templatesRenderWorkspaceFixture";
|
|
189
|
+
readonly reconcileWorkspace: "templatesReconcileWorkspace";
|
|
190
|
+
readonly restoreWorkspace: "templatesRestoreWorkspace";
|
|
191
|
+
readonly saveWorkspace: "templatesSaveWorkspace";
|
|
192
|
+
readonly publish: "templatesPublish";
|
|
193
|
+
readonly getPublication: "templatesGetPublication";
|
|
194
|
+
readonly listInputContracts: "templatesListInputContracts";
|
|
195
|
+
readonly getInputContract: "templatesGetInputContract";
|
|
177
196
|
};
|
|
178
197
|
readonly webhooks: {
|
|
179
198
|
readonly list: "webhooksList";
|
|
@@ -213,6 +232,9 @@ export declare const SDK_OPERATION_CALLS: {
|
|
|
213
232
|
readonly messagesSend: {
|
|
214
233
|
readonly kind: "payload";
|
|
215
234
|
};
|
|
235
|
+
readonly messagesValidateEmail: {
|
|
236
|
+
readonly kind: "payload";
|
|
237
|
+
};
|
|
216
238
|
readonly messagesGet: {
|
|
217
239
|
readonly kind: "path";
|
|
218
240
|
readonly paths: readonly ["id"];
|
|
@@ -266,6 +288,10 @@ export declare const SDK_OPERATION_CALLS: {
|
|
|
266
288
|
readonly kind: "path";
|
|
267
289
|
readonly paths: readonly ["id"];
|
|
268
290
|
};
|
|
291
|
+
readonly scheduledMessagesResume: {
|
|
292
|
+
readonly kind: "pathPayload";
|
|
293
|
+
readonly paths: readonly ["id"];
|
|
294
|
+
};
|
|
269
295
|
readonly campaignsList: {
|
|
270
296
|
readonly kind: "params";
|
|
271
297
|
};
|
|
@@ -327,9 +353,22 @@ export declare const SDK_OPERATION_CALLS: {
|
|
|
327
353
|
readonly emailUpdateRecipientTrackingPreference: {
|
|
328
354
|
readonly kind: "payload";
|
|
329
355
|
};
|
|
356
|
+
readonly emailGetOnboardingReview: {
|
|
357
|
+
readonly kind: "none";
|
|
358
|
+
};
|
|
359
|
+
readonly emailReapplyOnboardingReview: {
|
|
360
|
+
readonly kind: "payload";
|
|
361
|
+
};
|
|
362
|
+
readonly emailRespondToOnboardingInformationRequest: {
|
|
363
|
+
readonly kind: "payload";
|
|
364
|
+
};
|
|
330
365
|
readonly emailAddDomain: {
|
|
331
366
|
readonly kind: "payload";
|
|
332
367
|
};
|
|
368
|
+
readonly emailRotateDomainDkim: {
|
|
369
|
+
readonly kind: "idempotentPath";
|
|
370
|
+
readonly paths: readonly ["id"];
|
|
371
|
+
};
|
|
333
372
|
readonly emailGetDomainVerification: {
|
|
334
373
|
readonly kind: "path";
|
|
335
374
|
readonly paths: readonly ["id"];
|
|
@@ -406,11 +445,43 @@ export declare const SDK_OPERATION_CALLS: {
|
|
|
406
445
|
readonly kind: "path";
|
|
407
446
|
readonly paths: readonly ["id"];
|
|
408
447
|
};
|
|
448
|
+
readonly emailGetDomainWarming: {
|
|
449
|
+
readonly kind: "path";
|
|
450
|
+
readonly paths: readonly ["id"];
|
|
451
|
+
};
|
|
452
|
+
readonly emailCreateDomainWarmingPlan: {
|
|
453
|
+
readonly kind: "pathPayload";
|
|
454
|
+
readonly paths: readonly ["id"];
|
|
455
|
+
};
|
|
456
|
+
readonly emailUpdateDomainWarmingPolicy: {
|
|
457
|
+
readonly kind: "pathPayload";
|
|
458
|
+
readonly paths: readonly ["id"];
|
|
459
|
+
};
|
|
460
|
+
readonly emailCancelDomainWarmingBatch: {
|
|
461
|
+
readonly kind: "path";
|
|
462
|
+
readonly paths: readonly ["id", "batchId"];
|
|
463
|
+
};
|
|
464
|
+
readonly emailPauseDomainWarming: {
|
|
465
|
+
readonly kind: "pathPayload";
|
|
466
|
+
readonly paths: readonly ["id"];
|
|
467
|
+
};
|
|
468
|
+
readonly emailResumeDomainWarming: {
|
|
469
|
+
readonly kind: "pathPayload";
|
|
470
|
+
readonly paths: readonly ["id"];
|
|
471
|
+
};
|
|
472
|
+
readonly emailCompleteDomainWarming: {
|
|
473
|
+
readonly kind: "pathPayload";
|
|
474
|
+
readonly paths: readonly ["id"];
|
|
475
|
+
};
|
|
409
476
|
readonly emailListSenders: {
|
|
410
477
|
readonly kind: "params";
|
|
411
478
|
};
|
|
479
|
+
readonly emailGetSender: {
|
|
480
|
+
readonly kind: "path";
|
|
481
|
+
readonly paths: readonly ["id"];
|
|
482
|
+
};
|
|
412
483
|
readonly emailAddSender: {
|
|
413
|
-
readonly kind: "
|
|
484
|
+
readonly kind: "idempotentPayload";
|
|
414
485
|
};
|
|
415
486
|
readonly emailCheckSenderVerification: {
|
|
416
487
|
readonly kind: "path";
|
|
@@ -602,10 +673,6 @@ export declare const SDK_OPERATION_CALLS: {
|
|
|
602
673
|
readonly kind: "path";
|
|
603
674
|
readonly paths: readonly ["familyId", "templateId"];
|
|
604
675
|
};
|
|
605
|
-
readonly templatesAddFamilyChannel: {
|
|
606
|
-
readonly kind: "path";
|
|
607
|
-
readonly paths: readonly ["familyId", "channel"];
|
|
608
|
-
};
|
|
609
676
|
readonly templatesGetById: {
|
|
610
677
|
readonly kind: "path";
|
|
611
678
|
readonly paths: readonly ["id"];
|
|
@@ -618,52 +685,77 @@ export declare const SDK_OPERATION_CALLS: {
|
|
|
618
685
|
readonly kind: "pathPayload";
|
|
619
686
|
readonly paths: readonly ["id"];
|
|
620
687
|
};
|
|
621
|
-
readonly
|
|
688
|
+
readonly templatesOpenWorkspace: {
|
|
689
|
+
readonly kind: "path";
|
|
690
|
+
readonly paths: readonly ["id"];
|
|
691
|
+
};
|
|
692
|
+
readonly templatesGetGitRepository: {
|
|
693
|
+
readonly kind: "path";
|
|
694
|
+
readonly paths: readonly ["id"];
|
|
695
|
+
};
|
|
696
|
+
readonly templatesIssueGitCredential: {
|
|
622
697
|
readonly kind: "pathPayload";
|
|
623
698
|
readonly paths: readonly ["id"];
|
|
624
699
|
};
|
|
625
|
-
readonly
|
|
626
|
-
readonly kind: "
|
|
700
|
+
readonly templatesPatchWorkspace: {
|
|
701
|
+
readonly kind: "pathPayload";
|
|
702
|
+
readonly paths: readonly ["id"];
|
|
627
703
|
};
|
|
628
|
-
readonly
|
|
629
|
-
readonly kind: "
|
|
630
|
-
readonly paths: readonly ["
|
|
704
|
+
readonly templatesResolveWorkspaceConflict: {
|
|
705
|
+
readonly kind: "pathPayload";
|
|
706
|
+
readonly paths: readonly ["id"];
|
|
631
707
|
};
|
|
632
|
-
readonly
|
|
708
|
+
readonly templatesAttachWorkspaceResource: {
|
|
633
709
|
readonly kind: "pathPayload";
|
|
634
|
-
readonly paths: readonly ["
|
|
710
|
+
readonly paths: readonly ["id"];
|
|
635
711
|
};
|
|
636
|
-
readonly
|
|
712
|
+
readonly templatesRemoveWorkspaceResource: {
|
|
637
713
|
readonly kind: "pathPayload";
|
|
638
|
-
readonly paths: readonly ["
|
|
714
|
+
readonly paths: readonly ["id", "resourceId"];
|
|
639
715
|
};
|
|
640
|
-
readonly
|
|
716
|
+
readonly templatesDiffWorkspace: {
|
|
641
717
|
readonly kind: "pathPayload";
|
|
642
|
-
readonly paths: readonly ["
|
|
718
|
+
readonly paths: readonly ["id"];
|
|
643
719
|
};
|
|
644
|
-
readonly
|
|
720
|
+
readonly templatesWorkspaceHistory: {
|
|
721
|
+
readonly kind: "pathParams";
|
|
722
|
+
readonly paths: readonly ["id"];
|
|
723
|
+
};
|
|
724
|
+
readonly templatesCheckWorkspace: {
|
|
645
725
|
readonly kind: "pathPayload";
|
|
646
|
-
readonly paths: readonly ["
|
|
726
|
+
readonly paths: readonly ["id"];
|
|
647
727
|
};
|
|
648
|
-
readonly
|
|
728
|
+
readonly templatesRenderWorkspaceFixture: {
|
|
649
729
|
readonly kind: "pathPayload";
|
|
650
|
-
readonly paths: readonly ["
|
|
730
|
+
readonly paths: readonly ["id"];
|
|
651
731
|
};
|
|
652
|
-
readonly
|
|
653
|
-
readonly kind: "
|
|
654
|
-
readonly paths: readonly ["
|
|
732
|
+
readonly templatesReconcileWorkspace: {
|
|
733
|
+
readonly kind: "pathPayload";
|
|
734
|
+
readonly paths: readonly ["id"];
|
|
735
|
+
};
|
|
736
|
+
readonly templatesRestoreWorkspace: {
|
|
737
|
+
readonly kind: "pathPayload";
|
|
738
|
+
readonly paths: readonly ["id"];
|
|
739
|
+
};
|
|
740
|
+
readonly templatesSaveWorkspace: {
|
|
741
|
+
readonly kind: "pathPayload";
|
|
742
|
+
readonly paths: readonly ["id"];
|
|
743
|
+
};
|
|
744
|
+
readonly templatesPublish: {
|
|
745
|
+
readonly kind: "pathPayload";
|
|
746
|
+
readonly paths: readonly ["id"];
|
|
655
747
|
};
|
|
656
|
-
readonly
|
|
748
|
+
readonly templatesGetPublication: {
|
|
657
749
|
readonly kind: "path";
|
|
658
|
-
readonly paths: readonly ["
|
|
750
|
+
readonly paths: readonly ["id", "publicationId"];
|
|
659
751
|
};
|
|
660
|
-
readonly
|
|
752
|
+
readonly templatesListInputContracts: {
|
|
661
753
|
readonly kind: "path";
|
|
662
|
-
readonly paths: readonly ["
|
|
754
|
+
readonly paths: readonly ["id"];
|
|
663
755
|
};
|
|
664
|
-
readonly
|
|
665
|
-
readonly kind: "
|
|
666
|
-
readonly paths: readonly ["
|
|
756
|
+
readonly templatesGetInputContract: {
|
|
757
|
+
readonly kind: "path";
|
|
758
|
+
readonly paths: readonly ["id", "inputContractId"];
|
|
667
759
|
};
|
|
668
760
|
readonly webhooksList: {
|
|
669
761
|
readonly kind: "params";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "samva",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.5.0",
|
|
4
4
|
"description": "TypeScript SDK for the Samva email API",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"api-client",
|
|
@@ -126,32 +126,31 @@
|
|
|
126
126
|
"build": "NODE_OPTIONS=\"$NODE_OPTIONS --max-old-space-size=8192\" tsdown && tsc --project tsconfig.build.json",
|
|
127
127
|
"prepack": "bun run build",
|
|
128
128
|
"generate:openapi": "bun run scripts/openapi.ts",
|
|
129
|
-
"generate:promises": "
|
|
129
|
+
"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",
|
|
130
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",
|
|
131
131
|
"generate": "bun generate:openapi && bun generate:promises && bun generate:effect",
|
|
132
132
|
"test:generation": "bun scripts/check-generation.ts",
|
|
133
133
|
"test:packed": "bun run build && bun scripts/test-packed-consumers.ts",
|
|
134
134
|
"test:tarball": "bun run build && bun scripts/check-tarball.ts",
|
|
135
135
|
"test:tree-shaking": "bun run build && bun scripts/check-tree-shaking.ts",
|
|
136
|
-
"test:types": "
|
|
137
|
-
"typecheck": "
|
|
136
|
+
"test:types": "tsc --noEmit --project tests/parity/tsconfig.json",
|
|
137
|
+
"typecheck": "tsc --noEmit && tsc --noEmit -p codegen/tsconfig.json && tsc --noEmit -p tests/tsconfig.json"
|
|
138
138
|
},
|
|
139
139
|
"dependencies": {
|
|
140
|
-
"@samva/webhooks": "0.
|
|
140
|
+
"@samva/webhooks": "0.5.0"
|
|
141
141
|
},
|
|
142
142
|
"devDependencies": {
|
|
143
|
-
"@effect/openapi-generator": "4.0.0-rc.
|
|
144
|
-
"@effect/platform-node": "4.0.0-rc.
|
|
145
|
-
"@effect/vitest": "4.0.0-rc.
|
|
146
|
-
"@
|
|
147
|
-
"
|
|
148
|
-
"effect": "4.0.0-rc.111",
|
|
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",
|
|
149
148
|
"tsdown": "^0.22.13",
|
|
150
|
-
"typescript": "^
|
|
151
|
-
"vitest": "^4.1.
|
|
149
|
+
"typescript": "^7.0.2",
|
|
150
|
+
"vitest": "^4.1.11"
|
|
152
151
|
},
|
|
153
152
|
"peerDependencies": {
|
|
154
|
-
"effect": "4.0.0-rc.
|
|
153
|
+
"effect": "4.0.0-rc.112"
|
|
155
154
|
},
|
|
156
155
|
"peerDependenciesMeta": {
|
|
157
156
|
"effect": {
|