@aouda/client 0.1.14 → 0.1.16
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/README.md +1 -1
- package/dist/cli/index.cjs +377 -75
- package/dist/cli/index.cjs.map +1 -1
- package/dist/cli/index.d.cts +1 -1
- package/dist/cli/index.d.ts +1 -1
- package/dist/cli/index.js +377 -75
- package/dist/cli/index.js.map +1 -1
- package/dist/{client-BCMP-Fge.d.cts → client-CsE8Vd6m.d.cts} +168 -24
- package/dist/{client-BCMP-Fge.d.ts → client-CsE8Vd6m.d.ts} +168 -24
- package/dist/index.cjs +382 -74
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +14 -10
- package/dist/index.d.ts +14 -10
- package/dist/index.js +379 -74
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import { T as Transport, B as BulkLoadOptions, a as BulkLoadJobHandle, R as ReplicationStatusResponse, b as TopologyResponse, C as CoverageResponse, H as HealthStatus, c as ReadinessResponse, D as DetailedHealthResponse, N as NodeInfoResponse, d as TriggerBackupRequest, e as TriggerBackupResponse, L as ListBackupsResponse, f as RestoreBackupResponse, g as BackupSchedule, J as JoinClusterRequest, h as JoinClusterResponse, i as LeaveClusterResponse, P as PromoteClusterResponse, F as FailoverClusterResponse, j as DrainClusterResponse, k as ClusterConfigResponse, l as ClusterConfigPatchRequest,
|
|
2
|
-
export {
|
|
1
|
+
import { S as StreamAckRowError, T as Transport, B as BulkLoadOptions, a as BulkLoadJobHandle, R as ReplicationStatusResponse, b as TopologyResponse, C as CoverageResponse, H as HealthStatus, c as ReadinessResponse, D as DetailedHealthResponse, N as NodeInfoResponse, d as TriggerBackupRequest, e as TriggerBackupResponse, L as ListBackupsResponse, f as RestoreBackupResponse, g as BackupSchedule, J as JoinClusterRequest, h as JoinClusterResponse, i as LeaveClusterResponse, P as PromoteClusterResponse, F as FailoverClusterResponse, j as DrainClusterResponse, k as ClusterConfigResponse, l as ClusterConfigPatchRequest, m as SchemaLike, n as DefaultSchema, A as AoudaClient } from './client-CsE8Vd6m.cjs';
|
|
2
|
+
export { o as AGGREGATE_FUNCTIONS, p as AOUDA_DATA_TYPES, q as AddColumnRequest, r as AdminApi, s as AdminBackupConfig, t as AdminBackupPatch, u as AdminConfigPatchRequest, v as AdminConfigResponse, w as AdminConfigSchemaResponse, x as AdminLoggingConfig, y as AdminLoggingPatch, z as AdminMemoryConfig, E as AdminMemoryPatch, G as AggregateFunctionName, I as AlterColumnRequest, K as AoudaClientOptions, M as AoudaDataType, O as AppAuthOptions, Q as AuthClient, U as AuthResult, V as AuthUserInfo, W as AuthorizationMode, X as BackupAdminApi, Y as BackupMetrics, Z as BackupSummary, _ as BatchMutationResult, $ as BatchOperationInput, a0 as BloomFilterMetrics, a1 as BranchInfo, a2 as BranchesApi, a3 as BulkLoadForceAbortRequest, a4 as BulkLoadForceAbortResponse, a5 as BulkLoadListResponse, a6 as BulkLoadProgress, a7 as BulkLoadReplicaProgress, a8 as BulkLoadReplicaProgressDto, a9 as BulkLoadStatusResponse, aa as CircuitBreakerPolicy, ab as ClusterAdminApi, ac as ClusterMemberEntry, ad as ClusterThisNodeEntry, ae as ColumnSchema, af as ColumnSummaryForErd, ag as ColumnarResponse, ah as ComponentHealthEntry, ai as ComputedColumnDef, aj as ConfigAdminApi, ak as ConsistencyTokenStore, al as CreateBranchRequest, am as CreateColumnRequest, an as CreateDatabaseOptions, ao as CreatePartitionGrantRequest, ap as CreateRlsResolverRequest, aq as CreateTableRequest, ar as DatabaseAuthInfo, as as DatabaseAuthKeys, at as DatabaseCoverageEntry, au as DatabaseInfo, av as DatabaseMemoryMetrics, aw as DatabaseMemoryUsage, ax as DatabaseMetricsDto, ay as DatabaseOptionsInfo, az as DatabasesApi, aA as DeleteOptions, aB as DiffSummary, aC as FILTER_OPERATORS, aD as FilterOperator, aE as HealthAdminApi, aF as IndexInfo, aG as InsertOptions, aH as InsertResult, aI as IoMetrics, aJ as JobsApi, aK as LatencyPercentiles, aL as MaterializedQueriesApi, aM as MaterializedQueryDefinition, aN as MaterializedQueryExecuteOptions, aO as MaterializedQueryExecuteResult, aP as MaterializedQueryMetrics, aQ as MaterializedQueryRefreshOptions, aR as MaterializedQueryState, aS as MaterializedQueryStateNumber, aT as MaterializedQueryStatus, aU as MaterializedQueryType, aV as MaterializedQueryTypeNumber, aW as MemberInfo, aX as MemoryConsistencyTokenStore, aY as MemoryMetrics, aZ as MergeBranchOptions, a_ as MergeConflict, a$ as MergeExecutionResult, b0 as MergeResult, b1 as MetricsAdminApi, b2 as MetricsHistory, b3 as MetricsHistoryOptions, b4 as MetricsSnapshot, b5 as MetricsSummary, b6 as MutationResult, b7 as NamedArtifactWarning, b8 as NamedMutationDefinition, b9 as NamedMutationResult, ba as NamedMutationsApi, bb as NamedQueriesApi, bc as NamedQueryBatchItem, bd as NamedQueryBatchSlotResult, be as NamedQueryDefinition, bf as NamedQueryExecuteOptions, bg as NamedQueryParamConstraint, bh as NamedQuerySubscribeOptions, bi as NodeAdminApi, bj as NodeLogEntry, bk as NodeLogLevel, bl as NodeLogStreamOptions, bm as NodeLogsQuery, bn as NodeLogsResponse, bo as OpenWriteStreamOptions, bp as PageCacheMetrics, bq as PartitionFunction, br as PartitionGrant, bs as PartitionGrantsListResponse, bt as PartitioningMetrics, bu as PendingJobListResponse, bv as PendingJobResponse, bw as PerDatabaseLagEntry, bx as PerDatabaseMetrics, by as PerDatabaseStatusEntry, bz as PolicyApi, bA as PolicyInspectRequest, bB as PolicyInspectResponse, bC as PolicyInspectTableResult, bD as PolicyInspectTraverseStart, bE as PolicyInspectVectorProbe, bF as QueryMetrics, bG as QueryResult, bH as QueryStats, bI as ReferenceInfo, bJ as RelationshipEndpoint, bK as RelationshipInfo, bL as RenameColumnRequest, bM as RenameTableRequest, bN as ReorderColumnsRequest, bO as ReplicationAdminApi, bP as ReplicationMetrics, bQ as ResidencyConfig, bR as ResultWarning, bS as RetryPolicy, bT as RlsResolver, bU as RlsResolverRule, bV as RlsResolverRuleInput, bW as RlsResolversListResponse, bX as SchemaAggregateColumn, bY as SchemaChange, bZ as SchemaChangeType, b_ as SchemaColumnDefinition, b$ as SchemaComputedOutput, c0 as SchemaComputedOutputType, c1 as SchemaDiffResult, c2 as SchemaDocument, c3 as SchemaFilterCondition, c4 as SchemaFilterPredicate, c5 as SchemaGroupByTerm, c6 as SchemaMaterializedQuery, c7 as SchemaMaterializedStorage, c8 as SchemaPartitionKeyEntry, c9 as SchemaRelationshipsResponse, ca as SchemaSettings, cb as SchemaSettingsDurability, cc as SchemaTableDefinition, cd as SchemaTableDurability, ce as SchemaTablePolicy, cf as SchemaTableTransform, cg as SeedApplyResult, ch as SeedTableApplyResult, ci as ServerAdminApi, cj as ServerAuthOptions, ck as ServerMemoryResponse, cl as ServerMetricsResponse, cm as ServiceInfo, cn as SimdMetrics, co as SingleDatabaseMetricsResponse, cp as SortDirection, cq as StorageMetrics, cr as SubscribeOptions, cs as Subscription, ct as SubscriptionChangeEvent, cu as SubscriptionEvent, cv as SubscriptionInfo, cw as SubscriptionSnapshotEvent, cx as TIME_BUCKET_FUNCTIONS, cy as TableCoverageEntry, cz as TableNameFromSchema, cA as TablePolicy, cB as TableQuery, cC as TableSchema, cD as TableSchemaResponse, cE as TableSummary, cF as TableSummaryForErd, cG as TablesApi, cH as TestIdentity, cI as TestIdentityDocument, cJ as TestIdentityGrant, cK as TimeBucketFunction, cL as TimeSeriesMetrics, cM as TransactionMetrics, cN as TypeGenerationOptions, cO as UpdateOptions, cP as UpdateRlsResolverRequest, cQ as UpdateTableOptionsRequest, cR as UpdateTablePolicyRequest, cS as UserProfile, cT as WalMetrics, cU as WhereGroupBuilder, cV as WhereOperator, cW as WriteStream, cX as coerceColumnarValue, cY as columnarToRows, cZ as compareOrdinal, c_ as createAoudaClient, c$ as maxToken } from './client-CsE8Vd6m.cjs';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* @aouda/client error types.
|
|
6
6
|
*/
|
|
7
|
+
|
|
7
8
|
/**
|
|
8
9
|
* Base error class for Aouda client errors.
|
|
9
10
|
*/
|
|
@@ -16,7 +17,8 @@ declare class AoudaError extends Error {
|
|
|
16
17
|
*/
|
|
17
18
|
declare class AoudaConnectionError extends AoudaError {
|
|
18
19
|
readonly cause?: Error | undefined;
|
|
19
|
-
|
|
20
|
+
readonly rowErrors?: readonly StreamAckRowError[] | undefined;
|
|
21
|
+
constructor(message: string, cause?: Error | undefined, rowErrors?: readonly StreamAckRowError[] | undefined);
|
|
20
22
|
}
|
|
21
23
|
/**
|
|
22
24
|
* Error thrown when a request times out.
|
|
@@ -43,37 +45,39 @@ declare class AoudaApiError extends AoudaError {
|
|
|
43
45
|
readonly details?: string | undefined;
|
|
44
46
|
readonly requestId?: string | undefined;
|
|
45
47
|
readonly retryAfterSeconds?: number | undefined;
|
|
46
|
-
|
|
48
|
+
readonly token?: string | undefined;
|
|
49
|
+
readonly rowErrors?: readonly StreamAckRowError[] | undefined;
|
|
50
|
+
constructor(message: string, code: string, statusCode: number, details?: string | undefined, requestId?: string | undefined, retryAfterSeconds?: number | undefined, token?: string | undefined, rowErrors?: readonly StreamAckRowError[] | undefined);
|
|
47
51
|
}
|
|
48
52
|
/**
|
|
49
53
|
* Thrown for TABLE_NOT_FOUND, COLUMN_NOT_FOUND (404).
|
|
50
54
|
*/
|
|
51
55
|
declare class AoudaNotFoundError extends AoudaApiError {
|
|
52
|
-
constructor(message: string, code: string, statusCode: number, details?: string, requestId?: string);
|
|
56
|
+
constructor(message: string, code: string, statusCode: number, details?: string, requestId?: string, retryAfterSeconds?: number, token?: string, rowErrors?: readonly StreamAckRowError[]);
|
|
53
57
|
}
|
|
54
58
|
/**
|
|
55
59
|
* Thrown for TABLE_EXISTS, COLUMN_EXISTS (409).
|
|
56
60
|
*/
|
|
57
61
|
declare class AoudaConflictError extends AoudaApiError {
|
|
58
|
-
constructor(message: string, code: string, statusCode: number, details?: string, requestId?: string);
|
|
62
|
+
constructor(message: string, code: string, statusCode: number, details?: string, requestId?: string, retryAfterSeconds?: number, token?: string, rowErrors?: readonly StreamAckRowError[]);
|
|
59
63
|
}
|
|
60
64
|
/**
|
|
61
65
|
* Thrown for INVALID_REQUEST, INVALID_OPERATOR, etc. (400).
|
|
62
66
|
*/
|
|
63
67
|
declare class AoudaValidationError extends AoudaApiError {
|
|
64
|
-
constructor(message: string, code: string, statusCode: number, details?: string, requestId?: string);
|
|
68
|
+
constructor(message: string, code: string, statusCode: number, details?: string, requestId?: string, retryAfterSeconds?: number, token?: string, rowErrors?: readonly StreamAckRowError[]);
|
|
65
69
|
}
|
|
66
70
|
/**
|
|
67
71
|
* Thrown for INTERNAL_ERROR, SERVICE_UNAVAILABLE, etc. (5xx).
|
|
68
72
|
*/
|
|
69
73
|
declare class AoudaServerError extends AoudaApiError {
|
|
70
|
-
constructor(message: string, code: string, statusCode: number, details?: string, requestId?: string, retryAfterSeconds?: number);
|
|
74
|
+
constructor(message: string, code: string, statusCode: number, details?: string, requestId?: string, retryAfterSeconds?: number, token?: string, rowErrors?: readonly StreamAckRowError[]);
|
|
71
75
|
}
|
|
72
76
|
/**
|
|
73
77
|
* Thrown for 401 authentication errors (AUTH_TOKEN_EXPIRED, AUTH_TOKEN_INVALID, etc.).
|
|
74
78
|
*/
|
|
75
79
|
declare class AoudaAuthenticationError extends AoudaApiError {
|
|
76
|
-
constructor(message: string, code: string, statusCode: number, details?: string, requestId?: string);
|
|
80
|
+
constructor(message: string, code: string, statusCode: number, details?: string, requestId?: string, retryAfterSeconds?: number, token?: string, rowErrors?: readonly StreamAckRowError[]);
|
|
77
81
|
}
|
|
78
82
|
/**
|
|
79
83
|
* Thrown when the circuit breaker is open and requests are rejected immediately.
|
|
@@ -225,4 +229,4 @@ declare function createAoudaClusterMcpToolSet<S extends SchemaLike = DefaultSche
|
|
|
225
229
|
*/
|
|
226
230
|
declare const version: string;
|
|
227
231
|
|
|
228
|
-
export { AoudaApiError, AoudaAuthenticationError, AoudaCircuitBreakerOpenError, AoudaClient, type AoudaClusterMcpToolSet, AoudaClusterMcpTools, AoudaConflictError, AoudaConnectionError, AoudaError, AoudaNotFoundError, AoudaResponseError, AoudaServerError, AoudaTimeoutError, AoudaValidationError, type BackupRestoreToolInput, BackupSchedule, type BackupSetScheduleToolInput, type BackupTriggerToolInput, BulkLoadCoordinator, BulkLoadJobHandle, BulkLoadOptions, ClusterConfigPatchRequest, ClusterConfigResponse, type ClusterDrainToolInput, type ClusterHealthToolInput, type ClusterHealthToolOutput, type ClusterPatchConfigToolInput, type ClusterStatusToolInput, type ClusterStatusToolOutput, CoverageResponse, DefaultSchema, DetailedHealthResponse, DrainClusterResponse, FailoverClusterResponse, HealthStatus, JoinClusterRequest, JoinClusterResponse, LeaveClusterResponse, ListBackupsResponse, type LocalNetworkRequestInit, type McpToolDefinition, type McpToolSchema, NodeInfoResponse, PromoteClusterResponse, ReadinessResponse, ReplicationStatusResponse, RestoreBackupResponse, SchemaLike, type TargetAddressSpace, TopologyResponse, TriggerBackupRequest, TriggerBackupResponse, applyLocalNetworkAccess, createAoudaClusterMcpToolSet, installLocalNetworkFetch, localNetworkFetch, resolveTargetAddressSpace, version };
|
|
232
|
+
export { AoudaApiError, AoudaAuthenticationError, AoudaCircuitBreakerOpenError, AoudaClient, type AoudaClusterMcpToolSet, AoudaClusterMcpTools, AoudaConflictError, AoudaConnectionError, AoudaError, AoudaNotFoundError, AoudaResponseError, AoudaServerError, AoudaTimeoutError, AoudaValidationError, type BackupRestoreToolInput, BackupSchedule, type BackupSetScheduleToolInput, type BackupTriggerToolInput, BulkLoadCoordinator, BulkLoadJobHandle, BulkLoadOptions, ClusterConfigPatchRequest, ClusterConfigResponse, type ClusterDrainToolInput, type ClusterHealthToolInput, type ClusterHealthToolOutput, type ClusterPatchConfigToolInput, type ClusterStatusToolInput, type ClusterStatusToolOutput, CoverageResponse, DefaultSchema, DetailedHealthResponse, DrainClusterResponse, FailoverClusterResponse, HealthStatus, JoinClusterRequest, JoinClusterResponse, LeaveClusterResponse, ListBackupsResponse, type LocalNetworkRequestInit, type McpToolDefinition, type McpToolSchema, NodeInfoResponse, PromoteClusterResponse, ReadinessResponse, ReplicationStatusResponse, RestoreBackupResponse, SchemaLike, StreamAckRowError, type TargetAddressSpace, TopologyResponse, TriggerBackupRequest, TriggerBackupResponse, applyLocalNetworkAccess, createAoudaClusterMcpToolSet, installLocalNetworkFetch, localNetworkFetch, resolveTargetAddressSpace, version };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import { T as Transport, B as BulkLoadOptions, a as BulkLoadJobHandle, R as ReplicationStatusResponse, b as TopologyResponse, C as CoverageResponse, H as HealthStatus, c as ReadinessResponse, D as DetailedHealthResponse, N as NodeInfoResponse, d as TriggerBackupRequest, e as TriggerBackupResponse, L as ListBackupsResponse, f as RestoreBackupResponse, g as BackupSchedule, J as JoinClusterRequest, h as JoinClusterResponse, i as LeaveClusterResponse, P as PromoteClusterResponse, F as FailoverClusterResponse, j as DrainClusterResponse, k as ClusterConfigResponse, l as ClusterConfigPatchRequest,
|
|
2
|
-
export {
|
|
1
|
+
import { S as StreamAckRowError, T as Transport, B as BulkLoadOptions, a as BulkLoadJobHandle, R as ReplicationStatusResponse, b as TopologyResponse, C as CoverageResponse, H as HealthStatus, c as ReadinessResponse, D as DetailedHealthResponse, N as NodeInfoResponse, d as TriggerBackupRequest, e as TriggerBackupResponse, L as ListBackupsResponse, f as RestoreBackupResponse, g as BackupSchedule, J as JoinClusterRequest, h as JoinClusterResponse, i as LeaveClusterResponse, P as PromoteClusterResponse, F as FailoverClusterResponse, j as DrainClusterResponse, k as ClusterConfigResponse, l as ClusterConfigPatchRequest, m as SchemaLike, n as DefaultSchema, A as AoudaClient } from './client-CsE8Vd6m.js';
|
|
2
|
+
export { o as AGGREGATE_FUNCTIONS, p as AOUDA_DATA_TYPES, q as AddColumnRequest, r as AdminApi, s as AdminBackupConfig, t as AdminBackupPatch, u as AdminConfigPatchRequest, v as AdminConfigResponse, w as AdminConfigSchemaResponse, x as AdminLoggingConfig, y as AdminLoggingPatch, z as AdminMemoryConfig, E as AdminMemoryPatch, G as AggregateFunctionName, I as AlterColumnRequest, K as AoudaClientOptions, M as AoudaDataType, O as AppAuthOptions, Q as AuthClient, U as AuthResult, V as AuthUserInfo, W as AuthorizationMode, X as BackupAdminApi, Y as BackupMetrics, Z as BackupSummary, _ as BatchMutationResult, $ as BatchOperationInput, a0 as BloomFilterMetrics, a1 as BranchInfo, a2 as BranchesApi, a3 as BulkLoadForceAbortRequest, a4 as BulkLoadForceAbortResponse, a5 as BulkLoadListResponse, a6 as BulkLoadProgress, a7 as BulkLoadReplicaProgress, a8 as BulkLoadReplicaProgressDto, a9 as BulkLoadStatusResponse, aa as CircuitBreakerPolicy, ab as ClusterAdminApi, ac as ClusterMemberEntry, ad as ClusterThisNodeEntry, ae as ColumnSchema, af as ColumnSummaryForErd, ag as ColumnarResponse, ah as ComponentHealthEntry, ai as ComputedColumnDef, aj as ConfigAdminApi, ak as ConsistencyTokenStore, al as CreateBranchRequest, am as CreateColumnRequest, an as CreateDatabaseOptions, ao as CreatePartitionGrantRequest, ap as CreateRlsResolverRequest, aq as CreateTableRequest, ar as DatabaseAuthInfo, as as DatabaseAuthKeys, at as DatabaseCoverageEntry, au as DatabaseInfo, av as DatabaseMemoryMetrics, aw as DatabaseMemoryUsage, ax as DatabaseMetricsDto, ay as DatabaseOptionsInfo, az as DatabasesApi, aA as DeleteOptions, aB as DiffSummary, aC as FILTER_OPERATORS, aD as FilterOperator, aE as HealthAdminApi, aF as IndexInfo, aG as InsertOptions, aH as InsertResult, aI as IoMetrics, aJ as JobsApi, aK as LatencyPercentiles, aL as MaterializedQueriesApi, aM as MaterializedQueryDefinition, aN as MaterializedQueryExecuteOptions, aO as MaterializedQueryExecuteResult, aP as MaterializedQueryMetrics, aQ as MaterializedQueryRefreshOptions, aR as MaterializedQueryState, aS as MaterializedQueryStateNumber, aT as MaterializedQueryStatus, aU as MaterializedQueryType, aV as MaterializedQueryTypeNumber, aW as MemberInfo, aX as MemoryConsistencyTokenStore, aY as MemoryMetrics, aZ as MergeBranchOptions, a_ as MergeConflict, a$ as MergeExecutionResult, b0 as MergeResult, b1 as MetricsAdminApi, b2 as MetricsHistory, b3 as MetricsHistoryOptions, b4 as MetricsSnapshot, b5 as MetricsSummary, b6 as MutationResult, b7 as NamedArtifactWarning, b8 as NamedMutationDefinition, b9 as NamedMutationResult, ba as NamedMutationsApi, bb as NamedQueriesApi, bc as NamedQueryBatchItem, bd as NamedQueryBatchSlotResult, be as NamedQueryDefinition, bf as NamedQueryExecuteOptions, bg as NamedQueryParamConstraint, bh as NamedQuerySubscribeOptions, bi as NodeAdminApi, bj as NodeLogEntry, bk as NodeLogLevel, bl as NodeLogStreamOptions, bm as NodeLogsQuery, bn as NodeLogsResponse, bo as OpenWriteStreamOptions, bp as PageCacheMetrics, bq as PartitionFunction, br as PartitionGrant, bs as PartitionGrantsListResponse, bt as PartitioningMetrics, bu as PendingJobListResponse, bv as PendingJobResponse, bw as PerDatabaseLagEntry, bx as PerDatabaseMetrics, by as PerDatabaseStatusEntry, bz as PolicyApi, bA as PolicyInspectRequest, bB as PolicyInspectResponse, bC as PolicyInspectTableResult, bD as PolicyInspectTraverseStart, bE as PolicyInspectVectorProbe, bF as QueryMetrics, bG as QueryResult, bH as QueryStats, bI as ReferenceInfo, bJ as RelationshipEndpoint, bK as RelationshipInfo, bL as RenameColumnRequest, bM as RenameTableRequest, bN as ReorderColumnsRequest, bO as ReplicationAdminApi, bP as ReplicationMetrics, bQ as ResidencyConfig, bR as ResultWarning, bS as RetryPolicy, bT as RlsResolver, bU as RlsResolverRule, bV as RlsResolverRuleInput, bW as RlsResolversListResponse, bX as SchemaAggregateColumn, bY as SchemaChange, bZ as SchemaChangeType, b_ as SchemaColumnDefinition, b$ as SchemaComputedOutput, c0 as SchemaComputedOutputType, c1 as SchemaDiffResult, c2 as SchemaDocument, c3 as SchemaFilterCondition, c4 as SchemaFilterPredicate, c5 as SchemaGroupByTerm, c6 as SchemaMaterializedQuery, c7 as SchemaMaterializedStorage, c8 as SchemaPartitionKeyEntry, c9 as SchemaRelationshipsResponse, ca as SchemaSettings, cb as SchemaSettingsDurability, cc as SchemaTableDefinition, cd as SchemaTableDurability, ce as SchemaTablePolicy, cf as SchemaTableTransform, cg as SeedApplyResult, ch as SeedTableApplyResult, ci as ServerAdminApi, cj as ServerAuthOptions, ck as ServerMemoryResponse, cl as ServerMetricsResponse, cm as ServiceInfo, cn as SimdMetrics, co as SingleDatabaseMetricsResponse, cp as SortDirection, cq as StorageMetrics, cr as SubscribeOptions, cs as Subscription, ct as SubscriptionChangeEvent, cu as SubscriptionEvent, cv as SubscriptionInfo, cw as SubscriptionSnapshotEvent, cx as TIME_BUCKET_FUNCTIONS, cy as TableCoverageEntry, cz as TableNameFromSchema, cA as TablePolicy, cB as TableQuery, cC as TableSchema, cD as TableSchemaResponse, cE as TableSummary, cF as TableSummaryForErd, cG as TablesApi, cH as TestIdentity, cI as TestIdentityDocument, cJ as TestIdentityGrant, cK as TimeBucketFunction, cL as TimeSeriesMetrics, cM as TransactionMetrics, cN as TypeGenerationOptions, cO as UpdateOptions, cP as UpdateRlsResolverRequest, cQ as UpdateTableOptionsRequest, cR as UpdateTablePolicyRequest, cS as UserProfile, cT as WalMetrics, cU as WhereGroupBuilder, cV as WhereOperator, cW as WriteStream, cX as coerceColumnarValue, cY as columnarToRows, cZ as compareOrdinal, c_ as createAoudaClient, c$ as maxToken } from './client-CsE8Vd6m.js';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* @aouda/client error types.
|
|
6
6
|
*/
|
|
7
|
+
|
|
7
8
|
/**
|
|
8
9
|
* Base error class for Aouda client errors.
|
|
9
10
|
*/
|
|
@@ -16,7 +17,8 @@ declare class AoudaError extends Error {
|
|
|
16
17
|
*/
|
|
17
18
|
declare class AoudaConnectionError extends AoudaError {
|
|
18
19
|
readonly cause?: Error | undefined;
|
|
19
|
-
|
|
20
|
+
readonly rowErrors?: readonly StreamAckRowError[] | undefined;
|
|
21
|
+
constructor(message: string, cause?: Error | undefined, rowErrors?: readonly StreamAckRowError[] | undefined);
|
|
20
22
|
}
|
|
21
23
|
/**
|
|
22
24
|
* Error thrown when a request times out.
|
|
@@ -43,37 +45,39 @@ declare class AoudaApiError extends AoudaError {
|
|
|
43
45
|
readonly details?: string | undefined;
|
|
44
46
|
readonly requestId?: string | undefined;
|
|
45
47
|
readonly retryAfterSeconds?: number | undefined;
|
|
46
|
-
|
|
48
|
+
readonly token?: string | undefined;
|
|
49
|
+
readonly rowErrors?: readonly StreamAckRowError[] | undefined;
|
|
50
|
+
constructor(message: string, code: string, statusCode: number, details?: string | undefined, requestId?: string | undefined, retryAfterSeconds?: number | undefined, token?: string | undefined, rowErrors?: readonly StreamAckRowError[] | undefined);
|
|
47
51
|
}
|
|
48
52
|
/**
|
|
49
53
|
* Thrown for TABLE_NOT_FOUND, COLUMN_NOT_FOUND (404).
|
|
50
54
|
*/
|
|
51
55
|
declare class AoudaNotFoundError extends AoudaApiError {
|
|
52
|
-
constructor(message: string, code: string, statusCode: number, details?: string, requestId?: string);
|
|
56
|
+
constructor(message: string, code: string, statusCode: number, details?: string, requestId?: string, retryAfterSeconds?: number, token?: string, rowErrors?: readonly StreamAckRowError[]);
|
|
53
57
|
}
|
|
54
58
|
/**
|
|
55
59
|
* Thrown for TABLE_EXISTS, COLUMN_EXISTS (409).
|
|
56
60
|
*/
|
|
57
61
|
declare class AoudaConflictError extends AoudaApiError {
|
|
58
|
-
constructor(message: string, code: string, statusCode: number, details?: string, requestId?: string);
|
|
62
|
+
constructor(message: string, code: string, statusCode: number, details?: string, requestId?: string, retryAfterSeconds?: number, token?: string, rowErrors?: readonly StreamAckRowError[]);
|
|
59
63
|
}
|
|
60
64
|
/**
|
|
61
65
|
* Thrown for INVALID_REQUEST, INVALID_OPERATOR, etc. (400).
|
|
62
66
|
*/
|
|
63
67
|
declare class AoudaValidationError extends AoudaApiError {
|
|
64
|
-
constructor(message: string, code: string, statusCode: number, details?: string, requestId?: string);
|
|
68
|
+
constructor(message: string, code: string, statusCode: number, details?: string, requestId?: string, retryAfterSeconds?: number, token?: string, rowErrors?: readonly StreamAckRowError[]);
|
|
65
69
|
}
|
|
66
70
|
/**
|
|
67
71
|
* Thrown for INTERNAL_ERROR, SERVICE_UNAVAILABLE, etc. (5xx).
|
|
68
72
|
*/
|
|
69
73
|
declare class AoudaServerError extends AoudaApiError {
|
|
70
|
-
constructor(message: string, code: string, statusCode: number, details?: string, requestId?: string, retryAfterSeconds?: number);
|
|
74
|
+
constructor(message: string, code: string, statusCode: number, details?: string, requestId?: string, retryAfterSeconds?: number, token?: string, rowErrors?: readonly StreamAckRowError[]);
|
|
71
75
|
}
|
|
72
76
|
/**
|
|
73
77
|
* Thrown for 401 authentication errors (AUTH_TOKEN_EXPIRED, AUTH_TOKEN_INVALID, etc.).
|
|
74
78
|
*/
|
|
75
79
|
declare class AoudaAuthenticationError extends AoudaApiError {
|
|
76
|
-
constructor(message: string, code: string, statusCode: number, details?: string, requestId?: string);
|
|
80
|
+
constructor(message: string, code: string, statusCode: number, details?: string, requestId?: string, retryAfterSeconds?: number, token?: string, rowErrors?: readonly StreamAckRowError[]);
|
|
77
81
|
}
|
|
78
82
|
/**
|
|
79
83
|
* Thrown when the circuit breaker is open and requests are rejected immediately.
|
|
@@ -225,4 +229,4 @@ declare function createAoudaClusterMcpToolSet<S extends SchemaLike = DefaultSche
|
|
|
225
229
|
*/
|
|
226
230
|
declare const version: string;
|
|
227
231
|
|
|
228
|
-
export { AoudaApiError, AoudaAuthenticationError, AoudaCircuitBreakerOpenError, AoudaClient, type AoudaClusterMcpToolSet, AoudaClusterMcpTools, AoudaConflictError, AoudaConnectionError, AoudaError, AoudaNotFoundError, AoudaResponseError, AoudaServerError, AoudaTimeoutError, AoudaValidationError, type BackupRestoreToolInput, BackupSchedule, type BackupSetScheduleToolInput, type BackupTriggerToolInput, BulkLoadCoordinator, BulkLoadJobHandle, BulkLoadOptions, ClusterConfigPatchRequest, ClusterConfigResponse, type ClusterDrainToolInput, type ClusterHealthToolInput, type ClusterHealthToolOutput, type ClusterPatchConfigToolInput, type ClusterStatusToolInput, type ClusterStatusToolOutput, CoverageResponse, DefaultSchema, DetailedHealthResponse, DrainClusterResponse, FailoverClusterResponse, HealthStatus, JoinClusterRequest, JoinClusterResponse, LeaveClusterResponse, ListBackupsResponse, type LocalNetworkRequestInit, type McpToolDefinition, type McpToolSchema, NodeInfoResponse, PromoteClusterResponse, ReadinessResponse, ReplicationStatusResponse, RestoreBackupResponse, SchemaLike, type TargetAddressSpace, TopologyResponse, TriggerBackupRequest, TriggerBackupResponse, applyLocalNetworkAccess, createAoudaClusterMcpToolSet, installLocalNetworkFetch, localNetworkFetch, resolveTargetAddressSpace, version };
|
|
232
|
+
export { AoudaApiError, AoudaAuthenticationError, AoudaCircuitBreakerOpenError, AoudaClient, type AoudaClusterMcpToolSet, AoudaClusterMcpTools, AoudaConflictError, AoudaConnectionError, AoudaError, AoudaNotFoundError, AoudaResponseError, AoudaServerError, AoudaTimeoutError, AoudaValidationError, type BackupRestoreToolInput, BackupSchedule, type BackupSetScheduleToolInput, type BackupTriggerToolInput, BulkLoadCoordinator, BulkLoadJobHandle, BulkLoadOptions, ClusterConfigPatchRequest, ClusterConfigResponse, type ClusterDrainToolInput, type ClusterHealthToolInput, type ClusterHealthToolOutput, type ClusterPatchConfigToolInput, type ClusterStatusToolInput, type ClusterStatusToolOutput, CoverageResponse, DefaultSchema, DetailedHealthResponse, DrainClusterResponse, FailoverClusterResponse, HealthStatus, JoinClusterRequest, JoinClusterResponse, LeaveClusterResponse, ListBackupsResponse, type LocalNetworkRequestInit, type McpToolDefinition, type McpToolSchema, NodeInfoResponse, PromoteClusterResponse, ReadinessResponse, ReplicationStatusResponse, RestoreBackupResponse, SchemaLike, StreamAckRowError, type TargetAddressSpace, TopologyResponse, TriggerBackupRequest, TriggerBackupResponse, applyLocalNetworkAccess, createAoudaClusterMcpToolSet, installLocalNetworkFetch, localNetworkFetch, resolveTargetAddressSpace, version };
|