@arbidocs/sdk 0.5.141 → 0.5.143

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.
@@ -3257,6 +3257,17 @@ declare function listConversations(arbi: ArbiClient, workspaceExtId?: string | n
3257
3257
  input?: string | null | undefined;
3258
3258
  })[];
3259
3259
  overwrite: boolean;
3260
+ } | {
3261
+ type: "approval";
3262
+ database: string;
3263
+ decision: string;
3264
+ values?: {
3265
+ [x: string]: string;
3266
+ } | undefined;
3267
+ approve: string;
3268
+ send_back: string;
3269
+ reject: string;
3270
+ send_back_to?: string | null | undefined;
3260
3271
  } | null | undefined;
3261
3272
  edit_document?: string | {
3262
3273
  step?: string | null | undefined;
@@ -5565,6 +5576,7 @@ declare function getAgentConfig(arbi: ArbiClient, agentExtId: string): Promise<{
5565
5576
  AGENT_MAX_TOKENS: number;
5566
5577
  AGENT_STREAM_OUTPUT_CEILING_TOKENS: number;
5567
5578
  AGENT_STREAM_DEGENERATE_CHARS: number;
5579
+ AGENT_STREAM_REPEAT_CHARS: number;
5568
5580
  ENABLE_THINKING: boolean;
5569
5581
  AGENT_STRICT_TOOL_CALLS: boolean;
5570
5582
  AGENT_MAX_ITERATIONS: number;
@@ -5959,8 +5971,6 @@ declare function listProjects(arbi: ArbiClient, filters?: {
5959
5971
  stage?: string;
5960
5972
  leadUser?: string;
5961
5973
  }): Promise<{
5962
- spend_limits_confirmation_required?: boolean | undefined;
5963
- checkout_pending?: boolean | undefined;
5964
5974
  external_id: string;
5965
5975
  name: string;
5966
5976
  created_by: string;
@@ -5985,6 +5995,8 @@ declare function listProjects(arbi: ArbiClient, filters?: {
5985
5995
  budget_reset_at?: number | null | undefined;
5986
5996
  };
5987
5997
  daily_cap_per_user?: number | null | undefined;
5998
+ spend_limits_confirmation_required: boolean;
5999
+ checkout_pending: boolean;
5988
6000
  budget?: {
5989
6001
  amount: number;
5990
6002
  currency: string;
@@ -6100,8 +6112,6 @@ declare function listProjects(arbi: ArbiClient, filters?: {
6100
6112
  * `details` sets its budget, client, stage, lead and fields from the start.
6101
6113
  */
6102
6114
  declare function createProject(arbi: ArbiClient, name: string, plan?: 'free' | 'pro', details?: ProjectCreateOptions): Promise<{
6103
- spend_limits_confirmation_required?: boolean | undefined;
6104
- checkout_pending?: boolean | undefined;
6105
6115
  external_id: string;
6106
6116
  name: string;
6107
6117
  created_by: string;
@@ -6126,6 +6136,8 @@ declare function createProject(arbi: ArbiClient, name: string, plan?: 'free' | '
6126
6136
  budget_reset_at?: number | null | undefined;
6127
6137
  };
6128
6138
  daily_cap_per_user?: number | null | undefined;
6139
+ spend_limits_confirmation_required: boolean;
6140
+ checkout_pending: boolean;
6129
6141
  budget?: {
6130
6142
  amount: number;
6131
6143
  currency: string;
@@ -6254,8 +6266,6 @@ declare function parseBudget(text: string): ProjectBudget;
6254
6266
  declare function formatBudget(budget: ProjectBudget | null | undefined): string;
6255
6267
  /** Update a project's mutable fields (e.g. `name`, `daily_cap_per_user`). */
6256
6268
  declare function updateProject(arbi: ArbiClient, projectExtId: string, body: ProjectUpdateRequest): Promise<{
6257
- spend_limits_confirmation_required?: boolean | undefined;
6258
- checkout_pending?: boolean | undefined;
6259
6269
  external_id: string;
6260
6270
  name: string;
6261
6271
  created_by: string;
@@ -6280,6 +6290,8 @@ declare function updateProject(arbi: ArbiClient, projectExtId: string, body: Pro
6280
6290
  budget_reset_at?: number | null | undefined;
6281
6291
  };
6282
6292
  daily_cap_per_user?: number | null | undefined;
6293
+ spend_limits_confirmation_required: boolean;
6294
+ checkout_pending: boolean;
6283
6295
  budget?: {
6284
6296
  amount: number;
6285
6297
  currency: string;
@@ -6391,8 +6403,6 @@ declare function updateProject(arbi: ArbiClient, projectExtId: string, body: Pro
6391
6403
  }>;
6392
6404
  /** Rename a project. Convenience wrapper over {@link updateProject}. */
6393
6405
  declare function renameProject(arbi: ArbiClient, projectExtId: string, name: string): Promise<{
6394
- spend_limits_confirmation_required?: boolean | undefined;
6395
- checkout_pending?: boolean | undefined;
6396
6406
  external_id: string;
6397
6407
  name: string;
6398
6408
  created_by: string;
@@ -6417,6 +6427,8 @@ declare function renameProject(arbi: ArbiClient, projectExtId: string, name: str
6417
6427
  budget_reset_at?: number | null | undefined;
6418
6428
  };
6419
6429
  daily_cap_per_user?: number | null | undefined;
6430
+ spend_limits_confirmation_required: boolean;
6431
+ checkout_pending: boolean;
6420
6432
  budget?: {
6421
6433
  amount: number;
6422
6434
  currency: string;
@@ -6528,8 +6540,6 @@ declare function renameProject(arbi: ArbiClient, projectExtId: string, name: str
6528
6540
  }>;
6529
6541
  declare function deleteProject(arbi: ArbiClient, projectExtId: string): Promise<void>;
6530
6542
  declare function refreshProject(arbi: ArbiClient, projectExtId: string): Promise<{
6531
- spend_limits_confirmation_required?: boolean | undefined;
6532
- checkout_pending?: boolean | undefined;
6533
6543
  external_id: string;
6534
6544
  name: string;
6535
6545
  created_by: string;
@@ -6554,6 +6564,8 @@ declare function refreshProject(arbi: ArbiClient, projectExtId: string): Promise
6554
6564
  budget_reset_at?: number | null | undefined;
6555
6565
  };
6556
6566
  daily_cap_per_user?: number | null | undefined;
6567
+ spend_limits_confirmation_required: boolean;
6568
+ checkout_pending: boolean;
6557
6569
  budget?: {
6558
6570
  amount: number;
6559
6571
  currency: string;
@@ -6687,7 +6699,7 @@ type TaxQuoteResponse = ProjectPlanQuoteResponse;
6687
6699
  type ProjectAddonKind = 'ai_usage' | 'storage' | 'collaborators';
6688
6700
  /** The plans and add-ons on sale, with their prices. */
6689
6701
  declare function listProducts(arbi: ArbiClient): Promise<{
6690
- collaborator_daily_limit_step_gbp?: number | undefined;
6702
+ collaborator_daily_limit_step_gbp: number;
6691
6703
  included_ai_gbp: number;
6692
6704
  included_storage_gb: number;
6693
6705
  included_collaborators: number;
@@ -6744,8 +6756,6 @@ declare function createCheckout(arbi: ArbiClient, projectExtId: string, body: Pr
6744
6756
  * interval clears a pending switch, and resumes a project set to cancel). Returns the project.
6745
6757
  */
6746
6758
  declare function changePlan(arbi: ArbiClient, projectExtId: string, body: ProjectPlanChangeRequest): Promise<{
6747
- spend_limits_confirmation_required?: boolean | undefined;
6748
- checkout_pending?: boolean | undefined;
6749
6759
  external_id: string;
6750
6760
  name: string;
6751
6761
  created_by: string;
@@ -6770,6 +6780,8 @@ declare function changePlan(arbi: ArbiClient, projectExtId: string, body: Projec
6770
6780
  budget_reset_at?: number | null | undefined;
6771
6781
  };
6772
6782
  daily_cap_per_user?: number | null | undefined;
6783
+ spend_limits_confirmation_required: boolean;
6784
+ checkout_pending: boolean;
6773
6785
  budget?: {
6774
6786
  amount: number;
6775
6787
  currency: string;
@@ -6912,6 +6924,12 @@ declare function quoteAddon(arbi: ArbiClient, projectExtId: string, kind: Projec
6912
6924
  subtotal_pence: number;
6913
6925
  tax_pence: number;
6914
6926
  }[];
6927
+ promo_code?: string | null | undefined;
6928
+ discount_pence: number;
6929
+ discount_label?: string | null | undefined;
6930
+ renewal_total_pence?: number | null | undefined;
6931
+ renewal_note?: string | null | undefined;
6932
+ tax_calculated: boolean;
6915
6933
  };
6916
6934
  renewal: {
6917
6935
  subtotal_pence: number;
@@ -6926,6 +6944,12 @@ declare function quoteAddon(arbi: ArbiClient, projectExtId: string, kind: Projec
6926
6944
  subtotal_pence: number;
6927
6945
  tax_pence: number;
6928
6946
  }[];
6947
+ promo_code?: string | null | undefined;
6948
+ discount_pence: number;
6949
+ discount_label?: string | null | undefined;
6950
+ renewal_total_pence?: number | null | undefined;
6951
+ renewal_note?: string | null | undefined;
6952
+ tax_calculated: boolean;
6929
6953
  };
6930
6954
  }>;
6931
6955
  /** A fresh, short-lived Stripe customer-portal link (card, address, receipts). */
@@ -6940,8 +6964,6 @@ declare function addAddonBlock(arbi: ArbiClient, projectExtId: string, kind: Pro
6940
6964
  status: "paid" | "requires_action";
6941
6965
  confirm_url?: string | null | undefined;
6942
6966
  project: {
6943
- spend_limits_confirmation_required?: boolean | undefined;
6944
- checkout_pending?: boolean | undefined;
6945
6967
  external_id: string;
6946
6968
  name: string;
6947
6969
  created_by: string;
@@ -6966,6 +6988,8 @@ declare function addAddonBlock(arbi: ArbiClient, projectExtId: string, kind: Pro
6966
6988
  budget_reset_at?: number | null | undefined;
6967
6989
  };
6968
6990
  daily_cap_per_user?: number | null | undefined;
6991
+ spend_limits_confirmation_required: boolean;
6992
+ checkout_pending: boolean;
6969
6993
  budget?: {
6970
6994
  amount: number;
6971
6995
  currency: string;
@@ -7078,8 +7102,6 @@ declare function addAddonBlock(arbi: ArbiClient, projectExtId: string, kind: Pro
7078
7102
  }>;
7079
7103
  /** How many add-on blocks to keep from the next period (reductions only; no refunds). */
7080
7104
  declare function setNextPeriodAddons(arbi: ArbiClient, projectExtId: string, body: ProjectNextPeriodAddonsRequest): Promise<{
7081
- spend_limits_confirmation_required?: boolean | undefined;
7082
- checkout_pending?: boolean | undefined;
7083
7105
  external_id: string;
7084
7106
  name: string;
7085
7107
  created_by: string;
@@ -7104,6 +7126,8 @@ declare function setNextPeriodAddons(arbi: ArbiClient, projectExtId: string, bod
7104
7126
  budget_reset_at?: number | null | undefined;
7105
7127
  };
7106
7128
  daily_cap_per_user?: number | null | undefined;
7129
+ spend_limits_confirmation_required: boolean;
7130
+ checkout_pending: boolean;
7107
7131
  budget?: {
7108
7132
  amount: number;
7109
7133
  currency: string;
@@ -7215,8 +7239,6 @@ declare function setNextPeriodAddons(arbi: ArbiClient, projectExtId: string, bod
7215
7239
  }>;
7216
7240
  /** A Pro project's add-on settings: the auto top-up threshold and the monthly usage cap. */
7217
7241
  declare function updateAddonSettings(arbi: ArbiClient, projectExtId: string, body: ProjectAddonSettingsRequest): Promise<{
7218
- spend_limits_confirmation_required?: boolean | undefined;
7219
- checkout_pending?: boolean | undefined;
7220
7242
  external_id: string;
7221
7243
  name: string;
7222
7244
  created_by: string;
@@ -7241,6 +7263,8 @@ declare function updateAddonSettings(arbi: ArbiClient, projectExtId: string, bod
7241
7263
  budget_reset_at?: number | null | undefined;
7242
7264
  };
7243
7265
  daily_cap_per_user?: number | null | undefined;
7266
+ spend_limits_confirmation_required: boolean;
7267
+ checkout_pending: boolean;
7244
7268
  budget?: {
7245
7269
  amount: number;
7246
7270
  currency: string;
@@ -7352,8 +7376,6 @@ declare function updateAddonSettings(arbi: ArbiClient, projectExtId: string, bod
7352
7376
  }>;
7353
7377
  /** Move a Pro project to Free at the end of the period (no refunds). */
7354
7378
  declare function cancelSubscription(arbi: ArbiClient, projectExtId: string): Promise<{
7355
- spend_limits_confirmation_required?: boolean | undefined;
7356
- checkout_pending?: boolean | undefined;
7357
7379
  external_id: string;
7358
7380
  name: string;
7359
7381
  created_by: string;
@@ -7378,6 +7400,8 @@ declare function cancelSubscription(arbi: ArbiClient, projectExtId: string): Pro
7378
7400
  budget_reset_at?: number | null | undefined;
7379
7401
  };
7380
7402
  daily_cap_per_user?: number | null | undefined;
7403
+ spend_limits_confirmation_required: boolean;
7404
+ checkout_pending: boolean;
7381
7405
  budget?: {
7382
7406
  amount: number;
7383
7407
  currency: string;
@@ -7490,8 +7514,6 @@ declare function cancelSubscription(arbi: ArbiClient, projectExtId: string): Pro
7490
7514
  type ProjectSpendLimitsRequest = components['schemas']['ProjectSpendLimitsRequest'];
7491
7515
  /** Approve the project and collaborator limits together; does not buy an add-on or start a payment. */
7492
7516
  declare function confirmSpendLimits(arbi: ArbiClient, projectExtId: string, body: ProjectSpendLimitsRequest): Promise<{
7493
- spend_limits_confirmation_required?: boolean | undefined;
7494
- checkout_pending?: boolean | undefined;
7495
7517
  external_id: string;
7496
7518
  name: string;
7497
7519
  created_by: string;
@@ -7516,6 +7538,8 @@ declare function confirmSpendLimits(arbi: ArbiClient, projectExtId: string, body
7516
7538
  budget_reset_at?: number | null | undefined;
7517
7539
  };
7518
7540
  daily_cap_per_user?: number | null | undefined;
7541
+ spend_limits_confirmation_required: boolean;
7542
+ checkout_pending: boolean;
7519
7543
  budget?: {
7520
7544
  amount: number;
7521
7545
  currency: string;
@@ -7756,7 +7780,7 @@ interface StepActivityEvent {
7756
7780
  }
7757
7781
  declare const STEP_KINDS: readonly StepKind[];
7758
7782
  /** What an `action` step does with a platform feature (`src/core/workflow_actions.py`). */
7759
- declare const STEP_ACTION_TYPES: readonly ["sign", "email_draft", "tabular_review"];
7783
+ declare const STEP_ACTION_TYPES: readonly ["sign", "email_draft", "tabular_review", "approval"];
7760
7784
  declare const PERSON_STEP_KINDS: readonly StepKind[];
7761
7785
  /** The server's step id rule. */
7762
7786
  declare const STEP_ID_PATTERN: RegExp;
@@ -8030,6 +8054,13 @@ declare function getConversationUsage(arbi: ArbiClient, conversationId: string):
8030
8054
  * the ids that were notified.
8031
8055
  */
8032
8056
  declare function notifyConversation(arbi: ArbiClient, conversationId: string, userIds: string[]): Promise<string[]>;
8057
+ /**
8058
+ * The people a conversation is shared with by name (cc'd or @mentioned), as user ids. A thread not
8059
+ * shared with its workspace is visible to its creator and these people only.
8060
+ */
8061
+ declare function listConversationPeople(arbi: ArbiClient, conversationId: string): Promise<string[]>;
8062
+ /** Take a named person off a conversation (a workspace owner only). */
8063
+ declare function removeConversationPerson(arbi: ArbiClient, conversationId: string, userId: string): Promise<void>;
8033
8064
  /** The task's history, oldest first: created, run started, handed off, sent back, done and so on. */
8034
8065
  declare function getActivity(arbi: ArbiClient, conversationId: string): Promise<ActivityResponse[]>;
8035
8066
  /**
@@ -8086,14 +8117,16 @@ declare const work_getConversationUsage: typeof getConversationUsage;
8086
8117
  declare const work_getPendingAuth: typeof getPendingAuth;
8087
8118
  declare const work_getRunProgress: typeof getRunProgress;
8088
8119
  declare const work_getStepAnswers: typeof getStepAnswers;
8120
+ declare const work_listConversationPeople: typeof listConversationPeople;
8089
8121
  declare const work_notifyConversation: typeof notifyConversation;
8090
8122
  declare const work_planWork: typeof planWork;
8123
+ declare const work_removeConversationPerson: typeof removeConversationPerson;
8091
8124
  declare const work_runConversation: typeof runConversation;
8092
8125
  declare const work_sendBackStep: typeof sendBackStep;
8093
8126
  declare const work_skipStep: typeof skipStep;
8094
8127
  declare const work_updateConversation: typeof updateConversation;
8095
8128
  declare namespace work {
8096
- export { type work_ActivityKind as ActivityKind, type work_ActivityResponse as ActivityResponse, type work_AuthMode as AuthMode, type work_ConversationResponse as ConversationResponse, type work_ConversationUsageResponse as ConversationUsageResponse, type work_CreateWorkRequest as CreateWorkRequest, type work_PendingAuthResponse as PendingAuthResponse, type work_PlanWorkRequest as PlanWorkRequest, type work_RunProgress as RunProgress, type work_StepActionRequest as StepActionRequest, type work_TaskPlan as TaskPlan, type work_UpdateConversationRequest as UpdateConversationRequest, type work_UsageBreakdown as UsageBreakdown, type work_WorkStatus as WorkStatus, work_actOnStep as actOnStep, work_completeStep as completeStep, work_createWork as createWork, work_getActivity as getActivity, work_getConversation as getConversation, work_getConversationUsage as getConversationUsage, work_getPendingAuth as getPendingAuth, work_getRunProgress as getRunProgress, work_getStepAnswers as getStepAnswers, work_notifyConversation as notifyConversation, work_planWork as planWork, work_runConversation as runConversation, work_sendBackStep as sendBackStep, work_skipStep as skipStep, work_updateConversation as updateConversation };
8129
+ export { type work_ActivityKind as ActivityKind, type work_ActivityResponse as ActivityResponse, type work_AuthMode as AuthMode, type work_ConversationResponse as ConversationResponse, type work_ConversationUsageResponse as ConversationUsageResponse, type work_CreateWorkRequest as CreateWorkRequest, type work_PendingAuthResponse as PendingAuthResponse, type work_PlanWorkRequest as PlanWorkRequest, type work_RunProgress as RunProgress, type work_StepActionRequest as StepActionRequest, type work_TaskPlan as TaskPlan, type work_UpdateConversationRequest as UpdateConversationRequest, type work_UsageBreakdown as UsageBreakdown, type work_WorkStatus as WorkStatus, work_actOnStep as actOnStep, work_completeStep as completeStep, work_createWork as createWork, work_getActivity as getActivity, work_getConversation as getConversation, work_getConversationUsage as getConversationUsage, work_getPendingAuth as getPendingAuth, work_getRunProgress as getRunProgress, work_getStepAnswers as getStepAnswers, work_listConversationPeople as listConversationPeople, work_notifyConversation as notifyConversation, work_planWork as planWork, work_removeConversationPerson as removeConversationPerson, work_runConversation as runConversation, work_sendBackStep as sendBackStep, work_skipStep as skipStep, work_updateConversation as updateConversation };
8097
8130
  }
8098
8131
 
8099
8132
  /**
@@ -8283,7 +8316,18 @@ declare function createDatabase(arbi: ArbiClient, body: DatabaseCreate): Promise
8283
8316
  /** Rename, describe, or change the columns (`columns` is the full new list). */
8284
8317
  declare function updateDatabase(arbi: ArbiClient, databaseId: string, body: DatabaseUpdate): Promise<Database>;
8285
8318
  declare function deleteDatabase(arbi: ArbiClient, databaseId: string): Promise<void>;
8286
- declare function addDatabaseRows(arbi: ArbiClient, databaseId: string, rows: DatabaseRowWrite[]): Promise<DatabaseRow[]>;
8319
+ /**
8320
+ * Add rows. `shared: false` makes them the caller's private drafts until shared
8321
+ * (`shareDatabaseRow`); a column with an edit rule is written only by the people it allows (403).
8322
+ */
8323
+ declare function addDatabaseRows(arbi: ArbiClient, databaseId: string, rows: DatabaseRowWrite[], options?: {
8324
+ shared?: boolean;
8325
+ }): Promise<DatabaseRow[]>;
8326
+ /**
8327
+ * Submit a draft row: share it with the workspace (its approvers are told when a column decides
8328
+ * it). `shared: false` takes a shared row back to private: a workspace owner only.
8329
+ */
8330
+ declare function shareDatabaseRow(arbi: ArbiClient, databaseId: string, rowId: string, shared?: boolean): Promise<DatabaseRow>;
8287
8331
  /** Change cells of one row (`null` empties a cell); resolves with the server's row. */
8288
8332
  declare function updateDatabaseRow(arbi: ArbiClient, databaseId: string, rowId: string, values: DatabaseRowWrite['values']): Promise<DatabaseRow>;
8289
8333
  declare function deleteDatabaseRows(arbi: ArbiClient, databaseId: string, ids: string[]): Promise<void>;
@@ -8317,10 +8361,11 @@ declare const databases_importDatabase: typeof importDatabase;
8317
8361
  declare const databases_importDatabaseRows: typeof importDatabaseRows;
8318
8362
  declare const databases_listDatabaseRows: typeof listDatabaseRows;
8319
8363
  declare const databases_listDatabases: typeof listDatabases;
8364
+ declare const databases_shareDatabaseRow: typeof shareDatabaseRow;
8320
8365
  declare const databases_updateDatabase: typeof updateDatabase;
8321
8366
  declare const databases_updateDatabaseRow: typeof updateDatabaseRow;
8322
8367
  declare namespace databases {
8323
- export { type databases_Database as Database, type databases_DatabaseAggregateRequest as DatabaseAggregateRequest, type databases_DatabaseAggregateResult as DatabaseAggregateResult, type databases_DatabaseColumn as DatabaseColumn, type databases_DatabaseColumnWrite as DatabaseColumnWrite, type databases_DatabaseCreate as DatabaseCreate, type databases_DatabaseImportResult as DatabaseImportResult, type databases_DatabaseRow as DatabaseRow, type databases_DatabaseRowPage as DatabaseRowPage, type databases_DatabaseRowWrite as DatabaseRowWrite, type databases_DatabaseRowsQuery as DatabaseRowsQuery, type databases_DatabaseUpdate as DatabaseUpdate, databases_addDatabaseRows as addDatabaseRows, databases_aggregateDatabase as aggregateDatabase, databases_createDatabase as createDatabase, databases_deleteDatabase as deleteDatabase, databases_deleteDatabaseRows as deleteDatabaseRows, databases_exportDatabase as exportDatabase, databases_getDatabase as getDatabase, databases_importDatabase as importDatabase, databases_importDatabaseRows as importDatabaseRows, databases_listDatabaseRows as listDatabaseRows, databases_listDatabases as listDatabases, databases_updateDatabase as updateDatabase, databases_updateDatabaseRow as updateDatabaseRow };
8368
+ export { type databases_Database as Database, type databases_DatabaseAggregateRequest as DatabaseAggregateRequest, type databases_DatabaseAggregateResult as DatabaseAggregateResult, type databases_DatabaseColumn as DatabaseColumn, type databases_DatabaseColumnWrite as DatabaseColumnWrite, type databases_DatabaseCreate as DatabaseCreate, type databases_DatabaseImportResult as DatabaseImportResult, type databases_DatabaseRow as DatabaseRow, type databases_DatabaseRowPage as DatabaseRowPage, type databases_DatabaseRowWrite as DatabaseRowWrite, type databases_DatabaseRowsQuery as DatabaseRowsQuery, type databases_DatabaseUpdate as DatabaseUpdate, databases_addDatabaseRows as addDatabaseRows, databases_aggregateDatabase as aggregateDatabase, databases_createDatabase as createDatabase, databases_deleteDatabase as deleteDatabase, databases_deleteDatabaseRows as deleteDatabaseRows, databases_exportDatabase as exportDatabase, databases_getDatabase as getDatabase, databases_importDatabase as importDatabase, databases_importDatabaseRows as importDatabaseRows, databases_listDatabaseRows as listDatabaseRows, databases_listDatabases as listDatabases, databases_shareDatabaseRow as shareDatabaseRow, databases_updateDatabase as updateDatabase, databases_updateDatabaseRow as updateDatabaseRow };
8324
8369
  }
8325
8370
 
8326
8371
  /**
@@ -9326,8 +9371,6 @@ declare class Arbi {
9326
9371
  stage?: string;
9327
9372
  leadUser?: string;
9328
9373
  }) => Promise<{
9329
- spend_limits_confirmation_required?: boolean | undefined;
9330
- checkout_pending?: boolean | undefined;
9331
9374
  external_id: string;
9332
9375
  name: string;
9333
9376
  created_by: string;
@@ -9352,6 +9395,8 @@ declare class Arbi {
9352
9395
  budget_reset_at?: number | null | undefined;
9353
9396
  };
9354
9397
  daily_cap_per_user?: number | null | undefined;
9398
+ spend_limits_confirmation_required: boolean;
9399
+ checkout_pending: boolean;
9355
9400
  budget?: {
9356
9401
  amount: number;
9357
9402
  currency: string;
@@ -9462,8 +9507,6 @@ declare class Arbi {
9462
9507
  portal_url?: string | null | undefined;
9463
9508
  }[]>;
9464
9509
  create: (name: string, plan?: "free" | "pro", details?: ProjectCreateOptions) => Promise<{
9465
- spend_limits_confirmation_required?: boolean | undefined;
9466
- checkout_pending?: boolean | undefined;
9467
9510
  external_id: string;
9468
9511
  name: string;
9469
9512
  created_by: string;
@@ -9488,6 +9531,8 @@ declare class Arbi {
9488
9531
  budget_reset_at?: number | null | undefined;
9489
9532
  };
9490
9533
  daily_cap_per_user?: number | null | undefined;
9534
+ spend_limits_confirmation_required: boolean;
9535
+ checkout_pending: boolean;
9491
9536
  budget?: {
9492
9537
  amount: number;
9493
9538
  currency: string;
@@ -9599,8 +9644,6 @@ declare class Arbi {
9599
9644
  }>;
9600
9645
  /** Patch a project: name, daily cap, budget, client, stage, lead, fields (merged key by key). */
9601
9646
  update: (projectExtId: string, body: ProjectUpdateRequest) => Promise<{
9602
- spend_limits_confirmation_required?: boolean | undefined;
9603
- checkout_pending?: boolean | undefined;
9604
9647
  external_id: string;
9605
9648
  name: string;
9606
9649
  created_by: string;
@@ -9625,6 +9668,8 @@ declare class Arbi {
9625
9668
  budget_reset_at?: number | null | undefined;
9626
9669
  };
9627
9670
  daily_cap_per_user?: number | null | undefined;
9671
+ spend_limits_confirmation_required: boolean;
9672
+ checkout_pending: boolean;
9628
9673
  budget?: {
9629
9674
  amount: number;
9630
9675
  currency: string;
@@ -9764,8 +9809,6 @@ declare class Arbi {
9764
9809
  unattributed: components["schemas"]["TagBreakdown"];
9765
9810
  }>;
9766
9811
  confirmSpendLimits: (projectExtId: string, body: ProjectSpendLimitsRequest) => Promise<{
9767
- spend_limits_confirmation_required?: boolean | undefined;
9768
- checkout_pending?: boolean | undefined;
9769
9812
  external_id: string;
9770
9813
  name: string;
9771
9814
  created_by: string;
@@ -9790,6 +9833,8 @@ declare class Arbi {
9790
9833
  budget_reset_at?: number | null | undefined;
9791
9834
  };
9792
9835
  daily_cap_per_user?: number | null | undefined;
9836
+ spend_limits_confirmation_required: boolean;
9837
+ checkout_pending: boolean;
9793
9838
  budget?: {
9794
9839
  amount: number;
9795
9840
  currency: string;
@@ -9900,8 +9945,6 @@ declare class Arbi {
9900
9945
  portal_url?: string | null | undefined;
9901
9946
  }>;
9902
9947
  refresh: (projectExtId: string) => Promise<{
9903
- spend_limits_confirmation_required?: boolean | undefined;
9904
- checkout_pending?: boolean | undefined;
9905
9948
  external_id: string;
9906
9949
  name: string;
9907
9950
  created_by: string;
@@ -9926,6 +9969,8 @@ declare class Arbi {
9926
9969
  budget_reset_at?: number | null | undefined;
9927
9970
  };
9928
9971
  daily_cap_per_user?: number | null | undefined;
9972
+ spend_limits_confirmation_required: boolean;
9973
+ checkout_pending: boolean;
9929
9974
  budget?: {
9930
9975
  amount: number;
9931
9976
  currency: string;
@@ -10070,7 +10115,7 @@ declare class Arbi {
10070
10115
  delete: (projectExtId: string) => Promise<void>;
10071
10116
  /** The plans and add-ons on sale. */
10072
10117
  products: () => Promise<{
10073
- collaborator_daily_limit_step_gbp?: number | undefined;
10118
+ collaborator_daily_limit_step_gbp: number;
10074
10119
  included_ai_gbp: number;
10075
10120
  included_storage_gb: number;
10076
10121
  included_collaborators: number;
@@ -10119,8 +10164,6 @@ declare class Arbi {
10119
10164
  client_secret: string;
10120
10165
  }>;
10121
10166
  changePlan: (projectExtId: string, body: ProjectPlanChangeRequest) => Promise<{
10122
- spend_limits_confirmation_required?: boolean | undefined;
10123
- checkout_pending?: boolean | undefined;
10124
10167
  external_id: string;
10125
10168
  name: string;
10126
10169
  created_by: string;
@@ -10145,6 +10188,8 @@ declare class Arbi {
10145
10188
  budget_reset_at?: number | null | undefined;
10146
10189
  };
10147
10190
  daily_cap_per_user?: number | null | undefined;
10191
+ spend_limits_confirmation_required: boolean;
10192
+ checkout_pending: boolean;
10148
10193
  budget?: {
10149
10194
  amount: number;
10150
10195
  currency: string;
@@ -10285,6 +10330,12 @@ declare class Arbi {
10285
10330
  subtotal_pence: number;
10286
10331
  tax_pence: number;
10287
10332
  }[];
10333
+ promo_code?: string | null | undefined;
10334
+ discount_pence: number;
10335
+ discount_label?: string | null | undefined;
10336
+ renewal_total_pence?: number | null | undefined;
10337
+ renewal_note?: string | null | undefined;
10338
+ tax_calculated: boolean;
10288
10339
  };
10289
10340
  renewal: {
10290
10341
  subtotal_pence: number;
@@ -10299,6 +10350,12 @@ declare class Arbi {
10299
10350
  subtotal_pence: number;
10300
10351
  tax_pence: number;
10301
10352
  }[];
10353
+ promo_code?: string | null | undefined;
10354
+ discount_pence: number;
10355
+ discount_label?: string | null | undefined;
10356
+ renewal_total_pence?: number | null | undefined;
10357
+ renewal_note?: string | null | undefined;
10358
+ tax_calculated: boolean;
10302
10359
  };
10303
10360
  }>;
10304
10361
  billingPortal: (projectExtId: string) => Promise<{
@@ -10308,8 +10365,6 @@ declare class Arbi {
10308
10365
  status: "paid" | "requires_action";
10309
10366
  confirm_url?: string | null | undefined;
10310
10367
  project: {
10311
- spend_limits_confirmation_required?: boolean | undefined;
10312
- checkout_pending?: boolean | undefined;
10313
10368
  external_id: string;
10314
10369
  name: string;
10315
10370
  created_by: string;
@@ -10334,6 +10389,8 @@ declare class Arbi {
10334
10389
  budget_reset_at?: number | null | undefined;
10335
10390
  };
10336
10391
  daily_cap_per_user?: number | null | undefined;
10392
+ spend_limits_confirmation_required: boolean;
10393
+ checkout_pending: boolean;
10337
10394
  budget?: {
10338
10395
  amount: number;
10339
10396
  currency: string;
@@ -10445,8 +10502,6 @@ declare class Arbi {
10445
10502
  };
10446
10503
  }>;
10447
10504
  setNextPeriodAddons: (projectExtId: string, body: ProjectNextPeriodAddonsRequest) => Promise<{
10448
- spend_limits_confirmation_required?: boolean | undefined;
10449
- checkout_pending?: boolean | undefined;
10450
10505
  external_id: string;
10451
10506
  name: string;
10452
10507
  created_by: string;
@@ -10471,6 +10526,8 @@ declare class Arbi {
10471
10526
  budget_reset_at?: number | null | undefined;
10472
10527
  };
10473
10528
  daily_cap_per_user?: number | null | undefined;
10529
+ spend_limits_confirmation_required: boolean;
10530
+ checkout_pending: boolean;
10474
10531
  budget?: {
10475
10532
  amount: number;
10476
10533
  currency: string;
@@ -10581,8 +10638,6 @@ declare class Arbi {
10581
10638
  portal_url?: string | null | undefined;
10582
10639
  }>;
10583
10640
  updateAddonSettings: (projectExtId: string, body: ProjectAddonSettingsRequest) => Promise<{
10584
- spend_limits_confirmation_required?: boolean | undefined;
10585
- checkout_pending?: boolean | undefined;
10586
10641
  external_id: string;
10587
10642
  name: string;
10588
10643
  created_by: string;
@@ -10607,6 +10662,8 @@ declare class Arbi {
10607
10662
  budget_reset_at?: number | null | undefined;
10608
10663
  };
10609
10664
  daily_cap_per_user?: number | null | undefined;
10665
+ spend_limits_confirmation_required: boolean;
10666
+ checkout_pending: boolean;
10610
10667
  budget?: {
10611
10668
  amount: number;
10612
10669
  currency: string;
@@ -10717,8 +10774,6 @@ declare class Arbi {
10717
10774
  portal_url?: string | null | undefined;
10718
10775
  }>;
10719
10776
  cancelSubscription: (projectExtId: string) => Promise<{
10720
- spend_limits_confirmation_required?: boolean | undefined;
10721
- checkout_pending?: boolean | undefined;
10722
10777
  external_id: string;
10723
10778
  name: string;
10724
10779
  created_by: string;
@@ -10743,6 +10798,8 @@ declare class Arbi {
10743
10798
  budget_reset_at?: number | null | undefined;
10744
10799
  };
10745
10800
  daily_cap_per_user?: number | null | undefined;
10801
+ spend_limits_confirmation_required: boolean;
10802
+ checkout_pending: boolean;
10746
10803
  budget?: {
10747
10804
  amount: number;
10748
10805
  currency: string;
@@ -12306,6 +12363,17 @@ declare class Arbi {
12306
12363
  input?: string | null | undefined;
12307
12364
  })[];
12308
12365
  overwrite: boolean;
12366
+ } | {
12367
+ type: "approval";
12368
+ database: string;
12369
+ decision: string;
12370
+ values?: {
12371
+ [x: string]: string;
12372
+ } | undefined;
12373
+ approve: string;
12374
+ send_back: string;
12375
+ reject: string;
12376
+ send_back_to?: string | null | undefined;
12309
12377
  } | null | undefined;
12310
12378
  edit_document?: string | {
12311
12379
  step?: string | null | undefined;
@@ -12932,6 +13000,10 @@ declare class Arbi {
12932
13000
  }>;
12933
13001
  /** Notify people about a conversation (each gets a notification); resolves with who was. */
12934
13002
  notify: (conversationId: string, userIds: string[]) => Promise<string[]>;
13003
+ /** The people a conversation is shared with by name (cc'd or @mentioned). */
13004
+ people: (conversationId: string) => Promise<string[]>;
13005
+ /** Take a named person off a conversation (a workspace owner only). */
13006
+ removePerson: (conversationId: string, userId: string) => Promise<void>;
12935
13007
  /** Draft an editable plan from an objective, in the current workspace or `options.workspaceId`. */
12936
13008
  plan: (body: PlanWorkRequest, options?: {
12937
13009
  workspaceId?: string;
@@ -15879,6 +15951,7 @@ declare class Arbi {
15879
15951
  AGENT_MAX_TOKENS: number;
15880
15952
  AGENT_STREAM_OUTPUT_CEILING_TOKENS: number;
15881
15953
  AGENT_STREAM_DEGENERATE_CHARS: number;
15954
+ AGENT_STREAM_REPEAT_CHARS: number;
15882
15955
  ENABLE_THINKING: boolean;
15883
15956
  AGENT_STRICT_TOOL_CALLS: boolean;
15884
15957
  AGENT_MAX_ITERATIONS: number;
@@ -16416,6 +16489,7 @@ declare class Arbi {
16416
16489
  AGENT_MAX_TOKENS: number;
16417
16490
  AGENT_STREAM_OUTPUT_CEILING_TOKENS: number;
16418
16491
  AGENT_STREAM_DEGENERATE_CHARS: number;
16492
+ AGENT_STREAM_REPEAT_CHARS: number;
16419
16493
  ENABLE_THINKING: boolean;
16420
16494
  AGENT_STRICT_TOOL_CALLS: boolean;
16421
16495
  AGENT_MAX_ITERATIONS: number;
@@ -17267,6 +17341,7 @@ declare class Arbi {
17267
17341
  row_count: number;
17268
17342
  workspace_id: string;
17269
17343
  editable: boolean;
17344
+ locked_columns?: string[];
17270
17345
  created_by?: string | null;
17271
17346
  created_at: string;
17272
17347
  updated_at: string;
@@ -17279,6 +17354,7 @@ declare class Arbi {
17279
17354
  row_count: number;
17280
17355
  workspace_id: string;
17281
17356
  editable: boolean;
17357
+ locked_columns?: string[];
17282
17358
  created_by?: string | null;
17283
17359
  created_at: string;
17284
17360
  updated_at: string;
@@ -17304,6 +17380,7 @@ declare class Arbi {
17304
17380
  row_count: number;
17305
17381
  workspace_id: string;
17306
17382
  editable: boolean;
17383
+ locked_columns?: string[];
17307
17384
  created_by?: string | null;
17308
17385
  created_at: string;
17309
17386
  updated_at: string;
@@ -17316,12 +17393,15 @@ declare class Arbi {
17316
17393
  row_count: number;
17317
17394
  workspace_id: string;
17318
17395
  editable: boolean;
17396
+ locked_columns?: string[];
17319
17397
  created_by?: string | null;
17320
17398
  created_at: string;
17321
17399
  updated_at: string;
17322
17400
  }>;
17323
17401
  delete: (databaseId: string) => Promise<void>;
17324
- addRows: (databaseId: string, rows: DatabaseRowWrite[]) => Promise<{
17402
+ addRows: (databaseId: string, rows: DatabaseRowWrite[], options?: {
17403
+ shared?: boolean;
17404
+ }) => Promise<{
17325
17405
  id: string;
17326
17406
  values: {
17327
17407
  [key: string]: unknown;
@@ -17329,9 +17409,29 @@ declare class Arbi {
17329
17409
  titles?: {
17330
17410
  [key: string]: string;
17331
17411
  };
17412
+ shared: boolean;
17413
+ created_by?: string | null;
17414
+ updated_by?: string | null;
17415
+ conversation_id?: string | null;
17332
17416
  created_at: string;
17333
17417
  updated_at: string;
17334
17418
  }[]>;
17419
+ /** Submit a draft row (share it), or as a workspace owner make a shared row private again. */
17420
+ shareRow: (databaseId: string, rowId: string, shared?: boolean) => Promise<{
17421
+ id: string;
17422
+ values: {
17423
+ [key: string]: unknown;
17424
+ };
17425
+ titles?: {
17426
+ [key: string]: string;
17427
+ };
17428
+ shared: boolean;
17429
+ created_by?: string | null;
17430
+ updated_by?: string | null;
17431
+ conversation_id?: string | null;
17432
+ created_at: string;
17433
+ updated_at: string;
17434
+ }>;
17335
17435
  updateRow: (databaseId: string, rowId: string, values: DatabaseRowWrite["values"]) => Promise<{
17336
17436
  id: string;
17337
17437
  values: {
@@ -17340,6 +17440,10 @@ declare class Arbi {
17340
17440
  titles?: {
17341
17441
  [key: string]: string;
17342
17442
  };
17443
+ shared: boolean;
17444
+ created_by?: string | null;
17445
+ updated_by?: string | null;
17446
+ conversation_id?: string | null;
17343
17447
  created_at: string;
17344
17448
  updated_at: string;
17345
17449
  }>;
@@ -17775,6 +17879,7 @@ declare function getConfig(arbi: ArbiClient, configId: string): Promise<{
17775
17879
  AGENT_MAX_TOKENS: number;
17776
17880
  AGENT_STREAM_OUTPUT_CEILING_TOKENS: number;
17777
17881
  AGENT_STREAM_DEGENERATE_CHARS: number;
17882
+ AGENT_STREAM_REPEAT_CHARS: number;
17778
17883
  ENABLE_THINKING: boolean;
17779
17884
  AGENT_STRICT_TOOL_CALLS: boolean;
17780
17885
  AGENT_MAX_ITERATIONS: number;