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