@memnexus-ai/typescript-sdk 1.1.6 → 1.2.1

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
@@ -3302,7 +3302,7 @@ var ServiceCheckStatus = /* @__PURE__ */ ((ServiceCheckStatus2) => {
3302
3302
  })(ServiceCheckStatus || {});
3303
3303
 
3304
3304
  // src/services/memories/memories-service.ts
3305
- import { z as z68 } from "zod";
3305
+ import { z as z69 } from "zod";
3306
3306
 
3307
3307
  // src/services/memories/models/update-memory-request.ts
3308
3308
  import { z as z51 } from "zod";
@@ -3558,8 +3558,13 @@ var searchRequest = z58.lazy(() => {
3558
3558
  return z58.object({
3559
3559
  query: z58.string().min(1),
3560
3560
  mode: z58.string().optional(),
3561
+ searchMethod: z58.string().optional(),
3561
3562
  limit: z58.number().gte(1).lte(100).optional(),
3562
3563
  offset: z58.number().gte(0).optional(),
3564
+ vectorWeight: z58.number().gte(0).lte(1).optional(),
3565
+ fulltextWeight: z58.number().gte(0).lte(1).optional(),
3566
+ threshold: z58.number().gte(0).lte(1).optional(),
3567
+ explain: z58.boolean().optional(),
3563
3568
  asOfTime: z58.string().optional(),
3564
3569
  validAtTime: z58.string().optional(),
3565
3570
  eventTimeFrom: z58.string().optional(),
@@ -3574,8 +3579,13 @@ var searchRequestResponse = z58.lazy(() => {
3574
3579
  return z58.object({
3575
3580
  query: z58.string().min(1),
3576
3581
  mode: z58.string().optional(),
3582
+ searchMethod: z58.string().optional(),
3577
3583
  limit: z58.number().gte(1).lte(100).optional(),
3578
3584
  offset: z58.number().gte(0).optional(),
3585
+ vectorWeight: z58.number().gte(0).lte(1).optional(),
3586
+ fulltextWeight: z58.number().gte(0).lte(1).optional(),
3587
+ threshold: z58.number().gte(0).lte(1).optional(),
3588
+ explain: z58.boolean().optional(),
3579
3589
  asOfTime: z58.string().optional(),
3580
3590
  validAtTime: z58.string().optional(),
3581
3591
  eventTimeFrom: z58.string().optional(),
@@ -3587,8 +3597,13 @@ var searchRequestResponse = z58.lazy(() => {
3587
3597
  }).transform((data) => ({
3588
3598
  query: data["query"],
3589
3599
  mode: data["mode"],
3600
+ searchMethod: data["searchMethod"],
3590
3601
  limit: data["limit"],
3591
3602
  offset: data["offset"],
3603
+ vectorWeight: data["vectorWeight"],
3604
+ fulltextWeight: data["fulltextWeight"],
3605
+ threshold: data["threshold"],
3606
+ explain: data["explain"],
3592
3607
  asOfTime: data["asOfTime"],
3593
3608
  validAtTime: data["validAtTime"],
3594
3609
  eventTimeFrom: data["eventTimeFrom"],
@@ -3603,8 +3618,13 @@ var searchRequestRequest = z58.lazy(() => {
3603
3618
  return z58.object({
3604
3619
  query: z58.string().min(1),
3605
3620
  mode: z58.string().optional(),
3621
+ searchMethod: z58.string().optional(),
3606
3622
  limit: z58.number().gte(1).lte(100).optional(),
3607
3623
  offset: z58.number().gte(0).optional(),
3624
+ vectorWeight: z58.number().gte(0).lte(1).optional(),
3625
+ fulltextWeight: z58.number().gte(0).lte(1).optional(),
3626
+ threshold: z58.number().gte(0).lte(1).optional(),
3627
+ explain: z58.boolean().optional(),
3608
3628
  asOfTime: z58.string().optional(),
3609
3629
  validAtTime: z58.string().optional(),
3610
3630
  eventTimeFrom: z58.string().optional(),
@@ -3616,8 +3636,13 @@ var searchRequestRequest = z58.lazy(() => {
3616
3636
  }).transform((data) => ({
3617
3637
  query: data["query"],
3618
3638
  mode: data["mode"],
3639
+ searchMethod: data["searchMethod"],
3619
3640
  limit: data["limit"],
3620
3641
  offset: data["offset"],
3642
+ vectorWeight: data["vectorWeight"],
3643
+ fulltextWeight: data["fulltextWeight"],
3644
+ threshold: data["threshold"],
3645
+ explain: data["explain"],
3621
3646
  asOfTime: data["asOfTime"],
3622
3647
  validAtTime: data["validAtTime"],
3623
3648
  eventTimeFrom: data["eventTimeFrom"],
@@ -3630,10 +3655,10 @@ var searchRequestRequest = z58.lazy(() => {
3630
3655
  });
3631
3656
 
3632
3657
  // src/services/memories/models/search-response.ts
3633
- import { z as z67 } from "zod";
3658
+ import { z as z68 } from "zod";
3634
3659
 
3635
3660
  // src/services/memories/models/search-result.ts
3636
- import { z as z62 } from "zod";
3661
+ import { z as z63 } from "zod";
3637
3662
 
3638
3663
  // src/services/memories/models/search-result-memory.ts
3639
3664
  import { z as z59 } from "zod";
@@ -3761,67 +3786,139 @@ var topicRequest = z61.lazy(() => {
3761
3786
  }));
3762
3787
  });
3763
3788
 
3764
- // src/services/memories/models/search-result.ts
3765
- var searchResult = z62.lazy(() => {
3789
+ // src/services/memories/models/explanation.ts
3790
+ import { z as z62 } from "zod";
3791
+ var explanation = z62.lazy(() => {
3766
3792
  return z62.object({
3767
- memory: searchResultMemory,
3768
- score: z62.number(),
3769
- entities: z62.array(entity),
3770
- topics: z62.array(topic)
3793
+ matchReason: z62.string(),
3794
+ matchedTerms: z62.array(z62.string()).optional(),
3795
+ semanticSimilarity: z62.number().optional(),
3796
+ contributingFactors: z62.array(z62.string()).optional()
3771
3797
  });
3772
3798
  });
3773
- var searchResultResponse = z62.lazy(() => {
3799
+ var explanationResponse = z62.lazy(() => {
3774
3800
  return z62.object({
3801
+ matchReason: z62.string(),
3802
+ matchedTerms: z62.array(z62.string()).optional(),
3803
+ semanticSimilarity: z62.number().optional(),
3804
+ contributingFactors: z62.array(z62.string()).optional()
3805
+ }).transform((data) => ({
3806
+ matchReason: data["matchReason"],
3807
+ matchedTerms: data["matchedTerms"],
3808
+ semanticSimilarity: data["semanticSimilarity"],
3809
+ contributingFactors: data["contributingFactors"]
3810
+ }));
3811
+ });
3812
+ var explanationRequest = z62.lazy(() => {
3813
+ return z62.object({
3814
+ matchReason: z62.string(),
3815
+ matchedTerms: z62.array(z62.string()).optional(),
3816
+ semanticSimilarity: z62.number().optional(),
3817
+ contributingFactors: z62.array(z62.string()).optional()
3818
+ }).transform((data) => ({
3819
+ matchReason: data["matchReason"],
3820
+ matchedTerms: data["matchedTerms"],
3821
+ semanticSimilarity: data["semanticSimilarity"],
3822
+ contributingFactors: data["contributingFactors"]
3823
+ }));
3824
+ });
3825
+
3826
+ // src/services/memories/models/search-result.ts
3827
+ var searchResult = z63.lazy(() => {
3828
+ return z63.object({
3829
+ memory: searchResultMemory,
3830
+ score: z63.number(),
3831
+ entities: z63.array(entity).optional(),
3832
+ topics: z63.array(topic).optional(),
3833
+ searchMethod: z63.string().optional(),
3834
+ hybridScore: z63.number().optional(),
3835
+ vectorScore: z63.number().optional(),
3836
+ vectorRank: z63.number().optional().nullable(),
3837
+ fulltextScore: z63.number().optional(),
3838
+ fulltextRank: z63.number().optional().nullable(),
3839
+ explanation: explanation.optional()
3840
+ });
3841
+ });
3842
+ var searchResultResponse = z63.lazy(() => {
3843
+ return z63.object({
3775
3844
  memory: searchResultMemoryResponse,
3776
- score: z62.number(),
3777
- entities: z62.array(entityResponse),
3778
- topics: z62.array(topicResponse)
3845
+ score: z63.number(),
3846
+ entities: z63.array(entityResponse).optional(),
3847
+ topics: z63.array(topicResponse).optional(),
3848
+ searchMethod: z63.string().optional(),
3849
+ hybridScore: z63.number().optional(),
3850
+ vectorScore: z63.number().optional(),
3851
+ vectorRank: z63.number().optional().nullable(),
3852
+ fulltextScore: z63.number().optional(),
3853
+ fulltextRank: z63.number().optional().nullable(),
3854
+ explanation: explanationResponse.optional()
3779
3855
  }).transform((data) => ({
3780
3856
  memory: data["memory"],
3781
3857
  score: data["score"],
3782
3858
  entities: data["entities"],
3783
- topics: data["topics"]
3859
+ topics: data["topics"],
3860
+ searchMethod: data["searchMethod"],
3861
+ hybridScore: data["hybridScore"],
3862
+ vectorScore: data["vectorScore"],
3863
+ vectorRank: data["vectorRank"],
3864
+ fulltextScore: data["fulltextScore"],
3865
+ fulltextRank: data["fulltextRank"],
3866
+ explanation: data["explanation"]
3784
3867
  }));
3785
3868
  });
3786
- var searchResultRequest = z62.lazy(() => {
3787
- return z62.object({
3869
+ var searchResultRequest = z63.lazy(() => {
3870
+ return z63.object({
3788
3871
  memory: searchResultMemoryRequest,
3789
- score: z62.number(),
3790
- entities: z62.array(entityRequest),
3791
- topics: z62.array(topicRequest)
3872
+ score: z63.number(),
3873
+ entities: z63.array(entityRequest).optional(),
3874
+ topics: z63.array(topicRequest).optional(),
3875
+ searchMethod: z63.string().optional(),
3876
+ hybridScore: z63.number().optional(),
3877
+ vectorScore: z63.number().optional(),
3878
+ vectorRank: z63.number().optional().nullable(),
3879
+ fulltextScore: z63.number().optional(),
3880
+ fulltextRank: z63.number().optional().nullable(),
3881
+ explanation: explanationRequest.optional()
3792
3882
  }).transform((data) => ({
3793
3883
  memory: data["memory"],
3794
3884
  score: data["score"],
3795
3885
  entities: data["entities"],
3796
- topics: data["topics"]
3886
+ topics: data["topics"],
3887
+ searchMethod: data["searchMethod"],
3888
+ hybridScore: data["hybridScore"],
3889
+ vectorScore: data["vectorScore"],
3890
+ vectorRank: data["vectorRank"],
3891
+ fulltextScore: data["fulltextScore"],
3892
+ fulltextRank: data["fulltextRank"],
3893
+ explanation: data["explanation"]
3797
3894
  }));
3798
3895
  });
3799
3896
 
3800
3897
  // src/services/memories/models/search-response-pagination.ts
3801
- import { z as z63 } from "zod";
3802
- var searchResponsePagination = z63.lazy(() => {
3803
- return z63.object({
3804
- limit: z63.number().gte(1),
3805
- offset: z63.number().gte(0),
3806
- count: z63.number().gte(0)
3898
+ import { z as z64 } from "zod";
3899
+ var searchResponsePagination = z64.lazy(() => {
3900
+ return z64.object({
3901
+ limit: z64.number().gte(1),
3902
+ offset: z64.number().gte(0),
3903
+ count: z64.number().gte(0)
3807
3904
  });
3808
3905
  });
3809
- var searchResponsePaginationResponse = z63.lazy(() => {
3810
- return z63.object({
3811
- limit: z63.number().gte(1),
3812
- offset: z63.number().gte(0),
3813
- count: z63.number().gte(0)
3906
+ var searchResponsePaginationResponse = z64.lazy(() => {
3907
+ return z64.object({
3908
+ limit: z64.number().gte(1),
3909
+ offset: z64.number().gte(0),
3910
+ count: z64.number().gte(0)
3814
3911
  }).transform((data) => ({
3815
3912
  limit: data["limit"],
3816
3913
  offset: data["offset"],
3817
3914
  count: data["count"]
3818
3915
  }));
3819
3916
  });
3820
- var searchResponsePaginationRequest = z63.lazy(() => {
3821
- return z63.object({
3822
- limit: z63.number().gte(1),
3823
- offset: z63.number().gte(0),
3824
- count: z63.number().gte(0)
3917
+ var searchResponsePaginationRequest = z64.lazy(() => {
3918
+ return z64.object({
3919
+ limit: z64.number().gte(1),
3920
+ offset: z64.number().gte(0),
3921
+ count: z64.number().gte(0)
3825
3922
  }).transform((data) => ({
3826
3923
  limit: data["limit"],
3827
3924
  offset: data["offset"],
@@ -3830,29 +3927,29 @@ var searchResponsePaginationRequest = z63.lazy(() => {
3830
3927
  });
3831
3928
 
3832
3929
  // src/services/memories/models/temporal-metadata.ts
3833
- import { z as z66 } from "zod";
3930
+ import { z as z67 } from "zod";
3834
3931
 
3835
3932
  // src/services/memories/models/event-time-range.ts
3836
- import { z as z64 } from "zod";
3837
- var eventTimeRange = z64.lazy(() => {
3838
- return z64.object({
3839
- from: z64.string().nullable(),
3840
- to: z64.string().nullable()
3933
+ import { z as z65 } from "zod";
3934
+ var eventTimeRange = z65.lazy(() => {
3935
+ return z65.object({
3936
+ from: z65.string().nullable(),
3937
+ to: z65.string().nullable()
3841
3938
  });
3842
3939
  });
3843
- var eventTimeRangeResponse = z64.lazy(() => {
3844
- return z64.object({
3845
- from: z64.string().nullable(),
3846
- to: z64.string().nullable()
3940
+ var eventTimeRangeResponse = z65.lazy(() => {
3941
+ return z65.object({
3942
+ from: z65.string().nullable(),
3943
+ to: z65.string().nullable()
3847
3944
  }).transform((data) => ({
3848
3945
  from: data["from"],
3849
3946
  to: data["to"]
3850
3947
  }));
3851
3948
  });
3852
- var eventTimeRangeRequest = z64.lazy(() => {
3853
- return z64.object({
3854
- from: z64.string().nullable(),
3855
- to: z64.string().nullable()
3949
+ var eventTimeRangeRequest = z65.lazy(() => {
3950
+ return z65.object({
3951
+ from: z65.string().nullable(),
3952
+ to: z65.string().nullable()
3856
3953
  }).transform((data) => ({
3857
3954
  from: data["from"],
3858
3955
  to: data["to"]
@@ -3860,26 +3957,26 @@ var eventTimeRangeRequest = z64.lazy(() => {
3860
3957
  });
3861
3958
 
3862
3959
  // src/services/memories/models/ingestion-time-range.ts
3863
- import { z as z65 } from "zod";
3864
- var ingestionTimeRange = z65.lazy(() => {
3865
- return z65.object({
3866
- from: z65.string().nullable(),
3867
- to: z65.string().nullable()
3960
+ import { z as z66 } from "zod";
3961
+ var ingestionTimeRange = z66.lazy(() => {
3962
+ return z66.object({
3963
+ from: z66.string().nullable(),
3964
+ to: z66.string().nullable()
3868
3965
  });
3869
3966
  });
3870
- var ingestionTimeRangeResponse = z65.lazy(() => {
3871
- return z65.object({
3872
- from: z65.string().nullable(),
3873
- to: z65.string().nullable()
3967
+ var ingestionTimeRangeResponse = z66.lazy(() => {
3968
+ return z66.object({
3969
+ from: z66.string().nullable(),
3970
+ to: z66.string().nullable()
3874
3971
  }).transform((data) => ({
3875
3972
  from: data["from"],
3876
3973
  to: data["to"]
3877
3974
  }));
3878
3975
  });
3879
- var ingestionTimeRangeRequest = z65.lazy(() => {
3880
- return z65.object({
3881
- from: z65.string().nullable(),
3882
- to: z65.string().nullable()
3976
+ var ingestionTimeRangeRequest = z66.lazy(() => {
3977
+ return z66.object({
3978
+ from: z66.string().nullable(),
3979
+ to: z66.string().nullable()
3883
3980
  }).transform((data) => ({
3884
3981
  from: data["from"],
3885
3982
  to: data["to"]
@@ -3887,26 +3984,26 @@ var ingestionTimeRangeRequest = z65.lazy(() => {
3887
3984
  });
3888
3985
 
3889
3986
  // src/services/memories/models/temporal-metadata.ts
3890
- var temporalMetadata = z66.lazy(() => {
3891
- return z66.object({
3892
- temporalMode: z66.string(),
3893
- asOfTime: z66.string().nullable(),
3894
- validAtTime: z66.string().nullable(),
3987
+ var temporalMetadata = z67.lazy(() => {
3988
+ return z67.object({
3989
+ temporalMode: z67.string(),
3990
+ asOfTime: z67.string().nullable(),
3991
+ validAtTime: z67.string().nullable(),
3895
3992
  eventTimeRange: eventTimeRange.nullable(),
3896
3993
  ingestionTimeRange: ingestionTimeRange.nullable(),
3897
- includeExpired: z66.boolean(),
3898
- temporalFieldsIncluded: z66.boolean()
3994
+ includeExpired: z67.boolean(),
3995
+ temporalFieldsIncluded: z67.boolean()
3899
3996
  });
3900
3997
  });
3901
- var temporalMetadataResponse = z66.lazy(() => {
3902
- return z66.object({
3903
- temporalMode: z66.string(),
3904
- asOfTime: z66.string().nullable(),
3905
- validAtTime: z66.string().nullable(),
3998
+ var temporalMetadataResponse = z67.lazy(() => {
3999
+ return z67.object({
4000
+ temporalMode: z67.string(),
4001
+ asOfTime: z67.string().nullable(),
4002
+ validAtTime: z67.string().nullable(),
3906
4003
  eventTimeRange: eventTimeRangeResponse.nullable(),
3907
4004
  ingestionTimeRange: ingestionTimeRangeResponse.nullable(),
3908
- includeExpired: z66.boolean(),
3909
- temporalFieldsIncluded: z66.boolean()
4005
+ includeExpired: z67.boolean(),
4006
+ temporalFieldsIncluded: z67.boolean()
3910
4007
  }).transform((data) => ({
3911
4008
  temporalMode: data["temporalMode"],
3912
4009
  asOfTime: data["asOfTime"],
@@ -3917,15 +4014,15 @@ var temporalMetadataResponse = z66.lazy(() => {
3917
4014
  temporalFieldsIncluded: data["temporalFieldsIncluded"]
3918
4015
  }));
3919
4016
  });
3920
- var temporalMetadataRequest = z66.lazy(() => {
3921
- return z66.object({
3922
- temporalMode: z66.string(),
3923
- asOfTime: z66.string().nullable(),
3924
- validAtTime: z66.string().nullable(),
4017
+ var temporalMetadataRequest = z67.lazy(() => {
4018
+ return z67.object({
4019
+ temporalMode: z67.string(),
4020
+ asOfTime: z67.string().nullable(),
4021
+ validAtTime: z67.string().nullable(),
3925
4022
  eventTimeRange: eventTimeRangeRequest.nullable(),
3926
4023
  ingestionTimeRange: ingestionTimeRangeRequest.nullable(),
3927
- includeExpired: z66.boolean(),
3928
- temporalFieldsIncluded: z66.boolean()
4024
+ includeExpired: z67.boolean(),
4025
+ temporalFieldsIncluded: z67.boolean()
3929
4026
  }).transform((data) => ({
3930
4027
  temporalMode: data["temporalMode"],
3931
4028
  asOfTime: data["asOfTime"],
@@ -3938,31 +4035,36 @@ var temporalMetadataRequest = z66.lazy(() => {
3938
4035
  });
3939
4036
 
3940
4037
  // src/services/memories/models/search-response.ts
3941
- var searchResponse = z67.lazy(() => {
3942
- return z67.object({
3943
- data: z67.array(searchResult),
4038
+ var searchResponse = z68.lazy(() => {
4039
+ return z68.object({
4040
+ data: z68.array(searchResult),
4041
+ searchMethod: z68.string().optional(),
3944
4042
  pagination: searchResponsePagination,
3945
- temporalMetadata
4043
+ temporalMetadata: temporalMetadata.nullable()
3946
4044
  });
3947
4045
  });
3948
- var searchResponseResponse = z67.lazy(() => {
3949
- return z67.object({
3950
- data: z67.array(searchResultResponse),
4046
+ var searchResponseResponse = z68.lazy(() => {
4047
+ return z68.object({
4048
+ data: z68.array(searchResultResponse),
4049
+ searchMethod: z68.string().optional(),
3951
4050
  pagination: searchResponsePaginationResponse,
3952
- temporalMetadata: temporalMetadataResponse
4051
+ temporalMetadata: temporalMetadataResponse.nullable()
3953
4052
  }).transform((data) => ({
3954
4053
  data: data["data"],
4054
+ searchMethod: data["searchMethod"],
3955
4055
  pagination: data["pagination"],
3956
4056
  temporalMetadata: data["temporalMetadata"]
3957
4057
  }));
3958
4058
  });
3959
- var searchResponseRequest = z67.lazy(() => {
3960
- return z67.object({
3961
- data: z67.array(searchResultRequest),
4059
+ var searchResponseRequest = z68.lazy(() => {
4060
+ return z68.object({
4061
+ data: z68.array(searchResultRequest),
4062
+ searchMethod: z68.string().optional(),
3962
4063
  pagination: searchResponsePaginationRequest,
3963
- temporalMetadata: temporalMetadataRequest
4064
+ temporalMetadata: temporalMetadataRequest.nullable()
3964
4065
  }).transform((data) => ({
3965
4066
  data: data["data"],
4067
+ searchMethod: data["searchMethod"],
3966
4068
  pagination: data["pagination"],
3967
4069
  temporalMetadata: data["temporalMetadata"]
3968
4070
  }));
@@ -3977,8 +4079,8 @@ var MemoriesService = class extends BaseService {
3977
4079
  * @returns {Promise<HttpResponse<any>>} - OK
3978
4080
  */
3979
4081
  async getMemoryById(id, requestConfig) {
3980
- 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/memories/{id}").setRequestSchema(z68.any()).addAccessTokenAuth(this.config.token).setRequestContentType("json" /* Json */).addResponse({
3981
- schema: z68.undefined(),
4082
+ 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/memories/{id}").setRequestSchema(z69.any()).addAccessTokenAuth(this.config.token).setRequestContentType("json" /* Json */).addResponse({
4083
+ schema: z69.undefined(),
3982
4084
  contentType: "noContent" /* NoContent */,
3983
4085
  status: 200
3984
4086
  }).setRetryAttempts(this.config, requestConfig).setRetryDelayMs(this.config, requestConfig).setResponseValidation(this.config, requestConfig).addPathParam({
@@ -4027,8 +4129,8 @@ var MemoriesService = class extends BaseService {
4027
4129
  * @returns {Promise<HttpResponse<any>>} - No Content
4028
4130
  */
4029
4131
  async deleteMemory(id, requestConfig) {
4030
- 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/memories/{id}").setRequestSchema(z68.any()).addAccessTokenAuth(this.config.token).setRequestContentType("json" /* Json */).addResponse({
4031
- schema: z68.undefined(),
4132
+ 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/memories/{id}").setRequestSchema(z69.any()).addAccessTokenAuth(this.config.token).setRequestContentType("json" /* Json */).addResponse({
4133
+ schema: z69.undefined(),
4032
4134
  contentType: "noContent" /* NoContent */,
4033
4135
  status: 204
4034
4136
  }).setRetryAttempts(this.config, requestConfig).setRetryDelayMs(this.config, requestConfig).setResponseValidation(this.config, requestConfig).addPathParam({
@@ -4046,7 +4148,7 @@ var MemoriesService = class extends BaseService {
4046
4148
  * @returns {Promise<HttpResponse<ListMemoriesOkResponse>>} - List of memories
4047
4149
  */
4048
4150
  async listMemories(params, requestConfig) {
4049
- 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/memories").setRequestSchema(z68.any()).addAccessTokenAuth(this.config.token).setRequestContentType("json" /* Json */).addResponse({
4151
+ 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/memories").setRequestSchema(z69.any()).addAccessTokenAuth(this.config.token).setRequestContentType("json" /* Json */).addResponse({
4050
4152
  schema: listMemoriesOkResponseResponse,
4051
4153
  contentType: "json" /* Json */,
4052
4154
  status: 200
@@ -4121,7 +4223,13 @@ var MemoriesService = class extends BaseService {
4121
4223
  return this.client.call(request);
4122
4224
  }
4123
4225
  /**
4124
- * Search memories by content with different modes (unified, content, facts)
4226
+ * Search memories using different search methods:- **keyword** (default): Traditional fulltext search using Lucene
4227
+ - **semantic**: Vector-based semantic search using OpenAI embeddings
4228
+ - **hybrid**: Combines semantic and keyword search with Reciprocal Rank Fusion
4229
+
4230
+ The `mode` parameter controls content filtering (unified, content, facts).
4231
+ The `searchMethod` parameter controls the search algorithm.
4232
+
4125
4233
  * @param {RequestConfig} [requestConfig] - The request configuration for retry and validation.
4126
4234
  * @returns {Promise<HttpResponse<SearchResponse>>} - Search results
4127
4235
  */
@@ -4179,6 +4287,14 @@ var Mode = /* @__PURE__ */ ((Mode2) => {
4179
4287
  return Mode2;
4180
4288
  })(Mode || {});
4181
4289
 
4290
+ // src/services/memories/models/search-method.ts
4291
+ var SearchMethod = /* @__PURE__ */ ((SearchMethod2) => {
4292
+ SearchMethod2["KEYWORD"] = "keyword";
4293
+ SearchMethod2["SEMANTIC"] = "semantic";
4294
+ SearchMethod2["HYBRID"] = "hybrid";
4295
+ return SearchMethod2;
4296
+ })(SearchMethod || {});
4297
+
4182
4298
  // src/services/memories/models/temporal-mode.ts
4183
4299
  var TemporalMode = /* @__PURE__ */ ((TemporalMode2) => {
4184
4300
  TemporalMode2["CURRENT"] = "current";
@@ -4196,29 +4312,29 @@ var MemoryMemoryType2 = /* @__PURE__ */ ((MemoryMemoryType22) => {
4196
4312
  })(MemoryMemoryType2 || {});
4197
4313
 
4198
4314
  // src/services/system/system-service.ts
4199
- import { z as z76 } from "zod";
4315
+ import { z as z77 } from "zod";
4200
4316
 
4201
4317
  // src/services/system/models/evaluate-feature-flag-request.ts
4202
- import { z as z69 } from "zod";
4203
- var evaluateFeatureFlagRequest = z69.lazy(() => {
4204
- return z69.object({
4205
- flagName: z69.string(),
4206
- context: z69.any().optional()
4318
+ import { z as z70 } from "zod";
4319
+ var evaluateFeatureFlagRequest = z70.lazy(() => {
4320
+ return z70.object({
4321
+ flagName: z70.string(),
4322
+ context: z70.any().optional()
4207
4323
  });
4208
4324
  });
4209
- var evaluateFeatureFlagRequestResponse = z69.lazy(() => {
4210
- return z69.object({
4211
- flagName: z69.string(),
4212
- context: z69.any().optional()
4325
+ var evaluateFeatureFlagRequestResponse = z70.lazy(() => {
4326
+ return z70.object({
4327
+ flagName: z70.string(),
4328
+ context: z70.any().optional()
4213
4329
  }).transform((data) => ({
4214
4330
  flagName: data["flagName"],
4215
4331
  context: data["context"]
4216
4332
  }));
4217
4333
  });
4218
- var evaluateFeatureFlagRequestRequest = z69.lazy(() => {
4219
- return z69.object({
4220
- flagName: z69.string(),
4221
- context: z69.any().optional()
4334
+ var evaluateFeatureFlagRequestRequest = z70.lazy(() => {
4335
+ return z70.object({
4336
+ flagName: z70.string(),
4337
+ context: z70.any().optional()
4222
4338
  }).transform((data) => ({
4223
4339
  flagName: data["flagName"],
4224
4340
  context: data["context"]
@@ -4226,36 +4342,36 @@ var evaluateFeatureFlagRequestRequest = z69.lazy(() => {
4226
4342
  });
4227
4343
 
4228
4344
  // src/services/system/models/analyze-memory-quality-ok-response.ts
4229
- import { z as z72 } from "zod";
4345
+ import { z as z73 } from "zod";
4230
4346
 
4231
4347
  // src/services/system/models/analyze-memory-quality-ok-response-data.ts
4232
- import { z as z71 } from "zod";
4348
+ import { z as z72 } from "zod";
4233
4349
 
4234
4350
  // src/services/system/models/quality-distribution.ts
4235
- import { z as z70 } from "zod";
4236
- var qualityDistribution = z70.lazy(() => {
4237
- return z70.object({
4238
- high: z70.number().optional(),
4239
- medium: z70.number().optional(),
4240
- low: z70.number().optional()
4351
+ import { z as z71 } from "zod";
4352
+ var qualityDistribution = z71.lazy(() => {
4353
+ return z71.object({
4354
+ high: z71.number().optional(),
4355
+ medium: z71.number().optional(),
4356
+ low: z71.number().optional()
4241
4357
  });
4242
4358
  });
4243
- var qualityDistributionResponse = z70.lazy(() => {
4244
- return z70.object({
4245
- high: z70.number().optional(),
4246
- medium: z70.number().optional(),
4247
- low: z70.number().optional()
4359
+ var qualityDistributionResponse = z71.lazy(() => {
4360
+ return z71.object({
4361
+ high: z71.number().optional(),
4362
+ medium: z71.number().optional(),
4363
+ low: z71.number().optional()
4248
4364
  }).transform((data) => ({
4249
4365
  high: data["high"],
4250
4366
  medium: data["medium"],
4251
4367
  low: data["low"]
4252
4368
  }));
4253
4369
  });
4254
- var qualityDistributionRequest = z70.lazy(() => {
4255
- return z70.object({
4256
- high: z70.number().optional(),
4257
- medium: z70.number().optional(),
4258
- low: z70.number().optional()
4370
+ var qualityDistributionRequest = z71.lazy(() => {
4371
+ return z71.object({
4372
+ high: z71.number().optional(),
4373
+ medium: z71.number().optional(),
4374
+ low: z71.number().optional()
4259
4375
  }).transform((data) => ({
4260
4376
  high: data["high"],
4261
4377
  medium: data["medium"],
@@ -4264,20 +4380,20 @@ var qualityDistributionRequest = z70.lazy(() => {
4264
4380
  });
4265
4381
 
4266
4382
  // src/services/system/models/analyze-memory-quality-ok-response-data.ts
4267
- var analyzeMemoryQualityOkResponseData = z71.lazy(() => {
4268
- return z71.object({
4269
- totalMemories: z71.number().optional(),
4383
+ var analyzeMemoryQualityOkResponseData = z72.lazy(() => {
4384
+ return z72.object({
4385
+ totalMemories: z72.number().optional(),
4270
4386
  qualityDistribution: qualityDistribution.optional(),
4271
- averageQuality: z71.number().optional(),
4272
- pruningCandidates: z71.number().optional()
4387
+ averageQuality: z72.number().optional(),
4388
+ pruningCandidates: z72.number().optional()
4273
4389
  });
4274
4390
  });
4275
- var analyzeMemoryQualityOkResponseDataResponse = z71.lazy(() => {
4276
- return z71.object({
4277
- totalMemories: z71.number().optional(),
4391
+ var analyzeMemoryQualityOkResponseDataResponse = z72.lazy(() => {
4392
+ return z72.object({
4393
+ totalMemories: z72.number().optional(),
4278
4394
  qualityDistribution: qualityDistributionResponse.optional(),
4279
- averageQuality: z71.number().optional(),
4280
- pruningCandidates: z71.number().optional()
4395
+ averageQuality: z72.number().optional(),
4396
+ pruningCandidates: z72.number().optional()
4281
4397
  }).transform((data) => ({
4282
4398
  totalMemories: data["totalMemories"],
4283
4399
  qualityDistribution: data["qualityDistribution"],
@@ -4285,12 +4401,12 @@ var analyzeMemoryQualityOkResponseDataResponse = z71.lazy(() => {
4285
4401
  pruningCandidates: data["pruningCandidates"]
4286
4402
  }));
4287
4403
  });
4288
- var analyzeMemoryQualityOkResponseDataRequest = z71.lazy(() => {
4289
- return z71.object({
4290
- totalMemories: z71.number().optional(),
4404
+ var analyzeMemoryQualityOkResponseDataRequest = z72.lazy(() => {
4405
+ return z72.object({
4406
+ totalMemories: z72.number().optional(),
4291
4407
  qualityDistribution: qualityDistributionRequest.optional(),
4292
- averageQuality: z71.number().optional(),
4293
- pruningCandidates: z71.number().optional()
4408
+ averageQuality: z72.number().optional(),
4409
+ pruningCandidates: z72.number().optional()
4294
4410
  }).transform((data) => ({
4295
4411
  totalMemories: data["totalMemories"],
4296
4412
  qualityDistribution: data["qualityDistribution"],
@@ -4300,20 +4416,20 @@ var analyzeMemoryQualityOkResponseDataRequest = z71.lazy(() => {
4300
4416
  });
4301
4417
 
4302
4418
  // src/services/system/models/analyze-memory-quality-ok-response.ts
4303
- var analyzeMemoryQualityOkResponse = z72.lazy(() => {
4304
- return z72.object({
4419
+ var analyzeMemoryQualityOkResponse = z73.lazy(() => {
4420
+ return z73.object({
4305
4421
  data: analyzeMemoryQualityOkResponseData.optional()
4306
4422
  });
4307
4423
  });
4308
- var analyzeMemoryQualityOkResponseResponse = z72.lazy(() => {
4309
- return z72.object({
4424
+ var analyzeMemoryQualityOkResponseResponse = z73.lazy(() => {
4425
+ return z73.object({
4310
4426
  data: analyzeMemoryQualityOkResponseDataResponse.optional()
4311
4427
  }).transform((data) => ({
4312
4428
  data: data["data"]
4313
4429
  }));
4314
4430
  });
4315
- var analyzeMemoryQualityOkResponseRequest = z72.lazy(() => {
4316
- return z72.object({
4431
+ var analyzeMemoryQualityOkResponseRequest = z73.lazy(() => {
4432
+ return z73.object({
4317
4433
  data: analyzeMemoryQualityOkResponseDataRequest.optional()
4318
4434
  }).transform((data) => ({
4319
4435
  data: data["data"]
@@ -4321,23 +4437,23 @@ var analyzeMemoryQualityOkResponseRequest = z72.lazy(() => {
4321
4437
  });
4322
4438
 
4323
4439
  // src/services/system/models/prune-memories-request.ts
4324
- import { z as z73 } from "zod";
4325
- var pruneMemoriesRequest = z73.lazy(() => {
4326
- return z73.object({
4327
- targetReduction: z73.number().optional(),
4328
- minQualityThreshold: z73.number().optional(),
4329
- preserveRecent: z73.boolean().optional(),
4330
- recentDaysToPreserve: z73.number().optional(),
4331
- dryRun: z73.boolean().optional()
4440
+ import { z as z74 } from "zod";
4441
+ var pruneMemoriesRequest = z74.lazy(() => {
4442
+ return z74.object({
4443
+ targetReduction: z74.number().optional(),
4444
+ minQualityThreshold: z74.number().optional(),
4445
+ preserveRecent: z74.boolean().optional(),
4446
+ recentDaysToPreserve: z74.number().optional(),
4447
+ dryRun: z74.boolean().optional()
4332
4448
  });
4333
4449
  });
4334
- var pruneMemoriesRequestResponse = z73.lazy(() => {
4335
- return z73.object({
4336
- targetReduction: z73.number().optional(),
4337
- minQualityThreshold: z73.number().optional(),
4338
- preserveRecent: z73.boolean().optional(),
4339
- recentDaysToPreserve: z73.number().optional(),
4340
- dryRun: z73.boolean().optional()
4450
+ var pruneMemoriesRequestResponse = z74.lazy(() => {
4451
+ return z74.object({
4452
+ targetReduction: z74.number().optional(),
4453
+ minQualityThreshold: z74.number().optional(),
4454
+ preserveRecent: z74.boolean().optional(),
4455
+ recentDaysToPreserve: z74.number().optional(),
4456
+ dryRun: z74.boolean().optional()
4341
4457
  }).transform((data) => ({
4342
4458
  targetReduction: data["targetReduction"],
4343
4459
  minQualityThreshold: data["minQualityThreshold"],
@@ -4346,13 +4462,13 @@ var pruneMemoriesRequestResponse = z73.lazy(() => {
4346
4462
  dryRun: data["dryRun"]
4347
4463
  }));
4348
4464
  });
4349
- var pruneMemoriesRequestRequest = z73.lazy(() => {
4350
- return z73.object({
4351
- targetReduction: z73.number().optional(),
4352
- minQualityThreshold: z73.number().optional(),
4353
- preserveRecent: z73.boolean().optional(),
4354
- recentDaysToPreserve: z73.number().optional(),
4355
- dryRun: z73.boolean().optional()
4465
+ var pruneMemoriesRequestRequest = z74.lazy(() => {
4466
+ return z74.object({
4467
+ targetReduction: z74.number().optional(),
4468
+ minQualityThreshold: z74.number().optional(),
4469
+ preserveRecent: z74.boolean().optional(),
4470
+ recentDaysToPreserve: z74.number().optional(),
4471
+ dryRun: z74.boolean().optional()
4356
4472
  }).transform((data) => ({
4357
4473
  targetReduction: data["targetReduction"],
4358
4474
  minQualityThreshold: data["minQualityThreshold"],
@@ -4363,33 +4479,33 @@ var pruneMemoriesRequestRequest = z73.lazy(() => {
4363
4479
  });
4364
4480
 
4365
4481
  // src/services/system/models/prune-memories-ok-response.ts
4366
- import { z as z75 } from "zod";
4482
+ import { z as z76 } from "zod";
4367
4483
 
4368
4484
  // src/services/system/models/prune-memories-ok-response-data.ts
4369
- import { z as z74 } from "zod";
4370
- var pruneMemoriesOkResponseData = z74.lazy(() => {
4371
- return z74.object({
4372
- prunedCount: z74.number().optional(),
4373
- prunedIds: z74.array(z74.string()).optional(),
4374
- dryRun: z74.boolean().optional()
4485
+ import { z as z75 } from "zod";
4486
+ var pruneMemoriesOkResponseData = z75.lazy(() => {
4487
+ return z75.object({
4488
+ prunedCount: z75.number().optional(),
4489
+ prunedIds: z75.array(z75.string()).optional(),
4490
+ dryRun: z75.boolean().optional()
4375
4491
  });
4376
4492
  });
4377
- var pruneMemoriesOkResponseDataResponse = z74.lazy(() => {
4378
- return z74.object({
4379
- prunedCount: z74.number().optional(),
4380
- prunedIds: z74.array(z74.string()).optional(),
4381
- dryRun: z74.boolean().optional()
4493
+ var pruneMemoriesOkResponseDataResponse = z75.lazy(() => {
4494
+ return z75.object({
4495
+ prunedCount: z75.number().optional(),
4496
+ prunedIds: z75.array(z75.string()).optional(),
4497
+ dryRun: z75.boolean().optional()
4382
4498
  }).transform((data) => ({
4383
4499
  prunedCount: data["prunedCount"],
4384
4500
  prunedIds: data["prunedIds"],
4385
4501
  dryRun: data["dryRun"]
4386
4502
  }));
4387
4503
  });
4388
- var pruneMemoriesOkResponseDataRequest = z74.lazy(() => {
4389
- return z74.object({
4390
- prunedCount: z74.number().optional(),
4391
- prunedIds: z74.array(z74.string()).optional(),
4392
- dryRun: z74.boolean().optional()
4504
+ var pruneMemoriesOkResponseDataRequest = z75.lazy(() => {
4505
+ return z75.object({
4506
+ prunedCount: z75.number().optional(),
4507
+ prunedIds: z75.array(z75.string()).optional(),
4508
+ dryRun: z75.boolean().optional()
4393
4509
  }).transform((data) => ({
4394
4510
  prunedCount: data["prunedCount"],
4395
4511
  prunedIds: data["prunedIds"],
@@ -4398,20 +4514,20 @@ var pruneMemoriesOkResponseDataRequest = z74.lazy(() => {
4398
4514
  });
4399
4515
 
4400
4516
  // src/services/system/models/prune-memories-ok-response.ts
4401
- var pruneMemoriesOkResponse = z75.lazy(() => {
4402
- return z75.object({
4517
+ var pruneMemoriesOkResponse = z76.lazy(() => {
4518
+ return z76.object({
4403
4519
  data: pruneMemoriesOkResponseData.optional()
4404
4520
  });
4405
4521
  });
4406
- var pruneMemoriesOkResponseResponse = z75.lazy(() => {
4407
- return z75.object({
4522
+ var pruneMemoriesOkResponseResponse = z76.lazy(() => {
4523
+ return z76.object({
4408
4524
  data: pruneMemoriesOkResponseDataResponse.optional()
4409
4525
  }).transform((data) => ({
4410
4526
  data: data["data"]
4411
4527
  }));
4412
4528
  });
4413
- var pruneMemoriesOkResponseRequest = z75.lazy(() => {
4414
- return z75.object({
4529
+ var pruneMemoriesOkResponseRequest = z76.lazy(() => {
4530
+ return z76.object({
4415
4531
  data: pruneMemoriesOkResponseDataRequest.optional()
4416
4532
  }).transform((data) => ({
4417
4533
  data: data["data"]
@@ -4427,8 +4543,8 @@ var SystemService = class extends BaseService {
4427
4543
  * @returns {Promise<HttpResponse<any>>} - OpenAPI specification
4428
4544
  */
4429
4545
  async getOpenApiSpec(params, requestConfig) {
4430
- 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/openapi.json").setRequestSchema(z76.any()).addAccessTokenAuth(this.config.token).setRequestContentType("json" /* Json */).addResponse({
4431
- schema: z76.any(),
4546
+ 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/openapi.json").setRequestSchema(z77.any()).addAccessTokenAuth(this.config.token).setRequestContentType("json" /* Json */).addResponse({
4547
+ schema: z77.any(),
4432
4548
  contentType: "json" /* Json */,
4433
4549
  status: 200
4434
4550
  }).addError({
@@ -4451,8 +4567,8 @@ var SystemService = class extends BaseService {
4451
4567
  * @returns {Promise<HttpResponse<any>>} - OK
4452
4568
  */
4453
4569
  async getSystemHealth(requestConfig) {
4454
- 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/system/health").setRequestSchema(z76.any()).addAccessTokenAuth(this.config.token).setRequestContentType("json" /* Json */).addResponse({
4455
- schema: z76.undefined(),
4570
+ 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/system/health").setRequestSchema(z77.any()).addAccessTokenAuth(this.config.token).setRequestContentType("json" /* Json */).addResponse({
4571
+ schema: z77.undefined(),
4456
4572
  contentType: "noContent" /* NoContent */,
4457
4573
  status: 200
4458
4574
  }).addError({
@@ -4468,8 +4584,8 @@ var SystemService = class extends BaseService {
4468
4584
  * @returns {Promise<HttpResponse<any>>} - OK
4469
4585
  */
4470
4586
  async getContextStatus(requestConfig) {
4471
- 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/system/context/status").setRequestSchema(z76.any()).addAccessTokenAuth(this.config.token).setRequestContentType("json" /* Json */).addResponse({
4472
- schema: z76.undefined(),
4587
+ 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/system/context/status").setRequestSchema(z77.any()).addAccessTokenAuth(this.config.token).setRequestContentType("json" /* Json */).addResponse({
4588
+ schema: z77.undefined(),
4473
4589
  contentType: "noContent" /* NoContent */,
4474
4590
  status: 200
4475
4591
  }).setRetryAttempts(this.config, requestConfig).setRetryDelayMs(this.config, requestConfig).setResponseValidation(this.config, requestConfig).build();
@@ -4481,8 +4597,8 @@ var SystemService = class extends BaseService {
4481
4597
  * @returns {Promise<HttpResponse<any>>} - OK
4482
4598
  */
4483
4599
  async getFeatureFlags(requestConfig) {
4484
- 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/system/feature-flags").setRequestSchema(z76.any()).addAccessTokenAuth(this.config.token).setRequestContentType("json" /* Json */).addResponse({
4485
- schema: z76.undefined(),
4600
+ 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/system/feature-flags").setRequestSchema(z77.any()).addAccessTokenAuth(this.config.token).setRequestContentType("json" /* Json */).addResponse({
4601
+ schema: z77.undefined(),
4486
4602
  contentType: "noContent" /* NoContent */,
4487
4603
  status: 200
4488
4604
  }).setRetryAttempts(this.config, requestConfig).setRetryDelayMs(this.config, requestConfig).setResponseValidation(this.config, requestConfig).build();
@@ -4495,7 +4611,7 @@ var SystemService = class extends BaseService {
4495
4611
  */
4496
4612
  async evaluateFeatureFlag(body, requestConfig) {
4497
4613
  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("POST").setPath("/api/system/feature-flags/evaluate").setRequestSchema(evaluateFeatureFlagRequestRequest).addAccessTokenAuth(this.config.token).setRequestContentType("json" /* Json */).addResponse({
4498
- schema: z76.undefined(),
4614
+ schema: z77.undefined(),
4499
4615
  contentType: "noContent" /* NoContent */,
4500
4616
  status: 200
4501
4617
  }).setRetryAttempts(this.config, requestConfig).setRetryDelayMs(this.config, requestConfig).setResponseValidation(this.config, requestConfig).addHeaderParam({ key: "Content-Type", value: "application/json" }).addBody(body).build();
@@ -4509,7 +4625,7 @@ var SystemService = class extends BaseService {
4509
4625
  * @returns {Promise<HttpResponse<AnalyzeMemoryQualityOkResponse>>} - OK
4510
4626
  */
4511
4627
  async analyzeMemoryQuality(params, requestConfig) {
4512
- 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/system/memory/quality").setRequestSchema(z76.any()).addAccessTokenAuth(this.config.token).setRequestContentType("json" /* Json */).addResponse({
4628
+ 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/system/memory/quality").setRequestSchema(z77.any()).addAccessTokenAuth(this.config.token).setRequestContentType("json" /* Json */).addResponse({
4513
4629
  schema: analyzeMemoryQualityOkResponseResponse,
4514
4630
  contentType: "json" /* Json */,
4515
4631
  status: 200
@@ -4561,27 +4677,27 @@ var NoCache = /* @__PURE__ */ ((NoCache2) => {
4561
4677
  })(NoCache || {});
4562
4678
 
4563
4679
  // src/services/patterns/patterns-service.ts
4564
- import { z as z85 } from "zod";
4680
+ import { z as z86 } from "zod";
4565
4681
 
4566
4682
  // src/services/patterns/models/list-patterns-ok-response.ts
4567
- import { z as z79 } from "zod";
4683
+ import { z as z80 } from "zod";
4568
4684
 
4569
4685
  // src/services/patterns/models/pattern.ts
4570
- import { z as z77 } from "zod";
4571
- var pattern = z77.lazy(() => {
4572
- return z77.object({
4573
- id: z77.string(),
4574
- type: z77.string(),
4575
- description: z77.string(),
4576
- confidence: z77.number().gte(0).lte(1)
4686
+ import { z as z78 } from "zod";
4687
+ var pattern = z78.lazy(() => {
4688
+ return z78.object({
4689
+ id: z78.string(),
4690
+ type: z78.string(),
4691
+ description: z78.string(),
4692
+ confidence: z78.number().gte(0).lte(1)
4577
4693
  });
4578
4694
  });
4579
- var patternResponse = z77.lazy(() => {
4580
- return z77.object({
4581
- id: z77.string(),
4582
- type: z77.string(),
4583
- description: z77.string(),
4584
- confidence: z77.number().gte(0).lte(1)
4695
+ var patternResponse = z78.lazy(() => {
4696
+ return z78.object({
4697
+ id: z78.string(),
4698
+ type: z78.string(),
4699
+ description: z78.string(),
4700
+ confidence: z78.number().gte(0).lte(1)
4585
4701
  }).transform((data) => ({
4586
4702
  id: data["id"],
4587
4703
  type: data["type"],
@@ -4589,12 +4705,12 @@ var patternResponse = z77.lazy(() => {
4589
4705
  confidence: data["confidence"]
4590
4706
  }));
4591
4707
  });
4592
- var patternRequest = z77.lazy(() => {
4593
- return z77.object({
4594
- id: z77.string(),
4595
- type: z77.string(),
4596
- description: z77.string(),
4597
- confidence: z77.number().gte(0).lte(1)
4708
+ var patternRequest = z78.lazy(() => {
4709
+ return z78.object({
4710
+ id: z78.string(),
4711
+ type: z78.string(),
4712
+ description: z78.string(),
4713
+ confidence: z78.number().gte(0).lte(1)
4598
4714
  }).transform((data) => ({
4599
4715
  id: data["id"],
4600
4716
  type: data["type"],
@@ -4604,30 +4720,30 @@ var patternRequest = z77.lazy(() => {
4604
4720
  });
4605
4721
 
4606
4722
  // src/services/patterns/models/list-patterns-ok-response-pagination.ts
4607
- import { z as z78 } from "zod";
4608
- var listPatternsOkResponsePagination = z78.lazy(() => {
4609
- return z78.object({
4610
- limit: z78.number().optional(),
4611
- offset: z78.number().optional(),
4612
- count: z78.number().optional()
4723
+ import { z as z79 } from "zod";
4724
+ var listPatternsOkResponsePagination = z79.lazy(() => {
4725
+ return z79.object({
4726
+ limit: z79.number().optional(),
4727
+ offset: z79.number().optional(),
4728
+ count: z79.number().optional()
4613
4729
  });
4614
4730
  });
4615
- var listPatternsOkResponsePaginationResponse = z78.lazy(() => {
4616
- return z78.object({
4617
- limit: z78.number().optional(),
4618
- offset: z78.number().optional(),
4619
- count: z78.number().optional()
4731
+ var listPatternsOkResponsePaginationResponse = z79.lazy(() => {
4732
+ return z79.object({
4733
+ limit: z79.number().optional(),
4734
+ offset: z79.number().optional(),
4735
+ count: z79.number().optional()
4620
4736
  }).transform((data) => ({
4621
4737
  limit: data["limit"],
4622
4738
  offset: data["offset"],
4623
4739
  count: data["count"]
4624
4740
  }));
4625
4741
  });
4626
- var listPatternsOkResponsePaginationRequest = z78.lazy(() => {
4627
- return z78.object({
4628
- limit: z78.number().optional(),
4629
- offset: z78.number().optional(),
4630
- count: z78.number().optional()
4742
+ var listPatternsOkResponsePaginationRequest = z79.lazy(() => {
4743
+ return z79.object({
4744
+ limit: z79.number().optional(),
4745
+ offset: z79.number().optional(),
4746
+ count: z79.number().optional()
4631
4747
  }).transform((data) => ({
4632
4748
  limit: data["limit"],
4633
4749
  offset: data["offset"],
@@ -4636,24 +4752,24 @@ var listPatternsOkResponsePaginationRequest = z78.lazy(() => {
4636
4752
  });
4637
4753
 
4638
4754
  // src/services/patterns/models/list-patterns-ok-response.ts
4639
- var listPatternsOkResponse = z79.lazy(() => {
4640
- return z79.object({
4641
- data: z79.array(pattern).optional(),
4755
+ var listPatternsOkResponse = z80.lazy(() => {
4756
+ return z80.object({
4757
+ data: z80.array(pattern).optional(),
4642
4758
  pagination: listPatternsOkResponsePagination.optional()
4643
4759
  });
4644
4760
  });
4645
- var listPatternsOkResponseResponse = z79.lazy(() => {
4646
- return z79.object({
4647
- data: z79.array(patternResponse).optional(),
4761
+ var listPatternsOkResponseResponse = z80.lazy(() => {
4762
+ return z80.object({
4763
+ data: z80.array(patternResponse).optional(),
4648
4764
  pagination: listPatternsOkResponsePaginationResponse.optional()
4649
4765
  }).transform((data) => ({
4650
4766
  data: data["data"],
4651
4767
  pagination: data["pagination"]
4652
4768
  }));
4653
4769
  });
4654
- var listPatternsOkResponseRequest = z79.lazy(() => {
4655
- return z79.object({
4656
- data: z79.array(patternRequest).optional(),
4770
+ var listPatternsOkResponseRequest = z80.lazy(() => {
4771
+ return z80.object({
4772
+ data: z80.array(patternRequest).optional(),
4657
4773
  pagination: listPatternsOkResponsePaginationRequest.optional()
4658
4774
  }).transform((data) => ({
4659
4775
  data: data["data"],
@@ -4662,26 +4778,26 @@ var listPatternsOkResponseRequest = z79.lazy(() => {
4662
4778
  });
4663
4779
 
4664
4780
  // src/services/patterns/models/compile-patterns-request.ts
4665
- import { z as z80 } from "zod";
4666
- var compilePatternsRequest = z80.lazy(() => {
4667
- return z80.object({
4668
- minOccurrences: z80.number().optional(),
4669
- timeWindow: z80.string().optional()
4781
+ import { z as z81 } from "zod";
4782
+ var compilePatternsRequest = z81.lazy(() => {
4783
+ return z81.object({
4784
+ minOccurrences: z81.number().optional(),
4785
+ timeWindow: z81.string().optional()
4670
4786
  });
4671
4787
  });
4672
- var compilePatternsRequestResponse = z80.lazy(() => {
4673
- return z80.object({
4674
- minOccurrences: z80.number().optional(),
4675
- timeWindow: z80.string().optional()
4788
+ var compilePatternsRequestResponse = z81.lazy(() => {
4789
+ return z81.object({
4790
+ minOccurrences: z81.number().optional(),
4791
+ timeWindow: z81.string().optional()
4676
4792
  }).transform((data) => ({
4677
4793
  minOccurrences: data["minOccurrences"],
4678
4794
  timeWindow: data["timeWindow"]
4679
4795
  }));
4680
4796
  });
4681
- var compilePatternsRequestRequest = z80.lazy(() => {
4682
- return z80.object({
4683
- minOccurrences: z80.number().optional(),
4684
- timeWindow: z80.string().optional()
4797
+ var compilePatternsRequestRequest = z81.lazy(() => {
4798
+ return z81.object({
4799
+ minOccurrences: z81.number().optional(),
4800
+ timeWindow: z81.string().optional()
4685
4801
  }).transform((data) => ({
4686
4802
  minOccurrences: data["minOccurrences"],
4687
4803
  timeWindow: data["timeWindow"]
@@ -4689,25 +4805,25 @@ var compilePatternsRequestRequest = z80.lazy(() => {
4689
4805
  });
4690
4806
 
4691
4807
  // src/services/patterns/models/detect-patterns-request.ts
4692
- import { z as z81 } from "zod";
4693
- var detectPatternsRequest = z81.lazy(() => {
4694
- return z81.object({
4695
- contextFilter: z81.string().optional(),
4696
- timeframeStart: z81.string().optional(),
4697
- timeframeEnd: z81.string().optional(),
4698
- minConfidence: z81.number().gte(0).lte(1).optional(),
4699
- maxResults: z81.number().optional(),
4700
- autoStore: z81.boolean().optional()
4808
+ import { z as z82 } from "zod";
4809
+ var detectPatternsRequest = z82.lazy(() => {
4810
+ return z82.object({
4811
+ contextFilter: z82.string().optional(),
4812
+ timeframeStart: z82.string().optional(),
4813
+ timeframeEnd: z82.string().optional(),
4814
+ minConfidence: z82.number().gte(0).lte(1).optional(),
4815
+ maxResults: z82.number().optional(),
4816
+ autoStore: z82.boolean().optional()
4701
4817
  });
4702
4818
  });
4703
- var detectPatternsRequestResponse = z81.lazy(() => {
4704
- return z81.object({
4705
- contextFilter: z81.string().optional(),
4706
- timeframeStart: z81.string().optional(),
4707
- timeframeEnd: z81.string().optional(),
4708
- minConfidence: z81.number().gte(0).lte(1).optional(),
4709
- maxResults: z81.number().optional(),
4710
- autoStore: z81.boolean().optional()
4819
+ var detectPatternsRequestResponse = z82.lazy(() => {
4820
+ return z82.object({
4821
+ contextFilter: z82.string().optional(),
4822
+ timeframeStart: z82.string().optional(),
4823
+ timeframeEnd: z82.string().optional(),
4824
+ minConfidence: z82.number().gte(0).lte(1).optional(),
4825
+ maxResults: z82.number().optional(),
4826
+ autoStore: z82.boolean().optional()
4711
4827
  }).transform((data) => ({
4712
4828
  contextFilter: data["contextFilter"],
4713
4829
  timeframeStart: data["timeframeStart"],
@@ -4717,14 +4833,14 @@ var detectPatternsRequestResponse = z81.lazy(() => {
4717
4833
  autoStore: data["autoStore"]
4718
4834
  }));
4719
4835
  });
4720
- var detectPatternsRequestRequest = z81.lazy(() => {
4721
- return z81.object({
4722
- contextFilter: z81.string().optional(),
4723
- timeframeStart: z81.string().optional(),
4724
- timeframeEnd: z81.string().optional(),
4725
- minConfidence: z81.number().gte(0).lte(1).optional(),
4726
- maxResults: z81.number().optional(),
4727
- autoStore: z81.boolean().optional()
4836
+ var detectPatternsRequestRequest = z82.lazy(() => {
4837
+ return z82.object({
4838
+ contextFilter: z82.string().optional(),
4839
+ timeframeStart: z82.string().optional(),
4840
+ timeframeEnd: z82.string().optional(),
4841
+ minConfidence: z82.number().gte(0).lte(1).optional(),
4842
+ maxResults: z82.number().optional(),
4843
+ autoStore: z82.boolean().optional()
4728
4844
  }).transform((data) => ({
4729
4845
  contextFilter: data["contextFilter"],
4730
4846
  timeframeStart: data["timeframeStart"],
@@ -4736,30 +4852,30 @@ var detectPatternsRequestRequest = z81.lazy(() => {
4736
4852
  });
4737
4853
 
4738
4854
  // src/services/patterns/models/analyze-patterns-request.ts
4739
- import { z as z82 } from "zod";
4740
- var analyzePatternsRequest = z82.lazy(() => {
4741
- return z82.object({
4742
- timeRange: z82.number().optional(),
4743
- groupBy: z82.string().optional(),
4744
- includeDetails: z82.boolean().optional()
4855
+ import { z as z83 } from "zod";
4856
+ var analyzePatternsRequest = z83.lazy(() => {
4857
+ return z83.object({
4858
+ timeRange: z83.number().optional(),
4859
+ groupBy: z83.string().optional(),
4860
+ includeDetails: z83.boolean().optional()
4745
4861
  });
4746
4862
  });
4747
- var analyzePatternsRequestResponse = z82.lazy(() => {
4748
- return z82.object({
4749
- timeRange: z82.number().optional(),
4750
- groupBy: z82.string().optional(),
4751
- includeDetails: z82.boolean().optional()
4863
+ var analyzePatternsRequestResponse = z83.lazy(() => {
4864
+ return z83.object({
4865
+ timeRange: z83.number().optional(),
4866
+ groupBy: z83.string().optional(),
4867
+ includeDetails: z83.boolean().optional()
4752
4868
  }).transform((data) => ({
4753
4869
  timeRange: data["timeRange"],
4754
4870
  groupBy: data["groupBy"],
4755
4871
  includeDetails: data["includeDetails"]
4756
4872
  }));
4757
4873
  });
4758
- var analyzePatternsRequestRequest = z82.lazy(() => {
4759
- return z82.object({
4760
- timeRange: z82.number().optional(),
4761
- groupBy: z82.string().optional(),
4762
- includeDetails: z82.boolean().optional()
4874
+ var analyzePatternsRequestRequest = z83.lazy(() => {
4875
+ return z83.object({
4876
+ timeRange: z83.number().optional(),
4877
+ groupBy: z83.string().optional(),
4878
+ includeDetails: z83.boolean().optional()
4763
4879
  }).transform((data) => ({
4764
4880
  timeRange: data["timeRange"],
4765
4881
  groupBy: data["groupBy"],
@@ -4768,21 +4884,21 @@ var analyzePatternsRequestRequest = z82.lazy(() => {
4768
4884
  });
4769
4885
 
4770
4886
  // src/services/patterns/models/update-pattern-request.ts
4771
- import { z as z83 } from "zod";
4772
- var updatePatternRequest = z83.lazy(() => {
4773
- return z83.object({
4774
- name: z83.string().optional(),
4775
- description: z83.string().optional(),
4776
- confidence: z83.number().optional(),
4777
- metadata: z83.any().optional()
4887
+ import { z as z84 } from "zod";
4888
+ var updatePatternRequest = z84.lazy(() => {
4889
+ return z84.object({
4890
+ name: z84.string().optional(),
4891
+ description: z84.string().optional(),
4892
+ confidence: z84.number().optional(),
4893
+ metadata: z84.any().optional()
4778
4894
  });
4779
4895
  });
4780
- var updatePatternRequestResponse = z83.lazy(() => {
4781
- return z83.object({
4782
- name: z83.string().optional(),
4783
- description: z83.string().optional(),
4784
- confidence: z83.number().optional(),
4785
- metadata: z83.any().optional()
4896
+ var updatePatternRequestResponse = z84.lazy(() => {
4897
+ return z84.object({
4898
+ name: z84.string().optional(),
4899
+ description: z84.string().optional(),
4900
+ confidence: z84.number().optional(),
4901
+ metadata: z84.any().optional()
4786
4902
  }).transform((data) => ({
4787
4903
  name: data["name"],
4788
4904
  description: data["description"],
@@ -4790,12 +4906,12 @@ var updatePatternRequestResponse = z83.lazy(() => {
4790
4906
  metadata: data["metadata"]
4791
4907
  }));
4792
4908
  });
4793
- var updatePatternRequestRequest = z83.lazy(() => {
4794
- return z83.object({
4795
- name: z83.string().optional(),
4796
- description: z83.string().optional(),
4797
- confidence: z83.number().optional(),
4798
- metadata: z83.any().optional()
4909
+ var updatePatternRequestRequest = z84.lazy(() => {
4910
+ return z84.object({
4911
+ name: z84.string().optional(),
4912
+ description: z84.string().optional(),
4913
+ confidence: z84.number().optional(),
4914
+ metadata: z84.any().optional()
4799
4915
  }).transform((data) => ({
4800
4916
  name: data["name"],
4801
4917
  description: data["description"],
@@ -4805,26 +4921,26 @@ var updatePatternRequestRequest = z83.lazy(() => {
4805
4921
  });
4806
4922
 
4807
4923
  // src/services/patterns/models/record-pattern-feedback-request.ts
4808
- import { z as z84 } from "zod";
4809
- var recordPatternFeedbackRequest = z84.lazy(() => {
4810
- return z84.object({
4811
- patternId: z84.string(),
4812
- feedback: z84.string()
4924
+ import { z as z85 } from "zod";
4925
+ var recordPatternFeedbackRequest = z85.lazy(() => {
4926
+ return z85.object({
4927
+ patternId: z85.string(),
4928
+ feedback: z85.string()
4813
4929
  });
4814
4930
  });
4815
- var recordPatternFeedbackRequestResponse = z84.lazy(() => {
4816
- return z84.object({
4817
- patternId: z84.string(),
4818
- feedback: z84.string()
4931
+ var recordPatternFeedbackRequestResponse = z85.lazy(() => {
4932
+ return z85.object({
4933
+ patternId: z85.string(),
4934
+ feedback: z85.string()
4819
4935
  }).transform((data) => ({
4820
4936
  patternId: data["patternId"],
4821
4937
  feedback: data["feedback"]
4822
4938
  }));
4823
4939
  });
4824
- var recordPatternFeedbackRequestRequest = z84.lazy(() => {
4825
- return z84.object({
4826
- patternId: z84.string(),
4827
- feedback: z84.string()
4940
+ var recordPatternFeedbackRequestRequest = z85.lazy(() => {
4941
+ return z85.object({
4942
+ patternId: z85.string(),
4943
+ feedback: z85.string()
4828
4944
  }).transform((data) => ({
4829
4945
  patternId: data["patternId"],
4830
4946
  feedback: data["feedback"]
@@ -4841,7 +4957,7 @@ var PatternsService = class extends BaseService {
4841
4957
  * @returns {Promise<HttpResponse<ListPatternsOkResponse>>} - List of patterns retrieved successfully
4842
4958
  */
4843
4959
  async listPatterns(params, requestConfig) {
4844
- 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/patterns").setRequestSchema(z85.any()).addAccessTokenAuth(this.config.token).setRequestContentType("json" /* Json */).addResponse({
4960
+ 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/patterns").setRequestSchema(z86.any()).addAccessTokenAuth(this.config.token).setRequestContentType("json" /* Json */).addResponse({
4845
4961
  schema: listPatternsOkResponseResponse,
4846
4962
  contentType: "json" /* Json */,
4847
4963
  status: 200
@@ -4869,7 +4985,7 @@ var PatternsService = class extends BaseService {
4869
4985
  */
4870
4986
  async compilePatterns(body, requestConfig) {
4871
4987
  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("POST").setPath("/api/patterns/compile").setRequestSchema(compilePatternsRequestRequest).addAccessTokenAuth(this.config.token).setRequestContentType("json" /* Json */).addResponse({
4872
- schema: z85.undefined(),
4988
+ schema: z86.undefined(),
4873
4989
  contentType: "noContent" /* NoContent */,
4874
4990
  status: 200
4875
4991
  }).setRetryAttempts(this.config, requestConfig).setRetryDelayMs(this.config, requestConfig).setResponseValidation(this.config, requestConfig).addHeaderParam({ key: "Content-Type", value: "application/json" }).addBody(body).build();
@@ -4882,7 +4998,7 @@ var PatternsService = class extends BaseService {
4882
4998
  */
4883
4999
  async detectPatterns(body, requestConfig) {
4884
5000
  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("POST").setPath("/api/patterns/detect").setRequestSchema(detectPatternsRequestRequest).addAccessTokenAuth(this.config.token).setRequestContentType("json" /* Json */).addResponse({
4885
- schema: z85.undefined(),
5001
+ schema: z86.undefined(),
4886
5002
  contentType: "noContent" /* NoContent */,
4887
5003
  status: 200
4888
5004
  }).addError({
@@ -4899,7 +5015,7 @@ var PatternsService = class extends BaseService {
4899
5015
  */
4900
5016
  async analyzePatterns(body, requestConfig) {
4901
5017
  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("POST").setPath("/api/patterns/analyze").setRequestSchema(analyzePatternsRequestRequest).addAccessTokenAuth(this.config.token).setRequestContentType("json" /* Json */).addResponse({
4902
- schema: z85.undefined(),
5018
+ schema: z86.undefined(),
4903
5019
  contentType: "noContent" /* NoContent */,
4904
5020
  status: 200
4905
5021
  }).setRetryAttempts(this.config, requestConfig).setRetryDelayMs(this.config, requestConfig).setResponseValidation(this.config, requestConfig).addHeaderParam({ key: "Content-Type", value: "application/json" }).addBody(body).build();
@@ -4913,7 +5029,7 @@ var PatternsService = class extends BaseService {
4913
5029
  */
4914
5030
  async updatePattern(id, body, requestConfig) {
4915
5031
  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("PATCH").setPath("/api/patterns/{id}").setRequestSchema(updatePatternRequestRequest).addAccessTokenAuth(this.config.token).setRequestContentType("json" /* Json */).addResponse({
4916
- schema: z85.undefined(),
5032
+ schema: z86.undefined(),
4917
5033
  contentType: "noContent" /* NoContent */,
4918
5034
  status: 200
4919
5035
  }).setRetryAttempts(this.config, requestConfig).setRetryDelayMs(this.config, requestConfig).setResponseValidation(this.config, requestConfig).addPathParam({
@@ -4929,7 +5045,7 @@ var PatternsService = class extends BaseService {
4929
5045
  */
4930
5046
  async recordPatternFeedback(body, requestConfig) {
4931
5047
  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("POST").setPath("/api/patterns/feedback").setRequestSchema(recordPatternFeedbackRequestRequest).addAccessTokenAuth(this.config.token).setRequestContentType("json" /* Json */).addResponse({
4932
- schema: z85.undefined(),
5048
+ schema: z86.undefined(),
4933
5049
  contentType: "noContent" /* NoContent */,
4934
5050
  status: 200
4935
5051
  }).setRetryAttempts(this.config, requestConfig).setRetryDelayMs(this.config, requestConfig).setResponseValidation(this.config, requestConfig).addHeaderParam({ key: "Content-Type", value: "application/json" }).addBody(body).build();
@@ -4946,29 +5062,29 @@ var GroupBy = /* @__PURE__ */ ((GroupBy2) => {
4946
5062
  })(GroupBy || {});
4947
5063
 
4948
5064
  // src/services/behavior/behavior-service.ts
4949
- import { z as z87 } from "zod";
5065
+ import { z as z88 } from "zod";
4950
5066
 
4951
5067
  // src/services/behavior/models/update-behavioral-state-request.ts
4952
- import { z as z86 } from "zod";
4953
- var updateBehavioralStateRequest = z86.lazy(() => {
4954
- return z86.object({
4955
- state: z86.any().optional(),
4956
- mutations: z86.any().optional()
5068
+ import { z as z87 } from "zod";
5069
+ var updateBehavioralStateRequest = z87.lazy(() => {
5070
+ return z87.object({
5071
+ state: z87.any().optional(),
5072
+ mutations: z87.any().optional()
4957
5073
  });
4958
5074
  });
4959
- var updateBehavioralStateRequestResponse = z86.lazy(() => {
4960
- return z86.object({
4961
- state: z86.any().optional(),
4962
- mutations: z86.any().optional()
5075
+ var updateBehavioralStateRequestResponse = z87.lazy(() => {
5076
+ return z87.object({
5077
+ state: z87.any().optional(),
5078
+ mutations: z87.any().optional()
4963
5079
  }).transform((data) => ({
4964
5080
  state: data["state"],
4965
5081
  mutations: data["mutations"]
4966
5082
  }));
4967
5083
  });
4968
- var updateBehavioralStateRequestRequest = z86.lazy(() => {
4969
- return z86.object({
4970
- state: z86.any().optional(),
4971
- mutations: z86.any().optional()
5084
+ var updateBehavioralStateRequestRequest = z87.lazy(() => {
5085
+ return z87.object({
5086
+ state: z87.any().optional(),
5087
+ mutations: z87.any().optional()
4972
5088
  }).transform((data) => ({
4973
5089
  state: data["state"],
4974
5090
  mutations: data["mutations"]
@@ -4983,8 +5099,8 @@ var BehaviorService = class extends BaseService {
4983
5099
  * @returns {Promise<HttpResponse<any>>} - OK
4984
5100
  */
4985
5101
  async getBehavioralState(requestConfig) {
4986
- 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/patterns/behavior/state").setRequestSchema(z87.any()).addAccessTokenAuth(this.config.token).setRequestContentType("json" /* Json */).addResponse({
4987
- schema: z87.undefined(),
5102
+ 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/patterns/behavior/state").setRequestSchema(z88.any()).addAccessTokenAuth(this.config.token).setRequestContentType("json" /* Json */).addResponse({
5103
+ schema: z88.undefined(),
4988
5104
  contentType: "noContent" /* NoContent */,
4989
5105
  status: 200
4990
5106
  }).setRetryAttempts(this.config, requestConfig).setRetryDelayMs(this.config, requestConfig).setResponseValidation(this.config, requestConfig).build();
@@ -4997,7 +5113,7 @@ var BehaviorService = class extends BaseService {
4997
5113
  */
4998
5114
  async updateBehavioralState(body, requestConfig) {
4999
5115
  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("POST").setPath("/api/patterns/behavior/state").setRequestSchema(updateBehavioralStateRequestRequest).addAccessTokenAuth(this.config.token).setRequestContentType("json" /* Json */).addResponse({
5000
- schema: z87.undefined(),
5116
+ schema: z88.undefined(),
5001
5117
  contentType: "noContent" /* NoContent */,
5002
5118
  status: 200
5003
5119
  }).setRetryAttempts(this.config, requestConfig).setRetryDelayMs(this.config, requestConfig).setResponseValidation(this.config, requestConfig).addHeaderParam({ key: "Content-Type", value: "application/json" }).addBody(body).build();
@@ -5006,36 +5122,36 @@ var BehaviorService = class extends BaseService {
5006
5122
  };
5007
5123
 
5008
5124
  // src/services/topics/topics-service.ts
5009
- import { z as z99 } from "zod";
5125
+ import { z as z100 } from "zod";
5010
5126
 
5011
5127
  // src/services/topics/models/list-topics-ok-response.ts
5012
- import { z as z89 } from "zod";
5128
+ import { z as z90 } from "zod";
5013
5129
 
5014
5130
  // src/services/topics/models/list-topics-ok-response-pagination.ts
5015
- import { z as z88 } from "zod";
5016
- var listTopicsOkResponsePagination = z88.lazy(() => {
5017
- return z88.object({
5018
- limit: z88.number().optional(),
5019
- offset: z88.number().optional(),
5020
- count: z88.number().optional()
5131
+ import { z as z89 } from "zod";
5132
+ var listTopicsOkResponsePagination = z89.lazy(() => {
5133
+ return z89.object({
5134
+ limit: z89.number().optional(),
5135
+ offset: z89.number().optional(),
5136
+ count: z89.number().optional()
5021
5137
  });
5022
5138
  });
5023
- var listTopicsOkResponsePaginationResponse = z88.lazy(() => {
5024
- return z88.object({
5025
- limit: z88.number().optional(),
5026
- offset: z88.number().optional(),
5027
- count: z88.number().optional()
5139
+ var listTopicsOkResponsePaginationResponse = z89.lazy(() => {
5140
+ return z89.object({
5141
+ limit: z89.number().optional(),
5142
+ offset: z89.number().optional(),
5143
+ count: z89.number().optional()
5028
5144
  }).transform((data) => ({
5029
5145
  limit: data["limit"],
5030
5146
  offset: data["offset"],
5031
5147
  count: data["count"]
5032
5148
  }));
5033
5149
  });
5034
- var listTopicsOkResponsePaginationRequest = z88.lazy(() => {
5035
- return z88.object({
5036
- limit: z88.number().optional(),
5037
- offset: z88.number().optional(),
5038
- count: z88.number().optional()
5150
+ var listTopicsOkResponsePaginationRequest = z89.lazy(() => {
5151
+ return z89.object({
5152
+ limit: z89.number().optional(),
5153
+ offset: z89.number().optional(),
5154
+ count: z89.number().optional()
5039
5155
  }).transform((data) => ({
5040
5156
  limit: data["limit"],
5041
5157
  offset: data["offset"],
@@ -5044,24 +5160,24 @@ var listTopicsOkResponsePaginationRequest = z88.lazy(() => {
5044
5160
  });
5045
5161
 
5046
5162
  // src/services/topics/models/list-topics-ok-response.ts
5047
- var listTopicsOkResponse = z89.lazy(() => {
5048
- return z89.object({
5049
- data: z89.array(topic).optional(),
5163
+ var listTopicsOkResponse = z90.lazy(() => {
5164
+ return z90.object({
5165
+ data: z90.array(topic).optional(),
5050
5166
  pagination: listTopicsOkResponsePagination.optional()
5051
5167
  });
5052
5168
  });
5053
- var listTopicsOkResponseResponse = z89.lazy(() => {
5054
- return z89.object({
5055
- data: z89.array(topicResponse).optional(),
5169
+ var listTopicsOkResponseResponse = z90.lazy(() => {
5170
+ return z90.object({
5171
+ data: z90.array(topicResponse).optional(),
5056
5172
  pagination: listTopicsOkResponsePaginationResponse.optional()
5057
5173
  }).transform((data) => ({
5058
5174
  data: data["data"],
5059
5175
  pagination: data["pagination"]
5060
5176
  }));
5061
5177
  });
5062
- var listTopicsOkResponseRequest = z89.lazy(() => {
5063
- return z89.object({
5064
- data: z89.array(topicRequest).optional(),
5178
+ var listTopicsOkResponseRequest = z90.lazy(() => {
5179
+ return z90.object({
5180
+ data: z90.array(topicRequest).optional(),
5065
5181
  pagination: listTopicsOkResponsePaginationRequest.optional()
5066
5182
  }).transform((data) => ({
5067
5183
  data: data["data"],
@@ -5070,21 +5186,21 @@ var listTopicsOkResponseRequest = z89.lazy(() => {
5070
5186
  });
5071
5187
 
5072
5188
  // src/services/topics/models/get-topic-by-id-ok-response.ts
5073
- import { z as z90 } from "zod";
5074
- var getTopicByIdOkResponse = z90.lazy(() => {
5075
- return z90.object({
5189
+ import { z as z91 } from "zod";
5190
+ var getTopicByIdOkResponse = z91.lazy(() => {
5191
+ return z91.object({
5076
5192
  data: topic.optional()
5077
5193
  });
5078
5194
  });
5079
- var getTopicByIdOkResponseResponse = z90.lazy(() => {
5080
- return z90.object({
5195
+ var getTopicByIdOkResponseResponse = z91.lazy(() => {
5196
+ return z91.object({
5081
5197
  data: topicResponse.optional()
5082
5198
  }).transform((data) => ({
5083
5199
  data: data["data"]
5084
5200
  }));
5085
5201
  });
5086
- var getTopicByIdOkResponseRequest = z90.lazy(() => {
5087
- return z90.object({
5202
+ var getTopicByIdOkResponseRequest = z91.lazy(() => {
5203
+ return z91.object({
5088
5204
  data: topicRequest.optional()
5089
5205
  }).transform((data) => ({
5090
5206
  data: data["data"]
@@ -5092,26 +5208,26 @@ var getTopicByIdOkResponseRequest = z90.lazy(() => {
5092
5208
  });
5093
5209
 
5094
5210
  // src/services/topics/models/merge-topics-request.ts
5095
- import { z as z91 } from "zod";
5096
- var mergeTopicsRequest = z91.lazy(() => {
5097
- return z91.object({
5098
- sourceTopicId: z91.string(),
5099
- targetTopicId: z91.string()
5211
+ import { z as z92 } from "zod";
5212
+ var mergeTopicsRequest = z92.lazy(() => {
5213
+ return z92.object({
5214
+ sourceTopicId: z92.string(),
5215
+ targetTopicId: z92.string()
5100
5216
  });
5101
5217
  });
5102
- var mergeTopicsRequestResponse = z91.lazy(() => {
5103
- return z91.object({
5104
- sourceTopicId: z91.string(),
5105
- targetTopicId: z91.string()
5218
+ var mergeTopicsRequestResponse = z92.lazy(() => {
5219
+ return z92.object({
5220
+ sourceTopicId: z92.string(),
5221
+ targetTopicId: z92.string()
5106
5222
  }).transform((data) => ({
5107
5223
  sourceTopicId: data["sourceTopicId"],
5108
5224
  targetTopicId: data["targetTopicId"]
5109
5225
  }));
5110
5226
  });
5111
- var mergeTopicsRequestRequest = z91.lazy(() => {
5112
- return z91.object({
5113
- sourceTopicId: z91.string(),
5114
- targetTopicId: z91.string()
5227
+ var mergeTopicsRequestRequest = z92.lazy(() => {
5228
+ return z92.object({
5229
+ sourceTopicId: z92.string(),
5230
+ targetTopicId: z92.string()
5115
5231
  }).transform((data) => ({
5116
5232
  sourceTopicId: data["sourceTopicId"],
5117
5233
  targetTopicId: data["targetTopicId"]
@@ -5119,26 +5235,26 @@ var mergeTopicsRequestRequest = z91.lazy(() => {
5119
5235
  });
5120
5236
 
5121
5237
  // src/services/topics/models/discover-related-topics-request.ts
5122
- import { z as z92 } from "zod";
5123
- var discoverRelatedTopicsRequest = z92.lazy(() => {
5124
- return z92.object({
5125
- topicId: z92.string(),
5126
- limit: z92.number().optional()
5238
+ import { z as z93 } from "zod";
5239
+ var discoverRelatedTopicsRequest = z93.lazy(() => {
5240
+ return z93.object({
5241
+ topicId: z93.string(),
5242
+ limit: z93.number().optional()
5127
5243
  });
5128
5244
  });
5129
- var discoverRelatedTopicsRequestResponse = z92.lazy(() => {
5130
- return z92.object({
5131
- topicId: z92.string(),
5132
- limit: z92.number().optional()
5245
+ var discoverRelatedTopicsRequestResponse = z93.lazy(() => {
5246
+ return z93.object({
5247
+ topicId: z93.string(),
5248
+ limit: z93.number().optional()
5133
5249
  }).transform((data) => ({
5134
5250
  topicId: data["topicId"],
5135
5251
  limit: data["limit"]
5136
5252
  }));
5137
5253
  });
5138
- var discoverRelatedTopicsRequestRequest = z92.lazy(() => {
5139
- return z92.object({
5140
- topicId: z92.string(),
5141
- limit: z92.number().optional()
5254
+ var discoverRelatedTopicsRequestRequest = z93.lazy(() => {
5255
+ return z93.object({
5256
+ topicId: z93.string(),
5257
+ limit: z93.number().optional()
5142
5258
  }).transform((data) => ({
5143
5259
  topicId: data["topicId"],
5144
5260
  limit: data["limit"]
@@ -5146,26 +5262,26 @@ var discoverRelatedTopicsRequestRequest = z92.lazy(() => {
5146
5262
  });
5147
5263
 
5148
5264
  // src/services/topics/models/calculate-topic-similarity-request.ts
5149
- import { z as z93 } from "zod";
5150
- var calculateTopicSimilarityRequest = z93.lazy(() => {
5151
- return z93.object({
5152
- topicId1: z93.string(),
5153
- topicId2: z93.string()
5265
+ import { z as z94 } from "zod";
5266
+ var calculateTopicSimilarityRequest = z94.lazy(() => {
5267
+ return z94.object({
5268
+ topicId1: z94.string(),
5269
+ topicId2: z94.string()
5154
5270
  });
5155
5271
  });
5156
- var calculateTopicSimilarityRequestResponse = z93.lazy(() => {
5157
- return z93.object({
5158
- topicId1: z93.string(),
5159
- topicId2: z93.string()
5272
+ var calculateTopicSimilarityRequestResponse = z94.lazy(() => {
5273
+ return z94.object({
5274
+ topicId1: z94.string(),
5275
+ topicId2: z94.string()
5160
5276
  }).transform((data) => ({
5161
5277
  topicId1: data["topicId1"],
5162
5278
  topicId2: data["topicId2"]
5163
5279
  }));
5164
5280
  });
5165
- var calculateTopicSimilarityRequestRequest = z93.lazy(() => {
5166
- return z93.object({
5167
- topicId1: z93.string(),
5168
- topicId2: z93.string()
5281
+ var calculateTopicSimilarityRequestRequest = z94.lazy(() => {
5282
+ return z94.object({
5283
+ topicId1: z94.string(),
5284
+ topicId2: z94.string()
5169
5285
  }).transform((data) => ({
5170
5286
  topicId1: data["topicId1"],
5171
5287
  topicId2: data["topicId2"]
@@ -5173,30 +5289,30 @@ var calculateTopicSimilarityRequestRequest = z93.lazy(() => {
5173
5289
  });
5174
5290
 
5175
5291
  // src/services/topics/models/find-similar-topics-request.ts
5176
- import { z as z94 } from "zod";
5177
- var findSimilarTopicsRequest = z94.lazy(() => {
5178
- return z94.object({
5179
- topicId: z94.string(),
5180
- threshold: z94.number().optional(),
5181
- limit: z94.number().optional()
5292
+ import { z as z95 } from "zod";
5293
+ var findSimilarTopicsRequest = z95.lazy(() => {
5294
+ return z95.object({
5295
+ topicId: z95.string(),
5296
+ threshold: z95.number().optional(),
5297
+ limit: z95.number().optional()
5182
5298
  });
5183
5299
  });
5184
- var findSimilarTopicsRequestResponse = z94.lazy(() => {
5185
- return z94.object({
5186
- topicId: z94.string(),
5187
- threshold: z94.number().optional(),
5188
- limit: z94.number().optional()
5300
+ var findSimilarTopicsRequestResponse = z95.lazy(() => {
5301
+ return z95.object({
5302
+ topicId: z95.string(),
5303
+ threshold: z95.number().optional(),
5304
+ limit: z95.number().optional()
5189
5305
  }).transform((data) => ({
5190
5306
  topicId: data["topicId"],
5191
5307
  threshold: data["threshold"],
5192
5308
  limit: data["limit"]
5193
5309
  }));
5194
5310
  });
5195
- var findSimilarTopicsRequestRequest = z94.lazy(() => {
5196
- return z94.object({
5197
- topicId: z94.string(),
5198
- threshold: z94.number().optional(),
5199
- limit: z94.number().optional()
5311
+ var findSimilarTopicsRequestRequest = z95.lazy(() => {
5312
+ return z95.object({
5313
+ topicId: z95.string(),
5314
+ threshold: z95.number().optional(),
5315
+ limit: z95.number().optional()
5200
5316
  }).transform((data) => ({
5201
5317
  topicId: data["topicId"],
5202
5318
  threshold: data["threshold"],
@@ -5205,74 +5321,74 @@ var findSimilarTopicsRequestRequest = z94.lazy(() => {
5205
5321
  });
5206
5322
 
5207
5323
  // src/services/topics/models/cluster-topics-request.ts
5208
- import { z as z95 } from "zod";
5209
- var clusterTopicsRequest = z95.lazy(() => {
5210
- return z95.object({
5211
- minClusterSize: z95.number().optional()
5324
+ import { z as z96 } from "zod";
5325
+ var clusterTopicsRequest = z96.lazy(() => {
5326
+ return z96.object({
5327
+ minClusterSize: z96.number().optional()
5212
5328
  });
5213
5329
  });
5214
- var clusterTopicsRequestResponse = z95.lazy(() => {
5215
- return z95.object({
5216
- minClusterSize: z95.number().optional()
5330
+ var clusterTopicsRequestResponse = z96.lazy(() => {
5331
+ return z96.object({
5332
+ minClusterSize: z96.number().optional()
5217
5333
  }).transform((data) => ({
5218
5334
  minClusterSize: data["minClusterSize"]
5219
5335
  }));
5220
5336
  });
5221
- var clusterTopicsRequestRequest = z95.lazy(() => {
5222
- return z95.object({
5223
- minClusterSize: z95.number().optional()
5337
+ var clusterTopicsRequestRequest = z96.lazy(() => {
5338
+ return z96.object({
5339
+ minClusterSize: z96.number().optional()
5224
5340
  }).transform((data) => ({
5225
5341
  minClusterSize: data["minClusterSize"]
5226
5342
  }));
5227
5343
  });
5228
5344
 
5229
5345
  // src/services/topics/models/detect-communities-request.ts
5230
- import { z as z96 } from "zod";
5231
- var detectCommunitiesRequest = z96.lazy(() => {
5232
- return z96.object({
5233
- algorithm: z96.string().optional()
5346
+ import { z as z97 } from "zod";
5347
+ var detectCommunitiesRequest = z97.lazy(() => {
5348
+ return z97.object({
5349
+ algorithm: z97.string().optional()
5234
5350
  });
5235
5351
  });
5236
- var detectCommunitiesRequestResponse = z96.lazy(() => {
5237
- return z96.object({
5238
- algorithm: z96.string().optional()
5352
+ var detectCommunitiesRequestResponse = z97.lazy(() => {
5353
+ return z97.object({
5354
+ algorithm: z97.string().optional()
5239
5355
  }).transform((data) => ({
5240
5356
  algorithm: data["algorithm"]
5241
5357
  }));
5242
5358
  });
5243
- var detectCommunitiesRequestRequest = z96.lazy(() => {
5244
- return z96.object({
5245
- algorithm: z96.string().optional()
5359
+ var detectCommunitiesRequestRequest = z97.lazy(() => {
5360
+ return z97.object({
5361
+ algorithm: z97.string().optional()
5246
5362
  }).transform((data) => ({
5247
5363
  algorithm: data["algorithm"]
5248
5364
  }));
5249
5365
  });
5250
5366
 
5251
5367
  // src/services/topics/models/search-topics-request.ts
5252
- import { z as z97 } from "zod";
5253
- var searchTopicsRequest = z97.lazy(() => {
5254
- return z97.object({
5255
- query: z97.string(),
5256
- limit: z97.number().optional(),
5257
- offset: z97.number().optional()
5368
+ import { z as z98 } from "zod";
5369
+ var searchTopicsRequest = z98.lazy(() => {
5370
+ return z98.object({
5371
+ query: z98.string(),
5372
+ limit: z98.number().optional(),
5373
+ offset: z98.number().optional()
5258
5374
  });
5259
5375
  });
5260
- var searchTopicsRequestResponse = z97.lazy(() => {
5261
- return z97.object({
5262
- query: z97.string(),
5263
- limit: z97.number().optional(),
5264
- offset: z97.number().optional()
5376
+ var searchTopicsRequestResponse = z98.lazy(() => {
5377
+ return z98.object({
5378
+ query: z98.string(),
5379
+ limit: z98.number().optional(),
5380
+ offset: z98.number().optional()
5265
5381
  }).transform((data) => ({
5266
5382
  query: data["query"],
5267
5383
  limit: data["limit"],
5268
5384
  offset: data["offset"]
5269
5385
  }));
5270
5386
  });
5271
- var searchTopicsRequestRequest = z97.lazy(() => {
5272
- return z97.object({
5273
- query: z97.string(),
5274
- limit: z97.number().optional(),
5275
- offset: z97.number().optional()
5387
+ var searchTopicsRequestRequest = z98.lazy(() => {
5388
+ return z98.object({
5389
+ query: z98.string(),
5390
+ limit: z98.number().optional(),
5391
+ offset: z98.number().optional()
5276
5392
  }).transform((data) => ({
5277
5393
  query: data["query"],
5278
5394
  limit: data["limit"],
@@ -5281,21 +5397,21 @@ var searchTopicsRequestRequest = z97.lazy(() => {
5281
5397
  });
5282
5398
 
5283
5399
  // src/services/topics/models/search-topics-ok-response.ts
5284
- import { z as z98 } from "zod";
5285
- var searchTopicsOkResponse = z98.lazy(() => {
5286
- return z98.object({
5287
- data: z98.array(z98.any()).optional(),
5288
- total: z98.number().optional(),
5289
- limit: z98.number().optional(),
5290
- offset: z98.number().optional()
5400
+ import { z as z99 } from "zod";
5401
+ var searchTopicsOkResponse = z99.lazy(() => {
5402
+ return z99.object({
5403
+ data: z99.array(z99.any()).optional(),
5404
+ total: z99.number().optional(),
5405
+ limit: z99.number().optional(),
5406
+ offset: z99.number().optional()
5291
5407
  });
5292
5408
  });
5293
- var searchTopicsOkResponseResponse = z98.lazy(() => {
5294
- return z98.object({
5295
- data: z98.array(z98.any()).optional(),
5296
- total: z98.number().optional(),
5297
- limit: z98.number().optional(),
5298
- offset: z98.number().optional()
5409
+ var searchTopicsOkResponseResponse = z99.lazy(() => {
5410
+ return z99.object({
5411
+ data: z99.array(z99.any()).optional(),
5412
+ total: z99.number().optional(),
5413
+ limit: z99.number().optional(),
5414
+ offset: z99.number().optional()
5299
5415
  }).transform((data) => ({
5300
5416
  data: data["data"],
5301
5417
  total: data["total"],
@@ -5303,12 +5419,12 @@ var searchTopicsOkResponseResponse = z98.lazy(() => {
5303
5419
  offset: data["offset"]
5304
5420
  }));
5305
5421
  });
5306
- var searchTopicsOkResponseRequest = z98.lazy(() => {
5307
- return z98.object({
5308
- data: z98.array(z98.any()).optional(),
5309
- total: z98.number().optional(),
5310
- limit: z98.number().optional(),
5311
- offset: z98.number().optional()
5422
+ var searchTopicsOkResponseRequest = z99.lazy(() => {
5423
+ return z99.object({
5424
+ data: z99.array(z99.any()).optional(),
5425
+ total: z99.number().optional(),
5426
+ limit: z99.number().optional(),
5427
+ offset: z99.number().optional()
5312
5428
  }).transform((data) => ({
5313
5429
  data: data["data"],
5314
5430
  total: data["total"],
@@ -5327,7 +5443,7 @@ var TopicsService = class extends BaseService {
5327
5443
  * @returns {Promise<HttpResponse<ListTopicsOkResponse>>} - List of topics retrieved successfully
5328
5444
  */
5329
5445
  async listTopics(params, requestConfig) {
5330
- 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(z99.any()).addAccessTokenAuth(this.config.token).setRequestContentType("json" /* Json */).addResponse({
5446
+ 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(z100.any()).addAccessTokenAuth(this.config.token).setRequestContentType("json" /* Json */).addResponse({
5331
5447
  schema: listTopicsOkResponseResponse,
5332
5448
  contentType: "json" /* Json */,
5333
5449
  status: 200
@@ -5355,7 +5471,7 @@ var TopicsService = class extends BaseService {
5355
5471
  * @returns {Promise<HttpResponse<GetTopicByIdOkResponse>>} - Topic retrieved successfully
5356
5472
  */
5357
5473
  async getTopicById(id, requestConfig) {
5358
- 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(z99.any()).addAccessTokenAuth(this.config.token).setRequestContentType("json" /* Json */).addResponse({
5474
+ 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(z100.any()).addAccessTokenAuth(this.config.token).setRequestContentType("json" /* Json */).addResponse({
5359
5475
  schema: getTopicByIdOkResponseResponse,
5360
5476
  contentType: "json" /* Json */,
5361
5477
  status: 200
@@ -5384,7 +5500,7 @@ var TopicsService = class extends BaseService {
5384
5500
  */
5385
5501
  async mergeTopics(body, requestConfig) {
5386
5502
  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("POST").setPath("/api/topics/merge").setRequestSchema(mergeTopicsRequestRequest).addAccessTokenAuth(this.config.token).setRequestContentType("json" /* Json */).addResponse({
5387
- schema: z99.undefined(),
5503
+ schema: z100.undefined(),
5388
5504
  contentType: "noContent" /* NoContent */,
5389
5505
  status: 200
5390
5506
  }).setRetryAttempts(this.config, requestConfig).setRetryDelayMs(this.config, requestConfig).setResponseValidation(this.config, requestConfig).addHeaderParam({ key: "Content-Type", value: "application/json" }).addBody(body).build();
@@ -5397,7 +5513,7 @@ var TopicsService = class extends BaseService {
5397
5513
  */
5398
5514
  async discoverRelatedTopics(body, requestConfig) {
5399
5515
  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("POST").setPath("/api/topics/discover-related").setRequestSchema(discoverRelatedTopicsRequestRequest).addAccessTokenAuth(this.config.token).setRequestContentType("json" /* Json */).addResponse({
5400
- schema: z99.undefined(),
5516
+ schema: z100.undefined(),
5401
5517
  contentType: "noContent" /* NoContent */,
5402
5518
  status: 200
5403
5519
  }).setRetryAttempts(this.config, requestConfig).setRetryDelayMs(this.config, requestConfig).setResponseValidation(this.config, requestConfig).addHeaderParam({ key: "Content-Type", value: "application/json" }).addBody(body).build();
@@ -5410,7 +5526,7 @@ var TopicsService = class extends BaseService {
5410
5526
  */
5411
5527
  async calculateTopicSimilarity(body, requestConfig) {
5412
5528
  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("POST").setPath("/api/topics/similarity").setRequestSchema(calculateTopicSimilarityRequestRequest).addAccessTokenAuth(this.config.token).setRequestContentType("json" /* Json */).addResponse({
5413
- schema: z99.undefined(),
5529
+ schema: z100.undefined(),
5414
5530
  contentType: "noContent" /* NoContent */,
5415
5531
  status: 200
5416
5532
  }).setRetryAttempts(this.config, requestConfig).setRetryDelayMs(this.config, requestConfig).setResponseValidation(this.config, requestConfig).addHeaderParam({ key: "Content-Type", value: "application/json" }).addBody(body).build();
@@ -5423,7 +5539,7 @@ var TopicsService = class extends BaseService {
5423
5539
  */
5424
5540
  async findSimilarTopics(body, requestConfig) {
5425
5541
  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("POST").setPath("/api/topics/similar").setRequestSchema(findSimilarTopicsRequestRequest).addAccessTokenAuth(this.config.token).setRequestContentType("json" /* Json */).addResponse({
5426
- schema: z99.undefined(),
5542
+ schema: z100.undefined(),
5427
5543
  contentType: "noContent" /* NoContent */,
5428
5544
  status: 200
5429
5545
  }).setRetryAttempts(this.config, requestConfig).setRetryDelayMs(this.config, requestConfig).setResponseValidation(this.config, requestConfig).addHeaderParam({ key: "Content-Type", value: "application/json" }).addBody(body).build();
@@ -5436,7 +5552,7 @@ var TopicsService = class extends BaseService {
5436
5552
  */
5437
5553
  async clusterTopics(body, requestConfig) {
5438
5554
  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("POST").setPath("/api/topics/cluster").setRequestSchema(clusterTopicsRequestRequest).addAccessTokenAuth(this.config.token).setRequestContentType("json" /* Json */).addResponse({
5439
- schema: z99.undefined(),
5555
+ schema: z100.undefined(),
5440
5556
  contentType: "noContent" /* NoContent */,
5441
5557
  status: 200
5442
5558
  }).setRetryAttempts(this.config, requestConfig).setRetryDelayMs(this.config, requestConfig).setResponseValidation(this.config, requestConfig).addHeaderParam({ key: "Content-Type", value: "application/json" }).addBody(body).build();
@@ -5449,7 +5565,7 @@ var TopicsService = class extends BaseService {
5449
5565
  */
5450
5566
  async detectCommunities(body, requestConfig) {
5451
5567
  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("POST").setPath("/api/topics/detect-communities").setRequestSchema(detectCommunitiesRequestRequest).addAccessTokenAuth(this.config.token).setRequestContentType("json" /* Json */).addResponse({
5452
- schema: z99.undefined(),
5568
+ schema: z100.undefined(),
5453
5569
  contentType: "noContent" /* NoContent */,
5454
5570
  status: 200
5455
5571
  }).setRetryAttempts(this.config, requestConfig).setRetryDelayMs(this.config, requestConfig).setResponseValidation(this.config, requestConfig).addHeaderParam({ key: "Content-Type", value: "application/json" }).addBody(body).build();
@@ -5471,31 +5587,31 @@ var TopicsService = class extends BaseService {
5471
5587
  };
5472
5588
 
5473
5589
  // src/services/communities/communities-service.ts
5474
- import { z as z106 } from "zod";
5590
+ import { z as z107 } from "zod";
5475
5591
 
5476
5592
  // src/services/communities/models/list-communities-ok-response.ts
5477
- import { z as z102 } from "zod";
5593
+ import { z as z103 } from "zod";
5478
5594
 
5479
5595
  // src/services/communities/models/community.ts
5480
- import { z as z100 } from "zod";
5481
- var community = z100.lazy(() => {
5482
- return z100.object({
5483
- id: z100.string(),
5484
- name: z100.string(),
5485
- description: z100.string().optional().nullable(),
5486
- topicCount: z100.number().gte(0).optional(),
5487
- createdAt: z100.string(),
5488
- updatedAt: z100.string()
5596
+ import { z as z101 } from "zod";
5597
+ var community = z101.lazy(() => {
5598
+ return z101.object({
5599
+ id: z101.string(),
5600
+ name: z101.string(),
5601
+ description: z101.string().optional().nullable(),
5602
+ topicCount: z101.number().gte(0).optional(),
5603
+ createdAt: z101.string(),
5604
+ updatedAt: z101.string()
5489
5605
  });
5490
5606
  });
5491
- var communityResponse = z100.lazy(() => {
5492
- return z100.object({
5493
- id: z100.string(),
5494
- name: z100.string(),
5495
- description: z100.string().optional().nullable(),
5496
- topicCount: z100.number().gte(0).optional(),
5497
- createdAt: z100.string(),
5498
- updatedAt: z100.string()
5607
+ var communityResponse = z101.lazy(() => {
5608
+ return z101.object({
5609
+ id: z101.string(),
5610
+ name: z101.string(),
5611
+ description: z101.string().optional().nullable(),
5612
+ topicCount: z101.number().gte(0).optional(),
5613
+ createdAt: z101.string(),
5614
+ updatedAt: z101.string()
5499
5615
  }).transform((data) => ({
5500
5616
  id: data["id"],
5501
5617
  name: data["name"],
@@ -5505,14 +5621,14 @@ var communityResponse = z100.lazy(() => {
5505
5621
  updatedAt: data["updatedAt"]
5506
5622
  }));
5507
5623
  });
5508
- var communityRequest = z100.lazy(() => {
5509
- return z100.object({
5510
- id: z100.string(),
5511
- name: z100.string(),
5512
- description: z100.string().optional().nullable(),
5513
- topicCount: z100.number().gte(0).optional(),
5514
- createdAt: z100.string(),
5515
- updatedAt: z100.string()
5624
+ var communityRequest = z101.lazy(() => {
5625
+ return z101.object({
5626
+ id: z101.string(),
5627
+ name: z101.string(),
5628
+ description: z101.string().optional().nullable(),
5629
+ topicCount: z101.number().gte(0).optional(),
5630
+ createdAt: z101.string(),
5631
+ updatedAt: z101.string()
5516
5632
  }).transform((data) => ({
5517
5633
  id: data["id"],
5518
5634
  name: data["name"],
@@ -5524,30 +5640,30 @@ var communityRequest = z100.lazy(() => {
5524
5640
  });
5525
5641
 
5526
5642
  // src/services/communities/models/list-communities-ok-response-pagination.ts
5527
- import { z as z101 } from "zod";
5528
- var listCommunitiesOkResponsePagination = z101.lazy(() => {
5529
- return z101.object({
5530
- limit: z101.number().optional(),
5531
- offset: z101.number().optional(),
5532
- count: z101.number().optional()
5643
+ import { z as z102 } from "zod";
5644
+ var listCommunitiesOkResponsePagination = z102.lazy(() => {
5645
+ return z102.object({
5646
+ limit: z102.number().optional(),
5647
+ offset: z102.number().optional(),
5648
+ count: z102.number().optional()
5533
5649
  });
5534
5650
  });
5535
- var listCommunitiesOkResponsePaginationResponse = z101.lazy(() => {
5536
- return z101.object({
5537
- limit: z101.number().optional(),
5538
- offset: z101.number().optional(),
5539
- count: z101.number().optional()
5651
+ var listCommunitiesOkResponsePaginationResponse = z102.lazy(() => {
5652
+ return z102.object({
5653
+ limit: z102.number().optional(),
5654
+ offset: z102.number().optional(),
5655
+ count: z102.number().optional()
5540
5656
  }).transform((data) => ({
5541
5657
  limit: data["limit"],
5542
5658
  offset: data["offset"],
5543
5659
  count: data["count"]
5544
5660
  }));
5545
5661
  });
5546
- var listCommunitiesOkResponsePaginationRequest = z101.lazy(() => {
5547
- return z101.object({
5548
- limit: z101.number().optional(),
5549
- offset: z101.number().optional(),
5550
- count: z101.number().optional()
5662
+ var listCommunitiesOkResponsePaginationRequest = z102.lazy(() => {
5663
+ return z102.object({
5664
+ limit: z102.number().optional(),
5665
+ offset: z102.number().optional(),
5666
+ count: z102.number().optional()
5551
5667
  }).transform((data) => ({
5552
5668
  limit: data["limit"],
5553
5669
  offset: data["offset"],
@@ -5556,24 +5672,24 @@ var listCommunitiesOkResponsePaginationRequest = z101.lazy(() => {
5556
5672
  });
5557
5673
 
5558
5674
  // src/services/communities/models/list-communities-ok-response.ts
5559
- var listCommunitiesOkResponse = z102.lazy(() => {
5560
- return z102.object({
5561
- data: z102.array(community).optional(),
5675
+ var listCommunitiesOkResponse = z103.lazy(() => {
5676
+ return z103.object({
5677
+ data: z103.array(community).optional(),
5562
5678
  pagination: listCommunitiesOkResponsePagination.optional()
5563
5679
  });
5564
5680
  });
5565
- var listCommunitiesOkResponseResponse = z102.lazy(() => {
5566
- return z102.object({
5567
- data: z102.array(communityResponse).optional(),
5681
+ var listCommunitiesOkResponseResponse = z103.lazy(() => {
5682
+ return z103.object({
5683
+ data: z103.array(communityResponse).optional(),
5568
5684
  pagination: listCommunitiesOkResponsePaginationResponse.optional()
5569
5685
  }).transform((data) => ({
5570
5686
  data: data["data"],
5571
5687
  pagination: data["pagination"]
5572
5688
  }));
5573
5689
  });
5574
- var listCommunitiesOkResponseRequest = z102.lazy(() => {
5575
- return z102.object({
5576
- data: z102.array(communityRequest).optional(),
5690
+ var listCommunitiesOkResponseRequest = z103.lazy(() => {
5691
+ return z103.object({
5692
+ data: z103.array(communityRequest).optional(),
5577
5693
  pagination: listCommunitiesOkResponsePaginationRequest.optional()
5578
5694
  }).transform((data) => ({
5579
5695
  data: data["data"],
@@ -5582,21 +5698,21 @@ var listCommunitiesOkResponseRequest = z102.lazy(() => {
5582
5698
  });
5583
5699
 
5584
5700
  // src/services/communities/models/get-community-by-id-ok-response.ts
5585
- import { z as z103 } from "zod";
5586
- var getCommunityByIdOkResponse = z103.lazy(() => {
5587
- return z103.object({
5701
+ import { z as z104 } from "zod";
5702
+ var getCommunityByIdOkResponse = z104.lazy(() => {
5703
+ return z104.object({
5588
5704
  data: community.optional()
5589
5705
  });
5590
5706
  });
5591
- var getCommunityByIdOkResponseResponse = z103.lazy(() => {
5592
- return z103.object({
5707
+ var getCommunityByIdOkResponseResponse = z104.lazy(() => {
5708
+ return z104.object({
5593
5709
  data: communityResponse.optional()
5594
5710
  }).transform((data) => ({
5595
5711
  data: data["data"]
5596
5712
  }));
5597
5713
  });
5598
- var getCommunityByIdOkResponseRequest = z103.lazy(() => {
5599
- return z103.object({
5714
+ var getCommunityByIdOkResponseRequest = z104.lazy(() => {
5715
+ return z104.object({
5600
5716
  data: communityRequest.optional()
5601
5717
  }).transform((data) => ({
5602
5718
  data: data["data"]
@@ -5604,26 +5720,26 @@ var getCommunityByIdOkResponseRequest = z103.lazy(() => {
5604
5720
  });
5605
5721
 
5606
5722
  // src/services/communities/models/merge-communities-request.ts
5607
- import { z as z104 } from "zod";
5608
- var mergeCommunitiesRequest = z104.lazy(() => {
5609
- return z104.object({
5610
- sourceCommunityId: z104.string().min(1),
5611
- targetCommunityId: z104.string().min(1)
5723
+ import { z as z105 } from "zod";
5724
+ var mergeCommunitiesRequest = z105.lazy(() => {
5725
+ return z105.object({
5726
+ sourceCommunityId: z105.string().min(1),
5727
+ targetCommunityId: z105.string().min(1)
5612
5728
  });
5613
5729
  });
5614
- var mergeCommunitiesRequestResponse = z104.lazy(() => {
5615
- return z104.object({
5616
- sourceCommunityId: z104.string().min(1),
5617
- targetCommunityId: z104.string().min(1)
5730
+ var mergeCommunitiesRequestResponse = z105.lazy(() => {
5731
+ return z105.object({
5732
+ sourceCommunityId: z105.string().min(1),
5733
+ targetCommunityId: z105.string().min(1)
5618
5734
  }).transform((data) => ({
5619
5735
  sourceCommunityId: data["sourceCommunityId"],
5620
5736
  targetCommunityId: data["targetCommunityId"]
5621
5737
  }));
5622
5738
  });
5623
- var mergeCommunitiesRequestRequest = z104.lazy(() => {
5624
- return z104.object({
5625
- sourceCommunityId: z104.string().min(1),
5626
- targetCommunityId: z104.string().min(1)
5739
+ var mergeCommunitiesRequestRequest = z105.lazy(() => {
5740
+ return z105.object({
5741
+ sourceCommunityId: z105.string().min(1),
5742
+ targetCommunityId: z105.string().min(1)
5627
5743
  }).transform((data) => ({
5628
5744
  sourceCommunityId: data["sourceCommunityId"],
5629
5745
  targetCommunityId: data["targetCommunityId"]
@@ -5631,21 +5747,21 @@ var mergeCommunitiesRequestRequest = z104.lazy(() => {
5631
5747
  });
5632
5748
 
5633
5749
  // src/services/communities/models/merge-communities-ok-response.ts
5634
- import { z as z105 } from "zod";
5635
- var mergeCommunitiesOkResponse = z105.lazy(() => {
5636
- return z105.object({
5750
+ import { z as z106 } from "zod";
5751
+ var mergeCommunitiesOkResponse = z106.lazy(() => {
5752
+ return z106.object({
5637
5753
  data: community.optional()
5638
5754
  });
5639
5755
  });
5640
- var mergeCommunitiesOkResponseResponse = z105.lazy(() => {
5641
- return z105.object({
5756
+ var mergeCommunitiesOkResponseResponse = z106.lazy(() => {
5757
+ return z106.object({
5642
5758
  data: communityResponse.optional()
5643
5759
  }).transform((data) => ({
5644
5760
  data: data["data"]
5645
5761
  }));
5646
5762
  });
5647
- var mergeCommunitiesOkResponseRequest = z105.lazy(() => {
5648
- return z105.object({
5763
+ var mergeCommunitiesOkResponseRequest = z106.lazy(() => {
5764
+ return z106.object({
5649
5765
  data: communityRequest.optional()
5650
5766
  }).transform((data) => ({
5651
5767
  data: data["data"]
@@ -5662,7 +5778,7 @@ var CommunitiesService = class extends BaseService {
5662
5778
  * @returns {Promise<HttpResponse<ListCommunitiesOkResponse>>} - OK
5663
5779
  */
5664
5780
  async listCommunities(params, requestConfig) {
5665
- 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(z106.any()).addAccessTokenAuth(this.config.token).setRequestContentType("json" /* Json */).addResponse({
5781
+ 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(z107.any()).addAccessTokenAuth(this.config.token).setRequestContentType("json" /* Json */).addResponse({
5666
5782
  schema: listCommunitiesOkResponseResponse,
5667
5783
  contentType: "json" /* Json */,
5668
5784
  status: 200
@@ -5682,7 +5798,7 @@ var CommunitiesService = class extends BaseService {
5682
5798
  * @returns {Promise<HttpResponse<GetCommunityByIdOkResponse>>} - OK
5683
5799
  */
5684
5800
  async getCommunityById(id, requestConfig) {
5685
- 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(z106.any()).addAccessTokenAuth(this.config.token).setRequestContentType("json" /* Json */).addResponse({
5801
+ 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(z107.any()).addAccessTokenAuth(this.config.token).setRequestContentType("json" /* Json */).addResponse({
5686
5802
  schema: getCommunityByIdOkResponseResponse,
5687
5803
  contentType: "json" /* Json */,
5688
5804
  status: 200
@@ -5802,6 +5918,7 @@ export {
5802
5918
  NoCache,
5803
5919
  PatternsService,
5804
5920
  Role,
5921
+ SearchMethod,
5805
5922
  ServiceCheckStatus,
5806
5923
  SystemService,
5807
5924
  TemporalMode,