@connectedxm/admin-sdk 7.0.7 → 7.0.9

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/esm/api.d.ts CHANGED
@@ -394,6 +394,14 @@ export interface AddOrganizationUser200Response {
394
394
  export declare enum AddOrganizationUser200ResponseStatusEnum {
395
395
  Ok = "ok"
396
396
  }
397
+ export interface AddThreadAccounts200Response {
398
+ 'status': AddThreadAccounts200ResponseStatusEnum;
399
+ 'message': string;
400
+ 'data': Array<ThreadAccount>;
401
+ }
402
+ export declare enum AddThreadAccounts200ResponseStatusEnum {
403
+ Ok = "ok"
404
+ }
397
405
  export interface AdminNotification {
398
406
  'id': string;
399
407
  'supportTicketId': string | null;
@@ -12141,6 +12149,9 @@ export interface ThreadAccountUpdateInputs {
12141
12149
  'notifications'?: boolean;
12142
12150
  'blocked'?: boolean;
12143
12151
  }
12152
+ export interface ThreadAccountsAddInputs {
12153
+ 'accountIds': Array<string>;
12154
+ }
12144
12155
  export interface ThreadAllOfCount {
12145
12156
  'messages'?: number;
12146
12157
  }
@@ -79302,15 +79313,24 @@ export declare class ThreadsApi extends BaseAPI {
79302
79313
  * ThreadsAccountsApi - axios parameter creator
79303
79314
  */
79304
79315
  export declare const ThreadsAccountsApiAxiosParamCreator: (configuration?: Configuration) => {
79316
+ /**
79317
+ * Add Thread Accounts endpoint
79318
+ * @summary Add Thread Accounts
79319
+ * @param {string} threadId The thread identifier
79320
+ * @param {ThreadAccountsAddInputs} threadAccountsAddInputs
79321
+ * @param {*} [options] Override http request option.
79322
+ * @throws {RequiredError}
79323
+ */
79324
+ addThreadAccounts: (threadId: string, threadAccountsAddInputs: ThreadAccountsAddInputs, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
79305
79325
  /**
79306
79326
  * Delete Thread Account endpoint
79307
79327
  * @summary Delete Thread Account
79308
79328
  * @param {string} threadId The thread identifier
79309
- * @param {string} accountId The account identifier
79329
+ * @param {string} threadAccountId The threadAccount identifier
79310
79330
  * @param {*} [options] Override http request option.
79311
79331
  * @throws {RequiredError}
79312
79332
  */
79313
- deleteThreadAccount: (threadId: string, accountId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
79333
+ deleteThreadAccount: (threadId: string, threadAccountId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
79314
79334
  /**
79315
79335
  * Get Thread Accounts endpoint
79316
79336
  * @summary Get Thread Accounts
@@ -79327,26 +79347,35 @@ export declare const ThreadsAccountsApiAxiosParamCreator: (configuration?: Confi
79327
79347
  * Update Thread Account endpoint
79328
79348
  * @summary Update Thread Account
79329
79349
  * @param {string} threadId The thread identifier
79330
- * @param {string} accountId The account identifier
79350
+ * @param {string} threadAccountId The threadAccount identifier
79331
79351
  * @param {ThreadAccountUpdateInputs} threadAccountUpdateInputs
79332
79352
  * @param {*} [options] Override http request option.
79333
79353
  * @throws {RequiredError}
79334
79354
  */
79335
- updateThreadAccount: (threadId: string, accountId: string, threadAccountUpdateInputs: ThreadAccountUpdateInputs, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
79355
+ updateThreadAccount: (threadId: string, threadAccountId: string, threadAccountUpdateInputs: ThreadAccountUpdateInputs, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
79336
79356
  };
79337
79357
  /**
79338
79358
  * ThreadsAccountsApi - functional programming interface
79339
79359
  */
79340
79360
  export declare const ThreadsAccountsApiFp: (configuration?: Configuration) => {
79361
+ /**
79362
+ * Add Thread Accounts endpoint
79363
+ * @summary Add Thread Accounts
79364
+ * @param {string} threadId The thread identifier
79365
+ * @param {ThreadAccountsAddInputs} threadAccountsAddInputs
79366
+ * @param {*} [options] Override http request option.
79367
+ * @throws {RequiredError}
79368
+ */
79369
+ addThreadAccounts(threadId: string, threadAccountsAddInputs: ThreadAccountsAddInputs, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AddThreadAccounts200Response>>;
79341
79370
  /**
79342
79371
  * Delete Thread Account endpoint
79343
79372
  * @summary Delete Thread Account
79344
79373
  * @param {string} threadId The thread identifier
79345
- * @param {string} accountId The account identifier
79374
+ * @param {string} threadAccountId The threadAccount identifier
79346
79375
  * @param {*} [options] Override http request option.
79347
79376
  * @throws {RequiredError}
79348
79377
  */
79349
- deleteThreadAccount(threadId: string, accountId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateAccountInvitations200Response>>;
79378
+ deleteThreadAccount(threadId: string, threadAccountId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateAccountInvitations200Response>>;
79350
79379
  /**
79351
79380
  * Get Thread Accounts endpoint
79352
79381
  * @summary Get Thread Accounts
@@ -79363,17 +79392,25 @@ export declare const ThreadsAccountsApiFp: (configuration?: Configuration) => {
79363
79392
  * Update Thread Account endpoint
79364
79393
  * @summary Update Thread Account
79365
79394
  * @param {string} threadId The thread identifier
79366
- * @param {string} accountId The account identifier
79395
+ * @param {string} threadAccountId The threadAccount identifier
79367
79396
  * @param {ThreadAccountUpdateInputs} threadAccountUpdateInputs
79368
79397
  * @param {*} [options] Override http request option.
79369
79398
  * @throws {RequiredError}
79370
79399
  */
79371
- updateThreadAccount(threadId: string, accountId: string, threadAccountUpdateInputs: ThreadAccountUpdateInputs, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UpdateThreadAccount200Response>>;
79400
+ updateThreadAccount(threadId: string, threadAccountId: string, threadAccountUpdateInputs: ThreadAccountUpdateInputs, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UpdateThreadAccount200Response>>;
79372
79401
  };
79373
79402
  /**
79374
79403
  * ThreadsAccountsApi - factory interface
79375
79404
  */
79376
79405
  export declare const ThreadsAccountsApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
79406
+ /**
79407
+ * Add Thread Accounts endpoint
79408
+ * @summary Add Thread Accounts
79409
+ * @param {ThreadsAccountsApiAddThreadAccountsRequest} requestParameters Request parameters.
79410
+ * @param {*} [options] Override http request option.
79411
+ * @throws {RequiredError}
79412
+ */
79413
+ addThreadAccounts(requestParameters: ThreadsAccountsApiAddThreadAccountsRequest, options?: RawAxiosRequestConfig): AxiosPromise<AddThreadAccounts200Response>;
79377
79414
  /**
79378
79415
  * Delete Thread Account endpoint
79379
79416
  * @summary Delete Thread Account
@@ -79399,6 +79436,16 @@ export declare const ThreadsAccountsApiFactory: (configuration?: Configuration,
79399
79436
  */
79400
79437
  updateThreadAccount(requestParameters: ThreadsAccountsApiUpdateThreadAccountRequest, options?: RawAxiosRequestConfig): AxiosPromise<UpdateThreadAccount200Response>;
79401
79438
  };
79439
+ /**
79440
+ * Request parameters for addThreadAccounts operation in ThreadsAccountsApi.
79441
+ */
79442
+ export interface ThreadsAccountsApiAddThreadAccountsRequest {
79443
+ /**
79444
+ * The thread identifier
79445
+ */
79446
+ readonly threadId: string;
79447
+ readonly threadAccountsAddInputs: ThreadAccountsAddInputs;
79448
+ }
79402
79449
  /**
79403
79450
  * Request parameters for deleteThreadAccount operation in ThreadsAccountsApi.
79404
79451
  */
@@ -79408,9 +79455,9 @@ export interface ThreadsAccountsApiDeleteThreadAccountRequest {
79408
79455
  */
79409
79456
  readonly threadId: string;
79410
79457
  /**
79411
- * The account identifier
79458
+ * The threadAccount identifier
79412
79459
  */
79413
- readonly accountId: string;
79460
+ readonly threadAccountId: string;
79414
79461
  }
79415
79462
  /**
79416
79463
  * Request parameters for getThreadAccounts operation in ThreadsAccountsApi.
@@ -79446,15 +79493,23 @@ export interface ThreadsAccountsApiUpdateThreadAccountRequest {
79446
79493
  */
79447
79494
  readonly threadId: string;
79448
79495
  /**
79449
- * The account identifier
79496
+ * The threadAccount identifier
79450
79497
  */
79451
- readonly accountId: string;
79498
+ readonly threadAccountId: string;
79452
79499
  readonly threadAccountUpdateInputs: ThreadAccountUpdateInputs;
79453
79500
  }
79454
79501
  /**
79455
79502
  * ThreadsAccountsApi - object-oriented interface
79456
79503
  */
79457
79504
  export declare class ThreadsAccountsApi extends BaseAPI {
79505
+ /**
79506
+ * Add Thread Accounts endpoint
79507
+ * @summary Add Thread Accounts
79508
+ * @param {ThreadsAccountsApiAddThreadAccountsRequest} requestParameters Request parameters.
79509
+ * @param {*} [options] Override http request option.
79510
+ * @throws {RequiredError}
79511
+ */
79512
+ addThreadAccounts(requestParameters: ThreadsAccountsApiAddThreadAccountsRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<AddThreadAccounts200Response, any, {}>>;
79458
79513
  /**
79459
79514
  * Delete Thread Account endpoint
79460
79515
  * @summary Delete Thread Account
package/dist/esm/api.js CHANGED
@@ -85,6 +85,10 @@ export var AddOrganizationUser200ResponseStatusEnum;
85
85
  (function (AddOrganizationUser200ResponseStatusEnum) {
86
86
  AddOrganizationUser200ResponseStatusEnum["Ok"] = "ok";
87
87
  })(AddOrganizationUser200ResponseStatusEnum || (AddOrganizationUser200ResponseStatusEnum = {}));
88
+ export var AddThreadAccounts200ResponseStatusEnum;
89
+ (function (AddThreadAccounts200ResponseStatusEnum) {
90
+ AddThreadAccounts200ResponseStatusEnum["Ok"] = "ok";
91
+ })(AddThreadAccounts200ResponseStatusEnum || (AddThreadAccounts200ResponseStatusEnum = {}));
88
92
  export var AdminNotificationSource;
89
93
  (function (AdminNotificationSource) {
90
94
  AdminNotificationSource["System"] = "SYSTEM";
@@ -103285,22 +103289,61 @@ export class ThreadsApi extends BaseAPI {
103285
103289
  */
103286
103290
  export const ThreadsAccountsApiAxiosParamCreator = function (configuration) {
103287
103291
  return {
103292
+ /**
103293
+ * Add Thread Accounts endpoint
103294
+ * @summary Add Thread Accounts
103295
+ * @param {string} threadId The thread identifier
103296
+ * @param {ThreadAccountsAddInputs} threadAccountsAddInputs
103297
+ * @param {*} [options] Override http request option.
103298
+ * @throws {RequiredError}
103299
+ */
103300
+ addThreadAccounts: (threadId_1, threadAccountsAddInputs_1, ...args_1) => __awaiter(this, [threadId_1, threadAccountsAddInputs_1, ...args_1], void 0, function* (threadId, threadAccountsAddInputs, options = {}) {
103301
+ // verify required parameter 'threadId' is not null or undefined
103302
+ assertParamExists('addThreadAccounts', 'threadId', threadId);
103303
+ // verify required parameter 'threadAccountsAddInputs' is not null or undefined
103304
+ assertParamExists('addThreadAccounts', 'threadAccountsAddInputs', threadAccountsAddInputs);
103305
+ const localVarPath = `/threads/{threadId}/accounts`
103306
+ .replace(`{${"threadId"}}`, encodeURIComponent(String(threadId)));
103307
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
103308
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
103309
+ let baseOptions;
103310
+ if (configuration) {
103311
+ baseOptions = configuration.baseOptions;
103312
+ }
103313
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
103314
+ const localVarHeaderParameter = {};
103315
+ const localVarQueryParameter = {};
103316
+ // authentication ApiKeyAuth required
103317
+ yield setApiKeyToObject(localVarHeaderParameter, "api-key", configuration);
103318
+ // authentication OrganizationId required
103319
+ yield setApiKeyToObject(localVarHeaderParameter, "organization", configuration);
103320
+ localVarHeaderParameter['Content-Type'] = 'application/json';
103321
+ localVarHeaderParameter['Accept'] = 'application/json';
103322
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
103323
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
103324
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
103325
+ localVarRequestOptions.data = serializeDataIfNeeded(threadAccountsAddInputs, localVarRequestOptions, configuration);
103326
+ return {
103327
+ url: toPathString(localVarUrlObj),
103328
+ options: localVarRequestOptions,
103329
+ };
103330
+ }),
103288
103331
  /**
103289
103332
  * Delete Thread Account endpoint
103290
103333
  * @summary Delete Thread Account
103291
103334
  * @param {string} threadId The thread identifier
103292
- * @param {string} accountId The account identifier
103335
+ * @param {string} threadAccountId The threadAccount identifier
103293
103336
  * @param {*} [options] Override http request option.
103294
103337
  * @throws {RequiredError}
103295
103338
  */
103296
- deleteThreadAccount: (threadId_1, accountId_1, ...args_1) => __awaiter(this, [threadId_1, accountId_1, ...args_1], void 0, function* (threadId, accountId, options = {}) {
103339
+ deleteThreadAccount: (threadId_1, threadAccountId_1, ...args_1) => __awaiter(this, [threadId_1, threadAccountId_1, ...args_1], void 0, function* (threadId, threadAccountId, options = {}) {
103297
103340
  // verify required parameter 'threadId' is not null or undefined
103298
103341
  assertParamExists('deleteThreadAccount', 'threadId', threadId);
103299
- // verify required parameter 'accountId' is not null or undefined
103300
- assertParamExists('deleteThreadAccount', 'accountId', accountId);
103301
- const localVarPath = `/threads/{threadId}/accounts/{accountId}`
103342
+ // verify required parameter 'threadAccountId' is not null or undefined
103343
+ assertParamExists('deleteThreadAccount', 'threadAccountId', threadAccountId);
103344
+ const localVarPath = `/threads/{threadId}/accounts/{threadAccountId}`
103302
103345
  .replace(`{${"threadId"}}`, encodeURIComponent(String(threadId)))
103303
- .replace(`{${"accountId"}}`, encodeURIComponent(String(accountId)));
103346
+ .replace(`{${"threadAccountId"}}`, encodeURIComponent(String(threadAccountId)));
103304
103347
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
103305
103348
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
103306
103349
  let baseOptions;
@@ -103377,21 +103420,21 @@ export const ThreadsAccountsApiAxiosParamCreator = function (configuration) {
103377
103420
  * Update Thread Account endpoint
103378
103421
  * @summary Update Thread Account
103379
103422
  * @param {string} threadId The thread identifier
103380
- * @param {string} accountId The account identifier
103423
+ * @param {string} threadAccountId The threadAccount identifier
103381
103424
  * @param {ThreadAccountUpdateInputs} threadAccountUpdateInputs
103382
103425
  * @param {*} [options] Override http request option.
103383
103426
  * @throws {RequiredError}
103384
103427
  */
103385
- updateThreadAccount: (threadId_1, accountId_1, threadAccountUpdateInputs_1, ...args_1) => __awaiter(this, [threadId_1, accountId_1, threadAccountUpdateInputs_1, ...args_1], void 0, function* (threadId, accountId, threadAccountUpdateInputs, options = {}) {
103428
+ updateThreadAccount: (threadId_1, threadAccountId_1, threadAccountUpdateInputs_1, ...args_1) => __awaiter(this, [threadId_1, threadAccountId_1, threadAccountUpdateInputs_1, ...args_1], void 0, function* (threadId, threadAccountId, threadAccountUpdateInputs, options = {}) {
103386
103429
  // verify required parameter 'threadId' is not null or undefined
103387
103430
  assertParamExists('updateThreadAccount', 'threadId', threadId);
103388
- // verify required parameter 'accountId' is not null or undefined
103389
- assertParamExists('updateThreadAccount', 'accountId', accountId);
103431
+ // verify required parameter 'threadAccountId' is not null or undefined
103432
+ assertParamExists('updateThreadAccount', 'threadAccountId', threadAccountId);
103390
103433
  // verify required parameter 'threadAccountUpdateInputs' is not null or undefined
103391
103434
  assertParamExists('updateThreadAccount', 'threadAccountUpdateInputs', threadAccountUpdateInputs);
103392
- const localVarPath = `/threads/{threadId}/accounts/{accountId}`
103435
+ const localVarPath = `/threads/{threadId}/accounts/{threadAccountId}`
103393
103436
  .replace(`{${"threadId"}}`, encodeURIComponent(String(threadId)))
103394
- .replace(`{${"accountId"}}`, encodeURIComponent(String(accountId)));
103437
+ .replace(`{${"threadAccountId"}}`, encodeURIComponent(String(threadAccountId)));
103395
103438
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
103396
103439
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
103397
103440
  let baseOptions;
@@ -103424,18 +103467,35 @@ export const ThreadsAccountsApiAxiosParamCreator = function (configuration) {
103424
103467
  export const ThreadsAccountsApiFp = function (configuration) {
103425
103468
  const localVarAxiosParamCreator = ThreadsAccountsApiAxiosParamCreator(configuration);
103426
103469
  return {
103470
+ /**
103471
+ * Add Thread Accounts endpoint
103472
+ * @summary Add Thread Accounts
103473
+ * @param {string} threadId The thread identifier
103474
+ * @param {ThreadAccountsAddInputs} threadAccountsAddInputs
103475
+ * @param {*} [options] Override http request option.
103476
+ * @throws {RequiredError}
103477
+ */
103478
+ addThreadAccounts(threadId, threadAccountsAddInputs, options) {
103479
+ return __awaiter(this, void 0, void 0, function* () {
103480
+ var _a, _b, _c;
103481
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.addThreadAccounts(threadId, threadAccountsAddInputs, options);
103482
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
103483
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ThreadsAccountsApi.addThreadAccounts']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
103484
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
103485
+ });
103486
+ },
103427
103487
  /**
103428
103488
  * Delete Thread Account endpoint
103429
103489
  * @summary Delete Thread Account
103430
103490
  * @param {string} threadId The thread identifier
103431
- * @param {string} accountId The account identifier
103491
+ * @param {string} threadAccountId The threadAccount identifier
103432
103492
  * @param {*} [options] Override http request option.
103433
103493
  * @throws {RequiredError}
103434
103494
  */
103435
- deleteThreadAccount(threadId, accountId, options) {
103495
+ deleteThreadAccount(threadId, threadAccountId, options) {
103436
103496
  return __awaiter(this, void 0, void 0, function* () {
103437
103497
  var _a, _b, _c;
103438
- const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteThreadAccount(threadId, accountId, options);
103498
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteThreadAccount(threadId, threadAccountId, options);
103439
103499
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
103440
103500
  const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ThreadsAccountsApi.deleteThreadAccount']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
103441
103501
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -103465,15 +103525,15 @@ export const ThreadsAccountsApiFp = function (configuration) {
103465
103525
  * Update Thread Account endpoint
103466
103526
  * @summary Update Thread Account
103467
103527
  * @param {string} threadId The thread identifier
103468
- * @param {string} accountId The account identifier
103528
+ * @param {string} threadAccountId The threadAccount identifier
103469
103529
  * @param {ThreadAccountUpdateInputs} threadAccountUpdateInputs
103470
103530
  * @param {*} [options] Override http request option.
103471
103531
  * @throws {RequiredError}
103472
103532
  */
103473
- updateThreadAccount(threadId, accountId, threadAccountUpdateInputs, options) {
103533
+ updateThreadAccount(threadId, threadAccountId, threadAccountUpdateInputs, options) {
103474
103534
  return __awaiter(this, void 0, void 0, function* () {
103475
103535
  var _a, _b, _c;
103476
- const localVarAxiosArgs = yield localVarAxiosParamCreator.updateThreadAccount(threadId, accountId, threadAccountUpdateInputs, options);
103536
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.updateThreadAccount(threadId, threadAccountId, threadAccountUpdateInputs, options);
103477
103537
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
103478
103538
  const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ThreadsAccountsApi.updateThreadAccount']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
103479
103539
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -103487,6 +103547,16 @@ export const ThreadsAccountsApiFp = function (configuration) {
103487
103547
  export const ThreadsAccountsApiFactory = function (configuration, basePath, axios) {
103488
103548
  const localVarFp = ThreadsAccountsApiFp(configuration);
103489
103549
  return {
103550
+ /**
103551
+ * Add Thread Accounts endpoint
103552
+ * @summary Add Thread Accounts
103553
+ * @param {ThreadsAccountsApiAddThreadAccountsRequest} requestParameters Request parameters.
103554
+ * @param {*} [options] Override http request option.
103555
+ * @throws {RequiredError}
103556
+ */
103557
+ addThreadAccounts(requestParameters, options) {
103558
+ return localVarFp.addThreadAccounts(requestParameters.threadId, requestParameters.threadAccountsAddInputs, options).then((request) => request(axios, basePath));
103559
+ },
103490
103560
  /**
103491
103561
  * Delete Thread Account endpoint
103492
103562
  * @summary Delete Thread Account
@@ -103495,7 +103565,7 @@ export const ThreadsAccountsApiFactory = function (configuration, basePath, axio
103495
103565
  * @throws {RequiredError}
103496
103566
  */
103497
103567
  deleteThreadAccount(requestParameters, options) {
103498
- return localVarFp.deleteThreadAccount(requestParameters.threadId, requestParameters.accountId, options).then((request) => request(axios, basePath));
103568
+ return localVarFp.deleteThreadAccount(requestParameters.threadId, requestParameters.threadAccountId, options).then((request) => request(axios, basePath));
103499
103569
  },
103500
103570
  /**
103501
103571
  * Get Thread Accounts endpoint
@@ -103515,7 +103585,7 @@ export const ThreadsAccountsApiFactory = function (configuration, basePath, axio
103515
103585
  * @throws {RequiredError}
103516
103586
  */
103517
103587
  updateThreadAccount(requestParameters, options) {
103518
- return localVarFp.updateThreadAccount(requestParameters.threadId, requestParameters.accountId, requestParameters.threadAccountUpdateInputs, options).then((request) => request(axios, basePath));
103588
+ return localVarFp.updateThreadAccount(requestParameters.threadId, requestParameters.threadAccountId, requestParameters.threadAccountUpdateInputs, options).then((request) => request(axios, basePath));
103519
103589
  },
103520
103590
  };
103521
103591
  };
@@ -103523,6 +103593,16 @@ export const ThreadsAccountsApiFactory = function (configuration, basePath, axio
103523
103593
  * ThreadsAccountsApi - object-oriented interface
103524
103594
  */
103525
103595
  export class ThreadsAccountsApi extends BaseAPI {
103596
+ /**
103597
+ * Add Thread Accounts endpoint
103598
+ * @summary Add Thread Accounts
103599
+ * @param {ThreadsAccountsApiAddThreadAccountsRequest} requestParameters Request parameters.
103600
+ * @param {*} [options] Override http request option.
103601
+ * @throws {RequiredError}
103602
+ */
103603
+ addThreadAccounts(requestParameters, options) {
103604
+ return ThreadsAccountsApiFp(this.configuration).addThreadAccounts(requestParameters.threadId, requestParameters.threadAccountsAddInputs, options).then((request) => request(this.axios, this.basePath));
103605
+ }
103526
103606
  /**
103527
103607
  * Delete Thread Account endpoint
103528
103608
  * @summary Delete Thread Account
@@ -103531,7 +103611,7 @@ export class ThreadsAccountsApi extends BaseAPI {
103531
103611
  * @throws {RequiredError}
103532
103612
  */
103533
103613
  deleteThreadAccount(requestParameters, options) {
103534
- return ThreadsAccountsApiFp(this.configuration).deleteThreadAccount(requestParameters.threadId, requestParameters.accountId, options).then((request) => request(this.axios, this.basePath));
103614
+ return ThreadsAccountsApiFp(this.configuration).deleteThreadAccount(requestParameters.threadId, requestParameters.threadAccountId, options).then((request) => request(this.axios, this.basePath));
103535
103615
  }
103536
103616
  /**
103537
103617
  * Get Thread Accounts endpoint
@@ -103551,7 +103631,7 @@ export class ThreadsAccountsApi extends BaseAPI {
103551
103631
  * @throws {RequiredError}
103552
103632
  */
103553
103633
  updateThreadAccount(requestParameters, options) {
103554
- return ThreadsAccountsApiFp(this.configuration).updateThreadAccount(requestParameters.threadId, requestParameters.accountId, requestParameters.threadAccountUpdateInputs, options).then((request) => request(this.axios, this.basePath));
103634
+ return ThreadsAccountsApiFp(this.configuration).updateThreadAccount(requestParameters.threadId, requestParameters.threadAccountId, requestParameters.threadAccountUpdateInputs, options).then((request) => request(this.axios, this.basePath));
103555
103635
  }
103556
103636
  }
103557
103637
  /**
@@ -0,0 +1,24 @@
1
+ # AddThreadAccounts200Response
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **status** | **string** | | [default to undefined]
9
+ **message** | **string** | | [default to undefined]
10
+ **data** | [**Array&lt;ThreadAccount&gt;**](ThreadAccount.md) | | [default to undefined]
11
+
12
+ ## Example
13
+
14
+ ```typescript
15
+ import { AddThreadAccounts200Response } from '@connectedxm/admin-sdk';
16
+
17
+ const instance: AddThreadAccounts200Response = {
18
+ status,
19
+ message,
20
+ data,
21
+ };
22
+ ```
23
+
24
+ [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
@@ -0,0 +1,20 @@
1
+ # ThreadAccountsAddInputs
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **accountIds** | **Array&lt;string&gt;** | | [default to undefined]
9
+
10
+ ## Example
11
+
12
+ ```typescript
13
+ import { ThreadAccountsAddInputs } from '@connectedxm/admin-sdk';
14
+
15
+ const instance: ThreadAccountsAddInputs = {
16
+ accountIds,
17
+ };
18
+ ```
19
+
20
+ [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
@@ -4,9 +4,65 @@ All URIs are relative to *https://admin-api.connected.dev*
4
4
 
5
5
  |Method | HTTP request | Description|
6
6
  |------------- | ------------- | -------------|
7
- |[**deleteThreadAccount**](#deletethreadaccount) | **DELETE** /threads/{threadId}/accounts/{accountId} | Delete Thread Account|
7
+ |[**addThreadAccounts**](#addthreadaccounts) | **POST** /threads/{threadId}/accounts | Add Thread Accounts|
8
+ |[**deleteThreadAccount**](#deletethreadaccount) | **DELETE** /threads/{threadId}/accounts/{threadAccountId} | Delete Thread Account|
8
9
  |[**getThreadAccounts**](#getthreadaccounts) | **GET** /threads/{threadId}/accounts | Get Thread Accounts|
9
- |[**updateThreadAccount**](#updatethreadaccount) | **PUT** /threads/{threadId}/accounts/{accountId} | Update Thread Account|
10
+ |[**updateThreadAccount**](#updatethreadaccount) | **PUT** /threads/{threadId}/accounts/{threadAccountId} | Update Thread Account|
11
+
12
+ # **addThreadAccounts**
13
+ > AddThreadAccounts200Response addThreadAccounts(threadAccountsAddInputs)
14
+
15
+ Add Thread Accounts endpoint
16
+
17
+ ### Example
18
+
19
+ ```typescript
20
+ import {
21
+ ThreadsAccountsApi,
22
+ Configuration,
23
+ ThreadAccountsAddInputs
24
+ } from '@connectedxm/admin-sdk';
25
+
26
+ const configuration = new Configuration();
27
+ const apiInstance = new ThreadsAccountsApi(configuration);
28
+
29
+ let threadId: string; //The thread identifier (default to undefined)
30
+ let threadAccountsAddInputs: ThreadAccountsAddInputs; //
31
+
32
+ const { status, data } = await apiInstance.addThreadAccounts(
33
+ threadId,
34
+ threadAccountsAddInputs
35
+ );
36
+ ```
37
+
38
+ ### Parameters
39
+
40
+ |Name | Type | Description | Notes|
41
+ |------------- | ------------- | ------------- | -------------|
42
+ | **threadAccountsAddInputs** | **ThreadAccountsAddInputs**| | |
43
+ | **threadId** | [**string**] | The thread identifier | defaults to undefined|
44
+
45
+
46
+ ### Return type
47
+
48
+ **AddThreadAccounts200Response**
49
+
50
+ ### Authorization
51
+
52
+ [ApiKeyAuth](../README.md#ApiKeyAuth), [OrganizationId](../README.md#OrganizationId)
53
+
54
+ ### HTTP request headers
55
+
56
+ - **Content-Type**: application/json
57
+ - **Accept**: application/json
58
+
59
+
60
+ ### HTTP response details
61
+ | Status code | Description | Response headers |
62
+ |-------------|-------------|------------------|
63
+ |**200** | Successful response | - |
64
+
65
+ [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
10
66
 
11
67
  # **deleteThreadAccount**
12
68
  > CreateAccountInvitations200Response deleteThreadAccount()
@@ -25,11 +81,11 @@ const configuration = new Configuration();
25
81
  const apiInstance = new ThreadsAccountsApi(configuration);
26
82
 
27
83
  let threadId: string; //The thread identifier (default to undefined)
28
- let accountId: string; //The account identifier (default to undefined)
84
+ let threadAccountId: string; //The threadAccount identifier (default to undefined)
29
85
 
30
86
  const { status, data } = await apiInstance.deleteThreadAccount(
31
87
  threadId,
32
- accountId
88
+ threadAccountId
33
89
  );
34
90
  ```
35
91
 
@@ -38,7 +94,7 @@ const { status, data } = await apiInstance.deleteThreadAccount(
38
94
  |Name | Type | Description | Notes|
39
95
  |------------- | ------------- | ------------- | -------------|
40
96
  | **threadId** | [**string**] | The thread identifier | defaults to undefined|
41
- | **accountId** | [**string**] | The account identifier | defaults to undefined|
97
+ | **threadAccountId** | [**string**] | The threadAccount identifier | defaults to undefined|
42
98
 
43
99
 
44
100
  ### Return type
@@ -143,12 +199,12 @@ const configuration = new Configuration();
143
199
  const apiInstance = new ThreadsAccountsApi(configuration);
144
200
 
145
201
  let threadId: string; //The thread identifier (default to undefined)
146
- let accountId: string; //The account identifier (default to undefined)
202
+ let threadAccountId: string; //The threadAccount identifier (default to undefined)
147
203
  let threadAccountUpdateInputs: ThreadAccountUpdateInputs; //
148
204
 
149
205
  const { status, data } = await apiInstance.updateThreadAccount(
150
206
  threadId,
151
- accountId,
207
+ threadAccountId,
152
208
  threadAccountUpdateInputs
153
209
  );
154
210
  ```
@@ -159,7 +215,7 @@ const { status, data } = await apiInstance.updateThreadAccount(
159
215
  |------------- | ------------- | ------------- | -------------|
160
216
  | **threadAccountUpdateInputs** | **ThreadAccountUpdateInputs**| | |
161
217
  | **threadId** | [**string**] | The thread identifier | defaults to undefined|
162
- | **accountId** | [**string**] | The account identifier | defaults to undefined|
218
+ | **threadAccountId** | [**string**] | The threadAccount identifier | defaults to undefined|
163
219
 
164
220
 
165
221
  ### Return type
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@connectedxm/admin-sdk",
3
- "version": "7.0.7",
3
+ "version": "7.0.9",
4
4
  "description": "OpenAPI client for @connectedxm/admin-sdk",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "repository": {