@pulumi-labs/vonage 0.1.0 → 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 (132) hide show
  1. package/README.md +1 -1
  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/config/vars.d.ts +2 -2
  7. package/bin/externalAccountApplicationLink.d.ts +58 -0
  8. package/bin/externalAccountApplicationLink.d.ts.map +1 -0
  9. package/bin/externalAccountApplicationLink.js +92 -0
  10. package/bin/externalAccountApplicationLink.js.map +1 -0
  11. package/bin/getAccountSettings.d.ts +34 -0
  12. package/bin/getAccountSettings.d.ts.map +1 -0
  13. package/bin/getAccountSettings.js +48 -0
  14. package/bin/getAccountSettings.js.map +1 -0
  15. package/bin/getApplication.d.ts +33 -0
  16. package/bin/getApplication.d.ts.map +1 -1
  17. package/bin/getApplication.js.map +1 -1
  18. package/bin/getExternalAccount.d.ts +56 -0
  19. package/bin/getExternalAccount.d.ts.map +1 -0
  20. package/bin/getExternalAccount.js +53 -0
  21. package/bin/getExternalAccount.js.map +1 -0
  22. package/bin/getExternalAccountApplicationLink.d.ts +56 -0
  23. package/bin/getExternalAccountApplicationLink.d.ts.map +1 -0
  24. package/bin/getExternalAccountApplicationLink.js +55 -0
  25. package/bin/getExternalAccountApplicationLink.js.map +1 -0
  26. package/bin/getExternalAccounts.d.ts +29 -0
  27. package/bin/getExternalAccounts.d.ts.map +1 -0
  28. package/bin/getExternalAccounts.js +53 -0
  29. package/bin/getExternalAccounts.js.map +1 -0
  30. package/bin/getMessengerAccount.d.ts +48 -0
  31. package/bin/getMessengerAccount.d.ts.map +1 -0
  32. package/bin/getMessengerAccount.js +51 -0
  33. package/bin/getMessengerAccount.js.map +1 -0
  34. package/bin/getNetworkApplicationProfile.d.ts +77 -0
  35. package/bin/getNetworkApplicationProfile.d.ts.map +1 -0
  36. package/bin/getNetworkApplicationProfile.js +51 -0
  37. package/bin/getNetworkApplicationProfile.js.map +1 -0
  38. package/bin/getNetworkApplicationProfileShare.d.ts +40 -0
  39. package/bin/getNetworkApplicationProfileShare.d.ts.map +1 -0
  40. package/bin/getNetworkApplicationProfileShare.js +53 -0
  41. package/bin/getNetworkApplicationProfileShare.js.map +1 -0
  42. package/bin/getNetworkApplicationProfileShares.d.ts +28 -0
  43. package/bin/getNetworkApplicationProfileShares.d.ts.map +1 -0
  44. package/bin/getNetworkApplicationProfileShares.js +51 -0
  45. package/bin/getNetworkApplicationProfileShares.js.map +1 -0
  46. package/bin/getNetworkApplicationProfiles.d.ts +45 -0
  47. package/bin/getNetworkApplicationProfiles.d.ts.map +1 -0
  48. package/bin/getNetworkApplicationProfiles.js +57 -0
  49. package/bin/getNetworkApplicationProfiles.js.map +1 -0
  50. package/bin/getNetworkBusinessProfile.d.ts +85 -0
  51. package/bin/getNetworkBusinessProfile.d.ts.map +1 -0
  52. package/bin/getNetworkBusinessProfile.js +51 -0
  53. package/bin/getNetworkBusinessProfile.js.map +1 -0
  54. package/bin/getNetworkBusinessProfiles.d.ts +29 -0
  55. package/bin/getNetworkBusinessProfiles.d.ts.map +1 -0
  56. package/bin/getNetworkBusinessProfiles.js +53 -0
  57. package/bin/getNetworkBusinessProfiles.js.map +1 -0
  58. package/bin/getNetworkRegistryCatalogue.d.ts +65 -0
  59. package/bin/getNetworkRegistryCatalogue.d.ts.map +1 -0
  60. package/bin/getNetworkRegistryCatalogue.js +55 -0
  61. package/bin/getNetworkRegistryCatalogue.js.map +1 -0
  62. package/bin/getNetworkTermsAndConditions.d.ts +36 -0
  63. package/bin/getNetworkTermsAndConditions.d.ts.map +1 -0
  64. package/bin/getNetworkTermsAndConditions.js +51 -0
  65. package/bin/getNetworkTermsAndConditions.js.map +1 -0
  66. package/bin/getNumberPool.d.ts +44 -0
  67. package/bin/getNumberPool.d.ts.map +1 -0
  68. package/bin/getNumberPool.js +51 -0
  69. package/bin/getNumberPool.js.map +1 -0
  70. package/bin/getNumberPoolNumber.d.ts +40 -0
  71. package/bin/getNumberPoolNumber.d.ts.map +1 -0
  72. package/bin/getNumberPoolNumber.js +53 -0
  73. package/bin/getNumberPoolNumber.js.map +1 -0
  74. package/bin/getNumberPoolNumbers.d.ts +28 -0
  75. package/bin/getNumberPoolNumbers.d.ts.map +1 -0
  76. package/bin/getNumberPoolNumbers.js +51 -0
  77. package/bin/getNumberPoolNumbers.js.map +1 -0
  78. package/bin/getNumberPools.d.ts +19 -0
  79. package/bin/getNumberPools.d.ts.map +1 -0
  80. package/bin/getNumberPools.js +48 -0
  81. package/bin/getNumberPools.js.map +1 -0
  82. package/bin/getPricing.d.ts +53 -0
  83. package/bin/getPricing.d.ts.map +1 -0
  84. package/bin/getPricing.js +57 -0
  85. package/bin/getPricing.js.map +1 -0
  86. package/bin/getUser.d.ts +59 -0
  87. package/bin/getUser.d.ts.map +1 -0
  88. package/bin/getUser.js +55 -0
  89. package/bin/getUser.js.map +1 -0
  90. package/bin/getUsers.d.ts +29 -0
  91. package/bin/getUsers.d.ts.map +1 -0
  92. package/bin/getUsers.js +53 -0
  93. package/bin/getUsers.js.map +1 -0
  94. package/bin/index.d.ts +87 -0
  95. package/bin/index.d.ts.map +1 -1
  96. package/bin/index.js +98 -1
  97. package/bin/index.js.map +1 -1
  98. package/bin/messengerAccount.d.ts +66 -0
  99. package/bin/messengerAccount.d.ts.map +1 -0
  100. package/bin/messengerAccount.js +95 -0
  101. package/bin/messengerAccount.js.map +1 -0
  102. package/bin/networkApplicationProfile.d.ts +120 -0
  103. package/bin/networkApplicationProfile.d.ts.map +1 -0
  104. package/bin/networkApplicationProfile.js +118 -0
  105. package/bin/networkApplicationProfile.js.map +1 -0
  106. package/bin/networkApplicationProfileShare.d.ts +50 -0
  107. package/bin/networkApplicationProfileShare.d.ts.map +1 -0
  108. package/bin/networkApplicationProfileShare.js +87 -0
  109. package/bin/networkApplicationProfileShare.js.map +1 -0
  110. package/bin/networkBusinessProfile.d.ts +200 -0
  111. package/bin/networkBusinessProfile.d.ts.map +1 -0
  112. package/bin/networkBusinessProfile.js +150 -0
  113. package/bin/networkBusinessProfile.js.map +1 -0
  114. package/bin/numberPool.d.ts +70 -0
  115. package/bin/numberPool.d.ts.map +1 -0
  116. package/bin/numberPool.js +93 -0
  117. package/bin/numberPool.js.map +1 -0
  118. package/bin/numberPoolNumber.d.ts +50 -0
  119. package/bin/numberPoolNumber.d.ts.map +1 -0
  120. package/bin/numberPoolNumber.js +87 -0
  121. package/bin/numberPoolNumber.js.map +1 -0
  122. package/bin/package.json +3 -3
  123. package/bin/provider.d.ts +4 -4
  124. package/bin/types/input.d.ts +128 -0
  125. package/bin/types/input.d.ts.map +1 -1
  126. package/bin/types/output.d.ts +450 -0
  127. package/bin/types/output.d.ts.map +1 -1
  128. package/bin/user.d.ts +80 -0
  129. package/bin/user.d.ts.map +1 -0
  130. package/bin/user.js +87 -0
  131. package/bin/user.js.map +1 -0
  132. package/package.json +3 -3
package/README.md CHANGED
@@ -1 +1 @@
1
- Experimental: manage Vonage (formerly Nexmo) applications, numbers, subaccounts, API secrets and Verify v2 templates as infrastructure with Pulumi.
1
+ Experimental: manage Vonage (formerly Nexmo) applications, numbers, subaccounts, API secrets, Verify v2 templates and Network Registry business profiles as infrastructure with Pulumi.
@@ -0,0 +1,62 @@
1
+ import * as pulumi from "@pulumi/pulumi";
2
+ /**
3
+ * The default SMS webhooks of the Vonage account (POST /account/settings). A singleton: there is exactly one per account, so create adopts it, import ID is the account API key, and destroy clears only the URLs this resource manages. Vonage requests each URL and rejects it unless it answers 200.
4
+ */
5
+ export declare class AccountSettings extends pulumi.CustomResource {
6
+ /**
7
+ * Get an existing AccountSettings 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): AccountSettings;
15
+ /**
16
+ * Returns true if the given object is an instance of AccountSettings. 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 AccountSettings;
20
+ /**
21
+ * Default webhook URL for SMS delivery receipts (dr = delivery receipt). Vonage requests the URL and only saves it when it answers 200. When unset the resource does not manage it, and removing it from a program that managed it clears the URL on the account.
22
+ */
23
+ readonly drCallBackUrl: pulumi.Output<string | undefined>;
24
+ /**
25
+ * Maximum API calls per second Vonage allows the account. Read-only.
26
+ */
27
+ readonly maxCallsPerSecond: pulumi.Output<number | undefined>;
28
+ /**
29
+ * Maximum inbound SMS requests per second Vonage allows the account. Read-only.
30
+ */
31
+ readonly maxInboundRequest: pulumi.Output<number | undefined>;
32
+ /**
33
+ * Maximum outbound SMS requests per second Vonage allows the account. Read-only.
34
+ */
35
+ readonly maxOutboundRequest: pulumi.Output<number | undefined>;
36
+ /**
37
+ * Default webhook URL for inbound SMS (mo = mobile originated). Vonage requests the URL and only saves it when it answers 200. When unset the resource does not manage it, and removing it from a program that managed it clears the URL on the account.
38
+ */
39
+ readonly moCallBackUrl: pulumi.Output<string | undefined>;
40
+ /**
41
+ * Create a AccountSettings resource with the given unique name, arguments, and options.
42
+ *
43
+ * @param name The _unique_ name of the resource.
44
+ * @param args The arguments to use to populate this resource's properties.
45
+ * @param opts A bag of options that control this resource's behavior.
46
+ */
47
+ constructor(name: string, args?: AccountSettingsArgs, opts?: pulumi.CustomResourceOptions);
48
+ }
49
+ /**
50
+ * The set of arguments for constructing a AccountSettings resource.
51
+ */
52
+ export interface AccountSettingsArgs {
53
+ /**
54
+ * Default webhook URL for SMS delivery receipts (dr = delivery receipt). Vonage requests the URL and only saves it when it answers 200. When unset the resource does not manage it, and removing it from a program that managed it clears the URL on the account.
55
+ */
56
+ drCallBackUrl?: pulumi.Input<string | undefined>;
57
+ /**
58
+ * Default webhook URL for inbound SMS (mo = mobile originated). Vonage requests the URL and only saves it when it answers 200. When unset the resource does not manage it, and removing it from a program that managed it clears the URL on the account.
59
+ */
60
+ moCallBackUrl?: pulumi.Input<string | undefined>;
61
+ }
62
+ //# sourceMappingURL=accountSettings.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"accountSettings.d.ts","sourceRoot":"","sources":["../accountSettings.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,MAAM,MAAM,gBAAgB,CAAC;AAGzC;;GAEG;AACH,qBAAa,eAAgB,SAAQ,MAAM,CAAC,cAAc;IACtD;;;;;;;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,eAAe;IAOlH;;;OAGG;WACW,UAAU,CAAC,GAAG,EAAE,GAAG,GAAG,GAAG,IAAI,eAAe;IAO1D;;OAEG;IACH,SAAwB,aAAa,EAAE,MAAM,CAAC,MAAM,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;IACzE;;OAEG;IACH,SAAgC,iBAAiB,EAAE,MAAM,CAAC,MAAM,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;IACrF;;OAEG;IACH,SAAgC,iBAAiB,EAAE,MAAM,CAAC,MAAM,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;IACrF;;OAEG;IACH,SAAgC,kBAAkB,EAAE,MAAM,CAAC,MAAM,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;IACtF;;OAEG;IACH,SAAwB,aAAa,EAAE,MAAM,CAAC,MAAM,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;IAEzE;;;;;;OAMG;gBACS,IAAI,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,mBAAmB,EAAE,IAAI,CAAC,EAAE,MAAM,CAAC,qBAAqB;CAmB5F;AAED;;GAEG;AACH,MAAM,WAAW,mBAAmB;IAChC;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;IACjD;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;CACpD"}
@@ -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.AccountSettings = void 0;
29
+ const pulumi = __importStar(require("@pulumi/pulumi"));
30
+ const utilities = __importStar(require("./utilities"));
31
+ /**
32
+ * The default SMS webhooks of the Vonage account (POST /account/settings). A singleton: there is exactly one per account, so create adopts it, import ID is the account API key, and destroy clears only the URLs this resource manages. Vonage requests each URL and rejects it unless it answers 200.
33
+ */
34
+ class AccountSettings extends pulumi.CustomResource {
35
+ /**
36
+ * Get an existing AccountSettings 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 AccountSettings(name, undefined, { ...opts, id: id });
45
+ }
46
+ /** @internal */
47
+ static __pulumiType = 'vonage:index:AccountSettings';
48
+ /**
49
+ * Returns true if the given object is an instance of AccountSettings. 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'] === AccountSettings.__pulumiType;
57
+ }
58
+ /**
59
+ * Create a AccountSettings 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
+ resourceInputs["drCallBackUrl"] = args?.drCallBackUrl;
70
+ resourceInputs["moCallBackUrl"] = args?.moCallBackUrl;
71
+ resourceInputs["maxCallsPerSecond"] = undefined /*out*/;
72
+ resourceInputs["maxInboundRequest"] = undefined /*out*/;
73
+ resourceInputs["maxOutboundRequest"] = undefined /*out*/;
74
+ }
75
+ else {
76
+ resourceInputs["drCallBackUrl"] = undefined /*out*/;
77
+ resourceInputs["maxCallsPerSecond"] = undefined /*out*/;
78
+ resourceInputs["maxInboundRequest"] = undefined /*out*/;
79
+ resourceInputs["maxOutboundRequest"] = undefined /*out*/;
80
+ resourceInputs["moCallBackUrl"] = undefined /*out*/;
81
+ }
82
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
83
+ super(AccountSettings.__pulumiType, name, resourceInputs, opts);
84
+ }
85
+ }
86
+ exports.AccountSettings = AccountSettings;
87
+ //# sourceMappingURL=accountSettings.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"accountSettings.js","sourceRoot":"","sources":["../accountSettings.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;;;;;;;;;;;;;;;;;;;;;;;;AAEjF,uDAAyC;AACzC,uDAAyC;AAEzC;;GAEG;AACH,MAAa,eAAgB,SAAQ,MAAM,CAAC,cAAc;IACtD;;;;;;;OAOG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,IAAmC;QAC5F,OAAO,IAAI,eAAe,CAAC,IAAI,EAAE,SAAgB,EAAE,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC;IAC5E,CAAC;IAED,gBAAgB;IACT,MAAM,CAAU,YAAY,GAAG,8BAA8B,CAAC;IAErE;;;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,eAAe,CAAC,YAAY,CAAC;IAChE,CAAC;IAuBD;;;;;;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,cAAc,CAAC,eAAe,CAAC,GAAG,IAAI,EAAE,aAAa,CAAC;YACtD,cAAc,CAAC,eAAe,CAAC,GAAG,IAAI,EAAE,aAAa,CAAC;YACtD,cAAc,CAAC,mBAAmB,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YACxD,cAAc,CAAC,mBAAmB,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YACxD,cAAc,CAAC,oBAAoB,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;SAC5D;aAAM;YACH,cAAc,CAAC,eAAe,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YACpD,cAAc,CAAC,mBAAmB,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YACxD,cAAc,CAAC,mBAAmB,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YACxD,cAAc,CAAC,oBAAoB,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YACzD,cAAc,CAAC,eAAe,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;SACvD;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,eAAe,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IACpE,CAAC;;AAzEL,0CA0EC"}
@@ -11,11 +11,11 @@ export declare const apiKey: string | undefined;
11
11
  */
12
12
  export declare const apiSecret: string | undefined;
13
13
  /**
14
- * Optional Vonage application ID for JWT-authenticated runtime APIs. Falls back to VONAGE_APPLICATION_ID. Not used by the resources in this release.
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
15
  */
16
16
  export declare const applicationId: string | undefined;
17
17
  /**
18
- * Optional PEM private key for the application named by applicationId. Falls back to VONAGE_PRIVATE_KEY. Not used by the resources in this release.
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
19
  */
20
20
  export declare const privateKey: string | undefined;
21
21
  /**
@@ -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,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"}
@@ -1,4 +1,5 @@
1
1
  import * as pulumi from "@pulumi/pulumi";
2
+ import * as outputs from "./types/output";
2
3
  /**
3
4
  * Look up a Vonage application by ID or exact name.
4
5
  */
@@ -22,14 +23,46 @@ export interface GetApplicationResult {
22
23
  * Enabled capabilities, sorted: messages, meetings, rtc, vbc, verify, voice.
23
24
  */
24
25
  readonly capabilities: string[];
26
+ /**
27
+ * The meetings capability as configured on the application, or unset when it is not enabled.
28
+ */
29
+ readonly meetings?: outputs.MeetingsCapability;
30
+ /**
31
+ * The messages capability as configured on the application, or unset when it is not enabled.
32
+ */
33
+ readonly messages?: outputs.MessagesCapability;
25
34
  /**
26
35
  * Application name.
27
36
  */
28
37
  readonly name: string;
38
+ /**
39
+ * The network_apis capability as configured on the application, or unset when it is not enabled.
40
+ */
41
+ readonly networkApis?: outputs.NetworkApisCapability;
29
42
  /**
30
43
  * PEM public key registered with the application.
31
44
  */
32
45
  readonly publicKey: string;
46
+ /**
47
+ * The rtc capability as configured on the application, or unset when it is not enabled.
48
+ */
49
+ readonly rtc?: outputs.RtcCapability;
50
+ /**
51
+ * True when the vbc capability is enabled; unset otherwise.
52
+ */
53
+ readonly vbc?: boolean;
54
+ /**
55
+ * The verify capability as configured on the application, or unset when it is not enabled.
56
+ */
57
+ readonly verify?: outputs.VerifyCapability;
58
+ /**
59
+ * The video capability as configured on the application, or unset when it is not enabled.
60
+ */
61
+ readonly video?: outputs.VideoCapability;
62
+ /**
63
+ * The voice capability as configured on the application, or unset when it is not enabled.
64
+ */
65
+ readonly voice?: outputs.VoiceCapability;
33
66
  }
34
67
  /**
35
68
  * Look up a Vonage application by ID or exact name.
@@ -1 +1 @@
1
- {"version":3,"file":"getApplication.d.ts","sourceRoot":"","sources":["../getApplication.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,MAAM,MAAM,gBAAgB,CAAC;AAGzC;;GAEG;AACH,wBAAgB,cAAc,CAAC,IAAI,CAAC,EAAE,kBAAkB,EAAE,IAAI,CAAC,EAAE,MAAM,CAAC,aAAa,GAAG,OAAO,CAAC,oBAAoB,CAAC,CAOpH;AAED,MAAM,WAAW,kBAAkB;IAC/B;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,WAAW,oBAAoB;IACjC;;OAEG;IACH,QAAQ,CAAC,aAAa,EAAE,MAAM,CAAC;IAC/B;;OAEG;IACH,QAAQ,CAAC,YAAY,EAAE,MAAM,EAAE,CAAC;IAChC;;OAEG;IACH,Q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AC,IAA+B,EAAE,IAAiC;IACnG,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;IAClB,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,YAAY,CAAC,6BAA6B,EAAE;QAC9D,eAAe,EAAE,IAAI,CAAC,aAAa;QACnC,MAAM,EAAE,IAAI,CAAC,IAAI;KACpB,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAPD,oDAOC"}
@@ -0,0 +1,56 @@
1
+ import * as pulumi from "@pulumi/pulumi";
2
+ /**
3
+ * Look up a Messenger, Viber Service Message or WhatsApp account registered with Vonage by channel and external ID. Fails if it does not exist.
4
+ */
5
+ export declare function getExternalAccount(args: GetExternalAccountArgs, opts?: pulumi.InvokeOptions): Promise<GetExternalAccountResult>;
6
+ export interface GetExternalAccountArgs {
7
+ /**
8
+ * The account's channel: messenger, viber_service_msg or whatsapp.
9
+ */
10
+ channel: string;
11
+ /**
12
+ * The account's external ID: the Facebook Page ID, the Viber Service Message ID or the WhatsApp number.
13
+ */
14
+ externalId: string;
15
+ }
16
+ export interface GetExternalAccountResult {
17
+ /**
18
+ * The Facebook Page access token. Secret. Set only for a Messenger account.
19
+ */
20
+ readonly accessToken?: string;
21
+ /**
22
+ * The api_key Vonage reports for the account.
23
+ */
24
+ readonly apiKey: string;
25
+ /**
26
+ * IDs of the linked applications (at most one).
27
+ */
28
+ readonly applications: string[];
29
+ /**
30
+ * The account's channel.
31
+ */
32
+ readonly channel: string;
33
+ /**
34
+ * The account's external ID.
35
+ */
36
+ readonly externalId: string;
37
+ /**
38
+ * The account name (empty when none is set).
39
+ */
40
+ readonly name: string;
41
+ }
42
+ /**
43
+ * Look up a Messenger, Viber Service Message or WhatsApp account registered with Vonage by channel and external ID. Fails if it does not exist.
44
+ */
45
+ export declare function getExternalAccountOutput(args: GetExternalAccountOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetExternalAccountResult>;
46
+ export interface GetExternalAccountOutputArgs {
47
+ /**
48
+ * The account's channel: messenger, viber_service_msg or whatsapp.
49
+ */
50
+ channel: pulumi.Input<string>;
51
+ /**
52
+ * The account's external ID: the Facebook Page ID, the Viber Service Message ID or the WhatsApp number.
53
+ */
54
+ externalId: pulumi.Input<string>;
55
+ }
56
+ //# sourceMappingURL=getExternalAccount.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getExternalAccount.d.ts","sourceRoot":"","sources":["../getExternalAccount.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,MAAM,MAAM,gBAAgB,CAAC;AAGzC;;GAEG;AACH,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,sBAAsB,EAAE,IAAI,CAAC,EAAE,MAAM,CAAC,aAAa,GAAG,OAAO,CAAC,wBAAwB,CAAC,CAM/H;AAED,MAAM,WAAW,sBAAsB;IACnC;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC;IAChB;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;CACtB;AAED,MAAM,WAAW,wBAAwB;IACrC;;OAEG;IACH,QAAQ,CAAC,WAAW,CAAC,EAAE,MAAM,CAAC;IAC9B;;OAEG;IACH,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IACxB;;OAEG;IACH,QAAQ,CAAC,YAAY,EAAE,MAAM,EAAE,CAAC;IAChC;;OAEG;IACH,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IACzB;;OAEG;IACH,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC;IAC5B;;OAEG;IACH,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;CACzB;AACD;;GAEG;AACH,wBAAgB,wBAAwB,CAAC,IAAI,EAAE,4BAA4B,EAAE,IAAI,CAAC,EAAE,MAAM,CAAC,mBAAmB,GAAG,MAAM,CAAC,MAAM,CAAC,wBAAwB,CAAC,CAMvJ;AAED,MAAM,WAAW,4BAA4B;IACzC;;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,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.getExternalAccountOutput = exports.getExternalAccount = void 0;
29
+ const pulumi = __importStar(require("@pulumi/pulumi"));
30
+ const utilities = __importStar(require("./utilities"));
31
+ /**
32
+ * Look up a Messenger, Viber Service Message or WhatsApp account registered with Vonage by channel and external ID. Fails if it does not exist.
33
+ */
34
+ function getExternalAccount(args, opts) {
35
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
36
+ return pulumi.runtime.invoke("vonage:index:getExternalAccount", {
37
+ "channel": args.channel,
38
+ "externalId": args.externalId,
39
+ }, opts);
40
+ }
41
+ exports.getExternalAccount = getExternalAccount;
42
+ /**
43
+ * Look up a Messenger, Viber Service Message or WhatsApp account registered with Vonage by channel and external ID. Fails if it does not exist.
44
+ */
45
+ function getExternalAccountOutput(args, opts) {
46
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
47
+ return pulumi.runtime.invokeOutput("vonage:index:getExternalAccount", {
48
+ "channel": args.channel,
49
+ "externalId": args.externalId,
50
+ }, opts);
51
+ }
52
+ exports.getExternalAccountOutput = getExternalAccountOutput;
53
+ //# sourceMappingURL=getExternalAccount.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getExternalAccount.js","sourceRoot":"","sources":["../getExternalAccount.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;;;;;;;;;;;;;;;;;;;;;;;;AAEjF,uDAAyC;AACzC,uDAAyC;AAEzC;;GAEG;AACH,SAAgB,kBAAkB,CAAC,IAA4B,EAAE,IAA2B;IACxF,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;QAC5D,SAAS,EAAE,IAAI,CAAC,OAAO;QACvB,YAAY,EAAE,IAAI,CAAC,UAAU;KAChC,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAND,gDAMC;AAuCD;;GAEG;AACH,SAAgB,wBAAwB,CAAC,IAAkC,EAAE,IAAiC;IAC1G,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;QAClE,SAAS,EAAE,IAAI,CAAC,OAAO;QACvB,YAAY,EAAE,IAAI,CAAC,UAAU;KAChC,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAND,4DAMC"}