@memnexus-ai/typescript-sdk 1.7.2 → 1.8.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.mjs CHANGED
@@ -3085,6 +3085,35 @@ var ConversationsService = class extends BaseService {
3085
3085
  }).build();
3086
3086
  return this.client.call(request);
3087
3087
  }
3088
+ /**
3089
+ * Delete a conversation and soft-delete all associated memories
3090
+ * @param {string} conversationId - The conversation ID
3091
+ * @param {RequestConfig} [requestConfig] - The request configuration for retry and validation.
3092
+ * @returns {Promise<HttpResponse<any>>} - Conversation deleted successfully
3093
+ */
3094
+ async deleteConversation(conversationId, requestConfig) {
3095
+ const request = new RequestBuilder().setBaseUrl((requestConfig == null ? void 0 : requestConfig.baseUrl) || this.config.baseUrl || this.config.environment || "http://localhost:3000" /* DEFAULT */).setConfig(this.config).setMethod("DELETE").setPath("/api/conversations/{conversationId}").setRequestSchema(z32.any()).addAccessTokenAuth(this.config.token).setRequestContentType("json" /* Json */).addResponse({
3096
+ schema: z32.undefined(),
3097
+ contentType: "noContent" /* NoContent */,
3098
+ status: 204
3099
+ }).addError({
3100
+ error: Error2,
3101
+ contentType: "json" /* Json */,
3102
+ status: 401
3103
+ }).addError({
3104
+ error: Error2,
3105
+ contentType: "json" /* Json */,
3106
+ status: 404
3107
+ }).addError({
3108
+ error: Error2,
3109
+ contentType: "json" /* Json */,
3110
+ status: 500
3111
+ }).setRetryAttempts(this.config, requestConfig).setRetryDelayMs(this.config, requestConfig).setResponseValidation(this.config, requestConfig).addPathParam({
3112
+ key: "conversationId",
3113
+ value: conversationId
3114
+ }).build();
3115
+ return this.client.call(request);
3116
+ }
3088
3117
  /**
3089
3118
  * Get all memories in a conversation in chronological order
3090
3119
  * @param {string} conversationId - The conversation ID
@@ -4465,30 +4494,35 @@ var entityRequest = z65.lazy(() => {
4465
4494
  }));
4466
4495
  });
4467
4496
 
4468
- // src/services/common/topic.ts
4497
+ // src/services/memories/models/topic-reference.ts
4469
4498
  import { z as z66 } from "zod";
4470
- var topic = z66.lazy(() => {
4499
+ var topicReference = z66.lazy(() => {
4471
4500
  return z66.object({
4501
+ id: z66.string(),
4472
4502
  name: z66.string(),
4473
- count: z66.number().gte(0)
4503
+ createdAt: z66.string().optional()
4474
4504
  });
4475
4505
  });
4476
- var topicResponse = z66.lazy(() => {
4506
+ var topicReferenceResponse = z66.lazy(() => {
4477
4507
  return z66.object({
4508
+ id: z66.string(),
4478
4509
  name: z66.string(),
4479
- count: z66.number().gte(0)
4510
+ createdAt: z66.string().optional()
4480
4511
  }).transform((data) => ({
4512
+ id: data["id"],
4481
4513
  name: data["name"],
4482
- count: data["count"]
4514
+ createdAt: data["createdAt"]
4483
4515
  }));
4484
4516
  });
4485
- var topicRequest = z66.lazy(() => {
4517
+ var topicReferenceRequest = z66.lazy(() => {
4486
4518
  return z66.object({
4519
+ id: z66.string(),
4487
4520
  name: z66.string(),
4488
- count: z66.number().gte(0)
4521
+ createdAt: z66.string().optional()
4489
4522
  }).transform((data) => ({
4523
+ id: data["id"],
4490
4524
  name: data["name"],
4491
- count: data["count"]
4525
+ createdAt: data["createdAt"]
4492
4526
  }));
4493
4527
  });
4494
4528
 
@@ -4535,7 +4569,7 @@ var searchResult = z68.lazy(() => {
4535
4569
  memory: searchResultMemory,
4536
4570
  score: z68.number(),
4537
4571
  entities: z68.array(entity).optional(),
4538
- topics: z68.array(topic).optional(),
4572
+ topics: z68.array(topicReference).optional(),
4539
4573
  searchMethod: z68.string().optional(),
4540
4574
  hybridScore: z68.number().optional(),
4541
4575
  vectorScore: z68.number().optional(),
@@ -4550,7 +4584,7 @@ var searchResultResponse = z68.lazy(() => {
4550
4584
  memory: searchResultMemoryResponse,
4551
4585
  score: z68.number(),
4552
4586
  entities: z68.array(entityResponse).optional(),
4553
- topics: z68.array(topicResponse).optional(),
4587
+ topics: z68.array(topicReferenceResponse).optional(),
4554
4588
  searchMethod: z68.string().optional(),
4555
4589
  hybridScore: z68.number().optional(),
4556
4590
  vectorScore: z68.number().optional(),
@@ -4577,7 +4611,7 @@ var searchResultRequest = z68.lazy(() => {
4577
4611
  memory: searchResultMemoryRequest,
4578
4612
  score: z68.number(),
4579
4613
  entities: z68.array(entityRequest).optional(),
4580
- topics: z68.array(topicRequest).optional(),
4614
+ topics: z68.array(topicReferenceRequest).optional(),
4581
4615
  searchMethod: z68.string().optional(),
4582
4616
  hybridScore: z68.number().optional(),
4583
4617
  vectorScore: z68.number().optional(),
@@ -6749,36 +6783,63 @@ var BehaviorService = class extends BaseService {
6749
6783
  };
6750
6784
 
6751
6785
  // src/services/topics/topics-service.ts
6752
- import { z as z140 } from "zod";
6786
+ import { z as z141 } from "zod";
6753
6787
 
6754
6788
  // src/services/topics/models/list-topics-ok-response.ts
6755
- import { z as z119 } from "zod";
6789
+ import { z as z120 } from "zod";
6756
6790
 
6757
- // src/services/topics/models/list-topics-ok-response-pagination.ts
6791
+ // src/services/topics/models/topic.ts
6758
6792
  import { z as z118 } from "zod";
6759
- var listTopicsOkResponsePagination = z118.lazy(() => {
6793
+ var topic = z118.lazy(() => {
6760
6794
  return z118.object({
6761
- limit: z118.number().optional(),
6762
- offset: z118.number().optional(),
6763
- count: z118.number().optional()
6795
+ name: z118.string(),
6796
+ count: z118.number().gte(0)
6764
6797
  });
6765
6798
  });
6766
- var listTopicsOkResponsePaginationResponse = z118.lazy(() => {
6799
+ var topicResponse = z118.lazy(() => {
6767
6800
  return z118.object({
6768
- limit: z118.number().optional(),
6769
- offset: z118.number().optional(),
6770
- count: z118.number().optional()
6801
+ name: z118.string(),
6802
+ count: z118.number().gte(0)
6803
+ }).transform((data) => ({
6804
+ name: data["name"],
6805
+ count: data["count"]
6806
+ }));
6807
+ });
6808
+ var topicRequest = z118.lazy(() => {
6809
+ return z118.object({
6810
+ name: z118.string(),
6811
+ count: z118.number().gte(0)
6812
+ }).transform((data) => ({
6813
+ name: data["name"],
6814
+ count: data["count"]
6815
+ }));
6816
+ });
6817
+
6818
+ // src/services/topics/models/list-topics-ok-response-pagination.ts
6819
+ import { z as z119 } from "zod";
6820
+ var listTopicsOkResponsePagination = z119.lazy(() => {
6821
+ return z119.object({
6822
+ limit: z119.number().optional(),
6823
+ offset: z119.number().optional(),
6824
+ count: z119.number().optional()
6825
+ });
6826
+ });
6827
+ var listTopicsOkResponsePaginationResponse = z119.lazy(() => {
6828
+ return z119.object({
6829
+ limit: z119.number().optional(),
6830
+ offset: z119.number().optional(),
6831
+ count: z119.number().optional()
6771
6832
  }).transform((data) => ({
6772
6833
  limit: data["limit"],
6773
6834
  offset: data["offset"],
6774
6835
  count: data["count"]
6775
6836
  }));
6776
6837
  });
6777
- var listTopicsOkResponsePaginationRequest = z118.lazy(() => {
6778
- return z118.object({
6779
- limit: z118.number().optional(),
6780
- offset: z118.number().optional(),
6781
- count: z118.number().optional()
6838
+ var listTopicsOkResponsePaginationRequest = z119.lazy(() => {
6839
+ return z119.object({
6840
+ limit: z119.number().optional(),
6841
+ offset: z119.number().optional(),
6842
+ count: z119.number().optional()
6782
6843
  }).transform((data) => ({
6783
6844
  limit: data["limit"],
6784
6845
  offset: data["offset"],
@@ -6787,24 +6848,24 @@ var listTopicsOkResponsePaginationRequest = z118.lazy(() => {
6787
6848
  });
6788
6849
 
6789
6850
  // src/services/topics/models/list-topics-ok-response.ts
6790
- var listTopicsOkResponse = z119.lazy(() => {
6791
- return z119.object({
6792
- data: z119.array(topic).optional(),
6851
+ var listTopicsOkResponse = z120.lazy(() => {
6852
+ return z120.object({
6853
+ data: z120.array(topic).optional(),
6793
6854
  pagination: listTopicsOkResponsePagination.optional()
6794
6855
  });
6795
6856
  });
6796
- var listTopicsOkResponseResponse = z119.lazy(() => {
6797
- return z119.object({
6798
- data: z119.array(topicResponse).optional(),
6857
+ var listTopicsOkResponseResponse = z120.lazy(() => {
6858
+ return z120.object({
6859
+ data: z120.array(topicResponse).optional(),
6799
6860
  pagination: listTopicsOkResponsePaginationResponse.optional()
6800
6861
  }).transform((data) => ({
6801
6862
  data: data["data"],
6802
6863
  pagination: data["pagination"]
6803
6864
  }));
6804
6865
  });
6805
- var listTopicsOkResponseRequest = z119.lazy(() => {
6806
- return z119.object({
6807
- data: z119.array(topicRequest).optional(),
6866
+ var listTopicsOkResponseRequest = z120.lazy(() => {
6867
+ return z120.object({
6868
+ data: z120.array(topicRequest).optional(),
6808
6869
  pagination: listTopicsOkResponsePaginationRequest.optional()
6809
6870
  }).transform((data) => ({
6810
6871
  data: data["data"],
@@ -6813,21 +6874,21 @@ var listTopicsOkResponseRequest = z119.lazy(() => {
6813
6874
  });
6814
6875
 
6815
6876
  // src/services/topics/models/get-topic-by-id-ok-response.ts
6816
- import { z as z120 } from "zod";
6817
- var getTopicByIdOkResponse = z120.lazy(() => {
6818
- return z120.object({
6877
+ import { z as z121 } from "zod";
6878
+ var getTopicByIdOkResponse = z121.lazy(() => {
6879
+ return z121.object({
6819
6880
  data: topic.optional()
6820
6881
  });
6821
6882
  });
6822
- var getTopicByIdOkResponseResponse = z120.lazy(() => {
6823
- return z120.object({
6883
+ var getTopicByIdOkResponseResponse = z121.lazy(() => {
6884
+ return z121.object({
6824
6885
  data: topicResponse.optional()
6825
6886
  }).transform((data) => ({
6826
6887
  data: data["data"]
6827
6888
  }));
6828
6889
  });
6829
- var getTopicByIdOkResponseRequest = z120.lazy(() => {
6830
- return z120.object({
6890
+ var getTopicByIdOkResponseRequest = z121.lazy(() => {
6891
+ return z121.object({
6831
6892
  data: topicRequest.optional()
6832
6893
  }).transform((data) => ({
6833
6894
  data: data["data"]
@@ -6835,26 +6896,26 @@ var getTopicByIdOkResponseRequest = z120.lazy(() => {
6835
6896
  });
6836
6897
 
6837
6898
  // src/services/topics/models/merge-topics-request.ts
6838
- import { z as z121 } from "zod";
6839
- var mergeTopicsRequest = z121.lazy(() => {
6840
- return z121.object({
6841
- sourceTopicId: z121.string(),
6842
- targetTopicId: z121.string()
6899
+ import { z as z122 } from "zod";
6900
+ var mergeTopicsRequest = z122.lazy(() => {
6901
+ return z122.object({
6902
+ sourceTopicId: z122.string(),
6903
+ targetTopicId: z122.string()
6843
6904
  });
6844
6905
  });
6845
- var mergeTopicsRequestResponse = z121.lazy(() => {
6846
- return z121.object({
6847
- sourceTopicId: z121.string(),
6848
- targetTopicId: z121.string()
6906
+ var mergeTopicsRequestResponse = z122.lazy(() => {
6907
+ return z122.object({
6908
+ sourceTopicId: z122.string(),
6909
+ targetTopicId: z122.string()
6849
6910
  }).transform((data) => ({
6850
6911
  sourceTopicId: data["sourceTopicId"],
6851
6912
  targetTopicId: data["targetTopicId"]
6852
6913
  }));
6853
6914
  });
6854
- var mergeTopicsRequestRequest = z121.lazy(() => {
6855
- return z121.object({
6856
- sourceTopicId: z121.string(),
6857
- targetTopicId: z121.string()
6915
+ var mergeTopicsRequestRequest = z122.lazy(() => {
6916
+ return z122.object({
6917
+ sourceTopicId: z122.string(),
6918
+ targetTopicId: z122.string()
6858
6919
  }).transform((data) => ({
6859
6920
  sourceTopicId: data["sourceTopicId"],
6860
6921
  targetTopicId: data["targetTopicId"]
@@ -6862,21 +6923,21 @@ var mergeTopicsRequestRequest = z121.lazy(() => {
6862
6923
  });
6863
6924
 
6864
6925
  // src/services/topics/models/merge-topics-ok-response.ts
6865
- import { z as z122 } from "zod";
6866
- var mergeTopicsOkResponse = z122.lazy(() => {
6867
- return z122.object({
6926
+ import { z as z123 } from "zod";
6927
+ var mergeTopicsOkResponse = z123.lazy(() => {
6928
+ return z123.object({
6868
6929
  data: topic.optional()
6869
6930
  });
6870
6931
  });
6871
- var mergeTopicsOkResponseResponse = z122.lazy(() => {
6872
- return z122.object({
6932
+ var mergeTopicsOkResponseResponse = z123.lazy(() => {
6933
+ return z123.object({
6873
6934
  data: topicResponse.optional()
6874
6935
  }).transform((data) => ({
6875
6936
  data: data["data"]
6876
6937
  }));
6877
6938
  });
6878
- var mergeTopicsOkResponseRequest = z122.lazy(() => {
6879
- return z122.object({
6939
+ var mergeTopicsOkResponseRequest = z123.lazy(() => {
6940
+ return z123.object({
6880
6941
  data: topicRequest.optional()
6881
6942
  }).transform((data) => ({
6882
6943
  data: data["data"]
@@ -6884,26 +6945,26 @@ var mergeTopicsOkResponseRequest = z122.lazy(() => {
6884
6945
  });
6885
6946
 
6886
6947
  // src/services/topics/models/discover-related-topics-request.ts
6887
- import { z as z123 } from "zod";
6888
- var discoverRelatedTopicsRequest = z123.lazy(() => {
6889
- return z123.object({
6890
- topicId: z123.string(),
6891
- limit: z123.number().optional()
6948
+ import { z as z124 } from "zod";
6949
+ var discoverRelatedTopicsRequest = z124.lazy(() => {
6950
+ return z124.object({
6951
+ topicId: z124.string(),
6952
+ limit: z124.number().optional()
6892
6953
  });
6893
6954
  });
6894
- var discoverRelatedTopicsRequestResponse = z123.lazy(() => {
6895
- return z123.object({
6896
- topicId: z123.string(),
6897
- limit: z123.number().optional()
6955
+ var discoverRelatedTopicsRequestResponse = z124.lazy(() => {
6956
+ return z124.object({
6957
+ topicId: z124.string(),
6958
+ limit: z124.number().optional()
6898
6959
  }).transform((data) => ({
6899
6960
  topicId: data["topicId"],
6900
6961
  limit: data["limit"]
6901
6962
  }));
6902
6963
  });
6903
- var discoverRelatedTopicsRequestRequest = z123.lazy(() => {
6904
- return z123.object({
6905
- topicId: z123.string(),
6906
- limit: z123.number().optional()
6964
+ var discoverRelatedTopicsRequestRequest = z124.lazy(() => {
6965
+ return z124.object({
6966
+ topicId: z124.string(),
6967
+ limit: z124.number().optional()
6907
6968
  }).transform((data) => ({
6908
6969
  topicId: data["topicId"],
6909
6970
  limit: data["limit"]
@@ -6911,48 +6972,48 @@ var discoverRelatedTopicsRequestRequest = z123.lazy(() => {
6911
6972
  });
6912
6973
 
6913
6974
  // src/services/topics/models/discover-related-topics-ok-response.ts
6914
- import { z as z124 } from "zod";
6915
- var discoverRelatedTopicsOkResponse = z124.lazy(() => {
6916
- return z124.object({
6917
- data: z124.array(topic).optional()
6975
+ import { z as z125 } from "zod";
6976
+ var discoverRelatedTopicsOkResponse = z125.lazy(() => {
6977
+ return z125.object({
6978
+ data: z125.array(topic).optional()
6918
6979
  });
6919
6980
  });
6920
- var discoverRelatedTopicsOkResponseResponse = z124.lazy(() => {
6921
- return z124.object({
6922
- data: z124.array(topicResponse).optional()
6981
+ var discoverRelatedTopicsOkResponseResponse = z125.lazy(() => {
6982
+ return z125.object({
6983
+ data: z125.array(topicResponse).optional()
6923
6984
  }).transform((data) => ({
6924
6985
  data: data["data"]
6925
6986
  }));
6926
6987
  });
6927
- var discoverRelatedTopicsOkResponseRequest = z124.lazy(() => {
6928
- return z124.object({
6929
- data: z124.array(topicRequest).optional()
6988
+ var discoverRelatedTopicsOkResponseRequest = z125.lazy(() => {
6989
+ return z125.object({
6990
+ data: z125.array(topicRequest).optional()
6930
6991
  }).transform((data) => ({
6931
6992
  data: data["data"]
6932
6993
  }));
6933
6994
  });
6934
6995
 
6935
6996
  // src/services/topics/models/calculate-topic-similarity-request.ts
6936
- import { z as z125 } from "zod";
6937
- var calculateTopicSimilarityRequest = z125.lazy(() => {
6938
- return z125.object({
6939
- topicId1: z125.string(),
6940
- topicId2: z125.string()
6997
+ import { z as z126 } from "zod";
6998
+ var calculateTopicSimilarityRequest = z126.lazy(() => {
6999
+ return z126.object({
7000
+ topicId1: z126.string(),
7001
+ topicId2: z126.string()
6941
7002
  });
6942
7003
  });
6943
- var calculateTopicSimilarityRequestResponse = z125.lazy(() => {
6944
- return z125.object({
6945
- topicId1: z125.string(),
6946
- topicId2: z125.string()
7004
+ var calculateTopicSimilarityRequestResponse = z126.lazy(() => {
7005
+ return z126.object({
7006
+ topicId1: z126.string(),
7007
+ topicId2: z126.string()
6947
7008
  }).transform((data) => ({
6948
7009
  topicId1: data["topicId1"],
6949
7010
  topicId2: data["topicId2"]
6950
7011
  }));
6951
7012
  });
6952
- var calculateTopicSimilarityRequestRequest = z125.lazy(() => {
6953
- return z125.object({
6954
- topicId1: z125.string(),
6955
- topicId2: z125.string()
7013
+ var calculateTopicSimilarityRequestRequest = z126.lazy(() => {
7014
+ return z126.object({
7015
+ topicId1: z126.string(),
7016
+ topicId2: z126.string()
6956
7017
  }).transform((data) => ({
6957
7018
  topicId1: data["topicId1"],
6958
7019
  topicId2: data["topicId2"]
@@ -6960,45 +7021,45 @@ var calculateTopicSimilarityRequestRequest = z125.lazy(() => {
6960
7021
  });
6961
7022
 
6962
7023
  // src/services/topics/models/calculate-topic-similarity-ok-response.ts
6963
- import { z as z127 } from "zod";
7024
+ import { z as z128 } from "zod";
6964
7025
 
6965
7026
  // src/services/topics/models/calculate-topic-similarity-ok-response-data.ts
6966
- import { z as z126 } from "zod";
6967
- var calculateTopicSimilarityOkResponseData = z126.lazy(() => {
6968
- return z126.object({
6969
- similarity: z126.number().gte(0).lte(1).optional()
7027
+ import { z as z127 } from "zod";
7028
+ var calculateTopicSimilarityOkResponseData = z127.lazy(() => {
7029
+ return z127.object({
7030
+ similarity: z127.number().gte(0).lte(1).optional()
6970
7031
  });
6971
7032
  });
6972
- var calculateTopicSimilarityOkResponseDataResponse = z126.lazy(() => {
6973
- return z126.object({
6974
- similarity: z126.number().gte(0).lte(1).optional()
7033
+ var calculateTopicSimilarityOkResponseDataResponse = z127.lazy(() => {
7034
+ return z127.object({
7035
+ similarity: z127.number().gte(0).lte(1).optional()
6975
7036
  }).transform((data) => ({
6976
7037
  similarity: data["similarity"]
6977
7038
  }));
6978
7039
  });
6979
- var calculateTopicSimilarityOkResponseDataRequest = z126.lazy(() => {
6980
- return z126.object({
6981
- similarity: z126.number().gte(0).lte(1).optional()
7040
+ var calculateTopicSimilarityOkResponseDataRequest = z127.lazy(() => {
7041
+ return z127.object({
7042
+ similarity: z127.number().gte(0).lte(1).optional()
6982
7043
  }).transform((data) => ({
6983
7044
  similarity: data["similarity"]
6984
7045
  }));
6985
7046
  });
6986
7047
 
6987
7048
  // src/services/topics/models/calculate-topic-similarity-ok-response.ts
6988
- var calculateTopicSimilarityOkResponse = z127.lazy(() => {
6989
- return z127.object({
7049
+ var calculateTopicSimilarityOkResponse = z128.lazy(() => {
7050
+ return z128.object({
6990
7051
  data: calculateTopicSimilarityOkResponseData.optional()
6991
7052
  });
6992
7053
  });
6993
- var calculateTopicSimilarityOkResponseResponse = z127.lazy(() => {
6994
- return z127.object({
7054
+ var calculateTopicSimilarityOkResponseResponse = z128.lazy(() => {
7055
+ return z128.object({
6995
7056
  data: calculateTopicSimilarityOkResponseDataResponse.optional()
6996
7057
  }).transform((data) => ({
6997
7058
  data: data["data"]
6998
7059
  }));
6999
7060
  });
7000
- var calculateTopicSimilarityOkResponseRequest = z127.lazy(() => {
7001
- return z127.object({
7061
+ var calculateTopicSimilarityOkResponseRequest = z128.lazy(() => {
7062
+ return z128.object({
7002
7063
  data: calculateTopicSimilarityOkResponseDataRequest.optional()
7003
7064
  }).transform((data) => ({
7004
7065
  data: data["data"]
@@ -7006,30 +7067,30 @@ var calculateTopicSimilarityOkResponseRequest = z127.lazy(() => {
7006
7067
  });
7007
7068
 
7008
7069
  // src/services/topics/models/find-similar-topics-request.ts
7009
- import { z as z128 } from "zod";
7010
- var findSimilarTopicsRequest = z128.lazy(() => {
7011
- return z128.object({
7012
- topicId: z128.string(),
7013
- threshold: z128.number().optional(),
7014
- limit: z128.number().optional()
7070
+ import { z as z129 } from "zod";
7071
+ var findSimilarTopicsRequest = z129.lazy(() => {
7072
+ return z129.object({
7073
+ topicId: z129.string(),
7074
+ threshold: z129.number().optional(),
7075
+ limit: z129.number().optional()
7015
7076
  });
7016
7077
  });
7017
- var findSimilarTopicsRequestResponse = z128.lazy(() => {
7018
- return z128.object({
7019
- topicId: z128.string(),
7020
- threshold: z128.number().optional(),
7021
- limit: z128.number().optional()
7078
+ var findSimilarTopicsRequestResponse = z129.lazy(() => {
7079
+ return z129.object({
7080
+ topicId: z129.string(),
7081
+ threshold: z129.number().optional(),
7082
+ limit: z129.number().optional()
7022
7083
  }).transform((data) => ({
7023
7084
  topicId: data["topicId"],
7024
7085
  threshold: data["threshold"],
7025
7086
  limit: data["limit"]
7026
7087
  }));
7027
7088
  });
7028
- var findSimilarTopicsRequestRequest = z128.lazy(() => {
7029
- return z128.object({
7030
- topicId: z128.string(),
7031
- threshold: z128.number().optional(),
7032
- limit: z128.number().optional()
7089
+ var findSimilarTopicsRequestRequest = z129.lazy(() => {
7090
+ return z129.object({
7091
+ topicId: z129.string(),
7092
+ threshold: z129.number().optional(),
7093
+ limit: z129.number().optional()
7033
7094
  }).transform((data) => ({
7034
7095
  topicId: data["topicId"],
7035
7096
  threshold: data["threshold"],
@@ -7038,29 +7099,29 @@ var findSimilarTopicsRequestRequest = z128.lazy(() => {
7038
7099
  });
7039
7100
 
7040
7101
  // src/services/topics/models/find-similar-topics-ok-response.ts
7041
- import { z as z130 } from "zod";
7102
+ import { z as z131 } from "zod";
7042
7103
 
7043
7104
  // src/services/topics/models/find-similar-topics-ok-response-data.ts
7044
- import { z as z129 } from "zod";
7045
- var findSimilarTopicsOkResponseData = z129.lazy(() => {
7046
- return z129.object({
7105
+ import { z as z130 } from "zod";
7106
+ var findSimilarTopicsOkResponseData = z130.lazy(() => {
7107
+ return z130.object({
7047
7108
  topic: topic.optional(),
7048
- similarity: z129.number().optional()
7109
+ similarity: z130.number().optional()
7049
7110
  });
7050
7111
  });
7051
- var findSimilarTopicsOkResponseDataResponse = z129.lazy(() => {
7052
- return z129.object({
7112
+ var findSimilarTopicsOkResponseDataResponse = z130.lazy(() => {
7113
+ return z130.object({
7053
7114
  topic: topicResponse.optional(),
7054
- similarity: z129.number().optional()
7115
+ similarity: z130.number().optional()
7055
7116
  }).transform((data) => ({
7056
7117
  topic: data["topic"],
7057
7118
  similarity: data["similarity"]
7058
7119
  }));
7059
7120
  });
7060
- var findSimilarTopicsOkResponseDataRequest = z129.lazy(() => {
7061
- return z129.object({
7121
+ var findSimilarTopicsOkResponseDataRequest = z130.lazy(() => {
7122
+ return z130.object({
7062
7123
  topic: topicRequest.optional(),
7063
- similarity: z129.number().optional()
7124
+ similarity: z130.number().optional()
7064
7125
  }).transform((data) => ({
7065
7126
  topic: data["topic"],
7066
7127
  similarity: data["similarity"]
@@ -7068,72 +7129,72 @@ var findSimilarTopicsOkResponseDataRequest = z129.lazy(() => {
7068
7129
  });
7069
7130
 
7070
7131
  // src/services/topics/models/find-similar-topics-ok-response.ts
7071
- var findSimilarTopicsOkResponse = z130.lazy(() => {
7072
- return z130.object({
7073
- data: z130.array(findSimilarTopicsOkResponseData).optional()
7132
+ var findSimilarTopicsOkResponse = z131.lazy(() => {
7133
+ return z131.object({
7134
+ data: z131.array(findSimilarTopicsOkResponseData).optional()
7074
7135
  });
7075
7136
  });
7076
- var findSimilarTopicsOkResponseResponse = z130.lazy(() => {
7077
- return z130.object({
7078
- data: z130.array(findSimilarTopicsOkResponseDataResponse).optional()
7137
+ var findSimilarTopicsOkResponseResponse = z131.lazy(() => {
7138
+ return z131.object({
7139
+ data: z131.array(findSimilarTopicsOkResponseDataResponse).optional()
7079
7140
  }).transform((data) => ({
7080
7141
  data: data["data"]
7081
7142
  }));
7082
7143
  });
7083
- var findSimilarTopicsOkResponseRequest = z130.lazy(() => {
7084
- return z130.object({
7085
- data: z130.array(findSimilarTopicsOkResponseDataRequest).optional()
7144
+ var findSimilarTopicsOkResponseRequest = z131.lazy(() => {
7145
+ return z131.object({
7146
+ data: z131.array(findSimilarTopicsOkResponseDataRequest).optional()
7086
7147
  }).transform((data) => ({
7087
7148
  data: data["data"]
7088
7149
  }));
7089
7150
  });
7090
7151
 
7091
7152
  // src/services/topics/models/cluster-topics-request.ts
7092
- import { z as z131 } from "zod";
7093
- var clusterTopicsRequest = z131.lazy(() => {
7094
- return z131.object({
7095
- minClusterSize: z131.number().optional()
7153
+ import { z as z132 } from "zod";
7154
+ var clusterTopicsRequest = z132.lazy(() => {
7155
+ return z132.object({
7156
+ minClusterSize: z132.number().optional()
7096
7157
  });
7097
7158
  });
7098
- var clusterTopicsRequestResponse = z131.lazy(() => {
7099
- return z131.object({
7100
- minClusterSize: z131.number().optional()
7159
+ var clusterTopicsRequestResponse = z132.lazy(() => {
7160
+ return z132.object({
7161
+ minClusterSize: z132.number().optional()
7101
7162
  }).transform((data) => ({
7102
7163
  minClusterSize: data["minClusterSize"]
7103
7164
  }));
7104
7165
  });
7105
- var clusterTopicsRequestRequest = z131.lazy(() => {
7106
- return z131.object({
7107
- minClusterSize: z131.number().optional()
7166
+ var clusterTopicsRequestRequest = z132.lazy(() => {
7167
+ return z132.object({
7168
+ minClusterSize: z132.number().optional()
7108
7169
  }).transform((data) => ({
7109
7170
  minClusterSize: data["minClusterSize"]
7110
7171
  }));
7111
7172
  });
7112
7173
 
7113
7174
  // src/services/topics/models/cluster-topics-ok-response.ts
7114
- import { z as z133 } from "zod";
7175
+ import { z as z134 } from "zod";
7115
7176
 
7116
7177
  // src/services/topics/models/cluster-topics-ok-response-data.ts
7117
- import { z as z132 } from "zod";
7118
- var clusterTopicsOkResponseData = z132.lazy(() => {
7119
- return z132.object({
7120
- clusters: z132.array(z132.any()).optional(),
7121
- clusterCount: z132.number().optional()
7178
+ import { z as z133 } from "zod";
7179
+ var clusterTopicsOkResponseData = z133.lazy(() => {
7180
+ return z133.object({
7181
+ clusters: z133.array(z133.any()).optional(),
7182
+ clusterCount: z133.number().optional()
7122
7183
  });
7123
7184
  });
7124
- var clusterTopicsOkResponseDataResponse = z132.lazy(() => {
7125
- return z132.object({
7126
- clusters: z132.array(z132.any()).optional(),
7127
- clusterCount: z132.number().optional()
7185
+ var clusterTopicsOkResponseDataResponse = z133.lazy(() => {
7186
+ return z133.object({
7187
+ clusters: z133.array(z133.any()).optional(),
7188
+ clusterCount: z133.number().optional()
7128
7189
  }).transform((data) => ({
7129
7190
  clusters: data["clusters"],
7130
7191
  clusterCount: data["clusterCount"]
7131
7192
  }));
7132
7193
  });
7133
- var clusterTopicsOkResponseDataRequest = z132.lazy(() => {
7134
- return z132.object({
7135
- clusters: z132.array(z132.any()).optional(),
7136
- clusterCount: z132.number().optional()
7194
+ var clusterTopicsOkResponseDataRequest = z133.lazy(() => {
7195
+ return z133.object({
7196
+ clusters: z133.array(z133.any()).optional(),
7197
+ clusterCount: z133.number().optional()
7137
7198
  }).transform((data) => ({
7138
7199
  clusters: data["clusters"],
7139
7200
  clusterCount: data["clusterCount"]
@@ -7141,20 +7202,20 @@ var clusterTopicsOkResponseDataRequest = z132.lazy(() => {
7141
7202
  });
7142
7203
 
7143
7204
  // src/services/topics/models/cluster-topics-ok-response.ts
7144
- var clusterTopicsOkResponse = z133.lazy(() => {
7145
- return z133.object({
7205
+ var clusterTopicsOkResponse = z134.lazy(() => {
7206
+ return z134.object({
7146
7207
  data: clusterTopicsOkResponseData.optional()
7147
7208
  });
7148
7209
  });
7149
- var clusterTopicsOkResponseResponse = z133.lazy(() => {
7150
- return z133.object({
7210
+ var clusterTopicsOkResponseResponse = z134.lazy(() => {
7211
+ return z134.object({
7151
7212
  data: clusterTopicsOkResponseDataResponse.optional()
7152
7213
  }).transform((data) => ({
7153
7214
  data: data["data"]
7154
7215
  }));
7155
7216
  });
7156
- var clusterTopicsOkResponseRequest = z133.lazy(() => {
7157
- return z133.object({
7217
+ var clusterTopicsOkResponseRequest = z134.lazy(() => {
7218
+ return z134.object({
7158
7219
  data: clusterTopicsOkResponseDataRequest.optional()
7159
7220
  }).transform((data) => ({
7160
7221
  data: data["data"]
@@ -7162,53 +7223,53 @@ var clusterTopicsOkResponseRequest = z133.lazy(() => {
7162
7223
  });
7163
7224
 
7164
7225
  // src/services/topics/models/detect-communities-request.ts
7165
- import { z as z134 } from "zod";
7166
- var detectCommunitiesRequest = z134.lazy(() => {
7167
- return z134.object({
7168
- algorithm: z134.string().optional()
7226
+ import { z as z135 } from "zod";
7227
+ var detectCommunitiesRequest = z135.lazy(() => {
7228
+ return z135.object({
7229
+ algorithm: z135.string().optional()
7169
7230
  });
7170
7231
  });
7171
- var detectCommunitiesRequestResponse = z134.lazy(() => {
7172
- return z134.object({
7173
- algorithm: z134.string().optional()
7232
+ var detectCommunitiesRequestResponse = z135.lazy(() => {
7233
+ return z135.object({
7234
+ algorithm: z135.string().optional()
7174
7235
  }).transform((data) => ({
7175
7236
  algorithm: data["algorithm"]
7176
7237
  }));
7177
7238
  });
7178
- var detectCommunitiesRequestRequest = z134.lazy(() => {
7179
- return z134.object({
7180
- algorithm: z134.string().optional()
7239
+ var detectCommunitiesRequestRequest = z135.lazy(() => {
7240
+ return z135.object({
7241
+ algorithm: z135.string().optional()
7181
7242
  }).transform((data) => ({
7182
7243
  algorithm: data["algorithm"]
7183
7244
  }));
7184
7245
  });
7185
7246
 
7186
7247
  // src/services/topics/models/detect-communities-ok-response.ts
7187
- import { z as z137 } from "zod";
7248
+ import { z as z138 } from "zod";
7188
7249
 
7189
7250
  // src/services/topics/models/detect-communities-ok-response-data.ts
7190
- import { z as z136 } from "zod";
7251
+ import { z as z137 } from "zod";
7191
7252
 
7192
7253
  // src/services/common/community.ts
7193
- import { z as z135 } from "zod";
7194
- var community = z135.lazy(() => {
7195
- return z135.object({
7196
- id: z135.string(),
7197
- name: z135.string(),
7198
- description: z135.string().optional().nullable(),
7199
- topicCount: z135.number().gte(0).optional(),
7200
- createdAt: z135.string(),
7201
- updatedAt: z135.string()
7254
+ import { z as z136 } from "zod";
7255
+ var community = z136.lazy(() => {
7256
+ return z136.object({
7257
+ id: z136.string(),
7258
+ name: z136.string(),
7259
+ description: z136.string().optional().nullable(),
7260
+ topicCount: z136.number().gte(0).optional(),
7261
+ createdAt: z136.string(),
7262
+ updatedAt: z136.string()
7202
7263
  });
7203
7264
  });
7204
- var communityResponse = z135.lazy(() => {
7205
- return z135.object({
7206
- id: z135.string(),
7207
- name: z135.string(),
7208
- description: z135.string().optional().nullable(),
7209
- topicCount: z135.number().gte(0).optional(),
7210
- createdAt: z135.string(),
7211
- updatedAt: z135.string()
7265
+ var communityResponse = z136.lazy(() => {
7266
+ return z136.object({
7267
+ id: z136.string(),
7268
+ name: z136.string(),
7269
+ description: z136.string().optional().nullable(),
7270
+ topicCount: z136.number().gte(0).optional(),
7271
+ createdAt: z136.string(),
7272
+ updatedAt: z136.string()
7212
7273
  }).transform((data) => ({
7213
7274
  id: data["id"],
7214
7275
  name: data["name"],
@@ -7218,14 +7279,14 @@ var communityResponse = z135.lazy(() => {
7218
7279
  updatedAt: data["updatedAt"]
7219
7280
  }));
7220
7281
  });
7221
- var communityRequest = z135.lazy(() => {
7222
- return z135.object({
7223
- id: z135.string(),
7224
- name: z135.string(),
7225
- description: z135.string().optional().nullable(),
7226
- topicCount: z135.number().gte(0).optional(),
7227
- createdAt: z135.string(),
7228
- updatedAt: z135.string()
7282
+ var communityRequest = z136.lazy(() => {
7283
+ return z136.object({
7284
+ id: z136.string(),
7285
+ name: z136.string(),
7286
+ description: z136.string().optional().nullable(),
7287
+ topicCount: z136.number().gte(0).optional(),
7288
+ createdAt: z136.string(),
7289
+ updatedAt: z136.string()
7229
7290
  }).transform((data) => ({
7230
7291
  id: data["id"],
7231
7292
  name: data["name"],
@@ -7237,25 +7298,25 @@ var communityRequest = z135.lazy(() => {
7237
7298
  });
7238
7299
 
7239
7300
  // src/services/topics/models/detect-communities-ok-response-data.ts
7240
- var detectCommunitiesOkResponseData = z136.lazy(() => {
7241
- return z136.object({
7242
- communities: z136.array(community).optional(),
7243
- communityCount: z136.number().optional()
7301
+ var detectCommunitiesOkResponseData = z137.lazy(() => {
7302
+ return z137.object({
7303
+ communities: z137.array(community).optional(),
7304
+ communityCount: z137.number().optional()
7244
7305
  });
7245
7306
  });
7246
- var detectCommunitiesOkResponseDataResponse = z136.lazy(() => {
7247
- return z136.object({
7248
- communities: z136.array(communityResponse).optional(),
7249
- communityCount: z136.number().optional()
7307
+ var detectCommunitiesOkResponseDataResponse = z137.lazy(() => {
7308
+ return z137.object({
7309
+ communities: z137.array(communityResponse).optional(),
7310
+ communityCount: z137.number().optional()
7250
7311
  }).transform((data) => ({
7251
7312
  communities: data["communities"],
7252
7313
  communityCount: data["communityCount"]
7253
7314
  }));
7254
7315
  });
7255
- var detectCommunitiesOkResponseDataRequest = z136.lazy(() => {
7256
- return z136.object({
7257
- communities: z136.array(communityRequest).optional(),
7258
- communityCount: z136.number().optional()
7316
+ var detectCommunitiesOkResponseDataRequest = z137.lazy(() => {
7317
+ return z137.object({
7318
+ communities: z137.array(communityRequest).optional(),
7319
+ communityCount: z137.number().optional()
7259
7320
  }).transform((data) => ({
7260
7321
  communities: data["communities"],
7261
7322
  communityCount: data["communityCount"]
@@ -7263,20 +7324,20 @@ var detectCommunitiesOkResponseDataRequest = z136.lazy(() => {
7263
7324
  });
7264
7325
 
7265
7326
  // src/services/topics/models/detect-communities-ok-response.ts
7266
- var detectCommunitiesOkResponse = z137.lazy(() => {
7267
- return z137.object({
7327
+ var detectCommunitiesOkResponse = z138.lazy(() => {
7328
+ return z138.object({
7268
7329
  data: detectCommunitiesOkResponseData.optional()
7269
7330
  });
7270
7331
  });
7271
- var detectCommunitiesOkResponseResponse = z137.lazy(() => {
7272
- return z137.object({
7332
+ var detectCommunitiesOkResponseResponse = z138.lazy(() => {
7333
+ return z138.object({
7273
7334
  data: detectCommunitiesOkResponseDataResponse.optional()
7274
7335
  }).transform((data) => ({
7275
7336
  data: data["data"]
7276
7337
  }));
7277
7338
  });
7278
- var detectCommunitiesOkResponseRequest = z137.lazy(() => {
7279
- return z137.object({
7339
+ var detectCommunitiesOkResponseRequest = z138.lazy(() => {
7340
+ return z138.object({
7280
7341
  data: detectCommunitiesOkResponseDataRequest.optional()
7281
7342
  }).transform((data) => ({
7282
7343
  data: data["data"]
@@ -7284,30 +7345,30 @@ var detectCommunitiesOkResponseRequest = z137.lazy(() => {
7284
7345
  });
7285
7346
 
7286
7347
  // src/services/topics/models/search-topics-request.ts
7287
- import { z as z138 } from "zod";
7288
- var searchTopicsRequest = z138.lazy(() => {
7289
- return z138.object({
7290
- query: z138.string(),
7291
- limit: z138.number().optional(),
7292
- offset: z138.number().optional()
7348
+ import { z as z139 } from "zod";
7349
+ var searchTopicsRequest = z139.lazy(() => {
7350
+ return z139.object({
7351
+ query: z139.string(),
7352
+ limit: z139.number().optional(),
7353
+ offset: z139.number().optional()
7293
7354
  });
7294
7355
  });
7295
- var searchTopicsRequestResponse = z138.lazy(() => {
7296
- return z138.object({
7297
- query: z138.string(),
7298
- limit: z138.number().optional(),
7299
- offset: z138.number().optional()
7356
+ var searchTopicsRequestResponse = z139.lazy(() => {
7357
+ return z139.object({
7358
+ query: z139.string(),
7359
+ limit: z139.number().optional(),
7360
+ offset: z139.number().optional()
7300
7361
  }).transform((data) => ({
7301
7362
  query: data["query"],
7302
7363
  limit: data["limit"],
7303
7364
  offset: data["offset"]
7304
7365
  }));
7305
7366
  });
7306
- var searchTopicsRequestRequest = z138.lazy(() => {
7307
- return z138.object({
7308
- query: z138.string(),
7309
- limit: z138.number().optional(),
7310
- offset: z138.number().optional()
7367
+ var searchTopicsRequestRequest = z139.lazy(() => {
7368
+ return z139.object({
7369
+ query: z139.string(),
7370
+ limit: z139.number().optional(),
7371
+ offset: z139.number().optional()
7311
7372
  }).transform((data) => ({
7312
7373
  query: data["query"],
7313
7374
  limit: data["limit"],
@@ -7316,21 +7377,21 @@ var searchTopicsRequestRequest = z138.lazy(() => {
7316
7377
  });
7317
7378
 
7318
7379
  // src/services/topics/models/search-topics-ok-response.ts
7319
- import { z as z139 } from "zod";
7320
- var searchTopicsOkResponse = z139.lazy(() => {
7321
- return z139.object({
7322
- data: z139.array(z139.any()).optional(),
7323
- total: z139.number().optional(),
7324
- limit: z139.number().optional(),
7325
- offset: z139.number().optional()
7380
+ import { z as z140 } from "zod";
7381
+ var searchTopicsOkResponse = z140.lazy(() => {
7382
+ return z140.object({
7383
+ data: z140.array(z140.any()).optional(),
7384
+ total: z140.number().optional(),
7385
+ limit: z140.number().optional(),
7386
+ offset: z140.number().optional()
7326
7387
  });
7327
7388
  });
7328
- var searchTopicsOkResponseResponse = z139.lazy(() => {
7329
- return z139.object({
7330
- data: z139.array(z139.any()).optional(),
7331
- total: z139.number().optional(),
7332
- limit: z139.number().optional(),
7333
- offset: z139.number().optional()
7389
+ var searchTopicsOkResponseResponse = z140.lazy(() => {
7390
+ return z140.object({
7391
+ data: z140.array(z140.any()).optional(),
7392
+ total: z140.number().optional(),
7393
+ limit: z140.number().optional(),
7394
+ offset: z140.number().optional()
7334
7395
  }).transform((data) => ({
7335
7396
  data: data["data"],
7336
7397
  total: data["total"],
@@ -7338,12 +7399,12 @@ var searchTopicsOkResponseResponse = z139.lazy(() => {
7338
7399
  offset: data["offset"]
7339
7400
  }));
7340
7401
  });
7341
- var searchTopicsOkResponseRequest = z139.lazy(() => {
7342
- return z139.object({
7343
- data: z139.array(z139.any()).optional(),
7344
- total: z139.number().optional(),
7345
- limit: z139.number().optional(),
7346
- offset: z139.number().optional()
7402
+ var searchTopicsOkResponseRequest = z140.lazy(() => {
7403
+ return z140.object({
7404
+ data: z140.array(z140.any()).optional(),
7405
+ total: z140.number().optional(),
7406
+ limit: z140.number().optional(),
7407
+ offset: z140.number().optional()
7347
7408
  }).transform((data) => ({
7348
7409
  data: data["data"],
7349
7410
  total: data["total"],
@@ -7362,7 +7423,7 @@ var TopicsService = class extends BaseService {
7362
7423
  * @returns {Promise<HttpResponse<ListTopicsOkResponse>>} - List of topics retrieved successfully
7363
7424
  */
7364
7425
  async listTopics(params, requestConfig) {
7365
- const request = new RequestBuilder().setBaseUrl((requestConfig == null ? void 0 : requestConfig.baseUrl) || this.config.baseUrl || this.config.environment || "http://localhost:3000" /* DEFAULT */).setConfig(this.config).setMethod("GET").setPath("/api/topics").setRequestSchema(z140.any()).addAccessTokenAuth(this.config.token).setRequestContentType("json" /* Json */).addResponse({
7426
+ const request = new RequestBuilder().setBaseUrl((requestConfig == null ? void 0 : requestConfig.baseUrl) || this.config.baseUrl || this.config.environment || "http://localhost:3000" /* DEFAULT */).setConfig(this.config).setMethod("GET").setPath("/api/topics").setRequestSchema(z141.any()).addAccessTokenAuth(this.config.token).setRequestContentType("json" /* Json */).addResponse({
7366
7427
  schema: listTopicsOkResponseResponse,
7367
7428
  contentType: "json" /* Json */,
7368
7429
  status: 200
@@ -7390,7 +7451,7 @@ var TopicsService = class extends BaseService {
7390
7451
  * @returns {Promise<HttpResponse<GetTopicByIdOkResponse>>} - Topic retrieved successfully
7391
7452
  */
7392
7453
  async getTopicById(id, requestConfig) {
7393
- const request = new RequestBuilder().setBaseUrl((requestConfig == null ? void 0 : requestConfig.baseUrl) || this.config.baseUrl || this.config.environment || "http://localhost:3000" /* DEFAULT */).setConfig(this.config).setMethod("GET").setPath("/api/topics/{id}").setRequestSchema(z140.any()).addAccessTokenAuth(this.config.token).setRequestContentType("json" /* Json */).addResponse({
7454
+ const request = new RequestBuilder().setBaseUrl((requestConfig == null ? void 0 : requestConfig.baseUrl) || this.config.baseUrl || this.config.environment || "http://localhost:3000" /* DEFAULT */).setConfig(this.config).setMethod("GET").setPath("/api/topics/{id}").setRequestSchema(z141.any()).addAccessTokenAuth(this.config.token).setRequestContentType("json" /* Json */).addResponse({
7394
7455
  schema: getTopicByIdOkResponseResponse,
7395
7456
  contentType: "json" /* Json */,
7396
7457
  status: 200
@@ -7506,36 +7567,36 @@ var TopicsService = class extends BaseService {
7506
7567
  };
7507
7568
 
7508
7569
  // src/services/communities/communities-service.ts
7509
- import { z as z146 } from "zod";
7570
+ import { z as z147 } from "zod";
7510
7571
 
7511
7572
  // src/services/communities/models/list-communities-ok-response.ts
7512
- import { z as z142 } from "zod";
7573
+ import { z as z143 } from "zod";
7513
7574
 
7514
7575
  // src/services/communities/models/list-communities-ok-response-pagination.ts
7515
- import { z as z141 } from "zod";
7516
- var listCommunitiesOkResponsePagination = z141.lazy(() => {
7517
- return z141.object({
7518
- limit: z141.number().optional(),
7519
- offset: z141.number().optional(),
7520
- count: z141.number().optional()
7576
+ import { z as z142 } from "zod";
7577
+ var listCommunitiesOkResponsePagination = z142.lazy(() => {
7578
+ return z142.object({
7579
+ limit: z142.number().optional(),
7580
+ offset: z142.number().optional(),
7581
+ count: z142.number().optional()
7521
7582
  });
7522
7583
  });
7523
- var listCommunitiesOkResponsePaginationResponse = z141.lazy(() => {
7524
- return z141.object({
7525
- limit: z141.number().optional(),
7526
- offset: z141.number().optional(),
7527
- count: z141.number().optional()
7584
+ var listCommunitiesOkResponsePaginationResponse = z142.lazy(() => {
7585
+ return z142.object({
7586
+ limit: z142.number().optional(),
7587
+ offset: z142.number().optional(),
7588
+ count: z142.number().optional()
7528
7589
  }).transform((data) => ({
7529
7590
  limit: data["limit"],
7530
7591
  offset: data["offset"],
7531
7592
  count: data["count"]
7532
7593
  }));
7533
7594
  });
7534
- var listCommunitiesOkResponsePaginationRequest = z141.lazy(() => {
7535
- return z141.object({
7536
- limit: z141.number().optional(),
7537
- offset: z141.number().optional(),
7538
- count: z141.number().optional()
7595
+ var listCommunitiesOkResponsePaginationRequest = z142.lazy(() => {
7596
+ return z142.object({
7597
+ limit: z142.number().optional(),
7598
+ offset: z142.number().optional(),
7599
+ count: z142.number().optional()
7539
7600
  }).transform((data) => ({
7540
7601
  limit: data["limit"],
7541
7602
  offset: data["offset"],
@@ -7544,24 +7605,24 @@ var listCommunitiesOkResponsePaginationRequest = z141.lazy(() => {
7544
7605
  });
7545
7606
 
7546
7607
  // src/services/communities/models/list-communities-ok-response.ts
7547
- var listCommunitiesOkResponse = z142.lazy(() => {
7548
- return z142.object({
7549
- data: z142.array(community).optional(),
7608
+ var listCommunitiesOkResponse = z143.lazy(() => {
7609
+ return z143.object({
7610
+ data: z143.array(community).optional(),
7550
7611
  pagination: listCommunitiesOkResponsePagination.optional()
7551
7612
  });
7552
7613
  });
7553
- var listCommunitiesOkResponseResponse = z142.lazy(() => {
7554
- return z142.object({
7555
- data: z142.array(communityResponse).optional(),
7614
+ var listCommunitiesOkResponseResponse = z143.lazy(() => {
7615
+ return z143.object({
7616
+ data: z143.array(communityResponse).optional(),
7556
7617
  pagination: listCommunitiesOkResponsePaginationResponse.optional()
7557
7618
  }).transform((data) => ({
7558
7619
  data: data["data"],
7559
7620
  pagination: data["pagination"]
7560
7621
  }));
7561
7622
  });
7562
- var listCommunitiesOkResponseRequest = z142.lazy(() => {
7563
- return z142.object({
7564
- data: z142.array(communityRequest).optional(),
7623
+ var listCommunitiesOkResponseRequest = z143.lazy(() => {
7624
+ return z143.object({
7625
+ data: z143.array(communityRequest).optional(),
7565
7626
  pagination: listCommunitiesOkResponsePaginationRequest.optional()
7566
7627
  }).transform((data) => ({
7567
7628
  data: data["data"],
@@ -7570,21 +7631,21 @@ var listCommunitiesOkResponseRequest = z142.lazy(() => {
7570
7631
  });
7571
7632
 
7572
7633
  // src/services/communities/models/get-community-by-id-ok-response.ts
7573
- import { z as z143 } from "zod";
7574
- var getCommunityByIdOkResponse = z143.lazy(() => {
7575
- return z143.object({
7634
+ import { z as z144 } from "zod";
7635
+ var getCommunityByIdOkResponse = z144.lazy(() => {
7636
+ return z144.object({
7576
7637
  data: community.optional()
7577
7638
  });
7578
7639
  });
7579
- var getCommunityByIdOkResponseResponse = z143.lazy(() => {
7580
- return z143.object({
7640
+ var getCommunityByIdOkResponseResponse = z144.lazy(() => {
7641
+ return z144.object({
7581
7642
  data: communityResponse.optional()
7582
7643
  }).transform((data) => ({
7583
7644
  data: data["data"]
7584
7645
  }));
7585
7646
  });
7586
- var getCommunityByIdOkResponseRequest = z143.lazy(() => {
7587
- return z143.object({
7647
+ var getCommunityByIdOkResponseRequest = z144.lazy(() => {
7648
+ return z144.object({
7588
7649
  data: communityRequest.optional()
7589
7650
  }).transform((data) => ({
7590
7651
  data: data["data"]
@@ -7592,26 +7653,26 @@ var getCommunityByIdOkResponseRequest = z143.lazy(() => {
7592
7653
  });
7593
7654
 
7594
7655
  // src/services/communities/models/merge-communities-request.ts
7595
- import { z as z144 } from "zod";
7596
- var mergeCommunitiesRequest = z144.lazy(() => {
7597
- return z144.object({
7598
- sourceCommunityId: z144.string().min(1),
7599
- targetCommunityId: z144.string().min(1)
7656
+ import { z as z145 } from "zod";
7657
+ var mergeCommunitiesRequest = z145.lazy(() => {
7658
+ return z145.object({
7659
+ sourceCommunityId: z145.string().min(1),
7660
+ targetCommunityId: z145.string().min(1)
7600
7661
  });
7601
7662
  });
7602
- var mergeCommunitiesRequestResponse = z144.lazy(() => {
7603
- return z144.object({
7604
- sourceCommunityId: z144.string().min(1),
7605
- targetCommunityId: z144.string().min(1)
7663
+ var mergeCommunitiesRequestResponse = z145.lazy(() => {
7664
+ return z145.object({
7665
+ sourceCommunityId: z145.string().min(1),
7666
+ targetCommunityId: z145.string().min(1)
7606
7667
  }).transform((data) => ({
7607
7668
  sourceCommunityId: data["sourceCommunityId"],
7608
7669
  targetCommunityId: data["targetCommunityId"]
7609
7670
  }));
7610
7671
  });
7611
- var mergeCommunitiesRequestRequest = z144.lazy(() => {
7612
- return z144.object({
7613
- sourceCommunityId: z144.string().min(1),
7614
- targetCommunityId: z144.string().min(1)
7672
+ var mergeCommunitiesRequestRequest = z145.lazy(() => {
7673
+ return z145.object({
7674
+ sourceCommunityId: z145.string().min(1),
7675
+ targetCommunityId: z145.string().min(1)
7615
7676
  }).transform((data) => ({
7616
7677
  sourceCommunityId: data["sourceCommunityId"],
7617
7678
  targetCommunityId: data["targetCommunityId"]
@@ -7619,21 +7680,21 @@ var mergeCommunitiesRequestRequest = z144.lazy(() => {
7619
7680
  });
7620
7681
 
7621
7682
  // src/services/communities/models/merge-communities-ok-response.ts
7622
- import { z as z145 } from "zod";
7623
- var mergeCommunitiesOkResponse = z145.lazy(() => {
7624
- return z145.object({
7683
+ import { z as z146 } from "zod";
7684
+ var mergeCommunitiesOkResponse = z146.lazy(() => {
7685
+ return z146.object({
7625
7686
  data: community.optional()
7626
7687
  });
7627
7688
  });
7628
- var mergeCommunitiesOkResponseResponse = z145.lazy(() => {
7629
- return z145.object({
7689
+ var mergeCommunitiesOkResponseResponse = z146.lazy(() => {
7690
+ return z146.object({
7630
7691
  data: communityResponse.optional()
7631
7692
  }).transform((data) => ({
7632
7693
  data: data["data"]
7633
7694
  }));
7634
7695
  });
7635
- var mergeCommunitiesOkResponseRequest = z145.lazy(() => {
7636
- return z145.object({
7696
+ var mergeCommunitiesOkResponseRequest = z146.lazy(() => {
7697
+ return z146.object({
7637
7698
  data: communityRequest.optional()
7638
7699
  }).transform((data) => ({
7639
7700
  data: data["data"]
@@ -7650,7 +7711,7 @@ var CommunitiesService = class extends BaseService {
7650
7711
  * @returns {Promise<HttpResponse<ListCommunitiesOkResponse>>} - OK
7651
7712
  */
7652
7713
  async listCommunities(params, requestConfig) {
7653
- const request = new RequestBuilder().setBaseUrl((requestConfig == null ? void 0 : requestConfig.baseUrl) || this.config.baseUrl || this.config.environment || "http://localhost:3000" /* DEFAULT */).setConfig(this.config).setMethod("GET").setPath("/api/topics/communities").setRequestSchema(z146.any()).addAccessTokenAuth(this.config.token).setRequestContentType("json" /* Json */).addResponse({
7714
+ const request = new RequestBuilder().setBaseUrl((requestConfig == null ? void 0 : requestConfig.baseUrl) || this.config.baseUrl || this.config.environment || "http://localhost:3000" /* DEFAULT */).setConfig(this.config).setMethod("GET").setPath("/api/topics/communities").setRequestSchema(z147.any()).addAccessTokenAuth(this.config.token).setRequestContentType("json" /* Json */).addResponse({
7654
7715
  schema: listCommunitiesOkResponseResponse,
7655
7716
  contentType: "json" /* Json */,
7656
7717
  status: 200
@@ -7670,7 +7731,7 @@ var CommunitiesService = class extends BaseService {
7670
7731
  * @returns {Promise<HttpResponse<GetCommunityByIdOkResponse>>} - OK
7671
7732
  */
7672
7733
  async getCommunityById(id, requestConfig) {
7673
- const request = new RequestBuilder().setBaseUrl((requestConfig == null ? void 0 : requestConfig.baseUrl) || this.config.baseUrl || this.config.environment || "http://localhost:3000" /* DEFAULT */).setConfig(this.config).setMethod("GET").setPath("/api/topics/communities/{id}").setRequestSchema(z146.any()).addAccessTokenAuth(this.config.token).setRequestContentType("json" /* Json */).addResponse({
7734
+ const request = new RequestBuilder().setBaseUrl((requestConfig == null ? void 0 : requestConfig.baseUrl) || this.config.baseUrl || this.config.environment || "http://localhost:3000" /* DEFAULT */).setConfig(this.config).setMethod("GET").setPath("/api/topics/communities/{id}").setRequestSchema(z147.any()).addAccessTokenAuth(this.config.token).setRequestContentType("json" /* Json */).addResponse({
7674
7735
  schema: getCommunityByIdOkResponseResponse,
7675
7736
  contentType: "json" /* Json */,
7676
7737
  status: 200