@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.
- package/dist/connect.cjs +494 -8
- package/dist/connect.cjs.map +1 -1
- package/dist/connect.d.cts +789 -84
- package/dist/index.cjs +494 -8
- package/dist/index.cjs.map +1 -1
- package/lib/seam/connect/models/action-attempts/action-attempt.d.ts +10 -10
- package/lib/seam/connect/models/action-attempts/encode-credential.d.ts +5 -5
- package/lib/seam/connect/models/action-attempts/encode-credential.js +3 -3
- package/lib/seam/connect/models/action-attempts/encode-credential.js.map +1 -1
- package/lib/seam/connect/models/action-attempts/scan-credential.d.ts +5 -5
- package/lib/seam/connect/models/action-attempts/scan-credential.js +3 -3
- package/lib/seam/connect/models/action-attempts/scan-credential.js.map +1 -1
- package/lib/seam/connect/models/batch.d.ts +14 -14
- package/lib/seam/connect/openapi.d.ts +516 -0
- package/lib/seam/connect/openapi.js +488 -2
- package/lib/seam/connect/openapi.js.map +1 -1
- package/lib/seam/connect/route-types.d.ts +249 -60
- package/package.json +1 -1
- package/src/lib/seam/connect/models/action-attempts/encode-credential.ts +3 -3
- package/src/lib/seam/connect/models/action-attempts/scan-credential.ts +3 -3
- package/src/lib/seam/connect/openapi.ts +539 -2
- package/src/lib/seam/connect/route-types.ts +269 -60
package/package.json
CHANGED
|
@@ -75,10 +75,10 @@ const encoder_not_online_error = z
|
|
|
75
75
|
})
|
|
76
76
|
.describe('Error to indicate that the encoder is not online.')
|
|
77
77
|
|
|
78
|
-
const
|
|
78
|
+
const encoder_communication_timeout = z
|
|
79
79
|
.object({
|
|
80
80
|
type: z
|
|
81
|
-
.literal('
|
|
81
|
+
.literal('encoder_communication_timeout')
|
|
82
82
|
.describe(
|
|
83
83
|
'Error type to indicate that communication with the encoder timed out.',
|
|
84
84
|
),
|
|
@@ -130,7 +130,7 @@ const error = z.union([
|
|
|
130
130
|
incompatible_card_format_error,
|
|
131
131
|
credential_cannot_be_reissued,
|
|
132
132
|
encoder_not_online_error,
|
|
133
|
-
|
|
133
|
+
encoder_communication_timeout,
|
|
134
134
|
bridge_disconnected_error,
|
|
135
135
|
encoding_interrupted_error,
|
|
136
136
|
])
|
|
@@ -44,10 +44,10 @@ const encoder_not_online_error = z
|
|
|
44
44
|
})
|
|
45
45
|
.describe('Error to indicate that the encoder is not online.')
|
|
46
46
|
|
|
47
|
-
const
|
|
47
|
+
const encoder_communication_timeout = z
|
|
48
48
|
.object({
|
|
49
49
|
type: z
|
|
50
|
-
.literal('
|
|
50
|
+
.literal('encoder_communication_timeout')
|
|
51
51
|
.describe(
|
|
52
52
|
'Error type to indicate that communication with the encoder timed out.',
|
|
53
53
|
),
|
|
@@ -80,7 +80,7 @@ const error = z.union([
|
|
|
80
80
|
...common_action_attempt_errors,
|
|
81
81
|
no_credential_on_encoder_error,
|
|
82
82
|
encoder_not_online_error,
|
|
83
|
-
|
|
83
|
+
encoder_communication_timeout,
|
|
84
84
|
bridge_disconnected_error,
|
|
85
85
|
])
|
|
86
86
|
|
|
@@ -6904,7 +6904,7 @@ export default {
|
|
|
6904
6904
|
type: {
|
|
6905
6905
|
description:
|
|
6906
6906
|
'Error type to indicate that communication with the encoder timed out.',
|
|
6907
|
-
enum: ['
|
|
6907
|
+
enum: ['encoder_communication_timeout'],
|
|
6908
6908
|
type: 'string',
|
|
6909
6909
|
},
|
|
6910
6910
|
},
|
|
@@ -8072,7 +8072,7 @@ export default {
|
|
|
8072
8072
|
type: {
|
|
8073
8073
|
description:
|
|
8074
8074
|
'Error type to indicate that communication with the encoder timed out.',
|
|
8075
|
-
enum: ['
|
|
8075
|
+
enum: ['encoder_communication_timeout'],
|
|
8076
8076
|
type: 'string',
|
|
8077
8077
|
},
|
|
8078
8078
|
},
|
|
@@ -63698,6 +63698,543 @@ export default {
|
|
|
63698
63698
|
'x-undocumented': 'Internal endpoint for Console.',
|
|
63699
63699
|
},
|
|
63700
63700
|
},
|
|
63701
|
+
'/seam/customer/v1/connectors/ical/generate-config': {
|
|
63702
|
+
post: {
|
|
63703
|
+
description:
|
|
63704
|
+
"Fetches an iCal feed URL and uses AI to generate a parsing config\nbased on the feed's structure and content.",
|
|
63705
|
+
operationId: 'seamCustomerV1ConnectorsIcalGenerateConfigPost',
|
|
63706
|
+
requestBody: {
|
|
63707
|
+
content: {
|
|
63708
|
+
'application/json': {
|
|
63709
|
+
schema: {
|
|
63710
|
+
properties: {
|
|
63711
|
+
ical_url: {
|
|
63712
|
+
description: 'iCal feed URL to analyze',
|
|
63713
|
+
format: 'uri',
|
|
63714
|
+
type: 'string',
|
|
63715
|
+
},
|
|
63716
|
+
},
|
|
63717
|
+
required: ['ical_url'],
|
|
63718
|
+
type: 'object',
|
|
63719
|
+
},
|
|
63720
|
+
},
|
|
63721
|
+
},
|
|
63722
|
+
},
|
|
63723
|
+
responses: {
|
|
63724
|
+
200: {
|
|
63725
|
+
content: {
|
|
63726
|
+
'application/json': {
|
|
63727
|
+
schema: {
|
|
63728
|
+
properties: {
|
|
63729
|
+
generated_config: {
|
|
63730
|
+
properties: {
|
|
63731
|
+
ical_config: {
|
|
63732
|
+
properties: {
|
|
63733
|
+
default_check_in_time: {
|
|
63734
|
+
description:
|
|
63735
|
+
'Default check-in time (HH:MM) used when iCal gives date-only values',
|
|
63736
|
+
pattern: '^\\d{2}:\\d{2}$',
|
|
63737
|
+
type: 'string',
|
|
63738
|
+
},
|
|
63739
|
+
default_check_out_time: {
|
|
63740
|
+
description:
|
|
63741
|
+
'Default check-out time (HH:MM) used when iCal gives date-only values',
|
|
63742
|
+
pattern: '^\\d{2}:\\d{2}$',
|
|
63743
|
+
type: 'string',
|
|
63744
|
+
},
|
|
63745
|
+
fields: {
|
|
63746
|
+
properties: {
|
|
63747
|
+
ends_at: {
|
|
63748
|
+
description: 'How to extract check-out date',
|
|
63749
|
+
properties: {
|
|
63750
|
+
pattern: {
|
|
63751
|
+
description:
|
|
63752
|
+
'Regex with capture group to extract value from the property',
|
|
63753
|
+
type: 'string',
|
|
63754
|
+
},
|
|
63755
|
+
source: {
|
|
63756
|
+
description:
|
|
63757
|
+
'iCal property name to read from: UID, SUMMARY, DESCRIPTION, DTSTART, DTEND, etc.',
|
|
63758
|
+
type: 'string',
|
|
63759
|
+
},
|
|
63760
|
+
type: {
|
|
63761
|
+
description:
|
|
63762
|
+
"Special type handling — 'date' parses iCal date formats",
|
|
63763
|
+
enum: ['date'],
|
|
63764
|
+
type: 'string',
|
|
63765
|
+
},
|
|
63766
|
+
},
|
|
63767
|
+
required: ['source'],
|
|
63768
|
+
type: 'object',
|
|
63769
|
+
},
|
|
63770
|
+
guest_email: {
|
|
63771
|
+
description: 'How to extract guest email',
|
|
63772
|
+
properties: {
|
|
63773
|
+
pattern: {
|
|
63774
|
+
description:
|
|
63775
|
+
'Regex with capture group to extract value from the property',
|
|
63776
|
+
type: 'string',
|
|
63777
|
+
},
|
|
63778
|
+
source: {
|
|
63779
|
+
description:
|
|
63780
|
+
'iCal property name to read from: UID, SUMMARY, DESCRIPTION, DTSTART, DTEND, etc.',
|
|
63781
|
+
type: 'string',
|
|
63782
|
+
},
|
|
63783
|
+
type: {
|
|
63784
|
+
description:
|
|
63785
|
+
"Special type handling — 'date' parses iCal date formats",
|
|
63786
|
+
enum: ['date'],
|
|
63787
|
+
type: 'string',
|
|
63788
|
+
},
|
|
63789
|
+
},
|
|
63790
|
+
required: ['source'],
|
|
63791
|
+
type: 'object',
|
|
63792
|
+
},
|
|
63793
|
+
guest_name: {
|
|
63794
|
+
description: 'How to extract guest name',
|
|
63795
|
+
properties: {
|
|
63796
|
+
pattern: {
|
|
63797
|
+
description:
|
|
63798
|
+
'Regex with capture group to extract value from the property',
|
|
63799
|
+
type: 'string',
|
|
63800
|
+
},
|
|
63801
|
+
source: {
|
|
63802
|
+
description:
|
|
63803
|
+
'iCal property name to read from: UID, SUMMARY, DESCRIPTION, DTSTART, DTEND, etc.',
|
|
63804
|
+
type: 'string',
|
|
63805
|
+
},
|
|
63806
|
+
type: {
|
|
63807
|
+
description:
|
|
63808
|
+
"Special type handling — 'date' parses iCal date formats",
|
|
63809
|
+
enum: ['date'],
|
|
63810
|
+
type: 'string',
|
|
63811
|
+
},
|
|
63812
|
+
},
|
|
63813
|
+
required: ['source'],
|
|
63814
|
+
type: 'object',
|
|
63815
|
+
},
|
|
63816
|
+
guest_phone: {
|
|
63817
|
+
description: 'How to extract guest phone',
|
|
63818
|
+
properties: {
|
|
63819
|
+
pattern: {
|
|
63820
|
+
description:
|
|
63821
|
+
'Regex with capture group to extract value from the property',
|
|
63822
|
+
type: 'string',
|
|
63823
|
+
},
|
|
63824
|
+
source: {
|
|
63825
|
+
description:
|
|
63826
|
+
'iCal property name to read from: UID, SUMMARY, DESCRIPTION, DTSTART, DTEND, etc.',
|
|
63827
|
+
type: 'string',
|
|
63828
|
+
},
|
|
63829
|
+
type: {
|
|
63830
|
+
description:
|
|
63831
|
+
"Special type handling — 'date' parses iCal date formats",
|
|
63832
|
+
enum: ['date'],
|
|
63833
|
+
type: 'string',
|
|
63834
|
+
},
|
|
63835
|
+
},
|
|
63836
|
+
required: ['source'],
|
|
63837
|
+
type: 'object',
|
|
63838
|
+
},
|
|
63839
|
+
reservation_key: {
|
|
63840
|
+
description:
|
|
63841
|
+
'How to extract the reservation key (falls back to UID)',
|
|
63842
|
+
properties: {
|
|
63843
|
+
pattern: {
|
|
63844
|
+
description:
|
|
63845
|
+
'Regex with capture group to extract value from the property',
|
|
63846
|
+
type: 'string',
|
|
63847
|
+
},
|
|
63848
|
+
source: {
|
|
63849
|
+
description:
|
|
63850
|
+
'iCal property name to read from: UID, SUMMARY, DESCRIPTION, DTSTART, DTEND, etc.',
|
|
63851
|
+
type: 'string',
|
|
63852
|
+
},
|
|
63853
|
+
type: {
|
|
63854
|
+
description:
|
|
63855
|
+
"Special type handling — 'date' parses iCal date formats",
|
|
63856
|
+
enum: ['date'],
|
|
63857
|
+
type: 'string',
|
|
63858
|
+
},
|
|
63859
|
+
},
|
|
63860
|
+
required: ['source'],
|
|
63861
|
+
type: 'object',
|
|
63862
|
+
},
|
|
63863
|
+
starts_at: {
|
|
63864
|
+
description: 'How to extract check-in date',
|
|
63865
|
+
properties: {
|
|
63866
|
+
pattern: {
|
|
63867
|
+
description:
|
|
63868
|
+
'Regex with capture group to extract value from the property',
|
|
63869
|
+
type: 'string',
|
|
63870
|
+
},
|
|
63871
|
+
source: {
|
|
63872
|
+
description:
|
|
63873
|
+
'iCal property name to read from: UID, SUMMARY, DESCRIPTION, DTSTART, DTEND, etc.',
|
|
63874
|
+
type: 'string',
|
|
63875
|
+
},
|
|
63876
|
+
type: {
|
|
63877
|
+
description:
|
|
63878
|
+
"Special type handling — 'date' parses iCal date formats",
|
|
63879
|
+
enum: ['date'],
|
|
63880
|
+
type: 'string',
|
|
63881
|
+
},
|
|
63882
|
+
},
|
|
63883
|
+
required: ['source'],
|
|
63884
|
+
type: 'object',
|
|
63885
|
+
},
|
|
63886
|
+
},
|
|
63887
|
+
required: ['starts_at', 'ends_at'],
|
|
63888
|
+
type: 'object',
|
|
63889
|
+
},
|
|
63890
|
+
filter: {
|
|
63891
|
+
description:
|
|
63892
|
+
'Optional filter to skip non-matching events',
|
|
63893
|
+
properties: {
|
|
63894
|
+
pattern: {
|
|
63895
|
+
description:
|
|
63896
|
+
'Regex pattern — events not matching are skipped',
|
|
63897
|
+
type: 'string',
|
|
63898
|
+
},
|
|
63899
|
+
source: {
|
|
63900
|
+
description:
|
|
63901
|
+
'iCal property name to match against',
|
|
63902
|
+
type: 'string',
|
|
63903
|
+
},
|
|
63904
|
+
},
|
|
63905
|
+
required: ['source', 'pattern'],
|
|
63906
|
+
type: 'object',
|
|
63907
|
+
},
|
|
63908
|
+
time_zone: {
|
|
63909
|
+
description:
|
|
63910
|
+
'IANA time zone (e.g. America/New_York) applied when dates have no time/timezone',
|
|
63911
|
+
type: 'string',
|
|
63912
|
+
},
|
|
63913
|
+
},
|
|
63914
|
+
required: ['fields'],
|
|
63915
|
+
type: 'object',
|
|
63916
|
+
},
|
|
63917
|
+
},
|
|
63918
|
+
required: ['ical_config'],
|
|
63919
|
+
type: 'object',
|
|
63920
|
+
},
|
|
63921
|
+
ok: { type: 'boolean' },
|
|
63922
|
+
},
|
|
63923
|
+
required: ['generated_config', 'ok'],
|
|
63924
|
+
type: 'object',
|
|
63925
|
+
},
|
|
63926
|
+
},
|
|
63927
|
+
},
|
|
63928
|
+
description: 'OK',
|
|
63929
|
+
},
|
|
63930
|
+
400: { description: 'Bad Request' },
|
|
63931
|
+
401: { description: 'Unauthorized' },
|
|
63932
|
+
},
|
|
63933
|
+
security: [{ api_key: [] }, { console_session_with_workspace: [] }],
|
|
63934
|
+
summary: '/seam/customer/v1/connectors/ical/generate-config',
|
|
63935
|
+
tags: [],
|
|
63936
|
+
'x-fern-sdk-group-name': [
|
|
63937
|
+
'seam',
|
|
63938
|
+
'customer',
|
|
63939
|
+
'v1',
|
|
63940
|
+
'connectors',
|
|
63941
|
+
'ical',
|
|
63942
|
+
],
|
|
63943
|
+
'x-fern-sdk-method-name': 'generate-config',
|
|
63944
|
+
'x-fern-sdk-return-value': 'generated_config',
|
|
63945
|
+
'x-response-key': 'generated_config',
|
|
63946
|
+
'x-title': 'Generate iCal Config',
|
|
63947
|
+
'x-undocumented': 'Only used internally.',
|
|
63948
|
+
},
|
|
63949
|
+
},
|
|
63950
|
+
'/seam/customer/v1/connectors/ical/validate-config': {
|
|
63951
|
+
post: {
|
|
63952
|
+
description:
|
|
63953
|
+
'Fetches a sample iCal feed and validates the config against it,\nreturning the parsed reservations so the caller can verify\nextraction is correct.',
|
|
63954
|
+
operationId: 'seamCustomerV1ConnectorsIcalValidateConfigPost',
|
|
63955
|
+
requestBody: {
|
|
63956
|
+
content: {
|
|
63957
|
+
'application/json': {
|
|
63958
|
+
schema: {
|
|
63959
|
+
properties: {
|
|
63960
|
+
ical_config: {
|
|
63961
|
+
description: 'Config to validate',
|
|
63962
|
+
properties: {
|
|
63963
|
+
default_check_in_time: {
|
|
63964
|
+
description:
|
|
63965
|
+
'Default check-in time (HH:MM) used when iCal gives date-only values',
|
|
63966
|
+
pattern: '^\\d{2}:\\d{2}$',
|
|
63967
|
+
type: 'string',
|
|
63968
|
+
},
|
|
63969
|
+
default_check_out_time: {
|
|
63970
|
+
description:
|
|
63971
|
+
'Default check-out time (HH:MM) used when iCal gives date-only values',
|
|
63972
|
+
pattern: '^\\d{2}:\\d{2}$',
|
|
63973
|
+
type: 'string',
|
|
63974
|
+
},
|
|
63975
|
+
fields: {
|
|
63976
|
+
properties: {
|
|
63977
|
+
ends_at: {
|
|
63978
|
+
description: 'How to extract check-out date',
|
|
63979
|
+
properties: {
|
|
63980
|
+
pattern: {
|
|
63981
|
+
description:
|
|
63982
|
+
'Regex with capture group to extract value from the property',
|
|
63983
|
+
type: 'string',
|
|
63984
|
+
},
|
|
63985
|
+
source: {
|
|
63986
|
+
description:
|
|
63987
|
+
'iCal property name to read from: UID, SUMMARY, DESCRIPTION, DTSTART, DTEND, etc.',
|
|
63988
|
+
type: 'string',
|
|
63989
|
+
},
|
|
63990
|
+
type: {
|
|
63991
|
+
description:
|
|
63992
|
+
"Special type handling — 'date' parses iCal date formats",
|
|
63993
|
+
enum: ['date'],
|
|
63994
|
+
type: 'string',
|
|
63995
|
+
},
|
|
63996
|
+
},
|
|
63997
|
+
required: ['source'],
|
|
63998
|
+
type: 'object',
|
|
63999
|
+
},
|
|
64000
|
+
guest_email: {
|
|
64001
|
+
description: 'How to extract guest email',
|
|
64002
|
+
properties: {
|
|
64003
|
+
pattern: {
|
|
64004
|
+
description:
|
|
64005
|
+
'Regex with capture group to extract value from the property',
|
|
64006
|
+
type: 'string',
|
|
64007
|
+
},
|
|
64008
|
+
source: {
|
|
64009
|
+
description:
|
|
64010
|
+
'iCal property name to read from: UID, SUMMARY, DESCRIPTION, DTSTART, DTEND, etc.',
|
|
64011
|
+
type: 'string',
|
|
64012
|
+
},
|
|
64013
|
+
type: {
|
|
64014
|
+
description:
|
|
64015
|
+
"Special type handling — 'date' parses iCal date formats",
|
|
64016
|
+
enum: ['date'],
|
|
64017
|
+
type: 'string',
|
|
64018
|
+
},
|
|
64019
|
+
},
|
|
64020
|
+
required: ['source'],
|
|
64021
|
+
type: 'object',
|
|
64022
|
+
},
|
|
64023
|
+
guest_name: {
|
|
64024
|
+
description: 'How to extract guest name',
|
|
64025
|
+
properties: {
|
|
64026
|
+
pattern: {
|
|
64027
|
+
description:
|
|
64028
|
+
'Regex with capture group to extract value from the property',
|
|
64029
|
+
type: 'string',
|
|
64030
|
+
},
|
|
64031
|
+
source: {
|
|
64032
|
+
description:
|
|
64033
|
+
'iCal property name to read from: UID, SUMMARY, DESCRIPTION, DTSTART, DTEND, etc.',
|
|
64034
|
+
type: 'string',
|
|
64035
|
+
},
|
|
64036
|
+
type: {
|
|
64037
|
+
description:
|
|
64038
|
+
"Special type handling — 'date' parses iCal date formats",
|
|
64039
|
+
enum: ['date'],
|
|
64040
|
+
type: 'string',
|
|
64041
|
+
},
|
|
64042
|
+
},
|
|
64043
|
+
required: ['source'],
|
|
64044
|
+
type: 'object',
|
|
64045
|
+
},
|
|
64046
|
+
guest_phone: {
|
|
64047
|
+
description: 'How to extract guest phone',
|
|
64048
|
+
properties: {
|
|
64049
|
+
pattern: {
|
|
64050
|
+
description:
|
|
64051
|
+
'Regex with capture group to extract value from the property',
|
|
64052
|
+
type: 'string',
|
|
64053
|
+
},
|
|
64054
|
+
source: {
|
|
64055
|
+
description:
|
|
64056
|
+
'iCal property name to read from: UID, SUMMARY, DESCRIPTION, DTSTART, DTEND, etc.',
|
|
64057
|
+
type: 'string',
|
|
64058
|
+
},
|
|
64059
|
+
type: {
|
|
64060
|
+
description:
|
|
64061
|
+
"Special type handling — 'date' parses iCal date formats",
|
|
64062
|
+
enum: ['date'],
|
|
64063
|
+
type: 'string',
|
|
64064
|
+
},
|
|
64065
|
+
},
|
|
64066
|
+
required: ['source'],
|
|
64067
|
+
type: 'object',
|
|
64068
|
+
},
|
|
64069
|
+
reservation_key: {
|
|
64070
|
+
description:
|
|
64071
|
+
'How to extract the reservation key (falls back to UID)',
|
|
64072
|
+
properties: {
|
|
64073
|
+
pattern: {
|
|
64074
|
+
description:
|
|
64075
|
+
'Regex with capture group to extract value from the property',
|
|
64076
|
+
type: 'string',
|
|
64077
|
+
},
|
|
64078
|
+
source: {
|
|
64079
|
+
description:
|
|
64080
|
+
'iCal property name to read from: UID, SUMMARY, DESCRIPTION, DTSTART, DTEND, etc.',
|
|
64081
|
+
type: 'string',
|
|
64082
|
+
},
|
|
64083
|
+
type: {
|
|
64084
|
+
description:
|
|
64085
|
+
"Special type handling — 'date' parses iCal date formats",
|
|
64086
|
+
enum: ['date'],
|
|
64087
|
+
type: 'string',
|
|
64088
|
+
},
|
|
64089
|
+
},
|
|
64090
|
+
required: ['source'],
|
|
64091
|
+
type: 'object',
|
|
64092
|
+
},
|
|
64093
|
+
starts_at: {
|
|
64094
|
+
description: 'How to extract check-in date',
|
|
64095
|
+
properties: {
|
|
64096
|
+
pattern: {
|
|
64097
|
+
description:
|
|
64098
|
+
'Regex with capture group to extract value from the property',
|
|
64099
|
+
type: 'string',
|
|
64100
|
+
},
|
|
64101
|
+
source: {
|
|
64102
|
+
description:
|
|
64103
|
+
'iCal property name to read from: UID, SUMMARY, DESCRIPTION, DTSTART, DTEND, etc.',
|
|
64104
|
+
type: 'string',
|
|
64105
|
+
},
|
|
64106
|
+
type: {
|
|
64107
|
+
description:
|
|
64108
|
+
"Special type handling — 'date' parses iCal date formats",
|
|
64109
|
+
enum: ['date'],
|
|
64110
|
+
type: 'string',
|
|
64111
|
+
},
|
|
64112
|
+
},
|
|
64113
|
+
required: ['source'],
|
|
64114
|
+
type: 'object',
|
|
64115
|
+
},
|
|
64116
|
+
},
|
|
64117
|
+
required: ['starts_at', 'ends_at'],
|
|
64118
|
+
type: 'object',
|
|
64119
|
+
},
|
|
64120
|
+
filter: {
|
|
64121
|
+
description:
|
|
64122
|
+
'Optional filter to skip non-matching events',
|
|
64123
|
+
properties: {
|
|
64124
|
+
pattern: {
|
|
64125
|
+
description:
|
|
64126
|
+
'Regex pattern — events not matching are skipped',
|
|
64127
|
+
type: 'string',
|
|
64128
|
+
},
|
|
64129
|
+
source: {
|
|
64130
|
+
description: 'iCal property name to match against',
|
|
64131
|
+
type: 'string',
|
|
64132
|
+
},
|
|
64133
|
+
},
|
|
64134
|
+
required: ['source', 'pattern'],
|
|
64135
|
+
type: 'object',
|
|
64136
|
+
},
|
|
64137
|
+
time_zone: {
|
|
64138
|
+
description:
|
|
64139
|
+
'IANA time zone (e.g. America/New_York) applied when dates have no time/timezone',
|
|
64140
|
+
type: 'string',
|
|
64141
|
+
},
|
|
64142
|
+
},
|
|
64143
|
+
required: ['fields'],
|
|
64144
|
+
type: 'object',
|
|
64145
|
+
},
|
|
64146
|
+
ical_url: {
|
|
64147
|
+
description: 'iCal feed URL to validate against',
|
|
64148
|
+
format: 'uri',
|
|
64149
|
+
type: 'string',
|
|
64150
|
+
},
|
|
64151
|
+
},
|
|
64152
|
+
required: ['ical_url', 'ical_config'],
|
|
64153
|
+
type: 'object',
|
|
64154
|
+
},
|
|
64155
|
+
},
|
|
64156
|
+
},
|
|
64157
|
+
},
|
|
64158
|
+
responses: {
|
|
64159
|
+
200: {
|
|
64160
|
+
content: {
|
|
64161
|
+
'application/json': {
|
|
64162
|
+
schema: {
|
|
64163
|
+
properties: {
|
|
64164
|
+
ok: { type: 'boolean' },
|
|
64165
|
+
validation_result: {
|
|
64166
|
+
properties: {
|
|
64167
|
+
errors: { items: { type: 'string' }, type: 'array' },
|
|
64168
|
+
filtered_events: { format: 'float', type: 'number' },
|
|
64169
|
+
is_valid: { type: 'boolean' },
|
|
64170
|
+
matched_events: { format: 'float', type: 'number' },
|
|
64171
|
+
reservations: {
|
|
64172
|
+
items: {
|
|
64173
|
+
properties: {
|
|
64174
|
+
ends_at: { nullable: true, type: 'string' },
|
|
64175
|
+
guest_email: { nullable: true, type: 'string' },
|
|
64176
|
+
guest_name: { nullable: true, type: 'string' },
|
|
64177
|
+
guest_phone: { nullable: true, type: 'string' },
|
|
64178
|
+
reservation_key: {
|
|
64179
|
+
nullable: true,
|
|
64180
|
+
type: 'string',
|
|
64181
|
+
},
|
|
64182
|
+
starts_at: { nullable: true, type: 'string' },
|
|
64183
|
+
uid: { type: 'string' },
|
|
64184
|
+
},
|
|
64185
|
+
required: [
|
|
64186
|
+
'uid',
|
|
64187
|
+
'reservation_key',
|
|
64188
|
+
'guest_name',
|
|
64189
|
+
'guest_email',
|
|
64190
|
+
'guest_phone',
|
|
64191
|
+
'starts_at',
|
|
64192
|
+
'ends_at',
|
|
64193
|
+
],
|
|
64194
|
+
type: 'object',
|
|
64195
|
+
},
|
|
64196
|
+
type: 'array',
|
|
64197
|
+
},
|
|
64198
|
+
total_events: { format: 'float', type: 'number' },
|
|
64199
|
+
},
|
|
64200
|
+
required: [
|
|
64201
|
+
'is_valid',
|
|
64202
|
+
'total_events',
|
|
64203
|
+
'matched_events',
|
|
64204
|
+
'filtered_events',
|
|
64205
|
+
'reservations',
|
|
64206
|
+
'errors',
|
|
64207
|
+
],
|
|
64208
|
+
type: 'object',
|
|
64209
|
+
},
|
|
64210
|
+
},
|
|
64211
|
+
required: ['validation_result', 'ok'],
|
|
64212
|
+
type: 'object',
|
|
64213
|
+
},
|
|
64214
|
+
},
|
|
64215
|
+
},
|
|
64216
|
+
description: 'OK',
|
|
64217
|
+
},
|
|
64218
|
+
400: { description: 'Bad Request' },
|
|
64219
|
+
401: { description: 'Unauthorized' },
|
|
64220
|
+
},
|
|
64221
|
+
security: [{ api_key: [] }, { console_session_with_workspace: [] }],
|
|
64222
|
+
summary: '/seam/customer/v1/connectors/ical/validate-config',
|
|
64223
|
+
tags: [],
|
|
64224
|
+
'x-fern-sdk-group-name': [
|
|
64225
|
+
'seam',
|
|
64226
|
+
'customer',
|
|
64227
|
+
'v1',
|
|
64228
|
+
'connectors',
|
|
64229
|
+
'ical',
|
|
64230
|
+
],
|
|
64231
|
+
'x-fern-sdk-method-name': 'validate-config',
|
|
64232
|
+
'x-fern-sdk-return-value': 'validation_result',
|
|
64233
|
+
'x-response-key': 'validation_result',
|
|
64234
|
+
'x-title': 'Validate iCal Config',
|
|
64235
|
+
'x-undocumented': 'Only used internally.',
|
|
64236
|
+
},
|
|
64237
|
+
},
|
|
63701
64238
|
'/seam/customer/v1/connectors/list': {
|
|
63702
64239
|
get: {
|
|
63703
64240
|
description:
|