@arbidocs/client 0.3.87 → 0.3.89
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 +104 -2
- package/dist/index.d.ts +104 -2
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -1913,6 +1913,44 @@ interface paths {
|
|
|
1913
1913
|
patch: operations['update_notifications'];
|
|
1914
1914
|
trace?: never;
|
|
1915
1915
|
};
|
|
1916
|
+
'/v1/notifications/access-request': {
|
|
1917
|
+
parameters: {
|
|
1918
|
+
query?: never;
|
|
1919
|
+
header?: never;
|
|
1920
|
+
path?: never;
|
|
1921
|
+
cookie?: never;
|
|
1922
|
+
};
|
|
1923
|
+
get?: never;
|
|
1924
|
+
put?: never;
|
|
1925
|
+
/**
|
|
1926
|
+
* Request Workspace Access
|
|
1927
|
+
* @description Ask another user (a potential workspace owner) to grant you workspace access.
|
|
1928
|
+
*
|
|
1929
|
+
* ``workspace_ext_id`` is optional. Usually the requester is RLS-blocked from
|
|
1930
|
+
* the recipient's workspaces and names none, so the notification is agnostic and
|
|
1931
|
+
* the recipient's client picks the workspace; but a requester who already knows
|
|
1932
|
+
* the target (e.g. the email gateway receiving mail at wrk-xxxx@arbidocs.com) may
|
|
1933
|
+
* attach it so the recipient's UI pre-selects it. The id only sticks if the
|
|
1934
|
+
* requester's session can resolve it under RLS — otherwise it silently falls back
|
|
1935
|
+
* to agnostic. Either way the recipient drives role + temporary/permanent and
|
|
1936
|
+
* then calls POST /workspace/{ext_id}/users to actually grant.
|
|
1937
|
+
*
|
|
1938
|
+
* ``content`` is an opaque base64 blob the requester's client E2E-encrypts with
|
|
1939
|
+
* the requester↔recipient shared key (same scheme as a DM). It carries the
|
|
1940
|
+
* requester's live session public key (so the recipient can mint a temporary,
|
|
1941
|
+
* session-scoped grant) plus an optional note. The server never reads it.
|
|
1942
|
+
*
|
|
1943
|
+
* Bilateral like every notification: both parties see the row. Delivered over
|
|
1944
|
+
* WebSocket if the recipient is online; otherwise an offline email tells them a
|
|
1945
|
+
* request is waiting to review.
|
|
1946
|
+
*/
|
|
1947
|
+
post: operations['create_access_request'];
|
|
1948
|
+
delete?: never;
|
|
1949
|
+
options?: never;
|
|
1950
|
+
head?: never;
|
|
1951
|
+
patch?: never;
|
|
1952
|
+
trace?: never;
|
|
1953
|
+
};
|
|
1916
1954
|
'/v1/configs/schema': {
|
|
1917
1955
|
parameters: {
|
|
1918
1956
|
query?: never;
|
|
@@ -2466,7 +2504,7 @@ interface components {
|
|
|
2466
2504
|
context?: components['schemas']['TokenBudgetContext'] | null;
|
|
2467
2505
|
/**
|
|
2468
2506
|
* Outcome
|
|
2469
|
-
* @description Tool execution outcome (e.g. '15
|
|
2507
|
+
* @description Tool execution outcome (e.g. '15 passages retrieved'). Sent as a follow-up event with the same index after tool execution.
|
|
2470
2508
|
*/
|
|
2471
2509
|
outcome?: string | null;
|
|
2472
2510
|
/**
|
|
@@ -4469,6 +4507,11 @@ interface components {
|
|
|
4469
4507
|
* @default true
|
|
4470
4508
|
*/
|
|
4471
4509
|
workspace_added: boolean;
|
|
4510
|
+
/**
|
|
4511
|
+
* Workspace Access Request
|
|
4512
|
+
* @default true
|
|
4513
|
+
*/
|
|
4514
|
+
workspace_access_request: boolean;
|
|
4472
4515
|
/**
|
|
4473
4516
|
* Contact Accepted
|
|
4474
4517
|
* @default true
|
|
@@ -4494,6 +4537,8 @@ interface components {
|
|
|
4494
4537
|
messages?: boolean | null;
|
|
4495
4538
|
/** Workspace Added */
|
|
4496
4539
|
workspace_added?: boolean | null;
|
|
4540
|
+
/** Workspace Access Request */
|
|
4541
|
+
workspace_access_request?: boolean | null;
|
|
4497
4542
|
/** Contact Accepted */
|
|
4498
4543
|
contact_accepted?: boolean | null;
|
|
4499
4544
|
/** Referral Reward */
|
|
@@ -5541,7 +5586,7 @@ interface components {
|
|
|
5541
5586
|
* Type is self-descriptive, no need to parse content field.
|
|
5542
5587
|
* @enum {string}
|
|
5543
5588
|
*/
|
|
5544
|
-
NotificationType: 'user_message' | 'workspaceuser_added_owner' | 'workspaceuser_added_collaborator' | 'workspaceuser_added_guest' | 'workspaceuser_removed' | 'workspaceuser_updated_owner' | 'workspaceuser_updated_collaborator' | 'workspaceuser_updated_guest' | 'contact_accepted' | 'signup_reward' | 'referral_reward' | 'email_reply' | 'quota_threshold_50' | 'quota_threshold_90' | 'quota_threshold_100' | 'doc_shared';
|
|
5589
|
+
NotificationType: 'user_message' | 'workspaceuser_added_owner' | 'workspaceuser_added_collaborator' | 'workspaceuser_added_guest' | 'workspaceuser_removed' | 'workspaceuser_updated_owner' | 'workspaceuser_updated_collaborator' | 'workspaceuser_updated_guest' | 'contact_accepted' | 'signup_reward' | 'referral_reward' | 'email_reply' | 'quota_threshold_50' | 'quota_threshold_90' | 'quota_threshold_100' | 'doc_shared' | 'workspace_access_request';
|
|
5545
5590
|
/**
|
|
5546
5591
|
* NotificationUpdate
|
|
5547
5592
|
* @description Single notification update for bulk PATCH.
|
|
@@ -6276,6 +6321,30 @@ interface components {
|
|
|
6276
6321
|
/** Detail */
|
|
6277
6322
|
detail: string;
|
|
6278
6323
|
};
|
|
6324
|
+
/**
|
|
6325
|
+
* RequestWorkspaceAccessRequest
|
|
6326
|
+
* @description Ask another user (a potential workspace owner) to grant you access.
|
|
6327
|
+
*
|
|
6328
|
+
* ``workspace_ext_id`` is optional: omit it when the requester can't see the
|
|
6329
|
+
* recipient's workspaces under RLS (the recipient's client picks one), or pass
|
|
6330
|
+
* it when the requester already knows the target (e.g. the email gateway, which
|
|
6331
|
+
* learns it from a wrk-xxxx@… address) so the recipient's UI pre-selects it. It
|
|
6332
|
+
* only sticks if the requester's session can actually resolve the workspace —
|
|
6333
|
+
* an unresolvable id silently falls back to agnostic, never leaking existence.
|
|
6334
|
+
*
|
|
6335
|
+
* ``content`` is a base64 blob the requester's client E2E-encrypts with the
|
|
6336
|
+
* requester↔recipient shared key (same scheme as a DM); it carries the
|
|
6337
|
+
* requester's live session public key (for a temporary, session-scoped grant)
|
|
6338
|
+
* plus an optional note. The server stores it opaquely.
|
|
6339
|
+
*/
|
|
6340
|
+
RequestWorkspaceAccessRequest: {
|
|
6341
|
+
/** Recipient Ext Id */
|
|
6342
|
+
recipient_ext_id: string;
|
|
6343
|
+
/** Content */
|
|
6344
|
+
content: string;
|
|
6345
|
+
/** Workspace Ext Id */
|
|
6346
|
+
workspace_ext_id?: string | null;
|
|
6347
|
+
};
|
|
6279
6348
|
/**
|
|
6280
6349
|
* RerankerConfig
|
|
6281
6350
|
* @description Wire/storage shape for reranker settings.
|
|
@@ -11673,6 +11742,39 @@ interface operations {
|
|
|
11673
11742
|
};
|
|
11674
11743
|
};
|
|
11675
11744
|
};
|
|
11745
|
+
create_access_request: {
|
|
11746
|
+
parameters: {
|
|
11747
|
+
query?: never;
|
|
11748
|
+
header?: never;
|
|
11749
|
+
path?: never;
|
|
11750
|
+
cookie?: never;
|
|
11751
|
+
};
|
|
11752
|
+
requestBody: {
|
|
11753
|
+
content: {
|
|
11754
|
+
'application/json': components['schemas']['RequestWorkspaceAccessRequest'];
|
|
11755
|
+
};
|
|
11756
|
+
};
|
|
11757
|
+
responses: {
|
|
11758
|
+
/** @description Successful Response */
|
|
11759
|
+
201: {
|
|
11760
|
+
headers: {
|
|
11761
|
+
[name: string]: unknown;
|
|
11762
|
+
};
|
|
11763
|
+
content: {
|
|
11764
|
+
'application/json': components['schemas']['NotificationResponse'];
|
|
11765
|
+
};
|
|
11766
|
+
};
|
|
11767
|
+
/** @description Validation Error */
|
|
11768
|
+
422: {
|
|
11769
|
+
headers: {
|
|
11770
|
+
[name: string]: unknown;
|
|
11771
|
+
};
|
|
11772
|
+
content: {
|
|
11773
|
+
'application/json': components['schemas']['HTTPValidationError'];
|
|
11774
|
+
};
|
|
11775
|
+
};
|
|
11776
|
+
};
|
|
11777
|
+
};
|
|
11676
11778
|
get_config_schema: {
|
|
11677
11779
|
parameters: {
|
|
11678
11780
|
query?: never;
|
package/dist/index.d.ts
CHANGED
|
@@ -1913,6 +1913,44 @@ interface paths {
|
|
|
1913
1913
|
patch: operations['update_notifications'];
|
|
1914
1914
|
trace?: never;
|
|
1915
1915
|
};
|
|
1916
|
+
'/v1/notifications/access-request': {
|
|
1917
|
+
parameters: {
|
|
1918
|
+
query?: never;
|
|
1919
|
+
header?: never;
|
|
1920
|
+
path?: never;
|
|
1921
|
+
cookie?: never;
|
|
1922
|
+
};
|
|
1923
|
+
get?: never;
|
|
1924
|
+
put?: never;
|
|
1925
|
+
/**
|
|
1926
|
+
* Request Workspace Access
|
|
1927
|
+
* @description Ask another user (a potential workspace owner) to grant you workspace access.
|
|
1928
|
+
*
|
|
1929
|
+
* ``workspace_ext_id`` is optional. Usually the requester is RLS-blocked from
|
|
1930
|
+
* the recipient's workspaces and names none, so the notification is agnostic and
|
|
1931
|
+
* the recipient's client picks the workspace; but a requester who already knows
|
|
1932
|
+
* the target (e.g. the email gateway receiving mail at wrk-xxxx@arbidocs.com) may
|
|
1933
|
+
* attach it so the recipient's UI pre-selects it. The id only sticks if the
|
|
1934
|
+
* requester's session can resolve it under RLS — otherwise it silently falls back
|
|
1935
|
+
* to agnostic. Either way the recipient drives role + temporary/permanent and
|
|
1936
|
+
* then calls POST /workspace/{ext_id}/users to actually grant.
|
|
1937
|
+
*
|
|
1938
|
+
* ``content`` is an opaque base64 blob the requester's client E2E-encrypts with
|
|
1939
|
+
* the requester↔recipient shared key (same scheme as a DM). It carries the
|
|
1940
|
+
* requester's live session public key (so the recipient can mint a temporary,
|
|
1941
|
+
* session-scoped grant) plus an optional note. The server never reads it.
|
|
1942
|
+
*
|
|
1943
|
+
* Bilateral like every notification: both parties see the row. Delivered over
|
|
1944
|
+
* WebSocket if the recipient is online; otherwise an offline email tells them a
|
|
1945
|
+
* request is waiting to review.
|
|
1946
|
+
*/
|
|
1947
|
+
post: operations['create_access_request'];
|
|
1948
|
+
delete?: never;
|
|
1949
|
+
options?: never;
|
|
1950
|
+
head?: never;
|
|
1951
|
+
patch?: never;
|
|
1952
|
+
trace?: never;
|
|
1953
|
+
};
|
|
1916
1954
|
'/v1/configs/schema': {
|
|
1917
1955
|
parameters: {
|
|
1918
1956
|
query?: never;
|
|
@@ -2466,7 +2504,7 @@ interface components {
|
|
|
2466
2504
|
context?: components['schemas']['TokenBudgetContext'] | null;
|
|
2467
2505
|
/**
|
|
2468
2506
|
* Outcome
|
|
2469
|
-
* @description Tool execution outcome (e.g. '15
|
|
2507
|
+
* @description Tool execution outcome (e.g. '15 passages retrieved'). Sent as a follow-up event with the same index after tool execution.
|
|
2470
2508
|
*/
|
|
2471
2509
|
outcome?: string | null;
|
|
2472
2510
|
/**
|
|
@@ -4469,6 +4507,11 @@ interface components {
|
|
|
4469
4507
|
* @default true
|
|
4470
4508
|
*/
|
|
4471
4509
|
workspace_added: boolean;
|
|
4510
|
+
/**
|
|
4511
|
+
* Workspace Access Request
|
|
4512
|
+
* @default true
|
|
4513
|
+
*/
|
|
4514
|
+
workspace_access_request: boolean;
|
|
4472
4515
|
/**
|
|
4473
4516
|
* Contact Accepted
|
|
4474
4517
|
* @default true
|
|
@@ -4494,6 +4537,8 @@ interface components {
|
|
|
4494
4537
|
messages?: boolean | null;
|
|
4495
4538
|
/** Workspace Added */
|
|
4496
4539
|
workspace_added?: boolean | null;
|
|
4540
|
+
/** Workspace Access Request */
|
|
4541
|
+
workspace_access_request?: boolean | null;
|
|
4497
4542
|
/** Contact Accepted */
|
|
4498
4543
|
contact_accepted?: boolean | null;
|
|
4499
4544
|
/** Referral Reward */
|
|
@@ -5541,7 +5586,7 @@ interface components {
|
|
|
5541
5586
|
* Type is self-descriptive, no need to parse content field.
|
|
5542
5587
|
* @enum {string}
|
|
5543
5588
|
*/
|
|
5544
|
-
NotificationType: 'user_message' | 'workspaceuser_added_owner' | 'workspaceuser_added_collaborator' | 'workspaceuser_added_guest' | 'workspaceuser_removed' | 'workspaceuser_updated_owner' | 'workspaceuser_updated_collaborator' | 'workspaceuser_updated_guest' | 'contact_accepted' | 'signup_reward' | 'referral_reward' | 'email_reply' | 'quota_threshold_50' | 'quota_threshold_90' | 'quota_threshold_100' | 'doc_shared';
|
|
5589
|
+
NotificationType: 'user_message' | 'workspaceuser_added_owner' | 'workspaceuser_added_collaborator' | 'workspaceuser_added_guest' | 'workspaceuser_removed' | 'workspaceuser_updated_owner' | 'workspaceuser_updated_collaborator' | 'workspaceuser_updated_guest' | 'contact_accepted' | 'signup_reward' | 'referral_reward' | 'email_reply' | 'quota_threshold_50' | 'quota_threshold_90' | 'quota_threshold_100' | 'doc_shared' | 'workspace_access_request';
|
|
5545
5590
|
/**
|
|
5546
5591
|
* NotificationUpdate
|
|
5547
5592
|
* @description Single notification update for bulk PATCH.
|
|
@@ -6276,6 +6321,30 @@ interface components {
|
|
|
6276
6321
|
/** Detail */
|
|
6277
6322
|
detail: string;
|
|
6278
6323
|
};
|
|
6324
|
+
/**
|
|
6325
|
+
* RequestWorkspaceAccessRequest
|
|
6326
|
+
* @description Ask another user (a potential workspace owner) to grant you access.
|
|
6327
|
+
*
|
|
6328
|
+
* ``workspace_ext_id`` is optional: omit it when the requester can't see the
|
|
6329
|
+
* recipient's workspaces under RLS (the recipient's client picks one), or pass
|
|
6330
|
+
* it when the requester already knows the target (e.g. the email gateway, which
|
|
6331
|
+
* learns it from a wrk-xxxx@… address) so the recipient's UI pre-selects it. It
|
|
6332
|
+
* only sticks if the requester's session can actually resolve the workspace —
|
|
6333
|
+
* an unresolvable id silently falls back to agnostic, never leaking existence.
|
|
6334
|
+
*
|
|
6335
|
+
* ``content`` is a base64 blob the requester's client E2E-encrypts with the
|
|
6336
|
+
* requester↔recipient shared key (same scheme as a DM); it carries the
|
|
6337
|
+
* requester's live session public key (for a temporary, session-scoped grant)
|
|
6338
|
+
* plus an optional note. The server stores it opaquely.
|
|
6339
|
+
*/
|
|
6340
|
+
RequestWorkspaceAccessRequest: {
|
|
6341
|
+
/** Recipient Ext Id */
|
|
6342
|
+
recipient_ext_id: string;
|
|
6343
|
+
/** Content */
|
|
6344
|
+
content: string;
|
|
6345
|
+
/** Workspace Ext Id */
|
|
6346
|
+
workspace_ext_id?: string | null;
|
|
6347
|
+
};
|
|
6279
6348
|
/**
|
|
6280
6349
|
* RerankerConfig
|
|
6281
6350
|
* @description Wire/storage shape for reranker settings.
|
|
@@ -11673,6 +11742,39 @@ interface operations {
|
|
|
11673
11742
|
};
|
|
11674
11743
|
};
|
|
11675
11744
|
};
|
|
11745
|
+
create_access_request: {
|
|
11746
|
+
parameters: {
|
|
11747
|
+
query?: never;
|
|
11748
|
+
header?: never;
|
|
11749
|
+
path?: never;
|
|
11750
|
+
cookie?: never;
|
|
11751
|
+
};
|
|
11752
|
+
requestBody: {
|
|
11753
|
+
content: {
|
|
11754
|
+
'application/json': components['schemas']['RequestWorkspaceAccessRequest'];
|
|
11755
|
+
};
|
|
11756
|
+
};
|
|
11757
|
+
responses: {
|
|
11758
|
+
/** @description Successful Response */
|
|
11759
|
+
201: {
|
|
11760
|
+
headers: {
|
|
11761
|
+
[name: string]: unknown;
|
|
11762
|
+
};
|
|
11763
|
+
content: {
|
|
11764
|
+
'application/json': components['schemas']['NotificationResponse'];
|
|
11765
|
+
};
|
|
11766
|
+
};
|
|
11767
|
+
/** @description Validation Error */
|
|
11768
|
+
422: {
|
|
11769
|
+
headers: {
|
|
11770
|
+
[name: string]: unknown;
|
|
11771
|
+
};
|
|
11772
|
+
content: {
|
|
11773
|
+
'application/json': components['schemas']['HTTPValidationError'];
|
|
11774
|
+
};
|
|
11775
|
+
};
|
|
11776
|
+
};
|
|
11777
|
+
};
|
|
11676
11778
|
get_config_schema: {
|
|
11677
11779
|
parameters: {
|
|
11678
11780
|
query?: never;
|
package/package.json
CHANGED