@crvouga/mockingbird-service-intercom 2.0.0 → 2.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +24 -4
- package/README.md +2 -0
- package/SUPPORT.md +5 -3
- package/dist/{chunk-DN7TMKH7.js → chunk-IIDVOJRZ.js} +2 -2
- package/dist/chunk-KJJGLX2U.js +5032 -0
- package/dist/chunk-KJJGLX2U.js.map +7 -0
- package/dist/cli.js +2 -2
- package/dist/index.d.ts +6 -4
- package/dist/index.js +1 -1
- package/dist/server.d.ts +2 -0
- package/dist/server.js +2 -2
- package/openapi.yaml +63 -0
- package/package.json +2 -2
- package/dist/chunk-DHV6Y6ZE.js +0 -7128
- package/dist/chunk-DHV6Y6ZE.js.map +0 -7
- /package/dist/{chunk-DN7TMKH7.js.map → chunk-IIDVOJRZ.js.map} +0 -0
package/dist/cli.js
CHANGED
package/dist/index.d.ts
CHANGED
|
@@ -1028,10 +1028,10 @@ type OpenAPIDocument = {
|
|
|
1028
1028
|
};
|
|
1029
1029
|
|
|
1030
1030
|
declare const document: OpenAPIDocument;
|
|
1031
|
-
type OperationId = "SearchContacts" | "CreateContact" | "GetContact" | "UpdateContact" | "CreateConversation" | "SearchConversations" | "GetConversation" | "UpdateConversation" | "ReplyConversation" | "ManageConversation" | "ListAdmins" | "GetMe";
|
|
1032
|
-
type SupportedOperationId = "SearchContacts" | "CreateContact" | "GetContact" | "UpdateContact" | "CreateConversation" | "SearchConversations" | "GetConversation" | "UpdateConversation" | "ReplyConversation" | "ManageConversation" | "ListAdmins" | "GetMe";
|
|
1033
|
-
declare const operationIds: readonly ["SearchContacts", "CreateContact", "GetContact", "UpdateContact", "CreateConversation", "SearchConversations", "GetConversation", "UpdateConversation", "ReplyConversation", "ManageConversation", "ListAdmins", "GetMe"];
|
|
1034
|
-
declare const supportedOperationIds: readonly ["SearchContacts", "CreateContact", "GetContact", "UpdateContact", "CreateConversation", "SearchConversations", "GetConversation", "UpdateConversation", "ReplyConversation", "ManageConversation", "ListAdmins", "GetMe"];
|
|
1031
|
+
type OperationId = "SearchContacts" | "ListContacts" | "CreateContact" | "GetContact" | "UpdateContact" | "ListConversations" | "CreateConversation" | "SearchConversations" | "GetConversation" | "UpdateConversation" | "ReplyConversation" | "ManageConversation" | "ListAdmins" | "GetMe";
|
|
1032
|
+
type SupportedOperationId = "SearchContacts" | "ListContacts" | "CreateContact" | "GetContact" | "UpdateContact" | "ListConversations" | "CreateConversation" | "SearchConversations" | "GetConversation" | "UpdateConversation" | "ReplyConversation" | "ManageConversation" | "ListAdmins" | "GetMe";
|
|
1033
|
+
declare const operationIds: readonly ["SearchContacts", "ListContacts", "CreateContact", "GetContact", "UpdateContact", "ListConversations", "CreateConversation", "SearchConversations", "GetConversation", "UpdateConversation", "ReplyConversation", "ManageConversation", "ListAdmins", "GetMe"];
|
|
1034
|
+
declare const supportedOperationIds: readonly ["SearchContacts", "ListContacts", "CreateContact", "GetContact", "UpdateContact", "ListConversations", "CreateConversation", "SearchConversations", "GetConversation", "UpdateConversation", "ReplyConversation", "ManageConversation", "ListAdmins", "GetMe"];
|
|
1035
1035
|
|
|
1036
1036
|
/**
|
|
1037
1037
|
* Intercom's search query language, shared by contact and conversation search: a filter
|
|
@@ -1227,6 +1227,8 @@ declare class IntercomAPI implements FetchAPI$1 {
|
|
|
1227
1227
|
};
|
|
1228
1228
|
private contactField;
|
|
1229
1229
|
private searchContacts;
|
|
1230
|
+
private listContacts;
|
|
1231
|
+
private listConversations;
|
|
1230
1232
|
private checkCustomAttributes;
|
|
1231
1233
|
/** The contact another contact's identifiers would collide with (users only). */
|
|
1232
1234
|
private duplicateOf;
|
package/dist/index.js
CHANGED
package/dist/server.d.ts
CHANGED
|
@@ -1577,6 +1577,8 @@ declare class IntercomAPI implements FetchAPI {
|
|
|
1577
1577
|
};
|
|
1578
1578
|
private contactField;
|
|
1579
1579
|
private searchContacts;
|
|
1580
|
+
private listContacts;
|
|
1581
|
+
private listConversations;
|
|
1580
1582
|
private checkCustomAttributes;
|
|
1581
1583
|
/** The contact another contact's identifiers would collide with (users only). */
|
|
1582
1584
|
private duplicateOf;
|
package/dist/server.js
CHANGED
package/openapi.yaml
CHANGED
|
@@ -49,6 +49,40 @@ paths:
|
|
|
49
49
|
"401":
|
|
50
50
|
$ref: "#/components/responses/Unauthorized"
|
|
51
51
|
/contacts:
|
|
52
|
+
get:
|
|
53
|
+
operationId: ListContacts
|
|
54
|
+
x-mockingbird:
|
|
55
|
+
supported: true
|
|
56
|
+
parity:
|
|
57
|
+
enabled: true
|
|
58
|
+
safe: true
|
|
59
|
+
parameters:
|
|
60
|
+
- name: per_page
|
|
61
|
+
in: query
|
|
62
|
+
schema:
|
|
63
|
+
type: integer
|
|
64
|
+
minimum: 1
|
|
65
|
+
maximum: 150
|
|
66
|
+
- name: starting_after
|
|
67
|
+
in: query
|
|
68
|
+
schema:
|
|
69
|
+
type: string
|
|
70
|
+
- name: page
|
|
71
|
+
in: query
|
|
72
|
+
schema:
|
|
73
|
+
type: integer
|
|
74
|
+
minimum: 1
|
|
75
|
+
responses:
|
|
76
|
+
"200":
|
|
77
|
+
description: Paginated collection
|
|
78
|
+
content:
|
|
79
|
+
application/json:
|
|
80
|
+
schema:
|
|
81
|
+
$ref: "#/components/schemas/ContactList"
|
|
82
|
+
"400":
|
|
83
|
+
$ref: "#/components/responses/BadRequest"
|
|
84
|
+
"401":
|
|
85
|
+
$ref: "#/components/responses/Unauthorized"
|
|
52
86
|
post:
|
|
53
87
|
operationId: CreateContact
|
|
54
88
|
x-mockingbird:
|
|
@@ -132,6 +166,35 @@ paths:
|
|
|
132
166
|
"409":
|
|
133
167
|
$ref: "#/components/responses/Conflict"
|
|
134
168
|
/conversations:
|
|
169
|
+
get:
|
|
170
|
+
operationId: ListConversations
|
|
171
|
+
x-mockingbird:
|
|
172
|
+
supported: true
|
|
173
|
+
parity:
|
|
174
|
+
enabled: true
|
|
175
|
+
safe: true
|
|
176
|
+
parameters:
|
|
177
|
+
- name: per_page
|
|
178
|
+
in: query
|
|
179
|
+
schema:
|
|
180
|
+
type: integer
|
|
181
|
+
minimum: 1
|
|
182
|
+
maximum: 150
|
|
183
|
+
- name: starting_after
|
|
184
|
+
in: query
|
|
185
|
+
schema:
|
|
186
|
+
type: string
|
|
187
|
+
responses:
|
|
188
|
+
"200":
|
|
189
|
+
description: Paginated collection
|
|
190
|
+
content:
|
|
191
|
+
application/json:
|
|
192
|
+
schema:
|
|
193
|
+
$ref: "#/components/schemas/ConversationList"
|
|
194
|
+
"400":
|
|
195
|
+
$ref: "#/components/responses/BadRequest"
|
|
196
|
+
"401":
|
|
197
|
+
$ref: "#/components/responses/Unauthorized"
|
|
135
198
|
post:
|
|
136
199
|
operationId: CreateConversation
|
|
137
200
|
description: A contact-initiated conversation. An optional `Idempotency-Key` header replays.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@crvouga/mockingbird-service-intercom",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.2.0",
|
|
4
4
|
"description": "Stateful mock of the Intercom REST API 2.11: contacts (search, create with 409 on duplicates, update, get), conversations (create with Idempotency-Key, reply as JSON or multipart, close/open, get, cursor search), admins, and X-Hub-Signature-signed admin reply/close/open webhooks.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -96,7 +96,7 @@
|
|
|
96
96
|
"pack:check": "bun ../../../scripts/pack-check.ts"
|
|
97
97
|
},
|
|
98
98
|
"dependencies": {
|
|
99
|
-
"@crvouga/mockingbird-service-sqlite": "2.
|
|
99
|
+
"@crvouga/mockingbird-service-sqlite": "2.1.0",
|
|
100
100
|
"hono": "4.11.9"
|
|
101
101
|
},
|
|
102
102
|
"devDependencies": {
|