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
|
@@ -19,7 +19,7 @@ export type GetUserDetailRequest = {
|
|
|
19
19
|
* An object containing the response content.
|
|
20
20
|
*/
|
|
21
21
|
export type GetUserDetailContent = {
|
|
22
|
-
user
|
|
22
|
+
user: components.User;
|
|
23
23
|
};
|
|
24
24
|
|
|
25
25
|
/**
|
|
@@ -29,15 +29,15 @@ export type GetUserDetailResponseBody = {
|
|
|
29
29
|
/**
|
|
30
30
|
* A descriptive message confirming the success or failure of the Registration process.
|
|
31
31
|
*/
|
|
32
|
-
message
|
|
32
|
+
message: string;
|
|
33
33
|
/**
|
|
34
34
|
* Indicates whether the request was successful or failure (true for success, false for failure).
|
|
35
35
|
*/
|
|
36
|
-
success
|
|
36
|
+
success: boolean;
|
|
37
37
|
/**
|
|
38
38
|
* An object containing the response content.
|
|
39
39
|
*/
|
|
40
|
-
content
|
|
40
|
+
content: GetUserDetailContent;
|
|
41
41
|
};
|
|
42
42
|
|
|
43
43
|
/** @internal */
|
|
@@ -100,12 +100,12 @@ export const GetUserDetailContent$inboundSchema: z.ZodType<
|
|
|
100
100
|
z.ZodTypeDef,
|
|
101
101
|
unknown
|
|
102
102
|
> = z.object({
|
|
103
|
-
user: components.User$inboundSchema
|
|
103
|
+
user: components.User$inboundSchema,
|
|
104
104
|
});
|
|
105
105
|
|
|
106
106
|
/** @internal */
|
|
107
107
|
export type GetUserDetailContent$Outbound = {
|
|
108
|
-
user
|
|
108
|
+
user: components.User$Outbound;
|
|
109
109
|
};
|
|
110
110
|
|
|
111
111
|
/** @internal */
|
|
@@ -114,7 +114,7 @@ export const GetUserDetailContent$outboundSchema: z.ZodType<
|
|
|
114
114
|
z.ZodTypeDef,
|
|
115
115
|
GetUserDetailContent
|
|
116
116
|
> = z.object({
|
|
117
|
-
user: components.User$outboundSchema
|
|
117
|
+
user: components.User$outboundSchema,
|
|
118
118
|
});
|
|
119
119
|
|
|
120
120
|
/**
|
|
@@ -154,16 +154,16 @@ export const GetUserDetailResponseBody$inboundSchema: z.ZodType<
|
|
|
154
154
|
z.ZodTypeDef,
|
|
155
155
|
unknown
|
|
156
156
|
> = z.object({
|
|
157
|
-
message: z.string()
|
|
158
|
-
success: z.boolean()
|
|
159
|
-
content: z.lazy(() => GetUserDetailContent$inboundSchema)
|
|
157
|
+
message: z.string(),
|
|
158
|
+
success: z.boolean(),
|
|
159
|
+
content: z.lazy(() => GetUserDetailContent$inboundSchema),
|
|
160
160
|
});
|
|
161
161
|
|
|
162
162
|
/** @internal */
|
|
163
163
|
export type GetUserDetailResponseBody$Outbound = {
|
|
164
|
-
message
|
|
165
|
-
success
|
|
166
|
-
content
|
|
164
|
+
message: string;
|
|
165
|
+
success: boolean;
|
|
166
|
+
content: GetUserDetailContent$Outbound;
|
|
167
167
|
};
|
|
168
168
|
|
|
169
169
|
/** @internal */
|
|
@@ -172,9 +172,9 @@ export const GetUserDetailResponseBody$outboundSchema: z.ZodType<
|
|
|
172
172
|
z.ZodTypeDef,
|
|
173
173
|
GetUserDetailResponseBody
|
|
174
174
|
> = z.object({
|
|
175
|
-
message: z.string()
|
|
176
|
-
success: z.boolean()
|
|
177
|
-
content: z.lazy(() => GetUserDetailContent$outboundSchema)
|
|
175
|
+
message: z.string(),
|
|
176
|
+
success: z.boolean(),
|
|
177
|
+
content: z.lazy(() => GetUserDetailContent$outboundSchema),
|
|
178
178
|
});
|
|
179
179
|
|
|
180
180
|
/**
|
|
@@ -30,11 +30,11 @@ export type LoginWithEmailContent = {
|
|
|
30
30
|
/**
|
|
31
31
|
* The otp token is a unique code that is used for authentication during the Login process.
|
|
32
32
|
*/
|
|
33
|
-
otpToken
|
|
33
|
+
otpToken: string;
|
|
34
34
|
/**
|
|
35
35
|
* It is used for verifying OTP and using subsequent API call.
|
|
36
36
|
*/
|
|
37
|
-
otpAction
|
|
37
|
+
otpAction: string;
|
|
38
38
|
};
|
|
39
39
|
|
|
40
40
|
/**
|
|
@@ -44,15 +44,15 @@ export type LoginWithEmailResponseBody = {
|
|
|
44
44
|
/**
|
|
45
45
|
* A descriptive message confirming the success or failure of the Login process.
|
|
46
46
|
*/
|
|
47
|
-
message
|
|
47
|
+
message: string;
|
|
48
48
|
/**
|
|
49
49
|
* Indicates whether the request was successful or failure (true for success, false for failure).
|
|
50
50
|
*/
|
|
51
|
-
success
|
|
51
|
+
success: boolean;
|
|
52
52
|
/**
|
|
53
53
|
* An object containing the response content.
|
|
54
54
|
*/
|
|
55
|
-
content
|
|
55
|
+
content: LoginWithEmailContent;
|
|
56
56
|
};
|
|
57
57
|
|
|
58
58
|
/** @internal */
|
|
@@ -126,8 +126,8 @@ export const LoginWithEmailContent$inboundSchema: z.ZodType<
|
|
|
126
126
|
z.ZodTypeDef,
|
|
127
127
|
unknown
|
|
128
128
|
> = z.object({
|
|
129
|
-
otp_token: z.string()
|
|
130
|
-
otp_action: z.string()
|
|
129
|
+
otp_token: z.string(),
|
|
130
|
+
otp_action: z.string(),
|
|
131
131
|
}).transform((v) => {
|
|
132
132
|
return remap$(v, {
|
|
133
133
|
"otp_token": "otpToken",
|
|
@@ -137,8 +137,8 @@ export const LoginWithEmailContent$inboundSchema: z.ZodType<
|
|
|
137
137
|
|
|
138
138
|
/** @internal */
|
|
139
139
|
export type LoginWithEmailContent$Outbound = {
|
|
140
|
-
otp_token
|
|
141
|
-
otp_action
|
|
140
|
+
otp_token: string;
|
|
141
|
+
otp_action: string;
|
|
142
142
|
};
|
|
143
143
|
|
|
144
144
|
/** @internal */
|
|
@@ -147,8 +147,8 @@ export const LoginWithEmailContent$outboundSchema: z.ZodType<
|
|
|
147
147
|
z.ZodTypeDef,
|
|
148
148
|
LoginWithEmailContent
|
|
149
149
|
> = z.object({
|
|
150
|
-
otpToken: z.string()
|
|
151
|
-
otpAction: z.string()
|
|
150
|
+
otpToken: z.string(),
|
|
151
|
+
otpAction: z.string(),
|
|
152
152
|
}).transform((v) => {
|
|
153
153
|
return remap$(v, {
|
|
154
154
|
otpToken: "otp_token",
|
|
@@ -193,16 +193,16 @@ export const LoginWithEmailResponseBody$inboundSchema: z.ZodType<
|
|
|
193
193
|
z.ZodTypeDef,
|
|
194
194
|
unknown
|
|
195
195
|
> = z.object({
|
|
196
|
-
message: z.string()
|
|
197
|
-
success: z.boolean()
|
|
198
|
-
content: z.lazy(() => LoginWithEmailContent$inboundSchema)
|
|
196
|
+
message: z.string(),
|
|
197
|
+
success: z.boolean(),
|
|
198
|
+
content: z.lazy(() => LoginWithEmailContent$inboundSchema),
|
|
199
199
|
});
|
|
200
200
|
|
|
201
201
|
/** @internal */
|
|
202
202
|
export type LoginWithEmailResponseBody$Outbound = {
|
|
203
|
-
message
|
|
204
|
-
success
|
|
205
|
-
content
|
|
203
|
+
message: string;
|
|
204
|
+
success: boolean;
|
|
205
|
+
content: LoginWithEmailContent$Outbound;
|
|
206
206
|
};
|
|
207
207
|
|
|
208
208
|
/** @internal */
|
|
@@ -211,9 +211,9 @@ export const LoginWithEmailResponseBody$outboundSchema: z.ZodType<
|
|
|
211
211
|
z.ZodTypeDef,
|
|
212
212
|
LoginWithEmailResponseBody
|
|
213
213
|
> = z.object({
|
|
214
|
-
message: z.string()
|
|
215
|
-
success: z.boolean()
|
|
216
|
-
content: z.lazy(() => LoginWithEmailContent$outboundSchema)
|
|
214
|
+
message: z.string(),
|
|
215
|
+
success: z.boolean(),
|
|
216
|
+
content: z.lazy(() => LoginWithEmailContent$outboundSchema),
|
|
217
217
|
});
|
|
218
218
|
|
|
219
219
|
/**
|
|
@@ -34,11 +34,11 @@ export type LoginWithPhoneContent = {
|
|
|
34
34
|
/**
|
|
35
35
|
* The otp token is a unique code that is used for authentication during the Login/Register process.
|
|
36
36
|
*/
|
|
37
|
-
otpToken
|
|
37
|
+
otpToken: string;
|
|
38
38
|
/**
|
|
39
39
|
* It is used for verifying OTP and using subsequent API call.
|
|
40
40
|
*/
|
|
41
|
-
otpAction
|
|
41
|
+
otpAction: string;
|
|
42
42
|
};
|
|
43
43
|
|
|
44
44
|
/**
|
|
@@ -48,15 +48,15 @@ export type LoginWithPhoneResponseBody = {
|
|
|
48
48
|
/**
|
|
49
49
|
* A descriptive message confirming the success or failure of the Login process.
|
|
50
50
|
*/
|
|
51
|
-
message
|
|
51
|
+
message: string;
|
|
52
52
|
/**
|
|
53
53
|
* Indicates whether the request was successful or failure (true for success, false for failure).
|
|
54
54
|
*/
|
|
55
|
-
success
|
|
55
|
+
success: boolean;
|
|
56
56
|
/**
|
|
57
57
|
* An object containing the response content.
|
|
58
58
|
*/
|
|
59
|
-
content
|
|
59
|
+
content: LoginWithPhoneContent;
|
|
60
60
|
};
|
|
61
61
|
|
|
62
62
|
/** @internal */
|
|
@@ -65,7 +65,7 @@ export const LoginWithPhoneRequestBody$inboundSchema: z.ZodType<
|
|
|
65
65
|
z.ZodTypeDef,
|
|
66
66
|
unknown
|
|
67
67
|
> = z.object({
|
|
68
|
-
country_code: z.literal("+91").
|
|
68
|
+
country_code: z.literal("+91").default("+91"),
|
|
69
69
|
phone: z.string(),
|
|
70
70
|
register_if_not_exists: z.boolean().optional(),
|
|
71
71
|
}).transform((v) => {
|
|
@@ -135,8 +135,8 @@ export const LoginWithPhoneContent$inboundSchema: z.ZodType<
|
|
|
135
135
|
z.ZodTypeDef,
|
|
136
136
|
unknown
|
|
137
137
|
> = z.object({
|
|
138
|
-
otp_token: z.string()
|
|
139
|
-
otp_action: z.string()
|
|
138
|
+
otp_token: z.string(),
|
|
139
|
+
otp_action: z.string(),
|
|
140
140
|
}).transform((v) => {
|
|
141
141
|
return remap$(v, {
|
|
142
142
|
"otp_token": "otpToken",
|
|
@@ -146,8 +146,8 @@ export const LoginWithPhoneContent$inboundSchema: z.ZodType<
|
|
|
146
146
|
|
|
147
147
|
/** @internal */
|
|
148
148
|
export type LoginWithPhoneContent$Outbound = {
|
|
149
|
-
otp_token
|
|
150
|
-
otp_action
|
|
149
|
+
otp_token: string;
|
|
150
|
+
otp_action: string;
|
|
151
151
|
};
|
|
152
152
|
|
|
153
153
|
/** @internal */
|
|
@@ -156,8 +156,8 @@ export const LoginWithPhoneContent$outboundSchema: z.ZodType<
|
|
|
156
156
|
z.ZodTypeDef,
|
|
157
157
|
LoginWithPhoneContent
|
|
158
158
|
> = z.object({
|
|
159
|
-
otpToken: z.string()
|
|
160
|
-
otpAction: z.string()
|
|
159
|
+
otpToken: z.string(),
|
|
160
|
+
otpAction: z.string(),
|
|
161
161
|
}).transform((v) => {
|
|
162
162
|
return remap$(v, {
|
|
163
163
|
otpToken: "otp_token",
|
|
@@ -202,16 +202,16 @@ export const LoginWithPhoneResponseBody$inboundSchema: z.ZodType<
|
|
|
202
202
|
z.ZodTypeDef,
|
|
203
203
|
unknown
|
|
204
204
|
> = z.object({
|
|
205
|
-
message: z.string()
|
|
206
|
-
success: z.boolean()
|
|
207
|
-
content: z.lazy(() => LoginWithPhoneContent$inboundSchema)
|
|
205
|
+
message: z.string(),
|
|
206
|
+
success: z.boolean(),
|
|
207
|
+
content: z.lazy(() => LoginWithPhoneContent$inboundSchema),
|
|
208
208
|
});
|
|
209
209
|
|
|
210
210
|
/** @internal */
|
|
211
211
|
export type LoginWithPhoneResponseBody$Outbound = {
|
|
212
|
-
message
|
|
213
|
-
success
|
|
214
|
-
content
|
|
212
|
+
message: string;
|
|
213
|
+
success: boolean;
|
|
214
|
+
content: LoginWithPhoneContent$Outbound;
|
|
215
215
|
};
|
|
216
216
|
|
|
217
217
|
/** @internal */
|
|
@@ -220,9 +220,9 @@ export const LoginWithPhoneResponseBody$outboundSchema: z.ZodType<
|
|
|
220
220
|
z.ZodTypeDef,
|
|
221
221
|
LoginWithPhoneResponseBody
|
|
222
222
|
> = z.object({
|
|
223
|
-
message: z.string()
|
|
224
|
-
success: z.boolean()
|
|
225
|
-
content: z.lazy(() => LoginWithPhoneContent$outboundSchema)
|
|
223
|
+
message: z.string(),
|
|
224
|
+
success: z.boolean(),
|
|
225
|
+
content: z.lazy(() => LoginWithPhoneContent$outboundSchema),
|
|
226
226
|
});
|
|
227
227
|
|
|
228
228
|
/**
|
|
@@ -34,11 +34,11 @@ export type LoginWithWhatsappContent = {
|
|
|
34
34
|
/**
|
|
35
35
|
* The otp token is a unique code that is used for authentication during the Login process.
|
|
36
36
|
*/
|
|
37
|
-
otpToken
|
|
37
|
+
otpToken: string;
|
|
38
38
|
/**
|
|
39
39
|
* It is used for verifying OTP and using subsequent API call.
|
|
40
40
|
*/
|
|
41
|
-
otpAction
|
|
41
|
+
otpAction: string;
|
|
42
42
|
};
|
|
43
43
|
|
|
44
44
|
/**
|
|
@@ -48,15 +48,15 @@ export type LoginWithWhatsappResponseBody = {
|
|
|
48
48
|
/**
|
|
49
49
|
* A descriptive message confirming the success or failure of the Login process.
|
|
50
50
|
*/
|
|
51
|
-
message
|
|
51
|
+
message: string;
|
|
52
52
|
/**
|
|
53
53
|
* Indicates whether the request was successful or failure (true for success, false for failure).
|
|
54
54
|
*/
|
|
55
|
-
success
|
|
55
|
+
success: boolean;
|
|
56
56
|
/**
|
|
57
57
|
* An object containing the response content.
|
|
58
58
|
*/
|
|
59
|
-
content
|
|
59
|
+
content: LoginWithWhatsappContent;
|
|
60
60
|
};
|
|
61
61
|
|
|
62
62
|
/** @internal */
|
|
@@ -137,8 +137,8 @@ export const LoginWithWhatsappContent$inboundSchema: z.ZodType<
|
|
|
137
137
|
z.ZodTypeDef,
|
|
138
138
|
unknown
|
|
139
139
|
> = z.object({
|
|
140
|
-
otp_token: z.string()
|
|
141
|
-
otp_action: z.string()
|
|
140
|
+
otp_token: z.string(),
|
|
141
|
+
otp_action: z.string(),
|
|
142
142
|
}).transform((v) => {
|
|
143
143
|
return remap$(v, {
|
|
144
144
|
"otp_token": "otpToken",
|
|
@@ -148,8 +148,8 @@ export const LoginWithWhatsappContent$inboundSchema: z.ZodType<
|
|
|
148
148
|
|
|
149
149
|
/** @internal */
|
|
150
150
|
export type LoginWithWhatsappContent$Outbound = {
|
|
151
|
-
otp_token
|
|
152
|
-
otp_action
|
|
151
|
+
otp_token: string;
|
|
152
|
+
otp_action: string;
|
|
153
153
|
};
|
|
154
154
|
|
|
155
155
|
/** @internal */
|
|
@@ -158,8 +158,8 @@ export const LoginWithWhatsappContent$outboundSchema: z.ZodType<
|
|
|
158
158
|
z.ZodTypeDef,
|
|
159
159
|
LoginWithWhatsappContent
|
|
160
160
|
> = z.object({
|
|
161
|
-
otpToken: z.string()
|
|
162
|
-
otpAction: z.string()
|
|
161
|
+
otpToken: z.string(),
|
|
162
|
+
otpAction: z.string(),
|
|
163
163
|
}).transform((v) => {
|
|
164
164
|
return remap$(v, {
|
|
165
165
|
otpToken: "otp_token",
|
|
@@ -204,16 +204,16 @@ export const LoginWithWhatsappResponseBody$inboundSchema: z.ZodType<
|
|
|
204
204
|
z.ZodTypeDef,
|
|
205
205
|
unknown
|
|
206
206
|
> = z.object({
|
|
207
|
-
message: z.string()
|
|
208
|
-
success: z.boolean()
|
|
209
|
-
content: z.lazy(() => LoginWithWhatsappContent$inboundSchema)
|
|
207
|
+
message: z.string(),
|
|
208
|
+
success: z.boolean(),
|
|
209
|
+
content: z.lazy(() => LoginWithWhatsappContent$inboundSchema),
|
|
210
210
|
});
|
|
211
211
|
|
|
212
212
|
/** @internal */
|
|
213
213
|
export type LoginWithWhatsappResponseBody$Outbound = {
|
|
214
|
-
message
|
|
215
|
-
success
|
|
216
|
-
content
|
|
214
|
+
message: string;
|
|
215
|
+
success: boolean;
|
|
216
|
+
content: LoginWithWhatsappContent$Outbound;
|
|
217
217
|
};
|
|
218
218
|
|
|
219
219
|
/** @internal */
|
|
@@ -222,9 +222,9 @@ export const LoginWithWhatsappResponseBody$outboundSchema: z.ZodType<
|
|
|
222
222
|
z.ZodTypeDef,
|
|
223
223
|
LoginWithWhatsappResponseBody
|
|
224
224
|
> = z.object({
|
|
225
|
-
message: z.string()
|
|
226
|
-
success: z.boolean()
|
|
227
|
-
content: z.lazy(() => LoginWithWhatsappContent$outboundSchema)
|
|
225
|
+
message: z.string(),
|
|
226
|
+
success: z.boolean(),
|
|
227
|
+
content: z.lazy(() => LoginWithWhatsappContent$outboundSchema),
|
|
228
228
|
});
|
|
229
229
|
|
|
230
230
|
/**
|
|
@@ -16,12 +16,12 @@ export type LogoutContent = {
|
|
|
16
16
|
/**
|
|
17
17
|
* It is a string-based token utilized for authentication and authorization.
|
|
18
18
|
*/
|
|
19
|
-
accessToken
|
|
19
|
+
accessToken: string;
|
|
20
20
|
/**
|
|
21
21
|
* It is a string-based token designed for refreshing the user's access token.
|
|
22
22
|
*/
|
|
23
|
-
refreshToken
|
|
24
|
-
user
|
|
23
|
+
refreshToken: string;
|
|
24
|
+
user: components.User;
|
|
25
25
|
};
|
|
26
26
|
|
|
27
27
|
/**
|
|
@@ -31,15 +31,15 @@ export type LogoutResponseBody = {
|
|
|
31
31
|
/**
|
|
32
32
|
* A descriptive message confirming the success or failure of the operation.
|
|
33
33
|
*/
|
|
34
|
-
message
|
|
34
|
+
message: string;
|
|
35
35
|
/**
|
|
36
36
|
* Indicates whether the request was successful or failure (true for success, false for failure).
|
|
37
37
|
*/
|
|
38
|
-
success
|
|
38
|
+
success: boolean;
|
|
39
39
|
/**
|
|
40
40
|
* An object containing the response content.
|
|
41
41
|
*/
|
|
42
|
-
content
|
|
42
|
+
content: LogoutContent;
|
|
43
43
|
};
|
|
44
44
|
|
|
45
45
|
/** @internal */
|
|
@@ -48,9 +48,9 @@ export const LogoutContent$inboundSchema: z.ZodType<
|
|
|
48
48
|
z.ZodTypeDef,
|
|
49
49
|
unknown
|
|
50
50
|
> = z.object({
|
|
51
|
-
access_token: z.string()
|
|
52
|
-
refresh_token: z.string()
|
|
53
|
-
user: components.User$inboundSchema
|
|
51
|
+
access_token: z.string(),
|
|
52
|
+
refresh_token: z.string(),
|
|
53
|
+
user: components.User$inboundSchema,
|
|
54
54
|
}).transform((v) => {
|
|
55
55
|
return remap$(v, {
|
|
56
56
|
"access_token": "accessToken",
|
|
@@ -60,9 +60,9 @@ export const LogoutContent$inboundSchema: z.ZodType<
|
|
|
60
60
|
|
|
61
61
|
/** @internal */
|
|
62
62
|
export type LogoutContent$Outbound = {
|
|
63
|
-
access_token
|
|
64
|
-
refresh_token
|
|
65
|
-
user
|
|
63
|
+
access_token: string;
|
|
64
|
+
refresh_token: string;
|
|
65
|
+
user: components.User$Outbound;
|
|
66
66
|
};
|
|
67
67
|
|
|
68
68
|
/** @internal */
|
|
@@ -71,9 +71,9 @@ export const LogoutContent$outboundSchema: z.ZodType<
|
|
|
71
71
|
z.ZodTypeDef,
|
|
72
72
|
LogoutContent
|
|
73
73
|
> = z.object({
|
|
74
|
-
accessToken: z.string()
|
|
75
|
-
refreshToken: z.string()
|
|
76
|
-
user: components.User$outboundSchema
|
|
74
|
+
accessToken: z.string(),
|
|
75
|
+
refreshToken: z.string(),
|
|
76
|
+
user: components.User$outboundSchema,
|
|
77
77
|
}).transform((v) => {
|
|
78
78
|
return remap$(v, {
|
|
79
79
|
accessToken: "access_token",
|
|
@@ -114,16 +114,16 @@ export const LogoutResponseBody$inboundSchema: z.ZodType<
|
|
|
114
114
|
z.ZodTypeDef,
|
|
115
115
|
unknown
|
|
116
116
|
> = z.object({
|
|
117
|
-
message: z.string()
|
|
118
|
-
success: z.boolean()
|
|
119
|
-
content: z.lazy(() => LogoutContent$inboundSchema)
|
|
117
|
+
message: z.string(),
|
|
118
|
+
success: z.boolean(),
|
|
119
|
+
content: z.lazy(() => LogoutContent$inboundSchema),
|
|
120
120
|
});
|
|
121
121
|
|
|
122
122
|
/** @internal */
|
|
123
123
|
export type LogoutResponseBody$Outbound = {
|
|
124
|
-
message
|
|
125
|
-
success
|
|
126
|
-
content
|
|
124
|
+
message: string;
|
|
125
|
+
success: boolean;
|
|
126
|
+
content: LogoutContent$Outbound;
|
|
127
127
|
};
|
|
128
128
|
|
|
129
129
|
/** @internal */
|
|
@@ -132,9 +132,9 @@ export const LogoutResponseBody$outboundSchema: z.ZodType<
|
|
|
132
132
|
z.ZodTypeDef,
|
|
133
133
|
LogoutResponseBody
|
|
134
134
|
> = z.object({
|
|
135
|
-
message: z.string()
|
|
136
|
-
success: z.boolean()
|
|
137
|
-
content: z.lazy(() => LogoutContent$outboundSchema)
|
|
135
|
+
message: z.string(),
|
|
136
|
+
success: z.boolean(),
|
|
137
|
+
content: z.lazy(() => LogoutContent$outboundSchema),
|
|
138
138
|
});
|
|
139
139
|
|
|
140
140
|
/**
|
|
@@ -12,7 +12,7 @@ export type RefreshTokenRequestBody = {
|
|
|
12
12
|
/**
|
|
13
13
|
* A string representing the refresh token.
|
|
14
14
|
*/
|
|
15
|
-
refreshToken
|
|
15
|
+
refreshToken: string;
|
|
16
16
|
};
|
|
17
17
|
|
|
18
18
|
/**
|
|
@@ -22,11 +22,11 @@ export type RefreshTokenContent = {
|
|
|
22
22
|
/**
|
|
23
23
|
* It is a string-based token utilized for authentication and authorization.
|
|
24
24
|
*/
|
|
25
|
-
accessToken
|
|
25
|
+
accessToken: string;
|
|
26
26
|
/**
|
|
27
27
|
* It is a string-based token designed for refreshing the user's access token.
|
|
28
28
|
*/
|
|
29
|
-
refreshToken
|
|
29
|
+
refreshToken: string;
|
|
30
30
|
};
|
|
31
31
|
|
|
32
32
|
/**
|
|
@@ -36,15 +36,15 @@ export type RefreshTokenResponseBody = {
|
|
|
36
36
|
/**
|
|
37
37
|
* A descriptive message confirming the success or failure of the operation.
|
|
38
38
|
*/
|
|
39
|
-
message
|
|
39
|
+
message: string;
|
|
40
40
|
/**
|
|
41
41
|
* Indicates whether the request was successful or failure (true for success, false for failure).
|
|
42
42
|
*/
|
|
43
|
-
success
|
|
43
|
+
success: boolean;
|
|
44
44
|
/**
|
|
45
45
|
* An object containing the response content.
|
|
46
46
|
*/
|
|
47
|
-
content
|
|
47
|
+
content: RefreshTokenContent;
|
|
48
48
|
};
|
|
49
49
|
|
|
50
50
|
/** @internal */
|
|
@@ -53,7 +53,7 @@ export const RefreshTokenRequestBody$inboundSchema: z.ZodType<
|
|
|
53
53
|
z.ZodTypeDef,
|
|
54
54
|
unknown
|
|
55
55
|
> = z.object({
|
|
56
|
-
refresh_token: z.string()
|
|
56
|
+
refresh_token: z.string(),
|
|
57
57
|
}).transform((v) => {
|
|
58
58
|
return remap$(v, {
|
|
59
59
|
"refresh_token": "refreshToken",
|
|
@@ -62,7 +62,7 @@ export const RefreshTokenRequestBody$inboundSchema: z.ZodType<
|
|
|
62
62
|
|
|
63
63
|
/** @internal */
|
|
64
64
|
export type RefreshTokenRequestBody$Outbound = {
|
|
65
|
-
refresh_token
|
|
65
|
+
refresh_token: string;
|
|
66
66
|
};
|
|
67
67
|
|
|
68
68
|
/** @internal */
|
|
@@ -71,7 +71,7 @@ export const RefreshTokenRequestBody$outboundSchema: z.ZodType<
|
|
|
71
71
|
z.ZodTypeDef,
|
|
72
72
|
RefreshTokenRequestBody
|
|
73
73
|
> = z.object({
|
|
74
|
-
refreshToken: z.string()
|
|
74
|
+
refreshToken: z.string(),
|
|
75
75
|
}).transform((v) => {
|
|
76
76
|
return remap$(v, {
|
|
77
77
|
refreshToken: "refresh_token",
|
|
@@ -115,8 +115,8 @@ export const RefreshTokenContent$inboundSchema: z.ZodType<
|
|
|
115
115
|
z.ZodTypeDef,
|
|
116
116
|
unknown
|
|
117
117
|
> = z.object({
|
|
118
|
-
access_token: z.string()
|
|
119
|
-
refresh_token: z.string()
|
|
118
|
+
access_token: z.string(),
|
|
119
|
+
refresh_token: z.string(),
|
|
120
120
|
}).transform((v) => {
|
|
121
121
|
return remap$(v, {
|
|
122
122
|
"access_token": "accessToken",
|
|
@@ -126,8 +126,8 @@ export const RefreshTokenContent$inboundSchema: z.ZodType<
|
|
|
126
126
|
|
|
127
127
|
/** @internal */
|
|
128
128
|
export type RefreshTokenContent$Outbound = {
|
|
129
|
-
access_token
|
|
130
|
-
refresh_token
|
|
129
|
+
access_token: string;
|
|
130
|
+
refresh_token: string;
|
|
131
131
|
};
|
|
132
132
|
|
|
133
133
|
/** @internal */
|
|
@@ -136,8 +136,8 @@ export const RefreshTokenContent$outboundSchema: z.ZodType<
|
|
|
136
136
|
z.ZodTypeDef,
|
|
137
137
|
RefreshTokenContent
|
|
138
138
|
> = z.object({
|
|
139
|
-
accessToken: z.string()
|
|
140
|
-
refreshToken: z.string()
|
|
139
|
+
accessToken: z.string(),
|
|
140
|
+
refreshToken: z.string(),
|
|
141
141
|
}).transform((v) => {
|
|
142
142
|
return remap$(v, {
|
|
143
143
|
accessToken: "access_token",
|
|
@@ -182,16 +182,16 @@ export const RefreshTokenResponseBody$inboundSchema: z.ZodType<
|
|
|
182
182
|
z.ZodTypeDef,
|
|
183
183
|
unknown
|
|
184
184
|
> = z.object({
|
|
185
|
-
message: z.string()
|
|
186
|
-
success: z.boolean()
|
|
187
|
-
content: z.lazy(() => RefreshTokenContent$inboundSchema)
|
|
185
|
+
message: z.string(),
|
|
186
|
+
success: z.boolean(),
|
|
187
|
+
content: z.lazy(() => RefreshTokenContent$inboundSchema),
|
|
188
188
|
});
|
|
189
189
|
|
|
190
190
|
/** @internal */
|
|
191
191
|
export type RefreshTokenResponseBody$Outbound = {
|
|
192
|
-
message
|
|
193
|
-
success
|
|
194
|
-
content
|
|
192
|
+
message: string;
|
|
193
|
+
success: boolean;
|
|
194
|
+
content: RefreshTokenContent$Outbound;
|
|
195
195
|
};
|
|
196
196
|
|
|
197
197
|
/** @internal */
|
|
@@ -200,9 +200,9 @@ export const RefreshTokenResponseBody$outboundSchema: z.ZodType<
|
|
|
200
200
|
z.ZodTypeDef,
|
|
201
201
|
RefreshTokenResponseBody
|
|
202
202
|
> = z.object({
|
|
203
|
-
message: z.string()
|
|
204
|
-
success: z.boolean()
|
|
205
|
-
content: z.lazy(() => RefreshTokenContent$outboundSchema)
|
|
203
|
+
message: z.string(),
|
|
204
|
+
success: z.boolean(),
|
|
205
|
+
content: z.lazy(() => RefreshTokenContent$outboundSchema),
|
|
206
206
|
});
|
|
207
207
|
|
|
208
208
|
/**
|