@nokinc-flur/sdk 2.5.0 → 3.0.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.
- package/README.md +17 -17
- package/dist/index.cjs +3 -5305
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +15 -24
- package/dist/index.d.ts +15 -24
- package/dist/index.js +3 -5019
- package/dist/index.js.map +1 -1
- package/openapi/flur.openapi.json +167 -7
- package/package.json +2 -2
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"openapi": "3.0.3",
|
|
3
3
|
"info": {
|
|
4
4
|
"title": "Flur API",
|
|
5
|
-
"version": "
|
|
5
|
+
"version": "2.5.0"
|
|
6
6
|
},
|
|
7
7
|
"paths": {
|
|
8
8
|
"/health": {
|
|
@@ -64,11 +64,61 @@
|
|
|
64
64
|
"type": "object",
|
|
65
65
|
"properties": {
|
|
66
66
|
"phoneE164": {
|
|
67
|
-
"type": "string"
|
|
67
|
+
"type": "string",
|
|
68
|
+
"pattern": "^\\+[1-9]\\d{7,14}$"
|
|
69
|
+
},
|
|
70
|
+
"appInstanceId": {
|
|
71
|
+
"type": "string",
|
|
72
|
+
"minLength": 3
|
|
73
|
+
},
|
|
74
|
+
"platform": {
|
|
75
|
+
"type": "string",
|
|
76
|
+
"enum": [
|
|
77
|
+
"android",
|
|
78
|
+
"ios",
|
|
79
|
+
"web"
|
|
80
|
+
]
|
|
81
|
+
},
|
|
82
|
+
"turnstileToken": {
|
|
83
|
+
"type": "string",
|
|
84
|
+
"minLength": 20
|
|
85
|
+
},
|
|
86
|
+
"appAttestation": {
|
|
87
|
+
"type": "object",
|
|
88
|
+
"properties": {
|
|
89
|
+
"provider": {
|
|
90
|
+
"type": "string",
|
|
91
|
+
"enum": [
|
|
92
|
+
"android",
|
|
93
|
+
"ios",
|
|
94
|
+
"web"
|
|
95
|
+
]
|
|
96
|
+
},
|
|
97
|
+
"token": {
|
|
98
|
+
"type": "string",
|
|
99
|
+
"minLength": 24
|
|
100
|
+
}
|
|
101
|
+
},
|
|
102
|
+
"required": [
|
|
103
|
+
"provider",
|
|
104
|
+
"token"
|
|
105
|
+
]
|
|
106
|
+
},
|
|
107
|
+
"firstName": {
|
|
108
|
+
"type": "string",
|
|
109
|
+
"minLength": 1,
|
|
110
|
+
"maxLength": 80
|
|
111
|
+
},
|
|
112
|
+
"lastName": {
|
|
113
|
+
"type": "string",
|
|
114
|
+
"minLength": 1,
|
|
115
|
+
"maxLength": 80
|
|
68
116
|
}
|
|
69
117
|
},
|
|
70
118
|
"required": [
|
|
71
|
-
"phoneE164"
|
|
119
|
+
"phoneE164",
|
|
120
|
+
"appInstanceId",
|
|
121
|
+
"platform"
|
|
72
122
|
]
|
|
73
123
|
}
|
|
74
124
|
}
|
|
@@ -160,12 +210,23 @@
|
|
|
160
210
|
"type": "string"
|
|
161
211
|
},
|
|
162
212
|
"code": {
|
|
163
|
-
"type": "string"
|
|
213
|
+
"type": "string",
|
|
214
|
+
"minLength": 1,
|
|
215
|
+
"maxLength": 32
|
|
216
|
+
},
|
|
217
|
+
"appInstanceId": {
|
|
218
|
+
"type": "string",
|
|
219
|
+
"minLength": 3
|
|
220
|
+
},
|
|
221
|
+
"fingerprintHash": {
|
|
222
|
+
"type": "string",
|
|
223
|
+
"minLength": 3
|
|
164
224
|
}
|
|
165
225
|
},
|
|
166
226
|
"required": [
|
|
167
227
|
"requestId",
|
|
168
|
-
"code"
|
|
228
|
+
"code",
|
|
229
|
+
"appInstanceId"
|
|
169
230
|
]
|
|
170
231
|
}
|
|
171
232
|
}
|
|
@@ -179,7 +240,10 @@
|
|
|
179
240
|
"schema": {
|
|
180
241
|
"type": "object",
|
|
181
242
|
"properties": {
|
|
182
|
-
"
|
|
243
|
+
"accessToken": {
|
|
244
|
+
"type": "string"
|
|
245
|
+
},
|
|
246
|
+
"refreshToken": {
|
|
183
247
|
"type": "string"
|
|
184
248
|
},
|
|
185
249
|
"userId": {
|
|
@@ -198,10 +262,21 @@
|
|
|
198
262
|
"CARRIER_CHANGED"
|
|
199
263
|
]
|
|
200
264
|
}
|
|
265
|
+
},
|
|
266
|
+
"stepUpRequired": {
|
|
267
|
+
"type": "boolean"
|
|
268
|
+
},
|
|
269
|
+
"riskStatus": {
|
|
270
|
+
"type": "string",
|
|
271
|
+
"enum": [
|
|
272
|
+
"ok",
|
|
273
|
+
"unavailable"
|
|
274
|
+
]
|
|
201
275
|
}
|
|
202
276
|
},
|
|
203
277
|
"required": [
|
|
204
|
-
"
|
|
278
|
+
"accessToken",
|
|
279
|
+
"refreshToken",
|
|
205
280
|
"userId",
|
|
206
281
|
"restricted",
|
|
207
282
|
"risk_reasons"
|
|
@@ -230,6 +305,91 @@
|
|
|
230
305
|
}
|
|
231
306
|
}
|
|
232
307
|
}
|
|
308
|
+
},
|
|
309
|
+
"/v1/auth/refresh": {
|
|
310
|
+
"post": {
|
|
311
|
+
"requestBody": {
|
|
312
|
+
"required": true,
|
|
313
|
+
"content": {
|
|
314
|
+
"application/json": {
|
|
315
|
+
"schema": {
|
|
316
|
+
"type": "object",
|
|
317
|
+
"properties": {
|
|
318
|
+
"userId": {
|
|
319
|
+
"type": "string"
|
|
320
|
+
},
|
|
321
|
+
"refreshToken": {
|
|
322
|
+
"type": "string",
|
|
323
|
+
"minLength": 8
|
|
324
|
+
},
|
|
325
|
+
"appInstanceId": {
|
|
326
|
+
"type": "string",
|
|
327
|
+
"minLength": 3
|
|
328
|
+
},
|
|
329
|
+
"fingerprintHash": {
|
|
330
|
+
"type": "string",
|
|
331
|
+
"minLength": 3
|
|
332
|
+
}
|
|
333
|
+
},
|
|
334
|
+
"required": [
|
|
335
|
+
"userId",
|
|
336
|
+
"refreshToken",
|
|
337
|
+
"appInstanceId",
|
|
338
|
+
"fingerprintHash"
|
|
339
|
+
]
|
|
340
|
+
}
|
|
341
|
+
}
|
|
342
|
+
}
|
|
343
|
+
},
|
|
344
|
+
"responses": {
|
|
345
|
+
"200": {
|
|
346
|
+
"description": "Access token refreshed",
|
|
347
|
+
"content": {
|
|
348
|
+
"application/json": {
|
|
349
|
+
"schema": {
|
|
350
|
+
"type": "object",
|
|
351
|
+
"properties": {
|
|
352
|
+
"accessToken": {
|
|
353
|
+
"type": "string",
|
|
354
|
+
"minLength": 8
|
|
355
|
+
},
|
|
356
|
+
"refreshToken": {
|
|
357
|
+
"type": "string",
|
|
358
|
+
"minLength": 8
|
|
359
|
+
},
|
|
360
|
+
"stepUpRequired": {
|
|
361
|
+
"type": "boolean"
|
|
362
|
+
}
|
|
363
|
+
},
|
|
364
|
+
"required": [
|
|
365
|
+
"accessToken",
|
|
366
|
+
"refreshToken",
|
|
367
|
+
"stepUpRequired"
|
|
368
|
+
]
|
|
369
|
+
}
|
|
370
|
+
}
|
|
371
|
+
}
|
|
372
|
+
},
|
|
373
|
+
"401": {
|
|
374
|
+
"description": "Refresh token invalid or expired",
|
|
375
|
+
"content": {
|
|
376
|
+
"application/json": {
|
|
377
|
+
"schema": {
|
|
378
|
+
"type": "object",
|
|
379
|
+
"properties": {
|
|
380
|
+
"error": {
|
|
381
|
+
"type": "string"
|
|
382
|
+
}
|
|
383
|
+
},
|
|
384
|
+
"required": [
|
|
385
|
+
"error"
|
|
386
|
+
]
|
|
387
|
+
}
|
|
388
|
+
}
|
|
389
|
+
}
|
|
390
|
+
}
|
|
391
|
+
}
|
|
392
|
+
}
|
|
233
393
|
}
|
|
234
394
|
}
|
|
235
395
|
}
|