@gpt-core/client 0.1.0-alpha.1 → 0.1.0-alpha.2

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.d.ts CHANGED
@@ -1,11 +1,51 @@
1
+ import { z } from 'zod';
2
+
3
+ /**
4
+ * Retry configuration
5
+ */
6
+ interface RetryConfig {
7
+ maxRetries: number;
8
+ initialDelay: number;
9
+ maxDelay: number;
10
+ retryableStatusCodes: number[];
11
+ }
12
+ /**
13
+ * Default retry configuration
14
+ */
15
+ declare const DEFAULT_RETRY_CONFIG: RetryConfig;
16
+ /**
17
+ * Check if an error is retryable
18
+ */
19
+ declare function isRetryableError(error: any, retryableStatusCodes: number[]): boolean;
20
+ /**
21
+ * Calculate exponential backoff delay
22
+ */
23
+ declare function calculateBackoff(attempt: number, initialDelay: number, maxDelay: number, retryAfter?: number): number;
24
+ /**
25
+ * Sleep for specified milliseconds
26
+ */
27
+ declare function sleep(ms: number): Promise<void>;
28
+ /**
29
+ * Retry a function with exponential backoff
30
+ */
31
+ declare function retryWithBackoff<T>(fn: () => Promise<T>, config?: RetryConfig): Promise<T>;
32
+ /**
33
+ * Create a retry wrapper for a client method
34
+ */
35
+ declare function withRetry<TArgs extends any[], TReturn>(fn: (...args: TArgs) => Promise<TReturn>, config?: Partial<RetryConfig>): (...args: TArgs) => Promise<TReturn>;
36
+
1
37
  interface BaseClientConfig {
2
38
  baseUrl?: string;
3
39
  token?: string;
4
40
  apiKey?: string;
41
+ retry?: Partial<RetryConfig> | false;
5
42
  }
6
43
  declare abstract class BaseClient {
44
+ protected retryConfig: Partial<RetryConfig> | false;
45
+ protected config: BaseClientConfig;
7
46
  constructor(config?: BaseClientConfig);
8
47
  protected unwrap<T>(resource: any): T;
48
+ protected handleError(error: any): never;
9
49
  }
10
50
 
11
51
  /**
@@ -13344,7 +13384,11 @@ declare class GptClient extends BaseClient {
13344
13384
  platform: {
13345
13385
  applications: {
13346
13386
  list: () => Promise<application[]>;
13347
- create: (attributes: application["attributes"]) => Promise<application>;
13387
+ create: (attributes: {
13388
+ name: string;
13389
+ slug?: string;
13390
+ description?: string;
13391
+ }) => Promise<application>;
13348
13392
  getBySlug: (slug: string) => Promise<application>;
13349
13393
  };
13350
13394
  workspaces: {
@@ -13409,4 +13453,348 @@ declare class GptClient extends BaseClient {
13409
13453
  };
13410
13454
  }
13411
13455
 
13412
- export { type DeleteAgentsByIdData, type DeleteAgentsByIdError, type DeleteAgentsByIdResponse, type DeleteAiGraphEdgesByIdData, type DeleteAiGraphEdgesByIdError, type DeleteAiGraphEdgesByIdResponse, type DeleteAiGraphNodesByIdData, type DeleteAiGraphNodesByIdError, type DeleteAiGraphNodesByIdResponse, type DeleteApiKeysByIdData, type DeleteApiKeysByIdError, type DeleteApiKeysByIdResponse, type DeleteApplicationsByIdData, type DeleteApplicationsByIdError, type DeleteApplicationsByIdResponse, type DeleteBucketsByIdData, type DeleteBucketsByIdError, type DeleteBucketsByIdResponse, type DeleteCustomersByIdData, type DeleteCustomersByIdError, type DeleteCustomersByIdResponse, type DeleteDocumentsByIdData, type DeleteDocumentsByIdError, type DeleteDocumentsByIdResponse, type DeleteExtractionResultsByIdData, type DeleteExtractionResultsByIdError, type DeleteExtractionResultsByIdResponse, type DeleteMessagesByIdData, type DeleteMessagesByIdError, type DeleteMessagesByIdResponse, type DeleteNotificationPreferencesByIdData, type DeleteNotificationPreferencesByIdError, type DeleteNotificationPreferencesByIdResponse, type DeleteObjectsByIdData, type DeleteObjectsByIdError, type DeleteObjectsByIdResponse, type DeletePaymentMethodsByIdData, type DeletePaymentMethodsByIdError, type DeletePaymentMethodsByIdResponse, type DeletePlansByIdData, type DeletePlansByIdError, type DeletePlansByIdResponse, type DeleteSearchSavedByIdData, type DeleteSearchSavedByIdError, type DeleteSearchSavedByIdResponse, type DeleteSubscriptionsByIdData, type DeleteSubscriptionsByIdError, type DeleteSubscriptionsByIdResponse, type DeleteTenantMembershipsByTenantIdByUserIdData, type DeleteTenantMembershipsByTenantIdByUserIdError, type DeleteTenantMembershipsByTenantIdByUserIdResponse, type DeleteTenantsByIdData, type DeleteTenantsByIdError, type DeleteTenantsByIdResponse, type DeleteThreadsByIdData, type DeleteThreadsByIdError, type DeleteThreadsByIdResponse, type DeleteTrainingExamplesByIdData, type DeleteTrainingExamplesByIdError, type DeleteTrainingExamplesByIdResponse, type DeleteUserProfilesByIdData, type DeleteUserProfilesByIdError, type DeleteUserProfilesByIdResponse, type DeleteWebhookConfigsByIdData, type DeleteWebhookConfigsByIdError, type DeleteWebhookConfigsByIdResponse, type DeleteWorkspaceMembershipsByWorkspaceIdByUserIdData, type DeleteWorkspaceMembershipsByWorkspaceIdByUserIdError, type DeleteWorkspaceMembershipsByWorkspaceIdByUserIdResponse, type DeleteWorkspacesByIdData, type DeleteWorkspacesByIdError, type DeleteWorkspacesByIdResponse, type GetAccountsByIdData, type GetAccountsByIdError, type GetAccountsByIdResponse, type GetAccountsData, type GetAccountsError, type GetAccountsResponse, type GetAgentsByIdData, type GetAgentsByIdError, type GetAgentsByIdResponse, type GetAgentsData, type GetAgentsError, type GetAgentsResponse, type GetAiChunksDocumentByDocumentIdData, type GetAiChunksDocumentByDocumentIdError, type GetAiChunksDocumentByDocumentIdResponse, type GetAiGraphEdgesData, type GetAiGraphEdgesError, type GetAiGraphEdgesResponse, type GetAiGraphNodesData, type GetAiGraphNodesError, type GetAiGraphNodesResponse, type GetApiKeysByIdData, type GetApiKeysByIdError, type GetApiKeysByIdResponse, type GetApiKeysData, type GetApiKeysError, type GetApiKeysResponse, type GetApplicationsByIdData, type GetApplicationsByIdError, type GetApplicationsByIdResponse, type GetApplicationsBySlugBySlugData, type GetApplicationsBySlugBySlugError, type GetApplicationsBySlugBySlugResponse, type GetApplicationsData, type GetApplicationsError, type GetApplicationsResponse, type GetAuditLogsData, type GetAuditLogsError, type GetAuditLogsResponse, type GetBucketsByIdData, type GetBucketsByIdError, type GetBucketsByIdObjectsData, type GetBucketsByIdObjectsError, type GetBucketsByIdObjectsResponse, type GetBucketsByIdResponse, type GetBucketsByIdStatsData, type GetBucketsByIdStatsError, type GetBucketsByIdStatsResponse, type GetBucketsData, type GetBucketsError, type GetBucketsResponse, type GetConfigsData, type GetConfigsError, type GetConfigsResponse, type GetCreditPackages1Data, type GetCreditPackages1Error, type GetCreditPackages1Response, type GetCreditPackagesById1Data, type GetCreditPackagesById1Error, type GetCreditPackagesById1Response, type GetCreditPackagesByIdData, type GetCreditPackagesByIdError, type GetCreditPackagesByIdResponse, type GetCreditPackagesData, type GetCreditPackagesError, type GetCreditPackagesResponse, type GetCreditPackagesSlugBySlug1Data, type GetCreditPackagesSlugBySlug1Error, type GetCreditPackagesSlugBySlug1Response, type GetCreditPackagesSlugBySlugData, type GetCreditPackagesSlugBySlugError, type GetCreditPackagesSlugBySlugResponse, type GetCustomersByIdData, type GetCustomersByIdError, type GetCustomersByIdResponse, type GetDocumentsByIdData, type GetDocumentsByIdError, type GetDocumentsByIdExtractionResultsData, type GetDocumentsByIdExtractionResultsError, type GetDocumentsByIdExtractionResultsResponse, type GetDocumentsByIdRelationshipsChunksData, type GetDocumentsByIdRelationshipsChunksError, type GetDocumentsByIdRelationshipsChunksResponse, type GetDocumentsByIdResponse, type GetDocumentsData, type GetDocumentsError, type GetDocumentsProcessingQueueData, type GetDocumentsProcessingQueueError, type GetDocumentsProcessingQueueResponse, type GetDocumentsResponse, type GetDocumentsSearchData, type GetDocumentsSearchError, type GetDocumentsSearchResponse, type GetDocumentsStatsData, type GetDocumentsStatsError, type GetDocumentsStatsResponse, type GetExtractionResultsByIdData, type GetExtractionResultsByIdError, type GetExtractionResultsByIdResponse, type GetExtractionResultsData, type GetExtractionResultsError, type GetExtractionResultsResponse, type GetInvitationsConsumeByTokenData, type GetInvitationsConsumeByTokenError, type GetInvitationsConsumeByTokenResponse, type GetInvitationsData, type GetInvitationsError, type GetInvitationsResponse, type GetLedgerByIdData, type GetLedgerByIdError, type GetLedgerByIdResponse, type GetLedgerData, type GetLedgerError, type GetLedgerResponse, type GetLlmAnalyticsByIdData, type GetLlmAnalyticsByIdError, type GetLlmAnalyticsByIdResponse, type GetLlmAnalyticsCostsData, type GetLlmAnalyticsCostsError, type GetLlmAnalyticsCostsResponse, type GetLlmAnalyticsData, type GetLlmAnalyticsError, type GetLlmAnalyticsPlatformData, type GetLlmAnalyticsPlatformError, type GetLlmAnalyticsPlatformResponse, type GetLlmAnalyticsResponse, type GetLlmAnalyticsSummaryData, type GetLlmAnalyticsSummaryError, type GetLlmAnalyticsSummaryResponse, type GetLlmAnalyticsUsageData, type GetLlmAnalyticsUsageError, type GetLlmAnalyticsUsageResponse, type GetLlmAnalyticsWorkspaceData, type GetLlmAnalyticsWorkspaceError, type GetLlmAnalyticsWorkspaceResponse, type GetMessagesByIdData, type GetMessagesByIdError, type GetMessagesByIdResponse, type GetMessagesData, type GetMessagesError, type GetMessagesResponse, type GetMessagesSearchData, type GetMessagesSearchError, type GetMessagesSearchResponse, type GetNotificationLogsByIdData, type GetNotificationLogsByIdError, type GetNotificationLogsByIdResponse, type GetNotificationLogsData, type GetNotificationLogsError, type GetNotificationLogsResponse, type GetNotificationPreferencesByIdData, type GetNotificationPreferencesByIdError, type GetNotificationPreferencesByIdResponse, type GetNotificationPreferencesData, type GetNotificationPreferencesError, type GetNotificationPreferencesResponse, type GetObjectsByIdData, type GetObjectsByIdError, type GetObjectsByIdResponse, type GetObjectsData, type GetObjectsError, type GetObjectsResponse, type GetPaymentMethodsByIdData, type GetPaymentMethodsByIdError, type GetPaymentMethodsByIdResponse, type GetPaymentMethodsData, type GetPaymentMethodsError, type GetPaymentMethodsResponse, type GetPlansByIdData, type GetPlansByIdError, type GetPlansByIdResponse, type GetPlansData, type GetPlansError, type GetPlansResponse, type GetPlansSlugBySlugData, type GetPlansSlugBySlugError, type GetPlansSlugBySlugResponse, type GetPricingRulesByIdData, type GetPricingRulesByIdError, type GetPricingRulesByIdResponse, type GetPricingRulesData, type GetPricingRulesError, type GetPricingRulesResolveData, type GetPricingRulesResolveError, type GetPricingRulesResolveResponse, type GetPricingRulesResponse, type GetPricingStrategiesByIdData, type GetPricingStrategiesByIdError, type GetPricingStrategiesByIdResponse, type GetPricingStrategiesData, type GetPricingStrategiesError, type GetPricingStrategiesResponse, type GetSearchData, type GetSearchError, type GetSearchHealthData, type GetSearchHealthError, type GetSearchHealthResponse, type GetSearchIndexesData, type GetSearchIndexesError, type GetSearchIndexesResponse, type GetSearchResponse, type GetSearchSavedData, type GetSearchSavedError, type GetSearchSavedResponse, type GetSearchSemanticData, type GetSearchSemanticError, type GetSearchSemanticResponse, type GetSearchStatsData, type GetSearchStatsError, type GetSearchStatsResponse, type GetSearchStatusData, type GetSearchStatusError, type GetSearchStatusResponse, type GetStorageStatsData, type GetStorageStatsError, type GetStorageStatsResponse, type GetSubscriptionsByIdData, type GetSubscriptionsByIdError, type GetSubscriptionsByIdResponse, type GetSubscriptionsData, type GetSubscriptionsError, type GetSubscriptionsResponse, type GetTenantMembershipsData, type GetTenantMembershipsError, type GetTenantMembershipsResponse, type GetTenantsByIdData, type GetTenantsByIdError, type GetTenantsByIdResponse, type GetTenantsData, type GetTenantsError, type GetTenantsResponse, type GetThreadsByIdData, type GetThreadsByIdError, type GetThreadsByIdResponse, type GetThreadsData, type GetThreadsError, type GetThreadsResponse, type GetThreadsSearchData, type GetThreadsSearchError, type GetThreadsSearchResponse, type GetTrainingExamplesByIdData, type GetTrainingExamplesByIdError, type GetTrainingExamplesByIdResponse, type GetTrainingExamplesData, type GetTrainingExamplesError, type GetTrainingExamplesResponse, type GetTransactionsByIdData, type GetTransactionsByIdError, type GetTransactionsByIdResponse, type GetTransactionsData, type GetTransactionsError, type GetTransactionsResponse, type GetUserProfilesByIdData, type GetUserProfilesByIdError, type GetUserProfilesByIdResponse, type GetUserProfilesData, type GetUserProfilesError, type GetUserProfilesMeData, type GetUserProfilesMeError, type GetUserProfilesMeResponse, type GetUserProfilesResponse, type GetUsersByIdData, type GetUsersByIdError, type GetUsersByIdResponse, type GetUsersData, type GetUsersError, type GetUsersMeData, type GetUsersMeError, type GetUsersMeResponse, type GetUsersResponse, type GetWalletData, type GetWalletError, type GetWalletResponse, type GetWebhookConfigsByIdData, type GetWebhookConfigsByIdError, type GetWebhookConfigsByIdResponse, type GetWebhookConfigsData, type GetWebhookConfigsError, type GetWebhookConfigsResponse, type GetWebhookDeliveriesByIdData, type GetWebhookDeliveriesByIdError, type GetWebhookDeliveriesByIdResponse, type GetWebhookDeliveriesData, type GetWebhookDeliveriesError, type GetWebhookDeliveriesResponse, type GetWorkspaceMembershipsData, type GetWorkspaceMembershipsError, type GetWorkspaceMembershipsResponse, type GetWorkspacesByIdData, type GetWorkspacesByIdError, type GetWorkspacesByIdResponse, type GetWorkspacesData, type GetWorkspacesError, type GetWorkspacesMineData, type GetWorkspacesMineError, type GetWorkspacesMineResponse, type GetWorkspacesResponse, GptClient, type PatchAccountsByIdCreditData, type PatchAccountsByIdCreditError, type PatchAccountsByIdCreditResponse, type PatchAccountsByIdDebitData, type PatchAccountsByIdDebitError, type PatchAccountsByIdDebitResponse, type PatchAgentsByIdData, type PatchAgentsByIdError, type PatchAgentsByIdResponse, type PatchApiKeysByIdAllocateData, type PatchApiKeysByIdAllocateError, type PatchApiKeysByIdAllocateResponse, type PatchApiKeysByIdData, type PatchApiKeysByIdError, type PatchApiKeysByIdResponse, type PatchApiKeysByIdRevokeData, type PatchApiKeysByIdRevokeError, type PatchApiKeysByIdRevokeResponse, type PatchApiKeysByIdRotateData, type PatchApiKeysByIdRotateError, type PatchApiKeysByIdRotateResponse, type PatchApplicationsByIdData, type PatchApplicationsByIdError, type PatchApplicationsByIdResponse, type PatchBucketsByIdData, type PatchBucketsByIdError, type PatchBucketsByIdResponse, type PatchConfigsByKeyData, type PatchConfigsByKeyError, type PatchConfigsByKeyResponse, type PatchCustomersByIdData, type PatchCustomersByIdError, type PatchCustomersByIdResponse, type PatchDocumentsByIdData, type PatchDocumentsByIdError, type PatchDocumentsByIdResponse, type PatchExtractionResultsByIdData, type PatchExtractionResultsByIdError, type PatchExtractionResultsByIdResponse, type PatchInvitationsByIdAcceptData, type PatchInvitationsByIdAcceptError, type PatchInvitationsByIdAcceptResponse, type PatchInvitationsByIdResendData, type PatchInvitationsByIdResendError, type PatchInvitationsByIdResendResponse, type PatchInvitationsByIdRevokeData, type PatchInvitationsByIdRevokeError, type PatchInvitationsByIdRevokeResponse, type PatchMessagesByIdData, type PatchMessagesByIdError, type PatchMessagesByIdResponse, type PatchNotificationPreferencesByIdData, type PatchNotificationPreferencesByIdError, type PatchNotificationPreferencesByIdResponse, type PatchPlansByIdData, type PatchPlansByIdError, type PatchPlansByIdResponse, type PatchPricingRulesByIdData, type PatchPricingRulesByIdError, type PatchPricingRulesByIdResponse, type PatchPricingStrategiesByIdData, type PatchPricingStrategiesByIdError, type PatchPricingStrategiesByIdResponse, type PatchSubscriptionsByIdData, type PatchSubscriptionsByIdError, type PatchSubscriptionsByIdResponse, type PatchTenantMembershipsByTenantIdByUserIdData, type PatchTenantMembershipsByTenantIdByUserIdError, type PatchTenantMembershipsByTenantIdByUserIdResponse, type PatchTenantsByIdData, type PatchTenantsByIdError, type PatchTenantsByIdResponse, type PatchThreadsByIdData, type PatchThreadsByIdError, type PatchThreadsByIdResponse, type PatchTrainingExamplesByIdData, type PatchTrainingExamplesByIdError, type PatchTrainingExamplesByIdResponse, type PatchUserProfilesByIdData, type PatchUserProfilesByIdError, type PatchUserProfilesByIdResponse, type PatchUsersAuthResetPasswordData, type PatchUsersAuthResetPasswordError, type PatchUsersAuthResetPasswordResponse, type PatchUsersByIdConfirmEmailData, type PatchUsersByIdConfirmEmailError, type PatchUsersByIdConfirmEmailResponse, type PatchUsersByIdData, type PatchUsersByIdError, type PatchUsersByIdResetPasswordData, type PatchUsersByIdResetPasswordError, type PatchUsersByIdResetPasswordResponse, type PatchUsersByIdResponse, type PatchWalletAddonsByAddonSlugCancelData, type PatchWalletAddonsByAddonSlugCancelError, type PatchWalletAddonsByAddonSlugCancelResponse, type PatchWalletAddonsData, type PatchWalletAddonsError, type PatchWalletAddonsResponse, type PatchWalletPlanData, type PatchWalletPlanError, type PatchWalletPlanResponse, type PatchWebhookConfigsByIdData, type PatchWebhookConfigsByIdError, type PatchWebhookConfigsByIdResponse, type PatchWorkspaceMembershipsByWorkspaceIdByUserIdData, type PatchWorkspaceMembershipsByWorkspaceIdByUserIdError, type PatchWorkspaceMembershipsByWorkspaceIdByUserIdResponse, type PatchWorkspacesByIdAllocateData, type PatchWorkspacesByIdAllocateError, type PatchWorkspacesByIdAllocateResponse, type PatchWorkspacesByIdData, type PatchWorkspacesByIdError, type PatchWorkspacesByIdResponse, type PostAgentsByIdCloneData, type PostAgentsByIdCloneError, type PostAgentsByIdCloneResponse, type PostAgentsByIdTestData, type PostAgentsByIdTestError, type PostAgentsByIdTestResponse, type PostAgentsByIdValidateData, type PostAgentsByIdValidateError, type PostAgentsByIdValidateResponse, type PostAgentsData, type PostAgentsError, type PostAgentsResponse, type PostAiChunksSearchData, type PostAiChunksSearchError, type PostAiChunksSearchResponse, type PostAiEmbedData, type PostAiEmbedError, type PostAiEmbedResponse, type PostAiGraphEdgesData, type PostAiGraphEdgesError, type PostAiGraphEdgesResponse, type PostAiGraphNodesData, type PostAiGraphNodesError, type PostAiGraphNodesResponse, type PostAiSearchAdvancedData, type PostAiSearchAdvancedError, type PostAiSearchAdvancedResponse, type PostAiSearchData, type PostAiSearchError, type PostAiSearchResponse, type PostApiKeysData, type PostApiKeysError, type PostApiKeysResponse, type PostApplicationsData, type PostApplicationsError, type PostApplicationsResponse, type PostBucketsData, type PostBucketsError, type PostBucketsResponse, type PostConfigsData, type PostConfigsError, type PostConfigsResponse, type PostCustomersData, type PostCustomersError, type PostCustomersResponse, type PostDocumentsBulkDeleteData, type PostDocumentsBulkDeleteError, type PostDocumentsBulkDeleteResponse, type PostDocumentsBulkReprocessData, type PostDocumentsBulkReprocessError, type PostDocumentsBulkReprocessResponse, type PostDocumentsByIdAnalyzeData, type PostDocumentsByIdAnalyzeError, type PostDocumentsByIdAnalyzeResponse, type PostDocumentsByIdReprocessData, type PostDocumentsByIdReprocessError, type PostDocumentsByIdReprocessResponse, type PostDocumentsData, type PostDocumentsError, type PostDocumentsExportError, type PostDocumentsExportResponse, type PostDocumentsImportData, type PostDocumentsImportError, type PostDocumentsImportResponse, type PostDocumentsPresignedUploadData, type PostDocumentsPresignedUploadError, type PostDocumentsPresignedUploadResponse, type PostDocumentsResponse, type PostInvitationsAcceptByTokenData, type PostInvitationsAcceptByTokenError, type PostInvitationsAcceptByTokenResponse, type PostInvitationsInviteData, type PostInvitationsInviteError, type PostInvitationsInviteResponse, type PostLlmAnalyticsData, type PostLlmAnalyticsError, type PostLlmAnalyticsResponse, type PostMessagesData, type PostMessagesError, type PostMessagesResponse, type PostNotificationPreferencesData, type PostNotificationPreferencesError, type PostNotificationPreferencesResponse, type PostObjectsBulkDestroyData, type PostObjectsBulkDestroyError, type PostObjectsBulkDestroyResponse, type PostObjectsRegisterData, type PostObjectsRegisterError, type PostObjectsRegisterResponse, type PostPaymentMethodsData, type PostPaymentMethodsError, type PostPaymentMethodsResponse, type PostPaymentsData, type PostPaymentsError, type PostPaymentsResponse, type PostPlansData, type PostPlansError, type PostPlansResponse, type PostPricingRulesData, type PostPricingRulesError, type PostPricingRulesResponse, type PostPricingStrategiesData, type PostPricingStrategiesError, type PostPricingStrategiesResponse, type PostSearchReindexData, type PostSearchReindexError, type PostSearchReindexResponse, type PostSearchSavedData, type PostSearchSavedError, type PostSearchSavedResponse, type PostStorageSignDownloadData, type PostStorageSignDownloadError, type PostStorageSignDownloadResponse, type PostStorageSignUploadData, type PostStorageSignUploadError, type PostStorageSignUploadResponse, type PostSubscriptionsData, type PostSubscriptionsError, type PostSubscriptionsResponse, type PostTenantMembershipsData, type PostTenantMembershipsError, type PostTenantMembershipsResponse, type PostTenantsByIdBuyStorageData, type PostTenantsByIdBuyStorageError, type PostTenantsByIdBuyStorageResponse, type PostTenantsByIdRemoveStorageData, type PostTenantsByIdRemoveStorageError, type PostTenantsByIdRemoveStorageResponse, type PostTenantsData, type PostTenantsError, type PostTenantsResponse, type PostThreadsActiveData, type PostThreadsActiveError, type PostThreadsActiveResponse, type PostThreadsByIdMessagesData, type PostThreadsByIdMessagesError, type PostThreadsByIdMessagesResponse, type PostThreadsByIdSummarizeData, type PostThreadsByIdSummarizeError, type PostThreadsByIdSummarizeResponse, type PostThreadsData, type PostThreadsError, type PostThreadsResponse, type PostTokensData, type PostTokensError, type PostTokensResponse, type PostTrainingExamplesBulkData, type PostTrainingExamplesBulkDeleteData, type PostTrainingExamplesBulkDeleteError, type PostTrainingExamplesBulkDeleteResponse, type PostTrainingExamplesBulkError, type PostTrainingExamplesBulkResponse, type PostTrainingExamplesData, type PostTrainingExamplesError, type PostTrainingExamplesResponse, type PostUserProfilesData, type PostUserProfilesError, type PostUserProfilesResponse, type PostUsersAuthConfirmData, type PostUsersAuthConfirmError, type PostUsersAuthConfirmResponse, type PostUsersAuthLoginData, type PostUsersAuthLoginError, type PostUsersAuthLoginResponse, type PostUsersAuthMagicLinkLoginData, type PostUsersAuthMagicLinkLoginError, type PostUsersAuthMagicLinkLoginResponse, type PostUsersAuthMagicLinkRequestData, type PostUsersAuthMagicLinkRequestError, type PostUsersAuthMagicLinkRequestResponse, type PostUsersAuthRegisterData, type PostUsersAuthRegisterError, type PostUsersAuthRegisterResponse, type PostUsersAuthRegisterWithOidcData, type PostUsersAuthRegisterWithOidcError, type PostUsersAuthRegisterWithOidcResponse, type PostUsersRegisterIsvData, type PostUsersRegisterIsvError, type PostUsersRegisterIsvResponse, type PostWebhookConfigsByIdTestData, type PostWebhookConfigsByIdTestError, type PostWebhookConfigsByIdTestResponse, type PostWebhookConfigsData, type PostWebhookConfigsError, type PostWebhookConfigsResponse, type PostWebhookDeliveriesByIdRetryData, type PostWebhookDeliveriesByIdRetryError, type PostWebhookDeliveriesByIdRetryResponse, type PostWorkspaceMembershipsData, type PostWorkspaceMembershipsError, type PostWorkspaceMembershipsResponse, type PostWorkspacesData, type PostWorkspacesError, type PostWorkspacesResponse, type account, type account_filter, type account_filter_id, type agent, type agent_filter, type agent_filter_id, type ai_config, type ai_config_filter, type api_key, type api_key_filter, type api_key_filter_id, type api_key_filter_status, type application, type application_filter, type application_filter_id, type audit_log, type audit_log_filter, type audit_log_filter_action, type audit_log_filter_actor_id, type audit_log_filter_changes, type audit_log_filter_id, type audit_log_filter_resource_id, type audit_log_filter_resource_type, type audit_log_filter_tenant_id, type audit_log_filter_workspace_id, type bucket, type bucket_filter, type bucket_filter_id, type bucket_filter_name, type bucket_filter_region, type bucket_filter_storage_used, type bucket_filter_type, type config, type config_filter, type config_filter_description, type config_filter_key, type config_filter_value, type credit_package, type credit_package_filter, type credit_package_filter_created_at, type credit_package_filter_credits, type credit_package_filter_id, type credit_package_filter_name, type credit_package_filter_price, type credit_package_filter_slug, type credit_package_filter_updated_at, type customer, type customer_filter, type customer_filter_id, type document, type document_chunk, type document_chunk_filter, type document_chunk_filter_chunk_index, type document_chunk_filter_content, type document_chunk_filter_document_id, type document_chunk_filter_embedding, type document_chunk_filter_id, type document_filter, type document_filter_application_id, type document_filter_content, type document_filter_filename, type document_filter_id, type document_filter_metadata, type document_filter_mime_type, type document_filter_original_filename, type document_filter_size_bytes, type document_filter_status, type document_filter_storage_options, type document_filter_storage_path, type document_filter_summary, type document_filter_summary_embedding, type document_filter_tenant_id, type document_filter_uploader_id, type document_filter_workspace_id, type document_stats, type document_stats_filter, type document_stats_filter_completed, type document_stats_filter_failed, type document_stats_filter_id, type document_stats_filter_pending, type document_stats_filter_processing, type document_stats_filter_total, type embedding, type embedding_filter, type embedding_filter_embedding, type embedding_filter_id, type embedding_filter_model, type embedding_filter_text, type embedding_filter_usage, eq, eq2, eq3, eq4, eq5, eq6, eq7, eq8, type error, type errors, type extraction_result, type extraction_result_data_input_update_type, type extraction_result_filter, type extraction_result_filter_confidence_score, type extraction_result_filter_document_id, type extraction_result_filter_id, type extraction_result_filter_model_used, type extraction_result_filter_processing_time_ms, format, type graph_edge, type graph_edge_filter, type graph_edge_filter_id, type graph_edge_filter_properties, type graph_edge_filter_relationship, type graph_edge_filter_source_id, type graph_edge_filter_target_id, type graph_node, type graph_node_filter, type graph_node_filter_id, type graph_node_filter_label, type graph_node_filter_properties, type graph_node_filter_tenant_id, greater_than, greater_than2, greater_than3, greater_than4, greater_than5, greater_than6, greater_than7, greater_than8, greater_than_or_equal, greater_than_or_equal2, greater_than_or_equal3, greater_than_or_equal4, greater_than_or_equal5, greater_than_or_equal6, greater_than_or_equal7, greater_than_or_equal8, type invitation, type invitation_filter, type invitation_filter_id, type ledger, type ledger_filter, type ledger_filter_id, less_than, less_than2, less_than3, less_than4, less_than5, less_than6, less_than7, less_than8, less_than_or_equal, less_than_or_equal2, less_than_or_equal3, less_than_or_equal4, less_than_or_equal5, less_than_or_equal6, less_than_or_equal7, less_than_or_equal8, type link, type links, type llm_analytics, type llm_analytics_filter, type llm_analytics_filter_id, type message, type message_filter, type message_filter_id, not_eq, not_eq2, not_eq3, not_eq4, not_eq5, not_eq6, not_eq7, not_eq8, type notification_log, type notification_log_filter, type notification_log_filter_id, type notification_preference, type notification_preference_filter, type notification_preference_filter_id, type object_filter, type object_filter_content_type, type object_filter_id, type object_filter_key, type object_filter_size_bytes, type operation_success, type operation_success_filter, type operation_success_filter_id, type operation_success_filter_message, type operation_success_filter_success, type payment, type payment_filter, type payment_filter_amount, type payment_filter_created_at, type payment_filter_currency, type payment_filter_error_message, type payment_filter_id, type payment_filter_provider_reference, type payment_filter_status, type payment_method, type payment_method_filter, type payment_method_filter_id, type plan, type plan_filter, type plan_filter_created_at, type plan_filter_id, type plan_filter_monthly_credits, type plan_filter_monthly_price, type plan_filter_name, type plan_filter_slug, type plan_filter_storage_days, type plan_filter_type, type plan_filter_updated_at, type presigned_url, type presigned_url_filter, type presigned_url_filter_expires_in, type presigned_url_filter_headers, type presigned_url_filter_id, type presigned_url_filter_method, type presigned_url_filter_storage_path, type presigned_url_filter_upload_url, type presigned_url_filter_url, type pricing_rule, type pricing_rule_filter, type pricing_rule_filter_id, type pricing_strategy, type pricing_strategy_filter, type pricing_strategy_filter_id, role, type saved_search, type saved_search_filter, type saved_search_filter_filters, type saved_search_filter_id, type saved_search_filter_is_shared, type saved_search_filter_name, type saved_search_filter_query, type saved_search_filter_search_type, type search, type search_filter, type search_filter_id, type semantic_cache_entry, type semantic_cache_entry_filter, type semantic_cache_entry_filter_id, status, status2, type storage_object, type storage_stats, type storage_stats_filter, type storage_stats_filter_id, type storage_stats_filter_total_buckets, type storage_stats_filter_total_objects, type storage_stats_filter_total_storage_bytes, type subscription, type subscription_filter, type subscription_filter_id, type tenant, type tenant_filter, type tenant_filter_id, type tenant_filter_storage_blocks_purchased, type tenant_filter_storage_quota_bytes, type tenant_membership, type tenant_membership_filter, type tenant_membership_filter_role, type tenant_membership_filter_tenant_id, type tenant_membership_filter_user_id, type thread, type thread_filter, type thread_filter_context_summary, type thread_filter_id, type thread_filter_title, type token, type token_filter, type token_filter_brand, type token_filter_exp_month, type token_filter_exp_year, type token_filter_id, type token_filter_last4, type token_filter_token, type training_example, type training_example_filter, type training_example_filter_embedding, type training_example_filter_id, type training_example_filter_input_text, type training_example_filter_output_json, type transaction, type transaction_filter, type transaction_filter_amount, type transaction_filter_created_at, type transaction_filter_currency, type transaction_filter_description, type transaction_filter_error_message, type transaction_filter_id, type transaction_filter_provider_reference, type transaction_filter_service_id, type transaction_filter_status, type transaction_filter_type, type transaction_filter_updated_at, type, type user, type user_filter, type user_filter_current_workspace_id, type user_filter_email, type user_filter_id, type user_filter_is_app_admin, type user_filter_is_platform_admin, type user_profile, type user_profile_filter, type user_profile_filter_avatar_url, type user_profile_filter_bio, type user_profile_filter_first_name, type user_profile_filter_id, type user_profile_filter_last_name, type user_profile_filter_preferences, type user_profile_filter_social_links, type user_profile_filter_user_id, type wallet, type wallet_filter, type wallet_filter_application_id, type wallet_filter_credits, type wallet_filter_id, type wallet_filter_plan, type webhook_config, type webhook_config_filter, type webhook_config_filter_id, type webhook_delivery, type webhook_delivery_filter, type webhook_delivery_filter_id, type workspace, type workspace_filter, type workspace_filter_archived_at, type workspace_filter_description, type workspace_filter_expires_at, type workspace_filter_id, type workspace_filter_is_default, type workspace_filter_low_balance_threshold, type workspace_filter_renewal_params, type workspace_membership, type workspace_membership_filter };
13456
+ /**
13457
+ * Base error class for all GPT Core SDK errors
13458
+ */
13459
+ declare class GptCoreError extends Error {
13460
+ readonly name: string;
13461
+ readonly statusCode?: number;
13462
+ readonly code?: string;
13463
+ readonly requestId?: string;
13464
+ readonly headers?: Record<string, string>;
13465
+ readonly body?: any;
13466
+ constructor(message: string, options?: {
13467
+ statusCode?: number;
13468
+ code?: string;
13469
+ requestId?: string;
13470
+ headers?: Record<string, string>;
13471
+ body?: any;
13472
+ cause?: Error;
13473
+ });
13474
+ }
13475
+ /**
13476
+ * Authentication errors (401)
13477
+ */
13478
+ declare class AuthenticationError extends GptCoreError {
13479
+ constructor(message?: string, options?: ConstructorParameters<typeof GptCoreError>[1]);
13480
+ }
13481
+ /**
13482
+ * Authorization/Permission errors (403)
13483
+ */
13484
+ declare class AuthorizationError extends GptCoreError {
13485
+ constructor(message?: string, options?: ConstructorParameters<typeof GptCoreError>[1]);
13486
+ }
13487
+ /**
13488
+ * Resource not found errors (404)
13489
+ */
13490
+ declare class NotFoundError extends GptCoreError {
13491
+ constructor(message?: string, options?: ConstructorParameters<typeof GptCoreError>[1]);
13492
+ }
13493
+ /**
13494
+ * Validation errors (400, 422)
13495
+ */
13496
+ declare class ValidationError extends GptCoreError {
13497
+ readonly errors?: Array<{
13498
+ field?: string;
13499
+ message: string;
13500
+ }>;
13501
+ constructor(message?: string, errors?: Array<{
13502
+ field?: string;
13503
+ message: string;
13504
+ }>, options?: ConstructorParameters<typeof GptCoreError>[1]);
13505
+ }
13506
+ /**
13507
+ * Rate limiting errors (429)
13508
+ */
13509
+ declare class RateLimitError extends GptCoreError {
13510
+ readonly retryAfter?: number;
13511
+ constructor(message?: string, retryAfter?: number, options?: ConstructorParameters<typeof GptCoreError>[1]);
13512
+ }
13513
+ /**
13514
+ * Network/connection errors
13515
+ */
13516
+ declare class NetworkError extends GptCoreError {
13517
+ constructor(message?: string, options?: ConstructorParameters<typeof GptCoreError>[1]);
13518
+ }
13519
+ /**
13520
+ * Timeout errors
13521
+ */
13522
+ declare class TimeoutError extends GptCoreError {
13523
+ constructor(message?: string, options?: ConstructorParameters<typeof GptCoreError>[1]);
13524
+ }
13525
+ /**
13526
+ * Server errors (500+)
13527
+ */
13528
+ declare class ServerError extends GptCoreError {
13529
+ constructor(message?: string, options?: ConstructorParameters<typeof GptCoreError>[1]);
13530
+ }
13531
+ /**
13532
+ * Parse error response and throw appropriate error class
13533
+ */
13534
+ declare function handleApiError(error: any): never;
13535
+
13536
+ declare const LoginRequestSchema: z.ZodObject<{
13537
+ email: z.ZodString;
13538
+ password: z.ZodString;
13539
+ }, "strip", z.ZodTypeAny, {
13540
+ email: string;
13541
+ password: string;
13542
+ }, {
13543
+ email: string;
13544
+ password: string;
13545
+ }>;
13546
+ declare const RegisterRequestSchema: z.ZodEffects<z.ZodObject<{
13547
+ email: z.ZodString;
13548
+ password: z.ZodString;
13549
+ password_confirmation: z.ZodString;
13550
+ }, "strip", z.ZodTypeAny, {
13551
+ email: string;
13552
+ password: string;
13553
+ password_confirmation: string;
13554
+ }, {
13555
+ email: string;
13556
+ password: string;
13557
+ password_confirmation: string;
13558
+ }>, {
13559
+ email: string;
13560
+ password: string;
13561
+ password_confirmation: string;
13562
+ }, {
13563
+ email: string;
13564
+ password: string;
13565
+ password_confirmation: string;
13566
+ }>;
13567
+ declare const ApiKeyCreateSchema: z.ZodObject<{
13568
+ name: z.ZodString;
13569
+ }, "strip", z.ZodTypeAny, {
13570
+ name: string;
13571
+ }, {
13572
+ name: string;
13573
+ }>;
13574
+ declare const ApiKeyAllocateSchema: z.ZodObject<{
13575
+ amount: z.ZodNumber;
13576
+ description: z.ZodString;
13577
+ }, "strip", z.ZodTypeAny, {
13578
+ amount: number;
13579
+ description: string;
13580
+ }, {
13581
+ amount: number;
13582
+ description: string;
13583
+ }>;
13584
+ declare const ApplicationCreateSchema: z.ZodObject<{
13585
+ name: z.ZodString;
13586
+ slug: z.ZodOptional<z.ZodString>;
13587
+ description: z.ZodOptional<z.ZodString>;
13588
+ }, "strip", z.ZodTypeAny, {
13589
+ name: string;
13590
+ description?: string | undefined;
13591
+ slug?: string | undefined;
13592
+ }, {
13593
+ name: string;
13594
+ description?: string | undefined;
13595
+ slug?: string | undefined;
13596
+ }>;
13597
+ declare const WorkspaceCreateSchema: z.ZodObject<{
13598
+ name: z.ZodString;
13599
+ slug: z.ZodOptional<z.ZodString>;
13600
+ }, "strip", z.ZodTypeAny, {
13601
+ name: string;
13602
+ slug?: string | undefined;
13603
+ }, {
13604
+ name: string;
13605
+ slug?: string | undefined;
13606
+ }>;
13607
+ declare const InvitationCreateSchema: z.ZodObject<{
13608
+ email: z.ZodString;
13609
+ role: z.ZodString;
13610
+ scope_type: z.ZodEnum<["tenant", "workspace"]>;
13611
+ scope_id: z.ZodString;
13612
+ }, "strip", z.ZodTypeAny, {
13613
+ email: string;
13614
+ role: string;
13615
+ scope_type: "tenant" | "workspace";
13616
+ scope_id: string;
13617
+ }, {
13618
+ email: string;
13619
+ role: string;
13620
+ scope_type: "tenant" | "workspace";
13621
+ scope_id: string;
13622
+ }>;
13623
+ declare const AgentCreateSchema: z.ZodObject<{
13624
+ name: z.ZodString;
13625
+ prompt_template: z.ZodString;
13626
+ }, "strip", z.ZodTypeAny, {
13627
+ name: string;
13628
+ prompt_template: string;
13629
+ }, {
13630
+ name: string;
13631
+ prompt_template: string;
13632
+ }>;
13633
+ declare const ThreadCreateSchema: z.ZodObject<{
13634
+ title: z.ZodOptional<z.ZodString>;
13635
+ }, "strip", z.ZodTypeAny, {
13636
+ title?: string | undefined;
13637
+ }, {
13638
+ title?: string | undefined;
13639
+ }>;
13640
+ declare const MessageSendSchema: z.ZodObject<{
13641
+ content: z.ZodString;
13642
+ }, "strip", z.ZodTypeAny, {
13643
+ content: string;
13644
+ }, {
13645
+ content: string;
13646
+ }>;
13647
+ declare const SearchRequestSchema: z.ZodObject<{
13648
+ query: z.ZodString;
13649
+ top_k: z.ZodDefault<z.ZodNumber>;
13650
+ }, "strip", z.ZodTypeAny, {
13651
+ query: string;
13652
+ top_k: number;
13653
+ }, {
13654
+ query: string;
13655
+ top_k?: number | undefined;
13656
+ }>;
13657
+ declare const EmbedRequestSchema: z.ZodObject<{
13658
+ text: z.ZodString;
13659
+ workspace_id: z.ZodOptional<z.ZodString>;
13660
+ }, "strip", z.ZodTypeAny, {
13661
+ text: string;
13662
+ workspace_id?: string | undefined;
13663
+ }, {
13664
+ text: string;
13665
+ workspace_id?: string | undefined;
13666
+ }>;
13667
+ declare const DocumentUploadBase64Schema: z.ZodObject<{
13668
+ filename: z.ZodString;
13669
+ content: z.ZodString;
13670
+ }, "strip", z.ZodTypeAny, {
13671
+ content: string;
13672
+ filename: string;
13673
+ }, {
13674
+ content: string;
13675
+ filename: string;
13676
+ }>;
13677
+ declare const BucketCreateSchema: z.ZodObject<{
13678
+ name: z.ZodString;
13679
+ type: z.ZodEnum<["public", "private"]>;
13680
+ }, "strip", z.ZodTypeAny, {
13681
+ type: "public" | "private";
13682
+ name: string;
13683
+ }, {
13684
+ type: "public" | "private";
13685
+ name: string;
13686
+ }>;
13687
+ declare const PresignedUploadSchema: z.ZodObject<{
13688
+ filename: z.ZodString;
13689
+ content_type: z.ZodString;
13690
+ }, "strip", z.ZodTypeAny, {
13691
+ filename: string;
13692
+ content_type: string;
13693
+ }, {
13694
+ filename: string;
13695
+ content_type: string;
13696
+ }>;
13697
+ declare const PresignedDownloadSchema: z.ZodObject<{
13698
+ file_id: z.ZodString;
13699
+ }, "strip", z.ZodTypeAny, {
13700
+ file_id: string;
13701
+ }, {
13702
+ file_id: string;
13703
+ }>;
13704
+ type LoginRequest = z.infer<typeof LoginRequestSchema>;
13705
+ type RegisterRequest = z.infer<typeof RegisterRequestSchema>;
13706
+ type ApiKeyCreateRequest = z.infer<typeof ApiKeyCreateSchema>;
13707
+ type ApiKeyAllocateRequest = z.infer<typeof ApiKeyAllocateSchema>;
13708
+ type ApplicationCreateRequest = z.infer<typeof ApplicationCreateSchema>;
13709
+ type WorkspaceCreateRequest = z.infer<typeof WorkspaceCreateSchema>;
13710
+ type InvitationCreateRequest = z.infer<typeof InvitationCreateSchema>;
13711
+ type AgentCreateRequest = z.infer<typeof AgentCreateSchema>;
13712
+ type ThreadCreateRequest = z.infer<typeof ThreadCreateSchema>;
13713
+ type MessageSendRequest = z.infer<typeof MessageSendSchema>;
13714
+ type SearchRequest = z.infer<typeof SearchRequestSchema>;
13715
+ type EmbedRequest = z.infer<typeof EmbedRequestSchema>;
13716
+ type DocumentUploadBase64Request = z.infer<typeof DocumentUploadBase64Schema>;
13717
+ type BucketCreateRequest = z.infer<typeof BucketCreateSchema>;
13718
+ type PresignedUploadRequest = z.infer<typeof PresignedUploadSchema>;
13719
+ type PresignedDownloadRequest = z.infer<typeof PresignedDownloadSchema>;
13720
+
13721
+ /**
13722
+ * JSON:API pagination links
13723
+ */
13724
+ interface PaginationLinks {
13725
+ self?: string;
13726
+ first?: string;
13727
+ last?: string;
13728
+ prev?: string | null;
13729
+ next?: string | null;
13730
+ }
13731
+ /**
13732
+ * JSON:API response with pagination
13733
+ */
13734
+ interface PaginatedResponse<T> {
13735
+ data: T[];
13736
+ links?: PaginationLinks;
13737
+ meta?: {
13738
+ total_count?: number;
13739
+ page_count?: number;
13740
+ current_page?: number;
13741
+ };
13742
+ }
13743
+ /**
13744
+ * Options for paginated requests
13745
+ */
13746
+ interface PaginationOptions {
13747
+ /**
13748
+ * Page size (number of items per page)
13749
+ */
13750
+ pageSize?: number;
13751
+ /**
13752
+ * Maximum total items to fetch (default: unlimited)
13753
+ */
13754
+ limit?: number;
13755
+ }
13756
+ /**
13757
+ * Async iterator for paginated results
13758
+ */
13759
+ declare function paginateAll<T>(fetcher: (page: number, pageSize: number) => Promise<PaginatedResponse<T>>, options?: PaginationOptions): AsyncIterableIterator<T>;
13760
+ /**
13761
+ * Helper to collect all paginated results into an array
13762
+ */
13763
+ declare function paginateToArray<T>(fetcher: (page: number, pageSize: number) => Promise<PaginatedResponse<T>>, options?: PaginationOptions): Promise<T[]>;
13764
+
13765
+ /**
13766
+ * Options for streaming requests
13767
+ */
13768
+ interface StreamOptions {
13769
+ /**
13770
+ * Signal to abort the stream
13771
+ */
13772
+ signal?: AbortSignal;
13773
+ /**
13774
+ * Callback for handling errors
13775
+ */
13776
+ onError?: (error: Error) => void;
13777
+ }
13778
+ /**
13779
+ * Parse Server-Sent Events (SSE) stream into typed chunks
13780
+ */
13781
+ declare function streamSSE<T = unknown>(response: Response, options?: StreamOptions): AsyncIterableIterator<T>;
13782
+ /**
13783
+ * Stream AI thread messages with Server-Sent Events
13784
+ */
13785
+ interface StreamMessageChunk {
13786
+ type: 'content' | 'done' | 'error';
13787
+ content?: string;
13788
+ error?: string;
13789
+ metadata?: Record<string, any>;
13790
+ }
13791
+ /**
13792
+ * Parse streaming message response
13793
+ */
13794
+ declare function streamMessage(response: Response, options?: StreamOptions): AsyncIterableIterator<StreamMessageChunk>;
13795
+ /**
13796
+ * Collect full message from stream chunks
13797
+ */
13798
+ declare function collectStreamedMessage(stream: AsyncIterableIterator<StreamMessageChunk>): Promise<string>;
13799
+
13800
+ export { type AgentCreateRequest, AgentCreateSchema, type ApiKeyAllocateRequest, ApiKeyAllocateSchema, type ApiKeyCreateRequest, ApiKeyCreateSchema, type ApplicationCreateRequest, ApplicationCreateSchema, AuthenticationError, AuthorizationError, type BucketCreateRequest, BucketCreateSchema, DEFAULT_RETRY_CONFIG, type DeleteAgentsByIdData, type DeleteAgentsByIdError, type DeleteAgentsByIdResponse, type DeleteAiGraphEdgesByIdData, type DeleteAiGraphEdgesByIdError, type DeleteAiGraphEdgesByIdResponse, type DeleteAiGraphNodesByIdData, type DeleteAiGraphNodesByIdError, type DeleteAiGraphNodesByIdResponse, type DeleteApiKeysByIdData, type DeleteApiKeysByIdError, type DeleteApiKeysByIdResponse, type DeleteApplicationsByIdData, type DeleteApplicationsByIdError, type DeleteApplicationsByIdResponse, type DeleteBucketsByIdData, type DeleteBucketsByIdError, type DeleteBucketsByIdResponse, type DeleteCustomersByIdData, type DeleteCustomersByIdError, type DeleteCustomersByIdResponse, type DeleteDocumentsByIdData, type DeleteDocumentsByIdError, type DeleteDocumentsByIdResponse, type DeleteExtractionResultsByIdData, type DeleteExtractionResultsByIdError, type DeleteExtractionResultsByIdResponse, type DeleteMessagesByIdData, type DeleteMessagesByIdError, type DeleteMessagesByIdResponse, type DeleteNotificationPreferencesByIdData, type DeleteNotificationPreferencesByIdError, type DeleteNotificationPreferencesByIdResponse, type DeleteObjectsByIdData, type DeleteObjectsByIdError, type DeleteObjectsByIdResponse, type DeletePaymentMethodsByIdData, type DeletePaymentMethodsByIdError, type DeletePaymentMethodsByIdResponse, type DeletePlansByIdData, type DeletePlansByIdError, type DeletePlansByIdResponse, type DeleteSearchSavedByIdData, type DeleteSearchSavedByIdError, type DeleteSearchSavedByIdResponse, type DeleteSubscriptionsByIdData, type DeleteSubscriptionsByIdError, type DeleteSubscriptionsByIdResponse, type DeleteTenantMembershipsByTenantIdByUserIdData, type DeleteTenantMembershipsByTenantIdByUserIdError, type DeleteTenantMembershipsByTenantIdByUserIdResponse, type DeleteTenantsByIdData, type DeleteTenantsByIdError, type DeleteTenantsByIdResponse, type DeleteThreadsByIdData, type DeleteThreadsByIdError, type DeleteThreadsByIdResponse, type DeleteTrainingExamplesByIdData, type DeleteTrainingExamplesByIdError, type DeleteTrainingExamplesByIdResponse, type DeleteUserProfilesByIdData, type DeleteUserProfilesByIdError, type DeleteUserProfilesByIdResponse, type DeleteWebhookConfigsByIdData, type DeleteWebhookConfigsByIdError, type DeleteWebhookConfigsByIdResponse, type DeleteWorkspaceMembershipsByWorkspaceIdByUserIdData, type DeleteWorkspaceMembershipsByWorkspaceIdByUserIdError, type DeleteWorkspaceMembershipsByWorkspaceIdByUserIdResponse, type DeleteWorkspacesByIdData, type DeleteWorkspacesByIdError, type DeleteWorkspacesByIdResponse, type DocumentUploadBase64Request, DocumentUploadBase64Schema, type EmbedRequest, EmbedRequestSchema, type GetAccountsByIdData, type GetAccountsByIdError, type GetAccountsByIdResponse, type GetAccountsData, type GetAccountsError, type GetAccountsResponse, type GetAgentsByIdData, type GetAgentsByIdError, type GetAgentsByIdResponse, type GetAgentsData, type GetAgentsError, type GetAgentsResponse, type GetAiChunksDocumentByDocumentIdData, type GetAiChunksDocumentByDocumentIdError, type GetAiChunksDocumentByDocumentIdResponse, type GetAiGraphEdgesData, type GetAiGraphEdgesError, type GetAiGraphEdgesResponse, type GetAiGraphNodesData, type GetAiGraphNodesError, type GetAiGraphNodesResponse, type GetApiKeysByIdData, type GetApiKeysByIdError, type GetApiKeysByIdResponse, type GetApiKeysData, type GetApiKeysError, type GetApiKeysResponse, type GetApplicationsByIdData, type GetApplicationsByIdError, type GetApplicationsByIdResponse, type GetApplicationsBySlugBySlugData, type GetApplicationsBySlugBySlugError, type GetApplicationsBySlugBySlugResponse, type GetApplicationsData, type GetApplicationsError, type GetApplicationsResponse, type GetAuditLogsData, type GetAuditLogsError, type GetAuditLogsResponse, type GetBucketsByIdData, type GetBucketsByIdError, type GetBucketsByIdObjectsData, type GetBucketsByIdObjectsError, type GetBucketsByIdObjectsResponse, type GetBucketsByIdResponse, type GetBucketsByIdStatsData, type GetBucketsByIdStatsError, type GetBucketsByIdStatsResponse, type GetBucketsData, type GetBucketsError, type GetBucketsResponse, type GetConfigsData, type GetConfigsError, type GetConfigsResponse, type GetCreditPackages1Data, type GetCreditPackages1Error, type GetCreditPackages1Response, type GetCreditPackagesById1Data, type GetCreditPackagesById1Error, type GetCreditPackagesById1Response, type GetCreditPackagesByIdData, type GetCreditPackagesByIdError, type GetCreditPackagesByIdResponse, type GetCreditPackagesData, type GetCreditPackagesError, type GetCreditPackagesResponse, type GetCreditPackagesSlugBySlug1Data, type GetCreditPackagesSlugBySlug1Error, type GetCreditPackagesSlugBySlug1Response, type GetCreditPackagesSlugBySlugData, type GetCreditPackagesSlugBySlugError, type GetCreditPackagesSlugBySlugResponse, type GetCustomersByIdData, type GetCustomersByIdError, type GetCustomersByIdResponse, type GetDocumentsByIdData, type GetDocumentsByIdError, type GetDocumentsByIdExtractionResultsData, type GetDocumentsByIdExtractionResultsError, type GetDocumentsByIdExtractionResultsResponse, type GetDocumentsByIdRelationshipsChunksData, type GetDocumentsByIdRelationshipsChunksError, type GetDocumentsByIdRelationshipsChunksResponse, type GetDocumentsByIdResponse, type GetDocumentsData, type GetDocumentsError, type GetDocumentsProcessingQueueData, type GetDocumentsProcessingQueueError, type GetDocumentsProcessingQueueResponse, type GetDocumentsResponse, type GetDocumentsSearchData, type GetDocumentsSearchError, type GetDocumentsSearchResponse, type GetDocumentsStatsData, type GetDocumentsStatsError, type GetDocumentsStatsResponse, type GetExtractionResultsByIdData, type GetExtractionResultsByIdError, type GetExtractionResultsByIdResponse, type GetExtractionResultsData, type GetExtractionResultsError, type GetExtractionResultsResponse, type GetInvitationsConsumeByTokenData, type GetInvitationsConsumeByTokenError, type GetInvitationsConsumeByTokenResponse, type GetInvitationsData, type GetInvitationsError, type GetInvitationsResponse, type GetLedgerByIdData, type GetLedgerByIdError, type GetLedgerByIdResponse, type GetLedgerData, type GetLedgerError, type GetLedgerResponse, type GetLlmAnalyticsByIdData, type GetLlmAnalyticsByIdError, type GetLlmAnalyticsByIdResponse, type GetLlmAnalyticsCostsData, type GetLlmAnalyticsCostsError, type GetLlmAnalyticsCostsResponse, type GetLlmAnalyticsData, type GetLlmAnalyticsError, type GetLlmAnalyticsPlatformData, type GetLlmAnalyticsPlatformError, type GetLlmAnalyticsPlatformResponse, type GetLlmAnalyticsResponse, type GetLlmAnalyticsSummaryData, type GetLlmAnalyticsSummaryError, type GetLlmAnalyticsSummaryResponse, type GetLlmAnalyticsUsageData, type GetLlmAnalyticsUsageError, type GetLlmAnalyticsUsageResponse, type GetLlmAnalyticsWorkspaceData, type GetLlmAnalyticsWorkspaceError, type GetLlmAnalyticsWorkspaceResponse, type GetMessagesByIdData, type GetMessagesByIdError, type GetMessagesByIdResponse, type GetMessagesData, type GetMessagesError, type GetMessagesResponse, type GetMessagesSearchData, type GetMessagesSearchError, type GetMessagesSearchResponse, type GetNotificationLogsByIdData, type GetNotificationLogsByIdError, type GetNotificationLogsByIdResponse, type GetNotificationLogsData, type GetNotificationLogsError, type GetNotificationLogsResponse, type GetNotificationPreferencesByIdData, type GetNotificationPreferencesByIdError, type GetNotificationPreferencesByIdResponse, type GetNotificationPreferencesData, type GetNotificationPreferencesError, type GetNotificationPreferencesResponse, type GetObjectsByIdData, type GetObjectsByIdError, type GetObjectsByIdResponse, type GetObjectsData, type GetObjectsError, type GetObjectsResponse, type GetPaymentMethodsByIdData, type GetPaymentMethodsByIdError, type GetPaymentMethodsByIdResponse, type GetPaymentMethodsData, type GetPaymentMethodsError, type GetPaymentMethodsResponse, type GetPlansByIdData, type GetPlansByIdError, type GetPlansByIdResponse, type GetPlansData, type GetPlansError, type GetPlansResponse, type GetPlansSlugBySlugData, type GetPlansSlugBySlugError, type GetPlansSlugBySlugResponse, type GetPricingRulesByIdData, type GetPricingRulesByIdError, type GetPricingRulesByIdResponse, type GetPricingRulesData, type GetPricingRulesError, type GetPricingRulesResolveData, type GetPricingRulesResolveError, type GetPricingRulesResolveResponse, type GetPricingRulesResponse, type GetPricingStrategiesByIdData, type GetPricingStrategiesByIdError, type GetPricingStrategiesByIdResponse, type GetPricingStrategiesData, type GetPricingStrategiesError, type GetPricingStrategiesResponse, type GetSearchData, type GetSearchError, type GetSearchHealthData, type GetSearchHealthError, type GetSearchHealthResponse, type GetSearchIndexesData, type GetSearchIndexesError, type GetSearchIndexesResponse, type GetSearchResponse, type GetSearchSavedData, type GetSearchSavedError, type GetSearchSavedResponse, type GetSearchSemanticData, type GetSearchSemanticError, type GetSearchSemanticResponse, type GetSearchStatsData, type GetSearchStatsError, type GetSearchStatsResponse, type GetSearchStatusData, type GetSearchStatusError, type GetSearchStatusResponse, type GetStorageStatsData, type GetStorageStatsError, type GetStorageStatsResponse, type GetSubscriptionsByIdData, type GetSubscriptionsByIdError, type GetSubscriptionsByIdResponse, type GetSubscriptionsData, type GetSubscriptionsError, type GetSubscriptionsResponse, type GetTenantMembershipsData, type GetTenantMembershipsError, type GetTenantMembershipsResponse, type GetTenantsByIdData, type GetTenantsByIdError, type GetTenantsByIdResponse, type GetTenantsData, type GetTenantsError, type GetTenantsResponse, type GetThreadsByIdData, type GetThreadsByIdError, type GetThreadsByIdResponse, type GetThreadsData, type GetThreadsError, type GetThreadsResponse, type GetThreadsSearchData, type GetThreadsSearchError, type GetThreadsSearchResponse, type GetTrainingExamplesByIdData, type GetTrainingExamplesByIdError, type GetTrainingExamplesByIdResponse, type GetTrainingExamplesData, type GetTrainingExamplesError, type GetTrainingExamplesResponse, type GetTransactionsByIdData, type GetTransactionsByIdError, type GetTransactionsByIdResponse, type GetTransactionsData, type GetTransactionsError, type GetTransactionsResponse, type GetUserProfilesByIdData, type GetUserProfilesByIdError, type GetUserProfilesByIdResponse, type GetUserProfilesData, type GetUserProfilesError, type GetUserProfilesMeData, type GetUserProfilesMeError, type GetUserProfilesMeResponse, type GetUserProfilesResponse, type GetUsersByIdData, type GetUsersByIdError, type GetUsersByIdResponse, type GetUsersData, type GetUsersError, type GetUsersMeData, type GetUsersMeError, type GetUsersMeResponse, type GetUsersResponse, type GetWalletData, type GetWalletError, type GetWalletResponse, type GetWebhookConfigsByIdData, type GetWebhookConfigsByIdError, type GetWebhookConfigsByIdResponse, type GetWebhookConfigsData, type GetWebhookConfigsError, type GetWebhookConfigsResponse, type GetWebhookDeliveriesByIdData, type GetWebhookDeliveriesByIdError, type GetWebhookDeliveriesByIdResponse, type GetWebhookDeliveriesData, type GetWebhookDeliveriesError, type GetWebhookDeliveriesResponse, type GetWorkspaceMembershipsData, type GetWorkspaceMembershipsError, type GetWorkspaceMembershipsResponse, type GetWorkspacesByIdData, type GetWorkspacesByIdError, type GetWorkspacesByIdResponse, type GetWorkspacesData, type GetWorkspacesError, type GetWorkspacesMineData, type GetWorkspacesMineError, type GetWorkspacesMineResponse, type GetWorkspacesResponse, GptClient, GptCoreError, type InvitationCreateRequest, InvitationCreateSchema, type LoginRequest, LoginRequestSchema, type MessageSendRequest, MessageSendSchema, NetworkError, NotFoundError, type PaginatedResponse, type PaginationLinks, type PaginationOptions, type PatchAccountsByIdCreditData, type PatchAccountsByIdCreditError, type PatchAccountsByIdCreditResponse, type PatchAccountsByIdDebitData, type PatchAccountsByIdDebitError, type PatchAccountsByIdDebitResponse, type PatchAgentsByIdData, type PatchAgentsByIdError, type PatchAgentsByIdResponse, type PatchApiKeysByIdAllocateData, type PatchApiKeysByIdAllocateError, type PatchApiKeysByIdAllocateResponse, type PatchApiKeysByIdData, type PatchApiKeysByIdError, type PatchApiKeysByIdResponse, type PatchApiKeysByIdRevokeData, type PatchApiKeysByIdRevokeError, type PatchApiKeysByIdRevokeResponse, type PatchApiKeysByIdRotateData, type PatchApiKeysByIdRotateError, type PatchApiKeysByIdRotateResponse, type PatchApplicationsByIdData, type PatchApplicationsByIdError, type PatchApplicationsByIdResponse, type PatchBucketsByIdData, type PatchBucketsByIdError, type PatchBucketsByIdResponse, type PatchConfigsByKeyData, type PatchConfigsByKeyError, type PatchConfigsByKeyResponse, type PatchCustomersByIdData, type PatchCustomersByIdError, type PatchCustomersByIdResponse, type PatchDocumentsByIdData, type PatchDocumentsByIdError, type PatchDocumentsByIdResponse, type PatchExtractionResultsByIdData, type PatchExtractionResultsByIdError, type PatchExtractionResultsByIdResponse, type PatchInvitationsByIdAcceptData, type PatchInvitationsByIdAcceptError, type PatchInvitationsByIdAcceptResponse, type PatchInvitationsByIdResendData, type PatchInvitationsByIdResendError, type PatchInvitationsByIdResendResponse, type PatchInvitationsByIdRevokeData, type PatchInvitationsByIdRevokeError, type PatchInvitationsByIdRevokeResponse, type PatchMessagesByIdData, type PatchMessagesByIdError, type PatchMessagesByIdResponse, type PatchNotificationPreferencesByIdData, type PatchNotificationPreferencesByIdError, type PatchNotificationPreferencesByIdResponse, type PatchPlansByIdData, type PatchPlansByIdError, type PatchPlansByIdResponse, type PatchPricingRulesByIdData, type PatchPricingRulesByIdError, type PatchPricingRulesByIdResponse, type PatchPricingStrategiesByIdData, type PatchPricingStrategiesByIdError, type PatchPricingStrategiesByIdResponse, type PatchSubscriptionsByIdData, type PatchSubscriptionsByIdError, type PatchSubscriptionsByIdResponse, type PatchTenantMembershipsByTenantIdByUserIdData, type PatchTenantMembershipsByTenantIdByUserIdError, type PatchTenantMembershipsByTenantIdByUserIdResponse, type PatchTenantsByIdData, type PatchTenantsByIdError, type PatchTenantsByIdResponse, type PatchThreadsByIdData, type PatchThreadsByIdError, type PatchThreadsByIdResponse, type PatchTrainingExamplesByIdData, type PatchTrainingExamplesByIdError, type PatchTrainingExamplesByIdResponse, type PatchUserProfilesByIdData, type PatchUserProfilesByIdError, type PatchUserProfilesByIdResponse, type PatchUsersAuthResetPasswordData, type PatchUsersAuthResetPasswordError, type PatchUsersAuthResetPasswordResponse, type PatchUsersByIdConfirmEmailData, type PatchUsersByIdConfirmEmailError, type PatchUsersByIdConfirmEmailResponse, type PatchUsersByIdData, type PatchUsersByIdError, type PatchUsersByIdResetPasswordData, type PatchUsersByIdResetPasswordError, type PatchUsersByIdResetPasswordResponse, type PatchUsersByIdResponse, type PatchWalletAddonsByAddonSlugCancelData, type PatchWalletAddonsByAddonSlugCancelError, type PatchWalletAddonsByAddonSlugCancelResponse, type PatchWalletAddonsData, type PatchWalletAddonsError, type PatchWalletAddonsResponse, type PatchWalletPlanData, type PatchWalletPlanError, type PatchWalletPlanResponse, type PatchWebhookConfigsByIdData, type PatchWebhookConfigsByIdError, type PatchWebhookConfigsByIdResponse, type PatchWorkspaceMembershipsByWorkspaceIdByUserIdData, type PatchWorkspaceMembershipsByWorkspaceIdByUserIdError, type PatchWorkspaceMembershipsByWorkspaceIdByUserIdResponse, type PatchWorkspacesByIdAllocateData, type PatchWorkspacesByIdAllocateError, type PatchWorkspacesByIdAllocateResponse, type PatchWorkspacesByIdData, type PatchWorkspacesByIdError, type PatchWorkspacesByIdResponse, type PostAgentsByIdCloneData, type PostAgentsByIdCloneError, type PostAgentsByIdCloneResponse, type PostAgentsByIdTestData, type PostAgentsByIdTestError, type PostAgentsByIdTestResponse, type PostAgentsByIdValidateData, type PostAgentsByIdValidateError, type PostAgentsByIdValidateResponse, type PostAgentsData, type PostAgentsError, type PostAgentsResponse, type PostAiChunksSearchData, type PostAiChunksSearchError, type PostAiChunksSearchResponse, type PostAiEmbedData, type PostAiEmbedError, type PostAiEmbedResponse, type PostAiGraphEdgesData, type PostAiGraphEdgesError, type PostAiGraphEdgesResponse, type PostAiGraphNodesData, type PostAiGraphNodesError, type PostAiGraphNodesResponse, type PostAiSearchAdvancedData, type PostAiSearchAdvancedError, type PostAiSearchAdvancedResponse, type PostAiSearchData, type PostAiSearchError, type PostAiSearchResponse, type PostApiKeysData, type PostApiKeysError, type PostApiKeysResponse, type PostApplicationsData, type PostApplicationsError, type PostApplicationsResponse, type PostBucketsData, type PostBucketsError, type PostBucketsResponse, type PostConfigsData, type PostConfigsError, type PostConfigsResponse, type PostCustomersData, type PostCustomersError, type PostCustomersResponse, type PostDocumentsBulkDeleteData, type PostDocumentsBulkDeleteError, type PostDocumentsBulkDeleteResponse, type PostDocumentsBulkReprocessData, type PostDocumentsBulkReprocessError, type PostDocumentsBulkReprocessResponse, type PostDocumentsByIdAnalyzeData, type PostDocumentsByIdAnalyzeError, type PostDocumentsByIdAnalyzeResponse, type PostDocumentsByIdReprocessData, type PostDocumentsByIdReprocessError, type PostDocumentsByIdReprocessResponse, type PostDocumentsData, type PostDocumentsError, type PostDocumentsExportError, type PostDocumentsExportResponse, type PostDocumentsImportData, type PostDocumentsImportError, type PostDocumentsImportResponse, type PostDocumentsPresignedUploadData, type PostDocumentsPresignedUploadError, type PostDocumentsPresignedUploadResponse, type PostDocumentsResponse, type PostInvitationsAcceptByTokenData, type PostInvitationsAcceptByTokenError, type PostInvitationsAcceptByTokenResponse, type PostInvitationsInviteData, type PostInvitationsInviteError, type PostInvitationsInviteResponse, type PostLlmAnalyticsData, type PostLlmAnalyticsError, type PostLlmAnalyticsResponse, type PostMessagesData, type PostMessagesError, type PostMessagesResponse, type PostNotificationPreferencesData, type PostNotificationPreferencesError, type PostNotificationPreferencesResponse, type PostObjectsBulkDestroyData, type PostObjectsBulkDestroyError, type PostObjectsBulkDestroyResponse, type PostObjectsRegisterData, type PostObjectsRegisterError, type PostObjectsRegisterResponse, type PostPaymentMethodsData, type PostPaymentMethodsError, type PostPaymentMethodsResponse, type PostPaymentsData, type PostPaymentsError, type PostPaymentsResponse, type PostPlansData, type PostPlansError, type PostPlansResponse, type PostPricingRulesData, type PostPricingRulesError, type PostPricingRulesResponse, type PostPricingStrategiesData, type PostPricingStrategiesError, type PostPricingStrategiesResponse, type PostSearchReindexData, type PostSearchReindexError, type PostSearchReindexResponse, type PostSearchSavedData, type PostSearchSavedError, type PostSearchSavedResponse, type PostStorageSignDownloadData, type PostStorageSignDownloadError, type PostStorageSignDownloadResponse, type PostStorageSignUploadData, type PostStorageSignUploadError, type PostStorageSignUploadResponse, type PostSubscriptionsData, type PostSubscriptionsError, type PostSubscriptionsResponse, type PostTenantMembershipsData, type PostTenantMembershipsError, type PostTenantMembershipsResponse, type PostTenantsByIdBuyStorageData, type PostTenantsByIdBuyStorageError, type PostTenantsByIdBuyStorageResponse, type PostTenantsByIdRemoveStorageData, type PostTenantsByIdRemoveStorageError, type PostTenantsByIdRemoveStorageResponse, type PostTenantsData, type PostTenantsError, type PostTenantsResponse, type PostThreadsActiveData, type PostThreadsActiveError, type PostThreadsActiveResponse, type PostThreadsByIdMessagesData, type PostThreadsByIdMessagesError, type PostThreadsByIdMessagesResponse, type PostThreadsByIdSummarizeData, type PostThreadsByIdSummarizeError, type PostThreadsByIdSummarizeResponse, type PostThreadsData, type PostThreadsError, type PostThreadsResponse, type PostTokensData, type PostTokensError, type PostTokensResponse, type PostTrainingExamplesBulkData, type PostTrainingExamplesBulkDeleteData, type PostTrainingExamplesBulkDeleteError, type PostTrainingExamplesBulkDeleteResponse, type PostTrainingExamplesBulkError, type PostTrainingExamplesBulkResponse, type PostTrainingExamplesData, type PostTrainingExamplesError, type PostTrainingExamplesResponse, type PostUserProfilesData, type PostUserProfilesError, type PostUserProfilesResponse, type PostUsersAuthConfirmData, type PostUsersAuthConfirmError, type PostUsersAuthConfirmResponse, type PostUsersAuthLoginData, type PostUsersAuthLoginError, type PostUsersAuthLoginResponse, type PostUsersAuthMagicLinkLoginData, type PostUsersAuthMagicLinkLoginError, type PostUsersAuthMagicLinkLoginResponse, type PostUsersAuthMagicLinkRequestData, type PostUsersAuthMagicLinkRequestError, type PostUsersAuthMagicLinkRequestResponse, type PostUsersAuthRegisterData, type PostUsersAuthRegisterError, type PostUsersAuthRegisterResponse, type PostUsersAuthRegisterWithOidcData, type PostUsersAuthRegisterWithOidcError, type PostUsersAuthRegisterWithOidcResponse, type PostUsersRegisterIsvData, type PostUsersRegisterIsvError, type PostUsersRegisterIsvResponse, type PostWebhookConfigsByIdTestData, type PostWebhookConfigsByIdTestError, type PostWebhookConfigsByIdTestResponse, type PostWebhookConfigsData, type PostWebhookConfigsError, type PostWebhookConfigsResponse, type PostWebhookDeliveriesByIdRetryData, type PostWebhookDeliveriesByIdRetryError, type PostWebhookDeliveriesByIdRetryResponse, type PostWorkspaceMembershipsData, type PostWorkspaceMembershipsError, type PostWorkspaceMembershipsResponse, type PostWorkspacesData, type PostWorkspacesError, type PostWorkspacesResponse, type PresignedDownloadRequest, PresignedDownloadSchema, type PresignedUploadRequest, PresignedUploadSchema, RateLimitError, type RegisterRequest, RegisterRequestSchema, type RetryConfig, type SearchRequest, SearchRequestSchema, ServerError, type StreamMessageChunk, type StreamOptions, type ThreadCreateRequest, ThreadCreateSchema, TimeoutError, ValidationError, type WorkspaceCreateRequest, WorkspaceCreateSchema, type account, type account_filter, type account_filter_id, type agent, type agent_filter, type agent_filter_id, type ai_config, type ai_config_filter, type api_key, type api_key_filter, type api_key_filter_id, type api_key_filter_status, type application, type application_filter, type application_filter_id, type audit_log, type audit_log_filter, type audit_log_filter_action, type audit_log_filter_actor_id, type audit_log_filter_changes, type audit_log_filter_id, type audit_log_filter_resource_id, type audit_log_filter_resource_type, type audit_log_filter_tenant_id, type audit_log_filter_workspace_id, type bucket, type bucket_filter, type bucket_filter_id, type bucket_filter_name, type bucket_filter_region, type bucket_filter_storage_used, type bucket_filter_type, calculateBackoff, collectStreamedMessage, type config, type config_filter, type config_filter_description, type config_filter_key, type config_filter_value, type credit_package, type credit_package_filter, type credit_package_filter_created_at, type credit_package_filter_credits, type credit_package_filter_id, type credit_package_filter_name, type credit_package_filter_price, type credit_package_filter_slug, type credit_package_filter_updated_at, type customer, type customer_filter, type customer_filter_id, type document, type document_chunk, type document_chunk_filter, type document_chunk_filter_chunk_index, type document_chunk_filter_content, type document_chunk_filter_document_id, type document_chunk_filter_embedding, type document_chunk_filter_id, type document_filter, type document_filter_application_id, type document_filter_content, type document_filter_filename, type document_filter_id, type document_filter_metadata, type document_filter_mime_type, type document_filter_original_filename, type document_filter_size_bytes, type document_filter_status, type document_filter_storage_options, type document_filter_storage_path, type document_filter_summary, type document_filter_summary_embedding, type document_filter_tenant_id, type document_filter_uploader_id, type document_filter_workspace_id, type document_stats, type document_stats_filter, type document_stats_filter_completed, type document_stats_filter_failed, type document_stats_filter_id, type document_stats_filter_pending, type document_stats_filter_processing, type document_stats_filter_total, type embedding, type embedding_filter, type embedding_filter_embedding, type embedding_filter_id, type embedding_filter_model, type embedding_filter_text, type embedding_filter_usage, eq, eq2, eq3, eq4, eq5, eq6, eq7, eq8, type error, type errors, type extraction_result, type extraction_result_data_input_update_type, type extraction_result_filter, type extraction_result_filter_confidence_score, type extraction_result_filter_document_id, type extraction_result_filter_id, type extraction_result_filter_model_used, type extraction_result_filter_processing_time_ms, format, type graph_edge, type graph_edge_filter, type graph_edge_filter_id, type graph_edge_filter_properties, type graph_edge_filter_relationship, type graph_edge_filter_source_id, type graph_edge_filter_target_id, type graph_node, type graph_node_filter, type graph_node_filter_id, type graph_node_filter_label, type graph_node_filter_properties, type graph_node_filter_tenant_id, greater_than, greater_than2, greater_than3, greater_than4, greater_than5, greater_than6, greater_than7, greater_than8, greater_than_or_equal, greater_than_or_equal2, greater_than_or_equal3, greater_than_or_equal4, greater_than_or_equal5, greater_than_or_equal6, greater_than_or_equal7, greater_than_or_equal8, handleApiError, type invitation, type invitation_filter, type invitation_filter_id, isRetryableError, type ledger, type ledger_filter, type ledger_filter_id, less_than, less_than2, less_than3, less_than4, less_than5, less_than6, less_than7, less_than8, less_than_or_equal, less_than_or_equal2, less_than_or_equal3, less_than_or_equal4, less_than_or_equal5, less_than_or_equal6, less_than_or_equal7, less_than_or_equal8, type link, type links, type llm_analytics, type llm_analytics_filter, type llm_analytics_filter_id, type message, type message_filter, type message_filter_id, not_eq, not_eq2, not_eq3, not_eq4, not_eq5, not_eq6, not_eq7, not_eq8, type notification_log, type notification_log_filter, type notification_log_filter_id, type notification_preference, type notification_preference_filter, type notification_preference_filter_id, type object_filter, type object_filter_content_type, type object_filter_id, type object_filter_key, type object_filter_size_bytes, type operation_success, type operation_success_filter, type operation_success_filter_id, type operation_success_filter_message, type operation_success_filter_success, paginateAll, paginateToArray, type payment, type payment_filter, type payment_filter_amount, type payment_filter_created_at, type payment_filter_currency, type payment_filter_error_message, type payment_filter_id, type payment_filter_provider_reference, type payment_filter_status, type payment_method, type payment_method_filter, type payment_method_filter_id, type plan, type plan_filter, type plan_filter_created_at, type plan_filter_id, type plan_filter_monthly_credits, type plan_filter_monthly_price, type plan_filter_name, type plan_filter_slug, type plan_filter_storage_days, type plan_filter_type, type plan_filter_updated_at, type presigned_url, type presigned_url_filter, type presigned_url_filter_expires_in, type presigned_url_filter_headers, type presigned_url_filter_id, type presigned_url_filter_method, type presigned_url_filter_storage_path, type presigned_url_filter_upload_url, type presigned_url_filter_url, type pricing_rule, type pricing_rule_filter, type pricing_rule_filter_id, type pricing_strategy, type pricing_strategy_filter, type pricing_strategy_filter_id, retryWithBackoff, role, type saved_search, type saved_search_filter, type saved_search_filter_filters, type saved_search_filter_id, type saved_search_filter_is_shared, type saved_search_filter_name, type saved_search_filter_query, type saved_search_filter_search_type, type search, type search_filter, type search_filter_id, type semantic_cache_entry, type semantic_cache_entry_filter, type semantic_cache_entry_filter_id, sleep, status, status2, type storage_object, type storage_stats, type storage_stats_filter, type storage_stats_filter_id, type storage_stats_filter_total_buckets, type storage_stats_filter_total_objects, type storage_stats_filter_total_storage_bytes, streamMessage, streamSSE, type subscription, type subscription_filter, type subscription_filter_id, type tenant, type tenant_filter, type tenant_filter_id, type tenant_filter_storage_blocks_purchased, type tenant_filter_storage_quota_bytes, type tenant_membership, type tenant_membership_filter, type tenant_membership_filter_role, type tenant_membership_filter_tenant_id, type tenant_membership_filter_user_id, type thread, type thread_filter, type thread_filter_context_summary, type thread_filter_id, type thread_filter_title, type token, type token_filter, type token_filter_brand, type token_filter_exp_month, type token_filter_exp_year, type token_filter_id, type token_filter_last4, type token_filter_token, type training_example, type training_example_filter, type training_example_filter_embedding, type training_example_filter_id, type training_example_filter_input_text, type training_example_filter_output_json, type transaction, type transaction_filter, type transaction_filter_amount, type transaction_filter_created_at, type transaction_filter_currency, type transaction_filter_description, type transaction_filter_error_message, type transaction_filter_id, type transaction_filter_provider_reference, type transaction_filter_service_id, type transaction_filter_status, type transaction_filter_type, type transaction_filter_updated_at, type, type user, type user_filter, type user_filter_current_workspace_id, type user_filter_email, type user_filter_id, type user_filter_is_app_admin, type user_filter_is_platform_admin, type user_profile, type user_profile_filter, type user_profile_filter_avatar_url, type user_profile_filter_bio, type user_profile_filter_first_name, type user_profile_filter_id, type user_profile_filter_last_name, type user_profile_filter_preferences, type user_profile_filter_social_links, type user_profile_filter_user_id, type wallet, type wallet_filter, type wallet_filter_application_id, type wallet_filter_credits, type wallet_filter_id, type wallet_filter_plan, type webhook_config, type webhook_config_filter, type webhook_config_filter_id, type webhook_delivery, type webhook_delivery_filter, type webhook_delivery_filter_id, withRetry, type workspace, type workspace_filter, type workspace_filter_archived_at, type workspace_filter_description, type workspace_filter_expires_at, type workspace_filter_id, type workspace_filter_is_default, type workspace_filter_low_balance_threshold, type workspace_filter_renewal_params, type workspace_membership, type workspace_membership_filter };