@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.
@@ -45,6 +45,7 @@ docs/ActivityUpdateInputs.md
45
45
  docs/AddAccountGroup200Response.md
46
46
  docs/AddChannelSubscriber200Response.md
47
47
  docs/AddOrganizationUser200Response.md
48
+ docs/AddThreadAccounts200Response.md
48
49
  docs/AdminNotification.md
49
50
  docs/AdminNotificationPreferences.md
50
51
  docs/AdminNotificationPreferencesUpdateInputs.md
@@ -1427,6 +1428,7 @@ docs/TeamUpdateInputs.md
1427
1428
  docs/Thread.md
1428
1429
  docs/ThreadAccount.md
1429
1430
  docs/ThreadAccountUpdateInputs.md
1431
+ docs/ThreadAccountsAddInputs.md
1430
1432
  docs/ThreadAllOfCount.md
1431
1433
  docs/ThreadCreateInputs.md
1432
1434
  docs/ThreadMessage.md
package/README.md CHANGED
@@ -1215,9 +1215,10 @@ Class | Method | HTTP request | Description
1215
1215
  *ThreadsApi* | [**getThread**](docs/ThreadsApi.md#getthread) | **GET** /threads/{threadId} | Get Thread
1216
1216
  *ThreadsApi* | [**getThreads**](docs/ThreadsApi.md#getthreads) | **GET** /threads | Get Threads
1217
1217
  *ThreadsApi* | [**updateThread**](docs/ThreadsApi.md#updatethread) | **PUT** /threads/{threadId} | Update Thread
1218
- *ThreadsAccountsApi* | [**deleteThreadAccount**](docs/ThreadsAccountsApi.md#deletethreadaccount) | **DELETE** /threads/{threadId}/accounts/{accountId} | Delete Thread Account
1218
+ *ThreadsAccountsApi* | [**addThreadAccounts**](docs/ThreadsAccountsApi.md#addthreadaccounts) | **POST** /threads/{threadId}/accounts | Add Thread Accounts
1219
+ *ThreadsAccountsApi* | [**deleteThreadAccount**](docs/ThreadsAccountsApi.md#deletethreadaccount) | **DELETE** /threads/{threadId}/accounts/{threadAccountId} | Delete Thread Account
1219
1220
  *ThreadsAccountsApi* | [**getThreadAccounts**](docs/ThreadsAccountsApi.md#getthreadaccounts) | **GET** /threads/{threadId}/accounts | Get Thread Accounts
1220
- *ThreadsAccountsApi* | [**updateThreadAccount**](docs/ThreadsAccountsApi.md#updatethreadaccount) | **PUT** /threads/{threadId}/accounts/{accountId} | Update Thread Account
1221
+ *ThreadsAccountsApi* | [**updateThreadAccount**](docs/ThreadsAccountsApi.md#updatethreadaccount) | **PUT** /threads/{threadId}/accounts/{threadAccountId} | Update Thread Account
1221
1222
  *ThreadsMessagesApi* | [**createThreadMessage**](docs/ThreadsMessagesApi.md#createthreadmessage) | **POST** /threads/{threadId}/messages | Create Thread Message
1222
1223
  *ThreadsMessagesApi* | [**deleteThreadMessage**](docs/ThreadsMessagesApi.md#deletethreadmessage) | **DELETE** /threads/{threadId}/messages/{messageId} | Delete Thread Message
1223
1224
  *ThreadsMessagesApi* | [**getThreadMessage**](docs/ThreadsMessagesApi.md#getthreadmessage) | **GET** /threads/{threadId}/messages/{messageId} | Get Thread Message
@@ -1281,6 +1282,7 @@ Class | Method | HTTP request | Description
1281
1282
  - [AddAccountGroup200Response](docs/AddAccountGroup200Response.md)
1282
1283
  - [AddChannelSubscriber200Response](docs/AddChannelSubscriber200Response.md)
1283
1284
  - [AddOrganizationUser200Response](docs/AddOrganizationUser200Response.md)
1285
+ - [AddThreadAccounts200Response](docs/AddThreadAccounts200Response.md)
1284
1286
  - [AdminNotification](docs/AdminNotification.md)
1285
1287
  - [AdminNotificationPreferences](docs/AdminNotificationPreferences.md)
1286
1288
  - [AdminNotificationPreferencesUpdateInputs](docs/AdminNotificationPreferencesUpdateInputs.md)
@@ -2490,6 +2492,7 @@ Class | Method | HTTP request | Description
2490
2492
  - [Thread](docs/Thread.md)
2491
2493
  - [ThreadAccount](docs/ThreadAccount.md)
2492
2494
  - [ThreadAccountUpdateInputs](docs/ThreadAccountUpdateInputs.md)
2495
+ - [ThreadAccountsAddInputs](docs/ThreadAccountsAddInputs.md)
2493
2496
  - [ThreadAllOfCount](docs/ThreadAllOfCount.md)
2494
2497
  - [ThreadCreateInputs](docs/ThreadCreateInputs.md)
2495
2498
  - [ThreadMessage](docs/ThreadMessage.md)
package/api.ts CHANGED
@@ -440,6 +440,16 @@ export enum AddOrganizationUser200ResponseStatusEnum {
440
440
  Ok = 'ok'
441
441
  }
442
442
 
443
+ export interface AddThreadAccounts200Response {
444
+ 'status': AddThreadAccounts200ResponseStatusEnum;
445
+ 'message': string;
446
+ 'data': Array<ThreadAccount>;
447
+ }
448
+
449
+ export enum AddThreadAccounts200ResponseStatusEnum {
450
+ Ok = 'ok'
451
+ }
452
+
443
453
  export interface AdminNotification {
444
454
  'id': string;
445
455
  'supportTicketId': string | null;
@@ -13638,6 +13648,9 @@ export interface ThreadAccountUpdateInputs {
13638
13648
  'notifications'?: boolean;
13639
13649
  'blocked'?: boolean;
13640
13650
  }
13651
+ export interface ThreadAccountsAddInputs {
13652
+ 'accountIds': Array<string>;
13653
+ }
13641
13654
  export interface ThreadAllOfCount {
13642
13655
  'messages'?: number;
13643
13656
  }
@@ -146058,22 +146071,67 @@ export class ThreadsApi extends BaseAPI {
146058
146071
  */
146059
146072
  export const ThreadsAccountsApiAxiosParamCreator = function (configuration?: Configuration) {
146060
146073
  return {
146074
+ /**
146075
+ * Add Thread Accounts endpoint
146076
+ * @summary Add Thread Accounts
146077
+ * @param {string} threadId The thread identifier
146078
+ * @param {ThreadAccountsAddInputs} threadAccountsAddInputs
146079
+ * @param {*} [options] Override http request option.
146080
+ * @throws {RequiredError}
146081
+ */
146082
+ addThreadAccounts: async (threadId: string, threadAccountsAddInputs: ThreadAccountsAddInputs, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
146083
+ // verify required parameter 'threadId' is not null or undefined
146084
+ assertParamExists('addThreadAccounts', 'threadId', threadId)
146085
+ // verify required parameter 'threadAccountsAddInputs' is not null or undefined
146086
+ assertParamExists('addThreadAccounts', 'threadAccountsAddInputs', threadAccountsAddInputs)
146087
+ const localVarPath = `/threads/{threadId}/accounts`
146088
+ .replace(`{${"threadId"}}`, encodeURIComponent(String(threadId)));
146089
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
146090
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
146091
+ let baseOptions;
146092
+ if (configuration) {
146093
+ baseOptions = configuration.baseOptions;
146094
+ }
146095
+
146096
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
146097
+ const localVarHeaderParameter = {} as any;
146098
+ const localVarQueryParameter = {} as any;
146099
+
146100
+ // authentication ApiKeyAuth required
146101
+ await setApiKeyToObject(localVarHeaderParameter, "api-key", configuration)
146102
+
146103
+ // authentication OrganizationId required
146104
+ await setApiKeyToObject(localVarHeaderParameter, "organization", configuration)
146105
+
146106
+ localVarHeaderParameter['Content-Type'] = 'application/json';
146107
+ localVarHeaderParameter['Accept'] = 'application/json';
146108
+
146109
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
146110
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
146111
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
146112
+ localVarRequestOptions.data = serializeDataIfNeeded(threadAccountsAddInputs, localVarRequestOptions, configuration)
146113
+
146114
+ return {
146115
+ url: toPathString(localVarUrlObj),
146116
+ options: localVarRequestOptions,
146117
+ };
146118
+ },
146061
146119
  /**
146062
146120
  * Delete Thread Account endpoint
146063
146121
  * @summary Delete Thread Account
146064
146122
  * @param {string} threadId The thread identifier
146065
- * @param {string} accountId The account identifier
146123
+ * @param {string} threadAccountId The threadAccount identifier
146066
146124
  * @param {*} [options] Override http request option.
146067
146125
  * @throws {RequiredError}
146068
146126
  */
146069
- deleteThreadAccount: async (threadId: string, accountId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
146127
+ deleteThreadAccount: async (threadId: string, threadAccountId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
146070
146128
  // verify required parameter 'threadId' is not null or undefined
146071
146129
  assertParamExists('deleteThreadAccount', 'threadId', threadId)
146072
- // verify required parameter 'accountId' is not null or undefined
146073
- assertParamExists('deleteThreadAccount', 'accountId', accountId)
146074
- const localVarPath = `/threads/{threadId}/accounts/{accountId}`
146130
+ // verify required parameter 'threadAccountId' is not null or undefined
146131
+ assertParamExists('deleteThreadAccount', 'threadAccountId', threadAccountId)
146132
+ const localVarPath = `/threads/{threadId}/accounts/{threadAccountId}`
146075
146133
  .replace(`{${"threadId"}}`, encodeURIComponent(String(threadId)))
146076
- .replace(`{${"accountId"}}`, encodeURIComponent(String(accountId)));
146134
+ .replace(`{${"threadAccountId"}}`, encodeURIComponent(String(threadAccountId)));
146077
146135
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
146078
146136
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
146079
146137
  let baseOptions;
@@ -146166,21 +146224,21 @@ export const ThreadsAccountsApiAxiosParamCreator = function (configuration?: Con
146166
146224
  * Update Thread Account endpoint
146167
146225
  * @summary Update Thread Account
146168
146226
  * @param {string} threadId The thread identifier
146169
- * @param {string} accountId The account identifier
146227
+ * @param {string} threadAccountId The threadAccount identifier
146170
146228
  * @param {ThreadAccountUpdateInputs} threadAccountUpdateInputs
146171
146229
  * @param {*} [options] Override http request option.
146172
146230
  * @throws {RequiredError}
146173
146231
  */
146174
- updateThreadAccount: async (threadId: string, accountId: string, threadAccountUpdateInputs: ThreadAccountUpdateInputs, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
146232
+ updateThreadAccount: async (threadId: string, threadAccountId: string, threadAccountUpdateInputs: ThreadAccountUpdateInputs, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
146175
146233
  // verify required parameter 'threadId' is not null or undefined
146176
146234
  assertParamExists('updateThreadAccount', 'threadId', threadId)
146177
- // verify required parameter 'accountId' is not null or undefined
146178
- assertParamExists('updateThreadAccount', 'accountId', accountId)
146235
+ // verify required parameter 'threadAccountId' is not null or undefined
146236
+ assertParamExists('updateThreadAccount', 'threadAccountId', threadAccountId)
146179
146237
  // verify required parameter 'threadAccountUpdateInputs' is not null or undefined
146180
146238
  assertParamExists('updateThreadAccount', 'threadAccountUpdateInputs', threadAccountUpdateInputs)
146181
- const localVarPath = `/threads/{threadId}/accounts/{accountId}`
146239
+ const localVarPath = `/threads/{threadId}/accounts/{threadAccountId}`
146182
146240
  .replace(`{${"threadId"}}`, encodeURIComponent(String(threadId)))
146183
- .replace(`{${"accountId"}}`, encodeURIComponent(String(accountId)));
146241
+ .replace(`{${"threadAccountId"}}`, encodeURIComponent(String(threadAccountId)));
146184
146242
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
146185
146243
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
146186
146244
  let baseOptions;
@@ -146220,16 +146278,30 @@ export const ThreadsAccountsApiAxiosParamCreator = function (configuration?: Con
146220
146278
  export const ThreadsAccountsApiFp = function(configuration?: Configuration) {
146221
146279
  const localVarAxiosParamCreator = ThreadsAccountsApiAxiosParamCreator(configuration)
146222
146280
  return {
146281
+ /**
146282
+ * Add Thread Accounts endpoint
146283
+ * @summary Add Thread Accounts
146284
+ * @param {string} threadId The thread identifier
146285
+ * @param {ThreadAccountsAddInputs} threadAccountsAddInputs
146286
+ * @param {*} [options] Override http request option.
146287
+ * @throws {RequiredError}
146288
+ */
146289
+ async addThreadAccounts(threadId: string, threadAccountsAddInputs: ThreadAccountsAddInputs, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AddThreadAccounts200Response>> {
146290
+ const localVarAxiosArgs = await localVarAxiosParamCreator.addThreadAccounts(threadId, threadAccountsAddInputs, options);
146291
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
146292
+ const localVarOperationServerBasePath = operationServerMap['ThreadsAccountsApi.addThreadAccounts']?.[localVarOperationServerIndex]?.url;
146293
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
146294
+ },
146223
146295
  /**
146224
146296
  * Delete Thread Account endpoint
146225
146297
  * @summary Delete Thread Account
146226
146298
  * @param {string} threadId The thread identifier
146227
- * @param {string} accountId The account identifier
146299
+ * @param {string} threadAccountId The threadAccount identifier
146228
146300
  * @param {*} [options] Override http request option.
146229
146301
  * @throws {RequiredError}
146230
146302
  */
146231
- async deleteThreadAccount(threadId: string, accountId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateAccountInvitations200Response>> {
146232
- const localVarAxiosArgs = await localVarAxiosParamCreator.deleteThreadAccount(threadId, accountId, options);
146303
+ async deleteThreadAccount(threadId: string, threadAccountId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateAccountInvitations200Response>> {
146304
+ const localVarAxiosArgs = await localVarAxiosParamCreator.deleteThreadAccount(threadId, threadAccountId, options);
146233
146305
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
146234
146306
  const localVarOperationServerBasePath = operationServerMap['ThreadsAccountsApi.deleteThreadAccount']?.[localVarOperationServerIndex]?.url;
146235
146307
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -146255,13 +146327,13 @@ export const ThreadsAccountsApiFp = function(configuration?: Configuration) {
146255
146327
  * Update Thread Account endpoint
146256
146328
  * @summary Update Thread Account
146257
146329
  * @param {string} threadId The thread identifier
146258
- * @param {string} accountId The account identifier
146330
+ * @param {string} threadAccountId The threadAccount identifier
146259
146331
  * @param {ThreadAccountUpdateInputs} threadAccountUpdateInputs
146260
146332
  * @param {*} [options] Override http request option.
146261
146333
  * @throws {RequiredError}
146262
146334
  */
146263
- async updateThreadAccount(threadId: string, accountId: string, threadAccountUpdateInputs: ThreadAccountUpdateInputs, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UpdateThreadAccount200Response>> {
146264
- const localVarAxiosArgs = await localVarAxiosParamCreator.updateThreadAccount(threadId, accountId, threadAccountUpdateInputs, options);
146335
+ async updateThreadAccount(threadId: string, threadAccountId: string, threadAccountUpdateInputs: ThreadAccountUpdateInputs, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UpdateThreadAccount200Response>> {
146336
+ const localVarAxiosArgs = await localVarAxiosParamCreator.updateThreadAccount(threadId, threadAccountId, threadAccountUpdateInputs, options);
146265
146337
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
146266
146338
  const localVarOperationServerBasePath = operationServerMap['ThreadsAccountsApi.updateThreadAccount']?.[localVarOperationServerIndex]?.url;
146267
146339
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -146275,6 +146347,16 @@ export const ThreadsAccountsApiFp = function(configuration?: Configuration) {
146275
146347
  export const ThreadsAccountsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
146276
146348
  const localVarFp = ThreadsAccountsApiFp(configuration)
146277
146349
  return {
146350
+ /**
146351
+ * Add Thread Accounts endpoint
146352
+ * @summary Add Thread Accounts
146353
+ * @param {ThreadsAccountsApiAddThreadAccountsRequest} requestParameters Request parameters.
146354
+ * @param {*} [options] Override http request option.
146355
+ * @throws {RequiredError}
146356
+ */
146357
+ addThreadAccounts(requestParameters: ThreadsAccountsApiAddThreadAccountsRequest, options?: RawAxiosRequestConfig): AxiosPromise<AddThreadAccounts200Response> {
146358
+ return localVarFp.addThreadAccounts(requestParameters.threadId, requestParameters.threadAccountsAddInputs, options).then((request) => request(axios, basePath));
146359
+ },
146278
146360
  /**
146279
146361
  * Delete Thread Account endpoint
146280
146362
  * @summary Delete Thread Account
@@ -146283,7 +146365,7 @@ export const ThreadsAccountsApiFactory = function (configuration?: Configuration
146283
146365
  * @throws {RequiredError}
146284
146366
  */
146285
146367
  deleteThreadAccount(requestParameters: ThreadsAccountsApiDeleteThreadAccountRequest, options?: RawAxiosRequestConfig): AxiosPromise<CreateAccountInvitations200Response> {
146286
- return localVarFp.deleteThreadAccount(requestParameters.threadId, requestParameters.accountId, options).then((request) => request(axios, basePath));
146368
+ return localVarFp.deleteThreadAccount(requestParameters.threadId, requestParameters.threadAccountId, options).then((request) => request(axios, basePath));
146287
146369
  },
146288
146370
  /**
146289
146371
  * Get Thread Accounts endpoint
@@ -146303,11 +146385,23 @@ export const ThreadsAccountsApiFactory = function (configuration?: Configuration
146303
146385
  * @throws {RequiredError}
146304
146386
  */
146305
146387
  updateThreadAccount(requestParameters: ThreadsAccountsApiUpdateThreadAccountRequest, options?: RawAxiosRequestConfig): AxiosPromise<UpdateThreadAccount200Response> {
146306
- return localVarFp.updateThreadAccount(requestParameters.threadId, requestParameters.accountId, requestParameters.threadAccountUpdateInputs, options).then((request) => request(axios, basePath));
146388
+ return localVarFp.updateThreadAccount(requestParameters.threadId, requestParameters.threadAccountId, requestParameters.threadAccountUpdateInputs, options).then((request) => request(axios, basePath));
146307
146389
  },
146308
146390
  };
146309
146391
  };
146310
146392
 
146393
+ /**
146394
+ * Request parameters for addThreadAccounts operation in ThreadsAccountsApi.
146395
+ */
146396
+ export interface ThreadsAccountsApiAddThreadAccountsRequest {
146397
+ /**
146398
+ * The thread identifier
146399
+ */
146400
+ readonly threadId: string
146401
+
146402
+ readonly threadAccountsAddInputs: ThreadAccountsAddInputs
146403
+ }
146404
+
146311
146405
  /**
146312
146406
  * Request parameters for deleteThreadAccount operation in ThreadsAccountsApi.
146313
146407
  */
@@ -146318,9 +146412,9 @@ export interface ThreadsAccountsApiDeleteThreadAccountRequest {
146318
146412
  readonly threadId: string
146319
146413
 
146320
146414
  /**
146321
- * The account identifier
146415
+ * The threadAccount identifier
146322
146416
  */
146323
- readonly accountId: string
146417
+ readonly threadAccountId: string
146324
146418
  }
146325
146419
 
146326
146420
  /**
@@ -146363,9 +146457,9 @@ export interface ThreadsAccountsApiUpdateThreadAccountRequest {
146363
146457
  readonly threadId: string
146364
146458
 
146365
146459
  /**
146366
- * The account identifier
146460
+ * The threadAccount identifier
146367
146461
  */
146368
- readonly accountId: string
146462
+ readonly threadAccountId: string
146369
146463
 
146370
146464
  readonly threadAccountUpdateInputs: ThreadAccountUpdateInputs
146371
146465
  }
@@ -146374,6 +146468,17 @@ export interface ThreadsAccountsApiUpdateThreadAccountRequest {
146374
146468
  * ThreadsAccountsApi - object-oriented interface
146375
146469
  */
146376
146470
  export class ThreadsAccountsApi extends BaseAPI {
146471
+ /**
146472
+ * Add Thread Accounts endpoint
146473
+ * @summary Add Thread Accounts
146474
+ * @param {ThreadsAccountsApiAddThreadAccountsRequest} requestParameters Request parameters.
146475
+ * @param {*} [options] Override http request option.
146476
+ * @throws {RequiredError}
146477
+ */
146478
+ public addThreadAccounts(requestParameters: ThreadsAccountsApiAddThreadAccountsRequest, options?: RawAxiosRequestConfig) {
146479
+ return ThreadsAccountsApiFp(this.configuration).addThreadAccounts(requestParameters.threadId, requestParameters.threadAccountsAddInputs, options).then((request) => request(this.axios, this.basePath));
146480
+ }
146481
+
146377
146482
  /**
146378
146483
  * Delete Thread Account endpoint
146379
146484
  * @summary Delete Thread Account
@@ -146382,7 +146487,7 @@ export class ThreadsAccountsApi extends BaseAPI {
146382
146487
  * @throws {RequiredError}
146383
146488
  */
146384
146489
  public deleteThreadAccount(requestParameters: ThreadsAccountsApiDeleteThreadAccountRequest, options?: RawAxiosRequestConfig) {
146385
- return ThreadsAccountsApiFp(this.configuration).deleteThreadAccount(requestParameters.threadId, requestParameters.accountId, options).then((request) => request(this.axios, this.basePath));
146490
+ return ThreadsAccountsApiFp(this.configuration).deleteThreadAccount(requestParameters.threadId, requestParameters.threadAccountId, options).then((request) => request(this.axios, this.basePath));
146386
146491
  }
146387
146492
 
146388
146493
  /**
@@ -146404,7 +146509,7 @@ export class ThreadsAccountsApi extends BaseAPI {
146404
146509
  * @throws {RequiredError}
146405
146510
  */
146406
146511
  public updateThreadAccount(requestParameters: ThreadsAccountsApiUpdateThreadAccountRequest, options?: RawAxiosRequestConfig) {
146407
- return ThreadsAccountsApiFp(this.configuration).updateThreadAccount(requestParameters.threadId, requestParameters.accountId, requestParameters.threadAccountUpdateInputs, options).then((request) => request(this.axios, this.basePath));
146512
+ return ThreadsAccountsApiFp(this.configuration).updateThreadAccount(requestParameters.threadId, requestParameters.threadAccountId, requestParameters.threadAccountUpdateInputs, options).then((request) => request(this.axios, this.basePath));
146408
146513
  }
146409
146514
  }
146410
146515
 
package/dist/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