@arbidocs/sdk 0.3.130 → 0.3.132

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.
@@ -857,6 +857,7 @@ declare function listDocuments(arbi: ArbiClient): Promise<{
857
857
  updated_at: string;
858
858
  wp_type?: string | null | undefined;
859
859
  folder?: string | null | undefined;
860
+ sender?: string | null | undefined;
860
861
  doctags: {
861
862
  note?: string | null | undefined;
862
863
  citations?: {
@@ -955,6 +956,7 @@ declare function getDocuments(arbi: ArbiClient, externalIds: string[]): Promise<
955
956
  updated_at: string;
956
957
  wp_type?: string | null | undefined;
957
958
  folder?: string | null | undefined;
959
+ sender?: string | null | undefined;
958
960
  doctags: {
959
961
  note?: string | null | undefined;
960
962
  citations?: {
@@ -1007,6 +1009,7 @@ declare function updateDocuments(arbi: ArbiClient, documents: DocUpdateRequest$1
1007
1009
  updated_at: string;
1008
1010
  wp_type?: string | null | undefined;
1009
1011
  folder?: string | null | undefined;
1012
+ sender?: string | null | undefined;
1010
1013
  doctags: {
1011
1014
  note?: string | null | undefined;
1012
1015
  citations?: {
@@ -2439,6 +2442,7 @@ declare class Arbi {
2439
2442
  updated_at: string;
2440
2443
  wp_type?: string | null | undefined;
2441
2444
  folder?: string | null | undefined;
2445
+ sender?: string | null | undefined;
2442
2446
  doctags: {
2443
2447
  note?: string | null | undefined;
2444
2448
  citations?: {
@@ -2501,6 +2505,7 @@ declare class Arbi {
2501
2505
  updated_at: string;
2502
2506
  wp_type?: string | null;
2503
2507
  folder?: string | null;
2508
+ sender?: string | null;
2504
2509
  doctags: components["schemas"]["DocTagResponse"][];
2505
2510
  doc_metadata?: components["schemas"]["DocMetadata"] | null;
2506
2511
  }[], any, any>;
@@ -2536,6 +2541,7 @@ declare class Arbi {
2536
2541
  updated_at: string;
2537
2542
  wp_type?: string | null;
2538
2543
  folder?: string | null;
2544
+ sender?: string | null;
2539
2545
  doctags: components["schemas"]["DocTagResponse"][];
2540
2546
  doc_metadata?: components["schemas"]["DocMetadata"] | null;
2541
2547
  }[]>;
@@ -2564,6 +2570,7 @@ declare class Arbi {
2564
2570
  updated_at: string;
2565
2571
  wp_type?: string | null | undefined;
2566
2572
  folder?: string | null | undefined;
2573
+ sender?: string | null | undefined;
2567
2574
  doctags: {
2568
2575
  note?: string | null | undefined;
2569
2576
  citations?: {
@@ -2616,6 +2623,7 @@ declare class Arbi {
2616
2623
  updated_at: string;
2617
2624
  wp_type?: string | null | undefined;
2618
2625
  folder?: string | null | undefined;
2626
+ sender?: string | null | undefined;
2619
2627
  doctags: {
2620
2628
  note?: string | null | undefined;
2621
2629
  citations?: {
@@ -857,6 +857,7 @@ declare function listDocuments(arbi: ArbiClient): Promise<{
857
857
  updated_at: string;
858
858
  wp_type?: string | null | undefined;
859
859
  folder?: string | null | undefined;
860
+ sender?: string | null | undefined;
860
861
  doctags: {
861
862
  note?: string | null | undefined;
862
863
  citations?: {
@@ -955,6 +956,7 @@ declare function getDocuments(arbi: ArbiClient, externalIds: string[]): Promise<
955
956
  updated_at: string;
956
957
  wp_type?: string | null | undefined;
957
958
  folder?: string | null | undefined;
959
+ sender?: string | null | undefined;
958
960
  doctags: {
959
961
  note?: string | null | undefined;
960
962
  citations?: {
@@ -1007,6 +1009,7 @@ declare function updateDocuments(arbi: ArbiClient, documents: DocUpdateRequest$1
1007
1009
  updated_at: string;
1008
1010
  wp_type?: string | null | undefined;
1009
1011
  folder?: string | null | undefined;
1012
+ sender?: string | null | undefined;
1010
1013
  doctags: {
1011
1014
  note?: string | null | undefined;
1012
1015
  citations?: {
@@ -2439,6 +2442,7 @@ declare class Arbi {
2439
2442
  updated_at: string;
2440
2443
  wp_type?: string | null | undefined;
2441
2444
  folder?: string | null | undefined;
2445
+ sender?: string | null | undefined;
2442
2446
  doctags: {
2443
2447
  note?: string | null | undefined;
2444
2448
  citations?: {
@@ -2501,6 +2505,7 @@ declare class Arbi {
2501
2505
  updated_at: string;
2502
2506
  wp_type?: string | null;
2503
2507
  folder?: string | null;
2508
+ sender?: string | null;
2504
2509
  doctags: components["schemas"]["DocTagResponse"][];
2505
2510
  doc_metadata?: components["schemas"]["DocMetadata"] | null;
2506
2511
  }[], any, any>;
@@ -2536,6 +2541,7 @@ declare class Arbi {
2536
2541
  updated_at: string;
2537
2542
  wp_type?: string | null;
2538
2543
  folder?: string | null;
2544
+ sender?: string | null;
2539
2545
  doctags: components["schemas"]["DocTagResponse"][];
2540
2546
  doc_metadata?: components["schemas"]["DocMetadata"] | null;
2541
2547
  }[]>;
@@ -2564,6 +2570,7 @@ declare class Arbi {
2564
2570
  updated_at: string;
2565
2571
  wp_type?: string | null | undefined;
2566
2572
  folder?: string | null | undefined;
2573
+ sender?: string | null | undefined;
2567
2574
  doctags: {
2568
2575
  note?: string | null | undefined;
2569
2576
  citations?: {
@@ -2616,6 +2623,7 @@ declare class Arbi {
2616
2623
  updated_at: string;
2617
2624
  wp_type?: string | null | undefined;
2618
2625
  folder?: string | null | undefined;
2626
+ sender?: string | null | undefined;
2619
2627
  doctags: {
2620
2628
  note?: string | null | undefined;
2621
2629
  citations?: {
package/dist/browser.cjs CHANGED
@@ -3911,6 +3911,7 @@ async function streamSSE(response, callbacks = {}) {
3911
3911
  },
3912
3912
  "response.output_text.done": (raw) => {
3913
3913
  const data = JSON.parse(raw);
3914
+ text = data.text;
3914
3915
  callbacks.onTextDone?.(data.text);
3915
3916
  },
3916
3917
  "response.output_item.done": (raw) => {
@@ -3928,6 +3929,11 @@ async function streamSSE(response, callbacks = {}) {
3928
3929
  metadata = meta;
3929
3930
  callbacks.onMetadata?.(meta);
3930
3931
  }
3932
+ const finalText = data.response?.metadata?.content;
3933
+ if (finalText) {
3934
+ text = finalText;
3935
+ callbacks.onTextDone?.(finalText);
3936
+ }
3931
3937
  if (data.context) {
3932
3938
  context = data.context;
3933
3939
  }