Skip to content

Commit 4568a55

Browse files
fern-supporteyw520
andauthored
Spec fixes for SingleFilterSearchRequest and CreateMessageRequest (#195)
* Spec fixes for `SingleFilterSearchRequest` and `CreateMessageRequest` * Switch type to string enum. * Update for contact company results. --------- Co-authored-by: eden <[email protected]>
1 parent 8e13db9 commit 4568a55

File tree

1 file changed

+63
-5
lines changed

1 file changed

+63
-5
lines changed

descriptions/2.11/api.intercom.io.yaml

Lines changed: 63 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12757,6 +12757,17 @@ components:
1275712757
description: An object containing companies meta data about the companies that
1275812758
a contact has. Up to 10 will be displayed here. Use the url to get more.
1275912759
properties:
12760+
type:
12761+
type: string
12762+
description: The type of object
12763+
enum:
12764+
- list
12765+
example: list
12766+
data:
12767+
type: array
12768+
description: An array containing Company Objects
12769+
items:
12770+
"$ref": "#/components/schemas/contact_company"
1276012771
url:
1276112772
type: string
1276212773
format: uri
@@ -12776,6 +12787,30 @@ components:
1277612787
- url
1277712788
- total_count
1277812789
- has_more
12790+
contact_company:
12791+
title: Contact company
12792+
type: object
12793+
description: A reference to a company associated with a contact
12794+
properties:
12795+
id:
12796+
type: string
12797+
description: The unique identifier for the company
12798+
example: "66e0800ad24ad5513b91014d"
12799+
type:
12800+
type: string
12801+
description: The type of the object
12802+
enum:
12803+
- company
12804+
example: company
12805+
url:
12806+
type: string
12807+
format: uri
12808+
description: URL to get the full company resource
12809+
example: "/companies/66e0800ad24ad5513b91014d"
12810+
required:
12811+
- id
12812+
- type
12813+
- url
1277912814
contact_deleted:
1278012815
title: Contact Deleted
1278112816
type: object
@@ -13627,6 +13662,17 @@ components:
1362713662
type: string
1362813663
description: This includes conversation, email, facebook, instagram, phone_call,
1362913664
phone_switch, push, sms, twitter and whatsapp.
13665+
enum:
13666+
- conversation
13667+
- email
13668+
- facebook
13669+
- instagram
13670+
- phone_call
13671+
- phone_switch
13672+
- push
13673+
- sms
13674+
- twitter
13675+
- whatsapp
1363013676
example: conversation
1363113677
id:
1363213678
type: string
@@ -14245,21 +14291,24 @@ components:
1424514291
properties:
1424614292
type:
1424714293
type: string
14248-
description: Always `admin`.
14294+
description: One of `lead`, `user`, `contact`, or `admin`.
1424914295
enum:
14296+
- lead
14297+
- user
14298+
- contact
1425014299
- admin
1425114300
example: admin
1425214301
id:
1425314302
type: integer
14254-
description: The identifier for the admin which is given by Intercom.
14303+
description: The identifier for the sender which is given by Intercom.
1425514304
example: 394051
1425614305
required:
1425714306
- type
1425814307
- id
1425914308
to:
1426014309
type: object
14261-
description: The sender of the message. If not provided, the default sender
14262-
will be used.
14310+
description: The recipient of the message. If not provided, the default
14311+
recipient will be used.
1426314312
properties:
1426414313
type:
1426514314
type: string
@@ -16288,9 +16337,18 @@ components:
1628816337
search for the value.
1628916338
example: ">"
1629016339
value:
16291-
type: string
16340+
oneOf:
16341+
- type: string
16342+
- type: integer
16343+
- type: array
16344+
items:
16345+
type: string
16346+
- type: array
16347+
items:
16348+
type: integer
1629216349
description: The value that you want to search on.
1629316350
example: '73732934'
16351+
nullable: true
1629416352
sla_applied:
1629516353
title: Applied SLA
1629616354
type: object

0 commit comments

Comments
 (0)