@wix/auto_sdk_identity_oauth 1.0.6 → 1.0.8

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/index.d.ts +1 -0
  2. package/build/cjs/index.js +18 -0
  3. package/build/cjs/index.js.map +1 -0
  4. package/build/cjs/index.typings.d.ts +1 -0
  5. package/build/cjs/index.typings.js +18 -0
  6. package/build/cjs/index.typings.js.map +1 -0
  7. package/build/cjs/meta.d.ts +1 -0
  8. package/build/cjs/meta.js +18 -0
  9. package/build/cjs/meta.js.map +1 -0
  10. package/build/cjs/src/identity-oauth-v1-refresh-token-oauth.context.d.ts +6 -0
  11. package/build/cjs/src/identity-oauth-v1-refresh-token-oauth.context.js +10 -0
  12. package/build/cjs/src/identity-oauth-v1-refresh-token-oauth.context.js.map +1 -0
  13. package/build/cjs/src/identity-oauth-v1-refresh-token-oauth.http.d.ts +21 -0
  14. package/build/cjs/src/identity-oauth-v1-refresh-token-oauth.http.js +134 -0
  15. package/build/cjs/src/identity-oauth-v1-refresh-token-oauth.http.js.map +1 -0
  16. package/build/cjs/src/identity-oauth-v1-refresh-token-oauth.meta.d.ts +14 -0
  17. package/build/cjs/src/identity-oauth-v1-refresh-token-oauth.meta.js +66 -0
  18. package/build/cjs/src/identity-oauth-v1-refresh-token-oauth.meta.js.map +1 -0
  19. package/build/cjs/src/identity-oauth-v1-refresh-token-oauth.public.d.ts +34 -0
  20. package/build/cjs/src/identity-oauth-v1-refresh-token-oauth.public.js +20 -0
  21. package/build/cjs/src/identity-oauth-v1-refresh-token-oauth.public.js.map +1 -0
  22. package/build/cjs/src/identity-oauth-v1-refresh-token-oauth.types.d.ts +249 -0
  23. package/build/cjs/src/identity-oauth-v1-refresh-token-oauth.types.js +17 -0
  24. package/build/cjs/src/identity-oauth-v1-refresh-token-oauth.types.js.map +1 -0
  25. package/build/{identity-oauth-v1-refresh-token-oauth.universal-BzqSyI-5.d.mts → cjs/src/identity-oauth-v1-refresh-token-oauth.universal.d.ts} +65 -48
  26. package/build/cjs/src/identity-oauth-v1-refresh-token-oauth.universal.js +143 -0
  27. package/build/cjs/src/identity-oauth-v1-refresh-token-oauth.universal.js.map +1 -0
  28. package/build/es/index.d.ts +1 -0
  29. package/build/es/index.js +2 -0
  30. package/build/es/index.js.map +1 -0
  31. package/build/es/index.typings.d.ts +1 -0
  32. package/build/es/index.typings.js +2 -0
  33. package/build/es/index.typings.js.map +1 -0
  34. package/build/es/meta.d.ts +1 -0
  35. package/build/es/meta.js +2 -0
  36. package/build/es/meta.js.map +1 -0
  37. package/build/es/package.json +3 -0
  38. package/build/es/src/identity-oauth-v1-refresh-token-oauth.context.d.ts +6 -0
  39. package/build/es/src/identity-oauth-v1-refresh-token-oauth.context.js +6 -0
  40. package/build/es/src/identity-oauth-v1-refresh-token-oauth.context.js.map +1 -0
  41. package/build/es/src/identity-oauth-v1-refresh-token-oauth.http.d.ts +21 -0
  42. package/build/es/src/identity-oauth-v1-refresh-token-oauth.http.js +129 -0
  43. package/build/es/src/identity-oauth-v1-refresh-token-oauth.http.js.map +1 -0
  44. package/build/es/src/identity-oauth-v1-refresh-token-oauth.meta.d.ts +14 -0
  45. package/build/es/src/identity-oauth-v1-refresh-token-oauth.meta.js +38 -0
  46. package/build/es/src/identity-oauth-v1-refresh-token-oauth.meta.js.map +1 -0
  47. package/build/es/src/identity-oauth-v1-refresh-token-oauth.public.d.ts +34 -0
  48. package/build/es/src/identity-oauth-v1-refresh-token-oauth.public.js +14 -0
  49. package/build/es/src/identity-oauth-v1-refresh-token-oauth.public.js.map +1 -0
  50. package/build/es/src/identity-oauth-v1-refresh-token-oauth.types.d.ts +249 -0
  51. package/build/es/src/identity-oauth-v1-refresh-token-oauth.types.js +14 -0
  52. package/build/es/src/identity-oauth-v1-refresh-token-oauth.types.js.map +1 -0
  53. package/build/{identity-oauth-v1-refresh-token-oauth.universal-BzqSyI-5.d.ts → es/src/identity-oauth-v1-refresh-token-oauth.universal.d.ts} +65 -48
  54. package/build/es/src/identity-oauth-v1-refresh-token-oauth.universal.js +115 -0
  55. package/build/es/src/identity-oauth-v1-refresh-token-oauth.universal.js.map +1 -0
  56. package/build/internal/cjs/index.d.ts +1 -0
  57. package/build/internal/cjs/index.js +18 -0
  58. package/build/internal/cjs/index.js.map +1 -0
  59. package/build/internal/cjs/index.typings.d.ts +1 -0
  60. package/build/internal/cjs/index.typings.js +18 -0
  61. package/build/internal/cjs/index.typings.js.map +1 -0
  62. package/build/internal/cjs/meta.d.ts +1 -0
  63. package/build/internal/cjs/meta.js +18 -0
  64. package/build/internal/cjs/meta.js.map +1 -0
  65. package/build/internal/cjs/src/identity-oauth-v1-refresh-token-oauth.context.d.ts +6 -0
  66. package/build/internal/cjs/src/identity-oauth-v1-refresh-token-oauth.context.js +10 -0
  67. package/build/internal/cjs/src/identity-oauth-v1-refresh-token-oauth.context.js.map +1 -0
  68. package/build/internal/cjs/src/identity-oauth-v1-refresh-token-oauth.http.d.ts +21 -0
  69. package/build/internal/cjs/src/identity-oauth-v1-refresh-token-oauth.http.js +134 -0
  70. package/build/internal/cjs/src/identity-oauth-v1-refresh-token-oauth.http.js.map +1 -0
  71. package/build/internal/cjs/src/identity-oauth-v1-refresh-token-oauth.meta.d.ts +14 -0
  72. package/build/internal/cjs/src/identity-oauth-v1-refresh-token-oauth.meta.js +66 -0
  73. package/build/internal/cjs/src/identity-oauth-v1-refresh-token-oauth.meta.js.map +1 -0
  74. package/build/internal/cjs/src/identity-oauth-v1-refresh-token-oauth.public.d.ts +34 -0
  75. package/build/internal/cjs/src/identity-oauth-v1-refresh-token-oauth.public.js +20 -0
  76. package/build/internal/cjs/src/identity-oauth-v1-refresh-token-oauth.public.js.map +1 -0
  77. package/build/internal/cjs/src/identity-oauth-v1-refresh-token-oauth.types.d.ts +249 -0
  78. package/build/internal/cjs/src/identity-oauth-v1-refresh-token-oauth.types.js +17 -0
  79. package/build/internal/cjs/src/identity-oauth-v1-refresh-token-oauth.types.js.map +1 -0
  80. package/build/internal/{identity-oauth-v1-refresh-token-oauth.universal-BzqSyI-5.d.mts → cjs/src/identity-oauth-v1-refresh-token-oauth.universal.d.ts} +65 -48
  81. package/build/internal/cjs/src/identity-oauth-v1-refresh-token-oauth.universal.js +143 -0
  82. package/build/internal/cjs/src/identity-oauth-v1-refresh-token-oauth.universal.js.map +1 -0
  83. package/build/internal/es/index.d.ts +1 -0
  84. package/build/internal/es/index.js +2 -0
  85. package/build/internal/es/index.js.map +1 -0
  86. package/build/internal/es/index.typings.d.ts +1 -0
  87. package/build/internal/es/index.typings.js +2 -0
  88. package/build/internal/es/index.typings.js.map +1 -0
  89. package/build/internal/es/meta.d.ts +1 -0
  90. package/build/internal/es/meta.js +2 -0
  91. package/build/internal/es/meta.js.map +1 -0
  92. package/build/internal/es/src/identity-oauth-v1-refresh-token-oauth.context.d.ts +6 -0
  93. package/build/internal/es/src/identity-oauth-v1-refresh-token-oauth.context.js +6 -0
  94. package/build/internal/es/src/identity-oauth-v1-refresh-token-oauth.context.js.map +1 -0
  95. package/build/internal/es/src/identity-oauth-v1-refresh-token-oauth.http.d.ts +21 -0
  96. package/build/internal/es/src/identity-oauth-v1-refresh-token-oauth.http.js +129 -0
  97. package/build/internal/es/src/identity-oauth-v1-refresh-token-oauth.http.js.map +1 -0
  98. package/build/internal/es/src/identity-oauth-v1-refresh-token-oauth.meta.d.ts +14 -0
  99. package/build/internal/es/src/identity-oauth-v1-refresh-token-oauth.meta.js +38 -0
  100. package/build/internal/es/src/identity-oauth-v1-refresh-token-oauth.meta.js.map +1 -0
  101. package/build/internal/es/src/identity-oauth-v1-refresh-token-oauth.public.d.ts +34 -0
  102. package/build/internal/es/src/identity-oauth-v1-refresh-token-oauth.public.js +14 -0
  103. package/build/internal/es/src/identity-oauth-v1-refresh-token-oauth.public.js.map +1 -0
  104. package/build/internal/es/src/identity-oauth-v1-refresh-token-oauth.types.d.ts +249 -0
  105. package/build/internal/es/src/identity-oauth-v1-refresh-token-oauth.types.js +14 -0
  106. package/build/internal/es/src/identity-oauth-v1-refresh-token-oauth.types.js.map +1 -0
  107. package/build/internal/{identity-oauth-v1-refresh-token-oauth.universal-BzqSyI-5.d.ts → es/src/identity-oauth-v1-refresh-token-oauth.universal.d.ts} +65 -48
  108. package/build/internal/es/src/identity-oauth-v1-refresh-token-oauth.universal.js +115 -0
  109. package/build/internal/es/src/identity-oauth-v1-refresh-token-oauth.universal.js.map +1 -0
  110. package/package.json +13 -14
  111. package/build/index.d.mts +0 -37
  112. package/build/index.d.ts +0 -37
  113. package/build/index.js +0 -259
  114. package/build/index.js.map +0 -1
  115. package/build/index.mjs +0 -233
  116. package/build/index.mjs.map +0 -1
  117. package/build/internal/index.d.mts +0 -37
  118. package/build/internal/index.d.ts +0 -37
  119. package/build/internal/index.js +0 -259
  120. package/build/internal/index.js.map +0 -1
  121. package/build/internal/index.mjs +0 -233
  122. package/build/internal/index.mjs.map +0 -1
  123. package/build/internal/meta.d.mts +0 -79
  124. package/build/internal/meta.d.ts +0 -79
  125. package/build/internal/meta.js +0 -182
  126. package/build/internal/meta.js.map +0 -1
  127. package/build/internal/meta.mjs +0 -154
  128. package/build/internal/meta.mjs.map +0 -1
  129. package/build/meta.d.mts +0 -79
  130. package/build/meta.d.ts +0 -79
  131. package/build/meta.js +0 -182
  132. package/build/meta.js.map +0 -1
  133. package/build/meta.mjs +0 -154
  134. package/build/meta.mjs.map +0 -1
@@ -1,182 +0,0 @@
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
@@ -1 +0,0 @@
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":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA,eAAAA;AAAA,EAAA,iBAAAC;AAAA;AAAA;;;ACAA,mBAA6C;AAC7C,IAAAC,gBAA6C;AAC7C,6BAA+B;AAC/B,0BAA2B;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,IACA,uBAAuB;AAAA,MACrB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,MACA;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,MACA;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,MACA;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,GAAG;AAAA,MACD;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,oBAAoB;AAAA,MAClB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,yBAAyB;AAAA,MACvB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,EACF;AAEA,aAAO,gCAAW,OAAO,OAAO,MAAM,EAAE,iBAAiB,CAAC,CAAC;AAC7D;AAEA,IAAM,eAAe;AAmBd,SAAS,MAAM,SAA6C;AACjE,WAAS,QAAQ,EAAE,KAAK,GAAQ;AAC9B,UAAM,qBAAiB,uCAAe,SAAS;AAAA,MAC7C,EAAE,aAAa,2CAA8B,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,MACN,mBAAmB,CAACC,iBAClB,uCAAeA,UAAS;AAAA,QACtB;AAAA,UACE,aAAa;AAAA,UACb,OAAO,CAAC,EAAE,MAAM,OAAO,CAAC;AAAA,QAC1B;AAAA,MACF,CAAC;AAAA,IACL;AAEA,WAAO;AAAA,EACT;AAEA,SAAO;AACT;AAGO,SAAS,UAAU,SAA6C;AACrE,WAAS,YAAY,EAAE,KAAK,GAAQ;AAClC,UAAM,qBAAiB,uCAAe,SAAS;AAAA,MAC7C,EAAE,aAAa,2CAA8B,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":["token","tokenInfo","import_bytes","payload","token","tokenInfo"]}
@@ -1,154 +0,0 @@
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
@@ -1 +0,0 @@
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":"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","names":["payload","token","tokenInfo"]}
package/build/meta.d.mts DELETED
@@ -1,79 +0,0 @@
1
- import { d as RawHttpRequest$1, R as RawHttpResponse$1, b as TokenInfoResponse$1 } from './identity-oauth-v1-refresh-token-oauth.universal-BzqSyI-5.mjs';
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.d.ts DELETED
@@ -1,79 +0,0 @@
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 };