@faable/auth-sdk 1.3.6 → 1.3.7

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.
@@ -1,19 +1,29 @@
1
1
  name: Release
2
- "on":
2
+ permissions:
3
+ contents: write # necesario para push de commits y tags
4
+ pull-requests: write
5
+ issues: write
6
+ id-token: write
7
+ on:
3
8
  push:
4
9
  branches:
5
10
  - main
11
+ - next
12
+ - beta
6
13
  jobs:
7
14
  release:
8
15
  name: release
9
16
  runs-on: ubuntu-latest
17
+ timeout-minutes: 3
18
+
10
19
  steps:
11
- - uses: actions/checkout@v4
12
- - uses: actions/setup-node@v3
20
+ - uses: actions/checkout@v6
21
+ - uses: actions/setup-node@v6
13
22
  with:
14
23
  cache: npm
15
24
  node-version: lts/*
16
25
  - run: npm ci
26
+ - run: npm run build
17
27
  - run: npm run release
18
28
  env:
19
29
  GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
package/.releaserc ADDED
@@ -0,0 +1,32 @@
1
+ {
2
+ "branches": [
3
+ {
4
+ "name": "main",
5
+ "channel": "latest"
6
+ },
7
+ {
8
+ "name": "next",
9
+ "channel": "next",
10
+ "prerelease": true
11
+ },
12
+ {
13
+ "name": "beta",
14
+ "channel": "beta",
15
+ "prerelease": true
16
+ }
17
+ ],
18
+ "repositoryUrl": "https://x-access-token:${GITHUB_TOKEN}@github.com/faablecloud/auth-sdk.git",
19
+ "plugins": [
20
+ "@semantic-release/commit-analyzer",
21
+ "@semantic-release/release-notes-generator",
22
+ [
23
+ "@semantic-release/npm",
24
+ {
25
+ "npmPublish": true,
26
+ "otp": false,
27
+ "useOidc": true
28
+ }
29
+ ],
30
+ "@semantic-release/github"
31
+ ]
32
+ }
@@ -1,4 +1,4 @@
1
- import { TeamCreate, UserCreate, UserUpdate } from "./types/types.js";
1
+ import { TeamCreate, UserCreate, UserUpdate } from "./api/api-types.js";
2
2
  import { ApiParams, FaableApi } from "@faable/sdk-base";
3
3
  type FaableAuthApiParams = {
4
4
  team_id?: string;
@@ -19,10 +19,11 @@ export declare class FaableAuthApi extends FaableApi {
19
19
  domain: string;
20
20
  slug: string;
21
21
  logo_src?: string | null | undefined;
22
+ icon_src?: string | null | undefined;
22
23
  callback_hostnames: string[];
23
24
  token_signature: string;
24
25
  default_connection?: unknown;
25
- default_locale: string;
26
+ enabled_locales: string[];
26
27
  team?: string | null | undefined;
27
28
  createdAt: string;
28
29
  updatedAt?: string | undefined;
@@ -347,7 +348,11 @@ export declare class FaableAuthApi extends FaableApi {
347
348
  userinfo_url: string;
348
349
  client_id: string;
349
350
  client_secret: string;
351
+ issuer: string;
352
+ jwks_url: string;
350
353
  response_type: string;
354
+ enabled: boolean;
355
+ enabled_clients: string[] | null;
351
356
  scope: string[];
352
357
  authorize_params: {
353
358
  [key: string]: string;
@@ -368,7 +373,11 @@ export declare class FaableAuthApi extends FaableApi {
368
373
  userinfo_url: string;
369
374
  client_id: string;
370
375
  client_secret: string;
376
+ issuer: string;
377
+ jwks_url: string;
371
378
  response_type: string;
379
+ enabled: boolean;
380
+ enabled_clients: string[] | null;
372
381
  scope: string[];
373
382
  authorize_params: {
374
383
  [key: string]: string;
@@ -392,7 +401,11 @@ export declare class FaableAuthApi extends FaableApi {
392
401
  userinfo_url: string;
393
402
  client_id: string;
394
403
  client_secret: string;
404
+ issuer: string;
405
+ jwks_url: string;
395
406
  response_type: string;
407
+ enabled: boolean;
408
+ enabled_clients: string[] | null;
396
409
  scope: string[];
397
410
  authorize_params: {
398
411
  [key: string]: string;
@@ -414,7 +427,11 @@ export declare class FaableAuthApi extends FaableApi {
414
427
  userinfo_url: string;
415
428
  client_id: string;
416
429
  client_secret: string;
430
+ issuer: string;
431
+ jwks_url: string;
417
432
  response_type: string;
433
+ enabled: boolean;
434
+ enabled_clients: string[] | null;
418
435
  scope: string[];
419
436
  authorize_params: {
420
437
  [key: string]: string;
@@ -502,7 +519,11 @@ export declare class FaableAuthApi extends FaableApi {
502
519
  userinfo_url: string;
503
520
  client_id: string;
504
521
  client_secret: string;
522
+ issuer: string;
523
+ jwks_url: string;
505
524
  response_type: string;
525
+ enabled: boolean;
526
+ enabled_clients: string[] | null;
506
527
  scope: string[];
507
528
  authorize_params: {
508
529
  [key: string]: string;
@@ -0,0 +1,10 @@
1
+ import { components } from "./types.js";
2
+ export type User = components["schemas"]["User"];
3
+ export type UserCreate = components["schemas"]["UserCreate"];
4
+ export type UserUpdate = components["schemas"]["UserUpdate"];
5
+ export type Team = components["schemas"]["Team"];
6
+ export type TeamMember = components["schemas"]["TeamMember"];
7
+ export type TeamCreate = components["schemas"]["TeamCreate"];
8
+ export type AuthAccount = components["schemas"]["AuthAccount"];
9
+ export type Connection = components["schemas"]["Connection"];
10
+ export type Client = components["schemas"]["Client"];
@@ -0,0 +1 @@
1
+ export {};