From c5a5f78f34af82f9e8ec326853b87e8664481c9b Mon Sep 17 00:00:00 2001 From: Marc <97827744+marcmlc@users.noreply.github.com> Date: Thu, 14 Aug 2025 12:26:40 +0100 Subject: [PATCH 1/4] add AddTeammateRatingUpdatedAtToConversation doc --- descriptions/0/api.intercom.io.yaml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/descriptions/0/api.intercom.io.yaml b/descriptions/0/api.intercom.io.yaml index af62e2d..30958e5 100644 --- a/descriptions/0/api.intercom.io.yaml +++ b/descriptions/0/api.intercom.io.yaml @@ -16988,6 +16988,11 @@ components: description: The time the rating was requested in the conversation being rated. example: 1671028894 + updated_at: + type: integer + format: date-time + description: The time the rating was last updated. + example: 1671028894 contact: "$ref": "#/components/schemas/contact_reference" teammate: From f0c0524d4b952f374a3932dd105574cec2f009cd Mon Sep 17 00:00:00 2001 From: Marc <97827744+marcmlc@users.noreply.github.com> Date: Thu, 14 Aug 2025 12:27:18 +0100 Subject: [PATCH 2/4] add AddAiAgentRatingCreatedAtUpdatedAtToConversation --- descriptions/0/api.intercom.io.yaml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/descriptions/0/api.intercom.io.yaml b/descriptions/0/api.intercom.io.yaml index 30958e5..ec032a9 100644 --- a/descriptions/0/api.intercom.io.yaml +++ b/descriptions/0/api.intercom.io.yaml @@ -14826,6 +14826,18 @@ components: description: The customer satisfaction rating remark given to AI Agent. example: Very helpful! nullable: true + created_at: + type: integer + format: date-time + description: The time when the AI agent rating was created. + example: 1663597260 + nullable: true + updated_at: + type: integer + format: date-time + description: The time when the AI agent rating was last updated. + example: 1663597260 + nullable: true content_sources: "$ref": "#/components/schemas/content_sources_list" app: From 042a9a85ab5864918ec00e1e7ea2ee077fd2705e Mon Sep 17 00:00:00 2001 From: Marc <97827744+marcmlc@users.noreply.github.com> Date: Thu, 14 Aug 2025 12:33:22 +0100 Subject: [PATCH 3/4] apply changes from dev-docs 524 --- descriptions/0/api.intercom.io.yaml | 83 ++++++++++++++++++----------- 1 file changed, 51 insertions(+), 32 deletions(-) diff --git a/descriptions/0/api.intercom.io.yaml b/descriptions/0/api.intercom.io.yaml index ec032a9..55af38d 100644 --- a/descriptions/0/api.intercom.io.yaml +++ b/descriptions/0/api.intercom.io.yaml @@ -17528,38 +17528,48 @@ components: - contact - company example: contact - data_type: - type: string - description: The type of data stored for this attribute. - enum: - - string - - integer - - float - - boolean - - datetime - - date - example: string description: type: string description: The readable description you see in the UI for the attribute. example: My Data Attribute Description - options: - type: array - description: To create list attributes. Provide a set of hashes with `value` - as the key of the options you want to make. `data_type` must be `string`. - items: - type: string - example: - - option1 - - option2 messenger_writable: type: boolean description: Can this attribute be updated by the Messenger example: false required: - - name - - model - - data_type + - name + - model + - data_type + oneOf: + - properties: + data_type: + enum: + - options + options: + type: array + description: Array of objects representing the options of the list, with `value` as the key and the option as the value. At least + two options are required. + items: + type: object + properties: + value: + type: string + example: + - value: 1-10 + - value: 11-50 + required: + - options + title: 'list attribute' + - properties: + data_type: + enum: + - string + - integer + - float + - boolean + - datetime + - date + title: 'other type' create_data_event_request: description: '' type: object @@ -21771,19 +21781,28 @@ components: type: string description: The readable description you see in the UI for the attribute. example: My Data Attribute Description - options: - type: array - description: To create list attributes. Provide a set of hashes with `value` - as the key of the options you want to make. `data_type` must be `string`. - items: - type: string - example: - - option1 - - option2 messenger_writable: type: boolean description: Can this attribute be updated by the Messenger example: false + oneOf: + - properties: + options: + type: array + description: Array of objects representing the options of the list, with `value` as the key and the option as the value. At least + two options are required. + items: + type: object + properties: + value: + type: string + example: + - value: 1-10 + - value: 11-50 + required: + - options + title: 'list attribute' + - title: 'other type' update_external_page_request: title: Update External Page Payload type: object From 7e9194219ed80207eff82e5fcbccfe44ae021e00 Mon Sep 17 00:00:00 2001 From: Marc <97827744+marcmlc@users.noreply.github.com> Date: Thu, 14 Aug 2025 13:33:21 +0100 Subject: [PATCH 4/4] Fix fern check errors for data attribute request types MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Map snake_case schema names to PascalCase for CreateDataAttributeRequest and UpdateDataAttributeRequest to resolve type definition errors in fern check. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude --- fern/unstable-openapi-overrides.yml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/fern/unstable-openapi-overrides.yml b/fern/unstable-openapi-overrides.yml index 4f5bf3f..054536e 100644 --- a/fern/unstable-openapi-overrides.yml +++ b/fern/unstable-openapi-overrides.yml @@ -1,4 +1,18 @@ paths: + '/data_attributes': + post: + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/CreateDataAttributeRequest' + '/data_attributes/{id}': + put: + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/UpdateDataAttributeRequest' '/articles': post: requestBody: @@ -98,6 +112,10 @@ paths: components: schemas: + create_data_attribute_request: + x-fern-type-name: CreateDataAttributeRequest + update_data_attribute_request: + x-fern-type-name: UpdateDataAttributeRequest custom_attributes: example: monthly_spend: '155.5'