@powersync/management-types 0.0.0-dev.9f1dde73 → 0.0.0-dev.ec9d802b
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/config/HostedConfig.d.ts +47 -119
- package/dist/config/connections/HostedMSSQLConnection.d.ts +92 -128
- package/dist/config/connections/HostedMSSQLConnection.js +57 -11
- package/dist/config/connections/HostedMSSQLConnection.js.map +1 -1
- package/dist/routes/dev-routes.d.ts +29 -39
- package/dist/routes/manage-routes.d.ts +71 -80
- package/json-schema/powersync-config.json +26 -2
- package/package.json +2 -3
|
@@ -1,19 +1,12 @@
|
|
|
1
1
|
import * as t from 'ts-codec';
|
|
2
2
|
import { ConnectionType } from './ConnectionType.js';
|
|
3
|
-
export declare const DefaultAuthenticationHosted: t.
|
|
4
|
-
type: "default"
|
|
5
|
-
options: {
|
|
6
|
-
password: string;
|
|
7
|
-
userName: string;
|
|
8
|
-
};
|
|
9
|
-
}, {
|
|
10
|
-
type: "default";
|
|
11
|
-
options: {
|
|
12
|
-
password: string;
|
|
13
|
-
userName: string;
|
|
14
|
-
};
|
|
15
|
-
}, string, t.CodecProps>, t.ObjectCodec<{
|
|
3
|
+
export declare const DefaultAuthenticationHosted: t.ObjectCodec<{
|
|
4
|
+
type: t.LiteralCodec<"default">;
|
|
16
5
|
options: t.ObjectCodec<{
|
|
6
|
+
/**
|
|
7
|
+
* User name to use for sql server login.
|
|
8
|
+
*/
|
|
9
|
+
userName: t.IdentityCodec<t.CodecType.String>;
|
|
17
10
|
password: t.Union<t.Codec<{
|
|
18
11
|
secret_ref: string;
|
|
19
12
|
}, {
|
|
@@ -22,26 +15,18 @@ export declare const DefaultAuthenticationHosted: t.Intersection<t.Codec<{
|
|
|
22
15
|
secret: t.IdentityCodec<t.CodecType.String>;
|
|
23
16
|
}>>;
|
|
24
17
|
}>;
|
|
25
|
-
}
|
|
18
|
+
}>;
|
|
26
19
|
export type DefaultAuthenticationHosted = t.Encoded<typeof DefaultAuthenticationHosted>;
|
|
27
|
-
export declare const AzureActiveDirectoryPasswordAuthenticationHosted: t.
|
|
28
|
-
type: "azure-active-directory-password"
|
|
29
|
-
options: {
|
|
30
|
-
password: string;
|
|
31
|
-
userName: string;
|
|
32
|
-
clientId: string;
|
|
33
|
-
tenantId: string;
|
|
34
|
-
};
|
|
35
|
-
}, {
|
|
36
|
-
type: "azure-active-directory-password";
|
|
37
|
-
options: {
|
|
38
|
-
password: string;
|
|
39
|
-
userName: string;
|
|
40
|
-
clientId: string;
|
|
41
|
-
tenantId: string;
|
|
42
|
-
};
|
|
43
|
-
}, string, t.CodecProps>, t.ObjectCodec<{
|
|
20
|
+
export declare const AzureActiveDirectoryPasswordAuthenticationHosted: t.ObjectCodec<{
|
|
21
|
+
type: t.LiteralCodec<"azure-active-directory-password">;
|
|
44
22
|
options: t.ObjectCodec<{
|
|
23
|
+
/**
|
|
24
|
+
* A user need to provide `userName` associate to their account.
|
|
25
|
+
*/
|
|
26
|
+
userName: t.IdentityCodec<t.CodecType.String>;
|
|
27
|
+
/**
|
|
28
|
+
* A user need to provide `password` associate to their account.
|
|
29
|
+
*/
|
|
45
30
|
password: t.Union<t.Codec<{
|
|
46
31
|
secret_ref: string;
|
|
47
32
|
}, {
|
|
@@ -49,25 +34,27 @@ export declare const AzureActiveDirectoryPasswordAuthenticationHosted: t.Interse
|
|
|
49
34
|
}, string, t.CodecProps>, t.ObjectCodec<{
|
|
50
35
|
secret: t.IdentityCodec<t.CodecType.String>;
|
|
51
36
|
}>>;
|
|
37
|
+
/**
|
|
38
|
+
* A client id to use.
|
|
39
|
+
*/
|
|
40
|
+
clientId: t.IdentityCodec<t.CodecType.String>;
|
|
41
|
+
/**
|
|
42
|
+
* Azure tenant ID
|
|
43
|
+
*/
|
|
44
|
+
tenantId: t.IdentityCodec<t.CodecType.String>;
|
|
52
45
|
}>;
|
|
53
|
-
}
|
|
46
|
+
}>;
|
|
54
47
|
export type AzureActiveDirectoryPasswordAuthenticationHosted = t.Encoded<typeof AzureActiveDirectoryPasswordAuthenticationHosted>;
|
|
55
|
-
export declare const AzureActiveDirectoryServicePrincipalSecretHosted: t.
|
|
56
|
-
type: "azure-active-directory-service-principal-secret"
|
|
57
|
-
options: {
|
|
58
|
-
clientId: string;
|
|
59
|
-
tenantId: string;
|
|
60
|
-
clientSecret: string;
|
|
61
|
-
};
|
|
62
|
-
}, {
|
|
63
|
-
type: "azure-active-directory-service-principal-secret";
|
|
64
|
-
options: {
|
|
65
|
-
clientId: string;
|
|
66
|
-
tenantId: string;
|
|
67
|
-
clientSecret: string;
|
|
68
|
-
};
|
|
69
|
-
}, string, t.CodecProps>, t.ObjectCodec<{
|
|
48
|
+
export declare const AzureActiveDirectoryServicePrincipalSecretHosted: t.ObjectCodec<{
|
|
49
|
+
type: t.LiteralCodec<"azure-active-directory-service-principal-secret">;
|
|
70
50
|
options: t.ObjectCodec<{
|
|
51
|
+
/**
|
|
52
|
+
* Application (`client`) ID from your registered Azure application
|
|
53
|
+
*/
|
|
54
|
+
clientId: t.IdentityCodec<t.CodecType.String>;
|
|
55
|
+
/**
|
|
56
|
+
* The created `client secret` for this registered Azure application
|
|
57
|
+
*/
|
|
71
58
|
clientSecret: t.Union<t.Codec<{
|
|
72
59
|
secret_ref: string;
|
|
73
60
|
}, {
|
|
@@ -75,85 +62,67 @@ export declare const AzureActiveDirectoryServicePrincipalSecretHosted: t.Interse
|
|
|
75
62
|
}, string, t.CodecProps>, t.ObjectCodec<{
|
|
76
63
|
secret: t.IdentityCodec<t.CodecType.String>;
|
|
77
64
|
}>>;
|
|
65
|
+
/**
|
|
66
|
+
* Directory (`tenant`) ID from your registered Azure application
|
|
67
|
+
*/
|
|
68
|
+
tenantId: t.IdentityCodec<t.CodecType.String>;
|
|
78
69
|
}>;
|
|
79
|
-
}
|
|
70
|
+
}>;
|
|
80
71
|
export type AzureActiveDirectoryServicePrincipalSecretHosted = t.Encoded<typeof AzureActiveDirectoryServicePrincipalSecretHosted>;
|
|
81
|
-
export declare const AuthenticationHosted: t.Union<t.Codec<
|
|
72
|
+
export declare const AuthenticationHosted: t.Union<t.Codec<{
|
|
82
73
|
type: "default";
|
|
83
|
-
options: {
|
|
84
|
-
password: string;
|
|
85
|
-
userName: string;
|
|
86
|
-
};
|
|
87
|
-
} & {
|
|
88
74
|
options: {
|
|
89
75
|
password: {
|
|
90
76
|
secret: string;
|
|
91
77
|
} | {
|
|
92
78
|
secret_ref: string;
|
|
93
79
|
};
|
|
94
|
-
};
|
|
95
|
-
}) | ({
|
|
96
|
-
type: "azure-active-directory-password";
|
|
97
|
-
options: {
|
|
98
|
-
password: string;
|
|
99
80
|
userName: string;
|
|
100
|
-
clientId: string;
|
|
101
|
-
tenantId: string;
|
|
102
81
|
};
|
|
103
|
-
}
|
|
82
|
+
} | {
|
|
83
|
+
type: "azure-active-directory-password";
|
|
104
84
|
options: {
|
|
105
85
|
password: {
|
|
106
86
|
secret: string;
|
|
107
87
|
} | {
|
|
108
88
|
secret_ref: string;
|
|
109
89
|
};
|
|
110
|
-
};
|
|
111
|
-
}), ({
|
|
112
|
-
type: "default";
|
|
113
|
-
options: {
|
|
114
|
-
password: string;
|
|
115
90
|
userName: string;
|
|
91
|
+
clientId: string;
|
|
92
|
+
tenantId: string;
|
|
116
93
|
};
|
|
117
|
-
}
|
|
94
|
+
}, {
|
|
95
|
+
type: "default";
|
|
118
96
|
options: {
|
|
119
97
|
password: {
|
|
120
98
|
secret: string;
|
|
121
99
|
} | {
|
|
122
100
|
secret_ref: string;
|
|
123
101
|
};
|
|
124
|
-
};
|
|
125
|
-
}) | ({
|
|
126
|
-
type: "azure-active-directory-password";
|
|
127
|
-
options: {
|
|
128
|
-
password: string;
|
|
129
102
|
userName: string;
|
|
130
|
-
clientId: string;
|
|
131
|
-
tenantId: string;
|
|
132
103
|
};
|
|
133
|
-
}
|
|
104
|
+
} | {
|
|
105
|
+
type: "azure-active-directory-password";
|
|
134
106
|
options: {
|
|
135
107
|
password: {
|
|
136
108
|
secret: string;
|
|
137
109
|
} | {
|
|
138
110
|
secret_ref: string;
|
|
139
111
|
};
|
|
140
|
-
|
|
141
|
-
}), string, t.CodecProps>, t.Intersection<t.Codec<{
|
|
142
|
-
type: "azure-active-directory-service-principal-secret";
|
|
143
|
-
options: {
|
|
144
|
-
clientId: string;
|
|
145
|
-
tenantId: string;
|
|
146
|
-
clientSecret: string;
|
|
147
|
-
};
|
|
148
|
-
}, {
|
|
149
|
-
type: "azure-active-directory-service-principal-secret";
|
|
150
|
-
options: {
|
|
112
|
+
userName: string;
|
|
151
113
|
clientId: string;
|
|
152
114
|
tenantId: string;
|
|
153
|
-
clientSecret: string;
|
|
154
115
|
};
|
|
155
116
|
}, string, t.CodecProps>, t.ObjectCodec<{
|
|
117
|
+
type: t.LiteralCodec<"azure-active-directory-service-principal-secret">;
|
|
156
118
|
options: t.ObjectCodec<{
|
|
119
|
+
/**
|
|
120
|
+
* Application (`client`) ID from your registered Azure application
|
|
121
|
+
*/
|
|
122
|
+
clientId: t.IdentityCodec<t.CodecType.String>;
|
|
123
|
+
/**
|
|
124
|
+
* The created `client secret` for this registered Azure application
|
|
125
|
+
*/
|
|
157
126
|
clientSecret: t.Union<t.Codec<{
|
|
158
127
|
secret_ref: string;
|
|
159
128
|
}, {
|
|
@@ -161,9 +130,28 @@ export declare const AuthenticationHosted: t.Union<t.Codec<({
|
|
|
161
130
|
}, string, t.CodecProps>, t.ObjectCodec<{
|
|
162
131
|
secret: t.IdentityCodec<t.CodecType.String>;
|
|
163
132
|
}>>;
|
|
133
|
+
/**
|
|
134
|
+
* Directory (`tenant`) ID from your registered Azure application
|
|
135
|
+
*/
|
|
136
|
+
tenantId: t.IdentityCodec<t.CodecType.String>;
|
|
164
137
|
}>;
|
|
165
|
-
}
|
|
138
|
+
}>>;
|
|
166
139
|
export type AuthenticationHosted = t.Encoded<typeof AuthenticationHosted>;
|
|
140
|
+
export declare const AdditionalConfig: t.ObjectCodec<{
|
|
141
|
+
/**
|
|
142
|
+
* Interval in milliseconds to wait between polling cycles. Defaults to 1000 milliseconds.
|
|
143
|
+
*/
|
|
144
|
+
pollingIntervalMs: t.OptionalCodec<t.Codec<number, number, string, t.CodecProps>>;
|
|
145
|
+
/**
|
|
146
|
+
* Maximum number of transactions to poll per polling cycle. Defaults to 10.
|
|
147
|
+
*/
|
|
148
|
+
pollingBatchSize: t.OptionalCodec<t.Codec<number, number, string, t.CodecProps>>;
|
|
149
|
+
/**
|
|
150
|
+
* Whether to trust the server certificate. Set to true for local development and self-signed certificates.
|
|
151
|
+
* Default is false.
|
|
152
|
+
*/
|
|
153
|
+
trustServerCertificate: t.OptionalCodec<t.Codec<boolean, boolean, string, t.CodecProps>>;
|
|
154
|
+
}>;
|
|
167
155
|
export declare const HostedMSSQLConnection: t.Intersection<t.Codec<{
|
|
168
156
|
type: ConnectionType;
|
|
169
157
|
name?: string | undefined;
|
|
@@ -198,97 +186,73 @@ export declare const HostedMSSQLConnection: t.Intersection<t.Codec<{
|
|
|
198
186
|
* Authentication method to use when connecting to the database.
|
|
199
187
|
* When not specified, 'default' username & password authentication is used.
|
|
200
188
|
*/
|
|
201
|
-
authentication: t.OptionalCodec<t.Codec<
|
|
189
|
+
authentication: t.OptionalCodec<t.Codec<{
|
|
202
190
|
type: "default";
|
|
203
|
-
options: {
|
|
204
|
-
password: string;
|
|
205
|
-
userName: string;
|
|
206
|
-
};
|
|
207
|
-
} & {
|
|
208
191
|
options: {
|
|
209
192
|
password: {
|
|
210
193
|
secret: string;
|
|
211
194
|
} | {
|
|
212
195
|
secret_ref: string;
|
|
213
196
|
};
|
|
214
|
-
};
|
|
215
|
-
}) | ({
|
|
216
|
-
type: "azure-active-directory-password";
|
|
217
|
-
options: {
|
|
218
|
-
password: string;
|
|
219
197
|
userName: string;
|
|
220
|
-
clientId: string;
|
|
221
|
-
tenantId: string;
|
|
222
198
|
};
|
|
223
|
-
}
|
|
199
|
+
} | {
|
|
200
|
+
type: "azure-active-directory-password";
|
|
224
201
|
options: {
|
|
225
202
|
password: {
|
|
226
203
|
secret: string;
|
|
227
204
|
} | {
|
|
228
205
|
secret_ref: string;
|
|
229
206
|
};
|
|
207
|
+
userName: string;
|
|
208
|
+
clientId: string;
|
|
209
|
+
tenantId: string;
|
|
230
210
|
};
|
|
231
|
-
}
|
|
211
|
+
} | {
|
|
232
212
|
type: "azure-active-directory-service-principal-secret";
|
|
233
213
|
options: {
|
|
234
214
|
clientId: string;
|
|
235
215
|
tenantId: string;
|
|
236
|
-
clientSecret: string;
|
|
237
|
-
};
|
|
238
|
-
} & {
|
|
239
|
-
options: {
|
|
240
216
|
clientSecret: {
|
|
241
217
|
secret: string;
|
|
242
218
|
} | {
|
|
243
219
|
secret_ref: string;
|
|
244
220
|
};
|
|
245
221
|
};
|
|
246
|
-
}
|
|
222
|
+
}, {
|
|
247
223
|
type: "default";
|
|
248
|
-
options: {
|
|
249
|
-
password: string;
|
|
250
|
-
userName: string;
|
|
251
|
-
};
|
|
252
|
-
} & {
|
|
253
224
|
options: {
|
|
254
225
|
password: {
|
|
255
226
|
secret: string;
|
|
256
227
|
} | {
|
|
257
228
|
secret_ref: string;
|
|
258
229
|
};
|
|
259
|
-
};
|
|
260
|
-
}) | ({
|
|
261
|
-
type: "azure-active-directory-password";
|
|
262
|
-
options: {
|
|
263
|
-
password: string;
|
|
264
230
|
userName: string;
|
|
265
|
-
clientId: string;
|
|
266
|
-
tenantId: string;
|
|
267
231
|
};
|
|
268
|
-
}
|
|
232
|
+
} | {
|
|
233
|
+
type: "azure-active-directory-password";
|
|
269
234
|
options: {
|
|
270
235
|
password: {
|
|
271
236
|
secret: string;
|
|
272
237
|
} | {
|
|
273
238
|
secret_ref: string;
|
|
274
239
|
};
|
|
240
|
+
userName: string;
|
|
241
|
+
clientId: string;
|
|
242
|
+
tenantId: string;
|
|
275
243
|
};
|
|
276
|
-
}
|
|
244
|
+
} | {
|
|
277
245
|
type: "azure-active-directory-service-principal-secret";
|
|
278
246
|
options: {
|
|
279
247
|
clientId: string;
|
|
280
248
|
tenantId: string;
|
|
281
|
-
clientSecret: string;
|
|
282
|
-
};
|
|
283
|
-
} & {
|
|
284
|
-
options: {
|
|
285
249
|
clientSecret: {
|
|
286
250
|
secret: string;
|
|
287
251
|
} | {
|
|
288
252
|
secret_ref: string;
|
|
289
253
|
};
|
|
290
254
|
};
|
|
291
|
-
}
|
|
255
|
+
}, string, t.CodecProps>>;
|
|
292
256
|
/**
|
|
293
257
|
* Additional configuration options for tweaking replicator and connection behavior.
|
|
294
258
|
*/
|
|
@@ -1,25 +1,71 @@
|
|
|
1
|
-
import * as mssql_types from '@powersync/service-module-mssql/types';
|
|
2
1
|
import * as t from 'ts-codec';
|
|
3
2
|
import { HostedSecret } from '../HostedSecret.js';
|
|
4
3
|
import { ConnectionType } from './ConnectionType.js';
|
|
5
4
|
import { DataSourceConfig } from './HostedDatabaseSourceConfig.js';
|
|
6
|
-
|
|
7
|
-
|
|
5
|
+
export const DefaultAuthenticationHosted = t.object({
|
|
6
|
+
type: t.literal('default'),
|
|
8
7
|
options: t.object({
|
|
8
|
+
/**
|
|
9
|
+
* User name to use for sql server login.
|
|
10
|
+
*/
|
|
11
|
+
userName: t.string,
|
|
9
12
|
password: HostedSecret
|
|
10
13
|
})
|
|
11
|
-
})
|
|
12
|
-
export const AzureActiveDirectoryPasswordAuthenticationHosted =
|
|
14
|
+
});
|
|
15
|
+
export const AzureActiveDirectoryPasswordAuthenticationHosted = t.object({
|
|
16
|
+
type: t.literal('azure-active-directory-password'),
|
|
13
17
|
options: t.object({
|
|
14
|
-
|
|
18
|
+
/**
|
|
19
|
+
* A user need to provide `userName` associate to their account.
|
|
20
|
+
*/
|
|
21
|
+
userName: t.string,
|
|
22
|
+
/**
|
|
23
|
+
* A user need to provide `password` associate to their account.
|
|
24
|
+
*/
|
|
25
|
+
password: HostedSecret,
|
|
26
|
+
/**
|
|
27
|
+
* A client id to use.
|
|
28
|
+
*/
|
|
29
|
+
clientId: t.string,
|
|
30
|
+
/**
|
|
31
|
+
* Azure tenant ID
|
|
32
|
+
*/
|
|
33
|
+
tenantId: t.string
|
|
15
34
|
})
|
|
16
|
-
})
|
|
17
|
-
export const AzureActiveDirectoryServicePrincipalSecretHosted =
|
|
35
|
+
});
|
|
36
|
+
export const AzureActiveDirectoryServicePrincipalSecretHosted = t.object({
|
|
37
|
+
type: t.literal('azure-active-directory-service-principal-secret'),
|
|
18
38
|
options: t.object({
|
|
19
|
-
|
|
39
|
+
/**
|
|
40
|
+
* Application (`client`) ID from your registered Azure application
|
|
41
|
+
*/
|
|
42
|
+
clientId: t.string,
|
|
43
|
+
/**
|
|
44
|
+
* The created `client secret` for this registered Azure application
|
|
45
|
+
*/
|
|
46
|
+
clientSecret: HostedSecret,
|
|
47
|
+
/**
|
|
48
|
+
* Directory (`tenant`) ID from your registered Azure application
|
|
49
|
+
*/
|
|
50
|
+
tenantId: t.string
|
|
20
51
|
})
|
|
21
|
-
})
|
|
52
|
+
});
|
|
22
53
|
export const AuthenticationHosted = DefaultAuthenticationHosted.or(AzureActiveDirectoryPasswordAuthenticationHosted).or(AzureActiveDirectoryServicePrincipalSecretHosted);
|
|
54
|
+
export const AdditionalConfig = t.object({
|
|
55
|
+
/**
|
|
56
|
+
* Interval in milliseconds to wait between polling cycles. Defaults to 1000 milliseconds.
|
|
57
|
+
*/
|
|
58
|
+
pollingIntervalMs: t.number.optional(),
|
|
59
|
+
/**
|
|
60
|
+
* Maximum number of transactions to poll per polling cycle. Defaults to 10.
|
|
61
|
+
*/
|
|
62
|
+
pollingBatchSize: t.number.optional(),
|
|
63
|
+
/**
|
|
64
|
+
* Whether to trust the server certificate. Set to true for local development and self-signed certificates.
|
|
65
|
+
* Default is false.
|
|
66
|
+
*/
|
|
67
|
+
trustServerCertificate: t.boolean.optional()
|
|
68
|
+
});
|
|
23
69
|
export const HostedMSSQLConnection = DataSourceConfig.and(t.object({
|
|
24
70
|
type: t.literal(ConnectionType.MSSQL),
|
|
25
71
|
uri: t.string.optional(),
|
|
@@ -34,7 +80,7 @@ export const HostedMSSQLConnection = DataSourceConfig.and(t.object({
|
|
|
34
80
|
/**
|
|
35
81
|
* Additional configuration options for tweaking replicator and connection behavior.
|
|
36
82
|
*/
|
|
37
|
-
additionalConfig:
|
|
83
|
+
additionalConfig: AdditionalConfig.optional(),
|
|
38
84
|
/** Expose execute-sql */
|
|
39
85
|
debug_api: t.boolean.optional()
|
|
40
86
|
}));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"HostedMSSQLConnection.js","sourceRoot":"","sources":["../../../src/config/connections/HostedMSSQLConnection.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"HostedMSSQLConnection.js","sourceRoot":"","sources":["../../../src/config/connections/HostedMSSQLConnection.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,UAAU,CAAC;AAC9B,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAClD,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AACrD,OAAO,EAAE,gBAAgB,EAAE,MAAM,iCAAiC,CAAC;AAEnE,MAAM,CAAC,MAAM,2BAA2B,GAAG,CAAC,CAAC,MAAM,CAAC;IAClD,IAAI,EAAE,CAAC,CAAC,OAAO,CAAC,SAAS,CAAC;IAC1B,OAAO,EAAE,CAAC,CAAC,MAAM,CAAC;QAChB;;WAEG;QACH,QAAQ,EAAE,CAAC,CAAC,MAAM;QAClB,QAAQ,EAAE,YAAY;KACvB,CAAC;CACH,CAAC,CAAC;AAIH,MAAM,CAAC,MAAM,gDAAgD,GAAG,CAAC,CAAC,MAAM,CAAC;IACvE,IAAI,EAAE,CAAC,CAAC,OAAO,CAAC,iCAAiC,CAAC;IAClD,OAAO,EAAE,CAAC,CAAC,MAAM,CAAC;QAChB;;WAEG;QACH,QAAQ,EAAE,CAAC,CAAC,MAAM;QAClB;;WAEG;QACH,QAAQ,EAAE,YAAY;QACtB;;WAEG;QACH,QAAQ,EAAE,CAAC,CAAC,MAAM;QAClB;;WAEG;QACH,QAAQ,EAAE,CAAC,CAAC,MAAM;KACnB,CAAC;CACH,CAAC,CAAC;AAMH,MAAM,CAAC,MAAM,gDAAgD,GAAG,CAAC,CAAC,MAAM,CAAC;IACvE,IAAI,EAAE,CAAC,CAAC,OAAO,CAAC,iDAAiD,CAAC;IAClE,OAAO,EAAE,CAAC,CAAC,MAAM,CAAC;QAChB;;WAEG;QACH,QAAQ,EAAE,CAAC,CAAC,MAAM;QAClB;;WAEG;QACH,YAAY,EAAE,YAAY;QAC1B;;WAEG;QACH,QAAQ,EAAE,CAAC,CAAC,MAAM;KACnB,CAAC;CACH,CAAC,CAAC;AAMH,MAAM,CAAC,MAAM,oBAAoB,GAAG,2BAA2B,CAAC,EAAE,CAAC,gDAAgD,CAAC,CAAC,EAAE,CACrH,gDAAgD,CACjD,CAAC;AAGF,MAAM,CAAC,MAAM,gBAAgB,GAAG,CAAC,CAAC,MAAM,CAAC;IACvC;;OAEG;IACH,iBAAiB,EAAE,CAAC,CAAC,MAAM,CAAC,QAAQ,EAAE;IACtC;;OAEG;IACH,gBAAgB,EAAE,CAAC,CAAC,MAAM,CAAC,QAAQ,EAAE;IAErC;;;OAGG;IACH,sBAAsB,EAAE,CAAC,CAAC,OAAO,CAAC,QAAQ,EAAE;CAC7C,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,qBAAqB,GAAG,gBAAgB,CAAC,GAAG,CACvD,CAAC,CAAC,MAAM,CAAC;IACP,IAAI,EAAE,CAAC,CAAC,OAAO,CAAC,cAAc,CAAC,KAAK,CAAC;IACrC,GAAG,EAAE,CAAC,CAAC,MAAM,CAAC,QAAQ,EAAE;IACxB,QAAQ,EAAE,CAAC,CAAC,MAAM,CAAC,QAAQ,EAAE;IAC7B,IAAI,EAAE,CAAC,CAAC,MAAM,CAAC,QAAQ,EAAE;IACzB,MAAM,EAAE,CAAC,CAAC,MAAM,CAAC,QAAQ,EAAE;IAE3B;;;OAGG;IACH,cAAc,EAAE,oBAAoB,CAAC,QAAQ,EAAE;IAE/C;;OAEG;IACH,gBAAgB,EAAE,gBAAgB,CAAC,QAAQ,EAAE;IAE7C,yBAAyB;IACzB,SAAS,EAAE,CAAC,CAAC,OAAO,CAAC,QAAQ,EAAE;CAChC,CAAC,CACH,CAAC"}
|
|
@@ -180,97 +180,73 @@ export declare const TestConnectionRequest: t.ObjectCodec<{
|
|
|
180
180
|
hostname: t.OptionalCodec<t.Codec<string, string, string, t.CodecProps>>;
|
|
181
181
|
port: t.OptionalCodec<t.Codec<number, number, string, t.CodecProps>>;
|
|
182
182
|
schema: t.OptionalCodec<t.Codec<string, string, string, t.CodecProps>>;
|
|
183
|
-
authentication: t.OptionalCodec<t.Codec<
|
|
183
|
+
authentication: t.OptionalCodec<t.Codec<{
|
|
184
184
|
type: "default";
|
|
185
|
-
options: {
|
|
186
|
-
password: string;
|
|
187
|
-
userName: string;
|
|
188
|
-
};
|
|
189
|
-
} & {
|
|
190
185
|
options: {
|
|
191
186
|
password: {
|
|
192
187
|
secret: string;
|
|
193
188
|
} | {
|
|
194
189
|
secret_ref: string;
|
|
195
190
|
};
|
|
196
|
-
};
|
|
197
|
-
}) | ({
|
|
198
|
-
type: "azure-active-directory-password";
|
|
199
|
-
options: {
|
|
200
|
-
password: string;
|
|
201
191
|
userName: string;
|
|
202
|
-
clientId: string;
|
|
203
|
-
tenantId: string;
|
|
204
192
|
};
|
|
205
|
-
}
|
|
193
|
+
} | {
|
|
194
|
+
type: "azure-active-directory-password";
|
|
206
195
|
options: {
|
|
207
196
|
password: {
|
|
208
197
|
secret: string;
|
|
209
198
|
} | {
|
|
210
199
|
secret_ref: string;
|
|
211
200
|
};
|
|
201
|
+
userName: string;
|
|
202
|
+
clientId: string;
|
|
203
|
+
tenantId: string;
|
|
212
204
|
};
|
|
213
|
-
}
|
|
205
|
+
} | {
|
|
214
206
|
type: "azure-active-directory-service-principal-secret";
|
|
215
207
|
options: {
|
|
216
208
|
clientId: string;
|
|
217
209
|
tenantId: string;
|
|
218
|
-
clientSecret: string;
|
|
219
|
-
};
|
|
220
|
-
} & {
|
|
221
|
-
options: {
|
|
222
210
|
clientSecret: {
|
|
223
211
|
secret: string;
|
|
224
212
|
} | {
|
|
225
213
|
secret_ref: string;
|
|
226
214
|
};
|
|
227
215
|
};
|
|
228
|
-
}
|
|
216
|
+
}, {
|
|
229
217
|
type: "default";
|
|
230
|
-
options: {
|
|
231
|
-
password: string;
|
|
232
|
-
userName: string;
|
|
233
|
-
};
|
|
234
|
-
} & {
|
|
235
218
|
options: {
|
|
236
219
|
password: {
|
|
237
220
|
secret: string;
|
|
238
221
|
} | {
|
|
239
222
|
secret_ref: string;
|
|
240
223
|
};
|
|
241
|
-
};
|
|
242
|
-
}) | ({
|
|
243
|
-
type: "azure-active-directory-password";
|
|
244
|
-
options: {
|
|
245
|
-
password: string;
|
|
246
224
|
userName: string;
|
|
247
|
-
clientId: string;
|
|
248
|
-
tenantId: string;
|
|
249
225
|
};
|
|
250
|
-
}
|
|
226
|
+
} | {
|
|
227
|
+
type: "azure-active-directory-password";
|
|
251
228
|
options: {
|
|
252
229
|
password: {
|
|
253
230
|
secret: string;
|
|
254
231
|
} | {
|
|
255
232
|
secret_ref: string;
|
|
256
233
|
};
|
|
234
|
+
userName: string;
|
|
235
|
+
clientId: string;
|
|
236
|
+
tenantId: string;
|
|
257
237
|
};
|
|
258
|
-
}
|
|
238
|
+
} | {
|
|
259
239
|
type: "azure-active-directory-service-principal-secret";
|
|
260
240
|
options: {
|
|
261
241
|
clientId: string;
|
|
262
242
|
tenantId: string;
|
|
263
|
-
clientSecret: string;
|
|
264
|
-
};
|
|
265
|
-
} & {
|
|
266
|
-
options: {
|
|
267
243
|
clientSecret: {
|
|
268
244
|
secret: string;
|
|
269
245
|
} | {
|
|
270
246
|
secret_ref: string;
|
|
271
247
|
};
|
|
272
248
|
};
|
|
273
|
-
}
|
|
249
|
+
}, string, t.CodecProps>>;
|
|
274
250
|
additionalConfig: t.OptionalCodec<t.Codec<{
|
|
275
251
|
pollingIntervalMs?: number | undefined;
|
|
276
252
|
pollingBatchSize?: number | undefined;
|
|
@@ -540,6 +516,13 @@ export declare const ValidateSyncRulesResponse: t.ObjectCodec<{
|
|
|
540
516
|
errors: t.ArrayCodec<t.ObjectCodec<{
|
|
541
517
|
level: t.Union<t.Codec<"warning", "warning", string, t.CodecProps>, t.LiteralCodec<"fatal">>;
|
|
542
518
|
message: t.IdentityCodec<t.CodecType.String>;
|
|
519
|
+
location: t.OptionalCodec<t.Codec<{
|
|
520
|
+
start_offset: number;
|
|
521
|
+
end_offset: number;
|
|
522
|
+
}, {
|
|
523
|
+
start_offset: number;
|
|
524
|
+
end_offset: number;
|
|
525
|
+
}, string, t.CodecProps>>;
|
|
543
526
|
ts: t.OptionalCodec<t.Codec<string, string, string, t.CodecProps>>;
|
|
544
527
|
}>>;
|
|
545
528
|
}>>;
|
|
@@ -547,6 +530,13 @@ export declare const ValidateSyncRulesResponse: t.ObjectCodec<{
|
|
|
547
530
|
errors: t.ArrayCodec<t.ObjectCodec<{
|
|
548
531
|
level: t.Union<t.Codec<"warning", "warning", string, t.CodecProps>, t.LiteralCodec<"fatal">>;
|
|
549
532
|
message: t.IdentityCodec<t.CodecType.String>;
|
|
533
|
+
location: t.OptionalCodec<t.Codec<{
|
|
534
|
+
start_offset: number;
|
|
535
|
+
end_offset: number;
|
|
536
|
+
}, {
|
|
537
|
+
start_offset: number;
|
|
538
|
+
end_offset: number;
|
|
539
|
+
}, string, t.CodecProps>>;
|
|
550
540
|
ts: t.OptionalCodec<t.Codec<string, string, string, t.CodecProps>>;
|
|
551
541
|
}>>;
|
|
552
542
|
}>;
|