@botpress/cognitive 0.3.4 → 0.3.6
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/.turbo/turbo-build.log +7 -7
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +2 -2
- package/dist/index.d.ts +333 -22
- package/dist/index.mjs +1 -1
- package/dist/index.mjs.map +2 -2
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -2464,6 +2464,303 @@ type DeleteMessageInput = DeleteMessageRequestBody & DeleteMessageRequestHeaders
|
|
|
2464
2464
|
interface DeleteMessageResponse {
|
|
2465
2465
|
}
|
|
2466
2466
|
|
|
2467
|
+
interface InitializeIncomingMessageRequestHeaders {
|
|
2468
|
+
}
|
|
2469
|
+
interface InitializeIncomingMessageRequestQuery {
|
|
2470
|
+
}
|
|
2471
|
+
interface InitializeIncomingMessageRequestParams {
|
|
2472
|
+
}
|
|
2473
|
+
interface InitializeIncomingMessageRequestBody {
|
|
2474
|
+
userId?: string;
|
|
2475
|
+
user?: {
|
|
2476
|
+
/**
|
|
2477
|
+
* Tags for the [User](#schema_user)
|
|
2478
|
+
*/
|
|
2479
|
+
tags: {
|
|
2480
|
+
[k: string]: string;
|
|
2481
|
+
};
|
|
2482
|
+
/**
|
|
2483
|
+
* @deprecated
|
|
2484
|
+
* [DEPRECATED] To create a [User](#schema_user) from within a bot, call an action of the integration instead.
|
|
2485
|
+
*/
|
|
2486
|
+
integrationName?: string;
|
|
2487
|
+
/**
|
|
2488
|
+
* Name of the user
|
|
2489
|
+
*/
|
|
2490
|
+
name?: string;
|
|
2491
|
+
/**
|
|
2492
|
+
* URI of the user picture
|
|
2493
|
+
*/
|
|
2494
|
+
pictureUrl?: string;
|
|
2495
|
+
/**
|
|
2496
|
+
* Optional list of tag names to use for strict matching when looking up existing messages. If provided, all specified tags must match exactly for a message to be considered a match. For example, with an existing message whose tags are {"foo": "a", "bar": "b", baz: "c"}: Without this parameter, ALL tags must match exactly. With ["bar","baz"], all listed tags must match their values, and other tags are not considered.
|
|
2497
|
+
*/
|
|
2498
|
+
discriminateByTags: string[];
|
|
2499
|
+
};
|
|
2500
|
+
conversationId?: string;
|
|
2501
|
+
conversation?: {
|
|
2502
|
+
/**
|
|
2503
|
+
* Channel name
|
|
2504
|
+
*/
|
|
2505
|
+
channel: string;
|
|
2506
|
+
/**
|
|
2507
|
+
* Tags for the [Conversation](#schema_conversation)
|
|
2508
|
+
*/
|
|
2509
|
+
tags: {
|
|
2510
|
+
[k: string]: string;
|
|
2511
|
+
};
|
|
2512
|
+
/**
|
|
2513
|
+
* @deprecated
|
|
2514
|
+
* [DEPRECATED] To create a conversation from within a bot, call an action of the integration instead.
|
|
2515
|
+
*/
|
|
2516
|
+
integrationName?: string;
|
|
2517
|
+
/**
|
|
2518
|
+
* Optional list of tag names to use for strict matching when looking up existing messages. If provided, all specified tags must match exactly for a message to be considered a match. For example, with an existing message whose tags are {"foo": "a", "bar": "b", baz: "c"}: Without this parameter, ALL tags must match exactly. With ["bar","baz"], all listed tags must match their values, and other tags are not considered.
|
|
2519
|
+
*/
|
|
2520
|
+
discriminateByTags: string[];
|
|
2521
|
+
};
|
|
2522
|
+
message?: {
|
|
2523
|
+
/**
|
|
2524
|
+
* Payload is the content type of the message. Accepted payload options: Text, Image, Choice, Dropdown, Card, Carousel, File, Audio, Video, Location
|
|
2525
|
+
*/
|
|
2526
|
+
payload: {
|
|
2527
|
+
[k: string]: any;
|
|
2528
|
+
};
|
|
2529
|
+
/**
|
|
2530
|
+
* Type of the [Message](#schema_message) represents the resource type that the message is related to
|
|
2531
|
+
*/
|
|
2532
|
+
type: string;
|
|
2533
|
+
/**
|
|
2534
|
+
* Set of [Tags](/docs/developers/concepts/tags) that you can attach to a [Message](#schema_message). The set of [Tags](/docs/developers/concepts/tags) available on a [Message](#schema_message) is restricted by the list of [Tags](/docs/developers/concepts/tags) defined previously by the [Bot](#schema_bot). Individual keys can be unset by posting an empty value to them.
|
|
2535
|
+
*/
|
|
2536
|
+
tags: {
|
|
2537
|
+
[k: string]: string;
|
|
2538
|
+
};
|
|
2539
|
+
origin?: "synthetic";
|
|
2540
|
+
/**
|
|
2541
|
+
* Optional list of tag names to use for strict matching when looking up existing messages. If provided, all specified tags must match exactly for a message to be considered a match. For example, with an existing message whose tags are {"foo": "a", "bar": "b", baz: "c"}: Without this parameter, ALL tags must match exactly. With ["bar","baz"], all listed tags must match their values, and other tags are not considered.
|
|
2542
|
+
*/
|
|
2543
|
+
discriminateByTags: string[];
|
|
2544
|
+
};
|
|
2545
|
+
}
|
|
2546
|
+
type InitializeIncomingMessageInput = InitializeIncomingMessageRequestBody & InitializeIncomingMessageRequestHeaders & InitializeIncomingMessageRequestQuery & InitializeIncomingMessageRequestParams;
|
|
2547
|
+
interface InitializeIncomingMessageResponse {
|
|
2548
|
+
/**
|
|
2549
|
+
* The user object represents someone interacting with the bot within a specific integration. The same person interacting with a bot in slack and messenger will be represented with two different users.
|
|
2550
|
+
*/
|
|
2551
|
+
user: {
|
|
2552
|
+
/**
|
|
2553
|
+
* Id of the [User](#schema_user)
|
|
2554
|
+
*/
|
|
2555
|
+
id: string;
|
|
2556
|
+
/**
|
|
2557
|
+
* Creation date of the [User](#schema_user) in ISO 8601 format
|
|
2558
|
+
*/
|
|
2559
|
+
createdAt: string;
|
|
2560
|
+
/**
|
|
2561
|
+
* Updating date of the [User](#schema_user) in ISO 8601 format
|
|
2562
|
+
*/
|
|
2563
|
+
updatedAt: string;
|
|
2564
|
+
/**
|
|
2565
|
+
* Set of [Tags](/docs/developers/concepts/tags) that you can attach to a [User](#schema_user). The set of [Tags](/docs/developers/concepts/tags) available on a [User](#schema_user) is restricted by the list of [Tags](/docs/developers/concepts/tags) defined previously by the [Bot](#schema_bot). Individual keys can be unset by posting an empty value to them.
|
|
2566
|
+
*/
|
|
2567
|
+
tags: {
|
|
2568
|
+
[k: string]: string;
|
|
2569
|
+
};
|
|
2570
|
+
/**
|
|
2571
|
+
* Name of the [User](#schema_user)
|
|
2572
|
+
*/
|
|
2573
|
+
name?: string;
|
|
2574
|
+
/**
|
|
2575
|
+
* Picture URL of the [User](#schema_user)
|
|
2576
|
+
*/
|
|
2577
|
+
pictureUrl?: string;
|
|
2578
|
+
};
|
|
2579
|
+
/**
|
|
2580
|
+
* The [Conversation](#schema_conversation) object represents an exchange of messages between one or more users. A [Conversation](#schema_conversation) is always linked to an integration's channels. For example, a Slack channel represents a conversation.
|
|
2581
|
+
*/
|
|
2582
|
+
conversation: {
|
|
2583
|
+
/**
|
|
2584
|
+
* Id of the [Conversation](#schema_conversation)
|
|
2585
|
+
*/
|
|
2586
|
+
id: string;
|
|
2587
|
+
/**
|
|
2588
|
+
* Id of the current [Task](#schema_task)
|
|
2589
|
+
*/
|
|
2590
|
+
currentTaskId?: string;
|
|
2591
|
+
/**
|
|
2592
|
+
* Id of the current [Workflow](#schema_workflow)
|
|
2593
|
+
*/
|
|
2594
|
+
currentWorkflowId?: string;
|
|
2595
|
+
/**
|
|
2596
|
+
* Creation date of the [Conversation](#schema_conversation) in ISO 8601 format
|
|
2597
|
+
*/
|
|
2598
|
+
createdAt: string;
|
|
2599
|
+
/**
|
|
2600
|
+
* Updating date of the [Conversation](#schema_conversation) in ISO 8601 format
|
|
2601
|
+
*/
|
|
2602
|
+
updatedAt: string;
|
|
2603
|
+
/**
|
|
2604
|
+
* Name of the channel where the [Conversation](#schema_conversation) is happening
|
|
2605
|
+
*/
|
|
2606
|
+
channel: string;
|
|
2607
|
+
/**
|
|
2608
|
+
* Name of the integration that created the [Conversation](#schema_conversation)
|
|
2609
|
+
*/
|
|
2610
|
+
integration: string;
|
|
2611
|
+
/**
|
|
2612
|
+
* Set of [Tags](/docs/developers/concepts/tags) that you can attach to a [Conversation](#schema_conversation). The set of [Tags](/docs/developers/concepts/tags) available on a [Conversation](#schema_conversation) is restricted by the list of [Tags](/docs/developers/concepts/tags) defined previously by the [Bot](#schema_bot). Individual keys can be unset by posting an empty value to them.
|
|
2613
|
+
*/
|
|
2614
|
+
tags: {
|
|
2615
|
+
[k: string]: string;
|
|
2616
|
+
};
|
|
2617
|
+
};
|
|
2618
|
+
/**
|
|
2619
|
+
* The Message object represents a message in a [Conversation](#schema_conversation) for a specific [User](#schema_user).
|
|
2620
|
+
*/
|
|
2621
|
+
message?: {
|
|
2622
|
+
/**
|
|
2623
|
+
* Id of the [Message](#schema_message)
|
|
2624
|
+
*/
|
|
2625
|
+
id: string;
|
|
2626
|
+
/**
|
|
2627
|
+
* Creation date of the [Message](#schema_message) in ISO 8601 format
|
|
2628
|
+
*/
|
|
2629
|
+
createdAt: string;
|
|
2630
|
+
/**
|
|
2631
|
+
* Update date of the [Message](#schema_message) in ISO 8601 format
|
|
2632
|
+
*/
|
|
2633
|
+
updatedAt: string;
|
|
2634
|
+
/**
|
|
2635
|
+
* Type of the [Message](#schema_message) represents the resource type that the message is related to
|
|
2636
|
+
*/
|
|
2637
|
+
type: string;
|
|
2638
|
+
/**
|
|
2639
|
+
* Payload is the content type of the message. Accepted payload options: Text, Image, Choice, Dropdown, Card, Carousel, File, Audio, Video, Location
|
|
2640
|
+
*/
|
|
2641
|
+
payload: {
|
|
2642
|
+
[k: string]: any;
|
|
2643
|
+
};
|
|
2644
|
+
/**
|
|
2645
|
+
* Direction of the message (`incoming` or `outgoing`).
|
|
2646
|
+
*/
|
|
2647
|
+
direction: "incoming" | "outgoing";
|
|
2648
|
+
/**
|
|
2649
|
+
* ID of the [User](#schema_user)
|
|
2650
|
+
*/
|
|
2651
|
+
userId: string;
|
|
2652
|
+
/**
|
|
2653
|
+
* ID of the [Conversation](#schema_conversation)
|
|
2654
|
+
*/
|
|
2655
|
+
conversationId: string;
|
|
2656
|
+
/**
|
|
2657
|
+
* Set of [Tags](/docs/developers/concepts/tags) that you can attach to a [Conversation](#schema_conversation). The set of [Tags](/docs/developers/concepts/tags) available on a [Conversation](#schema_conversation) is restricted by the list of [Tags](/docs/developers/concepts/tags) defined previously by the [Bot](#schema_bot). Individual keys can be unset by posting an empty value to them.
|
|
2658
|
+
*/
|
|
2659
|
+
tags: {
|
|
2660
|
+
[k: string]: string;
|
|
2661
|
+
};
|
|
2662
|
+
/**
|
|
2663
|
+
* Origin of the message (`synthetic`).
|
|
2664
|
+
*/
|
|
2665
|
+
origin?: "synthetic";
|
|
2666
|
+
};
|
|
2667
|
+
}
|
|
2668
|
+
|
|
2669
|
+
interface ImportMessagesRequestHeaders {
|
|
2670
|
+
}
|
|
2671
|
+
interface ImportMessagesRequestQuery {
|
|
2672
|
+
}
|
|
2673
|
+
interface ImportMessagesRequestParams {
|
|
2674
|
+
}
|
|
2675
|
+
interface ImportMessagesRequestBody {
|
|
2676
|
+
/**
|
|
2677
|
+
* @maxItems 100
|
|
2678
|
+
*/
|
|
2679
|
+
messages: {
|
|
2680
|
+
/**
|
|
2681
|
+
* Payload is the content type of the message. Accepted payload options: Text, Image, Choice, Dropdown, Card, Carousel, File, Audio, Video, Location
|
|
2682
|
+
*/
|
|
2683
|
+
payload: {
|
|
2684
|
+
[k: string]: any;
|
|
2685
|
+
};
|
|
2686
|
+
/**
|
|
2687
|
+
* ID of the [User](#schema_user)
|
|
2688
|
+
*/
|
|
2689
|
+
userId: string;
|
|
2690
|
+
/**
|
|
2691
|
+
* ID of the [Conversation](#schema_conversation)
|
|
2692
|
+
*/
|
|
2693
|
+
conversationId: string;
|
|
2694
|
+
/**
|
|
2695
|
+
* Type of the [Message](#schema_message) represents the resource type that the message is related to
|
|
2696
|
+
*/
|
|
2697
|
+
type: string;
|
|
2698
|
+
/**
|
|
2699
|
+
* Set of [Tags](/docs/developers/concepts/tags) that you can attach to a [Message](#schema_message). The set of [Tags](/docs/developers/concepts/tags) available on a [Message](#schema_message) is restricted by the list of [Tags](/docs/developers/concepts/tags) defined previously by the [Bot](#schema_bot). Individual keys can be unset by posting an empty value to them.
|
|
2700
|
+
*/
|
|
2701
|
+
tags: {
|
|
2702
|
+
[k: string]: string;
|
|
2703
|
+
};
|
|
2704
|
+
/**
|
|
2705
|
+
* Creation date of the [Message](#schema_message) in ISO 8601 format
|
|
2706
|
+
*/
|
|
2707
|
+
createdAt: string;
|
|
2708
|
+
/**
|
|
2709
|
+
* Optional list of tag names to use for strict matching when looking up existing messages. If provided, all specified tags must match exactly for a message to be considered a match. For example, with an existing message whose tags are {"foo": "a", "bar": "b", baz: "c"}: Without this parameter, ALL tags must match exactly. With ["bar","baz"], all listed tags must match their values, and other tags are not considered.
|
|
2710
|
+
*/
|
|
2711
|
+
discriminateByTags: string[];
|
|
2712
|
+
}[];
|
|
2713
|
+
}
|
|
2714
|
+
type ImportMessagesInput = ImportMessagesRequestBody & ImportMessagesRequestHeaders & ImportMessagesRequestQuery & ImportMessagesRequestParams;
|
|
2715
|
+
interface ImportMessagesResponse {
|
|
2716
|
+
messages: {
|
|
2717
|
+
/**
|
|
2718
|
+
* Id of the [Message](#schema_message)
|
|
2719
|
+
*/
|
|
2720
|
+
id: string;
|
|
2721
|
+
/**
|
|
2722
|
+
* Creation date of the [Message](#schema_message) in ISO 8601 format
|
|
2723
|
+
*/
|
|
2724
|
+
createdAt: string;
|
|
2725
|
+
/**
|
|
2726
|
+
* Update date of the [Message](#schema_message) in ISO 8601 format
|
|
2727
|
+
*/
|
|
2728
|
+
updatedAt: string;
|
|
2729
|
+
/**
|
|
2730
|
+
* Type of the [Message](#schema_message) represents the resource type that the message is related to
|
|
2731
|
+
*/
|
|
2732
|
+
type: string;
|
|
2733
|
+
/**
|
|
2734
|
+
* Payload is the content type of the message. Accepted payload options: Text, Image, Choice, Dropdown, Card, Carousel, File, Audio, Video, Location
|
|
2735
|
+
*/
|
|
2736
|
+
payload: {
|
|
2737
|
+
[k: string]: any;
|
|
2738
|
+
};
|
|
2739
|
+
/**
|
|
2740
|
+
* Direction of the message (`incoming` or `outgoing`).
|
|
2741
|
+
*/
|
|
2742
|
+
direction: "incoming" | "outgoing";
|
|
2743
|
+
/**
|
|
2744
|
+
* ID of the [User](#schema_user)
|
|
2745
|
+
*/
|
|
2746
|
+
userId: string;
|
|
2747
|
+
/**
|
|
2748
|
+
* ID of the [Conversation](#schema_conversation)
|
|
2749
|
+
*/
|
|
2750
|
+
conversationId: string;
|
|
2751
|
+
/**
|
|
2752
|
+
* Set of [Tags](/docs/developers/concepts/tags) that you can attach to a [Conversation](#schema_conversation). The set of [Tags](/docs/developers/concepts/tags) available on a [Conversation](#schema_conversation) is restricted by the list of [Tags](/docs/developers/concepts/tags) defined previously by the [Bot](#schema_bot). Individual keys can be unset by posting an empty value to them.
|
|
2753
|
+
*/
|
|
2754
|
+
tags: {
|
|
2755
|
+
[k: string]: string;
|
|
2756
|
+
};
|
|
2757
|
+
/**
|
|
2758
|
+
* Origin of the message (`synthetic`).
|
|
2759
|
+
*/
|
|
2760
|
+
origin?: "synthetic";
|
|
2761
|
+
}[];
|
|
2762
|
+
}
|
|
2763
|
+
|
|
2467
2764
|
interface CreateUserRequestHeaders {
|
|
2468
2765
|
}
|
|
2469
2766
|
interface CreateUserRequestQuery {
|
|
@@ -2578,6 +2875,11 @@ interface ListUsersRequestQuery {
|
|
|
2578
2875
|
tags?: {
|
|
2579
2876
|
[k: string]: string;
|
|
2580
2877
|
};
|
|
2878
|
+
afterDate?: string;
|
|
2879
|
+
beforeDate?: string;
|
|
2880
|
+
rangeField?: "updatedAt" | "createdAt";
|
|
2881
|
+
sortField?: "updatedAt" | "createdAt";
|
|
2882
|
+
sortDirection?: "asc" | "desc";
|
|
2581
2883
|
}
|
|
2582
2884
|
interface ListUsersRequestParams {
|
|
2583
2885
|
}
|
|
@@ -6988,7 +7290,7 @@ interface CreateBotResponse {
|
|
|
6988
7290
|
/**
|
|
6989
7291
|
* Status of the bot
|
|
6990
7292
|
*/
|
|
6991
|
-
status: "active" | "deploying";
|
|
7293
|
+
status: "active" | "deploying" | "deleting";
|
|
6992
7294
|
/**
|
|
6993
7295
|
* Media files associated with the [Bot](#schema_bot)
|
|
6994
7296
|
*/
|
|
@@ -7668,7 +7970,7 @@ interface UpdateBotResponse {
|
|
|
7668
7970
|
/**
|
|
7669
7971
|
* Status of the bot
|
|
7670
7972
|
*/
|
|
7671
|
-
status: "active" | "deploying";
|
|
7973
|
+
status: "active" | "deploying" | "deleting";
|
|
7672
7974
|
/**
|
|
7673
7975
|
* Media files associated with the [Bot](#schema_bot)
|
|
7674
7976
|
*/
|
|
@@ -8159,7 +8461,7 @@ interface GetBotResponse {
|
|
|
8159
8461
|
/**
|
|
8160
8462
|
* Status of the bot
|
|
8161
8463
|
*/
|
|
8162
|
-
status: "active" | "deploying";
|
|
8464
|
+
status: "active" | "deploying" | "deleting";
|
|
8163
8465
|
/**
|
|
8164
8466
|
* Media files associated with the [Bot](#schema_bot)
|
|
8165
8467
|
*/
|
|
@@ -8939,7 +9241,7 @@ interface GetWorkspaceResponse {
|
|
|
8939
9241
|
interface ListWorkspaceUsagesRequestHeaders {
|
|
8940
9242
|
}
|
|
8941
9243
|
interface ListWorkspaceUsagesRequestQuery {
|
|
8942
|
-
type: "invocation_timeout" | "invocation_calls" | "storage_count" | "bot_count" | "knowledgebase_vector_storage" | "workspace_ratelimit" | "table_row_count" | "workspace_member_count" | "integrations_owned_count" | "ai_spend" | "openai_spend" | "bing_search_spend" | "always_alive" | "indexed_file_count";
|
|
9244
|
+
type: "invocation_timeout" | "invocation_calls" | "storage_count" | "bot_count" | "knowledgebase_vector_storage" | "workspace_ratelimit" | "table_row_count" | "workspace_member_count" | "integrations_owned_count" | "ai_spend" | "openai_spend" | "bing_search_spend" | "always_alive" | "indexed_file_count" | "file_max_size_bytes";
|
|
8943
9245
|
period?: string;
|
|
8944
9246
|
}
|
|
8945
9247
|
interface ListWorkspaceUsagesRequestParams {
|
|
@@ -8969,14 +9271,14 @@ interface ListWorkspaceUsagesResponse {
|
|
|
8969
9271
|
/**
|
|
8970
9272
|
* Usage type that can be used
|
|
8971
9273
|
*/
|
|
8972
|
-
type: "invocation_timeout" | "invocation_calls" | "storage_count" | "bot_count" | "knowledgebase_vector_storage" | "workspace_ratelimit" | "table_row_count" | "workspace_member_count" | "integrations_owned_count" | "ai_spend" | "openai_spend" | "bing_search_spend" | "always_alive" | "indexed_file_count";
|
|
9274
|
+
type: "invocation_timeout" | "invocation_calls" | "storage_count" | "bot_count" | "knowledgebase_vector_storage" | "workspace_ratelimit" | "table_row_count" | "workspace_member_count" | "integrations_owned_count" | "ai_spend" | "openai_spend" | "bing_search_spend" | "always_alive" | "indexed_file_count" | "file_max_size_bytes";
|
|
8973
9275
|
}[];
|
|
8974
9276
|
}
|
|
8975
9277
|
|
|
8976
9278
|
interface BreakDownWorkspaceUsageByBotRequestHeaders {
|
|
8977
9279
|
}
|
|
8978
9280
|
interface BreakDownWorkspaceUsageByBotRequestQuery {
|
|
8979
|
-
type: "invocation_timeout" | "invocation_calls" | "storage_count" | "bot_count" | "knowledgebase_vector_storage" | "workspace_ratelimit" | "table_row_count" | "workspace_member_count" | "integrations_owned_count" | "ai_spend" | "openai_spend" | "bing_search_spend" | "always_alive" | "indexed_file_count";
|
|
9281
|
+
type: "invocation_timeout" | "invocation_calls" | "storage_count" | "bot_count" | "knowledgebase_vector_storage" | "workspace_ratelimit" | "table_row_count" | "workspace_member_count" | "integrations_owned_count" | "ai_spend" | "openai_spend" | "bing_search_spend" | "always_alive" | "indexed_file_count" | "file_max_size_bytes";
|
|
8980
9282
|
period?: string;
|
|
8981
9283
|
}
|
|
8982
9284
|
interface BreakDownWorkspaceUsageByBotRequestParams {
|
|
@@ -9003,7 +9305,7 @@ interface GetAllWorkspaceQuotaCompletionRequestBody {
|
|
|
9003
9305
|
type GetAllWorkspaceQuotaCompletionInput = GetAllWorkspaceQuotaCompletionRequestBody & GetAllWorkspaceQuotaCompletionRequestHeaders & GetAllWorkspaceQuotaCompletionRequestQuery & GetAllWorkspaceQuotaCompletionRequestParams;
|
|
9004
9306
|
interface GetAllWorkspaceQuotaCompletionResponse {
|
|
9005
9307
|
[k: string]: {
|
|
9006
|
-
type: "invocation_timeout" | "invocation_calls" | "storage_count" | "bot_count" | "knowledgebase_vector_storage" | "workspace_ratelimit" | "table_row_count" | "workspace_member_count" | "integrations_owned_count" | "ai_spend" | "openai_spend" | "bing_search_spend" | "always_alive" | "indexed_file_count";
|
|
9308
|
+
type: "invocation_timeout" | "invocation_calls" | "storage_count" | "bot_count" | "knowledgebase_vector_storage" | "workspace_ratelimit" | "table_row_count" | "workspace_member_count" | "integrations_owned_count" | "ai_spend" | "openai_spend" | "bing_search_spend" | "always_alive" | "indexed_file_count" | "file_max_size_bytes";
|
|
9007
9309
|
completion: number;
|
|
9008
9310
|
};
|
|
9009
9311
|
}
|
|
@@ -9011,7 +9313,7 @@ interface GetAllWorkspaceQuotaCompletionResponse {
|
|
|
9011
9313
|
interface GetWorkspaceQuotaRequestHeaders {
|
|
9012
9314
|
}
|
|
9013
9315
|
interface GetWorkspaceQuotaRequestQuery {
|
|
9014
|
-
type: "invocation_timeout" | "invocation_calls" | "storage_count" | "bot_count" | "knowledgebase_vector_storage" | "workspace_ratelimit" | "table_row_count" | "workspace_member_count" | "integrations_owned_count" | "ai_spend" | "openai_spend" | "bing_search_spend" | "always_alive" | "indexed_file_count";
|
|
9316
|
+
type: "invocation_timeout" | "invocation_calls" | "storage_count" | "bot_count" | "knowledgebase_vector_storage" | "workspace_ratelimit" | "table_row_count" | "workspace_member_count" | "integrations_owned_count" | "ai_spend" | "openai_spend" | "bing_search_spend" | "always_alive" | "indexed_file_count" | "file_max_size_bytes";
|
|
9015
9317
|
period?: string;
|
|
9016
9318
|
}
|
|
9017
9319
|
interface GetWorkspaceQuotaRequestParams {
|
|
@@ -9033,7 +9335,7 @@ interface GetWorkspaceQuotaResponse {
|
|
|
9033
9335
|
/**
|
|
9034
9336
|
* Usage type that can be used
|
|
9035
9337
|
*/
|
|
9036
|
-
type: "invocation_timeout" | "invocation_calls" | "storage_count" | "bot_count" | "knowledgebase_vector_storage" | "workspace_ratelimit" | "table_row_count" | "workspace_member_count" | "integrations_owned_count" | "ai_spend" | "openai_spend" | "bing_search_spend" | "always_alive" | "indexed_file_count";
|
|
9338
|
+
type: "invocation_timeout" | "invocation_calls" | "storage_count" | "bot_count" | "knowledgebase_vector_storage" | "workspace_ratelimit" | "table_row_count" | "workspace_member_count" | "integrations_owned_count" | "ai_spend" | "openai_spend" | "bing_search_spend" | "always_alive" | "indexed_file_count" | "file_max_size_bytes";
|
|
9037
9339
|
};
|
|
9038
9340
|
}
|
|
9039
9341
|
|
|
@@ -9061,7 +9363,7 @@ interface ListWorkspaceQuotasResponse {
|
|
|
9061
9363
|
/**
|
|
9062
9364
|
* Usage type that can be used
|
|
9063
9365
|
*/
|
|
9064
|
-
type: "invocation_timeout" | "invocation_calls" | "storage_count" | "bot_count" | "knowledgebase_vector_storage" | "workspace_ratelimit" | "table_row_count" | "workspace_member_count" | "integrations_owned_count" | "ai_spend" | "openai_spend" | "bing_search_spend" | "always_alive" | "indexed_file_count";
|
|
9366
|
+
type: "invocation_timeout" | "invocation_calls" | "storage_count" | "bot_count" | "knowledgebase_vector_storage" | "workspace_ratelimit" | "table_row_count" | "workspace_member_count" | "integrations_owned_count" | "ai_spend" | "openai_spend" | "bing_search_spend" | "always_alive" | "indexed_file_count" | "file_max_size_bytes";
|
|
9065
9367
|
}[];
|
|
9066
9368
|
}
|
|
9067
9369
|
|
|
@@ -15205,7 +15507,7 @@ interface GetPluginCodeResponse {
|
|
|
15205
15507
|
interface GetUsageRequestHeaders {
|
|
15206
15508
|
}
|
|
15207
15509
|
interface GetUsageRequestQuery {
|
|
15208
|
-
type: "invocation_timeout" | "invocation_calls" | "storage_count" | "bot_count" | "knowledgebase_vector_storage" | "workspace_ratelimit" | "table_row_count" | "workspace_member_count" | "integrations_owned_count" | "ai_spend" | "openai_spend" | "bing_search_spend" | "always_alive" | "indexed_file_count";
|
|
15510
|
+
type: "invocation_timeout" | "invocation_calls" | "storage_count" | "bot_count" | "knowledgebase_vector_storage" | "workspace_ratelimit" | "table_row_count" | "workspace_member_count" | "integrations_owned_count" | "ai_spend" | "openai_spend" | "bing_search_spend" | "always_alive" | "indexed_file_count" | "file_max_size_bytes";
|
|
15209
15511
|
period?: string;
|
|
15210
15512
|
}
|
|
15211
15513
|
interface GetUsageRequestParams {
|
|
@@ -15235,7 +15537,7 @@ interface GetUsageResponse {
|
|
|
15235
15537
|
/**
|
|
15236
15538
|
* Usage type that can be used
|
|
15237
15539
|
*/
|
|
15238
|
-
type: "invocation_timeout" | "invocation_calls" | "storage_count" | "bot_count" | "knowledgebase_vector_storage" | "workspace_ratelimit" | "table_row_count" | "workspace_member_count" | "integrations_owned_count" | "ai_spend" | "openai_spend" | "bing_search_spend" | "always_alive" | "indexed_file_count";
|
|
15540
|
+
type: "invocation_timeout" | "invocation_calls" | "storage_count" | "bot_count" | "knowledgebase_vector_storage" | "workspace_ratelimit" | "table_row_count" | "workspace_member_count" | "integrations_owned_count" | "ai_spend" | "openai_spend" | "bing_search_spend" | "always_alive" | "indexed_file_count" | "file_max_size_bytes";
|
|
15239
15541
|
};
|
|
15240
15542
|
}
|
|
15241
15543
|
|
|
@@ -15272,14 +15574,14 @@ interface GetMultipleUsagesResponse {
|
|
|
15272
15574
|
/**
|
|
15273
15575
|
* Usage type that can be used
|
|
15274
15576
|
*/
|
|
15275
|
-
type: "invocation_timeout" | "invocation_calls" | "storage_count" | "bot_count" | "knowledgebase_vector_storage" | "workspace_ratelimit" | "table_row_count" | "workspace_member_count" | "integrations_owned_count" | "ai_spend" | "openai_spend" | "bing_search_spend" | "always_alive" | "indexed_file_count";
|
|
15577
|
+
type: "invocation_timeout" | "invocation_calls" | "storage_count" | "bot_count" | "knowledgebase_vector_storage" | "workspace_ratelimit" | "table_row_count" | "workspace_member_count" | "integrations_owned_count" | "ai_spend" | "openai_spend" | "bing_search_spend" | "always_alive" | "indexed_file_count" | "file_max_size_bytes";
|
|
15276
15578
|
}[];
|
|
15277
15579
|
}
|
|
15278
15580
|
|
|
15279
15581
|
interface ListUsageHistoryRequestHeaders {
|
|
15280
15582
|
}
|
|
15281
15583
|
interface ListUsageHistoryRequestQuery {
|
|
15282
|
-
type: "invocation_timeout" | "invocation_calls" | "storage_count" | "bot_count" | "knowledgebase_vector_storage" | "workspace_ratelimit" | "table_row_count" | "workspace_member_count" | "integrations_owned_count" | "ai_spend" | "openai_spend" | "bing_search_spend" | "always_alive" | "indexed_file_count";
|
|
15584
|
+
type: "invocation_timeout" | "invocation_calls" | "storage_count" | "bot_count" | "knowledgebase_vector_storage" | "workspace_ratelimit" | "table_row_count" | "workspace_member_count" | "integrations_owned_count" | "ai_spend" | "openai_spend" | "bing_search_spend" | "always_alive" | "indexed_file_count" | "file_max_size_bytes";
|
|
15283
15585
|
}
|
|
15284
15586
|
interface ListUsageHistoryRequestParams {
|
|
15285
15587
|
id: string;
|
|
@@ -15308,14 +15610,14 @@ interface ListUsageHistoryResponse {
|
|
|
15308
15610
|
/**
|
|
15309
15611
|
* Usage type that can be used
|
|
15310
15612
|
*/
|
|
15311
|
-
type: "invocation_timeout" | "invocation_calls" | "storage_count" | "bot_count" | "knowledgebase_vector_storage" | "workspace_ratelimit" | "table_row_count" | "workspace_member_count" | "integrations_owned_count" | "ai_spend" | "openai_spend" | "bing_search_spend" | "always_alive" | "indexed_file_count";
|
|
15613
|
+
type: "invocation_timeout" | "invocation_calls" | "storage_count" | "bot_count" | "knowledgebase_vector_storage" | "workspace_ratelimit" | "table_row_count" | "workspace_member_count" | "integrations_owned_count" | "ai_spend" | "openai_spend" | "bing_search_spend" | "always_alive" | "indexed_file_count" | "file_max_size_bytes";
|
|
15312
15614
|
}[];
|
|
15313
15615
|
}
|
|
15314
15616
|
|
|
15315
15617
|
interface ListUsageActivityRequestHeaders {
|
|
15316
15618
|
}
|
|
15317
15619
|
interface ListUsageActivityRequestQuery {
|
|
15318
|
-
type: "invocation_timeout" | "invocation_calls" | "storage_count" | "bot_count" | "knowledgebase_vector_storage" | "workspace_ratelimit" | "table_row_count" | "workspace_member_count" | "integrations_owned_count" | "ai_spend" | "openai_spend" | "bing_search_spend" | "always_alive" | "indexed_file_count";
|
|
15620
|
+
type: "invocation_timeout" | "invocation_calls" | "storage_count" | "bot_count" | "knowledgebase_vector_storage" | "workspace_ratelimit" | "table_row_count" | "workspace_member_count" | "integrations_owned_count" | "ai_spend" | "openai_spend" | "bing_search_spend" | "always_alive" | "indexed_file_count" | "file_max_size_bytes";
|
|
15319
15621
|
timestampFrom?: string;
|
|
15320
15622
|
timestampUntil?: string;
|
|
15321
15623
|
nextToken?: string;
|
|
@@ -15343,7 +15645,7 @@ interface ListUsageActivityResponse {
|
|
|
15343
15645
|
interface ListUsageActivityDailyRequestHeaders {
|
|
15344
15646
|
}
|
|
15345
15647
|
interface ListUsageActivityDailyRequestQuery {
|
|
15346
|
-
type: "invocation_timeout" | "invocation_calls" | "storage_count" | "bot_count" | "knowledgebase_vector_storage" | "workspace_ratelimit" | "table_row_count" | "workspace_member_count" | "integrations_owned_count" | "ai_spend" | "openai_spend" | "bing_search_spend" | "always_alive" | "indexed_file_count";
|
|
15648
|
+
type: "invocation_timeout" | "invocation_calls" | "storage_count" | "bot_count" | "knowledgebase_vector_storage" | "workspace_ratelimit" | "table_row_count" | "workspace_member_count" | "integrations_owned_count" | "ai_spend" | "openai_spend" | "bing_search_spend" | "always_alive" | "indexed_file_count" | "file_max_size_bytes";
|
|
15347
15649
|
dateFrom?: string;
|
|
15348
15650
|
dateUntil?: string;
|
|
15349
15651
|
nextToken?: string;
|
|
@@ -15717,6 +16019,7 @@ interface ListFilesRequestQuery {
|
|
|
15717
16019
|
* @maxItems 50
|
|
15718
16020
|
*/
|
|
15719
16021
|
ids?: string[];
|
|
16022
|
+
indexed?: boolean;
|
|
15720
16023
|
}
|
|
15721
16024
|
interface ListFilesRequestParams {
|
|
15722
16025
|
}
|
|
@@ -17383,7 +17686,7 @@ interface ExportTableResponse {
|
|
|
17383
17686
|
id: string;
|
|
17384
17687
|
botId: string;
|
|
17385
17688
|
tableId: string;
|
|
17386
|
-
type: "export" | "import";
|
|
17689
|
+
type: "export" | "import" | "clear_column" | "clear_vectors";
|
|
17387
17690
|
status: "pending" | "in_progress" | "finalizing" | "completed" | "failed";
|
|
17388
17691
|
progress?: number;
|
|
17389
17692
|
inputFileId: string | null;
|
|
@@ -17408,7 +17711,7 @@ interface GetTableJobsResponse {
|
|
|
17408
17711
|
id: string;
|
|
17409
17712
|
botId: string;
|
|
17410
17713
|
tableId: string;
|
|
17411
|
-
type: "export" | "import";
|
|
17714
|
+
type: "export" | "import" | "clear_column" | "clear_vectors";
|
|
17412
17715
|
status: "pending" | "in_progress" | "finalizing" | "completed" | "failed";
|
|
17413
17716
|
progress?: number;
|
|
17414
17717
|
inputFileId: string | null;
|
|
@@ -17437,7 +17740,7 @@ interface ImportTableResponse {
|
|
|
17437
17740
|
id: string;
|
|
17438
17741
|
botId: string;
|
|
17439
17742
|
tableId: string;
|
|
17440
|
-
type: "export" | "import";
|
|
17743
|
+
type: "export" | "import" | "clear_column" | "clear_vectors";
|
|
17441
17744
|
status: "pending" | "in_progress" | "finalizing" | "completed" | "failed";
|
|
17442
17745
|
progress?: number;
|
|
17443
17746
|
inputFileId: string | null;
|
|
@@ -18221,6 +18524,8 @@ declare class Client$1 {
|
|
|
18221
18524
|
readonly updateMessage: (input: UpdateMessageInput) => Promise<UpdateMessageResponse>;
|
|
18222
18525
|
readonly listMessages: (input: ListMessagesInput) => Promise<ListMessagesResponse>;
|
|
18223
18526
|
readonly deleteMessage: (input: DeleteMessageInput) => Promise<DeleteMessageResponse>;
|
|
18527
|
+
readonly initializeIncomingMessage: (input: InitializeIncomingMessageInput) => Promise<InitializeIncomingMessageResponse>;
|
|
18528
|
+
readonly importMessages: (input: ImportMessagesInput) => Promise<ImportMessagesResponse>;
|
|
18224
18529
|
readonly createUser: (input: CreateUserInput) => Promise<CreateUserResponse>;
|
|
18225
18530
|
readonly getUser: (input: GetUserInput) => Promise<GetUserResponse>;
|
|
18226
18531
|
readonly listUsers: (input: ListUsersInput) => Promise<ListUsersResponse>;
|
|
@@ -18486,7 +18791,12 @@ declare class Client extends Client$1 implements IClient {
|
|
|
18486
18791
|
tags?: {
|
|
18487
18792
|
[x: string]: string;
|
|
18488
18793
|
} | undefined;
|
|
18794
|
+
sortField?: "updatedAt" | "createdAt" | undefined;
|
|
18795
|
+
sortDirection?: "asc" | "desc" | undefined;
|
|
18796
|
+
afterDate?: string | undefined;
|
|
18797
|
+
beforeDate?: string | undefined;
|
|
18489
18798
|
conversationId?: string | undefined;
|
|
18799
|
+
rangeField?: "updatedAt" | "createdAt" | undefined;
|
|
18490
18800
|
}) => AsyncCollection<{
|
|
18491
18801
|
id: string;
|
|
18492
18802
|
createdAt: string;
|
|
@@ -18732,6 +19042,7 @@ declare class Client extends Client$1 implements IClient {
|
|
|
18732
19042
|
sortField?: "key" | "size" | "createdAt" | "updatedAt" | "status" | undefined;
|
|
18733
19043
|
sortDirection?: "asc" | "desc" | undefined;
|
|
18734
19044
|
ids?: string[] | undefined;
|
|
19045
|
+
indexed?: boolean | undefined;
|
|
18735
19046
|
}) => AsyncCollection<{
|
|
18736
19047
|
id: string;
|
|
18737
19048
|
botId: string;
|
|
@@ -18789,7 +19100,7 @@ declare class Client extends Client$1 implements IClient {
|
|
|
18789
19100
|
};
|
|
18790
19101
|
}>;
|
|
18791
19102
|
usageActivity: (props: {
|
|
18792
|
-
type: "invocation_timeout" | "invocation_calls" | "storage_count" | "bot_count" | "knowledgebase_vector_storage" | "workspace_ratelimit" | "table_row_count" | "workspace_member_count" | "integrations_owned_count" | "ai_spend" | "openai_spend" | "bing_search_spend" | "always_alive" | "indexed_file_count";
|
|
19103
|
+
type: "invocation_timeout" | "invocation_calls" | "storage_count" | "bot_count" | "knowledgebase_vector_storage" | "workspace_ratelimit" | "table_row_count" | "workspace_member_count" | "integrations_owned_count" | "ai_spend" | "openai_spend" | "bing_search_spend" | "always_alive" | "indexed_file_count" | "file_max_size_bytes";
|
|
18793
19104
|
id: string;
|
|
18794
19105
|
timestampFrom?: string | undefined;
|
|
18795
19106
|
timestampUntil?: string | undefined;
|
|
@@ -18802,7 +19113,7 @@ declare class Client extends Client$1 implements IClient {
|
|
|
18802
19113
|
};
|
|
18803
19114
|
}>;
|
|
18804
19115
|
usageActivityDaily: (props: {
|
|
18805
|
-
type: "invocation_timeout" | "invocation_calls" | "storage_count" | "bot_count" | "knowledgebase_vector_storage" | "workspace_ratelimit" | "table_row_count" | "workspace_member_count" | "integrations_owned_count" | "ai_spend" | "openai_spend" | "bing_search_spend" | "always_alive" | "indexed_file_count";
|
|
19116
|
+
type: "invocation_timeout" | "invocation_calls" | "storage_count" | "bot_count" | "knowledgebase_vector_storage" | "workspace_ratelimit" | "table_row_count" | "workspace_member_count" | "integrations_owned_count" | "ai_spend" | "openai_spend" | "bing_search_spend" | "always_alive" | "indexed_file_count" | "file_max_size_bytes";
|
|
18806
19117
|
id: string;
|
|
18807
19118
|
dateFrom?: string | undefined;
|
|
18808
19119
|
dateUntil?: string | undefined;
|
package/dist/index.mjs
CHANGED
|
@@ -2389,7 +2389,7 @@ var Cognitive = class _Cognitive {
|
|
|
2389
2389
|
return def;
|
|
2390
2390
|
}
|
|
2391
2391
|
async generateContent(input) {
|
|
2392
|
-
if (!this._useBeta || !getCognitiveV2Model(input.model)) {
|
|
2392
|
+
if (!this._useBeta || !input.model || !getCognitiveV2Model(input.model)) {
|
|
2393
2393
|
return this._generateContent(input);
|
|
2394
2394
|
}
|
|
2395
2395
|
if (input.systemPrompt) {
|