From 3e3ed621ef1c2fcce14ef564dfcd7e8e55914da6 Mon Sep 17 00:00:00 2001 From: Matt Blank Date: Mon, 2 Jun 2025 15:32:22 -0400 Subject: [PATCH 1/5] Generate unstable SDK alongside v2.11 --- fern/generators.yml | 6 +++ fern/unstable-openapi-overrides.yml | 60 +++++++++++++++++++++++++++++ 2 files changed, 66 insertions(+) create mode 100644 fern/unstable-openapi-overrides.yml diff --git a/fern/generators.yml b/fern/generators.yml index b83b173..6ba1f6e 100644 --- a/fern/generators.yml +++ b/fern/generators.yml @@ -5,6 +5,12 @@ api: settings: title-as-schema-name: false inline-path-parameters: true + - openapi: ../descriptions/0/api.intercom.io.yaml + overrides: ./unstable-openapi-overrides.yml + namespace: unstable + settings: + title-as-schema-name: false + inline-path-parameters: true groups: ts-sdk: generators: diff --git a/fern/unstable-openapi-overrides.yml b/fern/unstable-openapi-overrides.yml new file mode 100644 index 0000000..8d56af8 --- /dev/null +++ b/fern/unstable-openapi-overrides.yml @@ -0,0 +1,60 @@ +paths: + '/articles': + post: + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/CreateArticleRequestBody' + '/companies': + post: + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/CreateOrUpdateCompanyRequestBody' + '/phone_call_redirects': + post: + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/CreatePhoneSwitchRequestBody' + '/ticket_types': + post: + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/CreateTicketTypeRequestBody' + '/messages/status': + get: + responses: + '500': + content: + application/json: + examples: null + +components: + schemas: + custom_attributes: + example: + monthly_spend: '155.5' + create_ticket_request: + x-fern-type-name: CreateTicketRequestBody + reply_conversation_request: + x-fern-type-name: ReplyConversationRequestBody + update_article_request: + x-fern-type-name: UpdateArticleRequestBody + update_ticket_type_request: + x-fern-type-name: UpdateTicketTypeRequestBody + single_filter_search_request: + properties: + operator: + enum: + - '=' + - '!=' + - IN + - NIN + - '<' + - '>' From d48d2e5fc90c8766311435ba57291a8f676b92d2 Mon Sep 17 00:00:00 2001 From: Matt Blank Date: Tue, 3 Jun 2025 12:02:50 -0400 Subject: [PATCH 2/5] Update unstable overrides --- fern/unstable-openapi-overrides.yml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/fern/unstable-openapi-overrides.yml b/fern/unstable-openapi-overrides.yml index 8d56af8..4e1def8 100644 --- a/fern/unstable-openapi-overrides.yml +++ b/fern/unstable-openapi-overrides.yml @@ -27,6 +27,33 @@ paths: application/json: schema: $ref: '#/components/schemas/CreateTicketTypeRequestBody' + '/contacts/{id}/companies': + post: + requestBody: + content: + application/json: + schema: + required: + - company_id + properties: + company_id: + type: string + description: The unique identifier for the company which is given + by Intercom + example: 58a430d35458202d41b1e65b + id: null + examples: + successful: + summary: Successful + value: + company_id: 6762f09a1bb69f9f2193bb34 + bad_request: + summary: Bad Request + value: + company_not_found: + summary: Company Not Found + value: + company_id: '123' '/messages/status': get: responses: From 5b4eb7a94b2289552b4a728ccc9be685a187dd47 Mon Sep 17 00:00:00 2001 From: Matt Blank Date: Tue, 3 Jun 2025 18:31:38 -0400 Subject: [PATCH 3/5] Remove custom channel event endpoints from overrides file --- fern/openapi-overrides.yml | 24 ------------------------ 1 file changed, 24 deletions(-) diff --git a/fern/openapi-overrides.yml b/fern/openapi-overrides.yml index 5fb32f0..5e7b19b 100644 --- a/fern/openapi-overrides.yml +++ b/fern/openapi-overrides.yml @@ -442,30 +442,6 @@ paths: - conversations x-fern-sdk-method-name: redactConversationPart x-fern-request-name: RedactConversationPartRequest - /custom_channel_events/notify_attribute_collected: - post: - x-fern-sdk-group-name: - - customChannelEvents - x-fern-sdk-method-name: notifyAttributeCollected - x-fern-request-name: NotifyAttributeCollectedRequest - /custom_channel_events/notify_new_message: - post: - x-fern-sdk-group-name: - - customChannelEvents - x-fern-sdk-method-name: notifyNewMessage - x-fern-request-name: NotifyNewMessageRequest - /custom_channel_events/notify_new_conversation: - post: - x-fern-sdk-group-name: - - customChannelEvents - x-fern-sdk-method-name: notifyNewConversation - x-fern-request-name: NotifyNewConversationRequest - /custom_channel_events/notify_quick_reply_selected: - post: - x-fern-sdk-group-name: - - customChannelEvents - x-fern-sdk-method-name: notifyQuickReplySelected - x-fern-request-name: NotifyQuickReplySelectedRequest /data_attributes: get: x-fern-sdk-group-name: From c630917272bd95e973f46056e452de1ff48575cb Mon Sep 17 00:00:00 2001 From: Matt Blank Date: Mon, 23 Jun 2025 11:49:15 -0400 Subject: [PATCH 4/5] Update config settings --- fern/fern.config.json | 2 +- fern/generators.yml | 5 +++-- fern/unstable-openapi-overrides.yml | 32 +++++++++++++++++++++++++++++ 3 files changed, 36 insertions(+), 3 deletions(-) diff --git a/fern/fern.config.json b/fern/fern.config.json index 1020812..e670cd9 100644 --- a/fern/fern.config.json +++ b/fern/fern.config.json @@ -1,4 +1,4 @@ { "organization": "intercom", - "version": "0.57.17" + "version": "0.63.25" } \ No newline at end of file diff --git a/fern/generators.yml b/fern/generators.yml index 6ba1f6e..b6aa9d5 100644 --- a/fern/generators.yml +++ b/fern/generators.yml @@ -1,3 +1,4 @@ +# yaml-language-server: $schema=https://schema.buildwithfern.dev/generators-yml.json api: specs: - openapi: ../descriptions/2.11/api.intercom.io.yaml @@ -15,7 +16,7 @@ groups: ts-sdk: generators: - name: fernapi/fern-typescript-node-sdk - version: 0.49.3 + version: 0.51.7 output: location: npm package-name: intercom-client @@ -45,7 +46,7 @@ groups: java-sdk: generators: - name: fernapi/fern-java-sdk - version: 2.32.8 + version: 2.37.0 output: location: maven coordinate: io.intercom:intercom-java diff --git a/fern/unstable-openapi-overrides.yml b/fern/unstable-openapi-overrides.yml index 4e1def8..0662398 100644 --- a/fern/unstable-openapi-overrides.yml +++ b/fern/unstable-openapi-overrides.yml @@ -6,6 +6,12 @@ paths: application/json: schema: $ref: '#/components/schemas/CreateArticleRequestBody' + '/articles/{id}': + put: null + '/tickets': + post: null + '/ticket_types/{id}': + put: null '/companies': post: requestBody: @@ -61,6 +67,30 @@ paths: content: application/json: examples: null + '/custom_channel_events/notify_attribute_collected': + post: + x-fern-sdk-group-name: + - customChannelEvents + x-fern-sdk-method-name: notifyAttributeCollected + x-fern-request-name: NotifyAttributeCollectedRequest + '/custom_channel_events/notify_new_message': + post: + x-fern-sdk-group-name: + - customChannelEvents + x-fern-sdk-method-name: notifyNewMessage + x-fern-request-name: NotifyNewMessageRequest + '/custom_channel_events/notify_new_conversation': + post: + x-fern-sdk-group-name: + - customChannelEvents + x-fern-sdk-method-name: notifyNewConversation + x-fern-request-name: NotifyNewConversationRequest + '/custom_channel_events/notify_quick_reply_selected': + post: + x-fern-sdk-group-name: + - customChannelEvents + x-fern-sdk-method-name: notifyQuickReplySelected + x-fern-request-name: NotifyQuickReplySelectedRequest components: schemas: @@ -69,6 +99,8 @@ components: monthly_spend: '155.5' create_ticket_request: x-fern-type-name: CreateTicketRequestBody + properties: + ticket_attributes: null reply_conversation_request: x-fern-type-name: ReplyConversationRequestBody update_article_request: From 27c7a9eb5fd8bc708ec8e69f0779602c55db27c0 Mon Sep 17 00:00:00 2001 From: Matt Blank Date: Mon, 23 Jun 2025 12:09:07 -0400 Subject: [PATCH 5/5] Update overrides --- fern/unstable-openapi-overrides.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/fern/unstable-openapi-overrides.yml b/fern/unstable-openapi-overrides.yml index 0662398..4f5bf3f 100644 --- a/fern/unstable-openapi-overrides.yml +++ b/fern/unstable-openapi-overrides.yml @@ -12,6 +12,10 @@ paths: post: null '/ticket_types/{id}': put: null + '/export/reporting_data/{job_identifier}': + get: null + '/download/reporting_data/{job_identifier}': + get: null '/companies': post: requestBody: