@medusajs/types 1.12.0-snapshot-20240523153451 → 1.12.0-snapshot-20240524064838

Sign up to get free protection for your applications and to get access to all the features.
@@ -19,10 +19,9 @@ export type AuthIdentityDTO = {
19
19
  */
20
20
  entity_id: string;
21
21
  /**
22
- * The scope of the auth identity. For example,
23
- * `admin` or `store`.
22
+ * Holds information related to the actor IDs tied to the auth identity.
24
23
  */
25
- scope: string;
24
+ app_metadata?: Record<string, unknown>;
26
25
  /**
27
26
  * Holds custom data related to the provider in key-value pairs.
28
27
  */
@@ -31,10 +30,6 @@ export type AuthIdentityDTO = {
31
30
  * Holds custom data related to the user in key-value pairs.
32
31
  */
33
32
  user_metadata: Record<string, unknown>;
34
- /**
35
- * Holds custom data related to the third-party app in key-value pairs.
36
- */
37
- app_metadata: Record<string, unknown>;
38
33
  };
39
34
  /**
40
35
  * @interface
@@ -57,10 +52,9 @@ export type CreateAuthIdentityDTO = {
57
52
  */
58
53
  entity_id: string;
59
54
  /**
60
- * The scope of the auth identity. For example,
61
- * `admin` or `store`.
55
+ * Holds information related to the actor IDs tied to the auth identity.
62
56
  */
63
- scope: string;
57
+ app_metadata?: Record<string, unknown>;
64
58
  /**
65
59
  * Holds custom data related to the provider in key-value pairs.
66
60
  */
@@ -69,10 +63,6 @@ export type CreateAuthIdentityDTO = {
69
63
  * Holds custom data related to the user in key-value pairs.
70
64
  */
71
65
  user_metadata?: Record<string, unknown>;
72
- /**
73
- * Holds custom data related to the third-party app in key-value pairs.
74
- */
75
- app_metadata?: Record<string, unknown>;
76
66
  };
77
67
  /**
78
68
  * @interface
@@ -84,6 +74,10 @@ export type UpdateAuthIdentityDTO = {
84
74
  * The ID of the auth identity.
85
75
  */
86
76
  id: string;
77
+ /**
78
+ * Holds information related to the actor IDs tied to the auth identity.
79
+ */
80
+ app_metadata?: Record<string, unknown>;
87
81
  /**
88
82
  * Holds custom data related to the provider in key-value pairs.
89
83
  */
@@ -92,10 +86,6 @@ export type UpdateAuthIdentityDTO = {
92
86
  * Holds custom data related to the user in key-value pairs.
93
87
  */
94
88
  user_metadata?: Record<string, unknown>;
95
- /**
96
- * Holds custom data related to the third-party app in key-value pairs.
97
- */
98
- app_metadata?: Record<string, unknown>;
99
89
  };
100
90
  /**
101
91
  * The filters to apply on the retrieved auth identity.
@@ -106,7 +96,7 @@ export interface FilterableAuthIdentityProps extends BaseFilterable<FilterableAu
106
96
  */
107
97
  id?: string[];
108
98
  /**
109
- * Filter the auth identitys by the ID of their auth provider.
99
+ * Filter the auth identities by the ID of their auth provider.
110
100
  */
111
101
  provider?: string[] | string;
112
102
  }
@@ -1 +1 @@
1
- {"version":3,"file":"auth-identity.d.ts","sourceRoot":"","sources":["../../../src/auth/common/auth-identity.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,WAAW,CAAA;AAE1C;;;;GAIG;AACH,MAAM,MAAM,eAAe,GAAG;IAC5B;;OAEG;IACH,EAAE,EAAE,MAAM,CAAA;IAEV;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAA;IAEhB;;;OAGG;IACH,SAAS,EAAE,MAAM,CAAA;IAEjB;;;OAGG;IACH,KAAK,EAAE,MAAM,CAAA;IAEb;;OAEG;IACH,iBAAiB,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;IAE3C;;OAEG;IACH,aAAa,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;IAEtC;;OAEG;IACH,YAAY,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;CACtC,CAAA;AAED;;;;GAIG;AACH,MAAM,MAAM,qBAAqB,GAAG;IAClC;;OAEG;IACH,EAAE,CAAC,EAAE,MAAM,CAAA;IAEX;;;OAGG;IACH,QAAQ,EAAE,MAAM,CAAA;IAEhB;;;OAGG;IACH,SAAS,EAAE,MAAM,CAAA;IAEjB;;;OAGG;IACH,KAAK,EAAE,MAAM,CAAA;IAEb;;OAEG;IACH,iBAAiB,CAAC,EAAE,MAAM,C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,aAAa,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;CACvC,CAAA;AAED;;;;GAIG;AACH,MAAM,MAAM,qBAAqB,GAAG;IAClC;;OAEG;IACH,EAAE,CAAC,EAAE,MAAM,CAAA;IAEX;;;OAGG;IACH,QAAQ,EAAE,MAAM,CAAA;IAEhB;;;OAGG;IACH,SAAS,EAAE,MAAM,CAAA;IAEjB;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;IAEtC;;OAEG;IACH,iBAAiB,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;IAE3C;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;CACxC,CAAA;AAED;;;;GAIG;AACH,MAAM,MAAM,qBAAqB,GAAG;IAClC;;OAEG;IACH,EAAE,EAAE,MAAM,CAAA;IAEV;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;IACtC;;OAEG;IACH,iBAAiB,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;IAE3C;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;CACxC,CAAA;AAED;;GAEG;AACH,MAAM,WAAW,2BACf,SAAQ,cAAc,CAAC,2BAA2B,CAAC;IACnD;;OAEG;IACH,EAAE,CAAC,EAAE,MAAM,EAAE,CAAA;IAEb;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,EAAE,GAAG,MAAM,CAAA;CAC7B"}
@@ -37,28 +37,6 @@ export type AuthenticationResponse = {
37
37
  */
38
38
  successRedirectUrl?: string;
39
39
  };
40
- /**
41
- * @interface
42
- *
43
- * The configurations of the `providers` option
44
- * passed to the Auth Module.
45
- */
46
- export type AuthModuleProviderConfig = {
47
- /**
48
- * The provider's name.
49
- */
50
- name: string;
51
- /**
52
- * The scopes configuration of that provider.
53
- */
54
- scopes: Record<string, AuthProviderScope>;
55
- };
56
- /**
57
- * @interface
58
- *
59
- * The scope configurations of an auth provider.
60
- */
61
- export type AuthProviderScope = Record<string, unknown>;
62
40
  /**
63
41
  * @interface
64
42
  *
@@ -69,26 +47,22 @@ export type AuthenticationInput = {
69
47
  /**
70
48
  * URL of the incoming authentication request.
71
49
  */
72
- url: string;
50
+ url?: string;
73
51
  /**
74
52
  * Headers of incoming authentication request.
75
53
  */
76
- headers: Record<string, string>;
54
+ headers?: Record<string, string>;
77
55
  /**
78
56
  * Query params of the incoming authentication request.
79
57
  */
80
- query: Record<string, string>;
58
+ query?: Record<string, string>;
81
59
  /**
82
60
  * Body of the incoming authentication request.
83
61
  */
84
- body: Record<string, string>;
85
- /**
86
- * Scope for the authentication request.
87
- */
88
- authScope: string;
62
+ body?: Record<string, string>;
89
63
  /**
90
64
  * Protocol of the incoming authentication request (For example, `https`).
91
65
  */
92
- protocol: string;
66
+ protocol?: string;
93
67
  };
94
68
  //# sourceMappingURL=provider.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"provider.d.ts","sourceRoot":"","sources":["../../../src/auth/common/provider.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,MAAM,MAAM,sBAAsB,GAAG;IACnC;;OAEG;IACH,OAAO,EAAE,OAAO,CAAA;IAEhB;;OAEG;IACH,YAAY,CAAC,EAAE,GAAG,CAAA;IAElB;;;;OAIG;IACH,KAAK,CAAC,EAAE,MAAM,CAAA;IAEd;;;;;;;;OAQG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAA;IAEjB;;;;;;OAMG;IACH,kBAAkB,CAAC,EAAE,MAAM,CAAA;CAC5B,CAAA;AAED;;;;;GAKG;AACH,MAAM,MAAM,wBAAwB,GAAG;IACrC;;OAEG;IACH,IAAI,EAAE,MAAM,CAAA;IAEZ;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,iB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EAAE,MAAM,CAAC,CAAA;IAE7B;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAA;CAClB,CAAA"}
@@ -1,3 +1,5 @@
1
1
  export * from "./service";
2
2
  export * from "./common";
3
+ export * from "./provider";
4
+ export * from "./providers";
3
5
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/auth/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAA;AACzB,cAAc,UAAU,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/auth/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAA;AACzB,cAAc,UAAU,CAAA;AACxB,cAAc,YAAY,CAAA;AAC1B,cAAc,aAAa,CAAA"}
@@ -16,4 +16,6 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./service"), exports);
18
18
  __exportStar(require("./common"), exports);
19
+ __exportStar(require("./provider"), exports);
20
+ __exportStar(require("./providers"), exports);
19
21
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/auth/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,4CAAyB;AACzB,2CAAwB"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/auth/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,4CAAyB;AACzB,2CAAwB;AACxB,6CAA0B;AAC1B,8CAA2B"}
@@ -0,0 +1,19 @@
1
+ import { AuthIdentityDTO, AuthenticationInput, AuthenticationResponse, CreateAuthIdentityDTO } from "./common";
2
+ export interface AuthIdentityProviderService {
3
+ retrieve: (selector: {
4
+ entity_id: string;
5
+ provider: string;
6
+ }) => Promise<AuthIdentityDTO>;
7
+ create: (data: CreateAuthIdentityDTO) => Promise<AuthIdentityDTO>;
8
+ }
9
+ /**
10
+ * ## Overview
11
+ *
12
+ * Authentication provider interface for the auth module.
13
+ *
14
+ */
15
+ export interface IAuthProvider {
16
+ authenticate(data: AuthenticationInput, authIdentityProviderService: AuthIdentityProviderService): Promise<AuthenticationResponse>;
17
+ validateCallback(data: AuthenticationInput, authIdentityProviderService: AuthIdentityProviderService): Promise<AuthenticationResponse>;
18
+ }
19
+ //# sourceMappingURL=provider.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"provider.d.ts","sourceRoot":"","sources":["../../src/auth/provider.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,eAAe,EACf,mBAAmB,EACnB,sBAAsB,EACtB,qBAAqB,EACtB,MAAM,UAAU,CAAA;AAEjB,MAAM,WAAW,2BAA2B;IAE1C,QAAQ,EAAE,CAAC,QAAQ,EAAE;QACnB,SAAS,EAAE,MAAM,CAAA;QACjB,QAAQ,EAAE,MAAM,CAAA;KACjB,KAAK,OAAO,CAAC,eAAe,CAAC,CAAA;IAC9B,MAAM,EAAE,CAAC,IAAI,EAAE,qBAAqB,KAAK,OAAO,CAAC,eAAe,CAAC,CAAA;CAClE;AAED;;;;;GAKG;AACH,MAAM,WAAW,aAAa;IAC5B,YAAY,CACV,IAAI,EAAE,mBAAmB,EACzB,2BAA2B,EAAE,2BAA2B,GACvD,OAAO,CAAC,sBAAsB,CAAC,CAAA;IAClC,gBAAgB,CACd,IAAI,EAAE,mBAAmB,EACzB,2BAA2B,EAAE,2BAA2B,GACvD,OAAO,CAAC,sBAAsB,CAAC,CAAA;CACnC"}
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=provider.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"provider.js","sourceRoot":"","sources":["../../src/auth/provider.ts"],"names":[],"mappings":""}
@@ -0,0 +1,8 @@
1
+ export interface EmailPassAuthProviderOptions {
2
+ hashConfig?: {
3
+ logN: number;
4
+ r: number;
5
+ p: number;
6
+ };
7
+ }
8
+ //# sourceMappingURL=emailpass.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"emailpass.d.ts","sourceRoot":"","sources":["../../../src/auth/providers/emailpass.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,4BAA4B;IAC3C,UAAU,CAAC,EAAE;QACX,IAAI,EAAE,MAAM,CAAA;QACZ,CAAC,EAAE,MAAM,CAAA;QACT,CAAC,EAAE,MAAM,CAAA;KACV,CAAA;CACF"}
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=emailpass.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"emailpass.js","sourceRoot":"","sources":["../../../src/auth/providers/emailpass.ts"],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ export * from "./emailpass";
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/auth/providers/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAA"}
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./emailpass"), exports);
18
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/auth/providers/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,8CAA2B"}
@@ -34,7 +34,6 @@ export interface IAuthModuleService extends IModuleService {
34
34
  * headers: req.headers,
35
35
  * query: req.query,
36
36
  * body: req.body,
37
- * authScope: "admin",
38
37
  * protocol: req.protocol,
39
38
  * } as AuthenticationInput)
40
39
  * ```
@@ -68,7 +67,6 @@ export interface IAuthModuleService extends IModuleService {
68
67
  * headers: req.headers,
69
68
  * query: req.query,
70
69
  * body: req.body,
71
- * authScope: "admin",
72
70
  * protocol: req.protocol,
73
71
  * } as AuthenticationInput)
74
72
  * ```
@@ -89,16 +87,16 @@ export interface IAuthModuleService extends IModuleService {
89
87
  */
90
88
  retrieve(id: string, config?: FindConfig<AuthIdentityDTO>, sharedContext?: Context): Promise<AuthIdentityDTO>;
91
89
  /**
92
- * This method retrieves a paginated list of auth identitys based on optional filters and configuration.
90
+ * This method retrieves a paginated list of auth identities based on optional filters and configuration.
93
91
  *
94
- * @param {FilterableAuthIdentityProps} filters - The filters to apply on the retrieved auth identitys.
92
+ * @param {FilterableAuthIdentityProps} filters - The filters to apply on the retrieved auth identities.
95
93
  * @param {FindConfig<AuthIdentityDTO>} config - The configurations determining how the auth identity is retrieved. Its properties, such as `select` or `relations`, accept the
96
94
  * attributes or relations associated with a auth identity.
97
95
  * @param {Context} sharedContext - A context used to share resources, such as transaction manager, between the application and the module.
98
- * @returns {Promise<AuthIdentityDTO[]>} The list of auth identitys.
96
+ * @returns {Promise<AuthIdentityDTO[]>} The list of auth identities.
99
97
  *
100
98
  * @example
101
- * To retrieve a list of auth identitys using their IDs:
99
+ * To retrieve a list of auth identities using their IDs:
102
100
  *
103
101
  * ```ts
104
102
  * const authIdentities = await authModuleService.list({
@@ -122,16 +120,16 @@ export interface IAuthModuleService extends IModuleService {
122
120
  */
123
121
  list(filters?: FilterableAuthIdentityProps, config?: FindConfig<AuthIdentityDTO>, sharedContext?: Context): Promise<AuthIdentityDTO[]>;
124
122
  /**
125
- * This method retrieves a paginated list of auth identitys along with the total count of available auth identitys satisfying the provided filters.
123
+ * This method retrieves a paginated list of auth identities along with the total count of available auth identities satisfying the provided filters.
126
124
  *
127
- * @param {FilterableAuthIdentityProps} filters - The filters to apply on the retrieved auth identitys.
125
+ * @param {FilterableAuthIdentityProps} filters - The filters to apply on the retrieved auth identities.
128
126
  * @param {FindConfig<AuthIdentityDTO>} config - The configurations determining how the auth identity is retrieved. Its properties, such as `select` or `relations`, accept the
129
127
  * attributes or relations associated with a auth identity.
130
128
  * @param {Context} sharedContext - A context used to share resources, such as transaction manager, between the application and the module.
131
- * @returns {Promise<[AuthIdentityDTO[], number]>} The list of auth identitys along with their total count.
129
+ * @returns {Promise<[AuthIdentityDTO[], number]>} The list of auth identities along with their total count.
132
130
  *
133
131
  * @example
134
- * To retrieve a list of auth identitys using their IDs:
132
+ * To retrieve a list of auth identities using their IDs:
135
133
  *
136
134
  * ```ts
137
135
  * const [authIdentities, count] =
@@ -157,23 +155,21 @@ export interface IAuthModuleService extends IModuleService {
157
155
  */
158
156
  listAndCount(filters?: FilterableAuthIdentityProps, config?: FindConfig<AuthIdentityDTO>, sharedContext?: Context): Promise<[AuthIdentityDTO[], number]>;
159
157
  /**
160
- * This method creates auth identitys.
158
+ * This method creates auth identities.
161
159
  *
162
- * @param {CreateAuthIdentityDTO[]} data - The auth identitys to be created.
160
+ * @param {CreateAuthIdentityDTO[]} data - The auth identities to be created.
163
161
  * @param {Context} sharedContext - A context used to share resources, such as transaction manager, between the application and the module.
164
- * @returns {Promise<AuthIdentityDTO[]>} The created auth identitys.
162
+ * @returns {Promise<AuthIdentityDTO[]>} The created auth identities.
165
163
  *
166
164
  * @example
167
165
  * const authIdentities = await authModuleService.create([
168
166
  * {
169
167
  * provider: "emailpass",
170
168
  * entity_id: "user@example.com",
171
- * scope: "admin",
172
169
  * },
173
170
  * {
174
171
  * provider: "google",
175
172
  * entity_id: "user@gmail.com",
176
- * scope: "email profile",
177
173
  * },
178
174
  * ])
179
175
  */
@@ -189,14 +185,13 @@ export interface IAuthModuleService extends IModuleService {
189
185
  * const authIdentity = await authModuleService.create({
190
186
  * provider: "emailpass",
191
187
  * entity_id: "user@example.com",
192
- * scope: "admin",
193
188
  * })
194
189
  */
195
190
  create(data: CreateAuthIdentityDTO, sharedContext?: Context): Promise<AuthIdentityDTO>;
196
191
  /**
197
192
  * This method updates existing auths.
198
193
  *
199
- * @param {UpdateAuthIdentityDTO[]} data - The attributes to update in the auth identitys.
194
+ * @param {UpdateAuthIdentityDTO[]} data - The attributes to update in the auth identities.
200
195
  * @param {Context} sharedContext - A context used to share resources, such as transaction manager, between the application and the module.
201
196
  * @returns {Promise<AuthIdentityDTO[]>} The updated auths.
202
197
  *
@@ -204,9 +199,6 @@ export interface IAuthModuleService extends IModuleService {
204
199
  * const authIdentities = await authModuleService.update([
205
200
  * {
206
201
  * id: "authusr_123",
207
- * app_metadata: {
208
- * test: true,
209
- * },
210
202
  * },
211
203
  * ])
212
204
  */
@@ -221,9 +213,6 @@ export interface IAuthModuleService extends IModuleService {
221
213
  * @example
222
214
  * const authIdentity = await authModuleService.update({
223
215
  * id: "authusr_123",
224
- * app_metadata: {
225
- * test: true,
226
- * },
227
216
  * })
228
217
  */
229
218
  update(data: UpdateAuthIdentityDTO, sharedContext?: Context): Promise<AuthIdentityDTO>;
@@ -1 +1 @@
1
- {"version":3,"file":"service.d.ts","sourceRoot":"","sources":["../../src/auth/service.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,eAAe,EACf,mBAAmB,EACnB,sBAAsB,EACtB,qBAAqB,EACrB,2BAA2B,EAC3B,qBAAqB,EACtB,MAAM,UAAU,CAAA;AACjB,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAA;AAC3C,OAAO,EAAE,UAAU,EAAE,MAAM,WAAW,CAAA;AACtC,OAAO,EAAE,cAAc,EAAE,MAAM,gB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qBAAqB,EAC3B,aAAa,CAAC,EAAE,OAAO,GACtB,OAAO,CAAC,eAAe,CAAC,CAAA;IAE3B;;;;;;;;;OASG;IACH,MAAM,CAAC,GAAG,EAAE,MAAM,EAAE,EAAE,aAAa,CAAC,EAAE,OAAO,GAAG,OAAO,CAAC,IAAI,CAAC,CAAA;CAC9D"}
@@ -684,6 +684,34 @@ export type ProjectConfigOptions = {
684
684
  * ```
685
685
  */
686
686
  adminCors: string;
687
+ /**
688
+ * Optionally you can specify the supported authentication providers per actor type (such as user, customer, or any custom actors).
689
+ * For example, you only want to allow SSO logins for `users` to the admin, while you want to allow email/password logins for `customers` to the storefront.
690
+ *
691
+ * `authMethodsPerActor` is a a map where the actor type (eg. 'user') is the key, and an array of supported auth providers as the value.
692
+ *
693
+ *
694
+ * @example
695
+ * Some example values of common use cases:
696
+ *
697
+ * Then, set the configuration in `medusa-config.js`:
698
+ *
699
+ * ```js title="medusa-config.js"
700
+ * module.exports = {
701
+ * projectConfig: {
702
+ * http: {
703
+ * authMethodsPerActor: {
704
+ * user: ['sso'],
705
+ * customer: ["emailpass", "google"]
706
+ * },
707
+ * },
708
+ * // ...
709
+ * },
710
+ * // ...
711
+ * }
712
+ * ```
713
+ */
714
+ authMethodsPerActor: Record<string, string[]>;
687
715
  };
688
716
  };
689
717
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"config-module.d.ts","sourceRoot":"","sources":["../../src/common/config-module.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,yBAAyB,EACzB,yBAAyB,EAC1B,MAAM,gBAAgB,CAAA;AAEvB,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,SAAS,CAAA;AAC3C,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,SAAS,CAAA;AAC5C,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,MAAM,CAAA;AAExC;;;;GAIG;AACH,MAAM,MAAM,YAAY,GAAG;IACzB;;;OAGG;IACH,OAAO,CAAC,EAAE,OAAO,CAAA;I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AE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;IAChC,OAAO,EAAE,MAAM,CAAA;CAChB,CAAA"}
1
+ {"version":3,"file":"config-module.d.ts","sourceRoot":"","sources":["../../src/common/config-module.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,yBAAyB,EACzB,yBAAyB,EAC1B,MAAM,gBAAgB,CAAA;AAEvB,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,SAAS,CAAA;AAC3C,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,SAAS,CAAA;AAC5C,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,MAAM,CAAA;AAExC;;;;GAIG;AACH,MAAM,MAAM,YAAY,GAAG;IACzB;;;OAGG;IACH,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB;;;;;;;;OAQG;IACH,IAAI,CAAC,EAAE,IAAI,MAAM,EAAE,CAAA;IACnB;;;OAGG;IACH,MAAM,CAAC,EAAE,MAAM,CAAA;IACf;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB;;;;;OAKG;IACH,IAAI,CAAC,EAAE,CAAC,MAAM,EAAE,YAAY,KAAK,YAAY,CAAA;CAC9C,CAAA;AAED;;;;GAIG;AACH,KAAK,cAAc,GAAG;IACpB;;;OAGG;IACH,IAAI,CAAC,EAAE,MAAM,CAAA;IACb;;;OAGG;IACH,MAAM,CAAC,EAAE,OAAO,CAAA;IAChB;;;OAGG;IACH,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB;;;OAGG;IACH,iBAAiB,CAAC,EAAE,OAAO,CAAA;IAC3B;;;OAGG;IACH,MAAM,CAAC,EAAE,MAAM,CAAA;IACf;;;OAGG;IACH,GAAG,CAAC,EAAE,MAAM,CAAA;CACb,CAAA;AAED;;;;GAIG;AACH,MAAM,MAAM,sBAAsB,GAAG;IACnC;;OAEG;IACH,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB;;;OAGG;IACH,KAAK,CAAC,EAAE,MAAM,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;;;;;;;;;;;;;;;;;;;;;;;;OA8BG;IACH,OAAO,EAAE,CACL;QACE,OAAO,EAAE,MAAM,CAAA;QACf,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;KACjC,GACD,MAAM,CACT,EAAE,CAAA;IAEH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAoCG;IACH,OAAO,CAAC,EAAE,MAAM,CACd,MAAM,EACN,OAAO,GAAG,OAAO,CAAC,yBAAyB,GAAG,yBAAyB,CAAC,CACzE,CAAA;IAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA4BG;IACH,YAAY,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,GAAG,MAAM,CAAC,CAAA;CAC/C,CAAA;AAED,MAAM,MAAM,aAAa,GAAG;IAC1B,OAAO,EAAE,MAAM,CAAA;IACf,IAAI,EAAE,MAAM,CAAA;IACZ,EAAE,EAAE,MAAM,CAAA;IACV,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;IAChC,OAAO,EAAE,MAAM,CAAA;CAChB,CAAA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@medusajs/types",
3
- "version": "1.12.0-snapshot-20240523153451",
3
+ "version": "1.12.0-snapshot-20240524064838",
4
4
  "description": "Medusa Types definition",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",