ce-storefront 0.12.2 → 0.12.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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/components/index.d.ts +0 -1
- package/esm/models/components/index.d.ts.map +1 -1
- package/esm/models/components/index.js +0 -1
- package/esm/models/components/index.js.map +1 -1
- 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/shippingmethods.d.ts +4 -4
- package/esm/models/operations/shippingmethods.d.ts.map +1 -1
- package/esm/models/operations/shippingmethods.js +2 -8
- package/esm/models/operations/shippingmethods.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/components/index.ts +0 -1
- 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/shippingmethods.ts +4 -12
- package/src/models/operations/updateuser.ts +16 -16
- package/src/models/operations/verifyotp.ts +16 -16
- package/esm/models/components/productsbasedserviceabilitycheck.d.ts +0 -95
- package/esm/models/components/productsbasedserviceabilitycheck.d.ts.map +0 -1
- package/esm/models/components/productsbasedserviceabilitycheck.js +0 -132
- package/esm/models/components/productsbasedserviceabilitycheck.js.map +0 -1
- package/src/models/components/productsbasedserviceabilitycheck.ts +0 -243
|
@@ -13,7 +13,7 @@ export type UpdateUserRequest = {
|
|
|
13
13
|
* An object containing the response content.
|
|
14
14
|
*/
|
|
15
15
|
export type UpdateUserContent = {
|
|
16
|
-
user
|
|
16
|
+
user: components.User;
|
|
17
17
|
};
|
|
18
18
|
/**
|
|
19
19
|
* OK
|
|
@@ -22,15 +22,15 @@ export type UpdateUserResponseBody = {
|
|
|
22
22
|
/**
|
|
23
23
|
* A descriptive message confirming the success or failure of the Registration process.
|
|
24
24
|
*/
|
|
25
|
-
message
|
|
25
|
+
message: string;
|
|
26
26
|
/**
|
|
27
27
|
* Indicates whether the request was successful or failure (true for success, false for failure).
|
|
28
28
|
*/
|
|
29
|
-
success
|
|
29
|
+
success: boolean;
|
|
30
30
|
/**
|
|
31
31
|
* An object containing the response content.
|
|
32
32
|
*/
|
|
33
|
-
content
|
|
33
|
+
content: UpdateUserContent;
|
|
34
34
|
};
|
|
35
35
|
/** @internal */
|
|
36
36
|
export declare const UpdateUserRequest$inboundSchema: z.ZodType<UpdateUserRequest, z.ZodTypeDef, unknown>;
|
|
@@ -59,7 +59,7 @@ export declare function updateUserRequestFromJSON(jsonString: string): SafeParse
|
|
|
59
59
|
export declare const UpdateUserContent$inboundSchema: z.ZodType<UpdateUserContent, z.ZodTypeDef, unknown>;
|
|
60
60
|
/** @internal */
|
|
61
61
|
export type UpdateUserContent$Outbound = {
|
|
62
|
-
user
|
|
62
|
+
user: components.User$Outbound;
|
|
63
63
|
};
|
|
64
64
|
/** @internal */
|
|
65
65
|
export declare const UpdateUserContent$outboundSchema: z.ZodType<UpdateUserContent$Outbound, z.ZodTypeDef, UpdateUserContent>;
|
|
@@ -81,9 +81,9 @@ export declare function updateUserContentFromJSON(jsonString: string): SafeParse
|
|
|
81
81
|
export declare const UpdateUserResponseBody$inboundSchema: z.ZodType<UpdateUserResponseBody, z.ZodTypeDef, unknown>;
|
|
82
82
|
/** @internal */
|
|
83
83
|
export type UpdateUserResponseBody$Outbound = {
|
|
84
|
-
message
|
|
85
|
-
success
|
|
86
|
-
content
|
|
84
|
+
message: string;
|
|
85
|
+
success: boolean;
|
|
86
|
+
content: UpdateUserContent$Outbound;
|
|
87
87
|
};
|
|
88
88
|
/** @internal */
|
|
89
89
|
export declare const UpdateUserResponseBody$outboundSchema: z.ZodType<UpdateUserResponseBody$Outbound, z.ZodTypeDef, UpdateUserResponseBody>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"updateuser.d.ts","sourceRoot":"","sources":["../../../src/models/operations/updateuser.ts"],"names":[],"mappings":"AAI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,iBAAiB,GACnC,MAAM,CAIR;AAED,wBAAgB,yBAAyB,CACvC,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,iBAAiB,EAAE,kBAAkB,CAAC,CAMxD;AAED,gBAAgB;AAChB,eAAO,MAAM,oCAAoC,EAAE,CAAC,CAAC,OAAO,CAC1D,sBAAsB,EACtB,CAAC,CAAC,UAAU,EACZ,OAAO,CAKP,CAAC;AAEH,gBAAgB;AAChB,MAAM,MAAM,+BAA+B,GAAG;IAC5C,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,OAAO,CAAC;IACjB,OAAO,EAAE,0BAA0B,CAAC;CACrC,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,qCAAqC,EAAE,CAAC,CAAC,OAAO,CAC3D,+BAA+B,EAC/B,CAAC,CAAC,UAAU,EACZ,sBAAsB,CAKtB,CAAC;AAEH;;;GAGG;AACH,yBAAiB,uBAAuB,CAAC;IACvC,sEAAsE;IAC/D,MAAM,aAAa,0DAAuC,CAAC;IAClE,uEAAuE;IAChE,MAAM,cAAc,kFAAwC,CAAC;IACpE,iEAAiE;IACjE,KAAY,QAAQ,GAAG,+BAA+B,CAAC;CACxD;AAED,wBAAgB,4BAA4B,CAC1C,sBAAsB,EAAE,sBAAsB,GAC7C,MAAM,CAIR;AAED,wBAAgB,8BAA8B,CAC5C,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,sBAAsB,EAAE,kBAAkB,CAAC,CAM7D"}
|
|
@@ -42,11 +42,11 @@ export function updateUserRequestFromJSON(jsonString) {
|
|
|
42
42
|
}
|
|
43
43
|
/** @internal */
|
|
44
44
|
export const UpdateUserContent$inboundSchema = z.object({
|
|
45
|
-
user: components.User$inboundSchema
|
|
45
|
+
user: components.User$inboundSchema,
|
|
46
46
|
});
|
|
47
47
|
/** @internal */
|
|
48
48
|
export const UpdateUserContent$outboundSchema = z.object({
|
|
49
|
-
user: components.User$outboundSchema
|
|
49
|
+
user: components.User$outboundSchema,
|
|
50
50
|
});
|
|
51
51
|
/**
|
|
52
52
|
* @internal
|
|
@@ -67,15 +67,15 @@ export function updateUserContentFromJSON(jsonString) {
|
|
|
67
67
|
}
|
|
68
68
|
/** @internal */
|
|
69
69
|
export const UpdateUserResponseBody$inboundSchema = z.object({
|
|
70
|
-
message: z.string()
|
|
71
|
-
success: z.boolean()
|
|
72
|
-
content: z.lazy(() => UpdateUserContent$inboundSchema)
|
|
70
|
+
message: z.string(),
|
|
71
|
+
success: z.boolean(),
|
|
72
|
+
content: z.lazy(() => UpdateUserContent$inboundSchema),
|
|
73
73
|
});
|
|
74
74
|
/** @internal */
|
|
75
75
|
export const UpdateUserResponseBody$outboundSchema = z.object({
|
|
76
|
-
message: z.string()
|
|
77
|
-
success: z.boolean()
|
|
78
|
-
content: z.lazy(() => UpdateUserContent$outboundSchema)
|
|
76
|
+
message: z.string(),
|
|
77
|
+
success: z.boolean(),
|
|
78
|
+
content: z.lazy(() => UpdateUserContent$outboundSchema),
|
|
79
79
|
});
|
|
80
80
|
/**
|
|
81
81
|
* @internal
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"updateuser.js","sourceRoot":"","sources":["../../../src/models/operations/updateuser.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;AAEjD,OAAO,KAAK,UAAU,MAAM,wBAAwB,CAAC;AAoCrD,gBAAgB;AAChB,MAAM,CAAC,MAAM,+BAA+B,GAIxC,CAAC,CAAC,MAAM,CAAC;IACX,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE;IACd,IAAI,EAAE,UAAU,CAAC,uBAAuB;CACzC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;IACjB,OAAO,MAAM,CAAC,CAAC,EAAE;QACf,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CAAC,MAAM,CAAC;IACX,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE;IACnB,OAAO,EAAE,CAAC,CAAC,OAAO,EAAE;IACpB,OAAO,EAAE,CAAC,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,gCAAgC,CAAC;CACxD,CAAC,CAAC;AAEH;;;GAGG;AACH,MAAM,KAAW,uBAAuB,CAOvC;AAPD,WAAiB,uBAAuB;IACtC,sEAAsE;IACzD,qCAAa,GAAG,oCAAoC,CAAC;IAClE,uEAAuE;IAC1D,sCAAc,GAAG,qCAAqC,CAAC;AAGtE,CAAC,EAPgB,uBAAuB,KAAvB,uBAAuB,QAOvC;AAED,MAAM,UAAU,4BAA4B,CAC1C,sBAA8C;IAE9C,OAAO,IAAI,CAAC,SAAS,CACnB,qCAAqC,CAAC,KAAK,CAAC,sBAAsB,CAAC,CACpE,CAAC;AACJ,CAAC;AAED,MAAM,UAAU,8BAA8B,CAC5C,UAAkB;IAElB,OAAO,SAAS,CACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,oCAAoC,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAChE,oDAAoD,CACrD,CAAC;AACJ,CAAC"}
|
|
@@ -37,15 +37,15 @@ export type VerifyOtpRequestBody = {
|
|
|
37
37
|
* An object containing the response content.
|
|
38
38
|
*/
|
|
39
39
|
export type VerifyOtpContent = {
|
|
40
|
-
user
|
|
40
|
+
user: components.User;
|
|
41
41
|
/**
|
|
42
42
|
* A string representing the access token.
|
|
43
43
|
*/
|
|
44
|
-
accessToken
|
|
44
|
+
accessToken: string;
|
|
45
45
|
/**
|
|
46
46
|
* A string representing the refresh token.
|
|
47
47
|
*/
|
|
48
|
-
refreshToken
|
|
48
|
+
refreshToken: string;
|
|
49
49
|
};
|
|
50
50
|
/**
|
|
51
51
|
* OK
|
|
@@ -62,7 +62,7 @@ export type VerifyOtpResponseBody = {
|
|
|
62
62
|
/**
|
|
63
63
|
* An object containing the response content.
|
|
64
64
|
*/
|
|
65
|
-
content
|
|
65
|
+
content: VerifyOtpContent;
|
|
66
66
|
};
|
|
67
67
|
/** @internal */
|
|
68
68
|
export declare const OtpAction$inboundSchema: z.ZodNativeEnum<typeof OtpAction>;
|
|
@@ -122,9 +122,9 @@ export declare function verifyOtpRequestBodyFromJSON(jsonString: string): SafePa
|
|
|
122
122
|
export declare const VerifyOtpContent$inboundSchema: z.ZodType<VerifyOtpContent, z.ZodTypeDef, unknown>;
|
|
123
123
|
/** @internal */
|
|
124
124
|
export type VerifyOtpContent$Outbound = {
|
|
125
|
-
user
|
|
126
|
-
access_token
|
|
127
|
-
refresh_token
|
|
125
|
+
user: components.User$Outbound;
|
|
126
|
+
access_token: string;
|
|
127
|
+
refresh_token: string;
|
|
128
128
|
};
|
|
129
129
|
/** @internal */
|
|
130
130
|
export declare const VerifyOtpContent$outboundSchema: z.ZodType<VerifyOtpContent$Outbound, z.ZodTypeDef, VerifyOtpContent>;
|
|
@@ -148,7 +148,7 @@ export declare const VerifyOtpResponseBody$inboundSchema: z.ZodType<VerifyOtpRes
|
|
|
148
148
|
export type VerifyOtpResponseBody$Outbound = {
|
|
149
149
|
message: string;
|
|
150
150
|
success: boolean;
|
|
151
|
-
content
|
|
151
|
+
content: VerifyOtpContent$Outbound;
|
|
152
152
|
};
|
|
153
153
|
/** @internal */
|
|
154
154
|
export declare const VerifyOtpResponseBody$outboundSchema: z.ZodType<VerifyOtpResponseBody$Outbound, z.ZodTypeDef, VerifyOtpResponseBody>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"verifyotp.d.ts","sourceRoot":"","sources":["../../../src/models/operations/verifyotp.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAGzB,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAClD,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAA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AO,MAAM,oCAAoC,EAAE,CAAC,CAAC,OAAO,CAC1D,8BAA8B,EAC9B,CAAC,CAAC,UAAU,EACZ,qBAAqB,CAKrB,CAAC;AAEH;;;GAGG;AACH,yBAAiB,sBAAsB,CAAC;IACtC,qEAAqE;IAC9D,MAAM,aAAa,yDAAsC,CAAC;IACjE,sEAAsE;IAC/D,MAAM,cAAc,gFAAuC,CAAC;IACnE,gEAAgE;IAChE,KAAY,QAAQ,GAAG,8BAA8B,CAAC;CACvD;AAED,wBAAgB,2BAA2B,CACzC,qBAAqB,EAAE,qBAAqB,GAC3C,MAAM,CAIR;AAED,wBAAgB,6BAA6B,CAC3C,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,qBAAqB,EAAE,kBAAkB,CAAC,CAM5D"}
|
|
@@ -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,KAA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AC,EAC/D,mDAAmD,CACpD,CAAC;AACJ,CAAC"}
|
package/jsr.json
CHANGED
package/package.json
CHANGED
|
@@ -16,6 +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
|
}
|