@memnexus-ai/typescript-sdk 1.65.6 → 1.66.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
@@ -634,8 +634,17 @@ var UsersService = class extends BaseService {
634
634
  * Called by the customer portal after WorkOS authentication.
635
635
  Creates a new user if they don't exist, or updates their profile if they do.
636
636
  This is the main entry point for user provisioning.
637
- When the invite gate is closed and a new user is created, the inviteCode
638
- is redeemed atomically to track which code was used for registration.
637
+
638
+ Signup does not require an invite code. `inviteCode` is optional and
639
+ legacy: when a valid code is supplied on a newly created account it is
640
+ redeemed for attribution only, and an invalid or unknown code never
641
+ blocks account creation.
642
+
643
+ Account creation is rate limited per client IP. Re-syncing an
644
+ existing user does not consume that budget, so ordinary traffic is
645
+ unaffected; once an IP has exhausted its hourly creation budget,
646
+ further requests from it are refused uniformly until the window
647
+ rolls over.
639
648
 
640
649
  * @param body - Request body
641
650
  */
@@ -4140,10 +4149,12 @@ var MemoriesService = class extends BaseService {
4140
4149
  var InvitesService = class extends BaseService {
4141
4150
  /**
4142
4151
  * Check invite gate status
4143
- * Check whether the invite gate is currently open or closed.
4144
- When gated is true, new signups require a valid invite code.
4145
- Response is cached server-side (30-second TTL).
4152
+ * DEPRECATED (v4.02 / OP-1). Reports whether the invite gate flag is set.
4153
+ The API no longer requires an invite code for signup, so this flag now
4154
+ only drives the customer portal's legacy gate UI. Response is cached
4155
+ server-side (30-second TTL).
4146
4156
 
4157
+ * @deprecated
4147
4158
  */
4148
4159
  async getGateStatus() {
4149
4160
  const request = new Request({
@@ -4163,10 +4174,13 @@ var InvitesService = class extends BaseService {
4163
4174
  }
4164
4175
  /**
4165
4176
  * Validate an invite code
4166
- * Validate an invite code without redeeming it.
4177
+ * DEPRECATED (v4.02 / OP-1). Validate an invite code without redeeming it.
4178
+ Signup no longer requires an invite code; this endpoint remains for the
4179
+ customer portal's legacy gate UI.
4167
4180
  Rate limited to 10 requests per minute per IP to prevent enumeration.
4168
4181
  Error messages are intentionally generic.
4169
4182
 
4183
+ * @deprecated
4170
4184
  * @param body - Request body
4171
4185
  */
4172
4186
  async validateInviteCode(body) {
@@ -7388,6 +7402,7 @@ var user = import_zod.z.object({
7388
7402
  memoryLimit: import_zod.z.number(),
7389
7403
  retentionDays: import_zod.z.number().nullable(),
7390
7404
  isTestUser: import_zod.z.boolean(),
7405
+ /** DEPRECATED (v4.02 / OP-1). Legacy gated-preview cohort flag, set only when an account was created with an invite code. Signup no longer requires an invite code, so accounts created after the open-preview flip are false. Do not use for cohort logic in new integrations. */
7391
7406
  isPreviewUser: import_zod.z.boolean(),
7392
7407
  isInternalUser: import_zod.z.boolean(),
7393
7408
  deletionStatus: import_zod.z.enum(["none", "pending_deletion", "deleting", "deleted", "deletion_failed"]),
@@ -7862,7 +7877,7 @@ var Memnexus = class {
7862
7877
  monitoring;
7863
7878
  /** Memory management and retrieval endpoints operations */
7864
7879
  memories;
7865
- /** Invite code validation and gate status endpoints operations */
7880
+ /** DEPRECATED (v4.02 / OP-1) — invite code validation and gate status endpoints. Signup no longer requires an invite code; these endpoints remain only for the customer portal's legacy gate UI and are not part of the supported public surface. operations */
7866
7881
  invites;
7867
7882
  /** Health check endpoints operations */
7868
7883
  health;