@pulumi-labs/vonage 0.0.1-dev → 0.2.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 (223) hide show
  1. package/README.md +1 -0
  2. package/bin/accountSettings.d.ts +62 -0
  3. package/bin/accountSettings.d.ts.map +1 -0
  4. package/bin/accountSettings.js +87 -0
  5. package/bin/accountSettings.js.map +1 -0
  6. package/bin/apiSecret.d.ts +62 -0
  7. package/bin/apiSecret.d.ts.map +1 -0
  8. package/bin/apiSecret.js +92 -0
  9. package/bin/apiSecret.js.map +1 -0
  10. package/bin/application.d.ts +136 -0
  11. package/bin/application.d.ts.map +1 -0
  12. package/bin/application.js +110 -0
  13. package/bin/application.js.map +1 -0
  14. package/bin/config/index.d.ts +2 -0
  15. package/bin/config/index.d.ts.map +1 -0
  16. package/bin/config/index.js +21 -0
  17. package/bin/config/index.js.map +1 -0
  18. package/bin/config/vars.d.ts +25 -0
  19. package/bin/config/vars.d.ts.map +1 -0
  20. package/bin/config/vars.js +67 -0
  21. package/bin/config/vars.js.map +1 -0
  22. package/bin/externalAccountApplicationLink.d.ts +58 -0
  23. package/bin/externalAccountApplicationLink.d.ts.map +1 -0
  24. package/bin/externalAccountApplicationLink.js +92 -0
  25. package/bin/externalAccountApplicationLink.js.map +1 -0
  26. package/bin/getAccountBalance.d.ts +22 -0
  27. package/bin/getAccountBalance.d.ts.map +1 -0
  28. package/bin/getAccountBalance.js +48 -0
  29. package/bin/getAccountBalance.js.map +1 -0
  30. package/bin/getAccountSettings.d.ts +34 -0
  31. package/bin/getAccountSettings.d.ts.map +1 -0
  32. package/bin/getAccountSettings.js +48 -0
  33. package/bin/getAccountSettings.js.map +1 -0
  34. package/bin/getApiSecret.d.ts +44 -0
  35. package/bin/getApiSecret.d.ts.map +1 -0
  36. package/bin/getApiSecret.js +53 -0
  37. package/bin/getApiSecret.js.map +1 -0
  38. package/bin/getApiSecrets.d.ts +33 -0
  39. package/bin/getApiSecrets.d.ts.map +1 -0
  40. package/bin/getApiSecrets.js +53 -0
  41. package/bin/getApiSecrets.js.map +1 -0
  42. package/bin/getApplication.d.ts +81 -0
  43. package/bin/getApplication.d.ts.map +1 -0
  44. package/bin/getApplication.js +55 -0
  45. package/bin/getApplication.js.map +1 -0
  46. package/bin/getApplications.d.ts +29 -0
  47. package/bin/getApplications.d.ts.map +1 -0
  48. package/bin/getApplications.js +53 -0
  49. package/bin/getApplications.js.map +1 -0
  50. package/bin/getAvailableNumbers.d.ts +81 -0
  51. package/bin/getAvailableNumbers.d.ts.map +1 -0
  52. package/bin/getAvailableNumbers.js +63 -0
  53. package/bin/getAvailableNumbers.js.map +1 -0
  54. package/bin/getExternalAccount.d.ts +56 -0
  55. package/bin/getExternalAccount.d.ts.map +1 -0
  56. package/bin/getExternalAccount.js +53 -0
  57. package/bin/getExternalAccount.js.map +1 -0
  58. package/bin/getExternalAccountApplicationLink.d.ts +56 -0
  59. package/bin/getExternalAccountApplicationLink.d.ts.map +1 -0
  60. package/bin/getExternalAccountApplicationLink.js +55 -0
  61. package/bin/getExternalAccountApplicationLink.js.map +1 -0
  62. package/bin/getExternalAccounts.d.ts +29 -0
  63. package/bin/getExternalAccounts.d.ts.map +1 -0
  64. package/bin/getExternalAccounts.js +53 -0
  65. package/bin/getExternalAccounts.js.map +1 -0
  66. package/bin/getMessengerAccount.d.ts +48 -0
  67. package/bin/getMessengerAccount.d.ts.map +1 -0
  68. package/bin/getMessengerAccount.js +51 -0
  69. package/bin/getMessengerAccount.js.map +1 -0
  70. package/bin/getNetworkApplicationProfile.d.ts +77 -0
  71. package/bin/getNetworkApplicationProfile.d.ts.map +1 -0
  72. package/bin/getNetworkApplicationProfile.js +51 -0
  73. package/bin/getNetworkApplicationProfile.js.map +1 -0
  74. package/bin/getNetworkApplicationProfileShare.d.ts +40 -0
  75. package/bin/getNetworkApplicationProfileShare.d.ts.map +1 -0
  76. package/bin/getNetworkApplicationProfileShare.js +53 -0
  77. package/bin/getNetworkApplicationProfileShare.js.map +1 -0
  78. package/bin/getNetworkApplicationProfileShares.d.ts +28 -0
  79. package/bin/getNetworkApplicationProfileShares.d.ts.map +1 -0
  80. package/bin/getNetworkApplicationProfileShares.js +51 -0
  81. package/bin/getNetworkApplicationProfileShares.js.map +1 -0
  82. package/bin/getNetworkApplicationProfiles.d.ts +45 -0
  83. package/bin/getNetworkApplicationProfiles.d.ts.map +1 -0
  84. package/bin/getNetworkApplicationProfiles.js +57 -0
  85. package/bin/getNetworkApplicationProfiles.js.map +1 -0
  86. package/bin/getNetworkBusinessProfile.d.ts +85 -0
  87. package/bin/getNetworkBusinessProfile.d.ts.map +1 -0
  88. package/bin/getNetworkBusinessProfile.js +51 -0
  89. package/bin/getNetworkBusinessProfile.js.map +1 -0
  90. package/bin/getNetworkBusinessProfiles.d.ts +29 -0
  91. package/bin/getNetworkBusinessProfiles.d.ts.map +1 -0
  92. package/bin/getNetworkBusinessProfiles.js +53 -0
  93. package/bin/getNetworkBusinessProfiles.js.map +1 -0
  94. package/bin/getNetworkRegistryCatalogue.d.ts +65 -0
  95. package/bin/getNetworkRegistryCatalogue.d.ts.map +1 -0
  96. package/bin/getNetworkRegistryCatalogue.js +55 -0
  97. package/bin/getNetworkRegistryCatalogue.js.map +1 -0
  98. package/bin/getNetworkTermsAndConditions.d.ts +36 -0
  99. package/bin/getNetworkTermsAndConditions.d.ts.map +1 -0
  100. package/bin/getNetworkTermsAndConditions.js +51 -0
  101. package/bin/getNetworkTermsAndConditions.js.map +1 -0
  102. package/bin/getNumber.d.ts +72 -0
  103. package/bin/getNumber.d.ts.map +1 -0
  104. package/bin/getNumber.js +53 -0
  105. package/bin/getNumber.js.map +1 -0
  106. package/bin/getNumberPool.d.ts +44 -0
  107. package/bin/getNumberPool.d.ts.map +1 -0
  108. package/bin/getNumberPool.js +51 -0
  109. package/bin/getNumberPool.js.map +1 -0
  110. package/bin/getNumberPoolNumber.d.ts +40 -0
  111. package/bin/getNumberPoolNumber.d.ts.map +1 -0
  112. package/bin/getNumberPoolNumber.js +53 -0
  113. package/bin/getNumberPoolNumber.js.map +1 -0
  114. package/bin/getNumberPoolNumbers.d.ts +28 -0
  115. package/bin/getNumberPoolNumbers.d.ts.map +1 -0
  116. package/bin/getNumberPoolNumbers.js +51 -0
  117. package/bin/getNumberPoolNumbers.js.map +1 -0
  118. package/bin/getNumberPools.d.ts +19 -0
  119. package/bin/getNumberPools.d.ts.map +1 -0
  120. package/bin/getNumberPools.js +48 -0
  121. package/bin/getNumberPools.js.map +1 -0
  122. package/bin/getNumbers.d.ts +61 -0
  123. package/bin/getNumbers.d.ts.map +1 -0
  124. package/bin/getNumbers.js +61 -0
  125. package/bin/getNumbers.js.map +1 -0
  126. package/bin/getPricing.d.ts +53 -0
  127. package/bin/getPricing.d.ts.map +1 -0
  128. package/bin/getPricing.js +57 -0
  129. package/bin/getPricing.js.map +1 -0
  130. package/bin/getSubAccount.d.ts +56 -0
  131. package/bin/getSubAccount.d.ts.map +1 -0
  132. package/bin/getSubAccount.js +51 -0
  133. package/bin/getSubAccount.js.map +1 -0
  134. package/bin/getSubAccounts.d.ts +33 -0
  135. package/bin/getSubAccounts.d.ts.map +1 -0
  136. package/bin/getSubAccounts.js +53 -0
  137. package/bin/getSubAccounts.js.map +1 -0
  138. package/bin/getUser.d.ts +59 -0
  139. package/bin/getUser.d.ts.map +1 -0
  140. package/bin/getUser.js +55 -0
  141. package/bin/getUser.js.map +1 -0
  142. package/bin/getUsers.d.ts +29 -0
  143. package/bin/getUsers.d.ts.map +1 -0
  144. package/bin/getUsers.js +53 -0
  145. package/bin/getUsers.js.map +1 -0
  146. package/bin/getVerifyTemplate.d.ts +44 -0
  147. package/bin/getVerifyTemplate.d.ts.map +1 -0
  148. package/bin/getVerifyTemplate.js +55 -0
  149. package/bin/getVerifyTemplate.js.map +1 -0
  150. package/bin/getVerifyTemplateFragment.d.ts +76 -0
  151. package/bin/getVerifyTemplateFragment.d.ts.map +1 -0
  152. package/bin/getVerifyTemplateFragment.js +57 -0
  153. package/bin/getVerifyTemplateFragment.js.map +1 -0
  154. package/bin/index.d.ts +148 -0
  155. package/bin/index.d.ts.map +1 -0
  156. package/bin/index.js +214 -0
  157. package/bin/index.js.map +1 -0
  158. package/bin/messengerAccount.d.ts +66 -0
  159. package/bin/messengerAccount.d.ts.map +1 -0
  160. package/bin/messengerAccount.js +95 -0
  161. package/bin/messengerAccount.js.map +1 -0
  162. package/bin/networkApplicationProfile.d.ts +120 -0
  163. package/bin/networkApplicationProfile.d.ts.map +1 -0
  164. package/bin/networkApplicationProfile.js +118 -0
  165. package/bin/networkApplicationProfile.js.map +1 -0
  166. package/bin/networkApplicationProfileShare.d.ts +50 -0
  167. package/bin/networkApplicationProfileShare.d.ts.map +1 -0
  168. package/bin/networkApplicationProfileShare.js +87 -0
  169. package/bin/networkApplicationProfileShare.js.map +1 -0
  170. package/bin/networkBusinessProfile.d.ts +200 -0
  171. package/bin/networkBusinessProfile.d.ts.map +1 -0
  172. package/bin/networkBusinessProfile.js +150 -0
  173. package/bin/networkBusinessProfile.js.map +1 -0
  174. package/bin/number.d.ts +130 -0
  175. package/bin/number.d.ts.map +1 -0
  176. package/bin/number.js +121 -0
  177. package/bin/number.js.map +1 -0
  178. package/bin/numberPool.d.ts +70 -0
  179. package/bin/numberPool.d.ts.map +1 -0
  180. package/bin/numberPool.js +93 -0
  181. package/bin/numberPool.js.map +1 -0
  182. package/bin/numberPoolNumber.d.ts +50 -0
  183. package/bin/numberPoolNumber.d.ts.map +1 -0
  184. package/bin/numberPoolNumber.js +87 -0
  185. package/bin/numberPoolNumber.js.map +1 -0
  186. package/bin/package.json +38 -0
  187. package/bin/provider.d.ts +70 -0
  188. package/bin/provider.d.ts.map +1 -0
  189. package/bin/provider.js +69 -0
  190. package/bin/provider.js.map +1 -0
  191. package/bin/subAccount.d.ts +90 -0
  192. package/bin/subAccount.d.ts.map +1 -0
  193. package/bin/subAccount.js +100 -0
  194. package/bin/subAccount.js.map +1 -0
  195. package/bin/types/index.d.ts +4 -0
  196. package/bin/types/index.d.ts.map +1 -0
  197. package/bin/types/index.js +34 -0
  198. package/bin/types/index.js.map +1 -0
  199. package/bin/types/input.d.ts +347 -0
  200. package/bin/types/input.d.ts.map +1 -0
  201. package/bin/types/input.js +5 -0
  202. package/bin/types/input.js.map +1 -0
  203. package/bin/types/output.d.ts +790 -0
  204. package/bin/types/output.d.ts.map +1 -0
  205. package/bin/types/output.js +5 -0
  206. package/bin/types/output.js.map +1 -0
  207. package/bin/user.d.ts +80 -0
  208. package/bin/user.d.ts.map +1 -0
  209. package/bin/user.js +87 -0
  210. package/bin/user.js.map +1 -0
  211. package/bin/utilities.d.ts +5 -0
  212. package/bin/utilities.d.ts.map +1 -0
  213. package/bin/utilities.js +114 -0
  214. package/bin/utilities.js.map +1 -0
  215. package/bin/verifyTemplate.d.ts +54 -0
  216. package/bin/verifyTemplate.d.ts.map +1 -0
  217. package/bin/verifyTemplate.js +86 -0
  218. package/bin/verifyTemplate.js.map +1 -0
  219. package/bin/verifyTemplateFragment.d.ts +78 -0
  220. package/bin/verifyTemplateFragment.d.ts.map +1 -0
  221. package/bin/verifyTemplateFragment.js +105 -0
  222. package/bin/verifyTemplateFragment.js.map +1 -0
  223. package/package.json +38 -1
@@ -0,0 +1 @@
1
+ {"version":3,"file":"numberPoolNumber.d.ts","sourceRoot":"","sources":["../numberPoolNumber.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,MAAM,MAAM,gBAAgB,CAAC;AAGzC;;GAEG;AACH,qBAAa,gBAAiB,SAAQ,MAAM,CAAC,cAAc;IACvD;;;;;;;OAOG;WACW,GAAG,CAAC,IAAI,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,EAAE,CAAC,EAAE,IAAI,CAAC,EAAE,MAAM,CAAC,qBAAqB,GAAG,gBAAgB;IAOnH;;;OAGG;WACW,UAAU,CAAC,GAAG,EAAE,GAAG,GAAG,GAAG,IAAI,gBAAgB;IAO3D;;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,oBAAoB,EAAE,IAAI,CAAC,EAAE,MAAM,CAAC,qBAAqB;CAmB5F;AAED;;GAEG;AACH,MAAM,WAAW,oBAAoB;IACjC;;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,87 @@
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.NumberPoolNumber = void 0;
29
+ const pulumi = __importStar(require("@pulumi/pulumi"));
30
+ const utilities = __importStar(require("./utilities"));
31
+ /**
32
+ * Membership of one owned number in a Vonage number pool. The ID is poolId/number. Removing the resource removes the number from the pool and never releases the number itself.
33
+ */
34
+ class NumberPoolNumber extends pulumi.CustomResource {
35
+ /**
36
+ * Get an existing NumberPoolNumber resource's state with the given name, ID, and optional extra
37
+ * properties used to qualify the lookup.
38
+ *
39
+ * @param name The _unique_ name of the resulting resource.
40
+ * @param id The _unique_ provider ID of the resource to lookup.
41
+ * @param opts Optional settings to control the behavior of the CustomResource.
42
+ */
43
+ static get(name, id, opts) {
44
+ return new NumberPoolNumber(name, undefined, { ...opts, id: id });
45
+ }
46
+ /** @internal */
47
+ static __pulumiType = 'vonage:index:NumberPoolNumber';
48
+ /**
49
+ * Returns true if the given object is an instance of NumberPoolNumber. This is designed to work even
50
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
51
+ */
52
+ static isInstance(obj) {
53
+ if (obj === undefined || obj === null) {
54
+ return false;
55
+ }
56
+ return obj['__pulumiType'] === NumberPoolNumber.__pulumiType;
57
+ }
58
+ /**
59
+ * Create a NumberPoolNumber resource with the given unique name, arguments, and options.
60
+ *
61
+ * @param name The _unique_ name of the resource.
62
+ * @param args The arguments to use to populate this resource's properties.
63
+ * @param opts A bag of options that control this resource's behavior.
64
+ */
65
+ constructor(name, args, opts) {
66
+ let resourceInputs = {};
67
+ opts = opts || {};
68
+ if (!opts.id) {
69
+ if (args?.number === undefined && !opts.urn) {
70
+ throw new Error("Missing required property 'number'");
71
+ }
72
+ if (args?.poolId === undefined && !opts.urn) {
73
+ throw new Error("Missing required property 'poolId'");
74
+ }
75
+ resourceInputs["number"] = args?.number;
76
+ resourceInputs["poolId"] = args?.poolId;
77
+ }
78
+ else {
79
+ resourceInputs["number"] = undefined /*out*/;
80
+ resourceInputs["poolId"] = undefined /*out*/;
81
+ }
82
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
83
+ super(NumberPoolNumber.__pulumiType, name, resourceInputs, opts);
84
+ }
85
+ }
86
+ exports.NumberPoolNumber = NumberPoolNumber;
87
+ //# sourceMappingURL=numberPoolNumber.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"numberPoolNumber.js","sourceRoot":"","sources":["../numberPoolNumber.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;;;;;;;;;;;;;;;;;;;;;;;;AAEjF,uDAAyC;AACzC,uDAAyC;AAEzC;;GAEG;AACH,MAAa,gBAAiB,SAAQ,MAAM,CAAC,cAAc;IACvD;;;;;;;OAOG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,IAAmC;QAC5F,OAAO,IAAI,gBAAgB,CAAC,IAAI,EAAE,SAAgB,EAAE,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC;IAC7E,CAAC;IAED,gBAAgB;IACT,MAAM,CAAU,YAAY,GAAG,+BAA+B,CAAC;IAEtE;;;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,gBAAgB,CAAC,YAAY,CAAC;IACjE,CAAC;IAWD;;;;;;OAMG;IACH,YAAY,IAAY,EAAE,IAA0B,EAAE,IAAmC;QACrF,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,CAAC,IAAI,CAAC,EAAE,EAAE;YACV,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;aAAM;YACH,cAAc,CAAC,QAAQ,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YAC7C,cAAc,CAAC,QAAQ,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;SAChD;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,gBAAgB,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IACrE,CAAC;;AA7DL,4CA8DC"}
@@ -0,0 +1,38 @@
1
+ {
2
+ "name": "@pulumi-labs/vonage",
3
+ "version": "0.2.0",
4
+ "description": "Experimental: manage Vonage (formerly Nexmo) applications, numbers, subaccounts, API secrets, Verify v2 templates and Network Registry business profiles as infrastructure with Pulumi.",
5
+ "keywords": [
6
+ "pulumi",
7
+ "vonage",
8
+ "nexmo",
9
+ "communications",
10
+ "sms",
11
+ "voice",
12
+ "category/network"
13
+ ],
14
+ "homepage": "https://developer.vonage.com",
15
+ "repository": "https://github.com/pulumi-labs/pulumi-vonage",
16
+ "license": "Apache-2.0",
17
+ "scripts": {
18
+ "build": "tsc && cp package.json bin/"
19
+ },
20
+ "dependencies": {
21
+ "@pulumi/pulumi": "^3.142.0"
22
+ },
23
+ "devDependencies": {
24
+ "@types/node": "^20",
25
+ "typescript": "^4.7.0"
26
+ },
27
+ "pulumi": {
28
+ "resource": true,
29
+ "name": "vonage",
30
+ "version": "0.2.0",
31
+ "server": "github://api.github.com/pulumi-labs/pulumi-vonage"
32
+ },
33
+ "main": "bin/index.js",
34
+ "types": "bin/index.d.ts",
35
+ "files": [
36
+ "bin/"
37
+ ]
38
+ }
@@ -0,0 +1,70 @@
1
+ import * as pulumi from "@pulumi/pulumi";
2
+ export declare class Provider extends pulumi.ProviderResource {
3
+ /**
4
+ * Returns true if the given object is an instance of Provider. This is designed to work even
5
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
6
+ */
7
+ static isInstance(obj: any): obj is Provider;
8
+ /**
9
+ * Override for the Vonage API host (default https://api.nexmo.com). Intended for testing against a mock server. Falls back to VONAGE_API_BASE_URL.
10
+ */
11
+ readonly apiBaseUrl: pulumi.Output<string | undefined>;
12
+ /**
13
+ * The Vonage account API key (the 8-character key shown in the Vonage API Dashboard). Falls back to the VONAGE_API_KEY environment variable.
14
+ */
15
+ readonly apiKey: pulumi.Output<string | undefined>;
16
+ /**
17
+ * The Vonage account API secret. Falls back to the VONAGE_API_SECRET environment variable.
18
+ */
19
+ readonly apiSecret: pulumi.Output<string | undefined>;
20
+ /**
21
+ * Vonage application ID used to sign the JWT for the Users API (the User resource and the getUser and getUsers functions). Users belong to this application. Falls back to VONAGE_APPLICATION_ID.
22
+ */
23
+ readonly applicationId: pulumi.Output<string | undefined>;
24
+ /**
25
+ * PEM private key of the application named by applicationId (PKCS#8 'BEGIN PRIVATE KEY' as downloaded from the dashboard, or PKCS#1). Newlines flattened to a literal backslash-n are accepted. Falls back to VONAGE_PRIVATE_KEY.
26
+ */
27
+ readonly privateKey: pulumi.Output<string | undefined>;
28
+ /**
29
+ * Override for the Vonage REST host used by the Numbers API (default https://rest.nexmo.com). Intended for testing against a mock server. Falls back to VONAGE_REST_BASE_URL.
30
+ */
31
+ readonly restBaseUrl: pulumi.Output<string | undefined>;
32
+ /**
33
+ * Create a Provider resource with the given unique name, arguments, and options.
34
+ *
35
+ * @param name The _unique_ name of the resource.
36
+ * @param args The arguments to use to populate this resource's properties.
37
+ * @param opts A bag of options that control this resource's behavior.
38
+ */
39
+ constructor(name: string, args?: ProviderArgs, opts?: pulumi.ResourceOptions);
40
+ }
41
+ /**
42
+ * The set of arguments for constructing a Provider resource.
43
+ */
44
+ export interface ProviderArgs {
45
+ /**
46
+ * Override for the Vonage API host (default https://api.nexmo.com). Intended for testing against a mock server. Falls back to VONAGE_API_BASE_URL.
47
+ */
48
+ apiBaseUrl?: pulumi.Input<string | undefined>;
49
+ /**
50
+ * The Vonage account API key (the 8-character key shown in the Vonage API Dashboard). Falls back to the VONAGE_API_KEY environment variable.
51
+ */
52
+ apiKey?: pulumi.Input<string | undefined>;
53
+ /**
54
+ * The Vonage account API secret. Falls back to the VONAGE_API_SECRET environment variable.
55
+ */
56
+ apiSecret?: pulumi.Input<string | undefined>;
57
+ /**
58
+ * Vonage application ID used to sign the JWT for the Users API (the User resource and the getUser and getUsers functions). Users belong to this application. Falls back to VONAGE_APPLICATION_ID.
59
+ */
60
+ applicationId?: pulumi.Input<string | undefined>;
61
+ /**
62
+ * PEM private key of the application named by applicationId (PKCS#8 'BEGIN PRIVATE KEY' as downloaded from the dashboard, or PKCS#1). Newlines flattened to a literal backslash-n are accepted. Falls back to VONAGE_PRIVATE_KEY.
63
+ */
64
+ privateKey?: pulumi.Input<string | undefined>;
65
+ /**
66
+ * Override for the Vonage REST host used by the Numbers API (default https://rest.nexmo.com). Intended for testing against a mock server. Falls back to VONAGE_REST_BASE_URL.
67
+ */
68
+ restBaseUrl?: pulumi.Input<string | undefined>;
69
+ }
70
+ //# sourceMappingURL=provider.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"provider.d.ts","sourceRoot":"","sources":["../provider.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,MAAM,MAAM,gBAAgB,CAAC;AAGzC,qBAAa,QAAS,SAAQ,MAAM,CAAC,gBAAgB;IAIjD;;;OAGG;WACW,UAAU,CAAC,GAAG,EAAE,GAAG,GAAG,GAAG,IAAI,QAAQ;IAOnD;;OAEG;IACH,SAAwB,UAAU,EAAE,MAAM,CAAC,MAAM,CA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ict";
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.Provider = void 0;
29
+ const pulumi = __importStar(require("@pulumi/pulumi"));
30
+ const utilities = __importStar(require("./utilities"));
31
+ class Provider extends pulumi.ProviderResource {
32
+ /** @internal */
33
+ static __pulumiType = 'vonage';
34
+ /**
35
+ * Returns true if the given object is an instance of Provider. This is designed to work even
36
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
37
+ */
38
+ static isInstance(obj) {
39
+ if (obj === undefined || obj === null) {
40
+ return false;
41
+ }
42
+ return obj['__pulumiType'] === "pulumi:providers:" + Provider.__pulumiType;
43
+ }
44
+ /**
45
+ * Create a Provider resource with the given unique name, arguments, and options.
46
+ *
47
+ * @param name The _unique_ name of the resource.
48
+ * @param args The arguments to use to populate this resource's properties.
49
+ * @param opts A bag of options that control this resource's behavior.
50
+ */
51
+ constructor(name, args, opts) {
52
+ let resourceInputs = {};
53
+ opts = opts || {};
54
+ {
55
+ resourceInputs["apiBaseUrl"] = (args?.apiBaseUrl) ?? utilities.getEnv("VONAGE_API_BASE_URL");
56
+ resourceInputs["apiKey"] = (args?.apiKey) ?? utilities.getEnv("VONAGE_API_KEY");
57
+ resourceInputs["apiSecret"] = (args?.apiSecret ? pulumi.secret(args.apiSecret) : undefined) ?? utilities.getEnv("VONAGE_API_SECRET");
58
+ resourceInputs["applicationId"] = (args?.applicationId) ?? utilities.getEnv("VONAGE_APPLICATION_ID");
59
+ resourceInputs["privateKey"] = (args?.privateKey ? pulumi.secret(args.privateKey) : undefined) ?? utilities.getEnv("VONAGE_PRIVATE_KEY");
60
+ resourceInputs["restBaseUrl"] = (args?.restBaseUrl) ?? utilities.getEnv("VONAGE_REST_BASE_URL");
61
+ }
62
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
63
+ const secretOpts = { additionalSecretOutputs: ["apiSecret", "privateKey"] };
64
+ opts = pulumi.mergeOptions(opts, secretOpts);
65
+ super(Provider.__pulumiType, name, resourceInputs, opts);
66
+ }
67
+ }
68
+ exports.Provider = Provider;
69
+ //# sourceMappingURL=provider.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"provider.js","sourceRoot":"","sources":["../provider.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;;;;;;;;;;;;;;;;;;;;;;;;AAEjF,uDAAyC;AACzC,uDAAyC;AAEzC,MAAa,QAAS,SAAQ,MAAM,CAAC,gBAAgB;IACjD,gBAAgB;IACT,MAAM,CAAU,YAAY,GAAG,QAAQ,CAAC;IAE/C;;;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,mBA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,EAAE,YAAY,CAAC,EAAE,CAAC;QAC5E,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,IAAI,EAAE,UAAU,CAAC,CAAC;QAC7C,KAAK,CAAC,QAAQ,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAC7D,CAAC;;AA9DL,4BA+DC"}
@@ -0,0 +1,90 @@
1
+ import * as pulumi from "@pulumi/pulumi";
2
+ /**
3
+ * A Vonage subaccount under the primary account. Subaccounts cannot be deleted through the API, only suspended (see suspendOnDelete). Requires primary account credentials.
4
+ */
5
+ export declare class SubAccount extends pulumi.CustomResource {
6
+ /**
7
+ * Get an existing SubAccount resource's state with the given name, ID, and optional extra
8
+ * properties used to qualify the lookup.
9
+ *
10
+ * @param name The _unique_ name of the resulting resource.
11
+ * @param id The _unique_ provider ID of the resource to lookup.
12
+ * @param opts Optional settings to control the behavior of the CustomResource.
13
+ */
14
+ static get(name: string, id: pulumi.Input<pulumi.ID>, opts?: pulumi.CustomResourceOptions): SubAccount;
15
+ /**
16
+ * Returns true if the given object is an instance of SubAccount. This is designed to work even
17
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
18
+ */
19
+ static isInstance(obj: any): obj is SubAccount;
20
+ /**
21
+ * The subaccount API key (also the resource ID).
22
+ */
23
+ readonly apiKey: pulumi.Output<string>;
24
+ /**
25
+ * ISO 8601 creation timestamp.
26
+ */
27
+ readonly createdAt: pulumi.Output<string>;
28
+ /**
29
+ * The subaccount API secret as returned by Vonage at creation. Stored as a secret.
30
+ */
31
+ readonly generatedSecret: pulumi.Output<string | undefined>;
32
+ /**
33
+ * Subaccount name (1-80 characters).
34
+ */
35
+ readonly name: pulumi.Output<string>;
36
+ /**
37
+ * API key of the primary account that owns this subaccount.
38
+ */
39
+ readonly primaryAccountApiKey: pulumi.Output<string>;
40
+ /**
41
+ * API secret for the subaccount, set at creation only (8-25 characters with at least one lowercase letter, one uppercase letter and one digit). When omitted Vonage generates one, exposed as the generatedSecret output. Create-only: the Vonage API cannot change it on an existing subaccount, so later changes are ignored (no diff, no update); manage rotation with the ApiSecret resource.
42
+ */
43
+ readonly secret: pulumi.Output<string | undefined>;
44
+ /**
45
+ * Vonage cannot delete subaccounts. When true, destroying this resource suspends the subaccount; when false or unset it is only removed from Pulumi state and stays active.
46
+ */
47
+ readonly suspendOnDelete: pulumi.Output<boolean | undefined>;
48
+ /**
49
+ * Whether the subaccount is suspended.
50
+ */
51
+ readonly suspended: pulumi.Output<boolean | undefined>;
52
+ /**
53
+ * Whether the subaccount draws on the primary account balance (server default true).
54
+ */
55
+ readonly usePrimaryAccountBalance: pulumi.Output<boolean | undefined>;
56
+ /**
57
+ * Create a SubAccount resource with the given unique name, arguments, and options.
58
+ *
59
+ * @param name The _unique_ name of the resource.
60
+ * @param args The arguments to use to populate this resource's properties.
61
+ * @param opts A bag of options that control this resource's behavior.
62
+ */
63
+ constructor(name: string, args: SubAccountArgs, opts?: pulumi.CustomResourceOptions);
64
+ }
65
+ /**
66
+ * The set of arguments for constructing a SubAccount resource.
67
+ */
68
+ export interface SubAccountArgs {
69
+ /**
70
+ * Subaccount name (1-80 characters).
71
+ */
72
+ name: pulumi.Input<string>;
73
+ /**
74
+ * API secret for the subaccount, set at creation only (8-25 characters with at least one lowercase letter, one uppercase letter and one digit). When omitted Vonage generates one, exposed as the generatedSecret output. Create-only: the Vonage API cannot change it on an existing subaccount, so later changes are ignored (no diff, no update); manage rotation with the ApiSecret resource.
75
+ */
76
+ secret?: pulumi.Input<string | undefined>;
77
+ /**
78
+ * Vonage cannot delete subaccounts. When true, destroying this resource suspends the subaccount; when false or unset it is only removed from Pulumi state and stays active.
79
+ */
80
+ suspendOnDelete?: pulumi.Input<boolean | undefined>;
81
+ /**
82
+ * Whether the subaccount is suspended.
83
+ */
84
+ suspended?: pulumi.Input<boolean | undefined>;
85
+ /**
86
+ * Whether the subaccount draws on the primary account balance (server default true).
87
+ */
88
+ usePrimaryAccountBalance?: pulumi.Input<bo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,MAAM,CAAC,OAAO,GAAG,SAAS,CAAC,CAAC;IAErF;;;;;;OAMG;gBACS,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,EAAE,MAAM,CAAC,qBAAqB;CAgCtF;AAED;;GAEG;AACH,MAAM,WAAW,cAAc;IAC3B;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;IAC3B;;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,wBAAwB,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,OAAO,GAAG,SAAS,CAAC,CAAC;CAChE"}
@@ -0,0 +1,100 @@
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.SubAccount = void 0;
29
+ const pulumi = __importStar(require("@pulumi/pulumi"));
30
+ const utilities = __importStar(require("./utilities"));
31
+ /**
32
+ * A Vonage subaccount under the primary account. Subaccounts cannot be deleted through the API, only suspended (see suspendOnDelete). Requires primary account credentials.
33
+ */
34
+ class SubAccount extends pulumi.CustomResource {
35
+ /**
36
+ * Get an existing SubAccount resource's state with the given name, ID, and optional extra
37
+ * properties used to qualify the lookup.
38
+ *
39
+ * @param name The _unique_ name of the resulting resource.
40
+ * @param id The _unique_ provider ID of the resource to lookup.
41
+ * @param opts Optional settings to control the behavior of the CustomResource.
42
+ */
43
+ static get(name, id, opts) {
44
+ return new SubAccount(name, undefined, { ...opts, id: id });
45
+ }
46
+ /** @internal */
47
+ static __pulumiType = 'vonage:index:SubAccount';
48
+ /**
49
+ * Returns true if the given object is an instance of SubAccount. This is designed to work even
50
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
51
+ */
52
+ static isInstance(obj) {
53
+ if (obj === undefined || obj === null) {
54
+ return false;
55
+ }
56
+ return obj['__pulumiType'] === SubAccount.__pulumiType;
57
+ }
58
+ /**
59
+ * Create a SubAccount resource with the given unique name, arguments, and options.
60
+ *
61
+ * @param name The _unique_ name of the resource.
62
+ * @param args The arguments to use to populate this resource's properties.
63
+ * @param opts A bag of options that control this resource's behavior.
64
+ */
65
+ constructor(name, args, opts) {
66
+ let resourceInputs = {};
67
+ opts = opts || {};
68
+ if (!opts.id) {
69
+ if (args?.name === undefined && !opts.urn) {
70
+ throw new Error("Missing required property 'name'");
71
+ }
72
+ resourceInputs["name"] = args?.name;
73
+ resourceInputs["secret"] = args?.secret ? pulumi.secret(args.secret) : undefined;
74
+ resourceInputs["suspendOnDelete"] = args?.suspendOnDelete;
75
+ resourceInputs["suspended"] = args?.suspended;
76
+ resourceInputs["usePrimaryAccountBalance"] = args?.usePrimaryAccountBalance;
77
+ resourceInputs["apiKey"] = undefined /*out*/;
78
+ resourceInputs["createdAt"] = undefined /*out*/;
79
+ resourceInputs["generatedSecret"] = undefined /*out*/;
80
+ resourceInputs["primaryAccountApiKey"] = undefined /*out*/;
81
+ }
82
+ else {
83
+ resourceInputs["apiKey"] = undefined /*out*/;
84
+ resourceInputs["createdAt"] = undefined /*out*/;
85
+ resourceInputs["generatedSecret"] = undefined /*out*/;
86
+ resourceInputs["name"] = undefined /*out*/;
87
+ resourceInputs["primaryAccountApiKey"] = undefined /*out*/;
88
+ resourceInputs["secret"] = undefined /*out*/;
89
+ resourceInputs["suspendOnDelete"] = undefined /*out*/;
90
+ resourceInputs["suspended"] = undefined /*out*/;
91
+ resourceInputs["usePrimaryAccountBalance"] = undefined /*out*/;
92
+ }
93
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
94
+ const secretOpts = { additionalSecretOutputs: ["generatedSecret", "secret"] };
95
+ opts = pulumi.mergeOptions(opts, secretOpts);
96
+ super(SubAccount.__pulumiType, name, resourceInputs, opts);
97
+ }
98
+ }
99
+ exports.SubAccount = SubAccount;
100
+ //# sourceMappingURL=subAccount.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"subAccount.js","sourceRoot":"","sources":["../subAccount.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;;;;;;;;;;;;;;;;;;;;;;;;AAEjF,uDAAyC;AACzC,uDAAyC;AAEzC;;GAEG;AACH,MAAa,UAAW,SAAQ,MAAM,CAAC,cAAc;IACjD;;;;;;;OAOG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,IAAmC;QAC5F,OAAO,IAAI,UAAU,CAAC,IAAI,EAAE,SAAgB,EAAE,EAAE,GAAG,IAAI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O,CAAC;YACtD,cAAc,CAAC,sBAAsB,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;SAC9D;aAAM;YACH,cAAc,CAAC,QAAQ,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YAC7C,cAAc,CAAC,WAAW,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YAChD,cAAc,CAAC,iBAAiB,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YACtD,cAAc,CAAC,MAAM,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YAC3C,cAAc,CAAC,sBAAsB,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YAC3D,cAAc,CAAC,QAAQ,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YAC7C,cAAc,CAAC,iBAAiB,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YACtD,cAAc,CAAC,WAAW,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YAChD,cAAc,CAAC,0BAA0B,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;SAClE;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,MAAM,UAAU,GAAG,EAAE,uBAAuB,EAAE,CAAC,iBAAiB,EAAE,QAAQ,CAAC,EAAE,CAAC;QAC9E,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,IAAI,EAAE,UAAU,CAAC,CAAC;QAC7C,KAAK,CAAC,UAAU,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAC/D,CAAC;;AAtGL,gCAuGC"}
@@ -0,0 +1,4 @@
1
+ import * as input from "./input";
2
+ import * as output from "./output";
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"}
@@ -0,0 +1,34 @@
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.output = exports.input = void 0;
29
+ // Export sub-modules:
30
+ const input = __importStar(require("./input"));
31
+ exports.input = input;
32
+ const output = __importStar(require("./output"));
33
+ exports.output = output;
34
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
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"}