@workwae/sdk 0.1.0-alpha.2 → 0.1.0-alpha.4

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.
@@ -264,6 +264,11 @@ export declare const MessageBody: z.ZodObject<{
264
264
  html: z.ZodNullable<z.ZodString>;
265
265
  }, z.core.$strip>;
266
266
  export type MessageBody = z.infer<typeof MessageBody>;
267
+ export declare const MessageHeader: z.ZodObject<{
268
+ name: z.ZodString;
269
+ value: z.ZodString;
270
+ }, z.core.$strip>;
271
+ export type MessageHeader = z.infer<typeof MessageHeader>;
267
272
  export declare const Message: z.ZodObject<{
268
273
  id: z.ZodUUID;
269
274
  threadId: z.ZodNullable<z.ZodString>;
@@ -344,8 +349,105 @@ export declare const Message: z.ZodObject<{
344
349
  model: z.ZodString;
345
350
  classifiedAt: z.ZodPreprocess<z.ZodDate, Date>;
346
351
  }, z.core.$strip>>;
352
+ inReplyTo: z.ZodNullable<z.ZodString>;
353
+ references: z.ZodArray<z.ZodString>;
354
+ headers: z.ZodOptional<z.ZodArray<z.ZodObject<{
355
+ name: z.ZodString;
356
+ value: z.ZodString;
357
+ }, z.core.$strip>>>;
347
358
  }, z.core.$strip>;
348
359
  export type Message = z.infer<typeof Message>;
360
+ export declare const MessagePage: z.ZodObject<{
361
+ items: z.ZodArray<z.ZodObject<{
362
+ id: z.ZodUUID;
363
+ threadId: z.ZodNullable<z.ZodString>;
364
+ internetMessageId: z.ZodNullable<z.ZodString>;
365
+ mailboxIds: z.ZodArray<z.ZodUUID>;
366
+ subject: z.ZodNullable<z.ZodString>;
367
+ from: z.ZodNullable<z.ZodObject<{
368
+ name: z.ZodNullable<z.ZodString>;
369
+ address: z.ZodString;
370
+ }, z.core.$strip>>;
371
+ to: z.ZodArray<z.ZodObject<{
372
+ name: z.ZodNullable<z.ZodString>;
373
+ address: z.ZodString;
374
+ }, z.core.$strip>>;
375
+ cc: z.ZodArray<z.ZodObject<{
376
+ name: z.ZodNullable<z.ZodString>;
377
+ address: z.ZodString;
378
+ }, z.core.$strip>>;
379
+ snippet: z.ZodNullable<z.ZodString>;
380
+ receivedAt: z.ZodNullable<z.ZodPreprocess<z.ZodDate, Date>>;
381
+ sentAt: z.ZodNullable<z.ZodPreprocess<z.ZodDate, Date>>;
382
+ isRead: z.ZodBoolean;
383
+ isFlagged: z.ZodBoolean;
384
+ isDraft: z.ZodBoolean;
385
+ hasAttachments: z.ZodBoolean;
386
+ categories: z.ZodArray<z.ZodString>;
387
+ direction: z.ZodEnum<{
388
+ inbound: "inbound";
389
+ outbound: "outbound";
390
+ }>;
391
+ outboxId: z.ZodNullable<z.ZodUUID>;
392
+ reference: z.ZodNullable<z.ZodString>;
393
+ importance: z.ZodNullable<z.ZodEnum<{
394
+ normal: "normal";
395
+ high: "high";
396
+ low: "low";
397
+ }>>;
398
+ bcc: z.ZodArray<z.ZodObject<{
399
+ name: z.ZodNullable<z.ZodString>;
400
+ address: z.ZodString;
401
+ }, z.core.$strip>>;
402
+ replyTo: z.ZodArray<z.ZodObject<{
403
+ name: z.ZodNullable<z.ZodString>;
404
+ address: z.ZodString;
405
+ }, z.core.$strip>>;
406
+ body: z.ZodObject<{
407
+ text: z.ZodNullable<z.ZodString>;
408
+ html: z.ZodNullable<z.ZodString>;
409
+ }, z.core.$strip>;
410
+ attachments: z.ZodArray<z.ZodObject<{
411
+ id: z.ZodString;
412
+ filename: z.ZodNullable<z.ZodString>;
413
+ contentType: z.ZodString;
414
+ size: z.ZodNullable<z.ZodNumber>;
415
+ isInline: z.ZodBoolean;
416
+ contentId: z.ZodNullable<z.ZodString>;
417
+ }, z.core.$strip>>;
418
+ classification: z.ZodNullable<z.ZodObject<{
419
+ kind: z.ZodEnum<{
420
+ opt_out: "opt_out";
421
+ auto_reply: "auto_reply";
422
+ bounce: "bounce";
423
+ human_reply: "human_reply";
424
+ }>;
425
+ probabilities: z.ZodRecord<z.ZodString, z.ZodNumber>;
426
+ optOutProbability: z.ZodNumber;
427
+ autoReplyCategory: z.ZodNullable<z.ZodEnum<{
428
+ other: "other";
429
+ out_of_office: "out_of_office";
430
+ left_company: "left_company";
431
+ address_changed: "address_changed";
432
+ ticket_acknowledgment: "ticket_acknowledgment";
433
+ challenge_response: "challenge_response";
434
+ }>>;
435
+ returnDate: z.ZodNullable<z.ZodISODate>;
436
+ alternateContacts: z.ZodArray<z.ZodString>;
437
+ outboxId: z.ZodNullable<z.ZodUUID>;
438
+ model: z.ZodString;
439
+ classifiedAt: z.ZodPreprocess<z.ZodDate, Date>;
440
+ }, z.core.$strip>>;
441
+ inReplyTo: z.ZodNullable<z.ZodString>;
442
+ references: z.ZodArray<z.ZodString>;
443
+ headers: z.ZodOptional<z.ZodArray<z.ZodObject<{
444
+ name: z.ZodString;
445
+ value: z.ZodString;
446
+ }, z.core.$strip>>>;
447
+ }, z.core.$strip>>;
448
+ nextCursor: z.ZodNullable<z.ZodString>;
449
+ }, z.core.$strip>;
450
+ export type MessagePage = z.infer<typeof MessagePage>;
349
451
  export declare const SearchSource: z.ZodEnum<{
350
452
  provider: "provider";
351
453
  index: "index";
@@ -462,16 +564,50 @@ export declare const AttachmentIdInput: z.ZodObject<{
462
564
  attachmentId: z.ZodString;
463
565
  }, z.core.$strip>;
464
566
  export type AttachmentIdInput = z.infer<typeof AttachmentIdInput>;
567
+ export declare const MessageDetailInclude: z.ZodEnum<{
568
+ headers: "headers";
569
+ }>;
570
+ export type MessageDetailInclude = z.infer<typeof MessageDetailInclude>;
571
+ export declare const MessageListInclude: z.ZodEnum<{
572
+ headers: "headers";
573
+ body: "body";
574
+ }>;
575
+ export type MessageListInclude = z.infer<typeof MessageListInclude>;
576
+ export declare const GetMessageInput: z.ZodObject<{
577
+ accountId: z.ZodUUID;
578
+ messageId: z.ZodUUID;
579
+ include: z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [
580
+ z.ZodString,
581
+ z.ZodArray<z.ZodEnum<{
582
+ headers: "headers";
583
+ }>>
584
+ ]>, z.ZodTransform<string[], string | "headers"[]>>, z.ZodArray<z.ZodEnum<{
585
+ headers: "headers";
586
+ }>>>>;
587
+ }, z.core.$strip>;
588
+ export type GetMessageInput = z.infer<typeof GetMessageInput>;
465
589
  export declare const ListMessagesQuery: z.ZodObject<{
466
- limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
467
- cursor: z.ZodOptional<z.ZodString>;
468
590
  importance: z.ZodOptional<z.ZodEnum<{
469
591
  normal: "normal";
470
592
  high: "high";
471
593
  low: "low";
472
594
  }>>;
595
+ outboxId: z.ZodOptional<z.ZodUUID>;
596
+ internetMessageId: z.ZodOptional<z.ZodString>;
473
597
  after: z.ZodOptional<z.ZodPreprocess<z.ZodDate, string | Date>>;
474
598
  before: z.ZodOptional<z.ZodPreprocess<z.ZodDate, string | Date>>;
599
+ include: z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [
600
+ z.ZodString,
601
+ z.ZodArray<z.ZodEnum<{
602
+ headers: "headers";
603
+ body: "body";
604
+ }>>
605
+ ]>, z.ZodTransform<string[], string | ("headers" | "body")[]>>, z.ZodArray<z.ZodEnum<{
606
+ headers: "headers";
607
+ body: "body";
608
+ }>>>>;
609
+ limit: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
610
+ cursor: z.ZodOptional<z.ZodString>;
475
611
  from: z.ZodOptional<z.ZodString>;
476
612
  to: z.ZodOptional<z.ZodString>;
477
613
  unread: z.ZodOptional<z.ZodPipe<z.ZodUnion<readonly [
@@ -498,6 +634,7 @@ export declare const ListMessagesQuery: z.ZodObject<{
498
634
  mailboxId: z.ZodOptional<z.ZodUUID>;
499
635
  }, z.core.$strip>;
500
636
  export type ListMessagesQuery = z.infer<typeof ListMessagesQuery>;
637
+ export declare function withListIncludeRules<T extends z.ZodObject>(schema: T): T;
501
638
  export declare const SearchMessagesQuery: z.ZodObject<{
502
639
  after: z.ZodOptional<z.ZodPreprocess<z.ZodDate, string | Date>>;
503
640
  before: z.ZodOptional<z.ZodPreprocess<z.ZodDate, string | Date>>;
@@ -183,6 +183,10 @@ export declare const mailboxes: {
183
183
  message: string;
184
184
  };
185
185
  unknown_mailbox: import("../errors.js").DeclaredError<"unknown_mailbox">;
186
+ mail_permission_missing: {
187
+ status: 409;
188
+ message: string;
189
+ };
186
190
  mail_disabled: {
187
191
  status: 409;
188
192
  message: string;
@@ -298,6 +302,10 @@ export declare const mailboxes: {
298
302
  message: string;
299
303
  };
300
304
  unknown_mailbox: import("../errors.js").DeclaredError<"unknown_mailbox">;
305
+ mail_permission_missing: {
306
+ status: 409;
307
+ message: string;
308
+ };
301
309
  mail_disabled: {
302
310
  status: 409;
303
311
  message: string;
@@ -385,6 +393,10 @@ export declare const mailboxes: {
385
393
  status: 400;
386
394
  message: string;
387
395
  };
396
+ mail_permission_missing: {
397
+ status: 409;
398
+ message: string;
399
+ };
388
400
  mail_disabled: {
389
401
  status: 409;
390
402
  message: string;
@@ -402,15 +414,27 @@ export declare const mailboxes: {
402
414
  export declare const messages: {
403
415
  list: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
404
416
  accountId: z.ZodUUID;
405
- limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
406
- cursor: z.ZodOptional<z.ZodString>;
407
417
  importance: z.ZodOptional<z.ZodEnum<{
408
418
  normal: "normal";
409
419
  high: "high";
410
420
  low: "low";
411
421
  }>>;
422
+ outboxId: z.ZodOptional<z.ZodUUID>;
423
+ internetMessageId: z.ZodOptional<z.ZodString>;
412
424
  after: z.ZodOptional<z.ZodPreprocess<z.ZodDate, string | Date>>;
413
425
  before: z.ZodOptional<z.ZodPreprocess<z.ZodDate, string | Date>>;
426
+ include: z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [
427
+ z.ZodString,
428
+ z.ZodArray<z.ZodEnum<{
429
+ headers: "headers";
430
+ body: "body";
431
+ }>>
432
+ ]>, z.ZodTransform<string[], string | ("headers" | "body")[]>>, z.ZodArray<z.ZodEnum<{
433
+ headers: "headers";
434
+ body: "body";
435
+ }>>>>;
436
+ limit: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
437
+ cursor: z.ZodOptional<z.ZodString>;
414
438
  from: z.ZodOptional<z.ZodString>;
415
439
  to: z.ZodOptional<z.ZodString>;
416
440
  unread: z.ZodOptional<z.ZodPipe<z.ZodUnion<readonly [
@@ -435,47 +459,139 @@ export declare const messages: {
435
459
  }>
436
460
  ]>, z.ZodTransform<boolean, boolean | "true" | "false">>>;
437
461
  mailboxId: z.ZodOptional<z.ZodUUID>;
438
- }, z.core.$strip>, z.ZodObject<{
439
- items: z.ZodArray<z.ZodObject<{
440
- id: z.ZodUUID;
441
- threadId: z.ZodNullable<z.ZodString>;
442
- internetMessageId: z.ZodNullable<z.ZodString>;
443
- mailboxIds: z.ZodArray<z.ZodUUID>;
444
- subject: z.ZodNullable<z.ZodString>;
445
- from: z.ZodNullable<z.ZodObject<{
446
- name: z.ZodNullable<z.ZodString>;
447
- address: z.ZodString;
462
+ }, z.core.$strip>, z.ZodUnion<readonly [
463
+ z.ZodObject<{
464
+ items: z.ZodArray<z.ZodObject<{
465
+ id: z.ZodUUID;
466
+ threadId: z.ZodNullable<z.ZodString>;
467
+ internetMessageId: z.ZodNullable<z.ZodString>;
468
+ mailboxIds: z.ZodArray<z.ZodUUID>;
469
+ subject: z.ZodNullable<z.ZodString>;
470
+ from: z.ZodNullable<z.ZodObject<{
471
+ name: z.ZodNullable<z.ZodString>;
472
+ address: z.ZodString;
473
+ }, z.core.$strip>>;
474
+ to: z.ZodArray<z.ZodObject<{
475
+ name: z.ZodNullable<z.ZodString>;
476
+ address: z.ZodString;
477
+ }, z.core.$strip>>;
478
+ cc: z.ZodArray<z.ZodObject<{
479
+ name: z.ZodNullable<z.ZodString>;
480
+ address: z.ZodString;
481
+ }, z.core.$strip>>;
482
+ snippet: z.ZodNullable<z.ZodString>;
483
+ receivedAt: z.ZodNullable<z.ZodPreprocess<z.ZodDate, Date>>;
484
+ sentAt: z.ZodNullable<z.ZodPreprocess<z.ZodDate, Date>>;
485
+ isRead: z.ZodBoolean;
486
+ isFlagged: z.ZodBoolean;
487
+ isDraft: z.ZodBoolean;
488
+ hasAttachments: z.ZodBoolean;
489
+ categories: z.ZodArray<z.ZodString>;
490
+ direction: z.ZodEnum<{
491
+ inbound: "inbound";
492
+ outbound: "outbound";
493
+ }>;
494
+ outboxId: z.ZodNullable<z.ZodUUID>;
495
+ reference: z.ZodNullable<z.ZodString>;
496
+ importance: z.ZodNullable<z.ZodEnum<{
497
+ normal: "normal";
498
+ high: "high";
499
+ low: "low";
500
+ }>>;
501
+ bcc: z.ZodArray<z.ZodObject<{
502
+ name: z.ZodNullable<z.ZodString>;
503
+ address: z.ZodString;
504
+ }, z.core.$strip>>;
505
+ replyTo: z.ZodArray<z.ZodObject<{
506
+ name: z.ZodNullable<z.ZodString>;
507
+ address: z.ZodString;
508
+ }, z.core.$strip>>;
509
+ body: z.ZodObject<{
510
+ text: z.ZodNullable<z.ZodString>;
511
+ html: z.ZodNullable<z.ZodString>;
512
+ }, z.core.$strip>;
513
+ attachments: z.ZodArray<z.ZodObject<{
514
+ id: z.ZodString;
515
+ filename: z.ZodNullable<z.ZodString>;
516
+ contentType: z.ZodString;
517
+ size: z.ZodNullable<z.ZodNumber>;
518
+ isInline: z.ZodBoolean;
519
+ contentId: z.ZodNullable<z.ZodString>;
520
+ }, z.core.$strip>>;
521
+ classification: z.ZodNullable<z.ZodObject<{
522
+ kind: z.ZodEnum<{
523
+ opt_out: "opt_out";
524
+ auto_reply: "auto_reply";
525
+ bounce: "bounce";
526
+ human_reply: "human_reply";
527
+ }>;
528
+ probabilities: z.ZodRecord<z.ZodString, z.ZodNumber>;
529
+ optOutProbability: z.ZodNumber;
530
+ autoReplyCategory: z.ZodNullable<z.ZodEnum<{
531
+ other: "other";
532
+ out_of_office: "out_of_office";
533
+ left_company: "left_company";
534
+ address_changed: "address_changed";
535
+ ticket_acknowledgment: "ticket_acknowledgment";
536
+ challenge_response: "challenge_response";
537
+ }>>;
538
+ returnDate: z.ZodNullable<z.ZodISODate>;
539
+ alternateContacts: z.ZodArray<z.ZodString>;
540
+ outboxId: z.ZodNullable<z.ZodUUID>;
541
+ model: z.ZodString;
542
+ classifiedAt: z.ZodPreprocess<z.ZodDate, Date>;
543
+ }, z.core.$strip>>;
544
+ inReplyTo: z.ZodNullable<z.ZodString>;
545
+ references: z.ZodArray<z.ZodString>;
546
+ headers: z.ZodOptional<z.ZodArray<z.ZodObject<{
547
+ name: z.ZodString;
548
+ value: z.ZodString;
549
+ }, z.core.$strip>>>;
448
550
  }, z.core.$strip>>;
449
- to: z.ZodArray<z.ZodObject<{
450
- name: z.ZodNullable<z.ZodString>;
451
- address: z.ZodString;
452
- }, z.core.$strip>>;
453
- cc: z.ZodArray<z.ZodObject<{
454
- name: z.ZodNullable<z.ZodString>;
455
- address: z.ZodString;
551
+ nextCursor: z.ZodNullable<z.ZodString>;
552
+ }, z.core.$strip>,
553
+ z.ZodObject<{
554
+ items: z.ZodArray<z.ZodObject<{
555
+ id: z.ZodUUID;
556
+ threadId: z.ZodNullable<z.ZodString>;
557
+ internetMessageId: z.ZodNullable<z.ZodString>;
558
+ mailboxIds: z.ZodArray<z.ZodUUID>;
559
+ subject: z.ZodNullable<z.ZodString>;
560
+ from: z.ZodNullable<z.ZodObject<{
561
+ name: z.ZodNullable<z.ZodString>;
562
+ address: z.ZodString;
563
+ }, z.core.$strip>>;
564
+ to: z.ZodArray<z.ZodObject<{
565
+ name: z.ZodNullable<z.ZodString>;
566
+ address: z.ZodString;
567
+ }, z.core.$strip>>;
568
+ cc: z.ZodArray<z.ZodObject<{
569
+ name: z.ZodNullable<z.ZodString>;
570
+ address: z.ZodString;
571
+ }, z.core.$strip>>;
572
+ snippet: z.ZodNullable<z.ZodString>;
573
+ receivedAt: z.ZodNullable<z.ZodPreprocess<z.ZodDate, Date>>;
574
+ sentAt: z.ZodNullable<z.ZodPreprocess<z.ZodDate, Date>>;
575
+ isRead: z.ZodBoolean;
576
+ isFlagged: z.ZodBoolean;
577
+ isDraft: z.ZodBoolean;
578
+ hasAttachments: z.ZodBoolean;
579
+ categories: z.ZodArray<z.ZodString>;
580
+ direction: z.ZodEnum<{
581
+ inbound: "inbound";
582
+ outbound: "outbound";
583
+ }>;
584
+ outboxId: z.ZodNullable<z.ZodUUID>;
585
+ reference: z.ZodNullable<z.ZodString>;
586
+ importance: z.ZodNullable<z.ZodEnum<{
587
+ normal: "normal";
588
+ high: "high";
589
+ low: "low";
590
+ }>>;
456
591
  }, z.core.$strip>>;
457
- snippet: z.ZodNullable<z.ZodString>;
458
- receivedAt: z.ZodNullable<z.ZodPreprocess<z.ZodDate, Date>>;
459
- sentAt: z.ZodNullable<z.ZodPreprocess<z.ZodDate, Date>>;
460
- isRead: z.ZodBoolean;
461
- isFlagged: z.ZodBoolean;
462
- isDraft: z.ZodBoolean;
463
- hasAttachments: z.ZodBoolean;
464
- categories: z.ZodArray<z.ZodString>;
465
- direction: z.ZodEnum<{
466
- inbound: "inbound";
467
- outbound: "outbound";
468
- }>;
469
- outboxId: z.ZodNullable<z.ZodUUID>;
470
- reference: z.ZodNullable<z.ZodString>;
471
- importance: z.ZodNullable<z.ZodEnum<{
472
- normal: "normal";
473
- high: "high";
474
- low: "low";
475
- }>>;
476
- }, z.core.$strip>>;
477
- nextCursor: z.ZodNullable<z.ZodString>;
478
- }, z.core.$strip>, import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, import("../errors.js").DeclaredErrors<{
592
+ nextCursor: z.ZodNullable<z.ZodString>;
593
+ }, z.core.$strip>
594
+ ]>, import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, import("../errors.js").DeclaredErrors<{
479
595
  readonly invalid_input: "The request does not match the operation's input schema (a malformed body included); data.issues names each problem.";
480
596
  readonly unauthenticated: "No usable credential: none was sent, or it is malformed, unknown, revoked or an expired account token.";
481
597
  readonly api_key_expired: "The API key is past its expiry (or the grace of the rotation that replaced it).";
@@ -497,6 +613,38 @@ export declare const messages: {
497
613
  status: 400;
498
614
  message: string;
499
615
  };
616
+ provider_not_found: {
617
+ status: 404;
618
+ message: string;
619
+ };
620
+ provider_forbidden: {
621
+ status: 403;
622
+ message: string;
623
+ };
624
+ provider_unavailable: {
625
+ status: 502;
626
+ message: string;
627
+ };
628
+ provider_throttled: {
629
+ status: 429;
630
+ message: string;
631
+ };
632
+ account_paused: {
633
+ status: 409;
634
+ message: string;
635
+ };
636
+ account_disabled: {
637
+ status: 409;
638
+ message: string;
639
+ };
640
+ account_reauth_required: {
641
+ status: 409;
642
+ message: string;
643
+ };
644
+ account_misconfigured: {
645
+ status: 409;
646
+ message: string;
647
+ };
500
648
  unknown_mailbox: import("../errors.js").DeclaredError<"unknown_mailbox">;
501
649
  invalid_cursor: {
502
650
  status: 400;
@@ -518,6 +666,14 @@ export declare const messages: {
518
666
  get: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
519
667
  accountId: z.ZodUUID;
520
668
  messageId: z.ZodUUID;
669
+ include: z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [
670
+ z.ZodString,
671
+ z.ZodArray<z.ZodEnum<{
672
+ headers: "headers";
673
+ }>>
674
+ ]>, z.ZodTransform<string[], string | "headers"[]>>, z.ZodArray<z.ZodEnum<{
675
+ headers: "headers";
676
+ }>>>>;
521
677
  }, z.core.$strip>, z.ZodObject<{
522
678
  id: z.ZodUUID;
523
679
  threadId: z.ZodNullable<z.ZodString>;
@@ -598,6 +754,12 @@ export declare const messages: {
598
754
  model: z.ZodString;
599
755
  classifiedAt: z.ZodPreprocess<z.ZodDate, Date>;
600
756
  }, z.core.$strip>>;
757
+ inReplyTo: z.ZodNullable<z.ZodString>;
758
+ references: z.ZodArray<z.ZodString>;
759
+ headers: z.ZodOptional<z.ZodArray<z.ZodObject<{
760
+ name: z.ZodString;
761
+ value: z.ZodString;
762
+ }, z.core.$strip>>>;
601
763
  }, z.core.$strip>, import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, import("../errors.js").DeclaredErrors<{
602
764
  readonly invalid_input: "The request does not match the operation's input schema (a malformed body included); data.issues names each problem.";
603
765
  readonly unauthenticated: "No usable credential: none was sent, or it is malformed, unknown, revoked or an expired account token.";
@@ -922,6 +1084,10 @@ export declare const messages: {
922
1084
  status: 400;
923
1085
  message: string;
924
1086
  };
1087
+ mail_permission_missing: {
1088
+ status: 409;
1089
+ message: string;
1090
+ };
925
1091
  mail_disabled: {
926
1092
  status: 409;
927
1093
  message: string;
@@ -1015,6 +1181,10 @@ export declare const messages: {
1015
1181
  status: 404;
1016
1182
  message: string;
1017
1183
  };
1184
+ mail_permission_missing: {
1185
+ status: 409;
1186
+ message: string;
1187
+ };
1018
1188
  mail_disabled: {
1019
1189
  status: 409;
1020
1190
  message: string;
@@ -81,6 +81,7 @@ export declare const MeetingApp: z.ZodObject<{
81
81
  statusDetail: z.ZodNullable<z.ZodString>;
82
82
  checkedAt: z.ZodNullable<z.ZodPreprocess<z.ZodDate, Date>>;
83
83
  scopes: z.ZodArray<z.ZodString>;
84
+ useConnectDomain: z.ZodBoolean;
84
85
  redirectUri: z.ZodNullable<z.ZodString>;
85
86
  createdAt: z.ZodPreprocess<z.ZodDate, Date>;
86
87
  }, z.core.$strip>;
@@ -109,6 +110,7 @@ export declare const MeetingAppList: z.ZodObject<{
109
110
  statusDetail: z.ZodNullable<z.ZodString>;
110
111
  checkedAt: z.ZodNullable<z.ZodPreprocess<z.ZodDate, Date>>;
111
112
  scopes: z.ZodArray<z.ZodString>;
113
+ useConnectDomain: z.ZodBoolean;
112
114
  redirectUri: z.ZodNullable<z.ZodString>;
113
115
  createdAt: z.ZodPreprocess<z.ZodDate, Date>;
114
116
  }, z.core.$strip>>;
@@ -120,6 +122,7 @@ export declare const CreateMeetingApp: z.ZodDiscriminatedUnion<[
120
122
  name: z.ZodString;
121
123
  clientId: z.ZodString;
122
124
  clientSecret: z.ZodString;
125
+ useConnectDomain: z.ZodOptional<z.ZodBoolean>;
123
126
  }, z.core.$strip>,
124
127
  z.ZodObject<{
125
128
  kind: z.ZodLiteral<"zoom_s2s">;
@@ -127,22 +130,29 @@ export declare const CreateMeetingApp: z.ZodDiscriminatedUnion<[
127
130
  accountId: z.ZodString;
128
131
  clientId: z.ZodString;
129
132
  clientSecret: z.ZodString;
133
+ useConnectDomain: z.ZodOptional<z.ZodBoolean>;
130
134
  }, z.core.$strip>,
131
135
  z.ZodObject<{
132
136
  kind: z.ZodLiteral<"webex_oauth">;
133
137
  name: z.ZodString;
134
138
  clientId: z.ZodString;
135
139
  clientSecret: z.ZodString;
140
+ useConnectDomain: z.ZodOptional<z.ZodBoolean>;
136
141
  }, z.core.$strip>,
137
142
  z.ZodObject<{
138
143
  kind: z.ZodLiteral<"webex_service_app">;
139
144
  name: z.ZodString;
140
145
  clientId: z.ZodString;
141
146
  clientSecret: z.ZodString;
147
+ useConnectDomain: z.ZodOptional<z.ZodBoolean>;
142
148
  refreshToken: z.ZodString;
143
149
  }, z.core.$strip>
144
150
  ], "kind">;
145
151
  export type CreateMeetingApp = z.infer<typeof CreateMeetingApp>;
152
+ export declare const UpdateMeetingApp: z.ZodObject<{
153
+ useConnectDomain: z.ZodOptional<z.ZodBoolean>;
154
+ }, z.core.$strip>;
155
+ export type UpdateMeetingApp = z.infer<typeof UpdateMeetingApp>;
146
156
  export declare const MeetingAppCheck: z.ZodObject<{
147
157
  name: z.ZodString;
148
158
  isOk: z.ZodBoolean;
@@ -173,6 +183,7 @@ export declare const MeetingAppTestResult: z.ZodObject<{
173
183
  statusDetail: z.ZodNullable<z.ZodString>;
174
184
  checkedAt: z.ZodNullable<z.ZodPreprocess<z.ZodDate, Date>>;
175
185
  scopes: z.ZodArray<z.ZodString>;
186
+ useConnectDomain: z.ZodBoolean;
176
187
  redirectUri: z.ZodNullable<z.ZodString>;
177
188
  createdAt: z.ZodPreprocess<z.ZodDate, Date>;
178
189
  }, z.core.$strip>;