@mstuercke/pulumi-modules 1.2.4 → 1.4.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 (42) hide show
  1. package/dist/clerk/Clerk.d.ts +27 -0
  2. package/dist/clerk/Clerk.js +95 -0
  3. package/dist/clerk/index.d.ts +5 -0
  4. package/dist/clerk/index.js +5 -0
  5. package/dist/index.d.ts +4 -0
  6. package/dist/index.js +3 -0
  7. package/package.json +21 -5
  8. package/sdks/clerk/.gitattributes +1 -0
  9. package/sdks/clerk/README.md +3 -0
  10. package/sdks/clerk/allowlistIdentifier.ts +121 -0
  11. package/sdks/clerk/apiKey.ts +254 -0
  12. package/sdks/clerk/application.ts +182 -0
  13. package/sdks/clerk/applicationSettings.ts +171 -0
  14. package/sdks/clerk/blocklistIdentifier.ts +114 -0
  15. package/sdks/clerk/config/index.ts +5 -0
  16. package/sdks/clerk/config/vars.ts +34 -0
  17. package/sdks/clerk/domain.ts +154 -0
  18. package/sdks/clerk/getApplication.ts +42 -0
  19. package/sdks/clerk/index.ts +213 -0
  20. package/sdks/clerk/instanceConfig.ts +128 -0
  21. package/sdks/clerk/instanceDomain.ts +129 -0
  22. package/sdks/clerk/jwtTemplate.ts +190 -0
  23. package/sdks/clerk/machine.ts +127 -0
  24. package/sdks/clerk/oauthApplication.ts +228 -0
  25. package/sdks/clerk/organization.ts +190 -0
  26. package/sdks/clerk/organizationDomain.ts +166 -0
  27. package/sdks/clerk/organizationMembership.ts +148 -0
  28. package/sdks/clerk/organizationPermission.ts +142 -0
  29. package/sdks/clerk/organizationRole.ts +156 -0
  30. package/sdks/clerk/package.json +26 -0
  31. package/sdks/clerk/provider.ts +76 -0
  32. package/sdks/clerk/redirectUrl.ts +104 -0
  33. package/sdks/clerk/roleSet.ts +197 -0
  34. package/sdks/clerk/samlConnection.ts +361 -0
  35. package/sdks/clerk/scripts/postinstall.js +20 -0
  36. package/sdks/clerk/svixWebhook.ts +77 -0
  37. package/sdks/clerk/tsconfig.json +53 -0
  38. package/sdks/clerk/types/index.ts +13 -0
  39. package/sdks/clerk/types/input.ts +59 -0
  40. package/sdks/clerk/types/output.ts +79 -0
  41. package/sdks/clerk/user.ts +458 -0
  42. package/sdks/clerk/utilities.ts +107 -0
@@ -0,0 +1,458 @@
1
+ // *** WARNING: this file was generated by pulumi-language-nodejs. ***
2
+ // *** Do not edit by hand unless you're certain you know what you are doing! ***
3
+
4
+ import * as pulumi from "@pulumi/pulumi";
5
+ import * as utilities from "./utilities";
6
+
7
+ export class User extends pulumi.CustomResource {
8
+ /**
9
+ * Get an existing User resource's state with the given name, ID, and optional extra
10
+ * properties used to qualify the lookup.
11
+ *
12
+ * @param name The _unique_ name of the resulting resource.
13
+ * @param id The _unique_ provider ID of the resource to lookup.
14
+ * @param state Any extra arguments used during the lookup.
15
+ * @param opts Optional settings to control the behavior of the CustomResource.
16
+ */
17
+ public static get(name: string, id: pulumi.Input<pulumi.ID>, state?: UserState, opts?: pulumi.CustomResourceOptions): User {
18
+ return new User(name, <any>state, { ...opts, id: id });
19
+ }
20
+
21
+ /** @internal */
22
+ public static readonly __pulumiType = 'clerk:index/user:User';
23
+
24
+ /**
25
+ * Returns true if the given object is an instance of User. This is designed to work even
26
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
27
+ */
28
+ public static isInstance(obj: any): obj is User {
29
+ if (obj === undefined || obj === null) {
30
+ return false;
31
+ }
32
+ return obj['__pulumiType'] === User.__pulumiType;
33
+ }
34
+
35
+ /**
36
+ * Backup codes to seed for the user. Write-only; never returned by the API.
37
+ */
38
+ declare public readonly backupCodes: pulumi.Output<string[] | undefined>;
39
+ /**
40
+ * Whether the user is banned.
41
+ */
42
+ declare public /*out*/ readonly banned: pulumi.Output<boolean>;
43
+ /**
44
+ * Whether the user is allowed to create organizations.
45
+ */
46
+ declare public readonly createOrganizationEnabled: pulumi.Output<boolean>;
47
+ /**
48
+ * The maximum number of organizations the user can create.
49
+ */
50
+ declare public readonly createOrganizationsLimit: pulumi.Output<number | undefined>;
51
+ /**
52
+ * Timestamp (RFC3339) when the user was created. Set explicitly to backdate a seeded user; backdating forces a new user.
53
+ */
54
+ declare public readonly createdAt: pulumi.Output<string>;
55
+ /**
56
+ * Whether the user is allowed to delete their own account.
57
+ */
58
+ declare public readonly deleteSelfEnabled: pulumi.Output<boolean>;
59
+ /**
60
+ * Email addresses to associate with the user at creation. The first is treated as primary. Changing this set forces a new
61
+ * user (identifiers are managed via dedicated APIs after creation).
62
+ */
63
+ declare public readonly emailAddresses: pulumi.Output<string[] | undefined>;
64
+ /**
65
+ * A unique identifier for the user in an external system.
66
+ */
67
+ declare public readonly externalId: pulumi.Output<string | undefined>;
68
+ /**
69
+ * First name of the user.
70
+ */
71
+ declare public readonly firstName: pulumi.Output<string | undefined>;
72
+ /**
73
+ * Last name of the user.
74
+ */
75
+ declare public readonly lastName: pulumi.Output<string | undefined>;
76
+ /**
77
+ * Timestamp (RFC3339) when the user accepted legal requirements. Write-only.
78
+ */
79
+ declare public readonly legalAcceptedAt: pulumi.Output<string | undefined>;
80
+ /**
81
+ * The user's locale in BCP-47 format.
82
+ */
83
+ declare public readonly locale: pulumi.Output<string>;
84
+ /**
85
+ * Whether the user is locked.
86
+ */
87
+ declare public /*out*/ readonly locked: pulumi.Output<boolean>;
88
+ /**
89
+ * Plaintext password for the user. Write-only; never returned by the API.
90
+ */
91
+ declare public readonly password: pulumi.Output<string | undefined>;
92
+ /**
93
+ * Pre-hashed password for migration-style seeding. Pair with password_hasher. Write-only.
94
+ */
95
+ declare public readonly passwordDigest: pulumi.Output<string | undefined>;
96
+ /**
97
+ * Hashing algorithm used for password_digest (e.g. bcrypt, argon2i, pbkdf2_sha256). Write-only.
98
+ */
99
+ declare public readonly passwordHasher: pulumi.Output<string | undefined>;
100
+ /**
101
+ * Phone numbers to associate with the user at creation. Changing this set forces a new user.
102
+ */
103
+ declare public readonly phoneNumbers: pulumi.Output<string[] | undefined>;
104
+ /**
105
+ * ID of the user's primary email address.
106
+ */
107
+ declare public /*out*/ readonly primaryEmailAddressId: pulumi.Output<string>;
108
+ /**
109
+ * ID of the user's primary phone number.
110
+ */
111
+ declare public /*out*/ readonly primaryPhoneNumberId: pulumi.Output<string>;
112
+ /**
113
+ * Private metadata as a JSON string. Only accessible from the backend.
114
+ */
115
+ declare public readonly privateMetadata: pulumi.Output<string | undefined>;
116
+ /**
117
+ * Public metadata as a JSON string. Accessible from both the frontend and backend.
118
+ */
119
+ declare public readonly publicMetadata: pulumi.Output<string | undefined>;
120
+ /**
121
+ * When true, legal acceptance validation is skipped. Write-only.
122
+ */
123
+ declare public readonly skipLegalChecks: pulumi.Output<boolean | undefined>;
124
+ /**
125
+ * When true, password strength validation is skipped. Write-only.
126
+ */
127
+ declare public readonly skipPasswordChecks: pulumi.Output<boolean | undefined>;
128
+ /**
129
+ * When true, the user can be created without a password. Write-only.
130
+ */
131
+ declare public readonly skipPasswordRequirement: pulumi.Output<boolean | undefined>;
132
+ /**
133
+ * TOTP secret to seed for the user. Write-only.
134
+ */
135
+ declare public readonly totpSecret: pulumi.Output<string | undefined>;
136
+ /**
137
+ * Unsafe metadata as a JSON string. Writable from the frontend; do not store sensitive data here.
138
+ */
139
+ declare public readonly unsafeMetadata: pulumi.Output<string | undefined>;
140
+ /**
141
+ * Timestamp (RFC3339) when the user was last updated.
142
+ */
143
+ declare public /*out*/ readonly updatedAt: pulumi.Output<string>;
144
+ /**
145
+ * Username for the user. Requires usernames to be enabled in the Clerk Dashboard.
146
+ */
147
+ declare public readonly username: pulumi.Output<string>;
148
+ /**
149
+ * Web3 wallet addresses to associate with the user at creation. Changing this set forces a new user.
150
+ */
151
+ declare public readonly web3Wallets: pulumi.Output<string[] | undefined>;
152
+
153
+ /**
154
+ * Create a User resource with the given unique name, arguments, and options.
155
+ *
156
+ * @param name The _unique_ name of the resource.
157
+ * @param args The arguments to use to populate this resource's properties.
158
+ * @param opts A bag of options that control this resource's behavior.
159
+ */
160
+ constructor(name: string, args?: UserArgs, opts?: pulumi.CustomResourceOptions)
161
+ constructor(name: string, argsOrState?: UserArgs | UserState, opts?: pulumi.CustomResourceOptions) {
162
+ let resourceInputs: pulumi.Inputs = {};
163
+ opts = opts || {};
164
+ if (opts.id) {
165
+ const state = argsOrState as UserState | undefined;
166
+ resourceInputs["backupCodes"] = state?.backupCodes;
167
+ resourceInputs["banned"] = state?.banned;
168
+ resourceInputs["createOrganizationEnabled"] = state?.createOrganizationEnabled;
169
+ resourceInputs["createOrganizationsLimit"] = state?.createOrganizationsLimit;
170
+ resourceInputs["createdAt"] = state?.createdAt;
171
+ resourceInputs["deleteSelfEnabled"] = state?.deleteSelfEnabled;
172
+ resourceInputs["emailAddresses"] = state?.emailAddresses;
173
+ resourceInputs["externalId"] = state?.externalId;
174
+ resourceInputs["firstName"] = state?.firstName;
175
+ resourceInputs["lastName"] = state?.lastName;
176
+ resourceInputs["legalAcceptedAt"] = state?.legalAcceptedAt;
177
+ resourceInputs["locale"] = state?.locale;
178
+ resourceInputs["locked"] = state?.locked;
179
+ resourceInputs["password"] = state?.password;
180
+ resourceInputs["passwordDigest"] = state?.passwordDigest;
181
+ resourceInputs["passwordHasher"] = state?.passwordHasher;
182
+ resourceInputs["phoneNumbers"] = state?.phoneNumbers;
183
+ resourceInputs["primaryEmailAddressId"] = state?.primaryEmailAddressId;
184
+ resourceInputs["primaryPhoneNumberId"] = state?.primaryPhoneNumberId;
185
+ resourceInputs["privateMetadata"] = state?.privateMetadata;
186
+ resourceInputs["publicMetadata"] = state?.publicMetadata;
187
+ resourceInputs["skipLegalChecks"] = state?.skipLegalChecks;
188
+ resourceInputs["skipPasswordChecks"] = state?.skipPasswordChecks;
189
+ resourceInputs["skipPasswordRequirement"] = state?.skipPasswordRequirement;
190
+ resourceInputs["totpSecret"] = state?.totpSecret;
191
+ resourceInputs["unsafeMetadata"] = state?.unsafeMetadata;
192
+ resourceInputs["updatedAt"] = state?.updatedAt;
193
+ resourceInputs["username"] = state?.username;
194
+ resourceInputs["web3Wallets"] = state?.web3Wallets;
195
+ } else {
196
+ const args = argsOrState as UserArgs | undefined;
197
+ resourceInputs["backupCodes"] = args?.backupCodes ? pulumi.secret(args.backupCodes) : undefined;
198
+ resourceInputs["createOrganizationEnabled"] = args?.createOrganizationEnabled;
199
+ resourceInputs["createOrganizationsLimit"] = args?.createOrganizationsLimit;
200
+ resourceInputs["createdAt"] = args?.createdAt;
201
+ resourceInputs["deleteSelfEnabled"] = args?.deleteSelfEnabled;
202
+ resourceInputs["emailAddresses"] = args?.emailAddresses;
203
+ resourceInputs["externalId"] = args?.externalId;
204
+ resourceInputs["firstName"] = args?.firstName;
205
+ resourceInputs["lastName"] = args?.lastName;
206
+ resourceInputs["legalAcceptedAt"] = args?.legalAcceptedAt;
207
+ resourceInputs["locale"] = args?.locale;
208
+ resourceInputs["password"] = args?.password ? pulumi.secret(args.password) : undefined;
209
+ resourceInputs["passwordDigest"] = args?.passwordDigest ? pulumi.secret(args.passwordDigest) : undefined;
210
+ resourceInputs["passwordHasher"] = args?.passwordHasher;
211
+ resourceInputs["phoneNumbers"] = args?.phoneNumbers;
212
+ resourceInputs["privateMetadata"] = args?.privateMetadata ? pulumi.secret(args.privateMetadata) : undefined;
213
+ resourceInputs["publicMetadata"] = args?.publicMetadata;
214
+ resourceInputs["skipLegalChecks"] = args?.skipLegalChecks;
215
+ resourceInputs["skipPasswordChecks"] = args?.skipPasswordChecks;
216
+ resourceInputs["skipPasswordRequirement"] = args?.skipPasswordRequirement;
217
+ resourceInputs["totpSecret"] = args?.totpSecret ? pulumi.secret(args.totpSecret) : undefined;
218
+ resourceInputs["unsafeMetadata"] = args?.unsafeMetadata;
219
+ resourceInputs["username"] = args?.username;
220
+ resourceInputs["web3Wallets"] = args?.web3Wallets;
221
+ resourceInputs["banned"] = undefined /*out*/;
222
+ resourceInputs["locked"] = undefined /*out*/;
223
+ resourceInputs["primaryEmailAddressId"] = undefined /*out*/;
224
+ resourceInputs["primaryPhoneNumberId"] = undefined /*out*/;
225
+ resourceInputs["updatedAt"] = undefined /*out*/;
226
+ }
227
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
228
+ const secretOpts = { additionalSecretOutputs: ["backupCodes", "password", "passwordDigest", "privateMetadata", "totpSecret"] };
229
+ opts = pulumi.mergeOptions(opts, secretOpts);
230
+ super(User.__pulumiType, name, resourceInputs, opts, false /*dependency*/, utilities.getPackage());
231
+ }
232
+ }
233
+
234
+ /**
235
+ * Input properties used for looking up and filtering User resources.
236
+ */
237
+ export interface UserState {
238
+ /**
239
+ * Backup codes to seed for the user. Write-only; never returned by the API.
240
+ */
241
+ backupCodes?: pulumi.Input<pulumi.Input<string>[] | undefined>;
242
+ /**
243
+ * Whether the user is banned.
244
+ */
245
+ banned?: pulumi.Input<boolean | undefined>;
246
+ /**
247
+ * Whether the user is allowed to create organizations.
248
+ */
249
+ createOrganizationEnabled?: pulumi.Input<boolean | undefined>;
250
+ /**
251
+ * The maximum number of organizations the user can create.
252
+ */
253
+ createOrganizationsLimit?: pulumi.Input<number | undefined>;
254
+ /**
255
+ * Timestamp (RFC3339) when the user was created. Set explicitly to backdate a seeded user; backdating forces a new user.
256
+ */
257
+ createdAt?: pulumi.Input<string | undefined>;
258
+ /**
259
+ * Whether the user is allowed to delete their own account.
260
+ */
261
+ deleteSelfEnabled?: pulumi.Input<boolean | undefined>;
262
+ /**
263
+ * Email addresses to associate with the user at creation. The first is treated as primary. Changing this set forces a new
264
+ * user (identifiers are managed via dedicated APIs after creation).
265
+ */
266
+ emailAddresses?: pulumi.Input<pulumi.Input<string>[] | undefined>;
267
+ /**
268
+ * A unique identifier for the user in an external system.
269
+ */
270
+ externalId?: pulumi.Input<string | undefined>;
271
+ /**
272
+ * First name of the user.
273
+ */
274
+ firstName?: pulumi.Input<string | undefined>;
275
+ /**
276
+ * Last name of the user.
277
+ */
278
+ lastName?: pulumi.Input<string | undefined>;
279
+ /**
280
+ * Timestamp (RFC3339) when the user accepted legal requirements. Write-only.
281
+ */
282
+ legalAcceptedAt?: pulumi.Input<string | undefined>;
283
+ /**
284
+ * The user's locale in BCP-47 format.
285
+ */
286
+ locale?: pulumi.Input<string | undefined>;
287
+ /**
288
+ * Whether the user is locked.
289
+ */
290
+ locked?: pulumi.Input<boolean | undefined>;
291
+ /**
292
+ * Plaintext password for the user. Write-only; never returned by the API.
293
+ */
294
+ password?: pulumi.Input<string | undefined>;
295
+ /**
296
+ * Pre-hashed password for migration-style seeding. Pair with password_hasher. Write-only.
297
+ */
298
+ passwordDigest?: pulumi.Input<string | undefined>;
299
+ /**
300
+ * Hashing algorithm used for password_digest (e.g. bcrypt, argon2i, pbkdf2_sha256). Write-only.
301
+ */
302
+ passwordHasher?: pulumi.Input<string | undefined>;
303
+ /**
304
+ * Phone numbers to associate with the user at creation. Changing this set forces a new user.
305
+ */
306
+ phoneNumbers?: pulumi.Input<pulumi.Input<string>[] | undefined>;
307
+ /**
308
+ * ID of the user's primary email address.
309
+ */
310
+ primaryEmailAddressId?: pulumi.Input<string | undefined>;
311
+ /**
312
+ * ID of the user's primary phone number.
313
+ */
314
+ primaryPhoneNumberId?: pulumi.Input<string | undefined>;
315
+ /**
316
+ * Private metadata as a JSON string. Only accessible from the backend.
317
+ */
318
+ privateMetadata?: pulumi.Input<string | undefined>;
319
+ /**
320
+ * Public metadata as a JSON string. Accessible from both the frontend and backend.
321
+ */
322
+ publicMetadata?: pulumi.Input<string | undefined>;
323
+ /**
324
+ * When true, legal acceptance validation is skipped. Write-only.
325
+ */
326
+ skipLegalChecks?: pulumi.Input<boolean | undefined>;
327
+ /**
328
+ * When true, password strength validation is skipped. Write-only.
329
+ */
330
+ skipPasswordChecks?: pulumi.Input<boolean | undefined>;
331
+ /**
332
+ * When true, the user can be created without a password. Write-only.
333
+ */
334
+ skipPasswordRequirement?: pulumi.Input<boolean | undefined>;
335
+ /**
336
+ * TOTP secret to seed for the user. Write-only.
337
+ */
338
+ totpSecret?: pulumi.Input<string | undefined>;
339
+ /**
340
+ * Unsafe metadata as a JSON string. Writable from the frontend; do not store sensitive data here.
341
+ */
342
+ unsafeMetadata?: pulumi.Input<string | undefined>;
343
+ /**
344
+ * Timestamp (RFC3339) when the user was last updated.
345
+ */
346
+ updatedAt?: pulumi.Input<string | undefined>;
347
+ /**
348
+ * Username for the user. Requires usernames to be enabled in the Clerk Dashboard.
349
+ */
350
+ username?: pulumi.Input<string | undefined>;
351
+ /**
352
+ * Web3 wallet addresses to associate with the user at creation. Changing this set forces a new user.
353
+ */
354
+ web3Wallets?: pulumi.Input<pulumi.Input<string>[] | undefined>;
355
+ }
356
+
357
+ /**
358
+ * The set of arguments for constructing a User resource.
359
+ */
360
+ export interface UserArgs {
361
+ /**
362
+ * Backup codes to seed for the user. Write-only; never returned by the API.
363
+ */
364
+ backupCodes?: pulumi.Input<pulumi.Input<string>[] | undefined>;
365
+ /**
366
+ * Whether the user is allowed to create organizations.
367
+ */
368
+ createOrganizationEnabled?: pulumi.Input<boolean | undefined>;
369
+ /**
370
+ * The maximum number of organizations the user can create.
371
+ */
372
+ createOrganizationsLimit?: pulumi.Input<number | undefined>;
373
+ /**
374
+ * Timestamp (RFC3339) when the user was created. Set explicitly to backdate a seeded user; backdating forces a new user.
375
+ */
376
+ createdAt?: pulumi.Input<string | undefined>;
377
+ /**
378
+ * Whether the user is allowed to delete their own account.
379
+ */
380
+ deleteSelfEnabled?: pulumi.Input<boolean | undefined>;
381
+ /**
382
+ * Email addresses to associate with the user at creation. The first is treated as primary. Changing this set forces a new
383
+ * user (identifiers are managed via dedicated APIs after creation).
384
+ */
385
+ emailAddresses?: pulumi.Input<pulumi.Input<string>[] | undefined>;
386
+ /**
387
+ * A unique identifier for the user in an external system.
388
+ */
389
+ externalId?: pulumi.Input<string | undefined>;
390
+ /**
391
+ * First name of the user.
392
+ */
393
+ firstName?: pulumi.Input<string | undefined>;
394
+ /**
395
+ * Last name of the user.
396
+ */
397
+ lastName?: pulumi.Input<string | undefined>;
398
+ /**
399
+ * Timestamp (RFC3339) when the user accepted legal requirements. Write-only.
400
+ */
401
+ legalAcceptedAt?: pulumi.Input<string | undefined>;
402
+ /**
403
+ * The user's locale in BCP-47 format.
404
+ */
405
+ locale?: pulumi.Input<string | undefined>;
406
+ /**
407
+ * Plaintext password for the user. Write-only; never returned by the API.
408
+ */
409
+ password?: pulumi.Input<string | undefined>;
410
+ /**
411
+ * Pre-hashed password for migration-style seeding. Pair with password_hasher. Write-only.
412
+ */
413
+ passwordDigest?: pulumi.Input<string | undefined>;
414
+ /**
415
+ * Hashing algorithm used for password_digest (e.g. bcrypt, argon2i, pbkdf2_sha256). Write-only.
416
+ */
417
+ passwordHasher?: pulumi.Input<string | undefined>;
418
+ /**
419
+ * Phone numbers to associate with the user at creation. Changing this set forces a new user.
420
+ */
421
+ phoneNumbers?: pulumi.Input<pulumi.Input<string>[] | undefined>;
422
+ /**
423
+ * Private metadata as a JSON string. Only accessible from the backend.
424
+ */
425
+ privateMetadata?: pulumi.Input<string | undefined>;
426
+ /**
427
+ * Public metadata as a JSON string. Accessible from both the frontend and backend.
428
+ */
429
+ publicMetadata?: pulumi.Input<string | undefined>;
430
+ /**
431
+ * When true, legal acceptance validation is skipped. Write-only.
432
+ */
433
+ skipLegalChecks?: pulumi.Input<boolean | undefined>;
434
+ /**
435
+ * When true, password strength validation is skipped. Write-only.
436
+ */
437
+ skipPasswordChecks?: pulumi.Input<boolean | undefined>;
438
+ /**
439
+ * When true, the user can be created without a password. Write-only.
440
+ */
441
+ skipPasswordRequirement?: pulumi.Input<boolean | undefined>;
442
+ /**
443
+ * TOTP secret to seed for the user. Write-only.
444
+ */
445
+ totpSecret?: pulumi.Input<string | undefined>;
446
+ /**
447
+ * Unsafe metadata as a JSON string. Writable from the frontend; do not store sensitive data here.
448
+ */
449
+ unsafeMetadata?: pulumi.Input<string | undefined>;
450
+ /**
451
+ * Username for the user. Requires usernames to be enabled in the Clerk Dashboard.
452
+ */
453
+ username?: pulumi.Input<string | undefined>;
454
+ /**
455
+ * Web3 wallet addresses to associate with the user at creation. Changing this set forces a new user.
456
+ */
457
+ web3Wallets?: pulumi.Input<pulumi.Input<string>[] | undefined>;
458
+ }
@@ -0,0 +1,107 @@
1
+ // *** WARNING: this file was generated by pulumi-language-nodejs. ***
2
+ // *** Do not edit by hand unless you're certain you know what you are doing! ***
3
+
4
+
5
+ import * as runtime from "@pulumi/pulumi/runtime";
6
+ import * as pulumi from "@pulumi/pulumi";
7
+
8
+ export function getEnv(...vars: string[]): string | undefined {
9
+ for (const v of vars) {
10
+ const value = process.env[v];
11
+ if (value) {
12
+ return value;
13
+ }
14
+ }
15
+ return undefined;
16
+ }
17
+
18
+ export function getEnvBoolean(...vars: string[]): boolean | undefined {
19
+ const s = getEnv(...vars);
20
+ if (s !== undefined) {
21
+ // NOTE: these values are taken from https://golang.org/src/strconv/atob.go?s=351:391#L1, which is what
22
+ // Terraform uses internally when parsing boolean values.
23
+ if (["1", "t", "T", "true", "TRUE", "True"].find(v => v === s) !== undefined) {
24
+ return true;
25
+ }
26
+ if (["0", "f", "F", "false", "FALSE", "False"].find(v => v === s) !== undefined) {
27
+ return false;
28
+ }
29
+ }
30
+ return undefined;
31
+ }
32
+
33
+ export function getEnvNumber(...vars: string[]): number | undefined {
34
+ const s = getEnv(...vars);
35
+ if (s !== undefined) {
36
+ const f = parseFloat(s);
37
+ if (!isNaN(f)) {
38
+ return f;
39
+ }
40
+ }
41
+ return undefined;
42
+ }
43
+
44
+ export function getVersion(): string {
45
+ let version = require('./package.json').version;
46
+ // Node allows for the version to be prefixed by a "v", while semver doesn't.
47
+ // If there is a v, strip it off.
48
+ if (version.indexOf('v') === 0) {
49
+ version = version.slice(1);
50
+ }
51
+ return version;
52
+ }
53
+
54
+ /** @internal */
55
+ export function resourceOptsDefaults(): any {
56
+ return { version: getVersion() };
57
+ }
58
+
59
+ /** @internal */
60
+ export function lazyLoad(exports: any, props: string[], loadModule: any) {
61
+ for (let property of props) {
62
+ Object.defineProperty(exports, property, {
63
+ enumerable: true,
64
+ get: function() {
65
+ return loadModule()[property];
66
+ },
67
+ });
68
+ }
69
+ }
70
+
71
+ /** @internal */
72
+ export async function callAsync<T>(
73
+ tok: string,
74
+ props: pulumi.Inputs,
75
+ res?: pulumi.Resource,
76
+ opts?: {property?: string},
77
+ ): Promise<T> {
78
+ const o: any = runtime.call<T>(tok, props, res);
79
+ const value = await o.promise(true /*withUnknowns*/);
80
+ const isKnown = await o.isKnown;
81
+ const isSecret = await o.isSecret;
82
+ const problem: string|undefined =
83
+ !isKnown ? "an unknown value"
84
+ : isSecret ? "a secret value"
85
+ : undefined;
86
+ // Ingoring o.resources silently. They are typically non-empty, r.f() calls include r as a dependency.
87
+ if (problem) {
88
+ throw new Error(`Plain resource method "${tok}" incorrectly returned ${problem}. ` +
89
+ "This is an error in the provider, please report this to the provider developer.");
90
+ }
91
+ // Extract a single property if requested.
92
+ if (opts && opts.property) {
93
+ return value[opts.property];
94
+ }
95
+ return value;
96
+ }
97
+
98
+ export async function getPackage(): Promise<string | undefined> {
99
+ return runtime.registerPackage({
100
+ baseProviderName: "terraform-provider",
101
+ baseProviderVersion: "0.8.1",
102
+ baseProviderDownloadUrl: "",
103
+ packageName: "clerk",
104
+ packageVersion: "0.7.2",
105
+ base64Parameter: "eyJyZW1vdGUiOnsidXJsIjoicmVnaXN0cnkub3BlbnRvZnUub3JnL2J1aWxkd2l0aGRlY2svY2xlcmsiLCJ2ZXJzaW9uIjoiMC43LjIifX0=",
106
+ });
107
+ }