@aouda/client 0.1.0 → 0.1.3
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/cli/index.cjs +19 -1
- 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 +19 -1
- package/dist/cli/index.js.map +1 -1
- package/dist/{client-Dttx8D7c.d.cts → client-B9a2zoUU.d.cts} +56 -1
- package/dist/{client-Dttx8D7c.d.ts → client-B9a2zoUU.d.ts} +56 -1
- package/dist/index.cjs +43 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +40 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
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, S as SchemaLike, m as DefaultSchema, A as AoudaClient } from './client-
|
|
2
|
-
export { n as
|
|
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, S as SchemaLike, m as DefaultSchema, A as AoudaClient } from './client-B9a2zoUU.cjs';
|
|
2
|
+
export { n as AGGREGATE_FUNCTIONS, o as AOUDA_DATA_TYPES, p as AddColumnRequest, q as AdminApi, r as AdminBackupConfig, s as AdminBackupPatch, t as AdminConfigPatchRequest, u as AdminConfigResponse, v as AdminConfigSchemaResponse, w as AdminLoggingConfig, x as AdminLoggingPatch, y as AdminMemoryConfig, z as AdminMemoryPatch, E as AggregateFunctionName, G as AoudaClientOptions, I as AoudaDataType, K as AppAuthOptions, M as AuthClient, O as AuthResult, Q as AuthUserInfo, U as AuthorizationMode, V as BackupAdminApi, W as BackupMetrics, X as BackupSummary, Y as BatchMutationResult, Z as BatchOperationInput, _ as BloomFilterMetrics, $ as BranchInfo, a0 as BranchesApi, a1 as BulkLoadForceAbortRequest, a2 as BulkLoadForceAbortResponse, a3 as BulkLoadListResponse, a4 as BulkLoadProgress, a5 as BulkLoadReplicaProgress, a6 as BulkLoadReplicaProgressDto, a7 as BulkLoadStatusResponse, a8 as CircuitBreakerPolicy, a9 as ClusterAdminApi, aa as ClusterMemberEntry, ab as ClusterThisNodeEntry, ac as ColumnSchema, ad as ColumnSummaryForErd, ae as ColumnarResponse, af as ComponentHealthEntry, ag as ComputedColumnDef, ah as ConfigAdminApi, ai as CreateBranchRequest, aj as CreateColumnRequest, ak as CreateDatabaseOptions, al as CreatePartitionGrantRequest, am as CreateRlsResolverRequest, an as CreateTableRequest, ao as DatabaseCoverageEntry, ap as DatabaseInfo, aq as DatabaseMemoryMetrics, ar as DatabaseMemoryUsage, as as DatabaseMetricsDto, at as DatabaseOptionsInfo, au as DatabasesApi, av as DeleteOptions, aw as DiffSummary, ax as FILTER_OPERATORS, ay as FilterOperator, az as HealthAdminApi, aA as IndexInfo, aB as InsertResult, aC as IoMetrics, aD as LatencyPercentiles, aE as MaterializedQueriesApi, aF as MaterializedQueryDefinition, aG as MaterializedQueryExecuteOptions, aH as MaterializedQueryExecuteResult, aI as MaterializedQueryMetrics, aJ as MaterializedQueryRefreshOptions, aK as MaterializedQueryState, aL as MaterializedQueryStateNumber, aM as MaterializedQueryStatus, aN as MaterializedQueryType, aO as MaterializedQueryTypeNumber, aP as MemberInfo, aQ as MemoryMetrics, aR as MergeBranchOptions, aS as MergeConflict, aT as MergeExecutionResult, aU as MergeResult, aV as MetricsAdminApi, aW as MetricsHistory, aX as MetricsHistoryOptions, aY as MetricsSnapshot, aZ as MetricsSummary, a_ as MutationResult, a$ as NodeAdminApi, b0 as NodeLogEntry, b1 as NodeLogLevel, b2 as NodeLogStreamOptions, b3 as NodeLogsQuery, b4 as NodeLogsResponse, b5 as OpenWriteStreamOptions, b6 as PageCacheMetrics, b7 as PartitionFunction, b8 as PartitionGrant, b9 as PartitionGrantsListResponse, ba as PartitioningMetrics, bb as PerDatabaseLagEntry, bc as PerDatabaseMetrics, bd as PerDatabaseStatusEntry, be as QueryMetrics, bf as QueryResult, bg as QueryStats, bh as ReferenceInfo, bi as RelationshipEndpoint, bj as RelationshipInfo, bk as RenameColumnRequest, bl as RenameTableRequest, bm as ReplicationAdminApi, bn as ReplicationMetrics, bo as ResidencyConfig, bp as RetryPolicy, bq as RlsResolver, br as RlsResolverRule, bs as RlsResolverRuleInput, bt as RlsResolversListResponse, bu as SchemaChange, bv as SchemaDiffResult, bw as SchemaRelationshipsResponse, bx as SeedApplyResult, by as SeedTableApplyResult, bz as ServerAdminApi, bA as ServerAuthOptions, bB as ServerMemoryResponse, bC as ServerMetricsResponse, bD as ServiceInfo, bE as SimdMetrics, bF as SingleDatabaseMetricsResponse, bG as SortDirection, bH as StorageMetrics, bI as SubscribeOptions, bJ as Subscription, bK as SubscriptionChangeEvent, bL as SubscriptionEvent, bM as SubscriptionInfo, bN as SubscriptionSnapshotEvent, bO as TIME_BUCKET_FUNCTIONS, bP as TableCoverageEntry, bQ as TableNameFromSchema, bR as TablePolicy, bS as TableQuery, bT as TableSchema, bU as TableSchemaResponse, bV as TableSummary, bW as TableSummaryForErd, bX as TablesApi, bY as TimeBucketFunction, bZ as TimeSeriesMetrics, b_ as TransactionMetrics, b$ as TypeGenerationOptions, c0 as UpdateOptions, c1 as UpdateRlsResolverRequest, c2 as UpdateTableOptionsRequest, c3 as UpdateTablePolicyRequest, c4 as UserProfile, c5 as WhereGroupBuilder, c6 as WhereOperator, c7 as WriteStream, c8 as coerceColumnarValue, c9 as createAoudaClient } from './client-B9a2zoUU.cjs';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* @aouda/client error types.
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
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, S as SchemaLike, m as DefaultSchema, A as AoudaClient } from './client-
|
|
2
|
-
export { n as
|
|
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, S as SchemaLike, m as DefaultSchema, A as AoudaClient } from './client-B9a2zoUU.js';
|
|
2
|
+
export { n as AGGREGATE_FUNCTIONS, o as AOUDA_DATA_TYPES, p as AddColumnRequest, q as AdminApi, r as AdminBackupConfig, s as AdminBackupPatch, t as AdminConfigPatchRequest, u as AdminConfigResponse, v as AdminConfigSchemaResponse, w as AdminLoggingConfig, x as AdminLoggingPatch, y as AdminMemoryConfig, z as AdminMemoryPatch, E as AggregateFunctionName, G as AoudaClientOptions, I as AoudaDataType, K as AppAuthOptions, M as AuthClient, O as AuthResult, Q as AuthUserInfo, U as AuthorizationMode, V as BackupAdminApi, W as BackupMetrics, X as BackupSummary, Y as BatchMutationResult, Z as BatchOperationInput, _ as BloomFilterMetrics, $ as BranchInfo, a0 as BranchesApi, a1 as BulkLoadForceAbortRequest, a2 as BulkLoadForceAbortResponse, a3 as BulkLoadListResponse, a4 as BulkLoadProgress, a5 as BulkLoadReplicaProgress, a6 as BulkLoadReplicaProgressDto, a7 as BulkLoadStatusResponse, a8 as CircuitBreakerPolicy, a9 as ClusterAdminApi, aa as ClusterMemberEntry, ab as ClusterThisNodeEntry, ac as ColumnSchema, ad as ColumnSummaryForErd, ae as ColumnarResponse, af as ComponentHealthEntry, ag as ComputedColumnDef, ah as ConfigAdminApi, ai as CreateBranchRequest, aj as CreateColumnRequest, ak as CreateDatabaseOptions, al as CreatePartitionGrantRequest, am as CreateRlsResolverRequest, an as CreateTableRequest, ao as DatabaseCoverageEntry, ap as DatabaseInfo, aq as DatabaseMemoryMetrics, ar as DatabaseMemoryUsage, as as DatabaseMetricsDto, at as DatabaseOptionsInfo, au as DatabasesApi, av as DeleteOptions, aw as DiffSummary, ax as FILTER_OPERATORS, ay as FilterOperator, az as HealthAdminApi, aA as IndexInfo, aB as InsertResult, aC as IoMetrics, aD as LatencyPercentiles, aE as MaterializedQueriesApi, aF as MaterializedQueryDefinition, aG as MaterializedQueryExecuteOptions, aH as MaterializedQueryExecuteResult, aI as MaterializedQueryMetrics, aJ as MaterializedQueryRefreshOptions, aK as MaterializedQueryState, aL as MaterializedQueryStateNumber, aM as MaterializedQueryStatus, aN as MaterializedQueryType, aO as MaterializedQueryTypeNumber, aP as MemberInfo, aQ as MemoryMetrics, aR as MergeBranchOptions, aS as MergeConflict, aT as MergeExecutionResult, aU as MergeResult, aV as MetricsAdminApi, aW as MetricsHistory, aX as MetricsHistoryOptions, aY as MetricsSnapshot, aZ as MetricsSummary, a_ as MutationResult, a$ as NodeAdminApi, b0 as NodeLogEntry, b1 as NodeLogLevel, b2 as NodeLogStreamOptions, b3 as NodeLogsQuery, b4 as NodeLogsResponse, b5 as OpenWriteStreamOptions, b6 as PageCacheMetrics, b7 as PartitionFunction, b8 as PartitionGrant, b9 as PartitionGrantsListResponse, ba as PartitioningMetrics, bb as PerDatabaseLagEntry, bc as PerDatabaseMetrics, bd as PerDatabaseStatusEntry, be as QueryMetrics, bf as QueryResult, bg as QueryStats, bh as ReferenceInfo, bi as RelationshipEndpoint, bj as RelationshipInfo, bk as RenameColumnRequest, bl as RenameTableRequest, bm as ReplicationAdminApi, bn as ReplicationMetrics, bo as ResidencyConfig, bp as RetryPolicy, bq as RlsResolver, br as RlsResolverRule, bs as RlsResolverRuleInput, bt as RlsResolversListResponse, bu as SchemaChange, bv as SchemaDiffResult, bw as SchemaRelationshipsResponse, bx as SeedApplyResult, by as SeedTableApplyResult, bz as ServerAdminApi, bA as ServerAuthOptions, bB as ServerMemoryResponse, bC as ServerMetricsResponse, bD as ServiceInfo, bE as SimdMetrics, bF as SingleDatabaseMetricsResponse, bG as SortDirection, bH as StorageMetrics, bI as SubscribeOptions, bJ as Subscription, bK as SubscriptionChangeEvent, bL as SubscriptionEvent, bM as SubscriptionInfo, bN as SubscriptionSnapshotEvent, bO as TIME_BUCKET_FUNCTIONS, bP as TableCoverageEntry, bQ as TableNameFromSchema, bR as TablePolicy, bS as TableQuery, bT as TableSchema, bU as TableSchemaResponse, bV as TableSummary, bW as TableSummaryForErd, bX as TablesApi, bY as TimeBucketFunction, bZ as TimeSeriesMetrics, b_ as TransactionMetrics, b$ as TypeGenerationOptions, c0 as UpdateOptions, c1 as UpdateRlsResolverRequest, c2 as UpdateTableOptionsRequest, c3 as UpdateTablePolicyRequest, c4 as UserProfile, c5 as WhereGroupBuilder, c6 as WhereOperator, c7 as WriteStream, c8 as coerceColumnarValue, c9 as createAoudaClient } from './client-B9a2zoUU.js';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* @aouda/client error types.
|
package/dist/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// package.json
|
|
2
2
|
var package_default = {
|
|
3
3
|
name: "@aouda/client",
|
|
4
|
-
version: "0.1.
|
|
4
|
+
version: "0.1.3",
|
|
5
5
|
description: "Official TypeScript/JavaScript client library for Aouda",
|
|
6
6
|
type: "module",
|
|
7
7
|
main: "./dist/index.cjs",
|
|
@@ -3535,6 +3535,24 @@ var TablesApi = class {
|
|
|
3535
3535
|
`${prefix}/tables/${encodedTable}/columns/${encodedColumn}`
|
|
3536
3536
|
);
|
|
3537
3537
|
}
|
|
3538
|
+
/**
|
|
3539
|
+
* Updates table options (auth mode, partition-level security, culture, etc.).
|
|
3540
|
+
* PUT /api/databases/{db}/tables/{name}/options.
|
|
3541
|
+
* @param name - Table name.
|
|
3542
|
+
* @param body - Options to update. Omit a field to leave it unchanged; pass null to clear a nullable field.
|
|
3543
|
+
* @returns Updated table schema.
|
|
3544
|
+
* @throws AoudaNotFoundError if table does not exist; AoudaApiError for WRITE_NOT_ALLOWED, INVALID_REQUEST, etc.
|
|
3545
|
+
*/
|
|
3546
|
+
async updateTableOptions(name, body) {
|
|
3547
|
+
validateNonEmptyString(name, "Table name");
|
|
3548
|
+
const prefix = databasePath2(this.database);
|
|
3549
|
+
const encodedName = encodeURIComponent(name);
|
|
3550
|
+
const requestBody = { database: this.database, ...body };
|
|
3551
|
+
return this.transport.put(
|
|
3552
|
+
`${prefix}/tables/${encodedName}/options`,
|
|
3553
|
+
requestBody
|
|
3554
|
+
);
|
|
3555
|
+
}
|
|
3538
3556
|
/**
|
|
3539
3557
|
* Updates a table's storage policy (temperature).
|
|
3540
3558
|
* @param name - Table name.
|
|
@@ -4265,6 +4283,24 @@ var AdminApi = class {
|
|
|
4265
4283
|
};
|
|
4266
4284
|
|
|
4267
4285
|
// src/materialized.ts
|
|
4286
|
+
var FILTER_OPERATORS = ["eq", "ne", "gt", "gte", "lt", "lte"];
|
|
4287
|
+
var AGGREGATE_FUNCTIONS = [
|
|
4288
|
+
"count",
|
|
4289
|
+
"sum",
|
|
4290
|
+
"average",
|
|
4291
|
+
"min",
|
|
4292
|
+
"max",
|
|
4293
|
+
"first",
|
|
4294
|
+
"last"
|
|
4295
|
+
];
|
|
4296
|
+
var TIME_BUCKET_FUNCTIONS = [
|
|
4297
|
+
"truncateToMinute",
|
|
4298
|
+
"truncateToHour",
|
|
4299
|
+
"truncateToDay",
|
|
4300
|
+
"truncateToWeek",
|
|
4301
|
+
"truncateToMonth",
|
|
4302
|
+
"truncateToYear"
|
|
4303
|
+
];
|
|
4268
4304
|
var MaterializedQueryType = {
|
|
4269
4305
|
LatestPerKey: 1,
|
|
4270
4306
|
FirstPerKey: 2,
|
|
@@ -5629,6 +5665,7 @@ function createAoudaClusterMcpToolSet(client) {
|
|
|
5629
5665
|
// src/index.ts
|
|
5630
5666
|
var version = package_default.version;
|
|
5631
5667
|
export {
|
|
5668
|
+
AGGREGATE_FUNCTIONS,
|
|
5632
5669
|
AOUDA_DATA_TYPES,
|
|
5633
5670
|
AdminApi,
|
|
5634
5671
|
AoudaApiError,
|
|
@@ -5652,6 +5689,7 @@ export {
|
|
|
5652
5689
|
ClusterAdminApi,
|
|
5653
5690
|
ConfigAdminApi,
|
|
5654
5691
|
DatabasesApi,
|
|
5692
|
+
FILTER_OPERATORS,
|
|
5655
5693
|
HealthAdminApi,
|
|
5656
5694
|
MaterializedQueriesApi,
|
|
5657
5695
|
MaterializedQueryState,
|
|
@@ -5661,6 +5699,7 @@ export {
|
|
|
5661
5699
|
ReplicationAdminApi,
|
|
5662
5700
|
RetryPolicy,
|
|
5663
5701
|
ServerAdminApi,
|
|
5702
|
+
TIME_BUCKET_FUNCTIONS,
|
|
5664
5703
|
TableQuery,
|
|
5665
5704
|
TablesApi,
|
|
5666
5705
|
WhereGroupBuilder,
|