@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.
- package/README.md +1 -0
- package/bin/apiSecret.d.ts +62 -0
- package/bin/apiSecret.d.ts.map +1 -0
- package/bin/apiSecret.js +92 -0
- package/bin/apiSecret.js.map +1 -0
- package/bin/application.d.ts +136 -0
- package/bin/application.d.ts.map +1 -0
- package/bin/application.js +110 -0
- package/bin/application.js.map +1 -0
- package/bin/config/index.d.ts +2 -0
- package/bin/config/index.d.ts.map +1 -0
- package/bin/config/index.js +21 -0
- package/bin/config/index.js.map +1 -0
- package/bin/config/vars.d.ts +25 -0
- package/bin/config/vars.d.ts.map +1 -0
- package/bin/config/vars.js +67 -0
- package/bin/config/vars.js.map +1 -0
- package/bin/getAccountBalance.d.ts +22 -0
- package/bin/getAccountBalance.d.ts.map +1 -0
- package/bin/getAccountBalance.js +48 -0
- package/bin/getAccountBalance.js.map +1 -0
- package/bin/getApiSecret.d.ts +44 -0
- package/bin/getApiSecret.d.ts.map +1 -0
- package/bin/getApiSecret.js +53 -0
- package/bin/getApiSecret.js.map +1 -0
- package/bin/getApiSecrets.d.ts +33 -0
- package/bin/getApiSecrets.d.ts.map +1 -0
- package/bin/getApiSecrets.js +53 -0
- package/bin/getApiSecrets.js.map +1 -0
- package/bin/getApplication.d.ts +48 -0
- package/bin/getApplication.d.ts.map +1 -0
- package/bin/getApplication.js +55 -0
- package/bin/getApplication.js.map +1 -0
- package/bin/getApplications.d.ts +29 -0
- package/bin/getApplications.d.ts.map +1 -0
- package/bin/getApplications.js +53 -0
- package/bin/getApplications.js.map +1 -0
- package/bin/getAvailableNumbers.d.ts +81 -0
- package/bin/getAvailableNumbers.d.ts.map +1 -0
- package/bin/getAvailableNumbers.js +63 -0
- package/bin/getAvailableNumbers.js.map +1 -0
- package/bin/getNumber.d.ts +72 -0
- package/bin/getNumber.d.ts.map +1 -0
- package/bin/getNumber.js +53 -0
- package/bin/getNumber.js.map +1 -0
- package/bin/getNumbers.d.ts +61 -0
- package/bin/getNumbers.d.ts.map +1 -0
- package/bin/getNumbers.js +61 -0
- package/bin/getNumbers.js.map +1 -0
- package/bin/getSubAccount.d.ts +56 -0
- package/bin/getSubAccount.d.ts.map +1 -0
- package/bin/getSubAccount.js +51 -0
- package/bin/getSubAccount.js.map +1 -0
- package/bin/getSubAccounts.d.ts +33 -0
- package/bin/getSubAccounts.d.ts.map +1 -0
- package/bin/getSubAccounts.js +53 -0
- package/bin/getSubAccounts.js.map +1 -0
- package/bin/getVerifyTemplate.d.ts +44 -0
- package/bin/getVerifyTemplate.d.ts.map +1 -0
- package/bin/getVerifyTemplate.js +55 -0
- package/bin/getVerifyTemplate.js.map +1 -0
- package/bin/getVerifyTemplateFragment.d.ts +76 -0
- package/bin/getVerifyTemplateFragment.d.ts.map +1 -0
- package/bin/getVerifyTemplateFragment.js +57 -0
- package/bin/getVerifyTemplateFragment.js.map +1 -0
- package/bin/index.d.ts +61 -0
- package/bin/index.d.ts.map +1 -0
- package/bin/index.js +117 -0
- package/bin/index.js.map +1 -0
- package/bin/number.d.ts +130 -0
- package/bin/number.d.ts.map +1 -0
- package/bin/number.js +121 -0
- package/bin/number.js.map +1 -0
- package/bin/package.json +38 -0
- package/bin/provider.d.ts +70 -0
- package/bin/provider.d.ts.map +1 -0
- package/bin/provider.js +69 -0
- package/bin/provider.js.map +1 -0
- package/bin/subAccount.d.ts +90 -0
- package/bin/subAccount.d.ts.map +1 -0
- package/bin/subAccount.js +100 -0
- package/bin/subAccount.js.map +1 -0
- package/bin/types/index.d.ts +4 -0
- package/bin/types/index.d.ts.map +1 -0
- package/bin/types/index.js +34 -0
- package/bin/types/index.js.map +1 -0
- package/bin/types/input.d.ts +219 -0
- package/bin/types/input.d.ts.map +1 -0
- package/bin/types/input.js +5 -0
- package/bin/types/input.js.map +1 -0
- package/bin/types/output.d.ts +340 -0
- package/bin/types/output.d.ts.map +1 -0
- package/bin/types/output.js +5 -0
- package/bin/types/output.js.map +1 -0
- package/bin/utilities.d.ts +5 -0
- package/bin/utilities.d.ts.map +1 -0
- package/bin/utilities.js +114 -0
- package/bin/utilities.js.map +1 -0
- package/bin/verifyTemplate.d.ts +54 -0
- package/bin/verifyTemplate.d.ts.map +1 -0
- package/bin/verifyTemplate.js +86 -0
- package/bin/verifyTemplate.js.map +1 -0
- package/bin/verifyTemplateFragment.d.ts +78 -0
- package/bin/verifyTemplateFragment.d.ts.map +1 -0
- package/bin/verifyTemplateFragment.js +105 -0
- package/bin/verifyTemplateFragment.js.map +1 -0
- package/package.json +38 -1
|
@@ -0,0 +1,340 @@
|
|
|
1
|
+
import * as outputs from "../types/output";
|
|
2
|
+
export interface ApiSecretSummary {
|
|
3
|
+
/**
|
|
4
|
+
* ISO 8601 creation timestamp.
|
|
5
|
+
*/
|
|
6
|
+
createdAt: string;
|
|
7
|
+
/**
|
|
8
|
+
* The secret ID.
|
|
9
|
+
*/
|
|
10
|
+
secretId: string;
|
|
11
|
+
}
|
|
12
|
+
export interface ApplicationSummary {
|
|
13
|
+
/**
|
|
14
|
+
* Application ID.
|
|
15
|
+
*/
|
|
16
|
+
applicationId: string;
|
|
17
|
+
/**
|
|
18
|
+
* Enabled capabilities, sorted.
|
|
19
|
+
*/
|
|
20
|
+
capabilities: string[];
|
|
21
|
+
/**
|
|
22
|
+
* Application name.
|
|
23
|
+
*/
|
|
24
|
+
name: string;
|
|
25
|
+
}
|
|
26
|
+
export interface AvailableNumber {
|
|
27
|
+
/**
|
|
28
|
+
* Monthly rental in euros, as Vonage reports it (a decimal string).
|
|
29
|
+
*/
|
|
30
|
+
cost: string;
|
|
31
|
+
/**
|
|
32
|
+
* Country code.
|
|
33
|
+
*/
|
|
34
|
+
country: string;
|
|
35
|
+
/**
|
|
36
|
+
* Capabilities: SMS, VOICE, MMS.
|
|
37
|
+
*/
|
|
38
|
+
features: string[];
|
|
39
|
+
/**
|
|
40
|
+
* The number in international format without a leading plus.
|
|
41
|
+
*/
|
|
42
|
+
msisdn: string;
|
|
43
|
+
/**
|
|
44
|
+
* Number type.
|
|
45
|
+
*/
|
|
46
|
+
type: string;
|
|
47
|
+
}
|
|
48
|
+
export interface GetSubAccountResult {
|
|
49
|
+
/**
|
|
50
|
+
* Subaccount API key.
|
|
51
|
+
*/
|
|
52
|
+
apiKey: string;
|
|
53
|
+
/**
|
|
54
|
+
* Subaccount balance, unset when it uses the primary balance.
|
|
55
|
+
*/
|
|
56
|
+
balance?: number;
|
|
57
|
+
/**
|
|
58
|
+
* ISO 8601 creation timestamp.
|
|
59
|
+
*/
|
|
60
|
+
createdAt: string;
|
|
61
|
+
/**
|
|
62
|
+
* Subaccount credit limit, unset when it uses the primary balance.
|
|
63
|
+
*/
|
|
64
|
+
creditLimit?: number;
|
|
65
|
+
/**
|
|
66
|
+
* Subaccount name.
|
|
67
|
+
*/
|
|
68
|
+
name: string;
|
|
69
|
+
/**
|
|
70
|
+
* API key of the owning primary account.
|
|
71
|
+
*/
|
|
72
|
+
primaryAccountApiKey: string;
|
|
73
|
+
/**
|
|
74
|
+
* Whether the subaccount is suspended.
|
|
75
|
+
*/
|
|
76
|
+
suspended: boolean;
|
|
77
|
+
/**
|
|
78
|
+
* Whether the subaccount draws on the primary account balance.
|
|
79
|
+
*/
|
|
80
|
+
usePrimaryAccountBalance: boolean;
|
|
81
|
+
}
|
|
82
|
+
export interface MeetingsCapability {
|
|
83
|
+
/**
|
|
84
|
+
* Webhook that receives recording status changes (POST only).
|
|
85
|
+
*/
|
|
86
|
+
recordingChanged?: outputs.Webhook;
|
|
87
|
+
/**
|
|
88
|
+
* Webhook that receives room changes (POST only).
|
|
89
|
+
*/
|
|
90
|
+
roomChanged?: outputs.Webhook;
|
|
91
|
+
/**
|
|
92
|
+
* Webhook that receives session changes (POST only).
|
|
93
|
+
*/
|
|
94
|
+
sessionChanged?: outputs.Webhook;
|
|
95
|
+
}
|
|
96
|
+
export interface MessagesCapability {
|
|
97
|
+
/**
|
|
98
|
+
* Whether inbound media URLs require authentication.
|
|
99
|
+
*/
|
|
100
|
+
authenticateInboundMedia?: boolean;
|
|
101
|
+
/**
|
|
102
|
+
* Webhook that receives inbound messages (POST only).
|
|
103
|
+
*/
|
|
104
|
+
inboundUrl?: outputs.Webhook;
|
|
105
|
+
/**
|
|
106
|
+
* Webhook that receives message status events (POST only).
|
|
107
|
+
*/
|
|
108
|
+
statusUrl?: outputs.Webhook;
|
|
109
|
+
/**
|
|
110
|
+
* Messages API version, for example v1 or v0.1.
|
|
111
|
+
*/
|
|
112
|
+
version?: string;
|
|
113
|
+
}
|
|
114
|
+
export interface NetworkApisCapability {
|
|
115
|
+
/**
|
|
116
|
+
* The Network APIs application ID.
|
|
117
|
+
*/
|
|
118
|
+
networkApplicationId: string;
|
|
119
|
+
/**
|
|
120
|
+
* Redirect URI for the Network APIs OAuth flow.
|
|
121
|
+
*/
|
|
122
|
+
redirectUri?: string;
|
|
123
|
+
}
|
|
124
|
+
export interface OwnedNumberSummary {
|
|
125
|
+
/**
|
|
126
|
+
* Linked application ID, empty if none.
|
|
127
|
+
*/
|
|
128
|
+
appId: string;
|
|
129
|
+
/**
|
|
130
|
+
* Country code.
|
|
131
|
+
*/
|
|
132
|
+
country: string;
|
|
133
|
+
/**
|
|
134
|
+
* Capabilities: SMS, VOICE, MMS.
|
|
135
|
+
*/
|
|
136
|
+
features: string[];
|
|
137
|
+
/**
|
|
138
|
+
* Messages routing type.
|
|
139
|
+
*/
|
|
140
|
+
messagesCallbackType: string;
|
|
141
|
+
/**
|
|
142
|
+
* Messages routing target.
|
|
143
|
+
*/
|
|
144
|
+
messagesCallbackValue: string;
|
|
145
|
+
/**
|
|
146
|
+
* Inbound SMS webhook, empty if none.
|
|
147
|
+
*/
|
|
148
|
+
moHttpUrl: string;
|
|
149
|
+
/**
|
|
150
|
+
* The number in international format without a leading plus.
|
|
151
|
+
*/
|
|
152
|
+
msisdn: string;
|
|
153
|
+
/**
|
|
154
|
+
* Number type (landline, mobile-lvn, landline-toll-free).
|
|
155
|
+
*/
|
|
156
|
+
type: string;
|
|
157
|
+
/**
|
|
158
|
+
* Voice routing type.
|
|
159
|
+
*/
|
|
160
|
+
voiceCallbackType: string;
|
|
161
|
+
/**
|
|
162
|
+
* Voice routing target.
|
|
163
|
+
*/
|
|
164
|
+
voiceCallbackValue: string;
|
|
165
|
+
}
|
|
166
|
+
export interface RtcCapability {
|
|
167
|
+
/**
|
|
168
|
+
* Webhook that receives RTC events.
|
|
169
|
+
*/
|
|
170
|
+
eventUrl?: outputs.Webhook;
|
|
171
|
+
/**
|
|
172
|
+
* Whether Vonage signs webhook requests.
|
|
173
|
+
*/
|
|
174
|
+
signedCallbacks?: boolean;
|
|
175
|
+
}
|
|
176
|
+
export interface VerifyCapability {
|
|
177
|
+
/**
|
|
178
|
+
* Webhook that receives Verify request status events (POST only).
|
|
179
|
+
*/
|
|
180
|
+
statusUrl?: outputs.Webhook;
|
|
181
|
+
/**
|
|
182
|
+
* Verify API version, for example v2.
|
|
183
|
+
*/
|
|
184
|
+
version?: string;
|
|
185
|
+
}
|
|
186
|
+
export interface VideoCapability {
|
|
187
|
+
/**
|
|
188
|
+
* Recording storage and encryption settings.
|
|
189
|
+
*/
|
|
190
|
+
storage?: outputs.VideoStorage;
|
|
191
|
+
/**
|
|
192
|
+
* Webhooks that receive Video API events.
|
|
193
|
+
*/
|
|
194
|
+
webhooks?: outputs.VideoWebhooks;
|
|
195
|
+
}
|
|
196
|
+
export interface VideoStorage {
|
|
197
|
+
/**
|
|
198
|
+
* Whether recordings go to the configured cloud storage.
|
|
199
|
+
*/
|
|
200
|
+
cloudStorage?: boolean;
|
|
201
|
+
/**
|
|
202
|
+
* Whether video streams use end-to-end encryption.
|
|
203
|
+
*/
|
|
204
|
+
endToEndEncryption?: boolean;
|
|
205
|
+
/**
|
|
206
|
+
* Whether recordings are encrypted server side.
|
|
207
|
+
*/
|
|
208
|
+
serverSideEncryption?: boolean;
|
|
209
|
+
}
|
|
210
|
+
export interface VideoWebhook {
|
|
211
|
+
/**
|
|
212
|
+
* Whether Vonage calls the webhook (server default true).
|
|
213
|
+
*/
|
|
214
|
+
active?: boolean;
|
|
215
|
+
/**
|
|
216
|
+
* The URL Vonage calls.
|
|
217
|
+
*/
|
|
218
|
+
address: string;
|
|
219
|
+
}
|
|
220
|
+
export interface VideoWebhooks {
|
|
221
|
+
/**
|
|
222
|
+
* Receives archive (recording) status changes.
|
|
223
|
+
*/
|
|
224
|
+
archiveStatus?: outputs.VideoWebhook;
|
|
225
|
+
/**
|
|
226
|
+
* Receives broadcast status changes.
|
|
227
|
+
*/
|
|
228
|
+
broadcastStatus?: outputs.VideoWebhook;
|
|
229
|
+
/**
|
|
230
|
+
* Receives live caption status changes.
|
|
231
|
+
*/
|
|
232
|
+
captionsStatus?: outputs.VideoWebhook;
|
|
233
|
+
/**
|
|
234
|
+
* Receives an event when a client connects to a session.
|
|
235
|
+
*/
|
|
236
|
+
connectionCreated?: outputs.VideoWebhook;
|
|
237
|
+
/**
|
|
238
|
+
* Receives an event when a client disconnects from a session.
|
|
239
|
+
*/
|
|
240
|
+
connectionDestroyed?: outputs.VideoWebhook;
|
|
241
|
+
/**
|
|
242
|
+
* Receives Experience Composer render status changes.
|
|
243
|
+
*/
|
|
244
|
+
renderStatus?: outputs.VideoWebhook;
|
|
245
|
+
/**
|
|
246
|
+
* Receives an event when a session is created.
|
|
247
|
+
*/
|
|
248
|
+
sessionCreated?: outputs.VideoWebhook;
|
|
249
|
+
/**
|
|
250
|
+
* Receives an event when a session is destroyed.
|
|
251
|
+
*/
|
|
252
|
+
sessionDestroyed?: outputs.VideoWebhook;
|
|
253
|
+
/**
|
|
254
|
+
* Receives session notifications.
|
|
255
|
+
*/
|
|
256
|
+
sessionNotification?: outputs.VideoWebhook;
|
|
257
|
+
/**
|
|
258
|
+
* Receives an event when a SIP call is created.
|
|
259
|
+
*/
|
|
260
|
+
sipCallCreated?: outputs.VideoWebhook;
|
|
261
|
+
/**
|
|
262
|
+
* Receives an event when a SIP call is destroyed.
|
|
263
|
+
*/
|
|
264
|
+
sipCallDestroyed?: outputs.VideoWebhook;
|
|
265
|
+
/**
|
|
266
|
+
* Receives an event when a SIP call is force-muted.
|
|
267
|
+
*/
|
|
268
|
+
sipCallMuteForced?: outputs.VideoWebhook;
|
|
269
|
+
/**
|
|
270
|
+
* Receives an event when a SIP call is updated.
|
|
271
|
+
*/
|
|
272
|
+
sipCallUpdated?: outputs.VideoWebhook;
|
|
273
|
+
/**
|
|
274
|
+
* Receives an event when a stream is created.
|
|
275
|
+
*/
|
|
276
|
+
streamCreated?: outputs.VideoWebhook;
|
|
277
|
+
/**
|
|
278
|
+
* Receives an event when a stream is destroyed.
|
|
279
|
+
*/
|
|
280
|
+
streamDestroyed?: outputs.VideoWebhook;
|
|
281
|
+
}
|
|
282
|
+
export interface VoiceCapability {
|
|
283
|
+
/**
|
|
284
|
+
* Webhook Vonage calls to fetch the NCCO that controls an inbound or answered call.
|
|
285
|
+
*/
|
|
286
|
+
answerUrl?: outputs.VoiceWebhook;
|
|
287
|
+
/**
|
|
288
|
+
* Hours a named conversation stays active after creation (1-9000).
|
|
289
|
+
*/
|
|
290
|
+
conversationsTtl?: number;
|
|
291
|
+
/**
|
|
292
|
+
* Webhook that receives call state events.
|
|
293
|
+
*/
|
|
294
|
+
eventUrl?: outputs.VoiceWebhook;
|
|
295
|
+
/**
|
|
296
|
+
* Webhook used if answerUrl is offline or returns an HTTP error.
|
|
297
|
+
*/
|
|
298
|
+
fallbackAnswerUrl?: outputs.VoiceWebhook;
|
|
299
|
+
/**
|
|
300
|
+
* Days call legs persist (1-31).
|
|
301
|
+
*/
|
|
302
|
+
legPersistenceTime?: number;
|
|
303
|
+
/**
|
|
304
|
+
* Region that handles inbound, programmable SIP and SIP Connect calls: na-east, na-west, eu-east, eu-west, apac-sng or apac-australia.
|
|
305
|
+
*/
|
|
306
|
+
region?: string;
|
|
307
|
+
/**
|
|
308
|
+
* Whether Vonage signs webhook requests (server default true).
|
|
309
|
+
*/
|
|
310
|
+
signedCallbacks?: boolean;
|
|
311
|
+
}
|
|
312
|
+
export interface VoiceWebhook {
|
|
313
|
+
/**
|
|
314
|
+
* The URL Vonage calls.
|
|
315
|
+
*/
|
|
316
|
+
address: string;
|
|
317
|
+
/**
|
|
318
|
+
* Milliseconds Vonage waits to connect to the webhook (300-1000).
|
|
319
|
+
*/
|
|
320
|
+
connectTimeout?: number;
|
|
321
|
+
/**
|
|
322
|
+
* HTTP method Vonage uses: GET or POST.
|
|
323
|
+
*/
|
|
324
|
+
httpMethod?: string;
|
|
325
|
+
/**
|
|
326
|
+
* Milliseconds Vonage waits for the webhook response to be read (1000-10000).
|
|
327
|
+
*/
|
|
328
|
+
socketTimeout?: number;
|
|
329
|
+
}
|
|
330
|
+
export interface Webhook {
|
|
331
|
+
/**
|
|
332
|
+
* The URL Vonage calls.
|
|
333
|
+
*/
|
|
334
|
+
address: string;
|
|
335
|
+
/**
|
|
336
|
+
* HTTP method Vonage uses: GET or POST. Messages, verify and meetings webhooks only accept POST.
|
|
337
|
+
*/
|
|
338
|
+
httpMethod?: string;
|
|
339
|
+
}
|
|
340
|
+
//# sourceMappingURL=output.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"output.d.ts","sourceRoot":"","sources":["../../types/output.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,OAAO,MAAM,iBAAiB,CAAC;AAE3C,MAAM,WAAW,gBAAgB;IAC7B;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;IAClB;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,WAAW,kBAAkB;IAC/B;;OAEG;IACH,aAAa,EAAE,MAAM,CAAC;IACtB;;OAEG;IACH,YAAY,EAAE,MAAM,EAAE,CAAC;IACvB;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,WAAW,eAAe;IAC5B;;OAEG;IACH,IAAI,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ChB;;OAEG;IACH,eAAe,CAAC,EAAE,OAAO,CAAC;CAC7B;AAED,MAAM,WAAW,YAAY;IACzB;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC;IAChB;;OAEG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;CAC1B;AAED,MAAM,WAAW,OAAO;IACpB;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC;IAChB;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;CACvB"}
|
|
@@ -0,0 +1,5 @@
|
|
|
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
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
+
//# sourceMappingURL=output.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"output.js","sourceRoot":"","sources":["../../types/output.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export declare function getEnv(...vars: string[]): string | undefined;
|
|
2
|
+
export declare function getEnvBoolean(...vars: string[]): boolean | undefined;
|
|
3
|
+
export declare function getEnvNumber(...vars: string[]): number | undefined;
|
|
4
|
+
export declare function getVersion(): string;
|
|
5
|
+
//# sourceMappingURL=utilities.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"utilities.d.ts","sourceRoot":"","sources":["../utilities.ts"],"names":[],"mappings":"AAOA,wBAAgB,MAAM,CAAC,GAAG,IAAI,EAAE,MAAM,EAAE,GAAG,MAAM,GAAG,SAAS,CAQ5D;AAED,wBAAgB,aAAa,CAAC,GAAG,IAAI,EAAE,MAAM,EAAE,GAAG,OAAO,GAAG,SAAS,CAapE;AAED,wBAAgB,YAAY,CAAC,GAAG,IAAI,EAAE,MAAM,EAAE,GAAG,MAAM,GAAG,SAAS,CASlE;AAED,wBAAgB,UAAU,IAAI,MAAM,CAQnC"}
|
package/bin/utilities.js
ADDED
|
@@ -0,0 +1,114 @@
|
|
|
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.callAsync = exports.lazyLoad = exports.resourceOptsDefaults = exports.getVersion = exports.getEnvNumber = exports.getEnvBoolean = exports.getEnv = void 0;
|
|
29
|
+
const runtime = __importStar(require("@pulumi/pulumi/runtime"));
|
|
30
|
+
function getEnv(...vars) {
|
|
31
|
+
for (const v of vars) {
|
|
32
|
+
const value = process.env[v];
|
|
33
|
+
if (value) {
|
|
34
|
+
return value;
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
return undefined;
|
|
38
|
+
}
|
|
39
|
+
exports.getEnv = getEnv;
|
|
40
|
+
function getEnvBoolean(...vars) {
|
|
41
|
+
const s = getEnv(...vars);
|
|
42
|
+
if (s !== undefined) {
|
|
43
|
+
// NOTE: these values are taken from https://golang.org/src/strconv/atob.go?s=351:391#L1, which is what
|
|
44
|
+
// Terraform uses internally when parsing boolean values.
|
|
45
|
+
if (["1", "t", "T", "true", "TRUE", "True"].find(v => v === s) !== undefined) {
|
|
46
|
+
return true;
|
|
47
|
+
}
|
|
48
|
+
if (["0", "f", "F", "false", "FALSE", "False"].find(v => v === s) !== undefined) {
|
|
49
|
+
return false;
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
return undefined;
|
|
53
|
+
}
|
|
54
|
+
exports.getEnvBoolean = getEnvBoolean;
|
|
55
|
+
function getEnvNumber(...vars) {
|
|
56
|
+
const s = getEnv(...vars);
|
|
57
|
+
if (s !== undefined) {
|
|
58
|
+
const f = parseFloat(s);
|
|
59
|
+
if (!isNaN(f)) {
|
|
60
|
+
return f;
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
return undefined;
|
|
64
|
+
}
|
|
65
|
+
exports.getEnvNumber = getEnvNumber;
|
|
66
|
+
function getVersion() {
|
|
67
|
+
let version = require('./package.json').version;
|
|
68
|
+
// Node allows for the version to be prefixed by a "v", while semver doesn't.
|
|
69
|
+
// If there is a v, strip it off.
|
|
70
|
+
if (version.indexOf('v') === 0) {
|
|
71
|
+
version = version.slice(1);
|
|
72
|
+
}
|
|
73
|
+
return version;
|
|
74
|
+
}
|
|
75
|
+
exports.getVersion = getVersion;
|
|
76
|
+
/** @internal */
|
|
77
|
+
function resourceOptsDefaults() {
|
|
78
|
+
return { version: getVersion(), pluginDownloadURL: "github://api.github.com/pulumi-labs/pulumi-vonage" };
|
|
79
|
+
}
|
|
80
|
+
exports.resourceOptsDefaults = resourceOptsDefaults;
|
|
81
|
+
/** @internal */
|
|
82
|
+
function lazyLoad(exports, props, loadModule) {
|
|
83
|
+
for (let property of props) {
|
|
84
|
+
Object.defineProperty(exports, property, {
|
|
85
|
+
enumerable: true,
|
|
86
|
+
get: function () {
|
|
87
|
+
return loadModule()[property];
|
|
88
|
+
},
|
|
89
|
+
});
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
exports.lazyLoad = lazyLoad;
|
|
93
|
+
/** @internal */
|
|
94
|
+
async function callAsync(tok, props, res, opts) {
|
|
95
|
+
const o = runtime.call(tok, props, res);
|
|
96
|
+
const value = await o.promise(true /*withUnknowns*/);
|
|
97
|
+
const isKnown = await o.isKnown;
|
|
98
|
+
const isSecret = await o.isSecret;
|
|
99
|
+
const problem = !isKnown ? "an unknown value"
|
|
100
|
+
: isSecret ? "a secret value"
|
|
101
|
+
: undefined;
|
|
102
|
+
// Ingoring o.resources silently. They are typically non-empty, r.f() calls include r as a dependency.
|
|
103
|
+
if (problem) {
|
|
104
|
+
throw new Error(`Plain resource method "${tok}" incorrectly returned ${problem}. ` +
|
|
105
|
+
"This is an error in the provider, please report this to the provider developer.");
|
|
106
|
+
}
|
|
107
|
+
// Extract a single property if requested.
|
|
108
|
+
if (opts && opts.property) {
|
|
109
|
+
return value[opts.property];
|
|
110
|
+
}
|
|
111
|
+
return value;
|
|
112
|
+
}
|
|
113
|
+
exports.callAsync = callAsync;
|
|
114
|
+
//# sourceMappingURL=utilities.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"utilities.js","sourceRoot":"","sources":["../utilities.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;;;;;;;;;;;;;;;;;;;;;;;;AAGjF,gEAAkD;AAGlD,SA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,CAAC;IAChB,sGAAsG;IACtG,IAAI,OAAO,EAAE;QACT,MAAM,IAAI,KAAK,CAAC,0BAA0B,GAAG,0BAA0B,OAAO,IAAI;YAC9E,iFAAiF,CAAC,CAAC;KAC1F;IACD,0CAA0C;IAC1C,IAAI,IAAI,IAAI,IAAI,CAAC,QAAQ,EAAE;QACvB,OAAO,KAAK,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;KAC/B;IACD,OAAO,KAAK,CAAC;AACjB,CAAC;AAxBD,8BAwBC"}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
/**
|
|
3
|
+
* A Verify v2 template. Import with the template ID.
|
|
4
|
+
*/
|
|
5
|
+
export declare class VerifyTemplate extends pulumi.CustomResource {
|
|
6
|
+
/**
|
|
7
|
+
* Get an existing VerifyTemplate 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): VerifyTemplate;
|
|
15
|
+
/**
|
|
16
|
+
* Returns true if the given object is an instance of VerifyTemplate. 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 VerifyTemplate;
|
|
20
|
+
/**
|
|
21
|
+
* Whether this is the account's default template for Verify requests that name none (server default false). Making another template the default un-defaults this one outside Pulumi, which shows as drift.
|
|
22
|
+
*/
|
|
23
|
+
readonly isDefault: pulumi.Output<boolean | undefined>;
|
|
24
|
+
/**
|
|
25
|
+
* Template name.
|
|
26
|
+
*/
|
|
27
|
+
readonly name: pulumi.Output<string>;
|
|
28
|
+
/**
|
|
29
|
+
* The Vonage-assigned template ID (also the resource ID).
|
|
30
|
+
*/
|
|
31
|
+
readonly templateId: pulumi.Output<string>;
|
|
32
|
+
/**
|
|
33
|
+
* Create a VerifyTemplate 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: VerifyTemplateArgs, opts?: pulumi.CustomResourceOptions);
|
|
40
|
+
}
|
|
41
|
+
/**
|
|
42
|
+
* The set of arguments for constructing a VerifyTemplate resource.
|
|
43
|
+
*/
|
|
44
|
+
export interface VerifyTemplateArgs {
|
|
45
|
+
/**
|
|
46
|
+
* Whether this is the account's default template for Verify requests that name none (server default false). Making another template the default un-defaults this one outside Pulumi, which shows as drift.
|
|
47
|
+
*/
|
|
48
|
+
isDefault?: pulumi.Input<boolean | undefined>;
|
|
49
|
+
/**
|
|
50
|
+
* Template name.
|
|
51
|
+
*/
|
|
52
|
+
name: pulumi.Input<string>;
|
|
53
|
+
}
|
|
54
|
+
//# sourceMappingURL=verifyTemplate.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"verifyTemplate.d.ts","sourceRoot":"","sources":["../verifyTemplate.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,MAAM,MAAM,gBAAgB,CAAC;AAGzC;;GAEG;AACH,qBAAa,cAAe,SAAQ,MAAM,CAAC,cAAc;IACrD;;;;;;;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,cAAc;IAOjH;;;OAGG;WACW,UAAU,CAAC,GAAG,EAAE,GAAG,GAAG,GAAG,IAAI,cAAc;IAOzD;;OAEG;IACH,SAAwB,SAAS,EAAE,MAAM,CAAC,MAAM,CAAC,OAAO,GAAG,SAAS,CAAC,CAAC;IACtE;;OAEG;IACH,SAAwB,IAAI,EAAE,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;IACpD;;OAEG;IACH,SAAgC,UAAU,EAAE,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;IAElE;;;;;;OAMG;gBACS,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,kBAAkB,EAAE,IAAI,CAAC,EAAE,MAAM,CAAC,qBAAqB;CAkB1F;AAED;;GAEG;AACH,MAAM,WAAW,kBAAkB;IAC/B;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,OAAO,GAAG,SAAS,CAAC,CAAC;IAC9C;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;CAC9B"}
|
|
@@ -0,0 +1,86 @@
|
|
|
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.VerifyTemplate = void 0;
|
|
29
|
+
const pulumi = __importStar(require("@pulumi/pulumi"));
|
|
30
|
+
const utilities = __importStar(require("./utilities"));
|
|
31
|
+
/**
|
|
32
|
+
* A Verify v2 template. Import with the template ID.
|
|
33
|
+
*/
|
|
34
|
+
class VerifyTemplate extends pulumi.CustomResource {
|
|
35
|
+
/**
|
|
36
|
+
* Get an existing VerifyTemplate 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 VerifyTemplate(name, undefined, { ...opts, id: id });
|
|
45
|
+
}
|
|
46
|
+
/** @internal */
|
|
47
|
+
static __pulumiType = 'vonage:index:VerifyTemplate';
|
|
48
|
+
/**
|
|
49
|
+
* Returns true if the given object is an instance of VerifyTemplate. 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'] === VerifyTemplate.__pulumiType;
|
|
57
|
+
}
|
|
58
|
+
/**
|
|
59
|
+
* Create a VerifyTemplate 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["isDefault"] = args?.isDefault;
|
|
73
|
+
resourceInputs["name"] = args?.name;
|
|
74
|
+
resourceInputs["templateId"] = undefined /*out*/;
|
|
75
|
+
}
|
|
76
|
+
else {
|
|
77
|
+
resourceInputs["isDefault"] = undefined /*out*/;
|
|
78
|
+
resourceInputs["name"] = undefined /*out*/;
|
|
79
|
+
resourceInputs["templateId"] = undefined /*out*/;
|
|
80
|
+
}
|
|
81
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
82
|
+
super(VerifyTemplate.__pulumiType, name, resourceInputs, opts);
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
exports.VerifyTemplate = VerifyTemplate;
|
|
86
|
+
//# sourceMappingURL=verifyTemplate.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"verifyTemplate.js","sourceRoot":"","sources":["../verifyTemplate.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;;;;;;;;;;;;;;;;;;;;;;;;AAEjF,uDAAyC;AACzC,uDAAyC;AAEzC;;GAEG;AACH,MAAa,cAAe,SAAQ,MAAM,CAAC,cAAc;IACrD;;;;;;;OAOG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,IAAmC;QAC5F,OAAO,IAAI,cAAc,CAAC,IAAI,EAAE,SAAgB,EAA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