@biab-dev/sdk 0.2.1 → 0.7.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.
@@ -1133,6 +1133,263 @@ export declare const dashboardSessionResponseSchema: z.ZodObject<{
1133
1133
  token: string;
1134
1134
  expiresAt: string;
1135
1135
  }>;
1136
+ export declare const storefrontSessionInputSchema: z.ZodOptional<z.ZodObject<{
1137
+ productId: z.ZodOptional<z.ZodString>;
1138
+ }, "strip", z.ZodTypeAny, {
1139
+ productId?: string | undefined;
1140
+ }, {
1141
+ productId?: string | undefined;
1142
+ }>>;
1143
+ export type StorefrontSessionInput = z.infer<typeof storefrontSessionInputSchema>;
1144
+ export declare const storefrontSessionResponseSchema: z.ZodObject<{
1145
+ url: z.ZodString;
1146
+ token: z.ZodString;
1147
+ expiresAt: z.ZodString;
1148
+ orgSlug: z.ZodString;
1149
+ }, "strip", z.ZodTypeAny, {
1150
+ url: string;
1151
+ token: string;
1152
+ expiresAt: string;
1153
+ orgSlug: string;
1154
+ }, {
1155
+ url: string;
1156
+ token: string;
1157
+ expiresAt: string;
1158
+ orgSlug: string;
1159
+ }>;
1160
+ export type StorefrontSessionResponse = z.infer<typeof storefrontSessionResponseSchema>;
1161
+ export declare const cartSessionResponseSchema: z.ZodObject<{
1162
+ url: z.ZodString;
1163
+ token: z.ZodString;
1164
+ expiresAt: z.ZodString;
1165
+ orgSlug: z.ZodString;
1166
+ }, "strip", z.ZodTypeAny, {
1167
+ url: string;
1168
+ token: string;
1169
+ expiresAt: string;
1170
+ orgSlug: string;
1171
+ }, {
1172
+ url: string;
1173
+ token: string;
1174
+ expiresAt: string;
1175
+ orgSlug: string;
1176
+ }>;
1177
+ export type CartSessionResponse = z.infer<typeof cartSessionResponseSchema>;
1178
+ export declare const checkoutLineSchema: z.ZodObject<{
1179
+ productId: z.ZodString;
1180
+ variantId: z.ZodString;
1181
+ combinationKey: z.ZodOptional<z.ZodString>;
1182
+ quantity: z.ZodNumber;
1183
+ }, "strip", z.ZodTypeAny, {
1184
+ productId: string;
1185
+ variantId: string;
1186
+ quantity: number;
1187
+ combinationKey?: string | undefined;
1188
+ }, {
1189
+ productId: string;
1190
+ variantId: string;
1191
+ quantity: number;
1192
+ combinationKey?: string | undefined;
1193
+ }>;
1194
+ export type CheckoutLine = z.infer<typeof checkoutLineSchema>;
1195
+ export declare const checkoutSessionInputSchema: z.ZodObject<{
1196
+ lines: z.ZodArray<z.ZodObject<{
1197
+ productId: z.ZodString;
1198
+ variantId: z.ZodString;
1199
+ combinationKey: z.ZodOptional<z.ZodString>;
1200
+ quantity: z.ZodNumber;
1201
+ }, "strip", z.ZodTypeAny, {
1202
+ productId: string;
1203
+ variantId: string;
1204
+ quantity: number;
1205
+ combinationKey?: string | undefined;
1206
+ }, {
1207
+ productId: string;
1208
+ variantId: string;
1209
+ quantity: number;
1210
+ combinationKey?: string | undefined;
1211
+ }>, "many">;
1212
+ customerEmail: z.ZodOptional<z.ZodString>;
1213
+ successUrl: z.ZodOptional<z.ZodString>;
1214
+ cancelUrl: z.ZodOptional<z.ZodString>;
1215
+ }, "strip", z.ZodTypeAny, {
1216
+ lines: {
1217
+ productId: string;
1218
+ variantId: string;
1219
+ quantity: number;
1220
+ combinationKey?: string | undefined;
1221
+ }[];
1222
+ customerEmail?: string | undefined;
1223
+ successUrl?: string | undefined;
1224
+ cancelUrl?: string | undefined;
1225
+ }, {
1226
+ lines: {
1227
+ productId: string;
1228
+ variantId: string;
1229
+ quantity: number;
1230
+ combinationKey?: string | undefined;
1231
+ }[];
1232
+ customerEmail?: string | undefined;
1233
+ successUrl?: string | undefined;
1234
+ cancelUrl?: string | undefined;
1235
+ }>;
1236
+ export type CheckoutSessionInput = z.infer<typeof checkoutSessionInputSchema>;
1237
+ export declare const checkoutSessionResponseSchema: z.ZodObject<{
1238
+ url: z.ZodString;
1239
+ stripeUrl: z.ZodString;
1240
+ sessionId: z.ZodString;
1241
+ totalAmountCents: z.ZodNumber;
1242
+ currency: z.ZodString;
1243
+ token: z.ZodString;
1244
+ expiresAt: z.ZodString;
1245
+ }, "strip", z.ZodTypeAny, {
1246
+ url: string;
1247
+ token: string;
1248
+ expiresAt: string;
1249
+ stripeUrl: string;
1250
+ sessionId: string;
1251
+ totalAmountCents: number;
1252
+ currency: string;
1253
+ }, {
1254
+ url: string;
1255
+ token: string;
1256
+ expiresAt: string;
1257
+ stripeUrl: string;
1258
+ sessionId: string;
1259
+ totalAmountCents: number;
1260
+ currency: string;
1261
+ }>;
1262
+ export type CheckoutSessionResponse = z.infer<typeof checkoutSessionResponseSchema>;
1263
+ export declare const blogSessionInputSchema: z.ZodOptional<z.ZodObject<{
1264
+ postSlug: z.ZodOptional<z.ZodString>;
1265
+ }, "strip", z.ZodTypeAny, {
1266
+ postSlug?: string | undefined;
1267
+ }, {
1268
+ postSlug?: string | undefined;
1269
+ }>>;
1270
+ export type BlogSessionInput = z.infer<typeof blogSessionInputSchema>;
1271
+ export declare const blogSessionResponseSchema: z.ZodObject<{
1272
+ url: z.ZodString;
1273
+ token: z.ZodString;
1274
+ expiresAt: z.ZodString;
1275
+ orgSlug: z.ZodString;
1276
+ }, "strip", z.ZodTypeAny, {
1277
+ url: string;
1278
+ token: string;
1279
+ expiresAt: string;
1280
+ orgSlug: string;
1281
+ }, {
1282
+ url: string;
1283
+ token: string;
1284
+ expiresAt: string;
1285
+ orgSlug: string;
1286
+ }>;
1287
+ export type BlogSessionResponse = z.infer<typeof blogSessionResponseSchema>;
1288
+ export declare const chatbotSessionResponseSchema: z.ZodObject<{
1289
+ url: z.ZodString;
1290
+ token: z.ZodString;
1291
+ expiresAt: z.ZodString;
1292
+ orgSlug: z.ZodString;
1293
+ }, "strip", z.ZodTypeAny, {
1294
+ url: string;
1295
+ token: string;
1296
+ expiresAt: string;
1297
+ orgSlug: string;
1298
+ }, {
1299
+ url: string;
1300
+ token: string;
1301
+ expiresAt: string;
1302
+ orgSlug: string;
1303
+ }>;
1304
+ export type ChatbotSessionResponse = z.infer<typeof chatbotSessionResponseSchema>;
1305
+ export declare const chatbotConfigSchema: z.ZodObject<{
1306
+ systemPrompt: z.ZodString;
1307
+ knowledgeBase: z.ZodString;
1308
+ model: z.ZodString;
1309
+ temperature: z.ZodNumber;
1310
+ lastUpdated: z.ZodNullable<z.ZodString>;
1311
+ usingDefaults: z.ZodBoolean;
1312
+ }, "strip", z.ZodTypeAny, {
1313
+ systemPrompt: string;
1314
+ knowledgeBase: string;
1315
+ model: string;
1316
+ temperature: number;
1317
+ lastUpdated: string | null;
1318
+ usingDefaults: boolean;
1319
+ }, {
1320
+ systemPrompt: string;
1321
+ knowledgeBase: string;
1322
+ model: string;
1323
+ temperature: number;
1324
+ lastUpdated: string | null;
1325
+ usingDefaults: boolean;
1326
+ }>;
1327
+ export type ChatbotConfig = z.infer<typeof chatbotConfigSchema>;
1328
+ export declare const chatbotConfigUpdateInputSchema: z.ZodObject<{
1329
+ systemPrompt: z.ZodOptional<z.ZodString>;
1330
+ knowledgeBase: z.ZodOptional<z.ZodString>;
1331
+ model: z.ZodOptional<z.ZodString>;
1332
+ temperature: z.ZodOptional<z.ZodNumber>;
1333
+ }, "strip", z.ZodTypeAny, {
1334
+ systemPrompt?: string | undefined;
1335
+ knowledgeBase?: string | undefined;
1336
+ model?: string | undefined;
1337
+ temperature?: number | undefined;
1338
+ }, {
1339
+ systemPrompt?: string | undefined;
1340
+ knowledgeBase?: string | undefined;
1341
+ model?: string | undefined;
1342
+ temperature?: number | undefined;
1343
+ }>;
1344
+ export type ChatbotConfigUpdateInput = z.infer<typeof chatbotConfigUpdateInputSchema>;
1345
+ export declare const chatbotMessageSchema: z.ZodObject<{
1346
+ role: z.ZodEnum<["user", "assistant", "system"]>;
1347
+ content: z.ZodString;
1348
+ }, "strip", z.ZodTypeAny, {
1349
+ role: "user" | "assistant" | "system";
1350
+ content: string;
1351
+ }, {
1352
+ role: "user" | "assistant" | "system";
1353
+ content: string;
1354
+ }>;
1355
+ export type ChatbotMessage = z.infer<typeof chatbotMessageSchema>;
1356
+ export declare const chatbotChatInputSchema: z.ZodObject<{
1357
+ messages: z.ZodArray<z.ZodObject<{
1358
+ role: z.ZodEnum<["user", "assistant", "system"]>;
1359
+ content: z.ZodString;
1360
+ }, "strip", z.ZodTypeAny, {
1361
+ role: "user" | "assistant" | "system";
1362
+ content: string;
1363
+ }, {
1364
+ role: "user" | "assistant" | "system";
1365
+ content: string;
1366
+ }>, "many">;
1367
+ }, "strip", z.ZodTypeAny, {
1368
+ messages: {
1369
+ role: "user" | "assistant" | "system";
1370
+ content: string;
1371
+ }[];
1372
+ }, {
1373
+ messages: {
1374
+ role: "user" | "assistant" | "system";
1375
+ content: string;
1376
+ }[];
1377
+ }>;
1378
+ export type ChatbotChatInput = z.infer<typeof chatbotChatInputSchema>;
1379
+ export declare const chatbotChatResponseSchema: z.ZodObject<{
1380
+ text: z.ZodString;
1381
+ model: z.ZodString;
1382
+ usingDefaults: z.ZodBoolean;
1383
+ }, "strip", z.ZodTypeAny, {
1384
+ model: string;
1385
+ usingDefaults: boolean;
1386
+ text: string;
1387
+ }, {
1388
+ model: string;
1389
+ usingDefaults: boolean;
1390
+ text: string;
1391
+ }>;
1392
+ export type ChatbotChatResponse = z.infer<typeof chatbotChatResponseSchema>;
1136
1393
  export declare const executeActionInputSchema: z.ZodObject<{
1137
1394
  payload: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1138
1395
  }, "strip", z.ZodTypeAny, {
@@ -1244,8 +1501,8 @@ export declare const authIntrospectResponseSchema: z.ZodObject<{
1244
1501
  siteIds?: string[] | undefined;
1245
1502
  scopes?: string[] | undefined;
1246
1503
  }>;
1247
- export declare const emailTemplateRendererValues: readonly ["unlayer", "react-email", "native-email-builder"];
1248
- export declare const emailTemplateRendererSchema: z.ZodEnum<["unlayer", "react-email", "native-email-builder"]>;
1504
+ export declare const emailTemplateRendererValues: readonly ["native-email-builder"];
1505
+ export declare const emailTemplateRendererSchema: z.ZodEnum<["native-email-builder"]>;
1249
1506
  export declare const emailTemplateCategoryValues: readonly ["system", "marketing", "transactional"];
1250
1507
  export declare const emailTemplateCategorySchema: z.ZodEnum<["system", "marketing", "transactional"]>;
1251
1508
  export declare const emailTemplateVariableTypeValues: readonly ["string", "number", "url", "currency", "date"];
@@ -1276,7 +1533,7 @@ export declare const emailTemplateSummarySchema: z.ZodObject<{
1276
1533
  description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1277
1534
  ownerId: z.ZodString;
1278
1535
  organizationId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1279
- renderer: z.ZodEnum<["unlayer", "react-email", "native-email-builder"]>;
1536
+ renderer: z.ZodEnum<["native-email-builder"]>;
1280
1537
  category: z.ZodEnum<["system", "marketing", "transactional"]>;
1281
1538
  isActive: z.ZodBoolean;
1282
1539
  isArchived: z.ZodBoolean;
@@ -1290,7 +1547,7 @@ export declare const emailTemplateSummarySchema: z.ZodObject<{
1290
1547
  slug: string;
1291
1548
  isActive: boolean;
1292
1549
  ownerId: string;
1293
- renderer: "unlayer" | "react-email" | "native-email-builder";
1550
+ renderer: "native-email-builder";
1294
1551
  category: "system" | "marketing" | "transactional";
1295
1552
  isArchived: boolean;
1296
1553
  description?: string | null | undefined;
@@ -1303,7 +1560,7 @@ export declare const emailTemplateSummarySchema: z.ZodObject<{
1303
1560
  slug: string;
1304
1561
  isActive: boolean;
1305
1562
  ownerId: string;
1306
- renderer: "unlayer" | "react-email" | "native-email-builder";
1563
+ renderer: "native-email-builder";
1307
1564
  category: "system" | "marketing" | "transactional";
1308
1565
  isArchived: boolean;
1309
1566
  description?: string | null | undefined;
@@ -1314,7 +1571,7 @@ export declare const emailTemplateVersionSchema: z.ZodObject<{
1314
1571
  templateId: z.ZodNumber;
1315
1572
  version: z.ZodNumber;
1316
1573
  subject: z.ZodString;
1317
- renderer: z.ZodEnum<["unlayer", "react-email", "native-email-builder"]>;
1574
+ renderer: z.ZodEnum<["native-email-builder"]>;
1318
1575
  unlayerDesign: z.ZodOptional<z.ZodUnknown>;
1319
1576
  builderDocument: z.ZodOptional<z.ZodUnknown>;
1320
1577
  html: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -1345,7 +1602,7 @@ export declare const emailTemplateVersionSchema: z.ZodObject<{
1345
1602
  }, "strip", z.ZodTypeAny, {
1346
1603
  id: number;
1347
1604
  createdAt: string;
1348
- renderer: "unlayer" | "react-email" | "native-email-builder";
1605
+ renderer: "native-email-builder";
1349
1606
  templateId: number;
1350
1607
  version: number;
1351
1608
  subject: string;
@@ -1366,7 +1623,7 @@ export declare const emailTemplateVersionSchema: z.ZodObject<{
1366
1623
  }, {
1367
1624
  id: number;
1368
1625
  createdAt: string;
1369
- renderer: "unlayer" | "react-email" | "native-email-builder";
1626
+ renderer: "native-email-builder";
1370
1627
  templateId: number;
1371
1628
  version: number;
1372
1629
  subject: string;
@@ -1403,7 +1660,7 @@ export declare const listEmailTemplatesResponseSchema: z.ZodObject<{
1403
1660
  description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1404
1661
  ownerId: z.ZodString;
1405
1662
  organizationId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1406
- renderer: z.ZodEnum<["unlayer", "react-email", "native-email-builder"]>;
1663
+ renderer: z.ZodEnum<["native-email-builder"]>;
1407
1664
  category: z.ZodEnum<["system", "marketing", "transactional"]>;
1408
1665
  isActive: z.ZodBoolean;
1409
1666
  isArchived: z.ZodBoolean;
@@ -1417,7 +1674,7 @@ export declare const listEmailTemplatesResponseSchema: z.ZodObject<{
1417
1674
  slug: string;
1418
1675
  isActive: boolean;
1419
1676
  ownerId: string;
1420
- renderer: "unlayer" | "react-email" | "native-email-builder";
1677
+ renderer: "native-email-builder";
1421
1678
  category: "system" | "marketing" | "transactional";
1422
1679
  isArchived: boolean;
1423
1680
  description?: string | null | undefined;
@@ -1430,7 +1687,7 @@ export declare const listEmailTemplatesResponseSchema: z.ZodObject<{
1430
1687
  slug: string;
1431
1688
  isActive: boolean;
1432
1689
  ownerId: string;
1433
- renderer: "unlayer" | "react-email" | "native-email-builder";
1690
+ renderer: "native-email-builder";
1434
1691
  category: "system" | "marketing" | "transactional";
1435
1692
  isArchived: boolean;
1436
1693
  description?: string | null | undefined;
@@ -1445,7 +1702,7 @@ export declare const listEmailTemplatesResponseSchema: z.ZodObject<{
1445
1702
  slug: string;
1446
1703
  isActive: boolean;
1447
1704
  ownerId: string;
1448
- renderer: "unlayer" | "react-email" | "native-email-builder";
1705
+ renderer: "native-email-builder";
1449
1706
  category: "system" | "marketing" | "transactional";
1450
1707
  isArchived: boolean;
1451
1708
  description?: string | null | undefined;
@@ -1460,7 +1717,7 @@ export declare const listEmailTemplatesResponseSchema: z.ZodObject<{
1460
1717
  slug: string;
1461
1718
  isActive: boolean;
1462
1719
  ownerId: string;
1463
- renderer: "unlayer" | "react-email" | "native-email-builder";
1720
+ renderer: "native-email-builder";
1464
1721
  category: "system" | "marketing" | "transactional";
1465
1722
  isArchived: boolean;
1466
1723
  description?: string | null | undefined;
@@ -1475,7 +1732,7 @@ export declare const getEmailTemplateResponseSchema: z.ZodObject<{
1475
1732
  description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1476
1733
  ownerId: z.ZodString;
1477
1734
  organizationId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1478
- renderer: z.ZodEnum<["unlayer", "react-email", "native-email-builder"]>;
1735
+ renderer: z.ZodEnum<["native-email-builder"]>;
1479
1736
  category: z.ZodEnum<["system", "marketing", "transactional"]>;
1480
1737
  isActive: z.ZodBoolean;
1481
1738
  isArchived: z.ZodBoolean;
@@ -1489,7 +1746,7 @@ export declare const getEmailTemplateResponseSchema: z.ZodObject<{
1489
1746
  slug: string;
1490
1747
  isActive: boolean;
1491
1748
  ownerId: string;
1492
- renderer: "unlayer" | "react-email" | "native-email-builder";
1749
+ renderer: "native-email-builder";
1493
1750
  category: "system" | "marketing" | "transactional";
1494
1751
  isArchived: boolean;
1495
1752
  description?: string | null | undefined;
@@ -1502,7 +1759,7 @@ export declare const getEmailTemplateResponseSchema: z.ZodObject<{
1502
1759
  slug: string;
1503
1760
  isActive: boolean;
1504
1761
  ownerId: string;
1505
- renderer: "unlayer" | "react-email" | "native-email-builder";
1762
+ renderer: "native-email-builder";
1506
1763
  category: "system" | "marketing" | "transactional";
1507
1764
  isArchived: boolean;
1508
1765
  description?: string | null | undefined;
@@ -1513,7 +1770,7 @@ export declare const getEmailTemplateResponseSchema: z.ZodObject<{
1513
1770
  templateId: z.ZodNumber;
1514
1771
  version: z.ZodNumber;
1515
1772
  subject: z.ZodString;
1516
- renderer: z.ZodEnum<["unlayer", "react-email", "native-email-builder"]>;
1773
+ renderer: z.ZodEnum<["native-email-builder"]>;
1517
1774
  unlayerDesign: z.ZodOptional<z.ZodUnknown>;
1518
1775
  builderDocument: z.ZodOptional<z.ZodUnknown>;
1519
1776
  html: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -1544,7 +1801,7 @@ export declare const getEmailTemplateResponseSchema: z.ZodObject<{
1544
1801
  }, "strip", z.ZodTypeAny, {
1545
1802
  id: number;
1546
1803
  createdAt: string;
1547
- renderer: "unlayer" | "react-email" | "native-email-builder";
1804
+ renderer: "native-email-builder";
1548
1805
  templateId: number;
1549
1806
  version: number;
1550
1807
  subject: string;
@@ -1565,7 +1822,7 @@ export declare const getEmailTemplateResponseSchema: z.ZodObject<{
1565
1822
  }, {
1566
1823
  id: number;
1567
1824
  createdAt: string;
1568
- renderer: "unlayer" | "react-email" | "native-email-builder";
1825
+ renderer: "native-email-builder";
1569
1826
  templateId: number;
1570
1827
  version: number;
1571
1828
  subject: string;
@@ -1593,7 +1850,7 @@ export declare const getEmailTemplateResponseSchema: z.ZodObject<{
1593
1850
  slug: string;
1594
1851
  isActive: boolean;
1595
1852
  ownerId: string;
1596
- renderer: "unlayer" | "react-email" | "native-email-builder";
1853
+ renderer: "native-email-builder";
1597
1854
  category: "system" | "marketing" | "transactional";
1598
1855
  isArchived: boolean;
1599
1856
  description?: string | null | undefined;
@@ -1602,7 +1859,7 @@ export declare const getEmailTemplateResponseSchema: z.ZodObject<{
1602
1859
  versions: {
1603
1860
  id: number;
1604
1861
  createdAt: string;
1605
- renderer: "unlayer" | "react-email" | "native-email-builder";
1862
+ renderer: "native-email-builder";
1606
1863
  templateId: number;
1607
1864
  version: number;
1608
1865
  subject: string;
@@ -1630,7 +1887,7 @@ export declare const getEmailTemplateResponseSchema: z.ZodObject<{
1630
1887
  slug: string;
1631
1888
  isActive: boolean;
1632
1889
  ownerId: string;
1633
- renderer: "unlayer" | "react-email" | "native-email-builder";
1890
+ renderer: "native-email-builder";
1634
1891
  category: "system" | "marketing" | "transactional";
1635
1892
  isArchived: boolean;
1636
1893
  description?: string | null | undefined;
@@ -1639,7 +1896,7 @@ export declare const getEmailTemplateResponseSchema: z.ZodObject<{
1639
1896
  versions: {
1640
1897
  id: number;
1641
1898
  createdAt: string;
1642
- renderer: "unlayer" | "react-email" | "native-email-builder";
1899
+ renderer: "native-email-builder";
1643
1900
  templateId: number;
1644
1901
  version: number;
1645
1902
  subject: string;
@@ -1663,20 +1920,17 @@ export declare const createEmailTemplateInputSchema: z.ZodObject<{
1663
1920
  name: z.ZodString;
1664
1921
  slug: z.ZodString;
1665
1922
  description: z.ZodOptional<z.ZodString>;
1666
- renderer: z.ZodEnum<["unlayer", "react-email", "native-email-builder"]>;
1667
1923
  category: z.ZodEnum<["system", "marketing", "transactional"]>;
1668
1924
  isActive: z.ZodOptional<z.ZodBoolean>;
1669
1925
  }, "strip", z.ZodTypeAny, {
1670
1926
  name: string;
1671
1927
  slug: string;
1672
- renderer: "unlayer" | "react-email" | "native-email-builder";
1673
1928
  category: "system" | "marketing" | "transactional";
1674
1929
  description?: string | undefined;
1675
1930
  isActive?: boolean | undefined;
1676
1931
  }, {
1677
1932
  name: string;
1678
1933
  slug: string;
1679
- renderer: "unlayer" | "react-email" | "native-email-builder";
1680
1934
  category: "system" | "marketing" | "transactional";
1681
1935
  description?: string | undefined;
1682
1936
  isActive?: boolean | undefined;
@@ -1689,7 +1943,7 @@ export declare const createEmailTemplateResponseSchema: z.ZodObject<{
1689
1943
  description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1690
1944
  ownerId: z.ZodString;
1691
1945
  organizationId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1692
- renderer: z.ZodEnum<["unlayer", "react-email", "native-email-builder"]>;
1946
+ renderer: z.ZodEnum<["native-email-builder"]>;
1693
1947
  category: z.ZodEnum<["system", "marketing", "transactional"]>;
1694
1948
  isActive: z.ZodBoolean;
1695
1949
  isArchived: z.ZodBoolean;
@@ -1703,7 +1957,7 @@ export declare const createEmailTemplateResponseSchema: z.ZodObject<{
1703
1957
  slug: string;
1704
1958
  isActive: boolean;
1705
1959
  ownerId: string;
1706
- renderer: "unlayer" | "react-email" | "native-email-builder";
1960
+ renderer: "native-email-builder";
1707
1961
  category: "system" | "marketing" | "transactional";
1708
1962
  isArchived: boolean;
1709
1963
  description?: string | null | undefined;
@@ -1716,7 +1970,7 @@ export declare const createEmailTemplateResponseSchema: z.ZodObject<{
1716
1970
  slug: string;
1717
1971
  isActive: boolean;
1718
1972
  ownerId: string;
1719
- renderer: "unlayer" | "react-email" | "native-email-builder";
1973
+ renderer: "native-email-builder";
1720
1974
  category: "system" | "marketing" | "transactional";
1721
1975
  isArchived: boolean;
1722
1976
  description?: string | null | undefined;
@@ -1731,7 +1985,7 @@ export declare const createEmailTemplateResponseSchema: z.ZodObject<{
1731
1985
  slug: string;
1732
1986
  isActive: boolean;
1733
1987
  ownerId: string;
1734
- renderer: "unlayer" | "react-email" | "native-email-builder";
1988
+ renderer: "native-email-builder";
1735
1989
  category: "system" | "marketing" | "transactional";
1736
1990
  isArchived: boolean;
1737
1991
  description?: string | null | undefined;
@@ -1746,7 +2000,7 @@ export declare const createEmailTemplateResponseSchema: z.ZodObject<{
1746
2000
  slug: string;
1747
2001
  isActive: boolean;
1748
2002
  ownerId: string;
1749
- renderer: "unlayer" | "react-email" | "native-email-builder";
2003
+ renderer: "native-email-builder";
1750
2004
  category: "system" | "marketing" | "transactional";
1751
2005
  isArchived: boolean;
1752
2006
  description?: string | null | undefined;
@@ -1755,8 +2009,6 @@ export declare const createEmailTemplateResponseSchema: z.ZodObject<{
1755
2009
  }>;
1756
2010
  export declare const createEmailTemplateVersionInputSchema: z.ZodObject<{
1757
2011
  subject: z.ZodString;
1758
- renderer: z.ZodEnum<["unlayer", "react-email", "native-email-builder"]>;
1759
- unlayerDesign: z.ZodOptional<z.ZodUnknown>;
1760
2012
  builderDocument: z.ZodOptional<z.ZodUnknown>;
1761
2013
  html: z.ZodOptional<z.ZodString>;
1762
2014
  reactComponent: z.ZodOptional<z.ZodString>;
@@ -1782,9 +2034,7 @@ export declare const createEmailTemplateVersionInputSchema: z.ZodObject<{
1782
2034
  }>, "many">>;
1783
2035
  isPublished: z.ZodOptional<z.ZodBoolean>;
1784
2036
  }, "strip", z.ZodTypeAny, {
1785
- renderer: "unlayer" | "react-email" | "native-email-builder";
1786
2037
  subject: string;
1787
- unlayerDesign?: unknown;
1788
2038
  builderDocument?: unknown;
1789
2039
  html?: string | undefined;
1790
2040
  reactComponent?: string | undefined;
@@ -1798,9 +2048,7 @@ export declare const createEmailTemplateVersionInputSchema: z.ZodObject<{
1798
2048
  }[] | undefined;
1799
2049
  isPublished?: boolean | undefined;
1800
2050
  }, {
1801
- renderer: "unlayer" | "react-email" | "native-email-builder";
1802
2051
  subject: string;
1803
- unlayerDesign?: unknown;
1804
2052
  builderDocument?: unknown;
1805
2053
  html?: string | undefined;
1806
2054
  reactComponent?: string | undefined;
@@ -1820,7 +2068,7 @@ export declare const createEmailTemplateVersionResponseSchema: z.ZodObject<{
1820
2068
  templateId: z.ZodNumber;
1821
2069
  version: z.ZodNumber;
1822
2070
  subject: z.ZodString;
1823
- renderer: z.ZodEnum<["unlayer", "react-email", "native-email-builder"]>;
2071
+ renderer: z.ZodEnum<["native-email-builder"]>;
1824
2072
  unlayerDesign: z.ZodOptional<z.ZodUnknown>;
1825
2073
  builderDocument: z.ZodOptional<z.ZodUnknown>;
1826
2074
  html: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -1851,7 +2099,7 @@ export declare const createEmailTemplateVersionResponseSchema: z.ZodObject<{
1851
2099
  }, "strip", z.ZodTypeAny, {
1852
2100
  id: number;
1853
2101
  createdAt: string;
1854
- renderer: "unlayer" | "react-email" | "native-email-builder";
2102
+ renderer: "native-email-builder";
1855
2103
  templateId: number;
1856
2104
  version: number;
1857
2105
  subject: string;
@@ -1872,7 +2120,7 @@ export declare const createEmailTemplateVersionResponseSchema: z.ZodObject<{
1872
2120
  }, {
1873
2121
  id: number;
1874
2122
  createdAt: string;
1875
- renderer: "unlayer" | "react-email" | "native-email-builder";
2123
+ renderer: "native-email-builder";
1876
2124
  templateId: number;
1877
2125
  version: number;
1878
2126
  subject: string;
@@ -1895,7 +2143,7 @@ export declare const createEmailTemplateVersionResponseSchema: z.ZodObject<{
1895
2143
  version: {
1896
2144
  id: number;
1897
2145
  createdAt: string;
1898
- renderer: "unlayer" | "react-email" | "native-email-builder";
2146
+ renderer: "native-email-builder";
1899
2147
  templateId: number;
1900
2148
  version: number;
1901
2149
  subject: string;
@@ -1918,7 +2166,7 @@ export declare const createEmailTemplateVersionResponseSchema: z.ZodObject<{
1918
2166
  version: {
1919
2167
  id: number;
1920
2168
  createdAt: string;
1921
- renderer: "unlayer" | "react-email" | "native-email-builder";
2169
+ renderer: "native-email-builder";
1922
2170
  templateId: number;
1923
2171
  version: number;
1924
2172
  subject: string;
@@ -1984,4 +2232,359 @@ export type FollowerLeaveResponse = z.infer<typeof followerLeaveResponseSchema>;
1984
2232
  export type DashboardSessionResponse = z.infer<typeof dashboardSessionResponseSchema>;
1985
2233
  export type SiteMarketingPage = z.infer<typeof siteMarketingPageSchema>;
1986
2234
  export type GetSiteMarketingPageResponse = z.infer<typeof getSiteMarketingPageResponseSchema>;
2235
+ export declare const customerPortalOrgSchema: z.ZodObject<{
2236
+ id: z.ZodString;
2237
+ name: z.ZodNullable<z.ZodString>;
2238
+ workosOrganizationId: z.ZodNullable<z.ZodString>;
2239
+ }, "strip", z.ZodTypeAny, {
2240
+ name: string | null;
2241
+ id: string;
2242
+ workosOrganizationId: string | null;
2243
+ }, {
2244
+ name: string | null;
2245
+ id: string;
2246
+ workosOrganizationId: string | null;
2247
+ }>;
2248
+ export declare const customerPortalUserSchema: z.ZodObject<{
2249
+ id: z.ZodString;
2250
+ email: z.ZodNullable<z.ZodString>;
2251
+ displayName: z.ZodNullable<z.ZodString>;
2252
+ avatarUrl: z.ZodNullable<z.ZodString>;
2253
+ }, "strip", z.ZodTypeAny, {
2254
+ id: string;
2255
+ email: string | null;
2256
+ displayName: string | null;
2257
+ avatarUrl: string | null;
2258
+ }, {
2259
+ id: string;
2260
+ email: string | null;
2261
+ displayName: string | null;
2262
+ avatarUrl: string | null;
2263
+ }>;
2264
+ export declare const customerPortalContextResponseSchema: z.ZodObject<{
2265
+ organization: z.ZodObject<{
2266
+ id: z.ZodString;
2267
+ name: z.ZodNullable<z.ZodString>;
2268
+ workosOrganizationId: z.ZodNullable<z.ZodString>;
2269
+ }, "strip", z.ZodTypeAny, {
2270
+ name: string | null;
2271
+ id: string;
2272
+ workosOrganizationId: string | null;
2273
+ }, {
2274
+ name: string | null;
2275
+ id: string;
2276
+ workosOrganizationId: string | null;
2277
+ }>;
2278
+ user: z.ZodObject<{
2279
+ id: z.ZodString;
2280
+ email: z.ZodNullable<z.ZodString>;
2281
+ displayName: z.ZodNullable<z.ZodString>;
2282
+ avatarUrl: z.ZodNullable<z.ZodString>;
2283
+ }, "strip", z.ZodTypeAny, {
2284
+ id: string;
2285
+ email: string | null;
2286
+ displayName: string | null;
2287
+ avatarUrl: string | null;
2288
+ }, {
2289
+ id: string;
2290
+ email: string | null;
2291
+ displayName: string | null;
2292
+ avatarUrl: string | null;
2293
+ }>;
2294
+ isCustomer: z.ZodBoolean;
2295
+ }, "strip", z.ZodTypeAny, {
2296
+ user: {
2297
+ id: string;
2298
+ email: string | null;
2299
+ displayName: string | null;
2300
+ avatarUrl: string | null;
2301
+ };
2302
+ organization: {
2303
+ name: string | null;
2304
+ id: string;
2305
+ workosOrganizationId: string | null;
2306
+ };
2307
+ isCustomer: boolean;
2308
+ }, {
2309
+ user: {
2310
+ id: string;
2311
+ email: string | null;
2312
+ displayName: string | null;
2313
+ avatarUrl: string | null;
2314
+ };
2315
+ organization: {
2316
+ name: string | null;
2317
+ id: string;
2318
+ workosOrganizationId: string | null;
2319
+ };
2320
+ isCustomer: boolean;
2321
+ }>;
2322
+ export declare const customerPortalProfileSchema: z.ZodNullable<z.ZodObject<{
2323
+ externalCustomerId: z.ZodNullable<z.ZodString>;
2324
+ profile: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2325
+ lastSeenAt: z.ZodNullable<z.ZodString>;
2326
+ joinedAt: z.ZodNullable<z.ZodString>;
2327
+ }, "strip", z.ZodTypeAny, {
2328
+ joinedAt: string | null;
2329
+ externalCustomerId: string | null;
2330
+ profile: Record<string, unknown> | null;
2331
+ lastSeenAt: string | null;
2332
+ }, {
2333
+ joinedAt: string | null;
2334
+ externalCustomerId: string | null;
2335
+ profile: Record<string, unknown> | null;
2336
+ lastSeenAt: string | null;
2337
+ }>>;
2338
+ export declare const customerPortalUpdateProfileInputSchema: z.ZodObject<{
2339
+ displayName: z.ZodOptional<z.ZodString>;
2340
+ profile: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2341
+ }, "strip", z.ZodTypeAny, {
2342
+ displayName?: string | undefined;
2343
+ profile?: Record<string, unknown> | undefined;
2344
+ }, {
2345
+ displayName?: string | undefined;
2346
+ profile?: Record<string, unknown> | undefined;
2347
+ }>;
2348
+ export declare const customerPortalUpdateProfileResponseSchema: z.ZodObject<{
2349
+ ok: z.ZodLiteral<true>;
2350
+ }, "strip", z.ZodTypeAny, {
2351
+ ok: true;
2352
+ }, {
2353
+ ok: true;
2354
+ }>;
2355
+ export declare const customerPortalOtherOrgSchema: z.ZodObject<{
2356
+ orgId: z.ZodString;
2357
+ name: z.ZodNullable<z.ZodString>;
2358
+ workosOrganizationId: z.ZodNullable<z.ZodString>;
2359
+ }, "strip", z.ZodTypeAny, {
2360
+ name: string | null;
2361
+ orgId: string;
2362
+ workosOrganizationId: string | null;
2363
+ }, {
2364
+ name: string | null;
2365
+ orgId: string;
2366
+ workosOrganizationId: string | null;
2367
+ }>;
2368
+ export declare const customerPortalOtherOrgsResponseSchema: z.ZodArray<z.ZodObject<{
2369
+ orgId: z.ZodString;
2370
+ name: z.ZodNullable<z.ZodString>;
2371
+ workosOrganizationId: z.ZodNullable<z.ZodString>;
2372
+ }, "strip", z.ZodTypeAny, {
2373
+ name: string | null;
2374
+ orgId: string;
2375
+ workosOrganizationId: string | null;
2376
+ }, {
2377
+ name: string | null;
2378
+ orgId: string;
2379
+ workosOrganizationId: string | null;
2380
+ }>, "many">;
2381
+ export type CustomerPortalOrg = z.infer<typeof customerPortalOrgSchema>;
2382
+ export type CustomerPortalUser = z.infer<typeof customerPortalUserSchema>;
2383
+ export type CustomerPortalContextResponse = z.infer<typeof customerPortalContextResponseSchema>;
2384
+ export type CustomerPortalProfile = z.infer<typeof customerPortalProfileSchema>;
2385
+ export type CustomerPortalUpdateProfileInput = z.infer<typeof customerPortalUpdateProfileInputSchema>;
2386
+ export type CustomerPortalUpdateProfileResponse = z.infer<typeof customerPortalUpdateProfileResponseSchema>;
2387
+ export type CustomerPortalOtherOrg = z.infer<typeof customerPortalOtherOrgSchema>;
2388
+ export type CustomerPortalOtherOrgsResponse = z.infer<typeof customerPortalOtherOrgsResponseSchema>;
2389
+ export declare const tenantAuthIntentSchema: z.ZodEnum<["sign-in", "sign-up"]>;
2390
+ export declare const tenantAuthStartInputSchema: z.ZodObject<{
2391
+ intent: z.ZodEnum<["sign-in", "sign-up"]>;
2392
+ /** Where the tenant's site should send the user after auth completes. */
2393
+ returnTo: z.ZodOptional<z.ZodString>;
2394
+ /** Pre-fills the email field on the WorkOS hosted page. */
2395
+ loginHint: z.ZodOptional<z.ZodString>;
2396
+ /**
2397
+ * The tenant's installed callback URL — must match what was registered with
2398
+ * WorkOS. Required because the tenant lives on its own domain.
2399
+ */
2400
+ redirectUri: z.ZodString;
2401
+ }, "strip", z.ZodTypeAny, {
2402
+ intent: "sign-in" | "sign-up";
2403
+ redirectUri: string;
2404
+ returnTo?: string | undefined;
2405
+ loginHint?: string | undefined;
2406
+ }, {
2407
+ intent: "sign-in" | "sign-up";
2408
+ redirectUri: string;
2409
+ returnTo?: string | undefined;
2410
+ loginHint?: string | undefined;
2411
+ }>;
2412
+ export declare const tenantAuthStartResponseSchema: z.ZodObject<{
2413
+ url: z.ZodString;
2414
+ }, "strip", z.ZodTypeAny, {
2415
+ url: string;
2416
+ }, {
2417
+ url: string;
2418
+ }>;
2419
+ export declare const tenantAuthExchangeInputSchema: z.ZodObject<{
2420
+ code: z.ZodString;
2421
+ /** The same redirectUri used when starting; WorkOS validates this matches. */
2422
+ redirectUri: z.ZodString;
2423
+ }, "strip", z.ZodTypeAny, {
2424
+ code: string;
2425
+ redirectUri: string;
2426
+ }, {
2427
+ code: string;
2428
+ redirectUri: string;
2429
+ }>;
2430
+ export declare const tenantAuthUserSchema: z.ZodObject<{
2431
+ id: z.ZodString;
2432
+ email: z.ZodNullable<z.ZodString>;
2433
+ firstName: z.ZodNullable<z.ZodString>;
2434
+ lastName: z.ZodNullable<z.ZodString>;
2435
+ }, "strip", z.ZodTypeAny, {
2436
+ id: string;
2437
+ email: string | null;
2438
+ firstName: string | null;
2439
+ lastName: string | null;
2440
+ }, {
2441
+ id: string;
2442
+ email: string | null;
2443
+ firstName: string | null;
2444
+ lastName: string | null;
2445
+ }>;
2446
+ export declare const tenantAuthSessionSchema: z.ZodObject<{
2447
+ user: z.ZodObject<{
2448
+ id: z.ZodString;
2449
+ email: z.ZodNullable<z.ZodString>;
2450
+ firstName: z.ZodNullable<z.ZodString>;
2451
+ lastName: z.ZodNullable<z.ZodString>;
2452
+ }, "strip", z.ZodTypeAny, {
2453
+ id: string;
2454
+ email: string | null;
2455
+ firstName: string | null;
2456
+ lastName: string | null;
2457
+ }, {
2458
+ id: string;
2459
+ email: string | null;
2460
+ firstName: string | null;
2461
+ lastName: string | null;
2462
+ }>;
2463
+ organizationId: z.ZodString;
2464
+ role: z.ZodNullable<z.ZodString>;
2465
+ /** Opaque token the tenant cookie should store; pass back as Bearer for `/me`. */
2466
+ sessionToken: z.ZodString;
2467
+ expiresAt: z.ZodString;
2468
+ }, "strip", z.ZodTypeAny, {
2469
+ expiresAt: string;
2470
+ role: string | null;
2471
+ user: {
2472
+ id: string;
2473
+ email: string | null;
2474
+ firstName: string | null;
2475
+ lastName: string | null;
2476
+ };
2477
+ organizationId: string;
2478
+ sessionToken: string;
2479
+ }, {
2480
+ expiresAt: string;
2481
+ role: string | null;
2482
+ user: {
2483
+ id: string;
2484
+ email: string | null;
2485
+ firstName: string | null;
2486
+ lastName: string | null;
2487
+ };
2488
+ organizationId: string;
2489
+ sessionToken: string;
2490
+ }>;
2491
+ export declare const tenantAuthExchangeResponseSchema: z.ZodObject<{
2492
+ user: z.ZodObject<{
2493
+ id: z.ZodString;
2494
+ email: z.ZodNullable<z.ZodString>;
2495
+ firstName: z.ZodNullable<z.ZodString>;
2496
+ lastName: z.ZodNullable<z.ZodString>;
2497
+ }, "strip", z.ZodTypeAny, {
2498
+ id: string;
2499
+ email: string | null;
2500
+ firstName: string | null;
2501
+ lastName: string | null;
2502
+ }, {
2503
+ id: string;
2504
+ email: string | null;
2505
+ firstName: string | null;
2506
+ lastName: string | null;
2507
+ }>;
2508
+ organizationId: z.ZodString;
2509
+ role: z.ZodNullable<z.ZodString>;
2510
+ /** Opaque token the tenant cookie should store; pass back as Bearer for `/me`. */
2511
+ sessionToken: z.ZodString;
2512
+ expiresAt: z.ZodString;
2513
+ }, "strip", z.ZodTypeAny, {
2514
+ expiresAt: string;
2515
+ role: string | null;
2516
+ user: {
2517
+ id: string;
2518
+ email: string | null;
2519
+ firstName: string | null;
2520
+ lastName: string | null;
2521
+ };
2522
+ organizationId: string;
2523
+ sessionToken: string;
2524
+ }, {
2525
+ expiresAt: string;
2526
+ role: string | null;
2527
+ user: {
2528
+ id: string;
2529
+ email: string | null;
2530
+ firstName: string | null;
2531
+ lastName: string | null;
2532
+ };
2533
+ organizationId: string;
2534
+ sessionToken: string;
2535
+ }>;
2536
+ export declare const tenantAuthMeResponseSchema: z.ZodNullable<z.ZodObject<{
2537
+ user: z.ZodObject<{
2538
+ id: z.ZodString;
2539
+ email: z.ZodNullable<z.ZodString>;
2540
+ firstName: z.ZodNullable<z.ZodString>;
2541
+ lastName: z.ZodNullable<z.ZodString>;
2542
+ }, "strip", z.ZodTypeAny, {
2543
+ id: string;
2544
+ email: string | null;
2545
+ firstName: string | null;
2546
+ lastName: string | null;
2547
+ }, {
2548
+ id: string;
2549
+ email: string | null;
2550
+ firstName: string | null;
2551
+ lastName: string | null;
2552
+ }>;
2553
+ organizationId: z.ZodString;
2554
+ role: z.ZodNullable<z.ZodString>;
2555
+ }, "strip", z.ZodTypeAny, {
2556
+ role: string | null;
2557
+ user: {
2558
+ id: string;
2559
+ email: string | null;
2560
+ firstName: string | null;
2561
+ lastName: string | null;
2562
+ };
2563
+ organizationId: string;
2564
+ }, {
2565
+ role: string | null;
2566
+ user: {
2567
+ id: string;
2568
+ email: string | null;
2569
+ firstName: string | null;
2570
+ lastName: string | null;
2571
+ };
2572
+ organizationId: string;
2573
+ }>>;
2574
+ export declare const tenantAuthSignOutResponseSchema: z.ZodObject<{
2575
+ ok: z.ZodLiteral<true>;
2576
+ }, "strip", z.ZodTypeAny, {
2577
+ ok: true;
2578
+ }, {
2579
+ ok: true;
2580
+ }>;
2581
+ export type TenantAuthIntent = z.infer<typeof tenantAuthIntentSchema>;
2582
+ export type TenantAuthStartInput = z.infer<typeof tenantAuthStartInputSchema>;
2583
+ export type TenantAuthStartResponse = z.infer<typeof tenantAuthStartResponseSchema>;
2584
+ export type TenantAuthExchangeInput = z.infer<typeof tenantAuthExchangeInputSchema>;
2585
+ export type TenantAuthExchangeResponse = z.infer<typeof tenantAuthExchangeResponseSchema>;
2586
+ export type TenantAuthSession = z.infer<typeof tenantAuthSessionSchema>;
2587
+ export type TenantAuthUser = z.infer<typeof tenantAuthUserSchema>;
2588
+ export type TenantAuthMeResponse = z.infer<typeof tenantAuthMeResponseSchema>;
2589
+ export type TenantAuthSignOutResponse = z.infer<typeof tenantAuthSignOutResponseSchema>;
1987
2590
  //# sourceMappingURL=contracts.d.ts.map