@faable/auth-sdk 1.3.8 → 1.3.10
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/FaableAuthApi.d.ts +5 -5
- package/dist/api/types.d.ts +236 -1
- package/package.json +3 -3
- package/dist/types/types.d.ts +0 -4371
- package/dist/types/types.js +0 -5
package/dist/FaableAuthApi.d.ts
CHANGED
|
@@ -342,7 +342,7 @@ export declare class FaableAuthApi extends FaableApi {
|
|
|
342
342
|
all: () => Promise<{
|
|
343
343
|
id: string;
|
|
344
344
|
connection_name: string;
|
|
345
|
-
connection_type:
|
|
345
|
+
connection_type: "custom" | "database" | "github" | "figma" | "google_oauth2" | "oidc";
|
|
346
346
|
authorize_url: string;
|
|
347
347
|
token_url: string;
|
|
348
348
|
userinfo_url: string;
|
|
@@ -367,7 +367,7 @@ export declare class FaableAuthApi extends FaableApi {
|
|
|
367
367
|
first: () => Promise<import("@faable/sdk-base/dist/helpers/paginator.js").Page<{
|
|
368
368
|
id: string;
|
|
369
369
|
connection_name: string;
|
|
370
|
-
connection_type:
|
|
370
|
+
connection_type: "custom" | "database" | "github" | "figma" | "google_oauth2" | "oidc";
|
|
371
371
|
authorize_url: string;
|
|
372
372
|
token_url: string;
|
|
373
373
|
userinfo_url: string;
|
|
@@ -395,7 +395,7 @@ export declare class FaableAuthApi extends FaableApi {
|
|
|
395
395
|
} | undefined) => Promise<import("@faable/sdk-base/dist/helpers/paginator.js").Page<{
|
|
396
396
|
id: string;
|
|
397
397
|
connection_name: string;
|
|
398
|
-
connection_type:
|
|
398
|
+
connection_type: "custom" | "database" | "github" | "figma" | "google_oauth2" | "oidc";
|
|
399
399
|
authorize_url: string;
|
|
400
400
|
token_url: string;
|
|
401
401
|
userinfo_url: string;
|
|
@@ -421,7 +421,7 @@ export declare class FaableAuthApi extends FaableApi {
|
|
|
421
421
|
getConection(connection_id: string): Promise<{
|
|
422
422
|
id: string;
|
|
423
423
|
connection_name: string;
|
|
424
|
-
connection_type:
|
|
424
|
+
connection_type: "custom" | "database" | "github" | "figma" | "google_oauth2" | "oidc";
|
|
425
425
|
authorize_url: string;
|
|
426
426
|
token_url: string;
|
|
427
427
|
userinfo_url: string;
|
|
@@ -513,7 +513,7 @@ export declare class FaableAuthApi extends FaableApi {
|
|
|
513
513
|
getClient(client_id: string): Promise<{
|
|
514
514
|
id: string;
|
|
515
515
|
connection_name: string;
|
|
516
|
-
connection_type:
|
|
516
|
+
connection_type: "custom" | "database" | "github" | "figma" | "google_oauth2" | "oidc";
|
|
517
517
|
authorize_url: string;
|
|
518
518
|
token_url: string;
|
|
519
519
|
userinfo_url: string;
|
package/dist/api/types.d.ts
CHANGED
|
@@ -1016,6 +1016,71 @@ export interface paths {
|
|
|
1016
1016
|
patch?: never;
|
|
1017
1017
|
trace?: never;
|
|
1018
1018
|
};
|
|
1019
|
+
"/customdomain/{Customdomain_id}/retry": {
|
|
1020
|
+
parameters: {
|
|
1021
|
+
query?: never;
|
|
1022
|
+
header?: never;
|
|
1023
|
+
path?: never;
|
|
1024
|
+
cookie?: never;
|
|
1025
|
+
};
|
|
1026
|
+
get?: never;
|
|
1027
|
+
put?: never;
|
|
1028
|
+
/** Retry manual domain verification */
|
|
1029
|
+
post: operations["customdomain/retry"];
|
|
1030
|
+
delete?: never;
|
|
1031
|
+
options?: never;
|
|
1032
|
+
head?: never;
|
|
1033
|
+
patch?: never;
|
|
1034
|
+
trace?: never;
|
|
1035
|
+
};
|
|
1036
|
+
"/customdomain": {
|
|
1037
|
+
parameters: {
|
|
1038
|
+
query?: never;
|
|
1039
|
+
header?: never;
|
|
1040
|
+
path?: never;
|
|
1041
|
+
cookie?: never;
|
|
1042
|
+
};
|
|
1043
|
+
/**
|
|
1044
|
+
* List Customdomains in Account
|
|
1045
|
+
* @description List Customdomains in Account
|
|
1046
|
+
*/
|
|
1047
|
+
get: operations["customdomain/list"];
|
|
1048
|
+
put?: never;
|
|
1049
|
+
/**
|
|
1050
|
+
* Create Customdomain in Account
|
|
1051
|
+
* @description Create Customdomain in Account
|
|
1052
|
+
*/
|
|
1053
|
+
post: operations["customdomain/create"];
|
|
1054
|
+
delete?: never;
|
|
1055
|
+
options?: never;
|
|
1056
|
+
head?: never;
|
|
1057
|
+
patch?: never;
|
|
1058
|
+
trace?: never;
|
|
1059
|
+
};
|
|
1060
|
+
"/customdomain/{customdomain_id}": {
|
|
1061
|
+
parameters: {
|
|
1062
|
+
query?: never;
|
|
1063
|
+
header?: never;
|
|
1064
|
+
path?: never;
|
|
1065
|
+
cookie?: never;
|
|
1066
|
+
};
|
|
1067
|
+
/**
|
|
1068
|
+
* Get Customdomain in Account
|
|
1069
|
+
* @description Get Customdomain in Account
|
|
1070
|
+
*/
|
|
1071
|
+
get: operations["customdomain/get"];
|
|
1072
|
+
put?: never;
|
|
1073
|
+
post?: never;
|
|
1074
|
+
/**
|
|
1075
|
+
* Delete Customdomain in Account
|
|
1076
|
+
* @description Delete Customdomain in Account
|
|
1077
|
+
*/
|
|
1078
|
+
delete: operations["customdomain/remove"];
|
|
1079
|
+
options?: never;
|
|
1080
|
+
head?: never;
|
|
1081
|
+
patch?: never;
|
|
1082
|
+
trace?: never;
|
|
1083
|
+
};
|
|
1019
1084
|
"/passwordless/verify_redirect": {
|
|
1020
1085
|
parameters: {
|
|
1021
1086
|
query?: never;
|
|
@@ -1754,7 +1819,7 @@ export interface components {
|
|
|
1754
1819
|
/** @description Connection ID */
|
|
1755
1820
|
id: string;
|
|
1756
1821
|
connection_name: string;
|
|
1757
|
-
connection_type:
|
|
1822
|
+
connection_type: "database" | "custom" | "github" | "figma" | "google_oauth2" | "oidc";
|
|
1758
1823
|
/** @default null */
|
|
1759
1824
|
authorize_url: string;
|
|
1760
1825
|
/** @default null */
|
|
@@ -2608,6 +2673,55 @@ export interface components {
|
|
|
2608
2673
|
NotificationSubscriptionWebhookMetadataUpdate: {
|
|
2609
2674
|
[key: string]: unknown;
|
|
2610
2675
|
};
|
|
2676
|
+
/** @description Customdomain */
|
|
2677
|
+
Customdomain: {
|
|
2678
|
+
/** @description Customdomain ID */
|
|
2679
|
+
id: string;
|
|
2680
|
+
domain: string;
|
|
2681
|
+
token: string;
|
|
2682
|
+
status: "PENDING" | "VERIFYING" | "ACTIVE" | "FAILED" | "DEGRADED";
|
|
2683
|
+
attempts: number;
|
|
2684
|
+
/** Format: date-time */
|
|
2685
|
+
nextCheck?: string;
|
|
2686
|
+
/** Format: date-time */
|
|
2687
|
+
lastCheck?: string;
|
|
2688
|
+
/** @description User feedback error from last check */
|
|
2689
|
+
errorLog?: string;
|
|
2690
|
+
/** Format: date-time */
|
|
2691
|
+
verifiedAt?: string;
|
|
2692
|
+
/** @description Object is related with this account */
|
|
2693
|
+
account: string;
|
|
2694
|
+
/**
|
|
2695
|
+
* @description CustomdomainMetadata
|
|
2696
|
+
* @default {}
|
|
2697
|
+
*/
|
|
2698
|
+
metadata: {
|
|
2699
|
+
[key: string]: unknown;
|
|
2700
|
+
};
|
|
2701
|
+
/** @description Customdomain creation date */
|
|
2702
|
+
createdAt: string;
|
|
2703
|
+
/** @description Customdomain updated date */
|
|
2704
|
+
updatedAt?: string;
|
|
2705
|
+
};
|
|
2706
|
+
/**
|
|
2707
|
+
* @description CustomdomainMetadata
|
|
2708
|
+
* @default {}
|
|
2709
|
+
*/
|
|
2710
|
+
CustomdomainMetadata: {
|
|
2711
|
+
[key: string]: unknown;
|
|
2712
|
+
};
|
|
2713
|
+
/** @description CustomdomainCreate */
|
|
2714
|
+
CustomdomainCreate: {
|
|
2715
|
+
domain: string;
|
|
2716
|
+
/** @description Add Metadata */
|
|
2717
|
+
metadata?: {
|
|
2718
|
+
[key: string]: unknown;
|
|
2719
|
+
};
|
|
2720
|
+
};
|
|
2721
|
+
/** @description Add Metadata */
|
|
2722
|
+
CustomdomainMetadataCreate: {
|
|
2723
|
+
[key: string]: unknown;
|
|
2724
|
+
};
|
|
2611
2725
|
/** @description AuthAccountCreate */
|
|
2612
2726
|
AuthAccountCreate: {
|
|
2613
2727
|
name: string;
|
|
@@ -3900,6 +4014,127 @@ export interface operations {
|
|
|
3900
4014
|
};
|
|
3901
4015
|
};
|
|
3902
4016
|
};
|
|
4017
|
+
"customdomain/retry": {
|
|
4018
|
+
parameters: {
|
|
4019
|
+
query?: never;
|
|
4020
|
+
header?: never;
|
|
4021
|
+
path: {
|
|
4022
|
+
Customdomain_id: string;
|
|
4023
|
+
};
|
|
4024
|
+
cookie?: never;
|
|
4025
|
+
};
|
|
4026
|
+
requestBody?: never;
|
|
4027
|
+
responses: {
|
|
4028
|
+
/** @description Default Response */
|
|
4029
|
+
200: {
|
|
4030
|
+
headers: {
|
|
4031
|
+
[name: string]: unknown;
|
|
4032
|
+
};
|
|
4033
|
+
content?: never;
|
|
4034
|
+
};
|
|
4035
|
+
};
|
|
4036
|
+
};
|
|
4037
|
+
"customdomain/list": {
|
|
4038
|
+
parameters: {
|
|
4039
|
+
query?: {
|
|
4040
|
+
/** @description Start from this cursor */
|
|
4041
|
+
cursor?: string;
|
|
4042
|
+
/** @description Start from this cursor */
|
|
4043
|
+
next?: string;
|
|
4044
|
+
/** @description Size of the results array */
|
|
4045
|
+
pageSize?: number;
|
|
4046
|
+
/** @description Filter using a FaableQL query */
|
|
4047
|
+
query?: string;
|
|
4048
|
+
expand?: string[];
|
|
4049
|
+
};
|
|
4050
|
+
header?: never;
|
|
4051
|
+
path?: never;
|
|
4052
|
+
cookie?: never;
|
|
4053
|
+
};
|
|
4054
|
+
requestBody?: never;
|
|
4055
|
+
responses: {
|
|
4056
|
+
/** @description PaginatedResponse */
|
|
4057
|
+
200: {
|
|
4058
|
+
headers: {
|
|
4059
|
+
[name: string]: unknown;
|
|
4060
|
+
};
|
|
4061
|
+
content: {
|
|
4062
|
+
"application/json": {
|
|
4063
|
+
/** @description next cursor */
|
|
4064
|
+
next: string | null;
|
|
4065
|
+
/** @description List of results */
|
|
4066
|
+
results: components["schemas"]["Customdomain"][];
|
|
4067
|
+
};
|
|
4068
|
+
};
|
|
4069
|
+
};
|
|
4070
|
+
};
|
|
4071
|
+
};
|
|
4072
|
+
"customdomain/create": {
|
|
4073
|
+
parameters: {
|
|
4074
|
+
query?: never;
|
|
4075
|
+
header?: never;
|
|
4076
|
+
path?: never;
|
|
4077
|
+
cookie?: never;
|
|
4078
|
+
};
|
|
4079
|
+
requestBody?: {
|
|
4080
|
+
content: {
|
|
4081
|
+
"application/json": components["schemas"]["CustomdomainCreate"];
|
|
4082
|
+
};
|
|
4083
|
+
};
|
|
4084
|
+
responses: {
|
|
4085
|
+
/** @description Customdomain */
|
|
4086
|
+
200: {
|
|
4087
|
+
headers: {
|
|
4088
|
+
[name: string]: unknown;
|
|
4089
|
+
};
|
|
4090
|
+
content: {
|
|
4091
|
+
"application/json": components["schemas"]["Customdomain"];
|
|
4092
|
+
};
|
|
4093
|
+
};
|
|
4094
|
+
};
|
|
4095
|
+
};
|
|
4096
|
+
"customdomain/get": {
|
|
4097
|
+
parameters: {
|
|
4098
|
+
query?: never;
|
|
4099
|
+
header?: never;
|
|
4100
|
+
path: {
|
|
4101
|
+
customdomain_id: string;
|
|
4102
|
+
};
|
|
4103
|
+
cookie?: never;
|
|
4104
|
+
};
|
|
4105
|
+
requestBody?: never;
|
|
4106
|
+
responses: {
|
|
4107
|
+
/** @description Customdomain */
|
|
4108
|
+
200: {
|
|
4109
|
+
headers: {
|
|
4110
|
+
[name: string]: unknown;
|
|
4111
|
+
};
|
|
4112
|
+
content: {
|
|
4113
|
+
"application/json": components["schemas"]["Customdomain"];
|
|
4114
|
+
};
|
|
4115
|
+
};
|
|
4116
|
+
};
|
|
4117
|
+
};
|
|
4118
|
+
"customdomain/remove": {
|
|
4119
|
+
parameters: {
|
|
4120
|
+
query?: never;
|
|
4121
|
+
header?: never;
|
|
4122
|
+
path: {
|
|
4123
|
+
customdomain_id: string;
|
|
4124
|
+
};
|
|
4125
|
+
cookie?: never;
|
|
4126
|
+
};
|
|
4127
|
+
requestBody?: never;
|
|
4128
|
+
responses: {
|
|
4129
|
+
/** @description Default Response */
|
|
4130
|
+
200: {
|
|
4131
|
+
headers: {
|
|
4132
|
+
[name: string]: unknown;
|
|
4133
|
+
};
|
|
4134
|
+
content?: never;
|
|
4135
|
+
};
|
|
4136
|
+
};
|
|
4137
|
+
};
|
|
3903
4138
|
"passwordless/verify_redirect": {
|
|
3904
4139
|
parameters: {
|
|
3905
4140
|
query: {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@faable/auth-sdk",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.10",
|
|
4
4
|
"author": "Marc Pomar <marc@faable.com>",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -18,14 +18,14 @@
|
|
|
18
18
|
"@types/node": "^20.10.5",
|
|
19
19
|
"ava": "^6.1.3",
|
|
20
20
|
"dotenv": "^16.4.5",
|
|
21
|
-
"openapi-typescript": "^7.
|
|
21
|
+
"openapi-typescript": "^7.13.0",
|
|
22
22
|
"rimraf": "^6.0.1",
|
|
23
23
|
"semantic-release": "^25.0.3",
|
|
24
24
|
"tsimp": "^2.0.11",
|
|
25
25
|
"typescript": "^5.3.3"
|
|
26
26
|
},
|
|
27
27
|
"scripts": {
|
|
28
|
-
"gentypes": "openapi-typescript https://faable.auth.faable.link/docs/json -o src/
|
|
28
|
+
"gentypes": "openapi-typescript https://faable.auth.faable.link/docs/json -o src/api/types.ts",
|
|
29
29
|
"build": "rimraf dist && tsc",
|
|
30
30
|
"prebuild": "npm run gentypes",
|
|
31
31
|
"prepublishOnly": "npm run build",
|