@aouda/client 0.0.1 → 0.0.2

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.
@@ -1,4 +1,4 @@
1
- import { A as AoudaClient } from '../client-DXT2ZAeO.cjs';
1
+ import { A as AoudaClient } from '../client-otKeBYQG.cjs';
2
2
 
3
3
  /**
4
4
  * CLI for @aouda/client.
@@ -1,4 +1,4 @@
1
- import { A as AoudaClient } from '../client-DXT2ZAeO.js';
1
+ import { A as AoudaClient } from '../client-otKeBYQG.js';
2
2
 
3
3
  /**
4
4
  * CLI for @aouda/client.
package/dist/cli/index.js CHANGED
@@ -4412,6 +4412,79 @@ function parseSseLogEvent(rawEvent) {
4412
4412
  return null;
4413
4413
  }
4414
4414
 
4415
+ // src/admin/notifications.ts
4416
+ var BASE_PATH7 = "/admin/notifications";
4417
+ var NotificationsAdminApi = class {
4418
+ constructor(transport) {
4419
+ this.transport = transport;
4420
+ }
4421
+ /**
4422
+ * Get current notification provider state.
4423
+ * GET /admin/notifications
4424
+ */
4425
+ async get() {
4426
+ return this.transport.get(BASE_PATH7);
4427
+ }
4428
+ /**
4429
+ * Set or update the email notification provider.
4430
+ * PUT /admin/notifications/email
4431
+ */
4432
+ async putEmail(request) {
4433
+ return this.transport.put(
4434
+ `${BASE_PATH7}/email`,
4435
+ request
4436
+ );
4437
+ }
4438
+ /**
4439
+ * Remove the email notification provider (reverts to env/appsettings).
4440
+ * DELETE /admin/notifications/email
4441
+ */
4442
+ async deleteEmail() {
4443
+ return this.transport.delete(
4444
+ `${BASE_PATH7}/email`
4445
+ );
4446
+ }
4447
+ /**
4448
+ * Set or update the SMS notification provider.
4449
+ * PUT /admin/notifications/sms
4450
+ */
4451
+ async putSms(request) {
4452
+ return this.transport.put(
4453
+ `${BASE_PATH7}/sms`,
4454
+ request
4455
+ );
4456
+ }
4457
+ /**
4458
+ * Remove the SMS notification provider (reverts to env/appsettings).
4459
+ * DELETE /admin/notifications/sms
4460
+ */
4461
+ async deleteSms() {
4462
+ return this.transport.delete(
4463
+ `${BASE_PATH7}/sms`
4464
+ );
4465
+ }
4466
+ /**
4467
+ * Send a test email via the currently configured provider.
4468
+ * POST /admin/notifications/email/test
4469
+ */
4470
+ async testEmail(request) {
4471
+ return this.transport.post(
4472
+ `${BASE_PATH7}/email/test`,
4473
+ request
4474
+ );
4475
+ }
4476
+ /**
4477
+ * Send a test SMS via the currently configured provider.
4478
+ * POST /admin/notifications/sms/test
4479
+ */
4480
+ async testSms(request) {
4481
+ return this.transport.post(
4482
+ `${BASE_PATH7}/sms/test`,
4483
+ request
4484
+ );
4485
+ }
4486
+ };
4487
+
4415
4488
  // src/admin/index.ts
4416
4489
  var AdminApi = class {
4417
4490
  constructor(transport) {
@@ -4423,6 +4496,7 @@ var AdminApi = class {
4423
4496
  this.backup = new BackupAdminApi(transport);
4424
4497
  this.config = new ConfigAdminApi(transport);
4425
4498
  this.node = new NodeAdminApi(transport);
4499
+ this.notifications = new NotificationsAdminApi(transport);
4426
4500
  }
4427
4501
  };
4428
4502