From 7782fcdf4255434264550250fefe8444277780fb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Radek=20Hol=C3=BD?= Date: Wed, 1 Dec 2021 16:07:26 +0100 Subject: [PATCH 01/18] Fix reference to response of GET https://api.cmd.tyntec.com/v3/companies/{companyId}/agents/{email} --- third-party/eazy/v1/openapi.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/third-party/eazy/v1/openapi.yaml b/third-party/eazy/v1/openapi.yaml index 67a650e9..71e87372 100644 --- a/third-party/eazy/v1/openapi.yaml +++ b/third-party/eazy/v1/openapi.yaml @@ -443,7 +443,7 @@ paths: content: application/json: schema: - $ref: '#/components/responses/agentsResponse' + $ref: '#/components/responses/agentResponse' /companies/{companyId}/teams: post: summary: Create a team From 6c32315a5a0ba9679680cc0bf521d51dbd3d5624 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Radek=20Hol=C3=BD?= Date: Mon, 29 Nov 2021 23:22:19 +0100 Subject: [PATCH 02/18] Add version to https://api.cmd.tyntec.com/v3 --- third-party/eazy/v1/openapi.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/third-party/eazy/v1/openapi.yaml b/third-party/eazy/v1/openapi.yaml index 71e87372..5fa16bc4 100644 --- a/third-party/eazy/v1/openapi.yaml +++ b/third-party/eazy/v1/openapi.yaml @@ -83,7 +83,7 @@ info: x-repository: https://github.com/tyntec/api-collection/blob/master/third-party/eazy x-major-version: v1 servers: - - url: https://api.cmd.tyntec.com/ + - url: https://api.cmd.tyntec.com/v3 security: - bearerAuth: [] tags: From b0478692b84e6343962b4cb9052bc1b9ed0bc6f3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Radek=20Hol=C3=BD?= Date: Tue, 7 Dec 2021 16:55:43 +0100 Subject: [PATCH 03/18] Fix the items of events in webhookResponse --- third-party/eazy/v1/openapi.yaml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/third-party/eazy/v1/openapi.yaml b/third-party/eazy/v1/openapi.yaml index 5fa16bc4..03dd25b9 100644 --- a/third-party/eazy/v1/openapi.yaml +++ b/third-party/eazy/v1/openapi.yaml @@ -2697,7 +2697,7 @@ components: description: Array of event on the webhooks type: array items: - $ref: '#/components/schemas/events' + $ref: '#/components/schemas/event' headers: description: Header parameters type: object @@ -2716,6 +2716,10 @@ components: description: URL of the webhook type: string example: "https://your.company.com/webhook" + event: + description: An event + type: string + example: "message" businessProfile: description: WhatsApp for Business profile response type: object From aec65452547ddf05d65d8c1149e2dd4e79d5a2d9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Radek=20Hol=C3=BD?= Date: Thu, 2 Dec 2021 21:53:02 +0100 Subject: [PATCH 04/18] Fix the descriptions in the body of PATCH https://api.cmd.tyntec.com/companies/{companyId}/teams/{jid} --- third-party/eazy/v1/openapi.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/third-party/eazy/v1/openapi.yaml b/third-party/eazy/v1/openapi.yaml index 03dd25b9..3479a76c 100644 --- a/third-party/eazy/v1/openapi.yaml +++ b/third-party/eazy/v1/openapi.yaml @@ -527,7 +527,7 @@ paths: format: email example: 'jid@company.com' requestBody: - description: The team you would like to create + description: The team you would like to update required: true content: application/json: @@ -535,7 +535,7 @@ paths: type: object properties: name: - description: Name of the team to be created + description: The name of the team to be updated type: string example: Support color: From 4b2f1b0918a67061dd4fdbbb3508eff363b2ce49 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Radek=20Hol=C3=BD?= Date: Mon, 6 Dec 2021 23:42:44 +0100 Subject: [PATCH 05/18] Fix the type of jids in quickReply --- third-party/eazy/v1/openapi.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/third-party/eazy/v1/openapi.yaml b/third-party/eazy/v1/openapi.yaml index 3479a76c..cb4a4542 100644 --- a/third-party/eazy/v1/openapi.yaml +++ b/third-party/eazy/v1/openapi.yaml @@ -2778,8 +2778,8 @@ components: type: array description: List of channels the quick reply is assigned to items: - - type: string - example: 123152345245@whatsapp.eazy.im + type: string + example: 123152345245@whatsapp.eazy.im message: type: string description: Message of the quick reply From af8b00e0b04e53e99dd6fca03e0b2fce6b8a4ccc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Radek=20Hol=C3=BD?= Date: Tue, 7 Dec 2021 10:01:19 +0100 Subject: [PATCH 06/18] Fix the reference to labels items in conversationResponse --- third-party/eazy/v1/openapi.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/third-party/eazy/v1/openapi.yaml b/third-party/eazy/v1/openapi.yaml index cb4a4542..0d8cc8bf 100644 --- a/third-party/eazy/v1/openapi.yaml +++ b/third-party/eazy/v1/openapi.yaml @@ -2485,7 +2485,7 @@ components: description: Labels of the conversation type: array items: - $ref: '#/components/schemas/allLabelsResponse' + $ref: '#/components/schemas/labelResponse' lastMessageReceivedAt: description: Date and time the last message is received type: string From c0dd61ff166cea8ad143301ac524fb147ee9d4cf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Radek=20Hol=C3=BD?= Date: Mon, 29 Nov 2021 22:55:39 +0100 Subject: [PATCH 07/18] Fix the description of GET https://api.cmd.tyntec.com/v3/keys/current --- third-party/eazy/v1/openapi.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/third-party/eazy/v1/openapi.yaml b/third-party/eazy/v1/openapi.yaml index 0d8cc8bf..cb5a7d40 100644 --- a/third-party/eazy/v1/openapi.yaml +++ b/third-party/eazy/v1/openapi.yaml @@ -330,7 +330,7 @@ paths: tags: - 'API Keys' operationId: currentApiKey - description: A specific agent can be requested + description: The current key can be retrieved using the GET method. responses: 200: description: OK From b37c70ff3b4093f7ec7ed3bd7bf36c1ebba85c84 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Radek=20Hol=C3=BD?= Date: Mon, 29 Nov 2021 22:30:37 +0100 Subject: [PATCH 08/18] Fix references to schemas in Support Inbox API --- third-party/eazy/v1/openapi.yaml | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/third-party/eazy/v1/openapi.yaml b/third-party/eazy/v1/openapi.yaml index cb5a7d40..8ffc4f15 100644 --- a/third-party/eazy/v1/openapi.yaml +++ b/third-party/eazy/v1/openapi.yaml @@ -323,7 +323,7 @@ paths: schema: type: array items: - $ref: '#/components/schema/apiKeyResponse' + $ref: '#/components/schemas/apiKeyResponse' /keys/currrent: get: summary: Current API key @@ -337,7 +337,7 @@ paths: content: application/json: schema: - $ref: '#/components/schema/apiKeyResponse' + $ref: '#/components/schemas/apiKeyResponse' /companies: get: summary: List all companies @@ -443,7 +443,7 @@ paths: content: application/json: schema: - $ref: '#/components/responses/agentResponse' + $ref: '#/components/schemas/agentResponse' /companies/{companyId}/teams: post: summary: Create a team @@ -479,7 +479,7 @@ paths: content: application/json: schema: - $ref: '#/components/responses/teamResponse' + $ref: '#/components/schemas/teamResponse' get: summary: List all teams tags: @@ -656,7 +656,7 @@ paths: content: application/json: schema: - $ref: '#/components/responses/assistantResponse' + $ref: '#/components/schemas/assistantResponse' /companies/{companyId}/labels: post: summary: Create a label @@ -694,7 +694,7 @@ paths: content: application/json: schema: - $ref: '#/components/responses/labelResponse' + $ref: '#/components/schemas/labelResponse' get: summary: List all labels tags: @@ -717,7 +717,7 @@ paths: schema: type: array items: - $ref: '#/components/responses/labelResponse' + $ref: '#/components/schemas/labelResponse' /companies/{companyId}/labels/{jid}: patch: summary: Update a label @@ -766,7 +766,7 @@ paths: content: application/json: schema: - $ref: '#/components/responses/labelResponse' + $ref: '#/components/schemas/labelResponse' delete: summary: Delete a label tags: @@ -964,7 +964,7 @@ paths: content: application/json: schema: - $ref: '#/components/responses/autoMessageResponse' + $ref: '#/components/schemas/autoMessageResponse' /channels/{channelJid}/contacts: post: summary: Create a contact @@ -1213,7 +1213,7 @@ paths: content: application/json: schema: - $ref: '#/components/responses/commentResponse' + $ref: '#/components/schemas/commentResponse' /channels/{channelJid}/conversations/{contactJid}: get: summary: Read a conversation @@ -1326,7 +1326,7 @@ paths: schema: type: array items: - $ref: '#/components/responses/listResponse' + $ref: '#/components/schemas/listResponse' /channels/{channelJid}/lists/{listJid}/{contactJid}: post: summary: Add a contact to a list From 87c0d7a2bb3e9af5fe2b190dad3fed4ba7be5cb7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Radek=20Hol=C3=BD?= Date: Mon, 29 Nov 2021 22:58:48 +0100 Subject: [PATCH 09/18] Fix the path of GET https://api.cmd.tyntec.com/v3/keys/current --- third-party/eazy/v1/openapi.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/third-party/eazy/v1/openapi.yaml b/third-party/eazy/v1/openapi.yaml index 8ffc4f15..5418072d 100644 --- a/third-party/eazy/v1/openapi.yaml +++ b/third-party/eazy/v1/openapi.yaml @@ -324,7 +324,7 @@ paths: type: array items: $ref: '#/components/schemas/apiKeyResponse' - /keys/currrent: + /keys/current: get: summary: Current API key tags: From d429c59024283b021f09ccfadc5091d6060efa9b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Radek=20Hol=C3=BD?= Date: Tue, 7 Dec 2021 15:57:30 +0100 Subject: [PATCH 10/18] Fix the items of objects in apiKeyResponse --- third-party/eazy/v1/openapi.yaml | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/third-party/eazy/v1/openapi.yaml b/third-party/eazy/v1/openapi.yaml index 5418072d..f875cf8c 100644 --- a/third-party/eazy/v1/openapi.yaml +++ b/third-party/eazy/v1/openapi.yaml @@ -2319,12 +2319,10 @@ components: description: Array of objects. Check example on the right type: array items: - type: array - items: - type: string + type: object example: - - "'jid': '31612345678@tyntec.com'" - - "'type': 'CHANNEL'" + jid: '31612345678@tyntec.com' + type: 'CHANNEL' scope: description: The scope of this key type: string From fb4f1a79825ae9e0771ae6bd1db271284973d265 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Radek=20Hol=C3=BD?= Date: Tue, 7 Dec 2021 11:23:56 +0100 Subject: [PATCH 11/18] Fix link to Webhook Configuration in POST https://api.cmd.tyntec.com/v3/incoming --- third-party/eazy/v1/openapi.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/third-party/eazy/v1/openapi.yaml b/third-party/eazy/v1/openapi.yaml index f875cf8c..3deb2c0b 100644 --- a/third-party/eazy/v1/openapi.yaml +++ b/third-party/eazy/v1/openapi.yaml @@ -1541,7 +1541,7 @@ paths: - 'Messaging' description: | To receive messages, create an endpoint on your webserver that will be able to process POST requests - and subscribe its URL via [Webhook Configuration](#webhook-configuration) to the "message" events. + and subscribe its URL via [Webhook Configuration](#support-inbox-api-webhook-configuration) to the "message" events. **Note:** The path above is only an example, you may choose your URL freely. /channels/{channelJid}/contacts/{contactJid}/notes: From 782dd7c7d4e7b606d7dcc7006e2b54690a3912f0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Radek=20Hol=C3=BD?= Date: Tue, 7 Dec 2021 10:21:50 +0100 Subject: [PATCH 12/18] Fix the description of the location message in the Support Inbox API --- third-party/eazy/v1/openapi.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/third-party/eazy/v1/openapi.yaml b/third-party/eazy/v1/openapi.yaml index 3deb2c0b..2508a2d2 100644 --- a/third-party/eazy/v1/openapi.yaml +++ b/third-party/eazy/v1/openapi.yaml @@ -1450,8 +1450,8 @@ paths: | **Element** | **Value** | **Mandatory** | **Description** | | --- | --- | --- | --- | - | latitude | float Y | Latitude | coordinate | - | longitude | float Y | Longitude | coordinate | + | latitude | float | Y | Latitude coordinate | + | longitude | float | Y | Longitude coordinate | | name | string | N | Name of the location | | type | "location" | Y | Message type | | url | string | N | Website URL | From b1f5de696b3d98d113d842cdb44ca0d64561d172 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Radek=20Hol=C3=BD?= Date: Tue, 7 Dec 2021 11:49:21 +0100 Subject: [PATCH 13/18] Fix reference to response items of GET https://api.cmd.tyntec.com/v3/channels/{channelJid}/webhooks --- third-party/eazy/v1/openapi.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/third-party/eazy/v1/openapi.yaml b/third-party/eazy/v1/openapi.yaml index 2508a2d2..fdcf271c 100644 --- a/third-party/eazy/v1/openapi.yaml +++ b/third-party/eazy/v1/openapi.yaml @@ -2087,7 +2087,7 @@ paths: schema: type: array items: - $ref: '#/components/schemas/webhooksResponse' + $ref: '#/components/schemas/webhookResponse' post: summary: Create a webhook tags: From 0c067fe2dad65e3e8d9c00e62013fe069b88ac6c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Radek=20Hol=C3=BD?= Date: Tue, 7 Dec 2021 17:08:11 +0100 Subject: [PATCH 14/18] Fix the example of headers in webhookResponse --- third-party/eazy/v1/openapi.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/third-party/eazy/v1/openapi.yaml b/third-party/eazy/v1/openapi.yaml index fdcf271c..2dea8122 100644 --- a/third-party/eazy/v1/openapi.yaml +++ b/third-party/eazy/v1/openapi.yaml @@ -2699,8 +2699,8 @@ components: headers: description: Header parameters type: object - items: - example: "'Authorization': 'Bearer SomeApiKey'" + example: + Authorization: 'Bearer SomeApiKey' id: description: ID of the event type: string From a42accccd58bfa1ab26b5c8d5e5eec92625d4da9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Radek=20Hol=C3=BD?= Date: Mon, 6 Dec 2021 22:58:41 +0100 Subject: [PATCH 15/18] Fix reference to response items of GET https://api.cmd.tyntec.com/v3/channels/{channelJid}/qr-codes --- third-party/eazy/v1/openapi.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/third-party/eazy/v1/openapi.yaml b/third-party/eazy/v1/openapi.yaml index 2dea8122..8909b13c 100644 --- a/third-party/eazy/v1/openapi.yaml +++ b/third-party/eazy/v1/openapi.yaml @@ -1868,7 +1868,7 @@ paths: schema: type: array items: - $ref: '#/components/schemas/qrCodesResponse' + $ref: '#/components/schemas/qrCodeResponse' post: summary: Create a QR code tags: From 2b442a58614a47a7e5eddcc8d09375c29dbc1717 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Radek=20Hol=C3=BD?= Date: Mon, 6 Dec 2021 13:38:43 +0100 Subject: [PATCH 16/18] Fix the description of dataRetentionInDays in channelResponse --- third-party/eazy/v1/openapi.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/third-party/eazy/v1/openapi.yaml b/third-party/eazy/v1/openapi.yaml index 8909b13c..732f7068 100644 --- a/third-party/eazy/v1/openapi.yaml +++ b/third-party/eazy/v1/openapi.yaml @@ -2390,7 +2390,7 @@ components: type: object properties: dataRetentionInDays: - description: Body/text of the message + description: Data retention time in days type: integer example: 90 jid: From b72fa31ba09b4a4ade87b3297bd0865250c3fd39 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Radek=20Hol=C3=BD?= Date: Tue, 7 Dec 2021 00:00:18 +0100 Subject: [PATCH 17/18] Document items of names in contactResponse Co-authored-by: Martin <45198686+ridlees@users.noreply.github.com> --- third-party/eazy/v1/openapi.yaml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/third-party/eazy/v1/openapi.yaml b/third-party/eazy/v1/openapi.yaml index 732f7068..84673ded 100644 --- a/third-party/eazy/v1/openapi.yaml +++ b/third-party/eazy/v1/openapi.yaml @@ -2456,6 +2456,22 @@ components: description: Type of the contact type: string example: 'INDIVIDUAL' + name: + description: "The contact's name" + type: object + properties: + firstName: + description: "The contact's first name" + type: string + example: 'John' + fullName: + description: "The contact's full name" + type: string + example: 'John Doe' + lastName: + description: "The contact's last name" + type: string + example: 'Doe' conversationResponse: description: Conversation response type: object From e0a27bfa32ae02f90a44636b44315a0882eab225 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Radek=20Hol=C3=BD?= Date: Tue, 7 Dec 2021 00:27:46 +0100 Subject: [PATCH 18/18] Fix reference to response of GET https://api.cmd.tyntec.com/v3/channels/{channelJid}/contacts/blacklist --- third-party/eazy/v1/openapi.yaml | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/third-party/eazy/v1/openapi.yaml b/third-party/eazy/v1/openapi.yaml index 84673ded..92582452 100644 --- a/third-party/eazy/v1/openapi.yaml +++ b/third-party/eazy/v1/openapi.yaml @@ -2526,12 +2526,10 @@ components: description: Number of unread messages type: integer example: 5 - emailsResponse: - description: List all email addresses - type: array - items: - $ref: '#/components/schemas/email' - example: [jane@mycompany1.com, jo@mycompany1.com, john@company2.com] + email: + description: An email address + type: string + example: jane@mycompany1.com labelResponse: description: Single Label Response type: object