@arbidocs/client 0.3.14 → 0.3.16

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
@@ -1360,10 +1360,8 @@ interface paths {
1360
1360
  * Get Response
1361
1361
  * @description Retrieve a response by ID.
1362
1362
  *
1363
- * Returns the current state with progressive event accumulation:
1364
- * - ``in_progress`` with accumulated events if the task is still active
1365
- * - ``completed`` with output and persisted events if in the database
1366
- * - 404 if not found
1363
+ * Reads status directly from the messages table. For in-progress responses,
1364
+ * also checks in-memory event accumulation for progressive polling.
1367
1365
  */
1368
1366
  get: operations['get_response'];
1369
1367
  put?: never;
@@ -3492,6 +3490,11 @@ interface components {
3492
3490
  * @default 0
3493
3491
  */
3494
3492
  tokens: number;
3493
+ /**
3494
+ * Status
3495
+ * @default completed
3496
+ */
3497
+ status: string;
3495
3498
  /** External Id */
3496
3499
  external_id: string;
3497
3500
  /**
@@ -3515,6 +3518,44 @@ interface components {
3515
3518
  /** Suggested Query */
3516
3519
  suggested_query?: string | null;
3517
3520
  };
3521
+ /**
3522
+ * MessageQueuedEvent
3523
+ * @description ``arbi.message_queued`` — immediate ack when query is received.
3524
+ *
3525
+ * For continuation queries (previous_response_id set), includes the full
3526
+ * ``user_message`` (UserMessageEvent with status="queued") so the frontend
3527
+ * can display it before the response gate opens.
3528
+ */
3529
+ MessageQueuedEvent: {
3530
+ /**
3531
+ * Type
3532
+ * @default arbi.message_queued
3533
+ * @constant
3534
+ */
3535
+ type: 'arbi.message_queued';
3536
+ /**
3537
+ * Response Id
3538
+ * @description Assistant message external ID for this response
3539
+ */
3540
+ response_id: string;
3541
+ /**
3542
+ * Input
3543
+ * @description User's query text
3544
+ */
3545
+ input: string;
3546
+ /**
3547
+ * Previous Response Id
3548
+ * @description Parent message ext_id (set for continuations)
3549
+ */
3550
+ previous_response_id?: string | null;
3551
+ /**
3552
+ * User Message Id
3553
+ * @description User message ext_id (present for continuations, saved before gate wait)
3554
+ */
3555
+ user_message_id?: string | null;
3556
+ /** @description Full UserMessageEvent with status='queued' (present for continuations) */
3557
+ user_message?: components['schemas']['UserMessageEvent'] | null;
3558
+ };
3518
3559
  /**
3519
3560
  * MessageRecipient
3520
3561
  * @description Single recipient for bulk message send.
@@ -3553,6 +3594,11 @@ interface components {
3553
3594
  * @default 0
3554
3595
  */
3555
3596
  tokens: number;
3597
+ /**
3598
+ * Status
3599
+ * @default completed
3600
+ */
3601
+ status: string;
3556
3602
  /** External Id */
3557
3603
  external_id: string;
3558
3604
  /**
@@ -4925,6 +4971,7 @@ interface components {
4925
4971
  * only used as nested types within the event models.
4926
4972
  */
4927
4973
  SSESchemas: {
4974
+ message_queued?: components['schemas']['MessageQueuedEvent'] | null;
4928
4975
  response_created?: components['schemas']['ResponseCreatedEvent'] | null;
4929
4976
  response_output_item_added?: components['schemas']['ResponseOutputItemAddedEvent'] | null;
4930
4977
  response_content_part_added?: components['schemas']['ResponseContentPartAddedEvent'] | null;
@@ -5733,6 +5780,11 @@ interface components {
5733
5780
  * @default 0
5734
5781
  */
5735
5782
  tokens: number;
5783
+ /**
5784
+ * Status
5785
+ * @default completed
5786
+ */
5787
+ status: string;
5736
5788
  /** External Id */
5737
5789
  external_id: string;
5738
5790
  /**
package/dist/index.d.ts CHANGED
@@ -1360,10 +1360,8 @@ interface paths {
1360
1360
  * Get Response
1361
1361
  * @description Retrieve a response by ID.
1362
1362
  *
1363
- * Returns the current state with progressive event accumulation:
1364
- * - ``in_progress`` with accumulated events if the task is still active
1365
- * - ``completed`` with output and persisted events if in the database
1366
- * - 404 if not found
1363
+ * Reads status directly from the messages table. For in-progress responses,
1364
+ * also checks in-memory event accumulation for progressive polling.
1367
1365
  */
1368
1366
  get: operations['get_response'];
1369
1367
  put?: never;
@@ -3492,6 +3490,11 @@ interface components {
3492
3490
  * @default 0
3493
3491
  */
3494
3492
  tokens: number;
3493
+ /**
3494
+ * Status
3495
+ * @default completed
3496
+ */
3497
+ status: string;
3495
3498
  /** External Id */
3496
3499
  external_id: string;
3497
3500
  /**
@@ -3515,6 +3518,44 @@ interface components {
3515
3518
  /** Suggested Query */
3516
3519
  suggested_query?: string | null;
3517
3520
  };
3521
+ /**
3522
+ * MessageQueuedEvent
3523
+ * @description ``arbi.message_queued`` — immediate ack when query is received.
3524
+ *
3525
+ * For continuation queries (previous_response_id set), includes the full
3526
+ * ``user_message`` (UserMessageEvent with status="queued") so the frontend
3527
+ * can display it before the response gate opens.
3528
+ */
3529
+ MessageQueuedEvent: {
3530
+ /**
3531
+ * Type
3532
+ * @default arbi.message_queued
3533
+ * @constant
3534
+ */
3535
+ type: 'arbi.message_queued';
3536
+ /**
3537
+ * Response Id
3538
+ * @description Assistant message external ID for this response
3539
+ */
3540
+ response_id: string;
3541
+ /**
3542
+ * Input
3543
+ * @description User's query text
3544
+ */
3545
+ input: string;
3546
+ /**
3547
+ * Previous Response Id
3548
+ * @description Parent message ext_id (set for continuations)
3549
+ */
3550
+ previous_response_id?: string | null;
3551
+ /**
3552
+ * User Message Id
3553
+ * @description User message ext_id (present for continuations, saved before gate wait)
3554
+ */
3555
+ user_message_id?: string | null;
3556
+ /** @description Full UserMessageEvent with status='queued' (present for continuations) */
3557
+ user_message?: components['schemas']['UserMessageEvent'] | null;
3558
+ };
3518
3559
  /**
3519
3560
  * MessageRecipient
3520
3561
  * @description Single recipient for bulk message send.
@@ -3553,6 +3594,11 @@ interface components {
3553
3594
  * @default 0
3554
3595
  */
3555
3596
  tokens: number;
3597
+ /**
3598
+ * Status
3599
+ * @default completed
3600
+ */
3601
+ status: string;
3556
3602
  /** External Id */
3557
3603
  external_id: string;
3558
3604
  /**
@@ -4925,6 +4971,7 @@ interface components {
4925
4971
  * only used as nested types within the event models.
4926
4972
  */
4927
4973
  SSESchemas: {
4974
+ message_queued?: components['schemas']['MessageQueuedEvent'] | null;
4928
4975
  response_created?: components['schemas']['ResponseCreatedEvent'] | null;
4929
4976
  response_output_item_added?: components['schemas']['ResponseOutputItemAddedEvent'] | null;
4930
4977
  response_content_part_added?: components['schemas']['ResponseContentPartAddedEvent'] | null;
@@ -5733,6 +5780,11 @@ interface components {
5733
5780
  * @default 0
5734
5781
  */
5735
5782
  tokens: number;
5783
+ /**
5784
+ * Status
5785
+ * @default completed
5786
+ */
5787
+ status: string;
5736
5788
  /** External Id */
5737
5789
  external_id: string;
5738
5790
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@arbidocs/client",
3
- "version": "0.3.14",
3
+ "version": "0.3.16",
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",