@stuartshay/otel-data-types 1.0.666 → 1.0.674

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 (2) hide show
  1. package/index.d.ts +199 -0
  2. package/package.json +1 -1
package/index.d.ts CHANGED
@@ -872,6 +872,32 @@ export type paths = {
872
872
  patch?: never;
873
873
  trace?: never;
874
874
  };
875
+ "/api/v1/geocoding/reverse/batch": {
876
+ parameters: {
877
+ query?: never;
878
+ header?: never;
879
+ path?: never;
880
+ cookie?: never;
881
+ };
882
+ get?: never;
883
+ put?: never;
884
+ /**
885
+ * Reverse Geocode Points Batch
886
+ * @description Resolve up to 300 points from the dense cell cache in one database query.
887
+ *
888
+ * Unlike ``/reverse``, this never falls back to Pelias: an uncached or
889
+ * unresolved cell is reported as ``status='pending'`` rather than resolved
890
+ * synchronously, so the response time stays bounded regardless of how many
891
+ * of the requested points have never been geocoded. Callers that need a
892
+ * guaranteed resolution for a single point should use ``/reverse`` instead.
893
+ */
894
+ post: operations["reverse_geocode_points_batch_api_v1_geocoding_reverse_batch_post"];
895
+ delete?: never;
896
+ options?: never;
897
+ head?: never;
898
+ patch?: never;
899
+ trace?: never;
900
+ };
875
901
  "/api/v1/geocoding/status": {
876
902
  parameters: {
877
903
  query?: never;
@@ -3911,6 +3937,132 @@ export type components = {
3911
3937
  */
3912
3938
  description?: string | null;
3913
3939
  };
3940
+ /**
3941
+ * ReverseGeocodeBatchItem
3942
+ * @description One coordinate's cached address, or a cache miss, from a batch lookup.
3943
+ *
3944
+ * Unlike GeocodedPointAddress, this never triggers a Pelias fallback: the
3945
+ * batch endpoint is a single set-based database read, so an uncached cell
3946
+ * is reported as status='pending' rather than resolved synchronously.
3947
+ * @example {
3948
+ * "confidence": 0.95,
3949
+ * "country": "United States",
3950
+ * "display_address": "123 Main St, Hoboken, NJ 07030",
3951
+ * "geocoded_at": "2026-02-12T08:10:55+00:00",
3952
+ * "housenumber": "123",
3953
+ * "locality": "Hoboken",
3954
+ * "neighbourhood": "Downtown",
3955
+ * "postalcode": "07030",
3956
+ * "region": "New Jersey",
3957
+ * "status": "success",
3958
+ * "street": "Main St"
3959
+ * }
3960
+ */
3961
+ ReverseGeocodeBatchItem: {
3962
+ /**
3963
+ * Display Address
3964
+ * @description Full formatted address label from Pelias
3965
+ */
3966
+ display_address?: string | null;
3967
+ /**
3968
+ * Street
3969
+ * @description Street name
3970
+ */
3971
+ street?: string | null;
3972
+ /**
3973
+ * Housenumber
3974
+ * @description House or building number
3975
+ */
3976
+ housenumber?: string | null;
3977
+ /**
3978
+ * Neighbourhood
3979
+ * @description Neighbourhood name
3980
+ */
3981
+ neighbourhood?: string | null;
3982
+ /**
3983
+ * Locality
3984
+ * @description City or town
3985
+ */
3986
+ locality?: string | null;
3987
+ /**
3988
+ * Region
3989
+ * @description State or province
3990
+ */
3991
+ region?: string | null;
3992
+ /**
3993
+ * Country
3994
+ * @description Country name
3995
+ */
3996
+ country?: string | null;
3997
+ /**
3998
+ * Postalcode
3999
+ * @description Postal or ZIP code
4000
+ */
4001
+ postalcode?: string | null;
4002
+ /**
4003
+ * Confidence
4004
+ * @description Pelias confidence score (0-1)
4005
+ */
4006
+ confidence?: number | null;
4007
+ /**
4008
+ * Status
4009
+ * @description Geocoding status: success, no_coverage, error, pending
4010
+ */
4011
+ status: string;
4012
+ /**
4013
+ * Geocoded At
4014
+ * @description UTC timestamp when geocoding was performed
4015
+ */
4016
+ geocoded_at?: string | null;
4017
+ /**
4018
+ * Latitude
4019
+ * @description Resolved 4-decimal cell latitude
4020
+ */
4021
+ latitude: number;
4022
+ /**
4023
+ * Longitude
4024
+ * @description Resolved 4-decimal cell longitude
4025
+ */
4026
+ longitude: number;
4027
+ };
4028
+ /**
4029
+ * ReverseGeocodeBatchRequest
4030
+ * @description Bounded collection of coordinates to resolve from the dense cell cache.
4031
+ */
4032
+ ReverseGeocodeBatchRequest: {
4033
+ /**
4034
+ * Points
4035
+ * @description Coordinates to resolve, processed and returned in request order
4036
+ */
4037
+ points: components["schemas"]["ReverseGeocodePointInput"][];
4038
+ };
4039
+ /**
4040
+ * ReverseGeocodeBatchResponse
4041
+ * @description Multiple coordinates' cached addresses, returned in request order.
4042
+ */
4043
+ ReverseGeocodeBatchResponse: {
4044
+ /**
4045
+ * Items
4046
+ * @description Resolved addresses in request order
4047
+ */
4048
+ items: components["schemas"]["ReverseGeocodeBatchItem"][];
4049
+ };
4050
+ /**
4051
+ * ReverseGeocodePointInput
4052
+ * @description One coordinate requested as part of a batch reverse-geocode lookup.
4053
+ */
4054
+ ReverseGeocodePointInput: {
4055
+ /**
4056
+ * Latitude
4057
+ * @description Latitude in decimal degrees
4058
+ */
4059
+ latitude: number;
4060
+ /**
4061
+ * Longitude
4062
+ * @description Longitude in decimal degrees
4063
+ */
4064
+ longitude: number;
4065
+ };
3914
4066
  /**
3915
4067
  * SegmentDefinition
3916
4068
  * @description The ad-hoc segment queried for efforts (a start→end corridor).
@@ -6043,6 +6195,53 @@ export interface operations {
6043
6195
  };
6044
6196
  };
6045
6197
  };
6198
+ reverse_geocode_points_batch_api_v1_geocoding_reverse_batch_post: {
6199
+ parameters: {
6200
+ query?: never;
6201
+ header?: never;
6202
+ path?: never;
6203
+ cookie?: never;
6204
+ };
6205
+ requestBody: {
6206
+ content: {
6207
+ "application/json": components["schemas"]["ReverseGeocodeBatchRequest"];
6208
+ };
6209
+ };
6210
+ responses: {
6211
+ /** @description Successful Response */
6212
+ 200: {
6213
+ headers: {
6214
+ [name: string]: unknown;
6215
+ };
6216
+ content: {
6217
+ "application/json": components["schemas"]["ReverseGeocodeBatchResponse"];
6218
+ };
6219
+ };
6220
+ /** @description Authentication required or token invalid */
6221
+ 401: {
6222
+ headers: {
6223
+ [name: string]: unknown;
6224
+ };
6225
+ content?: never;
6226
+ };
6227
+ /** @description Validation Error */
6228
+ 422: {
6229
+ headers: {
6230
+ [name: string]: unknown;
6231
+ };
6232
+ content: {
6233
+ "application/json": components["schemas"]["HTTPValidationError"];
6234
+ };
6235
+ };
6236
+ /** @description Authentication service unavailable */
6237
+ 503: {
6238
+ headers: {
6239
+ [name: string]: unknown;
6240
+ };
6241
+ content?: never;
6242
+ };
6243
+ };
6244
+ };
6046
6245
  geocoding_status_api_v1_geocoding_status_get: {
6047
6246
  parameters: {
6048
6247
  query?: never;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stuartshay/otel-data-types",
3
- "version": "1.0.666",
3
+ "version": "1.0.674",
4
4
  "description": "TypeScript types for otel-data-api — Auto-generated from OpenAPI 3.1 specification",
5
5
  "types": "index.d.ts",
6
6
  "exports": {