auth0-deploy-cli 8.15.0 → 8.17.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.
- package/CHANGELOG.md +35 -2
- package/lib/context/directory/handlers/emailTemplates.js +2 -2
- package/lib/context/directory/handlers/emailTemplates.js.map +1 -1
- package/lib/context/directory/handlers/index.js +2 -0
- package/lib/context/directory/handlers/index.js.map +1 -1
- package/lib/context/directory/handlers/resourceServers.js +11 -0
- package/lib/context/directory/handlers/resourceServers.js.map +1 -1
- package/lib/context/directory/handlers/selfServiceProfiles.js +10 -1
- package/lib/context/directory/handlers/selfServiceProfiles.js.map +1 -1
- package/lib/context/directory/handlers/userAttributeProfiles.d.ts +6 -0
- package/lib/context/directory/handlers/userAttributeProfiles.js +54 -0
- package/lib/context/directory/handlers/userAttributeProfiles.js.map +1 -0
- package/lib/context/directory/index.js +2 -0
- package/lib/context/directory/index.js.map +1 -1
- package/lib/context/yaml/handlers/emailTemplates.js +1 -1
- package/lib/context/yaml/handlers/emailTemplates.js.map +1 -1
- package/lib/context/yaml/handlers/index.js +2 -0
- package/lib/context/yaml/handlers/index.js.map +1 -1
- package/lib/context/yaml/handlers/resourceServers.js +16 -1
- package/lib/context/yaml/handlers/resourceServers.js.map +1 -1
- package/lib/context/yaml/handlers/selfServiceProfiles.js +10 -0
- package/lib/context/yaml/handlers/selfServiceProfiles.js.map +1 -1
- package/lib/context/yaml/handlers/userAttributeProfiles.d.ts +6 -0
- package/lib/context/yaml/handlers/userAttributeProfiles.js +27 -0
- package/lib/context/yaml/handlers/userAttributeProfiles.js.map +1 -0
- package/lib/index.d.ts +2 -0
- package/lib/tools/auth0/client.js +2 -1
- package/lib/tools/auth0/client.js.map +1 -1
- package/lib/tools/auth0/handlers/clients.d.ts +10 -0
- package/lib/tools/auth0/handlers/clients.js +29 -4
- package/lib/tools/auth0/handlers/clients.js.map +1 -1
- package/lib/tools/auth0/handlers/emailTemplates.js +4 -0
- package/lib/tools/auth0/handlers/emailTemplates.js.map +1 -1
- package/lib/tools/auth0/handlers/index.js +2 -0
- package/lib/tools/auth0/handlers/index.js.map +1 -1
- package/lib/tools/auth0/handlers/prompts.d.ts +2 -2
- package/lib/tools/auth0/handlers/prompts.js +3 -0
- package/lib/tools/auth0/handlers/prompts.js.map +1 -1
- package/lib/tools/auth0/handlers/resourceServers.d.ts +5 -0
- package/lib/tools/auth0/handlers/resourceServers.js +6 -1
- package/lib/tools/auth0/handlers/resourceServers.js.map +1 -1
- package/lib/tools/auth0/handlers/selfServiceProfiles.d.ts +6 -1
- package/lib/tools/auth0/handlers/selfServiceProfiles.js +91 -2
- package/lib/tools/auth0/handlers/selfServiceProfiles.js.map +1 -1
- package/lib/tools/auth0/handlers/userAttributeProfiles.d.ts +121 -0
- package/lib/tools/auth0/handlers/userAttributeProfiles.js +275 -0
- package/lib/tools/auth0/handlers/userAttributeProfiles.js.map +1 -0
- package/lib/tools/constants.d.ts +2 -0
- package/lib/tools/constants.js +6 -0
- package/lib/tools/constants.js.map +1 -1
- package/lib/tools/index.d.ts +2 -0
- package/lib/types.d.ts +5 -3
- package/lib/types.js +32 -0
- package/lib/types.js.map +1 -1
- package/lib/utils.d.ts +2 -0
- package/package.json +4 -4
|
@@ -0,0 +1,275 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
19
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
20
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
21
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
22
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
23
|
+
};
|
|
24
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
25
|
+
var ownKeys = function(o) {
|
|
26
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
27
|
+
var ar = [];
|
|
28
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
29
|
+
return ar;
|
|
30
|
+
};
|
|
31
|
+
return ownKeys(o);
|
|
32
|
+
};
|
|
33
|
+
return function (mod) {
|
|
34
|
+
if (mod && mod.__esModule) return mod;
|
|
35
|
+
var result = {};
|
|
36
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
37
|
+
__setModuleDefault(result, mod);
|
|
38
|
+
return result;
|
|
39
|
+
};
|
|
40
|
+
})();
|
|
41
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
42
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
43
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
44
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
45
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
46
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
47
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
48
|
+
});
|
|
49
|
+
};
|
|
50
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
51
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
52
|
+
};
|
|
53
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
54
|
+
exports.schema = void 0;
|
|
55
|
+
const default_1 = __importStar(require("./default"));
|
|
56
|
+
const logger_1 = __importDefault(require("../../../logger"));
|
|
57
|
+
const client_1 = require("../client");
|
|
58
|
+
const calculateChanges_1 = require("../../calculateChanges");
|
|
59
|
+
const strategies = ['pingfederate', 'ad', 'adfs', 'waad', 'google-apps', 'okta', 'oidc', 'samlp'];
|
|
60
|
+
const strategyOverrides = {
|
|
61
|
+
type: 'object',
|
|
62
|
+
additionalProperties: false,
|
|
63
|
+
properties: strategies.reduce((acc, curr) => (Object.assign(Object.assign({}, acc), { [curr]: {
|
|
64
|
+
type: 'object',
|
|
65
|
+
additionalProperties: false,
|
|
66
|
+
properties: {
|
|
67
|
+
oidc_mapping: {
|
|
68
|
+
type: 'object',
|
|
69
|
+
additionalProperties: false,
|
|
70
|
+
required: ['mapping'],
|
|
71
|
+
properties: {
|
|
72
|
+
mapping: {
|
|
73
|
+
type: 'string',
|
|
74
|
+
},
|
|
75
|
+
display_name: {
|
|
76
|
+
type: 'string',
|
|
77
|
+
minLength: 1,
|
|
78
|
+
maxLength: 50,
|
|
79
|
+
},
|
|
80
|
+
},
|
|
81
|
+
},
|
|
82
|
+
saml_mapping: {
|
|
83
|
+
type: 'array',
|
|
84
|
+
items: {
|
|
85
|
+
type: 'string',
|
|
86
|
+
minLength: 1,
|
|
87
|
+
maxLength: 128,
|
|
88
|
+
},
|
|
89
|
+
minItems: 1,
|
|
90
|
+
maxItems: 3,
|
|
91
|
+
uniqueItems: true,
|
|
92
|
+
},
|
|
93
|
+
scim_mapping: {
|
|
94
|
+
type: 'string',
|
|
95
|
+
minLength: 1,
|
|
96
|
+
maxLength: 128,
|
|
97
|
+
},
|
|
98
|
+
},
|
|
99
|
+
} })), {}),
|
|
100
|
+
};
|
|
101
|
+
exports.schema = {
|
|
102
|
+
type: 'array',
|
|
103
|
+
items: {
|
|
104
|
+
type: 'object',
|
|
105
|
+
properties: {
|
|
106
|
+
id: {
|
|
107
|
+
type: 'string',
|
|
108
|
+
},
|
|
109
|
+
name: {
|
|
110
|
+
type: 'string',
|
|
111
|
+
},
|
|
112
|
+
user_id: {
|
|
113
|
+
type: 'object',
|
|
114
|
+
properties: {
|
|
115
|
+
oidc_mapping: {
|
|
116
|
+
type: 'string',
|
|
117
|
+
enum: ['sub'],
|
|
118
|
+
default: 'sub',
|
|
119
|
+
},
|
|
120
|
+
saml_mapping: {
|
|
121
|
+
type: 'array',
|
|
122
|
+
items: {
|
|
123
|
+
type: 'string',
|
|
124
|
+
},
|
|
125
|
+
minItems: 1,
|
|
126
|
+
maxItems: 3,
|
|
127
|
+
},
|
|
128
|
+
scim_mapping: {
|
|
129
|
+
type: 'string',
|
|
130
|
+
default: 'externalId',
|
|
131
|
+
},
|
|
132
|
+
strategy_overrides: {
|
|
133
|
+
type: 'object',
|
|
134
|
+
properties: strategies.reduce((acc, curr) => (Object.assign(Object.assign({}, acc), { [curr]: {
|
|
135
|
+
type: 'object',
|
|
136
|
+
additionalProperties: false,
|
|
137
|
+
properties: {
|
|
138
|
+
oidc_mapping: {
|
|
139
|
+
type: 'string',
|
|
140
|
+
enum: ['sub', 'oid', 'email'],
|
|
141
|
+
minLength: 1,
|
|
142
|
+
maxLength: 50,
|
|
143
|
+
},
|
|
144
|
+
saml_mapping: {
|
|
145
|
+
type: 'array',
|
|
146
|
+
items: {
|
|
147
|
+
type: 'string',
|
|
148
|
+
},
|
|
149
|
+
minItems: 1,
|
|
150
|
+
maxItems: 3,
|
|
151
|
+
},
|
|
152
|
+
scim_mapping: {
|
|
153
|
+
type: 'string',
|
|
154
|
+
default: 'externalId',
|
|
155
|
+
},
|
|
156
|
+
},
|
|
157
|
+
} })), {}),
|
|
158
|
+
},
|
|
159
|
+
},
|
|
160
|
+
},
|
|
161
|
+
user_attributes: {
|
|
162
|
+
type: 'object',
|
|
163
|
+
minProperties: 1,
|
|
164
|
+
maxProperties: 64,
|
|
165
|
+
additionalProperties: {
|
|
166
|
+
type: 'object',
|
|
167
|
+
required: ['description', 'label', 'profile_required', 'auth0_mapping'],
|
|
168
|
+
additionalProperties: false,
|
|
169
|
+
properties: {
|
|
170
|
+
description: {
|
|
171
|
+
description: 'Description of this attribute',
|
|
172
|
+
type: 'string',
|
|
173
|
+
minLength: 1,
|
|
174
|
+
maxLength: 128,
|
|
175
|
+
},
|
|
176
|
+
label: {
|
|
177
|
+
description: 'Display label for this attribute',
|
|
178
|
+
type: 'string',
|
|
179
|
+
minLength: 1,
|
|
180
|
+
maxLength: 128,
|
|
181
|
+
},
|
|
182
|
+
profile_required: {
|
|
183
|
+
description: 'Whether this attribute is required in the profile',
|
|
184
|
+
type: 'boolean',
|
|
185
|
+
},
|
|
186
|
+
auth0_mapping: {
|
|
187
|
+
description: 'Auth0 mapping for this attribute',
|
|
188
|
+
type: 'string',
|
|
189
|
+
minLength: 1,
|
|
190
|
+
maxLength: 50,
|
|
191
|
+
},
|
|
192
|
+
oidc_mapping: {
|
|
193
|
+
type: 'object',
|
|
194
|
+
additionalProperties: false,
|
|
195
|
+
required: ['mapping'],
|
|
196
|
+
properties: {
|
|
197
|
+
mapping: {
|
|
198
|
+
type: 'string',
|
|
199
|
+
},
|
|
200
|
+
display_name: {
|
|
201
|
+
description: 'Display name for the OIDC mapping',
|
|
202
|
+
type: 'string',
|
|
203
|
+
minLength: 1,
|
|
204
|
+
maxLength: 50,
|
|
205
|
+
},
|
|
206
|
+
},
|
|
207
|
+
},
|
|
208
|
+
saml_mapping: {
|
|
209
|
+
type: 'array',
|
|
210
|
+
items: {
|
|
211
|
+
description: 'SAML mapping field',
|
|
212
|
+
type: 'string',
|
|
213
|
+
minLength: 1,
|
|
214
|
+
maxLength: 128,
|
|
215
|
+
},
|
|
216
|
+
minItems: 1,
|
|
217
|
+
maxItems: 3,
|
|
218
|
+
uniqueItems: true,
|
|
219
|
+
},
|
|
220
|
+
scim_mapping: {
|
|
221
|
+
type: 'string',
|
|
222
|
+
minLength: 1,
|
|
223
|
+
maxLength: 128,
|
|
224
|
+
},
|
|
225
|
+
strategy_overrides: strategyOverrides,
|
|
226
|
+
},
|
|
227
|
+
},
|
|
228
|
+
},
|
|
229
|
+
},
|
|
230
|
+
},
|
|
231
|
+
};
|
|
232
|
+
class UserAttributeProfilesHandler extends default_1.default {
|
|
233
|
+
constructor(options) {
|
|
234
|
+
super(Object.assign(Object.assign({}, options), { type: 'userAttributeProfiles', id: 'id', identifiers: ['id', 'name'], stripUpdateFields: ['id'] }));
|
|
235
|
+
}
|
|
236
|
+
getType() {
|
|
237
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
238
|
+
if (this.existing)
|
|
239
|
+
return this.existing;
|
|
240
|
+
this.existing = yield (0, client_1.paginate)(this.client.userAttributeProfiles.getAll, {
|
|
241
|
+
checkpoint: true,
|
|
242
|
+
include_totals: true,
|
|
243
|
+
is_global: false,
|
|
244
|
+
take: 10,
|
|
245
|
+
});
|
|
246
|
+
return this.existing;
|
|
247
|
+
});
|
|
248
|
+
}
|
|
249
|
+
processChanges(assets) {
|
|
250
|
+
const _super = Object.create(null, {
|
|
251
|
+
processChanges: { get: () => super.processChanges }
|
|
252
|
+
});
|
|
253
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
254
|
+
const { userAttributeProfiles } = assets;
|
|
255
|
+
// Do nothing if not set
|
|
256
|
+
if (!userAttributeProfiles)
|
|
257
|
+
return;
|
|
258
|
+
const existing = yield this.getType();
|
|
259
|
+
const changes = (0, calculateChanges_1.calculateChanges)({
|
|
260
|
+
handler: this,
|
|
261
|
+
assets: userAttributeProfiles,
|
|
262
|
+
existing,
|
|
263
|
+
identifiers: this.identifiers,
|
|
264
|
+
allowDelete: !!this.config('AUTH0_ALLOW_DELETE'),
|
|
265
|
+
});
|
|
266
|
+
logger_1.default.debug(`Start processChanges for userAttributeProfile [delete:${changes.del.length}] [update:${changes.update.length}], [create:${changes.create.length}]`);
|
|
267
|
+
yield _super.processChanges.call(this, assets, changes);
|
|
268
|
+
});
|
|
269
|
+
}
|
|
270
|
+
}
|
|
271
|
+
exports.default = UserAttributeProfilesHandler;
|
|
272
|
+
__decorate([
|
|
273
|
+
(0, default_1.order)('50')
|
|
274
|
+
], UserAttributeProfilesHandler.prototype, "processChanges", null);
|
|
275
|
+
//# sourceMappingURL=userAttributeProfiles.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"userAttributeProfiles.js","sourceRoot":"","sources":["../../../../src/tools/auth0/handlers/userAttributeProfiles.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEA,qDAAqD;AAErD,6DAAkC;AAClC,sCAAqC;AACrC,6DAA0D;AAE1D,MAAM,UAAU,GAAG,CAAC,cAAc,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,aAAa,EAAE,MAAM,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC;AAClG,MAAM,iBAAiB,GAAG;IACxB,IAAI,EAAE,QAAQ;IACd,oBAAoB,EAAE,KAAK;IAC3B,UAAU,EAAE,UAAU,CAAC,MAAM,CAC3B,CAAC,GAAG,EAAE,IAAI,EAAE,EAAE,CAAC,iCACV,GAAG,KACN,CAAC,IAAI,CAAC,EAAE;YACN,IAAI,EAAE,QAAQ;YACd,oBAAoB,EAAE,KAAK;YAC3B,UAAU,EAAE;gBACV,YAAY,EAAE;oBACZ,IAAI,EAAE,QAAQ;oBACd,oBAAoB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N_DIRECTORY: string;
|
|
37
38
|
GUARDIAN_FACTORS_DIRECTORY: string;
|
|
38
39
|
GUARDIAN_PROVIDERS_DIRECTORY: string;
|
|
@@ -82,5 +83,6 @@ declare const constants: {
|
|
|
82
83
|
FLOWS_VAULT_DIRECTORY: string;
|
|
83
84
|
SELF_SERVICE_PROFILE_DIRECTORY: string;
|
|
84
85
|
NETWORK_ACLS_DIRECTORY: string;
|
|
86
|
+
USER_ATTRIBUTE_PROFILES_DIRECTORY: string;
|
|
85
87
|
};
|
|
86
88
|
export default constants;
|
package/lib/tools/constants.js
CHANGED
|
@@ -19,6 +19,7 @@ const EMAIL_CHANGE_PASSWORD = 'change_password';
|
|
|
19
19
|
const EMAIL_PASSWORD_RESET = 'password_reset';
|
|
20
20
|
const EMAIL_MFA_OOB_CODE = 'mfa_oob_code';
|
|
21
21
|
const EMAIL_USER_INVITATION = 'user_invitation';
|
|
22
|
+
const EMAIL_ASYNC_APPROVAL = 'async_approval';
|
|
22
23
|
const UNIVERSAL_LOGIN_TEMPLATE = 'universal_login';
|
|
23
24
|
const OBFUSCATED_SECRET_VALUE = '_VALUE_NOT_SHOWN_';
|
|
24
25
|
const constants = {
|
|
@@ -53,6 +54,7 @@ const constants = {
|
|
|
53
54
|
'change_password',
|
|
54
55
|
'password_reset',
|
|
55
56
|
'user_invitation',
|
|
57
|
+
'async_approval',
|
|
56
58
|
],
|
|
57
59
|
ACTIONS_TRIGGERS: [
|
|
58
60
|
'post-login',
|
|
@@ -76,6 +78,7 @@ const constants = {
|
|
|
76
78
|
EMAIL_PASSWORD_RESET,
|
|
77
79
|
EMAIL_MFA_OOB_CODE,
|
|
78
80
|
EMAIL_USER_INVITATION,
|
|
81
|
+
EMAIL_ASYNC_APPROVAL,
|
|
79
82
|
GUARDIAN_DIRECTORY: 'guardian',
|
|
80
83
|
GUARDIAN_FACTORS_DIRECTORY: 'factors',
|
|
81
84
|
GUARDIAN_PROVIDERS_DIRECTORY: 'providers',
|
|
@@ -169,6 +172,8 @@ const constants = {
|
|
|
169
172
|
`${EMAIL_MFA_OOB_CODE}.html`,
|
|
170
173
|
`${EMAIL_USER_INVITATION}.json`,
|
|
171
174
|
`${EMAIL_USER_INVITATION}.html`,
|
|
175
|
+
`${EMAIL_ASYNC_APPROVAL}.json`,
|
|
176
|
+
`${EMAIL_ASYNC_APPROVAL}.html`,
|
|
172
177
|
],
|
|
173
178
|
SUPPORTED_BRANDING_TEMPLATES: [UNIVERSAL_LOGIN_TEMPLATE],
|
|
174
179
|
LOG_STREAMS_DIRECTORY: 'log-streams',
|
|
@@ -205,6 +210,7 @@ const constants = {
|
|
|
205
210
|
FLOWS_VAULT_DIRECTORY: 'flow-vault-connections',
|
|
206
211
|
SELF_SERVICE_PROFILE_DIRECTORY: 'self-service-profiles',
|
|
207
212
|
NETWORK_ACLS_DIRECTORY: 'network-acls',
|
|
213
|
+
USER_ATTRIBUTE_PROFILES_DIRECTORY: 'user-attribute-profiles',
|
|
208
214
|
};
|
|
209
215
|
exports.default = constants;
|
|
210
216
|
//# sourceMappingURL=constants.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../src/tools/constants.ts"],"names":[],"mappings":";;AAEA,MAAM,yBAAyB,GAAG,sBAAsB,CAAC;AACzD,MAAM,mBAAmB,GAAG,gBAAgB,CAAC;AAC7C,MAAM,UAAU,GAAG,OAAO,CAAC;AAC3B,MAAM,UAAU,GAAG,YAAY,CAAC;AAChC,MAAM,YAAY,GAAG,CAAC,eAAe,CAAC,CAAC;AACvC,MAAM,yBAAyB,GAAG,UAAU,CAAC;AAC7C,MAAM,6BAA6B,GAAG,cAAc,CAAC;AAErD,MAAM,YAAY,GAAG,cAAc,CAAC;AACpC,MAAM,oBAAoB,GAAG,sBAAsB,CAAC;AACpD,MAAM,WAAW,GAAG,aAAa,CAAC;AAClC,MAAM,aAAa,GAAG,eAAe,CAAC;AACtC,MAAM,mBAAmB,GAAG,qBAAqB,CA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AO;IACxB,eAAe,EAAE,OAAO;IACxB,qBAAqB,EAAE,wBAAwB;IAC/C,8BAA8B,EAAE,uBAAuB;IACvD,sBAAsB,EAAE,cAAc;IACtC,iCAAiC,EAAE,yBAAyB;CAC7D,CAAC;AAEF,kBAAe,SAAS,CAAC"}
|
package/lib/tools/index.d.ts
CHANGED
|
@@ -37,6 +37,7 @@ declare const _default: {
|
|
|
37
37
|
EMAIL_PASSWORD_RESET: string;
|
|
38
38
|
EMAIL_MFA_OOB_CODE: string;
|
|
39
39
|
EMAIL_USER_INVITATION: string;
|
|
40
|
+
EMAIL_ASYNC_APPROVAL: string;
|
|
40
41
|
GUARDIAN_DIRECTORY: string;
|
|
41
42
|
GUARDIAN_FACTORS_DIRECTORY: string;
|
|
42
43
|
GUARDIAN_PROVIDERS_DIRECTORY: string;
|
|
@@ -86,6 +87,7 @@ declare const _default: {
|
|
|
86
87
|
FLOWS_VAULT_DIRECTORY: string;
|
|
87
88
|
SELF_SERVICE_PROFILE_DIRECTORY: string;
|
|
88
89
|
NETWORK_ACLS_DIRECTORY: string;
|
|
90
|
+
USER_ATTRIBUTE_PROFILES_DIRECTORY: string;
|
|
89
91
|
};
|
|
90
92
|
deploy: typeof deploy;
|
|
91
93
|
keywordReplace: typeof keywordReplace;
|
package/lib/types.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CustomDomain, GetConnectionsStrategyEnum, ManagementClient, ResourceServer } from 'auth0';
|
|
1
|
+
import { CustomDomain, GetConnectionsStrategyEnum, ManagementClient, ResourceServer, UserAttributeProfile } from 'auth0';
|
|
2
2
|
import { PromisePoolExecutor } from 'promise-pool-executor';
|
|
3
3
|
import { Action } from './tools/auth0/handlers/actions';
|
|
4
4
|
import { Prompts } from './tools/auth0/handlers/prompts';
|
|
@@ -126,6 +126,8 @@ export type Assets = Partial<{
|
|
|
126
126
|
flowVaultConnections: FlowVaultConnection[] | null;
|
|
127
127
|
selfServiceProfiles: SsProfileWithCustomText[] | null;
|
|
128
128
|
networkACLs: NetworkACL[] | null;
|
|
129
|
+
userAttributeProfiles: UserAttributeProfile[] | null;
|
|
130
|
+
userAttributeProfilesWithId: UserAttributeProfile[] | null;
|
|
129
131
|
}>;
|
|
130
132
|
export type CalculatedChanges = {
|
|
131
133
|
del: Asset[];
|
|
@@ -133,13 +135,13 @@ export type CalculatedChanges = {
|
|
|
133
135
|
conflicts: Asset[];
|
|
134
136
|
create: Asset[];
|
|
135
137
|
};
|
|
136
|
-
export type AssetTypes = 'rules' | 'rulesConfigs' | 'hooks' | 'pages' | 'databases' | 'clientGrants' | 'resourceServers' | 'clients' | 'connections' | 'tenant' | 'emailProvider' | 'emailTemplates' | 'guardianFactors' | 'guardianFactorProviders' | 'guardianFactorTemplates' | 'guardianPhoneFactorMessageTypes' | 'guardianPhoneFactorSelectedProvider' | 'guardianPolicies' | 'roles' | 'actions' | 'organizations' | 'triggers' | 'attackProtection' | 'branding' | 'phoneProviders' | 'logStreams' | 'prompts' | 'customDomains' | 'themes' | 'forms' | 'flows' | 'flowVaultConnections' | 'selfServiceProfiles' | 'networkACLs';
|
|
138
|
+
export type AssetTypes = 'rules' | 'rulesConfigs' | 'hooks' | 'pages' | 'databases' | 'clientGrants' | 'resourceServers' | 'clients' | 'connections' | 'tenant' | 'emailProvider' | 'emailTemplates' | 'guardianFactors' | 'guardianFactorProviders' | 'guardianFactorTemplates' | 'guardianPhoneFactorMessageTypes' | 'guardianPhoneFactorSelectedProvider' | 'guardianPolicies' | 'roles' | 'actions' | 'organizations' | 'triggers' | 'attackProtection' | 'branding' | 'phoneProviders' | 'logStreams' | 'prompts' | 'customDomains' | 'themes' | 'forms' | 'flows' | 'flowVaultConnections' | 'selfServiceProfiles' | 'networkACLs' | 'userAttributeProfiles';
|
|
137
139
|
export type KeywordMappings = {
|
|
138
140
|
[key: string]: (string | number)[] | string | number;
|
|
139
141
|
};
|
|
140
142
|
export type ParsedAsset<Key extends AssetTypes, T> = {
|
|
141
143
|
[key in Key]: T | null;
|
|
142
144
|
};
|
|
143
|
-
export declare const languages: readonly ["ar", "bg", "bs", "ca-ES", "cs", "cy", "da", "de", "el", "en", "es", "et", "eu-ES", "fi", "fr", "fr-CA", "fr-FR", "gl-ES", "he", "hi", "hr", "hu", "id", "is", "it", "ja", "ko", "lt", "lv", "nb", "nl", "nn", "no", "pl", "pt", "pt-BR", "pt-PT", "ro", "ru", "sk", "sl", "sr", "sv", "th", "tr", "uk", "vi", "zh-CN", "zh-TW"];
|
|
145
|
+
export declare const languages: readonly ["am", "ar", "ar-EG", "ar-SA", "az", "bg", "bn", "bs", "ca-ES", "cnr", "cs", "cy", "da", "de", "el", "en", "en-CA", "es", "es-419", "es-AR", "es-MX", "et", "eu-ES", "fa", "fi", "fr", "fr-CA", "fr-FR", "gl-ES", "gu", "he", "hi", "hr", "hu", "hy", "id", "is", "it", "ja", "ka", "kk", "kn", "ko", "lt", "lv", "mk", "ml", "mn", "mr", "ms", "my", "nb", "nl", "nn", "no", "pa", "pl", "pt", "pt-BR", "pt-PT", "ro", "ru", "sk", "sl", "so", "sq", "sr", "sv", "sw", "ta", "te", "th", "tl", "tr", "uk", "ur", "vi", "zgh", "zh-CN", "zh-HK", "zh-TW"];
|
|
144
146
|
export type Language = (typeof languages)[number];
|
|
145
147
|
export {};
|
package/lib/types.js
CHANGED
|
@@ -2,39 +2,62 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.languages = void 0;
|
|
4
4
|
exports.languages = [
|
|
5
|
+
'am',
|
|
5
6
|
'ar',
|
|
7
|
+
'ar-EG',
|
|
8
|
+
'ar-SA',
|
|
9
|
+
'az',
|
|
6
10
|
'bg',
|
|
11
|
+
'bn',
|
|
7
12
|
'bs',
|
|
8
13
|
'ca-ES',
|
|
14
|
+
'cnr',
|
|
9
15
|
'cs',
|
|
10
16
|
'cy',
|
|
11
17
|
'da',
|
|
12
18
|
'de',
|
|
13
19
|
'el',
|
|
14
20
|
'en',
|
|
21
|
+
'en-CA',
|
|
15
22
|
'es',
|
|
23
|
+
'es-419',
|
|
24
|
+
'es-AR',
|
|
25
|
+
'es-MX',
|
|
16
26
|
'et',
|
|
17
27
|
'eu-ES',
|
|
28
|
+
'fa',
|
|
18
29
|
'fi',
|
|
19
30
|
'fr',
|
|
20
31
|
'fr-CA',
|
|
21
32
|
'fr-FR',
|
|
22
33
|
'gl-ES',
|
|
34
|
+
'gu',
|
|
23
35
|
'he',
|
|
24
36
|
'hi',
|
|
25
37
|
'hr',
|
|
26
38
|
'hu',
|
|
39
|
+
'hy',
|
|
27
40
|
'id',
|
|
28
41
|
'is',
|
|
29
42
|
'it',
|
|
30
43
|
'ja',
|
|
44
|
+
'ka',
|
|
45
|
+
'kk',
|
|
46
|
+
'kn',
|
|
31
47
|
'ko',
|
|
32
48
|
'lt',
|
|
33
49
|
'lv',
|
|
50
|
+
'mk',
|
|
51
|
+
'ml',
|
|
52
|
+
'mn',
|
|
53
|
+
'mr',
|
|
54
|
+
'ms',
|
|
55
|
+
'my',
|
|
34
56
|
'nb',
|
|
35
57
|
'nl',
|
|
36
58
|
'nn',
|
|
37
59
|
'no',
|
|
60
|
+
'pa',
|
|
38
61
|
'pl',
|
|
39
62
|
'pt',
|
|
40
63
|
'pt-BR',
|
|
@@ -43,13 +66,22 @@ exports.languages = [
|
|
|
43
66
|
'ru',
|
|
44
67
|
'sk',
|
|
45
68
|
'sl',
|
|
69
|
+
'so',
|
|
70
|
+
'sq',
|
|
46
71
|
'sr',
|
|
47
72
|
'sv',
|
|
73
|
+
'sw',
|
|
74
|
+
'ta',
|
|
75
|
+
'te',
|
|
48
76
|
'th',
|
|
77
|
+
'tl',
|
|
49
78
|
'tr',
|
|
50
79
|
'uk',
|
|
80
|
+
'ur',
|
|
51
81
|
'vi',
|
|
82
|
+
'zgh',
|
|
52
83
|
'zh-CN',
|
|
84
|
+
'zh-HK',
|
|
53
85
|
'zh-TW',
|
|
54
86
|
];
|
|
55
87
|
//# sourceMappingURL=types.js.map
|
package/lib/types.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":";;;AAmMa,QAAA,SAAS,GAAG;IACvB,IAAI;IACJ,IAAI;IACJ,OAAO;IACP,OAAO;IACP,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,OAAO;IACP,KAAK;IACL,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,OAAO;IACP,IAAI;IACJ,QAAQ;IACR,OAAO;IACP,OAAO;IACP,IAAI;IACJ,OAAO;IACP,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,OAAO;IACP,OAAO;IACP,OAAO;IACP,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,OAAO;IACP,OAAO;IACP,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,KAAK;IACL,OAAO;IACP,OAAO;IACP,OAAO;CACC,CAAC"}
|
package/lib/utils.d.ts
CHANGED
|
@@ -64,6 +64,8 @@ export declare function stripIdentifiers(auth0: Auth0, assets: Assets): {
|
|
|
64
64
|
flowVaultConnections?: import("./tools/auth0/handlers/flowVaultConnections").FlowVaultConnection[] | null | undefined;
|
|
65
65
|
selfServiceProfiles?: import("./tools/auth0/handlers/selfServiceProfiles").SsProfileWithCustomText[] | null | undefined;
|
|
66
66
|
networkACLs?: import("auth0").GetNetworkAclsById200Response[] | null | undefined;
|
|
67
|
+
userAttributeProfiles?: import("auth0").UserAttributeProfile[] | null | undefined;
|
|
68
|
+
userAttributeProfilesWithId?: import("auth0").UserAttributeProfile[] | null | undefined;
|
|
67
69
|
};
|
|
68
70
|
export declare function sanitize(str: string): string;
|
|
69
71
|
type ImportantFields = {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "auth0-deploy-cli",
|
|
3
|
-
"version": "8.
|
|
3
|
+
"version": "8.17.0",
|
|
4
4
|
"description": "A command line tool for deploying updates to your Auth0 tenant",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"bin": {
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
"lint:fix": "eslint --fix --ignore-path .eslintignore --ignore-pattern webpack . && kacl lint",
|
|
11
11
|
"lint": "eslint --ignore-path .eslintignore --ignore-pattern webpack . && kacl lint",
|
|
12
12
|
"format": "npx prettier --write .",
|
|
13
|
-
"test": "ts-mocha -p tsconfig.json --recursive 'test/**/*.test*' --exclude 'test/e2e/*' --timeout
|
|
13
|
+
"test": "ts-mocha -p tsconfig.json --recursive 'test/**/*.test*' --exclude 'test/e2e/*' --timeout 20000",
|
|
14
14
|
"test:e2e:node-module": "ts-mocha -p tsconfig.json --recursive 'test/e2e/*.test*' --timeout 120000",
|
|
15
15
|
"test:e2e:cli": "sh ./test/e2e/e2e-cli.sh",
|
|
16
16
|
"test:coverage": "nyc npm run test && nyc report --reporter=lcov",
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
"homepage": "https://github.com/auth0/auth0-deploy-cli#readme",
|
|
34
34
|
"dependencies": {
|
|
35
35
|
"ajv": "^6.12.6",
|
|
36
|
-
"auth0": "^4.
|
|
36
|
+
"auth0": "^4.31.0",
|
|
37
37
|
"dot-prop": "^5.3.0",
|
|
38
38
|
"fs-extra": "^10.1.0",
|
|
39
39
|
"js-yaml": "^4.1.0",
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
"nconf": "^0.13.0",
|
|
43
43
|
"promise-pool-executor": "^1.1.1",
|
|
44
44
|
"sanitize-filename": "^1.6.3",
|
|
45
|
-
"undici": "^7.
|
|
45
|
+
"undici": "^7.16.0",
|
|
46
46
|
"winston": "^3.17.0",
|
|
47
47
|
"yargs": "^15.4.1"
|
|
48
48
|
},
|