auth0-deploy-cli 7.10.0 → 7.12.0

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.
Files changed (142) hide show
  1. package/CHANGELOG.md +34 -1
  2. package/lib/context/directory/handlers/actions.d.ts +2 -3
  3. package/lib/context/directory/handlers/actions.js +4 -4
  4. package/lib/context/directory/handlers/attackProtection.d.ts +6 -7
  5. package/lib/context/directory/handlers/attackProtection.js +3 -1
  6. package/lib/context/directory/handlers/branding.d.ts +2 -3
  7. package/lib/context/directory/handlers/branding.js +8 -18
  8. package/lib/context/directory/handlers/clientGrants.d.ts +2 -3
  9. package/lib/context/directory/handlers/clientGrants.js +3 -2
  10. package/lib/context/directory/handlers/clients.d.ts +2 -3
  11. package/lib/context/directory/handlers/clients.js +1 -1
  12. package/lib/context/directory/handlers/connections.d.ts +2 -3
  13. package/lib/context/directory/handlers/connections.js +3 -3
  14. package/lib/context/directory/handlers/customDomains.d.ts +5 -0
  15. package/lib/context/directory/handlers/customDomains.js +46 -0
  16. package/lib/context/directory/handlers/databases.d.ts +2 -3
  17. package/lib/context/directory/handlers/databases.js +2 -2
  18. package/lib/context/directory/handlers/emailProvider.d.ts +2 -3
  19. package/lib/context/directory/handlers/emailProvider.js +12 -10
  20. package/lib/context/directory/handlers/emailTemplates.d.ts +2 -3
  21. package/lib/context/directory/handlers/emailTemplates.js +2 -2
  22. package/lib/context/directory/handlers/guardianFactorProviders.d.ts +2 -3
  23. package/lib/context/directory/handlers/guardianFactorProviders.js +1 -1
  24. package/lib/context/directory/handlers/guardianFactorTemplates.d.ts +2 -3
  25. package/lib/context/directory/handlers/guardianFactorTemplates.js +1 -1
  26. package/lib/context/directory/handlers/guardianFactors.d.ts +2 -3
  27. package/lib/context/directory/handlers/guardianFactors.js +1 -1
  28. package/lib/context/directory/handlers/guardianPhoneFactorMessageTypes.d.ts +2 -3
  29. package/lib/context/directory/handlers/guardianPhoneFactorMessageTypes.js +6 -6
  30. package/lib/context/directory/handlers/guardianPhoneFactorSelectedProvider.d.ts +2 -3
  31. package/lib/context/directory/handlers/guardianPhoneFactorSelectedProvider.js +6 -6
  32. package/lib/context/directory/handlers/guardianPolicies.d.ts +2 -3
  33. package/lib/context/directory/handlers/guardianPolicies.js +6 -6
  34. package/lib/context/directory/handlers/hooks.d.ts +2 -3
  35. package/lib/context/directory/handlers/hooks.js +3 -3
  36. package/lib/context/directory/handlers/index.d.ts +2 -2
  37. package/lib/context/directory/handlers/index.js +4 -0
  38. package/lib/context/directory/handlers/logStreams.d.ts +2 -4
  39. package/lib/context/directory/handlers/logStreams.js +2 -2
  40. package/lib/context/directory/handlers/migrations.d.ts +2 -3
  41. package/lib/context/directory/handlers/migrations.js +2 -2
  42. package/lib/context/directory/handlers/organizations.d.ts +2 -3
  43. package/lib/context/directory/handlers/organizations.js +1 -1
  44. package/lib/context/directory/handlers/pages.d.ts +2 -3
  45. package/lib/context/directory/handlers/pages.js +2 -2
  46. package/lib/context/directory/handlers/prompts.d.ts +6 -0
  47. package/lib/context/directory/handlers/prompts.js +81 -0
  48. package/lib/context/directory/handlers/resourceServers.d.ts +2 -3
  49. package/lib/context/directory/handlers/resourceServers.js +1 -1
  50. package/lib/context/directory/handlers/roles.d.ts +2 -3
  51. package/lib/context/directory/handlers/roles.js +1 -1
  52. package/lib/context/directory/handlers/rules.d.ts +2 -3
  53. package/lib/context/directory/handlers/rules.js +2 -2
  54. package/lib/context/directory/handlers/rulesConfigs.d.ts +2 -3
  55. package/lib/context/directory/handlers/rulesConfigs.js +1 -1
  56. package/lib/context/directory/handlers/tenant.d.ts +7 -7
  57. package/lib/context/directory/handlers/tenant.js +11 -10
  58. package/lib/context/directory/handlers/triggers.d.ts +2 -3
  59. package/lib/context/directory/handlers/triggers.js +1 -1
  60. package/lib/context/yaml/handlers/actions.d.ts +2 -3
  61. package/lib/context/yaml/handlers/actions.js +6 -8
  62. package/lib/context/yaml/handlers/attackProtection.d.ts +6 -3
  63. package/lib/context/yaml/handlers/attackProtection.js +9 -1
  64. package/lib/context/yaml/handlers/branding.d.ts +6 -6
  65. package/lib/context/yaml/handlers/branding.js +11 -6
  66. package/lib/context/yaml/handlers/clientGrants.d.ts +2 -3
  67. package/lib/context/yaml/handlers/clientGrants.js +7 -6
  68. package/lib/context/yaml/handlers/clients.d.ts +2 -3
  69. package/lib/context/yaml/handlers/clients.js +6 -3
  70. package/lib/context/yaml/handlers/connections.d.ts +2 -3
  71. package/lib/context/yaml/handlers/connections.js +6 -9
  72. package/lib/context/yaml/handlers/customDomains.d.ts +5 -0
  73. package/lib/context/yaml/handlers/customDomains.js +26 -0
  74. package/lib/context/yaml/handlers/databases.d.ts +3 -4
  75. package/lib/context/yaml/handlers/databases.js +7 -7
  76. package/lib/context/yaml/handlers/emailProvider.d.ts +2 -3
  77. package/lib/context/yaml/handlers/emailProvider.js +17 -10
  78. package/lib/context/yaml/handlers/emailTemplates.d.ts +2 -3
  79. package/lib/context/yaml/handlers/emailTemplates.js +16 -13
  80. package/lib/context/yaml/handlers/guardianFactorProviders.d.ts +2 -3
  81. package/lib/context/yaml/handlers/guardianFactorProviders.js +4 -2
  82. package/lib/context/yaml/handlers/guardianFactorTemplates.d.ts +2 -3
  83. package/lib/context/yaml/handlers/guardianFactorTemplates.js +4 -2
  84. package/lib/context/yaml/handlers/guardianFactors.d.ts +2 -3
  85. package/lib/context/yaml/handlers/guardianFactors.js +4 -2
  86. package/lib/context/yaml/handlers/guardianPhoneFactorMessageTypes.d.ts +2 -3
  87. package/lib/context/yaml/handlers/guardianPhoneFactorMessageTypes.js +4 -2
  88. package/lib/context/yaml/handlers/guardianPhoneFactorSelectedProvider.d.ts +2 -3
  89. package/lib/context/yaml/handlers/guardianPhoneFactorSelectedProvider.js +4 -2
  90. package/lib/context/yaml/handlers/guardianPolicies.d.ts +4 -3
  91. package/lib/context/yaml/handlers/guardianPolicies.js +4 -2
  92. package/lib/context/yaml/handlers/hooks.d.ts +2 -3
  93. package/lib/context/yaml/handlers/hooks.js +20 -19
  94. package/lib/context/yaml/handlers/index.d.ts +1 -1
  95. package/lib/context/yaml/handlers/index.js +4 -0
  96. package/lib/context/yaml/handlers/logStreams.d.ts +2 -4
  97. package/lib/context/yaml/handlers/logStreams.js +4 -1
  98. package/lib/context/yaml/handlers/migrations.d.ts +2 -3
  99. package/lib/context/yaml/handlers/migrations.js +5 -9
  100. package/lib/context/yaml/handlers/organizations.d.ts +2 -1
  101. package/lib/context/yaml/handlers/organizations.js +17 -15
  102. package/lib/context/yaml/handlers/pages.d.ts +2 -3
  103. package/lib/context/yaml/handlers/pages.js +20 -18
  104. package/lib/context/yaml/handlers/prompts.d.ts +6 -0
  105. package/lib/context/yaml/handlers/prompts.js +26 -0
  106. package/lib/context/yaml/handlers/resourceServers.d.ts +2 -3
  107. package/lib/context/yaml/handlers/resourceServers.js +8 -13
  108. package/lib/context/yaml/handlers/roles.d.ts +2 -3
  109. package/lib/context/yaml/handlers/roles.js +13 -11
  110. package/lib/context/yaml/handlers/rules.d.ts +2 -3
  111. package/lib/context/yaml/handlers/rules.js +18 -17
  112. package/lib/context/yaml/handlers/rulesConfigs.d.ts +2 -3
  113. package/lib/context/yaml/handlers/rulesConfigs.js +9 -5
  114. package/lib/context/yaml/handlers/tenant.d.ts +2 -3
  115. package/lib/context/yaml/handlers/tenant.js +4 -3
  116. package/lib/context/yaml/handlers/triggers.d.ts +2 -3
  117. package/lib/context/yaml/handlers/triggers.js +2 -2
  118. package/lib/context/yaml/index.js +2 -1
  119. package/lib/index.d.ts +2 -0
  120. package/lib/tools/auth0/handlers/actions.js +23 -7
  121. package/lib/tools/auth0/handlers/branding.d.ts +2 -2
  122. package/lib/tools/auth0/handlers/clientGrants.js +1 -1
  123. package/lib/tools/auth0/handlers/connections.js +1 -1
  124. package/lib/tools/auth0/handlers/customDomains.d.ts +43 -0
  125. package/lib/tools/auth0/handlers/customDomains.js +85 -0
  126. package/lib/tools/auth0/handlers/default.js +9 -2
  127. package/lib/tools/auth0/handlers/index.d.ts +34 -24
  128. package/lib/tools/auth0/handlers/index.js +2 -0
  129. package/lib/tools/auth0/handlers/prompts.d.ts +41 -3
  130. package/lib/tools/auth0/handlers/prompts.js +139 -19
  131. package/lib/tools/auth0/handlers/rules.js +2 -2
  132. package/lib/tools/auth0/index.js +5 -2
  133. package/lib/tools/constants.d.ts +2 -0
  134. package/lib/tools/constants.js +2 -0
  135. package/lib/tools/index.d.ts +2 -0
  136. package/lib/tools/utils.d.ts +9 -0
  137. package/lib/tools/utils.js +33 -1
  138. package/lib/types.d.ts +60 -37
  139. package/lib/types.js +46 -0
  140. package/lib/utils.d.ts +82 -29
  141. package/lib/utils.js +1 -1
  142. package/package.json +7 -4
package/lib/types.d.ts CHANGED
@@ -1,3 +1,4 @@
1
+ import { PromptScreenTypes, Prompts, PromptsCustomText, PromptSettings } from './tools/auth0/handlers/prompts';
1
2
  declare type SharedPaginationParams = {
2
3
  checkpoint?: boolean;
3
4
  paginate?: boolean;
@@ -126,9 +127,20 @@ export declare type BaseAuth0APIClient = {
126
127
  get: (arg0: Asset) => Promise<Asset>;
127
128
  };
128
129
  };
129
- prompts: APIClientBaseFunctions & {
130
- getSettings: () => Promise<Asset[]>;
131
- updateSettings: (arg0: {}, arg1: Asset) => Promise<void>;
130
+ prompts: {
131
+ updateCustomTextByLanguage: (arg0: {
132
+ prompt: PromptScreenTypes;
133
+ language: Language;
134
+ body: {
135
+ [key: string]: string;
136
+ };
137
+ }) => Promise<void>;
138
+ getCustomTextByLanguage: (arg0: {
139
+ prompt: PromptScreenTypes;
140
+ language: Language;
141
+ }) => Promise<Partial<PromptsCustomText>>;
142
+ getSettings: () => Promise<PromptSettings>;
143
+ updateSettings: (arg0: {}, arg1: Partial<PromptSettings>) => Promise<void>;
132
144
  };
133
145
  resourceServers: APIClientBaseFunctions;
134
146
  roles: APIClientBaseFunctions & {
@@ -150,15 +162,14 @@ export declare type BaseAuth0APIClient = {
150
162
  getAll: () => Promise<Asset[]>;
151
163
  };
152
164
  tenant: APIClientBaseFunctions & {
153
- getSettings: () => Promise<Asset>;
165
+ getSettings: () => Promise<Asset & {
166
+ enabled_locales: Language[];
167
+ }>;
154
168
  updateSettings: (arg0: Asset) => Promise<void>;
155
169
  };
156
170
  triggers: APIClientBaseFunctions & {
157
171
  getTriggerBindings: () => Promise<Asset>;
158
172
  };
159
- updateRule: (arg0: {
160
- id: string;
161
- }, arg1: Asset) => Promise<Asset>;
162
173
  };
163
174
  export declare type Auth0APIClient = BaseAuth0APIClient & {
164
175
  pool: {
@@ -208,50 +219,62 @@ export declare type Config = {
208
219
  export declare type Asset = {
209
220
  [key: string]: any;
210
221
  };
211
- export declare type Assets = {
212
- actions: Asset[];
213
- attackProtection: Asset;
214
- branding: Asset;
215
- clients: Asset[];
216
- clientGrants: Asset[];
217
- connections: Asset[];
218
- databases: Asset[];
219
- emailProvider: Asset;
220
- emailTemplates: Asset[];
221
- guardianFactorProviders: Asset[];
222
- guardianFactors: Asset[];
223
- guardianFactorTemplates: Asset[];
222
+ export declare type Assets = Partial<{
223
+ actions: Asset[] | null;
224
+ attackProtection: Asset | null;
225
+ branding: {
226
+ templates?: {
227
+ template: string;
228
+ body: string;
229
+ }[] | null;
230
+ } | null;
231
+ clients: Asset[] | null;
232
+ clientGrants: Asset[] | null;
233
+ connections: Asset[] | null;
234
+ customDomains: Asset[] | null;
235
+ databases: Asset[] | null;
236
+ emailProvider: Asset | null;
237
+ emailTemplates: Asset[] | null;
238
+ guardianFactorProviders: Asset[] | null;
239
+ guardianFactors: Asset[] | null;
240
+ guardianFactorTemplates: Asset[] | null;
224
241
  guardianPhoneFactorMessageTypes: {
225
242
  message_types: Asset[];
226
- };
227
- guardianPhoneFactorSelectedProvider: Asset;
243
+ } | null;
244
+ guardianPhoneFactorSelectedProvider: Asset | null;
228
245
  guardianPolicies: {
229
246
  policies: Asset[];
230
- };
231
- hooks: Asset[];
232
- logStreams: Asset[];
233
- migrations: Asset[];
234
- organizations: Asset[];
235
- pages: Asset[];
236
- resourceServers: Asset[];
237
- roles: Asset[];
238
- rules: Asset[];
239
- rulesConfigs: Asset[];
240
- tenant: Asset;
241
- triggers: Asset[];
247
+ } | null;
248
+ hooks: Asset[] | null;
249
+ logStreams: Asset[] | null;
250
+ migrations: Asset[] | null;
251
+ organizations: Asset[] | null;
252
+ pages: Asset[] | null;
253
+ prompts: Prompts | null;
254
+ resourceServers: Asset[] | null;
255
+ roles: Asset[] | null;
256
+ rules: Asset[] | null;
257
+ rulesConfigs: Asset[] | null;
258
+ tenant: Asset | null;
259
+ triggers: Asset[] | null;
242
260
  exclude?: {
243
261
  [key: string]: string[];
244
262
  };
245
- clientsOrig: Asset[];
246
- };
263
+ clientsOrig: Asset[] | null;
264
+ }>;
247
265
  export declare type CalculatedChanges = {
248
266
  del: Asset[];
249
267
  update: Asset[];
250
268
  conflicts: Asset[];
251
269
  create: Asset[];
252
270
  };
253
- export declare type AssetTypes = 'rules' | 'rulesConfigs' | 'hooks' | 'pages' | 'databases' | 'clientGrants' | 'resourceServers' | 'clients' | 'connections' | 'tenant' | 'emailProvider' | 'emailTemplates' | 'guardianFactors' | 'guardianFactorProviders' | 'guardianFactorTemplates' | 'migrations' | 'guardianPhoneFactorMessageTypes' | 'guardianPhoneFactorSelectedProvider' | 'guardianPolicies' | 'roles' | 'actions' | 'organizations' | 'triggers' | 'attackProtection' | 'branding' | 'logStreams';
271
+ export declare type AssetTypes = 'rules' | 'rulesConfigs' | 'hooks' | 'pages' | 'databases' | 'clientGrants' | 'resourceServers' | 'clients' | 'connections' | 'tenant' | 'emailProvider' | 'emailTemplates' | 'guardianFactors' | 'guardianFactorProviders' | 'guardianFactorTemplates' | 'migrations' | 'guardianPhoneFactorMessageTypes' | 'guardianPhoneFactorSelectedProvider' | 'guardianPolicies' | 'roles' | 'actions' | 'organizations' | 'triggers' | 'attackProtection' | 'branding' | 'logStreams' | 'prompts' | 'customDomains';
254
272
  export declare type KeywordMappings = {
255
273
  [key: string]: (string | number)[] | string | number;
256
274
  };
275
+ export declare type ParsedAsset<Key extends AssetTypes, T> = {
276
+ [key in Key]: T | null;
277
+ };
278
+ export declare const languages: readonly ["ar", "bg", "bs", "cs", "da", "de", "el", "en", "es", "et", "fi", "fr", "fr-CA", "fr-FR", "he", "hi", "hr", "hu", "id", "is", "it", "ja", "ko", "lt", "lv", "nb", "nl", "pl", "pt", "pt-BR", "pt-PT", "ro", "ru", "sk", "sl", "sr", "sv", "th", "tr", "uk", "vi", "zh-CN", "zh-TW"];
279
+ export declare type Language = typeof languages[number];
257
280
  export {};
package/lib/types.js CHANGED
@@ -1,2 +1,48 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.languages = void 0;
4
+ exports.languages = [
5
+ 'ar',
6
+ 'bg',
7
+ 'bs',
8
+ 'cs',
9
+ 'da',
10
+ 'de',
11
+ 'el',
12
+ 'en',
13
+ 'es',
14
+ 'et',
15
+ 'fi',
16
+ 'fr',
17
+ 'fr-CA',
18
+ 'fr-FR',
19
+ 'he',
20
+ 'hi',
21
+ 'hr',
22
+ 'hu',
23
+ 'id',
24
+ 'is',
25
+ 'it',
26
+ 'ja',
27
+ 'ko',
28
+ 'lt',
29
+ 'lv',
30
+ 'nb',
31
+ 'nl',
32
+ 'pl',
33
+ 'pt',
34
+ 'pt-BR',
35
+ 'pt-PT',
36
+ 'ro',
37
+ 'ru',
38
+ 'sk',
39
+ 'sl',
40
+ 'sr',
41
+ 'sv',
42
+ 'th',
43
+ 'tr',
44
+ 'uk',
45
+ 'vi',
46
+ 'zh-CN',
47
+ 'zh-TW',
48
+ ];
package/lib/utils.d.ts CHANGED
@@ -10,40 +10,93 @@ export declare function dumpJSON(file: string, mappings: {
10
10
  export declare function existsMustBeDir(folder: string): boolean;
11
11
  export declare function toConfigFn(data: Config): (arg0: keyof Config) => any;
12
12
  export declare function stripIdentifiers(auth0: Auth0, assets: Assets): {
13
- actions: Asset[];
14
- attackProtection: Asset;
15
- branding: Asset;
16
- clients: Asset[];
17
- clientGrants: Asset[];
18
- connections: Asset[];
19
- databases: Asset[];
20
- emailProvider: Asset;
21
- emailTemplates: Asset[];
22
- guardianFactorProviders: Asset[];
23
- guardianFactors: Asset[];
24
- guardianFactorTemplates: Asset[];
25
- guardianPhoneFactorMessageTypes: {
13
+ actions?: Asset[] | null | undefined;
14
+ attackProtection?: Asset | null | undefined;
15
+ branding?: {
16
+ templates?: {
17
+ template: string;
18
+ body: string;
19
+ }[] | null | undefined;
20
+ } | null | undefined;
21
+ clients?: Asset[] | null | undefined;
22
+ clientGrants?: Asset[] | null | undefined;
23
+ connections?: Asset[] | null | undefined;
24
+ customDomains?: Asset[] | null | undefined;
25
+ databases?: Asset[] | null | undefined;
26
+ emailProvider?: Asset | null | undefined;
27
+ emailTemplates?: Asset[] | null | undefined;
28
+ guardianFactorProviders?: Asset[] | null | undefined;
29
+ guardianFactors?: Asset[] | null | undefined;
30
+ guardianFactorTemplates?: Asset[] | null | undefined;
31
+ guardianPhoneFactorMessageTypes?: {
26
32
  message_types: Asset[];
27
- };
28
- guardianPhoneFactorSelectedProvider: Asset;
29
- guardianPolicies: {
33
+ } | null | undefined;
34
+ guardianPhoneFactorSelectedProvider?: Asset | null | undefined;
35
+ guardianPolicies?: {
30
36
  policies: Asset[];
31
- };
32
- hooks: Asset[];
33
- logStreams: Asset[];
34
- migrations: Asset[];
35
- organizations: Asset[];
36
- pages: Asset[];
37
- resourceServers: Asset[];
38
- roles: Asset[];
39
- rules: Asset[];
40
- rulesConfigs: Asset[];
41
- tenant: Asset;
42
- triggers: Asset[];
37
+ } | null | undefined;
38
+ hooks?: Asset[] | null | undefined;
39
+ logStreams?: Asset[] | null | undefined;
40
+ migrations?: Asset[] | null | undefined;
41
+ organizations?: Asset[] | null | undefined;
42
+ pages?: Asset[] | null | undefined;
43
+ prompts?: Partial<import("./tools/auth0/handlers/prompts").PromptSettings & {
44
+ customText: Partial<{
45
+ id: Partial<import("./tools/auth0/handlers/prompts").PromptsCustomText>;
46
+ ar: Partial<import("./tools/auth0/handlers/prompts").PromptsCustomText>;
47
+ bg: Partial<import("./tools/auth0/handlers/prompts").PromptsCustomText>;
48
+ bs: Partial<import("./tools/auth0/handlers/prompts").PromptsCustomText>;
49
+ cs: Partial<import("./tools/auth0/handlers/prompts").PromptsCustomText>;
50
+ da: Partial<import("./tools/auth0/handlers/prompts").PromptsCustomText>;
51
+ de: Partial<import("./tools/auth0/handlers/prompts").PromptsCustomText>;
52
+ el: Partial<import("./tools/auth0/handlers/prompts").PromptsCustomText>;
53
+ en: Partial<import("./tools/auth0/handlers/prompts").PromptsCustomText>;
54
+ es: Partial<import("./tools/auth0/handlers/prompts").PromptsCustomText>;
55
+ et: Partial<import("./tools/auth0/handlers/prompts").PromptsCustomText>;
56
+ fi: Partial<import("./tools/auth0/handlers/prompts").PromptsCustomText>;
57
+ fr: Partial<import("./tools/auth0/handlers/prompts").PromptsCustomText>;
58
+ "fr-CA": Partial<import("./tools/auth0/handlers/prompts").PromptsCustomText>;
59
+ "fr-FR": Partial<import("./tools/auth0/handlers/prompts").PromptsCustomText>;
60
+ he: Partial<import("./tools/auth0/handlers/prompts").PromptsCustomText>;
61
+ hi: Partial<import("./tools/auth0/handlers/prompts").PromptsCustomText>;
62
+ hr: Partial<import("./tools/auth0/handlers/prompts").PromptsCustomText>;
63
+ hu: Partial<import("./tools/auth0/handlers/prompts").PromptsCustomText>;
64
+ is: Partial<import("./tools/auth0/handlers/prompts").PromptsCustomText>;
65
+ it: Partial<import("./tools/auth0/handlers/prompts").PromptsCustomText>;
66
+ ja: Partial<import("./tools/auth0/handlers/prompts").PromptsCustomText>;
67
+ ko: Partial<import("./tools/auth0/handlers/prompts").PromptsCustomText>;
68
+ lt: Partial<import("./tools/auth0/handlers/prompts").PromptsCustomText>;
69
+ lv: Partial<import("./tools/auth0/handlers/prompts").PromptsCustomText>;
70
+ nb: Partial<import("./tools/auth0/handlers/prompts").PromptsCustomText>;
71
+ nl: Partial<import("./tools/auth0/handlers/prompts").PromptsCustomText>;
72
+ pl: Partial<import("./tools/auth0/handlers/prompts").PromptsCustomText>;
73
+ pt: Partial<import("./tools/auth0/handlers/prompts").PromptsCustomText>;
74
+ "pt-BR": Partial<import("./tools/auth0/handlers/prompts").PromptsCustomText>;
75
+ "pt-PT": Partial<import("./tools/auth0/handlers/prompts").PromptsCustomText>;
76
+ ro: Partial<import("./tools/auth0/handlers/prompts").PromptsCustomText>;
77
+ ru: Partial<import("./tools/auth0/handlers/prompts").PromptsCustomText>;
78
+ sk: Partial<import("./tools/auth0/handlers/prompts").PromptsCustomText>;
79
+ sl: Partial<import("./tools/auth0/handlers/prompts").PromptsCustomText>;
80
+ sr: Partial<import("./tools/auth0/handlers/prompts").PromptsCustomText>;
81
+ sv: Partial<import("./tools/auth0/handlers/prompts").PromptsCustomText>;
82
+ th: Partial<import("./tools/auth0/handlers/prompts").PromptsCustomText>;
83
+ tr: Partial<import("./tools/auth0/handlers/prompts").PromptsCustomText>;
84
+ uk: Partial<import("./tools/auth0/handlers/prompts").PromptsCustomText>;
85
+ vi: Partial<import("./tools/auth0/handlers/prompts").PromptsCustomText>;
86
+ "zh-CN": Partial<import("./tools/auth0/handlers/prompts").PromptsCustomText>;
87
+ "zh-TW": Partial<import("./tools/auth0/handlers/prompts").PromptsCustomText>;
88
+ }>;
89
+ }> | null | undefined;
90
+ resourceServers?: Asset[] | null | undefined;
91
+ roles?: Asset[] | null | undefined;
92
+ rules?: Asset[] | null | undefined;
93
+ rulesConfigs?: Asset[] | null | undefined;
94
+ tenant?: Asset | null | undefined;
95
+ triggers?: Asset[] | null | undefined;
43
96
  exclude?: {
44
97
  [key: string]: string[];
45
98
  } | undefined;
46
- clientsOrig: Asset[];
99
+ clientsOrig?: Asset[] | null | undefined;
47
100
  };
48
101
  export declare function sanitize(str: string): string;
49
102
  declare type ImportantFields = {
package/lib/utils.js CHANGED
@@ -107,7 +107,7 @@ function sanitize(str) {
107
107
  }
108
108
  exports.sanitize = sanitize;
109
109
  function formatResults(item) {
110
- if (typeof item !== 'object') {
110
+ if (!item || typeof item !== 'object') {
111
111
  return item;
112
112
  }
113
113
  const importantFields = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "auth0-deploy-cli",
3
- "version": "7.10.0",
3
+ "version": "7.12.0",
4
4
  "description": "A command line tool for deploying updates to your Auth0 tenant",
5
5
  "main": "lib/index.js",
6
6
  "bin": {
@@ -41,12 +41,12 @@
41
41
  "js-yaml": "^4.1.0",
42
42
  "lodash": "^4.17.20",
43
43
  "mkdirp": "^0.5.6",
44
- "nconf": "^0.11.4",
44
+ "nconf": "^0.12.0",
45
45
  "promise-pool-executor": "^1.1.1",
46
46
  "sanitize-filename": "^1.6.1",
47
47
  "sinon": "^13.0.1",
48
48
  "sinon-chai": "^3.7.0",
49
- "winston": "^3.6.0",
49
+ "winston": "^3.7.2",
50
50
  "yargs": "^15.3.1"
51
51
  },
52
52
  "devDependencies": {
@@ -59,7 +59,7 @@
59
59
  "eslint": "^7.28.0",
60
60
  "eslint-config-airbnb-base": "^14.2.1",
61
61
  "eslint-config-prettier": "^8.5.0",
62
- "eslint-plugin-import": "^2.25.4",
62
+ "eslint-plugin-import": "^2.26.0",
63
63
  "husky": "^7.0.4",
64
64
  "kacl": "^1.1.1",
65
65
  "mocha": "^9.2.2",
@@ -70,5 +70,8 @@
70
70
  "rmdir-sync": "^1.0.1",
71
71
  "ts-mocha": "^9.0.2",
72
72
  "typescript": "^4.6.3"
73
+ },
74
+ "overrides": {
75
+ "istanbul-reports": "3.1.4"
73
76
  }
74
77
  }