@aouda/client 0.1.16 → 0.1.17
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 +14 -7
- 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 +14 -7
- package/dist/cli/index.js.map +1 -1
- package/dist/{client-CsE8Vd6m.d.cts → client-CeON_I6V.d.cts} +22 -4
- package/dist/{client-CsE8Vd6m.d.ts → client-CeON_I6V.d.ts} +22 -4
- package/dist/index.cjs +14 -7
- 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 +14 -7
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -1966,11 +1966,26 @@ interface BackupSummary {
|
|
|
1966
1966
|
newFileCount: number;
|
|
1967
1967
|
/** Database names included in this backup run. Present on server >= 0.0.x. */
|
|
1968
1968
|
databases?: string[];
|
|
1969
|
+
/** True when every contributing manifest recorded a non-zero WAL position (ADR 0044 D-2). */
|
|
1970
|
+
pitrEligible?: boolean;
|
|
1969
1971
|
}
|
|
1970
1972
|
interface ListBackupsResponse {
|
|
1971
1973
|
backups: BackupSummary[];
|
|
1972
1974
|
warning?: string | null;
|
|
1973
1975
|
}
|
|
1976
|
+
interface RestoreBackupRequest {
|
|
1977
|
+
backupId?: string | null;
|
|
1978
|
+
targetTime?: string | null;
|
|
1979
|
+
}
|
|
1980
|
+
interface DatabasePitrResult {
|
|
1981
|
+
database: string;
|
|
1982
|
+
replayed: boolean;
|
|
1983
|
+
transactionsReplayed: number;
|
|
1984
|
+
rowsReplayed: number;
|
|
1985
|
+
lastAppliedCommitUtc?: string | null;
|
|
1986
|
+
stoppedAtTarget: boolean;
|
|
1987
|
+
error?: string | null;
|
|
1988
|
+
}
|
|
1974
1989
|
interface RestoreBackupResponse {
|
|
1975
1990
|
backupId: string;
|
|
1976
1991
|
restoredUtc: string;
|
|
@@ -1978,6 +1993,8 @@ interface RestoreBackupResponse {
|
|
|
1978
1993
|
bytesDownloaded: number;
|
|
1979
1994
|
integrityVerified: boolean;
|
|
1980
1995
|
durationSeconds: number;
|
|
1996
|
+
targetTime?: string | null;
|
|
1997
|
+
pitr?: DatabasePitrResult[] | null;
|
|
1981
1998
|
}
|
|
1982
1999
|
interface BackupSchedule {
|
|
1983
2000
|
cronExpression?: string | null;
|
|
@@ -2004,10 +2021,11 @@ declare class BackupAdminApi {
|
|
|
2004
2021
|
*/
|
|
2005
2022
|
list(): Promise<ListBackupsResponse>;
|
|
2006
2023
|
/**
|
|
2007
|
-
* Restore a backup
|
|
2008
|
-
* POST /admin/backup/restore/{id}
|
|
2024
|
+
* Restore a backup. The string form is an exact restore of that id
|
|
2025
|
+
* (`POST /admin/backup/restore/{id}` with `{}`). The object form posts the body to
|
|
2026
|
+
* `POST /admin/backup/restore` and may carry `targetTime` for point-in-time recovery.
|
|
2009
2027
|
*/
|
|
2010
|
-
restore(
|
|
2028
|
+
restore(input: string | RestoreBackupRequest): Promise<RestoreBackupResponse>;
|
|
2011
2029
|
/**
|
|
2012
2030
|
* Get backup schedule.
|
|
2013
2031
|
* GET /admin/backup/schedule
|
|
@@ -4373,4 +4391,4 @@ declare class AoudaClient<S extends SchemaLike = DefaultSchema> {
|
|
|
4373
4391
|
*/
|
|
4374
4392
|
declare function createAoudaClient<S extends SchemaLike = DefaultSchema>(options: AoudaClientOptions): AoudaClient<S>;
|
|
4375
4393
|
|
|
4376
|
-
export { type BatchOperationInput as $, AoudaClient as A, type BulkLoadOptions as B, type CoverageResponse as C, type DetailedHealthResponse as D, type AdminMemoryPatch as E, type FailoverClusterResponse as F, type AggregateFunctionName as G, type HealthStatus as H, type AlterColumnRequest as I, type JoinClusterRequest as J, type AoudaClientOptions as K, type ListBackupsResponse as L, type AoudaDataType as M, type NodeInfoResponse as N, type AppAuthOptions as O, type PromoteClusterResponse as P, AuthClient as Q, type ReplicationStatusResponse as R, type StreamAckRowError as S, type Transport as T, type AuthResult as U, type AuthUserInfo as V, type AuthorizationMode as W, BackupAdminApi as X, type BackupMetrics as Y, type BackupSummary as Z, type BatchMutationResult as _, type BulkLoadJobHandle as a, type
|
|
4394
|
+
export { type BatchOperationInput as $, AoudaClient as A, type BulkLoadOptions as B, type CoverageResponse as C, type DetailedHealthResponse as D, type AdminMemoryPatch as E, type FailoverClusterResponse as F, type AggregateFunctionName as G, type HealthStatus as H, type AlterColumnRequest as I, type JoinClusterRequest as J, type AoudaClientOptions as K, type ListBackupsResponse as L, type AoudaDataType as M, type NodeInfoResponse as N, type AppAuthOptions as O, type PromoteClusterResponse as P, AuthClient as Q, type ReplicationStatusResponse as R, type StreamAckRowError as S, type Transport as T, type AuthResult as U, type AuthUserInfo as V, type AuthorizationMode as W, BackupAdminApi as X, type BackupMetrics as Y, type BackupSummary as Z, type BatchMutationResult as _, type BulkLoadJobHandle as a, type MergeConflict as a$, type BloomFilterMetrics as a0, type BranchInfo as a1, BranchesApi as a2, type BulkLoadForceAbortRequest as a3, type BulkLoadForceAbortResponse as a4, type BulkLoadListResponse as a5, type BulkLoadProgress as a6, type BulkLoadReplicaProgress as a7, type BulkLoadReplicaProgressDto as a8, type BulkLoadStatusResponse as a9, DatabasesApi as aA, type DeleteOptions as aB, type DiffSummary as aC, FILTER_OPERATORS as aD, type FilterOperator as aE, HealthAdminApi as aF, type IndexInfo as aG, type InsertOptions as aH, type InsertResult as aI, type IoMetrics as aJ, JobsApi as aK, type LatencyPercentiles as aL, MaterializedQueriesApi as aM, type MaterializedQueryDefinition as aN, type MaterializedQueryExecuteOptions as aO, type MaterializedQueryExecuteResult as aP, type MaterializedQueryMetrics as aQ, type MaterializedQueryRefreshOptions as aR, MaterializedQueryState as aS, type MaterializedQueryStateNumber as aT, type MaterializedQueryStatus as aU, MaterializedQueryType as aV, type MaterializedQueryTypeNumber as aW, type MemberInfo as aX, MemoryConsistencyTokenStore as aY, type MemoryMetrics as aZ, type MergeBranchOptions as a_, CircuitBreakerPolicy as aa, ClusterAdminApi as ab, type ClusterMemberEntry as ac, type ClusterThisNodeEntry as ad, type ColumnSchema as ae, type ColumnSummaryForErd as af, type ColumnarResponse as ag, type ComponentHealthEntry as ah, type ComputedColumnDef as ai, ConfigAdminApi as aj, type ConsistencyTokenStore as ak, type CreateBranchRequest as al, type CreateColumnRequest as am, type CreateDatabaseOptions as an, type CreatePartitionGrantRequest as ao, type CreateRlsResolverRequest as ap, type CreateTableRequest as aq, type DatabaseAuthInfo as ar, type DatabaseAuthKeys as as, type DatabaseCoverageEntry as at, type DatabaseInfo as au, type DatabaseMemoryMetrics as av, type DatabaseMemoryUsage as aw, type DatabaseMetricsDto as ax, type DatabaseOptionsInfo as ay, type DatabasePitrResult as az, type TopologyResponse as b, type SchemaChangeType as b$, type MergeExecutionResult as b0, type MergeResult as b1, MetricsAdminApi as b2, type MetricsHistory as b3, type MetricsHistoryOptions as b4, type MetricsSnapshot as b5, type MetricsSummary as b6, type MutationResult as b7, type NamedArtifactWarning as b8, type NamedMutationDefinition as b9, PolicyApi as bA, type PolicyInspectRequest as bB, type PolicyInspectResponse as bC, type PolicyInspectTableResult as bD, type PolicyInspectTraverseStart as bE, type PolicyInspectVectorProbe as bF, type QueryMetrics as bG, type QueryResult as bH, type QueryStats as bI, type ReferenceInfo as bJ, type RelationshipEndpoint as bK, type RelationshipInfo as bL, type RenameColumnRequest as bM, type RenameTableRequest as bN, type ReorderColumnsRequest as bO, ReplicationAdminApi as bP, type ReplicationMetrics as bQ, type ResidencyConfig as bR, type RestoreBackupRequest as bS, type ResultWarning as bT, RetryPolicy as bU, type RlsResolver as bV, type RlsResolverRule as bW, type RlsResolverRuleInput as bX, type RlsResolversListResponse as bY, type SchemaAggregateColumn as bZ, type SchemaChange as b_, type NamedMutationResult as ba, NamedMutationsApi as bb, NamedQueriesApi as bc, type NamedQueryBatchItem as bd, type NamedQueryBatchSlotResult as be, type NamedQueryDefinition as bf, type NamedQueryExecuteOptions as bg, type NamedQueryParamConstraint as bh, type NamedQuerySubscribeOptions as bi, NodeAdminApi as bj, type NodeLogEntry as bk, type NodeLogLevel as bl, type NodeLogStreamOptions as bm, type NodeLogsQuery as bn, type NodeLogsResponse as bo, type OpenWriteStreamOptions as bp, type PageCacheMetrics as bq, type PartitionFunction as br, type PartitionGrant as bs, type PartitionGrantsListResponse as bt, type PartitioningMetrics as bu, type PendingJobListResponse as bv, type PendingJobResponse as bw, type PerDatabaseLagEntry as bx, type PerDatabaseMetrics as by, type PerDatabaseStatusEntry as bz, type ReadinessResponse as c, compareOrdinal as c$, type SchemaColumnDefinition as c0, type SchemaComputedOutput as c1, type SchemaComputedOutputType as c2, type SchemaDiffResult as c3, type SchemaDocument as c4, type SchemaFilterCondition as c5, type SchemaFilterPredicate as c6, type SchemaGroupByTerm as c7, type SchemaMaterializedQuery as c8, type SchemaMaterializedStorage as c9, type TableCoverageEntry as cA, type TableNameFromSchema as cB, type TablePolicy as cC, TableQuery as cD, type TableSchema as cE, type TableSchemaResponse as cF, type TableSummary as cG, type TableSummaryForErd as cH, TablesApi as cI, type TestIdentity as cJ, type TestIdentityDocument as cK, type TestIdentityGrant as cL, type TimeBucketFunction as cM, type TimeSeriesMetrics as cN, type TransactionMetrics as cO, type TypeGenerationOptions as cP, type UpdateOptions as cQ, type UpdateRlsResolverRequest as cR, type UpdateTableOptionsRequest as cS, type UpdateTablePolicyRequest as cT, type UserProfile as cU, type WalMetrics as cV, WhereGroupBuilder as cW, type WhereOperator as cX, type WriteStream as cY, coerceColumnarValue as cZ, columnarToRows as c_, type SchemaPartitionKeyEntry as ca, type SchemaRelationshipsResponse as cb, type SchemaSettings as cc, type SchemaSettingsDurability as cd, type SchemaTableDefinition as ce, type SchemaTableDurability as cf, type SchemaTablePolicy as cg, type SchemaTableTransform as ch, type SeedApplyResult as ci, type SeedTableApplyResult as cj, ServerAdminApi as ck, type ServerAuthOptions as cl, type ServerMemoryResponse as cm, type ServerMetricsResponse as cn, type ServiceInfo as co, type SimdMetrics as cp, type SingleDatabaseMetricsResponse as cq, type SortDirection as cr, type StorageMetrics as cs, type SubscribeOptions as ct, type Subscription as cu, type SubscriptionChangeEvent as cv, type SubscriptionEvent as cw, type SubscriptionInfo as cx, type SubscriptionSnapshotEvent as cy, TIME_BUCKET_FUNCTIONS as cz, type TriggerBackupRequest as d, createAoudaClient as d0, maxToken as d1, 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 SchemaLike as m, type DefaultSchema as n, AGGREGATE_FUNCTIONS as o, AOUDA_DATA_TYPES as p, type AddColumnRequest as q, AdminApi as r, type AdminBackupConfig as s, type AdminBackupPatch as t, type AdminConfigPatchRequest as u, type AdminConfigResponse as v, type AdminConfigSchemaResponse as w, type AdminLoggingConfig as x, type AdminLoggingPatch as y, type AdminMemoryConfig as z };
|
|
@@ -1966,11 +1966,26 @@ interface BackupSummary {
|
|
|
1966
1966
|
newFileCount: number;
|
|
1967
1967
|
/** Database names included in this backup run. Present on server >= 0.0.x. */
|
|
1968
1968
|
databases?: string[];
|
|
1969
|
+
/** True when every contributing manifest recorded a non-zero WAL position (ADR 0044 D-2). */
|
|
1970
|
+
pitrEligible?: boolean;
|
|
1969
1971
|
}
|
|
1970
1972
|
interface ListBackupsResponse {
|
|
1971
1973
|
backups: BackupSummary[];
|
|
1972
1974
|
warning?: string | null;
|
|
1973
1975
|
}
|
|
1976
|
+
interface RestoreBackupRequest {
|
|
1977
|
+
backupId?: string | null;
|
|
1978
|
+
targetTime?: string | null;
|
|
1979
|
+
}
|
|
1980
|
+
interface DatabasePitrResult {
|
|
1981
|
+
database: string;
|
|
1982
|
+
replayed: boolean;
|
|
1983
|
+
transactionsReplayed: number;
|
|
1984
|
+
rowsReplayed: number;
|
|
1985
|
+
lastAppliedCommitUtc?: string | null;
|
|
1986
|
+
stoppedAtTarget: boolean;
|
|
1987
|
+
error?: string | null;
|
|
1988
|
+
}
|
|
1974
1989
|
interface RestoreBackupResponse {
|
|
1975
1990
|
backupId: string;
|
|
1976
1991
|
restoredUtc: string;
|
|
@@ -1978,6 +1993,8 @@ interface RestoreBackupResponse {
|
|
|
1978
1993
|
bytesDownloaded: number;
|
|
1979
1994
|
integrityVerified: boolean;
|
|
1980
1995
|
durationSeconds: number;
|
|
1996
|
+
targetTime?: string | null;
|
|
1997
|
+
pitr?: DatabasePitrResult[] | null;
|
|
1981
1998
|
}
|
|
1982
1999
|
interface BackupSchedule {
|
|
1983
2000
|
cronExpression?: string | null;
|
|
@@ -2004,10 +2021,11 @@ declare class BackupAdminApi {
|
|
|
2004
2021
|
*/
|
|
2005
2022
|
list(): Promise<ListBackupsResponse>;
|
|
2006
2023
|
/**
|
|
2007
|
-
* Restore a backup
|
|
2008
|
-
* POST /admin/backup/restore/{id}
|
|
2024
|
+
* Restore a backup. The string form is an exact restore of that id
|
|
2025
|
+
* (`POST /admin/backup/restore/{id}` with `{}`). The object form posts the body to
|
|
2026
|
+
* `POST /admin/backup/restore` and may carry `targetTime` for point-in-time recovery.
|
|
2009
2027
|
*/
|
|
2010
|
-
restore(
|
|
2028
|
+
restore(input: string | RestoreBackupRequest): Promise<RestoreBackupResponse>;
|
|
2011
2029
|
/**
|
|
2012
2030
|
* Get backup schedule.
|
|
2013
2031
|
* GET /admin/backup/schedule
|
|
@@ -4373,4 +4391,4 @@ declare class AoudaClient<S extends SchemaLike = DefaultSchema> {
|
|
|
4373
4391
|
*/
|
|
4374
4392
|
declare function createAoudaClient<S extends SchemaLike = DefaultSchema>(options: AoudaClientOptions): AoudaClient<S>;
|
|
4375
4393
|
|
|
4376
|
-
export { type BatchOperationInput as $, AoudaClient as A, type BulkLoadOptions as B, type CoverageResponse as C, type DetailedHealthResponse as D, type AdminMemoryPatch as E, type FailoverClusterResponse as F, type AggregateFunctionName as G, type HealthStatus as H, type AlterColumnRequest as I, type JoinClusterRequest as J, type AoudaClientOptions as K, type ListBackupsResponse as L, type AoudaDataType as M, type NodeInfoResponse as N, type AppAuthOptions as O, type PromoteClusterResponse as P, AuthClient as Q, type ReplicationStatusResponse as R, type StreamAckRowError as S, type Transport as T, type AuthResult as U, type AuthUserInfo as V, type AuthorizationMode as W, BackupAdminApi as X, type BackupMetrics as Y, type BackupSummary as Z, type BatchMutationResult as _, type BulkLoadJobHandle as a, type
|
|
4394
|
+
export { type BatchOperationInput as $, AoudaClient as A, type BulkLoadOptions as B, type CoverageResponse as C, type DetailedHealthResponse as D, type AdminMemoryPatch as E, type FailoverClusterResponse as F, type AggregateFunctionName as G, type HealthStatus as H, type AlterColumnRequest as I, type JoinClusterRequest as J, type AoudaClientOptions as K, type ListBackupsResponse as L, type AoudaDataType as M, type NodeInfoResponse as N, type AppAuthOptions as O, type PromoteClusterResponse as P, AuthClient as Q, type ReplicationStatusResponse as R, type StreamAckRowError as S, type Transport as T, type AuthResult as U, type AuthUserInfo as V, type AuthorizationMode as W, BackupAdminApi as X, type BackupMetrics as Y, type BackupSummary as Z, type BatchMutationResult as _, type BulkLoadJobHandle as a, type MergeConflict as a$, type BloomFilterMetrics as a0, type BranchInfo as a1, BranchesApi as a2, type BulkLoadForceAbortRequest as a3, type BulkLoadForceAbortResponse as a4, type BulkLoadListResponse as a5, type BulkLoadProgress as a6, type BulkLoadReplicaProgress as a7, type BulkLoadReplicaProgressDto as a8, type BulkLoadStatusResponse as a9, DatabasesApi as aA, type DeleteOptions as aB, type DiffSummary as aC, FILTER_OPERATORS as aD, type FilterOperator as aE, HealthAdminApi as aF, type IndexInfo as aG, type InsertOptions as aH, type InsertResult as aI, type IoMetrics as aJ, JobsApi as aK, type LatencyPercentiles as aL, MaterializedQueriesApi as aM, type MaterializedQueryDefinition as aN, type MaterializedQueryExecuteOptions as aO, type MaterializedQueryExecuteResult as aP, type MaterializedQueryMetrics as aQ, type MaterializedQueryRefreshOptions as aR, MaterializedQueryState as aS, type MaterializedQueryStateNumber as aT, type MaterializedQueryStatus as aU, MaterializedQueryType as aV, type MaterializedQueryTypeNumber as aW, type MemberInfo as aX, MemoryConsistencyTokenStore as aY, type MemoryMetrics as aZ, type MergeBranchOptions as a_, CircuitBreakerPolicy as aa, ClusterAdminApi as ab, type ClusterMemberEntry as ac, type ClusterThisNodeEntry as ad, type ColumnSchema as ae, type ColumnSummaryForErd as af, type ColumnarResponse as ag, type ComponentHealthEntry as ah, type ComputedColumnDef as ai, ConfigAdminApi as aj, type ConsistencyTokenStore as ak, type CreateBranchRequest as al, type CreateColumnRequest as am, type CreateDatabaseOptions as an, type CreatePartitionGrantRequest as ao, type CreateRlsResolverRequest as ap, type CreateTableRequest as aq, type DatabaseAuthInfo as ar, type DatabaseAuthKeys as as, type DatabaseCoverageEntry as at, type DatabaseInfo as au, type DatabaseMemoryMetrics as av, type DatabaseMemoryUsage as aw, type DatabaseMetricsDto as ax, type DatabaseOptionsInfo as ay, type DatabasePitrResult as az, type TopologyResponse as b, type SchemaChangeType as b$, type MergeExecutionResult as b0, type MergeResult as b1, MetricsAdminApi as b2, type MetricsHistory as b3, type MetricsHistoryOptions as b4, type MetricsSnapshot as b5, type MetricsSummary as b6, type MutationResult as b7, type NamedArtifactWarning as b8, type NamedMutationDefinition as b9, PolicyApi as bA, type PolicyInspectRequest as bB, type PolicyInspectResponse as bC, type PolicyInspectTableResult as bD, type PolicyInspectTraverseStart as bE, type PolicyInspectVectorProbe as bF, type QueryMetrics as bG, type QueryResult as bH, type QueryStats as bI, type ReferenceInfo as bJ, type RelationshipEndpoint as bK, type RelationshipInfo as bL, type RenameColumnRequest as bM, type RenameTableRequest as bN, type ReorderColumnsRequest as bO, ReplicationAdminApi as bP, type ReplicationMetrics as bQ, type ResidencyConfig as bR, type RestoreBackupRequest as bS, type ResultWarning as bT, RetryPolicy as bU, type RlsResolver as bV, type RlsResolverRule as bW, type RlsResolverRuleInput as bX, type RlsResolversListResponse as bY, type SchemaAggregateColumn as bZ, type SchemaChange as b_, type NamedMutationResult as ba, NamedMutationsApi as bb, NamedQueriesApi as bc, type NamedQueryBatchItem as bd, type NamedQueryBatchSlotResult as be, type NamedQueryDefinition as bf, type NamedQueryExecuteOptions as bg, type NamedQueryParamConstraint as bh, type NamedQuerySubscribeOptions as bi, NodeAdminApi as bj, type NodeLogEntry as bk, type NodeLogLevel as bl, type NodeLogStreamOptions as bm, type NodeLogsQuery as bn, type NodeLogsResponse as bo, type OpenWriteStreamOptions as bp, type PageCacheMetrics as bq, type PartitionFunction as br, type PartitionGrant as bs, type PartitionGrantsListResponse as bt, type PartitioningMetrics as bu, type PendingJobListResponse as bv, type PendingJobResponse as bw, type PerDatabaseLagEntry as bx, type PerDatabaseMetrics as by, type PerDatabaseStatusEntry as bz, type ReadinessResponse as c, compareOrdinal as c$, type SchemaColumnDefinition as c0, type SchemaComputedOutput as c1, type SchemaComputedOutputType as c2, type SchemaDiffResult as c3, type SchemaDocument as c4, type SchemaFilterCondition as c5, type SchemaFilterPredicate as c6, type SchemaGroupByTerm as c7, type SchemaMaterializedQuery as c8, type SchemaMaterializedStorage as c9, type TableCoverageEntry as cA, type TableNameFromSchema as cB, type TablePolicy as cC, TableQuery as cD, type TableSchema as cE, type TableSchemaResponse as cF, type TableSummary as cG, type TableSummaryForErd as cH, TablesApi as cI, type TestIdentity as cJ, type TestIdentityDocument as cK, type TestIdentityGrant as cL, type TimeBucketFunction as cM, type TimeSeriesMetrics as cN, type TransactionMetrics as cO, type TypeGenerationOptions as cP, type UpdateOptions as cQ, type UpdateRlsResolverRequest as cR, type UpdateTableOptionsRequest as cS, type UpdateTablePolicyRequest as cT, type UserProfile as cU, type WalMetrics as cV, WhereGroupBuilder as cW, type WhereOperator as cX, type WriteStream as cY, coerceColumnarValue as cZ, columnarToRows as c_, type SchemaPartitionKeyEntry as ca, type SchemaRelationshipsResponse as cb, type SchemaSettings as cc, type SchemaSettingsDurability as cd, type SchemaTableDefinition as ce, type SchemaTableDurability as cf, type SchemaTablePolicy as cg, type SchemaTableTransform as ch, type SeedApplyResult as ci, type SeedTableApplyResult as cj, ServerAdminApi as ck, type ServerAuthOptions as cl, type ServerMemoryResponse as cm, type ServerMetricsResponse as cn, type ServiceInfo as co, type SimdMetrics as cp, type SingleDatabaseMetricsResponse as cq, type SortDirection as cr, type StorageMetrics as cs, type SubscribeOptions as ct, type Subscription as cu, type SubscriptionChangeEvent as cv, type SubscriptionEvent as cw, type SubscriptionInfo as cx, type SubscriptionSnapshotEvent as cy, TIME_BUCKET_FUNCTIONS as cz, type TriggerBackupRequest as d, createAoudaClient as d0, maxToken as d1, 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 SchemaLike as m, type DefaultSchema as n, AGGREGATE_FUNCTIONS as o, AOUDA_DATA_TYPES as p, type AddColumnRequest as q, AdminApi as r, type AdminBackupConfig as s, type AdminBackupPatch as t, type AdminConfigPatchRequest as u, type AdminConfigResponse as v, type AdminConfigSchemaResponse as w, type AdminLoggingConfig as x, type AdminLoggingPatch as y, type AdminMemoryConfig as z };
|
package/dist/index.cjs
CHANGED
|
@@ -90,7 +90,7 @@ module.exports = __toCommonJS(index_exports);
|
|
|
90
90
|
// package.json
|
|
91
91
|
var package_default = {
|
|
92
92
|
name: "@aouda/client",
|
|
93
|
-
version: "0.1.
|
|
93
|
+
version: "0.1.17",
|
|
94
94
|
description: "Official TypeScript/JavaScript client library for Aouda",
|
|
95
95
|
type: "module",
|
|
96
96
|
main: "./dist/index.cjs",
|
|
@@ -4656,14 +4656,21 @@ var BackupAdminApi = class {
|
|
|
4656
4656
|
return this.transport.get(`${BASE_PATH4}/list`);
|
|
4657
4657
|
}
|
|
4658
4658
|
/**
|
|
4659
|
-
* Restore a backup
|
|
4660
|
-
* POST /admin/backup/restore/{id}
|
|
4659
|
+
* Restore a backup. The string form is an exact restore of that id
|
|
4660
|
+
* (`POST /admin/backup/restore/{id}` with `{}`). The object form posts the body to
|
|
4661
|
+
* `POST /admin/backup/restore` and may carry `targetTime` for point-in-time recovery.
|
|
4661
4662
|
*/
|
|
4662
|
-
async restore(
|
|
4663
|
-
|
|
4663
|
+
async restore(input) {
|
|
4664
|
+
if (typeof input === "string") {
|
|
4665
|
+
const encoded = encodeURIComponent(input);
|
|
4666
|
+
return this.transport.post(
|
|
4667
|
+
`${BASE_PATH4}/restore/${encoded}`,
|
|
4668
|
+
{}
|
|
4669
|
+
);
|
|
4670
|
+
}
|
|
4664
4671
|
return this.transport.post(
|
|
4665
|
-
`${BASE_PATH4}/restore
|
|
4666
|
-
|
|
4672
|
+
`${BASE_PATH4}/restore`,
|
|
4673
|
+
input
|
|
4667
4674
|
);
|
|
4668
4675
|
}
|
|
4669
4676
|
/**
|