@faable/auth-sdk 2.5.94 → 2.5.96

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.
@@ -377,6 +377,39 @@ export declare abstract class GeneratedFaableAuthApi extends FaableApi {
377
377
  next_in_queue_kid: string;
378
378
  kids_active: string[];
379
379
  }>;
380
+ /**
381
+ * `GET /sdk-health/{account_id}` — operationId: `account/sdk-health`
382
+ *
383
+ * Library health for this account
384
+ */
385
+ accountSdkHealth(account_id: string): Promise<{
386
+ libraries: {
387
+ name: string;
388
+ package: string;
389
+ latest: string | null;
390
+ installs: {
391
+ version: string;
392
+ sha: string | null;
393
+ app: {
394
+ client_id: string;
395
+ name: string;
396
+ } | null;
397
+ lag: "unknown" | "patch" | "current" | "minor" | "major";
398
+ legacy_unversioned: boolean;
399
+ first_seen: string;
400
+ last_seen: string;
401
+ }[];
402
+ }[];
403
+ traffic: {
404
+ days: number;
405
+ total: number;
406
+ by_class: {
407
+ [key: string]: number;
408
+ };
409
+ } | null;
410
+ latest_checked_at: string | null;
411
+ retention_days: number;
412
+ }>;
380
413
  /**
381
414
  * `POST /account/{account_id}` — operationId: `account/update`
382
415
  *
@@ -67,6 +67,15 @@ export class GeneratedFaableAuthApi extends FaableApi {
67
67
  accountRotateKeys(data) {
68
68
  return this.fetcher.post(`/account/keys/rotate`, data);
69
69
  }
70
+ /**
71
+ * `GET /sdk-health/{account_id}` — operationId: `account/sdk-health`
72
+ *
73
+ * Library health for this account
74
+ */
75
+ accountSdkHealth(account_id) {
76
+ requireId("account_id", account_id);
77
+ return this.fetcher.get(`/sdk-health/${account_id}`);
78
+ }
70
79
  /**
71
80
  * `POST /account/{account_id}` — operationId: `account/update`
72
81
  *
@@ -1469,6 +1469,26 @@ export interface paths {
1469
1469
  patch?: never;
1470
1470
  trace?: never;
1471
1471
  };
1472
+ "/sdk-health/{account_id}": {
1473
+ parameters: {
1474
+ query?: never;
1475
+ header?: never;
1476
+ path?: never;
1477
+ cookie?: never;
1478
+ };
1479
+ /**
1480
+ * Library health for this account
1481
+ * @description Which Faable client libraries this account is being called with, at which versions, and how far behind the latest published release each one is. Versions are observed from the `x-faable-client` header, so an integration that talks raw OIDC shows up only in the traffic breakdown.
1482
+ */
1483
+ get: operations["account/sdk-health"];
1484
+ put?: never;
1485
+ post?: never;
1486
+ delete?: never;
1487
+ options?: never;
1488
+ head?: never;
1489
+ patch?: never;
1490
+ trace?: never;
1491
+ };
1472
1492
  "/passwordless/verify_redirect": {
1473
1493
  parameters: {
1474
1494
  query?: never;
@@ -11889,6 +11909,55 @@ export interface operations {
11889
11909
  };
11890
11910
  };
11891
11911
  };
11912
+ "account/sdk-health": {
11913
+ parameters: {
11914
+ query?: never;
11915
+ header?: never;
11916
+ path: {
11917
+ account_id: string;
11918
+ };
11919
+ cookie?: never;
11920
+ };
11921
+ requestBody?: never;
11922
+ responses: {
11923
+ /** @description Default Response */
11924
+ 200: {
11925
+ headers: {
11926
+ [name: string]: unknown;
11927
+ };
11928
+ content: {
11929
+ "application/json": {
11930
+ libraries: {
11931
+ name: string;
11932
+ package: string;
11933
+ latest: string | null;
11934
+ installs: {
11935
+ version: string;
11936
+ sha: string | null;
11937
+ app: {
11938
+ client_id: string;
11939
+ name: string;
11940
+ } | null;
11941
+ lag: "current" | "patch" | "minor" | "major" | "unknown";
11942
+ legacy_unversioned: boolean;
11943
+ first_seen: string;
11944
+ last_seen: string;
11945
+ }[];
11946
+ }[];
11947
+ traffic: {
11948
+ days: number;
11949
+ total: number;
11950
+ by_class: {
11951
+ [key: string]: number;
11952
+ };
11953
+ } | null;
11954
+ latest_checked_at: string | null;
11955
+ retention_days: number;
11956
+ };
11957
+ };
11958
+ };
11959
+ };
11960
+ };
11892
11961
  "passwordless/verify_redirect": {
11893
11962
  parameters: {
11894
11963
  query: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@faable/auth-sdk",
3
- "version": "2.5.94",
3
+ "version": "2.5.96",
4
4
  "author": "Marc Pomar <marc@faable.com>",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
package/spec/openapi.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "info": {
4
4
  "title": "@faablecloud/auth",
5
5
  "description": "Auth Platform made by Faable. Manage Users and Roles",
6
- "version": "2.9.8",
6
+ "version": "2.10.0",
7
7
  "license": {
8
8
  "name": "private",
9
9
  "url": "https://faable.com/docs/platform/privacy-policy"
@@ -28137,6 +28137,218 @@
28137
28137
  }
28138
28138
  }
28139
28139
  },
28140
+ "/sdk-health/{account_id}": {
28141
+ "get": {
28142
+ "operationId": "account/sdk-health",
28143
+ "summary": "Library health for this account",
28144
+ "tags": [
28145
+ "account"
28146
+ ],
28147
+ "description": "Which Faable client libraries this account is being called with, at which versions, and how far behind the latest published release each one is. Versions are observed from the `x-faable-client` header, so an integration that talks raw OIDC shows up only in the traffic breakdown.",
28148
+ "parameters": [
28149
+ {
28150
+ "schema": {
28151
+ "type": "string"
28152
+ },
28153
+ "in": "path",
28154
+ "name": "account_id",
28155
+ "required": true
28156
+ }
28157
+ ],
28158
+ "security": [
28159
+ {
28160
+ "bearerAuth": []
28161
+ }
28162
+ ],
28163
+ "responses": {
28164
+ "200": {
28165
+ "description": "Default Response",
28166
+ "content": {
28167
+ "application/json": {
28168
+ "schema": {
28169
+ "type": "object",
28170
+ "required": [
28171
+ "libraries",
28172
+ "traffic",
28173
+ "latest_checked_at",
28174
+ "retention_days"
28175
+ ],
28176
+ "properties": {
28177
+ "libraries": {
28178
+ "type": "array",
28179
+ "items": {
28180
+ "type": "object",
28181
+ "required": [
28182
+ "name",
28183
+ "package",
28184
+ "latest",
28185
+ "installs"
28186
+ ],
28187
+ "properties": {
28188
+ "name": {
28189
+ "type": "string"
28190
+ },
28191
+ "package": {
28192
+ "type": "string"
28193
+ },
28194
+ "latest": {
28195
+ "anyOf": [
28196
+ {
28197
+ "type": "string"
28198
+ },
28199
+ {
28200
+ "type": "null"
28201
+ }
28202
+ ]
28203
+ },
28204
+ "installs": {
28205
+ "type": "array",
28206
+ "items": {
28207
+ "type": "object",
28208
+ "required": [
28209
+ "version",
28210
+ "sha",
28211
+ "app",
28212
+ "lag",
28213
+ "legacy_unversioned",
28214
+ "first_seen",
28215
+ "last_seen"
28216
+ ],
28217
+ "properties": {
28218
+ "version": {
28219
+ "type": "string"
28220
+ },
28221
+ "sha": {
28222
+ "anyOf": [
28223
+ {
28224
+ "type": "string"
28225
+ },
28226
+ {
28227
+ "type": "null"
28228
+ }
28229
+ ]
28230
+ },
28231
+ "app": {
28232
+ "anyOf": [
28233
+ {
28234
+ "type": "object",
28235
+ "required": [
28236
+ "client_id",
28237
+ "name"
28238
+ ],
28239
+ "properties": {
28240
+ "client_id": {
28241
+ "type": "string"
28242
+ },
28243
+ "name": {
28244
+ "type": "string"
28245
+ }
28246
+ }
28247
+ },
28248
+ {
28249
+ "type": "null"
28250
+ }
28251
+ ]
28252
+ },
28253
+ "lag": {
28254
+ "anyOf": [
28255
+ {
28256
+ "type": "string",
28257
+ "enum": [
28258
+ "current"
28259
+ ]
28260
+ },
28261
+ {
28262
+ "type": "string",
28263
+ "enum": [
28264
+ "patch"
28265
+ ]
28266
+ },
28267
+ {
28268
+ "type": "string",
28269
+ "enum": [
28270
+ "minor"
28271
+ ]
28272
+ },
28273
+ {
28274
+ "type": "string",
28275
+ "enum": [
28276
+ "major"
28277
+ ]
28278
+ },
28279
+ {
28280
+ "type": "string",
28281
+ "enum": [
28282
+ "unknown"
28283
+ ]
28284
+ }
28285
+ ]
28286
+ },
28287
+ "legacy_unversioned": {
28288
+ "type": "boolean"
28289
+ },
28290
+ "first_seen": {
28291
+ "type": "string"
28292
+ },
28293
+ "last_seen": {
28294
+ "type": "string"
28295
+ }
28296
+ }
28297
+ }
28298
+ }
28299
+ }
28300
+ }
28301
+ },
28302
+ "traffic": {
28303
+ "anyOf": [
28304
+ {
28305
+ "type": "object",
28306
+ "required": [
28307
+ "days",
28308
+ "total",
28309
+ "by_class"
28310
+ ],
28311
+ "properties": {
28312
+ "days": {
28313
+ "type": "number"
28314
+ },
28315
+ "total": {
28316
+ "type": "number"
28317
+ },
28318
+ "by_class": {
28319
+ "type": "object",
28320
+ "additionalProperties": {
28321
+ "type": "number"
28322
+ }
28323
+ }
28324
+ }
28325
+ },
28326
+ {
28327
+ "type": "null"
28328
+ }
28329
+ ]
28330
+ },
28331
+ "latest_checked_at": {
28332
+ "anyOf": [
28333
+ {
28334
+ "type": "string"
28335
+ },
28336
+ {
28337
+ "type": "null"
28338
+ }
28339
+ ]
28340
+ },
28341
+ "retention_days": {
28342
+ "type": "number"
28343
+ }
28344
+ }
28345
+ }
28346
+ }
28347
+ }
28348
+ }
28349
+ }
28350
+ }
28351
+ },
28140
28352
  "/passwordless/verify_redirect": {
28141
28353
  "get": {
28142
28354
  "operationId": "passwordless/verify_redirect",