@wix/auto_sdk_identity_oauth 1.0.3 → 1.0.4

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 (134) hide show
  1. package/build/{cjs/src/identity-oauth-v1-refresh-token-oauth.types.d.ts → identity-oauth-v1-refresh-token-oauth.universal-BzqSyI-5.d.mts} +52 -34
  2. package/build/{internal/cjs/src/identity-oauth-v1-refresh-token-oauth.types.d.ts → identity-oauth-v1-refresh-token-oauth.universal-BzqSyI-5.d.ts} +52 -34
  3. package/build/index.d.mts +37 -0
  4. package/build/index.d.ts +37 -0
  5. package/build/index.js +259 -0
  6. package/build/index.js.map +1 -0
  7. package/build/index.mjs +233 -0
  8. package/build/index.mjs.map +1 -0
  9. package/build/internal/{es/src/identity-oauth-v1-refresh-token-oauth.types.d.ts → identity-oauth-v1-refresh-token-oauth.universal-BzqSyI-5.d.mts} +52 -34
  10. package/build/{es/src/identity-oauth-v1-refresh-token-oauth.types.d.ts → internal/identity-oauth-v1-refresh-token-oauth.universal-BzqSyI-5.d.ts} +52 -34
  11. package/build/internal/index.d.mts +37 -0
  12. package/build/internal/index.d.ts +37 -0
  13. package/build/internal/index.js +259 -0
  14. package/build/internal/index.js.map +1 -0
  15. package/build/internal/index.mjs +233 -0
  16. package/build/internal/index.mjs.map +1 -0
  17. package/build/internal/meta.d.mts +79 -0
  18. package/build/internal/meta.d.ts +79 -0
  19. package/build/internal/meta.js +182 -0
  20. package/build/internal/meta.js.map +1 -0
  21. package/build/internal/meta.mjs +154 -0
  22. package/build/internal/meta.mjs.map +1 -0
  23. package/build/meta.d.mts +79 -0
  24. package/build/meta.d.ts +79 -0
  25. package/build/meta.js +182 -0
  26. package/build/meta.js.map +1 -0
  27. package/build/meta.mjs +154 -0
  28. package/build/meta.mjs.map +1 -0
  29. package/package.json +13 -12
  30. package/build/cjs/index.d.ts +0 -1
  31. package/build/cjs/index.js +0 -18
  32. package/build/cjs/index.js.map +0 -1
  33. package/build/cjs/index.typings.d.ts +0 -1
  34. package/build/cjs/index.typings.js +0 -18
  35. package/build/cjs/index.typings.js.map +0 -1
  36. package/build/cjs/meta.d.ts +0 -1
  37. package/build/cjs/meta.js +0 -18
  38. package/build/cjs/meta.js.map +0 -1
  39. package/build/cjs/src/identity-oauth-v1-refresh-token-oauth.context.d.ts +0 -6
  40. package/build/cjs/src/identity-oauth-v1-refresh-token-oauth.context.js +0 -10
  41. package/build/cjs/src/identity-oauth-v1-refresh-token-oauth.context.js.map +0 -1
  42. package/build/cjs/src/identity-oauth-v1-refresh-token-oauth.http.d.ts +0 -21
  43. package/build/cjs/src/identity-oauth-v1-refresh-token-oauth.http.js +0 -134
  44. package/build/cjs/src/identity-oauth-v1-refresh-token-oauth.http.js.map +0 -1
  45. package/build/cjs/src/identity-oauth-v1-refresh-token-oauth.meta.d.ts +0 -14
  46. package/build/cjs/src/identity-oauth-v1-refresh-token-oauth.meta.js +0 -66
  47. package/build/cjs/src/identity-oauth-v1-refresh-token-oauth.meta.js.map +0 -1
  48. package/build/cjs/src/identity-oauth-v1-refresh-token-oauth.public.d.ts +0 -34
  49. package/build/cjs/src/identity-oauth-v1-refresh-token-oauth.public.js +0 -20
  50. package/build/cjs/src/identity-oauth-v1-refresh-token-oauth.public.js.map +0 -1
  51. package/build/cjs/src/identity-oauth-v1-refresh-token-oauth.types.js +0 -17
  52. package/build/cjs/src/identity-oauth-v1-refresh-token-oauth.types.js.map +0 -1
  53. package/build/cjs/src/identity-oauth-v1-refresh-token-oauth.universal.d.ts +0 -300
  54. package/build/cjs/src/identity-oauth-v1-refresh-token-oauth.universal.js +0 -143
  55. package/build/cjs/src/identity-oauth-v1-refresh-token-oauth.universal.js.map +0 -1
  56. package/build/es/index.d.ts +0 -1
  57. package/build/es/index.js +0 -2
  58. package/build/es/index.js.map +0 -1
  59. package/build/es/index.typings.d.ts +0 -1
  60. package/build/es/index.typings.js +0 -2
  61. package/build/es/index.typings.js.map +0 -1
  62. package/build/es/meta.d.ts +0 -1
  63. package/build/es/meta.js +0 -2
  64. package/build/es/meta.js.map +0 -1
  65. package/build/es/package.json +0 -3
  66. package/build/es/src/identity-oauth-v1-refresh-token-oauth.context.d.ts +0 -6
  67. package/build/es/src/identity-oauth-v1-refresh-token-oauth.context.js +0 -6
  68. package/build/es/src/identity-oauth-v1-refresh-token-oauth.context.js.map +0 -1
  69. package/build/es/src/identity-oauth-v1-refresh-token-oauth.http.d.ts +0 -21
  70. package/build/es/src/identity-oauth-v1-refresh-token-oauth.http.js +0 -129
  71. package/build/es/src/identity-oauth-v1-refresh-token-oauth.http.js.map +0 -1
  72. package/build/es/src/identity-oauth-v1-refresh-token-oauth.meta.d.ts +0 -14
  73. package/build/es/src/identity-oauth-v1-refresh-token-oauth.meta.js +0 -38
  74. package/build/es/src/identity-oauth-v1-refresh-token-oauth.meta.js.map +0 -1
  75. package/build/es/src/identity-oauth-v1-refresh-token-oauth.public.d.ts +0 -34
  76. package/build/es/src/identity-oauth-v1-refresh-token-oauth.public.js +0 -14
  77. package/build/es/src/identity-oauth-v1-refresh-token-oauth.public.js.map +0 -1
  78. package/build/es/src/identity-oauth-v1-refresh-token-oauth.types.js +0 -14
  79. package/build/es/src/identity-oauth-v1-refresh-token-oauth.types.js.map +0 -1
  80. package/build/es/src/identity-oauth-v1-refresh-token-oauth.universal.d.ts +0 -300
  81. package/build/es/src/identity-oauth-v1-refresh-token-oauth.universal.js +0 -115
  82. package/build/es/src/identity-oauth-v1-refresh-token-oauth.universal.js.map +0 -1
  83. package/build/internal/cjs/index.d.ts +0 -1
  84. package/build/internal/cjs/index.js +0 -18
  85. package/build/internal/cjs/index.js.map +0 -1
  86. package/build/internal/cjs/index.typings.d.ts +0 -1
  87. package/build/internal/cjs/index.typings.js +0 -18
  88. package/build/internal/cjs/index.typings.js.map +0 -1
  89. package/build/internal/cjs/meta.d.ts +0 -1
  90. package/build/internal/cjs/meta.js +0 -18
  91. package/build/internal/cjs/meta.js.map +0 -1
  92. package/build/internal/cjs/src/identity-oauth-v1-refresh-token-oauth.context.d.ts +0 -6
  93. package/build/internal/cjs/src/identity-oauth-v1-refresh-token-oauth.context.js +0 -10
  94. package/build/internal/cjs/src/identity-oauth-v1-refresh-token-oauth.context.js.map +0 -1
  95. package/build/internal/cjs/src/identity-oauth-v1-refresh-token-oauth.http.d.ts +0 -21
  96. package/build/internal/cjs/src/identity-oauth-v1-refresh-token-oauth.http.js +0 -134
  97. package/build/internal/cjs/src/identity-oauth-v1-refresh-token-oauth.http.js.map +0 -1
  98. package/build/internal/cjs/src/identity-oauth-v1-refresh-token-oauth.meta.d.ts +0 -14
  99. package/build/internal/cjs/src/identity-oauth-v1-refresh-token-oauth.meta.js +0 -66
  100. package/build/internal/cjs/src/identity-oauth-v1-refresh-token-oauth.meta.js.map +0 -1
  101. package/build/internal/cjs/src/identity-oauth-v1-refresh-token-oauth.public.d.ts +0 -34
  102. package/build/internal/cjs/src/identity-oauth-v1-refresh-token-oauth.public.js +0 -20
  103. package/build/internal/cjs/src/identity-oauth-v1-refresh-token-oauth.public.js.map +0 -1
  104. package/build/internal/cjs/src/identity-oauth-v1-refresh-token-oauth.types.js +0 -17
  105. package/build/internal/cjs/src/identity-oauth-v1-refresh-token-oauth.types.js.map +0 -1
  106. package/build/internal/cjs/src/identity-oauth-v1-refresh-token-oauth.universal.d.ts +0 -300
  107. package/build/internal/cjs/src/identity-oauth-v1-refresh-token-oauth.universal.js +0 -143
  108. package/build/internal/cjs/src/identity-oauth-v1-refresh-token-oauth.universal.js.map +0 -1
  109. package/build/internal/es/index.d.ts +0 -1
  110. package/build/internal/es/index.js +0 -2
  111. package/build/internal/es/index.js.map +0 -1
  112. package/build/internal/es/index.typings.d.ts +0 -1
  113. package/build/internal/es/index.typings.js +0 -2
  114. package/build/internal/es/index.typings.js.map +0 -1
  115. package/build/internal/es/meta.d.ts +0 -1
  116. package/build/internal/es/meta.js +0 -2
  117. package/build/internal/es/meta.js.map +0 -1
  118. package/build/internal/es/src/identity-oauth-v1-refresh-token-oauth.context.d.ts +0 -6
  119. package/build/internal/es/src/identity-oauth-v1-refresh-token-oauth.context.js +0 -6
  120. package/build/internal/es/src/identity-oauth-v1-refresh-token-oauth.context.js.map +0 -1
  121. package/build/internal/es/src/identity-oauth-v1-refresh-token-oauth.http.d.ts +0 -21
  122. package/build/internal/es/src/identity-oauth-v1-refresh-token-oauth.http.js +0 -129
  123. package/build/internal/es/src/identity-oauth-v1-refresh-token-oauth.http.js.map +0 -1
  124. package/build/internal/es/src/identity-oauth-v1-refresh-token-oauth.meta.d.ts +0 -14
  125. package/build/internal/es/src/identity-oauth-v1-refresh-token-oauth.meta.js +0 -38
  126. package/build/internal/es/src/identity-oauth-v1-refresh-token-oauth.meta.js.map +0 -1
  127. package/build/internal/es/src/identity-oauth-v1-refresh-token-oauth.public.d.ts +0 -34
  128. package/build/internal/es/src/identity-oauth-v1-refresh-token-oauth.public.js +0 -14
  129. package/build/internal/es/src/identity-oauth-v1-refresh-token-oauth.public.js.map +0 -1
  130. package/build/internal/es/src/identity-oauth-v1-refresh-token-oauth.types.js +0 -14
  131. package/build/internal/es/src/identity-oauth-v1-refresh-token-oauth.types.js.map +0 -1
  132. package/build/internal/es/src/identity-oauth-v1-refresh-token-oauth.universal.d.ts +0 -300
  133. package/build/internal/es/src/identity-oauth-v1-refresh-token-oauth.universal.js +0 -115
  134. package/build/internal/es/src/identity-oauth-v1-refresh-token-oauth.universal.js.map +0 -1
@@ -0,0 +1,79 @@
1
+ import { d as RawHttpRequest$1, R as RawHttpResponse$1, b as TokenInfoResponse$1 } from './identity-oauth-v1-refresh-token-oauth.universal-BzqSyI-5.js';
2
+
3
+ interface RawHttpResponse {
4
+ body?: Uint8Array;
5
+ statusCode?: number | null;
6
+ headers?: HeadersEntry[];
7
+ }
8
+ interface HeadersEntry {
9
+ key?: string;
10
+ value?: string;
11
+ }
12
+ interface RawHttpRequest {
13
+ body?: Uint8Array;
14
+ pathParams?: PathParametersEntry[];
15
+ queryParams?: QueryParametersEntry[];
16
+ headers?: HeadersEntry[];
17
+ method?: string;
18
+ rawPath?: string;
19
+ rawQuery?: string;
20
+ }
21
+ interface PathParametersEntry {
22
+ key?: string;
23
+ value?: string;
24
+ }
25
+ interface QueryParametersEntry {
26
+ key?: string;
27
+ value?: string;
28
+ }
29
+ interface TokenInfoResponse {
30
+ active?: boolean;
31
+ /** subject type. */
32
+ subjectType?: SubjectType;
33
+ /** subject id */
34
+ subjectId?: string;
35
+ /** Expiration time of the token */
36
+ exp?: string | null;
37
+ /** Issued time of the token */
38
+ iat?: string | null;
39
+ /** Client id */
40
+ clientId?: string;
41
+ /** Account id */
42
+ accountId?: string | null;
43
+ /** Site id */
44
+ siteId?: string | null;
45
+ /** Instance Id */
46
+ instanceId?: string | null;
47
+ /**
48
+ * Vendor Product Id
49
+ * @maxLength 100
50
+ */
51
+ vendorProductId?: string | null;
52
+ }
53
+ declare enum SubjectType {
54
+ /** unknown subject type */
55
+ UNKNOWN = "UNKNOWN",
56
+ /** user subject type */
57
+ USER = "USER",
58
+ /** visitor subject type */
59
+ VISITOR = "VISITOR",
60
+ /** member subject type */
61
+ MEMBER = "MEMBER",
62
+ /** app subject type */
63
+ APP = "APP"
64
+ }
65
+
66
+ type __PublicMethodMetaInfo<K = string, M = unknown, T = unknown, S = unknown, Q = unknown, R = unknown> = {
67
+ getUrl: (context: any) => string;
68
+ httpMethod: K;
69
+ path: string;
70
+ pathParams: M;
71
+ __requestType: T;
72
+ __originalRequestType: S;
73
+ __responseType: Q;
74
+ __originalResponseType: R;
75
+ };
76
+ declare function token(): __PublicMethodMetaInfo<'POST', {}, RawHttpRequest$1, RawHttpRequest, RawHttpResponse$1, RawHttpResponse>;
77
+ declare function tokenInfo(): __PublicMethodMetaInfo<'POST', {}, RawHttpRequest$1, RawHttpRequest, TokenInfoResponse$1, TokenInfoResponse>;
78
+
79
+ export { type __PublicMethodMetaInfo, token, tokenInfo };
package/build/meta.js ADDED
@@ -0,0 +1,182 @@
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
+ // meta.ts
21
+ var meta_exports = {};
22
+ __export(meta_exports, {
23
+ token: () => token2,
24
+ tokenInfo: () => tokenInfo2
25
+ });
26
+ module.exports = __toCommonJS(meta_exports);
27
+
28
+ // src/identity-oauth-v1-refresh-token-oauth.http.ts
29
+ var import_bytes = require("@wix/sdk-runtime/transformations/bytes");
30
+ var import_bytes2 = require("@wix/sdk-runtime/transformations/bytes");
31
+ var import_transform_paths = require("@wix/sdk-runtime/transformations/transform-paths");
32
+ var import_rest_modules = require("@wix/sdk-runtime/rest-modules");
33
+ function resolveWixIdentityOauth2V1Oauth2NgUrl(opts) {
34
+ const domainToMappings = {
35
+ "manage._base_domain_": [
36
+ {
37
+ srcPath: "/oauth2",
38
+ destPath: "/v1/oauth"
39
+ }
40
+ ],
41
+ "www.wixapis.com": [
42
+ {
43
+ srcPath: "/oauth2",
44
+ destPath: "/v1/oauth"
45
+ },
46
+ {
47
+ srcPath: "/oauth2/token_info",
48
+ destPath: "/v1/token_info"
49
+ }
50
+ ],
51
+ "users._base_domain_": [
52
+ {
53
+ srcPath: "/v1/oauth/device/verify",
54
+ destPath: "/v1/oauth/device/verify"
55
+ },
56
+ {
57
+ srcPath: "/v1/oauth/manage/user-code",
58
+ destPath: "/v1/oauth/manage/user-code"
59
+ },
60
+ {
61
+ srcPath: "/v2/oauth/device/verify",
62
+ destPath: "/v2/oauth/device/verify"
63
+ },
64
+ {
65
+ srcPath: "/v1/oauth/authorize",
66
+ destPath: "/v1/oauth/authorize"
67
+ }
68
+ ],
69
+ _: [
70
+ {
71
+ srcPath: "/_api/oauth2",
72
+ destPath: "/v1/oauth"
73
+ }
74
+ ],
75
+ "platform.rise.ai": [
76
+ {
77
+ srcPath: "/oauth2",
78
+ destPath: "/v1/oauth"
79
+ }
80
+ ],
81
+ "api._api_base_domain_": [
82
+ {
83
+ srcPath: "/oauth2-ng",
84
+ destPath: ""
85
+ }
86
+ ]
87
+ };
88
+ return (0, import_rest_modules.resolveUrl)(Object.assign(opts, { domainToMappings }));
89
+ }
90
+ var PACKAGE_NAME = "@wix/auto_sdk_identity_oauth";
91
+ function token(payload) {
92
+ function __token({ host }) {
93
+ const serializedData = (0, import_transform_paths.transformPaths)(payload, [
94
+ { transformFn: import_bytes.transformSDKBytesToRESTBytes, paths: [{ path: "body" }] }
95
+ ]);
96
+ const metadata = {
97
+ entityFqdn: "wix.identity.oauth.v1.refresh_token",
98
+ method: "POST",
99
+ methodFqn: "wix.identity.oauth2.v1.Oauth2Ng.Token",
100
+ packageName: PACKAGE_NAME,
101
+ url: resolveWixIdentityOauth2V1Oauth2NgUrl({
102
+ protoPath: "/v1/oauth/token",
103
+ data: serializedData,
104
+ host
105
+ }),
106
+ data: serializedData,
107
+ transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
108
+ {
109
+ transformFn: import_bytes2.transformRESTBytesToSDKBytes,
110
+ paths: [{ path: "body" }]
111
+ }
112
+ ])
113
+ };
114
+ return metadata;
115
+ }
116
+ return __token;
117
+ }
118
+ function tokenInfo(payload) {
119
+ function __tokenInfo({ host }) {
120
+ const serializedData = (0, import_transform_paths.transformPaths)(payload, [
121
+ { transformFn: import_bytes.transformSDKBytesToRESTBytes, paths: [{ path: "body" }] }
122
+ ]);
123
+ const metadata = {
124
+ entityFqdn: "wix.identity.oauth.v1.refresh_token",
125
+ method: "POST",
126
+ methodFqn: "wix.identity.oauth2.v1.Oauth2Ng.TokenInfo",
127
+ packageName: PACKAGE_NAME,
128
+ url: resolveWixIdentityOauth2V1Oauth2NgUrl({
129
+ protoPath: "/v1/oauth/token-info",
130
+ data: serializedData,
131
+ host
132
+ }),
133
+ data: serializedData
134
+ };
135
+ return metadata;
136
+ }
137
+ return __tokenInfo;
138
+ }
139
+
140
+ // src/identity-oauth-v1-refresh-token-oauth.meta.ts
141
+ function token2() {
142
+ const payload = {};
143
+ const getRequestOptions = token(payload);
144
+ const getUrl = (context) => {
145
+ const { url } = getRequestOptions(context);
146
+ return url;
147
+ };
148
+ return {
149
+ getUrl,
150
+ httpMethod: "POST",
151
+ path: "/v1/oauth/token",
152
+ pathParams: {},
153
+ __requestType: null,
154
+ __originalRequestType: null,
155
+ __responseType: null,
156
+ __originalResponseType: null
157
+ };
158
+ }
159
+ function tokenInfo2() {
160
+ const payload = {};
161
+ const getRequestOptions = tokenInfo(payload);
162
+ const getUrl = (context) => {
163
+ const { url } = getRequestOptions(context);
164
+ return url;
165
+ };
166
+ return {
167
+ getUrl,
168
+ httpMethod: "POST",
169
+ path: "/v1/oauth/token-info",
170
+ pathParams: {},
171
+ __requestType: null,
172
+ __originalRequestType: null,
173
+ __responseType: null,
174
+ __originalResponseType: null
175
+ };
176
+ }
177
+ // Annotate the CommonJS export names for ESM import in node:
178
+ 0 && (module.exports = {
179
+ token,
180
+ tokenInfo
181
+ });
182
+ //# sourceMappingURL=meta.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../meta.ts","../src/identity-oauth-v1-refresh-token-oauth.http.ts","../src/identity-oauth-v1-refresh-token-oauth.meta.ts"],"sourcesContent":["export * from './src/identity-oauth-v1-refresh-token-oauth.meta.js';\n","import { transformSDKBytesToRESTBytes } from '@wix/sdk-runtime/transformations/bytes';\nimport { transformRESTBytesToSDKBytes } from '@wix/sdk-runtime/transformations/bytes';\nimport { transformPaths } from '@wix/sdk-runtime/transformations/transform-paths';\nimport { resolveUrl } from '@wix/sdk-runtime/rest-modules';\nimport { ResolveUrlOpts } from '@wix/sdk-runtime/rest-modules';\nimport { RequestOptionsFactory } from '@wix/sdk-types';\n\nfunction resolveWixIdentityOauth2V1Oauth2NgUrl(\n opts: Omit<ResolveUrlOpts, 'domainToMappings'>\n) {\n const domainToMappings = {\n 'manage._base_domain_': [\n {\n srcPath: '/oauth2',\n destPath: '/v1/oauth',\n },\n ],\n 'www.wixapis.com': [\n {\n srcPath: '/oauth2',\n destPath: '/v1/oauth',\n },\n {\n srcPath: '/oauth2/token_info',\n destPath: '/v1/token_info',\n },\n ],\n 'users._base_domain_': [\n {\n srcPath: '/v1/oauth/device/verify',\n destPath: '/v1/oauth/device/verify',\n },\n {\n srcPath: '/v1/oauth/manage/user-code',\n destPath: '/v1/oauth/manage/user-code',\n },\n {\n srcPath: '/v2/oauth/device/verify',\n destPath: '/v2/oauth/device/verify',\n },\n {\n srcPath: '/v1/oauth/authorize',\n destPath: '/v1/oauth/authorize',\n },\n ],\n _: [\n {\n srcPath: '/_api/oauth2',\n destPath: '/v1/oauth',\n },\n ],\n 'platform.rise.ai': [\n {\n srcPath: '/oauth2',\n destPath: '/v1/oauth',\n },\n ],\n 'api._api_base_domain_': [\n {\n srcPath: '/oauth2-ng',\n destPath: '',\n },\n ],\n };\n\n return resolveUrl(Object.assign(opts, { domainToMappings }));\n}\n\nconst PACKAGE_NAME = '@wix/auto_sdk_identity_oauth';\n\n/**\n * Creates an access token.\n *\n *\n * The endpoint accepts raw HTTP requests. You must pass the request's body\n * parameters formatted as bytes in the raw HTTP request's `body` field,\n * following this template:\n * `{\"grantType\": \"client_credentials\", \"client_id\": \"<APP_ID>\", \"client_secret\": \"<APP_SECRET_KEY>\", \"instance_id\": \"<INSTANCE_ID>\"}`.\n *\n * When the call succeeds, Wix returns `{\"statusCode\": 200}` and the created access\n * token in the `body` field of the raw HTTP response.\n *\n * In case the call fails, Wix returns the relevant `4XX` error code in the raw\n * HTTP response's `statusCode` field and details\n * about the error in `body`. Error details follow the\n * [conventions of the Internet Engineering Task Force (IETF)](https://datatracker.ietf.org/doc/html/rfc6749#appendix-A.7).\n */\nexport function token(payload: object): RequestOptionsFactory<any> {\n function __token({ host }: any) {\n const serializedData = transformPaths(payload, [\n { transformFn: transformSDKBytesToRESTBytes, paths: [{ path: 'body' }] },\n ]);\n const metadata = {\n entityFqdn: 'wix.identity.oauth.v1.refresh_token',\n method: 'POST' as any,\n methodFqn: 'wix.identity.oauth2.v1.Oauth2Ng.Token',\n packageName: PACKAGE_NAME,\n url: resolveWixIdentityOauth2V1Oauth2NgUrl({\n protoPath: '/v1/oauth/token',\n data: serializedData,\n host,\n }),\n data: serializedData,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTBytesToSDKBytes,\n paths: [{ path: 'body' }],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __token;\n}\n\n/** Token Introspection Endpoint. */\nexport function tokenInfo(payload: object): RequestOptionsFactory<any> {\n function __tokenInfo({ host }: any) {\n const serializedData = transformPaths(payload, [\n { transformFn: transformSDKBytesToRESTBytes, paths: [{ path: 'body' }] },\n ]);\n const metadata = {\n entityFqdn: 'wix.identity.oauth.v1.refresh_token',\n method: 'POST' as any,\n methodFqn: 'wix.identity.oauth2.v1.Oauth2Ng.TokenInfo',\n packageName: PACKAGE_NAME,\n url: resolveWixIdentityOauth2V1Oauth2NgUrl({\n protoPath: '/v1/oauth/token-info',\n data: serializedData,\n host,\n }),\n data: serializedData,\n };\n\n return metadata;\n }\n\n return __tokenInfo;\n}\n","import * as ambassadorWixIdentityOauthV1RefreshToken from './identity-oauth-v1-refresh-token-oauth.http.js';\nimport * as ambassadorWixIdentityOauthV1RefreshTokenTypes from './identity-oauth-v1-refresh-token-oauth.types.js';\nimport * as ambassadorWixIdentityOauthV1RefreshTokenUniversalTypes from './identity-oauth-v1-refresh-token-oauth.universal.js';\n\nexport type __PublicMethodMetaInfo<\n K = string,\n M = unknown,\n T = unknown,\n S = unknown,\n Q = unknown,\n R = unknown\n> = {\n getUrl: (context: any) => string;\n httpMethod: K;\n path: string;\n pathParams: M;\n __requestType: T;\n __originalRequestType: S;\n __responseType: Q;\n __originalResponseType: R;\n};\n\nexport function token(): __PublicMethodMetaInfo<\n 'POST',\n {},\n ambassadorWixIdentityOauthV1RefreshTokenUniversalTypes.RawHttpRequest,\n ambassadorWixIdentityOauthV1RefreshTokenTypes.RawHttpRequest,\n ambassadorWixIdentityOauthV1RefreshTokenUniversalTypes.RawHttpResponse,\n ambassadorWixIdentityOauthV1RefreshTokenTypes.RawHttpResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixIdentityOauthV1RefreshToken.token(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'POST',\n path: '/v1/oauth/token',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function tokenInfo(): __PublicMethodMetaInfo<\n 'POST',\n {},\n ambassadorWixIdentityOauthV1RefreshTokenUniversalTypes.RawHttpRequest,\n ambassadorWixIdentityOauthV1RefreshTokenTypes.RawHttpRequest,\n ambassadorWixIdentityOauthV1RefreshTokenUniversalTypes.TokenInfoResponse,\n ambassadorWixIdentityOauthV1RefreshTokenTypes.TokenInfoResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixIdentityOauthV1RefreshToken.tokenInfo(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'POST',\n path: '/v1/oauth/token-info',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n"],"mappings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jB,QAAM,oBACqC,UAAU,OAAO;AAE5D,QAAM,SAAS,CAAC,YAAyB;AACvC,UAAM,EAAE,IAAI,IAAI,kBAAkB,OAAO;AACzC,WAAO;AAAA,EACT;AAEA,SAAO;AAAA,IACL;AAAA,IACA,YAAY;AAAA,IACZ,MAAM;AAAA,IACN,YAAY,CAAC;AAAA,IACb,eAAe;AAAA,IACf,uBAAuB;AAAA,IACvB,gBAAgB;AAAA,IAChB,wBAAwB;AAAA,EAC1B;AACF;","names":["token","tokenInfo","import_bytes","payload","token","tokenInfo"]}
package/build/meta.mjs ADDED
@@ -0,0 +1,154 @@
1
+ // src/identity-oauth-v1-refresh-token-oauth.http.ts
2
+ import { transformSDKBytesToRESTBytes } from "@wix/sdk-runtime/transformations/bytes";
3
+ import { transformRESTBytesToSDKBytes } from "@wix/sdk-runtime/transformations/bytes";
4
+ import { transformPaths } from "@wix/sdk-runtime/transformations/transform-paths";
5
+ import { resolveUrl } from "@wix/sdk-runtime/rest-modules";
6
+ function resolveWixIdentityOauth2V1Oauth2NgUrl(opts) {
7
+ const domainToMappings = {
8
+ "manage._base_domain_": [
9
+ {
10
+ srcPath: "/oauth2",
11
+ destPath: "/v1/oauth"
12
+ }
13
+ ],
14
+ "www.wixapis.com": [
15
+ {
16
+ srcPath: "/oauth2",
17
+ destPath: "/v1/oauth"
18
+ },
19
+ {
20
+ srcPath: "/oauth2/token_info",
21
+ destPath: "/v1/token_info"
22
+ }
23
+ ],
24
+ "users._base_domain_": [
25
+ {
26
+ srcPath: "/v1/oauth/device/verify",
27
+ destPath: "/v1/oauth/device/verify"
28
+ },
29
+ {
30
+ srcPath: "/v1/oauth/manage/user-code",
31
+ destPath: "/v1/oauth/manage/user-code"
32
+ },
33
+ {
34
+ srcPath: "/v2/oauth/device/verify",
35
+ destPath: "/v2/oauth/device/verify"
36
+ },
37
+ {
38
+ srcPath: "/v1/oauth/authorize",
39
+ destPath: "/v1/oauth/authorize"
40
+ }
41
+ ],
42
+ _: [
43
+ {
44
+ srcPath: "/_api/oauth2",
45
+ destPath: "/v1/oauth"
46
+ }
47
+ ],
48
+ "platform.rise.ai": [
49
+ {
50
+ srcPath: "/oauth2",
51
+ destPath: "/v1/oauth"
52
+ }
53
+ ],
54
+ "api._api_base_domain_": [
55
+ {
56
+ srcPath: "/oauth2-ng",
57
+ destPath: ""
58
+ }
59
+ ]
60
+ };
61
+ return resolveUrl(Object.assign(opts, { domainToMappings }));
62
+ }
63
+ var PACKAGE_NAME = "@wix/auto_sdk_identity_oauth";
64
+ function token(payload) {
65
+ function __token({ host }) {
66
+ const serializedData = transformPaths(payload, [
67
+ { transformFn: transformSDKBytesToRESTBytes, paths: [{ path: "body" }] }
68
+ ]);
69
+ const metadata = {
70
+ entityFqdn: "wix.identity.oauth.v1.refresh_token",
71
+ method: "POST",
72
+ methodFqn: "wix.identity.oauth2.v1.Oauth2Ng.Token",
73
+ packageName: PACKAGE_NAME,
74
+ url: resolveWixIdentityOauth2V1Oauth2NgUrl({
75
+ protoPath: "/v1/oauth/token",
76
+ data: serializedData,
77
+ host
78
+ }),
79
+ data: serializedData,
80
+ transformResponse: (payload2) => transformPaths(payload2, [
81
+ {
82
+ transformFn: transformRESTBytesToSDKBytes,
83
+ paths: [{ path: "body" }]
84
+ }
85
+ ])
86
+ };
87
+ return metadata;
88
+ }
89
+ return __token;
90
+ }
91
+ function tokenInfo(payload) {
92
+ function __tokenInfo({ host }) {
93
+ const serializedData = transformPaths(payload, [
94
+ { transformFn: transformSDKBytesToRESTBytes, paths: [{ path: "body" }] }
95
+ ]);
96
+ const metadata = {
97
+ entityFqdn: "wix.identity.oauth.v1.refresh_token",
98
+ method: "POST",
99
+ methodFqn: "wix.identity.oauth2.v1.Oauth2Ng.TokenInfo",
100
+ packageName: PACKAGE_NAME,
101
+ url: resolveWixIdentityOauth2V1Oauth2NgUrl({
102
+ protoPath: "/v1/oauth/token-info",
103
+ data: serializedData,
104
+ host
105
+ }),
106
+ data: serializedData
107
+ };
108
+ return metadata;
109
+ }
110
+ return __tokenInfo;
111
+ }
112
+
113
+ // src/identity-oauth-v1-refresh-token-oauth.meta.ts
114
+ function token2() {
115
+ const payload = {};
116
+ const getRequestOptions = token(payload);
117
+ const getUrl = (context) => {
118
+ const { url } = getRequestOptions(context);
119
+ return url;
120
+ };
121
+ return {
122
+ getUrl,
123
+ httpMethod: "POST",
124
+ path: "/v1/oauth/token",
125
+ pathParams: {},
126
+ __requestType: null,
127
+ __originalRequestType: null,
128
+ __responseType: null,
129
+ __originalResponseType: null
130
+ };
131
+ }
132
+ function tokenInfo2() {
133
+ const payload = {};
134
+ const getRequestOptions = tokenInfo(payload);
135
+ const getUrl = (context) => {
136
+ const { url } = getRequestOptions(context);
137
+ return url;
138
+ };
139
+ return {
140
+ getUrl,
141
+ httpMethod: "POST",
142
+ path: "/v1/oauth/token-info",
143
+ pathParams: {},
144
+ __requestType: null,
145
+ __originalRequestType: null,
146
+ __responseType: null,
147
+ __originalResponseType: null
148
+ };
149
+ }
150
+ export {
151
+ token2 as token,
152
+ tokenInfo2 as tokenInfo
153
+ };
154
+ //# sourceMappingURL=meta.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/identity-oauth-v1-refresh-token-oauth.http.ts","../src/identity-oauth-v1-refresh-token-oauth.meta.ts"],"sourcesContent":["import { transformSDKBytesToRESTBytes } from '@wix/sdk-runtime/transformations/bytes';\nimport { transformRESTBytesToSDKBytes } from '@wix/sdk-runtime/transformations/bytes';\nimport { transformPaths } from '@wix/sdk-runtime/transformations/transform-paths';\nimport { resolveUrl } from '@wix/sdk-runtime/rest-modules';\nimport { ResolveUrlOpts } from '@wix/sdk-runtime/rest-modules';\nimport { RequestOptionsFactory } from '@wix/sdk-types';\n\nfunction resolveWixIdentityOauth2V1Oauth2NgUrl(\n opts: Omit<ResolveUrlOpts, 'domainToMappings'>\n) {\n const domainToMappings = {\n 'manage._base_domain_': [\n {\n srcPath: '/oauth2',\n destPath: '/v1/oauth',\n },\n ],\n 'www.wixapis.com': [\n {\n srcPath: '/oauth2',\n destPath: '/v1/oauth',\n },\n {\n srcPath: '/oauth2/token_info',\n destPath: '/v1/token_info',\n },\n ],\n 'users._base_domain_': [\n {\n srcPath: '/v1/oauth/device/verify',\n destPath: '/v1/oauth/device/verify',\n },\n {\n srcPath: '/v1/oauth/manage/user-code',\n destPath: '/v1/oauth/manage/user-code',\n },\n {\n srcPath: '/v2/oauth/device/verify',\n destPath: '/v2/oauth/device/verify',\n },\n {\n srcPath: '/v1/oauth/authorize',\n destPath: '/v1/oauth/authorize',\n },\n ],\n _: [\n {\n srcPath: '/_api/oauth2',\n destPath: '/v1/oauth',\n },\n ],\n 'platform.rise.ai': [\n {\n srcPath: '/oauth2',\n destPath: '/v1/oauth',\n },\n ],\n 'api._api_base_domain_': [\n {\n srcPath: '/oauth2-ng',\n destPath: '',\n },\n ],\n };\n\n return resolveUrl(Object.assign(opts, { domainToMappings }));\n}\n\nconst PACKAGE_NAME = '@wix/auto_sdk_identity_oauth';\n\n/**\n * Creates an access token.\n *\n *\n * The endpoint accepts raw HTTP requests. You must pass the request's body\n * parameters formatted as bytes in the raw HTTP request's `body` field,\n * following this template:\n * `{\"grantType\": \"client_credentials\", \"client_id\": \"<APP_ID>\", \"client_secret\": \"<APP_SECRET_KEY>\", \"instance_id\": \"<INSTANCE_ID>\"}`.\n *\n * When the call succeeds, Wix returns `{\"statusCode\": 200}` and the created access\n * token in the `body` field of the raw HTTP response.\n *\n * In case the call fails, Wix returns the relevant `4XX` error code in the raw\n * HTTP response's `statusCode` field and details\n * about the error in `body`. Error details follow the\n * [conventions of the Internet Engineering Task Force (IETF)](https://datatracker.ietf.org/doc/html/rfc6749#appendix-A.7).\n */\nexport function token(payload: object): RequestOptionsFactory<any> {\n function __token({ host }: any) {\n const serializedData = transformPaths(payload, [\n { transformFn: transformSDKBytesToRESTBytes, paths: [{ path: 'body' }] },\n ]);\n const metadata = {\n entityFqdn: 'wix.identity.oauth.v1.refresh_token',\n method: 'POST' as any,\n methodFqn: 'wix.identity.oauth2.v1.Oauth2Ng.Token',\n packageName: PACKAGE_NAME,\n url: resolveWixIdentityOauth2V1Oauth2NgUrl({\n protoPath: '/v1/oauth/token',\n data: serializedData,\n host,\n }),\n data: serializedData,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTBytesToSDKBytes,\n paths: [{ path: 'body' }],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __token;\n}\n\n/** Token Introspection Endpoint. */\nexport function tokenInfo(payload: object): RequestOptionsFactory<any> {\n function __tokenInfo({ host }: any) {\n const serializedData = transformPaths(payload, [\n { transformFn: transformSDKBytesToRESTBytes, paths: [{ path: 'body' }] },\n ]);\n const metadata = {\n entityFqdn: 'wix.identity.oauth.v1.refresh_token',\n method: 'POST' as any,\n methodFqn: 'wix.identity.oauth2.v1.Oauth2Ng.TokenInfo',\n packageName: PACKAGE_NAME,\n url: resolveWixIdentityOauth2V1Oauth2NgUrl({\n protoPath: '/v1/oauth/token-info',\n data: serializedData,\n host,\n }),\n data: serializedData,\n };\n\n return metadata;\n }\n\n return __tokenInfo;\n}\n","import * as ambassadorWixIdentityOauthV1RefreshToken from './identity-oauth-v1-refresh-token-oauth.http.js';\nimport * as ambassadorWixIdentityOauthV1RefreshTokenTypes from './identity-oauth-v1-refresh-token-oauth.types.js';\nimport * as ambassadorWixIdentityOauthV1RefreshTokenUniversalTypes from './identity-oauth-v1-refresh-token-oauth.universal.js';\n\nexport type __PublicMethodMetaInfo<\n K = string,\n M = unknown,\n T = unknown,\n S = unknown,\n Q = unknown,\n R = unknown\n> = {\n getUrl: (context: any) => string;\n httpMethod: K;\n path: string;\n pathParams: M;\n __requestType: T;\n __originalRequestType: S;\n __responseType: Q;\n __originalResponseType: R;\n};\n\nexport function token(): __PublicMethodMetaInfo<\n 'POST',\n {},\n ambassadorWixIdentityOauthV1RefreshTokenUniversalTypes.RawHttpRequest,\n ambassadorWixIdentityOauthV1RefreshTokenTypes.RawHttpRequest,\n ambassadorWixIdentityOauthV1RefreshTokenUniversalTypes.RawHttpResponse,\n ambassadorWixIdentityOauthV1RefreshTokenTypes.RawHttpResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixIdentityOauthV1RefreshToken.token(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'POST',\n path: '/v1/oauth/token',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function tokenInfo(): __PublicMethodMetaInfo<\n 'POST',\n {},\n ambassadorWixIdentityOauthV1RefreshTokenUniversalTypes.RawHttpRequest,\n ambassadorWixIdentityOauthV1RefreshTokenTypes.RawHttpRequest,\n ambassadorWixIdentityOauthV1RefreshTokenUniversalTypes.TokenInfoResponse,\n ambassadorWixIdentityOauthV1RefreshTokenTypes.TokenInfoResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixIdentityOauthV1RefreshToken.tokenInfo(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'POST',\n path: '/v1/oauth/token-info',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n"],"mappings":";AAAA,SAAS,oCAAoC;AAC7C,SAAS,oCAAoC;AAC7C,SAAS,sBAAsB;AAC/B,SAAS,kBAAkB;AAI3B,SAAS,sCACP,MACA;AACA,QAAM,mBAAmB;AAAA,IACvB,wBAAwB;AAAA,MACtB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,mBAAmB;AAAA,MACjB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,MACA;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,I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AAY,EAAE,KAAK,GAAQ;AAClC,UAAM,iBAAiB,eAAe,SAAS;AAAA,MAC7C,EAAE,aAAa,8BAA8B,OAAO,CAAC,EAAE,MAAM,OAAO,CAAC,EAAE;AAAA,IACzE,CAAC;AACD,UAAM,WAAW;AAAA,MACf,YAAY;AAAA,MACZ,QAAQ;AAAA,MACR,WAAW;AAAA,MACX,aAAa;AAAA,MACb,KAAK,sCAAsC;AAAA,QACzC,WAAW;AAAA,QACX,MAAM;AAAA,QACN;AAAA,MACF,CAAC;AAAA,MACD,MAAM;AAAA,IACR;AAEA,WAAO;AAAA,EACT;AAEA,SAAO;AACT;;;ACvHO,SAASC,SAOd;AACA,QAAM,UAAU,CAAC;AAEjB,QAAM,oBACqC,MAAM,OAAO;AAExD,QAAM,SAAS,CAAC,YAAyB;AACvC,UAAM,EAAE,IAAI,IAAI,kBAAkB,OAAO;AACzC,WAAO;AAAA,EACT;AAEA,SAAO;AAAA,IACL;AAAA,IACA,YAAY;AAAA,IACZ,MAAM;AAAA,IACN,YAAY,CAAC;AAAA,IACb,eAAe;AAAA,IACf,uBAAuB;AAAA,IACvB,gBAAgB;AAAA,IAChB,wBAAwB;AAAA,EAC1B;AACF;AAEO,SAASC,aAOd;AACA,QAAM,UAAU,CAAC;AAEjB,QAAM,oBACqC,UAAU,OAAO;AAE5D,QAAM,SAAS,CAAC,YAAyB;AACvC,UAAM,EAAE,IAAI,IAAI,kBAAkB,OAAO;AACzC,WAAO;AAAA,EACT;AAEA,SAAO;AAAA,IACL;AAAA,IACA,YAAY;AAAA,IACZ,MAAM;AAAA,IACN,YAAY,CAAC;AAAA,IACb,eAAe;AAAA,IACf,uBAAuB;AAAA,IACvB,gBAAgB;AAAA,IAChB,wBAAwB;AAAA,EAC1B;AACF;","names":["payload","token","tokenInfo"]}
package/package.json CHANGED
@@ -1,25 +1,25 @@
1
1
  {
2
2
  "name": "@wix/auto_sdk_identity_oauth",
3
- "version": "1.0.3",
3
+ "version": "1.0.4",
4
4
  "publishConfig": {
5
5
  "registry": "https://registry.npmjs.org/",
6
6
  "access": "public"
7
7
  },
8
8
  "keywords": [],
9
9
  "sideEffects": false,
10
- "main": "./build/cjs/index.js",
11
- "types": "./build/es/index.d.ts",
10
+ "main": "/build/index.js",
11
+ "types": "./build/index.d.mts",
12
12
  "exports": {
13
13
  ".": {
14
- "import": "./build/es/index.js",
15
- "require": "./build/cjs/index.js",
16
- "types": "./build/es/index.d.ts"
14
+ "import": "./build/index.mjs",
15
+ "require": "./build/index.js",
16
+ "types": "./build/index.d.mts"
17
17
  },
18
18
  "./package.json": "./package.json",
19
19
  "./meta": {
20
- "import": "./build/es/meta.js",
21
- "require": "./build/cjs/meta.js",
22
- "types": "./build/es/meta.d.ts"
20
+ "import": "./build/meta.mjs",
21
+ "require": "./build/meta.js",
22
+ "types": "./build/meta.d.mts"
23
23
  }
24
24
  },
25
25
  "files": [
@@ -29,13 +29,14 @@
29
29
  ],
30
30
  "dependencies": {
31
31
  "@wix/sdk-runtime": "^0.3.42",
32
- "@wix/sdk-types": "^1.13.10"
32
+ "@wix/sdk-types": "^1.13.16"
33
33
  },
34
34
  "devDependencies": {
35
+ "tsup": "^8.4.0",
35
36
  "typescript": "^5.3.2"
36
37
  },
37
38
  "scripts": {
38
- "build": "tsc -b tsconfig.json tsconfig.esm.json tsconfig.internal.json tsconfig.internal.esm.json",
39
+ "build": "tsup",
39
40
  "test": ":"
40
41
  },
41
42
  "wix": {
@@ -48,5 +49,5 @@
48
49
  "fqdn": "wix.identity.oauth.v1.refresh_token"
49
50
  }
50
51
  },
51
- "falconPackageHash": "a97ac7c740f42e03970f3bad7d4268bb0b3e22040dc6023d269a1305"
52
+ "falconPackageHash": "a97a610ee4806387017b63c95e1935c2f52ecc9401488c13ba7e012f"
52
53
  }
@@ -1 +0,0 @@
1
- export * from './src/identity-oauth-v1-refresh-token-oauth.context.js';
@@ -1,18 +0,0 @@
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("./src/identity-oauth-v1-refresh-token-oauth.context.js"), exports);
18
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,yFAAuE"}
@@ -1 +0,0 @@
1
- export * from './src/identity-oauth-v1-refresh-token-oauth.universal.js';
@@ -1,18 +0,0 @@
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("./src/identity-oauth-v1-refresh-token-oauth.universal.js"), exports);
18
- //# sourceMappingURL=index.typings.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.typings.js","sourceRoot":"","sources":["../../index.typings.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,2FAAyE"}
@@ -1 +0,0 @@
1
- export * from './src/identity-oauth-v1-refresh-token-oauth.meta.js';
package/build/cjs/meta.js DELETED
@@ -1,18 +0,0 @@
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("./src/identity-oauth-v1-refresh-token-oauth.meta.js"), exports);
18
- //# sourceMappingURL=meta.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"meta.js","sourceRoot":"","sources":["../../meta.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,sFAAoE"}
@@ -1,6 +0,0 @@
1
- import { token as publicToken, tokenInfo as publicTokenInfo } from './identity-oauth-v1-refresh-token-oauth.public.js';
2
- import { BuildRESTFunction, MaybeContext } from '@wix/sdk-types';
3
- export declare const token: MaybeContext<BuildRESTFunction<typeof publicToken> & typeof publicToken>;
4
- export declare const tokenInfo: MaybeContext<BuildRESTFunction<typeof publicTokenInfo> & typeof publicTokenInfo>;
5
- export { SubjectType } from './identity-oauth-v1-refresh-token-oauth.universal.js';
6
- export { RefreshToken, AuthorizeRequest, RawHttpResponse, HeadersEntry, RawHttpRequest, PathParametersEntry, QueryParametersEntry, DeviceCodeRequest, DeviceCodeResponse, DeviceVerifyRequest, DeviceVerifyResponse, DeviceVerifyV2Request, DeviceVerifyV2Response, InvalidateUserCodeRequest, InvalidateUserCodeResponse, RevokeRefreshTokenRequest, RevokeRefreshTokenResponse, TokenInfoResponse, Empty, DomainEvent, DomainEventBodyOneOf, EntityCreatedEvent, RestoreInfo, EntityUpdatedEvent, EntityDeletedEvent, ActionEvent, TokenOptions, TokenInfoOptions, } from './identity-oauth-v1-refresh-token-oauth.universal.js';
@@ -1,10 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.SubjectType = exports.tokenInfo = exports.token = void 0;
4
- const identity_oauth_v1_refresh_token_oauth_public_js_1 = require("./identity-oauth-v1-refresh-token-oauth.public.js");
5
- const rest_modules_1 = require("@wix/sdk-runtime/rest-modules");
6
- exports.token = (0, rest_modules_1.createRESTModule)(identity_oauth_v1_refresh_token_oauth_public_js_1.token);
7
- exports.tokenInfo = (0, rest_modules_1.createRESTModule)(identity_oauth_v1_refresh_token_oauth_public_js_1.tokenInfo);
8
- var identity_oauth_v1_refresh_token_oauth_universal_js_1 = require("./identity-oauth-v1-refresh-token-oauth.universal.js");
9
- Object.defineProperty(exports, "SubjectType", { enumerable: true, get: function () { return identity_oauth_v1_refresh_token_oauth_universal_js_1.SubjectType; } });
10
- //# sourceMappingURL=identity-oauth-v1-refresh-token-oauth.context.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"identity-oauth-v1-refresh-token-oauth.context.js","sourceRoot":"","sources":["../../../src/identity-oauth-v1-refresh-token-oauth.context.ts"],"names":[],"mappings":";;;AAAA,uHAG2D;AAC3D,gEAAiE;AAGpD,QAAA,KAAK,GAEA,IAAA,+BAAgB,EAAC,uDAAW,CAAC,CAAC;AACnC,QAAA,SAAS,GAEJ,IAAA,+BAAgB,EAAC,2DAAe,CAAC,CAAC;AAEpD,2HAAmF;AAA1E,iJAAA,WAAW,OAAA"}
@@ -1,21 +0,0 @@
1
- import { RequestOptionsFactory } from '@wix/sdk-types';
2
- /**
3
- * Creates an access token.
4
- *
5
- *
6
- * The endpoint accepts raw HTTP requests. You must pass the request's body
7
- * parameters formatted as bytes in the raw HTTP request's `body` field,
8
- * following this template:
9
- * `{"grantType": "client_credentials", "client_id": "<APP_ID>", "client_secret": "<APP_SECRET_KEY>", "instance_id": "<INSTANCE_ID>"}`.
10
- *
11
- * When the call succeeds, Wix returns `{"statusCode": 200}` and the created access
12
- * token in the `body` field of the raw HTTP response.
13
- *
14
- * In case the call fails, Wix returns the relevant `4XX` error code in the raw
15
- * HTTP response's `statusCode` field and details
16
- * about the error in `body`. Error details follow the
17
- * [conventions of the Internet Engineering Task Force (IETF)](https://datatracker.ietf.org/doc/html/rfc6749#appendix-A.7).
18
- */
19
- export declare function token(payload: object): RequestOptionsFactory<any>;
20
- /** Token Introspection Endpoint. */
21
- export declare function tokenInfo(payload: object): RequestOptionsFactory<any>;