@pulumi/auth0 3.51.0-alpha.1786940924 → 3.51.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/clientCredentials.d.ts +12 -0
- package/clientCredentials.d.ts.map +1 -1
- package/clientCredentials.js +2 -0
- package/clientCredentials.js.map +1 -1
- package/connectionDirectory.d.ts +3 -3
- package/connectionDirectorySynchronizedGroups.d.ts +39 -15
- package/connectionDirectorySynchronizedGroups.d.ts.map +1 -1
- package/connectionDirectorySynchronizedGroups.js +13 -10
- package/connectionDirectorySynchronizedGroups.js.map +1 -1
- package/getClientGrantOrganizations.d.ts +68 -0
- package/getClientGrantOrganizations.d.ts.map +1 -0
- package/getClientGrantOrganizations.js +73 -0
- package/getClientGrantOrganizations.js.map +1 -0
- package/getConnectionDirectory.d.ts +1 -1
- package/getConnectionDirectorySynchronizedGroups.d.ts +23 -10
- package/getConnectionDirectorySynchronizedGroups.d.ts.map +1 -1
- package/getConnectionDirectorySynchronizedGroups.js +4 -6
- package/getConnectionDirectorySynchronizedGroups.js.map +1 -1
- package/getOrganization.d.ts +4 -0
- package/getOrganization.d.ts.map +1 -1
- package/getOrganization.js.map +1 -1
- package/getOrganizationClient.d.ts +105 -0
- package/getOrganizationClient.d.ts.map +1 -0
- package/getOrganizationClient.js +77 -0
- package/getOrganizationClient.js.map +1 -0
- package/getOrganizationClients.d.ts +68 -0
- package/getOrganizationClients.d.ts.map +1 -0
- package/getOrganizationClients.js +73 -0
- package/getOrganizationClients.js.map +1 -0
- package/getOrganizationRoleGroups.d.ts +84 -0
- package/getOrganizationRoleGroups.d.ts.map +1 -0
- package/getOrganizationRoleGroups.js +79 -0
- package/getOrganizationRoleGroups.js.map +1 -0
- package/getOrganizationRoleMembers.d.ts +84 -0
- package/getOrganizationRoleMembers.d.ts.map +1 -0
- package/getOrganizationRoleMembers.js +79 -0
- package/getOrganizationRoleMembers.js.map +1 -0
- package/getOrganizations.d.ts +76 -0
- package/getOrganizations.d.ts.map +1 -0
- package/getOrganizations.js +83 -0
- package/getOrganizations.js.map +1 -0
- package/getRole.d.ts +40 -0
- package/getRole.d.ts.map +1 -1
- package/getRole.js +20 -0
- package/getRole.js.map +1 -1
- package/getUserOrganizations.d.ts +68 -0
- package/getUserOrganizations.d.ts.map +1 -0
- package/getUserOrganizations.js +73 -0
- package/getUserOrganizations.js.map +1 -0
- package/index.d.ts +27 -0
- package/index.d.ts.map +1 -1
- package/index.js +35 -4
- package/index.js.map +1 -1
- package/organization.d.ts +12 -0
- package/organization.d.ts.map +1 -1
- package/organization.js +2 -0
- package/organization.js.map +1 -1
- package/organizationClient.d.ts +157 -0
- package/organizationClient.d.ts.map +1 -0
- package/organizationClient.js +130 -0
- package/organizationClient.js.map +1 -0
- package/organizationClients.d.ts +105 -0
- package/organizationClients.d.ts.map +1 -0
- package/organizationClients.js +122 -0
- package/organizationClients.js.map +1 -0
- package/package.json +2 -2
- package/role.d.ts +36 -0
- package/role.d.ts.map +1 -1
- package/role.js +16 -0
- package/role.js.map +1 -1
- package/types/input.d.ts +95 -1
- package/types/input.d.ts.map +1 -1
- package/types/output.d.ts +415 -3
- package/types/output.d.ts.map +1 -1
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// *** WARNING: this file was generated by pulumi-language-nodejs. ***
|
|
3
|
+
// *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
5
|
+
if (k2 === undefined) k2 = k;
|
|
6
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
7
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
8
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
9
|
+
}
|
|
10
|
+
Object.defineProperty(o, k2, desc);
|
|
11
|
+
}) : (function(o, m, k, k2) {
|
|
12
|
+
if (k2 === undefined) k2 = k;
|
|
13
|
+
o[k2] = m[k];
|
|
14
|
+
}));
|
|
15
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
16
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
17
|
+
}) : function(o, v) {
|
|
18
|
+
o["default"] = v;
|
|
19
|
+
});
|
|
20
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
21
|
+
if (mod && mod.__esModule) return mod;
|
|
22
|
+
var result = {};
|
|
23
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
24
|
+
__setModuleDefault(result, mod);
|
|
25
|
+
return result;
|
|
26
|
+
};
|
|
27
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
28
|
+
exports.getOrganizationRoleMembersOutput = exports.getOrganizationRoleMembers = void 0;
|
|
29
|
+
const pulumi = __importStar(require("@pulumi/pulumi"));
|
|
30
|
+
const utilities = __importStar(require("./utilities"));
|
|
31
|
+
/**
|
|
32
|
+
* Data source to retrieve the organization members assigned a specific role within the context of an organization. Only members with a direct role assignment are returned; for the groups assigned to the role, use `auth0.getOrganizationRoleGroups`. (EA only)
|
|
33
|
+
*
|
|
34
|
+
* ## Example Usage
|
|
35
|
+
*
|
|
36
|
+
* ```typescript
|
|
37
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
38
|
+
* import * as auth0 from "@pulumi/auth0";
|
|
39
|
+
*
|
|
40
|
+
* // The organization members with a direct assignment of an organization-level role.
|
|
41
|
+
* const myRoleMembers = auth0.getOrganizationRoleMembers({
|
|
42
|
+
* organizationId: "org_abcdefghkijklmn",
|
|
43
|
+
* roleId: "rol_abcdefghkijklmn",
|
|
44
|
+
* });
|
|
45
|
+
* ```
|
|
46
|
+
*/
|
|
47
|
+
function getOrganizationRoleMembers(args, opts) {
|
|
48
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
|
|
49
|
+
return pulumi.runtime.invoke("auth0:index/getOrganizationRoleMembers:getOrganizationRoleMembers", {
|
|
50
|
+
"organizationId": args.organizationId,
|
|
51
|
+
"roleId": args.roleId,
|
|
52
|
+
}, opts);
|
|
53
|
+
}
|
|
54
|
+
exports.getOrganizationRoleMembers = getOrganizationRoleMembers;
|
|
55
|
+
/**
|
|
56
|
+
* Data source to retrieve the organization members assigned a specific role within the context of an organization. Only members with a direct role assignment are returned; for the groups assigned to the role, use `auth0.getOrganizationRoleGroups`. (EA only)
|
|
57
|
+
*
|
|
58
|
+
* ## Example Usage
|
|
59
|
+
*
|
|
60
|
+
* ```typescript
|
|
61
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
62
|
+
* import * as auth0 from "@pulumi/auth0";
|
|
63
|
+
*
|
|
64
|
+
* // The organization members with a direct assignment of an organization-level role.
|
|
65
|
+
* const myRoleMembers = auth0.getOrganizationRoleMembers({
|
|
66
|
+
* organizationId: "org_abcdefghkijklmn",
|
|
67
|
+
* roleId: "rol_abcdefghkijklmn",
|
|
68
|
+
* });
|
|
69
|
+
* ```
|
|
70
|
+
*/
|
|
71
|
+
function getOrganizationRoleMembersOutput(args, opts) {
|
|
72
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
|
|
73
|
+
return pulumi.runtime.invokeOutput("auth0:index/getOrganizationRoleMembers:getOrganizationRoleMembers", {
|
|
74
|
+
"organizationId": args.organizationId,
|
|
75
|
+
"roleId": args.roleId,
|
|
76
|
+
}, opts);
|
|
77
|
+
}
|
|
78
|
+
exports.getOrganizationRoleMembersOutput = getOrganizationRoleMembersOutput;
|
|
79
|
+
//# sourceMappingURL=getOrganizationRoleMembers.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getOrganizationRoleMembers.js","sourceRoot":"","sources":["../getOrganizationRoleMembers.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;;;;;;;;;;;;;;;;;;;;;;;;AAEjF,uDAAyC;AAGzC,uDAAyC;AAEzC;;;;;;;;;;;;;;;GAeG;AACH,SAAgB,0BAA0B,CAAC,IAAoC,EAAE,IAA2B;IACxG,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,mEAAmE,EAAE;QAC9F,gBAAgB,EAAE,IAAI,CAAC,cAAc;QACrC,QAAQ,EAAE,IAAI,CAAC,MAAM;KACxB,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAND,gEAMC;AAqCD;;;;;;;;;;;;;;;GAeG;AACH,SAAgB,gCAAgC,CAAC,IAA0C,EAAE,IAAiC;IAC1H,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,YAAY,CAAC,mEAAmE,EAAE;QACpG,gBAAgB,EAAE,IAAI,CAAC,cAAc;QACrC,QAAQ,EAAE,IAAI,CAAC,MAAM;KACxB,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAND,4EAMC"}
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
import * as outputs from "./types/output";
|
|
3
|
+
/**
|
|
4
|
+
* Data source to retrieve all organizations of the tenant. Optionally set `includeClientAssociationFor` to also return each organization's entitlement to a given client (application).
|
|
5
|
+
*
|
|
6
|
+
* ## Example Usage
|
|
7
|
+
*
|
|
8
|
+
* ```typescript
|
|
9
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
10
|
+
* import * as auth0 from "@pulumi/auth0";
|
|
11
|
+
*
|
|
12
|
+
* // An empty data source block retrieves every organization of the tenant.
|
|
13
|
+
* const myOrganizations = auth0.getOrganizations({});
|
|
14
|
+
* // Setting include_client_association_for additionally returns, for every organization
|
|
15
|
+
* // associated with that client (application), the details of the association.
|
|
16
|
+
* const myOrganizationsWithClientAssociation = auth0.getOrganizations({
|
|
17
|
+
* includeClientAssociationFor: "AaiyAPdpYdesoKnqjj8HJqRn4T5titww",
|
|
18
|
+
* });
|
|
19
|
+
* ```
|
|
20
|
+
*/
|
|
21
|
+
export declare function getOrganizations(args?: GetOrganizationsArgs, opts?: pulumi.InvokeOptions): Promise<GetOrganizationsResult>;
|
|
22
|
+
/**
|
|
23
|
+
* A collection of arguments for invoking getOrganizations.
|
|
24
|
+
*/
|
|
25
|
+
export interface GetOrganizationsArgs {
|
|
26
|
+
/**
|
|
27
|
+
* The ID of a client (application). When set, every returned organization that is associated with this client gains a `client` block describing that association (EA only).
|
|
28
|
+
*/
|
|
29
|
+
includeClientAssociationFor?: string;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* A collection of values returned by getOrganizations.
|
|
33
|
+
*/
|
|
34
|
+
export interface GetOrganizationsResult {
|
|
35
|
+
/**
|
|
36
|
+
* The provider-assigned unique ID for this managed resource.
|
|
37
|
+
*/
|
|
38
|
+
readonly id: string;
|
|
39
|
+
/**
|
|
40
|
+
* The ID of a client (application). When set, every returned organization that is associated with this client gains a `client` block describing that association (EA only).
|
|
41
|
+
*/
|
|
42
|
+
readonly includeClientAssociationFor?: string;
|
|
43
|
+
/**
|
|
44
|
+
* The list of organizations of the tenant.
|
|
45
|
+
*/
|
|
46
|
+
readonly organizations: outputs.GetOrganizationsOrganization[];
|
|
47
|
+
}
|
|
48
|
+
/**
|
|
49
|
+
* Data source to retrieve all organizations of the tenant. Optionally set `includeClientAssociationFor` to also return each organization's entitlement to a given client (application).
|
|
50
|
+
*
|
|
51
|
+
* ## Example Usage
|
|
52
|
+
*
|
|
53
|
+
* ```typescript
|
|
54
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
55
|
+
* import * as auth0 from "@pulumi/auth0";
|
|
56
|
+
*
|
|
57
|
+
* // An empty data source block retrieves every organization of the tenant.
|
|
58
|
+
* const myOrganizations = auth0.getOrganizations({});
|
|
59
|
+
* // Setting include_client_association_for additionally returns, for every organization
|
|
60
|
+
* // associated with that client (application), the details of the association.
|
|
61
|
+
* const myOrganizationsWithClientAssociation = auth0.getOrganizations({
|
|
62
|
+
* includeClientAssociationFor: "AaiyAPdpYdesoKnqjj8HJqRn4T5titww",
|
|
63
|
+
* });
|
|
64
|
+
* ```
|
|
65
|
+
*/
|
|
66
|
+
export declare function getOrganizationsOutput(args?: GetOrganizationsOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetOrganizationsResult>;
|
|
67
|
+
/**
|
|
68
|
+
* A collection of arguments for invoking getOrganizations.
|
|
69
|
+
*/
|
|
70
|
+
export interface GetOrganizationsOutputArgs {
|
|
71
|
+
/**
|
|
72
|
+
* The ID of a client (application). When set, every returned organization that is associated with this client gains a `client` block describing that association (EA only).
|
|
73
|
+
*/
|
|
74
|
+
includeClientAssociationFor?: pulumi.Input<string | undefined>;
|
|
75
|
+
}
|
|
76
|
+
//# sourceMappingURL=getOrganizations.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getOrganizations.d.ts","sourceRoot":"","sources":["../getOrganizations.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,MAAM,MAAM,gBAAgB,CAAC;AAEzC,OAAO,KAAK,OAAO,MAAM,gBAAgB,CAAC;AAG1C;;;;;;;;;;;;;;;;;GAiBG;AACH,wBAAgB,gBAAgB,CAAC,IAAI,CAAC,EAAE,oBAAoB,EAAE,IAAI,CAAC,EAAE,MAAM,CAAC,aAAa,GAAG,OAAO,CAAC,sBAAsB,CAAC,CAM1H;AAED;;GAEG;AACH,MAAM,WAAW,oBAAoB;IACjC;;OAEG;IACH,2BAA2B,CAAC,EAAE,MAAM,CAAC;CACxC;AAED;;GAEG;AACH,MAAM,WAAW,sBAAsB;IACnC;;OAEG;IACH,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAC;IACpB;;OAEG;IACH,QAAQ,CAAC,2BAA2B,CAAC,EAAE,MAAM,CAAC;IAC9C;;OAEG;IACH,QAAQ,CAAC,aAAa,EAAE,OAAO,CAAC,4BAA4B,EAAE,CAAC;CAClE;AACD;;;;;;;;;;;;;;;;;GAiBG;AACH,wBAAgB,sBAAsB,CAAC,IAAI,CAAC,EAAE,0BAA0B,EAAE,IAAI,CAAC,EAAE,MAAM,CAAC,mBAAmB,GAAG,MAAM,CAAC,MAAM,CAAC,sBAAsB,CAAC,CAMlJ;AAED;;GAEG;AACH,MAAM,WAAW,0BAA0B;IACvC;;OAEG;IACH,2BAA2B,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;CAClE"}
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// *** WARNING: this file was generated by pulumi-language-nodejs. ***
|
|
3
|
+
// *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
5
|
+
if (k2 === undefined) k2 = k;
|
|
6
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
7
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
8
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
9
|
+
}
|
|
10
|
+
Object.defineProperty(o, k2, desc);
|
|
11
|
+
}) : (function(o, m, k, k2) {
|
|
12
|
+
if (k2 === undefined) k2 = k;
|
|
13
|
+
o[k2] = m[k];
|
|
14
|
+
}));
|
|
15
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
16
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
17
|
+
}) : function(o, v) {
|
|
18
|
+
o["default"] = v;
|
|
19
|
+
});
|
|
20
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
21
|
+
if (mod && mod.__esModule) return mod;
|
|
22
|
+
var result = {};
|
|
23
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
24
|
+
__setModuleDefault(result, mod);
|
|
25
|
+
return result;
|
|
26
|
+
};
|
|
27
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
28
|
+
exports.getOrganizationsOutput = exports.getOrganizations = void 0;
|
|
29
|
+
const pulumi = __importStar(require("@pulumi/pulumi"));
|
|
30
|
+
const utilities = __importStar(require("./utilities"));
|
|
31
|
+
/**
|
|
32
|
+
* Data source to retrieve all organizations of the tenant. Optionally set `includeClientAssociationFor` to also return each organization's entitlement to a given client (application).
|
|
33
|
+
*
|
|
34
|
+
* ## Example Usage
|
|
35
|
+
*
|
|
36
|
+
* ```typescript
|
|
37
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
38
|
+
* import * as auth0 from "@pulumi/auth0";
|
|
39
|
+
*
|
|
40
|
+
* // An empty data source block retrieves every organization of the tenant.
|
|
41
|
+
* const myOrganizations = auth0.getOrganizations({});
|
|
42
|
+
* // Setting include_client_association_for additionally returns, for every organization
|
|
43
|
+
* // associated with that client (application), the details of the association.
|
|
44
|
+
* const myOrganizationsWithClientAssociation = auth0.getOrganizations({
|
|
45
|
+
* includeClientAssociationFor: "AaiyAPdpYdesoKnqjj8HJqRn4T5titww",
|
|
46
|
+
* });
|
|
47
|
+
* ```
|
|
48
|
+
*/
|
|
49
|
+
function getOrganizations(args, opts) {
|
|
50
|
+
args = args || {};
|
|
51
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
|
|
52
|
+
return pulumi.runtime.invoke("auth0:index/getOrganizations:getOrganizations", {
|
|
53
|
+
"includeClientAssociationFor": args.includeClientAssociationFor,
|
|
54
|
+
}, opts);
|
|
55
|
+
}
|
|
56
|
+
exports.getOrganizations = getOrganizations;
|
|
57
|
+
/**
|
|
58
|
+
* Data source to retrieve all organizations of the tenant. Optionally set `includeClientAssociationFor` to also return each organization's entitlement to a given client (application).
|
|
59
|
+
*
|
|
60
|
+
* ## Example Usage
|
|
61
|
+
*
|
|
62
|
+
* ```typescript
|
|
63
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
64
|
+
* import * as auth0 from "@pulumi/auth0";
|
|
65
|
+
*
|
|
66
|
+
* // An empty data source block retrieves every organization of the tenant.
|
|
67
|
+
* const myOrganizations = auth0.getOrganizations({});
|
|
68
|
+
* // Setting include_client_association_for additionally returns, for every organization
|
|
69
|
+
* // associated with that client (application), the details of the association.
|
|
70
|
+
* const myOrganizationsWithClientAssociation = auth0.getOrganizations({
|
|
71
|
+
* includeClientAssociationFor: "AaiyAPdpYdesoKnqjj8HJqRn4T5titww",
|
|
72
|
+
* });
|
|
73
|
+
* ```
|
|
74
|
+
*/
|
|
75
|
+
function getOrganizationsOutput(args, opts) {
|
|
76
|
+
args = args || {};
|
|
77
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
|
|
78
|
+
return pulumi.runtime.invokeOutput("auth0:index/getOrganizations:getOrganizations", {
|
|
79
|
+
"includeClientAssociationFor": args.includeClientAssociationFor,
|
|
80
|
+
}, opts);
|
|
81
|
+
}
|
|
82
|
+
exports.getOrganizationsOutput = getOrganizationsOutput;
|
|
83
|
+
//# sourceMappingURL=getOrganizations.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getOrganizations.js","sourceRoot":"","sources":["../getOrganizations.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;;;;;;;;;;;;;;;;;;;;;;;;AAEjF,uDAAyC;AAGzC,uDAAyC;AAEzC;;;;;;;;;;;;;;;;;GAiBG;AACH,SAAgB,gBAAgB,CAAC,IAA2B,EAAE,IAA2B;IACrF,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;IAClB,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,+CAA+C,EAAE;QAC1E,6BAA6B,EAAE,IAAI,CAAC,2BAA2B;KAClE,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAND,4CAMC;AA6BD;;;;;;;;;;;;;;;;;GAiBG;AACH,SAAgB,sBAAsB,CAAC,IAAiC,EAAE,IAAiC;IACvG,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;IAClB,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,YAAY,CAAC,+CAA+C,EAAE;QAChF,6BAA6B,EAAE,IAAI,CAAC,2BAA2B;KAClE,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAND,wDAMC"}
|
package/getRole.d.ts
CHANGED
|
@@ -17,6 +17,14 @@ import * as outputs from "./types/output";
|
|
|
17
17
|
* const some_role_by_id = auth0.getRole({
|
|
18
18
|
* roleId: "abcdefghkijklmnopqrstuvwxyz0123456789",
|
|
19
19
|
* });
|
|
20
|
+
* // An organization-level Auth0 Role loaded using the role name. Several
|
|
21
|
+
* // organizations can own a role of the same name, so the type and the ID of the
|
|
22
|
+
* // organization owning it are needed to find the right one. (EA only)
|
|
23
|
+
* const some_organization_role_by_name = auth0.getRole({
|
|
24
|
+
* name: "my-organization-role",
|
|
25
|
+
* type: "organization",
|
|
26
|
+
* ownerId: "org_abcdefghkijklmn",
|
|
27
|
+
* });
|
|
20
28
|
* ```
|
|
21
29
|
*/
|
|
22
30
|
export declare function getRole(args?: GetRoleArgs, opts?: pulumi.InvokeOptions): Promise<GetRoleResult>;
|
|
@@ -28,6 +36,10 @@ export interface GetRoleArgs {
|
|
|
28
36
|
* The name of the role. If not provided, `roleId` must be set.
|
|
29
37
|
*/
|
|
30
38
|
name?: string;
|
|
39
|
+
/**
|
|
40
|
+
* The ID of the organization owning the role. Only used to narrow down the search when looking the role up by `name`, alongside a `type` of `organization`. (EA only)
|
|
41
|
+
*/
|
|
42
|
+
ownerId?: string;
|
|
31
43
|
/**
|
|
32
44
|
* The ID of the role. If not provided, `name` must be set.
|
|
33
45
|
*/
|
|
@@ -40,6 +52,10 @@ export interface GetRoleArgs {
|
|
|
40
52
|
* Whether to skip users assigned to this role (max 1000). Setting this to `true` will skip paginated API calls to /api/v2/roles/{id}/users.
|
|
41
53
|
*/
|
|
42
54
|
skipUsers?: boolean;
|
|
55
|
+
/**
|
|
56
|
+
* The type of the role, either `tenant` or `organization`. Only used to narrow down the search when looking the role up by `name`. (EA only)
|
|
57
|
+
*/
|
|
58
|
+
type?: string;
|
|
43
59
|
}
|
|
44
60
|
/**
|
|
45
61
|
* A collection of values returned by getRole.
|
|
@@ -57,6 +73,10 @@ export interface GetRoleResult {
|
|
|
57
73
|
* The name of the role. If not provided, `roleId` must be set.
|
|
58
74
|
*/
|
|
59
75
|
readonly name?: string;
|
|
76
|
+
/**
|
|
77
|
+
* The ID of the organization owning the role. Only used to narrow down the search when looking the role up by `name`, alongside a `type` of `organization`. (EA only)
|
|
78
|
+
*/
|
|
79
|
+
readonly ownerId?: string;
|
|
60
80
|
/**
|
|
61
81
|
* Configuration settings for permissions (scopes) attached to the role. Skips populating if `skipPermissions` is `true`.
|
|
62
82
|
*/
|
|
@@ -73,6 +93,10 @@ export interface GetRoleResult {
|
|
|
73
93
|
* Whether to skip users assigned to this role (max 1000). Setting this to `true` will skip paginated API calls to /api/v2/roles/{id}/users.
|
|
74
94
|
*/
|
|
75
95
|
readonly skipUsers?: boolean;
|
|
96
|
+
/**
|
|
97
|
+
* The type of the role, either `tenant` or `organization`. Only used to narrow down the search when looking the role up by `name`. (EA only)
|
|
98
|
+
*/
|
|
99
|
+
readonly type?: string;
|
|
76
100
|
/**
|
|
77
101
|
* List of user IDs assigned to this role. Retrieves a maximum of 1000 user IDs. Skips populating if `skipUsers` is `true`.
|
|
78
102
|
*/
|
|
@@ -95,6 +119,14 @@ export interface GetRoleResult {
|
|
|
95
119
|
* const some_role_by_id = auth0.getRole({
|
|
96
120
|
* roleId: "abcdefghkijklmnopqrstuvwxyz0123456789",
|
|
97
121
|
* });
|
|
122
|
+
* // An organization-level Auth0 Role loaded using the role name. Several
|
|
123
|
+
* // organizations can own a role of the same name, so the type and the ID of the
|
|
124
|
+
* // organization owning it are needed to find the right one. (EA only)
|
|
125
|
+
* const some_organization_role_by_name = auth0.getRole({
|
|
126
|
+
* name: "my-organization-role",
|
|
127
|
+
* type: "organization",
|
|
128
|
+
* ownerId: "org_abcdefghkijklmn",
|
|
129
|
+
* });
|
|
98
130
|
* ```
|
|
99
131
|
*/
|
|
100
132
|
export declare function getRoleOutput(args?: GetRoleOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetRoleResult>;
|
|
@@ -106,6 +138,10 @@ export interface GetRoleOutputArgs {
|
|
|
106
138
|
* The name of the role. If not provided, `roleId` must be set.
|
|
107
139
|
*/
|
|
108
140
|
name?: pulumi.Input<string | undefined>;
|
|
141
|
+
/**
|
|
142
|
+
* The ID of the organization owning the role. Only used to narrow down the search when looking the role up by `name`, alongside a `type` of `organization`. (EA only)
|
|
143
|
+
*/
|
|
144
|
+
ownerId?: pulumi.Input<string | undefined>;
|
|
109
145
|
/**
|
|
110
146
|
* The ID of the role. If not provided, `name` must be set.
|
|
111
147
|
*/
|
|
@@ -118,5 +154,9 @@ export interface GetRoleOutputArgs {
|
|
|
118
154
|
* Whether to skip users assigned to this role (max 1000). Setting this to `true` will skip paginated API calls to /api/v2/roles/{id}/users.
|
|
119
155
|
*/
|
|
120
156
|
skipUsers?: pulumi.Input<boolean | undefined>;
|
|
157
|
+
/**
|
|
158
|
+
* The type of the role, either `tenant` or `organization`. Only used to narrow down the search when looking the role up by `name`. (EA only)
|
|
159
|
+
*/
|
|
160
|
+
type?: pulumi.Input<string | undefined>;
|
|
121
161
|
}
|
|
122
162
|
//# sourceMappingURL=getRole.d.ts.map
|
package/getRole.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getRole.d.ts","sourceRoot":"","sources":["../getRole.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,MAAM,MAAM,gBAAgB,CAAC;AAEzC,OAAO,KAAK,OAAO,MAAM,gBAAgB,CAAC;AAG1C
|
|
1
|
+
{"version":3,"file":"getRole.d.ts","sourceRoot":"","sources":["../getRole.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,MAAM,MAAM,gBAAgB,CAAC;AAEzC,OAAO,KAAK,OAAO,MAAM,gBAAgB,CAAC;AAG1C;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACH,wBAAgB,OAAO,CAAC,IAAI,CAAC,EAAE,WAAW,EAAE,IAAI,CAAC,EAAE,MAAM,CAAC,aAAa,GAAG,OAAO,CAAC,aAAa,CAAC,CAW/F;AAED;;GAEG;AACH,MAAM,WAAW,WAAW;IACxB;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;OAEG;IACH,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B;;OAEG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;CACjB;AAED;;GAEG;AACH,MAAM,WAAW,aAAa;IAC1B;;OAEG;IACH,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC;IAC7B;;OAEG;IACH,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAC;IACpB;;OAEG;IACH,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,CAAC;IACvB;;OAEG;IACH,QAAQ,CAAC,OAAO,CAAC,EAAE,MAAM,CAAC;IAC1B;;OAEG;IACH,QAAQ,CAAC,WAAW,EAAE,OAAO,CAAC,iBAAiB,EAAE,CAAC;IAClD;;OAEG;IACH,QAAQ,CAAC,MAAM,CAAC,EAAE,MAAM,CAAC;IACzB;;OAEG;IACH,QAAQ,CAAC,eAAe,CAAC,EAAE,OAAO,CAAC;IACnC;;OAEG;IACH,QAAQ,CAAC,SAAS,CAAC,EAAE,OAAO,CAAC;IAC7B;;OAEG;IACH,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,CAAC;IACvB;;OAEG;IACH,QAAQ,CAAC,KAAK,EAAE,MAAM,EAAE,CAAC;CAC5B;AACD;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACH,wBAAgB,aAAa,CAAC,IAAI,CAAC,EAAE,iBAAiB,EAAE,IAAI,CAAC,EAAE,MAAM,CAAC,mBAAmB,GAAG,MAAM,CAAC,MAAM,CAAC,aAAa,CAAC,CAWvH;AAED;;GAEG;AACH,MAAM,WAAW,iBAAiB;IAC9B;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;IACxC;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;IAC3C;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;IAC1C;;OAEG;IACH,eAAe,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,OAAO,GAAG,SAAS,CAAC,CAAC;IACpD;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,OAAO,GAAG,SAAS,CAAC,CAAC;IAC9C;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;CAC3C"}
|
package/getRole.js
CHANGED
|
@@ -45,6 +45,14 @@ const utilities = __importStar(require("./utilities"));
|
|
|
45
45
|
* const some_role_by_id = auth0.getRole({
|
|
46
46
|
* roleId: "abcdefghkijklmnopqrstuvwxyz0123456789",
|
|
47
47
|
* });
|
|
48
|
+
* // An organization-level Auth0 Role loaded using the role name. Several
|
|
49
|
+
* // organizations can own a role of the same name, so the type and the ID of the
|
|
50
|
+
* // organization owning it are needed to find the right one. (EA only)
|
|
51
|
+
* const some_organization_role_by_name = auth0.getRole({
|
|
52
|
+
* name: "my-organization-role",
|
|
53
|
+
* type: "organization",
|
|
54
|
+
* ownerId: "org_abcdefghkijklmn",
|
|
55
|
+
* });
|
|
48
56
|
* ```
|
|
49
57
|
*/
|
|
50
58
|
function getRole(args, opts) {
|
|
@@ -52,9 +60,11 @@ function getRole(args, opts) {
|
|
|
52
60
|
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
|
|
53
61
|
return pulumi.runtime.invoke("auth0:index/getRole:getRole", {
|
|
54
62
|
"name": args.name,
|
|
63
|
+
"ownerId": args.ownerId,
|
|
55
64
|
"roleId": args.roleId,
|
|
56
65
|
"skipPermissions": args.skipPermissions,
|
|
57
66
|
"skipUsers": args.skipUsers,
|
|
67
|
+
"type": args.type,
|
|
58
68
|
}, opts);
|
|
59
69
|
}
|
|
60
70
|
exports.getRole = getRole;
|
|
@@ -75,6 +85,14 @@ exports.getRole = getRole;
|
|
|
75
85
|
* const some_role_by_id = auth0.getRole({
|
|
76
86
|
* roleId: "abcdefghkijklmnopqrstuvwxyz0123456789",
|
|
77
87
|
* });
|
|
88
|
+
* // An organization-level Auth0 Role loaded using the role name. Several
|
|
89
|
+
* // organizations can own a role of the same name, so the type and the ID of the
|
|
90
|
+
* // organization owning it are needed to find the right one. (EA only)
|
|
91
|
+
* const some_organization_role_by_name = auth0.getRole({
|
|
92
|
+
* name: "my-organization-role",
|
|
93
|
+
* type: "organization",
|
|
94
|
+
* ownerId: "org_abcdefghkijklmn",
|
|
95
|
+
* });
|
|
78
96
|
* ```
|
|
79
97
|
*/
|
|
80
98
|
function getRoleOutput(args, opts) {
|
|
@@ -82,9 +100,11 @@ function getRoleOutput(args, opts) {
|
|
|
82
100
|
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
|
|
83
101
|
return pulumi.runtime.invokeOutput("auth0:index/getRole:getRole", {
|
|
84
102
|
"name": args.name,
|
|
103
|
+
"ownerId": args.ownerId,
|
|
85
104
|
"roleId": args.roleId,
|
|
86
105
|
"skipPermissions": args.skipPermissions,
|
|
87
106
|
"skipUsers": args.skipUsers,
|
|
107
|
+
"type": args.type,
|
|
88
108
|
}, opts);
|
|
89
109
|
}
|
|
90
110
|
exports.getRoleOutput = getRoleOutput;
|
package/getRole.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getRole.js","sourceRoot":"","sources":["../getRole.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;;;;;;;;;;;;;;;;;;;;;;;;AAEjF,uDAAyC;AAGzC,uDAAyC;AAEzC
|
|
1
|
+
{"version":3,"file":"getRole.js","sourceRoot":"","sources":["../getRole.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;;;;;;;;;;;;;;;;;;;;;;;;AAEjF,uDAAyC;AAGzC,uDAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACH,SAAgB,OAAO,CAAC,IAAkB,EAAE,IAA2B;IACnE,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;IAClB,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,6BAA6B,EAAE;QACxD,MAAM,EAAE,IAAI,CAAC,IAAI;QACjB,SAAS,EAAE,IAAI,CAAC,OAAO;QACvB,QAAQ,EAAE,IAAI,CAAC,MAAM;QACrB,iBAAiB,EAAE,IAAI,CAAC,eAAe;QACvC,WAAW,EAAE,IAAI,CAAC,SAAS;QAC3B,MAAM,EAAE,IAAI,CAAC,IAAI;KACpB,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAXD,0BAWC;AA6ED;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACH,SAAgB,aAAa,CAAC,IAAwB,EAAE,IAAiC;IACrF,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;IAClB,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,YAAY,CAAC,6BAA6B,EAAE;QAC9D,MAAM,EAAE,IAAI,CAAC,IAAI;QACjB,SAAS,EAAE,IAAI,CAAC,OAAO;QACvB,QAAQ,EAAE,IAAI,CAAC,MAAM;QACrB,iBAAiB,EAAE,IAAI,CAAC,eAAe;QACvC,WAAW,EAAE,IAAI,CAAC,SAAS;QAC3B,MAAM,EAAE,IAAI,CAAC,IAAI;KACpB,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAXD,sCAWC"}
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
import * as outputs from "./types/output";
|
|
3
|
+
/**
|
|
4
|
+
* Data source to retrieve all organization memberships for a specific Auth0 user (EA only).
|
|
5
|
+
*
|
|
6
|
+
* ## Example Usage
|
|
7
|
+
*
|
|
8
|
+
* ```typescript
|
|
9
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
10
|
+
* import * as auth0 from "@pulumi/auth0";
|
|
11
|
+
*
|
|
12
|
+
* const myUserOrganizations = auth0.getUserOrganizations({
|
|
13
|
+
* userId: "auth0|XXXXX",
|
|
14
|
+
* });
|
|
15
|
+
* ```
|
|
16
|
+
*/
|
|
17
|
+
export declare function getUserOrganizations(args: GetUserOrganizationsArgs, opts?: pulumi.InvokeOptions): Promise<GetUserOrganizationsResult>;
|
|
18
|
+
/**
|
|
19
|
+
* A collection of arguments for invoking getUserOrganizations.
|
|
20
|
+
*/
|
|
21
|
+
export interface GetUserOrganizationsArgs {
|
|
22
|
+
/**
|
|
23
|
+
* The ID of the user to retrieve the organization memberships for.
|
|
24
|
+
*/
|
|
25
|
+
userId: string;
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* A collection of values returned by getUserOrganizations.
|
|
29
|
+
*/
|
|
30
|
+
export interface GetUserOrganizationsResult {
|
|
31
|
+
/**
|
|
32
|
+
* The provider-assigned unique ID for this managed resource.
|
|
33
|
+
*/
|
|
34
|
+
readonly id: string;
|
|
35
|
+
/**
|
|
36
|
+
* The list of organizations the user is a member of.
|
|
37
|
+
*/
|
|
38
|
+
readonly organizations: outputs.GetUserOrganizationsOrganization[];
|
|
39
|
+
/**
|
|
40
|
+
* The ID of the user to retrieve the organization memberships for.
|
|
41
|
+
*/
|
|
42
|
+
readonly userId: string;
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* Data source to retrieve all organization memberships for a specific Auth0 user (EA only).
|
|
46
|
+
*
|
|
47
|
+
* ## Example Usage
|
|
48
|
+
*
|
|
49
|
+
* ```typescript
|
|
50
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
51
|
+
* import * as auth0 from "@pulumi/auth0";
|
|
52
|
+
*
|
|
53
|
+
* const myUserOrganizations = auth0.getUserOrganizations({
|
|
54
|
+
* userId: "auth0|XXXXX",
|
|
55
|
+
* });
|
|
56
|
+
* ```
|
|
57
|
+
*/
|
|
58
|
+
export declare function getUserOrganizationsOutput(args: GetUserOrganizationsOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetUserOrganizationsResult>;
|
|
59
|
+
/**
|
|
60
|
+
* A collection of arguments for invoking getUserOrganizations.
|
|
61
|
+
*/
|
|
62
|
+
export interface GetUserOrganizationsOutputArgs {
|
|
63
|
+
/**
|
|
64
|
+
* The ID of the user to retrieve the organization memberships for.
|
|
65
|
+
*/
|
|
66
|
+
userId: pulumi.Input<string>;
|
|
67
|
+
}
|
|
68
|
+
//# sourceMappingURL=getUserOrganizations.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getUserOrganizations.d.ts","sourceRoot":"","sources":["../getUserOrganizations.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,MAAM,MAAM,gBAAgB,CAAC;AAEzC,OAAO,KAAK,OAAO,MAAM,gBAAgB,CAAC;AAG1C;;;;;;;;;;;;;GAaG;AACH,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,wBAAwB,EAAE,IAAI,CAAC,EAAE,MAAM,CAAC,aAAa,GAAG,OAAO,CAAC,0BAA0B,CAAC,CAKrI;AAED;;GAEG;AACH,MAAM,WAAW,wBAAwB;IACrC;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;CAClB;AAED;;GAEG;AACH,MAAM,WAAW,0BAA0B;IACvC;;OAEG;IACH,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAC;IACpB;;OAEG;IACH,QAAQ,CAAC,aAAa,EAAE,OAAO,CAAC,gCAAgC,EAAE,CAAC;IACnE;;OAEG;IACH,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;CAC3B;AACD;;;;;;;;;;;;;GAaG;AACH,wBAAgB,0BAA0B,CAAC,IAAI,EAAE,8BAA8B,EAAE,IAAI,CAAC,EAAE,MAAM,CAAC,mBAAmB,GAAG,MAAM,CAAC,MAAM,CAAC,0BAA0B,CAAC,CAK7J;AAED;;GAEG;AACH,MAAM,WAAW,8BAA8B;IAC3C;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;CAChC"}
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// *** WARNING: this file was generated by pulumi-language-nodejs. ***
|
|
3
|
+
// *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
5
|
+
if (k2 === undefined) k2 = k;
|
|
6
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
7
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
8
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
9
|
+
}
|
|
10
|
+
Object.defineProperty(o, k2, desc);
|
|
11
|
+
}) : (function(o, m, k, k2) {
|
|
12
|
+
if (k2 === undefined) k2 = k;
|
|
13
|
+
o[k2] = m[k];
|
|
14
|
+
}));
|
|
15
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
16
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
17
|
+
}) : function(o, v) {
|
|
18
|
+
o["default"] = v;
|
|
19
|
+
});
|
|
20
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
21
|
+
if (mod && mod.__esModule) return mod;
|
|
22
|
+
var result = {};
|
|
23
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
24
|
+
__setModuleDefault(result, mod);
|
|
25
|
+
return result;
|
|
26
|
+
};
|
|
27
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
28
|
+
exports.getUserOrganizationsOutput = exports.getUserOrganizations = void 0;
|
|
29
|
+
const pulumi = __importStar(require("@pulumi/pulumi"));
|
|
30
|
+
const utilities = __importStar(require("./utilities"));
|
|
31
|
+
/**
|
|
32
|
+
* Data source to retrieve all organization memberships for a specific Auth0 user (EA only).
|
|
33
|
+
*
|
|
34
|
+
* ## Example Usage
|
|
35
|
+
*
|
|
36
|
+
* ```typescript
|
|
37
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
38
|
+
* import * as auth0 from "@pulumi/auth0";
|
|
39
|
+
*
|
|
40
|
+
* const myUserOrganizations = auth0.getUserOrganizations({
|
|
41
|
+
* userId: "auth0|XXXXX",
|
|
42
|
+
* });
|
|
43
|
+
* ```
|
|
44
|
+
*/
|
|
45
|
+
function getUserOrganizations(args, opts) {
|
|
46
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
|
|
47
|
+
return pulumi.runtime.invoke("auth0:index/getUserOrganizations:getUserOrganizations", {
|
|
48
|
+
"userId": args.userId,
|
|
49
|
+
}, opts);
|
|
50
|
+
}
|
|
51
|
+
exports.getUserOrganizations = getUserOrganizations;
|
|
52
|
+
/**
|
|
53
|
+
* Data source to retrieve all organization memberships for a specific Auth0 user (EA only).
|
|
54
|
+
*
|
|
55
|
+
* ## Example Usage
|
|
56
|
+
*
|
|
57
|
+
* ```typescript
|
|
58
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
59
|
+
* import * as auth0 from "@pulumi/auth0";
|
|
60
|
+
*
|
|
61
|
+
* const myUserOrganizations = auth0.getUserOrganizations({
|
|
62
|
+
* userId: "auth0|XXXXX",
|
|
63
|
+
* });
|
|
64
|
+
* ```
|
|
65
|
+
*/
|
|
66
|
+
function getUserOrganizationsOutput(args, opts) {
|
|
67
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
|
|
68
|
+
return pulumi.runtime.invokeOutput("auth0:index/getUserOrganizations:getUserOrganizations", {
|
|
69
|
+
"userId": args.userId,
|
|
70
|
+
}, opts);
|
|
71
|
+
}
|
|
72
|
+
exports.getUserOrganizationsOutput = getUserOrganizationsOutput;
|
|
73
|
+
//# sourceMappingURL=getUserOrganizations.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getUserOrganizations.js","sourceRoot":"","sources":["../getUserOrganizations.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;;;;;;;;;;;;;;;;;;;;;;;;AAEjF,uDAAyC;AAGzC,uDAAyC;AAEzC;;;;;;;;;;;;;GAaG;AACH,SAAgB,oBAAoB,CAAC,IAA8B,EAAE,IAA2B;IAC5F,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,uDAAuD,EAAE;QAClF,QAAQ,EAAE,IAAI,CAAC,MAAM;KACxB,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AALD,oDAKC;AA6BD;;;;;;;;;;;;;GAaG;AACH,SAAgB,0BAA0B,CAAC,IAAoC,EAAE,IAAiC;IAC9G,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,YAAY,CAAC,uDAAuD,EAAE;QACxF,QAAQ,EAAE,IAAI,CAAC,MAAM;KACxB,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AALD,gEAKC"}
|
package/index.d.ts
CHANGED
|
@@ -115,6 +115,9 @@ export declare const getBrandingThemeOutput: typeof import("./getBrandingTheme")
|
|
|
115
115
|
export { GetClientArgs, GetClientResult, GetClientOutputArgs } from "./getClient";
|
|
116
116
|
export declare const getClient: typeof import("./getClient").getClient;
|
|
117
117
|
export declare const getClientOutput: typeof import("./getClient").getClientOutput;
|
|
118
|
+
export { GetClientGrantOrganizationsArgs, GetClientGrantOrganizationsResult, GetClientGrantOrganizationsOutputArgs } from "./getClientGrantOrganizations";
|
|
119
|
+
export declare const getClientGrantOrganizations: typeof import("./getClientGrantOrganizations").getClientGrantOrganizations;
|
|
120
|
+
export declare const getClientGrantOrganizationsOutput: typeof import("./getClientGrantOrganizations").getClientGrantOrganizationsOutput;
|
|
118
121
|
export { GetClientGrantsArgs, GetClientGrantsResult, GetClientGrantsOutputArgs } from "./getClientGrants";
|
|
119
122
|
export declare const getClientGrants: typeof import("./getClientGrants").getClientGrants;
|
|
120
123
|
export declare const getClientGrantsOutput: typeof import("./getClientGrants").getClientGrantsOutput;
|
|
@@ -166,6 +169,21 @@ export declare const getNetworkAclOutput: typeof import("./getNetworkAcl").getNe
|
|
|
166
169
|
export { GetOrganizationArgs, GetOrganizationResult, GetOrganizationOutputArgs } from "./getOrganization";
|
|
167
170
|
export declare const getOrganization: typeof import("./getOrganization").getOrganization;
|
|
168
171
|
export declare const getOrganizationOutput: typeof import("./getOrganization").getOrganizationOutput;
|
|
172
|
+
export { GetOrganizationClientArgs, GetOrganizationClientResult, GetOrganizationClientOutputArgs } from "./getOrganizationClient";
|
|
173
|
+
export declare const getOrganizationClient: typeof import("./getOrganizationClient").getOrganizationClient;
|
|
174
|
+
export declare const getOrganizationClientOutput: typeof import("./getOrganizationClient").getOrganizationClientOutput;
|
|
175
|
+
export { GetOrganizationClientsArgs, GetOrganizationClientsResult, GetOrganizationClientsOutputArgs } from "./getOrganizationClients";
|
|
176
|
+
export declare const getOrganizationClients: typeof import("./getOrganizationClients").getOrganizationClients;
|
|
177
|
+
export declare const getOrganizationClientsOutput: typeof import("./getOrganizationClients").getOrganizationClientsOutput;
|
|
178
|
+
export { GetOrganizationRoleGroupsArgs, GetOrganizationRoleGroupsResult, GetOrganizationRoleGroupsOutputArgs } from "./getOrganizationRoleGroups";
|
|
179
|
+
export declare const getOrganizationRoleGroups: typeof import("./getOrganizationRoleGroups").getOrganizationRoleGroups;
|
|
180
|
+
export declare const getOrganizationRoleGroupsOutput: typeof import("./getOrganizationRoleGroups").getOrganizationRoleGroupsOutput;
|
|
181
|
+
export { GetOrganizationRoleMembersArgs, GetOrganizationRoleMembersResult, GetOrganizationRoleMembersOutputArgs } from "./getOrganizationRoleMembers";
|
|
182
|
+
export declare const getOrganizationRoleMembers: typeof import("./getOrganizationRoleMembers").getOrganizationRoleMembers;
|
|
183
|
+
export declare const getOrganizationRoleMembersOutput: typeof import("./getOrganizationRoleMembers").getOrganizationRoleMembersOutput;
|
|
184
|
+
export { GetOrganizationsArgs, GetOrganizationsResult, GetOrganizationsOutputArgs } from "./getOrganizations";
|
|
185
|
+
export declare const getOrganizations: typeof import("./getOrganizations").getOrganizations;
|
|
186
|
+
export declare const getOrganizationsOutput: typeof import("./getOrganizations").getOrganizationsOutput;
|
|
169
187
|
export { GetOutboundIpsResult } from "./getOutboundIps";
|
|
170
188
|
export declare const getOutboundIps: typeof import("./getOutboundIps").getOutboundIps;
|
|
171
189
|
export declare const getOutboundIpsOutput: typeof import("./getOutboundIps").getOutboundIpsOutput;
|
|
@@ -217,6 +235,9 @@ export declare const getUserAttributeProfileOutput: typeof import("./getUserAttr
|
|
|
217
235
|
export { GetUserConnectedAccountsArgs, GetUserConnectedAccountsResult, GetUserConnectedAccountsOutputArgs } from "./getUserConnectedAccounts";
|
|
218
236
|
export declare const getUserConnectedAccounts: typeof import("./getUserConnectedAccounts").getUserConnectedAccounts;
|
|
219
237
|
export declare const getUserConnectedAccountsOutput: typeof import("./getUserConnectedAccounts").getUserConnectedAccountsOutput;
|
|
238
|
+
export { GetUserOrganizationsArgs, GetUserOrganizationsResult, GetUserOrganizationsOutputArgs } from "./getUserOrganizations";
|
|
239
|
+
export declare const getUserOrganizations: typeof import("./getUserOrganizations").getUserOrganizations;
|
|
240
|
+
export declare const getUserOrganizationsOutput: typeof import("./getUserOrganizations").getUserOrganizationsOutput;
|
|
220
241
|
export { GuardianArgs, GuardianState } from "./guardian";
|
|
221
242
|
export type Guardian = import("./guardian").Guardian;
|
|
222
243
|
export declare const Guardian: typeof import("./guardian").Guardian;
|
|
@@ -232,9 +253,15 @@ export declare const NetworkAcl: typeof import("./networkAcl").NetworkAcl;
|
|
|
232
253
|
export { OrganizationArgs, OrganizationState } from "./organization";
|
|
233
254
|
export type Organization = import("./organization").Organization;
|
|
234
255
|
export declare const Organization: typeof import("./organization").Organization;
|
|
256
|
+
export { OrganizationClientArgs, OrganizationClientState } from "./organizationClient";
|
|
257
|
+
export type OrganizationClient = import("./organizationClient").OrganizationClient;
|
|
258
|
+
export declare const OrganizationClient: typeof import("./organizationClient").OrganizationClient;
|
|
235
259
|
export { OrganizationClientGrantArgs, OrganizationClientGrantState } from "./organizationClientGrant";
|
|
236
260
|
export type OrganizationClientGrant = import("./organizationClientGrant").OrganizationClientGrant;
|
|
237
261
|
export declare const OrganizationClientGrant: typeof import("./organizationClientGrant").OrganizationClientGrant;
|
|
262
|
+
export { OrganizationClientsArgs, OrganizationClientsState } from "./organizationClients";
|
|
263
|
+
export type OrganizationClients = import("./organizationClients").OrganizationClients;
|
|
264
|
+
export declare const OrganizationClients: typeof import("./organizationClients").OrganizationClients;
|
|
238
265
|
export { OrganizationConnectionArgs, OrganizationConnectionState } from "./organizationConnection";
|
|
239
266
|
export type OrganizationConnection = import("./organizationConnection").OrganizationConnection;
|
|
240
267
|
export declare const OrganizationConnection: typeof import("./organizationConnection").OrganizationConnection;
|