@arbidocs/react 0.4.109 → 0.4.111

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.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  import * as React$1 from 'react';
2
2
  import React__default, { ReactNode, ComponentType } from 'react';
3
3
  import * as _arbidocs_sdk_browser from '@arbidocs/sdk/browser';
4
- import { ArbiOptions, QueryOptions, Arbi, SSEStreamResult, SSEStreamStartData, UserMessageEvent, MessageMetadataPayload, ResponseOutputItemDoneEvent, ArtifactEvent, TagListQuery, StepActionRequest, UpdateConversationRequest, UpdateWorkflowRequest, TagKind, TagKindSchema, TagFieldDefinition, ProjectEventKind, ProjectUpdateRequest, LoginProfile, settings } from '@arbidocs/sdk/browser';
4
+ import { ArbiOptions, QueryOptions, Arbi, SSEStreamResult, SSEStreamStartData, UserMessageEvent, MessageMetadataPayload, ResponseOutputItemDoneEvent, ArtifactEvent, TagListQuery, StepActionRequest, UpdateConversationRequest, UpdateWorkflowRequest, TagKind, TagKindSchema, TagFieldDefinition, ProjectEventKind, ProjectUpdateRequest, contacts, LoginProfile, settings, DecryptedChatMessage } from '@arbidocs/sdk/browser';
5
5
  export { ActivityKind, ActivityResponse, AgentStepEvent, Arbi, ArbiError, ArbiOptions, ArtifactEvent, AuthMode, ConversationResponse, CreateFactRequest, CreateWorkRequest, CreateWorkflowRequest, DEFAULT_AI_USD_PER_GBP, FactResponse, FactSearchRequest, FactSearchResponse, LoginProfile, MessageMetadataPayload, OutputTokensDetails, PendingAuthResponse, PlanWorkRequest, ProjectInvoicesResponse, ProjectUsageResponse, QueryOptions, ResponseCompletedEvent, ResponseContentPartAddedEvent, ResponseCreatedEvent, ResponseFailedEvent, ResponseOutputItemAddedEvent, ResponseOutputItemDoneEvent, ResponseOutputTextDeltaEvent, ResponseOutputTextDoneEvent, ResponseUsage, SSEStreamCallbacks, SSEStreamResult, SSEStreamStartData, SkillSummary, TaskPlan, UpdateConversationRequest, UpdateWorkflowRequest, UserDailyUsageResponse, UserInputRequestEvent, UserMessageEvent, WorkStatus, WorkflowAuthMode, WorkflowResponse, WorkflowRunResponse, formatGbp, formatGbpPerMillionTokens, usdToGbp } from '@arbidocs/sdk/browser';
6
6
  import * as _arbidocs_client from '@arbidocs/client';
7
7
  import { WebSocketServerMessage, WsTaskUpdateMessage, WsPresenceUpdateMessage, components } from '@arbidocs/client';
@@ -756,6 +756,7 @@ declare function useConversations(workspaceId: string | undefined, options?: {
756
756
  last_message_updated_at?: string | null | undefined;
757
757
  last_message_status?: string | null | undefined;
758
758
  assistant_mode: _arbidocs_client.components["schemas"]["AssistantMode"];
759
+ meeting_call_ext_id?: string | null | undefined;
759
760
  status?: (_arbidocs_client.components["schemas"]["WorkStatus"] | null) | undefined;
760
761
  description?: string | null | undefined;
761
762
  due_at?: string | null | undefined;
@@ -1052,6 +1053,12 @@ declare function useConversationThreads(workspaceId: string | undefined, convers
1052
1053
  name: "workflow_step";
1053
1054
  description: string;
1054
1055
  workflow_step: string;
1056
+ } | {
1057
+ name: "transcript_segment";
1058
+ description: string;
1059
+ segment_id: string;
1060
+ speaker_ext_id: string;
1061
+ started_at?: string | null | undefined;
1055
1062
  } | {
1056
1063
  name: "mail_context";
1057
1064
  description: string;
@@ -1296,9 +1303,7 @@ declare function useActivity(options?: {
1296
1303
  is_identity_verified: boolean;
1297
1304
  };
1298
1305
  workspace_ext_id?: string | null | undefined;
1299
- dm_context_only: boolean;
1300
1306
  content?: string | null | undefined;
1301
- attachments?: string | null | undefined;
1302
1307
  conversation_ext_id?: string | null | undefined;
1303
1308
  message_ext_id?: string | null | undefined;
1304
1309
  read: boolean;
@@ -2129,6 +2134,7 @@ declare function useUpdateConversation(): _tanstack_react_query.UseMutationResul
2129
2134
  last_message_updated_at?: string | null;
2130
2135
  last_message_status?: string | null;
2131
2136
  assistant_mode: _arbidocs_client.components["schemas"]["AssistantMode"];
2137
+ meeting_call_ext_id?: string | null;
2132
2138
  status?: _arbidocs_client.components["schemas"]["WorkStatus"] | null;
2133
2139
  description?: string | null;
2134
2140
  due_at?: string | null;
@@ -2178,6 +2184,7 @@ declare function useCreateWork(): _tanstack_react_query.UseMutationResult<{
2178
2184
  last_message_updated_at?: string | null;
2179
2185
  last_message_status?: string | null;
2180
2186
  assistant_mode: _arbidocs_client.components["schemas"]["AssistantMode"];
2187
+ meeting_call_ext_id?: string | null;
2181
2188
  status?: _arbidocs_client.components["schemas"]["WorkStatus"] | null;
2182
2189
  description?: string | null;
2183
2190
  due_at?: string | null;
@@ -2239,6 +2246,7 @@ declare function useRunConversation(): _tanstack_react_query.UseMutationResult<{
2239
2246
  last_message_updated_at?: string | null;
2240
2247
  last_message_status?: string | null;
2241
2248
  assistant_mode: _arbidocs_client.components["schemas"]["AssistantMode"];
2249
+ meeting_call_ext_id?: string | null;
2242
2250
  status?: _arbidocs_client.components["schemas"]["WorkStatus"] | null;
2243
2251
  description?: string | null;
2244
2252
  due_at?: string | null;
@@ -2285,6 +2293,7 @@ declare function useActOnStep(): _tanstack_react_query.UseMutationResult<{
2285
2293
  last_message_updated_at?: string | null;
2286
2294
  last_message_status?: string | null;
2287
2295
  assistant_mode: _arbidocs_client.components["schemas"]["AssistantMode"];
2296
+ meeting_call_ext_id?: string | null;
2288
2297
  status?: _arbidocs_client.components["schemas"]["WorkStatus"] | null;
2289
2298
  description?: string | null;
2290
2299
  due_at?: string | null;
@@ -2335,6 +2344,7 @@ declare function useSendBackStep(): _tanstack_react_query.UseMutationResult<{
2335
2344
  last_message_updated_at?: string | null;
2336
2345
  last_message_status?: string | null;
2337
2346
  assistant_mode: _arbidocs_client.components["schemas"]["AssistantMode"];
2347
+ meeting_call_ext_id?: string | null;
2338
2348
  status?: _arbidocs_client.components["schemas"]["WorkStatus"] | null;
2339
2349
  description?: string | null;
2340
2350
  due_at?: string | null;
@@ -2988,79 +2998,48 @@ declare function useProjectConversationUsage(projectExtId: string | undefined, m
2988
2998
  unattributed: _arbidocs_client.components["schemas"]["TagBreakdown"];
2989
2999
  }>, Error>;
2990
3000
 
2991
- /**
2992
- * Contacts: the user's colleagues and pending invitations.
2993
- *
2994
- * Shares `arbiQueryKeys.contacts()` with `useDirectMessages`, so a change made here refreshes the
2995
- * conversation rail on its own. The parts that turn an email list into a request and the backend
2996
- * outcome into a sentence live in `@arbidocs/blocks/collaboration` (`AddContactsForm`).
2997
- */
2998
- /** The user's contacts, registered and pending. */
3001
+ /** Every contact: registered, invited and plain cards. */
2999
3002
  declare function useContacts(options?: {
3000
3003
  enabled?: boolean;
3001
3004
  }): _tanstack_react_query.UseQueryResult<NoInfer<{
3002
- external_id?: string | null | undefined;
3003
- email: string;
3004
- user?: {
3005
- external_id: string;
3006
- parent_ext_id?: string | null | undefined;
3007
- email: string;
3008
- given_name: string;
3009
- family_name?: string | null | undefined;
3010
- picture?: string | null | undefined;
3011
- encryption_public_key: string;
3012
- is_sso: boolean;
3013
- is_identity_verified: boolean;
3014
- } | null | undefined;
3015
- status: "invitation_pending" | "invitation_expired" | "registered" | "failed";
3005
+ external_id?: string | null;
3006
+ email?: string | null;
3007
+ user?: _arbidocs_client.components["schemas"]["UserResponse"] | null;
3008
+ status: ("registered" | "invited" | "expired" | "card") | "failed";
3009
+ card?: _arbidocs_client.components["schemas"]["ContactCard"] | null;
3010
+ address_book_ext_id?: string | null;
3016
3011
  created_at: string;
3017
- shared_workspace_ext_id?: string | null | undefined;
3018
- outcome?: ("invited" | "reinvited" | "not_resent_still_pending" | "contact_added" | "already_contact" | "failed") | null | undefined;
3019
- outcome_detail?: string | null | undefined;
3012
+ shared_workspace_ext_id?: string | null;
3013
+ outcome?: ("invited" | "reinvited" | "not_resent_still_pending" | "contact_added" | "already_contact" | "failed") | null;
3014
+ outcome_detail?: string | null;
3020
3015
  }[]>, Error>;
3021
- /** Contacts still waiting to join (an invitation sent or expired); `Invite again` re-adds them. */
3016
+ /** Contacts still waiting to join (an invitation sent or expired); `Invite again` re-invites them. */
3022
3017
  declare function usePendingContacts(options?: {
3023
3018
  enabled?: boolean;
3024
3019
  }): {
3025
3020
  pending: {
3026
- external_id?: string | null | undefined;
3027
- email: string;
3028
- user?: {
3029
- external_id: string;
3030
- parent_ext_id?: string | null | undefined;
3031
- email: string;
3032
- given_name: string;
3033
- family_name?: string | null | undefined;
3034
- picture?: string | null | undefined;
3035
- encryption_public_key: string;
3036
- is_sso: boolean;
3037
- is_identity_verified: boolean;
3038
- } | null | undefined;
3039
- status: "invitation_pending" | "invitation_expired" | "registered" | "failed";
3021
+ external_id?: string | null;
3022
+ email?: string | null;
3023
+ user?: _arbidocs_client.components["schemas"]["UserResponse"] | null;
3024
+ status: ("registered" | "invited" | "expired" | "card") | "failed";
3025
+ card?: _arbidocs_client.components["schemas"]["ContactCard"] | null;
3026
+ address_book_ext_id?: string | null;
3040
3027
  created_at: string;
3041
- shared_workspace_ext_id?: string | null | undefined;
3042
- outcome?: ("invited" | "reinvited" | "not_resent_still_pending" | "contact_added" | "already_contact" | "failed") | null | undefined;
3043
- outcome_detail?: string | null | undefined;
3028
+ shared_workspace_ext_id?: string | null;
3029
+ outcome?: ("invited" | "reinvited" | "not_resent_still_pending" | "contact_added" | "already_contact" | "failed") | null;
3030
+ outcome_detail?: string | null;
3044
3031
  }[];
3045
3032
  data: NoInfer<{
3046
- external_id?: string | null | undefined;
3047
- email: string;
3048
- user?: {
3049
- external_id: string;
3050
- parent_ext_id?: string | null | undefined;
3051
- email: string;
3052
- given_name: string;
3053
- family_name?: string | null | undefined;
3054
- picture?: string | null | undefined;
3055
- encryption_public_key: string;
3056
- is_sso: boolean;
3057
- is_identity_verified: boolean;
3058
- } | null | undefined;
3059
- status: "invitation_pending" | "invitation_expired" | "registered" | "failed";
3033
+ external_id?: string | null;
3034
+ email?: string | null;
3035
+ user?: _arbidocs_client.components["schemas"]["UserResponse"] | null;
3036
+ status: ("registered" | "invited" | "expired" | "card") | "failed";
3037
+ card?: _arbidocs_client.components["schemas"]["ContactCard"] | null;
3038
+ address_book_ext_id?: string | null;
3060
3039
  created_at: string;
3061
- shared_workspace_ext_id?: string | null | undefined;
3062
- outcome?: ("invited" | "reinvited" | "not_resent_still_pending" | "contact_added" | "already_contact" | "failed") | null | undefined;
3063
- outcome_detail?: string | null | undefined;
3040
+ shared_workspace_ext_id?: string | null;
3041
+ outcome?: ("invited" | "reinvited" | "not_resent_still_pending" | "contact_added" | "already_contact" | "failed") | null;
3042
+ outcome_detail?: string | null;
3064
3043
  }[]>;
3065
3044
  error: Error;
3066
3045
  isError: true;
@@ -3085,86 +3064,54 @@ declare function usePendingContacts(options?: {
3085
3064
  isStale: boolean;
3086
3065
  isEnabled: boolean;
3087
3066
  refetch: (options?: _tanstack_query_core.RefetchOptions) => Promise<_tanstack_query_core.QueryObserverResult<NoInfer<{
3088
- external_id?: string | null | undefined;
3089
- email: string;
3090
- user?: {
3091
- external_id: string;
3092
- parent_ext_id?: string | null | undefined;
3093
- email: string;
3094
- given_name: string;
3095
- family_name?: string | null | undefined;
3096
- picture?: string | null | undefined;
3097
- encryption_public_key: string;
3098
- is_sso: boolean;
3099
- is_identity_verified: boolean;
3100
- } | null | undefined;
3101
- status: "invitation_pending" | "invitation_expired" | "registered" | "failed";
3067
+ external_id?: string | null;
3068
+ email?: string | null;
3069
+ user?: _arbidocs_client.components["schemas"]["UserResponse"] | null;
3070
+ status: ("registered" | "invited" | "expired" | "card") | "failed";
3071
+ card?: _arbidocs_client.components["schemas"]["ContactCard"] | null;
3072
+ address_book_ext_id?: string | null;
3102
3073
  created_at: string;
3103
- shared_workspace_ext_id?: string | null | undefined;
3104
- outcome?: ("invited" | "reinvited" | "not_resent_still_pending" | "contact_added" | "already_contact" | "failed") | null | undefined;
3105
- outcome_detail?: string | null | undefined;
3074
+ shared_workspace_ext_id?: string | null;
3075
+ outcome?: ("invited" | "reinvited" | "not_resent_still_pending" | "contact_added" | "already_contact" | "failed") | null;
3076
+ outcome_detail?: string | null;
3106
3077
  }[]>, Error>>;
3107
3078
  fetchStatus: _tanstack_query_core.FetchStatus;
3108
3079
  promise: Promise<NoInfer<{
3109
- external_id?: string | null | undefined;
3110
- email: string;
3111
- user?: {
3112
- external_id: string;
3113
- parent_ext_id?: string | null | undefined;
3114
- email: string;
3115
- given_name: string;
3116
- family_name?: string | null | undefined;
3117
- picture?: string | null | undefined;
3118
- encryption_public_key: string;
3119
- is_sso: boolean;
3120
- is_identity_verified: boolean;
3121
- } | null | undefined;
3122
- status: "invitation_pending" | "invitation_expired" | "registered" | "failed";
3080
+ external_id?: string | null;
3081
+ email?: string | null;
3082
+ user?: _arbidocs_client.components["schemas"]["UserResponse"] | null;
3083
+ status: ("registered" | "invited" | "expired" | "card") | "failed";
3084
+ card?: _arbidocs_client.components["schemas"]["ContactCard"] | null;
3085
+ address_book_ext_id?: string | null;
3123
3086
  created_at: string;
3124
- shared_workspace_ext_id?: string | null | undefined;
3125
- outcome?: ("invited" | "reinvited" | "not_resent_still_pending" | "contact_added" | "already_contact" | "failed") | null | undefined;
3126
- outcome_detail?: string | null | undefined;
3087
+ shared_workspace_ext_id?: string | null;
3088
+ outcome?: ("invited" | "reinvited" | "not_resent_still_pending" | "contact_added" | "already_contact" | "failed") | null;
3089
+ outcome_detail?: string | null;
3127
3090
  }[]>>;
3128
3091
  } | {
3129
3092
  pending: {
3130
- external_id?: string | null | undefined;
3131
- email: string;
3132
- user?: {
3133
- external_id: string;
3134
- parent_ext_id?: string | null | undefined;
3135
- email: string;
3136
- given_name: string;
3137
- family_name?: string | null | undefined;
3138
- picture?: string | null | undefined;
3139
- encryption_public_key: string;
3140
- is_sso: boolean;
3141
- is_identity_verified: boolean;
3142
- } | null | undefined;
3143
- status: "invitation_pending" | "invitation_expired" | "registered" | "failed";
3093
+ external_id?: string | null;
3094
+ email?: string | null;
3095
+ user?: _arbidocs_client.components["schemas"]["UserResponse"] | null;
3096
+ status: ("registered" | "invited" | "expired" | "card") | "failed";
3097
+ card?: _arbidocs_client.components["schemas"]["ContactCard"] | null;
3098
+ address_book_ext_id?: string | null;
3144
3099
  created_at: string;
3145
- shared_workspace_ext_id?: string | null | undefined;
3146
- outcome?: ("invited" | "reinvited" | "not_resent_still_pending" | "contact_added" | "already_contact" | "failed") | null | undefined;
3147
- outcome_detail?: string | null | undefined;
3100
+ shared_workspace_ext_id?: string | null;
3101
+ outcome?: ("invited" | "reinvited" | "not_resent_still_pending" | "contact_added" | "already_contact" | "failed") | null;
3102
+ outcome_detail?: string | null;
3148
3103
  }[];
3149
3104
  data: NoInfer<{
3150
- external_id?: string | null | undefined;
3151
- email: string;
3152
- user?: {
3153
- external_id: string;
3154
- parent_ext_id?: string | null | undefined;
3155
- email: string;
3156
- given_name: string;
3157
- family_name?: string | null | undefined;
3158
- picture?: string | null | undefined;
3159
- encryption_public_key: string;
3160
- is_sso: boolean;
3161
- is_identity_verified: boolean;
3162
- } | null | undefined;
3163
- status: "invitation_pending" | "invitation_expired" | "registered" | "failed";
3105
+ external_id?: string | null;
3106
+ email?: string | null;
3107
+ user?: _arbidocs_client.components["schemas"]["UserResponse"] | null;
3108
+ status: ("registered" | "invited" | "expired" | "card") | "failed";
3109
+ card?: _arbidocs_client.components["schemas"]["ContactCard"] | null;
3110
+ address_book_ext_id?: string | null;
3164
3111
  created_at: string;
3165
- shared_workspace_ext_id?: string | null | undefined;
3166
- outcome?: ("invited" | "reinvited" | "not_resent_still_pending" | "contact_added" | "already_contact" | "failed") | null | undefined;
3167
- outcome_detail?: string | null | undefined;
3112
+ shared_workspace_ext_id?: string | null;
3113
+ outcome?: ("invited" | "reinvited" | "not_resent_still_pending" | "contact_added" | "already_contact" | "failed") | null;
3114
+ outcome_detail?: string | null;
3168
3115
  }[]>;
3169
3116
  error: null;
3170
3117
  isError: false;
@@ -3189,66 +3136,42 @@ declare function usePendingContacts(options?: {
3189
3136
  isStale: boolean;
3190
3137
  isEnabled: boolean;
3191
3138
  refetch: (options?: _tanstack_query_core.RefetchOptions) => Promise<_tanstack_query_core.QueryObserverResult<NoInfer<{
3192
- external_id?: string | null | undefined;
3193
- email: string;
3194
- user?: {
3195
- external_id: string;
3196
- parent_ext_id?: string | null | undefined;
3197
- email: string;
3198
- given_name: string;
3199
- family_name?: string | null | undefined;
3200
- picture?: string | null | undefined;
3201
- encryption_public_key: string;
3202
- is_sso: boolean;
3203
- is_identity_verified: boolean;
3204
- } | null | undefined;
3205
- status: "invitation_pending" | "invitation_expired" | "registered" | "failed";
3139
+ external_id?: string | null;
3140
+ email?: string | null;
3141
+ user?: _arbidocs_client.components["schemas"]["UserResponse"] | null;
3142
+ status: ("registered" | "invited" | "expired" | "card") | "failed";
3143
+ card?: _arbidocs_client.components["schemas"]["ContactCard"] | null;
3144
+ address_book_ext_id?: string | null;
3206
3145
  created_at: string;
3207
- shared_workspace_ext_id?: string | null | undefined;
3208
- outcome?: ("invited" | "reinvited" | "not_resent_still_pending" | "contact_added" | "already_contact" | "failed") | null | undefined;
3209
- outcome_detail?: string | null | undefined;
3146
+ shared_workspace_ext_id?: string | null;
3147
+ outcome?: ("invited" | "reinvited" | "not_resent_still_pending" | "contact_added" | "already_contact" | "failed") | null;
3148
+ outcome_detail?: string | null;
3210
3149
  }[]>, Error>>;
3211
3150
  fetchStatus: _tanstack_query_core.FetchStatus;
3212
3151
  promise: Promise<NoInfer<{
3213
- external_id?: string | null | undefined;
3214
- email: string;
3215
- user?: {
3216
- external_id: string;
3217
- parent_ext_id?: string | null | undefined;
3218
- email: string;
3219
- given_name: string;
3220
- family_name?: string | null | undefined;
3221
- picture?: string | null | undefined;
3222
- encryption_public_key: string;
3223
- is_sso: boolean;
3224
- is_identity_verified: boolean;
3225
- } | null | undefined;
3226
- status: "invitation_pending" | "invitation_expired" | "registered" | "failed";
3152
+ external_id?: string | null;
3153
+ email?: string | null;
3154
+ user?: _arbidocs_client.components["schemas"]["UserResponse"] | null;
3155
+ status: ("registered" | "invited" | "expired" | "card") | "failed";
3156
+ card?: _arbidocs_client.components["schemas"]["ContactCard"] | null;
3157
+ address_book_ext_id?: string | null;
3227
3158
  created_at: string;
3228
- shared_workspace_ext_id?: string | null | undefined;
3229
- outcome?: ("invited" | "reinvited" | "not_resent_still_pending" | "contact_added" | "already_contact" | "failed") | null | undefined;
3230
- outcome_detail?: string | null | undefined;
3159
+ shared_workspace_ext_id?: string | null;
3160
+ outcome?: ("invited" | "reinvited" | "not_resent_still_pending" | "contact_added" | "already_contact" | "failed") | null;
3161
+ outcome_detail?: string | null;
3231
3162
  }[]>>;
3232
3163
  } | {
3233
3164
  pending: {
3234
- external_id?: string | null | undefined;
3235
- email: string;
3236
- user?: {
3237
- external_id: string;
3238
- parent_ext_id?: string | null | undefined;
3239
- email: string;
3240
- given_name: string;
3241
- family_name?: string | null | undefined;
3242
- picture?: string | null | undefined;
3243
- encryption_public_key: string;
3244
- is_sso: boolean;
3245
- is_identity_verified: boolean;
3246
- } | null | undefined;
3247
- status: "invitation_pending" | "invitation_expired" | "registered" | "failed";
3165
+ external_id?: string | null;
3166
+ email?: string | null;
3167
+ user?: _arbidocs_client.components["schemas"]["UserResponse"] | null;
3168
+ status: ("registered" | "invited" | "expired" | "card") | "failed";
3169
+ card?: _arbidocs_client.components["schemas"]["ContactCard"] | null;
3170
+ address_book_ext_id?: string | null;
3248
3171
  created_at: string;
3249
- shared_workspace_ext_id?: string | null | undefined;
3250
- outcome?: ("invited" | "reinvited" | "not_resent_still_pending" | "contact_added" | "already_contact" | "failed") | null | undefined;
3251
- outcome_detail?: string | null | undefined;
3172
+ shared_workspace_ext_id?: string | null;
3173
+ outcome?: ("invited" | "reinvited" | "not_resent_still_pending" | "contact_added" | "already_contact" | "failed") | null;
3174
+ outcome_detail?: string | null;
3252
3175
  }[];
3253
3176
  data: undefined;
3254
3177
  error: Error;
@@ -3274,66 +3197,42 @@ declare function usePendingContacts(options?: {
3274
3197
  isStale: boolean;
3275
3198
  isEnabled: boolean;
3276
3199
  refetch: (options?: _tanstack_query_core.RefetchOptions) => Promise<_tanstack_query_core.QueryObserverResult<NoInfer<{
3277
- external_id?: string | null | undefined;
3278
- email: string;
3279
- user?: {
3280
- external_id: string;
3281
- parent_ext_id?: string | null | undefined;
3282
- email: string;
3283
- given_name: string;
3284
- family_name?: string | null | undefined;
3285
- picture?: string | null | undefined;
3286
- encryption_public_key: string;
3287
- is_sso: boolean;
3288
- is_identity_verified: boolean;
3289
- } | null | undefined;
3290
- status: "invitation_pending" | "invitation_expired" | "registered" | "failed";
3200
+ external_id?: string | null;
3201
+ email?: string | null;
3202
+ user?: _arbidocs_client.components["schemas"]["UserResponse"] | null;
3203
+ status: ("registered" | "invited" | "expired" | "card") | "failed";
3204
+ card?: _arbidocs_client.components["schemas"]["ContactCard"] | null;
3205
+ address_book_ext_id?: string | null;
3291
3206
  created_at: string;
3292
- shared_workspace_ext_id?: string | null | undefined;
3293
- outcome?: ("invited" | "reinvited" | "not_resent_still_pending" | "contact_added" | "already_contact" | "failed") | null | undefined;
3294
- outcome_detail?: string | null | undefined;
3207
+ shared_workspace_ext_id?: string | null;
3208
+ outcome?: ("invited" | "reinvited" | "not_resent_still_pending" | "contact_added" | "already_contact" | "failed") | null;
3209
+ outcome_detail?: string | null;
3295
3210
  }[]>, Error>>;
3296
3211
  fetchStatus: _tanstack_query_core.FetchStatus;
3297
3212
  promise: Promise<NoInfer<{
3298
- external_id?: string | null | undefined;
3299
- email: string;
3300
- user?: {
3301
- external_id: string;
3302
- parent_ext_id?: string | null | undefined;
3303
- email: string;
3304
- given_name: string;
3305
- family_name?: string | null | undefined;
3306
- picture?: string | null | undefined;
3307
- encryption_public_key: string;
3308
- is_sso: boolean;
3309
- is_identity_verified: boolean;
3310
- } | null | undefined;
3311
- status: "invitation_pending" | "invitation_expired" | "registered" | "failed";
3213
+ external_id?: string | null;
3214
+ email?: string | null;
3215
+ user?: _arbidocs_client.components["schemas"]["UserResponse"] | null;
3216
+ status: ("registered" | "invited" | "expired" | "card") | "failed";
3217
+ card?: _arbidocs_client.components["schemas"]["ContactCard"] | null;
3218
+ address_book_ext_id?: string | null;
3312
3219
  created_at: string;
3313
- shared_workspace_ext_id?: string | null | undefined;
3314
- outcome?: ("invited" | "reinvited" | "not_resent_still_pending" | "contact_added" | "already_contact" | "failed") | null | undefined;
3315
- outcome_detail?: string | null | undefined;
3220
+ shared_workspace_ext_id?: string | null;
3221
+ outcome?: ("invited" | "reinvited" | "not_resent_still_pending" | "contact_added" | "already_contact" | "failed") | null;
3222
+ outcome_detail?: string | null;
3316
3223
  }[]>>;
3317
3224
  } | {
3318
3225
  pending: {
3319
- external_id?: string | null | undefined;
3320
- email: string;
3321
- user?: {
3322
- external_id: string;
3323
- parent_ext_id?: string | null | undefined;
3324
- email: string;
3325
- given_name: string;
3326
- family_name?: string | null | undefined;
3327
- picture?: string | null | undefined;
3328
- encryption_public_key: string;
3329
- is_sso: boolean;
3330
- is_identity_verified: boolean;
3331
- } | null | undefined;
3332
- status: "invitation_pending" | "invitation_expired" | "registered" | "failed";
3226
+ external_id?: string | null;
3227
+ email?: string | null;
3228
+ user?: _arbidocs_client.components["schemas"]["UserResponse"] | null;
3229
+ status: ("registered" | "invited" | "expired" | "card") | "failed";
3230
+ card?: _arbidocs_client.components["schemas"]["ContactCard"] | null;
3231
+ address_book_ext_id?: string | null;
3333
3232
  created_at: string;
3334
- shared_workspace_ext_id?: string | null | undefined;
3335
- outcome?: ("invited" | "reinvited" | "not_resent_still_pending" | "contact_added" | "already_contact" | "failed") | null | undefined;
3336
- outcome_detail?: string | null | undefined;
3233
+ shared_workspace_ext_id?: string | null;
3234
+ outcome?: ("invited" | "reinvited" | "not_resent_still_pending" | "contact_added" | "already_contact" | "failed") | null;
3235
+ outcome_detail?: string | null;
3337
3236
  }[];
3338
3237
  data: undefined;
3339
3238
  error: null;
@@ -3359,66 +3258,42 @@ declare function usePendingContacts(options?: {
3359
3258
  isStale: boolean;
3360
3259
  isEnabled: boolean;
3361
3260
  refetch: (options?: _tanstack_query_core.RefetchOptions) => Promise<_tanstack_query_core.QueryObserverResult<NoInfer<{
3362
- external_id?: string | null | undefined;
3363
- email: string;
3364
- user?: {
3365
- external_id: string;
3366
- parent_ext_id?: string | null | undefined;
3367
- email: string;
3368
- given_name: string;
3369
- family_name?: string | null | undefined;
3370
- picture?: string | null | undefined;
3371
- encryption_public_key: string;
3372
- is_sso: boolean;
3373
- is_identity_verified: boolean;
3374
- } | null | undefined;
3375
- status: "invitation_pending" | "invitation_expired" | "registered" | "failed";
3261
+ external_id?: string | null;
3262
+ email?: string | null;
3263
+ user?: _arbidocs_client.components["schemas"]["UserResponse"] | null;
3264
+ status: ("registered" | "invited" | "expired" | "card") | "failed";
3265
+ card?: _arbidocs_client.components["schemas"]["ContactCard"] | null;
3266
+ address_book_ext_id?: string | null;
3376
3267
  created_at: string;
3377
- shared_workspace_ext_id?: string | null | undefined;
3378
- outcome?: ("invited" | "reinvited" | "not_resent_still_pending" | "contact_added" | "already_contact" | "failed") | null | undefined;
3379
- outcome_detail?: string | null | undefined;
3268
+ shared_workspace_ext_id?: string | null;
3269
+ outcome?: ("invited" | "reinvited" | "not_resent_still_pending" | "contact_added" | "already_contact" | "failed") | null;
3270
+ outcome_detail?: string | null;
3380
3271
  }[]>, Error>>;
3381
3272
  fetchStatus: _tanstack_query_core.FetchStatus;
3382
3273
  promise: Promise<NoInfer<{
3383
- external_id?: string | null | undefined;
3384
- email: string;
3385
- user?: {
3386
- external_id: string;
3387
- parent_ext_id?: string | null | undefined;
3388
- email: string;
3389
- given_name: string;
3390
- family_name?: string | null | undefined;
3391
- picture?: string | null | undefined;
3392
- encryption_public_key: string;
3393
- is_sso: boolean;
3394
- is_identity_verified: boolean;
3395
- } | null | undefined;
3396
- status: "invitation_pending" | "invitation_expired" | "registered" | "failed";
3274
+ external_id?: string | null;
3275
+ email?: string | null;
3276
+ user?: _arbidocs_client.components["schemas"]["UserResponse"] | null;
3277
+ status: ("registered" | "invited" | "expired" | "card") | "failed";
3278
+ card?: _arbidocs_client.components["schemas"]["ContactCard"] | null;
3279
+ address_book_ext_id?: string | null;
3397
3280
  created_at: string;
3398
- shared_workspace_ext_id?: string | null | undefined;
3399
- outcome?: ("invited" | "reinvited" | "not_resent_still_pending" | "contact_added" | "already_contact" | "failed") | null | undefined;
3400
- outcome_detail?: string | null | undefined;
3281
+ shared_workspace_ext_id?: string | null;
3282
+ outcome?: ("invited" | "reinvited" | "not_resent_still_pending" | "contact_added" | "already_contact" | "failed") | null;
3283
+ outcome_detail?: string | null;
3401
3284
  }[]>>;
3402
3285
  } | {
3403
3286
  pending: {
3404
- external_id?: string | null | undefined;
3405
- email: string;
3406
- user?: {
3407
- external_id: string;
3408
- parent_ext_id?: string | null | undefined;
3409
- email: string;
3410
- given_name: string;
3411
- family_name?: string | null | undefined;
3412
- picture?: string | null | undefined;
3413
- encryption_public_key: string;
3414
- is_sso: boolean;
3415
- is_identity_verified: boolean;
3416
- } | null | undefined;
3417
- status: "invitation_pending" | "invitation_expired" | "registered" | "failed";
3287
+ external_id?: string | null;
3288
+ email?: string | null;
3289
+ user?: _arbidocs_client.components["schemas"]["UserResponse"] | null;
3290
+ status: ("registered" | "invited" | "expired" | "card") | "failed";
3291
+ card?: _arbidocs_client.components["schemas"]["ContactCard"] | null;
3292
+ address_book_ext_id?: string | null;
3418
3293
  created_at: string;
3419
- shared_workspace_ext_id?: string | null | undefined;
3420
- outcome?: ("invited" | "reinvited" | "not_resent_still_pending" | "contact_added" | "already_contact" | "failed") | null | undefined;
3421
- outcome_detail?: string | null | undefined;
3294
+ shared_workspace_ext_id?: string | null;
3295
+ outcome?: ("invited" | "reinvited" | "not_resent_still_pending" | "contact_added" | "already_contact" | "failed") | null;
3296
+ outcome_detail?: string | null;
3422
3297
  }[];
3423
3298
  data: undefined;
3424
3299
  error: null;
@@ -3444,86 +3319,54 @@ declare function usePendingContacts(options?: {
3444
3319
  isStale: boolean;
3445
3320
  isEnabled: boolean;
3446
3321
  refetch: (options?: _tanstack_query_core.RefetchOptions) => Promise<_tanstack_query_core.QueryObserverResult<NoInfer<{
3447
- external_id?: string | null | undefined;
3448
- email: string;
3449
- user?: {
3450
- external_id: string;
3451
- parent_ext_id?: string | null | undefined;
3452
- email: string;
3453
- given_name: string;
3454
- family_name?: string | null | undefined;
3455
- picture?: string | null | undefined;
3456
- encryption_public_key: string;
3457
- is_sso: boolean;
3458
- is_identity_verified: boolean;
3459
- } | null | undefined;
3460
- status: "invitation_pending" | "invitation_expired" | "registered" | "failed";
3322
+ external_id?: string | null;
3323
+ email?: string | null;
3324
+ user?: _arbidocs_client.components["schemas"]["UserResponse"] | null;
3325
+ status: ("registered" | "invited" | "expired" | "card") | "failed";
3326
+ card?: _arbidocs_client.components["schemas"]["ContactCard"] | null;
3327
+ address_book_ext_id?: string | null;
3461
3328
  created_at: string;
3462
- shared_workspace_ext_id?: string | null | undefined;
3463
- outcome?: ("invited" | "reinvited" | "not_resent_still_pending" | "contact_added" | "already_contact" | "failed") | null | undefined;
3464
- outcome_detail?: string | null | undefined;
3329
+ shared_workspace_ext_id?: string | null;
3330
+ outcome?: ("invited" | "reinvited" | "not_resent_still_pending" | "contact_added" | "already_contact" | "failed") | null;
3331
+ outcome_detail?: string | null;
3465
3332
  }[]>, Error>>;
3466
3333
  fetchStatus: _tanstack_query_core.FetchStatus;
3467
3334
  promise: Promise<NoInfer<{
3468
- external_id?: string | null | undefined;
3469
- email: string;
3470
- user?: {
3471
- external_id: string;
3472
- parent_ext_id?: string | null | undefined;
3473
- email: string;
3474
- given_name: string;
3475
- family_name?: string | null | undefined;
3476
- picture?: string | null | undefined;
3477
- encryption_public_key: string;
3478
- is_sso: boolean;
3479
- is_identity_verified: boolean;
3480
- } | null | undefined;
3481
- status: "invitation_pending" | "invitation_expired" | "registered" | "failed";
3335
+ external_id?: string | null;
3336
+ email?: string | null;
3337
+ user?: _arbidocs_client.components["schemas"]["UserResponse"] | null;
3338
+ status: ("registered" | "invited" | "expired" | "card") | "failed";
3339
+ card?: _arbidocs_client.components["schemas"]["ContactCard"] | null;
3340
+ address_book_ext_id?: string | null;
3482
3341
  created_at: string;
3483
- shared_workspace_ext_id?: string | null | undefined;
3484
- outcome?: ("invited" | "reinvited" | "not_resent_still_pending" | "contact_added" | "already_contact" | "failed") | null | undefined;
3485
- outcome_detail?: string | null | undefined;
3342
+ shared_workspace_ext_id?: string | null;
3343
+ outcome?: ("invited" | "reinvited" | "not_resent_still_pending" | "contact_added" | "already_contact" | "failed") | null;
3344
+ outcome_detail?: string | null;
3486
3345
  }[]>>;
3487
3346
  } | {
3488
3347
  pending: {
3489
- external_id?: string | null | undefined;
3490
- email: string;
3491
- user?: {
3492
- external_id: string;
3493
- parent_ext_id?: string | null | undefined;
3494
- email: string;
3495
- given_name: string;
3496
- family_name?: string | null | undefined;
3497
- picture?: string | null | undefined;
3498
- encryption_public_key: string;
3499
- is_sso: boolean;
3500
- is_identity_verified: boolean;
3501
- } | null | undefined;
3502
- status: "invitation_pending" | "invitation_expired" | "registered" | "failed";
3348
+ external_id?: string | null;
3349
+ email?: string | null;
3350
+ user?: _arbidocs_client.components["schemas"]["UserResponse"] | null;
3351
+ status: ("registered" | "invited" | "expired" | "card") | "failed";
3352
+ card?: _arbidocs_client.components["schemas"]["ContactCard"] | null;
3353
+ address_book_ext_id?: string | null;
3503
3354
  created_at: string;
3504
- shared_workspace_ext_id?: string | null | undefined;
3505
- outcome?: ("invited" | "reinvited" | "not_resent_still_pending" | "contact_added" | "already_contact" | "failed") | null | undefined;
3506
- outcome_detail?: string | null | undefined;
3355
+ shared_workspace_ext_id?: string | null;
3356
+ outcome?: ("invited" | "reinvited" | "not_resent_still_pending" | "contact_added" | "already_contact" | "failed") | null;
3357
+ outcome_detail?: string | null;
3507
3358
  }[];
3508
3359
  data: NoInfer<{
3509
- external_id?: string | null | undefined;
3510
- email: string;
3511
- user?: {
3512
- external_id: string;
3513
- parent_ext_id?: string | null | undefined;
3514
- email: string;
3515
- given_name: string;
3516
- family_name?: string | null | undefined;
3517
- picture?: string | null | undefined;
3518
- encryption_public_key: string;
3519
- is_sso: boolean;
3520
- is_identity_verified: boolean;
3521
- } | null | undefined;
3522
- status: "invitation_pending" | "invitation_expired" | "registered" | "failed";
3360
+ external_id?: string | null;
3361
+ email?: string | null;
3362
+ user?: _arbidocs_client.components["schemas"]["UserResponse"] | null;
3363
+ status: ("registered" | "invited" | "expired" | "card") | "failed";
3364
+ card?: _arbidocs_client.components["schemas"]["ContactCard"] | null;
3365
+ address_book_ext_id?: string | null;
3523
3366
  created_at: string;
3524
- shared_workspace_ext_id?: string | null | undefined;
3525
- outcome?: ("invited" | "reinvited" | "not_resent_still_pending" | "contact_added" | "already_contact" | "failed") | null | undefined;
3526
- outcome_detail?: string | null | undefined;
3367
+ shared_workspace_ext_id?: string | null;
3368
+ outcome?: ("invited" | "reinvited" | "not_resent_still_pending" | "contact_added" | "already_contact" | "failed") | null;
3369
+ outcome_detail?: string | null;
3527
3370
  }[]>;
3528
3371
  isError: false;
3529
3372
  error: null;
@@ -3548,73 +3391,82 @@ declare function usePendingContacts(options?: {
3548
3391
  isStale: boolean;
3549
3392
  isEnabled: boolean;
3550
3393
  refetch: (options?: _tanstack_query_core.RefetchOptions) => Promise<_tanstack_query_core.QueryObserverResult<NoInfer<{
3551
- external_id?: string | null | undefined;
3552
- email: string;
3553
- user?: {
3554
- external_id: string;
3555
- parent_ext_id?: string | null | undefined;
3556
- email: string;
3557
- given_name: string;
3558
- family_name?: string | null | undefined;
3559
- picture?: string | null | undefined;
3560
- encryption_public_key: string;
3561
- is_sso: boolean;
3562
- is_identity_verified: boolean;
3563
- } | null | undefined;
3564
- status: "invitation_pending" | "invitation_expired" | "registered" | "failed";
3394
+ external_id?: string | null;
3395
+ email?: string | null;
3396
+ user?: _arbidocs_client.components["schemas"]["UserResponse"] | null;
3397
+ status: ("registered" | "invited" | "expired" | "card") | "failed";
3398
+ card?: _arbidocs_client.components["schemas"]["ContactCard"] | null;
3399
+ address_book_ext_id?: string | null;
3565
3400
  created_at: string;
3566
- shared_workspace_ext_id?: string | null | undefined;
3567
- outcome?: ("invited" | "reinvited" | "not_resent_still_pending" | "contact_added" | "already_contact" | "failed") | null | undefined;
3568
- outcome_detail?: string | null | undefined;
3401
+ shared_workspace_ext_id?: string | null;
3402
+ outcome?: ("invited" | "reinvited" | "not_resent_still_pending" | "contact_added" | "already_contact" | "failed") | null;
3403
+ outcome_detail?: string | null;
3569
3404
  }[]>, Error>>;
3570
3405
  fetchStatus: _tanstack_query_core.FetchStatus;
3571
3406
  promise: Promise<NoInfer<{
3572
- external_id?: string | null | undefined;
3573
- email: string;
3574
- user?: {
3575
- external_id: string;
3576
- parent_ext_id?: string | null | undefined;
3577
- email: string;
3578
- given_name: string;
3579
- family_name?: string | null | undefined;
3580
- picture?: string | null | undefined;
3581
- encryption_public_key: string;
3582
- is_sso: boolean;
3583
- is_identity_verified: boolean;
3584
- } | null | undefined;
3585
- status: "invitation_pending" | "invitation_expired" | "registered" | "failed";
3407
+ external_id?: string | null;
3408
+ email?: string | null;
3409
+ user?: _arbidocs_client.components["schemas"]["UserResponse"] | null;
3410
+ status: ("registered" | "invited" | "expired" | "card") | "failed";
3411
+ card?: _arbidocs_client.components["schemas"]["ContactCard"] | null;
3412
+ address_book_ext_id?: string | null;
3586
3413
  created_at: string;
3587
- shared_workspace_ext_id?: string | null | undefined;
3588
- outcome?: ("invited" | "reinvited" | "not_resent_still_pending" | "contact_added" | "already_contact" | "failed") | null | undefined;
3589
- outcome_detail?: string | null | undefined;
3414
+ shared_workspace_ext_id?: string | null;
3415
+ outcome?: ("invited" | "reinvited" | "not_resent_still_pending" | "contact_added" | "already_contact" | "failed") | null;
3416
+ outcome_detail?: string | null;
3590
3417
  }[]>>;
3591
3418
  };
3592
3419
  /**
3593
- * Add contacts by email. An address not yet on ARBI is invited. Resolves with one row per
3594
- * address (`outcome`, `status`); map it with `toAddContactsRows` from `@arbidocs/blocks/collaboration`.
3420
+ * Invite (or link) people by email. An address not yet on ARBI gets an invitation. Resolves with one
3421
+ * row per address (`outcome`, `status`); map it with `toAddContactsRows` from `@arbidocs/blocks/collaboration`.
3595
3422
  */
3596
- declare function useAddContacts(): _tanstack_react_query.UseMutationResult<{
3597
- external_id?: string | null | undefined;
3598
- email: string;
3599
- user?: {
3600
- external_id: string;
3601
- parent_ext_id?: string | null | undefined;
3602
- email: string;
3603
- given_name: string;
3604
- family_name?: string | null | undefined;
3605
- picture?: string | null | undefined;
3606
- encryption_public_key: string;
3607
- is_sso: boolean;
3608
- is_identity_verified: boolean;
3609
- } | null | undefined;
3610
- status: "invitation_pending" | "invitation_expired" | "registered" | "failed";
3423
+ declare function useInviteContacts(): _tanstack_react_query.UseMutationResult<{
3424
+ external_id?: string | null;
3425
+ email?: string | null;
3426
+ user?: _arbidocs_client.components["schemas"]["UserResponse"] | null;
3427
+ status: ("registered" | "invited" | "expired" | "card") | "failed";
3428
+ card?: _arbidocs_client.components["schemas"]["ContactCard"] | null;
3429
+ address_book_ext_id?: string | null;
3611
3430
  created_at: string;
3612
- shared_workspace_ext_id?: string | null | undefined;
3613
- outcome?: ("invited" | "reinvited" | "not_resent_still_pending" | "contact_added" | "already_contact" | "failed") | null | undefined;
3614
- outcome_detail?: string | null | undefined;
3431
+ shared_workspace_ext_id?: string | null;
3432
+ outcome?: ("invited" | "reinvited" | "not_resent_still_pending" | "contact_added" | "already_contact" | "failed") | null;
3433
+ outcome_detail?: string | null;
3615
3434
  }[], Error, string[], unknown>;
3616
- /** Remove contacts, or withdraw invitations, by contact id. */
3617
- declare function useRemoveContacts(): _tanstack_react_query.UseMutationResult<void, Error, string[], unknown>;
3435
+ /** Create a card, optionally linking `email` and inviting it (`invite: true`). */
3436
+ declare function useCreateContact(): _tanstack_react_query.UseMutationResult<{
3437
+ external_id?: string | null;
3438
+ email?: string | null;
3439
+ user?: _arbidocs_client.components["schemas"]["UserResponse"] | null;
3440
+ status: ("registered" | "invited" | "expired" | "card") | "failed";
3441
+ card?: _arbidocs_client.components["schemas"]["ContactCard"] | null;
3442
+ address_book_ext_id?: string | null;
3443
+ created_at: string;
3444
+ shared_workspace_ext_id?: string | null;
3445
+ outcome?: ("invited" | "reinvited" | "not_resent_still_pending" | "contact_added" | "already_contact" | "failed") | null;
3446
+ outcome_detail?: string | null;
3447
+ }, Error, {
3448
+ email?: string | null;
3449
+ card?: _arbidocs_client.components["schemas"]["ContactCardWrite"] | null;
3450
+ invite: boolean;
3451
+ }, unknown>;
3452
+ /** Replace a contact's card details. */
3453
+ declare function useUpdateContact(): _tanstack_react_query.UseMutationResult<{
3454
+ external_id?: string | null;
3455
+ email?: string | null;
3456
+ user?: _arbidocs_client.components["schemas"]["UserResponse"] | null;
3457
+ status: ("registered" | "invited" | "expired" | "card") | "failed";
3458
+ card?: _arbidocs_client.components["schemas"]["ContactCard"] | null;
3459
+ address_book_ext_id?: string | null;
3460
+ created_at: string;
3461
+ shared_workspace_ext_id?: string | null;
3462
+ outcome?: ("invited" | "reinvited" | "not_resent_still_pending" | "contact_added" | "already_contact" | "failed") | null;
3463
+ outcome_detail?: string | null;
3464
+ }, Error, {
3465
+ id: string;
3466
+ card: contacts.ContactCardWrite;
3467
+ }, unknown>;
3468
+ /** Delete a contact, or withdraw its invitation, by contact id. */
3469
+ declare function useDeleteContact(): _tanstack_react_query.UseMutationResult<void, Error, string, unknown>;
3618
3470
 
3619
3471
  interface ProfileView {
3620
3472
  givenName: string;
@@ -5205,9 +5057,7 @@ declare function useWorkNotifications(options: {
5205
5057
  is_identity_verified: boolean;
5206
5058
  };
5207
5059
  workspace_ext_id?: string | null | undefined;
5208
- dm_context_only: boolean;
5209
5060
  content?: string | null | undefined;
5210
- attachments?: string | null | undefined;
5211
5061
  conversation_ext_id?: string | null | undefined;
5212
5062
  message_ext_id?: string | null | undefined;
5213
5063
  read: boolean;
@@ -5262,9 +5112,7 @@ declare function useWorkNotifications(options: {
5262
5112
  is_identity_verified: boolean;
5263
5113
  };
5264
5114
  workspace_ext_id?: string | null | undefined;
5265
- dm_context_only: boolean;
5266
5115
  content?: string | null | undefined;
5267
- attachments?: string | null | undefined;
5268
5116
  conversation_ext_id?: string | null | undefined;
5269
5117
  message_ext_id?: string | null | undefined;
5270
5118
  read: boolean;
@@ -5298,9 +5146,7 @@ declare function useWorkNotifications(options: {
5298
5146
  is_identity_verified: boolean;
5299
5147
  };
5300
5148
  workspace_ext_id?: string | null | undefined;
5301
- dm_context_only: boolean;
5302
5149
  content?: string | null | undefined;
5303
- attachments?: string | null | undefined;
5304
5150
  conversation_ext_id?: string | null | undefined;
5305
5151
  message_ext_id?: string | null | undefined;
5306
5152
  read: boolean;
@@ -5335,9 +5181,7 @@ declare function useWorkNotifications(options: {
5335
5181
  is_identity_verified: boolean;
5336
5182
  };
5337
5183
  workspace_ext_id?: string | null | undefined;
5338
- dm_context_only: boolean;
5339
5184
  content?: string | null | undefined;
5340
- attachments?: string | null | undefined;
5341
5185
  conversation_ext_id?: string | null | undefined;
5342
5186
  message_ext_id?: string | null | undefined;
5343
5187
  read: boolean;
@@ -5392,9 +5236,7 @@ declare function useWorkNotifications(options: {
5392
5236
  is_identity_verified: boolean;
5393
5237
  };
5394
5238
  workspace_ext_id?: string | null | undefined;
5395
- dm_context_only: boolean;
5396
5239
  content?: string | null | undefined;
5397
- attachments?: string | null | undefined;
5398
5240
  conversation_ext_id?: string | null | undefined;
5399
5241
  message_ext_id?: string | null | undefined;
5400
5242
  read: boolean;
@@ -5428,9 +5270,7 @@ declare function useWorkNotifications(options: {
5428
5270
  is_identity_verified: boolean;
5429
5271
  };
5430
5272
  workspace_ext_id?: string | null | undefined;
5431
- dm_context_only: boolean;
5432
5273
  content?: string | null | undefined;
5433
- attachments?: string | null | undefined;
5434
5274
  conversation_ext_id?: string | null | undefined;
5435
5275
  message_ext_id?: string | null | undefined;
5436
5276
  read: boolean;
@@ -5488,9 +5328,7 @@ declare function useWorkNotifications(options: {
5488
5328
  is_identity_verified: boolean;
5489
5329
  };
5490
5330
  workspace_ext_id?: string | null | undefined;
5491
- dm_context_only: boolean;
5492
5331
  content?: string | null | undefined;
5493
- attachments?: string | null | undefined;
5494
5332
  conversation_ext_id?: string | null | undefined;
5495
5333
  message_ext_id?: string | null | undefined;
5496
5334
  read: boolean;
@@ -5524,9 +5362,7 @@ declare function useWorkNotifications(options: {
5524
5362
  is_identity_verified: boolean;
5525
5363
  };
5526
5364
  workspace_ext_id?: string | null | undefined;
5527
- dm_context_only: boolean;
5528
5365
  content?: string | null | undefined;
5529
- attachments?: string | null | undefined;
5530
5366
  conversation_ext_id?: string | null | undefined;
5531
5367
  message_ext_id?: string | null | undefined;
5532
5368
  read: boolean;
@@ -5584,9 +5420,7 @@ declare function useWorkNotifications(options: {
5584
5420
  is_identity_verified: boolean;
5585
5421
  };
5586
5422
  workspace_ext_id?: string | null | undefined;
5587
- dm_context_only: boolean;
5588
5423
  content?: string | null | undefined;
5589
- attachments?: string | null | undefined;
5590
5424
  conversation_ext_id?: string | null | undefined;
5591
5425
  message_ext_id?: string | null | undefined;
5592
5426
  read: boolean;
@@ -5620,9 +5454,7 @@ declare function useWorkNotifications(options: {
5620
5454
  is_identity_verified: boolean;
5621
5455
  };
5622
5456
  workspace_ext_id?: string | null | undefined;
5623
- dm_context_only: boolean;
5624
5457
  content?: string | null | undefined;
5625
- attachments?: string | null | undefined;
5626
5458
  conversation_ext_id?: string | null | undefined;
5627
5459
  message_ext_id?: string | null | undefined;
5628
5460
  read: boolean;
@@ -5680,9 +5512,7 @@ declare function useWorkNotifications(options: {
5680
5512
  is_identity_verified: boolean;
5681
5513
  };
5682
5514
  workspace_ext_id?: string | null | undefined;
5683
- dm_context_only: boolean;
5684
5515
  content?: string | null | undefined;
5685
- attachments?: string | null | undefined;
5686
5516
  conversation_ext_id?: string | null | undefined;
5687
5517
  message_ext_id?: string | null | undefined;
5688
5518
  read: boolean;
@@ -5716,9 +5546,7 @@ declare function useWorkNotifications(options: {
5716
5546
  is_identity_verified: boolean;
5717
5547
  };
5718
5548
  workspace_ext_id?: string | null | undefined;
5719
- dm_context_only: boolean;
5720
5549
  content?: string | null | undefined;
5721
- attachments?: string | null | undefined;
5722
5550
  conversation_ext_id?: string | null | undefined;
5723
5551
  message_ext_id?: string | null | undefined;
5724
5552
  read: boolean;
@@ -5753,9 +5581,7 @@ declare function useWorkNotifications(options: {
5753
5581
  is_identity_verified: boolean;
5754
5582
  };
5755
5583
  workspace_ext_id?: string | null | undefined;
5756
- dm_context_only: boolean;
5757
5584
  content?: string | null | undefined;
5758
- attachments?: string | null | undefined;
5759
5585
  conversation_ext_id?: string | null | undefined;
5760
5586
  message_ext_id?: string | null | undefined;
5761
5587
  read: boolean;
@@ -5810,9 +5636,7 @@ declare function useWorkNotifications(options: {
5810
5636
  is_identity_verified: boolean;
5811
5637
  };
5812
5638
  workspace_ext_id?: string | null | undefined;
5813
- dm_context_only: boolean;
5814
5639
  content?: string | null | undefined;
5815
- attachments?: string | null | undefined;
5816
5640
  conversation_ext_id?: string | null | undefined;
5817
5641
  message_ext_id?: string | null | undefined;
5818
5642
  read: boolean;
@@ -5846,9 +5670,7 @@ declare function useWorkNotifications(options: {
5846
5670
  is_identity_verified: boolean;
5847
5671
  };
5848
5672
  workspace_ext_id?: string | null | undefined;
5849
- dm_context_only: boolean;
5850
5673
  content?: string | null | undefined;
5851
- attachments?: string | null | undefined;
5852
5674
  conversation_ext_id?: string | null | undefined;
5853
5675
  message_ext_id?: string | null | undefined;
5854
5676
  read: boolean;
@@ -5860,13 +5682,12 @@ declare function useWorkNotifications(options: {
5860
5682
  /**
5861
5683
  * Direct-message view types.
5862
5684
  *
5863
- * These are the app-facing shapes derived from the raw, already-decrypted
5864
- * `NotificationResponse` rows the SDK returns. The kit groups a flat DM list
5865
- * into per-peer conversations so the UI never touches notifications directly.
5685
+ * These are the app-facing shapes derived from the SDK's decrypted chats
5686
+ * (`/v1/chats`). The kit maps each chat into a conversation so the UI never
5687
+ * touches chat keys or ciphertext directly.
5866
5688
  */
5867
5689
 
5868
5690
  type DmUser = components['schemas']['UserResponse'];
5869
- type DmNotification = components['schemas']['NotificationResponse'];
5870
5691
  /** One decrypted message within a 1:1 thread. */
5871
5692
  interface DmMessage {
5872
5693
  externalId: string;
@@ -5875,10 +5696,15 @@ interface DmMessage {
5875
5696
  createdAt: string;
5876
5697
  /** True when the current user sent this message. */
5877
5698
  isMine: boolean;
5878
- /** Whether the recipient has read it (read receipt). */
5699
+ /** Mine: whether the peer has read it (read receipt). Theirs: whether I have. */
5879
5700
  read: boolean;
5880
5701
  sender: DmUser;
5881
- recipient: DmUser;
5702
+ /** The other party of a 1:1 message, when there is exactly one. */
5703
+ recipient?: DmUser;
5704
+ /** The chat this message belongs to (`cht-`). */
5705
+ chatExtId?: string;
5706
+ /** Deleted: the server keeps it in place as a tombstone (empty `body`), shown as "Message deleted". */
5707
+ deleted?: boolean;
5882
5708
  }
5883
5709
  /**
5884
5710
  * Per-slot class overrides. The kit ships a complete semantic-token look; a
@@ -5895,9 +5721,20 @@ interface DmClassNames {
5895
5721
  /** The composer's send button. */
5896
5722
  sendButton?: string;
5897
5723
  }
5898
- /** A 1:1 conversation with a single peer, newest activity last. */
5724
+ /** A conversation (a 1:1 chat with a peer, or a group), newest activity last. */
5899
5725
  interface DmConversation {
5900
- /** The other party in the thread. */
5726
+ /**
5727
+ * Row identity and what `onSelect` receives. Defaults to `peer.external_id`;
5728
+ * a group row sets its chat id here.
5729
+ */
5730
+ id?: string;
5731
+ /** Shown instead of the peer's name — e.g. a group title. */
5732
+ title?: string;
5733
+ /** Member count, for a group row. */
5734
+ memberCount?: number;
5735
+ /** The chat behind this row (`cht-`), once one exists. */
5736
+ chatExtId?: string;
5737
+ /** The other party in the thread (for a group, the member whose avatar stands for it). */
5901
5738
  peer: DmUser;
5902
5739
  /** Messages in ascending time order. May be empty for a contact not yet messaged. */
5903
5740
  messages: DmMessage[];
@@ -5994,8 +5831,10 @@ declare function DirectMessages({ className, classNames, emptyThread, emptyList,
5994
5831
 
5995
5832
  interface ConversationListProps {
5996
5833
  conversations: DmConversation[];
5834
+ /** The selected row's id (`id ?? peer.external_id`). */
5997
5835
  selectedPeerId: string | null;
5998
- onSelect: (peerId: string) => void;
5836
+ /** Receives the row's id (`id ?? peer.external_id`). */
5837
+ onSelect: (id: string) => void;
5999
5838
  classNames?: Pick<DmClassNames, 'unreadBadge'>;
6000
5839
  /** Rendered when there are no conversations. */
6001
5840
  emptyState?: React.ReactNode;
@@ -6028,12 +5867,10 @@ interface MessageThreadProps {
6028
5867
  * not format dates itself (see DateSeparator).
6029
5868
  */
6030
5869
  formatDay?: (iso: string) => string;
6031
- /** Deletes a message. Omit to hide the affordance. */
5870
+ /** Deletes a message. Omit to hide the affordance. A deleted message (`deleted`) is a tombstone. */
6032
5871
  onDeleteMessage?: (message: DmMessage) => void;
6033
- /** External ids of messages already deleted, rendered as tombstones. */
6034
- deletedIds?: ReadonlySet<string>;
6035
5872
  }
6036
- declare function MessageThread({ conversation, classNames, emptyState, formatDay, onDeleteMessage, deletedIds, }: MessageThreadProps): React$1.JSX.Element;
5873
+ declare function MessageThread({ conversation, classNames, emptyState, formatDay, onDeleteMessage, }: MessageThreadProps): React$1.JSX.Element;
6037
5874
 
6038
5875
  interface MessageBubbleProps {
6039
5876
  message: DmMessage;
@@ -6088,10 +5925,10 @@ declare function DmAvatar({ user, className, size }: DmAvatarProps): React$1.JSX
6088
5925
  /**
6089
5926
  * useDirectMessages — the data layer for the DM block kit.
6090
5927
  *
6091
- * Sits entirely on top of the SDK's encrypted-by-default `arbi.dm` surface:
6092
- * it never touches `/v1/notifications` or crypto directly. It lists decrypted
6093
- * DMs, groups them into per-peer conversations, refreshes live over the shared
6094
- * WebSocket, and exposes send / mark-read mutations.
5928
+ * Sits entirely on top of the SDK's encrypted-by-default `arbi.chats` / `arbi.dm`
5929
+ * surfaces: it never touches `/v1/chats` or crypto directly. It lists my direct
5930
+ * chats with their decrypted threads, maps them to per-peer conversations,
5931
+ * refreshes live over the shared WebSocket, and exposes send / mark-read mutations.
6095
5932
  *
6096
5933
  * Requires an <ArbiWebSocketProvider> above it for live updates (standard in
6097
5934
  * the ARBI provider stack).
@@ -6106,15 +5943,18 @@ interface UseDirectMessagesResult {
6106
5943
  isError: boolean;
6107
5944
  error: unknown;
6108
5945
  refetch: () => void;
6109
- /** Send a message to a known peer (extId + public key from a conversation). */
6110
- sendMessage: (recipientExtId: string, recipientPublicKey: string, text: string) => Promise<unknown>;
6111
- /** Send by email / external_id, resolving the recipient's key internally. */
6112
- sendMessageTo: (recipient: string, text: string) => Promise<unknown>;
5946
+ /**
5947
+ * Send a message to a known peer. The public key is no longer needed (the SDK
5948
+ * opens the direct chat and derives the pair key) but the signature is kept.
5949
+ */
5950
+ sendMessage: (recipientExtId: string, recipientPublicKey: string | null | undefined, text: string) => Promise<DecryptedChatMessage>;
5951
+ /** Send by email / external_id, resolving the recipient internally. */
5952
+ sendMessageTo: (recipient: string, text: string) => Promise<DecryptedChatMessage>;
6113
5953
  isSending: boolean;
6114
5954
  /** The last send failure, or null. A failed send must never pass silently. */
6115
5955
  sendError: Error | null;
6116
- /** Mark the given message ids as read. */
6117
- markRead: (messageIds: string[]) => Promise<unknown>;
5956
+ /** Move my read watermark in a chat (to a message, or to now). */
5957
+ markRead: (chatExtId: string, messageExtId?: string) => Promise<unknown>;
6118
5958
  }
6119
5959
  declare function useDirectMessages(options?: {
6120
5960
  enabled?: boolean;
@@ -6462,6 +6302,78 @@ interface DocumentReviewProps {
6462
6302
  }
6463
6303
  declare function DocumentReview({ docId, doc, workspaceId, stage, activeChunkId, onClose, className, }: DocumentReviewProps): React__default.JSX.Element;
6464
6304
 
6305
+ /**
6306
+ * audio-segmenter — the voice-activity state machine behind `useAudioRecorder`'s
6307
+ * segmenting mode. Pure: fed one (level, time) sample per meter tick, it says
6308
+ * when a speech segment starts and when it ends, and whether the segment held
6309
+ * enough voice to be worth keeping. The hook owns the MediaRecorders; this
6310
+ * owns only the decisions, so it is unit-testable with synthetic levels.
6311
+ *
6312
+ * A segment starts on the first sample at or above `voiceThreshold`, ends after
6313
+ * `silenceMs` without voice or at `maxMs` (a cut while still speaking starts the
6314
+ * next segment on the same sample), and is dropped when it held less than
6315
+ * `minVoiceMs` of voice — a cough, a click, a door.
6316
+ */
6317
+ interface SegmenterConfig {
6318
+ /** Meter level (0-1, as `useAudioRecorder` reports it) that counts as voice. */
6319
+ voiceThreshold: number;
6320
+ /** Silence that ends a segment. */
6321
+ silenceMs: number;
6322
+ /** Longest segment; a longer utterance is cut into several. */
6323
+ maxMs: number;
6324
+ /** Segments with less voice than this are dropped. */
6325
+ minVoiceMs: number;
6326
+ /**
6327
+ * Extra silence a segment that is still too short waits for more voice before it ends (0 = none).
6328
+ * A short word and a short phrase a pause apart — "Perfect." … "Thank you both." — then make one
6329
+ * segment instead of two dropped ones.
6330
+ */
6331
+ holdShortMs?: number;
6332
+ }
6333
+ declare const DEFAULT_SEGMENTER_CONFIG: SegmenterConfig;
6334
+ type SegmenterState = {
6335
+ phase: 'idle';
6336
+ } | {
6337
+ phase: 'voice';
6338
+ /** When the segment started (the clock of the samples). */
6339
+ startedAt: number;
6340
+ /** The last sample that carried voice. */
6341
+ lastVoiceAt: number;
6342
+ /** The previous sample, to integrate voice time between samples. */
6343
+ lastSampleAt: number;
6344
+ /** Voice accumulated so far. */
6345
+ voiceMs: number;
6346
+ };
6347
+ type SegmenterEvent = {
6348
+ type: 'start';
6349
+ at: number;
6350
+ } | {
6351
+ type: 'end';
6352
+ at: number;
6353
+ startedAt: number;
6354
+ voiceMs: number;
6355
+ /** False when the segment held too little voice: discard it. */
6356
+ keep: boolean;
6357
+ reason: 'silence' | 'max' | 'flush';
6358
+ };
6359
+ declare const INITIAL_SEGMENTER_STATE: SegmenterState;
6360
+ /**
6361
+ * The meter level (0-1) of an RMS amplitude, as the segmenter's thresholds expect it. Normal
6362
+ * speech RMS is tiny (a laptop mic at conversational distance rarely exceeds ~0.1), so it is
6363
+ * boosted, then a sqrt (perceptual) curve makes quiet-to-moderate speech clearly visible.
6364
+ */
6365
+ declare function levelFromRms(rms: number): number;
6366
+ /** Feed one meter sample. Returns the next state and what happened (0-2 events). */
6367
+ declare function stepSegmenter(state: SegmenterState, level: number, t: number, config?: SegmenterConfig): {
6368
+ state: SegmenterState;
6369
+ events: SegmenterEvent[];
6370
+ };
6371
+ /** Close the open segment, if any (recording stopped). */
6372
+ declare function flushSegmenter(state: SegmenterState, t: number, config?: SegmenterConfig): {
6373
+ state: SegmenterState;
6374
+ events: SegmenterEvent[];
6375
+ };
6376
+
6465
6377
  /**
6466
6378
  * useAudioRecorder
6467
6379
  *
@@ -6471,11 +6383,55 @@ declare function DocumentReview({ docId, doc, workspaceId, stage, activeChunkId,
6471
6383
  * calls start()/stop() on press/release and never pauses; a toggle-style
6472
6384
  * recorder exposes all of start/pause/resume/stop/reset as buttons.
6473
6385
  *
6386
+ * Two optional modes extend it (both used by live call transcription):
6387
+ * - `track`: record from a MediaStreamTrack the host already has (a call's
6388
+ * microphone track) instead of opening the microphone; the track stays the
6389
+ * host's and is never stopped here.
6390
+ * - `onSegment`: segmenting mode. Instead of one recording, the level meter
6391
+ * drives a voice-activity state machine (`audio-segmenter.ts`) and each
6392
+ * speech segment is recorded by its own MediaRecorder, so every emitted
6393
+ * blob is a standalone file. Too-short segments are dropped. `blob` stays
6394
+ * null and pause/resume do nothing in this mode. Stopping, unmounting or
6395
+ * hiding the page emits the open segment (if it held enough voice).
6396
+ * - `chunkMs` (with `onSegment`): chunk mode, used by call recording. No
6397
+ * voice detection: the recorder is restarted every `chunkMs`
6398
+ * (`chunked-recorder.ts`), so every part — silence included — is a
6399
+ * standalone file, emitted in order through `onSegment`. Stopping (or
6400
+ * unmounting) flushes the tail part: a recording never drops audio.
6401
+ *
6474
6402
  * REUSE-FIRST: no app coupling. Failures surface via the returned `error`
6475
6403
  * string rather than an app-specific toast/notification call — the host
6476
6404
  * decides how (or whether) to display it.
6477
6405
  */
6406
+
6478
6407
  type AudioRecorderState = 'idle' | 'recording' | 'paused' | 'stopped';
6408
+ /** One speech segment emitted in segmenting mode. */
6409
+ interface AudioSegment {
6410
+ /** A standalone recording (its own container header), ready to upload. */
6411
+ blob: Blob;
6412
+ mimeType: string;
6413
+ /** Wall-clock start of the segment, ms since epoch. */
6414
+ startedAt: number;
6415
+ durationMs: number;
6416
+ /** How much of it carried voice (chunk mode: the whole part). */
6417
+ voiceMs: number;
6418
+ /** Chunk mode: the part's index in this recording run (0, 1, 2…). */
6419
+ index?: number;
6420
+ }
6421
+ interface UseAudioRecorderOptions {
6422
+ /** Record from this track instead of opening the microphone (it is never stopped here). */
6423
+ track?: MediaStreamTrack | null;
6424
+ /** Segmenting mode: called with each kept speech segment. */
6425
+ onSegment?: (segment: AudioSegment) => void;
6426
+ /** Voice-activity tuning for segmenting mode. */
6427
+ segmenter?: Partial<SegmenterConfig>;
6428
+ /** Chunk mode (with `onSegment`): a standalone part every `chunkMs`, no voice detection. */
6429
+ chunkMs?: number;
6430
+ /** Chunk mode: the MediaRecorder MIME type (default: Opus/WebM, else AAC/MP4). */
6431
+ mimeType?: string;
6432
+ /** Chunk mode: the encoder bitrate. */
6433
+ audioBitsPerSecond?: number;
6434
+ }
6479
6435
  interface UseAudioRecorderResult {
6480
6436
  state: AudioRecorderState;
6481
6437
  /** Live input level, 0-1. 0 while idle/paused/stopped. */
@@ -6499,7 +6455,68 @@ interface UseAudioRecorderResult {
6499
6455
  /** Back to idle: clears blob/elapsedMs/mimeType, ready to record again. */
6500
6456
  reset: () => void;
6501
6457
  }
6502
- declare function useAudioRecorder(): UseAudioRecorderResult;
6458
+ declare function useAudioRecorder(options?: UseAudioRecorderOptions): UseAudioRecorderResult;
6459
+
6460
+ /**
6461
+ * Chunked MediaRecorder engine — records a stream in fixed-length parts for a
6462
+ * long-running recording that is uploaded as it goes (call recording).
6463
+ *
6464
+ * Two ways to cut the parts:
6465
+ * - `restart` (default): every `chunkMs` the recorder is stopped and a new
6466
+ * one started on the same stream, so EVERY part is a standalone file with
6467
+ * its own container header (playable, decodable and transcribable on its
6468
+ * own). The gap between two parts is the few ms between stop and start.
6469
+ * - `timeslice`: one recorder, `requestData()` every `chunkMs` — the parts
6470
+ * are consecutive byte ranges of ONE file (only the first carries the
6471
+ * header), so concatenating them in order gives the whole recording with
6472
+ * no gap. Used where the parts are only ever played back as one file.
6473
+ *
6474
+ * Framework-free (no React) so it can be driven by `useAudioRecorder`'s
6475
+ * chunk mode and directly by a host that records a composed stream.
6476
+ */
6477
+ /** One part of a chunked recording. */
6478
+ interface RecordedChunk {
6479
+ blob: Blob;
6480
+ mimeType: string;
6481
+ /** 0, 1, 2… in recording order (per recorder instance). */
6482
+ index: number;
6483
+ /** Wall-clock start of the part, ms since epoch. */
6484
+ startedAt: number;
6485
+ durationMs: number;
6486
+ /** `restart`: always true. `timeslice`: only the first part starts a file. */
6487
+ standalone: boolean;
6488
+ }
6489
+ interface ChunkedRecorderOptions {
6490
+ stream: MediaStream;
6491
+ /** MediaRecorder MIME type (pick it with {@link pickRecorderMimeType}). */
6492
+ mimeType: string;
6493
+ /** Part length, ms (~30 s for call recording). */
6494
+ chunkMs: number;
6495
+ mode?: 'restart' | 'timeslice';
6496
+ audioBitsPerSecond?: number;
6497
+ videoBitsPerSecond?: number;
6498
+ onChunk(chunk: RecordedChunk): void;
6499
+ /** Called when a MediaRecorder fails; the recorder stops. */
6500
+ onError?(error: unknown): void;
6501
+ /** Wall clock (tests). */
6502
+ now?: () => number;
6503
+ }
6504
+ interface ChunkedRecorder {
6505
+ readonly running: boolean;
6506
+ start(): void;
6507
+ /** Stop and flush the tail part; resolves once it was handed to `onChunk`. */
6508
+ stop(): Promise<void>;
6509
+ }
6510
+ /** Audio MIME types in preference order: Opus/WebM, then AAC/MP4 (Safari). */
6511
+ declare const AUDIO_MIME_PREFERENCE: readonly ["audio/webm;codecs=opus", "audio/ogg;codecs=opus", "audio/mp4;codecs=mp4a.40.2", "audio/mp4"];
6512
+ /** Video MIME types in preference order: AV1, VP9, VP8 (with Opus), then MP4. */
6513
+ declare const VIDEO_MIME_PREFERENCE: readonly ["video/webm;codecs=av01,opus", "video/webm;codecs=av1,opus", "video/webm;codecs=vp9,opus", "video/webm;codecs=vp8,opus", "video/webm", "video/mp4"];
6514
+ /**
6515
+ * The first MIME type `isTypeSupported` accepts, or the last of the list (the
6516
+ * broadest container) when it accepts none.
6517
+ */
6518
+ declare function pickRecorderMimeType(kind: 'audio' | 'video', isTypeSupported?: (type: string) => boolean): string;
6519
+ declare function createChunkedRecorder(options: ChunkedRecorderOptions): ChunkedRecorder;
6503
6520
 
6504
6521
  /**
6505
6522
  * MicWaveformIndicator
@@ -6832,4 +6849,4 @@ interface ArbiUiState {
6832
6849
  }
6833
6850
  declare const useArbiUiStore: zustand.UseBoundStore<zustand.StoreApi<ArbiUiState>>;
6834
6851
 
6835
- export { type ActivityContent, type ActivityDescription, ActivityFeed, type ActivityFeedProps, type AgentAccessMode, type AgentConfigSections, type AggregatedDailyUsage, type AggregatedModelGroupUsage, AiActionCard, AiAnswer, type AiRunOptions, type AiTaskStatus, AppleIcon, ArbiBotHeadIcon, ArbiBotIcon, type ArbiChat, type ArbiChatCitation, type ArbiChatDocument, type ArbiChatMessage, type ArbiChatMessageStatus, type ArbiChatPassage, type ArbiChatRole, type ArbiChatThread, ArbiIcon, ArbiProvider, type ArbiProviderProps, type ArbiUiState, ArbiWebSocketProvider, type ArbiWebSocketProviderProps, type ArbiWsState, type ArbiWsStatus, ArtifactCanvas, type AspectOption, AudIcon, type AudioRecorderState, type AvatarCrop, type AvatarFileProblem, ChatBubble, type ChatBubbleProps, type Chunk, type ChunkActivation, CitationRenderer, type CitationRendererProps, type CitationState, ClaudeIcon, CommandPalette, type CommandPaletteClassNames, type CommandPaletteProps, CommandPaletteProvider, type CommandPaletteProviderProps, type CommandPaletteValue, ConversationList, type ConversationListProps, type CropArea, type CropOutput, type CropResult, DEFAULT_ASPECT_OPTIONS, DEFAULT_PASSWORD_CHANGE_FORM_MESSAGES, DEFAULT_START_BY_EMAIL_LABELS, DateSeparator, type DateSeparatorProps, type DeleteAccountBlocker, type DeleteAccountFlow, DirectMessages, type DirectMessagesProps, DmAvatar, type DmAvatarProps, type DmClassNames, DmComposer, type DmComposerProps, type DmConversation, type DmMessage, type DmNotification, type DmUser, DocIcon, DocQaPanel, DocSearch, DocumentCardMenu, type DocumentCardMenuProps, DocumentGallery, type DocumentGalleryProps, DocumentReview, type DocumentReviewProps, DocumentTable, type DocumentTableProps, DraftTitleControls, type DraftTitleControlsProps, type EmailChange, type EmailPreferences, EmlIcon, EntityIconComponent, FILE_TYPE_COLORS, FileIcon, FireworksIcon, GeminiIcon, GitHubIcon, GoogleIcon, type GrantAgentAccessVars, HtmlIcon, IdentityPurchase, IdentityStatus, IdentityStep, type IdentityVerificationApi, IdentityVerificationFlow, ImageCropModal, type ImageCropModalProps, ImageCropper, type ImageCropperProps, ImgIcon, InlineMicButton, type InlineMicButtonProps, LinkedInIcon, MAIL_DRAFT_REPLACED_EVENT, MAX_AVATAR_FILE_BYTES, type MailAccount, type MailAddress, type MailAttachment, type MailClient, type MailClientContextValue, MailClientProvider, type MailClientProviderProps, type MailCompose, type MailDeliveryRecipient, type MailDeliveryStatus, type MailDeviceFallback, type MailDraftEditorRequest, type MailDraftEditorSession, type MailFetch, type MailFolder, type MailMessage, type MailMessageUpdate, MailOfflineUnavailableError, type MailPage, type MailPolicy, type MailProject, type MessageArtifact, MessageArtifactCard, MessageBubble, type MessageBubbleProps, MessageThread, type MessageThreadProps, MicRecordingOverlay, type MicRecordingOverlayProps, MicWaveformIndicator, type MicWaveformIndicatorProps, type MountDiditOptions, type NameEditor, type NotificationPreferencesModel, type NotificationTypeMeta, OpenAIIcon, PROJECT_CREATION_DENIED_REASON, type PaletteNavItem, type ParsedChunk, type ParsedChunkMetadata, type ParsedDocument, type ParsedDocumentMetadata, type PasswordChangeForm, type PasswordChangeFormMessages, type PasswordChangeVars, PdfIcon, PhotoCapture, type PhotoCaptureProps, type ProfileView, type ProjectsUsageAggregate, ProviderIcon, RUN_WINDOW_MS, type RelevancePatch, type RenderMarkdown, type SaveAgentConfigVars, type SearchChunk, SemanticSearch, type SemanticSearchProps, type ShellRecentWorkspaceItem, type ShellWorkspaceItem, type ShellWorkspaceKind, type ShellWorkspaceMember, type ShellWorkspaceSeed, type ShellWorkspaceSource, StartByEmail, type StartByEmailLabels, type StartByEmailProps, type ThreadAccessors, type ThreadItem, type ToolResponses, TxtIcon, TypingIndicator, type UpdateProfileVars, type UsageTotals, type UseArbiChatOptions, type UseArbiShellWorkspacesOptions, type UseAudioRecorderResult, type UseAvatarCropOptions, type UseCameraStreamResult, type UseDeleteAccountFlowOptions, type UseDirectMessagesResult, type UseEmailChangeOptions, type UseIdentityVerificationFlowOptions, type UseNameEditorOptions, type UsePasswordChangeFormOptions, type UseShellWorkspacesOptions, type UseShellWorkspacesResult, type UseVideoRecorderResult, VidIcon, VideoCapture, type VideoCaptureProps, type VideoRecorderState, VoiceNoteRecorder, type VoiceNoteRecorderProps, type WorkspaceNotificationLevel, XlsIcon, accountPath, aliasTakenMessage, annotateThread, announceMailDraftReplaced, arbiMailClient, arbiQueryKeys, captureFrameAsBlob, classifyMediaError, createMailClient, cropImage, dayKey, defaultMailAlias, describeActivity, fileAttachment, formatElapsed, formatIdentityPrice, formatRelativeTime, getNotificationTypeMeta, getWorkspaceActionText, getWorkspaceKind, getWorkspaceSentPhrase, hasVideoTrack, identityStepFor, invalidateTagData, isAliasTakenError, isUsageMetered, isWorkspaceNotificationType, mailDraftIdFromContent, mailJson, mailQueryKeys, mountDiditVerification, nextAliasSuggestion, parseActivityContent, parseDeleteAccountBlockers, pickRecentWorkspaces, redlineStats, resolveActiveWorkspace, textToArtifact, titleFromQuestion, toChatCitations, toNotificationPreferences, toProfileView, toRedlineMarkdown, toShellWorkspace, useActOnStep, useActivity, useAddContacts, useAgentChats, useAgentConfig, useAgentModels, useAgentSession, useAgentWorkspaces, useAgents, useAiTask, useArbi, useArbiChat, useArbiConnected, useArbiDocumentSync, useArbiShellWorkspaces, useArbiUiStore, useArbiWebSocket, useArbiWsContext, useArbiWsMessage, useArbiWsStatus, useArbiWsStore, useArbiWsTask, useArbiWsTasks, useAssistantQuery, useAudioRecorder, useAvatarCrop, useCameraStream, useCanCreateProjects, useClaimNativeAlias, useCloseAgentSession, useCommandPalette, useConfigs, useConfirmEmailChange, useConnectMailAccount, useContacts, useConversationActivity, useConversationPendingAuth, useConversationThreads, useConversationUsage, useConversations, useCreateAgent, useCreateWork, useCreateWorkflow, useCurrentSessionId, useCurrentUser, useDeleteAccount, useDeleteAccountFlow, useDeleteAgents, useDeleteWorkflow, useDeploymentDomain, useDirectMessages, useDisconnectMailAccount, useDocuments, useEmailChange, useFacts, useFilteredProjects, useFirmPool, useFollowThread, useGrantAgentAccess, useHealth, useIdentityVerification, useIdentityVerificationFlow, useInvalidateTagData, useLogoutAllSessions, useMailAccounts, useMailCache, useMailClient, useMailDraftCompose, useMailDraftEditor, useMailDraftReplaced, useMailFolders, useMailMessage, useMailMessages, useMailOnline, useMailPolicy, useMailProjects, useMailUnlock, useNameEditor, useNotificationPreferences, useParsedDocument, usePasswordChange, usePasswordChangeForm, usePendingContacts, usePlanWork, useProfile, useProjectConversationUsage, useProjectEvents, useProjectInvoices, useProjectUsage, useProjects, useProjectsUsage, useRemoveContacts, useRequestEmailChange, useRevokeAgentAccess, useRunConversation, useRunWorkflow, useSaveAgentConfig, useSaveMailDraft, useSemanticSearch, useSendBackStep, useSendMail, useSessions, useSetTagValues, useShellWorkspaces, useSkills, useStartAgentSession, useStartWorkQuery, useTagKindSchema, useTags, useTerminateSession, useThumbnails, useTopUpFirmPool, useUpdateConversation, useUpdateMailMessage, useUpdateProfile, useUpdateProjectFields, useUpdateTagKindSchema, useUpdateWorkflow, useUploadSkillFiles, useUserSettings, useUserUsageToday, useVideoRecorder, useWorkNotifications, useWorkflows, useWorkspaceActivity, useWorkspaceDocs, useWorkspaceNotificationLevel, useWorkspaceUsers, useWorkspaces, userDisplayName, userInitials, workflowStepOf };
6852
+ export { AUDIO_MIME_PREFERENCE, type ActivityContent, type ActivityDescription, ActivityFeed, type ActivityFeedProps, type AgentAccessMode, type AgentConfigSections, type AggregatedDailyUsage, type AggregatedModelGroupUsage, AiActionCard, AiAnswer, type AiRunOptions, type AiTaskStatus, AppleIcon, ArbiBotHeadIcon, ArbiBotIcon, type ArbiChat, type ArbiChatCitation, type ArbiChatDocument, type ArbiChatMessage, type ArbiChatMessageStatus, type ArbiChatPassage, type ArbiChatRole, type ArbiChatThread, ArbiIcon, ArbiProvider, type ArbiProviderProps, type ArbiUiState, ArbiWebSocketProvider, type ArbiWebSocketProviderProps, type ArbiWsState, type ArbiWsStatus, ArtifactCanvas, type AspectOption, AudIcon, type AudioRecorderState, type AudioSegment, type AvatarCrop, type AvatarFileProblem, ChatBubble, type ChatBubbleProps, type Chunk, type ChunkActivation, type ChunkedRecorder, type ChunkedRecorderOptions, CitationRenderer, type CitationRendererProps, type CitationState, ClaudeIcon, CommandPalette, type CommandPaletteClassNames, type CommandPaletteProps, CommandPaletteProvider, type CommandPaletteProviderProps, type CommandPaletteValue, ConversationList, type ConversationListProps, type CropArea, type CropOutput, type CropResult, DEFAULT_ASPECT_OPTIONS, DEFAULT_PASSWORD_CHANGE_FORM_MESSAGES, DEFAULT_SEGMENTER_CONFIG, DEFAULT_START_BY_EMAIL_LABELS, DateSeparator, type DateSeparatorProps, type DeleteAccountBlocker, type DeleteAccountFlow, DirectMessages, type DirectMessagesProps, DmAvatar, type DmAvatarProps, type DmClassNames, DmComposer, type DmComposerProps, type DmConversation, type DmMessage, type DmUser, DocIcon, DocQaPanel, DocSearch, DocumentCardMenu, type DocumentCardMenuProps, DocumentGallery, type DocumentGalleryProps, DocumentReview, type DocumentReviewProps, DocumentTable, type DocumentTableProps, DraftTitleControls, type DraftTitleControlsProps, type EmailChange, type EmailPreferences, EmlIcon, EntityIconComponent, FILE_TYPE_COLORS, FileIcon, FireworksIcon, GeminiIcon, GitHubIcon, GoogleIcon, type GrantAgentAccessVars, HtmlIcon, INITIAL_SEGMENTER_STATE, IdentityPurchase, IdentityStatus, IdentityStep, type IdentityVerificationApi, IdentityVerificationFlow, ImageCropModal, type ImageCropModalProps, ImageCropper, type ImageCropperProps, ImgIcon, InlineMicButton, type InlineMicButtonProps, LinkedInIcon, MAIL_DRAFT_REPLACED_EVENT, MAX_AVATAR_FILE_BYTES, type MailAccount, type MailAddress, type MailAttachment, type MailClient, type MailClientContextValue, MailClientProvider, type MailClientProviderProps, type MailCompose, type MailDeliveryRecipient, type MailDeliveryStatus, type MailDeviceFallback, type MailDraftEditorRequest, type MailDraftEditorSession, type MailFetch, type MailFolder, type MailMessage, type MailMessageUpdate, MailOfflineUnavailableError, type MailPage, type MailPolicy, type MailProject, type MessageArtifact, MessageArtifactCard, MessageBubble, type MessageBubbleProps, MessageThread, type MessageThreadProps, MicRecordingOverlay, type MicRecordingOverlayProps, MicWaveformIndicator, type MicWaveformIndicatorProps, type MountDiditOptions, type NameEditor, type NotificationPreferencesModel, type NotificationTypeMeta, OpenAIIcon, PROJECT_CREATION_DENIED_REASON, type PaletteNavItem, type ParsedChunk, type ParsedChunkMetadata, type ParsedDocument, type ParsedDocumentMetadata, type PasswordChangeForm, type PasswordChangeFormMessages, type PasswordChangeVars, PdfIcon, PhotoCapture, type PhotoCaptureProps, type ProfileView, type ProjectsUsageAggregate, ProviderIcon, RUN_WINDOW_MS, type RecordedChunk, type RelevancePatch, type RenderMarkdown, type SaveAgentConfigVars, type SearchChunk, type SegmenterConfig, type SegmenterEvent, type SegmenterState, SemanticSearch, type SemanticSearchProps, type ShellRecentWorkspaceItem, type ShellWorkspaceItem, type ShellWorkspaceKind, type ShellWorkspaceMember, type ShellWorkspaceSeed, type ShellWorkspaceSource, StartByEmail, type StartByEmailLabels, type StartByEmailProps, type ThreadAccessors, type ThreadItem, type ToolResponses, TxtIcon, TypingIndicator, type UpdateProfileVars, type UsageTotals, type UseArbiChatOptions, type UseArbiShellWorkspacesOptions, type UseAudioRecorderOptions, type UseAudioRecorderResult, type UseAvatarCropOptions, type UseCameraStreamResult, type UseDeleteAccountFlowOptions, type UseDirectMessagesResult, type UseEmailChangeOptions, type UseIdentityVerificationFlowOptions, type UseNameEditorOptions, type UsePasswordChangeFormOptions, type UseShellWorkspacesOptions, type UseShellWorkspacesResult, type UseVideoRecorderResult, VIDEO_MIME_PREFERENCE, VidIcon, VideoCapture, type VideoCaptureProps, type VideoRecorderState, VoiceNoteRecorder, type VoiceNoteRecorderProps, type WorkspaceNotificationLevel, XlsIcon, accountPath, aliasTakenMessage, annotateThread, announceMailDraftReplaced, arbiMailClient, arbiQueryKeys, captureFrameAsBlob, classifyMediaError, createChunkedRecorder, createMailClient, cropImage, dayKey, defaultMailAlias, describeActivity, fileAttachment, flushSegmenter, formatElapsed, formatIdentityPrice, formatRelativeTime, getNotificationTypeMeta, getWorkspaceActionText, getWorkspaceKind, getWorkspaceSentPhrase, hasVideoTrack, identityStepFor, invalidateTagData, isAliasTakenError, isUsageMetered, isWorkspaceNotificationType, levelFromRms, mailDraftIdFromContent, mailJson, mailQueryKeys, mountDiditVerification, nextAliasSuggestion, parseActivityContent, parseDeleteAccountBlockers, pickRecentWorkspaces, pickRecorderMimeType, redlineStats, resolveActiveWorkspace, stepSegmenter, textToArtifact, titleFromQuestion, toChatCitations, toNotificationPreferences, toProfileView, toRedlineMarkdown, toShellWorkspace, useActOnStep, useActivity, useAgentChats, useAgentConfig, useAgentModels, useAgentSession, useAgentWorkspaces, useAgents, useAiTask, useArbi, useArbiChat, useArbiConnected, useArbiDocumentSync, useArbiShellWorkspaces, useArbiUiStore, useArbiWebSocket, useArbiWsContext, useArbiWsMessage, useArbiWsStatus, useArbiWsStore, useArbiWsTask, useArbiWsTasks, useAssistantQuery, useAudioRecorder, useAvatarCrop, useCameraStream, useCanCreateProjects, useClaimNativeAlias, useCloseAgentSession, useCommandPalette, useConfigs, useConfirmEmailChange, useConnectMailAccount, useContacts, useConversationActivity, useConversationPendingAuth, useConversationThreads, useConversationUsage, useConversations, useCreateAgent, useCreateContact, useCreateWork, useCreateWorkflow, useCurrentSessionId, useCurrentUser, useDeleteAccount, useDeleteAccountFlow, useDeleteAgents, useDeleteContact, useDeleteWorkflow, useDeploymentDomain, useDirectMessages, useDisconnectMailAccount, useDocuments, useEmailChange, useFacts, useFilteredProjects, useFirmPool, useFollowThread, useGrantAgentAccess, useHealth, useIdentityVerification, useIdentityVerificationFlow, useInvalidateTagData, useInviteContacts, useLogoutAllSessions, useMailAccounts, useMailCache, useMailClient, useMailDraftCompose, useMailDraftEditor, useMailDraftReplaced, useMailFolders, useMailMessage, useMailMessages, useMailOnline, useMailPolicy, useMailProjects, useMailUnlock, useNameEditor, useNotificationPreferences, useParsedDocument, usePasswordChange, usePasswordChangeForm, usePendingContacts, usePlanWork, useProfile, useProjectConversationUsage, useProjectEvents, useProjectInvoices, useProjectUsage, useProjects, useProjectsUsage, useRequestEmailChange, useRevokeAgentAccess, useRunConversation, useRunWorkflow, useSaveAgentConfig, useSaveMailDraft, useSemanticSearch, useSendBackStep, useSendMail, useSessions, useSetTagValues, useShellWorkspaces, useSkills, useStartAgentSession, useStartWorkQuery, useTagKindSchema, useTags, useTerminateSession, useThumbnails, useTopUpFirmPool, useUpdateContact, useUpdateConversation, useUpdateMailMessage, useUpdateProfile, useUpdateProjectFields, useUpdateTagKindSchema, useUpdateWorkflow, useUploadSkillFiles, useUserSettings, useUserUsageToday, useVideoRecorder, useWorkNotifications, useWorkflows, useWorkspaceActivity, useWorkspaceDocs, useWorkspaceNotificationLevel, useWorkspaceUsers, useWorkspaces, userDisplayName, userInitials, workflowStepOf };