samva 0.7.0 → 0.8.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 (40) hide show
  1. package/dist/client/sdk.gen.d.ts +31 -18
  2. package/dist/client/types.gen.d.ts +133 -48
  3. package/dist/{client-5O8KsY5Z.js → client-ByJHYp7r.js} +155 -91
  4. package/dist/{client-attribution-27MNycCV.js → client-attribution-N5A784Zo.js} +2 -2
  5. package/dist/effect/analytics.js +1 -1
  6. package/dist/effect/api-keys.js +1 -1
  7. package/dist/effect/attachments.js +1 -1
  8. package/dist/effect/brands.js +2 -2
  9. package/dist/effect/campaigns.d.ts +34 -0
  10. package/dist/effect/campaigns.js +1 -1
  11. package/dist/effect/client.js +1 -1
  12. package/dist/effect/contact-groups.js +1 -1
  13. package/dist/effect/contacts.js +1 -1
  14. package/dist/effect/conversations.d.ts +9 -9
  15. package/dist/effect/conversations.js +1 -1
  16. package/dist/effect/custom-fields.js +1 -1
  17. package/dist/effect/email.js +2 -2
  18. package/dist/effect/generated.d.ts +508 -221
  19. package/dist/effect/index.js +1 -1
  20. package/dist/effect/media.js +1 -1
  21. package/dist/effect/messages.d.ts +2 -0
  22. package/dist/effect/messages.js +1 -1
  23. package/dist/effect/operations.js +1 -1
  24. package/dist/effect/organizations.d.ts +5 -4
  25. package/dist/effect/organizations.js +4 -2
  26. package/dist/effect/scheduled-messages.d.ts +16 -0
  27. package/dist/effect/scheduled-messages.js +1 -1
  28. package/dist/effect/templates.d.ts +30 -38
  29. package/dist/effect/templates.js +2 -2
  30. package/dist/effect/unsubscribe-groups.d.ts +17 -0
  31. package/dist/effect/unsubscribe-groups.js +4 -2
  32. package/dist/effect/webhooks.d.ts +6 -6
  33. package/dist/effect/webhooks.js +2 -2
  34. package/dist/index.js +1 -1
  35. package/dist/{operation-Cb5V9FJ7.js → operation-D2nEeKBD.js} +7 -2
  36. package/dist/promises/index.js +1 -1
  37. package/dist/promises/types.gen.d.ts +1 -1
  38. package/dist/{promises-C2yyw-pf.js → promises-DAv8ZtOX.js} +51 -20
  39. package/dist/service-map.d.ts +9 -0
  40. package/package.json +2 -2
@@ -1,9 +1,9 @@
1
1
  //#endregion
2
2
  //#region src/client-attribution.ts
3
- const SDK_VERSION = "0.7.0";
3
+ const SDK_VERSION = "0.8.0";
4
4
  const CLIENT_ATTRIBUTION_HEADER = "x-samva-client";
5
5
  const clientAttribution = (surface) => `${surface}/${SDK_VERSION}`;
6
6
  //#endregion
7
7
  export { clientAttribution as n, CLIENT_ATTRIBUTION_HEADER as t };
8
8
 
9
- //# sourceMappingURL=client-attribution-27MNycCV.js.map
9
+ //# sourceMappingURL=client-attribution-N5A784Zo.js.map
@@ -1,5 +1,5 @@
1
1
  import { t as __exportAll } from "../rolldown-runtime-D7D4PA-g.js";
2
- import { n as make } from "../operation-Cb5V9FJ7.js";
2
+ import { n as make } from "../operation-D2nEeKBD.js";
3
3
  //#region src/effect/analytics.ts
4
4
  var analytics_exports = /* @__PURE__ */ __exportAll({
5
5
  exportData: () => exportData,
@@ -1,5 +1,5 @@
1
1
  import { t as __exportAll } from "../rolldown-runtime-D7D4PA-g.js";
2
- import { n as make } from "../operation-Cb5V9FJ7.js";
2
+ import { n as make } from "../operation-D2nEeKBD.js";
3
3
  //#region src/effect/api-keys.ts
4
4
  var api_keys_exports = /* @__PURE__ */ __exportAll({
5
5
  create: () => create,
@@ -1,5 +1,5 @@
1
1
  import { t as __exportAll } from "../rolldown-runtime-D7D4PA-g.js";
2
- import { n as make } from "../operation-Cb5V9FJ7.js";
2
+ import { n as make } from "../operation-D2nEeKBD.js";
3
3
  //#region src/effect/attachments.ts
4
4
  var attachments_exports = /* @__PURE__ */ __exportAll({
5
5
  downloadUrl: () => downloadUrl,
@@ -1,6 +1,6 @@
1
1
  import { t as __exportAll } from "../rolldown-runtime-D7D4PA-g.js";
2
- import { n as make } from "../operation-Cb5V9FJ7.js";
3
- import { O as UpdateBrand, u as CreateBrand } from "../client-5O8KsY5Z.js";
2
+ import { n as make } from "../operation-D2nEeKBD.js";
3
+ import { O as UpdateBrand, u as CreateBrand } from "../client-ByJHYp7r.js";
4
4
  //#region src/effect/brands.ts
5
5
  var brands_exports = /* @__PURE__ */ __exportAll({
6
6
  CreatePayload: () => CreateBrand,
@@ -27,6 +27,8 @@ export declare const list: ((input?: {
27
27
  readonly templateData?: {
28
28
  readonly [x: string]: import("./generated").JsonValue;
29
29
  } | null;
30
+ readonly locale?: string;
31
+ readonly timeZone?: string;
30
32
  readonly inReplyToMessageId?: (string & import("effect/Brand").Brand<"MessageId">) | null;
31
33
  readonly replyTo?: readonly string[] | null;
32
34
  readonly unsubscribeGroupId?: (string & import("effect/Brand").Brand<"UnsubscribeId">) | null;
@@ -111,6 +113,8 @@ export declare const list: ((input?: {
111
113
  readonly templateData?: {
112
114
  readonly [x: string]: import("./generated").JsonValue;
113
115
  } | null;
116
+ readonly locale?: string;
117
+ readonly timeZone?: string;
114
118
  readonly inReplyToMessageId?: (string & import("effect/Brand").Brand<"MessageId">) | null;
115
119
  readonly replyTo?: readonly string[] | null;
116
120
  readonly unsubscribeGroupId?: (string & import("effect/Brand").Brand<"UnsubscribeId">) | null;
@@ -194,6 +198,8 @@ export declare const list: ((input?: {
194
198
  readonly templateData?: {
195
199
  readonly [x: string]: import("./generated").JsonValue;
196
200
  } | null;
201
+ readonly locale?: string;
202
+ readonly timeZone?: string;
197
203
  readonly inReplyToMessageId?: (string & import("effect/Brand").Brand<"MessageId">) | null;
198
204
  readonly replyTo?: readonly string[] | null;
199
205
  readonly unsubscribeGroupId?: (string & import("effect/Brand").Brand<"UnsubscribeId">) | null;
@@ -290,6 +296,8 @@ export declare const create: (input: {
290
296
  readonly [x: string]: string | number | boolean | any | any | null | undefined;
291
297
  } | null | undefined;
292
298
  } | null | undefined;
299
+ readonly locale?: string | undefined;
300
+ readonly timeZone?: string | undefined;
293
301
  readonly inReplyToMessageId?: string | null | undefined;
294
302
  readonly replyTo?: readonly string[] | null | undefined;
295
303
  readonly unsubscribeGroupId?: string | null | undefined;
@@ -364,6 +372,8 @@ export declare const create: (input: {
364
372
  readonly templateData?: {
365
373
  readonly [x: string]: import("./generated").JsonValue;
366
374
  } | null;
375
+ readonly locale?: string;
376
+ readonly timeZone?: string;
367
377
  readonly inReplyToMessageId?: (string & import("effect/Brand").Brand<"MessageId">) | null;
368
378
  readonly replyTo?: readonly string[] | null;
369
379
  readonly unsubscribeGroupId?: (string & import("effect/Brand").Brand<"UnsubscribeId">) | null;
@@ -437,6 +447,8 @@ export declare const get: (input: {
437
447
  readonly templateData?: {
438
448
  readonly [x: string]: import("./generated").JsonValue;
439
449
  } | null;
450
+ readonly locale?: string;
451
+ readonly timeZone?: string;
440
452
  readonly inReplyToMessageId?: (string & import("effect/Brand").Brand<"MessageId">) | null;
441
453
  readonly replyTo?: readonly string[] | null;
442
454
  readonly unsubscribeGroupId?: (string & import("effect/Brand").Brand<"UnsubscribeId">) | null;
@@ -510,6 +522,8 @@ export declare const archive: (input: {
510
522
  readonly templateData?: {
511
523
  readonly [x: string]: import("./generated").JsonValue;
512
524
  } | null;
525
+ readonly locale?: string;
526
+ readonly timeZone?: string;
513
527
  readonly inReplyToMessageId?: (string & import("effect/Brand").Brand<"MessageId">) | null;
514
528
  readonly replyTo?: readonly string[] | null;
515
529
  readonly unsubscribeGroupId?: (string & import("effect/Brand").Brand<"UnsubscribeId">) | null;
@@ -604,6 +618,8 @@ export declare const update: (input: {
604
618
  readonly [x: string]: string | number | boolean | any | any | null | undefined;
605
619
  } | null | undefined;
606
620
  } | null | undefined;
621
+ readonly locale?: string | undefined;
622
+ readonly timeZone?: string | undefined;
607
623
  readonly inReplyToMessageId?: string | null | undefined;
608
624
  readonly replyTo?: readonly string[] | null | undefined;
609
625
  readonly unsubscribeGroupId?: string | null | undefined;
@@ -678,6 +694,8 @@ export declare const update: (input: {
678
694
  readonly templateData?: {
679
695
  readonly [x: string]: import("./generated").JsonValue;
680
696
  } | null;
697
+ readonly locale?: string;
698
+ readonly timeZone?: string;
681
699
  readonly inReplyToMessageId?: (string & import("effect/Brand").Brand<"MessageId">) | null;
682
700
  readonly replyTo?: readonly string[] | null;
683
701
  readonly unsubscribeGroupId?: (string & import("effect/Brand").Brand<"UnsubscribeId">) | null;
@@ -759,6 +777,8 @@ export declare const listRuns: ((input: {
759
777
  readonly templateData?: {
760
778
  readonly [x: string]: import("./generated").JsonValue;
761
779
  } | null;
780
+ readonly locale?: string;
781
+ readonly timeZone?: string;
762
782
  readonly inReplyToMessageId?: (string & import("effect/Brand").Brand<"MessageId">) | null;
763
783
  readonly replyTo?: readonly string[] | null;
764
784
  readonly unsubscribeGroupId?: (string & import("effect/Brand").Brand<"UnsubscribeId">) | null;
@@ -841,6 +861,8 @@ export declare const listRuns: ((input: {
841
861
  readonly templateData?: {
842
862
  readonly [x: string]: import("./generated").JsonValue;
843
863
  } | null;
864
+ readonly locale?: string;
865
+ readonly timeZone?: string;
844
866
  readonly inReplyToMessageId?: (string & import("effect/Brand").Brand<"MessageId">) | null;
845
867
  readonly replyTo?: readonly string[] | null;
846
868
  readonly unsubscribeGroupId?: (string & import("effect/Brand").Brand<"UnsubscribeId">) | null;
@@ -922,6 +944,8 @@ export declare const listRuns: ((input: {
922
944
  readonly templateData?: {
923
945
  readonly [x: string]: import("./generated").JsonValue;
924
946
  } | null;
947
+ readonly locale?: string;
948
+ readonly timeZone?: string;
925
949
  readonly inReplyToMessageId?: (string & import("effect/Brand").Brand<"MessageId">) | null;
926
950
  readonly replyTo?: readonly string[] | null;
927
951
  readonly unsubscribeGroupId?: (string & import("effect/Brand").Brand<"UnsubscribeId">) | null;
@@ -996,6 +1020,8 @@ export declare const scheduleRun: (input: {
996
1020
  readonly templateData?: {
997
1021
  readonly [x: string]: import("./generated").JsonValue;
998
1022
  } | null;
1023
+ readonly locale?: string;
1024
+ readonly timeZone?: string;
999
1025
  readonly inReplyToMessageId?: (string & import("effect/Brand").Brand<"MessageId">) | null;
1000
1026
  readonly replyTo?: readonly string[] | null;
1001
1027
  readonly unsubscribeGroupId?: (string & import("effect/Brand").Brand<"UnsubscribeId">) | null;
@@ -1068,6 +1094,8 @@ export declare const getRun: (input: {
1068
1094
  readonly templateData?: {
1069
1095
  readonly [x: string]: import("./generated").JsonValue;
1070
1096
  } | null;
1097
+ readonly locale?: string;
1098
+ readonly timeZone?: string;
1071
1099
  readonly inReplyToMessageId?: (string & import("effect/Brand").Brand<"MessageId">) | null;
1072
1100
  readonly replyTo?: readonly string[] | null;
1073
1101
  readonly unsubscribeGroupId?: (string & import("effect/Brand").Brand<"UnsubscribeId">) | null;
@@ -1142,6 +1170,8 @@ export declare const pauseRun: (input: {
1142
1170
  readonly templateData?: {
1143
1171
  readonly [x: string]: import("./generated").JsonValue;
1144
1172
  } | null;
1173
+ readonly locale?: string;
1174
+ readonly timeZone?: string;
1145
1175
  readonly inReplyToMessageId?: (string & import("effect/Brand").Brand<"MessageId">) | null;
1146
1176
  readonly replyTo?: readonly string[] | null;
1147
1177
  readonly unsubscribeGroupId?: (string & import("effect/Brand").Brand<"UnsubscribeId">) | null;
@@ -1217,6 +1247,8 @@ export declare const resumeRun: (input: {
1217
1247
  readonly templateData?: {
1218
1248
  readonly [x: string]: import("./generated").JsonValue;
1219
1249
  } | null;
1250
+ readonly locale?: string;
1251
+ readonly timeZone?: string;
1220
1252
  readonly inReplyToMessageId?: (string & import("effect/Brand").Brand<"MessageId">) | null;
1221
1253
  readonly replyTo?: readonly string[] | null;
1222
1254
  readonly unsubscribeGroupId?: (string & import("effect/Brand").Brand<"UnsubscribeId">) | null;
@@ -1292,6 +1324,8 @@ export declare const cancelRun: (input: {
1292
1324
  readonly templateData?: {
1293
1325
  readonly [x: string]: import("./generated").JsonValue;
1294
1326
  } | null;
1327
+ readonly locale?: string;
1328
+ readonly timeZone?: string;
1295
1329
  readonly inReplyToMessageId?: (string & import("effect/Brand").Brand<"MessageId">) | null;
1296
1330
  readonly replyTo?: readonly string[] | null;
1297
1331
  readonly unsubscribeGroupId?: (string & import("effect/Brand").Brand<"UnsubscribeId">) | null;
@@ -1,5 +1,5 @@
1
1
  import { t as __exportAll } from "../rolldown-runtime-D7D4PA-g.js";
2
- import { n as make } from "../operation-Cb5V9FJ7.js";
2
+ import { n as make } from "../operation-D2nEeKBD.js";
3
3
  //#region src/effect/campaigns.ts
4
4
  var campaigns_exports = /* @__PURE__ */ __exportAll({
5
5
  archive: () => archive,
@@ -1,5 +1,5 @@
1
1
  import { t as __exportAll } from "../rolldown-runtime-D7D4PA-g.js";
2
- import { i as raw, n as layer, r as layerFetch, t as Service } from "../client-5O8KsY5Z.js";
2
+ import { i as raw, n as layer, r as layerFetch, t as Service } from "../client-ByJHYp7r.js";
3
3
  //#region src/effect/client.ts
4
4
  var client_exports = /* @__PURE__ */ __exportAll({
5
5
  Service: () => Service,
@@ -1,5 +1,5 @@
1
1
  import { t as __exportAll } from "../rolldown-runtime-D7D4PA-g.js";
2
- import { n as make } from "../operation-Cb5V9FJ7.js";
2
+ import { n as make } from "../operation-D2nEeKBD.js";
3
3
  //#region src/effect/contact-groups.ts
4
4
  var contact_groups_exports = /* @__PURE__ */ __exportAll({
5
5
  addMembers: () => addMembers,
@@ -1,5 +1,5 @@
1
1
  import { t as __exportAll } from "../rolldown-runtime-D7D4PA-g.js";
2
- import { n as make } from "../operation-Cb5V9FJ7.js";
2
+ import { n as make } from "../operation-D2nEeKBD.js";
3
3
  //#region src/effect/contacts.ts
4
4
  var contacts_exports = /* @__PURE__ */ __exportAll({
5
5
  bulkDelete: () => bulkDelete,
@@ -33,7 +33,7 @@ export declare const list: ((input?: {
33
33
  readonly activeActorIds: readonly (string & import("effect/Brand").Brand<"ActorId">)[];
34
34
  readonly actorHistory: readonly {
35
35
  readonly actorId: string & import("effect/Brand").Brand<"ActorId">;
36
- readonly actorType: "agent" | "contact" | "sender_identity" | "system" | "user";
36
+ readonly actorType: "agent" | "contact" | "sender" | "system" | "user";
37
37
  readonly joinedAt: string;
38
38
  readonly leftAt?: string | null;
39
39
  readonly role: "initiator" | "observer" | "responder";
@@ -129,7 +129,7 @@ export declare const list: ((input?: {
129
129
  readonly activeActorIds: readonly (string & import("effect/Brand").Brand<"ActorId">)[];
130
130
  readonly actorHistory: readonly {
131
131
  readonly actorId: string & import("effect/Brand").Brand<"ActorId">;
132
- readonly actorType: "agent" | "contact" | "sender_identity" | "system" | "user";
132
+ readonly actorType: "agent" | "contact" | "sender" | "system" | "user";
133
133
  readonly joinedAt: string;
134
134
  readonly leftAt?: string | null;
135
135
  readonly role: "initiator" | "observer" | "responder";
@@ -224,7 +224,7 @@ export declare const list: ((input?: {
224
224
  readonly activeActorIds: readonly (string & import("effect/Brand").Brand<"ActorId">)[];
225
225
  readonly actorHistory: readonly {
226
226
  readonly actorId: string & import("effect/Brand").Brand<"ActorId">;
227
- readonly actorType: "agent" | "contact" | "sender_identity" | "system" | "user";
227
+ readonly actorType: "agent" | "contact" | "sender" | "system" | "user";
228
228
  readonly joinedAt: string;
229
229
  readonly leftAt?: string | null;
230
230
  readonly role: "initiator" | "observer" | "responder";
@@ -467,7 +467,7 @@ export declare const create: (input: {
467
467
  readonly activeActorIds: readonly (string & import("effect/Brand").Brand<"ActorId">)[];
468
468
  readonly actorHistory: readonly {
469
469
  readonly actorId: string & import("effect/Brand").Brand<"ActorId">;
470
- readonly actorType: "agent" | "contact" | "sender_identity" | "system" | "user";
470
+ readonly actorType: "agent" | "contact" | "sender" | "system" | "user";
471
471
  readonly joinedAt: string;
472
472
  readonly leftAt?: string | null;
473
473
  readonly role: "initiator" | "observer" | "responder";
@@ -549,7 +549,7 @@ export declare const getById: (input: {
549
549
  readonly activeActorIds: readonly (string & import("effect/Brand").Brand<"ActorId">)[];
550
550
  readonly actorHistory: readonly {
551
551
  readonly actorId: string & import("effect/Brand").Brand<"ActorId">;
552
- readonly actorType: "agent" | "contact" | "sender_identity" | "system" | "user";
552
+ readonly actorType: "agent" | "contact" | "sender" | "system" | "user";
553
553
  readonly joinedAt: string;
554
554
  readonly leftAt?: string | null;
555
555
  readonly role: "initiator" | "observer" | "responder";
@@ -604,7 +604,7 @@ export declare const getById: (input: {
604
604
  readonly createdBy: (string & import("effect/Brand").Brand<"ActorId">) | null;
605
605
  readonly participants: readonly {
606
606
  readonly actorId: string & import("effect/Brand").Brand<"ActorId">;
607
- readonly actorType: "agent" | "contact" | "sender_identity" | "system" | "user";
607
+ readonly actorType: "agent" | "contact" | "sender" | "system" | "user";
608
608
  readonly contact: {
609
609
  readonly id: string;
610
610
  readonly name: string;
@@ -1406,7 +1406,7 @@ export declare const update: (input: {
1406
1406
  readonly activeActorIds: readonly (string & import("effect/Brand").Brand<"ActorId">)[];
1407
1407
  readonly actorHistory: readonly {
1408
1408
  readonly actorId: string & import("effect/Brand").Brand<"ActorId">;
1409
- readonly actorType: "agent" | "contact" | "sender_identity" | "system" | "user";
1409
+ readonly actorType: "agent" | "contact" | "sender" | "system" | "user";
1410
1410
  readonly joinedAt: string;
1411
1411
  readonly leftAt?: string | null;
1412
1412
  readonly role: "initiator" | "observer" | "responder";
@@ -1489,7 +1489,7 @@ export declare const addContacts: (input: {
1489
1489
  readonly activeActorIds: readonly (string & import("effect/Brand").Brand<"ActorId">)[];
1490
1490
  readonly actorHistory: readonly {
1491
1491
  readonly actorId: string & import("effect/Brand").Brand<"ActorId">;
1492
- readonly actorType: "agent" | "contact" | "sender_identity" | "system" | "user";
1492
+ readonly actorType: "agent" | "contact" | "sender" | "system" | "user";
1493
1493
  readonly joinedAt: string;
1494
1494
  readonly leftAt?: string | null;
1495
1495
  readonly role: "initiator" | "observer" | "responder";
@@ -1572,7 +1572,7 @@ export declare const removeContacts: (input: {
1572
1572
  readonly activeActorIds: readonly (string & import("effect/Brand").Brand<"ActorId">)[];
1573
1573
  readonly actorHistory: readonly {
1574
1574
  readonly actorId: string & import("effect/Brand").Brand<"ActorId">;
1575
- readonly actorType: "agent" | "contact" | "sender_identity" | "system" | "user";
1575
+ readonly actorType: "agent" | "contact" | "sender" | "system" | "user";
1576
1576
  readonly joinedAt: string;
1577
1577
  readonly leftAt?: string | null;
1578
1578
  readonly role: "initiator" | "observer" | "responder";
@@ -1,5 +1,5 @@
1
1
  import { t as __exportAll } from "../rolldown-runtime-D7D4PA-g.js";
2
- import { n as make } from "../operation-Cb5V9FJ7.js";
2
+ import { n as make } from "../operation-D2nEeKBD.js";
3
3
  //#region src/effect/conversations.ts
4
4
  var conversations_exports = /* @__PURE__ */ __exportAll({
5
5
  addContacts: () => addContacts,
@@ -1,5 +1,5 @@
1
1
  import { t as __exportAll } from "../rolldown-runtime-D7D4PA-g.js";
2
- import { n as make } from "../operation-Cb5V9FJ7.js";
2
+ import { n as make } from "../operation-D2nEeKBD.js";
3
3
  //#region src/effect/custom-fields.ts
4
4
  var custom_fields_exports = /* @__PURE__ */ __exportAll({
5
5
  create: () => create,
@@ -1,6 +1,6 @@
1
1
  import { t as __exportAll } from "../rolldown-runtime-D7D4PA-g.js";
2
- import { n as make, r as sendEmail, t as addEmailSender } from "../operation-Cb5V9FJ7.js";
3
- import { E as TrackingRecipientEmail } from "../client-5O8KsY5Z.js";
2
+ import { n as make, r as sendEmail, t as addEmailSender } from "../operation-D2nEeKBD.js";
3
+ import { E as TrackingRecipientEmail } from "../client-ByJHYp7r.js";
4
4
  //#region src/effect/email.ts
5
5
  var email_exports = /* @__PURE__ */ __exportAll({
6
6
  TrackingRecipientEmail: () => TrackingRecipientEmail,