@slates/proto 1.0.0-rc.2 → 1.0.0-rc.21
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/index.cjs +1632 -2
- package/dist/index.d.cts +5397 -0
- package/dist/index.d.ts +5397 -4
- package/dist/index.module.js +1480 -2
- package/package.json +9 -8
- package/src/handler/provider.test.ts +121 -0
- package/src/handler/provider.ts +268 -27
- package/src/index.ts +1 -0
- package/src/messages/action.ts +51 -154
- package/src/messages/adapter.ts +72 -0
- package/src/messages/auth.ts +21 -13
- package/src/messages/config.ts +12 -3
- package/src/messages/controlFlow.ts +2 -1
- package/src/messages/hub.ts +92 -0
- package/src/messages/identify.ts +10 -3
- package/src/messages/index.ts +68 -14
- package/src/messages/legacyTrigger.ts +149 -0
- package/src/messages/tracing.ts +38 -0
- package/src/messages/triggerGroup.ts +383 -0
- package/src/messages/webhookErrors.ts +21 -0
- package/src/types/action.ts +25 -13
- package/src/types/adapter.ts +15 -0
- package/src/types/authMethod.ts +19 -1
- package/src/types/index.ts +2 -0
- package/src/types/triggerGroup.ts +49 -0
- package/src/version.ts +3 -0
- package/dist/handler/index.d.ts +0 -2
- package/dist/handler/index.d.ts.map +0 -1
- package/dist/handler/provider.d.ts +0 -46
- package/dist/handler/provider.d.ts.map +0 -1
- package/dist/index.cjs.map +0 -1
- package/dist/index.d.ts.map +0 -1
- package/dist/index.module.js.map +0 -1
- package/dist/index.umd.js +0 -2
- package/dist/index.umd.js.map +0 -1
- package/dist/messages/action.d.ts +0 -474
- package/dist/messages/action.d.ts.map +0 -1
- package/dist/messages/auth.d.ts +0 -496
- package/dist/messages/auth.d.ts.map +0 -1
- package/dist/messages/config.d.ts +0 -138
- package/dist/messages/config.d.ts.map +0 -1
- package/dist/messages/controlFlow.d.ts +0 -64
- package/dist/messages/controlFlow.d.ts.map +0 -1
- package/dist/messages/identify.d.ts +0 -48
- package/dist/messages/identify.d.ts.map +0 -1
- package/dist/messages/index.d.ts +0 -556
- package/dist/messages/index.d.ts.map +0 -1
- package/dist/messages/log.d.ts +0 -27
- package/dist/messages/log.d.ts.map +0 -1
- package/dist/types/action.d.ts +0 -98
- package/dist/types/action.d.ts.map +0 -1
- package/dist/types/authMethod.d.ts +0 -29
- package/dist/types/authMethod.d.ts.map +0 -1
- package/dist/types/index.d.ts +0 -4
- package/dist/types/index.d.ts.map +0 -1
- package/dist/types/participant.d.ts +0 -10
- package/dist/types/participant.d.ts.map +0 -1
package/dist/messages/auth.d.ts
DELETED
|
@@ -1,496 +0,0 @@
|
|
|
1
|
-
import z from 'zod';
|
|
2
|
-
/**
|
|
3
|
-
* Set Authentication
|
|
4
|
-
*/
|
|
5
|
-
export declare let slatesMessageSetAuthNotification: z.ZodObject<{
|
|
6
|
-
jsonrpc: z.ZodLiteral<"2.0">;
|
|
7
|
-
method: z.ZodLiteral<"slates/auth.set">;
|
|
8
|
-
params: z.ZodObject<{
|
|
9
|
-
authenticationMethodId: z.ZodString;
|
|
10
|
-
output: z.ZodRecord<z.ZodString, z.ZodAny>;
|
|
11
|
-
}, z.core.$strip>;
|
|
12
|
-
}, z.core.$strip>;
|
|
13
|
-
export type SlatesMessageSetAuthNotification = z.infer<typeof slatesMessageSetAuthNotification>;
|
|
14
|
-
/**
|
|
15
|
-
* List Authentication Methods
|
|
16
|
-
*/
|
|
17
|
-
export declare let slatesMessageAuthMethodsListRequest: z.ZodObject<{
|
|
18
|
-
jsonrpc: z.ZodLiteral<"2.0">;
|
|
19
|
-
method: z.ZodLiteral<"slates/auth.methods.list">;
|
|
20
|
-
id: z.ZodString;
|
|
21
|
-
params: z.ZodObject<{}, z.core.$strip>;
|
|
22
|
-
}, z.core.$strip>;
|
|
23
|
-
export type SlatesMessageAuthMethodsListRequest = z.infer<typeof slatesMessageAuthMethodsListRequest>;
|
|
24
|
-
export declare let slatesMessageAuthMethodsListResponse: z.ZodObject<{
|
|
25
|
-
jsonrpc: z.ZodLiteral<"2.0">;
|
|
26
|
-
id: z.ZodString;
|
|
27
|
-
result: z.ZodObject<{
|
|
28
|
-
authenticationMethods: z.ZodArray<z.ZodObject<{
|
|
29
|
-
id: z.ZodString;
|
|
30
|
-
name: z.ZodString;
|
|
31
|
-
type: z.ZodUnion<readonly [z.ZodLiteral<"auth.oauth">, z.ZodLiteral<"auth.token">, z.ZodLiteral<"auth.service_account">, z.ZodLiteral<"auth.custom">]>;
|
|
32
|
-
scopes: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
33
|
-
id: z.ZodString;
|
|
34
|
-
title: z.ZodString;
|
|
35
|
-
description: z.ZodOptional<z.ZodString>;
|
|
36
|
-
}, z.core.$strip>>>;
|
|
37
|
-
inputSchema: z.ZodRecord<z.ZodString, z.ZodAny>;
|
|
38
|
-
outputSchema: z.ZodRecord<z.ZodString, z.ZodAny>;
|
|
39
|
-
capabilities: z.ZodObject<{
|
|
40
|
-
getDefaultInput: z.ZodOptional<z.ZodObject<{
|
|
41
|
-
enabled: z.ZodBoolean;
|
|
42
|
-
}, z.core.$strip>>;
|
|
43
|
-
handleChangedInput: z.ZodOptional<z.ZodObject<{
|
|
44
|
-
enabled: z.ZodBoolean;
|
|
45
|
-
}, z.core.$strip>>;
|
|
46
|
-
handleTokenRefresh: z.ZodOptional<z.ZodObject<{
|
|
47
|
-
enabled: z.ZodBoolean;
|
|
48
|
-
}, z.core.$strip>>;
|
|
49
|
-
getProfile: z.ZodOptional<z.ZodObject<{
|
|
50
|
-
enabled: z.ZodBoolean;
|
|
51
|
-
}, z.core.$strip>>;
|
|
52
|
-
}, z.core.$strip>;
|
|
53
|
-
}, z.core.$strip>>;
|
|
54
|
-
}, z.core.$strip>;
|
|
55
|
-
}, z.core.$strip>;
|
|
56
|
-
export type SlatesMessageAuthMethodsListResponse = z.infer<typeof slatesMessageAuthMethodsListResponse>;
|
|
57
|
-
/**
|
|
58
|
-
* Get Authentication Method
|
|
59
|
-
*/
|
|
60
|
-
export declare let slatesMessageAuthMethodGetRequest: z.ZodObject<{
|
|
61
|
-
jsonrpc: z.ZodLiteral<"2.0">;
|
|
62
|
-
method: z.ZodLiteral<"slates/auth.method.get">;
|
|
63
|
-
id: z.ZodString;
|
|
64
|
-
params: z.ZodObject<{
|
|
65
|
-
authenticationMethodId: z.ZodString;
|
|
66
|
-
}, z.core.$strip>;
|
|
67
|
-
}, z.core.$strip>;
|
|
68
|
-
export type SlatesMessageAuthMethodGetRequest = z.infer<typeof slatesMessageAuthMethodGetRequest>;
|
|
69
|
-
export declare let slatesMessageAuthMethodGetResponse: z.ZodObject<{
|
|
70
|
-
jsonrpc: z.ZodLiteral<"2.0">;
|
|
71
|
-
id: z.ZodString;
|
|
72
|
-
result: z.ZodObject<{
|
|
73
|
-
authenticationMethod: z.ZodObject<{
|
|
74
|
-
id: z.ZodString;
|
|
75
|
-
name: z.ZodString;
|
|
76
|
-
type: z.ZodUnion<readonly [z.ZodLiteral<"auth.oauth">, z.ZodLiteral<"auth.token">, z.ZodLiteral<"auth.service_account">, z.ZodLiteral<"auth.custom">]>;
|
|
77
|
-
scopes: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
78
|
-
id: z.ZodString;
|
|
79
|
-
title: z.ZodString;
|
|
80
|
-
description: z.ZodOptional<z.ZodString>;
|
|
81
|
-
}, z.core.$strip>>>;
|
|
82
|
-
inputSchema: z.ZodRecord<z.ZodString, z.ZodAny>;
|
|
83
|
-
outputSchema: z.ZodRecord<z.ZodString, z.ZodAny>;
|
|
84
|
-
capabilities: z.ZodObject<{
|
|
85
|
-
getDefaultInput: z.ZodOptional<z.ZodObject<{
|
|
86
|
-
enabled: z.ZodBoolean;
|
|
87
|
-
}, z.core.$strip>>;
|
|
88
|
-
handleChangedInput: z.ZodOptional<z.ZodObject<{
|
|
89
|
-
enabled: z.ZodBoolean;
|
|
90
|
-
}, z.core.$strip>>;
|
|
91
|
-
handleTokenRefresh: z.ZodOptional<z.ZodObject<{
|
|
92
|
-
enabled: z.ZodBoolean;
|
|
93
|
-
}, z.core.$strip>>;
|
|
94
|
-
getProfile: z.ZodOptional<z.ZodObject<{
|
|
95
|
-
enabled: z.ZodBoolean;
|
|
96
|
-
}, z.core.$strip>>;
|
|
97
|
-
}, z.core.$strip>;
|
|
98
|
-
}, z.core.$strip>;
|
|
99
|
-
}, z.core.$strip>;
|
|
100
|
-
}, z.core.$strip>;
|
|
101
|
-
export type SlatesMessageAuthMethodGetResponse = z.infer<typeof slatesMessageAuthMethodGetResponse>;
|
|
102
|
-
/**
|
|
103
|
-
* Authentication Input Changed
|
|
104
|
-
*/
|
|
105
|
-
export declare let slatesMessageAuthInputChangedRequest: z.ZodObject<{
|
|
106
|
-
jsonrpc: z.ZodLiteral<"2.0">;
|
|
107
|
-
method: z.ZodLiteral<"slates/auth.input.changed">;
|
|
108
|
-
id: z.ZodString;
|
|
109
|
-
params: z.ZodObject<{
|
|
110
|
-
authenticationMethodId: z.ZodString;
|
|
111
|
-
previousInput: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
112
|
-
newInput: z.ZodRecord<z.ZodString, z.ZodAny>;
|
|
113
|
-
}, z.core.$strip>;
|
|
114
|
-
}, z.core.$strip>;
|
|
115
|
-
export type SlatesMessageAuthInputChangedRequest = z.infer<typeof slatesMessageAuthInputChangedRequest>;
|
|
116
|
-
export declare let slatesMessageAuthInputChangedResponse: z.ZodObject<{
|
|
117
|
-
jsonrpc: z.ZodLiteral<"2.0">;
|
|
118
|
-
id: z.ZodString;
|
|
119
|
-
result: z.ZodObject<{
|
|
120
|
-
input: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
121
|
-
}, z.core.$strip>;
|
|
122
|
-
}, z.core.$strip>;
|
|
123
|
-
export type SlatesMessageAuthInputChangedResponse = z.infer<typeof slatesMessageAuthInputChangedResponse>;
|
|
124
|
-
/**
|
|
125
|
-
* Get Default Inputs
|
|
126
|
-
*/
|
|
127
|
-
export declare let slatesMessageAuthDefaultInputGetRequest: z.ZodObject<{
|
|
128
|
-
jsonrpc: z.ZodLiteral<"2.0">;
|
|
129
|
-
method: z.ZodLiteral<"slates/auth.input.get_default">;
|
|
130
|
-
id: z.ZodString;
|
|
131
|
-
params: z.ZodObject<{
|
|
132
|
-
authenticationMethodId: z.ZodString;
|
|
133
|
-
}, z.core.$strip>;
|
|
134
|
-
}, z.core.$strip>;
|
|
135
|
-
export type SlatesMessageAuthDefaultInputGetRequest = z.infer<typeof slatesMessageAuthDefaultInputGetRequest>;
|
|
136
|
-
export declare let slatesMessageAuthDefaultInputGetResponse: z.ZodObject<{
|
|
137
|
-
jsonrpc: z.ZodLiteral<"2.0">;
|
|
138
|
-
id: z.ZodString;
|
|
139
|
-
result: z.ZodObject<{
|
|
140
|
-
input: z.ZodRecord<z.ZodString, z.ZodAny>;
|
|
141
|
-
}, z.core.$strip>;
|
|
142
|
-
}, z.core.$strip>;
|
|
143
|
-
export type SlatesMessageAuthDefaultInputGetResponse = z.infer<typeof slatesMessageAuthDefaultInputGetResponse>;
|
|
144
|
-
/**
|
|
145
|
-
* Get Authorization Url
|
|
146
|
-
*/
|
|
147
|
-
export declare let slatesMessageAuthAuthorizationUrlGetRequest: z.ZodObject<{
|
|
148
|
-
jsonrpc: z.ZodLiteral<"2.0">;
|
|
149
|
-
method: z.ZodLiteral<"slates/auth.authorization_url.get">;
|
|
150
|
-
id: z.ZodString;
|
|
151
|
-
params: z.ZodObject<{
|
|
152
|
-
authenticationMethodId: z.ZodString;
|
|
153
|
-
redirectUri: z.ZodString;
|
|
154
|
-
state: z.ZodString;
|
|
155
|
-
input: z.ZodRecord<z.ZodString, z.ZodAny>;
|
|
156
|
-
clientId: z.ZodString;
|
|
157
|
-
clientSecret: z.ZodString;
|
|
158
|
-
scopes: z.ZodArray<z.ZodString>;
|
|
159
|
-
}, z.core.$strip>;
|
|
160
|
-
}, z.core.$strip>;
|
|
161
|
-
export type SlatesMessageAuthAuthorizationUrlGetRequest = z.infer<typeof slatesMessageAuthAuthorizationUrlGetRequest>;
|
|
162
|
-
export declare let slatesMessageAuthAuthorizationUrlGetResponse: z.ZodObject<{
|
|
163
|
-
jsonrpc: z.ZodLiteral<"2.0">;
|
|
164
|
-
id: z.ZodString;
|
|
165
|
-
result: z.ZodObject<{
|
|
166
|
-
authorizationUrl: z.ZodString;
|
|
167
|
-
input: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
168
|
-
}, z.core.$strip>;
|
|
169
|
-
}, z.core.$strip>;
|
|
170
|
-
export type SlatesMessageAuthAuthorizationUrlGetResponse = z.infer<typeof slatesMessageAuthAuthorizationUrlGetResponse>;
|
|
171
|
-
/**
|
|
172
|
-
* Handle Authorization Callback
|
|
173
|
-
*/
|
|
174
|
-
export declare let slatesMessageAuthAuthorizationCallbackHandleRequest: z.ZodObject<{
|
|
175
|
-
jsonrpc: z.ZodLiteral<"2.0">;
|
|
176
|
-
method: z.ZodLiteral<"slates/auth.authorization_callback.handle">;
|
|
177
|
-
id: z.ZodString;
|
|
178
|
-
params: z.ZodObject<{
|
|
179
|
-
authenticationMethodId: z.ZodString;
|
|
180
|
-
code: z.ZodString;
|
|
181
|
-
state: z.ZodString;
|
|
182
|
-
redirectUri: z.ZodString;
|
|
183
|
-
input: z.ZodRecord<z.ZodString, z.ZodAny>;
|
|
184
|
-
clientId: z.ZodString;
|
|
185
|
-
clientSecret: z.ZodString;
|
|
186
|
-
scopes: z.ZodArray<z.ZodString>;
|
|
187
|
-
}, z.core.$strip>;
|
|
188
|
-
}, z.core.$strip>;
|
|
189
|
-
export type SlatesMessageAuthAuthorizationCallbackHandleRequest = z.infer<typeof slatesMessageAuthAuthorizationCallbackHandleRequest>;
|
|
190
|
-
export declare let slatesMessageAuthAuthorizationCallbackHandleResponse: z.ZodObject<{
|
|
191
|
-
jsonrpc: z.ZodLiteral<"2.0">;
|
|
192
|
-
id: z.ZodString;
|
|
193
|
-
result: z.ZodObject<{
|
|
194
|
-
output: z.ZodRecord<z.ZodString, z.ZodAny>;
|
|
195
|
-
input: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
196
|
-
}, z.core.$strip>;
|
|
197
|
-
}, z.core.$strip>;
|
|
198
|
-
export type SlatesMessageAuthAuthorizationCallbackHandleResponse = z.infer<typeof slatesMessageAuthAuthorizationCallbackHandleResponse>;
|
|
199
|
-
/**
|
|
200
|
-
* Handle Token Refresh
|
|
201
|
-
*/
|
|
202
|
-
export declare let slatesMessageAuthTokenRefreshHandleRequest: z.ZodObject<{
|
|
203
|
-
jsonrpc: z.ZodLiteral<"2.0">;
|
|
204
|
-
method: z.ZodLiteral<"slates/auth.token_refresh.handle">;
|
|
205
|
-
id: z.ZodString;
|
|
206
|
-
params: z.ZodObject<{
|
|
207
|
-
authenticationMethodId: z.ZodString;
|
|
208
|
-
output: z.ZodRecord<z.ZodString, z.ZodAny>;
|
|
209
|
-
input: z.ZodRecord<z.ZodString, z.ZodAny>;
|
|
210
|
-
clientId: z.ZodString;
|
|
211
|
-
clientSecret: z.ZodString;
|
|
212
|
-
scopes: z.ZodArray<z.ZodString>;
|
|
213
|
-
}, z.core.$strip>;
|
|
214
|
-
}, z.core.$strip>;
|
|
215
|
-
export type SlatesMessageAuthTokenRefreshHandleRequest = z.infer<typeof slatesMessageAuthTokenRefreshHandleRequest>;
|
|
216
|
-
export declare let slatesMessageAuthTokenRefreshHandleResponse: z.ZodObject<{
|
|
217
|
-
jsonrpc: z.ZodLiteral<"2.0">;
|
|
218
|
-
id: z.ZodString;
|
|
219
|
-
result: z.ZodObject<{
|
|
220
|
-
output: z.ZodRecord<z.ZodString, z.ZodAny>;
|
|
221
|
-
input: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
222
|
-
}, z.core.$strip>;
|
|
223
|
-
}, z.core.$strip>;
|
|
224
|
-
export type SlatesMessageAuthTokenRefreshHandleResponse = z.infer<typeof slatesMessageAuthTokenRefreshHandleResponse>;
|
|
225
|
-
/**
|
|
226
|
-
* Get Profile
|
|
227
|
-
*/
|
|
228
|
-
export declare let slatesMessageAuthProfileGetRequest: z.ZodObject<{
|
|
229
|
-
jsonrpc: z.ZodLiteral<"2.0">;
|
|
230
|
-
method: z.ZodLiteral<"slates/auth.profile.get">;
|
|
231
|
-
id: z.ZodString;
|
|
232
|
-
params: z.ZodObject<{
|
|
233
|
-
authenticationMethodId: z.ZodString;
|
|
234
|
-
output: z.ZodRecord<z.ZodString, z.ZodAny>;
|
|
235
|
-
input: z.ZodRecord<z.ZodString, z.ZodAny>;
|
|
236
|
-
scopes: z.ZodArray<z.ZodString>;
|
|
237
|
-
}, z.core.$strip>;
|
|
238
|
-
}, z.core.$strip>;
|
|
239
|
-
export type SlatesMessageAuthProfileGetRequest = z.infer<typeof slatesMessageAuthProfileGetRequest>;
|
|
240
|
-
export declare let slatesMessageAuthProfileGetResponse: z.ZodObject<{
|
|
241
|
-
jsonrpc: z.ZodLiteral<"2.0">;
|
|
242
|
-
id: z.ZodString;
|
|
243
|
-
result: z.ZodObject<{
|
|
244
|
-
profile: z.ZodRecord<z.ZodString, z.ZodAny>;
|
|
245
|
-
}, z.core.$strip>;
|
|
246
|
-
}, z.core.$strip>;
|
|
247
|
-
export type SlatesMessageAuthProfileGetResponse = z.infer<typeof slatesMessageAuthProfileGetResponse>;
|
|
248
|
-
/**
|
|
249
|
-
* Get Auth Output
|
|
250
|
-
*/
|
|
251
|
-
export declare let slatesMessageAuthOutputGetRequest: z.ZodObject<{
|
|
252
|
-
jsonrpc: z.ZodLiteral<"2.0">;
|
|
253
|
-
method: z.ZodLiteral<"slates/auth.output.get">;
|
|
254
|
-
id: z.ZodString;
|
|
255
|
-
params: z.ZodObject<{
|
|
256
|
-
authenticationMethodId: z.ZodString;
|
|
257
|
-
input: z.ZodRecord<z.ZodString, z.ZodAny>;
|
|
258
|
-
}, z.core.$strip>;
|
|
259
|
-
}, z.core.$strip>;
|
|
260
|
-
export type SlatesMessageAuthOutputGetRequest = z.infer<typeof slatesMessageAuthOutputGetRequest>;
|
|
261
|
-
export declare let slatesMessageAuthOutputGetResponse: z.ZodObject<{
|
|
262
|
-
jsonrpc: z.ZodLiteral<"2.0">;
|
|
263
|
-
id: z.ZodString;
|
|
264
|
-
result: z.ZodObject<{
|
|
265
|
-
output: z.ZodRecord<z.ZodString, z.ZodAny>;
|
|
266
|
-
}, z.core.$strip>;
|
|
267
|
-
}, z.core.$strip>;
|
|
268
|
-
export type SlatesMessageAuthOutputGetResponse = z.infer<typeof slatesMessageAuthOutputGetResponse>;
|
|
269
|
-
export type SlatesAuthRequests = SlatesMessageAuthMethodsListRequest | SlatesMessageAuthMethodGetRequest | SlatesMessageAuthInputChangedRequest | SlatesMessageAuthDefaultInputGetRequest | SlatesMessageAuthAuthorizationUrlGetRequest | SlatesMessageAuthAuthorizationCallbackHandleRequest | SlatesMessageAuthTokenRefreshHandleRequest | SlatesMessageAuthProfileGetRequest | SlatesMessageAuthOutputGetRequest;
|
|
270
|
-
export type SlatesAuthResponses = SlatesMessageAuthMethodsListResponse | SlatesMessageAuthMethodGetResponse | SlatesMessageAuthInputChangedResponse | SlatesMessageAuthDefaultInputGetResponse | SlatesMessageAuthAuthorizationUrlGetResponse | SlatesMessageAuthAuthorizationCallbackHandleResponse | SlatesMessageAuthTokenRefreshHandleResponse | SlatesMessageAuthProfileGetResponse | SlatesMessageAuthOutputGetResponse;
|
|
271
|
-
export type SlatesAuthNotifications = SlatesMessageSetAuthNotification;
|
|
272
|
-
export declare let slatesAuthResponsesByMethod: {
|
|
273
|
-
'slates/auth.methods.list': z.ZodObject<{
|
|
274
|
-
jsonrpc: z.ZodLiteral<"2.0">;
|
|
275
|
-
id: z.ZodString;
|
|
276
|
-
result: z.ZodObject<{
|
|
277
|
-
authenticationMethods: z.ZodArray<z.ZodObject<{
|
|
278
|
-
id: z.ZodString;
|
|
279
|
-
name: z.ZodString;
|
|
280
|
-
type: z.ZodUnion<readonly [z.ZodLiteral<"auth.oauth">, z.ZodLiteral<"auth.token">, z.ZodLiteral<"auth.service_account">, z.ZodLiteral<"auth.custom">]>;
|
|
281
|
-
scopes: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
282
|
-
id: z.ZodString;
|
|
283
|
-
title: z.ZodString;
|
|
284
|
-
description: z.ZodOptional<z.ZodString>;
|
|
285
|
-
}, z.core.$strip>>>;
|
|
286
|
-
inputSchema: z.ZodRecord<z.ZodString, z.ZodAny>;
|
|
287
|
-
outputSchema: z.ZodRecord<z.ZodString, z.ZodAny>;
|
|
288
|
-
capabilities: z.ZodObject<{
|
|
289
|
-
getDefaultInput: z.ZodOptional<z.ZodObject<{
|
|
290
|
-
enabled: z.ZodBoolean;
|
|
291
|
-
}, z.core.$strip>>;
|
|
292
|
-
handleChangedInput: z.ZodOptional<z.ZodObject<{
|
|
293
|
-
enabled: z.ZodBoolean;
|
|
294
|
-
}, z.core.$strip>>;
|
|
295
|
-
handleTokenRefresh: z.ZodOptional<z.ZodObject<{
|
|
296
|
-
enabled: z.ZodBoolean;
|
|
297
|
-
}, z.core.$strip>>;
|
|
298
|
-
getProfile: z.ZodOptional<z.ZodObject<{
|
|
299
|
-
enabled: z.ZodBoolean;
|
|
300
|
-
}, z.core.$strip>>;
|
|
301
|
-
}, z.core.$strip>;
|
|
302
|
-
}, z.core.$strip>>;
|
|
303
|
-
}, z.core.$strip>;
|
|
304
|
-
}, z.core.$strip>;
|
|
305
|
-
'slates/auth.method.get': z.ZodObject<{
|
|
306
|
-
jsonrpc: z.ZodLiteral<"2.0">;
|
|
307
|
-
id: z.ZodString;
|
|
308
|
-
result: z.ZodObject<{
|
|
309
|
-
authenticationMethod: z.ZodObject<{
|
|
310
|
-
id: z.ZodString;
|
|
311
|
-
name: z.ZodString;
|
|
312
|
-
type: z.ZodUnion<readonly [z.ZodLiteral<"auth.oauth">, z.ZodLiteral<"auth.token">, z.ZodLiteral<"auth.service_account">, z.ZodLiteral<"auth.custom">]>;
|
|
313
|
-
scopes: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
314
|
-
id: z.ZodString;
|
|
315
|
-
title: z.ZodString;
|
|
316
|
-
description: z.ZodOptional<z.ZodString>;
|
|
317
|
-
}, z.core.$strip>>>;
|
|
318
|
-
inputSchema: z.ZodRecord<z.ZodString, z.ZodAny>;
|
|
319
|
-
outputSchema: z.ZodRecord<z.ZodString, z.ZodAny>;
|
|
320
|
-
capabilities: z.ZodObject<{
|
|
321
|
-
getDefaultInput: z.ZodOptional<z.ZodObject<{
|
|
322
|
-
enabled: z.ZodBoolean;
|
|
323
|
-
}, z.core.$strip>>;
|
|
324
|
-
handleChangedInput: z.ZodOptional<z.ZodObject<{
|
|
325
|
-
enabled: z.ZodBoolean;
|
|
326
|
-
}, z.core.$strip>>;
|
|
327
|
-
handleTokenRefresh: z.ZodOptional<z.ZodObject<{
|
|
328
|
-
enabled: z.ZodBoolean;
|
|
329
|
-
}, z.core.$strip>>;
|
|
330
|
-
getProfile: z.ZodOptional<z.ZodObject<{
|
|
331
|
-
enabled: z.ZodBoolean;
|
|
332
|
-
}, z.core.$strip>>;
|
|
333
|
-
}, z.core.$strip>;
|
|
334
|
-
}, z.core.$strip>;
|
|
335
|
-
}, z.core.$strip>;
|
|
336
|
-
}, z.core.$strip>;
|
|
337
|
-
'slates/auth.input.changed': z.ZodObject<{
|
|
338
|
-
jsonrpc: z.ZodLiteral<"2.0">;
|
|
339
|
-
id: z.ZodString;
|
|
340
|
-
result: z.ZodObject<{
|
|
341
|
-
input: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
342
|
-
}, z.core.$strip>;
|
|
343
|
-
}, z.core.$strip>;
|
|
344
|
-
'slates/auth.input.get_default': z.ZodObject<{
|
|
345
|
-
jsonrpc: z.ZodLiteral<"2.0">;
|
|
346
|
-
id: z.ZodString;
|
|
347
|
-
result: z.ZodObject<{
|
|
348
|
-
input: z.ZodRecord<z.ZodString, z.ZodAny>;
|
|
349
|
-
}, z.core.$strip>;
|
|
350
|
-
}, z.core.$strip>;
|
|
351
|
-
'slates/auth.authorization_url.get': z.ZodObject<{
|
|
352
|
-
jsonrpc: z.ZodLiteral<"2.0">;
|
|
353
|
-
id: z.ZodString;
|
|
354
|
-
result: z.ZodObject<{
|
|
355
|
-
authorizationUrl: z.ZodString;
|
|
356
|
-
input: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
357
|
-
}, z.core.$strip>;
|
|
358
|
-
}, z.core.$strip>;
|
|
359
|
-
'slates/auth.authorization_callback.handle': z.ZodObject<{
|
|
360
|
-
jsonrpc: z.ZodLiteral<"2.0">;
|
|
361
|
-
id: z.ZodString;
|
|
362
|
-
result: z.ZodObject<{
|
|
363
|
-
output: z.ZodRecord<z.ZodString, z.ZodAny>;
|
|
364
|
-
input: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
365
|
-
}, z.core.$strip>;
|
|
366
|
-
}, z.core.$strip>;
|
|
367
|
-
'slates/auth.token_refresh.handle': z.ZodObject<{
|
|
368
|
-
jsonrpc: z.ZodLiteral<"2.0">;
|
|
369
|
-
id: z.ZodString;
|
|
370
|
-
result: z.ZodObject<{
|
|
371
|
-
output: z.ZodRecord<z.ZodString, z.ZodAny>;
|
|
372
|
-
input: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
373
|
-
}, z.core.$strip>;
|
|
374
|
-
}, z.core.$strip>;
|
|
375
|
-
'slates/auth.profile.get': z.ZodObject<{
|
|
376
|
-
jsonrpc: z.ZodLiteral<"2.0">;
|
|
377
|
-
id: z.ZodString;
|
|
378
|
-
result: z.ZodObject<{
|
|
379
|
-
profile: z.ZodRecord<z.ZodString, z.ZodAny>;
|
|
380
|
-
}, z.core.$strip>;
|
|
381
|
-
}, z.core.$strip>;
|
|
382
|
-
'slates/auth.output.get': z.ZodObject<{
|
|
383
|
-
jsonrpc: z.ZodLiteral<"2.0">;
|
|
384
|
-
id: z.ZodString;
|
|
385
|
-
result: z.ZodObject<{
|
|
386
|
-
output: z.ZodRecord<z.ZodString, z.ZodAny>;
|
|
387
|
-
}, z.core.$strip>;
|
|
388
|
-
}, z.core.$strip>;
|
|
389
|
-
};
|
|
390
|
-
export declare let slatesAuthRequestsByMethod: {
|
|
391
|
-
'slates/auth.methods.list': z.ZodObject<{
|
|
392
|
-
jsonrpc: z.ZodLiteral<"2.0">;
|
|
393
|
-
method: z.ZodLiteral<"slates/auth.methods.list">;
|
|
394
|
-
id: z.ZodString;
|
|
395
|
-
params: z.ZodObject<{}, z.core.$strip>;
|
|
396
|
-
}, z.core.$strip>;
|
|
397
|
-
'slates/auth.method.get': z.ZodObject<{
|
|
398
|
-
jsonrpc: z.ZodLiteral<"2.0">;
|
|
399
|
-
method: z.ZodLiteral<"slates/auth.method.get">;
|
|
400
|
-
id: z.ZodString;
|
|
401
|
-
params: z.ZodObject<{
|
|
402
|
-
authenticationMethodId: z.ZodString;
|
|
403
|
-
}, z.core.$strip>;
|
|
404
|
-
}, z.core.$strip>;
|
|
405
|
-
'slates/auth.input.changed': z.ZodObject<{
|
|
406
|
-
jsonrpc: z.ZodLiteral<"2.0">;
|
|
407
|
-
method: z.ZodLiteral<"slates/auth.input.changed">;
|
|
408
|
-
id: z.ZodString;
|
|
409
|
-
params: z.ZodObject<{
|
|
410
|
-
authenticationMethodId: z.ZodString;
|
|
411
|
-
previousInput: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
412
|
-
newInput: z.ZodRecord<z.ZodString, z.ZodAny>;
|
|
413
|
-
}, z.core.$strip>;
|
|
414
|
-
}, z.core.$strip>;
|
|
415
|
-
'slates/auth.input.get_default': z.ZodObject<{
|
|
416
|
-
jsonrpc: z.ZodLiteral<"2.0">;
|
|
417
|
-
method: z.ZodLiteral<"slates/auth.input.get_default">;
|
|
418
|
-
id: z.ZodString;
|
|
419
|
-
params: z.ZodObject<{
|
|
420
|
-
authenticationMethodId: z.ZodString;
|
|
421
|
-
}, z.core.$strip>;
|
|
422
|
-
}, z.core.$strip>;
|
|
423
|
-
'slates/auth.authorization_url.get': z.ZodObject<{
|
|
424
|
-
jsonrpc: z.ZodLiteral<"2.0">;
|
|
425
|
-
method: z.ZodLiteral<"slates/auth.authorization_url.get">;
|
|
426
|
-
id: z.ZodString;
|
|
427
|
-
params: z.ZodObject<{
|
|
428
|
-
authenticationMethodId: z.ZodString;
|
|
429
|
-
redirectUri: z.ZodString;
|
|
430
|
-
state: z.ZodString;
|
|
431
|
-
input: z.ZodRecord<z.ZodString, z.ZodAny>;
|
|
432
|
-
clientId: z.ZodString;
|
|
433
|
-
clientSecret: z.ZodString;
|
|
434
|
-
scopes: z.ZodArray<z.ZodString>;
|
|
435
|
-
}, z.core.$strip>;
|
|
436
|
-
}, z.core.$strip>;
|
|
437
|
-
'slates/auth.authorization_callback.handle': z.ZodObject<{
|
|
438
|
-
jsonrpc: z.ZodLiteral<"2.0">;
|
|
439
|
-
method: z.ZodLiteral<"slates/auth.authorization_callback.handle">;
|
|
440
|
-
id: z.ZodString;
|
|
441
|
-
params: z.ZodObject<{
|
|
442
|
-
authenticationMethodId: z.ZodString;
|
|
443
|
-
code: z.ZodString;
|
|
444
|
-
state: z.ZodString;
|
|
445
|
-
redirectUri: z.ZodString;
|
|
446
|
-
input: z.ZodRecord<z.ZodString, z.ZodAny>;
|
|
447
|
-
clientId: z.ZodString;
|
|
448
|
-
clientSecret: z.ZodString;
|
|
449
|
-
scopes: z.ZodArray<z.ZodString>;
|
|
450
|
-
}, z.core.$strip>;
|
|
451
|
-
}, z.core.$strip>;
|
|
452
|
-
'slates/auth.token_refresh.handle': z.ZodObject<{
|
|
453
|
-
jsonrpc: z.ZodLiteral<"2.0">;
|
|
454
|
-
method: z.ZodLiteral<"slates/auth.token_refresh.handle">;
|
|
455
|
-
id: z.ZodString;
|
|
456
|
-
params: z.ZodObject<{
|
|
457
|
-
authenticationMethodId: z.ZodString;
|
|
458
|
-
output: z.ZodRecord<z.ZodString, z.ZodAny>;
|
|
459
|
-
input: z.ZodRecord<z.ZodString, z.ZodAny>;
|
|
460
|
-
clientId: z.ZodString;
|
|
461
|
-
clientSecret: z.ZodString;
|
|
462
|
-
scopes: z.ZodArray<z.ZodString>;
|
|
463
|
-
}, z.core.$strip>;
|
|
464
|
-
}, z.core.$strip>;
|
|
465
|
-
'slates/auth.profile.get': z.ZodObject<{
|
|
466
|
-
jsonrpc: z.ZodLiteral<"2.0">;
|
|
467
|
-
method: z.ZodLiteral<"slates/auth.profile.get">;
|
|
468
|
-
id: z.ZodString;
|
|
469
|
-
params: z.ZodObject<{
|
|
470
|
-
authenticationMethodId: z.ZodString;
|
|
471
|
-
output: z.ZodRecord<z.ZodString, z.ZodAny>;
|
|
472
|
-
input: z.ZodRecord<z.ZodString, z.ZodAny>;
|
|
473
|
-
scopes: z.ZodArray<z.ZodString>;
|
|
474
|
-
}, z.core.$strip>;
|
|
475
|
-
}, z.core.$strip>;
|
|
476
|
-
'slates/auth.output.get': z.ZodObject<{
|
|
477
|
-
jsonrpc: z.ZodLiteral<"2.0">;
|
|
478
|
-
method: z.ZodLiteral<"slates/auth.output.get">;
|
|
479
|
-
id: z.ZodString;
|
|
480
|
-
params: z.ZodObject<{
|
|
481
|
-
authenticationMethodId: z.ZodString;
|
|
482
|
-
input: z.ZodRecord<z.ZodString, z.ZodAny>;
|
|
483
|
-
}, z.core.$strip>;
|
|
484
|
-
}, z.core.$strip>;
|
|
485
|
-
};
|
|
486
|
-
export declare let slatesAuthNotificationsByMethod: {
|
|
487
|
-
'slates/auth.set': z.ZodObject<{
|
|
488
|
-
jsonrpc: z.ZodLiteral<"2.0">;
|
|
489
|
-
method: z.ZodLiteral<"slates/auth.set">;
|
|
490
|
-
params: z.ZodObject<{
|
|
491
|
-
authenticationMethodId: z.ZodString;
|
|
492
|
-
output: z.ZodRecord<z.ZodString, z.ZodAny>;
|
|
493
|
-
}, z.core.$strip>;
|
|
494
|
-
}, z.core.$strip>;
|
|
495
|
-
};
|
|
496
|
-
//# sourceMappingURL=auth.d.ts.map
|
|
@@ -1 +0,0 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/
|
|
5
|
-
export declare let slatesMessageSetConfigNotification: z.ZodObject<{
|
|
6
|
-
jsonrpc: z.ZodLiteral<"2.0">;
|
|
7
|
-
method: z.ZodLiteral<"slates/config.set">;
|
|
8
|
-
params: z.ZodObject<{
|
|
9
|
-
config: z.ZodRecord<z.ZodString, z.ZodAny>;
|
|
10
|
-
}, z.core.$strip>;
|
|
11
|
-
}, z.core.$strip>;
|
|
12
|
-
export type SlatesMessageSetConfigNotification = z.infer<typeof slatesMessageSetConfigNotification>;
|
|
13
|
-
/**
|
|
14
|
-
* Get Config Schema
|
|
15
|
-
*/
|
|
16
|
-
export declare let slatesMessageConfigSchemaGetRequest: z.ZodObject<{
|
|
17
|
-
jsonrpc: z.ZodLiteral<"2.0">;
|
|
18
|
-
method: z.ZodLiteral<"slates/config.schema.get">;
|
|
19
|
-
id: z.ZodString;
|
|
20
|
-
params: z.ZodObject<{}, z.core.$strip>;
|
|
21
|
-
}, z.core.$strip>;
|
|
22
|
-
export type SlatesMessageConfigSchemaGetRequest = z.infer<typeof slatesMessageConfigSchemaGetRequest>;
|
|
23
|
-
export declare let slatesMessageConfigSchemaGetResponse: z.ZodObject<{
|
|
24
|
-
jsonrpc: z.ZodLiteral<"2.0">;
|
|
25
|
-
id: z.ZodString;
|
|
26
|
-
result: z.ZodObject<{
|
|
27
|
-
schema: z.ZodRecord<z.ZodString, z.ZodAny>;
|
|
28
|
-
}, z.core.$strip>;
|
|
29
|
-
}, z.core.$strip>;
|
|
30
|
-
export type SlatesMessageConfigSchemaGetResponse = z.infer<typeof slatesMessageConfigSchemaGetResponse>;
|
|
31
|
-
/**
|
|
32
|
-
* Config Changed
|
|
33
|
-
*/
|
|
34
|
-
export declare let slatesMessageConfigChangedRequest: z.ZodObject<{
|
|
35
|
-
jsonrpc: z.ZodLiteral<"2.0">;
|
|
36
|
-
method: z.ZodLiteral<"slates/config.changed">;
|
|
37
|
-
params: z.ZodObject<{
|
|
38
|
-
previousConfig: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
39
|
-
newConfig: z.ZodRecord<z.ZodString, z.ZodAny>;
|
|
40
|
-
}, z.core.$strip>;
|
|
41
|
-
}, z.core.$strip>;
|
|
42
|
-
export type SlatesMessageConfigChangedRequest = z.infer<typeof slatesMessageConfigChangedRequest>;
|
|
43
|
-
export declare let slatesMessageConfigChangedResponse: z.ZodObject<{
|
|
44
|
-
jsonrpc: z.ZodLiteral<"2.0">;
|
|
45
|
-
id: z.ZodString;
|
|
46
|
-
result: z.ZodObject<{
|
|
47
|
-
success: z.ZodBoolean;
|
|
48
|
-
config: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
49
|
-
errors: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
50
|
-
code: z.ZodString;
|
|
51
|
-
message: z.ZodString;
|
|
52
|
-
path: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
53
|
-
}, z.core.$strip>>>;
|
|
54
|
-
}, z.core.$strip>;
|
|
55
|
-
}, z.core.$strip>;
|
|
56
|
-
export type SlatesMessageConfigChangedResponse = z.infer<typeof slatesMessageConfigChangedResponse>;
|
|
57
|
-
/**
|
|
58
|
-
* Get Default Config
|
|
59
|
-
*/
|
|
60
|
-
export declare let slatesMessageConfigDefaultGetRequest: z.ZodObject<{
|
|
61
|
-
jsonrpc: z.ZodLiteral<"2.0">;
|
|
62
|
-
method: z.ZodLiteral<"slates/config.get_default">;
|
|
63
|
-
id: z.ZodString;
|
|
64
|
-
params: z.ZodObject<{}, z.core.$strip>;
|
|
65
|
-
}, z.core.$strip>;
|
|
66
|
-
export type SlatesMessageConfigDefaultGetRequest = z.infer<typeof slatesMessageConfigDefaultGetRequest>;
|
|
67
|
-
export declare let slatesMessageConfigDefaultGetResponse: z.ZodObject<{
|
|
68
|
-
jsonrpc: z.ZodLiteral<"2.0">;
|
|
69
|
-
id: z.ZodString;
|
|
70
|
-
result: z.ZodObject<{
|
|
71
|
-
config: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
72
|
-
}, z.core.$strip>;
|
|
73
|
-
}, z.core.$strip>;
|
|
74
|
-
export type SlatesMessageConfigDefaultGetResponse = z.infer<typeof slatesMessageConfigDefaultGetResponse>;
|
|
75
|
-
export type SlatesConfigRequests = SlatesMessageConfigSchemaGetRequest | SlatesMessageConfigDefaultGetRequest | SlatesMessageConfigChangedRequest;
|
|
76
|
-
export type SlatesConfigResponses = SlatesMessageConfigSchemaGetResponse | SlatesMessageConfigDefaultGetResponse | SlatesMessageConfigChangedResponse;
|
|
77
|
-
export type SlatesConfigNotifications = SlatesMessageSetConfigNotification;
|
|
78
|
-
export declare let slatesConfigResponsesByMethod: {
|
|
79
|
-
'slates/config.schema.get': z.ZodObject<{
|
|
80
|
-
jsonrpc: z.ZodLiteral<"2.0">;
|
|
81
|
-
id: z.ZodString;
|
|
82
|
-
result: z.ZodObject<{
|
|
83
|
-
schema: z.ZodRecord<z.ZodString, z.ZodAny>;
|
|
84
|
-
}, z.core.$strip>;
|
|
85
|
-
}, z.core.$strip>;
|
|
86
|
-
'slates/config.get_default': z.ZodObject<{
|
|
87
|
-
jsonrpc: z.ZodLiteral<"2.0">;
|
|
88
|
-
id: z.ZodString;
|
|
89
|
-
result: z.ZodObject<{
|
|
90
|
-
config: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
91
|
-
}, z.core.$strip>;
|
|
92
|
-
}, z.core.$strip>;
|
|
93
|
-
'slates/config.changed': z.ZodObject<{
|
|
94
|
-
jsonrpc: z.ZodLiteral<"2.0">;
|
|
95
|
-
id: z.ZodString;
|
|
96
|
-
result: z.ZodObject<{
|
|
97
|
-
success: z.ZodBoolean;
|
|
98
|
-
config: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
99
|
-
errors: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
100
|
-
code: z.ZodString;
|
|
101
|
-
message: z.ZodString;
|
|
102
|
-
path: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
103
|
-
}, z.core.$strip>>>;
|
|
104
|
-
}, z.core.$strip>;
|
|
105
|
-
}, z.core.$strip>;
|
|
106
|
-
};
|
|
107
|
-
export declare let slatesConfigRequestsByMethod: {
|
|
108
|
-
'slates/config.schema.get': z.ZodObject<{
|
|
109
|
-
jsonrpc: z.ZodLiteral<"2.0">;
|
|
110
|
-
method: z.ZodLiteral<"slates/config.schema.get">;
|
|
111
|
-
id: z.ZodString;
|
|
112
|
-
params: z.ZodObject<{}, z.core.$strip>;
|
|
113
|
-
}, z.core.$strip>;
|
|
114
|
-
'slates/config.get_default': z.ZodObject<{
|
|
115
|
-
jsonrpc: z.ZodLiteral<"2.0">;
|
|
116
|
-
method: z.ZodLiteral<"slates/config.get_default">;
|
|
117
|
-
id: z.ZodString;
|
|
118
|
-
params: z.ZodObject<{}, z.core.$strip>;
|
|
119
|
-
}, z.core.$strip>;
|
|
120
|
-
'slates/config.changed': z.ZodObject<{
|
|
121
|
-
jsonrpc: z.ZodLiteral<"2.0">;
|
|
122
|
-
method: z.ZodLiteral<"slates/config.changed">;
|
|
123
|
-
params: z.ZodObject<{
|
|
124
|
-
previousConfig: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
125
|
-
newConfig: z.ZodRecord<z.ZodString, z.ZodAny>;
|
|
126
|
-
}, z.core.$strip>;
|
|
127
|
-
}, z.core.$strip>;
|
|
128
|
-
};
|
|
129
|
-
export declare let slatesConfigNotificationsByMethod: {
|
|
130
|
-
'slates/config.set': z.ZodObject<{
|
|
131
|
-
jsonrpc: z.ZodLiteral<"2.0">;
|
|
132
|
-
method: z.ZodLiteral<"slates/config.set">;
|
|
133
|
-
params: z.ZodObject<{
|
|
134
|
-
config: z.ZodRecord<z.ZodString, z.ZodAny>;
|
|
135
|
-
}, z.core.$strip>;
|
|
136
|
-
}, z.core.$strip>;
|
|
137
|
-
};
|
|
138
|
-
//# sourceMappingURL=config.d.ts.map
|
|
@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