@wildix/xbees-conversations-client 1.4.0 → 1.5.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/dist-cjs/models/models_0.js +45 -32
- package/dist-cjs/protocols/Aws_restJson1.js +18 -0
- package/dist-es/models/models_0.js +41 -29
- package/dist-es/protocols/Aws_restJson1.js +19 -1
- package/dist-types/commands/AddChannelMemberCommand.d.ts +7 -1
- package/dist-types/commands/AddChannelMembersCommand.d.ts +11 -1
- package/dist-types/commands/InviteCommand.d.ts +9 -0
- package/dist-types/models/models_0.d.ts +75 -34
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.MessageActionNotFoundException = exports.TaggedChannelsLimitReachedException = exports.SystemMessage = exports.ConversationsServiceException = exports.PinnedChannelsLimitReachedException = exports.MessageUnsetFields = exports.GroupChannelUnsetOptions = exports.MarkUnreadChannelsLimitReachedException = exports.TagNotFoundException = exports.TriggerNotFoundException = exports.WebhookEventType = exports.ReactionType = exports.MessageNotFoundException = exports.MemberNotFoundException = exports.
|
|
3
|
+
exports.MessageActionNotFoundException = exports.TaggedChannelsLimitReachedException = exports.SystemMessage = exports.ConversationsServiceException = exports.PinnedChannelsLimitReachedException = exports.MessageUnsetFields = exports.GroupChannelUnsetOptions = exports.MarkUnreadChannelsLimitReachedException = exports.TagNotFoundException = exports.TriggerNotFoundException = exports.WebhookEventType = exports.ReactionType = exports.MessageNotFoundException = exports.MemberNotFoundException = exports.TagsLimitReachedException = exports.GroupChannelCreationEventType = exports.ChannelAlreadyExistException = exports.AssignChannelVariant = exports.AssignChannelServiceRequest = exports.AssignChannelAssigneeRequest = exports.MemberDeactivatedException = exports.MemberAlreadyExistException = exports.ChannelNotFoundException = exports.ChannelMemberRole = exports.ActionTriggerStatus = exports.FileNotFoundException = exports.ConversationFileCategory = exports.MessageWhatsAppStatus = exports.MessageType = exports.MessageSmsStatus = exports.Element = exports.ActionElement = exports.ButtonVariant = exports.ButtonHandler = exports.ChannelWhatsAppStatus = exports.ChannelContextSource = exports.ChannelContextEventAttendeeStatus = exports.ChannelType = exports.ChannelAccess = exports.TargetNotFoundException = exports.TargetNotEligibleException = exports.TargetNotEligibleReason = exports.ValidationException = exports.RateLimitExceededException = exports.ForbiddenException = void 0;
|
|
4
4
|
const ConversationsServiceException_1 = require("./ConversationsServiceException");
|
|
5
5
|
class ForbiddenException extends ConversationsServiceException_1.ConversationsServiceException {
|
|
6
6
|
name = "ForbiddenException";
|
|
@@ -49,6 +49,37 @@ class ValidationException extends ConversationsServiceException_1.ConversationsS
|
|
|
49
49
|
}
|
|
50
50
|
}
|
|
51
51
|
exports.ValidationException = ValidationException;
|
|
52
|
+
exports.TargetNotEligibleReason = {
|
|
53
|
+
NO_LICENSE: "no_license",
|
|
54
|
+
};
|
|
55
|
+
class TargetNotEligibleException extends ConversationsServiceException_1.ConversationsServiceException {
|
|
56
|
+
name = "TargetNotEligibleException";
|
|
57
|
+
$fault = "client";
|
|
58
|
+
reason;
|
|
59
|
+
constructor(opts) {
|
|
60
|
+
super({
|
|
61
|
+
name: "TargetNotEligibleException",
|
|
62
|
+
$fault: "client",
|
|
63
|
+
...opts
|
|
64
|
+
});
|
|
65
|
+
Object.setPrototypeOf(this, TargetNotEligibleException.prototype);
|
|
66
|
+
this.reason = opts.reason;
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
exports.TargetNotEligibleException = TargetNotEligibleException;
|
|
70
|
+
class TargetNotFoundException extends ConversationsServiceException_1.ConversationsServiceException {
|
|
71
|
+
name = "TargetNotFoundException";
|
|
72
|
+
$fault = "client";
|
|
73
|
+
constructor(opts) {
|
|
74
|
+
super({
|
|
75
|
+
name: "TargetNotFoundException",
|
|
76
|
+
$fault: "client",
|
|
77
|
+
...opts
|
|
78
|
+
});
|
|
79
|
+
Object.setPrototypeOf(this, TargetNotFoundException.prototype);
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
exports.TargetNotFoundException = TargetNotFoundException;
|
|
52
83
|
exports.ChannelAccess = {
|
|
53
84
|
PRIVATE: "private",
|
|
54
85
|
PUBLIC: "public",
|
|
@@ -172,6 +203,19 @@ class MemberAlreadyExistException extends ConversationsServiceException_1.Conver
|
|
|
172
203
|
}
|
|
173
204
|
}
|
|
174
205
|
exports.MemberAlreadyExistException = MemberAlreadyExistException;
|
|
206
|
+
class MemberDeactivatedException extends ConversationsServiceException_1.ConversationsServiceException {
|
|
207
|
+
name = "MemberDeactivatedException";
|
|
208
|
+
$fault = "client";
|
|
209
|
+
constructor(opts) {
|
|
210
|
+
super({
|
|
211
|
+
name: "MemberDeactivatedException",
|
|
212
|
+
$fault: "client",
|
|
213
|
+
...opts
|
|
214
|
+
});
|
|
215
|
+
Object.setPrototypeOf(this, MemberDeactivatedException.prototype);
|
|
216
|
+
}
|
|
217
|
+
}
|
|
218
|
+
exports.MemberDeactivatedException = MemberDeactivatedException;
|
|
175
219
|
var AssignChannelAssigneeRequest;
|
|
176
220
|
(function (AssignChannelAssigneeRequest) {
|
|
177
221
|
AssignChannelAssigneeRequest.visit = (value, visitor) => {
|
|
@@ -226,37 +270,6 @@ class TagsLimitReachedException extends ConversationsServiceException_1.Conversa
|
|
|
226
270
|
}
|
|
227
271
|
}
|
|
228
272
|
exports.TagsLimitReachedException = TagsLimitReachedException;
|
|
229
|
-
exports.TargetNotEligibleReason = {
|
|
230
|
-
NO_LICENSE: "no_license",
|
|
231
|
-
};
|
|
232
|
-
class TargetNotEligibleException extends ConversationsServiceException_1.ConversationsServiceException {
|
|
233
|
-
name = "TargetNotEligibleException";
|
|
234
|
-
$fault = "client";
|
|
235
|
-
reason;
|
|
236
|
-
constructor(opts) {
|
|
237
|
-
super({
|
|
238
|
-
name: "TargetNotEligibleException",
|
|
239
|
-
$fault: "client",
|
|
240
|
-
...opts
|
|
241
|
-
});
|
|
242
|
-
Object.setPrototypeOf(this, TargetNotEligibleException.prototype);
|
|
243
|
-
this.reason = opts.reason;
|
|
244
|
-
}
|
|
245
|
-
}
|
|
246
|
-
exports.TargetNotEligibleException = TargetNotEligibleException;
|
|
247
|
-
class TargetNotFoundException extends ConversationsServiceException_1.ConversationsServiceException {
|
|
248
|
-
name = "TargetNotFoundException";
|
|
249
|
-
$fault = "client";
|
|
250
|
-
constructor(opts) {
|
|
251
|
-
super({
|
|
252
|
-
name: "TargetNotFoundException",
|
|
253
|
-
$fault: "client",
|
|
254
|
-
...opts
|
|
255
|
-
});
|
|
256
|
-
Object.setPrototypeOf(this, TargetNotFoundException.prototype);
|
|
257
|
-
}
|
|
258
|
-
}
|
|
259
|
-
exports.TargetNotFoundException = TargetNotFoundException;
|
|
260
273
|
class MemberNotFoundException extends ConversationsServiceException_1.ConversationsServiceException {
|
|
261
274
|
name = "MemberNotFoundException";
|
|
262
275
|
$fault = "client";
|
|
@@ -1318,6 +1318,7 @@ const de_AddChannelMembersCommand = async (output, context) => {
|
|
|
1318
1318
|
const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
|
|
1319
1319
|
const doc = (0, smithy_client_1.take)(data, {
|
|
1320
1320
|
'members': smithy_client_1._json,
|
|
1321
|
+
'skippedMembers': smithy_client_1._json,
|
|
1321
1322
|
'users': smithy_client_1._json,
|
|
1322
1323
|
});
|
|
1323
1324
|
Object.assign(contents, doc);
|
|
@@ -1728,6 +1729,7 @@ const de_InviteCommand = async (output, context) => {
|
|
|
1728
1729
|
});
|
|
1729
1730
|
const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
|
|
1730
1731
|
const doc = (0, smithy_client_1.take)(data, {
|
|
1732
|
+
'skippedInvitees': smithy_client_1._json,
|
|
1731
1733
|
'users': smithy_client_1._json,
|
|
1732
1734
|
});
|
|
1733
1735
|
Object.assign(contents, doc);
|
|
@@ -2217,6 +2219,9 @@ const de_CommandError = async (output, context) => {
|
|
|
2217
2219
|
case "MemberAlreadyExistException":
|
|
2218
2220
|
case "wildix.xbees.conversations#MemberAlreadyExistException":
|
|
2219
2221
|
throw await de_MemberAlreadyExistExceptionRes(parsedOutput, context);
|
|
2222
|
+
case "MemberDeactivatedException":
|
|
2223
|
+
case "wildix.xbees.conversations#MemberDeactivatedException":
|
|
2224
|
+
throw await de_MemberDeactivatedExceptionRes(parsedOutput, context);
|
|
2220
2225
|
case "RateLimitExceededException":
|
|
2221
2226
|
case "smithy.framework#RateLimitExceededException":
|
|
2222
2227
|
throw await de_RateLimitExceededExceptionRes(parsedOutput, context);
|
|
@@ -2397,6 +2402,19 @@ const de_MemberAlreadyExistExceptionRes = async (parsedOutput, context) => {
|
|
|
2397
2402
|
});
|
|
2398
2403
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
2399
2404
|
};
|
|
2405
|
+
const de_MemberDeactivatedExceptionRes = async (parsedOutput, context) => {
|
|
2406
|
+
const contents = (0, smithy_client_1.map)({});
|
|
2407
|
+
const data = parsedOutput.body;
|
|
2408
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
2409
|
+
'message': smithy_client_1.expectString,
|
|
2410
|
+
});
|
|
2411
|
+
Object.assign(contents, doc);
|
|
2412
|
+
const exception = new models_0_1.MemberDeactivatedException({
|
|
2413
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
2414
|
+
...contents
|
|
2415
|
+
});
|
|
2416
|
+
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
2417
|
+
};
|
|
2400
2418
|
const de_MemberNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
2401
2419
|
const contents = (0, smithy_client_1.map)({});
|
|
2402
2420
|
const data = parsedOutput.body;
|
|
@@ -43,6 +43,35 @@ export class ValidationException extends __BaseException {
|
|
|
43
43
|
Object.setPrototypeOf(this, ValidationException.prototype);
|
|
44
44
|
}
|
|
45
45
|
}
|
|
46
|
+
export const TargetNotEligibleReason = {
|
|
47
|
+
NO_LICENSE: "no_license",
|
|
48
|
+
};
|
|
49
|
+
export class TargetNotEligibleException extends __BaseException {
|
|
50
|
+
name = "TargetNotEligibleException";
|
|
51
|
+
$fault = "client";
|
|
52
|
+
reason;
|
|
53
|
+
constructor(opts) {
|
|
54
|
+
super({
|
|
55
|
+
name: "TargetNotEligibleException",
|
|
56
|
+
$fault: "client",
|
|
57
|
+
...opts
|
|
58
|
+
});
|
|
59
|
+
Object.setPrototypeOf(this, TargetNotEligibleException.prototype);
|
|
60
|
+
this.reason = opts.reason;
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
export class TargetNotFoundException extends __BaseException {
|
|
64
|
+
name = "TargetNotFoundException";
|
|
65
|
+
$fault = "client";
|
|
66
|
+
constructor(opts) {
|
|
67
|
+
super({
|
|
68
|
+
name: "TargetNotFoundException",
|
|
69
|
+
$fault: "client",
|
|
70
|
+
...opts
|
|
71
|
+
});
|
|
72
|
+
Object.setPrototypeOf(this, TargetNotFoundException.prototype);
|
|
73
|
+
}
|
|
74
|
+
}
|
|
46
75
|
export const ChannelAccess = {
|
|
47
76
|
PRIVATE: "private",
|
|
48
77
|
PUBLIC: "public",
|
|
@@ -163,6 +192,18 @@ export class MemberAlreadyExistException extends __BaseException {
|
|
|
163
192
|
Object.setPrototypeOf(this, MemberAlreadyExistException.prototype);
|
|
164
193
|
}
|
|
165
194
|
}
|
|
195
|
+
export class MemberDeactivatedException extends __BaseException {
|
|
196
|
+
name = "MemberDeactivatedException";
|
|
197
|
+
$fault = "client";
|
|
198
|
+
constructor(opts) {
|
|
199
|
+
super({
|
|
200
|
+
name: "MemberDeactivatedException",
|
|
201
|
+
$fault: "client",
|
|
202
|
+
...opts
|
|
203
|
+
});
|
|
204
|
+
Object.setPrototypeOf(this, MemberDeactivatedException.prototype);
|
|
205
|
+
}
|
|
206
|
+
}
|
|
166
207
|
export var AssignChannelAssigneeRequest;
|
|
167
208
|
(function (AssignChannelAssigneeRequest) {
|
|
168
209
|
AssignChannelAssigneeRequest.visit = (value, visitor) => {
|
|
@@ -215,35 +256,6 @@ export class TagsLimitReachedException extends __BaseException {
|
|
|
215
256
|
Object.setPrototypeOf(this, TagsLimitReachedException.prototype);
|
|
216
257
|
}
|
|
217
258
|
}
|
|
218
|
-
export const TargetNotEligibleReason = {
|
|
219
|
-
NO_LICENSE: "no_license",
|
|
220
|
-
};
|
|
221
|
-
export class TargetNotEligibleException extends __BaseException {
|
|
222
|
-
name = "TargetNotEligibleException";
|
|
223
|
-
$fault = "client";
|
|
224
|
-
reason;
|
|
225
|
-
constructor(opts) {
|
|
226
|
-
super({
|
|
227
|
-
name: "TargetNotEligibleException",
|
|
228
|
-
$fault: "client",
|
|
229
|
-
...opts
|
|
230
|
-
});
|
|
231
|
-
Object.setPrototypeOf(this, TargetNotEligibleException.prototype);
|
|
232
|
-
this.reason = opts.reason;
|
|
233
|
-
}
|
|
234
|
-
}
|
|
235
|
-
export class TargetNotFoundException extends __BaseException {
|
|
236
|
-
name = "TargetNotFoundException";
|
|
237
|
-
$fault = "client";
|
|
238
|
-
constructor(opts) {
|
|
239
|
-
super({
|
|
240
|
-
name: "TargetNotFoundException",
|
|
241
|
-
$fault: "client",
|
|
242
|
-
...opts
|
|
243
|
-
});
|
|
244
|
-
Object.setPrototypeOf(this, TargetNotFoundException.prototype);
|
|
245
|
-
}
|
|
246
|
-
}
|
|
247
259
|
export class MemberNotFoundException extends __BaseException {
|
|
248
260
|
name = "MemberNotFoundException";
|
|
249
261
|
$fault = "client";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ConversationsServiceException as __BaseException } from "../models/ConversationsServiceException";
|
|
2
|
-
import { ChannelAlreadyExistException, ChannelNotFoundException, ConversationsServiceException, FileNotFoundException, ForbiddenException, MarkUnreadChannelsLimitReachedException, MemberAlreadyExistException, MemberNotFoundException, MessageActionNotFoundException, MessageNotFoundException, PinnedChannelsLimitReachedException, RateLimitExceededException, TagNotFoundException, TaggedChannelsLimitReachedException, TagsLimitReachedException, TargetNotEligibleException, TargetNotFoundException, TriggerNotFoundException, ValidationException, } from "../models/models_0";
|
|
2
|
+
import { ChannelAlreadyExistException, ChannelNotFoundException, ConversationsServiceException, FileNotFoundException, ForbiddenException, MarkUnreadChannelsLimitReachedException, MemberAlreadyExistException, MemberDeactivatedException, MemberNotFoundException, MessageActionNotFoundException, MessageNotFoundException, PinnedChannelsLimitReachedException, RateLimitExceededException, TagNotFoundException, TaggedChannelsLimitReachedException, TagsLimitReachedException, TargetNotEligibleException, TargetNotFoundException, TriggerNotFoundException, ValidationException, } from "../models/models_0";
|
|
3
3
|
import { loadRestJsonErrorCode, parseJsonBody as parseBody, parseJsonErrorBody as parseErrorBody, } from "@aws-sdk/core";
|
|
4
4
|
import { requestBuilder as rb } from "@smithy/core";
|
|
5
5
|
import { decorateServiceException as __decorateServiceException, expectInt32 as __expectInt32, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, strictParseInt32 as __strictParseInt32, _json, collectBody, map, take, withBaseException, } from "@smithy/smithy-client";
|
|
@@ -1247,6 +1247,7 @@ export const de_AddChannelMembersCommand = async (output, context) => {
|
|
|
1247
1247
|
const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
|
|
1248
1248
|
const doc = take(data, {
|
|
1249
1249
|
'members': _json,
|
|
1250
|
+
'skippedMembers': _json,
|
|
1250
1251
|
'users': _json,
|
|
1251
1252
|
});
|
|
1252
1253
|
Object.assign(contents, doc);
|
|
@@ -1629,6 +1630,7 @@ export const de_InviteCommand = async (output, context) => {
|
|
|
1629
1630
|
});
|
|
1630
1631
|
const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
|
|
1631
1632
|
const doc = take(data, {
|
|
1633
|
+
'skippedInvitees': _json,
|
|
1632
1634
|
'users': _json,
|
|
1633
1635
|
});
|
|
1634
1636
|
Object.assign(contents, doc);
|
|
@@ -2082,6 +2084,9 @@ const de_CommandError = async (output, context) => {
|
|
|
2082
2084
|
case "MemberAlreadyExistException":
|
|
2083
2085
|
case "wildix.xbees.conversations#MemberAlreadyExistException":
|
|
2084
2086
|
throw await de_MemberAlreadyExistExceptionRes(parsedOutput, context);
|
|
2087
|
+
case "MemberDeactivatedException":
|
|
2088
|
+
case "wildix.xbees.conversations#MemberDeactivatedException":
|
|
2089
|
+
throw await de_MemberDeactivatedExceptionRes(parsedOutput, context);
|
|
2085
2090
|
case "RateLimitExceededException":
|
|
2086
2091
|
case "smithy.framework#RateLimitExceededException":
|
|
2087
2092
|
throw await de_RateLimitExceededExceptionRes(parsedOutput, context);
|
|
@@ -2262,6 +2267,19 @@ const de_MemberAlreadyExistExceptionRes = async (parsedOutput, context) => {
|
|
|
2262
2267
|
});
|
|
2263
2268
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
2264
2269
|
};
|
|
2270
|
+
const de_MemberDeactivatedExceptionRes = async (parsedOutput, context) => {
|
|
2271
|
+
const contents = map({});
|
|
2272
|
+
const data = parsedOutput.body;
|
|
2273
|
+
const doc = take(data, {
|
|
2274
|
+
'message': __expectString,
|
|
2275
|
+
});
|
|
2276
|
+
Object.assign(contents, doc);
|
|
2277
|
+
const exception = new MemberDeactivatedException({
|
|
2278
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
2279
|
+
...contents
|
|
2280
|
+
});
|
|
2281
|
+
return __decorateServiceException(exception, parsedOutput.body);
|
|
2282
|
+
};
|
|
2265
2283
|
const de_MemberNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
2266
2284
|
const contents = map({});
|
|
2267
2285
|
const data = parsedOutput.body;
|
|
@@ -27,7 +27,11 @@ declare const AddChannelMemberCommand_base: {
|
|
|
27
27
|
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
28
28
|
};
|
|
29
29
|
/**
|
|
30
|
-
* Adds a single member to an existing channel.
|
|
30
|
+
* Adds a single member to an existing channel.
|
|
31
|
+
* This operation will either add an existing user or invite a new user to the channel.
|
|
32
|
+
* This operation is idempotent, meaning that if the member already exists, the operation will still return a successful response.
|
|
33
|
+
* If the specified member cannot be added because the account is deactivated in GetStream, the operation fails with `MemberDeactivatedException`.
|
|
34
|
+
*
|
|
31
35
|
* @example
|
|
32
36
|
* Use a bare-bones client and the command you need to make an API call.
|
|
33
37
|
* ```javascript
|
|
@@ -88,6 +92,8 @@ declare const AddChannelMemberCommand_base: {
|
|
|
88
92
|
*
|
|
89
93
|
* @throws {@link MemberAlreadyExistException} (client fault)
|
|
90
94
|
*
|
|
95
|
+
* @throws {@link MemberDeactivatedException} (client fault)
|
|
96
|
+
*
|
|
91
97
|
* @throws {@link ValidationException} (client fault)
|
|
92
98
|
*
|
|
93
99
|
* @throws {@link ForbiddenException} (client fault)
|
|
@@ -27,7 +27,10 @@ declare const AddChannelMembersCommand_base: {
|
|
|
27
27
|
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
28
28
|
};
|
|
29
29
|
/**
|
|
30
|
-
* Adds members to an existing channel.
|
|
30
|
+
* Adds members to an existing channel.
|
|
31
|
+
* This operation is idempotent, meaning that if a member already exists in the channel, the operation will still return a successful response.
|
|
32
|
+
* If some members cannot be added because their accounts are deactivated in GetStream, the operation still succeeds for the rest and returns skipped members in the response.
|
|
33
|
+
*
|
|
31
34
|
* @example
|
|
32
35
|
* Use a bare-bones client and the command you need to make an API call.
|
|
33
36
|
* ```javascript
|
|
@@ -83,6 +86,13 @@ declare const AddChannelMembersCommand_base: {
|
|
|
83
86
|
* // updatedAt: "STRING_VALUE",
|
|
84
87
|
* // },
|
|
85
88
|
* // ],
|
|
89
|
+
* // skippedMembers: [ // SkippedMembersList // required
|
|
90
|
+
* // { // SkippedMember
|
|
91
|
+
* // id: "STRING_VALUE",
|
|
92
|
+
* // email: "STRING_VALUE",
|
|
93
|
+
* // phone: "STRING_VALUE",
|
|
94
|
+
* // },
|
|
95
|
+
* // ],
|
|
86
96
|
* // };
|
|
87
97
|
*
|
|
88
98
|
* ```
|
|
@@ -28,6 +28,8 @@ declare const InviteCommand_base: {
|
|
|
28
28
|
};
|
|
29
29
|
/**
|
|
30
30
|
* Invite a list of users to x-bees. This operation creates an account for specified emails or phone numbers. Use this method to create users who can be added to conversations later.
|
|
31
|
+
* If an invitee resolves to an account that is currently deactivated in GetStream, the operation does not fail; instead, that invitee is reported in `skippedInvitees` and is not included in `users`.
|
|
32
|
+
*
|
|
31
33
|
*
|
|
32
34
|
* @deprecated Use InviteCommand from xbees-users-client instead.
|
|
33
35
|
* @example
|
|
@@ -71,6 +73,13 @@ declare const InviteCommand_base: {
|
|
|
71
73
|
* // updatedAt: "STRING_VALUE",
|
|
72
74
|
* // },
|
|
73
75
|
* // ],
|
|
76
|
+
* // skippedInvitees: [ // SkippedMembersList // required
|
|
77
|
+
* // { // SkippedMember
|
|
78
|
+
* // id: "STRING_VALUE",
|
|
79
|
+
* // email: "STRING_VALUE",
|
|
80
|
+
* // phone: "STRING_VALUE",
|
|
81
|
+
* // },
|
|
82
|
+
* // ],
|
|
74
83
|
* // };
|
|
75
84
|
*
|
|
76
85
|
* ```
|
|
@@ -67,6 +67,40 @@ export interface TemplateWithParameters {
|
|
|
67
67
|
name: string;
|
|
68
68
|
parameters?: (TemplateParameter)[] | undefined;
|
|
69
69
|
}
|
|
70
|
+
/**
|
|
71
|
+
* @public
|
|
72
|
+
* @enum
|
|
73
|
+
*/
|
|
74
|
+
export declare const TargetNotEligibleReason: {
|
|
75
|
+
readonly NO_LICENSE: "no_license";
|
|
76
|
+
};
|
|
77
|
+
/**
|
|
78
|
+
* @public
|
|
79
|
+
*/
|
|
80
|
+
export type TargetNotEligibleReason = typeof TargetNotEligibleReason[keyof typeof TargetNotEligibleReason];
|
|
81
|
+
/**
|
|
82
|
+
* @public
|
|
83
|
+
*/
|
|
84
|
+
export declare class TargetNotEligibleException extends __BaseException {
|
|
85
|
+
readonly name: "TargetNotEligibleException";
|
|
86
|
+
readonly $fault: "client";
|
|
87
|
+
reason?: TargetNotEligibleReason | undefined;
|
|
88
|
+
/**
|
|
89
|
+
* @internal
|
|
90
|
+
*/
|
|
91
|
+
constructor(opts: __ExceptionOptionType<TargetNotEligibleException, __BaseException>);
|
|
92
|
+
}
|
|
93
|
+
/**
|
|
94
|
+
* @public
|
|
95
|
+
*/
|
|
96
|
+
export declare class TargetNotFoundException extends __BaseException {
|
|
97
|
+
readonly name: "TargetNotFoundException";
|
|
98
|
+
readonly $fault: "client";
|
|
99
|
+
/**
|
|
100
|
+
* @internal
|
|
101
|
+
*/
|
|
102
|
+
constructor(opts: __ExceptionOptionType<TargetNotFoundException, __BaseException>);
|
|
103
|
+
}
|
|
70
104
|
/**
|
|
71
105
|
* @public
|
|
72
106
|
* @enum
|
|
@@ -676,6 +710,17 @@ export declare class MemberAlreadyExistException extends __BaseException {
|
|
|
676
710
|
*/
|
|
677
711
|
constructor(opts: __ExceptionOptionType<MemberAlreadyExistException, __BaseException>);
|
|
678
712
|
}
|
|
713
|
+
/**
|
|
714
|
+
* @public
|
|
715
|
+
*/
|
|
716
|
+
export declare class MemberDeactivatedException extends __BaseException {
|
|
717
|
+
readonly name: "MemberDeactivatedException";
|
|
718
|
+
readonly $fault: "client";
|
|
719
|
+
/**
|
|
720
|
+
* @internal
|
|
721
|
+
*/
|
|
722
|
+
constructor(opts: __ExceptionOptionType<MemberDeactivatedException, __BaseException>);
|
|
723
|
+
}
|
|
679
724
|
/**
|
|
680
725
|
* @public
|
|
681
726
|
*/
|
|
@@ -716,6 +761,26 @@ export interface AddChannelMembersInput {
|
|
|
716
761
|
*/
|
|
717
762
|
unreadMessageId?: string | undefined;
|
|
718
763
|
}
|
|
764
|
+
/**
|
|
765
|
+
* @public
|
|
766
|
+
*/
|
|
767
|
+
export interface SkippedMember {
|
|
768
|
+
/**
|
|
769
|
+
* The unique identifier of the skipped user if it is known.
|
|
770
|
+
* @public
|
|
771
|
+
*/
|
|
772
|
+
id?: string | undefined;
|
|
773
|
+
/**
|
|
774
|
+
* The email address of the skipped user if it is known.
|
|
775
|
+
* @public
|
|
776
|
+
*/
|
|
777
|
+
email?: string | undefined;
|
|
778
|
+
/**
|
|
779
|
+
* The phone number of the skipped user if it is known.
|
|
780
|
+
* @public
|
|
781
|
+
*/
|
|
782
|
+
phone?: string | undefined;
|
|
783
|
+
}
|
|
719
784
|
/**
|
|
720
785
|
* @public
|
|
721
786
|
*/
|
|
@@ -730,6 +795,11 @@ export interface AddChannelMembersOutput {
|
|
|
730
795
|
* @public
|
|
731
796
|
*/
|
|
732
797
|
users: (User)[];
|
|
798
|
+
/**
|
|
799
|
+
* The list of users skipped during the operation, for example because they are deactivated in GetStream.
|
|
800
|
+
* @public
|
|
801
|
+
*/
|
|
802
|
+
skippedMembers: (SkippedMember)[];
|
|
733
803
|
}
|
|
734
804
|
/**
|
|
735
805
|
* @public
|
|
@@ -1176,40 +1246,6 @@ export interface CreateKiteChannelInput {
|
|
|
1176
1246
|
export interface CreateKiteChannelOutput {
|
|
1177
1247
|
channel: Channel;
|
|
1178
1248
|
}
|
|
1179
|
-
/**
|
|
1180
|
-
* @public
|
|
1181
|
-
* @enum
|
|
1182
|
-
*/
|
|
1183
|
-
export declare const TargetNotEligibleReason: {
|
|
1184
|
-
readonly NO_LICENSE: "no_license";
|
|
1185
|
-
};
|
|
1186
|
-
/**
|
|
1187
|
-
* @public
|
|
1188
|
-
*/
|
|
1189
|
-
export type TargetNotEligibleReason = typeof TargetNotEligibleReason[keyof typeof TargetNotEligibleReason];
|
|
1190
|
-
/**
|
|
1191
|
-
* @public
|
|
1192
|
-
*/
|
|
1193
|
-
export declare class TargetNotEligibleException extends __BaseException {
|
|
1194
|
-
readonly name: "TargetNotEligibleException";
|
|
1195
|
-
readonly $fault: "client";
|
|
1196
|
-
reason?: TargetNotEligibleReason | undefined;
|
|
1197
|
-
/**
|
|
1198
|
-
* @internal
|
|
1199
|
-
*/
|
|
1200
|
-
constructor(opts: __ExceptionOptionType<TargetNotEligibleException, __BaseException>);
|
|
1201
|
-
}
|
|
1202
|
-
/**
|
|
1203
|
-
* @public
|
|
1204
|
-
*/
|
|
1205
|
-
export declare class TargetNotFoundException extends __BaseException {
|
|
1206
|
-
readonly name: "TargetNotFoundException";
|
|
1207
|
-
readonly $fault: "client";
|
|
1208
|
-
/**
|
|
1209
|
-
* @internal
|
|
1210
|
-
*/
|
|
1211
|
-
constructor(opts: __ExceptionOptionType<TargetNotFoundException, __BaseException>);
|
|
1212
|
-
}
|
|
1213
1249
|
/**
|
|
1214
1250
|
* @public
|
|
1215
1251
|
*/
|
|
@@ -2115,6 +2151,11 @@ export interface InviteOutput {
|
|
|
2115
2151
|
* @public
|
|
2116
2152
|
*/
|
|
2117
2153
|
users: (User)[];
|
|
2154
|
+
/**
|
|
2155
|
+
* A list of invitees that were skipped during the operation, for example because the resolved account is deactivated in GetStream. Each entry carries the email or phone supplied in the request, and the user id when it was already known.
|
|
2156
|
+
* @public
|
|
2157
|
+
*/
|
|
2158
|
+
skippedInvitees: (SkippedMember)[];
|
|
2118
2159
|
}
|
|
2119
2160
|
/**
|
|
2120
2161
|
* @public
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wildix/xbees-conversations-client",
|
|
3
3
|
"description": "@wildix/xbees-conversations-client client",
|
|
4
|
-
"version": "1.
|
|
4
|
+
"version": "1.5.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "tsc -p tsconfig.cjs.json",
|