@arbidocs/client 0.3.71 → 0.3.72

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.cts CHANGED
@@ -1959,6 +1959,128 @@ interface paths {
1959
1959
  patch?: never;
1960
1960
  trace?: never;
1961
1961
  };
1962
+ '/v1/connectors': {
1963
+ parameters: {
1964
+ query?: never;
1965
+ header?: never;
1966
+ path?: never;
1967
+ cookie?: never;
1968
+ };
1969
+ /**
1970
+ * List active connector catalog entries
1971
+ * @description Return all active connector catalog entries (no secrets).
1972
+ */
1973
+ get: operations['list_connectors'];
1974
+ put?: never;
1975
+ post?: never;
1976
+ delete?: never;
1977
+ options?: never;
1978
+ head?: never;
1979
+ patch?: never;
1980
+ trace?: never;
1981
+ };
1982
+ '/v1/connectors/me': {
1983
+ parameters: {
1984
+ query?: never;
1985
+ header?: never;
1986
+ path?: never;
1987
+ cookie?: never;
1988
+ };
1989
+ /**
1990
+ * List current user's installed connectors
1991
+ * @description Return the list of connectors the current user has installed.
1992
+ */
1993
+ get: operations['list_my_connectors'];
1994
+ put?: never;
1995
+ post?: never;
1996
+ delete?: never;
1997
+ options?: never;
1998
+ head?: never;
1999
+ patch?: never;
2000
+ trace?: never;
2001
+ };
2002
+ '/v1/connectors/{vendor_key}/status': {
2003
+ parameters: {
2004
+ query?: never;
2005
+ header?: never;
2006
+ path?: never;
2007
+ cookie?: never;
2008
+ };
2009
+ /**
2010
+ * Check if user is connected to a vendor
2011
+ * @description Return catalog info plus is_connected and vendor_user_identity for this user/vendor pair.
2012
+ */
2013
+ get: operations['get_connector_status'];
2014
+ put?: never;
2015
+ post?: never;
2016
+ delete?: never;
2017
+ options?: never;
2018
+ head?: never;
2019
+ patch?: never;
2020
+ trace?: never;
2021
+ };
2022
+ '/v1/connectors/{vendor_key}/authorize': {
2023
+ parameters: {
2024
+ query?: never;
2025
+ header?: never;
2026
+ path?: never;
2027
+ cookie?: never;
2028
+ };
2029
+ /**
2030
+ * Initiate PKCE OAuth 2.1 flow (dynamic discovery)
2031
+ * @description Discover OAuth endpoints, build PKCE state, and return the vendor authorization URL.
2032
+ *
2033
+ * The frontend navigates to the returned URL to initiate the vendor OAuth consent page.
2034
+ */
2035
+ get: operations['authorize_connector'];
2036
+ put?: never;
2037
+ post?: never;
2038
+ delete?: never;
2039
+ options?: never;
2040
+ head?: never;
2041
+ patch?: never;
2042
+ trace?: never;
2043
+ };
2044
+ '/v1/connectors/{vendor_key}/callback': {
2045
+ parameters: {
2046
+ query?: never;
2047
+ header?: never;
2048
+ path?: never;
2049
+ cookie?: never;
2050
+ };
2051
+ /**
2052
+ * OAuth callback — exchange code for tokens
2053
+ * @description Handle the OAuth callback: exchange code, encrypt + store tokens, redirect.
2054
+ */
2055
+ get: operations['oauth_callback'];
2056
+ put?: never;
2057
+ post?: never;
2058
+ delete?: never;
2059
+ options?: never;
2060
+ head?: never;
2061
+ patch?: never;
2062
+ trace?: never;
2063
+ };
2064
+ '/v1/connectors/{vendor_key}': {
2065
+ parameters: {
2066
+ query?: never;
2067
+ header?: never;
2068
+ path?: never;
2069
+ cookie?: never;
2070
+ };
2071
+ get?: never;
2072
+ put?: never;
2073
+ post?: never;
2074
+ /**
2075
+ * Disconnect a connector
2076
+ * @description Delete the user's tokens and UserConnector row for this vendor.
2077
+ */
2078
+ delete: operations['disconnect_connector'];
2079
+ options?: never;
2080
+ head?: never;
2081
+ patch?: never;
2082
+ trace?: never;
2083
+ };
1962
2084
  '/v1/responses': {
1963
2085
  parameters: {
1964
2086
  query?: never;
@@ -2249,6 +2371,30 @@ interface components {
2249
2371
  * @default false
2250
2372
  */
2251
2373
  MEMORY_CREATION: boolean;
2374
+ /**
2375
+ * Goals Enabled
2376
+ * @description Feature gate for the goal/Ralph-loop system. When False, the /goal command is unavailable (falls through to a normal query) and the router may not auto-escalate to goal mode. Mirrors SKILLS_ENABLED; set per workspace/config to expose the feature.
2377
+ * @default false
2378
+ */
2379
+ GOALS_ENABLED: boolean;
2380
+ /**
2381
+ * Goal Loop
2382
+ * @description Transient flag set by the /goal command (only when GOALS_ENABLED). When True, the agent runs inside a Ralph loop: PlanningLLM authors a frozen acceptance checklist, the agent works it to completion, and after each pass ReviewLLM grades every criterion. The loop stops when all criteria are met, or after GOAL_MAX_OUTER_LOOPS passes.
2383
+ * @default false
2384
+ */
2385
+ GOAL_LOOP: boolean;
2386
+ /**
2387
+ * Goal Text
2388
+ * @description Transient objective set by the /goal command — the goal the Ralph loop drives toward.
2389
+ * @default
2390
+ */
2391
+ GOAL_TEXT: string;
2392
+ /**
2393
+ * Goal Max Outer Loops
2394
+ * @description Maximum number of outer Ralph-loop passes before the loop stops and returns its best answer, even if the goal judge has not declared the goal satisfied.
2395
+ * @default 6
2396
+ */
2397
+ GOAL_MAX_OUTER_LOOPS: number;
2252
2398
  /**
2253
2399
  * Review Enabled
2254
2400
  * @description Enable ReviewLLM to review agent draft answers against source material before sending to the user. Uses the reasoning model for higher quality.
@@ -2339,6 +2485,7 @@ interface components {
2339
2485
  * - Bold text for critical conclusions or decision points
2340
2486
  *
2341
2487
  * TOOL CALLING:
2488
+ * - Your job is to gather context by calling tools, then answer only once every reasonable tool call has been made. Do not give a final answer while there is still relevant context you could retrieve.
2342
2489
  * - Always invoke tools using the tool-calling mechanism. NEVER write text that describes or simulates a tool call (e.g. never write "Searching for X...", "Reading document Y...", "Calling search_inside_documents" as prose — actually call the tool).
2343
2490
  * - If you intend to search or read, issue the tool call immediately. Do not narrate your intent first.
2344
2491
  *
@@ -2405,6 +2552,10 @@ interface components {
2405
2552
  * "SKILLS_ENABLED": false,
2406
2553
  * "SKILL_CREATION": false,
2407
2554
  * "MEMORY_CREATION": false,
2555
+ * "GOALS_ENABLED": false,
2556
+ * "GOAL_LOOP": false,
2557
+ * "GOAL_TEXT": "",
2558
+ * "GOAL_MAX_OUTER_LOOPS": 6,
2408
2559
  * "REVIEW_ENABLED": false,
2409
2560
  * "PERSONA": "You are ARBI, an AI assistant created by ARBI CITY. Be proactive, helpful and professional.",
2410
2561
  * "AGENT_MODEL_NAME": "auto",
@@ -2415,7 +2566,7 @@ interface components {
2415
2566
  * "AGENT_MAX_ITERATIONS": 20,
2416
2567
  * "AGENT_MAX_PARALLEL_TOOL_CALLS": 10,
2417
2568
  * "AGENT_HISTORY_CHAR_THRESHOLD": 8000,
2418
- * "AGENT_SYSTEM_PROMPT": "Answer any question the user asks. You have access to workspace documents — use them when relevant. When no documents are relevant, answer from your own knowledge. Always provide a helpful answer.\n\nIMPORTANT: Never say \"I don't have information in the available documents\" or refuse to answer. If documents are not relevant, just answer the question directly from your own knowledge. If the user asks about a specific workspace document, call read_document or get_table_of_contents — never answer from memory.\n\nWhen using documents, retrieve actual document content — do not rely on metadata or headings alone. Cross-check information across sources. Not all assertions in sources are factual — some are arguments by a party. Attribute claims to their source where parties disagree.\n\nDOCUMENT INDEX:\nThe \"Workspace Documents\" table in your system prompt already lists every document with its Id, Title, Date, Pages, and Subject. Use this table directly when the user asks to list, catalogue, or tabulate documents — do NOT call any tools for that. Only use tools when you need to read or search document content.\n\nDOCUMENT STRATEGY:\n- For listing/cataloguing documents: use the document index already in your prompt — no tool calls needed.\n- For overview/summary requests: use get_table_of_contents first, then read key sections with read_document.\n- For specific questions: use search_inside_documents to find relevant sections, then read those sections with read_document.\n- For translation, deep analysis, or detailed summaries of a single document: use read_document with no ranges to load the complete text.\n- For extracting structured findings from passages: use read_document with digest=true or search_inside_documents with digest=true.\n- Never search for meta-queries like \"summary\", \"overview\", or \"all documents\" — search for the actual subject matter.\n\nFORMATTING:\n- Start your answer directly with the content — never open with a description of what you searched for or read (e.g. never write \"Searching for X\", \"Reading Y\", \"I found Z documents\" as the first lines of an answer).\n- Use markdown: headings, bold, bullet points, numbered lists\n- Main conclusion first, followed by supporting points\n- Bullet points for lists of discrete items\n- Numbering for sequential steps or prioritized items\n- Bold text for critical conclusions or decision points\n\nTOOL CALLING:\n- Always invoke tools using the tool-calling mechanism. NEVER write text that describes or simulates a tool call (e.g. never write \"Searching for X...\", \"Reading document Y...\", \"Calling search_inside_documents\" as prose — actually call the tool).\n- If you intend to search or read, issue the tool call immediately. Do not narrate your intent first.\n\nEFFICIENCY:\n1. Before each step, review the results of prior steps. Adapt your approach based on what you learned — if a call was rejected or returned poor results, adjust your strategy.\n2. Call multiple tools in parallel when a query has several aspects.\n3. NEVER repeat a tool call with the same arguments.\n4. Use targeted queries and narrow page ranges per retrieval call.\n5. Stop when you have sufficient evidence — do not over-research."
2569
+ * "AGENT_SYSTEM_PROMPT": "Answer any question the user asks. You have access to workspace documents — use them when relevant. When no documents are relevant, answer from your own knowledge. Always provide a helpful answer.\n\nIMPORTANT: Never say \"I don't have information in the available documents\" or refuse to answer. If documents are not relevant, just answer the question directly from your own knowledge. If the user asks about a specific workspace document, call read_document or get_table_of_contents — never answer from memory.\n\nWhen using documents, retrieve actual document content — do not rely on metadata or headings alone. Cross-check information across sources. Not all assertions in sources are factual — some are arguments by a party. Attribute claims to their source where parties disagree.\n\nDOCUMENT INDEX:\nThe \"Workspace Documents\" table in your system prompt already lists every document with its Id, Title, Date, Pages, and Subject. Use this table directly when the user asks to list, catalogue, or tabulate documents — do NOT call any tools for that. Only use tools when you need to read or search document content.\n\nDOCUMENT STRATEGY:\n- For listing/cataloguing documents: use the document index already in your prompt — no tool calls needed.\n- For overview/summary requests: use get_table_of_contents first, then read key sections with read_document.\n- For specific questions: use search_inside_documents to find relevant sections, then read those sections with read_document.\n- For translation, deep analysis, or detailed summaries of a single document: use read_document with no ranges to load the complete text.\n- For extracting structured findings from passages: use read_document with digest=true or search_inside_documents with digest=true.\n- Never search for meta-queries like \"summary\", \"overview\", or \"all documents\" — search for the actual subject matter.\n\nFORMATTING:\n- Start your answer directly with the content — never open with a description of what you searched for or read (e.g. never write \"Searching for X\", \"Reading Y\", \"I found Z documents\" as the first lines of an answer).\n- Use markdown: headings, bold, bullet points, numbered lists\n- Main conclusion first, followed by supporting points\n- Bullet points for lists of discrete items\n- Numbering for sequential steps or prioritized items\n- Bold text for critical conclusions or decision points\n\nTOOL CALLING:\n- Your job is to gather context by calling tools, then answer only once every reasonable tool call has been made. Do not give a final answer while there is still relevant context you could retrieve.\n- Always invoke tools using the tool-calling mechanism. NEVER write text that describes or simulates a tool call (e.g. never write \"Searching for X...\", \"Reading document Y...\", \"Calling search_inside_documents\" as prose — actually call the tool).\n- If you intend to search or read, issue the tool call immediately. Do not narrate your intent first.\n\nEFFICIENCY:\n1. Before each step, review the results of prior steps. Adapt your approach based on what you learned — if a call was rejected or returned poor results, adjust your strategy.\n2. Call multiple tools in parallel when a query has several aspects.\n3. NEVER repeat a tool call with the same arguments.\n4. Use targeted queries and narrow page ranges per retrieval call.\n5. Stop when you have sufficient evidence — do not over-research."
2419
2570
  * }
2420
2571
  */
2421
2572
  Agents: components['schemas']['AgentsConfig'];
@@ -2595,7 +2746,7 @@ interface components {
2595
2746
  * @default {
2596
2747
  * "API_TYPE": "remote",
2597
2748
  * "ENABLE_THINKING": true,
2598
- * "MODEL_NAME": "Premium",
2749
+ * "MODEL_NAME": "GLM5@Fireworks",
2599
2750
  * "SYSTEM_INSTRUCTION": "You are a code execution agent. You write and run code to accomplish tasks.\n\nYou have access to an execute_code tool that runs code in a sandboxed Docker container.\n\nThe sandbox has:\n- Python 3.12 with numpy, pandas, matplotlib, requests, beautifulsoup4,\n httpx, pillow, sympy, pyyaml (plus uv for installing more)\n- Node.js 22 with TypeScript (ts-node) and npm\n- Bash with git, curl, wget, jq, sqlite3, build-essential\n- Network access (can pip/npm install additional packages)\n\nInstructions:\n1. Write clean, correct code to accomplish the user's task\n2. Always call execute_code to run your code — never guess the output\n3. If execution errors, analyze the traceback, fix the code, and retry\n4. Once you have the correct output, respond with ONLY the final result\n\nKeep code simple and direct. Prefer Python unless the task specifically requires another language.",
2600
2751
  * "TEMPERATURE": 0.2,
2601
2752
  * "MAX_TOKENS": 8000,
@@ -3077,7 +3228,7 @@ interface components {
3077
3228
  /**
3078
3229
  * Model Name
3079
3230
  * @description Model for code generation. Should be a strong coding model.
3080
- * @default Premium
3231
+ * @default GLM5@Fireworks
3081
3232
  */
3082
3233
  MODEL_NAME: string;
3083
3234
  /**
@@ -3254,6 +3405,26 @@ interface components {
3254
3405
  /** Message */
3255
3406
  message: string;
3256
3407
  };
3408
+ /** ConnectorCatalogRead */
3409
+ ConnectorCatalogRead: {
3410
+ /**
3411
+ * Id
3412
+ * Format: uuid
3413
+ */
3414
+ id: string;
3415
+ /** Vendor Key */
3416
+ vendor_key: string;
3417
+ /** Display Name */
3418
+ display_name: string;
3419
+ /** Description */
3420
+ description: string;
3421
+ /** Icon Url */
3422
+ icon_url: string | null;
3423
+ /** Mcp Server Alias */
3424
+ mcp_server_alias: string;
3425
+ /** Requires Per User Auth */
3426
+ requires_per_user_auth: boolean;
3427
+ };
3257
3428
  /**
3258
3429
  * ConsolidatedHealthResponse
3259
3430
  * @description Consolidated health response containing all system status and version information
@@ -3362,6 +3533,22 @@ interface components {
3362
3533
  /** Title */
3363
3534
  title: string;
3364
3535
  };
3536
+ /**
3537
+ * ConversationTitleUpdatedMessage
3538
+ * @description Conversation title regenerated server-side — frontend should refresh.
3539
+ */
3540
+ ConversationTitleUpdatedMessage: {
3541
+ /**
3542
+ * Type
3543
+ * @default conversation.title_updated
3544
+ * @constant
3545
+ */
3546
+ type: 'conversation.title_updated';
3547
+ /** Conversation Ext Id */
3548
+ conversation_ext_id: string;
3549
+ /** Title */
3550
+ title: string;
3551
+ };
3365
3552
  /** CopyDocumentResult */
3366
3553
  CopyDocumentResult: {
3367
3554
  /** Source Doc Ext Id */
@@ -5170,7 +5357,7 @@ interface components {
5170
5357
  * Status
5171
5358
  * @enum {string}
5172
5359
  */
5173
- status: 'online' | 'unknown';
5360
+ status: 'online' | 'offline' | 'unknown';
5174
5361
  /** Timestamp */
5175
5362
  timestamp: string;
5176
5363
  };
@@ -7420,6 +7607,32 @@ interface components {
7420
7607
  /** Items */
7421
7608
  items?: components['schemas']['InitedUploadItem'][];
7422
7609
  };
7610
+ /** UserConnectorRead */
7611
+ UserConnectorRead: {
7612
+ /**
7613
+ * Id
7614
+ * Format: uuid
7615
+ */
7616
+ id: string;
7617
+ /** Vendor Key */
7618
+ vendor_key: string;
7619
+ /** Display Name */
7620
+ display_name: string;
7621
+ /** Icon Url */
7622
+ icon_url: string | null;
7623
+ /**
7624
+ * Connected At
7625
+ * Format: date-time
7626
+ */
7627
+ connected_at: string;
7628
+ /** Vendor User Identity */
7629
+ vendor_user_identity: string | null;
7630
+ /**
7631
+ * Is Connected
7632
+ * @default true
7633
+ */
7634
+ is_connected: boolean;
7635
+ };
7423
7636
  /**
7424
7637
  * UserDailyUsageResponse
7425
7638
  * @description Today's deployment-wide credit spend tagged with the current user.
@@ -7647,6 +7860,11 @@ interface components {
7647
7860
  * @default false
7648
7861
  */
7649
7862
  show_mcp_connectors: boolean;
7863
+ /**
7864
+ * Show Hints
7865
+ * @default true
7866
+ */
7867
+ show_hints: boolean;
7650
7868
  /**
7651
7869
  * Use S3 Direct Upload
7652
7870
  * @default false
@@ -7704,6 +7922,8 @@ interface components {
7704
7922
  show_agent_sessions?: boolean | null;
7705
7923
  /** Show Mcp Connectors */
7706
7924
  show_mcp_connectors?: boolean | null;
7925
+ /** Show Hints */
7926
+ show_hints?: boolean | null;
7707
7927
  /** Use S3 Direct Upload */
7708
7928
  use_s3_direct_upload?: boolean | null;
7709
7929
  /** Hide Online Status */
@@ -7872,6 +8092,7 @@ interface components {
7872
8092
  task_update?: components['schemas']['TaskUpdateMessage'] | null;
7873
8093
  batch_complete?: components['schemas']['BatchCompleteMessage'] | null;
7874
8094
  response_complete?: components['schemas']['ResponseCompleteMessage'] | null;
8095
+ conversation_title_updated?: components['schemas']['ConversationTitleUpdatedMessage'] | null;
7875
8096
  notification?: components['schemas']['NotificationResponse'] | null;
7876
8097
  auth?: components['schemas']['AuthMessage'] | null;
7877
8098
  send_message?: components['schemas']['SendMessageRequest'] | null;
@@ -11050,6 +11271,175 @@ interface operations {
11050
11271
  };
11051
11272
  };
11052
11273
  };
11274
+ list_connectors: {
11275
+ parameters: {
11276
+ query?: never;
11277
+ header?: never;
11278
+ path?: never;
11279
+ cookie?: never;
11280
+ };
11281
+ requestBody?: never;
11282
+ responses: {
11283
+ /** @description Successful Response */
11284
+ 200: {
11285
+ headers: {
11286
+ [name: string]: unknown;
11287
+ };
11288
+ content: {
11289
+ 'application/json': components['schemas']['ConnectorCatalogRead'][];
11290
+ };
11291
+ };
11292
+ };
11293
+ };
11294
+ list_my_connectors: {
11295
+ parameters: {
11296
+ query?: never;
11297
+ header?: never;
11298
+ path?: never;
11299
+ cookie?: never;
11300
+ };
11301
+ requestBody?: never;
11302
+ responses: {
11303
+ /** @description Successful Response */
11304
+ 200: {
11305
+ headers: {
11306
+ [name: string]: unknown;
11307
+ };
11308
+ content: {
11309
+ 'application/json': components['schemas']['UserConnectorRead'][];
11310
+ };
11311
+ };
11312
+ };
11313
+ };
11314
+ get_connector_status: {
11315
+ parameters: {
11316
+ query?: never;
11317
+ header?: never;
11318
+ path: {
11319
+ vendor_key: string;
11320
+ };
11321
+ cookie?: never;
11322
+ };
11323
+ requestBody?: never;
11324
+ responses: {
11325
+ /** @description Successful Response */
11326
+ 200: {
11327
+ headers: {
11328
+ [name: string]: unknown;
11329
+ };
11330
+ content: {
11331
+ 'application/json': {
11332
+ [key: string]: unknown;
11333
+ };
11334
+ };
11335
+ };
11336
+ /** @description Validation Error */
11337
+ 422: {
11338
+ headers: {
11339
+ [name: string]: unknown;
11340
+ };
11341
+ content: {
11342
+ 'application/json': components['schemas']['HTTPValidationError'];
11343
+ };
11344
+ };
11345
+ };
11346
+ };
11347
+ authorize_connector: {
11348
+ parameters: {
11349
+ query?: never;
11350
+ header?: never;
11351
+ path: {
11352
+ vendor_key: string;
11353
+ };
11354
+ cookie?: never;
11355
+ };
11356
+ requestBody?: never;
11357
+ responses: {
11358
+ /** @description Successful Response */
11359
+ 200: {
11360
+ headers: {
11361
+ [name: string]: unknown;
11362
+ };
11363
+ content: {
11364
+ 'application/json': {
11365
+ [key: string]: unknown;
11366
+ };
11367
+ };
11368
+ };
11369
+ /** @description Validation Error */
11370
+ 422: {
11371
+ headers: {
11372
+ [name: string]: unknown;
11373
+ };
11374
+ content: {
11375
+ 'application/json': components['schemas']['HTTPValidationError'];
11376
+ };
11377
+ };
11378
+ };
11379
+ };
11380
+ oauth_callback: {
11381
+ parameters: {
11382
+ query: {
11383
+ code: string;
11384
+ state: string;
11385
+ };
11386
+ header?: never;
11387
+ path: {
11388
+ vendor_key: string;
11389
+ };
11390
+ cookie?: never;
11391
+ };
11392
+ requestBody?: never;
11393
+ responses: {
11394
+ /** @description Successful Response */
11395
+ 200: {
11396
+ headers: {
11397
+ [name: string]: unknown;
11398
+ };
11399
+ content: {
11400
+ 'application/json': unknown;
11401
+ };
11402
+ };
11403
+ /** @description Validation Error */
11404
+ 422: {
11405
+ headers: {
11406
+ [name: string]: unknown;
11407
+ };
11408
+ content: {
11409
+ 'application/json': components['schemas']['HTTPValidationError'];
11410
+ };
11411
+ };
11412
+ };
11413
+ };
11414
+ disconnect_connector: {
11415
+ parameters: {
11416
+ query?: never;
11417
+ header?: never;
11418
+ path: {
11419
+ vendor_key: string;
11420
+ };
11421
+ cookie?: never;
11422
+ };
11423
+ requestBody?: never;
11424
+ responses: {
11425
+ /** @description Successful Response */
11426
+ 204: {
11427
+ headers: {
11428
+ [name: string]: unknown;
11429
+ };
11430
+ content?: never;
11431
+ };
11432
+ /** @description Validation Error */
11433
+ 422: {
11434
+ headers: {
11435
+ [name: string]: unknown;
11436
+ };
11437
+ content: {
11438
+ 'application/json': components['schemas']['HTTPValidationError'];
11439
+ };
11440
+ };
11441
+ };
11442
+ };
11053
11443
  create_response: {
11054
11444
  parameters: {
11055
11445
  query?: never;
package/dist/index.d.ts CHANGED
@@ -1959,6 +1959,128 @@ interface paths {
1959
1959
  patch?: never;
1960
1960
  trace?: never;
1961
1961
  };
1962
+ '/v1/connectors': {
1963
+ parameters: {
1964
+ query?: never;
1965
+ header?: never;
1966
+ path?: never;
1967
+ cookie?: never;
1968
+ };
1969
+ /**
1970
+ * List active connector catalog entries
1971
+ * @description Return all active connector catalog entries (no secrets).
1972
+ */
1973
+ get: operations['list_connectors'];
1974
+ put?: never;
1975
+ post?: never;
1976
+ delete?: never;
1977
+ options?: never;
1978
+ head?: never;
1979
+ patch?: never;
1980
+ trace?: never;
1981
+ };
1982
+ '/v1/connectors/me': {
1983
+ parameters: {
1984
+ query?: never;
1985
+ header?: never;
1986
+ path?: never;
1987
+ cookie?: never;
1988
+ };
1989
+ /**
1990
+ * List current user's installed connectors
1991
+ * @description Return the list of connectors the current user has installed.
1992
+ */
1993
+ get: operations['list_my_connectors'];
1994
+ put?: never;
1995
+ post?: never;
1996
+ delete?: never;
1997
+ options?: never;
1998
+ head?: never;
1999
+ patch?: never;
2000
+ trace?: never;
2001
+ };
2002
+ '/v1/connectors/{vendor_key}/status': {
2003
+ parameters: {
2004
+ query?: never;
2005
+ header?: never;
2006
+ path?: never;
2007
+ cookie?: never;
2008
+ };
2009
+ /**
2010
+ * Check if user is connected to a vendor
2011
+ * @description Return catalog info plus is_connected and vendor_user_identity for this user/vendor pair.
2012
+ */
2013
+ get: operations['get_connector_status'];
2014
+ put?: never;
2015
+ post?: never;
2016
+ delete?: never;
2017
+ options?: never;
2018
+ head?: never;
2019
+ patch?: never;
2020
+ trace?: never;
2021
+ };
2022
+ '/v1/connectors/{vendor_key}/authorize': {
2023
+ parameters: {
2024
+ query?: never;
2025
+ header?: never;
2026
+ path?: never;
2027
+ cookie?: never;
2028
+ };
2029
+ /**
2030
+ * Initiate PKCE OAuth 2.1 flow (dynamic discovery)
2031
+ * @description Discover OAuth endpoints, build PKCE state, and return the vendor authorization URL.
2032
+ *
2033
+ * The frontend navigates to the returned URL to initiate the vendor OAuth consent page.
2034
+ */
2035
+ get: operations['authorize_connector'];
2036
+ put?: never;
2037
+ post?: never;
2038
+ delete?: never;
2039
+ options?: never;
2040
+ head?: never;
2041
+ patch?: never;
2042
+ trace?: never;
2043
+ };
2044
+ '/v1/connectors/{vendor_key}/callback': {
2045
+ parameters: {
2046
+ query?: never;
2047
+ header?: never;
2048
+ path?: never;
2049
+ cookie?: never;
2050
+ };
2051
+ /**
2052
+ * OAuth callback — exchange code for tokens
2053
+ * @description Handle the OAuth callback: exchange code, encrypt + store tokens, redirect.
2054
+ */
2055
+ get: operations['oauth_callback'];
2056
+ put?: never;
2057
+ post?: never;
2058
+ delete?: never;
2059
+ options?: never;
2060
+ head?: never;
2061
+ patch?: never;
2062
+ trace?: never;
2063
+ };
2064
+ '/v1/connectors/{vendor_key}': {
2065
+ parameters: {
2066
+ query?: never;
2067
+ header?: never;
2068
+ path?: never;
2069
+ cookie?: never;
2070
+ };
2071
+ get?: never;
2072
+ put?: never;
2073
+ post?: never;
2074
+ /**
2075
+ * Disconnect a connector
2076
+ * @description Delete the user's tokens and UserConnector row for this vendor.
2077
+ */
2078
+ delete: operations['disconnect_connector'];
2079
+ options?: never;
2080
+ head?: never;
2081
+ patch?: never;
2082
+ trace?: never;
2083
+ };
1962
2084
  '/v1/responses': {
1963
2085
  parameters: {
1964
2086
  query?: never;
@@ -2249,6 +2371,30 @@ interface components {
2249
2371
  * @default false
2250
2372
  */
2251
2373
  MEMORY_CREATION: boolean;
2374
+ /**
2375
+ * Goals Enabled
2376
+ * @description Feature gate for the goal/Ralph-loop system. When False, the /goal command is unavailable (falls through to a normal query) and the router may not auto-escalate to goal mode. Mirrors SKILLS_ENABLED; set per workspace/config to expose the feature.
2377
+ * @default false
2378
+ */
2379
+ GOALS_ENABLED: boolean;
2380
+ /**
2381
+ * Goal Loop
2382
+ * @description Transient flag set by the /goal command (only when GOALS_ENABLED). When True, the agent runs inside a Ralph loop: PlanningLLM authors a frozen acceptance checklist, the agent works it to completion, and after each pass ReviewLLM grades every criterion. The loop stops when all criteria are met, or after GOAL_MAX_OUTER_LOOPS passes.
2383
+ * @default false
2384
+ */
2385
+ GOAL_LOOP: boolean;
2386
+ /**
2387
+ * Goal Text
2388
+ * @description Transient objective set by the /goal command — the goal the Ralph loop drives toward.
2389
+ * @default
2390
+ */
2391
+ GOAL_TEXT: string;
2392
+ /**
2393
+ * Goal Max Outer Loops
2394
+ * @description Maximum number of outer Ralph-loop passes before the loop stops and returns its best answer, even if the goal judge has not declared the goal satisfied.
2395
+ * @default 6
2396
+ */
2397
+ GOAL_MAX_OUTER_LOOPS: number;
2252
2398
  /**
2253
2399
  * Review Enabled
2254
2400
  * @description Enable ReviewLLM to review agent draft answers against source material before sending to the user. Uses the reasoning model for higher quality.
@@ -2339,6 +2485,7 @@ interface components {
2339
2485
  * - Bold text for critical conclusions or decision points
2340
2486
  *
2341
2487
  * TOOL CALLING:
2488
+ * - Your job is to gather context by calling tools, then answer only once every reasonable tool call has been made. Do not give a final answer while there is still relevant context you could retrieve.
2342
2489
  * - Always invoke tools using the tool-calling mechanism. NEVER write text that describes or simulates a tool call (e.g. never write "Searching for X...", "Reading document Y...", "Calling search_inside_documents" as prose — actually call the tool).
2343
2490
  * - If you intend to search or read, issue the tool call immediately. Do not narrate your intent first.
2344
2491
  *
@@ -2405,6 +2552,10 @@ interface components {
2405
2552
  * "SKILLS_ENABLED": false,
2406
2553
  * "SKILL_CREATION": false,
2407
2554
  * "MEMORY_CREATION": false,
2555
+ * "GOALS_ENABLED": false,
2556
+ * "GOAL_LOOP": false,
2557
+ * "GOAL_TEXT": "",
2558
+ * "GOAL_MAX_OUTER_LOOPS": 6,
2408
2559
  * "REVIEW_ENABLED": false,
2409
2560
  * "PERSONA": "You are ARBI, an AI assistant created by ARBI CITY. Be proactive, helpful and professional.",
2410
2561
  * "AGENT_MODEL_NAME": "auto",
@@ -2415,7 +2566,7 @@ interface components {
2415
2566
  * "AGENT_MAX_ITERATIONS": 20,
2416
2567
  * "AGENT_MAX_PARALLEL_TOOL_CALLS": 10,
2417
2568
  * "AGENT_HISTORY_CHAR_THRESHOLD": 8000,
2418
- * "AGENT_SYSTEM_PROMPT": "Answer any question the user asks. You have access to workspace documents — use them when relevant. When no documents are relevant, answer from your own knowledge. Always provide a helpful answer.\n\nIMPORTANT: Never say \"I don't have information in the available documents\" or refuse to answer. If documents are not relevant, just answer the question directly from your own knowledge. If the user asks about a specific workspace document, call read_document or get_table_of_contents — never answer from memory.\n\nWhen using documents, retrieve actual document content — do not rely on metadata or headings alone. Cross-check information across sources. Not all assertions in sources are factual — some are arguments by a party. Attribute claims to their source where parties disagree.\n\nDOCUMENT INDEX:\nThe \"Workspace Documents\" table in your system prompt already lists every document with its Id, Title, Date, Pages, and Subject. Use this table directly when the user asks to list, catalogue, or tabulate documents — do NOT call any tools for that. Only use tools when you need to read or search document content.\n\nDOCUMENT STRATEGY:\n- For listing/cataloguing documents: use the document index already in your prompt — no tool calls needed.\n- For overview/summary requests: use get_table_of_contents first, then read key sections with read_document.\n- For specific questions: use search_inside_documents to find relevant sections, then read those sections with read_document.\n- For translation, deep analysis, or detailed summaries of a single document: use read_document with no ranges to load the complete text.\n- For extracting structured findings from passages: use read_document with digest=true or search_inside_documents with digest=true.\n- Never search for meta-queries like \"summary\", \"overview\", or \"all documents\" — search for the actual subject matter.\n\nFORMATTING:\n- Start your answer directly with the content — never open with a description of what you searched for or read (e.g. never write \"Searching for X\", \"Reading Y\", \"I found Z documents\" as the first lines of an answer).\n- Use markdown: headings, bold, bullet points, numbered lists\n- Main conclusion first, followed by supporting points\n- Bullet points for lists of discrete items\n- Numbering for sequential steps or prioritized items\n- Bold text for critical conclusions or decision points\n\nTOOL CALLING:\n- Always invoke tools using the tool-calling mechanism. NEVER write text that describes or simulates a tool call (e.g. never write \"Searching for X...\", \"Reading document Y...\", \"Calling search_inside_documents\" as prose — actually call the tool).\n- If you intend to search or read, issue the tool call immediately. Do not narrate your intent first.\n\nEFFICIENCY:\n1. Before each step, review the results of prior steps. Adapt your approach based on what you learned — if a call was rejected or returned poor results, adjust your strategy.\n2. Call multiple tools in parallel when a query has several aspects.\n3. NEVER repeat a tool call with the same arguments.\n4. Use targeted queries and narrow page ranges per retrieval call.\n5. Stop when you have sufficient evidence — do not over-research."
2569
+ * "AGENT_SYSTEM_PROMPT": "Answer any question the user asks. You have access to workspace documents — use them when relevant. When no documents are relevant, answer from your own knowledge. Always provide a helpful answer.\n\nIMPORTANT: Never say \"I don't have information in the available documents\" or refuse to answer. If documents are not relevant, just answer the question directly from your own knowledge. If the user asks about a specific workspace document, call read_document or get_table_of_contents — never answer from memory.\n\nWhen using documents, retrieve actual document content — do not rely on metadata or headings alone. Cross-check information across sources. Not all assertions in sources are factual — some are arguments by a party. Attribute claims to their source where parties disagree.\n\nDOCUMENT INDEX:\nThe \"Workspace Documents\" table in your system prompt already lists every document with its Id, Title, Date, Pages, and Subject. Use this table directly when the user asks to list, catalogue, or tabulate documents — do NOT call any tools for that. Only use tools when you need to read or search document content.\n\nDOCUMENT STRATEGY:\n- For listing/cataloguing documents: use the document index already in your prompt — no tool calls needed.\n- For overview/summary requests: use get_table_of_contents first, then read key sections with read_document.\n- For specific questions: use search_inside_documents to find relevant sections, then read those sections with read_document.\n- For translation, deep analysis, or detailed summaries of a single document: use read_document with no ranges to load the complete text.\n- For extracting structured findings from passages: use read_document with digest=true or search_inside_documents with digest=true.\n- Never search for meta-queries like \"summary\", \"overview\", or \"all documents\" — search for the actual subject matter.\n\nFORMATTING:\n- Start your answer directly with the content — never open with a description of what you searched for or read (e.g. never write \"Searching for X\", \"Reading Y\", \"I found Z documents\" as the first lines of an answer).\n- Use markdown: headings, bold, bullet points, numbered lists\n- Main conclusion first, followed by supporting points\n- Bullet points for lists of discrete items\n- Numbering for sequential steps or prioritized items\n- Bold text for critical conclusions or decision points\n\nTOOL CALLING:\n- Your job is to gather context by calling tools, then answer only once every reasonable tool call has been made. Do not give a final answer while there is still relevant context you could retrieve.\n- Always invoke tools using the tool-calling mechanism. NEVER write text that describes or simulates a tool call (e.g. never write \"Searching for X...\", \"Reading document Y...\", \"Calling search_inside_documents\" as prose — actually call the tool).\n- If you intend to search or read, issue the tool call immediately. Do not narrate your intent first.\n\nEFFICIENCY:\n1. Before each step, review the results of prior steps. Adapt your approach based on what you learned — if a call was rejected or returned poor results, adjust your strategy.\n2. Call multiple tools in parallel when a query has several aspects.\n3. NEVER repeat a tool call with the same arguments.\n4. Use targeted queries and narrow page ranges per retrieval call.\n5. Stop when you have sufficient evidence — do not over-research."
2419
2570
  * }
2420
2571
  */
2421
2572
  Agents: components['schemas']['AgentsConfig'];
@@ -2595,7 +2746,7 @@ interface components {
2595
2746
  * @default {
2596
2747
  * "API_TYPE": "remote",
2597
2748
  * "ENABLE_THINKING": true,
2598
- * "MODEL_NAME": "Premium",
2749
+ * "MODEL_NAME": "GLM5@Fireworks",
2599
2750
  * "SYSTEM_INSTRUCTION": "You are a code execution agent. You write and run code to accomplish tasks.\n\nYou have access to an execute_code tool that runs code in a sandboxed Docker container.\n\nThe sandbox has:\n- Python 3.12 with numpy, pandas, matplotlib, requests, beautifulsoup4,\n httpx, pillow, sympy, pyyaml (plus uv for installing more)\n- Node.js 22 with TypeScript (ts-node) and npm\n- Bash with git, curl, wget, jq, sqlite3, build-essential\n- Network access (can pip/npm install additional packages)\n\nInstructions:\n1. Write clean, correct code to accomplish the user's task\n2. Always call execute_code to run your code — never guess the output\n3. If execution errors, analyze the traceback, fix the code, and retry\n4. Once you have the correct output, respond with ONLY the final result\n\nKeep code simple and direct. Prefer Python unless the task specifically requires another language.",
2600
2751
  * "TEMPERATURE": 0.2,
2601
2752
  * "MAX_TOKENS": 8000,
@@ -3077,7 +3228,7 @@ interface components {
3077
3228
  /**
3078
3229
  * Model Name
3079
3230
  * @description Model for code generation. Should be a strong coding model.
3080
- * @default Premium
3231
+ * @default GLM5@Fireworks
3081
3232
  */
3082
3233
  MODEL_NAME: string;
3083
3234
  /**
@@ -3254,6 +3405,26 @@ interface components {
3254
3405
  /** Message */
3255
3406
  message: string;
3256
3407
  };
3408
+ /** ConnectorCatalogRead */
3409
+ ConnectorCatalogRead: {
3410
+ /**
3411
+ * Id
3412
+ * Format: uuid
3413
+ */
3414
+ id: string;
3415
+ /** Vendor Key */
3416
+ vendor_key: string;
3417
+ /** Display Name */
3418
+ display_name: string;
3419
+ /** Description */
3420
+ description: string;
3421
+ /** Icon Url */
3422
+ icon_url: string | null;
3423
+ /** Mcp Server Alias */
3424
+ mcp_server_alias: string;
3425
+ /** Requires Per User Auth */
3426
+ requires_per_user_auth: boolean;
3427
+ };
3257
3428
  /**
3258
3429
  * ConsolidatedHealthResponse
3259
3430
  * @description Consolidated health response containing all system status and version information
@@ -3362,6 +3533,22 @@ interface components {
3362
3533
  /** Title */
3363
3534
  title: string;
3364
3535
  };
3536
+ /**
3537
+ * ConversationTitleUpdatedMessage
3538
+ * @description Conversation title regenerated server-side — frontend should refresh.
3539
+ */
3540
+ ConversationTitleUpdatedMessage: {
3541
+ /**
3542
+ * Type
3543
+ * @default conversation.title_updated
3544
+ * @constant
3545
+ */
3546
+ type: 'conversation.title_updated';
3547
+ /** Conversation Ext Id */
3548
+ conversation_ext_id: string;
3549
+ /** Title */
3550
+ title: string;
3551
+ };
3365
3552
  /** CopyDocumentResult */
3366
3553
  CopyDocumentResult: {
3367
3554
  /** Source Doc Ext Id */
@@ -5170,7 +5357,7 @@ interface components {
5170
5357
  * Status
5171
5358
  * @enum {string}
5172
5359
  */
5173
- status: 'online' | 'unknown';
5360
+ status: 'online' | 'offline' | 'unknown';
5174
5361
  /** Timestamp */
5175
5362
  timestamp: string;
5176
5363
  };
@@ -7420,6 +7607,32 @@ interface components {
7420
7607
  /** Items */
7421
7608
  items?: components['schemas']['InitedUploadItem'][];
7422
7609
  };
7610
+ /** UserConnectorRead */
7611
+ UserConnectorRead: {
7612
+ /**
7613
+ * Id
7614
+ * Format: uuid
7615
+ */
7616
+ id: string;
7617
+ /** Vendor Key */
7618
+ vendor_key: string;
7619
+ /** Display Name */
7620
+ display_name: string;
7621
+ /** Icon Url */
7622
+ icon_url: string | null;
7623
+ /**
7624
+ * Connected At
7625
+ * Format: date-time
7626
+ */
7627
+ connected_at: string;
7628
+ /** Vendor User Identity */
7629
+ vendor_user_identity: string | null;
7630
+ /**
7631
+ * Is Connected
7632
+ * @default true
7633
+ */
7634
+ is_connected: boolean;
7635
+ };
7423
7636
  /**
7424
7637
  * UserDailyUsageResponse
7425
7638
  * @description Today's deployment-wide credit spend tagged with the current user.
@@ -7647,6 +7860,11 @@ interface components {
7647
7860
  * @default false
7648
7861
  */
7649
7862
  show_mcp_connectors: boolean;
7863
+ /**
7864
+ * Show Hints
7865
+ * @default true
7866
+ */
7867
+ show_hints: boolean;
7650
7868
  /**
7651
7869
  * Use S3 Direct Upload
7652
7870
  * @default false
@@ -7704,6 +7922,8 @@ interface components {
7704
7922
  show_agent_sessions?: boolean | null;
7705
7923
  /** Show Mcp Connectors */
7706
7924
  show_mcp_connectors?: boolean | null;
7925
+ /** Show Hints */
7926
+ show_hints?: boolean | null;
7707
7927
  /** Use S3 Direct Upload */
7708
7928
  use_s3_direct_upload?: boolean | null;
7709
7929
  /** Hide Online Status */
@@ -7872,6 +8092,7 @@ interface components {
7872
8092
  task_update?: components['schemas']['TaskUpdateMessage'] | null;
7873
8093
  batch_complete?: components['schemas']['BatchCompleteMessage'] | null;
7874
8094
  response_complete?: components['schemas']['ResponseCompleteMessage'] | null;
8095
+ conversation_title_updated?: components['schemas']['ConversationTitleUpdatedMessage'] | null;
7875
8096
  notification?: components['schemas']['NotificationResponse'] | null;
7876
8097
  auth?: components['schemas']['AuthMessage'] | null;
7877
8098
  send_message?: components['schemas']['SendMessageRequest'] | null;
@@ -11050,6 +11271,175 @@ interface operations {
11050
11271
  };
11051
11272
  };
11052
11273
  };
11274
+ list_connectors: {
11275
+ parameters: {
11276
+ query?: never;
11277
+ header?: never;
11278
+ path?: never;
11279
+ cookie?: never;
11280
+ };
11281
+ requestBody?: never;
11282
+ responses: {
11283
+ /** @description Successful Response */
11284
+ 200: {
11285
+ headers: {
11286
+ [name: string]: unknown;
11287
+ };
11288
+ content: {
11289
+ 'application/json': components['schemas']['ConnectorCatalogRead'][];
11290
+ };
11291
+ };
11292
+ };
11293
+ };
11294
+ list_my_connectors: {
11295
+ parameters: {
11296
+ query?: never;
11297
+ header?: never;
11298
+ path?: never;
11299
+ cookie?: never;
11300
+ };
11301
+ requestBody?: never;
11302
+ responses: {
11303
+ /** @description Successful Response */
11304
+ 200: {
11305
+ headers: {
11306
+ [name: string]: unknown;
11307
+ };
11308
+ content: {
11309
+ 'application/json': components['schemas']['UserConnectorRead'][];
11310
+ };
11311
+ };
11312
+ };
11313
+ };
11314
+ get_connector_status: {
11315
+ parameters: {
11316
+ query?: never;
11317
+ header?: never;
11318
+ path: {
11319
+ vendor_key: string;
11320
+ };
11321
+ cookie?: never;
11322
+ };
11323
+ requestBody?: never;
11324
+ responses: {
11325
+ /** @description Successful Response */
11326
+ 200: {
11327
+ headers: {
11328
+ [name: string]: unknown;
11329
+ };
11330
+ content: {
11331
+ 'application/json': {
11332
+ [key: string]: unknown;
11333
+ };
11334
+ };
11335
+ };
11336
+ /** @description Validation Error */
11337
+ 422: {
11338
+ headers: {
11339
+ [name: string]: unknown;
11340
+ };
11341
+ content: {
11342
+ 'application/json': components['schemas']['HTTPValidationError'];
11343
+ };
11344
+ };
11345
+ };
11346
+ };
11347
+ authorize_connector: {
11348
+ parameters: {
11349
+ query?: never;
11350
+ header?: never;
11351
+ path: {
11352
+ vendor_key: string;
11353
+ };
11354
+ cookie?: never;
11355
+ };
11356
+ requestBody?: never;
11357
+ responses: {
11358
+ /** @description Successful Response */
11359
+ 200: {
11360
+ headers: {
11361
+ [name: string]: unknown;
11362
+ };
11363
+ content: {
11364
+ 'application/json': {
11365
+ [key: string]: unknown;
11366
+ };
11367
+ };
11368
+ };
11369
+ /** @description Validation Error */
11370
+ 422: {
11371
+ headers: {
11372
+ [name: string]: unknown;
11373
+ };
11374
+ content: {
11375
+ 'application/json': components['schemas']['HTTPValidationError'];
11376
+ };
11377
+ };
11378
+ };
11379
+ };
11380
+ oauth_callback: {
11381
+ parameters: {
11382
+ query: {
11383
+ code: string;
11384
+ state: string;
11385
+ };
11386
+ header?: never;
11387
+ path: {
11388
+ vendor_key: string;
11389
+ };
11390
+ cookie?: never;
11391
+ };
11392
+ requestBody?: never;
11393
+ responses: {
11394
+ /** @description Successful Response */
11395
+ 200: {
11396
+ headers: {
11397
+ [name: string]: unknown;
11398
+ };
11399
+ content: {
11400
+ 'application/json': unknown;
11401
+ };
11402
+ };
11403
+ /** @description Validation Error */
11404
+ 422: {
11405
+ headers: {
11406
+ [name: string]: unknown;
11407
+ };
11408
+ content: {
11409
+ 'application/json': components['schemas']['HTTPValidationError'];
11410
+ };
11411
+ };
11412
+ };
11413
+ };
11414
+ disconnect_connector: {
11415
+ parameters: {
11416
+ query?: never;
11417
+ header?: never;
11418
+ path: {
11419
+ vendor_key: string;
11420
+ };
11421
+ cookie?: never;
11422
+ };
11423
+ requestBody?: never;
11424
+ responses: {
11425
+ /** @description Successful Response */
11426
+ 204: {
11427
+ headers: {
11428
+ [name: string]: unknown;
11429
+ };
11430
+ content?: never;
11431
+ };
11432
+ /** @description Validation Error */
11433
+ 422: {
11434
+ headers: {
11435
+ [name: string]: unknown;
11436
+ };
11437
+ content: {
11438
+ 'application/json': components['schemas']['HTTPValidationError'];
11439
+ };
11440
+ };
11441
+ };
11442
+ };
11053
11443
  create_response: {
11054
11444
  parameters: {
11055
11445
  query?: never;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@arbidocs/client",
3
- "version": "0.3.71",
3
+ "version": "0.3.72",
4
4
  "description": "TypeScript SDK for the ARBI API — zero-knowledge auth, E2E encryption, and type-safe REST client",
5
5
  "type": "module",
6
6
  "main": "dist/index.cjs",