samva 0.56.3 → 0.56.4
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/types.gen.d.ts +12 -0
- package/dist/effect/generated/messages.d.ts +2 -0
- package/dist/effect/generated/scheduled-messages.d.ts +20 -0
- package/dist/effect/generated/scheduled-messages.js +2 -0
- package/dist/effect/generated/shared.d.ts +3 -0
- package/dist/effect/generated/shared.js +1 -0
- package/dist/effect/scheduled-messages.d.ts +3 -0
- package/dist/package.json.js +1 -1
- package/package.json +2 -2
|
@@ -5540,6 +5540,10 @@ export type StoredWhatsAppSendMessage = {
|
|
|
5540
5540
|
conversationId?: ConversationId | null | undefined;
|
|
5541
5541
|
metadata?: MessageMetadata | undefined;
|
|
5542
5542
|
channel: "whatsapp";
|
|
5543
|
+
/**
|
|
5544
|
+
* Sending WhatsApp business number in E.164 format. Omit to use the default number.
|
|
5545
|
+
*/
|
|
5546
|
+
from?: string | undefined;
|
|
5543
5547
|
to: [SavedPhoneRecipient];
|
|
5544
5548
|
whatsapp: WhatsAppContent;
|
|
5545
5549
|
};
|
|
@@ -5821,6 +5825,10 @@ export type WhatsAppDispatchSendMessagePayload = {
|
|
|
5821
5825
|
conversationId?: ConversationId | null | undefined;
|
|
5822
5826
|
metadata?: MessageMetadataWritable | undefined;
|
|
5823
5827
|
channel: "whatsapp";
|
|
5828
|
+
/**
|
|
5829
|
+
* Sending WhatsApp business number in E.164 format. Omit to use the default number.
|
|
5830
|
+
*/
|
|
5831
|
+
from?: string | undefined;
|
|
5824
5832
|
to: WhatsAppRecipients;
|
|
5825
5833
|
whatsapp: WhatsAppContentWritable;
|
|
5826
5834
|
};
|
|
@@ -6397,6 +6405,10 @@ export type WhatsAppSendMessagePayload = {
|
|
|
6397
6405
|
conversationId?: ConversationId | null | undefined;
|
|
6398
6406
|
metadata?: MessageMetadataWritable | undefined;
|
|
6399
6407
|
channel: "whatsapp";
|
|
6408
|
+
/**
|
|
6409
|
+
* Sending WhatsApp business number in E.164 format. Omit to use the default number.
|
|
6410
|
+
*/
|
|
6411
|
+
from?: string | undefined;
|
|
6400
6412
|
to: WhatsAppRecipients;
|
|
6401
6413
|
whatsapp: WhatsAppContentWritable;
|
|
6402
6414
|
};
|
|
@@ -530,6 +530,7 @@ export declare const MessagesSendRequestJson: Schema.Union<readonly [Schema.Stru
|
|
|
530
530
|
readonly conversationId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "ConversationId">, Schema.Null]>>;
|
|
531
531
|
readonly metadata: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<JsonValue, JsonValue, never, never>>>, Schema.Null]>>;
|
|
532
532
|
readonly channel: Schema.Literal<"whatsapp">;
|
|
533
|
+
readonly from: Schema.optionalKey<Schema.String>;
|
|
533
534
|
readonly to: Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
534
535
|
readonly contactId: Schema.brand<Schema.String, "ContactId">;
|
|
535
536
|
}>, Schema.Struct<{
|
|
@@ -1801,6 +1802,7 @@ export declare const MessagesSendEndpoint: HttpApiEndpoint.HttpApiEndpoint<"mess
|
|
|
1801
1802
|
readonly conversationId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "ConversationId">, Schema.Null]>>;
|
|
1802
1803
|
readonly metadata: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<JsonValue, JsonValue, never, never>>>, Schema.Null]>>;
|
|
1803
1804
|
readonly channel: Schema.Literal<"whatsapp">;
|
|
1805
|
+
readonly from: Schema.optionalKey<Schema.String>;
|
|
1804
1806
|
readonly to: Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
1805
1807
|
readonly contactId: Schema.brand<Schema.String, "ContactId">;
|
|
1806
1808
|
}>, Schema.Struct<{
|
|
@@ -327,6 +327,7 @@ export type StoredWhatsAppSendMessage = {
|
|
|
327
327
|
readonly conversationId?: ConversationId | null;
|
|
328
328
|
readonly metadata?: MessageMetadata;
|
|
329
329
|
readonly channel: "whatsapp";
|
|
330
|
+
readonly from?: string;
|
|
330
331
|
readonly to: ReadonlyArray<SavedPhoneRecipient>;
|
|
331
332
|
readonly whatsapp: WhatsAppContent;
|
|
332
333
|
};
|
|
@@ -334,6 +335,7 @@ export declare const StoredWhatsAppSendMessage: Schema.Struct<{
|
|
|
334
335
|
readonly conversationId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "ConversationId">, Schema.Null]>>;
|
|
335
336
|
readonly metadata: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared.js").JsonValue, import("./shared.js").JsonValue, never, never>>>, Schema.Null]>>;
|
|
336
337
|
readonly channel: Schema.Literal<"whatsapp">;
|
|
338
|
+
readonly from: Schema.optionalKey<Schema.String>;
|
|
337
339
|
readonly to: Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
338
340
|
readonly contactId: Schema.brand<Schema.String, "ContactId">;
|
|
339
341
|
}>, Schema.Struct<{
|
|
@@ -545,6 +547,7 @@ export type WhatsAppDispatchSendMessagePayload = {
|
|
|
545
547
|
readonly conversationId?: ConversationId | null;
|
|
546
548
|
readonly metadata?: MessageMetadata;
|
|
547
549
|
readonly channel: "whatsapp";
|
|
550
|
+
readonly from?: string;
|
|
548
551
|
readonly to: WhatsAppRecipients;
|
|
549
552
|
readonly whatsapp: WhatsAppContent;
|
|
550
553
|
};
|
|
@@ -552,6 +555,7 @@ export declare const WhatsAppDispatchSendMessagePayload: Schema.Struct<{
|
|
|
552
555
|
readonly conversationId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "ConversationId">, Schema.Null]>>;
|
|
553
556
|
readonly metadata: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared.js").JsonValue, import("./shared.js").JsonValue, never, never>>>, Schema.Null]>>;
|
|
554
557
|
readonly channel: Schema.Literal<"whatsapp">;
|
|
558
|
+
readonly from: Schema.optionalKey<Schema.String>;
|
|
555
559
|
readonly to: Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
556
560
|
readonly contactId: Schema.brand<Schema.String, "ContactId">;
|
|
557
561
|
}>, Schema.Struct<{
|
|
@@ -840,6 +844,7 @@ export declare const StoredSendMessagePayload: Schema.Union<readonly [Schema.Str
|
|
|
840
844
|
readonly conversationId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "ConversationId">, Schema.Null]>>;
|
|
841
845
|
readonly metadata: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared.js").JsonValue, import("./shared.js").JsonValue, never, never>>>, Schema.Null]>>;
|
|
842
846
|
readonly channel: Schema.Literal<"whatsapp">;
|
|
847
|
+
readonly from: Schema.optionalKey<Schema.String>;
|
|
843
848
|
readonly to: Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
844
849
|
readonly contactId: Schema.brand<Schema.String, "ContactId">;
|
|
845
850
|
}>, Schema.Struct<{
|
|
@@ -1128,6 +1133,7 @@ export declare const DispatchSendMessagePayload: Schema.Union<readonly [Schema.S
|
|
|
1128
1133
|
readonly conversationId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "ConversationId">, Schema.Null]>>;
|
|
1129
1134
|
readonly metadata: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared.js").JsonValue, import("./shared.js").JsonValue, never, never>>>, Schema.Null]>>;
|
|
1130
1135
|
readonly channel: Schema.Literal<"whatsapp">;
|
|
1136
|
+
readonly from: Schema.optionalKey<Schema.String>;
|
|
1131
1137
|
readonly to: Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
1132
1138
|
readonly contactId: Schema.brand<Schema.String, "ContactId">;
|
|
1133
1139
|
}>, Schema.Struct<{
|
|
@@ -1437,6 +1443,7 @@ export declare const ScheduledMessage: Schema.Struct<{
|
|
|
1437
1443
|
readonly conversationId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "ConversationId">, Schema.Null]>>;
|
|
1438
1444
|
readonly metadata: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared.js").JsonValue, import("./shared.js").JsonValue, never, never>>>, Schema.Null]>>;
|
|
1439
1445
|
readonly channel: Schema.Literal<"whatsapp">;
|
|
1446
|
+
readonly from: Schema.optionalKey<Schema.String>;
|
|
1440
1447
|
readonly to: Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
1441
1448
|
readonly contactId: Schema.brand<Schema.String, "ContactId">;
|
|
1442
1449
|
}>, Schema.Struct<{
|
|
@@ -1744,6 +1751,7 @@ export declare const ScheduledMessagePage: Schema.Struct<{
|
|
|
1744
1751
|
readonly conversationId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "ConversationId">, Schema.Null]>>;
|
|
1745
1752
|
readonly metadata: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared.js").JsonValue, import("./shared.js").JsonValue, never, never>>>, Schema.Null]>>;
|
|
1746
1753
|
readonly channel: Schema.Literal<"whatsapp">;
|
|
1754
|
+
readonly from: Schema.optionalKey<Schema.String>;
|
|
1747
1755
|
readonly to: Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
1748
1756
|
readonly contactId: Schema.brand<Schema.String, "ContactId">;
|
|
1749
1757
|
}>, Schema.Struct<{
|
|
@@ -2062,6 +2070,7 @@ export declare const ScheduledMessagesList200: Schema.Struct<{
|
|
|
2062
2070
|
readonly conversationId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "ConversationId">, Schema.Null]>>;
|
|
2063
2071
|
readonly metadata: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared.js").JsonValue, import("./shared.js").JsonValue, never, never>>>, Schema.Null]>>;
|
|
2064
2072
|
readonly channel: Schema.Literal<"whatsapp">;
|
|
2073
|
+
readonly from: Schema.optionalKey<Schema.String>;
|
|
2065
2074
|
readonly to: Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
2066
2075
|
readonly contactId: Schema.brand<Schema.String, "ContactId">;
|
|
2067
2076
|
}>, Schema.Struct<{
|
|
@@ -2387,6 +2396,7 @@ export declare const ScheduledMessagesCreateRequestJson: Schema.Struct<{
|
|
|
2387
2396
|
readonly conversationId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "ConversationId">, Schema.Null]>>;
|
|
2388
2397
|
readonly metadata: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared.js").JsonValue, import("./shared.js").JsonValue, never, never>>>, Schema.Null]>>;
|
|
2389
2398
|
readonly channel: Schema.Literal<"whatsapp">;
|
|
2399
|
+
readonly from: Schema.optionalKey<Schema.String>;
|
|
2390
2400
|
readonly to: Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
2391
2401
|
readonly contactId: Schema.brand<Schema.String, "ContactId">;
|
|
2392
2402
|
}>, Schema.Struct<{
|
|
@@ -2685,6 +2695,7 @@ export declare const ScheduledMessagesCreate201: Schema.Struct<{
|
|
|
2685
2695
|
readonly conversationId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "ConversationId">, Schema.Null]>>;
|
|
2686
2696
|
readonly metadata: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared.js").JsonValue, import("./shared.js").JsonValue, never, never>>>, Schema.Null]>>;
|
|
2687
2697
|
readonly channel: Schema.Literal<"whatsapp">;
|
|
2698
|
+
readonly from: Schema.optionalKey<Schema.String>;
|
|
2688
2699
|
readonly to: Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
2689
2700
|
readonly contactId: Schema.brand<Schema.String, "ContactId">;
|
|
2690
2701
|
}>, Schema.Struct<{
|
|
@@ -3012,6 +3023,7 @@ export declare const ScheduledMessagesGet200: Schema.Struct<{
|
|
|
3012
3023
|
readonly conversationId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "ConversationId">, Schema.Null]>>;
|
|
3013
3024
|
readonly metadata: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared.js").JsonValue, import("./shared.js").JsonValue, never, never>>>, Schema.Null]>>;
|
|
3014
3025
|
readonly channel: Schema.Literal<"whatsapp">;
|
|
3026
|
+
readonly from: Schema.optionalKey<Schema.String>;
|
|
3015
3027
|
readonly to: Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
3016
3028
|
readonly contactId: Schema.brand<Schema.String, "ContactId">;
|
|
3017
3029
|
}>, Schema.Struct<{
|
|
@@ -3340,6 +3352,7 @@ export declare const ScheduledMessagesCancel200: Schema.Struct<{
|
|
|
3340
3352
|
readonly conversationId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "ConversationId">, Schema.Null]>>;
|
|
3341
3353
|
readonly metadata: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared.js").JsonValue, import("./shared.js").JsonValue, never, never>>>, Schema.Null]>>;
|
|
3342
3354
|
readonly channel: Schema.Literal<"whatsapp">;
|
|
3355
|
+
readonly from: Schema.optionalKey<Schema.String>;
|
|
3343
3356
|
readonly to: Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
3344
3357
|
readonly contactId: Schema.brand<Schema.String, "ContactId">;
|
|
3345
3358
|
}>, Schema.Struct<{
|
|
@@ -3678,6 +3691,7 @@ export declare const ScheduledMessagesResume200: Schema.Struct<{
|
|
|
3678
3691
|
readonly conversationId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "ConversationId">, Schema.Null]>>;
|
|
3679
3692
|
readonly metadata: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared.js").JsonValue, import("./shared.js").JsonValue, never, never>>>, Schema.Null]>>;
|
|
3680
3693
|
readonly channel: Schema.Literal<"whatsapp">;
|
|
3694
|
+
readonly from: Schema.optionalKey<Schema.String>;
|
|
3681
3695
|
readonly to: Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
3682
3696
|
readonly contactId: Schema.brand<Schema.String, "ContactId">;
|
|
3683
3697
|
}>, Schema.Struct<{
|
|
@@ -4006,6 +4020,7 @@ export declare const ScheduledMessagesListEndpoint: HttpApiEndpoint.HttpApiEndpo
|
|
|
4006
4020
|
readonly conversationId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "ConversationId">, Schema.Null]>>;
|
|
4007
4021
|
readonly metadata: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared.js").JsonValue, import("./shared.js").JsonValue, never, never>>>, Schema.Null]>>;
|
|
4008
4022
|
readonly channel: Schema.Literal<"whatsapp">;
|
|
4023
|
+
readonly from: Schema.optionalKey<Schema.String>;
|
|
4009
4024
|
readonly to: Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
4010
4025
|
readonly contactId: Schema.brand<Schema.String, "ContactId">;
|
|
4011
4026
|
}>, Schema.Struct<{
|
|
@@ -4386,6 +4401,7 @@ export declare const ScheduledMessagesCreateEndpoint: HttpApiEndpoint.HttpApiEnd
|
|
|
4386
4401
|
readonly conversationId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "ConversationId">, Schema.Null]>>;
|
|
4387
4402
|
readonly metadata: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared.js").JsonValue, import("./shared.js").JsonValue, never, never>>>, Schema.Null]>>;
|
|
4388
4403
|
readonly channel: Schema.Literal<"whatsapp">;
|
|
4404
|
+
readonly from: Schema.optionalKey<Schema.String>;
|
|
4389
4405
|
readonly to: Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
4390
4406
|
readonly contactId: Schema.brand<Schema.String, "ContactId">;
|
|
4391
4407
|
}>, Schema.Struct<{
|
|
@@ -4684,6 +4700,7 @@ export declare const ScheduledMessagesCreateEndpoint: HttpApiEndpoint.HttpApiEnd
|
|
|
4684
4700
|
readonly conversationId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "ConversationId">, Schema.Null]>>;
|
|
4685
4701
|
readonly metadata: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared.js").JsonValue, import("./shared.js").JsonValue, never, never>>>, Schema.Null]>>;
|
|
4686
4702
|
readonly channel: Schema.Literal<"whatsapp">;
|
|
4703
|
+
readonly from: Schema.optionalKey<Schema.String>;
|
|
4687
4704
|
readonly to: Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
4688
4705
|
readonly contactId: Schema.brand<Schema.String, "ContactId">;
|
|
4689
4706
|
}>, Schema.Struct<{
|
|
@@ -5112,6 +5129,7 @@ export declare const ScheduledMessagesGetEndpoint: HttpApiEndpoint.HttpApiEndpoi
|
|
|
5112
5129
|
readonly conversationId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "ConversationId">, Schema.Null]>>;
|
|
5113
5130
|
readonly metadata: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared.js").JsonValue, import("./shared.js").JsonValue, never, never>>>, Schema.Null]>>;
|
|
5114
5131
|
readonly channel: Schema.Literal<"whatsapp">;
|
|
5132
|
+
readonly from: Schema.optionalKey<Schema.String>;
|
|
5115
5133
|
readonly to: Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
5116
5134
|
readonly contactId: Schema.brand<Schema.String, "ContactId">;
|
|
5117
5135
|
}>, Schema.Struct<{
|
|
@@ -5518,6 +5536,7 @@ export declare const ScheduledMessagesCancelEndpoint: HttpApiEndpoint.HttpApiEnd
|
|
|
5518
5536
|
readonly conversationId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "ConversationId">, Schema.Null]>>;
|
|
5519
5537
|
readonly metadata: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared.js").JsonValue, import("./shared.js").JsonValue, never, never>>>, Schema.Null]>>;
|
|
5520
5538
|
readonly channel: Schema.Literal<"whatsapp">;
|
|
5539
|
+
readonly from: Schema.optionalKey<Schema.String>;
|
|
5521
5540
|
readonly to: Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
5522
5541
|
readonly contactId: Schema.brand<Schema.String, "ContactId">;
|
|
5523
5542
|
}>, Schema.Struct<{
|
|
@@ -5952,6 +5971,7 @@ export declare const ScheduledMessagesResumeEndpoint: HttpApiEndpoint.HttpApiEnd
|
|
|
5952
5971
|
readonly conversationId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "ConversationId">, Schema.Null]>>;
|
|
5953
5972
|
readonly metadata: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared.js").JsonValue, import("./shared.js").JsonValue, never, never>>>, Schema.Null]>>;
|
|
5954
5973
|
readonly channel: Schema.Literal<"whatsapp">;
|
|
5974
|
+
readonly from: Schema.optionalKey<Schema.String>;
|
|
5955
5975
|
readonly to: Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
5956
5976
|
readonly contactId: Schema.brand<Schema.String, "ContactId">;
|
|
5957
5977
|
}>, Schema.Struct<{
|
|
@@ -99,6 +99,7 @@ const StoredWhatsAppSendMessage = /* @__PURE__ */ (() => Schema.Struct({
|
|
|
99
99
|
conversationId: Schema.optionalKey(Schema.Union([ConversationId, Schema.Null])),
|
|
100
100
|
metadata: Schema.optionalKey(MessageMetadata),
|
|
101
101
|
channel: Schema.Literal("whatsapp"),
|
|
102
|
+
from: Schema.optionalKey(Schema.String.annotate({ description: "Sending WhatsApp business number in E.164 format. Omit to use the default number." }).check(Schema.isPattern(new globalThis.RegExp("^\\+[1-9]\\d{1,14}$", "u")).annotate({ expected: "a string matching the RegExp ^\\+[1-9]\\d{1,14}$" }))),
|
|
102
103
|
to: Schema.Array(SavedPhoneRecipient).check(Schema.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })).check(Schema.isMaxLength(1).annotate({ expected: "a value with a length of at most 1" })),
|
|
103
104
|
whatsapp: WhatsAppContent
|
|
104
105
|
}).annotate({ identifier: "StoredWhatsAppSendMessage" }))();
|
|
@@ -106,6 +107,7 @@ const WhatsAppDispatchSendMessagePayload = /* @__PURE__ */ (() => Schema.Struct(
|
|
|
106
107
|
conversationId: Schema.optionalKey(Schema.Union([ConversationId, Schema.Null])),
|
|
107
108
|
metadata: Schema.optionalKey(MessageMetadata),
|
|
108
109
|
channel: Schema.Literal("whatsapp"),
|
|
110
|
+
from: Schema.optionalKey(Schema.String.annotate({ description: "Sending WhatsApp business number in E.164 format. Omit to use the default number." }).check(Schema.isPattern(new globalThis.RegExp("^\\+[1-9]\\d{1,14}$", "u")).annotate({ expected: "a string matching the RegExp ^\\+[1-9]\\d{1,14}$" }))),
|
|
109
111
|
to: WhatsAppRecipients,
|
|
110
112
|
whatsapp: WhatsAppContent
|
|
111
113
|
}).annotate({
|
|
@@ -7572,6 +7572,7 @@ export type WhatsAppSendMessagePayload = {
|
|
|
7572
7572
|
readonly conversationId?: ConversationId | null;
|
|
7573
7573
|
readonly metadata?: MessageMetadata;
|
|
7574
7574
|
readonly channel: "whatsapp";
|
|
7575
|
+
readonly from?: string;
|
|
7575
7576
|
readonly to: WhatsAppRecipients;
|
|
7576
7577
|
readonly whatsapp: WhatsAppContent;
|
|
7577
7578
|
};
|
|
@@ -7579,6 +7580,7 @@ export declare const WhatsAppSendMessagePayload: Schema.Struct<{
|
|
|
7579
7580
|
readonly conversationId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "ConversationId">, Schema.Null]>>;
|
|
7580
7581
|
readonly metadata: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<JsonValue, JsonValue, never, never>>>, Schema.Null]>>;
|
|
7581
7582
|
readonly channel: Schema.Literal<"whatsapp">;
|
|
7583
|
+
readonly from: Schema.optionalKey<Schema.String>;
|
|
7582
7584
|
readonly to: Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
7583
7585
|
readonly contactId: Schema.brand<Schema.String, "ContactId">;
|
|
7584
7586
|
}>, Schema.Struct<{
|
|
@@ -8111,6 +8113,7 @@ export declare const SendMessagePayload: Schema.Union<readonly [Schema.Struct<{
|
|
|
8111
8113
|
readonly conversationId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "ConversationId">, Schema.Null]>>;
|
|
8112
8114
|
readonly metadata: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<JsonValue, JsonValue, never, never>>>, Schema.Null]>>;
|
|
8113
8115
|
readonly channel: Schema.Literal<"whatsapp">;
|
|
8116
|
+
readonly from: Schema.optionalKey<Schema.String>;
|
|
8114
8117
|
readonly to: Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
8115
8118
|
readonly contactId: Schema.brand<Schema.String, "ContactId">;
|
|
8116
8119
|
}>, Schema.Struct<{
|
|
@@ -2300,6 +2300,7 @@ const WhatsAppSendMessagePayload = /* @__PURE__ */ (() => Schema.Struct({
|
|
|
2300
2300
|
conversationId: Schema.optionalKey(Schema.Union([ConversationId, Schema.Null])),
|
|
2301
2301
|
metadata: Schema.optionalKey(MessageMetadata),
|
|
2302
2302
|
channel: Schema.Literal("whatsapp"),
|
|
2303
|
+
from: Schema.optionalKey(Schema.String.annotate({ description: "Sending WhatsApp business number in E.164 format. Omit to use the default number." }).check(Schema.isPattern(new globalThis.RegExp("^\\+[1-9]\\d{1,14}$", "u")).annotate({ expected: "a string matching the RegExp ^\\+[1-9]\\d{1,14}$" }))),
|
|
2303
2304
|
to: WhatsAppRecipients,
|
|
2304
2305
|
whatsapp: WhatsAppContent
|
|
2305
2306
|
}).annotate({
|
|
@@ -212,6 +212,7 @@ export declare const create: (input: {
|
|
|
212
212
|
} | null | undefined;
|
|
213
213
|
} | null | undefined;
|
|
214
214
|
readonly channel: "whatsapp";
|
|
215
|
+
readonly from?: string | undefined;
|
|
215
216
|
readonly to: readonly ({
|
|
216
217
|
readonly contactId: string;
|
|
217
218
|
} | {
|
|
@@ -663,6 +664,7 @@ export declare const list: ((input?: {
|
|
|
663
664
|
readonly [x: string]: import("./generated/index.js").JsonValue;
|
|
664
665
|
} | null;
|
|
665
666
|
readonly channel: "whatsapp";
|
|
667
|
+
readonly from?: string;
|
|
666
668
|
readonly to: readonly ({
|
|
667
669
|
readonly contactId: string & import("effect/Brand").Brand<"ContactId">;
|
|
668
670
|
} | {
|
|
@@ -994,6 +996,7 @@ export declare const list: ((input?: {
|
|
|
994
996
|
readonly [x: string]: import("./generated/index.js").JsonValue;
|
|
995
997
|
} | null;
|
|
996
998
|
readonly channel: "whatsapp";
|
|
999
|
+
readonly from?: string;
|
|
997
1000
|
readonly to: readonly ({
|
|
998
1001
|
readonly contactId: string & import("effect/Brand").Brand<"ContactId">;
|
|
999
1002
|
} | {
|
package/dist/package.json.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "samva",
|
|
3
|
-
"version": "0.56.
|
|
3
|
+
"version": "0.56.4",
|
|
4
4
|
"description": "TypeScript SDK for the Samva email and WhatsApp API",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"api-client",
|
|
@@ -269,7 +269,7 @@
|
|
|
269
269
|
"typecheck": "slot 'effect-tsgo tsrs --noEmit && effect-tsgo tsrs --noEmit -p codegen/tsconfig.json && effect-tsgo tsrs --noEmit -p tests/tsconfig.json && effect-tsgo tsrs --noEmit --project tests/parity/tsconfig.json \"$@\"'"
|
|
270
270
|
},
|
|
271
271
|
"dependencies": {
|
|
272
|
-
"@samva/webhooks": "0.56.
|
|
272
|
+
"@samva/webhooks": "0.56.4"
|
|
273
273
|
},
|
|
274
274
|
"devDependencies": {
|
|
275
275
|
"@effect/openapi-generator": "^4.1.4",
|