@stackframe/stack-shared 2.8.22 → 2.8.27
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/CHANGELOG.md +30 -0
- package/dist/config/format.d.mts +20 -5
- package/dist/config/format.d.ts +20 -5
- package/dist/config/format.js +39 -14
- package/dist/config/format.js.map +1 -1
- package/dist/config/schema.d.mts +816 -294
- package/dist/config/schema.d.ts +816 -294
- package/dist/config/schema.js +471 -82
- package/dist/config/schema.js.map +1 -1
- package/dist/crud.d.mts +1 -0
- package/dist/crud.d.ts +1 -0
- package/dist/esm/config/format.js +37 -14
- package/dist/esm/config/format.js.map +1 -1
- package/dist/esm/config/schema.js +460 -78
- package/dist/esm/config/schema.js.map +1 -1
- package/dist/esm/helpers/emails.js +185 -0
- package/dist/esm/helpers/emails.js.map +1 -0
- package/dist/esm/interface/admin-interface.js +58 -36
- package/dist/esm/interface/admin-interface.js.map +1 -1
- package/dist/esm/interface/client-interface.js +41 -0
- package/dist/esm/interface/client-interface.js.map +1 -1
- package/dist/esm/interface/crud/{oauth.js → connected-accounts.js} +2 -2
- package/dist/esm/interface/crud/connected-accounts.js.map +1 -0
- package/dist/esm/interface/crud/oauth-providers.js +87 -0
- package/dist/esm/interface/crud/oauth-providers.js.map +1 -0
- package/dist/esm/interface/crud/projects.js +7 -5
- package/dist/esm/interface/crud/projects.js.map +1 -1
- package/dist/esm/interface/server-interface.js +51 -0
- package/dist/esm/interface/server-interface.js.map +1 -1
- package/dist/esm/known-errors.js +34 -1
- package/dist/esm/known-errors.js.map +1 -1
- package/dist/esm/schema-fields.js +112 -24
- package/dist/esm/schema-fields.js.map +1 -1
- package/dist/esm/utils/currencies.js +52 -0
- package/dist/esm/utils/currencies.js.map +1 -0
- package/dist/esm/utils/dates.js +55 -1
- package/dist/esm/utils/dates.js.map +1 -1
- package/dist/esm/utils/errors.js.map +1 -1
- package/dist/esm/utils/esbuild.js +14 -4
- package/dist/esm/utils/esbuild.js.map +1 -1
- package/dist/esm/utils/oauth.js +1 -1
- package/dist/esm/utils/oauth.js.map +1 -1
- package/dist/esm/utils/objects.js +2 -0
- package/dist/esm/utils/objects.js.map +1 -1
- package/dist/esm/utils/strings.js +4 -0
- package/dist/esm/utils/strings.js.map +1 -1
- package/dist/esm/utils/types.js +45 -0
- package/dist/esm/utils/types.js.map +1 -1
- package/dist/helpers/emails.d.mts +50 -0
- package/dist/helpers/emails.d.ts +50 -0
- package/dist/helpers/emails.js +216 -0
- package/dist/helpers/emails.js.map +1 -0
- package/dist/helpers/password.d.mts +1 -0
- package/dist/helpers/password.d.ts +1 -0
- package/dist/helpers/production-mode.d.mts +1 -0
- package/dist/helpers/production-mode.d.ts +1 -0
- package/dist/index.d.mts +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/interface/admin-interface.d.mts +24 -15
- package/dist/interface/admin-interface.d.ts +24 -15
- package/dist/interface/admin-interface.js +58 -36
- package/dist/interface/admin-interface.js.map +1 -1
- package/dist/interface/client-interface.d.mts +25 -1
- package/dist/interface/client-interface.d.ts +25 -1
- package/dist/interface/client-interface.js +41 -0
- package/dist/interface/client-interface.js.map +1 -1
- package/dist/interface/crud/{oauth.d.mts → connected-accounts.d.mts} +1 -0
- package/dist/interface/crud/{oauth.d.ts → connected-accounts.d.ts} +1 -0
- package/dist/interface/crud/{oauth.js → connected-accounts.js} +5 -5
- package/dist/interface/crud/connected-accounts.js.map +1 -0
- package/dist/interface/crud/contact-channels.d.mts +1 -0
- package/dist/interface/crud/contact-channels.d.ts +1 -0
- package/dist/interface/crud/current-user.d.mts +1 -0
- package/dist/interface/crud/current-user.d.ts +1 -0
- package/dist/interface/crud/email-templates.d.mts +1 -0
- package/dist/interface/crud/email-templates.d.ts +1 -0
- package/dist/interface/crud/emails.d.mts +1 -0
- package/dist/interface/crud/emails.d.ts +1 -0
- package/dist/interface/crud/internal-api-keys.d.mts +1 -0
- package/dist/interface/crud/internal-api-keys.d.ts +1 -0
- package/dist/interface/crud/notification-preferences.d.mts +1 -0
- package/dist/interface/crud/notification-preferences.d.ts +1 -0
- package/dist/interface/crud/oauth-providers.d.mts +173 -0
- package/dist/interface/crud/oauth-providers.d.ts +173 -0
- package/dist/interface/crud/oauth-providers.js +107 -0
- package/dist/interface/crud/oauth-providers.js.map +1 -0
- package/dist/interface/crud/project-api-keys.d.mts +1 -0
- package/dist/interface/crud/project-api-keys.d.ts +1 -0
- package/dist/interface/crud/project-permissions.d.mts +1 -0
- package/dist/interface/crud/project-permissions.d.ts +1 -0
- package/dist/interface/crud/projects.d.mts +16 -12
- package/dist/interface/crud/projects.d.ts +16 -12
- package/dist/interface/crud/projects.js +5 -3
- package/dist/interface/crud/projects.js.map +1 -1
- package/dist/interface/crud/sessions.d.mts +1 -0
- package/dist/interface/crud/sessions.d.ts +1 -0
- package/dist/interface/crud/svix-token.d.mts +1 -0
- package/dist/interface/crud/svix-token.d.ts +1 -0
- package/dist/interface/crud/team-invitation-details.d.mts +1 -0
- package/dist/interface/crud/team-invitation-details.d.ts +1 -0
- package/dist/interface/crud/team-invitation.d.mts +1 -0
- package/dist/interface/crud/team-invitation.d.ts +1 -0
- package/dist/interface/crud/team-member-profiles.d.mts +1 -0
- package/dist/interface/crud/team-member-profiles.d.ts +1 -0
- package/dist/interface/crud/team-memberships.d.mts +1 -0
- package/dist/interface/crud/team-memberships.d.ts +1 -0
- package/dist/interface/crud/team-permissions.d.mts +1 -0
- package/dist/interface/crud/team-permissions.d.ts +1 -0
- package/dist/interface/crud/teams.d.mts +1 -0
- package/dist/interface/crud/teams.d.ts +1 -0
- package/dist/interface/crud/users.d.mts +1 -0
- package/dist/interface/crud/users.d.ts +1 -0
- package/dist/interface/server-interface.d.mts +46 -1
- package/dist/interface/server-interface.d.ts +46 -1
- package/dist/interface/server-interface.js +51 -0
- package/dist/interface/server-interface.js.map +1 -1
- package/dist/known-errors.d.mts +9 -0
- package/dist/known-errors.d.ts +9 -0
- package/dist/known-errors.js +34 -1
- package/dist/known-errors.js.map +1 -1
- package/dist/schema-fields.d.mts +51 -7
- package/dist/schema-fields.d.ts +51 -7
- package/dist/schema-fields.js +128 -24
- package/dist/schema-fields.js.map +1 -1
- package/dist/utils/currencies.d.mts +39 -0
- package/dist/utils/currencies.d.ts +39 -0
- package/dist/utils/currencies.js +78 -0
- package/dist/utils/currencies.js.map +1 -0
- package/dist/utils/dates.d.mts +5 -1
- package/dist/utils/dates.d.ts +5 -1
- package/dist/utils/dates.js +58 -2
- package/dist/utils/dates.js.map +1 -1
- package/dist/utils/errors.d.mts +9 -0
- package/dist/utils/errors.d.ts +9 -0
- package/dist/utils/errors.js.map +1 -1
- package/dist/utils/esbuild.d.mts +3 -0
- package/dist/utils/esbuild.d.ts +3 -0
- package/dist/utils/esbuild.js +14 -4
- package/dist/utils/esbuild.js.map +1 -1
- package/dist/utils/oauth.d.mts +2 -2
- package/dist/utils/oauth.d.ts +2 -2
- package/dist/utils/oauth.js +1 -1
- package/dist/utils/oauth.js.map +1 -1
- package/dist/utils/objects.d.mts +23 -8
- package/dist/utils/objects.d.ts +23 -8
- package/dist/utils/objects.js +2 -0
- package/dist/utils/objects.js.map +1 -1
- package/dist/utils/strings.d.mts +3 -1
- package/dist/utils/strings.d.ts +3 -1
- package/dist/utils/strings.js +5 -0
- package/dist/utils/strings.js.map +1 -1
- package/dist/utils/types.d.mts +73 -2
- package/dist/utils/types.d.ts +73 -2
- package/dist/utils/types.js +54 -0
- package/dist/utils/types.js.map +1 -1
- package/package.json +1 -1
- package/dist/esm/helpers/email-themes.js +0 -45
- package/dist/esm/helpers/email-themes.js.map +0 -1
- package/dist/esm/interface/crud/oauth.js.map +0 -1
- package/dist/helpers/email-themes.d.mts +0 -13
- package/dist/helpers/email-themes.d.ts +0 -13
- package/dist/helpers/email-themes.js +0 -71
- package/dist/helpers/email-themes.js.map +0 -1
- package/dist/interface/crud/oauth.js.map +0 -1
|
@@ -0,0 +1,173 @@
|
|
|
1
|
+
import { CrudSchemaFromOptions, CrudTypeOf } from '../../crud.mjs';
|
|
2
|
+
import * as yup from 'yup';
|
|
3
|
+
import '../../utils/types.mjs';
|
|
4
|
+
import '../../utils/strings.mjs';
|
|
5
|
+
|
|
6
|
+
declare const oauthProviderClientReadSchema: yup.ObjectSchema<{
|
|
7
|
+
user_id: string;
|
|
8
|
+
id: string;
|
|
9
|
+
email: string | undefined;
|
|
10
|
+
type: "apple" | "x" | "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "twitch";
|
|
11
|
+
allow_sign_in: boolean;
|
|
12
|
+
allow_connected_accounts: boolean;
|
|
13
|
+
}, yup.AnyObject, {
|
|
14
|
+
user_id: undefined;
|
|
15
|
+
id: undefined;
|
|
16
|
+
email: undefined;
|
|
17
|
+
type: undefined;
|
|
18
|
+
allow_sign_in: undefined;
|
|
19
|
+
allow_connected_accounts: undefined;
|
|
20
|
+
}, "">;
|
|
21
|
+
declare const oauthProviderServerReadSchema: yup.ObjectSchema<{
|
|
22
|
+
user_id: string;
|
|
23
|
+
id: string;
|
|
24
|
+
email: string | undefined;
|
|
25
|
+
type: "apple" | "x" | "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "twitch";
|
|
26
|
+
allow_sign_in: boolean;
|
|
27
|
+
allow_connected_accounts: boolean;
|
|
28
|
+
} & {
|
|
29
|
+
account_id: string;
|
|
30
|
+
}, yup.AnyObject, {
|
|
31
|
+
user_id: undefined;
|
|
32
|
+
id: undefined;
|
|
33
|
+
email: undefined;
|
|
34
|
+
type: undefined;
|
|
35
|
+
allow_sign_in: undefined;
|
|
36
|
+
allow_connected_accounts: undefined;
|
|
37
|
+
account_id: undefined;
|
|
38
|
+
}, "">;
|
|
39
|
+
declare const oauthProviderCrudClientUpdateSchema: yup.ObjectSchema<{
|
|
40
|
+
allow_sign_in: boolean | undefined;
|
|
41
|
+
allow_connected_accounts: boolean | undefined;
|
|
42
|
+
}, yup.AnyObject, {
|
|
43
|
+
allow_sign_in: undefined;
|
|
44
|
+
allow_connected_accounts: undefined;
|
|
45
|
+
}, "">;
|
|
46
|
+
declare const oauthProviderCrudServerUpdateSchema: yup.ObjectSchema<{
|
|
47
|
+
allow_sign_in: boolean | undefined;
|
|
48
|
+
allow_connected_accounts: boolean | undefined;
|
|
49
|
+
} & {
|
|
50
|
+
email: string | undefined;
|
|
51
|
+
account_id: string | undefined;
|
|
52
|
+
}, yup.AnyObject, {
|
|
53
|
+
allow_sign_in: undefined;
|
|
54
|
+
allow_connected_accounts: undefined;
|
|
55
|
+
email: undefined;
|
|
56
|
+
account_id: undefined;
|
|
57
|
+
}, "">;
|
|
58
|
+
declare const oauthProviderCrudServerCreateSchema: yup.ObjectSchema<{
|
|
59
|
+
user_id: string;
|
|
60
|
+
provider_config_id: string;
|
|
61
|
+
email: string | undefined;
|
|
62
|
+
allow_sign_in: boolean;
|
|
63
|
+
allow_connected_accounts: boolean;
|
|
64
|
+
account_id: string;
|
|
65
|
+
}, yup.AnyObject, {
|
|
66
|
+
user_id: undefined;
|
|
67
|
+
provider_config_id: undefined;
|
|
68
|
+
email: undefined;
|
|
69
|
+
allow_sign_in: undefined;
|
|
70
|
+
allow_connected_accounts: undefined;
|
|
71
|
+
account_id: undefined;
|
|
72
|
+
}, "">;
|
|
73
|
+
declare const oauthProviderCrudClientDeleteSchema: yup.MixedSchema<{} | undefined, yup.AnyObject, undefined, "">;
|
|
74
|
+
declare const oauthProviderCrud: CrudSchemaFromOptions<{
|
|
75
|
+
clientReadSchema: yup.ObjectSchema<{
|
|
76
|
+
user_id: string;
|
|
77
|
+
id: string;
|
|
78
|
+
email: string | undefined;
|
|
79
|
+
type: "apple" | "x" | "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "twitch";
|
|
80
|
+
allow_sign_in: boolean;
|
|
81
|
+
allow_connected_accounts: boolean;
|
|
82
|
+
}, yup.AnyObject, {
|
|
83
|
+
user_id: undefined;
|
|
84
|
+
id: undefined;
|
|
85
|
+
email: undefined;
|
|
86
|
+
type: undefined;
|
|
87
|
+
allow_sign_in: undefined;
|
|
88
|
+
allow_connected_accounts: undefined;
|
|
89
|
+
}, "">;
|
|
90
|
+
clientUpdateSchema: yup.ObjectSchema<{
|
|
91
|
+
allow_sign_in: boolean | undefined;
|
|
92
|
+
allow_connected_accounts: boolean | undefined;
|
|
93
|
+
}, yup.AnyObject, {
|
|
94
|
+
allow_sign_in: undefined;
|
|
95
|
+
allow_connected_accounts: undefined;
|
|
96
|
+
}, "">;
|
|
97
|
+
clientDeleteSchema: yup.MixedSchema<{} | undefined, yup.AnyObject, undefined, "">;
|
|
98
|
+
serverReadSchema: yup.ObjectSchema<{
|
|
99
|
+
user_id: string;
|
|
100
|
+
id: string;
|
|
101
|
+
email: string | undefined;
|
|
102
|
+
type: "apple" | "x" | "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "twitch";
|
|
103
|
+
allow_sign_in: boolean;
|
|
104
|
+
allow_connected_accounts: boolean;
|
|
105
|
+
} & {
|
|
106
|
+
account_id: string;
|
|
107
|
+
}, yup.AnyObject, {
|
|
108
|
+
user_id: undefined;
|
|
109
|
+
id: undefined;
|
|
110
|
+
email: undefined;
|
|
111
|
+
type: undefined;
|
|
112
|
+
allow_sign_in: undefined;
|
|
113
|
+
allow_connected_accounts: undefined;
|
|
114
|
+
account_id: undefined;
|
|
115
|
+
}, "">;
|
|
116
|
+
serverUpdateSchema: yup.ObjectSchema<{
|
|
117
|
+
allow_sign_in: boolean | undefined;
|
|
118
|
+
allow_connected_accounts: boolean | undefined;
|
|
119
|
+
} & {
|
|
120
|
+
email: string | undefined;
|
|
121
|
+
account_id: string | undefined;
|
|
122
|
+
}, yup.AnyObject, {
|
|
123
|
+
allow_sign_in: undefined;
|
|
124
|
+
allow_connected_accounts: undefined;
|
|
125
|
+
email: undefined;
|
|
126
|
+
account_id: undefined;
|
|
127
|
+
}, "">;
|
|
128
|
+
serverCreateSchema: yup.ObjectSchema<{
|
|
129
|
+
user_id: string;
|
|
130
|
+
provider_config_id: string;
|
|
131
|
+
email: string | undefined;
|
|
132
|
+
allow_sign_in: boolean;
|
|
133
|
+
allow_connected_accounts: boolean;
|
|
134
|
+
account_id: string;
|
|
135
|
+
}, yup.AnyObject, {
|
|
136
|
+
user_id: undefined;
|
|
137
|
+
provider_config_id: undefined;
|
|
138
|
+
email: undefined;
|
|
139
|
+
allow_sign_in: undefined;
|
|
140
|
+
allow_connected_accounts: undefined;
|
|
141
|
+
account_id: undefined;
|
|
142
|
+
}, "">;
|
|
143
|
+
docs: {
|
|
144
|
+
clientRead: {
|
|
145
|
+
summary: string;
|
|
146
|
+
description: string;
|
|
147
|
+
tags: string[];
|
|
148
|
+
};
|
|
149
|
+
serverCreate: {
|
|
150
|
+
summary: string;
|
|
151
|
+
description: string;
|
|
152
|
+
tags: string[];
|
|
153
|
+
};
|
|
154
|
+
serverUpdate: {
|
|
155
|
+
summary: string;
|
|
156
|
+
description: string;
|
|
157
|
+
tags: string[];
|
|
158
|
+
};
|
|
159
|
+
clientDelete: {
|
|
160
|
+
summary: string;
|
|
161
|
+
description: string;
|
|
162
|
+
tags: string[];
|
|
163
|
+
};
|
|
164
|
+
clientList: {
|
|
165
|
+
summary: string;
|
|
166
|
+
description: string;
|
|
167
|
+
tags: string[];
|
|
168
|
+
};
|
|
169
|
+
};
|
|
170
|
+
}>;
|
|
171
|
+
type OAuthProviderCrud = CrudTypeOf<typeof oauthProviderCrud>;
|
|
172
|
+
|
|
173
|
+
export { type OAuthProviderCrud, oauthProviderClientReadSchema, oauthProviderCrud, oauthProviderCrudClientDeleteSchema, oauthProviderCrudClientUpdateSchema, oauthProviderCrudServerCreateSchema, oauthProviderCrudServerUpdateSchema, oauthProviderServerReadSchema };
|
|
@@ -0,0 +1,173 @@
|
|
|
1
|
+
import { CrudSchemaFromOptions, CrudTypeOf } from '../../crud.js';
|
|
2
|
+
import * as yup from 'yup';
|
|
3
|
+
import '../../utils/types.js';
|
|
4
|
+
import '../../utils/strings.js';
|
|
5
|
+
|
|
6
|
+
declare const oauthProviderClientReadSchema: yup.ObjectSchema<{
|
|
7
|
+
user_id: string;
|
|
8
|
+
id: string;
|
|
9
|
+
email: string | undefined;
|
|
10
|
+
type: "apple" | "x" | "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "twitch";
|
|
11
|
+
allow_sign_in: boolean;
|
|
12
|
+
allow_connected_accounts: boolean;
|
|
13
|
+
}, yup.AnyObject, {
|
|
14
|
+
user_id: undefined;
|
|
15
|
+
id: undefined;
|
|
16
|
+
email: undefined;
|
|
17
|
+
type: undefined;
|
|
18
|
+
allow_sign_in: undefined;
|
|
19
|
+
allow_connected_accounts: undefined;
|
|
20
|
+
}, "">;
|
|
21
|
+
declare const oauthProviderServerReadSchema: yup.ObjectSchema<{
|
|
22
|
+
user_id: string;
|
|
23
|
+
id: string;
|
|
24
|
+
email: string | undefined;
|
|
25
|
+
type: "apple" | "x" | "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "twitch";
|
|
26
|
+
allow_sign_in: boolean;
|
|
27
|
+
allow_connected_accounts: boolean;
|
|
28
|
+
} & {
|
|
29
|
+
account_id: string;
|
|
30
|
+
}, yup.AnyObject, {
|
|
31
|
+
user_id: undefined;
|
|
32
|
+
id: undefined;
|
|
33
|
+
email: undefined;
|
|
34
|
+
type: undefined;
|
|
35
|
+
allow_sign_in: undefined;
|
|
36
|
+
allow_connected_accounts: undefined;
|
|
37
|
+
account_id: undefined;
|
|
38
|
+
}, "">;
|
|
39
|
+
declare const oauthProviderCrudClientUpdateSchema: yup.ObjectSchema<{
|
|
40
|
+
allow_sign_in: boolean | undefined;
|
|
41
|
+
allow_connected_accounts: boolean | undefined;
|
|
42
|
+
}, yup.AnyObject, {
|
|
43
|
+
allow_sign_in: undefined;
|
|
44
|
+
allow_connected_accounts: undefined;
|
|
45
|
+
}, "">;
|
|
46
|
+
declare const oauthProviderCrudServerUpdateSchema: yup.ObjectSchema<{
|
|
47
|
+
allow_sign_in: boolean | undefined;
|
|
48
|
+
allow_connected_accounts: boolean | undefined;
|
|
49
|
+
} & {
|
|
50
|
+
email: string | undefined;
|
|
51
|
+
account_id: string | undefined;
|
|
52
|
+
}, yup.AnyObject, {
|
|
53
|
+
allow_sign_in: undefined;
|
|
54
|
+
allow_connected_accounts: undefined;
|
|
55
|
+
email: undefined;
|
|
56
|
+
account_id: undefined;
|
|
57
|
+
}, "">;
|
|
58
|
+
declare const oauthProviderCrudServerCreateSchema: yup.ObjectSchema<{
|
|
59
|
+
user_id: string;
|
|
60
|
+
provider_config_id: string;
|
|
61
|
+
email: string | undefined;
|
|
62
|
+
allow_sign_in: boolean;
|
|
63
|
+
allow_connected_accounts: boolean;
|
|
64
|
+
account_id: string;
|
|
65
|
+
}, yup.AnyObject, {
|
|
66
|
+
user_id: undefined;
|
|
67
|
+
provider_config_id: undefined;
|
|
68
|
+
email: undefined;
|
|
69
|
+
allow_sign_in: undefined;
|
|
70
|
+
allow_connected_accounts: undefined;
|
|
71
|
+
account_id: undefined;
|
|
72
|
+
}, "">;
|
|
73
|
+
declare const oauthProviderCrudClientDeleteSchema: yup.MixedSchema<{} | undefined, yup.AnyObject, undefined, "">;
|
|
74
|
+
declare const oauthProviderCrud: CrudSchemaFromOptions<{
|
|
75
|
+
clientReadSchema: yup.ObjectSchema<{
|
|
76
|
+
user_id: string;
|
|
77
|
+
id: string;
|
|
78
|
+
email: string | undefined;
|
|
79
|
+
type: "apple" | "x" | "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "twitch";
|
|
80
|
+
allow_sign_in: boolean;
|
|
81
|
+
allow_connected_accounts: boolean;
|
|
82
|
+
}, yup.AnyObject, {
|
|
83
|
+
user_id: undefined;
|
|
84
|
+
id: undefined;
|
|
85
|
+
email: undefined;
|
|
86
|
+
type: undefined;
|
|
87
|
+
allow_sign_in: undefined;
|
|
88
|
+
allow_connected_accounts: undefined;
|
|
89
|
+
}, "">;
|
|
90
|
+
clientUpdateSchema: yup.ObjectSchema<{
|
|
91
|
+
allow_sign_in: boolean | undefined;
|
|
92
|
+
allow_connected_accounts: boolean | undefined;
|
|
93
|
+
}, yup.AnyObject, {
|
|
94
|
+
allow_sign_in: undefined;
|
|
95
|
+
allow_connected_accounts: undefined;
|
|
96
|
+
}, "">;
|
|
97
|
+
clientDeleteSchema: yup.MixedSchema<{} | undefined, yup.AnyObject, undefined, "">;
|
|
98
|
+
serverReadSchema: yup.ObjectSchema<{
|
|
99
|
+
user_id: string;
|
|
100
|
+
id: string;
|
|
101
|
+
email: string | undefined;
|
|
102
|
+
type: "apple" | "x" | "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "twitch";
|
|
103
|
+
allow_sign_in: boolean;
|
|
104
|
+
allow_connected_accounts: boolean;
|
|
105
|
+
} & {
|
|
106
|
+
account_id: string;
|
|
107
|
+
}, yup.AnyObject, {
|
|
108
|
+
user_id: undefined;
|
|
109
|
+
id: undefined;
|
|
110
|
+
email: undefined;
|
|
111
|
+
type: undefined;
|
|
112
|
+
allow_sign_in: undefined;
|
|
113
|
+
allow_connected_accounts: undefined;
|
|
114
|
+
account_id: undefined;
|
|
115
|
+
}, "">;
|
|
116
|
+
serverUpdateSchema: yup.ObjectSchema<{
|
|
117
|
+
allow_sign_in: boolean | undefined;
|
|
118
|
+
allow_connected_accounts: boolean | undefined;
|
|
119
|
+
} & {
|
|
120
|
+
email: string | undefined;
|
|
121
|
+
account_id: string | undefined;
|
|
122
|
+
}, yup.AnyObject, {
|
|
123
|
+
allow_sign_in: undefined;
|
|
124
|
+
allow_connected_accounts: undefined;
|
|
125
|
+
email: undefined;
|
|
126
|
+
account_id: undefined;
|
|
127
|
+
}, "">;
|
|
128
|
+
serverCreateSchema: yup.ObjectSchema<{
|
|
129
|
+
user_id: string;
|
|
130
|
+
provider_config_id: string;
|
|
131
|
+
email: string | undefined;
|
|
132
|
+
allow_sign_in: boolean;
|
|
133
|
+
allow_connected_accounts: boolean;
|
|
134
|
+
account_id: string;
|
|
135
|
+
}, yup.AnyObject, {
|
|
136
|
+
user_id: undefined;
|
|
137
|
+
provider_config_id: undefined;
|
|
138
|
+
email: undefined;
|
|
139
|
+
allow_sign_in: undefined;
|
|
140
|
+
allow_connected_accounts: undefined;
|
|
141
|
+
account_id: undefined;
|
|
142
|
+
}, "">;
|
|
143
|
+
docs: {
|
|
144
|
+
clientRead: {
|
|
145
|
+
summary: string;
|
|
146
|
+
description: string;
|
|
147
|
+
tags: string[];
|
|
148
|
+
};
|
|
149
|
+
serverCreate: {
|
|
150
|
+
summary: string;
|
|
151
|
+
description: string;
|
|
152
|
+
tags: string[];
|
|
153
|
+
};
|
|
154
|
+
serverUpdate: {
|
|
155
|
+
summary: string;
|
|
156
|
+
description: string;
|
|
157
|
+
tags: string[];
|
|
158
|
+
};
|
|
159
|
+
clientDelete: {
|
|
160
|
+
summary: string;
|
|
161
|
+
description: string;
|
|
162
|
+
tags: string[];
|
|
163
|
+
};
|
|
164
|
+
clientList: {
|
|
165
|
+
summary: string;
|
|
166
|
+
description: string;
|
|
167
|
+
tags: string[];
|
|
168
|
+
};
|
|
169
|
+
};
|
|
170
|
+
}>;
|
|
171
|
+
type OAuthProviderCrud = CrudTypeOf<typeof oauthProviderCrud>;
|
|
172
|
+
|
|
173
|
+
export { type OAuthProviderCrud, oauthProviderClientReadSchema, oauthProviderCrud, oauthProviderCrudClientDeleteSchema, oauthProviderCrudClientUpdateSchema, oauthProviderCrudServerCreateSchema, oauthProviderCrudServerUpdateSchema, oauthProviderServerReadSchema };
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
+
};
|
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
+
}
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
+
|
|
20
|
+
// src/interface/crud/oauth-providers.ts
|
|
21
|
+
var oauth_providers_exports = {};
|
|
22
|
+
__export(oauth_providers_exports, {
|
|
23
|
+
oauthProviderClientReadSchema: () => oauthProviderClientReadSchema,
|
|
24
|
+
oauthProviderCrud: () => oauthProviderCrud,
|
|
25
|
+
oauthProviderCrudClientDeleteSchema: () => oauthProviderCrudClientDeleteSchema,
|
|
26
|
+
oauthProviderCrudClientUpdateSchema: () => oauthProviderCrudClientUpdateSchema,
|
|
27
|
+
oauthProviderCrudServerCreateSchema: () => oauthProviderCrudServerCreateSchema,
|
|
28
|
+
oauthProviderCrudServerUpdateSchema: () => oauthProviderCrudServerUpdateSchema,
|
|
29
|
+
oauthProviderServerReadSchema: () => oauthProviderServerReadSchema
|
|
30
|
+
});
|
|
31
|
+
module.exports = __toCommonJS(oauth_providers_exports);
|
|
32
|
+
var import_crud = require("../../crud.js");
|
|
33
|
+
var import_schema_fields = require("../../schema-fields.js");
|
|
34
|
+
var oauthProviderClientReadSchema = (0, import_schema_fields.yupObject)({
|
|
35
|
+
user_id: import_schema_fields.userIdOrMeSchema.defined(),
|
|
36
|
+
id: import_schema_fields.oauthProviderIdSchema.defined(),
|
|
37
|
+
email: import_schema_fields.oauthProviderEmailSchema.optional(),
|
|
38
|
+
type: import_schema_fields.oauthProviderTypeSchema.defined(),
|
|
39
|
+
allow_sign_in: import_schema_fields.oauthProviderAllowSignInSchema.defined(),
|
|
40
|
+
allow_connected_accounts: import_schema_fields.oauthProviderAllowConnectedAccountsSchema.defined()
|
|
41
|
+
}).defined();
|
|
42
|
+
var oauthProviderServerReadSchema = oauthProviderClientReadSchema.concat((0, import_schema_fields.yupObject)({
|
|
43
|
+
account_id: import_schema_fields.oauthProviderAccountIdSchema.defined()
|
|
44
|
+
}));
|
|
45
|
+
var oauthProviderCrudClientUpdateSchema = (0, import_schema_fields.yupObject)({
|
|
46
|
+
allow_sign_in: import_schema_fields.oauthProviderAllowSignInSchema.optional(),
|
|
47
|
+
allow_connected_accounts: import_schema_fields.oauthProviderAllowConnectedAccountsSchema.optional()
|
|
48
|
+
}).defined();
|
|
49
|
+
var oauthProviderCrudServerUpdateSchema = oauthProviderCrudClientUpdateSchema.concat((0, import_schema_fields.yupObject)({
|
|
50
|
+
email: import_schema_fields.oauthProviderEmailSchema.optional(),
|
|
51
|
+
account_id: import_schema_fields.oauthProviderAccountIdSchema.optional()
|
|
52
|
+
}));
|
|
53
|
+
var oauthProviderCrudServerCreateSchema = (0, import_schema_fields.yupObject)({
|
|
54
|
+
user_id: import_schema_fields.userIdOrMeSchema.defined(),
|
|
55
|
+
provider_config_id: (0, import_schema_fields.yupString)().defined(),
|
|
56
|
+
email: import_schema_fields.oauthProviderEmailSchema.optional(),
|
|
57
|
+
allow_sign_in: import_schema_fields.oauthProviderAllowSignInSchema.defined(),
|
|
58
|
+
allow_connected_accounts: import_schema_fields.oauthProviderAllowConnectedAccountsSchema.defined(),
|
|
59
|
+
account_id: import_schema_fields.oauthProviderAccountIdSchema.defined()
|
|
60
|
+
}).defined();
|
|
61
|
+
var oauthProviderCrudClientDeleteSchema = (0, import_schema_fields.yupMixed)();
|
|
62
|
+
var oauthProviderCrud = (0, import_crud.createCrud)({
|
|
63
|
+
clientReadSchema: oauthProviderClientReadSchema,
|
|
64
|
+
clientUpdateSchema: oauthProviderCrudClientUpdateSchema,
|
|
65
|
+
clientDeleteSchema: oauthProviderCrudClientDeleteSchema,
|
|
66
|
+
serverReadSchema: oauthProviderServerReadSchema,
|
|
67
|
+
serverUpdateSchema: oauthProviderCrudServerUpdateSchema,
|
|
68
|
+
serverCreateSchema: oauthProviderCrudServerCreateSchema,
|
|
69
|
+
docs: {
|
|
70
|
+
clientRead: {
|
|
71
|
+
summary: "Get an OAuth provider",
|
|
72
|
+
description: "Retrieves a specific OAuth provider by the user ID and the OAuth provider ID.",
|
|
73
|
+
tags: ["OAuth Providers"]
|
|
74
|
+
},
|
|
75
|
+
serverCreate: {
|
|
76
|
+
summary: "Create an OAuth provider",
|
|
77
|
+
description: "Add a new OAuth provider for a user.",
|
|
78
|
+
tags: ["OAuth Providers"]
|
|
79
|
+
},
|
|
80
|
+
serverUpdate: {
|
|
81
|
+
summary: "Update an OAuth provider",
|
|
82
|
+
description: "Updates an existing OAuth provider. Only the values provided will be updated.",
|
|
83
|
+
tags: ["OAuth Providers"]
|
|
84
|
+
},
|
|
85
|
+
clientDelete: {
|
|
86
|
+
summary: "Delete an OAuth provider",
|
|
87
|
+
description: "Removes an OAuth provider for a given user.",
|
|
88
|
+
tags: ["OAuth Providers"]
|
|
89
|
+
},
|
|
90
|
+
clientList: {
|
|
91
|
+
summary: "List OAuth providers",
|
|
92
|
+
description: "Retrieves a list of all OAuth providers for a user.",
|
|
93
|
+
tags: ["OAuth Providers"]
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
});
|
|
97
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
98
|
+
0 && (module.exports = {
|
|
99
|
+
oauthProviderClientReadSchema,
|
|
100
|
+
oauthProviderCrud,
|
|
101
|
+
oauthProviderCrudClientDeleteSchema,
|
|
102
|
+
oauthProviderCrudClientUpdateSchema,
|
|
103
|
+
oauthProviderCrudServerCreateSchema,
|
|
104
|
+
oauthProviderCrudServerUpdateSchema,
|
|
105
|
+
oauthProviderServerReadSchema
|
|
106
|
+
});
|
|
107
|
+
//# sourceMappingURL=oauth-providers.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../src/interface/crud/oauth-providers.ts"],"sourcesContent":["import { CrudTypeOf, createCrud } from \"../../crud\";\nimport {\n oauthProviderAccountIdSchema,\n oauthProviderAllowConnectedAccountsSchema,\n oauthProviderAllowSignInSchema,\n oauthProviderEmailSchema,\n oauthProviderIdSchema,\n oauthProviderTypeSchema,\n userIdOrMeSchema,\n yupMixed,\n yupObject,\n yupString\n} from \"../../schema-fields\";\n\nexport const oauthProviderClientReadSchema = yupObject({\n user_id: userIdOrMeSchema.defined(),\n id: oauthProviderIdSchema.defined(),\n email: oauthProviderEmailSchema.optional(),\n type: oauthProviderTypeSchema.defined(),\n allow_sign_in: oauthProviderAllowSignInSchema.defined(),\n allow_connected_accounts: oauthProviderAllowConnectedAccountsSchema.defined(),\n}).defined();\n\nexport const oauthProviderServerReadSchema = oauthProviderClientReadSchema.concat(yupObject({\n account_id: oauthProviderAccountIdSchema.defined(),\n}));\n\nexport const oauthProviderCrudClientUpdateSchema = yupObject({\n allow_sign_in: oauthProviderAllowSignInSchema.optional(),\n allow_connected_accounts: oauthProviderAllowConnectedAccountsSchema.optional(),\n}).defined();\n\nexport const oauthProviderCrudServerUpdateSchema = oauthProviderCrudClientUpdateSchema.concat(yupObject({\n email: oauthProviderEmailSchema.optional(),\n account_id: oauthProviderAccountIdSchema.optional(),\n}));\n\nexport const oauthProviderCrudServerCreateSchema = yupObject({\n user_id: userIdOrMeSchema.defined(),\n provider_config_id: yupString().defined(),\n email: oauthProviderEmailSchema.optional(),\n allow_sign_in: oauthProviderAllowSignInSchema.defined(),\n allow_connected_accounts: oauthProviderAllowConnectedAccountsSchema.defined(),\n account_id: oauthProviderAccountIdSchema.defined(),\n}).defined();\n\nexport const oauthProviderCrudClientDeleteSchema = yupMixed();\n\nexport const oauthProviderCrud = createCrud({\n clientReadSchema: oauthProviderClientReadSchema,\n clientUpdateSchema: oauthProviderCrudClientUpdateSchema,\n clientDeleteSchema: oauthProviderCrudClientDeleteSchema,\n serverReadSchema: oauthProviderServerReadSchema,\n serverUpdateSchema: oauthProviderCrudServerUpdateSchema,\n serverCreateSchema: oauthProviderCrudServerCreateSchema,\n docs: {\n clientRead: {\n summary: \"Get an OAuth provider\",\n description: \"Retrieves a specific OAuth provider by the user ID and the OAuth provider ID.\",\n tags: [\"OAuth Providers\"],\n },\n serverCreate: {\n summary: \"Create an OAuth provider\",\n description: \"Add a new OAuth provider for a user.\",\n tags: [\"OAuth Providers\"],\n },\n serverUpdate: {\n summary: \"Update an OAuth provider\",\n description: \"Updates an existing OAuth provider. Only the values provided will be updated.\",\n tags: [\"OAuth Providers\"],\n },\n clientDelete: {\n summary: \"Delete an OAuth provider\",\n description: \"Removes an OAuth provider for a given user.\",\n tags: [\"OAuth Providers\"],\n },\n clientList: {\n summary: \"List OAuth providers\",\n description: \"Retrieves a list of all OAuth providers for a user.\",\n tags: [\"OAuth Providers\"],\n },\n }\n});\nexport type OAuthProviderCrud = CrudTypeOf<typeof oauthProviderCrud>;\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBAAuC;AACvC,2BAWO;AAEA,IAAM,oCAAgC,gCAAU;AAAA,EACrD,SAAS,sCAAiB,QAAQ;AAAA,EAClC,IAAI,2CAAsB,QAAQ;AAAA,EAClC,OAAO,8CAAyB,SAAS;AAAA,EACzC,MAAM,6CAAwB,QAAQ;AAAA,EACtC,eAAe,oDAA+B,QAAQ;AAAA,EACtD,0BAA0B,+DAA0C,QAAQ;AAC9E,CAAC,EAAE,QAAQ;AAEJ,IAAM,gCAAgC,8BAA8B,WAAO,gCAAU;AAAA,EAC1F,YAAY,kDAA6B,QAAQ;AACnD,CAAC,CAAC;AAEK,IAAM,0CAAsC,gCAAU;AAAA,EAC3D,eAAe,oDAA+B,SAAS;AAAA,EACvD,0BAA0B,+DAA0C,SAAS;AAC/E,CAAC,EAAE,QAAQ;AAEJ,IAAM,sCAAsC,oCAAoC,WAAO,gCAAU;AAAA,EACtG,OAAO,8CAAyB,SAAS;AAAA,EACzC,YAAY,kDAA6B,SAAS;AACpD,CAAC,CAAC;AAEK,IAAM,0CAAsC,gCAAU;AAAA,EAC3D,SAAS,sCAAiB,QAAQ;AAAA,EAClC,wBAAoB,gCAAU,EAAE,QAAQ;AAAA,EACxC,OAAO,8CAAyB,SAAS;AAAA,EACzC,eAAe,oDAA+B,QAAQ;AAAA,EACtD,0BAA0B,+DAA0C,QAAQ;AAAA,EAC5E,YAAY,kDAA6B,QAAQ;AACnD,CAAC,EAAE,QAAQ;AAEJ,IAAM,0CAAsC,+BAAS;AAErD,IAAM,wBAAoB,wBAAW;AAAA,EAC1C,kBAAkB;AAAA,EAClB,oBAAoB;AAAA,EACpB,oBAAoB;AAAA,EACpB,kBAAkB;AAAA,EAClB,oBAAoB;AAAA,EACpB,oBAAoB;AAAA,EACpB,MAAM;AAAA,IACJ,YAAY;AAAA,MACV,SAAS;AAAA,MACT,aAAa;AAAA,MACb,MAAM,CAAC,iBAAiB;AAAA,IAC1B;AAAA,IACA,cAAc;AAAA,MACZ,SAAS;AAAA,MACT,aAAa;AAAA,MACb,MAAM,CAAC,iBAAiB;AAAA,IAC1B;AAAA,IACA,cAAc;AAAA,MACZ,SAAS;AAAA,MACT,aAAa;AAAA,MACb,MAAM,CAAC,iBAAiB;AAAA,IAC1B;AAAA,IACA,cAAc;AAAA,MACZ,SAAS;AAAA,MACT,aAAa;AAAA,MACb,MAAM,CAAC,iBAAiB;AAAA,IAC1B;AAAA,IACA,YAAY;AAAA,MACV,SAAS;AAAA,MACT,aAAa;AAAA,MACb,MAAM,CAAC,iBAAiB;AAAA,IAC1B;AAAA,EACF;AACF,CAAC;","names":[]}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { CrudSchemaFromOptions, CrudTypeOf } from '../../crud.mjs';
|
|
2
2
|
import * as yup from 'yup';
|
|
3
3
|
import '../../utils/types.mjs';
|
|
4
|
+
import '../../utils/strings.mjs';
|
|
4
5
|
|
|
5
6
|
declare const emailConfigSchema: yup.ObjectSchema<{
|
|
6
7
|
type: "shared" | "standard";
|
|
@@ -57,10 +58,11 @@ declare const projectsCrudAdminReadSchema: yup.ObjectSchema<{
|
|
|
57
58
|
facebook_config_id?: string | undefined;
|
|
58
59
|
microsoft_tenant_id?: string | undefined;
|
|
59
60
|
type: "shared" | "standard";
|
|
60
|
-
id: "apple" | "x" | "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin";
|
|
61
|
+
id: "apple" | "x" | "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "twitch";
|
|
62
|
+
provider_config_id: string;
|
|
61
63
|
}[];
|
|
62
64
|
enabled_oauth_providers: {
|
|
63
|
-
id: "apple" | "x" | "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin";
|
|
65
|
+
id: "apple" | "x" | "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "twitch";
|
|
64
66
|
}[];
|
|
65
67
|
domains: {
|
|
66
68
|
domain: string;
|
|
@@ -137,7 +139,7 @@ declare const projectsCrudClientReadSchema: yup.ObjectSchema<{
|
|
|
137
139
|
allow_user_api_keys: boolean;
|
|
138
140
|
allow_team_api_keys: boolean;
|
|
139
141
|
enabled_oauth_providers: {
|
|
140
|
-
id: "apple" | "x" | "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin";
|
|
142
|
+
id: "apple" | "x" | "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "twitch";
|
|
141
143
|
}[];
|
|
142
144
|
};
|
|
143
145
|
}, yup.AnyObject, {
|
|
@@ -175,7 +177,7 @@ declare const projectsCrudAdminUpdateSchema: yup.ObjectSchema<{
|
|
|
175
177
|
facebook_config_id?: string | undefined;
|
|
176
178
|
microsoft_tenant_id?: string | undefined;
|
|
177
179
|
type: "shared" | "standard";
|
|
178
|
-
id: "apple" | "x" | "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin";
|
|
180
|
+
id: "apple" | "x" | "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "twitch";
|
|
179
181
|
}[] | undefined;
|
|
180
182
|
domains?: {
|
|
181
183
|
domain: string;
|
|
@@ -229,7 +231,7 @@ declare const projectsCrudAdminCreateSchema: yup.ObjectSchema<{
|
|
|
229
231
|
facebook_config_id?: string | undefined;
|
|
230
232
|
microsoft_tenant_id?: string | undefined;
|
|
231
233
|
type: "shared" | "standard";
|
|
232
|
-
id: "apple" | "x" | "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin";
|
|
234
|
+
id: "apple" | "x" | "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "twitch";
|
|
233
235
|
}[] | undefined;
|
|
234
236
|
domains?: {
|
|
235
237
|
domain: string;
|
|
@@ -280,7 +282,7 @@ declare const clientProjectsCrud: CrudSchemaFromOptions<{
|
|
|
280
282
|
allow_user_api_keys: boolean;
|
|
281
283
|
allow_team_api_keys: boolean;
|
|
282
284
|
enabled_oauth_providers: {
|
|
283
|
-
id: "apple" | "x" | "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin";
|
|
285
|
+
id: "apple" | "x" | "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "twitch";
|
|
284
286
|
}[];
|
|
285
287
|
};
|
|
286
288
|
}, yup.AnyObject, {
|
|
@@ -330,10 +332,11 @@ declare const projectsCrud: CrudSchemaFromOptions<{
|
|
|
330
332
|
facebook_config_id?: string | undefined;
|
|
331
333
|
microsoft_tenant_id?: string | undefined;
|
|
332
334
|
type: "shared" | "standard";
|
|
333
|
-
id: "apple" | "x" | "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin";
|
|
335
|
+
id: "apple" | "x" | "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "twitch";
|
|
336
|
+
provider_config_id: string;
|
|
334
337
|
}[];
|
|
335
338
|
enabled_oauth_providers: {
|
|
336
|
-
id: "apple" | "x" | "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin";
|
|
339
|
+
id: "apple" | "x" | "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "twitch";
|
|
337
340
|
}[];
|
|
338
341
|
domains: {
|
|
339
342
|
domain: string;
|
|
@@ -417,7 +420,7 @@ declare const projectsCrud: CrudSchemaFromOptions<{
|
|
|
417
420
|
facebook_config_id?: string | undefined;
|
|
418
421
|
microsoft_tenant_id?: string | undefined;
|
|
419
422
|
type: "shared" | "standard";
|
|
420
|
-
id: "apple" | "x" | "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin";
|
|
423
|
+
id: "apple" | "x" | "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "twitch";
|
|
421
424
|
}[] | undefined;
|
|
422
425
|
domains?: {
|
|
423
426
|
domain: string;
|
|
@@ -494,10 +497,11 @@ declare const adminUserProjectsCrud: CrudSchemaFromOptions<{
|
|
|
494
497
|
facebook_config_id?: string | undefined;
|
|
495
498
|
microsoft_tenant_id?: string | undefined;
|
|
496
499
|
type: "shared" | "standard";
|
|
497
|
-
id: "apple" | "x" | "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin";
|
|
500
|
+
id: "apple" | "x" | "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "twitch";
|
|
501
|
+
provider_config_id: string;
|
|
498
502
|
}[];
|
|
499
503
|
enabled_oauth_providers: {
|
|
500
|
-
id: "apple" | "x" | "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin";
|
|
504
|
+
id: "apple" | "x" | "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "twitch";
|
|
501
505
|
}[];
|
|
502
506
|
domains: {
|
|
503
507
|
domain: string;
|
|
@@ -581,7 +585,7 @@ declare const adminUserProjectsCrud: CrudSchemaFromOptions<{
|
|
|
581
585
|
facebook_config_id?: string | undefined;
|
|
582
586
|
microsoft_tenant_id?: string | undefined;
|
|
583
587
|
type: "shared" | "standard";
|
|
584
|
-
id: "apple" | "x" | "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin";
|
|
588
|
+
id: "apple" | "x" | "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "twitch";
|
|
585
589
|
}[] | undefined;
|
|
586
590
|
domains?: {
|
|
587
591
|
domain: string;
|