@23blocks/block-authentication 6.5.0 → 7.1.0

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 (34) hide show
  1. package/CHANGELOG.md +467 -0
  2. package/dist/index.esm.js +165 -52
  3. package/dist/src/index.d.ts +3 -3
  4. package/dist/src/index.d.ts.map +1 -1
  5. package/dist/src/lib/authentication.block.d.ts +5 -4
  6. package/dist/src/lib/authentication.block.d.ts.map +1 -1
  7. package/dist/src/lib/mappers/index.d.ts +1 -0
  8. package/dist/src/lib/mappers/index.d.ts.map +1 -1
  9. package/dist/src/lib/mappers/service-token.mapper.d.ts +11 -0
  10. package/dist/src/lib/mappers/service-token.mapper.d.ts.map +1 -0
  11. package/dist/src/lib/mappers/utils.d.ts +3 -3
  12. package/dist/src/lib/mappers/utils.d.ts.map +1 -1
  13. package/dist/src/lib/services/avatars.service.d.ts +1 -1
  14. package/dist/src/lib/services/avatars.service.d.ts.map +1 -1
  15. package/dist/src/lib/services/index.d.ts +1 -0
  16. package/dist/src/lib/services/index.d.ts.map +1 -1
  17. package/dist/src/lib/services/mfa.service.d.ts +1 -1
  18. package/dist/src/lib/services/mfa.service.d.ts.map +1 -1
  19. package/dist/src/lib/services/oauth.service.d.ts +1 -1
  20. package/dist/src/lib/services/oauth.service.d.ts.map +1 -1
  21. package/dist/src/lib/services/service-tokens.service.d.ts +40 -0
  22. package/dist/src/lib/services/service-tokens.service.d.ts.map +1 -0
  23. package/dist/src/lib/services/tenants.service.d.ts +1 -1
  24. package/dist/src/lib/services/tenants.service.d.ts.map +1 -1
  25. package/dist/src/lib/services/users.service.d.ts.map +1 -1
  26. package/dist/src/lib/types/index.d.ts +1 -0
  27. package/dist/src/lib/types/index.d.ts.map +1 -1
  28. package/dist/src/lib/types/oauth.d.ts +2 -0
  29. package/dist/src/lib/types/oauth.d.ts.map +1 -1
  30. package/dist/src/lib/types/service-token.d.ts +39 -0
  31. package/dist/src/lib/types/service-token.d.ts.map +1 -0
  32. package/dist/src/lib/types/tenant.d.ts.map +1 -1
  33. package/dist/src/lib/types/user-extended.d.ts.map +1 -1
  34. package/package.json +3 -1
package/CHANGELOG.md ADDED
@@ -0,0 +1,467 @@
1
+ ## 7.1.0 (2026-02-24)
2
+
3
+ ### 🚀 Features
4
+
5
+ - **@23blocks/block-authentication:** add service tokens, oauthMode, and CI simplification ([3cea02d](https://github.com/23blocks-OS/frontend-sdk/commit/3cea02d))
6
+
7
+ ### ❤️ Thank You
8
+
9
+ - Claude Opus 4.6
10
+ - Juan Pelaez
11
+
12
+ # 7.0.0 (2026-02-20)
13
+
14
+ ### 🩹 Fixes
15
+
16
+ - align mapper tests with implementation and fix user mapper fallbacks ([1ac0b6e](https://github.com/23blocks-OS/frontend-sdk/commit/1ac0b6e))
17
+ - ⚠️ replace appId with apiKey across all block configs to align with BlockConfig contract ([f81626d](https://github.com/23blocks-OS/frontend-sdk/commit/f81626d))
18
+ - resolve typecheck errors across all block packages ([6089324](https://github.com/23blocks-OS/frontend-sdk/commit/6089324))
19
+
20
+ ### ⚠️ Breaking Changes
21
+
22
+ - replace appId with apiKey across all block configs to align with BlockConfig contract ([f81626d](https://github.com/23blocks-OS/frontend-sdk/commit/f81626d))
23
+ Block config no longer accepts appId. Use apiKey instead.
24
+ Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
25
+
26
+ ### 🧱 Updated Dependencies
27
+
28
+ - Updated @23blocks/jsonapi-codec to 3.3.1
29
+ - Updated @23blocks/contracts to 2.3.1
30
+
31
+ ### ❤️ Thank You
32
+
33
+ - Claude Opus 4.6
34
+ - Juan Pelaez
35
+
36
+ ## 6.5.0 (2026-02-17)
37
+
38
+ ### 🚀 Features
39
+
40
+ - add health() method to all 18 blocks for service connectivity checks ([73514a3](https://github.com/23blocks-OS/frontend-sdk/commit/73514a3))
41
+
42
+ ### 🧱 Updated Dependencies
43
+
44
+ - Updated @23blocks/jsonapi-codec to 3.3.0
45
+ - Updated @23blocks/contracts to 2.3.0
46
+
47
+ ### ❤️ Thank You
48
+
49
+ - Claude Opus 4.6
50
+ - Juan Pelaez
51
+
52
+ ## 6.4.0 (2026-02-08)
53
+
54
+ ### 🚀 Features
55
+
56
+ - add comprehensive JSDoc documentation and llms.txt for AI agent consumption ([fd97df2](https://github.com/23blocks-OS/frontend-sdk/commit/fd97df2))
57
+
58
+ ### 🧱 Updated Dependencies
59
+
60
+ - Updated @23blocks/jsonapi-codec to 3.2.0
61
+ - Updated @23blocks/contracts to 2.2.0
62
+
63
+ ### ❤️ Thank You
64
+
65
+ - Claude Opus 4.6
66
+ - Juan Pelaez
67
+
68
+ ## 6.3.6 (2026-02-07)
69
+
70
+ ### 🩹 Fixes
71
+
72
+ - replace misleading `id` params with `uniqueId` across SDK ([6dfc65b](https://github.com/23blocks-OS/frontend-sdk/commit/6dfc65b))
73
+
74
+ ### ❤️ Thank You
75
+
76
+ - Claude Opus 4.6
77
+ - Juan Pelaez
78
+
79
+ ## 6.3.5 (2026-02-07)
80
+
81
+ ### 🧱 Updated Dependencies
82
+
83
+ - Updated @23blocks/jsonapi-codec to 3.1.3
84
+ - Updated @23blocks/contracts to 2.1.3
85
+
86
+ ## 6.3.4 (2026-02-06)
87
+
88
+ ### 🧱 Updated Dependencies
89
+
90
+ - Updated @23blocks/jsonapi-codec to 3.1.2
91
+ - Updated @23blocks/contracts to 2.1.2
92
+
93
+ ## 6.3.3 (2026-01-28)
94
+
95
+ ### 🩹 Fixes
96
+
97
+ - **auth,search:** use simple pagination params instead of JSON:API style ([52ac9bd](https://github.com/23blocks-OS/frontend-sdk/commit/52ac9bd))
98
+
99
+ ### ❤️ Thank You
100
+
101
+ - Claude Opus 4.5
102
+ - Juan Pelaez
103
+
104
+ ## 6.3.2 (2026-01-20)
105
+
106
+ ### 🧱 Updated Dependencies
107
+
108
+ - Updated @23blocks/jsonapi-codec to 3.1.1
109
+ - Updated @23blocks/contracts to 2.1.1
110
+
111
+ ## 6.3.1 (2026-01-05)
112
+
113
+ ### 🚀 Features
114
+
115
+ - ⚠️ **angular:** complete all Angular services with full block coverage ([e806bfc](https://github.com/23blocks-OS/frontend-sdk/commit/e806bfc))
116
+
117
+ ### ⚠️ Breaking Changes
118
+
119
+ - **angular:** complete all Angular services with full block coverage ([e806bfc](https://github.com/23blocks-OS/frontend-sdk/commit/e806bfc))
120
+ rawBlock renamed to {serviceName}Block across all services
121
+ Changes:
122
+ - Rename rawBlock to proper names (authenticationBlock, searchBlock, etc.) in all 17 Angular services
123
+ - Complete AuthenticationService with all 25 block services (permissions, apps, subscriptions, geography, guests, magic links, etc.)
124
+ - Complete CrmService with all 22 block services (contact events, lead follows, meeting participants, zoom, calendar, etc.)
125
+ - Complete GeolocationService with all 19 block services (premise events, route tracker, location hours/images/slots/taxes/groups, identities)
126
+ - Complete ConversationsService with all 14 block services (draft messages, group invites, websocket tokens, contexts, availabilities, meetings, web notifications)
127
+ - Complete FilesService with all 9 block services (user files, file categories, file tags, delegations, file access, file access requests)
128
+ - Complete AssetsService with all 12 block services (events with images/reports, audits, operations, alerts, users)
129
+ - Complete CampaignsService with all 12 block services (campaign media, landing pages, audiences, templates, media results)
130
+ - Complete CompanyService with positions and employee assignments
131
+ - Complete RewardsService with fixed method signatures for loyalty rules
132
+ - Complete SalesService with Stripe and MercadoPago payment services
133
+ - Complete JarvisService with AI models, entities, clusters, workflows, agent runtime
134
+ - Complete OnboardingService with onboard flow, mail templates, remarketing
135
+ - Complete UniversityService with placements, calendars, matches, attendance, notes
136
+ - Export missing types from block packages
137
+ 🤖 Generated with [Claude Code](https://claude.com/claude-code)
138
+ Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
139
+
140
+ ### ❤️ Thank You
141
+
142
+ - Claude Opus 4.5
143
+ - Juan Pelaez
144
+
145
+ ## 6.3.0 (2026-01-04)
146
+
147
+ ### 🚀 Features
148
+
149
+ - implement LOW priority services across SDK blocks ([9296d12](https://github.com/23blocks-OS/frontend-sdk/commit/9296d12))
150
+
151
+ ### ❤️ Thank You
152
+
153
+ - Claude Opus 4.5
154
+ - Juan Pelaez
155
+
156
+ ## 6.2.0 (2026-01-04)
157
+
158
+ ### 🚀 Features
159
+
160
+ - implement HIGH priority missing services ([ab6141f](https://github.com/23blocks-OS/frontend-sdk/commit/ab6141f))
161
+
162
+ ### ❤️ Thank You
163
+
164
+ - Claude Opus 4.5
165
+ - Juan Pelaez
166
+
167
+ ## 6.1.0 (2026-01-01)
168
+
169
+ ### 🧱 Updated Dependencies
170
+
171
+ - Updated @23blocks/jsonapi-codec to 3.1.0
172
+ - Updated @23blocks/contracts to 2.1.0
173
+
174
+ ## 6.0.2 (2026-01-01)
175
+
176
+ ### 🩹 Fixes
177
+
178
+ - add missing fields to update request types ([2d54e25](https://github.com/23blocks-OS/frontend-sdk/commit/2d54e25))
179
+
180
+ ### ❤️ Thank You
181
+
182
+ - Claude Opus 4.5
183
+ - Juan Pelaez
184
+
185
+ ## 6.0.1 (2025-12-31)
186
+
187
+ ### 🩹 Fixes
188
+
189
+ - replace PATCH with PUT across all services ([6339334](https://github.com/23blocks-OS/frontend-sdk/commit/6339334))
190
+
191
+ ### ❤️ Thank You
192
+
193
+ - Claude Opus 4.5
194
+ - Juan Pelaez
195
+
196
+ # 6.0.0 (2025-12-17)
197
+
198
+ ### 🩹 Fixes
199
+
200
+ - ⚠️ use x-api-key header for API standards compliance ([8206652](https://github.com/23blocks-OS/frontend-sdk/commit/8206652))
201
+
202
+ ### ⚠️ Breaking Changes
203
+
204
+ - use x-api-key header for API standards compliance ([8206652](https://github.com/23blocks-OS/frontend-sdk/commit/8206652))
205
+ The HTTP header sent with API requests changed from
206
+ 'api-key' to 'x-api-key'. Backend services need to accept 'x-api-key' header.
207
+ 🤖 Generated with [Claude Code](https://claude.com/claude-code)
208
+ Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
209
+
210
+ ### ❤️ Thank You
211
+
212
+ - Claude Opus 4.5
213
+ - Juan Pelaez
214
+
215
+ ## 5.0.1 (2025-12-17)
216
+
217
+ ### 🧱 Updated Dependencies
218
+
219
+ - Updated @23blocks/jsonapi-codec to 3.0.1
220
+ - Updated @23blocks/contracts to 2.0.1
221
+
222
+ # 5.0.0 (2025-12-17)
223
+
224
+ ### 🚀 Features
225
+
226
+ - ⚠️ rename appId to apiKey and add test infrastructure ([fb02c62](https://github.com/23blocks-OS/frontend-sdk/commit/fb02c62))
227
+
228
+ ### ⚠️ Breaking Changes
229
+
230
+ - rename appId to apiKey and add test infrastructure ([fb02c62](https://github.com/23blocks-OS/frontend-sdk/commit/fb02c62))
231
+ The configuration property 'appId' has been renamed to 'apiKey' across all packages. The HTTP header sent to the API changed from 'appid' to 'api-key'.
232
+ - Rename appId to apiKey in BlockConfig interface
233
+ - Update SDK client, Angular providers, and React context
234
+ - Update all documentation with new apiKey examples
235
+ - Add comprehensive test infrastructure:
236
+ - Vitest workspace configuration (unit/integration/workflows)
237
+ - Docker compose for API testing
238
+ - Unit tests for mappers (32 tests passing)
239
+ - Integration test templates for Auth and Search blocks
240
+ - CI workflows for tiered testing (pr-checks, merge-tests, full-tests)
241
+ - Add BACKLOG.md tracking test prerequisites and pending work
242
+ - Add TEST_SUITE_STRATEGY.md documenting tiered testing approach
243
+ 🤖 Generated with [Claude Code](https://claude.com/claude-code)
244
+ Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
245
+
246
+ ### 🧱 Updated Dependencies
247
+
248
+ - Updated @23blocks/jsonapi-codec to 3.0.0
249
+ - Updated @23blocks/contracts to 2.0.0
250
+
251
+ ### ❤️ Thank You
252
+
253
+ - Claude Opus 4.5
254
+ - Juan Pelaez
255
+
256
+ # 4.0.0 (2025-12-15)
257
+
258
+ ### 🩹 Fixes
259
+
260
+ - ⚠️ make confirmSuccessUrl required in SignUpRequest and ResendConfirmationRequest ([1b5fb44](https://github.com/23blocks-OS/frontend-sdk/commit/1b5fb44))
261
+
262
+ ### ⚠️ Breaking Changes
263
+
264
+ - make confirmSuccessUrl required in SignUpRequest and ResendConfirmationRequest ([1b5fb44](https://github.com/23blocks-OS/frontend-sdk/commit/1b5fb44))
265
+ confirmSuccessUrl is now a required field.
266
+ This field is needed for the email confirmation flow to work correctly.
267
+ Applications must provide a redirect URL for users after they confirm their email.
268
+ 🤖 Generated with [Claude Code](https://claude.com/claude-code)
269
+ Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
270
+
271
+ ### ❤️ Thank You
272
+
273
+ - Claude Opus 4.5
274
+ - Juan Pelaez
275
+
276
+ ## 3.1.1 (2025-12-15)
277
+
278
+ ### 🩹 Fixes
279
+
280
+ - add mfa, oauth, avatars, tenants services to AuthenticationBlock ([281f5d6](https://github.com/23blocks-OS/frontend-sdk/commit/281f5d6))
281
+
282
+ ### ❤️ Thank You
283
+
284
+ - Claude Opus 4.5
285
+ - Juan Pelaez
286
+
287
+ ## 3.1.0 (2025-12-15)
288
+
289
+ ### 🚀 Features
290
+
291
+ - add validateEmail, MFA, OAuth, Avatars, Tenants to Auth block and expand CRM block ([48b980f](https://github.com/23blocks-OS/frontend-sdk/commit/48b980f))
292
+
293
+ ### ❤️ Thank You
294
+
295
+ - Claude Opus 4.5
296
+ - Juan Pelaez
297
+
298
+ ## 3.0.3 (2025-12-15)
299
+
300
+ ### 🩹 Fixes
301
+
302
+ - add subscription field for plan assignment on registration ([b3b14b8](https://github.com/23blocks-OS/frontend-sdk/commit/b3b14b8))
303
+
304
+ ### ❤️ Thank You
305
+
306
+ - Claude Opus 4.5
307
+ - Juan Pelaez
308
+
309
+ ## 3.0.2 (2025-12-15)
310
+
311
+ ### 🩹 Fixes
312
+
313
+ - add all missing registration parameters to SignUpRequest ([e1c514c](https://github.com/23blocks-OS/frontend-sdk/commit/e1c514c))
314
+
315
+ ### ❤️ Thank You
316
+
317
+ - Claude Opus 4.5
318
+ - Juan Pelaez
319
+
320
+ ## 3.0.1 (2025-12-15)
321
+
322
+ ### 🩹 Fixes
323
+
324
+ - add confirmSuccessUrl to SignUpRequest and improve error handling ([bf1ad46](https://github.com/23blocks-OS/frontend-sdk/commit/bf1ad46))
325
+
326
+ ### ❤️ Thank You
327
+
328
+ - Claude Opus 4.5
329
+ - Juan Pelaez
330
+
331
+ # 3.0.0 (2025-12-15)
332
+
333
+ ### 🩹 Fixes
334
+
335
+ - ⚠️ wrap all API request parameters with correct Rails object keys ([192ad70](https://github.com/23blocks-OS/frontend-sdk/commit/192ad70))
336
+
337
+ ### ⚠️ Breaking Changes
338
+
339
+ - wrap all API request parameters with correct Rails object keys ([192ad70](https://github.com/23blocks-OS/frontend-sdk/commit/192ad70))
340
+ All service methods now correctly wrap request bodies
341
+ with Rails-expected parameter keys (e.g., `user:`, `contact:`, `order:`).
342
+ This fixes the critical issue where API requests were failing validation
343
+ because parameters were sent flat instead of wrapped.
344
+ Affected blocks:
345
+ - block-authentication: auth, users, guests, apps, subscriptions, api-keys, roles
346
+ - block-crm: contacts, accounts, leads, opportunities, meetings, quotes
347
+ - block-company: companies, departments, teams, team-members, quarters
348
+ - block-content: posts, comments, categories, tags
349
+ - block-products: products, cart, catalog
350
+ - block-sales: orders, order-details, payments, subscriptions
351
+ - block-conversations: messages, groups, draft-messages, notifications
352
+ - block-wallet: wallets, authorization-codes
353
+ - block-files: storage-files, entity-files, file-schemas
354
+ - block-forms: forms, form-schemas, form-sets, form-instances
355
+ - block-assets: assets, asset-events, asset-audits
356
+ - block-campaigns: campaigns, campaign-media, audiences, landing-pages
357
+ - block-geolocation: locations, addresses, areas, regions, routes, bookings, premises
358
+ - block-rewards: rewards, coupons, loyalty, badges
359
+ - block-onboarding: onboardings, flows, user-journeys, user-identities
360
+ - block-university: courses, lessons, enrollments, assignments, submissions
361
+ - block-jarvis: agents, prompts, workflows, conversations
362
+ Consumer API remains unchanged - this is an internal fix.
363
+ 🤖 Generated with [Claude Code](https://claude.com/claude-code)
364
+ Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
365
+
366
+ ### 🧱 Updated Dependencies
367
+
368
+ - Updated @23blocks/jsonapi-codec to 2.0.0
369
+
370
+ ### ❤️ Thank You
371
+
372
+ - Claude Opus 4.5
373
+ - Juan Pelaez
374
+
375
+ # 2.0.0 (2025-12-14)
376
+
377
+ ### 🚀 Features
378
+
379
+ - ⚠️ change appid header to x-api-key for API standards compliance ([bcaf889](https://github.com/23blocks-OS/frontend-sdk/commit/bcaf889))
380
+
381
+ ### ⚠️ Breaking Changes
382
+
383
+ - change appid header to x-api-key for API standards compliance ([bcaf889](https://github.com/23blocks-OS/frontend-sdk/commit/bcaf889))
384
+ The header sent with requests changed from 'appid' to 'x-api-key'. Backend services need to accept 'x-api-key' header.
385
+ 🤖 Generated with [Claude Code](https://claude.com/claude-code)
386
+ Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
387
+
388
+ ### ❤️ Thank You
389
+
390
+ - Claude Opus 4.5
391
+ - Juan Pelaez
392
+
393
+ ## 1.0.5 (2025-12-14)
394
+
395
+ ### 🧱 Updated Dependencies
396
+
397
+ - Updated @23blocks/jsonapi-codec to 1.0.4
398
+ - Updated @23blocks/contracts to 1.0.4
399
+
400
+ ## 1.0.4 (2025-12-14)
401
+
402
+ ### 🧱 Updated Dependencies
403
+
404
+ - Updated @23blocks/jsonapi-codec to 1.0.3
405
+ - Updated @23blocks/contracts to 1.0.3
406
+
407
+ ## 1.0.3 (2025-12-14)
408
+
409
+ ### 🧱 Updated Dependencies
410
+
411
+ - Updated @23blocks/jsonapi-codec to 1.0.2
412
+ - Updated @23blocks/contracts to 1.0.2
413
+
414
+ ## 1.0.2 (2025-12-14)
415
+
416
+ ### 🧱 Updated Dependencies
417
+
418
+ - Updated @23blocks/jsonapi-codec to 1.0.1
419
+ - Updated @23blocks/contracts to 1.0.1
420
+
421
+ ## 1.0.1 (2025-12-13)
422
+
423
+ ### 🩹 Fixes
424
+
425
+ - **block-authentication:** remove getFullName utility from public exports ([6576861](https://github.com/23blocks-OS/frontend-sdk/commit/6576861))
426
+
427
+ ### ❤️ Thank You
428
+
429
+ - Claude Opus 4.5
430
+ - Juan Pelaez
431
+
432
+ # 1.0.0 (2025-12-13)
433
+
434
+ ### 🧱 Updated Dependencies
435
+
436
+ - Updated @23blocks/jsonapi-codec to 1.0.0
437
+ - Updated @23blocks/contracts to 1.0.0
438
+
439
+ ## 0.1.2 (2025-12-13)
440
+
441
+ ### 🧱 Updated Dependencies
442
+
443
+ - Updated @23blocks/jsonapi-codec to 0.1.2
444
+ - Updated @23blocks/contracts to 0.1.2
445
+
446
+ ## 0.1.1 (2025-12-13)
447
+
448
+ ### 🧱 Updated Dependencies
449
+
450
+ - Updated @23blocks/jsonapi-codec to 0.1.1
451
+ - Updated @23blocks/contracts to 0.1.1
452
+
453
+ ## 0.1.0 (2025-12-13)
454
+
455
+ ### 🚀 Features
456
+
457
+ - 23blocks SDK initial release ([ab53789](https://github.com/23blocks-OS/frontend-sdk/commit/ab53789))
458
+
459
+ ### 🧱 Updated Dependencies
460
+
461
+ - Updated @23blocks/jsonapi-codec to 0.1.0
462
+ - Updated @23blocks/contracts to 0.1.0
463
+
464
+ ### ❤️ Thank You
465
+
466
+ - Claude Opus 4.5
467
+ - Juan Pelaez