@gpt-core/client 0.6.97 → 0.6.99

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,6 +49,7 @@ __export(index_exports, {
49
49
  calculateBackoff: () => calculateBackoff,
50
50
  client: () => client,
51
51
  collectStreamedMessage: () => collectStreamedMessage,
52
+ default: () => index_default,
52
53
  deleteAgentsById: () => deleteAgentsById,
53
54
  deleteAiConversationsById: () => deleteAiConversationsById,
54
55
  deleteAiGraphEdgesById: () => deleteAiGraphEdgesById,
@@ -318,6 +319,268 @@ __export(index_exports, {
318
319
  });
319
320
  module.exports = __toCommonJS(index_exports);
320
321
 
322
+ // src/_internal/sdk.gen.ts
323
+ var sdk_gen_exports = {};
324
+ __export(sdk_gen_exports, {
325
+ deleteAgentsById: () => deleteAgentsById,
326
+ deleteAiConversationsById: () => deleteAiConversationsById,
327
+ deleteAiGraphEdgesById: () => deleteAiGraphEdgesById,
328
+ deleteAiGraphNodesById: () => deleteAiGraphNodesById,
329
+ deleteApiKeysById: () => deleteApiKeysById,
330
+ deleteApplicationsById: () => deleteApplicationsById,
331
+ deleteBucketsById: () => deleteBucketsById,
332
+ deleteExtractionDocumentsById: () => deleteExtractionDocumentsById,
333
+ deleteExtractionSchemaFieldsById: () => deleteExtractionSchemaFieldsById,
334
+ deleteFieldTemplatesById: () => deleteFieldTemplatesById,
335
+ deleteMessagesById: () => deleteMessagesById,
336
+ deleteNotificationMethodsById: () => deleteNotificationMethodsById,
337
+ deleteNotificationPreferencesById: () => deleteNotificationPreferencesById,
338
+ deleteObjectsById: () => deleteObjectsById,
339
+ deleteSearchSavedById: () => deleteSearchSavedById,
340
+ deleteTenantMembershipsByTenantIdByUserId: () => deleteTenantMembershipsByTenantIdByUserId,
341
+ deleteTenantsById: () => deleteTenantsById,
342
+ deleteThreadsById: () => deleteThreadsById,
343
+ deleteTrainingExamplesById: () => deleteTrainingExamplesById,
344
+ deleteTrainingSessionsById: () => deleteTrainingSessionsById,
345
+ deleteUserProfilesById: () => deleteUserProfilesById,
346
+ deleteWebhookConfigsById: () => deleteWebhookConfigsById,
347
+ deleteWorkspaceMembershipsByWorkspaceIdByUserId: () => deleteWorkspaceMembershipsByWorkspaceIdByUserId,
348
+ deleteWorkspacesById: () => deleteWorkspacesById,
349
+ getAgentVersions: () => getAgentVersions,
350
+ getAgentVersionsById: () => getAgentVersionsById,
351
+ getAgents: () => getAgents,
352
+ getAgentsById: () => getAgentsById,
353
+ getAgentsByIdTrainingStats: () => getAgentsByIdTrainingStats,
354
+ getAiChunksDocumentByDocumentId: () => getAiChunksDocumentByDocumentId,
355
+ getAiConversations: () => getAiConversations,
356
+ getAiConversationsById: () => getAiConversationsById,
357
+ getAiGraphEdges: () => getAiGraphEdges,
358
+ getAiGraphNodes: () => getAiGraphNodes,
359
+ getAiMessages: () => getAiMessages,
360
+ getApiKeys: () => getApiKeys,
361
+ getApiKeysById: () => getApiKeysById,
362
+ getApplications: () => getApplications,
363
+ getApplicationsById: () => getApplicationsById,
364
+ getApplicationsBySlugBySlug: () => getApplicationsBySlugBySlug,
365
+ getAuditLogs: () => getAuditLogs,
366
+ getBuckets: () => getBuckets,
367
+ getBucketsById: () => getBucketsById,
368
+ getBucketsByIdObjects: () => getBucketsByIdObjects,
369
+ getBucketsByIdStats: () => getBucketsByIdStats,
370
+ getConfigs: () => getConfigs,
371
+ getCreditPackages: () => getCreditPackages,
372
+ getCreditPackagesById: () => getCreditPackagesById,
373
+ getCreditPackagesSlugBySlug: () => getCreditPackagesSlugBySlug,
374
+ getDocumentsStats: () => getDocumentsStats,
375
+ getExtractionBatchesById: () => getExtractionBatchesById,
376
+ getExtractionBatchesByIdUploadUrls: () => getExtractionBatchesByIdUploadUrls,
377
+ getExtractionBatchesWorkspaceByWorkspaceId: () => getExtractionBatchesWorkspaceByWorkspaceId,
378
+ getExtractionDocuments: () => getExtractionDocuments,
379
+ getExtractionDocumentsById: () => getExtractionDocumentsById,
380
+ getExtractionDocumentsByIdStatus: () => getExtractionDocumentsByIdStatus,
381
+ getExtractionDocumentsByIdView: () => getExtractionDocumentsByIdView,
382
+ getExtractionDocumentsWorkspaceByWorkspaceId: () => getExtractionDocumentsWorkspaceByWorkspaceId,
383
+ getExtractionDocumentsWorkspaceByWorkspaceIdExcluded: () => getExtractionDocumentsWorkspaceByWorkspaceIdExcluded,
384
+ getExtractionDocumentsWorkspaceByWorkspaceIdReviewQueue: () => getExtractionDocumentsWorkspaceByWorkspaceIdReviewQueue,
385
+ getExtractionDocumentsWorkspaceByWorkspaceIdTrained: () => getExtractionDocumentsWorkspaceByWorkspaceIdTrained,
386
+ getExtractionResultsById: () => getExtractionResultsById,
387
+ getExtractionResultsDocumentByDocumentId: () => getExtractionResultsDocumentByDocumentId,
388
+ getExtractionSchemaFields: () => getExtractionSchemaFields,
389
+ getExtractionSchemaFieldsById: () => getExtractionSchemaFieldsById,
390
+ getExtractionSchemas: () => getExtractionSchemas,
391
+ getExtractionSchemasById: () => getExtractionSchemasById,
392
+ getExtractionSchemasWorkspaceByWorkspaceId: () => getExtractionSchemasWorkspaceByWorkspaceId,
393
+ getFieldTemplates: () => getFieldTemplates,
394
+ getFieldTemplatesById: () => getFieldTemplatesById,
395
+ getInvitations: () => getInvitations,
396
+ getInvitationsConsumeByToken: () => getInvitationsConsumeByToken,
397
+ getLlmAnalytics: () => getLlmAnalytics,
398
+ getLlmAnalyticsById: () => getLlmAnalyticsById,
399
+ getLlmAnalyticsCosts: () => getLlmAnalyticsCosts,
400
+ getLlmAnalyticsPlatform: () => getLlmAnalyticsPlatform,
401
+ getLlmAnalyticsSummary: () => getLlmAnalyticsSummary,
402
+ getLlmAnalyticsUsage: () => getLlmAnalyticsUsage,
403
+ getLlmAnalyticsWorkspace: () => getLlmAnalyticsWorkspace,
404
+ getMessages: () => getMessages,
405
+ getMessagesById: () => getMessagesById,
406
+ getMessagesSearch: () => getMessagesSearch,
407
+ getNotificationLogs: () => getNotificationLogs,
408
+ getNotificationLogsById: () => getNotificationLogsById,
409
+ getNotificationMethods: () => getNotificationMethods,
410
+ getNotificationMethodsById: () => getNotificationMethodsById,
411
+ getNotificationPreferences: () => getNotificationPreferences,
412
+ getNotificationPreferencesById: () => getNotificationPreferencesById,
413
+ getObjects: () => getObjects,
414
+ getObjectsById: () => getObjectsById,
415
+ getPlans: () => getPlans,
416
+ getPlansById: () => getPlansById,
417
+ getPlansSlugBySlug: () => getPlansSlugBySlug,
418
+ getSearch: () => getSearch,
419
+ getSearchHealth: () => getSearchHealth,
420
+ getSearchIndexes: () => getSearchIndexes,
421
+ getSearchSaved: () => getSearchSaved,
422
+ getSearchSemantic: () => getSearchSemantic,
423
+ getSearchStats: () => getSearchStats,
424
+ getSearchStatus: () => getSearchStatus,
425
+ getStorageStats: () => getStorageStats,
426
+ getTenantMemberships: () => getTenantMemberships,
427
+ getTenants: () => getTenants,
428
+ getTenantsById: () => getTenantsById,
429
+ getTenantsByTenantIdDocumentStats: () => getTenantsByTenantIdDocumentStats,
430
+ getTenantsByTenantIdStats: () => getTenantsByTenantIdStats,
431
+ getTenantsByTenantIdWorkspaceStats: () => getTenantsByTenantIdWorkspaceStats,
432
+ getThreads: () => getThreads,
433
+ getThreadsById: () => getThreadsById,
434
+ getThreadsSearch: () => getThreadsSearch,
435
+ getTrainingExamples: () => getTrainingExamples,
436
+ getTrainingExamplesById: () => getTrainingExamplesById,
437
+ getTrainingSessionsAgentsByAgentIdSessions: () => getTrainingSessionsAgentsByAgentIdSessions,
438
+ getTrainingSessionsById: () => getTrainingSessionsById,
439
+ getTransactions: () => getTransactions,
440
+ getTransactionsById: () => getTransactionsById,
441
+ getUserProfiles: () => getUserProfiles,
442
+ getUserProfilesById: () => getUserProfilesById,
443
+ getUserProfilesMe: () => getUserProfilesMe,
444
+ getUsers: () => getUsers,
445
+ getUsersById: () => getUsersById,
446
+ getUsersMe: () => getUsersMe,
447
+ getWallet: () => getWallet,
448
+ getWebhookConfigs: () => getWebhookConfigs,
449
+ getWebhookConfigsById: () => getWebhookConfigsById,
450
+ getWebhookDeliveries: () => getWebhookDeliveries,
451
+ getWebhookDeliveriesById: () => getWebhookDeliveriesById,
452
+ getWorkspaceMemberships: () => getWorkspaceMemberships,
453
+ getWorkspaces: () => getWorkspaces,
454
+ getWorkspacesById: () => getWorkspacesById,
455
+ getWorkspacesByWorkspaceIdExtractionExports: () => getWorkspacesByWorkspaceIdExtractionExports,
456
+ getWorkspacesByWorkspaceIdExtractionExportsById: () => getWorkspacesByWorkspaceIdExtractionExportsById,
457
+ getWorkspacesByWorkspaceIdTrainingAnalytics: () => getWorkspacesByWorkspaceIdTrainingAnalytics,
458
+ getWorkspacesMine: () => getWorkspacesMine,
459
+ patchAgentsById: () => patchAgentsById,
460
+ patchApiKeysById: () => patchApiKeysById,
461
+ patchApiKeysByIdAllocate: () => patchApiKeysByIdAllocate,
462
+ patchApiKeysByIdRevoke: () => patchApiKeysByIdRevoke,
463
+ patchApiKeysByIdRotate: () => patchApiKeysByIdRotate,
464
+ patchApplicationsById: () => patchApplicationsById,
465
+ patchApplicationsByIdGrantCredits: () => patchApplicationsByIdGrantCredits,
466
+ patchBucketsById: () => patchBucketsById,
467
+ patchConfigsByKey: () => patchConfigsByKey,
468
+ patchExtractionDocumentsByIdDismiss: () => patchExtractionDocumentsByIdDismiss,
469
+ patchExtractionDocumentsByIdDismissTraining: () => patchExtractionDocumentsByIdDismissTraining,
470
+ patchExtractionDocumentsByIdExclude: () => patchExtractionDocumentsByIdExclude,
471
+ patchExtractionDocumentsByIdFinishUpload: () => patchExtractionDocumentsByIdFinishUpload,
472
+ patchExtractionDocumentsByIdInclude: () => patchExtractionDocumentsByIdInclude,
473
+ patchExtractionDocumentsByIdMarkTrained: () => patchExtractionDocumentsByIdMarkTrained,
474
+ patchExtractionDocumentsByIdRestore: () => patchExtractionDocumentsByIdRestore,
475
+ patchExtractionDocumentsByIdStatus: () => patchExtractionDocumentsByIdStatus,
476
+ patchExtractionResultsByIdCorrections: () => patchExtractionResultsByIdCorrections,
477
+ patchExtractionResultsByIdRegenerate: () => patchExtractionResultsByIdRegenerate,
478
+ patchExtractionSchemaFieldsById: () => patchExtractionSchemaFieldsById,
479
+ patchExtractionSchemasById: () => patchExtractionSchemasById,
480
+ patchExtractionSchemasByIdActivate: () => patchExtractionSchemasByIdActivate,
481
+ patchExtractionSchemasByIdFields: () => patchExtractionSchemasByIdFields,
482
+ patchInvitationsByIdAccept: () => patchInvitationsByIdAccept,
483
+ patchInvitationsByIdResend: () => patchInvitationsByIdResend,
484
+ patchInvitationsByIdRevoke: () => patchInvitationsByIdRevoke,
485
+ patchMessagesById: () => patchMessagesById,
486
+ patchNotificationMethodsById: () => patchNotificationMethodsById,
487
+ patchNotificationMethodsByIdSetPrimary: () => patchNotificationMethodsByIdSetPrimary,
488
+ patchNotificationPreferencesById: () => patchNotificationPreferencesById,
489
+ patchTenantMembershipsByTenantIdByUserId: () => patchTenantMembershipsByTenantIdByUserId,
490
+ patchTenantsById: () => patchTenantsById,
491
+ patchThreadsById: () => patchThreadsById,
492
+ patchTrainingExamplesById: () => patchTrainingExamplesById,
493
+ patchUserProfilesById: () => patchUserProfilesById,
494
+ patchUsersAuthResetPassword: () => patchUsersAuthResetPassword,
495
+ patchUsersByIdAdmin: () => patchUsersByIdAdmin,
496
+ patchUsersByIdAdminEmail: () => patchUsersByIdAdminEmail,
497
+ patchUsersByIdConfirmEmail: () => patchUsersByIdConfirmEmail,
498
+ patchUsersByIdResetPassword: () => patchUsersByIdResetPassword,
499
+ patchWalletAddons: () => patchWalletAddons,
500
+ patchWalletAddonsByAddonSlugCancel: () => patchWalletAddonsByAddonSlugCancel,
501
+ patchWalletCredits: () => patchWalletCredits,
502
+ patchWalletPlan: () => patchWalletPlan,
503
+ patchWebhookConfigsById: () => patchWebhookConfigsById,
504
+ patchWebhookConfigsByIdRotateSecret: () => patchWebhookConfigsByIdRotateSecret,
505
+ patchWorkspaceMembershipsByWorkspaceIdByUserId: () => patchWorkspaceMembershipsByWorkspaceIdByUserId,
506
+ patchWorkspacesById: () => patchWorkspacesById,
507
+ patchWorkspacesByIdAllocate: () => patchWorkspacesByIdAllocate,
508
+ postAgentVersions: () => postAgentVersions,
509
+ postAgents: () => postAgents,
510
+ postAgentsByIdClone: () => postAgentsByIdClone,
511
+ postAgentsByIdPublishVersion: () => postAgentsByIdPublishVersion,
512
+ postAgentsByIdTeach: () => postAgentsByIdTeach,
513
+ postAgentsByIdTest: () => postAgentsByIdTest,
514
+ postAgentsByIdValidate: () => postAgentsByIdValidate,
515
+ postAgentsCloneForWorkspace: () => postAgentsCloneForWorkspace,
516
+ postAgentsPredict: () => postAgentsPredict,
517
+ postAiChunksSearch: () => postAiChunksSearch,
518
+ postAiConversations: () => postAiConversations,
519
+ postAiEmbed: () => postAiEmbed,
520
+ postAiGraphEdges: () => postAiGraphEdges,
521
+ postAiGraphNodes: () => postAiGraphNodes,
522
+ postAiMessages: () => postAiMessages,
523
+ postAiSearch: () => postAiSearch,
524
+ postAiSearchAdvanced: () => postAiSearchAdvanced,
525
+ postApiKeys: () => postApiKeys,
526
+ postApplications: () => postApplications,
527
+ postBuckets: () => postBuckets,
528
+ postConfigs: () => postConfigs,
529
+ postDocumentsBulkDelete: () => postDocumentsBulkDelete,
530
+ postDocumentsPresignedUpload: () => postDocumentsPresignedUpload,
531
+ postExtractionBatches: () => postExtractionBatches,
532
+ postExtractionDocumentsBeginUpload: () => postExtractionDocumentsBeginUpload,
533
+ postExtractionDocumentsUpload: () => postExtractionDocumentsUpload,
534
+ postExtractionResults: () => postExtractionResults,
535
+ postExtractionSchemaFields: () => postExtractionSchemaFields,
536
+ postExtractionSchemas: () => postExtractionSchemas,
537
+ postExtractionSchemasBulkCreate: () => postExtractionSchemasBulkCreate,
538
+ postFieldTemplates: () => postFieldTemplates,
539
+ postInvitationsAcceptByToken: () => postInvitationsAcceptByToken,
540
+ postInvitationsInvite: () => postInvitationsInvite,
541
+ postLlmAnalytics: () => postLlmAnalytics,
542
+ postMessages: () => postMessages,
543
+ postNotificationMethods: () => postNotificationMethods,
544
+ postNotificationPreferences: () => postNotificationPreferences,
545
+ postObjectsBulkDestroy: () => postObjectsBulkDestroy,
546
+ postObjectsRegister: () => postObjectsRegister,
547
+ postPayments: () => postPayments,
548
+ postSearchReindex: () => postSearchReindex,
549
+ postSearchSaved: () => postSearchSaved,
550
+ postStorageSignDownload: () => postStorageSignDownload,
551
+ postStorageSignUpload: () => postStorageSignUpload,
552
+ postTenantMemberships: () => postTenantMemberships,
553
+ postTenants: () => postTenants,
554
+ postTenantsByIdBuyStorage: () => postTenantsByIdBuyStorage,
555
+ postTenantsByIdCredit: () => postTenantsByIdCredit,
556
+ postTenantsByIdRemoveStorage: () => postTenantsByIdRemoveStorage,
557
+ postTenantsIsv: () => postTenantsIsv,
558
+ postThreads: () => postThreads,
559
+ postThreadsActive: () => postThreadsActive,
560
+ postThreadsByIdMessages: () => postThreadsByIdMessages,
561
+ postThreadsByIdSummarize: () => postThreadsByIdSummarize,
562
+ postTokens: () => postTokens,
563
+ postTrainingExamples: () => postTrainingExamples,
564
+ postTrainingExamplesBulk: () => postTrainingExamplesBulk,
565
+ postTrainingExamplesBulkDelete: () => postTrainingExamplesBulkDelete,
566
+ postTrainingExamplesSearch: () => postTrainingExamplesSearch,
567
+ postUserProfiles: () => postUserProfiles,
568
+ postUsersAuthConfirm: () => postUsersAuthConfirm,
569
+ postUsersAuthLogin: () => postUsersAuthLogin,
570
+ postUsersAuthMagicLinkLogin: () => postUsersAuthMagicLinkLogin,
571
+ postUsersAuthMagicLinkRequest: () => postUsersAuthMagicLinkRequest,
572
+ postUsersAuthRegister: () => postUsersAuthRegister,
573
+ postUsersAuthRegisterWithOidc: () => postUsersAuthRegisterWithOidc,
574
+ postUsersRegisterIsv: () => postUsersRegisterIsv,
575
+ postWebhookConfigs: () => postWebhookConfigs,
576
+ postWebhookConfigsByIdTest: () => postWebhookConfigsByIdTest,
577
+ postWebhookDeliveriesByIdRetry: () => postWebhookDeliveriesByIdRetry,
578
+ postWorkspaceMemberships: () => postWorkspaceMemberships,
579
+ postWorkspaces: () => postWorkspaces,
580
+ postWorkspacesByWorkspaceIdExtractionDocumentsDismissAllTrained: () => postWorkspacesByWorkspaceIdExtractionDocumentsDismissAllTrained,
581
+ postWorkspacesByWorkspaceIdExtractionExports: () => postWorkspacesByWorkspaceIdExtractionExports
582
+ });
583
+
321
584
  // src/_internal/core/bodySerializer.gen.ts
322
585
  var jsonBodySerializer = {
323
586
  bodySerializer: (body) => JSON.stringify(
@@ -3261,6 +3524,13 @@ async function collectStreamedMessage(stream) {
3261
3524
  }
3262
3525
  return fullMessage;
3263
3526
  }
3527
+
3528
+ // src/index.ts
3529
+ var gptCore = {
3530
+ ...sdk_gen_exports,
3531
+ client
3532
+ };
3533
+ var index_default = gptCore;
3264
3534
  // Annotate the CommonJS export names for ESM import in node:
3265
3535
  0 && (module.exports = {
3266
3536
  AgentCreateSchema,
package/dist/index.mjs CHANGED
@@ -1,3 +1,271 @@
1
+ var __defProp = Object.defineProperty;
2
+ var __export = (target, all) => {
3
+ for (var name in all)
4
+ __defProp(target, name, { get: all[name], enumerable: true });
5
+ };
6
+
7
+ // src/_internal/sdk.gen.ts
8
+ var sdk_gen_exports = {};
9
+ __export(sdk_gen_exports, {
10
+ deleteAgentsById: () => deleteAgentsById,
11
+ deleteAiConversationsById: () => deleteAiConversationsById,
12
+ deleteAiGraphEdgesById: () => deleteAiGraphEdgesById,
13
+ deleteAiGraphNodesById: () => deleteAiGraphNodesById,
14
+ deleteApiKeysById: () => deleteApiKeysById,
15
+ deleteApplicationsById: () => deleteApplicationsById,
16
+ deleteBucketsById: () => deleteBucketsById,
17
+ deleteExtractionDocumentsById: () => deleteExtractionDocumentsById,
18
+ deleteExtractionSchemaFieldsById: () => deleteExtractionSchemaFieldsById,
19
+ deleteFieldTemplatesById: () => deleteFieldTemplatesById,
20
+ deleteMessagesById: () => deleteMessagesById,
21
+ deleteNotificationMethodsById: () => deleteNotificationMethodsById,
22
+ deleteNotificationPreferencesById: () => deleteNotificationPreferencesById,
23
+ deleteObjectsById: () => deleteObjectsById,
24
+ deleteSearchSavedById: () => deleteSearchSavedById,
25
+ deleteTenantMembershipsByTenantIdByUserId: () => deleteTenantMembershipsByTenantIdByUserId,
26
+ deleteTenantsById: () => deleteTenantsById,
27
+ deleteThreadsById: () => deleteThreadsById,
28
+ deleteTrainingExamplesById: () => deleteTrainingExamplesById,
29
+ deleteTrainingSessionsById: () => deleteTrainingSessionsById,
30
+ deleteUserProfilesById: () => deleteUserProfilesById,
31
+ deleteWebhookConfigsById: () => deleteWebhookConfigsById,
32
+ deleteWorkspaceMembershipsByWorkspaceIdByUserId: () => deleteWorkspaceMembershipsByWorkspaceIdByUserId,
33
+ deleteWorkspacesById: () => deleteWorkspacesById,
34
+ getAgentVersions: () => getAgentVersions,
35
+ getAgentVersionsById: () => getAgentVersionsById,
36
+ getAgents: () => getAgents,
37
+ getAgentsById: () => getAgentsById,
38
+ getAgentsByIdTrainingStats: () => getAgentsByIdTrainingStats,
39
+ getAiChunksDocumentByDocumentId: () => getAiChunksDocumentByDocumentId,
40
+ getAiConversations: () => getAiConversations,
41
+ getAiConversationsById: () => getAiConversationsById,
42
+ getAiGraphEdges: () => getAiGraphEdges,
43
+ getAiGraphNodes: () => getAiGraphNodes,
44
+ getAiMessages: () => getAiMessages,
45
+ getApiKeys: () => getApiKeys,
46
+ getApiKeysById: () => getApiKeysById,
47
+ getApplications: () => getApplications,
48
+ getApplicationsById: () => getApplicationsById,
49
+ getApplicationsBySlugBySlug: () => getApplicationsBySlugBySlug,
50
+ getAuditLogs: () => getAuditLogs,
51
+ getBuckets: () => getBuckets,
52
+ getBucketsById: () => getBucketsById,
53
+ getBucketsByIdObjects: () => getBucketsByIdObjects,
54
+ getBucketsByIdStats: () => getBucketsByIdStats,
55
+ getConfigs: () => getConfigs,
56
+ getCreditPackages: () => getCreditPackages,
57
+ getCreditPackagesById: () => getCreditPackagesById,
58
+ getCreditPackagesSlugBySlug: () => getCreditPackagesSlugBySlug,
59
+ getDocumentsStats: () => getDocumentsStats,
60
+ getExtractionBatchesById: () => getExtractionBatchesById,
61
+ getExtractionBatchesByIdUploadUrls: () => getExtractionBatchesByIdUploadUrls,
62
+ getExtractionBatchesWorkspaceByWorkspaceId: () => getExtractionBatchesWorkspaceByWorkspaceId,
63
+ getExtractionDocuments: () => getExtractionDocuments,
64
+ getExtractionDocumentsById: () => getExtractionDocumentsById,
65
+ getExtractionDocumentsByIdStatus: () => getExtractionDocumentsByIdStatus,
66
+ getExtractionDocumentsByIdView: () => getExtractionDocumentsByIdView,
67
+ getExtractionDocumentsWorkspaceByWorkspaceId: () => getExtractionDocumentsWorkspaceByWorkspaceId,
68
+ getExtractionDocumentsWorkspaceByWorkspaceIdExcluded: () => getExtractionDocumentsWorkspaceByWorkspaceIdExcluded,
69
+ getExtractionDocumentsWorkspaceByWorkspaceIdReviewQueue: () => getExtractionDocumentsWorkspaceByWorkspaceIdReviewQueue,
70
+ getExtractionDocumentsWorkspaceByWorkspaceIdTrained: () => getExtractionDocumentsWorkspaceByWorkspaceIdTrained,
71
+ getExtractionResultsById: () => getExtractionResultsById,
72
+ getExtractionResultsDocumentByDocumentId: () => getExtractionResultsDocumentByDocumentId,
73
+ getExtractionSchemaFields: () => getExtractionSchemaFields,
74
+ getExtractionSchemaFieldsById: () => getExtractionSchemaFieldsById,
75
+ getExtractionSchemas: () => getExtractionSchemas,
76
+ getExtractionSchemasById: () => getExtractionSchemasById,
77
+ getExtractionSchemasWorkspaceByWorkspaceId: () => getExtractionSchemasWorkspaceByWorkspaceId,
78
+ getFieldTemplates: () => getFieldTemplates,
79
+ getFieldTemplatesById: () => getFieldTemplatesById,
80
+ getInvitations: () => getInvitations,
81
+ getInvitationsConsumeByToken: () => getInvitationsConsumeByToken,
82
+ getLlmAnalytics: () => getLlmAnalytics,
83
+ getLlmAnalyticsById: () => getLlmAnalyticsById,
84
+ getLlmAnalyticsCosts: () => getLlmAnalyticsCosts,
85
+ getLlmAnalyticsPlatform: () => getLlmAnalyticsPlatform,
86
+ getLlmAnalyticsSummary: () => getLlmAnalyticsSummary,
87
+ getLlmAnalyticsUsage: () => getLlmAnalyticsUsage,
88
+ getLlmAnalyticsWorkspace: () => getLlmAnalyticsWorkspace,
89
+ getMessages: () => getMessages,
90
+ getMessagesById: () => getMessagesById,
91
+ getMessagesSearch: () => getMessagesSearch,
92
+ getNotificationLogs: () => getNotificationLogs,
93
+ getNotificationLogsById: () => getNotificationLogsById,
94
+ getNotificationMethods: () => getNotificationMethods,
95
+ getNotificationMethodsById: () => getNotificationMethodsById,
96
+ getNotificationPreferences: () => getNotificationPreferences,
97
+ getNotificationPreferencesById: () => getNotificationPreferencesById,
98
+ getObjects: () => getObjects,
99
+ getObjectsById: () => getObjectsById,
100
+ getPlans: () => getPlans,
101
+ getPlansById: () => getPlansById,
102
+ getPlansSlugBySlug: () => getPlansSlugBySlug,
103
+ getSearch: () => getSearch,
104
+ getSearchHealth: () => getSearchHealth,
105
+ getSearchIndexes: () => getSearchIndexes,
106
+ getSearchSaved: () => getSearchSaved,
107
+ getSearchSemantic: () => getSearchSemantic,
108
+ getSearchStats: () => getSearchStats,
109
+ getSearchStatus: () => getSearchStatus,
110
+ getStorageStats: () => getStorageStats,
111
+ getTenantMemberships: () => getTenantMemberships,
112
+ getTenants: () => getTenants,
113
+ getTenantsById: () => getTenantsById,
114
+ getTenantsByTenantIdDocumentStats: () => getTenantsByTenantIdDocumentStats,
115
+ getTenantsByTenantIdStats: () => getTenantsByTenantIdStats,
116
+ getTenantsByTenantIdWorkspaceStats: () => getTenantsByTenantIdWorkspaceStats,
117
+ getThreads: () => getThreads,
118
+ getThreadsById: () => getThreadsById,
119
+ getThreadsSearch: () => getThreadsSearch,
120
+ getTrainingExamples: () => getTrainingExamples,
121
+ getTrainingExamplesById: () => getTrainingExamplesById,
122
+ getTrainingSessionsAgentsByAgentIdSessions: () => getTrainingSessionsAgentsByAgentIdSessions,
123
+ getTrainingSessionsById: () => getTrainingSessionsById,
124
+ getTransactions: () => getTransactions,
125
+ getTransactionsById: () => getTransactionsById,
126
+ getUserProfiles: () => getUserProfiles,
127
+ getUserProfilesById: () => getUserProfilesById,
128
+ getUserProfilesMe: () => getUserProfilesMe,
129
+ getUsers: () => getUsers,
130
+ getUsersById: () => getUsersById,
131
+ getUsersMe: () => getUsersMe,
132
+ getWallet: () => getWallet,
133
+ getWebhookConfigs: () => getWebhookConfigs,
134
+ getWebhookConfigsById: () => getWebhookConfigsById,
135
+ getWebhookDeliveries: () => getWebhookDeliveries,
136
+ getWebhookDeliveriesById: () => getWebhookDeliveriesById,
137
+ getWorkspaceMemberships: () => getWorkspaceMemberships,
138
+ getWorkspaces: () => getWorkspaces,
139
+ getWorkspacesById: () => getWorkspacesById,
140
+ getWorkspacesByWorkspaceIdExtractionExports: () => getWorkspacesByWorkspaceIdExtractionExports,
141
+ getWorkspacesByWorkspaceIdExtractionExportsById: () => getWorkspacesByWorkspaceIdExtractionExportsById,
142
+ getWorkspacesByWorkspaceIdTrainingAnalytics: () => getWorkspacesByWorkspaceIdTrainingAnalytics,
143
+ getWorkspacesMine: () => getWorkspacesMine,
144
+ patchAgentsById: () => patchAgentsById,
145
+ patchApiKeysById: () => patchApiKeysById,
146
+ patchApiKeysByIdAllocate: () => patchApiKeysByIdAllocate,
147
+ patchApiKeysByIdRevoke: () => patchApiKeysByIdRevoke,
148
+ patchApiKeysByIdRotate: () => patchApiKeysByIdRotate,
149
+ patchApplicationsById: () => patchApplicationsById,
150
+ patchApplicationsByIdGrantCredits: () => patchApplicationsByIdGrantCredits,
151
+ patchBucketsById: () => patchBucketsById,
152
+ patchConfigsByKey: () => patchConfigsByKey,
153
+ patchExtractionDocumentsByIdDismiss: () => patchExtractionDocumentsByIdDismiss,
154
+ patchExtractionDocumentsByIdDismissTraining: () => patchExtractionDocumentsByIdDismissTraining,
155
+ patchExtractionDocumentsByIdExclude: () => patchExtractionDocumentsByIdExclude,
156
+ patchExtractionDocumentsByIdFinishUpload: () => patchExtractionDocumentsByIdFinishUpload,
157
+ patchExtractionDocumentsByIdInclude: () => patchExtractionDocumentsByIdInclude,
158
+ patchExtractionDocumentsByIdMarkTrained: () => patchExtractionDocumentsByIdMarkTrained,
159
+ patchExtractionDocumentsByIdRestore: () => patchExtractionDocumentsByIdRestore,
160
+ patchExtractionDocumentsByIdStatus: () => patchExtractionDocumentsByIdStatus,
161
+ patchExtractionResultsByIdCorrections: () => patchExtractionResultsByIdCorrections,
162
+ patchExtractionResultsByIdRegenerate: () => patchExtractionResultsByIdRegenerate,
163
+ patchExtractionSchemaFieldsById: () => patchExtractionSchemaFieldsById,
164
+ patchExtractionSchemasById: () => patchExtractionSchemasById,
165
+ patchExtractionSchemasByIdActivate: () => patchExtractionSchemasByIdActivate,
166
+ patchExtractionSchemasByIdFields: () => patchExtractionSchemasByIdFields,
167
+ patchInvitationsByIdAccept: () => patchInvitationsByIdAccept,
168
+ patchInvitationsByIdResend: () => patchInvitationsByIdResend,
169
+ patchInvitationsByIdRevoke: () => patchInvitationsByIdRevoke,
170
+ patchMessagesById: () => patchMessagesById,
171
+ patchNotificationMethodsById: () => patchNotificationMethodsById,
172
+ patchNotificationMethodsByIdSetPrimary: () => patchNotificationMethodsByIdSetPrimary,
173
+ patchNotificationPreferencesById: () => patchNotificationPreferencesById,
174
+ patchTenantMembershipsByTenantIdByUserId: () => patchTenantMembershipsByTenantIdByUserId,
175
+ patchTenantsById: () => patchTenantsById,
176
+ patchThreadsById: () => patchThreadsById,
177
+ patchTrainingExamplesById: () => patchTrainingExamplesById,
178
+ patchUserProfilesById: () => patchUserProfilesById,
179
+ patchUsersAuthResetPassword: () => patchUsersAuthResetPassword,
180
+ patchUsersByIdAdmin: () => patchUsersByIdAdmin,
181
+ patchUsersByIdAdminEmail: () => patchUsersByIdAdminEmail,
182
+ patchUsersByIdConfirmEmail: () => patchUsersByIdConfirmEmail,
183
+ patchUsersByIdResetPassword: () => patchUsersByIdResetPassword,
184
+ patchWalletAddons: () => patchWalletAddons,
185
+ patchWalletAddonsByAddonSlugCancel: () => patchWalletAddonsByAddonSlugCancel,
186
+ patchWalletCredits: () => patchWalletCredits,
187
+ patchWalletPlan: () => patchWalletPlan,
188
+ patchWebhookConfigsById: () => patchWebhookConfigsById,
189
+ patchWebhookConfigsByIdRotateSecret: () => patchWebhookConfigsByIdRotateSecret,
190
+ patchWorkspaceMembershipsByWorkspaceIdByUserId: () => patchWorkspaceMembershipsByWorkspaceIdByUserId,
191
+ patchWorkspacesById: () => patchWorkspacesById,
192
+ patchWorkspacesByIdAllocate: () => patchWorkspacesByIdAllocate,
193
+ postAgentVersions: () => postAgentVersions,
194
+ postAgents: () => postAgents,
195
+ postAgentsByIdClone: () => postAgentsByIdClone,
196
+ postAgentsByIdPublishVersion: () => postAgentsByIdPublishVersion,
197
+ postAgentsByIdTeach: () => postAgentsByIdTeach,
198
+ postAgentsByIdTest: () => postAgentsByIdTest,
199
+ postAgentsByIdValidate: () => postAgentsByIdValidate,
200
+ postAgentsCloneForWorkspace: () => postAgentsCloneForWorkspace,
201
+ postAgentsPredict: () => postAgentsPredict,
202
+ postAiChunksSearch: () => postAiChunksSearch,
203
+ postAiConversations: () => postAiConversations,
204
+ postAiEmbed: () => postAiEmbed,
205
+ postAiGraphEdges: () => postAiGraphEdges,
206
+ postAiGraphNodes: () => postAiGraphNodes,
207
+ postAiMessages: () => postAiMessages,
208
+ postAiSearch: () => postAiSearch,
209
+ postAiSearchAdvanced: () => postAiSearchAdvanced,
210
+ postApiKeys: () => postApiKeys,
211
+ postApplications: () => postApplications,
212
+ postBuckets: () => postBuckets,
213
+ postConfigs: () => postConfigs,
214
+ postDocumentsBulkDelete: () => postDocumentsBulkDelete,
215
+ postDocumentsPresignedUpload: () => postDocumentsPresignedUpload,
216
+ postExtractionBatches: () => postExtractionBatches,
217
+ postExtractionDocumentsBeginUpload: () => postExtractionDocumentsBeginUpload,
218
+ postExtractionDocumentsUpload: () => postExtractionDocumentsUpload,
219
+ postExtractionResults: () => postExtractionResults,
220
+ postExtractionSchemaFields: () => postExtractionSchemaFields,
221
+ postExtractionSchemas: () => postExtractionSchemas,
222
+ postExtractionSchemasBulkCreate: () => postExtractionSchemasBulkCreate,
223
+ postFieldTemplates: () => postFieldTemplates,
224
+ postInvitationsAcceptByToken: () => postInvitationsAcceptByToken,
225
+ postInvitationsInvite: () => postInvitationsInvite,
226
+ postLlmAnalytics: () => postLlmAnalytics,
227
+ postMessages: () => postMessages,
228
+ postNotificationMethods: () => postNotificationMethods,
229
+ postNotificationPreferences: () => postNotificationPreferences,
230
+ postObjectsBulkDestroy: () => postObjectsBulkDestroy,
231
+ postObjectsRegister: () => postObjectsRegister,
232
+ postPayments: () => postPayments,
233
+ postSearchReindex: () => postSearchReindex,
234
+ postSearchSaved: () => postSearchSaved,
235
+ postStorageSignDownload: () => postStorageSignDownload,
236
+ postStorageSignUpload: () => postStorageSignUpload,
237
+ postTenantMemberships: () => postTenantMemberships,
238
+ postTenants: () => postTenants,
239
+ postTenantsByIdBuyStorage: () => postTenantsByIdBuyStorage,
240
+ postTenantsByIdCredit: () => postTenantsByIdCredit,
241
+ postTenantsByIdRemoveStorage: () => postTenantsByIdRemoveStorage,
242
+ postTenantsIsv: () => postTenantsIsv,
243
+ postThreads: () => postThreads,
244
+ postThreadsActive: () => postThreadsActive,
245
+ postThreadsByIdMessages: () => postThreadsByIdMessages,
246
+ postThreadsByIdSummarize: () => postThreadsByIdSummarize,
247
+ postTokens: () => postTokens,
248
+ postTrainingExamples: () => postTrainingExamples,
249
+ postTrainingExamplesBulk: () => postTrainingExamplesBulk,
250
+ postTrainingExamplesBulkDelete: () => postTrainingExamplesBulkDelete,
251
+ postTrainingExamplesSearch: () => postTrainingExamplesSearch,
252
+ postUserProfiles: () => postUserProfiles,
253
+ postUsersAuthConfirm: () => postUsersAuthConfirm,
254
+ postUsersAuthLogin: () => postUsersAuthLogin,
255
+ postUsersAuthMagicLinkLogin: () => postUsersAuthMagicLinkLogin,
256
+ postUsersAuthMagicLinkRequest: () => postUsersAuthMagicLinkRequest,
257
+ postUsersAuthRegister: () => postUsersAuthRegister,
258
+ postUsersAuthRegisterWithOidc: () => postUsersAuthRegisterWithOidc,
259
+ postUsersRegisterIsv: () => postUsersRegisterIsv,
260
+ postWebhookConfigs: () => postWebhookConfigs,
261
+ postWebhookConfigsByIdTest: () => postWebhookConfigsByIdTest,
262
+ postWebhookDeliveriesByIdRetry: () => postWebhookDeliveriesByIdRetry,
263
+ postWorkspaceMemberships: () => postWorkspaceMemberships,
264
+ postWorkspaces: () => postWorkspaces,
265
+ postWorkspacesByWorkspaceIdExtractionDocumentsDismissAllTrained: () => postWorkspacesByWorkspaceIdExtractionDocumentsDismissAllTrained,
266
+ postWorkspacesByWorkspaceIdExtractionExports: () => postWorkspacesByWorkspaceIdExtractionExports
267
+ });
268
+
1
269
  // src/_internal/core/bodySerializer.gen.ts
2
270
  var jsonBodySerializer = {
3
271
  bodySerializer: (body) => JSON.stringify(
@@ -2941,6 +3209,13 @@ async function collectStreamedMessage(stream) {
2941
3209
  }
2942
3210
  return fullMessage;
2943
3211
  }
3212
+
3213
+ // src/index.ts
3214
+ var gptCore = {
3215
+ ...sdk_gen_exports,
3216
+ client
3217
+ };
3218
+ var index_default = gptCore;
2944
3219
  export {
2945
3220
  AgentCreateSchema,
2946
3221
  ApiKeyAllocateSchema,
@@ -2971,6 +3246,7 @@ export {
2971
3246
  calculateBackoff,
2972
3247
  client,
2973
3248
  collectStreamedMessage,
3249
+ index_default as default,
2974
3250
  deleteAgentsById,
2975
3251
  deleteAiConversationsById,
2976
3252
  deleteAiGraphEdgesById,
package/package.json CHANGED
@@ -1,22 +1,10 @@
1
1
  {
2
2
  "name": "@gpt-core/client",
3
- "version": "0.6.97",
3
+ "version": "0.6.99",
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",
7
7
  "types": "dist/index.d.ts",
8
- "exports": {
9
- ".": {
10
- "import": {
11
- "types": "./dist/index.d.mts",
12
- "default": "./dist/index.mjs"
13
- },
14
- "require": {
15
- "types": "./dist/index.d.ts",
16
- "default": "./dist/index.js"
17
- }
18
- }
19
- },
20
8
  "files": [
21
9
  "dist"
22
10
  ],
@@ -39,14 +27,6 @@
39
27
  "publishConfig": {
40
28
  "access": "public"
41
29
  },
42
- "scripts": {
43
- "generate": "openapi-ts",
44
- "build": "tsup src/index.ts --format cjs,esm --dts",
45
- "test": "vitest run",
46
- "test:watch": "vitest",
47
- "test:ui": "vitest --ui",
48
- "test:coverage": "vitest run --coverage"
49
- },
50
30
  "dependencies": {
51
31
  "eventsource-parser": "^3.0.6",
52
32
  "zod": "^3.25.76"
@@ -58,5 +38,13 @@
58
38
  "tsup": "^8.5.1",
59
39
  "typescript": "^5.9.3",
60
40
  "vitest": "^4.0.15"
41
+ },
42
+ "scripts": {
43
+ "generate": "openapi-ts",
44
+ "build": "tsup src/index.ts --format cjs,esm --dts",
45
+ "test": "vitest run",
46
+ "test:watch": "vitest",
47
+ "test:ui": "vitest --ui",
48
+ "test:coverage": "vitest run --coverage"
61
49
  }
62
- }
50
+ }