@soat/sdk 0.4.3 → 0.4.5
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/esm/index.js +155 -84
- package/dist/index.d.cts +250 -186
- package/dist/index.d.ts +250 -186
- package/dist/index.js +156 -83
- package/package.json +3 -1
package/dist/index.d.cts
CHANGED
|
@@ -1419,10 +1419,10 @@ type DeleteActorData = {
|
|
|
1419
1419
|
/**
|
|
1420
1420
|
* Actor ID
|
|
1421
1421
|
*/
|
|
1422
|
-
|
|
1422
|
+
actor_id: string;
|
|
1423
1423
|
};
|
|
1424
1424
|
query?: never;
|
|
1425
|
-
url: '/actors/{
|
|
1425
|
+
url: '/actors/{actor_id}';
|
|
1426
1426
|
};
|
|
1427
1427
|
type DeleteActorErrors = {
|
|
1428
1428
|
/**
|
|
@@ -1452,10 +1452,10 @@ type GetActorData = {
|
|
|
1452
1452
|
/**
|
|
1453
1453
|
* Actor ID
|
|
1454
1454
|
*/
|
|
1455
|
-
|
|
1455
|
+
actor_id: string;
|
|
1456
1456
|
};
|
|
1457
1457
|
query?: never;
|
|
1458
|
-
url: '/actors/{
|
|
1458
|
+
url: '/actors/{actor_id}';
|
|
1459
1459
|
};
|
|
1460
1460
|
type GetActorErrors = {
|
|
1461
1461
|
/**
|
|
@@ -1498,10 +1498,10 @@ type UpdateActorData = {
|
|
|
1498
1498
|
/**
|
|
1499
1499
|
* Actor ID
|
|
1500
1500
|
*/
|
|
1501
|
-
|
|
1501
|
+
actor_id: string;
|
|
1502
1502
|
};
|
|
1503
1503
|
query?: never;
|
|
1504
|
-
url: '/actors/{
|
|
1504
|
+
url: '/actors/{actor_id}';
|
|
1505
1505
|
};
|
|
1506
1506
|
type UpdateActorErrors = {
|
|
1507
1507
|
/**
|
|
@@ -1531,10 +1531,10 @@ type GetActorTagsData = {
|
|
|
1531
1531
|
/**
|
|
1532
1532
|
* Actor ID
|
|
1533
1533
|
*/
|
|
1534
|
-
|
|
1534
|
+
actor_id: string;
|
|
1535
1535
|
};
|
|
1536
1536
|
query?: never;
|
|
1537
|
-
url: '/actors/{
|
|
1537
|
+
url: '/actors/{actor_id}/tags';
|
|
1538
1538
|
};
|
|
1539
1539
|
type GetActorTagsErrors = {
|
|
1540
1540
|
/**
|
|
@@ -1568,10 +1568,10 @@ type MergeActorTagsData = {
|
|
|
1568
1568
|
/**
|
|
1569
1569
|
* Actor ID
|
|
1570
1570
|
*/
|
|
1571
|
-
|
|
1571
|
+
actor_id: string;
|
|
1572
1572
|
};
|
|
1573
1573
|
query?: never;
|
|
1574
|
-
url: '/actors/{
|
|
1574
|
+
url: '/actors/{actor_id}/tags';
|
|
1575
1575
|
};
|
|
1576
1576
|
type MergeActorTagsErrors = {
|
|
1577
1577
|
/**
|
|
@@ -1605,10 +1605,10 @@ type ReplaceActorTagsData = {
|
|
|
1605
1605
|
/**
|
|
1606
1606
|
* Actor ID
|
|
1607
1607
|
*/
|
|
1608
|
-
|
|
1608
|
+
actor_id: string;
|
|
1609
1609
|
};
|
|
1610
1610
|
query?: never;
|
|
1611
|
-
url: '/actors/{
|
|
1611
|
+
url: '/actors/{actor_id}/tags';
|
|
1612
1612
|
};
|
|
1613
1613
|
type ReplaceActorTagsErrors = {
|
|
1614
1614
|
/**
|
|
@@ -1694,10 +1694,10 @@ type CreateAgentToolResponse = CreateAgentToolResponses[keyof CreateAgentToolRes
|
|
|
1694
1694
|
type DeleteAgentToolData = {
|
|
1695
1695
|
body?: never;
|
|
1696
1696
|
path: {
|
|
1697
|
-
|
|
1697
|
+
tool_id: string;
|
|
1698
1698
|
};
|
|
1699
1699
|
query?: never;
|
|
1700
|
-
url: '/agents/tools/{
|
|
1700
|
+
url: '/agents/tools/{tool_id}';
|
|
1701
1701
|
};
|
|
1702
1702
|
type DeleteAgentToolErrors = {
|
|
1703
1703
|
/**
|
|
@@ -1724,10 +1724,10 @@ type DeleteAgentToolResponse = DeleteAgentToolResponses[keyof DeleteAgentToolRes
|
|
|
1724
1724
|
type GetAgentToolData = {
|
|
1725
1725
|
body?: never;
|
|
1726
1726
|
path: {
|
|
1727
|
-
|
|
1727
|
+
tool_id: string;
|
|
1728
1728
|
};
|
|
1729
1729
|
query?: never;
|
|
1730
|
-
url: '/agents/tools/{
|
|
1730
|
+
url: '/agents/tools/{tool_id}';
|
|
1731
1731
|
};
|
|
1732
1732
|
type GetAgentToolErrors = {
|
|
1733
1733
|
/**
|
|
@@ -1754,10 +1754,10 @@ type GetAgentToolResponse = GetAgentToolResponses[keyof GetAgentToolResponses];
|
|
|
1754
1754
|
type UpdateAgentToolData = {
|
|
1755
1755
|
body: UpdateAgentToolRequest;
|
|
1756
1756
|
path: {
|
|
1757
|
-
|
|
1757
|
+
tool_id: string;
|
|
1758
1758
|
};
|
|
1759
1759
|
query?: never;
|
|
1760
|
-
url: '/agents/tools/{
|
|
1760
|
+
url: '/agents/tools/{tool_id}';
|
|
1761
1761
|
};
|
|
1762
1762
|
type UpdateAgentToolErrors = {
|
|
1763
1763
|
/**
|
|
@@ -1826,10 +1826,10 @@ type ListAgentTracesResponse = ListAgentTracesResponses[keyof ListAgentTracesRes
|
|
|
1826
1826
|
type GetAgentTraceData = {
|
|
1827
1827
|
body?: never;
|
|
1828
1828
|
path: {
|
|
1829
|
-
|
|
1829
|
+
trace_id: string;
|
|
1830
1830
|
};
|
|
1831
1831
|
query?: never;
|
|
1832
|
-
url: '/agents/traces/{
|
|
1832
|
+
url: '/agents/traces/{trace_id}';
|
|
1833
1833
|
};
|
|
1834
1834
|
type GetAgentTraceErrors = {
|
|
1835
1835
|
/**
|
|
@@ -1917,10 +1917,10 @@ type CreateAgentResponse = CreateAgentResponses[keyof CreateAgentResponses];
|
|
|
1917
1917
|
type DeleteAgentData = {
|
|
1918
1918
|
body?: never;
|
|
1919
1919
|
path: {
|
|
1920
|
-
|
|
1920
|
+
agent_id: string;
|
|
1921
1921
|
};
|
|
1922
1922
|
query?: never;
|
|
1923
|
-
url: '/agents/{
|
|
1923
|
+
url: '/agents/{agent_id}';
|
|
1924
1924
|
};
|
|
1925
1925
|
type DeleteAgentErrors = {
|
|
1926
1926
|
/**
|
|
@@ -1947,10 +1947,10 @@ type DeleteAgentResponse = DeleteAgentResponses[keyof DeleteAgentResponses];
|
|
|
1947
1947
|
type GetAgentData = {
|
|
1948
1948
|
body?: never;
|
|
1949
1949
|
path: {
|
|
1950
|
-
|
|
1950
|
+
agent_id: string;
|
|
1951
1951
|
};
|
|
1952
1952
|
query?: never;
|
|
1953
|
-
url: '/agents/{
|
|
1953
|
+
url: '/agents/{agent_id}';
|
|
1954
1954
|
};
|
|
1955
1955
|
type GetAgentErrors = {
|
|
1956
1956
|
/**
|
|
@@ -1977,10 +1977,10 @@ type GetAgentResponse = GetAgentResponses[keyof GetAgentResponses];
|
|
|
1977
1977
|
type UpdateAgentData = {
|
|
1978
1978
|
body: UpdateAgentRequest;
|
|
1979
1979
|
path: {
|
|
1980
|
-
|
|
1980
|
+
agent_id: string;
|
|
1981
1981
|
};
|
|
1982
1982
|
query?: never;
|
|
1983
|
-
url: '/agents/{
|
|
1983
|
+
url: '/agents/{agent_id}';
|
|
1984
1984
|
};
|
|
1985
1985
|
type UpdateAgentErrors = {
|
|
1986
1986
|
/**
|
|
@@ -2007,10 +2007,10 @@ type UpdateAgentResponse = UpdateAgentResponses[keyof UpdateAgentResponses];
|
|
|
2007
2007
|
type CreateAgentGenerationData = {
|
|
2008
2008
|
body: CreateAgentGenerationRequest;
|
|
2009
2009
|
path: {
|
|
2010
|
-
|
|
2010
|
+
agent_id: string;
|
|
2011
2011
|
};
|
|
2012
2012
|
query?: never;
|
|
2013
|
-
url: '/agents/{
|
|
2013
|
+
url: '/agents/{agent_id}/generate';
|
|
2014
2014
|
};
|
|
2015
2015
|
type CreateAgentGenerationErrors = {
|
|
2016
2016
|
/**
|
|
@@ -2041,11 +2041,11 @@ type CreateAgentGenerationResponse = CreateAgentGenerationResponses[keyof Create
|
|
|
2041
2041
|
type SubmitAgentToolOutputsData = {
|
|
2042
2042
|
body: SubmitToolOutputsRequest;
|
|
2043
2043
|
path: {
|
|
2044
|
-
|
|
2045
|
-
|
|
2044
|
+
agent_id: string;
|
|
2045
|
+
generation_id: string;
|
|
2046
2046
|
};
|
|
2047
2047
|
query?: never;
|
|
2048
|
-
url: '/agents/{
|
|
2048
|
+
url: '/agents/{agent_id}/generate/{generation_id}/tool-outputs';
|
|
2049
2049
|
};
|
|
2050
2050
|
type SubmitAgentToolOutputsErrors = {
|
|
2051
2051
|
/**
|
|
@@ -2092,10 +2092,10 @@ type CreateAgentActorData = {
|
|
|
2092
2092
|
/**
|
|
2093
2093
|
* Agent ID
|
|
2094
2094
|
*/
|
|
2095
|
-
|
|
2095
|
+
agent_id: string;
|
|
2096
2096
|
};
|
|
2097
2097
|
query?: never;
|
|
2098
|
-
url: '/agents/{
|
|
2098
|
+
url: '/agents/{agent_id}/actors';
|
|
2099
2099
|
};
|
|
2100
2100
|
type CreateAgentActorErrors = {
|
|
2101
2101
|
/**
|
|
@@ -2248,10 +2248,10 @@ type DeleteAiProviderData = {
|
|
|
2248
2248
|
/**
|
|
2249
2249
|
* AI Provider ID
|
|
2250
2250
|
*/
|
|
2251
|
-
|
|
2251
|
+
ai_provider_id: string;
|
|
2252
2252
|
};
|
|
2253
2253
|
query?: never;
|
|
2254
|
-
url: '/ai-providers/{
|
|
2254
|
+
url: '/ai-providers/{ai_provider_id}';
|
|
2255
2255
|
};
|
|
2256
2256
|
type DeleteAiProviderErrors = {
|
|
2257
2257
|
/**
|
|
@@ -2279,10 +2279,10 @@ type GetAiProviderData = {
|
|
|
2279
2279
|
/**
|
|
2280
2280
|
* AI Provider ID
|
|
2281
2281
|
*/
|
|
2282
|
-
|
|
2282
|
+
ai_provider_id: string;
|
|
2283
2283
|
};
|
|
2284
2284
|
query?: never;
|
|
2285
|
-
url: '/ai-providers/{
|
|
2285
|
+
url: '/ai-providers/{ai_provider_id}';
|
|
2286
2286
|
};
|
|
2287
2287
|
type GetAiProviderErrors = {
|
|
2288
2288
|
/**
|
|
@@ -2331,10 +2331,10 @@ type UpdateAiProviderData = {
|
|
|
2331
2331
|
/**
|
|
2332
2332
|
* AI Provider ID
|
|
2333
2333
|
*/
|
|
2334
|
-
|
|
2334
|
+
ai_provider_id: string;
|
|
2335
2335
|
};
|
|
2336
2336
|
query?: never;
|
|
2337
|
-
url: '/ai-providers/{
|
|
2337
|
+
url: '/ai-providers/{ai_provider_id}';
|
|
2338
2338
|
};
|
|
2339
2339
|
type UpdateAiProviderErrors = {
|
|
2340
2340
|
/**
|
|
@@ -2403,10 +2403,10 @@ type DeleteApiKeyData = {
|
|
|
2403
2403
|
/**
|
|
2404
2404
|
* API key public ID (key_ prefix)
|
|
2405
2405
|
*/
|
|
2406
|
-
|
|
2406
|
+
api_key_id: string;
|
|
2407
2407
|
};
|
|
2408
2408
|
query?: never;
|
|
2409
|
-
url: '/api-keys/{
|
|
2409
|
+
url: '/api-keys/{api_key_id}';
|
|
2410
2410
|
};
|
|
2411
2411
|
type DeleteApiKeyErrors = {
|
|
2412
2412
|
/**
|
|
@@ -2435,10 +2435,10 @@ type GetApiKeyData = {
|
|
|
2435
2435
|
/**
|
|
2436
2436
|
* API key public ID (key_ prefix)
|
|
2437
2437
|
*/
|
|
2438
|
-
|
|
2438
|
+
api_key_id: string;
|
|
2439
2439
|
};
|
|
2440
2440
|
query?: never;
|
|
2441
|
-
url: '/api-keys/{
|
|
2441
|
+
url: '/api-keys/{api_key_id}';
|
|
2442
2442
|
};
|
|
2443
2443
|
type GetApiKeyErrors = {
|
|
2444
2444
|
/**
|
|
@@ -2477,10 +2477,10 @@ type UpdateApiKeyData = {
|
|
|
2477
2477
|
/**
|
|
2478
2478
|
* API key public ID (key_ prefix)
|
|
2479
2479
|
*/
|
|
2480
|
-
|
|
2480
|
+
api_key_id: string;
|
|
2481
2481
|
};
|
|
2482
2482
|
query?: never;
|
|
2483
|
-
url: '/api-keys/{
|
|
2483
|
+
url: '/api-keys/{api_key_id}';
|
|
2484
2484
|
};
|
|
2485
2485
|
type UpdateApiKeyErrors = {
|
|
2486
2486
|
/**
|
|
@@ -2572,10 +2572,10 @@ type CreateChatResponse = CreateChatResponses[keyof CreateChatResponses];
|
|
|
2572
2572
|
type DeleteChatData = {
|
|
2573
2573
|
body?: never;
|
|
2574
2574
|
path: {
|
|
2575
|
-
|
|
2575
|
+
chat_id: string;
|
|
2576
2576
|
};
|
|
2577
2577
|
query?: never;
|
|
2578
|
-
url: '/chats/{
|
|
2578
|
+
url: '/chats/{chat_id}';
|
|
2579
2579
|
};
|
|
2580
2580
|
type DeleteChatErrors = {
|
|
2581
2581
|
/**
|
|
@@ -2598,10 +2598,10 @@ type DeleteChatResponse = DeleteChatResponses[keyof DeleteChatResponses];
|
|
|
2598
2598
|
type GetChatData = {
|
|
2599
2599
|
body?: never;
|
|
2600
2600
|
path: {
|
|
2601
|
-
|
|
2601
|
+
chat_id: string;
|
|
2602
2602
|
};
|
|
2603
2603
|
query?: never;
|
|
2604
|
-
url: '/chats/{
|
|
2604
|
+
url: '/chats/{chat_id}';
|
|
2605
2605
|
};
|
|
2606
2606
|
type GetChatErrors = {
|
|
2607
2607
|
/**
|
|
@@ -2624,10 +2624,10 @@ type GetChatResponse = GetChatResponses[keyof GetChatResponses];
|
|
|
2624
2624
|
type CreateChatCompletionForChatData = {
|
|
2625
2625
|
body: ChatCompletionForChatRequest;
|
|
2626
2626
|
path: {
|
|
2627
|
-
|
|
2627
|
+
chat_id: string;
|
|
2628
2628
|
};
|
|
2629
2629
|
query?: never;
|
|
2630
|
-
url: '/chats/{
|
|
2630
|
+
url: '/chats/{chat_id}/completions';
|
|
2631
2631
|
};
|
|
2632
2632
|
type CreateChatCompletionForChatErrors = {
|
|
2633
2633
|
/**
|
|
@@ -2698,10 +2698,10 @@ type CreateChatActorData = {
|
|
|
2698
2698
|
/**
|
|
2699
2699
|
* Chat ID
|
|
2700
2700
|
*/
|
|
2701
|
-
|
|
2701
|
+
chat_id: string;
|
|
2702
2702
|
};
|
|
2703
2703
|
query?: never;
|
|
2704
|
-
url: '/chats/{
|
|
2704
|
+
url: '/chats/{chat_id}/actors';
|
|
2705
2705
|
};
|
|
2706
2706
|
type CreateChatActorErrors = {
|
|
2707
2707
|
/**
|
|
@@ -2829,10 +2829,10 @@ type DeleteConversationData = {
|
|
|
2829
2829
|
/**
|
|
2830
2830
|
* Conversation ID
|
|
2831
2831
|
*/
|
|
2832
|
-
|
|
2832
|
+
conversation_id: string;
|
|
2833
2833
|
};
|
|
2834
2834
|
query?: never;
|
|
2835
|
-
url: '/conversations/{
|
|
2835
|
+
url: '/conversations/{conversation_id}';
|
|
2836
2836
|
};
|
|
2837
2837
|
type DeleteConversationErrors = {
|
|
2838
2838
|
/**
|
|
@@ -2862,10 +2862,10 @@ type GetConversationData = {
|
|
|
2862
2862
|
/**
|
|
2863
2863
|
* Conversation ID
|
|
2864
2864
|
*/
|
|
2865
|
-
|
|
2865
|
+
conversation_id: string;
|
|
2866
2866
|
};
|
|
2867
2867
|
query?: never;
|
|
2868
|
-
url: '/conversations/{
|
|
2868
|
+
url: '/conversations/{conversation_id}';
|
|
2869
2869
|
};
|
|
2870
2870
|
type GetConversationErrors = {
|
|
2871
2871
|
/**
|
|
@@ -2900,10 +2900,10 @@ type UpdateConversationData = {
|
|
|
2900
2900
|
/**
|
|
2901
2901
|
* Conversation ID
|
|
2902
2902
|
*/
|
|
2903
|
-
|
|
2903
|
+
conversation_id: string;
|
|
2904
2904
|
};
|
|
2905
2905
|
query?: never;
|
|
2906
|
-
url: '/conversations/{
|
|
2906
|
+
url: '/conversations/{conversation_id}';
|
|
2907
2907
|
};
|
|
2908
2908
|
type UpdateConversationErrors = {
|
|
2909
2909
|
/**
|
|
@@ -2937,7 +2937,7 @@ type ListConversationMessagesData = {
|
|
|
2937
2937
|
/**
|
|
2938
2938
|
* Conversation ID
|
|
2939
2939
|
*/
|
|
2940
|
-
|
|
2940
|
+
conversation_id: string;
|
|
2941
2941
|
};
|
|
2942
2942
|
query?: {
|
|
2943
2943
|
/**
|
|
@@ -2949,7 +2949,7 @@ type ListConversationMessagesData = {
|
|
|
2949
2949
|
*/
|
|
2950
2950
|
offset?: number;
|
|
2951
2951
|
};
|
|
2952
|
-
url: '/conversations/{
|
|
2952
|
+
url: '/conversations/{conversation_id}/messages';
|
|
2953
2953
|
};
|
|
2954
2954
|
type ListConversationMessagesErrors = {
|
|
2955
2955
|
/**
|
|
@@ -3003,10 +3003,10 @@ type AddConversationMessageData = {
|
|
|
3003
3003
|
/**
|
|
3004
3004
|
* Conversation ID
|
|
3005
3005
|
*/
|
|
3006
|
-
|
|
3006
|
+
conversation_id: string;
|
|
3007
3007
|
};
|
|
3008
3008
|
query?: never;
|
|
3009
|
-
url: '/conversations/{
|
|
3009
|
+
url: '/conversations/{conversation_id}/messages';
|
|
3010
3010
|
};
|
|
3011
3011
|
type AddConversationMessageErrors = {
|
|
3012
3012
|
/**
|
|
@@ -3056,10 +3056,10 @@ type GenerateConversationMessageData = {
|
|
|
3056
3056
|
} | null;
|
|
3057
3057
|
};
|
|
3058
3058
|
path: {
|
|
3059
|
-
|
|
3059
|
+
conversation_id: string;
|
|
3060
3060
|
};
|
|
3061
3061
|
query?: never;
|
|
3062
|
-
url: '/conversations/{
|
|
3062
|
+
url: '/conversations/{conversation_id}/generate';
|
|
3063
3063
|
};
|
|
3064
3064
|
type GenerateConversationMessageErrors = {
|
|
3065
3065
|
/**
|
|
@@ -3097,10 +3097,10 @@ type ListConversationActorsData = {
|
|
|
3097
3097
|
/**
|
|
3098
3098
|
* Conversation ID
|
|
3099
3099
|
*/
|
|
3100
|
-
|
|
3100
|
+
conversation_id: string;
|
|
3101
3101
|
};
|
|
3102
3102
|
query?: never;
|
|
3103
|
-
url: '/conversations/{
|
|
3103
|
+
url: '/conversations/{conversation_id}/actors';
|
|
3104
3104
|
};
|
|
3105
3105
|
type ListConversationActorsErrors = {
|
|
3106
3106
|
/**
|
|
@@ -3130,14 +3130,14 @@ type RemoveConversationMessageData = {
|
|
|
3130
3130
|
/**
|
|
3131
3131
|
* Conversation ID
|
|
3132
3132
|
*/
|
|
3133
|
-
|
|
3133
|
+
conversation_id: string;
|
|
3134
3134
|
/**
|
|
3135
3135
|
* Document ID
|
|
3136
3136
|
*/
|
|
3137
|
-
|
|
3137
|
+
document_id: string;
|
|
3138
3138
|
};
|
|
3139
3139
|
query?: never;
|
|
3140
|
-
url: '/conversations/{
|
|
3140
|
+
url: '/conversations/{conversation_id}/messages/{document_id}';
|
|
3141
3141
|
};
|
|
3142
3142
|
type RemoveConversationMessageErrors = {
|
|
3143
3143
|
/**
|
|
@@ -3167,10 +3167,10 @@ type GetConversationTagsData = {
|
|
|
3167
3167
|
/**
|
|
3168
3168
|
* Conversation ID
|
|
3169
3169
|
*/
|
|
3170
|
-
|
|
3170
|
+
conversation_id: string;
|
|
3171
3171
|
};
|
|
3172
3172
|
query?: never;
|
|
3173
|
-
url: '/conversations/{
|
|
3173
|
+
url: '/conversations/{conversation_id}/tags';
|
|
3174
3174
|
};
|
|
3175
3175
|
type GetConversationTagsErrors = {
|
|
3176
3176
|
/**
|
|
@@ -3204,10 +3204,10 @@ type MergeConversationTagsData = {
|
|
|
3204
3204
|
/**
|
|
3205
3205
|
* Conversation ID
|
|
3206
3206
|
*/
|
|
3207
|
-
|
|
3207
|
+
conversation_id: string;
|
|
3208
3208
|
};
|
|
3209
3209
|
query?: never;
|
|
3210
|
-
url: '/conversations/{
|
|
3210
|
+
url: '/conversations/{conversation_id}/tags';
|
|
3211
3211
|
};
|
|
3212
3212
|
type MergeConversationTagsErrors = {
|
|
3213
3213
|
/**
|
|
@@ -3241,10 +3241,10 @@ type ReplaceConversationTagsData = {
|
|
|
3241
3241
|
/**
|
|
3242
3242
|
* Conversation ID
|
|
3243
3243
|
*/
|
|
3244
|
-
|
|
3244
|
+
conversation_id: string;
|
|
3245
3245
|
};
|
|
3246
3246
|
query?: never;
|
|
3247
|
-
url: '/conversations/{
|
|
3247
|
+
url: '/conversations/{conversation_id}/tags';
|
|
3248
3248
|
};
|
|
3249
3249
|
type ReplaceConversationTagsErrors = {
|
|
3250
3250
|
/**
|
|
@@ -3344,10 +3344,10 @@ type DeleteDocumentData = {
|
|
|
3344
3344
|
/**
|
|
3345
3345
|
* Document ID
|
|
3346
3346
|
*/
|
|
3347
|
-
|
|
3347
|
+
document_id: string;
|
|
3348
3348
|
};
|
|
3349
3349
|
query?: never;
|
|
3350
|
-
url: '/documents/{
|
|
3350
|
+
url: '/documents/{document_id}';
|
|
3351
3351
|
};
|
|
3352
3352
|
type DeleteDocumentErrors = {
|
|
3353
3353
|
/**
|
|
@@ -3377,10 +3377,10 @@ type GetDocumentData = {
|
|
|
3377
3377
|
/**
|
|
3378
3378
|
* Document ID
|
|
3379
3379
|
*/
|
|
3380
|
-
|
|
3380
|
+
document_id: string;
|
|
3381
3381
|
};
|
|
3382
3382
|
query?: never;
|
|
3383
|
-
url: '/documents/{
|
|
3383
|
+
url: '/documents/{document_id}';
|
|
3384
3384
|
};
|
|
3385
3385
|
type GetDocumentErrors = {
|
|
3386
3386
|
/**
|
|
@@ -3435,10 +3435,10 @@ type UpdateDocumentData = {
|
|
|
3435
3435
|
/**
|
|
3436
3436
|
* Document ID
|
|
3437
3437
|
*/
|
|
3438
|
-
|
|
3438
|
+
document_id: string;
|
|
3439
3439
|
};
|
|
3440
3440
|
query?: never;
|
|
3441
|
-
url: '/documents/{
|
|
3441
|
+
url: '/documents/{document_id}';
|
|
3442
3442
|
};
|
|
3443
3443
|
type UpdateDocumentErrors = {
|
|
3444
3444
|
/**
|
|
@@ -3468,10 +3468,10 @@ type GetDocumentTagsData = {
|
|
|
3468
3468
|
/**
|
|
3469
3469
|
* Document ID
|
|
3470
3470
|
*/
|
|
3471
|
-
|
|
3471
|
+
document_id: string;
|
|
3472
3472
|
};
|
|
3473
3473
|
query?: never;
|
|
3474
|
-
url: '/documents/{
|
|
3474
|
+
url: '/documents/{document_id}/tags';
|
|
3475
3475
|
};
|
|
3476
3476
|
type GetDocumentTagsErrors = {
|
|
3477
3477
|
/**
|
|
@@ -3505,10 +3505,10 @@ type MergeDocumentTagsData = {
|
|
|
3505
3505
|
/**
|
|
3506
3506
|
* Document ID
|
|
3507
3507
|
*/
|
|
3508
|
-
|
|
3508
|
+
document_id: string;
|
|
3509
3509
|
};
|
|
3510
3510
|
query?: never;
|
|
3511
|
-
url: '/documents/{
|
|
3511
|
+
url: '/documents/{document_id}/tags';
|
|
3512
3512
|
};
|
|
3513
3513
|
type MergeDocumentTagsErrors = {
|
|
3514
3514
|
/**
|
|
@@ -3542,10 +3542,10 @@ type ReplaceDocumentTagsData = {
|
|
|
3542
3542
|
/**
|
|
3543
3543
|
* Document ID
|
|
3544
3544
|
*/
|
|
3545
|
-
|
|
3545
|
+
document_id: string;
|
|
3546
3546
|
};
|
|
3547
3547
|
query?: never;
|
|
3548
|
-
url: '/documents/{
|
|
3548
|
+
url: '/documents/{document_id}/tags';
|
|
3549
3549
|
};
|
|
3550
3550
|
type ReplaceDocumentTagsErrors = {
|
|
3551
3551
|
/**
|
|
@@ -3630,6 +3630,10 @@ type ListFilesData = {
|
|
|
3630
3630
|
body?: never;
|
|
3631
3631
|
path?: never;
|
|
3632
3632
|
query?: {
|
|
3633
|
+
/**
|
|
3634
|
+
* Filter files by project ID
|
|
3635
|
+
*/
|
|
3636
|
+
project_id?: string;
|
|
3633
3637
|
/**
|
|
3634
3638
|
* Maximum number of results to return
|
|
3635
3639
|
*/
|
|
@@ -3788,10 +3792,10 @@ type DeleteFileData = {
|
|
|
3788
3792
|
/**
|
|
3789
3793
|
* ID of the file to delete
|
|
3790
3794
|
*/
|
|
3791
|
-
|
|
3795
|
+
file_id: string;
|
|
3792
3796
|
};
|
|
3793
3797
|
query?: never;
|
|
3794
|
-
url: '/files/{
|
|
3798
|
+
url: '/files/{file_id}';
|
|
3795
3799
|
};
|
|
3796
3800
|
type DeleteFileErrors = {
|
|
3797
3801
|
/**
|
|
@@ -3817,10 +3821,10 @@ type GetFileData = {
|
|
|
3817
3821
|
/**
|
|
3818
3822
|
* File ID
|
|
3819
3823
|
*/
|
|
3820
|
-
|
|
3824
|
+
file_id: string;
|
|
3821
3825
|
};
|
|
3822
3826
|
query?: never;
|
|
3823
|
-
url: '/files/{
|
|
3827
|
+
url: '/files/{file_id}';
|
|
3824
3828
|
};
|
|
3825
3829
|
type GetFileErrors = {
|
|
3826
3830
|
/**
|
|
@@ -3846,10 +3850,10 @@ type DownloadFileData = {
|
|
|
3846
3850
|
/**
|
|
3847
3851
|
* File ID
|
|
3848
3852
|
*/
|
|
3849
|
-
|
|
3853
|
+
file_id: string;
|
|
3850
3854
|
};
|
|
3851
3855
|
query?: never;
|
|
3852
|
-
url: '/files/{
|
|
3856
|
+
url: '/files/{file_id}/download';
|
|
3853
3857
|
};
|
|
3854
3858
|
type DownloadFileErrors = {
|
|
3855
3859
|
/**
|
|
@@ -3888,10 +3892,10 @@ type UpdateFileMetadataData = {
|
|
|
3888
3892
|
/**
|
|
3889
3893
|
* File ID
|
|
3890
3894
|
*/
|
|
3891
|
-
|
|
3895
|
+
file_id: string;
|
|
3892
3896
|
};
|
|
3893
3897
|
query?: never;
|
|
3894
|
-
url: '/files/{
|
|
3898
|
+
url: '/files/{file_id}/metadata';
|
|
3895
3899
|
};
|
|
3896
3900
|
type UpdateFileMetadataErrors = {
|
|
3897
3901
|
/**
|
|
@@ -3921,10 +3925,10 @@ type DownloadFileBase64Data = {
|
|
|
3921
3925
|
/**
|
|
3922
3926
|
* File ID
|
|
3923
3927
|
*/
|
|
3924
|
-
|
|
3928
|
+
file_id: string;
|
|
3925
3929
|
};
|
|
3926
3930
|
query?: never;
|
|
3927
|
-
url: '/files/{
|
|
3931
|
+
url: '/files/{file_id}/download/base64';
|
|
3928
3932
|
};
|
|
3929
3933
|
type DownloadFileBase64Errors = {
|
|
3930
3934
|
/**
|
|
@@ -3971,10 +3975,10 @@ type GetFileTagsData = {
|
|
|
3971
3975
|
/**
|
|
3972
3976
|
* File ID
|
|
3973
3977
|
*/
|
|
3974
|
-
|
|
3978
|
+
file_id: string;
|
|
3975
3979
|
};
|
|
3976
3980
|
query?: never;
|
|
3977
|
-
url: '/files/{
|
|
3981
|
+
url: '/files/{file_id}/tags';
|
|
3978
3982
|
};
|
|
3979
3983
|
type GetFileTagsErrors = {
|
|
3980
3984
|
/**
|
|
@@ -4008,10 +4012,10 @@ type MergeFileTagsData = {
|
|
|
4008
4012
|
/**
|
|
4009
4013
|
* File ID
|
|
4010
4014
|
*/
|
|
4011
|
-
|
|
4015
|
+
file_id: string;
|
|
4012
4016
|
};
|
|
4013
4017
|
query?: never;
|
|
4014
|
-
url: '/files/{
|
|
4018
|
+
url: '/files/{file_id}/tags';
|
|
4015
4019
|
};
|
|
4016
4020
|
type MergeFileTagsErrors = {
|
|
4017
4021
|
/**
|
|
@@ -4045,10 +4049,10 @@ type ReplaceFileTagsData = {
|
|
|
4045
4049
|
/**
|
|
4046
4050
|
* File ID
|
|
4047
4051
|
*/
|
|
4048
|
-
|
|
4052
|
+
file_id: string;
|
|
4049
4053
|
};
|
|
4050
4054
|
query?: never;
|
|
4051
|
-
url: '/files/{
|
|
4055
|
+
url: '/files/{file_id}/tags';
|
|
4052
4056
|
};
|
|
4053
4057
|
type ReplaceFileTagsErrors = {
|
|
4054
4058
|
/**
|
|
@@ -4135,10 +4139,10 @@ type DeletePolicyData = {
|
|
|
4135
4139
|
/**
|
|
4136
4140
|
* Policy public ID (pol_ prefix)
|
|
4137
4141
|
*/
|
|
4138
|
-
|
|
4142
|
+
policy_id: string;
|
|
4139
4143
|
};
|
|
4140
4144
|
query?: never;
|
|
4141
|
-
url: '/policies/{
|
|
4145
|
+
url: '/policies/{policy_id}';
|
|
4142
4146
|
};
|
|
4143
4147
|
type DeletePolicyErrors = {
|
|
4144
4148
|
/**
|
|
@@ -4167,10 +4171,10 @@ type GetPolicyData = {
|
|
|
4167
4171
|
/**
|
|
4168
4172
|
* Policy public ID (pol_ prefix)
|
|
4169
4173
|
*/
|
|
4170
|
-
|
|
4174
|
+
policy_id: string;
|
|
4171
4175
|
};
|
|
4172
4176
|
query?: never;
|
|
4173
|
-
url: '/policies/{
|
|
4177
|
+
url: '/policies/{policy_id}';
|
|
4174
4178
|
};
|
|
4175
4179
|
type GetPolicyErrors = {
|
|
4176
4180
|
/**
|
|
@@ -4203,10 +4207,10 @@ type UpdatePolicyData = {
|
|
|
4203
4207
|
/**
|
|
4204
4208
|
* Policy public ID (pol_ prefix)
|
|
4205
4209
|
*/
|
|
4206
|
-
|
|
4210
|
+
policy_id: string;
|
|
4207
4211
|
};
|
|
4208
4212
|
query?: never;
|
|
4209
|
-
url: '/policies/{
|
|
4213
|
+
url: '/policies/{policy_id}';
|
|
4210
4214
|
};
|
|
4211
4215
|
type UpdatePolicyErrors = {
|
|
4212
4216
|
/**
|
|
@@ -4273,10 +4277,10 @@ type DeleteProjectData = {
|
|
|
4273
4277
|
/**
|
|
4274
4278
|
* Project public ID (proj_ prefix)
|
|
4275
4279
|
*/
|
|
4276
|
-
|
|
4280
|
+
project_id: string;
|
|
4277
4281
|
};
|
|
4278
4282
|
query?: never;
|
|
4279
|
-
url: '/projects/{
|
|
4283
|
+
url: '/projects/{project_id}';
|
|
4280
4284
|
};
|
|
4281
4285
|
type DeleteProjectErrors = {
|
|
4282
4286
|
/**
|
|
@@ -4305,10 +4309,10 @@ type GetProjectData = {
|
|
|
4305
4309
|
/**
|
|
4306
4310
|
* Project public ID (proj_ prefix)
|
|
4307
4311
|
*/
|
|
4308
|
-
|
|
4312
|
+
project_id: string;
|
|
4309
4313
|
};
|
|
4310
4314
|
query?: never;
|
|
4311
|
-
url: '/projects/{
|
|
4315
|
+
url: '/projects/{project_id}';
|
|
4312
4316
|
};
|
|
4313
4317
|
type GetProjectErrors = {
|
|
4314
4318
|
/**
|
|
@@ -4431,10 +4435,10 @@ type DeleteSecretData = {
|
|
|
4431
4435
|
/**
|
|
4432
4436
|
* Secret ID
|
|
4433
4437
|
*/
|
|
4434
|
-
|
|
4438
|
+
secret_id: string;
|
|
4435
4439
|
};
|
|
4436
4440
|
query?: never;
|
|
4437
|
-
url: '/secrets/{
|
|
4441
|
+
url: '/secrets/{secret_id}';
|
|
4438
4442
|
};
|
|
4439
4443
|
type DeleteSecretErrors = {
|
|
4440
4444
|
/**
|
|
@@ -4462,10 +4466,10 @@ type GetSecretData = {
|
|
|
4462
4466
|
/**
|
|
4463
4467
|
* Secret ID
|
|
4464
4468
|
*/
|
|
4465
|
-
|
|
4469
|
+
secret_id: string;
|
|
4466
4470
|
};
|
|
4467
4471
|
query?: never;
|
|
4468
|
-
url: '/secrets/{
|
|
4472
|
+
url: '/secrets/{secret_id}';
|
|
4469
4473
|
};
|
|
4470
4474
|
type GetSecretErrors = {
|
|
4471
4475
|
/**
|
|
@@ -4512,10 +4516,10 @@ type UpdateSecretData = {
|
|
|
4512
4516
|
/**
|
|
4513
4517
|
* Secret ID
|
|
4514
4518
|
*/
|
|
4515
|
-
|
|
4519
|
+
secret_id: string;
|
|
4516
4520
|
};
|
|
4517
4521
|
query?: never;
|
|
4518
|
-
url: '/secrets/{
|
|
4522
|
+
url: '/secrets/{secret_id}';
|
|
4519
4523
|
};
|
|
4520
4524
|
type UpdateSecretErrors = {
|
|
4521
4525
|
/**
|
|
@@ -4547,7 +4551,7 @@ type ListAgentSessionsData = {
|
|
|
4547
4551
|
/**
|
|
4548
4552
|
* Agent public ID
|
|
4549
4553
|
*/
|
|
4550
|
-
|
|
4554
|
+
agent_id: string;
|
|
4551
4555
|
};
|
|
4552
4556
|
query?: {
|
|
4553
4557
|
/**
|
|
@@ -4561,7 +4565,7 @@ type ListAgentSessionsData = {
|
|
|
4561
4565
|
limit?: number;
|
|
4562
4566
|
offset?: number;
|
|
4563
4567
|
};
|
|
4564
|
-
url: '/agents/{
|
|
4568
|
+
url: '/agents/{agent_id}/sessions';
|
|
4565
4569
|
};
|
|
4566
4570
|
type ListAgentSessionsErrors = {
|
|
4567
4571
|
/**
|
|
@@ -4596,10 +4600,10 @@ type CreateAgentSessionData = {
|
|
|
4596
4600
|
/**
|
|
4597
4601
|
* Agent public ID
|
|
4598
4602
|
*/
|
|
4599
|
-
|
|
4603
|
+
agent_id: string;
|
|
4600
4604
|
};
|
|
4601
4605
|
query?: never;
|
|
4602
|
-
url: '/agents/{
|
|
4606
|
+
url: '/agents/{agent_id}/sessions';
|
|
4603
4607
|
};
|
|
4604
4608
|
type CreateAgentSessionErrors = {
|
|
4605
4609
|
/**
|
|
@@ -4629,14 +4633,14 @@ type DeleteAgentSessionData = {
|
|
|
4629
4633
|
/**
|
|
4630
4634
|
* Agent public ID
|
|
4631
4635
|
*/
|
|
4632
|
-
|
|
4636
|
+
agent_id: string;
|
|
4633
4637
|
/**
|
|
4634
4638
|
* Session public ID
|
|
4635
4639
|
*/
|
|
4636
|
-
|
|
4640
|
+
session_id: string;
|
|
4637
4641
|
};
|
|
4638
4642
|
query?: never;
|
|
4639
|
-
url: '/agents/{
|
|
4643
|
+
url: '/agents/{agent_id}/sessions/{session_id}';
|
|
4640
4644
|
};
|
|
4641
4645
|
type DeleteAgentSessionErrors = {
|
|
4642
4646
|
/**
|
|
@@ -4666,14 +4670,14 @@ type GetAgentSessionData = {
|
|
|
4666
4670
|
/**
|
|
4667
4671
|
* Agent public ID
|
|
4668
4672
|
*/
|
|
4669
|
-
|
|
4673
|
+
agent_id: string;
|
|
4670
4674
|
/**
|
|
4671
4675
|
* Session public ID
|
|
4672
4676
|
*/
|
|
4673
|
-
|
|
4677
|
+
session_id: string;
|
|
4674
4678
|
};
|
|
4675
4679
|
query?: never;
|
|
4676
|
-
url: '/agents/{
|
|
4680
|
+
url: '/agents/{agent_id}/sessions/{session_id}';
|
|
4677
4681
|
};
|
|
4678
4682
|
type GetAgentSessionErrors = {
|
|
4679
4683
|
/**
|
|
@@ -4703,14 +4707,14 @@ type UpdateSessionData = {
|
|
|
4703
4707
|
/**
|
|
4704
4708
|
* Agent public ID
|
|
4705
4709
|
*/
|
|
4706
|
-
|
|
4710
|
+
agent_id: string;
|
|
4707
4711
|
/**
|
|
4708
4712
|
* Session public ID
|
|
4709
4713
|
*/
|
|
4710
|
-
|
|
4714
|
+
session_id: string;
|
|
4711
4715
|
};
|
|
4712
4716
|
query?: never;
|
|
4713
|
-
url: '/agents/{
|
|
4717
|
+
url: '/agents/{agent_id}/sessions/{session_id}';
|
|
4714
4718
|
};
|
|
4715
4719
|
type UpdateSessionErrors = {
|
|
4716
4720
|
/**
|
|
@@ -4740,17 +4744,17 @@ type ListAgentSessionMessagesData = {
|
|
|
4740
4744
|
/**
|
|
4741
4745
|
* Agent public ID
|
|
4742
4746
|
*/
|
|
4743
|
-
|
|
4747
|
+
agent_id: string;
|
|
4744
4748
|
/**
|
|
4745
4749
|
* Session public ID
|
|
4746
4750
|
*/
|
|
4747
|
-
|
|
4751
|
+
session_id: string;
|
|
4748
4752
|
};
|
|
4749
4753
|
query?: {
|
|
4750
4754
|
limit?: number;
|
|
4751
4755
|
offset?: number;
|
|
4752
4756
|
};
|
|
4753
|
-
url: '/agents/{
|
|
4757
|
+
url: '/agents/{agent_id}/sessions/{session_id}/messages';
|
|
4754
4758
|
};
|
|
4755
4759
|
type ListAgentSessionMessagesErrors = {
|
|
4756
4760
|
/**
|
|
@@ -4785,14 +4789,14 @@ type AddSessionMessageData = {
|
|
|
4785
4789
|
/**
|
|
4786
4790
|
* Agent public ID
|
|
4787
4791
|
*/
|
|
4788
|
-
|
|
4792
|
+
agent_id: string;
|
|
4789
4793
|
/**
|
|
4790
4794
|
* Session public ID
|
|
4791
4795
|
*/
|
|
4792
|
-
|
|
4796
|
+
session_id: string;
|
|
4793
4797
|
};
|
|
4794
4798
|
query?: never;
|
|
4795
|
-
url: '/agents/{
|
|
4799
|
+
url: '/agents/{agent_id}/sessions/{session_id}/messages';
|
|
4796
4800
|
};
|
|
4797
4801
|
type AddSessionMessageErrors = {
|
|
4798
4802
|
/**
|
|
@@ -4822,11 +4826,11 @@ type GenerateSessionResponseData = {
|
|
|
4822
4826
|
/**
|
|
4823
4827
|
* Agent public ID
|
|
4824
4828
|
*/
|
|
4825
|
-
|
|
4829
|
+
agent_id: string;
|
|
4826
4830
|
/**
|
|
4827
4831
|
* Session public ID
|
|
4828
4832
|
*/
|
|
4829
|
-
|
|
4833
|
+
session_id: string;
|
|
4830
4834
|
};
|
|
4831
4835
|
query?: {
|
|
4832
4836
|
/**
|
|
@@ -4834,7 +4838,7 @@ type GenerateSessionResponseData = {
|
|
|
4834
4838
|
*/
|
|
4835
4839
|
async?: boolean;
|
|
4836
4840
|
};
|
|
4837
|
-
url: '/agents/{
|
|
4841
|
+
url: '/agents/{agent_id}/sessions/{session_id}/generate';
|
|
4838
4842
|
};
|
|
4839
4843
|
type GenerateSessionResponseErrors = {
|
|
4840
4844
|
/**
|
|
@@ -4875,14 +4879,14 @@ type SubmitSessionToolOutputsData = {
|
|
|
4875
4879
|
/**
|
|
4876
4880
|
* Agent public ID
|
|
4877
4881
|
*/
|
|
4878
|
-
|
|
4882
|
+
agent_id: string;
|
|
4879
4883
|
/**
|
|
4880
4884
|
* Session public ID
|
|
4881
4885
|
*/
|
|
4882
|
-
|
|
4886
|
+
session_id: string;
|
|
4883
4887
|
};
|
|
4884
4888
|
query?: never;
|
|
4885
|
-
url: '/agents/{
|
|
4889
|
+
url: '/agents/{agent_id}/sessions/{session_id}/tool-outputs';
|
|
4886
4890
|
};
|
|
4887
4891
|
type SubmitSessionToolOutputsErrors = {
|
|
4888
4892
|
/**
|
|
@@ -4912,14 +4916,14 @@ type GetSessionTagsData = {
|
|
|
4912
4916
|
/**
|
|
4913
4917
|
* Agent public ID
|
|
4914
4918
|
*/
|
|
4915
|
-
|
|
4919
|
+
agent_id: string;
|
|
4916
4920
|
/**
|
|
4917
4921
|
* Session public ID
|
|
4918
4922
|
*/
|
|
4919
|
-
|
|
4923
|
+
session_id: string;
|
|
4920
4924
|
};
|
|
4921
4925
|
query?: never;
|
|
4922
|
-
url: '/agents/{
|
|
4926
|
+
url: '/agents/{agent_id}/sessions/{session_id}/tags';
|
|
4923
4927
|
};
|
|
4924
4928
|
type GetSessionTagsErrors = {
|
|
4925
4929
|
/**
|
|
@@ -4953,14 +4957,14 @@ type MergeSessionTagsData = {
|
|
|
4953
4957
|
/**
|
|
4954
4958
|
* Agent public ID
|
|
4955
4959
|
*/
|
|
4956
|
-
|
|
4960
|
+
agent_id: string;
|
|
4957
4961
|
/**
|
|
4958
4962
|
* Session public ID
|
|
4959
4963
|
*/
|
|
4960
|
-
|
|
4964
|
+
session_id: string;
|
|
4961
4965
|
};
|
|
4962
4966
|
query?: never;
|
|
4963
|
-
url: '/agents/{
|
|
4967
|
+
url: '/agents/{agent_id}/sessions/{session_id}/tags';
|
|
4964
4968
|
};
|
|
4965
4969
|
type MergeSessionTagsErrors = {
|
|
4966
4970
|
/**
|
|
@@ -4994,14 +4998,14 @@ type ReplaceSessionTagsData = {
|
|
|
4994
4998
|
/**
|
|
4995
4999
|
* Agent public ID
|
|
4996
5000
|
*/
|
|
4997
|
-
|
|
5001
|
+
agent_id: string;
|
|
4998
5002
|
/**
|
|
4999
5003
|
* Session public ID
|
|
5000
5004
|
*/
|
|
5001
|
-
|
|
5005
|
+
session_id: string;
|
|
5002
5006
|
};
|
|
5003
5007
|
query?: never;
|
|
5004
|
-
url: '/agents/{
|
|
5008
|
+
url: '/agents/{agent_id}/sessions/{session_id}/tags';
|
|
5005
5009
|
};
|
|
5006
5010
|
type ReplaceSessionTagsErrors = {
|
|
5007
5011
|
/**
|
|
@@ -5077,10 +5081,10 @@ type DeleteUserData = {
|
|
|
5077
5081
|
/**
|
|
5078
5082
|
* User ID
|
|
5079
5083
|
*/
|
|
5080
|
-
|
|
5084
|
+
user_id: string;
|
|
5081
5085
|
};
|
|
5082
5086
|
query?: never;
|
|
5083
|
-
url: '/users/{
|
|
5087
|
+
url: '/users/{user_id}';
|
|
5084
5088
|
};
|
|
5085
5089
|
type DeleteUserErrors = {
|
|
5086
5090
|
/**
|
|
@@ -5106,10 +5110,10 @@ type GetUserData = {
|
|
|
5106
5110
|
/**
|
|
5107
5111
|
* User ID
|
|
5108
5112
|
*/
|
|
5109
|
-
|
|
5113
|
+
user_id: string;
|
|
5110
5114
|
};
|
|
5111
5115
|
query?: never;
|
|
5112
|
-
url: '/users/{
|
|
5116
|
+
url: '/users/{user_id}';
|
|
5113
5117
|
};
|
|
5114
5118
|
type GetUserErrors = {
|
|
5115
5119
|
/**
|
|
@@ -5189,10 +5193,10 @@ type GetUserPoliciesData = {
|
|
|
5189
5193
|
/**
|
|
5190
5194
|
* User public ID (usr_ prefix)
|
|
5191
5195
|
*/
|
|
5192
|
-
|
|
5196
|
+
user_id: string;
|
|
5193
5197
|
};
|
|
5194
5198
|
query?: never;
|
|
5195
|
-
url: '/users/{
|
|
5199
|
+
url: '/users/{user_id}/policies';
|
|
5196
5200
|
};
|
|
5197
5201
|
type GetUserPoliciesErrors = {
|
|
5198
5202
|
/**
|
|
@@ -5230,10 +5234,10 @@ type AttachUserPoliciesData = {
|
|
|
5230
5234
|
/**
|
|
5231
5235
|
* User public ID (usr_ prefix)
|
|
5232
5236
|
*/
|
|
5233
|
-
|
|
5237
|
+
user_id: string;
|
|
5234
5238
|
};
|
|
5235
5239
|
query?: never;
|
|
5236
|
-
url: '/users/{
|
|
5240
|
+
url: '/users/{user_id}/policies';
|
|
5237
5241
|
};
|
|
5238
5242
|
type AttachUserPoliciesErrors = {
|
|
5239
5243
|
/**
|
|
@@ -5264,10 +5268,10 @@ type AttachUserPoliciesResponse = AttachUserPoliciesResponses[keyof AttachUserPo
|
|
|
5264
5268
|
type ListWebhooksData = {
|
|
5265
5269
|
body?: never;
|
|
5266
5270
|
path: {
|
|
5267
|
-
|
|
5271
|
+
project_id: string;
|
|
5268
5272
|
};
|
|
5269
5273
|
query?: never;
|
|
5270
|
-
url: '/projects/{
|
|
5274
|
+
url: '/projects/{project_id}/webhooks';
|
|
5271
5275
|
};
|
|
5272
5276
|
type ListWebhooksErrors = {
|
|
5273
5277
|
/**
|
|
@@ -5289,10 +5293,10 @@ type ListWebhooksResponse = ListWebhooksResponses[keyof ListWebhooksResponses];
|
|
|
5289
5293
|
type CreateWebhookData = {
|
|
5290
5294
|
body: CreateWebhookRequest;
|
|
5291
5295
|
path: {
|
|
5292
|
-
|
|
5296
|
+
project_id: string;
|
|
5293
5297
|
};
|
|
5294
5298
|
query?: never;
|
|
5295
|
-
url: '/projects/{
|
|
5299
|
+
url: '/projects/{project_id}/webhooks';
|
|
5296
5300
|
};
|
|
5297
5301
|
type CreateWebhookErrors = {
|
|
5298
5302
|
/**
|
|
@@ -5318,11 +5322,11 @@ type CreateWebhookResponse = CreateWebhookResponses[keyof CreateWebhookResponses
|
|
|
5318
5322
|
type DeleteWebhookData = {
|
|
5319
5323
|
body?: never;
|
|
5320
5324
|
path: {
|
|
5321
|
-
|
|
5322
|
-
|
|
5325
|
+
project_id: string;
|
|
5326
|
+
webhook_id: string;
|
|
5323
5327
|
};
|
|
5324
5328
|
query?: never;
|
|
5325
|
-
url: '/projects/{
|
|
5329
|
+
url: '/projects/{project_id}/webhooks/{webhook_id}';
|
|
5326
5330
|
};
|
|
5327
5331
|
type DeleteWebhookErrors = {
|
|
5328
5332
|
/**
|
|
@@ -5348,11 +5352,11 @@ type DeleteWebhookResponse = DeleteWebhookResponses[keyof DeleteWebhookResponses
|
|
|
5348
5352
|
type GetWebhookData = {
|
|
5349
5353
|
body?: never;
|
|
5350
5354
|
path: {
|
|
5351
|
-
|
|
5352
|
-
|
|
5355
|
+
project_id: string;
|
|
5356
|
+
webhook_id: string;
|
|
5353
5357
|
};
|
|
5354
5358
|
query?: never;
|
|
5355
|
-
url: '/projects/{
|
|
5359
|
+
url: '/projects/{project_id}/webhooks/{webhook_id}';
|
|
5356
5360
|
};
|
|
5357
5361
|
type GetWebhookErrors = {
|
|
5358
5362
|
/**
|
|
@@ -5378,11 +5382,11 @@ type GetWebhookResponse = GetWebhookResponses[keyof GetWebhookResponses];
|
|
|
5378
5382
|
type UpdateWebhookData = {
|
|
5379
5383
|
body: UpdateWebhookRequest;
|
|
5380
5384
|
path: {
|
|
5381
|
-
|
|
5382
|
-
|
|
5385
|
+
project_id: string;
|
|
5386
|
+
webhook_id: string;
|
|
5383
5387
|
};
|
|
5384
5388
|
query?: never;
|
|
5385
|
-
url: '/projects/{
|
|
5389
|
+
url: '/projects/{project_id}/webhooks/{webhook_id}';
|
|
5386
5390
|
};
|
|
5387
5391
|
type UpdateWebhookErrors = {
|
|
5388
5392
|
/**
|
|
@@ -5412,14 +5416,14 @@ type UpdateWebhookResponse = UpdateWebhookResponses[keyof UpdateWebhookResponses
|
|
|
5412
5416
|
type ListWebhookDeliveriesData = {
|
|
5413
5417
|
body?: never;
|
|
5414
5418
|
path: {
|
|
5415
|
-
|
|
5416
|
-
|
|
5419
|
+
project_id: string;
|
|
5420
|
+
webhook_id: string;
|
|
5417
5421
|
};
|
|
5418
5422
|
query?: {
|
|
5419
5423
|
limit?: number;
|
|
5420
5424
|
offset?: number;
|
|
5421
5425
|
};
|
|
5422
|
-
url: '/projects/{
|
|
5426
|
+
url: '/projects/{project_id}/webhooks/{webhook_id}/deliveries';
|
|
5423
5427
|
};
|
|
5424
5428
|
type ListWebhookDeliveriesErrors = {
|
|
5425
5429
|
/**
|
|
@@ -5445,12 +5449,12 @@ type ListWebhookDeliveriesResponse = ListWebhookDeliveriesResponses[keyof ListWe
|
|
|
5445
5449
|
type GetWebhookDeliveryData = {
|
|
5446
5450
|
body?: never;
|
|
5447
5451
|
path: {
|
|
5448
|
-
|
|
5449
|
-
|
|
5450
|
-
|
|
5452
|
+
project_id: string;
|
|
5453
|
+
webhook_id: string;
|
|
5454
|
+
delivery_id: string;
|
|
5451
5455
|
};
|
|
5452
5456
|
query?: never;
|
|
5453
|
-
url: '/projects/{
|
|
5457
|
+
url: '/projects/{project_id}/webhooks/{webhook_id}/deliveries/{delivery_id}';
|
|
5454
5458
|
};
|
|
5455
5459
|
type GetWebhookDeliveryErrors = {
|
|
5456
5460
|
/**
|
|
@@ -5476,11 +5480,11 @@ type GetWebhookDeliveryResponse = GetWebhookDeliveryResponses[keyof GetWebhookDe
|
|
|
5476
5480
|
type RotateWebhookSecretData = {
|
|
5477
5481
|
body?: never;
|
|
5478
5482
|
path: {
|
|
5479
|
-
|
|
5480
|
-
|
|
5483
|
+
project_id: string;
|
|
5484
|
+
webhook_id: string;
|
|
5481
5485
|
};
|
|
5482
5486
|
query?: never;
|
|
5483
|
-
url: '/projects/{
|
|
5487
|
+
url: '/projects/{project_id}/webhooks/{webhook_id}/rotate-secret';
|
|
5484
5488
|
};
|
|
5485
5489
|
type RotateWebhookSecretErrors = {
|
|
5486
5490
|
/**
|
|
@@ -6248,4 +6252,64 @@ declare class Webhooks {
|
|
|
6248
6252
|
static rotateWebhookSecret<ThrowOnError extends boolean = false>(options: Options<RotateWebhookSecretData, ThrowOnError>): RequestResult<RotateWebhookSecretResponses, RotateWebhookSecretErrors, ThrowOnError, "fields">;
|
|
6249
6253
|
}
|
|
6250
6254
|
|
|
6251
|
-
export { type ActorRecord, Actors, type AddConversationMessageData, type AddConversationMessageError, type AddConversationMessageErrors, type AddConversationMessageResponse, type AddConversationMessageResponses, type AddSessionMessageData, type AddSessionMessageError, type AddSessionMessageErrors, type AddSessionMessageRequest, type AddSessionMessageResponse, type AddSessionMessageResponse2, type AddSessionMessageResponses, type AddSessionMessageSaved, type Agent, type AgentGenerationResponse, type AgentId, type AgentTool, AgentTools, type AgentTrace, AgentTraces, Agents, AiProviders, type ApiKeyCreated, type ApiKeyRecord, ApiKeys, type AttachUserPoliciesData, type AttachUserPoliciesError, type AttachUserPoliciesErrors, type AttachUserPoliciesResponse, type AttachUserPoliciesResponses, type BootstrapUserData, type BootstrapUserError, type BootstrapUserErrors, type BootstrapUserResponse, type BootstrapUserResponses, type Chat, type ChatCompletionChoice, type ChatCompletionForChatRequest, type ChatCompletionRequest, type ChatCompletionResponse, type ChatCompletionResponseMessage, type ChatMessage, type ChatMessageInput, Chats, type ClientOptions, type ConversationActorRecord, type ConversationMessageRecord, type ConversationRecord, Conversations, type CreateActorData, type CreateActorError, type CreateActorErrors, type CreateActorResponse, type CreateActorResponses, type CreateAgentActorData, type CreateAgentActorError, type CreateAgentActorErrors, type CreateAgentActorResponse, type CreateAgentActorResponses, type CreateAgentData, type CreateAgentError, type CreateAgentErrors, type CreateAgentGenerationData, type CreateAgentGenerationError, type CreateAgentGenerationErrors, type CreateAgentGenerationRequest, type CreateAgentGenerationResponse, type CreateAgentGenerationResponses, type CreateAgentRequest, type CreateAgentResponse, type CreateAgentResponses, type CreateAgentSessionData, type CreateAgentSessionError, type CreateAgentSessionErrors, type CreateAgentSessionResponse, type CreateAgentSessionResponses, type CreateAgentToolData, type CreateAgentToolError, type CreateAgentToolErrors, type CreateAgentToolRequest, type CreateAgentToolResponse, type CreateAgentToolResponses, type CreateAiProviderData, type CreateAiProviderErrors, type CreateAiProviderResponse, type CreateAiProviderResponses, type CreateApiKeyData, type CreateApiKeyError, type CreateApiKeyErrors, type CreateApiKeyResponse, type CreateApiKeyResponses, type CreateChatActorData, type CreateChatActorError, type CreateChatActorErrors, type CreateChatActorResponse, type CreateChatActorResponses, type CreateChatCompletionData, type CreateChatCompletionError, type CreateChatCompletionErrors, type CreateChatCompletionForChatData, type CreateChatCompletionForChatError, type CreateChatCompletionForChatErrors, type CreateChatCompletionForChatResponse, type CreateChatCompletionForChatResponses, type CreateChatCompletionResponse, type CreateChatCompletionResponses, type CreateChatData, type CreateChatError, type CreateChatErrors, type CreateChatRequest, type CreateChatResponse, type CreateChatResponses, type CreateConversationData, type CreateConversationError, type CreateConversationErrors, type CreateConversationResponse, type CreateConversationResponses, type CreateDocumentData, type CreateDocumentError, type CreateDocumentErrors, type CreateDocumentResponse, type CreateDocumentResponses, type CreateFileData, type CreateFileError, type CreateFileErrors, type CreateFileResponse, type CreateFileResponses, type CreatePolicyData, type CreatePolicyError, type CreatePolicyErrors, type CreatePolicyResponse, type CreatePolicyResponses, type CreateProjectData, type CreateProjectErrors, type CreateProjectResponse, type CreateProjectResponses, type CreateSecretData, type CreateSecretErrors, type CreateSecretResponse, type CreateSecretResponses, type CreateSessionRequest, type CreateUserData, type CreateUserError, type CreateUserErrors, type CreateUserResponse, type CreateUserResponses, type CreateWebhookData, type CreateWebhookErrors, type CreateWebhookRequest, type CreateWebhookResponse, type CreateWebhookResponses, type DeleteActorData, type DeleteActorError, type DeleteActorErrors, type DeleteActorResponse, type DeleteActorResponses, type DeleteAgentData, type DeleteAgentError, type DeleteAgentErrors, type DeleteAgentResponse, type DeleteAgentResponses, type DeleteAgentSessionData, type DeleteAgentSessionError, type DeleteAgentSessionErrors, type DeleteAgentSessionResponse, type DeleteAgentSessionResponses, type DeleteAgentToolData, type DeleteAgentToolError, type DeleteAgentToolErrors, type DeleteAgentToolResponse, type DeleteAgentToolResponses, type DeleteAiProviderData, type DeleteAiProviderErrors, type DeleteAiProviderResponses, type DeleteApiKeyData, type DeleteApiKeyErrors, type DeleteApiKeyResponse, type DeleteApiKeyResponses, type DeleteChatData, type DeleteChatError, type DeleteChatErrors, type DeleteChatResponse, type DeleteChatResponses, type DeleteConversationData, type DeleteConversationError, type DeleteConversationErrors, type DeleteConversationResponse, type DeleteConversationResponses, type DeleteDocumentData, type DeleteDocumentError, type DeleteDocumentErrors, type DeleteDocumentResponse, type DeleteDocumentResponses, type DeleteFileData, type DeleteFileError, type DeleteFileErrors, type DeleteFileResponse, type DeleteFileResponses, type DeletePolicyData, type DeletePolicyErrors, type DeletePolicyResponse, type DeletePolicyResponses, type DeleteProjectData, type DeleteProjectErrors, type DeleteProjectResponse, type DeleteProjectResponses, type DeleteSecretData, type DeleteSecretErrors, type DeleteSecretResponses, type DeleteUserData, type DeleteUserError, type DeleteUserErrors, type DeleteUserResponse, type DeleteUserResponses, type DeleteWebhookData, type DeleteWebhookErrors, type DeleteWebhookResponse, type DeleteWebhookResponses, type Delivery, type DeliveryListResponse, type DocumentRecord, Documents, type DownloadFileBase64Data, type DownloadFileBase64Error, type DownloadFileBase64Errors, type DownloadFileBase64Response, type DownloadFileBase64Responses, type DownloadFileData, type DownloadFileError, type DownloadFileErrors, type DownloadFileResponse, type DownloadFileResponses, type ErrorResponse, type FileRecord, Files, type GenerateConversationMessageCompleted, type GenerateConversationMessageData, type GenerateConversationMessageError, type GenerateConversationMessageErrors, type GenerateConversationMessageRequiresAction, type GenerateConversationMessageResponse, type GenerateConversationMessageResponse2, type GenerateConversationMessageResponses, type GenerateSessionRequest, type GenerateSessionResponse, type GenerateSessionResponseData, type GenerateSessionResponseError, type GenerateSessionResponseErrors, type GenerateSessionResponseResponse, type GenerateSessionResponseResponses, type GetActorData, type GetActorError, type GetActorErrors, type GetActorResponse, type GetActorResponses, type GetActorTagsData, type GetActorTagsError, type GetActorTagsErrors, type GetActorTagsResponse, type GetActorTagsResponses, type GetAgentData, type GetAgentError, type GetAgentErrors, type GetAgentResponse, type GetAgentResponses, type GetAgentSessionData, type GetAgentSessionError, type GetAgentSessionErrors, type GetAgentSessionResponse, type GetAgentSessionResponses, type GetAgentToolData, type GetAgentToolError, type GetAgentToolErrors, type GetAgentToolResponse, type GetAgentToolResponses, type GetAgentTraceData, type GetAgentTraceError, type GetAgentTraceErrors, type GetAgentTraceResponse, type GetAgentTraceResponses, type GetAiProviderData, type GetAiProviderErrors, type GetAiProviderResponse, type GetAiProviderResponses, type GetApiKeyData, type GetApiKeyErrors, type GetApiKeyResponse, type GetApiKeyResponses, type GetChatData, type GetChatError, type GetChatErrors, type GetChatResponse, type GetChatResponses, type GetConversationData, type GetConversationError, type GetConversationErrors, type GetConversationResponse, type GetConversationResponses, type GetConversationTagsData, type GetConversationTagsError, type GetConversationTagsErrors, type GetConversationTagsResponse, type GetConversationTagsResponses, type GetDocumentData, type GetDocumentError, type GetDocumentErrors, type GetDocumentResponse, type GetDocumentResponses, type GetDocumentTagsData, type GetDocumentTagsError, type GetDocumentTagsErrors, type GetDocumentTagsResponse, type GetDocumentTagsResponses, type GetFileData, type GetFileError, type GetFileErrors, type GetFileResponse, type GetFileResponses, type GetFileTagsData, type GetFileTagsError, type GetFileTagsErrors, type GetFileTagsResponse, type GetFileTagsResponses, type GetPolicyData, type GetPolicyErrors, type GetPolicyResponse, type GetPolicyResponses, type GetProjectData, type GetProjectErrors, type GetProjectResponse, type GetProjectResponses, type GetSecretData, type GetSecretErrors, type GetSecretResponse, type GetSecretResponses, type GetSessionTagsData, type GetSessionTagsError, type GetSessionTagsErrors, type GetSessionTagsResponse, type GetSessionTagsResponses, type GetUserData, type GetUserError, type GetUserErrors, type GetUserPoliciesData, type GetUserPoliciesErrors, type GetUserPoliciesResponse, type GetUserPoliciesResponses, type GetUserResponse, type GetUserResponses, type GetWebhookData, type GetWebhookDeliveryData, type GetWebhookDeliveryErrors, type GetWebhookDeliveryResponse, type GetWebhookDeliveryResponses, type GetWebhookErrors, type GetWebhookResponse, type GetWebhookResponses, type ListActorsData, type ListActorsError, type ListActorsErrors, type ListActorsResponse, type ListActorsResponses, type ListAgentSessionMessagesData, type ListAgentSessionMessagesError, type ListAgentSessionMessagesErrors, type ListAgentSessionMessagesResponse, type ListAgentSessionMessagesResponses, type ListAgentSessionsData, type ListAgentSessionsError, type ListAgentSessionsErrors, type ListAgentSessionsResponse, type ListAgentSessionsResponses, type ListAgentToolsData, type ListAgentToolsError, type ListAgentToolsErrors, type ListAgentToolsResponse, type ListAgentToolsResponses, type ListAgentTracesData, type ListAgentTracesError, type ListAgentTracesErrors, type ListAgentTracesResponse, type ListAgentTracesResponses, type ListAgentsData, type ListAgentsError, type ListAgentsErrors, type ListAgentsResponse, type ListAgentsResponses, type ListAiProvidersData, type ListAiProvidersErrors, type ListAiProvidersResponse, type ListAiProvidersResponses, type ListChatsData, type ListChatsError, type ListChatsErrors, type ListChatsResponse, type ListChatsResponses, type ListConversationActorsData, type ListConversationActorsError, type ListConversationActorsErrors, type ListConversationActorsResponse, type ListConversationActorsResponses, type ListConversationMessagesData, type ListConversationMessagesError, type ListConversationMessagesErrors, type ListConversationMessagesResponse, type ListConversationMessagesResponses, type ListConversationsData, type ListConversationsError, type ListConversationsErrors, type ListConversationsResponse, type ListConversationsResponses, type ListDocumentsData, type ListDocumentsError, type ListDocumentsErrors, type ListDocumentsResponse, type ListDocumentsResponses, type ListFilesData, type ListFilesError, type ListFilesErrors, type ListFilesResponse, type ListFilesResponses, type ListPoliciesData, type ListPoliciesErrors, type ListPoliciesResponse, type ListPoliciesResponses, type ListSecretsData, type ListSecretsErrors, type ListSecretsResponse, type ListSecretsResponses, type ListUsersData, type ListUsersError, type ListUsersErrors, type ListUsersResponse, type ListUsersResponses, type ListWebhookDeliveriesData, type ListWebhookDeliveriesErrors, type ListWebhookDeliveriesResponse, type ListWebhookDeliveriesResponses, type ListWebhooksData, type ListWebhooksErrors, type ListWebhooksResponse, type ListWebhooksResponses, type LoginResponse, type LoginUserData, type LoginUserError, type LoginUserErrors, type LoginUserResponse, type LoginUserResponses, type MergeActorTagsData, type MergeActorTagsError, type MergeActorTagsErrors, type MergeActorTagsResponse, type MergeActorTagsResponses, type MergeConversationTagsData, type MergeConversationTagsError, type MergeConversationTagsErrors, type MergeConversationTagsResponse, type MergeConversationTagsResponses, type MergeDocumentTagsData, type MergeDocumentTagsError, type MergeDocumentTagsErrors, type MergeDocumentTagsResponse, type MergeDocumentTagsResponses, type MergeFileTagsData, type MergeFileTagsError, type MergeFileTagsErrors, type MergeFileTagsResponse, type MergeFileTagsResponses, type MergeSessionTagsData, type MergeSessionTagsError, type MergeSessionTagsErrors, type MergeSessionTagsResponse, type MergeSessionTagsResponses, type Options, Policies, type PolicyDocument, type PolicyRecord, type PolicyStatement, type ProjectRecord, Projects, type RemoveConversationMessageData, type RemoveConversationMessageError, type RemoveConversationMessageErrors, type RemoveConversationMessageResponse, type RemoveConversationMessageResponses, type ReplaceActorTagsData, type ReplaceActorTagsError, type ReplaceActorTagsErrors, type ReplaceActorTagsResponse, type ReplaceActorTagsResponses, type ReplaceConversationTagsData, type ReplaceConversationTagsError, type ReplaceConversationTagsErrors, type ReplaceConversationTagsResponse, type ReplaceConversationTagsResponses, type ReplaceDocumentTagsData, type ReplaceDocumentTagsError, type ReplaceDocumentTagsErrors, type ReplaceDocumentTagsResponse, type ReplaceDocumentTagsResponses, type ReplaceFileTagsData, type ReplaceFileTagsError, type ReplaceFileTagsErrors, type ReplaceFileTagsResponse, type ReplaceFileTagsResponses, type ReplaceSessionTagsData, type ReplaceSessionTagsError, type ReplaceSessionTagsErrors, type ReplaceSessionTagsResponse, type ReplaceSessionTagsResponses, type RotateWebhookSecretData, type RotateWebhookSecretErrors, type RotateWebhookSecretResponse, type RotateWebhookSecretResponses, type SearchDocumentsData, type SearchDocumentsError, type SearchDocumentsErrors, type SearchDocumentsResponse, type SearchDocumentsResponses, Secrets, type SendSessionMessageResponse, type SessionId, type SessionMessage, type SessionRecord, Sessions, type SubmitAgentToolOutputsData, type SubmitAgentToolOutputsError, type SubmitAgentToolOutputsErrors, type SubmitAgentToolOutputsResponse, type SubmitAgentToolOutputsResponses, type SubmitSessionToolOutputsData, type SubmitSessionToolOutputsError, type SubmitSessionToolOutputsErrors, type SubmitSessionToolOutputsRequest, type SubmitSessionToolOutputsResponse, type SubmitSessionToolOutputsResponses, type SubmitToolOutputsRequest, type UpdateActorData, type UpdateActorError, type UpdateActorErrors, type UpdateActorResponse, type UpdateActorResponses, type UpdateAgentData, type UpdateAgentError, type UpdateAgentErrors, type UpdateAgentRequest, type UpdateAgentResponse, type UpdateAgentResponses, type UpdateAgentToolData, type UpdateAgentToolError, type UpdateAgentToolErrors, type UpdateAgentToolRequest, type UpdateAgentToolResponse, type UpdateAgentToolResponses, type UpdateAiProviderData, type UpdateAiProviderErrors, type UpdateAiProviderResponses, type UpdateApiKeyData, type UpdateApiKeyError, type UpdateApiKeyErrors, type UpdateApiKeyResponse, type UpdateApiKeyResponses, type UpdateConversationData, type UpdateConversationError, type UpdateConversationErrors, type UpdateConversationResponse, type UpdateConversationResponses, type UpdateDocumentData, type UpdateDocumentError, type UpdateDocumentErrors, type UpdateDocumentResponse, type UpdateDocumentResponses, type UpdateFileMetadataData, type UpdateFileMetadataError, type UpdateFileMetadataErrors, type UpdateFileMetadataResponse, type UpdateFileMetadataResponses, type UpdatePolicyData, type UpdatePolicyError, type UpdatePolicyErrors, type UpdatePolicyResponse, type UpdatePolicyResponses, type UpdateSecretData, type UpdateSecretErrors, type UpdateSecretResponses, type UpdateSessionData, type UpdateSessionError, type UpdateSessionErrors, type UpdateSessionRequest, type UpdateSessionResponse, type UpdateSessionResponses, type UpdateWebhookData, type UpdateWebhookErrors, type UpdateWebhookRequest, type UpdateWebhookResponse, type UpdateWebhookResponses, type UploadFileBase64Data, type UploadFileBase64Error, type UploadFileBase64Errors, type UploadFileBase64Request, type UploadFileBase64Response, type UploadFileBase64Responses, type UploadFileData, type UploadFileError, type UploadFileErrors, type UploadFileResponse, type UploadFileResponses, type UserRecord, Users, type Webhook, type WebhookWithSecret, Webhooks, createClient, createConfig };
|
|
6255
|
+
interface SoatClientOptions {
|
|
6256
|
+
/**
|
|
6257
|
+
* Base URL of the SOAT API (without the `/api/v1` prefix).
|
|
6258
|
+
* Defaults to `/api/v1` when not provided.
|
|
6259
|
+
*
|
|
6260
|
+
* @example 'https://api.example.com/api/v1'
|
|
6261
|
+
*/
|
|
6262
|
+
baseUrl?: string;
|
|
6263
|
+
/**
|
|
6264
|
+
* Bearer token (JWT or API key starting with `sk_`) used for authentication.
|
|
6265
|
+
* Sets the `Authorization: Bearer <token>` header on every request.
|
|
6266
|
+
*/
|
|
6267
|
+
token?: string;
|
|
6268
|
+
/**
|
|
6269
|
+
* Custom headers merged into every request. Use this when you need fine-
|
|
6270
|
+
* grained control over auth headers or want to pass additional headers.
|
|
6271
|
+
*/
|
|
6272
|
+
headers?: Record<string, string>;
|
|
6273
|
+
}
|
|
6274
|
+
/**
|
|
6275
|
+
* Stripe-style SOAT client.
|
|
6276
|
+
*
|
|
6277
|
+
* Create an instance once and reuse it throughout your application:
|
|
6278
|
+
*
|
|
6279
|
+
* ```ts
|
|
6280
|
+
* import { SoatClient } from '@soat/sdk';
|
|
6281
|
+
*
|
|
6282
|
+
* const soat = new SoatClient({ baseUrl: 'https://api.example.com/api/v1', token: 'sk_...' });
|
|
6283
|
+
*
|
|
6284
|
+
* const { data, error } = await soat.sessions.addSessionMessage({
|
|
6285
|
+
* path: { agent_id: AGENT_ID, session_id: SESSION_ID },
|
|
6286
|
+
* body: { message: 'What is the capital of France?' },
|
|
6287
|
+
* });
|
|
6288
|
+
* ```
|
|
6289
|
+
*
|
|
6290
|
+
* The instance exposes one property per API resource. Each property mirrors
|
|
6291
|
+
* the corresponding static class from the generated SDK, so all method
|
|
6292
|
+
* signatures, types, and return values are identical — the only difference
|
|
6293
|
+
* is that you never need to supply `client` yourself.
|
|
6294
|
+
*/
|
|
6295
|
+
declare class SoatClient {
|
|
6296
|
+
readonly actors: typeof Actors;
|
|
6297
|
+
readonly agentTools: typeof AgentTools;
|
|
6298
|
+
readonly agentTraces: typeof AgentTraces;
|
|
6299
|
+
readonly agents: typeof Agents;
|
|
6300
|
+
readonly aiProviders: typeof AiProviders;
|
|
6301
|
+
readonly apiKeys: typeof ApiKeys;
|
|
6302
|
+
readonly chats: typeof Chats;
|
|
6303
|
+
readonly conversations: typeof Conversations;
|
|
6304
|
+
readonly documents: typeof Documents;
|
|
6305
|
+
readonly files: typeof Files;
|
|
6306
|
+
readonly policies: typeof Policies;
|
|
6307
|
+
readonly projects: typeof Projects;
|
|
6308
|
+
readonly secrets: typeof Secrets;
|
|
6309
|
+
readonly sessions: typeof Sessions;
|
|
6310
|
+
readonly users: typeof Users;
|
|
6311
|
+
readonly webhooks: typeof Webhooks;
|
|
6312
|
+
constructor({ baseUrl, token, headers }?: SoatClientOptions);
|
|
6313
|
+
}
|
|
6314
|
+
|
|
6315
|
+
export { type ActorRecord, Actors, type AddConversationMessageData, type AddConversationMessageError, type AddConversationMessageErrors, type AddConversationMessageResponse, type AddConversationMessageResponses, type AddSessionMessageData, type AddSessionMessageError, type AddSessionMessageErrors, type AddSessionMessageRequest, type AddSessionMessageResponse, type AddSessionMessageResponse2, type AddSessionMessageResponses, type AddSessionMessageSaved, type Agent, type AgentGenerationResponse, type AgentId, type AgentTool, AgentTools, type AgentTrace, AgentTraces, Agents, AiProviders, type ApiKeyCreated, type ApiKeyRecord, ApiKeys, type AttachUserPoliciesData, type AttachUserPoliciesError, type AttachUserPoliciesErrors, type AttachUserPoliciesResponse, type AttachUserPoliciesResponses, type BootstrapUserData, type BootstrapUserError, type BootstrapUserErrors, type BootstrapUserResponse, type BootstrapUserResponses, type Chat, type ChatCompletionChoice, type ChatCompletionForChatRequest, type ChatCompletionRequest, type ChatCompletionResponse, type ChatCompletionResponseMessage, type ChatMessage, type ChatMessageInput, Chats, type ClientOptions, type ConversationActorRecord, type ConversationMessageRecord, type ConversationRecord, Conversations, type CreateActorData, type CreateActorError, type CreateActorErrors, type CreateActorResponse, type CreateActorResponses, type CreateAgentActorData, type CreateAgentActorError, type CreateAgentActorErrors, type CreateAgentActorResponse, type CreateAgentActorResponses, type CreateAgentData, type CreateAgentError, type CreateAgentErrors, type CreateAgentGenerationData, type CreateAgentGenerationError, type CreateAgentGenerationErrors, type CreateAgentGenerationRequest, type CreateAgentGenerationResponse, type CreateAgentGenerationResponses, type CreateAgentRequest, type CreateAgentResponse, type CreateAgentResponses, type CreateAgentSessionData, type CreateAgentSessionError, type CreateAgentSessionErrors, type CreateAgentSessionResponse, type CreateAgentSessionResponses, type CreateAgentToolData, type CreateAgentToolError, type CreateAgentToolErrors, type CreateAgentToolRequest, type CreateAgentToolResponse, type CreateAgentToolResponses, type CreateAiProviderData, type CreateAiProviderErrors, type CreateAiProviderResponse, type CreateAiProviderResponses, type CreateApiKeyData, type CreateApiKeyError, type CreateApiKeyErrors, type CreateApiKeyResponse, type CreateApiKeyResponses, type CreateChatActorData, type CreateChatActorError, type CreateChatActorErrors, type CreateChatActorResponse, type CreateChatActorResponses, type CreateChatCompletionData, type CreateChatCompletionError, type CreateChatCompletionErrors, type CreateChatCompletionForChatData, type CreateChatCompletionForChatError, type CreateChatCompletionForChatErrors, type CreateChatCompletionForChatResponse, type CreateChatCompletionForChatResponses, type CreateChatCompletionResponse, type CreateChatCompletionResponses, type CreateChatData, type CreateChatError, type CreateChatErrors, type CreateChatRequest, type CreateChatResponse, type CreateChatResponses, type CreateConversationData, type CreateConversationError, type CreateConversationErrors, type CreateConversationResponse, type CreateConversationResponses, type CreateDocumentData, type CreateDocumentError, type CreateDocumentErrors, type CreateDocumentResponse, type CreateDocumentResponses, type CreateFileData, type CreateFileError, type CreateFileErrors, type CreateFileResponse, type CreateFileResponses, type CreatePolicyData, type CreatePolicyError, type CreatePolicyErrors, type CreatePolicyResponse, type CreatePolicyResponses, type CreateProjectData, type CreateProjectErrors, type CreateProjectResponse, type CreateProjectResponses, type CreateSecretData, type CreateSecretErrors, type CreateSecretResponse, type CreateSecretResponses, type CreateSessionRequest, type CreateUserData, type CreateUserError, type CreateUserErrors, type CreateUserResponse, type CreateUserResponses, type CreateWebhookData, type CreateWebhookErrors, type CreateWebhookRequest, type CreateWebhookResponse, type CreateWebhookResponses, type DeleteActorData, type DeleteActorError, type DeleteActorErrors, type DeleteActorResponse, type DeleteActorResponses, type DeleteAgentData, type DeleteAgentError, type DeleteAgentErrors, type DeleteAgentResponse, type DeleteAgentResponses, type DeleteAgentSessionData, type DeleteAgentSessionError, type DeleteAgentSessionErrors, type DeleteAgentSessionResponse, type DeleteAgentSessionResponses, type DeleteAgentToolData, type DeleteAgentToolError, type DeleteAgentToolErrors, type DeleteAgentToolResponse, type DeleteAgentToolResponses, type DeleteAiProviderData, type DeleteAiProviderErrors, type DeleteAiProviderResponses, type DeleteApiKeyData, type DeleteApiKeyErrors, type DeleteApiKeyResponse, type DeleteApiKeyResponses, type DeleteChatData, type DeleteChatError, type DeleteChatErrors, type DeleteChatResponse, type DeleteChatResponses, type DeleteConversationData, type DeleteConversationError, type DeleteConversationErrors, type DeleteConversationResponse, type DeleteConversationResponses, type DeleteDocumentData, type DeleteDocumentError, type DeleteDocumentErrors, type DeleteDocumentResponse, type DeleteDocumentResponses, type DeleteFileData, type DeleteFileError, type DeleteFileErrors, type DeleteFileResponse, type DeleteFileResponses, type DeletePolicyData, type DeletePolicyErrors, type DeletePolicyResponse, type DeletePolicyResponses, type DeleteProjectData, type DeleteProjectErrors, type DeleteProjectResponse, type DeleteProjectResponses, type DeleteSecretData, type DeleteSecretErrors, type DeleteSecretResponses, type DeleteUserData, type DeleteUserError, type DeleteUserErrors, type DeleteUserResponse, type DeleteUserResponses, type DeleteWebhookData, type DeleteWebhookErrors, type DeleteWebhookResponse, type DeleteWebhookResponses, type Delivery, type DeliveryListResponse, type DocumentRecord, Documents, type DownloadFileBase64Data, type DownloadFileBase64Error, type DownloadFileBase64Errors, type DownloadFileBase64Response, type DownloadFileBase64Responses, type DownloadFileData, type DownloadFileError, type DownloadFileErrors, type DownloadFileResponse, type DownloadFileResponses, type ErrorResponse, type FileRecord, Files, type GenerateConversationMessageCompleted, type GenerateConversationMessageData, type GenerateConversationMessageError, type GenerateConversationMessageErrors, type GenerateConversationMessageRequiresAction, type GenerateConversationMessageResponse, type GenerateConversationMessageResponse2, type GenerateConversationMessageResponses, type GenerateSessionRequest, type GenerateSessionResponse, type GenerateSessionResponseData, type GenerateSessionResponseError, type GenerateSessionResponseErrors, type GenerateSessionResponseResponse, type GenerateSessionResponseResponses, type GetActorData, type GetActorError, type GetActorErrors, type GetActorResponse, type GetActorResponses, type GetActorTagsData, type GetActorTagsError, type GetActorTagsErrors, type GetActorTagsResponse, type GetActorTagsResponses, type GetAgentData, type GetAgentError, type GetAgentErrors, type GetAgentResponse, type GetAgentResponses, type GetAgentSessionData, type GetAgentSessionError, type GetAgentSessionErrors, type GetAgentSessionResponse, type GetAgentSessionResponses, type GetAgentToolData, type GetAgentToolError, type GetAgentToolErrors, type GetAgentToolResponse, type GetAgentToolResponses, type GetAgentTraceData, type GetAgentTraceError, type GetAgentTraceErrors, type GetAgentTraceResponse, type GetAgentTraceResponses, type GetAiProviderData, type GetAiProviderErrors, type GetAiProviderResponse, type GetAiProviderResponses, type GetApiKeyData, type GetApiKeyErrors, type GetApiKeyResponse, type GetApiKeyResponses, type GetChatData, type GetChatError, type GetChatErrors, type GetChatResponse, type GetChatResponses, type GetConversationData, type GetConversationError, type GetConversationErrors, type GetConversationResponse, type GetConversationResponses, type GetConversationTagsData, type GetConversationTagsError, type GetConversationTagsErrors, type GetConversationTagsResponse, type GetConversationTagsResponses, type GetDocumentData, type GetDocumentError, type GetDocumentErrors, type GetDocumentResponse, type GetDocumentResponses, type GetDocumentTagsData, type GetDocumentTagsError, type GetDocumentTagsErrors, type GetDocumentTagsResponse, type GetDocumentTagsResponses, type GetFileData, type GetFileError, type GetFileErrors, type GetFileResponse, type GetFileResponses, type GetFileTagsData, type GetFileTagsError, type GetFileTagsErrors, type GetFileTagsResponse, type GetFileTagsResponses, type GetPolicyData, type GetPolicyErrors, type GetPolicyResponse, type GetPolicyResponses, type GetProjectData, type GetProjectErrors, type GetProjectResponse, type GetProjectResponses, type GetSecretData, type GetSecretErrors, type GetSecretResponse, type GetSecretResponses, type GetSessionTagsData, type GetSessionTagsError, type GetSessionTagsErrors, type GetSessionTagsResponse, type GetSessionTagsResponses, type GetUserData, type GetUserError, type GetUserErrors, type GetUserPoliciesData, type GetUserPoliciesErrors, type GetUserPoliciesResponse, type GetUserPoliciesResponses, type GetUserResponse, type GetUserResponses, type GetWebhookData, type GetWebhookDeliveryData, type GetWebhookDeliveryErrors, type GetWebhookDeliveryResponse, type GetWebhookDeliveryResponses, type GetWebhookErrors, type GetWebhookResponse, type GetWebhookResponses, type ListActorsData, type ListActorsError, type ListActorsErrors, type ListActorsResponse, type ListActorsResponses, type ListAgentSessionMessagesData, type ListAgentSessionMessagesError, type ListAgentSessionMessagesErrors, type ListAgentSessionMessagesResponse, type ListAgentSessionMessagesResponses, type ListAgentSessionsData, type ListAgentSessionsError, type ListAgentSessionsErrors, type ListAgentSessionsResponse, type ListAgentSessionsResponses, type ListAgentToolsData, type ListAgentToolsError, type ListAgentToolsErrors, type ListAgentToolsResponse, type ListAgentToolsResponses, type ListAgentTracesData, type ListAgentTracesError, type ListAgentTracesErrors, type ListAgentTracesResponse, type ListAgentTracesResponses, type ListAgentsData, type ListAgentsError, type ListAgentsErrors, type ListAgentsResponse, type ListAgentsResponses, type ListAiProvidersData, type ListAiProvidersErrors, type ListAiProvidersResponse, type ListAiProvidersResponses, type ListChatsData, type ListChatsError, type ListChatsErrors, type ListChatsResponse, type ListChatsResponses, type ListConversationActorsData, type ListConversationActorsError, type ListConversationActorsErrors, type ListConversationActorsResponse, type ListConversationActorsResponses, type ListConversationMessagesData, type ListConversationMessagesError, type ListConversationMessagesErrors, type ListConversationMessagesResponse, type ListConversationMessagesResponses, type ListConversationsData, type ListConversationsError, type ListConversationsErrors, type ListConversationsResponse, type ListConversationsResponses, type ListDocumentsData, type ListDocumentsError, type ListDocumentsErrors, type ListDocumentsResponse, type ListDocumentsResponses, type ListFilesData, type ListFilesError, type ListFilesErrors, type ListFilesResponse, type ListFilesResponses, type ListPoliciesData, type ListPoliciesErrors, type ListPoliciesResponse, type ListPoliciesResponses, type ListSecretsData, type ListSecretsErrors, type ListSecretsResponse, type ListSecretsResponses, type ListUsersData, type ListUsersError, type ListUsersErrors, type ListUsersResponse, type ListUsersResponses, type ListWebhookDeliveriesData, type ListWebhookDeliveriesErrors, type ListWebhookDeliveriesResponse, type ListWebhookDeliveriesResponses, type ListWebhooksData, type ListWebhooksErrors, type ListWebhooksResponse, type ListWebhooksResponses, type LoginResponse, type LoginUserData, type LoginUserError, type LoginUserErrors, type LoginUserResponse, type LoginUserResponses, type MergeActorTagsData, type MergeActorTagsError, type MergeActorTagsErrors, type MergeActorTagsResponse, type MergeActorTagsResponses, type MergeConversationTagsData, type MergeConversationTagsError, type MergeConversationTagsErrors, type MergeConversationTagsResponse, type MergeConversationTagsResponses, type MergeDocumentTagsData, type MergeDocumentTagsError, type MergeDocumentTagsErrors, type MergeDocumentTagsResponse, type MergeDocumentTagsResponses, type MergeFileTagsData, type MergeFileTagsError, type MergeFileTagsErrors, type MergeFileTagsResponse, type MergeFileTagsResponses, type MergeSessionTagsData, type MergeSessionTagsError, type MergeSessionTagsErrors, type MergeSessionTagsResponse, type MergeSessionTagsResponses, type Options, Policies, type PolicyDocument, type PolicyRecord, type PolicyStatement, type ProjectRecord, Projects, type RemoveConversationMessageData, type RemoveConversationMessageError, type RemoveConversationMessageErrors, type RemoveConversationMessageResponse, type RemoveConversationMessageResponses, type ReplaceActorTagsData, type ReplaceActorTagsError, type ReplaceActorTagsErrors, type ReplaceActorTagsResponse, type ReplaceActorTagsResponses, type ReplaceConversationTagsData, type ReplaceConversationTagsError, type ReplaceConversationTagsErrors, type ReplaceConversationTagsResponse, type ReplaceConversationTagsResponses, type ReplaceDocumentTagsData, type ReplaceDocumentTagsError, type ReplaceDocumentTagsErrors, type ReplaceDocumentTagsResponse, type ReplaceDocumentTagsResponses, type ReplaceFileTagsData, type ReplaceFileTagsError, type ReplaceFileTagsErrors, type ReplaceFileTagsResponse, type ReplaceFileTagsResponses, type ReplaceSessionTagsData, type ReplaceSessionTagsError, type ReplaceSessionTagsErrors, type ReplaceSessionTagsResponse, type ReplaceSessionTagsResponses, type RotateWebhookSecretData, type RotateWebhookSecretErrors, type RotateWebhookSecretResponse, type RotateWebhookSecretResponses, type SearchDocumentsData, type SearchDocumentsError, type SearchDocumentsErrors, type SearchDocumentsResponse, type SearchDocumentsResponses, Secrets, type SendSessionMessageResponse, type SessionId, type SessionMessage, type SessionRecord, Sessions, SoatClient, type SoatClientOptions, type SubmitAgentToolOutputsData, type SubmitAgentToolOutputsError, type SubmitAgentToolOutputsErrors, type SubmitAgentToolOutputsResponse, type SubmitAgentToolOutputsResponses, type SubmitSessionToolOutputsData, type SubmitSessionToolOutputsError, type SubmitSessionToolOutputsErrors, type SubmitSessionToolOutputsRequest, type SubmitSessionToolOutputsResponse, type SubmitSessionToolOutputsResponses, type SubmitToolOutputsRequest, type UpdateActorData, type UpdateActorError, type UpdateActorErrors, type UpdateActorResponse, type UpdateActorResponses, type UpdateAgentData, type UpdateAgentError, type UpdateAgentErrors, type UpdateAgentRequest, type UpdateAgentResponse, type UpdateAgentResponses, type UpdateAgentToolData, type UpdateAgentToolError, type UpdateAgentToolErrors, type UpdateAgentToolRequest, type UpdateAgentToolResponse, type UpdateAgentToolResponses, type UpdateAiProviderData, type UpdateAiProviderErrors, type UpdateAiProviderResponses, type UpdateApiKeyData, type UpdateApiKeyError, type UpdateApiKeyErrors, type UpdateApiKeyResponse, type UpdateApiKeyResponses, type UpdateConversationData, type UpdateConversationError, type UpdateConversationErrors, type UpdateConversationResponse, type UpdateConversationResponses, type UpdateDocumentData, type UpdateDocumentError, type UpdateDocumentErrors, type UpdateDocumentResponse, type UpdateDocumentResponses, type UpdateFileMetadataData, type UpdateFileMetadataError, type UpdateFileMetadataErrors, type UpdateFileMetadataResponse, type UpdateFileMetadataResponses, type UpdatePolicyData, type UpdatePolicyError, type UpdatePolicyErrors, type UpdatePolicyResponse, type UpdatePolicyResponses, type UpdateSecretData, type UpdateSecretErrors, type UpdateSecretResponses, type UpdateSessionData, type UpdateSessionError, type UpdateSessionErrors, type UpdateSessionRequest, type UpdateSessionResponse, type UpdateSessionResponses, type UpdateWebhookData, type UpdateWebhookErrors, type UpdateWebhookRequest, type UpdateWebhookResponse, type UpdateWebhookResponses, type UploadFileBase64Data, type UploadFileBase64Error, type UploadFileBase64Errors, type UploadFileBase64Request, type UploadFileBase64Response, type UploadFileBase64Responses, type UploadFileData, type UploadFileError, type UploadFileErrors, type UploadFileResponse, type UploadFileResponses, type UserRecord, Users, type Webhook, type WebhookWithSecret, Webhooks, createClient, createConfig };
|