ce-storefront 0.12.2 → 0.12.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/docs/sdks/auth/README.md +45 -23
- package/esm/funcs/authGetAnonymousToken.d.ts +2 -1
- package/esm/funcs/authGetAnonymousToken.d.ts.map +1 -1
- package/esm/funcs/authGetAnonymousToken.js +6 -2
- package/esm/funcs/authGetAnonymousToken.js.map +1 -1
- package/esm/funcs/authGetUserDetail.d.ts +2 -1
- package/esm/funcs/authGetUserDetail.d.ts.map +1 -1
- package/esm/funcs/authGetUserDetail.js +6 -2
- package/esm/funcs/authGetUserDetail.js.map +1 -1
- package/esm/funcs/authLoginWithEmail.d.ts +2 -1
- package/esm/funcs/authLoginWithEmail.d.ts.map +1 -1
- package/esm/funcs/authLoginWithEmail.js +6 -2
- package/esm/funcs/authLoginWithEmail.js.map +1 -1
- package/esm/funcs/authLoginWithPhone.d.ts +2 -1
- package/esm/funcs/authLoginWithPhone.d.ts.map +1 -1
- package/esm/funcs/authLoginWithPhone.js +6 -2
- package/esm/funcs/authLoginWithPhone.js.map +1 -1
- package/esm/funcs/authRefreshToken.d.ts +2 -1
- package/esm/funcs/authRefreshToken.d.ts.map +1 -1
- package/esm/funcs/authRefreshToken.js +6 -2
- package/esm/funcs/authRefreshToken.js.map +1 -1
- package/esm/funcs/authUpdateUser.d.ts +2 -1
- package/esm/funcs/authUpdateUser.d.ts.map +1 -1
- package/esm/funcs/authUpdateUser.js +6 -2
- package/esm/funcs/authUpdateUser.js.map +1 -1
- package/esm/funcs/authVerifyOtp.d.ts +2 -1
- package/esm/funcs/authVerifyOtp.d.ts.map +1 -1
- package/esm/funcs/authVerifyOtp.js +6 -2
- package/esm/funcs/authVerifyOtp.js.map +1 -1
- package/esm/lib/config.d.ts +2 -2
- package/esm/lib/config.js +2 -2
- package/esm/models/operations/generateotp.d.ts +10 -10
- package/esm/models/operations/generateotp.d.ts.map +1 -1
- package/esm/models/operations/generateotp.js +10 -10
- package/esm/models/operations/generateotp.js.map +1 -1
- package/esm/models/operations/getuserdetail.d.ts +8 -8
- package/esm/models/operations/getuserdetail.d.ts.map +1 -1
- package/esm/models/operations/getuserdetail.js +8 -8
- package/esm/models/operations/getuserdetail.js.map +1 -1
- package/esm/models/operations/loginwithemail.d.ts +10 -10
- package/esm/models/operations/loginwithemail.d.ts.map +1 -1
- package/esm/models/operations/loginwithemail.js +10 -10
- package/esm/models/operations/loginwithemail.js.map +1 -1
- package/esm/models/operations/loginwithphone.d.ts +10 -10
- package/esm/models/operations/loginwithphone.d.ts.map +1 -1
- package/esm/models/operations/loginwithphone.js +11 -11
- package/esm/models/operations/loginwithphone.js.map +1 -1
- package/esm/models/operations/loginwithwhatsapp.d.ts +10 -10
- package/esm/models/operations/loginwithwhatsapp.d.ts.map +1 -1
- package/esm/models/operations/loginwithwhatsapp.js +10 -10
- package/esm/models/operations/loginwithwhatsapp.js.map +1 -1
- package/esm/models/operations/logout.d.ts +12 -12
- package/esm/models/operations/logout.d.ts.map +1 -1
- package/esm/models/operations/logout.js +12 -12
- package/esm/models/operations/logout.js.map +1 -1
- package/esm/models/operations/refreshtoken.d.ts +12 -12
- package/esm/models/operations/refreshtoken.d.ts.map +1 -1
- package/esm/models/operations/refreshtoken.js +12 -12
- package/esm/models/operations/refreshtoken.js.map +1 -1
- package/esm/models/operations/updateuser.d.ts +8 -8
- package/esm/models/operations/updateuser.d.ts.map +1 -1
- package/esm/models/operations/updateuser.js +8 -8
- package/esm/models/operations/updateuser.js.map +1 -1
- package/esm/models/operations/verifyotp.d.ts +8 -8
- package/esm/models/operations/verifyotp.d.ts.map +1 -1
- package/esm/models/operations/verifyotp.js +8 -8
- package/esm/models/operations/verifyotp.js.map +1 -1
- package/jsr.json +1 -1
- package/package.json +1 -1
- package/src/funcs/authGetAnonymousToken.ts +15 -2
- package/src/funcs/authGetUserDetail.ts +19 -2
- package/src/funcs/authLoginWithEmail.ts +19 -2
- package/src/funcs/authLoginWithPhone.ts +19 -2
- package/src/funcs/authRefreshToken.ts +15 -2
- package/src/funcs/authUpdateUser.ts +15 -2
- package/src/funcs/authVerifyOtp.ts +19 -2
- package/src/lib/config.ts +2 -2
- package/src/models/operations/generateotp.ts +20 -20
- package/src/models/operations/getuserdetail.ts +16 -16
- package/src/models/operations/loginwithemail.ts +20 -20
- package/src/models/operations/loginwithphone.ts +21 -21
- package/src/models/operations/loginwithwhatsapp.ts +20 -20
- package/src/models/operations/logout.ts +24 -24
- package/src/models/operations/refreshtoken.ts +24 -24
- package/src/models/operations/updateuser.ts +16 -16
- package/src/models/operations/verifyotp.ts +16 -16
|
@@ -74,9 +74,9 @@ export function verifyOtpRequestBodyFromJSON(jsonString) {
|
|
|
74
74
|
}
|
|
75
75
|
/** @internal */
|
|
76
76
|
export const VerifyOtpContent$inboundSchema = z.object({
|
|
77
|
-
user: components.User$inboundSchema
|
|
78
|
-
access_token: z.string()
|
|
79
|
-
refresh_token: z.string()
|
|
77
|
+
user: components.User$inboundSchema,
|
|
78
|
+
access_token: z.string(),
|
|
79
|
+
refresh_token: z.string(),
|
|
80
80
|
}).transform((v) => {
|
|
81
81
|
return remap$(v, {
|
|
82
82
|
"access_token": "accessToken",
|
|
@@ -85,9 +85,9 @@ export const VerifyOtpContent$inboundSchema = z.object({
|
|
|
85
85
|
});
|
|
86
86
|
/** @internal */
|
|
87
87
|
export const VerifyOtpContent$outboundSchema = z.object({
|
|
88
|
-
user: components.User$outboundSchema
|
|
89
|
-
accessToken: z.string()
|
|
90
|
-
refreshToken: z.string()
|
|
88
|
+
user: components.User$outboundSchema,
|
|
89
|
+
accessToken: z.string(),
|
|
90
|
+
refreshToken: z.string(),
|
|
91
91
|
}).transform((v) => {
|
|
92
92
|
return remap$(v, {
|
|
93
93
|
accessToken: "access_token",
|
|
@@ -115,13 +115,13 @@ export function verifyOtpContentFromJSON(jsonString) {
|
|
|
115
115
|
export const VerifyOtpResponseBody$inboundSchema = z.object({
|
|
116
116
|
message: z.string(),
|
|
117
117
|
success: z.boolean(),
|
|
118
|
-
content: z.lazy(() => VerifyOtpContent$inboundSchema)
|
|
118
|
+
content: z.lazy(() => VerifyOtpContent$inboundSchema),
|
|
119
119
|
});
|
|
120
120
|
/** @internal */
|
|
121
121
|
export const VerifyOtpResponseBody$outboundSchema = z.object({
|
|
122
122
|
message: z.string(),
|
|
123
123
|
success: z.boolean(),
|
|
124
|
-
content: z.lazy(() => VerifyOtpContent$outboundSchema)
|
|
124
|
+
content: z.lazy(() => VerifyOtpContent$outboundSchema),
|
|
125
125
|
});
|
|
126
126
|
/**
|
|
127
127
|
* @internal
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"verifyotp.js","sourceRoot":"","sources":["../../../src/models/operations/verifyotp.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AACzB,OAAO,EAAE,KAAK,IAAI,MAAM,EAAE,MAAM,yBAAyB,CAAC;AAC1D,OAAO,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAGjD,OAAO,KAAK,UAAU,MAAM,wBAAwB,CAAC;AAGrD;;GAEG;AACH,MAAM,CAAC,MAAM,SAAS,GAAG;IACvB,KAAK,EAAE,OAAO;IACd,QAAQ,EAAE,UAAU;IACpB,aAAa,EAAE,gBAAgB;IAC/B,WAAW,EAAE,cAAc;IAC3B,WAAW,EAAE,cAAc;IAC3B,WAAW,EAAE,cAAc;IAC3B,WAAW,EAAE,cAAc;CACnB,CAAC;AAsDX,gBAAgB;AAChB,MAAM,CAAC,MAAM,uBAAuB,GAAsC,CAAC;KACxE,UAAU,CAAC,SAAS,CAAC,CAAC;AAEzB,gBAAgB;AAChB,MAAM,CAAC,MAAM,wBAAwB,GACnC,uBAAuB,CAAC;AAE1B;;;GAGG;AACH,MAAM,KAAW,UAAU,CAK1B;AALD,WAAiB,UAAU;IACzB,yDAAyD;IAC5C,wBAAa,GAAG,uBAAuB,CAAC;IACrD,0D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+16,7 @@ import {
|
|
|
16
16
|
RequestTimeoutError,
|
|
17
17
|
UnexpectedClientError,
|
|
18
18
|
} from "../models/errors/httpclienterrors.js";
|
|
19
|
+
import * as errors from "../models/errors/index.js";
|
|
19
20
|
import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
|
|
20
21
|
import * as operations from "../models/operations/index.js";
|
|
21
22
|
import { APICall, APIPromise } from "../types/async.js";
|
|
@@ -35,6 +36,8 @@ export function authGetAnonymousToken(
|
|
|
35
36
|
): APIPromise<
|
|
36
37
|
Result<
|
|
37
38
|
operations.GetAnonymousTokenResponseBody,
|
|
39
|
+
| errors.BadRequest
|
|
40
|
+
| errors.Unauthorized
|
|
38
41
|
| CeError
|
|
39
42
|
| SDKValidationError
|
|
40
43
|
| UnexpectedClientError
|
|
@@ -59,6 +62,8 @@ async function $do(
|
|
|
59
62
|
[
|
|
60
63
|
Result<
|
|
61
64
|
operations.GetAnonymousTokenResponseBody,
|
|
65
|
+
| errors.BadRequest
|
|
66
|
+
| errors.Unauthorized
|
|
62
67
|
| CeError
|
|
63
68
|
| SDKValidationError
|
|
64
69
|
| UnexpectedClientError
|
|
@@ -115,7 +120,7 @@ async function $do(
|
|
|
115
120
|
|
|
116
121
|
const doResult = await client._do(req, {
|
|
117
122
|
context,
|
|
118
|
-
errorCodes: ["4XX", "5XX"],
|
|
123
|
+
errorCodes: ["400", "401", "4XX", "5XX"],
|
|
119
124
|
retryConfig: context.retryConfig,
|
|
120
125
|
retryCodes: context.retryCodes,
|
|
121
126
|
});
|
|
@@ -124,8 +129,14 @@ async function $do(
|
|
|
124
129
|
}
|
|
125
130
|
const response = doResult.value;
|
|
126
131
|
|
|
132
|
+
const responseFields = {
|
|
133
|
+
HttpMeta: { Response: response, Request: req },
|
|
134
|
+
};
|
|
135
|
+
|
|
127
136
|
const [result] = await M.match<
|
|
128
137
|
operations.GetAnonymousTokenResponseBody,
|
|
138
|
+
| errors.BadRequest
|
|
139
|
+
| errors.Unauthorized
|
|
129
140
|
| CeError
|
|
130
141
|
| SDKValidationError
|
|
131
142
|
| UnexpectedClientError
|
|
@@ -135,9 +146,11 @@ async function $do(
|
|
|
135
146
|
| ConnectionError
|
|
136
147
|
>(
|
|
137
148
|
M.json(200, operations.GetAnonymousTokenResponseBody$inboundSchema),
|
|
149
|
+
M.jsonErr(400, errors.BadRequest$inboundSchema),
|
|
150
|
+
M.jsonErr(401, errors.Unauthorized$inboundSchema),
|
|
138
151
|
M.fail("4XX"),
|
|
139
152
|
M.fail("5XX"),
|
|
140
|
-
)(response);
|
|
153
|
+
)(response, { extraFields: responseFields });
|
|
141
154
|
if (!result.ok) {
|
|
142
155
|
return [result, { status: "complete", request: req, response }];
|
|
143
156
|
}
|
|
@@ -18,6 +18,7 @@ import {
|
|
|
18
18
|
RequestTimeoutError,
|
|
19
19
|
UnexpectedClientError,
|
|
20
20
|
} from "../models/errors/httpclienterrors.js";
|
|
21
|
+
import * as errors from "../models/errors/index.js";
|
|
21
22
|
import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
|
|
22
23
|
import * as operations from "../models/operations/index.js";
|
|
23
24
|
import { APICall, APIPromise } from "../types/async.js";
|
|
@@ -36,6 +37,9 @@ export function authGetUserDetail(
|
|
|
36
37
|
): APIPromise<
|
|
37
38
|
Result<
|
|
38
39
|
operations.GetUserDetailResponseBody,
|
|
40
|
+
| errors.BadRequest
|
|
41
|
+
| errors.Unauthorized
|
|
42
|
+
| errors.NotFound
|
|
39
43
|
| CeError
|
|
40
44
|
| SDKValidationError
|
|
41
45
|
| UnexpectedClientError
|
|
@@ -60,6 +64,9 @@ async function $do(
|
|
|
60
64
|
[
|
|
61
65
|
Result<
|
|
62
66
|
operations.GetUserDetailResponseBody,
|
|
67
|
+
| errors.BadRequest
|
|
68
|
+
| errors.Unauthorized
|
|
69
|
+
| errors.NotFound
|
|
63
70
|
| CeError
|
|
64
71
|
| SDKValidationError
|
|
65
72
|
| UnexpectedClientError
|
|
@@ -129,7 +136,7 @@ async function $do(
|
|
|
129
136
|
|
|
130
137
|
const doResult = await client._do(req, {
|
|
131
138
|
context,
|
|
132
|
-
errorCodes: ["4XX", "5XX"],
|
|
139
|
+
errorCodes: ["400", "401", "404", "4XX", "5XX"],
|
|
133
140
|
retryConfig: context.retryConfig,
|
|
134
141
|
retryCodes: context.retryCodes,
|
|
135
142
|
});
|
|
@@ -138,8 +145,15 @@ async function $do(
|
|
|
138
145
|
}
|
|
139
146
|
const response = doResult.value;
|
|
140
147
|
|
|
148
|
+
const responseFields = {
|
|
149
|
+
HttpMeta: { Response: response, Request: req },
|
|
150
|
+
};
|
|
151
|
+
|
|
141
152
|
const [result] = await M.match<
|
|
142
153
|
operations.GetUserDetailResponseBody,
|
|
154
|
+
| errors.BadRequest
|
|
155
|
+
| errors.Unauthorized
|
|
156
|
+
| errors.NotFound
|
|
143
157
|
| CeError
|
|
144
158
|
| SDKValidationError
|
|
145
159
|
| UnexpectedClientError
|
|
@@ -149,9 +163,12 @@ async function $do(
|
|
|
149
163
|
| ConnectionError
|
|
150
164
|
>(
|
|
151
165
|
M.json(200, operations.GetUserDetailResponseBody$inboundSchema),
|
|
166
|
+
M.jsonErr(400, errors.BadRequest$inboundSchema),
|
|
167
|
+
M.jsonErr(401, errors.Unauthorized$inboundSchema),
|
|
168
|
+
M.jsonErr(404, errors.NotFound$inboundSchema),
|
|
152
169
|
M.fail("4XX"),
|
|
153
170
|
M.fail("5XX"),
|
|
154
|
-
)(response);
|
|
171
|
+
)(response, { extraFields: responseFields });
|
|
155
172
|
if (!result.ok) {
|
|
156
173
|
return [result, { status: "complete", request: req, response }];
|
|
157
174
|
}
|
|
@@ -18,6 +18,7 @@ import {
|
|
|
18
18
|
RequestTimeoutError,
|
|
19
19
|
UnexpectedClientError,
|
|
20
20
|
} from "../models/errors/httpclienterrors.js";
|
|
21
|
+
import * as errors from "../models/errors/index.js";
|
|
21
22
|
import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
|
|
22
23
|
import * as operations from "../models/operations/index.js";
|
|
23
24
|
import { APICall, APIPromise } from "../types/async.js";
|
|
@@ -36,6 +37,9 @@ export function authLoginWithEmail(
|
|
|
36
37
|
): APIPromise<
|
|
37
38
|
Result<
|
|
38
39
|
operations.LoginWithEmailResponseBody,
|
|
40
|
+
| errors.BadRequest
|
|
41
|
+
| errors.Unauthorized
|
|
42
|
+
| errors.NotFound
|
|
39
43
|
| CeError
|
|
40
44
|
| SDKValidationError
|
|
41
45
|
| UnexpectedClientError
|
|
@@ -60,6 +64,9 @@ async function $do(
|
|
|
60
64
|
[
|
|
61
65
|
Result<
|
|
62
66
|
operations.LoginWithEmailResponseBody,
|
|
67
|
+
| errors.BadRequest
|
|
68
|
+
| errors.Unauthorized
|
|
69
|
+
| errors.NotFound
|
|
63
70
|
| CeError
|
|
64
71
|
| SDKValidationError
|
|
65
72
|
| UnexpectedClientError
|
|
@@ -123,7 +130,7 @@ async function $do(
|
|
|
123
130
|
|
|
124
131
|
const doResult = await client._do(req, {
|
|
125
132
|
context,
|
|
126
|
-
errorCodes: ["4XX", "5XX"],
|
|
133
|
+
errorCodes: ["400", "401", "404", "4XX", "5XX"],
|
|
127
134
|
retryConfig: context.retryConfig,
|
|
128
135
|
retryCodes: context.retryCodes,
|
|
129
136
|
});
|
|
@@ -132,8 +139,15 @@ async function $do(
|
|
|
132
139
|
}
|
|
133
140
|
const response = doResult.value;
|
|
134
141
|
|
|
142
|
+
const responseFields = {
|
|
143
|
+
HttpMeta: { Response: response, Request: req },
|
|
144
|
+
};
|
|
145
|
+
|
|
135
146
|
const [result] = await M.match<
|
|
136
147
|
operations.LoginWithEmailResponseBody,
|
|
148
|
+
| errors.BadRequest
|
|
149
|
+
| errors.Unauthorized
|
|
150
|
+
| errors.NotFound
|
|
137
151
|
| CeError
|
|
138
152
|
| SDKValidationError
|
|
139
153
|
| UnexpectedClientError
|
|
@@ -143,9 +157,12 @@ async function $do(
|
|
|
143
157
|
| ConnectionError
|
|
144
158
|
>(
|
|
145
159
|
M.json(200, operations.LoginWithEmailResponseBody$inboundSchema),
|
|
160
|
+
M.jsonErr(400, errors.BadRequest$inboundSchema),
|
|
161
|
+
M.jsonErr(401, errors.Unauthorized$inboundSchema),
|
|
162
|
+
M.jsonErr(404, errors.NotFound$inboundSchema),
|
|
146
163
|
M.fail("4XX"),
|
|
147
164
|
M.fail("5XX"),
|
|
148
|
-
)(response);
|
|
165
|
+
)(response, { extraFields: responseFields });
|
|
149
166
|
if (!result.ok) {
|
|
150
167
|
return [result, { status: "complete", request: req, response }];
|
|
151
168
|
}
|
|
@@ -18,6 +18,7 @@ import {
|
|
|
18
18
|
RequestTimeoutError,
|
|
19
19
|
UnexpectedClientError,
|
|
20
20
|
} from "../models/errors/httpclienterrors.js";
|
|
21
|
+
import * as errors from "../models/errors/index.js";
|
|
21
22
|
import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
|
|
22
23
|
import * as operations from "../models/operations/index.js";
|
|
23
24
|
import { APICall, APIPromise } from "../types/async.js";
|
|
@@ -36,6 +37,9 @@ export function authLoginWithPhone(
|
|
|
36
37
|
): APIPromise<
|
|
37
38
|
Result<
|
|
38
39
|
operations.LoginWithPhoneResponseBody,
|
|
40
|
+
| errors.BadRequest
|
|
41
|
+
| errors.Unauthorized
|
|
42
|
+
| errors.NotFound
|
|
39
43
|
| CeError
|
|
40
44
|
| SDKValidationError
|
|
41
45
|
| UnexpectedClientError
|
|
@@ -60,6 +64,9 @@ async function $do(
|
|
|
60
64
|
[
|
|
61
65
|
Result<
|
|
62
66
|
operations.LoginWithPhoneResponseBody,
|
|
67
|
+
| errors.BadRequest
|
|
68
|
+
| errors.Unauthorized
|
|
69
|
+
| errors.NotFound
|
|
63
70
|
| CeError
|
|
64
71
|
| SDKValidationError
|
|
65
72
|
| UnexpectedClientError
|
|
@@ -123,7 +130,7 @@ async function $do(
|
|
|
123
130
|
|
|
124
131
|
const doResult = await client._do(req, {
|
|
125
132
|
context,
|
|
126
|
-
errorCodes: ["4XX", "5XX"],
|
|
133
|
+
errorCodes: ["400", "401", "404", "4XX", "5XX"],
|
|
127
134
|
retryConfig: context.retryConfig,
|
|
128
135
|
retryCodes: context.retryCodes,
|
|
129
136
|
});
|
|
@@ -132,8 +139,15 @@ async function $do(
|
|
|
132
139
|
}
|
|
133
140
|
const response = doResult.value;
|
|
134
141
|
|
|
142
|
+
const responseFields = {
|
|
143
|
+
HttpMeta: { Response: response, Request: req },
|
|
144
|
+
};
|
|
145
|
+
|
|
135
146
|
const [result] = await M.match<
|
|
136
147
|
operations.LoginWithPhoneResponseBody,
|
|
148
|
+
| errors.BadRequest
|
|
149
|
+
| errors.Unauthorized
|
|
150
|
+
| errors.NotFound
|
|
137
151
|
| CeError
|
|
138
152
|
| SDKValidationError
|
|
139
153
|
| UnexpectedClientError
|
|
@@ -143,9 +157,12 @@ async function $do(
|
|
|
143
157
|
| ConnectionError
|
|
144
158
|
>(
|
|
145
159
|
M.json(200, operations.LoginWithPhoneResponseBody$inboundSchema),
|
|
160
|
+
M.jsonErr(400, errors.BadRequest$inboundSchema),
|
|
161
|
+
M.jsonErr(401, errors.Unauthorized$inboundSchema),
|
|
162
|
+
M.jsonErr(404, errors.NotFound$inboundSchema),
|
|
146
163
|
M.fail("4XX"),
|
|
147
164
|
M.fail("5XX"),
|
|
148
|
-
)(response);
|
|
165
|
+
)(response, { extraFields: responseFields });
|
|
149
166
|
if (!result.ok) {
|
|
150
167
|
return [result, { status: "complete", request: req, response }];
|
|
151
168
|
}
|
|
@@ -18,6 +18,7 @@ import {
|
|
|
18
18
|
RequestTimeoutError,
|
|
19
19
|
UnexpectedClientError,
|
|
20
20
|
} from "../models/errors/httpclienterrors.js";
|
|
21
|
+
import * as errors from "../models/errors/index.js";
|
|
21
22
|
import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
|
|
22
23
|
import * as operations from "../models/operations/index.js";
|
|
23
24
|
import { APICall, APIPromise } from "../types/async.js";
|
|
@@ -36,6 +37,8 @@ export function authRefreshToken(
|
|
|
36
37
|
): APIPromise<
|
|
37
38
|
Result<
|
|
38
39
|
operations.RefreshTokenResponseBody,
|
|
40
|
+
| errors.BadRequest
|
|
41
|
+
| errors.NotFound
|
|
39
42
|
| CeError
|
|
40
43
|
| SDKValidationError
|
|
41
44
|
| UnexpectedClientError
|
|
@@ -60,6 +63,8 @@ async function $do(
|
|
|
60
63
|
[
|
|
61
64
|
Result<
|
|
62
65
|
operations.RefreshTokenResponseBody,
|
|
66
|
+
| errors.BadRequest
|
|
67
|
+
| errors.NotFound
|
|
63
68
|
| CeError
|
|
64
69
|
| SDKValidationError
|
|
65
70
|
| UnexpectedClientError
|
|
@@ -123,7 +128,7 @@ async function $do(
|
|
|
123
128
|
|
|
124
129
|
const doResult = await client._do(req, {
|
|
125
130
|
context,
|
|
126
|
-
errorCodes: ["4XX", "5XX"],
|
|
131
|
+
errorCodes: ["400", "404", "4XX", "5XX"],
|
|
127
132
|
retryConfig: context.retryConfig,
|
|
128
133
|
retryCodes: context.retryCodes,
|
|
129
134
|
});
|
|
@@ -132,8 +137,14 @@ async function $do(
|
|
|
132
137
|
}
|
|
133
138
|
const response = doResult.value;
|
|
134
139
|
|
|
140
|
+
const responseFields = {
|
|
141
|
+
HttpMeta: { Response: response, Request: req },
|
|
142
|
+
};
|
|
143
|
+
|
|
135
144
|
const [result] = await M.match<
|
|
136
145
|
operations.RefreshTokenResponseBody,
|
|
146
|
+
| errors.BadRequest
|
|
147
|
+
| errors.NotFound
|
|
137
148
|
| CeError
|
|
138
149
|
| SDKValidationError
|
|
139
150
|
| UnexpectedClientError
|
|
@@ -143,9 +154,11 @@ async function $do(
|
|
|
143
154
|
| ConnectionError
|
|
144
155
|
>(
|
|
145
156
|
M.json(200, operations.RefreshTokenResponseBody$inboundSchema),
|
|
157
|
+
M.jsonErr(400, errors.BadRequest$inboundSchema),
|
|
158
|
+
M.jsonErr(404, errors.NotFound$inboundSchema),
|
|
146
159
|
M.fail("4XX"),
|
|
147
160
|
M.fail("5XX"),
|
|
148
|
-
)(response);
|
|
161
|
+
)(response, { extraFields: responseFields });
|
|
149
162
|
if (!result.ok) {
|
|
150
163
|
return [result, { status: "complete", request: req, response }];
|
|
151
164
|
}
|
|
@@ -18,6 +18,7 @@ import {
|
|
|
18
18
|
RequestTimeoutError,
|
|
19
19
|
UnexpectedClientError,
|
|
20
20
|
} from "../models/errors/httpclienterrors.js";
|
|
21
|
+
import * as errors from "../models/errors/index.js";
|
|
21
22
|
import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
|
|
22
23
|
import * as operations from "../models/operations/index.js";
|
|
23
24
|
import { APICall, APIPromise } from "../types/async.js";
|
|
@@ -36,6 +37,8 @@ export function authUpdateUser(
|
|
|
36
37
|
): APIPromise<
|
|
37
38
|
Result<
|
|
38
39
|
operations.UpdateUserResponseBody,
|
|
40
|
+
| errors.BadRequest
|
|
41
|
+
| errors.Unauthorized
|
|
39
42
|
| CeError
|
|
40
43
|
| SDKValidationError
|
|
41
44
|
| UnexpectedClientError
|
|
@@ -60,6 +63,8 @@ async function $do(
|
|
|
60
63
|
[
|
|
61
64
|
Result<
|
|
62
65
|
operations.UpdateUserResponseBody,
|
|
66
|
+
| errors.BadRequest
|
|
67
|
+
| errors.Unauthorized
|
|
63
68
|
| CeError
|
|
64
69
|
| SDKValidationError
|
|
65
70
|
| UnexpectedClientError
|
|
@@ -130,7 +135,7 @@ async function $do(
|
|
|
130
135
|
|
|
131
136
|
const doResult = await client._do(req, {
|
|
132
137
|
context,
|
|
133
|
-
errorCodes: ["4XX", "5XX"],
|
|
138
|
+
errorCodes: ["400", "401", "4XX", "5XX"],
|
|
134
139
|
retryConfig: context.retryConfig,
|
|
135
140
|
retryCodes: context.retryCodes,
|
|
136
141
|
});
|
|
@@ -139,8 +144,14 @@ async function $do(
|
|
|
139
144
|
}
|
|
140
145
|
const response = doResult.value;
|
|
141
146
|
|
|
147
|
+
const responseFields = {
|
|
148
|
+
HttpMeta: { Response: response, Request: req },
|
|
149
|
+
};
|
|
150
|
+
|
|
142
151
|
const [result] = await M.match<
|
|
143
152
|
operations.UpdateUserResponseBody,
|
|
153
|
+
| errors.BadRequest
|
|
154
|
+
| errors.Unauthorized
|
|
144
155
|
| CeError
|
|
145
156
|
| SDKValidationError
|
|
146
157
|
| UnexpectedClientError
|
|
@@ -150,9 +161,11 @@ async function $do(
|
|
|
150
161
|
| ConnectionError
|
|
151
162
|
>(
|
|
152
163
|
M.json(200, operations.UpdateUserResponseBody$inboundSchema),
|
|
164
|
+
M.jsonErr(400, errors.BadRequest$inboundSchema),
|
|
165
|
+
M.jsonErr(401, errors.Unauthorized$inboundSchema),
|
|
153
166
|
M.fail("4XX"),
|
|
154
167
|
M.fail("5XX"),
|
|
155
|
-
)(response);
|
|
168
|
+
)(response, { extraFields: responseFields });
|
|
156
169
|
if (!result.ok) {
|
|
157
170
|
return [result, { status: "complete", request: req, response }];
|
|
158
171
|
}
|
|
@@ -18,6 +18,7 @@ import {
|
|
|
18
18
|
RequestTimeoutError,
|
|
19
19
|
UnexpectedClientError,
|
|
20
20
|
} from "../models/errors/httpclienterrors.js";
|
|
21
|
+
import * as errors from "../models/errors/index.js";
|
|
21
22
|
import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
|
|
22
23
|
import * as operations from "../models/operations/index.js";
|
|
23
24
|
import { APICall, APIPromise } from "../types/async.js";
|
|
@@ -36,6 +37,9 @@ export function authVerifyOtp(
|
|
|
36
37
|
): APIPromise<
|
|
37
38
|
Result<
|
|
38
39
|
operations.VerifyOtpResponseBody,
|
|
40
|
+
| errors.BadRequest
|
|
41
|
+
| errors.Unauthorized
|
|
42
|
+
| errors.NotFound
|
|
39
43
|
| CeError
|
|
40
44
|
| SDKValidationError
|
|
41
45
|
| UnexpectedClientError
|
|
@@ -60,6 +64,9 @@ async function $do(
|
|
|
60
64
|
[
|
|
61
65
|
Result<
|
|
62
66
|
operations.VerifyOtpResponseBody,
|
|
67
|
+
| errors.BadRequest
|
|
68
|
+
| errors.Unauthorized
|
|
69
|
+
| errors.NotFound
|
|
63
70
|
| CeError
|
|
64
71
|
| SDKValidationError
|
|
65
72
|
| UnexpectedClientError
|
|
@@ -123,7 +130,7 @@ async function $do(
|
|
|
123
130
|
|
|
124
131
|
const doResult = await client._do(req, {
|
|
125
132
|
context,
|
|
126
|
-
errorCodes: ["4XX", "5XX"],
|
|
133
|
+
errorCodes: ["400", "401", "404", "4XX", "5XX"],
|
|
127
134
|
retryConfig: context.retryConfig,
|
|
128
135
|
retryCodes: context.retryCodes,
|
|
129
136
|
});
|
|
@@ -132,8 +139,15 @@ async function $do(
|
|
|
132
139
|
}
|
|
133
140
|
const response = doResult.value;
|
|
134
141
|
|
|
142
|
+
const responseFields = {
|
|
143
|
+
HttpMeta: { Response: response, Request: req },
|
|
144
|
+
};
|
|
145
|
+
|
|
135
146
|
const [result] = await M.match<
|
|
136
147
|
operations.VerifyOtpResponseBody,
|
|
148
|
+
| errors.BadRequest
|
|
149
|
+
| errors.Unauthorized
|
|
150
|
+
| errors.NotFound
|
|
137
151
|
| CeError
|
|
138
152
|
| SDKValidationError
|
|
139
153
|
| UnexpectedClientError
|
|
@@ -143,9 +157,12 @@ async function $do(
|
|
|
143
157
|
| ConnectionError
|
|
144
158
|
>(
|
|
145
159
|
M.json(200, operations.VerifyOtpResponseBody$inboundSchema),
|
|
160
|
+
M.jsonErr(400, errors.BadRequest$inboundSchema),
|
|
161
|
+
M.jsonErr(401, errors.Unauthorized$inboundSchema),
|
|
162
|
+
M.jsonErr(404, errors.NotFound$inboundSchema),
|
|
146
163
|
M.fail("4XX"),
|
|
147
164
|
M.fail("5XX"),
|
|
148
|
-
)(response);
|
|
165
|
+
)(response, { extraFields: responseFields });
|
|
149
166
|
if (!result.ok) {
|
|
150
167
|
return [result, { status: "complete", request: req, response }];
|
|
151
168
|
}
|
package/src/lib/config.ts
CHANGED
|
@@ -76,7 +76,7 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {
|
|
|
76
76
|
export const SDK_METADATA = {
|
|
77
77
|
language: "typescript",
|
|
78
78
|
openapiDocVersion: "1.0",
|
|
79
|
-
sdkVersion: "0.12.
|
|
79
|
+
sdkVersion: "0.12.3",
|
|
80
80
|
genVersion: "2.610.0",
|
|
81
|
-
userAgent: "speakeasy-sdk/typescript 0.12.
|
|
81
|
+
userAgent: "speakeasy-sdk/typescript 0.12.3 2.610.0 1.0 ce-storefront",
|
|
82
82
|
} as const;
|
|
@@ -63,11 +63,11 @@ export type GenerateOtpContent = {
|
|
|
63
63
|
/**
|
|
64
64
|
* A string representing the OTP token.
|
|
65
65
|
*/
|
|
66
|
-
otpToken
|
|
66
|
+
otpToken: string;
|
|
67
67
|
/**
|
|
68
68
|
* This is used for verifying OTP or using subsequent APIs call.
|
|
69
69
|
*/
|
|
70
|
-
otpAction
|
|
70
|
+
otpAction: string;
|
|
71
71
|
};
|
|
72
72
|
|
|
73
73
|
/**
|
|
@@ -77,15 +77,15 @@ export type GenerateOtpResponseBody = {
|
|
|
77
77
|
/**
|
|
78
78
|
* A descriptive message confirming the success or failure of the operation.
|
|
79
79
|
*/
|
|
80
|
-
message
|
|
80
|
+
message: string;
|
|
81
81
|
/**
|
|
82
82
|
* Indicates whether the request was successful or failure (true for success, false for failure).
|
|
83
83
|
*/
|
|
84
|
-
success
|
|
84
|
+
success: boolean;
|
|
85
85
|
/**
|
|
86
86
|
* An object containing the response content.
|
|
87
87
|
*/
|
|
88
|
-
content
|
|
88
|
+
content: GenerateOtpContent;
|
|
89
89
|
};
|
|
90
90
|
|
|
91
91
|
/** @internal */
|
|
@@ -210,8 +210,8 @@ export const GenerateOtpContent$inboundSchema: z.ZodType<
|
|
|
210
210
|
z.ZodTypeDef,
|
|
211
211
|
unknown
|
|
212
212
|
> = z.object({
|
|
213
|
-
otp_token: z.string()
|
|
214
|
-
otp_action: z.string()
|
|
213
|
+
otp_token: z.string(),
|
|
214
|
+
otp_action: z.string(),
|
|
215
215
|
}).transform((v) => {
|
|
216
216
|
return remap$(v, {
|
|
217
217
|
"otp_token": "otpToken",
|
|
@@ -221,8 +221,8 @@ export const GenerateOtpContent$inboundSchema: z.ZodType<
|
|
|
221
221
|
|
|
222
222
|
/** @internal */
|
|
223
223
|
export type GenerateOtpContent$Outbound = {
|
|
224
|
-
otp_token
|
|
225
|
-
otp_action
|
|
224
|
+
otp_token: string;
|
|
225
|
+
otp_action: string;
|
|
226
226
|
};
|
|
227
227
|
|
|
228
228
|
/** @internal */
|
|
@@ -231,8 +231,8 @@ export const GenerateOtpContent$outboundSchema: z.ZodType<
|
|
|
231
231
|
z.ZodTypeDef,
|
|
232
232
|
GenerateOtpContent
|
|
233
233
|
> = z.object({
|
|
234
|
-
otpToken: z.string()
|
|
235
|
-
otpAction: z.string()
|
|
234
|
+
otpToken: z.string(),
|
|
235
|
+
otpAction: z.string(),
|
|
236
236
|
}).transform((v) => {
|
|
237
237
|
return remap$(v, {
|
|
238
238
|
otpToken: "otp_token",
|
|
@@ -277,16 +277,16 @@ export const GenerateOtpResponseBody$inboundSchema: z.ZodType<
|
|
|
277
277
|
z.ZodTypeDef,
|
|
278
278
|
unknown
|
|
279
279
|
> = z.object({
|
|
280
|
-
message: z.string()
|
|
281
|
-
success: z.boolean()
|
|
282
|
-
content: z.lazy(() => GenerateOtpContent$inboundSchema)
|
|
280
|
+
message: z.string(),
|
|
281
|
+
success: z.boolean(),
|
|
282
|
+
content: z.lazy(() => GenerateOtpContent$inboundSchema),
|
|
283
283
|
});
|
|
284
284
|
|
|
285
285
|
/** @internal */
|
|
286
286
|
export type GenerateOtpResponseBody$Outbound = {
|
|
287
|
-
message
|
|
288
|
-
success
|
|
289
|
-
content
|
|
287
|
+
message: string;
|
|
288
|
+
success: boolean;
|
|
289
|
+
content: GenerateOtpContent$Outbound;
|
|
290
290
|
};
|
|
291
291
|
|
|
292
292
|
/** @internal */
|
|
@@ -295,9 +295,9 @@ export const GenerateOtpResponseBody$outboundSchema: z.ZodType<
|
|
|
295
295
|
z.ZodTypeDef,
|
|
296
296
|
GenerateOtpResponseBody
|
|
297
297
|
> = z.object({
|
|
298
|
-
message: z.string()
|
|
299
|
-
success: z.boolean()
|
|
300
|
-
content: z.lazy(() => GenerateOtpContent$outboundSchema)
|
|
298
|
+
message: z.string(),
|
|
299
|
+
success: z.boolean(),
|
|
300
|
+
content: z.lazy(() => GenerateOtpContent$outboundSchema),
|
|
301
301
|
});
|
|
302
302
|
|
|
303
303
|
/**
|