samva 0.1.1 → 0.2.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/dist/client/sdk.gen.d.ts +120 -184
- package/dist/client/types.gen.d.ts +811 -418
- package/dist/{client-DVALvDUe.js → client-BqkU-sFv.js} +937 -576
- package/dist/effect/api-keys.js +1 -1
- package/dist/effect/campaigns.d.ts +98 -7
- package/dist/effect/campaigns.js +1 -1
- package/dist/effect/client.js +1 -1
- package/dist/effect/contacts.d.ts +16 -94
- package/dist/effect/contacts.js +1 -1
- package/dist/effect/conversations.d.ts +65 -50
- package/dist/effect/conversations.js +1 -1
- package/dist/effect/design.js +1 -1
- package/dist/effect/email.d.ts +107 -67
- package/dist/effect/email.js +20 -18
- package/dist/effect/generated.d.ts +11823 -11603
- package/dist/effect/index.js +1 -1
- package/dist/effect/messages.js +1 -1
- package/dist/effect/operations.d.ts +3 -3
- package/dist/effect/operations.js +1 -1
- package/dist/effect/organizations.d.ts +1 -1
- package/dist/effect/organizations.js +1 -1
- package/dist/effect/scheduled-messages.d.ts +0 -48
- package/dist/effect/scheduled-messages.js +1 -1
- package/dist/effect/templates.d.ts +262 -1018
- package/dist/effect/templates.js +26 -18
- package/dist/effect/webhooks.d.ts +6 -6
- package/dist/effect/webhooks.js +2 -2
- package/dist/index.js +1 -1
- package/dist/{operation-UtKNITtG.js → operation-Ccqh_yxb.js} +48 -25
- package/dist/promises/index.d.ts +3 -1
- package/dist/promises/index.js +1 -1
- package/dist/promises/types.gen.d.ts +1 -1
- package/dist/{promises-QxEfMTho.js → promises-Dgv8UmCC.js} +319 -153
- package/dist/service-map.d.ts +66 -40
- package/package.json +4 -4
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";
|
|
@@ -155,13 +156,17 @@ export declare const SDK_SERVICE_OPERATIONS: {
|
|
|
155
156
|
readonly remove: "templatesRemove";
|
|
156
157
|
readonly update: "templatesUpdate";
|
|
157
158
|
readonly approve: "templatesApprove";
|
|
158
|
-
readonly
|
|
159
|
-
readonly
|
|
160
|
-
readonly
|
|
161
|
-
readonly
|
|
162
|
-
readonly
|
|
163
|
-
readonly
|
|
164
|
-
readonly
|
|
159
|
+
readonly openDocument: "templateDocumentsBootstrap";
|
|
160
|
+
readonly getDocument: "templateDocumentsGet";
|
|
161
|
+
readonly replaceDocument: "templateDocumentsReplace";
|
|
162
|
+
readonly saveDocument: "templateDocumentsSave";
|
|
163
|
+
readonly renderDocument: "templateDocumentsRender";
|
|
164
|
+
readonly checkDocumentSpam: "templateDocumentsSpamCheck";
|
|
165
|
+
readonly sendDocumentTest: "templateDocumentsTestSend";
|
|
166
|
+
readonly listDocumentVersions: "templateDocumentsVersions";
|
|
167
|
+
readonly publishDocument: "templateDocumentsPublish";
|
|
168
|
+
readonly unpublishDocument: "templateDocumentsUnpublish";
|
|
169
|
+
readonly restoreDocument: "templateDocumentsRestore";
|
|
165
170
|
};
|
|
166
171
|
readonly webhooks: {
|
|
167
172
|
readonly list: "webhooksList";
|
|
@@ -299,14 +304,11 @@ export declare const SDK_OPERATION_CALLS: {
|
|
|
299
304
|
readonly emailAddDomain: {
|
|
300
305
|
readonly kind: "payload";
|
|
301
306
|
};
|
|
302
|
-
readonly
|
|
303
|
-
readonly kind: "idempotentPayload";
|
|
304
|
-
};
|
|
305
|
-
readonly emailVerifyDomain: {
|
|
307
|
+
readonly emailGetDomainVerification: {
|
|
306
308
|
readonly kind: "path";
|
|
307
309
|
readonly paths: readonly ["id"];
|
|
308
310
|
};
|
|
309
|
-
readonly
|
|
311
|
+
readonly emailAdvanceDomainVerification: {
|
|
310
312
|
readonly kind: "path";
|
|
311
313
|
readonly paths: readonly ["id"];
|
|
312
314
|
};
|
|
@@ -354,19 +356,27 @@ export declare const SDK_OPERATION_CALLS: {
|
|
|
354
356
|
readonly kind: "pathPayload";
|
|
355
357
|
readonly paths: readonly ["id"];
|
|
356
358
|
};
|
|
357
|
-
readonly
|
|
359
|
+
readonly emailEnableCustomTracking: {
|
|
360
|
+
readonly kind: "pathPayload";
|
|
361
|
+
readonly paths: readonly ["id"];
|
|
362
|
+
};
|
|
363
|
+
readonly emailGetCustomTracking: {
|
|
358
364
|
readonly kind: "path";
|
|
359
365
|
readonly paths: readonly ["id"];
|
|
360
366
|
};
|
|
361
|
-
readonly
|
|
362
|
-
readonly kind: "
|
|
367
|
+
readonly emailGetCustomTrackingDomainConnect: {
|
|
368
|
+
readonly kind: "path";
|
|
363
369
|
readonly paths: readonly ["id"];
|
|
364
370
|
};
|
|
365
|
-
readonly
|
|
371
|
+
readonly emailBuildCustomTrackingDomainConnectApplyUrl: {
|
|
366
372
|
readonly kind: "path";
|
|
367
373
|
readonly paths: readonly ["id"];
|
|
368
374
|
};
|
|
369
|
-
readonly
|
|
375
|
+
readonly emailCompleteCustomTrackingDomainConnect: {
|
|
376
|
+
readonly kind: "pathPayload";
|
|
377
|
+
readonly paths: readonly ["id"];
|
|
378
|
+
};
|
|
379
|
+
readonly emailDisableCustomTracking: {
|
|
370
380
|
readonly kind: "path";
|
|
371
381
|
readonly paths: readonly ["id"];
|
|
372
382
|
};
|
|
@@ -586,32 +596,48 @@ export declare const SDK_OPERATION_CALLS: {
|
|
|
586
596
|
readonly kind: "pathPayload";
|
|
587
597
|
readonly paths: readonly ["id"];
|
|
588
598
|
};
|
|
589
|
-
readonly
|
|
590
|
-
readonly kind: "
|
|
591
|
-
readonly paths: readonly ["id"];
|
|
599
|
+
readonly templateDocumentsBootstrap: {
|
|
600
|
+
readonly kind: "payload";
|
|
592
601
|
};
|
|
593
|
-
readonly
|
|
602
|
+
readonly templateDocumentsGet: {
|
|
594
603
|
readonly kind: "path";
|
|
595
|
-
readonly paths: readonly ["
|
|
604
|
+
readonly paths: readonly ["templateId"];
|
|
596
605
|
};
|
|
597
|
-
readonly
|
|
598
|
-
readonly kind: "
|
|
599
|
-
readonly paths: readonly ["
|
|
606
|
+
readonly templateDocumentsReplace: {
|
|
607
|
+
readonly kind: "pathPayload";
|
|
608
|
+
readonly paths: readonly ["templateId"];
|
|
600
609
|
};
|
|
601
|
-
readonly
|
|
610
|
+
readonly templateDocumentsSave: {
|
|
611
|
+
readonly kind: "pathPayload";
|
|
612
|
+
readonly paths: readonly ["templateId"];
|
|
613
|
+
};
|
|
614
|
+
readonly templateDocumentsRender: {
|
|
615
|
+
readonly kind: "pathPayload";
|
|
616
|
+
readonly paths: readonly ["templateId"];
|
|
617
|
+
};
|
|
618
|
+
readonly templateDocumentsSpamCheck: {
|
|
619
|
+
readonly kind: "pathPayload";
|
|
620
|
+
readonly paths: readonly ["templateId"];
|
|
621
|
+
};
|
|
622
|
+
readonly templateDocumentsTestSend: {
|
|
623
|
+
readonly kind: "pathPayload";
|
|
624
|
+
readonly paths: readonly ["templateId"];
|
|
625
|
+
};
|
|
626
|
+
readonly templateDocumentsVersions: {
|
|
602
627
|
readonly kind: "path";
|
|
603
|
-
readonly paths: readonly ["
|
|
628
|
+
readonly paths: readonly ["templateId"];
|
|
604
629
|
};
|
|
605
|
-
readonly
|
|
630
|
+
readonly templateDocumentsPublish: {
|
|
606
631
|
readonly kind: "path";
|
|
607
|
-
readonly paths: readonly ["
|
|
632
|
+
readonly paths: readonly ["templateId"];
|
|
608
633
|
};
|
|
609
|
-
readonly
|
|
634
|
+
readonly templateDocumentsUnpublish: {
|
|
610
635
|
readonly kind: "path";
|
|
611
|
-
readonly paths: readonly ["
|
|
636
|
+
readonly paths: readonly ["templateId"];
|
|
612
637
|
};
|
|
613
|
-
readonly
|
|
614
|
-
readonly kind: "
|
|
638
|
+
readonly templateDocumentsRestore: {
|
|
639
|
+
readonly kind: "pathPayload";
|
|
640
|
+
readonly paths: readonly ["templateId", "versionId"];
|
|
615
641
|
};
|
|
616
642
|
readonly webhooksList: {
|
|
617
643
|
readonly kind: "params";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "samva",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.2.0",
|
|
4
4
|
"description": "TypeScript SDK for the Samva messaging and billing APIs",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"api-client",
|
|
@@ -121,8 +121,8 @@
|
|
|
121
121
|
"build": "NODE_OPTIONS=\"$NODE_OPTIONS --max-old-space-size=8192\" tsdown && tsc --project tsconfig.build.json",
|
|
122
122
|
"prepack": "bun run build",
|
|
123
123
|
"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",
|
|
124
|
+
"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",
|
|
125
|
+
"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
126
|
"generate": "bun generate:openapi && bun generate:promises && bun generate:effect",
|
|
127
127
|
"test:generation": "bun scripts/check-generation.ts",
|
|
128
128
|
"test:packed": "bun run build && bun scripts/test-packed-consumers.ts",
|
|
@@ -132,7 +132,7 @@
|
|
|
132
132
|
"typecheck": "tsgo --noEmit"
|
|
133
133
|
},
|
|
134
134
|
"dependencies": {
|
|
135
|
-
"@samva/webhooks": "0.
|
|
135
|
+
"@samva/webhooks": "0.2.0"
|
|
136
136
|
},
|
|
137
137
|
"devDependencies": {
|
|
138
138
|
"@effect/openapi-generator": "4.0.0-beta.102",
|