samva 0.3.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 +5 -1
- package/dist/client/sdk.gen.d.ts +167 -184
- package/dist/client/types.gen.d.ts +1362 -662
- package/dist/{client-BOghX8fr.js → client-BmZK_uCt.js} +1797 -935
- 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 +253 -219
- 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 +225 -225
- package/dist/effect/contacts.js +1 -1
- package/dist/effect/conversations.d.ts +293 -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 +225 -213
- package/dist/effect/email.js +2 -2
- package/dist/effect/generated.d.ts +12174 -11888
- package/dist/effect/index.js +1 -1
- package/dist/effect/internal/client.d.ts +1 -1
- package/dist/effect/internal/operation.d.ts +20 -19
- package/dist/effect/media.d.ts +9 -9
- package/dist/effect/media.js +1 -1
- package/dist/effect/messages.d.ts +64 -61
- 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 -162
- package/dist/effect/organizations.js +1 -1
- package/dist/effect/runtime.d.ts +0 -2
- package/dist/effect/scheduled-messages.d.ts +290 -276
- package/dist/effect/scheduled-messages.js +1 -1
- package/dist/effect/templates.d.ts +1371 -1554
- package/dist/effect/templates.js +40 -30
- package/dist/effect/webhooks.d.ts +47 -47
- package/dist/effect/webhooks.js +2 -2
- package/dist/index.js +1 -1
- package/dist/{normalize-BKFjbR9t.js → normalize-BiIJnycv.js} +2 -3
- package/dist/{operation-C2Q4cFJL.js → operation-B1knNlxk.js} +65 -38
- package/dist/promises/index.d.ts +10 -8
- package/dist/promises/index.js +1 -1
- package/dist/promises/types.gen.d.ts +1 -1
- package/dist/{promises-oiy7mOyu.js → promises-n1opem5V.js} +293 -262
- package/dist/service-map.d.ts +70 -44
- package/package.json +13 -14
package/dist/service-map.d.ts
CHANGED
|
@@ -158,22 +158,27 @@ export declare const SDK_SERVICE_OPERATIONS: {
|
|
|
158
158
|
readonly createFamilyFromTemplate: "templatesCreateFamilyFromTemplate";
|
|
159
159
|
readonly attachFamilyMember: "templatesAttachFamilyMember";
|
|
160
160
|
readonly detachFamilyMember: "templatesDetachFamilyMember";
|
|
161
|
-
readonly addFamilyChannel: "templatesAddFamilyChannel";
|
|
162
161
|
readonly getById: "templatesGetById";
|
|
163
162
|
readonly remove: "templatesRemove";
|
|
164
163
|
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
|
|
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";
|
|
177
182
|
};
|
|
178
183
|
readonly webhooks: {
|
|
179
184
|
readonly list: "webhooksList";
|
|
@@ -410,7 +415,7 @@ export declare const SDK_OPERATION_CALLS: {
|
|
|
410
415
|
readonly kind: "params";
|
|
411
416
|
};
|
|
412
417
|
readonly emailAddSender: {
|
|
413
|
-
readonly kind: "
|
|
418
|
+
readonly kind: "idempotentPayload";
|
|
414
419
|
};
|
|
415
420
|
readonly emailCheckSenderVerification: {
|
|
416
421
|
readonly kind: "path";
|
|
@@ -602,10 +607,6 @@ export declare const SDK_OPERATION_CALLS: {
|
|
|
602
607
|
readonly kind: "path";
|
|
603
608
|
readonly paths: readonly ["familyId", "templateId"];
|
|
604
609
|
};
|
|
605
|
-
readonly templatesAddFamilyChannel: {
|
|
606
|
-
readonly kind: "path";
|
|
607
|
-
readonly paths: readonly ["familyId", "channel"];
|
|
608
|
-
};
|
|
609
610
|
readonly templatesGetById: {
|
|
610
611
|
readonly kind: "path";
|
|
611
612
|
readonly paths: readonly ["id"];
|
|
@@ -618,52 +619,77 @@ export declare const SDK_OPERATION_CALLS: {
|
|
|
618
619
|
readonly kind: "pathPayload";
|
|
619
620
|
readonly paths: readonly ["id"];
|
|
620
621
|
};
|
|
621
|
-
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: {
|
|
622
631
|
readonly kind: "pathPayload";
|
|
623
632
|
readonly paths: readonly ["id"];
|
|
624
633
|
};
|
|
625
|
-
readonly
|
|
626
|
-
readonly kind: "
|
|
634
|
+
readonly templatesPatchWorkspace: {
|
|
635
|
+
readonly kind: "pathPayload";
|
|
636
|
+
readonly paths: readonly ["id"];
|
|
627
637
|
};
|
|
628
|
-
readonly
|
|
629
|
-
readonly kind: "
|
|
630
|
-
readonly paths: readonly ["
|
|
638
|
+
readonly templatesResolveWorkspaceConflict: {
|
|
639
|
+
readonly kind: "pathPayload";
|
|
640
|
+
readonly paths: readonly ["id"];
|
|
631
641
|
};
|
|
632
|
-
readonly
|
|
642
|
+
readonly templatesAttachWorkspaceResource: {
|
|
633
643
|
readonly kind: "pathPayload";
|
|
634
|
-
readonly paths: readonly ["
|
|
644
|
+
readonly paths: readonly ["id"];
|
|
635
645
|
};
|
|
636
|
-
readonly
|
|
646
|
+
readonly templatesRemoveWorkspaceResource: {
|
|
637
647
|
readonly kind: "pathPayload";
|
|
638
|
-
readonly paths: readonly ["
|
|
648
|
+
readonly paths: readonly ["id", "resourceId"];
|
|
639
649
|
};
|
|
640
|
-
readonly
|
|
650
|
+
readonly templatesDiffWorkspace: {
|
|
641
651
|
readonly kind: "pathPayload";
|
|
642
|
-
readonly paths: readonly ["
|
|
652
|
+
readonly paths: readonly ["id"];
|
|
643
653
|
};
|
|
644
|
-
readonly
|
|
654
|
+
readonly templatesWorkspaceHistory: {
|
|
655
|
+
readonly kind: "pathParams";
|
|
656
|
+
readonly paths: readonly ["id"];
|
|
657
|
+
};
|
|
658
|
+
readonly templatesCheckWorkspace: {
|
|
645
659
|
readonly kind: "pathPayload";
|
|
646
|
-
readonly paths: readonly ["
|
|
660
|
+
readonly paths: readonly ["id"];
|
|
647
661
|
};
|
|
648
|
-
readonly
|
|
662
|
+
readonly templatesRenderWorkspaceFixture: {
|
|
649
663
|
readonly kind: "pathPayload";
|
|
650
|
-
readonly paths: readonly ["
|
|
664
|
+
readonly paths: readonly ["id"];
|
|
651
665
|
};
|
|
652
|
-
readonly
|
|
653
|
-
readonly kind: "
|
|
654
|
-
readonly paths: readonly ["
|
|
666
|
+
readonly templatesReconcileWorkspace: {
|
|
667
|
+
readonly kind: "pathPayload";
|
|
668
|
+
readonly paths: readonly ["id"];
|
|
669
|
+
};
|
|
670
|
+
readonly templatesRestoreWorkspace: {
|
|
671
|
+
readonly kind: "pathPayload";
|
|
672
|
+
readonly paths: readonly ["id"];
|
|
655
673
|
};
|
|
656
|
-
readonly
|
|
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: {
|
|
657
683
|
readonly kind: "path";
|
|
658
|
-
readonly paths: readonly ["
|
|
684
|
+
readonly paths: readonly ["id", "publicationId"];
|
|
659
685
|
};
|
|
660
|
-
readonly
|
|
686
|
+
readonly templatesListInputContracts: {
|
|
661
687
|
readonly kind: "path";
|
|
662
|
-
readonly paths: readonly ["
|
|
688
|
+
readonly paths: readonly ["id"];
|
|
663
689
|
};
|
|
664
|
-
readonly
|
|
665
|
-
readonly kind: "
|
|
666
|
-
readonly paths: readonly ["
|
|
690
|
+
readonly templatesGetInputContract: {
|
|
691
|
+
readonly kind: "path";
|
|
692
|
+
readonly paths: readonly ["id", "inputContractId"];
|
|
667
693
|
};
|
|
668
694
|
readonly webhooksList: {
|
|
669
695
|
readonly kind: "params";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "samva",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.4.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"
|
|
138
138
|
},
|
|
139
139
|
"dependencies": {
|
|
140
|
-
"@samva/webhooks": "0.
|
|
140
|
+
"@samva/webhooks": "0.4.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": {
|