@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.
@@ -543,6 +543,8 @@ interface TableSchema {
543
543
  permissionDimension?: string;
544
544
  /** Resolver name for auth-db-rls mode. */
545
545
  rlsResolverName?: string;
546
+ /** IETF culture tag for locale-aware date/number parsing (e.g. "en-US", "en-GB"). Null = ISO defaults. */
547
+ culture?: string | null;
546
548
  }
547
549
  /**
548
550
  * Schema definition for a single column.
@@ -620,6 +622,8 @@ interface TableSchemaResponse {
620
622
  permissionDimension?: string;
621
623
  /** Resolver name for auth-db-rls mode. */
622
624
  rlsResolverName?: string;
625
+ /** IETF culture tag for locale-aware date/number parsing (e.g. "en-US", "en-GB"). Null = ISO defaults. */
626
+ culture?: string | null;
623
627
  }
624
628
  /**
625
629
  * Index information (placeholder for future index management).
@@ -875,6 +879,24 @@ interface CreateTableRequest {
875
879
  authMode?: AuthorizationMode;
876
880
  permissionDimension?: string;
877
881
  rlsResolverName?: string;
882
+ /** IETF culture tag for locale-aware date/number parsing (e.g. "en-US", "en-GB"). Null/omit = ISO defaults. */
883
+ culture?: string | null;
884
+ }
885
+ /**
886
+ * Request body for updating table options (PUT /api/databases/{db}/tables/{name}/options).
887
+ * Use null to clear a nullable field; omit a field entirely to leave it unchanged.
888
+ */
889
+ interface UpdateTableOptionsRequest {
890
+ /** Whether partition-level security is enabled. */
891
+ partitionLevelSecurity?: boolean;
892
+ /** Table authorization mode. */
893
+ authMode?: AuthorizationMode;
894
+ /** Permission dimension for auth-db-pls mode. Null to clear. */
895
+ permissionDimension?: string | null;
896
+ /** Resolver name for auth-db-rls mode. Null to clear. */
897
+ rlsResolverName?: string | null;
898
+ /** IETF culture tag. Null to clear. */
899
+ culture?: string | null;
878
900
  }
879
901
  /**
880
902
  * Request body for renaming a table (PATCH /api/databases/{db}/tables/{name}).
@@ -2920,6 +2942,15 @@ declare class TablesApi {
2920
2942
  * @throws AoudaNotFoundError if table or column does not exist; AoudaApiError for WRITE_NOT_ALLOWED, etc.
2921
2943
  */
2922
2944
  dropColumn(tableName: string, columnName: string): Promise<void>;
2945
+ /**
2946
+ * Updates table options (auth mode, partition-level security, culture, etc.).
2947
+ * PUT /api/databases/{db}/tables/{name}/options.
2948
+ * @param name - Table name.
2949
+ * @param body - Options to update. Omit a field to leave it unchanged; pass null to clear a nullable field.
2950
+ * @returns Updated table schema.
2951
+ * @throws AoudaNotFoundError if table does not exist; AoudaApiError for WRITE_NOT_ALLOWED, INVALID_REQUEST, etc.
2952
+ */
2953
+ updateTableOptions(name: string, body: UpdateTableOptionsRequest): Promise<TableSchema>;
2923
2954
  /**
2924
2955
  * Updates a table's storage policy (temperature).
2925
2956
  * @param name - Table name.
@@ -3179,6 +3210,30 @@ declare class BranchesApi {
3179
3210
  * Materialized query HTTP API (`/api/databases/{db}/materialized-queries`).
3180
3211
  */
3181
3212
 
3213
+ /**
3214
+ * Filter comparison operators used in Filter materialized query predicates.
3215
+ * These are the raw wire-protocol strings sent directly in the configJson.
3216
+ */
3217
+ declare const FILTER_OPERATORS: readonly ["eq", "ne", "gt", "gte", "lt", "lte"];
3218
+ /** Comparison operator for a Filter materialized query predicate condition. */
3219
+ type FilterOperator = (typeof FILTER_OPERATORS)[number];
3220
+ /**
3221
+ * Aggregate functions supported by Aggregate materialized queries.
3222
+ * `first` and `last` require an `orderByColumn` to determine row ordering within each group.
3223
+ */
3224
+ declare const AGGREGATE_FUNCTIONS: readonly ["count", "sum", "average", "min", "max", "first", "last"];
3225
+ /** Aggregate function name for an aggregate column in an Aggregate materialized query config. */
3226
+ type AggregateFunctionName = (typeof AGGREGATE_FUNCTIONS)[number];
3227
+ /**
3228
+ * Time-bucket truncation functions for group-by expressions in Aggregate materialized queries.
3229
+ * Applied to timestamp columns to roll rows up into fixed time intervals.
3230
+ *
3231
+ * Note: casing is camelCase per the wire protocol for aggregate config — distinct from
3232
+ * `PartitionFunction` (PascalCase) used for table-level column partitioning.
3233
+ */
3234
+ declare const TIME_BUCKET_FUNCTIONS: readonly ["truncateToMinute", "truncateToHour", "truncateToDay", "truncateToWeek", "truncateToMonth", "truncateToYear"];
3235
+ /** Time-bucket truncation function for a group-by expression in an Aggregate materialized query. */
3236
+ type TimeBucketFunction = (typeof TIME_BUCKET_FUNCTIONS)[number];
3182
3237
  /** Matches server `MaterializedQueryType` enum (numeric). */
3183
3238
  declare const MaterializedQueryType: {
3184
3239
  readonly LatestPerKey: 1;
@@ -3498,4 +3553,4 @@ declare class AoudaClient<S extends SchemaLike = DefaultSchema> {
3498
3553
  */
3499
3554
  declare function createAoudaClient<S extends SchemaLike = DefaultSchema>(options: AoudaClientOptions): AoudaClient<S>;
3500
3555
 
3501
- export { type BulkLoadForceAbortRequest as $, AoudaClient as A, type BulkLoadOptions as B, type CoverageResponse as C, type DetailedHealthResponse as D, type AoudaDataType as E, type FailoverClusterResponse as F, type AppAuthOptions as G, type HealthStatus as H, AuthClient as I, type JoinClusterRequest as J, type AuthResult as K, type ListBackupsResponse as L, type AuthUserInfo as M, type NodeInfoResponse as N, type AuthorizationMode as O, type PromoteClusterResponse as P, BackupAdminApi as Q, type ReplicationStatusResponse as R, type SchemaLike as S, type Transport as T, type BackupMetrics as U, type BackupSummary as V, type BatchMutationResult as W, type BatchOperationInput as X, type BloomFilterMetrics as Y, type BranchInfo as Z, BranchesApi as _, type BulkLoadJobHandle as a, type NodeLogsQuery as a$, type BulkLoadForceAbortResponse as a0, type BulkLoadListResponse as a1, type BulkLoadProgress as a2, type BulkLoadReplicaProgress as a3, type BulkLoadReplicaProgressDto as a4, type BulkLoadStatusResponse as a5, CircuitBreakerPolicy as a6, ClusterAdminApi as a7, type ClusterMemberEntry as a8, type ClusterThisNodeEntry as a9, MaterializedQueriesApi as aA, type MaterializedQueryDefinition as aB, type MaterializedQueryExecuteOptions as aC, type MaterializedQueryExecuteResult as aD, type MaterializedQueryMetrics as aE, type MaterializedQueryRefreshOptions as aF, MaterializedQueryState as aG, type MaterializedQueryStateNumber as aH, type MaterializedQueryStatus as aI, MaterializedQueryType as aJ, type MaterializedQueryTypeNumber as aK, type MemberInfo as aL, type MemoryMetrics as aM, type MergeBranchOptions as aN, type MergeConflict as aO, type MergeExecutionResult as aP, type MergeResult as aQ, MetricsAdminApi as aR, type MetricsHistory as aS, type MetricsHistoryOptions as aT, type MetricsSnapshot as aU, type MetricsSummary as aV, type MutationResult as aW, NodeAdminApi as aX, type NodeLogEntry as aY, type NodeLogLevel as aZ, type NodeLogStreamOptions as a_, type ColumnSchema as aa, type ColumnSummaryForErd as ab, type ColumnarResponse as ac, type ComponentHealthEntry as ad, type ComputedColumnDef as ae, ConfigAdminApi as af, type CreateBranchRequest as ag, type CreateColumnRequest as ah, type CreateDatabaseOptions as ai, type CreatePartitionGrantRequest as aj, type CreateRlsResolverRequest as ak, type CreateTableRequest as al, type DatabaseCoverageEntry as am, type DatabaseInfo as an, type DatabaseMemoryMetrics as ao, type DatabaseMemoryUsage as ap, type DatabaseMetricsDto as aq, type DatabaseOptionsInfo as ar, DatabasesApi as as, type DeleteOptions as at, type DiffSummary as au, HealthAdminApi as av, type IndexInfo as aw, type InsertResult as ax, type IoMetrics as ay, type LatencyPercentiles as az, type TopologyResponse as b, type WriteStream as b$, type NodeLogsResponse as b0, type OpenWriteStreamOptions as b1, type PageCacheMetrics as b2, type PartitionGrant as b3, type PartitionGrantsListResponse as b4, type PartitioningMetrics as b5, type PerDatabaseLagEntry as b6, type PerDatabaseMetrics as b7, type PerDatabaseStatusEntry as b8, type QueryMetrics as b9, type SingleDatabaseMetricsResponse as bA, type SortDirection as bB, type StorageMetrics as bC, type SubscribeOptions as bD, type Subscription as bE, type SubscriptionChangeEvent as bF, type SubscriptionEvent as bG, type SubscriptionInfo as bH, type SubscriptionSnapshotEvent as bI, type TableCoverageEntry as bJ, type TableNameFromSchema as bK, type TablePolicy as bL, TableQuery as bM, type TableSchema as bN, type TableSchemaResponse as bO, type TableSummary as bP, type TableSummaryForErd as bQ, TablesApi as bR, type TimeSeriesMetrics as bS, type TransactionMetrics as bT, type TypeGenerationOptions as bU, type UpdateOptions as bV, type UpdateRlsResolverRequest as bW, type UpdateTablePolicyRequest as bX, type UserProfile as bY, WhereGroupBuilder as bZ, type WhereOperator as b_, type QueryResult as ba, type QueryStats as bb, type ReferenceInfo as bc, type RelationshipEndpoint as bd, type RelationshipInfo as be, type RenameColumnRequest as bf, type RenameTableRequest as bg, ReplicationAdminApi as bh, type ReplicationMetrics as bi, type ResidencyConfig as bj, RetryPolicy as bk, type RlsResolver as bl, type RlsResolverRule as bm, type RlsResolverRuleInput as bn, type RlsResolversListResponse as bo, type SchemaChange as bp, type SchemaDiffResult as bq, type SchemaRelationshipsResponse as br, type SeedApplyResult as bs, type SeedTableApplyResult as bt, ServerAdminApi as bu, type ServerAuthOptions as bv, type ServerMemoryResponse as bw, type ServerMetricsResponse as bx, type ServiceInfo as by, type SimdMetrics as bz, type ReadinessResponse as c, coerceColumnarValue as c0, createAoudaClient as c1, type TriggerBackupRequest as d, type TriggerBackupResponse as e, type RestoreBackupResponse as f, type BackupSchedule as g, type JoinClusterResponse as h, type LeaveClusterResponse as i, type DrainClusterResponse as j, type ClusterConfigResponse as k, type ClusterConfigPatchRequest as l, type DefaultSchema as m, AOUDA_DATA_TYPES as n, type AddColumnRequest as o, AdminApi as p, type AdminBackupConfig as q, type AdminBackupPatch as r, type AdminConfigPatchRequest as s, type AdminConfigResponse as t, type AdminConfigSchemaResponse as u, type AdminLoggingConfig as v, type AdminLoggingPatch as w, type AdminMemoryConfig as x, type AdminMemoryPatch as y, type AoudaClientOptions as z };
3556
+ export { type BranchInfo as $, AoudaClient as A, type BulkLoadOptions as B, type CoverageResponse as C, type DetailedHealthResponse as D, type AggregateFunctionName as E, type FailoverClusterResponse as F, type AoudaClientOptions as G, type HealthStatus as H, type AoudaDataType as I, type JoinClusterRequest as J, type AppAuthOptions as K, type ListBackupsResponse as L, AuthClient as M, type NodeInfoResponse as N, type AuthResult as O, type PromoteClusterResponse as P, type AuthUserInfo as Q, type ReplicationStatusResponse as R, type SchemaLike as S, type Transport as T, type AuthorizationMode as U, BackupAdminApi as V, type BackupMetrics as W, type BackupSummary as X, type BatchMutationResult as Y, type BatchOperationInput as Z, type BloomFilterMetrics as _, type BulkLoadJobHandle as a, NodeAdminApi as a$, BranchesApi as a0, type BulkLoadForceAbortRequest as a1, type BulkLoadForceAbortResponse as a2, type BulkLoadListResponse as a3, type BulkLoadProgress as a4, type BulkLoadReplicaProgress as a5, type BulkLoadReplicaProgressDto as a6, type BulkLoadStatusResponse as a7, CircuitBreakerPolicy as a8, ClusterAdminApi as a9, type IndexInfo as aA, type InsertResult as aB, type IoMetrics as aC, type LatencyPercentiles as aD, MaterializedQueriesApi as aE, type MaterializedQueryDefinition as aF, type MaterializedQueryExecuteOptions as aG, type MaterializedQueryExecuteResult as aH, type MaterializedQueryMetrics as aI, type MaterializedQueryRefreshOptions as aJ, MaterializedQueryState as aK, type MaterializedQueryStateNumber as aL, type MaterializedQueryStatus as aM, MaterializedQueryType as aN, type MaterializedQueryTypeNumber as aO, type MemberInfo as aP, type MemoryMetrics as aQ, type MergeBranchOptions as aR, type MergeConflict as aS, type MergeExecutionResult as aT, type MergeResult as aU, MetricsAdminApi as aV, type MetricsHistory as aW, type MetricsHistoryOptions as aX, type MetricsSnapshot as aY, type MetricsSummary as aZ, type MutationResult as a_, type ClusterMemberEntry as aa, type ClusterThisNodeEntry as ab, type ColumnSchema as ac, type ColumnSummaryForErd as ad, type ColumnarResponse as ae, type ComponentHealthEntry as af, type ComputedColumnDef as ag, ConfigAdminApi as ah, type CreateBranchRequest as ai, type CreateColumnRequest as aj, type CreateDatabaseOptions as ak, type CreatePartitionGrantRequest as al, type CreateRlsResolverRequest as am, type CreateTableRequest as an, type DatabaseCoverageEntry as ao, type DatabaseInfo as ap, type DatabaseMemoryMetrics as aq, type DatabaseMemoryUsage as ar, type DatabaseMetricsDto as as, type DatabaseOptionsInfo as at, DatabasesApi as au, type DeleteOptions as av, type DiffSummary as aw, FILTER_OPERATORS as ax, type FilterOperator as ay, HealthAdminApi as az, type TopologyResponse as b, type TypeGenerationOptions as b$, type NodeLogEntry as b0, type NodeLogLevel as b1, type NodeLogStreamOptions as b2, type NodeLogsQuery as b3, type NodeLogsResponse as b4, type OpenWriteStreamOptions as b5, type PageCacheMetrics as b6, type PartitionFunction as b7, type PartitionGrant as b8, type PartitionGrantsListResponse as b9, type ServerAuthOptions as bA, type ServerMemoryResponse as bB, type ServerMetricsResponse as bC, type ServiceInfo as bD, type SimdMetrics as bE, type SingleDatabaseMetricsResponse as bF, type SortDirection as bG, type StorageMetrics as bH, type SubscribeOptions as bI, type Subscription as bJ, type SubscriptionChangeEvent as bK, type SubscriptionEvent as bL, type SubscriptionInfo as bM, type SubscriptionSnapshotEvent as bN, TIME_BUCKET_FUNCTIONS as bO, type TableCoverageEntry as bP, type TableNameFromSchema as bQ, type TablePolicy as bR, TableQuery as bS, type TableSchema as bT, type TableSchemaResponse as bU, type TableSummary as bV, type TableSummaryForErd as bW, TablesApi as bX, type TimeBucketFunction as bY, type TimeSeriesMetrics as bZ, type TransactionMetrics as b_, type PartitioningMetrics as ba, type PerDatabaseLagEntry as bb, type PerDatabaseMetrics as bc, type PerDatabaseStatusEntry as bd, type QueryMetrics as be, type QueryResult as bf, type QueryStats as bg, type ReferenceInfo as bh, type RelationshipEndpoint as bi, type RelationshipInfo as bj, type RenameColumnRequest as bk, type RenameTableRequest as bl, ReplicationAdminApi as bm, type ReplicationMetrics as bn, type ResidencyConfig as bo, RetryPolicy as bp, type RlsResolver as bq, type RlsResolverRule as br, type RlsResolverRuleInput as bs, type RlsResolversListResponse as bt, type SchemaChange as bu, type SchemaDiffResult as bv, type SchemaRelationshipsResponse as bw, type SeedApplyResult as bx, type SeedTableApplyResult as by, ServerAdminApi as bz, type ReadinessResponse as c, type UpdateOptions as c0, type UpdateRlsResolverRequest as c1, type UpdateTableOptionsRequest as c2, type UpdateTablePolicyRequest as c3, type UserProfile as c4, WhereGroupBuilder as c5, type WhereOperator as c6, type WriteStream as c7, coerceColumnarValue as c8, createAoudaClient as c9, type TriggerBackupRequest as d, type TriggerBackupResponse as e, type RestoreBackupResponse as f, type BackupSchedule as g, type JoinClusterResponse as h, type LeaveClusterResponse as i, type DrainClusterResponse as j, type ClusterConfigResponse as k, type ClusterConfigPatchRequest as l, type DefaultSchema as m, AGGREGATE_FUNCTIONS as n, AOUDA_DATA_TYPES as o, type AddColumnRequest as p, AdminApi as q, type AdminBackupConfig as r, type AdminBackupPatch as s, type AdminConfigPatchRequest as t, type AdminConfigResponse as u, type AdminConfigSchemaResponse as v, type AdminLoggingConfig as w, type AdminLoggingPatch as x, type AdminMemoryConfig as y, type AdminMemoryPatch as z };
@@ -543,6 +543,8 @@ interface TableSchema {
543
543
  permissionDimension?: string;
544
544
  /** Resolver name for auth-db-rls mode. */
545
545
  rlsResolverName?: string;
546
+ /** IETF culture tag for locale-aware date/number parsing (e.g. "en-US", "en-GB"). Null = ISO defaults. */
547
+ culture?: string | null;
546
548
  }
547
549
  /**
548
550
  * Schema definition for a single column.
@@ -620,6 +622,8 @@ interface TableSchemaResponse {
620
622
  permissionDimension?: string;
621
623
  /** Resolver name for auth-db-rls mode. */
622
624
  rlsResolverName?: string;
625
+ /** IETF culture tag for locale-aware date/number parsing (e.g. "en-US", "en-GB"). Null = ISO defaults. */
626
+ culture?: string | null;
623
627
  }
624
628
  /**
625
629
  * Index information (placeholder for future index management).
@@ -875,6 +879,24 @@ interface CreateTableRequest {
875
879
  authMode?: AuthorizationMode;
876
880
  permissionDimension?: string;
877
881
  rlsResolverName?: string;
882
+ /** IETF culture tag for locale-aware date/number parsing (e.g. "en-US", "en-GB"). Null/omit = ISO defaults. */
883
+ culture?: string | null;
884
+ }
885
+ /**
886
+ * Request body for updating table options (PUT /api/databases/{db}/tables/{name}/options).
887
+ * Use null to clear a nullable field; omit a field entirely to leave it unchanged.
888
+ */
889
+ interface UpdateTableOptionsRequest {
890
+ /** Whether partition-level security is enabled. */
891
+ partitionLevelSecurity?: boolean;
892
+ /** Table authorization mode. */
893
+ authMode?: AuthorizationMode;
894
+ /** Permission dimension for auth-db-pls mode. Null to clear. */
895
+ permissionDimension?: string | null;
896
+ /** Resolver name for auth-db-rls mode. Null to clear. */
897
+ rlsResolverName?: string | null;
898
+ /** IETF culture tag. Null to clear. */
899
+ culture?: string | null;
878
900
  }
879
901
  /**
880
902
  * Request body for renaming a table (PATCH /api/databases/{db}/tables/{name}).
@@ -2920,6 +2942,15 @@ declare class TablesApi {
2920
2942
  * @throws AoudaNotFoundError if table or column does not exist; AoudaApiError for WRITE_NOT_ALLOWED, etc.
2921
2943
  */
2922
2944
  dropColumn(tableName: string, columnName: string): Promise<void>;
2945
+ /**
2946
+ * Updates table options (auth mode, partition-level security, culture, etc.).
2947
+ * PUT /api/databases/{db}/tables/{name}/options.
2948
+ * @param name - Table name.
2949
+ * @param body - Options to update. Omit a field to leave it unchanged; pass null to clear a nullable field.
2950
+ * @returns Updated table schema.
2951
+ * @throws AoudaNotFoundError if table does not exist; AoudaApiError for WRITE_NOT_ALLOWED, INVALID_REQUEST, etc.
2952
+ */
2953
+ updateTableOptions(name: string, body: UpdateTableOptionsRequest): Promise<TableSchema>;
2923
2954
  /**
2924
2955
  * Updates a table's storage policy (temperature).
2925
2956
  * @param name - Table name.
@@ -3179,6 +3210,30 @@ declare class BranchesApi {
3179
3210
  * Materialized query HTTP API (`/api/databases/{db}/materialized-queries`).
3180
3211
  */
3181
3212
 
3213
+ /**
3214
+ * Filter comparison operators used in Filter materialized query predicates.
3215
+ * These are the raw wire-protocol strings sent directly in the configJson.
3216
+ */
3217
+ declare const FILTER_OPERATORS: readonly ["eq", "ne", "gt", "gte", "lt", "lte"];
3218
+ /** Comparison operator for a Filter materialized query predicate condition. */
3219
+ type FilterOperator = (typeof FILTER_OPERATORS)[number];
3220
+ /**
3221
+ * Aggregate functions supported by Aggregate materialized queries.
3222
+ * `first` and `last` require an `orderByColumn` to determine row ordering within each group.
3223
+ */
3224
+ declare const AGGREGATE_FUNCTIONS: readonly ["count", "sum", "average", "min", "max", "first", "last"];
3225
+ /** Aggregate function name for an aggregate column in an Aggregate materialized query config. */
3226
+ type AggregateFunctionName = (typeof AGGREGATE_FUNCTIONS)[number];
3227
+ /**
3228
+ * Time-bucket truncation functions for group-by expressions in Aggregate materialized queries.
3229
+ * Applied to timestamp columns to roll rows up into fixed time intervals.
3230
+ *
3231
+ * Note: casing is camelCase per the wire protocol for aggregate config — distinct from
3232
+ * `PartitionFunction` (PascalCase) used for table-level column partitioning.
3233
+ */
3234
+ declare const TIME_BUCKET_FUNCTIONS: readonly ["truncateToMinute", "truncateToHour", "truncateToDay", "truncateToWeek", "truncateToMonth", "truncateToYear"];
3235
+ /** Time-bucket truncation function for a group-by expression in an Aggregate materialized query. */
3236
+ type TimeBucketFunction = (typeof TIME_BUCKET_FUNCTIONS)[number];
3182
3237
  /** Matches server `MaterializedQueryType` enum (numeric). */
3183
3238
  declare const MaterializedQueryType: {
3184
3239
  readonly LatestPerKey: 1;
@@ -3498,4 +3553,4 @@ declare class AoudaClient<S extends SchemaLike = DefaultSchema> {
3498
3553
  */
3499
3554
  declare function createAoudaClient<S extends SchemaLike = DefaultSchema>(options: AoudaClientOptions): AoudaClient<S>;
3500
3555
 
3501
- export { type BulkLoadForceAbortRequest as $, AoudaClient as A, type BulkLoadOptions as B, type CoverageResponse as C, type DetailedHealthResponse as D, type AoudaDataType as E, type FailoverClusterResponse as F, type AppAuthOptions as G, type HealthStatus as H, AuthClient as I, type JoinClusterRequest as J, type AuthResult as K, type ListBackupsResponse as L, type AuthUserInfo as M, type NodeInfoResponse as N, type AuthorizationMode as O, type PromoteClusterResponse as P, BackupAdminApi as Q, type ReplicationStatusResponse as R, type SchemaLike as S, type Transport as T, type BackupMetrics as U, type BackupSummary as V, type BatchMutationResult as W, type BatchOperationInput as X, type BloomFilterMetrics as Y, type BranchInfo as Z, BranchesApi as _, type BulkLoadJobHandle as a, type NodeLogsQuery as a$, type BulkLoadForceAbortResponse as a0, type BulkLoadListResponse as a1, type BulkLoadProgress as a2, type BulkLoadReplicaProgress as a3, type BulkLoadReplicaProgressDto as a4, type BulkLoadStatusResponse as a5, CircuitBreakerPolicy as a6, ClusterAdminApi as a7, type ClusterMemberEntry as a8, type ClusterThisNodeEntry as a9, MaterializedQueriesApi as aA, type MaterializedQueryDefinition as aB, type MaterializedQueryExecuteOptions as aC, type MaterializedQueryExecuteResult as aD, type MaterializedQueryMetrics as aE, type MaterializedQueryRefreshOptions as aF, MaterializedQueryState as aG, type MaterializedQueryStateNumber as aH, type MaterializedQueryStatus as aI, MaterializedQueryType as aJ, type MaterializedQueryTypeNumber as aK, type MemberInfo as aL, type MemoryMetrics as aM, type MergeBranchOptions as aN, type MergeConflict as aO, type MergeExecutionResult as aP, type MergeResult as aQ, MetricsAdminApi as aR, type MetricsHistory as aS, type MetricsHistoryOptions as aT, type MetricsSnapshot as aU, type MetricsSummary as aV, type MutationResult as aW, NodeAdminApi as aX, type NodeLogEntry as aY, type NodeLogLevel as aZ, type NodeLogStreamOptions as a_, type ColumnSchema as aa, type ColumnSummaryForErd as ab, type ColumnarResponse as ac, type ComponentHealthEntry as ad, type ComputedColumnDef as ae, ConfigAdminApi as af, type CreateBranchRequest as ag, type CreateColumnRequest as ah, type CreateDatabaseOptions as ai, type CreatePartitionGrantRequest as aj, type CreateRlsResolverRequest as ak, type CreateTableRequest as al, type DatabaseCoverageEntry as am, type DatabaseInfo as an, type DatabaseMemoryMetrics as ao, type DatabaseMemoryUsage as ap, type DatabaseMetricsDto as aq, type DatabaseOptionsInfo as ar, DatabasesApi as as, type DeleteOptions as at, type DiffSummary as au, HealthAdminApi as av, type IndexInfo as aw, type InsertResult as ax, type IoMetrics as ay, type LatencyPercentiles as az, type TopologyResponse as b, type WriteStream as b$, type NodeLogsResponse as b0, type OpenWriteStreamOptions as b1, type PageCacheMetrics as b2, type PartitionGrant as b3, type PartitionGrantsListResponse as b4, type PartitioningMetrics as b5, type PerDatabaseLagEntry as b6, type PerDatabaseMetrics as b7, type PerDatabaseStatusEntry as b8, type QueryMetrics as b9, type SingleDatabaseMetricsResponse as bA, type SortDirection as bB, type StorageMetrics as bC, type SubscribeOptions as bD, type Subscription as bE, type SubscriptionChangeEvent as bF, type SubscriptionEvent as bG, type SubscriptionInfo as bH, type SubscriptionSnapshotEvent as bI, type TableCoverageEntry as bJ, type TableNameFromSchema as bK, type TablePolicy as bL, TableQuery as bM, type TableSchema as bN, type TableSchemaResponse as bO, type TableSummary as bP, type TableSummaryForErd as bQ, TablesApi as bR, type TimeSeriesMetrics as bS, type TransactionMetrics as bT, type TypeGenerationOptions as bU, type UpdateOptions as bV, type UpdateRlsResolverRequest as bW, type UpdateTablePolicyRequest as bX, type UserProfile as bY, WhereGroupBuilder as bZ, type WhereOperator as b_, type QueryResult as ba, type QueryStats as bb, type ReferenceInfo as bc, type RelationshipEndpoint as bd, type RelationshipInfo as be, type RenameColumnRequest as bf, type RenameTableRequest as bg, ReplicationAdminApi as bh, type ReplicationMetrics as bi, type ResidencyConfig as bj, RetryPolicy as bk, type RlsResolver as bl, type RlsResolverRule as bm, type RlsResolverRuleInput as bn, type RlsResolversListResponse as bo, type SchemaChange as bp, type SchemaDiffResult as bq, type SchemaRelationshipsResponse as br, type SeedApplyResult as bs, type SeedTableApplyResult as bt, ServerAdminApi as bu, type ServerAuthOptions as bv, type ServerMemoryResponse as bw, type ServerMetricsResponse as bx, type ServiceInfo as by, type SimdMetrics as bz, type ReadinessResponse as c, coerceColumnarValue as c0, createAoudaClient as c1, type TriggerBackupRequest as d, type TriggerBackupResponse as e, type RestoreBackupResponse as f, type BackupSchedule as g, type JoinClusterResponse as h, type LeaveClusterResponse as i, type DrainClusterResponse as j, type ClusterConfigResponse as k, type ClusterConfigPatchRequest as l, type DefaultSchema as m, AOUDA_DATA_TYPES as n, type AddColumnRequest as o, AdminApi as p, type AdminBackupConfig as q, type AdminBackupPatch as r, type AdminConfigPatchRequest as s, type AdminConfigResponse as t, type AdminConfigSchemaResponse as u, type AdminLoggingConfig as v, type AdminLoggingPatch as w, type AdminMemoryConfig as x, type AdminMemoryPatch as y, type AoudaClientOptions as z };
3556
+ export { type BranchInfo as $, AoudaClient as A, type BulkLoadOptions as B, type CoverageResponse as C, type DetailedHealthResponse as D, type AggregateFunctionName as E, type FailoverClusterResponse as F, type AoudaClientOptions as G, type HealthStatus as H, type AoudaDataType as I, type JoinClusterRequest as J, type AppAuthOptions as K, type ListBackupsResponse as L, AuthClient as M, type NodeInfoResponse as N, type AuthResult as O, type PromoteClusterResponse as P, type AuthUserInfo as Q, type ReplicationStatusResponse as R, type SchemaLike as S, type Transport as T, type AuthorizationMode as U, BackupAdminApi as V, type BackupMetrics as W, type BackupSummary as X, type BatchMutationResult as Y, type BatchOperationInput as Z, type BloomFilterMetrics as _, type BulkLoadJobHandle as a, NodeAdminApi as a$, BranchesApi as a0, type BulkLoadForceAbortRequest as a1, type BulkLoadForceAbortResponse as a2, type BulkLoadListResponse as a3, type BulkLoadProgress as a4, type BulkLoadReplicaProgress as a5, type BulkLoadReplicaProgressDto as a6, type BulkLoadStatusResponse as a7, CircuitBreakerPolicy as a8, ClusterAdminApi as a9, type IndexInfo as aA, type InsertResult as aB, type IoMetrics as aC, type LatencyPercentiles as aD, MaterializedQueriesApi as aE, type MaterializedQueryDefinition as aF, type MaterializedQueryExecuteOptions as aG, type MaterializedQueryExecuteResult as aH, type MaterializedQueryMetrics as aI, type MaterializedQueryRefreshOptions as aJ, MaterializedQueryState as aK, type MaterializedQueryStateNumber as aL, type MaterializedQueryStatus as aM, MaterializedQueryType as aN, type MaterializedQueryTypeNumber as aO, type MemberInfo as aP, type MemoryMetrics as aQ, type MergeBranchOptions as aR, type MergeConflict as aS, type MergeExecutionResult as aT, type MergeResult as aU, MetricsAdminApi as aV, type MetricsHistory as aW, type MetricsHistoryOptions as aX, type MetricsSnapshot as aY, type MetricsSummary as aZ, type MutationResult as a_, type ClusterMemberEntry as aa, type ClusterThisNodeEntry as ab, type ColumnSchema as ac, type ColumnSummaryForErd as ad, type ColumnarResponse as ae, type ComponentHealthEntry as af, type ComputedColumnDef as ag, ConfigAdminApi as ah, type CreateBranchRequest as ai, type CreateColumnRequest as aj, type CreateDatabaseOptions as ak, type CreatePartitionGrantRequest as al, type CreateRlsResolverRequest as am, type CreateTableRequest as an, type DatabaseCoverageEntry as ao, type DatabaseInfo as ap, type DatabaseMemoryMetrics as aq, type DatabaseMemoryUsage as ar, type DatabaseMetricsDto as as, type DatabaseOptionsInfo as at, DatabasesApi as au, type DeleteOptions as av, type DiffSummary as aw, FILTER_OPERATORS as ax, type FilterOperator as ay, HealthAdminApi as az, type TopologyResponse as b, type TypeGenerationOptions as b$, type NodeLogEntry as b0, type NodeLogLevel as b1, type NodeLogStreamOptions as b2, type NodeLogsQuery as b3, type NodeLogsResponse as b4, type OpenWriteStreamOptions as b5, type PageCacheMetrics as b6, type PartitionFunction as b7, type PartitionGrant as b8, type PartitionGrantsListResponse as b9, type ServerAuthOptions as bA, type ServerMemoryResponse as bB, type ServerMetricsResponse as bC, type ServiceInfo as bD, type SimdMetrics as bE, type SingleDatabaseMetricsResponse as bF, type SortDirection as bG, type StorageMetrics as bH, type SubscribeOptions as bI, type Subscription as bJ, type SubscriptionChangeEvent as bK, type SubscriptionEvent as bL, type SubscriptionInfo as bM, type SubscriptionSnapshotEvent as bN, TIME_BUCKET_FUNCTIONS as bO, type TableCoverageEntry as bP, type TableNameFromSchema as bQ, type TablePolicy as bR, TableQuery as bS, type TableSchema as bT, type TableSchemaResponse as bU, type TableSummary as bV, type TableSummaryForErd as bW, TablesApi as bX, type TimeBucketFunction as bY, type TimeSeriesMetrics as bZ, type TransactionMetrics as b_, type PartitioningMetrics as ba, type PerDatabaseLagEntry as bb, type PerDatabaseMetrics as bc, type PerDatabaseStatusEntry as bd, type QueryMetrics as be, type QueryResult as bf, type QueryStats as bg, type ReferenceInfo as bh, type RelationshipEndpoint as bi, type RelationshipInfo as bj, type RenameColumnRequest as bk, type RenameTableRequest as bl, ReplicationAdminApi as bm, type ReplicationMetrics as bn, type ResidencyConfig as bo, RetryPolicy as bp, type RlsResolver as bq, type RlsResolverRule as br, type RlsResolverRuleInput as bs, type RlsResolversListResponse as bt, type SchemaChange as bu, type SchemaDiffResult as bv, type SchemaRelationshipsResponse as bw, type SeedApplyResult as bx, type SeedTableApplyResult as by, ServerAdminApi as bz, type ReadinessResponse as c, type UpdateOptions as c0, type UpdateRlsResolverRequest as c1, type UpdateTableOptionsRequest as c2, type UpdateTablePolicyRequest as c3, type UserProfile as c4, WhereGroupBuilder as c5, type WhereOperator as c6, type WriteStream as c7, coerceColumnarValue as c8, createAoudaClient as c9, type TriggerBackupRequest as d, type TriggerBackupResponse as e, type RestoreBackupResponse as f, type BackupSchedule as g, type JoinClusterResponse as h, type LeaveClusterResponse as i, type DrainClusterResponse as j, type ClusterConfigResponse as k, type ClusterConfigPatchRequest as l, type DefaultSchema as m, AGGREGATE_FUNCTIONS as n, AOUDA_DATA_TYPES as o, type AddColumnRequest as p, AdminApi as q, type AdminBackupConfig as r, type AdminBackupPatch as s, type AdminConfigPatchRequest as t, type AdminConfigResponse as u, type AdminConfigSchemaResponse as v, type AdminLoggingConfig as w, type AdminLoggingPatch as x, type AdminMemoryConfig as y, type AdminMemoryPatch as z };
package/dist/index.cjs CHANGED
@@ -30,6 +30,7 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
30
30
  // src/index.ts
31
31
  var index_exports = {};
32
32
  __export(index_exports, {
33
+ AGGREGATE_FUNCTIONS: () => AGGREGATE_FUNCTIONS,
33
34
  AOUDA_DATA_TYPES: () => AOUDA_DATA_TYPES,
34
35
  AdminApi: () => AdminApi,
35
36
  AoudaApiError: () => AoudaApiError,
@@ -53,6 +54,7 @@ __export(index_exports, {
53
54
  ClusterAdminApi: () => ClusterAdminApi,
54
55
  ConfigAdminApi: () => ConfigAdminApi,
55
56
  DatabasesApi: () => DatabasesApi,
57
+ FILTER_OPERATORS: () => FILTER_OPERATORS,
56
58
  HealthAdminApi: () => HealthAdminApi,
57
59
  MaterializedQueriesApi: () => MaterializedQueriesApi,
58
60
  MaterializedQueryState: () => MaterializedQueryState,
@@ -62,6 +64,7 @@ __export(index_exports, {
62
64
  ReplicationAdminApi: () => ReplicationAdminApi,
63
65
  RetryPolicy: () => RetryPolicy,
64
66
  ServerAdminApi: () => ServerAdminApi,
67
+ TIME_BUCKET_FUNCTIONS: () => TIME_BUCKET_FUNCTIONS,
65
68
  TableQuery: () => TableQuery,
66
69
  TablesApi: () => TablesApi,
67
70
  WhereGroupBuilder: () => WhereGroupBuilder,
@@ -79,7 +82,7 @@ module.exports = __toCommonJS(index_exports);
79
82
  // package.json
80
83
  var package_default = {
81
84
  name: "@aouda/client",
82
- version: "0.1.0",
85
+ version: "0.1.3",
83
86
  description: "Official TypeScript/JavaScript client library for Aouda",
84
87
  type: "module",
85
88
  main: "./dist/index.cjs",
@@ -3613,6 +3616,24 @@ var TablesApi = class {
3613
3616
  `${prefix}/tables/${encodedTable}/columns/${encodedColumn}`
3614
3617
  );
3615
3618
  }
3619
+ /**
3620
+ * Updates table options (auth mode, partition-level security, culture, etc.).
3621
+ * PUT /api/databases/{db}/tables/{name}/options.
3622
+ * @param name - Table name.
3623
+ * @param body - Options to update. Omit a field to leave it unchanged; pass null to clear a nullable field.
3624
+ * @returns Updated table schema.
3625
+ * @throws AoudaNotFoundError if table does not exist; AoudaApiError for WRITE_NOT_ALLOWED, INVALID_REQUEST, etc.
3626
+ */
3627
+ async updateTableOptions(name, body) {
3628
+ validateNonEmptyString(name, "Table name");
3629
+ const prefix = databasePath2(this.database);
3630
+ const encodedName = encodeURIComponent(name);
3631
+ const requestBody = { database: this.database, ...body };
3632
+ return this.transport.put(
3633
+ `${prefix}/tables/${encodedName}/options`,
3634
+ requestBody
3635
+ );
3636
+ }
3616
3637
  /**
3617
3638
  * Updates a table's storage policy (temperature).
3618
3639
  * @param name - Table name.
@@ -4343,6 +4364,24 @@ var AdminApi = class {
4343
4364
  };
4344
4365
 
4345
4366
  // src/materialized.ts
4367
+ var FILTER_OPERATORS = ["eq", "ne", "gt", "gte", "lt", "lte"];
4368
+ var AGGREGATE_FUNCTIONS = [
4369
+ "count",
4370
+ "sum",
4371
+ "average",
4372
+ "min",
4373
+ "max",
4374
+ "first",
4375
+ "last"
4376
+ ];
4377
+ var TIME_BUCKET_FUNCTIONS = [
4378
+ "truncateToMinute",
4379
+ "truncateToHour",
4380
+ "truncateToDay",
4381
+ "truncateToWeek",
4382
+ "truncateToMonth",
4383
+ "truncateToYear"
4384
+ ];
4346
4385
  var MaterializedQueryType = {
4347
4386
  LatestPerKey: 1,
4348
4387
  FirstPerKey: 2,
@@ -5708,6 +5747,7 @@ function createAoudaClusterMcpToolSet(client) {
5708
5747
  var version = package_default.version;
5709
5748
  // Annotate the CommonJS export names for ESM import in node:
5710
5749
  0 && (module.exports = {
5750
+ AGGREGATE_FUNCTIONS,
5711
5751
  AOUDA_DATA_TYPES,
5712
5752
  AdminApi,
5713
5753
  AoudaApiError,
@@ -5731,6 +5771,7 @@ var version = package_default.version;
5731
5771
  ClusterAdminApi,
5732
5772
  ConfigAdminApi,
5733
5773
  DatabasesApi,
5774
+ FILTER_OPERATORS,
5734
5775
  HealthAdminApi,
5735
5776
  MaterializedQueriesApi,
5736
5777
  MaterializedQueryState,
@@ -5740,6 +5781,7 @@ var version = package_default.version;
5740
5781
  ReplicationAdminApi,
5741
5782
  RetryPolicy,
5742
5783
  ServerAdminApi,
5784
+ TIME_BUCKET_FUNCTIONS,
5743
5785
  TableQuery,
5744
5786
  TablesApi,
5745
5787
  WhereGroupBuilder,