@trypattern/sdk 0.1.33 → 0.1.34

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 (45) hide show
  1. package/dist/app.d.ts +6 -2
  2. package/dist/app.js +6 -1
  3. package/dist/blocks.js +11 -3
  4. package/dist/bookings.d.ts +78 -0
  5. package/dist/bookings.js +7 -1
  6. package/dist/bookingsStore.d.ts +78 -0
  7. package/dist/cli/app.js +17 -2
  8. package/dist/cli/requests.d.ts +5 -0
  9. package/dist/cli/requests.js +115 -0
  10. package/dist/components/AppFrame.js +12 -2
  11. package/dist/components/MenuItems.d.ts +1 -0
  12. package/dist/components/MenuItems.js +13 -2
  13. package/dist/components/SegmentedControl.d.ts +1 -0
  14. package/dist/components/SegmentedControl.js +9 -2
  15. package/dist/components/Sidebar.d.ts +1 -0
  16. package/dist/components/Sidebar.js +18 -2
  17. package/dist/components/TableRow.d.ts +2 -1
  18. package/dist/components/TableRow.js +5 -2
  19. package/dist/components/icons.js +1 -2
  20. package/dist/index.d.ts +2 -0
  21. package/dist/index.js +1 -0
  22. package/dist/inquiriesStore.d.ts +134 -0
  23. package/dist/inquiriesStore.js +64 -0
  24. package/dist/patternAccess.d.ts +8 -2
  25. package/dist/patternAccess.js +17 -5
  26. package/dist/publishWire.d.ts +866 -0
  27. package/dist/publishWire.js +78 -0
  28. package/dist/requests.d.ts +361 -0
  29. package/dist/requests.js +180 -0
  30. package/dist/schema.d.ts +2 -0
  31. package/dist/schema.js +1 -0
  32. package/dist/server/authService.d.ts +1 -0
  33. package/dist/server/bookings.d.ts +2 -9
  34. package/dist/server/bookings.js +149 -31
  35. package/dist/server/createServer.js +4 -0
  36. package/dist/server/env.d.ts +3 -0
  37. package/dist/server/index.d.ts +1 -0
  38. package/dist/server/index.js +1 -0
  39. package/dist/server/inquiries.d.ts +9 -0
  40. package/dist/server/inquiries.js +150 -0
  41. package/dist/server/patternViewer.js +7 -1
  42. package/dist/server/requests.d.ts +76 -0
  43. package/dist/server/requests.js +328 -0
  44. package/dist/server/services.js +9 -1
  45. package/package.json +1 -1
@@ -3,6 +3,9 @@ import { appTitle } from './appTitle.ts';
3
3
  export { appTitle };
4
4
  export { ASSERTION_SECONDS, MEDIA_WRITE, NEXT_PAGE_HEADER, TABLES_READ, TABLES_WRITE, assertionKey, signAssertion } from './patternAccess.ts';
5
5
  export type { AssertionKey, AssertionScope } from './patternAccess.ts';
6
+ export { REQUESTS_ACT, REQUESTS_READ } from './patternAccess.ts';
7
+ export { REQUESTS_PATH, REQUEST_SYNC_PAGE, requestBound, requestCard, requestSync } from './requests.ts';
8
+ export type { RequestAct, RequestAction, RequestCard, RequestSync } from './requests.ts';
6
9
  export declare const DASHBOARD_URL = "https://onpattern.app";
7
10
  export declare const APPS_DOMAIN = "onpattern.app";
8
11
  export declare const UPLOAD_LIMIT_BYTES: number;
@@ -410,6 +413,217 @@ export declare const changeSet: z.ZodObject<{
410
413
  }, z.core.$strip>>>;
411
414
  }, z.core.$strip>;
412
415
  export type ChangeSet = z.output<typeof changeSet>;
416
+ export declare const REPLY_LIMIT = 5000;
417
+ export declare const requestMessage: z.ZodObject<{
418
+ id: z.ZodString;
419
+ kind: z.ZodEnum<{
420
+ reply: "reply";
421
+ accepted: "accepted";
422
+ declined: "declined";
423
+ }>;
424
+ text: z.ZodString;
425
+ status: z.ZodEnum<{
426
+ failed: "failed";
427
+ sent: "sent";
428
+ sending: "sending";
429
+ }>;
430
+ problem: z.ZodNullable<z.ZodString>;
431
+ createdAt: z.ZodString;
432
+ sentAt: z.ZodNullable<z.ZodString>;
433
+ }, z.core.$strip>;
434
+ export type RequestMessage = z.output<typeof requestMessage>;
435
+ export declare const requestDraft: z.ZodObject<{
436
+ id: z.ZodString;
437
+ text: z.ZodString;
438
+ asked: z.ZodString;
439
+ device: z.ZodString;
440
+ createdAt: z.ZodString;
441
+ }, z.core.$strip>;
442
+ export type RequestDraft = z.output<typeof requestDraft>;
443
+ export declare const requestEntry: z.ZodObject<{
444
+ source: z.ZodString;
445
+ id: z.ZodString;
446
+ kind: z.ZodEnum<{
447
+ booking: "booking";
448
+ inquiry: "inquiry";
449
+ }>;
450
+ title: z.ZodString;
451
+ label: z.ZodString;
452
+ summary: z.ZodString;
453
+ name: z.ZodString;
454
+ email: z.ZodString;
455
+ when: z.ZodNullable<z.ZodString>;
456
+ whenDetail: z.ZodNullable<z.ZodString>;
457
+ fields: z.ZodArray<z.ZodObject<{
458
+ label: z.ZodString;
459
+ value: z.ZodString;
460
+ }, z.core.$strip>>;
461
+ contact: z.ZodArray<z.ZodObject<{
462
+ label: z.ZodString;
463
+ value: z.ZodString;
464
+ }, z.core.$strip>>;
465
+ message: z.ZodString;
466
+ status: z.ZodEnum<{
467
+ done: "done";
468
+ requested: "requested";
469
+ accepted: "accepted";
470
+ declined: "declined";
471
+ cancelled: "cancelled";
472
+ open: "open";
473
+ replied: "replied";
474
+ }>;
475
+ needsAnswer: z.ZodBoolean;
476
+ actions: z.ZodArray<z.ZodEnum<{
477
+ done: "done";
478
+ accept: "accept";
479
+ decline: "decline";
480
+ reply: "reply";
481
+ }>>;
482
+ revision: z.ZodNumber;
483
+ receivedAt: z.ZodString;
484
+ history: z.ZodArray<z.ZodObject<{
485
+ kind: z.ZodEnum<{
486
+ done: "done";
487
+ accepted: "accepted";
488
+ declined: "declined";
489
+ replied: "replied";
490
+ received: "received";
491
+ }>;
492
+ at: z.ZodString;
493
+ }, z.core.$strip>>;
494
+ notice: z.ZodNullable<z.ZodObject<{
495
+ status: z.ZodEnum<{
496
+ failed: "failed";
497
+ pending: "pending";
498
+ sent: "sent";
499
+ sending: "sending";
500
+ }>;
501
+ attempts: z.ZodNumber;
502
+ at: z.ZodNullable<z.ZodString>;
503
+ }, z.core.$strip>>;
504
+ isUnread: z.ZodBoolean;
505
+ messages: z.ZodArray<z.ZodObject<{
506
+ id: z.ZodString;
507
+ kind: z.ZodEnum<{
508
+ reply: "reply";
509
+ accepted: "accepted";
510
+ declined: "declined";
511
+ }>;
512
+ text: z.ZodString;
513
+ status: z.ZodEnum<{
514
+ failed: "failed";
515
+ sent: "sent";
516
+ sending: "sending";
517
+ }>;
518
+ problem: z.ZodNullable<z.ZodString>;
519
+ createdAt: z.ZodString;
520
+ sentAt: z.ZodNullable<z.ZodString>;
521
+ }, z.core.$strip>>;
522
+ draft: z.ZodNullable<z.ZodObject<{
523
+ id: z.ZodString;
524
+ text: z.ZodString;
525
+ asked: z.ZodString;
526
+ device: z.ZodString;
527
+ createdAt: z.ZodString;
528
+ }, z.core.$strip>>;
529
+ }, z.core.$strip>;
530
+ export type RequestEntry = z.output<typeof requestEntry>;
531
+ export declare const requestList: z.ZodObject<{
532
+ status: z.ZodEnum<{
533
+ none: "none";
534
+ ready: "ready";
535
+ outdated: "outdated";
536
+ }>;
537
+ requests: z.ZodArray<z.ZodObject<{
538
+ source: z.ZodString;
539
+ id: z.ZodString;
540
+ kind: z.ZodEnum<{
541
+ booking: "booking";
542
+ inquiry: "inquiry";
543
+ }>;
544
+ title: z.ZodString;
545
+ label: z.ZodString;
546
+ summary: z.ZodString;
547
+ name: z.ZodString;
548
+ email: z.ZodString;
549
+ when: z.ZodNullable<z.ZodString>;
550
+ whenDetail: z.ZodNullable<z.ZodString>;
551
+ fields: z.ZodArray<z.ZodObject<{
552
+ label: z.ZodString;
553
+ value: z.ZodString;
554
+ }, z.core.$strip>>;
555
+ contact: z.ZodArray<z.ZodObject<{
556
+ label: z.ZodString;
557
+ value: z.ZodString;
558
+ }, z.core.$strip>>;
559
+ message: z.ZodString;
560
+ status: z.ZodEnum<{
561
+ done: "done";
562
+ requested: "requested";
563
+ accepted: "accepted";
564
+ declined: "declined";
565
+ cancelled: "cancelled";
566
+ open: "open";
567
+ replied: "replied";
568
+ }>;
569
+ needsAnswer: z.ZodBoolean;
570
+ actions: z.ZodArray<z.ZodEnum<{
571
+ done: "done";
572
+ accept: "accept";
573
+ decline: "decline";
574
+ reply: "reply";
575
+ }>>;
576
+ revision: z.ZodNumber;
577
+ receivedAt: z.ZodString;
578
+ history: z.ZodArray<z.ZodObject<{
579
+ kind: z.ZodEnum<{
580
+ done: "done";
581
+ accepted: "accepted";
582
+ declined: "declined";
583
+ replied: "replied";
584
+ received: "received";
585
+ }>;
586
+ at: z.ZodString;
587
+ }, z.core.$strip>>;
588
+ notice: z.ZodNullable<z.ZodObject<{
589
+ status: z.ZodEnum<{
590
+ failed: "failed";
591
+ pending: "pending";
592
+ sent: "sent";
593
+ sending: "sending";
594
+ }>;
595
+ attempts: z.ZodNumber;
596
+ at: z.ZodNullable<z.ZodString>;
597
+ }, z.core.$strip>>;
598
+ isUnread: z.ZodBoolean;
599
+ messages: z.ZodArray<z.ZodObject<{
600
+ id: z.ZodString;
601
+ kind: z.ZodEnum<{
602
+ reply: "reply";
603
+ accepted: "accepted";
604
+ declined: "declined";
605
+ }>;
606
+ text: z.ZodString;
607
+ status: z.ZodEnum<{
608
+ failed: "failed";
609
+ sent: "sent";
610
+ sending: "sending";
611
+ }>;
612
+ problem: z.ZodNullable<z.ZodString>;
613
+ createdAt: z.ZodString;
614
+ sentAt: z.ZodNullable<z.ZodString>;
615
+ }, z.core.$strip>>;
616
+ draft: z.ZodNullable<z.ZodObject<{
617
+ id: z.ZodString;
618
+ text: z.ZodString;
619
+ asked: z.ZodString;
620
+ device: z.ZodString;
621
+ createdAt: z.ZodString;
622
+ }, z.core.$strip>>;
623
+ }, z.core.$strip>>;
624
+ syncedAt: z.ZodNullable<z.ZodString>;
625
+ }, z.core.$strip>;
626
+ export type RequestList = z.output<typeof requestList>;
413
627
  export declare const publishServices: {
414
628
  readonly apps: {
415
629
  readonly list: NoInfer<import("./services.ts").ServiceCall<"/apps", {}, z.ZodArray<z.ZodObject<{
@@ -1037,6 +1251,658 @@ export declare const publishServices: {
1037
1251
  }, z.core.$strip>>>;
1038
1252
  }, z.core.$strip>, false>>;
1039
1253
  };
1254
+ readonly requests: {
1255
+ readonly list: NoInfer<import("./services.ts").ServiceCall<"/apps/:name/requests", {}, z.ZodObject<{
1256
+ status: z.ZodEnum<{
1257
+ none: "none";
1258
+ ready: "ready";
1259
+ outdated: "outdated";
1260
+ }>;
1261
+ requests: z.ZodArray<z.ZodObject<{
1262
+ source: z.ZodString;
1263
+ id: z.ZodString;
1264
+ kind: z.ZodEnum<{
1265
+ booking: "booking";
1266
+ inquiry: "inquiry";
1267
+ }>;
1268
+ title: z.ZodString;
1269
+ label: z.ZodString;
1270
+ summary: z.ZodString;
1271
+ name: z.ZodString;
1272
+ email: z.ZodString;
1273
+ when: z.ZodNullable<z.ZodString>;
1274
+ whenDetail: z.ZodNullable<z.ZodString>;
1275
+ fields: z.ZodArray<z.ZodObject<{
1276
+ label: z.ZodString;
1277
+ value: z.ZodString;
1278
+ }, z.core.$strip>>;
1279
+ contact: z.ZodArray<z.ZodObject<{
1280
+ label: z.ZodString;
1281
+ value: z.ZodString;
1282
+ }, z.core.$strip>>;
1283
+ message: z.ZodString;
1284
+ status: z.ZodEnum<{
1285
+ done: "done";
1286
+ requested: "requested";
1287
+ accepted: "accepted";
1288
+ declined: "declined";
1289
+ cancelled: "cancelled";
1290
+ open: "open";
1291
+ replied: "replied";
1292
+ }>;
1293
+ needsAnswer: z.ZodBoolean;
1294
+ actions: z.ZodArray<z.ZodEnum<{
1295
+ done: "done";
1296
+ accept: "accept";
1297
+ decline: "decline";
1298
+ reply: "reply";
1299
+ }>>;
1300
+ revision: z.ZodNumber;
1301
+ receivedAt: z.ZodString;
1302
+ history: z.ZodArray<z.ZodObject<{
1303
+ kind: z.ZodEnum<{
1304
+ done: "done";
1305
+ accepted: "accepted";
1306
+ declined: "declined";
1307
+ replied: "replied";
1308
+ received: "received";
1309
+ }>;
1310
+ at: z.ZodString;
1311
+ }, z.core.$strip>>;
1312
+ notice: z.ZodNullable<z.ZodObject<{
1313
+ status: z.ZodEnum<{
1314
+ failed: "failed";
1315
+ pending: "pending";
1316
+ sent: "sent";
1317
+ sending: "sending";
1318
+ }>;
1319
+ attempts: z.ZodNumber;
1320
+ at: z.ZodNullable<z.ZodString>;
1321
+ }, z.core.$strip>>;
1322
+ isUnread: z.ZodBoolean;
1323
+ messages: z.ZodArray<z.ZodObject<{
1324
+ id: z.ZodString;
1325
+ kind: z.ZodEnum<{
1326
+ reply: "reply";
1327
+ accepted: "accepted";
1328
+ declined: "declined";
1329
+ }>;
1330
+ text: z.ZodString;
1331
+ status: z.ZodEnum<{
1332
+ failed: "failed";
1333
+ sent: "sent";
1334
+ sending: "sending";
1335
+ }>;
1336
+ problem: z.ZodNullable<z.ZodString>;
1337
+ createdAt: z.ZodString;
1338
+ sentAt: z.ZodNullable<z.ZodString>;
1339
+ }, z.core.$strip>>;
1340
+ draft: z.ZodNullable<z.ZodObject<{
1341
+ id: z.ZodString;
1342
+ text: z.ZodString;
1343
+ asked: z.ZodString;
1344
+ device: z.ZodString;
1345
+ createdAt: z.ZodString;
1346
+ }, z.core.$strip>>;
1347
+ }, z.core.$strip>>;
1348
+ syncedAt: z.ZodNullable<z.ZodString>;
1349
+ }, z.core.$strip>, false>>;
1350
+ readonly deliver: NoInfer<import("./services.ts").ServiceCall<"/apps/:name/requests/deliver", {}, z.ZodObject<{
1351
+ status: z.ZodEnum<{
1352
+ none: "none";
1353
+ ready: "ready";
1354
+ outdated: "outdated";
1355
+ }>;
1356
+ requests: z.ZodArray<z.ZodObject<{
1357
+ source: z.ZodString;
1358
+ id: z.ZodString;
1359
+ kind: z.ZodEnum<{
1360
+ booking: "booking";
1361
+ inquiry: "inquiry";
1362
+ }>;
1363
+ title: z.ZodString;
1364
+ label: z.ZodString;
1365
+ summary: z.ZodString;
1366
+ name: z.ZodString;
1367
+ email: z.ZodString;
1368
+ when: z.ZodNullable<z.ZodString>;
1369
+ whenDetail: z.ZodNullable<z.ZodString>;
1370
+ fields: z.ZodArray<z.ZodObject<{
1371
+ label: z.ZodString;
1372
+ value: z.ZodString;
1373
+ }, z.core.$strip>>;
1374
+ contact: z.ZodArray<z.ZodObject<{
1375
+ label: z.ZodString;
1376
+ value: z.ZodString;
1377
+ }, z.core.$strip>>;
1378
+ message: z.ZodString;
1379
+ status: z.ZodEnum<{
1380
+ done: "done";
1381
+ requested: "requested";
1382
+ accepted: "accepted";
1383
+ declined: "declined";
1384
+ cancelled: "cancelled";
1385
+ open: "open";
1386
+ replied: "replied";
1387
+ }>;
1388
+ needsAnswer: z.ZodBoolean;
1389
+ actions: z.ZodArray<z.ZodEnum<{
1390
+ done: "done";
1391
+ accept: "accept";
1392
+ decline: "decline";
1393
+ reply: "reply";
1394
+ }>>;
1395
+ revision: z.ZodNumber;
1396
+ receivedAt: z.ZodString;
1397
+ history: z.ZodArray<z.ZodObject<{
1398
+ kind: z.ZodEnum<{
1399
+ done: "done";
1400
+ accepted: "accepted";
1401
+ declined: "declined";
1402
+ replied: "replied";
1403
+ received: "received";
1404
+ }>;
1405
+ at: z.ZodString;
1406
+ }, z.core.$strip>>;
1407
+ notice: z.ZodNullable<z.ZodObject<{
1408
+ status: z.ZodEnum<{
1409
+ failed: "failed";
1410
+ pending: "pending";
1411
+ sent: "sent";
1412
+ sending: "sending";
1413
+ }>;
1414
+ attempts: z.ZodNumber;
1415
+ at: z.ZodNullable<z.ZodString>;
1416
+ }, z.core.$strip>>;
1417
+ isUnread: z.ZodBoolean;
1418
+ messages: z.ZodArray<z.ZodObject<{
1419
+ id: z.ZodString;
1420
+ kind: z.ZodEnum<{
1421
+ reply: "reply";
1422
+ accepted: "accepted";
1423
+ declined: "declined";
1424
+ }>;
1425
+ text: z.ZodString;
1426
+ status: z.ZodEnum<{
1427
+ failed: "failed";
1428
+ sent: "sent";
1429
+ sending: "sending";
1430
+ }>;
1431
+ problem: z.ZodNullable<z.ZodString>;
1432
+ createdAt: z.ZodString;
1433
+ sentAt: z.ZodNullable<z.ZodString>;
1434
+ }, z.core.$strip>>;
1435
+ draft: z.ZodNullable<z.ZodObject<{
1436
+ id: z.ZodString;
1437
+ text: z.ZodString;
1438
+ asked: z.ZodString;
1439
+ device: z.ZodString;
1440
+ createdAt: z.ZodString;
1441
+ }, z.core.$strip>>;
1442
+ }, z.core.$strip>>;
1443
+ syncedAt: z.ZodNullable<z.ZodString>;
1444
+ }, z.core.$strip>, false>>;
1445
+ readonly open: NoInfer<import("./services.ts").ServiceCall<"/apps/:name/requests/:source/:id/open", {}, z.ZodObject<{
1446
+ source: z.ZodString;
1447
+ id: z.ZodString;
1448
+ kind: z.ZodEnum<{
1449
+ booking: "booking";
1450
+ inquiry: "inquiry";
1451
+ }>;
1452
+ title: z.ZodString;
1453
+ label: z.ZodString;
1454
+ summary: z.ZodString;
1455
+ name: z.ZodString;
1456
+ email: z.ZodString;
1457
+ when: z.ZodNullable<z.ZodString>;
1458
+ whenDetail: z.ZodNullable<z.ZodString>;
1459
+ fields: z.ZodArray<z.ZodObject<{
1460
+ label: z.ZodString;
1461
+ value: z.ZodString;
1462
+ }, z.core.$strip>>;
1463
+ contact: z.ZodArray<z.ZodObject<{
1464
+ label: z.ZodString;
1465
+ value: z.ZodString;
1466
+ }, z.core.$strip>>;
1467
+ message: z.ZodString;
1468
+ status: z.ZodEnum<{
1469
+ done: "done";
1470
+ requested: "requested";
1471
+ accepted: "accepted";
1472
+ declined: "declined";
1473
+ cancelled: "cancelled";
1474
+ open: "open";
1475
+ replied: "replied";
1476
+ }>;
1477
+ needsAnswer: z.ZodBoolean;
1478
+ actions: z.ZodArray<z.ZodEnum<{
1479
+ done: "done";
1480
+ accept: "accept";
1481
+ decline: "decline";
1482
+ reply: "reply";
1483
+ }>>;
1484
+ revision: z.ZodNumber;
1485
+ receivedAt: z.ZodString;
1486
+ history: z.ZodArray<z.ZodObject<{
1487
+ kind: z.ZodEnum<{
1488
+ done: "done";
1489
+ accepted: "accepted";
1490
+ declined: "declined";
1491
+ replied: "replied";
1492
+ received: "received";
1493
+ }>;
1494
+ at: z.ZodString;
1495
+ }, z.core.$strip>>;
1496
+ notice: z.ZodNullable<z.ZodObject<{
1497
+ status: z.ZodEnum<{
1498
+ failed: "failed";
1499
+ pending: "pending";
1500
+ sent: "sent";
1501
+ sending: "sending";
1502
+ }>;
1503
+ attempts: z.ZodNumber;
1504
+ at: z.ZodNullable<z.ZodString>;
1505
+ }, z.core.$strip>>;
1506
+ isUnread: z.ZodBoolean;
1507
+ messages: z.ZodArray<z.ZodObject<{
1508
+ id: z.ZodString;
1509
+ kind: z.ZodEnum<{
1510
+ reply: "reply";
1511
+ accepted: "accepted";
1512
+ declined: "declined";
1513
+ }>;
1514
+ text: z.ZodString;
1515
+ status: z.ZodEnum<{
1516
+ failed: "failed";
1517
+ sent: "sent";
1518
+ sending: "sending";
1519
+ }>;
1520
+ problem: z.ZodNullable<z.ZodString>;
1521
+ createdAt: z.ZodString;
1522
+ sentAt: z.ZodNullable<z.ZodString>;
1523
+ }, z.core.$strip>>;
1524
+ draft: z.ZodNullable<z.ZodObject<{
1525
+ id: z.ZodString;
1526
+ text: z.ZodString;
1527
+ asked: z.ZodString;
1528
+ device: z.ZodString;
1529
+ createdAt: z.ZodString;
1530
+ }, z.core.$strip>>;
1531
+ }, z.core.$strip>, false>>;
1532
+ readonly act: NoInfer<import("./services.ts").ServiceCall<"/apps/:name/requests/:source/:id/act", {
1533
+ action: z.ZodEnum<{
1534
+ done: "done";
1535
+ accept: "accept";
1536
+ decline: "decline";
1537
+ }>;
1538
+ revision: z.ZodNumber;
1539
+ operation: z.ZodString;
1540
+ }, z.ZodObject<{
1541
+ source: z.ZodString;
1542
+ id: z.ZodString;
1543
+ kind: z.ZodEnum<{
1544
+ booking: "booking";
1545
+ inquiry: "inquiry";
1546
+ }>;
1547
+ title: z.ZodString;
1548
+ label: z.ZodString;
1549
+ summary: z.ZodString;
1550
+ name: z.ZodString;
1551
+ email: z.ZodString;
1552
+ when: z.ZodNullable<z.ZodString>;
1553
+ whenDetail: z.ZodNullable<z.ZodString>;
1554
+ fields: z.ZodArray<z.ZodObject<{
1555
+ label: z.ZodString;
1556
+ value: z.ZodString;
1557
+ }, z.core.$strip>>;
1558
+ contact: z.ZodArray<z.ZodObject<{
1559
+ label: z.ZodString;
1560
+ value: z.ZodString;
1561
+ }, z.core.$strip>>;
1562
+ message: z.ZodString;
1563
+ status: z.ZodEnum<{
1564
+ done: "done";
1565
+ requested: "requested";
1566
+ accepted: "accepted";
1567
+ declined: "declined";
1568
+ cancelled: "cancelled";
1569
+ open: "open";
1570
+ replied: "replied";
1571
+ }>;
1572
+ needsAnswer: z.ZodBoolean;
1573
+ actions: z.ZodArray<z.ZodEnum<{
1574
+ done: "done";
1575
+ accept: "accept";
1576
+ decline: "decline";
1577
+ reply: "reply";
1578
+ }>>;
1579
+ revision: z.ZodNumber;
1580
+ receivedAt: z.ZodString;
1581
+ history: z.ZodArray<z.ZodObject<{
1582
+ kind: z.ZodEnum<{
1583
+ done: "done";
1584
+ accepted: "accepted";
1585
+ declined: "declined";
1586
+ replied: "replied";
1587
+ received: "received";
1588
+ }>;
1589
+ at: z.ZodString;
1590
+ }, z.core.$strip>>;
1591
+ notice: z.ZodNullable<z.ZodObject<{
1592
+ status: z.ZodEnum<{
1593
+ failed: "failed";
1594
+ pending: "pending";
1595
+ sent: "sent";
1596
+ sending: "sending";
1597
+ }>;
1598
+ attempts: z.ZodNumber;
1599
+ at: z.ZodNullable<z.ZodString>;
1600
+ }, z.core.$strip>>;
1601
+ isUnread: z.ZodBoolean;
1602
+ messages: z.ZodArray<z.ZodObject<{
1603
+ id: z.ZodString;
1604
+ kind: z.ZodEnum<{
1605
+ reply: "reply";
1606
+ accepted: "accepted";
1607
+ declined: "declined";
1608
+ }>;
1609
+ text: z.ZodString;
1610
+ status: z.ZodEnum<{
1611
+ failed: "failed";
1612
+ sent: "sent";
1613
+ sending: "sending";
1614
+ }>;
1615
+ problem: z.ZodNullable<z.ZodString>;
1616
+ createdAt: z.ZodString;
1617
+ sentAt: z.ZodNullable<z.ZodString>;
1618
+ }, z.core.$strip>>;
1619
+ draft: z.ZodNullable<z.ZodObject<{
1620
+ id: z.ZodString;
1621
+ text: z.ZodString;
1622
+ asked: z.ZodString;
1623
+ device: z.ZodString;
1624
+ createdAt: z.ZodString;
1625
+ }, z.core.$strip>>;
1626
+ }, z.core.$strip>, false>>;
1627
+ readonly reply: NoInfer<import("./services.ts").ServiceCall<"/apps/:name/requests/:source/:id/reply", {
1628
+ text: z.ZodString;
1629
+ revision: z.ZodNumber;
1630
+ operation: z.ZodString;
1631
+ draft: z.ZodOptional<z.ZodString>;
1632
+ }, z.ZodObject<{
1633
+ source: z.ZodString;
1634
+ id: z.ZodString;
1635
+ kind: z.ZodEnum<{
1636
+ booking: "booking";
1637
+ inquiry: "inquiry";
1638
+ }>;
1639
+ title: z.ZodString;
1640
+ label: z.ZodString;
1641
+ summary: z.ZodString;
1642
+ name: z.ZodString;
1643
+ email: z.ZodString;
1644
+ when: z.ZodNullable<z.ZodString>;
1645
+ whenDetail: z.ZodNullable<z.ZodString>;
1646
+ fields: z.ZodArray<z.ZodObject<{
1647
+ label: z.ZodString;
1648
+ value: z.ZodString;
1649
+ }, z.core.$strip>>;
1650
+ contact: z.ZodArray<z.ZodObject<{
1651
+ label: z.ZodString;
1652
+ value: z.ZodString;
1653
+ }, z.core.$strip>>;
1654
+ message: z.ZodString;
1655
+ status: z.ZodEnum<{
1656
+ done: "done";
1657
+ requested: "requested";
1658
+ accepted: "accepted";
1659
+ declined: "declined";
1660
+ cancelled: "cancelled";
1661
+ open: "open";
1662
+ replied: "replied";
1663
+ }>;
1664
+ needsAnswer: z.ZodBoolean;
1665
+ actions: z.ZodArray<z.ZodEnum<{
1666
+ done: "done";
1667
+ accept: "accept";
1668
+ decline: "decline";
1669
+ reply: "reply";
1670
+ }>>;
1671
+ revision: z.ZodNumber;
1672
+ receivedAt: z.ZodString;
1673
+ history: z.ZodArray<z.ZodObject<{
1674
+ kind: z.ZodEnum<{
1675
+ done: "done";
1676
+ accepted: "accepted";
1677
+ declined: "declined";
1678
+ replied: "replied";
1679
+ received: "received";
1680
+ }>;
1681
+ at: z.ZodString;
1682
+ }, z.core.$strip>>;
1683
+ notice: z.ZodNullable<z.ZodObject<{
1684
+ status: z.ZodEnum<{
1685
+ failed: "failed";
1686
+ pending: "pending";
1687
+ sent: "sent";
1688
+ sending: "sending";
1689
+ }>;
1690
+ attempts: z.ZodNumber;
1691
+ at: z.ZodNullable<z.ZodString>;
1692
+ }, z.core.$strip>>;
1693
+ isUnread: z.ZodBoolean;
1694
+ messages: z.ZodArray<z.ZodObject<{
1695
+ id: z.ZodString;
1696
+ kind: z.ZodEnum<{
1697
+ reply: "reply";
1698
+ accepted: "accepted";
1699
+ declined: "declined";
1700
+ }>;
1701
+ text: z.ZodString;
1702
+ status: z.ZodEnum<{
1703
+ failed: "failed";
1704
+ sent: "sent";
1705
+ sending: "sending";
1706
+ }>;
1707
+ problem: z.ZodNullable<z.ZodString>;
1708
+ createdAt: z.ZodString;
1709
+ sentAt: z.ZodNullable<z.ZodString>;
1710
+ }, z.core.$strip>>;
1711
+ draft: z.ZodNullable<z.ZodObject<{
1712
+ id: z.ZodString;
1713
+ text: z.ZodString;
1714
+ asked: z.ZodString;
1715
+ device: z.ZodString;
1716
+ createdAt: z.ZodString;
1717
+ }, z.core.$strip>>;
1718
+ }, z.core.$strip>, false>>;
1719
+ readonly retry: NoInfer<import("./services.ts").ServiceCall<"/apps/:name/requests/:source/:id/retry", {
1720
+ message: z.ZodString;
1721
+ }, z.ZodObject<{
1722
+ source: z.ZodString;
1723
+ id: z.ZodString;
1724
+ kind: z.ZodEnum<{
1725
+ booking: "booking";
1726
+ inquiry: "inquiry";
1727
+ }>;
1728
+ title: z.ZodString;
1729
+ label: z.ZodString;
1730
+ summary: z.ZodString;
1731
+ name: z.ZodString;
1732
+ email: z.ZodString;
1733
+ when: z.ZodNullable<z.ZodString>;
1734
+ whenDetail: z.ZodNullable<z.ZodString>;
1735
+ fields: z.ZodArray<z.ZodObject<{
1736
+ label: z.ZodString;
1737
+ value: z.ZodString;
1738
+ }, z.core.$strip>>;
1739
+ contact: z.ZodArray<z.ZodObject<{
1740
+ label: z.ZodString;
1741
+ value: z.ZodString;
1742
+ }, z.core.$strip>>;
1743
+ message: z.ZodString;
1744
+ status: z.ZodEnum<{
1745
+ done: "done";
1746
+ requested: "requested";
1747
+ accepted: "accepted";
1748
+ declined: "declined";
1749
+ cancelled: "cancelled";
1750
+ open: "open";
1751
+ replied: "replied";
1752
+ }>;
1753
+ needsAnswer: z.ZodBoolean;
1754
+ actions: z.ZodArray<z.ZodEnum<{
1755
+ done: "done";
1756
+ accept: "accept";
1757
+ decline: "decline";
1758
+ reply: "reply";
1759
+ }>>;
1760
+ revision: z.ZodNumber;
1761
+ receivedAt: z.ZodString;
1762
+ history: z.ZodArray<z.ZodObject<{
1763
+ kind: z.ZodEnum<{
1764
+ done: "done";
1765
+ accepted: "accepted";
1766
+ declined: "declined";
1767
+ replied: "replied";
1768
+ received: "received";
1769
+ }>;
1770
+ at: z.ZodString;
1771
+ }, z.core.$strip>>;
1772
+ notice: z.ZodNullable<z.ZodObject<{
1773
+ status: z.ZodEnum<{
1774
+ failed: "failed";
1775
+ pending: "pending";
1776
+ sent: "sent";
1777
+ sending: "sending";
1778
+ }>;
1779
+ attempts: z.ZodNumber;
1780
+ at: z.ZodNullable<z.ZodString>;
1781
+ }, z.core.$strip>>;
1782
+ isUnread: z.ZodBoolean;
1783
+ messages: z.ZodArray<z.ZodObject<{
1784
+ id: z.ZodString;
1785
+ kind: z.ZodEnum<{
1786
+ reply: "reply";
1787
+ accepted: "accepted";
1788
+ declined: "declined";
1789
+ }>;
1790
+ text: z.ZodString;
1791
+ status: z.ZodEnum<{
1792
+ failed: "failed";
1793
+ sent: "sent";
1794
+ sending: "sending";
1795
+ }>;
1796
+ problem: z.ZodNullable<z.ZodString>;
1797
+ createdAt: z.ZodString;
1798
+ sentAt: z.ZodNullable<z.ZodString>;
1799
+ }, z.core.$strip>>;
1800
+ draft: z.ZodNullable<z.ZodObject<{
1801
+ id: z.ZodString;
1802
+ text: z.ZodString;
1803
+ asked: z.ZodString;
1804
+ device: z.ZodString;
1805
+ createdAt: z.ZodString;
1806
+ }, z.core.$strip>>;
1807
+ }, z.core.$strip>, false>>;
1808
+ readonly draft: NoInfer<import("./services.ts").ServiceCall<"/apps/:name/requests/:source/:id/drafts", {
1809
+ text: z.ZodString;
1810
+ asked: z.ZodString;
1811
+ }, z.ZodObject<{
1812
+ id: z.ZodString;
1813
+ text: z.ZodString;
1814
+ asked: z.ZodString;
1815
+ device: z.ZodString;
1816
+ createdAt: z.ZodString;
1817
+ }, z.core.$strip>, false>>;
1818
+ readonly discard: NoInfer<import("./services.ts").ServiceCall<"/apps/:name/requests/:source/:id/drafts/:draft/discard", {}, z.ZodObject<{
1819
+ source: z.ZodString;
1820
+ id: z.ZodString;
1821
+ kind: z.ZodEnum<{
1822
+ booking: "booking";
1823
+ inquiry: "inquiry";
1824
+ }>;
1825
+ title: z.ZodString;
1826
+ label: z.ZodString;
1827
+ summary: z.ZodString;
1828
+ name: z.ZodString;
1829
+ email: z.ZodString;
1830
+ when: z.ZodNullable<z.ZodString>;
1831
+ whenDetail: z.ZodNullable<z.ZodString>;
1832
+ fields: z.ZodArray<z.ZodObject<{
1833
+ label: z.ZodString;
1834
+ value: z.ZodString;
1835
+ }, z.core.$strip>>;
1836
+ contact: z.ZodArray<z.ZodObject<{
1837
+ label: z.ZodString;
1838
+ value: z.ZodString;
1839
+ }, z.core.$strip>>;
1840
+ message: z.ZodString;
1841
+ status: z.ZodEnum<{
1842
+ done: "done";
1843
+ requested: "requested";
1844
+ accepted: "accepted";
1845
+ declined: "declined";
1846
+ cancelled: "cancelled";
1847
+ open: "open";
1848
+ replied: "replied";
1849
+ }>;
1850
+ needsAnswer: z.ZodBoolean;
1851
+ actions: z.ZodArray<z.ZodEnum<{
1852
+ done: "done";
1853
+ accept: "accept";
1854
+ decline: "decline";
1855
+ reply: "reply";
1856
+ }>>;
1857
+ revision: z.ZodNumber;
1858
+ receivedAt: z.ZodString;
1859
+ history: z.ZodArray<z.ZodObject<{
1860
+ kind: z.ZodEnum<{
1861
+ done: "done";
1862
+ accepted: "accepted";
1863
+ declined: "declined";
1864
+ replied: "replied";
1865
+ received: "received";
1866
+ }>;
1867
+ at: z.ZodString;
1868
+ }, z.core.$strip>>;
1869
+ notice: z.ZodNullable<z.ZodObject<{
1870
+ status: z.ZodEnum<{
1871
+ failed: "failed";
1872
+ pending: "pending";
1873
+ sent: "sent";
1874
+ sending: "sending";
1875
+ }>;
1876
+ attempts: z.ZodNumber;
1877
+ at: z.ZodNullable<z.ZodString>;
1878
+ }, z.core.$strip>>;
1879
+ isUnread: z.ZodBoolean;
1880
+ messages: z.ZodArray<z.ZodObject<{
1881
+ id: z.ZodString;
1882
+ kind: z.ZodEnum<{
1883
+ reply: "reply";
1884
+ accepted: "accepted";
1885
+ declined: "declined";
1886
+ }>;
1887
+ text: z.ZodString;
1888
+ status: z.ZodEnum<{
1889
+ failed: "failed";
1890
+ sent: "sent";
1891
+ sending: "sending";
1892
+ }>;
1893
+ problem: z.ZodNullable<z.ZodString>;
1894
+ createdAt: z.ZodString;
1895
+ sentAt: z.ZodNullable<z.ZodString>;
1896
+ }, z.core.$strip>>;
1897
+ draft: z.ZodNullable<z.ZodObject<{
1898
+ id: z.ZodString;
1899
+ text: z.ZodString;
1900
+ asked: z.ZodString;
1901
+ device: z.ZodString;
1902
+ createdAt: z.ZodString;
1903
+ }, z.core.$strip>>;
1904
+ }, z.core.$strip>, false>>;
1905
+ };
1040
1906
  readonly logins: {
1041
1907
  readonly read: NoInfer<import("./services.ts").ServiceCall<"/cli/logins/:approval", {}, z.ZodObject<{
1042
1908
  code: z.ZodString;