@aouda/client 0.0.3 → 0.1.1
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 +29 -5
- 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 +29 -5
- package/dist/cli/index.js.map +1 -1
- package/dist/{client-Bvs1yerF.d.cts → client-B3XIGTr9.d.cts} +59 -4
- package/dist/{client-Bvs1yerF.d.ts → client-B3XIGTr9.d.ts} +59 -4
- package/dist/index.cjs +29 -5
- 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 +29 -5
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -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}).
|
|
@@ -923,6 +945,23 @@ interface DatabaseInfo {
|
|
|
923
945
|
state: string;
|
|
924
946
|
createdAt: string;
|
|
925
947
|
options: DatabaseOptionsInfo;
|
|
948
|
+
/**
|
|
949
|
+
* True if this is an Aouda-owned infrastructure database (e.g. `_serverauth`, `_settings`).
|
|
950
|
+
* Internal databases are hidden from the default catalog list.
|
|
951
|
+
* Clients should not use internal databases as data-explorer targets.
|
|
952
|
+
*/
|
|
953
|
+
isInternal: boolean;
|
|
954
|
+
/**
|
|
955
|
+
* True if this database contains auth system tables (_users, _roles, etc.).
|
|
956
|
+
* Application auth databases have isInternal=false and remain in the default list.
|
|
957
|
+
*/
|
|
958
|
+
isAuthDatabase: boolean;
|
|
959
|
+
/**
|
|
960
|
+
* Auth database classification: "none" | "server" | "application".
|
|
961
|
+
* "server" databases are managed via /api/auth/admin/... (never in data explorer).
|
|
962
|
+
* "application" databases are end-user auth stores browsable via the data explorer.
|
|
963
|
+
*/
|
|
964
|
+
authDatabaseKind: "none" | "server" | "application";
|
|
926
965
|
}
|
|
927
966
|
/**
|
|
928
967
|
* Options when creating a database (camelCase, matches server request).
|
|
@@ -2903,6 +2942,15 @@ declare class TablesApi {
|
|
|
2903
2942
|
* @throws AoudaNotFoundError if table or column does not exist; AoudaApiError for WRITE_NOT_ALLOWED, etc.
|
|
2904
2943
|
*/
|
|
2905
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>;
|
|
2906
2954
|
/**
|
|
2907
2955
|
* Updates a table's storage policy (temperature).
|
|
2908
2956
|
* @param name - Table name.
|
|
@@ -2927,12 +2975,19 @@ declare class DatabasesApi {
|
|
|
2927
2975
|
private readonly transport;
|
|
2928
2976
|
constructor(transport: Transport);
|
|
2929
2977
|
/**
|
|
2930
|
-
* Lists
|
|
2978
|
+
* Lists databases on the server.
|
|
2931
2979
|
* GET /api/databases
|
|
2932
2980
|
*
|
|
2933
|
-
*
|
|
2981
|
+
* By default only operator-facing databases (isInternal === false) are returned.
|
|
2982
|
+
* Pass `{ includeInternal: true }` to receive the full catalog including internal
|
|
2983
|
+
* infrastructure databases such as `_serverauth` and `_settings`.
|
|
2984
|
+
*
|
|
2985
|
+
* @param options.includeInternal - When true, appends `?include=internal` to the request.
|
|
2986
|
+
* @returns Array of database info.
|
|
2934
2987
|
*/
|
|
2935
|
-
list(
|
|
2988
|
+
list(options?: {
|
|
2989
|
+
includeInternal?: boolean;
|
|
2990
|
+
}): Promise<DatabaseInfo[]>;
|
|
2936
2991
|
/**
|
|
2937
2992
|
* Creates a new database.
|
|
2938
2993
|
* POST /api/databases
|
|
@@ -3474,4 +3529,4 @@ declare class AoudaClient<S extends SchemaLike = DefaultSchema> {
|
|
|
3474
3529
|
*/
|
|
3475
3530
|
declare function createAoudaClient<S extends SchemaLike = DefaultSchema>(options: AoudaClientOptions): AoudaClient<S>;
|
|
3476
3531
|
|
|
3477
|
-
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
|
|
3532
|
+
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 WhereOperator 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 UpdateTableOptionsRequest as bX, type UpdateTablePolicyRequest as bY, type UserProfile as bZ, WhereGroupBuilder 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, type WriteStream as c0, coerceColumnarValue as c1, createAoudaClient as c2, 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 };
|
|
@@ -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}).
|
|
@@ -923,6 +945,23 @@ interface DatabaseInfo {
|
|
|
923
945
|
state: string;
|
|
924
946
|
createdAt: string;
|
|
925
947
|
options: DatabaseOptionsInfo;
|
|
948
|
+
/**
|
|
949
|
+
* True if this is an Aouda-owned infrastructure database (e.g. `_serverauth`, `_settings`).
|
|
950
|
+
* Internal databases are hidden from the default catalog list.
|
|
951
|
+
* Clients should not use internal databases as data-explorer targets.
|
|
952
|
+
*/
|
|
953
|
+
isInternal: boolean;
|
|
954
|
+
/**
|
|
955
|
+
* True if this database contains auth system tables (_users, _roles, etc.).
|
|
956
|
+
* Application auth databases have isInternal=false and remain in the default list.
|
|
957
|
+
*/
|
|
958
|
+
isAuthDatabase: boolean;
|
|
959
|
+
/**
|
|
960
|
+
* Auth database classification: "none" | "server" | "application".
|
|
961
|
+
* "server" databases are managed via /api/auth/admin/... (never in data explorer).
|
|
962
|
+
* "application" databases are end-user auth stores browsable via the data explorer.
|
|
963
|
+
*/
|
|
964
|
+
authDatabaseKind: "none" | "server" | "application";
|
|
926
965
|
}
|
|
927
966
|
/**
|
|
928
967
|
* Options when creating a database (camelCase, matches server request).
|
|
@@ -2903,6 +2942,15 @@ declare class TablesApi {
|
|
|
2903
2942
|
* @throws AoudaNotFoundError if table or column does not exist; AoudaApiError for WRITE_NOT_ALLOWED, etc.
|
|
2904
2943
|
*/
|
|
2905
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>;
|
|
2906
2954
|
/**
|
|
2907
2955
|
* Updates a table's storage policy (temperature).
|
|
2908
2956
|
* @param name - Table name.
|
|
@@ -2927,12 +2975,19 @@ declare class DatabasesApi {
|
|
|
2927
2975
|
private readonly transport;
|
|
2928
2976
|
constructor(transport: Transport);
|
|
2929
2977
|
/**
|
|
2930
|
-
* Lists
|
|
2978
|
+
* Lists databases on the server.
|
|
2931
2979
|
* GET /api/databases
|
|
2932
2980
|
*
|
|
2933
|
-
*
|
|
2981
|
+
* By default only operator-facing databases (isInternal === false) are returned.
|
|
2982
|
+
* Pass `{ includeInternal: true }` to receive the full catalog including internal
|
|
2983
|
+
* infrastructure databases such as `_serverauth` and `_settings`.
|
|
2984
|
+
*
|
|
2985
|
+
* @param options.includeInternal - When true, appends `?include=internal` to the request.
|
|
2986
|
+
* @returns Array of database info.
|
|
2934
2987
|
*/
|
|
2935
|
-
list(
|
|
2988
|
+
list(options?: {
|
|
2989
|
+
includeInternal?: boolean;
|
|
2990
|
+
}): Promise<DatabaseInfo[]>;
|
|
2936
2991
|
/**
|
|
2937
2992
|
* Creates a new database.
|
|
2938
2993
|
* POST /api/databases
|
|
@@ -3474,4 +3529,4 @@ declare class AoudaClient<S extends SchemaLike = DefaultSchema> {
|
|
|
3474
3529
|
*/
|
|
3475
3530
|
declare function createAoudaClient<S extends SchemaLike = DefaultSchema>(options: AoudaClientOptions): AoudaClient<S>;
|
|
3476
3531
|
|
|
3477
|
-
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
|
|
3532
|
+
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 WhereOperator 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 UpdateTableOptionsRequest as bX, type UpdateTablePolicyRequest as bY, type UserProfile as bZ, WhereGroupBuilder 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, type WriteStream as c0, coerceColumnarValue as c1, createAoudaClient as c2, 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 };
|
package/dist/index.cjs
CHANGED
|
@@ -79,7 +79,7 @@ module.exports = __toCommonJS(index_exports);
|
|
|
79
79
|
// package.json
|
|
80
80
|
var package_default = {
|
|
81
81
|
name: "@aouda/client",
|
|
82
|
-
version: "0.
|
|
82
|
+
version: "0.1.1",
|
|
83
83
|
description: "Official TypeScript/JavaScript client library for Aouda",
|
|
84
84
|
type: "module",
|
|
85
85
|
main: "./dist/index.cjs",
|
|
@@ -3613,6 +3613,24 @@ var TablesApi = class {
|
|
|
3613
3613
|
`${prefix}/tables/${encodedTable}/columns/${encodedColumn}`
|
|
3614
3614
|
);
|
|
3615
3615
|
}
|
|
3616
|
+
/**
|
|
3617
|
+
* Updates table options (auth mode, partition-level security, culture, etc.).
|
|
3618
|
+
* PUT /api/databases/{db}/tables/{name}/options.
|
|
3619
|
+
* @param name - Table name.
|
|
3620
|
+
* @param body - Options to update. Omit a field to leave it unchanged; pass null to clear a nullable field.
|
|
3621
|
+
* @returns Updated table schema.
|
|
3622
|
+
* @throws AoudaNotFoundError if table does not exist; AoudaApiError for WRITE_NOT_ALLOWED, INVALID_REQUEST, etc.
|
|
3623
|
+
*/
|
|
3624
|
+
async updateTableOptions(name, body) {
|
|
3625
|
+
validateNonEmptyString(name, "Table name");
|
|
3626
|
+
const prefix = databasePath2(this.database);
|
|
3627
|
+
const encodedName = encodeURIComponent(name);
|
|
3628
|
+
const requestBody = { database: this.database, ...body };
|
|
3629
|
+
return this.transport.put(
|
|
3630
|
+
`${prefix}/tables/${encodedName}/options`,
|
|
3631
|
+
requestBody
|
|
3632
|
+
);
|
|
3633
|
+
}
|
|
3616
3634
|
/**
|
|
3617
3635
|
* Updates a table's storage policy (temperature).
|
|
3618
3636
|
* @param name - Table name.
|
|
@@ -3641,13 +3659,19 @@ var DatabasesApi = class {
|
|
|
3641
3659
|
this.transport = transport;
|
|
3642
3660
|
}
|
|
3643
3661
|
/**
|
|
3644
|
-
* Lists
|
|
3662
|
+
* Lists databases on the server.
|
|
3645
3663
|
* GET /api/databases
|
|
3646
3664
|
*
|
|
3647
|
-
*
|
|
3665
|
+
* By default only operator-facing databases (isInternal === false) are returned.
|
|
3666
|
+
* Pass `{ includeInternal: true }` to receive the full catalog including internal
|
|
3667
|
+
* infrastructure databases such as `_serverauth` and `_settings`.
|
|
3668
|
+
*
|
|
3669
|
+
* @param options.includeInternal - When true, appends `?include=internal` to the request.
|
|
3670
|
+
* @returns Array of database info.
|
|
3648
3671
|
*/
|
|
3649
|
-
async list() {
|
|
3650
|
-
const
|
|
3672
|
+
async list(options) {
|
|
3673
|
+
const path = options?.includeInternal ? "/api/databases?include=internal" : "/api/databases";
|
|
3674
|
+
const response = await this.transport.get(path);
|
|
3651
3675
|
return response.databases;
|
|
3652
3676
|
}
|
|
3653
3677
|
/**
|