@arbidocs/sdk 0.5.161 → 0.5.163

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.
@@ -9035,6 +9035,10 @@ type RecordingTranscribeResponse = Schemas['CallRecordingTranscribeResponse'];
9035
9035
  /** The role an invitee is given in a webinar (the host is whoever made it). */
9036
9036
  type InviteeRole = NonNullable<NonNullable<CallCreate['invitees']>[number]['role']>;
9037
9037
  declare function getCallsConfig(arbi: ArbiClient): Promise<CallsConfig>;
9038
+ declare function listCalls(arbi: ArbiClient, query?: {
9039
+ limit?: number;
9040
+ offset?: number;
9041
+ }): Promise<CallResponse[]>;
9038
9042
  declare function createCall(arbi: ArbiClient, body: CallCreate): Promise<CallResponse>;
9039
9043
  declare function getCall(arbi: ArbiClient, callExtId: string): Promise<CallResponse>;
9040
9044
  declare function updateCall(arbi: ArbiClient, callExtId: string, body: CallUpdate): Promise<CallResponse>;
@@ -9252,6 +9256,7 @@ declare const calls_isQuotaError: typeof isQuotaError;
9252
9256
  declare const calls_knockCall: typeof knockCall;
9253
9257
  declare const calls_listCallInviteLinks: typeof listCallInviteLinks;
9254
9258
  declare const calls_listCallRecordings: typeof listCallRecordings;
9259
+ declare const calls_listCalls: typeof listCalls;
9255
9260
  declare const calls_listQuestions: typeof listQuestions;
9256
9261
  declare const calls_muteCallParticipant: typeof muteCallParticipant;
9257
9262
  declare const calls_pollKnock: typeof pollKnock;
@@ -9277,7 +9282,7 @@ declare const calls_updateQuestion: typeof updateQuestion;
9277
9282
  declare const calls_updateWebinar: typeof updateWebinar;
9278
9283
  declare const calls_voteQuestion: typeof voteQuestion;
9279
9284
  declare namespace calls {
9280
- export { calls_CallApiError as CallApiError, type calls_CallChatCreate as CallChatCreate, type calls_CallChatResponse as CallChatResponse, type calls_CallCreate as CallCreate, type calls_CallDeclinedMessage as CallDeclinedMessage, type calls_CallEndedMessage as CallEndedMessage, type calls_CallInviteLinkCreate as CallInviteLinkCreate, type calls_CallInviteLinkResponse as CallInviteLinkResponse, type calls_CallJoinPolicy as CallJoinPolicy, type calls_CallKnockMessage as CallKnockMessage, type calls_CallKnockResolvedMessage as CallKnockResolvedMessage, type calls_CallKnockResponse as CallKnockResponse, calls_CallPeer as CallPeer, type calls_CallQuestion as CallQuestion, type calls_CallQuestionStatus as CallQuestionStatus, type calls_CallQuestionUpdate as CallQuestionUpdate, type calls_CallRecording as CallRecording, type calls_CallRecordingState as CallRecordingState, type calls_CallResponse as CallResponse, type calls_CallRingingMessage as CallRingingMessage, type calls_CallStartedMessage as CallStartedMessage, type calls_CallTokenResponse as CallTokenResponse, type calls_CallTranscribeResponse as CallTranscribeResponse, type calls_CallTranscriptionMessage as CallTranscriptionMessage, type calls_CallTranscriptionState as CallTranscriptionState, type calls_CallUpdate as CallUpdate, type calls_CallWebinarMessage as CallWebinarMessage, type calls_CallsConfig as CallsConfig, type calls_CreateTrackBody as CreateTrackBody, type calls_InviteeRole as InviteeRole, type calls_PartBody as PartBody, type calls_PartUpload as PartUpload, type calls_RecordingMode as RecordingMode, type calls_RecordingPart as RecordingPart, type calls_RecordingQuota as RecordingQuota, type calls_RecordingTrack as RecordingTrack, type calls_RecordingTrackKind as RecordingTrackKind, type calls_RecordingTranscribeResponse as RecordingTranscribeResponse, type calls_TranscribeRecordingParams as TranscribeRecordingParams, type calls_TranscribeSegmentParams as TranscribeSegmentParams, type calls_TranscriptSegmentRef as TranscriptSegmentRef, calls_WEBINAR_MODERATORS as WEBINAR_MODERATORS, calls_WEBINAR_TEAM as WEBINAR_TEAM, type calls_WebinarChat as WebinarChat, type calls_WebinarRole as WebinarRole, type calls_WebinarState as WebinarState, type calls_WebinarUpdate as WebinarUpdate, calls_askQuestion as askQuestion, calls_callError as callError, calls_cancelCall as cancelCall, calls_commitRecordingPart as commitRecordingPart, calls_createCall as createCall, calls_createCallInviteLink as createCallInviteLink, calls_createRecordingTrack as createRecordingTrack, calls_decideKnock as decideKnock, calls_declineCall as declineCall, calls_deleteQuestion as deleteQuestion, calls_deleteRecording as deleteRecording, calls_deleteRecordingMedia as deleteRecordingMedia, calls_demoteFromStage as demoteFromStage, calls_downloadRecordingPart as downloadRecordingPart, calls_fetchCallToken as fetchCallToken, calls_getCall as getCall, calls_getCallRecording as getCallRecording, calls_getCallsConfig as getCallsConfig, calls_getOrCreateCallChat as getOrCreateCallChat, calls_getRecordingQuota as getRecordingQuota, calls_getWebinar as getWebinar, calls_isQuotaError as isQuotaError, calls_knockCall as knockCall, calls_listCallInviteLinks as listCallInviteLinks, calls_listCallRecordings as listCallRecordings, calls_listQuestions as listQuestions, calls_muteCallParticipant as muteCallParticipant, calls_pollKnock as pollKnock, calls_postChatTranscriptLine as postChatTranscriptLine, calls_presignRecordingPart as presignRecordingPart, calls_promoteToStage as promoteToStage, calls_quotaNeedsWarning as quotaNeedsWarning, calls_recordingStateFrom as recordingStateFrom, calls_recordingStateOfCall as recordingStateOfCall, calls_removeCallParticipant as removeCallParticipant, calls_revokeCallInviteLink as revokeCallInviteLink, calls_ringCall as ringCall, calls_setCallTranscription as setCallTranscription, calls_setRecordingExpiry as setRecordingExpiry, calls_setWebinarHand as setWebinarHand, calls_startCallRecording as startCallRecording, calls_stopCallRecording as stopCallRecording, calls_transcribeCallSegment as transcribeCallSegment, calls_transcribeRecordingPart as transcribeRecordingPart, calls_transcriptionStateFrom as transcriptionStateFrom, calls_updateCall as updateCall, calls_updateQuestion as updateQuestion, calls_updateWebinar as updateWebinar, calls_voteQuestion as voteQuestion };
9285
+ export { calls_CallApiError as CallApiError, type calls_CallChatCreate as CallChatCreate, type calls_CallChatResponse as CallChatResponse, type calls_CallCreate as CallCreate, type calls_CallDeclinedMessage as CallDeclinedMessage, type calls_CallEndedMessage as CallEndedMessage, type calls_CallInviteLinkCreate as CallInviteLinkCreate, type calls_CallInviteLinkResponse as CallInviteLinkResponse, type calls_CallJoinPolicy as CallJoinPolicy, type calls_CallKnockMessage as CallKnockMessage, type calls_CallKnockResolvedMessage as CallKnockResolvedMessage, type calls_CallKnockResponse as CallKnockResponse, calls_CallPeer as CallPeer, type calls_CallQuestion as CallQuestion, type calls_CallQuestionStatus as CallQuestionStatus, type calls_CallQuestionUpdate as CallQuestionUpdate, type calls_CallRecording as CallRecording, type calls_CallRecordingState as CallRecordingState, type calls_CallResponse as CallResponse, type calls_CallRingingMessage as CallRingingMessage, type calls_CallStartedMessage as CallStartedMessage, type calls_CallTokenResponse as CallTokenResponse, type calls_CallTranscribeResponse as CallTranscribeResponse, type calls_CallTranscriptionMessage as CallTranscriptionMessage, type calls_CallTranscriptionState as CallTranscriptionState, type calls_CallUpdate as CallUpdate, type calls_CallWebinarMessage as CallWebinarMessage, type calls_CallsConfig as CallsConfig, type calls_CreateTrackBody as CreateTrackBody, type calls_InviteeRole as InviteeRole, type calls_PartBody as PartBody, type calls_PartUpload as PartUpload, type calls_RecordingMode as RecordingMode, type calls_RecordingPart as RecordingPart, type calls_RecordingQuota as RecordingQuota, type calls_RecordingTrack as RecordingTrack, type calls_RecordingTrackKind as RecordingTrackKind, type calls_RecordingTranscribeResponse as RecordingTranscribeResponse, type calls_TranscribeRecordingParams as TranscribeRecordingParams, type calls_TranscribeSegmentParams as TranscribeSegmentParams, type calls_TranscriptSegmentRef as TranscriptSegmentRef, calls_WEBINAR_MODERATORS as WEBINAR_MODERATORS, calls_WEBINAR_TEAM as WEBINAR_TEAM, type calls_WebinarChat as WebinarChat, type calls_WebinarRole as WebinarRole, type calls_WebinarState as WebinarState, type calls_WebinarUpdate as WebinarUpdate, calls_askQuestion as askQuestion, calls_callError as callError, calls_cancelCall as cancelCall, calls_commitRecordingPart as commitRecordingPart, calls_createCall as createCall, calls_createCallInviteLink as createCallInviteLink, calls_createRecordingTrack as createRecordingTrack, calls_decideKnock as decideKnock, calls_declineCall as declineCall, calls_deleteQuestion as deleteQuestion, calls_deleteRecording as deleteRecording, calls_deleteRecordingMedia as deleteRecordingMedia, calls_demoteFromStage as demoteFromStage, calls_downloadRecordingPart as downloadRecordingPart, calls_fetchCallToken as fetchCallToken, calls_getCall as getCall, calls_getCallRecording as getCallRecording, calls_getCallsConfig as getCallsConfig, calls_getOrCreateCallChat as getOrCreateCallChat, calls_getRecordingQuota as getRecordingQuota, calls_getWebinar as getWebinar, calls_isQuotaError as isQuotaError, calls_knockCall as knockCall, calls_listCallInviteLinks as listCallInviteLinks, calls_listCallRecordings as listCallRecordings, calls_listCalls as listCalls, calls_listQuestions as listQuestions, calls_muteCallParticipant as muteCallParticipant, calls_pollKnock as pollKnock, calls_postChatTranscriptLine as postChatTranscriptLine, calls_presignRecordingPart as presignRecordingPart, calls_promoteToStage as promoteToStage, calls_quotaNeedsWarning as quotaNeedsWarning, calls_recordingStateFrom as recordingStateFrom, calls_recordingStateOfCall as recordingStateOfCall, calls_removeCallParticipant as removeCallParticipant, calls_revokeCallInviteLink as revokeCallInviteLink, calls_ringCall as ringCall, calls_setCallTranscription as setCallTranscription, calls_setRecordingExpiry as setRecordingExpiry, calls_setWebinarHand as setWebinarHand, calls_startCallRecording as startCallRecording, calls_stopCallRecording as stopCallRecording, calls_transcribeCallSegment as transcribeCallSegment, calls_transcribeRecordingPart as transcribeRecordingPart, calls_transcriptionStateFrom as transcriptionStateFrom, calls_updateCall as updateCall, calls_updateQuestion as updateQuestion, calls_updateWebinar as updateWebinar, calls_voteQuestion as voteQuestion };
9281
9286
  }
9282
9287
 
9283
9288
  type DocUpdateRequest = components['schemas']['DocUpdateRequest'];
@@ -15342,7 +15347,8 @@ declare class Arbi {
15342
15347
  /**
15343
15348
  * Calls (LiveKit): one call system for thread, chat (DM / group), contacts and scheduled calls.
15344
15349
  * Each call has one random key K made in the creator's process; the server and the media server
15345
- * only ever hold it sealed to people (or in a link's fragment). `start`, `open`, `answer` and
15350
+ * hold it sealed to people (or in a link's fragment); personal agents may receive an explicit
15351
+ * sealed management grant. `start`, `open`, `answer` and
15346
15352
  * `resetLink` do the key work and hand back K with the call; everything else moves ciphertext.
15347
15353
  */
15348
15354
  readonly calls: {
@@ -15353,6 +15359,40 @@ declare class Arbi {
15353
15359
  default_join_policy: "invited" | "signed_in" | "open";
15354
15360
  transcription_available: boolean;
15355
15361
  }>;
15362
+ list: (query?: {
15363
+ limit?: number;
15364
+ offset?: number;
15365
+ }) => Promise<{
15366
+ external_id: string;
15367
+ room_name: string;
15368
+ title?: string | null;
15369
+ creator_ext_id: string;
15370
+ creator_name: string;
15371
+ creator_encryption_public_key?: string | null;
15372
+ chat_ext_id?: string | null;
15373
+ meeting_conversation_ext_id?: string | null;
15374
+ log_conversation_ext_id?: string | null;
15375
+ locked_workspace_ext_id?: string | null;
15376
+ workspace_locked: boolean;
15377
+ locked: boolean;
15378
+ join_policy: "invited" | "signed_in" | "open";
15379
+ link_version: number;
15380
+ cancelled: boolean;
15381
+ started_at?: string | null;
15382
+ ended_at?: string | null;
15383
+ last_participants?: string[];
15384
+ created_at: string;
15385
+ my_sealed_key?: string | null;
15386
+ is_creator: boolean;
15387
+ created?: boolean | null;
15388
+ invitees?: components["schemas"]["CallInviteeResponse"][];
15389
+ participants?: components["schemas"]["CallParticipant"][];
15390
+ transcription?: components["schemas"]["CallTranscriptionState"] | null;
15391
+ recording?: components["schemas"]["CallRecordingState"] | null;
15392
+ link_path: string;
15393
+ mode: "call" | "webinar";
15394
+ webinar?: components["schemas"]["CallWebinarSummary"] | null;
15395
+ }[]>;
15356
15396
  get: (callExtId: string) => Promise<{
15357
15397
  external_id: string;
15358
15398
  room_name: string;
@@ -15540,6 +15580,11 @@ declare class Arbi {
15540
15580
  key: Uint8Array<ArrayBufferLike>;
15541
15581
  title: string | null;
15542
15582
  }>;
15583
+ /** Seal a key I already hold to my own personal agents; never a call invitation. */
15584
+ delegateToAgents: (call: {
15585
+ external_id: string;
15586
+ link_version: number;
15587
+ }, key: Uint8Array) => Promise<boolean>;
15543
15588
  /** My copy of a call's K from its row, or null. */
15544
15589
  key: (call: {
15545
15590
  my_sealed_key?: string | null;
@@ -9035,6 +9035,10 @@ type RecordingTranscribeResponse = Schemas['CallRecordingTranscribeResponse'];
9035
9035
  /** The role an invitee is given in a webinar (the host is whoever made it). */
9036
9036
  type InviteeRole = NonNullable<NonNullable<CallCreate['invitees']>[number]['role']>;
9037
9037
  declare function getCallsConfig(arbi: ArbiClient): Promise<CallsConfig>;
9038
+ declare function listCalls(arbi: ArbiClient, query?: {
9039
+ limit?: number;
9040
+ offset?: number;
9041
+ }): Promise<CallResponse[]>;
9038
9042
  declare function createCall(arbi: ArbiClient, body: CallCreate): Promise<CallResponse>;
9039
9043
  declare function getCall(arbi: ArbiClient, callExtId: string): Promise<CallResponse>;
9040
9044
  declare function updateCall(arbi: ArbiClient, callExtId: string, body: CallUpdate): Promise<CallResponse>;
@@ -9252,6 +9256,7 @@ declare const calls_isQuotaError: typeof isQuotaError;
9252
9256
  declare const calls_knockCall: typeof knockCall;
9253
9257
  declare const calls_listCallInviteLinks: typeof listCallInviteLinks;
9254
9258
  declare const calls_listCallRecordings: typeof listCallRecordings;
9259
+ declare const calls_listCalls: typeof listCalls;
9255
9260
  declare const calls_listQuestions: typeof listQuestions;
9256
9261
  declare const calls_muteCallParticipant: typeof muteCallParticipant;
9257
9262
  declare const calls_pollKnock: typeof pollKnock;
@@ -9277,7 +9282,7 @@ declare const calls_updateQuestion: typeof updateQuestion;
9277
9282
  declare const calls_updateWebinar: typeof updateWebinar;
9278
9283
  declare const calls_voteQuestion: typeof voteQuestion;
9279
9284
  declare namespace calls {
9280
- export { calls_CallApiError as CallApiError, type calls_CallChatCreate as CallChatCreate, type calls_CallChatResponse as CallChatResponse, type calls_CallCreate as CallCreate, type calls_CallDeclinedMessage as CallDeclinedMessage, type calls_CallEndedMessage as CallEndedMessage, type calls_CallInviteLinkCreate as CallInviteLinkCreate, type calls_CallInviteLinkResponse as CallInviteLinkResponse, type calls_CallJoinPolicy as CallJoinPolicy, type calls_CallKnockMessage as CallKnockMessage, type calls_CallKnockResolvedMessage as CallKnockResolvedMessage, type calls_CallKnockResponse as CallKnockResponse, calls_CallPeer as CallPeer, type calls_CallQuestion as CallQuestion, type calls_CallQuestionStatus as CallQuestionStatus, type calls_CallQuestionUpdate as CallQuestionUpdate, type calls_CallRecording as CallRecording, type calls_CallRecordingState as CallRecordingState, type calls_CallResponse as CallResponse, type calls_CallRingingMessage as CallRingingMessage, type calls_CallStartedMessage as CallStartedMessage, type calls_CallTokenResponse as CallTokenResponse, type calls_CallTranscribeResponse as CallTranscribeResponse, type calls_CallTranscriptionMessage as CallTranscriptionMessage, type calls_CallTranscriptionState as CallTranscriptionState, type calls_CallUpdate as CallUpdate, type calls_CallWebinarMessage as CallWebinarMessage, type calls_CallsConfig as CallsConfig, type calls_CreateTrackBody as CreateTrackBody, type calls_InviteeRole as InviteeRole, type calls_PartBody as PartBody, type calls_PartUpload as PartUpload, type calls_RecordingMode as RecordingMode, type calls_RecordingPart as RecordingPart, type calls_RecordingQuota as RecordingQuota, type calls_RecordingTrack as RecordingTrack, type calls_RecordingTrackKind as RecordingTrackKind, type calls_RecordingTranscribeResponse as RecordingTranscribeResponse, type calls_TranscribeRecordingParams as TranscribeRecordingParams, type calls_TranscribeSegmentParams as TranscribeSegmentParams, type calls_TranscriptSegmentRef as TranscriptSegmentRef, calls_WEBINAR_MODERATORS as WEBINAR_MODERATORS, calls_WEBINAR_TEAM as WEBINAR_TEAM, type calls_WebinarChat as WebinarChat, type calls_WebinarRole as WebinarRole, type calls_WebinarState as WebinarState, type calls_WebinarUpdate as WebinarUpdate, calls_askQuestion as askQuestion, calls_callError as callError, calls_cancelCall as cancelCall, calls_commitRecordingPart as commitRecordingPart, calls_createCall as createCall, calls_createCallInviteLink as createCallInviteLink, calls_createRecordingTrack as createRecordingTrack, calls_decideKnock as decideKnock, calls_declineCall as declineCall, calls_deleteQuestion as deleteQuestion, calls_deleteRecording as deleteRecording, calls_deleteRecordingMedia as deleteRecordingMedia, calls_demoteFromStage as demoteFromStage, calls_downloadRecordingPart as downloadRecordingPart, calls_fetchCallToken as fetchCallToken, calls_getCall as getCall, calls_getCallRecording as getCallRecording, calls_getCallsConfig as getCallsConfig, calls_getOrCreateCallChat as getOrCreateCallChat, calls_getRecordingQuota as getRecordingQuota, calls_getWebinar as getWebinar, calls_isQuotaError as isQuotaError, calls_knockCall as knockCall, calls_listCallInviteLinks as listCallInviteLinks, calls_listCallRecordings as listCallRecordings, calls_listQuestions as listQuestions, calls_muteCallParticipant as muteCallParticipant, calls_pollKnock as pollKnock, calls_postChatTranscriptLine as postChatTranscriptLine, calls_presignRecordingPart as presignRecordingPart, calls_promoteToStage as promoteToStage, calls_quotaNeedsWarning as quotaNeedsWarning, calls_recordingStateFrom as recordingStateFrom, calls_recordingStateOfCall as recordingStateOfCall, calls_removeCallParticipant as removeCallParticipant, calls_revokeCallInviteLink as revokeCallInviteLink, calls_ringCall as ringCall, calls_setCallTranscription as setCallTranscription, calls_setRecordingExpiry as setRecordingExpiry, calls_setWebinarHand as setWebinarHand, calls_startCallRecording as startCallRecording, calls_stopCallRecording as stopCallRecording, calls_transcribeCallSegment as transcribeCallSegment, calls_transcribeRecordingPart as transcribeRecordingPart, calls_transcriptionStateFrom as transcriptionStateFrom, calls_updateCall as updateCall, calls_updateQuestion as updateQuestion, calls_updateWebinar as updateWebinar, calls_voteQuestion as voteQuestion };
9285
+ export { calls_CallApiError as CallApiError, type calls_CallChatCreate as CallChatCreate, type calls_CallChatResponse as CallChatResponse, type calls_CallCreate as CallCreate, type calls_CallDeclinedMessage as CallDeclinedMessage, type calls_CallEndedMessage as CallEndedMessage, type calls_CallInviteLinkCreate as CallInviteLinkCreate, type calls_CallInviteLinkResponse as CallInviteLinkResponse, type calls_CallJoinPolicy as CallJoinPolicy, type calls_CallKnockMessage as CallKnockMessage, type calls_CallKnockResolvedMessage as CallKnockResolvedMessage, type calls_CallKnockResponse as CallKnockResponse, calls_CallPeer as CallPeer, type calls_CallQuestion as CallQuestion, type calls_CallQuestionStatus as CallQuestionStatus, type calls_CallQuestionUpdate as CallQuestionUpdate, type calls_CallRecording as CallRecording, type calls_CallRecordingState as CallRecordingState, type calls_CallResponse as CallResponse, type calls_CallRingingMessage as CallRingingMessage, type calls_CallStartedMessage as CallStartedMessage, type calls_CallTokenResponse as CallTokenResponse, type calls_CallTranscribeResponse as CallTranscribeResponse, type calls_CallTranscriptionMessage as CallTranscriptionMessage, type calls_CallTranscriptionState as CallTranscriptionState, type calls_CallUpdate as CallUpdate, type calls_CallWebinarMessage as CallWebinarMessage, type calls_CallsConfig as CallsConfig, type calls_CreateTrackBody as CreateTrackBody, type calls_InviteeRole as InviteeRole, type calls_PartBody as PartBody, type calls_PartUpload as PartUpload, type calls_RecordingMode as RecordingMode, type calls_RecordingPart as RecordingPart, type calls_RecordingQuota as RecordingQuota, type calls_RecordingTrack as RecordingTrack, type calls_RecordingTrackKind as RecordingTrackKind, type calls_RecordingTranscribeResponse as RecordingTranscribeResponse, type calls_TranscribeRecordingParams as TranscribeRecordingParams, type calls_TranscribeSegmentParams as TranscribeSegmentParams, type calls_TranscriptSegmentRef as TranscriptSegmentRef, calls_WEBINAR_MODERATORS as WEBINAR_MODERATORS, calls_WEBINAR_TEAM as WEBINAR_TEAM, type calls_WebinarChat as WebinarChat, type calls_WebinarRole as WebinarRole, type calls_WebinarState as WebinarState, type calls_WebinarUpdate as WebinarUpdate, calls_askQuestion as askQuestion, calls_callError as callError, calls_cancelCall as cancelCall, calls_commitRecordingPart as commitRecordingPart, calls_createCall as createCall, calls_createCallInviteLink as createCallInviteLink, calls_createRecordingTrack as createRecordingTrack, calls_decideKnock as decideKnock, calls_declineCall as declineCall, calls_deleteQuestion as deleteQuestion, calls_deleteRecording as deleteRecording, calls_deleteRecordingMedia as deleteRecordingMedia, calls_demoteFromStage as demoteFromStage, calls_downloadRecordingPart as downloadRecordingPart, calls_fetchCallToken as fetchCallToken, calls_getCall as getCall, calls_getCallRecording as getCallRecording, calls_getCallsConfig as getCallsConfig, calls_getOrCreateCallChat as getOrCreateCallChat, calls_getRecordingQuota as getRecordingQuota, calls_getWebinar as getWebinar, calls_isQuotaError as isQuotaError, calls_knockCall as knockCall, calls_listCallInviteLinks as listCallInviteLinks, calls_listCallRecordings as listCallRecordings, calls_listCalls as listCalls, calls_listQuestions as listQuestions, calls_muteCallParticipant as muteCallParticipant, calls_pollKnock as pollKnock, calls_postChatTranscriptLine as postChatTranscriptLine, calls_presignRecordingPart as presignRecordingPart, calls_promoteToStage as promoteToStage, calls_quotaNeedsWarning as quotaNeedsWarning, calls_recordingStateFrom as recordingStateFrom, calls_recordingStateOfCall as recordingStateOfCall, calls_removeCallParticipant as removeCallParticipant, calls_revokeCallInviteLink as revokeCallInviteLink, calls_ringCall as ringCall, calls_setCallTranscription as setCallTranscription, calls_setRecordingExpiry as setRecordingExpiry, calls_setWebinarHand as setWebinarHand, calls_startCallRecording as startCallRecording, calls_stopCallRecording as stopCallRecording, calls_transcribeCallSegment as transcribeCallSegment, calls_transcribeRecordingPart as transcribeRecordingPart, calls_transcriptionStateFrom as transcriptionStateFrom, calls_updateCall as updateCall, calls_updateQuestion as updateQuestion, calls_updateWebinar as updateWebinar, calls_voteQuestion as voteQuestion };
9281
9286
  }
9282
9287
 
9283
9288
  type DocUpdateRequest = components['schemas']['DocUpdateRequest'];
@@ -15342,7 +15347,8 @@ declare class Arbi {
15342
15347
  /**
15343
15348
  * Calls (LiveKit): one call system for thread, chat (DM / group), contacts and scheduled calls.
15344
15349
  * Each call has one random key K made in the creator's process; the server and the media server
15345
- * only ever hold it sealed to people (or in a link's fragment). `start`, `open`, `answer` and
15350
+ * hold it sealed to people (or in a link's fragment); personal agents may receive an explicit
15351
+ * sealed management grant. `start`, `open`, `answer` and
15346
15352
  * `resetLink` do the key work and hand back K with the call; everything else moves ciphertext.
15347
15353
  */
15348
15354
  readonly calls: {
@@ -15353,6 +15359,40 @@ declare class Arbi {
15353
15359
  default_join_policy: "invited" | "signed_in" | "open";
15354
15360
  transcription_available: boolean;
15355
15361
  }>;
15362
+ list: (query?: {
15363
+ limit?: number;
15364
+ offset?: number;
15365
+ }) => Promise<{
15366
+ external_id: string;
15367
+ room_name: string;
15368
+ title?: string | null;
15369
+ creator_ext_id: string;
15370
+ creator_name: string;
15371
+ creator_encryption_public_key?: string | null;
15372
+ chat_ext_id?: string | null;
15373
+ meeting_conversation_ext_id?: string | null;
15374
+ log_conversation_ext_id?: string | null;
15375
+ locked_workspace_ext_id?: string | null;
15376
+ workspace_locked: boolean;
15377
+ locked: boolean;
15378
+ join_policy: "invited" | "signed_in" | "open";
15379
+ link_version: number;
15380
+ cancelled: boolean;
15381
+ started_at?: string | null;
15382
+ ended_at?: string | null;
15383
+ last_participants?: string[];
15384
+ created_at: string;
15385
+ my_sealed_key?: string | null;
15386
+ is_creator: boolean;
15387
+ created?: boolean | null;
15388
+ invitees?: components["schemas"]["CallInviteeResponse"][];
15389
+ participants?: components["schemas"]["CallParticipant"][];
15390
+ transcription?: components["schemas"]["CallTranscriptionState"] | null;
15391
+ recording?: components["schemas"]["CallRecordingState"] | null;
15392
+ link_path: string;
15393
+ mode: "call" | "webinar";
15394
+ webinar?: components["schemas"]["CallWebinarSummary"] | null;
15395
+ }[]>;
15356
15396
  get: (callExtId: string) => Promise<{
15357
15397
  external_id: string;
15358
15398
  room_name: string;
@@ -15540,6 +15580,11 @@ declare class Arbi {
15540
15580
  key: Uint8Array<ArrayBufferLike>;
15541
15581
  title: string | null;
15542
15582
  }>;
15583
+ /** Seal a key I already hold to my own personal agents; never a call invitation. */
15584
+ delegateToAgents: (call: {
15585
+ external_id: string;
15586
+ link_version: number;
15587
+ }, key: Uint8Array) => Promise<boolean>;
15543
15588
  /** My copy of a call's K from its row, or null. */
15544
15589
  key: (call: {
15545
15590
  my_sealed_key?: string | null;
package/dist/browser.cjs CHANGED
@@ -5047,7 +5047,8 @@ async function diagnoseSetup(options) {
5047
5047
  const add = (check, status, message, hint) => checks.push({ check, status, message, ...hint ? { hint } : {} });
5048
5048
  let base;
5049
5049
  try {
5050
- base = new URL(options.url);
5050
+ const browser = globalThis;
5051
+ base = new URL(options.url, browser.window?.location.origin);
5051
5052
  if (!["http:", "https:"].includes(base.protocol) || base.username || base.password || base.search || base.hash)
5052
5053
  throw new Error("Invalid API URL");
5053
5054
  } catch {
@@ -8729,6 +8730,24 @@ async function getFileContent(auth, fileId) {
8729
8730
  path: `/v1/files/${fileId}/content`
8730
8731
  });
8731
8732
  }
8733
+ async function delegateCallKey(client$1, call, key) {
8734
+ try {
8735
+ const agents = await listAgents(client$1);
8736
+ const keys = {};
8737
+ for (const agent of agents) {
8738
+ if (agent.external_id?.startsWith("agt-") && agent.encryption_public_key)
8739
+ keys[agent.external_id] = await client.sealCallKey(key, agent.encryption_public_key);
8740
+ }
8741
+ if (!Object.keys(keys).length) return true;
8742
+ const result = await client$1.fetch.POST("/v1/calls/{call_ext_id}/delegate-keys", {
8743
+ params: { path: { call_ext_id: call.external_id } },
8744
+ body: { keys, link_version: call.link_version }
8745
+ });
8746
+ return result.response.ok;
8747
+ } catch {
8748
+ return false;
8749
+ }
8750
+ }
8732
8751
 
8733
8752
  // src/operations/sessions.ts
8734
8753
  var sessions_exports = {};
@@ -11201,6 +11220,7 @@ __export(calls_exports, {
11201
11220
  knockCall: () => knockCall,
11202
11221
  listCallInviteLinks: () => listCallInviteLinks,
11203
11222
  listCallRecordings: () => listCallRecordings,
11223
+ listCalls: () => listCalls,
11204
11224
  listQuestions: () => listQuestions,
11205
11225
  muteCallParticipant: () => muteCallParticipant,
11206
11226
  pollKnock: () => pollKnock,
@@ -11440,6 +11460,9 @@ var trackPath = (callExtId, recordingExtId, trackExtId) => ({
11440
11460
  function getCallsConfig(arbi) {
11441
11461
  return unwrapCall(arbi.fetch.GET("/v1/calls/config"), "Could not read the calls config");
11442
11462
  }
11463
+ function listCalls(arbi, query2 = {}) {
11464
+ return unwrapCall(arbi.fetch.GET("/v1/calls", { params: { query: query2 } }), "Could not list calls");
11465
+ }
11443
11466
  function createCall(arbi, body) {
11444
11467
  return unwrapCall(arbi.fetch.POST("/v1/calls", { body }), "Could not create the call");
11445
11468
  }
@@ -13752,12 +13775,14 @@ var Arbi = class {
13752
13775
  /**
13753
13776
  * Calls (LiveKit): one call system for thread, chat (DM / group), contacts and scheduled calls.
13754
13777
  * Each call has one random key K made in the creator's process; the server and the media server
13755
- * only ever hold it sealed to people (or in a link's fragment). `start`, `open`, `answer` and
13778
+ * hold it sealed to people (or in a link's fragment); personal agents may receive an explicit
13779
+ * sealed management grant. `start`, `open`, `answer` and
13756
13780
  * `resetLink` do the key work and hand back K with the call; everything else moves ciphertext.
13757
13781
  */
13758
13782
  calls = {
13759
13783
  /** The deployment's calls config (`enabled`, `transcription_available`, …). */
13760
13784
  config: () => getCallsConfig(this.requireClient()),
13785
+ list: (query2) => listCalls(this.requireClient(), query2),
13761
13786
  get: (callExtId) => getCall(this.requireClient(), callExtId),
13762
13787
  /** Create a call row as is (a scheduled call's ciphertext made by the caller). */
13763
13788
  create: (body) => createCall(this.requireClient(), body),
@@ -13796,6 +13821,7 @@ var Arbi = class {
13796
13821
  const key = reused ? await this.callKeyOf(call) : fresh;
13797
13822
  if (!key) throw new ArbiError("No key for the running call on this thread");
13798
13823
  const sealedKeys = reused ? await client.sealCallKeyForPeers(key, params.invitees, me2.userExtId) : sealed;
13824
+ await delegateCallKey(client$1, call, key);
13799
13825
  return {
13800
13826
  call,
13801
13827
  key,
@@ -13815,8 +13841,11 @@ var Arbi = class {
13815
13841
  if (!key) {
13816
13842
  throw new ArbiError("Open the full call link (it carries the key) to join this call.");
13817
13843
  }
13844
+ await delegateCallKey(this.requireClient(), call, key);
13818
13845
  return { call, key, title: await this.callTitleOf(call, key) };
13819
13846
  },
13847
+ /** Seal a key I already hold to my own personal agents; never a call invitation. */
13848
+ delegateToAgents: (call, key) => delegateCallKey(this.requireClient(), call, key),
13820
13849
  /** My copy of a call's K from its row, or null. */
13821
13850
  key: (call) => this.callKeyOf(call),
13822
13851
  /** A call's title in plaintext under K; null when it has none or it does not open. */
@@ -13847,6 +13876,7 @@ var Arbi = class {
13847
13876
  sealed_keys: await client.sealCallKeyForPeers(key, invitees, me2.userExtId),
13848
13877
  title: title ? await client.encryptCallTitle(title, key) : null
13849
13878
  });
13879
+ await delegateCallKey(this.requireClient(), updated, key);
13850
13880
  return { call: updated, key };
13851
13881
  },
13852
13882
  /**