@greensecurity/javascript-sdk 0.39.41 → 0.39.46

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 (243) hide show
  1. package/bin/mcp-server.js +180 -121
  2. package/bin/mcp-server.js.map +34 -33
  3. package/dist/commonjs/__tests__/zones.test.js +5 -2
  4. package/dist/commonjs/__tests__/zones.test.js.map +1 -1
  5. package/dist/commonjs/lib/config.d.ts +3 -3
  6. package/dist/commonjs/lib/config.js +3 -3
  7. package/dist/commonjs/mcp-server/mcp-server.js +1 -1
  8. package/dist/commonjs/mcp-server/server.js +1 -1
  9. package/dist/commonjs/models/components/backgroundcheckresult.d.ts +27 -27
  10. package/dist/commonjs/models/components/backgroundcheckresult.d.ts.map +1 -1
  11. package/dist/commonjs/models/components/backgroundcheckresult.js.map +1 -1
  12. package/dist/commonjs/models/components/contact.d.ts +25 -25
  13. package/dist/commonjs/models/components/contact.d.ts.map +1 -1
  14. package/dist/commonjs/models/components/contact.js +17 -17
  15. package/dist/commonjs/models/components/contact.js.map +1 -1
  16. package/dist/commonjs/models/components/credential.d.ts +25 -25
  17. package/dist/commonjs/models/components/credential.d.ts.map +1 -1
  18. package/dist/commonjs/models/components/credential.js.map +1 -1
  19. package/dist/commonjs/models/components/credentialdocument.d.ts +21 -21
  20. package/dist/commonjs/models/components/credentialdocument.d.ts.map +1 -1
  21. package/dist/commonjs/models/components/credentialdocument.js +24 -24
  22. package/dist/commonjs/models/components/credentialdocument.js.map +1 -1
  23. package/dist/commonjs/models/components/credit.d.ts +10 -10
  24. package/dist/commonjs/models/components/credit.d.ts.map +1 -1
  25. package/dist/commonjs/models/components/credit.js.map +1 -1
  26. package/dist/commonjs/models/components/datarequest.d.ts +21 -21
  27. package/dist/commonjs/models/components/datarequest.d.ts.map +1 -1
  28. package/dist/commonjs/models/components/datarequest.js.map +1 -1
  29. package/dist/commonjs/models/components/facility.d.ts +25 -25
  30. package/dist/commonjs/models/components/facility.d.ts.map +1 -1
  31. package/dist/commonjs/models/components/facility.js +16 -16
  32. package/dist/commonjs/models/components/facility.js.map +1 -1
  33. package/dist/commonjs/models/components/feed.d.ts +15 -0
  34. package/dist/commonjs/models/components/feed.d.ts.map +1 -1
  35. package/dist/commonjs/models/components/feed.js +21 -0
  36. package/dist/commonjs/models/components/feed.js.map +1 -1
  37. package/dist/commonjs/models/components/index.d.ts +1 -0
  38. package/dist/commonjs/models/components/index.d.ts.map +1 -1
  39. package/dist/commonjs/models/components/index.js +1 -0
  40. package/dist/commonjs/models/components/index.js.map +1 -1
  41. package/dist/commonjs/models/components/invitee.d.ts +33 -0
  42. package/dist/commonjs/models/components/invitee.d.ts.map +1 -0
  43. package/dist/commonjs/models/components/invitee.js +73 -0
  44. package/dist/commonjs/models/components/invitee.js.map +1 -0
  45. package/dist/commonjs/models/components/mfarequiredresponse.d.ts +20 -20
  46. package/dist/commonjs/models/components/mfarequiredresponse.d.ts.map +1 -1
  47. package/dist/commonjs/models/components/mfarequiredresponse.js.map +1 -1
  48. package/dist/commonjs/models/components/passwordrequiredresponse.d.ts +11 -11
  49. package/dist/commonjs/models/components/passwordrequiredresponse.d.ts.map +1 -1
  50. package/dist/commonjs/models/components/passwordrequiredresponse.js.map +1 -1
  51. package/dist/commonjs/models/components/samlloginrequiredresponse.d.ts +18 -18
  52. package/dist/commonjs/models/components/samlloginrequiredresponse.d.ts.map +1 -1
  53. package/dist/commonjs/models/components/samlloginrequiredresponse.js.map +1 -1
  54. package/dist/commonjs/models/components/standingappointment.d.ts +15 -2
  55. package/dist/commonjs/models/components/standingappointment.d.ts.map +1 -1
  56. package/dist/commonjs/models/components/standingappointment.js +21 -4
  57. package/dist/commonjs/models/components/standingappointment.js.map +1 -1
  58. package/dist/commonjs/models/components/user.d.ts +65 -65
  59. package/dist/commonjs/models/components/user.d.ts.map +1 -1
  60. package/dist/commonjs/models/components/user.js +17 -17
  61. package/dist/commonjs/models/components/user.js.map +1 -1
  62. package/dist/commonjs/models/components/userlocation.d.ts +19 -19
  63. package/dist/commonjs/models/components/userlocation.d.ts.map +1 -1
  64. package/dist/commonjs/models/components/userlocation.js.map +1 -1
  65. package/dist/commonjs/models/components/vendorcredentialdatarequest.d.ts +42 -42
  66. package/dist/commonjs/models/components/vendorcredentialdatarequest.d.ts.map +1 -1
  67. package/dist/commonjs/models/components/vendorcredentialdatarequest.js +45 -45
  68. package/dist/commonjs/models/components/vendorcredentialdatarequest.js.map +1 -1
  69. package/dist/commonjs/models/components/vendorcredentialfile.d.ts +21 -21
  70. package/dist/commonjs/models/components/vendorcredentialfile.d.ts.map +1 -1
  71. package/dist/commonjs/models/components/vendorcredentialfile.js +30 -30
  72. package/dist/commonjs/models/components/vendorcredentialfile.js.map +1 -1
  73. package/dist/commonjs/models/components/webhookendpoint.d.ts +18 -18
  74. package/dist/commonjs/models/components/webhookendpoint.d.ts.map +1 -1
  75. package/dist/commonjs/models/components/webhookendpoint.js.map +1 -1
  76. package/dist/commonjs/models/operations/createinvoice.d.ts +106 -106
  77. package/dist/commonjs/models/operations/createinvoice.d.ts.map +1 -1
  78. package/dist/commonjs/models/operations/createinvoice.js +46 -46
  79. package/dist/commonjs/models/operations/createinvoice.js.map +1 -1
  80. package/dist/commonjs/models/operations/createorupdatebcr.d.ts +20 -20
  81. package/dist/commonjs/models/operations/createorupdatebcr.d.ts.map +1 -1
  82. package/dist/commonjs/models/operations/createorupdatebcr.js.map +1 -1
  83. package/dist/commonjs/models/operations/listvendorinvoices.d.ts +20 -20
  84. package/dist/commonjs/models/operations/listvendorinvoices.d.ts.map +1 -1
  85. package/dist/commonjs/models/operations/listvendorinvoices.js.map +1 -1
  86. package/dist/commonjs/models/operations/securityzonecheckin.d.ts +22 -22
  87. package/dist/commonjs/models/operations/securityzonecheckin.d.ts.map +1 -1
  88. package/dist/commonjs/models/operations/securityzonecheckin.js +17 -17
  89. package/dist/commonjs/models/operations/securityzonecheckin.js.map +1 -1
  90. package/dist/commonjs/models/operations/senddownloadcode.d.ts +10 -10
  91. package/dist/commonjs/models/operations/senddownloadcode.d.ts.map +1 -1
  92. package/dist/commonjs/models/operations/senddownloadcode.js.map +1 -1
  93. package/dist/commonjs/models/operations/updateinvoice.d.ts +106 -106
  94. package/dist/commonjs/models/operations/updateinvoice.d.ts.map +1 -1
  95. package/dist/commonjs/models/operations/updateinvoice.js +47 -47
  96. package/dist/commonjs/models/operations/updateinvoice.js.map +1 -1
  97. package/dist/commonjs/models/operations/updatevendorcredentialdata.d.ts +22 -22
  98. package/dist/commonjs/models/operations/updatevendorcredentialdata.d.ts.map +1 -1
  99. package/dist/commonjs/models/operations/updatevendorcredentialdata.js.map +1 -1
  100. package/dist/commonjs/models/operations/updatevendordetails.d.ts +24 -24
  101. package/dist/commonjs/models/operations/updatevendordetails.d.ts.map +1 -1
  102. package/dist/commonjs/models/operations/updatevendordetails.js.map +1 -1
  103. package/dist/commonjs/models/operations/updatevendorscrubdetails.d.ts +21 -21
  104. package/dist/commonjs/models/operations/updatevendorscrubdetails.d.ts.map +1 -1
  105. package/dist/commonjs/models/operations/updatevendorscrubdetails.js.map +1 -1
  106. package/dist/esm/__tests__/zones.test.js +5 -2
  107. package/dist/esm/__tests__/zones.test.js.map +1 -1
  108. package/dist/esm/lib/config.d.ts +3 -3
  109. package/dist/esm/lib/config.js +3 -3
  110. package/dist/esm/mcp-server/mcp-server.js +1 -1
  111. package/dist/esm/mcp-server/server.js +1 -1
  112. package/dist/esm/models/components/backgroundcheckresult.d.ts +27 -27
  113. package/dist/esm/models/components/backgroundcheckresult.d.ts.map +1 -1
  114. package/dist/esm/models/components/backgroundcheckresult.js.map +1 -1
  115. package/dist/esm/models/components/contact.d.ts +25 -25
  116. package/dist/esm/models/components/contact.d.ts.map +1 -1
  117. package/dist/esm/models/components/contact.js +16 -16
  118. package/dist/esm/models/components/contact.js.map +1 -1
  119. package/dist/esm/models/components/credential.d.ts +25 -25
  120. package/dist/esm/models/components/credential.d.ts.map +1 -1
  121. package/dist/esm/models/components/credential.js.map +1 -1
  122. package/dist/esm/models/components/credentialdocument.d.ts +21 -21
  123. package/dist/esm/models/components/credentialdocument.d.ts.map +1 -1
  124. package/dist/esm/models/components/credentialdocument.js +21 -21
  125. package/dist/esm/models/components/credentialdocument.js.map +1 -1
  126. package/dist/esm/models/components/credit.d.ts +10 -10
  127. package/dist/esm/models/components/credit.d.ts.map +1 -1
  128. package/dist/esm/models/components/credit.js.map +1 -1
  129. package/dist/esm/models/components/datarequest.d.ts +21 -21
  130. package/dist/esm/models/components/datarequest.d.ts.map +1 -1
  131. package/dist/esm/models/components/datarequest.js.map +1 -1
  132. package/dist/esm/models/components/facility.d.ts +25 -25
  133. package/dist/esm/models/components/facility.d.ts.map +1 -1
  134. package/dist/esm/models/components/facility.js +15 -15
  135. package/dist/esm/models/components/facility.js.map +1 -1
  136. package/dist/esm/models/components/feed.d.ts +15 -0
  137. package/dist/esm/models/components/feed.d.ts.map +1 -1
  138. package/dist/esm/models/components/feed.js +21 -0
  139. package/dist/esm/models/components/feed.js.map +1 -1
  140. package/dist/esm/models/components/index.d.ts +1 -0
  141. package/dist/esm/models/components/index.d.ts.map +1 -1
  142. package/dist/esm/models/components/index.js +1 -0
  143. package/dist/esm/models/components/index.js.map +1 -1
  144. package/dist/esm/models/components/invitee.d.ts +33 -0
  145. package/dist/esm/models/components/invitee.d.ts.map +1 -0
  146. package/dist/esm/models/components/invitee.js +35 -0
  147. package/dist/esm/models/components/invitee.js.map +1 -0
  148. package/dist/esm/models/components/mfarequiredresponse.d.ts +20 -20
  149. package/dist/esm/models/components/mfarequiredresponse.d.ts.map +1 -1
  150. package/dist/esm/models/components/mfarequiredresponse.js.map +1 -1
  151. package/dist/esm/models/components/passwordrequiredresponse.d.ts +11 -11
  152. package/dist/esm/models/components/passwordrequiredresponse.d.ts.map +1 -1
  153. package/dist/esm/models/components/passwordrequiredresponse.js.map +1 -1
  154. package/dist/esm/models/components/samlloginrequiredresponse.d.ts +18 -18
  155. package/dist/esm/models/components/samlloginrequiredresponse.d.ts.map +1 -1
  156. package/dist/esm/models/components/samlloginrequiredresponse.js.map +1 -1
  157. package/dist/esm/models/components/standingappointment.d.ts +15 -2
  158. package/dist/esm/models/components/standingappointment.d.ts.map +1 -1
  159. package/dist/esm/models/components/standingappointment.js +21 -4
  160. package/dist/esm/models/components/standingappointment.js.map +1 -1
  161. package/dist/esm/models/components/user.d.ts +65 -65
  162. package/dist/esm/models/components/user.d.ts.map +1 -1
  163. package/dist/esm/models/components/user.js +16 -16
  164. package/dist/esm/models/components/user.js.map +1 -1
  165. package/dist/esm/models/components/userlocation.d.ts +19 -19
  166. package/dist/esm/models/components/userlocation.d.ts.map +1 -1
  167. package/dist/esm/models/components/userlocation.js.map +1 -1
  168. package/dist/esm/models/components/vendorcredentialdatarequest.d.ts +42 -42
  169. package/dist/esm/models/components/vendorcredentialdatarequest.d.ts.map +1 -1
  170. package/dist/esm/models/components/vendorcredentialdatarequest.js +42 -42
  171. package/dist/esm/models/components/vendorcredentialdatarequest.js.map +1 -1
  172. package/dist/esm/models/components/vendorcredentialfile.d.ts +21 -21
  173. package/dist/esm/models/components/vendorcredentialfile.d.ts.map +1 -1
  174. package/dist/esm/models/components/vendorcredentialfile.js +27 -27
  175. package/dist/esm/models/components/vendorcredentialfile.js.map +1 -1
  176. package/dist/esm/models/components/webhookendpoint.d.ts +18 -18
  177. package/dist/esm/models/components/webhookendpoint.d.ts.map +1 -1
  178. package/dist/esm/models/components/webhookendpoint.js.map +1 -1
  179. package/dist/esm/models/operations/createinvoice.d.ts +106 -106
  180. package/dist/esm/models/operations/createinvoice.d.ts.map +1 -1
  181. package/dist/esm/models/operations/createinvoice.js +45 -45
  182. package/dist/esm/models/operations/createinvoice.js.map +1 -1
  183. package/dist/esm/models/operations/createorupdatebcr.d.ts +20 -20
  184. package/dist/esm/models/operations/createorupdatebcr.d.ts.map +1 -1
  185. package/dist/esm/models/operations/createorupdatebcr.js.map +1 -1
  186. package/dist/esm/models/operations/listvendorinvoices.d.ts +20 -20
  187. package/dist/esm/models/operations/listvendorinvoices.d.ts.map +1 -1
  188. package/dist/esm/models/operations/listvendorinvoices.js.map +1 -1
  189. package/dist/esm/models/operations/securityzonecheckin.d.ts +22 -22
  190. package/dist/esm/models/operations/securityzonecheckin.d.ts.map +1 -1
  191. package/dist/esm/models/operations/securityzonecheckin.js +16 -16
  192. package/dist/esm/models/operations/securityzonecheckin.js.map +1 -1
  193. package/dist/esm/models/operations/senddownloadcode.d.ts +10 -10
  194. package/dist/esm/models/operations/senddownloadcode.d.ts.map +1 -1
  195. package/dist/esm/models/operations/senddownloadcode.js.map +1 -1
  196. package/dist/esm/models/operations/updateinvoice.d.ts +106 -106
  197. package/dist/esm/models/operations/updateinvoice.d.ts.map +1 -1
  198. package/dist/esm/models/operations/updateinvoice.js +46 -46
  199. package/dist/esm/models/operations/updateinvoice.js.map +1 -1
  200. package/dist/esm/models/operations/updatevendorcredentialdata.d.ts +22 -22
  201. package/dist/esm/models/operations/updatevendorcredentialdata.d.ts.map +1 -1
  202. package/dist/esm/models/operations/updatevendorcredentialdata.js.map +1 -1
  203. package/dist/esm/models/operations/updatevendordetails.d.ts +24 -24
  204. package/dist/esm/models/operations/updatevendordetails.d.ts.map +1 -1
  205. package/dist/esm/models/operations/updatevendordetails.js.map +1 -1
  206. package/dist/esm/models/operations/updatevendorscrubdetails.d.ts +21 -21
  207. package/dist/esm/models/operations/updatevendorscrubdetails.d.ts.map +1 -1
  208. package/dist/esm/models/operations/updatevendorscrubdetails.js.map +1 -1
  209. package/examples/package-lock.json +1 -1
  210. package/jsr.json +1 -1
  211. package/package.json +1 -1
  212. package/src/__tests__/zones.test.ts +5 -2
  213. package/src/lib/config.ts +3 -3
  214. package/src/mcp-server/mcp-server.ts +1 -1
  215. package/src/mcp-server/server.ts +1 -1
  216. package/src/models/components/backgroundcheckresult.ts +31 -31
  217. package/src/models/components/contact.ts +25 -25
  218. package/src/models/components/credential.ts +26 -26
  219. package/src/models/components/credentialdocument.ts +53 -53
  220. package/src/models/components/credit.ts +11 -11
  221. package/src/models/components/datarequest.ts +19 -19
  222. package/src/models/components/facility.ts +27 -27
  223. package/src/models/components/feed.ts +40 -0
  224. package/src/models/components/index.ts +1 -0
  225. package/src/models/components/invitee.ts +67 -0
  226. package/src/models/components/mfarequiredresponse.ts +21 -21
  227. package/src/models/components/passwordrequiredresponse.ts +12 -12
  228. package/src/models/components/samlloginrequiredresponse.ts +21 -21
  229. package/src/models/components/standingappointment.ts +40 -6
  230. package/src/models/components/user.ts +50 -50
  231. package/src/models/components/userlocation.ts +19 -19
  232. package/src/models/components/vendorcredentialdatarequest.ts +95 -95
  233. package/src/models/components/vendorcredentialfile.ts +57 -57
  234. package/src/models/components/webhookendpoint.ts +21 -21
  235. package/src/models/operations/createinvoice.ts +114 -114
  236. package/src/models/operations/createorupdatebcr.ts +21 -21
  237. package/src/models/operations/listvendorinvoices.ts +21 -21
  238. package/src/models/operations/securityzonecheckin.ts +24 -24
  239. package/src/models/operations/senddownloadcode.ts +12 -12
  240. package/src/models/operations/updateinvoice.ts +124 -124
  241. package/src/models/operations/updatevendorcredentialdata.ts +24 -24
  242. package/src/models/operations/updatevendordetails.ts +21 -21
  243. package/src/models/operations/updatevendorscrubdetails.ts +23 -23
@@ -165,25 +165,6 @@ export const Timezone = {
165
165
  } as const;
166
166
  export type Timezone = ClosedEnum<typeof Timezone>;
167
167
 
168
- /** @internal */
169
- export const Timezone$inboundSchema: z.ZodNativeEnum<typeof Timezone> = z
170
- .nativeEnum(Timezone);
171
-
172
- /** @internal */
173
- export const Timezone$outboundSchema: z.ZodNativeEnum<typeof Timezone> =
174
- Timezone$inboundSchema;
175
-
176
- /**
177
- * @internal
178
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
179
- */
180
- export namespace Timezone$ {
181
- /** @deprecated use `Timezone$inboundSchema` instead. */
182
- export const inboundSchema = Timezone$inboundSchema;
183
- /** @deprecated use `Timezone$outboundSchema` instead. */
184
- export const outboundSchema = Timezone$outboundSchema;
185
- }
186
-
187
168
  /**
188
169
  * Reduced list of attributes of the User Location
189
170
  */
@@ -204,6 +185,25 @@ export type UserLocation = {
204
185
  timezone?: Timezone | null | undefined;
205
186
  };
206
187
 
188
+ /** @internal */
189
+ export const Timezone$inboundSchema: z.ZodNativeEnum<typeof Timezone> = z
190
+ .nativeEnum(Timezone);
191
+
192
+ /** @internal */
193
+ export const Timezone$outboundSchema: z.ZodNativeEnum<typeof Timezone> =
194
+ Timezone$inboundSchema;
195
+
196
+ /**
197
+ * @internal
198
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
199
+ */
200
+ export namespace Timezone$ {
201
+ /** @deprecated use `Timezone$inboundSchema` instead. */
202
+ export const inboundSchema = Timezone$inboundSchema;
203
+ /** @deprecated use `Timezone$outboundSchema` instead. */
204
+ export const outboundSchema = Timezone$outboundSchema;
205
+ }
206
+
207
207
  /** @internal */
208
208
  export const UserLocation$inboundSchema: z.ZodType<
209
209
  UserLocation,
@@ -21,6 +21,8 @@ import {
21
21
  VendorCredentialSummary$outboundSchema,
22
22
  } from "./vendorcredentialsummary.js";
23
23
 
24
+ export type VendorCredentialDataRequestDataRequest = DataRequest | number;
25
+
24
26
  export const VendorCredentialDataRequestStatus = {
25
27
  Requested: "Requested",
26
28
  Submitted: "Submitted",
@@ -29,34 +31,6 @@ export type VendorCredentialDataRequestStatus = ClosedEnum<
29
31
  typeof VendorCredentialDataRequestStatus
30
32
  >;
31
33
 
32
- /** @internal */
33
- export const VendorCredentialDataRequestStatus$inboundSchema: z.ZodNativeEnum<
34
- typeof VendorCredentialDataRequestStatus
35
- > = z.nativeEnum(VendorCredentialDataRequestStatus);
36
-
37
- /** @internal */
38
- export const VendorCredentialDataRequestStatus$outboundSchema: z.ZodNativeEnum<
39
- typeof VendorCredentialDataRequestStatus
40
- > = VendorCredentialDataRequestStatus$inboundSchema;
41
-
42
- /**
43
- * @internal
44
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
45
- */
46
- export namespace VendorCredentialDataRequestStatus$ {
47
- /** @deprecated use `VendorCredentialDataRequestStatus$inboundSchema` instead. */
48
- export const inboundSchema = VendorCredentialDataRequestStatus$inboundSchema;
49
- /** @deprecated use `VendorCredentialDataRequestStatus$outboundSchema` instead. */
50
- export const outboundSchema =
51
- VendorCredentialDataRequestStatus$outboundSchema;
52
- }
53
-
54
- export type VendorCredentialDataRequestVendorCredential =
55
- | VendorCredentialSummary
56
- | number;
57
-
58
- export type VendorCredentialDataRequestDataRequest = DataRequest | number;
59
-
60
34
  export type VendorCredentialDataRequestFile = {
61
35
  fileName?: string | null | undefined;
62
36
  contentType?: string | null | undefined;
@@ -77,75 +51,10 @@ export type VendorCredentialDataRequest = {
77
51
  file?: VendorCredentialDataRequestFile | undefined;
78
52
  };
79
53
 
80
- /** @internal */
81
- export const VendorCredentialDataRequestVendorCredential$inboundSchema:
82
- z.ZodType<
83
- VendorCredentialDataRequestVendorCredential,
84
- z.ZodTypeDef,
85
- unknown
86
- > = z.union([
87
- z.lazy(() => VendorCredentialSummary$inboundSchema),
88
- z.number().int(),
89
- ]);
90
-
91
- /** @internal */
92
- export type VendorCredentialDataRequestVendorCredential$Outbound =
93
- | VendorCredentialSummary$Outbound
54
+ export type VendorCredentialDataRequestVendorCredential =
55
+ | VendorCredentialSummary
94
56
  | number;
95
57
 
96
- /** @internal */
97
- export const VendorCredentialDataRequestVendorCredential$outboundSchema:
98
- z.ZodType<
99
- VendorCredentialDataRequestVendorCredential$Outbound,
100
- z.ZodTypeDef,
101
- VendorCredentialDataRequestVendorCredential
102
- > = z.union([
103
- z.lazy(() => VendorCredentialSummary$outboundSchema),
104
- z.number().int(),
105
- ]);
106
-
107
- /**
108
- * @internal
109
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
110
- */
111
- export namespace VendorCredentialDataRequestVendorCredential$ {
112
- /** @deprecated use `VendorCredentialDataRequestVendorCredential$inboundSchema` instead. */
113
- export const inboundSchema =
114
- VendorCredentialDataRequestVendorCredential$inboundSchema;
115
- /** @deprecated use `VendorCredentialDataRequestVendorCredential$outboundSchema` instead. */
116
- export const outboundSchema =
117
- VendorCredentialDataRequestVendorCredential$outboundSchema;
118
- /** @deprecated use `VendorCredentialDataRequestVendorCredential$Outbound` instead. */
119
- export type Outbound = VendorCredentialDataRequestVendorCredential$Outbound;
120
- }
121
-
122
- export function vendorCredentialDataRequestVendorCredentialToJSON(
123
- vendorCredentialDataRequestVendorCredential:
124
- VendorCredentialDataRequestVendorCredential,
125
- ): string {
126
- return JSON.stringify(
127
- VendorCredentialDataRequestVendorCredential$outboundSchema.parse(
128
- vendorCredentialDataRequestVendorCredential,
129
- ),
130
- );
131
- }
132
-
133
- export function vendorCredentialDataRequestVendorCredentialFromJSON(
134
- jsonString: string,
135
- ): SafeParseResult<
136
- VendorCredentialDataRequestVendorCredential,
137
- SDKValidationError
138
- > {
139
- return safeParse(
140
- jsonString,
141
- (x) =>
142
- VendorCredentialDataRequestVendorCredential$inboundSchema.parse(
143
- JSON.parse(x),
144
- ),
145
- `Failed to parse 'VendorCredentialDataRequestVendorCredential' from JSON`,
146
- );
147
- }
148
-
149
58
  /** @internal */
150
59
  export const VendorCredentialDataRequestDataRequest$inboundSchema: z.ZodType<
151
60
  VendorCredentialDataRequestDataRequest,
@@ -202,6 +111,28 @@ export function vendorCredentialDataRequestDataRequestFromJSON(
202
111
  );
203
112
  }
204
113
 
114
+ /** @internal */
115
+ export const VendorCredentialDataRequestStatus$inboundSchema: z.ZodNativeEnum<
116
+ typeof VendorCredentialDataRequestStatus
117
+ > = z.nativeEnum(VendorCredentialDataRequestStatus);
118
+
119
+ /** @internal */
120
+ export const VendorCredentialDataRequestStatus$outboundSchema: z.ZodNativeEnum<
121
+ typeof VendorCredentialDataRequestStatus
122
+ > = VendorCredentialDataRequestStatus$inboundSchema;
123
+
124
+ /**
125
+ * @internal
126
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
127
+ */
128
+ export namespace VendorCredentialDataRequestStatus$ {
129
+ /** @deprecated use `VendorCredentialDataRequestStatus$inboundSchema` instead. */
130
+ export const inboundSchema = VendorCredentialDataRequestStatus$inboundSchema;
131
+ /** @deprecated use `VendorCredentialDataRequestStatus$outboundSchema` instead. */
132
+ export const outboundSchema =
133
+ VendorCredentialDataRequestStatus$outboundSchema;
134
+ }
135
+
205
136
  /** @internal */
206
137
  export const VendorCredentialDataRequestFile$inboundSchema: z.ZodType<
207
138
  VendorCredentialDataRequestFile,
@@ -395,3 +326,72 @@ export function vendorCredentialDataRequestFromJSON(
395
326
  `Failed to parse 'VendorCredentialDataRequest' from JSON`,
396
327
  );
397
328
  }
329
+
330
+ /** @internal */
331
+ export const VendorCredentialDataRequestVendorCredential$inboundSchema:
332
+ z.ZodType<
333
+ VendorCredentialDataRequestVendorCredential,
334
+ z.ZodTypeDef,
335
+ unknown
336
+ > = z.union([
337
+ z.lazy(() => VendorCredentialSummary$inboundSchema),
338
+ z.number().int(),
339
+ ]);
340
+
341
+ /** @internal */
342
+ export type VendorCredentialDataRequestVendorCredential$Outbound =
343
+ | VendorCredentialSummary$Outbound
344
+ | number;
345
+
346
+ /** @internal */
347
+ export const VendorCredentialDataRequestVendorCredential$outboundSchema:
348
+ z.ZodType<
349
+ VendorCredentialDataRequestVendorCredential$Outbound,
350
+ z.ZodTypeDef,
351
+ VendorCredentialDataRequestVendorCredential
352
+ > = z.union([
353
+ z.lazy(() => VendorCredentialSummary$outboundSchema),
354
+ z.number().int(),
355
+ ]);
356
+
357
+ /**
358
+ * @internal
359
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
360
+ */
361
+ export namespace VendorCredentialDataRequestVendorCredential$ {
362
+ /** @deprecated use `VendorCredentialDataRequestVendorCredential$inboundSchema` instead. */
363
+ export const inboundSchema =
364
+ VendorCredentialDataRequestVendorCredential$inboundSchema;
365
+ /** @deprecated use `VendorCredentialDataRequestVendorCredential$outboundSchema` instead. */
366
+ export const outboundSchema =
367
+ VendorCredentialDataRequestVendorCredential$outboundSchema;
368
+ /** @deprecated use `VendorCredentialDataRequestVendorCredential$Outbound` instead. */
369
+ export type Outbound = VendorCredentialDataRequestVendorCredential$Outbound;
370
+ }
371
+
372
+ export function vendorCredentialDataRequestVendorCredentialToJSON(
373
+ vendorCredentialDataRequestVendorCredential:
374
+ VendorCredentialDataRequestVendorCredential,
375
+ ): string {
376
+ return JSON.stringify(
377
+ VendorCredentialDataRequestVendorCredential$outboundSchema.parse(
378
+ vendorCredentialDataRequestVendorCredential,
379
+ ),
380
+ );
381
+ }
382
+
383
+ export function vendorCredentialDataRequestVendorCredentialFromJSON(
384
+ jsonString: string,
385
+ ): SafeParseResult<
386
+ VendorCredentialDataRequestVendorCredential,
387
+ SDKValidationError
388
+ > {
389
+ return safeParse(
390
+ jsonString,
391
+ (x) =>
392
+ VendorCredentialDataRequestVendorCredential$inboundSchema.parse(
393
+ JSON.parse(x),
394
+ ),
395
+ `Failed to parse 'VendorCredentialDataRequestVendorCredential' from JSON`,
396
+ );
397
+ }
@@ -20,8 +20,6 @@ import {
20
20
  VendorCredentialSummary$outboundSchema,
21
21
  } from "./vendorcredentialsummary.js";
22
22
 
23
- export type VendorCredential = VendorCredentialSummary | number;
24
-
25
23
  export type VendorCredentialFileFile = {
26
24
  fileName?: string | null | undefined;
27
25
  contentType?: string | null | undefined;
@@ -48,61 +46,7 @@ export type VendorCredentialFile = {
48
46
  credentialDocument?: CredentialDocument | number | null | undefined;
49
47
  };
50
48
 
51
- /** @internal */
52
- export const VendorCredential$inboundSchema: z.ZodType<
53
- VendorCredential,
54
- z.ZodTypeDef,
55
- unknown
56
- > = z.union([
57
- z.lazy(() => VendorCredentialSummary$inboundSchema),
58
- z.number().int(),
59
- ]);
60
-
61
- /** @internal */
62
- export type VendorCredential$Outbound =
63
- | VendorCredentialSummary$Outbound
64
- | number;
65
-
66
- /** @internal */
67
- export const VendorCredential$outboundSchema: z.ZodType<
68
- VendorCredential$Outbound,
69
- z.ZodTypeDef,
70
- VendorCredential
71
- > = z.union([
72
- z.lazy(() => VendorCredentialSummary$outboundSchema),
73
- z.number().int(),
74
- ]);
75
-
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 namespace VendorCredential$ {
81
- /** @deprecated use `VendorCredential$inboundSchema` instead. */
82
- export const inboundSchema = VendorCredential$inboundSchema;
83
- /** @deprecated use `VendorCredential$outboundSchema` instead. */
84
- export const outboundSchema = VendorCredential$outboundSchema;
85
- /** @deprecated use `VendorCredential$Outbound` instead. */
86
- export type Outbound = VendorCredential$Outbound;
87
- }
88
-
89
- export function vendorCredentialToJSON(
90
- vendorCredential: VendorCredential,
91
- ): string {
92
- return JSON.stringify(
93
- VendorCredential$outboundSchema.parse(vendorCredential),
94
- );
95
- }
96
-
97
- export function vendorCredentialFromJSON(
98
- jsonString: string,
99
- ): SafeParseResult<VendorCredential, SDKValidationError> {
100
- return safeParse(
101
- jsonString,
102
- (x) => VendorCredential$inboundSchema.parse(JSON.parse(x)),
103
- `Failed to parse 'VendorCredential' from JSON`,
104
- );
105
- }
49
+ export type VendorCredential = VendorCredentialSummary | number;
106
50
 
107
51
  /** @internal */
108
52
  export const VendorCredentialFileFile$inboundSchema: z.ZodType<
@@ -348,3 +292,59 @@ export function vendorCredentialFileFromJSON(
348
292
  `Failed to parse 'VendorCredentialFile' from JSON`,
349
293
  );
350
294
  }
295
+
296
+ /** @internal */
297
+ export const VendorCredential$inboundSchema: z.ZodType<
298
+ VendorCredential,
299
+ z.ZodTypeDef,
300
+ unknown
301
+ > = z.union([
302
+ z.lazy(() => VendorCredentialSummary$inboundSchema),
303
+ z.number().int(),
304
+ ]);
305
+
306
+ /** @internal */
307
+ export type VendorCredential$Outbound =
308
+ | VendorCredentialSummary$Outbound
309
+ | number;
310
+
311
+ /** @internal */
312
+ export const VendorCredential$outboundSchema: z.ZodType<
313
+ VendorCredential$Outbound,
314
+ z.ZodTypeDef,
315
+ VendorCredential
316
+ > = z.union([
317
+ z.lazy(() => VendorCredentialSummary$outboundSchema),
318
+ z.number().int(),
319
+ ]);
320
+
321
+ /**
322
+ * @internal
323
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
324
+ */
325
+ export namespace VendorCredential$ {
326
+ /** @deprecated use `VendorCredential$inboundSchema` instead. */
327
+ export const inboundSchema = VendorCredential$inboundSchema;
328
+ /** @deprecated use `VendorCredential$outboundSchema` instead. */
329
+ export const outboundSchema = VendorCredential$outboundSchema;
330
+ /** @deprecated use `VendorCredential$Outbound` instead. */
331
+ export type Outbound = VendorCredential$Outbound;
332
+ }
333
+
334
+ export function vendorCredentialToJSON(
335
+ vendorCredential: VendorCredential,
336
+ ): string {
337
+ return JSON.stringify(
338
+ VendorCredential$outboundSchema.parse(vendorCredential),
339
+ );
340
+ }
341
+
342
+ export function vendorCredentialFromJSON(
343
+ jsonString: string,
344
+ ): SafeParseResult<VendorCredential, SDKValidationError> {
345
+ return safeParse(
346
+ jsonString,
347
+ (x) => VendorCredential$inboundSchema.parse(JSON.parse(x)),
348
+ `Failed to parse 'VendorCredential' from JSON`,
349
+ );
350
+ }
@@ -20,27 +20,6 @@ export const SignatureAlgo = {
20
20
  */
21
21
  export type SignatureAlgo = ClosedEnum<typeof SignatureAlgo>;
22
22
 
23
- /** @internal */
24
- export const SignatureAlgo$inboundSchema: z.ZodNativeEnum<
25
- typeof SignatureAlgo
26
- > = z.nativeEnum(SignatureAlgo);
27
-
28
- /** @internal */
29
- export const SignatureAlgo$outboundSchema: z.ZodNativeEnum<
30
- typeof SignatureAlgo
31
- > = SignatureAlgo$inboundSchema;
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 namespace SignatureAlgo$ {
38
- /** @deprecated use `SignatureAlgo$inboundSchema` instead. */
39
- export const inboundSchema = SignatureAlgo$inboundSchema;
40
- /** @deprecated use `SignatureAlgo$outboundSchema` instead. */
41
- export const outboundSchema = SignatureAlgo$outboundSchema;
42
- }
43
-
44
23
  /**
45
24
  * Identifies which consumers will receive events for this webhook. This should be treated as a union (meaning multiple settings are considered an OR operation).
46
25
  */
@@ -93,6 +72,27 @@ export type WebhookEndpoint = {
93
72
  secrets?: Array<string> | null | undefined;
94
73
  };
95
74
 
75
+ /** @internal */
76
+ export const SignatureAlgo$inboundSchema: z.ZodNativeEnum<
77
+ typeof SignatureAlgo
78
+ > = z.nativeEnum(SignatureAlgo);
79
+
80
+ /** @internal */
81
+ export const SignatureAlgo$outboundSchema: z.ZodNativeEnum<
82
+ typeof SignatureAlgo
83
+ > = SignatureAlgo$inboundSchema;
84
+
85
+ /**
86
+ * @internal
87
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
88
+ */
89
+ export namespace SignatureAlgo$ {
90
+ /** @deprecated use `SignatureAlgo$inboundSchema` instead. */
91
+ export const inboundSchema = SignatureAlgo$inboundSchema;
92
+ /** @deprecated use `SignatureAlgo$outboundSchema` instead. */
93
+ export const outboundSchema = SignatureAlgo$outboundSchema;
94
+ }
95
+
96
96
  /** @internal */
97
97
  export const Consumers$inboundSchema: z.ZodType<
98
98
  Consumers,