@skravets/eapi 0.0.1 → 0.0.2
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/dist/api-types.d.cts +295 -172
- package/dist/api-types.d.ts +295 -172
- package/dist/index.cjs +111 -88
- package/dist/index.d.cts +103 -61
- package/dist/index.d.ts +103 -61
- package/dist/index.js +111 -88
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -88,62 +88,86 @@ class EApi {
|
|
|
88
88
|
*/
|
|
89
89
|
app = {
|
|
90
90
|
/**
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
91
|
+
*
|
|
92
|
+
*
|
|
93
|
+
* @tags App
|
|
94
|
+
* @summary Get Hello World!
|
|
95
|
+
*
|
|
96
|
+
* [Documentation](.../App/operation/app.getHello)
|
|
97
|
+
*/
|
|
98
98
|
getHello: (options) => {
|
|
99
99
|
return this.request(`/`, void 0, { method: "GET", ...options });
|
|
100
100
|
}
|
|
101
101
|
};
|
|
102
102
|
/**
|
|
103
|
-
* @tags
|
|
103
|
+
* @tags chats
|
|
104
104
|
*/
|
|
105
|
-
|
|
105
|
+
chats = {
|
|
106
106
|
/**
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
107
|
+
*
|
|
108
|
+
*
|
|
109
|
+
* @tags chats
|
|
110
|
+
* @summary Get Hello World!
|
|
111
|
+
*
|
|
112
|
+
* [Documentation](.../chats/operation/channels.getHello)
|
|
113
|
+
*/
|
|
114
114
|
getHello: (options) => {
|
|
115
|
-
return this.request(`/
|
|
116
|
-
method: "GET",
|
|
117
|
-
...options
|
|
118
|
-
});
|
|
115
|
+
return this.request(`/chats`, void 0, { method: "GET", ...options });
|
|
119
116
|
},
|
|
120
117
|
/**
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
getLastMessage: (
|
|
129
|
-
return this.request(`/
|
|
130
|
-
method: "GET",
|
|
131
|
-
...options
|
|
132
|
-
});
|
|
118
|
+
*
|
|
119
|
+
*
|
|
120
|
+
* @tags chats
|
|
121
|
+
* @summary Get last channel message
|
|
122
|
+
*
|
|
123
|
+
* [Documentation](.../chats/operation/channels.getLastMessage)
|
|
124
|
+
*/
|
|
125
|
+
getLastMessage: (chat, options) => {
|
|
126
|
+
return this.request(`/chats/${chat}/last-message`, void 0, { method: "GET", ...options });
|
|
133
127
|
},
|
|
134
128
|
/**
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
getMessages: (
|
|
143
|
-
return this.request(`/
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
129
|
+
*
|
|
130
|
+
*
|
|
131
|
+
* @tags chats
|
|
132
|
+
* @summary Get chat messages
|
|
133
|
+
*
|
|
134
|
+
* [Documentation](.../chats/operation/chats.getMessages)
|
|
135
|
+
*/
|
|
136
|
+
getMessages: (chat, body, options) => {
|
|
137
|
+
return this.request(`/chats/${chat}/new-messages`, body, { method: "POST", ...options });
|
|
138
|
+
},
|
|
139
|
+
/**
|
|
140
|
+
*
|
|
141
|
+
*
|
|
142
|
+
* @tags chats
|
|
143
|
+
* @summary Queue chat
|
|
144
|
+
*
|
|
145
|
+
* [Documentation](.../chats/operation/chats.queue)
|
|
146
|
+
*/
|
|
147
|
+
queue: (externalId, chat, options) => {
|
|
148
|
+
return this.request(`/chats/${chat}/queue/${externalId}`, void 0, { method: "POST", ...options });
|
|
149
|
+
},
|
|
150
|
+
/**
|
|
151
|
+
*
|
|
152
|
+
*
|
|
153
|
+
* @tags chats
|
|
154
|
+
* @summary Add task to join chat
|
|
155
|
+
*
|
|
156
|
+
* [Documentation](.../chats/operation/chats.join)
|
|
157
|
+
*/
|
|
158
|
+
join: (externalId, chat, options) => {
|
|
159
|
+
return this.request(`/chats/${chat}/join/${externalId}`, void 0, { method: "POST", ...options });
|
|
160
|
+
},
|
|
161
|
+
/**
|
|
162
|
+
*
|
|
163
|
+
*
|
|
164
|
+
* @tags chats
|
|
165
|
+
* @summary Add task to send message
|
|
166
|
+
*
|
|
167
|
+
* [Documentation](.../chats/operation/chats.send)
|
|
168
|
+
*/
|
|
169
|
+
send: (externalId, chat, body, options) => {
|
|
170
|
+
return this.request(`/chats/${chat}/send/${externalId}`, body, { method: "POST", ...options });
|
|
147
171
|
}
|
|
148
172
|
};
|
|
149
173
|
/**
|
|
@@ -151,60 +175,59 @@ class EApi {
|
|
|
151
175
|
*/
|
|
152
176
|
subscriptions = {
|
|
153
177
|
/**
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
178
|
+
*
|
|
179
|
+
*
|
|
180
|
+
* @tags Subscriptions
|
|
181
|
+
* @summary Create subscription
|
|
182
|
+
*
|
|
183
|
+
* [Documentation](.../Subscriptions/operation/subscriptions.create)
|
|
184
|
+
*/
|
|
161
185
|
create: (body, options) => {
|
|
162
|
-
return this.request(`/subscriptions`, body, {
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
186
|
+
return this.request(`/subscriptions`, body, { method: "POST", ...options });
|
|
187
|
+
},
|
|
188
|
+
/**
|
|
189
|
+
*
|
|
190
|
+
*
|
|
191
|
+
* @tags Subscriptions
|
|
192
|
+
* @summary Upsert subscription
|
|
193
|
+
*
|
|
194
|
+
* [Documentation](.../Subscriptions/operation/subscriptions.upsert)
|
|
195
|
+
*/
|
|
196
|
+
upsert: (body, options) => {
|
|
197
|
+
return this.request(`/subscriptions`, body, { method: "PUT", ...options });
|
|
166
198
|
},
|
|
167
199
|
/**
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
200
|
+
*
|
|
201
|
+
*
|
|
202
|
+
* @tags Subscriptions
|
|
203
|
+
* @summary Get subscription by subscription id
|
|
204
|
+
*
|
|
205
|
+
* [Documentation](.../Subscriptions/operation/subscriptions.getById)
|
|
206
|
+
*/
|
|
175
207
|
getById: (subId, options) => {
|
|
176
|
-
return this.request(`/subscriptions/${subId}`, void 0, {
|
|
177
|
-
method: "GET",
|
|
178
|
-
...options
|
|
179
|
-
});
|
|
208
|
+
return this.request(`/subscriptions/${subId}`, void 0, { method: "GET", ...options });
|
|
180
209
|
},
|
|
181
210
|
/**
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
211
|
+
*
|
|
212
|
+
*
|
|
213
|
+
* @tags Subscriptions
|
|
214
|
+
* @summary Update subscription by subscription id
|
|
215
|
+
*
|
|
216
|
+
* [Documentation](.../Subscriptions/operation/subscriptions.update)
|
|
217
|
+
*/
|
|
189
218
|
update: (subId, body, options) => {
|
|
190
|
-
return this.request(`/subscriptions/${subId}`, body, {
|
|
191
|
-
method: "PUT",
|
|
192
|
-
...options
|
|
193
|
-
});
|
|
219
|
+
return this.request(`/subscriptions/${subId}`, body, { method: "PUT", ...options });
|
|
194
220
|
},
|
|
195
221
|
/**
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
222
|
+
*
|
|
223
|
+
*
|
|
224
|
+
* @tags Subscriptions
|
|
225
|
+
* @summary Delete subscription by subscription id
|
|
226
|
+
*
|
|
227
|
+
* [Documentation](.../Subscriptions/operation/subscriptions.delete)
|
|
228
|
+
*/
|
|
203
229
|
delete: (subId, options) => {
|
|
204
|
-
return this.request(`/subscriptions/${subId}`, void 0, {
|
|
205
|
-
method: "DELETE",
|
|
206
|
-
...options
|
|
207
|
-
});
|
|
230
|
+
return this.request(`/subscriptions/${subId}`, void 0, { method: "DELETE", ...options });
|
|
208
231
|
}
|
|
209
232
|
};
|
|
210
233
|
/** @generated stop-generate-methods */
|
package/dist/index.d.cts
CHANGED
|
@@ -50,6 +50,9 @@ interface MessageStored {
|
|
|
50
50
|
}
|
|
51
51
|
interface PublishersStatusQueueInputChatParsed {
|
|
52
52
|
chat: ChatStored;
|
|
53
|
+
metadata?: {
|
|
54
|
+
externalId?: string;
|
|
55
|
+
};
|
|
53
56
|
}
|
|
54
57
|
interface ChatParsedTyped extends PublishersStatusQueueInputChatParsed {
|
|
55
58
|
type: "chat_parsed";
|
|
@@ -65,6 +68,9 @@ interface PublishersStatusQueueInputMessagesParsed {
|
|
|
65
68
|
plannedEnd: number;
|
|
66
69
|
};
|
|
67
70
|
messages: MessageStored[];
|
|
71
|
+
metadata?: {
|
|
72
|
+
externalId?: string;
|
|
73
|
+
};
|
|
68
74
|
}
|
|
69
75
|
interface MessagesParsedTyped extends PublishersStatusQueueInputMessagesParsed {
|
|
70
76
|
type: "messages_parsed";
|
|
@@ -142,86 +148,122 @@ declare class EApi {
|
|
|
142
148
|
*/
|
|
143
149
|
app: {
|
|
144
150
|
/**
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
151
|
+
*
|
|
152
|
+
*
|
|
153
|
+
* @tags App
|
|
154
|
+
* @summary Get Hello World!
|
|
155
|
+
*
|
|
156
|
+
* [Documentation](.../App/operation/app.getHello)
|
|
157
|
+
*/
|
|
152
158
|
getHello: (options?: RequestOptions) => Promise<GetResponse<"/", "get">>;
|
|
153
159
|
};
|
|
154
160
|
/**
|
|
155
|
-
* @tags
|
|
161
|
+
* @tags chats
|
|
156
162
|
*/
|
|
157
|
-
|
|
163
|
+
chats: {
|
|
164
|
+
/**
|
|
165
|
+
*
|
|
166
|
+
*
|
|
167
|
+
* @tags chats
|
|
168
|
+
* @summary Get Hello World!
|
|
169
|
+
*
|
|
170
|
+
* [Documentation](.../chats/operation/channels.getHello)
|
|
171
|
+
*/
|
|
172
|
+
getHello: (options?: RequestOptions) => Promise<GetResponse<"/chats", "get">>;
|
|
158
173
|
/**
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
174
|
+
*
|
|
175
|
+
*
|
|
176
|
+
* @tags chats
|
|
177
|
+
* @summary Get last channel message
|
|
178
|
+
*
|
|
179
|
+
* [Documentation](.../chats/operation/channels.getLastMessage)
|
|
180
|
+
*/
|
|
181
|
+
getLastMessage: (chat: paths["/chats/{chat}/last-message"]["get"]["parameters"]["path"]["chat"], options?: RequestOptions) => Promise<GetResponse<"/chats/{chat}/last-message", "get">>;
|
|
167
182
|
/**
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
183
|
+
*
|
|
184
|
+
*
|
|
185
|
+
* @tags chats
|
|
186
|
+
* @summary Get chat messages
|
|
187
|
+
*
|
|
188
|
+
* [Documentation](.../chats/operation/chats.getMessages)
|
|
189
|
+
*/
|
|
190
|
+
getMessages: (chat: paths["/chats/{chat}/new-messages"]["post"]["parameters"]["path"]["chat"], body: GetRequestBody<"/chats/{chat}/new-messages", "post">, options?: RequestOptions) => Promise<GetResponse<"/chats/{chat}/new-messages", "post">>;
|
|
176
191
|
/**
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
192
|
+
*
|
|
193
|
+
*
|
|
194
|
+
* @tags chats
|
|
195
|
+
* @summary Queue chat
|
|
196
|
+
*
|
|
197
|
+
* [Documentation](.../chats/operation/chats.queue)
|
|
198
|
+
*/
|
|
199
|
+
queue: (externalId: paths["/chats/{chat}/queue/{externalId}"]["post"]["parameters"]["path"]["externalId"], chat: paths["/chats/{chat}/queue/{externalId}"]["post"]["parameters"]["path"]["chat"], options?: RequestOptions) => Promise<GetResponse<"/chats/{chat}/queue/{externalId}", "post">>;
|
|
200
|
+
/**
|
|
201
|
+
*
|
|
202
|
+
*
|
|
203
|
+
* @tags chats
|
|
204
|
+
* @summary Add task to join chat
|
|
205
|
+
*
|
|
206
|
+
* [Documentation](.../chats/operation/chats.join)
|
|
207
|
+
*/
|
|
208
|
+
join: (externalId: paths["/chats/{chat}/join/{externalId}"]["post"]["parameters"]["path"]["externalId"], chat: paths["/chats/{chat}/join/{externalId}"]["post"]["parameters"]["path"]["chat"], options?: RequestOptions) => Promise<GetResponse<"/chats/{chat}/join/{externalId}", "post">>;
|
|
209
|
+
/**
|
|
210
|
+
*
|
|
211
|
+
*
|
|
212
|
+
* @tags chats
|
|
213
|
+
* @summary Add task to send message
|
|
214
|
+
*
|
|
215
|
+
* [Documentation](.../chats/operation/chats.send)
|
|
216
|
+
*/
|
|
217
|
+
send: (externalId: paths["/chats/{chat}/send/{externalId}"]["post"]["parameters"]["path"]["externalId"], chat: paths["/chats/{chat}/send/{externalId}"]["post"]["parameters"]["path"]["chat"], body: GetRequestBody<"/chats/{chat}/send/{externalId}", "post">, options?: RequestOptions) => Promise<GetResponse<"/chats/{chat}/send/{externalId}", "post">>;
|
|
185
218
|
};
|
|
186
219
|
/**
|
|
187
220
|
* @tags subscriptions
|
|
188
221
|
*/
|
|
189
222
|
subscriptions: {
|
|
190
223
|
/**
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
224
|
+
*
|
|
225
|
+
*
|
|
226
|
+
* @tags Subscriptions
|
|
227
|
+
* @summary Create subscription
|
|
228
|
+
*
|
|
229
|
+
* [Documentation](.../Subscriptions/operation/subscriptions.create)
|
|
230
|
+
*/
|
|
198
231
|
create: (body: GetRequestBody<"/subscriptions", "post">, options?: RequestOptions) => Promise<GetResponse<"/subscriptions", "post">>;
|
|
199
232
|
/**
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
233
|
+
*
|
|
234
|
+
*
|
|
235
|
+
* @tags Subscriptions
|
|
236
|
+
* @summary Upsert subscription
|
|
237
|
+
*
|
|
238
|
+
* [Documentation](.../Subscriptions/operation/subscriptions.upsert)
|
|
239
|
+
*/
|
|
240
|
+
upsert: (body: GetRequestBody<"/subscriptions", "put">, options?: RequestOptions) => Promise<GetResponse<"/subscriptions", "put">>;
|
|
241
|
+
/**
|
|
242
|
+
*
|
|
243
|
+
*
|
|
244
|
+
* @tags Subscriptions
|
|
245
|
+
* @summary Get subscription by subscription id
|
|
246
|
+
*
|
|
247
|
+
* [Documentation](.../Subscriptions/operation/subscriptions.getById)
|
|
248
|
+
*/
|
|
207
249
|
getById: (subId: paths["/subscriptions/{subId}"]["get"]["parameters"]["path"]["subId"], options?: RequestOptions) => Promise<GetResponse<"/subscriptions/{subId}", "get">>;
|
|
208
250
|
/**
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
251
|
+
*
|
|
252
|
+
*
|
|
253
|
+
* @tags Subscriptions
|
|
254
|
+
* @summary Update subscription by subscription id
|
|
255
|
+
*
|
|
256
|
+
* [Documentation](.../Subscriptions/operation/subscriptions.update)
|
|
257
|
+
*/
|
|
216
258
|
update: (subId: paths["/subscriptions/{subId}"]["put"]["parameters"]["path"]["subId"], body: GetRequestBody<"/subscriptions/{subId}", "put">, options?: RequestOptions) => Promise<GetResponse<"/subscriptions/{subId}", "put">>;
|
|
217
259
|
/**
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
260
|
+
*
|
|
261
|
+
*
|
|
262
|
+
* @tags Subscriptions
|
|
263
|
+
* @summary Delete subscription by subscription id
|
|
264
|
+
*
|
|
265
|
+
* [Documentation](.../Subscriptions/operation/subscriptions.delete)
|
|
266
|
+
*/
|
|
225
267
|
delete: (subId: paths["/subscriptions/{subId}"]["delete"]["parameters"]["path"]["subId"], options?: RequestOptions) => Promise<GetResponse<"/subscriptions/{subId}", "delete">>;
|
|
226
268
|
};
|
|
227
269
|
}
|
package/dist/index.d.ts
CHANGED
|
@@ -50,6 +50,9 @@ interface MessageStored {
|
|
|
50
50
|
}
|
|
51
51
|
interface PublishersStatusQueueInputChatParsed {
|
|
52
52
|
chat: ChatStored;
|
|
53
|
+
metadata?: {
|
|
54
|
+
externalId?: string;
|
|
55
|
+
};
|
|
53
56
|
}
|
|
54
57
|
interface ChatParsedTyped extends PublishersStatusQueueInputChatParsed {
|
|
55
58
|
type: "chat_parsed";
|
|
@@ -65,6 +68,9 @@ interface PublishersStatusQueueInputMessagesParsed {
|
|
|
65
68
|
plannedEnd: number;
|
|
66
69
|
};
|
|
67
70
|
messages: MessageStored[];
|
|
71
|
+
metadata?: {
|
|
72
|
+
externalId?: string;
|
|
73
|
+
};
|
|
68
74
|
}
|
|
69
75
|
interface MessagesParsedTyped extends PublishersStatusQueueInputMessagesParsed {
|
|
70
76
|
type: "messages_parsed";
|
|
@@ -142,86 +148,122 @@ declare class EApi {
|
|
|
142
148
|
*/
|
|
143
149
|
app: {
|
|
144
150
|
/**
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
151
|
+
*
|
|
152
|
+
*
|
|
153
|
+
* @tags App
|
|
154
|
+
* @summary Get Hello World!
|
|
155
|
+
*
|
|
156
|
+
* [Documentation](.../App/operation/app.getHello)
|
|
157
|
+
*/
|
|
152
158
|
getHello: (options?: RequestOptions) => Promise<GetResponse<"/", "get">>;
|
|
153
159
|
};
|
|
154
160
|
/**
|
|
155
|
-
* @tags
|
|
161
|
+
* @tags chats
|
|
156
162
|
*/
|
|
157
|
-
|
|
163
|
+
chats: {
|
|
164
|
+
/**
|
|
165
|
+
*
|
|
166
|
+
*
|
|
167
|
+
* @tags chats
|
|
168
|
+
* @summary Get Hello World!
|
|
169
|
+
*
|
|
170
|
+
* [Documentation](.../chats/operation/channels.getHello)
|
|
171
|
+
*/
|
|
172
|
+
getHello: (options?: RequestOptions) => Promise<GetResponse<"/chats", "get">>;
|
|
158
173
|
/**
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
174
|
+
*
|
|
175
|
+
*
|
|
176
|
+
* @tags chats
|
|
177
|
+
* @summary Get last channel message
|
|
178
|
+
*
|
|
179
|
+
* [Documentation](.../chats/operation/channels.getLastMessage)
|
|
180
|
+
*/
|
|
181
|
+
getLastMessage: (chat: paths["/chats/{chat}/last-message"]["get"]["parameters"]["path"]["chat"], options?: RequestOptions) => Promise<GetResponse<"/chats/{chat}/last-message", "get">>;
|
|
167
182
|
/**
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
183
|
+
*
|
|
184
|
+
*
|
|
185
|
+
* @tags chats
|
|
186
|
+
* @summary Get chat messages
|
|
187
|
+
*
|
|
188
|
+
* [Documentation](.../chats/operation/chats.getMessages)
|
|
189
|
+
*/
|
|
190
|
+
getMessages: (chat: paths["/chats/{chat}/new-messages"]["post"]["parameters"]["path"]["chat"], body: GetRequestBody<"/chats/{chat}/new-messages", "post">, options?: RequestOptions) => Promise<GetResponse<"/chats/{chat}/new-messages", "post">>;
|
|
176
191
|
/**
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
192
|
+
*
|
|
193
|
+
*
|
|
194
|
+
* @tags chats
|
|
195
|
+
* @summary Queue chat
|
|
196
|
+
*
|
|
197
|
+
* [Documentation](.../chats/operation/chats.queue)
|
|
198
|
+
*/
|
|
199
|
+
queue: (externalId: paths["/chats/{chat}/queue/{externalId}"]["post"]["parameters"]["path"]["externalId"], chat: paths["/chats/{chat}/queue/{externalId}"]["post"]["parameters"]["path"]["chat"], options?: RequestOptions) => Promise<GetResponse<"/chats/{chat}/queue/{externalId}", "post">>;
|
|
200
|
+
/**
|
|
201
|
+
*
|
|
202
|
+
*
|
|
203
|
+
* @tags chats
|
|
204
|
+
* @summary Add task to join chat
|
|
205
|
+
*
|
|
206
|
+
* [Documentation](.../chats/operation/chats.join)
|
|
207
|
+
*/
|
|
208
|
+
join: (externalId: paths["/chats/{chat}/join/{externalId}"]["post"]["parameters"]["path"]["externalId"], chat: paths["/chats/{chat}/join/{externalId}"]["post"]["parameters"]["path"]["chat"], options?: RequestOptions) => Promise<GetResponse<"/chats/{chat}/join/{externalId}", "post">>;
|
|
209
|
+
/**
|
|
210
|
+
*
|
|
211
|
+
*
|
|
212
|
+
* @tags chats
|
|
213
|
+
* @summary Add task to send message
|
|
214
|
+
*
|
|
215
|
+
* [Documentation](.../chats/operation/chats.send)
|
|
216
|
+
*/
|
|
217
|
+
send: (externalId: paths["/chats/{chat}/send/{externalId}"]["post"]["parameters"]["path"]["externalId"], chat: paths["/chats/{chat}/send/{externalId}"]["post"]["parameters"]["path"]["chat"], body: GetRequestBody<"/chats/{chat}/send/{externalId}", "post">, options?: RequestOptions) => Promise<GetResponse<"/chats/{chat}/send/{externalId}", "post">>;
|
|
185
218
|
};
|
|
186
219
|
/**
|
|
187
220
|
* @tags subscriptions
|
|
188
221
|
*/
|
|
189
222
|
subscriptions: {
|
|
190
223
|
/**
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
224
|
+
*
|
|
225
|
+
*
|
|
226
|
+
* @tags Subscriptions
|
|
227
|
+
* @summary Create subscription
|
|
228
|
+
*
|
|
229
|
+
* [Documentation](.../Subscriptions/operation/subscriptions.create)
|
|
230
|
+
*/
|
|
198
231
|
create: (body: GetRequestBody<"/subscriptions", "post">, options?: RequestOptions) => Promise<GetResponse<"/subscriptions", "post">>;
|
|
199
232
|
/**
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
233
|
+
*
|
|
234
|
+
*
|
|
235
|
+
* @tags Subscriptions
|
|
236
|
+
* @summary Upsert subscription
|
|
237
|
+
*
|
|
238
|
+
* [Documentation](.../Subscriptions/operation/subscriptions.upsert)
|
|
239
|
+
*/
|
|
240
|
+
upsert: (body: GetRequestBody<"/subscriptions", "put">, options?: RequestOptions) => Promise<GetResponse<"/subscriptions", "put">>;
|
|
241
|
+
/**
|
|
242
|
+
*
|
|
243
|
+
*
|
|
244
|
+
* @tags Subscriptions
|
|
245
|
+
* @summary Get subscription by subscription id
|
|
246
|
+
*
|
|
247
|
+
* [Documentation](.../Subscriptions/operation/subscriptions.getById)
|
|
248
|
+
*/
|
|
207
249
|
getById: (subId: paths["/subscriptions/{subId}"]["get"]["parameters"]["path"]["subId"], options?: RequestOptions) => Promise<GetResponse<"/subscriptions/{subId}", "get">>;
|
|
208
250
|
/**
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
251
|
+
*
|
|
252
|
+
*
|
|
253
|
+
* @tags Subscriptions
|
|
254
|
+
* @summary Update subscription by subscription id
|
|
255
|
+
*
|
|
256
|
+
* [Documentation](.../Subscriptions/operation/subscriptions.update)
|
|
257
|
+
*/
|
|
216
258
|
update: (subId: paths["/subscriptions/{subId}"]["put"]["parameters"]["path"]["subId"], body: GetRequestBody<"/subscriptions/{subId}", "put">, options?: RequestOptions) => Promise<GetResponse<"/subscriptions/{subId}", "put">>;
|
|
217
259
|
/**
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
260
|
+
*
|
|
261
|
+
*
|
|
262
|
+
* @tags Subscriptions
|
|
263
|
+
* @summary Delete subscription by subscription id
|
|
264
|
+
*
|
|
265
|
+
* [Documentation](.../Subscriptions/operation/subscriptions.delete)
|
|
266
|
+
*/
|
|
225
267
|
delete: (subId: paths["/subscriptions/{subId}"]["delete"]["parameters"]["path"]["subId"], options?: RequestOptions) => Promise<GetResponse<"/subscriptions/{subId}", "delete">>;
|
|
226
268
|
};
|
|
227
269
|
}
|