@arbidocs/client 0.5.131 → 0.5.133

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.cts CHANGED
@@ -143,6 +143,38 @@ interface operations$1 {
143
143
  * Do not make direct changes to the file.
144
144
  */
145
145
  interface paths$1 {
146
+ '/v1/user/projects/{project_ext_id}/spend-limits/confirm': {
147
+ post: {
148
+ parameters: {
149
+ path: {
150
+ project_ext_id: string;
151
+ };
152
+ };
153
+ requestBody: {
154
+ content: {
155
+ 'application/json': components$1['schemas']['ProjectSpendLimitsRequest'];
156
+ };
157
+ };
158
+ responses: {
159
+ 200: {
160
+ headers: {
161
+ [name: string]: unknown;
162
+ };
163
+ content: {
164
+ 'application/json': components$1['schemas']['ProjectResponse'];
165
+ };
166
+ };
167
+ 422: {
168
+ headers: {
169
+ [name: string]: unknown;
170
+ };
171
+ content: {
172
+ 'application/json': components$1['schemas']['HTTPValidationError'];
173
+ };
174
+ };
175
+ };
176
+ };
177
+ };
146
178
  '/v1/user/entitlements': {
147
179
  parameters: {
148
180
  query?: never;
@@ -1194,8 +1226,9 @@ interface paths$1 {
1194
1226
  };
1195
1227
  /**
1196
1228
  * Get Me
1197
- * @description The signed-in user, with their type and what it allows (``can_create_projects``, ``can_upgrade_projects``,
1198
- * ``is_billing_manager``, ``is_deployment_admin``; derived on every call).
1229
+ * @description The signed-in user, with their type and what it allows (``can_create_projects`` and why not:
1230
+ * ``project_creation_refusal``, ``can_create_workspaces``, ``can_upgrade_projects``, ``is_billing_manager``,
1231
+ * ``is_deployment_admin``; derived on every call).
1199
1232
  */
1200
1233
  get: operations['get_current_user'];
1201
1234
  put?: never;
@@ -5840,7 +5873,7 @@ interface paths$1 {
5840
5873
  * parts tell you where you are).
5841
5874
  *
5842
5875
  * * ``speaker``: your own microphone. You must be admissible to the call (the ``POST /token`` rule; for a thread
5843
- * call a member of its workspace, any role — the Read only role included) or already in the room; in a
5876
+ * call a member of its workspace, any role — the Viewer role included) or already in the room; in a
5844
5877
  * webinar, on stage (403 ``not_on_stage``).
5845
5878
  * * ``composite``: the host's view, host only, ``audio_video`` recordings only (422 ``composite_needs_video``).
5846
5879
  *
@@ -9146,6 +9179,11 @@ interface paths$1 {
9146
9179
  type webhooks = Record<string, never>;
9147
9180
  interface components$1 {
9148
9181
  schemas: {
9182
+ ProjectSpendLimitsRequest: {
9183
+ spend_cap_pence: number;
9184
+ daily_cap_per_user: number | null;
9185
+ name?: string | null;
9186
+ };
9149
9187
  /** AccountRead */
9150
9188
  AccountRead: {
9151
9189
  /** Id */
@@ -14641,6 +14679,13 @@ interface components$1 {
14641
14679
  temporary_access_only: boolean;
14642
14680
  /** Can Create Projects */
14643
14681
  can_create_projects: boolean;
14682
+ /** Project Creation Refusal */
14683
+ project_creation_refusal?: ('external_user' | 'not_a_member' | 'managers_only' | 'pro_required') | null;
14684
+ /**
14685
+ * Can Create Workspaces
14686
+ * @default true
14687
+ */
14688
+ can_create_workspaces: boolean;
14644
14689
  /**
14645
14690
  * Is Deployment Admin
14646
14691
  * @default false
@@ -18353,8 +18398,8 @@ interface components$1 {
18353
18398
  */
18354
18399
  member_count: number;
18355
18400
  /**
18356
- * Read Only Count
18357
- * @description People with only the Read only role in its workspaces.
18401
+ * Viewer Count
18402
+ * @description People with only the Viewer role in its workspaces.
18358
18403
  * @default 0
18359
18404
  */
18360
18405
  guest_count: number;
@@ -18424,8 +18469,8 @@ interface components$1 {
18424
18469
  */
18425
18470
  member_count: number;
18426
18471
  /**
18427
- * Read Only Count
18428
- * @description People with only the Read only role in the projects' workspaces.
18472
+ * Viewer Count
18473
+ * @description People with only the Viewer role in the projects' workspaces.
18429
18474
  * @default 0
18430
18475
  */
18431
18476
  guest_count: number;
@@ -20084,6 +20129,7 @@ interface components$1 {
20084
20129
  * @description Stripe product with pricing information.
20085
20130
  */
20086
20131
  ProductResponse: {
20132
+ collaborator_daily_limit_step_gbp?: number;
20087
20133
  /**
20088
20134
  * Included Ai Gbp
20089
20135
  * @default 10
@@ -20432,6 +20478,7 @@ interface components$1 {
20432
20478
  * and renew with the plan until reduced, like any block.
20433
20479
  */
20434
20480
  ProjectCheckoutRequest: {
20481
+ require_spend_limit_confirmation?: boolean;
20435
20482
  /**
20436
20483
  * Interval
20437
20484
  * @default month
@@ -20715,6 +20762,8 @@ interface components$1 {
20715
20762
  * user's external_id.
20716
20763
  */
20717
20764
  ProjectResponse: {
20765
+ spend_limits_confirmation_required?: boolean;
20766
+ checkout_pending?: boolean;
20718
20767
  /** External Id */
20719
20768
  external_id: string;
20720
20769
  /** Name */
@@ -26769,8 +26818,8 @@ interface components$1 {
26769
26818
  /**
26770
26819
  * WorkspaceRole
26771
26820
  * @description Role of a user within a workspace: ``owner``, ``collaborator``, or ``guest``, which is shown to people as
26772
- * "Read only" (reads what is shared in the workspace; no editing, uploads or AI). ``guest`` is only the stored
26773
- * value of the Read only role: it has nothing to do with external accounts (user type ``external``).
26821
+ * "Viewer" (reads what is shared in the workspace; no editing, uploads or AI). ``guest`` is only the stored
26822
+ * value of the Viewer role: it has nothing to do with external accounts (user type ``external``).
26774
26823
  * @enum {string}
26775
26824
  */
26776
26825
  WorkspaceRole: 'owner' | 'collaborator' | 'guest';
package/dist/index.d.ts CHANGED
@@ -143,6 +143,38 @@ interface operations$1 {
143
143
  * Do not make direct changes to the file.
144
144
  */
145
145
  interface paths$1 {
146
+ '/v1/user/projects/{project_ext_id}/spend-limits/confirm': {
147
+ post: {
148
+ parameters: {
149
+ path: {
150
+ project_ext_id: string;
151
+ };
152
+ };
153
+ requestBody: {
154
+ content: {
155
+ 'application/json': components$1['schemas']['ProjectSpendLimitsRequest'];
156
+ };
157
+ };
158
+ responses: {
159
+ 200: {
160
+ headers: {
161
+ [name: string]: unknown;
162
+ };
163
+ content: {
164
+ 'application/json': components$1['schemas']['ProjectResponse'];
165
+ };
166
+ };
167
+ 422: {
168
+ headers: {
169
+ [name: string]: unknown;
170
+ };
171
+ content: {
172
+ 'application/json': components$1['schemas']['HTTPValidationError'];
173
+ };
174
+ };
175
+ };
176
+ };
177
+ };
146
178
  '/v1/user/entitlements': {
147
179
  parameters: {
148
180
  query?: never;
@@ -1194,8 +1226,9 @@ interface paths$1 {
1194
1226
  };
1195
1227
  /**
1196
1228
  * Get Me
1197
- * @description The signed-in user, with their type and what it allows (``can_create_projects``, ``can_upgrade_projects``,
1198
- * ``is_billing_manager``, ``is_deployment_admin``; derived on every call).
1229
+ * @description The signed-in user, with their type and what it allows (``can_create_projects`` and why not:
1230
+ * ``project_creation_refusal``, ``can_create_workspaces``, ``can_upgrade_projects``, ``is_billing_manager``,
1231
+ * ``is_deployment_admin``; derived on every call).
1199
1232
  */
1200
1233
  get: operations['get_current_user'];
1201
1234
  put?: never;
@@ -5840,7 +5873,7 @@ interface paths$1 {
5840
5873
  * parts tell you where you are).
5841
5874
  *
5842
5875
  * * ``speaker``: your own microphone. You must be admissible to the call (the ``POST /token`` rule; for a thread
5843
- * call a member of its workspace, any role — the Read only role included) or already in the room; in a
5876
+ * call a member of its workspace, any role — the Viewer role included) or already in the room; in a
5844
5877
  * webinar, on stage (403 ``not_on_stage``).
5845
5878
  * * ``composite``: the host's view, host only, ``audio_video`` recordings only (422 ``composite_needs_video``).
5846
5879
  *
@@ -9146,6 +9179,11 @@ interface paths$1 {
9146
9179
  type webhooks = Record<string, never>;
9147
9180
  interface components$1 {
9148
9181
  schemas: {
9182
+ ProjectSpendLimitsRequest: {
9183
+ spend_cap_pence: number;
9184
+ daily_cap_per_user: number | null;
9185
+ name?: string | null;
9186
+ };
9149
9187
  /** AccountRead */
9150
9188
  AccountRead: {
9151
9189
  /** Id */
@@ -14641,6 +14679,13 @@ interface components$1 {
14641
14679
  temporary_access_only: boolean;
14642
14680
  /** Can Create Projects */
14643
14681
  can_create_projects: boolean;
14682
+ /** Project Creation Refusal */
14683
+ project_creation_refusal?: ('external_user' | 'not_a_member' | 'managers_only' | 'pro_required') | null;
14684
+ /**
14685
+ * Can Create Workspaces
14686
+ * @default true
14687
+ */
14688
+ can_create_workspaces: boolean;
14644
14689
  /**
14645
14690
  * Is Deployment Admin
14646
14691
  * @default false
@@ -18353,8 +18398,8 @@ interface components$1 {
18353
18398
  */
18354
18399
  member_count: number;
18355
18400
  /**
18356
- * Read Only Count
18357
- * @description People with only the Read only role in its workspaces.
18401
+ * Viewer Count
18402
+ * @description People with only the Viewer role in its workspaces.
18358
18403
  * @default 0
18359
18404
  */
18360
18405
  guest_count: number;
@@ -18424,8 +18469,8 @@ interface components$1 {
18424
18469
  */
18425
18470
  member_count: number;
18426
18471
  /**
18427
- * Read Only Count
18428
- * @description People with only the Read only role in the projects' workspaces.
18472
+ * Viewer Count
18473
+ * @description People with only the Viewer role in the projects' workspaces.
18429
18474
  * @default 0
18430
18475
  */
18431
18476
  guest_count: number;
@@ -20084,6 +20129,7 @@ interface components$1 {
20084
20129
  * @description Stripe product with pricing information.
20085
20130
  */
20086
20131
  ProductResponse: {
20132
+ collaborator_daily_limit_step_gbp?: number;
20087
20133
  /**
20088
20134
  * Included Ai Gbp
20089
20135
  * @default 10
@@ -20432,6 +20478,7 @@ interface components$1 {
20432
20478
  * and renew with the plan until reduced, like any block.
20433
20479
  */
20434
20480
  ProjectCheckoutRequest: {
20481
+ require_spend_limit_confirmation?: boolean;
20435
20482
  /**
20436
20483
  * Interval
20437
20484
  * @default month
@@ -20715,6 +20762,8 @@ interface components$1 {
20715
20762
  * user's external_id.
20716
20763
  */
20717
20764
  ProjectResponse: {
20765
+ spend_limits_confirmation_required?: boolean;
20766
+ checkout_pending?: boolean;
20718
20767
  /** External Id */
20719
20768
  external_id: string;
20720
20769
  /** Name */
@@ -26769,8 +26818,8 @@ interface components$1 {
26769
26818
  /**
26770
26819
  * WorkspaceRole
26771
26820
  * @description Role of a user within a workspace: ``owner``, ``collaborator``, or ``guest``, which is shown to people as
26772
- * "Read only" (reads what is shared in the workspace; no editing, uploads or AI). ``guest`` is only the stored
26773
- * value of the Read only role: it has nothing to do with external accounts (user type ``external``).
26821
+ * "Viewer" (reads what is shared in the workspace; no editing, uploads or AI). ``guest`` is only the stored
26822
+ * value of the Viewer role: it has nothing to do with external accounts (user type ``external``).
26774
26823
  * @enum {string}
26775
26824
  */
26776
26825
  WorkspaceRole: 'owner' | 'collaborator' | 'guest';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@arbidocs/client",
3
- "version": "0.5.131",
3
+ "version": "0.5.133",
4
4
  "description": "TypeScript SDK for the ARBI API — zero-knowledge auth, E2E encryption, and type-safe REST client",
5
5
  "type": "module",
6
6
  "sideEffects": false,