@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.
package/README.md CHANGED
@@ -146,6 +146,8 @@ npm run lint # Lint code
146
146
 
147
147
  See [AGENTS.md](./AGENTS.md) for development workflow.
148
148
 
149
+ Maintainers: see [Release Process](./docs/dev/Release-Process.md) for Changesets and npm publish. After publish, follow **`Cross-Repo-Release-And-Version-Bump.md`** in the shared docs repo (`D:\GitHub\docs\` or `C:\Data\GitHub\docs\`) to bump Studio and update the compatibility matrix.
150
+
149
151
  ## License
150
152
 
151
153
  MIT
@@ -4441,6 +4441,79 @@ function parseSseLogEvent(rawEvent) {
4441
4441
  return null;
4442
4442
  }
4443
4443
 
4444
+ // src/admin/notifications.ts
4445
+ var BASE_PATH7 = "/admin/notifications";
4446
+ var NotificationsAdminApi = class {
4447
+ constructor(transport) {
4448
+ this.transport = transport;
4449
+ }
4450
+ /**
4451
+ * Get current notification provider state.
4452
+ * GET /admin/notifications
4453
+ */
4454
+ async get() {
4455
+ return this.transport.get(BASE_PATH7);
4456
+ }
4457
+ /**
4458
+ * Set or update the email notification provider.
4459
+ * PUT /admin/notifications/email
4460
+ */
4461
+ async putEmail(request) {
4462
+ return this.transport.put(
4463
+ `${BASE_PATH7}/email`,
4464
+ request
4465
+ );
4466
+ }
4467
+ /**
4468
+ * Remove the email notification provider (reverts to env/appsettings).
4469
+ * DELETE /admin/notifications/email
4470
+ */
4471
+ async deleteEmail() {
4472
+ return this.transport.delete(
4473
+ `${BASE_PATH7}/email`
4474
+ );
4475
+ }
4476
+ /**
4477
+ * Set or update the SMS notification provider.
4478
+ * PUT /admin/notifications/sms
4479
+ */
4480
+ async putSms(request) {
4481
+ return this.transport.put(
4482
+ `${BASE_PATH7}/sms`,
4483
+ request
4484
+ );
4485
+ }
4486
+ /**
4487
+ * Remove the SMS notification provider (reverts to env/appsettings).
4488
+ * DELETE /admin/notifications/sms
4489
+ */
4490
+ async deleteSms() {
4491
+ return this.transport.delete(
4492
+ `${BASE_PATH7}/sms`
4493
+ );
4494
+ }
4495
+ /**
4496
+ * Send a test email via the currently configured provider.
4497
+ * POST /admin/notifications/email/test
4498
+ */
4499
+ async testEmail(request) {
4500
+ return this.transport.post(
4501
+ `${BASE_PATH7}/email/test`,
4502
+ request
4503
+ );
4504
+ }
4505
+ /**
4506
+ * Send a test SMS via the currently configured provider.
4507
+ * POST /admin/notifications/sms/test
4508
+ */
4509
+ async testSms(request) {
4510
+ return this.transport.post(
4511
+ `${BASE_PATH7}/sms/test`,
4512
+ request
4513
+ );
4514
+ }
4515
+ };
4516
+
4444
4517
  // src/admin/index.ts
4445
4518
  var AdminApi = class {
4446
4519
  constructor(transport) {
@@ -4452,6 +4525,7 @@ var AdminApi = class {
4452
4525
  this.backup = new BackupAdminApi(transport);
4453
4526
  this.config = new ConfigAdminApi(transport);
4454
4527
  this.node = new NodeAdminApi(transport);
4528
+ this.notifications = new NotificationsAdminApi(transport);
4455
4529
  }
4456
4530
  };
4457
4531