@memnexus-ai/typescript-sdk 1.28.0 → 1.29.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.cjs CHANGED
@@ -1792,6 +1792,7 @@ var HealthService = class extends BaseService {
1792
1792
  * Returns the health status and uptime of the API service.
1793
1793
  This endpoint is public and requires no authentication.
1794
1794
  Use this endpoint for monitoring, health checks, and service availability verification.
1795
+ Returns 200 when healthy, 503 when the database is unreachable.
1795
1796
 
1796
1797
  */
1797
1798
  async healthCheck() {
@@ -4155,6 +4156,30 @@ var UsersService = class extends BaseService {
4155
4156
  });
4156
4157
  return this.client.call(request);
4157
4158
  }
4159
+ /**
4160
+ * Export all user data
4161
+ * Export all user data as a JSON archive. Includes profile, memories,
4162
+ conversations, facts, and patterns. Supports GDPR Article 20
4163
+ (right to data portability). Sensitive fields (Stripe customer ID,
4164
+ WorkOS ID, embeddings) are excluded.
4165
+
4166
+ */
4167
+ async exportUserData() {
4168
+ const request = new Request({
4169
+ baseUrl: this.config.baseUrl || "http://localhost:3000",
4170
+ method: "GET",
4171
+ path: "/api/users/me/export",
4172
+ config: this.config,
4173
+ retry: {
4174
+ attempts: 3,
4175
+ delayMs: 150,
4176
+ maxDelayMs: 5e3,
4177
+ jitterMs: 50,
4178
+ backoffFactor: 2
4179
+ }
4180
+ });
4181
+ return this.client.call(request);
4182
+ }
4158
4183
  /**
4159
4184
  * Get user by ID
4160
4185
  * Get a user by their internal ID (admin only)