@vibexp/api-client 0.49.0 → 0.50.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.
@@ -858,9 +858,6 @@ export declare const listTeams: <ThrowOnError extends boolean = false>(options?:
858
858
  * default "Project 1" project inside it so resources created immediately
859
859
  * afterwards are correctly scoped.
860
860
  *
861
- * Team creation is subject to the plan's team resource limit; exceeding it
862
- * returns `403` with code `RESOURCE_LIMIT_EXCEEDED`.
863
- *
864
861
  */
865
862
  export declare const createTeam: <ThrowOnError extends boolean = false>(options: Options<CreateTeamData, ThrowOnError>) => RequestResult<CreateTeamResponses, CreateTeamErrors, ThrowOnError>;
866
863
  /**
@@ -871,8 +868,6 @@ export declare const createTeam: <ThrowOnError extends boolean = false>(options:
871
868
  *
872
869
  * Deletion conflicts return `409` with RFC 9457 problem details carrying an
873
870
  * UPPERCASE `code` and string-valued `metadata`:
874
- * - `ACTIVE_SUBSCRIPTION_EXISTS` — the team still has an active subscription
875
- * - `SUBSCRIPTION_CANCELING` — the subscription is scheduled to cancel; retry after `metadata.cancel_at`
876
871
  * - `TEAM_HAS_MEMBERS` — remove all members first (`metadata.member_count`)
877
872
  *
878
873
  */
@@ -945,15 +940,8 @@ export declare const listTeamInvitations: <ThrowOnError extends boolean = false>
945
940
  * Send team invitations
946
941
  *
947
942
  * Sends invitations to join the team to up to 50 email addresses with the given
948
- * role. Requires an eligible team (not a personal workspace), an active team
949
- * subscription, and enough available seats.
950
- *
951
- * Limit failures return `403` with code `RESOURCE_LIMIT_EXCEEDED` and a
952
- * `metadata` object: for missing subscriptions it carries `team_id`, `feature`
953
- * and `upgrade_url`; for seat limits it carries `team_id` plus seat accounting fields
954
- * (`total_seats`, `occupied_seats`, `current_members`, `pending_invitations`,
955
- * `requested_invitations`, `available_seats`, `additional_seats_needed`,
956
- * `upgrade_url`).
943
+ * role. Requires an eligible team (not a personal workspace). Team membership is
944
+ * unlimited.
957
945
  *
958
946
  * Inviting users who are already team members returns `409` with code
959
947
  * `DUPLICATE_MEMBERS` and a top-level `duplicate_emails` string array.
@@ -2093,9 +2093,6 @@ export const listTeams = (options) => (options?.client ?? client).get({
2093
2093
  * default "Project 1" project inside it so resources created immediately
2094
2094
  * afterwards are correctly scoped.
2095
2095
  *
2096
- * Team creation is subject to the plan's team resource limit; exceeding it
2097
- * returns `403` with code `RESOURCE_LIMIT_EXCEEDED`.
2098
- *
2099
2096
  */
2100
2097
  export const createTeam = (options) => (options.client ?? client).post({
2101
2098
  responseType: 'json',
@@ -2123,8 +2120,6 @@ export const createTeam = (options) => (options.client ?? client).post({
2123
2120
  *
2124
2121
  * Deletion conflicts return `409` with RFC 9457 problem details carrying an
2125
2122
  * UPPERCASE `code` and string-valued `metadata`:
2126
- * - `ACTIVE_SUBSCRIPTION_EXISTS` — the team still has an active subscription
2127
- * - `SUBSCRIPTION_CANCELING` — the subscription is scheduled to cancel; retry after `metadata.cancel_at`
2128
2123
  * - `TEAM_HAS_MEMBERS` — remove all members first (`metadata.member_count`)
2129
2124
  *
2130
2125
  */
@@ -2311,15 +2306,8 @@ export const listTeamInvitations = (options) => (options.client ?? client).get({
2311
2306
  * Send team invitations
2312
2307
  *
2313
2308
  * Sends invitations to join the team to up to 50 email addresses with the given
2314
- * role. Requires an eligible team (not a personal workspace), an active team
2315
- * subscription, and enough available seats.
2316
- *
2317
- * Limit failures return `403` with code `RESOURCE_LIMIT_EXCEEDED` and a
2318
- * `metadata` object: for missing subscriptions it carries `team_id`, `feature`
2319
- * and `upgrade_url`; for seat limits it carries `team_id` plus seat accounting fields
2320
- * (`total_seats`, `occupied_seats`, `current_members`, `pending_invitations`,
2321
- * `requested_invitations`, `available_seats`, `additional_seats_needed`,
2322
- * `upgrade_url`).
2309
+ * role. Requires an eligible team (not a personal workspace). Team membership is
2310
+ * unlimited.
2323
2311
  *
2324
2312
  * Inviting users who are already team members returns `409` with code
2325
2313
  * `DUPLICATE_MEMBERS` and a top-level `duplicate_emails` string array.
@@ -2905,7 +2905,7 @@ export type Team = {
2905
2905
  slug: string;
2906
2906
  description: string;
2907
2907
  /**
2908
- * Whether this is the user's personal workspace (cannot be deleted or hold a team subscription)
2908
+ * Whether this is the user's personal workspace (cannot be deleted)
2909
2909
  */
2910
2910
  is_personal: boolean;
2911
2911
  /**
@@ -3064,8 +3064,6 @@ export type TeamQuotaTypeDetail = {
3064
3064
  /**
3065
3065
  * RFC 9457 problem details returned when team deletion is blocked (HTTP 409).
3066
3066
  * Codes are UPPERCASE and all `metadata` values are strings:
3067
- * - `ACTIVE_SUBSCRIPTION_EXISTS` — metadata: `subscription_id`, `subscription_tier`, `billing_portal_url`, `help_text`
3068
- * - `SUBSCRIPTION_CANCELING` — metadata: `cancel_at` (date the cancellation takes effect)
3069
3067
  * - `TEAM_HAS_MEMBERS` — metadata: `member_count` (stringified integer)
3070
3068
  *
3071
3069
  */
@@ -3077,13 +3075,13 @@ export type TeamDeleteConflictError = {
3077
3075
  /**
3078
3076
  * Short, human-readable summary of the problem type
3079
3077
  */
3080
- title: 'Active Subscription Exists' | 'Subscription Canceling' | 'Team Has Members';
3078
+ title: 'Team Has Members';
3081
3079
  status: number;
3082
3080
  /**
3083
3081
  * Human-readable explanation specific to this occurrence
3084
3082
  */
3085
3083
  detail: string;
3086
- code: 'ACTIVE_SUBSCRIPTION_EXISTS' | 'SUBSCRIPTION_CANCELING' | 'TEAM_HAS_MEMBERS';
3084
+ code: 'TEAM_HAS_MEMBERS';
3087
3085
  request_id: string;
3088
3086
  timestamp: string;
3089
3087
  /**
@@ -6502,7 +6500,7 @@ export type CreateBlueprintErrors = {
6502
6500
  */
6503
6501
  401: ErrorResponse;
6504
6502
  /**
6505
- * Resource limit exceeded
6503
+ * No permission to create blueprints in this team
6506
6504
  */
6507
6505
  403: ErrorResponse;
6508
6506
  /**
@@ -9665,10 +9663,6 @@ export type CreateTeamErrors = {
9665
9663
  * Payment required — active subscription required
9666
9664
  */
9667
9665
  402: ErrorResponse;
9668
- /**
9669
- * Team creation limit reached for the current plan (code `RESOURCE_LIMIT_EXCEEDED`)
9670
- */
9671
- 403: ErrorResponse;
9672
9666
  /**
9673
9667
  * Internal server error
9674
9668
  */
@@ -9711,7 +9705,7 @@ export type DeleteTeamErrors = {
9711
9705
  */
9712
9706
  404: ErrorResponse;
9713
9707
  /**
9714
- * Deletion blocked — active/canceling subscription or remaining members (codes `ACTIVE_SUBSCRIPTION_EXISTS`, `SUBSCRIPTION_CANCELING`, `TEAM_HAS_MEMBERS`)
9708
+ * Deletion blocked — the team still has members (code `TEAM_HAS_MEMBERS`)
9715
9709
  */
9716
9710
  409: TeamDeleteConflictError;
9717
9711
  /**
@@ -10048,7 +10042,7 @@ export type SendTeamInvitationsErrors = {
10048
10042
  */
10049
10043
  402: ErrorResponse;
10050
10044
  /**
10051
- * Forbidden — personal workspace (code `upgrade_required`), no permission to invite (code `FORBIDDEN`), no active team subscription, or seat limit exceeded (code `RESOURCE_LIMIT_EXCEEDED` with metadata)
10045
+ * Forbidden — personal workspace (code `upgrade_required`) or no permission to invite (code `FORBIDDEN`)
10052
10046
  */
10053
10047
  403: ErrorResponse;
10054
10048
  /**
package/dist/schema.d.ts CHANGED
@@ -1973,9 +1973,6 @@ export interface paths {
1973
1973
  * @description Creates a new team owned by the current user and synchronously bootstraps a
1974
1974
  * default "Project 1" project inside it so resources created immediately
1975
1975
  * afterwards are correctly scoped.
1976
- *
1977
- * Team creation is subject to the plan's team resource limit; exceeding it
1978
- * returns `403` with code `RESOURCE_LIMIT_EXCEEDED`.
1979
1976
  */
1980
1977
  post: operations["createTeam"];
1981
1978
  delete?: never;
@@ -2010,8 +2007,6 @@ export interface paths {
2010
2007
  *
2011
2008
  * Deletion conflicts return `409` with RFC 9457 problem details carrying an
2012
2009
  * UPPERCASE `code` and string-valued `metadata`:
2013
- * - `ACTIVE_SUBSCRIPTION_EXISTS` — the team still has an active subscription
2014
- * - `SUBSCRIPTION_CANCELING` — the subscription is scheduled to cancel; retry after `metadata.cancel_at`
2015
2010
  * - `TEAM_HAS_MEMBERS` — remove all members first (`metadata.member_count`)
2016
2011
  */
2017
2012
  delete: operations["deleteTeam"];
@@ -2131,15 +2126,8 @@ export interface paths {
2131
2126
  /**
2132
2127
  * Send team invitations
2133
2128
  * @description Sends invitations to join the team to up to 50 email addresses with the given
2134
- * role. Requires an eligible team (not a personal workspace), an active team
2135
- * subscription, and enough available seats.
2136
- *
2137
- * Limit failures return `403` with code `RESOURCE_LIMIT_EXCEEDED` and a
2138
- * `metadata` object: for missing subscriptions it carries `team_id`, `feature`
2139
- * and `upgrade_url`; for seat limits it carries `team_id` plus seat accounting fields
2140
- * (`total_seats`, `occupied_seats`, `current_members`, `pending_invitations`,
2141
- * `requested_invitations`, `available_seats`, `additional_seats_needed`,
2142
- * `upgrade_url`).
2129
+ * role. Requires an eligible team (not a personal workspace). Team membership is
2130
+ * unlimited.
2143
2131
  *
2144
2132
  * Inviting users who are already team members returns `409` with code
2145
2133
  * `DUPLICATE_MEMBERS` and a top-level `duplicate_emails` string array.
@@ -7920,7 +7908,7 @@ export interface components {
7920
7908
  /** @example Team for the core engineering group */
7921
7909
  description: string;
7922
7910
  /**
7923
- * @description Whether this is the user's personal workspace (cannot be deleted or hold a team subscription)
7911
+ * @description Whether this is the user's personal workspace (cannot be deleted)
7924
7912
  * @example false
7925
7913
  */
7926
7914
  is_personal: boolean;
@@ -8118,34 +8106,32 @@ export interface components {
8118
8106
  /**
8119
8107
  * @description RFC 9457 problem details returned when team deletion is blocked (HTTP 409).
8120
8108
  * Codes are UPPERCASE and all `metadata` values are strings:
8121
- * - `ACTIVE_SUBSCRIPTION_EXISTS` — metadata: `subscription_id`, `subscription_tier`, `billing_portal_url`, `help_text`
8122
- * - `SUBSCRIPTION_CANCELING` — metadata: `cancel_at` (date the cancellation takes effect)
8123
8109
  * - `TEAM_HAS_MEMBERS` — metadata: `member_count` (stringified integer)
8124
8110
  */
8125
8111
  TeamDeleteConflictError: {
8126
8112
  /**
8127
8113
  * @description URI reference that identifies the problem type
8128
- * @example https://api.example.com/errors/ACTIVE_SUBSCRIPTION_EXISTS
8114
+ * @example https://api.example.com/errors/TEAM_HAS_MEMBERS
8129
8115
  */
8130
8116
  type: string;
8131
8117
  /**
8132
8118
  * @description Short, human-readable summary of the problem type
8133
- * @example Active Subscription Exists
8119
+ * @example Team Has Members
8134
8120
  * @enum {string}
8135
8121
  */
8136
- title: "Active Subscription Exists" | "Subscription Canceling" | "Team Has Members";
8122
+ title: "Team Has Members";
8137
8123
  /** @example 409 */
8138
8124
  status: number;
8139
8125
  /**
8140
8126
  * @description Human-readable explanation specific to this occurrence
8141
- * @example team has an active professional subscription. Cancel the subscription before deleting the team
8127
+ * @example cannot delete team with active members. Remove all 3 members first
8142
8128
  */
8143
8129
  detail: string;
8144
8130
  /**
8145
- * @example ACTIVE_SUBSCRIPTION_EXISTS
8131
+ * @example TEAM_HAS_MEMBERS
8146
8132
  * @enum {string}
8147
8133
  */
8148
- code: "ACTIVE_SUBSCRIPTION_EXISTS" | "SUBSCRIPTION_CANCELING" | "TEAM_HAS_MEMBERS";
8134
+ code: "TEAM_HAS_MEMBERS";
8149
8135
  /** @example abc123-def456 */
8150
8136
  request_id: string;
8151
8137
  /**
@@ -8161,10 +8147,7 @@ export interface components {
8161
8147
  /**
8162
8148
  * @description Code-specific string-valued metadata (see schema description for per-code keys)
8163
8149
  * @example {
8164
- * "subscription_id": "sub_1QabcDEF",
8165
- * "subscription_tier": "professional",
8166
- * "billing_portal_url": "https://billing.stripe.com/p/session/abc123",
8167
- * "help_text": "Cancel your subscription via the billing portal, then delete the team."
8150
+ * "member_count": "3"
8168
8151
  * }
8169
8152
  */
8170
8153
  metadata?: {
@@ -12664,7 +12647,7 @@ export interface operations {
12664
12647
  "application/problem+json": components["schemas"]["ErrorResponse"];
12665
12648
  };
12666
12649
  };
12667
- /** @description Resource limit exceeded */
12650
+ /** @description No permission to create blueprints in this team */
12668
12651
  403: {
12669
12652
  headers: {
12670
12653
  [name: string]: unknown;
@@ -17311,15 +17294,6 @@ export interface operations {
17311
17294
  "application/problem+json": components["schemas"]["ErrorResponse"];
17312
17295
  };
17313
17296
  };
17314
- /** @description Team creation limit reached for the current plan (code `RESOURCE_LIMIT_EXCEEDED`) */
17315
- 403: {
17316
- headers: {
17317
- [name: string]: unknown;
17318
- };
17319
- content: {
17320
- "application/problem+json": components["schemas"]["ErrorResponse"];
17321
- };
17322
- };
17323
17297
  /** @description Internal server error */
17324
17298
  500: {
17325
17299
  headers: {
@@ -17526,7 +17500,7 @@ export interface operations {
17526
17500
  "application/problem+json": components["schemas"]["ErrorResponse"];
17527
17501
  };
17528
17502
  };
17529
- /** @description Deletion blocked — active/canceling subscription or remaining members (codes `ACTIVE_SUBSCRIPTION_EXISTS`, `SUBSCRIPTION_CANCELING`, `TEAM_HAS_MEMBERS`) */
17503
+ /** @description Deletion blocked — the team still has members (code `TEAM_HAS_MEMBERS`) */
17530
17504
  409: {
17531
17505
  headers: {
17532
17506
  [name: string]: unknown;
@@ -17935,7 +17909,7 @@ export interface operations {
17935
17909
  "application/problem+json": components["schemas"]["ErrorResponse"];
17936
17910
  };
17937
17911
  };
17938
- /** @description Forbidden — personal workspace (code `upgrade_required`), no permission to invite (code `FORBIDDEN`), no active team subscription, or seat limit exceeded (code `RESOURCE_LIMIT_EXCEEDED` with metadata) */
17912
+ /** @description Forbidden — personal workspace (code `upgrade_required`) or no permission to invite (code `FORBIDDEN`) */
17939
17913
  403: {
17940
17914
  headers: {
17941
17915
  [name: string]: unknown;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vibexp/api-client",
3
- "version": "0.49.0",
3
+ "version": "0.50.0",
4
4
  "description": "Typed VibeXP API client generated from the OpenAPI spec (openapi-fetch main entrypoint, axios SDK at ./axios)",
5
5
  "license": "MIT",
6
6
  "repository": {