@botpress/cognitive 0.3.15 → 0.3.17

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.ts CHANGED
@@ -1606,6 +1606,9 @@ interface GetOrCreateConversationResponse {
1606
1606
  [k: string]: string;
1607
1607
  };
1608
1608
  };
1609
+ meta: {
1610
+ created: boolean;
1611
+ };
1609
1612
  }
1610
1613
 
1611
1614
  interface UpdateConversationRequestHeaders {
@@ -5538,6 +5541,26 @@ interface GetPublicPluginByIdResponse {
5538
5541
  };
5539
5542
  };
5540
5543
  };
5544
+ /**
5545
+ * Message object configuration
5546
+ */
5547
+ message: {
5548
+ tags: {
5549
+ /**
5550
+ * Definition of a tag that can be provided on the object
5551
+ */
5552
+ [k: string]: {
5553
+ /**
5554
+ * Title of the tag
5555
+ */
5556
+ title?: string;
5557
+ /**
5558
+ * Description of the tag
5559
+ */
5560
+ description?: string;
5561
+ };
5562
+ };
5563
+ };
5541
5564
  /**
5542
5565
  * Optional attributes
5543
5566
  */
@@ -5767,6 +5790,26 @@ interface GetDereferencedPublicPluginByIdResponse {
5767
5790
  };
5768
5791
  };
5769
5792
  };
5793
+ /**
5794
+ * Message object configuration
5795
+ */
5796
+ message: {
5797
+ tags: {
5798
+ /**
5799
+ * Definition of a tag that can be provided on the object
5800
+ */
5801
+ [k: string]: {
5802
+ /**
5803
+ * Title of the tag
5804
+ */
5805
+ title?: string;
5806
+ /**
5807
+ * Description of the tag
5808
+ */
5809
+ description?: string;
5810
+ };
5811
+ };
5812
+ };
5770
5813
  /**
5771
5814
  * Optional attributes
5772
5815
  */
@@ -5988,6 +6031,26 @@ interface GetPublicPluginResponse {
5988
6031
  };
5989
6032
  };
5990
6033
  };
6034
+ /**
6035
+ * Message object configuration
6036
+ */
6037
+ message: {
6038
+ tags: {
6039
+ /**
6040
+ * Definition of a tag that can be provided on the object
6041
+ */
6042
+ [k: string]: {
6043
+ /**
6044
+ * Title of the tag
6045
+ */
6046
+ title?: string;
6047
+ /**
6048
+ * Description of the tag
6049
+ */
6050
+ description?: string;
6051
+ };
6052
+ };
6053
+ };
5991
6054
  /**
5992
6055
  * Optional attributes
5993
6056
  */
@@ -13840,6 +13903,26 @@ interface CreatePluginRequestBody {
13840
13903
  };
13841
13904
  };
13842
13905
  };
13906
+ /**
13907
+ * Message object configuration
13908
+ */
13909
+ message?: {
13910
+ tags: {
13911
+ /**
13912
+ * Definition of a tag that can be provided on the object
13913
+ */
13914
+ [k: string]: {
13915
+ /**
13916
+ * Title of the tag
13917
+ */
13918
+ title?: string;
13919
+ /**
13920
+ * Description of the tag
13921
+ */
13922
+ description?: string;
13923
+ };
13924
+ };
13925
+ };
13843
13926
  /**
13844
13927
  * Optional attributes
13845
13928
  */
@@ -14096,6 +14179,26 @@ interface CreatePluginResponse {
14096
14179
  };
14097
14180
  };
14098
14181
  };
14182
+ /**
14183
+ * Message object configuration
14184
+ */
14185
+ message: {
14186
+ tags: {
14187
+ /**
14188
+ * Definition of a tag that can be provided on the object
14189
+ */
14190
+ [k: string]: {
14191
+ /**
14192
+ * Title of the tag
14193
+ */
14194
+ title?: string;
14195
+ /**
14196
+ * Description of the tag
14197
+ */
14198
+ description?: string;
14199
+ };
14200
+ };
14201
+ };
14099
14202
  /**
14100
14203
  * Optional attributes
14101
14204
  */
@@ -14316,6 +14419,26 @@ interface GetPluginResponse {
14316
14419
  };
14317
14420
  };
14318
14421
  };
14422
+ /**
14423
+ * Message object configuration
14424
+ */
14425
+ message: {
14426
+ tags: {
14427
+ /**
14428
+ * Definition of a tag that can be provided on the object
14429
+ */
14430
+ [k: string]: {
14431
+ /**
14432
+ * Title of the tag
14433
+ */
14434
+ title?: string;
14435
+ /**
14436
+ * Description of the tag
14437
+ */
14438
+ description?: string;
14439
+ };
14440
+ };
14441
+ };
14319
14442
  /**
14320
14443
  * Optional attributes
14321
14444
  */
@@ -14545,6 +14668,26 @@ interface GetDereferencedPluginResponse {
14545
14668
  };
14546
14669
  };
14547
14670
  };
14671
+ /**
14672
+ * Message object configuration
14673
+ */
14674
+ message: {
14675
+ tags: {
14676
+ /**
14677
+ * Definition of a tag that can be provided on the object
14678
+ */
14679
+ [k: string]: {
14680
+ /**
14681
+ * Title of the tag
14682
+ */
14683
+ title?: string;
14684
+ /**
14685
+ * Description of the tag
14686
+ */
14687
+ description?: string;
14688
+ };
14689
+ };
14690
+ };
14548
14691
  /**
14549
14692
  * Optional attributes
14550
14693
  */
@@ -14766,6 +14909,26 @@ interface GetPluginByNameResponse {
14766
14909
  };
14767
14910
  };
14768
14911
  };
14912
+ /**
14913
+ * Message object configuration
14914
+ */
14915
+ message: {
14916
+ tags: {
14917
+ /**
14918
+ * Definition of a tag that can be provided on the object
14919
+ */
14920
+ [k: string]: {
14921
+ /**
14922
+ * Title of the tag
14923
+ */
14924
+ title?: string;
14925
+ /**
14926
+ * Description of the tag
14927
+ */
14928
+ description?: string;
14929
+ };
14930
+ };
14931
+ };
14769
14932
  /**
14770
14933
  * Optional attributes
14771
14934
  */
@@ -14934,6 +15097,23 @@ interface UpdatePluginRequestBody {
14934
15097
  } | null;
14935
15098
  };
14936
15099
  };
15100
+ message?: {
15101
+ tags: {
15102
+ /**
15103
+ * Definition of a tag that can be provided on the object
15104
+ */
15105
+ [k: string]: {
15106
+ /**
15107
+ * Title of the tag
15108
+ */
15109
+ title?: string;
15110
+ /**
15111
+ * Description of the tag
15112
+ */
15113
+ description?: string;
15114
+ } | null;
15115
+ };
15116
+ };
14937
15117
  /**
14938
15118
  * Optional attributes. Set attributes to null to remove them
14939
15119
  */
@@ -15190,6 +15370,26 @@ interface UpdatePluginResponse {
15190
15370
  };
15191
15371
  };
15192
15372
  };
15373
+ /**
15374
+ * Message object configuration
15375
+ */
15376
+ message: {
15377
+ tags: {
15378
+ /**
15379
+ * Definition of a tag that can be provided on the object
15380
+ */
15381
+ [k: string]: {
15382
+ /**
15383
+ * Title of the tag
15384
+ */
15385
+ title?: string;
15386
+ /**
15387
+ * Description of the tag
15388
+ */
15389
+ description?: string;
15390
+ };
15391
+ };
15392
+ };
15193
15393
  /**
15194
15394
  * Optional attributes
15195
15395
  */
@@ -17488,9 +17688,13 @@ interface DuplicateTableResponse {
17488
17688
  updatedAt?: string;
17489
17689
  };
17490
17690
  /**
17491
- * The total number of rows present in the table.
17691
+ * The total number of rows present in the source table.
17492
17692
  */
17493
17693
  rows: number;
17694
+ job?: {
17695
+ id: string;
17696
+ status: string;
17697
+ };
17494
17698
  }
17495
17699
 
17496
17700
  interface ExportTableRequestHeaders {
@@ -17510,7 +17714,7 @@ interface ExportTableResponse {
17510
17714
  id: string;
17511
17715
  botId: string;
17512
17716
  tableId: string;
17513
- type: "export" | "import" | "clear_column" | "clear_vectors";
17717
+ type: "export" | "import" | "clear_column" | "clear_vectors" | "delete_rows" | "duplicate_table";
17514
17718
  status: "pending" | "in_progress" | "finalizing" | "completed" | "failed";
17515
17719
  progress?: number;
17516
17720
  inputFileId: string | null;
@@ -17535,7 +17739,7 @@ interface GetTableJobsResponse {
17535
17739
  id: string;
17536
17740
  botId: string;
17537
17741
  tableId: string;
17538
- type: "export" | "import" | "clear_column" | "clear_vectors";
17742
+ type: "export" | "import" | "clear_column" | "clear_vectors" | "delete_rows" | "duplicate_table";
17539
17743
  status: "pending" | "in_progress" | "finalizing" | "completed" | "failed";
17540
17744
  progress?: number;
17541
17745
  inputFileId: string | null;
@@ -17564,7 +17768,7 @@ interface ImportTableResponse {
17564
17768
  id: string;
17565
17769
  botId: string;
17566
17770
  tableId: string;
17567
- type: "export" | "import" | "clear_column" | "clear_vectors";
17771
+ type: "export" | "import" | "clear_column" | "clear_vectors" | "delete_rows" | "duplicate_table";
17568
17772
  status: "pending" | "in_progress" | "finalizing" | "completed" | "failed";
17569
17773
  progress?: number;
17570
17774
  inputFileId: string | null;
@@ -18140,7 +18344,7 @@ interface DeleteTableRowsRequestBody {
18140
18344
  */
18141
18345
  ids?: number[];
18142
18346
  /**
18143
- * Filter to apply when deleting rows. Example: \{ "name": \{ "$eq": "John" \} \}
18347
+ * Filter to apply when deleting rows. Deletion with a filter is performed asynchronously in batches and returns a job object to track progress. Example: \{ "createdAt": \{ "$lt": "2026-01-01" \} \}
18144
18348
  */
18145
18349
  filter?: {
18146
18350
  [k: string]: any;
@@ -18153,6 +18357,10 @@ interface DeleteTableRowsRequestBody {
18153
18357
  type DeleteTableRowsInput = DeleteTableRowsRequestBody & DeleteTableRowsRequestHeaders & DeleteTableRowsRequestQuery & DeleteTableRowsRequestParams;
18154
18358
  interface DeleteTableRowsResponse {
18155
18359
  deletedRows: number;
18360
+ job?: {
18361
+ id: string;
18362
+ status: string;
18363
+ };
18156
18364
  }
18157
18365
 
18158
18366
  interface UpdateTableRowsRequestHeaders {
@@ -19476,7 +19684,7 @@ declare class Cognitive {
19476
19684
  private _generateContent;
19477
19685
  }
19478
19686
 
19479
- type Models = 'auto' | 'best' | 'fast' | 'anthropic:claude-3-5-haiku-20241022' | 'anthropic:claude-3-7-sonnet-20250219' | 'anthropic:claude-3-haiku-20240307' | 'anthropic:claude-haiku-4-5-20251001' | 'anthropic:claude-haiku-4-5-reasoning-20251001' | 'anthropic:claude-sonnet-4-20250514' | 'anthropic:claude-sonnet-4-5-20250929' | 'cerebras:gpt-oss-120b' | 'cerebras:llama-4-scout-17b-16e-instruct' | 'cerebras:llama3.1-8b' | 'cerebras:llama3.3-70b' | 'cerebras:qwen-3-32b' | 'fireworks-ai:deepseek-r1-0528' | 'fireworks-ai:deepseek-v3-0324' | 'fireworks-ai:gpt-oss-120b' | 'fireworks-ai:gpt-oss-20b' | 'fireworks-ai:llama-v3p1-8b-instruct' | 'fireworks-ai:llama-v3p3-70b-instruct' | 'fireworks-ai:llama4-maverick-instruct-basic' | 'fireworks-ai:llama4-scout-instruct-basic' | 'google-ai:gemini-2.0-flash' | 'google-ai:gemini-2.5-flash' | 'google-ai:gemini-2.5-pro' | 'groq:gpt-oss-120b' | 'groq:gpt-oss-20b' | 'groq:llama-3.1-8b-instant' | 'groq:llama-3.3-70b-versatile' | 'openai:gpt-4.1-2025-04-14' | 'openai:gpt-4.1-mini-2025-04-14' | 'openai:gpt-4.1-nano-2025-04-14' | 'openai:gpt-4o-2024-11-20' | 'openai:gpt-4o-mini-2024-07-18' | 'openai:gpt-5-2025-08-07' | 'openai:gpt-5-mini-2025-08-07' | 'openai:gpt-5-nano-2025-08-07' | 'openai:gpt-5.1-2025-11-13' | 'openai:gpt-5.2-2025-12-11' | 'openai:o1-2024-12-17' | 'openai:o1-mini-2024-09-12' | 'openai:o3-2025-04-16' | 'openai:o3-mini-2025-01-31' | 'openai:o4-mini-2025-04-16' | 'openrouter:gpt-oss-120b' | 'xai:grok-3' | 'xai:grok-3-mini' | 'xai:grok-4-0709' | 'xai:grok-4-fast-non-reasoning' | 'xai:grok-4-fast-reasoning' | 'xai:grok-code-fast-1' | 'openai:gpt-5' | 'openai:gpt-5-mini' | 'openai:gpt-5-nano' | 'openai:o4-mini' | 'openai:o3' | 'openai:gpt-4.1' | 'openai:gpt-4.1-mini' | 'openai:gpt-4.1-nano' | 'openai:o3-mini' | 'openai:o1-mini' | 'openai:gpt-4o-mini' | 'openai:gpt-4o' | 'anthropic:claude-sonnet-4-5' | 'anthropic:claude-sonnet-4' | 'anthropic:claude-sonnet-4-reasoning' | 'anthropic:claude-haiku-4-5' | 'anthropic:claude-haiku-4-5-reasoning' | 'google-ai:models/gemini-2.0-flash' | 'groq:openai/gpt-oss-20b' | 'groq:openai/gpt-oss-120b' | 'fireworks-ai:accounts/fireworks/models/gpt-oss-20b' | 'fireworks-ai:accounts/fireworks/models/gpt-oss-120b' | 'fireworks-ai:accounts/fireworks/models/deepseek-r1-0528' | 'fireworks-ai:accounts/fireworks/models/deepseek-v3-0324' | 'fireworks-ai:accounts/fireworks/models/llama4-maverick-instruct-basic' | 'fireworks-ai:accounts/fireworks/models/llama4-scout-instruct-basic' | 'fireworks-ai:accounts/fireworks/models/llama-v3p3-70b-instruct' | 'fireworks-ai:accounts/fireworks/models/deepseek-r1' | 'fireworks-ai:accounts/fireworks/models/deepseek-r1-basic' | 'fireworks-ai:accounts/fireworks/models/deepseek-v3' | 'fireworks-ai:accounts/fireworks/models/llama-v3p1-405b-instruct' | 'fireworks-ai:accounts/fireworks/models/llama-v3p1-70b-instruct' | 'fireworks-ai:accounts/fireworks/models/llama-v3p1-8b-instruct' | 'fireworks-ai:accounts/fireworks/models/mixtral-8x22b-instruct' | 'fireworks-ai:accounts/fireworks/models/mixtral-8x7b-instruct' | 'fireworks-ai:accounts/fireworks/models/mythomax-l2-13b' | 'fireworks-ai:accounts/fireworks/models/gemma2-9b-it' | ({} & string);
19687
+ type Models = 'auto' | 'best' | 'fast' | 'anthropic:claude-haiku-4-5-20251001' | 'anthropic:claude-haiku-4-5-reasoning-20251001' | 'anthropic:claude-opus-4-6' | 'anthropic:claude-sonnet-4-20250514' | 'anthropic:claude-sonnet-4-5-20250929' | 'anthropic:claude-sonnet-4-6' | 'cerebras:gpt-oss-120b' | 'cerebras:llama-4-scout-17b-16e-instruct' | 'cerebras:llama3.1-8b' | 'cerebras:llama3.3-70b' | 'cerebras:qwen-3-32b' | 'fireworks-ai:deepseek-r1-0528' | 'fireworks-ai:deepseek-v3-0324' | 'fireworks-ai:gpt-oss-120b' | 'fireworks-ai:gpt-oss-20b' | 'fireworks-ai:llama-v3p1-8b-instruct' | 'fireworks-ai:llama-v3p3-70b-instruct' | 'fireworks-ai:llama4-maverick-instruct-basic' | 'fireworks-ai:llama4-scout-instruct-basic' | 'google-ai:gemini-2.0-flash' | 'google-ai:gemini-2.5-flash' | 'google-ai:gemini-2.5-pro' | 'google-ai:gemini-3-flash' | 'google-ai:gemini-3-pro' | 'groq:gpt-oss-120b' | 'groq:gpt-oss-20b' | 'groq:llama-3.1-8b-instant' | 'groq:llama-3.3-70b-versatile' | 'openai:gpt-4.1-2025-04-14' | 'openai:gpt-4.1-mini-2025-04-14' | 'openai:gpt-4.1-nano-2025-04-14' | 'openai:gpt-4o-2024-11-20' | 'openai:gpt-4o-mini-2024-07-18' | 'openai:gpt-5-2025-08-07' | 'openai:gpt-5-mini-2025-08-07' | 'openai:gpt-5-nano-2025-08-07' | 'openai:gpt-5.1-2025-11-13' | 'openai:gpt-5.2-2025-12-11' | 'openai:gpt-5.4-2026-03-05' | 'openai:o1-2024-12-17' | 'openai:o1-mini-2024-09-12' | 'openai:o3-2025-04-16' | 'openai:o3-mini-2025-01-31' | 'openai:o4-mini-2025-04-16' | 'openrouter:gpt-oss-120b' | 'xai:grok-3' | 'xai:grok-3-mini' | 'xai:grok-4-0709' | 'xai:grok-4-fast-non-reasoning' | 'xai:grok-4-fast-reasoning' | 'xai:grok-code-fast-1' | 'openai:gpt-5.4' | 'openai:gpt-5' | 'openai:gpt-5-mini' | 'openai:gpt-5-nano' | 'openai:o4-mini' | 'openai:o3' | 'openai:gpt-4.1' | 'openai:gpt-4.1-mini' | 'openai:gpt-4.1-nano' | 'openai:o3-mini' | 'openai:o1-mini' | 'openai:gpt-4o-mini' | 'openai:gpt-4o' | 'anthropic:claude-sonnet-4-5' | 'anthropic:claude-sonnet-4' | 'anthropic:claude-sonnet-4-reasoning' | 'anthropic:claude-haiku-4-5' | 'anthropic:claude-haiku-4-5-reasoning' | 'google-ai:gemini-3.1-pro-preview' | 'google-ai:gemini-3-flash-preview' | 'google-ai:models/gemini-2.0-flash' | 'groq:openai/gpt-oss-20b' | 'groq:openai/gpt-oss-120b' | 'fireworks-ai:accounts/fireworks/models/gpt-oss-20b' | 'fireworks-ai:accounts/fireworks/models/gpt-oss-120b' | 'fireworks-ai:accounts/fireworks/models/deepseek-r1-0528' | 'fireworks-ai:accounts/fireworks/models/deepseek-v3-0324' | 'fireworks-ai:accounts/fireworks/models/llama4-maverick-instruct-basic' | 'fireworks-ai:accounts/fireworks/models/llama4-scout-instruct-basic' | 'fireworks-ai:accounts/fireworks/models/llama-v3p3-70b-instruct' | 'fireworks-ai:accounts/fireworks/models/deepseek-r1' | 'fireworks-ai:accounts/fireworks/models/deepseek-r1-basic' | 'fireworks-ai:accounts/fireworks/models/deepseek-v3' | 'fireworks-ai:accounts/fireworks/models/llama-v3p1-405b-instruct' | 'fireworks-ai:accounts/fireworks/models/llama-v3p1-70b-instruct' | 'fireworks-ai:accounts/fireworks/models/llama-v3p1-8b-instruct' | 'fireworks-ai:accounts/fireworks/models/mixtral-8x22b-instruct' | 'fireworks-ai:accounts/fireworks/models/mixtral-8x7b-instruct' | 'fireworks-ai:accounts/fireworks/models/mythomax-l2-13b' | 'fireworks-ai:accounts/fireworks/models/gemma2-9b-it' | ({} & string);
19480
19688
  type CognitiveRequest = {
19481
19689
  /**
19482
19690
  * @minItems 1