auth0-deploy-cli 7.12.2 → 7.13.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,455 @@
1
+ import { Assets } from '../../../types';
2
+ import DefaultHandler from './default';
3
+ export default class ThemesHandler extends DefaultHandler {
4
+ existing: Theme[] | null;
5
+ constructor(options: DefaultHandler);
6
+ objString(theme: Theme): string;
7
+ getType(): Promise<Theme[] | null>;
8
+ processChanges(assets: Assets): Promise<void>;
9
+ deleteThemes(): Promise<void>;
10
+ updateThemes(themes: Theme[]): Promise<void>;
11
+ getThemes(): Promise<Theme[] | null>;
12
+ }
13
+ /**
14
+ * Schema
15
+ */
16
+ export declare const schema: {
17
+ type: string;
18
+ items: {
19
+ additionalProperties: boolean;
20
+ properties: {
21
+ borders: {
22
+ additionalProperties: boolean;
23
+ properties: {
24
+ button_border_radius: {
25
+ description: string;
26
+ maximum: number;
27
+ minimum: number;
28
+ type: string;
29
+ };
30
+ button_border_weight: {
31
+ description: string;
32
+ maximum: number;
33
+ minimum: number;
34
+ type: string;
35
+ };
36
+ buttons_style: {
37
+ description: string;
38
+ enum: string[];
39
+ type: string;
40
+ };
41
+ input_border_radius: {
42
+ description: string;
43
+ maximum: number;
44
+ minimum: number;
45
+ type: string;
46
+ };
47
+ input_border_weight: {
48
+ description: string;
49
+ maximum: number;
50
+ minimum: number;
51
+ type: string;
52
+ };
53
+ inputs_style: {
54
+ description: string;
55
+ enum: string[];
56
+ type: string;
57
+ };
58
+ show_widget_shadow: {
59
+ description: string;
60
+ type: string;
61
+ };
62
+ widget_border_weight: {
63
+ description: string;
64
+ maximum: number;
65
+ minimum: number;
66
+ type: string;
67
+ };
68
+ widget_corner_radius: {
69
+ description: string;
70
+ maximum: number;
71
+ minimum: number;
72
+ type: string;
73
+ };
74
+ };
75
+ required: string[];
76
+ type: string;
77
+ };
78
+ colors: {
79
+ additionalProperties: boolean;
80
+ properties: {
81
+ base_focus_color: {
82
+ description: string;
83
+ pattern: string;
84
+ type: string;
85
+ };
86
+ base_hover_color: {
87
+ description: string;
88
+ pattern: string;
89
+ type: string;
90
+ };
91
+ body_text: {
92
+ description: string;
93
+ pattern: string;
94
+ type: string;
95
+ };
96
+ error: {
97
+ description: string;
98
+ pattern: string;
99
+ type: string;
100
+ };
101
+ header: {
102
+ description: string;
103
+ pattern: string;
104
+ type: string;
105
+ };
106
+ icons: {
107
+ description: string;
108
+ pattern: string;
109
+ type: string;
110
+ };
111
+ input_background: {
112
+ description: string;
113
+ pattern: string;
114
+ type: string;
115
+ };
116
+ input_border: {
117
+ description: string;
118
+ pattern: string;
119
+ type: string;
120
+ };
121
+ input_filled_text: {
122
+ description: string;
123
+ pattern: string;
124
+ type: string;
125
+ };
126
+ input_labels_placeholders: {
127
+ description: string;
128
+ pattern: string;
129
+ type: string;
130
+ };
131
+ links_focused_components: {
132
+ description: string;
133
+ pattern: string;
134
+ type: string;
135
+ };
136
+ primary_button: {
137
+ description: string;
138
+ pattern: string;
139
+ type: string;
140
+ };
141
+ primary_button_label: {
142
+ description: string;
143
+ pattern: string;
144
+ type: string;
145
+ };
146
+ secondary_button_border: {
147
+ description: string;
148
+ pattern: string;
149
+ type: string;
150
+ };
151
+ secondary_button_label: {
152
+ description: string;
153
+ pattern: string;
154
+ type: string;
155
+ };
156
+ success: {
157
+ description: string;
158
+ pattern: string;
159
+ type: string;
160
+ };
161
+ widget_background: {
162
+ description: string;
163
+ pattern: string;
164
+ type: string;
165
+ };
166
+ widget_border: {
167
+ description: string;
168
+ pattern: string;
169
+ type: string;
170
+ };
171
+ };
172
+ required: string[];
173
+ type: string;
174
+ };
175
+ displayName: {
176
+ description: string;
177
+ maxLength: number;
178
+ pattern: string;
179
+ type: string;
180
+ };
181
+ fonts: {
182
+ additionalProperties: boolean;
183
+ properties: {
184
+ body_text: {
185
+ additionalProperties: boolean;
186
+ description: string;
187
+ properties: {
188
+ bold: {
189
+ description: string;
190
+ type: string;
191
+ };
192
+ size: {
193
+ description: string;
194
+ maximum: number;
195
+ minimum: number;
196
+ type: string;
197
+ };
198
+ };
199
+ required: string[];
200
+ type: string;
201
+ };
202
+ buttons_text: {
203
+ additionalProperties: boolean;
204
+ description: string;
205
+ properties: {
206
+ bold: {
207
+ description: string;
208
+ type: string;
209
+ };
210
+ size: {
211
+ description: string;
212
+ maximum: number;
213
+ minimum: number;
214
+ type: string;
215
+ };
216
+ };
217
+ required: string[];
218
+ type: string;
219
+ };
220
+ font_url: {
221
+ description: string;
222
+ pattern: string;
223
+ type: string;
224
+ };
225
+ input_labels: {
226
+ additionalProperties: boolean;
227
+ description: string;
228
+ properties: {
229
+ bold: {
230
+ description: string;
231
+ type: string;
232
+ };
233
+ size: {
234
+ description: string;
235
+ maximum: number;
236
+ minimum: number;
237
+ type: string;
238
+ };
239
+ };
240
+ required: string[];
241
+ type: string;
242
+ };
243
+ links: {
244
+ additionalProperties: boolean;
245
+ description: string;
246
+ properties: {
247
+ bold: {
248
+ description: string;
249
+ type: string;
250
+ };
251
+ size: {
252
+ description: string;
253
+ maximum: number;
254
+ minimum: number;
255
+ type: string;
256
+ };
257
+ };
258
+ required: string[];
259
+ type: string;
260
+ };
261
+ links_style: {
262
+ description: string;
263
+ enum: string[];
264
+ type: string;
265
+ };
266
+ reference_text_size: {
267
+ description: string;
268
+ maximum: number;
269
+ minimum: number;
270
+ type: string;
271
+ };
272
+ subtitle: {
273
+ additionalProperties: boolean;
274
+ description: string;
275
+ properties: {
276
+ bold: {
277
+ description: string;
278
+ type: string;
279
+ };
280
+ size: {
281
+ description: string;
282
+ maximum: number;
283
+ minimum: number;
284
+ type: string;
285
+ };
286
+ };
287
+ required: string[];
288
+ type: string;
289
+ };
290
+ title: {
291
+ additionalProperties: boolean;
292
+ description: string;
293
+ properties: {
294
+ bold: {
295
+ description: string;
296
+ type: string;
297
+ };
298
+ size: {
299
+ description: string;
300
+ maximum: number;
301
+ minimum: number;
302
+ type: string;
303
+ };
304
+ };
305
+ required: string[];
306
+ type: string;
307
+ };
308
+ };
309
+ required: string[];
310
+ type: string;
311
+ };
312
+ page_background: {
313
+ additionalProperties: boolean;
314
+ properties: {
315
+ background_color: {
316
+ description: string;
317
+ pattern: string;
318
+ type: string;
319
+ };
320
+ background_image_url: {
321
+ description: string;
322
+ pattern: string;
323
+ type: string;
324
+ };
325
+ page_layout: {
326
+ description: string;
327
+ enum: string[];
328
+ type: string;
329
+ };
330
+ };
331
+ required: string[];
332
+ type: string;
333
+ };
334
+ widget: {
335
+ additionalProperties: boolean;
336
+ properties: {
337
+ header_text_alignment: {
338
+ description: string;
339
+ enum: string[];
340
+ type: string;
341
+ };
342
+ logo_height: {
343
+ description: string;
344
+ maximum: number;
345
+ minimum: number;
346
+ type: string;
347
+ };
348
+ logo_position: {
349
+ description: string;
350
+ enum: string[];
351
+ type: string;
352
+ };
353
+ logo_url: {
354
+ description: string;
355
+ pattern: string;
356
+ type: string;
357
+ };
358
+ social_buttons_layout: {
359
+ description: string;
360
+ enum: string[];
361
+ type: string;
362
+ };
363
+ };
364
+ required: string[];
365
+ type: string;
366
+ };
367
+ };
368
+ required: string[];
369
+ type: string;
370
+ };
371
+ };
372
+ /**
373
+ * Utility types
374
+ */
375
+ export interface Colors {
376
+ primary_button: string;
377
+ primary_button_label: string;
378
+ secondary_button_border: string;
379
+ secondary_button_label: string;
380
+ links_focused_components: string;
381
+ header: string;
382
+ body_text: string;
383
+ widget_background: string;
384
+ widget_border: string;
385
+ input_labels_placeholders: string;
386
+ input_filled_text: string;
387
+ input_border: string;
388
+ input_background: string;
389
+ icons: string;
390
+ error: string;
391
+ success: string;
392
+ base_focus_color?: string;
393
+ base_hover_color?: string;
394
+ }
395
+ export interface Fonts {
396
+ font_url: string;
397
+ reference_text_size: number;
398
+ title: {
399
+ size: number;
400
+ bold: boolean;
401
+ };
402
+ subtitle: {
403
+ size: number;
404
+ bold: boolean;
405
+ };
406
+ body_text: {
407
+ size: number;
408
+ bold: boolean;
409
+ };
410
+ buttons_text: {
411
+ size: number;
412
+ bold: boolean;
413
+ };
414
+ input_labels: {
415
+ size: number;
416
+ bold: boolean;
417
+ };
418
+ links: {
419
+ size: number;
420
+ bold: boolean;
421
+ };
422
+ links_style: 'normal' | 'underlined';
423
+ }
424
+ export interface Borders {
425
+ button_border_weight: number;
426
+ buttons_style: 'sharp' | 'pill' | 'rounded';
427
+ button_border_radius: number;
428
+ input_border_weight: number;
429
+ inputs_style: 'sharp' | 'pill' | 'rounded';
430
+ input_border_radius: number;
431
+ widget_corner_radius: number;
432
+ widget_border_weight: number;
433
+ show_widget_shadow: boolean;
434
+ }
435
+ export interface Widget {
436
+ logo_position: 'left' | 'center' | 'right' | 'none';
437
+ logo_url: string;
438
+ logo_height: number;
439
+ header_text_alignment: 'left' | 'center' | 'right';
440
+ social_buttons_layout: 'top' | 'bottom';
441
+ }
442
+ export interface PageBackground {
443
+ page_layout: 'left' | 'center' | 'right';
444
+ background_color: string;
445
+ background_image_url: string;
446
+ }
447
+ export interface Theme {
448
+ colors: Colors;
449
+ fonts: Fonts;
450
+ borders: Borders;
451
+ widget: Widget;
452
+ page_background: PageBackground;
453
+ themeId: string;
454
+ displayName?: string;
455
+ }