@pulumi-labs/vonage 0.0.0-stage → 0.1.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 (107) hide show
  1. package/README.md +1 -3
  2. package/bin/apiSecret.d.ts +62 -0
  3. package/bin/apiSecret.d.ts.map +1 -0
  4. package/bin/apiSecret.js +92 -0
  5. package/bin/apiSecret.js.map +1 -0
  6. package/bin/application.d.ts +136 -0
  7. package/bin/application.d.ts.map +1 -0
  8. package/bin/application.js +110 -0
  9. package/bin/application.js.map +1 -0
  10. package/bin/config/index.d.ts +2 -0
  11. package/bin/config/index.d.ts.map +1 -0
  12. package/bin/config/index.js +21 -0
  13. package/bin/config/index.js.map +1 -0
  14. package/bin/config/vars.d.ts +25 -0
  15. package/bin/config/vars.d.ts.map +1 -0
  16. package/bin/config/vars.js +67 -0
  17. package/bin/config/vars.js.map +1 -0
  18. package/bin/getAccountBalance.d.ts +22 -0
  19. package/bin/getAccountBalance.d.ts.map +1 -0
  20. package/bin/getAccountBalance.js +48 -0
  21. package/bin/getAccountBalance.js.map +1 -0
  22. package/bin/getApiSecret.d.ts +44 -0
  23. package/bin/getApiSecret.d.ts.map +1 -0
  24. package/bin/getApiSecret.js +53 -0
  25. package/bin/getApiSecret.js.map +1 -0
  26. package/bin/getApiSecrets.d.ts +33 -0
  27. package/bin/getApiSecrets.d.ts.map +1 -0
  28. package/bin/getApiSecrets.js +53 -0
  29. package/bin/getApiSecrets.js.map +1 -0
  30. package/bin/getApplication.d.ts +48 -0
  31. package/bin/getApplication.d.ts.map +1 -0
  32. package/bin/getApplication.js +55 -0
  33. package/bin/getApplication.js.map +1 -0
  34. package/bin/getApplications.d.ts +29 -0
  35. package/bin/getApplications.d.ts.map +1 -0
  36. package/bin/getApplications.js +53 -0
  37. package/bin/getApplications.js.map +1 -0
  38. package/bin/getAvailableNumbers.d.ts +81 -0
  39. package/bin/getAvailableNumbers.d.ts.map +1 -0
  40. package/bin/getAvailableNumbers.js +63 -0
  41. package/bin/getAvailableNumbers.js.map +1 -0
  42. package/bin/getNumber.d.ts +72 -0
  43. package/bin/getNumber.d.ts.map +1 -0
  44. package/bin/getNumber.js +53 -0
  45. package/bin/getNumber.js.map +1 -0
  46. package/bin/getNumbers.d.ts +61 -0
  47. package/bin/getNumbers.d.ts.map +1 -0
  48. package/bin/getNumbers.js +61 -0
  49. package/bin/getNumbers.js.map +1 -0
  50. package/bin/getSubAccount.d.ts +56 -0
  51. package/bin/getSubAccount.d.ts.map +1 -0
  52. package/bin/getSubAccount.js +51 -0
  53. package/bin/getSubAccount.js.map +1 -0
  54. package/bin/getSubAccounts.d.ts +33 -0
  55. package/bin/getSubAccounts.d.ts.map +1 -0
  56. package/bin/getSubAccounts.js +53 -0
  57. package/bin/getSubAccounts.js.map +1 -0
  58. package/bin/getVerifyTemplate.d.ts +44 -0
  59. package/bin/getVerifyTemplate.d.ts.map +1 -0
  60. package/bin/getVerifyTemplate.js +55 -0
  61. package/bin/getVerifyTemplate.js.map +1 -0
  62. package/bin/getVerifyTemplateFragment.d.ts +76 -0
  63. package/bin/getVerifyTemplateFragment.d.ts.map +1 -0
  64. package/bin/getVerifyTemplateFragment.js +57 -0
  65. package/bin/getVerifyTemplateFragment.js.map +1 -0
  66. package/bin/index.d.ts +61 -0
  67. package/bin/index.d.ts.map +1 -0
  68. package/bin/index.js +117 -0
  69. package/bin/index.js.map +1 -0
  70. package/bin/number.d.ts +130 -0
  71. package/bin/number.d.ts.map +1 -0
  72. package/bin/number.js +121 -0
  73. package/bin/number.js.map +1 -0
  74. package/bin/package.json +38 -0
  75. package/bin/provider.d.ts +70 -0
  76. package/bin/provider.d.ts.map +1 -0
  77. package/bin/provider.js +69 -0
  78. package/bin/provider.js.map +1 -0
  79. package/bin/subAccount.d.ts +90 -0
  80. package/bin/subAccount.d.ts.map +1 -0
  81. package/bin/subAccount.js +100 -0
  82. package/bin/subAccount.js.map +1 -0
  83. package/bin/types/index.d.ts +4 -0
  84. package/bin/types/index.d.ts.map +1 -0
  85. package/bin/types/index.js +34 -0
  86. package/bin/types/index.js.map +1 -0
  87. package/bin/types/input.d.ts +219 -0
  88. package/bin/types/input.d.ts.map +1 -0
  89. package/bin/types/input.js +5 -0
  90. package/bin/types/input.js.map +1 -0
  91. package/bin/types/output.d.ts +340 -0
  92. package/bin/types/output.d.ts.map +1 -0
  93. package/bin/types/output.js +5 -0
  94. package/bin/types/output.js.map +1 -0
  95. package/bin/utilities.d.ts +5 -0
  96. package/bin/utilities.d.ts.map +1 -0
  97. package/bin/utilities.js +114 -0
  98. package/bin/utilities.js.map +1 -0
  99. package/bin/verifyTemplate.d.ts +54 -0
  100. package/bin/verifyTemplate.d.ts.map +1 -0
  101. package/bin/verifyTemplate.js +86 -0
  102. package/bin/verifyTemplate.js.map +1 -0
  103. package/bin/verifyTemplateFragment.d.ts +78 -0
  104. package/bin/verifyTemplateFragment.d.ts.map +1 -0
  105. package/bin/verifyTemplateFragment.js +105 -0
  106. package/bin/verifyTemplateFragment.js.map +1 -0
  107. package/package.json +37 -5
package/README.md CHANGED
@@ -1,3 +1 @@
1
- # Temporary Holding Version
2
-
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.
1
+ Experimental: manage Vonage (formerly Nexmo) applications, numbers, subaccounts, API secrets and Verify v2 templates as infrastructure with Pulumi.
@@ -0,0 +1,62 @@
1
+ import * as pulumi from "@pulumi/pulumi";
2
+ /**
3
+ * An API secret for a Vonage account or subaccount. An account can have at most two secrets; Vonage refuses to revoke the last remaining one.
4
+ */
5
+ export declare class ApiSecret extends pulumi.CustomResource {
6
+ /**
7
+ * Get an existing ApiSecret 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): ApiSecret;
15
+ /**
16
+ * Returns true if the given object is an instance of ApiSecret. 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 ApiSecret;
20
+ /**
21
+ * API key of the account that owns the secret. Defaults to the provider's account; set it to a subaccount's apiKey to rotate that subaccount's secrets. Changing it replaces the resource.
22
+ */
23
+ readonly accountKey: pulumi.Output<string | undefined>;
24
+ /**
25
+ * ISO 8601 creation timestamp.
26
+ */
27
+ readonly createdAt: pulumi.Output<string>;
28
+ /**
29
+ * The account API key that owns the secret.
30
+ */
31
+ readonly ownerKey: pulumi.Output<string>;
32
+ /**
33
+ * The secret value (8-25 characters with at least one lowercase letter, one uppercase letter and one digit). Vonage never returns it again, so it is kept in state as a secret. Changing it replaces the resource: when the account already holds two secrets the old one is revoked first, otherwise the new one is created first.
34
+ */
35
+ readonly secret: pulumi.Output<string>;
36
+ /**
37
+ * The Vonage-assigned secret ID.
38
+ */
39
+ readonly secretId: pulumi.Output<string>;
40
+ /**
41
+ * Create a ApiSecret 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: ApiSecretArgs, opts?: pulumi.CustomResourceOptions);
48
+ }
49
+ /**
50
+ * The set of arguments for constructing a ApiSecret resource.
51
+ */
52
+ export interface ApiSecretArgs {
53
+ /**
54
+ * API key of the account that owns the secret. Defaults to the provider's account; set it to a subaccount's apiKey to rotate that subaccount's secrets. Changing it replaces the resource.
55
+ */
56
+ accountKey?: pulumi.Input<string | undefined>;
57
+ /**
58
+ * The secret value (8-25 characters with at least one lowercase letter, one uppercase letter and one digit). Vonage never returns it again, so it is kept in state as a secret. Changing it replaces the resource: when the account already holds two secrets the old one is revoked first, otherwise the new one is created first.
59
+ */
60
+ secret: pulumi.Input<string>;
61
+ }
62
+ //# source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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.ApiSecret = void 0;
29
+ const pulumi = __importStar(require("@pulumi/pulumi"));
30
+ const utilities = __importStar(require("./utilities"));
31
+ /**
32
+ * An API secret for a Vonage account or subaccount. An account can have at most two secrets; Vonage refuses to revoke the last remaining one.
33
+ */
34
+ class ApiSecret extends pulumi.CustomResource {
35
+ /**
36
+ * Get an existing ApiSecret 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 ApiSecret(name, undefined, { ...opts, id: id });
45
+ }
46
+ /** @internal */
47
+ static __pulumiType = 'vonage:index:ApiSecret';
48
+ /**
49
+ * Returns true if the given object is an instance of ApiSecret. 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'] === ApiSecret.__pulumiType;
57
+ }
58
+ /**
59
+ * Create a ApiSecret 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?.secret === undefined && !opts.urn) {
70
+ throw new Error("Missing required property 'secret'");
71
+ }
72
+ resourceInputs["accountKey"] = args?.accountKey;
73
+ resourceInputs["secret"] = args?.secret ? pulumi.secret(args.secret) : undefined;
74
+ resourceInputs["createdAt"] = undefined /*out*/;
75
+ resourceInputs["ownerKey"] = undefined /*out*/;
76
+ resourceInputs["secretId"] = undefined /*out*/;
77
+ }
78
+ else {
79
+ resourceInputs["accountKey"] = undefined /*out*/;
80
+ resourceInputs["createdAt"] = undefined /*out*/;
81
+ resourceInputs["ownerKey"] = undefined /*out*/;
82
+ resourceInputs["secret"] = undefined /*out*/;
83
+ resourceInputs["secretId"] = undefined /*out*/;
84
+ }
85
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
86
+ const secretOpts = { additionalSecretOutputs: ["secret"] };
87
+ opts = pulumi.mergeOptions(opts, secretOpts);
88
+ super(ApiSecret.__pulumiType, name, resourceInputs, opts);
89
+ }
90
+ }
91
+ exports.ApiSecret = ApiSecret;
92
+ //# sourceMappingURL=apiSecret.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"apiSecret.js","sourceRoot":"","sources":["../apiSecret.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;;;;;;;;;;;;;;;;;;;;;;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C,cAAc,CAAC,UAAU,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;SAClD;aAAM;YACH,cAAc,CAAC,YAAY,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YACjD,cAAc,CAAC,WAAW,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YAChD,cAAc,CAAC,UAAU,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YAC/C,cAAc,CAAC,QAAQ,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YAC7C,cAAc,CAAC,UAAU,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;SAClD;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,MAAM,UAAU,GAAG,EAAE,uBAAuB,EAAE,CAAC,QAAQ,CAAC,EAAE,CAAC;QAC3D,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,IAAI,EAAE,UAAU,CAAC,CAAC;QAC7C,KAAK,CAAC,SAAS,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAC9D,CAAC;;AA9EL,8BA+EC"}
@@ -0,0 +1,136 @@
1
+ import * as pulumi from "@pulumi/pulumi";
2
+ import * as inputs from "./types/input";
3
+ import * as outputs from "./types/output";
4
+ /**
5
+ * A Vonage application (Application API v2): capabilities, webhooks and signing keys. Update replaces the whole configuration, so every capability you want must be declared in the program; video and networkApis you do not declare are preserved as they are on the server, and removing a block you declared earlier disables that capability.
6
+ */
7
+ export declare class Application extends pulumi.CustomResource {
8
+ /**
9
+ * Get an existing Application resource's state with the given name, ID, and optional extra
10
+ * properties used to qualify the lookup.
11
+ *
12
+ * @param name The _unique_ name of the resulting resource.
13
+ * @param id The _unique_ provider ID of the resource to lookup.
14
+ * @param opts Optional settings to control the behavior of the CustomResource.
15
+ */
16
+ static get(name: string, id: pulumi.Input<pulumi.ID>, opts?: pulumi.CustomResourceOptions): Application;
17
+ /**
18
+ * Returns true if the given object is an instance of Application. This is designed to work even
19
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
20
+ */
21
+ static isInstance(obj: any): obj is Application;
22
+ /**
23
+ * The Vonage application ID (UUID). Use it as app_id for numbers and as the JWT application_id claim.
24
+ */
25
+ readonly applicationId: pulumi.Output<string>;
26
+ /**
27
+ * The PEM public key registered with the application.
28
+ */
29
+ readonly applicationPublicKey: pulumi.Output<string>;
30
+ /**
31
+ * Whether Vonage may use traffic to improve its AI models (privacy.improve_ai).
32
+ */
33
+ readonly improveAi: pulumi.Output<boolean | undefined>;
34
+ /**
35
+ * Meetings capability. Omit to leave meetings disabled.
36
+ */
37
+ readonly meetings: pulumi.Output<outputs.MeetingsCapability | undefined>;
38
+ /**
39
+ * Messages capability. Omit to leave messages disabled.
40
+ */
41
+ readonly messages: pulumi.Output<outputs.MessagesCapability | undefined>;
42
+ /**
43
+ * Application name (shown in the Vonage dashboard).
44
+ */
45
+ readonly name: pulumi.Output<string>;
46
+ /**
47
+ * Network APIs capability (SIM Swap, Number Verification). Omit to leave it as it is on the server.
48
+ */
49
+ readonly networkApis: pulumi.Output<outputs.NetworkApisCapability | undefined>;
50
+ /**
51
+ * The PEM private key generated by Vonage. Vonage returns it exactly once, on creation, and never again; it is stored as a secret in Pulumi state. Unset when publicKey was supplied.
52
+ */
53
+ readonly privateKey: pulumi.Output<string | undefined>;
54
+ /**
55
+ * Optional PEM public key. When omitted Vonage generates a key pair on creation and the private key is returned once as privateKey. When set, no private key is generated.
56
+ */
57
+ readonly publicKey: pulumi.Output<string | undefined>;
58
+ /**
59
+ * RTC capability. Omit to leave RTC disabled.
60
+ */
61
+ readonly rtc: pulumi.Output<outputs.RtcCapability | undefined>;
62
+ /**
63
+ * Set true to enable the (empty) vbc capability for zero-rated VBC calls.
64
+ */
65
+ readonly vbc: pulumi.Output<boolean | undefined>;
66
+ /**
67
+ * Verify v2 capability. Omit to leave verify disabled.
68
+ */
69
+ readonly verify: pulumi.Output<outputs.VerifyCapability | undefined>;
70
+ /**
71
+ * Video API capability: webhooks and recording storage. Omit to leave video as it is on the server; an existing video capability configured outside Pulumi is preserved until you declare the block.
72
+ */
73
+ readonly video: pulumi.Output<outputs.VideoCapability | undefined>;
74
+ /**
75
+ * Voice capability. Omit to leave voice disabled.
76
+ */
77
+ readonly voice: pulumi.Output<outputs.VoiceCapability | undefined>;
78
+ /**
79
+ * Create a Application resource with the given unique name, arguments, and options.
80
+ *
81
+ * @param name The _unique_ name of the resource.
82
+ * @param args The arguments to use to populate this resource's properties.
83
+ * @param opts A bag of options that control this resource's behavior.
84
+ */
85
+ constructor(name: string, args: ApplicationArgs, opts?: pulumi.CustomResourceOptions);
86
+ }
87
+ /**
88
+ * The set of arguments for constructing a Application resource.
89
+ */
90
+ export interface ApplicationArgs {
91
+ /**
92
+ * Whether Vonage may use traffic to improve its AI models (privacy.improve_ai).
93
+ */
94
+ improveAi?: pulumi.Input<boolean | undefined>;
95
+ /**
96
+ * Meetings capability. Omit to leave meetings disabled.
97
+ */
98
+ meetings?: pulumi.Input<inputs.MeetingsCapabilityArgs | undefined>;
99
+ /**
100
+ * Messages capability. Omit to leave messages disabled.
101
+ */
102
+ messages?: pulumi.Input<inputs.MessagesCapabilityArgs | undefined>;
103
+ /**
104
+ * Application name (shown in the Vonage dashboard).
105
+ */
106
+ name: pulumi.Input<string>;
107
+ /**
108
+ * Network APIs capability (SIM Swap, Number Verification). Omit to leave it as it is on the server.
109
+ */
110
+ networkApis?: pulumi.Input<inputs.NetworkApisCapabilityArgs | undefined>;
111
+ /**
112
+ * Optional PEM public key. When omitted Vonage generates a key pair on creation and the private key is returned once as privateKey. When set, no private key is generated.
113
+ */
114
+ publicKey?: pulumi.Input<string | undefined>;
115
+ /**
116
+ * RTC capability. Omit to leave RTC disabled.
117
+ */
118
+ rtc?: pulumi.Input<inputs.RtcCapabilityArgs | undefined>;
119
+ /**
120
+ * Set true to enable the (empty) vbc capability for zero-rated VBC calls.
121
+ */
122
+ vbc?: pulumi.Input<boolean | undefined>;
123
+ /**
124
+ * Verify v2 capability. Omit to leave verify disabled.
125
+ */
126
+ verify?: pulumi.Input<inputs.VerifyCapabilityArgs | undefined>;
127
+ /**
128
+ * Video API capability: webhooks and recording storage. Omit to leave video as it is on the server; an existing video capability configured outside Pulumi is preserved until you declare the block.
129
+ */
130
+ video?: pulumi.Input<inputs.VideoCapabilityArgs | undefined>;
131
+ /**
132
+ * Voice capability. Omit to leave voice disabled.
133
+ */
134
+ voice?: pulumi.Input<inputs.VoiceCapabilityArgs | undefined>;
135
+ }
136
+ //# sourceMappingURL=application.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"application.d.ts","sourceRoot":"","sources":["../application.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,MAAM,MAAM,gBAAgB,CAAC;AACzC,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC,OAAO,KAAK,OAAO,MAAM,gBAAgB,CAAC;AAG1C;;GAEG;AACH,qBAAa,WAAY,SAAQ,MAAM,CAAC,cAAc;IAClD;;;;;;;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,WAAW;IAO9G;;;OAGG;WACW,UAAU,CAAC,GAAG,EAAE,GAAG,GAAG,GAAG,IAAI,WAAW;IAOtD;;OAEG;IACH,SAAgC,aAAa,EAAE,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;IACrE;;OAEG;IACH,SAAgC,oBAAoB,EAAE,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;IAC5E;;OAEG;IACH,SAAwB,SAAS,EAAE,MAAM,CAAC,MAAM,CAAC,OAAO,GAAG,SAAS,CAAC,CAAC;IACtE;;OAEG;IACH,SAAwB,QAAQ,EAAE,MAAM,CAAC,MAAM,CAAC,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C,KAAK,CAAC,OAAO,GAAG,SAAS,CAAC,CAAC;IAC9C;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,sBAAsB,GAAG,SAAS,CAAC,CAAC;IACnE;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,sBAAsB,GAAG,SAAS,CAAC,CAAC;IACnE;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;IAC3B;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,yBAAyB,GAAG,SAAS,CAAC,CAAC;IACzE;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;IAC7C;;OAEG;IACH,GAAG,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,iBAAiB,GAAG,SAAS,CAAC,CAAC;IACzD;;OAEG;IACH,GAAG,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,OAAO,GAAG,SAAS,CAAC,CAAC;IACxC;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,oBAAoB,GAAG,SAAS,CAAC,CAAC;IAC/D;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,mBAAmB,GAAG,SAAS,CAAC,CAAC;IAC7D;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,mBAAmB,GAAG,SAAS,CAAC,CAAC;CAChE"}
@@ -0,0 +1,110 @@
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.Application = void 0;
29
+ const pulumi = __importStar(require("@pulumi/pulumi"));
30
+ const utilities = __importStar(require("./utilities"));
31
+ /**
32
+ * A Vonage application (Application API v2): capabilities, webhooks and signing keys. Update replaces the whole configuration, so every capability you want must be declared in the program; video and networkApis you do not declare are preserved as they are on the server, and removing a block you declared earlier disables that capability.
33
+ */
34
+ class Application extends pulumi.CustomResource {
35
+ /**
36
+ * Get an existing Application 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 Application(name, undefined, { ...opts, id: id });
45
+ }
46
+ /** @internal */
47
+ static __pulumiType = 'vonage:index:Application';
48
+ /**
49
+ * Returns true if the given object is an instance of Application. 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'] === Application.__pulumiType;
57
+ }
58
+ /**
59
+ * Create a Application resource with the given unique name, arguments, and options.
60
+ *
61
+ * @param name The _unique_ name of the resource.
62
+ * @param args The arguments to use to populate this resource's properties.
63
+ * @param opts A bag of options that control this resource's behavior.
64
+ */
65
+ constructor(name, args, opts) {
66
+ let resourceInputs = {};
67
+ opts = opts || {};
68
+ if (!opts.id) {
69
+ if (args?.name === undefined && !opts.urn) {
70
+ throw new Error("Missing required property 'name'");
71
+ }
72
+ resourceInputs["improveAi"] = args?.improveAi;
73
+ resourceInputs["meetings"] = args?.meetings;
74
+ resourceInputs["messages"] = args?.messages;
75
+ resourceInputs["name"] = args?.name;
76
+ resourceInputs["networkApis"] = args?.networkApis;
77
+ resourceInputs["publicKey"] = args?.publicKey;
78
+ resourceInputs["rtc"] = args?.rtc;
79
+ resourceInputs["vbc"] = args?.vbc;
80
+ resourceInputs["verify"] = args?.verify;
81
+ resourceInputs["video"] = args?.video;
82
+ resourceInputs["voice"] = args?.voice;
83
+ resourceInputs["applicationId"] = undefined /*out*/;
84
+ resourceInputs["applicationPublicKey"] = undefined /*out*/;
85
+ resourceInputs["privateKey"] = undefined /*out*/;
86
+ }
87
+ else {
88
+ resourceInputs["applicationId"] = undefined /*out*/;
89
+ resourceInputs["applicationPublicKey"] = undefined /*out*/;
90
+ resourceInputs["improveAi"] = undefined /*out*/;
91
+ resourceInputs["meetings"] = undefined /*out*/;
92
+ resourceInputs["messages"] = undefined /*out*/;
93
+ resourceInputs["name"] = undefined /*out*/;
94
+ resourceInputs["networkApis"] = undefined /*out*/;
95
+ resourceInputs["privateKey"] = undefined /*out*/;
96
+ resourceInputs["publicKey"] = undefined /*out*/;
97
+ resourceInputs["rtc"] = undefined /*out*/;
98
+ resourceInputs["vbc"] = undefined /*out*/;
99
+ resourceInputs["verify"] = undefined /*out*/;
100
+ resourceInputs["video"] = undefined /*out*/;
101
+ resourceInputs["voice"] = undefined /*out*/;
102
+ }
103
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
104
+ const secretOpts = { additionalSecretOutputs: ["privateKey"] };
105
+ opts = pulumi.mergeOptions(opts, secretOpts);
106
+ super(Application.__pulumiType, name, resourceInputs, opts);
107
+ }
108
+ }
109
+ exports.Application = Application;
110
+ //# sourceMappingURL=application.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"application.js","sourceRoot":"","sources":["../application.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;;;;;;;;;;;;;;;;;;;;;;;;AAEjF,uDAAyC;AAGzC,uDAAyC;AAEzC;;GAEG;AACH,MAAa,WAAY,SAAQ,MAAM,CAAC,cAAc;IAClD;;;;;;;OAOG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,IAAmC;QAC5F,OAAO,IAAI,WAAW,CAAC,IAAI,EAAE,SAAgB,EAAE,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC;IACxE,CAAC;IAED,gBAAgB;IACT,MAAM,CAAU,YAAY,GAAG,0BAA0B,CAAC;IAEjE;;;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,WAAW,CAAC,YAAY,CAAC;IAC5D,CAAC;IA2DD;;;;;;OAMG;IACH,YAAY,IAAY,EAAE,IAAqB,EAAE,IAAmC;QAChF,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,CAAC,IAAI,CAAC,EAAE,EAAE;YACV,IAAI,IAAI,EAAE,IAAI,KAAK,SAAS,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE;gBACvC,MAAM,IAAI,KAAK,CAA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AG,SAAS,CAAC,OAAO,CAAC;YAC3C,cAAc,CAAC,aAAa,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YAClD,cAAc,CAAC,YAAY,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YACjD,cAAc,CAAC,WAAW,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YAChD,cAAc,CAAC,KAAK,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YAC1C,cAAc,CAAC,KAAK,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YAC1C,cAAc,CAAC,QAAQ,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YAC7C,cAAc,CAAC,OAAO,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YAC5C,cAAc,CAAC,OAAO,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;SAC/C;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,MAAM,UAAU,GAAG,EAAE,uBAAuB,EAAE,CAAC,YAAY,CAAC,EAAE,CAAC;QAC/D,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,IAAI,EAAE,UAAU,CAAC,CAAC;QAC7C,KAAK,CAAC,WAAW,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAChE,CAAC;;AApIL,kCAqIC"}
@@ -0,0 +1,2 @@
1
+ export * from "./vars";
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../config/index.ts"],"names":[],"mappings":"AAIA,cAAc,QAAQ,CAAC"}
@@ -0,0 +1,21 @@
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 __exportStar = (this && this.__exportStar) || function(m, exports) {
16
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
17
+ };
18
+ Object.defineProperty(exports, "__esModule", { value: true });
19
+ // Export members:
20
+ __exportStar(require("./vars"), exports);
21
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../config/index.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;;;;;;;;;;;;;;AAEjF,kBAAkB;AAClB,yCAAuB"}
@@ -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
+ * Optional Vonage application ID for JWT-authenticated runtime APIs. Falls back to VONAGE_APPLICATION_ID. Not used by the resources in this release.
15
+ */
16
+ export declare const applicationId: string | undefined;
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.
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;;;;;;;;;;;;;;;;;;;;;;;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,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,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"}