samva 0.5.0 → 0.7.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 +3 -2
- package/README.md +14 -4
- package/dist/{categories-B9Nw2v_F.js → categories-DvsHUJtX.js} +32 -8
- package/dist/client/sdk.gen.d.ts +493 -88
- package/dist/client/types.gen.d.ts +3136 -416
- package/dist/{client-B7gEkvEq.js → client-5O8KsY5Z.js} +2638 -902
- package/dist/{client-attribution-B2yJBXdZ.js → client-attribution-27MNycCV.js} +2 -2
- package/dist/effect/analytics.d.ts +66 -0
- package/dist/effect/analytics.js +21 -0
- package/dist/effect/api-keys.d.ts +198 -34
- package/dist/effect/api-keys.js +1 -1
- package/dist/effect/attachments.d.ts +53 -0
- package/dist/effect/attachments.js +17 -0
- package/dist/effect/brands.d.ts +212 -0
- package/dist/effect/brands.js +24 -0
- package/dist/effect/campaigns.d.ts +36 -18
- package/dist/effect/campaigns.js +1 -1
- package/dist/effect/categories.d.ts +3 -3
- package/dist/effect/categories.js +1 -1
- package/dist/effect/client.js +1 -1
- package/dist/effect/contact-groups.d.ts +375 -0
- package/dist/effect/contact-groups.js +29 -0
- package/dist/effect/contacts.d.ts +35 -19
- package/dist/effect/contacts.js +1 -1
- package/dist/effect/conversations.d.ts +188 -47
- package/dist/effect/conversations.js +1 -1
- package/dist/effect/custom-fields.d.ts +111 -0
- package/dist/effect/custom-fields.js +17 -0
- package/dist/effect/email.d.ts +268 -121
- package/dist/effect/email.js +2 -2
- package/dist/effect/generated-metadata.d.ts +20 -4
- package/dist/effect/generated.d.ts +13934 -7968
- package/dist/effect/index.d.ts +7 -2
- package/dist/effect/index.js +9 -4
- package/dist/effect/internal/operation.d.ts +121 -27
- package/dist/effect/media.d.ts +5 -5
- package/dist/effect/media.js +1 -1
- package/dist/effect/messages.d.ts +319 -73
- package/dist/effect/messages.js +1 -1
- package/dist/effect/operations.d.ts +6 -6
- package/dist/effect/operations.js +1 -1
- package/dist/effect/organizations.d.ts +7 -374
- package/dist/effect/organizations.js +2 -4
- package/dist/effect/retry.js +1 -1
- package/dist/effect/scheduled-messages.d.ts +7 -7
- package/dist/effect/scheduled-messages.js +1 -1
- package/dist/effect/templates.d.ts +263 -305
- package/dist/effect/templates.js +7 -5
- package/dist/effect/unsubscribe-groups.d.ts +161 -0
- package/dist/effect/unsubscribe-groups.js +25 -0
- package/dist/effect/webhooks.d.ts +18 -18
- package/dist/effect/webhooks.js +2 -2
- package/dist/index.js +2 -2
- package/dist/{normalize-BiIJnycv.js → normalize-B79uJIeb.js} +13 -14
- package/dist/normalize.d.ts +3 -7
- package/dist/{operation-B4FjN6wq.js → operation-Cb5V9FJ7.js} +123 -11
- package/dist/promises/errors.gen.d.ts +50 -43
- package/dist/promises/index.d.ts +20 -6
- package/dist/promises/index.js +2 -2
- package/dist/promises/types.gen.d.ts +1 -1
- package/dist/{promises-CP_nxUus.js → promises-C2yyw-pf.js} +1582 -368
- package/dist/service-map.d.ts +189 -12
- package/package.json +32 -12
- package/dist/effect/design.d.ts +0 -209
- package/dist/effect/design.js +0 -13
package/dist/service-map.d.ts
CHANGED
|
@@ -4,6 +4,14 @@
|
|
|
4
4
|
* is visible in review and test failures.
|
|
5
5
|
*/
|
|
6
6
|
export declare const SDK_SERVICE_OPERATIONS: {
|
|
7
|
+
readonly analytics: {
|
|
8
|
+
readonly getStats: "analyticsGetStats";
|
|
9
|
+
readonly getChannelStats: "analyticsGetChannelStats";
|
|
10
|
+
readonly getTopContacts: "analyticsGetTopContacts";
|
|
11
|
+
readonly getHourlyDistribution: "analyticsGetHourlyDistribution";
|
|
12
|
+
readonly getDeliveryMetrics: "analyticsGetDeliveryMetrics";
|
|
13
|
+
readonly exportData: "analyticsExportData";
|
|
14
|
+
};
|
|
7
15
|
readonly apiKeys: {
|
|
8
16
|
readonly list: "apiKeysList";
|
|
9
17
|
readonly create: "apiKeysCreate";
|
|
@@ -15,6 +23,20 @@ export declare const SDK_SERVICE_OPERATIONS: {
|
|
|
15
23
|
readonly getStats: "apiKeysGetStats";
|
|
16
24
|
readonly getActivity: "apiKeysGetActivity";
|
|
17
25
|
};
|
|
26
|
+
readonly attachments: {
|
|
27
|
+
readonly list: "attachmentsList";
|
|
28
|
+
readonly getById: "attachmentsGetById";
|
|
29
|
+
readonly remove: "attachmentsRemove";
|
|
30
|
+
readonly downloadUrl: "attachmentsDownloadUrl";
|
|
31
|
+
};
|
|
32
|
+
readonly brands: {
|
|
33
|
+
readonly list: "brandsList";
|
|
34
|
+
readonly create: "brandsCreate";
|
|
35
|
+
readonly get: "brandsGet";
|
|
36
|
+
readonly update: "brandsUpdate";
|
|
37
|
+
readonly remove: "brandsRemove";
|
|
38
|
+
readonly setDefault: "brandsSetDefault";
|
|
39
|
+
};
|
|
18
40
|
readonly campaigns: {
|
|
19
41
|
readonly list: "campaignsList";
|
|
20
42
|
readonly create: "campaignsCreate";
|
|
@@ -29,6 +51,18 @@ export declare const SDK_SERVICE_OPERATIONS: {
|
|
|
29
51
|
readonly cancelRun: "campaignsCancelRun";
|
|
30
52
|
readonly listRecipients: "campaignsListRecipients";
|
|
31
53
|
};
|
|
54
|
+
readonly contactGroups: {
|
|
55
|
+
readonly list: "contactGroupsList";
|
|
56
|
+
readonly create: "contactGroupsCreate";
|
|
57
|
+
readonly getById: "contactGroupsGetById";
|
|
58
|
+
readonly update: "contactGroupsUpdate";
|
|
59
|
+
readonly remove: "contactGroupsRemove";
|
|
60
|
+
readonly preview: "contactGroupsPreview";
|
|
61
|
+
readonly evaluateDynamic: "contactGroupsEvaluateDynamic";
|
|
62
|
+
readonly getMembers: "contactGroupsGetMembers";
|
|
63
|
+
readonly addMembers: "contactGroupsAddMembers";
|
|
64
|
+
readonly removeMembers: "contactGroupsRemoveMembers";
|
|
65
|
+
};
|
|
32
66
|
readonly contacts: {
|
|
33
67
|
readonly list: "contactsList";
|
|
34
68
|
readonly create: "contactsCreate";
|
|
@@ -55,9 +89,11 @@ export declare const SDK_SERVICE_OPERATIONS: {
|
|
|
55
89
|
readonly addContacts: "conversationsAddContacts";
|
|
56
90
|
readonly removeContacts: "conversationsRemoveContacts";
|
|
57
91
|
};
|
|
58
|
-
readonly
|
|
59
|
-
readonly
|
|
60
|
-
readonly
|
|
92
|
+
readonly customFields: {
|
|
93
|
+
readonly list: "customFieldsList";
|
|
94
|
+
readonly create: "customFieldsCreate";
|
|
95
|
+
readonly update: "customFieldsUpdate";
|
|
96
|
+
readonly remove: "customFieldsRemove";
|
|
61
97
|
};
|
|
62
98
|
readonly email: {
|
|
63
99
|
readonly send: "messagesSend";
|
|
@@ -146,7 +182,6 @@ export declare const SDK_SERVICE_OPERATIONS: {
|
|
|
146
182
|
readonly retry: "operationsRetry";
|
|
147
183
|
};
|
|
148
184
|
readonly organizations: {
|
|
149
|
-
readonly bootstrap: "organizationsBootstrap";
|
|
150
185
|
readonly create: "organizationsCreate";
|
|
151
186
|
readonly get: "organizationsGet";
|
|
152
187
|
readonly update: "organizationsUpdate";
|
|
@@ -163,7 +198,7 @@ export declare const SDK_SERVICE_OPERATIONS: {
|
|
|
163
198
|
readonly templates: {
|
|
164
199
|
readonly list: "templatesList";
|
|
165
200
|
readonly create: "templatesCreate";
|
|
166
|
-
readonly
|
|
201
|
+
readonly addEntry: "templatesAddEntry";
|
|
167
202
|
readonly listFamilies: "templatesListFamilies";
|
|
168
203
|
readonly createFamily: "templatesCreateFamily";
|
|
169
204
|
readonly getFamily: "templatesGetFamily";
|
|
@@ -179,6 +214,7 @@ export declare const SDK_SERVICE_OPERATIONS: {
|
|
|
179
214
|
readonly getGitRepository: "templatesGetGitRepository";
|
|
180
215
|
readonly issueGitCredential: "templatesIssueGitCredential";
|
|
181
216
|
readonly patchWorkspace: "templatesPatchWorkspace";
|
|
217
|
+
readonly putWorkspaceAsset: "templatesPutWorkspaceAsset";
|
|
182
218
|
readonly resolveWorkspaceConflict: "templatesResolveWorkspaceConflict";
|
|
183
219
|
readonly attachWorkspaceResource: "templatesAttachWorkspaceResource";
|
|
184
220
|
readonly removeWorkspaceResource: "templatesRemoveWorkspaceResource";
|
|
@@ -194,6 +230,16 @@ export declare const SDK_SERVICE_OPERATIONS: {
|
|
|
194
230
|
readonly listInputContracts: "templatesListInputContracts";
|
|
195
231
|
readonly getInputContract: "templatesGetInputContract";
|
|
196
232
|
};
|
|
233
|
+
readonly unsubscribeGroups: {
|
|
234
|
+
readonly list: "unsubscribeList";
|
|
235
|
+
readonly create: "unsubscribeCreate";
|
|
236
|
+
readonly update: "unsubscribeUpdate";
|
|
237
|
+
readonly remove: "unsubscribeRemove";
|
|
238
|
+
readonly listMembers: "unsubscribeListMembers";
|
|
239
|
+
readonly addEmails: "unsubscribeAddEmails";
|
|
240
|
+
readonly removeEmails: "unsubscribeRemoveEmails";
|
|
241
|
+
readonly checkSubscription: "unsubscribeCheckSubscription";
|
|
242
|
+
};
|
|
197
243
|
readonly webhooks: {
|
|
198
244
|
readonly list: "webhooksList";
|
|
199
245
|
readonly create: "webhooksCreate";
|
|
@@ -209,12 +255,28 @@ export declare const SDK_SERVICE_OPERATIONS: {
|
|
|
209
255
|
};
|
|
210
256
|
/** How each generated Effect operation is adapted to the Promise facade's direct input shape. */
|
|
211
257
|
export declare const SDK_OPERATION_CALLS: {
|
|
212
|
-
readonly
|
|
258
|
+
readonly brandsList: {
|
|
213
259
|
readonly kind: "none";
|
|
214
260
|
};
|
|
215
|
-
readonly
|
|
261
|
+
readonly brandsCreate: {
|
|
216
262
|
readonly kind: "payload";
|
|
217
263
|
};
|
|
264
|
+
readonly brandsGet: {
|
|
265
|
+
readonly kind: "path";
|
|
266
|
+
readonly paths: readonly ["slug"];
|
|
267
|
+
};
|
|
268
|
+
readonly brandsUpdate: {
|
|
269
|
+
readonly kind: "pathPayload";
|
|
270
|
+
readonly paths: readonly ["slug"];
|
|
271
|
+
};
|
|
272
|
+
readonly brandsRemove: {
|
|
273
|
+
readonly kind: "path";
|
|
274
|
+
readonly paths: readonly ["slug"];
|
|
275
|
+
};
|
|
276
|
+
readonly brandsSetDefault: {
|
|
277
|
+
readonly kind: "path";
|
|
278
|
+
readonly paths: readonly ["slug"];
|
|
279
|
+
};
|
|
218
280
|
readonly operationsList: {
|
|
219
281
|
readonly kind: "params";
|
|
220
282
|
};
|
|
@@ -640,8 +702,9 @@ export declare const SDK_OPERATION_CALLS: {
|
|
|
640
702
|
readonly templatesCreate: {
|
|
641
703
|
readonly kind: "payload";
|
|
642
704
|
};
|
|
643
|
-
readonly
|
|
644
|
-
readonly kind: "
|
|
705
|
+
readonly templatesAddEntry: {
|
|
706
|
+
readonly kind: "pathPayload";
|
|
707
|
+
readonly paths: readonly ["projectId"];
|
|
645
708
|
};
|
|
646
709
|
readonly templatesListFamilies: {
|
|
647
710
|
readonly kind: "params";
|
|
@@ -701,6 +764,10 @@ export declare const SDK_OPERATION_CALLS: {
|
|
|
701
764
|
readonly kind: "pathPayload";
|
|
702
765
|
readonly paths: readonly ["id"];
|
|
703
766
|
};
|
|
767
|
+
readonly templatesPutWorkspaceAsset: {
|
|
768
|
+
readonly kind: "pathPayload";
|
|
769
|
+
readonly paths: readonly ["id"];
|
|
770
|
+
};
|
|
704
771
|
readonly templatesResolveWorkspaceConflict: {
|
|
705
772
|
readonly kind: "pathPayload";
|
|
706
773
|
readonly paths: readonly ["id"];
|
|
@@ -795,9 +862,6 @@ export declare const SDK_OPERATION_CALLS: {
|
|
|
795
862
|
readonly kind: "path";
|
|
796
863
|
readonly paths: readonly ["webhookId"];
|
|
797
864
|
};
|
|
798
|
-
readonly organizationsBootstrap: {
|
|
799
|
-
readonly kind: "payload";
|
|
800
|
-
};
|
|
801
865
|
readonly organizationsCreate: {
|
|
802
866
|
readonly kind: "payload";
|
|
803
867
|
};
|
|
@@ -847,4 +911,117 @@ export declare const SDK_OPERATION_CALLS: {
|
|
|
847
911
|
readonly kind: "pathParams";
|
|
848
912
|
readonly paths: readonly ["id"];
|
|
849
913
|
};
|
|
914
|
+
readonly attachmentsList: {
|
|
915
|
+
readonly kind: "params";
|
|
916
|
+
};
|
|
917
|
+
readonly attachmentsGetById: {
|
|
918
|
+
readonly kind: "path";
|
|
919
|
+
readonly paths: readonly ["id"];
|
|
920
|
+
};
|
|
921
|
+
readonly attachmentsRemove: {
|
|
922
|
+
readonly kind: "path";
|
|
923
|
+
readonly paths: readonly ["id"];
|
|
924
|
+
};
|
|
925
|
+
readonly attachmentsDownloadUrl: {
|
|
926
|
+
readonly kind: "pathParams";
|
|
927
|
+
readonly paths: readonly ["id"];
|
|
928
|
+
};
|
|
929
|
+
readonly contactGroupsList: {
|
|
930
|
+
readonly kind: "params";
|
|
931
|
+
};
|
|
932
|
+
readonly contactGroupsCreate: {
|
|
933
|
+
readonly kind: "payload";
|
|
934
|
+
};
|
|
935
|
+
readonly contactGroupsGetById: {
|
|
936
|
+
readonly kind: "path";
|
|
937
|
+
readonly paths: readonly ["id"];
|
|
938
|
+
};
|
|
939
|
+
readonly contactGroupsUpdate: {
|
|
940
|
+
readonly kind: "pathPayload";
|
|
941
|
+
readonly paths: readonly ["id"];
|
|
942
|
+
};
|
|
943
|
+
readonly contactGroupsRemove: {
|
|
944
|
+
readonly kind: "path";
|
|
945
|
+
readonly paths: readonly ["id"];
|
|
946
|
+
};
|
|
947
|
+
readonly contactGroupsPreview: {
|
|
948
|
+
readonly kind: "payload";
|
|
949
|
+
};
|
|
950
|
+
readonly contactGroupsEvaluateDynamic: {
|
|
951
|
+
readonly kind: "path";
|
|
952
|
+
readonly paths: readonly ["groupId"];
|
|
953
|
+
};
|
|
954
|
+
readonly contactGroupsGetMembers: {
|
|
955
|
+
readonly kind: "pathParams";
|
|
956
|
+
readonly paths: readonly ["groupId"];
|
|
957
|
+
};
|
|
958
|
+
readonly contactGroupsAddMembers: {
|
|
959
|
+
readonly kind: "pathPayload";
|
|
960
|
+
readonly paths: readonly ["groupId"];
|
|
961
|
+
};
|
|
962
|
+
readonly contactGroupsRemoveMembers: {
|
|
963
|
+
readonly kind: "pathPayload";
|
|
964
|
+
readonly paths: readonly ["groupId"];
|
|
965
|
+
};
|
|
966
|
+
readonly customFieldsList: {
|
|
967
|
+
readonly kind: "params";
|
|
968
|
+
};
|
|
969
|
+
readonly customFieldsCreate: {
|
|
970
|
+
readonly kind: "payload";
|
|
971
|
+
};
|
|
972
|
+
readonly customFieldsUpdate: {
|
|
973
|
+
readonly kind: "pathPayload";
|
|
974
|
+
readonly paths: readonly ["id"];
|
|
975
|
+
};
|
|
976
|
+
readonly customFieldsRemove: {
|
|
977
|
+
readonly kind: "path";
|
|
978
|
+
readonly paths: readonly ["id"];
|
|
979
|
+
};
|
|
980
|
+
readonly unsubscribeList: {
|
|
981
|
+
readonly kind: "params";
|
|
982
|
+
};
|
|
983
|
+
readonly unsubscribeCreate: {
|
|
984
|
+
readonly kind: "payload";
|
|
985
|
+
};
|
|
986
|
+
readonly unsubscribeUpdate: {
|
|
987
|
+
readonly kind: "pathPayload";
|
|
988
|
+
readonly paths: readonly ["id"];
|
|
989
|
+
};
|
|
990
|
+
readonly unsubscribeRemove: {
|
|
991
|
+
readonly kind: "path";
|
|
992
|
+
readonly paths: readonly ["id"];
|
|
993
|
+
};
|
|
994
|
+
readonly unsubscribeListMembers: {
|
|
995
|
+
readonly kind: "pathParams";
|
|
996
|
+
readonly paths: readonly ["groupId"];
|
|
997
|
+
};
|
|
998
|
+
readonly unsubscribeAddEmails: {
|
|
999
|
+
readonly kind: "pathPayload";
|
|
1000
|
+
readonly paths: readonly ["groupId"];
|
|
1001
|
+
};
|
|
1002
|
+
readonly unsubscribeRemoveEmails: {
|
|
1003
|
+
readonly kind: "pathPayload";
|
|
1004
|
+
readonly paths: readonly ["groupId"];
|
|
1005
|
+
};
|
|
1006
|
+
readonly unsubscribeCheckSubscription: {
|
|
1007
|
+
readonly kind: "params";
|
|
1008
|
+
};
|
|
1009
|
+
readonly analyticsGetStats: {
|
|
1010
|
+
readonly kind: "params";
|
|
1011
|
+
};
|
|
1012
|
+
readonly analyticsGetChannelStats: {
|
|
1013
|
+
readonly kind: "params";
|
|
1014
|
+
};
|
|
1015
|
+
readonly analyticsGetTopContacts: {
|
|
1016
|
+
readonly kind: "params";
|
|
1017
|
+
};
|
|
1018
|
+
readonly analyticsGetHourlyDistribution: {
|
|
1019
|
+
readonly kind: "params";
|
|
1020
|
+
};
|
|
1021
|
+
readonly analyticsGetDeliveryMetrics: {
|
|
1022
|
+
readonly kind: "params";
|
|
1023
|
+
};
|
|
1024
|
+
readonly analyticsExportData: {
|
|
1025
|
+
readonly kind: "payload";
|
|
1026
|
+
};
|
|
850
1027
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "samva",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.7.0",
|
|
4
4
|
"description": "TypeScript SDK for the Samva email API",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"api-client",
|
|
@@ -50,10 +50,22 @@
|
|
|
50
50
|
"types": "./dist/effect/categories.d.ts",
|
|
51
51
|
"import": "./dist/effect/categories.js"
|
|
52
52
|
},
|
|
53
|
+
"./effect/analytics": {
|
|
54
|
+
"types": "./dist/effect/analytics.d.ts",
|
|
55
|
+
"import": "./dist/effect/analytics.js"
|
|
56
|
+
},
|
|
53
57
|
"./effect/api-keys": {
|
|
54
58
|
"types": "./dist/effect/api-keys.d.ts",
|
|
55
59
|
"import": "./dist/effect/api-keys.js"
|
|
56
60
|
},
|
|
61
|
+
"./effect/attachments": {
|
|
62
|
+
"types": "./dist/effect/attachments.d.ts",
|
|
63
|
+
"import": "./dist/effect/attachments.js"
|
|
64
|
+
},
|
|
65
|
+
"./effect/brands": {
|
|
66
|
+
"types": "./dist/effect/brands.d.ts",
|
|
67
|
+
"import": "./dist/effect/brands.js"
|
|
68
|
+
},
|
|
57
69
|
"./effect/campaigns": {
|
|
58
70
|
"types": "./dist/effect/campaigns.d.ts",
|
|
59
71
|
"import": "./dist/effect/campaigns.js"
|
|
@@ -62,6 +74,10 @@
|
|
|
62
74
|
"types": "./dist/effect/client.d.ts",
|
|
63
75
|
"import": "./dist/effect/client.js"
|
|
64
76
|
},
|
|
77
|
+
"./effect/contact-groups": {
|
|
78
|
+
"types": "./dist/effect/contact-groups.d.ts",
|
|
79
|
+
"import": "./dist/effect/contact-groups.js"
|
|
80
|
+
},
|
|
65
81
|
"./effect/contacts": {
|
|
66
82
|
"types": "./dist/effect/contacts.d.ts",
|
|
67
83
|
"import": "./dist/effect/contacts.js"
|
|
@@ -70,9 +86,9 @@
|
|
|
70
86
|
"types": "./dist/effect/conversations.d.ts",
|
|
71
87
|
"import": "./dist/effect/conversations.js"
|
|
72
88
|
},
|
|
73
|
-
"./effect/
|
|
74
|
-
"types": "./dist/effect/
|
|
75
|
-
"import": "./dist/effect/
|
|
89
|
+
"./effect/custom-fields": {
|
|
90
|
+
"types": "./dist/effect/custom-fields.d.ts",
|
|
91
|
+
"import": "./dist/effect/custom-fields.js"
|
|
76
92
|
},
|
|
77
93
|
"./effect/email": {
|
|
78
94
|
"types": "./dist/effect/email.d.ts",
|
|
@@ -106,6 +122,10 @@
|
|
|
106
122
|
"types": "./dist/effect/templates.d.ts",
|
|
107
123
|
"import": "./dist/effect/templates.js"
|
|
108
124
|
},
|
|
125
|
+
"./effect/unsubscribe-groups": {
|
|
126
|
+
"types": "./dist/effect/unsubscribe-groups.d.ts",
|
|
127
|
+
"import": "./dist/effect/unsubscribe-groups.js"
|
|
128
|
+
},
|
|
109
129
|
"./effect/webhooks": {
|
|
110
130
|
"types": "./dist/effect/webhooks.d.ts",
|
|
111
131
|
"import": "./dist/effect/webhooks.js"
|
|
@@ -126,7 +146,7 @@
|
|
|
126
146
|
"build": "NODE_OPTIONS=\"$NODE_OPTIONS --max-old-space-size=8192\" tsdown && tsc --project tsconfig.build.json",
|
|
127
147
|
"prepack": "bun run build",
|
|
128
148
|
"generate:openapi": "bun run scripts/openapi.ts",
|
|
129
|
-
"generate:promises": "bun run
|
|
149
|
+
"generate:promises": "bun run codegen/generate-promises.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",
|
|
130
150
|
"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
151
|
"generate": "bun generate:openapi && bun generate:promises && bun generate:effect",
|
|
132
152
|
"test:generation": "bun scripts/check-generation.ts",
|
|
@@ -137,20 +157,20 @@
|
|
|
137
157
|
"typecheck": "tsc --noEmit && tsc --noEmit -p codegen/tsconfig.json && tsc --noEmit -p tests/tsconfig.json"
|
|
138
158
|
},
|
|
139
159
|
"dependencies": {
|
|
140
|
-
"@samva/webhooks": "0.
|
|
160
|
+
"@samva/webhooks": "0.7.0"
|
|
141
161
|
},
|
|
142
162
|
"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
|
-
"@types/node": "^26.
|
|
147
|
-
"effect": "4.0.0-rc.
|
|
163
|
+
"@effect/openapi-generator": "4.0.0-rc.117",
|
|
164
|
+
"@effect/platform-node": "4.0.0-rc.117",
|
|
165
|
+
"@effect/vitest": "4.0.0-rc.117",
|
|
166
|
+
"@types/node": "^26.6.2",
|
|
167
|
+
"effect": "4.0.0-rc.117",
|
|
148
168
|
"tsdown": "^0.22.13",
|
|
149
169
|
"typescript": "^7.0.2",
|
|
150
170
|
"vitest": "^4.1.11"
|
|
151
171
|
},
|
|
152
172
|
"peerDependencies": {
|
|
153
|
-
"effect": "4.0.0-rc.
|
|
173
|
+
"effect": "4.0.0-rc.117"
|
|
154
174
|
},
|
|
155
175
|
"peerDependenciesMeta": {
|
|
156
176
|
"effect": {
|
package/dist/effect/design.d.ts
DELETED
|
@@ -1,209 +0,0 @@
|
|
|
1
|
-
export declare const get: (_?: never) => import("effect/Effect").Effect<{
|
|
2
|
-
readonly design: {
|
|
3
|
-
readonly theme?: {
|
|
4
|
-
readonly colors?: {
|
|
5
|
-
readonly [x: string]: string;
|
|
6
|
-
} | null;
|
|
7
|
-
readonly colorsDark?: {
|
|
8
|
-
readonly [x: string]: string;
|
|
9
|
-
} | null;
|
|
10
|
-
readonly radiusPx?: {
|
|
11
|
-
readonly [x: string]: number;
|
|
12
|
-
} | null;
|
|
13
|
-
readonly fontFamilies?: {
|
|
14
|
-
readonly [x: string]: {
|
|
15
|
-
readonly source: "custom" | "google" | "system";
|
|
16
|
-
readonly family: string;
|
|
17
|
-
readonly fallback: string;
|
|
18
|
-
readonly faces?: readonly {
|
|
19
|
-
readonly weight: number;
|
|
20
|
-
readonly style: "italic" | "normal";
|
|
21
|
-
readonly src: string;
|
|
22
|
-
readonly unicodeRange?: string | null;
|
|
23
|
-
}[] | null;
|
|
24
|
-
};
|
|
25
|
-
} | null;
|
|
26
|
-
readonly fontWeights?: {
|
|
27
|
-
readonly [x: string]: number;
|
|
28
|
-
} | null;
|
|
29
|
-
readonly text?: {
|
|
30
|
-
readonly [x: string]: {
|
|
31
|
-
readonly sizePx: number;
|
|
32
|
-
readonly lineHeightPx: number;
|
|
33
|
-
};
|
|
34
|
-
} | null;
|
|
35
|
-
readonly leading?: {
|
|
36
|
-
readonly [x: string]: number;
|
|
37
|
-
} | null;
|
|
38
|
-
readonly spacingPx?: number | null;
|
|
39
|
-
readonly containerPx?: {
|
|
40
|
-
readonly [x: string]: number;
|
|
41
|
-
} | null;
|
|
42
|
-
readonly tracking?: {
|
|
43
|
-
readonly [x: string]: number;
|
|
44
|
-
} | null;
|
|
45
|
-
} | null;
|
|
46
|
-
readonly assets?: {
|
|
47
|
-
readonly logoUrl?: string | null;
|
|
48
|
-
readonly logoDarkUrl?: string | null;
|
|
49
|
-
readonly iconUrl?: string | null;
|
|
50
|
-
} | null;
|
|
51
|
-
readonly footer?: {
|
|
52
|
-
readonly companyName?: string | null;
|
|
53
|
-
readonly address?: {
|
|
54
|
-
readonly street1: string;
|
|
55
|
-
readonly street2?: string | null;
|
|
56
|
-
readonly city: string;
|
|
57
|
-
readonly region: string;
|
|
58
|
-
readonly postalCode: string;
|
|
59
|
-
readonly country: string;
|
|
60
|
-
} | null;
|
|
61
|
-
readonly socialLinks?: readonly {
|
|
62
|
-
readonly label: string;
|
|
63
|
-
readonly url: string;
|
|
64
|
-
}[] | null;
|
|
65
|
-
readonly customHtml?: string | null;
|
|
66
|
-
} | null;
|
|
67
|
-
} | null;
|
|
68
|
-
readonly footerCompleteness: {
|
|
69
|
-
readonly missingAddress: boolean;
|
|
70
|
-
};
|
|
71
|
-
}, import("./generated").ForbiddenError | import("effect/unstable/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("effect/Schema").SchemaError | import("./generated").UnauthorizedError, import("./client").Service>;
|
|
72
|
-
export declare const update: (input: {
|
|
73
|
-
readonly design: {
|
|
74
|
-
readonly theme?: {
|
|
75
|
-
readonly colors?: {
|
|
76
|
-
readonly [x: string]: string | undefined;
|
|
77
|
-
} | null | undefined;
|
|
78
|
-
readonly colorsDark?: {
|
|
79
|
-
readonly [x: string]: string | undefined;
|
|
80
|
-
} | null | undefined;
|
|
81
|
-
readonly radiusPx?: {
|
|
82
|
-
readonly [x: string]: number | undefined;
|
|
83
|
-
} | null | undefined;
|
|
84
|
-
readonly fontFamilies?: {
|
|
85
|
-
readonly [x: string]: {
|
|
86
|
-
readonly source: string;
|
|
87
|
-
readonly family: string;
|
|
88
|
-
readonly fallback: string;
|
|
89
|
-
readonly faces?: readonly {
|
|
90
|
-
readonly weight: number;
|
|
91
|
-
readonly style: string;
|
|
92
|
-
readonly src: string;
|
|
93
|
-
readonly unicodeRange?: string | null | undefined;
|
|
94
|
-
}[] | null | undefined;
|
|
95
|
-
} | undefined;
|
|
96
|
-
} | null | undefined;
|
|
97
|
-
readonly fontWeights?: {
|
|
98
|
-
readonly [x: string]: number | undefined;
|
|
99
|
-
} | null | undefined;
|
|
100
|
-
readonly text?: {
|
|
101
|
-
readonly [x: string]: {
|
|
102
|
-
readonly sizePx: number;
|
|
103
|
-
readonly lineHeightPx: number;
|
|
104
|
-
} | undefined;
|
|
105
|
-
} | null | undefined;
|
|
106
|
-
readonly leading?: {
|
|
107
|
-
readonly [x: string]: number | undefined;
|
|
108
|
-
} | null | undefined;
|
|
109
|
-
readonly spacingPx?: number | null | undefined;
|
|
110
|
-
readonly containerPx?: {
|
|
111
|
-
readonly [x: string]: number | undefined;
|
|
112
|
-
} | null | undefined;
|
|
113
|
-
readonly tracking?: {
|
|
114
|
-
readonly [x: string]: number | undefined;
|
|
115
|
-
} | null | undefined;
|
|
116
|
-
} | null | undefined;
|
|
117
|
-
readonly assets?: {
|
|
118
|
-
readonly logoUrl?: string | null | undefined;
|
|
119
|
-
readonly logoDarkUrl?: string | null | undefined;
|
|
120
|
-
readonly iconUrl?: string | null | undefined;
|
|
121
|
-
} | null | undefined;
|
|
122
|
-
readonly footer?: {
|
|
123
|
-
readonly companyName?: string | null | undefined;
|
|
124
|
-
readonly address?: {
|
|
125
|
-
readonly street1: string;
|
|
126
|
-
readonly street2?: string | null | undefined;
|
|
127
|
-
readonly city: string;
|
|
128
|
-
readonly region: string;
|
|
129
|
-
readonly postalCode: string;
|
|
130
|
-
readonly country: string;
|
|
131
|
-
} | null | undefined;
|
|
132
|
-
readonly socialLinks?: readonly {
|
|
133
|
-
readonly label: string;
|
|
134
|
-
readonly url: string;
|
|
135
|
-
}[] | null | undefined;
|
|
136
|
-
readonly customHtml?: string | null | undefined;
|
|
137
|
-
} | null | undefined;
|
|
138
|
-
} | null;
|
|
139
|
-
}) => import("effect/Effect").Effect<{
|
|
140
|
-
readonly design: {
|
|
141
|
-
readonly theme?: {
|
|
142
|
-
readonly colors?: {
|
|
143
|
-
readonly [x: string]: string;
|
|
144
|
-
} | null;
|
|
145
|
-
readonly colorsDark?: {
|
|
146
|
-
readonly [x: string]: string;
|
|
147
|
-
} | null;
|
|
148
|
-
readonly radiusPx?: {
|
|
149
|
-
readonly [x: string]: number;
|
|
150
|
-
} | null;
|
|
151
|
-
readonly fontFamilies?: {
|
|
152
|
-
readonly [x: string]: {
|
|
153
|
-
readonly source: "custom" | "google" | "system";
|
|
154
|
-
readonly family: string;
|
|
155
|
-
readonly fallback: string;
|
|
156
|
-
readonly faces?: readonly {
|
|
157
|
-
readonly weight: number;
|
|
158
|
-
readonly style: "italic" | "normal";
|
|
159
|
-
readonly src: string;
|
|
160
|
-
readonly unicodeRange?: string | null;
|
|
161
|
-
}[] | null;
|
|
162
|
-
};
|
|
163
|
-
} | null;
|
|
164
|
-
readonly fontWeights?: {
|
|
165
|
-
readonly [x: string]: number;
|
|
166
|
-
} | null;
|
|
167
|
-
readonly text?: {
|
|
168
|
-
readonly [x: string]: {
|
|
169
|
-
readonly sizePx: number;
|
|
170
|
-
readonly lineHeightPx: number;
|
|
171
|
-
};
|
|
172
|
-
} | null;
|
|
173
|
-
readonly leading?: {
|
|
174
|
-
readonly [x: string]: number;
|
|
175
|
-
} | null;
|
|
176
|
-
readonly spacingPx?: number | null;
|
|
177
|
-
readonly containerPx?: {
|
|
178
|
-
readonly [x: string]: number;
|
|
179
|
-
} | null;
|
|
180
|
-
readonly tracking?: {
|
|
181
|
-
readonly [x: string]: number;
|
|
182
|
-
} | null;
|
|
183
|
-
} | null;
|
|
184
|
-
readonly assets?: {
|
|
185
|
-
readonly logoUrl?: string | null;
|
|
186
|
-
readonly logoDarkUrl?: string | null;
|
|
187
|
-
readonly iconUrl?: string | null;
|
|
188
|
-
} | null;
|
|
189
|
-
readonly footer?: {
|
|
190
|
-
readonly companyName?: string | null;
|
|
191
|
-
readonly address?: {
|
|
192
|
-
readonly street1: string;
|
|
193
|
-
readonly street2?: string | null;
|
|
194
|
-
readonly city: string;
|
|
195
|
-
readonly region: string;
|
|
196
|
-
readonly postalCode: string;
|
|
197
|
-
readonly country: string;
|
|
198
|
-
} | null;
|
|
199
|
-
readonly socialLinks?: readonly {
|
|
200
|
-
readonly label: string;
|
|
201
|
-
readonly url: string;
|
|
202
|
-
}[] | null;
|
|
203
|
-
readonly customHtml?: string | null;
|
|
204
|
-
} | null;
|
|
205
|
-
} | null;
|
|
206
|
-
readonly footerCompleteness: {
|
|
207
|
-
readonly missingAddress: boolean;
|
|
208
|
-
};
|
|
209
|
-
}, import("./generated").ForbiddenError | import("effect/unstable/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("effect/Schema").SchemaError | import("./generated").UnauthorizedError | import("./generated").ValidationError, import("./client").Service>;
|
package/dist/effect/design.js
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { t as __exportAll } from "../rolldown-runtime-D7D4PA-g.js";
|
|
2
|
-
import { n as make } from "../operation-B4FjN6wq.js";
|
|
3
|
-
//#region src/effect/design.ts
|
|
4
|
-
var design_exports = /* @__PURE__ */ __exportAll({
|
|
5
|
-
get: () => get,
|
|
6
|
-
update: () => update
|
|
7
|
-
});
|
|
8
|
-
const get = make("designGet");
|
|
9
|
-
const update = make("designUpdate");
|
|
10
|
-
//#endregion
|
|
11
|
-
export { get, design_exports as t, update };
|
|
12
|
-
|
|
13
|
-
//# sourceMappingURL=design.js.map
|