@burdenoff/microfe-channel 2026.510.112

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 (156) hide show
  1. package/README.md +147 -0
  2. package/dist/channel/ChannelRoot.d.ts +32 -0
  3. package/dist/channel/ChannelRoot.d.ts.map +1 -0
  4. package/dist/channel/ChannelRoot.js +81 -0
  5. package/dist/channel/ChannelRoot.js.map +1 -0
  6. package/dist/channel/ChannelRoutes.d.ts +10 -0
  7. package/dist/channel/ChannelRoutes.d.ts.map +1 -0
  8. package/dist/channel/ChannelRoutes.js +104 -0
  9. package/dist/channel/ChannelRoutes.js.map +1 -0
  10. package/dist/channel/components/AdapterCredentialsForm.d.ts +20 -0
  11. package/dist/channel/components/AdapterCredentialsForm.d.ts.map +1 -0
  12. package/dist/channel/components/AdapterCredentialsForm.js +230 -0
  13. package/dist/channel/components/AdapterCredentialsForm.js.map +1 -0
  14. package/dist/channel/components/FeatureNotEnabled.d.ts +10 -0
  15. package/dist/channel/components/FeatureNotEnabled.d.ts.map +1 -0
  16. package/dist/channel/components/FeatureNotEnabled.js +32 -0
  17. package/dist/channel/components/FeatureNotEnabled.js.map +1 -0
  18. package/dist/channel/components/PermissionGuard.d.ts +15 -0
  19. package/dist/channel/components/PermissionGuard.d.ts.map +1 -0
  20. package/dist/channel/components/PermissionGuard.js +23 -0
  21. package/dist/channel/components/PermissionGuard.js.map +1 -0
  22. package/dist/channel/config/adapterCredentials.d.ts +44 -0
  23. package/dist/channel/config/adapterCredentials.d.ts.map +1 -0
  24. package/dist/channel/config/adapterCredentials.js +946 -0
  25. package/dist/channel/config/adapterCredentials.js.map +1 -0
  26. package/dist/channel/constants/permissions.d.ts +32 -0
  27. package/dist/channel/constants/permissions.d.ts.map +1 -0
  28. package/dist/channel/constants/permissions.js +30 -0
  29. package/dist/channel/constants/permissions.js.map +1 -0
  30. package/dist/channel/graphql/global-client.d.ts +11 -0
  31. package/dist/channel/graphql/global-client.d.ts.map +1 -0
  32. package/dist/channel/graphql/global-client.js +56 -0
  33. package/dist/channel/graphql/global-client.js.map +1 -0
  34. package/dist/channel/hooks/useChannelOrgSettings.d.ts +22 -0
  35. package/dist/channel/hooks/useChannelOrgSettings.d.ts.map +1 -0
  36. package/dist/channel/hooks/useChannelOrgSettings.js +61 -0
  37. package/dist/channel/hooks/useChannelOrgSettings.js.map +1 -0
  38. package/dist/channel/hooks/useChannelSubscription.d.ts +36 -0
  39. package/dist/channel/hooks/useChannelSubscription.d.ts.map +1 -0
  40. package/dist/channel/hooks/useChannelSubscription.js +111 -0
  41. package/dist/channel/hooks/useChannelSubscription.js.map +1 -0
  42. package/dist/channel/hooks/useChannels.d.ts +214 -0
  43. package/dist/channel/hooks/useChannels.d.ts.map +1 -0
  44. package/dist/channel/hooks/useChannels.js +416 -0
  45. package/dist/channel/hooks/useChannels.js.map +1 -0
  46. package/dist/channel/index.d.ts +12 -0
  47. package/dist/channel/index.d.ts.map +1 -0
  48. package/dist/channel/index.js +2 -0
  49. package/dist/channel/modules/channels/hooks/useExport.d.ts +45 -0
  50. package/dist/channel/modules/channels/hooks/useExport.d.ts.map +1 -0
  51. package/dist/channel/modules/channels/hooks/useExport.js +195 -0
  52. package/dist/channel/modules/channels/hooks/useExport.js.map +1 -0
  53. package/dist/channel/modules/channels/i18n.d.ts +14 -0
  54. package/dist/channel/modules/channels/i18n.d.ts.map +1 -0
  55. package/dist/channel/modules/channels/i18n.js +110 -0
  56. package/dist/channel/modules/channels/i18n.js.map +1 -0
  57. package/dist/channel/modules/channels/pages/ChannelDashboardPage.d.ts +14 -0
  58. package/dist/channel/modules/channels/pages/ChannelDashboardPage.d.ts.map +1 -0
  59. package/dist/channel/modules/channels/pages/ChannelDashboardPage.js +680 -0
  60. package/dist/channel/modules/channels/pages/ChannelDashboardPage.js.map +1 -0
  61. package/dist/channel/modules/channels/pages/ChannelDetailsPage.d.ts +7 -0
  62. package/dist/channel/modules/channels/pages/ChannelDetailsPage.d.ts.map +1 -0
  63. package/dist/channel/modules/channels/pages/ChannelDetailsPage.js +949 -0
  64. package/dist/channel/modules/channels/pages/ChannelDetailsPage.js.map +1 -0
  65. package/dist/channel/modules/channels/pages/ChannelSettingsPage.d.ts +7 -0
  66. package/dist/channel/modules/channels/pages/ChannelSettingsPage.d.ts.map +1 -0
  67. package/dist/channel/modules/channels/pages/ChannelSettingsPage.js +404 -0
  68. package/dist/channel/modules/channels/pages/ChannelSettingsPage.js.map +1 -0
  69. package/dist/channel/modules/channels/pages/ChannelUsersPage.d.ts +7 -0
  70. package/dist/channel/modules/channels/pages/ChannelUsersPage.d.ts.map +1 -0
  71. package/dist/channel/modules/channels/pages/ChannelUsersPage.js +315 -0
  72. package/dist/channel/modules/channels/pages/ChannelUsersPage.js.map +1 -0
  73. package/dist/channel/modules/channels/pages/ChannelsListPage.d.ts +7 -0
  74. package/dist/channel/modules/channels/pages/ChannelsListPage.d.ts.map +1 -0
  75. package/dist/channel/modules/channels/pages/ChannelsListPage.js +604 -0
  76. package/dist/channel/modules/channels/pages/ChannelsListPage.js.map +1 -0
  77. package/dist/channel/modules/channels/pages/ConnectionDetailsPage.d.ts +7 -0
  78. package/dist/channel/modules/channels/pages/ConnectionDetailsPage.d.ts.map +1 -0
  79. package/dist/channel/modules/channels/pages/ConnectionDetailsPage.js +323 -0
  80. package/dist/channel/modules/channels/pages/ConnectionDetailsPage.js.map +1 -0
  81. package/dist/channel/modules/channels/pages/ConnectionsListPage.d.ts +7 -0
  82. package/dist/channel/modules/channels/pages/ConnectionsListPage.d.ts.map +1 -0
  83. package/dist/channel/modules/channels/pages/ConnectionsListPage.js +276 -0
  84. package/dist/channel/modules/channels/pages/ConnectionsListPage.js.map +1 -0
  85. package/dist/channel/modules/channels/pages/CreateChannelPage.d.ts +12 -0
  86. package/dist/channel/modules/channels/pages/CreateChannelPage.d.ts.map +1 -0
  87. package/dist/channel/modules/channels/pages/CreateChannelPage.js +456 -0
  88. package/dist/channel/modules/channels/pages/CreateChannelPage.js.map +1 -0
  89. package/dist/channel/modules/channels/pages/CreateConnectionPage.d.ts +11 -0
  90. package/dist/channel/modules/channels/pages/CreateConnectionPage.d.ts.map +1 -0
  91. package/dist/channel/modules/channels/pages/CreateConnectionPage.js +219 -0
  92. package/dist/channel/modules/channels/pages/CreateConnectionPage.js.map +1 -0
  93. package/dist/channel/modules/channels/pages/DeliveryHistoryPage.d.ts +7 -0
  94. package/dist/channel/modules/channels/pages/DeliveryHistoryPage.d.ts.map +1 -0
  95. package/dist/channel/modules/channels/pages/DeliveryHistoryPage.js +375 -0
  96. package/dist/channel/modules/channels/pages/DeliveryHistoryPage.js.map +1 -0
  97. package/dist/channel/modules/channels/pages/EditChannelPage.d.ts +8 -0
  98. package/dist/channel/modules/channels/pages/EditChannelPage.d.ts.map +1 -0
  99. package/dist/channel/modules/channels/pages/EditChannelPage.js +459 -0
  100. package/dist/channel/modules/channels/pages/EditChannelPage.js.map +1 -0
  101. package/dist/channel/modules/channels/pages/EditConnectionPage.d.ts +10 -0
  102. package/dist/channel/modules/channels/pages/EditConnectionPage.d.ts.map +1 -0
  103. package/dist/channel/modules/channels/pages/EditConnectionPage.js +199 -0
  104. package/dist/channel/modules/channels/pages/EditConnectionPage.js.map +1 -0
  105. package/dist/channel/modules/channels/pages/SendMessagePage.d.ts +8 -0
  106. package/dist/channel/modules/channels/pages/SendMessagePage.d.ts.map +1 -0
  107. package/dist/channel/modules/channels/pages/SendMessagePage.js +403 -0
  108. package/dist/channel/modules/channels/pages/SendMessagePage.js.map +1 -0
  109. package/dist/channel/modules/channels/pages/WebhookEventsPage.d.ts +7 -0
  110. package/dist/channel/modules/channels/pages/WebhookEventsPage.d.ts.map +1 -0
  111. package/dist/channel/modules/channels/pages/WebhookEventsPage.js +303 -0
  112. package/dist/channel/modules/channels/pages/WebhookEventsPage.js.map +1 -0
  113. package/dist/channel/modules/channels/pages/index.d.ts +18 -0
  114. package/dist/channel/modules/channels/pages/index.d.ts.map +1 -0
  115. package/dist/channel/modules/channels/pages/index.js +14 -0
  116. package/dist/channel/pages/ChannelLandingPage.d.ts +9 -0
  117. package/dist/channel/pages/ChannelLandingPage.d.ts.map +1 -0
  118. package/dist/channel/pages/ChannelLandingPage.js +72 -0
  119. package/dist/channel/pages/ChannelLandingPage.js.map +1 -0
  120. package/dist/channel/providers/ChannelProvider.d.ts +16 -0
  121. package/dist/channel/providers/ChannelProvider.d.ts.map +1 -0
  122. package/dist/channel/providers/ChannelProvider.js +35 -0
  123. package/dist/channel/providers/ChannelProvider.js.map +1 -0
  124. package/dist/channel/types/index.d.ts +89 -0
  125. package/dist/channel/types/index.d.ts.map +1 -0
  126. package/dist/channel/utils/shellBridge.d.ts +59 -0
  127. package/dist/channel/utils/shellBridge.d.ts.map +1 -0
  128. package/dist/channel/utils/shellBridge.js +36 -0
  129. package/dist/channel/utils/shellBridge.js.map +1 -0
  130. package/dist/dev/App.d.ts +6 -0
  131. package/dist/dev/App.d.ts.map +1 -0
  132. package/dist/dev/main.d.ts +2 -0
  133. package/dist/dev/main.d.ts.map +1 -0
  134. package/dist/generated/global-operations.d.ts +1547 -0
  135. package/dist/generated/global-operations.d.ts.map +1 -0
  136. package/dist/generated/global-operations.js +466 -0
  137. package/dist/generated/global-operations.js.map +1 -0
  138. package/dist/generated/global-types.d.ts +21289 -0
  139. package/dist/generated/global-types.d.ts.map +1 -0
  140. package/dist/generated/global-types.js +14 -0
  141. package/dist/generated/global-types.js.map +1 -0
  142. package/dist/generated/wspace-operations.d.ts +2 -0
  143. package/dist/generated/wspace-operations.d.ts.map +1 -0
  144. package/dist/generated/wspace-types.d.ts +55214 -0
  145. package/dist/generated/wspace-types.d.ts.map +1 -0
  146. package/dist/index.d.ts +5 -0
  147. package/dist/index.d.ts.map +1 -0
  148. package/dist/index.js +4 -0
  149. package/dist/node_modules/@apollo/client/errors/CombinedGraphQLErrors.js +24 -0
  150. package/dist/node_modules/@apollo/client/errors/CombinedGraphQLErrors.js.map +1 -0
  151. package/dist/node_modules/@apollo/client/errors/utils.js +16 -0
  152. package/dist/node_modules/@apollo/client/errors/utils.js.map +1 -0
  153. package/dist/utils/nativeBridge.d.ts +3 -0
  154. package/dist/utils/nativeBridge.d.ts.map +1 -0
  155. package/dist/utils/nativeBridge.js +2 -0
  156. package/package.json +116 -0
@@ -0,0 +1,946 @@
1
+ //#region src/channel/config/adapterCredentials.ts
2
+ var e = {
3
+ TWILIO_SMS: {
4
+ displayName: "Twilio SMS",
5
+ description: "Send SMS via Twilio",
6
+ docUrl: "https://www.twilio.com/docs/sms",
7
+ credentials: [
8
+ {
9
+ key: "accountSid",
10
+ displayName: "Account SID",
11
+ description: "Your Twilio Account SID (starts with AC)",
12
+ type: "text",
13
+ required: !0,
14
+ placeholder: "ACxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
15
+ validation: { pattern: "^AC[a-zA-Z0-9]{32}$" }
16
+ },
17
+ {
18
+ key: "authToken",
19
+ displayName: "Auth Token",
20
+ description: "Your Twilio Auth Token",
21
+ type: "password",
22
+ required: !0,
23
+ placeholder: "Your auth token"
24
+ },
25
+ {
26
+ key: "fromNumber",
27
+ displayName: "From Phone Number",
28
+ description: "Sender phone number in E.164 format",
29
+ type: "text",
30
+ required: !0,
31
+ placeholder: "+1234567890",
32
+ validation: { pattern: "^\\+[1-9]\\d{1,14}$" }
33
+ }
34
+ ],
35
+ platformMetadata: [{
36
+ key: "statusCallbackUrl",
37
+ displayName: "Status Callback URL",
38
+ description: "Webhook URL for delivery status updates (optional)",
39
+ type: "text",
40
+ required: !1,
41
+ placeholder: "https://your-domain.com/webhooks/twilio"
42
+ }]
43
+ },
44
+ AWS_SNS: {
45
+ displayName: "AWS SNS",
46
+ description: "Send SMS via Amazon Simple Notification Service",
47
+ docUrl: "https://docs.aws.amazon.com/sns/",
48
+ credentials: [
49
+ {
50
+ key: "accessKeyId",
51
+ displayName: "AWS Access Key ID",
52
+ description: "Your AWS access key ID",
53
+ type: "text",
54
+ required: !0,
55
+ placeholder: "AKIAIOSFODNN7EXAMPLE"
56
+ },
57
+ {
58
+ key: "secretAccessKey",
59
+ displayName: "AWS Secret Access Key",
60
+ description: "Your AWS secret access key",
61
+ type: "password",
62
+ required: !0,
63
+ placeholder: "Your secret access key"
64
+ },
65
+ {
66
+ key: "region",
67
+ displayName: "AWS Region",
68
+ description: "AWS region for SNS service",
69
+ type: "select",
70
+ required: !0,
71
+ defaultValue: "us-east-1",
72
+ options: [
73
+ {
74
+ value: "us-east-1",
75
+ label: "US East (N. Virginia)"
76
+ },
77
+ {
78
+ value: "us-east-2",
79
+ label: "US East (Ohio)"
80
+ },
81
+ {
82
+ value: "us-west-1",
83
+ label: "US West (N. California)"
84
+ },
85
+ {
86
+ value: "us-west-2",
87
+ label: "US West (Oregon)"
88
+ },
89
+ {
90
+ value: "ca-central-1",
91
+ label: "Canada (Central)"
92
+ },
93
+ {
94
+ value: "ca-west-1",
95
+ label: "Canada West (Calgary)"
96
+ },
97
+ {
98
+ value: "eu-west-1",
99
+ label: "Europe (Ireland)"
100
+ },
101
+ {
102
+ value: "eu-west-2",
103
+ label: "Europe (London)"
104
+ },
105
+ {
106
+ value: "eu-west-3",
107
+ label: "Europe (Paris)"
108
+ },
109
+ {
110
+ value: "eu-central-1",
111
+ label: "Europe (Frankfurt)"
112
+ },
113
+ {
114
+ value: "eu-central-2",
115
+ label: "Europe (Zurich)"
116
+ },
117
+ {
118
+ value: "eu-north-1",
119
+ label: "Europe (Stockholm)"
120
+ },
121
+ {
122
+ value: "eu-south-1",
123
+ label: "Europe (Milan)"
124
+ },
125
+ {
126
+ value: "eu-south-2",
127
+ label: "Europe (Spain)"
128
+ },
129
+ {
130
+ value: "ap-south-1",
131
+ label: "Asia Pacific (Mumbai)"
132
+ },
133
+ {
134
+ value: "ap-south-2",
135
+ label: "Asia Pacific (Hyderabad)"
136
+ },
137
+ {
138
+ value: "ap-southeast-1",
139
+ label: "Asia Pacific (Singapore)"
140
+ },
141
+ {
142
+ value: "ap-southeast-2",
143
+ label: "Asia Pacific (Sydney)"
144
+ },
145
+ {
146
+ value: "ap-southeast-3",
147
+ label: "Asia Pacific (Jakarta)"
148
+ },
149
+ {
150
+ value: "ap-southeast-4",
151
+ label: "Asia Pacific (Melbourne)"
152
+ },
153
+ {
154
+ value: "ap-northeast-1",
155
+ label: "Asia Pacific (Tokyo)"
156
+ },
157
+ {
158
+ value: "ap-northeast-2",
159
+ label: "Asia Pacific (Seoul)"
160
+ },
161
+ {
162
+ value: "ap-northeast-3",
163
+ label: "Asia Pacific (Osaka)"
164
+ },
165
+ {
166
+ value: "ap-east-1",
167
+ label: "Asia Pacific (Hong Kong)"
168
+ },
169
+ {
170
+ value: "sa-east-1",
171
+ label: "South America (São Paulo)"
172
+ },
173
+ {
174
+ value: "me-south-1",
175
+ label: "Middle East (Bahrain)"
176
+ },
177
+ {
178
+ value: "me-central-1",
179
+ label: "Middle East (UAE)"
180
+ },
181
+ {
182
+ value: "af-south-1",
183
+ label: "Africa (Cape Town)"
184
+ },
185
+ {
186
+ value: "il-central-1",
187
+ label: "Israel (Tel Aviv)"
188
+ }
189
+ ]
190
+ }
191
+ ],
192
+ platformMetadata: [{
193
+ key: "senderId",
194
+ displayName: "Sender ID",
195
+ description: "Sender ID for supported regions (optional)",
196
+ type: "text",
197
+ required: !1,
198
+ placeholder: "YourBrand"
199
+ }, {
200
+ key: "messageType",
201
+ displayName: "Message Type",
202
+ description: "SMS message type",
203
+ type: "select",
204
+ required: !1,
205
+ defaultValue: "Transactional",
206
+ options: [{
207
+ value: "Transactional",
208
+ label: "Transactional"
209
+ }, {
210
+ value: "Promotional",
211
+ label: "Promotional"
212
+ }]
213
+ }]
214
+ },
215
+ SENDGRID: {
216
+ displayName: "SendGrid",
217
+ description: "Send emails via SendGrid",
218
+ docUrl: "https://docs.sendgrid.com/",
219
+ credentials: [
220
+ {
221
+ key: "apiKey",
222
+ displayName: "API Key",
223
+ description: "Your SendGrid API Key",
224
+ type: "password",
225
+ required: !0,
226
+ placeholder: "SG.xxxx..."
227
+ },
228
+ {
229
+ key: "fromEmail",
230
+ displayName: "From Email",
231
+ description: "Verified sender email address",
232
+ type: "text",
233
+ required: !0,
234
+ placeholder: "noreply@yourdomain.com"
235
+ },
236
+ {
237
+ key: "fromName",
238
+ displayName: "From Name",
239
+ description: "Sender display name",
240
+ type: "text",
241
+ required: !1,
242
+ placeholder: "Your Company",
243
+ defaultValue: "Notification"
244
+ }
245
+ ]
246
+ },
247
+ AWS_SES: {
248
+ displayName: "AWS SES",
249
+ description: "Send emails via Amazon Simple Email Service",
250
+ docUrl: "https://docs.aws.amazon.com/ses/",
251
+ credentials: [
252
+ {
253
+ key: "accessKeyId",
254
+ displayName: "AWS Access Key ID",
255
+ description: "Your AWS access key ID",
256
+ type: "text",
257
+ required: !0,
258
+ placeholder: "AKIAIOSFODNN7EXAMPLE"
259
+ },
260
+ {
261
+ key: "secretAccessKey",
262
+ displayName: "AWS Secret Access Key",
263
+ description: "Your AWS secret access key",
264
+ type: "password",
265
+ required: !0,
266
+ placeholder: "Your secret access key"
267
+ },
268
+ {
269
+ key: "region",
270
+ displayName: "AWS Region",
271
+ description: "AWS region for SES service",
272
+ type: "select",
273
+ required: !0,
274
+ defaultValue: "us-east-1",
275
+ options: [
276
+ {
277
+ value: "us-east-1",
278
+ label: "US East (N. Virginia)"
279
+ },
280
+ {
281
+ value: "us-east-2",
282
+ label: "US East (Ohio)"
283
+ },
284
+ {
285
+ value: "us-west-1",
286
+ label: "US West (N. California)"
287
+ },
288
+ {
289
+ value: "us-west-2",
290
+ label: "US West (Oregon)"
291
+ },
292
+ {
293
+ value: "ca-central-1",
294
+ label: "Canada (Central)"
295
+ },
296
+ {
297
+ value: "ca-west-1",
298
+ label: "Canada West (Calgary)"
299
+ },
300
+ {
301
+ value: "eu-west-1",
302
+ label: "Europe (Ireland)"
303
+ },
304
+ {
305
+ value: "eu-west-2",
306
+ label: "Europe (London)"
307
+ },
308
+ {
309
+ value: "eu-west-3",
310
+ label: "Europe (Paris)"
311
+ },
312
+ {
313
+ value: "eu-central-1",
314
+ label: "Europe (Frankfurt)"
315
+ },
316
+ {
317
+ value: "eu-central-2",
318
+ label: "Europe (Zurich)"
319
+ },
320
+ {
321
+ value: "eu-north-1",
322
+ label: "Europe (Stockholm)"
323
+ },
324
+ {
325
+ value: "eu-south-1",
326
+ label: "Europe (Milan)"
327
+ },
328
+ {
329
+ value: "eu-south-2",
330
+ label: "Europe (Spain)"
331
+ },
332
+ {
333
+ value: "ap-south-1",
334
+ label: "Asia Pacific (Mumbai)"
335
+ },
336
+ {
337
+ value: "ap-south-2",
338
+ label: "Asia Pacific (Hyderabad)"
339
+ },
340
+ {
341
+ value: "ap-southeast-1",
342
+ label: "Asia Pacific (Singapore)"
343
+ },
344
+ {
345
+ value: "ap-southeast-2",
346
+ label: "Asia Pacific (Sydney)"
347
+ },
348
+ {
349
+ value: "ap-southeast-3",
350
+ label: "Asia Pacific (Jakarta)"
351
+ },
352
+ {
353
+ value: "ap-southeast-4",
354
+ label: "Asia Pacific (Melbourne)"
355
+ },
356
+ {
357
+ value: "ap-northeast-1",
358
+ label: "Asia Pacific (Tokyo)"
359
+ },
360
+ {
361
+ value: "ap-northeast-2",
362
+ label: "Asia Pacific (Seoul)"
363
+ },
364
+ {
365
+ value: "ap-northeast-3",
366
+ label: "Asia Pacific (Osaka)"
367
+ },
368
+ {
369
+ value: "ap-east-1",
370
+ label: "Asia Pacific (Hong Kong)"
371
+ },
372
+ {
373
+ value: "sa-east-1",
374
+ label: "South America (São Paulo)"
375
+ },
376
+ {
377
+ value: "me-south-1",
378
+ label: "Middle East (Bahrain)"
379
+ },
380
+ {
381
+ value: "me-central-1",
382
+ label: "Middle East (UAE)"
383
+ },
384
+ {
385
+ value: "af-south-1",
386
+ label: "Africa (Cape Town)"
387
+ },
388
+ {
389
+ value: "il-central-1",
390
+ label: "Israel (Tel Aviv)"
391
+ }
392
+ ]
393
+ },
394
+ {
395
+ key: "fromEmail",
396
+ displayName: "From Email",
397
+ description: "Verified sender email address",
398
+ type: "text",
399
+ required: !1,
400
+ placeholder: "noreply@yourdomain.com"
401
+ }
402
+ ],
403
+ platformMetadata: [{
404
+ key: "configurationSetName",
405
+ displayName: "Configuration Set",
406
+ description: "SES Configuration Set for tracking (optional)",
407
+ type: "text",
408
+ required: !1,
409
+ placeholder: "my-configuration-set"
410
+ }]
411
+ },
412
+ AZURE_ACS: {
413
+ displayName: "Azure Communication Services",
414
+ description: "Send emails via Azure Communication Services",
415
+ docUrl: "https://docs.microsoft.com/azure/communication-services/",
416
+ credentials: [{
417
+ key: "connectionString",
418
+ displayName: "Connection String",
419
+ description: "Azure ACS connection string (endpoint=...;accesskey=...)",
420
+ type: "password",
421
+ required: !0,
422
+ placeholder: "endpoint=https://your-resource.communication.azure.com/;accesskey=..."
423
+ }, {
424
+ key: "senderAddress",
425
+ displayName: "Sender Email",
426
+ description: "Azure verified sender email address",
427
+ type: "text",
428
+ required: !0,
429
+ placeholder: "DoNotReply@your-domain.azurecomm.net"
430
+ }]
431
+ },
432
+ MAILGUN: {
433
+ displayName: "Mailgun",
434
+ description: "Send emails via Mailgun",
435
+ docUrl: "https://documentation.mailgun.com/",
436
+ credentials: [
437
+ {
438
+ key: "apiKey",
439
+ displayName: "API Key",
440
+ description: "Your Mailgun API Key",
441
+ type: "password",
442
+ required: !0,
443
+ placeholder: "key-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
444
+ },
445
+ {
446
+ key: "domain",
447
+ displayName: "Domain",
448
+ description: "Your Mailgun sending domain",
449
+ type: "text",
450
+ required: !0,
451
+ placeholder: "mg.yourdomain.com"
452
+ },
453
+ {
454
+ key: "fromEmail",
455
+ displayName: "From Email",
456
+ description: "Sender email address",
457
+ type: "text",
458
+ required: !0,
459
+ placeholder: "noreply@mg.yourdomain.com"
460
+ },
461
+ {
462
+ key: "fromName",
463
+ displayName: "From Name",
464
+ description: "Sender display name",
465
+ type: "text",
466
+ required: !1,
467
+ placeholder: "Your Company"
468
+ }
469
+ ],
470
+ platformMetadata: [{
471
+ key: "region",
472
+ displayName: "Region",
473
+ description: "Mailgun region",
474
+ type: "select",
475
+ required: !1,
476
+ defaultValue: "us",
477
+ options: [{
478
+ value: "us",
479
+ label: "US"
480
+ }, {
481
+ value: "eu",
482
+ label: "EU"
483
+ }]
484
+ }]
485
+ },
486
+ POSTMARK: {
487
+ displayName: "Postmark",
488
+ description: "Send emails via Postmark",
489
+ docUrl: "https://postmarkapp.com/developer",
490
+ credentials: [
491
+ {
492
+ key: "serverToken",
493
+ displayName: "Server API Token",
494
+ description: "Your Postmark Server API Token",
495
+ type: "password",
496
+ required: !0,
497
+ placeholder: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
498
+ },
499
+ {
500
+ key: "fromEmail",
501
+ displayName: "From Email",
502
+ description: "Verified sender email address",
503
+ type: "text",
504
+ required: !0,
505
+ placeholder: "noreply@yourdomain.com"
506
+ },
507
+ {
508
+ key: "fromName",
509
+ displayName: "From Name",
510
+ description: "Sender display name",
511
+ type: "text",
512
+ required: !1,
513
+ placeholder: "Your Company"
514
+ }
515
+ ]
516
+ },
517
+ RESEND: {
518
+ displayName: "Resend",
519
+ description: "Send emails via Resend",
520
+ docUrl: "https://resend.com/docs",
521
+ credentials: [
522
+ {
523
+ key: "apiKey",
524
+ displayName: "API Key",
525
+ description: "Your Resend API Key",
526
+ type: "password",
527
+ required: !0,
528
+ placeholder: "re_xxxxxxxxxxxxxxxxxxxxxxxxxxxx"
529
+ },
530
+ {
531
+ key: "fromEmail",
532
+ displayName: "From Email",
533
+ description: "Verified sender email address",
534
+ type: "text",
535
+ required: !0,
536
+ placeholder: "noreply@yourdomain.com"
537
+ },
538
+ {
539
+ key: "fromName",
540
+ displayName: "From Name",
541
+ description: "Sender display name",
542
+ type: "text",
543
+ required: !1,
544
+ placeholder: "Your Company"
545
+ }
546
+ ]
547
+ },
548
+ SMTP: {
549
+ displayName: "Custom SMTP",
550
+ description: "Send emails via custom SMTP server",
551
+ credentials: [
552
+ {
553
+ key: "host",
554
+ displayName: "SMTP Host",
555
+ description: "SMTP server hostname",
556
+ type: "text",
557
+ required: !0,
558
+ placeholder: "smtp.yourdomain.com"
559
+ },
560
+ {
561
+ key: "port",
562
+ displayName: "SMTP Port",
563
+ description: "SMTP server port (usually 587 for TLS, 465 for SSL)",
564
+ type: "number",
565
+ required: !0,
566
+ defaultValue: 587,
567
+ placeholder: "587"
568
+ },
569
+ {
570
+ key: "username",
571
+ displayName: "Username",
572
+ description: "SMTP authentication username",
573
+ type: "text",
574
+ required: !0,
575
+ placeholder: "your-username"
576
+ },
577
+ {
578
+ key: "password",
579
+ displayName: "Password",
580
+ description: "SMTP authentication password",
581
+ type: "password",
582
+ required: !0,
583
+ placeholder: "Your password"
584
+ },
585
+ {
586
+ key: "fromEmail",
587
+ displayName: "From Email",
588
+ description: "Sender email address",
589
+ type: "text",
590
+ required: !0,
591
+ placeholder: "noreply@yourdomain.com"
592
+ },
593
+ {
594
+ key: "fromName",
595
+ displayName: "From Name",
596
+ description: "Sender display name",
597
+ type: "text",
598
+ required: !1,
599
+ placeholder: "Your Company"
600
+ }
601
+ ],
602
+ platformMetadata: [{
603
+ key: "secure",
604
+ displayName: "Use SSL/TLS",
605
+ description: "Use SSL/TLS encryption",
606
+ type: "boolean",
607
+ required: !1,
608
+ defaultValue: !0
609
+ }]
610
+ },
611
+ FCM: {
612
+ displayName: "Firebase Cloud Messaging",
613
+ description: "Send push notifications via FCM",
614
+ docUrl: "https://firebase.google.com/docs/cloud-messaging",
615
+ credentials: [
616
+ {
617
+ key: "projectId",
618
+ displayName: "Firebase Project ID",
619
+ description: "Your Firebase project ID",
620
+ type: "text",
621
+ required: !0,
622
+ placeholder: "your-project-id"
623
+ },
624
+ {
625
+ key: "clientEmail",
626
+ displayName: "Service Account Email",
627
+ description: "Service account email from Firebase credentials JSON",
628
+ type: "text",
629
+ required: !0,
630
+ placeholder: "firebase-adminsdk-xxxxx@your-project.iam.gserviceaccount.com"
631
+ },
632
+ {
633
+ key: "privateKey",
634
+ displayName: "Private Key",
635
+ description: "Service account private key (PEM format, paste the entire key including BEGIN/END lines)",
636
+ type: "textarea",
637
+ required: !0,
638
+ placeholder: "Paste the full PEM private key from your service account JSON"
639
+ }
640
+ ]
641
+ },
642
+ APNS: {
643
+ displayName: "Apple Push Notification Service",
644
+ description: "Send push notifications to iOS devices via APNs",
645
+ docUrl: "https://developer.apple.com/documentation/usernotifications",
646
+ credentials: [
647
+ {
648
+ key: "teamId",
649
+ displayName: "Team ID",
650
+ description: "Your 10-character Apple Developer Team ID",
651
+ type: "text",
652
+ required: !0,
653
+ placeholder: "ABCDE12345",
654
+ validation: { pattern: "^[A-Z0-9]{10}$" }
655
+ },
656
+ {
657
+ key: "keyId",
658
+ displayName: "Key ID",
659
+ description: "Your 10-character Key ID from Apple Developer Account",
660
+ type: "text",
661
+ required: !0,
662
+ placeholder: "ABC123DEFG",
663
+ validation: { pattern: "^[A-Z0-9]{10}$" }
664
+ },
665
+ {
666
+ key: "privateKey",
667
+ displayName: "Private Key (.p8)",
668
+ description: "Content of your .p8 private key file",
669
+ type: "textarea",
670
+ required: !0,
671
+ placeholder: "-----BEGIN PRIVATE KEY-----\nYour .p8 key content\n-----END PRIVATE KEY-----"
672
+ },
673
+ {
674
+ key: "bundleId",
675
+ displayName: "Bundle ID",
676
+ description: "Your app's Bundle Identifier",
677
+ type: "text",
678
+ required: !0,
679
+ placeholder: "com.yourcompany.yourapp"
680
+ }
681
+ ],
682
+ platformMetadata: [{
683
+ key: "production",
684
+ displayName: "Production Environment",
685
+ description: "Use production APNs server (uncheck for sandbox/development)",
686
+ type: "boolean",
687
+ required: !1,
688
+ defaultValue: !1
689
+ }]
690
+ },
691
+ ONESIGNAL: {
692
+ displayName: "OneSignal",
693
+ description: "Send push notifications via OneSignal",
694
+ docUrl: "https://documentation.onesignal.com/",
695
+ credentials: [{
696
+ key: "appId",
697
+ displayName: "App ID",
698
+ description: "Your OneSignal App ID",
699
+ type: "text",
700
+ required: !0,
701
+ placeholder: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
702
+ }, {
703
+ key: "apiKey",
704
+ displayName: "REST API Key",
705
+ description: "Your OneSignal REST API Key",
706
+ type: "password",
707
+ required: !0,
708
+ placeholder: "Your API key"
709
+ }]
710
+ },
711
+ EXPO: {
712
+ displayName: "Expo Push",
713
+ description: "Send push notifications via Expo",
714
+ docUrl: "https://docs.expo.dev/push-notifications/",
715
+ credentials: [{
716
+ key: "accessToken",
717
+ displayName: "Access Token",
718
+ description: "Your Expo access token (optional for increased rate limits)",
719
+ type: "password",
720
+ required: !1,
721
+ placeholder: "Your Expo access token"
722
+ }]
723
+ },
724
+ SLACK_BOT: {
725
+ displayName: "Slack Bot",
726
+ description: "Send messages via Slack Bot",
727
+ docUrl: "https://api.slack.com/bot-users",
728
+ credentials: [{
729
+ key: "botToken",
730
+ displayName: "Bot Token",
731
+ description: "Your Slack Bot User OAuth Token (xoxb-...)",
732
+ type: "password",
733
+ required: !0,
734
+ placeholder: "xoxb-xxxxxxxxxxxx-xxxxxxxxxxxx-xxxxxxxxxxxxxxxxxxxxxxxx"
735
+ }],
736
+ platformMetadata: [{
737
+ key: "defaultChannel",
738
+ displayName: "Default Channel",
739
+ description: "Default channel ID for messages (optional)",
740
+ type: "text",
741
+ required: !1,
742
+ placeholder: "C0123456789"
743
+ }]
744
+ },
745
+ SLACK_WEBHOOK: {
746
+ displayName: "Slack Webhook",
747
+ description: "Send messages via Slack Incoming Webhook",
748
+ docUrl: "https://api.slack.com/messaging/webhooks",
749
+ credentials: [{
750
+ key: "webhookUrl",
751
+ displayName: "Webhook URL",
752
+ description: "Your Slack Incoming Webhook URL",
753
+ type: "password",
754
+ required: !0,
755
+ placeholder: "Paste your Slack Incoming Webhook URL"
756
+ }]
757
+ },
758
+ TEAMS_WEBHOOK: {
759
+ displayName: "Microsoft Teams Webhook",
760
+ description: "Send messages via Teams Incoming Webhook",
761
+ docUrl: "https://docs.microsoft.com/microsoftteams/platform/webhooks-and-connectors/",
762
+ credentials: [{
763
+ key: "webhookUrl",
764
+ displayName: "Webhook URL",
765
+ description: "Your Microsoft Teams Incoming Webhook URL",
766
+ type: "password",
767
+ required: !0,
768
+ placeholder: "https://outlook.office.com/webhook/..."
769
+ }]
770
+ },
771
+ DISCORD_BOT: {
772
+ displayName: "Discord Bot",
773
+ description: "Send messages via Discord Bot",
774
+ docUrl: "https://discord.com/developers/docs",
775
+ credentials: [{
776
+ key: "botToken",
777
+ displayName: "Bot Token",
778
+ description: "Your Discord Bot Token",
779
+ type: "password",
780
+ required: !0,
781
+ placeholder: "Your Discord bot token"
782
+ }],
783
+ platformMetadata: [{
784
+ key: "defaultChannelId",
785
+ displayName: "Default Channel ID",
786
+ description: "Default channel ID for messages (optional)",
787
+ type: "text",
788
+ required: !1,
789
+ placeholder: "123456789012345678"
790
+ }]
791
+ },
792
+ DISCORD_WEBHOOK: {
793
+ displayName: "Discord Webhook",
794
+ description: "Send messages via Discord Webhook",
795
+ docUrl: "https://discord.com/developers/docs/resources/webhook",
796
+ credentials: [{
797
+ key: "webhookUrl",
798
+ displayName: "Webhook URL",
799
+ description: "Your Discord Webhook URL",
800
+ type: "password",
801
+ required: !0,
802
+ placeholder: "https://discord.com/api/webhooks/..."
803
+ }]
804
+ },
805
+ WHATSAPP_CLOUD: {
806
+ displayName: "WhatsApp Cloud API",
807
+ description: "Send messages via WhatsApp Business Cloud API",
808
+ docUrl: "https://developers.facebook.com/docs/whatsapp/cloud-api",
809
+ credentials: [
810
+ {
811
+ key: "accessToken",
812
+ displayName: "Access Token",
813
+ description: "Your WhatsApp Business API Access Token",
814
+ type: "password",
815
+ required: !0,
816
+ placeholder: "Your access token"
817
+ },
818
+ {
819
+ key: "phoneNumberId",
820
+ displayName: "Phone Number ID",
821
+ description: "Your WhatsApp Business Phone Number ID",
822
+ type: "text",
823
+ required: !0,
824
+ placeholder: "123456789012345"
825
+ },
826
+ {
827
+ key: "businessAccountId",
828
+ displayName: "Business Account ID",
829
+ description: "Your WhatsApp Business Account ID",
830
+ type: "text",
831
+ required: !0,
832
+ placeholder: "123456789012345"
833
+ }
834
+ ]
835
+ },
836
+ WHATSAPP_TWILIO: {
837
+ displayName: "WhatsApp via Twilio",
838
+ description: "Send WhatsApp messages via Twilio",
839
+ docUrl: "https://www.twilio.com/docs/whatsapp",
840
+ credentials: [
841
+ {
842
+ key: "accountSid",
843
+ displayName: "Account SID",
844
+ description: "Your Twilio Account SID (starts with AC)",
845
+ type: "text",
846
+ required: !0,
847
+ placeholder: "ACxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
848
+ },
849
+ {
850
+ key: "authToken",
851
+ displayName: "Auth Token",
852
+ description: "Your Twilio Auth Token",
853
+ type: "password",
854
+ required: !0,
855
+ placeholder: "Your auth token"
856
+ },
857
+ {
858
+ key: "fromNumber",
859
+ displayName: "WhatsApp Number",
860
+ description: "Twilio WhatsApp number (whatsapp:+1234567890)",
861
+ type: "text",
862
+ required: !0,
863
+ placeholder: "whatsapp:+1234567890"
864
+ }
865
+ ]
866
+ },
867
+ WEBHOOK_HTTP: {
868
+ displayName: "HTTP Webhook",
869
+ description: "Send notifications via HTTP webhook",
870
+ credentials: [{
871
+ key: "webhookUrl",
872
+ displayName: "Webhook URL",
873
+ description: "HTTP endpoint to receive notifications",
874
+ type: "text",
875
+ required: !0,
876
+ placeholder: "https://your-api.com/webhooks/notifications"
877
+ }],
878
+ platformMetadata: [
879
+ {
880
+ key: "method",
881
+ displayName: "HTTP Method",
882
+ description: "HTTP method for the request",
883
+ type: "select",
884
+ required: !1,
885
+ defaultValue: "POST",
886
+ options: [{
887
+ value: "POST",
888
+ label: "POST"
889
+ }, {
890
+ value: "PUT",
891
+ label: "PUT"
892
+ }]
893
+ },
894
+ {
895
+ key: "headers",
896
+ displayName: "Custom Headers (JSON)",
897
+ description: "Additional HTTP headers as JSON object",
898
+ type: "textarea",
899
+ required: !1,
900
+ placeholder: "{\"Authorization\": \"Bearer token\", \"X-Custom-Header\": \"value\"}"
901
+ },
902
+ {
903
+ key: "secret",
904
+ displayName: "Signing Secret",
905
+ description: "Secret for HMAC signature verification (optional)",
906
+ type: "password",
907
+ required: !1,
908
+ placeholder: "Your webhook signing secret"
909
+ }
910
+ ]
911
+ }
912
+ };
913
+ function t(t) {
914
+ return t && e[t] || null;
915
+ }
916
+ function n(e, n) {
917
+ let r = t(e);
918
+ if (!r) return {
919
+ valid: !1,
920
+ errors: ["Unknown adapter type"]
921
+ };
922
+ let i = [];
923
+ for (let e of r.credentials) {
924
+ let t = n[e.key];
925
+ if (e.required && (t == null || t === "")) {
926
+ i.push(`${e.displayName} is required`);
927
+ continue;
928
+ }
929
+ !e.required && (t == null || t === "") || (e.validation?.pattern && typeof t == "string" && (new RegExp(e.validation.pattern).test(t) || i.push(`${e.displayName} has an invalid format`)), typeof t == "string" && (e.validation?.minLength && t.length < e.validation.minLength && i.push(`${e.displayName} must be at least ${e.validation.minLength} characters`), e.validation?.maxLength && t.length > e.validation.maxLength && i.push(`${e.displayName} must be at most ${e.validation.maxLength} characters`)));
930
+ }
931
+ return {
932
+ valid: i.length === 0,
933
+ errors: i
934
+ };
935
+ }
936
+ function r(e) {
937
+ let n = t(e);
938
+ if (!n) return {};
939
+ let r = {};
940
+ for (let e of [...n.credentials, ...n.platformMetadata || []]) e.defaultValue !== void 0 && (r[e.key] = e.defaultValue);
941
+ return r;
942
+ }
943
+ //#endregion
944
+ export { t as getAdapterCredentialSchema, r as getDefaultCredentials, n as validateCredentials };
945
+
946
+ //# sourceMappingURL=adapterCredentials.js.map