samva 0.22.1 → 0.23.1
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 +64 -57
- package/dist/client/sdk.gen.js +21 -2
- package/dist/client/types.gen.d.ts +203 -49
- package/dist/effect/generated/analytics.js +8 -8
- package/dist/effect/generated/api-keys.js +4 -4
- package/dist/effect/generated/attachments.js +3 -3
- package/dist/effect/generated/contact-groups.js +11 -11
- package/dist/effect/generated/contacts.js +16 -16
- package/dist/effect/generated/conversations.js +6 -6
- package/dist/effect/generated/custom-fields.js +5 -5
- package/dist/effect/generated/email.js +32 -32
- package/dist/effect/generated/events.js +4 -4
- package/dist/effect/generated/extension-installations.js +4 -4
- package/dist/effect/generated/extensions.js +1 -1
- package/dist/effect/generated/journeys.js +12 -12
- package/dist/effect/generated/mailboxes.js +10 -10
- package/dist/effect/generated/messages.js +4 -4
- package/dist/effect/generated/organizations.d.ts +116 -9
- package/dist/effect/generated/organizations.js +31 -6
- package/dist/effect/generated/shared.js +1 -1
- package/dist/effect/generated/templates.d.ts +37 -72
- package/dist/effect/generated/templates.js +121 -122
- package/dist/effect/generated/unsubscribe-groups.js +7 -7
- package/dist/effect/generated/webhooks.js +17 -17
- package/dist/effect/generated-metadata.d.ts +5 -0
- package/dist/effect/generated-metadata.js +1 -0
- package/dist/effect/organizations.d.ts +2 -0
- package/dist/effect/organizations.js +3 -1
- package/dist/package.js +1 -1
- package/dist/promises/types.gen.d.ts +1 -1
- package/dist/service-map.d.ts +4 -0
- package/dist/service-map.js +1 -0
- package/package.json +4 -4
|
@@ -18,15 +18,15 @@ export type TemplateFamilyId = string & EffectBrand.Brand<"TemplateFamilyId">;
|
|
|
18
18
|
export declare const TemplateFamilyId: Schema.brand<Schema.String, "TemplateFamilyId">;
|
|
19
19
|
export type VersionCursor = string;
|
|
20
20
|
export declare const VersionCursor: Schema.String;
|
|
21
|
-
export type
|
|
21
|
+
export type BrandRenderedFooter = {
|
|
22
22
|
readonly html: string;
|
|
23
23
|
readonly text: string;
|
|
24
|
-
readonly headCss
|
|
24
|
+
readonly headCss: string;
|
|
25
25
|
};
|
|
26
|
-
export declare const
|
|
26
|
+
export declare const BrandRenderedFooter: Schema.Struct<{
|
|
27
27
|
readonly html: Schema.String;
|
|
28
28
|
readonly text: Schema.String;
|
|
29
|
-
readonly headCss: Schema.
|
|
29
|
+
readonly headCss: Schema.String;
|
|
30
30
|
}>;
|
|
31
31
|
export type TemplatePublicationRender = {
|
|
32
32
|
readonly subject: string;
|
|
@@ -212,22 +212,6 @@ export declare const Template: Schema.Struct<{
|
|
|
212
212
|
readonly inputContractId: Schema.Union<readonly [Schema.brand<Schema.String, "TemplateInputContractId">, Schema.Null]>;
|
|
213
213
|
readonly inputSchema: Schema.Union<readonly [Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<JsonValue, JsonValue, never, never>>>, Schema.Null]>;
|
|
214
214
|
}>;
|
|
215
|
-
export type BrandRenderedFooter = {
|
|
216
|
-
readonly withUnsubscribe: BrandFooterBlock;
|
|
217
|
-
readonly withoutUnsubscribe: BrandFooterBlock;
|
|
218
|
-
};
|
|
219
|
-
export declare const BrandRenderedFooter: Schema.Struct<{
|
|
220
|
-
readonly withUnsubscribe: Schema.Struct<{
|
|
221
|
-
readonly html: Schema.String;
|
|
222
|
-
readonly text: Schema.String;
|
|
223
|
-
readonly headCss: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
224
|
-
}>;
|
|
225
|
-
readonly withoutUnsubscribe: Schema.Struct<{
|
|
226
|
-
readonly html: Schema.String;
|
|
227
|
-
readonly text: Schema.String;
|
|
228
|
-
readonly headCss: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
229
|
-
}>;
|
|
230
|
-
}>;
|
|
231
215
|
export type TemplateFamily = {
|
|
232
216
|
readonly id: TemplateFamilyId;
|
|
233
217
|
readonly name: string;
|
|
@@ -795,7 +779,7 @@ export type TemplatesPublish201 = {
|
|
|
795
779
|
readonly buildIdentity: string;
|
|
796
780
|
readonly manifest: {
|
|
797
781
|
readonly templateKey: string;
|
|
798
|
-
readonly
|
|
782
|
+
readonly compiled: {
|
|
799
783
|
readonly version: number;
|
|
800
784
|
readonly digest: string;
|
|
801
785
|
readonly bytes: number;
|
|
@@ -832,7 +816,7 @@ export type TemplatesPublish201 = {
|
|
|
832
816
|
readonly rendersFooter: "every" | "some" | "none";
|
|
833
817
|
};
|
|
834
818
|
};
|
|
835
|
-
readonly
|
|
819
|
+
readonly compiled: {
|
|
836
820
|
readonly key: string;
|
|
837
821
|
readonly digest: string;
|
|
838
822
|
};
|
|
@@ -907,7 +891,7 @@ export declare const TemplatesPublish201: Schema.Struct<{
|
|
|
907
891
|
readonly buildIdentity: Schema.String;
|
|
908
892
|
readonly manifest: Schema.Struct<{
|
|
909
893
|
readonly templateKey: Schema.String;
|
|
910
|
-
readonly
|
|
894
|
+
readonly compiled: Schema.Struct<{
|
|
911
895
|
readonly version: Schema.Finite;
|
|
912
896
|
readonly digest: Schema.String;
|
|
913
897
|
readonly bytes: Schema.Finite;
|
|
@@ -958,22 +942,15 @@ export declare const TemplatesPublish201: Schema.Struct<{
|
|
|
958
942
|
}>>, Schema.Null]>>;
|
|
959
943
|
}>;
|
|
960
944
|
readonly renderedFooter: Schema.Struct<{
|
|
961
|
-
readonly
|
|
962
|
-
|
|
963
|
-
|
|
964
|
-
readonly headCss: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
965
|
-
}>;
|
|
966
|
-
readonly withoutUnsubscribe: Schema.Struct<{
|
|
967
|
-
readonly html: Schema.String;
|
|
968
|
-
readonly text: Schema.String;
|
|
969
|
-
readonly headCss: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
970
|
-
}>;
|
|
945
|
+
readonly html: Schema.String;
|
|
946
|
+
readonly text: Schema.String;
|
|
947
|
+
readonly headCss: Schema.String;
|
|
971
948
|
}>;
|
|
972
949
|
readonly digest: Schema.String;
|
|
973
950
|
readonly rendersFooter: Schema.Union<readonly [Schema.Literal<"every">, Schema.Literal<"some">, Schema.Literal<"none">]>;
|
|
974
951
|
}>>;
|
|
975
952
|
}>;
|
|
976
|
-
readonly
|
|
953
|
+
readonly compiled: Schema.Struct<{
|
|
977
954
|
readonly key: Schema.String;
|
|
978
955
|
readonly digest: Schema.String;
|
|
979
956
|
}>;
|
|
@@ -1070,7 +1047,7 @@ export type TemplatesGetPublication200 = {
|
|
|
1070
1047
|
readonly buildIdentity: string;
|
|
1071
1048
|
readonly manifest: {
|
|
1072
1049
|
readonly templateKey: string;
|
|
1073
|
-
readonly
|
|
1050
|
+
readonly compiled: {
|
|
1074
1051
|
readonly version: number;
|
|
1075
1052
|
readonly digest: string;
|
|
1076
1053
|
readonly bytes: number;
|
|
@@ -1107,7 +1084,7 @@ export type TemplatesGetPublication200 = {
|
|
|
1107
1084
|
readonly rendersFooter: "every" | "some" | "none";
|
|
1108
1085
|
};
|
|
1109
1086
|
};
|
|
1110
|
-
readonly
|
|
1087
|
+
readonly compiled: {
|
|
1111
1088
|
readonly key: string;
|
|
1112
1089
|
readonly digest: string;
|
|
1113
1090
|
};
|
|
@@ -1182,7 +1159,7 @@ export declare const TemplatesGetPublication200: Schema.Struct<{
|
|
|
1182
1159
|
readonly buildIdentity: Schema.String;
|
|
1183
1160
|
readonly manifest: Schema.Struct<{
|
|
1184
1161
|
readonly templateKey: Schema.String;
|
|
1185
|
-
readonly
|
|
1162
|
+
readonly compiled: Schema.Struct<{
|
|
1186
1163
|
readonly version: Schema.Finite;
|
|
1187
1164
|
readonly digest: Schema.String;
|
|
1188
1165
|
readonly bytes: Schema.Finite;
|
|
@@ -1233,22 +1210,15 @@ export declare const TemplatesGetPublication200: Schema.Struct<{
|
|
|
1233
1210
|
}>>, Schema.Null]>>;
|
|
1234
1211
|
}>;
|
|
1235
1212
|
readonly renderedFooter: Schema.Struct<{
|
|
1236
|
-
readonly
|
|
1237
|
-
|
|
1238
|
-
|
|
1239
|
-
readonly headCss: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
1240
|
-
}>;
|
|
1241
|
-
readonly withoutUnsubscribe: Schema.Struct<{
|
|
1242
|
-
readonly html: Schema.String;
|
|
1243
|
-
readonly text: Schema.String;
|
|
1244
|
-
readonly headCss: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
1245
|
-
}>;
|
|
1213
|
+
readonly html: Schema.String;
|
|
1214
|
+
readonly text: Schema.String;
|
|
1215
|
+
readonly headCss: Schema.String;
|
|
1246
1216
|
}>;
|
|
1247
1217
|
readonly digest: Schema.String;
|
|
1248
1218
|
readonly rendersFooter: Schema.Union<readonly [Schema.Literal<"every">, Schema.Literal<"some">, Schema.Literal<"none">]>;
|
|
1249
1219
|
}>>;
|
|
1250
1220
|
}>;
|
|
1251
|
-
readonly
|
|
1221
|
+
readonly compiled: Schema.Struct<{
|
|
1252
1222
|
readonly key: Schema.String;
|
|
1253
1223
|
readonly digest: Schema.String;
|
|
1254
1224
|
}>;
|
|
@@ -2363,6 +2333,7 @@ export type TemplatesDiffWorkspace200 = {
|
|
|
2363
2333
|
readonly assetChanges: ReadonlyArray<{
|
|
2364
2334
|
readonly path: string;
|
|
2365
2335
|
readonly status: "added" | "modified" | "deleted";
|
|
2336
|
+
readonly digest: string | null;
|
|
2366
2337
|
}>;
|
|
2367
2338
|
};
|
|
2368
2339
|
export declare const TemplatesDiffWorkspace200: Schema.Struct<{
|
|
@@ -2378,6 +2349,7 @@ export declare const TemplatesDiffWorkspace200: Schema.Struct<{
|
|
|
2378
2349
|
readonly assetChanges: Schema.$Array<Schema.Struct<{
|
|
2379
2350
|
readonly path: Schema.String;
|
|
2380
2351
|
readonly status: Schema.Union<readonly [Schema.Literal<"added">, Schema.Literal<"modified">, Schema.Literal<"deleted">]>;
|
|
2352
|
+
readonly digest: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
2381
2353
|
}>>;
|
|
2382
2354
|
}>;
|
|
2383
2355
|
export type TemplatesDiffWorkspace401 = UnauthorizedError;
|
|
@@ -2491,6 +2463,8 @@ export type TemplatesRenderWorkspaceFixture200 = {
|
|
|
2491
2463
|
readonly start: number;
|
|
2492
2464
|
readonly end: number;
|
|
2493
2465
|
}>;
|
|
2466
|
+
readonly sentBytes: number;
|
|
2467
|
+
readonly previewBytes: number;
|
|
2494
2468
|
} | null;
|
|
2495
2469
|
};
|
|
2496
2470
|
export declare const TemplatesRenderWorkspaceFixture200: Schema.Struct<{
|
|
@@ -2574,6 +2548,8 @@ export declare const TemplatesRenderWorkspaceFixture200: Schema.Struct<{
|
|
|
2574
2548
|
readonly start: Schema.Finite;
|
|
2575
2549
|
readonly end: Schema.Finite;
|
|
2576
2550
|
}>>;
|
|
2551
|
+
readonly sentBytes: Schema.Finite;
|
|
2552
|
+
readonly previewBytes: Schema.Finite;
|
|
2577
2553
|
}>, Schema.Null]>;
|
|
2578
2554
|
}>;
|
|
2579
2555
|
export type TemplatesRenderWorkspaceFixture401 = UnauthorizedError;
|
|
@@ -5146,6 +5122,7 @@ declare const TemplatesGroup_base: HttpApiGroup.HttpApiGroup<"Templates", HttpAp
|
|
|
5146
5122
|
readonly assetChanges: Schema.$Array<Schema.Struct<{
|
|
5147
5123
|
readonly path: Schema.String;
|
|
5148
5124
|
readonly status: Schema.Union<readonly [Schema.Literal<"added">, Schema.Literal<"modified">, Schema.Literal<"deleted">]>;
|
|
5125
|
+
readonly digest: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
5149
5126
|
}>>;
|
|
5150
5127
|
}>>, Schema.toCodecJson<Schema.decodeTo<Schema.declareConstructor<ConflictError, {
|
|
5151
5128
|
readonly _tag: "ConflictError";
|
|
@@ -5678,7 +5655,7 @@ declare const TemplatesGroup_base: HttpApiGroup.HttpApiGroup<"Templates", HttpAp
|
|
|
5678
5655
|
readonly buildIdentity: Schema.String;
|
|
5679
5656
|
readonly manifest: Schema.Struct<{
|
|
5680
5657
|
readonly templateKey: Schema.String;
|
|
5681
|
-
readonly
|
|
5658
|
+
readonly compiled: Schema.Struct<{
|
|
5682
5659
|
readonly version: Schema.Finite;
|
|
5683
5660
|
readonly digest: Schema.String;
|
|
5684
5661
|
readonly bytes: Schema.Finite;
|
|
@@ -5729,22 +5706,15 @@ declare const TemplatesGroup_base: HttpApiGroup.HttpApiGroup<"Templates", HttpAp
|
|
|
5729
5706
|
}>>, Schema.Null]>>;
|
|
5730
5707
|
}>;
|
|
5731
5708
|
readonly renderedFooter: Schema.Struct<{
|
|
5732
|
-
readonly
|
|
5733
|
-
|
|
5734
|
-
|
|
5735
|
-
readonly headCss: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
5736
|
-
}>;
|
|
5737
|
-
readonly withoutUnsubscribe: Schema.Struct<{
|
|
5738
|
-
readonly html: Schema.String;
|
|
5739
|
-
readonly text: Schema.String;
|
|
5740
|
-
readonly headCss: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
5741
|
-
}>;
|
|
5709
|
+
readonly html: Schema.String;
|
|
5710
|
+
readonly text: Schema.String;
|
|
5711
|
+
readonly headCss: Schema.String;
|
|
5742
5712
|
}>;
|
|
5743
5713
|
readonly digest: Schema.String;
|
|
5744
5714
|
readonly rendersFooter: Schema.Union<readonly [Schema.Literal<"every">, Schema.Literal<"some">, Schema.Literal<"none">]>;
|
|
5745
5715
|
}>>;
|
|
5746
5716
|
}>;
|
|
5747
|
-
readonly
|
|
5717
|
+
readonly compiled: Schema.Struct<{
|
|
5748
5718
|
readonly key: Schema.String;
|
|
5749
5719
|
readonly digest: Schema.String;
|
|
5750
5720
|
}>;
|
|
@@ -6653,7 +6623,7 @@ declare const TemplatesGroup_base: HttpApiGroup.HttpApiGroup<"Templates", HttpAp
|
|
|
6653
6623
|
readonly buildIdentity: Schema.String;
|
|
6654
6624
|
readonly manifest: Schema.Struct<{
|
|
6655
6625
|
readonly templateKey: Schema.String;
|
|
6656
|
-
readonly
|
|
6626
|
+
readonly compiled: Schema.Struct<{
|
|
6657
6627
|
readonly version: Schema.Finite;
|
|
6658
6628
|
readonly digest: Schema.String;
|
|
6659
6629
|
readonly bytes: Schema.Finite;
|
|
@@ -6704,22 +6674,15 @@ declare const TemplatesGroup_base: HttpApiGroup.HttpApiGroup<"Templates", HttpAp
|
|
|
6704
6674
|
}>>, Schema.Null]>>;
|
|
6705
6675
|
}>;
|
|
6706
6676
|
readonly renderedFooter: Schema.Struct<{
|
|
6707
|
-
readonly
|
|
6708
|
-
|
|
6709
|
-
|
|
6710
|
-
readonly headCss: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
6711
|
-
}>;
|
|
6712
|
-
readonly withoutUnsubscribe: Schema.Struct<{
|
|
6713
|
-
readonly html: Schema.String;
|
|
6714
|
-
readonly text: Schema.String;
|
|
6715
|
-
readonly headCss: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
6716
|
-
}>;
|
|
6677
|
+
readonly html: Schema.String;
|
|
6678
|
+
readonly text: Schema.String;
|
|
6679
|
+
readonly headCss: Schema.String;
|
|
6717
6680
|
}>;
|
|
6718
6681
|
readonly digest: Schema.String;
|
|
6719
6682
|
readonly rendersFooter: Schema.Union<readonly [Schema.Literal<"every">, Schema.Literal<"some">, Schema.Literal<"none">]>;
|
|
6720
6683
|
}>>;
|
|
6721
6684
|
}>;
|
|
6722
|
-
readonly
|
|
6685
|
+
readonly compiled: Schema.Struct<{
|
|
6723
6686
|
readonly key: Schema.String;
|
|
6724
6687
|
readonly digest: Schema.String;
|
|
6725
6688
|
}>;
|
|
@@ -7625,6 +7588,8 @@ declare const TemplatesGroup_base: HttpApiGroup.HttpApiGroup<"Templates", HttpAp
|
|
|
7625
7588
|
readonly start: Schema.Finite;
|
|
7626
7589
|
readonly end: Schema.Finite;
|
|
7627
7590
|
}>>;
|
|
7591
|
+
readonly sentBytes: Schema.Finite;
|
|
7592
|
+
readonly previewBytes: Schema.Finite;
|
|
7628
7593
|
}>, Schema.Null]>;
|
|
7629
7594
|
}>>, Schema.toCodecJson<Schema.decodeTo<Schema.declareConstructor<ConflictError, {
|
|
7630
7595
|
readonly _tag: "ConflictError";
|