@connectedxm/admin-sdk 6.33.1 → 7.0.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.
Files changed (47) hide show
  1. package/.openapi-generator/FILES +6 -26
  2. package/AdminApi.ts +3 -9
  3. package/README.md +8 -39
  4. package/api.ts +146 -1789
  5. package/dist/AdminApi.d.ts +2 -4
  6. package/dist/AdminApi.js +1 -3
  7. package/dist/api.d.ts +93 -951
  8. package/dist/api.js +127 -1311
  9. package/dist/esm/AdminApi.d.ts +2 -4
  10. package/dist/esm/AdminApi.js +2 -4
  11. package/dist/esm/api.d.ts +93 -951
  12. package/dist/esm/api.js +98 -1273
  13. package/docs/BaseThread.md +0 -2
  14. package/docs/BaseThreadMessage.md +4 -2
  15. package/docs/EventsApi.md +0 -64
  16. package/docs/GroupsApi.md +0 -64
  17. package/docs/Thread.md +4 -2
  18. package/docs/{ThreadMember.md → ThreadAccount.md} +9 -5
  19. package/docs/{ThreadMemberUpdateInputs.md → ThreadAccountUpdateInputs.md} +5 -3
  20. package/docs/{ThreadCircleCreateInputs.md → ThreadAllOfCount.md} +5 -5
  21. package/docs/ThreadCreateInputs.md +2 -6
  22. package/docs/ThreadMessage.md +6 -2
  23. package/docs/{BaseThreadMember.md → ThreadMessageRead.md} +9 -11
  24. package/docs/{ThreadsMembersApi.md → ThreadsAccountsApi.md} +31 -40
  25. package/docs/ThreadsApi.md +0 -3
  26. package/docs/{UpdateThreadMember200Response.md → UpdateThreadAccount200Response.md} +4 -4
  27. package/package.json +1 -1
  28. package/docs/BaseThreadCircle.md +0 -28
  29. package/docs/BaseThreadCircleAccount.md +0 -24
  30. package/docs/CreateThreadCircle200Response.md +0 -24
  31. package/docs/CreateThreadCircleAccount200Response.md +0 -24
  32. package/docs/GetThreadCircleAccounts200Response.md +0 -26
  33. package/docs/GetThreadCircles200Response.md +0 -26
  34. package/docs/GetThreadMembers200Response.md +0 -26
  35. package/docs/ThreadCircle.md +0 -28
  36. package/docs/ThreadCircleAccount.md +0 -24
  37. package/docs/ThreadCircleAccountCreateInputs.md +0 -22
  38. package/docs/ThreadCircleAccountRole.md +0 -12
  39. package/docs/ThreadCircleAccountUpdateInputs.md +0 -20
  40. package/docs/ThreadCircleType.md +0 -10
  41. package/docs/ThreadCircleUpdateInputs.md +0 -20
  42. package/docs/ThreadInvitation.md +0 -42
  43. package/docs/ThreadInvitationStatus.md +0 -10
  44. package/docs/ThreadMemberRole.md +0 -10
  45. package/docs/ThreadType.md +0 -14
  46. package/docs/ThreadsCirclesAccountsApi.md +0 -299
  47. package/docs/ThreadsCirclesApi.md +0 -348
package/api.ts CHANGED
@@ -2528,45 +2528,19 @@ export interface BaseThread {
2528
2528
  'subject': string;
2529
2529
  'imageId': string | null;
2530
2530
  'image': BaseImage | null;
2531
- 'type': ThreadType;
2532
2531
  'lastMessageAt': string | null;
2533
2532
  'lastMessage': string | null;
2534
2533
  'createdAt': string;
2535
2534
  }
2536
-
2537
-
2538
- export interface BaseThreadCircle {
2539
- 'id': string;
2540
- 'name': string;
2541
- 'createdAt': string;
2542
- 'updatedAt': string;
2543
- 'type': ThreadCircleType;
2544
- }
2545
-
2546
-
2547
- export interface BaseThreadCircleAccount {
2548
- 'accountId': string;
2549
- 'role': ThreadCircleAccountRole;
2550
- 'account': BaseAccount;
2551
- }
2552
-
2553
-
2554
- export interface BaseThreadMember {
2555
- 'id': string;
2556
- 'accountId': string;
2557
- 'lastReadAt': string | null;
2558
- 'notifications': boolean;
2559
- 'account': BaseAccount;
2560
- 'blocked': boolean;
2561
- }
2562
2535
  export interface BaseThreadMessage {
2563
2536
  'id': string;
2564
2537
  'body': string;
2565
2538
  'accountId': string | null;
2566
- 'viewer': BaseThreadMember | null;
2539
+ 'threadAccount': ThreadAccount | null;
2567
2540
  'createdAt': string;
2568
2541
  'editedAt': string | null;
2569
2542
  'sentAt': string;
2543
+ 'deletedAt'?: string | null;
2570
2544
  }
2571
2545
  export interface BaseThreadMessageEntity {
2572
2546
  'type': string;
@@ -4409,26 +4383,6 @@ export enum CreateThread200ResponseStatusEnum {
4409
4383
  Ok = 'ok'
4410
4384
  }
4411
4385
 
4412
- export interface CreateThreadCircle200Response {
4413
- 'status': CreateThreadCircle200ResponseStatusEnum;
4414
- 'message': string;
4415
- 'data': ThreadCircle;
4416
- }
4417
-
4418
- export enum CreateThreadCircle200ResponseStatusEnum {
4419
- Ok = 'ok'
4420
- }
4421
-
4422
- export interface CreateThreadCircleAccount200Response {
4423
- 'status': CreateThreadCircleAccount200ResponseStatusEnum;
4424
- 'message': string;
4425
- 'data': ThreadCircleAccount;
4426
- }
4427
-
4428
- export enum CreateThreadCircleAccount200ResponseStatusEnum {
4429
- Ok = 'ok'
4430
- }
4431
-
4432
4386
  export interface CreateThreadMessage200Response {
4433
4387
  'status': CreateThreadMessage200ResponseStatusEnum;
4434
4388
  'message': string;
@@ -9854,39 +9808,6 @@ export enum GetTaxLogs200ResponseStatusEnum {
9854
9808
  Ok = 'ok'
9855
9809
  }
9856
9810
 
9857
- export interface GetThreadCircleAccounts200Response {
9858
- 'status': GetThreadCircleAccounts200ResponseStatusEnum;
9859
- 'message': string;
9860
- 'data': Array<ThreadCircleAccount>;
9861
- 'count'?: number;
9862
- }
9863
-
9864
- export enum GetThreadCircleAccounts200ResponseStatusEnum {
9865
- Ok = 'ok'
9866
- }
9867
-
9868
- export interface GetThreadCircles200Response {
9869
- 'status': GetThreadCircles200ResponseStatusEnum;
9870
- 'message': string;
9871
- 'data': Array<ThreadCircle>;
9872
- 'count'?: number;
9873
- }
9874
-
9875
- export enum GetThreadCircles200ResponseStatusEnum {
9876
- Ok = 'ok'
9877
- }
9878
-
9879
- export interface GetThreadMembers200Response {
9880
- 'status': GetThreadMembers200ResponseStatusEnum;
9881
- 'message': string;
9882
- 'data': Array<ThreadMember>;
9883
- 'count'?: number;
9884
- }
9885
-
9886
- export enum GetThreadMembers200ResponseStatusEnum {
9887
- Ok = 'ok'
9888
- }
9889
-
9890
9811
  export interface GetThreadMessageFiles200Response {
9891
9812
  'status': GetThreadMessageFiles200ResponseStatusEnum;
9892
9813
  'message': string;
@@ -13678,119 +13599,45 @@ export interface Thread {
13678
13599
  'subject': string;
13679
13600
  'imageId': string | null;
13680
13601
  'image': BaseImage | null;
13681
- 'type': ThreadType;
13682
13602
  'lastMessageAt': string | null;
13683
13603
  'lastMessage': string | null;
13684
13604
  'createdAt': string;
13605
+ 'accounts': Array<ThreadAccount>;
13606
+ '_count'?: ThreadAllOfCount;
13685
13607
  }
13686
-
13687
-
13688
- export interface ThreadCircle {
13608
+ export interface ThreadAccount {
13689
13609
  'id': string;
13690
- 'name': string;
13691
- 'createdAt': string;
13692
- 'updatedAt': string;
13693
- 'type': ThreadCircleType;
13694
- }
13695
-
13696
-
13697
- export interface ThreadCircleAccount {
13698
- 'accountId': string;
13699
- 'role': ThreadCircleAccountRole;
13700
- 'account': BaseAccount;
13701
- }
13702
-
13703
-
13704
- export interface ThreadCircleAccountCreateInputs {
13705
- 'accountId': string;
13706
- 'role': ThreadCircleAccountRole;
13707
- }
13708
-
13709
-
13710
-
13711
- export enum ThreadCircleAccountRole {
13712
- Member = 'member',
13713
- Manager = 'manager',
13714
- Invited = 'invited'
13715
- }
13716
-
13717
-
13718
- export interface ThreadCircleAccountUpdateInputs {
13719
- 'role'?: ThreadCircleAccountRole | null;
13720
- }
13721
-
13722
-
13723
- export interface ThreadCircleCreateInputs {
13724
- 'name': string;
13725
- }
13726
-
13727
- export enum ThreadCircleType {
13728
- Private = 'private',
13729
- Direct = 'direct'
13730
- }
13731
-
13732
-
13733
- export interface ThreadCircleUpdateInputs {
13734
- 'name'?: string | null;
13735
- }
13736
- export interface ThreadCreateInputs {
13737
- 'subject'?: string | null;
13738
- 'imageId'?: string | null;
13739
- 'groupId'?: string;
13740
- 'circleId'?: string;
13741
- 'eventId'?: string;
13742
- }
13743
- export interface ThreadInvitation {
13744
- 'id': string;
13745
- 'organizationId': string;
13746
13610
  'threadId': string;
13747
- 'thread': BaseThread;
13748
- 'status': ThreadInvitationStatus;
13749
- 'role': ThreadMemberRole;
13750
- 'invitedById': string;
13751
- 'invitedBy': BaseAccount;
13752
- 'invitedId': string;
13753
- 'invited': BaseAccount;
13754
- 'createdAt': string;
13755
- 'updatedAt': string;
13756
- }
13757
-
13758
-
13759
-
13760
- export enum ThreadInvitationStatus {
13761
- Invited = 'invited',
13762
- Rejected = 'rejected'
13763
- }
13764
-
13765
-
13766
- export interface ThreadMember {
13767
- 'id': string;
13768
13611
  'accountId': string;
13612
+ 'account': BaseAccount;
13769
13613
  'lastReadAt': string | null;
13614
+ 'typingAt': string | null;
13770
13615
  'notifications': boolean;
13771
- 'account': BaseAccount;
13772
13616
  'blocked': boolean;
13773
13617
  'createdAt': string;
13774
13618
  'updatedAt': string;
13775
13619
  }
13776
-
13777
- export enum ThreadMemberRole {
13778
- Member = 'member',
13779
- Moderator = 'moderator'
13780
- }
13781
-
13782
-
13783
- export interface ThreadMemberUpdateInputs {
13620
+ export interface ThreadAccountUpdateInputs {
13621
+ 'notifications'?: boolean;
13784
13622
  'blocked'?: boolean;
13785
13623
  }
13624
+ export interface ThreadAllOfCount {
13625
+ 'messages'?: number;
13626
+ }
13627
+ export interface ThreadCreateInputs {
13628
+ 'accountIds': Array<string>;
13629
+ 'subject'?: string | null;
13630
+ 'imageId'?: string | null;
13631
+ }
13786
13632
  export interface ThreadMessage {
13787
13633
  'id': string;
13788
13634
  'body': string;
13789
13635
  'accountId': string | null;
13790
- 'viewer': BaseThreadMember | null;
13636
+ 'threadAccount': ThreadAccount | null;
13791
13637
  'createdAt': string;
13792
13638
  'editedAt': string | null;
13793
13639
  'sentAt': string;
13640
+ 'deletedAt'?: string | null;
13794
13641
  'type': ThreadMessageType;
13795
13642
  'reactions': Array<ThreadMessageReaction>;
13796
13643
  'entities': Array<ThreadMessageEntity>;
@@ -13799,6 +13646,7 @@ export interface ThreadMessage {
13799
13646
  'files': Array<BaseFile>;
13800
13647
  'images': Array<BaseImage>;
13801
13648
  'videos': Array<BaseVideo>;
13649
+ 'reads'?: Array<ThreadMessageRead>;
13802
13650
  }
13803
13651
 
13804
13652
 
@@ -13835,6 +13683,13 @@ export interface ThreadMessageReactionCreateInputs {
13835
13683
  export interface ThreadMessageReactionUpdateInputs {
13836
13684
  'emojiName'?: string;
13837
13685
  }
13686
+ export interface ThreadMessageRead {
13687
+ 'id': string;
13688
+ 'threadId': string;
13689
+ 'messageId': string;
13690
+ 'accountId': string;
13691
+ 'readAt': string;
13692
+ }
13838
13693
 
13839
13694
  export enum ThreadMessageType {
13840
13695
  User = 'user',
@@ -13847,15 +13702,6 @@ export interface ThreadMessageUpdateInputs {
13847
13702
  'body': string;
13848
13703
  'entities': Array<object>;
13849
13704
  }
13850
-
13851
- export enum ThreadType {
13852
- Circle = 'circle',
13853
- Group = 'group',
13854
- Event = 'event',
13855
- Stream = 'stream'
13856
- }
13857
-
13858
-
13859
13705
  export interface ThreadUpdateInputs {
13860
13706
  'subject'?: string | null;
13861
13707
  'imageId'?: string | null;
@@ -14075,13 +13921,13 @@ export enum UpdateSeriesQuestionTranslation200ResponseStatusEnum {
14075
13921
  Ok = 'ok'
14076
13922
  }
14077
13923
 
14078
- export interface UpdateThreadMember200Response {
14079
- 'status': UpdateThreadMember200ResponseStatusEnum;
13924
+ export interface UpdateThreadAccount200Response {
13925
+ 'status': UpdateThreadAccount200ResponseStatusEnum;
14080
13926
  'message': string;
14081
- 'data': ThreadMember;
13927
+ 'data': ThreadAccount;
14082
13928
  }
14083
13929
 
14084
- export enum UpdateThreadMember200ResponseStatusEnum {
13930
+ export enum UpdateThreadAccount200ResponseStatusEnum {
14085
13931
  Ok = 'ok'
14086
13932
  }
14087
13933
 
@@ -38028,66 +37874,6 @@ export const EventsApiAxiosParamCreator = function (configuration?: Configuratio
38028
37874
  options: localVarRequestOptions,
38029
37875
  };
38030
37876
  },
38031
- /**
38032
- * Get Event Threads endpoint
38033
- * @summary Get Event Threads
38034
- * @param {string} eventId The event identifier
38035
- * @param {number} [page] Page number
38036
- * @param {number} [pageSize] Number of items per page
38037
- * @param {string} [orderBy] Field to order by
38038
- * @param {string} [search] Search query
38039
- * @param {*} [options] Override http request option.
38040
- * @throws {RequiredError}
38041
- */
38042
- getEventThreads: async (eventId: string, page?: number, pageSize?: number, orderBy?: string, search?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
38043
- // verify required parameter 'eventId' is not null or undefined
38044
- assertParamExists('getEventThreads', 'eventId', eventId)
38045
- const localVarPath = `/events/{eventId}/threads`
38046
- .replace(`{${"eventId"}}`, encodeURIComponent(String(eventId)));
38047
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
38048
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
38049
- let baseOptions;
38050
- if (configuration) {
38051
- baseOptions = configuration.baseOptions;
38052
- }
38053
-
38054
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
38055
- const localVarHeaderParameter = {} as any;
38056
- const localVarQueryParameter = {} as any;
38057
-
38058
- // authentication ApiKeyAuth required
38059
- await setApiKeyToObject(localVarHeaderParameter, "api-key", configuration)
38060
-
38061
- // authentication OrganizationId required
38062
- await setApiKeyToObject(localVarHeaderParameter, "organization", configuration)
38063
-
38064
- if (page !== undefined) {
38065
- localVarQueryParameter['page'] = page;
38066
- }
38067
-
38068
- if (pageSize !== undefined) {
38069
- localVarQueryParameter['pageSize'] = pageSize;
38070
- }
38071
-
38072
- if (orderBy !== undefined) {
38073
- localVarQueryParameter['orderBy'] = orderBy;
38074
- }
38075
-
38076
- if (search !== undefined) {
38077
- localVarQueryParameter['search'] = search;
38078
- }
38079
-
38080
- localVarHeaderParameter['Accept'] = 'application/json';
38081
-
38082
- setSearchParams(localVarUrlObj, localVarQueryParameter);
38083
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
38084
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
38085
-
38086
- return {
38087
- url: toPathString(localVarUrlObj),
38088
- options: localVarRequestOptions,
38089
- };
38090
- },
38091
37877
  /**
38092
37878
  * Get Event Tiers endpoint
38093
37879
  * @summary Get Event Tiers
@@ -38363,23 +38149,6 @@ export const EventsApiFp = function(configuration?: Configuration) {
38363
38149
  const localVarOperationServerBasePath = operationServerMap['EventsApi.getEventPayments']?.[localVarOperationServerIndex]?.url;
38364
38150
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
38365
38151
  },
38366
- /**
38367
- * Get Event Threads endpoint
38368
- * @summary Get Event Threads
38369
- * @param {string} eventId The event identifier
38370
- * @param {number} [page] Page number
38371
- * @param {number} [pageSize] Number of items per page
38372
- * @param {string} [orderBy] Field to order by
38373
- * @param {string} [search] Search query
38374
- * @param {*} [options] Override http request option.
38375
- * @throws {RequiredError}
38376
- */
38377
- async getEventThreads(eventId: string, page?: number, pageSize?: number, orderBy?: string, search?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetAccountThreads200Response>> {
38378
- const localVarAxiosArgs = await localVarAxiosParamCreator.getEventThreads(eventId, page, pageSize, orderBy, search, options);
38379
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
38380
- const localVarOperationServerBasePath = operationServerMap['EventsApi.getEventThreads']?.[localVarOperationServerIndex]?.url;
38381
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
38382
- },
38383
38152
  /**
38384
38153
  * Get Event Tiers endpoint
38385
38154
  * @summary Get Event Tiers
@@ -38514,16 +38283,6 @@ export const EventsApiFactory = function (configuration?: Configuration, basePat
38514
38283
  getEventPayments(requestParameters: EventsApiGetEventPaymentsRequest, options?: RawAxiosRequestConfig): AxiosPromise<GetAccountPayments200Response> {
38515
38284
  return localVarFp.getEventPayments(requestParameters.eventId, requestParameters.page, requestParameters.pageSize, requestParameters.orderBy, requestParameters.search, options).then((request) => request(axios, basePath));
38516
38285
  },
38517
- /**
38518
- * Get Event Threads endpoint
38519
- * @summary Get Event Threads
38520
- * @param {EventsApiGetEventThreadsRequest} requestParameters Request parameters.
38521
- * @param {*} [options] Override http request option.
38522
- * @throws {RequiredError}
38523
- */
38524
- getEventThreads(requestParameters: EventsApiGetEventThreadsRequest, options?: RawAxiosRequestConfig): AxiosPromise<GetAccountThreads200Response> {
38525
- return localVarFp.getEventThreads(requestParameters.eventId, requestParameters.page, requestParameters.pageSize, requestParameters.orderBy, requestParameters.search, options).then((request) => request(axios, basePath));
38526
- },
38527
38286
  /**
38528
38287
  * Get Event Tiers endpoint
38529
38288
  * @summary Get Event Tiers
@@ -38686,36 +38445,6 @@ export interface EventsApiGetEventPaymentsRequest {
38686
38445
  readonly search?: string
38687
38446
  }
38688
38447
 
38689
- /**
38690
- * Request parameters for getEventThreads operation in EventsApi.
38691
- */
38692
- export interface EventsApiGetEventThreadsRequest {
38693
- /**
38694
- * The event identifier
38695
- */
38696
- readonly eventId: string
38697
-
38698
- /**
38699
- * Page number
38700
- */
38701
- readonly page?: number
38702
-
38703
- /**
38704
- * Number of items per page
38705
- */
38706
- readonly pageSize?: number
38707
-
38708
- /**
38709
- * Field to order by
38710
- */
38711
- readonly orderBy?: string
38712
-
38713
- /**
38714
- * Search query
38715
- */
38716
- readonly search?: string
38717
- }
38718
-
38719
38448
  /**
38720
38449
  * Request parameters for getEventTiers operation in EventsApi.
38721
38450
  */
@@ -38865,17 +38594,6 @@ export class EventsApi extends BaseAPI {
38865
38594
  return EventsApiFp(this.configuration).getEventPayments(requestParameters.eventId, requestParameters.page, requestParameters.pageSize, requestParameters.orderBy, requestParameters.search, options).then((request) => request(this.axios, this.basePath));
38866
38595
  }
38867
38596
 
38868
- /**
38869
- * Get Event Threads endpoint
38870
- * @summary Get Event Threads
38871
- * @param {EventsApiGetEventThreadsRequest} requestParameters Request parameters.
38872
- * @param {*} [options] Override http request option.
38873
- * @throws {RequiredError}
38874
- */
38875
- public getEventThreads(requestParameters: EventsApiGetEventThreadsRequest, options?: RawAxiosRequestConfig) {
38876
- return EventsApiFp(this.configuration).getEventThreads(requestParameters.eventId, requestParameters.page, requestParameters.pageSize, requestParameters.orderBy, requestParameters.search, options).then((request) => request(this.axios, this.basePath));
38877
- }
38878
-
38879
38597
  /**
38880
38598
  * Get Event Tiers endpoint
38881
38599
  * @summary Get Event Tiers
@@ -102222,66 +101940,6 @@ export const GroupsApiAxiosParamCreator = function (configuration?: Configuratio
102222
101940
  options: localVarRequestOptions,
102223
101941
  };
102224
101942
  },
102225
- /**
102226
- * Get Group Threads endpoint
102227
- * @summary Get Group Threads
102228
- * @param {string} groupId The group identifier
102229
- * @param {number} [page] Page number
102230
- * @param {number} [pageSize] Number of items per page
102231
- * @param {string} [orderBy] Field to order by
102232
- * @param {string} [search] Search query
102233
- * @param {*} [options] Override http request option.
102234
- * @throws {RequiredError}
102235
- */
102236
- getGroupThreads: async (groupId: string, page?: number, pageSize?: number, orderBy?: string, search?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
102237
- // verify required parameter 'groupId' is not null or undefined
102238
- assertParamExists('getGroupThreads', 'groupId', groupId)
102239
- const localVarPath = `/groups/{groupId}/threads`
102240
- .replace(`{${"groupId"}}`, encodeURIComponent(String(groupId)));
102241
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
102242
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
102243
- let baseOptions;
102244
- if (configuration) {
102245
- baseOptions = configuration.baseOptions;
102246
- }
102247
-
102248
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
102249
- const localVarHeaderParameter = {} as any;
102250
- const localVarQueryParameter = {} as any;
102251
-
102252
- // authentication ApiKeyAuth required
102253
- await setApiKeyToObject(localVarHeaderParameter, "api-key", configuration)
102254
-
102255
- // authentication OrganizationId required
102256
- await setApiKeyToObject(localVarHeaderParameter, "organization", configuration)
102257
-
102258
- if (page !== undefined) {
102259
- localVarQueryParameter['page'] = page;
102260
- }
102261
-
102262
- if (pageSize !== undefined) {
102263
- localVarQueryParameter['pageSize'] = pageSize;
102264
- }
102265
-
102266
- if (orderBy !== undefined) {
102267
- localVarQueryParameter['orderBy'] = orderBy;
102268
- }
102269
-
102270
- if (search !== undefined) {
102271
- localVarQueryParameter['search'] = search;
102272
- }
102273
-
102274
- localVarHeaderParameter['Accept'] = 'application/json';
102275
-
102276
- setSearchParams(localVarUrlObj, localVarQueryParameter);
102277
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
102278
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
102279
-
102280
- return {
102281
- url: toPathString(localVarUrlObj),
102282
- options: localVarRequestOptions,
102283
- };
102284
- },
102285
101943
  /**
102286
101944
  * Get Groups endpoint
102287
101945
  * @summary Get Groups
@@ -102460,23 +102118,6 @@ export const GroupsApiFp = function(configuration?: Configuration) {
102460
102118
  const localVarOperationServerBasePath = operationServerMap['GroupsApi.getGroupActivities']?.[localVarOperationServerIndex]?.url;
102461
102119
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
102462
102120
  },
102463
- /**
102464
- * Get Group Threads endpoint
102465
- * @summary Get Group Threads
102466
- * @param {string} groupId The group identifier
102467
- * @param {number} [page] Page number
102468
- * @param {number} [pageSize] Number of items per page
102469
- * @param {string} [orderBy] Field to order by
102470
- * @param {string} [search] Search query
102471
- * @param {*} [options] Override http request option.
102472
- * @throws {RequiredError}
102473
- */
102474
- async getGroupThreads(groupId: string, page?: number, pageSize?: number, orderBy?: string, search?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetAccountThreads200Response>> {
102475
- const localVarAxiosArgs = await localVarAxiosParamCreator.getGroupThreads(groupId, page, pageSize, orderBy, search, options);
102476
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
102477
- const localVarOperationServerBasePath = operationServerMap['GroupsApi.getGroupThreads']?.[localVarOperationServerIndex]?.url;
102478
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
102479
- },
102480
102121
  /**
102481
102122
  * Get Groups endpoint
102482
102123
  * @summary Get Groups
@@ -102558,16 +102199,6 @@ export const GroupsApiFactory = function (configuration?: Configuration, basePat
102558
102199
  getGroupActivities(requestParameters: GroupsApiGetGroupActivitiesRequest, options?: RawAxiosRequestConfig): AxiosPromise<GetAccountActivities200Response> {
102559
102200
  return localVarFp.getGroupActivities(requestParameters.groupId, requestParameters.featured, requestParameters.status, requestParameters.page, requestParameters.pageSize, requestParameters.orderBy, requestParameters.search, options).then((request) => request(axios, basePath));
102560
102201
  },
102561
- /**
102562
- * Get Group Threads endpoint
102563
- * @summary Get Group Threads
102564
- * @param {GroupsApiGetGroupThreadsRequest} requestParameters Request parameters.
102565
- * @param {*} [options] Override http request option.
102566
- * @throws {RequiredError}
102567
- */
102568
- getGroupThreads(requestParameters: GroupsApiGetGroupThreadsRequest, options?: RawAxiosRequestConfig): AxiosPromise<GetAccountThreads200Response> {
102569
- return localVarFp.getGroupThreads(requestParameters.groupId, requestParameters.page, requestParameters.pageSize, requestParameters.orderBy, requestParameters.search, options).then((request) => request(axios, basePath));
102570
- },
102571
102202
  /**
102572
102203
  * Get Groups endpoint
102573
102204
  * @summary Get Groups
@@ -102658,36 +102289,6 @@ export interface GroupsApiGetGroupActivitiesRequest {
102658
102289
  readonly search?: string
102659
102290
  }
102660
102291
 
102661
- /**
102662
- * Request parameters for getGroupThreads operation in GroupsApi.
102663
- */
102664
- export interface GroupsApiGetGroupThreadsRequest {
102665
- /**
102666
- * The group identifier
102667
- */
102668
- readonly groupId: string
102669
-
102670
- /**
102671
- * Page number
102672
- */
102673
- readonly page?: number
102674
-
102675
- /**
102676
- * Number of items per page
102677
- */
102678
- readonly pageSize?: number
102679
-
102680
- /**
102681
- * Field to order by
102682
- */
102683
- readonly orderBy?: string
102684
-
102685
- /**
102686
- * Search query
102687
- */
102688
- readonly search?: string
102689
- }
102690
-
102691
102292
  /**
102692
102293
  * Request parameters for getGroups operation in GroupsApi.
102693
102294
  */
@@ -102783,17 +102384,6 @@ export class GroupsApi extends BaseAPI {
102783
102384
  return GroupsApiFp(this.configuration).getGroupActivities(requestParameters.groupId, requestParameters.featured, requestParameters.status, requestParameters.page, requestParameters.pageSize, requestParameters.orderBy, requestParameters.search, options).then((request) => request(this.axios, this.basePath));
102784
102385
  }
102785
102386
 
102786
- /**
102787
- * Get Group Threads endpoint
102788
- * @summary Get Group Threads
102789
- * @param {GroupsApiGetGroupThreadsRequest} requestParameters Request parameters.
102790
- * @param {*} [options] Override http request option.
102791
- * @throws {RequiredError}
102792
- */
102793
- public getGroupThreads(requestParameters: GroupsApiGetGroupThreadsRequest, options?: RawAxiosRequestConfig) {
102794
- return GroupsApiFp(this.configuration).getGroupThreads(requestParameters.groupId, requestParameters.page, requestParameters.pageSize, requestParameters.orderBy, requestParameters.search, options).then((request) => request(this.axios, this.basePath));
102795
- }
102796
-
102797
102387
  /**
102798
102388
  * Get Groups endpoint
102799
102389
  * @summary Get Groups
@@ -146064,7 +145654,6 @@ export const ThreadsApiAxiosParamCreator = function (configuration?: Configurati
146064
145654
  /**
146065
145655
  * Get Threads endpoint
146066
145656
  * @summary Get Threads
146067
- * @param {ThreadType} [type] Filter by type
146068
145657
  * @param {number} [page] Page number
146069
145658
  * @param {number} [pageSize] Number of items per page
146070
145659
  * @param {string} [orderBy] Field to order by
@@ -146072,7 +145661,7 @@ export const ThreadsApiAxiosParamCreator = function (configuration?: Configurati
146072
145661
  * @param {*} [options] Override http request option.
146073
145662
  * @throws {RequiredError}
146074
145663
  */
146075
- getThreads: async (type?: ThreadType, page?: number, pageSize?: number, orderBy?: string, search?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
145664
+ getThreads: async (page?: number, pageSize?: number, orderBy?: string, search?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
146076
145665
  const localVarPath = `/threads`;
146077
145666
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
146078
145667
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -146091,10 +145680,6 @@ export const ThreadsApiAxiosParamCreator = function (configuration?: Configurati
146091
145680
  // authentication OrganizationId required
146092
145681
  await setApiKeyToObject(localVarHeaderParameter, "organization", configuration)
146093
145682
 
146094
- if (type !== undefined) {
146095
- localVarQueryParameter['type'] = type;
146096
- }
146097
-
146098
145683
  if (page !== undefined) {
146099
145684
  localVarQueryParameter['page'] = page;
146100
145685
  }
@@ -146218,7 +145803,6 @@ export const ThreadsApiFp = function(configuration?: Configuration) {
146218
145803
  /**
146219
145804
  * Get Threads endpoint
146220
145805
  * @summary Get Threads
146221
- * @param {ThreadType} [type] Filter by type
146222
145806
  * @param {number} [page] Page number
146223
145807
  * @param {number} [pageSize] Number of items per page
146224
145808
  * @param {string} [orderBy] Field to order by
@@ -146226,8 +145810,8 @@ export const ThreadsApiFp = function(configuration?: Configuration) {
146226
145810
  * @param {*} [options] Override http request option.
146227
145811
  * @throws {RequiredError}
146228
145812
  */
146229
- async getThreads(type?: ThreadType, page?: number, pageSize?: number, orderBy?: string, search?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetAccountThreads200Response>> {
146230
- const localVarAxiosArgs = await localVarAxiosParamCreator.getThreads(type, page, pageSize, orderBy, search, options);
145813
+ async getThreads(page?: number, pageSize?: number, orderBy?: string, search?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetAccountThreads200Response>> {
145814
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getThreads(page, pageSize, orderBy, search, options);
146231
145815
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
146232
145816
  const localVarOperationServerBasePath = operationServerMap['ThreadsApi.getThreads']?.[localVarOperationServerIndex]?.url;
146233
145817
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -146293,7 +145877,7 @@ export const ThreadsApiFactory = function (configuration?: Configuration, basePa
146293
145877
  * @throws {RequiredError}
146294
145878
  */
146295
145879
  getThreads(requestParameters: ThreadsApiGetThreadsRequest = {}, options?: RawAxiosRequestConfig): AxiosPromise<GetAccountThreads200Response> {
146296
- return localVarFp.getThreads(requestParameters.type, requestParameters.page, requestParameters.pageSize, requestParameters.orderBy, requestParameters.search, options).then((request) => request(axios, basePath));
145880
+ return localVarFp.getThreads(requestParameters.page, requestParameters.pageSize, requestParameters.orderBy, requestParameters.search, options).then((request) => request(axios, basePath));
146297
145881
  },
146298
145882
  /**
146299
145883
  * Update Thread endpoint
@@ -146339,11 +145923,6 @@ export interface ThreadsApiGetThreadRequest {
146339
145923
  * Request parameters for getThreads operation in ThreadsApi.
146340
145924
  */
146341
145925
  export interface ThreadsApiGetThreadsRequest {
146342
- /**
146343
- * Filter by type
146344
- */
146345
- readonly type?: ThreadType
146346
-
146347
145926
  /**
146348
145927
  * Page number
146349
145928
  */
@@ -146422,7 +146001,7 @@ export class ThreadsApi extends BaseAPI {
146422
146001
  * @throws {RequiredError}
146423
146002
  */
146424
146003
  public getThreads(requestParameters: ThreadsApiGetThreadsRequest = {}, options?: RawAxiosRequestConfig) {
146425
- return ThreadsApiFp(this.configuration).getThreads(requestParameters.type, requestParameters.page, requestParameters.pageSize, requestParameters.orderBy, requestParameters.search, options).then((request) => request(this.axios, this.basePath));
146004
+ return ThreadsApiFp(this.configuration).getThreads(requestParameters.page, requestParameters.pageSize, requestParameters.orderBy, requestParameters.search, options).then((request) => request(this.axios, this.basePath));
146426
146005
  }
146427
146006
 
146428
146007
  /**
@@ -146440,63 +146019,26 @@ export class ThreadsApi extends BaseAPI {
146440
146019
 
146441
146020
 
146442
146021
  /**
146443
- * ThreadsCirclesApi - axios parameter creator
146022
+ * ThreadsAccountsApi - axios parameter creator
146444
146023
  */
146445
- export const ThreadsCirclesApiAxiosParamCreator = function (configuration?: Configuration) {
146024
+ export const ThreadsAccountsApiAxiosParamCreator = function (configuration?: Configuration) {
146446
146025
  return {
146447
146026
  /**
146448
- * Create Thread Circle endpoint
146449
- * @summary Create Thread Circle
146450
- * @param {ThreadCircleCreateInputs} threadCircleCreateInputs
146451
- * @param {*} [options] Override http request option.
146452
- * @throws {RequiredError}
146453
- */
146454
- createThreadCircle: async (threadCircleCreateInputs: ThreadCircleCreateInputs, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
146455
- // verify required parameter 'threadCircleCreateInputs' is not null or undefined
146456
- assertParamExists('createThreadCircle', 'threadCircleCreateInputs', threadCircleCreateInputs)
146457
- const localVarPath = `/threads/circles`;
146458
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
146459
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
146460
- let baseOptions;
146461
- if (configuration) {
146462
- baseOptions = configuration.baseOptions;
146463
- }
146464
-
146465
- const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
146466
- const localVarHeaderParameter = {} as any;
146467
- const localVarQueryParameter = {} as any;
146468
-
146469
- // authentication ApiKeyAuth required
146470
- await setApiKeyToObject(localVarHeaderParameter, "api-key", configuration)
146471
-
146472
- // authentication OrganizationId required
146473
- await setApiKeyToObject(localVarHeaderParameter, "organization", configuration)
146474
-
146475
- localVarHeaderParameter['Content-Type'] = 'application/json';
146476
- localVarHeaderParameter['Accept'] = 'application/json';
146477
-
146478
- setSearchParams(localVarUrlObj, localVarQueryParameter);
146479
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
146480
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
146481
- localVarRequestOptions.data = serializeDataIfNeeded(threadCircleCreateInputs, localVarRequestOptions, configuration)
146482
-
146483
- return {
146484
- url: toPathString(localVarUrlObj),
146485
- options: localVarRequestOptions,
146486
- };
146487
- },
146488
- /**
146489
- * Delete Thread Circle endpoint
146490
- * @summary Delete Thread Circle
146491
- * @param {string} circleId The circle identifier
146027
+ * Delete Thread Account endpoint
146028
+ * @summary Delete Thread Account
146029
+ * @param {string} threadId The thread identifier
146030
+ * @param {string} accountId The account identifier
146492
146031
  * @param {*} [options] Override http request option.
146493
146032
  * @throws {RequiredError}
146494
146033
  */
146495
- deleteThreadCircle: async (circleId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
146496
- // verify required parameter 'circleId' is not null or undefined
146497
- assertParamExists('deleteThreadCircle', 'circleId', circleId)
146498
- const localVarPath = `/threads/circles/{circleId}`
146499
- .replace(`{${"circleId"}}`, encodeURIComponent(String(circleId)));
146034
+ deleteThreadAccount: async (threadId: string, accountId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
146035
+ // verify required parameter 'threadId' is not null or undefined
146036
+ assertParamExists('deleteThreadAccount', 'threadId', threadId)
146037
+ // verify required parameter 'accountId' is not null or undefined
146038
+ assertParamExists('deleteThreadAccount', 'accountId', accountId)
146039
+ const localVarPath = `/threads/{threadId}/accounts/{accountId}`
146040
+ .replace(`{${"threadId"}}`, encodeURIComponent(String(threadId)))
146041
+ .replace(`{${"accountId"}}`, encodeURIComponent(String(accountId)));
146500
146042
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
146501
146043
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
146502
146044
  let baseOptions;
@@ -146526,109 +146068,9 @@ export const ThreadsCirclesApiAxiosParamCreator = function (configuration?: Conf
146526
146068
  };
146527
146069
  },
146528
146070
  /**
146529
- * Get Thread Circle endpoint
146530
- * @summary Get Thread Circle
146531
- * @param {string} circleId The circle identifier
146532
- * @param {*} [options] Override http request option.
146533
- * @throws {RequiredError}
146534
- */
146535
- getThreadCircle: async (circleId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
146536
- // verify required parameter 'circleId' is not null or undefined
146537
- assertParamExists('getThreadCircle', 'circleId', circleId)
146538
- const localVarPath = `/threads/circles/{circleId}`
146539
- .replace(`{${"circleId"}}`, encodeURIComponent(String(circleId)));
146540
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
146541
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
146542
- let baseOptions;
146543
- if (configuration) {
146544
- baseOptions = configuration.baseOptions;
146545
- }
146546
-
146547
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
146548
- const localVarHeaderParameter = {} as any;
146549
- const localVarQueryParameter = {} as any;
146550
-
146551
- // authentication ApiKeyAuth required
146552
- await setApiKeyToObject(localVarHeaderParameter, "api-key", configuration)
146553
-
146554
- // authentication OrganizationId required
146555
- await setApiKeyToObject(localVarHeaderParameter, "organization", configuration)
146556
-
146557
- localVarHeaderParameter['Accept'] = 'application/json';
146558
-
146559
- setSearchParams(localVarUrlObj, localVarQueryParameter);
146560
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
146561
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
146562
-
146563
- return {
146564
- url: toPathString(localVarUrlObj),
146565
- options: localVarRequestOptions,
146566
- };
146567
- },
146568
- /**
146569
- * Get Thread Circle Threads endpoint
146570
- * @summary Get Thread Circle Threads
146571
- * @param {string} circleId The circle identifier
146572
- * @param {number} [page] Page number
146573
- * @param {number} [pageSize] Number of items per page
146574
- * @param {string} [orderBy] Field to order by
146575
- * @param {string} [search] Search query
146576
- * @param {*} [options] Override http request option.
146577
- * @throws {RequiredError}
146578
- */
146579
- getThreadCircleThreads: async (circleId: string, page?: number, pageSize?: number, orderBy?: string, search?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
146580
- // verify required parameter 'circleId' is not null or undefined
146581
- assertParamExists('getThreadCircleThreads', 'circleId', circleId)
146582
- const localVarPath = `/threads/circles/{circleId}/threads`
146583
- .replace(`{${"circleId"}}`, encodeURIComponent(String(circleId)));
146584
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
146585
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
146586
- let baseOptions;
146587
- if (configuration) {
146588
- baseOptions = configuration.baseOptions;
146589
- }
146590
-
146591
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
146592
- const localVarHeaderParameter = {} as any;
146593
- const localVarQueryParameter = {} as any;
146594
-
146595
- // authentication ApiKeyAuth required
146596
- await setApiKeyToObject(localVarHeaderParameter, "api-key", configuration)
146597
-
146598
- // authentication OrganizationId required
146599
- await setApiKeyToObject(localVarHeaderParameter, "organization", configuration)
146600
-
146601
- if (page !== undefined) {
146602
- localVarQueryParameter['page'] = page;
146603
- }
146604
-
146605
- if (pageSize !== undefined) {
146606
- localVarQueryParameter['pageSize'] = pageSize;
146607
- }
146608
-
146609
- if (orderBy !== undefined) {
146610
- localVarQueryParameter['orderBy'] = orderBy;
146611
- }
146612
-
146613
- if (search !== undefined) {
146614
- localVarQueryParameter['search'] = search;
146615
- }
146616
-
146617
- localVarHeaderParameter['Accept'] = 'application/json';
146618
-
146619
- setSearchParams(localVarUrlObj, localVarQueryParameter);
146620
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
146621
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
146622
-
146623
- return {
146624
- url: toPathString(localVarUrlObj),
146625
- options: localVarRequestOptions,
146626
- };
146627
- },
146628
- /**
146629
- * Get Thread Circles endpoint
146630
- * @summary Get Thread Circles
146631
- * @param {ThreadCircleType} type Filter by type
146071
+ * Get Thread Accounts endpoint
146072
+ * @summary Get Thread Accounts
146073
+ * @param {string} threadId The thread identifier
146632
146074
  * @param {number} [page] Page number
146633
146075
  * @param {number} [pageSize] Number of items per page
146634
146076
  * @param {string} [orderBy] Field to order by
@@ -146636,10 +146078,11 @@ export const ThreadsCirclesApiAxiosParamCreator = function (configuration?: Conf
146636
146078
  * @param {*} [options] Override http request option.
146637
146079
  * @throws {RequiredError}
146638
146080
  */
146639
- getThreadCircles: async (type: ThreadCircleType, page?: number, pageSize?: number, orderBy?: string, search?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
146640
- // verify required parameter 'type' is not null or undefined
146641
- assertParamExists('getThreadCircles', 'type', type)
146642
- const localVarPath = `/threads/circles`;
146081
+ getThreadAccounts: async (threadId: string, page?: number, pageSize?: number, orderBy?: string, search?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
146082
+ // verify required parameter 'threadId' is not null or undefined
146083
+ assertParamExists('getThreadAccounts', 'threadId', threadId)
146084
+ const localVarPath = `/threads/{threadId}/accounts`
146085
+ .replace(`{${"threadId"}}`, encodeURIComponent(String(threadId)));
146643
146086
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
146644
146087
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
146645
146088
  let baseOptions;
@@ -146657,10 +146100,6 @@ export const ThreadsCirclesApiAxiosParamCreator = function (configuration?: Conf
146657
146100
  // authentication OrganizationId required
146658
146101
  await setApiKeyToObject(localVarHeaderParameter, "organization", configuration)
146659
146102
 
146660
- if (type !== undefined) {
146661
- localVarQueryParameter['type'] = type;
146662
- }
146663
-
146664
146103
  if (page !== undefined) {
146665
146104
  localVarQueryParameter['page'] = page;
146666
146105
  }
@@ -146689,20 +146128,24 @@ export const ThreadsCirclesApiAxiosParamCreator = function (configuration?: Conf
146689
146128
  };
146690
146129
  },
146691
146130
  /**
146692
- * Update Thread Circle endpoint
146693
- * @summary Update Thread Circle
146694
- * @param {string} circleId The circle identifier
146695
- * @param {ThreadCircleUpdateInputs} threadCircleUpdateInputs
146131
+ * Update Thread Account endpoint
146132
+ * @summary Update Thread Account
146133
+ * @param {string} threadId The thread identifier
146134
+ * @param {string} accountId The account identifier
146135
+ * @param {ThreadAccountUpdateInputs} threadAccountUpdateInputs
146696
146136
  * @param {*} [options] Override http request option.
146697
146137
  * @throws {RequiredError}
146698
146138
  */
146699
- updateThreadCircle: async (circleId: string, threadCircleUpdateInputs: ThreadCircleUpdateInputs, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
146700
- // verify required parameter 'circleId' is not null or undefined
146701
- assertParamExists('updateThreadCircle', 'circleId', circleId)
146702
- // verify required parameter 'threadCircleUpdateInputs' is not null or undefined
146703
- assertParamExists('updateThreadCircle', 'threadCircleUpdateInputs', threadCircleUpdateInputs)
146704
- const localVarPath = `/threads/circles/{circleId}`
146705
- .replace(`{${"circleId"}}`, encodeURIComponent(String(circleId)));
146139
+ updateThreadAccount: async (threadId: string, accountId: string, threadAccountUpdateInputs: ThreadAccountUpdateInputs, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
146140
+ // verify required parameter 'threadId' is not null or undefined
146141
+ assertParamExists('updateThreadAccount', 'threadId', threadId)
146142
+ // verify required parameter 'accountId' is not null or undefined
146143
+ assertParamExists('updateThreadAccount', 'accountId', accountId)
146144
+ // verify required parameter 'threadAccountUpdateInputs' is not null or undefined
146145
+ assertParamExists('updateThreadAccount', 'threadAccountUpdateInputs', threadAccountUpdateInputs)
146146
+ const localVarPath = `/threads/{threadId}/accounts/{accountId}`
146147
+ .replace(`{${"threadId"}}`, encodeURIComponent(String(threadId)))
146148
+ .replace(`{${"accountId"}}`, encodeURIComponent(String(accountId)));
146706
146149
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
146707
146150
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
146708
146151
  let baseOptions;
@@ -146726,7 +146169,7 @@ export const ThreadsCirclesApiAxiosParamCreator = function (configuration?: Conf
146726
146169
  setSearchParams(localVarUrlObj, localVarQueryParameter);
146727
146170
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
146728
146171
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
146729
- localVarRequestOptions.data = serializeDataIfNeeded(threadCircleUpdateInputs, localVarRequestOptions, configuration)
146172
+ localVarRequestOptions.data = serializeDataIfNeeded(threadAccountUpdateInputs, localVarRequestOptions, configuration)
146730
146173
 
146731
146174
  return {
146732
146175
  url: toPathString(localVarUrlObj),
@@ -146737,71 +146180,29 @@ export const ThreadsCirclesApiAxiosParamCreator = function (configuration?: Conf
146737
146180
  };
146738
146181
 
146739
146182
  /**
146740
- * ThreadsCirclesApi - functional programming interface
146183
+ * ThreadsAccountsApi - functional programming interface
146741
146184
  */
146742
- export const ThreadsCirclesApiFp = function(configuration?: Configuration) {
146743
- const localVarAxiosParamCreator = ThreadsCirclesApiAxiosParamCreator(configuration)
146185
+ export const ThreadsAccountsApiFp = function(configuration?: Configuration) {
146186
+ const localVarAxiosParamCreator = ThreadsAccountsApiAxiosParamCreator(configuration)
146744
146187
  return {
146745
146188
  /**
146746
- * Create Thread Circle endpoint
146747
- * @summary Create Thread Circle
146748
- * @param {ThreadCircleCreateInputs} threadCircleCreateInputs
146749
- * @param {*} [options] Override http request option.
146750
- * @throws {RequiredError}
146751
- */
146752
- async createThreadCircle(threadCircleCreateInputs: ThreadCircleCreateInputs, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateThreadCircle200Response>> {
146753
- const localVarAxiosArgs = await localVarAxiosParamCreator.createThreadCircle(threadCircleCreateInputs, options);
146754
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
146755
- const localVarOperationServerBasePath = operationServerMap['ThreadsCirclesApi.createThreadCircle']?.[localVarOperationServerIndex]?.url;
146756
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
146757
- },
146758
- /**
146759
- * Delete Thread Circle endpoint
146760
- * @summary Delete Thread Circle
146761
- * @param {string} circleId The circle identifier
146762
- * @param {*} [options] Override http request option.
146763
- * @throws {RequiredError}
146764
- */
146765
- async deleteThreadCircle(circleId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateAccountInvitations200Response>> {
146766
- const localVarAxiosArgs = await localVarAxiosParamCreator.deleteThreadCircle(circleId, options);
146767
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
146768
- const localVarOperationServerBasePath = operationServerMap['ThreadsCirclesApi.deleteThreadCircle']?.[localVarOperationServerIndex]?.url;
146769
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
146770
- },
146771
- /**
146772
- * Get Thread Circle endpoint
146773
- * @summary Get Thread Circle
146774
- * @param {string} circleId The circle identifier
146775
- * @param {*} [options] Override http request option.
146776
- * @throws {RequiredError}
146777
- */
146778
- async getThreadCircle(circleId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateThreadCircle200Response>> {
146779
- const localVarAxiosArgs = await localVarAxiosParamCreator.getThreadCircle(circleId, options);
146780
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
146781
- const localVarOperationServerBasePath = operationServerMap['ThreadsCirclesApi.getThreadCircle']?.[localVarOperationServerIndex]?.url;
146782
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
146783
- },
146784
- /**
146785
- * Get Thread Circle Threads endpoint
146786
- * @summary Get Thread Circle Threads
146787
- * @param {string} circleId The circle identifier
146788
- * @param {number} [page] Page number
146789
- * @param {number} [pageSize] Number of items per page
146790
- * @param {string} [orderBy] Field to order by
146791
- * @param {string} [search] Search query
146189
+ * Delete Thread Account endpoint
146190
+ * @summary Delete Thread Account
146191
+ * @param {string} threadId The thread identifier
146192
+ * @param {string} accountId The account identifier
146792
146193
  * @param {*} [options] Override http request option.
146793
146194
  * @throws {RequiredError}
146794
146195
  */
146795
- async getThreadCircleThreads(circleId: string, page?: number, pageSize?: number, orderBy?: string, search?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetAccountThreads200Response>> {
146796
- const localVarAxiosArgs = await localVarAxiosParamCreator.getThreadCircleThreads(circleId, page, pageSize, orderBy, search, options);
146196
+ async deleteThreadAccount(threadId: string, accountId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateAccountInvitations200Response>> {
146197
+ const localVarAxiosArgs = await localVarAxiosParamCreator.deleteThreadAccount(threadId, accountId, options);
146797
146198
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
146798
- const localVarOperationServerBasePath = operationServerMap['ThreadsCirclesApi.getThreadCircleThreads']?.[localVarOperationServerIndex]?.url;
146199
+ const localVarOperationServerBasePath = operationServerMap['ThreadsAccountsApi.deleteThreadAccount']?.[localVarOperationServerIndex]?.url;
146799
146200
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
146800
146201
  },
146801
146202
  /**
146802
- * Get Thread Circles endpoint
146803
- * @summary Get Thread Circles
146804
- * @param {ThreadCircleType} type Filter by type
146203
+ * Get Thread Accounts endpoint
146204
+ * @summary Get Thread Accounts
146205
+ * @param {string} threadId The thread identifier
146805
146206
  * @param {number} [page] Page number
146806
146207
  * @param {number} [pageSize] Number of items per page
146807
146208
  * @param {string} [orderBy] Field to order by
@@ -146809,133 +146210,92 @@ export const ThreadsCirclesApiFp = function(configuration?: Configuration) {
146809
146210
  * @param {*} [options] Override http request option.
146810
146211
  * @throws {RequiredError}
146811
146212
  */
146812
- async getThreadCircles(type: ThreadCircleType, page?: number, pageSize?: number, orderBy?: string, search?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetThreadCircles200Response>> {
146813
- const localVarAxiosArgs = await localVarAxiosParamCreator.getThreadCircles(type, page, pageSize, orderBy, search, options);
146213
+ async getThreadAccounts(threadId: string, page?: number, pageSize?: number, orderBy?: string, search?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetAccounts200Response>> {
146214
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getThreadAccounts(threadId, page, pageSize, orderBy, search, options);
146814
146215
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
146815
- const localVarOperationServerBasePath = operationServerMap['ThreadsCirclesApi.getThreadCircles']?.[localVarOperationServerIndex]?.url;
146216
+ const localVarOperationServerBasePath = operationServerMap['ThreadsAccountsApi.getThreadAccounts']?.[localVarOperationServerIndex]?.url;
146816
146217
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
146817
146218
  },
146818
146219
  /**
146819
- * Update Thread Circle endpoint
146820
- * @summary Update Thread Circle
146821
- * @param {string} circleId The circle identifier
146822
- * @param {ThreadCircleUpdateInputs} threadCircleUpdateInputs
146220
+ * Update Thread Account endpoint
146221
+ * @summary Update Thread Account
146222
+ * @param {string} threadId The thread identifier
146223
+ * @param {string} accountId The account identifier
146224
+ * @param {ThreadAccountUpdateInputs} threadAccountUpdateInputs
146823
146225
  * @param {*} [options] Override http request option.
146824
146226
  * @throws {RequiredError}
146825
146227
  */
146826
- async updateThreadCircle(circleId: string, threadCircleUpdateInputs: ThreadCircleUpdateInputs, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateThreadCircle200Response>> {
146827
- const localVarAxiosArgs = await localVarAxiosParamCreator.updateThreadCircle(circleId, threadCircleUpdateInputs, options);
146228
+ async updateThreadAccount(threadId: string, accountId: string, threadAccountUpdateInputs: ThreadAccountUpdateInputs, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UpdateThreadAccount200Response>> {
146229
+ const localVarAxiosArgs = await localVarAxiosParamCreator.updateThreadAccount(threadId, accountId, threadAccountUpdateInputs, options);
146828
146230
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
146829
- const localVarOperationServerBasePath = operationServerMap['ThreadsCirclesApi.updateThreadCircle']?.[localVarOperationServerIndex]?.url;
146231
+ const localVarOperationServerBasePath = operationServerMap['ThreadsAccountsApi.updateThreadAccount']?.[localVarOperationServerIndex]?.url;
146830
146232
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
146831
146233
  },
146832
146234
  }
146833
146235
  };
146834
146236
 
146835
146237
  /**
146836
- * ThreadsCirclesApi - factory interface
146238
+ * ThreadsAccountsApi - factory interface
146837
146239
  */
146838
- export const ThreadsCirclesApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
146839
- const localVarFp = ThreadsCirclesApiFp(configuration)
146240
+ export const ThreadsAccountsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
146241
+ const localVarFp = ThreadsAccountsApiFp(configuration)
146840
146242
  return {
146841
146243
  /**
146842
- * Create Thread Circle endpoint
146843
- * @summary Create Thread Circle
146844
- * @param {ThreadsCirclesApiCreateThreadCircleRequest} requestParameters Request parameters.
146845
- * @param {*} [options] Override http request option.
146846
- * @throws {RequiredError}
146847
- */
146848
- createThreadCircle(requestParameters: ThreadsCirclesApiCreateThreadCircleRequest, options?: RawAxiosRequestConfig): AxiosPromise<CreateThreadCircle200Response> {
146849
- return localVarFp.createThreadCircle(requestParameters.threadCircleCreateInputs, options).then((request) => request(axios, basePath));
146850
- },
146851
- /**
146852
- * Delete Thread Circle endpoint
146853
- * @summary Delete Thread Circle
146854
- * @param {ThreadsCirclesApiDeleteThreadCircleRequest} requestParameters Request parameters.
146855
- * @param {*} [options] Override http request option.
146856
- * @throws {RequiredError}
146857
- */
146858
- deleteThreadCircle(requestParameters: ThreadsCirclesApiDeleteThreadCircleRequest, options?: RawAxiosRequestConfig): AxiosPromise<CreateAccountInvitations200Response> {
146859
- return localVarFp.deleteThreadCircle(requestParameters.circleId, options).then((request) => request(axios, basePath));
146860
- },
146861
- /**
146862
- * Get Thread Circle endpoint
146863
- * @summary Get Thread Circle
146864
- * @param {ThreadsCirclesApiGetThreadCircleRequest} requestParameters Request parameters.
146865
- * @param {*} [options] Override http request option.
146866
- * @throws {RequiredError}
146867
- */
146868
- getThreadCircle(requestParameters: ThreadsCirclesApiGetThreadCircleRequest, options?: RawAxiosRequestConfig): AxiosPromise<CreateThreadCircle200Response> {
146869
- return localVarFp.getThreadCircle(requestParameters.circleId, options).then((request) => request(axios, basePath));
146870
- },
146871
- /**
146872
- * Get Thread Circle Threads endpoint
146873
- * @summary Get Thread Circle Threads
146874
- * @param {ThreadsCirclesApiGetThreadCircleThreadsRequest} requestParameters Request parameters.
146244
+ * Delete Thread Account endpoint
146245
+ * @summary Delete Thread Account
146246
+ * @param {ThreadsAccountsApiDeleteThreadAccountRequest} requestParameters Request parameters.
146875
146247
  * @param {*} [options] Override http request option.
146876
146248
  * @throws {RequiredError}
146877
146249
  */
146878
- getThreadCircleThreads(requestParameters: ThreadsCirclesApiGetThreadCircleThreadsRequest, options?: RawAxiosRequestConfig): AxiosPromise<GetAccountThreads200Response> {
146879
- return localVarFp.getThreadCircleThreads(requestParameters.circleId, requestParameters.page, requestParameters.pageSize, requestParameters.orderBy, requestParameters.search, options).then((request) => request(axios, basePath));
146250
+ deleteThreadAccount(requestParameters: ThreadsAccountsApiDeleteThreadAccountRequest, options?: RawAxiosRequestConfig): AxiosPromise<CreateAccountInvitations200Response> {
146251
+ return localVarFp.deleteThreadAccount(requestParameters.threadId, requestParameters.accountId, options).then((request) => request(axios, basePath));
146880
146252
  },
146881
146253
  /**
146882
- * Get Thread Circles endpoint
146883
- * @summary Get Thread Circles
146884
- * @param {ThreadsCirclesApiGetThreadCirclesRequest} requestParameters Request parameters.
146254
+ * Get Thread Accounts endpoint
146255
+ * @summary Get Thread Accounts
146256
+ * @param {ThreadsAccountsApiGetThreadAccountsRequest} requestParameters Request parameters.
146885
146257
  * @param {*} [options] Override http request option.
146886
146258
  * @throws {RequiredError}
146887
146259
  */
146888
- getThreadCircles(requestParameters: ThreadsCirclesApiGetThreadCirclesRequest, options?: RawAxiosRequestConfig): AxiosPromise<GetThreadCircles200Response> {
146889
- return localVarFp.getThreadCircles(requestParameters.type, requestParameters.page, requestParameters.pageSize, requestParameters.orderBy, requestParameters.search, options).then((request) => request(axios, basePath));
146260
+ getThreadAccounts(requestParameters: ThreadsAccountsApiGetThreadAccountsRequest, options?: RawAxiosRequestConfig): AxiosPromise<GetAccounts200Response> {
146261
+ return localVarFp.getThreadAccounts(requestParameters.threadId, requestParameters.page, requestParameters.pageSize, requestParameters.orderBy, requestParameters.search, options).then((request) => request(axios, basePath));
146890
146262
  },
146891
146263
  /**
146892
- * Update Thread Circle endpoint
146893
- * @summary Update Thread Circle
146894
- * @param {ThreadsCirclesApiUpdateThreadCircleRequest} requestParameters Request parameters.
146264
+ * Update Thread Account endpoint
146265
+ * @summary Update Thread Account
146266
+ * @param {ThreadsAccountsApiUpdateThreadAccountRequest} requestParameters Request parameters.
146895
146267
  * @param {*} [options] Override http request option.
146896
146268
  * @throws {RequiredError}
146897
146269
  */
146898
- updateThreadCircle(requestParameters: ThreadsCirclesApiUpdateThreadCircleRequest, options?: RawAxiosRequestConfig): AxiosPromise<CreateThreadCircle200Response> {
146899
- return localVarFp.updateThreadCircle(requestParameters.circleId, requestParameters.threadCircleUpdateInputs, options).then((request) => request(axios, basePath));
146270
+ updateThreadAccount(requestParameters: ThreadsAccountsApiUpdateThreadAccountRequest, options?: RawAxiosRequestConfig): AxiosPromise<UpdateThreadAccount200Response> {
146271
+ return localVarFp.updateThreadAccount(requestParameters.threadId, requestParameters.accountId, requestParameters.threadAccountUpdateInputs, options).then((request) => request(axios, basePath));
146900
146272
  },
146901
146273
  };
146902
146274
  };
146903
146275
 
146904
146276
  /**
146905
- * Request parameters for createThreadCircle operation in ThreadsCirclesApi.
146906
- */
146907
- export interface ThreadsCirclesApiCreateThreadCircleRequest {
146908
- readonly threadCircleCreateInputs: ThreadCircleCreateInputs
146909
- }
146910
-
146911
- /**
146912
- * Request parameters for deleteThreadCircle operation in ThreadsCirclesApi.
146277
+ * Request parameters for deleteThreadAccount operation in ThreadsAccountsApi.
146913
146278
  */
146914
- export interface ThreadsCirclesApiDeleteThreadCircleRequest {
146279
+ export interface ThreadsAccountsApiDeleteThreadAccountRequest {
146915
146280
  /**
146916
- * The circle identifier
146281
+ * The thread identifier
146917
146282
  */
146918
- readonly circleId: string
146919
- }
146283
+ readonly threadId: string
146920
146284
 
146921
- /**
146922
- * Request parameters for getThreadCircle operation in ThreadsCirclesApi.
146923
- */
146924
- export interface ThreadsCirclesApiGetThreadCircleRequest {
146925
146285
  /**
146926
- * The circle identifier
146286
+ * The account identifier
146927
146287
  */
146928
- readonly circleId: string
146288
+ readonly accountId: string
146929
146289
  }
146930
146290
 
146931
146291
  /**
146932
- * Request parameters for getThreadCircleThreads operation in ThreadsCirclesApi.
146292
+ * Request parameters for getThreadAccounts operation in ThreadsAccountsApi.
146933
146293
  */
146934
- export interface ThreadsCirclesApiGetThreadCircleThreadsRequest {
146294
+ export interface ThreadsAccountsApiGetThreadAccountsRequest {
146935
146295
  /**
146936
- * The circle identifier
146296
+ * The thread identifier
146937
146297
  */
146938
- readonly circleId: string
146298
+ readonly threadId: string
146939
146299
 
146940
146300
  /**
146941
146301
  * Page number
@@ -146959,1012 +146319,9 @@ export interface ThreadsCirclesApiGetThreadCircleThreadsRequest {
146959
146319
  }
146960
146320
 
146961
146321
  /**
146962
- * Request parameters for getThreadCircles operation in ThreadsCirclesApi.
146322
+ * Request parameters for updateThreadAccount operation in ThreadsAccountsApi.
146963
146323
  */
146964
- export interface ThreadsCirclesApiGetThreadCirclesRequest {
146965
- /**
146966
- * Filter by type
146967
- */
146968
- readonly type: ThreadCircleType
146969
-
146970
- /**
146971
- * Page number
146972
- */
146973
- readonly page?: number
146974
-
146975
- /**
146976
- * Number of items per page
146977
- */
146978
- readonly pageSize?: number
146979
-
146980
- /**
146981
- * Field to order by
146982
- */
146983
- readonly orderBy?: string
146984
-
146985
- /**
146986
- * Search query
146987
- */
146988
- readonly search?: string
146989
- }
146990
-
146991
- /**
146992
- * Request parameters for updateThreadCircle operation in ThreadsCirclesApi.
146993
- */
146994
- export interface ThreadsCirclesApiUpdateThreadCircleRequest {
146995
- /**
146996
- * The circle identifier
146997
- */
146998
- readonly circleId: string
146999
-
147000
- readonly threadCircleUpdateInputs: ThreadCircleUpdateInputs
147001
- }
147002
-
147003
- /**
147004
- * ThreadsCirclesApi - object-oriented interface
147005
- */
147006
- export class ThreadsCirclesApi extends BaseAPI {
147007
- /**
147008
- * Create Thread Circle endpoint
147009
- * @summary Create Thread Circle
147010
- * @param {ThreadsCirclesApiCreateThreadCircleRequest} requestParameters Request parameters.
147011
- * @param {*} [options] Override http request option.
147012
- * @throws {RequiredError}
147013
- */
147014
- public createThreadCircle(requestParameters: ThreadsCirclesApiCreateThreadCircleRequest, options?: RawAxiosRequestConfig) {
147015
- return ThreadsCirclesApiFp(this.configuration).createThreadCircle(requestParameters.threadCircleCreateInputs, options).then((request) => request(this.axios, this.basePath));
147016
- }
147017
-
147018
- /**
147019
- * Delete Thread Circle endpoint
147020
- * @summary Delete Thread Circle
147021
- * @param {ThreadsCirclesApiDeleteThreadCircleRequest} requestParameters Request parameters.
147022
- * @param {*} [options] Override http request option.
147023
- * @throws {RequiredError}
147024
- */
147025
- public deleteThreadCircle(requestParameters: ThreadsCirclesApiDeleteThreadCircleRequest, options?: RawAxiosRequestConfig) {
147026
- return ThreadsCirclesApiFp(this.configuration).deleteThreadCircle(requestParameters.circleId, options).then((request) => request(this.axios, this.basePath));
147027
- }
147028
-
147029
- /**
147030
- * Get Thread Circle endpoint
147031
- * @summary Get Thread Circle
147032
- * @param {ThreadsCirclesApiGetThreadCircleRequest} requestParameters Request parameters.
147033
- * @param {*} [options] Override http request option.
147034
- * @throws {RequiredError}
147035
- */
147036
- public getThreadCircle(requestParameters: ThreadsCirclesApiGetThreadCircleRequest, options?: RawAxiosRequestConfig) {
147037
- return ThreadsCirclesApiFp(this.configuration).getThreadCircle(requestParameters.circleId, options).then((request) => request(this.axios, this.basePath));
147038
- }
147039
-
147040
- /**
147041
- * Get Thread Circle Threads endpoint
147042
- * @summary Get Thread Circle Threads
147043
- * @param {ThreadsCirclesApiGetThreadCircleThreadsRequest} requestParameters Request parameters.
147044
- * @param {*} [options] Override http request option.
147045
- * @throws {RequiredError}
147046
- */
147047
- public getThreadCircleThreads(requestParameters: ThreadsCirclesApiGetThreadCircleThreadsRequest, options?: RawAxiosRequestConfig) {
147048
- return ThreadsCirclesApiFp(this.configuration).getThreadCircleThreads(requestParameters.circleId, requestParameters.page, requestParameters.pageSize, requestParameters.orderBy, requestParameters.search, options).then((request) => request(this.axios, this.basePath));
147049
- }
147050
-
147051
- /**
147052
- * Get Thread Circles endpoint
147053
- * @summary Get Thread Circles
147054
- * @param {ThreadsCirclesApiGetThreadCirclesRequest} requestParameters Request parameters.
147055
- * @param {*} [options] Override http request option.
147056
- * @throws {RequiredError}
147057
- */
147058
- public getThreadCircles(requestParameters: ThreadsCirclesApiGetThreadCirclesRequest, options?: RawAxiosRequestConfig) {
147059
- return ThreadsCirclesApiFp(this.configuration).getThreadCircles(requestParameters.type, requestParameters.page, requestParameters.pageSize, requestParameters.orderBy, requestParameters.search, options).then((request) => request(this.axios, this.basePath));
147060
- }
147061
-
147062
- /**
147063
- * Update Thread Circle endpoint
147064
- * @summary Update Thread Circle
147065
- * @param {ThreadsCirclesApiUpdateThreadCircleRequest} requestParameters Request parameters.
147066
- * @param {*} [options] Override http request option.
147067
- * @throws {RequiredError}
147068
- */
147069
- public updateThreadCircle(requestParameters: ThreadsCirclesApiUpdateThreadCircleRequest, options?: RawAxiosRequestConfig) {
147070
- return ThreadsCirclesApiFp(this.configuration).updateThreadCircle(requestParameters.circleId, requestParameters.threadCircleUpdateInputs, options).then((request) => request(this.axios, this.basePath));
147071
- }
147072
- }
147073
-
147074
-
147075
-
147076
- /**
147077
- * ThreadsCirclesAccountsApi - axios parameter creator
147078
- */
147079
- export const ThreadsCirclesAccountsApiAxiosParamCreator = function (configuration?: Configuration) {
147080
- return {
147081
- /**
147082
- * Create Thread Circle Account endpoint
147083
- * @summary Create Thread Circle Account
147084
- * @param {string} circleId The circle identifier
147085
- * @param {ThreadCircleAccountCreateInputs} threadCircleAccountCreateInputs
147086
- * @param {*} [options] Override http request option.
147087
- * @throws {RequiredError}
147088
- */
147089
- createThreadCircleAccount: async (circleId: string, threadCircleAccountCreateInputs: ThreadCircleAccountCreateInputs, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
147090
- // verify required parameter 'circleId' is not null or undefined
147091
- assertParamExists('createThreadCircleAccount', 'circleId', circleId)
147092
- // verify required parameter 'threadCircleAccountCreateInputs' is not null or undefined
147093
- assertParamExists('createThreadCircleAccount', 'threadCircleAccountCreateInputs', threadCircleAccountCreateInputs)
147094
- const localVarPath = `/threads/circles/{circleId}/accounts`
147095
- .replace(`{${"circleId"}}`, encodeURIComponent(String(circleId)));
147096
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
147097
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
147098
- let baseOptions;
147099
- if (configuration) {
147100
- baseOptions = configuration.baseOptions;
147101
- }
147102
-
147103
- const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
147104
- const localVarHeaderParameter = {} as any;
147105
- const localVarQueryParameter = {} as any;
147106
-
147107
- // authentication ApiKeyAuth required
147108
- await setApiKeyToObject(localVarHeaderParameter, "api-key", configuration)
147109
-
147110
- // authentication OrganizationId required
147111
- await setApiKeyToObject(localVarHeaderParameter, "organization", configuration)
147112
-
147113
- localVarHeaderParameter['Content-Type'] = 'application/json';
147114
- localVarHeaderParameter['Accept'] = 'application/json';
147115
-
147116
- setSearchParams(localVarUrlObj, localVarQueryParameter);
147117
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
147118
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
147119
- localVarRequestOptions.data = serializeDataIfNeeded(threadCircleAccountCreateInputs, localVarRequestOptions, configuration)
147120
-
147121
- return {
147122
- url: toPathString(localVarUrlObj),
147123
- options: localVarRequestOptions,
147124
- };
147125
- },
147126
- /**
147127
- * Delete Thread Circle Account endpoint
147128
- * @summary Delete Thread Circle Account
147129
- * @param {string} circleId The circle identifier
147130
- * @param {string} accountId The account identifier
147131
- * @param {*} [options] Override http request option.
147132
- * @throws {RequiredError}
147133
- */
147134
- deleteThreadCircleAccount: async (circleId: string, accountId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
147135
- // verify required parameter 'circleId' is not null or undefined
147136
- assertParamExists('deleteThreadCircleAccount', 'circleId', circleId)
147137
- // verify required parameter 'accountId' is not null or undefined
147138
- assertParamExists('deleteThreadCircleAccount', 'accountId', accountId)
147139
- const localVarPath = `/threads/circles/{circleId}/accounts/{accountId}`
147140
- .replace(`{${"circleId"}}`, encodeURIComponent(String(circleId)))
147141
- .replace(`{${"accountId"}}`, encodeURIComponent(String(accountId)));
147142
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
147143
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
147144
- let baseOptions;
147145
- if (configuration) {
147146
- baseOptions = configuration.baseOptions;
147147
- }
147148
-
147149
- const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
147150
- const localVarHeaderParameter = {} as any;
147151
- const localVarQueryParameter = {} as any;
147152
-
147153
- // authentication ApiKeyAuth required
147154
- await setApiKeyToObject(localVarHeaderParameter, "api-key", configuration)
147155
-
147156
- // authentication OrganizationId required
147157
- await setApiKeyToObject(localVarHeaderParameter, "organization", configuration)
147158
-
147159
- localVarHeaderParameter['Accept'] = 'application/json';
147160
-
147161
- setSearchParams(localVarUrlObj, localVarQueryParameter);
147162
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
147163
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
147164
-
147165
- return {
147166
- url: toPathString(localVarUrlObj),
147167
- options: localVarRequestOptions,
147168
- };
147169
- },
147170
- /**
147171
- * Get Thread Circle Account endpoint
147172
- * @summary Get Thread Circle Account
147173
- * @param {string} circleId The circle identifier
147174
- * @param {string} accountId The account identifier
147175
- * @param {*} [options] Override http request option.
147176
- * @throws {RequiredError}
147177
- */
147178
- getThreadCircleAccount: async (circleId: string, accountId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
147179
- // verify required parameter 'circleId' is not null or undefined
147180
- assertParamExists('getThreadCircleAccount', 'circleId', circleId)
147181
- // verify required parameter 'accountId' is not null or undefined
147182
- assertParamExists('getThreadCircleAccount', 'accountId', accountId)
147183
- const localVarPath = `/threads/circles/{circleId}/accounts/{accountId}`
147184
- .replace(`{${"circleId"}}`, encodeURIComponent(String(circleId)))
147185
- .replace(`{${"accountId"}}`, encodeURIComponent(String(accountId)));
147186
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
147187
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
147188
- let baseOptions;
147189
- if (configuration) {
147190
- baseOptions = configuration.baseOptions;
147191
- }
147192
-
147193
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
147194
- const localVarHeaderParameter = {} as any;
147195
- const localVarQueryParameter = {} as any;
147196
-
147197
- // authentication ApiKeyAuth required
147198
- await setApiKeyToObject(localVarHeaderParameter, "api-key", configuration)
147199
-
147200
- // authentication OrganizationId required
147201
- await setApiKeyToObject(localVarHeaderParameter, "organization", configuration)
147202
-
147203
- localVarHeaderParameter['Accept'] = 'application/json';
147204
-
147205
- setSearchParams(localVarUrlObj, localVarQueryParameter);
147206
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
147207
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
147208
-
147209
- return {
147210
- url: toPathString(localVarUrlObj),
147211
- options: localVarRequestOptions,
147212
- };
147213
- },
147214
- /**
147215
- * Get Thread Circle Accounts endpoint
147216
- * @summary Get Thread Circle Accounts
147217
- * @param {string} circleId The circle identifier
147218
- * @param {ThreadCircleAccountRole} [role] Filter by role
147219
- * @param {number} [page] Page number
147220
- * @param {number} [pageSize] Number of items per page
147221
- * @param {string} [orderBy] Field to order by
147222
- * @param {string} [search] Search query
147223
- * @param {*} [options] Override http request option.
147224
- * @throws {RequiredError}
147225
- */
147226
- getThreadCircleAccounts: async (circleId: string, role?: ThreadCircleAccountRole, page?: number, pageSize?: number, orderBy?: string, search?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
147227
- // verify required parameter 'circleId' is not null or undefined
147228
- assertParamExists('getThreadCircleAccounts', 'circleId', circleId)
147229
- const localVarPath = `/threads/circles/{circleId}/accounts`
147230
- .replace(`{${"circleId"}}`, encodeURIComponent(String(circleId)));
147231
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
147232
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
147233
- let baseOptions;
147234
- if (configuration) {
147235
- baseOptions = configuration.baseOptions;
147236
- }
147237
-
147238
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
147239
- const localVarHeaderParameter = {} as any;
147240
- const localVarQueryParameter = {} as any;
147241
-
147242
- // authentication ApiKeyAuth required
147243
- await setApiKeyToObject(localVarHeaderParameter, "api-key", configuration)
147244
-
147245
- // authentication OrganizationId required
147246
- await setApiKeyToObject(localVarHeaderParameter, "organization", configuration)
147247
-
147248
- if (role !== undefined) {
147249
- localVarQueryParameter['role'] = role;
147250
- }
147251
-
147252
- if (page !== undefined) {
147253
- localVarQueryParameter['page'] = page;
147254
- }
147255
-
147256
- if (pageSize !== undefined) {
147257
- localVarQueryParameter['pageSize'] = pageSize;
147258
- }
147259
-
147260
- if (orderBy !== undefined) {
147261
- localVarQueryParameter['orderBy'] = orderBy;
147262
- }
147263
-
147264
- if (search !== undefined) {
147265
- localVarQueryParameter['search'] = search;
147266
- }
147267
-
147268
- localVarHeaderParameter['Accept'] = 'application/json';
147269
-
147270
- setSearchParams(localVarUrlObj, localVarQueryParameter);
147271
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
147272
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
147273
-
147274
- return {
147275
- url: toPathString(localVarUrlObj),
147276
- options: localVarRequestOptions,
147277
- };
147278
- },
147279
- /**
147280
- * Update Thread Circle Account endpoint
147281
- * @summary Update Thread Circle Account
147282
- * @param {string} circleId The circle identifier
147283
- * @param {string} accountId The account identifier
147284
- * @param {ThreadCircleAccountUpdateInputs} threadCircleAccountUpdateInputs
147285
- * @param {*} [options] Override http request option.
147286
- * @throws {RequiredError}
147287
- */
147288
- updateThreadCircleAccount: async (circleId: string, accountId: string, threadCircleAccountUpdateInputs: ThreadCircleAccountUpdateInputs, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
147289
- // verify required parameter 'circleId' is not null or undefined
147290
- assertParamExists('updateThreadCircleAccount', 'circleId', circleId)
147291
- // verify required parameter 'accountId' is not null or undefined
147292
- assertParamExists('updateThreadCircleAccount', 'accountId', accountId)
147293
- // verify required parameter 'threadCircleAccountUpdateInputs' is not null or undefined
147294
- assertParamExists('updateThreadCircleAccount', 'threadCircleAccountUpdateInputs', threadCircleAccountUpdateInputs)
147295
- const localVarPath = `/threads/circles/{circleId}/accounts/{accountId}`
147296
- .replace(`{${"circleId"}}`, encodeURIComponent(String(circleId)))
147297
- .replace(`{${"accountId"}}`, encodeURIComponent(String(accountId)));
147298
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
147299
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
147300
- let baseOptions;
147301
- if (configuration) {
147302
- baseOptions = configuration.baseOptions;
147303
- }
147304
-
147305
- const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
147306
- const localVarHeaderParameter = {} as any;
147307
- const localVarQueryParameter = {} as any;
147308
-
147309
- // authentication ApiKeyAuth required
147310
- await setApiKeyToObject(localVarHeaderParameter, "api-key", configuration)
147311
-
147312
- // authentication OrganizationId required
147313
- await setApiKeyToObject(localVarHeaderParameter, "organization", configuration)
147314
-
147315
- localVarHeaderParameter['Content-Type'] = 'application/json';
147316
- localVarHeaderParameter['Accept'] = 'application/json';
147317
-
147318
- setSearchParams(localVarUrlObj, localVarQueryParameter);
147319
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
147320
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
147321
- localVarRequestOptions.data = serializeDataIfNeeded(threadCircleAccountUpdateInputs, localVarRequestOptions, configuration)
147322
-
147323
- return {
147324
- url: toPathString(localVarUrlObj),
147325
- options: localVarRequestOptions,
147326
- };
147327
- },
147328
- }
147329
- };
147330
-
147331
- /**
147332
- * ThreadsCirclesAccountsApi - functional programming interface
147333
- */
147334
- export const ThreadsCirclesAccountsApiFp = function(configuration?: Configuration) {
147335
- const localVarAxiosParamCreator = ThreadsCirclesAccountsApiAxiosParamCreator(configuration)
147336
- return {
147337
- /**
147338
- * Create Thread Circle Account endpoint
147339
- * @summary Create Thread Circle Account
147340
- * @param {string} circleId The circle identifier
147341
- * @param {ThreadCircleAccountCreateInputs} threadCircleAccountCreateInputs
147342
- * @param {*} [options] Override http request option.
147343
- * @throws {RequiredError}
147344
- */
147345
- async createThreadCircleAccount(circleId: string, threadCircleAccountCreateInputs: ThreadCircleAccountCreateInputs, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateThreadCircleAccount200Response>> {
147346
- const localVarAxiosArgs = await localVarAxiosParamCreator.createThreadCircleAccount(circleId, threadCircleAccountCreateInputs, options);
147347
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
147348
- const localVarOperationServerBasePath = operationServerMap['ThreadsCirclesAccountsApi.createThreadCircleAccount']?.[localVarOperationServerIndex]?.url;
147349
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
147350
- },
147351
- /**
147352
- * Delete Thread Circle Account endpoint
147353
- * @summary Delete Thread Circle Account
147354
- * @param {string} circleId The circle identifier
147355
- * @param {string} accountId The account identifier
147356
- * @param {*} [options] Override http request option.
147357
- * @throws {RequiredError}
147358
- */
147359
- async deleteThreadCircleAccount(circleId: string, accountId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateAccountInvitations200Response>> {
147360
- const localVarAxiosArgs = await localVarAxiosParamCreator.deleteThreadCircleAccount(circleId, accountId, options);
147361
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
147362
- const localVarOperationServerBasePath = operationServerMap['ThreadsCirclesAccountsApi.deleteThreadCircleAccount']?.[localVarOperationServerIndex]?.url;
147363
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
147364
- },
147365
- /**
147366
- * Get Thread Circle Account endpoint
147367
- * @summary Get Thread Circle Account
147368
- * @param {string} circleId The circle identifier
147369
- * @param {string} accountId The account identifier
147370
- * @param {*} [options] Override http request option.
147371
- * @throws {RequiredError}
147372
- */
147373
- async getThreadCircleAccount(circleId: string, accountId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateThreadCircleAccount200Response>> {
147374
- const localVarAxiosArgs = await localVarAxiosParamCreator.getThreadCircleAccount(circleId, accountId, options);
147375
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
147376
- const localVarOperationServerBasePath = operationServerMap['ThreadsCirclesAccountsApi.getThreadCircleAccount']?.[localVarOperationServerIndex]?.url;
147377
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
147378
- },
147379
- /**
147380
- * Get Thread Circle Accounts endpoint
147381
- * @summary Get Thread Circle Accounts
147382
- * @param {string} circleId The circle identifier
147383
- * @param {ThreadCircleAccountRole} [role] Filter by role
147384
- * @param {number} [page] Page number
147385
- * @param {number} [pageSize] Number of items per page
147386
- * @param {string} [orderBy] Field to order by
147387
- * @param {string} [search] Search query
147388
- * @param {*} [options] Override http request option.
147389
- * @throws {RequiredError}
147390
- */
147391
- async getThreadCircleAccounts(circleId: string, role?: ThreadCircleAccountRole, page?: number, pageSize?: number, orderBy?: string, search?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetThreadCircleAccounts200Response>> {
147392
- const localVarAxiosArgs = await localVarAxiosParamCreator.getThreadCircleAccounts(circleId, role, page, pageSize, orderBy, search, options);
147393
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
147394
- const localVarOperationServerBasePath = operationServerMap['ThreadsCirclesAccountsApi.getThreadCircleAccounts']?.[localVarOperationServerIndex]?.url;
147395
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
147396
- },
147397
- /**
147398
- * Update Thread Circle Account endpoint
147399
- * @summary Update Thread Circle Account
147400
- * @param {string} circleId The circle identifier
147401
- * @param {string} accountId The account identifier
147402
- * @param {ThreadCircleAccountUpdateInputs} threadCircleAccountUpdateInputs
147403
- * @param {*} [options] Override http request option.
147404
- * @throws {RequiredError}
147405
- */
147406
- async updateThreadCircleAccount(circleId: string, accountId: string, threadCircleAccountUpdateInputs: ThreadCircleAccountUpdateInputs, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateThreadCircleAccount200Response>> {
147407
- const localVarAxiosArgs = await localVarAxiosParamCreator.updateThreadCircleAccount(circleId, accountId, threadCircleAccountUpdateInputs, options);
147408
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
147409
- const localVarOperationServerBasePath = operationServerMap['ThreadsCirclesAccountsApi.updateThreadCircleAccount']?.[localVarOperationServerIndex]?.url;
147410
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
147411
- },
147412
- }
147413
- };
147414
-
147415
- /**
147416
- * ThreadsCirclesAccountsApi - factory interface
147417
- */
147418
- export const ThreadsCirclesAccountsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
147419
- const localVarFp = ThreadsCirclesAccountsApiFp(configuration)
147420
- return {
147421
- /**
147422
- * Create Thread Circle Account endpoint
147423
- * @summary Create Thread Circle Account
147424
- * @param {ThreadsCirclesAccountsApiCreateThreadCircleAccountRequest} requestParameters Request parameters.
147425
- * @param {*} [options] Override http request option.
147426
- * @throws {RequiredError}
147427
- */
147428
- createThreadCircleAccount(requestParameters: ThreadsCirclesAccountsApiCreateThreadCircleAccountRequest, options?: RawAxiosRequestConfig): AxiosPromise<CreateThreadCircleAccount200Response> {
147429
- return localVarFp.createThreadCircleAccount(requestParameters.circleId, requestParameters.threadCircleAccountCreateInputs, options).then((request) => request(axios, basePath));
147430
- },
147431
- /**
147432
- * Delete Thread Circle Account endpoint
147433
- * @summary Delete Thread Circle Account
147434
- * @param {ThreadsCirclesAccountsApiDeleteThreadCircleAccountRequest} requestParameters Request parameters.
147435
- * @param {*} [options] Override http request option.
147436
- * @throws {RequiredError}
147437
- */
147438
- deleteThreadCircleAccount(requestParameters: ThreadsCirclesAccountsApiDeleteThreadCircleAccountRequest, options?: RawAxiosRequestConfig): AxiosPromise<CreateAccountInvitations200Response> {
147439
- return localVarFp.deleteThreadCircleAccount(requestParameters.circleId, requestParameters.accountId, options).then((request) => request(axios, basePath));
147440
- },
147441
- /**
147442
- * Get Thread Circle Account endpoint
147443
- * @summary Get Thread Circle Account
147444
- * @param {ThreadsCirclesAccountsApiGetThreadCircleAccountRequest} requestParameters Request parameters.
147445
- * @param {*} [options] Override http request option.
147446
- * @throws {RequiredError}
147447
- */
147448
- getThreadCircleAccount(requestParameters: ThreadsCirclesAccountsApiGetThreadCircleAccountRequest, options?: RawAxiosRequestConfig): AxiosPromise<CreateThreadCircleAccount200Response> {
147449
- return localVarFp.getThreadCircleAccount(requestParameters.circleId, requestParameters.accountId, options).then((request) => request(axios, basePath));
147450
- },
147451
- /**
147452
- * Get Thread Circle Accounts endpoint
147453
- * @summary Get Thread Circle Accounts
147454
- * @param {ThreadsCirclesAccountsApiGetThreadCircleAccountsRequest} requestParameters Request parameters.
147455
- * @param {*} [options] Override http request option.
147456
- * @throws {RequiredError}
147457
- */
147458
- getThreadCircleAccounts(requestParameters: ThreadsCirclesAccountsApiGetThreadCircleAccountsRequest, options?: RawAxiosRequestConfig): AxiosPromise<GetThreadCircleAccounts200Response> {
147459
- return localVarFp.getThreadCircleAccounts(requestParameters.circleId, requestParameters.role, requestParameters.page, requestParameters.pageSize, requestParameters.orderBy, requestParameters.search, options).then((request) => request(axios, basePath));
147460
- },
147461
- /**
147462
- * Update Thread Circle Account endpoint
147463
- * @summary Update Thread Circle Account
147464
- * @param {ThreadsCirclesAccountsApiUpdateThreadCircleAccountRequest} requestParameters Request parameters.
147465
- * @param {*} [options] Override http request option.
147466
- * @throws {RequiredError}
147467
- */
147468
- updateThreadCircleAccount(requestParameters: ThreadsCirclesAccountsApiUpdateThreadCircleAccountRequest, options?: RawAxiosRequestConfig): AxiosPromise<CreateThreadCircleAccount200Response> {
147469
- return localVarFp.updateThreadCircleAccount(requestParameters.circleId, requestParameters.accountId, requestParameters.threadCircleAccountUpdateInputs, options).then((request) => request(axios, basePath));
147470
- },
147471
- };
147472
- };
147473
-
147474
- /**
147475
- * Request parameters for createThreadCircleAccount operation in ThreadsCirclesAccountsApi.
147476
- */
147477
- export interface ThreadsCirclesAccountsApiCreateThreadCircleAccountRequest {
147478
- /**
147479
- * The circle identifier
147480
- */
147481
- readonly circleId: string
147482
-
147483
- readonly threadCircleAccountCreateInputs: ThreadCircleAccountCreateInputs
147484
- }
147485
-
147486
- /**
147487
- * Request parameters for deleteThreadCircleAccount operation in ThreadsCirclesAccountsApi.
147488
- */
147489
- export interface ThreadsCirclesAccountsApiDeleteThreadCircleAccountRequest {
147490
- /**
147491
- * The circle identifier
147492
- */
147493
- readonly circleId: string
147494
-
147495
- /**
147496
- * The account identifier
147497
- */
147498
- readonly accountId: string
147499
- }
147500
-
147501
- /**
147502
- * Request parameters for getThreadCircleAccount operation in ThreadsCirclesAccountsApi.
147503
- */
147504
- export interface ThreadsCirclesAccountsApiGetThreadCircleAccountRequest {
147505
- /**
147506
- * The circle identifier
147507
- */
147508
- readonly circleId: string
147509
-
147510
- /**
147511
- * The account identifier
147512
- */
147513
- readonly accountId: string
147514
- }
147515
-
147516
- /**
147517
- * Request parameters for getThreadCircleAccounts operation in ThreadsCirclesAccountsApi.
147518
- */
147519
- export interface ThreadsCirclesAccountsApiGetThreadCircleAccountsRequest {
147520
- /**
147521
- * The circle identifier
147522
- */
147523
- readonly circleId: string
147524
-
147525
- /**
147526
- * Filter by role
147527
- */
147528
- readonly role?: ThreadCircleAccountRole
147529
-
147530
- /**
147531
- * Page number
147532
- */
147533
- readonly page?: number
147534
-
147535
- /**
147536
- * Number of items per page
147537
- */
147538
- readonly pageSize?: number
147539
-
147540
- /**
147541
- * Field to order by
147542
- */
147543
- readonly orderBy?: string
147544
-
147545
- /**
147546
- * Search query
147547
- */
147548
- readonly search?: string
147549
- }
147550
-
147551
- /**
147552
- * Request parameters for updateThreadCircleAccount operation in ThreadsCirclesAccountsApi.
147553
- */
147554
- export interface ThreadsCirclesAccountsApiUpdateThreadCircleAccountRequest {
147555
- /**
147556
- * The circle identifier
147557
- */
147558
- readonly circleId: string
147559
-
147560
- /**
147561
- * The account identifier
147562
- */
147563
- readonly accountId: string
147564
-
147565
- readonly threadCircleAccountUpdateInputs: ThreadCircleAccountUpdateInputs
147566
- }
147567
-
147568
- /**
147569
- * ThreadsCirclesAccountsApi - object-oriented interface
147570
- */
147571
- export class ThreadsCirclesAccountsApi extends BaseAPI {
147572
- /**
147573
- * Create Thread Circle Account endpoint
147574
- * @summary Create Thread Circle Account
147575
- * @param {ThreadsCirclesAccountsApiCreateThreadCircleAccountRequest} requestParameters Request parameters.
147576
- * @param {*} [options] Override http request option.
147577
- * @throws {RequiredError}
147578
- */
147579
- public createThreadCircleAccount(requestParameters: ThreadsCirclesAccountsApiCreateThreadCircleAccountRequest, options?: RawAxiosRequestConfig) {
147580
- return ThreadsCirclesAccountsApiFp(this.configuration).createThreadCircleAccount(requestParameters.circleId, requestParameters.threadCircleAccountCreateInputs, options).then((request) => request(this.axios, this.basePath));
147581
- }
147582
-
147583
- /**
147584
- * Delete Thread Circle Account endpoint
147585
- * @summary Delete Thread Circle Account
147586
- * @param {ThreadsCirclesAccountsApiDeleteThreadCircleAccountRequest} requestParameters Request parameters.
147587
- * @param {*} [options] Override http request option.
147588
- * @throws {RequiredError}
147589
- */
147590
- public deleteThreadCircleAccount(requestParameters: ThreadsCirclesAccountsApiDeleteThreadCircleAccountRequest, options?: RawAxiosRequestConfig) {
147591
- return ThreadsCirclesAccountsApiFp(this.configuration).deleteThreadCircleAccount(requestParameters.circleId, requestParameters.accountId, options).then((request) => request(this.axios, this.basePath));
147592
- }
147593
-
147594
- /**
147595
- * Get Thread Circle Account endpoint
147596
- * @summary Get Thread Circle Account
147597
- * @param {ThreadsCirclesAccountsApiGetThreadCircleAccountRequest} requestParameters Request parameters.
147598
- * @param {*} [options] Override http request option.
147599
- * @throws {RequiredError}
147600
- */
147601
- public getThreadCircleAccount(requestParameters: ThreadsCirclesAccountsApiGetThreadCircleAccountRequest, options?: RawAxiosRequestConfig) {
147602
- return ThreadsCirclesAccountsApiFp(this.configuration).getThreadCircleAccount(requestParameters.circleId, requestParameters.accountId, options).then((request) => request(this.axios, this.basePath));
147603
- }
147604
-
147605
- /**
147606
- * Get Thread Circle Accounts endpoint
147607
- * @summary Get Thread Circle Accounts
147608
- * @param {ThreadsCirclesAccountsApiGetThreadCircleAccountsRequest} requestParameters Request parameters.
147609
- * @param {*} [options] Override http request option.
147610
- * @throws {RequiredError}
147611
- */
147612
- public getThreadCircleAccounts(requestParameters: ThreadsCirclesAccountsApiGetThreadCircleAccountsRequest, options?: RawAxiosRequestConfig) {
147613
- return ThreadsCirclesAccountsApiFp(this.configuration).getThreadCircleAccounts(requestParameters.circleId, requestParameters.role, requestParameters.page, requestParameters.pageSize, requestParameters.orderBy, requestParameters.search, options).then((request) => request(this.axios, this.basePath));
147614
- }
147615
-
147616
- /**
147617
- * Update Thread Circle Account endpoint
147618
- * @summary Update Thread Circle Account
147619
- * @param {ThreadsCirclesAccountsApiUpdateThreadCircleAccountRequest} requestParameters Request parameters.
147620
- * @param {*} [options] Override http request option.
147621
- * @throws {RequiredError}
147622
- */
147623
- public updateThreadCircleAccount(requestParameters: ThreadsCirclesAccountsApiUpdateThreadCircleAccountRequest, options?: RawAxiosRequestConfig) {
147624
- return ThreadsCirclesAccountsApiFp(this.configuration).updateThreadCircleAccount(requestParameters.circleId, requestParameters.accountId, requestParameters.threadCircleAccountUpdateInputs, options).then((request) => request(this.axios, this.basePath));
147625
- }
147626
- }
147627
-
147628
-
147629
-
147630
- /**
147631
- * ThreadsMembersApi - axios parameter creator
147632
- */
147633
- export const ThreadsMembersApiAxiosParamCreator = function (configuration?: Configuration) {
147634
- return {
147635
- /**
147636
- * Get Thread Accounts endpoint
147637
- * @summary Get Thread Accounts
147638
- * @param {string} threadId The thread identifier
147639
- * @param {number} [page] Page number
147640
- * @param {number} [pageSize] Number of items per page
147641
- * @param {string} [orderBy] Field to order by
147642
- * @param {string} [search] Search query
147643
- * @param {*} [options] Override http request option.
147644
- * @throws {RequiredError}
147645
- */
147646
- getThreadAccounts: async (threadId: string, page?: number, pageSize?: number, orderBy?: string, search?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
147647
- // verify required parameter 'threadId' is not null or undefined
147648
- assertParamExists('getThreadAccounts', 'threadId', threadId)
147649
- const localVarPath = `/threads/{threadId}/accounts`
147650
- .replace(`{${"threadId"}}`, encodeURIComponent(String(threadId)));
147651
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
147652
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
147653
- let baseOptions;
147654
- if (configuration) {
147655
- baseOptions = configuration.baseOptions;
147656
- }
147657
-
147658
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
147659
- const localVarHeaderParameter = {} as any;
147660
- const localVarQueryParameter = {} as any;
147661
-
147662
- // authentication ApiKeyAuth required
147663
- await setApiKeyToObject(localVarHeaderParameter, "api-key", configuration)
147664
-
147665
- // authentication OrganizationId required
147666
- await setApiKeyToObject(localVarHeaderParameter, "organization", configuration)
147667
-
147668
- if (page !== undefined) {
147669
- localVarQueryParameter['page'] = page;
147670
- }
147671
-
147672
- if (pageSize !== undefined) {
147673
- localVarQueryParameter['pageSize'] = pageSize;
147674
- }
147675
-
147676
- if (orderBy !== undefined) {
147677
- localVarQueryParameter['orderBy'] = orderBy;
147678
- }
147679
-
147680
- if (search !== undefined) {
147681
- localVarQueryParameter['search'] = search;
147682
- }
147683
-
147684
- localVarHeaderParameter['Accept'] = 'application/json';
147685
-
147686
- setSearchParams(localVarUrlObj, localVarQueryParameter);
147687
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
147688
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
147689
-
147690
- return {
147691
- url: toPathString(localVarUrlObj),
147692
- options: localVarRequestOptions,
147693
- };
147694
- },
147695
- /**
147696
- * Get Thread Members endpoint
147697
- * @summary Get Thread Members
147698
- * @param {string} threadId The thread identifier
147699
- * @param {number} [page] Page number
147700
- * @param {number} [pageSize] Number of items per page
147701
- * @param {string} [orderBy] Field to order by
147702
- * @param {string} [search] Search query
147703
- * @param {*} [options] Override http request option.
147704
- * @throws {RequiredError}
147705
- */
147706
- getThreadMembers: async (threadId: string, page?: number, pageSize?: number, orderBy?: string, search?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
147707
- // verify required parameter 'threadId' is not null or undefined
147708
- assertParamExists('getThreadMembers', 'threadId', threadId)
147709
- const localVarPath = `/threads/{threadId}/members`
147710
- .replace(`{${"threadId"}}`, encodeURIComponent(String(threadId)));
147711
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
147712
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
147713
- let baseOptions;
147714
- if (configuration) {
147715
- baseOptions = configuration.baseOptions;
147716
- }
147717
-
147718
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
147719
- const localVarHeaderParameter = {} as any;
147720
- const localVarQueryParameter = {} as any;
147721
-
147722
- // authentication ApiKeyAuth required
147723
- await setApiKeyToObject(localVarHeaderParameter, "api-key", configuration)
147724
-
147725
- // authentication OrganizationId required
147726
- await setApiKeyToObject(localVarHeaderParameter, "organization", configuration)
147727
-
147728
- if (page !== undefined) {
147729
- localVarQueryParameter['page'] = page;
147730
- }
147731
-
147732
- if (pageSize !== undefined) {
147733
- localVarQueryParameter['pageSize'] = pageSize;
147734
- }
147735
-
147736
- if (orderBy !== undefined) {
147737
- localVarQueryParameter['orderBy'] = orderBy;
147738
- }
147739
-
147740
- if (search !== undefined) {
147741
- localVarQueryParameter['search'] = search;
147742
- }
147743
-
147744
- localVarHeaderParameter['Accept'] = 'application/json';
147745
-
147746
- setSearchParams(localVarUrlObj, localVarQueryParameter);
147747
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
147748
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
147749
-
147750
- return {
147751
- url: toPathString(localVarUrlObj),
147752
- options: localVarRequestOptions,
147753
- };
147754
- },
147755
- /**
147756
- * Update Thread Member endpoint
147757
- * @summary Update Thread Member
147758
- * @param {string} threadId The thread identifier
147759
- * @param {string} accountId The account identifier
147760
- * @param {ThreadMemberUpdateInputs} threadMemberUpdateInputs
147761
- * @param {*} [options] Override http request option.
147762
- * @throws {RequiredError}
147763
- */
147764
- updateThreadMember: async (threadId: string, accountId: string, threadMemberUpdateInputs: ThreadMemberUpdateInputs, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
147765
- // verify required parameter 'threadId' is not null or undefined
147766
- assertParamExists('updateThreadMember', 'threadId', threadId)
147767
- // verify required parameter 'accountId' is not null or undefined
147768
- assertParamExists('updateThreadMember', 'accountId', accountId)
147769
- // verify required parameter 'threadMemberUpdateInputs' is not null or undefined
147770
- assertParamExists('updateThreadMember', 'threadMemberUpdateInputs', threadMemberUpdateInputs)
147771
- const localVarPath = `/threads/{threadId}/members/{accountId}`
147772
- .replace(`{${"threadId"}}`, encodeURIComponent(String(threadId)))
147773
- .replace(`{${"accountId"}}`, encodeURIComponent(String(accountId)));
147774
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
147775
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
147776
- let baseOptions;
147777
- if (configuration) {
147778
- baseOptions = configuration.baseOptions;
147779
- }
147780
-
147781
- const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
147782
- const localVarHeaderParameter = {} as any;
147783
- const localVarQueryParameter = {} as any;
147784
-
147785
- // authentication ApiKeyAuth required
147786
- await setApiKeyToObject(localVarHeaderParameter, "api-key", configuration)
147787
-
147788
- // authentication OrganizationId required
147789
- await setApiKeyToObject(localVarHeaderParameter, "organization", configuration)
147790
-
147791
- localVarHeaderParameter['Content-Type'] = 'application/json';
147792
- localVarHeaderParameter['Accept'] = 'application/json';
147793
-
147794
- setSearchParams(localVarUrlObj, localVarQueryParameter);
147795
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
147796
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
147797
- localVarRequestOptions.data = serializeDataIfNeeded(threadMemberUpdateInputs, localVarRequestOptions, configuration)
147798
-
147799
- return {
147800
- url: toPathString(localVarUrlObj),
147801
- options: localVarRequestOptions,
147802
- };
147803
- },
147804
- }
147805
- };
147806
-
147807
- /**
147808
- * ThreadsMembersApi - functional programming interface
147809
- */
147810
- export const ThreadsMembersApiFp = function(configuration?: Configuration) {
147811
- const localVarAxiosParamCreator = ThreadsMembersApiAxiosParamCreator(configuration)
147812
- return {
147813
- /**
147814
- * Get Thread Accounts endpoint
147815
- * @summary Get Thread Accounts
147816
- * @param {string} threadId The thread identifier
147817
- * @param {number} [page] Page number
147818
- * @param {number} [pageSize] Number of items per page
147819
- * @param {string} [orderBy] Field to order by
147820
- * @param {string} [search] Search query
147821
- * @param {*} [options] Override http request option.
147822
- * @throws {RequiredError}
147823
- */
147824
- async getThreadAccounts(threadId: string, page?: number, pageSize?: number, orderBy?: string, search?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetAccounts200Response>> {
147825
- const localVarAxiosArgs = await localVarAxiosParamCreator.getThreadAccounts(threadId, page, pageSize, orderBy, search, options);
147826
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
147827
- const localVarOperationServerBasePath = operationServerMap['ThreadsMembersApi.getThreadAccounts']?.[localVarOperationServerIndex]?.url;
147828
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
147829
- },
147830
- /**
147831
- * Get Thread Members endpoint
147832
- * @summary Get Thread Members
147833
- * @param {string} threadId The thread identifier
147834
- * @param {number} [page] Page number
147835
- * @param {number} [pageSize] Number of items per page
147836
- * @param {string} [orderBy] Field to order by
147837
- * @param {string} [search] Search query
147838
- * @param {*} [options] Override http request option.
147839
- * @throws {RequiredError}
147840
- */
147841
- async getThreadMembers(threadId: string, page?: number, pageSize?: number, orderBy?: string, search?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetThreadMembers200Response>> {
147842
- const localVarAxiosArgs = await localVarAxiosParamCreator.getThreadMembers(threadId, page, pageSize, orderBy, search, options);
147843
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
147844
- const localVarOperationServerBasePath = operationServerMap['ThreadsMembersApi.getThreadMembers']?.[localVarOperationServerIndex]?.url;
147845
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
147846
- },
147847
- /**
147848
- * Update Thread Member endpoint
147849
- * @summary Update Thread Member
147850
- * @param {string} threadId The thread identifier
147851
- * @param {string} accountId The account identifier
147852
- * @param {ThreadMemberUpdateInputs} threadMemberUpdateInputs
147853
- * @param {*} [options] Override http request option.
147854
- * @throws {RequiredError}
147855
- */
147856
- async updateThreadMember(threadId: string, accountId: string, threadMemberUpdateInputs: ThreadMemberUpdateInputs, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UpdateThreadMember200Response>> {
147857
- const localVarAxiosArgs = await localVarAxiosParamCreator.updateThreadMember(threadId, accountId, threadMemberUpdateInputs, options);
147858
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
147859
- const localVarOperationServerBasePath = operationServerMap['ThreadsMembersApi.updateThreadMember']?.[localVarOperationServerIndex]?.url;
147860
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
147861
- },
147862
- }
147863
- };
147864
-
147865
- /**
147866
- * ThreadsMembersApi - factory interface
147867
- */
147868
- export const ThreadsMembersApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
147869
- const localVarFp = ThreadsMembersApiFp(configuration)
147870
- return {
147871
- /**
147872
- * Get Thread Accounts endpoint
147873
- * @summary Get Thread Accounts
147874
- * @param {ThreadsMembersApiGetThreadAccountsRequest} requestParameters Request parameters.
147875
- * @param {*} [options] Override http request option.
147876
- * @throws {RequiredError}
147877
- */
147878
- getThreadAccounts(requestParameters: ThreadsMembersApiGetThreadAccountsRequest, options?: RawAxiosRequestConfig): AxiosPromise<GetAccounts200Response> {
147879
- return localVarFp.getThreadAccounts(requestParameters.threadId, requestParameters.page, requestParameters.pageSize, requestParameters.orderBy, requestParameters.search, options).then((request) => request(axios, basePath));
147880
- },
147881
- /**
147882
- * Get Thread Members endpoint
147883
- * @summary Get Thread Members
147884
- * @param {ThreadsMembersApiGetThreadMembersRequest} requestParameters Request parameters.
147885
- * @param {*} [options] Override http request option.
147886
- * @throws {RequiredError}
147887
- */
147888
- getThreadMembers(requestParameters: ThreadsMembersApiGetThreadMembersRequest, options?: RawAxiosRequestConfig): AxiosPromise<GetThreadMembers200Response> {
147889
- return localVarFp.getThreadMembers(requestParameters.threadId, requestParameters.page, requestParameters.pageSize, requestParameters.orderBy, requestParameters.search, options).then((request) => request(axios, basePath));
147890
- },
147891
- /**
147892
- * Update Thread Member endpoint
147893
- * @summary Update Thread Member
147894
- * @param {ThreadsMembersApiUpdateThreadMemberRequest} requestParameters Request parameters.
147895
- * @param {*} [options] Override http request option.
147896
- * @throws {RequiredError}
147897
- */
147898
- updateThreadMember(requestParameters: ThreadsMembersApiUpdateThreadMemberRequest, options?: RawAxiosRequestConfig): AxiosPromise<UpdateThreadMember200Response> {
147899
- return localVarFp.updateThreadMember(requestParameters.threadId, requestParameters.accountId, requestParameters.threadMemberUpdateInputs, options).then((request) => request(axios, basePath));
147900
- },
147901
- };
147902
- };
147903
-
147904
- /**
147905
- * Request parameters for getThreadAccounts operation in ThreadsMembersApi.
147906
- */
147907
- export interface ThreadsMembersApiGetThreadAccountsRequest {
147908
- /**
147909
- * The thread identifier
147910
- */
147911
- readonly threadId: string
147912
-
147913
- /**
147914
- * Page number
147915
- */
147916
- readonly page?: number
147917
-
147918
- /**
147919
- * Number of items per page
147920
- */
147921
- readonly pageSize?: number
147922
-
147923
- /**
147924
- * Field to order by
147925
- */
147926
- readonly orderBy?: string
147927
-
147928
- /**
147929
- * Search query
147930
- */
147931
- readonly search?: string
147932
- }
147933
-
147934
- /**
147935
- * Request parameters for getThreadMembers operation in ThreadsMembersApi.
147936
- */
147937
- export interface ThreadsMembersApiGetThreadMembersRequest {
147938
- /**
147939
- * The thread identifier
147940
- */
147941
- readonly threadId: string
147942
-
147943
- /**
147944
- * Page number
147945
- */
147946
- readonly page?: number
147947
-
147948
- /**
147949
- * Number of items per page
147950
- */
147951
- readonly pageSize?: number
147952
-
147953
- /**
147954
- * Field to order by
147955
- */
147956
- readonly orderBy?: string
147957
-
147958
- /**
147959
- * Search query
147960
- */
147961
- readonly search?: string
147962
- }
147963
-
147964
- /**
147965
- * Request parameters for updateThreadMember operation in ThreadsMembersApi.
147966
- */
147967
- export interface ThreadsMembersApiUpdateThreadMemberRequest {
146324
+ export interface ThreadsAccountsApiUpdateThreadAccountRequest {
147968
146325
  /**
147969
146326
  * The thread identifier
147970
146327
  */
@@ -147975,44 +146332,44 @@ export interface ThreadsMembersApiUpdateThreadMemberRequest {
147975
146332
  */
147976
146333
  readonly accountId: string
147977
146334
 
147978
- readonly threadMemberUpdateInputs: ThreadMemberUpdateInputs
146335
+ readonly threadAccountUpdateInputs: ThreadAccountUpdateInputs
147979
146336
  }
147980
146337
 
147981
146338
  /**
147982
- * ThreadsMembersApi - object-oriented interface
146339
+ * ThreadsAccountsApi - object-oriented interface
147983
146340
  */
147984
- export class ThreadsMembersApi extends BaseAPI {
146341
+ export class ThreadsAccountsApi extends BaseAPI {
147985
146342
  /**
147986
- * Get Thread Accounts endpoint
147987
- * @summary Get Thread Accounts
147988
- * @param {ThreadsMembersApiGetThreadAccountsRequest} requestParameters Request parameters.
146343
+ * Delete Thread Account endpoint
146344
+ * @summary Delete Thread Account
146345
+ * @param {ThreadsAccountsApiDeleteThreadAccountRequest} requestParameters Request parameters.
147989
146346
  * @param {*} [options] Override http request option.
147990
146347
  * @throws {RequiredError}
147991
146348
  */
147992
- public getThreadAccounts(requestParameters: ThreadsMembersApiGetThreadAccountsRequest, options?: RawAxiosRequestConfig) {
147993
- return ThreadsMembersApiFp(this.configuration).getThreadAccounts(requestParameters.threadId, requestParameters.page, requestParameters.pageSize, requestParameters.orderBy, requestParameters.search, options).then((request) => request(this.axios, this.basePath));
146349
+ public deleteThreadAccount(requestParameters: ThreadsAccountsApiDeleteThreadAccountRequest, options?: RawAxiosRequestConfig) {
146350
+ return ThreadsAccountsApiFp(this.configuration).deleteThreadAccount(requestParameters.threadId, requestParameters.accountId, options).then((request) => request(this.axios, this.basePath));
147994
146351
  }
147995
146352
 
147996
146353
  /**
147997
- * Get Thread Members endpoint
147998
- * @summary Get Thread Members
147999
- * @param {ThreadsMembersApiGetThreadMembersRequest} requestParameters Request parameters.
146354
+ * Get Thread Accounts endpoint
146355
+ * @summary Get Thread Accounts
146356
+ * @param {ThreadsAccountsApiGetThreadAccountsRequest} requestParameters Request parameters.
148000
146357
  * @param {*} [options] Override http request option.
148001
146358
  * @throws {RequiredError}
148002
146359
  */
148003
- public getThreadMembers(requestParameters: ThreadsMembersApiGetThreadMembersRequest, options?: RawAxiosRequestConfig) {
148004
- return ThreadsMembersApiFp(this.configuration).getThreadMembers(requestParameters.threadId, requestParameters.page, requestParameters.pageSize, requestParameters.orderBy, requestParameters.search, options).then((request) => request(this.axios, this.basePath));
146360
+ public getThreadAccounts(requestParameters: ThreadsAccountsApiGetThreadAccountsRequest, options?: RawAxiosRequestConfig) {
146361
+ return ThreadsAccountsApiFp(this.configuration).getThreadAccounts(requestParameters.threadId, requestParameters.page, requestParameters.pageSize, requestParameters.orderBy, requestParameters.search, options).then((request) => request(this.axios, this.basePath));
148005
146362
  }
148006
146363
 
148007
146364
  /**
148008
- * Update Thread Member endpoint
148009
- * @summary Update Thread Member
148010
- * @param {ThreadsMembersApiUpdateThreadMemberRequest} requestParameters Request parameters.
146365
+ * Update Thread Account endpoint
146366
+ * @summary Update Thread Account
146367
+ * @param {ThreadsAccountsApiUpdateThreadAccountRequest} requestParameters Request parameters.
148011
146368
  * @param {*} [options] Override http request option.
148012
146369
  * @throws {RequiredError}
148013
146370
  */
148014
- public updateThreadMember(requestParameters: ThreadsMembersApiUpdateThreadMemberRequest, options?: RawAxiosRequestConfig) {
148015
- return ThreadsMembersApiFp(this.configuration).updateThreadMember(requestParameters.threadId, requestParameters.accountId, requestParameters.threadMemberUpdateInputs, options).then((request) => request(this.axios, this.basePath));
146371
+ public updateThreadAccount(requestParameters: ThreadsAccountsApiUpdateThreadAccountRequest, options?: RawAxiosRequestConfig) {
146372
+ return ThreadsAccountsApiFp(this.configuration).updateThreadAccount(requestParameters.threadId, requestParameters.accountId, requestParameters.threadAccountUpdateInputs, options).then((request) => request(this.axios, this.basePath));
148016
146373
  }
148017
146374
  }
148018
146375