samva 0.6.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 (53) hide show
  1. package/README.md +2 -2
  2. package/dist/{categories-4u9Az4No.js → categories-DvsHUJtX.js} +9 -1
  3. package/dist/client/sdk.gen.d.ts +119 -33
  4. package/dist/client/types.gen.d.ts +643 -142
  5. package/dist/{client-DCM6U0-I.js → client-ByJHYp7r.js} +612 -223
  6. package/dist/{client-attribution-DYUSAa76.js → client-attribution-N5A784Zo.js} +2 -2
  7. package/dist/effect/analytics.js +1 -1
  8. package/dist/effect/api-keys.js +1 -1
  9. package/dist/effect/attachments.js +1 -1
  10. package/dist/effect/brands.d.ts +212 -0
  11. package/dist/effect/brands.js +24 -0
  12. package/dist/effect/campaigns.d.ts +35 -1
  13. package/dist/effect/campaigns.js +1 -1
  14. package/dist/effect/categories.js +1 -1
  15. package/dist/effect/client.js +1 -1
  16. package/dist/effect/contact-groups.js +1 -1
  17. package/dist/effect/contacts.js +1 -1
  18. package/dist/effect/conversations.d.ts +21 -12
  19. package/dist/effect/conversations.js +1 -1
  20. package/dist/effect/custom-fields.js +1 -1
  21. package/dist/effect/email.d.ts +17 -6
  22. package/dist/effect/email.js +2 -2
  23. package/dist/effect/generated-metadata.d.ts +8 -0
  24. package/dist/effect/generated.d.ts +2880 -1661
  25. package/dist/effect/index.d.ts +2 -2
  26. package/dist/effect/index.js +4 -4
  27. package/dist/effect/internal/operation.d.ts +10 -4
  28. package/dist/effect/media.js +1 -1
  29. package/dist/effect/messages.d.ts +24 -6
  30. package/dist/effect/messages.js +1 -1
  31. package/dist/effect/operations.js +1 -1
  32. package/dist/effect/organizations.d.ts +5 -268
  33. package/dist/effect/organizations.js +4 -2
  34. package/dist/effect/retry.js +1 -1
  35. package/dist/effect/scheduled-messages.d.ts +16 -0
  36. package/dist/effect/scheduled-messages.js +1 -1
  37. package/dist/effect/templates.d.ts +260 -38
  38. package/dist/effect/templates.js +7 -3
  39. package/dist/effect/unsubscribe-groups.d.ts +17 -0
  40. package/dist/effect/unsubscribe-groups.js +4 -2
  41. package/dist/effect/webhooks.d.ts +6 -6
  42. package/dist/effect/webhooks.js +2 -2
  43. package/dist/index.js +2 -2
  44. package/dist/{operation-02YX3hY9.js → operation-D2nEeKBD.js} +34 -5
  45. package/dist/promises/errors.gen.d.ts +22 -4
  46. package/dist/promises/index.d.ts +3 -3
  47. package/dist/promises/index.js +2 -2
  48. package/dist/promises/types.gen.d.ts +1 -1
  49. package/dist/{promises-8MaPNAam.js → promises-DAv8ZtOX.js} +376 -52
  50. package/dist/service-map.d.ts +45 -6
  51. package/package.json +7 -7
  52. package/dist/effect/design.d.ts +0 -209
  53. package/dist/effect/design.js +0 -13
@@ -57,6 +57,8 @@ export declare const list: ((input?: {
57
57
  readonly templateData?: {
58
58
  readonly [x: string]: import("./generated").JsonValue;
59
59
  } | null;
60
+ readonly locale?: string;
61
+ readonly timeZone?: string;
60
62
  readonly inReplyToMessageId?: (string & import("effect/Brand").Brand<"MessageId">) | null;
61
63
  readonly replyTo?: readonly string[] | null;
62
64
  readonly unsubscribeGroupId?: (string & import("effect/Brand").Brand<"UnsubscribeId">) | null;
@@ -146,6 +148,8 @@ export declare const list: ((input?: {
146
148
  readonly templateData?: {
147
149
  readonly [x: string]: import("./generated").JsonValue;
148
150
  } | null;
151
+ readonly locale?: string;
152
+ readonly timeZone?: string;
149
153
  readonly inReplyToMessageId?: (string & import("effect/Brand").Brand<"MessageId">) | null;
150
154
  readonly replyTo?: readonly string[] | null;
151
155
  readonly unsubscribeGroupId?: (string & import("effect/Brand").Brand<"UnsubscribeId">) | null;
@@ -234,6 +238,8 @@ export declare const list: ((input?: {
234
238
  readonly templateData?: {
235
239
  readonly [x: string]: import("./generated").JsonValue;
236
240
  } | null;
241
+ readonly locale?: string;
242
+ readonly timeZone?: string;
237
243
  readonly inReplyToMessageId?: (string & import("effect/Brand").Brand<"MessageId">) | null;
238
244
  readonly replyTo?: readonly string[] | null;
239
245
  readonly unsubscribeGroupId?: (string & import("effect/Brand").Brand<"UnsubscribeId">) | null;
@@ -356,6 +362,8 @@ export declare const create: (input: {
356
362
  readonly [x: string]: string | number | boolean | any | any | null | undefined;
357
363
  } | null | undefined;
358
364
  } | null | undefined;
365
+ readonly locale?: string | undefined;
366
+ readonly timeZone?: string | undefined;
359
367
  readonly inReplyToMessageId?: string | null | undefined;
360
368
  readonly replyTo?: readonly string[] | null | undefined;
361
369
  readonly unsubscribeGroupId?: string | null | undefined;
@@ -426,6 +434,8 @@ export declare const create: (input: {
426
434
  readonly templateData?: {
427
435
  readonly [x: string]: import("./generated").JsonValue;
428
436
  } | null;
437
+ readonly locale?: string;
438
+ readonly timeZone?: string;
429
439
  readonly inReplyToMessageId?: (string & import("effect/Brand").Brand<"MessageId">) | null;
430
440
  readonly replyTo?: readonly string[] | null;
431
441
  readonly unsubscribeGroupId?: (string & import("effect/Brand").Brand<"UnsubscribeId">) | null;
@@ -505,6 +515,8 @@ export declare const get: (input: {
505
515
  readonly templateData?: {
506
516
  readonly [x: string]: import("./generated").JsonValue;
507
517
  } | null;
518
+ readonly locale?: string;
519
+ readonly timeZone?: string;
508
520
  readonly inReplyToMessageId?: (string & import("effect/Brand").Brand<"MessageId">) | null;
509
521
  readonly replyTo?: readonly string[] | null;
510
522
  readonly unsubscribeGroupId?: (string & import("effect/Brand").Brand<"UnsubscribeId">) | null;
@@ -586,6 +598,8 @@ export declare const cancel: (input: {
586
598
  readonly templateData?: {
587
599
  readonly [x: string]: import("./generated").JsonValue;
588
600
  } | null;
601
+ readonly locale?: string;
602
+ readonly timeZone?: string;
589
603
  readonly inReplyToMessageId?: (string & import("effect/Brand").Brand<"MessageId">) | null;
590
604
  readonly replyTo?: readonly string[] | null;
591
605
  readonly unsubscribeGroupId?: (string & import("effect/Brand").Brand<"UnsubscribeId">) | null;
@@ -671,6 +685,8 @@ export declare const resume: (input: {
671
685
  readonly templateData?: {
672
686
  readonly [x: string]: import("./generated").JsonValue;
673
687
  } | null;
688
+ readonly locale?: string;
689
+ readonly timeZone?: string;
674
690
  readonly inReplyToMessageId?: (string & import("effect/Brand").Brand<"MessageId">) | null;
675
691
  readonly replyTo?: readonly string[] | null;
676
692
  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-02YX3hY9.js";
2
+ import { n as make } from "../operation-D2nEeKBD.js";
3
3
  //#region src/effect/scheduled-messages.ts
4
4
  var scheduled_messages_exports = /* @__PURE__ */ __exportAll({
5
5
  cancel: () => cancel,
@@ -6,6 +6,7 @@ export declare const list: ((input?: {
6
6
  readonly channel?: string | null | undefined;
7
7
  readonly status?: string | null | undefined;
8
8
  readonly search?: string | null | undefined;
9
+ readonly projectId?: string | null | undefined;
9
10
  readonly sortBy?: string | null | undefined;
10
11
  readonly sortOrder?: string | null | undefined;
11
12
  } | undefined) => import("effect/Effect").Effect<{
@@ -37,6 +38,11 @@ export declare const list: ((input?: {
37
38
  } | null;
38
39
  } | null;
39
40
  readonly publicationId: (string & import("effect/Brand").Brand<"TemplatePublicationId">) | null;
41
+ readonly brand: {
42
+ readonly slug: string;
43
+ readonly digest: string;
44
+ readonly stale: boolean;
45
+ } | null;
40
46
  readonly inputContractId: (string & import("effect/Brand").Brand<"TemplateInputContractId">) | null;
41
47
  readonly inputSchema: {
42
48
  readonly [x: string]: import("./generated").JsonValue;
@@ -65,6 +71,7 @@ export declare const list: ((input?: {
65
71
  readonly channel?: string | null | undefined;
66
72
  readonly status?: string | null | undefined;
67
73
  readonly search?: string | null | undefined;
74
+ readonly projectId?: string | null | undefined;
68
75
  readonly sortBy?: string | null | undefined;
69
76
  readonly sortOrder?: string | null | undefined;
70
77
  } | undefined) => import("effect/Stream").Stream<{
@@ -96,6 +103,11 @@ export declare const list: ((input?: {
96
103
  } | null;
97
104
  } | null;
98
105
  readonly publicationId: (string & import("effect/Brand").Brand<"TemplatePublicationId">) | null;
106
+ readonly brand: {
107
+ readonly slug: string;
108
+ readonly digest: string;
109
+ readonly stale: boolean;
110
+ } | null;
99
111
  readonly inputContractId: (string & import("effect/Brand").Brand<"TemplateInputContractId">) | null;
100
112
  readonly inputSchema: {
101
113
  readonly [x: string]: import("./generated").JsonValue;
@@ -124,6 +136,7 @@ export declare const list: ((input?: {
124
136
  readonly channel?: string | null | undefined;
125
137
  readonly status?: string | null | undefined;
126
138
  readonly search?: string | null | undefined;
139
+ readonly projectId?: string | null | undefined;
127
140
  readonly sortBy?: string | null | undefined;
128
141
  readonly sortOrder?: string | null | undefined;
129
142
  } | undefined) => import("effect/Stream").Stream<{
@@ -154,6 +167,11 @@ export declare const list: ((input?: {
154
167
  } | null;
155
168
  } | null;
156
169
  readonly publicationId: (string & import("effect/Brand").Brand<"TemplatePublicationId">) | null;
170
+ readonly brand: {
171
+ readonly slug: string;
172
+ readonly digest: string;
173
+ readonly stale: boolean;
174
+ } | null;
157
175
  readonly inputContractId: (string & import("effect/Brand").Brand<"TemplateInputContractId">) | null;
158
176
  readonly inputSchema: {
159
177
  readonly [x: string]: import("./generated").JsonValue;
@@ -174,6 +192,7 @@ export declare const create: (input: {
174
192
  readonly projectName?: string | null | undefined;
175
193
  readonly slug?: string | null | undefined;
176
194
  readonly galleryTemplateId?: string | null | undefined;
195
+ readonly useBrand?: boolean | null | undefined;
177
196
  readonly description?: string | null | undefined;
178
197
  readonly category?: string | null | undefined;
179
198
  readonly isActive?: boolean | null | undefined;
@@ -206,6 +225,11 @@ export declare const create: (input: {
206
225
  } | null;
207
226
  } | null;
208
227
  readonly publicationId: (string & import("effect/Brand").Brand<"TemplatePublicationId">) | null;
228
+ readonly brand: {
229
+ readonly slug: string;
230
+ readonly digest: string;
231
+ readonly stale: boolean;
232
+ } | null;
209
233
  readonly inputContractId: (string & import("effect/Brand").Brand<"TemplateInputContractId">) | null;
210
234
  readonly inputSchema: {
211
235
  readonly [x: string]: import("./generated").JsonValue;
@@ -220,6 +244,60 @@ export declare const create: (input: {
220
244
  readonly createdAt: string;
221
245
  readonly updatedAt: string;
222
246
  }, import("./generated").ConflictError | import("./generated").ForbiddenError | import("./generated").GatewayTimeoutError | import("effect/unstable/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("effect/Schema").SchemaError | import("./generated").UnauthorizedError | import("./generated").ValidationError, import("./client").Service>;
247
+ export declare const addEntry: (input: {
248
+ readonly projectId: string;
249
+ readonly entryPath: string;
250
+ readonly name: string;
251
+ readonly slug: string;
252
+ readonly description?: string | null | undefined;
253
+ readonly category?: string | null | undefined;
254
+ }) => import("effect/Effect").Effect<{
255
+ readonly id: string & import("effect/Brand").Brand<"TemplateId">;
256
+ readonly organizationId: string & import("effect/Brand").Brand<"OrganizationId">;
257
+ readonly projectId: string & import("effect/Brand").Brand<"TemplateProjectId">;
258
+ readonly entryPath: string;
259
+ readonly name: string;
260
+ readonly slug: string;
261
+ readonly familyId: (string & import("effect/Brand").Brand<"TemplateFamilyId">) | null;
262
+ readonly channel: "email";
263
+ readonly description: string | null;
264
+ readonly category: string | null;
265
+ readonly fromDefault?: {
266
+ readonly email: string;
267
+ readonly name?: string | null;
268
+ } | null;
269
+ readonly replyToDefault?: readonly string[] | null;
270
+ readonly trackingDefault?: {
271
+ readonly opens?: boolean | null;
272
+ readonly clicks?: boolean | null;
273
+ } | null;
274
+ readonly email: {
275
+ readonly subject: string;
276
+ readonly preheader: string | null;
277
+ readonly headers: {
278
+ readonly [x: string]: string;
279
+ } | null;
280
+ } | null;
281
+ readonly publicationId: (string & import("effect/Brand").Brand<"TemplatePublicationId">) | null;
282
+ readonly brand: {
283
+ readonly slug: string;
284
+ readonly digest: string;
285
+ readonly stale: boolean;
286
+ } | null;
287
+ readonly inputContractId: (string & import("effect/Brand").Brand<"TemplateInputContractId">) | null;
288
+ readonly inputSchema: {
289
+ readonly [x: string]: import("./generated").JsonValue;
290
+ } | null;
291
+ readonly usageCount: number;
292
+ readonly lastUsedAt: string | null;
293
+ readonly status: string;
294
+ readonly isActive: boolean;
295
+ readonly isDefault: boolean;
296
+ readonly publishedAt?: string | null;
297
+ readonly publishedBy?: string | null;
298
+ readonly createdAt: string;
299
+ readonly updatedAt: string;
300
+ }, import("./generated").ConflictError | import("./generated").ForbiddenError | import("./generated").GatewayTimeoutError | import("effect/unstable/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("./generated").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./generated").UnauthorizedError | import("./generated").ValidationError, import("./client").Service>;
223
301
  export declare const listFamilies: ((input?: {
224
302
  readonly page?: string | null | undefined;
225
303
  readonly limit?: string | null | undefined;
@@ -450,6 +528,11 @@ export declare const getById: (input: {
450
528
  } | null;
451
529
  } | null;
452
530
  readonly publicationId: (string & import("effect/Brand").Brand<"TemplatePublicationId">) | null;
531
+ readonly brand: {
532
+ readonly slug: string;
533
+ readonly digest: string;
534
+ readonly stale: boolean;
535
+ } | null;
453
536
  readonly inputContractId: (string & import("effect/Brand").Brand<"TemplateInputContractId">) | null;
454
537
  readonly inputSchema: {
455
538
  readonly [x: string]: import("./generated").JsonValue;
@@ -474,6 +557,7 @@ export declare const update: (input: {
474
557
  readonly data: {
475
558
  readonly name?: string | null | undefined;
476
559
  readonly slug?: string | null | undefined;
560
+ readonly entryPath?: string | null | undefined;
477
561
  readonly description?: string | null | undefined;
478
562
  readonly category?: string | null | undefined;
479
563
  readonly fromDefault?: {
@@ -511,6 +595,11 @@ export declare const update: (input: {
511
595
  } | null;
512
596
  } | null;
513
597
  readonly publicationId: (string & import("effect/Brand").Brand<"TemplatePublicationId">) | null;
598
+ readonly brand: {
599
+ readonly slug: string;
600
+ readonly digest: string;
601
+ readonly stale: boolean;
602
+ } | null;
514
603
  readonly inputContractId: (string & import("effect/Brand").Brand<"TemplateInputContractId">) | null;
515
604
  readonly inputSchema: {
516
605
  readonly [x: string]: import("./generated").JsonValue;
@@ -712,6 +801,94 @@ export declare const patchWorkspace: (input: {
712
801
  readonly [x: string]: string;
713
802
  };
714
803
  }, import("./generated").ConflictError | import("./generated").ForbiddenError | import("./generated").GatewayTimeoutError | import("effect/unstable/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("./generated").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./generated").UnauthorizedError, import("./client").Service>;
804
+ export declare const putWorkspaceAsset: (input: {
805
+ readonly id: string;
806
+ readonly expectedRevision: string;
807
+ readonly path: string;
808
+ readonly contentBase64: string;
809
+ readonly replace: boolean;
810
+ readonly idempotencyKey: string;
811
+ }) => import("effect/Effect").Effect<{
812
+ readonly workspace: {
813
+ readonly projectId: string & import("effect/Brand").Brand<"TemplateProjectId">;
814
+ readonly organizationId: (string & import("effect/Brand").Brand<"OrganizationId">) | null;
815
+ readonly ownerEpoch: number;
816
+ readonly repositoryName: string;
817
+ readonly defaultBranch: string;
818
+ readonly baseCommit: string;
819
+ readonly remoteHead: string;
820
+ readonly pendingRemoteHead: string | null;
821
+ readonly revision: string;
822
+ readonly overlay: {
823
+ readonly [x: string]: string | null;
824
+ };
825
+ readonly assetChanges: readonly {
826
+ readonly path: string;
827
+ readonly status: "added" | "deleted" | "modified";
828
+ }[];
829
+ readonly conflicts: readonly {
830
+ readonly path: string;
831
+ readonly base: string | null;
832
+ readonly draft: string | null;
833
+ readonly main: string | null;
834
+ }[];
835
+ readonly provenance: {
836
+ readonly references: readonly {
837
+ readonly kind: string;
838
+ readonly digest: string;
839
+ readonly locator?: string;
840
+ }[];
841
+ };
842
+ readonly mounts: readonly ({
843
+ readonly kind: "project";
844
+ readonly root: "/project";
845
+ readonly access: "read-write";
846
+ } | {
847
+ readonly root: string;
848
+ readonly digest: string;
849
+ readonly fileCount: number;
850
+ readonly byteSize: number;
851
+ readonly kind: "started-from";
852
+ readonly access: "read-only";
853
+ readonly templateId: string;
854
+ readonly slug: string;
855
+ readonly name: string;
856
+ } | {
857
+ readonly root: string;
858
+ readonly digest: string;
859
+ readonly fileCount: number;
860
+ readonly byteSize: number;
861
+ readonly kind: "resource";
862
+ readonly access: "read-only";
863
+ readonly resourceId: string;
864
+ readonly name: string;
865
+ } | {
866
+ readonly root: string;
867
+ readonly digest: string;
868
+ readonly fileCount: number;
869
+ readonly byteSize: number;
870
+ readonly kind: "library-template";
871
+ readonly access: "read-only";
872
+ readonly templateId: string;
873
+ readonly slug: string;
874
+ readonly name: string;
875
+ })[];
876
+ readonly libraryManifestDigest: string;
877
+ readonly createdAt: string;
878
+ readonly updatedAt: string;
879
+ readonly createdBy: {
880
+ readonly userId: string & import("effect/Brand").Brand<"UserId">;
881
+ readonly via: "agent" | "api" | "mcp";
882
+ };
883
+ readonly updatedBy: {
884
+ readonly userId: string & import("effect/Brand").Brand<"UserId">;
885
+ readonly via: "agent" | "api" | "mcp";
886
+ };
887
+ };
888
+ readonly files: {
889
+ readonly [x: string]: string;
890
+ };
891
+ }, import("./generated").ConflictError | import("./generated").ForbiddenError | import("./generated").GatewayTimeoutError | import("effect/unstable/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("./generated").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./generated").UnauthorizedError | import("./generated").ValidationError, import("./client").Service>;
715
892
  export declare const resolveWorkspaceConflict: (input: {
716
893
  readonly id: string;
717
894
  readonly expectedRevision: string;
@@ -1228,10 +1405,6 @@ export declare const checkWorkspace: (input: {
1228
1405
  readonly schemaDigest: string;
1229
1406
  readonly contractDigest: string;
1230
1407
  };
1231
- readonly runtime: {
1232
- readonly now?: number;
1233
- readonly randomSeed?: number;
1234
- };
1235
1408
  readonly fixtures: readonly string[];
1236
1409
  } | null;
1237
1410
  readonly diagnostics: readonly {
@@ -1299,10 +1472,6 @@ export declare const renderWorkspaceFixture: (input: {
1299
1472
  readonly schemaDigest: string;
1300
1473
  readonly contractDigest: string;
1301
1474
  };
1302
- readonly runtime: {
1303
- readonly now?: number;
1304
- readonly randomSeed?: number;
1305
- };
1306
1475
  readonly fixtures: readonly string[];
1307
1476
  } | null;
1308
1477
  readonly diagnostics: readonly {
@@ -1380,6 +1549,7 @@ export declare const publish: (input: {
1380
1549
  readonly commitSha: string;
1381
1550
  readonly entryPath: string;
1382
1551
  readonly expectedWorkspaceRevision: string;
1552
+ readonly ifCurrentPublicationId?: string | null | undefined;
1383
1553
  }) => import("effect/Effect").Effect<{
1384
1554
  readonly id: string & import("effect/Brand").Brand<"TemplatePublicationId">;
1385
1555
  readonly organizationId: string & import("effect/Brand").Brand<"OrganizationId">;
@@ -1392,26 +1562,16 @@ export declare const publish: (input: {
1392
1562
  readonly buildIdentity: string;
1393
1563
  readonly manifest: {
1394
1564
  readonly templateKey: string;
1395
- readonly executable: {
1396
- readonly codeDigest: string;
1565
+ readonly ir: {
1566
+ readonly version: number;
1567
+ readonly digest: string;
1397
1568
  readonly bytes: number;
1398
1569
  };
1570
+ readonly compiler: string;
1399
1571
  readonly input: {
1400
1572
  readonly schemaDigest: string;
1401
1573
  readonly contractDigest: string;
1402
1574
  };
1403
- readonly environment: {
1404
- readonly locale: string;
1405
- readonly timeZone: "UTC";
1406
- readonly now?: number;
1407
- readonly randomSeed?: number;
1408
- readonly compiler: string;
1409
- readonly runtime: string;
1410
- readonly checker: string;
1411
- readonly lockKind: "bun" | "npm";
1412
- readonly lockDigest: string;
1413
- readonly digest: string;
1414
- };
1415
1575
  readonly assets: {
1416
1576
  readonly base: string;
1417
1577
  readonly entries: readonly {
@@ -1429,8 +1589,44 @@ export declare const publish: (input: {
1429
1589
  readonly entryPath: string;
1430
1590
  readonly treeDigest: string;
1431
1591
  };
1592
+ readonly brand?: {
1593
+ readonly slug: string;
1594
+ readonly css: string;
1595
+ readonly assets: {
1596
+ readonly logoUrl?: string | null;
1597
+ readonly logoDarkUrl?: string | null;
1598
+ readonly iconUrl?: string | null;
1599
+ };
1600
+ readonly footer: {
1601
+ readonly companyName?: string | null;
1602
+ readonly address?: {
1603
+ readonly street1: string;
1604
+ readonly street2?: string | null;
1605
+ readonly city: string;
1606
+ readonly region: string;
1607
+ readonly postalCode: string;
1608
+ readonly country: string;
1609
+ } | null;
1610
+ readonly socialLinks?: readonly {
1611
+ readonly label: string;
1612
+ readonly url: string;
1613
+ }[] | null;
1614
+ };
1615
+ readonly renderedFooter: {
1616
+ readonly withUnsubscribe: {
1617
+ readonly html: string;
1618
+ readonly text: string;
1619
+ };
1620
+ readonly withoutUnsubscribe: {
1621
+ readonly html: string;
1622
+ readonly text: string;
1623
+ };
1624
+ };
1625
+ readonly digest: string;
1626
+ readonly rendersFooter: "every" | "none" | "some";
1627
+ };
1432
1628
  };
1433
- readonly executable: {
1629
+ readonly ir: {
1434
1630
  readonly key: string;
1435
1631
  readonly digest: string;
1436
1632
  };
@@ -1508,26 +1704,16 @@ export declare const getPublication: (input: {
1508
1704
  readonly buildIdentity: string;
1509
1705
  readonly manifest: {
1510
1706
  readonly templateKey: string;
1511
- readonly executable: {
1512
- readonly codeDigest: string;
1707
+ readonly ir: {
1708
+ readonly version: number;
1709
+ readonly digest: string;
1513
1710
  readonly bytes: number;
1514
1711
  };
1712
+ readonly compiler: string;
1515
1713
  readonly input: {
1516
1714
  readonly schemaDigest: string;
1517
1715
  readonly contractDigest: string;
1518
1716
  };
1519
- readonly environment: {
1520
- readonly locale: string;
1521
- readonly timeZone: "UTC";
1522
- readonly now?: number;
1523
- readonly randomSeed?: number;
1524
- readonly compiler: string;
1525
- readonly runtime: string;
1526
- readonly checker: string;
1527
- readonly lockKind: "bun" | "npm";
1528
- readonly lockDigest: string;
1529
- readonly digest: string;
1530
- };
1531
1717
  readonly assets: {
1532
1718
  readonly base: string;
1533
1719
  readonly entries: readonly {
@@ -1545,8 +1731,44 @@ export declare const getPublication: (input: {
1545
1731
  readonly entryPath: string;
1546
1732
  readonly treeDigest: string;
1547
1733
  };
1734
+ readonly brand?: {
1735
+ readonly slug: string;
1736
+ readonly css: string;
1737
+ readonly assets: {
1738
+ readonly logoUrl?: string | null;
1739
+ readonly logoDarkUrl?: string | null;
1740
+ readonly iconUrl?: string | null;
1741
+ };
1742
+ readonly footer: {
1743
+ readonly companyName?: string | null;
1744
+ readonly address?: {
1745
+ readonly street1: string;
1746
+ readonly street2?: string | null;
1747
+ readonly city: string;
1748
+ readonly region: string;
1749
+ readonly postalCode: string;
1750
+ readonly country: string;
1751
+ } | null;
1752
+ readonly socialLinks?: readonly {
1753
+ readonly label: string;
1754
+ readonly url: string;
1755
+ }[] | null;
1756
+ };
1757
+ readonly renderedFooter: {
1758
+ readonly withUnsubscribe: {
1759
+ readonly html: string;
1760
+ readonly text: string;
1761
+ };
1762
+ readonly withoutUnsubscribe: {
1763
+ readonly html: string;
1764
+ readonly text: string;
1765
+ };
1766
+ };
1767
+ readonly digest: string;
1768
+ readonly rendersFooter: "every" | "none" | "some";
1769
+ };
1548
1770
  };
1549
- readonly executable: {
1771
+ readonly ir: {
1550
1772
  readonly key: string;
1551
1773
  readonly digest: string;
1552
1774
  };
@@ -1,10 +1,11 @@
1
1
  import { t as __exportAll } from "../rolldown-runtime-D7D4PA-g.js";
2
- import { n as make } from "../operation-02YX3hY9.js";
3
- import { C as UpdateTemplatePayload, s as CreateTemplatePayload } from "../client-DCM6U0-I.js";
2
+ import { n as make } from "../operation-D2nEeKBD.js";
3
+ import { d as CreateTemplatePayload, k as UpdateTemplatePayload } from "../client-ByJHYp7r.js";
4
4
  //#region src/effect/templates.ts
5
5
  var templates_exports = /* @__PURE__ */ __exportAll({
6
6
  CreatePayload: () => CreateTemplatePayload,
7
7
  UpdatePayload: () => UpdateTemplatePayload,
8
+ addEntry: () => addEntry,
8
9
  attachFamilyMember: () => attachFamilyMember,
9
10
  attachWorkspaceResource: () => attachWorkspaceResource,
10
11
  checkWorkspace: () => checkWorkspace,
@@ -26,6 +27,7 @@ var templates_exports = /* @__PURE__ */ __exportAll({
26
27
  openWorkspace: () => openWorkspace,
27
28
  patchWorkspace: () => patchWorkspace,
28
29
  publish: () => publish,
30
+ putWorkspaceAsset: () => putWorkspaceAsset,
29
31
  reconcileWorkspace: () => reconcileWorkspace,
30
32
  remove: () => remove,
31
33
  removeWorkspaceResource: () => removeWorkspaceResource,
@@ -39,6 +41,7 @@ var templates_exports = /* @__PURE__ */ __exportAll({
39
41
  });
40
42
  const list = make("templatesList");
41
43
  const create = make("templatesCreate");
44
+ const addEntry = make("templatesAddEntry");
42
45
  const listFamilies = make("templatesListFamilies");
43
46
  const createFamily = make("templatesCreateFamily");
44
47
  const getFamily = make("templatesGetFamily");
@@ -54,6 +57,7 @@ const openWorkspace = make("templatesOpenWorkspace");
54
57
  const getGitRepository = make("templatesGetGitRepository");
55
58
  const issueGitCredential = make("templatesIssueGitCredential");
56
59
  const patchWorkspace = make("templatesPatchWorkspace");
60
+ const putWorkspaceAsset = make("templatesPutWorkspaceAsset");
57
61
  const resolveWorkspaceConflict = make("templatesResolveWorkspaceConflict");
58
62
  const attachWorkspaceResource = make("templatesAttachWorkspaceResource");
59
63
  const removeWorkspaceResource = make("templatesRemoveWorkspaceResource");
@@ -69,6 +73,6 @@ const getInputContract = make("templatesGetInputContract");
69
73
  const diffWorkspace = make("templatesDiffWorkspace");
70
74
  const workspaceHistory = make("templatesWorkspaceHistory");
71
75
  //#endregion
72
- export { CreateTemplatePayload as CreatePayload, UpdateTemplatePayload as UpdatePayload, attachFamilyMember, attachWorkspaceResource, checkWorkspace, create, createFamily, createFamilyFromTemplate, deleteFamily, detachFamilyMember, diffWorkspace, getById, getFamily, getGitRepository, getInputContract, getPublication, issueGitCredential, list, listFamilies, listInputContracts, openWorkspace, patchWorkspace, publish, reconcileWorkspace, remove, removeWorkspaceResource, renameFamily, renderWorkspaceFixture, resolveWorkspaceConflict, restoreWorkspace, saveWorkspace, templates_exports as t, update, workspaceHistory };
76
+ export { CreateTemplatePayload as CreatePayload, UpdateTemplatePayload as UpdatePayload, addEntry, attachFamilyMember, attachWorkspaceResource, checkWorkspace, create, createFamily, createFamilyFromTemplate, deleteFamily, detachFamilyMember, diffWorkspace, getById, getFamily, getGitRepository, getInputContract, getPublication, issueGitCredential, list, listFamilies, listInputContracts, openWorkspace, patchWorkspace, publish, putWorkspaceAsset, reconcileWorkspace, remove, removeWorkspaceResource, renameFamily, renderWorkspaceFixture, resolveWorkspaceConflict, restoreWorkspace, saveWorkspace, templates_exports as t, update, workspaceHistory };
73
77
 
74
78
  //# sourceMappingURL=templates.js.map
@@ -7,6 +7,7 @@ export declare const list: ((input?: {
7
7
  readonly organizationId: string;
8
8
  readonly name: string;
9
9
  readonly description: string | null;
10
+ readonly isDefault: boolean;
10
11
  readonly memberCount: number;
11
12
  readonly createdAt: string;
12
13
  readonly updatedAt: string;
@@ -27,6 +28,7 @@ export declare const list: ((input?: {
27
28
  readonly organizationId: string;
28
29
  readonly name: string;
29
30
  readonly description: string | null;
31
+ readonly isDefault: boolean;
30
32
  readonly memberCount: number;
31
33
  readonly createdAt: string;
32
34
  readonly updatedAt: string;
@@ -46,6 +48,7 @@ export declare const list: ((input?: {
46
48
  readonly organizationId: string;
47
49
  readonly name: string;
48
50
  readonly description: string | null;
51
+ readonly isDefault: boolean;
49
52
  readonly memberCount: number;
50
53
  readonly createdAt: string;
51
54
  readonly updatedAt: string;
@@ -59,6 +62,7 @@ export declare const create: (input: {
59
62
  readonly organizationId: string;
60
63
  readonly name: string;
61
64
  readonly description: string | null;
65
+ readonly isDefault: boolean;
62
66
  readonly memberCount: number;
63
67
  readonly createdAt: string;
64
68
  readonly updatedAt: string;
@@ -72,6 +76,7 @@ export declare const update: (input: {
72
76
  readonly organizationId: string;
73
77
  readonly name: string;
74
78
  readonly description: string | null;
79
+ readonly isDefault: boolean;
75
80
  readonly memberCount: number;
76
81
  readonly createdAt: string;
77
82
  readonly updatedAt: string;
@@ -80,6 +85,18 @@ export declare const remove: (input: {
80
85
  readonly id: string;
81
86
  }) => import("effect/Effect").Effect<{
82
87
  readonly success: boolean;
88
+ }, import("./generated").ConflictError | import("./generated").ForbiddenError | import("./generated").GatewayTimeoutError | import("effect/unstable/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("./generated").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./generated").UnauthorizedError, import("./client").Service>;
89
+ export declare const setDefault: (input: {
90
+ readonly id: string;
91
+ }) => import("effect/Effect").Effect<{
92
+ readonly id: string & import("effect/Brand").Brand<"UnsubscribeId">;
93
+ readonly organizationId: string;
94
+ readonly name: string;
95
+ readonly description: string | null;
96
+ readonly isDefault: boolean;
97
+ readonly memberCount: number;
98
+ readonly createdAt: string;
99
+ readonly updatedAt: string;
83
100
  }, import("./generated").ForbiddenError | import("./generated").GatewayTimeoutError | import("effect/unstable/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("./generated").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./generated").UnauthorizedError, import("./client").Service>;
84
101
  export declare const listMembers: ((input: {
85
102
  readonly groupId: string;
@@ -1,5 +1,5 @@
1
1
  import { t as __exportAll } from "../rolldown-runtime-D7D4PA-g.js";
2
- import { n as make } from "../operation-02YX3hY9.js";
2
+ import { n as make } from "../operation-D2nEeKBD.js";
3
3
  //#region src/effect/unsubscribe-groups.ts
4
4
  var unsubscribe_groups_exports = /* @__PURE__ */ __exportAll({
5
5
  addEmails: () => addEmails,
@@ -9,17 +9,19 @@ var unsubscribe_groups_exports = /* @__PURE__ */ __exportAll({
9
9
  listMembers: () => listMembers,
10
10
  remove: () => remove,
11
11
  removeEmails: () => removeEmails,
12
+ setDefault: () => setDefault,
12
13
  update: () => update
13
14
  });
14
15
  const list = make("unsubscribeList");
15
16
  const create = make("unsubscribeCreate");
16
17
  const update = make("unsubscribeUpdate");
17
18
  const remove = make("unsubscribeRemove");
19
+ const setDefault = make("unsubscribeSetDefault");
18
20
  const listMembers = make("unsubscribeListMembers");
19
21
  const addEmails = make("unsubscribeAddEmails");
20
22
  const removeEmails = make("unsubscribeRemoveEmails");
21
23
  const checkSubscription = make("unsubscribeCheckSubscription");
22
24
  //#endregion
23
- export { addEmails, checkSubscription, create, list, listMembers, remove, removeEmails, unsubscribe_groups_exports as t, update };
25
+ export { addEmails, checkSubscription, create, list, listMembers, remove, removeEmails, setDefault, unsubscribe_groups_exports as t, update };
24
26
 
25
27
  //# sourceMappingURL=unsubscribe-groups.js.map