@digiteers/uloba3-sdk 4.0.4 → 4.0.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/types.d.ts CHANGED
@@ -506,6 +506,15 @@ export interface paths {
506
506
  given_name?: string;
507
507
  family_name?: string;
508
508
  phone_number?: string;
509
+ gdpr_consent?: {
510
+ necessary: boolean;
511
+ analytics: boolean;
512
+ marketing: boolean;
513
+ /** Format: date-time */
514
+ consentDate: string;
515
+ consentVersion: string;
516
+ acceptedTermsVersion: string;
517
+ };
509
518
  };
510
519
  };
511
520
  };
@@ -1385,7 +1394,7 @@ export interface paths {
1385
1394
  patch?: never;
1386
1395
  trace?: never;
1387
1396
  };
1388
- '/api/accounts/{id}/gdpr/export': {
1397
+ '/api/users/me/gdpr/export': {
1389
1398
  parameters: {
1390
1399
  query?: never;
1391
1400
  header?: never;
@@ -1396,15 +1405,13 @@ export interface paths {
1396
1405
  put?: never;
1397
1406
  /**
1398
1407
  * Request GDPR export
1399
- * @description Request a GDPR data export for an account
1408
+ * @description Request a GDPR data export for the current user
1400
1409
  */
1401
1410
  post: {
1402
1411
  parameters: {
1403
1412
  query?: never;
1404
1413
  header?: never;
1405
- path: {
1406
- id: string;
1407
- };
1414
+ path?: never;
1408
1415
  cookie?: never;
1409
1416
  };
1410
1417
  requestBody?: never;
@@ -1437,7 +1444,7 @@ export interface paths {
1437
1444
  patch?: never;
1438
1445
  trace?: never;
1439
1446
  };
1440
- '/api/accounts/{id}/gdpr/export/{exportId}': {
1447
+ '/api/users/me/gdpr/export/{exportId}': {
1441
1448
  parameters: {
1442
1449
  query?: never;
1443
1450
  header?: never;
@@ -1453,7 +1460,6 @@ export interface paths {
1453
1460
  query?: never;
1454
1461
  header?: never;
1455
1462
  path: {
1456
- id: string;
1457
1463
  exportId: string;
1458
1464
  };
1459
1465
  cookie?: never;
@@ -1490,7 +1496,7 @@ export interface paths {
1490
1496
  patch?: never;
1491
1497
  trace?: never;
1492
1498
  };
1493
- '/api/accounts/{id}/gdpr/exports': {
1499
+ '/api/users/me/gdpr/exports': {
1494
1500
  parameters: {
1495
1501
  query?: never;
1496
1502
  header?: never;
@@ -1499,15 +1505,13 @@ export interface paths {
1499
1505
  };
1500
1506
  /**
1501
1507
  * List export requests
1502
- * @description Get all GDPR export requests for an account
1508
+ * @description Get all GDPR export requests for the current user
1503
1509
  */
1504
1510
  get: {
1505
1511
  parameters: {
1506
1512
  query?: never;
1507
1513
  header?: never;
1508
- path: {
1509
- id: string;
1510
- };
1514
+ path?: never;
1511
1515
  cookie?: never;
1512
1516
  };
1513
1517
  requestBody?: never;
@@ -1542,7 +1546,72 @@ export interface paths {
1542
1546
  patch?: never;
1543
1547
  trace?: never;
1544
1548
  };
1545
- '/api/accounts/{id}/gdpr/delete': {
1549
+ '/api/users/me/gdpr/export/{exportId}/download': {
1550
+ parameters: {
1551
+ query?: never;
1552
+ header?: never;
1553
+ path?: never;
1554
+ cookie?: never;
1555
+ };
1556
+ /**
1557
+ * Download GDPR export PDF
1558
+ * @description Download the generated PDF file for a completed GDPR export request
1559
+ */
1560
+ get: {
1561
+ parameters: {
1562
+ query?: never;
1563
+ header?: never;
1564
+ path: {
1565
+ exportId: string;
1566
+ };
1567
+ cookie?: never;
1568
+ };
1569
+ requestBody?: never;
1570
+ responses: {
1571
+ /** @description Default Response */
1572
+ 403: {
1573
+ headers: {
1574
+ [name: string]: unknown;
1575
+ };
1576
+ content: {
1577
+ 'application/pdf': {
1578
+ error: string;
1579
+ };
1580
+ };
1581
+ };
1582
+ /** @description Default Response */
1583
+ 404: {
1584
+ headers: {
1585
+ [name: string]: unknown;
1586
+ };
1587
+ content: {
1588
+ 'application/pdf': {
1589
+ error: string;
1590
+ };
1591
+ };
1592
+ };
1593
+ /** @description Default Response */
1594
+ 500: {
1595
+ headers: {
1596
+ [name: string]: unknown;
1597
+ };
1598
+ content: {
1599
+ 'application/pdf': {
1600
+ error: string;
1601
+ };
1602
+ };
1603
+ };
1604
+ };
1605
+ };
1606
+ put?: never;
1607
+ post?: never;
1608
+ delete?: never;
1609
+ options?: never;
1610
+ head?: never;
1611
+ patch?: never;
1612
+ trace?: never;
1613
+ };
1614
+ '/api/users/me/gdpr/delete': {
1546
1615
  parameters: {
1547
1616
  query?: never;
1548
1617
  header?: never;
@@ -1559,9 +1628,7 @@ export interface paths {
1559
1628
  parameters: {
1560
1629
  query?: never;
1561
1630
  header?: never;
1562
- path: {
1563
- id: string;
1564
- };
1631
+ path?: never;
1565
1632
  cookie?: never;
1566
1633
  };
1567
1634
  requestBody: {
@@ -2304,7 +2371,9 @@ export interface paths {
2304
2371
  'application/json': {
2305
2372
  /** Format: uuid */
2306
2373
  id: string;
2374
+ uloba_id: string | null;
2307
2375
  uloba_immutable_id: string | null;
2376
+ auth0_id: string | null;
2308
2377
  /** Format: email */
2309
2378
  email: string;
2310
2379
  email_verified: boolean;
@@ -2312,6 +2381,8 @@ export interface paths {
2312
2381
  full_name: string | null;
2313
2382
  given_name: string | null;
2314
2383
  family_name: string | null;
2384
+ picture: string | null;
2385
+ auth0_metadata: unknown | null;
2315
2386
  display_name: string;
2316
2387
  roles: string[] | null;
2317
2388
  created_at: string | null;
@@ -2320,11 +2391,18 @@ export interface paths {
2320
2391
  account_id: string | null;
2321
2392
  account_owner_id: string | null;
2322
2393
  account_status: string | null;
2323
- account_language: string | null;
2394
+ account_created_at: string | null;
2395
+ account_updated_at: string | null;
2396
+ last_updated: string | null;
2397
+ gdpr_consent: unknown | null;
2398
+ language: string | null;
2399
+ timezone: string | null;
2400
+ theme: string | null;
2401
+ email_notifications: boolean | null;
2402
+ sms_notifications: boolean | null;
2403
+ push_notifications: boolean | null;
2404
+ settings: unknown | null;
2324
2405
  is_assistant: boolean;
2325
- is_employer: boolean;
2326
- is_caseworker: boolean;
2327
- is_support: boolean;
2328
2406
  };
2329
2407
  };
2330
2408
  };
@@ -2354,7 +2432,7 @@ export interface paths {
2354
2432
  };
2355
2433
  /**
2356
2434
  * Update current user
2357
- * @description Update the currently authenticated user
2435
+ * @description Update the currently authenticated user and their account settings
2358
2436
  */
2359
2437
  put: {
2360
2438
  parameters: {
@@ -2363,7 +2441,7 @@ export interface paths {
2363
2441
  path?: never;
2364
2442
  cookie?: never;
2365
2443
  };
2366
- /** @description Schema for updating an existing user */
2444
+ /** @description Schema for updating an existing user and their account settings */
2367
2445
  requestBody?: {
2368
2446
  content: {
2369
2447
  'application/json': {
@@ -2378,6 +2456,20 @@ export interface paths {
2378
2456
  auth0_metadata?: unknown;
2379
2457
  email_verified?: boolean;
2380
2458
  roles?: unknown;
2459
+ gdpr_consent?: {
2460
+ necessary: boolean;
2461
+ analytics: boolean;
2462
+ marketing: boolean;
2463
+ consentDate: string;
2464
+ consentVersion: string;
2465
+ };
2466
+ language?: 'nb' | 'nn' | 'en' | 'se' | 'pl' | 'so' | 'ar';
2467
+ timezone?: string;
2468
+ theme?: 'light' | 'dark' | 'auto';
2469
+ email_notifications?: boolean;
2470
+ sms_notifications?: boolean;
2471
+ push_notifications?: boolean;
2472
+ settings?: unknown;
2381
2473
  };
2382
2474
  };
2383
2475
  };
@@ -2977,6 +3069,122 @@ export interface paths {
2977
3069
  patch?: never;
2978
3070
  trace?: never;
2979
3071
  };
3072
+ '/api/users/deactivate': {
3073
+ parameters: {
3074
+ query?: never;
3075
+ header?: never;
3076
+ path?: never;
3077
+ cookie?: never;
3078
+ };
3079
+ get?: never;
3080
+ put?: never;
3081
+ /**
3082
+ * Deactivate own account
3083
+ * @description User deactivates their own account with 30-day grace period
3084
+ */
3085
+ post: {
3086
+ parameters: {
3087
+ query?: never;
3088
+ header?: never;
3089
+ path?: never;
3090
+ cookie?: never;
3091
+ };
3092
+ requestBody: {
3093
+ content: {
3094
+ 'application/json': {
3095
+ confirmation: string;
3096
+ feedback?: string;
3097
+ };
3098
+ };
3099
+ };
3100
+ responses: {
3101
+ /** @description Default Response */
3102
+ 200: {
3103
+ headers: {
3104
+ [name: string]: unknown;
3105
+ };
3106
+ content: {
3107
+ 'application/json': {
3108
+ success: boolean;
3109
+ message: string;
3110
+ deletion_scheduled_at: string;
3111
+ jobs_unpublished: number;
3112
+ assistants_hidden: number;
3113
+ };
3114
+ };
3115
+ };
3116
+ /** @description Default Response */
3117
+ 400: {
3118
+ headers: {
3119
+ [name: string]: unknown;
3120
+ };
3121
+ content: {
3122
+ 'application/json': {
3123
+ error: string;
3124
+ };
3125
+ };
3126
+ };
3127
+ };
3128
+ };
3129
+ delete?: never;
3130
+ options?: never;
3131
+ head?: never;
3132
+ patch?: never;
3133
+ trace?: never;
3134
+ };
3135
+ '/api/users/cancel-deactivation': {
3136
+ parameters: {
3137
+ query?: never;
3138
+ header?: never;
3139
+ path?: never;
3140
+ cookie?: never;
3141
+ };
3142
+ get?: never;
3143
+ put?: never;
3144
+ /**
3145
+ * Cancel account deactivation
3146
+ * @description Cancel self-deactivation within 30-day grace period
3147
+ */
3148
+ post: {
3149
+ parameters: {
3150
+ query?: never;
3151
+ header?: never;
3152
+ path?: never;
3153
+ cookie?: never;
3154
+ };
3155
+ requestBody?: never;
3156
+ responses: {
3157
+ /** @description Default Response */
3158
+ 200: {
3159
+ headers: {
3160
+ [name: string]: unknown;
3161
+ };
3162
+ content: {
3163
+ 'application/json': {
3164
+ success: boolean;
3165
+ message: string;
3166
+ };
3167
+ };
3168
+ };
3169
+ /** @description Default Response */
3170
+ 400: {
3171
+ headers: {
3172
+ [name: string]: unknown;
3173
+ };
3174
+ content: {
3175
+ 'application/json': {
3176
+ error: string;
3177
+ };
3178
+ };
3179
+ };
3180
+ };
3181
+ };
3182
+ delete?: never;
3183
+ options?: never;
3184
+ head?: never;
3185
+ patch?: never;
3186
+ trace?: never;
3187
+ };
2980
3188
  '/api/users/{id}/activity/export': {
2981
3189
  parameters: {
2982
3190
  query?: never;
@@ -39995,8 +40203,9 @@ export interface paths {
39995
40203
  };
39996
40204
  content: {
39997
40205
  'application/json': {
39998
- contractCount: number;
39999
- totalUsage: number;
40206
+ total_uses: number;
40207
+ contracts_count: number;
40208
+ last_used_at: string | null;
40000
40209
  };
40001
40210
  };
40002
40211
  };
@@ -42024,6 +42233,171 @@ export interface paths {
42024
42233
  patch?: never;
42025
42234
  trace?: never;
42026
42235
  };
42236
+ '/api/support/users/{id}/deactivate': {
42237
+ parameters: {
42238
+ query?: never;
42239
+ header?: never;
42240
+ path?: never;
42241
+ cookie?: never;
42242
+ };
42243
+ get?: never;
42244
+ put?: never;
42245
+ /**
42246
+ * Deactivate user
42247
+ * @description Admin deactivates user account immediately. Unpublishes jobs and hides assistant profile. Requires CASE_MANAGER role.
42248
+ */
42249
+ post: {
42250
+ parameters: {
42251
+ query?: never;
42252
+ header?: never;
42253
+ path: {
42254
+ /** @description User ID */
42255
+ id: string;
42256
+ };
42257
+ cookie?: never;
42258
+ };
42259
+ requestBody: {
42260
+ content: {
42261
+ 'application/json': {
42262
+ reason: string;
42263
+ };
42264
+ };
42265
+ };
42266
+ responses: {
42267
+ /** @description Default Response */
42268
+ 200: {
42269
+ headers: {
42270
+ [name: string]: unknown;
42271
+ };
42272
+ content: {
42273
+ 'application/json': {
42274
+ success: boolean;
42275
+ message: string;
42276
+ deactivation_type: string;
42277
+ jobs_unpublished: number;
42278
+ assistants_hidden: number;
42279
+ };
42280
+ };
42281
+ };
42282
+ /** @description Default Response */
42283
+ 400: {
42284
+ headers: {
42285
+ [name: string]: unknown;
42286
+ };
42287
+ content: {
42288
+ 'application/json': {
42289
+ error: string;
42290
+ };
42291
+ };
42292
+ };
42293
+ /** @description Default Response */
42294
+ 404: {
42295
+ headers: {
42296
+ [name: string]: unknown;
42297
+ };
42298
+ content: {
42299
+ 'application/json': {
42300
+ error: string;
42301
+ };
42302
+ };
42303
+ };
42304
+ /** @description Default Response */
42305
+ 500: {
42306
+ headers: {
42307
+ [name: string]: unknown;
42308
+ };
42309
+ content: {
42310
+ 'application/json': {
42311
+ error: string;
42312
+ };
42313
+ };
42314
+ };
42315
+ };
42316
+ };
42317
+ delete?: never;
42318
+ options?: never;
42319
+ head?: never;
42320
+ patch?: never;
42321
+ trace?: never;
42322
+ };
42323
+ '/api/support/users/{id}/reactivate': {
42324
+ parameters: {
42325
+ query?: never;
42326
+ header?: never;
42327
+ path?: never;
42328
+ cookie?: never;
42329
+ };
42330
+ get?: never;
42331
+ put?: never;
42332
+ /**
42333
+ * Reactivate user
42334
+ * @description Admin reactivates a deactivated user. Note: jobs and profiles are NOT automatically re-published. Requires CASE_MANAGER role.
42335
+ */
42336
+ post: {
42337
+ parameters: {
42338
+ query?: never;
42339
+ header?: never;
42340
+ path: {
42341
+ /** @description User ID */
42342
+ id: string;
42343
+ };
42344
+ cookie?: never;
42345
+ };
42346
+ requestBody?: never;
42347
+ responses: {
42348
+ /** @description Default Response */
42349
+ 200: {
42350
+ headers: {
42351
+ [name: string]: unknown;
42352
+ };
42353
+ content: {
42354
+ 'application/json': {
42355
+ success: boolean;
42356
+ message: string;
42357
+ };
42358
+ };
42359
+ };
42360
+ /** @description Default Response */
42361
+ 400: {
42362
+ headers: {
42363
+ [name: string]: unknown;
42364
+ };
42365
+ content: {
42366
+ 'application/json': {
42367
+ error: string;
42368
+ };
42369
+ };
42370
+ };
42371
+ /** @description Default Response */
42372
+ 404: {
42373
+ headers: {
42374
+ [name: string]: unknown;
42375
+ };
42376
+ content: {
42377
+ 'application/json': {
42378
+ error: string;
42379
+ };
42380
+ };
42381
+ };
42382
+ /** @description Default Response */
42383
+ 500: {
42384
+ headers: {
42385
+ [name: string]: unknown;
42386
+ };
42387
+ content: {
42388
+ 'application/json': {
42389
+ error: string;
42390
+ };
42391
+ };
42392
+ };
42393
+ };
42394
+ };
42395
+ delete?: never;
42396
+ options?: never;
42397
+ head?: never;
42398
+ patch?: never;
42399
+ trace?: never;
42400
+ };
42027
42401
  '/api/support/users/{id}/jobs': {
42028
42402
  parameters: {
42029
42403
  query?: never;