memax-sdk 0.8.0-alpha.353 → 0.8.0-alpha.356

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.
@@ -3442,8 +3442,16 @@ export interface components {
3442
3442
  * creates or switches a space), personal_exists (each person has one
3443
3443
  * personal space, made with their account), space_kind (only project
3444
3444
  * spaces are created here; team spaces come with Team), space_limit
3445
- * (the most project spaces one person owns during the alpha),
3445
+ * (the person owns as many project spaces as their plan has, or the
3446
+ * most one person owns on any plan; `limit` says which),
3446
3447
  * switch_by_owner (only the owner switches a space).
3448
+ * Plan limits, only when enforced, each with `limit`: space_limit and
3449
+ * ask_limit as above, agent_kind_limit (the person has connected as
3450
+ * many kinds of agent as their plan has; another machine or key for a
3451
+ * kind they have isn't a new one), seat_needed (refused, or sent to
3452
+ * Review: on a plan that doesn't bill seats, Free and Pro, only the
3453
+ * owner keeps, and a member acts as a viewer does), dream_cadence (Dream
3454
+ * has run now as often as the space's plan allows this week or day).
3447
3455
  * Refused device codes: device_by_person (only a person signs a device
3448
3456
  * in), device_needs_web (confirming or declining a code needs a person
3449
3457
  * on the web app). Refused sessions: session_by_person (only a person
@@ -3462,7 +3470,7 @@ export interface components {
3462
3470
  * needs a sign-in in the last few minutes, or your passkey).
3463
3471
  * @enum {string}
3464
3472
  */
3465
- PolicyCode: "unknown_actor" | "unknown_action" | "secret_detected" | "not_member" | "read_only" | "key_read_only" | "key_cannot_review" | "key_cannot_forget" | "person_must_review" | "person_must_forget" | "forget_not_allowed" | "external_needs_review" | "proposal_in_review" | "agent_not_connected" | "agent_paused" | "person_must_manage" | "not_your_agent" | "autonomy_not_allowed" | "key_max_propose" | "autonomy_needs_web" | "cloud_propose_needs_web" | "brief_by_person" | "targets_by_person" | "compile_by_memax" | "judge_by_memax" | "undo_by_decider" | "space_on_v1" | "gate_by_agent" | "person_must_answer" | "gate_limit" | "not_your_gate" | "forget_by_person" | "ask_by_person" | "ask_limit" | "export_by_person" | "verify_by_person" | "checks_by_person" | "flag_by_memax" | "viewer" | "owners_keep" | "decision_needs_web" | "api_key" | "external_source" | "contradicts_decision" | "touches_decision" | "edits_person_kept" | "autonomy_propose" | "integration" | "import" | "system_proposes" | "repository" | "person_proposed" | "judge_pending" | "confirm_in_agent" | "space_by_person" | "personal_exists" | "space_kind" | "space_limit" | "switch_by_owner" | "dream_by_dream" | "dream_run_by_owner" | "device_by_person" | "device_needs_web" | "session_by_person" | "session_needs_web" | "machines_by_person" | "machines_personal" | "machines_by_owner" | "needs_passkey" | "account_by_person" | "account_needs_web" | "needs_sign_in";
3473
+ PolicyCode: "unknown_actor" | "unknown_action" | "secret_detected" | "not_member" | "read_only" | "key_read_only" | "key_cannot_review" | "key_cannot_forget" | "person_must_review" | "person_must_forget" | "forget_not_allowed" | "external_needs_review" | "proposal_in_review" | "agent_not_connected" | "agent_paused" | "person_must_manage" | "not_your_agent" | "autonomy_not_allowed" | "key_max_propose" | "autonomy_needs_web" | "cloud_propose_needs_web" | "brief_by_person" | "targets_by_person" | "compile_by_memax" | "judge_by_memax" | "undo_by_decider" | "space_on_v1" | "gate_by_agent" | "person_must_answer" | "gate_limit" | "not_your_gate" | "forget_by_person" | "ask_by_person" | "ask_limit" | "export_by_person" | "verify_by_person" | "checks_by_person" | "flag_by_memax" | "viewer" | "owners_keep" | "decision_needs_web" | "api_key" | "external_source" | "contradicts_decision" | "touches_decision" | "edits_person_kept" | "autonomy_propose" | "integration" | "import" | "system_proposes" | "repository" | "person_proposed" | "judge_pending" | "confirm_in_agent" | "space_by_person" | "personal_exists" | "space_kind" | "space_limit" | "switch_by_owner" | "agent_kind_limit" | "seat_needed" | "dream_cadence" | "dream_by_dream" | "dream_run_by_owner" | "device_by_person" | "device_needs_web" | "session_by_person" | "session_needs_web" | "machines_by_person" | "machines_personal" | "machines_by_owner" | "needs_passkey" | "account_by_person" | "account_needs_web" | "needs_sign_in";
3466
3474
  /** @enum {string} */
3467
3475
  ErrorCode: "invalid_request" | "idempotency_key_required" | "space_required" | "ambiguous_ref" | "unauthorized" | "refused" | "permission_denied" | "impersonation_read_only" | "surface_unverified" | "not_found" | "method_not_allowed" | "invalid_transition" | "in_conflict" | "undo_refused" | "edit_clash" | "idempotency_key_reused" | "precondition_required" | "rate_limited" | "internal_error" | "busy" | "judge_pending" | "unavailable" | "forget_carries" | "slug_taken" | "space_kind" | "needs_passkey" | "passkey_invalid";
3468
3476
  /**
@@ -3848,7 +3856,25 @@ export interface components {
3848
3856
  * @enum {string}
3849
3857
  */
3850
3858
  suggest?: "passkey";
3859
+ limit?: components["schemas"]["PlanLimit"];
3851
3860
  };
3861
+ /**
3862
+ * @description The plan limit a decision met (D9), for the plan-limit dialog: the
3863
+ * plan the limit is the person's or the space's, how much it allows
3864
+ * and how much is used (absent for seats), and the plan that lifts it
3865
+ * (absent when none does). Only when plan limits are enforced.
3866
+ */
3867
+ PlanLimit: {
3868
+ plan: components["schemas"]["PlanTier"];
3869
+ allowed?: number;
3870
+ used?: number;
3871
+ upgrade?: components["schemas"]["PlanTier"];
3872
+ };
3873
+ /**
3874
+ * @description A V2 plan (D9).
3875
+ * @enum {string}
3876
+ */
3877
+ PlanTier: "free" | "pro" | "team" | "enterprise";
3852
3878
  CommandResult: {
3853
3879
  outcome: components["schemas"]["Outcome"];
3854
3880
  policy: components["schemas"]["PolicyDecision"];
@@ -4122,6 +4148,12 @@ export interface components {
4122
4148
  next_cursor?: components["schemas"]["Cursor"];
4123
4149
  /** @description The space's reads in the last 7 days. */
4124
4150
  reads_7d: number;
4151
+ /**
4152
+ * @description How far back the space's plan lists reads, in days (D9: Free 30,
4153
+ * Pro 90, Team a year), when plan limits are enforced; absent, they
4154
+ * go as far back as they are kept. Older ones are kept, not listed.
4155
+ */
4156
+ retention_days?: number;
4125
4157
  };
4126
4158
  CompileLoadRequest: {
4127
4159
  /** @description The compile run the agent loaded, by display ID (C-0012) or id, from the compiled file's header. */
@@ -4750,6 +4782,12 @@ export interface components {
4750
4782
  items: components["schemas"]["CompileRun"][];
4751
4783
  has_more: boolean;
4752
4784
  next_cursor?: components["schemas"]["Cursor"];
4785
+ /**
4786
+ * @description How far back the space's plan lists compile runs, in days (D9: Free 30,
4787
+ * Pro 90, Team a year), when plan limits are enforced; absent, they
4788
+ * go as far back as they are kept. Older ones are kept, not listed.
4789
+ */
4790
+ retention_days?: number;
4753
4791
  };
4754
4792
  /**
4755
4793
  * @description One change the compiler read back from a hand edit: `edit` (a cited