spaps-sdk 1.1.8 → 1.1.9

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 (2) hide show
  1. package/README.md +6 -6
  2. package/package.json +3 -3
package/README.md CHANGED
@@ -197,8 +197,8 @@ await spaps.recordUsage('api-call', 1);
197
197
  ```javascript
198
198
  // Create a secure message (content encrypted server-side when pii_enabled)
199
199
  const message = await spaps.secureMessages.create({
200
- patientId: 'patient-123',
201
- practitionerId: 'practitioner-456',
200
+ patientId: '3d6f0a51-8d77-4b38-8248-2d1b2f1f6c7f',
201
+ practitionerId: 'a3d7f431-6c9d-4cbc-9f78-4e5b6a7c8d9e',
202
202
  content: 'Patient is experiencing intermittent headaches.',
203
203
  metadata: { urgency: 'high' }
204
204
  });
@@ -216,8 +216,8 @@ type SecureMessageMetadata = { urgency: 'low' | 'high'; tags?: string[] };
216
216
  const spaps = new SPAPSClient<SecureMessageMetadata>({ apiKey: process.env.SPAPS_API_KEY });
217
217
 
218
218
  await spaps.secureMessages.create({
219
- patientId: 'patient-123',
220
- practitionerId: 'practitioner-456',
219
+ patientId: '3d6f0a51-8d77-4b38-8248-2d1b2f1f6c7f',
220
+ practitionerId: 'a3d7f431-6c9d-4cbc-9f78-4e5b6a7c8d9e',
221
221
  content: 'Follow up scheduled for next week.',
222
222
  metadata: { urgency: 'low', tags: ['follow-up'] }
223
223
  });
@@ -237,8 +237,8 @@ const secureMessageRequestSchema = createSecureMessageRequestSchema(
237
237
  );
238
238
 
239
239
  secureMessageRequestSchema.parse({
240
- patientId: 'patient-123',
241
- practitionerId: 'practitioner-456',
240
+ patientId: '3d6f0a51-8d77-4b38-8248-2d1b2f1f6c7f',
241
+ practitionerId: 'a3d7f431-6c9d-4cbc-9f78-4e5b6a7c8d9e',
242
242
  content: 'All clear.',
243
243
  metadata: { urgency: 'low' }
244
244
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "spaps-sdk",
3
- "version": "1.1.8",
3
+ "version": "1.1.9",
4
4
  "description": "Sweet Potato Authentication & Payment Service SDK - Zero-config client with built-in permission checking and role-based access control",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -44,7 +44,7 @@
44
44
  "email": "buildooor@gmail.com"
45
45
  },
46
46
  "dependencies": {
47
- "spaps-types": "^1.0.14",
47
+ "spaps-types": "^1.0.16",
48
48
  "axios": "^1.6.0",
49
49
  "cross-fetch": "^4.0.0"
50
50
  },
@@ -72,4 +72,4 @@
72
72
  "engines": {
73
73
  "node": ">=14.0.0"
74
74
  }
75
- }
75
+ }