@pulumi-labs/vonage 0.0.1-dev → 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 -0
  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 +38 -1
package/bin/index.d.ts ADDED
@@ -0,0 +1,61 @@
1
+ export { ApiSecretArgs } from "./apiSecret";
2
+ export type ApiSecret = import("./apiSecret").ApiSecret;
3
+ export declare const ApiSecret: typeof import("./apiSecret").ApiSecret;
4
+ export { ApplicationArgs } from "./application";
5
+ export type Application = import("./application").Application;
6
+ export declare const Application: typeof import("./application").Application;
7
+ export { GetAccountBalanceArgs, GetAccountBalanceResult } from "./getAccountBalance";
8
+ export declare const getAccountBalance: typeof import("./getAccountBalance").getAccountBalance;
9
+ export declare const getAccountBalanceOutput: typeof import("./getAccountBalance").getAccountBalanceOutput;
10
+ export { GetApiSecretArgs, GetApiSecretResult, GetApiSecretOutputArgs } from "./getApiSecret";
11
+ export declare const getApiSecret: typeof import("./getApiSecret").getApiSecret;
12
+ export declare const getApiSecretOutput: typeof import("./getApiSecret").getApiSecretOutput;
13
+ export { GetApiSecretsArgs, GetApiSecretsResult, GetApiSecretsOutputArgs } from "./getApiSecrets";
14
+ export declare const getApiSecrets: typeof import("./getApiSecrets").getApiSecrets;
15
+ export declare const getApiSecretsOutput: typeof import("./getApiSecrets").getApiSecretsOutput;
16
+ export { GetApplicationArgs, GetApplicationResult, GetApplicationOutputArgs } from "./getApplication";
17
+ export declare const getApplication: typeof import("./getApplication").getApplication;
18
+ export declare const getApplicationOutput: typeof import("./getApplication").getApplicationOutput;
19
+ export { GetApplicationsArgs, GetApplicationsResult, GetApplicationsOutputArgs } from "./getApplications";
20
+ export declare const getApplications: typeof import("./getApplications").getApplications;
21
+ export declare const getApplicationsOutput: typeof import("./getApplications").getApplicationsOutput;
22
+ export { GetAvailableNumbersArgs, GetAvailableNumbersResult, GetAvailableNumbersOutputArgs } from "./getAvailableNumbers";
23
+ export declare const getAvailableNumbers: typeof import("./getAvailableNumbers").getAvailableNumbers;
24
+ export declare const getAvailableNumbersOutput: typeof import("./getAvailableNumbers").getAvailableNumbersOutput;
25
+ export { GetNumberArgs, GetNumberResult, GetNumberOutputArgs } from "./getNumber";
26
+ export declare const getNumber: typeof import("./getNumber").getNumber;
27
+ export declare const getNumberOutput: typeof import("./getNumber").getNumberOutput;
28
+ export { GetNumbersArgs, GetNumbersResult, GetNumbersOutputArgs } from "./getNumbers";
29
+ export declare const getNumbers: typeof import("./getNumbers").getNumbers;
30
+ export declare const getNumbersOutput: typeof import("./getNumbers").getNumbersOutput;
31
+ export { GetSubAccountArgs, GetSubAccountResult, GetSubAccountOutputArgs } from "./getSubAccount";
32
+ export declare const getSubAccount: typeof import("./getSubAccount").getSubAccount;
33
+ export declare const getSubAccountOutput: typeof import("./getSubAccount").getSubAccountOutput;
34
+ export { GetSubAccountsArgs, GetSubAccountsResult, GetSubAccountsOutputArgs } from "./getSubAccounts";
35
+ export declare const getSubAccounts: typeof import("./getSubAccounts").getSubAccounts;
36
+ export declare const getSubAccountsOutput: typeof import("./getSubAccounts").getSubAccountsOutput;
37
+ export { GetVerifyTemplateArgs, GetVerifyTemplateResult, GetVerifyTemplateOutputArgs } from "./getVerifyTemplate";
38
+ export declare const getVerifyTemplate: typeof import("./getVerifyTemplate").getVerifyTemplate;
39
+ export declare const getVerifyTemplateOutput: typeof import("./getVerifyTemplate").getVerifyTemplateOutput;
40
+ export { GetVerifyTemplateFragmentArgs, GetVerifyTemplateFragmentResult, GetVerifyTemplateFragmentOutputArgs } from "./getVerifyTemplateFragment";
41
+ export declare const getVerifyTemplateFragment: typeof import("./getVerifyTemplateFragment").getVerifyTemplateFragment;
42
+ export declare const getVerifyTemplateFragmentOutput: typeof import("./getVerifyTemplateFragment").getVerifyTemplateFragmentOutput;
43
+ export { NumberArgs } from "./number";
44
+ export type Number = import("./number").Number;
45
+ export declare const Number: typeof import("./number").Number;
46
+ export { ProviderArgs } from "./provider";
47
+ export type Provider = import("./provider").Provider;
48
+ export declare const Provider: typeof import("./provider").Provider;
49
+ export { SubAccountArgs } from "./subAccount";
50
+ export type SubAccount = import("./subAccount").SubAccount;
51
+ export declare const SubAccount: typeof import("./subAccount").SubAccount;
52
+ export { VerifyTemplateArgs } from "./verifyTemplate";
53
+ export type VerifyTemplate = import("./verifyTemplate").VerifyTemplate;
54
+ export declare const VerifyTemplate: typeof import("./verifyTemplate").VerifyTemplate;
55
+ export { VerifyTemplateFragmentArgs } from "./verifyTemplateFragment";
56
+ export type VerifyTemplateFragment = import("./verifyTemplateFragment").VerifyTemplateFragment;
57
+ export declare const VerifyTemplateFragment: typeof import("./verifyTemplateFragment").VerifyTemplateFragment;
58
+ import * as config from "./config";
59
+ import * as types from "./types";
60
+ export { config, types, };
61
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAC5C,MAAM,MAAM,SAAS,GAAG,OAAO,aAAa,EAAE,SAAS,CAAC;AACxD,eAAO,MAAM,SA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U,CAAC;AACnC,OAAO,KAAK,KAAK,MAAM,SAAS,CAAC;AAEjC,OAAO,EACH,MAAM,EACN,KAAK,GACR,CAAC"}
package/bin/index.js ADDED
@@ -0,0 +1,117 @@
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.types = exports.config = exports.VerifyTemplateFragment = exports.VerifyTemplate = exports.SubAccount = exports.Provider = exports.Number = exports.getVerifyTemplateFragmentOutput = exports.getVerifyTemplateFragment = exports.getVerifyTemplateOutput = exports.getVerifyTemplate = exports.getSubAccountsOutput = exports.getSubAccounts = exports.getSubAccountOutput = exports.getSubAccount = exports.getNumbersOutput = exports.getNumbers = exports.getNumberOutput = exports.getNumber = exports.getAvailableNumbersOutput = exports.getAvailableNumbers = exports.getApplicationsOutput = exports.getApplications = exports.getApplicationOutput = exports.getApplication = exports.getApiSecretsOutput = exports.getApiSecrets = exports.getApiSecretOutput = exports.getApiSecret = exports.getAccountBalanceOutput = exports.getAccountBalance = exports.Application = exports.ApiSecret = void 0;
29
+ const pulumi = __importStar(require("@pulumi/pulumi"));
30
+ const utilities = __importStar(require("./utilities"));
31
+ exports.ApiSecret = null;
32
+ utilities.lazyLoad(exports, ["ApiSecret"], () => require("./apiSecret"));
33
+ exports.Application = null;
34
+ utilities.lazyLoad(exports, ["Application"], () => require("./application"));
35
+ exports.getAccountBalance = null;
36
+ exports.getAccountBalanceOutput = null;
37
+ utilities.lazyLoad(exports, ["getAccountBalance", "getAccountBalanceOutput"], () => require("./getAccountBalance"));
38
+ exports.getApiSecret = null;
39
+ exports.getApiSecretOutput = null;
40
+ utilities.lazyLoad(exports, ["getApiSecret", "getApiSecretOutput"], () => require("./getApiSecret"));
41
+ exports.getApiSecrets = null;
42
+ exports.getApiSecretsOutput = null;
43
+ utilities.lazyLoad(exports, ["getApiSecrets", "getApiSecretsOutput"], () => require("./getApiSecrets"));
44
+ exports.getApplication = null;
45
+ exports.getApplicationOutput = null;
46
+ utilities.lazyLoad(exports, ["getApplication", "getApplicationOutput"], () => require("./getApplication"));
47
+ exports.getApplications = null;
48
+ exports.getApplicationsOutput = null;
49
+ utilities.lazyLoad(exports, ["getApplications", "getApplicationsOutput"], () => require("./getApplications"));
50
+ exports.getAvailableNumbers = null;
51
+ exports.getAvailableNumbersOutput = null;
52
+ utilities.lazyLoad(exports, ["getAvailableNumbers", "getAvailableNumbersOutput"], () => require("./getAvailableNumbers"));
53
+ exports.getNumber = null;
54
+ exports.getNumberOutput = null;
55
+ utilities.lazyLoad(exports, ["getNumber", "getNumberOutput"], () => require("./getNumber"));
56
+ exports.getNumbers = null;
57
+ exports.getNumbersOutput = null;
58
+ utilities.lazyLoad(exports, ["getNumbers", "getNumbersOutput"], () => require("./getNumbers"));
59
+ exports.getSubAccount = null;
60
+ exports.getSubAccountOutput = null;
61
+ utilities.lazyLoad(exports, ["getSubAccount", "getSubAccountOutput"], () => require("./getSubAccount"));
62
+ exports.getSubAccounts = null;
63
+ exports.getSubAccountsOutput = null;
64
+ utilities.lazyLoad(exports, ["getSubAccounts", "getSubAccountsOutput"], () => require("./getSubAccounts"));
65
+ exports.getVerifyTemplate = null;
66
+ exports.getVerifyTemplateOutput = null;
67
+ utilities.lazyLoad(exports, ["getVerifyTemplate", "getVerifyTemplateOutput"], () => require("./getVerifyTemplate"));
68
+ exports.getVerifyTemplateFragment = null;
69
+ exports.getVerifyTemplateFragmentOutput = null;
70
+ utilities.lazyLoad(exports, ["getVerifyTemplateFragment", "getVerifyTemplateFragmentOutput"], () => require("./getVerifyTemplateFragment"));
71
+ exports.Number = null;
72
+ utilities.lazyLoad(exports, ["Number"], () => require("./number"));
73
+ exports.Provider = null;
74
+ utilities.lazyLoad(exports, ["Provider"], () => require("./provider"));
75
+ exports.SubAccount = null;
76
+ utilities.lazyLoad(exports, ["SubAccount"], () => require("./subAccount"));
77
+ exports.VerifyTemplate = null;
78
+ utilities.lazyLoad(exports, ["VerifyTemplate"], () => require("./verifyTemplate"));
79
+ exports.VerifyTemplateFragment = null;
80
+ utilities.lazyLoad(exports, ["VerifyTemplateFragment"], () => require("./verifyTemplateFragment"));
81
+ // Export sub-modules:
82
+ const config = __importStar(require("./config"));
83
+ exports.config = config;
84
+ const types = __importStar(require("./types"));
85
+ exports.types = types;
86
+ const _module = {
87
+ version: utilities.getVersion(),
88
+ construct: (name, type, urn) => {
89
+ switch (type) {
90
+ case "vonage:index:ApiSecret":
91
+ return new exports.ApiSecret(name, undefined, { urn });
92
+ case "vonage:index:Application":
93
+ return new exports.Application(name, undefined, { urn });
94
+ case "vonage:index:Number":
95
+ return new exports.Number(name, undefined, { urn });
96
+ case "vonage:index:SubAccount":
97
+ return new exports.SubAccount(name, undefined, { urn });
98
+ case "vonage:index:VerifyTemplate":
99
+ return new exports.VerifyTemplate(name, undefined, { urn });
100
+ case "vonage:index:VerifyTemplateFragment":
101
+ return new exports.VerifyTemplateFragment(name, undefined, { urn });
102
+ default:
103
+ throw new Error(`unknown resource type ${type}`);
104
+ }
105
+ },
106
+ };
107
+ pulumi.runtime.registerResourceModule("vonage", "index", _module);
108
+ pulumi.runtime.registerResourcePackage("vonage", {
109
+ version: utilities.getVersion(),
110
+ constructProvider: (name, type, urn) => {
111
+ if (type !== "pulumi:providers:vonage") {
112
+ throw new Error(`unknown provider type ${type}`);
113
+ }
114
+ return new exports.Provider(name, undefined, { urn });
115
+ },
116
+ });
117
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;;;;;;;;;;;;;;;;;;;;;;;;AAEjF,uDAAyC;AACzC,uDAAyC;AAK5B,QAAA,SAAS,GAA2C,IAAW,CAAC;AAC7E,SAAS,CAAC,QAAQ,CAAC,OAAO,EAAE,CAAC,WAAW,CAAC,EAAE,GAAG,EAAE,CAAC,OAAO,CAAC,aAAa,CAAC,CAAC,CAAC;AAI5D,QAAA,WAAW,GAA+C,IAAW,CAAC;AACnF,SAAS,CAAC,QAAQ,CAAC,OAAO,EAAE,CAAC,aAAa,CAAC,EAAE,GAAG,EAAE,CAAC,OAAO,CAAC,eAAe,CAAC,CAAC,CAAC;AAGhE,QAAA,iBAAiB,GAA2D,IAAW,CAAC;AACxF,QAAA,uBAAuB,GAAiE,IAAW,CAAC;AACjH,SAAS,CAAC,QAAQ,CAAC,OAAO,EAAE,CAAC,mBAAmB,EAAC,yBAAyB,CAAC,EAAE,GAAG,EAAE,CAAC,OAAO,CAAC,qBAAqB,CAAC,CAAC,CAAC;AAGtG,QAAA,YAAY,GAAiD,IAAW,CAAC;AACzE,QAAA,kBAAkB,GAAuD,IAAW,CAAC;AAClG,SAAS,CAAC,QAAQ,CAAC,OAAO,EAAE,CAAC,cAAc,EAAC,oBAAoB,CAAC,EAAE,GAAG,EAAE,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,CAAC,CAAA;YACxD,KAAK,6BAA6B;gBAC9B,OAAO,IAAI,sBAAc,CAAC,IAAI,EAAO,SAAS,EAAE,EAAE,GAAG,EAAE,CAAC,CAAA;YAC5D,KAAK,qCAAqC;gBACtC,OAAO,IAAI,8BAAsB,CAAC,IAAI,EAAO,SAAS,EAAE,EAAE,GAAG,EAAE,CAAC,CAAA;YACpE;gBACI,MAAM,IAAI,KAAK,CAAC,yBAAyB,IAAI,EAAE,CAAC,CAAC;SACxD;IACL,CAAC;CACJ,CAAC;AACF,MAAM,CAAC,OAAO,CAAC,sBAAsB,CAAC,QAAQ,EAAE,OAAO,EAAE,OAAO,CAAC,CAAA;AACjE,MAAM,CAAC,OAAO,CAAC,uBAAuB,CAAC,QAAQ,EAAE;IAC7C,OAAO,EAAE,SAAS,CAAC,UAAU,EAAE;IAC/B,iBAAiB,EAAE,CAAC,IAAY,EAAE,IAAY,EAAE,GAAW,EAA2B,EAAE;QACpF,IAAI,IAAI,KAAK,yBAAyB,EAAE;YACpC,MAAM,IAAI,KAAK,CAAC,yBAAyB,IAAI,EAAE,CAAC,CAAC;SACpD;QACD,OAAO,IAAI,gBAAQ,CAAC,IAAI,EAAO,SAAS,EAAE,EAAE,GAAG,EAAE,CAAC,CAAC;IACvD,CAAC;CACJ,CAAC,CAAC"}
@@ -0,0 +1,130 @@
1
+ import * as pulumi from "@pulumi/pulumi";
2
+ /**
3
+ * A Vonage virtual number. Buying is billed; cancelling is permanent. Both are explicit inputs (acquisition, cancelOnDelete).
4
+ */
5
+ export declare class Number extends pulumi.CustomResource {
6
+ /**
7
+ * Get an existing Number 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): Number;
15
+ /**
16
+ * Returns true if the given object is an instance of Number. 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 Number;
20
+ /**
21
+ * How the number joins the account: "buy" purchases it (BILLED, fails if the account already owns it) or "adopt" manages a number the account already owns (fails if it does not). Only used when the resource is created; later changes are ignored (no diff, no replace), because replacing a number would cancel it.
22
+ */
23
+ readonly acquisition: pulumi.Output<string>;
24
+ /**
25
+ * Application ID the number is linked to. Mutually exclusive with moHttpUrl and voiceCallbackType/Value.
26
+ */
27
+ readonly appId: pulumi.Output<string | undefined>;
28
+ /**
29
+ * Required explicit choice. true: destroying this resource CANCELS (permanently releases) the number. false: destroying it only removes it from Pulumi state; the number stays on the account and keeps billing.
30
+ */
31
+ readonly cancelOnDelete: pulumi.Output<boolean>;
32
+ /**
33
+ * Two-letter ISO 3166-1 alpha-2 country code of the number, for example US. Changing it replaces the resource.
34
+ */
35
+ readonly country: pulumi.Output<string>;
36
+ /**
37
+ * Voice routing type Vonage currently applies (sip, tel or app).
38
+ */
39
+ readonly effectiveVoiceCallbackType: pulumi.Output<string>;
40
+ /**
41
+ * Voice routing target Vonage currently applies.
42
+ */
43
+ readonly effectiveVoiceCallbackValue: pulumi.Output<string>;
44
+ /**
45
+ * Capabilities of the number, for example SMS, VOICE, MMS.
46
+ */
47
+ readonly features: pulumi.Output<string[]>;
48
+ /**
49
+ * Effective inbound messages routing type (app or empty).
50
+ */
51
+ readonly messagesCallbackType: pulumi.Output<string>;
52
+ /**
53
+ * Effective inbound messages routing target (usually the linked application ID).
54
+ */
55
+ readonly messagesCallbackValue: pulumi.Output<string>;
56
+ /**
57
+ * Webhook for inbound SMS when the number is not linked to an application.
58
+ */
59
+ readonly moHttpUrl: pulumi.Output<string | undefined>;
60
+ /**
61
+ * The number in international format without a leading plus, for example 14155550100. Changing it replaces the resource.
62
+ */
63
+ readonly msisdn: pulumi.Output<string>;
64
+ /**
65
+ * Number type reported by Vonage, for example landline, mobile-lvn or landline-toll-free.
66
+ */
67
+ readonly type: pulumi.Output<string>;
68
+ /**
69
+ * Voice routing type when the number is not linked to an application: sip, tel or app.
70
+ */
71
+ readonly voiceCallbackType: pulumi.Output<string | undefined>;
72
+ /**
73
+ * Voice routing target: a SIP URI, a phone number or an application ID, matching voiceCallbackType.
74
+ */
75
+ readonly voiceCallbackValue: pulumi.Output<string | undefined>;
76
+ /**
77
+ * Webhook that receives voice call status events for the number.
78
+ */
79
+ readonly voiceStatusCallback: pulumi.Output<string | undefined>;
80
+ /**
81
+ * Create a Number resource with the given unique name, arguments, and options.
82
+ *
83
+ * @param name The _unique_ name of the resource.
84
+ * @param args The arguments to use to populate this resource's properties.
85
+ * @param opts A bag of options that control this resource's behavior.
86
+ */
87
+ constructor(name: string, args: NumberArgs, opts?: pulumi.CustomResourceOptions);
88
+ }
89
+ /**
90
+ * The set of arguments for constructing a Number resource.
91
+ */
92
+ export interface NumberArgs {
93
+ /**
94
+ * How the number joins the account: "buy" purchases it (BILLED, fails if the account already owns it) or "adopt" manages a number the account already owns (fails if it does not). Only used when the resource is created; later changes are ignored (no diff, no replace), because replacing a number would cancel it.
95
+ */
96
+ acquisition: pulumi.Input<string>;
97
+ /**
98
+ * Application ID the number is linked to. Mutually exclusive with moHttpUrl and voiceCallbackType/Value.
99
+ */
100
+ appId?: pulumi.Input<string | undefined>;
101
+ /**
102
+ * Required explicit choice. true: destroying this resource CANCELS (permanently releases) the number. false: destroying it only removes it from Pulumi state; the number stays on the account and keeps billing.
103
+ */
104
+ cancelOnDelete: pulumi.Input<boolean>;
105
+ /**
106
+ * Two-letter ISO 3166-1 alpha-2 country code of the number, for example US. Changing it replaces the resource.
107
+ */
108
+ country: pulumi.Input<string>;
109
+ /**
110
+ * Webhook for inbound SMS when the number is not linked to an application.
111
+ */
112
+ moHttpUrl?: pulumi.Input<string | undefined>;
113
+ /**
114
+ * The number in international format without a leading plus, for example 14155550100. Changing it replaces the resource.
115
+ */
116
+ msisdn: pulumi.Input<string>;
117
+ /**
118
+ * Voice routing type when the number is not linked to an application: sip, tel or app.
119
+ */
120
+ voiceCallbackType?: pulumi.Input<string | undefined>;
121
+ /**
122
+ * Voice routing target: a SIP URI, a phone number or an application ID, matching voiceCallbackType.
123
+ */
124
+ voiceCallbackValue?: pulumi.Input<string | undefined>;
125
+ /**
126
+ * Webhook that receives voice call status events for the number.
127
+ */
128
+ voiceStatusCallback?: pulumi.Input<string | undefined>;
129
+ }
130
+ //# sourceMappingURL=number.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"number.d.ts","sourceRoot":"","sources":["../number.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,MAAM,MAAM,gBAAgB,CAAC;AAGzC;;GAEG;AACH,qBAAa,MAAO,SAAQ,MAAM,CAAC,cAAc;IAC7C;;;;;;;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,MAAM;IAOzG;;;OAGG;WACW,UAAU,CAAC,GAAG,EAAE,GAAG,GAAG,GAAG,IAAI,MAAM;IAOjD;;OAEG;IACH,SAAwB,WAAW,EAAE,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;IAC3D;;OAEG;IACH,SAAwB,KAAK,EAAE,MAAM,CAAC,MAAM,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;IACjE;;OAEG;IACH,SAAwB,cAAc,EAAE,MAAM,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC;IAC/D;;OAEG;IACH,SAAwB,OAAO,EAAE,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;IACvD;;OAEG;IACH,SAAgC,0BAA0B,EAAE,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;IAClF;;OAEG;IACH,SAAgC,2BAA2B,EAAE,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,CAA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C,MAAM,CAAC,CAAC;IAC9B;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;IAC7C;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;IAC7B;;OAEG;IACH,iBAAiB,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;IACrD;;OAEG;IACH,kBAAkB,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;IACtD;;OAEG;IACH,mBAAmB,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;CAC1D"}
package/bin/number.js ADDED
@@ -0,0 +1,121 @@
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.Number = void 0;
29
+ const pulumi = __importStar(require("@pulumi/pulumi"));
30
+ const utilities = __importStar(require("./utilities"));
31
+ /**
32
+ * A Vonage virtual number. Buying is billed; cancelling is permanent. Both are explicit inputs (acquisition, cancelOnDelete).
33
+ */
34
+ class Number extends pulumi.CustomResource {
35
+ /**
36
+ * Get an existing Number 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 Number(name, undefined, { ...opts, id: id });
45
+ }
46
+ /** @internal */
47
+ static __pulumiType = 'vonage:index:Number';
48
+ /**
49
+ * Returns true if the given object is an instance of Number. 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'] === Number.__pulumiType;
57
+ }
58
+ /**
59
+ * Create a Number 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?.acquisition === undefined && !opts.urn) {
70
+ throw new Error("Missing required property 'acquisition'");
71
+ }
72
+ if (args?.cancelOnDelete === undefined && !opts.urn) {
73
+ throw new Error("Missing required property 'cancelOnDelete'");
74
+ }
75
+ if (args?.country === undefined && !opts.urn) {
76
+ throw new Error("Missing required property 'country'");
77
+ }
78
+ if (args?.msisdn === undefined && !opts.urn) {
79
+ throw new Error("Missing required property 'msisdn'");
80
+ }
81
+ resourceInputs["acquisition"] = args?.acquisition;
82
+ resourceInputs["appId"] = args?.appId;
83
+ resourceInputs["cancelOnDelete"] = args?.cancelOnDelete;
84
+ resourceInputs["country"] = args?.country;
85
+ resourceInputs["moHttpUrl"] = args?.moHttpUrl;
86
+ resourceInputs["msisdn"] = args?.msisdn;
87
+ resourceInputs["voiceCallbackType"] = args?.voiceCallbackType;
88
+ resourceInputs["voiceCallbackValue"] = args?.voiceCallbackValue;
89
+ resourceInputs["voiceStatusCallback"] = args?.voiceStatusCallback;
90
+ resourceInputs["effectiveVoiceCallbackType"] = undefined /*out*/;
91
+ resourceInputs["effectiveVoiceCallbackValue"] = undefined /*out*/;
92
+ resourceInputs["features"] = undefined /*out*/;
93
+ resourceInputs["messagesCallbackType"] = undefined /*out*/;
94
+ resourceInputs["messagesCallbackValue"] = undefined /*out*/;
95
+ resourceInputs["type"] = undefined /*out*/;
96
+ }
97
+ else {
98
+ resourceInputs["acquisition"] = undefined /*out*/;
99
+ resourceInputs["appId"] = undefined /*out*/;
100
+ resourceInputs["cancelOnDelete"] = undefined /*out*/;
101
+ resourceInputs["country"] = undefined /*out*/;
102
+ resourceInputs["effectiveVoiceCallbackType"] = undefined /*out*/;
103
+ resourceInputs["effectiveVoiceCallbackValue"] = undefined /*out*/;
104
+ resourceInputs["features"] = undefined /*out*/;
105
+ resourceInputs["messagesCallbackType"] = undefined /*out*/;
106
+ resourceInputs["messagesCallbackValue"] = undefined /*out*/;
107
+ resourceInputs["moHttpUrl"] = undefined /*out*/;
108
+ resourceInputs["msisdn"] = undefined /*out*/;
109
+ resourceInputs["type"] = undefined /*out*/;
110
+ resourceInputs["voiceCallbackType"] = undefined /*out*/;
111
+ resourceInputs["voiceCallbackValue"] = undefined /*out*/;
112
+ resourceInputs["voiceStatusCallback"] = undefined /*out*/;
113
+ }
114
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
115
+ const replaceOnChanges = { replaceOnChanges: ["country", "msisdn"] };
116
+ opts = pulumi.mergeOptions(opts, replaceOnChanges);
117
+ super(Number.__pulumiType, name, resourceInputs, opts);
118
+ }
119
+ }
120
+ exports.Number = Number;
121
+ //# sourceMappingURL=number.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"number.js","sourceRoot":"","sources":["../number.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;;;;;;;;;;;;;;;;;;;;;;;;AAEjF,uDAAyC;AACzC,uDAAyC;AAEzC;;GAEG;AACH,MAAa,MAAO,SAAQ,MAAM,CAAC,cAAc;IAC7C;;;;;;;OAOG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,IAAmC;QAC5F,OAAO,IAAI,MAAM,CAAC,IAAI,EAAE,SAAgB,EAAE,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC;IACnE,CAAC;IAED,gBAAgB;IACT,MAAM,CAAU,YAAY,GAAG,qBAAqB,CAAC;IAE5D;;;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,MAAM,CAAC,YAAY,CAAC;IACvD,CAAC;IA+DD;;;;;;OAMG;IACH,YAAY,IAAY,EAAE,IAAgB,EAAE,IAAmC;QAC3E,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,CAAC,IAAI,CAAC,EAAE,EAAE;YACV,IAAI,IAAI,EAAE,WAAW,KAAK,SAAS,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE;gBAC9C,MAAM,IAAI,KAAK,CAAC,yCAAyC,CAAC,CAAC;aAC9D;YACD,IAAI,IAAI,EAAE,cAAc,KAAK,SAAS,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE;gBACjD,MAAM,IAAI,KAAK,CAAC,4CAA4C,CAAC,CAAC;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AAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAC3D,CAAC;;AAnJL,wBAoJC"}
@@ -0,0 +1,38 @@
1
+ {
2
+ "name": "@pulumi-labs/vonage",
3
+ "version": "0.1.0",
4
+ "description": "Experimental: manage Vonage (formerly Nexmo) applications, numbers, subaccounts, API secrets and Verify v2 templates as infrastructure with Pulumi.",
5
+ "keywords": [
6
+ "pulumi",
7
+ "vonage",
8
+ "nexmo",
9
+ "communications",
10
+ "sms",
11
+ "voice",
12
+ "category/network"
13
+ ],
14
+ "homepage": "https://developer.vonage.com",
15
+ "repository": "https://github.com/pulumi-labs/pulumi-vonage",
16
+ "license": "Apache-2.0",
17
+ "scripts": {
18
+ "build": "tsc && cp package.json bin/"
19
+ },
20
+ "dependencies": {
21
+ "@pulumi/pulumi": "^3.142.0"
22
+ },
23
+ "devDependencies": {
24
+ "@types/node": "^20",
25
+ "typescript": "^4.7.0"
26
+ },
27
+ "pulumi": {
28
+ "resource": true,
29
+ "name": "vonage",
30
+ "version": "0.1.0",
31
+ "server": "github://api.github.com/pulumi-labs/pulumi-vonage"
32
+ },
33
+ "main": "bin/index.js",
34
+ "types": "bin/index.d.ts",
35
+ "files": [
36
+ "bin/"
37
+ ]
38
+ }
@@ -0,0 +1,70 @@
1
+ import * as pulumi from "@pulumi/pulumi";
2
+ export declare class Provider extends pulumi.ProviderResource {
3
+ /**
4
+ * Returns true if the given object is an instance of Provider. This is designed to work even
5
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
6
+ */
7
+ static isInstance(obj: any): obj is Provider;
8
+ /**
9
+ * Override for the Vonage API host (default https://api.nexmo.com). Intended for testing against a mock server. Falls back to VONAGE_API_BASE_URL.
10
+ */
11
+ readonly apiBaseUrl: pulumi.Output<string | undefined>;
12
+ /**
13
+ * The Vonage account API key (the 8-character key shown in the Vonage API Dashboard). Falls back to the VONAGE_API_KEY environment variable.
14
+ */
15
+ readonly apiKey: pulumi.Output<string | undefined>;
16
+ /**
17
+ * The Vonage account API secret. Falls back to the VONAGE_API_SECRET environment variable.
18
+ */
19
+ readonly apiSecret: pulumi.Output<string | undefined>;
20
+ /**
21
+ * Optional Vonage application ID for JWT-authenticated runtime APIs. Falls back to VONAGE_APPLICATION_ID. Not used by the resources in this release.
22
+ */
23
+ readonly applicationId: pulumi.Output<string | undefined>;
24
+ /**
25
+ * Optional PEM private key for the application named by applicationId. Falls back to VONAGE_PRIVATE_KEY. Not used by the resources in this release.
26
+ */
27
+ readonly privateKey: pulumi.Output<string | undefined>;
28
+ /**
29
+ * Override for the Vonage REST host used by the Numbers API (default https://rest.nexmo.com). Intended for testing against a mock server. Falls back to VONAGE_REST_BASE_URL.
30
+ */
31
+ readonly restBaseUrl: pulumi.Output<string | undefined>;
32
+ /**
33
+ * Create a Provider resource with the given unique name, arguments, and options.
34
+ *
35
+ * @param name The _unique_ name of the resource.
36
+ * @param args The arguments to use to populate this resource's properties.
37
+ * @param opts A bag of options that control this resource's behavior.
38
+ */
39
+ constructor(name: string, args?: ProviderArgs, opts?: pulumi.ResourceOptions);
40
+ }
41
+ /**
42
+ * The set of arguments for constructing a Provider resource.
43
+ */
44
+ export interface ProviderArgs {
45
+ /**
46
+ * Override for the Vonage API host (default https://api.nexmo.com). Intended for testing against a mock server. Falls back to VONAGE_API_BASE_URL.
47
+ */
48
+ apiBaseUrl?: pulumi.Input<string | undefined>;
49
+ /**
50
+ * The Vonage account API key (the 8-character key shown in the Vonage API Dashboard). Falls back to the VONAGE_API_KEY environment variable.
51
+ */
52
+ apiKey?: pulumi.Input<string | undefined>;
53
+ /**
54
+ * The Vonage account API secret. Falls back to the VONAGE_API_SECRET environment variable.
55
+ */
56
+ apiSecret?: pulumi.Input<string | undefined>;
57
+ /**
58
+ * Optional Vonage application ID for JWT-authenticated runtime APIs. Falls back to VONAGE_APPLICATION_ID. Not used by the resources in this release.
59
+ */
60
+ applicationId?: pulumi.Input<string | undefined>;
61
+ /**
62
+ * Optional PEM private key for the application named by applicationId. Falls back to VONAGE_PRIVATE_KEY. Not used by the resources in this release.
63
+ */
64
+ privateKey?: pulumi.Input<string | undefined>;
65
+ /**
66
+ * Override for the Vonage REST host used by the Numbers API (default https://rest.nexmo.com). Intended for testing against a mock server. Falls back to VONAGE_REST_BASE_URL.
67
+ */
68
+ restBaseUrl?: pulumi.Input<string | undefined>;
69
+ }
70
+ //# sourceMappingURL=provider.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"provider.d.ts","sourceRoot":"","sources":["../provider.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,MAAM,MAAM,gBAAgB,CAAC;AAGzC,qBAAa,QAAS,SAAQ,MAAM,CAAC,gBAAgB;IAIjD;;;OAGG;WACW,UAAU,CAAC,GAAG,EAAE,GAAG,GAAG,GAAG,IAAI,QAAQ;IAOnD;;OAEG;IACH,SAAwB,UAAU,EAAE,MAAM,CAAC,MAAM,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;IACtE;;OAEG;IACH,SAAwB,MAAM,EAAE,MAAM,CAAC,MAAM,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;IAClE;;OAEG;IACH,SAAwB,SAAS,EAAE,MAAM,CAAC,MAAM,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;IACrE;;OAEG;IACH,SAAwB,aAAa,EAAE,MAAM,CAAC,MAAM,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;IACzE;;OAEG;IACH,SAAwB,UAAU,EAAE,MAAM,CAAC,MAAM,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;IACtE;;OAEG;IACH,SAAwB,WAAW,EAAE,MAAM,CAAC,MAAM,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;IAEvE;;;;;;OAMG;gBACS,IAAI,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,YAAY,EAAE,IAAI,CAAC,EAAE,MAAM,CAAC,eAAe;CAgB/E;AAED;;GAEG;AACH,MAAM,WAAW,YAAY;IACzB;;OAEG;IACH,UAAU,CAA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