@gpt-core/client 0.2.0 → 0.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -49,7 +49,7 @@ __export(index_exports, {
49
49
  calculateBackoff: () => calculateBackoff,
50
50
  client: () => client,
51
51
  collectStreamedMessage: () => collectStreamedMessage,
52
- deleteAgentsById: () => deleteAgentsById,
52
+ deleteAiConversationsById: () => deleteAiConversationsById,
53
53
  deleteAiGraphEdgesById: () => deleteAiGraphEdgesById,
54
54
  deleteAiGraphNodesById: () => deleteAiGraphNodesById,
55
55
  deleteApiKeysById: () => deleteApiKeysById,
@@ -72,8 +72,11 @@ __export(index_exports, {
72
72
  getAgents: () => getAgents,
73
73
  getAgentsById: () => getAgentsById,
74
74
  getAiChunksDocumentByDocumentId: () => getAiChunksDocumentByDocumentId,
75
+ getAiConversations: () => getAiConversations,
76
+ getAiConversationsById: () => getAiConversationsById,
75
77
  getAiGraphEdges: () => getAiGraphEdges,
76
78
  getAiGraphNodes: () => getAiGraphNodes,
79
+ getAiMessages: () => getAiMessages,
77
80
  getApiKeys: () => getApiKeys,
78
81
  getApiKeysById: () => getApiKeysById,
79
82
  getApplications: () => getApplications,
@@ -155,7 +158,6 @@ __export(index_exports, {
155
158
  isRetryableError: () => isRetryableError,
156
159
  paginateAll: () => paginateAll,
157
160
  paginateToArray: () => paginateToArray,
158
- patchAgentsById: () => patchAgentsById,
159
161
  patchApiKeysById: () => patchApiKeysById,
160
162
  patchApiKeysByIdAllocate: () => patchApiKeysByIdAllocate,
161
163
  patchApiKeysByIdRevoke: () => patchApiKeysByIdRevoke,
@@ -186,14 +188,16 @@ __export(index_exports, {
186
188
  patchWorkspaceMembershipsByWorkspaceIdByUserId: () => patchWorkspaceMembershipsByWorkspaceIdByUserId,
187
189
  patchWorkspacesById: () => patchWorkspacesById,
188
190
  patchWorkspacesByIdAllocate: () => patchWorkspacesByIdAllocate,
189
- postAgents: () => postAgents,
190
191
  postAgentsByIdClone: () => postAgentsByIdClone,
191
192
  postAgentsByIdTest: () => postAgentsByIdTest,
192
193
  postAgentsByIdValidate: () => postAgentsByIdValidate,
194
+ postAgentsPredict: () => postAgentsPredict,
193
195
  postAiChunksSearch: () => postAiChunksSearch,
196
+ postAiConversations: () => postAiConversations,
194
197
  postAiEmbed: () => postAiEmbed,
195
198
  postAiGraphEdges: () => postAiGraphEdges,
196
199
  postAiGraphNodes: () => postAiGraphNodes,
200
+ postAiMessages: () => postAiMessages,
197
201
  postAiSearch: () => postAiSearch,
198
202
  postAiSearchAdvanced: () => postAiSearchAdvanced,
199
203
  postApiKeys: () => postApiKeys,
@@ -1601,6 +1605,15 @@ var postApplications = (options) => (options.client ?? client).post({
1601
1605
  ...options.headers
1602
1606
  }
1603
1607
  });
1608
+ var postAgentsPredict = (options) => (options.client ?? client).post({
1609
+ security: [{ scheme: "bearer", type: "http" }],
1610
+ url: "/agents/predict",
1611
+ ...options,
1612
+ headers: {
1613
+ "Content-Type": "application/vnd.api+json",
1614
+ ...options.headers
1615
+ }
1616
+ });
1604
1617
  var deleteThreadsById = (options) => (options.client ?? client).delete({
1605
1618
  security: [{ scheme: "bearer", type: "http" }],
1606
1619
  url: "/threads/{id}",
@@ -1821,25 +1834,11 @@ var getExtractionResults = (options) => (options.client ?? client).get({
1821
1834
  url: "/extraction_results",
1822
1835
  ...options
1823
1836
  });
1824
- var deleteAgentsById = (options) => (options.client ?? client).delete({
1825
- security: [{ scheme: "bearer", type: "http" }],
1826
- url: "/agents/{id}",
1827
- ...options
1828
- });
1829
1837
  var getAgentsById = (options) => (options.client ?? client).get({
1830
1838
  security: [{ scheme: "bearer", type: "http" }],
1831
1839
  url: "/agents/{id}",
1832
1840
  ...options
1833
1841
  });
1834
- var patchAgentsById = (options) => (options.client ?? client).patch({
1835
- security: [{ scheme: "bearer", type: "http" }],
1836
- url: "/agents/{id}",
1837
- ...options,
1838
- headers: {
1839
- "Content-Type": "application/vnd.api+json",
1840
- ...options.headers
1841
- }
1842
- });
1843
1842
  var postDocumentsImport = (options) => (options.client ?? client).post({
1844
1843
  security: [{ scheme: "bearer", type: "http" }],
1845
1844
  url: "/documents/import",
@@ -1868,6 +1867,20 @@ var patchApiKeysById = (options) => (options.client ?? client).patch({
1868
1867
  ...options.headers
1869
1868
  }
1870
1869
  });
1870
+ var getAiConversations = (options) => (options.client ?? client).get({
1871
+ security: [{ scheme: "bearer", type: "http" }],
1872
+ url: "/ai/conversations",
1873
+ ...options
1874
+ });
1875
+ var postAiConversations = (options) => (options.client ?? client).post({
1876
+ security: [{ scheme: "bearer", type: "http" }],
1877
+ url: "/ai/conversations",
1878
+ ...options,
1879
+ headers: {
1880
+ "Content-Type": "application/vnd.api+json",
1881
+ ...options.headers
1882
+ }
1883
+ });
1871
1884
  var postAiSearch = (options) => (options.client ?? client).post({
1872
1885
  security: [{ scheme: "bearer", type: "http" }],
1873
1886
  url: "/ai/search",
@@ -2158,6 +2171,20 @@ var patchTenantMembershipsByTenantIdByUserId = (options) => (options.client ?? c
2158
2171
  ...options.headers
2159
2172
  }
2160
2173
  });
2174
+ var getAiMessages = (options) => (options.client ?? client).get({
2175
+ security: [{ scheme: "bearer", type: "http" }],
2176
+ url: "/ai/messages",
2177
+ ...options
2178
+ });
2179
+ var postAiMessages = (options) => (options.client ?? client).post({
2180
+ security: [{ scheme: "bearer", type: "http" }],
2181
+ url: "/ai/messages",
2182
+ ...options,
2183
+ headers: {
2184
+ "Content-Type": "application/vnd.api+json",
2185
+ ...options.headers
2186
+ }
2187
+ });
2161
2188
  var postStorageSignUpload = (options) => (options.client ?? client).post({
2162
2189
  security: [{ scheme: "bearer", type: "http" }],
2163
2190
  url: "/storage/sign_upload",
@@ -2212,6 +2239,16 @@ var postAgentsByIdClone = (options) => (options.client ?? client).post({
2212
2239
  ...options.headers
2213
2240
  }
2214
2241
  });
2242
+ var deleteAiConversationsById = (options) => (options.client ?? client).delete({
2243
+ security: [{ scheme: "bearer", type: "http" }],
2244
+ url: "/ai/conversations/{id}",
2245
+ ...options
2246
+ });
2247
+ var getAiConversationsById = (options) => (options.client ?? client).get({
2248
+ security: [{ scheme: "bearer", type: "http" }],
2249
+ url: "/ai/conversations/{id}",
2250
+ ...options
2251
+ });
2215
2252
  var deleteUserProfilesById = (options) => (options.client ?? client).delete({
2216
2253
  security: [{ scheme: "bearer", type: "http" }],
2217
2254
  url: "/user_profiles/{id}",
@@ -2346,15 +2383,6 @@ var getAgents = (options) => (options.client ?? client).get({
2346
2383
  url: "/agents",
2347
2384
  ...options
2348
2385
  });
2349
- var postAgents = (options) => (options.client ?? client).post({
2350
- security: [{ scheme: "bearer", type: "http" }],
2351
- url: "/agents",
2352
- ...options,
2353
- headers: {
2354
- "Content-Type": "application/vnd.api+json",
2355
- ...options.headers
2356
- }
2357
- });
2358
2386
  var getDocumentsByIdExtractionResults = (options) => (options.client ?? client).get({
2359
2387
  security: [{ scheme: "bearer", type: "http" }],
2360
2388
  url: "/documents/{id}/extraction_results",
@@ -2765,7 +2793,7 @@ async function collectStreamedMessage(stream) {
2765
2793
  calculateBackoff,
2766
2794
  client,
2767
2795
  collectStreamedMessage,
2768
- deleteAgentsById,
2796
+ deleteAiConversationsById,
2769
2797
  deleteAiGraphEdgesById,
2770
2798
  deleteAiGraphNodesById,
2771
2799
  deleteApiKeysById,
@@ -2788,8 +2816,11 @@ async function collectStreamedMessage(stream) {
2788
2816
  getAgents,
2789
2817
  getAgentsById,
2790
2818
  getAiChunksDocumentByDocumentId,
2819
+ getAiConversations,
2820
+ getAiConversationsById,
2791
2821
  getAiGraphEdges,
2792
2822
  getAiGraphNodes,
2823
+ getAiMessages,
2793
2824
  getApiKeys,
2794
2825
  getApiKeysById,
2795
2826
  getApplications,
@@ -2871,7 +2902,6 @@ async function collectStreamedMessage(stream) {
2871
2902
  isRetryableError,
2872
2903
  paginateAll,
2873
2904
  paginateToArray,
2874
- patchAgentsById,
2875
2905
  patchApiKeysById,
2876
2906
  patchApiKeysByIdAllocate,
2877
2907
  patchApiKeysByIdRevoke,
@@ -2902,14 +2932,16 @@ async function collectStreamedMessage(stream) {
2902
2932
  patchWorkspaceMembershipsByWorkspaceIdByUserId,
2903
2933
  patchWorkspacesById,
2904
2934
  patchWorkspacesByIdAllocate,
2905
- postAgents,
2906
2935
  postAgentsByIdClone,
2907
2936
  postAgentsByIdTest,
2908
2937
  postAgentsByIdValidate,
2938
+ postAgentsPredict,
2909
2939
  postAiChunksSearch,
2940
+ postAiConversations,
2910
2941
  postAiEmbed,
2911
2942
  postAiGraphEdges,
2912
2943
  postAiGraphNodes,
2944
+ postAiMessages,
2913
2945
  postAiSearch,
2914
2946
  postAiSearchAdvanced,
2915
2947
  postApiKeys,
package/dist/index.mjs CHANGED
@@ -1346,6 +1346,15 @@ var postApplications = (options) => (options.client ?? client).post({
1346
1346
  ...options.headers
1347
1347
  }
1348
1348
  });
1349
+ var postAgentsPredict = (options) => (options.client ?? client).post({
1350
+ security: [{ scheme: "bearer", type: "http" }],
1351
+ url: "/agents/predict",
1352
+ ...options,
1353
+ headers: {
1354
+ "Content-Type": "application/vnd.api+json",
1355
+ ...options.headers
1356
+ }
1357
+ });
1349
1358
  var deleteThreadsById = (options) => (options.client ?? client).delete({
1350
1359
  security: [{ scheme: "bearer", type: "http" }],
1351
1360
  url: "/threads/{id}",
@@ -1566,25 +1575,11 @@ var getExtractionResults = (options) => (options.client ?? client).get({
1566
1575
  url: "/extraction_results",
1567
1576
  ...options
1568
1577
  });
1569
- var deleteAgentsById = (options) => (options.client ?? client).delete({
1570
- security: [{ scheme: "bearer", type: "http" }],
1571
- url: "/agents/{id}",
1572
- ...options
1573
- });
1574
1578
  var getAgentsById = (options) => (options.client ?? client).get({
1575
1579
  security: [{ scheme: "bearer", type: "http" }],
1576
1580
  url: "/agents/{id}",
1577
1581
  ...options
1578
1582
  });
1579
- var patchAgentsById = (options) => (options.client ?? client).patch({
1580
- security: [{ scheme: "bearer", type: "http" }],
1581
- url: "/agents/{id}",
1582
- ...options,
1583
- headers: {
1584
- "Content-Type": "application/vnd.api+json",
1585
- ...options.headers
1586
- }
1587
- });
1588
1583
  var postDocumentsImport = (options) => (options.client ?? client).post({
1589
1584
  security: [{ scheme: "bearer", type: "http" }],
1590
1585
  url: "/documents/import",
@@ -1613,6 +1608,20 @@ var patchApiKeysById = (options) => (options.client ?? client).patch({
1613
1608
  ...options.headers
1614
1609
  }
1615
1610
  });
1611
+ var getAiConversations = (options) => (options.client ?? client).get({
1612
+ security: [{ scheme: "bearer", type: "http" }],
1613
+ url: "/ai/conversations",
1614
+ ...options
1615
+ });
1616
+ var postAiConversations = (options) => (options.client ?? client).post({
1617
+ security: [{ scheme: "bearer", type: "http" }],
1618
+ url: "/ai/conversations",
1619
+ ...options,
1620
+ headers: {
1621
+ "Content-Type": "application/vnd.api+json",
1622
+ ...options.headers
1623
+ }
1624
+ });
1616
1625
  var postAiSearch = (options) => (options.client ?? client).post({
1617
1626
  security: [{ scheme: "bearer", type: "http" }],
1618
1627
  url: "/ai/search",
@@ -1903,6 +1912,20 @@ var patchTenantMembershipsByTenantIdByUserId = (options) => (options.client ?? c
1903
1912
  ...options.headers
1904
1913
  }
1905
1914
  });
1915
+ var getAiMessages = (options) => (options.client ?? client).get({
1916
+ security: [{ scheme: "bearer", type: "http" }],
1917
+ url: "/ai/messages",
1918
+ ...options
1919
+ });
1920
+ var postAiMessages = (options) => (options.client ?? client).post({
1921
+ security: [{ scheme: "bearer", type: "http" }],
1922
+ url: "/ai/messages",
1923
+ ...options,
1924
+ headers: {
1925
+ "Content-Type": "application/vnd.api+json",
1926
+ ...options.headers
1927
+ }
1928
+ });
1906
1929
  var postStorageSignUpload = (options) => (options.client ?? client).post({
1907
1930
  security: [{ scheme: "bearer", type: "http" }],
1908
1931
  url: "/storage/sign_upload",
@@ -1957,6 +1980,16 @@ var postAgentsByIdClone = (options) => (options.client ?? client).post({
1957
1980
  ...options.headers
1958
1981
  }
1959
1982
  });
1983
+ var deleteAiConversationsById = (options) => (options.client ?? client).delete({
1984
+ security: [{ scheme: "bearer", type: "http" }],
1985
+ url: "/ai/conversations/{id}",
1986
+ ...options
1987
+ });
1988
+ var getAiConversationsById = (options) => (options.client ?? client).get({
1989
+ security: [{ scheme: "bearer", type: "http" }],
1990
+ url: "/ai/conversations/{id}",
1991
+ ...options
1992
+ });
1960
1993
  var deleteUserProfilesById = (options) => (options.client ?? client).delete({
1961
1994
  security: [{ scheme: "bearer", type: "http" }],
1962
1995
  url: "/user_profiles/{id}",
@@ -2091,15 +2124,6 @@ var getAgents = (options) => (options.client ?? client).get({
2091
2124
  url: "/agents",
2092
2125
  ...options
2093
2126
  });
2094
- var postAgents = (options) => (options.client ?? client).post({
2095
- security: [{ scheme: "bearer", type: "http" }],
2096
- url: "/agents",
2097
- ...options,
2098
- headers: {
2099
- "Content-Type": "application/vnd.api+json",
2100
- ...options.headers
2101
- }
2102
- });
2103
2127
  var getDocumentsByIdExtractionResults = (options) => (options.client ?? client).get({
2104
2128
  security: [{ scheme: "bearer", type: "http" }],
2105
2129
  url: "/documents/{id}/extraction_results",
@@ -2509,7 +2533,7 @@ export {
2509
2533
  calculateBackoff,
2510
2534
  client,
2511
2535
  collectStreamedMessage,
2512
- deleteAgentsById,
2536
+ deleteAiConversationsById,
2513
2537
  deleteAiGraphEdgesById,
2514
2538
  deleteAiGraphNodesById,
2515
2539
  deleteApiKeysById,
@@ -2532,8 +2556,11 @@ export {
2532
2556
  getAgents,
2533
2557
  getAgentsById,
2534
2558
  getAiChunksDocumentByDocumentId,
2559
+ getAiConversations,
2560
+ getAiConversationsById,
2535
2561
  getAiGraphEdges,
2536
2562
  getAiGraphNodes,
2563
+ getAiMessages,
2537
2564
  getApiKeys,
2538
2565
  getApiKeysById,
2539
2566
  getApplications,
@@ -2615,7 +2642,6 @@ export {
2615
2642
  isRetryableError,
2616
2643
  paginateAll,
2617
2644
  paginateToArray,
2618
- patchAgentsById,
2619
2645
  patchApiKeysById,
2620
2646
  patchApiKeysByIdAllocate,
2621
2647
  patchApiKeysByIdRevoke,
@@ -2646,14 +2672,16 @@ export {
2646
2672
  patchWorkspaceMembershipsByWorkspaceIdByUserId,
2647
2673
  patchWorkspacesById,
2648
2674
  patchWorkspacesByIdAllocate,
2649
- postAgents,
2650
2675
  postAgentsByIdClone,
2651
2676
  postAgentsByIdTest,
2652
2677
  postAgentsByIdValidate,
2678
+ postAgentsPredict,
2653
2679
  postAiChunksSearch,
2680
+ postAiConversations,
2654
2681
  postAiEmbed,
2655
2682
  postAiGraphEdges,
2656
2683
  postAiGraphNodes,
2684
+ postAiMessages,
2657
2685
  postAiSearch,
2658
2686
  postAiSearchAdvanced,
2659
2687
  postApiKeys,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gpt-core/client",
3
- "version": "0.2.0",
3
+ "version": "0.3.1",
4
4
  "description": "TypeScript SDK for GPT Core Client API - Document extraction, AI agents, and workspace management",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",