@memnexus-ai/typescript-sdk 1.7.0 → 1.7.3

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
@@ -4465,30 +4465,35 @@ var entityRequest = z65.lazy(() => {
4465
4465
  }));
4466
4466
  });
4467
4467
 
4468
- // src/services/common/topic.ts
4468
+ // src/services/memories/models/topic-reference.ts
4469
4469
  import { z as z66 } from "zod";
4470
- var topic = z66.lazy(() => {
4470
+ var topicReference = z66.lazy(() => {
4471
4471
  return z66.object({
4472
+ id: z66.string(),
4472
4473
  name: z66.string(),
4473
- count: z66.number().gte(0)
4474
+ createdAt: z66.string().optional()
4474
4475
  });
4475
4476
  });
4476
- var topicResponse = z66.lazy(() => {
4477
+ var topicReferenceResponse = z66.lazy(() => {
4477
4478
  return z66.object({
4479
+ id: z66.string(),
4478
4480
  name: z66.string(),
4479
- count: z66.number().gte(0)
4481
+ createdAt: z66.string().optional()
4480
4482
  }).transform((data) => ({
4483
+ id: data["id"],
4481
4484
  name: data["name"],
4482
- count: data["count"]
4485
+ createdAt: data["createdAt"]
4483
4486
  }));
4484
4487
  });
4485
- var topicRequest = z66.lazy(() => {
4488
+ var topicReferenceRequest = z66.lazy(() => {
4486
4489
  return z66.object({
4490
+ id: z66.string(),
4487
4491
  name: z66.string(),
4488
- count: z66.number().gte(0)
4492
+ createdAt: z66.string().optional()
4489
4493
  }).transform((data) => ({
4494
+ id: data["id"],
4490
4495
  name: data["name"],
4491
- count: data["count"]
4496
+ createdAt: data["createdAt"]
4492
4497
  }));
4493
4498
  });
4494
4499
 
@@ -4535,7 +4540,7 @@ var searchResult = z68.lazy(() => {
4535
4540
  memory: searchResultMemory,
4536
4541
  score: z68.number(),
4537
4542
  entities: z68.array(entity).optional(),
4538
- topics: z68.array(topic).optional(),
4543
+ topics: z68.array(topicReference).optional(),
4539
4544
  searchMethod: z68.string().optional(),
4540
4545
  hybridScore: z68.number().optional(),
4541
4546
  vectorScore: z68.number().optional(),
@@ -4550,7 +4555,7 @@ var searchResultResponse = z68.lazy(() => {
4550
4555
  memory: searchResultMemoryResponse,
4551
4556
  score: z68.number(),
4552
4557
  entities: z68.array(entityResponse).optional(),
4553
- topics: z68.array(topicResponse).optional(),
4558
+ topics: z68.array(topicReferenceResponse).optional(),
4554
4559
  searchMethod: z68.string().optional(),
4555
4560
  hybridScore: z68.number().optional(),
4556
4561
  vectorScore: z68.number().optional(),
@@ -4577,7 +4582,7 @@ var searchResultRequest = z68.lazy(() => {
4577
4582
  memory: searchResultMemoryRequest,
4578
4583
  score: z68.number(),
4579
4584
  entities: z68.array(entityRequest).optional(),
4580
- topics: z68.array(topicRequest).optional(),
4585
+ topics: z68.array(topicReferenceRequest).optional(),
4581
4586
  searchMethod: z68.string().optional(),
4582
4587
  hybridScore: z68.number().optional(),
4583
4588
  vectorScore: z68.number().optional(),
@@ -6749,36 +6754,63 @@ var BehaviorService = class extends BaseService {
6749
6754
  };
6750
6755
 
6751
6756
  // src/services/topics/topics-service.ts
6752
- import { z as z140 } from "zod";
6757
+ import { z as z141 } from "zod";
6753
6758
 
6754
6759
  // src/services/topics/models/list-topics-ok-response.ts
6755
- import { z as z119 } from "zod";
6760
+ import { z as z120 } from "zod";
6756
6761
 
6757
- // src/services/topics/models/list-topics-ok-response-pagination.ts
6762
+ // src/services/topics/models/topic.ts
6758
6763
  import { z as z118 } from "zod";
6759
- var listTopicsOkResponsePagination = z118.lazy(() => {
6764
+ var topic = z118.lazy(() => {
6760
6765
  return z118.object({
6761
- limit: z118.number().optional(),
6762
- offset: z118.number().optional(),
6763
- count: z118.number().optional()
6766
+ name: z118.string(),
6767
+ count: z118.number().gte(0)
6764
6768
  });
6765
6769
  });
6766
- var listTopicsOkResponsePaginationResponse = z118.lazy(() => {
6770
+ var topicResponse = z118.lazy(() => {
6771
+ return z118.object({
6772
+ name: z118.string(),
6773
+ count: z118.number().gte(0)
6774
+ }).transform((data) => ({
6775
+ name: data["name"],
6776
+ count: data["count"]
6777
+ }));
6778
+ });
6779
+ var topicRequest = z118.lazy(() => {
6767
6780
  return z118.object({
6768
- limit: z118.number().optional(),
6769
- offset: z118.number().optional(),
6770
- count: z118.number().optional()
6781
+ name: z118.string(),
6782
+ count: z118.number().gte(0)
6783
+ }).transform((data) => ({
6784
+ name: data["name"],
6785
+ count: data["count"]
6786
+ }));
6787
+ });
6788
+
6789
+ // src/services/topics/models/list-topics-ok-response-pagination.ts
6790
+ import { z as z119 } from "zod";
6791
+ var listTopicsOkResponsePagination = z119.lazy(() => {
6792
+ return z119.object({
6793
+ limit: z119.number().optional(),
6794
+ offset: z119.number().optional(),
6795
+ count: z119.number().optional()
6796
+ });
6797
+ });
6798
+ var listTopicsOkResponsePaginationResponse = z119.lazy(() => {
6799
+ return z119.object({
6800
+ limit: z119.number().optional(),
6801
+ offset: z119.number().optional(),
6802
+ count: z119.number().optional()
6771
6803
  }).transform((data) => ({
6772
6804
  limit: data["limit"],
6773
6805
  offset: data["offset"],
6774
6806
  count: data["count"]
6775
6807
  }));
6776
6808
  });
6777
- var listTopicsOkResponsePaginationRequest = z118.lazy(() => {
6778
- return z118.object({
6779
- limit: z118.number().optional(),
6780
- offset: z118.number().optional(),
6781
- count: z118.number().optional()
6809
+ var listTopicsOkResponsePaginationRequest = z119.lazy(() => {
6810
+ return z119.object({
6811
+ limit: z119.number().optional(),
6812
+ offset: z119.number().optional(),
6813
+ count: z119.number().optional()
6782
6814
  }).transform((data) => ({
6783
6815
  limit: data["limit"],
6784
6816
  offset: data["offset"],
@@ -6787,24 +6819,24 @@ var listTopicsOkResponsePaginationRequest = z118.lazy(() => {
6787
6819
  });
6788
6820
 
6789
6821
  // src/services/topics/models/list-topics-ok-response.ts
6790
- var listTopicsOkResponse = z119.lazy(() => {
6791
- return z119.object({
6792
- data: z119.array(topic).optional(),
6822
+ var listTopicsOkResponse = z120.lazy(() => {
6823
+ return z120.object({
6824
+ data: z120.array(topic).optional(),
6793
6825
  pagination: listTopicsOkResponsePagination.optional()
6794
6826
  });
6795
6827
  });
6796
- var listTopicsOkResponseResponse = z119.lazy(() => {
6797
- return z119.object({
6798
- data: z119.array(topicResponse).optional(),
6828
+ var listTopicsOkResponseResponse = z120.lazy(() => {
6829
+ return z120.object({
6830
+ data: z120.array(topicResponse).optional(),
6799
6831
  pagination: listTopicsOkResponsePaginationResponse.optional()
6800
6832
  }).transform((data) => ({
6801
6833
  data: data["data"],
6802
6834
  pagination: data["pagination"]
6803
6835
  }));
6804
6836
  });
6805
- var listTopicsOkResponseRequest = z119.lazy(() => {
6806
- return z119.object({
6807
- data: z119.array(topicRequest).optional(),
6837
+ var listTopicsOkResponseRequest = z120.lazy(() => {
6838
+ return z120.object({
6839
+ data: z120.array(topicRequest).optional(),
6808
6840
  pagination: listTopicsOkResponsePaginationRequest.optional()
6809
6841
  }).transform((data) => ({
6810
6842
  data: data["data"],
@@ -6813,21 +6845,21 @@ var listTopicsOkResponseRequest = z119.lazy(() => {
6813
6845
  });
6814
6846
 
6815
6847
  // 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({
6848
+ import { z as z121 } from "zod";
6849
+ var getTopicByIdOkResponse = z121.lazy(() => {
6850
+ return z121.object({
6819
6851
  data: topic.optional()
6820
6852
  });
6821
6853
  });
6822
- var getTopicByIdOkResponseResponse = z120.lazy(() => {
6823
- return z120.object({
6854
+ var getTopicByIdOkResponseResponse = z121.lazy(() => {
6855
+ return z121.object({
6824
6856
  data: topicResponse.optional()
6825
6857
  }).transform((data) => ({
6826
6858
  data: data["data"]
6827
6859
  }));
6828
6860
  });
6829
- var getTopicByIdOkResponseRequest = z120.lazy(() => {
6830
- return z120.object({
6861
+ var getTopicByIdOkResponseRequest = z121.lazy(() => {
6862
+ return z121.object({
6831
6863
  data: topicRequest.optional()
6832
6864
  }).transform((data) => ({
6833
6865
  data: data["data"]
@@ -6835,26 +6867,26 @@ var getTopicByIdOkResponseRequest = z120.lazy(() => {
6835
6867
  });
6836
6868
 
6837
6869
  // 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()
6870
+ import { z as z122 } from "zod";
6871
+ var mergeTopicsRequest = z122.lazy(() => {
6872
+ return z122.object({
6873
+ sourceTopicId: z122.string(),
6874
+ targetTopicId: z122.string()
6843
6875
  });
6844
6876
  });
6845
- var mergeTopicsRequestResponse = z121.lazy(() => {
6846
- return z121.object({
6847
- sourceTopicId: z121.string(),
6848
- targetTopicId: z121.string()
6877
+ var mergeTopicsRequestResponse = z122.lazy(() => {
6878
+ return z122.object({
6879
+ sourceTopicId: z122.string(),
6880
+ targetTopicId: z122.string()
6849
6881
  }).transform((data) => ({
6850
6882
  sourceTopicId: data["sourceTopicId"],
6851
6883
  targetTopicId: data["targetTopicId"]
6852
6884
  }));
6853
6885
  });
6854
- var mergeTopicsRequestRequest = z121.lazy(() => {
6855
- return z121.object({
6856
- sourceTopicId: z121.string(),
6857
- targetTopicId: z121.string()
6886
+ var mergeTopicsRequestRequest = z122.lazy(() => {
6887
+ return z122.object({
6888
+ sourceTopicId: z122.string(),
6889
+ targetTopicId: z122.string()
6858
6890
  }).transform((data) => ({
6859
6891
  sourceTopicId: data["sourceTopicId"],
6860
6892
  targetTopicId: data["targetTopicId"]
@@ -6862,21 +6894,21 @@ var mergeTopicsRequestRequest = z121.lazy(() => {
6862
6894
  });
6863
6895
 
6864
6896
  // 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({
6897
+ import { z as z123 } from "zod";
6898
+ var mergeTopicsOkResponse = z123.lazy(() => {
6899
+ return z123.object({
6868
6900
  data: topic.optional()
6869
6901
  });
6870
6902
  });
6871
- var mergeTopicsOkResponseResponse = z122.lazy(() => {
6872
- return z122.object({
6903
+ var mergeTopicsOkResponseResponse = z123.lazy(() => {
6904
+ return z123.object({
6873
6905
  data: topicResponse.optional()
6874
6906
  }).transform((data) => ({
6875
6907
  data: data["data"]
6876
6908
  }));
6877
6909
  });
6878
- var mergeTopicsOkResponseRequest = z122.lazy(() => {
6879
- return z122.object({
6910
+ var mergeTopicsOkResponseRequest = z123.lazy(() => {
6911
+ return z123.object({
6880
6912
  data: topicRequest.optional()
6881
6913
  }).transform((data) => ({
6882
6914
  data: data["data"]
@@ -6884,26 +6916,26 @@ var mergeTopicsOkResponseRequest = z122.lazy(() => {
6884
6916
  });
6885
6917
 
6886
6918
  // 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()
6919
+ import { z as z124 } from "zod";
6920
+ var discoverRelatedTopicsRequest = z124.lazy(() => {
6921
+ return z124.object({
6922
+ topicId: z124.string(),
6923
+ limit: z124.number().optional()
6892
6924
  });
6893
6925
  });
6894
- var discoverRelatedTopicsRequestResponse = z123.lazy(() => {
6895
- return z123.object({
6896
- topicId: z123.string(),
6897
- limit: z123.number().optional()
6926
+ var discoverRelatedTopicsRequestResponse = z124.lazy(() => {
6927
+ return z124.object({
6928
+ topicId: z124.string(),
6929
+ limit: z124.number().optional()
6898
6930
  }).transform((data) => ({
6899
6931
  topicId: data["topicId"],
6900
6932
  limit: data["limit"]
6901
6933
  }));
6902
6934
  });
6903
- var discoverRelatedTopicsRequestRequest = z123.lazy(() => {
6904
- return z123.object({
6905
- topicId: z123.string(),
6906
- limit: z123.number().optional()
6935
+ var discoverRelatedTopicsRequestRequest = z124.lazy(() => {
6936
+ return z124.object({
6937
+ topicId: z124.string(),
6938
+ limit: z124.number().optional()
6907
6939
  }).transform((data) => ({
6908
6940
  topicId: data["topicId"],
6909
6941
  limit: data["limit"]
@@ -6911,48 +6943,48 @@ var discoverRelatedTopicsRequestRequest = z123.lazy(() => {
6911
6943
  });
6912
6944
 
6913
6945
  // 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()
6946
+ import { z as z125 } from "zod";
6947
+ var discoverRelatedTopicsOkResponse = z125.lazy(() => {
6948
+ return z125.object({
6949
+ data: z125.array(topic).optional()
6918
6950
  });
6919
6951
  });
6920
- var discoverRelatedTopicsOkResponseResponse = z124.lazy(() => {
6921
- return z124.object({
6922
- data: z124.array(topicResponse).optional()
6952
+ var discoverRelatedTopicsOkResponseResponse = z125.lazy(() => {
6953
+ return z125.object({
6954
+ data: z125.array(topicResponse).optional()
6923
6955
  }).transform((data) => ({
6924
6956
  data: data["data"]
6925
6957
  }));
6926
6958
  });
6927
- var discoverRelatedTopicsOkResponseRequest = z124.lazy(() => {
6928
- return z124.object({
6929
- data: z124.array(topicRequest).optional()
6959
+ var discoverRelatedTopicsOkResponseRequest = z125.lazy(() => {
6960
+ return z125.object({
6961
+ data: z125.array(topicRequest).optional()
6930
6962
  }).transform((data) => ({
6931
6963
  data: data["data"]
6932
6964
  }));
6933
6965
  });
6934
6966
 
6935
6967
  // 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()
6968
+ import { z as z126 } from "zod";
6969
+ var calculateTopicSimilarityRequest = z126.lazy(() => {
6970
+ return z126.object({
6971
+ topicId1: z126.string(),
6972
+ topicId2: z126.string()
6941
6973
  });
6942
6974
  });
6943
- var calculateTopicSimilarityRequestResponse = z125.lazy(() => {
6944
- return z125.object({
6945
- topicId1: z125.string(),
6946
- topicId2: z125.string()
6975
+ var calculateTopicSimilarityRequestResponse = z126.lazy(() => {
6976
+ return z126.object({
6977
+ topicId1: z126.string(),
6978
+ topicId2: z126.string()
6947
6979
  }).transform((data) => ({
6948
6980
  topicId1: data["topicId1"],
6949
6981
  topicId2: data["topicId2"]
6950
6982
  }));
6951
6983
  });
6952
- var calculateTopicSimilarityRequestRequest = z125.lazy(() => {
6953
- return z125.object({
6954
- topicId1: z125.string(),
6955
- topicId2: z125.string()
6984
+ var calculateTopicSimilarityRequestRequest = z126.lazy(() => {
6985
+ return z126.object({
6986
+ topicId1: z126.string(),
6987
+ topicId2: z126.string()
6956
6988
  }).transform((data) => ({
6957
6989
  topicId1: data["topicId1"],
6958
6990
  topicId2: data["topicId2"]
@@ -6960,45 +6992,45 @@ var calculateTopicSimilarityRequestRequest = z125.lazy(() => {
6960
6992
  });
6961
6993
 
6962
6994
  // src/services/topics/models/calculate-topic-similarity-ok-response.ts
6963
- import { z as z127 } from "zod";
6995
+ import { z as z128 } from "zod";
6964
6996
 
6965
6997
  // 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()
6998
+ import { z as z127 } from "zod";
6999
+ var calculateTopicSimilarityOkResponseData = z127.lazy(() => {
7000
+ return z127.object({
7001
+ similarity: z127.number().gte(0).lte(1).optional()
6970
7002
  });
6971
7003
  });
6972
- var calculateTopicSimilarityOkResponseDataResponse = z126.lazy(() => {
6973
- return z126.object({
6974
- similarity: z126.number().gte(0).lte(1).optional()
7004
+ var calculateTopicSimilarityOkResponseDataResponse = z127.lazy(() => {
7005
+ return z127.object({
7006
+ similarity: z127.number().gte(0).lte(1).optional()
6975
7007
  }).transform((data) => ({
6976
7008
  similarity: data["similarity"]
6977
7009
  }));
6978
7010
  });
6979
- var calculateTopicSimilarityOkResponseDataRequest = z126.lazy(() => {
6980
- return z126.object({
6981
- similarity: z126.number().gte(0).lte(1).optional()
7011
+ var calculateTopicSimilarityOkResponseDataRequest = z127.lazy(() => {
7012
+ return z127.object({
7013
+ similarity: z127.number().gte(0).lte(1).optional()
6982
7014
  }).transform((data) => ({
6983
7015
  similarity: data["similarity"]
6984
7016
  }));
6985
7017
  });
6986
7018
 
6987
7019
  // src/services/topics/models/calculate-topic-similarity-ok-response.ts
6988
- var calculateTopicSimilarityOkResponse = z127.lazy(() => {
6989
- return z127.object({
7020
+ var calculateTopicSimilarityOkResponse = z128.lazy(() => {
7021
+ return z128.object({
6990
7022
  data: calculateTopicSimilarityOkResponseData.optional()
6991
7023
  });
6992
7024
  });
6993
- var calculateTopicSimilarityOkResponseResponse = z127.lazy(() => {
6994
- return z127.object({
7025
+ var calculateTopicSimilarityOkResponseResponse = z128.lazy(() => {
7026
+ return z128.object({
6995
7027
  data: calculateTopicSimilarityOkResponseDataResponse.optional()
6996
7028
  }).transform((data) => ({
6997
7029
  data: data["data"]
6998
7030
  }));
6999
7031
  });
7000
- var calculateTopicSimilarityOkResponseRequest = z127.lazy(() => {
7001
- return z127.object({
7032
+ var calculateTopicSimilarityOkResponseRequest = z128.lazy(() => {
7033
+ return z128.object({
7002
7034
  data: calculateTopicSimilarityOkResponseDataRequest.optional()
7003
7035
  }).transform((data) => ({
7004
7036
  data: data["data"]
@@ -7006,30 +7038,30 @@ var calculateTopicSimilarityOkResponseRequest = z127.lazy(() => {
7006
7038
  });
7007
7039
 
7008
7040
  // 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()
7041
+ import { z as z129 } from "zod";
7042
+ var findSimilarTopicsRequest = z129.lazy(() => {
7043
+ return z129.object({
7044
+ topicId: z129.string(),
7045
+ threshold: z129.number().optional(),
7046
+ limit: z129.number().optional()
7015
7047
  });
7016
7048
  });
7017
- var findSimilarTopicsRequestResponse = z128.lazy(() => {
7018
- return z128.object({
7019
- topicId: z128.string(),
7020
- threshold: z128.number().optional(),
7021
- limit: z128.number().optional()
7049
+ var findSimilarTopicsRequestResponse = z129.lazy(() => {
7050
+ return z129.object({
7051
+ topicId: z129.string(),
7052
+ threshold: z129.number().optional(),
7053
+ limit: z129.number().optional()
7022
7054
  }).transform((data) => ({
7023
7055
  topicId: data["topicId"],
7024
7056
  threshold: data["threshold"],
7025
7057
  limit: data["limit"]
7026
7058
  }));
7027
7059
  });
7028
- var findSimilarTopicsRequestRequest = z128.lazy(() => {
7029
- return z128.object({
7030
- topicId: z128.string(),
7031
- threshold: z128.number().optional(),
7032
- limit: z128.number().optional()
7060
+ var findSimilarTopicsRequestRequest = z129.lazy(() => {
7061
+ return z129.object({
7062
+ topicId: z129.string(),
7063
+ threshold: z129.number().optional(),
7064
+ limit: z129.number().optional()
7033
7065
  }).transform((data) => ({
7034
7066
  topicId: data["topicId"],
7035
7067
  threshold: data["threshold"],
@@ -7038,29 +7070,29 @@ var findSimilarTopicsRequestRequest = z128.lazy(() => {
7038
7070
  });
7039
7071
 
7040
7072
  // src/services/topics/models/find-similar-topics-ok-response.ts
7041
- import { z as z130 } from "zod";
7073
+ import { z as z131 } from "zod";
7042
7074
 
7043
7075
  // 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({
7076
+ import { z as z130 } from "zod";
7077
+ var findSimilarTopicsOkResponseData = z130.lazy(() => {
7078
+ return z130.object({
7047
7079
  topic: topic.optional(),
7048
- similarity: z129.number().optional()
7080
+ similarity: z130.number().optional()
7049
7081
  });
7050
7082
  });
7051
- var findSimilarTopicsOkResponseDataResponse = z129.lazy(() => {
7052
- return z129.object({
7083
+ var findSimilarTopicsOkResponseDataResponse = z130.lazy(() => {
7084
+ return z130.object({
7053
7085
  topic: topicResponse.optional(),
7054
- similarity: z129.number().optional()
7086
+ similarity: z130.number().optional()
7055
7087
  }).transform((data) => ({
7056
7088
  topic: data["topic"],
7057
7089
  similarity: data["similarity"]
7058
7090
  }));
7059
7091
  });
7060
- var findSimilarTopicsOkResponseDataRequest = z129.lazy(() => {
7061
- return z129.object({
7092
+ var findSimilarTopicsOkResponseDataRequest = z130.lazy(() => {
7093
+ return z130.object({
7062
7094
  topic: topicRequest.optional(),
7063
- similarity: z129.number().optional()
7095
+ similarity: z130.number().optional()
7064
7096
  }).transform((data) => ({
7065
7097
  topic: data["topic"],
7066
7098
  similarity: data["similarity"]
@@ -7068,72 +7100,72 @@ var findSimilarTopicsOkResponseDataRequest = z129.lazy(() => {
7068
7100
  });
7069
7101
 
7070
7102
  // 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()
7103
+ var findSimilarTopicsOkResponse = z131.lazy(() => {
7104
+ return z131.object({
7105
+ data: z131.array(findSimilarTopicsOkResponseData).optional()
7074
7106
  });
7075
7107
  });
7076
- var findSimilarTopicsOkResponseResponse = z130.lazy(() => {
7077
- return z130.object({
7078
- data: z130.array(findSimilarTopicsOkResponseDataResponse).optional()
7108
+ var findSimilarTopicsOkResponseResponse = z131.lazy(() => {
7109
+ return z131.object({
7110
+ data: z131.array(findSimilarTopicsOkResponseDataResponse).optional()
7079
7111
  }).transform((data) => ({
7080
7112
  data: data["data"]
7081
7113
  }));
7082
7114
  });
7083
- var findSimilarTopicsOkResponseRequest = z130.lazy(() => {
7084
- return z130.object({
7085
- data: z130.array(findSimilarTopicsOkResponseDataRequest).optional()
7115
+ var findSimilarTopicsOkResponseRequest = z131.lazy(() => {
7116
+ return z131.object({
7117
+ data: z131.array(findSimilarTopicsOkResponseDataRequest).optional()
7086
7118
  }).transform((data) => ({
7087
7119
  data: data["data"]
7088
7120
  }));
7089
7121
  });
7090
7122
 
7091
7123
  // 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()
7124
+ import { z as z132 } from "zod";
7125
+ var clusterTopicsRequest = z132.lazy(() => {
7126
+ return z132.object({
7127
+ minClusterSize: z132.number().optional()
7096
7128
  });
7097
7129
  });
7098
- var clusterTopicsRequestResponse = z131.lazy(() => {
7099
- return z131.object({
7100
- minClusterSize: z131.number().optional()
7130
+ var clusterTopicsRequestResponse = z132.lazy(() => {
7131
+ return z132.object({
7132
+ minClusterSize: z132.number().optional()
7101
7133
  }).transform((data) => ({
7102
7134
  minClusterSize: data["minClusterSize"]
7103
7135
  }));
7104
7136
  });
7105
- var clusterTopicsRequestRequest = z131.lazy(() => {
7106
- return z131.object({
7107
- minClusterSize: z131.number().optional()
7137
+ var clusterTopicsRequestRequest = z132.lazy(() => {
7138
+ return z132.object({
7139
+ minClusterSize: z132.number().optional()
7108
7140
  }).transform((data) => ({
7109
7141
  minClusterSize: data["minClusterSize"]
7110
7142
  }));
7111
7143
  });
7112
7144
 
7113
7145
  // src/services/topics/models/cluster-topics-ok-response.ts
7114
- import { z as z133 } from "zod";
7146
+ import { z as z134 } from "zod";
7115
7147
 
7116
7148
  // 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()
7149
+ import { z as z133 } from "zod";
7150
+ var clusterTopicsOkResponseData = z133.lazy(() => {
7151
+ return z133.object({
7152
+ clusters: z133.array(z133.any()).optional(),
7153
+ clusterCount: z133.number().optional()
7122
7154
  });
7123
7155
  });
7124
- var clusterTopicsOkResponseDataResponse = z132.lazy(() => {
7125
- return z132.object({
7126
- clusters: z132.array(z132.any()).optional(),
7127
- clusterCount: z132.number().optional()
7156
+ var clusterTopicsOkResponseDataResponse = z133.lazy(() => {
7157
+ return z133.object({
7158
+ clusters: z133.array(z133.any()).optional(),
7159
+ clusterCount: z133.number().optional()
7128
7160
  }).transform((data) => ({
7129
7161
  clusters: data["clusters"],
7130
7162
  clusterCount: data["clusterCount"]
7131
7163
  }));
7132
7164
  });
7133
- var clusterTopicsOkResponseDataRequest = z132.lazy(() => {
7134
- return z132.object({
7135
- clusters: z132.array(z132.any()).optional(),
7136
- clusterCount: z132.number().optional()
7165
+ var clusterTopicsOkResponseDataRequest = z133.lazy(() => {
7166
+ return z133.object({
7167
+ clusters: z133.array(z133.any()).optional(),
7168
+ clusterCount: z133.number().optional()
7137
7169
  }).transform((data) => ({
7138
7170
  clusters: data["clusters"],
7139
7171
  clusterCount: data["clusterCount"]
@@ -7141,20 +7173,20 @@ var clusterTopicsOkResponseDataRequest = z132.lazy(() => {
7141
7173
  });
7142
7174
 
7143
7175
  // src/services/topics/models/cluster-topics-ok-response.ts
7144
- var clusterTopicsOkResponse = z133.lazy(() => {
7145
- return z133.object({
7176
+ var clusterTopicsOkResponse = z134.lazy(() => {
7177
+ return z134.object({
7146
7178
  data: clusterTopicsOkResponseData.optional()
7147
7179
  });
7148
7180
  });
7149
- var clusterTopicsOkResponseResponse = z133.lazy(() => {
7150
- return z133.object({
7181
+ var clusterTopicsOkResponseResponse = z134.lazy(() => {
7182
+ return z134.object({
7151
7183
  data: clusterTopicsOkResponseDataResponse.optional()
7152
7184
  }).transform((data) => ({
7153
7185
  data: data["data"]
7154
7186
  }));
7155
7187
  });
7156
- var clusterTopicsOkResponseRequest = z133.lazy(() => {
7157
- return z133.object({
7188
+ var clusterTopicsOkResponseRequest = z134.lazy(() => {
7189
+ return z134.object({
7158
7190
  data: clusterTopicsOkResponseDataRequest.optional()
7159
7191
  }).transform((data) => ({
7160
7192
  data: data["data"]
@@ -7162,53 +7194,53 @@ var clusterTopicsOkResponseRequest = z133.lazy(() => {
7162
7194
  });
7163
7195
 
7164
7196
  // 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()
7197
+ import { z as z135 } from "zod";
7198
+ var detectCommunitiesRequest = z135.lazy(() => {
7199
+ return z135.object({
7200
+ algorithm: z135.string().optional()
7169
7201
  });
7170
7202
  });
7171
- var detectCommunitiesRequestResponse = z134.lazy(() => {
7172
- return z134.object({
7173
- algorithm: z134.string().optional()
7203
+ var detectCommunitiesRequestResponse = z135.lazy(() => {
7204
+ return z135.object({
7205
+ algorithm: z135.string().optional()
7174
7206
  }).transform((data) => ({
7175
7207
  algorithm: data["algorithm"]
7176
7208
  }));
7177
7209
  });
7178
- var detectCommunitiesRequestRequest = z134.lazy(() => {
7179
- return z134.object({
7180
- algorithm: z134.string().optional()
7210
+ var detectCommunitiesRequestRequest = z135.lazy(() => {
7211
+ return z135.object({
7212
+ algorithm: z135.string().optional()
7181
7213
  }).transform((data) => ({
7182
7214
  algorithm: data["algorithm"]
7183
7215
  }));
7184
7216
  });
7185
7217
 
7186
7218
  // src/services/topics/models/detect-communities-ok-response.ts
7187
- import { z as z137 } from "zod";
7219
+ import { z as z138 } from "zod";
7188
7220
 
7189
7221
  // src/services/topics/models/detect-communities-ok-response-data.ts
7190
- import { z as z136 } from "zod";
7222
+ import { z as z137 } from "zod";
7191
7223
 
7192
7224
  // 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()
7225
+ import { z as z136 } from "zod";
7226
+ var community = z136.lazy(() => {
7227
+ return z136.object({
7228
+ id: z136.string(),
7229
+ name: z136.string(),
7230
+ description: z136.string().optional().nullable(),
7231
+ topicCount: z136.number().gte(0).optional(),
7232
+ createdAt: z136.string(),
7233
+ updatedAt: z136.string()
7202
7234
  });
7203
7235
  });
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()
7236
+ var communityResponse = z136.lazy(() => {
7237
+ return z136.object({
7238
+ id: z136.string(),
7239
+ name: z136.string(),
7240
+ description: z136.string().optional().nullable(),
7241
+ topicCount: z136.number().gte(0).optional(),
7242
+ createdAt: z136.string(),
7243
+ updatedAt: z136.string()
7212
7244
  }).transform((data) => ({
7213
7245
  id: data["id"],
7214
7246
  name: data["name"],
@@ -7218,14 +7250,14 @@ var communityResponse = z135.lazy(() => {
7218
7250
  updatedAt: data["updatedAt"]
7219
7251
  }));
7220
7252
  });
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()
7253
+ var communityRequest = z136.lazy(() => {
7254
+ return z136.object({
7255
+ id: z136.string(),
7256
+ name: z136.string(),
7257
+ description: z136.string().optional().nullable(),
7258
+ topicCount: z136.number().gte(0).optional(),
7259
+ createdAt: z136.string(),
7260
+ updatedAt: z136.string()
7229
7261
  }).transform((data) => ({
7230
7262
  id: data["id"],
7231
7263
  name: data["name"],
@@ -7237,25 +7269,25 @@ var communityRequest = z135.lazy(() => {
7237
7269
  });
7238
7270
 
7239
7271
  // 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()
7272
+ var detectCommunitiesOkResponseData = z137.lazy(() => {
7273
+ return z137.object({
7274
+ communities: z137.array(community).optional(),
7275
+ communityCount: z137.number().optional()
7244
7276
  });
7245
7277
  });
7246
- var detectCommunitiesOkResponseDataResponse = z136.lazy(() => {
7247
- return z136.object({
7248
- communities: z136.array(communityResponse).optional(),
7249
- communityCount: z136.number().optional()
7278
+ var detectCommunitiesOkResponseDataResponse = z137.lazy(() => {
7279
+ return z137.object({
7280
+ communities: z137.array(communityResponse).optional(),
7281
+ communityCount: z137.number().optional()
7250
7282
  }).transform((data) => ({
7251
7283
  communities: data["communities"],
7252
7284
  communityCount: data["communityCount"]
7253
7285
  }));
7254
7286
  });
7255
- var detectCommunitiesOkResponseDataRequest = z136.lazy(() => {
7256
- return z136.object({
7257
- communities: z136.array(communityRequest).optional(),
7258
- communityCount: z136.number().optional()
7287
+ var detectCommunitiesOkResponseDataRequest = z137.lazy(() => {
7288
+ return z137.object({
7289
+ communities: z137.array(communityRequest).optional(),
7290
+ communityCount: z137.number().optional()
7259
7291
  }).transform((data) => ({
7260
7292
  communities: data["communities"],
7261
7293
  communityCount: data["communityCount"]
@@ -7263,20 +7295,20 @@ var detectCommunitiesOkResponseDataRequest = z136.lazy(() => {
7263
7295
  });
7264
7296
 
7265
7297
  // src/services/topics/models/detect-communities-ok-response.ts
7266
- var detectCommunitiesOkResponse = z137.lazy(() => {
7267
- return z137.object({
7298
+ var detectCommunitiesOkResponse = z138.lazy(() => {
7299
+ return z138.object({
7268
7300
  data: detectCommunitiesOkResponseData.optional()
7269
7301
  });
7270
7302
  });
7271
- var detectCommunitiesOkResponseResponse = z137.lazy(() => {
7272
- return z137.object({
7303
+ var detectCommunitiesOkResponseResponse = z138.lazy(() => {
7304
+ return z138.object({
7273
7305
  data: detectCommunitiesOkResponseDataResponse.optional()
7274
7306
  }).transform((data) => ({
7275
7307
  data: data["data"]
7276
7308
  }));
7277
7309
  });
7278
- var detectCommunitiesOkResponseRequest = z137.lazy(() => {
7279
- return z137.object({
7310
+ var detectCommunitiesOkResponseRequest = z138.lazy(() => {
7311
+ return z138.object({
7280
7312
  data: detectCommunitiesOkResponseDataRequest.optional()
7281
7313
  }).transform((data) => ({
7282
7314
  data: data["data"]
@@ -7284,30 +7316,30 @@ var detectCommunitiesOkResponseRequest = z137.lazy(() => {
7284
7316
  });
7285
7317
 
7286
7318
  // 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()
7319
+ import { z as z139 } from "zod";
7320
+ var searchTopicsRequest = z139.lazy(() => {
7321
+ return z139.object({
7322
+ query: z139.string(),
7323
+ limit: z139.number().optional(),
7324
+ offset: z139.number().optional()
7293
7325
  });
7294
7326
  });
7295
- var searchTopicsRequestResponse = z138.lazy(() => {
7296
- return z138.object({
7297
- query: z138.string(),
7298
- limit: z138.number().optional(),
7299
- offset: z138.number().optional()
7327
+ var searchTopicsRequestResponse = z139.lazy(() => {
7328
+ return z139.object({
7329
+ query: z139.string(),
7330
+ limit: z139.number().optional(),
7331
+ offset: z139.number().optional()
7300
7332
  }).transform((data) => ({
7301
7333
  query: data["query"],
7302
7334
  limit: data["limit"],
7303
7335
  offset: data["offset"]
7304
7336
  }));
7305
7337
  });
7306
- var searchTopicsRequestRequest = z138.lazy(() => {
7307
- return z138.object({
7308
- query: z138.string(),
7309
- limit: z138.number().optional(),
7310
- offset: z138.number().optional()
7338
+ var searchTopicsRequestRequest = z139.lazy(() => {
7339
+ return z139.object({
7340
+ query: z139.string(),
7341
+ limit: z139.number().optional(),
7342
+ offset: z139.number().optional()
7311
7343
  }).transform((data) => ({
7312
7344
  query: data["query"],
7313
7345
  limit: data["limit"],
@@ -7316,21 +7348,21 @@ var searchTopicsRequestRequest = z138.lazy(() => {
7316
7348
  });
7317
7349
 
7318
7350
  // 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()
7351
+ import { z as z140 } from "zod";
7352
+ var searchTopicsOkResponse = z140.lazy(() => {
7353
+ return z140.object({
7354
+ data: z140.array(z140.any()).optional(),
7355
+ total: z140.number().optional(),
7356
+ limit: z140.number().optional(),
7357
+ offset: z140.number().optional()
7326
7358
  });
7327
7359
  });
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()
7360
+ var searchTopicsOkResponseResponse = z140.lazy(() => {
7361
+ return z140.object({
7362
+ data: z140.array(z140.any()).optional(),
7363
+ total: z140.number().optional(),
7364
+ limit: z140.number().optional(),
7365
+ offset: z140.number().optional()
7334
7366
  }).transform((data) => ({
7335
7367
  data: data["data"],
7336
7368
  total: data["total"],
@@ -7338,12 +7370,12 @@ var searchTopicsOkResponseResponse = z139.lazy(() => {
7338
7370
  offset: data["offset"]
7339
7371
  }));
7340
7372
  });
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()
7373
+ var searchTopicsOkResponseRequest = z140.lazy(() => {
7374
+ return z140.object({
7375
+ data: z140.array(z140.any()).optional(),
7376
+ total: z140.number().optional(),
7377
+ limit: z140.number().optional(),
7378
+ offset: z140.number().optional()
7347
7379
  }).transform((data) => ({
7348
7380
  data: data["data"],
7349
7381
  total: data["total"],
@@ -7362,7 +7394,7 @@ var TopicsService = class extends BaseService {
7362
7394
  * @returns {Promise<HttpResponse<ListTopicsOkResponse>>} - List of topics retrieved successfully
7363
7395
  */
7364
7396
  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({
7397
+ 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
7398
  schema: listTopicsOkResponseResponse,
7367
7399
  contentType: "json" /* Json */,
7368
7400
  status: 200
@@ -7390,7 +7422,7 @@ var TopicsService = class extends BaseService {
7390
7422
  * @returns {Promise<HttpResponse<GetTopicByIdOkResponse>>} - Topic retrieved successfully
7391
7423
  */
7392
7424
  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({
7425
+ 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
7426
  schema: getTopicByIdOkResponseResponse,
7395
7427
  contentType: "json" /* Json */,
7396
7428
  status: 200
@@ -7506,36 +7538,36 @@ var TopicsService = class extends BaseService {
7506
7538
  };
7507
7539
 
7508
7540
  // src/services/communities/communities-service.ts
7509
- import { z as z146 } from "zod";
7541
+ import { z as z147 } from "zod";
7510
7542
 
7511
7543
  // src/services/communities/models/list-communities-ok-response.ts
7512
- import { z as z142 } from "zod";
7544
+ import { z as z143 } from "zod";
7513
7545
 
7514
7546
  // 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()
7547
+ import { z as z142 } from "zod";
7548
+ var listCommunitiesOkResponsePagination = z142.lazy(() => {
7549
+ return z142.object({
7550
+ limit: z142.number().optional(),
7551
+ offset: z142.number().optional(),
7552
+ count: z142.number().optional()
7521
7553
  });
7522
7554
  });
7523
- var listCommunitiesOkResponsePaginationResponse = z141.lazy(() => {
7524
- return z141.object({
7525
- limit: z141.number().optional(),
7526
- offset: z141.number().optional(),
7527
- count: z141.number().optional()
7555
+ var listCommunitiesOkResponsePaginationResponse = z142.lazy(() => {
7556
+ return z142.object({
7557
+ limit: z142.number().optional(),
7558
+ offset: z142.number().optional(),
7559
+ count: z142.number().optional()
7528
7560
  }).transform((data) => ({
7529
7561
  limit: data["limit"],
7530
7562
  offset: data["offset"],
7531
7563
  count: data["count"]
7532
7564
  }));
7533
7565
  });
7534
- var listCommunitiesOkResponsePaginationRequest = z141.lazy(() => {
7535
- return z141.object({
7536
- limit: z141.number().optional(),
7537
- offset: z141.number().optional(),
7538
- count: z141.number().optional()
7566
+ var listCommunitiesOkResponsePaginationRequest = z142.lazy(() => {
7567
+ return z142.object({
7568
+ limit: z142.number().optional(),
7569
+ offset: z142.number().optional(),
7570
+ count: z142.number().optional()
7539
7571
  }).transform((data) => ({
7540
7572
  limit: data["limit"],
7541
7573
  offset: data["offset"],
@@ -7544,24 +7576,24 @@ var listCommunitiesOkResponsePaginationRequest = z141.lazy(() => {
7544
7576
  });
7545
7577
 
7546
7578
  // src/services/communities/models/list-communities-ok-response.ts
7547
- var listCommunitiesOkResponse = z142.lazy(() => {
7548
- return z142.object({
7549
- data: z142.array(community).optional(),
7579
+ var listCommunitiesOkResponse = z143.lazy(() => {
7580
+ return z143.object({
7581
+ data: z143.array(community).optional(),
7550
7582
  pagination: listCommunitiesOkResponsePagination.optional()
7551
7583
  });
7552
7584
  });
7553
- var listCommunitiesOkResponseResponse = z142.lazy(() => {
7554
- return z142.object({
7555
- data: z142.array(communityResponse).optional(),
7585
+ var listCommunitiesOkResponseResponse = z143.lazy(() => {
7586
+ return z143.object({
7587
+ data: z143.array(communityResponse).optional(),
7556
7588
  pagination: listCommunitiesOkResponsePaginationResponse.optional()
7557
7589
  }).transform((data) => ({
7558
7590
  data: data["data"],
7559
7591
  pagination: data["pagination"]
7560
7592
  }));
7561
7593
  });
7562
- var listCommunitiesOkResponseRequest = z142.lazy(() => {
7563
- return z142.object({
7564
- data: z142.array(communityRequest).optional(),
7594
+ var listCommunitiesOkResponseRequest = z143.lazy(() => {
7595
+ return z143.object({
7596
+ data: z143.array(communityRequest).optional(),
7565
7597
  pagination: listCommunitiesOkResponsePaginationRequest.optional()
7566
7598
  }).transform((data) => ({
7567
7599
  data: data["data"],
@@ -7570,21 +7602,21 @@ var listCommunitiesOkResponseRequest = z142.lazy(() => {
7570
7602
  });
7571
7603
 
7572
7604
  // 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({
7605
+ import { z as z144 } from "zod";
7606
+ var getCommunityByIdOkResponse = z144.lazy(() => {
7607
+ return z144.object({
7576
7608
  data: community.optional()
7577
7609
  });
7578
7610
  });
7579
- var getCommunityByIdOkResponseResponse = z143.lazy(() => {
7580
- return z143.object({
7611
+ var getCommunityByIdOkResponseResponse = z144.lazy(() => {
7612
+ return z144.object({
7581
7613
  data: communityResponse.optional()
7582
7614
  }).transform((data) => ({
7583
7615
  data: data["data"]
7584
7616
  }));
7585
7617
  });
7586
- var getCommunityByIdOkResponseRequest = z143.lazy(() => {
7587
- return z143.object({
7618
+ var getCommunityByIdOkResponseRequest = z144.lazy(() => {
7619
+ return z144.object({
7588
7620
  data: communityRequest.optional()
7589
7621
  }).transform((data) => ({
7590
7622
  data: data["data"]
@@ -7592,26 +7624,26 @@ var getCommunityByIdOkResponseRequest = z143.lazy(() => {
7592
7624
  });
7593
7625
 
7594
7626
  // 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)
7627
+ import { z as z145 } from "zod";
7628
+ var mergeCommunitiesRequest = z145.lazy(() => {
7629
+ return z145.object({
7630
+ sourceCommunityId: z145.string().min(1),
7631
+ targetCommunityId: z145.string().min(1)
7600
7632
  });
7601
7633
  });
7602
- var mergeCommunitiesRequestResponse = z144.lazy(() => {
7603
- return z144.object({
7604
- sourceCommunityId: z144.string().min(1),
7605
- targetCommunityId: z144.string().min(1)
7634
+ var mergeCommunitiesRequestResponse = z145.lazy(() => {
7635
+ return z145.object({
7636
+ sourceCommunityId: z145.string().min(1),
7637
+ targetCommunityId: z145.string().min(1)
7606
7638
  }).transform((data) => ({
7607
7639
  sourceCommunityId: data["sourceCommunityId"],
7608
7640
  targetCommunityId: data["targetCommunityId"]
7609
7641
  }));
7610
7642
  });
7611
- var mergeCommunitiesRequestRequest = z144.lazy(() => {
7612
- return z144.object({
7613
- sourceCommunityId: z144.string().min(1),
7614
- targetCommunityId: z144.string().min(1)
7643
+ var mergeCommunitiesRequestRequest = z145.lazy(() => {
7644
+ return z145.object({
7645
+ sourceCommunityId: z145.string().min(1),
7646
+ targetCommunityId: z145.string().min(1)
7615
7647
  }).transform((data) => ({
7616
7648
  sourceCommunityId: data["sourceCommunityId"],
7617
7649
  targetCommunityId: data["targetCommunityId"]
@@ -7619,21 +7651,21 @@ var mergeCommunitiesRequestRequest = z144.lazy(() => {
7619
7651
  });
7620
7652
 
7621
7653
  // 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({
7654
+ import { z as z146 } from "zod";
7655
+ var mergeCommunitiesOkResponse = z146.lazy(() => {
7656
+ return z146.object({
7625
7657
  data: community.optional()
7626
7658
  });
7627
7659
  });
7628
- var mergeCommunitiesOkResponseResponse = z145.lazy(() => {
7629
- return z145.object({
7660
+ var mergeCommunitiesOkResponseResponse = z146.lazy(() => {
7661
+ return z146.object({
7630
7662
  data: communityResponse.optional()
7631
7663
  }).transform((data) => ({
7632
7664
  data: data["data"]
7633
7665
  }));
7634
7666
  });
7635
- var mergeCommunitiesOkResponseRequest = z145.lazy(() => {
7636
- return z145.object({
7667
+ var mergeCommunitiesOkResponseRequest = z146.lazy(() => {
7668
+ return z146.object({
7637
7669
  data: communityRequest.optional()
7638
7670
  }).transform((data) => ({
7639
7671
  data: data["data"]
@@ -7650,7 +7682,7 @@ var CommunitiesService = class extends BaseService {
7650
7682
  * @returns {Promise<HttpResponse<ListCommunitiesOkResponse>>} - OK
7651
7683
  */
7652
7684
  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({
7685
+ 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
7686
  schema: listCommunitiesOkResponseResponse,
7655
7687
  contentType: "json" /* Json */,
7656
7688
  status: 200
@@ -7670,7 +7702,7 @@ var CommunitiesService = class extends BaseService {
7670
7702
  * @returns {Promise<HttpResponse<GetCommunityByIdOkResponse>>} - OK
7671
7703
  */
7672
7704
  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({
7705
+ 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
7706
  schema: getCommunityByIdOkResponseResponse,
7675
7707
  contentType: "json" /* Json */,
7676
7708
  status: 200