@soat/sdk 0.4.6 → 0.4.7
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 +148 -118
- package/dist/index.d.cts +119 -119
- package/dist/index.d.ts +119 -119
- package/dist/index.js +148 -118
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -310,7 +310,7 @@ type Options$1<TData extends TDataShape = TDataShape, ThrowOnError extends boole
|
|
|
310
310
|
declare const createClient: (config?: Config) => Client;
|
|
311
311
|
|
|
312
312
|
type ClientOptions = {
|
|
313
|
-
baseUrl: `${string}
|
|
313
|
+
baseUrl: `${string}://{baseUrl}` | (string & {});
|
|
314
314
|
};
|
|
315
315
|
type ActorRecord = {
|
|
316
316
|
/**
|
|
@@ -1342,7 +1342,7 @@ type ListActorsData = {
|
|
|
1342
1342
|
*/
|
|
1343
1343
|
offset?: number;
|
|
1344
1344
|
};
|
|
1345
|
-
url: '/actors';
|
|
1345
|
+
url: '/api/v1/actors';
|
|
1346
1346
|
};
|
|
1347
1347
|
type ListActorsErrors = {
|
|
1348
1348
|
/**
|
|
@@ -1385,7 +1385,7 @@ type CreateActorData = {
|
|
|
1385
1385
|
};
|
|
1386
1386
|
path?: never;
|
|
1387
1387
|
query?: never;
|
|
1388
|
-
url: '/actors';
|
|
1388
|
+
url: '/api/v1/actors';
|
|
1389
1389
|
};
|
|
1390
1390
|
type CreateActorErrors = {
|
|
1391
1391
|
/**
|
|
@@ -1422,7 +1422,7 @@ type DeleteActorData = {
|
|
|
1422
1422
|
actor_id: string;
|
|
1423
1423
|
};
|
|
1424
1424
|
query?: never;
|
|
1425
|
-
url: '/actors/{actor_id}';
|
|
1425
|
+
url: '/api/v1/actors/{actor_id}';
|
|
1426
1426
|
};
|
|
1427
1427
|
type DeleteActorErrors = {
|
|
1428
1428
|
/**
|
|
@@ -1455,7 +1455,7 @@ type GetActorData = {
|
|
|
1455
1455
|
actor_id: string;
|
|
1456
1456
|
};
|
|
1457
1457
|
query?: never;
|
|
1458
|
-
url: '/actors/{actor_id}';
|
|
1458
|
+
url: '/api/v1/actors/{actor_id}';
|
|
1459
1459
|
};
|
|
1460
1460
|
type GetActorErrors = {
|
|
1461
1461
|
/**
|
|
@@ -1501,7 +1501,7 @@ type UpdateActorData = {
|
|
|
1501
1501
|
actor_id: string;
|
|
1502
1502
|
};
|
|
1503
1503
|
query?: never;
|
|
1504
|
-
url: '/actors/{actor_id}';
|
|
1504
|
+
url: '/api/v1/actors/{actor_id}';
|
|
1505
1505
|
};
|
|
1506
1506
|
type UpdateActorErrors = {
|
|
1507
1507
|
/**
|
|
@@ -1534,7 +1534,7 @@ type GetActorTagsData = {
|
|
|
1534
1534
|
actor_id: string;
|
|
1535
1535
|
};
|
|
1536
1536
|
query?: never;
|
|
1537
|
-
url: '/actors/{actor_id}/tags';
|
|
1537
|
+
url: '/api/v1/actors/{actor_id}/tags';
|
|
1538
1538
|
};
|
|
1539
1539
|
type GetActorTagsErrors = {
|
|
1540
1540
|
/**
|
|
@@ -1571,7 +1571,7 @@ type MergeActorTagsData = {
|
|
|
1571
1571
|
actor_id: string;
|
|
1572
1572
|
};
|
|
1573
1573
|
query?: never;
|
|
1574
|
-
url: '/actors/{actor_id}/tags';
|
|
1574
|
+
url: '/api/v1/actors/{actor_id}/tags';
|
|
1575
1575
|
};
|
|
1576
1576
|
type MergeActorTagsErrors = {
|
|
1577
1577
|
/**
|
|
@@ -1608,7 +1608,7 @@ type ReplaceActorTagsData = {
|
|
|
1608
1608
|
actor_id: string;
|
|
1609
1609
|
};
|
|
1610
1610
|
query?: never;
|
|
1611
|
-
url: '/actors/{actor_id}/tags';
|
|
1611
|
+
url: '/api/v1/actors/{actor_id}/tags';
|
|
1612
1612
|
};
|
|
1613
1613
|
type ReplaceActorTagsErrors = {
|
|
1614
1614
|
/**
|
|
@@ -1643,7 +1643,7 @@ type ListAgentToolsData = {
|
|
|
1643
1643
|
*/
|
|
1644
1644
|
project_id?: string;
|
|
1645
1645
|
};
|
|
1646
|
-
url: '/agents/tools';
|
|
1646
|
+
url: '/api/v1/agents/tools';
|
|
1647
1647
|
};
|
|
1648
1648
|
type ListAgentToolsErrors = {
|
|
1649
1649
|
/**
|
|
@@ -1667,7 +1667,7 @@ type CreateAgentToolData = {
|
|
|
1667
1667
|
body: CreateAgentToolRequest;
|
|
1668
1668
|
path?: never;
|
|
1669
1669
|
query?: never;
|
|
1670
|
-
url: '/agents/tools';
|
|
1670
|
+
url: '/api/v1/agents/tools';
|
|
1671
1671
|
};
|
|
1672
1672
|
type CreateAgentToolErrors = {
|
|
1673
1673
|
/**
|
|
@@ -1697,7 +1697,7 @@ type DeleteAgentToolData = {
|
|
|
1697
1697
|
tool_id: string;
|
|
1698
1698
|
};
|
|
1699
1699
|
query?: never;
|
|
1700
|
-
url: '/agents/tools/{tool_id}';
|
|
1700
|
+
url: '/api/v1/agents/tools/{tool_id}';
|
|
1701
1701
|
};
|
|
1702
1702
|
type DeleteAgentToolErrors = {
|
|
1703
1703
|
/**
|
|
@@ -1727,7 +1727,7 @@ type GetAgentToolData = {
|
|
|
1727
1727
|
tool_id: string;
|
|
1728
1728
|
};
|
|
1729
1729
|
query?: never;
|
|
1730
|
-
url: '/agents/tools/{tool_id}';
|
|
1730
|
+
url: '/api/v1/agents/tools/{tool_id}';
|
|
1731
1731
|
};
|
|
1732
1732
|
type GetAgentToolErrors = {
|
|
1733
1733
|
/**
|
|
@@ -1757,7 +1757,7 @@ type UpdateAgentToolData = {
|
|
|
1757
1757
|
tool_id: string;
|
|
1758
1758
|
};
|
|
1759
1759
|
query?: never;
|
|
1760
|
-
url: '/agents/tools/{tool_id}';
|
|
1760
|
+
url: '/api/v1/agents/tools/{tool_id}';
|
|
1761
1761
|
};
|
|
1762
1762
|
type UpdateAgentToolErrors = {
|
|
1763
1763
|
/**
|
|
@@ -1798,7 +1798,7 @@ type ListAgentTracesData = {
|
|
|
1798
1798
|
*/
|
|
1799
1799
|
offset?: number;
|
|
1800
1800
|
};
|
|
1801
|
-
url: '/agents/traces';
|
|
1801
|
+
url: '/api/v1/agents/traces';
|
|
1802
1802
|
};
|
|
1803
1803
|
type ListAgentTracesErrors = {
|
|
1804
1804
|
/**
|
|
@@ -1829,7 +1829,7 @@ type GetAgentTraceData = {
|
|
|
1829
1829
|
trace_id: string;
|
|
1830
1830
|
};
|
|
1831
1831
|
query?: never;
|
|
1832
|
-
url: '/agents/traces/{trace_id}';
|
|
1832
|
+
url: '/api/v1/agents/traces/{trace_id}';
|
|
1833
1833
|
};
|
|
1834
1834
|
type GetAgentTraceErrors = {
|
|
1835
1835
|
/**
|
|
@@ -1862,7 +1862,7 @@ type ListAgentsData = {
|
|
|
1862
1862
|
*/
|
|
1863
1863
|
project_id?: string;
|
|
1864
1864
|
};
|
|
1865
|
-
url: '/agents';
|
|
1865
|
+
url: '/api/v1/agents';
|
|
1866
1866
|
};
|
|
1867
1867
|
type ListAgentsErrors = {
|
|
1868
1868
|
/**
|
|
@@ -1886,7 +1886,7 @@ type CreateAgentData = {
|
|
|
1886
1886
|
body: CreateAgentRequest;
|
|
1887
1887
|
path?: never;
|
|
1888
1888
|
query?: never;
|
|
1889
|
-
url: '/agents';
|
|
1889
|
+
url: '/api/v1/agents';
|
|
1890
1890
|
};
|
|
1891
1891
|
type CreateAgentErrors = {
|
|
1892
1892
|
/**
|
|
@@ -1920,7 +1920,7 @@ type DeleteAgentData = {
|
|
|
1920
1920
|
agent_id: string;
|
|
1921
1921
|
};
|
|
1922
1922
|
query?: never;
|
|
1923
|
-
url: '/agents/{agent_id}';
|
|
1923
|
+
url: '/api/v1/agents/{agent_id}';
|
|
1924
1924
|
};
|
|
1925
1925
|
type DeleteAgentErrors = {
|
|
1926
1926
|
/**
|
|
@@ -1950,7 +1950,7 @@ type GetAgentData = {
|
|
|
1950
1950
|
agent_id: string;
|
|
1951
1951
|
};
|
|
1952
1952
|
query?: never;
|
|
1953
|
-
url: '/agents/{agent_id}';
|
|
1953
|
+
url: '/api/v1/agents/{agent_id}';
|
|
1954
1954
|
};
|
|
1955
1955
|
type GetAgentErrors = {
|
|
1956
1956
|
/**
|
|
@@ -1980,7 +1980,7 @@ type UpdateAgentData = {
|
|
|
1980
1980
|
agent_id: string;
|
|
1981
1981
|
};
|
|
1982
1982
|
query?: never;
|
|
1983
|
-
url: '/agents/{agent_id}';
|
|
1983
|
+
url: '/api/v1/agents/{agent_id}';
|
|
1984
1984
|
};
|
|
1985
1985
|
type UpdateAgentErrors = {
|
|
1986
1986
|
/**
|
|
@@ -2010,7 +2010,7 @@ type CreateAgentGenerationData = {
|
|
|
2010
2010
|
agent_id: string;
|
|
2011
2011
|
};
|
|
2012
2012
|
query?: never;
|
|
2013
|
-
url: '/agents/{agent_id}/generate';
|
|
2013
|
+
url: '/api/v1/agents/{agent_id}/generate';
|
|
2014
2014
|
};
|
|
2015
2015
|
type CreateAgentGenerationErrors = {
|
|
2016
2016
|
/**
|
|
@@ -2045,7 +2045,7 @@ type SubmitAgentToolOutputsData = {
|
|
|
2045
2045
|
generation_id: string;
|
|
2046
2046
|
};
|
|
2047
2047
|
query?: never;
|
|
2048
|
-
url: '/agents/{agent_id}/generate/{generation_id}/tool-outputs';
|
|
2048
|
+
url: '/api/v1/agents/{agent_id}/generate/{generation_id}/tool-outputs';
|
|
2049
2049
|
};
|
|
2050
2050
|
type SubmitAgentToolOutputsErrors = {
|
|
2051
2051
|
/**
|
|
@@ -2095,7 +2095,7 @@ type CreateAgentActorData = {
|
|
|
2095
2095
|
agent_id: string;
|
|
2096
2096
|
};
|
|
2097
2097
|
query?: never;
|
|
2098
|
-
url: '/agents/{agent_id}/actors';
|
|
2098
|
+
url: '/api/v1/agents/{agent_id}/actors';
|
|
2099
2099
|
};
|
|
2100
2100
|
type CreateAgentActorErrors = {
|
|
2101
2101
|
/**
|
|
@@ -2143,7 +2143,7 @@ type ListAiProvidersData = {
|
|
|
2143
2143
|
*/
|
|
2144
2144
|
offset?: number;
|
|
2145
2145
|
};
|
|
2146
|
-
url: '/ai-providers';
|
|
2146
|
+
url: '/api/v1/ai-providers';
|
|
2147
2147
|
};
|
|
2148
2148
|
type ListAiProvidersErrors = {
|
|
2149
2149
|
/**
|
|
@@ -2208,7 +2208,7 @@ type CreateAiProviderData = {
|
|
|
2208
2208
|
};
|
|
2209
2209
|
path?: never;
|
|
2210
2210
|
query?: never;
|
|
2211
|
-
url: '/ai-providers';
|
|
2211
|
+
url: '/api/v1/ai-providers';
|
|
2212
2212
|
};
|
|
2213
2213
|
type CreateAiProviderErrors = {
|
|
2214
2214
|
/**
|
|
@@ -2251,7 +2251,7 @@ type DeleteAiProviderData = {
|
|
|
2251
2251
|
ai_provider_id: string;
|
|
2252
2252
|
};
|
|
2253
2253
|
query?: never;
|
|
2254
|
-
url: '/ai-providers/{ai_provider_id}';
|
|
2254
|
+
url: '/api/v1/ai-providers/{ai_provider_id}';
|
|
2255
2255
|
};
|
|
2256
2256
|
type DeleteAiProviderErrors = {
|
|
2257
2257
|
/**
|
|
@@ -2282,7 +2282,7 @@ type GetAiProviderData = {
|
|
|
2282
2282
|
ai_provider_id: string;
|
|
2283
2283
|
};
|
|
2284
2284
|
query?: never;
|
|
2285
|
-
url: '/ai-providers/{ai_provider_id}';
|
|
2285
|
+
url: '/api/v1/ai-providers/{ai_provider_id}';
|
|
2286
2286
|
};
|
|
2287
2287
|
type GetAiProviderErrors = {
|
|
2288
2288
|
/**
|
|
@@ -2334,7 +2334,7 @@ type UpdateAiProviderData = {
|
|
|
2334
2334
|
ai_provider_id: string;
|
|
2335
2335
|
};
|
|
2336
2336
|
query?: never;
|
|
2337
|
-
url: '/ai-providers/{ai_provider_id}';
|
|
2337
|
+
url: '/api/v1/ai-providers/{ai_provider_id}';
|
|
2338
2338
|
};
|
|
2339
2339
|
type UpdateAiProviderErrors = {
|
|
2340
2340
|
/**
|
|
@@ -2377,7 +2377,7 @@ type CreateApiKeyData = {
|
|
|
2377
2377
|
};
|
|
2378
2378
|
path?: never;
|
|
2379
2379
|
query?: never;
|
|
2380
|
-
url: '/api-keys';
|
|
2380
|
+
url: '/api/v1/api-keys';
|
|
2381
2381
|
};
|
|
2382
2382
|
type CreateApiKeyErrors = {
|
|
2383
2383
|
/**
|
|
@@ -2406,7 +2406,7 @@ type DeleteApiKeyData = {
|
|
|
2406
2406
|
api_key_id: string;
|
|
2407
2407
|
};
|
|
2408
2408
|
query?: never;
|
|
2409
|
-
url: '/api-keys/{api_key_id}';
|
|
2409
|
+
url: '/api/v1/api-keys/{api_key_id}';
|
|
2410
2410
|
};
|
|
2411
2411
|
type DeleteApiKeyErrors = {
|
|
2412
2412
|
/**
|
|
@@ -2438,7 +2438,7 @@ type GetApiKeyData = {
|
|
|
2438
2438
|
api_key_id: string;
|
|
2439
2439
|
};
|
|
2440
2440
|
query?: never;
|
|
2441
|
-
url: '/api-keys/{api_key_id}';
|
|
2441
|
+
url: '/api/v1/api-keys/{api_key_id}';
|
|
2442
2442
|
};
|
|
2443
2443
|
type GetApiKeyErrors = {
|
|
2444
2444
|
/**
|
|
@@ -2480,7 +2480,7 @@ type UpdateApiKeyData = {
|
|
|
2480
2480
|
api_key_id: string;
|
|
2481
2481
|
};
|
|
2482
2482
|
query?: never;
|
|
2483
|
-
url: '/api-keys/{api_key_id}';
|
|
2483
|
+
url: '/api/v1/api-keys/{api_key_id}';
|
|
2484
2484
|
};
|
|
2485
2485
|
type UpdateApiKeyErrors = {
|
|
2486
2486
|
/**
|
|
@@ -2517,7 +2517,7 @@ type ListChatsData = {
|
|
|
2517
2517
|
*/
|
|
2518
2518
|
project_id?: string;
|
|
2519
2519
|
};
|
|
2520
|
-
url: '/chats';
|
|
2520
|
+
url: '/api/v1/chats';
|
|
2521
2521
|
};
|
|
2522
2522
|
type ListChatsErrors = {
|
|
2523
2523
|
/**
|
|
@@ -2541,7 +2541,7 @@ type CreateChatData = {
|
|
|
2541
2541
|
body: CreateChatRequest;
|
|
2542
2542
|
path?: never;
|
|
2543
2543
|
query?: never;
|
|
2544
|
-
url: '/chats';
|
|
2544
|
+
url: '/api/v1/chats';
|
|
2545
2545
|
};
|
|
2546
2546
|
type CreateChatErrors = {
|
|
2547
2547
|
/**
|
|
@@ -2575,7 +2575,7 @@ type DeleteChatData = {
|
|
|
2575
2575
|
chat_id: string;
|
|
2576
2576
|
};
|
|
2577
2577
|
query?: never;
|
|
2578
|
-
url: '/chats/{chat_id}';
|
|
2578
|
+
url: '/api/v1/chats/{chat_id}';
|
|
2579
2579
|
};
|
|
2580
2580
|
type DeleteChatErrors = {
|
|
2581
2581
|
/**
|
|
@@ -2601,7 +2601,7 @@ type GetChatData = {
|
|
|
2601
2601
|
chat_id: string;
|
|
2602
2602
|
};
|
|
2603
2603
|
query?: never;
|
|
2604
|
-
url: '/chats/{chat_id}';
|
|
2604
|
+
url: '/api/v1/chats/{chat_id}';
|
|
2605
2605
|
};
|
|
2606
2606
|
type GetChatErrors = {
|
|
2607
2607
|
/**
|
|
@@ -2627,7 +2627,7 @@ type CreateChatCompletionForChatData = {
|
|
|
2627
2627
|
chat_id: string;
|
|
2628
2628
|
};
|
|
2629
2629
|
query?: never;
|
|
2630
|
-
url: '/chats/{chat_id}/completions';
|
|
2630
|
+
url: '/api/v1/chats/{chat_id}/completions';
|
|
2631
2631
|
};
|
|
2632
2632
|
type CreateChatCompletionForChatErrors = {
|
|
2633
2633
|
/**
|
|
@@ -2655,7 +2655,7 @@ type CreateChatCompletionData = {
|
|
|
2655
2655
|
body: ChatCompletionRequest;
|
|
2656
2656
|
path?: never;
|
|
2657
2657
|
query?: never;
|
|
2658
|
-
url: '/chats/completions';
|
|
2658
|
+
url: '/api/v1/chats/completions';
|
|
2659
2659
|
};
|
|
2660
2660
|
type CreateChatCompletionErrors = {
|
|
2661
2661
|
/**
|
|
@@ -2701,7 +2701,7 @@ type CreateChatActorData = {
|
|
|
2701
2701
|
chat_id: string;
|
|
2702
2702
|
};
|
|
2703
2703
|
query?: never;
|
|
2704
|
-
url: '/chats/{chat_id}/actors';
|
|
2704
|
+
url: '/api/v1/chats/{chat_id}/actors';
|
|
2705
2705
|
};
|
|
2706
2706
|
type CreateChatActorErrors = {
|
|
2707
2707
|
/**
|
|
@@ -2753,7 +2753,7 @@ type ListConversationsData = {
|
|
|
2753
2753
|
*/
|
|
2754
2754
|
offset?: number;
|
|
2755
2755
|
};
|
|
2756
|
-
url: '/conversations';
|
|
2756
|
+
url: '/api/v1/conversations';
|
|
2757
2757
|
};
|
|
2758
2758
|
type ListConversationsErrors = {
|
|
2759
2759
|
/**
|
|
@@ -2799,7 +2799,7 @@ type CreateConversationData = {
|
|
|
2799
2799
|
};
|
|
2800
2800
|
path?: never;
|
|
2801
2801
|
query?: never;
|
|
2802
|
-
url: '/conversations';
|
|
2802
|
+
url: '/api/v1/conversations';
|
|
2803
2803
|
};
|
|
2804
2804
|
type CreateConversationErrors = {
|
|
2805
2805
|
/**
|
|
@@ -2832,7 +2832,7 @@ type DeleteConversationData = {
|
|
|
2832
2832
|
conversation_id: string;
|
|
2833
2833
|
};
|
|
2834
2834
|
query?: never;
|
|
2835
|
-
url: '/conversations/{conversation_id}';
|
|
2835
|
+
url: '/api/v1/conversations/{conversation_id}';
|
|
2836
2836
|
};
|
|
2837
2837
|
type DeleteConversationErrors = {
|
|
2838
2838
|
/**
|
|
@@ -2865,7 +2865,7 @@ type GetConversationData = {
|
|
|
2865
2865
|
conversation_id: string;
|
|
2866
2866
|
};
|
|
2867
2867
|
query?: never;
|
|
2868
|
-
url: '/conversations/{conversation_id}';
|
|
2868
|
+
url: '/api/v1/conversations/{conversation_id}';
|
|
2869
2869
|
};
|
|
2870
2870
|
type GetConversationErrors = {
|
|
2871
2871
|
/**
|
|
@@ -2903,7 +2903,7 @@ type UpdateConversationData = {
|
|
|
2903
2903
|
conversation_id: string;
|
|
2904
2904
|
};
|
|
2905
2905
|
query?: never;
|
|
2906
|
-
url: '/conversations/{conversation_id}';
|
|
2906
|
+
url: '/api/v1/conversations/{conversation_id}';
|
|
2907
2907
|
};
|
|
2908
2908
|
type UpdateConversationErrors = {
|
|
2909
2909
|
/**
|
|
@@ -2949,7 +2949,7 @@ type ListConversationMessagesData = {
|
|
|
2949
2949
|
*/
|
|
2950
2950
|
offset?: number;
|
|
2951
2951
|
};
|
|
2952
|
-
url: '/conversations/{conversation_id}/messages';
|
|
2952
|
+
url: '/api/v1/conversations/{conversation_id}/messages';
|
|
2953
2953
|
};
|
|
2954
2954
|
type ListConversationMessagesErrors = {
|
|
2955
2955
|
/**
|
|
@@ -3006,7 +3006,7 @@ type AddConversationMessageData = {
|
|
|
3006
3006
|
conversation_id: string;
|
|
3007
3007
|
};
|
|
3008
3008
|
query?: never;
|
|
3009
|
-
url: '/conversations/{conversation_id}/messages';
|
|
3009
|
+
url: '/api/v1/conversations/{conversation_id}/messages';
|
|
3010
3010
|
};
|
|
3011
3011
|
type AddConversationMessageErrors = {
|
|
3012
3012
|
/**
|
|
@@ -3059,7 +3059,7 @@ type GenerateConversationMessageData = {
|
|
|
3059
3059
|
conversation_id: string;
|
|
3060
3060
|
};
|
|
3061
3061
|
query?: never;
|
|
3062
|
-
url: '/conversations/{conversation_id}/generate';
|
|
3062
|
+
url: '/api/v1/conversations/{conversation_id}/generate';
|
|
3063
3063
|
};
|
|
3064
3064
|
type GenerateConversationMessageErrors = {
|
|
3065
3065
|
/**
|
|
@@ -3100,7 +3100,7 @@ type ListConversationActorsData = {
|
|
|
3100
3100
|
conversation_id: string;
|
|
3101
3101
|
};
|
|
3102
3102
|
query?: never;
|
|
3103
|
-
url: '/conversations/{conversation_id}/actors';
|
|
3103
|
+
url: '/api/v1/conversations/{conversation_id}/actors';
|
|
3104
3104
|
};
|
|
3105
3105
|
type ListConversationActorsErrors = {
|
|
3106
3106
|
/**
|
|
@@ -3137,7 +3137,7 @@ type RemoveConversationMessageData = {
|
|
|
3137
3137
|
document_id: string;
|
|
3138
3138
|
};
|
|
3139
3139
|
query?: never;
|
|
3140
|
-
url: '/conversations/{conversation_id}/messages/{document_id}';
|
|
3140
|
+
url: '/api/v1/conversations/{conversation_id}/messages/{document_id}';
|
|
3141
3141
|
};
|
|
3142
3142
|
type RemoveConversationMessageErrors = {
|
|
3143
3143
|
/**
|
|
@@ -3170,7 +3170,7 @@ type GetConversationTagsData = {
|
|
|
3170
3170
|
conversation_id: string;
|
|
3171
3171
|
};
|
|
3172
3172
|
query?: never;
|
|
3173
|
-
url: '/conversations/{conversation_id}/tags';
|
|
3173
|
+
url: '/api/v1/conversations/{conversation_id}/tags';
|
|
3174
3174
|
};
|
|
3175
3175
|
type GetConversationTagsErrors = {
|
|
3176
3176
|
/**
|
|
@@ -3207,7 +3207,7 @@ type MergeConversationTagsData = {
|
|
|
3207
3207
|
conversation_id: string;
|
|
3208
3208
|
};
|
|
3209
3209
|
query?: never;
|
|
3210
|
-
url: '/conversations/{conversation_id}/tags';
|
|
3210
|
+
url: '/api/v1/conversations/{conversation_id}/tags';
|
|
3211
3211
|
};
|
|
3212
3212
|
type MergeConversationTagsErrors = {
|
|
3213
3213
|
/**
|
|
@@ -3244,7 +3244,7 @@ type ReplaceConversationTagsData = {
|
|
|
3244
3244
|
conversation_id: string;
|
|
3245
3245
|
};
|
|
3246
3246
|
query?: never;
|
|
3247
|
-
url: '/conversations/{conversation_id}/tags';
|
|
3247
|
+
url: '/api/v1/conversations/{conversation_id}/tags';
|
|
3248
3248
|
};
|
|
3249
3249
|
type ReplaceConversationTagsErrors = {
|
|
3250
3250
|
/**
|
|
@@ -3279,7 +3279,7 @@ type ListDocumentsData = {
|
|
|
3279
3279
|
*/
|
|
3280
3280
|
project_id?: string;
|
|
3281
3281
|
};
|
|
3282
|
-
url: '/documents';
|
|
3282
|
+
url: '/api/v1/documents';
|
|
3283
3283
|
};
|
|
3284
3284
|
type ListDocumentsErrors = {
|
|
3285
3285
|
/**
|
|
@@ -3314,7 +3314,7 @@ type CreateDocumentData = {
|
|
|
3314
3314
|
};
|
|
3315
3315
|
path?: never;
|
|
3316
3316
|
query?: never;
|
|
3317
|
-
url: '/documents';
|
|
3317
|
+
url: '/api/v1/documents';
|
|
3318
3318
|
};
|
|
3319
3319
|
type CreateDocumentErrors = {
|
|
3320
3320
|
/**
|
|
@@ -3347,7 +3347,7 @@ type DeleteDocumentData = {
|
|
|
3347
3347
|
document_id: string;
|
|
3348
3348
|
};
|
|
3349
3349
|
query?: never;
|
|
3350
|
-
url: '/documents/{document_id}';
|
|
3350
|
+
url: '/api/v1/documents/{document_id}';
|
|
3351
3351
|
};
|
|
3352
3352
|
type DeleteDocumentErrors = {
|
|
3353
3353
|
/**
|
|
@@ -3380,7 +3380,7 @@ type GetDocumentData = {
|
|
|
3380
3380
|
document_id: string;
|
|
3381
3381
|
};
|
|
3382
3382
|
query?: never;
|
|
3383
|
-
url: '/documents/{document_id}';
|
|
3383
|
+
url: '/api/v1/documents/{document_id}';
|
|
3384
3384
|
};
|
|
3385
3385
|
type GetDocumentErrors = {
|
|
3386
3386
|
/**
|
|
@@ -3438,7 +3438,7 @@ type UpdateDocumentData = {
|
|
|
3438
3438
|
document_id: string;
|
|
3439
3439
|
};
|
|
3440
3440
|
query?: never;
|
|
3441
|
-
url: '/documents/{document_id}';
|
|
3441
|
+
url: '/api/v1/documents/{document_id}';
|
|
3442
3442
|
};
|
|
3443
3443
|
type UpdateDocumentErrors = {
|
|
3444
3444
|
/**
|
|
@@ -3471,7 +3471,7 @@ type GetDocumentTagsData = {
|
|
|
3471
3471
|
document_id: string;
|
|
3472
3472
|
};
|
|
3473
3473
|
query?: never;
|
|
3474
|
-
url: '/documents/{document_id}/tags';
|
|
3474
|
+
url: '/api/v1/documents/{document_id}/tags';
|
|
3475
3475
|
};
|
|
3476
3476
|
type GetDocumentTagsErrors = {
|
|
3477
3477
|
/**
|
|
@@ -3508,7 +3508,7 @@ type MergeDocumentTagsData = {
|
|
|
3508
3508
|
document_id: string;
|
|
3509
3509
|
};
|
|
3510
3510
|
query?: never;
|
|
3511
|
-
url: '/documents/{document_id}/tags';
|
|
3511
|
+
url: '/api/v1/documents/{document_id}/tags';
|
|
3512
3512
|
};
|
|
3513
3513
|
type MergeDocumentTagsErrors = {
|
|
3514
3514
|
/**
|
|
@@ -3545,7 +3545,7 @@ type ReplaceDocumentTagsData = {
|
|
|
3545
3545
|
document_id: string;
|
|
3546
3546
|
};
|
|
3547
3547
|
query?: never;
|
|
3548
|
-
url: '/documents/{document_id}/tags';
|
|
3548
|
+
url: '/api/v1/documents/{document_id}/tags';
|
|
3549
3549
|
};
|
|
3550
3550
|
type ReplaceDocumentTagsErrors = {
|
|
3551
3551
|
/**
|
|
@@ -3600,7 +3600,7 @@ type SearchDocumentsData = {
|
|
|
3600
3600
|
};
|
|
3601
3601
|
path?: never;
|
|
3602
3602
|
query?: never;
|
|
3603
|
-
url: '/documents/search';
|
|
3603
|
+
url: '/api/v1/documents/search';
|
|
3604
3604
|
};
|
|
3605
3605
|
type SearchDocumentsErrors = {
|
|
3606
3606
|
/**
|
|
@@ -3643,7 +3643,7 @@ type ListFilesData = {
|
|
|
3643
3643
|
*/
|
|
3644
3644
|
offset?: number;
|
|
3645
3645
|
};
|
|
3646
|
-
url: '/files';
|
|
3646
|
+
url: '/api/v1/files';
|
|
3647
3647
|
};
|
|
3648
3648
|
type ListFilesErrors = {
|
|
3649
3649
|
/**
|
|
@@ -3701,7 +3701,7 @@ type CreateFileData = {
|
|
|
3701
3701
|
};
|
|
3702
3702
|
path?: never;
|
|
3703
3703
|
query?: never;
|
|
3704
|
-
url: '/files';
|
|
3704
|
+
url: '/api/v1/files';
|
|
3705
3705
|
};
|
|
3706
3706
|
type CreateFileErrors = {
|
|
3707
3707
|
/**
|
|
@@ -3734,7 +3734,7 @@ type UploadFileData = {
|
|
|
3734
3734
|
};
|
|
3735
3735
|
path?: never;
|
|
3736
3736
|
query?: never;
|
|
3737
|
-
url: '/files/upload';
|
|
3737
|
+
url: '/api/v1/files/upload';
|
|
3738
3738
|
};
|
|
3739
3739
|
type UploadFileErrors = {
|
|
3740
3740
|
/**
|
|
@@ -3762,7 +3762,7 @@ type UploadFileBase64Data = {
|
|
|
3762
3762
|
body: UploadFileBase64Request;
|
|
3763
3763
|
path?: never;
|
|
3764
3764
|
query?: never;
|
|
3765
|
-
url: '/files/upload/base64';
|
|
3765
|
+
url: '/api/v1/files/upload/base64';
|
|
3766
3766
|
};
|
|
3767
3767
|
type UploadFileBase64Errors = {
|
|
3768
3768
|
/**
|
|
@@ -3795,7 +3795,7 @@ type DeleteFileData = {
|
|
|
3795
3795
|
file_id: string;
|
|
3796
3796
|
};
|
|
3797
3797
|
query?: never;
|
|
3798
|
-
url: '/files/{file_id}';
|
|
3798
|
+
url: '/api/v1/files/{file_id}';
|
|
3799
3799
|
};
|
|
3800
3800
|
type DeleteFileErrors = {
|
|
3801
3801
|
/**
|
|
@@ -3824,7 +3824,7 @@ type GetFileData = {
|
|
|
3824
3824
|
file_id: string;
|
|
3825
3825
|
};
|
|
3826
3826
|
query?: never;
|
|
3827
|
-
url: '/files/{file_id}';
|
|
3827
|
+
url: '/api/v1/files/{file_id}';
|
|
3828
3828
|
};
|
|
3829
3829
|
type GetFileErrors = {
|
|
3830
3830
|
/**
|
|
@@ -3853,7 +3853,7 @@ type DownloadFileData = {
|
|
|
3853
3853
|
file_id: string;
|
|
3854
3854
|
};
|
|
3855
3855
|
query?: never;
|
|
3856
|
-
url: '/files/{file_id}/download';
|
|
3856
|
+
url: '/api/v1/files/{file_id}/download';
|
|
3857
3857
|
};
|
|
3858
3858
|
type DownloadFileErrors = {
|
|
3859
3859
|
/**
|
|
@@ -3895,7 +3895,7 @@ type UpdateFileMetadataData = {
|
|
|
3895
3895
|
file_id: string;
|
|
3896
3896
|
};
|
|
3897
3897
|
query?: never;
|
|
3898
|
-
url: '/files/{file_id}/metadata';
|
|
3898
|
+
url: '/api/v1/files/{file_id}/metadata';
|
|
3899
3899
|
};
|
|
3900
3900
|
type UpdateFileMetadataErrors = {
|
|
3901
3901
|
/**
|
|
@@ -3928,7 +3928,7 @@ type DownloadFileBase64Data = {
|
|
|
3928
3928
|
file_id: string;
|
|
3929
3929
|
};
|
|
3930
3930
|
query?: never;
|
|
3931
|
-
url: '/files/{file_id}/download/base64';
|
|
3931
|
+
url: '/api/v1/files/{file_id}/download/base64';
|
|
3932
3932
|
};
|
|
3933
3933
|
type DownloadFileBase64Errors = {
|
|
3934
3934
|
/**
|
|
@@ -3978,7 +3978,7 @@ type GetFileTagsData = {
|
|
|
3978
3978
|
file_id: string;
|
|
3979
3979
|
};
|
|
3980
3980
|
query?: never;
|
|
3981
|
-
url: '/files/{file_id}/tags';
|
|
3981
|
+
url: '/api/v1/files/{file_id}/tags';
|
|
3982
3982
|
};
|
|
3983
3983
|
type GetFileTagsErrors = {
|
|
3984
3984
|
/**
|
|
@@ -4015,7 +4015,7 @@ type MergeFileTagsData = {
|
|
|
4015
4015
|
file_id: string;
|
|
4016
4016
|
};
|
|
4017
4017
|
query?: never;
|
|
4018
|
-
url: '/files/{file_id}/tags';
|
|
4018
|
+
url: '/api/v1/files/{file_id}/tags';
|
|
4019
4019
|
};
|
|
4020
4020
|
type MergeFileTagsErrors = {
|
|
4021
4021
|
/**
|
|
@@ -4052,7 +4052,7 @@ type ReplaceFileTagsData = {
|
|
|
4052
4052
|
file_id: string;
|
|
4053
4053
|
};
|
|
4054
4054
|
query?: never;
|
|
4055
|
-
url: '/files/{file_id}/tags';
|
|
4055
|
+
url: '/api/v1/files/{file_id}/tags';
|
|
4056
4056
|
};
|
|
4057
4057
|
type ReplaceFileTagsErrors = {
|
|
4058
4058
|
/**
|
|
@@ -4082,7 +4082,7 @@ type ListPoliciesData = {
|
|
|
4082
4082
|
body?: never;
|
|
4083
4083
|
path?: never;
|
|
4084
4084
|
query?: never;
|
|
4085
|
-
url: '/policies';
|
|
4085
|
+
url: '/api/v1/policies';
|
|
4086
4086
|
};
|
|
4087
4087
|
type ListPoliciesErrors = {
|
|
4088
4088
|
/**
|
|
@@ -4109,7 +4109,7 @@ type CreatePolicyData = {
|
|
|
4109
4109
|
};
|
|
4110
4110
|
path?: never;
|
|
4111
4111
|
query?: never;
|
|
4112
|
-
url: '/policies';
|
|
4112
|
+
url: '/api/v1/policies';
|
|
4113
4113
|
};
|
|
4114
4114
|
type CreatePolicyErrors = {
|
|
4115
4115
|
/**
|
|
@@ -4142,7 +4142,7 @@ type DeletePolicyData = {
|
|
|
4142
4142
|
policy_id: string;
|
|
4143
4143
|
};
|
|
4144
4144
|
query?: never;
|
|
4145
|
-
url: '/policies/{policy_id}';
|
|
4145
|
+
url: '/api/v1/policies/{policy_id}';
|
|
4146
4146
|
};
|
|
4147
4147
|
type DeletePolicyErrors = {
|
|
4148
4148
|
/**
|
|
@@ -4174,7 +4174,7 @@ type GetPolicyData = {
|
|
|
4174
4174
|
policy_id: string;
|
|
4175
4175
|
};
|
|
4176
4176
|
query?: never;
|
|
4177
|
-
url: '/policies/{policy_id}';
|
|
4177
|
+
url: '/api/v1/policies/{policy_id}';
|
|
4178
4178
|
};
|
|
4179
4179
|
type GetPolicyErrors = {
|
|
4180
4180
|
/**
|
|
@@ -4210,7 +4210,7 @@ type UpdatePolicyData = {
|
|
|
4210
4210
|
policy_id: string;
|
|
4211
4211
|
};
|
|
4212
4212
|
query?: never;
|
|
4213
|
-
url: '/policies/{policy_id}';
|
|
4213
|
+
url: '/api/v1/policies/{policy_id}';
|
|
4214
4214
|
};
|
|
4215
4215
|
type UpdatePolicyErrors = {
|
|
4216
4216
|
/**
|
|
@@ -4244,7 +4244,7 @@ type CreateProjectData = {
|
|
|
4244
4244
|
};
|
|
4245
4245
|
path?: never;
|
|
4246
4246
|
query?: never;
|
|
4247
|
-
url: '/projects';
|
|
4247
|
+
url: '/api/v1/projects';
|
|
4248
4248
|
};
|
|
4249
4249
|
type CreateProjectErrors = {
|
|
4250
4250
|
/**
|
|
@@ -4280,7 +4280,7 @@ type DeleteProjectData = {
|
|
|
4280
4280
|
project_id: string;
|
|
4281
4281
|
};
|
|
4282
4282
|
query?: never;
|
|
4283
|
-
url: '/projects/{project_id}';
|
|
4283
|
+
url: '/api/v1/projects/{project_id}';
|
|
4284
4284
|
};
|
|
4285
4285
|
type DeleteProjectErrors = {
|
|
4286
4286
|
/**
|
|
@@ -4312,7 +4312,7 @@ type GetProjectData = {
|
|
|
4312
4312
|
project_id: string;
|
|
4313
4313
|
};
|
|
4314
4314
|
query?: never;
|
|
4315
|
-
url: '/projects/{project_id}';
|
|
4315
|
+
url: '/api/v1/projects/{project_id}';
|
|
4316
4316
|
};
|
|
4317
4317
|
type GetProjectErrors = {
|
|
4318
4318
|
/**
|
|
@@ -4352,7 +4352,7 @@ type ListSecretsData = {
|
|
|
4352
4352
|
*/
|
|
4353
4353
|
offset?: number;
|
|
4354
4354
|
};
|
|
4355
|
-
url: '/secrets';
|
|
4355
|
+
url: '/api/v1/secrets';
|
|
4356
4356
|
};
|
|
4357
4357
|
type ListSecretsErrors = {
|
|
4358
4358
|
/**
|
|
@@ -4397,7 +4397,7 @@ type CreateSecretData = {
|
|
|
4397
4397
|
};
|
|
4398
4398
|
path?: never;
|
|
4399
4399
|
query?: never;
|
|
4400
|
-
url: '/secrets';
|
|
4400
|
+
url: '/api/v1/secrets';
|
|
4401
4401
|
};
|
|
4402
4402
|
type CreateSecretErrors = {
|
|
4403
4403
|
/**
|
|
@@ -4438,7 +4438,7 @@ type DeleteSecretData = {
|
|
|
4438
4438
|
secret_id: string;
|
|
4439
4439
|
};
|
|
4440
4440
|
query?: never;
|
|
4441
|
-
url: '/secrets/{secret_id}';
|
|
4441
|
+
url: '/api/v1/secrets/{secret_id}';
|
|
4442
4442
|
};
|
|
4443
4443
|
type DeleteSecretErrors = {
|
|
4444
4444
|
/**
|
|
@@ -4469,7 +4469,7 @@ type GetSecretData = {
|
|
|
4469
4469
|
secret_id: string;
|
|
4470
4470
|
};
|
|
4471
4471
|
query?: never;
|
|
4472
|
-
url: '/secrets/{secret_id}';
|
|
4472
|
+
url: '/api/v1/secrets/{secret_id}';
|
|
4473
4473
|
};
|
|
4474
4474
|
type GetSecretErrors = {
|
|
4475
4475
|
/**
|
|
@@ -4519,7 +4519,7 @@ type UpdateSecretData = {
|
|
|
4519
4519
|
secret_id: string;
|
|
4520
4520
|
};
|
|
4521
4521
|
query?: never;
|
|
4522
|
-
url: '/secrets/{secret_id}';
|
|
4522
|
+
url: '/api/v1/secrets/{secret_id}';
|
|
4523
4523
|
};
|
|
4524
4524
|
type UpdateSecretErrors = {
|
|
4525
4525
|
/**
|
|
@@ -4565,7 +4565,7 @@ type ListAgentSessionsData = {
|
|
|
4565
4565
|
limit?: number;
|
|
4566
4566
|
offset?: number;
|
|
4567
4567
|
};
|
|
4568
|
-
url: '/agents/{agent_id}/sessions';
|
|
4568
|
+
url: '/api/v1/agents/{agent_id}/sessions';
|
|
4569
4569
|
};
|
|
4570
4570
|
type ListAgentSessionsErrors = {
|
|
4571
4571
|
/**
|
|
@@ -4603,7 +4603,7 @@ type CreateAgentSessionData = {
|
|
|
4603
4603
|
agent_id: string;
|
|
4604
4604
|
};
|
|
4605
4605
|
query?: never;
|
|
4606
|
-
url: '/agents/{agent_id}/sessions';
|
|
4606
|
+
url: '/api/v1/agents/{agent_id}/sessions';
|
|
4607
4607
|
};
|
|
4608
4608
|
type CreateAgentSessionErrors = {
|
|
4609
4609
|
/**
|
|
@@ -4640,7 +4640,7 @@ type DeleteAgentSessionData = {
|
|
|
4640
4640
|
session_id: string;
|
|
4641
4641
|
};
|
|
4642
4642
|
query?: never;
|
|
4643
|
-
url: '/agents/{agent_id}/sessions/{session_id}';
|
|
4643
|
+
url: '/api/v1/agents/{agent_id}/sessions/{session_id}';
|
|
4644
4644
|
};
|
|
4645
4645
|
type DeleteAgentSessionErrors = {
|
|
4646
4646
|
/**
|
|
@@ -4677,7 +4677,7 @@ type GetAgentSessionData = {
|
|
|
4677
4677
|
session_id: string;
|
|
4678
4678
|
};
|
|
4679
4679
|
query?: never;
|
|
4680
|
-
url: '/agents/{agent_id}/sessions/{session_id}';
|
|
4680
|
+
url: '/api/v1/agents/{agent_id}/sessions/{session_id}';
|
|
4681
4681
|
};
|
|
4682
4682
|
type GetAgentSessionErrors = {
|
|
4683
4683
|
/**
|
|
@@ -4714,7 +4714,7 @@ type UpdateSessionData = {
|
|
|
4714
4714
|
session_id: string;
|
|
4715
4715
|
};
|
|
4716
4716
|
query?: never;
|
|
4717
|
-
url: '/agents/{agent_id}/sessions/{session_id}';
|
|
4717
|
+
url: '/api/v1/agents/{agent_id}/sessions/{session_id}';
|
|
4718
4718
|
};
|
|
4719
4719
|
type UpdateSessionErrors = {
|
|
4720
4720
|
/**
|
|
@@ -4754,7 +4754,7 @@ type ListAgentSessionMessagesData = {
|
|
|
4754
4754
|
limit?: number;
|
|
4755
4755
|
offset?: number;
|
|
4756
4756
|
};
|
|
4757
|
-
url: '/agents/{agent_id}/sessions/{session_id}/messages';
|
|
4757
|
+
url: '/api/v1/agents/{agent_id}/sessions/{session_id}/messages';
|
|
4758
4758
|
};
|
|
4759
4759
|
type ListAgentSessionMessagesErrors = {
|
|
4760
4760
|
/**
|
|
@@ -4796,7 +4796,7 @@ type AddSessionMessageData = {
|
|
|
4796
4796
|
session_id: string;
|
|
4797
4797
|
};
|
|
4798
4798
|
query?: never;
|
|
4799
|
-
url: '/agents/{agent_id}/sessions/{session_id}/messages';
|
|
4799
|
+
url: '/api/v1/agents/{agent_id}/sessions/{session_id}/messages';
|
|
4800
4800
|
};
|
|
4801
4801
|
type AddSessionMessageErrors = {
|
|
4802
4802
|
/**
|
|
@@ -4838,7 +4838,7 @@ type GenerateSessionResponseData = {
|
|
|
4838
4838
|
*/
|
|
4839
4839
|
async?: boolean;
|
|
4840
4840
|
};
|
|
4841
|
-
url: '/agents/{agent_id}/sessions/{session_id}/generate';
|
|
4841
|
+
url: '/api/v1/agents/{agent_id}/sessions/{session_id}/generate';
|
|
4842
4842
|
};
|
|
4843
4843
|
type GenerateSessionResponseErrors = {
|
|
4844
4844
|
/**
|
|
@@ -4886,7 +4886,7 @@ type SubmitSessionToolOutputsData = {
|
|
|
4886
4886
|
session_id: string;
|
|
4887
4887
|
};
|
|
4888
4888
|
query?: never;
|
|
4889
|
-
url: '/agents/{agent_id}/sessions/{session_id}/tool-outputs';
|
|
4889
|
+
url: '/api/v1/agents/{agent_id}/sessions/{session_id}/tool-outputs';
|
|
4890
4890
|
};
|
|
4891
4891
|
type SubmitSessionToolOutputsErrors = {
|
|
4892
4892
|
/**
|
|
@@ -4923,7 +4923,7 @@ type GetSessionTagsData = {
|
|
|
4923
4923
|
session_id: string;
|
|
4924
4924
|
};
|
|
4925
4925
|
query?: never;
|
|
4926
|
-
url: '/agents/{agent_id}/sessions/{session_id}/tags';
|
|
4926
|
+
url: '/api/v1/agents/{agent_id}/sessions/{session_id}/tags';
|
|
4927
4927
|
};
|
|
4928
4928
|
type GetSessionTagsErrors = {
|
|
4929
4929
|
/**
|
|
@@ -4964,7 +4964,7 @@ type MergeSessionTagsData = {
|
|
|
4964
4964
|
session_id: string;
|
|
4965
4965
|
};
|
|
4966
4966
|
query?: never;
|
|
4967
|
-
url: '/agents/{agent_id}/sessions/{session_id}/tags';
|
|
4967
|
+
url: '/api/v1/agents/{agent_id}/sessions/{session_id}/tags';
|
|
4968
4968
|
};
|
|
4969
4969
|
type MergeSessionTagsErrors = {
|
|
4970
4970
|
/**
|
|
@@ -5005,7 +5005,7 @@ type ReplaceSessionTagsData = {
|
|
|
5005
5005
|
session_id: string;
|
|
5006
5006
|
};
|
|
5007
5007
|
query?: never;
|
|
5008
|
-
url: '/agents/{agent_id}/sessions/{session_id}/tags';
|
|
5008
|
+
url: '/api/v1/agents/{agent_id}/sessions/{session_id}/tags';
|
|
5009
5009
|
};
|
|
5010
5010
|
type ReplaceSessionTagsErrors = {
|
|
5011
5011
|
/**
|
|
@@ -5035,7 +5035,7 @@ type ListUsersData = {
|
|
|
5035
5035
|
body?: never;
|
|
5036
5036
|
path?: never;
|
|
5037
5037
|
query?: never;
|
|
5038
|
-
url: '/users';
|
|
5038
|
+
url: '/api/v1/users';
|
|
5039
5039
|
};
|
|
5040
5040
|
type ListUsersErrors = {
|
|
5041
5041
|
/**
|
|
@@ -5059,7 +5059,7 @@ type CreateUserData = {
|
|
|
5059
5059
|
};
|
|
5060
5060
|
path?: never;
|
|
5061
5061
|
query?: never;
|
|
5062
|
-
url: '/users';
|
|
5062
|
+
url: '/api/v1/users';
|
|
5063
5063
|
};
|
|
5064
5064
|
type CreateUserErrors = {
|
|
5065
5065
|
/**
|
|
@@ -5084,7 +5084,7 @@ type DeleteUserData = {
|
|
|
5084
5084
|
user_id: string;
|
|
5085
5085
|
};
|
|
5086
5086
|
query?: never;
|
|
5087
|
-
url: '/users/{user_id}';
|
|
5087
|
+
url: '/api/v1/users/{user_id}';
|
|
5088
5088
|
};
|
|
5089
5089
|
type DeleteUserErrors = {
|
|
5090
5090
|
/**
|
|
@@ -5113,7 +5113,7 @@ type GetUserData = {
|
|
|
5113
5113
|
user_id: string;
|
|
5114
5114
|
};
|
|
5115
5115
|
query?: never;
|
|
5116
|
-
url: '/users/{user_id}';
|
|
5116
|
+
url: '/api/v1/users/{user_id}';
|
|
5117
5117
|
};
|
|
5118
5118
|
type GetUserErrors = {
|
|
5119
5119
|
/**
|
|
@@ -5140,7 +5140,7 @@ type BootstrapUserData = {
|
|
|
5140
5140
|
};
|
|
5141
5141
|
path?: never;
|
|
5142
5142
|
query?: never;
|
|
5143
|
-
url: '/users/bootstrap';
|
|
5143
|
+
url: '/api/v1/users/bootstrap';
|
|
5144
5144
|
};
|
|
5145
5145
|
type BootstrapUserErrors = {
|
|
5146
5146
|
/**
|
|
@@ -5167,7 +5167,7 @@ type LoginUserData = {
|
|
|
5167
5167
|
};
|
|
5168
5168
|
path?: never;
|
|
5169
5169
|
query?: never;
|
|
5170
|
-
url: '/users/login';
|
|
5170
|
+
url: '/api/v1/users/login';
|
|
5171
5171
|
};
|
|
5172
5172
|
type LoginUserErrors = {
|
|
5173
5173
|
/**
|
|
@@ -5196,7 +5196,7 @@ type GetUserPoliciesData = {
|
|
|
5196
5196
|
user_id: string;
|
|
5197
5197
|
};
|
|
5198
5198
|
query?: never;
|
|
5199
|
-
url: '/users/{user_id}/policies';
|
|
5199
|
+
url: '/api/v1/users/{user_id}/policies';
|
|
5200
5200
|
};
|
|
5201
5201
|
type GetUserPoliciesErrors = {
|
|
5202
5202
|
/**
|
|
@@ -5237,7 +5237,7 @@ type AttachUserPoliciesData = {
|
|
|
5237
5237
|
user_id: string;
|
|
5238
5238
|
};
|
|
5239
5239
|
query?: never;
|
|
5240
|
-
url: '/users/{user_id}/policies';
|
|
5240
|
+
url: '/api/v1/users/{user_id}/policies';
|
|
5241
5241
|
};
|
|
5242
5242
|
type AttachUserPoliciesErrors = {
|
|
5243
5243
|
/**
|
|
@@ -5271,7 +5271,7 @@ type ListWebhooksData = {
|
|
|
5271
5271
|
project_id: string;
|
|
5272
5272
|
};
|
|
5273
5273
|
query?: never;
|
|
5274
|
-
url: '/projects/{project_id}/webhooks';
|
|
5274
|
+
url: '/api/v1/projects/{project_id}/webhooks';
|
|
5275
5275
|
};
|
|
5276
5276
|
type ListWebhooksErrors = {
|
|
5277
5277
|
/**
|
|
@@ -5296,7 +5296,7 @@ type CreateWebhookData = {
|
|
|
5296
5296
|
project_id: string;
|
|
5297
5297
|
};
|
|
5298
5298
|
query?: never;
|
|
5299
|
-
url: '/projects/{project_id}/webhooks';
|
|
5299
|
+
url: '/api/v1/projects/{project_id}/webhooks';
|
|
5300
5300
|
};
|
|
5301
5301
|
type CreateWebhookErrors = {
|
|
5302
5302
|
/**
|
|
@@ -5326,7 +5326,7 @@ type DeleteWebhookData = {
|
|
|
5326
5326
|
webhook_id: string;
|
|
5327
5327
|
};
|
|
5328
5328
|
query?: never;
|
|
5329
|
-
url: '/projects/{project_id}/webhooks/{webhook_id}';
|
|
5329
|
+
url: '/api/v1/projects/{project_id}/webhooks/{webhook_id}';
|
|
5330
5330
|
};
|
|
5331
5331
|
type DeleteWebhookErrors = {
|
|
5332
5332
|
/**
|
|
@@ -5356,7 +5356,7 @@ type GetWebhookData = {
|
|
|
5356
5356
|
webhook_id: string;
|
|
5357
5357
|
};
|
|
5358
5358
|
query?: never;
|
|
5359
|
-
url: '/projects/{project_id}/webhooks/{webhook_id}';
|
|
5359
|
+
url: '/api/v1/projects/{project_id}/webhooks/{webhook_id}';
|
|
5360
5360
|
};
|
|
5361
5361
|
type GetWebhookErrors = {
|
|
5362
5362
|
/**
|
|
@@ -5386,7 +5386,7 @@ type UpdateWebhookData = {
|
|
|
5386
5386
|
webhook_id: string;
|
|
5387
5387
|
};
|
|
5388
5388
|
query?: never;
|
|
5389
|
-
url: '/projects/{project_id}/webhooks/{webhook_id}';
|
|
5389
|
+
url: '/api/v1/projects/{project_id}/webhooks/{webhook_id}';
|
|
5390
5390
|
};
|
|
5391
5391
|
type UpdateWebhookErrors = {
|
|
5392
5392
|
/**
|
|
@@ -5423,7 +5423,7 @@ type ListWebhookDeliveriesData = {
|
|
|
5423
5423
|
limit?: number;
|
|
5424
5424
|
offset?: number;
|
|
5425
5425
|
};
|
|
5426
|
-
url: '/projects/{project_id}/webhooks/{webhook_id}/deliveries';
|
|
5426
|
+
url: '/api/v1/projects/{project_id}/webhooks/{webhook_id}/deliveries';
|
|
5427
5427
|
};
|
|
5428
5428
|
type ListWebhookDeliveriesErrors = {
|
|
5429
5429
|
/**
|
|
@@ -5454,7 +5454,7 @@ type GetWebhookDeliveryData = {
|
|
|
5454
5454
|
delivery_id: string;
|
|
5455
5455
|
};
|
|
5456
5456
|
query?: never;
|
|
5457
|
-
url: '/projects/{project_id}/webhooks/{webhook_id}/deliveries/{delivery_id}';
|
|
5457
|
+
url: '/api/v1/projects/{project_id}/webhooks/{webhook_id}/deliveries/{delivery_id}';
|
|
5458
5458
|
};
|
|
5459
5459
|
type GetWebhookDeliveryErrors = {
|
|
5460
5460
|
/**
|
|
@@ -5484,7 +5484,7 @@ type RotateWebhookSecretData = {
|
|
|
5484
5484
|
webhook_id: string;
|
|
5485
5485
|
};
|
|
5486
5486
|
query?: never;
|
|
5487
|
-
url: '/projects/{project_id}/webhooks/{webhook_id}/rotate-secret';
|
|
5487
|
+
url: '/api/v1/projects/{project_id}/webhooks/{webhook_id}/rotate-secret';
|
|
5488
5488
|
};
|
|
5489
5489
|
type RotateWebhookSecretErrors = {
|
|
5490
5490
|
/**
|
|
@@ -6254,10 +6254,10 @@ declare class Webhooks {
|
|
|
6254
6254
|
|
|
6255
6255
|
interface SoatClientOptions {
|
|
6256
6256
|
/**
|
|
6257
|
-
* Base URL of the SOAT API
|
|
6258
|
-
* Defaults to
|
|
6257
|
+
* Base URL of the SOAT API host.
|
|
6258
|
+
* Defaults to the current origin when not provided.
|
|
6259
6259
|
*
|
|
6260
|
-
* @example 'https://api.example.com
|
|
6260
|
+
* @example 'https://api.example.com'
|
|
6261
6261
|
*/
|
|
6262
6262
|
baseUrl?: string;
|
|
6263
6263
|
/**
|
|
@@ -6279,7 +6279,7 @@ interface SoatClientOptions {
|
|
|
6279
6279
|
* ```ts
|
|
6280
6280
|
* import { SoatClient } from '@soat/sdk';
|
|
6281
6281
|
*
|
|
6282
|
-
* const soat = new SoatClient({ baseUrl: 'https://api.example.com
|
|
6282
|
+
* const soat = new SoatClient({ baseUrl: 'https://api.example.com', token: 'sk_...' });
|
|
6283
6283
|
*
|
|
6284
6284
|
* const { data, error } = await soat.sessions.addSessionMessage({
|
|
6285
6285
|
* path: { agent_id: AGENT_ID, session_id: SESSION_ID },
|