From b26cb93db27b42c6a6e2166ffa89056c874f46e9 Mon Sep 17 00:00:00 2001 From: adisa narula Date: Fri, 28 Mar 2025 15:42:05 +0000 Subject: [PATCH 1/4] Update unstable open api doc --- descriptions/0/api.intercom.io.yaml | 34 ++++++++++------------------- 1 file changed, 11 insertions(+), 23 deletions(-) diff --git a/descriptions/0/api.intercom.io.yaml b/descriptions/0/api.intercom.io.yaml index 12f2135..6382569 100644 --- a/descriptions/0/api.intercom.io.yaml +++ b/descriptions/0/api.intercom.io.yaml @@ -11606,12 +11606,13 @@ paths: examples: Successful response: value: - type: enqueue_status - status: success - job_id: 20 - job_url: https://api.intercom.io/jobs/status/20 + type: job + id: "20" + status: pending + url: https://api.intercom.io/jobs/status/20 + resource_type: ticket schema: - "$ref": "#/components/schemas/enqueue_status" + "$ref": "#/components/schemas/jobs" '401': description: Unauthorized content: @@ -17306,23 +17307,6 @@ components: required: - type - errors - enqueue_status: - title: Enqueue status - type: object - description: Details of the job that was enqueued. - properties: - status: - type: string - description: Indicates if the job was successfully enqueued. The status can be either 'success' or 'failed'. - example: success - job_id: - type: string - description: Id of the job that was enqueued. - example: 20 - job_url: - type: string - description: API endpoint URL to check the job status. - example: https://api.intercom.io/jobs/status/20 external_page: title: External Page type: object @@ -17700,7 +17684,11 @@ components: id: type: string description: The id of the job that's currently being processed or has completed. - example: success + example: 20 + url: + type: string + description: API endpoint URL to check the job status. + example: https://api.intercom.io/jobs/status/20 status: type: string description: The status of the job execution. From 88d60fc775773d8aea9be93133e66399ebaf11f6 Mon Sep 17 00:00:00 2001 From: adisa narula Date: Fri, 28 Mar 2025 15:45:54 +0000 Subject: [PATCH 2/4] remove job example --- descriptions/0/api.intercom.io.yaml | 1 - 1 file changed, 1 deletion(-) diff --git a/descriptions/0/api.intercom.io.yaml b/descriptions/0/api.intercom.io.yaml index 6382569..8b6e097 100644 --- a/descriptions/0/api.intercom.io.yaml +++ b/descriptions/0/api.intercom.io.yaml @@ -17680,7 +17680,6 @@ components: description: The type of the object enum: - job - example: job id: type: string description: The id of the job that's currently being processed or has completed. From 0794132bf1d15155d30b8d81c083423cb6b329fa Mon Sep 17 00:00:00 2001 From: adisa narula Date: Fri, 28 Mar 2025 15:54:38 +0000 Subject: [PATCH 3/4] make resource type and url nullable --- descriptions/0/api.intercom.io.yaml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/descriptions/0/api.intercom.io.yaml b/descriptions/0/api.intercom.io.yaml index 8b6e097..06ca8d4 100644 --- a/descriptions/0/api.intercom.io.yaml +++ b/descriptions/0/api.intercom.io.yaml @@ -17702,11 +17702,13 @@ components: resource_id: type: string description: The id of the resource created during job execution (e.g. ticket id) - example: 20 + example: 123 + nullable: true resource_url: type: string description: The url of the resource created during job exeuction. Use this url to fetch the resource. - example: http://api.intercom.io/tickets/20 + example: http://api.intercom.io/tickets/123 + nullable: true required: - id intercom_version: From b14dc8ca127b7d80b333d35286ff13baca1a1882 Mon Sep 17 00:00:00 2001 From: adisa narula Date: Fri, 28 Mar 2025 15:59:04 +0000 Subject: [PATCH 4/4] comments --- descriptions/0/api.intercom.io.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/descriptions/0/api.intercom.io.yaml b/descriptions/0/api.intercom.io.yaml index 06ca8d4..1dbb460 100644 --- a/descriptions/0/api.intercom.io.yaml +++ b/descriptions/0/api.intercom.io.yaml @@ -11611,6 +11611,8 @@ paths: status: pending url: https://api.intercom.io/jobs/status/20 resource_type: ticket + resource_id: null + resource_url: null schema: "$ref": "#/components/schemas/jobs" '401':