@faable/auth-sdk 1.1.3 → 1.2.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.
@@ -40,7 +40,7 @@ export declare class FaableAuthApi extends FaableApi {
40
40
  phone_verified: boolean;
41
41
  country_iso?: string | null | undefined;
42
42
  birth_date?: string | null | undefined;
43
- locale: string;
43
+ locale?: string | undefined;
44
44
  region?: string | null | undefined;
45
45
  picture?: string | null | undefined;
46
46
  logins_count: number;
@@ -71,7 +71,7 @@ export declare class FaableAuthApi extends FaableApi {
71
71
  phone_verified: boolean;
72
72
  country_iso?: string | null | undefined;
73
73
  birth_date?: string | null | undefined;
74
- locale: string;
74
+ locale?: string | undefined;
75
75
  region?: string | null | undefined;
76
76
  picture?: string | null | undefined;
77
77
  logins_count: number;
@@ -105,7 +105,7 @@ export declare class FaableAuthApi extends FaableApi {
105
105
  phone_verified: boolean;
106
106
  country_iso?: string | null | undefined;
107
107
  birth_date?: string | null | undefined;
108
- locale: string;
108
+ locale?: string | undefined;
109
109
  region?: string | null | undefined;
110
110
  picture?: string | null | undefined;
111
111
  logins_count: number;
@@ -137,7 +137,7 @@ export declare class FaableAuthApi extends FaableApi {
137
137
  phone_verified: boolean;
138
138
  country_iso?: string | null | undefined;
139
139
  birth_date?: string | null | undefined;
140
- locale: string;
140
+ locale?: string | undefined;
141
141
  region?: string | null | undefined;
142
142
  picture?: string | null | undefined;
143
143
  logins_count: number;
@@ -168,7 +168,7 @@ export declare class FaableAuthApi extends FaableApi {
168
168
  phone_verified: boolean;
169
169
  country_iso?: string | null | undefined;
170
170
  birth_date?: string | null | undefined;
171
- locale: string;
171
+ locale?: string | undefined;
172
172
  region?: string | null | undefined;
173
173
  picture?: string | null | undefined;
174
174
  logins_count: number;
@@ -199,7 +199,7 @@ export declare class FaableAuthApi extends FaableApi {
199
199
  phone_verified: boolean;
200
200
  country_iso?: string | null | undefined;
201
201
  birth_date?: string | null | undefined;
202
- locale: string;
202
+ locale?: string | undefined;
203
203
  region?: string | null | undefined;
204
204
  picture?: string | null | undefined;
205
205
  logins_count: number;
@@ -231,6 +231,7 @@ export declare class FaableAuthApi extends FaableApi {
231
231
  createdAt: string;
232
232
  updatedAt?: string | undefined;
233
233
  }>;
234
+ deleteTeam(team_id: string): Promise<any>;
234
235
  createTeam(data: TeamCreate): Promise<{
235
236
  id: string;
236
237
  name: string;
@@ -41,6 +41,9 @@ export class FaableAuthApi extends FaableApi {
41
41
  getTeam(team_id) {
42
42
  return this.fetcher.get(`/team/${team_id}`);
43
43
  }
44
+ deleteTeam(team_id) {
45
+ return this.fetcher.delete(`/team/${team_id}`);
46
+ }
44
47
  createTeam(data) {
45
48
  return this.fetcher.post(`/team`, data);
46
49
  }
@@ -3,6 +3,16 @@
3
3
  * Do not make direct changes to the file.
4
4
  */
5
5
  export interface paths {
6
+ "/metrics": {
7
+ get: {
8
+ responses: {
9
+ /** @description Default Response */
10
+ 200: {
11
+ content: never;
12
+ };
13
+ };
14
+ };
15
+ };
6
16
  "/account/current": {
7
17
  /**
8
18
  * Get current Account
@@ -10,7 +20,7 @@ export interface paths {
10
20
  */
11
21
  get: {
12
22
  responses: {
13
- /** @description Default Response */
23
+ /** @description AuthAccount */
14
24
  200: {
15
25
  content: {
16
26
  "application/json": components["schemas"]["AuthAccount"];
@@ -60,7 +70,7 @@ export interface paths {
60
70
  };
61
71
  };
62
72
  responses: {
63
- /** @description Default Response */
73
+ /** @description AuthAccount */
64
74
  201: {
65
75
  content: {
66
76
  "application/json": components["schemas"]["AuthAccount"];
@@ -401,7 +411,7 @@ export interface paths {
401
411
  };
402
412
  };
403
413
  responses: {
404
- /** @description Default Response */
414
+ /** @description TeamMember */
405
415
  201: {
406
416
  content: {
407
417
  "application/json": components["schemas"]["TeamMember"];
@@ -431,7 +441,7 @@ export interface paths {
431
441
  };
432
442
  };
433
443
  responses: {
434
- /** @description Default Response */
444
+ /** @description TeamMember */
435
445
  200: {
436
446
  content: {
437
447
  "application/json": components["schemas"]["TeamMember"];
@@ -525,7 +535,7 @@ export interface paths {
525
535
  */
526
536
  get: {
527
537
  responses: {
528
- /** @description Default Response */
538
+ /** @description User */
529
539
  200: {
530
540
  content: {
531
541
  "application/json": components["schemas"]["User"];
@@ -582,7 +592,16 @@ export interface paths {
582
592
  responses: {
583
593
  /** @description Default Response */
584
594
  200: {
585
- content: never;
595
+ content: {
596
+ "application/json": {
597
+ token_type: string;
598
+ expires_in: number;
599
+ access_token: string;
600
+ refresh_token?: string;
601
+ id_token?: string;
602
+ scope?: string;
603
+ };
604
+ };
586
605
  };
587
606
  };
588
607
  };
@@ -611,7 +630,16 @@ export interface paths {
611
630
  responses: {
612
631
  /** @description Default Response */
613
632
  200: {
614
- content: never;
633
+ content: {
634
+ "application/json": {
635
+ token_type: string;
636
+ expires_in: number;
637
+ access_token: string;
638
+ refresh_token?: string;
639
+ id_token?: string;
640
+ scope?: string;
641
+ };
642
+ };
615
643
  };
616
644
  };
617
645
  };
@@ -830,7 +858,10 @@ export interface components {
830
858
  family_name?: string | null;
831
859
  /** @description User email */
832
860
  email?: string | null;
833
- /** @description true if email is verified */
861
+ /**
862
+ * @description true if email is verified
863
+ * @default false
864
+ */
834
865
  email_verified: boolean;
835
866
  /** @description contact phone number */
836
867
  phone?: string | null;
@@ -841,7 +872,7 @@ export interface components {
841
872
  /** @description user birth_date */
842
873
  birth_date?: string | null;
843
874
  /** @description user main language */
844
- locale: string;
875
+ locale?: string;
845
876
  /** @description customer region */
846
877
  region?: string | null;
847
878
  /** @description User picture url */
@@ -1349,7 +1380,7 @@ export interface operations {
1349
1380
  };
1350
1381
  };
1351
1382
  responses: {
1352
- /** @description Default Response */
1383
+ /** @description Connection */
1353
1384
  200: {
1354
1385
  content: {
1355
1386
  "application/json": components["schemas"]["Connection"];
@@ -1368,7 +1399,7 @@ export interface operations {
1368
1399
  };
1369
1400
  };
1370
1401
  responses: {
1371
- /** @description Default Response */
1402
+ /** @description Connection */
1372
1403
  200: {
1373
1404
  content: {
1374
1405
  "application/json": components["schemas"]["Connection"];
@@ -1436,7 +1467,7 @@ export interface operations {
1436
1467
  };
1437
1468
  };
1438
1469
  responses: {
1439
- /** @description Default Response */
1470
+ /** @description Client */
1440
1471
  200: {
1441
1472
  content: {
1442
1473
  "application/json": components["schemas"]["Client"];
@@ -1455,7 +1486,7 @@ export interface operations {
1455
1486
  };
1456
1487
  };
1457
1488
  responses: {
1458
- /** @description Default Response */
1489
+ /** @description Client */
1459
1490
  200: {
1460
1491
  content: {
1461
1492
  "application/json": components["schemas"]["Client"];
@@ -1523,7 +1554,7 @@ export interface operations {
1523
1554
  };
1524
1555
  };
1525
1556
  responses: {
1526
- /** @description Default Response */
1557
+ /** @description User */
1527
1558
  200: {
1528
1559
  content: {
1529
1560
  "application/json": components["schemas"]["User"];
@@ -1542,7 +1573,7 @@ export interface operations {
1542
1573
  };
1543
1574
  };
1544
1575
  responses: {
1545
- /** @description Default Response */
1576
+ /** @description User */
1546
1577
  200: {
1547
1578
  content: {
1548
1579
  "application/json": components["schemas"]["User"];
@@ -1566,7 +1597,7 @@ export interface operations {
1566
1597
  };
1567
1598
  };
1568
1599
  responses: {
1569
- /** @description Default Response */
1600
+ /** @description User */
1570
1601
  200: {
1571
1602
  content: {
1572
1603
  "application/json": components["schemas"]["User"];
@@ -1634,7 +1665,7 @@ export interface operations {
1634
1665
  };
1635
1666
  };
1636
1667
  responses: {
1637
- /** @description Default Response */
1668
+ /** @description Identity */
1638
1669
  200: {
1639
1670
  content: {
1640
1671
  "application/json": components["schemas"]["Identity"];
@@ -1653,7 +1684,7 @@ export interface operations {
1653
1684
  };
1654
1685
  };
1655
1686
  responses: {
1656
- /** @description Default Response */
1687
+ /** @description Identity */
1657
1688
  200: {
1658
1689
  content: {
1659
1690
  "application/json": components["schemas"]["Identity"];
@@ -1721,7 +1752,7 @@ export interface operations {
1721
1752
  };
1722
1753
  };
1723
1754
  responses: {
1724
- /** @description Default Response */
1755
+ /** @description Role */
1725
1756
  200: {
1726
1757
  content: {
1727
1758
  "application/json": components["schemas"]["Role"];
@@ -1740,7 +1771,7 @@ export interface operations {
1740
1771
  };
1741
1772
  };
1742
1773
  responses: {
1743
- /** @description Default Response */
1774
+ /** @description Role */
1744
1775
  200: {
1745
1776
  content: {
1746
1777
  "application/json": components["schemas"]["Role"];
@@ -1862,7 +1893,7 @@ export interface operations {
1862
1893
  };
1863
1894
  };
1864
1895
  responses: {
1865
- /** @description Default Response */
1896
+ /** @description RoleMember */
1866
1897
  200: {
1867
1898
  content: {
1868
1899
  "application/json": components["schemas"]["RoleMember"];
@@ -1881,7 +1912,7 @@ export interface operations {
1881
1912
  };
1882
1913
  };
1883
1914
  responses: {
1884
- /** @description Default Response */
1915
+ /** @description RoleMember */
1885
1916
  200: {
1886
1917
  content: {
1887
1918
  "application/json": components["schemas"]["RoleMember"];
@@ -1949,7 +1980,7 @@ export interface operations {
1949
1980
  };
1950
1981
  };
1951
1982
  responses: {
1952
- /** @description Default Response */
1983
+ /** @description Team */
1953
1984
  200: {
1954
1985
  content: {
1955
1986
  "application/json": components["schemas"]["Team"];
@@ -1968,7 +1999,7 @@ export interface operations {
1968
1999
  };
1969
2000
  };
1970
2001
  responses: {
1971
- /** @description Default Response */
2002
+ /** @description Team */
1972
2003
  200: {
1973
2004
  content: {
1974
2005
  "application/json": components["schemas"]["Team"];
@@ -2036,7 +2067,7 @@ export interface operations {
2036
2067
  };
2037
2068
  };
2038
2069
  responses: {
2039
- /** @description Default Response */
2070
+ /** @description TeamMember */
2040
2071
  200: {
2041
2072
  content: {
2042
2073
  "application/json": components["schemas"]["TeamMember"];
@@ -2055,7 +2086,7 @@ export interface operations {
2055
2086
  };
2056
2087
  };
2057
2088
  responses: {
2058
- /** @description Default Response */
2089
+ /** @description TeamMember */
2059
2090
  200: {
2060
2091
  content: {
2061
2092
  "application/json": components["schemas"]["TeamMember"];
@@ -2123,7 +2154,7 @@ export interface operations {
2123
2154
  };
2124
2155
  };
2125
2156
  responses: {
2126
- /** @description Default Response */
2157
+ /** @description Webhook */
2127
2158
  200: {
2128
2159
  content: {
2129
2160
  "application/json": components["schemas"]["Webhook"];
@@ -2142,7 +2173,7 @@ export interface operations {
2142
2173
  };
2143
2174
  };
2144
2175
  responses: {
2145
- /** @description Default Response */
2176
+ /** @description Webhook */
2146
2177
  200: {
2147
2178
  content: {
2148
2179
  "application/json": components["schemas"]["Webhook"];
@@ -2210,7 +2241,7 @@ export interface operations {
2210
2241
  };
2211
2242
  };
2212
2243
  responses: {
2213
- /** @description Default Response */
2244
+ /** @description Api */
2214
2245
  200: {
2215
2246
  content: {
2216
2247
  "application/json": components["schemas"]["Api"];
@@ -2229,7 +2260,7 @@ export interface operations {
2229
2260
  };
2230
2261
  };
2231
2262
  responses: {
2232
- /** @description Default Response */
2263
+ /** @description Api */
2233
2264
  200: {
2234
2265
  content: {
2235
2266
  "application/json": components["schemas"]["Api"];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@faable/auth-sdk",
3
- "version": "1.1.3",
3
+ "version": "1.2.0",
4
4
  "author": "Marc Pomar <marc@faable.com>",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -10,7 +10,7 @@
10
10
  },
11
11
  "type": "module",
12
12
  "dependencies": {
13
- "@faable/sdk-base": "^1.0.7"
13
+ "@faable/sdk-base": "^1.1.0"
14
14
  },
15
15
  "devDependencies": {
16
16
  "@ava/typescript": "^5.0.0",