@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,25 @@
1
+ /**
2
+ * 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.
3
+ */
4
+ export declare const apiBaseUrl: string | undefined;
5
+ /**
6
+ * The Vonage account API key (the 8-character key shown in the Vonage API Dashboard). Falls back to the VONAGE_API_KEY environment variable.
7
+ */
8
+ export declare const apiKey: string | undefined;
9
+ /**
10
+ * The Vonage account API secret. Falls back to the VONAGE_API_SECRET environment variable.
11
+ */
12
+ export declare const apiSecret: string | undefined;
13
+ /**
14
+ * 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.
15
+ */
16
+ export declare const applicationId: string | undefined;
17
+ /**
18
+ * 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.
19
+ */
20
+ export declare const privateKey: string | undefined;
21
+ /**
22
+ * 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.
23
+ */
24
+ export declare const restBaseUrl: string | undefined;
25
+ //# sourceMappingURL=vars.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"vars.d.ts","sourceRoot":"","sources":["../../config/vars.ts"],"names":[],"mappings":"AASA;;GAEG;AACH,MAAM,CAAC,OAAO,CAAC,MAAM,UAAU,EAAE,MAAM,GAAG,SAAS,CAAC;AAQpD;;GAEG;AACH,MAAM,CAAC,OAAO,CAAC,MAAM,MAAM,EAAE,MAAM,GAAG,SAAS,CAAC;AAQhD;;GAEG;AACH,MAAM,CAAC,OAAO,CAAC,MAAM,SAAS,EAAE,MAAM,GAAG,SAAS,CAAC;AAQnD;;GAEG;AACH,MAAM,CAAC,OAAO,CAAC,MAAM,aAAa,EAAE,MAAM,GAAG,SAAS,CAAC;AAQvD;;GAEG;AACH,MAAM,CAAC,OAAO,CAAC,MAAM,UAAU,EAAE,MAAM,GAAG,SAAS,CAAC;AAQpD;;GAEG;AACH,MAAM,CAAC,OAAO,CAAC,MAAM,WAAW,EAAE,MAAM,GAAG,SAAS,CAAC"}
@@ -0,0 +1,67 @@
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
+ const pulumi = __importStar(require("@pulumi/pulumi"));
29
+ const utilities = __importStar(require("../utilities"));
30
+ const __config = new pulumi.Config("vonage");
31
+ Object.defineProperty(exports, "apiBaseUrl", {
32
+ get() {
33
+ return __config.get("apiBaseUrl") ?? utilities.getEnv("VONAGE_API_BASE_URL");
34
+ },
35
+ enumerable: true,
36
+ });
37
+ Object.defineProperty(exports, "apiKey", {
38
+ get() {
39
+ return __config.get("apiKey") ?? utilities.getEnv("VONAGE_API_KEY");
40
+ },
41
+ enumerable: true,
42
+ });
43
+ Object.defineProperty(exports, "apiSecret", {
44
+ get() {
45
+ return __config.get("apiSecret") ?? utilities.getEnv("VONAGE_API_SECRET");
46
+ },
47
+ enumerable: true,
48
+ });
49
+ Object.defineProperty(exports, "applicationId", {
50
+ get() {
51
+ return __config.get("applicationId") ?? utilities.getEnv("VONAGE_APPLICATION_ID");
52
+ },
53
+ enumerable: true,
54
+ });
55
+ Object.defineProperty(exports, "privateKey", {
56
+ get() {
57
+ return __config.get("privateKey") ?? utilities.getEnv("VONAGE_PRIVATE_KEY");
58
+ },
59
+ enumerable: true,
60
+ });
61
+ Object.defineProperty(exports, "restBaseUrl", {
62
+ get() {
63
+ return __config.get("restBaseUrl") ?? utilities.getEnv("VONAGE_REST_BASE_URL");
64
+ },
65
+ enumerable: true,
66
+ });
67
+ //# sourceMappingURL=vars.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"vars.js","sourceRoot":"","sources":["../../config/vars.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;;;;;;;;;;;;;;;;;;;;;;;AAEjF,uDAAyC;AACzC,wDAA0C;AAG1C,MAAM,QAAQ,GAAG,IAAI,MAAM,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC;AAM7C,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,YAAY,EAAE;IACzC,GAAG;QACC,OAAO,QAAQ,CAAC,GAAG,CAAC,YAAY,CAAC,IAAI,SAAS,CAAC,MAAM,CAAC,qBAAqB,CAAC,CAAC;IACjF,CAAC;IACD,UAAU,EAAE,IAAI;CACnB,CAAC,CAAC;AAMH,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,QAAQ,EAAE;IACrC,GAAG;QACC,OAAO,QAAQ,CAAC,GAAG,CAAC,QAAQ,CAAC,IAAI,SAAS,CAAC,MAAM,CAAC,gBAAgB,CAAC,CAAC;IACxE,CAAC;IACD,UAAU,EAAE,IAAI;CACnB,CAAC,CAAC;AAMH,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,WAAW,EAAE;IACxC,GAAG;QACC,OAAO,QAAQ,CAAC,GAAG,CAAC,WAAW,CAAC,IAAI,SAAS,CAAC,MAAM,CAAC,mBAAmB,CAAC,CAAC;IAC9E,CAAC;IACD,UAAU,EAAE,IAAI;CACnB,CAAC,CAAC;AAMH,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,eAAe,EAAE;IAC5C,GAAG;QACC,OAAO,QAAQ,CAAC,GAAG,CAAC,eAAe,CAAC,IAAI,SAAS,CAAC,MAAM,CAAC,uBAAuB,CAAC,CAAC;IACtF,CAAC;IACD,UAAU,EAAE,IAAI;CACnB,CAAC,CAAC;AAMH,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,YAAY,EAAE;IACzC,GAAG;QACC,OAAO,QAAQ,CAAC,GAAG,CAAC,YAAY,CAAC,IAAI,SAAS,CAAC,MAAM,CAAC,oBAAoB,CAAC,CAAC;IAChF,CAAC;IACD,UAAU,EAAE,IAAI;CACnB,CAAC,CAAC;AAMH,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,aAAa,EAAE;IAC1C,GAAG;QACC,OAAO,QAAQ,CAAC,GAAG,CAAC,aAAa,CAAC,IAAI,SAAS,CAAC,MAAM,CAAC,sBAAsB,CAAC,CAAC;IACnF,CAAC;IACD,UAAU,EAAE,IAAI;CACnB,CAAC,CAAC"}
@@ -0,0 +1,58 @@
1
+ import * as pulumi from "@pulumi/pulumi";
2
+ /**
3
+ * Links a Vonage application to a Messenger, Viber Service Message or WhatsApp account (one application per account). The ID is channel/externalId/applicationId. Removing the resource unlinks the application and never deletes the account or the application. Shapes follow the published specification and were not verified against a live account.
4
+ */
5
+ export declare class ExternalAccountApplicationLink extends pulumi.CustomResource {
6
+ /**
7
+ * Get an existing ExternalAccountApplicationLink 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): ExternalAccountApplicationLink;
15
+ /**
16
+ * Returns true if the given object is an instance of ExternalAccountApplicationLink. 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 ExternalAccountApplicationLink;
20
+ /**
21
+ * ID of a Vonage application with the messages capability. An account has at most one. Changing it replaces the link.
22
+ */
23
+ readonly applicationId: pulumi.Output<string>;
24
+ /**
25
+ * The account's channel: messenger, viber_service_msg or whatsapp. Changing it replaces the link.
26
+ */
27
+ readonly channel: pulumi.Output<string>;
28
+ /**
29
+ * The account's external ID: the Facebook Page ID, the Viber Service Message ID or the WhatsApp number. Changing it replaces the link.
30
+ */
31
+ readonly externalId: pulumi.Output<string>;
32
+ /**
33
+ * Create a ExternalAccountApplicationLink 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: ExternalAccountApplicationLinkArgs, opts?: pulumi.CustomResourceOptions);
40
+ }
41
+ /**
42
+ * The set of arguments for constructing a ExternalAccountApplicationLink resource.
43
+ */
44
+ export interface ExternalAccountApplicationLinkArgs {
45
+ /**
46
+ * ID of a Vonage application with the messages capability. An account has at most one. Changing it replaces the link.
47
+ */
48
+ applicationId: pulumi.Input<string>;
49
+ /**
50
+ * The account's channel: messenger, viber_service_msg or whatsapp. Changing it replaces the link.
51
+ */
52
+ channel: pulumi.Input<string>;
53
+ /**
54
+ * The account's external ID: the Facebook Page ID, the Viber Service Message ID or the WhatsApp number. Changing it replaces the link.
55
+ */
56
+ externalId: pulumi.Input<string>;
57
+ }
58
+ //# sourceMappingURL=externalAccountApplicationLink.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"externalAccountApplicationLink.d.ts","sourceRoot":"","sources":["../externalAccountApplicationLink.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,MAAM,MAAM,gBAAgB,CAAC;AAGzC;;GAEG;AACH,qBAAa,8BAA+B,SAAQ,MAAM,CAAC,cAAc;IACrE;;;;;;;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,8BAA8B;IAOjI;;;OAGG;WACW,UAAU,CAAC,GAAG,EAAE,GAAG,GAAG,GAAG,IAAI,8BAA8B;IAOzE;;OAEG;IACH,SAAwB,aAAa,EAAE,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;IAC7D;;OAEG;IACH,SAAwB,OAAO,EAAE,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;IACvD;;OAEG;IACH,SAAwB,UAAU,EAAE,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;IAE1D;;;;;;OAMG;gBACS,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,kCAAkC,EAAE,IAAI,CAAC,EAAE,MAAM,CAAC,qBAAqB;CAwB1G;AAED;;GAEG;AACH,MAAM,WAAW,kCAAkC;IAC/C;;OAEG;IACH,aAAa,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;IACpC;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;IAC9B;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;CACpC"}
@@ -0,0 +1,92 @@
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.ExternalAccountApplicationLink = void 0;
29
+ const pulumi = __importStar(require("@pulumi/pulumi"));
30
+ const utilities = __importStar(require("./utilities"));
31
+ /**
32
+ * Links a Vonage application to a Messenger, Viber Service Message or WhatsApp account (one application per account). The ID is channel/externalId/applicationId. Removing the resource unlinks the application and never deletes the account or the application. Shapes follow the published specification and were not verified against a live account.
33
+ */
34
+ class ExternalAccountApplicationLink extends pulumi.CustomResource {
35
+ /**
36
+ * Get an existing ExternalAccountApplicationLink 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 ExternalAccountApplicationLink(name, undefined, { ...opts, id: id });
45
+ }
46
+ /** @internal */
47
+ static __pulumiType = 'vonage:index:ExternalAccountApplicationLink';
48
+ /**
49
+ * Returns true if the given object is an instance of ExternalAccountApplicationLink. 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'] === ExternalAccountApplicationLink.__pulumiType;
57
+ }
58
+ /**
59
+ * Create a ExternalAccountApplicationLink 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?.applicationId === undefined && !opts.urn) {
70
+ throw new Error("Missing required property 'applicationId'");
71
+ }
72
+ if (args?.channel === undefined && !opts.urn) {
73
+ throw new Error("Missing required property 'channel'");
74
+ }
75
+ if (args?.externalId === undefined && !opts.urn) {
76
+ throw new Error("Missing required property 'externalId'");
77
+ }
78
+ resourceInputs["applicationId"] = args?.applicationId;
79
+ resourceInputs["channel"] = args?.channel;
80
+ resourceInputs["externalId"] = args?.externalId;
81
+ }
82
+ else {
83
+ resourceInputs["applicationId"] = undefined /*out*/;
84
+ resourceInputs["channel"] = undefined /*out*/;
85
+ resourceInputs["externalId"] = undefined /*out*/;
86
+ }
87
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
88
+ super(ExternalAccountApplicationLink.__pulumiType, name, resourceInputs, opts);
89
+ }
90
+ }
91
+ exports.ExternalAccountApplicationLink = ExternalAccountApplicationLink;
92
+ //# sourceMappingURL=externalAccountApplicationLink.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"externalAccountApplicationLink.js","sourceRoot":"","sources":["../externalAccountApplicationLink.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;;;;;;;;;;;;;;;;;;;;;;;;AAEjF,uDAAyC;AACzC,uDAAyC;AAEzC;;GAEG;AACH,MAAa,8BAA+B,SAAQ,MAAM,CAAC,cAAc;IACrE;;;;;;;OAOG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,IAAmC;QAC5F,OAAO,IAAI,8BAA8B,CAAC,IAAI,EAAE,SAAgB,EAAE,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC;IAC3F,CAAC;IAED,gBAAgB;IACT,MAAM,CAAU,YAAY,GAAG,6CAA6C,CAAC;IAEpF;;;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,8BAA8B,CAAC,YAAY,CAAC;IAC/E,CAAC;IAeD;;;;;;OAMG;IACH,YAAY,IAAY,EAAE,IAAwC,EAAE,IAAmC;QACnG,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,CAAC,IAAI,CAAC,EAAE,EAAE;YACV,IAAI,IAAI,EAAE,aAAa,KAAK,SAAS,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE;gBAChD,MAAM,IAAI,KAAK,CAAC,2CAA2C,CAAC,CAAC;aAChE;YACD,IAAI,IAAI,EAAE,OAAO,KAAK,SAAS,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE;gBAC1C,MAAM,IAAI,KAAK,CAAC,qCAAqC,CAAC,CAAC;aAC1D;YACD,IAAI,IAAI,EAAE,UAAU,KAAK,SAAS,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE;gBAC7C,MAAM,IAAI,KAAK,CAAC,wCAAwC,CAAC,CAAC;aAC7D;YACD,cAAc,CAAC,eAAe,CAAC,GAAG,IAAI,EAAE,aAAa,CAAC;YACtD,cAAc,CAAC,SAAS,CAAC,GAAG,IAAI,EAAE,OAAO,CAAC;YAC1C,cAAc,CAAC,YAAY,CAAC,GAAG,IAAI,EAAE,UAAU,CAAC;SACnD;aAAM;YACH,cAAc,CAAC,eAAe,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YACpD,cAAc,CAAC,SAAS,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YAC9C,cAAc,CAAC,YAAY,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;SACpD;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,8BAA8B,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IACnF,CAAC;;AAtEL,wEAuEC"}
@@ -0,0 +1,22 @@
1
+ import * as pulumi from "@pulumi/pulumi";
2
+ /**
3
+ * Read the balance of the provider's Vonage account (GET /account/get-balance).
4
+ */
5
+ export declare function getAccountBalance(args?: GetAccountBalanceArgs, opts?: pulumi.InvokeOptions): Promise<GetAccountBalanceResult>;
6
+ export interface GetAccountBalanceArgs {
7
+ }
8
+ export interface GetAccountBalanceResult {
9
+ /**
10
+ * Whether auto-reload is enabled on the account.
11
+ */
12
+ readonly autoReload: boolean;
13
+ /**
14
+ * Account balance in euros.
15
+ */
16
+ readonly value: number;
17
+ }
18
+ /**
19
+ * Read the balance of the provider's Vonage account (GET /account/get-balance).
20
+ */
21
+ export declare function getAccountBalanceOutput(opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetAccountBalanceResult>;
22
+ //# sourceMappingURL=getAccountBalance.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getAccountBalance.d.ts","sourceRoot":"","sources":["../getAccountBalance.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,MAAM,MAAM,gBAAgB,CAAC;AAGzC;;GAEG;AACH,wBAAgB,iBAAiB,CAAC,IAAI,CAAC,EAAE,qBAAqB,EAAE,IAAI,CAAC,EAAE,MAAM,CAAC,aAAa,GAAG,OAAO,CAAC,uBAAuB,CAAC,CAK7H;AAED,MAAM,WAAW,qBAAqB;CACrC;AAED,MAAM,WAAW,uBAAuB;IACpC;;OAEG;IACH,QAAQ,CAAC,UAAU,EAAE,OAAO,CAAC;IAC7B;;OAEG;IACH,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;CAC1B;AACD;;GAEG;AACH,wBAAgB,uBAAuB,CAAC,IAAI,CAAC,EAAE,MAAM,CAAC,mBAAmB,GAAG,MAAM,CAAC,MAAM,CAAC,uBAAuB,CAAC,CAIjH"}
@@ -0,0 +1,48 @@
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.getAccountBalanceOutput = exports.getAccountBalance = void 0;
29
+ const pulumi = __importStar(require("@pulumi/pulumi"));
30
+ const utilities = __importStar(require("./utilities"));
31
+ /**
32
+ * Read the balance of the provider's Vonage account (GET /account/get-balance).
33
+ */
34
+ function getAccountBalance(args, opts) {
35
+ args = args || {};
36
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
37
+ return pulumi.runtime.invoke("vonage:index:getAccountBalance", {}, opts);
38
+ }
39
+ exports.getAccountBalance = getAccountBalance;
40
+ /**
41
+ * Read the balance of the provider's Vonage account (GET /account/get-balance).
42
+ */
43
+ function getAccountBalanceOutput(opts) {
44
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
45
+ return pulumi.runtime.invokeOutput("vonage:index:getAccountBalance", {}, opts);
46
+ }
47
+ exports.getAccountBalanceOutput = getAccountBalanceOutput;
48
+ //# sourceMappingURL=getAccountBalance.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getAccountBalance.js","sourceRoot":"","sources":["../getAccountBalance.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;;;;;;;;;;;;;;;;;;;;;;;;AAEjF,uDAAyC;AACzC,uDAAyC;AAEzC;;GAEG;AACH,SAAgB,iBAAiB,CAAC,IAA4B,EAAE,IAA2B;IACvF,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,gCAAgC,EAAE,EAC9D,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AALD,8CAKC;AAeD;;GAEG;AACH,SAAgB,uBAAuB,CAAC,IAAiC;IACrE,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,YAAY,CAAC,gCAAgC,EAAE,EACpE,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAJD,0DAIC"}
@@ -0,0 +1,34 @@
1
+ import * as pulumi from "@pulumi/pulumi";
2
+ /**
3
+ * Read the default SMS webhooks and rate limits of the provider's Vonage account. Vonage has no GET for these, so this sends POST /account/settings with no fields, which returns the current values unchanged.
4
+ */
5
+ export declare function getAccountSettings(args?: GetAccountSettingsArgs, opts?: pulumi.InvokeOptions): Promise<GetAccountSettingsResult>;
6
+ export interface GetAccountSettingsArgs {
7
+ }
8
+ export interface GetAccountSettingsResult {
9
+ /**
10
+ * Default SMS delivery receipt webhook URL, empty when none is set.
11
+ */
12
+ readonly drCallBackUrl: string;
13
+ /**
14
+ * Maximum API calls per second.
15
+ */
16
+ readonly maxCallsPerSecond?: number;
17
+ /**
18
+ * Maximum inbound SMS requests per second.
19
+ */
20
+ readonly maxInboundRequest?: number;
21
+ /**
22
+ * Maximum outbound SMS requests per second.
23
+ */
24
+ readonly maxOutboundRequest?: number;
25
+ /**
26
+ * Default inbound SMS webhook URL, empty when none is set.
27
+ */
28
+ readonly moCallBackUrl: string;
29
+ }
30
+ /**
31
+ * Read the default SMS webhooks and rate limits of the provider's Vonage account. Vonage has no GET for these, so this sends POST /account/settings with no fields, which returns the current values unchanged.
32
+ */
33
+ export declare function getAccountSettingsOutput(opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetAccountSettingsResult>;
34
+ //# sourceMappingURL=getAccountSettings.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getAccountSettings.d.ts","sourceRoot":"","sources":["../getAccountSettings.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,MAAM,MAAM,gBAAgB,CAAC;AAGzC;;GAEG;AACH,wBAAgB,kBAAkB,CAAC,IAAI,CAAC,EAAE,sBAAsB,EAAE,IAAI,CAAC,EAAE,MAAM,CAAC,aAAa,GAAG,OAAO,CAAC,wBAAwB,CAAC,CAKhI;AAED,MAAM,WAAW,sBAAsB;CACtC;AAED,MAAM,WAAW,wBAAwB;IACrC;;OAEG;IACH,QAAQ,CAAC,aAAa,EAAE,MAAM,CAAC;IAC/B;;OAEG;IACH,QAAQ,CAAC,iBAAiB,CAAC,EAAE,MAAM,CAAC;IACpC;;OAEG;IACH,QAAQ,CAAC,iBAAiB,CAAC,EAAE,MAAM,CAAC;IACpC;;OAEG;IACH,QAAQ,CAAC,kBAAkB,CAAC,EAAE,MAAM,CAAC;IACrC;;OAEG;IACH,QAAQ,CAAC,aAAa,EAAE,MAAM,CAAC;CAClC;AACD;;GAEG;AACH,wBAAgB,wBAAwB,CAAC,IAAI,CAAC,EAAE,MAAM,CAAC,mBAAmB,GAAG,MAAM,CAAC,MAAM,CAAC,wBAAwB,CAAC,CAInH"}
@@ -0,0 +1,48 @@
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.getAccountSettingsOutput = exports.getAccountSettings = void 0;
29
+ const pulumi = __importStar(require("@pulumi/pulumi"));
30
+ const utilities = __importStar(require("./utilities"));
31
+ /**
32
+ * Read the default SMS webhooks and rate limits of the provider's Vonage account. Vonage has no GET for these, so this sends POST /account/settings with no fields, which returns the current values unchanged.
33
+ */
34
+ function getAccountSettings(args, opts) {
35
+ args = args || {};
36
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
37
+ return pulumi.runtime.invoke("vonage:index:getAccountSettings", {}, opts);
38
+ }
39
+ exports.getAccountSettings = getAccountSettings;
40
+ /**
41
+ * Read the default SMS webhooks and rate limits of the provider's Vonage account. Vonage has no GET for these, so this sends POST /account/settings with no fields, which returns the current values unchanged.
42
+ */
43
+ function getAccountSettingsOutput(opts) {
44
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
45
+ return pulumi.runtime.invokeOutput("vonage:index:getAccountSettings", {}, opts);
46
+ }
47
+ exports.getAccountSettingsOutput = getAccountSettingsOutput;
48
+ //# sourceMappingURL=getAccountSettings.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getAccountSettings.js","sourceRoot":"","sources":["../getAccountSettings.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;;;;;;;;;;;;;;;;;;;;;;;;AAEjF,uDAAyC;AACzC,uDAAyC;AAEzC;;GAEG;AACH,SAAgB,kBAAkB,CAAC,IAA6B,EAAE,IAA2B;IACzF,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,iCAAiC,EAAE,EAC/D,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AALD,gDAKC;AA2BD;;GAEG;AACH,SAAgB,wBAAwB,CAAC,IAAiC;IACtE,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,YAAY,CAAC,iCAAiC,EAAE,EACrE,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAJD,4DAIC"}
@@ -0,0 +1,44 @@
1
+ import * as pulumi from "@pulumi/pulumi";
2
+ /**
3
+ * Look up an API secret's metadata by account and secret ID. Vonage never returns the secret value. Fails if it does not exist.
4
+ */
5
+ export declare function getApiSecret(args: GetApiSecretArgs, opts?: pulumi.InvokeOptions): Promise<GetApiSecretResult>;
6
+ export interface GetApiSecretArgs {
7
+ /**
8
+ * API key of the owning account. Defaults to the provider's account.
9
+ */
10
+ accountKey?: string;
11
+ /**
12
+ * The secret ID.
13
+ */
14
+ secretId: string;
15
+ }
16
+ export interface GetApiSecretResult {
17
+ /**
18
+ * ISO 8601 creation timestamp.
19
+ */
20
+ readonly createdAt: string;
21
+ /**
22
+ * The account API key that owns the secret.
23
+ */
24
+ readonly ownerKey: string;
25
+ /**
26
+ * The secret ID.
27
+ */
28
+ readonly secretId: string;
29
+ }
30
+ /**
31
+ * Look up an API secret's metadata by account and secret ID. Vonage never returns the secret value. Fails if it does not exist.
32
+ */
33
+ export declare function getApiSecretOutput(args: GetApiSecretOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetApiSecretResult>;
34
+ export interface GetApiSecretOutputArgs {
35
+ /**
36
+ * API key of the owning account. Defaults to the provider's account.
37
+ */
38
+ accountKey?: pulumi.Input<string | undefined>;
39
+ /**
40
+ * The secret ID.
41
+ */
42
+ secretId: pulumi.Input<string>;
43
+ }
44
+ //# sourceMappingURL=getApiSecret.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getApiSecret.d.ts","sourceRoot":"","sources":["../getApiSecret.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,MAAM,MAAM,gBAAgB,CAAC;AAGzC;;GAEG;AACH,wBAAgB,YAAY,CAAC,IAAI,EAAE,gBAAgB,EAAE,IAAI,CAAC,EAAE,MAAM,CAAC,aAAa,GAAG,OAAO,CAAC,kBAAkB,CAAC,CAM7G;AAED,MAAM,WAAW,gBAAgB;IAC7B;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,WAAW,kBAAkB;IAC/B;;OAEG;IACH,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;IAC3B;;OAEG;IACH,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;IAC1B;;OAEG;IACH,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;CAC7B;AACD;;GAEG;AACH,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,sBAAsB,EAAE,IAAI,CAAC,EAAE,MAAM,CAAC,mBAAmB,GAAG,MAAM,CAAC,MAAM,CAAC,kBAAkB,CAAC,CAMrI;AAED,MAAM,WAAW,sBAAsB;IACnC;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;IAC9C;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;CAClC"}
@@ -0,0 +1,53 @@
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.getApiSecretOutput = exports.getApiSecret = void 0;
29
+ const pulumi = __importStar(require("@pulumi/pulumi"));
30
+ const utilities = __importStar(require("./utilities"));
31
+ /**
32
+ * Look up an API secret's metadata by account and secret ID. Vonage never returns the secret value. Fails if it does not exist.
33
+ */
34
+ function getApiSecret(args, opts) {
35
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
36
+ return pulumi.runtime.invoke("vonage:index:getApiSecret", {
37
+ "accountKey": args.accountKey,
38
+ "secretId": args.secretId,
39
+ }, opts);
40
+ }
41
+ exports.getApiSecret = getApiSecret;
42
+ /**
43
+ * Look up an API secret's metadata by account and secret ID. Vonage never returns the secret value. Fails if it does not exist.
44
+ */
45
+ function getApiSecretOutput(args, opts) {
46
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
47
+ return pulumi.runtime.invokeOutput("vonage:index:getApiSecret", {
48
+ "accountKey": args.accountKey,
49
+ "secretId": args.secretId,
50
+ }, opts);
51
+ }
52
+ exports.getApiSecretOutput = getApiSecretOutput;
53
+ //# sourceMappingURL=getApiSecret.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getApiSecret.js","sourceRoot":"","sources":["../getApiSecret.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;;;;;;;;;;;;;;;;;;;;;;;;AAEjF,uDAAyC;AACzC,uDAAyC;AAEzC;;GAEG;AACH,SAAgB,YAAY,CAAC,IAAsB,EAAE,IAA2B;IAC5E,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,2BAA2B,EAAE;QACtD,YAAY,EAAE,IAAI,CAAC,UAAU;QAC7B,UAAU,EAAE,IAAI,CAAC,QAAQ;KAC5B,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAND,oCAMC;AA2BD;;GAEG;AACH,SAAgB,kBAAkB,CAAC,IAA4B,EAAE,IAAiC;IAC9F,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,YAAY,CAAC,2BAA2B,EAAE;QAC5D,YAAY,EAAE,IAAI,CAAC,UAAU;QAC7B,UAAU,EAAE,IAAI,CAAC,QAAQ;KAC5B,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAND,gDAMC"}
@@ -0,0 +1,33 @@
1
+ import * as pulumi from "@pulumi/pulumi";
2
+ import * as outputs from "./types/output";
3
+ /**
4
+ * List the API secrets (IDs and creation times) of an account.
5
+ */
6
+ export declare function getApiSecrets(args?: GetApiSecretsArgs, opts?: pulumi.InvokeOptions): Promise<GetApiSecretsResult>;
7
+ export interface GetApiSecretsArgs {
8
+ /**
9
+ * API key of the account. Defaults to the provider's account.
10
+ */
11
+ accountKey?: string;
12
+ }
13
+ export interface GetApiSecretsResult {
14
+ /**
15
+ * The account API key that was listed.
16
+ */
17
+ readonly ownerKey: string;
18
+ /**
19
+ * The account's secrets (at most two).
20
+ */
21
+ readonly secrets: outputs.ApiSecretSummary[];
22
+ }
23
+ /**
24
+ * List the API secrets (IDs and creation times) of an account.
25
+ */
26
+ export declare function getApiSecretsOutput(args?: GetApiSecretsOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetApiSecretsResult>;
27
+ export interface GetApiSecretsOutputArgs {
28
+ /**
29
+ * API key of the account. Defaults to the provider's account.
30
+ */
31
+ accountKey?: pulumi.Input<string | undefined>;
32
+ }
33
+ //# sourceMappingURL=getApiSecrets.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getApiSecrets.d.ts","sourceRoot":"","sources":["../getApiSecrets.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,MAAM,MAAM,gBAAgB,CAAC;AAEzC,OAAO,KAAK,OAAO,MAAM,gBAAgB,CAAC;AAG1C;;GAEG;AACH,wBAAgB,aAAa,CAAC,IAAI,CAAC,EAAE,iBAAiB,EAAE,IAAI,CAAC,EAAE,MAAM,CAAC,aAAa,GAAG,OAAO,CAAC,mBAAmB,CAAC,CAMjH;AAED,MAAM,WAAW,iBAAiB;IAC9B;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;CACvB;AAED,MAAM,WAAW,mBAAmB;IAChC;;OAEG;IACH,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;IAC1B;;OAEG;IACH,QAAQ,CAAC,OAAO,EAAE,OAAO,CAAC,gBAAgB,EAAE,CAAC;CAChD;AACD;;GAEG;AACH,wBAAgB,mBAAmB,CAAC,IAAI,CAAC,EAAE,uBAAuB,EAAE,IAAI,CAAC,EAAE,MAAM,CAAC,mBAAmB,GAAG,MAAM,CAAC,MAAM,CAAC,mBAAmB,CAAC,CAMzI;AAED,MAAM,WAAW,uBAAuB;IACpC;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;CACjD"}
@@ -0,0 +1,53 @@
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.getApiSecretsOutput = exports.getApiSecrets = void 0;
29
+ const pulumi = __importStar(require("@pulumi/pulumi"));
30
+ const utilities = __importStar(require("./utilities"));
31
+ /**
32
+ * List the API secrets (IDs and creation times) of an account.
33
+ */
34
+ function getApiSecrets(args, opts) {
35
+ args = args || {};
36
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
37
+ return pulumi.runtime.invoke("vonage:index:getApiSecrets", {
38
+ "accountKey": args.accountKey,
39
+ }, opts);
40
+ }
41
+ exports.getApiSecrets = getApiSecrets;
42
+ /**
43
+ * List the API secrets (IDs and creation times) of an account.
44
+ */
45
+ function getApiSecretsOutput(args, opts) {
46
+ args = args || {};
47
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
48
+ return pulumi.runtime.invokeOutput("vonage:index:getApiSecrets", {
49
+ "accountKey": args.accountKey,
50
+ }, opts);
51
+ }
52
+ exports.getApiSecretsOutput = getApiSecretsOutput;
53
+ //# sourceMappingURL=getApiSecrets.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getApiSecrets.js","sourceRoot":"","sources":["../getApiSecrets.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;;;;;;;;;;;;;;;;;;;;;;;;AAEjF,uDAAyC;AAGzC,uDAAyC;AAEzC;;GAEG;AACH,SAAgB,aAAa,CAAC,IAAwB,EAAE,IAA2B;IAC/E,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,4BAA4B,EAAE;QACvD,YAAY,EAAE,IAAI,CAAC,UAAU;KAChC,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAND,sCAMC;AAmBD;;GAEG;AACH,SAAgB,mBAAmB,CAAC,IAA8B,EAAE,IAAiC;IACjG,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,4BAA4B,EAAE;QAC7D,YAAY,EAAE,IAAI,CAAC,UAAU;KAChC,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAND,kDAMC"}