powersync 0.1.0 → 0.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +14 -14
- package/dist/commands/init.d.ts +0 -1
- package/dist/commands/init.js +11 -8
- package/dist/commands/instance/sync-rules/generate-schema.js +6 -6
- package/dist/constants.d.ts +2 -5
- package/dist/constants.js +4 -2
- package/dist/service/accounts.client.js +11129 -25
- package/dist/service/powersync.client.js +37453 -113
- package/dist/service/types.js +1 -1
- package/dist/service/utils.js +6 -6
- package/dist/utils.js +5 -7
- package/oclif.manifest.json +1 -1
- package/package.json +28 -20
- package/dist/powersync-sdk/accounts/api.d.ts +0 -717
- package/dist/powersync-sdk/accounts/api.js +0 -182
- package/dist/powersync-sdk/accounts/client.d.ts +0 -1096
- package/dist/powersync-sdk/accounts/client.js +0 -124
- package/dist/powersync-sdk/accounts/codecs.d.ts +0 -32
- package/dist/powersync-sdk/accounts/codecs.js +0 -93
- package/dist/powersync-sdk/accounts/index.d.ts +0 -4
- package/dist/powersync-sdk/accounts/index.js +0 -4
- package/dist/powersync-sdk/accounts/models.d.ts +0 -260
- package/dist/powersync-sdk/accounts/models.js +0 -96
- package/dist/powersync-sdk/accounts/routes.d.ts +0 -44
- package/dist/powersync-sdk/accounts/routes.js +0 -45
- package/dist/powersync-sdk/accounts/source.d.ts +0 -76
- package/dist/powersync-sdk/accounts/source.js +0 -32
- package/dist/powersync-sdk/errors/errors.d.ts +0 -62
- package/dist/powersync-sdk/errors/errors.js +0 -115
- package/dist/powersync-sdk/errors/index.d.ts +0 -2
- package/dist/powersync-sdk/errors/index.js +0 -2
- package/dist/powersync-sdk/errors/utils.d.ts +0 -4
- package/dist/powersync-sdk/errors/utils.js +0 -18
- package/dist/powersync-sdk/fetch-clients/codecs.d.ts +0 -4
- package/dist/powersync-sdk/fetch-clients/codecs.js +0 -34
- package/dist/powersync-sdk/fetch-clients/decoders.d.ts +0 -3
- package/dist/powersync-sdk/fetch-clients/decoders.js +0 -35
- package/dist/powersync-sdk/fetch-clients/definitions.d.ts +0 -97
- package/dist/powersync-sdk/fetch-clients/definitions.js +0 -22
- package/dist/powersync-sdk/fetch-clients/errors.d.ts +0 -7
- package/dist/powersync-sdk/fetch-clients/errors.js +0 -19
- package/dist/powersync-sdk/fetch-clients/index.d.ts +0 -5
- package/dist/powersync-sdk/fetch-clients/index.js +0 -5
- package/dist/powersync-sdk/fetch-clients/node-client.d.ts +0 -9
- package/dist/powersync-sdk/fetch-clients/node-client.js +0 -107
- package/dist/powersync-sdk/fetch-clients/request.d.ts +0 -11
- package/dist/powersync-sdk/fetch-clients/request.js +0 -138
- package/dist/powersync-sdk/fetch-clients/streaming.d.ts +0 -65
- package/dist/powersync-sdk/fetch-clients/streaming.js +0 -99
- package/dist/powersync-sdk/fetch-clients/utils.d.ts +0 -13
- package/dist/powersync-sdk/fetch-clients/utils.js +0 -43
- package/dist/powersync-sdk/fetch-clients/web-client.d.ts +0 -14
- package/dist/powersync-sdk/fetch-clients/web-client.js +0 -56
- package/dist/powersync-sdk/json/index.d.ts +0 -4
- package/dist/powersync-sdk/json/index.js +0 -3
- package/dist/powersync-sdk/json/json.d.ts +0 -5
- package/dist/powersync-sdk/json/json.js +0 -35
- package/dist/powersync-sdk/json/json_container.d.ts +0 -18
- package/dist/powersync-sdk/json/json_container.js +0 -28
- package/dist/powersync-sdk/json/json_stringify.d.ts +0 -36
- package/dist/powersync-sdk/json/json_stringify.js +0 -162
- package/dist/powersync-sdk/powersync/client.d.ts +0 -449
- package/dist/powersync-sdk/powersync/client.js +0 -53
- package/dist/powersync-sdk/powersync/config/HostedConfig.d.ts +0 -327
- package/dist/powersync-sdk/powersync/config/HostedConfig.js +0 -92
- package/dist/powersync-sdk/powersync/config/PowerSyncConfig.d.ts +0 -211
- package/dist/powersync-sdk/powersync/config/PowerSyncConfig.js +0 -97
- package/dist/powersync-sdk/powersync/config/normalize.d.ts +0 -32
- package/dist/powersync-sdk/powersync/config/normalize.js +0 -85
- package/dist/powersync-sdk/powersync/definitions.d.ts +0 -149
- package/dist/powersync-sdk/powersync/definitions.js +0 -97
- package/dist/powersync-sdk/powersync/index.d.ts +0 -8
- package/dist/powersync-sdk/powersync/index.js +0 -8
- package/dist/powersync-sdk/powersync/internal_routes.d.ts +0 -247
- package/dist/powersync-sdk/powersync/internal_routes.js +0 -69
- package/dist/powersync-sdk/powersync/routes.d.ts +0 -779
- package/dist/powersync-sdk/powersync/routes.js +0 -191
- package/dist/powersync-sdk/sdk-clients/endpoints.d.ts +0 -31
- package/dist/powersync-sdk/sdk-clients/endpoints.js +0 -48
- package/dist/powersync-sdk/sdk-clients/index.d.ts +0 -3
- package/dist/powersync-sdk/sdk-clients/index.js +0 -3
- package/dist/powersync-sdk/sdk-clients/pagination.d.ts +0 -14
- package/dist/powersync-sdk/sdk-clients/pagination.js +0 -21
- package/dist/powersync-sdk/sdk-clients/sdk-client.d.ts +0 -17
- package/dist/powersync-sdk/sdk-clients/sdk-client.js +0 -30
- package/dist/powersync-sdk/streaming/bson/buffer-array.d.ts +0 -31
- package/dist/powersync-sdk/streaming/bson/buffer-array.js +0 -79
- package/dist/powersync-sdk/streaming/bson/constants.d.ts +0 -2
- package/dist/powersync-sdk/streaming/bson/constants.js +0 -1
- package/dist/powersync-sdk/streaming/bson/decoder.d.ts +0 -10
- package/dist/powersync-sdk/streaming/bson/decoder.js +0 -62
- package/dist/powersync-sdk/streaming/bson/encoder.d.ts +0 -10
- package/dist/powersync-sdk/streaming/bson/encoder.js +0 -23
- package/dist/powersync-sdk/streaming/bson/header.d.ts +0 -11
- package/dist/powersync-sdk/streaming/bson/header.js +0 -52
- package/dist/powersync-sdk/streaming/bson/index.d.ts +0 -5
- package/dist/powersync-sdk/streaming/bson/index.js +0 -5
- package/dist/powersync-sdk/streaming/core/backpressure.d.ts +0 -15
- package/dist/powersync-sdk/streaming/core/backpressure.js +0 -34
- package/dist/powersync-sdk/streaming/core/cross-stream.d.ts +0 -6
- package/dist/powersync-sdk/streaming/core/cross-stream.js +0 -17
- package/dist/powersync-sdk/streaming/core/index.d.ts +0 -4
- package/dist/powersync-sdk/streaming/core/index.js +0 -4
- package/dist/powersync-sdk/streaming/core/node-utils.d.ts +0 -7
- package/dist/powersync-sdk/streaming/core/node-utils.js +0 -11
- package/dist/powersync-sdk/streaming/core/transformers.d.ts +0 -41
- package/dist/powersync-sdk/streaming/core/transformers.js +0 -70
- package/dist/powersync-sdk/streaming/core/utils.d.ts +0 -36
- package/dist/powersync-sdk/streaming/core/utils.js +0 -66
- package/dist/powersync-sdk/streaming/index.d.ts +0 -3
- package/dist/powersync-sdk/streaming/index.js +0 -3
- package/dist/powersync-sdk/streaming/web.d.ts +0 -4
- package/dist/powersync-sdk/streaming/web.js +0 -4
- package/dist/powersync-sdk/sync-rules/@syncpoint/wkx/binaryreader.d.ts +0 -2
- package/dist/powersync-sdk/sync-rules/@syncpoint/wkx/binaryreader.js +0 -36
- package/dist/powersync-sdk/sync-rules/@syncpoint/wkx/binarywriter.d.ts +0 -2
- package/dist/powersync-sdk/sync-rules/@syncpoint/wkx/binarywriter.js +0 -58
- package/dist/powersync-sdk/sync-rules/@syncpoint/wkx/geometry.d.ts +0 -18
- package/dist/powersync-sdk/sync-rules/@syncpoint/wkx/geometry.js +0 -348
- package/dist/powersync-sdk/sync-rules/@syncpoint/wkx/geometrycollection.d.ts +0 -11
- package/dist/powersync-sdk/sync-rules/@syncpoint/wkx/geometrycollection.js +0 -118
- package/dist/powersync-sdk/sync-rules/@syncpoint/wkx/linestring.d.ts +0 -11
- package/dist/powersync-sdk/sync-rules/@syncpoint/wkx/linestring.js +0 -131
- package/dist/powersync-sdk/sync-rules/@syncpoint/wkx/multilinestring.d.ts +0 -11
- package/dist/powersync-sdk/sync-rules/@syncpoint/wkx/multilinestring.js +0 -134
- package/dist/powersync-sdk/sync-rules/@syncpoint/wkx/multipoint.d.ts +0 -11
- package/dist/powersync-sdk/sync-rules/@syncpoint/wkx/multipoint.js +0 -122
- package/dist/powersync-sdk/sync-rules/@syncpoint/wkx/multipolygon.d.ts +0 -11
- package/dist/powersync-sdk/sync-rules/@syncpoint/wkx/multipolygon.js +0 -158
- package/dist/powersync-sdk/sync-rules/@syncpoint/wkx/point.d.ts +0 -14
- package/dist/powersync-sdk/sync-rules/@syncpoint/wkx/point.js +0 -165
- package/dist/powersync-sdk/sync-rules/@syncpoint/wkx/polygon.d.ts +0 -11
- package/dist/powersync-sdk/sync-rules/@syncpoint/wkx/polygon.js +0 -207
- package/dist/powersync-sdk/sync-rules/@syncpoint/wkx/types.d.ts +0 -30
- package/dist/powersync-sdk/sync-rules/@syncpoint/wkx/types.js +0 -29
- package/dist/powersync-sdk/sync-rules/@syncpoint/wkx/wktparser.d.ts +0 -2
- package/dist/powersync-sdk/sync-rules/@syncpoint/wkx/wktparser.js +0 -111
- package/dist/powersync-sdk/sync-rules/@syncpoint/wkx/wkx.d.ts +0 -9
- package/dist/powersync-sdk/sync-rules/@syncpoint/wkx/wkx.js +0 -9
- package/dist/powersync-sdk/sync-rules/@syncpoint/wkx/zigzag.d.ts +0 -5
- package/dist/powersync-sdk/sync-rules/@syncpoint/wkx/zigzag.js +0 -9
- package/dist/powersync-sdk/sync-rules/DartSchemaGenerator.d.ts +0 -12
- package/dist/powersync-sdk/sync-rules/DartSchemaGenerator.js +0 -35
- package/dist/powersync-sdk/sync-rules/ExpressionType.d.ts +0 -33
- package/dist/powersync-sdk/sync-rules/ExpressionType.js +0 -62
- package/dist/powersync-sdk/sync-rules/IdSequence.d.ts +0 -4
- package/dist/powersync-sdk/sync-rules/IdSequence.js +0 -7
- package/dist/powersync-sdk/sync-rules/JsSchemaGenerator.d.ts +0 -12
- package/dist/powersync-sdk/sync-rules/JsSchemaGenerator.js +0 -38
- package/dist/powersync-sdk/sync-rules/SchemaGenerator.d.ts +0 -14
- package/dist/powersync-sdk/sync-rules/SchemaGenerator.js +0 -24
- package/dist/powersync-sdk/sync-rules/SourceTableInterface.d.ts +0 -5
- package/dist/powersync-sdk/sync-rules/SourceTableInterface.js +0 -1
- package/dist/powersync-sdk/sync-rules/SqlBucketDescriptor.d.ts +0 -37
- package/dist/powersync-sdk/sync-rules/SqlBucketDescriptor.js +0 -116
- package/dist/powersync-sdk/sync-rules/SqlDataQuery.d.ts +0 -39
- package/dist/powersync-sdk/sync-rules/SqlDataQuery.js +0 -245
- package/dist/powersync-sdk/sync-rules/SqlParameterQuery.d.ts +0 -43
- package/dist/powersync-sdk/sync-rules/SqlParameterQuery.js +0 -254
- package/dist/powersync-sdk/sync-rules/SqlSyncRules.d.ts +0 -52
- package/dist/powersync-sdk/sync-rules/SqlSyncRules.js +0 -252
- package/dist/powersync-sdk/sync-rules/StaticSchema.d.ts +0 -26
- package/dist/powersync-sdk/sync-rules/StaticSchema.js +0 -71
- package/dist/powersync-sdk/sync-rules/StaticSqlParameterQuery.d.ts +0 -24
- package/dist/powersync-sdk/sync-rules/StaticSqlParameterQuery.js +0 -71
- package/dist/powersync-sdk/sync-rules/TablePattern.d.ts +0 -17
- package/dist/powersync-sdk/sync-rules/TablePattern.js +0 -56
- package/dist/powersync-sdk/sync-rules/TableQuerySchema.d.ts +0 -9
- package/dist/powersync-sdk/sync-rules/TableQuerySchema.js +0 -41
- package/dist/powersync-sdk/sync-rules/errors.d.ts +0 -22
- package/dist/powersync-sdk/sync-rules/errors.js +0 -60
- package/dist/powersync-sdk/sync-rules/generators.d.ts +0 -6
- package/dist/powersync-sdk/sync-rules/generators.js +0 -6
- package/dist/powersync-sdk/sync-rules/index.d.ts +0 -17
- package/dist/powersync-sdk/sync-rules/index.js +0 -17
- package/dist/powersync-sdk/sync-rules/json_schema.d.ts +0 -3
- package/dist/powersync-sdk/sync-rules/json_schema.js +0 -50
- package/dist/powersync-sdk/sync-rules/sql_filters.d.ts +0 -91
- package/dist/powersync-sdk/sync-rules/sql_filters.js +0 -491
- package/dist/powersync-sdk/sync-rules/sql_functions.d.ts +0 -53
- package/dist/powersync-sdk/sync-rules/sql_functions.js +0 -755
- package/dist/powersync-sdk/sync-rules/sql_support.d.ts +0 -22
- package/dist/powersync-sdk/sync-rules/sql_support.js +0 -208
- package/dist/powersync-sdk/sync-rules/types.d.ts +0 -174
- package/dist/powersync-sdk/sync-rules/types.js +0 -9
- package/dist/powersync-sdk/sync-rules/utils.d.ts +0 -45
- package/dist/powersync-sdk/sync-rules/utils.js +0 -163
- package/dist/service/accounts.client.d.ts +0 -26
- package/dist/service/powersync.client.d.ts +0 -269
- package/dist/service/types.d.ts +0 -69
- package/dist/service/utils.d.ts +0 -5
|
@@ -1,269 +0,0 @@
|
|
|
1
|
-
import 'dotenv/config';
|
|
2
|
-
import { Client } from '../powersync-sdk/powersync/client.js';
|
|
3
|
-
import { type DeployConfig } from './types.js';
|
|
4
|
-
export declare enum ENV_VARIABLES {
|
|
5
|
-
APP_ID = "APP_ID",
|
|
6
|
-
CARDINAL_TOKEN = "CARDINAL_TOKEN",
|
|
7
|
-
INSTANCE_ID = "INSTANCE_ID",
|
|
8
|
-
ORG_ID = "ORG_ID"
|
|
9
|
-
}
|
|
10
|
-
export declare const powerSyncClient: (requiresInstanceId?: boolean) => Client<import("../powersync-sdk/fetch-clients/web-client.js").WebNetworkClient>;
|
|
11
|
-
export declare const getInstancesList: () => Promise<{
|
|
12
|
-
instances: {
|
|
13
|
-
name: string;
|
|
14
|
-
id: string;
|
|
15
|
-
}[];
|
|
16
|
-
}>;
|
|
17
|
-
export declare const getInstanceConfig: () => Promise<{
|
|
18
|
-
name: string;
|
|
19
|
-
id: string;
|
|
20
|
-
config?: {
|
|
21
|
-
region: string;
|
|
22
|
-
api?: {
|
|
23
|
-
tokens?: ({
|
|
24
|
-
secret: string;
|
|
25
|
-
} | {
|
|
26
|
-
secret_ref: string;
|
|
27
|
-
})[] | undefined;
|
|
28
|
-
} | undefined;
|
|
29
|
-
client_auth?: {
|
|
30
|
-
additional_audiences?: string[] | undefined;
|
|
31
|
-
allow_temporary_tokens?: boolean | undefined;
|
|
32
|
-
jwks?: {
|
|
33
|
-
keys: ({
|
|
34
|
-
e: string;
|
|
35
|
-
kty: "RSA";
|
|
36
|
-
n: string;
|
|
37
|
-
kid: string;
|
|
38
|
-
alg?: "RS256" | "RS384" | "RS512" | undefined;
|
|
39
|
-
use?: string | undefined;
|
|
40
|
-
} | {
|
|
41
|
-
k: {
|
|
42
|
-
secret: string;
|
|
43
|
-
} | {
|
|
44
|
-
secret_ref: string;
|
|
45
|
-
};
|
|
46
|
-
kty: "oct";
|
|
47
|
-
alg: "HS256" | "HS384" | "HS512";
|
|
48
|
-
kid: string;
|
|
49
|
-
use?: string | undefined;
|
|
50
|
-
})[];
|
|
51
|
-
} | undefined;
|
|
52
|
-
jwks_uri?: string | undefined;
|
|
53
|
-
supabase?: boolean | undefined;
|
|
54
|
-
} | undefined;
|
|
55
|
-
dev?: {
|
|
56
|
-
crud_api?: boolean | undefined;
|
|
57
|
-
demo_auth?: boolean | undefined;
|
|
58
|
-
demo_client?: boolean | undefined;
|
|
59
|
-
demo_password?: {
|
|
60
|
-
secret: string;
|
|
61
|
-
} | {
|
|
62
|
-
secret_ref: string;
|
|
63
|
-
} | undefined;
|
|
64
|
-
} | undefined;
|
|
65
|
-
replication?: {
|
|
66
|
-
connections?: ({
|
|
67
|
-
type: "postgresql";
|
|
68
|
-
uri?: string | undefined;
|
|
69
|
-
hostname?: string | undefined;
|
|
70
|
-
port?: number | undefined;
|
|
71
|
-
name?: string | undefined;
|
|
72
|
-
id?: string | undefined;
|
|
73
|
-
cacert?: string | undefined;
|
|
74
|
-
client_certificate?: string | undefined;
|
|
75
|
-
client_private_key?: {
|
|
76
|
-
secret: string;
|
|
77
|
-
} | {
|
|
78
|
-
secret_ref: string;
|
|
79
|
-
} | undefined;
|
|
80
|
-
database?: string | undefined;
|
|
81
|
-
debug_api?: boolean | undefined;
|
|
82
|
-
password?: {
|
|
83
|
-
secret: string;
|
|
84
|
-
} | {
|
|
85
|
-
secret_ref: string;
|
|
86
|
-
} | undefined;
|
|
87
|
-
sslmode?: "verify-full" | "verify-ca" | undefined;
|
|
88
|
-
tag?: string | undefined;
|
|
89
|
-
username?: string | undefined;
|
|
90
|
-
} | {
|
|
91
|
-
type: "postgresql-demo";
|
|
92
|
-
tag?: string | undefined;
|
|
93
|
-
})[] | undefined;
|
|
94
|
-
} | undefined;
|
|
95
|
-
} | undefined;
|
|
96
|
-
sync_rules?: string | undefined;
|
|
97
|
-
}>;
|
|
98
|
-
export declare const getInstanceDiagnostics: () => Promise<{
|
|
99
|
-
connections: {
|
|
100
|
-
id: string;
|
|
101
|
-
errors: {
|
|
102
|
-
message: string;
|
|
103
|
-
level: "warning" | "fatal";
|
|
104
|
-
}[];
|
|
105
|
-
connected: boolean;
|
|
106
|
-
postgres_uri: string;
|
|
107
|
-
}[];
|
|
108
|
-
active_sync_rules?: {
|
|
109
|
-
connections: {
|
|
110
|
-
id: string;
|
|
111
|
-
tag: string;
|
|
112
|
-
initial_replication_done: boolean;
|
|
113
|
-
slot_name: string;
|
|
114
|
-
tables: {
|
|
115
|
-
name: string;
|
|
116
|
-
data_queries: boolean;
|
|
117
|
-
errors: {
|
|
118
|
-
message: string;
|
|
119
|
-
level: "warning" | "fatal";
|
|
120
|
-
}[];
|
|
121
|
-
parameter_queries: boolean;
|
|
122
|
-
replication_id: string[];
|
|
123
|
-
schema: string;
|
|
124
|
-
pattern?: string | undefined;
|
|
125
|
-
}[];
|
|
126
|
-
last_checkpoint_ts?: string | undefined;
|
|
127
|
-
last_keepalive_ts?: string | undefined;
|
|
128
|
-
last_lsn?: string | undefined;
|
|
129
|
-
replication_lag_bytes?: number | undefined;
|
|
130
|
-
}[];
|
|
131
|
-
errors: {
|
|
132
|
-
message: string;
|
|
133
|
-
level: "warning" | "fatal";
|
|
134
|
-
}[];
|
|
135
|
-
content?: string | undefined;
|
|
136
|
-
} | undefined;
|
|
137
|
-
deploying_sync_rules?: {
|
|
138
|
-
connections: {
|
|
139
|
-
id: string;
|
|
140
|
-
tag: string;
|
|
141
|
-
initial_replication_done: boolean;
|
|
142
|
-
slot_name: string;
|
|
143
|
-
tables: {
|
|
144
|
-
name: string;
|
|
145
|
-
data_queries: boolean;
|
|
146
|
-
errors: {
|
|
147
|
-
message: string;
|
|
148
|
-
level: "warning" | "fatal";
|
|
149
|
-
}[];
|
|
150
|
-
parameter_queries: boolean;
|
|
151
|
-
replication_id: string[];
|
|
152
|
-
schema: string;
|
|
153
|
-
pattern?: string | undefined;
|
|
154
|
-
}[];
|
|
155
|
-
last_checkpoint_ts?: string | undefined;
|
|
156
|
-
last_keepalive_ts?: string | undefined;
|
|
157
|
-
last_lsn?: string | undefined;
|
|
158
|
-
replication_lag_bytes?: number | undefined;
|
|
159
|
-
}[];
|
|
160
|
-
errors: {
|
|
161
|
-
message: string;
|
|
162
|
-
level: "warning" | "fatal";
|
|
163
|
-
}[];
|
|
164
|
-
content?: string | undefined;
|
|
165
|
-
} | undefined;
|
|
166
|
-
}>;
|
|
167
|
-
export declare const getInstanceSchema: () => Promise<{
|
|
168
|
-
connections: {
|
|
169
|
-
tag: string;
|
|
170
|
-
schemas: {
|
|
171
|
-
name: string;
|
|
172
|
-
tables: {
|
|
173
|
-
name: string;
|
|
174
|
-
columns: {
|
|
175
|
-
name: string;
|
|
176
|
-
type: string;
|
|
177
|
-
pg_type: string;
|
|
178
|
-
}[];
|
|
179
|
-
}[];
|
|
180
|
-
}[];
|
|
181
|
-
id?: string | undefined;
|
|
182
|
-
}[];
|
|
183
|
-
}>;
|
|
184
|
-
export declare const getInstanceStatus: (instanceId?: string) => Promise<{
|
|
185
|
-
id: string;
|
|
186
|
-
operations: {
|
|
187
|
-
type: "up" | "down";
|
|
188
|
-
id: string;
|
|
189
|
-
created_at: string;
|
|
190
|
-
status: "pending" | "running" | "failed" | "completed";
|
|
191
|
-
finished_at?: string | undefined;
|
|
192
|
-
started_at?: string | undefined;
|
|
193
|
-
}[];
|
|
194
|
-
provisioned: boolean;
|
|
195
|
-
instance_url?: string | undefined;
|
|
196
|
-
}>;
|
|
197
|
-
export declare const destroyInstance: () => Promise<{
|
|
198
|
-
id: string;
|
|
199
|
-
operation_id?: string | undefined;
|
|
200
|
-
}>;
|
|
201
|
-
export declare const deactivateInstance: () => Promise<{
|
|
202
|
-
id: string;
|
|
203
|
-
operation_id?: string | undefined;
|
|
204
|
-
}>;
|
|
205
|
-
export declare const createInstance: (name: string) => Promise<{
|
|
206
|
-
id: string;
|
|
207
|
-
}>;
|
|
208
|
-
export declare const testConnection: (connection: any) => Promise<{
|
|
209
|
-
connection: {
|
|
210
|
-
success: boolean;
|
|
211
|
-
reachable: boolean;
|
|
212
|
-
authenticated?: boolean | undefined;
|
|
213
|
-
suggested_cacert?: string | undefined;
|
|
214
|
-
suggested_sslmode?: string | undefined;
|
|
215
|
-
tls_valid?: boolean | undefined;
|
|
216
|
-
};
|
|
217
|
-
success: boolean;
|
|
218
|
-
error?: string | undefined;
|
|
219
|
-
configuration?: {
|
|
220
|
-
success: boolean;
|
|
221
|
-
publication_valid?: boolean | undefined;
|
|
222
|
-
wal_valid?: boolean | undefined;
|
|
223
|
-
} | undefined;
|
|
224
|
-
}>;
|
|
225
|
-
export declare const deployInstance: (config: DeployConfig, instanceId: string) => Promise<{
|
|
226
|
-
id: string;
|
|
227
|
-
operation_id: string;
|
|
228
|
-
}>;
|
|
229
|
-
export declare const validateSyncRules: (syncRules: string) => Promise<{
|
|
230
|
-
connections: {
|
|
231
|
-
id: string;
|
|
232
|
-
tag: string;
|
|
233
|
-
initial_replication_done: boolean;
|
|
234
|
-
slot_name: string;
|
|
235
|
-
tables: {
|
|
236
|
-
name: string;
|
|
237
|
-
data_queries: boolean;
|
|
238
|
-
errors: {
|
|
239
|
-
message: string;
|
|
240
|
-
level: "warning" | "fatal";
|
|
241
|
-
}[];
|
|
242
|
-
parameter_queries: boolean;
|
|
243
|
-
replication_id: string[];
|
|
244
|
-
schema: string;
|
|
245
|
-
pattern?: string | undefined;
|
|
246
|
-
}[];
|
|
247
|
-
last_checkpoint_ts?: string | undefined;
|
|
248
|
-
last_keepalive_ts?: string | undefined;
|
|
249
|
-
last_lsn?: string | undefined;
|
|
250
|
-
replication_lag_bytes?: number | undefined;
|
|
251
|
-
}[];
|
|
252
|
-
errors: {
|
|
253
|
-
message: string;
|
|
254
|
-
level: "warning" | "fatal";
|
|
255
|
-
}[];
|
|
256
|
-
content?: string | undefined;
|
|
257
|
-
}>;
|
|
258
|
-
export declare const deploySyncRules: (syncRules: string) => Promise<{
|
|
259
|
-
id: string;
|
|
260
|
-
operation_id: string;
|
|
261
|
-
}>;
|
|
262
|
-
export declare const processSyncRules: () => Promise<{
|
|
263
|
-
connections: {
|
|
264
|
-
tag: string;
|
|
265
|
-
slot_name: string;
|
|
266
|
-
id?: string | undefined;
|
|
267
|
-
}[];
|
|
268
|
-
}>;
|
|
269
|
-
export declare const waitForStatusChange: (instanceId: string) => Promise<"failed" | "completed">;
|
package/dist/service/types.d.ts
DELETED
|
@@ -1,69 +0,0 @@
|
|
|
1
|
-
export type DeployConfig = {
|
|
2
|
-
client_auth?: {
|
|
3
|
-
additional_audiences?: string[] | undefined;
|
|
4
|
-
allow_temporary_tokens?: boolean | undefined;
|
|
5
|
-
jwks?: {
|
|
6
|
-
keys: ({
|
|
7
|
-
alg: 'HS256' | 'HS384' | 'HS512';
|
|
8
|
-
k: {
|
|
9
|
-
secret: string;
|
|
10
|
-
} | {
|
|
11
|
-
secret_ref: string;
|
|
12
|
-
};
|
|
13
|
-
kid: string;
|
|
14
|
-
kty: 'oct';
|
|
15
|
-
use?: string | undefined;
|
|
16
|
-
} | {
|
|
17
|
-
alg?: 'RS256' | 'RS384' | 'RS512' | undefined;
|
|
18
|
-
e: string;
|
|
19
|
-
kid: string;
|
|
20
|
-
kty: 'RSA';
|
|
21
|
-
n: string;
|
|
22
|
-
use?: string | undefined;
|
|
23
|
-
})[];
|
|
24
|
-
} | undefined;
|
|
25
|
-
jwks_uri?: string | undefined;
|
|
26
|
-
supabase?: boolean | undefined;
|
|
27
|
-
} | undefined;
|
|
28
|
-
dev?: {
|
|
29
|
-
crud_api?: boolean | undefined;
|
|
30
|
-
demo_auth?: boolean | undefined;
|
|
31
|
-
demo_client?: boolean | undefined;
|
|
32
|
-
demo_password?: {
|
|
33
|
-
secret: string;
|
|
34
|
-
} | {
|
|
35
|
-
secret_ref: string;
|
|
36
|
-
} | undefined;
|
|
37
|
-
} | undefined;
|
|
38
|
-
region: string;
|
|
39
|
-
replication?: {
|
|
40
|
-
connections?: ({
|
|
41
|
-
cacert?: string | undefined;
|
|
42
|
-
client_certificate?: string | undefined;
|
|
43
|
-
client_private_key?: {
|
|
44
|
-
secret: string;
|
|
45
|
-
} | {
|
|
46
|
-
secret_ref: string;
|
|
47
|
-
} | undefined;
|
|
48
|
-
database?: string | undefined;
|
|
49
|
-
debug_api?: boolean | undefined;
|
|
50
|
-
hostname?: string | undefined;
|
|
51
|
-
id?: string | undefined;
|
|
52
|
-
name?: string | undefined;
|
|
53
|
-
password?: {
|
|
54
|
-
secret: string;
|
|
55
|
-
} | {
|
|
56
|
-
secret_ref: string;
|
|
57
|
-
} | undefined;
|
|
58
|
-
port?: number | undefined;
|
|
59
|
-
sslmode?: 'verify-ca' | 'verify-full' | undefined;
|
|
60
|
-
tag?: string | undefined;
|
|
61
|
-
type: 'postgresql';
|
|
62
|
-
uri?: string | undefined;
|
|
63
|
-
username?: string | undefined;
|
|
64
|
-
} | {
|
|
65
|
-
tag?: string | undefined;
|
|
66
|
-
type: 'postgresql-demo';
|
|
67
|
-
})[] | undefined;
|
|
68
|
-
} | undefined;
|
|
69
|
-
};
|