@gpt-core/client 0.5.4 → 0.5.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -138,7 +138,9 @@ __export(index_exports, {
138
138
  getTenantMemberships: () => getTenantMemberships,
139
139
  getTenants: () => getTenants,
140
140
  getTenantsById: () => getTenantsById,
141
+ getTenantsByTenantIdDocumentStats: () => getTenantsByTenantIdDocumentStats,
141
142
  getTenantsByTenantIdStats: () => getTenantsByTenantIdStats,
143
+ getTenantsByTenantIdWorkspaceStats: () => getTenantsByTenantIdWorkspaceStats,
142
144
  getThreads: () => getThreads,
143
145
  getThreadsById: () => getThreadsById,
144
146
  getThreadsSearch: () => getThreadsSearch,
@@ -203,6 +205,7 @@ __export(index_exports, {
203
205
  patchWorkspacesById: () => patchWorkspacesById,
204
206
  patchWorkspacesByIdAllocate: () => patchWorkspacesByIdAllocate,
205
207
  postAgentsByIdClone: () => postAgentsByIdClone,
208
+ postAgentsByIdLearnFromDocument: () => postAgentsByIdLearnFromDocument,
206
209
  postAgentsByIdTest: () => postAgentsByIdTest,
207
210
  postAgentsByIdValidate: () => postAgentsByIdValidate,
208
211
  postAgentsCloneForWorkspace: () => postAgentsCloneForWorkspace,
@@ -2175,6 +2178,16 @@ var postAiConversations = (options) => (options.client ?? client).post({
2175
2178
  ...options.headers
2176
2179
  }
2177
2180
  });
2181
+ var postAgentsByIdLearnFromDocument = (options) => (options.client ?? client).post({
2182
+ querySerializer: { parameters: { fields: { object: { style: "form" } } } },
2183
+ security: [{ scheme: "bearer", type: "http" }],
2184
+ url: "/agents/{id}/learn_from_document",
2185
+ ...options,
2186
+ headers: {
2187
+ "Content-Type": "application/vnd.api+json",
2188
+ ...options.headers
2189
+ }
2190
+ });
2178
2191
  var postAiSearch = (options) => (options.client ?? client).post({
2179
2192
  querySerializer: { parameters: { fields: { object: { style: "form" } } } },
2180
2193
  security: [{ scheme: "bearer", type: "http" }],
@@ -2338,6 +2351,17 @@ var getSearchStatus = (options) => (options.client ?? client).get({
2338
2351
  url: "/search/status",
2339
2352
  ...options
2340
2353
  });
2354
+ var getTenantsByTenantIdWorkspaceStats = (options) => (options.client ?? client).get({
2355
+ querySerializer: {
2356
+ parameters: {
2357
+ filter: { object: { style: "form" } },
2358
+ fields: { object: { style: "form" } }
2359
+ }
2360
+ },
2361
+ security: [{ scheme: "bearer", type: "http" }],
2362
+ url: "/tenants/{tenant_id}/workspace_stats",
2363
+ ...options
2364
+ });
2341
2365
  var patchApiKeysByIdAllocate = (options) => (options.client ?? client).patch({
2342
2366
  querySerializer: { parameters: { fields: { object: { style: "form" } } } },
2343
2367
  security: [{ scheme: "bearer", type: "http" }],
@@ -2462,6 +2486,12 @@ var postWorkspaceMemberships = (options) => (options.client ?? client).post({
2462
2486
  ...options.headers
2463
2487
  }
2464
2488
  });
2489
+ var getTenantsByTenantIdDocumentStats = (options) => (options.client ?? client).get({
2490
+ querySerializer: { parameters: { fields: { object: { style: "form" } } } },
2491
+ security: [{ scheme: "bearer", type: "http" }],
2492
+ url: "/tenants/{tenant_id}/document_stats",
2493
+ ...options
2494
+ });
2465
2495
  var postUsersAuthMagicLinkRequest = (options) => (options.client ?? client).post({
2466
2496
  querySerializer: { parameters: { fields: { object: { style: "form" } } } },
2467
2497
  security: [{ scheme: "bearer", type: "http" }],
@@ -3470,7 +3500,9 @@ async function collectStreamedMessage(stream) {
3470
3500
  getTenantMemberships,
3471
3501
  getTenants,
3472
3502
  getTenantsById,
3503
+ getTenantsByTenantIdDocumentStats,
3473
3504
  getTenantsByTenantIdStats,
3505
+ getTenantsByTenantIdWorkspaceStats,
3474
3506
  getThreads,
3475
3507
  getThreadsById,
3476
3508
  getThreadsSearch,
@@ -3535,6 +3567,7 @@ async function collectStreamedMessage(stream) {
3535
3567
  patchWorkspacesById,
3536
3568
  patchWorkspacesByIdAllocate,
3537
3569
  postAgentsByIdClone,
3570
+ postAgentsByIdLearnFromDocument,
3538
3571
  postAgentsByIdTest,
3539
3572
  postAgentsByIdValidate,
3540
3573
  postAgentsCloneForWorkspace,
package/dist/index.mjs CHANGED
@@ -1899,6 +1899,16 @@ var postAiConversations = (options) => (options.client ?? client).post({
1899
1899
  ...options.headers
1900
1900
  }
1901
1901
  });
1902
+ var postAgentsByIdLearnFromDocument = (options) => (options.client ?? client).post({
1903
+ querySerializer: { parameters: { fields: { object: { style: "form" } } } },
1904
+ security: [{ scheme: "bearer", type: "http" }],
1905
+ url: "/agents/{id}/learn_from_document",
1906
+ ...options,
1907
+ headers: {
1908
+ "Content-Type": "application/vnd.api+json",
1909
+ ...options.headers
1910
+ }
1911
+ });
1902
1912
  var postAiSearch = (options) => (options.client ?? client).post({
1903
1913
  querySerializer: { parameters: { fields: { object: { style: "form" } } } },
1904
1914
  security: [{ scheme: "bearer", type: "http" }],
@@ -2062,6 +2072,17 @@ var getSearchStatus = (options) => (options.client ?? client).get({
2062
2072
  url: "/search/status",
2063
2073
  ...options
2064
2074
  });
2075
+ var getTenantsByTenantIdWorkspaceStats = (options) => (options.client ?? client).get({
2076
+ querySerializer: {
2077
+ parameters: {
2078
+ filter: { object: { style: "form" } },
2079
+ fields: { object: { style: "form" } }
2080
+ }
2081
+ },
2082
+ security: [{ scheme: "bearer", type: "http" }],
2083
+ url: "/tenants/{tenant_id}/workspace_stats",
2084
+ ...options
2085
+ });
2065
2086
  var patchApiKeysByIdAllocate = (options) => (options.client ?? client).patch({
2066
2087
  querySerializer: { parameters: { fields: { object: { style: "form" } } } },
2067
2088
  security: [{ scheme: "bearer", type: "http" }],
@@ -2186,6 +2207,12 @@ var postWorkspaceMemberships = (options) => (options.client ?? client).post({
2186
2207
  ...options.headers
2187
2208
  }
2188
2209
  });
2210
+ var getTenantsByTenantIdDocumentStats = (options) => (options.client ?? client).get({
2211
+ querySerializer: { parameters: { fields: { object: { style: "form" } } } },
2212
+ security: [{ scheme: "bearer", type: "http" }],
2213
+ url: "/tenants/{tenant_id}/document_stats",
2214
+ ...options
2215
+ });
2189
2216
  var postUsersAuthMagicLinkRequest = (options) => (options.client ?? client).post({
2190
2217
  querySerializer: { parameters: { fields: { object: { style: "form" } } } },
2191
2218
  security: [{ scheme: "bearer", type: "http" }],
@@ -3193,7 +3220,9 @@ export {
3193
3220
  getTenantMemberships,
3194
3221
  getTenants,
3195
3222
  getTenantsById,
3223
+ getTenantsByTenantIdDocumentStats,
3196
3224
  getTenantsByTenantIdStats,
3225
+ getTenantsByTenantIdWorkspaceStats,
3197
3226
  getThreads,
3198
3227
  getThreadsById,
3199
3228
  getThreadsSearch,
@@ -3258,6 +3287,7 @@ export {
3258
3287
  patchWorkspacesById,
3259
3288
  patchWorkspacesByIdAllocate,
3260
3289
  postAgentsByIdClone,
3290
+ postAgentsByIdLearnFromDocument,
3261
3291
  postAgentsByIdTest,
3262
3292
  postAgentsByIdValidate,
3263
3293
  postAgentsCloneForWorkspace,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gpt-core/client",
3
- "version": "0.5.4",
3
+ "version": "0.5.6",
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",