@dotbots-boutique/server-sdk 0.5.5 → 0.5.6

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/dist/client.js CHANGED
@@ -110,10 +110,11 @@ class DotBotsBackend {
110
110
  }
111
111
  async sendNotification(request) {
112
112
  const url = 'https://dotnotifications-dotbots-api.apps.dotbots.boutique/api/send';
113
+ const { notificationAppSecret, ...rest } = request;
113
114
  const body = JSON.stringify({
114
- ...request,
115
+ ...rest,
115
116
  applicationExternalId: this.appId,
116
- appSecret: this.appSecret,
117
+ appSecret: notificationAppSecret,
117
118
  });
118
119
  console.log(JSON.stringify({
119
120
  level: 'info',
package/dist/types.d.ts CHANGED
@@ -68,6 +68,7 @@ export interface DotBotsUser {
68
68
  export interface SendNotificationRequest {
69
69
  userExternalId: string;
70
70
  userOrganisationExternalId: string;
71
+ notificationAppSecret: string;
71
72
  code?: string;
72
73
  notificationDescriptionId?: string;
73
74
  language?: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dotbots-boutique/server-sdk",
3
- "version": "0.5.5",
3
+ "version": "0.5.6",
4
4
  "description": "DotBots Backend SDK — server-side AI calls, payments, and user lookups via the DotBots proxy",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",