@wix/identity 1.0.0

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.
Files changed (31) hide show
  1. package/build/cjs/index.d.ts +1 -0
  2. package/build/cjs/index.js +24 -0
  3. package/build/cjs/index.js.map +1 -0
  4. package/build/cjs/src/identity-oauth-v1-refresh-token.http.d.ts +8 -0
  5. package/build/cjs/src/identity-oauth-v1-refresh-token.http.js +105 -0
  6. package/build/cjs/src/identity-oauth-v1-refresh-token.http.js.map +1 -0
  7. package/build/cjs/src/identity-oauth-v1-refresh-token.public.d.ts +7 -0
  8. package/build/cjs/src/identity-oauth-v1-refresh-token.public.js +29 -0
  9. package/build/cjs/src/identity-oauth-v1-refresh-token.public.js.map +1 -0
  10. package/build/cjs/src/identity-oauth-v1-refresh-token.types.d.ts +113 -0
  11. package/build/cjs/src/identity-oauth-v1-refresh-token.types.js +3 -0
  12. package/build/cjs/src/identity-oauth-v1-refresh-token.types.js.map +1 -0
  13. package/build/cjs/src/identity-oauth-v1-refresh-token.universal.d.ts +175 -0
  14. package/build/cjs/src/identity-oauth-v1-refresh-token.universal.js +261 -0
  15. package/build/cjs/src/identity-oauth-v1-refresh-token.universal.js.map +1 -0
  16. package/build/es/index.d.ts +1 -0
  17. package/build/es/index.js +2 -0
  18. package/build/es/index.js.map +1 -0
  19. package/build/es/src/identity-oauth-v1-refresh-token.http.d.ts +8 -0
  20. package/build/es/src/identity-oauth-v1-refresh-token.http.js +98 -0
  21. package/build/es/src/identity-oauth-v1-refresh-token.http.js.map +1 -0
  22. package/build/es/src/identity-oauth-v1-refresh-token.public.d.ts +7 -0
  23. package/build/es/src/identity-oauth-v1-refresh-token.public.js +22 -0
  24. package/build/es/src/identity-oauth-v1-refresh-token.public.js.map +1 -0
  25. package/build/es/src/identity-oauth-v1-refresh-token.types.d.ts +113 -0
  26. package/build/es/src/identity-oauth-v1-refresh-token.types.js +2 -0
  27. package/build/es/src/identity-oauth-v1-refresh-token.types.js.map +1 -0
  28. package/build/es/src/identity-oauth-v1-refresh-token.universal.d.ts +175 -0
  29. package/build/es/src/identity-oauth-v1-refresh-token.universal.js +235 -0
  30. package/build/es/src/identity-oauth-v1-refresh-token.universal.js.map +1 -0
  31. package/package.json +37 -0
@@ -0,0 +1,175 @@
1
+ export declare const __debug: {
2
+ verboseLogging: {
3
+ on: () => boolean;
4
+ off: () => boolean;
5
+ };
6
+ };
7
+ export interface RefreshToken {
8
+ token?: string;
9
+ }
10
+ export interface AuthorizeRequest {
11
+ /** Tells the authorization server which grant to execute. */
12
+ responseType?: string;
13
+ /** The ID of the application that asks for authorization. */
14
+ clientId?: string;
15
+ /** Holds a URL. A successful response from this endpoint results in a redirect to this URL. */
16
+ redirectUri?: string | null;
17
+ /** A list of scopes that the application requires. */
18
+ scope?: Scope;
19
+ /** An opaque value, used for security purposes. If this request parameter is set in the request, then it is returned to the application as part of the redirect_uri. */
20
+ state?: string;
21
+ /** (Optional) How the result of the authorization request is formatted */
22
+ responseMode?: string | null;
23
+ /** PKCE hashed code */
24
+ codeChallenge?: string | null;
25
+ /** PKCE hashing method */
26
+ codeChallengeMethod?: string | null;
27
+ /** Current client session */
28
+ sessionToken?: string | null;
29
+ }
30
+ export interface Scope {
31
+ /** A list of permissions that the application requires. Empty list means the default list of scopes. */
32
+ ids?: string[];
33
+ }
34
+ export interface RawHttpResponse {
35
+ body?: Uint8Array;
36
+ statusCode?: number | null;
37
+ headers?: HeadersEntry[];
38
+ }
39
+ export interface HeadersEntry {
40
+ key?: string;
41
+ value?: string;
42
+ }
43
+ export interface TokenRequest extends TokenRequestGrantTypeOneOf {
44
+ /** Authorization code given at the authorize endpoint. */
45
+ authorizationCode?: AuthorizationCode;
46
+ /** Authorization code given at the authorize endpoint with the PKCE extention. */
47
+ pkce?: PKCE;
48
+ /** Device code given at the device code endpoint. */
49
+ deviceCode?: DeviceCode;
50
+ /** Refresh Token that was issued by this service beforehand. */
51
+ refreshToken?: RefreshToken;
52
+ /** Client credentials for authenticating a client */
53
+ clientCredentials?: ClientCredentials;
54
+ /** Granting a pre authenticated token for basic access. */
55
+ preAuthenticated?: PreAuthenticated;
56
+ }
57
+ /** @oneof */
58
+ export interface TokenRequestGrantTypeOneOf {
59
+ /** Authorization code given at the authorize endpoint. */
60
+ authorizationCode?: AuthorizationCode;
61
+ /** Authorization code given at the authorize endpoint with the PKCE extention. */
62
+ pkce?: PKCE;
63
+ /** Device code given at the device code endpoint. */
64
+ deviceCode?: DeviceCode;
65
+ /** Refresh Token that was issued by this service beforehand. */
66
+ refreshToken?: RefreshToken;
67
+ /** Client credentials for authenticating a client */
68
+ clientCredentials?: ClientCredentials;
69
+ /** Granting a pre authenticated token for basic access. */
70
+ preAuthenticated?: PreAuthenticated;
71
+ }
72
+ export interface AuthorizationCode {
73
+ code?: string;
74
+ }
75
+ export interface PKCE {
76
+ authorizationCode?: AuthorizationCode;
77
+ /** PKCE code */
78
+ code?: string | null;
79
+ }
80
+ export interface DeviceCode {
81
+ deviceCode?: string;
82
+ }
83
+ export interface ClientCredentials {
84
+ }
85
+ export interface PreAuthenticated {
86
+ clientId?: string;
87
+ }
88
+ export interface TokenResponse {
89
+ accessToken?: AccessToken;
90
+ refreshToken?: RefreshToken;
91
+ }
92
+ export interface AccessToken {
93
+ /** The access token string as issued by the authorization server. */
94
+ token?: string;
95
+ }
96
+ export interface DeviceCodeRequest {
97
+ /** The ID of the application that asks for authorization. */
98
+ clientId?: string;
99
+ /** A list of permissions that the application requires. Empty list means the default list of scopes. */
100
+ scope?: Scope;
101
+ }
102
+ export interface DeviceCodeResponse {
103
+ /** is the unique code for the device. When the user goes to the verification_uri in their browser-based device, this code will be bound to their session. */
104
+ deviceCode?: string;
105
+ /** contains the code that should be input at the verification_uri to authorize the device. */
106
+ userCode?: string;
107
+ /** contains the URL the user should visit to authorize the device. */
108
+ verificationUri?: string;
109
+ /** indicates the lifetime (in seconds) of the device_code and user_code. */
110
+ expiresIn?: number;
111
+ /** indicates the interval (in seconds) at which the app should poll the token URL to request a token. */
112
+ interval?: number;
113
+ }
114
+ export interface DeviceVerifyRequest {
115
+ /** User code representing a currently authorizing device. */
116
+ userCode?: string;
117
+ }
118
+ export interface DeviceVerifyResponse {
119
+ }
120
+ /** @public */
121
+ export declare function authorize(options?: AuthorizeOptions): Promise<RawHttpResponse>;
122
+ export interface AuthorizeOptions {
123
+ /** Tells the authorization server which grant to execute. */
124
+ responseType?: string;
125
+ /** The ID of the application that asks for authorization. */
126
+ clientId?: string;
127
+ /** Holds a URL. A successful response from this endpoint results in a redirect to this URL. */
128
+ redirectUri?: string | null;
129
+ /** A list of scopes that the application requires. */
130
+ scope?: Scope;
131
+ /** An opaque value, used for security purposes. If this request parameter is set in the request, then it is returned to the application as part of the redirect_uri. */
132
+ state?: string;
133
+ /** (Optional) How the result of the authorization request is formatted */
134
+ responseMode?: string | null;
135
+ /** PKCE hashed code */
136
+ codeChallenge?: string | null;
137
+ /** PKCE hashing method */
138
+ codeChallengeMethod?: string | null;
139
+ /** Current client session */
140
+ sessionToken?: string | null;
141
+ }
142
+ /** @public */
143
+ export declare function token(options?: TokenOptions): Promise<TokenResponse>;
144
+ export interface TokenOptions {
145
+ /** Authorization code given at the authorize endpoint. */
146
+ authorizationCode?: AuthorizationCode;
147
+ /** Authorization code given at the authorize endpoint with the PKCE extention. */
148
+ pkce?: PKCE;
149
+ /** Device code given at the device code endpoint. */
150
+ deviceCode?: DeviceCode;
151
+ /** Refresh Token that was issued by this service beforehand. */
152
+ refreshToken?: RefreshToken;
153
+ /** Client credentials for authenticating a client */
154
+ clientCredentials?: ClientCredentials;
155
+ /** Granting a pre authenticated token for basic access. */
156
+ preAuthenticated?: PreAuthenticated;
157
+ }
158
+ /**
159
+ * this endpoint serves the Device Authorization Flow as described in https://www.rfc-editor.org/rfc/pdfrfc/rfc8628.txt.pdf
160
+ * @public */
161
+ export declare function deviceCode(options?: DeviceCodeOptions): Promise<DeviceCodeResponse>;
162
+ export interface DeviceCodeOptions {
163
+ /** The ID of the application that asks for authorization. */
164
+ clientId?: string;
165
+ /** A list of permissions that the application requires. Empty list means the default list of scopes. */
166
+ scope?: Scope;
167
+ }
168
+ /**
169
+ * this endpoint serves the Device Authorization Flow as described in https://www.rfc-editor.org/rfc/pdfrfc/rfc8628.txt.pdf
170
+ * @public */
171
+ export declare function deviceVerify(options?: DeviceVerifyOptions): Promise<void>;
172
+ export interface DeviceVerifyOptions {
173
+ /** User code representing a currently authorizing device. */
174
+ userCode?: string;
175
+ }
@@ -0,0 +1,235 @@
1
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
2
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
3
+ return new (P || (P = Promise))(function (resolve, reject) {
4
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
5
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
6
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
7
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
8
+ });
9
+ };
10
+ import { serializer, transformError } from '@wix/metro-runtime/velo';
11
+ import * as ambassadorWixIdentityOauthV1RefreshToken from './identity-oauth-v1-refresh-token.http';
12
+ let __verbose = false;
13
+ function __log(...args) {
14
+ __verbose && console.log(...args);
15
+ }
16
+ function __inspect(obj) {
17
+ return obj;
18
+ }
19
+ export const __debug = {
20
+ verboseLogging: {
21
+ on: () => (__verbose = true),
22
+ off: () => (__verbose = false),
23
+ },
24
+ };
25
+ const _toVeloEntity = '$';
26
+ const _fromVeloEntity = '$';
27
+ const _authorizeRequest = {};
28
+ const _deviceCodeRequest = {};
29
+ const _deviceCodeResponse = {};
30
+ const _deviceVerifyRequest = {};
31
+ const _deviceVerifyResponse = {};
32
+ const _rawHttpResponse = {};
33
+ const _tokenRequest = {};
34
+ const _tokenResponse = {};
35
+ /** @public */
36
+ export function authorize(options) {
37
+ var _a, _b, _c;
38
+ return __awaiter(this, arguments, void 0, function* () {
39
+ const requestTransformation = {
40
+ responseType: '$[0].responseType',
41
+ clientId: '$[0].clientId',
42
+ redirectUri: '$[0].redirectUri',
43
+ scope: '$[0].scope',
44
+ state: '$[0].state',
45
+ responseMode: '$[0].responseMode',
46
+ codeChallenge: '$[0].codeChallenge',
47
+ codeChallengeMethod: '$[0].codeChallengeMethod',
48
+ sessionToken: '$[0].sessionToken',
49
+ };
50
+ const responseTransformation = '$';
51
+ // @ts-ignore
52
+ const { httpClient, sideEffects } = arguments[1];
53
+ const { toAmbassadorRequest } = serializer({
54
+ rootSchema: _authorizeRequest,
55
+ depSchemas: {},
56
+ fqdnTransformation: {
57
+ paths: [],
58
+ transformation: _fromVeloEntity,
59
+ },
60
+ customTransformation: requestTransformation,
61
+ });
62
+ const { fromJSON } = serializer({
63
+ rootSchema: _rawHttpResponse,
64
+ depSchemas: {},
65
+ fqdnTransformation: {
66
+ paths: [],
67
+ transformation: _toVeloEntity,
68
+ },
69
+ customTransformation: responseTransformation,
70
+ });
71
+ const payload = toAmbassadorRequest([options]);
72
+ const reqOpts = ambassadorWixIdentityOauthV1RefreshToken.authorize(payload);
73
+ __log(`"Authorize" sending request with: ${__inspect(reqOpts)}`);
74
+ (_a = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onSiteCall) === null || _a === void 0 ? void 0 : _a.call(sideEffects);
75
+ try {
76
+ const result = yield httpClient.request(reqOpts);
77
+ (_b = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onSuccess) === null || _b === void 0 ? void 0 : _b.call(sideEffects, result);
78
+ return fromJSON(result.data);
79
+ }
80
+ catch (err) {
81
+ const transformedError = transformError(err, requestTransformation, [
82
+ 'options',
83
+ ]);
84
+ (_c = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onError) === null || _c === void 0 ? void 0 : _c.call(sideEffects, err);
85
+ throw transformedError;
86
+ }
87
+ });
88
+ }
89
+ /** @public */
90
+ export function token(options) {
91
+ var _a, _b, _c;
92
+ return __awaiter(this, arguments, void 0, function* () {
93
+ const requestTransformation = {
94
+ authorizationCode: '$[0].authorizationCode',
95
+ pkce: '$[0].pkce',
96
+ deviceCode: '$[0].deviceCode',
97
+ refreshToken: '$[0].refreshToken',
98
+ clientCredentials: '$[0].clientCredentials',
99
+ preAuthenticated: '$[0].preAuthenticated',
100
+ };
101
+ const responseTransformation = '$';
102
+ // @ts-ignore
103
+ const { httpClient, sideEffects } = arguments[1];
104
+ const { toAmbassadorRequest } = serializer({
105
+ rootSchema: _tokenRequest,
106
+ depSchemas: {},
107
+ fqdnTransformation: {
108
+ paths: [...['refreshToken']],
109
+ transformation: _fromVeloEntity,
110
+ },
111
+ customTransformation: requestTransformation,
112
+ });
113
+ const { fromJSON } = serializer({
114
+ rootSchema: _tokenResponse,
115
+ depSchemas: {},
116
+ fqdnTransformation: {
117
+ paths: [...['refreshToken']],
118
+ transformation: _toVeloEntity,
119
+ },
120
+ customTransformation: responseTransformation,
121
+ });
122
+ const payload = toAmbassadorRequest([options]);
123
+ const reqOpts = ambassadorWixIdentityOauthV1RefreshToken.token(payload);
124
+ __log(`"Token" sending request with: ${__inspect(reqOpts)}`);
125
+ (_a = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onSiteCall) === null || _a === void 0 ? void 0 : _a.call(sideEffects);
126
+ try {
127
+ const result = yield httpClient.request(reqOpts);
128
+ (_b = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onSuccess) === null || _b === void 0 ? void 0 : _b.call(sideEffects, result);
129
+ return fromJSON(result.data);
130
+ }
131
+ catch (err) {
132
+ const transformedError = transformError(err, requestTransformation, [
133
+ 'options',
134
+ ]);
135
+ (_c = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onError) === null || _c === void 0 ? void 0 : _c.call(sideEffects, err);
136
+ throw transformedError;
137
+ }
138
+ });
139
+ }
140
+ /**
141
+ * this endpoint serves the Device Authorization Flow as described in https://www.rfc-editor.org/rfc/pdfrfc/rfc8628.txt.pdf
142
+ * @public */
143
+ export function deviceCode(options) {
144
+ var _a, _b, _c;
145
+ return __awaiter(this, arguments, void 0, function* () {
146
+ const requestTransformation = {
147
+ clientId: '$[0].clientId',
148
+ scope: '$[0].scope',
149
+ };
150
+ const responseTransformation = '$';
151
+ // @ts-ignore
152
+ const { httpClient, sideEffects } = arguments[1];
153
+ const { toAmbassadorRequest } = serializer({
154
+ rootSchema: _deviceCodeRequest,
155
+ depSchemas: {},
156
+ fqdnTransformation: {
157
+ paths: [],
158
+ transformation: _fromVeloEntity,
159
+ },
160
+ customTransformation: requestTransformation,
161
+ });
162
+ const { fromJSON } = serializer({
163
+ rootSchema: _deviceCodeResponse,
164
+ depSchemas: {},
165
+ fqdnTransformation: {
166
+ paths: [],
167
+ transformation: _toVeloEntity,
168
+ },
169
+ customTransformation: responseTransformation,
170
+ });
171
+ const payload = toAmbassadorRequest([options]);
172
+ const reqOpts = ambassadorWixIdentityOauthV1RefreshToken.deviceCode(payload);
173
+ __log(`"DeviceCode" sending request with: ${__inspect(reqOpts)}`);
174
+ (_a = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onSiteCall) === null || _a === void 0 ? void 0 : _a.call(sideEffects);
175
+ try {
176
+ const result = yield httpClient.request(reqOpts);
177
+ (_b = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onSuccess) === null || _b === void 0 ? void 0 : _b.call(sideEffects, result);
178
+ return fromJSON(result.data);
179
+ }
180
+ catch (err) {
181
+ const transformedError = transformError(err, requestTransformation, [
182
+ 'options',
183
+ ]);
184
+ (_c = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onError) === null || _c === void 0 ? void 0 : _c.call(sideEffects, err);
185
+ throw transformedError;
186
+ }
187
+ });
188
+ }
189
+ /**
190
+ * this endpoint serves the Device Authorization Flow as described in https://www.rfc-editor.org/rfc/pdfrfc/rfc8628.txt.pdf
191
+ * @public */
192
+ export function deviceVerify(options) {
193
+ var _a, _b, _c;
194
+ return __awaiter(this, arguments, void 0, function* () {
195
+ const requestTransformation = { userCode: '$[0].userCode' };
196
+ const responseTransformation = '$';
197
+ // @ts-ignore
198
+ const { httpClient, sideEffects } = arguments[1];
199
+ const { toAmbassadorRequest } = serializer({
200
+ rootSchema: _deviceVerifyRequest,
201
+ depSchemas: {},
202
+ fqdnTransformation: {
203
+ paths: [],
204
+ transformation: _fromVeloEntity,
205
+ },
206
+ customTransformation: requestTransformation,
207
+ });
208
+ const { fromJSON } = serializer({
209
+ rootSchema: _deviceVerifyResponse,
210
+ depSchemas: {},
211
+ fqdnTransformation: {
212
+ paths: [],
213
+ transformation: _toVeloEntity,
214
+ },
215
+ customTransformation: responseTransformation,
216
+ });
217
+ const payload = toAmbassadorRequest([options]);
218
+ const reqOpts = ambassadorWixIdentityOauthV1RefreshToken.deviceVerify(payload);
219
+ __log(`"DeviceVerify" sending request with: ${__inspect(reqOpts)}`);
220
+ (_a = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onSiteCall) === null || _a === void 0 ? void 0 : _a.call(sideEffects);
221
+ try {
222
+ const result = yield httpClient.request(reqOpts);
223
+ (_b = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onSuccess) === null || _b === void 0 ? void 0 : _b.call(sideEffects, result);
224
+ return fromJSON(result.data);
225
+ }
226
+ catch (err) {
227
+ const transformedError = transformError(err, requestTransformation, [
228
+ 'options',
229
+ ]);
230
+ (_c = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onError) === null || _c === void 0 ? void 0 : _c.call(sideEffects, err);
231
+ throw transformedError;
232
+ }
233
+ });
234
+ }
235
+ //# sourceMappingURL=identity-oauth-v1-refresh-token.universal.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"identity-oauth-v1-refresh-token.universal.js","sourceRoot":"","sources":["../../../src/identity-oauth-v1-refresh-token.universal.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,UAAU,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAErE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oBAAoB,EAAE,qBAAqB;SAC5C,CAAC,CAAC;QAEH,MAAM,EAAE,QAAQ,EAAE,GAAG,UAAU,CAAC;YAC9B,UAAU,EAAE,qBAAqB;YACjC,UAAU,EAAE,EAAE;YACd,kBAAkB,EAAE;gBAClB,KAAK,EAAE,EAAE;gBACT,cAAc,EAAE,aAAa;aAC9B;YACD,oBAAoB,EAAE,sBAAsB;SAC7C,CAAC,CAAC;QAEH,MAAM,OAAO,GAAG,mBAAmB,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC;QAE/C,MAAM,OAAO,GACX,wCAAwC,CAAC,YAAY,CAAC,OAAO,CAAC,CAAC;QAEjE,KAAK,CAAC,wCAAwC,SAAS,CAAC,OAAO,CAAC,EAAE,CAAC,CAAC;QAEpE,MAAA,WAAW,aAAX,WAAW,uBAAX,WAAW,CAAE,UAAU,+CAAvB,WAAW,CAAgB,CAAC;QAC5B,IAAI;YACF,MAAM,MAAM,GAAG,MAAM,UAAU,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC;YACjD,MAAA,WAAW,aAAX,WAAW,uBAAX,WAAW,CAAE,SAAS,+CAAtB,WAAW,EAAc,MAAM,CAAC,CAAC;YAEjC,OAAO,QAAQ,CAAC,MAAM,CAAC,IAAI,CAAQ,CAAC;SACrC;QAAC,OAAO,GAAQ,EAAE;YACjB,MAAM,gBAAgB,GAAG,cAAc,CAAC,GAAG,EAAE,qBAAqB,EAAE;gBAClE,SAAS;aACV,CAAC,CAAC;YACH,MAAA,WAAW,aAAX,WAAW,uBAAX,WAAW,CAAE,OAAO,+CAApB,WAAW,EAAY,GAAG,CAAC,CAAC;YAE5B,MAAM,gBAAgB,CAAC;SACxB;;CACF"}
package/package.json ADDED
@@ -0,0 +1,37 @@
1
+ {
2
+ "name": "@wix/identity",
3
+ "version": "1.0.0",
4
+ "publishConfig": {
5
+ "registry": "https://registry.npmjs.org/",
6
+ "access": "public"
7
+ },
8
+ "sideEffects": false,
9
+ "module": "build/es/index.js",
10
+ "main": "build/cjs/index.js",
11
+ "typings": "./build/cjs/index.d.ts",
12
+ "files": [
13
+ "build",
14
+ "frontend/package.json"
15
+ ],
16
+ "dependencies": {
17
+ "@wix/metro-runtime": "^1.0.0",
18
+ "@wix/sdk-types": "^1.0.0",
19
+ "@wix/motion-edm-autogen-query-wrapper": "^1.0.0"
20
+ },
21
+ "devDependencies": {
22
+ "@wix/typescript-to-service-json": "^1.0.0"
23
+ },
24
+ "scripts": {
25
+ "build": "tsc -b tsconfig.json tsconfig.esm.json",
26
+ "autodocs": "ts-to-sj",
27
+ "posttest": "npm run autodocs",
28
+ "test": ":"
29
+ },
30
+ "wix": {
31
+ "artifact": {
32
+ "artifactId": "identity-public-sdk-autogen",
33
+ "groupId": "com.wixpress.public-sdk-autogen"
34
+ }
35
+ },
36
+ "falconPackageHash": "bb56a618c79547caaa6e21a962768dd106cb512b206ac93a41f7f906"
37
+ }