@ryan-pip/pulumi_astronomer 0.2.8 → 1.2.3-alpha.4

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 (170) hide show
  1. package/agentToken.d.ts +96 -0
  2. package/agentToken.d.ts.map +1 -0
  3. package/agentToken.js +88 -0
  4. package/agentToken.js.map +1 -0
  5. package/alert.d.ts +190 -0
  6. package/alert.d.ts.map +1 -0
  7. package/alert.js +121 -0
  8. package/alert.js.map +1 -0
  9. package/apiToken.d.ts +7 -0
  10. package/apiToken.d.ts.map +1 -0
  11. package/apiToken.js +50 -27
  12. package/apiToken.js.map +1 -1
  13. package/cluster.d.ts +76 -50
  14. package/cluster.d.ts.map +1 -0
  15. package/cluster.js +76 -88
  16. package/cluster.js.map +1 -1
  17. package/config/index.d.ts +1 -0
  18. package/config/index.d.ts.map +1 -0
  19. package/config/index.js +1 -1
  20. package/config/index.js.map +1 -1
  21. package/config/vars.d.ts +1 -0
  22. package/config/vars.d.ts.map +1 -0
  23. package/config/vars.js +28 -6
  24. package/config/vars.js.map +1 -1
  25. package/customRole.d.ts +162 -0
  26. package/customRole.d.ts.map +1 -0
  27. package/customRole.js +125 -0
  28. package/customRole.js.map +1 -0
  29. package/deployment.d.ts +50 -16
  30. package/deployment.d.ts.map +1 -0
  31. package/deployment.js +114 -87
  32. package/deployment.js.map +1 -1
  33. package/getAlert.d.ts +118 -0
  34. package/getAlert.d.ts.map +1 -0
  35. package/getAlert.js +75 -0
  36. package/getAlert.js.map +1 -0
  37. package/getAlerts.d.ts +102 -0
  38. package/getAlerts.d.ts.map +1 -0
  39. package/getAlerts.js +117 -0
  40. package/getAlerts.js.map +1 -0
  41. package/getApiToken.d.ts +3 -2
  42. package/getApiToken.d.ts.map +1 -0
  43. package/getApiToken.js +28 -5
  44. package/getApiToken.js.map +1 -1
  45. package/getApiTokens.d.ts +3 -2
  46. package/getApiTokens.d.ts.map +1 -0
  47. package/getApiTokens.js +28 -5
  48. package/getApiTokens.js.map +1 -1
  49. package/getCluster.d.ts +28 -3
  50. package/getCluster.d.ts.map +1 -0
  51. package/getCluster.js +28 -5
  52. package/getCluster.js.map +1 -1
  53. package/getClusterOptions.d.ts +12 -2
  54. package/getClusterOptions.d.ts.map +1 -0
  55. package/getClusterOptions.js +28 -5
  56. package/getClusterOptions.js.map +1 -1
  57. package/getClusters.d.ts +12 -2
  58. package/getClusters.d.ts.map +1 -0
  59. package/getClusters.js +28 -5
  60. package/getClusters.js.map +1 -1
  61. package/getCustomRole.d.ts +98 -0
  62. package/getCustomRole.d.ts.map +1 -0
  63. package/getCustomRole.js +75 -0
  64. package/getCustomRole.js.map +1 -0
  65. package/getDeployment.d.ts +10 -5
  66. package/getDeployment.d.ts.map +1 -0
  67. package/getDeployment.js +28 -5
  68. package/getDeployment.js.map +1 -1
  69. package/getDeploymentOptions.d.ts +6 -5
  70. package/getDeploymentOptions.d.ts.map +1 -0
  71. package/getDeploymentOptions.js +28 -5
  72. package/getDeploymentOptions.js.map +1 -1
  73. package/getDeployments.d.ts +3 -2
  74. package/getDeployments.d.ts.map +1 -0
  75. package/getDeployments.js +28 -5
  76. package/getDeployments.js.map +1 -1
  77. package/getNotificationChannel.d.ts +114 -0
  78. package/getNotificationChannel.d.ts.map +1 -0
  79. package/getNotificationChannel.js +75 -0
  80. package/getNotificationChannel.js.map +1 -0
  81. package/getNotificationChannels.d.ts +50 -0
  82. package/getNotificationChannels.d.ts.map +1 -0
  83. package/getNotificationChannels.js +65 -0
  84. package/getNotificationChannels.js.map +1 -0
  85. package/getOrganization.d.ts +3 -2
  86. package/getOrganization.d.ts.map +1 -0
  87. package/getOrganization.js +28 -5
  88. package/getOrganization.js.map +1 -1
  89. package/getTeam.d.ts +11 -2
  90. package/getTeam.d.ts.map +1 -0
  91. package/getTeam.js +28 -5
  92. package/getTeam.js.map +1 -1
  93. package/getTeams.d.ts +27 -18
  94. package/getTeams.d.ts.map +1 -0
  95. package/getTeams.js +52 -21
  96. package/getTeams.js.map +1 -1
  97. package/getUser.d.ts +7 -2
  98. package/getUser.d.ts.map +1 -0
  99. package/getUser.js +28 -5
  100. package/getUser.js.map +1 -1
  101. package/getUsers.d.ts +27 -18
  102. package/getUsers.d.ts.map +1 -0
  103. package/getUsers.js +52 -21
  104. package/getUsers.js.map +1 -1
  105. package/getWorkspace.d.ts +3 -2
  106. package/getWorkspace.d.ts.map +1 -0
  107. package/getWorkspace.js +28 -5
  108. package/getWorkspace.js.map +1 -1
  109. package/getWorkspaces.d.ts +39 -30
  110. package/getWorkspaces.d.ts.map +1 -0
  111. package/getWorkspaces.js +64 -33
  112. package/getWorkspaces.js.map +1 -1
  113. package/hybridClusterWorkspaceAuthorization.d.ts +1 -19
  114. package/hybridClusterWorkspaceAuthorization.d.ts.map +1 -0
  115. package/hybridClusterWorkspaceAuthorization.js +34 -30
  116. package/hybridClusterWorkspaceAuthorization.js.map +1 -1
  117. package/index.d.ts +32 -3
  118. package/index.d.ts.map +1 -0
  119. package/index.js +76 -9
  120. package/index.js.map +1 -1
  121. package/notificationChannel.d.ts +170 -0
  122. package/notificationChannel.d.ts.map +1 -0
  123. package/notificationChannel.js +111 -0
  124. package/notificationChannel.js.map +1 -0
  125. package/package.json +4 -3
  126. package/provider.d.ts +18 -3
  127. package/provider.d.ts.map +1 -0
  128. package/provider.js +39 -12
  129. package/provider.js.map +1 -1
  130. package/team.d.ts +20 -7
  131. package/team.d.ts.map +1 -0
  132. package/team.js +51 -26
  133. package/team.js.map +1 -1
  134. package/teamMembership.d.ts +66 -0
  135. package/teamMembership.d.ts.map +1 -0
  136. package/teamMembership.js +85 -0
  137. package/teamMembership.js.map +1 -0
  138. package/teamRoles.d.ts +20 -7
  139. package/teamRoles.d.ts.map +1 -0
  140. package/teamRoles.js +42 -17
  141. package/teamRoles.js.map +1 -1
  142. package/types/index.d.ts +1 -0
  143. package/types/index.d.ts.map +1 -0
  144. package/types/index.js +26 -3
  145. package/types/index.js.map +1 -1
  146. package/types/input.d.ts +316 -3
  147. package/types/input.d.ts.map +1 -0
  148. package/types/input.js +1 -1
  149. package/types/input.js.map +1 -1
  150. package/types/output.d.ts +944 -11
  151. package/types/output.d.ts.map +1 -0
  152. package/types/output.js +1 -1
  153. package/types/output.js.map +1 -1
  154. package/userInvite.d.ts +2 -1
  155. package/userInvite.d.ts.map +1 -0
  156. package/userInvite.js +41 -18
  157. package/userInvite.js.map +1 -1
  158. package/userRoles.d.ts +20 -7
  159. package/userRoles.d.ts.map +1 -0
  160. package/userRoles.js +42 -17
  161. package/userRoles.js.map +1 -1
  162. package/utilities.d.ts +1 -4
  163. package/utilities.d.ts.map +1 -0
  164. package/utilities.js +43 -30
  165. package/utilities.js.map +1 -1
  166. package/workspace.d.ts +1 -16
  167. package/workspace.d.ts.map +1 -0
  168. package/workspace.js +41 -34
  169. package/workspace.js.map +1 -1
  170. package/package.json.bak +0 -29
package/team.js CHANGED
@@ -1,12 +1,35 @@
1
1
  "use strict";
2
- // *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
2
+ // *** WARNING: this file was generated by pulumi-language-nodejs. ***
3
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
+ };
4
27
  Object.defineProperty(exports, "__esModule", { value: true });
5
28
  exports.Team = void 0;
6
- const pulumi = require("@pulumi/pulumi");
7
- const utilities = require("./utilities");
29
+ const pulumi = __importStar(require("@pulumi/pulumi"));
30
+ const utilities = __importStar(require("./utilities"));
8
31
  /**
9
- * Team resource
32
+ * Creates and manages a team and its members. Astro permissions are hierarchical (organization, workspace, deployment, then DAG). Declare roles at each applicable parent scope as well as nested scopes, not only at the leaf, so Terraform state matches the API.
10
33
  */
11
34
  class Team extends pulumi.CustomResource {
12
35
  /**
@@ -19,8 +42,10 @@ class Team extends pulumi.CustomResource {
19
42
  * @param opts Optional settings to control the behavior of the CustomResource.
20
43
  */
21
44
  static get(name, id, state, opts) {
22
- return new Team(name, state, Object.assign(Object.assign({}, opts), { id: id }));
45
+ return new Team(name, state, { ...opts, id: id });
23
46
  }
47
+ /** @internal */
48
+ static __pulumiType = 'astronomer:index/team:Team';
24
49
  /**
25
50
  * Returns true if the given object is an instance of Team. This is designed to work even
26
51
  * when multiple copies of the Pulumi SDK have been loaded into the same process.
@@ -36,30 +61,32 @@ class Team extends pulumi.CustomResource {
36
61
  opts = opts || {};
37
62
  if (opts.id) {
38
63
  const state = argsOrState;
39
- resourceInputs["createdAt"] = state ? state.createdAt : undefined;
40
- resourceInputs["createdBy"] = state ? state.createdBy : undefined;
41
- resourceInputs["deploymentRoles"] = state ? state.deploymentRoles : undefined;
42
- resourceInputs["description"] = state ? state.description : undefined;
43
- resourceInputs["isIdpManaged"] = state ? state.isIdpManaged : undefined;
44
- resourceInputs["memberIds"] = state ? state.memberIds : undefined;
45
- resourceInputs["name"] = state ? state.name : undefined;
46
- resourceInputs["organizationRole"] = state ? state.organizationRole : undefined;
47
- resourceInputs["rolesCount"] = state ? state.rolesCount : undefined;
48
- resourceInputs["updatedAt"] = state ? state.updatedAt : undefined;
49
- resourceInputs["updatedBy"] = state ? state.updatedBy : undefined;
50
- resourceInputs["workspaceRoles"] = state ? state.workspaceRoles : undefined;
64
+ resourceInputs["createdAt"] = state?.createdAt;
65
+ resourceInputs["createdBy"] = state?.createdBy;
66
+ resourceInputs["dagRoles"] = state?.dagRoles;
67
+ resourceInputs["deploymentRoles"] = state?.deploymentRoles;
68
+ resourceInputs["description"] = state?.description;
69
+ resourceInputs["isIdpManaged"] = state?.isIdpManaged;
70
+ resourceInputs["memberIds"] = state?.memberIds;
71
+ resourceInputs["name"] = state?.name;
72
+ resourceInputs["organizationRole"] = state?.organizationRole;
73
+ resourceInputs["rolesCount"] = state?.rolesCount;
74
+ resourceInputs["updatedAt"] = state?.updatedAt;
75
+ resourceInputs["updatedBy"] = state?.updatedBy;
76
+ resourceInputs["workspaceRoles"] = state?.workspaceRoles;
51
77
  }
52
78
  else {
53
79
  const args = argsOrState;
54
- if ((!args || args.organizationRole === undefined) && !opts.urn) {
80
+ if (args?.organizationRole === undefined && !opts.urn) {
55
81
  throw new Error("Missing required property 'organizationRole'");
56
82
  }
57
- resourceInputs["deploymentRoles"] = args ? args.deploymentRoles : undefined;
58
- resourceInputs["description"] = args ? args.description : undefined;
59
- resourceInputs["memberIds"] = args ? args.memberIds : undefined;
60
- resourceInputs["name"] = args ? args.name : undefined;
61
- resourceInputs["organizationRole"] = args ? args.organizationRole : undefined;
62
- resourceInputs["workspaceRoles"] = args ? args.workspaceRoles : undefined;
83
+ resourceInputs["dagRoles"] = args?.dagRoles;
84
+ resourceInputs["deploymentRoles"] = args?.deploymentRoles;
85
+ resourceInputs["description"] = args?.description;
86
+ resourceInputs["memberIds"] = args?.memberIds;
87
+ resourceInputs["name"] = args?.name;
88
+ resourceInputs["organizationRole"] = args?.organizationRole;
89
+ resourceInputs["workspaceRoles"] = args?.workspaceRoles;
63
90
  resourceInputs["createdAt"] = undefined /*out*/;
64
91
  resourceInputs["createdBy"] = undefined /*out*/;
65
92
  resourceInputs["isIdpManaged"] = undefined /*out*/;
@@ -72,6 +99,4 @@ class Team extends pulumi.CustomResource {
72
99
  }
73
100
  }
74
101
  exports.Team = Team;
75
- /** @internal */
76
- Team.__pulumiType = 'astronomer:index/team:Team';
77
102
  //# sourceMappingURL=team.js.map
package/team.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"team.js","sourceRoot":"","sources":["../team.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC;;GAEG;AACH,MAAa,IAAK,SAAQ,MAAM,CAAC,cAAc;IAC3C;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAiB,EAAE,IAAmC;QAC/G,OAAO,IAAI,IAAI,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IAC3D,CAAC;IAKD;;;OAGG;IACI,MAAM,CAAC,UAAU,CAAC,GAAQ;QAC7B,IAAI,GAAG,KAAK,SAAS,IAAI,GAAG,KAAK,IAAI,EAAE;YACnC,OAAO,KAAK,CAAC;SAChB;QACD,OAAO,GAAG,CAAC,cAAc,CAAC,KAAK,IAAI,CAAC,YAAY,CAAC;IACrD,CAAC;IA2DD,YAAY,IAAY,EAAE,WAAkC,EAAE,IAAmC;QAC7F,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAAoC,CAAC;YACnD,cAAc,CAAC,WAAW,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC,CAAC,SAAS,CAAC;YAClE,cAAc,CAAC,WAAW,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,SAAS,CAAC,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IAAI,EAAE,cAAc,CAAC;YACxD,cAAc,CAAC,WAAW,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YAChD,cAAc,CAAC,WAAW,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YAChD,cAAc,CAAC,cAAc,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YACnD,cAAc,CAAC,YAAY,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YACjD,cAAc,CAAC,WAAW,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YAChD,cAAc,CAAC,WAAW,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;SACnD;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,IAAI,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IACzD,CAAC;;AAhIL,oBAiIC"}
@@ -0,0 +1,66 @@
1
+ import * as pulumi from "@pulumi/pulumi";
2
+ /**
3
+ * Manages a single user's membership in an Astro team. Use this resource instead of the `memberIds` attribute on `astronomer.Team` when you need to manage memberships independently or across multiple state files.
4
+ *
5
+ * **Conflict note:** Do not use both `astro_team.member_ids` and `astronomer.TeamMembership` for the same team. Both write to the same API state and will conflict on apply.
6
+ */
7
+ export declare class TeamMembership extends pulumi.CustomResource {
8
+ /**
9
+ * Get an existing TeamMembership 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
+ static get(name: string, id: pulumi.Input<pulumi.ID>, state?: TeamMembershipState, opts?: pulumi.CustomResourceOptions): TeamMembership;
18
+ /**
19
+ * Returns true if the given object is an instance of TeamMembership. This is designed to work even
20
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
21
+ */
22
+ static isInstance(obj: any): obj is TeamMembership;
23
+ /**
24
+ * The ID of the team
25
+ */
26
+ readonly teamId: pulumi.Output<string>;
27
+ /**
28
+ * The ID of the user to add to the team
29
+ */
30
+ readonly userId: pulumi.Output<string>;
31
+ /**
32
+ * Create a TeamMembership resource with the given unique name, arguments, and options.
33
+ *
34
+ * @param name The _unique_ name of the resource.
35
+ * @param args The arguments to use to populate this resource's properties.
36
+ * @param opts A bag of options that control this resource's behavior.
37
+ */
38
+ constructor(name: string, args: TeamMembershipArgs, opts?: pulumi.CustomResourceOptions);
39
+ }
40
+ /**
41
+ * Input properties used for looking up and filtering TeamMembership resources.
42
+ */
43
+ export interface TeamMembershipState {
44
+ /**
45
+ * The ID of the team
46
+ */
47
+ teamId?: pulumi.Input<string>;
48
+ /**
49
+ * The ID of the user to add to the team
50
+ */
51
+ userId?: pulumi.Input<string>;
52
+ }
53
+ /**
54
+ * The set of arguments for constructing a TeamMembership resource.
55
+ */
56
+ export interface TeamMembershipArgs {
57
+ /**
58
+ * The ID of the team
59
+ */
60
+ teamId: pulumi.Input<string>;
61
+ /**
62
+ * The ID of the user to add to the team
63
+ */
64
+ userId: pulumi.Input<string>;
65
+ }
66
+ //# sourceMappingURL=teamMembership.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"teamMembership.d.ts","sourceRoot":"","sources":["../teamMembership.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,MAAM,MAAM,gBAAgB,CAAC;AAGzC;;;;GAIG;AACH,qBAAa,cAAe,SAAQ,MAAM,CAAC,cAAc;IACrD;;;;;;;;OAQG;WACW,GAAG,CAAC,IAAI,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,EAAE,CAAC,EAAE,KAAK,CAAC,EAAE,mBAAmB,EAAE,IAAI,CAAC,EAAE,MAAM,CAAC,qBAAqB,GAAG,cAAc;IAO9I;;;OAGG;WACW,UAAU,CAAC,GAAG,EAAE,GAAG,GAAG,GAAG,IAAI,cAAc;IAOzD;;OAEG;IACH,SAAwB,MAAM,EAAE,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;IACtD;;OAEG;IACH,SAAwB,MAAM,EAAE,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;IAEtD;;;;;;OAMG;gBACS,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,kBAAkB,EAAE,IAAI,CAAC,EAAE,MAAM,CAAC,qBAAqB;CAsB1F;AAED;;GAEG;AACH,MAAM,WAAW,mBAAmB;IAChC;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;IAC9B;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;CACjC;AAED;;GAEG;AACH,MAAM,WAAW,kBAAkB;IAC/B;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;IAC7B;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;CAChC"}
@@ -0,0 +1,85 @@
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.TeamMembership = void 0;
29
+ const pulumi = __importStar(require("@pulumi/pulumi"));
30
+ const utilities = __importStar(require("./utilities"));
31
+ /**
32
+ * Manages a single user's membership in an Astro team. Use this resource instead of the `memberIds` attribute on `astronomer.Team` when you need to manage memberships independently or across multiple state files.
33
+ *
34
+ * **Conflict note:** Do not use both `astro_team.member_ids` and `astronomer.TeamMembership` for the same team. Both write to the same API state and will conflict on apply.
35
+ */
36
+ class TeamMembership extends pulumi.CustomResource {
37
+ /**
38
+ * Get an existing TeamMembership resource's state with the given name, ID, and optional extra
39
+ * properties used to qualify the lookup.
40
+ *
41
+ * @param name The _unique_ name of the resulting resource.
42
+ * @param id The _unique_ provider ID of the resource to lookup.
43
+ * @param state Any extra arguments used during the lookup.
44
+ * @param opts Optional settings to control the behavior of the CustomResource.
45
+ */
46
+ static get(name, id, state, opts) {
47
+ return new TeamMembership(name, state, { ...opts, id: id });
48
+ }
49
+ /** @internal */
50
+ static __pulumiType = 'astronomer:index/teamMembership:TeamMembership';
51
+ /**
52
+ * Returns true if the given object is an instance of TeamMembership. This is designed to work even
53
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
54
+ */
55
+ static isInstance(obj) {
56
+ if (obj === undefined || obj === null) {
57
+ return false;
58
+ }
59
+ return obj['__pulumiType'] === TeamMembership.__pulumiType;
60
+ }
61
+ constructor(name, argsOrState, opts) {
62
+ let resourceInputs = {};
63
+ opts = opts || {};
64
+ if (opts.id) {
65
+ const state = argsOrState;
66
+ resourceInputs["teamId"] = state?.teamId;
67
+ resourceInputs["userId"] = state?.userId;
68
+ }
69
+ else {
70
+ const args = argsOrState;
71
+ if (args?.teamId === undefined && !opts.urn) {
72
+ throw new Error("Missing required property 'teamId'");
73
+ }
74
+ if (args?.userId === undefined && !opts.urn) {
75
+ throw new Error("Missing required property 'userId'");
76
+ }
77
+ resourceInputs["teamId"] = args?.teamId;
78
+ resourceInputs["userId"] = args?.userId;
79
+ }
80
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
81
+ super(TeamMembership.__pulumiType, name, resourceInputs, opts);
82
+ }
83
+ }
84
+ exports.TeamMembership = TeamMembership;
85
+ //# sourceMappingURL=teamMembership.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"teamMembership.js","sourceRoot":"","sources":["../teamMembership.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;;;;;;;;;;;;;;;;;;;;;;;;AAEjF,uDAAyC;AACzC,uDAAyC;AAEzC;;;;GAIG;AACH,MAAa,cAAe,SAAQ,MAAM,CAAC,cAAc;IACrD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAA2B,EAAE,IAAmC;QACzH,OAAO,IAAI,cAAc,CAAC,IAAI,EAAO,KAAK,EAAE,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC;IACrE,CAAC;IAED,gBAAgB;IACT,MAAM,CAAU,YAAY,GAAG,gDAAgD,CAAC;IAEvF;;;OAGG;IACI,MAAM,CAAC,UAAU,CAAC,GAAQ;QAC7B,IAAI,GAAG,KAAK,SAAS,IAAI,GAAG,KAAK,IAAI,EAAE;YACnC,OAAO,KAAK,CAAC;SAChB;QACD,OAAO,GAAG,CAAC,cAAc,CAAC,KAAK,cAAc,CAAC,YAAY,CAAC;IAC/D,CAAC;IAmBD,YAAY,IAAY,EAAE,WAAsD,EAAE,IAAmC;QACjH,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAA8C,CAAC;YAC7D,cAAc,CAAC,QAAQ,CAAC,GAAG,KAAK,EAAE,MAAM,CAAC;YACzC,cAAc,CAAC,QAAQ,CAAC,GAAG,KAAK,EAAE,MAAM,CAAC;SAC5C;aAAM;YACH,MAAM,IAAI,GAAG,WAA6C,CAAC;YAC3D,IAAI,IAAI,EAAE,MAAM,KAAK,SAAS,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE;gBACzC,MAAM,IAAI,KAAK,CAAC,oCAAoC,CAAC,CAAC;aACzD;YACD,IAAI,IAAI,EAAE,MAAM,KAAK,SAAS,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE;gBACzC,MAAM,IAAI,KAAK,CAAC,oCAAoC,CAAC,CAAC;aACzD;YACD,cAAc,CAAC,QAAQ,CAAC,GAAG,IAAI,EAAE,MAAM,CAAC;YACxC,cAAc,CAAC,QAAQ,CAAC,GAAG,IAAI,EAAE,MAAM,CAAC;SAC3C;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,cAAc,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IACnE,CAAC;;AAjEL,wCAkEC"}
package/teamRoles.d.ts CHANGED
@@ -2,7 +2,7 @@ import * as pulumi from "@pulumi/pulumi";
2
2
  import * as inputs from "./types/input";
3
3
  import * as outputs from "./types/output";
4
4
  /**
5
- * Team Roles resource
5
+ * Manages organization, workspace, deployment, and DAG roles for an existing team. Astro permissions are hierarchical (organization, workspace, deployment, then DAG). Declare roles at each applicable parent scope as well as nested scopes, not only at the leaf, so Terraform state matches the API.
6
6
  */
7
7
  export declare class TeamRoles extends pulumi.CustomResource {
8
8
  /**
@@ -21,7 +21,11 @@ export declare class TeamRoles extends pulumi.CustomResource {
21
21
  */
22
22
  static isInstance(obj: any): obj is TeamRoles;
23
23
  /**
24
- * The roles to assign to the deployments
24
+ * The DAG roles to assign to the team. Each role grants permissions to a specific DAG or DAGs with a specific tag within a deployment. Each deployment referenced in `dagRoles` must also have a corresponding entry in `deploymentRoles` (e.g. with `DEPLOYMENT_ACCESSOR` role).
25
+ */
26
+ readonly dagRoles: pulumi.Output<outputs.TeamRolesDagRole[] | undefined>;
27
+ /**
28
+ * The roles to assign to the deployments. Each `deploymentId` must belong to a workspace that also appears in `workspaceRoles`. Required for any deployment referenced in `dagRoles`.
25
29
  */
26
30
  readonly deploymentRoles: pulumi.Output<outputs.TeamRolesDeploymentRole[] | undefined>;
27
31
  /**
@@ -33,7 +37,7 @@ export declare class TeamRoles extends pulumi.CustomResource {
33
37
  */
34
38
  readonly teamId: pulumi.Output<string>;
35
39
  /**
36
- * The roles to assign to the workspaces
40
+ * The roles to assign to the workspaces. When you set `deploymentRoles` or `dagRoles`, include each deployment's parent workspace here (any workspace role), so Terraform state matches the API.
37
41
  */
38
42
  readonly workspaceRoles: pulumi.Output<outputs.TeamRolesWorkspaceRole[] | undefined>;
39
43
  /**
@@ -50,7 +54,11 @@ export declare class TeamRoles extends pulumi.CustomResource {
50
54
  */
51
55
  export interface TeamRolesState {
52
56
  /**
53
- * The roles to assign to the deployments
57
+ * The DAG roles to assign to the team. Each role grants permissions to a specific DAG or DAGs with a specific tag within a deployment. Each deployment referenced in `dagRoles` must also have a corresponding entry in `deploymentRoles` (e.g. with `DEPLOYMENT_ACCESSOR` role).
58
+ */
59
+ dagRoles?: pulumi.Input<pulumi.Input<inputs.TeamRolesDagRole>[]>;
60
+ /**
61
+ * The roles to assign to the deployments. Each `deploymentId` must belong to a workspace that also appears in `workspaceRoles`. Required for any deployment referenced in `dagRoles`.
54
62
  */
55
63
  deploymentRoles?: pulumi.Input<pulumi.Input<inputs.TeamRolesDeploymentRole>[]>;
56
64
  /**
@@ -62,7 +70,7 @@ export interface TeamRolesState {
62
70
  */
63
71
  teamId?: pulumi.Input<string>;
64
72
  /**
65
- * The roles to assign to the workspaces
73
+ * The roles to assign to the workspaces. When you set `deploymentRoles` or `dagRoles`, include each deployment's parent workspace here (any workspace role), so Terraform state matches the API.
66
74
  */
67
75
  workspaceRoles?: pulumi.Input<pulumi.Input<inputs.TeamRolesWorkspaceRole>[]>;
68
76
  }
@@ -71,7 +79,11 @@ export interface TeamRolesState {
71
79
  */
72
80
  export interface TeamRolesArgs {
73
81
  /**
74
- * The roles to assign to the deployments
82
+ * The DAG roles to assign to the team. Each role grants permissions to a specific DAG or DAGs with a specific tag within a deployment. Each deployment referenced in `dagRoles` must also have a corresponding entry in `deploymentRoles` (e.g. with `DEPLOYMENT_ACCESSOR` role).
83
+ */
84
+ dagRoles?: pulumi.Input<pulumi.Input<inputs.TeamRolesDagRole>[]>;
85
+ /**
86
+ * The roles to assign to the deployments. Each `deploymentId` must belong to a workspace that also appears in `workspaceRoles`. Required for any deployment referenced in `dagRoles`.
75
87
  */
76
88
  deploymentRoles?: pulumi.Input<pulumi.Input<inputs.TeamRolesDeploymentRole>[]>;
77
89
  /**
@@ -83,7 +95,8 @@ export interface TeamRolesArgs {
83
95
  */
84
96
  teamId: pulumi.Input<string>;
85
97
  /**
86
- * The roles to assign to the workspaces
98
+ * The roles to assign to the workspaces. When you set `deploymentRoles` or `dagRoles`, include each deployment's parent workspace here (any workspace role), so Terraform state matches the API.
87
99
  */
88
100
  workspaceRoles?: pulumi.Input<pulumi.Input<inputs.TeamRolesWorkspaceRole>[]>;
89
101
  }
102
+ //# sourceMappingURL=teamRoles.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"teamRoles.d.ts","sourceRoot":"","sources":["../teamRoles.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,MAAM,MAAM,gBAAgB,CAAC;AACzC,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC,OAAO,KAAK,OAAO,MAAM,gBAAgB,CAAC;AAG1C;;GA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CAAC,CAAC;IAC/E;;OAEG;IACH,gBAAgB,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;IACxC;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;IAC9B;;OAEG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,sBAAsB,CAAC,EAAE,CAAC,CAAC;CAChF;AAED;;GAEG;AACH,MAAM,WAAW,aAAa;IAC1B;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,gBAAgB,CAAC,EAAE,CAAC,CAAC;IACjE;;OAEG;IACH,eAAe,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,uBAAuB,CAAC,EAAE,CAAC,CAAC;IAC/E;;OAEG;IACH,gBAAgB,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;IACvC;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;IAC7B;;OAEG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,sBAAsB,CAAC,EAAE,CAAC,CAAC;CAChF"}
package/teamRoles.js CHANGED
@@ -1,12 +1,35 @@
1
1
  "use strict";
2
- // *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
2
+ // *** WARNING: this file was generated by pulumi-language-nodejs. ***
3
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
+ };
4
27
  Object.defineProperty(exports, "__esModule", { value: true });
5
28
  exports.TeamRoles = void 0;
6
- const pulumi = require("@pulumi/pulumi");
7
- const utilities = require("./utilities");
29
+ const pulumi = __importStar(require("@pulumi/pulumi"));
30
+ const utilities = __importStar(require("./utilities"));
8
31
  /**
9
- * Team Roles resource
32
+ * Manages organization, workspace, deployment, and DAG roles for an existing team. Astro permissions are hierarchical (organization, workspace, deployment, then DAG). Declare roles at each applicable parent scope as well as nested scopes, not only at the leaf, so Terraform state matches the API.
10
33
  */
11
34
  class TeamRoles extends pulumi.CustomResource {
12
35
  /**
@@ -19,8 +42,10 @@ class TeamRoles extends pulumi.CustomResource {
19
42
  * @param opts Optional settings to control the behavior of the CustomResource.
20
43
  */
21
44
  static get(name, id, state, opts) {
22
- return new TeamRoles(name, state, Object.assign(Object.assign({}, opts), { id: id }));
45
+ return new TeamRoles(name, state, { ...opts, id: id });
23
46
  }
47
+ /** @internal */
48
+ static __pulumiType = 'astronomer:index/teamRoles:TeamRoles';
24
49
  /**
25
50
  * Returns true if the given object is an instance of TeamRoles. This is designed to work even
26
51
  * when multiple copies of the Pulumi SDK have been loaded into the same process.
@@ -36,29 +61,29 @@ class TeamRoles extends pulumi.CustomResource {
36
61
  opts = opts || {};
37
62
  if (opts.id) {
38
63
  const state = argsOrState;
39
- resourceInputs["deploymentRoles"] = state ? state.deploymentRoles : undefined;
40
- resourceInputs["organizationRole"] = state ? state.organizationRole : undefined;
41
- resourceInputs["teamId"] = state ? state.teamId : undefined;
42
- resourceInputs["workspaceRoles"] = state ? state.workspaceRoles : undefined;
64
+ resourceInputs["dagRoles"] = state?.dagRoles;
65
+ resourceInputs["deploymentRoles"] = state?.deploymentRoles;
66
+ resourceInputs["organizationRole"] = state?.organizationRole;
67
+ resourceInputs["teamId"] = state?.teamId;
68
+ resourceInputs["workspaceRoles"] = state?.workspaceRoles;
43
69
  }
44
70
  else {
45
71
  const args = argsOrState;
46
- if ((!args || args.organizationRole === undefined) && !opts.urn) {
72
+ if (args?.organizationRole === undefined && !opts.urn) {
47
73
  throw new Error("Missing required property 'organizationRole'");
48
74
  }
49
- if ((!args || args.teamId === undefined) && !opts.urn) {
75
+ if (args?.teamId === undefined && !opts.urn) {
50
76
  throw new Error("Missing required property 'teamId'");
51
77
  }
52
- resourceInputs["deploymentRoles"] = args ? args.deploymentRoles : undefined;
53
- resourceInputs["organizationRole"] = args ? args.organizationRole : undefined;
54
- resourceInputs["teamId"] = args ? args.teamId : undefined;
55
- resourceInputs["workspaceRoles"] = args ? args.workspaceRoles : undefined;
78
+ resourceInputs["dagRoles"] = args?.dagRoles;
79
+ resourceInputs["deploymentRoles"] = args?.deploymentRoles;
80
+ resourceInputs["organizationRole"] = args?.organizationRole;
81
+ resourceInputs["teamId"] = args?.teamId;
82
+ resourceInputs["workspaceRoles"] = args?.workspaceRoles;
56
83
  }
57
84
  opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
58
85
  super(TeamRoles.__pulumiType, name, resourceInputs, opts);
59
86
  }
60
87
  }
61
88
  exports.TeamRoles = TeamRoles;
62
- /** @internal */
63
- TeamRoles.__pulumiType = 'astronomer:index/teamRoles:TeamRoles';
64
89
  //# sourceMappingURL=teamRoles.js.map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AAK,SAAS,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE;gBACnD,MAAM,IAAI,KAAK,CAAC,8CAA8C,CAAC,CAAC;aACnE;YACD,IAAI,IAAI,EAAE,MAAM,KAAK,SAAS,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE;gBACzC,MAAM,IAAI,KAAK,CAAC,oCAAoC,CAAC,CAAC;aACzD;YACD,cAAc,CAAC,UAAU,CAAC,GAAG,IAAI,EAAE,QAAQ,CAAC;YAC5C,cAAc,CAAC,iBAAiB,CAAC,GAAG,IAAI,EAAE,eAAe,CAAC;YAC1D,cAAc,CAAC,kBAAkB,CAAC,GAAG,IAAI,EAAE,gBAAgB,CAAC;YAC5D,cAAc,CAAC,QAAQ,CAAC,GAAG,IAAI,EAAE,MAAM,CAAC;YACxC,cAAc,CAAC,gBAAgB,CAAC,GAAG,IAAI,EAAE,cAAc,CAAC;SAC3D;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,SAAS,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAC9D,CAAC;;AAnFL,8BAoFC"}
package/types/index.d.ts CHANGED
@@ -1,3 +1,4 @@
1
1
  import * as input from "./input";
2
2
  import * as output from "./output";
3
3
  export { input, output, };
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../types/index.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,KAAK,MAAM,SAAS,CAAC;AACjC,OAAO,KAAK,MAAM,MAAM,UAAU,CAAC;AAEnC,OAAO,EACH,KAAK,EACL,MAAM,GACT,CAAC"}
package/types/index.js CHANGED
@@ -1,11 +1,34 @@
1
1
  "use strict";
2
- // *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
2
+ // *** WARNING: this file was generated by pulumi-language-nodejs. ***
3
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
+ };
4
27
  Object.defineProperty(exports, "__esModule", { value: true });
5
28
  exports.output = exports.input = void 0;
6
29
  // Export sub-modules:
7
- const input = require("./input");
30
+ const input = __importStar(require("./input"));
8
31
  exports.input = input;
9
- const output = require("./output");
32
+ const output = __importStar(require("./output"));
10
33
  exports.output = output;
11
34
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../types/index.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAIjF,sBAAsB;AACtB,iCAAiC;AAI7B,sBAAK;AAHT,mCAAmC;AAI/B,wBAAM"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../types/index.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;;;;;;;;;;;;;;;;;;;;;;;;AAIjF,sBAAsB;AACtB,+CAAiC;AAI7B,sBAAK;AAHT,iDAAmC;AAI/B,wBAAM"}