Skip to content

Commit 174069d

Browse files
salmanbshahclaude
andcommitted
Add enum constraints to data_connector_detail schema fields
Per review: 9 fields backed by Rails enums now have proper enum constraints. Fixed invalid source: conversation → fin in example. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 17117c7 commit 174069d

1 file changed

Lines changed: 49 additions & 10 deletions

File tree

descriptions/0/api.intercom.io.yaml

Lines changed: 49 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -10268,10 +10268,10 @@ paths:
1026810268
http_method: post
1026910269
direct_fin_usage: false
1027010270
audiences:
10271-
- user
10272-
- lead
10271+
- users
10272+
- leads
1027310273
execution_type: server_side
10274-
configuration_response_type: json
10274+
configuration_response_type: test_response_type
1027510275
data_transformation_type:
1027610276
client_function_name:
1027710277
client_function_timeout_ms:
@@ -10280,7 +10280,7 @@ paths:
1028010280
type: string
1028110281
description: The Intercom conversation ID
1028210282
required: true
10283-
source: conversation
10283+
source: fin
1028410284
response_fields:
1028510285
- path: status
1028610286
type: string
@@ -21804,23 +21804,37 @@ components:
2180421804
description: The audience types this connector targets.
2180521805
items:
2180621806
type: string
21807+
enum:
21808+
- users
21809+
- leads
21810+
- visitors
2180721811
example:
21808-
- user
21809-
- lead
21812+
- users
21813+
- leads
2181021814
execution_type:
2181121815
type: string
2181221816
nullable: true
21813-
description: How the connector executes (e.g. `server_side`, `client_side`).
21817+
description: How the connector executes.
21818+
enum:
21819+
- server_side
21820+
- client_side
2181421821
example: server_side
2181521822
configuration_response_type:
2181621823
type: string
2181721824
nullable: true
2181821825
description: The expected response format from the connector.
21819-
example: json
21826+
enum:
21827+
- test_response_type
21828+
- mock_response_type
21829+
example: test_response_type
2182021830
data_transformation_type:
2182121831
type: string
2182221832
nullable: true
2182321833
description: The type of data transformation applied to the response.
21834+
enum:
21835+
- full_access
21836+
- redacted_access
21837+
- code_block_transformation
2182421838
client_function_name:
2182521839
type: string
2182621840
nullable: true
@@ -21842,6 +21856,11 @@ components:
2184221856
type:
2184321857
type: string
2184421858
description: The data type of the input.
21859+
enum:
21860+
- string
21861+
- integer
21862+
- decimal
21863+
- boolean
2184521864
example: string
2184621865
description:
2184721866
type: string
@@ -21857,8 +21876,12 @@ components:
2185721876
source:
2185821877
type: string
2185921878
nullable: true
21860-
description: The source context for this input (e.g. `contact`, `conversation`).
21861-
example: conversation
21879+
description: The source context for this input.
21880+
enum:
21881+
- fin
21882+
- custom
21883+
- attribute
21884+
example: fin
2186221885
response_fields:
2186321886
type: array
2186421887
description: The fields returned in the connector response.
@@ -21872,6 +21895,13 @@ components:
2187221895
type:
2187321896
type: string
2187421897
description: The data type of the response field.
21898+
enum:
21899+
- unknown
21900+
- string
21901+
- integer
21902+
- decimal
21903+
- datetime
21904+
- boolean
2187521905
example: string
2187621906
example_value:
2187721907
nullable: true
@@ -21891,6 +21921,9 @@ components:
2189121921
type: string
2189221922
intercom_object_type:
2189321923
type: string
21924+
enum:
21925+
- conversation
21926+
- user
2189421927
attribute_mappings:
2189521928
type: array
2189621929
items:
@@ -21902,13 +21935,19 @@ components:
2190221935
type: string
2190321936
mapping_type:
2190421937
type: string
21938+
enum:
21939+
- primitive_mapping
21940+
- context_mapping
2190521941
reference_mappings:
2190621942
type: array
2190721943
items:
2190821944
type: object
2190921945
properties:
2191021946
intercom_object_type:
2191121947
type: string
21948+
enum:
21949+
- conversation
21950+
- user
2191221951
intercom_attribute_identifier:
2191321952
type: string
2191421953
token_ids:

0 commit comments

Comments
 (0)