@arbidocs/blocks 0.5.104 → 0.5.106
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/{DocumentReviewCard-MSHD73S3.cjs → DocumentReviewCard-QVQ2LGFH.cjs} +3 -3
- package/dist/{DocumentReviewCard-MSHD73S3.cjs.map → DocumentReviewCard-QVQ2LGFH.cjs.map} +1 -1
- package/dist/{DocumentReviewCard-WZNBPG72.js → DocumentReviewCard-UOLXZKZE.js} +3 -3
- package/dist/{DocumentReviewCard-WZNBPG72.js.map → DocumentReviewCard-UOLXZKZE.js.map} +1 -1
- package/dist/{FilesViewerDialog-XETOHORQ.js → FilesViewerDialog-5ELQYWAZ.js} +3 -3
- package/dist/{FilesViewerDialog-XETOHORQ.js.map → FilesViewerDialog-5ELQYWAZ.js.map} +1 -1
- package/dist/{FilesViewerDialog-DV2U4USR.cjs → FilesViewerDialog-XNGHHWYS.cjs} +4 -4
- package/dist/{FilesViewerDialog-DV2U4USR.cjs.map → FilesViewerDialog-XNGHHWYS.cjs.map} +1 -1
- package/dist/{WorkspaceTableView-WD754UBK.js → WorkspaceTableView-DIMTW5P5.js} +4 -4
- package/dist/{WorkspaceTableView-WD754UBK.js.map → WorkspaceTableView-DIMTW5P5.js.map} +1 -1
- package/dist/{WorkspaceTableView-3D6SYOWT.cjs → WorkspaceTableView-HRCV6WR7.cjs} +6 -6
- package/dist/{WorkspaceTableView-3D6SYOWT.cjs.map → WorkspaceTableView-HRCV6WR7.cjs.map} +1 -1
- package/dist/{chunk-N77UYRV7.js → chunk-632JXVXY.js} +51 -26
- package/dist/chunk-632JXVXY.js.map +1 -0
- package/dist/{chunk-5R67KX2O.cjs → chunk-6XNWGOS3.cjs} +70 -19
- package/dist/chunk-6XNWGOS3.cjs.map +1 -0
- package/dist/{chunk-TQFDPCWU.js → chunk-7Q6EVFMT.js} +3 -3
- package/dist/{chunk-TQFDPCWU.js.map → chunk-7Q6EVFMT.js.map} +1 -1
- package/dist/{chunk-MMSHLHTA.cjs → chunk-LM5CPXJO.cjs} +51 -26
- package/dist/chunk-LM5CPXJO.cjs.map +1 -0
- package/dist/{chunk-DDIV3MYQ.cjs → chunk-MW7FGIF4.cjs} +25 -59
- package/dist/chunk-MW7FGIF4.cjs.map +1 -0
- package/dist/{chunk-BSPPKX6X.cjs → chunk-OXHAZN43.cjs} +4 -4
- package/dist/{chunk-BSPPKX6X.cjs.map → chunk-OXHAZN43.cjs.map} +1 -1
- package/dist/{chunk-4UOXUWX3.js → chunk-QFKL4HV2.js} +54 -3
- package/dist/chunk-QFKL4HV2.js.map +1 -0
- package/dist/{chunk-FNGFSHVE.js → chunk-TRI3LQVR.js} +24 -50
- package/dist/chunk-TRI3LQVR.js.map +1 -0
- package/dist/connect/index.cjs +1874 -1860
- package/dist/connect/index.cjs.map +1 -1
- package/dist/connect/index.js +1518 -1504
- package/dist/connect/index.js.map +1 -1
- package/dist/connect/viewer.cjs +1 -1
- package/dist/connect/viewer.js +1 -1
- package/dist/connection/billing/AddAddonDialog.d.ts +1 -1
- package/dist/connection/billing/CollaboratorPlan.d.ts +7 -0
- package/dist/connection/billing/ConnectedQuotaDialog.d.ts +2 -2
- package/dist/connection/billing/ConnectedWelcomeDialog.d.ts +2 -2
- package/dist/connection/billing/MonthlySpendCap.d.ts +12 -0
- package/dist/connection/billing/NewProjectFlow.d.ts +0 -7
- package/dist/connection/billing/ProjectBilling.d.ts +1 -1
- package/dist/connection/billing/ProjectDetail.d.ts +1 -1
- package/dist/connection/billing/ProjectPurchaseOptions.d.ts +22 -0
- package/dist/connection/billing/ProjectUsageCard.d.ts +0 -13
- package/dist/connection/billing/ProjectUsageContent.d.ts +3 -3
- package/dist/connection/billing/ReduceAddonDialog.d.ts +2 -2
- package/dist/connection/billing/StripeCheckoutModal.d.ts +5 -2
- package/dist/connection/billing/SubscriptionPlans.d.ts +2 -10
- package/dist/connection/billing/SubscriptionStatus.d.ts +1 -1
- package/dist/connection/billing/SuspendedProjectRecovery.d.ts +8 -0
- package/dist/connection/billing/addon-pricing.d.ts +6 -6
- package/dist/connection/billing/payment-required.d.ts +2 -2
- package/dist/connection/billing/plan-constants.d.ts +6 -4
- package/dist/connection/billing/plan-pricing.d.ts +5 -5
- package/dist/connection/billing/quota-items.d.ts +2 -2
- package/dist/connection/billing/useAddonPurchase.d.ts +1 -1
- package/dist/connection/billing/usePaidWorkspaceMembers.d.ts +397 -0
- package/dist/connection/workspace-list/useConnectedWorkspaceList.d.ts +17 -1
- package/dist/embed/index.cjs +8 -8
- package/dist/embed/index.js +2 -2
- package/dist/settings/PlanCard.d.ts +2 -2
- package/dist/settings/SubscriptionParts.d.ts +3 -1
- package/dist/settings/index.cjs +150 -150
- package/dist/settings/index.js +1 -1
- package/dist/styles.css +1 -1
- package/dist/workflow-canvas/index.cjs +7 -7
- package/dist/workflow-canvas/index.js +2 -2
- package/node_modules/@arbidocs/coedit/package.json +1 -1
- package/package.json +6 -5
- package/src/blocks.css +2 -0
- package/src/connection/billing/project-purchase.css +453 -0
- package/dist/chunk-4UOXUWX3.js.map +0 -1
- package/dist/chunk-5R67KX2O.cjs.map +0 -1
- package/dist/chunk-DDIV3MYQ.cjs.map +0 -1
- package/dist/chunk-FNGFSHVE.js.map +0 -1
- package/dist/chunk-MMSHLHTA.cjs.map +0 -1
- package/dist/chunk-N77UYRV7.js.map +0 -1
- package/dist/connection/billing/CheckoutTotal.d.ts +0 -12
- package/dist/connection/billing/PlanSelector.d.ts +0 -50
- package/dist/connection/billing/billing-country.d.ts +0 -13
- package/dist/connection/billing/useCheckoutQuote.d.ts +0 -30
|
@@ -0,0 +1,397 @@
|
|
|
1
|
+
export declare class InvitationPurchaseCancelled extends Error {
|
|
2
|
+
}
|
|
3
|
+
/** A refused invitation has changed no membership. Quote and confirm capacity before retrying it. */
|
|
4
|
+
export declare function usePaidWorkspaceMembers(): {
|
|
5
|
+
mutateAsync: (variables: Omit<{
|
|
6
|
+
emails: string[];
|
|
7
|
+
role: import("@arbidocs/client").components["schemas"]["WorkspaceRole"];
|
|
8
|
+
workspace_key?: string | null;
|
|
9
|
+
workspace_ext_id?: string | null;
|
|
10
|
+
session_pubkey_b64?: string | null;
|
|
11
|
+
access_duration_seconds: number;
|
|
12
|
+
confirm_invite?: boolean | null;
|
|
13
|
+
resource_type?: ("document" | "conversation") | null;
|
|
14
|
+
resource_ext_id?: string | null;
|
|
15
|
+
confirm_share?: boolean | null;
|
|
16
|
+
}, "access_duration_seconds"> & {
|
|
17
|
+
access_duration_seconds?: number;
|
|
18
|
+
}, options?: import("@tanstack/query-core").MutateOptions<{
|
|
19
|
+
user: import("@arbidocs/client").components["schemas"]["UserResponse"];
|
|
20
|
+
role: import("@arbidocs/client").components["schemas"]["WorkspaceRole"];
|
|
21
|
+
joined_at: string;
|
|
22
|
+
conversation_count: number;
|
|
23
|
+
document_count: number;
|
|
24
|
+
files_mb: number;
|
|
25
|
+
agent_ext_id?: string | null;
|
|
26
|
+
is_temporary: boolean;
|
|
27
|
+
access_expires_at?: string | null;
|
|
28
|
+
}[], Error, Omit<{
|
|
29
|
+
emails: string[];
|
|
30
|
+
role: import("@arbidocs/client").components["schemas"]["WorkspaceRole"];
|
|
31
|
+
workspace_key?: string | null;
|
|
32
|
+
workspace_ext_id?: string | null;
|
|
33
|
+
session_pubkey_b64?: string | null;
|
|
34
|
+
access_duration_seconds: number;
|
|
35
|
+
confirm_invite?: boolean | null;
|
|
36
|
+
resource_type?: ("document" | "conversation") | null;
|
|
37
|
+
resource_ext_id?: string | null;
|
|
38
|
+
confirm_share?: boolean | null;
|
|
39
|
+
}, "access_duration_seconds"> & {
|
|
40
|
+
access_duration_seconds?: number;
|
|
41
|
+
}, unknown> | undefined) => Promise<{
|
|
42
|
+
user: import("@arbidocs/client").components["schemas"]["UserResponse"];
|
|
43
|
+
role: import("@arbidocs/client").components["schemas"]["WorkspaceRole"];
|
|
44
|
+
joined_at: string;
|
|
45
|
+
conversation_count: number;
|
|
46
|
+
document_count: number;
|
|
47
|
+
files_mb: number;
|
|
48
|
+
agent_ext_id?: string | null;
|
|
49
|
+
is_temporary: boolean;
|
|
50
|
+
access_expires_at?: string | null;
|
|
51
|
+
}[]>;
|
|
52
|
+
data: undefined;
|
|
53
|
+
variables: undefined;
|
|
54
|
+
error: null;
|
|
55
|
+
isError: false;
|
|
56
|
+
isIdle: true;
|
|
57
|
+
isPending: false;
|
|
58
|
+
isSuccess: false;
|
|
59
|
+
status: "idle";
|
|
60
|
+
mutate: import("@tanstack/react-query").UseMutateFunction<{
|
|
61
|
+
user: import("@arbidocs/client").components["schemas"]["UserResponse"];
|
|
62
|
+
role: import("@arbidocs/client").components["schemas"]["WorkspaceRole"];
|
|
63
|
+
joined_at: string;
|
|
64
|
+
conversation_count: number;
|
|
65
|
+
document_count: number;
|
|
66
|
+
files_mb: number;
|
|
67
|
+
agent_ext_id?: string | null;
|
|
68
|
+
is_temporary: boolean;
|
|
69
|
+
access_expires_at?: string | null;
|
|
70
|
+
}[], Error, Omit<{
|
|
71
|
+
emails: string[];
|
|
72
|
+
role: import("@arbidocs/client").components["schemas"]["WorkspaceRole"];
|
|
73
|
+
workspace_key?: string | null;
|
|
74
|
+
workspace_ext_id?: string | null;
|
|
75
|
+
session_pubkey_b64?: string | null;
|
|
76
|
+
access_duration_seconds: number;
|
|
77
|
+
confirm_invite?: boolean | null;
|
|
78
|
+
resource_type?: ("document" | "conversation") | null;
|
|
79
|
+
resource_ext_id?: string | null;
|
|
80
|
+
confirm_share?: boolean | null;
|
|
81
|
+
}, "access_duration_seconds"> & {
|
|
82
|
+
access_duration_seconds?: number;
|
|
83
|
+
}, unknown>;
|
|
84
|
+
reset: () => void;
|
|
85
|
+
context: unknown;
|
|
86
|
+
failureCount: number;
|
|
87
|
+
failureReason: Error | null;
|
|
88
|
+
isPaused: boolean;
|
|
89
|
+
submittedAt: number;
|
|
90
|
+
} | {
|
|
91
|
+
mutateAsync: (variables: Omit<{
|
|
92
|
+
emails: string[];
|
|
93
|
+
role: import("@arbidocs/client").components["schemas"]["WorkspaceRole"];
|
|
94
|
+
workspace_key?: string | null;
|
|
95
|
+
workspace_ext_id?: string | null;
|
|
96
|
+
session_pubkey_b64?: string | null;
|
|
97
|
+
access_duration_seconds: number;
|
|
98
|
+
confirm_invite?: boolean | null;
|
|
99
|
+
resource_type?: ("document" | "conversation") | null;
|
|
100
|
+
resource_ext_id?: string | null;
|
|
101
|
+
confirm_share?: boolean | null;
|
|
102
|
+
}, "access_duration_seconds"> & {
|
|
103
|
+
access_duration_seconds?: number;
|
|
104
|
+
}, options?: import("@tanstack/query-core").MutateOptions<{
|
|
105
|
+
user: import("@arbidocs/client").components["schemas"]["UserResponse"];
|
|
106
|
+
role: import("@arbidocs/client").components["schemas"]["WorkspaceRole"];
|
|
107
|
+
joined_at: string;
|
|
108
|
+
conversation_count: number;
|
|
109
|
+
document_count: number;
|
|
110
|
+
files_mb: number;
|
|
111
|
+
agent_ext_id?: string | null;
|
|
112
|
+
is_temporary: boolean;
|
|
113
|
+
access_expires_at?: string | null;
|
|
114
|
+
}[], Error, Omit<{
|
|
115
|
+
emails: string[];
|
|
116
|
+
role: import("@arbidocs/client").components["schemas"]["WorkspaceRole"];
|
|
117
|
+
workspace_key?: string | null;
|
|
118
|
+
workspace_ext_id?: string | null;
|
|
119
|
+
session_pubkey_b64?: string | null;
|
|
120
|
+
access_duration_seconds: number;
|
|
121
|
+
confirm_invite?: boolean | null;
|
|
122
|
+
resource_type?: ("document" | "conversation") | null;
|
|
123
|
+
resource_ext_id?: string | null;
|
|
124
|
+
confirm_share?: boolean | null;
|
|
125
|
+
}, "access_duration_seconds"> & {
|
|
126
|
+
access_duration_seconds?: number;
|
|
127
|
+
}, unknown> | undefined) => Promise<{
|
|
128
|
+
user: import("@arbidocs/client").components["schemas"]["UserResponse"];
|
|
129
|
+
role: import("@arbidocs/client").components["schemas"]["WorkspaceRole"];
|
|
130
|
+
joined_at: string;
|
|
131
|
+
conversation_count: number;
|
|
132
|
+
document_count: number;
|
|
133
|
+
files_mb: number;
|
|
134
|
+
agent_ext_id?: string | null;
|
|
135
|
+
is_temporary: boolean;
|
|
136
|
+
access_expires_at?: string | null;
|
|
137
|
+
}[]>;
|
|
138
|
+
data: undefined;
|
|
139
|
+
variables: Omit<{
|
|
140
|
+
emails: string[];
|
|
141
|
+
role: import("@arbidocs/client").components["schemas"]["WorkspaceRole"];
|
|
142
|
+
workspace_key?: string | null;
|
|
143
|
+
workspace_ext_id?: string | null;
|
|
144
|
+
session_pubkey_b64?: string | null;
|
|
145
|
+
access_duration_seconds: number;
|
|
146
|
+
confirm_invite?: boolean | null;
|
|
147
|
+
resource_type?: ("document" | "conversation") | null;
|
|
148
|
+
resource_ext_id?: string | null;
|
|
149
|
+
confirm_share?: boolean | null;
|
|
150
|
+
}, "access_duration_seconds"> & {
|
|
151
|
+
access_duration_seconds?: number;
|
|
152
|
+
};
|
|
153
|
+
error: null;
|
|
154
|
+
isError: false;
|
|
155
|
+
isIdle: false;
|
|
156
|
+
isPending: true;
|
|
157
|
+
isSuccess: false;
|
|
158
|
+
status: "pending";
|
|
159
|
+
mutate: import("@tanstack/react-query").UseMutateFunction<{
|
|
160
|
+
user: import("@arbidocs/client").components["schemas"]["UserResponse"];
|
|
161
|
+
role: import("@arbidocs/client").components["schemas"]["WorkspaceRole"];
|
|
162
|
+
joined_at: string;
|
|
163
|
+
conversation_count: number;
|
|
164
|
+
document_count: number;
|
|
165
|
+
files_mb: number;
|
|
166
|
+
agent_ext_id?: string | null;
|
|
167
|
+
is_temporary: boolean;
|
|
168
|
+
access_expires_at?: string | null;
|
|
169
|
+
}[], Error, Omit<{
|
|
170
|
+
emails: string[];
|
|
171
|
+
role: import("@arbidocs/client").components["schemas"]["WorkspaceRole"];
|
|
172
|
+
workspace_key?: string | null;
|
|
173
|
+
workspace_ext_id?: string | null;
|
|
174
|
+
session_pubkey_b64?: string | null;
|
|
175
|
+
access_duration_seconds: number;
|
|
176
|
+
confirm_invite?: boolean | null;
|
|
177
|
+
resource_type?: ("document" | "conversation") | null;
|
|
178
|
+
resource_ext_id?: string | null;
|
|
179
|
+
confirm_share?: boolean | null;
|
|
180
|
+
}, "access_duration_seconds"> & {
|
|
181
|
+
access_duration_seconds?: number;
|
|
182
|
+
}, unknown>;
|
|
183
|
+
reset: () => void;
|
|
184
|
+
context: unknown;
|
|
185
|
+
failureCount: number;
|
|
186
|
+
failureReason: Error | null;
|
|
187
|
+
isPaused: boolean;
|
|
188
|
+
submittedAt: number;
|
|
189
|
+
} | {
|
|
190
|
+
mutateAsync: (variables: Omit<{
|
|
191
|
+
emails: string[];
|
|
192
|
+
role: import("@arbidocs/client").components["schemas"]["WorkspaceRole"];
|
|
193
|
+
workspace_key?: string | null;
|
|
194
|
+
workspace_ext_id?: string | null;
|
|
195
|
+
session_pubkey_b64?: string | null;
|
|
196
|
+
access_duration_seconds: number;
|
|
197
|
+
confirm_invite?: boolean | null;
|
|
198
|
+
resource_type?: ("document" | "conversation") | null;
|
|
199
|
+
resource_ext_id?: string | null;
|
|
200
|
+
confirm_share?: boolean | null;
|
|
201
|
+
}, "access_duration_seconds"> & {
|
|
202
|
+
access_duration_seconds?: number;
|
|
203
|
+
}, options?: import("@tanstack/query-core").MutateOptions<{
|
|
204
|
+
user: import("@arbidocs/client").components["schemas"]["UserResponse"];
|
|
205
|
+
role: import("@arbidocs/client").components["schemas"]["WorkspaceRole"];
|
|
206
|
+
joined_at: string;
|
|
207
|
+
conversation_count: number;
|
|
208
|
+
document_count: number;
|
|
209
|
+
files_mb: number;
|
|
210
|
+
agent_ext_id?: string | null;
|
|
211
|
+
is_temporary: boolean;
|
|
212
|
+
access_expires_at?: string | null;
|
|
213
|
+
}[], Error, Omit<{
|
|
214
|
+
emails: string[];
|
|
215
|
+
role: import("@arbidocs/client").components["schemas"]["WorkspaceRole"];
|
|
216
|
+
workspace_key?: string | null;
|
|
217
|
+
workspace_ext_id?: string | null;
|
|
218
|
+
session_pubkey_b64?: string | null;
|
|
219
|
+
access_duration_seconds: number;
|
|
220
|
+
confirm_invite?: boolean | null;
|
|
221
|
+
resource_type?: ("document" | "conversation") | null;
|
|
222
|
+
resource_ext_id?: string | null;
|
|
223
|
+
confirm_share?: boolean | null;
|
|
224
|
+
}, "access_duration_seconds"> & {
|
|
225
|
+
access_duration_seconds?: number;
|
|
226
|
+
}, unknown> | undefined) => Promise<{
|
|
227
|
+
user: import("@arbidocs/client").components["schemas"]["UserResponse"];
|
|
228
|
+
role: import("@arbidocs/client").components["schemas"]["WorkspaceRole"];
|
|
229
|
+
joined_at: string;
|
|
230
|
+
conversation_count: number;
|
|
231
|
+
document_count: number;
|
|
232
|
+
files_mb: number;
|
|
233
|
+
agent_ext_id?: string | null;
|
|
234
|
+
is_temporary: boolean;
|
|
235
|
+
access_expires_at?: string | null;
|
|
236
|
+
}[]>;
|
|
237
|
+
data: undefined;
|
|
238
|
+
error: Error;
|
|
239
|
+
variables: Omit<{
|
|
240
|
+
emails: string[];
|
|
241
|
+
role: import("@arbidocs/client").components["schemas"]["WorkspaceRole"];
|
|
242
|
+
workspace_key?: string | null;
|
|
243
|
+
workspace_ext_id?: string | null;
|
|
244
|
+
session_pubkey_b64?: string | null;
|
|
245
|
+
access_duration_seconds: number;
|
|
246
|
+
confirm_invite?: boolean | null;
|
|
247
|
+
resource_type?: ("document" | "conversation") | null;
|
|
248
|
+
resource_ext_id?: string | null;
|
|
249
|
+
confirm_share?: boolean | null;
|
|
250
|
+
}, "access_duration_seconds"> & {
|
|
251
|
+
access_duration_seconds?: number;
|
|
252
|
+
};
|
|
253
|
+
isError: true;
|
|
254
|
+
isIdle: false;
|
|
255
|
+
isPending: false;
|
|
256
|
+
isSuccess: false;
|
|
257
|
+
status: "error";
|
|
258
|
+
mutate: import("@tanstack/react-query").UseMutateFunction<{
|
|
259
|
+
user: import("@arbidocs/client").components["schemas"]["UserResponse"];
|
|
260
|
+
role: import("@arbidocs/client").components["schemas"]["WorkspaceRole"];
|
|
261
|
+
joined_at: string;
|
|
262
|
+
conversation_count: number;
|
|
263
|
+
document_count: number;
|
|
264
|
+
files_mb: number;
|
|
265
|
+
agent_ext_id?: string | null;
|
|
266
|
+
is_temporary: boolean;
|
|
267
|
+
access_expires_at?: string | null;
|
|
268
|
+
}[], Error, Omit<{
|
|
269
|
+
emails: string[];
|
|
270
|
+
role: import("@arbidocs/client").components["schemas"]["WorkspaceRole"];
|
|
271
|
+
workspace_key?: string | null;
|
|
272
|
+
workspace_ext_id?: string | null;
|
|
273
|
+
session_pubkey_b64?: string | null;
|
|
274
|
+
access_duration_seconds: number;
|
|
275
|
+
confirm_invite?: boolean | null;
|
|
276
|
+
resource_type?: ("document" | "conversation") | null;
|
|
277
|
+
resource_ext_id?: string | null;
|
|
278
|
+
confirm_share?: boolean | null;
|
|
279
|
+
}, "access_duration_seconds"> & {
|
|
280
|
+
access_duration_seconds?: number;
|
|
281
|
+
}, unknown>;
|
|
282
|
+
reset: () => void;
|
|
283
|
+
context: unknown;
|
|
284
|
+
failureCount: number;
|
|
285
|
+
failureReason: Error | null;
|
|
286
|
+
isPaused: boolean;
|
|
287
|
+
submittedAt: number;
|
|
288
|
+
} | {
|
|
289
|
+
mutateAsync: (variables: Omit<{
|
|
290
|
+
emails: string[];
|
|
291
|
+
role: import("@arbidocs/client").components["schemas"]["WorkspaceRole"];
|
|
292
|
+
workspace_key?: string | null;
|
|
293
|
+
workspace_ext_id?: string | null;
|
|
294
|
+
session_pubkey_b64?: string | null;
|
|
295
|
+
access_duration_seconds: number;
|
|
296
|
+
confirm_invite?: boolean | null;
|
|
297
|
+
resource_type?: ("document" | "conversation") | null;
|
|
298
|
+
resource_ext_id?: string | null;
|
|
299
|
+
confirm_share?: boolean | null;
|
|
300
|
+
}, "access_duration_seconds"> & {
|
|
301
|
+
access_duration_seconds?: number;
|
|
302
|
+
}, options?: import("@tanstack/query-core").MutateOptions<{
|
|
303
|
+
user: import("@arbidocs/client").components["schemas"]["UserResponse"];
|
|
304
|
+
role: import("@arbidocs/client").components["schemas"]["WorkspaceRole"];
|
|
305
|
+
joined_at: string;
|
|
306
|
+
conversation_count: number;
|
|
307
|
+
document_count: number;
|
|
308
|
+
files_mb: number;
|
|
309
|
+
agent_ext_id?: string | null;
|
|
310
|
+
is_temporary: boolean;
|
|
311
|
+
access_expires_at?: string | null;
|
|
312
|
+
}[], Error, Omit<{
|
|
313
|
+
emails: string[];
|
|
314
|
+
role: import("@arbidocs/client").components["schemas"]["WorkspaceRole"];
|
|
315
|
+
workspace_key?: string | null;
|
|
316
|
+
workspace_ext_id?: string | null;
|
|
317
|
+
session_pubkey_b64?: string | null;
|
|
318
|
+
access_duration_seconds: number;
|
|
319
|
+
confirm_invite?: boolean | null;
|
|
320
|
+
resource_type?: ("document" | "conversation") | null;
|
|
321
|
+
resource_ext_id?: string | null;
|
|
322
|
+
confirm_share?: boolean | null;
|
|
323
|
+
}, "access_duration_seconds"> & {
|
|
324
|
+
access_duration_seconds?: number;
|
|
325
|
+
}, unknown> | undefined) => Promise<{
|
|
326
|
+
user: import("@arbidocs/client").components["schemas"]["UserResponse"];
|
|
327
|
+
role: import("@arbidocs/client").components["schemas"]["WorkspaceRole"];
|
|
328
|
+
joined_at: string;
|
|
329
|
+
conversation_count: number;
|
|
330
|
+
document_count: number;
|
|
331
|
+
files_mb: number;
|
|
332
|
+
agent_ext_id?: string | null;
|
|
333
|
+
is_temporary: boolean;
|
|
334
|
+
access_expires_at?: string | null;
|
|
335
|
+
}[]>;
|
|
336
|
+
data: {
|
|
337
|
+
user: import("@arbidocs/client").components["schemas"]["UserResponse"];
|
|
338
|
+
role: import("@arbidocs/client").components["schemas"]["WorkspaceRole"];
|
|
339
|
+
joined_at: string;
|
|
340
|
+
conversation_count: number;
|
|
341
|
+
document_count: number;
|
|
342
|
+
files_mb: number;
|
|
343
|
+
agent_ext_id?: string | null;
|
|
344
|
+
is_temporary: boolean;
|
|
345
|
+
access_expires_at?: string | null;
|
|
346
|
+
}[];
|
|
347
|
+
error: null;
|
|
348
|
+
variables: Omit<{
|
|
349
|
+
emails: string[];
|
|
350
|
+
role: import("@arbidocs/client").components["schemas"]["WorkspaceRole"];
|
|
351
|
+
workspace_key?: string | null;
|
|
352
|
+
workspace_ext_id?: string | null;
|
|
353
|
+
session_pubkey_b64?: string | null;
|
|
354
|
+
access_duration_seconds: number;
|
|
355
|
+
confirm_invite?: boolean | null;
|
|
356
|
+
resource_type?: ("document" | "conversation") | null;
|
|
357
|
+
resource_ext_id?: string | null;
|
|
358
|
+
confirm_share?: boolean | null;
|
|
359
|
+
}, "access_duration_seconds"> & {
|
|
360
|
+
access_duration_seconds?: number;
|
|
361
|
+
};
|
|
362
|
+
isError: false;
|
|
363
|
+
isIdle: false;
|
|
364
|
+
isPending: false;
|
|
365
|
+
isSuccess: true;
|
|
366
|
+
status: "success";
|
|
367
|
+
mutate: import("@tanstack/react-query").UseMutateFunction<{
|
|
368
|
+
user: import("@arbidocs/client").components["schemas"]["UserResponse"];
|
|
369
|
+
role: import("@arbidocs/client").components["schemas"]["WorkspaceRole"];
|
|
370
|
+
joined_at: string;
|
|
371
|
+
conversation_count: number;
|
|
372
|
+
document_count: number;
|
|
373
|
+
files_mb: number;
|
|
374
|
+
agent_ext_id?: string | null;
|
|
375
|
+
is_temporary: boolean;
|
|
376
|
+
access_expires_at?: string | null;
|
|
377
|
+
}[], Error, Omit<{
|
|
378
|
+
emails: string[];
|
|
379
|
+
role: import("@arbidocs/client").components["schemas"]["WorkspaceRole"];
|
|
380
|
+
workspace_key?: string | null;
|
|
381
|
+
workspace_ext_id?: string | null;
|
|
382
|
+
session_pubkey_b64?: string | null;
|
|
383
|
+
access_duration_seconds: number;
|
|
384
|
+
confirm_invite?: boolean | null;
|
|
385
|
+
resource_type?: ("document" | "conversation") | null;
|
|
386
|
+
resource_ext_id?: string | null;
|
|
387
|
+
confirm_share?: boolean | null;
|
|
388
|
+
}, "access_duration_seconds"> & {
|
|
389
|
+
access_duration_seconds?: number;
|
|
390
|
+
}, unknown>;
|
|
391
|
+
reset: () => void;
|
|
392
|
+
context: unknown;
|
|
393
|
+
failureCount: number;
|
|
394
|
+
failureReason: Error | null;
|
|
395
|
+
isPaused: boolean;
|
|
396
|
+
submittedAt: number;
|
|
397
|
+
};
|
|
@@ -66,6 +66,9 @@ export declare function useConnectedWorkspaceList({ seed, filters: controlledFil
|
|
|
66
66
|
name: string;
|
|
67
67
|
created_by: string;
|
|
68
68
|
subscription: string;
|
|
69
|
+
is_personal: boolean;
|
|
70
|
+
subscription_ended_at?: string | null | undefined;
|
|
71
|
+
retention_delete_at?: string | null | undefined;
|
|
69
72
|
created_at: string;
|
|
70
73
|
quotas: {
|
|
71
74
|
storage_gb: {
|
|
@@ -114,11 +117,22 @@ export declare function useConnectedWorkspaceList({ seed, filters: controlledFil
|
|
|
114
117
|
packs_next?: number | null | undefined;
|
|
115
118
|
plan_name: string;
|
|
116
119
|
plan_ai_gbp: number;
|
|
120
|
+
plan_monthly_ex_vat_pence: number;
|
|
121
|
+
total_monthly_ex_vat_pence: number;
|
|
117
122
|
plan_storage_gb: number;
|
|
118
123
|
block_ai_gbp: number;
|
|
124
|
+
block_collaborators: number;
|
|
125
|
+
spend_cap_step_pence: number;
|
|
126
|
+
maximum_spend_cap_pence: number;
|
|
127
|
+
default_spend_cap_pence: number;
|
|
128
|
+
included_collaborators: number;
|
|
129
|
+
collaborator_blocks_min: number;
|
|
130
|
+
collaborator_block_price_ex_vat_pence: number;
|
|
131
|
+
collaborator_block_period_ex_vat_pence: number;
|
|
119
132
|
block_storage_gb: number;
|
|
120
133
|
ai_blocks: number;
|
|
121
134
|
storage_blocks: number;
|
|
135
|
+
collaborator_blocks: number;
|
|
122
136
|
legacy_ai_blocks: number;
|
|
123
137
|
legacy_storage_blocks: number;
|
|
124
138
|
legacy_block_ai_gbp: number;
|
|
@@ -127,6 +141,7 @@ export declare function useConnectedWorkspaceList({ seed, filters: controlledFil
|
|
|
127
141
|
blocks_storage_gb: number;
|
|
128
142
|
ai_blocks_next?: number | null | undefined;
|
|
129
143
|
storage_blocks_next?: number | null | undefined;
|
|
144
|
+
collaborator_blocks_next?: number | null | undefined;
|
|
130
145
|
storage_blocks_min: number;
|
|
131
146
|
auto_topup_threshold_gbp: number;
|
|
132
147
|
min_auto_topup_threshold_gbp: number;
|
|
@@ -158,11 +173,12 @@ export declare function useConnectedWorkspaceList({ seed, filters: controlledFil
|
|
|
158
173
|
period_end?: number | null | undefined;
|
|
159
174
|
ai_usage_reset_at?: number | null | undefined;
|
|
160
175
|
pending_interval?: ("month" | "year") | null | undefined;
|
|
176
|
+
renewal_error?: string | null | undefined;
|
|
161
177
|
billing_error?: string | null | undefined;
|
|
162
178
|
confirm_url?: string | null | undefined;
|
|
163
179
|
payment?: {
|
|
164
180
|
status: "pending" | "paid";
|
|
165
|
-
kind?: ("ai_usage" | "storage") | null | undefined;
|
|
181
|
+
kind?: ("ai_usage" | "storage" | "collaborators") | null | undefined;
|
|
166
182
|
amount_pence?: number | null | undefined;
|
|
167
183
|
amount_ex_vat_pence?: number | null | undefined;
|
|
168
184
|
tax_pence?: number | null | undefined;
|
package/dist/embed/index.cjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
'use strict';
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var chunk6XNWGOS3_cjs = require('../chunk-6XNWGOS3.cjs');
|
|
5
5
|
require('../chunk-PIWT2GCY.cjs');
|
|
6
6
|
require('../chunk-V2CKYM4B.cjs');
|
|
7
7
|
require('../chunk-RBI7WVEP.cjs');
|
|
@@ -12,7 +12,7 @@ require('../chunk-53RXGFJ6.cjs');
|
|
|
12
12
|
require('../chunk-QN5GTCPB.cjs');
|
|
13
13
|
require('../chunk-6KQVTMRL.cjs');
|
|
14
14
|
require('../chunk-IWLNDDPN.cjs');
|
|
15
|
-
require('../chunk-
|
|
15
|
+
require('../chunk-LM5CPXJO.cjs');
|
|
16
16
|
require('../chunk-OKUXM2N4.cjs');
|
|
17
17
|
require('../chunk-223D4727.cjs');
|
|
18
18
|
require('../chunk-SNUBQMIS.cjs');
|
|
@@ -86,27 +86,27 @@ require('../chunk-DES3K4SD.cjs');
|
|
|
86
86
|
|
|
87
87
|
Object.defineProperty(exports, "ArbiChat", {
|
|
88
88
|
enumerable: true,
|
|
89
|
-
get: function () { return
|
|
89
|
+
get: function () { return chunk6XNWGOS3_cjs.ArbiChat; }
|
|
90
90
|
});
|
|
91
91
|
Object.defineProperty(exports, "ConnectedCompactLogin", {
|
|
92
92
|
enumerable: true,
|
|
93
|
-
get: function () { return
|
|
93
|
+
get: function () { return chunk6XNWGOS3_cjs.ConnectedCompactLogin; }
|
|
94
94
|
});
|
|
95
95
|
Object.defineProperty(exports, "ConnectedEmbeddedChat", {
|
|
96
96
|
enumerable: true,
|
|
97
|
-
get: function () { return
|
|
97
|
+
get: function () { return chunk6XNWGOS3_cjs.ConnectedEmbeddedChat; }
|
|
98
98
|
});
|
|
99
99
|
Object.defineProperty(exports, "ConnectedLoginPage", {
|
|
100
100
|
enumerable: true,
|
|
101
|
-
get: function () { return
|
|
101
|
+
get: function () { return chunk6XNWGOS3_cjs.ConnectedLoginPage; }
|
|
102
102
|
});
|
|
103
103
|
Object.defineProperty(exports, "EmbeddedChatPanel", {
|
|
104
104
|
enumerable: true,
|
|
105
|
-
get: function () { return
|
|
105
|
+
get: function () { return chunk6XNWGOS3_cjs.EmbeddedChatPanel; }
|
|
106
106
|
});
|
|
107
107
|
Object.defineProperty(exports, "defaultHost", {
|
|
108
108
|
enumerable: true,
|
|
109
|
-
get: function () { return
|
|
109
|
+
get: function () { return chunk6XNWGOS3_cjs.defaultHost; }
|
|
110
110
|
});
|
|
111
111
|
Object.defineProperty(exports, "useConnection", {
|
|
112
112
|
enumerable: true,
|
package/dist/embed/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
export { ArbiChat, ConnectedCompactLogin, ConnectedEmbeddedChat, ConnectedLoginPage, EmbeddedChatPanel, defaultHost } from '../chunk-
|
|
2
|
+
export { ArbiChat, ConnectedCompactLogin, ConnectedEmbeddedChat, ConnectedLoginPage, EmbeddedChatPanel, defaultHost } from '../chunk-QFKL4HV2.js';
|
|
3
3
|
import '../chunk-GARDQALH.js';
|
|
4
4
|
import '../chunk-7ONU7EWY.js';
|
|
5
5
|
import '../chunk-E26MNOLG.js';
|
|
@@ -10,7 +10,7 @@ import '../chunk-AYIPCUPG.js';
|
|
|
10
10
|
import '../chunk-BMHW7WTF.js';
|
|
11
11
|
import '../chunk-3PV25ICC.js';
|
|
12
12
|
import '../chunk-GOJ5GHFS.js';
|
|
13
|
-
import '../chunk-
|
|
13
|
+
import '../chunk-632JXVXY.js';
|
|
14
14
|
import '../chunk-JWUCDK2F.js';
|
|
15
15
|
import '../chunk-RC6VTY2H.js';
|
|
16
16
|
import '../chunk-OHRWYRTH.js';
|
|
@@ -34,7 +34,7 @@ export interface PlanCardPrice {
|
|
|
34
34
|
monthlyStrike?: string;
|
|
35
35
|
/** Effective monthly price. */
|
|
36
36
|
monthly: string;
|
|
37
|
-
/** After the per-month price, e.g. "
|
|
37
|
+
/** After the per-month price, e.g. "ex VAT" when the headline is ex VAT. */
|
|
38
38
|
taxLabel?: string;
|
|
39
39
|
/** Small print under the price, e.g. "£42/mo incl. UK VAT". */
|
|
40
40
|
note?: string;
|
|
@@ -49,7 +49,7 @@ export interface PlanCardView {
|
|
|
49
49
|
isSelected?: boolean;
|
|
50
50
|
isPopular?: boolean;
|
|
51
51
|
price?: PlanCardPrice;
|
|
52
|
-
/** Entitlement lines, e.g. "£10 of AI
|
|
52
|
+
/** Entitlement lines, e.g. "£10 of AI credits / mo". */
|
|
53
53
|
features: string[];
|
|
54
54
|
}
|
|
55
55
|
export interface PlanCardProps {
|
|
@@ -62,6 +62,8 @@ export declare const DEFAULT_SUBSCRIPTION_STATUS_LABELS: SubscriptionStatusLabel
|
|
|
62
62
|
/** Expanded project status: reset date, canceling notice, stacked quota meters. */
|
|
63
63
|
export declare function SubscriptionStatusView({ resetDate, isCanceling, meters, testIdPrefix, labels, }: SubscriptionStatusViewProps): import("react").JSX.Element;
|
|
64
64
|
export interface PlanDialogFrameProps {
|
|
65
|
+
compact?: boolean;
|
|
66
|
+
className?: string;
|
|
65
67
|
open: boolean;
|
|
66
68
|
onOpenChange: (open: boolean) => void;
|
|
67
69
|
title: ReactNode;
|
|
@@ -78,7 +80,7 @@ export interface PlanDialogFrameProps {
|
|
|
78
80
|
}>;
|
|
79
81
|
}
|
|
80
82
|
/** The one plan-picker dialog: offer title + reason, the project it applies to, then the flow. */
|
|
81
|
-
export declare function PlanDialogFrame({ open, onOpenChange, title, description, isDescriptionHidden, projectName, projectTestId, children, labels, }: PlanDialogFrameProps): import("react").JSX.Element;
|
|
83
|
+
export declare function PlanDialogFrame({ compact, className, open, onOpenChange, title, description, isDescriptionHidden, projectName, projectTestId, children, labels, }: PlanDialogFrameProps): import("react").JSX.Element;
|
|
82
84
|
export interface CheckoutDialogFrameProps {
|
|
83
85
|
open: boolean;
|
|
84
86
|
onOpenChange: (open: boolean) => void;
|