samva 0.2.0 → 0.4.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 +14 -3
- package/dist/client/sdk.gen.d.ts +321 -129
- package/dist/client/types.gen.d.ts +1818 -777
- package/dist/{client-BqkU-sFv.js → client-BmZK_uCt.js} +2699 -1839
- package/dist/client-attribution-BslSOa_8.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 +320 -1005
- package/dist/effect/campaigns.js +1 -1
- package/dist/effect/categories.d.ts +6 -6
- package/dist/effect/client.js +1 -1
- package/dist/effect/contacts.d.ts +292 -314
- package/dist/effect/contacts.js +1 -1
- package/dist/effect/conversations.d.ts +305 -437
- package/dist/effect/conversations.js +1 -1
- package/dist/effect/design.d.ts +74 -74
- package/dist/effect/design.js +1 -1
- package/dist/effect/email.d.ts +233 -265
- package/dist/effect/email.js +2 -2
- package/dist/effect/generated.d.ts +13410 -14526
- package/dist/effect/index.d.ts +1 -0
- package/dist/effect/index.js +3 -2
- package/dist/effect/internal/client.d.ts +1 -1
- package/dist/effect/internal/operation.d.ts +32 -129
- package/dist/effect/media.d.ts +80 -0
- package/dist/effect/media.js +19 -0
- package/dist/effect/messages.d.ts +90 -307
- package/dist/effect/messages.js +1 -1
- package/dist/effect/operations.d.ts +17 -17
- package/dist/effect/operations.js +1 -1
- package/dist/effect/organizations.d.ts +162 -180
- package/dist/effect/organizations.js +1 -1
- package/dist/effect/runtime.d.ts +0 -2
- package/dist/effect/scheduled-messages.d.ts +242 -639
- package/dist/effect/scheduled-messages.js +1 -1
- package/dist/effect/templates.d.ts +1376 -2033
- package/dist/effect/templates.js +40 -30
- package/dist/effect/webhooks.d.ts +53 -54
- package/dist/effect/webhooks.js +2 -2
- package/dist/index.js +1 -1
- package/dist/{normalize-LkWl4HUF.js → normalize-BiIJnycv.js} +6 -15
- package/dist/normalize.d.ts +3 -33
- package/dist/{operation-Ccqh_yxb.js → operation-B1knNlxk.js} +83 -38
- package/dist/promises/index.d.ts +13 -21
- package/dist/promises/index.js +1 -1
- package/dist/promises/types.gen.d.ts +1 -1
- package/dist/{promises-Dgv8UmCC.js → promises-n1opem5V.js} +572 -184
- package/dist/service-map.d.ts +96 -44
- package/package.json +23 -19
package/dist/service-map.d.ts
CHANGED
|
@@ -120,6 +120,13 @@ export declare const SDK_SERVICE_OPERATIONS: {
|
|
|
120
120
|
readonly getStatus: "messagesGetStatus";
|
|
121
121
|
readonly getEvents: "messagesGetEvents";
|
|
122
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
|
+
};
|
|
123
130
|
readonly operations: {
|
|
124
131
|
readonly list: "operationsList";
|
|
125
132
|
readonly get: "operationsGet";
|
|
@@ -151,22 +158,27 @@ export declare const SDK_SERVICE_OPERATIONS: {
|
|
|
151
158
|
readonly createFamilyFromTemplate: "templatesCreateFamilyFromTemplate";
|
|
152
159
|
readonly attachFamilyMember: "templatesAttachFamilyMember";
|
|
153
160
|
readonly detachFamilyMember: "templatesDetachFamilyMember";
|
|
154
|
-
readonly addFamilyChannel: "templatesAddFamilyChannel";
|
|
155
161
|
readonly getById: "templatesGetById";
|
|
156
162
|
readonly remove: "templatesRemove";
|
|
157
163
|
readonly update: "templatesUpdate";
|
|
158
|
-
readonly
|
|
159
|
-
readonly
|
|
160
|
-
readonly
|
|
161
|
-
readonly
|
|
162
|
-
readonly
|
|
163
|
-
readonly
|
|
164
|
-
readonly
|
|
165
|
-
readonly
|
|
166
|
-
readonly
|
|
167
|
-
readonly
|
|
168
|
-
readonly
|
|
169
|
-
readonly
|
|
164
|
+
readonly openWorkspace: "templatesOpenWorkspace";
|
|
165
|
+
readonly getGitRepository: "templatesGetGitRepository";
|
|
166
|
+
readonly issueGitCredential: "templatesIssueGitCredential";
|
|
167
|
+
readonly patchWorkspace: "templatesPatchWorkspace";
|
|
168
|
+
readonly resolveWorkspaceConflict: "templatesResolveWorkspaceConflict";
|
|
169
|
+
readonly attachWorkspaceResource: "templatesAttachWorkspaceResource";
|
|
170
|
+
readonly removeWorkspaceResource: "templatesRemoveWorkspaceResource";
|
|
171
|
+
readonly diffWorkspace: "templatesDiffWorkspace";
|
|
172
|
+
readonly workspaceHistory: "templatesWorkspaceHistory";
|
|
173
|
+
readonly checkWorkspace: "templatesCheckWorkspace";
|
|
174
|
+
readonly renderWorkspaceFixture: "templatesRenderWorkspaceFixture";
|
|
175
|
+
readonly reconcileWorkspace: "templatesReconcileWorkspace";
|
|
176
|
+
readonly restoreWorkspace: "templatesRestoreWorkspace";
|
|
177
|
+
readonly saveWorkspace: "templatesSaveWorkspace";
|
|
178
|
+
readonly publish: "templatesPublish";
|
|
179
|
+
readonly getPublication: "templatesGetPublication";
|
|
180
|
+
readonly listInputContracts: "templatesListInputContracts";
|
|
181
|
+
readonly getInputContract: "templatesGetInputContract";
|
|
170
182
|
};
|
|
171
183
|
readonly webhooks: {
|
|
172
184
|
readonly list: "webhooksList";
|
|
@@ -226,6 +238,25 @@ export declare const SDK_OPERATION_CALLS: {
|
|
|
226
238
|
readonly kind: "path";
|
|
227
239
|
readonly paths: readonly ["id"];
|
|
228
240
|
};
|
|
241
|
+
readonly mediaCreate: {
|
|
242
|
+
readonly kind: "payload";
|
|
243
|
+
};
|
|
244
|
+
readonly mediaGetById: {
|
|
245
|
+
readonly kind: "path";
|
|
246
|
+
readonly paths: readonly ["mediaId"];
|
|
247
|
+
};
|
|
248
|
+
readonly mediaRemove: {
|
|
249
|
+
readonly kind: "path";
|
|
250
|
+
readonly paths: readonly ["mediaId"];
|
|
251
|
+
};
|
|
252
|
+
readonly mediaComplete: {
|
|
253
|
+
readonly kind: "path";
|
|
254
|
+
readonly paths: readonly ["mediaId"];
|
|
255
|
+
};
|
|
256
|
+
readonly mediaDownloadUrl: {
|
|
257
|
+
readonly kind: "path";
|
|
258
|
+
readonly paths: readonly ["mediaId"];
|
|
259
|
+
};
|
|
229
260
|
readonly scheduledMessagesList: {
|
|
230
261
|
readonly kind: "params";
|
|
231
262
|
};
|
|
@@ -384,7 +415,7 @@ export declare const SDK_OPERATION_CALLS: {
|
|
|
384
415
|
readonly kind: "params";
|
|
385
416
|
};
|
|
386
417
|
readonly emailAddSender: {
|
|
387
|
-
readonly kind: "
|
|
418
|
+
readonly kind: "idempotentPayload";
|
|
388
419
|
};
|
|
389
420
|
readonly emailCheckSenderVerification: {
|
|
390
421
|
readonly kind: "path";
|
|
@@ -576,10 +607,6 @@ export declare const SDK_OPERATION_CALLS: {
|
|
|
576
607
|
readonly kind: "path";
|
|
577
608
|
readonly paths: readonly ["familyId", "templateId"];
|
|
578
609
|
};
|
|
579
|
-
readonly templatesAddFamilyChannel: {
|
|
580
|
-
readonly kind: "path";
|
|
581
|
-
readonly paths: readonly ["familyId", "channel"];
|
|
582
|
-
};
|
|
583
610
|
readonly templatesGetById: {
|
|
584
611
|
readonly kind: "path";
|
|
585
612
|
readonly paths: readonly ["id"];
|
|
@@ -592,52 +619,77 @@ export declare const SDK_OPERATION_CALLS: {
|
|
|
592
619
|
readonly kind: "pathPayload";
|
|
593
620
|
readonly paths: readonly ["id"];
|
|
594
621
|
};
|
|
595
|
-
readonly
|
|
622
|
+
readonly templatesOpenWorkspace: {
|
|
623
|
+
readonly kind: "path";
|
|
624
|
+
readonly paths: readonly ["id"];
|
|
625
|
+
};
|
|
626
|
+
readonly templatesGetGitRepository: {
|
|
627
|
+
readonly kind: "path";
|
|
628
|
+
readonly paths: readonly ["id"];
|
|
629
|
+
};
|
|
630
|
+
readonly templatesIssueGitCredential: {
|
|
596
631
|
readonly kind: "pathPayload";
|
|
597
632
|
readonly paths: readonly ["id"];
|
|
598
633
|
};
|
|
599
|
-
readonly
|
|
600
|
-
readonly kind: "
|
|
634
|
+
readonly templatesPatchWorkspace: {
|
|
635
|
+
readonly kind: "pathPayload";
|
|
636
|
+
readonly paths: readonly ["id"];
|
|
601
637
|
};
|
|
602
|
-
readonly
|
|
603
|
-
readonly kind: "
|
|
604
|
-
readonly paths: readonly ["
|
|
638
|
+
readonly templatesResolveWorkspaceConflict: {
|
|
639
|
+
readonly kind: "pathPayload";
|
|
640
|
+
readonly paths: readonly ["id"];
|
|
605
641
|
};
|
|
606
|
-
readonly
|
|
642
|
+
readonly templatesAttachWorkspaceResource: {
|
|
607
643
|
readonly kind: "pathPayload";
|
|
608
|
-
readonly paths: readonly ["
|
|
644
|
+
readonly paths: readonly ["id"];
|
|
609
645
|
};
|
|
610
|
-
readonly
|
|
646
|
+
readonly templatesRemoveWorkspaceResource: {
|
|
611
647
|
readonly kind: "pathPayload";
|
|
612
|
-
readonly paths: readonly ["
|
|
648
|
+
readonly paths: readonly ["id", "resourceId"];
|
|
613
649
|
};
|
|
614
|
-
readonly
|
|
650
|
+
readonly templatesDiffWorkspace: {
|
|
615
651
|
readonly kind: "pathPayload";
|
|
616
|
-
readonly paths: readonly ["
|
|
652
|
+
readonly paths: readonly ["id"];
|
|
617
653
|
};
|
|
618
|
-
readonly
|
|
654
|
+
readonly templatesWorkspaceHistory: {
|
|
655
|
+
readonly kind: "pathParams";
|
|
656
|
+
readonly paths: readonly ["id"];
|
|
657
|
+
};
|
|
658
|
+
readonly templatesCheckWorkspace: {
|
|
619
659
|
readonly kind: "pathPayload";
|
|
620
|
-
readonly paths: readonly ["
|
|
660
|
+
readonly paths: readonly ["id"];
|
|
621
661
|
};
|
|
622
|
-
readonly
|
|
662
|
+
readonly templatesRenderWorkspaceFixture: {
|
|
623
663
|
readonly kind: "pathPayload";
|
|
624
|
-
readonly paths: readonly ["
|
|
664
|
+
readonly paths: readonly ["id"];
|
|
625
665
|
};
|
|
626
|
-
readonly
|
|
627
|
-
readonly kind: "
|
|
628
|
-
readonly paths: readonly ["
|
|
666
|
+
readonly templatesReconcileWorkspace: {
|
|
667
|
+
readonly kind: "pathPayload";
|
|
668
|
+
readonly paths: readonly ["id"];
|
|
629
669
|
};
|
|
630
|
-
readonly
|
|
670
|
+
readonly templatesRestoreWorkspace: {
|
|
671
|
+
readonly kind: "pathPayload";
|
|
672
|
+
readonly paths: readonly ["id"];
|
|
673
|
+
};
|
|
674
|
+
readonly templatesSaveWorkspace: {
|
|
675
|
+
readonly kind: "pathPayload";
|
|
676
|
+
readonly paths: readonly ["id"];
|
|
677
|
+
};
|
|
678
|
+
readonly templatesPublish: {
|
|
679
|
+
readonly kind: "pathPayload";
|
|
680
|
+
readonly paths: readonly ["id"];
|
|
681
|
+
};
|
|
682
|
+
readonly templatesGetPublication: {
|
|
631
683
|
readonly kind: "path";
|
|
632
|
-
readonly paths: readonly ["
|
|
684
|
+
readonly paths: readonly ["id", "publicationId"];
|
|
633
685
|
};
|
|
634
|
-
readonly
|
|
686
|
+
readonly templatesListInputContracts: {
|
|
635
687
|
readonly kind: "path";
|
|
636
|
-
readonly paths: readonly ["
|
|
688
|
+
readonly paths: readonly ["id"];
|
|
637
689
|
};
|
|
638
|
-
readonly
|
|
639
|
-
readonly kind: "
|
|
640
|
-
readonly paths: readonly ["
|
|
690
|
+
readonly templatesGetInputContract: {
|
|
691
|
+
readonly kind: "path";
|
|
692
|
+
readonly paths: readonly ["id", "inputContractId"];
|
|
641
693
|
};
|
|
642
694
|
readonly webhooksList: {
|
|
643
695
|
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.4.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,32 +126,31 @@
|
|
|
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": "
|
|
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",
|
|
125
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",
|
|
129
134
|
"test:tarball": "bun run build && bun scripts/check-tarball.ts",
|
|
130
135
|
"test:tree-shaking": "bun run build && bun scripts/check-tree-shaking.ts",
|
|
131
|
-
"test:types": "
|
|
132
|
-
"typecheck": "
|
|
136
|
+
"test:types": "tsc --noEmit --project tests/parity/tsconfig.json",
|
|
137
|
+
"typecheck": "tsc --noEmit"
|
|
133
138
|
},
|
|
134
139
|
"dependencies": {
|
|
135
|
-
"@samva/webhooks": "0.
|
|
140
|
+
"@samva/webhooks": "0.4.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-
|
|
141
|
-
"@
|
|
142
|
-
"
|
|
143
|
-
"effect": "4.0.0-beta.102",
|
|
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",
|
|
144
148
|
"tsdown": "^0.22.13",
|
|
145
|
-
"typescript": "^
|
|
146
|
-
"vitest": "^4.1.
|
|
149
|
+
"typescript": "^7.0.2",
|
|
150
|
+
"vitest": "^4.1.11"
|
|
147
151
|
},
|
|
148
152
|
"peerDependencies": {
|
|
149
|
-
"effect": "4.0.0-
|
|
153
|
+
"effect": "4.0.0-rc.112"
|
|
150
154
|
},
|
|
151
155
|
"peerDependenciesMeta": {
|
|
152
156
|
"effect": {
|