@memnexus-ai/typescript-sdk 1.7.3 → 1.9.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +7 -0
- package/dist/index.js +29 -0
- package/dist/index.mjs +29 -0
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1923,6 +1923,13 @@ declare class ConversationsService extends BaseService {
|
|
|
1923
1923
|
* @returns {Promise<HttpResponse<GetConversationSummaryOkResponse>>} - Conversation retrieved successfully
|
|
1924
1924
|
*/
|
|
1925
1925
|
getConversationSummary(conversationId: string, requestConfig?: RequestConfig): Promise<HttpResponse<GetConversationSummaryOkResponse>>;
|
|
1926
|
+
/**
|
|
1927
|
+
* Delete a conversation and soft-delete all associated memories
|
|
1928
|
+
* @param {string} conversationId - The conversation ID
|
|
1929
|
+
* @param {RequestConfig} [requestConfig] - The request configuration for retry and validation.
|
|
1930
|
+
* @returns {Promise<HttpResponse<any>>} - Conversation deleted successfully
|
|
1931
|
+
*/
|
|
1932
|
+
deleteConversation(conversationId: string, requestConfig?: RequestConfig): Promise<HttpResponse<void>>;
|
|
1926
1933
|
/**
|
|
1927
1934
|
* Get all memories in a conversation in chronological order
|
|
1928
1935
|
* @param {string} conversationId - The conversation ID
|
package/dist/index.js
CHANGED
|
@@ -3150,6 +3150,35 @@ var ConversationsService = class extends BaseService {
|
|
|
3150
3150
|
}).build();
|
|
3151
3151
|
return this.client.call(request);
|
|
3152
3152
|
}
|
|
3153
|
+
/**
|
|
3154
|
+
* Delete a conversation and soft-delete all associated memories
|
|
3155
|
+
* @param {string} conversationId - The conversation ID
|
|
3156
|
+
* @param {RequestConfig} [requestConfig] - The request configuration for retry and validation.
|
|
3157
|
+
* @returns {Promise<HttpResponse<any>>} - Conversation deleted successfully
|
|
3158
|
+
*/
|
|
3159
|
+
async deleteConversation(conversationId, requestConfig) {
|
|
3160
|
+
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(import_zod34.z.any()).addAccessTokenAuth(this.config.token).setRequestContentType("json" /* Json */).addResponse({
|
|
3161
|
+
schema: import_zod34.z.undefined(),
|
|
3162
|
+
contentType: "noContent" /* NoContent */,
|
|
3163
|
+
status: 204
|
|
3164
|
+
}).addError({
|
|
3165
|
+
error: Error2,
|
|
3166
|
+
contentType: "json" /* Json */,
|
|
3167
|
+
status: 401
|
|
3168
|
+
}).addError({
|
|
3169
|
+
error: Error2,
|
|
3170
|
+
contentType: "json" /* Json */,
|
|
3171
|
+
status: 404
|
|
3172
|
+
}).addError({
|
|
3173
|
+
error: Error2,
|
|
3174
|
+
contentType: "json" /* Json */,
|
|
3175
|
+
status: 500
|
|
3176
|
+
}).setRetryAttempts(this.config, requestConfig).setRetryDelayMs(this.config, requestConfig).setResponseValidation(this.config, requestConfig).addPathParam({
|
|
3177
|
+
key: "conversationId",
|
|
3178
|
+
value: conversationId
|
|
3179
|
+
}).build();
|
|
3180
|
+
return this.client.call(request);
|
|
3181
|
+
}
|
|
3153
3182
|
/**
|
|
3154
3183
|
* Get all memories in a conversation in chronological order
|
|
3155
3184
|
* @param {string} conversationId - The conversation ID
|
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
|
package/package.json
CHANGED