@logto/schemas 1.10.0 → 1.10.1
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/alterations/1.10.1-1695647183-update-private-key-type.ts +108 -0
- package/alterations/1.10.1-1696657546-organization-tables.ts +150 -0
- package/alterations/1.10.1-1697683802-add-sso-connectors-table.ts +66 -0
- package/alterations/1.10.1-1698646271-add-organization-created-flag.ts +75 -0
- package/alterations/1.10.1-1698820410-add-user-sso-identities-table.ts +61 -0
- package/alterations/1.10.1-1698910485-user-logto-data.ts +20 -0
- package/alterations-js/1.10.1-1695647183-update-private-key-type.d.ts +3 -0
- package/alterations-js/1.10.1-1695647183-update-private-key-type.js +50 -0
- package/alterations-js/1.10.1-1696657546-organization-tables.d.ts +3 -0
- package/alterations-js/1.10.1-1696657546-organization-tables.js +136 -0
- package/alterations-js/1.10.1-1697683802-add-sso-connectors-table.d.ts +3 -0
- package/alterations-js/1.10.1-1697683802-add-sso-connectors-table.js +58 -0
- package/alterations-js/1.10.1-1698646271-add-organization-created-flag.d.ts +3 -0
- package/alterations-js/1.10.1-1698646271-add-organization-created-flag.js +26 -0
- package/alterations-js/1.10.1-1698820410-add-user-sso-identities-table.d.ts +4 -0
- package/alterations-js/1.10.1-1698820410-add-user-sso-identities-table.js +53 -0
- package/alterations-js/1.10.1-1698910485-user-logto-data.d.ts +3 -0
- package/alterations-js/1.10.1-1698910485-user-logto-data.js +16 -0
- package/lib/db-entries/application.d.ts +7 -1
- package/lib/db-entries/application.js +1 -0
- package/lib/db-entries/applications-role.d.ts +7 -1
- package/lib/db-entries/applications-role.js +1 -0
- package/lib/db-entries/connector.d.ts +7 -1
- package/lib/db-entries/connector.js +1 -0
- package/lib/db-entries/custom-phrase.d.ts +7 -1
- package/lib/db-entries/custom-phrase.js +1 -0
- package/lib/db-entries/daily-active-user.d.ts +7 -1
- package/lib/db-entries/daily-active-user.js +1 -0
- package/lib/db-entries/domain.d.ts +7 -1
- package/lib/db-entries/domain.js +1 -0
- package/lib/db-entries/hook.d.ts +7 -1
- package/lib/db-entries/hook.js +1 -0
- package/lib/db-entries/index.d.ts +8 -0
- package/lib/db-entries/index.js +8 -0
- package/lib/db-entries/log.d.ts +7 -1
- package/lib/db-entries/log.js +1 -0
- package/lib/db-entries/logto-config.d.ts +10 -4
- package/lib/db-entries/logto-config.js +4 -3
- package/lib/db-entries/oidc-model-instance.d.ts +7 -1
- package/lib/db-entries/oidc-model-instance.js +1 -0
- package/lib/db-entries/organization-role-scope-relation.d.ts +20 -0
- package/lib/db-entries/organization-role-scope-relation.js +29 -0
- package/lib/db-entries/organization-role-user-relation.d.ts +22 -0
- package/lib/db-entries/organization-role-user-relation.js +33 -0
- package/lib/db-entries/organization-role.d.ts +28 -0
- package/lib/db-entries/organization-role.js +33 -0
- package/lib/db-entries/organization-scope.d.ts +28 -0
- package/lib/db-entries/organization-scope.js +33 -0
- package/lib/db-entries/organization-user-relation.d.ts +20 -0
- package/lib/db-entries/organization-user-relation.js +29 -0
- package/lib/db-entries/organization.d.ts +32 -0
- package/lib/db-entries/organization.js +37 -0
- package/lib/db-entries/passcode.d.ts +7 -1
- package/lib/db-entries/passcode.js +1 -0
- package/lib/db-entries/resource.d.ts +7 -1
- package/lib/db-entries/resource.js +1 -0
- package/lib/db-entries/role.d.ts +7 -1
- package/lib/db-entries/role.js +1 -0
- package/lib/db-entries/roles-scope.d.ts +7 -1
- package/lib/db-entries/roles-scope.js +1 -0
- package/lib/db-entries/scope.d.ts +7 -1
- package/lib/db-entries/scope.js +1 -0
- package/lib/db-entries/sentinel-activity.d.ts +7 -1
- package/lib/db-entries/sentinel-activity.js +1 -0
- package/lib/db-entries/service-log.d.ts +7 -1
- package/lib/db-entries/service-log.js +1 -0
- package/lib/db-entries/sign-in-experience.d.ts +7 -1
- package/lib/db-entries/sign-in-experience.js +1 -0
- package/lib/db-entries/sso-connector.d.ts +50 -0
- package/lib/db-entries/sso-connector.js +58 -0
- package/lib/db-entries/system.d.ts +7 -1
- package/lib/db-entries/system.js +1 -0
- package/lib/db-entries/user-sso-identity.d.ts +30 -0
- package/lib/db-entries/user-sso-identity.js +46 -0
- package/lib/db-entries/user.d.ts +9 -1
- package/lib/db-entries/user.js +5 -0
- package/lib/db-entries/users-role.d.ts +7 -1
- package/lib/db-entries/users-role.js +1 -0
- package/lib/db-entries/verification-status.d.ts +7 -1
- package/lib/db-entries/verification-status.js +1 -0
- package/lib/foundations/index.d.ts +1 -1
- package/lib/foundations/index.js +1 -1
- package/lib/foundations/jsonb-types/custom-domain.d.ts +134 -0
- package/lib/foundations/jsonb-types/custom-domain.js +36 -0
- package/lib/foundations/jsonb-types/hooks.d.ts +32 -0
- package/lib/foundations/jsonb-types/hooks.js +24 -0
- package/lib/foundations/jsonb-types/index.d.ts +15 -0
- package/lib/foundations/jsonb-types/index.js +16 -0
- package/lib/foundations/jsonb-types/logs.d.ts +106 -0
- package/lib/foundations/jsonb-types/logs.js +20 -0
- package/lib/foundations/jsonb-types/oidc-module.d.ts +80 -0
- package/lib/foundations/jsonb-types/oidc-module.js +54 -0
- package/lib/foundations/jsonb-types/phrases.d.ts +5 -0
- package/lib/foundations/jsonb-types/phrases.js +2 -0
- package/lib/foundations/jsonb-types/sentinel.d.ts +27 -0
- package/lib/foundations/jsonb-types/sentinel.js +28 -0
- package/lib/foundations/jsonb-types/sign-in-experience.d.ts +118 -0
- package/lib/foundations/jsonb-types/sign-in-experience.js +56 -0
- package/lib/foundations/jsonb-types/sso-connector.d.ts +14 -0
- package/lib/foundations/jsonb-types/sso-connector.js +6 -0
- package/lib/foundations/jsonb-types/users.d.ts +285 -0
- package/lib/foundations/jsonb-types/users.js +47 -0
- package/lib/foundations/schemas.d.ts +11 -13
- package/lib/models/tenants.d.ts +7 -11
- package/lib/seeds/logto-config.js +1 -0
- package/lib/types/application.d.ts +51 -1
- package/lib/types/application.js +7 -1
- package/lib/types/connector.d.ts +516 -2360
- package/lib/types/domain.d.ts +65 -27
- package/lib/types/hook.d.ts +15 -16
- package/lib/types/index.d.ts +3 -0
- package/lib/types/index.js +3 -0
- package/lib/types/interactions.d.ts +502 -10
- package/lib/types/interactions.js +83 -5
- package/lib/types/log/interaction.d.ts +4 -3
- package/lib/types/log/interaction.js +1 -0
- package/lib/types/logto-config.d.ts +50 -2
- package/lib/types/logto-config.js +30 -3
- package/lib/types/mfa.d.ts +211 -0
- package/lib/types/mfa.js +62 -0
- package/lib/types/organization.d.ts +44 -0
- package/lib/types/organization.js +20 -0
- package/lib/types/role.d.ts +5 -3
- package/lib/types/scope.d.ts +12 -27
- package/lib/types/sso-connector.d.ts +21 -0
- package/lib/types/sso-connector.js +10 -0
- package/lib/types/system.d.ts +26 -7
- package/lib/types/system.js +8 -0
- package/lib/types/user-assets.d.ts +2 -2
- package/lib/types/user.d.ts +209 -66
- package/lib/types/user.js +8 -2
- package/package.json +6 -6
- package/tables/logto_configs.sql +1 -1
- package/tables/organization_role_scope_relations.sql +12 -0
- package/tables/organization_role_user_relations.sql +14 -0
- package/tables/organization_roles.sql +19 -0
- package/tables/organization_scopes.sql +19 -0
- package/tables/organization_user_relations.sql +12 -0
- package/tables/organizations.sql +19 -0
- package/tables/sso_connectors.sql +29 -0
- package/tables/user_sso_identities.sql +17 -0
- package/tables/users.sql +1 -0
- package/lib/foundations/jsonb-types.d.ts +0 -673
- package/lib/foundations/jsonb-types.js +0 -260
package/lib/types/domain.d.ts
CHANGED
|
@@ -15,33 +15,71 @@ export declare const domainResponseGuard: z.ZodObject<Pick<{
|
|
|
15
15
|
value: string;
|
|
16
16
|
name: string;
|
|
17
17
|
}[]>;
|
|
18
|
-
cloudflareData: z.ZodType<{
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
18
|
+
cloudflareData: z.ZodType<z.objectOutputType<{
|
|
19
|
+
id: z.ZodString;
|
|
20
|
+
status: z.ZodString;
|
|
21
|
+
ssl: z.ZodObject<{
|
|
22
|
+
status: z.ZodString;
|
|
23
|
+
validation_errors: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
24
|
+
message: z.ZodString;
|
|
25
|
+
}, "strip", z.ZodUnknown, z.objectOutputType<{
|
|
26
|
+
message: z.ZodString;
|
|
27
|
+
}, z.ZodUnknown, "strip">, z.objectInputType<{
|
|
28
|
+
message: z.ZodString;
|
|
29
|
+
}, z.ZodUnknown, "strip">>, "many">>;
|
|
30
|
+
}, "strip", z.ZodUnknown, z.objectOutputType<{
|
|
31
|
+
status: z.ZodString;
|
|
32
|
+
validation_errors: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
33
|
+
message: z.ZodString;
|
|
34
|
+
}, "strip", z.ZodUnknown, z.objectOutputType<{
|
|
35
|
+
message: z.ZodString;
|
|
36
|
+
}, z.ZodUnknown, "strip">, z.objectInputType<{
|
|
37
|
+
message: z.ZodString;
|
|
38
|
+
}, z.ZodUnknown, "strip">>, "many">>;
|
|
39
|
+
}, z.ZodUnknown, "strip">, z.objectInputType<{
|
|
40
|
+
status: z.ZodString;
|
|
41
|
+
validation_errors: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
42
|
+
message: z.ZodString;
|
|
43
|
+
}, "strip", z.ZodUnknown, z.objectOutputType<{
|
|
44
|
+
message: z.ZodString;
|
|
45
|
+
}, z.ZodUnknown, "strip">, z.objectInputType<{
|
|
46
|
+
message: z.ZodString;
|
|
47
|
+
}, z.ZodUnknown, "strip">>, "many">>;
|
|
48
|
+
}, z.ZodUnknown, "strip">>;
|
|
49
|
+
verification_errors: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
50
|
+
}, z.ZodUnknown, "strip"> | null, z.ZodTypeDef, z.objectOutputType<{
|
|
51
|
+
id: z.ZodString;
|
|
52
|
+
status: z.ZodString;
|
|
53
|
+
ssl: z.ZodObject<{
|
|
54
|
+
status: z.ZodString;
|
|
55
|
+
validation_errors: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
56
|
+
message: z.ZodString;
|
|
57
|
+
}, "strip", z.ZodUnknown, z.objectOutputType<{
|
|
58
|
+
message: z.ZodString;
|
|
59
|
+
}, z.ZodUnknown, "strip">, z.objectInputType<{
|
|
60
|
+
message: z.ZodString;
|
|
61
|
+
}, z.ZodUnknown, "strip">>, "many">>;
|
|
62
|
+
}, "strip", z.ZodUnknown, z.objectOutputType<{
|
|
63
|
+
status: z.ZodString;
|
|
64
|
+
validation_errors: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
65
|
+
message: z.ZodString;
|
|
66
|
+
}, "strip", z.ZodUnknown, z.objectOutputType<{
|
|
67
|
+
message: z.ZodString;
|
|
68
|
+
}, z.ZodUnknown, "strip">, z.objectInputType<{
|
|
69
|
+
message: z.ZodString;
|
|
70
|
+
}, z.ZodUnknown, "strip">>, "many">>;
|
|
71
|
+
}, z.ZodUnknown, "strip">, z.objectInputType<{
|
|
72
|
+
status: z.ZodString;
|
|
73
|
+
validation_errors: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
74
|
+
message: z.ZodString;
|
|
75
|
+
}, "strip", z.ZodUnknown, z.objectOutputType<{
|
|
76
|
+
message: z.ZodString;
|
|
77
|
+
}, z.ZodUnknown, "strip">, z.objectInputType<{
|
|
78
|
+
message: z.ZodString;
|
|
79
|
+
}, z.ZodUnknown, "strip">>, "many">>;
|
|
80
|
+
}, z.ZodUnknown, "strip">>;
|
|
81
|
+
verification_errors: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
82
|
+
}, z.ZodUnknown, "strip"> | null>;
|
|
45
83
|
updatedAt: z.ZodType<number, z.ZodTypeDef, number>;
|
|
46
84
|
createdAt: z.ZodType<number, z.ZodTypeDef, number>;
|
|
47
85
|
}, "status" | "id" | "domain" | "errorMessage" | "dnsRecords">, "strip", z.ZodTypeAny, {
|
package/lib/types/hook.d.ts
CHANGED
|
@@ -23,25 +23,24 @@ declare const hookExecutionStatsGuard: z.ZodObject<{
|
|
|
23
23
|
requestCount: number;
|
|
24
24
|
}>;
|
|
25
25
|
export type HookExecutionStats = z.infer<typeof hookExecutionStatsGuard>;
|
|
26
|
-
export declare const hookResponseGuard: z.ZodObject<
|
|
27
|
-
tenantId: z.ZodType<string, z.ZodTypeDef, string>;
|
|
28
|
-
id: z.ZodType<string, z.ZodTypeDef, string>;
|
|
26
|
+
export declare const hookResponseGuard: z.ZodObject<{
|
|
29
27
|
name: z.ZodType<string, z.ZodTypeDef, string>;
|
|
30
|
-
|
|
31
|
-
|
|
28
|
+
id: z.ZodType<string, z.ZodTypeDef, string>;
|
|
29
|
+
tenantId: z.ZodType<string, z.ZodTypeDef, string>;
|
|
30
|
+
createdAt: z.ZodType<number, z.ZodTypeDef, number>;
|
|
32
31
|
config: z.ZodType<{
|
|
32
|
+
url: string;
|
|
33
33
|
headers?: Record<string, string> | undefined;
|
|
34
34
|
retries?: number | undefined;
|
|
35
|
-
url: string;
|
|
36
35
|
}, z.ZodTypeDef, {
|
|
36
|
+
url: string;
|
|
37
37
|
headers?: Record<string, string> | undefined;
|
|
38
38
|
retries?: number | undefined;
|
|
39
|
-
url: string;
|
|
40
39
|
}>;
|
|
40
|
+
event: z.ZodType<HookEvent | null, z.ZodTypeDef, HookEvent | null>;
|
|
41
|
+
events: z.ZodType<HookEvent[], z.ZodTypeDef, HookEvent[]>;
|
|
41
42
|
signingKey: z.ZodType<string, z.ZodTypeDef, string>;
|
|
42
43
|
enabled: z.ZodType<boolean, z.ZodTypeDef, boolean>;
|
|
43
|
-
createdAt: z.ZodType<number, z.ZodTypeDef, number>;
|
|
44
|
-
}, {
|
|
45
44
|
executionStats: z.ZodObject<{
|
|
46
45
|
successCount: z.ZodNumber;
|
|
47
46
|
requestCount: z.ZodNumber;
|
|
@@ -52,15 +51,15 @@ export declare const hookResponseGuard: z.ZodObject<z.extendShape<{
|
|
|
52
51
|
successCount: number;
|
|
53
52
|
requestCount: number;
|
|
54
53
|
}>;
|
|
55
|
-
}
|
|
56
|
-
|
|
54
|
+
}, "strip", z.ZodTypeAny, {
|
|
55
|
+
name: string;
|
|
57
56
|
id: string;
|
|
57
|
+
tenantId: string;
|
|
58
58
|
createdAt: number;
|
|
59
|
-
name: string;
|
|
60
59
|
config: {
|
|
60
|
+
url: string;
|
|
61
61
|
headers?: Record<string, string> | undefined;
|
|
62
62
|
retries?: number | undefined;
|
|
63
|
-
url: string;
|
|
64
63
|
};
|
|
65
64
|
event: HookEvent | null;
|
|
66
65
|
events: HookEvent[];
|
|
@@ -71,14 +70,14 @@ export declare const hookResponseGuard: z.ZodObject<z.extendShape<{
|
|
|
71
70
|
requestCount: number;
|
|
72
71
|
};
|
|
73
72
|
}, {
|
|
74
|
-
|
|
73
|
+
name: string;
|
|
75
74
|
id: string;
|
|
75
|
+
tenantId: string;
|
|
76
76
|
createdAt: number;
|
|
77
|
-
name: string;
|
|
78
77
|
config: {
|
|
78
|
+
url: string;
|
|
79
79
|
headers?: Record<string, string> | undefined;
|
|
80
80
|
retries?: number | undefined;
|
|
81
|
-
url: string;
|
|
82
81
|
};
|
|
83
82
|
event: HookEvent | null;
|
|
84
83
|
events: HookEvent[];
|
package/lib/types/index.d.ts
CHANGED
package/lib/types/index.js
CHANGED