@seamapi/types 1.771.0 → 1.773.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.
@@ -6056,7 +6056,7 @@ export default {
6056
6056
  },
6057
6057
  type: {
6058
6058
  description: 'Error type to indicate that communication with the encoder timed out.',
6059
- enum: ['encoder_timeout_error'],
6059
+ enum: ['encoder_communication_timeout'],
6060
6060
  type: 'string',
6061
6061
  },
6062
6062
  },
@@ -7060,7 +7060,7 @@ export default {
7060
7060
  },
7061
7061
  type: {
7062
7062
  description: 'Error type to indicate that communication with the encoder timed out.',
7063
- enum: ['encoder_timeout_error'],
7063
+ enum: ['encoder_communication_timeout'],
7064
7064
  type: 'string',
7065
7065
  },
7066
7066
  },
@@ -58476,6 +58476,492 @@ export default {
58476
58476
  'x-undocumented': 'Internal endpoint for Console.',
58477
58477
  },
58478
58478
  },
58479
+ '/seam/customer/v1/connectors/ical/generate-config': {
58480
+ post: {
58481
+ description: "Fetches an iCal feed URL and uses AI to generate a parsing config\nbased on the feed's structure and content.",
58482
+ operationId: 'seamCustomerV1ConnectorsIcalGenerateConfigPost',
58483
+ requestBody: {
58484
+ content: {
58485
+ 'application/json': {
58486
+ schema: {
58487
+ properties: {
58488
+ ical_url: {
58489
+ description: 'iCal feed URL to analyze',
58490
+ format: 'uri',
58491
+ type: 'string',
58492
+ },
58493
+ },
58494
+ required: ['ical_url'],
58495
+ type: 'object',
58496
+ },
58497
+ },
58498
+ },
58499
+ },
58500
+ responses: {
58501
+ 200: {
58502
+ content: {
58503
+ 'application/json': {
58504
+ schema: {
58505
+ properties: {
58506
+ generated_config: {
58507
+ properties: {
58508
+ ical_config: {
58509
+ properties: {
58510
+ default_check_in_time: {
58511
+ description: 'Default check-in time (HH:MM) used when iCal gives date-only values',
58512
+ pattern: '^\\d{2}:\\d{2}$',
58513
+ type: 'string',
58514
+ },
58515
+ default_check_out_time: {
58516
+ description: 'Default check-out time (HH:MM) used when iCal gives date-only values',
58517
+ pattern: '^\\d{2}:\\d{2}$',
58518
+ type: 'string',
58519
+ },
58520
+ fields: {
58521
+ properties: {
58522
+ ends_at: {
58523
+ description: 'How to extract check-out date',
58524
+ properties: {
58525
+ pattern: {
58526
+ description: 'Regex with capture group to extract value from the property',
58527
+ type: 'string',
58528
+ },
58529
+ source: {
58530
+ description: 'iCal property name to read from: UID, SUMMARY, DESCRIPTION, DTSTART, DTEND, etc.',
58531
+ type: 'string',
58532
+ },
58533
+ type: {
58534
+ description: "Special type handling — 'date' parses iCal date formats",
58535
+ enum: ['date'],
58536
+ type: 'string',
58537
+ },
58538
+ },
58539
+ required: ['source'],
58540
+ type: 'object',
58541
+ },
58542
+ guest_email: {
58543
+ description: 'How to extract guest email',
58544
+ properties: {
58545
+ pattern: {
58546
+ description: 'Regex with capture group to extract value from the property',
58547
+ type: 'string',
58548
+ },
58549
+ source: {
58550
+ description: 'iCal property name to read from: UID, SUMMARY, DESCRIPTION, DTSTART, DTEND, etc.',
58551
+ type: 'string',
58552
+ },
58553
+ type: {
58554
+ description: "Special type handling — 'date' parses iCal date formats",
58555
+ enum: ['date'],
58556
+ type: 'string',
58557
+ },
58558
+ },
58559
+ required: ['source'],
58560
+ type: 'object',
58561
+ },
58562
+ guest_name: {
58563
+ description: 'How to extract guest name',
58564
+ properties: {
58565
+ pattern: {
58566
+ description: 'Regex with capture group to extract value from the property',
58567
+ type: 'string',
58568
+ },
58569
+ source: {
58570
+ description: 'iCal property name to read from: UID, SUMMARY, DESCRIPTION, DTSTART, DTEND, etc.',
58571
+ type: 'string',
58572
+ },
58573
+ type: {
58574
+ description: "Special type handling — 'date' parses iCal date formats",
58575
+ enum: ['date'],
58576
+ type: 'string',
58577
+ },
58578
+ },
58579
+ required: ['source'],
58580
+ type: 'object',
58581
+ },
58582
+ guest_phone: {
58583
+ description: 'How to extract guest phone',
58584
+ properties: {
58585
+ pattern: {
58586
+ description: 'Regex with capture group to extract value from the property',
58587
+ type: 'string',
58588
+ },
58589
+ source: {
58590
+ description: 'iCal property name to read from: UID, SUMMARY, DESCRIPTION, DTSTART, DTEND, etc.',
58591
+ type: 'string',
58592
+ },
58593
+ type: {
58594
+ description: "Special type handling — 'date' parses iCal date formats",
58595
+ enum: ['date'],
58596
+ type: 'string',
58597
+ },
58598
+ },
58599
+ required: ['source'],
58600
+ type: 'object',
58601
+ },
58602
+ reservation_key: {
58603
+ description: 'How to extract the reservation key (falls back to UID)',
58604
+ properties: {
58605
+ pattern: {
58606
+ description: 'Regex with capture group to extract value from the property',
58607
+ type: 'string',
58608
+ },
58609
+ source: {
58610
+ description: 'iCal property name to read from: UID, SUMMARY, DESCRIPTION, DTSTART, DTEND, etc.',
58611
+ type: 'string',
58612
+ },
58613
+ type: {
58614
+ description: "Special type handling — 'date' parses iCal date formats",
58615
+ enum: ['date'],
58616
+ type: 'string',
58617
+ },
58618
+ },
58619
+ required: ['source'],
58620
+ type: 'object',
58621
+ },
58622
+ starts_at: {
58623
+ description: 'How to extract check-in date',
58624
+ properties: {
58625
+ pattern: {
58626
+ description: 'Regex with capture group to extract value from the property',
58627
+ type: 'string',
58628
+ },
58629
+ source: {
58630
+ description: 'iCal property name to read from: UID, SUMMARY, DESCRIPTION, DTSTART, DTEND, etc.',
58631
+ type: 'string',
58632
+ },
58633
+ type: {
58634
+ description: "Special type handling — 'date' parses iCal date formats",
58635
+ enum: ['date'],
58636
+ type: 'string',
58637
+ },
58638
+ },
58639
+ required: ['source'],
58640
+ type: 'object',
58641
+ },
58642
+ },
58643
+ required: ['starts_at', 'ends_at'],
58644
+ type: 'object',
58645
+ },
58646
+ filter: {
58647
+ description: 'Optional filter to skip non-matching events',
58648
+ properties: {
58649
+ pattern: {
58650
+ description: 'Regex pattern — events not matching are skipped',
58651
+ type: 'string',
58652
+ },
58653
+ source: {
58654
+ description: 'iCal property name to match against',
58655
+ type: 'string',
58656
+ },
58657
+ },
58658
+ required: ['source', 'pattern'],
58659
+ type: 'object',
58660
+ },
58661
+ time_zone: {
58662
+ description: 'IANA time zone (e.g. America/New_York) applied when dates have no time/timezone',
58663
+ type: 'string',
58664
+ },
58665
+ },
58666
+ required: ['fields'],
58667
+ type: 'object',
58668
+ },
58669
+ },
58670
+ required: ['ical_config'],
58671
+ type: 'object',
58672
+ },
58673
+ ok: { type: 'boolean' },
58674
+ },
58675
+ required: ['generated_config', 'ok'],
58676
+ type: 'object',
58677
+ },
58678
+ },
58679
+ },
58680
+ description: 'OK',
58681
+ },
58682
+ 400: { description: 'Bad Request' },
58683
+ 401: { description: 'Unauthorized' },
58684
+ },
58685
+ security: [{ api_key: [] }, { console_session_with_workspace: [] }],
58686
+ summary: '/seam/customer/v1/connectors/ical/generate-config',
58687
+ tags: [],
58688
+ 'x-fern-sdk-group-name': [
58689
+ 'seam',
58690
+ 'customer',
58691
+ 'v1',
58692
+ 'connectors',
58693
+ 'ical',
58694
+ ],
58695
+ 'x-fern-sdk-method-name': 'generate-config',
58696
+ 'x-fern-sdk-return-value': 'generated_config',
58697
+ 'x-response-key': 'generated_config',
58698
+ 'x-title': 'Generate iCal Config',
58699
+ 'x-undocumented': 'Only used internally.',
58700
+ },
58701
+ },
58702
+ '/seam/customer/v1/connectors/ical/validate-config': {
58703
+ post: {
58704
+ description: 'Fetches a sample iCal feed and validates the config against it,\nreturning the parsed reservations so the caller can verify\nextraction is correct.',
58705
+ operationId: 'seamCustomerV1ConnectorsIcalValidateConfigPost',
58706
+ requestBody: {
58707
+ content: {
58708
+ 'application/json': {
58709
+ schema: {
58710
+ properties: {
58711
+ ical_config: {
58712
+ description: 'Config to validate',
58713
+ properties: {
58714
+ default_check_in_time: {
58715
+ description: 'Default check-in time (HH:MM) used when iCal gives date-only values',
58716
+ pattern: '^\\d{2}:\\d{2}$',
58717
+ type: 'string',
58718
+ },
58719
+ default_check_out_time: {
58720
+ description: 'Default check-out time (HH:MM) used when iCal gives date-only values',
58721
+ pattern: '^\\d{2}:\\d{2}$',
58722
+ type: 'string',
58723
+ },
58724
+ fields: {
58725
+ properties: {
58726
+ ends_at: {
58727
+ description: 'How to extract check-out date',
58728
+ properties: {
58729
+ pattern: {
58730
+ description: 'Regex with capture group to extract value from the property',
58731
+ type: 'string',
58732
+ },
58733
+ source: {
58734
+ description: 'iCal property name to read from: UID, SUMMARY, DESCRIPTION, DTSTART, DTEND, etc.',
58735
+ type: 'string',
58736
+ },
58737
+ type: {
58738
+ description: "Special type handling — 'date' parses iCal date formats",
58739
+ enum: ['date'],
58740
+ type: 'string',
58741
+ },
58742
+ },
58743
+ required: ['source'],
58744
+ type: 'object',
58745
+ },
58746
+ guest_email: {
58747
+ description: 'How to extract guest email',
58748
+ properties: {
58749
+ pattern: {
58750
+ description: 'Regex with capture group to extract value from the property',
58751
+ type: 'string',
58752
+ },
58753
+ source: {
58754
+ description: 'iCal property name to read from: UID, SUMMARY, DESCRIPTION, DTSTART, DTEND, etc.',
58755
+ type: 'string',
58756
+ },
58757
+ type: {
58758
+ description: "Special type handling — 'date' parses iCal date formats",
58759
+ enum: ['date'],
58760
+ type: 'string',
58761
+ },
58762
+ },
58763
+ required: ['source'],
58764
+ type: 'object',
58765
+ },
58766
+ guest_name: {
58767
+ description: 'How to extract guest name',
58768
+ properties: {
58769
+ pattern: {
58770
+ description: 'Regex with capture group to extract value from the property',
58771
+ type: 'string',
58772
+ },
58773
+ source: {
58774
+ description: 'iCal property name to read from: UID, SUMMARY, DESCRIPTION, DTSTART, DTEND, etc.',
58775
+ type: 'string',
58776
+ },
58777
+ type: {
58778
+ description: "Special type handling — 'date' parses iCal date formats",
58779
+ enum: ['date'],
58780
+ type: 'string',
58781
+ },
58782
+ },
58783
+ required: ['source'],
58784
+ type: 'object',
58785
+ },
58786
+ guest_phone: {
58787
+ description: 'How to extract guest phone',
58788
+ properties: {
58789
+ pattern: {
58790
+ description: 'Regex with capture group to extract value from the property',
58791
+ type: 'string',
58792
+ },
58793
+ source: {
58794
+ description: 'iCal property name to read from: UID, SUMMARY, DESCRIPTION, DTSTART, DTEND, etc.',
58795
+ type: 'string',
58796
+ },
58797
+ type: {
58798
+ description: "Special type handling — 'date' parses iCal date formats",
58799
+ enum: ['date'],
58800
+ type: 'string',
58801
+ },
58802
+ },
58803
+ required: ['source'],
58804
+ type: 'object',
58805
+ },
58806
+ reservation_key: {
58807
+ description: 'How to extract the reservation key (falls back to UID)',
58808
+ properties: {
58809
+ pattern: {
58810
+ description: 'Regex with capture group to extract value from the property',
58811
+ type: 'string',
58812
+ },
58813
+ source: {
58814
+ description: 'iCal property name to read from: UID, SUMMARY, DESCRIPTION, DTSTART, DTEND, etc.',
58815
+ type: 'string',
58816
+ },
58817
+ type: {
58818
+ description: "Special type handling — 'date' parses iCal date formats",
58819
+ enum: ['date'],
58820
+ type: 'string',
58821
+ },
58822
+ },
58823
+ required: ['source'],
58824
+ type: 'object',
58825
+ },
58826
+ starts_at: {
58827
+ description: 'How to extract check-in date',
58828
+ properties: {
58829
+ pattern: {
58830
+ description: 'Regex with capture group to extract value from the property',
58831
+ type: 'string',
58832
+ },
58833
+ source: {
58834
+ description: 'iCal property name to read from: UID, SUMMARY, DESCRIPTION, DTSTART, DTEND, etc.',
58835
+ type: 'string',
58836
+ },
58837
+ type: {
58838
+ description: "Special type handling — 'date' parses iCal date formats",
58839
+ enum: ['date'],
58840
+ type: 'string',
58841
+ },
58842
+ },
58843
+ required: ['source'],
58844
+ type: 'object',
58845
+ },
58846
+ },
58847
+ required: ['starts_at', 'ends_at'],
58848
+ type: 'object',
58849
+ },
58850
+ filter: {
58851
+ description: 'Optional filter to skip non-matching events',
58852
+ properties: {
58853
+ pattern: {
58854
+ description: 'Regex pattern — events not matching are skipped',
58855
+ type: 'string',
58856
+ },
58857
+ source: {
58858
+ description: 'iCal property name to match against',
58859
+ type: 'string',
58860
+ },
58861
+ },
58862
+ required: ['source', 'pattern'],
58863
+ type: 'object',
58864
+ },
58865
+ time_zone: {
58866
+ description: 'IANA time zone (e.g. America/New_York) applied when dates have no time/timezone',
58867
+ type: 'string',
58868
+ },
58869
+ },
58870
+ required: ['fields'],
58871
+ type: 'object',
58872
+ },
58873
+ ical_url: {
58874
+ description: 'iCal feed URL to validate against',
58875
+ format: 'uri',
58876
+ type: 'string',
58877
+ },
58878
+ },
58879
+ required: ['ical_url', 'ical_config'],
58880
+ type: 'object',
58881
+ },
58882
+ },
58883
+ },
58884
+ },
58885
+ responses: {
58886
+ 200: {
58887
+ content: {
58888
+ 'application/json': {
58889
+ schema: {
58890
+ properties: {
58891
+ ok: { type: 'boolean' },
58892
+ validation_result: {
58893
+ properties: {
58894
+ errors: { items: { type: 'string' }, type: 'array' },
58895
+ filtered_events: { format: 'float', type: 'number' },
58896
+ is_valid: { type: 'boolean' },
58897
+ matched_events: { format: 'float', type: 'number' },
58898
+ reservations: {
58899
+ items: {
58900
+ properties: {
58901
+ ends_at: { nullable: true, type: 'string' },
58902
+ guest_email: { nullable: true, type: 'string' },
58903
+ guest_name: { nullable: true, type: 'string' },
58904
+ guest_phone: { nullable: true, type: 'string' },
58905
+ reservation_key: {
58906
+ nullable: true,
58907
+ type: 'string',
58908
+ },
58909
+ starts_at: { nullable: true, type: 'string' },
58910
+ uid: { type: 'string' },
58911
+ },
58912
+ required: [
58913
+ 'uid',
58914
+ 'reservation_key',
58915
+ 'guest_name',
58916
+ 'guest_email',
58917
+ 'guest_phone',
58918
+ 'starts_at',
58919
+ 'ends_at',
58920
+ ],
58921
+ type: 'object',
58922
+ },
58923
+ type: 'array',
58924
+ },
58925
+ total_events: { format: 'float', type: 'number' },
58926
+ },
58927
+ required: [
58928
+ 'is_valid',
58929
+ 'total_events',
58930
+ 'matched_events',
58931
+ 'filtered_events',
58932
+ 'reservations',
58933
+ 'errors',
58934
+ ],
58935
+ type: 'object',
58936
+ },
58937
+ },
58938
+ required: ['validation_result', 'ok'],
58939
+ type: 'object',
58940
+ },
58941
+ },
58942
+ },
58943
+ description: 'OK',
58944
+ },
58945
+ 400: { description: 'Bad Request' },
58946
+ 401: { description: 'Unauthorized' },
58947
+ },
58948
+ security: [{ api_key: [] }, { console_session_with_workspace: [] }],
58949
+ summary: '/seam/customer/v1/connectors/ical/validate-config',
58950
+ tags: [],
58951
+ 'x-fern-sdk-group-name': [
58952
+ 'seam',
58953
+ 'customer',
58954
+ 'v1',
58955
+ 'connectors',
58956
+ 'ical',
58957
+ ],
58958
+ 'x-fern-sdk-method-name': 'validate-config',
58959
+ 'x-fern-sdk-return-value': 'validation_result',
58960
+ 'x-response-key': 'validation_result',
58961
+ 'x-title': 'Validate iCal Config',
58962
+ 'x-undocumented': 'Only used internally.',
58963
+ },
58964
+ },
58479
58965
  '/seam/customer/v1/connectors/list': {
58480
58966
  get: {
58481
58967
  description: 'Lists connectors for a workspace (API key auth) or for a specific customer (customer client session auth).',