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.
Files changed (49) hide show
  1. package/AGENTS.md +1 -1
  2. package/README.md +5 -1
  3. package/dist/client/sdk.gen.d.ts +167 -184
  4. package/dist/client/types.gen.d.ts +1362 -662
  5. package/dist/{client-BOghX8fr.js → client-BmZK_uCt.js} +1797 -935
  6. package/dist/client-attribution-BslSOa_8.js +9 -0
  7. package/dist/client-attribution.d.ts +2 -0
  8. package/dist/effect/api-keys.d.ts +51 -51
  9. package/dist/effect/api-keys.js +1 -1
  10. package/dist/effect/campaigns.d.ts +253 -219
  11. package/dist/effect/campaigns.js +1 -1
  12. package/dist/effect/categories.d.ts +6 -6
  13. package/dist/effect/client.js +1 -1
  14. package/dist/effect/contacts.d.ts +225 -225
  15. package/dist/effect/contacts.js +1 -1
  16. package/dist/effect/conversations.d.ts +293 -293
  17. package/dist/effect/conversations.js +1 -1
  18. package/dist/effect/design.d.ts +76 -76
  19. package/dist/effect/design.js +1 -1
  20. package/dist/effect/email.d.ts +225 -213
  21. package/dist/effect/email.js +2 -2
  22. package/dist/effect/generated.d.ts +12174 -11888
  23. package/dist/effect/index.js +1 -1
  24. package/dist/effect/internal/client.d.ts +1 -1
  25. package/dist/effect/internal/operation.d.ts +20 -19
  26. package/dist/effect/media.d.ts +9 -9
  27. package/dist/effect/media.js +1 -1
  28. package/dist/effect/messages.d.ts +64 -61
  29. package/dist/effect/messages.js +1 -1
  30. package/dist/effect/operations.d.ts +17 -17
  31. package/dist/effect/operations.js +1 -1
  32. package/dist/effect/organizations.d.ts +162 -162
  33. package/dist/effect/organizations.js +1 -1
  34. package/dist/effect/runtime.d.ts +0 -2
  35. package/dist/effect/scheduled-messages.d.ts +290 -276
  36. package/dist/effect/scheduled-messages.js +1 -1
  37. package/dist/effect/templates.d.ts +1371 -1554
  38. package/dist/effect/templates.js +40 -30
  39. package/dist/effect/webhooks.d.ts +47 -47
  40. package/dist/effect/webhooks.js +2 -2
  41. package/dist/index.js +1 -1
  42. package/dist/{normalize-BKFjbR9t.js → normalize-BiIJnycv.js} +2 -3
  43. package/dist/{operation-C2Q4cFJL.js → operation-B1knNlxk.js} +65 -38
  44. package/dist/promises/index.d.ts +10 -8
  45. package/dist/promises/index.js +1 -1
  46. package/dist/promises/types.gen.d.ts +1 -1
  47. package/dist/{promises-oiy7mOyu.js → promises-n1opem5V.js} +293 -262
  48. package/dist/service-map.d.ts +70 -44
  49. package/package.json +13 -14
@@ -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 approve: "templatesApprove";
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";
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: "payload";
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 templatesApprove: {
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 templateDocumentsBootstrap: {
626
- readonly kind: "payload";
634
+ readonly templatesPatchWorkspace: {
635
+ readonly kind: "pathPayload";
636
+ readonly paths: readonly ["id"];
627
637
  };
628
- readonly templateDocumentsGet: {
629
- readonly kind: "path";
630
- readonly paths: readonly ["templateId"];
638
+ readonly templatesResolveWorkspaceConflict: {
639
+ readonly kind: "pathPayload";
640
+ readonly paths: readonly ["id"];
631
641
  };
632
- readonly templateDocumentsReplace: {
642
+ readonly templatesAttachWorkspaceResource: {
633
643
  readonly kind: "pathPayload";
634
- readonly paths: readonly ["templateId"];
644
+ readonly paths: readonly ["id"];
635
645
  };
636
- readonly templateDocumentsSave: {
646
+ readonly templatesRemoveWorkspaceResource: {
637
647
  readonly kind: "pathPayload";
638
- readonly paths: readonly ["templateId"];
648
+ readonly paths: readonly ["id", "resourceId"];
639
649
  };
640
- readonly templateDocumentsRender: {
650
+ readonly templatesDiffWorkspace: {
641
651
  readonly kind: "pathPayload";
642
- readonly paths: readonly ["templateId"];
652
+ readonly paths: readonly ["id"];
643
653
  };
644
- readonly templateDocumentsSpamCheck: {
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 ["templateId"];
660
+ readonly paths: readonly ["id"];
647
661
  };
648
- readonly templateDocumentsTestSend: {
662
+ readonly templatesRenderWorkspaceFixture: {
649
663
  readonly kind: "pathPayload";
650
- readonly paths: readonly ["templateId"];
664
+ readonly paths: readonly ["id"];
651
665
  };
652
- readonly templateDocumentsVersions: {
653
- readonly kind: "path";
654
- readonly paths: readonly ["templateId"];
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 templateDocumentsPublish: {
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 ["templateId"];
684
+ readonly paths: readonly ["id", "publicationId"];
659
685
  };
660
- readonly templateDocumentsUnpublish: {
686
+ readonly templatesListInputContracts: {
661
687
  readonly kind: "path";
662
- readonly paths: readonly ["templateId"];
688
+ readonly paths: readonly ["id"];
663
689
  };
664
- readonly templateDocumentsRestore: {
665
- readonly kind: "pathPayload";
666
- readonly paths: readonly ["templateId", "versionId"];
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.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": "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",
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": "tsgo --noEmit --project tests/parity/tsconfig.json",
137
- "typecheck": "tsgo --noEmit"
136
+ "test:types": "tsc --noEmit --project tests/parity/tsconfig.json",
137
+ "typecheck": "tsc --noEmit"
138
138
  },
139
139
  "dependencies": {
140
- "@samva/webhooks": "0.3.0"
140
+ "@samva/webhooks": "0.4.0"
141
141
  },
142
142
  "devDependencies": {
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",
146
- "@hey-api/openapi-ts": "0.99.0",
147
- "@types/node": "^26.1.1",
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": "^6.0.3",
151
- "vitest": "^4.1.10"
149
+ "typescript": "^7.0.2",
150
+ "vitest": "^4.1.11"
152
151
  },
153
152
  "peerDependencies": {
154
- "effect": "4.0.0-rc.111"
153
+ "effect": "4.0.0-rc.112"
155
154
  },
156
155
  "peerDependenciesMeta": {
157
156
  "effect": {