@vepler/sdk 7.11.2 → 7.18.1

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 (199) hide show
  1. package/README.md +468 -443
  2. package/dist/commonjs/funcs/placesAttributes.d.ts +18 -0
  3. package/dist/commonjs/funcs/placesAttributes.d.ts.map +1 -0
  4. package/dist/commonjs/funcs/placesAttributes.js +109 -0
  5. package/dist/commonjs/funcs/placesAttributes.js.map +1 -0
  6. package/dist/commonjs/funcs/placesGet.d.ts +19 -0
  7. package/dist/commonjs/funcs/placesGet.d.ts.map +1 -0
  8. package/dist/commonjs/funcs/placesGet.js +125 -0
  9. package/dist/commonjs/funcs/placesGet.js.map +1 -0
  10. package/dist/commonjs/funcs/placesNearest.d.ts +19 -0
  11. package/dist/commonjs/funcs/placesNearest.d.ts.map +1 -0
  12. package/dist/commonjs/funcs/placesNearest.js +127 -0
  13. package/dist/commonjs/funcs/placesNearest.js.map +1 -0
  14. package/dist/commonjs/lib/config.d.ts +3 -3
  15. package/dist/commonjs/lib/config.js +3 -3
  16. package/dist/commonjs/sdk/models/errors/getnearestplaces.d.ts +396 -0
  17. package/dist/commonjs/sdk/models/errors/getnearestplaces.d.ts.map +1 -0
  18. package/dist/commonjs/sdk/models/errors/getnearestplaces.js +381 -0
  19. package/dist/commonjs/sdk/models/errors/getnearestplaces.js.map +1 -0
  20. package/dist/commonjs/sdk/models/errors/getplace.d.ts +461 -0
  21. package/dist/commonjs/sdk/models/errors/getplace.d.ts.map +1 -0
  22. package/dist/commonjs/sdk/models/errors/getplace.js +437 -0
  23. package/dist/commonjs/sdk/models/errors/getplace.js.map +1 -0
  24. package/dist/commonjs/sdk/models/errors/getplaceattributes.d.ts +201 -0
  25. package/dist/commonjs/sdk/models/errors/getplaceattributes.d.ts.map +1 -0
  26. package/dist/commonjs/sdk/models/errors/getplaceattributes.js +213 -0
  27. package/dist/commonjs/sdk/models/errors/getplaceattributes.js.map +1 -0
  28. package/dist/commonjs/sdk/models/errors/index.d.ts +3 -0
  29. package/dist/commonjs/sdk/models/errors/index.d.ts.map +1 -1
  30. package/dist/commonjs/sdk/models/errors/index.js +3 -0
  31. package/dist/commonjs/sdk/models/errors/index.js.map +1 -1
  32. package/dist/commonjs/sdk/models/operations/getnearestplaces.d.ts +35 -0
  33. package/dist/commonjs/sdk/models/operations/getnearestplaces.d.ts.map +1 -0
  34. package/dist/commonjs/sdk/models/operations/getnearestplaces.js +53 -0
  35. package/dist/commonjs/sdk/models/operations/getnearestplaces.js.map +1 -0
  36. package/dist/commonjs/sdk/models/operations/getplace.d.ts +15 -0
  37. package/dist/commonjs/sdk/models/operations/getplace.d.ts.map +1 -0
  38. package/dist/commonjs/sdk/models/operations/getplace.js +49 -0
  39. package/dist/commonjs/sdk/models/operations/getplace.js.map +1 -0
  40. package/dist/commonjs/sdk/models/operations/index.d.ts +2 -0
  41. package/dist/commonjs/sdk/models/operations/index.d.ts.map +1 -1
  42. package/dist/commonjs/sdk/models/operations/index.js +2 -0
  43. package/dist/commonjs/sdk/models/operations/index.js.map +1 -1
  44. package/dist/commonjs/sdk/models/shared/index.d.ts +7 -0
  45. package/dist/commonjs/sdk/models/shared/index.d.ts.map +1 -1
  46. package/dist/commonjs/sdk/models/shared/index.js +7 -0
  47. package/dist/commonjs/sdk/models/shared/index.js.map +1 -1
  48. package/dist/commonjs/sdk/models/shared/marketstatus.d.ts +1 -1
  49. package/dist/commonjs/sdk/models/shared/poiattribute.d.ts +37 -0
  50. package/dist/commonjs/sdk/models/shared/poiattribute.d.ts.map +1 -0
  51. package/dist/commonjs/sdk/models/shared/poiattribute.js +56 -0
  52. package/dist/commonjs/sdk/models/shared/poiattribute.js.map +1 -0
  53. package/dist/commonjs/sdk/models/shared/poiattributecatalogue.d.ts +17 -0
  54. package/dist/commonjs/sdk/models/shared/poiattributecatalogue.d.ts.map +1 -0
  55. package/dist/commonjs/sdk/models/shared/poiattributecatalogue.js +51 -0
  56. package/dist/commonjs/sdk/models/shared/poiattributecatalogue.js.map +1 -0
  57. package/dist/commonjs/sdk/models/shared/poifieldprovenance.d.ts +35 -0
  58. package/dist/commonjs/sdk/models/shared/poifieldprovenance.d.ts.map +1 -0
  59. package/dist/commonjs/sdk/models/shared/poifieldprovenance.js +62 -0
  60. package/dist/commonjs/sdk/models/shared/poifieldprovenance.js.map +1 -0
  61. package/dist/commonjs/sdk/models/shared/poinearestresponse.d.ts +217 -0
  62. package/dist/commonjs/sdk/models/shared/poinearestresponse.d.ts.map +1 -0
  63. package/dist/commonjs/sdk/models/shared/poinearestresponse.js +140 -0
  64. package/dist/commonjs/sdk/models/shared/poinearestresponse.js.map +1 -0
  65. package/dist/commonjs/sdk/models/shared/poiplace.d.ts +253 -0
  66. package/dist/commonjs/sdk/models/shared/poiplace.d.ts.map +1 -0
  67. package/dist/commonjs/sdk/models/shared/poiplace.js +151 -0
  68. package/dist/commonjs/sdk/models/shared/poiplace.js.map +1 -0
  69. package/dist/commonjs/sdk/models/shared/poiprovenance.d.ts +81 -0
  70. package/dist/commonjs/sdk/models/shared/poiprovenance.d.ts.map +1 -0
  71. package/dist/commonjs/sdk/models/shared/poiprovenance.js +67 -0
  72. package/dist/commonjs/sdk/models/shared/poiprovenance.js.map +1 -0
  73. package/dist/commonjs/sdk/models/shared/poiregistermatch.d.ts +48 -0
  74. package/dist/commonjs/sdk/models/shared/poiregistermatch.d.ts.map +1 -0
  75. package/dist/commonjs/sdk/models/shared/poiregistermatch.js +71 -0
  76. package/dist/commonjs/sdk/models/shared/poiregistermatch.js.map +1 -0
  77. package/dist/commonjs/sdk/models/shared/pscexemption.d.ts +4 -4
  78. package/dist/commonjs/sdk/models/shared/pscexemption.d.ts.map +1 -1
  79. package/dist/commonjs/sdk/models/shared/pscexemption.js +6 -7
  80. package/dist/commonjs/sdk/models/shared/pscexemption.js.map +1 -1
  81. package/dist/commonjs/sdk/places.d.ts +27 -0
  82. package/dist/commonjs/sdk/places.d.ts.map +1 -0
  83. package/dist/commonjs/sdk/places.js +42 -0
  84. package/dist/commonjs/sdk/places.js.map +1 -0
  85. package/dist/commonjs/sdk/sdk.d.ts +3 -0
  86. package/dist/commonjs/sdk/sdk.d.ts.map +1 -1
  87. package/dist/commonjs/sdk/sdk.js +4 -0
  88. package/dist/commonjs/sdk/sdk.js.map +1 -1
  89. package/dist/esm/funcs/placesAttributes.d.ts +18 -0
  90. package/dist/esm/funcs/placesAttributes.d.ts.map +1 -0
  91. package/dist/esm/funcs/placesAttributes.js +73 -0
  92. package/dist/esm/funcs/placesAttributes.js.map +1 -0
  93. package/dist/esm/funcs/placesGet.d.ts +19 -0
  94. package/dist/esm/funcs/placesGet.d.ts.map +1 -0
  95. package/dist/esm/funcs/placesGet.js +89 -0
  96. package/dist/esm/funcs/placesGet.js.map +1 -0
  97. package/dist/esm/funcs/placesNearest.d.ts +19 -0
  98. package/dist/esm/funcs/placesNearest.d.ts.map +1 -0
  99. package/dist/esm/funcs/placesNearest.js +91 -0
  100. package/dist/esm/funcs/placesNearest.js.map +1 -0
  101. package/dist/esm/lib/config.d.ts +3 -3
  102. package/dist/esm/lib/config.js +3 -3
  103. package/dist/esm/sdk/models/errors/getnearestplaces.d.ts +396 -0
  104. package/dist/esm/sdk/models/errors/getnearestplaces.d.ts.map +1 -0
  105. package/dist/esm/sdk/models/errors/getnearestplaces.js +333 -0
  106. package/dist/esm/sdk/models/errors/getnearestplaces.js.map +1 -0
  107. package/dist/esm/sdk/models/errors/getplace.d.ts +461 -0
  108. package/dist/esm/sdk/models/errors/getplace.d.ts.map +1 -0
  109. package/dist/esm/sdk/models/errors/getplace.js +387 -0
  110. package/dist/esm/sdk/models/errors/getplace.js.map +1 -0
  111. package/dist/esm/sdk/models/errors/getplaceattributes.d.ts +201 -0
  112. package/dist/esm/sdk/models/errors/getplaceattributes.d.ts.map +1 -0
  113. package/dist/esm/sdk/models/errors/getplaceattributes.js +171 -0
  114. package/dist/esm/sdk/models/errors/getplaceattributes.js.map +1 -0
  115. package/dist/esm/sdk/models/errors/index.d.ts +3 -0
  116. package/dist/esm/sdk/models/errors/index.d.ts.map +1 -1
  117. package/dist/esm/sdk/models/errors/index.js +3 -0
  118. package/dist/esm/sdk/models/errors/index.js.map +1 -1
  119. package/dist/esm/sdk/models/operations/getnearestplaces.d.ts +35 -0
  120. package/dist/esm/sdk/models/operations/getnearestplaces.d.ts.map +1 -0
  121. package/dist/esm/sdk/models/operations/getnearestplaces.js +16 -0
  122. package/dist/esm/sdk/models/operations/getnearestplaces.js.map +1 -0
  123. package/dist/esm/sdk/models/operations/getplace.d.ts +15 -0
  124. package/dist/esm/sdk/models/operations/getplace.d.ts.map +1 -0
  125. package/dist/esm/sdk/models/operations/getplace.js +12 -0
  126. package/dist/esm/sdk/models/operations/getplace.js.map +1 -0
  127. package/dist/esm/sdk/models/operations/index.d.ts +2 -0
  128. package/dist/esm/sdk/models/operations/index.d.ts.map +1 -1
  129. package/dist/esm/sdk/models/operations/index.js +2 -0
  130. package/dist/esm/sdk/models/operations/index.js.map +1 -1
  131. package/dist/esm/sdk/models/shared/index.d.ts +7 -0
  132. package/dist/esm/sdk/models/shared/index.d.ts.map +1 -1
  133. package/dist/esm/sdk/models/shared/index.js +7 -0
  134. package/dist/esm/sdk/models/shared/index.js.map +1 -1
  135. package/dist/esm/sdk/models/shared/marketstatus.d.ts +1 -1
  136. package/dist/esm/sdk/models/shared/poiattribute.d.ts +37 -0
  137. package/dist/esm/sdk/models/shared/poiattribute.d.ts.map +1 -0
  138. package/dist/esm/sdk/models/shared/poiattribute.js +19 -0
  139. package/dist/esm/sdk/models/shared/poiattribute.js.map +1 -0
  140. package/dist/esm/sdk/models/shared/poiattributecatalogue.d.ts +17 -0
  141. package/dist/esm/sdk/models/shared/poiattributecatalogue.d.ts.map +1 -0
  142. package/dist/esm/sdk/models/shared/poiattributecatalogue.js +14 -0
  143. package/dist/esm/sdk/models/shared/poiattributecatalogue.js.map +1 -0
  144. package/dist/esm/sdk/models/shared/poifieldprovenance.d.ts +35 -0
  145. package/dist/esm/sdk/models/shared/poifieldprovenance.d.ts.map +1 -0
  146. package/dist/esm/sdk/models/shared/poifieldprovenance.js +25 -0
  147. package/dist/esm/sdk/models/shared/poifieldprovenance.js.map +1 -0
  148. package/dist/esm/sdk/models/shared/poinearestresponse.d.ts +217 -0
  149. package/dist/esm/sdk/models/shared/poinearestresponse.d.ts.map +1 -0
  150. package/dist/esm/sdk/models/shared/poinearestresponse.js +98 -0
  151. package/dist/esm/sdk/models/shared/poinearestresponse.js.map +1 -0
  152. package/dist/esm/sdk/models/shared/poiplace.d.ts +253 -0
  153. package/dist/esm/sdk/models/shared/poiplace.d.ts.map +1 -0
  154. package/dist/esm/sdk/models/shared/poiplace.js +110 -0
  155. package/dist/esm/sdk/models/shared/poiplace.js.map +1 -0
  156. package/dist/esm/sdk/models/shared/poiprovenance.d.ts +81 -0
  157. package/dist/esm/sdk/models/shared/poiprovenance.d.ts.map +1 -0
  158. package/dist/esm/sdk/models/shared/poiprovenance.js +30 -0
  159. package/dist/esm/sdk/models/shared/poiprovenance.js.map +1 -0
  160. package/dist/esm/sdk/models/shared/poiregistermatch.d.ts +48 -0
  161. package/dist/esm/sdk/models/shared/poiregistermatch.d.ts.map +1 -0
  162. package/dist/esm/sdk/models/shared/poiregistermatch.js +34 -0
  163. package/dist/esm/sdk/models/shared/poiregistermatch.js.map +1 -0
  164. package/dist/esm/sdk/models/shared/pscexemption.d.ts +4 -4
  165. package/dist/esm/sdk/models/shared/pscexemption.d.ts.map +1 -1
  166. package/dist/esm/sdk/models/shared/pscexemption.js +4 -5
  167. package/dist/esm/sdk/models/shared/pscexemption.js.map +1 -1
  168. package/dist/esm/sdk/places.d.ts +27 -0
  169. package/dist/esm/sdk/places.d.ts.map +1 -0
  170. package/dist/esm/sdk/places.js +38 -0
  171. package/dist/esm/sdk/places.js.map +1 -0
  172. package/dist/esm/sdk/sdk.d.ts +3 -0
  173. package/dist/esm/sdk/sdk.d.ts.map +1 -1
  174. package/dist/esm/sdk/sdk.js +4 -0
  175. package/dist/esm/sdk/sdk.js.map +1 -1
  176. package/package.json +2 -2
  177. package/src/funcs/placesAttributes.ts +164 -0
  178. package/src/funcs/placesGet.ts +201 -0
  179. package/src/funcs/placesNearest.ts +212 -0
  180. package/src/lib/config.ts +3 -3
  181. package/src/sdk/models/errors/getnearestplaces.ts +783 -0
  182. package/src/sdk/models/errors/getplace.ts +897 -0
  183. package/src/sdk/models/errors/getplaceattributes.ts +393 -0
  184. package/src/sdk/models/errors/index.ts +3 -0
  185. package/src/sdk/models/operations/getnearestplaces.ts +58 -0
  186. package/src/sdk/models/operations/getplace.ts +32 -0
  187. package/src/sdk/models/operations/index.ts +2 -0
  188. package/src/sdk/models/shared/index.ts +7 -0
  189. package/src/sdk/models/shared/marketstatus.ts +1 -1
  190. package/src/sdk/models/shared/poiattribute.ts +64 -0
  191. package/src/sdk/models/shared/poiattributecatalogue.ts +38 -0
  192. package/src/sdk/models/shared/poifieldprovenance.ts +62 -0
  193. package/src/sdk/models/shared/poinearestresponse.ts +372 -0
  194. package/src/sdk/models/shared/poiplace.ts +397 -0
  195. package/src/sdk/models/shared/poiprovenance.ts +121 -0
  196. package/src/sdk/models/shared/poiregistermatch.ts +84 -0
  197. package/src/sdk/models/shared/pscexemption.ts +15 -12
  198. package/src/sdk/places.ts +62 -0
  199. package/src/sdk/sdk.ts +6 -0
@@ -0,0 +1,89 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+ import { encodeSimple } from "../lib/encodings.js";
5
+ import { matchStatusCode } from "../lib/http.js";
6
+ import * as M from "../lib/matchers.js";
7
+ import { compactMap } from "../lib/primitives.js";
8
+ import { safeParse } from "../lib/schemas.js";
9
+ import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
10
+ import { pathToFunc } from "../lib/url.js";
11
+ import * as errors from "../sdk/models/errors/index.js";
12
+ import * as operations from "../sdk/models/operations/index.js";
13
+ import * as shared from "../sdk/models/shared/index.js";
14
+ import { APIPromise } from "../sdk/types/async.js";
15
+ /**
16
+ * Get a point of interest
17
+ *
18
+ * @remarks
19
+ * Returns one point of interest with every published attribute: identity, location, address, matched property, contact details, brand where known, operating status, register match, food hygiene rating and, per field, where the value comes from. Charged per place.
20
+ */
21
+ export function placesGet(client, request, options) {
22
+ return new APIPromise($do(client, request, options));
23
+ }
24
+ async function $do(client, request, options) {
25
+ const parsed = safeParse(request, (value) => operations.GetPlaceRequest$outboundSchema.parse(value), "Input validation failed");
26
+ if (!parsed.ok) {
27
+ return [parsed, { status: "invalid" }];
28
+ }
29
+ const payload = parsed.value;
30
+ const body = null;
31
+ const pathParams = {
32
+ poiId: encodeSimple("poiId", payload.poiId, {
33
+ explode: false,
34
+ charEncoding: "percent",
35
+ }),
36
+ };
37
+ const path = pathToFunc("/v1/poi/places/{poiId}")(pathParams);
38
+ const headers = new Headers(compactMap({
39
+ Accept: "application/json",
40
+ }));
41
+ const secConfig = await extractSecurity(client._options.apiKeyAuth);
42
+ const securityInput = secConfig == null ? {} : { apiKeyAuth: secConfig };
43
+ const requestSecurity = resolveGlobalSecurity(securityInput);
44
+ const context = {
45
+ options: client._options,
46
+ baseURL: options?.serverURL ?? client._baseURL ?? "",
47
+ operationID: "getPlace",
48
+ oAuth2Scopes: null,
49
+ resolvedSecurity: requestSecurity,
50
+ securitySource: client._options.apiKeyAuth,
51
+ retryConfig: options?.retries
52
+ || client._options.retryConfig
53
+ || { strategy: "none" },
54
+ retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
55
+ };
56
+ const requestRes = client._createRequest(context, {
57
+ security: requestSecurity,
58
+ method: "GET",
59
+ baseURL: options?.serverURL,
60
+ path: path,
61
+ headers: headers,
62
+ body: body,
63
+ userAgent: client._options.userAgent,
64
+ timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
65
+ }, options);
66
+ if (!requestRes.ok) {
67
+ return [requestRes, { status: "invalid" }];
68
+ }
69
+ const req = requestRes.value;
70
+ const doResult = await client._do(req, {
71
+ context,
72
+ isErrorStatusCode: (statusCode) => matchStatusCode({ status: statusCode }, ["4XX", "5XX"]),
73
+ retryConfig: context.retryConfig,
74
+ retryCodes: context.retryCodes,
75
+ });
76
+ if (!doResult.ok) {
77
+ return [doResult, { status: "request-error", request: req }];
78
+ }
79
+ const response = doResult.value;
80
+ const responseFields = {
81
+ HttpMeta: { Response: response, Request: req },
82
+ };
83
+ const [result] = await M.match(M.json(200, shared.PoiPlace$inboundSchema), M.jsonErr(400, errors.GetPlaceResponseBody$inboundSchema), M.jsonErr(401, errors.GetPlacePlacesResponseBody$inboundSchema), M.jsonErr(403, errors.GetPlacePlacesResponseResponseBody$inboundSchema), M.jsonErr(404, errors.GetPlacePlacesResponse404ResponseBody$inboundSchema), M.jsonErr(429, errors.GetPlacePlacesResponse429ResponseBody$inboundSchema), M.jsonErr(500, errors.GetPlacePlacesResponse500ResponseBody$inboundSchema), M.jsonErr(503, errors.GetPlacePlacesResponse503ResponseBody$inboundSchema), M.fail("4XX"), M.fail("5XX"))(response, req, { extraFields: responseFields });
84
+ if (!result.ok) {
85
+ return [result, { status: "complete", request: req, response }];
86
+ }
87
+ return [result, { status: "complete", request: req, response }];
88
+ }
89
+ //# sourceMappingURL=placesGet.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"placesGet.js","sourceRoot":"","sources":["../../../src/funcs/placesGet.ts"],"names":[],"mappings":"AAAA;;GAEG;AAGH,OAAO,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AACnD,OAAO,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAC;AACjD,OAAO,KAAK,CAAC,MAAM,oBAAoB,CAAC;AACxC,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAClD,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAE9C,OAAO,EAAE,eAAe,EAAE,qBAAqB,EAAE,MAAM,oBAAoB,CAAC;AAC5E,OAAO,EAAE,UAAU,EAAE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EAAE,MAAM,CAAC,mDAAmD,CAAC,EAC1E,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,EACb,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,CACd,CAAC,QAAQ,EAAE,GAAG,EAAE,EAAE,WAAW,EAAE,cAAc,EAAE,CAAC,CAAC;IAClD,IAAI,CAAC,MAAM,CAAC,EAAE,EAAE,CAAC;QACf,OAAO,CAAC,MAAM,EAAE,EAAE,MAAM,EAAE,UAAU,EAAE,OAAO,EAAE,GAAG,EAAE,QAAQ,EAAE,CAAC,CAAC;IAClE,CAAC;IAED,OAAO,CAAC,MAAM,EAAE,EAAE,MAAM,EAAE,UAAU,EAAE,OAAO,EAAE,GAAG,EAAE,QAAQ,EAAE,CAAC,CAAC;AAClE,CAAC"}
@@ -0,0 +1,19 @@
1
+ import { SDKCore } from "../core.js";
2
+ import { RequestOptions } from "../lib/sdks.js";
3
+ import { ConnectionError, InvalidRequestError, RequestAbortedError, RequestTimeoutError, UnexpectedClientError } from "../sdk/models/errors/httpclienterrors.js";
4
+ import * as errors from "../sdk/models/errors/index.js";
5
+ import { ResponseValidationError } from "../sdk/models/errors/responsevalidationerror.js";
6
+ import { SDKBaseError } from "../sdk/models/errors/sdkbaseerror.js";
7
+ import { SDKValidationError } from "../sdk/models/errors/sdkvalidationerror.js";
8
+ import * as operations from "../sdk/models/operations/index.js";
9
+ import * as shared from "../sdk/models/shared/index.js";
10
+ import { APIPromise } from "../sdk/types/async.js";
11
+ import { Result } from "../sdk/types/fp.js";
12
+ /**
13
+ * Find the nearest points of interest
14
+ *
15
+ * @remarks
16
+ * Returns the points of interest nearest a point within a radius, nearest first, each with its straight-line distance in metres and its brand where known. Covers the businesses registered for food hygiene and the other places whose existence is corroborated. A registered food business can be any premises that handles food, a care home or a school as well as a restaurant, so filter on `categories` for a kind of place: `categoryPath` is given only where it is corroborated and is null otherwise. Places with no corroborated location are not returned. Charged per place returned.
17
+ */
18
+ export declare function placesNearest(client: SDKCore, request: operations.GetNearestPlacesRequest, options?: RequestOptions): APIPromise<Result<shared.PoiNearestResponse, errors.GetNearestPlacesResponseBody | errors.GetNearestPlacesPlacesResponseBody | errors.GetNearestPlacesPlacesResponseResponseBody | errors.GetNearestPlacesPlacesResponse429ResponseBody | errors.GetNearestPlacesPlacesResponse500ResponseBody | errors.GetNearestPlacesPlacesResponse503ResponseBody | SDKBaseError | ResponseValidationError | ConnectionError | RequestAbortedError | RequestTimeoutError | InvalidRequestError | UnexpectedClientError | SDKValidationError>>;
19
+ //# sourceMappingURL=placesNearest.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"placesNearest.d.ts","sourceRoot":"","sources":["../../../src/funcs/placesNearest.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AAMrC,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAGhD,OAAO,EACL,eAAe,EACf,mBAAmB,EACnB,mBAAmB,EACnB,mBAAmB,EACnB,qBAAqB,EACtB,MAAM,0CAA0C,CAAC;AAClD,OAAO,KAAK,MAAM,MAAM,+BAA+B,CAAC;AACxD,OAAO,EAAE,uBAAuB,EAAE,MAAM,iDAAiD,CAAC;AAC1F,OAAO,EAAE,YAAY,EAAE,MAAM,sCAAsC,CAAC;AACpE,OAAO,EAAE,kBAAkB,EAAE,MAAM,4CAA4C,CAAC;AAChF,OAAO,KAAK,UAAU,MAAM,mCAAmC,CAAC;AAChE,OAAO,KAAK,MAAM,MAAM,+BAA+B,CAAC;AACxD,OAAO,EAAW,UAAU,EAAE,MAAM,uBAAuB,CAAC;AAC5D,OAAO,EAAE,MAAM,EAAE,MAAM,oBAAoB,CAAC;AAE5C;;;;;GAKG;AACH,wBAAgB,aAAa,CAC3B,MAAM,EAAE,OAAO,EACf,OAAO,EAAE,UAAU,CAAC,uBAAuB,EAC3C,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CACX,MAAM,CACJ,MAAM,CAAC,kBAAkB,EACvB,MAAM,CAAC,4BAA4B,GACnC,MAAM,CAAC,kCAAkC,GACzC,MAAM,CAAC,0CAA0C,GACjD,MAAM,CAAC,6CAA6C,GACpD,MAAM,CAAC,6CAA6C,GACpD,MAAM,CAAC,6CAA6C,GACpD,YAAY,GACZ,uBAAuB,GACvB,eAAe,GACf,mBAAmB,GACnB,mBAAmB,GACnB,mBAAmB,GACnB,qBAAqB,GACrB,kBAAkB,CACrB,CACF,CAMA"}
@@ -0,0 +1,91 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+ import { encodeFormQuery } from "../lib/encodings.js";
5
+ import { matchStatusCode } from "../lib/http.js";
6
+ import * as M from "../lib/matchers.js";
7
+ import { compactMap } from "../lib/primitives.js";
8
+ import { safeParse } from "../lib/schemas.js";
9
+ import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
10
+ import { pathToFunc } from "../lib/url.js";
11
+ import * as errors from "../sdk/models/errors/index.js";
12
+ import * as operations from "../sdk/models/operations/index.js";
13
+ import * as shared from "../sdk/models/shared/index.js";
14
+ import { APIPromise } from "../sdk/types/async.js";
15
+ /**
16
+ * Find the nearest points of interest
17
+ *
18
+ * @remarks
19
+ * Returns the points of interest nearest a point within a radius, nearest first, each with its straight-line distance in metres and its brand where known. Covers the businesses registered for food hygiene and the other places whose existence is corroborated. A registered food business can be any premises that handles food, a care home or a school as well as a restaurant, so filter on `categories` for a kind of place: `categoryPath` is given only where it is corroborated and is null otherwise. Places with no corroborated location are not returned. Charged per place returned.
20
+ */
21
+ export function placesNearest(client, request, options) {
22
+ return new APIPromise($do(client, request, options));
23
+ }
24
+ async function $do(client, request, options) {
25
+ const parsed = safeParse(request, (value) => operations.GetNearestPlacesRequest$outboundSchema.parse(value), "Input validation failed");
26
+ if (!parsed.ok) {
27
+ return [parsed, { status: "invalid" }];
28
+ }
29
+ const payload = parsed.value;
30
+ const body = null;
31
+ const path = pathToFunc("/v1/poi/nearest")();
32
+ const query = encodeFormQuery({
33
+ "categories": payload.categories,
34
+ "lat": payload.lat,
35
+ "limit": payload.limit,
36
+ "lng": payload.lng,
37
+ "radius": payload.radius,
38
+ });
39
+ const headers = new Headers(compactMap({
40
+ Accept: "application/json",
41
+ }));
42
+ const secConfig = await extractSecurity(client._options.apiKeyAuth);
43
+ const securityInput = secConfig == null ? {} : { apiKeyAuth: secConfig };
44
+ const requestSecurity = resolveGlobalSecurity(securityInput);
45
+ const context = {
46
+ options: client._options,
47
+ baseURL: options?.serverURL ?? client._baseURL ?? "",
48
+ operationID: "getNearestPlaces",
49
+ oAuth2Scopes: null,
50
+ resolvedSecurity: requestSecurity,
51
+ securitySource: client._options.apiKeyAuth,
52
+ retryConfig: options?.retries
53
+ || client._options.retryConfig
54
+ || { strategy: "none" },
55
+ retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
56
+ };
57
+ const requestRes = client._createRequest(context, {
58
+ security: requestSecurity,
59
+ method: "GET",
60
+ baseURL: options?.serverURL,
61
+ path: path,
62
+ headers: headers,
63
+ query: query,
64
+ body: body,
65
+ userAgent: client._options.userAgent,
66
+ timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
67
+ }, options);
68
+ if (!requestRes.ok) {
69
+ return [requestRes, { status: "invalid" }];
70
+ }
71
+ const req = requestRes.value;
72
+ const doResult = await client._do(req, {
73
+ context,
74
+ isErrorStatusCode: (statusCode) => matchStatusCode({ status: statusCode }, ["4XX", "5XX"]),
75
+ retryConfig: context.retryConfig,
76
+ retryCodes: context.retryCodes,
77
+ });
78
+ if (!doResult.ok) {
79
+ return [doResult, { status: "request-error", request: req }];
80
+ }
81
+ const response = doResult.value;
82
+ const responseFields = {
83
+ HttpMeta: { Response: response, Request: req },
84
+ };
85
+ const [result] = await M.match(M.json(200, shared.PoiNearestResponse$inboundSchema), M.jsonErr(400, errors.GetNearestPlacesResponseBody$inboundSchema), M.jsonErr(401, errors.GetNearestPlacesPlacesResponseBody$inboundSchema), M.jsonErr(403, errors.GetNearestPlacesPlacesResponseResponseBody$inboundSchema), M.jsonErr(429, errors.GetNearestPlacesPlacesResponse429ResponseBody$inboundSchema), M.jsonErr(500, errors.GetNearestPlacesPlacesResponse500ResponseBody$inboundSchema), M.jsonErr(503, errors.GetNearestPlacesPlacesResponse503ResponseBody$inboundSchema), M.fail("4XX"), M.fail("5XX"))(response, req, { extraFields: responseFields });
86
+ if (!result.ok) {
87
+ return [result, { status: "complete", request: req, response }];
88
+ }
89
+ return [result, { status: "complete", request: req, response }];
90
+ }
91
+ //# sourceMappingURL=placesNearest.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"placesNearest.js","sourceRoot":"","sources":["../../../src/funcs/placesNearest.ts"],"names":[],"mappings":"AAAA;;GAEG;AAGH,OAAO,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AACtD,OAAO,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAC;AACjD,OAAO,KAAK,CAAC,MAAM,oBAAoB,CAAC;AACxC,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAClD,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAE9C,OAAO,EAAE,eAAe,EAAE,qBAAqB,EAAE,MAAM,oBAAoB,CAAC;AAC5E,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAQ3C,OAAO,KAAK,MAAM,MAAM,+BAA+B,CAAC;AAIxD,OAAO,KAAK,UAAU,MAAM,mCAAmC,CAAC;AAChE,OAAO,KAAK,MAAM,MAAM,+BAA+B,CAAC;AACxD,OAAO,EAAW,UAAU,EAAE,MAAM,uBAAuB,CAAC;AAG5D;;;;;GAKG;AACH,MAAM,UAAU,aAAa,CAC3B,MAAe,EACf,OAA2C,EAC3C,OAAwB;IAoBxB,OAAO,IAAI,UAAU,CAAC,GAAG,CACvB,MAAM,EACN,OAAO,EACP,OAAO,CACR,CAAC,CAAC;AACL,CAAC;AAED,KAAK,UAAU,GAAG,CAChB,MA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AU,EAAE,OAAO,EAAE,GAAG,EAAE,QAAQ,EAAE,CAAC,CAAC;AAClE,CAAC"}
@@ -30,9 +30,9 @@ export type SDKOptions = {
30
30
  export declare function serverURLFromOptions(options: SDKOptions): URL | null;
31
31
  export declare const SDK_METADATA: {
32
32
  readonly language: "typescript";
33
- readonly openapiDocVersion: "7.11.2";
33
+ readonly openapiDocVersion: "7.18.1";
34
34
  readonly sdkVersion: "0.12.0";
35
- readonly genVersion: "2.956.1";
36
- readonly userAgent: "speakeasy-sdk/typescript 0.12.0 2.956.1 7.11.2 @vepler/sdk";
35
+ readonly genVersion: "2.960.8";
36
+ readonly userAgent: "speakeasy-sdk/typescript 0.12.0 2.960.8 7.18.1 @vepler/sdk";
37
37
  };
38
38
  //# sourceMappingURL=config.d.ts.map
@@ -26,9 +26,9 @@ export function serverURLFromOptions(options) {
26
26
  }
27
27
  export const SDK_METADATA = {
28
28
  language: "typescript",
29
- openapiDocVersion: "7.11.2",
29
+ openapiDocVersion: "7.18.1",
30
30
  sdkVersion: "0.12.0",
31
- genVersion: "2.956.1",
32
- userAgent: "speakeasy-sdk/typescript 0.12.0 2.956.1 7.11.2 @vepler/sdk",
31
+ genVersion: "2.960.8",
32
+ userAgent: "speakeasy-sdk/typescript 0.12.0 2.960.8 7.18.1 @vepler/sdk",
33
33
  };
34
34
  //# sourceMappingURL=config.js.map
@@ -0,0 +1,396 @@
1
+ import * as z from "zod/v3";
2
+ import { OpenEnum } from "../../types/enums.js";
3
+ import { Result as SafeParseResult } from "../../types/fp.js";
4
+ import { SDKBaseError } from "./sdkbaseerror.js";
5
+ import { SDKValidationError } from "./sdkvalidationerror.js";
6
+ /**
7
+ * Broad category of the failure: a malformed request, an authentication problem, a rate limit, or a fault on the server side.
8
+ */
9
+ export declare const GetNearestPlacesPlacesResponse503Type: {
10
+ readonly ApiError: "api_error";
11
+ readonly InvalidRequestError: "invalid_request_error";
12
+ readonly AuthenticationError: "authentication_error";
13
+ readonly RateLimitError: "rate_limit_error";
14
+ };
15
+ /**
16
+ * Broad category of the failure: a malformed request, an authentication problem, a rate limit, or a fault on the server side.
17
+ */
18
+ export type GetNearestPlacesPlacesResponse503Type = OpenEnum<typeof GetNearestPlacesPlacesResponse503Type>;
19
+ export type GetNearestPlacesPlacesResponse503Error = {
20
+ /**
21
+ * Stable code identifying the specific failure, safe to branch on.
22
+ */
23
+ code?: string | undefined;
24
+ /**
25
+ * Link to the documentation for this error.
26
+ */
27
+ docUrl?: string | undefined;
28
+ /**
29
+ * Human-readable explanation of what went wrong.
30
+ */
31
+ message: string;
32
+ /**
33
+ * Name of the request parameter at fault, where the failure can be traced to one.
34
+ */
35
+ param?: string | undefined;
36
+ /**
37
+ * Alternative values worth retrying when the supplied one could not be matched.
38
+ */
39
+ suggestions?: Array<string> | undefined;
40
+ /**
41
+ * Broad category of the failure: a malformed request, an authentication problem, a rate limit, or a fault on the server side.
42
+ */
43
+ type: GetNearestPlacesPlacesResponse503Type;
44
+ };
45
+ /**
46
+ * Returned in place of the normal payload whenever a request fails.
47
+ */
48
+ export type GetNearestPlacesPlacesResponse503ResponseBodyData = {
49
+ error: GetNearestPlacesPlacesResponse503Error;
50
+ };
51
+ /**
52
+ * Returned in place of the normal payload whenever a request fails.
53
+ */
54
+ export declare class GetNearestPlacesPlacesResponse503ResponseBody extends SDKBaseError {
55
+ error: GetNearestPlacesPlacesResponse503Error;
56
+ /** The original data that was passed to this error instance. */
57
+ data$: GetNearestPlacesPlacesResponse503ResponseBodyData;
58
+ constructor(err: GetNearestPlacesPlacesResponse503ResponseBodyData, httpMeta: {
59
+ response: Response;
60
+ request: Request;
61
+ body: string;
62
+ });
63
+ }
64
+ /**
65
+ * Broad category of the failure: a malformed request, an authentication problem, a rate limit, or a fault on the server side.
66
+ */
67
+ export declare const GetNearestPlacesPlacesResponse500Type: {
68
+ readonly ApiError: "api_error";
69
+ readonly InvalidRequestError: "invalid_request_error";
70
+ readonly AuthenticationError: "authentication_error";
71
+ readonly RateLimitError: "rate_limit_error";
72
+ };
73
+ /**
74
+ * Broad category of the failure: a malformed request, an authentication problem, a rate limit, or a fault on the server side.
75
+ */
76
+ export type GetNearestPlacesPlacesResponse500Type = OpenEnum<typeof GetNearestPlacesPlacesResponse500Type>;
77
+ export type GetNearestPlacesPlacesResponse500Error = {
78
+ /**
79
+ * Stable code identifying the specific failure, safe to branch on.
80
+ */
81
+ code?: string | undefined;
82
+ /**
83
+ * Link to the documentation for this error.
84
+ */
85
+ docUrl?: string | undefined;
86
+ /**
87
+ * Human-readable explanation of what went wrong.
88
+ */
89
+ message: string;
90
+ /**
91
+ * Name of the request parameter at fault, where the failure can be traced to one.
92
+ */
93
+ param?: string | undefined;
94
+ /**
95
+ * Alternative values worth retrying when the supplied one could not be matched.
96
+ */
97
+ suggestions?: Array<string> | undefined;
98
+ /**
99
+ * Broad category of the failure: a malformed request, an authentication problem, a rate limit, or a fault on the server side.
100
+ */
101
+ type: GetNearestPlacesPlacesResponse500Type;
102
+ };
103
+ /**
104
+ * Returned in place of the normal payload whenever a request fails.
105
+ */
106
+ export type GetNearestPlacesPlacesResponse500ResponseBodyData = {
107
+ error: GetNearestPlacesPlacesResponse500Error;
108
+ };
109
+ /**
110
+ * Returned in place of the normal payload whenever a request fails.
111
+ */
112
+ export declare class GetNearestPlacesPlacesResponse500ResponseBody extends SDKBaseError {
113
+ error: GetNearestPlacesPlacesResponse500Error;
114
+ /** The original data that was passed to this error instance. */
115
+ data$: GetNearestPlacesPlacesResponse500ResponseBodyData;
116
+ constructor(err: GetNearestPlacesPlacesResponse500ResponseBodyData, httpMeta: {
117
+ response: Response;
118
+ request: Request;
119
+ body: string;
120
+ });
121
+ }
122
+ /**
123
+ * Broad category of the failure: a malformed request, an authentication problem, a rate limit, or a fault on the server side.
124
+ */
125
+ export declare const GetNearestPlacesPlacesResponse429Type: {
126
+ readonly ApiError: "api_error";
127
+ readonly InvalidRequestError: "invalid_request_error";
128
+ readonly AuthenticationError: "authentication_error";
129
+ readonly RateLimitError: "rate_limit_error";
130
+ };
131
+ /**
132
+ * Broad category of the failure: a malformed request, an authentication problem, a rate limit, or a fault on the server side.
133
+ */
134
+ export type GetNearestPlacesPlacesResponse429Type = OpenEnum<typeof GetNearestPlacesPlacesResponse429Type>;
135
+ export type GetNearestPlacesPlacesResponse429Error = {
136
+ /**
137
+ * Stable code identifying the specific failure, safe to branch on.
138
+ */
139
+ code?: string | undefined;
140
+ /**
141
+ * Link to the documentation for this error.
142
+ */
143
+ docUrl?: string | undefined;
144
+ /**
145
+ * Human-readable explanation of what went wrong.
146
+ */
147
+ message: string;
148
+ /**
149
+ * Name of the request parameter at fault, where the failure can be traced to one.
150
+ */
151
+ param?: string | undefined;
152
+ /**
153
+ * Alternative values worth retrying when the supplied one could not be matched.
154
+ */
155
+ suggestions?: Array<string> | undefined;
156
+ /**
157
+ * Broad category of the failure: a malformed request, an authentication problem, a rate limit, or a fault on the server side.
158
+ */
159
+ type: GetNearestPlacesPlacesResponse429Type;
160
+ };
161
+ /**
162
+ * Returned in place of the normal payload whenever a request fails.
163
+ */
164
+ export type GetNearestPlacesPlacesResponse429ResponseBodyData = {
165
+ error: GetNearestPlacesPlacesResponse429Error;
166
+ };
167
+ /**
168
+ * Returned in place of the normal payload whenever a request fails.
169
+ */
170
+ export declare class GetNearestPlacesPlacesResponse429ResponseBody extends SDKBaseError {
171
+ error: GetNearestPlacesPlacesResponse429Error;
172
+ /** The original data that was passed to this error instance. */
173
+ data$: GetNearestPlacesPlacesResponse429ResponseBodyData;
174
+ constructor(err: GetNearestPlacesPlacesResponse429ResponseBodyData, httpMeta: {
175
+ response: Response;
176
+ request: Request;
177
+ body: string;
178
+ });
179
+ }
180
+ /**
181
+ * Broad category of the failure: a malformed request, an authentication problem, a rate limit, or a fault on the server side.
182
+ */
183
+ export declare const GetNearestPlacesPlacesResponseType: {
184
+ readonly ApiError: "api_error";
185
+ readonly InvalidRequestError: "invalid_request_error";
186
+ readonly AuthenticationError: "authentication_error";
187
+ readonly RateLimitError: "rate_limit_error";
188
+ };
189
+ /**
190
+ * Broad category of the failure: a malformed request, an authentication problem, a rate limit, or a fault on the server side.
191
+ */
192
+ export type GetNearestPlacesPlacesResponseType = OpenEnum<typeof GetNearestPlacesPlacesResponseType>;
193
+ export type GetNearestPlacesPlacesResponseError = {
194
+ /**
195
+ * Stable code identifying the specific failure, safe to branch on.
196
+ */
197
+ code?: string | undefined;
198
+ /**
199
+ * Link to the documentation for this error.
200
+ */
201
+ docUrl?: string | undefined;
202
+ /**
203
+ * Human-readable explanation of what went wrong.
204
+ */
205
+ message: string;
206
+ /**
207
+ * Name of the request parameter at fault, where the failure can be traced to one.
208
+ */
209
+ param?: string | undefined;
210
+ /**
211
+ * Alternative values worth retrying when the supplied one could not be matched.
212
+ */
213
+ suggestions?: Array<string> | undefined;
214
+ /**
215
+ * Broad category of the failure: a malformed request, an authentication problem, a rate limit, or a fault on the server side.
216
+ */
217
+ type: GetNearestPlacesPlacesResponseType;
218
+ };
219
+ /**
220
+ * Returned in place of the normal payload whenever a request fails.
221
+ */
222
+ export type GetNearestPlacesPlacesResponseResponseBodyData = {
223
+ error: GetNearestPlacesPlacesResponseError;
224
+ };
225
+ /**
226
+ * Returned in place of the normal payload whenever a request fails.
227
+ */
228
+ export declare class GetNearestPlacesPlacesResponseResponseBody extends SDKBaseError {
229
+ error: GetNearestPlacesPlacesResponseError;
230
+ /** The original data that was passed to this error instance. */
231
+ data$: GetNearestPlacesPlacesResponseResponseBodyData;
232
+ constructor(err: GetNearestPlacesPlacesResponseResponseBodyData, httpMeta: {
233
+ response: Response;
234
+ request: Request;
235
+ body: string;
236
+ });
237
+ }
238
+ /**
239
+ * Broad category of the failure: a malformed request, an authentication problem, a rate limit, or a fault on the server side.
240
+ */
241
+ export declare const GetNearestPlacesPlacesType: {
242
+ readonly ApiError: "api_error";
243
+ readonly InvalidRequestError: "invalid_request_error";
244
+ readonly AuthenticationError: "authentication_error";
245
+ readonly RateLimitError: "rate_limit_error";
246
+ };
247
+ /**
248
+ * Broad category of the failure: a malformed request, an authentication problem, a rate limit, or a fault on the server side.
249
+ */
250
+ export type GetNearestPlacesPlacesType = OpenEnum<typeof GetNearestPlacesPlacesType>;
251
+ export type GetNearestPlacesPlacesError = {
252
+ /**
253
+ * Stable code identifying the specific failure, safe to branch on.
254
+ */
255
+ code?: string | undefined;
256
+ /**
257
+ * Link to the documentation for this error.
258
+ */
259
+ docUrl?: string | undefined;
260
+ /**
261
+ * Human-readable explanation of what went wrong.
262
+ */
263
+ message: string;
264
+ /**
265
+ * Name of the request parameter at fault, where the failure can be traced to one.
266
+ */
267
+ param?: string | undefined;
268
+ /**
269
+ * Alternative values worth retrying when the supplied one could not be matched.
270
+ */
271
+ suggestions?: Array<string> | undefined;
272
+ /**
273
+ * Broad category of the failure: a malformed request, an authentication problem, a rate limit, or a fault on the server side.
274
+ */
275
+ type: GetNearestPlacesPlacesType;
276
+ };
277
+ /**
278
+ * Returned in place of the normal payload whenever a request fails.
279
+ */
280
+ export type GetNearestPlacesPlacesResponseBodyData = {
281
+ error: GetNearestPlacesPlacesError;
282
+ };
283
+ /**
284
+ * Returned in place of the normal payload whenever a request fails.
285
+ */
286
+ export declare class GetNearestPlacesPlacesResponseBody extends SDKBaseError {
287
+ error: GetNearestPlacesPlacesError;
288
+ /** The original data that was passed to this error instance. */
289
+ data$: GetNearestPlacesPlacesResponseBodyData;
290
+ constructor(err: GetNearestPlacesPlacesResponseBodyData, httpMeta: {
291
+ response: Response;
292
+ request: Request;
293
+ body: string;
294
+ });
295
+ }
296
+ /**
297
+ * Broad category of the failure: a malformed request, an authentication problem, a rate limit, or a fault on the server side.
298
+ */
299
+ export declare const GetNearestPlacesType: {
300
+ readonly ApiError: "api_error";
301
+ readonly InvalidRequestError: "invalid_request_error";
302
+ readonly AuthenticationError: "authentication_error";
303
+ readonly RateLimitError: "rate_limit_error";
304
+ };
305
+ /**
306
+ * Broad category of the failure: a malformed request, an authentication problem, a rate limit, or a fault on the server side.
307
+ */
308
+ export type GetNearestPlacesType = OpenEnum<typeof GetNearestPlacesType>;
309
+ export type GetNearestPlacesError = {
310
+ /**
311
+ * Stable code identifying the specific failure, safe to branch on.
312
+ */
313
+ code?: string | undefined;
314
+ /**
315
+ * Link to the documentation for this error.
316
+ */
317
+ docUrl?: string | undefined;
318
+ /**
319
+ * Human-readable explanation of what went wrong.
320
+ */
321
+ message: string;
322
+ /**
323
+ * Name of the request parameter at fault, where the failure can be traced to one.
324
+ */
325
+ param?: string | undefined;
326
+ /**
327
+ * Alternative values worth retrying when the supplied one could not be matched.
328
+ */
329
+ suggestions?: Array<string> | undefined;
330
+ /**
331
+ * Broad category of the failure: a malformed request, an authentication problem, a rate limit, or a fault on the server side.
332
+ */
333
+ type: GetNearestPlacesType;
334
+ };
335
+ /**
336
+ * Returned in place of the normal payload whenever a request fails.
337
+ */
338
+ export type GetNearestPlacesResponseBodyData = {
339
+ error: GetNearestPlacesError;
340
+ };
341
+ /**
342
+ * Returned in place of the normal payload whenever a request fails.
343
+ */
344
+ export declare class GetNearestPlacesResponseBody extends SDKBaseError {
345
+ error: GetNearestPlacesError;
346
+ /** The original data that was passed to this error instance. */
347
+ data$: GetNearestPlacesResponseBodyData;
348
+ constructor(err: GetNearestPlacesResponseBodyData, httpMeta: {
349
+ response: Response;
350
+ request: Request;
351
+ body: string;
352
+ });
353
+ }
354
+ /** @internal */
355
+ export declare const GetNearestPlacesPlacesResponse503Type$inboundSchema: z.ZodType<GetNearestPlacesPlacesResponse503Type, z.ZodTypeDef, unknown>;
356
+ /** @internal */
357
+ export declare const GetNearestPlacesPlacesResponse503Error$inboundSchema: z.ZodType<GetNearestPlacesPlacesResponse503Error, z.ZodTypeDef, unknown>;
358
+ export declare function getNearestPlacesPlacesResponse503ErrorFromJSON(jsonString: string): SafeParseResult<GetNearestPlacesPlacesResponse503Error, SDKValidationError>;
359
+ /** @internal */
360
+ export declare const GetNearestPlacesPlacesResponse503ResponseBody$inboundSchema: z.ZodType<GetNearestPlacesPlacesResponse503ResponseBody, z.ZodTypeDef, unknown>;
361
+ /** @internal */
362
+ export declare const GetNearestPlacesPlacesResponse500Type$inboundSchema: z.ZodType<GetNearestPlacesPlacesResponse500Type, z.ZodTypeDef, unknown>;
363
+ /** @internal */
364
+ export declare const GetNearestPlacesPlacesResponse500Error$inboundSchema: z.ZodType<GetNearestPlacesPlacesResponse500Error, z.ZodTypeDef, unknown>;
365
+ export declare function getNearestPlacesPlacesResponse500ErrorFromJSON(jsonString: string): SafeParseResult<GetNearestPlacesPlacesResponse500Error, SDKValidationError>;
366
+ /** @internal */
367
+ export declare const GetNearestPlacesPlacesResponse500ResponseBody$inboundSchema: z.ZodType<GetNearestPlacesPlacesResponse500ResponseBody, z.ZodTypeDef, unknown>;
368
+ /** @internal */
369
+ export declare const GetNearestPlacesPlacesResponse429Type$inboundSchema: z.ZodType<GetNearestPlacesPlacesResponse429Type, z.ZodTypeDef, unknown>;
370
+ /** @internal */
371
+ export declare const GetNearestPlacesPlacesResponse429Error$inboundSchema: z.ZodType<GetNearestPlacesPlacesResponse429Error, z.ZodTypeDef, unknown>;
372
+ export declare function getNearestPlacesPlacesResponse429ErrorFromJSON(jsonString: string): SafeParseResult<GetNearestPlacesPlacesResponse429Error, SDKValidationError>;
373
+ /** @internal */
374
+ export declare const GetNearestPlacesPlacesResponse429ResponseBody$inboundSchema: z.ZodType<GetNearestPlacesPlacesResponse429ResponseBody, z.ZodTypeDef, unknown>;
375
+ /** @internal */
376
+ export declare const GetNearestPlacesPlacesResponseType$inboundSchema: z.ZodType<GetNearestPlacesPlacesResponseType, z.ZodTypeDef, unknown>;
377
+ /** @internal */
378
+ export declare const GetNearestPlacesPlacesResponseError$inboundSchema: z.ZodType<GetNearestPlacesPlacesResponseError, z.ZodTypeDef, unknown>;
379
+ export declare function getNearestPlacesPlacesResponseErrorFromJSON(jsonString: string): SafeParseResult<GetNearestPlacesPlacesResponseError, SDKValidationError>;
380
+ /** @internal */
381
+ export declare const GetNearestPlacesPlacesResponseResponseBody$inboundSchema: z.ZodType<GetNearestPlacesPlacesResponseResponseBody, z.ZodTypeDef, unknown>;
382
+ /** @internal */
383
+ export declare const GetNearestPlacesPlacesType$inboundSchema: z.ZodType<GetNearestPlacesPlacesType, z.ZodTypeDef, unknown>;
384
+ /** @internal */
385
+ export declare const GetNearestPlacesPlacesError$inboundSchema: z.ZodType<GetNearestPlacesPlacesError, z.ZodTypeDef, unknown>;
386
+ export declare function getNearestPlacesPlacesErrorFromJSON(jsonString: string): SafeParseResult<GetNearestPlacesPlacesError, SDKValidationError>;
387
+ /** @internal */
388
+ export declare const GetNearestPlacesPlacesResponseBody$inboundSchema: z.ZodType<GetNearestPlacesPlacesResponseBody, z.ZodTypeDef, unknown>;
389
+ /** @internal */
390
+ export declare const GetNearestPlacesType$inboundSchema: z.ZodType<GetNearestPlacesType, z.ZodTypeDef, unknown>;
391
+ /** @internal */
392
+ export declare const GetNearestPlacesError$inboundSchema: z.ZodType<GetNearestPlacesError, z.ZodTypeDef, unknown>;
393
+ export declare function getNearestPlacesErrorFromJSON(jsonString: string): SafeParseResult<GetNearestPlacesError, SDKValidationError>;
394
+ /** @internal */
395
+ export declare const GetNearestPlacesResponseBody$inboundSchema: z.ZodType<GetNearestPlacesResponseBody, z.ZodTypeDef, unknown>;
396
+ //# sourceMappingURL=getnearestplaces.d.ts.map