@arbidocs/sdk 0.5.6 → 0.5.8

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.
@@ -2378,6 +2378,8 @@ declare function listConversations(arbi: ArbiClient): Promise<{
2378
2378
  last_message_status?: string | null | undefined;
2379
2379
  assistant_mode: components["schemas"]["AssistantMode"];
2380
2380
  meeting_call_ext_id?: string | null | undefined;
2381
+ bound_document_ext_id?: string | null | undefined;
2382
+ bound_document_unavailable: boolean;
2381
2383
  status?: (components["schemas"]["WorkStatus"] | null) | undefined;
2382
2384
  description?: string | null | undefined;
2383
2385
  due_at?: string | null | undefined;
@@ -2708,6 +2710,8 @@ declare function getConversationThreads(arbi: ArbiClient, conversationId: string
2708
2710
  }[];
2709
2711
  }[];
2710
2712
  assistant_mode: components["schemas"]["AssistantMode"];
2713
+ bound_document_ext_id?: string | null | undefined;
2714
+ bound_document_unavailable: boolean;
2711
2715
  }>;
2712
2716
  declare function deleteConversation(arbi: ArbiClient, conversationId: string): Promise<{
2713
2717
  detail: string;
@@ -3185,6 +3189,11 @@ interface TurnRequest {
3185
3189
  * demand and edits it in place.
3186
3190
  */
3187
3191
  activeArtifactExtId?: string | null;
3192
+ /**
3193
+ * Bind the conversation this turn starts to a document ("chat about this document"): every later
3194
+ * turn of it, from any device, drafts in it. Only read when the turn starts a conversation.
3195
+ */
3196
+ bindDocumentId?: string | null;
3188
3197
  /** The message this turn replies to. */
3189
3198
  previousResponseId?: string | null;
3190
3199
  /** An existing conversation with no previous response yet (a task's empty thread). */
@@ -8368,6 +8377,9 @@ declare class Arbi {
8368
8377
  }[]>;
8369
8378
  /** The project's spend by conversation in a billing period (£). */
8370
8379
  usageByConversation: (projectExtId: string, monthsBack?: number) => Promise<{
8380
+ external_usage?: {
8381
+ [key: string]: unknown;
8382
+ } | null;
8371
8383
  project_ext_id: string;
8372
8384
  period_start: string;
8373
8385
  period_end: string;
@@ -8378,9 +8390,6 @@ declare class Arbi {
8378
8390
  [key: string]: components["schemas"]["TagBreakdown"];
8379
8391
  };
8380
8392
  unattributed: components["schemas"]["TagBreakdown"];
8381
- external_usage?: {
8382
- [key: string]: unknown;
8383
- } | null;
8384
8393
  }>;
8385
8394
  refresh: (projectExtId: string) => Promise<{
8386
8395
  external_id: string;
@@ -8502,6 +8511,9 @@ declare class Arbi {
8502
8511
  }>;
8503
8512
  /** AI usage + spend breakdown for a project's billing period. */
8504
8513
  usage: (projectExtId: string, monthsBack?: number) => Promise<{
8514
+ external_usage?: {
8515
+ [key: string]: unknown;
8516
+ } | null;
8505
8517
  project_ext_id: string;
8506
8518
  period_start: string;
8507
8519
  period_end: string;
@@ -8522,9 +8534,6 @@ declare class Arbi {
8522
8534
  [key: string]: components["schemas"]["TagBreakdown"];
8523
8535
  };
8524
8536
  invoice_pdf?: string | null;
8525
- external_usage?: {
8526
- [key: string]: unknown;
8527
- } | null;
8528
8537
  }>;
8529
8538
  /** Stripe invoices for a project's subscription. */
8530
8539
  invoices: (projectExtId: string) => Promise<{
@@ -10475,6 +10484,8 @@ declare class Arbi {
10475
10484
  last_message_status?: string | null | undefined;
10476
10485
  assistant_mode: components["schemas"]["AssistantMode"];
10477
10486
  meeting_call_ext_id?: string | null | undefined;
10487
+ bound_document_ext_id?: string | null | undefined;
10488
+ bound_document_unavailable: boolean;
10478
10489
  status?: (components["schemas"]["WorkStatus"] | null) | undefined;
10479
10490
  description?: string | null | undefined;
10480
10491
  due_at?: string | null | undefined;
@@ -10795,14 +10806,17 @@ declare class Arbi {
10795
10806
  }[];
10796
10807
  }[];
10797
10808
  assistant_mode: components["schemas"]["AssistantMode"];
10809
+ bound_document_ext_id?: string | null | undefined;
10810
+ bound_document_unavailable: boolean;
10798
10811
  }>;
10799
10812
  delete: (conversationId: string) => Promise<{
10800
10813
  detail: string;
10801
10814
  }>;
10802
10815
  /**
10803
- * Patch a conversation: `title`, `shared` (owner only), and the work fields (`description`,
10804
- * `due_at`, `parent_conversation_ext_id`, `status`, `plan`). The one call
10805
- * behind rename, share and unshare.
10816
+ * Patch a conversation: `title`, `shared` (owner only), its bound document
10817
+ * (`bound_document_ext_id`, `null` unbinds), and the work fields (`description`, `due_at`,
10818
+ * `parent_conversation_ext_id`, `status`, `plan`). The one call behind rename, share, unshare
10819
+ * and attaching a thread to a document.
10806
10820
  */
10807
10821
  update: (conversationId: string, body: UpdateConversationRequest) => Promise<{
10808
10822
  label_ext_ids?: string[];
@@ -10821,6 +10835,8 @@ declare class Arbi {
10821
10835
  last_message_status?: string | null;
10822
10836
  assistant_mode: components["schemas"]["AssistantMode"];
10823
10837
  meeting_call_ext_id?: string | null;
10838
+ bound_document_ext_id?: string | null;
10839
+ bound_document_unavailable: boolean;
10824
10840
  status?: components["schemas"]["WorkStatus"] | null;
10825
10841
  description?: string | null;
10826
10842
  due_at?: string | null;
@@ -10865,6 +10881,8 @@ declare class Arbi {
10865
10881
  last_message_status?: string | null;
10866
10882
  assistant_mode: components["schemas"]["AssistantMode"];
10867
10883
  meeting_call_ext_id?: string | null;
10884
+ bound_document_ext_id?: string | null;
10885
+ bound_document_unavailable: boolean;
10868
10886
  status?: components["schemas"]["WorkStatus"] | null;
10869
10887
  description?: string | null;
10870
10888
  due_at?: string | null;
@@ -10909,6 +10927,8 @@ declare class Arbi {
10909
10927
  last_message_status?: string | null;
10910
10928
  assistant_mode: components["schemas"]["AssistantMode"];
10911
10929
  meeting_call_ext_id?: string | null;
10930
+ bound_document_ext_id?: string | null;
10931
+ bound_document_unavailable: boolean;
10912
10932
  status?: components["schemas"]["WorkStatus"] | null;
10913
10933
  description?: string | null;
10914
10934
  due_at?: string | null;
@@ -10970,6 +10990,8 @@ declare class Arbi {
10970
10990
  last_message_status?: string | null;
10971
10991
  assistant_mode: components["schemas"]["AssistantMode"];
10972
10992
  meeting_call_ext_id?: string | null;
10993
+ bound_document_ext_id?: string | null;
10994
+ bound_document_unavailable: boolean;
10973
10995
  status?: components["schemas"]["WorkStatus"] | null;
10974
10996
  description?: string | null;
10975
10997
  due_at?: string | null;
@@ -11014,6 +11036,8 @@ declare class Arbi {
11014
11036
  last_message_status?: string | null;
11015
11037
  assistant_mode: components["schemas"]["AssistantMode"];
11016
11038
  meeting_call_ext_id?: string | null;
11039
+ bound_document_ext_id?: string | null;
11040
+ bound_document_unavailable: boolean;
11017
11041
  status?: components["schemas"]["WorkStatus"] | null;
11018
11042
  description?: string | null;
11019
11043
  due_at?: string | null;
@@ -11058,6 +11082,8 @@ declare class Arbi {
11058
11082
  last_message_status?: string | null;
11059
11083
  assistant_mode: components["schemas"]["AssistantMode"];
11060
11084
  meeting_call_ext_id?: string | null;
11085
+ bound_document_ext_id?: string | null;
11086
+ bound_document_unavailable: boolean;
11061
11087
  status?: components["schemas"]["WorkStatus"] | null;
11062
11088
  description?: string | null;
11063
11089
  due_at?: string | null;
@@ -11105,6 +11131,8 @@ declare class Arbi {
11105
11131
  last_message_status?: string | null;
11106
11132
  assistant_mode: components["schemas"]["AssistantMode"];
11107
11133
  meeting_call_ext_id?: string | null;
11134
+ bound_document_ext_id?: string | null;
11135
+ bound_document_unavailable: boolean;
11108
11136
  status?: components["schemas"]["WorkStatus"] | null;
11109
11137
  description?: string | null;
11110
11138
  due_at?: string | null;
@@ -11135,6 +11163,9 @@ declare class Arbi {
11135
11163
  runProgress: (conversationId: string) => Promise<RunProgress>;
11136
11164
  /** What the conversation's AI work cost: by step, run, model, agent and feature (£). */
11137
11165
  usage: (conversationId: string) => Promise<{
11166
+ external_usage?: {
11167
+ [key: string]: unknown;
11168
+ } | null;
11138
11169
  conversation_ext_id: string;
11139
11170
  project_ext_id: string;
11140
11171
  period_start: string;
@@ -11157,9 +11188,6 @@ declare class Arbi {
11157
11188
  by_feature: {
11158
11189
  [key: string]: components["schemas"]["TagBreakdown"];
11159
11190
  };
11160
- external_usage?: {
11161
- [key: string]: unknown;
11162
- } | null;
11163
11191
  }>;
11164
11192
  /** Notify people about a conversation (each gets a notification); resolves with who was. */
11165
11193
  notify: (conversationId: string, userIds: string[]) => Promise<string[]>;
@@ -11193,6 +11221,8 @@ declare class Arbi {
11193
11221
  last_message_status?: string | null;
11194
11222
  assistant_mode: components["schemas"]["AssistantMode"];
11195
11223
  meeting_call_ext_id?: string | null;
11224
+ bound_document_ext_id?: string | null;
11225
+ bound_document_unavailable: boolean;
11196
11226
  status?: components["schemas"]["WorkStatus"] | null;
11197
11227
  description?: string | null;
11198
11228
  due_at?: string | null;
@@ -14226,6 +14256,9 @@ declare class Arbi {
14226
14256
  getSchema: () => Promise<unknown>;
14227
14257
  getModels: () => Promise<{
14228
14258
  models: {
14259
+ display_name?: string | null | undefined;
14260
+ connection_scope?: string | null | undefined;
14261
+ externally_billed: boolean;
14229
14262
  model_name: string;
14230
14263
  api_type: string;
14231
14264
  tags?: string[] | null | undefined;
@@ -14239,9 +14272,6 @@ declare class Arbi {
14239
14272
  supports_reasoning?: boolean | null | undefined;
14240
14273
  supports_function_calling?: boolean | null | undefined;
14241
14274
  supports_response_schema?: boolean | null | undefined;
14242
- display_name?: string | null | undefined;
14243
- connection_scope?: string | null | undefined;
14244
- externally_billed: boolean;
14245
14275
  }[];
14246
14276
  premium_default?: string | null | undefined;
14247
14277
  }>;
@@ -14271,6 +14301,9 @@ declare class Arbi {
14271
14301
  }>;
14272
14302
  models: () => Promise<{
14273
14303
  models: {
14304
+ display_name?: string | null | undefined;
14305
+ connection_scope?: string | null | undefined;
14306
+ externally_billed: boolean;
14274
14307
  model_name: string;
14275
14308
  api_type: string;
14276
14309
  tags?: string[] | null | undefined;
@@ -14284,9 +14317,6 @@ declare class Arbi {
14284
14317
  supports_reasoning?: boolean | null | undefined;
14285
14318
  supports_function_calling?: boolean | null | undefined;
14286
14319
  supports_response_schema?: boolean | null | undefined;
14287
- display_name?: string | null | undefined;
14288
- connection_scope?: string | null | undefined;
14289
- externally_billed: boolean;
14290
14320
  }[];
14291
14321
  premium_default?: string | null | undefined;
14292
14322
  }>;
@@ -15840,6 +15870,9 @@ declare function deleteConfig(arbi: ArbiClient, configId: string): Promise<{
15840
15870
  declare function getSchema(arbi: ArbiClient): Promise<unknown>;
15841
15871
  declare function getModels(arbi: ArbiClient): Promise<{
15842
15872
  models: {
15873
+ display_name?: string | null | undefined;
15874
+ connection_scope?: string | null | undefined;
15875
+ externally_billed: boolean;
15843
15876
  model_name: string;
15844
15877
  api_type: string;
15845
15878
  tags?: string[] | null | undefined;
@@ -15853,9 +15886,6 @@ declare function getModels(arbi: ArbiClient): Promise<{
15853
15886
  supports_reasoning?: boolean | null | undefined;
15854
15887
  supports_function_calling?: boolean | null | undefined;
15855
15888
  supports_response_schema?: boolean | null | undefined;
15856
- display_name?: string | null | undefined;
15857
- connection_scope?: string | null | undefined;
15858
- externally_billed: boolean;
15859
15889
  }[];
15860
15890
  premium_default?: string | null | undefined;
15861
15891
  }>;
@@ -15898,6 +15928,9 @@ declare function getHealth(arbi: ArbiClient): Promise<{
15898
15928
  }>;
15899
15929
  declare function getHealthModels(arbi: ArbiClient): Promise<{
15900
15930
  models: {
15931
+ display_name?: string | null | undefined;
15932
+ connection_scope?: string | null | undefined;
15933
+ externally_billed: boolean;
15901
15934
  model_name: string;
15902
15935
  api_type: string;
15903
15936
  tags?: string[] | null | undefined;
@@ -15911,9 +15944,6 @@ declare function getHealthModels(arbi: ArbiClient): Promise<{
15911
15944
  supports_reasoning?: boolean | null | undefined;
15912
15945
  supports_function_calling?: boolean | null | undefined;
15913
15946
  supports_response_schema?: boolean | null | undefined;
15914
- display_name?: string | null | undefined;
15915
- connection_scope?: string | null | undefined;
15916
- externally_billed: boolean;
15917
15947
  }[];
15918
15948
  premium_default?: string | null | undefined;
15919
15949
  }>;
@@ -2378,6 +2378,8 @@ declare function listConversations(arbi: ArbiClient): Promise<{
2378
2378
  last_message_status?: string | null | undefined;
2379
2379
  assistant_mode: components["schemas"]["AssistantMode"];
2380
2380
  meeting_call_ext_id?: string | null | undefined;
2381
+ bound_document_ext_id?: string | null | undefined;
2382
+ bound_document_unavailable: boolean;
2381
2383
  status?: (components["schemas"]["WorkStatus"] | null) | undefined;
2382
2384
  description?: string | null | undefined;
2383
2385
  due_at?: string | null | undefined;
@@ -2708,6 +2710,8 @@ declare function getConversationThreads(arbi: ArbiClient, conversationId: string
2708
2710
  }[];
2709
2711
  }[];
2710
2712
  assistant_mode: components["schemas"]["AssistantMode"];
2713
+ bound_document_ext_id?: string | null | undefined;
2714
+ bound_document_unavailable: boolean;
2711
2715
  }>;
2712
2716
  declare function deleteConversation(arbi: ArbiClient, conversationId: string): Promise<{
2713
2717
  detail: string;
@@ -3185,6 +3189,11 @@ interface TurnRequest {
3185
3189
  * demand and edits it in place.
3186
3190
  */
3187
3191
  activeArtifactExtId?: string | null;
3192
+ /**
3193
+ * Bind the conversation this turn starts to a document ("chat about this document"): every later
3194
+ * turn of it, from any device, drafts in it. Only read when the turn starts a conversation.
3195
+ */
3196
+ bindDocumentId?: string | null;
3188
3197
  /** The message this turn replies to. */
3189
3198
  previousResponseId?: string | null;
3190
3199
  /** An existing conversation with no previous response yet (a task's empty thread). */
@@ -8368,6 +8377,9 @@ declare class Arbi {
8368
8377
  }[]>;
8369
8378
  /** The project's spend by conversation in a billing period (£). */
8370
8379
  usageByConversation: (projectExtId: string, monthsBack?: number) => Promise<{
8380
+ external_usage?: {
8381
+ [key: string]: unknown;
8382
+ } | null;
8371
8383
  project_ext_id: string;
8372
8384
  period_start: string;
8373
8385
  period_end: string;
@@ -8378,9 +8390,6 @@ declare class Arbi {
8378
8390
  [key: string]: components["schemas"]["TagBreakdown"];
8379
8391
  };
8380
8392
  unattributed: components["schemas"]["TagBreakdown"];
8381
- external_usage?: {
8382
- [key: string]: unknown;
8383
- } | null;
8384
8393
  }>;
8385
8394
  refresh: (projectExtId: string) => Promise<{
8386
8395
  external_id: string;
@@ -8502,6 +8511,9 @@ declare class Arbi {
8502
8511
  }>;
8503
8512
  /** AI usage + spend breakdown for a project's billing period. */
8504
8513
  usage: (projectExtId: string, monthsBack?: number) => Promise<{
8514
+ external_usage?: {
8515
+ [key: string]: unknown;
8516
+ } | null;
8505
8517
  project_ext_id: string;
8506
8518
  period_start: string;
8507
8519
  period_end: string;
@@ -8522,9 +8534,6 @@ declare class Arbi {
8522
8534
  [key: string]: components["schemas"]["TagBreakdown"];
8523
8535
  };
8524
8536
  invoice_pdf?: string | null;
8525
- external_usage?: {
8526
- [key: string]: unknown;
8527
- } | null;
8528
8537
  }>;
8529
8538
  /** Stripe invoices for a project's subscription. */
8530
8539
  invoices: (projectExtId: string) => Promise<{
@@ -10475,6 +10484,8 @@ declare class Arbi {
10475
10484
  last_message_status?: string | null | undefined;
10476
10485
  assistant_mode: components["schemas"]["AssistantMode"];
10477
10486
  meeting_call_ext_id?: string | null | undefined;
10487
+ bound_document_ext_id?: string | null | undefined;
10488
+ bound_document_unavailable: boolean;
10478
10489
  status?: (components["schemas"]["WorkStatus"] | null) | undefined;
10479
10490
  description?: string | null | undefined;
10480
10491
  due_at?: string | null | undefined;
@@ -10795,14 +10806,17 @@ declare class Arbi {
10795
10806
  }[];
10796
10807
  }[];
10797
10808
  assistant_mode: components["schemas"]["AssistantMode"];
10809
+ bound_document_ext_id?: string | null | undefined;
10810
+ bound_document_unavailable: boolean;
10798
10811
  }>;
10799
10812
  delete: (conversationId: string) => Promise<{
10800
10813
  detail: string;
10801
10814
  }>;
10802
10815
  /**
10803
- * Patch a conversation: `title`, `shared` (owner only), and the work fields (`description`,
10804
- * `due_at`, `parent_conversation_ext_id`, `status`, `plan`). The one call
10805
- * behind rename, share and unshare.
10816
+ * Patch a conversation: `title`, `shared` (owner only), its bound document
10817
+ * (`bound_document_ext_id`, `null` unbinds), and the work fields (`description`, `due_at`,
10818
+ * `parent_conversation_ext_id`, `status`, `plan`). The one call behind rename, share, unshare
10819
+ * and attaching a thread to a document.
10806
10820
  */
10807
10821
  update: (conversationId: string, body: UpdateConversationRequest) => Promise<{
10808
10822
  label_ext_ids?: string[];
@@ -10821,6 +10835,8 @@ declare class Arbi {
10821
10835
  last_message_status?: string | null;
10822
10836
  assistant_mode: components["schemas"]["AssistantMode"];
10823
10837
  meeting_call_ext_id?: string | null;
10838
+ bound_document_ext_id?: string | null;
10839
+ bound_document_unavailable: boolean;
10824
10840
  status?: components["schemas"]["WorkStatus"] | null;
10825
10841
  description?: string | null;
10826
10842
  due_at?: string | null;
@@ -10865,6 +10881,8 @@ declare class Arbi {
10865
10881
  last_message_status?: string | null;
10866
10882
  assistant_mode: components["schemas"]["AssistantMode"];
10867
10883
  meeting_call_ext_id?: string | null;
10884
+ bound_document_ext_id?: string | null;
10885
+ bound_document_unavailable: boolean;
10868
10886
  status?: components["schemas"]["WorkStatus"] | null;
10869
10887
  description?: string | null;
10870
10888
  due_at?: string | null;
@@ -10909,6 +10927,8 @@ declare class Arbi {
10909
10927
  last_message_status?: string | null;
10910
10928
  assistant_mode: components["schemas"]["AssistantMode"];
10911
10929
  meeting_call_ext_id?: string | null;
10930
+ bound_document_ext_id?: string | null;
10931
+ bound_document_unavailable: boolean;
10912
10932
  status?: components["schemas"]["WorkStatus"] | null;
10913
10933
  description?: string | null;
10914
10934
  due_at?: string | null;
@@ -10970,6 +10990,8 @@ declare class Arbi {
10970
10990
  last_message_status?: string | null;
10971
10991
  assistant_mode: components["schemas"]["AssistantMode"];
10972
10992
  meeting_call_ext_id?: string | null;
10993
+ bound_document_ext_id?: string | null;
10994
+ bound_document_unavailable: boolean;
10973
10995
  status?: components["schemas"]["WorkStatus"] | null;
10974
10996
  description?: string | null;
10975
10997
  due_at?: string | null;
@@ -11014,6 +11036,8 @@ declare class Arbi {
11014
11036
  last_message_status?: string | null;
11015
11037
  assistant_mode: components["schemas"]["AssistantMode"];
11016
11038
  meeting_call_ext_id?: string | null;
11039
+ bound_document_ext_id?: string | null;
11040
+ bound_document_unavailable: boolean;
11017
11041
  status?: components["schemas"]["WorkStatus"] | null;
11018
11042
  description?: string | null;
11019
11043
  due_at?: string | null;
@@ -11058,6 +11082,8 @@ declare class Arbi {
11058
11082
  last_message_status?: string | null;
11059
11083
  assistant_mode: components["schemas"]["AssistantMode"];
11060
11084
  meeting_call_ext_id?: string | null;
11085
+ bound_document_ext_id?: string | null;
11086
+ bound_document_unavailable: boolean;
11061
11087
  status?: components["schemas"]["WorkStatus"] | null;
11062
11088
  description?: string | null;
11063
11089
  due_at?: string | null;
@@ -11105,6 +11131,8 @@ declare class Arbi {
11105
11131
  last_message_status?: string | null;
11106
11132
  assistant_mode: components["schemas"]["AssistantMode"];
11107
11133
  meeting_call_ext_id?: string | null;
11134
+ bound_document_ext_id?: string | null;
11135
+ bound_document_unavailable: boolean;
11108
11136
  status?: components["schemas"]["WorkStatus"] | null;
11109
11137
  description?: string | null;
11110
11138
  due_at?: string | null;
@@ -11135,6 +11163,9 @@ declare class Arbi {
11135
11163
  runProgress: (conversationId: string) => Promise<RunProgress>;
11136
11164
  /** What the conversation's AI work cost: by step, run, model, agent and feature (£). */
11137
11165
  usage: (conversationId: string) => Promise<{
11166
+ external_usage?: {
11167
+ [key: string]: unknown;
11168
+ } | null;
11138
11169
  conversation_ext_id: string;
11139
11170
  project_ext_id: string;
11140
11171
  period_start: string;
@@ -11157,9 +11188,6 @@ declare class Arbi {
11157
11188
  by_feature: {
11158
11189
  [key: string]: components["schemas"]["TagBreakdown"];
11159
11190
  };
11160
- external_usage?: {
11161
- [key: string]: unknown;
11162
- } | null;
11163
11191
  }>;
11164
11192
  /** Notify people about a conversation (each gets a notification); resolves with who was. */
11165
11193
  notify: (conversationId: string, userIds: string[]) => Promise<string[]>;
@@ -11193,6 +11221,8 @@ declare class Arbi {
11193
11221
  last_message_status?: string | null;
11194
11222
  assistant_mode: components["schemas"]["AssistantMode"];
11195
11223
  meeting_call_ext_id?: string | null;
11224
+ bound_document_ext_id?: string | null;
11225
+ bound_document_unavailable: boolean;
11196
11226
  status?: components["schemas"]["WorkStatus"] | null;
11197
11227
  description?: string | null;
11198
11228
  due_at?: string | null;
@@ -14226,6 +14256,9 @@ declare class Arbi {
14226
14256
  getSchema: () => Promise<unknown>;
14227
14257
  getModels: () => Promise<{
14228
14258
  models: {
14259
+ display_name?: string | null | undefined;
14260
+ connection_scope?: string | null | undefined;
14261
+ externally_billed: boolean;
14229
14262
  model_name: string;
14230
14263
  api_type: string;
14231
14264
  tags?: string[] | null | undefined;
@@ -14239,9 +14272,6 @@ declare class Arbi {
14239
14272
  supports_reasoning?: boolean | null | undefined;
14240
14273
  supports_function_calling?: boolean | null | undefined;
14241
14274
  supports_response_schema?: boolean | null | undefined;
14242
- display_name?: string | null | undefined;
14243
- connection_scope?: string | null | undefined;
14244
- externally_billed: boolean;
14245
14275
  }[];
14246
14276
  premium_default?: string | null | undefined;
14247
14277
  }>;
@@ -14271,6 +14301,9 @@ declare class Arbi {
14271
14301
  }>;
14272
14302
  models: () => Promise<{
14273
14303
  models: {
14304
+ display_name?: string | null | undefined;
14305
+ connection_scope?: string | null | undefined;
14306
+ externally_billed: boolean;
14274
14307
  model_name: string;
14275
14308
  api_type: string;
14276
14309
  tags?: string[] | null | undefined;
@@ -14284,9 +14317,6 @@ declare class Arbi {
14284
14317
  supports_reasoning?: boolean | null | undefined;
14285
14318
  supports_function_calling?: boolean | null | undefined;
14286
14319
  supports_response_schema?: boolean | null | undefined;
14287
- display_name?: string | null | undefined;
14288
- connection_scope?: string | null | undefined;
14289
- externally_billed: boolean;
14290
14320
  }[];
14291
14321
  premium_default?: string | null | undefined;
14292
14322
  }>;
@@ -15840,6 +15870,9 @@ declare function deleteConfig(arbi: ArbiClient, configId: string): Promise<{
15840
15870
  declare function getSchema(arbi: ArbiClient): Promise<unknown>;
15841
15871
  declare function getModels(arbi: ArbiClient): Promise<{
15842
15872
  models: {
15873
+ display_name?: string | null | undefined;
15874
+ connection_scope?: string | null | undefined;
15875
+ externally_billed: boolean;
15843
15876
  model_name: string;
15844
15877
  api_type: string;
15845
15878
  tags?: string[] | null | undefined;
@@ -15853,9 +15886,6 @@ declare function getModels(arbi: ArbiClient): Promise<{
15853
15886
  supports_reasoning?: boolean | null | undefined;
15854
15887
  supports_function_calling?: boolean | null | undefined;
15855
15888
  supports_response_schema?: boolean | null | undefined;
15856
- display_name?: string | null | undefined;
15857
- connection_scope?: string | null | undefined;
15858
- externally_billed: boolean;
15859
15889
  }[];
15860
15890
  premium_default?: string | null | undefined;
15861
15891
  }>;
@@ -15898,6 +15928,9 @@ declare function getHealth(arbi: ArbiClient): Promise<{
15898
15928
  }>;
15899
15929
  declare function getHealthModels(arbi: ArbiClient): Promise<{
15900
15930
  models: {
15931
+ display_name?: string | null | undefined;
15932
+ connection_scope?: string | null | undefined;
15933
+ externally_billed: boolean;
15901
15934
  model_name: string;
15902
15935
  api_type: string;
15903
15936
  tags?: string[] | null | undefined;
@@ -15911,9 +15944,6 @@ declare function getHealthModels(arbi: ArbiClient): Promise<{
15911
15944
  supports_reasoning?: boolean | null | undefined;
15912
15945
  supports_function_calling?: boolean | null | undefined;
15913
15946
  supports_response_schema?: boolean | null | undefined;
15914
- display_name?: string | null | undefined;
15915
- connection_scope?: string | null | undefined;
15916
- externally_billed: boolean;
15917
15947
  }[];
15918
15948
  premium_default?: string | null | undefined;
15919
15949
  }>;
package/dist/browser.cjs CHANGED
@@ -5461,6 +5461,7 @@ function buildTurnRequest(request) {
5461
5461
  ...request.conversationId ? { conversation_ext_id: request.conversationId } : {},
5462
5462
  ...request.model && !pa2 ? { model: request.model } : {},
5463
5463
  ...activeArtifactExtId ? { active_artifact_ext_id: activeArtifactExtId } : {},
5464
+ ...request.bindDocumentId && !request.previousResponseId && !pa2 ? { bound_document_ext_id: request.bindDocumentId } : {},
5464
5465
  ...request.mentions && request.mentions.length > 0 ? { mentions: request.mentions } : {},
5465
5466
  ...request.assistantMode ? { assistant_mode: request.assistantMode } : {}
5466
5467
  };
@@ -10723,9 +10724,10 @@ var Arbi = class {
10723
10724
  getThreads: (conversationId) => getConversationThreads(this.requireClient(), conversationId),
10724
10725
  delete: (conversationId) => deleteConversation(this.requireClient(), conversationId),
10725
10726
  /**
10726
- * Patch a conversation: `title`, `shared` (owner only), and the work fields (`description`,
10727
- * `due_at`, `parent_conversation_ext_id`, `status`, `plan`). The one call
10728
- * behind rename, share and unshare.
10727
+ * Patch a conversation: `title`, `shared` (owner only), its bound document
10728
+ * (`bound_document_ext_id`, `null` unbinds), and the work fields (`description`, `due_at`,
10729
+ * `parent_conversation_ext_id`, `status`, `plan`). The one call behind rename, share, unshare
10730
+ * and attaching a thread to a document.
10729
10731
  */
10730
10732
  update: (conversationId, body) => updateConversation(this.requireClient(), conversationId, body),
10731
10733
  /** Create a work item: a plain to-do, or (with a prompt / skill) agent work that starts now. */