@dvina/sdk 3.3.124

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.
Files changed (87) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +449 -0
  3. package/dist/_generated_documents-DF34ZUJ3.js +4 -0
  4. package/dist/_generated_documents-DF34ZUJ3.js.map +1 -0
  5. package/dist/_generated_documents-W4RHWJ4B.cjs +2041 -0
  6. package/dist/_generated_documents-W4RHWJ4B.cjs.map +1 -0
  7. package/dist/adapters/angular/index.cjs +163 -0
  8. package/dist/adapters/angular/index.cjs.map +1 -0
  9. package/dist/adapters/angular/index.d.cts +254 -0
  10. package/dist/adapters/angular/index.d.ts +254 -0
  11. package/dist/adapters/angular/index.js +159 -0
  12. package/dist/adapters/angular/index.js.map +1 -0
  13. package/dist/adapters/react/index.cjs +51 -0
  14. package/dist/adapters/react/index.cjs.map +1 -0
  15. package/dist/adapters/react/index.d.cts +62 -0
  16. package/dist/adapters/react/index.d.ts +62 -0
  17. package/dist/adapters/react/index.js +49 -0
  18. package/dist/adapters/react/index.js.map +1 -0
  19. package/dist/billing/index.cjs +26 -0
  20. package/dist/billing/index.cjs.map +1 -0
  21. package/dist/billing/index.d.cts +338 -0
  22. package/dist/billing/index.d.ts +338 -0
  23. package/dist/billing/index.js +5 -0
  24. package/dist/billing/index.js.map +1 -0
  25. package/dist/chunk-4QKWHQT2.cjs +104 -0
  26. package/dist/chunk-4QKWHQT2.cjs.map +1 -0
  27. package/dist/chunk-5WRI5ZAA.js +29 -0
  28. package/dist/chunk-5WRI5ZAA.js.map +1 -0
  29. package/dist/chunk-7JUBGIQ2.js +1008 -0
  30. package/dist/chunk-7JUBGIQ2.js.map +1 -0
  31. package/dist/chunk-7XBJ77RJ.js +103 -0
  32. package/dist/chunk-7XBJ77RJ.js.map +1 -0
  33. package/dist/chunk-DHUFVGJR.cjs +20389 -0
  34. package/dist/chunk-DHUFVGJR.cjs.map +1 -0
  35. package/dist/chunk-DZUJEN5N.cjs +32 -0
  36. package/dist/chunk-DZUJEN5N.cjs.map +1 -0
  37. package/dist/chunk-GDK2HJTF.cjs +1346 -0
  38. package/dist/chunk-GDK2HJTF.cjs.map +1 -0
  39. package/dist/chunk-KG3GNTYI.js +1339 -0
  40. package/dist/chunk-KG3GNTYI.js.map +1 -0
  41. package/dist/chunk-KV5SP7RP.cjs +114 -0
  42. package/dist/chunk-KV5SP7RP.cjs.map +1 -0
  43. package/dist/chunk-NPIKZKLU.cjs +27 -0
  44. package/dist/chunk-NPIKZKLU.cjs.map +1 -0
  45. package/dist/chunk-OAAZZUYL.cjs +1517 -0
  46. package/dist/chunk-OAAZZUYL.cjs.map +1 -0
  47. package/dist/chunk-P4BYTXZ7.js +98 -0
  48. package/dist/chunk-P4BYTXZ7.js.map +1 -0
  49. package/dist/chunk-PDM2KR7T.js +392 -0
  50. package/dist/chunk-PDM2KR7T.js.map +1 -0
  51. package/dist/chunk-QOZI2HY5.js +24 -0
  52. package/dist/chunk-QOZI2HY5.js.map +1 -0
  53. package/dist/chunk-RFBLNKW6.js +20035 -0
  54. package/dist/chunk-RFBLNKW6.js.map +1 -0
  55. package/dist/chunk-UELAE75E.cjs +408 -0
  56. package/dist/chunk-UELAE75E.cjs.map +1 -0
  57. package/dist/client-9Rwj21T9.d.cts +77 -0
  58. package/dist/client-Bskq7sc_.d.ts +77 -0
  59. package/dist/client-CLhQragb.d.cts +446 -0
  60. package/dist/client-CLhQragb.d.ts +446 -0
  61. package/dist/error-CsVoUTY8.d.cts +95 -0
  62. package/dist/error-CsVoUTY8.d.ts +95 -0
  63. package/dist/index-BrGSfyXq.d.cts +79 -0
  64. package/dist/index-zPcVLagO.d.ts +79 -0
  65. package/dist/index.cjs +1675 -0
  66. package/dist/index.cjs.map +1 -0
  67. package/dist/index.d.cts +9943 -0
  68. package/dist/index.d.ts +9943 -0
  69. package/dist/index.js +10 -0
  70. package/dist/index.js.map +1 -0
  71. package/dist/inference/index.cjs +70 -0
  72. package/dist/inference/index.cjs.map +1 -0
  73. package/dist/inference/index.d.cts +80 -0
  74. package/dist/inference/index.d.ts +80 -0
  75. package/dist/inference/index.js +5 -0
  76. package/dist/inference/index.js.map +1 -0
  77. package/dist/pagination/index.cjs +34 -0
  78. package/dist/pagination/index.cjs.map +1 -0
  79. package/dist/pagination/index.d.cts +6 -0
  80. package/dist/pagination/index.d.ts +6 -0
  81. package/dist/pagination/index.js +5 -0
  82. package/dist/pagination/index.js.map +1 -0
  83. package/dist/sync-engine-DVKQO-1-.d.cts +423 -0
  84. package/dist/sync-engine-cLwTqdjv.d.ts +423 -0
  85. package/dist/types-2RotD0Ab.d.cts +102 -0
  86. package/dist/types-2RotD0Ab.d.ts +102 -0
  87. package/package.json +143 -0
package/dist/index.js ADDED
@@ -0,0 +1,10 @@
1
+ export { Action, AddInsightToReportMutation, AddTeamMemberMutation, Agent, AgentConnection, AgentQuery, AgentSubBuilder, Agent_ChatsQuery, Agent_DocumentsQuery, AgentsQuery, AudioEventOutput, CancelOauthFlowMutation, CancelWorkspaceDeletionMutation, Chat, ChatConnection, ChatMessage, ChatMessageConnection, ChatMessageQuery, ChatMessageSubBuilder, ChatMessage_AttachmentsQuery, ChatMessage_ChatQuery, ChatMessage_Chat_AgentQuery, ChatMessage_Chat_InsightQuery, ChatMessage_Chat_ResourceQuery, ChatMessage_ContentsQuery, ChatMessage_FeedbackQuery, ChatMessagesQuery, ChatQuery, ChatSubBuilder, ChatTitleEventOutput, Chat_AgentQuery, Chat_InsightQuery, Chat_Insight_ReportMembersQuery, Chat_Insight_ResourceQuery, Chat_MessagesQuery, Chat_ResourceQuery, Chat_Resource_DataSourceQuery, Chat_Resource_FolderQuery, Chat_Resource_InsightQuery, Chat_Resource_PublicQuery, Chat_Resource_ReportQuery, Chat_Resource_TableQuery, ChatsQuery, CloseToPublicMutation, ContentBlock, ContentMask, ContinueInterpretationMutation, CreateAgentMutation, CreateChatMutation, CreateDataSourceMutation, CreateFeedbackMutation, CreateFolderMutation, CreateInsightMutation, CreateIntegratedDataSourceMutation, CreateIntegrationMutation, CreateIntegrationOutput, CreateRelationMutation, CreateReportMutation, CreateTableMutation, CreateTeamMutation, CubeModel, DB_ENTITY_SCHEMA, DataSource, DataSourceConnection, DataSourceQuery, DataSourceSubBuilder, DataSourceTypeDetails, DataSourceTypeDetailsConnection, DataSourceTypeQuery, DataSourceType_DataSourcesQuery, DataSourceTypesQuery, DataSource_ContentsQuery, DataSource_IntegratedSourceQuery, DataSource_IntegratedSource_IntegrationQuery, DataSource_ResourceQuery, DataSource_Resource_ChatQuery, DataSource_Resource_FolderQuery, DataSource_Resource_InsightQuery, DataSource_Resource_PublicQuery, DataSource_Resource_ReportQuery, DataSource_Resource_TableQuery, DataSource_TablesQuery, DataSource_TypeDetailsQuery, DataSourcesQuery, DeepAnalysisUsage, DeepAnalyzeMutation, DeferredDvinaQueryRef, DeleteAgentMutation, DeleteChatMutation, DeleteDataSourceMutation, DeleteFolderMutation, DeleteInsightMutation, DeleteInsightsMutation, DeleteIntegrationMutation, DeleteRelationMutation, DeleteReportMutation, DeleteTableMutation, DeleteTeamMutation, DevAccessTokenOutput, DexieLiveQueryRef, DocumentContent, DriveItem, DropConnectionMutation, DvinaDatabase, DvinaModel, DvinaSdk, ExportQuery, ExportWithInsightIdQuery, Feedback, File, FileMetaQuery, FileModel, FileQuery, FinalContentEventOutput, FindFitTierQuery, Folder, FolderConnection, FolderQuery, FolderSubBuilder, Folder_ResourceQuery, Folder_Resource_ChatQuery, Folder_Resource_DataSourceQuery, Folder_Resource_InsightQuery, Folder_Resource_PublicQuery, Folder_Resource_ReportQuery, Folder_Resource_TableQuery, FoldersQuery, GenerateUploadUriMutation, GetAccessTokenQuery, GetAuthUrlMutation, GetCapabilityQuery, GetDevAccessTokenQuery, GetLimitQuery, GetRemainingQuery, GetSchemaWithIdQuery, GetSchemaWithParamsQuery, GetTokenUsageByModelQuery, GetTokenUsageHistoryQuery, GetTokenUsageStatusQuery, GetTokenUsageStatus_WindowsQuery, GetTokenUsageStatus_Windows_DayQuery, GetTokenUsageStatus_Windows_FiveHourQuery, GetTokenUsageStatus_Windows_WeekQuery, GetUsageQuery, GetVectorStoreStatesQuery, GetZombieDocumentsQuery, IndexContentObject, Insight, InsightConnection, InsightQuery, InsightSubBuilder, Insight_ChatQuery, Insight_Chat_AgentQuery, Insight_Chat_ResourceQuery, Insight_ReportMembersQuery, Insight_ReportsQuery, Insight_ResourceQuery, Insight_Resource_ChatQuery, Insight_Resource_DataSourceQuery, Insight_Resource_FolderQuery, Insight_Resource_PublicQuery, Insight_Resource_ReportQuery, Insight_Resource_TableQuery, InsightsQuery, IntegratedSource, IntegratedSourceResponse, Integration, Interpretation, InterpretationConnection, InterpretationsQuery, Invocation, ListItemsQuery, ListItems_ItemsQuery, MUTATION_CACHE_RULES, MappedDvinaQueryRef, McpAuthUpdateModel, McpAuthUpdatesSubscription, McpClientInformation, McpCodeVerifier, McpServer, McpTokens, McpTool, MessageEndEventOutput, MessageStartEventOutput, MinTierBySourceQuery, ModelTokenUsage, NotUsedDataSourceTypesQuery, Notification, NotificationConnection, NotificationQuery, NotificationUpdatesSubscription, NotificationsByReferenceQuery, NotificationsQuery, OAuthCredential, OAuthResult, OauthResultSubscription, OpenToPublicMutation, OpenToWorkspaceMutation, PRIMARY_KEY_CONFIG, PaginatedDriveItems, PrivacyStats, PrivacyStatsQuery, QueryQuery, QueryWithInsightIdQuery, QueryWithMessageIdQuery, ReasoningEventOutput, RefreshSchemaMutation, ReinterpretSourceMutation, ReinterpretSourcesOfuserMutation, Relation, RelationQuery, RelationSubBuilder, Relation_FromTableQuery, Relation_FromTable_DataSourceQuery, Relation_FromTable_ResourceQuery, Relation_ToTableQuery, Relation_ToTable_DataSourceQuery, Relation_ToTable_ResourceQuery, RelocateInsightMutation, RemoveInsightFromReportMutation, RemoveTeamMemberMutation, RepopulareVectorStoreMutation, Report, ReportConnection, ReportMember, ReportQuery, ReportSubBuilder, Report_InsightsQuery, Report_LayoutQuery, Report_ResourceQuery, Report_Resource_ChatQuery, Report_Resource_DataSourceQuery, Report_Resource_FolderQuery, Report_Resource_InsightQuery, Report_Resource_PublicQuery, Report_Resource_TableQuery, ReportsQuery, ResetWorkspaceMutation, Resource, ResourceConnection, ResourcePublic, ResourceQuery, ResourceSharing, ResourceSharingConnection, ResourceSubBuilder, Resource_AgentsQuery, Resource_AttachedChatMessagesQuery, Resource_ChatQuery, Resource_Chat_AgentQuery, Resource_Chat_InsightQuery, Resource_DataSourceQuery, Resource_DataSource_ContentsQuery, Resource_DataSource_IntegratedSourceQuery, Resource_DataSource_TypeDetailsQuery, Resource_FolderQuery, Resource_InsightQuery, Resource_Insight_ChatQuery, Resource_Insight_ReportMembersQuery, Resource_PublicQuery, Resource_ReportQuery, Resource_Report_LayoutQuery, Resource_SharedWithQuery, Resource_TableQuery, Resource_Table_DataSourceQuery, Resource_Table_FromRelationsQuery, Resource_Table_ToRelationsQuery, ResourcesQuery, ScheduleWorkspaceDeletionMutation, SearchQuery, SendMessageStreamSubscription, SetPrimaryKeyMutation, ShareResourceMutation, SharingQuery, Sharing_ResourceQuery, Sharing_Resource_ChatQuery, Sharing_Resource_DataSourceQuery, Sharing_Resource_FolderQuery, Sharing_Resource_InsightQuery, Sharing_Resource_PublicQuery, Sharing_Resource_ReportQuery, Sharing_Resource_TableQuery, Sharing_TeamQuery, SharingsQuery, SyncCubeFilesFromDbMutation, SyncEngine, SyncEvent, TABLE_TO_TYPENAME, TYPENAME_TO_TABLE, Table, TableConnection, TableQuery, TableSubBuilder, Table_DataSourceQuery, Table_DataSource_ContentsQuery, Table_DataSource_IntegratedSourceQuery, Table_DataSource_ResourceQuery, Table_DataSource_TypeDetailsQuery, Table_FromRelationsQuery, Table_ResourceQuery, Table_Resource_ChatQuery, Table_Resource_DataSourceQuery, Table_Resource_FolderQuery, Table_Resource_InsightQuery, Table_Resource_PublicQuery, Table_Resource_ReportQuery, Table_ToRelationsQuery, TablesQuery, Team, TeamConnection, TeamQuery, TeamsQuery, TextBlockEventOutput, TextDeltaEventOutput, TokenUsage, TokenUsageUpdatesSubscription, ToolInputDeltaEventOutput, ToolResultEventOutput, ToolStartEventOutput, UnshareResourceMutation, UpdateAgentMutation, UpdateChatMutation, UpdateDataSourceMutation, UpdateFolderMutation, UpdateInsightInReportMutation, UpdateInsightMutation, UpdateInterpMutation, UpdateRelationMutation, UpdateReportMutation, UpdateResourceMutation, UpdateResourceSharingMutation, UpdateTableMutation, UpdateTeamMutation, UsageMetaOutput, UsageStatus, UsageWindowsQuery, UsageWindowsStatusType, UsageWindowsUpdatesSubscription, UsageWindows_DayQuery, UsageWindows_FiveHourQuery, UsageWindows_WeekQuery, WindowDetailType, WorkspaceDeleteSchedule, WorkspaceDeletionScheduleQuery, closeDatabase, createDvinaClient, createLazySyncEngine, createSseTransport, createWsTransport, deleteDatabase, getOrCreateDatabase, reconstructConnectionNodes, reconstructEntity, uploadFile } from './chunk-RFBLNKW6.js';
2
+ export { extractNodes, mergeConnections } from './chunk-QOZI2HY5.js';
3
+ export { AbstractConnection, Connection, PageInfo, Request, defaultConnection } from './chunk-P4BYTXZ7.js';
4
+ import './chunk-PDM2KR7T.js';
5
+ import './chunk-KG3GNTYI.js';
6
+ export { DvinaAuthenticationError, DvinaError, DvinaGraphQLError, DvinaNetworkError, DvinaNotFoundError, DvinaPlanRestrictionError, DvinaTokenLimitError, GRAPHQL_ERROR_CODES, createGraphQLError, extractErrorCode } from './chunk-7XBJ77RJ.js';
7
+ export { ActionType, ActiveWindowType, AgentOrderByRelevanceFieldEnum, AiResourceType, CapabilityType, ChatMessageFromEnum, ChatMessageOrderByRelevanceFieldEnum, ChatOrderByRelevanceFieldEnum, ContentBlockType, DataSourceCategoryEnum, DataSourceOrderByRelevanceFieldEnum, DataSourceType, DataSourceTypeDetailsIconType, DataSourceTypeDetailsOrderByRelevanceFieldEnum, EntitlementTier, FeedbackOrderByRelevanceFieldEnum, FeedbackType, FolderOrderByRelevanceFieldEnum, IndexType, InsightOrderByRelevanceFieldEnum, IntegrationType, InterpretationOrderByRelevanceFieldEnum, InterpretationType, LimitType, NotificationCategory, NotificationOrderByRelevanceFieldEnum, NotificationPriority, NotificationStatus, NullsOrder, Presentation, QueryMode, RelationType, ReportMemberSize, ReportOrderByRelevanceFieldEnum, ResourceOrderByRelevanceFieldEnum, ResourcePrivilege, ResourceSharingOrderByRelevanceFieldEnum, ResourceType, SendMessageModel, SortOrder, TableOrderByRelevanceFieldEnum, TableStatus, TeamOrderByRelevanceFieldEnum, TokenUsageLimit, UsageHistoryGranularity } from './chunk-7JUBGIQ2.js';
8
+ import './chunk-5WRI5ZAA.js';
9
+ //# sourceMappingURL=index.js.map
10
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"names":[],"mappings":"","file":"index.js"}
@@ -0,0 +1,70 @@
1
+ 'use strict';
2
+
3
+ var chunkUELAE75E_cjs = require('../chunk-UELAE75E.cjs');
4
+ require('../chunk-KV5SP7RP.cjs');
5
+ require('../chunk-DZUJEN5N.cjs');
6
+
7
+
8
+
9
+ Object.defineProperty(exports, "ChatCompletionStream", {
10
+ enumerable: true,
11
+ get: function () { return chunkUELAE75E_cjs.ChatCompletionStream; }
12
+ });
13
+ Object.defineProperty(exports, "DvinaContextLengthError", {
14
+ enumerable: true,
15
+ get: function () { return chunkUELAE75E_cjs.DvinaContextLengthError; }
16
+ });
17
+ Object.defineProperty(exports, "DvinaDeploymentError", {
18
+ enumerable: true,
19
+ get: function () { return chunkUELAE75E_cjs.DvinaDeploymentError; }
20
+ });
21
+ Object.defineProperty(exports, "DvinaInferenceAuthError", {
22
+ enumerable: true,
23
+ get: function () { return chunkUELAE75E_cjs.DvinaInferenceAuthError; }
24
+ });
25
+ Object.defineProperty(exports, "DvinaInferenceError", {
26
+ enumerable: true,
27
+ get: function () { return chunkUELAE75E_cjs.DvinaInferenceError; }
28
+ });
29
+ Object.defineProperty(exports, "DvinaProviderError", {
30
+ enumerable: true,
31
+ get: function () { return chunkUELAE75E_cjs.DvinaProviderError; }
32
+ });
33
+ Object.defineProperty(exports, "DvinaProviderUnavailableError", {
34
+ enumerable: true,
35
+ get: function () { return chunkUELAE75E_cjs.DvinaProviderUnavailableError; }
36
+ });
37
+ Object.defineProperty(exports, "DvinaQuotaError", {
38
+ enumerable: true,
39
+ get: function () { return chunkUELAE75E_cjs.DvinaQuotaError; }
40
+ });
41
+ Object.defineProperty(exports, "DvinaRateLimitError", {
42
+ enumerable: true,
43
+ get: function () { return chunkUELAE75E_cjs.DvinaRateLimitError; }
44
+ });
45
+ Object.defineProperty(exports, "DvinaStreamError", {
46
+ enumerable: true,
47
+ get: function () { return chunkUELAE75E_cjs.DvinaStreamError; }
48
+ });
49
+ Object.defineProperty(exports, "DvinaTimeoutError", {
50
+ enumerable: true,
51
+ get: function () { return chunkUELAE75E_cjs.DvinaTimeoutError; }
52
+ });
53
+ Object.defineProperty(exports, "DvinaUnsupportedModelError", {
54
+ enumerable: true,
55
+ get: function () { return chunkUELAE75E_cjs.DvinaUnsupportedModelError; }
56
+ });
57
+ Object.defineProperty(exports, "createInferenceClient", {
58
+ enumerable: true,
59
+ get: function () { return chunkUELAE75E_cjs.createInferenceClient; }
60
+ });
61
+ Object.defineProperty(exports, "createInferenceClientInternal", {
62
+ enumerable: true,
63
+ get: function () { return chunkUELAE75E_cjs.createInferenceClientInternal; }
64
+ });
65
+ Object.defineProperty(exports, "parseSSEStream", {
66
+ enumerable: true,
67
+ get: function () { return chunkUELAE75E_cjs.parseSSEStream; }
68
+ });
69
+ //# sourceMappingURL=index.cjs.map
70
+ //# sourceMappingURL=index.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"names":[],"mappings":"","file":"index.cjs"}
@@ -0,0 +1,80 @@
1
+ export { C as Chat, a as ChatCompletionChoice, b as ChatCompletionChunk, c as ChatCompletionRequest, d as ChatCompletionResponse, e as ChatCompletionStream, f as ChatCompletionStreamRequest, g as ChatCompletions, h as ChatMessage, i as ContentPart, H as HealthResponse, I as InferenceClient, j as InferenceClientOptions, k as InferenceErrorResponse, M as Model, l as ModelListResponse, m as Models, R as Responses, n as ResponsesRequest, o as ResponsesStreamRequest, S as StreamChunkChoice, p as StreamDelta, T as Tool, q as ToolCall, r as ToolChoice, U as Usage, s as createInferenceClient, t as createInferenceClientInternal, u as parseSSEStream } from '../client-CLhQragb.cjs';
2
+ import { D as DvinaError } from '../error-CsVoUTY8.cjs';
3
+
4
+ /**
5
+ * Base error class for inference API errors.
6
+ * Contains the OpenAI-compatible error shape returned by the server.
7
+ */
8
+ declare class DvinaInferenceError extends DvinaError {
9
+ /** HTTP status code from the server */
10
+ readonly status: number;
11
+ /** OpenAI-compatible error type (e.g. 'invalid_request_error') */
12
+ readonly type: string;
13
+ /** Machine-readable error code (e.g. 'model_not_found') */
14
+ readonly code: string;
15
+ constructor(message: string, status: number, type: string, code: string, cause?: Error);
16
+ }
17
+ /**
18
+ * Error thrown when the inference API returns 429 (rate limited).
19
+ */
20
+ declare class DvinaRateLimitError extends DvinaInferenceError {
21
+ /** Retry-After header value in seconds, if provided by the server */
22
+ readonly retryAfter?: number;
23
+ constructor(message: string, retryAfter?: number, cause?: Error);
24
+ }
25
+ /**
26
+ * Error thrown when the workspace token quota is exceeded (403 with code 'token_limit_reached').
27
+ */
28
+ declare class DvinaQuotaError extends DvinaInferenceError {
29
+ constructor(message?: string, cause?: Error);
30
+ }
31
+ /**
32
+ * Error thrown when inference API authentication fails (401/403).
33
+ */
34
+ declare class DvinaInferenceAuthError extends DvinaInferenceError {
35
+ constructor(message?: string, status?: number, cause?: Error);
36
+ }
37
+ /**
38
+ * Error thrown during an SSE stream when the connection drops or a mid-stream error occurs.
39
+ */
40
+ declare class DvinaStreamError extends DvinaInferenceError {
41
+ constructor(message: string, cause?: Error);
42
+ }
43
+ /**
44
+ * Error thrown when the prompt exceeds the model's context window (400, code 'context_length_exceeded').
45
+ */
46
+ declare class DvinaContextLengthError extends DvinaInferenceError {
47
+ constructor(message?: string, cause?: Error);
48
+ }
49
+ /**
50
+ * Error thrown when the inference request times out (400, code 'request_timeout').
51
+ */
52
+ declare class DvinaTimeoutError extends DvinaInferenceError {
53
+ constructor(message?: string, cause?: Error);
54
+ }
55
+ /**
56
+ * Error thrown when the upstream provider is unreachable (502, code 'provider_unavailable').
57
+ */
58
+ declare class DvinaProviderUnavailableError extends DvinaInferenceError {
59
+ constructor(message?: string, cause?: Error);
60
+ }
61
+ /**
62
+ * Error thrown when the upstream provider returns an error (502/400, code 'provider_error').
63
+ */
64
+ declare class DvinaProviderError extends DvinaInferenceError {
65
+ constructor(message?: string, status?: number, cause?: Error);
66
+ }
67
+ /**
68
+ * Error thrown when a requested deployment is not found (502, code 'deployment_not_found').
69
+ */
70
+ declare class DvinaDeploymentError extends DvinaInferenceError {
71
+ constructor(message?: string, cause?: Error);
72
+ }
73
+ /**
74
+ * Error thrown when a requested model is not supported (400, code 'unsupported_model').
75
+ */
76
+ declare class DvinaUnsupportedModelError extends DvinaInferenceError {
77
+ constructor(message?: string, cause?: Error);
78
+ }
79
+
80
+ export { DvinaContextLengthError, DvinaDeploymentError, DvinaInferenceAuthError, DvinaInferenceError, DvinaProviderError, DvinaProviderUnavailableError, DvinaQuotaError, DvinaRateLimitError, DvinaStreamError, DvinaTimeoutError, DvinaUnsupportedModelError };
@@ -0,0 +1,80 @@
1
+ export { C as Chat, a as ChatCompletionChoice, b as ChatCompletionChunk, c as ChatCompletionRequest, d as ChatCompletionResponse, e as ChatCompletionStream, f as ChatCompletionStreamRequest, g as ChatCompletions, h as ChatMessage, i as ContentPart, H as HealthResponse, I as InferenceClient, j as InferenceClientOptions, k as InferenceErrorResponse, M as Model, l as ModelListResponse, m as Models, R as Responses, n as ResponsesRequest, o as ResponsesStreamRequest, S as StreamChunkChoice, p as StreamDelta, T as Tool, q as ToolCall, r as ToolChoice, U as Usage, s as createInferenceClient, t as createInferenceClientInternal, u as parseSSEStream } from '../client-CLhQragb.js';
2
+ import { D as DvinaError } from '../error-CsVoUTY8.js';
3
+
4
+ /**
5
+ * Base error class for inference API errors.
6
+ * Contains the OpenAI-compatible error shape returned by the server.
7
+ */
8
+ declare class DvinaInferenceError extends DvinaError {
9
+ /** HTTP status code from the server */
10
+ readonly status: number;
11
+ /** OpenAI-compatible error type (e.g. 'invalid_request_error') */
12
+ readonly type: string;
13
+ /** Machine-readable error code (e.g. 'model_not_found') */
14
+ readonly code: string;
15
+ constructor(message: string, status: number, type: string, code: string, cause?: Error);
16
+ }
17
+ /**
18
+ * Error thrown when the inference API returns 429 (rate limited).
19
+ */
20
+ declare class DvinaRateLimitError extends DvinaInferenceError {
21
+ /** Retry-After header value in seconds, if provided by the server */
22
+ readonly retryAfter?: number;
23
+ constructor(message: string, retryAfter?: number, cause?: Error);
24
+ }
25
+ /**
26
+ * Error thrown when the workspace token quota is exceeded (403 with code 'token_limit_reached').
27
+ */
28
+ declare class DvinaQuotaError extends DvinaInferenceError {
29
+ constructor(message?: string, cause?: Error);
30
+ }
31
+ /**
32
+ * Error thrown when inference API authentication fails (401/403).
33
+ */
34
+ declare class DvinaInferenceAuthError extends DvinaInferenceError {
35
+ constructor(message?: string, status?: number, cause?: Error);
36
+ }
37
+ /**
38
+ * Error thrown during an SSE stream when the connection drops or a mid-stream error occurs.
39
+ */
40
+ declare class DvinaStreamError extends DvinaInferenceError {
41
+ constructor(message: string, cause?: Error);
42
+ }
43
+ /**
44
+ * Error thrown when the prompt exceeds the model's context window (400, code 'context_length_exceeded').
45
+ */
46
+ declare class DvinaContextLengthError extends DvinaInferenceError {
47
+ constructor(message?: string, cause?: Error);
48
+ }
49
+ /**
50
+ * Error thrown when the inference request times out (400, code 'request_timeout').
51
+ */
52
+ declare class DvinaTimeoutError extends DvinaInferenceError {
53
+ constructor(message?: string, cause?: Error);
54
+ }
55
+ /**
56
+ * Error thrown when the upstream provider is unreachable (502, code 'provider_unavailable').
57
+ */
58
+ declare class DvinaProviderUnavailableError extends DvinaInferenceError {
59
+ constructor(message?: string, cause?: Error);
60
+ }
61
+ /**
62
+ * Error thrown when the upstream provider returns an error (502/400, code 'provider_error').
63
+ */
64
+ declare class DvinaProviderError extends DvinaInferenceError {
65
+ constructor(message?: string, status?: number, cause?: Error);
66
+ }
67
+ /**
68
+ * Error thrown when a requested deployment is not found (502, code 'deployment_not_found').
69
+ */
70
+ declare class DvinaDeploymentError extends DvinaInferenceError {
71
+ constructor(message?: string, cause?: Error);
72
+ }
73
+ /**
74
+ * Error thrown when a requested model is not supported (400, code 'unsupported_model').
75
+ */
76
+ declare class DvinaUnsupportedModelError extends DvinaInferenceError {
77
+ constructor(message?: string, cause?: Error);
78
+ }
79
+
80
+ export { DvinaContextLengthError, DvinaDeploymentError, DvinaInferenceAuthError, DvinaInferenceError, DvinaProviderError, DvinaProviderUnavailableError, DvinaQuotaError, DvinaRateLimitError, DvinaStreamError, DvinaTimeoutError, DvinaUnsupportedModelError };
@@ -0,0 +1,5 @@
1
+ export { ChatCompletionStream, DvinaContextLengthError, DvinaDeploymentError, DvinaInferenceAuthError, DvinaInferenceError, DvinaProviderError, DvinaProviderUnavailableError, DvinaQuotaError, DvinaRateLimitError, DvinaStreamError, DvinaTimeoutError, DvinaUnsupportedModelError, createInferenceClient, createInferenceClientInternal, parseSSEStream } from '../chunk-PDM2KR7T.js';
2
+ import '../chunk-7XBJ77RJ.js';
3
+ import '../chunk-5WRI5ZAA.js';
4
+ //# sourceMappingURL=index.js.map
5
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"names":[],"mappings":"","file":"index.js"}
@@ -0,0 +1,34 @@
1
+ 'use strict';
2
+
3
+ var chunkNPIKZKLU_cjs = require('../chunk-NPIKZKLU.cjs');
4
+ var chunk4QKWHQT2_cjs = require('../chunk-4QKWHQT2.cjs');
5
+ require('../chunk-DZUJEN5N.cjs');
6
+
7
+
8
+
9
+ Object.defineProperty(exports, "extractNodes", {
10
+ enumerable: true,
11
+ get: function () { return chunkNPIKZKLU_cjs.extractNodes; }
12
+ });
13
+ Object.defineProperty(exports, "mergeConnections", {
14
+ enumerable: true,
15
+ get: function () { return chunkNPIKZKLU_cjs.mergeConnections; }
16
+ });
17
+ Object.defineProperty(exports, "AbstractConnection", {
18
+ enumerable: true,
19
+ get: function () { return chunk4QKWHQT2_cjs.AbstractConnection; }
20
+ });
21
+ Object.defineProperty(exports, "Connection", {
22
+ enumerable: true,
23
+ get: function () { return chunk4QKWHQT2_cjs.Connection; }
24
+ });
25
+ Object.defineProperty(exports, "PageInfo", {
26
+ enumerable: true,
27
+ get: function () { return chunk4QKWHQT2_cjs.PageInfo; }
28
+ });
29
+ Object.defineProperty(exports, "defaultConnection", {
30
+ enumerable: true,
31
+ get: function () { return chunk4QKWHQT2_cjs.defaultConnection; }
32
+ });
33
+ //# sourceMappingURL=index.cjs.map
34
+ //# sourceMappingURL=index.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"names":[],"mappings":"","file":"index.cjs"}
@@ -0,0 +1,6 @@
1
+ export { A as AbstractConnection, C as Connection, P as PageInfo, d as defaultConnection, e as extractNodes, m as mergeConnections } from '../index-BrGSfyXq.cjs';
2
+ import '../types-2RotD0Ab.cjs';
3
+ import 'graphql';
4
+ import '../sync-engine-DVKQO-1-.cjs';
5
+ import 'dexie';
6
+ import '../error-CsVoUTY8.cjs';
@@ -0,0 +1,6 @@
1
+ export { A as AbstractConnection, C as Connection, P as PageInfo, d as defaultConnection, e as extractNodes, m as mergeConnections } from '../index-zPcVLagO.js';
2
+ import '../types-2RotD0Ab.js';
3
+ import 'graphql';
4
+ import '../sync-engine-cLwTqdjv.js';
5
+ import 'dexie';
6
+ import '../error-CsVoUTY8.js';
@@ -0,0 +1,5 @@
1
+ export { extractNodes, mergeConnections } from '../chunk-QOZI2HY5.js';
2
+ export { AbstractConnection, Connection, PageInfo, defaultConnection } from '../chunk-P4BYTXZ7.js';
3
+ import '../chunk-5WRI5ZAA.js';
4
+ //# sourceMappingURL=index.js.map
5
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"names":[],"mappings":"","file":"index.js"}