ce-storefront 0.5.3 → 0.5.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (61) hide show
  1. package/docs/sdks/auth/README.md +55 -30
  2. package/esm/funcs/authGenerateOtp.d.ts +1 -1
  3. package/esm/funcs/authGenerateOtp.d.ts.map +1 -1
  4. package/esm/funcs/authGenerateOtp.js +27 -6
  5. package/esm/funcs/authGenerateOtp.js.map +1 -1
  6. package/esm/funcs/authLoginWithEmail.d.ts +1 -1
  7. package/esm/funcs/authLoginWithEmail.d.ts.map +1 -1
  8. package/esm/funcs/authLoginWithEmail.js +27 -6
  9. package/esm/funcs/authLoginWithEmail.js.map +1 -1
  10. package/esm/funcs/authLoginWithPhone.d.ts +1 -1
  11. package/esm/funcs/authLoginWithPhone.d.ts.map +1 -1
  12. package/esm/funcs/authLoginWithPhone.js +27 -6
  13. package/esm/funcs/authLoginWithPhone.js.map +1 -1
  14. package/esm/funcs/authLoginWithWhatsapp.d.ts +1 -1
  15. package/esm/funcs/authLoginWithWhatsapp.d.ts.map +1 -1
  16. package/esm/funcs/authLoginWithWhatsapp.js +27 -6
  17. package/esm/funcs/authLoginWithWhatsapp.js.map +1 -1
  18. package/esm/funcs/authVerifyOtp.d.ts +1 -1
  19. package/esm/funcs/authVerifyOtp.d.ts.map +1 -1
  20. package/esm/funcs/authVerifyOtp.js +27 -6
  21. package/esm/funcs/authVerifyOtp.js.map +1 -1
  22. package/esm/lib/config.d.ts +3 -3
  23. package/esm/lib/config.js +3 -3
  24. package/esm/models/operations/generateotp.d.ts +106 -0
  25. package/esm/models/operations/generateotp.d.ts.map +1 -1
  26. package/esm/models/operations/generateotp.js +144 -0
  27. package/esm/models/operations/generateotp.js.map +1 -1
  28. package/esm/models/operations/loginwithemail.d.ts +106 -0
  29. package/esm/models/operations/loginwithemail.d.ts.map +1 -1
  30. package/esm/models/operations/loginwithemail.js +147 -0
  31. package/esm/models/operations/loginwithemail.js.map +1 -1
  32. package/esm/models/operations/loginwithphone.d.ts +106 -0
  33. package/esm/models/operations/loginwithphone.d.ts.map +1 -1
  34. package/esm/models/operations/loginwithphone.js +147 -0
  35. package/esm/models/operations/loginwithphone.js.map +1 -1
  36. package/esm/models/operations/loginwithwhatsapp.d.ts +106 -0
  37. package/esm/models/operations/loginwithwhatsapp.d.ts.map +1 -1
  38. package/esm/models/operations/loginwithwhatsapp.js +150 -0
  39. package/esm/models/operations/loginwithwhatsapp.js.map +1 -1
  40. package/esm/models/operations/verifyotp.d.ts +106 -0
  41. package/esm/models/operations/verifyotp.d.ts.map +1 -1
  42. package/esm/models/operations/verifyotp.js +144 -0
  43. package/esm/models/operations/verifyotp.js.map +1 -1
  44. package/esm/sdk/auth.d.ts +5 -5
  45. package/esm/sdk/auth.d.ts.map +1 -1
  46. package/esm/sdk/auth.js +10 -10
  47. package/esm/sdk/auth.js.map +1 -1
  48. package/jsr.json +1 -1
  49. package/package.json +1 -1
  50. package/src/funcs/authGenerateOtp.ts +31 -5
  51. package/src/funcs/authLoginWithEmail.ts +31 -5
  52. package/src/funcs/authLoginWithPhone.ts +31 -5
  53. package/src/funcs/authLoginWithWhatsapp.ts +31 -5
  54. package/src/funcs/authVerifyOtp.ts +31 -5
  55. package/src/lib/config.ts +3 -3
  56. package/src/models/operations/generateotp.ts +282 -0
  57. package/src/models/operations/loginwithemail.ts +291 -0
  58. package/src/models/operations/loginwithphone.ts +291 -0
  59. package/src/models/operations/loginwithwhatsapp.ts +294 -0
  60. package/src/models/operations/verifyotp.ts +282 -0
  61. package/src/sdk/auth.ts +10 -0
@@ -15,6 +15,153 @@ export const LoginWithEmailServerList = [
15
15
  "https://prod.api.commercengine.io/api/v1/{store_id}/storefront",
16
16
  ];
17
17
  /** @internal */
18
+ export const LoginWithEmailSecurityOption1$inboundSchema = z.object({
19
+ "X-Api-Key": z.string(),
20
+ }).transform((v) => {
21
+ return remap$(v, {
22
+ "X-Api-Key": "xApiKey",
23
+ });
24
+ });
25
+ /** @internal */
26
+ export const LoginWithEmailSecurityOption1$outboundSchema = z.object({
27
+ xApiKey: z.string(),
28
+ }).transform((v) => {
29
+ return remap$(v, {
30
+ xApiKey: "X-Api-Key",
31
+ });
32
+ });
33
+ /**
34
+ * @internal
35
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
36
+ */
37
+ export var LoginWithEmailSecurityOption1$;
38
+ (function (LoginWithEmailSecurityOption1$) {
39
+ /** @deprecated use `LoginWithEmailSecurityOption1$inboundSchema` instead. */
40
+ LoginWithEmailSecurityOption1$.inboundSchema = LoginWithEmailSecurityOption1$inboundSchema;
41
+ /** @deprecated use `LoginWithEmailSecurityOption1$outboundSchema` instead. */
42
+ LoginWithEmailSecurityOption1$.outboundSchema = LoginWithEmailSecurityOption1$outboundSchema;
43
+ })(LoginWithEmailSecurityOption1$ || (LoginWithEmailSecurityOption1$ = {}));
44
+ export function loginWithEmailSecurityOption1ToJSON(loginWithEmailSecurityOption1) {
45
+ return JSON.stringify(LoginWithEmailSecurityOption1$outboundSchema.parse(loginWithEmailSecurityOption1));
46
+ }
47
+ export function loginWithEmailSecurityOption1FromJSON(jsonString) {
48
+ return safeParse(jsonString, (x) => LoginWithEmailSecurityOption1$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'LoginWithEmailSecurityOption1' from JSON`);
49
+ }
50
+ /** @internal */
51
+ export const LoginWithEmailSecurityOption2$inboundSchema = z.object({
52
+ Authorization: z.string(),
53
+ }).transform((v) => {
54
+ return remap$(v, {
55
+ "Authorization": "authorization",
56
+ });
57
+ });
58
+ /** @internal */
59
+ export const LoginWithEmailSecurityOption2$outboundSchema = z.object({
60
+ authorization: z.string(),
61
+ }).transform((v) => {
62
+ return remap$(v, {
63
+ authorization: "Authorization",
64
+ });
65
+ });
66
+ /**
67
+ * @internal
68
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
69
+ */
70
+ export var LoginWithEmailSecurityOption2$;
71
+ (function (LoginWithEmailSecurityOption2$) {
72
+ /** @deprecated use `LoginWithEmailSecurityOption2$inboundSchema` instead. */
73
+ LoginWithEmailSecurityOption2$.inboundSchema = LoginWithEmailSecurityOption2$inboundSchema;
74
+ /** @deprecated use `LoginWithEmailSecurityOption2$outboundSchema` instead. */
75
+ LoginWithEmailSecurityOption2$.outboundSchema = LoginWithEmailSecurityOption2$outboundSchema;
76
+ })(LoginWithEmailSecurityOption2$ || (LoginWithEmailSecurityOption2$ = {}));
77
+ export function loginWithEmailSecurityOption2ToJSON(loginWithEmailSecurityOption2) {
78
+ return JSON.stringify(LoginWithEmailSecurityOption2$outboundSchema.parse(loginWithEmailSecurityOption2));
79
+ }
80
+ export function loginWithEmailSecurityOption2FromJSON(jsonString) {
81
+ return safeParse(jsonString, (x) => LoginWithEmailSecurityOption2$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'LoginWithEmailSecurityOption2' from JSON`);
82
+ }
83
+ /** @internal */
84
+ export const LoginWithEmailSecurityOption3$inboundSchema = z.object({
85
+ "X-Api-Key": z.string(),
86
+ Authorization: z.string(),
87
+ }).transform((v) => {
88
+ return remap$(v, {
89
+ "X-Api-Key": "xApiKey",
90
+ "Authorization": "authorization",
91
+ });
92
+ });
93
+ /** @internal */
94
+ export const LoginWithEmailSecurityOption3$outboundSchema = z.object({
95
+ xApiKey: z.string(),
96
+ authorization: z.string(),
97
+ }).transform((v) => {
98
+ return remap$(v, {
99
+ xApiKey: "X-Api-Key",
100
+ authorization: "Authorization",
101
+ });
102
+ });
103
+ /**
104
+ * @internal
105
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
106
+ */
107
+ export var LoginWithEmailSecurityOption3$;
108
+ (function (LoginWithEmailSecurityOption3$) {
109
+ /** @deprecated use `LoginWithEmailSecurityOption3$inboundSchema` instead. */
110
+ LoginWithEmailSecurityOption3$.inboundSchema = LoginWithEmailSecurityOption3$inboundSchema;
111
+ /** @deprecated use `LoginWithEmailSecurityOption3$outboundSchema` instead. */
112
+ LoginWithEmailSecurityOption3$.outboundSchema = LoginWithEmailSecurityOption3$outboundSchema;
113
+ })(LoginWithEmailSecurityOption3$ || (LoginWithEmailSecurityOption3$ = {}));
114
+ export function loginWithEmailSecurityOption3ToJSON(loginWithEmailSecurityOption3) {
115
+ return JSON.stringify(LoginWithEmailSecurityOption3$outboundSchema.parse(loginWithEmailSecurityOption3));
116
+ }
117
+ export function loginWithEmailSecurityOption3FromJSON(jsonString) {
118
+ return safeParse(jsonString, (x) => LoginWithEmailSecurityOption3$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'LoginWithEmailSecurityOption3' from JSON`);
119
+ }
120
+ /** @internal */
121
+ export const LoginWithEmailSecurity$inboundSchema = z.object({
122
+ Option1: z.lazy(() => LoginWithEmailSecurityOption1$inboundSchema).optional(),
123
+ Option2: z.lazy(() => LoginWithEmailSecurityOption2$inboundSchema).optional(),
124
+ Option3: z.lazy(() => LoginWithEmailSecurityOption3$inboundSchema).optional(),
125
+ }).transform((v) => {
126
+ return remap$(v, {
127
+ "Option1": "option1",
128
+ "Option2": "option2",
129
+ "Option3": "option3",
130
+ });
131
+ });
132
+ /** @internal */
133
+ export const LoginWithEmailSecurity$outboundSchema = z.object({
134
+ option1: z.lazy(() => LoginWithEmailSecurityOption1$outboundSchema)
135
+ .optional(),
136
+ option2: z.lazy(() => LoginWithEmailSecurityOption2$outboundSchema)
137
+ .optional(),
138
+ option3: z.lazy(() => LoginWithEmailSecurityOption3$outboundSchema)
139
+ .optional(),
140
+ }).transform((v) => {
141
+ return remap$(v, {
142
+ option1: "Option1",
143
+ option2: "Option2",
144
+ option3: "Option3",
145
+ });
146
+ });
147
+ /**
148
+ * @internal
149
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
150
+ */
151
+ export var LoginWithEmailSecurity$;
152
+ (function (LoginWithEmailSecurity$) {
153
+ /** @deprecated use `LoginWithEmailSecurity$inboundSchema` instead. */
154
+ LoginWithEmailSecurity$.inboundSchema = LoginWithEmailSecurity$inboundSchema;
155
+ /** @deprecated use `LoginWithEmailSecurity$outboundSchema` instead. */
156
+ LoginWithEmailSecurity$.outboundSchema = LoginWithEmailSecurity$outboundSchema;
157
+ })(LoginWithEmailSecurity$ || (LoginWithEmailSecurity$ = {}));
158
+ export function loginWithEmailSecurityToJSON(loginWithEmailSecurity) {
159
+ return JSON.stringify(LoginWithEmailSecurity$outboundSchema.parse(loginWithEmailSecurity));
160
+ }
161
+ export function loginWithEmailSecurityFromJSON(jsonString) {
162
+ return safeParse(jsonString, (x) => LoginWithEmailSecurity$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'LoginWithEmailSecurity' from JSON`);
163
+ }
164
+ /** @internal */
18
165
  export const LoginWithEmailRequestBody$inboundSchema = z.object({
19
166
  email: z.string(),
20
167
  register_if_not_exists: z.boolean().optional(),
@@ -1 +1 @@
1
- {"version":3,"file":"loginwithemail.js","sourceRoot":"","sources":["../../../src/models/operations/loginwithemail.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;AAIjD,MAAM,CAAC,MAAM,wBAAwB,GAAG;IACtC;;OAEG;IACH,mEAAmE;IACnE;;OAEG;IACH,gEAAgE;CACxD,CAAC;AAiDX,gBAAgB;AAChB,MAAM,CAAC,MAAM,uCAAuC,GAIhD,CAAC,CAAC,MAAM,CAAC;IACX,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE;IACjB,sBAAsB,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE;CAC/C,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;IACjB,OAAO,MAAM,CAAC,CAAC,EAAE;QACf,wBAAwB,EAAE,qBAAqB;KAChD,CAAC,CAAC;AACL,CAAC,CAAC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AAC;IACtE,2EAA2E;IAC9D,0CAAc,GAAG,yCAAyC,CAAC;AAG1E,CAAC,EAPgB,2BAA2B,KAA3B,2BAA2B,QAO3C;AAED,MAAM,UAAU,gCAAgC,CAC9C,0BAAsD;IAEtD,OAAO,IAAI,CAAC,SAAS,CACnB,yCAAyC,CAAC,KAAK,CAAC,0BAA0B,CAAC,CAC5E,CAAC;AACJ,CAAC;AAED,MAAM,UAAU,kCAAkC,CAChD,UAAkB;IAElB,OAAO,SAAS,CACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,wCAAwC,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EACpE,wDAAwD,CACzD,CAAC;AACJ,CAAC"}
@@ -2,6 +2,21 @@ import * as z from "zod";
2
2
  import { Result as SafeParseResult } from "../../types/fp.js";
3
3
  import { SDKValidationError } from "../errors/sdkvalidationerror.js";
4
4
  export declare const LoginWithPhoneServerList: readonly ["https://staging.api.commercengine.io/api/v1/{store_id}/storefront", "https://prod.api.commercengine.io/api/v1/{store_id}/storefront"];
5
+ export type LoginWithPhoneSecurityOption1 = {
6
+ xApiKey: string;
7
+ };
8
+ export type LoginWithPhoneSecurityOption2 = {
9
+ authorization: string;
10
+ };
11
+ export type LoginWithPhoneSecurityOption3 = {
12
+ xApiKey: string;
13
+ authorization: string;
14
+ };
15
+ export type LoginWithPhoneSecurity = {
16
+ option1?: LoginWithPhoneSecurityOption1 | undefined;
17
+ option2?: LoginWithPhoneSecurityOption2 | undefined;
18
+ option3?: LoginWithPhoneSecurityOption3 | undefined;
19
+ };
5
20
  export type LoginWithPhoneRequestBody = {
6
21
  /**
7
22
  * Two-letter code begin with a plus sign prefix that identifies different countries. By default it will be +91 if not provided.
@@ -51,6 +66,97 @@ export type LoginWithPhoneResponseBody = {
51
66
  content?: LoginWithPhoneContent | undefined;
52
67
  };
53
68
  /** @internal */
69
+ export declare const LoginWithPhoneSecurityOption1$inboundSchema: z.ZodType<LoginWithPhoneSecurityOption1, z.ZodTypeDef, unknown>;
70
+ /** @internal */
71
+ export type LoginWithPhoneSecurityOption1$Outbound = {
72
+ "X-Api-Key": string;
73
+ };
74
+ /** @internal */
75
+ export declare const LoginWithPhoneSecurityOption1$outboundSchema: z.ZodType<LoginWithPhoneSecurityOption1$Outbound, z.ZodTypeDef, LoginWithPhoneSecurityOption1>;
76
+ /**
77
+ * @internal
78
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
79
+ */
80
+ export declare namespace LoginWithPhoneSecurityOption1$ {
81
+ /** @deprecated use `LoginWithPhoneSecurityOption1$inboundSchema` instead. */
82
+ const inboundSchema: z.ZodType<LoginWithPhoneSecurityOption1, z.ZodTypeDef, unknown>;
83
+ /** @deprecated use `LoginWithPhoneSecurityOption1$outboundSchema` instead. */
84
+ const outboundSchema: z.ZodType<LoginWithPhoneSecurityOption1$Outbound, z.ZodTypeDef, LoginWithPhoneSecurityOption1>;
85
+ /** @deprecated use `LoginWithPhoneSecurityOption1$Outbound` instead. */
86
+ type Outbound = LoginWithPhoneSecurityOption1$Outbound;
87
+ }
88
+ export declare function loginWithPhoneSecurityOption1ToJSON(loginWithPhoneSecurityOption1: LoginWithPhoneSecurityOption1): string;
89
+ export declare function loginWithPhoneSecurityOption1FromJSON(jsonString: string): SafeParseResult<LoginWithPhoneSecurityOption1, SDKValidationError>;
90
+ /** @internal */
91
+ export declare const LoginWithPhoneSecurityOption2$inboundSchema: z.ZodType<LoginWithPhoneSecurityOption2, z.ZodTypeDef, unknown>;
92
+ /** @internal */
93
+ export type LoginWithPhoneSecurityOption2$Outbound = {
94
+ Authorization: string;
95
+ };
96
+ /** @internal */
97
+ export declare const LoginWithPhoneSecurityOption2$outboundSchema: z.ZodType<LoginWithPhoneSecurityOption2$Outbound, z.ZodTypeDef, LoginWithPhoneSecurityOption2>;
98
+ /**
99
+ * @internal
100
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
101
+ */
102
+ export declare namespace LoginWithPhoneSecurityOption2$ {
103
+ /** @deprecated use `LoginWithPhoneSecurityOption2$inboundSchema` instead. */
104
+ const inboundSchema: z.ZodType<LoginWithPhoneSecurityOption2, z.ZodTypeDef, unknown>;
105
+ /** @deprecated use `LoginWithPhoneSecurityOption2$outboundSchema` instead. */
106
+ const outboundSchema: z.ZodType<LoginWithPhoneSecurityOption2$Outbound, z.ZodTypeDef, LoginWithPhoneSecurityOption2>;
107
+ /** @deprecated use `LoginWithPhoneSecurityOption2$Outbound` instead. */
108
+ type Outbound = LoginWithPhoneSecurityOption2$Outbound;
109
+ }
110
+ export declare function loginWithPhoneSecurityOption2ToJSON(loginWithPhoneSecurityOption2: LoginWithPhoneSecurityOption2): string;
111
+ export declare function loginWithPhoneSecurityOption2FromJSON(jsonString: string): SafeParseResult<LoginWithPhoneSecurityOption2, SDKValidationError>;
112
+ /** @internal */
113
+ export declare const LoginWithPhoneSecurityOption3$inboundSchema: z.ZodType<LoginWithPhoneSecurityOption3, z.ZodTypeDef, unknown>;
114
+ /** @internal */
115
+ export type LoginWithPhoneSecurityOption3$Outbound = {
116
+ "X-Api-Key": string;
117
+ Authorization: string;
118
+ };
119
+ /** @internal */
120
+ export declare const LoginWithPhoneSecurityOption3$outboundSchema: z.ZodType<LoginWithPhoneSecurityOption3$Outbound, z.ZodTypeDef, LoginWithPhoneSecurityOption3>;
121
+ /**
122
+ * @internal
123
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
124
+ */
125
+ export declare namespace LoginWithPhoneSecurityOption3$ {
126
+ /** @deprecated use `LoginWithPhoneSecurityOption3$inboundSchema` instead. */
127
+ const inboundSchema: z.ZodType<LoginWithPhoneSecurityOption3, z.ZodTypeDef, unknown>;
128
+ /** @deprecated use `LoginWithPhoneSecurityOption3$outboundSchema` instead. */
129
+ const outboundSchema: z.ZodType<LoginWithPhoneSecurityOption3$Outbound, z.ZodTypeDef, LoginWithPhoneSecurityOption3>;
130
+ /** @deprecated use `LoginWithPhoneSecurityOption3$Outbound` instead. */
131
+ type Outbound = LoginWithPhoneSecurityOption3$Outbound;
132
+ }
133
+ export declare function loginWithPhoneSecurityOption3ToJSON(loginWithPhoneSecurityOption3: LoginWithPhoneSecurityOption3): string;
134
+ export declare function loginWithPhoneSecurityOption3FromJSON(jsonString: string): SafeParseResult<LoginWithPhoneSecurityOption3, SDKValidationError>;
135
+ /** @internal */
136
+ export declare const LoginWithPhoneSecurity$inboundSchema: z.ZodType<LoginWithPhoneSecurity, z.ZodTypeDef, unknown>;
137
+ /** @internal */
138
+ export type LoginWithPhoneSecurity$Outbound = {
139
+ Option1?: LoginWithPhoneSecurityOption1$Outbound | undefined;
140
+ Option2?: LoginWithPhoneSecurityOption2$Outbound | undefined;
141
+ Option3?: LoginWithPhoneSecurityOption3$Outbound | undefined;
142
+ };
143
+ /** @internal */
144
+ export declare const LoginWithPhoneSecurity$outboundSchema: z.ZodType<LoginWithPhoneSecurity$Outbound, z.ZodTypeDef, LoginWithPhoneSecurity>;
145
+ /**
146
+ * @internal
147
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
148
+ */
149
+ export declare namespace LoginWithPhoneSecurity$ {
150
+ /** @deprecated use `LoginWithPhoneSecurity$inboundSchema` instead. */
151
+ const inboundSchema: z.ZodType<LoginWithPhoneSecurity, z.ZodTypeDef, unknown>;
152
+ /** @deprecated use `LoginWithPhoneSecurity$outboundSchema` instead. */
153
+ const outboundSchema: z.ZodType<LoginWithPhoneSecurity$Outbound, z.ZodTypeDef, LoginWithPhoneSecurity>;
154
+ /** @deprecated use `LoginWithPhoneSecurity$Outbound` instead. */
155
+ type Outbound = LoginWithPhoneSecurity$Outbound;
156
+ }
157
+ export declare function loginWithPhoneSecurityToJSON(loginWithPhoneSecurity: LoginWithPhoneSecurity): string;
158
+ export declare function loginWithPhoneSecurityFromJSON(jsonString: string): SafeParseResult<LoginWithPhoneSecurity, SDKValidationError>;
159
+ /** @internal */
54
160
  export declare const LoginWithPhoneRequestBody$inboundSchema: z.ZodType<LoginWithPhoneRequestBody, z.ZodTypeDef, unknown>;
55
161
  /** @internal */
56
162
  export type LoginWithPhoneRequestBody$Outbound = {
@@ -1 +1 @@
1
- {"version":3,"file":"loginwithphone.d.ts","sourceRoot":"","sources":["../../../src/models/operations/loginwithphone.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAGzB,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AAErE,eAAO,MAAM,wBAAwB,kJAS3B,CAAC;AAEX,MAAM,MAAM,yBAAyB,GAAG;IACtC;;OAEG;IACH,WAAW,CAAC,EAAE,KAAK,GAAG,SAAS,CAAC;IAChC;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;;;;;OAMG;IACH,mBAAmB,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;CAC3C,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,qBAAqB,GAAG;IAClC;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC9B;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CAChC,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,0BAA0B,GAAG;IACvC;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC7B;;OAEG;IACH,OAAO,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;IAC9B;;OAEG;IACH,OAAO,CAAC,EAAE,qBAAqB,GAAG,SAAS,CAAC;CAC7C,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,uCAAuC,EAAE,CAAC,CAAC,OAAO,CAC7D,yBAAyB,EACzB,CAAC,CAAC,UAAU,EACZ,OAAO,CAUP,CAAC;AAEH,gBAAgB;AAChB,MAAM,MAAM,kCAAkC,GAAG;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,CAAC,OAAO,CAC/D,mCAAmC,EACnC,CAAC,CAAC,UAAU,EACZ,0BAA0B,CAK1B,CAAC;AAEH;;;GAGG;AACH,yBAAiB,2BAA2B,CAAC;IAC3C,0EAA0E;IACnE,MAAM,aAAa,8DAA2C,CAAC;IACtE,2EAA2E;IACpE,MAAM,cAAc,0FAA4C,CAAC;IACxE,qEAAqE;IACrE,KAAY,QAAQ,GAAG,mCAAmC,CAAC;CAC5D;AAED,wBAAgB,gCAAgC,CAC9C,0BAA0B,EAAE,0BAA0B,GACrD,MAAM,CAIR;AAED,wBAAgB,kCAAkC,CAChD,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,0BAA0B,EAAE,kBAAkB,CAAC,CAMjE"}
@@ -15,6 +15,153 @@ export const LoginWithPhoneServerList = [
15
15
  "https://prod.api.commercengine.io/api/v1/{store_id}/storefront",
16
16
  ];
17
17
  /** @internal */
18
+ export const LoginWithPhoneSecurityOption1$inboundSchema = z.object({
19
+ "X-Api-Key": z.string(),
20
+ }).transform((v) => {
21
+ return remap$(v, {
22
+ "X-Api-Key": "xApiKey",
23
+ });
24
+ });
25
+ /** @internal */
26
+ export const LoginWithPhoneSecurityOption1$outboundSchema = z.object({
27
+ xApiKey: z.string(),
28
+ }).transform((v) => {
29
+ return remap$(v, {
30
+ xApiKey: "X-Api-Key",
31
+ });
32
+ });
33
+ /**
34
+ * @internal
35
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
36
+ */
37
+ export var LoginWithPhoneSecurityOption1$;
38
+ (function (LoginWithPhoneSecurityOption1$) {
39
+ /** @deprecated use `LoginWithPhoneSecurityOption1$inboundSchema` instead. */
40
+ LoginWithPhoneSecurityOption1$.inboundSchema = LoginWithPhoneSecurityOption1$inboundSchema;
41
+ /** @deprecated use `LoginWithPhoneSecurityOption1$outboundSchema` instead. */
42
+ LoginWithPhoneSecurityOption1$.outboundSchema = LoginWithPhoneSecurityOption1$outboundSchema;
43
+ })(LoginWithPhoneSecurityOption1$ || (LoginWithPhoneSecurityOption1$ = {}));
44
+ export function loginWithPhoneSecurityOption1ToJSON(loginWithPhoneSecurityOption1) {
45
+ return JSON.stringify(LoginWithPhoneSecurityOption1$outboundSchema.parse(loginWithPhoneSecurityOption1));
46
+ }
47
+ export function loginWithPhoneSecurityOption1FromJSON(jsonString) {
48
+ return safeParse(jsonString, (x) => LoginWithPhoneSecurityOption1$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'LoginWithPhoneSecurityOption1' from JSON`);
49
+ }
50
+ /** @internal */
51
+ export const LoginWithPhoneSecurityOption2$inboundSchema = z.object({
52
+ Authorization: z.string(),
53
+ }).transform((v) => {
54
+ return remap$(v, {
55
+ "Authorization": "authorization",
56
+ });
57
+ });
58
+ /** @internal */
59
+ export const LoginWithPhoneSecurityOption2$outboundSchema = z.object({
60
+ authorization: z.string(),
61
+ }).transform((v) => {
62
+ return remap$(v, {
63
+ authorization: "Authorization",
64
+ });
65
+ });
66
+ /**
67
+ * @internal
68
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
69
+ */
70
+ export var LoginWithPhoneSecurityOption2$;
71
+ (function (LoginWithPhoneSecurityOption2$) {
72
+ /** @deprecated use `LoginWithPhoneSecurityOption2$inboundSchema` instead. */
73
+ LoginWithPhoneSecurityOption2$.inboundSchema = LoginWithPhoneSecurityOption2$inboundSchema;
74
+ /** @deprecated use `LoginWithPhoneSecurityOption2$outboundSchema` instead. */
75
+ LoginWithPhoneSecurityOption2$.outboundSchema = LoginWithPhoneSecurityOption2$outboundSchema;
76
+ })(LoginWithPhoneSecurityOption2$ || (LoginWithPhoneSecurityOption2$ = {}));
77
+ export function loginWithPhoneSecurityOption2ToJSON(loginWithPhoneSecurityOption2) {
78
+ return JSON.stringify(LoginWithPhoneSecurityOption2$outboundSchema.parse(loginWithPhoneSecurityOption2));
79
+ }
80
+ export function loginWithPhoneSecurityOption2FromJSON(jsonString) {
81
+ return safeParse(jsonString, (x) => LoginWithPhoneSecurityOption2$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'LoginWithPhoneSecurityOption2' from JSON`);
82
+ }
83
+ /** @internal */
84
+ export const LoginWithPhoneSecurityOption3$inboundSchema = z.object({
85
+ "X-Api-Key": z.string(),
86
+ Authorization: z.string(),
87
+ }).transform((v) => {
88
+ return remap$(v, {
89
+ "X-Api-Key": "xApiKey",
90
+ "Authorization": "authorization",
91
+ });
92
+ });
93
+ /** @internal */
94
+ export const LoginWithPhoneSecurityOption3$outboundSchema = z.object({
95
+ xApiKey: z.string(),
96
+ authorization: z.string(),
97
+ }).transform((v) => {
98
+ return remap$(v, {
99
+ xApiKey: "X-Api-Key",
100
+ authorization: "Authorization",
101
+ });
102
+ });
103
+ /**
104
+ * @internal
105
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
106
+ */
107
+ export var LoginWithPhoneSecurityOption3$;
108
+ (function (LoginWithPhoneSecurityOption3$) {
109
+ /** @deprecated use `LoginWithPhoneSecurityOption3$inboundSchema` instead. */
110
+ LoginWithPhoneSecurityOption3$.inboundSchema = LoginWithPhoneSecurityOption3$inboundSchema;
111
+ /** @deprecated use `LoginWithPhoneSecurityOption3$outboundSchema` instead. */
112
+ LoginWithPhoneSecurityOption3$.outboundSchema = LoginWithPhoneSecurityOption3$outboundSchema;
113
+ })(LoginWithPhoneSecurityOption3$ || (LoginWithPhoneSecurityOption3$ = {}));
114
+ export function loginWithPhoneSecurityOption3ToJSON(loginWithPhoneSecurityOption3) {
115
+ return JSON.stringify(LoginWithPhoneSecurityOption3$outboundSchema.parse(loginWithPhoneSecurityOption3));
116
+ }
117
+ export function loginWithPhoneSecurityOption3FromJSON(jsonString) {
118
+ return safeParse(jsonString, (x) => LoginWithPhoneSecurityOption3$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'LoginWithPhoneSecurityOption3' from JSON`);
119
+ }
120
+ /** @internal */
121
+ export const LoginWithPhoneSecurity$inboundSchema = z.object({
122
+ Option1: z.lazy(() => LoginWithPhoneSecurityOption1$inboundSchema).optional(),
123
+ Option2: z.lazy(() => LoginWithPhoneSecurityOption2$inboundSchema).optional(),
124
+ Option3: z.lazy(() => LoginWithPhoneSecurityOption3$inboundSchema).optional(),
125
+ }).transform((v) => {
126
+ return remap$(v, {
127
+ "Option1": "option1",
128
+ "Option2": "option2",
129
+ "Option3": "option3",
130
+ });
131
+ });
132
+ /** @internal */
133
+ export const LoginWithPhoneSecurity$outboundSchema = z.object({
134
+ option1: z.lazy(() => LoginWithPhoneSecurityOption1$outboundSchema)
135
+ .optional(),
136
+ option2: z.lazy(() => LoginWithPhoneSecurityOption2$outboundSchema)
137
+ .optional(),
138
+ option3: z.lazy(() => LoginWithPhoneSecurityOption3$outboundSchema)
139
+ .optional(),
140
+ }).transform((v) => {
141
+ return remap$(v, {
142
+ option1: "Option1",
143
+ option2: "Option2",
144
+ option3: "Option3",
145
+ });
146
+ });
147
+ /**
148
+ * @internal
149
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
150
+ */
151
+ export var LoginWithPhoneSecurity$;
152
+ (function (LoginWithPhoneSecurity$) {
153
+ /** @deprecated use `LoginWithPhoneSecurity$inboundSchema` instead. */
154
+ LoginWithPhoneSecurity$.inboundSchema = LoginWithPhoneSecurity$inboundSchema;
155
+ /** @deprecated use `LoginWithPhoneSecurity$outboundSchema` instead. */
156
+ LoginWithPhoneSecurity$.outboundSchema = LoginWithPhoneSecurity$outboundSchema;
157
+ })(LoginWithPhoneSecurity$ || (LoginWithPhoneSecurity$ = {}));
158
+ export function loginWithPhoneSecurityToJSON(loginWithPhoneSecurity) {
159
+ return JSON.stringify(LoginWithPhoneSecurity$outboundSchema.parse(loginWithPhoneSecurity));
160
+ }
161
+ export function loginWithPhoneSecurityFromJSON(jsonString) {
162
+ return safeParse(jsonString, (x) => LoginWithPhoneSecurity$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'LoginWithPhoneSecurity' from JSON`);
163
+ }
164
+ /** @internal */
18
165
  export const LoginWithPhoneRequestBody$inboundSchema = z.object({
19
166
  country_code: z.literal("+91").optional(),
20
167
  phone: z.string(),
@@ -1 +1 @@
1
- {"version":3,"file":"loginwithphone.js","sourceRoot":"","sources":["../../../src/models/operations/loginwithphone.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;AAIjD,MAAM,CAAC,MAAM,wBAAwB,GAAG;IACtC;;OAEG;IACH,mEAAmE;IACnE;;OAEG;IACH,gEAAgE;CACxD,CAAC;AAqDX,gBAAgB;AAChB,MAAM,CAAC,MAAM,uCAAuC,GAIhD,CAAC,CAAC,MAAM,CAAC;IACX,YAAY,EAAE,CAAC,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC,QAAQ,EAAE;IACzC,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE;IACjB,sBAAsB,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE;CAC/C,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;IACjB,OAAO,MAAM,CAAC,CAAC,EAAE;QACf,cAAc,EAAE,aAAa;QAC7B,wBAAwB,EAAE,qBAAqB;KAChD,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AASH,gBAAgB;AAChB,MAAM,CAAC,MAAM,wCAAwC,GAIjD,CAAC,CAAC,MAAM,CAAC;IACX,WAAW,EAAE,CAAC,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC,OAAO,CAAC,KAAc,CAAC;IACrD,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE;IACjB,mBAAmB,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE;CAC5C,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;IACjB,OAAO,MA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CAAc,GAAG,yCAAyC,CAAC;AAG1E,CAAC,EAPgB,2BAA2B,KAA3B,2BAA2B,QAO3C;AAED,MAAM,UAAU,gCAAgC,CAC9C,0BAAsD;IAEtD,OAAO,IAAI,CAAC,SAAS,CACnB,yCAAyC,CAAC,KAAK,CAAC,0BAA0B,CAAC,CAC5E,CAAC;AACJ,CAAC;AAED,MAAM,UAAU,kCAAkC,CAChD,UAAkB;IAElB,OAAO,SAAS,CACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,wCAAwC,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EACpE,wDAAwD,CACzD,CAAC;AACJ,CAAC"}
@@ -2,6 +2,21 @@ import * as z from "zod";
2
2
  import { Result as SafeParseResult } from "../../types/fp.js";
3
3
  import { SDKValidationError } from "../errors/sdkvalidationerror.js";
4
4
  export declare const LoginWithWhatsappServerList: readonly ["https://staging.api.commercengine.io/api/v1/{store_id}/storefront", "https://prod.api.commercengine.io/api/v1/{store_id}/storefront"];
5
+ export type LoginWithWhatsappSecurityOption1 = {
6
+ xApiKey: string;
7
+ };
8
+ export type LoginWithWhatsappSecurityOption2 = {
9
+ authorization: string;
10
+ };
11
+ export type LoginWithWhatsappSecurityOption3 = {
12
+ xApiKey: string;
13
+ authorization: string;
14
+ };
15
+ export type LoginWithWhatsappSecurity = {
16
+ option1?: LoginWithWhatsappSecurityOption1 | undefined;
17
+ option2?: LoginWithWhatsappSecurityOption2 | undefined;
18
+ option3?: LoginWithWhatsappSecurityOption3 | undefined;
19
+ };
5
20
  export type LoginWithWhatsappRequestBody = {
6
21
  /**
7
22
  * Two-letter code begin with a plus sign prefix that identifies different countries. By default it will be +91 if not provided.
@@ -51,6 +66,97 @@ export type LoginWithWhatsappResponseBody = {
51
66
  content?: LoginWithWhatsappContent | undefined;
52
67
  };
53
68
  /** @internal */
69
+ export declare const LoginWithWhatsappSecurityOption1$inboundSchema: z.ZodType<LoginWithWhatsappSecurityOption1, z.ZodTypeDef, unknown>;
70
+ /** @internal */
71
+ export type LoginWithWhatsappSecurityOption1$Outbound = {
72
+ "X-Api-Key": string;
73
+ };
74
+ /** @internal */
75
+ export declare const LoginWithWhatsappSecurityOption1$outboundSchema: z.ZodType<LoginWithWhatsappSecurityOption1$Outbound, z.ZodTypeDef, LoginWithWhatsappSecurityOption1>;
76
+ /**
77
+ * @internal
78
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
79
+ */
80
+ export declare namespace LoginWithWhatsappSecurityOption1$ {
81
+ /** @deprecated use `LoginWithWhatsappSecurityOption1$inboundSchema` instead. */
82
+ const inboundSchema: z.ZodType<LoginWithWhatsappSecurityOption1, z.ZodTypeDef, unknown>;
83
+ /** @deprecated use `LoginWithWhatsappSecurityOption1$outboundSchema` instead. */
84
+ const outboundSchema: z.ZodType<LoginWithWhatsappSecurityOption1$Outbound, z.ZodTypeDef, LoginWithWhatsappSecurityOption1>;
85
+ /** @deprecated use `LoginWithWhatsappSecurityOption1$Outbound` instead. */
86
+ type Outbound = LoginWithWhatsappSecurityOption1$Outbound;
87
+ }
88
+ export declare function loginWithWhatsappSecurityOption1ToJSON(loginWithWhatsappSecurityOption1: LoginWithWhatsappSecurityOption1): string;
89
+ export declare function loginWithWhatsappSecurityOption1FromJSON(jsonString: string): SafeParseResult<LoginWithWhatsappSecurityOption1, SDKValidationError>;
90
+ /** @internal */
91
+ export declare const LoginWithWhatsappSecurityOption2$inboundSchema: z.ZodType<LoginWithWhatsappSecurityOption2, z.ZodTypeDef, unknown>;
92
+ /** @internal */
93
+ export type LoginWithWhatsappSecurityOption2$Outbound = {
94
+ Authorization: string;
95
+ };
96
+ /** @internal */
97
+ export declare const LoginWithWhatsappSecurityOption2$outboundSchema: z.ZodType<LoginWithWhatsappSecurityOption2$Outbound, z.ZodTypeDef, LoginWithWhatsappSecurityOption2>;
98
+ /**
99
+ * @internal
100
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
101
+ */
102
+ export declare namespace LoginWithWhatsappSecurityOption2$ {
103
+ /** @deprecated use `LoginWithWhatsappSecurityOption2$inboundSchema` instead. */
104
+ const inboundSchema: z.ZodType<LoginWithWhatsappSecurityOption2, z.ZodTypeDef, unknown>;
105
+ /** @deprecated use `LoginWithWhatsappSecurityOption2$outboundSchema` instead. */
106
+ const outboundSchema: z.ZodType<LoginWithWhatsappSecurityOption2$Outbound, z.ZodTypeDef, LoginWithWhatsappSecurityOption2>;
107
+ /** @deprecated use `LoginWithWhatsappSecurityOption2$Outbound` instead. */
108
+ type Outbound = LoginWithWhatsappSecurityOption2$Outbound;
109
+ }
110
+ export declare function loginWithWhatsappSecurityOption2ToJSON(loginWithWhatsappSecurityOption2: LoginWithWhatsappSecurityOption2): string;
111
+ export declare function loginWithWhatsappSecurityOption2FromJSON(jsonString: string): SafeParseResult<LoginWithWhatsappSecurityOption2, SDKValidationError>;
112
+ /** @internal */
113
+ export declare const LoginWithWhatsappSecurityOption3$inboundSchema: z.ZodType<LoginWithWhatsappSecurityOption3, z.ZodTypeDef, unknown>;
114
+ /** @internal */
115
+ export type LoginWithWhatsappSecurityOption3$Outbound = {
116
+ "X-Api-Key": string;
117
+ Authorization: string;
118
+ };
119
+ /** @internal */
120
+ export declare const LoginWithWhatsappSecurityOption3$outboundSchema: z.ZodType<LoginWithWhatsappSecurityOption3$Outbound, z.ZodTypeDef, LoginWithWhatsappSecurityOption3>;
121
+ /**
122
+ * @internal
123
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
124
+ */
125
+ export declare namespace LoginWithWhatsappSecurityOption3$ {
126
+ /** @deprecated use `LoginWithWhatsappSecurityOption3$inboundSchema` instead. */
127
+ const inboundSchema: z.ZodType<LoginWithWhatsappSecurityOption3, z.ZodTypeDef, unknown>;
128
+ /** @deprecated use `LoginWithWhatsappSecurityOption3$outboundSchema` instead. */
129
+ const outboundSchema: z.ZodType<LoginWithWhatsappSecurityOption3$Outbound, z.ZodTypeDef, LoginWithWhatsappSecurityOption3>;
130
+ /** @deprecated use `LoginWithWhatsappSecurityOption3$Outbound` instead. */
131
+ type Outbound = LoginWithWhatsappSecurityOption3$Outbound;
132
+ }
133
+ export declare function loginWithWhatsappSecurityOption3ToJSON(loginWithWhatsappSecurityOption3: LoginWithWhatsappSecurityOption3): string;
134
+ export declare function loginWithWhatsappSecurityOption3FromJSON(jsonString: string): SafeParseResult<LoginWithWhatsappSecurityOption3, SDKValidationError>;
135
+ /** @internal */
136
+ export declare const LoginWithWhatsappSecurity$inboundSchema: z.ZodType<LoginWithWhatsappSecurity, z.ZodTypeDef, unknown>;
137
+ /** @internal */
138
+ export type LoginWithWhatsappSecurity$Outbound = {
139
+ Option1?: LoginWithWhatsappSecurityOption1$Outbound | undefined;
140
+ Option2?: LoginWithWhatsappSecurityOption2$Outbound | undefined;
141
+ Option3?: LoginWithWhatsappSecurityOption3$Outbound | undefined;
142
+ };
143
+ /** @internal */
144
+ export declare const LoginWithWhatsappSecurity$outboundSchema: z.ZodType<LoginWithWhatsappSecurity$Outbound, z.ZodTypeDef, LoginWithWhatsappSecurity>;
145
+ /**
146
+ * @internal
147
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
148
+ */
149
+ export declare namespace LoginWithWhatsappSecurity$ {
150
+ /** @deprecated use `LoginWithWhatsappSecurity$inboundSchema` instead. */
151
+ const inboundSchema: z.ZodType<LoginWithWhatsappSecurity, z.ZodTypeDef, unknown>;
152
+ /** @deprecated use `LoginWithWhatsappSecurity$outboundSchema` instead. */
153
+ const outboundSchema: z.ZodType<LoginWithWhatsappSecurity$Outbound, z.ZodTypeDef, LoginWithWhatsappSecurity>;
154
+ /** @deprecated use `LoginWithWhatsappSecurity$Outbound` instead. */
155
+ type Outbound = LoginWithWhatsappSecurity$Outbound;
156
+ }
157
+ export declare function loginWithWhatsappSecurityToJSON(loginWithWhatsappSecurity: LoginWithWhatsappSecurity): string;
158
+ export declare function loginWithWhatsappSecurityFromJSON(jsonString: string): SafeParseResult<LoginWithWhatsappSecurity, SDKValidationError>;
159
+ /** @internal */
54
160
  export declare const LoginWithWhatsappRequestBody$inboundSchema: z.ZodType<LoginWithWhatsappRequestBody, z.ZodTypeDef, unknown>;
55
161
  /** @internal */
56
162
  export type LoginWithWhatsappRequestBody$Outbound = {