@voyantjs/legal 0.45.0 → 0.47.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.
@@ -35,6 +35,8 @@ export declare function createContractsAdminRoutes(options?: ContractsRouteOptio
35
35
  body: string;
36
36
  variableSchema: import("hono/utils/types").JSONValue;
37
37
  currentVersionId: string | null;
38
+ channelId: string | null;
39
+ isDefault: boolean;
38
40
  active: boolean;
39
41
  createdAt: string;
40
42
  updatedAt: string;
@@ -60,18 +62,20 @@ export declare function createContractsAdminRoutes(options?: ContractsRouteOptio
60
62
  input: {};
61
63
  output: {
62
64
  data: {
63
- id: string;
64
65
  name: string;
65
- slug: string;
66
- scope: "customer" | "partner" | "supplier" | "other" | "channel";
67
- language: string;
66
+ id: string;
68
67
  description: string | null;
68
+ createdAt: string;
69
+ updatedAt: string;
70
+ scope: "customer" | "partner" | "supplier" | "other" | "channel";
71
+ slug: string;
72
+ active: boolean;
69
73
  body: string;
74
+ language: string;
75
+ channelId: string | null;
70
76
  variableSchema: import("hono/utils/types").JSONValue;
77
+ isDefault: boolean;
71
78
  currentVersionId: string | null;
72
- active: boolean;
73
- createdAt: string;
74
- updatedAt: string;
75
79
  };
76
80
  };
77
81
  outputFormat: "json";
@@ -94,7 +98,9 @@ export declare function createContractsAdminRoutes(options?: ContractsRouteOptio
94
98
  active: boolean;
95
99
  body: string;
96
100
  language: string;
101
+ channelId: string | null;
97
102
  variableSchema: import("hono/utils/types").JSONValue;
103
+ isDefault: boolean;
98
104
  currentVersionId: string | null;
99
105
  } | null;
100
106
  };
@@ -132,6 +138,8 @@ export declare function createContractsAdminRoutes(options?: ContractsRouteOptio
132
138
  body: string;
133
139
  variableSchema: import("hono/utils/types").JSONValue;
134
140
  currentVersionId: string | null;
141
+ channelId: string | null;
142
+ isDefault: boolean;
135
143
  active: boolean;
136
144
  createdAt: string;
137
145
  updatedAt: string;
@@ -171,6 +179,8 @@ export declare function createContractsAdminRoutes(options?: ContractsRouteOptio
171
179
  body: string;
172
180
  variableSchema: import("hono/utils/types").JSONValue;
173
181
  currentVersionId: string | null;
182
+ channelId: string | null;
183
+ isDefault: boolean;
174
184
  active: boolean;
175
185
  createdAt: string;
176
186
  updatedAt: string;
@@ -248,6 +258,48 @@ export declare function createContractsAdminRoutes(options?: ContractsRouteOptio
248
258
  status: 404;
249
259
  };
250
260
  };
261
+ } & {
262
+ "/templates/:id/render-preview": {
263
+ $post: {
264
+ input: {
265
+ param: {
266
+ id: string;
267
+ };
268
+ };
269
+ output: {
270
+ error: string;
271
+ issues: {
272
+ message: string;
273
+ }[];
274
+ };
275
+ outputFormat: "json";
276
+ status: 400;
277
+ } | {
278
+ input: {
279
+ param: {
280
+ id: string;
281
+ };
282
+ };
283
+ output: {
284
+ data: {
285
+ rendered: string;
286
+ };
287
+ };
288
+ outputFormat: "json";
289
+ status: import("hono/utils/http-status").ContentfulStatusCode;
290
+ } | {
291
+ input: {
292
+ param: {
293
+ id: string;
294
+ };
295
+ };
296
+ output: {
297
+ error: string;
298
+ };
299
+ outputFormat: "json";
300
+ status: 404;
301
+ };
302
+ };
251
303
  } & {
252
304
  "/templates/:id/versions": {
253
305
  $get: {
@@ -554,6 +606,7 @@ export declare function createContractsAdminRoutes(options?: ContractsRouteOptio
554
606
  status: "executed" | "void" | "draft" | "issued" | "sent" | "signed" | "expired";
555
607
  bookingId: string | null;
556
608
  language: string;
609
+ channelId: string | null;
557
610
  variables: import("hono/utils/types").JSONValue;
558
611
  personId: string | null;
559
612
  supplierId: string | null;
@@ -561,7 +614,6 @@ export declare function createContractsAdminRoutes(options?: ContractsRouteOptio
561
614
  title: string;
562
615
  templateVersionId: string | null;
563
616
  seriesId: string | null;
564
- channelId: string | null;
565
617
  sentAt: string | null;
566
618
  contractNumber: string | null;
567
619
  issuedAt: string | null;
@@ -1250,6 +1302,85 @@ export declare function createContractsAdminRoutes(options?: ContractsRouteOptio
1250
1302
  status: import("hono/utils/http-status").ContentfulStatusCode;
1251
1303
  };
1252
1304
  };
1305
+ } & {
1306
+ "/:id/regenerate-pdf": {
1307
+ $post: {
1308
+ input: {
1309
+ param: {
1310
+ id: string;
1311
+ };
1312
+ };
1313
+ output: {
1314
+ error: string;
1315
+ };
1316
+ outputFormat: "json";
1317
+ status: 501;
1318
+ } | {
1319
+ input: {
1320
+ param: {
1321
+ id: string;
1322
+ };
1323
+ };
1324
+ output: {
1325
+ error: string;
1326
+ };
1327
+ outputFormat: "json";
1328
+ status: 404;
1329
+ } | {
1330
+ input: {
1331
+ param: {
1332
+ id: string;
1333
+ };
1334
+ };
1335
+ output: {
1336
+ error: string;
1337
+ };
1338
+ outputFormat: "json";
1339
+ status: 409;
1340
+ } | {
1341
+ input: {
1342
+ param: {
1343
+ id: string;
1344
+ };
1345
+ };
1346
+ output: {
1347
+ error: string;
1348
+ };
1349
+ outputFormat: "json";
1350
+ status: 502;
1351
+ } | {
1352
+ input: {
1353
+ param: {
1354
+ id: string;
1355
+ };
1356
+ };
1357
+ output: {
1358
+ data: {
1359
+ status: "not_found" | "not_draft" | "render_unavailable" | "generator_failed";
1360
+ } | {
1361
+ status: "generated";
1362
+ contractId: string;
1363
+ contractStatus: "executed" | "void" | "draft" | "issued" | "sent" | "signed" | "expired";
1364
+ renderedBodyFormat: "markdown" | "html" | "lexical_json";
1365
+ renderedBody: string;
1366
+ attachment: {
1367
+ metadata: import("hono/utils/types").JSONValue;
1368
+ name: string;
1369
+ id: string;
1370
+ createdAt: string;
1371
+ kind: string;
1372
+ mimeType: string | null;
1373
+ fileSize: number | null;
1374
+ storageKey: string | null;
1375
+ checksum: string | null;
1376
+ contractId: string;
1377
+ };
1378
+ };
1379
+ };
1380
+ outputFormat: "json";
1381
+ status: import("hono/utils/http-status").ContentfulStatusCode;
1382
+ };
1383
+ };
1253
1384
  } & {
1254
1385
  "/:id/signatures": {
1255
1386
  $get: {
@@ -1375,6 +1506,37 @@ export declare function createContractsAdminRoutes(options?: ContractsRouteOptio
1375
1506
  status: import("hono/utils/http-status").StatusCode;
1376
1507
  };
1377
1508
  };
1509
+ } & {
1510
+ "/:id/attach-document": {
1511
+ $post: {
1512
+ input: {
1513
+ param: {
1514
+ id: string;
1515
+ };
1516
+ };
1517
+ output: Promise<void>;
1518
+ outputFormat: "json";
1519
+ status: import("hono/utils/http-status").StatusCode;
1520
+ } | {
1521
+ input: {
1522
+ param: {
1523
+ id: string;
1524
+ };
1525
+ };
1526
+ output: {};
1527
+ outputFormat: string;
1528
+ status: import("hono/utils/http-status").StatusCode;
1529
+ } | {
1530
+ input: {
1531
+ param: {
1532
+ id: string;
1533
+ };
1534
+ };
1535
+ output: {};
1536
+ outputFormat: string;
1537
+ status: import("hono/utils/http-status").StatusCode;
1538
+ };
1539
+ };
1378
1540
  } & {
1379
1541
  "/attachments/:attachmentId": {
1380
1542
  $patch: {
@@ -1520,6 +1682,8 @@ export declare const contractsAdminRoutes: import("hono/hono-base").HonoBase<Env
1520
1682
  body: string;
1521
1683
  variableSchema: import("hono/utils/types").JSONValue;
1522
1684
  currentVersionId: string | null;
1685
+ channelId: string | null;
1686
+ isDefault: boolean;
1523
1687
  active: boolean;
1524
1688
  createdAt: string;
1525
1689
  updatedAt: string;
@@ -1545,18 +1709,20 @@ export declare const contractsAdminRoutes: import("hono/hono-base").HonoBase<Env
1545
1709
  input: {};
1546
1710
  output: {
1547
1711
  data: {
1548
- id: string;
1549
1712
  name: string;
1550
- slug: string;
1551
- scope: "customer" | "partner" | "supplier" | "other" | "channel";
1552
- language: string;
1713
+ id: string;
1553
1714
  description: string | null;
1715
+ createdAt: string;
1716
+ updatedAt: string;
1717
+ scope: "customer" | "partner" | "supplier" | "other" | "channel";
1718
+ slug: string;
1719
+ active: boolean;
1554
1720
  body: string;
1721
+ language: string;
1722
+ channelId: string | null;
1555
1723
  variableSchema: import("hono/utils/types").JSONValue;
1724
+ isDefault: boolean;
1556
1725
  currentVersionId: string | null;
1557
- active: boolean;
1558
- createdAt: string;
1559
- updatedAt: string;
1560
1726
  };
1561
1727
  };
1562
1728
  outputFormat: "json";
@@ -1579,7 +1745,9 @@ export declare const contractsAdminRoutes: import("hono/hono-base").HonoBase<Env
1579
1745
  active: boolean;
1580
1746
  body: string;
1581
1747
  language: string;
1748
+ channelId: string | null;
1582
1749
  variableSchema: import("hono/utils/types").JSONValue;
1750
+ isDefault: boolean;
1583
1751
  currentVersionId: string | null;
1584
1752
  } | null;
1585
1753
  };
@@ -1617,6 +1785,8 @@ export declare const contractsAdminRoutes: import("hono/hono-base").HonoBase<Env
1617
1785
  body: string;
1618
1786
  variableSchema: import("hono/utils/types").JSONValue;
1619
1787
  currentVersionId: string | null;
1788
+ channelId: string | null;
1789
+ isDefault: boolean;
1620
1790
  active: boolean;
1621
1791
  createdAt: string;
1622
1792
  updatedAt: string;
@@ -1656,6 +1826,8 @@ export declare const contractsAdminRoutes: import("hono/hono-base").HonoBase<Env
1656
1826
  body: string;
1657
1827
  variableSchema: import("hono/utils/types").JSONValue;
1658
1828
  currentVersionId: string | null;
1829
+ channelId: string | null;
1830
+ isDefault: boolean;
1659
1831
  active: boolean;
1660
1832
  createdAt: string;
1661
1833
  updatedAt: string;
@@ -1733,6 +1905,48 @@ export declare const contractsAdminRoutes: import("hono/hono-base").HonoBase<Env
1733
1905
  status: 404;
1734
1906
  };
1735
1907
  };
1908
+ } & {
1909
+ "/templates/:id/render-preview": {
1910
+ $post: {
1911
+ input: {
1912
+ param: {
1913
+ id: string;
1914
+ };
1915
+ };
1916
+ output: {
1917
+ error: string;
1918
+ issues: {
1919
+ message: string;
1920
+ }[];
1921
+ };
1922
+ outputFormat: "json";
1923
+ status: 400;
1924
+ } | {
1925
+ input: {
1926
+ param: {
1927
+ id: string;
1928
+ };
1929
+ };
1930
+ output: {
1931
+ data: {
1932
+ rendered: string;
1933
+ };
1934
+ };
1935
+ outputFormat: "json";
1936
+ status: import("hono/utils/http-status").ContentfulStatusCode;
1937
+ } | {
1938
+ input: {
1939
+ param: {
1940
+ id: string;
1941
+ };
1942
+ };
1943
+ output: {
1944
+ error: string;
1945
+ };
1946
+ outputFormat: "json";
1947
+ status: 404;
1948
+ };
1949
+ };
1736
1950
  } & {
1737
1951
  "/templates/:id/versions": {
1738
1952
  $get: {
@@ -2039,6 +2253,7 @@ export declare const contractsAdminRoutes: import("hono/hono-base").HonoBase<Env
2039
2253
  status: "executed" | "void" | "draft" | "issued" | "sent" | "signed" | "expired";
2040
2254
  bookingId: string | null;
2041
2255
  language: string;
2256
+ channelId: string | null;
2042
2257
  variables: import("hono/utils/types").JSONValue;
2043
2258
  personId: string | null;
2044
2259
  supplierId: string | null;
@@ -2046,7 +2261,6 @@ export declare const contractsAdminRoutes: import("hono/hono-base").HonoBase<Env
2046
2261
  title: string;
2047
2262
  templateVersionId: string | null;
2048
2263
  seriesId: string | null;
2049
- channelId: string | null;
2050
2264
  sentAt: string | null;
2051
2265
  contractNumber: string | null;
2052
2266
  issuedAt: string | null;
@@ -2736,36 +2950,115 @@ export declare const contractsAdminRoutes: import("hono/hono-base").HonoBase<Env
2736
2950
  };
2737
2951
  };
2738
2952
  } & {
2739
- "/:id/signatures": {
2740
- $get: {
2953
+ "/:id/regenerate-pdf": {
2954
+ $post: {
2741
2955
  input: {
2742
2956
  param: {
2743
2957
  id: string;
2744
2958
  };
2745
2959
  };
2746
2960
  output: {
2747
- data: {
2748
- id: string;
2749
- contractId: string;
2750
- signerName: string;
2751
- signerEmail: string | null;
2752
- signerRole: string | null;
2753
- personId: string | null;
2754
- method: "other" | "manual" | "electronic" | "docusign";
2755
- provider: string | null;
2756
- externalReference: string | null;
2757
- signatureData: string | null;
2758
- ipAddress: string | null;
2759
- userAgent: string | null;
2760
- signedAt: string;
2761
- metadata: import("hono/utils/types").JSONValue;
2762
- createdAt: string;
2763
- }[];
2961
+ error: string;
2764
2962
  };
2765
2963
  outputFormat: "json";
2766
- status: import("hono/utils/http-status").ContentfulStatusCode;
2767
- };
2768
- };
2964
+ status: 501;
2965
+ } | {
2966
+ input: {
2967
+ param: {
2968
+ id: string;
2969
+ };
2970
+ };
2971
+ output: {
2972
+ error: string;
2973
+ };
2974
+ outputFormat: "json";
2975
+ status: 404;
2976
+ } | {
2977
+ input: {
2978
+ param: {
2979
+ id: string;
2980
+ };
2981
+ };
2982
+ output: {
2983
+ error: string;
2984
+ };
2985
+ outputFormat: "json";
2986
+ status: 409;
2987
+ } | {
2988
+ input: {
2989
+ param: {
2990
+ id: string;
2991
+ };
2992
+ };
2993
+ output: {
2994
+ error: string;
2995
+ };
2996
+ outputFormat: "json";
2997
+ status: 502;
2998
+ } | {
2999
+ input: {
3000
+ param: {
3001
+ id: string;
3002
+ };
3003
+ };
3004
+ output: {
3005
+ data: {
3006
+ status: "not_found" | "not_draft" | "render_unavailable" | "generator_failed";
3007
+ } | {
3008
+ status: "generated";
3009
+ contractId: string;
3010
+ contractStatus: "executed" | "void" | "draft" | "issued" | "sent" | "signed" | "expired";
3011
+ renderedBodyFormat: "markdown" | "html" | "lexical_json";
3012
+ renderedBody: string;
3013
+ attachment: {
3014
+ metadata: import("hono/utils/types").JSONValue;
3015
+ name: string;
3016
+ id: string;
3017
+ createdAt: string;
3018
+ kind: string;
3019
+ mimeType: string | null;
3020
+ fileSize: number | null;
3021
+ storageKey: string | null;
3022
+ checksum: string | null;
3023
+ contractId: string;
3024
+ };
3025
+ };
3026
+ };
3027
+ outputFormat: "json";
3028
+ status: import("hono/utils/http-status").ContentfulStatusCode;
3029
+ };
3030
+ };
3031
+ } & {
3032
+ "/:id/signatures": {
3033
+ $get: {
3034
+ input: {
3035
+ param: {
3036
+ id: string;
3037
+ };
3038
+ };
3039
+ output: {
3040
+ data: {
3041
+ id: string;
3042
+ contractId: string;
3043
+ signerName: string;
3044
+ signerEmail: string | null;
3045
+ signerRole: string | null;
3046
+ personId: string | null;
3047
+ method: "other" | "manual" | "electronic" | "docusign";
3048
+ provider: string | null;
3049
+ externalReference: string | null;
3050
+ signatureData: string | null;
3051
+ ipAddress: string | null;
3052
+ userAgent: string | null;
3053
+ signedAt: string;
3054
+ metadata: import("hono/utils/types").JSONValue;
3055
+ createdAt: string;
3056
+ }[];
3057
+ };
3058
+ outputFormat: "json";
3059
+ status: import("hono/utils/http-status").ContentfulStatusCode;
3060
+ };
3061
+ };
2769
3062
  } & {
2770
3063
  "/:id/attachments": {
2771
3064
  $get: {
@@ -2860,6 +3153,37 @@ export declare const contractsAdminRoutes: import("hono/hono-base").HonoBase<Env
2860
3153
  status: import("hono/utils/http-status").StatusCode;
2861
3154
  };
2862
3155
  };
3156
+ } & {
3157
+ "/:id/attach-document": {
3158
+ $post: {
3159
+ input: {
3160
+ param: {
3161
+ id: string;
3162
+ };
3163
+ };
3164
+ output: Promise<void>;
3165
+ outputFormat: "json";
3166
+ status: import("hono/utils/http-status").StatusCode;
3167
+ } | {
3168
+ input: {
3169
+ param: {
3170
+ id: string;
3171
+ };
3172
+ };
3173
+ output: {};
3174
+ outputFormat: string;
3175
+ status: import("hono/utils/http-status").StatusCode;
3176
+ } | {
3177
+ input: {
3178
+ param: {
3179
+ id: string;
3180
+ };
3181
+ };
3182
+ output: {};
3183
+ outputFormat: string;
3184
+ status: import("hono/utils/http-status").StatusCode;
3185
+ };
3186
+ };
2863
3187
  } & {
2864
3188
  "/attachments/:attachmentId": {
2865
3189
  $patch: {
@@ -3003,18 +3327,20 @@ export declare function createContractsPublicRoutes(): import("hono/hono-base").
3003
3327
  input: {};
3004
3328
  output: {
3005
3329
  data: {
3006
- id: string;
3007
3330
  name: string;
3008
- slug: string;
3009
- scope: "customer" | "partner" | "supplier" | "other" | "channel";
3010
- language: string;
3331
+ id: string;
3011
3332
  description: string | null;
3333
+ createdAt: string;
3334
+ updatedAt: string;
3335
+ scope: "customer" | "partner" | "supplier" | "other" | "channel";
3336
+ slug: string;
3337
+ active: boolean;
3012
3338
  body: string;
3339
+ language: string;
3340
+ channelId: string | null;
3013
3341
  variableSchema: import("hono/utils/types").JSONValue;
3342
+ isDefault: boolean;
3014
3343
  currentVersionId: string | null;
3015
- active: boolean;
3016
- createdAt: string;
3017
- updatedAt: string;
3018
3344
  };
3019
3345
  };
3020
3346
  outputFormat: "json";
@@ -3063,6 +3389,48 @@ export declare function createContractsPublicRoutes(): import("hono/hono-base").
3063
3389
  status: 404;
3064
3390
  };
3065
3391
  };
3392
+ } & {
3393
+ "/templates/:id/render-preview": {
3394
+ $post: {
3395
+ input: {
3396
+ param: {
3397
+ id: string;
3398
+ };
3399
+ };
3400
+ output: {
3401
+ error: string;
3402
+ issues: {
3403
+ message: string;
3404
+ }[];
3405
+ };
3406
+ outputFormat: "json";
3407
+ status: 400;
3408
+ } | {
3409
+ input: {
3410
+ param: {
3411
+ id: string;
3412
+ };
3413
+ };
3414
+ output: {
3415
+ data: {
3416
+ rendered: string;
3417
+ };
3418
+ };
3419
+ outputFormat: "json";
3420
+ status: import("hono/utils/http-status").ContentfulStatusCode;
3421
+ } | {
3422
+ input: {
3423
+ param: {
3424
+ id: string;
3425
+ };
3426
+ };
3427
+ output: {
3428
+ error: string;
3429
+ };
3430
+ outputFormat: "json";
3431
+ status: 404;
3432
+ };
3433
+ };
3066
3434
  } & {
3067
3435
  "/templates/by-slug/:slug/preview": {
3068
3436
  $post: {
@@ -3105,6 +3473,48 @@ export declare function createContractsPublicRoutes(): import("hono/hono-base").
3105
3473
  status: 404;
3106
3474
  };
3107
3475
  };
3476
+ } & {
3477
+ "/templates/by-slug/:slug/render-preview": {
3478
+ $post: {
3479
+ input: {
3480
+ param: {
3481
+ slug: string;
3482
+ };
3483
+ };
3484
+ output: {
3485
+ error: string;
3486
+ issues: {
3487
+ message: string;
3488
+ }[];
3489
+ };
3490
+ outputFormat: "json";
3491
+ status: 400;
3492
+ } | {
3493
+ input: {
3494
+ param: {
3495
+ slug: string;
3496
+ };
3497
+ };
3498
+ output: {
3499
+ data: {
3500
+ rendered: string;
3501
+ };
3502
+ };
3503
+ outputFormat: "json";
3504
+ status: import("hono/utils/http-status").ContentfulStatusCode;
3505
+ } | {
3506
+ input: {
3507
+ param: {
3508
+ slug: string;
3509
+ };
3510
+ };
3511
+ output: {
3512
+ error: string;
3513
+ };
3514
+ outputFormat: "json";
3515
+ status: 404;
3516
+ };
3517
+ };
3108
3518
  } & {
3109
3519
  "/:id": {
3110
3520
  $get: {
@@ -3225,18 +3635,20 @@ export declare const contractsPublicRoutes: import("hono/hono-base").HonoBase<En
3225
3635
  input: {};
3226
3636
  output: {
3227
3637
  data: {
3228
- id: string;
3229
3638
  name: string;
3230
- slug: string;
3231
- scope: "customer" | "partner" | "supplier" | "other" | "channel";
3232
- language: string;
3639
+ id: string;
3233
3640
  description: string | null;
3641
+ createdAt: string;
3642
+ updatedAt: string;
3643
+ scope: "customer" | "partner" | "supplier" | "other" | "channel";
3644
+ slug: string;
3645
+ active: boolean;
3234
3646
  body: string;
3647
+ language: string;
3648
+ channelId: string | null;
3235
3649
  variableSchema: import("hono/utils/types").JSONValue;
3650
+ isDefault: boolean;
3236
3651
  currentVersionId: string | null;
3237
- active: boolean;
3238
- createdAt: string;
3239
- updatedAt: string;
3240
3652
  };
3241
3653
  };
3242
3654
  outputFormat: "json";
@@ -3285,6 +3697,48 @@ export declare const contractsPublicRoutes: import("hono/hono-base").HonoBase<En
3285
3697
  status: 404;
3286
3698
  };
3287
3699
  };
3700
+ } & {
3701
+ "/templates/:id/render-preview": {
3702
+ $post: {
3703
+ input: {
3704
+ param: {
3705
+ id: string;
3706
+ };
3707
+ };
3708
+ output: {
3709
+ error: string;
3710
+ issues: {
3711
+ message: string;
3712
+ }[];
3713
+ };
3714
+ outputFormat: "json";
3715
+ status: 400;
3716
+ } | {
3717
+ input: {
3718
+ param: {
3719
+ id: string;
3720
+ };
3721
+ };
3722
+ output: {
3723
+ data: {
3724
+ rendered: string;
3725
+ };
3726
+ };
3727
+ outputFormat: "json";
3728
+ status: import("hono/utils/http-status").ContentfulStatusCode;
3729
+ } | {
3730
+ input: {
3731
+ param: {
3732
+ id: string;
3733
+ };
3734
+ };
3735
+ output: {
3736
+ error: string;
3737
+ };
3738
+ outputFormat: "json";
3739
+ status: 404;
3740
+ };
3741
+ };
3288
3742
  } & {
3289
3743
  "/templates/by-slug/:slug/preview": {
3290
3744
  $post: {
@@ -3327,6 +3781,48 @@ export declare const contractsPublicRoutes: import("hono/hono-base").HonoBase<En
3327
3781
  status: 404;
3328
3782
  };
3329
3783
  };
3784
+ } & {
3785
+ "/templates/by-slug/:slug/render-preview": {
3786
+ $post: {
3787
+ input: {
3788
+ param: {
3789
+ slug: string;
3790
+ };
3791
+ };
3792
+ output: {
3793
+ error: string;
3794
+ issues: {
3795
+ message: string;
3796
+ }[];
3797
+ };
3798
+ outputFormat: "json";
3799
+ status: 400;
3800
+ } | {
3801
+ input: {
3802
+ param: {
3803
+ slug: string;
3804
+ };
3805
+ };
3806
+ output: {
3807
+ data: {
3808
+ rendered: string;
3809
+ };
3810
+ };
3811
+ outputFormat: "json";
3812
+ status: import("hono/utils/http-status").ContentfulStatusCode;
3813
+ } | {
3814
+ input: {
3815
+ param: {
3816
+ slug: string;
3817
+ };
3818
+ };
3819
+ output: {
3820
+ error: string;
3821
+ };
3822
+ outputFormat: "json";
3823
+ status: 404;
3824
+ };
3825
+ };
3330
3826
  } & {
3331
3827
  "/:id": {
3332
3828
  $get: {