bardiya

package module
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 29, 2026 License: Apache-2.0 Imports: 21 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

Bardiya Map SDK for Go

Official Go client for the Bardiya Map API. Go 1.24+.

  • Models and a typed client generated from the published contract with oapi-codegen v2.8.2 (bardiya.gen.go, do not edit by hand).
  • Thin wrappers for all 39 operations with typed results and typed errors.
  • Context-aware requests, bounded retries for idempotent operations only.
  • Server-sent events parsed by github.com/tmaxmax/go-sse.
  • Webhook signature verification.

Install

This is the official public module for the Bardiya Map API. Install it with:

go get github.com/engmohamed05/bardiya-go@v0.1.0

No private repository access, GOPRIVATE entry or credential is required.

  • API reference: https://bardiyamap.com/developers/sdks
  • Commercial policy: paid organizations are billed pay-as-you-go per the published rate card; there is no commercial daily request cap.
  • License: Apache-2.0 (see LICENSE and NOTICE).

Quickstart

package main

import (
	"context"
	"fmt"
	"os"

	bardiya "github.com/engmohamed05/bardiya-go"
)

func main() {
	client, err := bardiya.New(bardiya.Config{APIKey: os.Getenv("BARDIYA_API_KEY")})
	if err != nil {
		panic(err)
	}
	defer client.Close()

	ctx := context.Background()
	latitude, longitude := 30.0444, 31.2357
	places, err := client.Maps.SearchPlaces(ctx, &bardiya.SearchPlacesParams{
		Q:         "coffee",
		Latitude:  &latitude,
		Longitude: &longitude,
		Limit:     bardiya.Ptr(3),
	})
	if err != nil {
		panic(err)
	}
	for _, place := range places.Results {
		fmt.Println(place.Name, *place.Latitude, *place.Longitude)
	}
}

A runnable version lives in examples/quickstart.

Credentials

Two header styles exist and they are not interchangeable:

Family Field Header
Maps client.Maps X-API-Key
Tracking client.Tracking Authorization: Bearer

Config.APIKey is used for both when a single key holds both scope sets. Otherwise set MapsAPIKey and TrackingAPIKey. Only the family you configure is constructed; the other field is nil, so a maps-only program never carries a tracking credential.

Scopes: maps:tiles, maps:search, maps:geocoding, maps:routing, maps:matrix, maps:validate, tracking:read, tracking:write, webhooks:manage, client_tokens:mint.

Errors

Every non-2xx response and every transport failure is a *bardiya.APIError:

places, err := client.Maps.SearchPlaces(ctx, params)
if err != nil {
	var apiErr *bardiya.APIError
	if errors.As(err, &apiErr) {
		log.Println(apiErr.StatusCode, apiErr.Code, apiErr.RequestID)
		if apiErr.RetryAfter > 0 {
			time.Sleep(apiErr.RetryAfter)
		}
	}
}

StatusCode == 0 means no response was received. Retryable() reports whether the same request may succeed later.

Retries

Retries are bounded and never replay a write:

  • GET and HEAD are retried on 408, 425, 429, 500, 502, 503, 504 and on network errors.
  • POST /v1/directions, /v1/distance-matrix and /v1/validate-address retry only when Config.RetryPostComputations is set and the call passes WithIdempotencyKey(...); even then an HTTP error response is final and only an ambiguous transport failure is replayed. The header is accepted on every metered Maps route, including GET reads; the ledger deduplicates debit and recomputes rather than caching the body. The server-side idempotency ledger is flag-gated off in production, so no exactly-once guarantee is claimed.
  • Every other POST, PATCH and DELETE runs exactly once.

Retry-After is honoured (capped at 30s). Backoff is exponential with full jitter. Config.MaxRetries sets the count: 0 disables retries, a negative value selects the default of 2.

Tracking

session, err := client.Tracking.CreateSession(ctx, bardiya.CreateSessionJSONRequestBody{
	SubjectType: bardiya.Ptr("device"),
}, "create-device-1") // Idempotency-Key

result, err := client.Tracking.SendLocation(ctx, session.Id, bardiya.SendLocationJSONRequestBody{
	ClientEventId: uuid.New(),     // idempotency key for retries
	ClientSeq:     1,              // strictly increasing per session
	RecordedAt:    time.Now().UTC(),
	EventType:     bardiya.Ptr(bardiya.TrackingIngestEventCreateEventTypeLocation),
	Latitude:      &latitude,
	Longitude:     &longitude,
})

Duplicate=true means the server already had that client_event_id; it is a success, not an error.

Reads (ListSessions, GetSession, GetState, GetHistory, webhooks) go to the read plane; writes and streams always use the core plane.

Realtime (server-sent events)

for event, err := range client.Tracking.StreamSession(ctx, session.Id) {
	if err != nil {
		return err
	}
	switch event.Type {
	case "snapshot", "location":
		fmt.Println(event.ID, event.Data)
	case "closed":
		return nil
	}
}

Frame types are snapshot, location, heartbeat, limit and closed. Resume is not supported: on reconnect, read the snapshot again and use GetHistory for older data.

Device ingest

Do not ship a long-lived API key in a mobile or device binary. Mint a session-scoped credential on your backend and give the device only that:

credential, err := client.Tracking.IssueIngestToken(ctx, session.Id)
device, err := client.NewIngest(session.Id, organizationID, credential.IngestCredential)
_, err = device.SendLocation(ctx, body)

The credential can only post events for that one session.

Webhooks

ok := bardiya.VerifyWebhookSignature(
	endpointSecret,
	timestamp,              // X-Bardiya-Webhook-Timestamp
	rawBody,                // exact bytes received
	signature,              // X-Bardiya-Webhook-Signature
)

The header is v1=<lowercase hex> of HMAC-SHA256 over "<timestamp>." + body. Use the exact raw body and reject timestamps outside your replay window separately. Unsupported versions return false; use VerifyWebhookSignatureChecked to receive an explicit error instead.

Maps in a browser

client.Maps.Style returns a MapLibre style whose tile URLs are relative and unsigned. Go is a server-side language, so this SDK does not provide a browser key helper: serve the style through your own origin (rewriting tile URLs with a restricted maps:tiles key) or use the TypeScript SDK in the browser. Bardiya has no publishable/browser key type and no self-service origin registration yet.

Regenerating

go run github.com/oapi-codegen/oapi-codegen/v2/cmd/oapi-codegen@v2.8.2 \
  --config sdk/go/oapi-codegen.yaml sdk/contract/openapi/bardiya-sdk-v1.json

The generated file is committed and CI fails if it drifts from the contract. oapi-codegen.yaml sets client-type-name: APIClient (so this package can own Client) and response-type-suffix: Result (so the generated response wrapper does not collide with the DirectionsResponse schema).

Limitations

  • The SDK has not been exercised against a live API from this repository; tests use httptest and contract fixtures.
  • The WebSocket realtime transport is not wrapped. Only the documented SSE endpoint is.
  • Sync only: there is no callback-based ingest queue. Batching is explicit via SendLocationBatch and SendFleetBatch.

Documentation

Overview

Package bardiya provides primitives to interact with the openapi HTTP API.

Code generated by github.com/oapi-codegen/oapi-codegen/v2 version v2.8.2 DO NOT EDIT.

Package bardiya is the official Bardiya Map SDK for Go.

It wraps the generated client from the published OpenAPI contract with the two credential styles the API actually requires, bounded retries for idempotent operations, typed errors and server-sent event streaming.

client, err := bardiya.New(bardiya.Config{APIKey: os.Getenv("BARDIYA_API_KEY")})
if err != nil { return err }
places, err := client.Maps.SearchPlaces(ctx, &bardiya.SearchPlacesParams{Q: "coffee"})

Index

Constants

View Source
const (
	// DefaultBaseURL is the write plane: every public operation.
	DefaultBaseURL = "https://api.bardiyamap.com"
	// DefaultReadBaseURL is the read plane: GET reads of sessions, state,
	// history, client tokens and webhooks only.
	DefaultReadBaseURL = "https://read-api.bardiyamap.com"

	// DefaultMaxRetries is the number of retries for idempotent operations.
	DefaultMaxRetries = 2
	// DefaultRetryBaseDelay is the first backoff ceiling; it doubles per attempt.
	DefaultRetryBaseDelay = 250 * time.Millisecond
	// DefaultTimeout applies per attempt.
	DefaultTimeout = 15 * time.Second
)
View Source
const ContractVersion = "1.1.0"

ContractVersion is the SDK contract this package is generated from.

Variables

View Source
var OperationMethods = map[string]string{

	"healthLive":         "Maps.HealthLive",
	"healthReady":        "Maps.HealthReady",
	"getStyle":           "Maps.Style",
	"getTile":            "Maps.Tile",
	"searchPlaces":       "Maps.SearchPlaces",
	"autocompletePlaces": "Maps.AutocompletePlaces",
	"getPlace":           "Maps.GetPlace",
	"forwardGeocode":     "Maps.ForwardGeocode",
	"reverseGeocode":     "Maps.ReverseGeocode",
	"validateAddress":    "Maps.ValidateAddress",
	"directions":         "Maps.Directions",
	"distanceMatrix":     "Maps.DistanceMatrix",

	"createSession":         "Tracking.CreateSession",
	"listSessions":          "Tracking.ListSessions",
	"getSession":            "Tracking.GetSession",
	"sendLocation":          "Tracking.SendLocation",
	"sendLocationBatch":     "Tracking.SendLocationBatch",
	"sendFleetBatch":        "Tracking.SendFleetBatch",
	"sendEvent":             "Tracking.SendEvent",
	"getState":              "Tracking.GetState",
	"getHistory":            "Tracking.GetHistory",
	"endSession":            "Tracking.EndSession",
	"issueIngestToken":      "Tracking.IssueIngestToken",
	"createSubscription":    "Tracking.CreateSubscription",
	"listSubscriptions":     "Tracking.ListSubscriptions",
	"deleteSubscription":    "Tracking.DeleteSubscription",
	"mintClientToken":       "Tracking.MintClientToken",
	"listClientTokens":      "Tracking.ListClientTokens",
	"revokeClientToken":     "Tracking.RevokeClientToken",
	"streamSession":         "Tracking.StreamSession",
	"createWebhook":         "Tracking.CreateWebhook",
	"listWebhooks":          "Tracking.ListWebhooks",
	"getWebhook":            "Tracking.GetWebhook",
	"updateWebhook":         "Tracking.UpdateWebhook",
	"deleteWebhook":         "Tracking.DeleteWebhook",
	"listWebhookDeliveries": "Tracking.ListWebhookDeliveries",
	"retryWebhookDelivery":  "Tracking.RetryWebhookDelivery",

	"sendLocationWithIngestCredential":      "Ingest.SendLocation",
	"sendLocationBatchWithIngestCredential": "Ingest.SendLocationBatch",
}

OperationMethods maps every operationId in the published contract to the Go method that implements it, written as "Type.Method". coverage_test.go asserts this map matches ../contract/baseline/operations.json exactly and that each method exists, so a contract change cannot silently leave the SDK behind.

Functions

func IsDegradedDirections

func IsDegradedDirections(resp *DirectionsResponse) bool

IsDegradedDirections reports whether a /v1/directions response used the degraded straight-line fallback rather than road-network routing.

func NewAutocompletePlacesRequest

func NewAutocompletePlacesRequest(server string, params *AutocompletePlacesParams) (*http.Request, error)

NewAutocompletePlacesRequest constructs an http.Request for the AutocompletePlaces method

func NewCreateSessionRequest

func NewCreateSessionRequest(server string, params *CreateSessionParams, body CreateSessionJSONRequestBody) (*http.Request, error)

NewCreateSessionRequest calls the generic CreateSession builder with application/json body

func NewCreateSessionRequestWithBody

func NewCreateSessionRequestWithBody(server string, params *CreateSessionParams, contentType string, body io.Reader) (*http.Request, error)

NewCreateSessionRequestWithBody constructs an http.Request for the CreateSession method, with any body, and a specified content type

func NewCreateSubscriptionRequest

func NewCreateSubscriptionRequest(server string, body CreateSubscriptionJSONRequestBody) (*http.Request, error)

NewCreateSubscriptionRequest calls the generic CreateSubscription builder with application/json body

func NewCreateSubscriptionRequestWithBody

func NewCreateSubscriptionRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)

NewCreateSubscriptionRequestWithBody constructs an http.Request for the CreateSubscription method, with any body, and a specified content type

func NewCreateWebhookRequest

func NewCreateWebhookRequest(server string, body CreateWebhookJSONRequestBody) (*http.Request, error)

NewCreateWebhookRequest calls the generic CreateWebhook builder with application/json body

func NewCreateWebhookRequestWithBody

func NewCreateWebhookRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)

NewCreateWebhookRequestWithBody constructs an http.Request for the CreateWebhook method, with any body, and a specified content type

func NewDeleteSubscriptionRequest

func NewDeleteSubscriptionRequest(server string, subscriptionId openapi_types.UUID) (*http.Request, error)

NewDeleteSubscriptionRequest constructs an http.Request for the DeleteSubscription method

func NewDeleteWebhookRequest

func NewDeleteWebhookRequest(server string, endpointId openapi_types.UUID) (*http.Request, error)

NewDeleteWebhookRequest constructs an http.Request for the DeleteWebhook method

func NewDirectionsRequest

func NewDirectionsRequest(server string, params *DirectionsParams, body DirectionsJSONRequestBody) (*http.Request, error)

NewDirectionsRequest calls the generic Directions builder with application/json body

func NewDirectionsRequestWithBody

func NewDirectionsRequestWithBody(server string, params *DirectionsParams, contentType string, body io.Reader) (*http.Request, error)

NewDirectionsRequestWithBody constructs an http.Request for the Directions method, with any body, and a specified content type

func NewDistanceMatrixRequest

func NewDistanceMatrixRequest(server string, params *DistanceMatrixParams, body DistanceMatrixJSONRequestBody) (*http.Request, error)

NewDistanceMatrixRequest calls the generic DistanceMatrix builder with application/json body

func NewDistanceMatrixRequestWithBody

func NewDistanceMatrixRequestWithBody(server string, params *DistanceMatrixParams, contentType string, body io.Reader) (*http.Request, error)

NewDistanceMatrixRequestWithBody constructs an http.Request for the DistanceMatrix method, with any body, and a specified content type

func NewEndSessionRequest

func NewEndSessionRequest(server string, sessionId openapi_types.UUID, params *EndSessionParams) (*http.Request, error)

NewEndSessionRequest constructs an http.Request for the EndSession method

func NewForwardGeocodeRequest

func NewForwardGeocodeRequest(server string, params *ForwardGeocodeParams) (*http.Request, error)

NewForwardGeocodeRequest constructs an http.Request for the ForwardGeocode method

func NewGetHistoryRequest

func NewGetHistoryRequest(server string, sessionId openapi_types.UUID, params *GetHistoryParams) (*http.Request, error)

NewGetHistoryRequest constructs an http.Request for the GetHistory method

func NewGetPlaceRequest

func NewGetPlaceRequest(server string, placeId string, params *GetPlaceParams) (*http.Request, error)

NewGetPlaceRequest constructs an http.Request for the GetPlace method

func NewGetSessionRequest

func NewGetSessionRequest(server string, sessionId openapi_types.UUID) (*http.Request, error)

NewGetSessionRequest constructs an http.Request for the GetSession method

func NewGetStateRequest

func NewGetStateRequest(server string, sessionId openapi_types.UUID) (*http.Request, error)

NewGetStateRequest constructs an http.Request for the GetState method

func NewGetStyleRequest

func NewGetStyleRequest(server string, params *GetStyleParams) (*http.Request, error)

NewGetStyleRequest constructs an http.Request for the GetStyle method

func NewGetTileRequest

func NewGetTileRequest(server string, source string, z string, x string, y string, params *GetTileParams) (*http.Request, error)

NewGetTileRequest constructs an http.Request for the GetTile method

func NewGetWebhookRequest

func NewGetWebhookRequest(server string, endpointId openapi_types.UUID) (*http.Request, error)

NewGetWebhookRequest constructs an http.Request for the GetWebhook method

func NewHealthLiveRequest

func NewHealthLiveRequest(server string) (*http.Request, error)

NewHealthLiveRequest constructs an http.Request for the HealthLive method

func NewHealthReadyRequest

func NewHealthReadyRequest(server string) (*http.Request, error)

NewHealthReadyRequest constructs an http.Request for the HealthReady method

func NewIssueIngestTokenRequest

func NewIssueIngestTokenRequest(server string, sessionId openapi_types.UUID) (*http.Request, error)

NewIssueIngestTokenRequest constructs an http.Request for the IssueIngestToken method

func NewListClientTokensRequest

func NewListClientTokensRequest(server string, params *ListClientTokensParams) (*http.Request, error)

NewListClientTokensRequest constructs an http.Request for the ListClientTokens method

func NewListSessionsRequest

func NewListSessionsRequest(server string, params *ListSessionsParams) (*http.Request, error)

NewListSessionsRequest constructs an http.Request for the ListSessions method

func NewListSubscriptionsRequest

func NewListSubscriptionsRequest(server string, params *ListSubscriptionsParams) (*http.Request, error)

NewListSubscriptionsRequest constructs an http.Request for the ListSubscriptions method

func NewListWebhookDeliveriesRequest

func NewListWebhookDeliveriesRequest(server string, endpointId openapi_types.UUID, params *ListWebhookDeliveriesParams) (*http.Request, error)

NewListWebhookDeliveriesRequest constructs an http.Request for the ListWebhookDeliveries method

func NewListWebhooksRequest

func NewListWebhooksRequest(server string, params *ListWebhooksParams) (*http.Request, error)

NewListWebhooksRequest constructs an http.Request for the ListWebhooks method

func NewMintClientTokenRequest

func NewMintClientTokenRequest(server string, body MintClientTokenJSONRequestBody) (*http.Request, error)

NewMintClientTokenRequest calls the generic MintClientToken builder with application/json body

func NewMintClientTokenRequestWithBody

func NewMintClientTokenRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)

NewMintClientTokenRequestWithBody constructs an http.Request for the MintClientToken method, with any body, and a specified content type

func NewRetryWebhookDeliveryRequest

func NewRetryWebhookDeliveryRequest(server string, endpointId openapi_types.UUID, deliveryId openapi_types.UUID) (*http.Request, error)

NewRetryWebhookDeliveryRequest constructs an http.Request for the RetryWebhookDelivery method

func NewReverseGeocodeRequest

func NewReverseGeocodeRequest(server string, params *ReverseGeocodeParams) (*http.Request, error)

NewReverseGeocodeRequest constructs an http.Request for the ReverseGeocode method

func NewRevokeClientTokenRequest

func NewRevokeClientTokenRequest(server string, tokenId openapi_types.UUID) (*http.Request, error)

NewRevokeClientTokenRequest constructs an http.Request for the RevokeClientToken method

func NewSearchPlacesRequest

func NewSearchPlacesRequest(server string, params *SearchPlacesParams) (*http.Request, error)

NewSearchPlacesRequest constructs an http.Request for the SearchPlaces method

func NewSendEventRequest

func NewSendEventRequest(server string, body SendEventJSONRequestBody) (*http.Request, error)

NewSendEventRequest calls the generic SendEvent builder with application/json body

func NewSendEventRequestWithBody

func NewSendEventRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)

NewSendEventRequestWithBody constructs an http.Request for the SendEvent method, with any body, and a specified content type

func NewSendFleetBatchRequest

func NewSendFleetBatchRequest(server string, body SendFleetBatchJSONRequestBody) (*http.Request, error)

NewSendFleetBatchRequest calls the generic SendFleetBatch builder with application/json body

func NewSendFleetBatchRequestWithBody

func NewSendFleetBatchRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)

NewSendFleetBatchRequestWithBody constructs an http.Request for the SendFleetBatch method, with any body, and a specified content type

func NewSendLocationBatchRequest

func NewSendLocationBatchRequest(server string, sessionId openapi_types.UUID, body SendLocationBatchJSONRequestBody) (*http.Request, error)

NewSendLocationBatchRequest calls the generic SendLocationBatch builder with application/json body

func NewSendLocationBatchRequestWithBody

func NewSendLocationBatchRequestWithBody(server string, sessionId openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error)

NewSendLocationBatchRequestWithBody constructs an http.Request for the SendLocationBatch method, with any body, and a specified content type

func NewSendLocationBatchWithIngestCredentialRequest

func NewSendLocationBatchWithIngestCredentialRequest(server string, sessionId openapi_types.UUID, params *SendLocationBatchWithIngestCredentialParams, body SendLocationBatchWithIngestCredentialJSONRequestBody) (*http.Request, error)

NewSendLocationBatchWithIngestCredentialRequest calls the generic SendLocationBatchWithIngestCredential builder with application/json body

func NewSendLocationBatchWithIngestCredentialRequestWithBody

func NewSendLocationBatchWithIngestCredentialRequestWithBody(server string, sessionId openapi_types.UUID, params *SendLocationBatchWithIngestCredentialParams, contentType string, body io.Reader) (*http.Request, error)

NewSendLocationBatchWithIngestCredentialRequestWithBody constructs an http.Request for the SendLocationBatchWithIngestCredential method, with any body, and a specified content type

func NewSendLocationRequest

func NewSendLocationRequest(server string, sessionId openapi_types.UUID, body SendLocationJSONRequestBody) (*http.Request, error)

NewSendLocationRequest calls the generic SendLocation builder with application/json body

func NewSendLocationRequestWithBody

func NewSendLocationRequestWithBody(server string, sessionId openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error)

NewSendLocationRequestWithBody constructs an http.Request for the SendLocation method, with any body, and a specified content type

func NewSendLocationWithIngestCredentialRequest

func NewSendLocationWithIngestCredentialRequest(server string, sessionId openapi_types.UUID, params *SendLocationWithIngestCredentialParams, body SendLocationWithIngestCredentialJSONRequestBody) (*http.Request, error)

NewSendLocationWithIngestCredentialRequest calls the generic SendLocationWithIngestCredential builder with application/json body

func NewSendLocationWithIngestCredentialRequestWithBody

func NewSendLocationWithIngestCredentialRequestWithBody(server string, sessionId openapi_types.UUID, params *SendLocationWithIngestCredentialParams, contentType string, body io.Reader) (*http.Request, error)

NewSendLocationWithIngestCredentialRequestWithBody constructs an http.Request for the SendLocationWithIngestCredential method, with any body, and a specified content type

func NewStreamSessionRequest

func NewStreamSessionRequest(server string, sessionId openapi_types.UUID) (*http.Request, error)

NewStreamSessionRequest constructs an http.Request for the StreamSession method

func NewUpdateWebhookRequest

func NewUpdateWebhookRequest(server string, endpointId openapi_types.UUID, body UpdateWebhookJSONRequestBody) (*http.Request, error)

NewUpdateWebhookRequest calls the generic UpdateWebhook builder with application/json body

func NewUpdateWebhookRequestWithBody

func NewUpdateWebhookRequestWithBody(server string, endpointId openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error)

NewUpdateWebhookRequestWithBody constructs an http.Request for the UpdateWebhook method, with any body, and a specified content type

func NewValidateAddressRequest

func NewValidateAddressRequest(server string, params *ValidateAddressParams, body ValidateAddressJSONRequestBody) (*http.Request, error)

NewValidateAddressRequest calls the generic ValidateAddress builder with application/json body

func NewValidateAddressRequestWithBody

func NewValidateAddressRequestWithBody(server string, params *ValidateAddressParams, contentType string, body io.Reader) (*http.Request, error)

NewValidateAddressRequestWithBody constructs an http.Request for the ValidateAddress method, with any body, and a specified content type

func Ptr

func Ptr[T any](value T) *T

Ptr returns a pointer to value. Optional request fields are pointers in the generated types, so this keeps call sites readable:

&bardiya.CreateSessionJSONRequestBody{SubjectType: bardiya.Ptr("device")}

func VerifyWebhookSignature

func VerifyWebhookSignature(secret string, timestamp int64, body []byte, signature string) bool

VerifyWebhookSignature checks the X-Bardiya-Webhook-Signature header.

The signed message is "<timestamp>." + the exact bytes received, HMAC-SHA256, encoded as v1=<lowercase hex>, keyed by the endpoint signing secret. Verify over the raw request body, never over a re-serialised object: JSON key order or spacing changes the digest. Check timestamp freshness separately using your replay window (or use VerifyWebhookSignatureWithTolerance). Unsupported versions return false.

func VerifyWebhookSignatureChecked

func VerifyWebhookSignatureChecked(secret string, timestamp int64, body []byte, signature string) (bool, error)

VerifyWebhookSignatureChecked is VerifyWebhookSignature with an explicit error for unsupported signature versions.

func VerifyWebhookSignatureWithTolerance

func VerifyWebhookSignatureWithTolerance(secret string, timestamp int64, body []byte, signature string, tolerance time.Duration, now time.Time) (bool, error)

VerifyWebhookSignatureWithTolerance validates signature and enforces a replay age window against now (pass time.Now() in production).

Types

type APIClient

type APIClient struct {
	// The endpoint of the server conforming to this interface, with scheme,
	// https://api.deepmap.com for example. This can contain a path relative
	// to the server, such as https://api.deepmap.com/dev-test, and all the
	// paths in the swagger spec will be appended to the server.
	Server string

	// Doer for performing requests, typically a *http.Client with any
	// customized settings, such as certificate chains.
	Client HttpRequestDoer

	// A list of callbacks for modifying requests which are generated before sending over
	// the network.
	RequestEditors []RequestEditorFn
}

APIClient which conforms to the OpenAPI3 specification for this service.

func NewClient

func NewClient(server string, opts ...ClientOption) (*APIClient, error)

Creates a new APIClient, with reasonable defaults

func (*APIClient) AutocompletePlaces

func (c *APIClient) AutocompletePlaces(ctx context.Context, params *AutocompletePlacesParams, reqEditors ...RequestEditorFn) (*http.Response, error)

AutocompletePlaces Public Place Autocomplete

Public autocomplete suggestions.

Corresponds with GET /v1/places/autocomplete (the `AutocompletePlaces` operationId).

func (*APIClient) CreateSession

func (c *APIClient) CreateSession(ctx context.Context, params *CreateSessionParams, body CreateSessionJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

CreateSession Create a tracking session

Creates and activates a generic tracked subject. Requires `tracking:write`. Retry safely with `Idempotency-Key` when supported by the deployment schema.

Authentication: send `Authorization: Bearer bdy_test_<your_key>` or `bdy_live_<your_key>`. Required scopes are listed per operation. Every public response includes `X-Bardiya-Request-Id`; send that value to Bardiya support when debugging.

Takes a body of the `application/json` content type.

Corresponds with POST /v1/tracking/sessions (the `CreateSession` operationId).

func (*APIClient) CreateSessionWithBody

func (c *APIClient) CreateSessionWithBody(ctx context.Context, params *CreateSessionParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

CreateSessionWithBody Create a tracking session

Creates and activates a generic tracked subject. Requires `tracking:write`. Retry safely with `Idempotency-Key` when supported by the deployment schema.

Authentication: send `Authorization: Bearer bdy_test_<your_key>` or `bdy_live_<your_key>`. Required scopes are listed per operation. Every public response includes `X-Bardiya-Request-Id`; send that value to Bardiya support when debugging.

Takes any type of body and a specified content type.

Corresponds with POST /v1/tracking/sessions (the `CreateSession` operationId).

func (*APIClient) CreateSubscription

func (c *APIClient) CreateSubscription(ctx context.Context, body CreateSubscriptionJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

CreateSubscription Create a subject subscription

Registers an opaque consumer's interest in a tracked subject. Idempotent: an existing subscription for the same subscriber and subject returns 200 with the existing record instead of creating a second one.

Takes a body of the `application/json` content type.

Corresponds with POST /v1/tracking/subscriptions (the `CreateSubscription` operationId).

func (*APIClient) CreateSubscriptionWithBody

func (c *APIClient) CreateSubscriptionWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

CreateSubscriptionWithBody Create a subject subscription

Registers an opaque consumer's interest in a tracked subject. Idempotent: an existing subscription for the same subscriber and subject returns 200 with the existing record instead of creating a second one.

Takes any type of body and a specified content type.

Corresponds with POST /v1/tracking/subscriptions (the `CreateSubscription` operationId).

func (*APIClient) CreateWebhook

func (c *APIClient) CreateWebhook(ctx context.Context, body CreateWebhookJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

CreateWebhook Create a webhook endpoint

Creates an active signed endpoint. Requires `webhooks:manage`; the raw `signing_secret` is returned only in this response.

Authentication: send `Authorization: Bearer bdy_test_<your_key>` or `bdy_live_<your_key>`. Required scopes are listed per operation. Every public response includes `X-Bardiya-Request-Id`; send that value to Bardiya support when debugging.

Takes a body of the `application/json` content type.

Corresponds with POST /v1/webhooks (the `CreateWebhook` operationId).

func (*APIClient) CreateWebhookWithBody

func (c *APIClient) CreateWebhookWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

CreateWebhookWithBody Create a webhook endpoint

Creates an active signed endpoint. Requires `webhooks:manage`; the raw `signing_secret` is returned only in this response.

Authentication: send `Authorization: Bearer bdy_test_<your_key>` or `bdy_live_<your_key>`. Required scopes are listed per operation. Every public response includes `X-Bardiya-Request-Id`; send that value to Bardiya support when debugging.

Takes any type of body and a specified content type.

Corresponds with POST /v1/webhooks (the `CreateWebhook` operationId).

func (*APIClient) DeleteSubscription

func (c *APIClient) DeleteSubscription(ctx context.Context, subscriptionId openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error)

DeleteSubscription Delete a subscription

Deletes one subscription. The server returns 204 with no body.

Corresponds with DELETE /v1/tracking/subscriptions/{subscription_id} (the `DeleteSubscription` operationId).

func (*APIClient) DeleteWebhook

func (c *APIClient) DeleteWebhook(ctx context.Context, endpointId openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error)

DeleteWebhook Disable a webhook endpoint

Disables the endpoint without deleting delivery evidence. Requires `webhooks:manage`.

Authentication: send `Authorization: Bearer bdy_test_<your_key>` or `bdy_live_<your_key>`. Required scopes are listed per operation. Every public response includes `X-Bardiya-Request-Id`; send that value to Bardiya support when debugging.

Corresponds with DELETE /v1/webhooks/{endpoint_id} (the `DeleteWebhook` operationId).

func (*APIClient) Directions

func (c *APIClient) Directions(ctx context.Context, params *DirectionsParams, body DirectionsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

Directions Public Directions

Public Directions API backed by OSRM with an explicit degraded fallback.

When OSRM is unreachable the fallback returns a haversine straight-line estimate over road-snapped sample points and marks it “degraded=true, road_network=false“; it never claims a road route.

Takes a body of the `application/json` content type.

Corresponds with POST /v1/directions (the `Directions` operationId).

func (*APIClient) DirectionsWithBody

func (c *APIClient) DirectionsWithBody(ctx context.Context, params *DirectionsParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

DirectionsWithBody Public Directions

Public Directions API backed by OSRM with an explicit degraded fallback.

When OSRM is unreachable the fallback returns a haversine straight-line estimate over road-snapped sample points and marks it “degraded=true, road_network=false“; it never claims a road route.

Takes any type of body and a specified content type.

Corresponds with POST /v1/directions (the `Directions` operationId).

func (*APIClient) DistanceMatrix

func (c *APIClient) DistanceMatrix(ctx context.Context, params *DistanceMatrixParams, body DistanceMatrixJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

DistanceMatrix Public Distance Matrix

Public Distance Matrix API (OSRM table, one normalized schema).

“distances_meters“ and “durations_seconds“ are always “origin_count“ × “destination_count“. An unreachable pair is an explicit “null“ cell instead of a shortened array; “per_cell_errors“ distinguishes “no_route“ (no duration) from “distance_unavailable“ (OSRM returned a duration but no distance annotation).

Takes a body of the `application/json` content type.

Corresponds with POST /v1/distance-matrix (the `DistanceMatrix` operationId).

func (*APIClient) DistanceMatrixWithBody

func (c *APIClient) DistanceMatrixWithBody(ctx context.Context, params *DistanceMatrixParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

DistanceMatrixWithBody Public Distance Matrix

Public Distance Matrix API (OSRM table, one normalized schema).

“distances_meters“ and “durations_seconds“ are always “origin_count“ × “destination_count“. An unreachable pair is an explicit “null“ cell instead of a shortened array; “per_cell_errors“ distinguishes “no_route“ (no duration) from “distance_unavailable“ (OSRM returned a duration but no distance annotation).

Takes any type of body and a specified content type.

Corresponds with POST /v1/distance-matrix (the `DistanceMatrix` operationId).

func (*APIClient) EndSession

func (c *APIClient) EndSession(ctx context.Context, sessionId openapi_types.UUID, params *EndSessionParams, reqEditors ...RequestEditorFn) (*http.Response, error)

EndSession End a tracking session

Ends an active or created session. The operation is idempotent; use `Idempotency-Key` for safe client retries. Requires `tracking:write`.

Authentication: send `Authorization: Bearer bdy_test_<your_key>` or `bdy_live_<your_key>`. Required scopes are listed per operation. Every public response includes `X-Bardiya-Request-Id`; send that value to Bardiya support when debugging.

Corresponds with POST /v1/tracking/sessions/{session_id}/end (the `EndSession` operationId).

func (*APIClient) ForwardGeocode

func (c *APIClient) ForwardGeocode(ctx context.Context, params *ForwardGeocodeParams, reqEditors ...RequestEditorFn) (*http.Response, error)

ForwardGeocode Public Forward Geocode

Public forward geocoding: free-text address -> coordinates.

Corresponds with GET /v1/geocode (the `ForwardGeocode` operationId).

func (*APIClient) GetHistory

func (c *APIClient) GetHistory(ctx context.Context, sessionId openapi_types.UUID, params *GetHistoryParams, reqEditors ...RequestEditorFn) (*http.Response, error)

GetHistory Get durable tracking history

Returns bounded keyset-paginated location history for recovery and playback. Requires `tracking:read`. History older than the hot retention window is served from the verified immutable archive once source reclamation is active; a page is never partially returned. Archive failures use `history_archive_unavailable` (503), `history_archive_incomplete` (503), `history_archive_scan_limit` (503) or `history_archive_corrupt` (502); retry only the first three.

Authentication: send `Authorization: Bearer bdy_test_<your_key>` or `bdy_live_<your_key>`. Required scopes are listed per operation. Every public response includes `X-Bardiya-Request-Id`; send that value to Bardiya support when debugging.

Corresponds with GET /v1/tracking/sessions/{session_id}/history (the `GetHistory` operationId).

func (*APIClient) GetPlace

func (c *APIClient) GetPlace(ctx context.Context, placeId string, params *GetPlaceParams, reqEditors ...RequestEditorFn) (*http.Response, error)

GetPlace Public Place Details

Public place details from the Overture-derived places data.

Corresponds with GET /v1/places/{place_id} (the `GetPlace` operationId).

func (*APIClient) GetSession

func (c *APIClient) GetSession(ctx context.Context, sessionId openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error)

GetSession Get a tracking session

Returns one tenant-visible session. Requires `tracking:read`.

Authentication: send `Authorization: Bearer bdy_test_<your_key>` or `bdy_live_<your_key>`. Required scopes are listed per operation. Every public response includes `X-Bardiya-Request-Id`; send that value to Bardiya support when debugging.

Corresponds with GET /v1/tracking/sessions/{session_id} (the `GetSession` operationId).

func (*APIClient) GetState

func (c *APIClient) GetState(ctx context.Context, sessionId openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error)

GetState Get current tracking state

Reads the latest state and derived `online`, `stale`, or `offline` freshness. Requires `tracking:read`.

Authentication: send `Authorization: Bearer bdy_test_<your_key>` or `bdy_live_<your_key>`. Required scopes are listed per operation. Every public response includes `X-Bardiya-Request-Id`; send that value to Bardiya support when debugging.

Corresponds with GET /v1/tracking/sessions/{session_id}/state (the `GetState` operationId).

func (*APIClient) GetStyle

func (c *APIClient) GetStyle(ctx context.Context, params *GetStyleParams, reqEditors ...RequestEditorFn) (*http.Response, error)

GetStyle Public Style

MapLibre style configured for Bardiya tiles. Accepts `?api_key=`.

Corresponds with GET /v1/style.json (the `GetStyle` operationId).

func (*APIClient) GetTile

func (c *APIClient) GetTile(ctx context.Context, source string, z string, x string, y string, params *GetTileParams, reqEditors ...RequestEditorFn) (*http.Response, error)

GetTile Public Tile

Vector tile bytes. Empty tiles return 204. Accepts `?api_key=`.

Corresponds with GET /v1/tiles/{source}/{z}/{x}/{y} (the `GetTile` operationId).

func (*APIClient) GetWebhook

func (c *APIClient) GetWebhook(ctx context.Context, endpointId openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error)

GetWebhook Get a webhook endpoint

Returns endpoint configuration without its signing secret. Requires `webhooks:manage`.

Authentication: send `Authorization: Bearer bdy_test_<your_key>` or `bdy_live_<your_key>`. Required scopes are listed per operation. Every public response includes `X-Bardiya-Request-Id`; send that value to Bardiya support when debugging.

Corresponds with GET /v1/webhooks/{endpoint_id} (the `GetWebhook` operationId).

func (*APIClient) HealthLive

func (c *APIClient) HealthLive(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

HealthLive Public Health Live

Liveness probe. No credential required.

Corresponds with GET /v1/health/live (the `HealthLive` operationId).

func (*APIClient) HealthReady

func (c *APIClient) HealthReady(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

HealthReady Public Health Ready

Readiness with product availability. No credential required.

Corresponds with GET /v1/health/ready (the `HealthReady` operationId).

func (*APIClient) IssueIngestToken

func (c *APIClient) IssueIngestToken(ctx context.Context, sessionId openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error)

IssueIngestToken Issue a session-scoped device ingest token

PROD-04 producer flow: exchanges an organization API key (`tracking:write`) for a session-scoped ingest credential intended for a mobile PRODUCER device. The plaintext token is returned exactly once; it authorizes ingest to THIS session only and grants no read, management, or cross-session capability. Delegates to the existing credential service.

Authentication: send `Authorization: Bearer bdy_test_<your_key>` or `bdy_live_<your_key>`. Required scopes are listed per operation. Every public response includes `X-Bardiya-Request-Id`; send that value to Bardiya support when debugging.

Corresponds with POST /v1/tracking/sessions/{session_id}/ingest-token (the `IssueIngestToken` operationId).

func (*APIClient) ListClientTokens

func (c *APIClient) ListClientTokens(ctx context.Context, params *ListClientTokensParams, reqEditors ...RequestEditorFn) (*http.Response, error)

ListClientTokens List client tokens

Bounded metadata list; never includes token material or digests.

Authentication: send `Authorization: Bearer bdy_test_<your_key>` or `bdy_live_<your_key>`. Required scopes are listed per operation. Every public response includes `X-Bardiya-Request-Id`; send that value to Bardiya support when debugging.

Corresponds with GET /v1/tracking/client-tokens (the `ListClientTokens` operationId).

func (*APIClient) ListSessions

func (c *APIClient) ListSessions(ctx context.Context, params *ListSessionsParams, reqEditors ...RequestEditorFn) (*http.Response, error)

ListSessions List tracking sessions

Returns a bounded cursor-paginated session list. Requires `tracking:read`.

Authentication: send `Authorization: Bearer bdy_test_<your_key>` or `bdy_live_<your_key>`. Required scopes are listed per operation. Every public response includes `X-Bardiya-Request-Id`; send that value to Bardiya support when debugging.

Corresponds with GET /v1/tracking/sessions (the `ListSessions` operationId).

func (*APIClient) ListSubscriptions

func (c *APIClient) ListSubscriptions(ctx context.Context, params *ListSubscriptionsParams, reqEditors ...RequestEditorFn) (*http.Response, error)

ListSubscriptions List subscriptions

Bounded list for this tenant and environment. Requires `tracking:read`.

Authentication: send `Authorization: Bearer bdy_test_<your_key>` or `bdy_live_<your_key>`. Required scopes are listed per operation. Every public response includes `X-Bardiya-Request-Id`; send that value to Bardiya support when debugging.

Corresponds with GET /v1/tracking/subscriptions (the `ListSubscriptions` operationId).

func (*APIClient) ListWebhookDeliveries

func (c *APIClient) ListWebhookDeliveries(ctx context.Context, endpointId openapi_types.UUID, params *ListWebhookDeliveriesParams, reqEditors ...RequestEditorFn) (*http.Response, error)

ListWebhookDeliveries List webhook delivery attempts

Returns bounded delivery logs including status, attempts, response status, excerpts, and errors. Requires `webhooks:manage`.

Authentication: send `Authorization: Bearer bdy_test_<your_key>` or `bdy_live_<your_key>`. Required scopes are listed per operation. Every public response includes `X-Bardiya-Request-Id`; send that value to Bardiya support when debugging.

Corresponds with GET /v1/webhooks/{endpoint_id}/deliveries (the `ListWebhookDeliveries` operationId).

func (*APIClient) ListWebhooks

func (c *APIClient) ListWebhooks(ctx context.Context, params *ListWebhooksParams, reqEditors ...RequestEditorFn) (*http.Response, error)

ListWebhooks List webhook endpoints

Lists endpoints for the API-key environment without returning signing secrets. Requires `webhooks:manage`.

Authentication: send `Authorization: Bearer bdy_test_<your_key>` or `bdy_live_<your_key>`. Required scopes are listed per operation. Every public response includes `X-Bardiya-Request-Id`; send that value to Bardiya support when debugging.

Corresponds with GET /v1/webhooks (the `ListWebhooks` operationId).

func (*APIClient) MintClientToken

func (c *APIClient) MintClientToken(ctx context.Context, body MintClientTokenJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

MintClientToken Mint a short-lived client-access token

Server-to-server only. Exchanges an organization API key (scope `client_tokens:mint`) for a short-lived opaque `bdy_cli_*` bearer authorizing READ-ONLY realtime on an explicit, immutable subject set. The plaintext token is returned exactly once.

Authentication: send `Authorization: Bearer bdy_test_<your_key>` or `bdy_live_<your_key>`. Required scopes are listed per operation. Every public response includes `X-Bardiya-Request-Id`; send that value to Bardiya support when debugging.

Takes a body of the `application/json` content type.

Corresponds with POST /v1/tracking/client-tokens (the `MintClientToken` operationId).

func (*APIClient) MintClientTokenWithBody

func (c *APIClient) MintClientTokenWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

MintClientTokenWithBody Mint a short-lived client-access token

Server-to-server only. Exchanges an organization API key (scope `client_tokens:mint`) for a short-lived opaque `bdy_cli_*` bearer authorizing READ-ONLY realtime on an explicit, immutable subject set. The plaintext token is returned exactly once.

Authentication: send `Authorization: Bearer bdy_test_<your_key>` or `bdy_live_<your_key>`. Required scopes are listed per operation. Every public response includes `X-Bardiya-Request-Id`; send that value to Bardiya support when debugging.

Takes any type of body and a specified content type.

Corresponds with POST /v1/tracking/client-tokens (the `MintClientToken` operationId).

func (*APIClient) RetryWebhookDelivery

func (c *APIClient) RetryWebhookDelivery(ctx context.Context, endpointId openapi_types.UUID, deliveryId openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error)

RetryWebhookDelivery Retry a webhook delivery

Creates a new pending delivery linked to a failed, dead, or cancelled delivery. Requires `webhooks:manage`.

Authentication: send `Authorization: Bearer bdy_test_<your_key>` or `bdy_live_<your_key>`. Required scopes are listed per operation. Every public response includes `X-Bardiya-Request-Id`; send that value to Bardiya support when debugging.

Corresponds with POST /v1/webhooks/{endpoint_id}/deliveries/{delivery_id}/retry (the `RetryWebhookDelivery` operationId).

func (*APIClient) ReverseGeocode

func (c *APIClient) ReverseGeocode(ctx context.Context, params *ReverseGeocodeParams, reqEditors ...RequestEditorFn) (*http.Response, error)

ReverseGeocode Public Reverse Geocode

Public reverse geocoding: coordinates -> Egyptian administrative hierarchy.

Corresponds with GET /v1/geocode/reverse (the `ReverseGeocode` operationId).

func (*APIClient) RevokeClientToken

func (c *APIClient) RevokeClientToken(ctx context.Context, tokenId openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error)

RevokeClientToken Revoke a client token

Soft-revokes immediately for new connections; active sockets revalidate on a bounded interval.

Authentication: send `Authorization: Bearer bdy_test_<your_key>` or `bdy_live_<your_key>`. Required scopes are listed per operation. Every public response includes `X-Bardiya-Request-Id`; send that value to Bardiya support when debugging.

Corresponds with DELETE /v1/tracking/client-tokens/{token_id} (the `RevokeClientToken` operationId).

func (*APIClient) SearchPlaces

func (c *APIClient) SearchPlaces(ctx context.Context, params *SearchPlacesParams, reqEditors ...RequestEditorFn) (*http.Response, error)

SearchPlaces Public Place Search

Public place and address search (Arabic and English).

Corresponds with GET /v1/places/search (the `SearchPlaces` operationId).

func (*APIClient) SendEvent

func (c *APIClient) SendEvent(ctx context.Context, body SendEventJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

SendEvent Send one telemetry event by subject or session

Ingests one telemetry event targeted at a tracked subject (subject_type + subject_ref) or an explicit session_id. Exactly one targeting mode per request. `client_event_id` is the idempotency key for retries. Response semantics are identical to `POST /v1/tracking/sessions/{id}/locations`. Requires `tracking:write`.

Authentication: send `Authorization: Bearer bdy_test_<your_key>` or `bdy_live_<your_key>`. Required scopes are listed per operation. Every public response includes `X-Bardiya-Request-Id`; send that value to Bardiya support when debugging.

Takes a body of the `application/json` content type.

Corresponds with POST /v1/tracking/events (the `SendEvent` operationId).

func (*APIClient) SendEventWithBody

func (c *APIClient) SendEventWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

SendEventWithBody Send one telemetry event by subject or session

Ingests one telemetry event targeted at a tracked subject (subject_type + subject_ref) or an explicit session_id. Exactly one targeting mode per request. `client_event_id` is the idempotency key for retries. Response semantics are identical to `POST /v1/tracking/sessions/{id}/locations`. Requires `tracking:write`.

Authentication: send `Authorization: Bearer bdy_test_<your_key>` or `bdy_live_<your_key>`. Required scopes are listed per operation. Every public response includes `X-Bardiya-Request-Id`; send that value to Bardiya support when debugging.

Takes any type of body and a specified content type.

Corresponds with POST /v1/tracking/events (the `SendEvent` operationId).

func (*APIClient) SendFleetBatch

func (c *APIClient) SendFleetBatch(ctx context.Context, body SendFleetBatchJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

SendFleetBatch Send one bounded, tenant-scoped fleet batch

Ingests 1-100 telemetry events for one or more sessions owned by the authenticated tenant/key in one request. Each event keeps its own `session_id` and `client_event_id`. Quota admission is one atomic micro-transaction on the dedicated quota pool; durable storage of all admitted events is one database transaction. A quota/revocation rejection debits nothing. A storage failure rolls back every event row, but an already-committed quota admission is a rate-limit event, not a billing charge. Per-event validation/ownership failures are returned in `results` while valid sibling events commit (partial per-event success, atomic storage failure). Requires `tracking:write`.

Authentication: send `Authorization: Bearer bdy_test_<your_key>` or `bdy_live_<your_key>`. Required scopes are listed per operation. Every public response includes `X-Bardiya-Request-Id`; send that value to Bardiya support when debugging.

Takes a body of the `application/json` content type.

Corresponds with POST /v1/tracking/locations/batch (the `SendFleetBatch` operationId).

func (*APIClient) SendFleetBatchWithBody

func (c *APIClient) SendFleetBatchWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

SendFleetBatchWithBody Send one bounded, tenant-scoped fleet batch

Ingests 1-100 telemetry events for one or more sessions owned by the authenticated tenant/key in one request. Each event keeps its own `session_id` and `client_event_id`. Quota admission is one atomic micro-transaction on the dedicated quota pool; durable storage of all admitted events is one database transaction. A quota/revocation rejection debits nothing. A storage failure rolls back every event row, but an already-committed quota admission is a rate-limit event, not a billing charge. Per-event validation/ownership failures are returned in `results` while valid sibling events commit (partial per-event success, atomic storage failure). Requires `tracking:write`.

Authentication: send `Authorization: Bearer bdy_test_<your_key>` or `bdy_live_<your_key>`. Required scopes are listed per operation. Every public response includes `X-Bardiya-Request-Id`; send that value to Bardiya support when debugging.

Takes any type of body and a specified content type.

Corresponds with POST /v1/tracking/locations/batch (the `SendFleetBatch` operationId).

func (*APIClient) SendLocation

func (c *APIClient) SendLocation(ctx context.Context, sessionId openapi_types.UUID, body SendLocationJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

SendLocation Send one location or heartbeat

Ingests one telemetry event. `client_event_id` is the idempotency key for retries. Requires `tracking:write`.

Authentication: send `Authorization: Bearer bdy_test_<your_key>` or `bdy_live_<your_key>`. Required scopes are listed per operation. Every public response includes `X-Bardiya-Request-Id`; send that value to Bardiya support when debugging.

Takes a body of the `application/json` content type.

Corresponds with POST /v1/tracking/sessions/{session_id}/locations (the `SendLocation` operationId).

func (*APIClient) SendLocationBatch

func (c *APIClient) SendLocationBatch(ctx context.Context, sessionId openapi_types.UUID, body SendLocationBatchJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

SendLocationBatch Send a bounded location batch

Ingests 1أ¢â‚¬â€œ100 telemetry events in one bounded request. Each event keeps its own `client_event_id`. Requires `tracking:write`.

Authentication: send `Authorization: Bearer bdy_test_<your_key>` or `bdy_live_<your_key>`. Required scopes are listed per operation. Every public response includes `X-Bardiya-Request-Id`; send that value to Bardiya support when debugging.

Takes a body of the `application/json` content type.

Corresponds with POST /v1/tracking/sessions/{session_id}/locations/batch (the `SendLocationBatch` operationId).

func (*APIClient) SendLocationBatchWithBody

func (c *APIClient) SendLocationBatchWithBody(ctx context.Context, sessionId openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

SendLocationBatchWithBody Send a bounded location batch

Ingests 1أ¢â‚¬â€œ100 telemetry events in one bounded request. Each event keeps its own `client_event_id`. Requires `tracking:write`.

Authentication: send `Authorization: Bearer bdy_test_<your_key>` or `bdy_live_<your_key>`. Required scopes are listed per operation. Every public response includes `X-Bardiya-Request-Id`; send that value to Bardiya support when debugging.

Takes any type of body and a specified content type.

Corresponds with POST /v1/tracking/sessions/{session_id}/locations/batch (the `SendLocationBatch` operationId).

func (*APIClient) SendLocationBatchWithIngestCredential

SendLocationBatchWithIngestCredential Handle Ingest Batch

Ingest a bounded batch with a session-scoped credential instead of an API key.

Takes a body of the `application/json` content type.

Corresponds with POST /api/v1/tracking/sessions/{session_id}/locations/batch (the `SendLocationBatchWithIngestCredential` operationId).

func (*APIClient) SendLocationBatchWithIngestCredentialWithBody

func (c *APIClient) SendLocationBatchWithIngestCredentialWithBody(ctx context.Context, sessionId openapi_types.UUID, params *SendLocationBatchWithIngestCredentialParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

SendLocationBatchWithIngestCredentialWithBody Handle Ingest Batch

Ingest a bounded batch with a session-scoped credential instead of an API key.

Takes any type of body and a specified content type.

Corresponds with POST /api/v1/tracking/sessions/{session_id}/locations/batch (the `SendLocationBatchWithIngestCredential` operationId).

func (*APIClient) SendLocationWithBody

func (c *APIClient) SendLocationWithBody(ctx context.Context, sessionId openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

SendLocationWithBody Send one location or heartbeat

Ingests one telemetry event. `client_event_id` is the idempotency key for retries. Requires `tracking:write`.

Authentication: send `Authorization: Bearer bdy_test_<your_key>` or `bdy_live_<your_key>`. Required scopes are listed per operation. Every public response includes `X-Bardiya-Request-Id`; send that value to Bardiya support when debugging.

Takes any type of body and a specified content type.

Corresponds with POST /v1/tracking/sessions/{session_id}/locations (the `SendLocation` operationId).

func (*APIClient) SendLocationWithIngestCredential

func (c *APIClient) SendLocationWithIngestCredential(ctx context.Context, sessionId openapi_types.UUID, params *SendLocationWithIngestCredentialParams, body SendLocationWithIngestCredentialJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

SendLocationWithIngestCredential Handle Ingest Location

Ingest one event with a session-scoped credential instead of an API key.

Takes a body of the `application/json` content type.

Corresponds with POST /api/v1/tracking/sessions/{session_id}/locations (the `SendLocationWithIngestCredential` operationId).

func (*APIClient) SendLocationWithIngestCredentialWithBody

func (c *APIClient) SendLocationWithIngestCredentialWithBody(ctx context.Context, sessionId openapi_types.UUID, params *SendLocationWithIngestCredentialParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

SendLocationWithIngestCredentialWithBody Handle Ingest Location

Ingest one event with a session-scoped credential instead of an API key.

Takes any type of body and a specified content type.

Corresponds with POST /api/v1/tracking/sessions/{session_id}/locations (the `SendLocationWithIngestCredential` operationId).

func (*APIClient) StreamSession

func (c *APIClient) StreamSession(ctx context.Context, sessionId openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error)

StreamSession Stream a session over authenticated SSE

Server-sent events for one session. Frames are `event:` + `data:` pairs: `snapshot`, `location`, `heartbeat`, `limit` and `closed`. Each `location` frame carries an `id` of the form `<session_id>:<state_version>`; resume is not supported, so reconnect and re-read the snapshot instead.

Corresponds with GET /v1/tracking/sessions/{session_id}/stream (the `StreamSession` operationId).

func (*APIClient) UpdateWebhook

func (c *APIClient) UpdateWebhook(ctx context.Context, endpointId openapi_types.UUID, body UpdateWebhookJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

UpdateWebhook Update a webhook endpoint

Updates the URL, subscriptions, or active/disabled status. Requires `webhooks:manage`.

Authentication: send `Authorization: Bearer bdy_test_<your_key>` or `bdy_live_<your_key>`. Required scopes are listed per operation. Every public response includes `X-Bardiya-Request-Id`; send that value to Bardiya support when debugging.

Takes a body of the `application/json` content type.

Corresponds with PATCH /v1/webhooks/{endpoint_id} (the `UpdateWebhook` operationId).

func (*APIClient) UpdateWebhookWithBody

func (c *APIClient) UpdateWebhookWithBody(ctx context.Context, endpointId openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

UpdateWebhookWithBody Update a webhook endpoint

Updates the URL, subscriptions, or active/disabled status. Requires `webhooks:manage`.

Authentication: send `Authorization: Bearer bdy_test_<your_key>` or `bdy_live_<your_key>`. Required scopes are listed per operation. Every public response includes `X-Bardiya-Request-Id`; send that value to Bardiya support when debugging.

Takes any type of body and a specified content type.

Corresponds with PATCH /v1/webhooks/{endpoint_id} (the `UpdateWebhook` operationId).

func (*APIClient) ValidateAddress

func (c *APIClient) ValidateAddress(ctx context.Context, params *ValidateAddressParams, body ValidateAddressJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

ValidateAddress Public Validate Address

Public Egyptian address validation (street + landmark).

Takes a body of the `application/json` content type.

Corresponds with POST /v1/validate-address (the `ValidateAddress` operationId).

func (*APIClient) ValidateAddressWithBody

func (c *APIClient) ValidateAddressWithBody(ctx context.Context, params *ValidateAddressParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

ValidateAddressWithBody Public Validate Address

Public Egyptian address validation (street + landmark).

Takes any type of body and a specified content type.

Corresponds with POST /v1/validate-address (the `ValidateAddress` operationId).

type APIError

type APIError struct {
	StatusCode                int
	Code                      string
	Message                   string
	Details                   map[string]any
	RequestID                 string
	RetryAfter                time.Duration
	TerminalSandboxExhaustion bool
	RateLimitLimit            *int
	RateLimitRemaining        *int
	RateLimitResetSeconds     *int
	Body                      []byte
}

APIError is a non-2xx response from Bardiya, or a transport failure. StatusCode is 0 when no response was received.

func AsAPIError

func AsAPIError(err error) (*APIError, bool)

AsAPIError extracts an *APIError from err.

func (*APIError) Error

func (e *APIError) Error() string

func (*APIError) RetryAfterSeconds

func (e *APIError) RetryAfterSeconds() float64

RetryAfter exposes the parsed Retry-After of an error for callers that prefer a value over the duration field.

func (*APIError) Retryable

func (e *APIError) Retryable() bool

Retryable reports whether the same request may succeed later. Terminal Free Sandbox exhaustion (429 + X-Free-Sandbox-Credits-Remaining: 0 without Retry-After) is never retryable.

type AddressComponents

type AddressComponents struct {
	City        *string `json:"city,omitempty"`
	District    *string `json:"district,omitempty"`
	Governorate *string `json:"governorate,omitempty"`
	Landmark    *string `json:"landmark,omitempty"`
	Street      *string `json:"street,omitempty"`
}

AddressComponents defines model for AddressComponents.

type AddressValidationPublicRequest

type AddressValidationPublicRequest struct {
	RawAddress string `json:"raw_address"`
}

AddressValidationPublicRequest defines model for AddressValidationPublicRequest.

type AddressValidationResponse

type AddressValidationResponse struct {
	Components      *AddressComponents      `json:"components,omitempty"`
	ConfidenceScore *float64                `json:"confidence_score,omitempty"`
	Geojson         *map[string]interface{} `json:"geojson,omitempty"`
	Reason          *string                 `json:"reason,omitempty"`
	Validated       bool                    `json:"validated"`
	Validation      *struct {
		ProximityM *float64 `json:"proximity_m,omitempty"`
	} `json:"validation,omitempty"`
}

AddressValidationResponse defines model for AddressValidationResponse.

type AdministrativeArea

type AdministrativeArea struct {
	DistanceM            *int                   `json:"distance_m,omitempty"`
	Name                 *string                `json:"name,omitempty"`
	Subtype              *string                `json:"subtype,omitempty"`
	AdditionalProperties map[string]interface{} `json:"-"`
}

AdministrativeArea One administrative division returned by reverse geocoding.

func (AdministrativeArea) Get

func (a AdministrativeArea) Get(fieldName string) (value interface{}, found bool)

Getter for additional properties for AdministrativeArea. Returns the specified element and whether it was found

func (AdministrativeArea) MarshalJSON

func (a AdministrativeArea) MarshalJSON() ([]byte, error)

Override default JSON handling for AdministrativeArea to handle AdditionalProperties

func (*AdministrativeArea) Set

func (a *AdministrativeArea) Set(fieldName string, value interface{})

Setter for additional properties for AdministrativeArea

func (*AdministrativeArea) UnmarshalJSON

func (a *AdministrativeArea) UnmarshalJSON(b []byte) error

Override default JSON handling for AdministrativeArea to handle AdditionalProperties

type AutocompletePlacesParams

type AutocompletePlacesParams struct {
	Q              string   `form:"q" json:"q"`
	Latitude       *float64 `form:"latitude,omitempty" json:"latitude,omitempty"`
	Longitude      *float64 `form:"longitude,omitempty" json:"longitude,omitempty"`
	RadiusM        *int     `form:"radius_m,omitempty" json:"radius_m,omitempty"`
	Limit          *int     `form:"limit,omitempty" json:"limit,omitempty"`
	Language       *string  `form:"language,omitempty" json:"language,omitempty"`
	IdempotencyKey *string  `json:"Idempotency-Key,omitempty"`
}

AutocompletePlacesParams defines parameters for AutocompletePlaces.

type AutocompletePlacesResult

type AutocompletePlacesResult struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *AutocompleteResponse
	// JSON400 the response for an HTTP 400 `application/json` response
	JSON400 *BardiyaErrorEnvelope
	// JSON401 the response for an HTTP 401 `application/json` response
	JSON401 *BardiyaErrorEnvelope
	// JSON403 the response for an HTTP 403 `application/json` response
	JSON403 *BardiyaErrorEnvelope
	// JSON404 the response for an HTTP 404 `application/json` response
	JSON404 *BardiyaErrorEnvelope
	// JSON422 the response for an HTTP 422 `application/json` response
	JSON422 *HTTPValidationError
	// JSON429 the response for an HTTP 429 `application/json` response
	JSON429 *BardiyaErrorEnvelope
	// JSON503 the response for an HTTP 503 `application/json` response
	JSON503 *BardiyaErrorEnvelope
}

func ParseAutocompletePlacesResult

func ParseAutocompletePlacesResult(rsp *http.Response) (*AutocompletePlacesResult, error)

ParseAutocompletePlacesResult parses an HTTP response from a AutocompletePlacesWithResponse call

func (AutocompletePlacesResult) ContentType

func (r AutocompletePlacesResult) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (AutocompletePlacesResult) GetBody

func (r AutocompletePlacesResult) GetBody() []byte

GetBody returns the raw response body bytes

func (AutocompletePlacesResult) GetJSON200

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (AutocompletePlacesResult) GetJSON400

GetJSON400 returns the response for an HTTP 400 `application/json` response

func (AutocompletePlacesResult) GetJSON401

GetJSON401 returns the response for an HTTP 401 `application/json` response

func (AutocompletePlacesResult) GetJSON403

GetJSON403 returns the response for an HTTP 403 `application/json` response

func (AutocompletePlacesResult) GetJSON404

GetJSON404 returns the response for an HTTP 404 `application/json` response

func (AutocompletePlacesResult) GetJSON422

GetJSON422 returns the response for an HTTP 422 `application/json` response

func (AutocompletePlacesResult) GetJSON429

GetJSON429 returns the response for an HTTP 429 `application/json` response

func (AutocompletePlacesResult) GetJSON503

GetJSON503 returns the response for an HTTP 503 `application/json` response

func (AutocompletePlacesResult) Status

func (r AutocompletePlacesResult) Status() string

Status returns HTTPResponse.Status

func (AutocompletePlacesResult) StatusCode

func (r AutocompletePlacesResult) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type AutocompleteResponse

type AutocompleteResponse struct {
	Engine      *string                  `json:"engine,omitempty"`
	Query       string                   `json:"query"`
	Suggestions []AutocompleteSuggestion `json:"suggestions"`
}

AutocompleteResponse defines model for AutocompleteResponse.

type AutocompleteSuggestion

type AutocompleteSuggestion struct {
	Category   *string     `json:"category,omitempty"`
	CategoryAr *string     `json:"category_ar,omitempty"`
	Coordinate *Coordinate `json:"coordinate,omitempty"`
	DistanceM  *float64    `json:"distance_m,omitempty"`
	Id         *string     `json:"id,omitempty"`
	Name       string      `json:"name"`
	Score      *float64    `json:"score,omitempty"`
}

AutocompleteSuggestion defines model for AutocompleteSuggestion.

type BardiyaErrorEnvelope

type BardiyaErrorEnvelope struct {
	Error struct {
		Code      string                 `json:"code"`
		Details   map[string]interface{} `json:"details"`
		Message   string                 `json:"message"`
		RequestId string                 `json:"request_id"`
	} `json:"error"`
}

BardiyaErrorEnvelope defines model for BardiyaErrorEnvelope.

type Client

type Client struct {
	// Maps sends X-API-Key and covers Places, Geocoding, Directions, Matrix,
	// Address Validation, style, tiles and health.
	Maps *Maps
	// Tracking sends Authorization: Bearer and covers sessions, ingest, state,
	// history, realtime, subscriptions, client tokens and webhooks.
	Tracking *Tracking
	// contains filtered or unexported fields
}

Client is the entry point for both product families.

func New

func New(cfg Config) (*Client, error)

New validates the configuration and builds a Client.

func (*Client) Close

func (c *Client) Close()

Close releases idle connections held by the underlying client.

func (*Client) NewIngest

func (c *Client) NewIngest(sessionID, organizationID uuid.UUID, credential string) (*Ingest, error)

NewIngest returns a device client that can only post events for one session.

The ingest credential is not an API key: it cannot read, list or administer anything, and it must never be embedded in a shipped application as a long-lived secret.

type ClientInterface

type ClientInterface interface {

	// SendLocationWithIngestCredentialWithBody Handle Ingest Location
	//
	// Ingest one event with a session-scoped credential instead of an API key.
	//
	// Takes any type of body and a specified content type.
	//
	// Corresponds with POST /api/v1/tracking/sessions/{session_id}/locations (the `SendLocationWithIngestCredential` operationId).
	SendLocationWithIngestCredentialWithBody(ctx context.Context, sessionId openapi_types.UUID, params *SendLocationWithIngestCredentialParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	// SendLocationWithIngestCredential Handle Ingest Location
	//
	// Ingest one event with a session-scoped credential instead of an API key.
	//
	// Takes a body of the `application/json` content type.
	//
	// Corresponds with POST /api/v1/tracking/sessions/{session_id}/locations (the `SendLocationWithIngestCredential` operationId).
	SendLocationWithIngestCredential(ctx context.Context, sessionId openapi_types.UUID, params *SendLocationWithIngestCredentialParams, body SendLocationWithIngestCredentialJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// SendLocationBatchWithIngestCredentialWithBody Handle Ingest Batch
	//
	// Ingest a bounded batch with a session-scoped credential instead of an API key.
	//
	// Takes any type of body and a specified content type.
	//
	// Corresponds with POST /api/v1/tracking/sessions/{session_id}/locations/batch (the `SendLocationBatchWithIngestCredential` operationId).
	SendLocationBatchWithIngestCredentialWithBody(ctx context.Context, sessionId openapi_types.UUID, params *SendLocationBatchWithIngestCredentialParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	// SendLocationBatchWithIngestCredential Handle Ingest Batch
	//
	// Ingest a bounded batch with a session-scoped credential instead of an API key.
	//
	// Takes a body of the `application/json` content type.
	//
	// Corresponds with POST /api/v1/tracking/sessions/{session_id}/locations/batch (the `SendLocationBatchWithIngestCredential` operationId).
	SendLocationBatchWithIngestCredential(ctx context.Context, sessionId openapi_types.UUID, params *SendLocationBatchWithIngestCredentialParams, body SendLocationBatchWithIngestCredentialJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// DirectionsWithBody Public Directions
	//
	// Public Directions API backed by OSRM with an explicit degraded fallback.
	//
	// When OSRM is unreachable the fallback returns a haversine straight-line
	// estimate over road-snapped sample points and marks it
	// “degraded=true, road_network=false“; it never claims a road route.
	//
	// Takes any type of body and a specified content type.
	//
	// Corresponds with POST /v1/directions (the `Directions` operationId).
	DirectionsWithBody(ctx context.Context, params *DirectionsParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	// Directions Public Directions
	//
	// Public Directions API backed by OSRM with an explicit degraded fallback.
	//
	// When OSRM is unreachable the fallback returns a haversine straight-line
	// estimate over road-snapped sample points and marks it
	// “degraded=true, road_network=false“; it never claims a road route.
	//
	// Takes a body of the `application/json` content type.
	//
	// Corresponds with POST /v1/directions (the `Directions` operationId).
	Directions(ctx context.Context, params *DirectionsParams, body DirectionsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// DistanceMatrixWithBody Public Distance Matrix
	//
	// Public Distance Matrix API (OSRM table, one normalized schema).
	//
	// “distances_meters“ and “durations_seconds“ are always
	// “origin_count“ × “destination_count“. An unreachable pair is an
	// explicit “null“ cell instead of a shortened array; “per_cell_errors“
	// distinguishes “no_route“ (no duration) from “distance_unavailable“
	// (OSRM returned a duration but no distance annotation).
	//
	// Takes any type of body and a specified content type.
	//
	// Corresponds with POST /v1/distance-matrix (the `DistanceMatrix` operationId).
	DistanceMatrixWithBody(ctx context.Context, params *DistanceMatrixParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	// DistanceMatrix Public Distance Matrix
	//
	// Public Distance Matrix API (OSRM table, one normalized schema).
	//
	// “distances_meters“ and “durations_seconds“ are always
	// “origin_count“ × “destination_count“. An unreachable pair is an
	// explicit “null“ cell instead of a shortened array; “per_cell_errors“
	// distinguishes “no_route“ (no duration) from “distance_unavailable“
	// (OSRM returned a duration but no distance annotation).
	//
	// Takes a body of the `application/json` content type.
	//
	// Corresponds with POST /v1/distance-matrix (the `DistanceMatrix` operationId).
	DistanceMatrix(ctx context.Context, params *DistanceMatrixParams, body DistanceMatrixJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ForwardGeocode Public Forward Geocode
	//
	// Public forward geocoding: free-text address -> coordinates.
	//
	// Corresponds with GET /v1/geocode (the `ForwardGeocode` operationId).
	ForwardGeocode(ctx context.Context, params *ForwardGeocodeParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ReverseGeocode Public Reverse Geocode
	//
	// Public reverse geocoding: coordinates -> Egyptian administrative hierarchy.
	//
	// Corresponds with GET /v1/geocode/reverse (the `ReverseGeocode` operationId).
	ReverseGeocode(ctx context.Context, params *ReverseGeocodeParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// HealthLive Public Health Live
	//
	// Liveness probe. No credential required.
	//
	// Corresponds with GET /v1/health/live (the `HealthLive` operationId).
	HealthLive(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

	// HealthReady Public Health Ready
	//
	// Readiness with product availability. No credential required.
	//
	// Corresponds with GET /v1/health/ready (the `HealthReady` operationId).
	HealthReady(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

	// AutocompletePlaces Public Place Autocomplete
	//
	// Public autocomplete suggestions.
	//
	// Corresponds with GET /v1/places/autocomplete (the `AutocompletePlaces` operationId).
	AutocompletePlaces(ctx context.Context, params *AutocompletePlacesParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// SearchPlaces Public Place Search
	//
	// Public place and address search (Arabic and English).
	//
	// Corresponds with GET /v1/places/search (the `SearchPlaces` operationId).
	SearchPlaces(ctx context.Context, params *SearchPlacesParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetPlace Public Place Details
	//
	// Public place details from the Overture-derived places data.
	//
	// Corresponds with GET /v1/places/{place_id} (the `GetPlace` operationId).
	GetPlace(ctx context.Context, placeId string, params *GetPlaceParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetStyle Public Style
	//
	// MapLibre style configured for Bardiya tiles. Accepts `?api_key=`.
	//
	// Corresponds with GET /v1/style.json (the `GetStyle` operationId).
	GetStyle(ctx context.Context, params *GetStyleParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetTile Public Tile
	//
	// Vector tile bytes. Empty tiles return 204. Accepts `?api_key=`.
	//
	// Corresponds with GET /v1/tiles/{source}/{z}/{x}/{y} (the `GetTile` operationId).
	GetTile(ctx context.Context, source string, z string, x string, y string, params *GetTileParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ListClientTokens List client tokens
	//
	// Bounded metadata list; never includes token material or digests.
	//
	// Authentication: send `Authorization: Bearer bdy_test_<your_key>` or `bdy_live_<your_key>`. Required scopes are listed per operation. Every public response includes `X-Bardiya-Request-Id`; send that value to Bardiya support when debugging.
	//
	// Corresponds with GET /v1/tracking/client-tokens (the `ListClientTokens` operationId).
	ListClientTokens(ctx context.Context, params *ListClientTokensParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// MintClientTokenWithBody Mint a short-lived client-access token
	//
	// Server-to-server only. Exchanges an organization API key (scope `client_tokens:mint`) for a short-lived opaque `bdy_cli_*` bearer authorizing READ-ONLY realtime on an explicit, immutable subject set. The plaintext token is returned exactly once.
	//
	// Authentication: send `Authorization: Bearer bdy_test_<your_key>` or `bdy_live_<your_key>`. Required scopes are listed per operation. Every public response includes `X-Bardiya-Request-Id`; send that value to Bardiya support when debugging.
	//
	// Takes any type of body and a specified content type.
	//
	// Corresponds with POST /v1/tracking/client-tokens (the `MintClientToken` operationId).
	MintClientTokenWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	// MintClientToken Mint a short-lived client-access token
	//
	// Server-to-server only. Exchanges an organization API key (scope `client_tokens:mint`) for a short-lived opaque `bdy_cli_*` bearer authorizing READ-ONLY realtime on an explicit, immutable subject set. The plaintext token is returned exactly once.
	//
	// Authentication: send `Authorization: Bearer bdy_test_<your_key>` or `bdy_live_<your_key>`. Required scopes are listed per operation. Every public response includes `X-Bardiya-Request-Id`; send that value to Bardiya support when debugging.
	//
	// Takes a body of the `application/json` content type.
	//
	// Corresponds with POST /v1/tracking/client-tokens (the `MintClientToken` operationId).
	MintClientToken(ctx context.Context, body MintClientTokenJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// RevokeClientToken Revoke a client token
	//
	// Soft-revokes immediately for new connections; active sockets revalidate on a bounded interval.
	//
	// Authentication: send `Authorization: Bearer bdy_test_<your_key>` or `bdy_live_<your_key>`. Required scopes are listed per operation. Every public response includes `X-Bardiya-Request-Id`; send that value to Bardiya support when debugging.
	//
	// Corresponds with DELETE /v1/tracking/client-tokens/{token_id} (the `RevokeClientToken` operationId).
	RevokeClientToken(ctx context.Context, tokenId openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error)

	// SendEventWithBody Send one telemetry event by subject or session
	//
	// Ingests one telemetry event targeted at a tracked subject (subject_type + subject_ref) or an explicit session_id. Exactly one targeting mode per request. `client_event_id` is the idempotency key for retries. Response semantics are identical to `POST /v1/tracking/sessions/{id}/locations`. Requires `tracking:write`.
	//
	// Authentication: send `Authorization: Bearer bdy_test_<your_key>` or `bdy_live_<your_key>`. Required scopes are listed per operation. Every public response includes `X-Bardiya-Request-Id`; send that value to Bardiya support when debugging.
	//
	// Takes any type of body and a specified content type.
	//
	// Corresponds with POST /v1/tracking/events (the `SendEvent` operationId).
	SendEventWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	// SendEvent Send one telemetry event by subject or session
	//
	// Ingests one telemetry event targeted at a tracked subject (subject_type + subject_ref) or an explicit session_id. Exactly one targeting mode per request. `client_event_id` is the idempotency key for retries. Response semantics are identical to `POST /v1/tracking/sessions/{id}/locations`. Requires `tracking:write`.
	//
	// Authentication: send `Authorization: Bearer bdy_test_<your_key>` or `bdy_live_<your_key>`. Required scopes are listed per operation. Every public response includes `X-Bardiya-Request-Id`; send that value to Bardiya support when debugging.
	//
	// Takes a body of the `application/json` content type.
	//
	// Corresponds with POST /v1/tracking/events (the `SendEvent` operationId).
	SendEvent(ctx context.Context, body SendEventJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// SendFleetBatchWithBody Send one bounded, tenant-scoped fleet batch
	//
	// Ingests 1-100 telemetry events for one or more sessions owned by the authenticated tenant/key in one request. Each event keeps its own `session_id` and `client_event_id`. Quota admission is one atomic micro-transaction on the dedicated quota pool; durable storage of all admitted events is one database transaction. A quota/revocation rejection debits nothing. A storage failure rolls back every event row, but an already-committed quota admission is a rate-limit event, not a billing charge. Per-event validation/ownership failures are returned in `results` while valid sibling events commit (partial per-event success, atomic storage failure). Requires `tracking:write`.
	//
	// Authentication: send `Authorization: Bearer bdy_test_<your_key>` or `bdy_live_<your_key>`. Required scopes are listed per operation. Every public response includes `X-Bardiya-Request-Id`; send that value to Bardiya support when debugging.
	//
	// Takes any type of body and a specified content type.
	//
	// Corresponds with POST /v1/tracking/locations/batch (the `SendFleetBatch` operationId).
	SendFleetBatchWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	// SendFleetBatch Send one bounded, tenant-scoped fleet batch
	//
	// Ingests 1-100 telemetry events for one or more sessions owned by the authenticated tenant/key in one request. Each event keeps its own `session_id` and `client_event_id`. Quota admission is one atomic micro-transaction on the dedicated quota pool; durable storage of all admitted events is one database transaction. A quota/revocation rejection debits nothing. A storage failure rolls back every event row, but an already-committed quota admission is a rate-limit event, not a billing charge. Per-event validation/ownership failures are returned in `results` while valid sibling events commit (partial per-event success, atomic storage failure). Requires `tracking:write`.
	//
	// Authentication: send `Authorization: Bearer bdy_test_<your_key>` or `bdy_live_<your_key>`. Required scopes are listed per operation. Every public response includes `X-Bardiya-Request-Id`; send that value to Bardiya support when debugging.
	//
	// Takes a body of the `application/json` content type.
	//
	// Corresponds with POST /v1/tracking/locations/batch (the `SendFleetBatch` operationId).
	SendFleetBatch(ctx context.Context, body SendFleetBatchJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ListSessions List tracking sessions
	//
	// Returns a bounded cursor-paginated session list. Requires `tracking:read`.
	//
	// Authentication: send `Authorization: Bearer bdy_test_<your_key>` or `bdy_live_<your_key>`. Required scopes are listed per operation. Every public response includes `X-Bardiya-Request-Id`; send that value to Bardiya support when debugging.
	//
	// Corresponds with GET /v1/tracking/sessions (the `ListSessions` operationId).
	ListSessions(ctx context.Context, params *ListSessionsParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// CreateSessionWithBody Create a tracking session
	//
	// Creates and activates a generic tracked subject. Requires `tracking:write`. Retry safely with `Idempotency-Key` when supported by the deployment schema.
	//
	// Authentication: send `Authorization: Bearer bdy_test_<your_key>` or `bdy_live_<your_key>`. Required scopes are listed per operation. Every public response includes `X-Bardiya-Request-Id`; send that value to Bardiya support when debugging.
	//
	// Takes any type of body and a specified content type.
	//
	// Corresponds with POST /v1/tracking/sessions (the `CreateSession` operationId).
	CreateSessionWithBody(ctx context.Context, params *CreateSessionParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	// CreateSession Create a tracking session
	//
	// Creates and activates a generic tracked subject. Requires `tracking:write`. Retry safely with `Idempotency-Key` when supported by the deployment schema.
	//
	// Authentication: send `Authorization: Bearer bdy_test_<your_key>` or `bdy_live_<your_key>`. Required scopes are listed per operation. Every public response includes `X-Bardiya-Request-Id`; send that value to Bardiya support when debugging.
	//
	// Takes a body of the `application/json` content type.
	//
	// Corresponds with POST /v1/tracking/sessions (the `CreateSession` operationId).
	CreateSession(ctx context.Context, params *CreateSessionParams, body CreateSessionJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetSession Get a tracking session
	//
	// Returns one tenant-visible session. Requires `tracking:read`.
	//
	// Authentication: send `Authorization: Bearer bdy_test_<your_key>` or `bdy_live_<your_key>`. Required scopes are listed per operation. Every public response includes `X-Bardiya-Request-Id`; send that value to Bardiya support when debugging.
	//
	// Corresponds with GET /v1/tracking/sessions/{session_id} (the `GetSession` operationId).
	GetSession(ctx context.Context, sessionId openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error)

	// EndSession End a tracking session
	//
	// Ends an active or created session. The operation is idempotent; use `Idempotency-Key` for safe client retries. Requires `tracking:write`.
	//
	// Authentication: send `Authorization: Bearer bdy_test_<your_key>` or `bdy_live_<your_key>`. Required scopes are listed per operation. Every public response includes `X-Bardiya-Request-Id`; send that value to Bardiya support when debugging.
	//
	// Corresponds with POST /v1/tracking/sessions/{session_id}/end (the `EndSession` operationId).
	EndSession(ctx context.Context, sessionId openapi_types.UUID, params *EndSessionParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetHistory Get durable tracking history
	//
	// Returns bounded keyset-paginated location history for recovery and playback. Requires `tracking:read`. History older than the hot retention window is served from the verified immutable archive once source reclamation is active; a page is never partially returned. Archive failures use `history_archive_unavailable` (503), `history_archive_incomplete` (503), `history_archive_scan_limit` (503) or `history_archive_corrupt` (502); retry only the first three.
	//
	// Authentication: send `Authorization: Bearer bdy_test_<your_key>` or `bdy_live_<your_key>`. Required scopes are listed per operation. Every public response includes `X-Bardiya-Request-Id`; send that value to Bardiya support when debugging.
	//
	// Corresponds with GET /v1/tracking/sessions/{session_id}/history (the `GetHistory` operationId).
	GetHistory(ctx context.Context, sessionId openapi_types.UUID, params *GetHistoryParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// IssueIngestToken Issue a session-scoped device ingest token
	//
	// PROD-04 producer flow: exchanges an organization API key (`tracking:write`) for a session-scoped ingest credential intended for a mobile PRODUCER device. The plaintext token is returned exactly once; it authorizes ingest to THIS session only and grants no read, management, or cross-session capability. Delegates to the existing credential service.
	//
	// Authentication: send `Authorization: Bearer bdy_test_<your_key>` or `bdy_live_<your_key>`. Required scopes are listed per operation. Every public response includes `X-Bardiya-Request-Id`; send that value to Bardiya support when debugging.
	//
	// Corresponds with POST /v1/tracking/sessions/{session_id}/ingest-token (the `IssueIngestToken` operationId).
	IssueIngestToken(ctx context.Context, sessionId openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error)

	// SendLocationWithBody Send one location or heartbeat
	//
	// Ingests one telemetry event. `client_event_id` is the idempotency key for retries. Requires `tracking:write`.
	//
	// Authentication: send `Authorization: Bearer bdy_test_<your_key>` or `bdy_live_<your_key>`. Required scopes are listed per operation. Every public response includes `X-Bardiya-Request-Id`; send that value to Bardiya support when debugging.
	//
	// Takes any type of body and a specified content type.
	//
	// Corresponds with POST /v1/tracking/sessions/{session_id}/locations (the `SendLocation` operationId).
	SendLocationWithBody(ctx context.Context, sessionId openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	// SendLocation Send one location or heartbeat
	//
	// Ingests one telemetry event. `client_event_id` is the idempotency key for retries. Requires `tracking:write`.
	//
	// Authentication: send `Authorization: Bearer bdy_test_<your_key>` or `bdy_live_<your_key>`. Required scopes are listed per operation. Every public response includes `X-Bardiya-Request-Id`; send that value to Bardiya support when debugging.
	//
	// Takes a body of the `application/json` content type.
	//
	// Corresponds with POST /v1/tracking/sessions/{session_id}/locations (the `SendLocation` operationId).
	SendLocation(ctx context.Context, sessionId openapi_types.UUID, body SendLocationJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// SendLocationBatchWithBody Send a bounded location batch
	//
	// Ingests 1أ¢â‚¬â€œ100 telemetry events in one bounded request. Each event keeps its own `client_event_id`. Requires `tracking:write`.
	//
	// Authentication: send `Authorization: Bearer bdy_test_<your_key>` or `bdy_live_<your_key>`. Required scopes are listed per operation. Every public response includes `X-Bardiya-Request-Id`; send that value to Bardiya support when debugging.
	//
	// Takes any type of body and a specified content type.
	//
	// Corresponds with POST /v1/tracking/sessions/{session_id}/locations/batch (the `SendLocationBatch` operationId).
	SendLocationBatchWithBody(ctx context.Context, sessionId openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	// SendLocationBatch Send a bounded location batch
	//
	// Ingests 1أ¢â‚¬â€œ100 telemetry events in one bounded request. Each event keeps its own `client_event_id`. Requires `tracking:write`.
	//
	// Authentication: send `Authorization: Bearer bdy_test_<your_key>` or `bdy_live_<your_key>`. Required scopes are listed per operation. Every public response includes `X-Bardiya-Request-Id`; send that value to Bardiya support when debugging.
	//
	// Takes a body of the `application/json` content type.
	//
	// Corresponds with POST /v1/tracking/sessions/{session_id}/locations/batch (the `SendLocationBatch` operationId).
	SendLocationBatch(ctx context.Context, sessionId openapi_types.UUID, body SendLocationBatchJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetState Get current tracking state
	//
	// Reads the latest state and derived `online`, `stale`, or `offline` freshness. Requires `tracking:read`.
	//
	// Authentication: send `Authorization: Bearer bdy_test_<your_key>` or `bdy_live_<your_key>`. Required scopes are listed per operation. Every public response includes `X-Bardiya-Request-Id`; send that value to Bardiya support when debugging.
	//
	// Corresponds with GET /v1/tracking/sessions/{session_id}/state (the `GetState` operationId).
	GetState(ctx context.Context, sessionId openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error)

	// StreamSession Stream a session over authenticated SSE
	//
	// Server-sent events for one session. Frames are `event:` + `data:` pairs:
	// `snapshot`, `location`, `heartbeat`, `limit` and `closed`. Each `location`
	// frame carries an `id` of the form `<session_id>:<state_version>`; resume
	// is not supported, so reconnect and re-read the snapshot instead.
	//
	// Corresponds with GET /v1/tracking/sessions/{session_id}/stream (the `StreamSession` operationId).
	StreamSession(ctx context.Context, sessionId openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ListSubscriptions List subscriptions
	//
	// Bounded list for this tenant and environment. Requires `tracking:read`.
	//
	// Authentication: send `Authorization: Bearer bdy_test_<your_key>` or `bdy_live_<your_key>`. Required scopes are listed per operation. Every public response includes `X-Bardiya-Request-Id`; send that value to Bardiya support when debugging.
	//
	// Corresponds with GET /v1/tracking/subscriptions (the `ListSubscriptions` operationId).
	ListSubscriptions(ctx context.Context, params *ListSubscriptionsParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// CreateSubscriptionWithBody Create a subject subscription
	//
	// Registers an opaque consumer's interest in a tracked subject. Idempotent:
	// an existing subscription for the same subscriber and subject returns 200
	// with the existing record instead of creating a second one.
	//
	// Takes any type of body and a specified content type.
	//
	// Corresponds with POST /v1/tracking/subscriptions (the `CreateSubscription` operationId).
	CreateSubscriptionWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	// CreateSubscription Create a subject subscription
	//
	// Registers an opaque consumer's interest in a tracked subject. Idempotent:
	// an existing subscription for the same subscriber and subject returns 200
	// with the existing record instead of creating a second one.
	//
	// Takes a body of the `application/json` content type.
	//
	// Corresponds with POST /v1/tracking/subscriptions (the `CreateSubscription` operationId).
	CreateSubscription(ctx context.Context, body CreateSubscriptionJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// DeleteSubscription Delete a subscription
	//
	// Deletes one subscription. The server returns 204 with no body.
	//
	// Corresponds with DELETE /v1/tracking/subscriptions/{subscription_id} (the `DeleteSubscription` operationId).
	DeleteSubscription(ctx context.Context, subscriptionId openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ValidateAddressWithBody Public Validate Address
	//
	// Public Egyptian address validation (street + landmark).
	//
	// Takes any type of body and a specified content type.
	//
	// Corresponds with POST /v1/validate-address (the `ValidateAddress` operationId).
	ValidateAddressWithBody(ctx context.Context, params *ValidateAddressParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ValidateAddress Public Validate Address
	//
	// Public Egyptian address validation (street + landmark).
	//
	// Takes a body of the `application/json` content type.
	//
	// Corresponds with POST /v1/validate-address (the `ValidateAddress` operationId).
	ValidateAddress(ctx context.Context, params *ValidateAddressParams, body ValidateAddressJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ListWebhooks List webhook endpoints
	//
	// Lists endpoints for the API-key environment without returning signing secrets. Requires `webhooks:manage`.
	//
	// Authentication: send `Authorization: Bearer bdy_test_<your_key>` or `bdy_live_<your_key>`. Required scopes are listed per operation. Every public response includes `X-Bardiya-Request-Id`; send that value to Bardiya support when debugging.
	//
	// Corresponds with GET /v1/webhooks (the `ListWebhooks` operationId).
	ListWebhooks(ctx context.Context, params *ListWebhooksParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// CreateWebhookWithBody Create a webhook endpoint
	//
	// Creates an active signed endpoint. Requires `webhooks:manage`; the raw `signing_secret` is returned only in this response.
	//
	// Authentication: send `Authorization: Bearer bdy_test_<your_key>` or `bdy_live_<your_key>`. Required scopes are listed per operation. Every public response includes `X-Bardiya-Request-Id`; send that value to Bardiya support when debugging.
	//
	// Takes any type of body and a specified content type.
	//
	// Corresponds with POST /v1/webhooks (the `CreateWebhook` operationId).
	CreateWebhookWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	// CreateWebhook Create a webhook endpoint
	//
	// Creates an active signed endpoint. Requires `webhooks:manage`; the raw `signing_secret` is returned only in this response.
	//
	// Authentication: send `Authorization: Bearer bdy_test_<your_key>` or `bdy_live_<your_key>`. Required scopes are listed per operation. Every public response includes `X-Bardiya-Request-Id`; send that value to Bardiya support when debugging.
	//
	// Takes a body of the `application/json` content type.
	//
	// Corresponds with POST /v1/webhooks (the `CreateWebhook` operationId).
	CreateWebhook(ctx context.Context, body CreateWebhookJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// DeleteWebhook Disable a webhook endpoint
	//
	// Disables the endpoint without deleting delivery evidence. Requires `webhooks:manage`.
	//
	// Authentication: send `Authorization: Bearer bdy_test_<your_key>` or `bdy_live_<your_key>`. Required scopes are listed per operation. Every public response includes `X-Bardiya-Request-Id`; send that value to Bardiya support when debugging.
	//
	// Corresponds with DELETE /v1/webhooks/{endpoint_id} (the `DeleteWebhook` operationId).
	DeleteWebhook(ctx context.Context, endpointId openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetWebhook Get a webhook endpoint
	//
	// Returns endpoint configuration without its signing secret. Requires `webhooks:manage`.
	//
	// Authentication: send `Authorization: Bearer bdy_test_<your_key>` or `bdy_live_<your_key>`. Required scopes are listed per operation. Every public response includes `X-Bardiya-Request-Id`; send that value to Bardiya support when debugging.
	//
	// Corresponds with GET /v1/webhooks/{endpoint_id} (the `GetWebhook` operationId).
	GetWebhook(ctx context.Context, endpointId openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error)

	// UpdateWebhookWithBody Update a webhook endpoint
	//
	// Updates the URL, subscriptions, or active/disabled status. Requires `webhooks:manage`.
	//
	// Authentication: send `Authorization: Bearer bdy_test_<your_key>` or `bdy_live_<your_key>`. Required scopes are listed per operation. Every public response includes `X-Bardiya-Request-Id`; send that value to Bardiya support when debugging.
	//
	// Takes any type of body and a specified content type.
	//
	// Corresponds with PATCH /v1/webhooks/{endpoint_id} (the `UpdateWebhook` operationId).
	UpdateWebhookWithBody(ctx context.Context, endpointId openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	// UpdateWebhook Update a webhook endpoint
	//
	// Updates the URL, subscriptions, or active/disabled status. Requires `webhooks:manage`.
	//
	// Authentication: send `Authorization: Bearer bdy_test_<your_key>` or `bdy_live_<your_key>`. Required scopes are listed per operation. Every public response includes `X-Bardiya-Request-Id`; send that value to Bardiya support when debugging.
	//
	// Takes a body of the `application/json` content type.
	//
	// Corresponds with PATCH /v1/webhooks/{endpoint_id} (the `UpdateWebhook` operationId).
	UpdateWebhook(ctx context.Context, endpointId openapi_types.UUID, body UpdateWebhookJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ListWebhookDeliveries List webhook delivery attempts
	//
	// Returns bounded delivery logs including status, attempts, response status, excerpts, and errors. Requires `webhooks:manage`.
	//
	// Authentication: send `Authorization: Bearer bdy_test_<your_key>` or `bdy_live_<your_key>`. Required scopes are listed per operation. Every public response includes `X-Bardiya-Request-Id`; send that value to Bardiya support when debugging.
	//
	// Corresponds with GET /v1/webhooks/{endpoint_id}/deliveries (the `ListWebhookDeliveries` operationId).
	ListWebhookDeliveries(ctx context.Context, endpointId openapi_types.UUID, params *ListWebhookDeliveriesParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// RetryWebhookDelivery Retry a webhook delivery
	//
	// Creates a new pending delivery linked to a failed, dead, or cancelled delivery. Requires `webhooks:manage`.
	//
	// Authentication: send `Authorization: Bearer bdy_test_<your_key>` or `bdy_live_<your_key>`. Required scopes are listed per operation. Every public response includes `X-Bardiya-Request-Id`; send that value to Bardiya support when debugging.
	//
	// Corresponds with POST /v1/webhooks/{endpoint_id}/deliveries/{delivery_id}/retry (the `RetryWebhookDelivery` operationId).
	RetryWebhookDelivery(ctx context.Context, endpointId openapi_types.UUID, deliveryId openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error)
}

The interface specification for the client above.

type ClientOption

type ClientOption func(*APIClient) error

ClientOption allows setting custom parameters during construction

func WithBaseURL

func WithBaseURL(baseURL string) ClientOption

WithBaseURL overrides the baseURL.

func WithHTTPClient

func WithHTTPClient(doer HttpRequestDoer) ClientOption

WithHTTPClient allows overriding the default Doer, which is automatically created using http.Client. This is useful for tests.

func WithRequestEditorFn

func WithRequestEditorFn(fn RequestEditorFn) ClientOption

WithRequestEditorFn allows setting up a callback function, which will be called right before sending the request. This can be used to mutate the request.

type ClientToken

type ClientToken struct {
	Capability  string             `json:"capability"`
	CreatedAt   time.Time          `json:"created_at"`
	ExpiresAt   *time.Time         `json:"expires_at,omitempty"`
	Id          string             `json:"id"`
	Revoked     *bool              `json:"revoked,omitempty"`
	Subjects    []PublicSubjectRef `json:"subjects"`
	TokenPrefix string             `json:"token_prefix"`
}

ClientToken Metadata for a short-lived `bdy_cli_*` realtime credential. Never contains the token.

type ClientTokenList

type ClientTokenList struct {
	HasMore bool          `json:"has_more"`
	Items   []ClientToken `json:"items"`
}

ClientTokenList defines model for ClientTokenList.

type ClientTokenMinted

type ClientTokenMinted struct {
	Capability string             `json:"capability"`
	CreatedAt  time.Time          `json:"created_at"`
	ExpiresAt  *time.Time         `json:"expires_at,omitempty"`
	Id         string             `json:"id"`
	Revoked    *bool              `json:"revoked,omitempty"`
	Subjects   []PublicSubjectRef `json:"subjects"`

	// Token The plaintext credential. Returned exactly once by the server.
	Token       string `json:"token"`
	TokenPrefix string `json:"token_prefix"`
	TtlSeconds  int    `json:"ttl_seconds"`
}

ClientTokenMinted defines model for ClientTokenMinted.

type ClientWithResponses

type ClientWithResponses struct {
	ClientInterface
}

ClientWithResponses builds on ClientInterface to offer response payloads

func NewClientWithResponses

func NewClientWithResponses(server string, opts ...ClientOption) (*ClientWithResponses, error)

NewClientWithResponses creates a new ClientWithResponses, which wraps Client with return type handling

func (*ClientWithResponses) AutocompletePlacesWithResponse

func (c *ClientWithResponses) AutocompletePlacesWithResponse(ctx context.Context, params *AutocompletePlacesParams, reqEditors ...RequestEditorFn) (*AutocompletePlacesResult, error)

AutocompletePlacesWithResponse Public Place Autocomplete

Public autocomplete suggestions.

Returns a wrapper object for the known response body format(s).

Corresponds with GET /v1/places/autocomplete (the `AutocompletePlaces` operationId).

func (*ClientWithResponses) CreateSessionWithBodyWithResponse

func (c *ClientWithResponses) CreateSessionWithBodyWithResponse(ctx context.Context, params *CreateSessionParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateSessionResult, error)

CreateSessionWithBodyWithResponse Create a tracking session

Creates and activates a generic tracked subject. Requires `tracking:write`. Retry safely with `Idempotency-Key` when supported by the deployment schema.

Authentication: send `Authorization: Bearer bdy_test_<your_key>` or `bdy_live_<your_key>`. Required scopes are listed per operation. Every public response includes `X-Bardiya-Request-Id`; send that value to Bardiya support when debugging.

Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).

Corresponds with POST /v1/tracking/sessions (the `CreateSession` operationId).

func (*ClientWithResponses) CreateSessionWithResponse

func (c *ClientWithResponses) CreateSessionWithResponse(ctx context.Context, params *CreateSessionParams, body CreateSessionJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateSessionResult, error)

CreateSessionWithResponse Create a tracking session

Creates and activates a generic tracked subject. Requires `tracking:write`. Retry safely with `Idempotency-Key` when supported by the deployment schema.

Authentication: send `Authorization: Bearer bdy_test_<your_key>` or `bdy_live_<your_key>`. Required scopes are listed per operation. Every public response includes `X-Bardiya-Request-Id`; send that value to Bardiya support when debugging.

Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).

Corresponds with POST /v1/tracking/sessions (the `CreateSession` operationId).

func (*ClientWithResponses) CreateSubscriptionWithBodyWithResponse

func (c *ClientWithResponses) CreateSubscriptionWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateSubscriptionResult, error)

CreateSubscriptionWithBodyWithResponse Create a subject subscription

Registers an opaque consumer's interest in a tracked subject. Idempotent: an existing subscription for the same subscriber and subject returns 200 with the existing record instead of creating a second one.

Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).

Corresponds with POST /v1/tracking/subscriptions (the `CreateSubscription` operationId).

func (*ClientWithResponses) CreateSubscriptionWithResponse

func (c *ClientWithResponses) CreateSubscriptionWithResponse(ctx context.Context, body CreateSubscriptionJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateSubscriptionResult, error)

CreateSubscriptionWithResponse Create a subject subscription

Registers an opaque consumer's interest in a tracked subject. Idempotent: an existing subscription for the same subscriber and subject returns 200 with the existing record instead of creating a second one.

Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).

Corresponds with POST /v1/tracking/subscriptions (the `CreateSubscription` operationId).

func (*ClientWithResponses) CreateWebhookWithBodyWithResponse

func (c *ClientWithResponses) CreateWebhookWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateWebhookResult, error)

CreateWebhookWithBodyWithResponse Create a webhook endpoint

Creates an active signed endpoint. Requires `webhooks:manage`; the raw `signing_secret` is returned only in this response.

Authentication: send `Authorization: Bearer bdy_test_<your_key>` or `bdy_live_<your_key>`. Required scopes are listed per operation. Every public response includes `X-Bardiya-Request-Id`; send that value to Bardiya support when debugging.

Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).

Corresponds with POST /v1/webhooks (the `CreateWebhook` operationId).

func (*ClientWithResponses) CreateWebhookWithResponse

func (c *ClientWithResponses) CreateWebhookWithResponse(ctx context.Context, body CreateWebhookJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateWebhookResult, error)

CreateWebhookWithResponse Create a webhook endpoint

Creates an active signed endpoint. Requires `webhooks:manage`; the raw `signing_secret` is returned only in this response.

Authentication: send `Authorization: Bearer bdy_test_<your_key>` or `bdy_live_<your_key>`. Required scopes are listed per operation. Every public response includes `X-Bardiya-Request-Id`; send that value to Bardiya support when debugging.

Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).

Corresponds with POST /v1/webhooks (the `CreateWebhook` operationId).

func (*ClientWithResponses) DeleteSubscriptionWithResponse

func (c *ClientWithResponses) DeleteSubscriptionWithResponse(ctx context.Context, subscriptionId openapi_types.UUID, reqEditors ...RequestEditorFn) (*DeleteSubscriptionResult, error)

DeleteSubscriptionWithResponse Delete a subscription

Deletes one subscription. The server returns 204 with no body.

Returns a wrapper object for the known response body format(s).

Corresponds with DELETE /v1/tracking/subscriptions/{subscription_id} (the `DeleteSubscription` operationId).

func (*ClientWithResponses) DeleteWebhookWithResponse

func (c *ClientWithResponses) DeleteWebhookWithResponse(ctx context.Context, endpointId openapi_types.UUID, reqEditors ...RequestEditorFn) (*DeleteWebhookResult, error)

DeleteWebhookWithResponse Disable a webhook endpoint

Disables the endpoint without deleting delivery evidence. Requires `webhooks:manage`.

Authentication: send `Authorization: Bearer bdy_test_<your_key>` or `bdy_live_<your_key>`. Required scopes are listed per operation. Every public response includes `X-Bardiya-Request-Id`; send that value to Bardiya support when debugging.

Returns a wrapper object for the known response body format(s).

Corresponds with DELETE /v1/webhooks/{endpoint_id} (the `DeleteWebhook` operationId).

func (*ClientWithResponses) DirectionsWithBodyWithResponse

func (c *ClientWithResponses) DirectionsWithBodyWithResponse(ctx context.Context, params *DirectionsParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DirectionsResult, error)

DirectionsWithBodyWithResponse Public Directions

Public Directions API backed by OSRM with an explicit degraded fallback.

When OSRM is unreachable the fallback returns a haversine straight-line estimate over road-snapped sample points and marks it “degraded=true, road_network=false“; it never claims a road route.

Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).

Corresponds with POST /v1/directions (the `Directions` operationId).

func (*ClientWithResponses) DirectionsWithResponse

func (c *ClientWithResponses) DirectionsWithResponse(ctx context.Context, params *DirectionsParams, body DirectionsJSONRequestBody, reqEditors ...RequestEditorFn) (*DirectionsResult, error)

DirectionsWithResponse Public Directions

Public Directions API backed by OSRM with an explicit degraded fallback.

When OSRM is unreachable the fallback returns a haversine straight-line estimate over road-snapped sample points and marks it “degraded=true, road_network=false“; it never claims a road route.

Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).

Corresponds with POST /v1/directions (the `Directions` operationId).

func (*ClientWithResponses) DistanceMatrixWithBodyWithResponse

func (c *ClientWithResponses) DistanceMatrixWithBodyWithResponse(ctx context.Context, params *DistanceMatrixParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DistanceMatrixResult, error)

DistanceMatrixWithBodyWithResponse Public Distance Matrix

Public Distance Matrix API (OSRM table, one normalized schema).

“distances_meters“ and “durations_seconds“ are always “origin_count“ × “destination_count“. An unreachable pair is an explicit “null“ cell instead of a shortened array; “per_cell_errors“ distinguishes “no_route“ (no duration) from “distance_unavailable“ (OSRM returned a duration but no distance annotation).

Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).

Corresponds with POST /v1/distance-matrix (the `DistanceMatrix` operationId).

func (*ClientWithResponses) DistanceMatrixWithResponse

func (c *ClientWithResponses) DistanceMatrixWithResponse(ctx context.Context, params *DistanceMatrixParams, body DistanceMatrixJSONRequestBody, reqEditors ...RequestEditorFn) (*DistanceMatrixResult, error)

DistanceMatrixWithResponse Public Distance Matrix

Public Distance Matrix API (OSRM table, one normalized schema).

“distances_meters“ and “durations_seconds“ are always “origin_count“ × “destination_count“. An unreachable pair is an explicit “null“ cell instead of a shortened array; “per_cell_errors“ distinguishes “no_route“ (no duration) from “distance_unavailable“ (OSRM returned a duration but no distance annotation).

Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).

Corresponds with POST /v1/distance-matrix (the `DistanceMatrix` operationId).

func (*ClientWithResponses) EndSessionWithResponse

func (c *ClientWithResponses) EndSessionWithResponse(ctx context.Context, sessionId openapi_types.UUID, params *EndSessionParams, reqEditors ...RequestEditorFn) (*EndSessionResult, error)

EndSessionWithResponse End a tracking session

Ends an active or created session. The operation is idempotent; use `Idempotency-Key` for safe client retries. Requires `tracking:write`.

Authentication: send `Authorization: Bearer bdy_test_<your_key>` or `bdy_live_<your_key>`. Required scopes are listed per operation. Every public response includes `X-Bardiya-Request-Id`; send that value to Bardiya support when debugging.

Returns a wrapper object for the known response body format(s).

Corresponds with POST /v1/tracking/sessions/{session_id}/end (the `EndSession` operationId).

func (*ClientWithResponses) ForwardGeocodeWithResponse

func (c *ClientWithResponses) ForwardGeocodeWithResponse(ctx context.Context, params *ForwardGeocodeParams, reqEditors ...RequestEditorFn) (*ForwardGeocodeResult, error)

ForwardGeocodeWithResponse Public Forward Geocode

Public forward geocoding: free-text address -> coordinates.

Returns a wrapper object for the known response body format(s).

Corresponds with GET /v1/geocode (the `ForwardGeocode` operationId).

func (*ClientWithResponses) GetHistoryWithResponse

func (c *ClientWithResponses) GetHistoryWithResponse(ctx context.Context, sessionId openapi_types.UUID, params *GetHistoryParams, reqEditors ...RequestEditorFn) (*GetHistoryResult, error)

GetHistoryWithResponse Get durable tracking history

Returns bounded keyset-paginated location history for recovery and playback. Requires `tracking:read`. History older than the hot retention window is served from the verified immutable archive once source reclamation is active; a page is never partially returned. Archive failures use `history_archive_unavailable` (503), `history_archive_incomplete` (503), `history_archive_scan_limit` (503) or `history_archive_corrupt` (502); retry only the first three.

Authentication: send `Authorization: Bearer bdy_test_<your_key>` or `bdy_live_<your_key>`. Required scopes are listed per operation. Every public response includes `X-Bardiya-Request-Id`; send that value to Bardiya support when debugging.

Returns a wrapper object for the known response body format(s).

Corresponds with GET /v1/tracking/sessions/{session_id}/history (the `GetHistory` operationId).

func (*ClientWithResponses) GetPlaceWithResponse

func (c *ClientWithResponses) GetPlaceWithResponse(ctx context.Context, placeId string, params *GetPlaceParams, reqEditors ...RequestEditorFn) (*GetPlaceResult, error)

GetPlaceWithResponse Public Place Details

Public place details from the Overture-derived places data.

Returns a wrapper object for the known response body format(s).

Corresponds with GET /v1/places/{place_id} (the `GetPlace` operationId).

func (*ClientWithResponses) GetSessionWithResponse

func (c *ClientWithResponses) GetSessionWithResponse(ctx context.Context, sessionId openapi_types.UUID, reqEditors ...RequestEditorFn) (*GetSessionResult, error)

GetSessionWithResponse Get a tracking session

Returns one tenant-visible session. Requires `tracking:read`.

Authentication: send `Authorization: Bearer bdy_test_<your_key>` or `bdy_live_<your_key>`. Required scopes are listed per operation. Every public response includes `X-Bardiya-Request-Id`; send that value to Bardiya support when debugging.

Returns a wrapper object for the known response body format(s).

Corresponds with GET /v1/tracking/sessions/{session_id} (the `GetSession` operationId).

func (*ClientWithResponses) GetStateWithResponse

func (c *ClientWithResponses) GetStateWithResponse(ctx context.Context, sessionId openapi_types.UUID, reqEditors ...RequestEditorFn) (*GetStateResult, error)

GetStateWithResponse Get current tracking state

Reads the latest state and derived `online`, `stale`, or `offline` freshness. Requires `tracking:read`.

Authentication: send `Authorization: Bearer bdy_test_<your_key>` or `bdy_live_<your_key>`. Required scopes are listed per operation. Every public response includes `X-Bardiya-Request-Id`; send that value to Bardiya support when debugging.

Returns a wrapper object for the known response body format(s).

Corresponds with GET /v1/tracking/sessions/{session_id}/state (the `GetState` operationId).

func (*ClientWithResponses) GetStyleWithResponse

func (c *ClientWithResponses) GetStyleWithResponse(ctx context.Context, params *GetStyleParams, reqEditors ...RequestEditorFn) (*GetStyleResult, error)

GetStyleWithResponse Public Style

MapLibre style configured for Bardiya tiles. Accepts `?api_key=`.

Returns a wrapper object for the known response body format(s).

Corresponds with GET /v1/style.json (the `GetStyle` operationId).

func (*ClientWithResponses) GetTileWithResponse

func (c *ClientWithResponses) GetTileWithResponse(ctx context.Context, source string, z string, x string, y string, params *GetTileParams, reqEditors ...RequestEditorFn) (*GetTileResult, error)

GetTileWithResponse Public Tile

Vector tile bytes. Empty tiles return 204. Accepts `?api_key=`.

Returns a wrapper object for the known response body format(s).

Corresponds with GET /v1/tiles/{source}/{z}/{x}/{y} (the `GetTile` operationId).

func (*ClientWithResponses) GetWebhookWithResponse

func (c *ClientWithResponses) GetWebhookWithResponse(ctx context.Context, endpointId openapi_types.UUID, reqEditors ...RequestEditorFn) (*GetWebhookResult, error)

GetWebhookWithResponse Get a webhook endpoint

Returns endpoint configuration without its signing secret. Requires `webhooks:manage`.

Authentication: send `Authorization: Bearer bdy_test_<your_key>` or `bdy_live_<your_key>`. Required scopes are listed per operation. Every public response includes `X-Bardiya-Request-Id`; send that value to Bardiya support when debugging.

Returns a wrapper object for the known response body format(s).

Corresponds with GET /v1/webhooks/{endpoint_id} (the `GetWebhook` operationId).

func (*ClientWithResponses) HealthLiveWithResponse

func (c *ClientWithResponses) HealthLiveWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*HealthLiveResult, error)

HealthLiveWithResponse Public Health Live

Liveness probe. No credential required.

Returns a wrapper object for the known response body format(s).

Corresponds with GET /v1/health/live (the `HealthLive` operationId).

func (*ClientWithResponses) HealthReadyWithResponse

func (c *ClientWithResponses) HealthReadyWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*HealthReadyResult, error)

HealthReadyWithResponse Public Health Ready

Readiness with product availability. No credential required.

Returns a wrapper object for the known response body format(s).

Corresponds with GET /v1/health/ready (the `HealthReady` operationId).

func (*ClientWithResponses) IssueIngestTokenWithResponse

func (c *ClientWithResponses) IssueIngestTokenWithResponse(ctx context.Context, sessionId openapi_types.UUID, reqEditors ...RequestEditorFn) (*IssueIngestTokenResult, error)

IssueIngestTokenWithResponse Issue a session-scoped device ingest token

PROD-04 producer flow: exchanges an organization API key (`tracking:write`) for a session-scoped ingest credential intended for a mobile PRODUCER device. The plaintext token is returned exactly once; it authorizes ingest to THIS session only and grants no read, management, or cross-session capability. Delegates to the existing credential service.

Authentication: send `Authorization: Bearer bdy_test_<your_key>` or `bdy_live_<your_key>`. Required scopes are listed per operation. Every public response includes `X-Bardiya-Request-Id`; send that value to Bardiya support when debugging.

Returns a wrapper object for the known response body format(s).

Corresponds with POST /v1/tracking/sessions/{session_id}/ingest-token (the `IssueIngestToken` operationId).

func (*ClientWithResponses) ListClientTokensWithResponse

func (c *ClientWithResponses) ListClientTokensWithResponse(ctx context.Context, params *ListClientTokensParams, reqEditors ...RequestEditorFn) (*ListClientTokensResult, error)

ListClientTokensWithResponse List client tokens

Bounded metadata list; never includes token material or digests.

Authentication: send `Authorization: Bearer bdy_test_<your_key>` or `bdy_live_<your_key>`. Required scopes are listed per operation. Every public response includes `X-Bardiya-Request-Id`; send that value to Bardiya support when debugging.

Returns a wrapper object for the known response body format(s).

Corresponds with GET /v1/tracking/client-tokens (the `ListClientTokens` operationId).

func (*ClientWithResponses) ListSessionsWithResponse

func (c *ClientWithResponses) ListSessionsWithResponse(ctx context.Context, params *ListSessionsParams, reqEditors ...RequestEditorFn) (*ListSessionsResult, error)

ListSessionsWithResponse List tracking sessions

Returns a bounded cursor-paginated session list. Requires `tracking:read`.

Authentication: send `Authorization: Bearer bdy_test_<your_key>` or `bdy_live_<your_key>`. Required scopes are listed per operation. Every public response includes `X-Bardiya-Request-Id`; send that value to Bardiya support when debugging.

Returns a wrapper object for the known response body format(s).

Corresponds with GET /v1/tracking/sessions (the `ListSessions` operationId).

func (*ClientWithResponses) ListSubscriptionsWithResponse

func (c *ClientWithResponses) ListSubscriptionsWithResponse(ctx context.Context, params *ListSubscriptionsParams, reqEditors ...RequestEditorFn) (*ListSubscriptionsResult, error)

ListSubscriptionsWithResponse List subscriptions

Bounded list for this tenant and environment. Requires `tracking:read`.

Authentication: send `Authorization: Bearer bdy_test_<your_key>` or `bdy_live_<your_key>`. Required scopes are listed per operation. Every public response includes `X-Bardiya-Request-Id`; send that value to Bardiya support when debugging.

Returns a wrapper object for the known response body format(s).

Corresponds with GET /v1/tracking/subscriptions (the `ListSubscriptions` operationId).

func (*ClientWithResponses) ListWebhookDeliveriesWithResponse

func (c *ClientWithResponses) ListWebhookDeliveriesWithResponse(ctx context.Context, endpointId openapi_types.UUID, params *ListWebhookDeliveriesParams, reqEditors ...RequestEditorFn) (*ListWebhookDeliveriesResult, error)

ListWebhookDeliveriesWithResponse List webhook delivery attempts

Returns bounded delivery logs including status, attempts, response status, excerpts, and errors. Requires `webhooks:manage`.

Authentication: send `Authorization: Bearer bdy_test_<your_key>` or `bdy_live_<your_key>`. Required scopes are listed per operation. Every public response includes `X-Bardiya-Request-Id`; send that value to Bardiya support when debugging.

Returns a wrapper object for the known response body format(s).

Corresponds with GET /v1/webhooks/{endpoint_id}/deliveries (the `ListWebhookDeliveries` operationId).

func (*ClientWithResponses) ListWebhooksWithResponse

func (c *ClientWithResponses) ListWebhooksWithResponse(ctx context.Context, params *ListWebhooksParams, reqEditors ...RequestEditorFn) (*ListWebhooksResult, error)

ListWebhooksWithResponse List webhook endpoints

Lists endpoints for the API-key environment without returning signing secrets. Requires `webhooks:manage`.

Authentication: send `Authorization: Bearer bdy_test_<your_key>` or `bdy_live_<your_key>`. Required scopes are listed per operation. Every public response includes `X-Bardiya-Request-Id`; send that value to Bardiya support when debugging.

Returns a wrapper object for the known response body format(s).

Corresponds with GET /v1/webhooks (the `ListWebhooks` operationId).

func (*ClientWithResponses) MintClientTokenWithBodyWithResponse

func (c *ClientWithResponses) MintClientTokenWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*MintClientTokenResult, error)

MintClientTokenWithBodyWithResponse Mint a short-lived client-access token

Server-to-server only. Exchanges an organization API key (scope `client_tokens:mint`) for a short-lived opaque `bdy_cli_*` bearer authorizing READ-ONLY realtime on an explicit, immutable subject set. The plaintext token is returned exactly once.

Authentication: send `Authorization: Bearer bdy_test_<your_key>` or `bdy_live_<your_key>`. Required scopes are listed per operation. Every public response includes `X-Bardiya-Request-Id`; send that value to Bardiya support when debugging.

Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).

Corresponds with POST /v1/tracking/client-tokens (the `MintClientToken` operationId).

func (*ClientWithResponses) MintClientTokenWithResponse

func (c *ClientWithResponses) MintClientTokenWithResponse(ctx context.Context, body MintClientTokenJSONRequestBody, reqEditors ...RequestEditorFn) (*MintClientTokenResult, error)

MintClientTokenWithResponse Mint a short-lived client-access token

Server-to-server only. Exchanges an organization API key (scope `client_tokens:mint`) for a short-lived opaque `bdy_cli_*` bearer authorizing READ-ONLY realtime on an explicit, immutable subject set. The plaintext token is returned exactly once.

Authentication: send `Authorization: Bearer bdy_test_<your_key>` or `bdy_live_<your_key>`. Required scopes are listed per operation. Every public response includes `X-Bardiya-Request-Id`; send that value to Bardiya support when debugging.

Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).

Corresponds with POST /v1/tracking/client-tokens (the `MintClientToken` operationId).

func (*ClientWithResponses) RetryWebhookDeliveryWithResponse

func (c *ClientWithResponses) RetryWebhookDeliveryWithResponse(ctx context.Context, endpointId openapi_types.UUID, deliveryId openapi_types.UUID, reqEditors ...RequestEditorFn) (*RetryWebhookDeliveryResult, error)

RetryWebhookDeliveryWithResponse Retry a webhook delivery

Creates a new pending delivery linked to a failed, dead, or cancelled delivery. Requires `webhooks:manage`.

Authentication: send `Authorization: Bearer bdy_test_<your_key>` or `bdy_live_<your_key>`. Required scopes are listed per operation. Every public response includes `X-Bardiya-Request-Id`; send that value to Bardiya support when debugging.

Returns a wrapper object for the known response body format(s).

Corresponds with POST /v1/webhooks/{endpoint_id}/deliveries/{delivery_id}/retry (the `RetryWebhookDelivery` operationId).

func (*ClientWithResponses) ReverseGeocodeWithResponse

func (c *ClientWithResponses) ReverseGeocodeWithResponse(ctx context.Context, params *ReverseGeocodeParams, reqEditors ...RequestEditorFn) (*ReverseGeocodeResult, error)

ReverseGeocodeWithResponse Public Reverse Geocode

Public reverse geocoding: coordinates -> Egyptian administrative hierarchy.

Returns a wrapper object for the known response body format(s).

Corresponds with GET /v1/geocode/reverse (the `ReverseGeocode` operationId).

func (*ClientWithResponses) RevokeClientTokenWithResponse

func (c *ClientWithResponses) RevokeClientTokenWithResponse(ctx context.Context, tokenId openapi_types.UUID, reqEditors ...RequestEditorFn) (*RevokeClientTokenResult, error)

RevokeClientTokenWithResponse Revoke a client token

Soft-revokes immediately for new connections; active sockets revalidate on a bounded interval.

Authentication: send `Authorization: Bearer bdy_test_<your_key>` or `bdy_live_<your_key>`. Required scopes are listed per operation. Every public response includes `X-Bardiya-Request-Id`; send that value to Bardiya support when debugging.

Returns a wrapper object for the known response body format(s).

Corresponds with DELETE /v1/tracking/client-tokens/{token_id} (the `RevokeClientToken` operationId).

func (*ClientWithResponses) SearchPlacesWithResponse

func (c *ClientWithResponses) SearchPlacesWithResponse(ctx context.Context, params *SearchPlacesParams, reqEditors ...RequestEditorFn) (*SearchPlacesResult, error)

SearchPlacesWithResponse Public Place Search

Public place and address search (Arabic and English).

Returns a wrapper object for the known response body format(s).

Corresponds with GET /v1/places/search (the `SearchPlaces` operationId).

func (*ClientWithResponses) SendEventWithBodyWithResponse

func (c *ClientWithResponses) SendEventWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SendEventResult, error)

SendEventWithBodyWithResponse Send one telemetry event by subject or session

Ingests one telemetry event targeted at a tracked subject (subject_type + subject_ref) or an explicit session_id. Exactly one targeting mode per request. `client_event_id` is the idempotency key for retries. Response semantics are identical to `POST /v1/tracking/sessions/{id}/locations`. Requires `tracking:write`.

Authentication: send `Authorization: Bearer bdy_test_<your_key>` or `bdy_live_<your_key>`. Required scopes are listed per operation. Every public response includes `X-Bardiya-Request-Id`; send that value to Bardiya support when debugging.

Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).

Corresponds with POST /v1/tracking/events (the `SendEvent` operationId).

func (*ClientWithResponses) SendEventWithResponse

func (c *ClientWithResponses) SendEventWithResponse(ctx context.Context, body SendEventJSONRequestBody, reqEditors ...RequestEditorFn) (*SendEventResult, error)

SendEventWithResponse Send one telemetry event by subject or session

Ingests one telemetry event targeted at a tracked subject (subject_type + subject_ref) or an explicit session_id. Exactly one targeting mode per request. `client_event_id` is the idempotency key for retries. Response semantics are identical to `POST /v1/tracking/sessions/{id}/locations`. Requires `tracking:write`.

Authentication: send `Authorization: Bearer bdy_test_<your_key>` or `bdy_live_<your_key>`. Required scopes are listed per operation. Every public response includes `X-Bardiya-Request-Id`; send that value to Bardiya support when debugging.

Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).

Corresponds with POST /v1/tracking/events (the `SendEvent` operationId).

func (*ClientWithResponses) SendFleetBatchWithBodyWithResponse

func (c *ClientWithResponses) SendFleetBatchWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SendFleetBatchResult, error)

SendFleetBatchWithBodyWithResponse Send one bounded, tenant-scoped fleet batch

Ingests 1-100 telemetry events for one or more sessions owned by the authenticated tenant/key in one request. Each event keeps its own `session_id` and `client_event_id`. Quota admission is one atomic micro-transaction on the dedicated quota pool; durable storage of all admitted events is one database transaction. A quota/revocation rejection debits nothing. A storage failure rolls back every event row, but an already-committed quota admission is a rate-limit event, not a billing charge. Per-event validation/ownership failures are returned in `results` while valid sibling events commit (partial per-event success, atomic storage failure). Requires `tracking:write`.

Authentication: send `Authorization: Bearer bdy_test_<your_key>` or `bdy_live_<your_key>`. Required scopes are listed per operation. Every public response includes `X-Bardiya-Request-Id`; send that value to Bardiya support when debugging.

Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).

Corresponds with POST /v1/tracking/locations/batch (the `SendFleetBatch` operationId).

func (*ClientWithResponses) SendFleetBatchWithResponse

func (c *ClientWithResponses) SendFleetBatchWithResponse(ctx context.Context, body SendFleetBatchJSONRequestBody, reqEditors ...RequestEditorFn) (*SendFleetBatchResult, error)

SendFleetBatchWithResponse Send one bounded, tenant-scoped fleet batch

Ingests 1-100 telemetry events for one or more sessions owned by the authenticated tenant/key in one request. Each event keeps its own `session_id` and `client_event_id`. Quota admission is one atomic micro-transaction on the dedicated quota pool; durable storage of all admitted events is one database transaction. A quota/revocation rejection debits nothing. A storage failure rolls back every event row, but an already-committed quota admission is a rate-limit event, not a billing charge. Per-event validation/ownership failures are returned in `results` while valid sibling events commit (partial per-event success, atomic storage failure). Requires `tracking:write`.

Authentication: send `Authorization: Bearer bdy_test_<your_key>` or `bdy_live_<your_key>`. Required scopes are listed per operation. Every public response includes `X-Bardiya-Request-Id`; send that value to Bardiya support when debugging.

Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).

Corresponds with POST /v1/tracking/locations/batch (the `SendFleetBatch` operationId).

func (*ClientWithResponses) SendLocationBatchWithBodyWithResponse

func (c *ClientWithResponses) SendLocationBatchWithBodyWithResponse(ctx context.Context, sessionId openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SendLocationBatchResult, error)

SendLocationBatchWithBodyWithResponse Send a bounded location batch

Ingests 1أ¢â‚¬â€œ100 telemetry events in one bounded request. Each event keeps its own `client_event_id`. Requires `tracking:write`.

Authentication: send `Authorization: Bearer bdy_test_<your_key>` or `bdy_live_<your_key>`. Required scopes are listed per operation. Every public response includes `X-Bardiya-Request-Id`; send that value to Bardiya support when debugging.

Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).

Corresponds with POST /v1/tracking/sessions/{session_id}/locations/batch (the `SendLocationBatch` operationId).

func (*ClientWithResponses) SendLocationBatchWithIngestCredentialWithBodyWithResponse

func (c *ClientWithResponses) SendLocationBatchWithIngestCredentialWithBodyWithResponse(ctx context.Context, sessionId openapi_types.UUID, params *SendLocationBatchWithIngestCredentialParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SendLocationBatchWithIngestCredentialResult, error)

SendLocationBatchWithIngestCredentialWithBodyWithResponse Handle Ingest Batch

Ingest a bounded batch with a session-scoped credential instead of an API key.

Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).

Corresponds with POST /api/v1/tracking/sessions/{session_id}/locations/batch (the `SendLocationBatchWithIngestCredential` operationId).

func (*ClientWithResponses) SendLocationBatchWithIngestCredentialWithResponse

SendLocationBatchWithIngestCredentialWithResponse Handle Ingest Batch

Ingest a bounded batch with a session-scoped credential instead of an API key.

Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).

Corresponds with POST /api/v1/tracking/sessions/{session_id}/locations/batch (the `SendLocationBatchWithIngestCredential` operationId).

func (*ClientWithResponses) SendLocationBatchWithResponse

func (c *ClientWithResponses) SendLocationBatchWithResponse(ctx context.Context, sessionId openapi_types.UUID, body SendLocationBatchJSONRequestBody, reqEditors ...RequestEditorFn) (*SendLocationBatchResult, error)

SendLocationBatchWithResponse Send a bounded location batch

Ingests 1أ¢â‚¬â€œ100 telemetry events in one bounded request. Each event keeps its own `client_event_id`. Requires `tracking:write`.

Authentication: send `Authorization: Bearer bdy_test_<your_key>` or `bdy_live_<your_key>`. Required scopes are listed per operation. Every public response includes `X-Bardiya-Request-Id`; send that value to Bardiya support when debugging.

Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).

Corresponds with POST /v1/tracking/sessions/{session_id}/locations/batch (the `SendLocationBatch` operationId).

func (*ClientWithResponses) SendLocationWithBodyWithResponse

func (c *ClientWithResponses) SendLocationWithBodyWithResponse(ctx context.Context, sessionId openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SendLocationResult, error)

SendLocationWithBodyWithResponse Send one location or heartbeat

Ingests one telemetry event. `client_event_id` is the idempotency key for retries. Requires `tracking:write`.

Authentication: send `Authorization: Bearer bdy_test_<your_key>` or `bdy_live_<your_key>`. Required scopes are listed per operation. Every public response includes `X-Bardiya-Request-Id`; send that value to Bardiya support when debugging.

Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).

Corresponds with POST /v1/tracking/sessions/{session_id}/locations (the `SendLocation` operationId).

func (*ClientWithResponses) SendLocationWithIngestCredentialWithBodyWithResponse

func (c *ClientWithResponses) SendLocationWithIngestCredentialWithBodyWithResponse(ctx context.Context, sessionId openapi_types.UUID, params *SendLocationWithIngestCredentialParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SendLocationWithIngestCredentialResult, error)

SendLocationWithIngestCredentialWithBodyWithResponse Handle Ingest Location

Ingest one event with a session-scoped credential instead of an API key.

Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).

Corresponds with POST /api/v1/tracking/sessions/{session_id}/locations (the `SendLocationWithIngestCredential` operationId).

func (*ClientWithResponses) SendLocationWithIngestCredentialWithResponse

SendLocationWithIngestCredentialWithResponse Handle Ingest Location

Ingest one event with a session-scoped credential instead of an API key.

Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).

Corresponds with POST /api/v1/tracking/sessions/{session_id}/locations (the `SendLocationWithIngestCredential` operationId).

func (*ClientWithResponses) SendLocationWithResponse

func (c *ClientWithResponses) SendLocationWithResponse(ctx context.Context, sessionId openapi_types.UUID, body SendLocationJSONRequestBody, reqEditors ...RequestEditorFn) (*SendLocationResult, error)

SendLocationWithResponse Send one location or heartbeat

Ingests one telemetry event. `client_event_id` is the idempotency key for retries. Requires `tracking:write`.

Authentication: send `Authorization: Bearer bdy_test_<your_key>` or `bdy_live_<your_key>`. Required scopes are listed per operation. Every public response includes `X-Bardiya-Request-Id`; send that value to Bardiya support when debugging.

Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).

Corresponds with POST /v1/tracking/sessions/{session_id}/locations (the `SendLocation` operationId).

func (*ClientWithResponses) StreamSessionWithResponse

func (c *ClientWithResponses) StreamSessionWithResponse(ctx context.Context, sessionId openapi_types.UUID, reqEditors ...RequestEditorFn) (*StreamSessionResult, error)

StreamSessionWithResponse Stream a session over authenticated SSE

Server-sent events for one session. Frames are `event:` + `data:` pairs: `snapshot`, `location`, `heartbeat`, `limit` and `closed`. Each `location` frame carries an `id` of the form `<session_id>:<state_version>`; resume is not supported, so reconnect and re-read the snapshot instead.

Returns a wrapper object for the known response body format(s).

Corresponds with GET /v1/tracking/sessions/{session_id}/stream (the `StreamSession` operationId).

func (*ClientWithResponses) UpdateWebhookWithBodyWithResponse

func (c *ClientWithResponses) UpdateWebhookWithBodyWithResponse(ctx context.Context, endpointId openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateWebhookResult, error)

UpdateWebhookWithBodyWithResponse Update a webhook endpoint

Updates the URL, subscriptions, or active/disabled status. Requires `webhooks:manage`.

Authentication: send `Authorization: Bearer bdy_test_<your_key>` or `bdy_live_<your_key>`. Required scopes are listed per operation. Every public response includes `X-Bardiya-Request-Id`; send that value to Bardiya support when debugging.

Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).

Corresponds with PATCH /v1/webhooks/{endpoint_id} (the `UpdateWebhook` operationId).

func (*ClientWithResponses) UpdateWebhookWithResponse

func (c *ClientWithResponses) UpdateWebhookWithResponse(ctx context.Context, endpointId openapi_types.UUID, body UpdateWebhookJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateWebhookResult, error)

UpdateWebhookWithResponse Update a webhook endpoint

Updates the URL, subscriptions, or active/disabled status. Requires `webhooks:manage`.

Authentication: send `Authorization: Bearer bdy_test_<your_key>` or `bdy_live_<your_key>`. Required scopes are listed per operation. Every public response includes `X-Bardiya-Request-Id`; send that value to Bardiya support when debugging.

Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).

Corresponds with PATCH /v1/webhooks/{endpoint_id} (the `UpdateWebhook` operationId).

func (*ClientWithResponses) ValidateAddressWithBodyWithResponse

func (c *ClientWithResponses) ValidateAddressWithBodyWithResponse(ctx context.Context, params *ValidateAddressParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ValidateAddressResult, error)

ValidateAddressWithBodyWithResponse Public Validate Address

Public Egyptian address validation (street + landmark).

Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).

Corresponds with POST /v1/validate-address (the `ValidateAddress` operationId).

func (*ClientWithResponses) ValidateAddressWithResponse

func (c *ClientWithResponses) ValidateAddressWithResponse(ctx context.Context, params *ValidateAddressParams, body ValidateAddressJSONRequestBody, reqEditors ...RequestEditorFn) (*ValidateAddressResult, error)

ValidateAddressWithResponse Public Validate Address

Public Egyptian address validation (street + landmark).

Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).

Corresponds with POST /v1/validate-address (the `ValidateAddress` operationId).

type ClientWithResponsesInterface

type ClientWithResponsesInterface interface {

	// SendLocationWithIngestCredentialWithBodyWithResponse Handle Ingest Location
	//
	// Ingest one event with a session-scoped credential instead of an API key.
	//
	// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /api/v1/tracking/sessions/{session_id}/locations (the `SendLocationWithIngestCredential` operationId).
	SendLocationWithIngestCredentialWithBodyWithResponse(ctx context.Context, sessionId openapi_types.UUID, params *SendLocationWithIngestCredentialParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SendLocationWithIngestCredentialResult, error)

	// SendLocationWithIngestCredentialWithResponse Handle Ingest Location
	//
	// Ingest one event with a session-scoped credential instead of an API key.
	//
	// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /api/v1/tracking/sessions/{session_id}/locations (the `SendLocationWithIngestCredential` operationId).
	SendLocationWithIngestCredentialWithResponse(ctx context.Context, sessionId openapi_types.UUID, params *SendLocationWithIngestCredentialParams, body SendLocationWithIngestCredentialJSONRequestBody, reqEditors ...RequestEditorFn) (*SendLocationWithIngestCredentialResult, error)

	// SendLocationBatchWithIngestCredentialWithBodyWithResponse Handle Ingest Batch
	//
	// Ingest a bounded batch with a session-scoped credential instead of an API key.
	//
	// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /api/v1/tracking/sessions/{session_id}/locations/batch (the `SendLocationBatchWithIngestCredential` operationId).
	SendLocationBatchWithIngestCredentialWithBodyWithResponse(ctx context.Context, sessionId openapi_types.UUID, params *SendLocationBatchWithIngestCredentialParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SendLocationBatchWithIngestCredentialResult, error)

	// SendLocationBatchWithIngestCredentialWithResponse Handle Ingest Batch
	//
	// Ingest a bounded batch with a session-scoped credential instead of an API key.
	//
	// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /api/v1/tracking/sessions/{session_id}/locations/batch (the `SendLocationBatchWithIngestCredential` operationId).
	SendLocationBatchWithIngestCredentialWithResponse(ctx context.Context, sessionId openapi_types.UUID, params *SendLocationBatchWithIngestCredentialParams, body SendLocationBatchWithIngestCredentialJSONRequestBody, reqEditors ...RequestEditorFn) (*SendLocationBatchWithIngestCredentialResult, error)

	// DirectionsWithBodyWithResponse Public Directions
	//
	// Public Directions API backed by OSRM with an explicit degraded fallback.
	//
	// When OSRM is unreachable the fallback returns a haversine straight-line
	// estimate over road-snapped sample points and marks it
	// “degraded=true, road_network=false“; it never claims a road route.
	//
	// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /v1/directions (the `Directions` operationId).
	DirectionsWithBodyWithResponse(ctx context.Context, params *DirectionsParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DirectionsResult, error)

	// DirectionsWithResponse Public Directions
	//
	// Public Directions API backed by OSRM with an explicit degraded fallback.
	//
	// When OSRM is unreachable the fallback returns a haversine straight-line
	// estimate over road-snapped sample points and marks it
	// “degraded=true, road_network=false“; it never claims a road route.
	//
	// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /v1/directions (the `Directions` operationId).
	DirectionsWithResponse(ctx context.Context, params *DirectionsParams, body DirectionsJSONRequestBody, reqEditors ...RequestEditorFn) (*DirectionsResult, error)

	// DistanceMatrixWithBodyWithResponse Public Distance Matrix
	//
	// Public Distance Matrix API (OSRM table, one normalized schema).
	//
	// “distances_meters“ and “durations_seconds“ are always
	// “origin_count“ × “destination_count“. An unreachable pair is an
	// explicit “null“ cell instead of a shortened array; “per_cell_errors“
	// distinguishes “no_route“ (no duration) from “distance_unavailable“
	// (OSRM returned a duration but no distance annotation).
	//
	// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /v1/distance-matrix (the `DistanceMatrix` operationId).
	DistanceMatrixWithBodyWithResponse(ctx context.Context, params *DistanceMatrixParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DistanceMatrixResult, error)

	// DistanceMatrixWithResponse Public Distance Matrix
	//
	// Public Distance Matrix API (OSRM table, one normalized schema).
	//
	// “distances_meters“ and “durations_seconds“ are always
	// “origin_count“ × “destination_count“. An unreachable pair is an
	// explicit “null“ cell instead of a shortened array; “per_cell_errors“
	// distinguishes “no_route“ (no duration) from “distance_unavailable“
	// (OSRM returned a duration but no distance annotation).
	//
	// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /v1/distance-matrix (the `DistanceMatrix` operationId).
	DistanceMatrixWithResponse(ctx context.Context, params *DistanceMatrixParams, body DistanceMatrixJSONRequestBody, reqEditors ...RequestEditorFn) (*DistanceMatrixResult, error)

	// ForwardGeocodeWithResponse Public Forward Geocode
	//
	// Public forward geocoding: free-text address -> coordinates.
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with GET /v1/geocode (the `ForwardGeocode` operationId).
	ForwardGeocodeWithResponse(ctx context.Context, params *ForwardGeocodeParams, reqEditors ...RequestEditorFn) (*ForwardGeocodeResult, error)

	// ReverseGeocodeWithResponse Public Reverse Geocode
	//
	// Public reverse geocoding: coordinates -> Egyptian administrative hierarchy.
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with GET /v1/geocode/reverse (the `ReverseGeocode` operationId).
	ReverseGeocodeWithResponse(ctx context.Context, params *ReverseGeocodeParams, reqEditors ...RequestEditorFn) (*ReverseGeocodeResult, error)

	// HealthLiveWithResponse Public Health Live
	//
	// Liveness probe. No credential required.
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with GET /v1/health/live (the `HealthLive` operationId).
	HealthLiveWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*HealthLiveResult, error)

	// HealthReadyWithResponse Public Health Ready
	//
	// Readiness with product availability. No credential required.
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with GET /v1/health/ready (the `HealthReady` operationId).
	HealthReadyWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*HealthReadyResult, error)

	// AutocompletePlacesWithResponse Public Place Autocomplete
	//
	// Public autocomplete suggestions.
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with GET /v1/places/autocomplete (the `AutocompletePlaces` operationId).
	AutocompletePlacesWithResponse(ctx context.Context, params *AutocompletePlacesParams, reqEditors ...RequestEditorFn) (*AutocompletePlacesResult, error)

	// SearchPlacesWithResponse Public Place Search
	//
	// Public place and address search (Arabic and English).
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with GET /v1/places/search (the `SearchPlaces` operationId).
	SearchPlacesWithResponse(ctx context.Context, params *SearchPlacesParams, reqEditors ...RequestEditorFn) (*SearchPlacesResult, error)

	// GetPlaceWithResponse Public Place Details
	//
	// Public place details from the Overture-derived places data.
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with GET /v1/places/{place_id} (the `GetPlace` operationId).
	GetPlaceWithResponse(ctx context.Context, placeId string, params *GetPlaceParams, reqEditors ...RequestEditorFn) (*GetPlaceResult, error)

	// GetStyleWithResponse Public Style
	//
	// MapLibre style configured for Bardiya tiles. Accepts `?api_key=`.
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with GET /v1/style.json (the `GetStyle` operationId).
	GetStyleWithResponse(ctx context.Context, params *GetStyleParams, reqEditors ...RequestEditorFn) (*GetStyleResult, error)

	// GetTileWithResponse Public Tile
	//
	// Vector tile bytes. Empty tiles return 204. Accepts `?api_key=`.
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with GET /v1/tiles/{source}/{z}/{x}/{y} (the `GetTile` operationId).
	GetTileWithResponse(ctx context.Context, source string, z string, x string, y string, params *GetTileParams, reqEditors ...RequestEditorFn) (*GetTileResult, error)

	// ListClientTokensWithResponse List client tokens
	//
	// Bounded metadata list; never includes token material or digests.
	//
	// Authentication: send `Authorization: Bearer bdy_test_<your_key>` or `bdy_live_<your_key>`. Required scopes are listed per operation. Every public response includes `X-Bardiya-Request-Id`; send that value to Bardiya support when debugging.
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with GET /v1/tracking/client-tokens (the `ListClientTokens` operationId).
	ListClientTokensWithResponse(ctx context.Context, params *ListClientTokensParams, reqEditors ...RequestEditorFn) (*ListClientTokensResult, error)

	// MintClientTokenWithBodyWithResponse Mint a short-lived client-access token
	//
	// Server-to-server only. Exchanges an organization API key (scope `client_tokens:mint`) for a short-lived opaque `bdy_cli_*` bearer authorizing READ-ONLY realtime on an explicit, immutable subject set. The plaintext token is returned exactly once.
	//
	// Authentication: send `Authorization: Bearer bdy_test_<your_key>` or `bdy_live_<your_key>`. Required scopes are listed per operation. Every public response includes `X-Bardiya-Request-Id`; send that value to Bardiya support when debugging.
	//
	// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /v1/tracking/client-tokens (the `MintClientToken` operationId).
	MintClientTokenWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*MintClientTokenResult, error)

	// MintClientTokenWithResponse Mint a short-lived client-access token
	//
	// Server-to-server only. Exchanges an organization API key (scope `client_tokens:mint`) for a short-lived opaque `bdy_cli_*` bearer authorizing READ-ONLY realtime on an explicit, immutable subject set. The plaintext token is returned exactly once.
	//
	// Authentication: send `Authorization: Bearer bdy_test_<your_key>` or `bdy_live_<your_key>`. Required scopes are listed per operation. Every public response includes `X-Bardiya-Request-Id`; send that value to Bardiya support when debugging.
	//
	// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /v1/tracking/client-tokens (the `MintClientToken` operationId).
	MintClientTokenWithResponse(ctx context.Context, body MintClientTokenJSONRequestBody, reqEditors ...RequestEditorFn) (*MintClientTokenResult, error)

	// RevokeClientTokenWithResponse Revoke a client token
	//
	// Soft-revokes immediately for new connections; active sockets revalidate on a bounded interval.
	//
	// Authentication: send `Authorization: Bearer bdy_test_<your_key>` or `bdy_live_<your_key>`. Required scopes are listed per operation. Every public response includes `X-Bardiya-Request-Id`; send that value to Bardiya support when debugging.
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with DELETE /v1/tracking/client-tokens/{token_id} (the `RevokeClientToken` operationId).
	RevokeClientTokenWithResponse(ctx context.Context, tokenId openapi_types.UUID, reqEditors ...RequestEditorFn) (*RevokeClientTokenResult, error)

	// SendEventWithBodyWithResponse Send one telemetry event by subject or session
	//
	// Ingests one telemetry event targeted at a tracked subject (subject_type + subject_ref) or an explicit session_id. Exactly one targeting mode per request. `client_event_id` is the idempotency key for retries. Response semantics are identical to `POST /v1/tracking/sessions/{id}/locations`. Requires `tracking:write`.
	//
	// Authentication: send `Authorization: Bearer bdy_test_<your_key>` or `bdy_live_<your_key>`. Required scopes are listed per operation. Every public response includes `X-Bardiya-Request-Id`; send that value to Bardiya support when debugging.
	//
	// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /v1/tracking/events (the `SendEvent` operationId).
	SendEventWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SendEventResult, error)

	// SendEventWithResponse Send one telemetry event by subject or session
	//
	// Ingests one telemetry event targeted at a tracked subject (subject_type + subject_ref) or an explicit session_id. Exactly one targeting mode per request. `client_event_id` is the idempotency key for retries. Response semantics are identical to `POST /v1/tracking/sessions/{id}/locations`. Requires `tracking:write`.
	//
	// Authentication: send `Authorization: Bearer bdy_test_<your_key>` or `bdy_live_<your_key>`. Required scopes are listed per operation. Every public response includes `X-Bardiya-Request-Id`; send that value to Bardiya support when debugging.
	//
	// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /v1/tracking/events (the `SendEvent` operationId).
	SendEventWithResponse(ctx context.Context, body SendEventJSONRequestBody, reqEditors ...RequestEditorFn) (*SendEventResult, error)

	// SendFleetBatchWithBodyWithResponse Send one bounded, tenant-scoped fleet batch
	//
	// Ingests 1-100 telemetry events for one or more sessions owned by the authenticated tenant/key in one request. Each event keeps its own `session_id` and `client_event_id`. Quota admission is one atomic micro-transaction on the dedicated quota pool; durable storage of all admitted events is one database transaction. A quota/revocation rejection debits nothing. A storage failure rolls back every event row, but an already-committed quota admission is a rate-limit event, not a billing charge. Per-event validation/ownership failures are returned in `results` while valid sibling events commit (partial per-event success, atomic storage failure). Requires `tracking:write`.
	//
	// Authentication: send `Authorization: Bearer bdy_test_<your_key>` or `bdy_live_<your_key>`. Required scopes are listed per operation. Every public response includes `X-Bardiya-Request-Id`; send that value to Bardiya support when debugging.
	//
	// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /v1/tracking/locations/batch (the `SendFleetBatch` operationId).
	SendFleetBatchWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SendFleetBatchResult, error)

	// SendFleetBatchWithResponse Send one bounded, tenant-scoped fleet batch
	//
	// Ingests 1-100 telemetry events for one or more sessions owned by the authenticated tenant/key in one request. Each event keeps its own `session_id` and `client_event_id`. Quota admission is one atomic micro-transaction on the dedicated quota pool; durable storage of all admitted events is one database transaction. A quota/revocation rejection debits nothing. A storage failure rolls back every event row, but an already-committed quota admission is a rate-limit event, not a billing charge. Per-event validation/ownership failures are returned in `results` while valid sibling events commit (partial per-event success, atomic storage failure). Requires `tracking:write`.
	//
	// Authentication: send `Authorization: Bearer bdy_test_<your_key>` or `bdy_live_<your_key>`. Required scopes are listed per operation. Every public response includes `X-Bardiya-Request-Id`; send that value to Bardiya support when debugging.
	//
	// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /v1/tracking/locations/batch (the `SendFleetBatch` operationId).
	SendFleetBatchWithResponse(ctx context.Context, body SendFleetBatchJSONRequestBody, reqEditors ...RequestEditorFn) (*SendFleetBatchResult, error)

	// ListSessionsWithResponse List tracking sessions
	//
	// Returns a bounded cursor-paginated session list. Requires `tracking:read`.
	//
	// Authentication: send `Authorization: Bearer bdy_test_<your_key>` or `bdy_live_<your_key>`. Required scopes are listed per operation. Every public response includes `X-Bardiya-Request-Id`; send that value to Bardiya support when debugging.
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with GET /v1/tracking/sessions (the `ListSessions` operationId).
	ListSessionsWithResponse(ctx context.Context, params *ListSessionsParams, reqEditors ...RequestEditorFn) (*ListSessionsResult, error)

	// CreateSessionWithBodyWithResponse Create a tracking session
	//
	// Creates and activates a generic tracked subject. Requires `tracking:write`. Retry safely with `Idempotency-Key` when supported by the deployment schema.
	//
	// Authentication: send `Authorization: Bearer bdy_test_<your_key>` or `bdy_live_<your_key>`. Required scopes are listed per operation. Every public response includes `X-Bardiya-Request-Id`; send that value to Bardiya support when debugging.
	//
	// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /v1/tracking/sessions (the `CreateSession` operationId).
	CreateSessionWithBodyWithResponse(ctx context.Context, params *CreateSessionParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateSessionResult, error)

	// CreateSessionWithResponse Create a tracking session
	//
	// Creates and activates a generic tracked subject. Requires `tracking:write`. Retry safely with `Idempotency-Key` when supported by the deployment schema.
	//
	// Authentication: send `Authorization: Bearer bdy_test_<your_key>` or `bdy_live_<your_key>`. Required scopes are listed per operation. Every public response includes `X-Bardiya-Request-Id`; send that value to Bardiya support when debugging.
	//
	// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /v1/tracking/sessions (the `CreateSession` operationId).
	CreateSessionWithResponse(ctx context.Context, params *CreateSessionParams, body CreateSessionJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateSessionResult, error)

	// GetSessionWithResponse Get a tracking session
	//
	// Returns one tenant-visible session. Requires `tracking:read`.
	//
	// Authentication: send `Authorization: Bearer bdy_test_<your_key>` or `bdy_live_<your_key>`. Required scopes are listed per operation. Every public response includes `X-Bardiya-Request-Id`; send that value to Bardiya support when debugging.
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with GET /v1/tracking/sessions/{session_id} (the `GetSession` operationId).
	GetSessionWithResponse(ctx context.Context, sessionId openapi_types.UUID, reqEditors ...RequestEditorFn) (*GetSessionResult, error)

	// EndSessionWithResponse End a tracking session
	//
	// Ends an active or created session. The operation is idempotent; use `Idempotency-Key` for safe client retries. Requires `tracking:write`.
	//
	// Authentication: send `Authorization: Bearer bdy_test_<your_key>` or `bdy_live_<your_key>`. Required scopes are listed per operation. Every public response includes `X-Bardiya-Request-Id`; send that value to Bardiya support when debugging.
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /v1/tracking/sessions/{session_id}/end (the `EndSession` operationId).
	EndSessionWithResponse(ctx context.Context, sessionId openapi_types.UUID, params *EndSessionParams, reqEditors ...RequestEditorFn) (*EndSessionResult, error)

	// GetHistoryWithResponse Get durable tracking history
	//
	// Returns bounded keyset-paginated location history for recovery and playback. Requires `tracking:read`. History older than the hot retention window is served from the verified immutable archive once source reclamation is active; a page is never partially returned. Archive failures use `history_archive_unavailable` (503), `history_archive_incomplete` (503), `history_archive_scan_limit` (503) or `history_archive_corrupt` (502); retry only the first three.
	//
	// Authentication: send `Authorization: Bearer bdy_test_<your_key>` or `bdy_live_<your_key>`. Required scopes are listed per operation. Every public response includes `X-Bardiya-Request-Id`; send that value to Bardiya support when debugging.
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with GET /v1/tracking/sessions/{session_id}/history (the `GetHistory` operationId).
	GetHistoryWithResponse(ctx context.Context, sessionId openapi_types.UUID, params *GetHistoryParams, reqEditors ...RequestEditorFn) (*GetHistoryResult, error)

	// IssueIngestTokenWithResponse Issue a session-scoped device ingest token
	//
	// PROD-04 producer flow: exchanges an organization API key (`tracking:write`) for a session-scoped ingest credential intended for a mobile PRODUCER device. The plaintext token is returned exactly once; it authorizes ingest to THIS session only and grants no read, management, or cross-session capability. Delegates to the existing credential service.
	//
	// Authentication: send `Authorization: Bearer bdy_test_<your_key>` or `bdy_live_<your_key>`. Required scopes are listed per operation. Every public response includes `X-Bardiya-Request-Id`; send that value to Bardiya support when debugging.
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /v1/tracking/sessions/{session_id}/ingest-token (the `IssueIngestToken` operationId).
	IssueIngestTokenWithResponse(ctx context.Context, sessionId openapi_types.UUID, reqEditors ...RequestEditorFn) (*IssueIngestTokenResult, error)

	// SendLocationWithBodyWithResponse Send one location or heartbeat
	//
	// Ingests one telemetry event. `client_event_id` is the idempotency key for retries. Requires `tracking:write`.
	//
	// Authentication: send `Authorization: Bearer bdy_test_<your_key>` or `bdy_live_<your_key>`. Required scopes are listed per operation. Every public response includes `X-Bardiya-Request-Id`; send that value to Bardiya support when debugging.
	//
	// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /v1/tracking/sessions/{session_id}/locations (the `SendLocation` operationId).
	SendLocationWithBodyWithResponse(ctx context.Context, sessionId openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SendLocationResult, error)

	// SendLocationWithResponse Send one location or heartbeat
	//
	// Ingests one telemetry event. `client_event_id` is the idempotency key for retries. Requires `tracking:write`.
	//
	// Authentication: send `Authorization: Bearer bdy_test_<your_key>` or `bdy_live_<your_key>`. Required scopes are listed per operation. Every public response includes `X-Bardiya-Request-Id`; send that value to Bardiya support when debugging.
	//
	// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /v1/tracking/sessions/{session_id}/locations (the `SendLocation` operationId).
	SendLocationWithResponse(ctx context.Context, sessionId openapi_types.UUID, body SendLocationJSONRequestBody, reqEditors ...RequestEditorFn) (*SendLocationResult, error)

	// SendLocationBatchWithBodyWithResponse Send a bounded location batch
	//
	// Ingests 1أ¢â‚¬â€œ100 telemetry events in one bounded request. Each event keeps its own `client_event_id`. Requires `tracking:write`.
	//
	// Authentication: send `Authorization: Bearer bdy_test_<your_key>` or `bdy_live_<your_key>`. Required scopes are listed per operation. Every public response includes `X-Bardiya-Request-Id`; send that value to Bardiya support when debugging.
	//
	// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /v1/tracking/sessions/{session_id}/locations/batch (the `SendLocationBatch` operationId).
	SendLocationBatchWithBodyWithResponse(ctx context.Context, sessionId openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SendLocationBatchResult, error)

	// SendLocationBatchWithResponse Send a bounded location batch
	//
	// Ingests 1أ¢â‚¬â€œ100 telemetry events in one bounded request. Each event keeps its own `client_event_id`. Requires `tracking:write`.
	//
	// Authentication: send `Authorization: Bearer bdy_test_<your_key>` or `bdy_live_<your_key>`. Required scopes are listed per operation. Every public response includes `X-Bardiya-Request-Id`; send that value to Bardiya support when debugging.
	//
	// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /v1/tracking/sessions/{session_id}/locations/batch (the `SendLocationBatch` operationId).
	SendLocationBatchWithResponse(ctx context.Context, sessionId openapi_types.UUID, body SendLocationBatchJSONRequestBody, reqEditors ...RequestEditorFn) (*SendLocationBatchResult, error)

	// GetStateWithResponse Get current tracking state
	//
	// Reads the latest state and derived `online`, `stale`, or `offline` freshness. Requires `tracking:read`.
	//
	// Authentication: send `Authorization: Bearer bdy_test_<your_key>` or `bdy_live_<your_key>`. Required scopes are listed per operation. Every public response includes `X-Bardiya-Request-Id`; send that value to Bardiya support when debugging.
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with GET /v1/tracking/sessions/{session_id}/state (the `GetState` operationId).
	GetStateWithResponse(ctx context.Context, sessionId openapi_types.UUID, reqEditors ...RequestEditorFn) (*GetStateResult, error)

	// StreamSessionWithResponse Stream a session over authenticated SSE
	//
	// Server-sent events for one session. Frames are `event:` + `data:` pairs:
	// `snapshot`, `location`, `heartbeat`, `limit` and `closed`. Each `location`
	// frame carries an `id` of the form `<session_id>:<state_version>`; resume
	// is not supported, so reconnect and re-read the snapshot instead.
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with GET /v1/tracking/sessions/{session_id}/stream (the `StreamSession` operationId).
	StreamSessionWithResponse(ctx context.Context, sessionId openapi_types.UUID, reqEditors ...RequestEditorFn) (*StreamSessionResult, error)

	// ListSubscriptionsWithResponse List subscriptions
	//
	// Bounded list for this tenant and environment. Requires `tracking:read`.
	//
	// Authentication: send `Authorization: Bearer bdy_test_<your_key>` or `bdy_live_<your_key>`. Required scopes are listed per operation. Every public response includes `X-Bardiya-Request-Id`; send that value to Bardiya support when debugging.
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with GET /v1/tracking/subscriptions (the `ListSubscriptions` operationId).
	ListSubscriptionsWithResponse(ctx context.Context, params *ListSubscriptionsParams, reqEditors ...RequestEditorFn) (*ListSubscriptionsResult, error)

	// CreateSubscriptionWithBodyWithResponse Create a subject subscription
	//
	// Registers an opaque consumer's interest in a tracked subject. Idempotent:
	// an existing subscription for the same subscriber and subject returns 200
	// with the existing record instead of creating a second one.
	//
	// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /v1/tracking/subscriptions (the `CreateSubscription` operationId).
	CreateSubscriptionWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateSubscriptionResult, error)

	// CreateSubscriptionWithResponse Create a subject subscription
	//
	// Registers an opaque consumer's interest in a tracked subject. Idempotent:
	// an existing subscription for the same subscriber and subject returns 200
	// with the existing record instead of creating a second one.
	//
	// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /v1/tracking/subscriptions (the `CreateSubscription` operationId).
	CreateSubscriptionWithResponse(ctx context.Context, body CreateSubscriptionJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateSubscriptionResult, error)

	// DeleteSubscriptionWithResponse Delete a subscription
	//
	// Deletes one subscription. The server returns 204 with no body.
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with DELETE /v1/tracking/subscriptions/{subscription_id} (the `DeleteSubscription` operationId).
	DeleteSubscriptionWithResponse(ctx context.Context, subscriptionId openapi_types.UUID, reqEditors ...RequestEditorFn) (*DeleteSubscriptionResult, error)

	// ValidateAddressWithBodyWithResponse Public Validate Address
	//
	// Public Egyptian address validation (street + landmark).
	//
	// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /v1/validate-address (the `ValidateAddress` operationId).
	ValidateAddressWithBodyWithResponse(ctx context.Context, params *ValidateAddressParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ValidateAddressResult, error)

	// ValidateAddressWithResponse Public Validate Address
	//
	// Public Egyptian address validation (street + landmark).
	//
	// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /v1/validate-address (the `ValidateAddress` operationId).
	ValidateAddressWithResponse(ctx context.Context, params *ValidateAddressParams, body ValidateAddressJSONRequestBody, reqEditors ...RequestEditorFn) (*ValidateAddressResult, error)

	// ListWebhooksWithResponse List webhook endpoints
	//
	// Lists endpoints for the API-key environment without returning signing secrets. Requires `webhooks:manage`.
	//
	// Authentication: send `Authorization: Bearer bdy_test_<your_key>` or `bdy_live_<your_key>`. Required scopes are listed per operation. Every public response includes `X-Bardiya-Request-Id`; send that value to Bardiya support when debugging.
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with GET /v1/webhooks (the `ListWebhooks` operationId).
	ListWebhooksWithResponse(ctx context.Context, params *ListWebhooksParams, reqEditors ...RequestEditorFn) (*ListWebhooksResult, error)

	// CreateWebhookWithBodyWithResponse Create a webhook endpoint
	//
	// Creates an active signed endpoint. Requires `webhooks:manage`; the raw `signing_secret` is returned only in this response.
	//
	// Authentication: send `Authorization: Bearer bdy_test_<your_key>` or `bdy_live_<your_key>`. Required scopes are listed per operation. Every public response includes `X-Bardiya-Request-Id`; send that value to Bardiya support when debugging.
	//
	// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /v1/webhooks (the `CreateWebhook` operationId).
	CreateWebhookWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateWebhookResult, error)

	// CreateWebhookWithResponse Create a webhook endpoint
	//
	// Creates an active signed endpoint. Requires `webhooks:manage`; the raw `signing_secret` is returned only in this response.
	//
	// Authentication: send `Authorization: Bearer bdy_test_<your_key>` or `bdy_live_<your_key>`. Required scopes are listed per operation. Every public response includes `X-Bardiya-Request-Id`; send that value to Bardiya support when debugging.
	//
	// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /v1/webhooks (the `CreateWebhook` operationId).
	CreateWebhookWithResponse(ctx context.Context, body CreateWebhookJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateWebhookResult, error)

	// DeleteWebhookWithResponse Disable a webhook endpoint
	//
	// Disables the endpoint without deleting delivery evidence. Requires `webhooks:manage`.
	//
	// Authentication: send `Authorization: Bearer bdy_test_<your_key>` or `bdy_live_<your_key>`. Required scopes are listed per operation. Every public response includes `X-Bardiya-Request-Id`; send that value to Bardiya support when debugging.
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with DELETE /v1/webhooks/{endpoint_id} (the `DeleteWebhook` operationId).
	DeleteWebhookWithResponse(ctx context.Context, endpointId openapi_types.UUID, reqEditors ...RequestEditorFn) (*DeleteWebhookResult, error)

	// GetWebhookWithResponse Get a webhook endpoint
	//
	// Returns endpoint configuration without its signing secret. Requires `webhooks:manage`.
	//
	// Authentication: send `Authorization: Bearer bdy_test_<your_key>` or `bdy_live_<your_key>`. Required scopes are listed per operation. Every public response includes `X-Bardiya-Request-Id`; send that value to Bardiya support when debugging.
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with GET /v1/webhooks/{endpoint_id} (the `GetWebhook` operationId).
	GetWebhookWithResponse(ctx context.Context, endpointId openapi_types.UUID, reqEditors ...RequestEditorFn) (*GetWebhookResult, error)

	// UpdateWebhookWithBodyWithResponse Update a webhook endpoint
	//
	// Updates the URL, subscriptions, or active/disabled status. Requires `webhooks:manage`.
	//
	// Authentication: send `Authorization: Bearer bdy_test_<your_key>` or `bdy_live_<your_key>`. Required scopes are listed per operation. Every public response includes `X-Bardiya-Request-Id`; send that value to Bardiya support when debugging.
	//
	// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with PATCH /v1/webhooks/{endpoint_id} (the `UpdateWebhook` operationId).
	UpdateWebhookWithBodyWithResponse(ctx context.Context, endpointId openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateWebhookResult, error)

	// UpdateWebhookWithResponse Update a webhook endpoint
	//
	// Updates the URL, subscriptions, or active/disabled status. Requires `webhooks:manage`.
	//
	// Authentication: send `Authorization: Bearer bdy_test_<your_key>` or `bdy_live_<your_key>`. Required scopes are listed per operation. Every public response includes `X-Bardiya-Request-Id`; send that value to Bardiya support when debugging.
	//
	// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with PATCH /v1/webhooks/{endpoint_id} (the `UpdateWebhook` operationId).
	UpdateWebhookWithResponse(ctx context.Context, endpointId openapi_types.UUID, body UpdateWebhookJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateWebhookResult, error)

	// ListWebhookDeliveriesWithResponse List webhook delivery attempts
	//
	// Returns bounded delivery logs including status, attempts, response status, excerpts, and errors. Requires `webhooks:manage`.
	//
	// Authentication: send `Authorization: Bearer bdy_test_<your_key>` or `bdy_live_<your_key>`. Required scopes are listed per operation. Every public response includes `X-Bardiya-Request-Id`; send that value to Bardiya support when debugging.
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with GET /v1/webhooks/{endpoint_id}/deliveries (the `ListWebhookDeliveries` operationId).
	ListWebhookDeliveriesWithResponse(ctx context.Context, endpointId openapi_types.UUID, params *ListWebhookDeliveriesParams, reqEditors ...RequestEditorFn) (*ListWebhookDeliveriesResult, error)

	// RetryWebhookDeliveryWithResponse Retry a webhook delivery
	//
	// Creates a new pending delivery linked to a failed, dead, or cancelled delivery. Requires `webhooks:manage`.
	//
	// Authentication: send `Authorization: Bearer bdy_test_<your_key>` or `bdy_live_<your_key>`. Required scopes are listed per operation. Every public response includes `X-Bardiya-Request-Id`; send that value to Bardiya support when debugging.
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /v1/webhooks/{endpoint_id}/deliveries/{delivery_id}/retry (the `RetryWebhookDelivery` operationId).
	RetryWebhookDeliveryWithResponse(ctx context.Context, endpointId openapi_types.UUID, deliveryId openapi_types.UUID, reqEditors ...RequestEditorFn) (*RetryWebhookDeliveryResult, error)
}

ClientWithResponsesInterface is the interface specification for the client with responses above.

type Config

type Config struct {
	APIKey         string
	MapsAPIKey     string
	TrackingAPIKey string

	BaseURL     string
	ReadBaseURL string

	// HTTPClient overrides the underlying client. Its Transport is preserved.
	HTTPClient *http.Client

	MaxRetries     int
	RetryBaseDelay time.Duration
	Timeout        time.Duration
	// RetryPostComputations opts in to retrying /v1/directions,
	// /v1/distance-matrix and /v1/validate-address, but only when the request
	// also carries an Idempotency-Key and only after an ambiguous transport
	// failure. Defaults to false. The server-side idempotency ledger is
	// flag-gated off in production, so no exactly-once guarantee is claimed.
	RetryPostComputations bool
}

Config configures a Client. APIKey is enough when one key holds both the Maps and Tracking scopes; otherwise set MapsAPIKey and TrackingAPIKey.

type Coordinate

type Coordinate struct {
	Latitude  float64 `json:"latitude"`
	Longitude float64 `json:"longitude"`
}

Coordinate defines model for Coordinate.

type CreateSessionJSONRequestBody

type CreateSessionJSONRequestBody = PublicSessionCreate

CreateSessionJSONRequestBody defines body for CreateSession for application/json ContentType.

type CreateSessionParams

type CreateSessionParams struct {
	// IdempotencyKey Optional stable key for safe session-create retries; max 128 characters.
	IdempotencyKey *string `json:"Idempotency-Key,omitempty"`
}

CreateSessionParams defines parameters for CreateSession.

type CreateSessionResult

type CreateSessionResult struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON201 the response for an HTTP 201 `application/json` response
	JSON201 *PublicSessionResponse
	// JSON401 the response for an HTTP 401 `application/json` response
	JSON401 *BardiyaErrorEnvelope
	// JSON403 the response for an HTTP 403 `application/json` response
	JSON403 *BardiyaErrorEnvelope
	// JSON404 the response for an HTTP 404 `application/json` response
	JSON404 *BardiyaErrorEnvelope
	// JSON409 the response for an HTTP 409 `application/json` response
	JSON409 *BardiyaErrorEnvelope
	// JSON422 the response for an HTTP 422 `application/json` response
	JSON422 *BardiyaErrorEnvelope
	// JSON503 the response for an HTTP 503 `application/json` response
	JSON503 *BardiyaErrorEnvelope
}

func ParseCreateSessionResult

func ParseCreateSessionResult(rsp *http.Response) (*CreateSessionResult, error)

ParseCreateSessionResult parses an HTTP response from a CreateSessionWithResponse call

func (CreateSessionResult) ContentType

func (r CreateSessionResult) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (CreateSessionResult) GetBody

func (r CreateSessionResult) GetBody() []byte

GetBody returns the raw response body bytes

func (CreateSessionResult) GetJSON201

GetJSON201 returns the response for an HTTP 201 `application/json` response

func (CreateSessionResult) GetJSON401

func (r CreateSessionResult) GetJSON401() *BardiyaErrorEnvelope

GetJSON401 returns the response for an HTTP 401 `application/json` response

func (CreateSessionResult) GetJSON403

func (r CreateSessionResult) GetJSON403() *BardiyaErrorEnvelope

GetJSON403 returns the response for an HTTP 403 `application/json` response

func (CreateSessionResult) GetJSON404

func (r CreateSessionResult) GetJSON404() *BardiyaErrorEnvelope

GetJSON404 returns the response for an HTTP 404 `application/json` response

func (CreateSessionResult) GetJSON409

func (r CreateSessionResult) GetJSON409() *BardiyaErrorEnvelope

GetJSON409 returns the response for an HTTP 409 `application/json` response

func (CreateSessionResult) GetJSON422

func (r CreateSessionResult) GetJSON422() *BardiyaErrorEnvelope

GetJSON422 returns the response for an HTTP 422 `application/json` response

func (CreateSessionResult) GetJSON503

func (r CreateSessionResult) GetJSON503() *BardiyaErrorEnvelope

GetJSON503 returns the response for an HTTP 503 `application/json` response

func (CreateSessionResult) Status

func (r CreateSessionResult) Status() string

Status returns HTTPResponse.Status

func (CreateSessionResult) StatusCode

func (r CreateSessionResult) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type CreateSubscriptionJSONRequestBody

type CreateSubscriptionJSONRequestBody = PublicSubscriptionCreate

CreateSubscriptionJSONRequestBody defines body for CreateSubscription for application/json ContentType.

type CreateSubscriptionResult

type CreateSubscriptionResult struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *Subscription
	// JSON201 the response for an HTTP 201 `application/json` response
	JSON201 *Subscription
	// JSON400 the response for an HTTP 400 `application/json` response
	JSON400 *BardiyaErrorEnvelope
	// JSON401 the response for an HTTP 401 `application/json` response
	JSON401 *BardiyaErrorEnvelope
	// JSON403 the response for an HTTP 403 `application/json` response
	JSON403 *BardiyaErrorEnvelope
	// JSON404 the response for an HTTP 404 `application/json` response
	JSON404 *BardiyaErrorEnvelope
	// JSON409 the response for an HTTP 409 `application/json` response
	JSON409 *BardiyaErrorEnvelope
	// JSON422 the response for an HTTP 422 `application/json` response
	JSON422 *BardiyaErrorEnvelope
	// JSON429 the response for an HTTP 429 `application/json` response
	JSON429 *BardiyaErrorEnvelope
	// JSON503 the response for an HTTP 503 `application/json` response
	JSON503 *BardiyaErrorEnvelope
}

func ParseCreateSubscriptionResult

func ParseCreateSubscriptionResult(rsp *http.Response) (*CreateSubscriptionResult, error)

ParseCreateSubscriptionResult parses an HTTP response from a CreateSubscriptionWithResponse call

func (CreateSubscriptionResult) ContentType

func (r CreateSubscriptionResult) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (CreateSubscriptionResult) GetBody

func (r CreateSubscriptionResult) GetBody() []byte

GetBody returns the raw response body bytes

func (CreateSubscriptionResult) GetJSON200

func (r CreateSubscriptionResult) GetJSON200() *Subscription

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (CreateSubscriptionResult) GetJSON201

func (r CreateSubscriptionResult) GetJSON201() *Subscription

GetJSON201 returns the response for an HTTP 201 `application/json` response

func (CreateSubscriptionResult) GetJSON400

GetJSON400 returns the response for an HTTP 400 `application/json` response

func (CreateSubscriptionResult) GetJSON401

GetJSON401 returns the response for an HTTP 401 `application/json` response

func (CreateSubscriptionResult) GetJSON403

GetJSON403 returns the response for an HTTP 403 `application/json` response

func (CreateSubscriptionResult) GetJSON404

GetJSON404 returns the response for an HTTP 404 `application/json` response

func (CreateSubscriptionResult) GetJSON409

GetJSON409 returns the response for an HTTP 409 `application/json` response

func (CreateSubscriptionResult) GetJSON422

GetJSON422 returns the response for an HTTP 422 `application/json` response

func (CreateSubscriptionResult) GetJSON429

GetJSON429 returns the response for an HTTP 429 `application/json` response

func (CreateSubscriptionResult) GetJSON503

GetJSON503 returns the response for an HTTP 503 `application/json` response

func (CreateSubscriptionResult) Status

func (r CreateSubscriptionResult) Status() string

Status returns HTTPResponse.Status

func (CreateSubscriptionResult) StatusCode

func (r CreateSubscriptionResult) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type CreateWebhookJSONRequestBody

type CreateWebhookJSONRequestBody = WebhookCreate

CreateWebhookJSONRequestBody defines body for CreateWebhook for application/json ContentType.

type CreateWebhookResult

type CreateWebhookResult struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON201 the response for an HTTP 201 `application/json` response
	JSON201 *WebhookResponse
	// JSON401 the response for an HTTP 401 `application/json` response
	JSON401 *BardiyaErrorEnvelope
	// JSON403 the response for an HTTP 403 `application/json` response
	JSON403 *BardiyaErrorEnvelope
	// JSON404 the response for an HTTP 404 `application/json` response
	JSON404 *BardiyaErrorEnvelope
	// JSON409 the response for an HTTP 409 `application/json` response
	JSON409 *BardiyaErrorEnvelope
	// JSON422 the response for an HTTP 422 `application/json` response
	JSON422 *BardiyaErrorEnvelope
	// JSON503 the response for an HTTP 503 `application/json` response
	JSON503 *BardiyaErrorEnvelope
}

func ParseCreateWebhookResult

func ParseCreateWebhookResult(rsp *http.Response) (*CreateWebhookResult, error)

ParseCreateWebhookResult parses an HTTP response from a CreateWebhookWithResponse call

func (CreateWebhookResult) ContentType

func (r CreateWebhookResult) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (CreateWebhookResult) GetBody

func (r CreateWebhookResult) GetBody() []byte

GetBody returns the raw response body bytes

func (CreateWebhookResult) GetJSON201

func (r CreateWebhookResult) GetJSON201() *WebhookResponse

GetJSON201 returns the response for an HTTP 201 `application/json` response

func (CreateWebhookResult) GetJSON401

func (r CreateWebhookResult) GetJSON401() *BardiyaErrorEnvelope

GetJSON401 returns the response for an HTTP 401 `application/json` response

func (CreateWebhookResult) GetJSON403

func (r CreateWebhookResult) GetJSON403() *BardiyaErrorEnvelope

GetJSON403 returns the response for an HTTP 403 `application/json` response

func (CreateWebhookResult) GetJSON404

func (r CreateWebhookResult) GetJSON404() *BardiyaErrorEnvelope

GetJSON404 returns the response for an HTTP 404 `application/json` response

func (CreateWebhookResult) GetJSON409

func (r CreateWebhookResult) GetJSON409() *BardiyaErrorEnvelope

GetJSON409 returns the response for an HTTP 409 `application/json` response

func (CreateWebhookResult) GetJSON422

func (r CreateWebhookResult) GetJSON422() *BardiyaErrorEnvelope

GetJSON422 returns the response for an HTTP 422 `application/json` response

func (CreateWebhookResult) GetJSON503

func (r CreateWebhookResult) GetJSON503() *BardiyaErrorEnvelope

GetJSON503 returns the response for an HTTP 503 `application/json` response

func (CreateWebhookResult) Status

func (r CreateWebhookResult) Status() string

Status returns HTTPResponse.Status

func (CreateWebhookResult) StatusCode

func (r CreateWebhookResult) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type DeleteSubscriptionResult

type DeleteSubscriptionResult struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON400 the response for an HTTP 400 `application/json` response
	JSON400 *BardiyaErrorEnvelope
	// JSON401 the response for an HTTP 401 `application/json` response
	JSON401 *BardiyaErrorEnvelope
	// JSON403 the response for an HTTP 403 `application/json` response
	JSON403 *BardiyaErrorEnvelope
	// JSON404 the response for an HTTP 404 `application/json` response
	JSON404 *BardiyaErrorEnvelope
	// JSON422 the response for an HTTP 422 `application/json` response
	JSON422 *BardiyaErrorEnvelope
	// JSON429 the response for an HTTP 429 `application/json` response
	JSON429 *BardiyaErrorEnvelope
	// JSON503 the response for an HTTP 503 `application/json` response
	JSON503 *BardiyaErrorEnvelope
}

func ParseDeleteSubscriptionResult

func ParseDeleteSubscriptionResult(rsp *http.Response) (*DeleteSubscriptionResult, error)

ParseDeleteSubscriptionResult parses an HTTP response from a DeleteSubscriptionWithResponse call

func (DeleteSubscriptionResult) ContentType

func (r DeleteSubscriptionResult) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (DeleteSubscriptionResult) GetBody

func (r DeleteSubscriptionResult) GetBody() []byte

GetBody returns the raw response body bytes

func (DeleteSubscriptionResult) GetJSON400

GetJSON400 returns the response for an HTTP 400 `application/json` response

func (DeleteSubscriptionResult) GetJSON401

GetJSON401 returns the response for an HTTP 401 `application/json` response

func (DeleteSubscriptionResult) GetJSON403

GetJSON403 returns the response for an HTTP 403 `application/json` response

func (DeleteSubscriptionResult) GetJSON404

GetJSON404 returns the response for an HTTP 404 `application/json` response

func (DeleteSubscriptionResult) GetJSON422

GetJSON422 returns the response for an HTTP 422 `application/json` response

func (DeleteSubscriptionResult) GetJSON429

GetJSON429 returns the response for an HTTP 429 `application/json` response

func (DeleteSubscriptionResult) GetJSON503

GetJSON503 returns the response for an HTTP 503 `application/json` response

func (DeleteSubscriptionResult) Status

func (r DeleteSubscriptionResult) Status() string

Status returns HTTPResponse.Status

func (DeleteSubscriptionResult) StatusCode

func (r DeleteSubscriptionResult) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type DeleteWebhookResult

type DeleteWebhookResult struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *WebhookResponse
	// JSON401 the response for an HTTP 401 `application/json` response
	JSON401 *BardiyaErrorEnvelope
	// JSON403 the response for an HTTP 403 `application/json` response
	JSON403 *BardiyaErrorEnvelope
	// JSON404 the response for an HTTP 404 `application/json` response
	JSON404 *BardiyaErrorEnvelope
	// JSON409 the response for an HTTP 409 `application/json` response
	JSON409 *BardiyaErrorEnvelope
	// JSON422 the response for an HTTP 422 `application/json` response
	JSON422 *BardiyaErrorEnvelope
	// JSON503 the response for an HTTP 503 `application/json` response
	JSON503 *BardiyaErrorEnvelope
}

func ParseDeleteWebhookResult

func ParseDeleteWebhookResult(rsp *http.Response) (*DeleteWebhookResult, error)

ParseDeleteWebhookResult parses an HTTP response from a DeleteWebhookWithResponse call

func (DeleteWebhookResult) ContentType

func (r DeleteWebhookResult) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (DeleteWebhookResult) GetBody

func (r DeleteWebhookResult) GetBody() []byte

GetBody returns the raw response body bytes

func (DeleteWebhookResult) GetJSON200

func (r DeleteWebhookResult) GetJSON200() *WebhookResponse

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (DeleteWebhookResult) GetJSON401

func (r DeleteWebhookResult) GetJSON401() *BardiyaErrorEnvelope

GetJSON401 returns the response for an HTTP 401 `application/json` response

func (DeleteWebhookResult) GetJSON403

func (r DeleteWebhookResult) GetJSON403() *BardiyaErrorEnvelope

GetJSON403 returns the response for an HTTP 403 `application/json` response

func (DeleteWebhookResult) GetJSON404

func (r DeleteWebhookResult) GetJSON404() *BardiyaErrorEnvelope

GetJSON404 returns the response for an HTTP 404 `application/json` response

func (DeleteWebhookResult) GetJSON409

func (r DeleteWebhookResult) GetJSON409() *BardiyaErrorEnvelope

GetJSON409 returns the response for an HTTP 409 `application/json` response

func (DeleteWebhookResult) GetJSON422

func (r DeleteWebhookResult) GetJSON422() *BardiyaErrorEnvelope

GetJSON422 returns the response for an HTTP 422 `application/json` response

func (DeleteWebhookResult) GetJSON503

func (r DeleteWebhookResult) GetJSON503() *BardiyaErrorEnvelope

GetJSON503 returns the response for an HTTP 503 `application/json` response

func (DeleteWebhookResult) Status

func (r DeleteWebhookResult) Status() string

Status returns HTTPResponse.Status

func (DeleteWebhookResult) StatusCode

func (r DeleteWebhookResult) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type DirectionsJSONRequestBody

type DirectionsJSONRequestBody = DirectionsPublicRequest

DirectionsJSONRequestBody defines body for Directions for application/json ContentType.

type DirectionsParams

type DirectionsParams struct {
	// XStrictRoadNetwork When set to 'true', fail closed with 503 instead of returning a degraded straight-line fallback if road-network routing is unavailable.
	XStrictRoadNetwork *string `json:"X-Strict-Road-Network,omitempty"`
	IdempotencyKey     *string `json:"Idempotency-Key,omitempty"`
}

DirectionsParams defines parameters for Directions.

type DirectionsPublicRequest

type DirectionsPublicRequest struct {
	Alternatives *bool            `json:"alternatives,omitempty"`
	Annotations  *string          `json:"annotations,omitempty"`
	Destination  PublicCoordinate `json:"destination"`
	Geometries   *string          `json:"geometries,omitempty"`
	Origin       PublicCoordinate `json:"origin"`
	Overview     *string          `json:"overview,omitempty"`
	Profile      *string          `json:"profile,omitempty"`
	Steps        *bool            `json:"steps,omitempty"`

	// Waypoints Optional intermediate stops. The default deployment accepts at most 23 (2–25 total points); the server enforces the configured MAPS_MAX_DIRECTIONS_POINTS limit, which an operator may raise.
	Waypoints *[]PublicCoordinate `json:"waypoints,omitempty"`
}

DirectionsPublicRequest defines model for DirectionsPublicRequest.

type DirectionsResponse

type DirectionsResponse struct {
	Code DirectionsResponseCode `json:"code"`

	// Degraded True only when OSRM was unavailable and the route is a straight-line estimate over road-snapped sample points, never a road-network route. Absent on a normal OSRM response.
	Degraded *bool `json:"degraded,omitempty"`

	// DistanceSource Present in degraded mode; `haversine` for the straight-line estimate.
	DistanceSource *string `json:"distance_source,omitempty"`

	// Engine `osrm-v1` on a road route, or `postgis-road-snap-haversine-v1` on the straight-line degraded estimate.
	Engine *string `json:"engine,omitempty"`

	// GeometrySource Present in degraded mode. `straight_line_between_road_snapped_points` states that consecutive samples are joined by straight lines.
	GeometrySource *string                   `json:"geometry_source,omitempty"`
	Profile        DirectionsResponseProfile `json:"profile"`

	// RoadNetwork False in degraded mode; the estimate must not be presented as road routing.
	RoadNetwork *bool   `json:"road_network,omitempty"`
	Routes      []Route `json:"routes"`

	// Waypoints Ordered origin, intermediate stops and destination. Each entry is the snapped point used by the engine, not the requested coordinate.
	Waypoints []Waypoint `json:"waypoints"`
}

DirectionsResponse defines model for DirectionsResponse.

type DirectionsResponseCode

type DirectionsResponseCode string

DirectionsResponseCode defines model for DirectionsResponse.Code.

const (
	Ok DirectionsResponseCode = "Ok"
)

Defines values for DirectionsResponseCode.

func (DirectionsResponseCode) Valid

func (e DirectionsResponseCode) Valid() bool

Valid indicates whether the value is a known member of the DirectionsResponseCode enum.

type DirectionsResponseProfile

type DirectionsResponseProfile string

DirectionsResponseProfile defines model for DirectionsResponse.Profile.

const (
	Cycling DirectionsResponseProfile = "cycling"
	Driving DirectionsResponseProfile = "driving"
	Walking DirectionsResponseProfile = "walking"
)

Defines values for DirectionsResponseProfile.

func (DirectionsResponseProfile) Valid

func (e DirectionsResponseProfile) Valid() bool

Valid indicates whether the value is a known member of the DirectionsResponseProfile enum.

type DirectionsResult

type DirectionsResult struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *DirectionsResponse
	// JSON400 the response for an HTTP 400 `application/json` response
	JSON400 *BardiyaErrorEnvelope
	// JSON401 the response for an HTTP 401 `application/json` response
	JSON401 *BardiyaErrorEnvelope
	// JSON403 the response for an HTTP 403 `application/json` response
	JSON403 *BardiyaErrorEnvelope
	// JSON404 the response for an HTTP 404 `application/json` response
	JSON404 *BardiyaErrorEnvelope
	// JSON422 the response for an HTTP 422 `application/json` response
	JSON422 *HTTPValidationError
	// JSON429 the response for an HTTP 429 `application/json` response
	JSON429 *BardiyaErrorEnvelope
	// JSON503 the response for an HTTP 503 `application/json` response
	JSON503 *BardiyaErrorEnvelope
}

func ParseDirectionsResult

func ParseDirectionsResult(rsp *http.Response) (*DirectionsResult, error)

ParseDirectionsResult parses an HTTP response from a DirectionsWithResponse call

func (DirectionsResult) ContentType

func (r DirectionsResult) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (DirectionsResult) GetBody

func (r DirectionsResult) GetBody() []byte

GetBody returns the raw response body bytes

func (DirectionsResult) GetJSON200

func (r DirectionsResult) GetJSON200() *DirectionsResponse

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (DirectionsResult) GetJSON400

func (r DirectionsResult) GetJSON400() *BardiyaErrorEnvelope

GetJSON400 returns the response for an HTTP 400 `application/json` response

func (DirectionsResult) GetJSON401

func (r DirectionsResult) GetJSON401() *BardiyaErrorEnvelope

GetJSON401 returns the response for an HTTP 401 `application/json` response

func (DirectionsResult) GetJSON403

func (r DirectionsResult) GetJSON403() *BardiyaErrorEnvelope

GetJSON403 returns the response for an HTTP 403 `application/json` response

func (DirectionsResult) GetJSON404

func (r DirectionsResult) GetJSON404() *BardiyaErrorEnvelope

GetJSON404 returns the response for an HTTP 404 `application/json` response

func (DirectionsResult) GetJSON422

func (r DirectionsResult) GetJSON422() *HTTPValidationError

GetJSON422 returns the response for an HTTP 422 `application/json` response

func (DirectionsResult) GetJSON429

func (r DirectionsResult) GetJSON429() *BardiyaErrorEnvelope

GetJSON429 returns the response for an HTTP 429 `application/json` response

func (DirectionsResult) GetJSON503

func (r DirectionsResult) GetJSON503() *BardiyaErrorEnvelope

GetJSON503 returns the response for an HTTP 503 `application/json` response

func (DirectionsResult) Status

func (r DirectionsResult) Status() string

Status returns HTTPResponse.Status

func (DirectionsResult) StatusCode

func (r DirectionsResult) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type DistanceMatrixJSONRequestBody

type DistanceMatrixJSONRequestBody = DistanceMatrixPublicRequest

DistanceMatrixJSONRequestBody defines body for DistanceMatrix for application/json ContentType.

type DistanceMatrixParams

type DistanceMatrixParams struct {
	IdempotencyKey *string `json:"Idempotency-Key,omitempty"`
}

DistanceMatrixParams defines parameters for DistanceMatrix.

type DistanceMatrixPublicRequest

type DistanceMatrixPublicRequest struct {
	Destinations []PublicCoordinate `json:"destinations"`
	Origins      []PublicCoordinate `json:"origins"`
	Profile      *string            `json:"profile,omitempty"`
}

DistanceMatrixPublicRequest defines model for DistanceMatrixPublicRequest.

type DistanceMatrixResponse

type DistanceMatrixResponse struct {
	DestinationCount int `json:"destination_count"`

	// DistancesMeters Row-major table of metres; `distances_meters[i][j]` is origin i to destination j. A `null` cell means no route and is always accompanied by a matching `per_cell_errors` entry.
	DistancesMeters [][]*float64 `json:"distances_meters"`

	// DurationsSeconds Row-major table of seconds; `durations_seconds[i][j]` is origin i to destination j. A `null` cell means no route.
	DurationsSeconds [][]*float64 `json:"durations_seconds"`
	OriginCount      int          `json:"origin_count"`

	// PerCellErrors Per-cell failures for cells OSRM could not compute. The table shape is never shortened: an unreachable pair remains an explicit `null` cell.
	PerCellErrors *[]MatrixCellError `json:"per_cell_errors,omitempty"`
}

DistanceMatrixResponse defines model for DistanceMatrixResponse.

type DistanceMatrixResult

type DistanceMatrixResult struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *DistanceMatrixResponse
	// JSON400 the response for an HTTP 400 `application/json` response
	JSON400 *BardiyaErrorEnvelope
	// JSON401 the response for an HTTP 401 `application/json` response
	JSON401 *BardiyaErrorEnvelope
	// JSON403 the response for an HTTP 403 `application/json` response
	JSON403 *BardiyaErrorEnvelope
	// JSON404 the response for an HTTP 404 `application/json` response
	JSON404 *BardiyaErrorEnvelope
	// JSON422 the response for an HTTP 422 `application/json` response
	JSON422 *HTTPValidationError
	// JSON429 the response for an HTTP 429 `application/json` response
	JSON429 *BardiyaErrorEnvelope
	// JSON503 the response for an HTTP 503 `application/json` response
	JSON503 *BardiyaErrorEnvelope
}

func ParseDistanceMatrixResult

func ParseDistanceMatrixResult(rsp *http.Response) (*DistanceMatrixResult, error)

ParseDistanceMatrixResult parses an HTTP response from a DistanceMatrixWithResponse call

func (DistanceMatrixResult) ContentType

func (r DistanceMatrixResult) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (DistanceMatrixResult) GetBody

func (r DistanceMatrixResult) GetBody() []byte

GetBody returns the raw response body bytes

func (DistanceMatrixResult) GetJSON200

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (DistanceMatrixResult) GetJSON400

GetJSON400 returns the response for an HTTP 400 `application/json` response

func (DistanceMatrixResult) GetJSON401

GetJSON401 returns the response for an HTTP 401 `application/json` response

func (DistanceMatrixResult) GetJSON403

GetJSON403 returns the response for an HTTP 403 `application/json` response

func (DistanceMatrixResult) GetJSON404

GetJSON404 returns the response for an HTTP 404 `application/json` response

func (DistanceMatrixResult) GetJSON422

func (r DistanceMatrixResult) GetJSON422() *HTTPValidationError

GetJSON422 returns the response for an HTTP 422 `application/json` response

func (DistanceMatrixResult) GetJSON429

GetJSON429 returns the response for an HTTP 429 `application/json` response

func (DistanceMatrixResult) GetJSON503

GetJSON503 returns the response for an HTTP 503 `application/json` response

func (DistanceMatrixResult) Status

func (r DistanceMatrixResult) Status() string

Status returns HTTPResponse.Status

func (DistanceMatrixResult) StatusCode

func (r DistanceMatrixResult) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type EndSessionParams

type EndSessionParams struct {
	// IdempotencyKey Optional stable key for safe end-session retries; max 128 characters.
	IdempotencyKey *string `json:"Idempotency-Key,omitempty"`
}

EndSessionParams defines parameters for EndSession.

type EndSessionResult

type EndSessionResult struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *PublicSessionResponse
	// JSON401 the response for an HTTP 401 `application/json` response
	JSON401 *BardiyaErrorEnvelope
	// JSON403 the response for an HTTP 403 `application/json` response
	JSON403 *BardiyaErrorEnvelope
	// JSON404 the response for an HTTP 404 `application/json` response
	JSON404 *BardiyaErrorEnvelope
	// JSON409 the response for an HTTP 409 `application/json` response
	JSON409 *BardiyaErrorEnvelope
	// JSON422 the response for an HTTP 422 `application/json` response
	JSON422 *BardiyaErrorEnvelope
	// JSON503 the response for an HTTP 503 `application/json` response
	JSON503 *BardiyaErrorEnvelope
}

func ParseEndSessionResult

func ParseEndSessionResult(rsp *http.Response) (*EndSessionResult, error)

ParseEndSessionResult parses an HTTP response from a EndSessionWithResponse call

func (EndSessionResult) ContentType

func (r EndSessionResult) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (EndSessionResult) GetBody

func (r EndSessionResult) GetBody() []byte

GetBody returns the raw response body bytes

func (EndSessionResult) GetJSON200

func (r EndSessionResult) GetJSON200() *PublicSessionResponse

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (EndSessionResult) GetJSON401

func (r EndSessionResult) GetJSON401() *BardiyaErrorEnvelope

GetJSON401 returns the response for an HTTP 401 `application/json` response

func (EndSessionResult) GetJSON403

func (r EndSessionResult) GetJSON403() *BardiyaErrorEnvelope

GetJSON403 returns the response for an HTTP 403 `application/json` response

func (EndSessionResult) GetJSON404

func (r EndSessionResult) GetJSON404() *BardiyaErrorEnvelope

GetJSON404 returns the response for an HTTP 404 `application/json` response

func (EndSessionResult) GetJSON409

func (r EndSessionResult) GetJSON409() *BardiyaErrorEnvelope

GetJSON409 returns the response for an HTTP 409 `application/json` response

func (EndSessionResult) GetJSON422

func (r EndSessionResult) GetJSON422() *BardiyaErrorEnvelope

GetJSON422 returns the response for an HTTP 422 `application/json` response

func (EndSessionResult) GetJSON503

func (r EndSessionResult) GetJSON503() *BardiyaErrorEnvelope

GetJSON503 returns the response for an HTTP 503 `application/json` response

func (EndSessionResult) Status

func (r EndSessionResult) Status() string

Status returns HTTPResponse.Status

func (EndSessionResult) StatusCode

func (r EndSessionResult) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ForwardGeocodeParams

type ForwardGeocodeParams struct {
	Address        string   `form:"address" json:"address"`
	Latitude       *float64 `form:"latitude,omitempty" json:"latitude,omitempty"`
	Longitude      *float64 `form:"longitude,omitempty" json:"longitude,omitempty"`
	RadiusM        *int     `form:"radius_m,omitempty" json:"radius_m,omitempty"`
	Limit          *int     `form:"limit,omitempty" json:"limit,omitempty"`
	Language       *string  `form:"language,omitempty" json:"language,omitempty"`
	IdempotencyKey *string  `json:"Idempotency-Key,omitempty"`
}

ForwardGeocodeParams defines parameters for ForwardGeocode.

type ForwardGeocodeResult

type ForwardGeocodeResult struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *GeocodeResponse
	// JSON400 the response for an HTTP 400 `application/json` response
	JSON400 *BardiyaErrorEnvelope
	// JSON401 the response for an HTTP 401 `application/json` response
	JSON401 *BardiyaErrorEnvelope
	// JSON403 the response for an HTTP 403 `application/json` response
	JSON403 *BardiyaErrorEnvelope
	// JSON404 the response for an HTTP 404 `application/json` response
	JSON404 *BardiyaErrorEnvelope
	// JSON422 the response for an HTTP 422 `application/json` response
	JSON422 *HTTPValidationError
	// JSON429 the response for an HTTP 429 `application/json` response
	JSON429 *BardiyaErrorEnvelope
	// JSON503 the response for an HTTP 503 `application/json` response
	JSON503 *BardiyaErrorEnvelope
}

func ParseForwardGeocodeResult

func ParseForwardGeocodeResult(rsp *http.Response) (*ForwardGeocodeResult, error)

ParseForwardGeocodeResult parses an HTTP response from a ForwardGeocodeWithResponse call

func (ForwardGeocodeResult) ContentType

func (r ForwardGeocodeResult) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (ForwardGeocodeResult) GetBody

func (r ForwardGeocodeResult) GetBody() []byte

GetBody returns the raw response body bytes

func (ForwardGeocodeResult) GetJSON200

func (r ForwardGeocodeResult) GetJSON200() *GeocodeResponse

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (ForwardGeocodeResult) GetJSON400

GetJSON400 returns the response for an HTTP 400 `application/json` response

func (ForwardGeocodeResult) GetJSON401

GetJSON401 returns the response for an HTTP 401 `application/json` response

func (ForwardGeocodeResult) GetJSON403

GetJSON403 returns the response for an HTTP 403 `application/json` response

func (ForwardGeocodeResult) GetJSON404

GetJSON404 returns the response for an HTTP 404 `application/json` response

func (ForwardGeocodeResult) GetJSON422

func (r ForwardGeocodeResult) GetJSON422() *HTTPValidationError

GetJSON422 returns the response for an HTTP 422 `application/json` response

func (ForwardGeocodeResult) GetJSON429

GetJSON429 returns the response for an HTTP 429 `application/json` response

func (ForwardGeocodeResult) GetJSON503

GetJSON503 returns the response for an HTTP 503 `application/json` response

func (ForwardGeocodeResult) Status

func (r ForwardGeocodeResult) Status() string

Status returns HTTPResponse.Status

func (ForwardGeocodeResult) StatusCode

func (r ForwardGeocodeResult) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GeocodeResponse

type GeocodeResponse struct {
	Count   int             `json:"count"`
	Message *string         `json:"message,omitempty"`
	Mode    *string         `json:"mode,omitempty"`
	Query   string          `json:"query"`
	Results []GeocodeResult `json:"results"`
}

GeocodeResponse defines model for GeocodeResponse.

type GeocodeResult

type GeocodeResult struct {
	Category    *string  `json:"category,omitempty"`
	CategoryAr  *string  `json:"category_ar,omitempty"`
	City        *string  `json:"city,omitempty"`
	Confidence  *float64 `json:"confidence,omitempty"`
	District    *string  `json:"district,omitempty"`
	Governorate *string  `json:"governorate,omitempty"`
	Id          *string  `json:"id,omitempty"`
	Kind        *string  `json:"kind,omitempty"`
	Latitude    *float64 `json:"latitude,omitempty"`
	Longitude   *float64 `json:"longitude,omitempty"`

	// MatchLevel Highest geographic precision verified by source data.
	MatchLevel *GeocodeResultMatchLevel `json:"match_level,omitempty"`
	Name       string                   `json:"name"`
	ProximityM *float64                 `json:"proximity_m,omitempty"`
	Street     *string                  `json:"street,omitempty"`
}

GeocodeResult defines model for GeocodeResult.

type GeocodeResultMatchLevel

type GeocodeResultMatchLevel string

GeocodeResultMatchLevel Highest geographic precision verified by source data.

const (
	Building     GeocodeResultMatchLevel = "building"
	Intersection GeocodeResultMatchLevel = "intersection"
	LessThannil  GeocodeResultMatchLevel = "<nil>"
	Locality     GeocodeResultMatchLevel = "locality"
	Poi          GeocodeResultMatchLevel = "poi"
	Street       GeocodeResultMatchLevel = "street"
)

Defines values for GeocodeResultMatchLevel.

func (GeocodeResultMatchLevel) Valid

func (e GeocodeResultMatchLevel) Valid() bool

Valid indicates whether the value is a known member of the GeocodeResultMatchLevel enum.

type GetHistoryParams

type GetHistoryParams struct {
	From   *string `form:"from,omitempty" json:"from,omitempty"`
	To     *string `form:"to,omitempty" json:"to,omitempty"`
	Limit  *int    `form:"limit,omitempty" json:"limit,omitempty"`
	Cursor *string `form:"cursor,omitempty" json:"cursor,omitempty"`
}

GetHistoryParams defines parameters for GetHistory.

type GetHistoryResult

type GetHistoryResult struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *HistoryPage
	// JSON400 the response for an HTTP 400 `application/json` response
	JSON400 *BardiyaErrorEnvelope
	// JSON401 the response for an HTTP 401 `application/json` response
	JSON401 *BardiyaErrorEnvelope
	// JSON403 the response for an HTTP 403 `application/json` response
	JSON403 *BardiyaErrorEnvelope
	// JSON404 the response for an HTTP 404 `application/json` response
	JSON404 *BardiyaErrorEnvelope
	// JSON409 the response for an HTTP 409 `application/json` response
	JSON409 *BardiyaErrorEnvelope
	// JSON422 the response for an HTTP 422 `application/json` response
	JSON422 *BardiyaErrorEnvelope
	// JSON429 the response for an HTTP 429 `application/json` response
	JSON429 *BardiyaErrorEnvelope
	// JSON503 the response for an HTTP 503 `application/json` response
	JSON503 *BardiyaErrorEnvelope
}

func ParseGetHistoryResult

func ParseGetHistoryResult(rsp *http.Response) (*GetHistoryResult, error)

ParseGetHistoryResult parses an HTTP response from a GetHistoryWithResponse call

func (GetHistoryResult) ContentType

func (r GetHistoryResult) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (GetHistoryResult) GetBody

func (r GetHistoryResult) GetBody() []byte

GetBody returns the raw response body bytes

func (GetHistoryResult) GetJSON200

func (r GetHistoryResult) GetJSON200() *HistoryPage

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (GetHistoryResult) GetJSON400

func (r GetHistoryResult) GetJSON400() *BardiyaErrorEnvelope

GetJSON400 returns the response for an HTTP 400 `application/json` response

func (GetHistoryResult) GetJSON401

func (r GetHistoryResult) GetJSON401() *BardiyaErrorEnvelope

GetJSON401 returns the response for an HTTP 401 `application/json` response

func (GetHistoryResult) GetJSON403

func (r GetHistoryResult) GetJSON403() *BardiyaErrorEnvelope

GetJSON403 returns the response for an HTTP 403 `application/json` response

func (GetHistoryResult) GetJSON404

func (r GetHistoryResult) GetJSON404() *BardiyaErrorEnvelope

GetJSON404 returns the response for an HTTP 404 `application/json` response

func (GetHistoryResult) GetJSON409

func (r GetHistoryResult) GetJSON409() *BardiyaErrorEnvelope

GetJSON409 returns the response for an HTTP 409 `application/json` response

func (GetHistoryResult) GetJSON422

func (r GetHistoryResult) GetJSON422() *BardiyaErrorEnvelope

GetJSON422 returns the response for an HTTP 422 `application/json` response

func (GetHistoryResult) GetJSON429

func (r GetHistoryResult) GetJSON429() *BardiyaErrorEnvelope

GetJSON429 returns the response for an HTTP 429 `application/json` response

func (GetHistoryResult) GetJSON503

func (r GetHistoryResult) GetJSON503() *BardiyaErrorEnvelope

GetJSON503 returns the response for an HTTP 503 `application/json` response

func (GetHistoryResult) Status

func (r GetHistoryResult) Status() string

Status returns HTTPResponse.Status

func (GetHistoryResult) StatusCode

func (r GetHistoryResult) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetPlaceParams

type GetPlaceParams struct {
	IdempotencyKey *string `json:"Idempotency-Key,omitempty"`
}

GetPlaceParams defines parameters for GetPlace.

type GetPlaceResult

type GetPlaceResult struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *PlaceDetails
	// JSON400 the response for an HTTP 400 `application/json` response
	JSON400 *BardiyaErrorEnvelope
	// JSON401 the response for an HTTP 401 `application/json` response
	JSON401 *BardiyaErrorEnvelope
	// JSON403 the response for an HTTP 403 `application/json` response
	JSON403 *BardiyaErrorEnvelope
	// JSON404 the response for an HTTP 404 `application/json` response
	JSON404 *BardiyaErrorEnvelope
	// JSON422 the response for an HTTP 422 `application/json` response
	JSON422 *HTTPValidationError
	// JSON429 the response for an HTTP 429 `application/json` response
	JSON429 *BardiyaErrorEnvelope
	// JSON503 the response for an HTTP 503 `application/json` response
	JSON503 *BardiyaErrorEnvelope
}

func ParseGetPlaceResult

func ParseGetPlaceResult(rsp *http.Response) (*GetPlaceResult, error)

ParseGetPlaceResult parses an HTTP response from a GetPlaceWithResponse call

func (GetPlaceResult) ContentType

func (r GetPlaceResult) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (GetPlaceResult) GetBody

func (r GetPlaceResult) GetBody() []byte

GetBody returns the raw response body bytes

func (GetPlaceResult) GetJSON200

func (r GetPlaceResult) GetJSON200() *PlaceDetails

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (GetPlaceResult) GetJSON400

func (r GetPlaceResult) GetJSON400() *BardiyaErrorEnvelope

GetJSON400 returns the response for an HTTP 400 `application/json` response

func (GetPlaceResult) GetJSON401

func (r GetPlaceResult) GetJSON401() *BardiyaErrorEnvelope

GetJSON401 returns the response for an HTTP 401 `application/json` response

func (GetPlaceResult) GetJSON403

func (r GetPlaceResult) GetJSON403() *BardiyaErrorEnvelope

GetJSON403 returns the response for an HTTP 403 `application/json` response

func (GetPlaceResult) GetJSON404

func (r GetPlaceResult) GetJSON404() *BardiyaErrorEnvelope

GetJSON404 returns the response for an HTTP 404 `application/json` response

func (GetPlaceResult) GetJSON422

func (r GetPlaceResult) GetJSON422() *HTTPValidationError

GetJSON422 returns the response for an HTTP 422 `application/json` response

func (GetPlaceResult) GetJSON429

func (r GetPlaceResult) GetJSON429() *BardiyaErrorEnvelope

GetJSON429 returns the response for an HTTP 429 `application/json` response

func (GetPlaceResult) GetJSON503

func (r GetPlaceResult) GetJSON503() *BardiyaErrorEnvelope

GetJSON503 returns the response for an HTTP 503 `application/json` response

func (GetPlaceResult) Status

func (r GetPlaceResult) Status() string

Status returns HTTPResponse.Status

func (GetPlaceResult) StatusCode

func (r GetPlaceResult) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetSessionResult

type GetSessionResult struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *PublicSessionResponse
	// JSON401 the response for an HTTP 401 `application/json` response
	JSON401 *BardiyaErrorEnvelope
	// JSON403 the response for an HTTP 403 `application/json` response
	JSON403 *BardiyaErrorEnvelope
	// JSON404 the response for an HTTP 404 `application/json` response
	JSON404 *BardiyaErrorEnvelope
	// JSON409 the response for an HTTP 409 `application/json` response
	JSON409 *BardiyaErrorEnvelope
	// JSON422 the response for an HTTP 422 `application/json` response
	JSON422 *BardiyaErrorEnvelope
	// JSON503 the response for an HTTP 503 `application/json` response
	JSON503 *BardiyaErrorEnvelope
}

func ParseGetSessionResult

func ParseGetSessionResult(rsp *http.Response) (*GetSessionResult, error)

ParseGetSessionResult parses an HTTP response from a GetSessionWithResponse call

func (GetSessionResult) ContentType

func (r GetSessionResult) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (GetSessionResult) GetBody

func (r GetSessionResult) GetBody() []byte

GetBody returns the raw response body bytes

func (GetSessionResult) GetJSON200

func (r GetSessionResult) GetJSON200() *PublicSessionResponse

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (GetSessionResult) GetJSON401

func (r GetSessionResult) GetJSON401() *BardiyaErrorEnvelope

GetJSON401 returns the response for an HTTP 401 `application/json` response

func (GetSessionResult) GetJSON403

func (r GetSessionResult) GetJSON403() *BardiyaErrorEnvelope

GetJSON403 returns the response for an HTTP 403 `application/json` response

func (GetSessionResult) GetJSON404

func (r GetSessionResult) GetJSON404() *BardiyaErrorEnvelope

GetJSON404 returns the response for an HTTP 404 `application/json` response

func (GetSessionResult) GetJSON409

func (r GetSessionResult) GetJSON409() *BardiyaErrorEnvelope

GetJSON409 returns the response for an HTTP 409 `application/json` response

func (GetSessionResult) GetJSON422

func (r GetSessionResult) GetJSON422() *BardiyaErrorEnvelope

GetJSON422 returns the response for an HTTP 422 `application/json` response

func (GetSessionResult) GetJSON503

func (r GetSessionResult) GetJSON503() *BardiyaErrorEnvelope

GetJSON503 returns the response for an HTTP 503 `application/json` response

func (GetSessionResult) Status

func (r GetSessionResult) Status() string

Status returns HTTPResponse.Status

func (GetSessionResult) StatusCode

func (r GetSessionResult) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetStateResult

type GetStateResult struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *PublicStateResponse
	// JSON401 the response for an HTTP 401 `application/json` response
	JSON401 *BardiyaErrorEnvelope
	// JSON403 the response for an HTTP 403 `application/json` response
	JSON403 *BardiyaErrorEnvelope
	// JSON404 the response for an HTTP 404 `application/json` response
	JSON404 *BardiyaErrorEnvelope
	// JSON409 the response for an HTTP 409 `application/json` response
	JSON409 *BardiyaErrorEnvelope
	// JSON422 the response for an HTTP 422 `application/json` response
	JSON422 *BardiyaErrorEnvelope
	// JSON503 the response for an HTTP 503 `application/json` response
	JSON503 *BardiyaErrorEnvelope
}

func ParseGetStateResult

func ParseGetStateResult(rsp *http.Response) (*GetStateResult, error)

ParseGetStateResult parses an HTTP response from a GetStateWithResponse call

func (GetStateResult) ContentType

func (r GetStateResult) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (GetStateResult) GetBody

func (r GetStateResult) GetBody() []byte

GetBody returns the raw response body bytes

func (GetStateResult) GetJSON200

func (r GetStateResult) GetJSON200() *PublicStateResponse

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (GetStateResult) GetJSON401

func (r GetStateResult) GetJSON401() *BardiyaErrorEnvelope

GetJSON401 returns the response for an HTTP 401 `application/json` response

func (GetStateResult) GetJSON403

func (r GetStateResult) GetJSON403() *BardiyaErrorEnvelope

GetJSON403 returns the response for an HTTP 403 `application/json` response

func (GetStateResult) GetJSON404

func (r GetStateResult) GetJSON404() *BardiyaErrorEnvelope

GetJSON404 returns the response for an HTTP 404 `application/json` response

func (GetStateResult) GetJSON409

func (r GetStateResult) GetJSON409() *BardiyaErrorEnvelope

GetJSON409 returns the response for an HTTP 409 `application/json` response

func (GetStateResult) GetJSON422

func (r GetStateResult) GetJSON422() *BardiyaErrorEnvelope

GetJSON422 returns the response for an HTTP 422 `application/json` response

func (GetStateResult) GetJSON503

func (r GetStateResult) GetJSON503() *BardiyaErrorEnvelope

GetJSON503 returns the response for an HTTP 503 `application/json` response

func (GetStateResult) Status

func (r GetStateResult) Status() string

Status returns HTTPResponse.Status

func (GetStateResult) StatusCode

func (r GetStateResult) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetStyleParams

type GetStyleParams struct {
	IdempotencyKey *string `json:"Idempotency-Key,omitempty"`
}

GetStyleParams defines parameters for GetStyle.

type GetStyleResult

type GetStyleResult struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *MapStyle
	// JSON400 the response for an HTTP 400 `application/json` response
	JSON400 *BardiyaErrorEnvelope
	// JSON401 the response for an HTTP 401 `application/json` response
	JSON401 *BardiyaErrorEnvelope
	// JSON403 the response for an HTTP 403 `application/json` response
	JSON403 *BardiyaErrorEnvelope
	// JSON404 the response for an HTTP 404 `application/json` response
	JSON404 *BardiyaErrorEnvelope
	// JSON422 the response for an HTTP 422 `application/json` response
	JSON422 *HTTPValidationError
	// JSON429 the response for an HTTP 429 `application/json` response
	JSON429 *BardiyaErrorEnvelope
	// JSON503 the response for an HTTP 503 `application/json` response
	JSON503 *BardiyaErrorEnvelope
}

func ParseGetStyleResult

func ParseGetStyleResult(rsp *http.Response) (*GetStyleResult, error)

ParseGetStyleResult parses an HTTP response from a GetStyleWithResponse call

func (GetStyleResult) ContentType

func (r GetStyleResult) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (GetStyleResult) GetBody

func (r GetStyleResult) GetBody() []byte

GetBody returns the raw response body bytes

func (GetStyleResult) GetJSON200

func (r GetStyleResult) GetJSON200() *MapStyle

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (GetStyleResult) GetJSON400

func (r GetStyleResult) GetJSON400() *BardiyaErrorEnvelope

GetJSON400 returns the response for an HTTP 400 `application/json` response

func (GetStyleResult) GetJSON401

func (r GetStyleResult) GetJSON401() *BardiyaErrorEnvelope

GetJSON401 returns the response for an HTTP 401 `application/json` response

func (GetStyleResult) GetJSON403

func (r GetStyleResult) GetJSON403() *BardiyaErrorEnvelope

GetJSON403 returns the response for an HTTP 403 `application/json` response

func (GetStyleResult) GetJSON404

func (r GetStyleResult) GetJSON404() *BardiyaErrorEnvelope

GetJSON404 returns the response for an HTTP 404 `application/json` response

func (GetStyleResult) GetJSON422

func (r GetStyleResult) GetJSON422() *HTTPValidationError

GetJSON422 returns the response for an HTTP 422 `application/json` response

func (GetStyleResult) GetJSON429

func (r GetStyleResult) GetJSON429() *BardiyaErrorEnvelope

GetJSON429 returns the response for an HTTP 429 `application/json` response

func (GetStyleResult) GetJSON503

func (r GetStyleResult) GetJSON503() *BardiyaErrorEnvelope

GetJSON503 returns the response for an HTTP 503 `application/json` response

func (GetStyleResult) Status

func (r GetStyleResult) Status() string

Status returns HTTPResponse.Status

func (GetStyleResult) StatusCode

func (r GetStyleResult) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetTileParams

type GetTileParams struct {
	IdempotencyKey *string `json:"Idempotency-Key,omitempty"`
}

GetTileParams defines parameters for GetTile.

type GetTileResult

type GetTileResult struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON400 the response for an HTTP 400 `application/json` response
	JSON400 *BardiyaErrorEnvelope
	// JSON401 the response for an HTTP 401 `application/json` response
	JSON401 *BardiyaErrorEnvelope
	// JSON403 the response for an HTTP 403 `application/json` response
	JSON403 *BardiyaErrorEnvelope
	// JSON404 the response for an HTTP 404 `application/json` response
	JSON404 *BardiyaErrorEnvelope
	// JSON422 the response for an HTTP 422 `application/json` response
	JSON422 *HTTPValidationError
	// JSON429 the response for an HTTP 429 `application/json` response
	JSON429 *BardiyaErrorEnvelope
	// JSON503 the response for an HTTP 503 `application/json` response
	JSON503 *BardiyaErrorEnvelope
}

func ParseGetTileResult

func ParseGetTileResult(rsp *http.Response) (*GetTileResult, error)

ParseGetTileResult parses an HTTP response from a GetTileWithResponse call

func (GetTileResult) ContentType

func (r GetTileResult) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (GetTileResult) GetBody

func (r GetTileResult) GetBody() []byte

GetBody returns the raw response body bytes

func (GetTileResult) GetJSON400

func (r GetTileResult) GetJSON400() *BardiyaErrorEnvelope

GetJSON400 returns the response for an HTTP 400 `application/json` response

func (GetTileResult) GetJSON401

func (r GetTileResult) GetJSON401() *BardiyaErrorEnvelope

GetJSON401 returns the response for an HTTP 401 `application/json` response

func (GetTileResult) GetJSON403

func (r GetTileResult) GetJSON403() *BardiyaErrorEnvelope

GetJSON403 returns the response for an HTTP 403 `application/json` response

func (GetTileResult) GetJSON404

func (r GetTileResult) GetJSON404() *BardiyaErrorEnvelope

GetJSON404 returns the response for an HTTP 404 `application/json` response

func (GetTileResult) GetJSON422

func (r GetTileResult) GetJSON422() *HTTPValidationError

GetJSON422 returns the response for an HTTP 422 `application/json` response

func (GetTileResult) GetJSON429

func (r GetTileResult) GetJSON429() *BardiyaErrorEnvelope

GetJSON429 returns the response for an HTTP 429 `application/json` response

func (GetTileResult) GetJSON503

func (r GetTileResult) GetJSON503() *BardiyaErrorEnvelope

GetJSON503 returns the response for an HTTP 503 `application/json` response

func (GetTileResult) Status

func (r GetTileResult) Status() string

Status returns HTTPResponse.Status

func (GetTileResult) StatusCode

func (r GetTileResult) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetWebhookResult

type GetWebhookResult struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *WebhookResponse
	// JSON401 the response for an HTTP 401 `application/json` response
	JSON401 *BardiyaErrorEnvelope
	// JSON403 the response for an HTTP 403 `application/json` response
	JSON403 *BardiyaErrorEnvelope
	// JSON404 the response for an HTTP 404 `application/json` response
	JSON404 *BardiyaErrorEnvelope
	// JSON409 the response for an HTTP 409 `application/json` response
	JSON409 *BardiyaErrorEnvelope
	// JSON422 the response for an HTTP 422 `application/json` response
	JSON422 *BardiyaErrorEnvelope
	// JSON503 the response for an HTTP 503 `application/json` response
	JSON503 *BardiyaErrorEnvelope
}

func ParseGetWebhookResult

func ParseGetWebhookResult(rsp *http.Response) (*GetWebhookResult, error)

ParseGetWebhookResult parses an HTTP response from a GetWebhookWithResponse call

func (GetWebhookResult) ContentType

func (r GetWebhookResult) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (GetWebhookResult) GetBody

func (r GetWebhookResult) GetBody() []byte

GetBody returns the raw response body bytes

func (GetWebhookResult) GetJSON200

func (r GetWebhookResult) GetJSON200() *WebhookResponse

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (GetWebhookResult) GetJSON401

func (r GetWebhookResult) GetJSON401() *BardiyaErrorEnvelope

GetJSON401 returns the response for an HTTP 401 `application/json` response

func (GetWebhookResult) GetJSON403

func (r GetWebhookResult) GetJSON403() *BardiyaErrorEnvelope

GetJSON403 returns the response for an HTTP 403 `application/json` response

func (GetWebhookResult) GetJSON404

func (r GetWebhookResult) GetJSON404() *BardiyaErrorEnvelope

GetJSON404 returns the response for an HTTP 404 `application/json` response

func (GetWebhookResult) GetJSON409

func (r GetWebhookResult) GetJSON409() *BardiyaErrorEnvelope

GetJSON409 returns the response for an HTTP 409 `application/json` response

func (GetWebhookResult) GetJSON422

func (r GetWebhookResult) GetJSON422() *BardiyaErrorEnvelope

GetJSON422 returns the response for an HTTP 422 `application/json` response

func (GetWebhookResult) GetJSON503

func (r GetWebhookResult) GetJSON503() *BardiyaErrorEnvelope

GetJSON503 returns the response for an HTTP 503 `application/json` response

func (GetWebhookResult) Status

func (r GetWebhookResult) Status() string

Status returns HTTPResponse.Status

func (GetWebhookResult) StatusCode

func (r GetWebhookResult) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type HTTPValidationError

type HTTPValidationError struct {
	Detail *[]ValidationError `json:"detail,omitempty"`
}

HTTPValidationError defines model for HTTPValidationError.

type HealthLiveResponse

type HealthLiveResponse struct {
	Status HealthLiveResponseStatus `json:"status"`
}

HealthLiveResponse defines model for HealthLiveResponse.

type HealthLiveResponseStatus

type HealthLiveResponseStatus string

HealthLiveResponseStatus defines model for HealthLiveResponse.Status.

const (
	Alive HealthLiveResponseStatus = "alive"
)

Defines values for HealthLiveResponseStatus.

func (HealthLiveResponseStatus) Valid

func (e HealthLiveResponseStatus) Valid() bool

Valid indicates whether the value is a known member of the HealthLiveResponseStatus enum.

type HealthLiveResult

type HealthLiveResult struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *HealthLiveResponse
	// JSON400 the response for an HTTP 400 `application/json` response
	JSON400 *BardiyaErrorEnvelope
	// JSON401 the response for an HTTP 401 `application/json` response
	JSON401 *BardiyaErrorEnvelope
	// JSON403 the response for an HTTP 403 `application/json` response
	JSON403 *BardiyaErrorEnvelope
	// JSON404 the response for an HTTP 404 `application/json` response
	JSON404 *BardiyaErrorEnvelope
	// JSON422 the response for an HTTP 422 `application/json` response
	JSON422 *BardiyaErrorEnvelope
	// JSON429 the response for an HTTP 429 `application/json` response
	JSON429 *BardiyaErrorEnvelope
	// JSON503 the response for an HTTP 503 `application/json` response
	JSON503 *BardiyaErrorEnvelope
}

func ParseHealthLiveResult

func ParseHealthLiveResult(rsp *http.Response) (*HealthLiveResult, error)

ParseHealthLiveResult parses an HTTP response from a HealthLiveWithResponse call

func (HealthLiveResult) ContentType

func (r HealthLiveResult) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (HealthLiveResult) GetBody

func (r HealthLiveResult) GetBody() []byte

GetBody returns the raw response body bytes

func (HealthLiveResult) GetJSON200

func (r HealthLiveResult) GetJSON200() *HealthLiveResponse

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (HealthLiveResult) GetJSON400

func (r HealthLiveResult) GetJSON400() *BardiyaErrorEnvelope

GetJSON400 returns the response for an HTTP 400 `application/json` response

func (HealthLiveResult) GetJSON401

func (r HealthLiveResult) GetJSON401() *BardiyaErrorEnvelope

GetJSON401 returns the response for an HTTP 401 `application/json` response

func (HealthLiveResult) GetJSON403

func (r HealthLiveResult) GetJSON403() *BardiyaErrorEnvelope

GetJSON403 returns the response for an HTTP 403 `application/json` response

func (HealthLiveResult) GetJSON404

func (r HealthLiveResult) GetJSON404() *BardiyaErrorEnvelope

GetJSON404 returns the response for an HTTP 404 `application/json` response

func (HealthLiveResult) GetJSON422

func (r HealthLiveResult) GetJSON422() *BardiyaErrorEnvelope

GetJSON422 returns the response for an HTTP 422 `application/json` response

func (HealthLiveResult) GetJSON429

func (r HealthLiveResult) GetJSON429() *BardiyaErrorEnvelope

GetJSON429 returns the response for an HTTP 429 `application/json` response

func (HealthLiveResult) GetJSON503

func (r HealthLiveResult) GetJSON503() *BardiyaErrorEnvelope

GetJSON503 returns the response for an HTTP 503 `application/json` response

func (HealthLiveResult) Status

func (r HealthLiveResult) Status() string

Status returns HTTPResponse.Status

func (HealthLiveResult) StatusCode

func (r HealthLiveResult) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type HealthReadyResponse

type HealthReadyResponse struct {
	ApiVersion               string                    `json:"api_version"`
	Database                 *bool                     `json:"database,omitempty"`
	MigrationHead            *bool                     `json:"migration_head,omitempty"`
	Postgis                  *bool                     `json:"postgis,omitempty"`
	RequestId                string                    `json:"request_id"`
	RoutingProvider          *string                   `json:"routing_provider,omitempty"`
	RoutingProvidersOptional *bool                     `json:"routing_providers_optional,omitempty"`
	Status                   HealthReadyResponseStatus `json:"status"`
	Timestamp                time.Time                 `json:"timestamp"`
}

HealthReadyResponse defines model for HealthReadyResponse.

type HealthReadyResponseStatus

type HealthReadyResponseStatus string

HealthReadyResponseStatus defines model for HealthReadyResponse.Status.

const (
	NotReady HealthReadyResponseStatus = "not_ready"
	Ready    HealthReadyResponseStatus = "ready"
)

Defines values for HealthReadyResponseStatus.

func (HealthReadyResponseStatus) Valid

func (e HealthReadyResponseStatus) Valid() bool

Valid indicates whether the value is a known member of the HealthReadyResponseStatus enum.

type HealthReadyResult

type HealthReadyResult struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *HealthReadyResponse
	// JSON400 the response for an HTTP 400 `application/json` response
	JSON400 *BardiyaErrorEnvelope
	// JSON401 the response for an HTTP 401 `application/json` response
	JSON401 *BardiyaErrorEnvelope
	// JSON403 the response for an HTTP 403 `application/json` response
	JSON403 *BardiyaErrorEnvelope
	// JSON404 the response for an HTTP 404 `application/json` response
	JSON404 *BardiyaErrorEnvelope
	// JSON422 the response for an HTTP 422 `application/json` response
	JSON422 *BardiyaErrorEnvelope
	// JSON429 the response for an HTTP 429 `application/json` response
	JSON429 *BardiyaErrorEnvelope
	// JSON503 the response for an HTTP 503 `application/json` response
	JSON503 *HealthReadyResponse
}

func ParseHealthReadyResult

func ParseHealthReadyResult(rsp *http.Response) (*HealthReadyResult, error)

ParseHealthReadyResult parses an HTTP response from a HealthReadyWithResponse call

func (HealthReadyResult) ContentType

func (r HealthReadyResult) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (HealthReadyResult) GetBody

func (r HealthReadyResult) GetBody() []byte

GetBody returns the raw response body bytes

func (HealthReadyResult) GetJSON200

func (r HealthReadyResult) GetJSON200() *HealthReadyResponse

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (HealthReadyResult) GetJSON400

func (r HealthReadyResult) GetJSON400() *BardiyaErrorEnvelope

GetJSON400 returns the response for an HTTP 400 `application/json` response

func (HealthReadyResult) GetJSON401

func (r HealthReadyResult) GetJSON401() *BardiyaErrorEnvelope

GetJSON401 returns the response for an HTTP 401 `application/json` response

func (HealthReadyResult) GetJSON403

func (r HealthReadyResult) GetJSON403() *BardiyaErrorEnvelope

GetJSON403 returns the response for an HTTP 403 `application/json` response

func (HealthReadyResult) GetJSON404

func (r HealthReadyResult) GetJSON404() *BardiyaErrorEnvelope

GetJSON404 returns the response for an HTTP 404 `application/json` response

func (HealthReadyResult) GetJSON422

func (r HealthReadyResult) GetJSON422() *BardiyaErrorEnvelope

GetJSON422 returns the response for an HTTP 422 `application/json` response

func (HealthReadyResult) GetJSON429

func (r HealthReadyResult) GetJSON429() *BardiyaErrorEnvelope

GetJSON429 returns the response for an HTTP 429 `application/json` response

func (HealthReadyResult) GetJSON503

func (r HealthReadyResult) GetJSON503() *HealthReadyResponse

GetJSON503 returns the response for an HTTP 503 `application/json` response

func (HealthReadyResult) Status

func (r HealthReadyResult) Status() string

Status returns HTTPResponse.Status

func (HealthReadyResult) StatusCode

func (r HealthReadyResult) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type HistoryPage

type HistoryPage struct {
	HasMore       bool           `json:"has_more"`
	Items         []HistoryPoint `json:"items"`
	NextCursor    *string        `json:"next_cursor,omitempty"`
	RetentionDays *int           `json:"retention_days,omitempty"`
}

HistoryPage A bounded page of history. `next_cursor` is opaque; pass it back unchanged. `retention_days` reports the visible horizon for this credential.

type HistoryPoint

type HistoryPoint struct {
	AccuracyM  *float64 `json:"accuracy_m,omitempty"`
	AltitudeM  *float64 `json:"altitude_m,omitempty"`
	ClientSeq  int      `json:"client_seq"`
	EventFlags int      `json:"event_flags"`

	// EventId `tracking_location_events.id`, a PostgreSQL BIGINT identity returned as
	// a JSON number. See `sdk/contract/DECISIONS.md` (D17) for the
	// JavaScript safe-integer boundary.
	EventId    int64                 `json:"event_id"`
	EventType  HistoryPointEventType `json:"event_type"`
	HeadingDeg *float64              `json:"heading_deg,omitempty"`
	Latitude   *float64              `json:"latitude,omitempty"`
	Longitude  *float64              `json:"longitude,omitempty"`
	ReceivedAt time.Time             `json:"received_at"`
	RecordedAt time.Time             `json:"recorded_at"`
	SessionId  string                `json:"session_id"`
	SpeedMps   *float64              `json:"speed_mps,omitempty"`
}

HistoryPoint One stored keyframe. `event_flags` is a 0-7 bit field, not a boolean set. `latitude`/`longitude` are null for heartbeat events.

type HistoryPointEventType

type HistoryPointEventType string

HistoryPointEventType defines model for HistoryPoint.EventType.

const (
	HistoryPointEventTypeHeartbeat HistoryPointEventType = "heartbeat"
	HistoryPointEventTypeLocation  HistoryPointEventType = "location"
)

Defines values for HistoryPointEventType.

func (HistoryPointEventType) Valid

func (e HistoryPointEventType) Valid() bool

Valid indicates whether the value is a known member of the HistoryPointEventType enum.

type HttpRequestDoer

type HttpRequestDoer interface {
	Do(req *http.Request) (*http.Response, error)
}

Doer performs HTTP requests.

The standard http.Client implements this interface.

type Ingest

type Ingest struct {
	// contains filtered or unexported fields
}

Ingest posts telemetry with a session-scoped credential.

func (*Ingest) SendLocation

SendLocation ingests one event for this device's session.

func (*Ingest) SendLocationBatch

SendLocationBatch ingests a bounded batch for this device's session.

type IssueIngestTokenResult

type IssueIngestTokenResult struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *TrackingCredentialResponse
	// JSON401 the response for an HTTP 401 `application/json` response
	JSON401 *BardiyaErrorEnvelope
	// JSON403 the response for an HTTP 403 `application/json` response
	JSON403 *BardiyaErrorEnvelope
	// JSON404 the response for an HTTP 404 `application/json` response
	JSON404 *BardiyaErrorEnvelope
	// JSON409 the response for an HTTP 409 `application/json` response
	JSON409 *BardiyaErrorEnvelope
	// JSON422 the response for an HTTP 422 `application/json` response
	JSON422 *BardiyaErrorEnvelope
	// JSON503 the response for an HTTP 503 `application/json` response
	JSON503 *BardiyaErrorEnvelope
}

func ParseIssueIngestTokenResult

func ParseIssueIngestTokenResult(rsp *http.Response) (*IssueIngestTokenResult, error)

ParseIssueIngestTokenResult parses an HTTP response from a IssueIngestTokenWithResponse call

func (IssueIngestTokenResult) ContentType

func (r IssueIngestTokenResult) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (IssueIngestTokenResult) GetBody

func (r IssueIngestTokenResult) GetBody() []byte

GetBody returns the raw response body bytes

func (IssueIngestTokenResult) GetJSON200

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (IssueIngestTokenResult) GetJSON401

GetJSON401 returns the response for an HTTP 401 `application/json` response

func (IssueIngestTokenResult) GetJSON403

GetJSON403 returns the response for an HTTP 403 `application/json` response

func (IssueIngestTokenResult) GetJSON404

GetJSON404 returns the response for an HTTP 404 `application/json` response

func (IssueIngestTokenResult) GetJSON409

GetJSON409 returns the response for an HTTP 409 `application/json` response

func (IssueIngestTokenResult) GetJSON422

GetJSON422 returns the response for an HTTP 422 `application/json` response

func (IssueIngestTokenResult) GetJSON503

GetJSON503 returns the response for an HTTP 503 `application/json` response

func (IssueIngestTokenResult) Status

func (r IssueIngestTokenResult) Status() string

Status returns HTTPResponse.Status

func (IssueIngestTokenResult) StatusCode

func (r IssueIngestTokenResult) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type Landmark

type Landmark struct {
	Category   *string `json:"category,omitempty"`
	CategoryAr *string `json:"category_ar,omitempty"`
	DistanceM  int     `json:"distance_m"`
	Name       string  `json:"name"`
}

Landmark defines model for Landmark.

type ListClientTokensParams

type ListClientTokensParams struct {
	Limit *int `form:"limit,omitempty" json:"limit,omitempty"`
}

ListClientTokensParams defines parameters for ListClientTokens.

type ListClientTokensResult

type ListClientTokensResult struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *ClientTokenList
	// JSON400 the response for an HTTP 400 `application/json` response
	JSON400 *BardiyaErrorEnvelope
	// JSON401 the response for an HTTP 401 `application/json` response
	JSON401 *BardiyaErrorEnvelope
	// JSON403 the response for an HTTP 403 `application/json` response
	JSON403 *BardiyaErrorEnvelope
	// JSON404 the response for an HTTP 404 `application/json` response
	JSON404 *BardiyaErrorEnvelope
	// JSON409 the response for an HTTP 409 `application/json` response
	JSON409 *BardiyaErrorEnvelope
	// JSON422 the response for an HTTP 422 `application/json` response
	JSON422 *BardiyaErrorEnvelope
	// JSON429 the response for an HTTP 429 `application/json` response
	JSON429 *BardiyaErrorEnvelope
	// JSON503 the response for an HTTP 503 `application/json` response
	JSON503 *BardiyaErrorEnvelope
}

func ParseListClientTokensResult

func ParseListClientTokensResult(rsp *http.Response) (*ListClientTokensResult, error)

ParseListClientTokensResult parses an HTTP response from a ListClientTokensWithResponse call

func (ListClientTokensResult) ContentType

func (r ListClientTokensResult) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (ListClientTokensResult) GetBody

func (r ListClientTokensResult) GetBody() []byte

GetBody returns the raw response body bytes

func (ListClientTokensResult) GetJSON200

func (r ListClientTokensResult) GetJSON200() *ClientTokenList

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (ListClientTokensResult) GetJSON400

GetJSON400 returns the response for an HTTP 400 `application/json` response

func (ListClientTokensResult) GetJSON401

GetJSON401 returns the response for an HTTP 401 `application/json` response

func (ListClientTokensResult) GetJSON403

GetJSON403 returns the response for an HTTP 403 `application/json` response

func (ListClientTokensResult) GetJSON404

GetJSON404 returns the response for an HTTP 404 `application/json` response

func (ListClientTokensResult) GetJSON409

GetJSON409 returns the response for an HTTP 409 `application/json` response

func (ListClientTokensResult) GetJSON422

GetJSON422 returns the response for an HTTP 422 `application/json` response

func (ListClientTokensResult) GetJSON429

GetJSON429 returns the response for an HTTP 429 `application/json` response

func (ListClientTokensResult) GetJSON503

GetJSON503 returns the response for an HTTP 503 `application/json` response

func (ListClientTokensResult) Status

func (r ListClientTokensResult) Status() string

Status returns HTTPResponse.Status

func (ListClientTokensResult) StatusCode

func (r ListClientTokensResult) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ListSessionsParams

type ListSessionsParams struct {
	Limit             *int    `form:"limit,omitempty" json:"limit,omitempty"`
	Cursor            *string `form:"cursor,omitempty" json:"cursor,omitempty"`
	Status            *string `form:"status,omitempty" json:"status,omitempty"`
	ExternalReference *string `form:"external_reference,omitempty" json:"external_reference,omitempty"`
	SubjectType       *string `form:"subject_type,omitempty" json:"subject_type,omitempty"`
}

ListSessionsParams defines parameters for ListSessions.

type ListSessionsResult

type ListSessionsResult struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *PublicSessionListResponse
	// JSON401 the response for an HTTP 401 `application/json` response
	JSON401 *BardiyaErrorEnvelope
	// JSON403 the response for an HTTP 403 `application/json` response
	JSON403 *BardiyaErrorEnvelope
	// JSON404 the response for an HTTP 404 `application/json` response
	JSON404 *BardiyaErrorEnvelope
	// JSON409 the response for an HTTP 409 `application/json` response
	JSON409 *BardiyaErrorEnvelope
	// JSON422 the response for an HTTP 422 `application/json` response
	JSON422 *BardiyaErrorEnvelope
	// JSON503 the response for an HTTP 503 `application/json` response
	JSON503 *BardiyaErrorEnvelope
}

func ParseListSessionsResult

func ParseListSessionsResult(rsp *http.Response) (*ListSessionsResult, error)

ParseListSessionsResult parses an HTTP response from a ListSessionsWithResponse call

func (ListSessionsResult) ContentType

func (r ListSessionsResult) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (ListSessionsResult) GetBody

func (r ListSessionsResult) GetBody() []byte

GetBody returns the raw response body bytes

func (ListSessionsResult) GetJSON200

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (ListSessionsResult) GetJSON401

func (r ListSessionsResult) GetJSON401() *BardiyaErrorEnvelope

GetJSON401 returns the response for an HTTP 401 `application/json` response

func (ListSessionsResult) GetJSON403

func (r ListSessionsResult) GetJSON403() *BardiyaErrorEnvelope

GetJSON403 returns the response for an HTTP 403 `application/json` response

func (ListSessionsResult) GetJSON404

func (r ListSessionsResult) GetJSON404() *BardiyaErrorEnvelope

GetJSON404 returns the response for an HTTP 404 `application/json` response

func (ListSessionsResult) GetJSON409

func (r ListSessionsResult) GetJSON409() *BardiyaErrorEnvelope

GetJSON409 returns the response for an HTTP 409 `application/json` response

func (ListSessionsResult) GetJSON422

func (r ListSessionsResult) GetJSON422() *BardiyaErrorEnvelope

GetJSON422 returns the response for an HTTP 422 `application/json` response

func (ListSessionsResult) GetJSON503

func (r ListSessionsResult) GetJSON503() *BardiyaErrorEnvelope

GetJSON503 returns the response for an HTTP 503 `application/json` response

func (ListSessionsResult) Status

func (r ListSessionsResult) Status() string

Status returns HTTPResponse.Status

func (ListSessionsResult) StatusCode

func (r ListSessionsResult) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ListSubscriptionsParams

type ListSubscriptionsParams struct {
	Limit *int `form:"limit,omitempty" json:"limit,omitempty"`
}

ListSubscriptionsParams defines parameters for ListSubscriptions.

type ListSubscriptionsResult

type ListSubscriptionsResult struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *SubscriptionList
	// JSON400 the response for an HTTP 400 `application/json` response
	JSON400 *BardiyaErrorEnvelope
	// JSON401 the response for an HTTP 401 `application/json` response
	JSON401 *BardiyaErrorEnvelope
	// JSON403 the response for an HTTP 403 `application/json` response
	JSON403 *BardiyaErrorEnvelope
	// JSON404 the response for an HTTP 404 `application/json` response
	JSON404 *BardiyaErrorEnvelope
	// JSON409 the response for an HTTP 409 `application/json` response
	JSON409 *BardiyaErrorEnvelope
	// JSON422 the response for an HTTP 422 `application/json` response
	JSON422 *BardiyaErrorEnvelope
	// JSON429 the response for an HTTP 429 `application/json` response
	JSON429 *BardiyaErrorEnvelope
	// JSON503 the response for an HTTP 503 `application/json` response
	JSON503 *BardiyaErrorEnvelope
}

func ParseListSubscriptionsResult

func ParseListSubscriptionsResult(rsp *http.Response) (*ListSubscriptionsResult, error)

ParseListSubscriptionsResult parses an HTTP response from a ListSubscriptionsWithResponse call

func (ListSubscriptionsResult) ContentType

func (r ListSubscriptionsResult) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (ListSubscriptionsResult) GetBody

func (r ListSubscriptionsResult) GetBody() []byte

GetBody returns the raw response body bytes

func (ListSubscriptionsResult) GetJSON200

func (r ListSubscriptionsResult) GetJSON200() *SubscriptionList

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (ListSubscriptionsResult) GetJSON400

GetJSON400 returns the response for an HTTP 400 `application/json` response

func (ListSubscriptionsResult) GetJSON401

GetJSON401 returns the response for an HTTP 401 `application/json` response

func (ListSubscriptionsResult) GetJSON403

GetJSON403 returns the response for an HTTP 403 `application/json` response

func (ListSubscriptionsResult) GetJSON404

GetJSON404 returns the response for an HTTP 404 `application/json` response

func (ListSubscriptionsResult) GetJSON409

GetJSON409 returns the response for an HTTP 409 `application/json` response

func (ListSubscriptionsResult) GetJSON422

GetJSON422 returns the response for an HTTP 422 `application/json` response

func (ListSubscriptionsResult) GetJSON429

GetJSON429 returns the response for an HTTP 429 `application/json` response

func (ListSubscriptionsResult) GetJSON503

GetJSON503 returns the response for an HTTP 503 `application/json` response

func (ListSubscriptionsResult) Status

func (r ListSubscriptionsResult) Status() string

Status returns HTTPResponse.Status

func (ListSubscriptionsResult) StatusCode

func (r ListSubscriptionsResult) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ListWebhookDeliveriesParams

type ListWebhookDeliveriesParams struct {
	Limit  *int    `form:"limit,omitempty" json:"limit,omitempty"`
	Cursor *string `form:"cursor,omitempty" json:"cursor,omitempty"`
}

ListWebhookDeliveriesParams defines parameters for ListWebhookDeliveries.

type ListWebhookDeliveriesResult

type ListWebhookDeliveriesResult struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *WebhookDeliveryListResponse
	// JSON401 the response for an HTTP 401 `application/json` response
	JSON401 *BardiyaErrorEnvelope
	// JSON403 the response for an HTTP 403 `application/json` response
	JSON403 *BardiyaErrorEnvelope
	// JSON404 the response for an HTTP 404 `application/json` response
	JSON404 *BardiyaErrorEnvelope
	// JSON409 the response for an HTTP 409 `application/json` response
	JSON409 *BardiyaErrorEnvelope
	// JSON422 the response for an HTTP 422 `application/json` response
	JSON422 *BardiyaErrorEnvelope
	// JSON503 the response for an HTTP 503 `application/json` response
	JSON503 *BardiyaErrorEnvelope
}

func ParseListWebhookDeliveriesResult

func ParseListWebhookDeliveriesResult(rsp *http.Response) (*ListWebhookDeliveriesResult, error)

ParseListWebhookDeliveriesResult parses an HTTP response from a ListWebhookDeliveriesWithResponse call

func (ListWebhookDeliveriesResult) ContentType

func (r ListWebhookDeliveriesResult) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (ListWebhookDeliveriesResult) GetBody

func (r ListWebhookDeliveriesResult) GetBody() []byte

GetBody returns the raw response body bytes

func (ListWebhookDeliveriesResult) GetJSON200

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (ListWebhookDeliveriesResult) GetJSON401

GetJSON401 returns the response for an HTTP 401 `application/json` response

func (ListWebhookDeliveriesResult) GetJSON403

GetJSON403 returns the response for an HTTP 403 `application/json` response

func (ListWebhookDeliveriesResult) GetJSON404

GetJSON404 returns the response for an HTTP 404 `application/json` response

func (ListWebhookDeliveriesResult) GetJSON409

GetJSON409 returns the response for an HTTP 409 `application/json` response

func (ListWebhookDeliveriesResult) GetJSON422

GetJSON422 returns the response for an HTTP 422 `application/json` response

func (ListWebhookDeliveriesResult) GetJSON503

GetJSON503 returns the response for an HTTP 503 `application/json` response

func (ListWebhookDeliveriesResult) Status

Status returns HTTPResponse.Status

func (ListWebhookDeliveriesResult) StatusCode

func (r ListWebhookDeliveriesResult) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ListWebhooksParams

type ListWebhooksParams struct {
	Limit  *int    `form:"limit,omitempty" json:"limit,omitempty"`
	Cursor *string `form:"cursor,omitempty" json:"cursor,omitempty"`
}

ListWebhooksParams defines parameters for ListWebhooks.

type ListWebhooksResult

type ListWebhooksResult struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *WebhookListResponse
	// JSON401 the response for an HTTP 401 `application/json` response
	JSON401 *BardiyaErrorEnvelope
	// JSON403 the response for an HTTP 403 `application/json` response
	JSON403 *BardiyaErrorEnvelope
	// JSON404 the response for an HTTP 404 `application/json` response
	JSON404 *BardiyaErrorEnvelope
	// JSON409 the response for an HTTP 409 `application/json` response
	JSON409 *BardiyaErrorEnvelope
	// JSON422 the response for an HTTP 422 `application/json` response
	JSON422 *BardiyaErrorEnvelope
	// JSON503 the response for an HTTP 503 `application/json` response
	JSON503 *BardiyaErrorEnvelope
}

func ParseListWebhooksResult

func ParseListWebhooksResult(rsp *http.Response) (*ListWebhooksResult, error)

ParseListWebhooksResult parses an HTTP response from a ListWebhooksWithResponse call

func (ListWebhooksResult) ContentType

func (r ListWebhooksResult) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (ListWebhooksResult) GetBody

func (r ListWebhooksResult) GetBody() []byte

GetBody returns the raw response body bytes

func (ListWebhooksResult) GetJSON200

func (r ListWebhooksResult) GetJSON200() *WebhookListResponse

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (ListWebhooksResult) GetJSON401

func (r ListWebhooksResult) GetJSON401() *BardiyaErrorEnvelope

GetJSON401 returns the response for an HTTP 401 `application/json` response

func (ListWebhooksResult) GetJSON403

func (r ListWebhooksResult) GetJSON403() *BardiyaErrorEnvelope

GetJSON403 returns the response for an HTTP 403 `application/json` response

func (ListWebhooksResult) GetJSON404

func (r ListWebhooksResult) GetJSON404() *BardiyaErrorEnvelope

GetJSON404 returns the response for an HTTP 404 `application/json` response

func (ListWebhooksResult) GetJSON409

func (r ListWebhooksResult) GetJSON409() *BardiyaErrorEnvelope

GetJSON409 returns the response for an HTTP 409 `application/json` response

func (ListWebhooksResult) GetJSON422

func (r ListWebhooksResult) GetJSON422() *BardiyaErrorEnvelope

GetJSON422 returns the response for an HTTP 422 `application/json` response

func (ListWebhooksResult) GetJSON503

func (r ListWebhooksResult) GetJSON503() *BardiyaErrorEnvelope

GetJSON503 returns the response for an HTTP 503 `application/json` response

func (ListWebhooksResult) Status

func (r ListWebhooksResult) Status() string

Status returns HTTPResponse.Status

func (ListWebhooksResult) StatusCode

func (r ListWebhooksResult) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type MapStyle

type MapStyle map[string]interface{}

MapStyle A MapLibre style document. Pass it straight to MapLibre.

type Maps

type Maps struct {
	// contains filtered or unexported fields
}

Maps is the Maps product family. It authenticates with X-API-Key and every method here is a read or a read-only computation. Chargeable POST retries require both RetryPostComputations and an Idempotency-Key.

func (*Maps) AutocompletePlaces

func (m *Maps) AutocompletePlaces(ctx context.Context, params *AutocompletePlacesParams) (*AutocompleteResponse, error)

AutocompletePlaces returns ranked suggestions for a partial query.

func (*Maps) Directions

func (m *Maps) Directions(
	ctx context.Context,
	body DirectionsJSONRequestBody,
	options ...MapsCallOption,
) (*DirectionsResponse, error)

Directions calculates a route between two points.

func (*Maps) DistanceMatrix

func (m *Maps) DistanceMatrix(
	ctx context.Context,
	body DistanceMatrixJSONRequestBody,
	options ...MapsCallOption,
) (*DistanceMatrixResponse, error)

DistanceMatrix calculates an origin/destination cost matrix.

func (*Maps) ForwardGeocode

func (m *Maps) ForwardGeocode(ctx context.Context, params *ForwardGeocodeParams) (*GeocodeResponse, error)

ForwardGeocode resolves a free-text address to coordinates.

func (*Maps) GetPlace

func (m *Maps) GetPlace(
	ctx context.Context,
	placeID string,
	options ...MapsCallOption,
) (*PlaceDetails, error)

GetPlace returns one place by id.

func (*Maps) HealthLive

func (m *Maps) HealthLive(ctx context.Context) (*HealthLiveResponse, error)

HealthLive checks liveness. No credential is required by the server.

func (*Maps) HealthReady

func (m *Maps) HealthReady(ctx context.Context) (*HealthReadyResponse, error)

HealthReady reports readiness and product availability.

func (*Maps) ReverseGeocode

func (m *Maps) ReverseGeocode(ctx context.Context, params *ReverseGeocodeParams) (*ReverseGeocodeResponse, error)

ReverseGeocode resolves coordinates to an address and nearby landmarks.

func (*Maps) SearchPlaces

func (m *Maps) SearchPlaces(ctx context.Context, params *SearchPlacesParams) (*PlaceSearchResponse, error)

SearchPlaces searches places and addresses in Arabic and English.

func (*Maps) Style

func (m *Maps) Style(ctx context.Context, options ...MapsCallOption) (*MapStyle, error)

Style returns the MapLibre style document.

Its tile URLs are relative and unsigned. In a browser, add the key with a MapLibre transformRequest or rewrite the URLs; see the package README.

func (*Maps) Tile

func (m *Maps) Tile(
	ctx context.Context,
	source string,
	z, x, y int,
	options ...MapsCallOption,
) ([]byte, error)

Tile returns the raw vector tile bytes. A 204 response returns an empty slice.

func (*Maps) ValidateAddress

func (m *Maps) ValidateAddress(
	ctx context.Context,
	body AddressValidationPublicRequest,
	options ...MapsCallOption,
) (*AddressValidationResponse, error)

ValidateAddress validates an Egyptian address against street and landmark data.

type MapsCallOption

type MapsCallOption func(*mapsCallOptions)

MapsCallOption configures an optional per-request Maps header.

func WithIdempotencyKey

func WithIdempotencyKey(key string) MapsCallOption

WithIdempotencyKey attaches an Idempotency-Key to a chargeable Maps computation. The server honours it only when the deployment enables Maps request idempotency; until then a retry is not guaranteed to be exactly-once.

type MatrixCellError

type MatrixCellError struct {
	// Code `no_route` when no duration exists; `distance_unavailable` when OSRM returned a duration but no distance annotation.
	Code             string `json:"code"`
	DestinationIndex int    `json:"destination_index"`
	Message          string `json:"message"`
	OriginIndex      int    `json:"origin_index"`
}

MatrixCellError defines model for MatrixCellError.

type MintClientTokenJSONRequestBody

type MintClientTokenJSONRequestBody = PublicClientTokenMintRequest

MintClientTokenJSONRequestBody defines body for MintClientToken for application/json ContentType.

type MintClientTokenResult

type MintClientTokenResult struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON201 the response for an HTTP 201 `application/json` response
	JSON201 *ClientTokenMinted
	// JSON400 the response for an HTTP 400 `application/json` response
	JSON400 *BardiyaErrorEnvelope
	// JSON401 the response for an HTTP 401 `application/json` response
	JSON401 *BardiyaErrorEnvelope
	// JSON403 the response for an HTTP 403 `application/json` response
	JSON403 *BardiyaErrorEnvelope
	// JSON404 the response for an HTTP 404 `application/json` response
	JSON404 *BardiyaErrorEnvelope
	// JSON409 the response for an HTTP 409 `application/json` response
	JSON409 *BardiyaErrorEnvelope
	// JSON422 the response for an HTTP 422 `application/json` response
	JSON422 *BardiyaErrorEnvelope
	// JSON429 the response for an HTTP 429 `application/json` response
	JSON429 *BardiyaErrorEnvelope
	// JSON503 the response for an HTTP 503 `application/json` response
	JSON503 *BardiyaErrorEnvelope
}

func ParseMintClientTokenResult

func ParseMintClientTokenResult(rsp *http.Response) (*MintClientTokenResult, error)

ParseMintClientTokenResult parses an HTTP response from a MintClientTokenWithResponse call

func (MintClientTokenResult) ContentType

func (r MintClientTokenResult) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (MintClientTokenResult) GetBody

func (r MintClientTokenResult) GetBody() []byte

GetBody returns the raw response body bytes

func (MintClientTokenResult) GetJSON201

func (r MintClientTokenResult) GetJSON201() *ClientTokenMinted

GetJSON201 returns the response for an HTTP 201 `application/json` response

func (MintClientTokenResult) GetJSON400

GetJSON400 returns the response for an HTTP 400 `application/json` response

func (MintClientTokenResult) GetJSON401

GetJSON401 returns the response for an HTTP 401 `application/json` response

func (MintClientTokenResult) GetJSON403

GetJSON403 returns the response for an HTTP 403 `application/json` response

func (MintClientTokenResult) GetJSON404

GetJSON404 returns the response for an HTTP 404 `application/json` response

func (MintClientTokenResult) GetJSON409

GetJSON409 returns the response for an HTTP 409 `application/json` response

func (MintClientTokenResult) GetJSON422

GetJSON422 returns the response for an HTTP 422 `application/json` response

func (MintClientTokenResult) GetJSON429

GetJSON429 returns the response for an HTTP 429 `application/json` response

func (MintClientTokenResult) GetJSON503

GetJSON503 returns the response for an HTTP 503 `application/json` response

func (MintClientTokenResult) Status

func (r MintClientTokenResult) Status() string

Status returns HTTPResponse.Status

func (MintClientTokenResult) StatusCode

func (r MintClientTokenResult) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type PlaceDetails

type PlaceDetails struct {
	AddressComponents *map[string]interface{}   `json:"address_components,omitempty"`
	Brand             *string                   `json:"brand,omitempty"`
	BrandWikidata     *string                   `json:"brand_wikidata,omitempty"`
	Category          *string                   `json:"category,omitempty"`
	CategoryAr        *string                   `json:"category_ar,omitempty"`
	CategoryHierarchy *[]string                 `json:"category_hierarchy,omitempty"`
	Confidence        *float64                  `json:"confidence,omitempty"`
	Coordinate        *Coordinate               `json:"coordinate,omitempty"`
	Emails            *[]string                 `json:"emails,omitempty"`
	Engine            *string                   `json:"engine,omitempty"`
	FormattedAddress  *string                   `json:"formatted_address,omitempty"`
	Id                string                    `json:"id"`
	Name              string                    `json:"name"`
	OpeningHours      *string                   `json:"opening_hours,omitempty"`
	OperatingStatus   *string                   `json:"operating_status,omitempty"`
	OriginalName      *string                   `json:"original_name,omitempty"`
	Phones            *[]string                 `json:"phones,omitempty"`
	PrimaryCategory   *string                   `json:"primary_category,omitempty"`
	Socials           *[]map[string]interface{} `json:"socials,omitempty"`
	Source            *string                   `json:"source,omitempty"`
	Websites          *[]string                 `json:"websites,omitempty"`
}

PlaceDetails defines model for PlaceDetails.

type PlaceSearchResponse

type PlaceSearchResponse struct {
	Count    int            `json:"count"`
	Language *string        `json:"language,omitempty"`
	Query    string         `json:"query"`
	Results  []PlaceSummary `json:"results"`
}

PlaceSearchResponse defines model for PlaceSearchResponse.

type PlaceSummary

type PlaceSummary struct {
	Category   *string     `json:"category,omitempty"`
	CategoryAr *string     `json:"category_ar,omitempty"`
	City       *string     `json:"city,omitempty"`
	Confidence *float64    `json:"confidence,omitempty"`
	Coordinate *Coordinate `json:"coordinate,omitempty"`

	// DistanceM Metres from the query proximity point.
	DistanceM  *float64 `json:"distance_m,omitempty"`
	District   *string  `json:"district,omitempty"`
	Id         *string  `json:"id,omitempty"`
	Kind       *string  `json:"kind,omitempty"`
	Latitude   *float64 `json:"latitude,omitempty"`
	Longitude  *float64 `json:"longitude,omitempty"`
	Name       string   `json:"name"`
	ProximityM *float64 `json:"proximity_m,omitempty"`
	Street     *string  `json:"street,omitempty"`
}

PlaceSummary One search result. `distance_m` is present when the query carried a proximity point. `confidence` is the retrieval score, not a probability.

type PublicClientTokenMintRequest

type PublicClientTokenMintRequest struct {
	Subjects        *[]PublicSubjectRef   `json:"subjects,omitempty"`
	SubscriptionIds *[]openapi_types.UUID `json:"subscription_ids,omitempty"`
	TtlSeconds      *int                  `json:"ttl_seconds,omitempty"`
}

PublicClientTokenMintRequest Provide `subjects`, `subscription_ids`, or both. `ttl_seconds` is clamped server-side. The resulting token authorizes read-only realtime on exactly the resolved subject set.

type PublicCoordinate

type PublicCoordinate struct {
	Latitude  float64 `json:"latitude"`
	Longitude float64 `json:"longitude"`
}

PublicCoordinate defines model for PublicCoordinate.

type PublicIngestBySubjectCreate

type PublicIngestBySubjectCreate struct {
	// Event Single-event ingest body (V1 device API, TRACKING-02B).
	//
	// client_seq is REQUIRED (positive BIGINT, monotonic per session).
	// recorded_at is the device timestamp (timezone-aware; validated against
	// the server clock by the ingest service).  No arbitrary metadata JSON.
	//
	// Cross-field location rules (location requires coordinates; heartbeat
	// forbids them) are enforced in the ingest service as “invalid_location“
	// so the code is stable regardless of the global validation handler.
	Event     TrackingIngestEventCreate `json:"event"`
	SessionId *openapi_types.UUID       `json:"session_id,omitempty"`
	Subject   *PublicSubjectRef         `json:"subject,omitempty"`
}

PublicIngestBySubjectCreate POST /v1/tracking/events body — target by subject OR explicit session.

Exactly one targeting mode is allowed; the event schema is the frozen single-event ingest schema reused verbatim.

type PublicSessionCreate

type PublicSessionCreate struct {
	// ExternalReference Customer-controlled reference like SHIPMENT-123
	ExternalReference *string `json:"external_reference,omitempty"`

	// Metadata Bounded JSON metadata
	Metadata *map[string]interface{} `json:"metadata,omitempty"`

	// SubjectType Generic subject type
	SubjectType *string `json:"subject_type,omitempty"`

	// VehicleId Optional existing vehicle linkage
	VehicleId *openapi_types.UUID `json:"vehicle_id,omitempty"`
}

PublicSessionCreate defines model for PublicSessionCreate.

type PublicSessionListResponse

type PublicSessionListResponse struct {
	HasMore    bool                    `json:"has_more"`
	Items      []PublicSessionResponse `json:"items"`
	NextCursor *string                 `json:"next_cursor,omitempty"`
}

PublicSessionListResponse defines model for PublicSessionListResponse.

type PublicSessionResponse

type PublicSessionResponse struct {
	CreatedAt         time.Time               `json:"created_at"`
	EndReason         *string                 `json:"end_reason,omitempty"`
	EndedAt           *time.Time              `json:"ended_at,omitempty"`
	ExternalReference *string                 `json:"external_reference,omitempty"`
	Id                openapi_types.UUID      `json:"id"`
	Metadata          *map[string]interface{} `json:"metadata,omitempty"`
	StartedAt         *time.Time              `json:"started_at,omitempty"`
	Status            string                  `json:"status"`
	SubjectType       string                  `json:"subject_type"`
	UpdatedAt         time.Time               `json:"updated_at"`
	VehicleId         *openapi_types.UUID     `json:"vehicle_id,omitempty"`
}

PublicSessionResponse defines model for PublicSessionResponse.

type PublicStateResponse

type PublicStateResponse struct {
	AccuracyM *float64 `json:"accuracy_m,omitempty"`
	AltitudeM *float64 `json:"altitude_m,omitempty"`

	// Freshness online/stale/offline
	Freshness  string             `json:"freshness"`
	HeadingDeg *float64           `json:"heading_deg,omitempty"`
	Latitude   *float64           `json:"latitude,omitempty"`
	Longitude  *float64           `json:"longitude,omitempty"`
	ReceivedAt *time.Time         `json:"received_at,omitempty"`
	RecordedAt *time.Time         `json:"recorded_at,omitempty"`
	SessionId  openapi_types.UUID `json:"session_id"`
	SpeedMps   *float64           `json:"speed_mps,omitempty"`
	Status     string             `json:"status"`
}

PublicStateResponse defines model for PublicStateResponse.

type PublicSubjectRef

type PublicSubjectRef struct {
	// SubjectRef Customer's stable subject identifier
	SubjectRef string `json:"subject_ref"`

	// SubjectType Generic subject type
	SubjectType string `json:"subject_type"`
}

PublicSubjectRef Customer-controlled subject identity (same pair used at session create).

type PublicSubscriptionCreate

type PublicSubscriptionCreate struct {
	// Subject Customer-controlled subject identity (same pair used at session create).
	Subject PublicSubjectRef `json:"subject"`

	// SubscriberRef Opaque consumer identity. Echoed verbatim.
	SubscriberRef string `json:"subscriber_ref"`
}

PublicSubscriptionCreate defines model for PublicSubscriptionCreate.

type RequestEditorFn

type RequestEditorFn func(ctx context.Context, req *http.Request) error

RequestEditorFn is the function signature for the RequestEditor callback function

type RetryWebhookDeliveryResult

type RetryWebhookDeliveryResult struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON201 the response for an HTTP 201 `application/json` response
	JSON201 *WebhookDeliveryResponse
	// JSON401 the response for an HTTP 401 `application/json` response
	JSON401 *BardiyaErrorEnvelope
	// JSON403 the response for an HTTP 403 `application/json` response
	JSON403 *BardiyaErrorEnvelope
	// JSON404 the response for an HTTP 404 `application/json` response
	JSON404 *BardiyaErrorEnvelope
	// JSON409 the response for an HTTP 409 `application/json` response
	JSON409 *BardiyaErrorEnvelope
	// JSON422 the response for an HTTP 422 `application/json` response
	JSON422 *BardiyaErrorEnvelope
	// JSON503 the response for an HTTP 503 `application/json` response
	JSON503 *BardiyaErrorEnvelope
}

func ParseRetryWebhookDeliveryResult

func ParseRetryWebhookDeliveryResult(rsp *http.Response) (*RetryWebhookDeliveryResult, error)

ParseRetryWebhookDeliveryResult parses an HTTP response from a RetryWebhookDeliveryWithResponse call

func (RetryWebhookDeliveryResult) ContentType

func (r RetryWebhookDeliveryResult) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (RetryWebhookDeliveryResult) GetBody

func (r RetryWebhookDeliveryResult) GetBody() []byte

GetBody returns the raw response body bytes

func (RetryWebhookDeliveryResult) GetJSON201

GetJSON201 returns the response for an HTTP 201 `application/json` response

func (RetryWebhookDeliveryResult) GetJSON401

GetJSON401 returns the response for an HTTP 401 `application/json` response

func (RetryWebhookDeliveryResult) GetJSON403

GetJSON403 returns the response for an HTTP 403 `application/json` response

func (RetryWebhookDeliveryResult) GetJSON404

GetJSON404 returns the response for an HTTP 404 `application/json` response

func (RetryWebhookDeliveryResult) GetJSON409

GetJSON409 returns the response for an HTTP 409 `application/json` response

func (RetryWebhookDeliveryResult) GetJSON422

GetJSON422 returns the response for an HTTP 422 `application/json` response

func (RetryWebhookDeliveryResult) GetJSON503

GetJSON503 returns the response for an HTTP 503 `application/json` response

func (RetryWebhookDeliveryResult) Status

Status returns HTTPResponse.Status

func (RetryWebhookDeliveryResult) StatusCode

func (r RetryWebhookDeliveryResult) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ReverseGeocodeComponents

type ReverseGeocodeComponents struct {
	CityOrCenter *string `json:"city_or_center,omitempty"`
	Country      *string `json:"country,omitempty"`
	District     *string `json:"district,omitempty"`
	Governorate  *string `json:"governorate,omitempty"`
	Street       *string `json:"street,omitempty"`
}

ReverseGeocodeComponents defines model for ReverseGeocodeComponents.

type ReverseGeocodeParams

type ReverseGeocodeParams struct {
	Latitude       float64 `form:"latitude" json:"latitude"`
	Longitude      float64 `form:"longitude" json:"longitude"`
	NearbyLimit    *int    `form:"nearby_limit,omitempty" json:"nearby_limit,omitempty"`
	Language       *string `form:"language,omitempty" json:"language,omitempty"`
	IdempotencyKey *string `json:"Idempotency-Key,omitempty"`
}

ReverseGeocodeParams defines parameters for ReverseGeocode.

type ReverseGeocodeResponse

type ReverseGeocodeResponse struct {
	AdministrativeAreas *[]AdministrativeArea     `json:"administrative_areas,omitempty"`
	Components          *ReverseGeocodeComponents `json:"components,omitempty"`
	CountryCode         string                    `json:"country_code"`
	Engine              *string                   `json:"engine,omitempty"`
	FormattedAddress    string                    `json:"formatted_address"`
	Latitude            float64                   `json:"latitude"`
	Longitude           float64                   `json:"longitude"`
	NearbyLandmarks     *[]PlaceSummary           `json:"nearby_landmarks,omitempty"`
	NearestLandmark     *Landmark                 `json:"nearest_landmark,omitempty"`
	NearestStreet       *StreetMatch              `json:"nearest_street,omitempty"`
}

ReverseGeocodeResponse defines model for ReverseGeocodeResponse.

type ReverseGeocodeResult

type ReverseGeocodeResult struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *ReverseGeocodeResponse
	// JSON400 the response for an HTTP 400 `application/json` response
	JSON400 *BardiyaErrorEnvelope
	// JSON401 the response for an HTTP 401 `application/json` response
	JSON401 *BardiyaErrorEnvelope
	// JSON403 the response for an HTTP 403 `application/json` response
	JSON403 *BardiyaErrorEnvelope
	// JSON404 the response for an HTTP 404 `application/json` response
	JSON404 *BardiyaErrorEnvelope
	// JSON422 the response for an HTTP 422 `application/json` response
	JSON422 *HTTPValidationError
	// JSON429 the response for an HTTP 429 `application/json` response
	JSON429 *BardiyaErrorEnvelope
	// JSON503 the response for an HTTP 503 `application/json` response
	JSON503 *BardiyaErrorEnvelope
}

func ParseReverseGeocodeResult

func ParseReverseGeocodeResult(rsp *http.Response) (*ReverseGeocodeResult, error)

ParseReverseGeocodeResult parses an HTTP response from a ReverseGeocodeWithResponse call

func (ReverseGeocodeResult) ContentType

func (r ReverseGeocodeResult) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (ReverseGeocodeResult) GetBody

func (r ReverseGeocodeResult) GetBody() []byte

GetBody returns the raw response body bytes

func (ReverseGeocodeResult) GetJSON200

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (ReverseGeocodeResult) GetJSON400

GetJSON400 returns the response for an HTTP 400 `application/json` response

func (ReverseGeocodeResult) GetJSON401

GetJSON401 returns the response for an HTTP 401 `application/json` response

func (ReverseGeocodeResult) GetJSON403

GetJSON403 returns the response for an HTTP 403 `application/json` response

func (ReverseGeocodeResult) GetJSON404

GetJSON404 returns the response for an HTTP 404 `application/json` response

func (ReverseGeocodeResult) GetJSON422

func (r ReverseGeocodeResult) GetJSON422() *HTTPValidationError

GetJSON422 returns the response for an HTTP 422 `application/json` response

func (ReverseGeocodeResult) GetJSON429

GetJSON429 returns the response for an HTTP 429 `application/json` response

func (ReverseGeocodeResult) GetJSON503

GetJSON503 returns the response for an HTTP 503 `application/json` response

func (ReverseGeocodeResult) Status

func (r ReverseGeocodeResult) Status() string

Status returns HTTPResponse.Status

func (ReverseGeocodeResult) StatusCode

func (r ReverseGeocodeResult) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type RevokeClientTokenResult

type RevokeClientTokenResult struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON401 the response for an HTTP 401 `application/json` response
	JSON401 *BardiyaErrorEnvelope
	// JSON403 the response for an HTTP 403 `application/json` response
	JSON403 *BardiyaErrorEnvelope
	// JSON404 the response for an HTTP 404 `application/json` response
	JSON404 *BardiyaErrorEnvelope
	// JSON409 the response for an HTTP 409 `application/json` response
	JSON409 *BardiyaErrorEnvelope
	// JSON422 the response for an HTTP 422 `application/json` response
	JSON422 *BardiyaErrorEnvelope
	// JSON503 the response for an HTTP 503 `application/json` response
	JSON503 *BardiyaErrorEnvelope
}

func ParseRevokeClientTokenResult

func ParseRevokeClientTokenResult(rsp *http.Response) (*RevokeClientTokenResult, error)

ParseRevokeClientTokenResult parses an HTTP response from a RevokeClientTokenWithResponse call

func (RevokeClientTokenResult) ContentType

func (r RevokeClientTokenResult) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (RevokeClientTokenResult) GetBody

func (r RevokeClientTokenResult) GetBody() []byte

GetBody returns the raw response body bytes

func (RevokeClientTokenResult) GetJSON401

GetJSON401 returns the response for an HTTP 401 `application/json` response

func (RevokeClientTokenResult) GetJSON403

GetJSON403 returns the response for an HTTP 403 `application/json` response

func (RevokeClientTokenResult) GetJSON404

GetJSON404 returns the response for an HTTP 404 `application/json` response

func (RevokeClientTokenResult) GetJSON409

GetJSON409 returns the response for an HTTP 409 `application/json` response

func (RevokeClientTokenResult) GetJSON422

GetJSON422 returns the response for an HTTP 422 `application/json` response

func (RevokeClientTokenResult) GetJSON503

GetJSON503 returns the response for an HTTP 503 `application/json` response

func (RevokeClientTokenResult) Status

func (r RevokeClientTokenResult) Status() string

Status returns HTTPResponse.Status

func (RevokeClientTokenResult) StatusCode

func (r RevokeClientTokenResult) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type Route

type Route struct {
	// Distance Metres.
	Distance *float64 `json:"distance,omitempty"`

	// Duration Seconds.
	Duration *float64 `json:"duration,omitempty"`

	// Geometry GeoJSON LineString.
	Geometry             *map[string]interface{}   `json:"geometry,omitempty"`
	Legs                 *[]map[string]interface{} `json:"legs,omitempty"`
	Weight               *float64                  `json:"weight,omitempty"`
	WeightName           *string                   `json:"weight_name,omitempty"`
	AdditionalProperties map[string]interface{}    `json:"-"`
}

Route One route. Mirrors the OSRM route object.

func (Route) Get

func (a Route) Get(fieldName string) (value interface{}, found bool)

Getter for additional properties for Route. Returns the specified element and whether it was found

func (Route) MarshalJSON

func (a Route) MarshalJSON() ([]byte, error)

Override default JSON handling for Route to handle AdditionalProperties

func (*Route) Set

func (a *Route) Set(fieldName string, value interface{})

Setter for additional properties for Route

func (*Route) UnmarshalJSON

func (a *Route) UnmarshalJSON(b []byte) error

Override default JSON handling for Route to handle AdditionalProperties

type SSEEvent

type SSEEvent struct {
	// Type is "snapshot", "location", "heartbeat", "limit" or "closed".
	Type string
	// ID is set on location frames as "<session_id>:<state_version>".
	ID string
	// Data is the raw JSON payload.
	Data string
}

SSEEvent is one server-sent event from a session stream.

type SearchPlacesParams

type SearchPlacesParams struct {
	Q              string   `form:"q" json:"q"`
	Latitude       *float64 `form:"latitude,omitempty" json:"latitude,omitempty"`
	Longitude      *float64 `form:"longitude,omitempty" json:"longitude,omitempty"`
	RadiusM        *int     `form:"radius_m,omitempty" json:"radius_m,omitempty"`
	Category       *string  `form:"category,omitempty" json:"category,omitempty"`
	Bbox           *string  `form:"bbox,omitempty" json:"bbox,omitempty"`
	Limit          *int     `form:"limit,omitempty" json:"limit,omitempty"`
	Language       *string  `form:"language,omitempty" json:"language,omitempty"`
	IdempotencyKey *string  `json:"Idempotency-Key,omitempty"`
}

SearchPlacesParams defines parameters for SearchPlaces.

type SearchPlacesResult

type SearchPlacesResult struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *PlaceSearchResponse
	// JSON400 the response for an HTTP 400 `application/json` response
	JSON400 *BardiyaErrorEnvelope
	// JSON401 the response for an HTTP 401 `application/json` response
	JSON401 *BardiyaErrorEnvelope
	// JSON403 the response for an HTTP 403 `application/json` response
	JSON403 *BardiyaErrorEnvelope
	// JSON404 the response for an HTTP 404 `application/json` response
	JSON404 *BardiyaErrorEnvelope
	// JSON422 the response for an HTTP 422 `application/json` response
	JSON422 *HTTPValidationError
	// JSON429 the response for an HTTP 429 `application/json` response
	JSON429 *BardiyaErrorEnvelope
	// JSON503 the response for an HTTP 503 `application/json` response
	JSON503 *BardiyaErrorEnvelope
}

func ParseSearchPlacesResult

func ParseSearchPlacesResult(rsp *http.Response) (*SearchPlacesResult, error)

ParseSearchPlacesResult parses an HTTP response from a SearchPlacesWithResponse call

func (SearchPlacesResult) ContentType

func (r SearchPlacesResult) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (SearchPlacesResult) GetBody

func (r SearchPlacesResult) GetBody() []byte

GetBody returns the raw response body bytes

func (SearchPlacesResult) GetJSON200

func (r SearchPlacesResult) GetJSON200() *PlaceSearchResponse

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (SearchPlacesResult) GetJSON400

func (r SearchPlacesResult) GetJSON400() *BardiyaErrorEnvelope

GetJSON400 returns the response for an HTTP 400 `application/json` response

func (SearchPlacesResult) GetJSON401

func (r SearchPlacesResult) GetJSON401() *BardiyaErrorEnvelope

GetJSON401 returns the response for an HTTP 401 `application/json` response

func (SearchPlacesResult) GetJSON403

func (r SearchPlacesResult) GetJSON403() *BardiyaErrorEnvelope

GetJSON403 returns the response for an HTTP 403 `application/json` response

func (SearchPlacesResult) GetJSON404

func (r SearchPlacesResult) GetJSON404() *BardiyaErrorEnvelope

GetJSON404 returns the response for an HTTP 404 `application/json` response

func (SearchPlacesResult) GetJSON422

func (r SearchPlacesResult) GetJSON422() *HTTPValidationError

GetJSON422 returns the response for an HTTP 422 `application/json` response

func (SearchPlacesResult) GetJSON429

func (r SearchPlacesResult) GetJSON429() *BardiyaErrorEnvelope

GetJSON429 returns the response for an HTTP 429 `application/json` response

func (SearchPlacesResult) GetJSON503

func (r SearchPlacesResult) GetJSON503() *BardiyaErrorEnvelope

GetJSON503 returns the response for an HTTP 503 `application/json` response

func (SearchPlacesResult) Status

func (r SearchPlacesResult) Status() string

Status returns HTTPResponse.Status

func (SearchPlacesResult) StatusCode

func (r SearchPlacesResult) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type SendEventJSONRequestBody

type SendEventJSONRequestBody = PublicIngestBySubjectCreate

SendEventJSONRequestBody defines body for SendEvent for application/json ContentType.

type SendEventResult

type SendEventResult struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *TrackingIngestResponse
	// JSON401 the response for an HTTP 401 `application/json` response
	JSON401 *BardiyaErrorEnvelope
	// JSON403 the response for an HTTP 403 `application/json` response
	JSON403 *BardiyaErrorEnvelope
	// JSON404 the response for an HTTP 404 `application/json` response
	JSON404 *BardiyaErrorEnvelope
	// JSON409 the response for an HTTP 409 `application/json` response
	JSON409 *BardiyaErrorEnvelope
	// JSON422 the response for an HTTP 422 `application/json` response
	JSON422 *BardiyaErrorEnvelope
	// JSON503 the response for an HTTP 503 `application/json` response
	JSON503 *BardiyaErrorEnvelope
}

func ParseSendEventResult

func ParseSendEventResult(rsp *http.Response) (*SendEventResult, error)

ParseSendEventResult parses an HTTP response from a SendEventWithResponse call

func (SendEventResult) ContentType

func (r SendEventResult) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (SendEventResult) GetBody

func (r SendEventResult) GetBody() []byte

GetBody returns the raw response body bytes

func (SendEventResult) GetJSON200

func (r SendEventResult) GetJSON200() *TrackingIngestResponse

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (SendEventResult) GetJSON401

func (r SendEventResult) GetJSON401() *BardiyaErrorEnvelope

GetJSON401 returns the response for an HTTP 401 `application/json` response

func (SendEventResult) GetJSON403

func (r SendEventResult) GetJSON403() *BardiyaErrorEnvelope

GetJSON403 returns the response for an HTTP 403 `application/json` response

func (SendEventResult) GetJSON404

func (r SendEventResult) GetJSON404() *BardiyaErrorEnvelope

GetJSON404 returns the response for an HTTP 404 `application/json` response

func (SendEventResult) GetJSON409

func (r SendEventResult) GetJSON409() *BardiyaErrorEnvelope

GetJSON409 returns the response for an HTTP 409 `application/json` response

func (SendEventResult) GetJSON422

func (r SendEventResult) GetJSON422() *BardiyaErrorEnvelope

GetJSON422 returns the response for an HTTP 422 `application/json` response

func (SendEventResult) GetJSON503

func (r SendEventResult) GetJSON503() *BardiyaErrorEnvelope

GetJSON503 returns the response for an HTTP 503 `application/json` response

func (SendEventResult) Status

func (r SendEventResult) Status() string

Status returns HTTPResponse.Status

func (SendEventResult) StatusCode

func (r SendEventResult) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type SendFleetBatchJSONRequestBody

type SendFleetBatchJSONRequestBody = TrackingFleetBatchIngestRequest

SendFleetBatchJSONRequestBody defines body for SendFleetBatch for application/json ContentType.

type SendFleetBatchResult

type SendFleetBatchResult struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *TrackingFleetBatchIngestResponse
	// JSON401 the response for an HTTP 401 `application/json` response
	JSON401 *BardiyaErrorEnvelope
	// JSON403 the response for an HTTP 403 `application/json` response
	JSON403 *BardiyaErrorEnvelope
	// JSON404 the response for an HTTP 404 `application/json` response
	JSON404 *BardiyaErrorEnvelope
	// JSON409 the response for an HTTP 409 `application/json` response
	JSON409 *BardiyaErrorEnvelope
	// JSON422 the response for an HTTP 422 `application/json` response
	JSON422 *BardiyaErrorEnvelope
	// JSON503 the response for an HTTP 503 `application/json` response
	JSON503 *BardiyaErrorEnvelope
}

func ParseSendFleetBatchResult

func ParseSendFleetBatchResult(rsp *http.Response) (*SendFleetBatchResult, error)

ParseSendFleetBatchResult parses an HTTP response from a SendFleetBatchWithResponse call

func (SendFleetBatchResult) ContentType

func (r SendFleetBatchResult) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (SendFleetBatchResult) GetBody

func (r SendFleetBatchResult) GetBody() []byte

GetBody returns the raw response body bytes

func (SendFleetBatchResult) GetJSON200

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (SendFleetBatchResult) GetJSON401

GetJSON401 returns the response for an HTTP 401 `application/json` response

func (SendFleetBatchResult) GetJSON403

GetJSON403 returns the response for an HTTP 403 `application/json` response

func (SendFleetBatchResult) GetJSON404

GetJSON404 returns the response for an HTTP 404 `application/json` response

func (SendFleetBatchResult) GetJSON409

GetJSON409 returns the response for an HTTP 409 `application/json` response

func (SendFleetBatchResult) GetJSON422

GetJSON422 returns the response for an HTTP 422 `application/json` response

func (SendFleetBatchResult) GetJSON503

GetJSON503 returns the response for an HTTP 503 `application/json` response

func (SendFleetBatchResult) Status

func (r SendFleetBatchResult) Status() string

Status returns HTTPResponse.Status

func (SendFleetBatchResult) StatusCode

func (r SendFleetBatchResult) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type SendLocationBatchJSONRequestBody

type SendLocationBatchJSONRequestBody = TrackingBatchIngestRequest

SendLocationBatchJSONRequestBody defines body for SendLocationBatch for application/json ContentType.

type SendLocationBatchResult

type SendLocationBatchResult struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *TrackingBatchIngestResponse
	// JSON401 the response for an HTTP 401 `application/json` response
	JSON401 *BardiyaErrorEnvelope
	// JSON403 the response for an HTTP 403 `application/json` response
	JSON403 *BardiyaErrorEnvelope
	// JSON404 the response for an HTTP 404 `application/json` response
	JSON404 *BardiyaErrorEnvelope
	// JSON409 the response for an HTTP 409 `application/json` response
	JSON409 *BardiyaErrorEnvelope
	// JSON422 the response for an HTTP 422 `application/json` response
	JSON422 *BardiyaErrorEnvelope
	// JSON503 the response for an HTTP 503 `application/json` response
	JSON503 *BardiyaErrorEnvelope
}

func ParseSendLocationBatchResult

func ParseSendLocationBatchResult(rsp *http.Response) (*SendLocationBatchResult, error)

ParseSendLocationBatchResult parses an HTTP response from a SendLocationBatchWithResponse call

func (SendLocationBatchResult) ContentType

func (r SendLocationBatchResult) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (SendLocationBatchResult) GetBody

func (r SendLocationBatchResult) GetBody() []byte

GetBody returns the raw response body bytes

func (SendLocationBatchResult) GetJSON200

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (SendLocationBatchResult) GetJSON401

GetJSON401 returns the response for an HTTP 401 `application/json` response

func (SendLocationBatchResult) GetJSON403

GetJSON403 returns the response for an HTTP 403 `application/json` response

func (SendLocationBatchResult) GetJSON404

GetJSON404 returns the response for an HTTP 404 `application/json` response

func (SendLocationBatchResult) GetJSON409

GetJSON409 returns the response for an HTTP 409 `application/json` response

func (SendLocationBatchResult) GetJSON422

GetJSON422 returns the response for an HTTP 422 `application/json` response

func (SendLocationBatchResult) GetJSON503

GetJSON503 returns the response for an HTTP 503 `application/json` response

func (SendLocationBatchResult) Status

func (r SendLocationBatchResult) Status() string

Status returns HTTPResponse.Status

func (SendLocationBatchResult) StatusCode

func (r SendLocationBatchResult) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type SendLocationBatchWithIngestCredentialJSONRequestBody

type SendLocationBatchWithIngestCredentialJSONRequestBody = TrackingBatchIngestRequest

SendLocationBatchWithIngestCredentialJSONRequestBody defines body for SendLocationBatchWithIngestCredential for application/json ContentType.

type SendLocationBatchWithIngestCredentialParams

type SendLocationBatchWithIngestCredentialParams struct {
	XTrackingOrganizationId *string `json:"X-Tracking-Organization-Id,omitempty"`
}

SendLocationBatchWithIngestCredentialParams defines parameters for SendLocationBatchWithIngestCredential.

type SendLocationBatchWithIngestCredentialResult

type SendLocationBatchWithIngestCredentialResult struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *TrackingBatchIngestResponse
	// JSON401 the response for an HTTP 401 `application/json` response
	JSON401 *BardiyaErrorEnvelope
	// JSON422 the response for an HTTP 422 `application/json` response
	JSON422 *HTTPValidationError
}

func ParseSendLocationBatchWithIngestCredentialResult

func ParseSendLocationBatchWithIngestCredentialResult(rsp *http.Response) (*SendLocationBatchWithIngestCredentialResult, error)

ParseSendLocationBatchWithIngestCredentialResult parses an HTTP response from a SendLocationBatchWithIngestCredentialWithResponse call

func (SendLocationBatchWithIngestCredentialResult) ContentType

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (SendLocationBatchWithIngestCredentialResult) GetBody

GetBody returns the raw response body bytes

func (SendLocationBatchWithIngestCredentialResult) GetJSON200

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (SendLocationBatchWithIngestCredentialResult) GetJSON401

GetJSON401 returns the response for an HTTP 401 `application/json` response

func (SendLocationBatchWithIngestCredentialResult) GetJSON422

GetJSON422 returns the response for an HTTP 422 `application/json` response

func (SendLocationBatchWithIngestCredentialResult) Status

Status returns HTTPResponse.Status

func (SendLocationBatchWithIngestCredentialResult) StatusCode

StatusCode returns HTTPResponse.StatusCode

type SendLocationJSONRequestBody

type SendLocationJSONRequestBody = TrackingIngestEventCreate

SendLocationJSONRequestBody defines body for SendLocation for application/json ContentType.

type SendLocationResult

type SendLocationResult struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *TrackingIngestResponse
	// JSON401 the response for an HTTP 401 `application/json` response
	JSON401 *BardiyaErrorEnvelope
	// JSON403 the response for an HTTP 403 `application/json` response
	JSON403 *BardiyaErrorEnvelope
	// JSON404 the response for an HTTP 404 `application/json` response
	JSON404 *BardiyaErrorEnvelope
	// JSON409 the response for an HTTP 409 `application/json` response
	JSON409 *BardiyaErrorEnvelope
	// JSON422 the response for an HTTP 422 `application/json` response
	JSON422 *BardiyaErrorEnvelope
	// JSON503 the response for an HTTP 503 `application/json` response
	JSON503 *BardiyaErrorEnvelope
}

func ParseSendLocationResult

func ParseSendLocationResult(rsp *http.Response) (*SendLocationResult, error)

ParseSendLocationResult parses an HTTP response from a SendLocationWithResponse call

func (SendLocationResult) ContentType

func (r SendLocationResult) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (SendLocationResult) GetBody

func (r SendLocationResult) GetBody() []byte

GetBody returns the raw response body bytes

func (SendLocationResult) GetJSON200

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (SendLocationResult) GetJSON401

func (r SendLocationResult) GetJSON401() *BardiyaErrorEnvelope

GetJSON401 returns the response for an HTTP 401 `application/json` response

func (SendLocationResult) GetJSON403

func (r SendLocationResult) GetJSON403() *BardiyaErrorEnvelope

GetJSON403 returns the response for an HTTP 403 `application/json` response

func (SendLocationResult) GetJSON404

func (r SendLocationResult) GetJSON404() *BardiyaErrorEnvelope

GetJSON404 returns the response for an HTTP 404 `application/json` response

func (SendLocationResult) GetJSON409

func (r SendLocationResult) GetJSON409() *BardiyaErrorEnvelope

GetJSON409 returns the response for an HTTP 409 `application/json` response

func (SendLocationResult) GetJSON422

func (r SendLocationResult) GetJSON422() *BardiyaErrorEnvelope

GetJSON422 returns the response for an HTTP 422 `application/json` response

func (SendLocationResult) GetJSON503

func (r SendLocationResult) GetJSON503() *BardiyaErrorEnvelope

GetJSON503 returns the response for an HTTP 503 `application/json` response

func (SendLocationResult) Status

func (r SendLocationResult) Status() string

Status returns HTTPResponse.Status

func (SendLocationResult) StatusCode

func (r SendLocationResult) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type SendLocationWithIngestCredentialJSONRequestBody

type SendLocationWithIngestCredentialJSONRequestBody = TrackingIngestEventCreate

SendLocationWithIngestCredentialJSONRequestBody defines body for SendLocationWithIngestCredential for application/json ContentType.

type SendLocationWithIngestCredentialParams

type SendLocationWithIngestCredentialParams struct {
	XTrackingOrganizationId *string `json:"X-Tracking-Organization-Id,omitempty"`
}

SendLocationWithIngestCredentialParams defines parameters for SendLocationWithIngestCredential.

type SendLocationWithIngestCredentialResult

type SendLocationWithIngestCredentialResult struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *TrackingIngestResponse
	// JSON401 the response for an HTTP 401 `application/json` response
	JSON401 *BardiyaErrorEnvelope
	// JSON422 the response for an HTTP 422 `application/json` response
	JSON422 *HTTPValidationError
}

func ParseSendLocationWithIngestCredentialResult

func ParseSendLocationWithIngestCredentialResult(rsp *http.Response) (*SendLocationWithIngestCredentialResult, error)

ParseSendLocationWithIngestCredentialResult parses an HTTP response from a SendLocationWithIngestCredentialWithResponse call

func (SendLocationWithIngestCredentialResult) ContentType

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (SendLocationWithIngestCredentialResult) GetBody

GetBody returns the raw response body bytes

func (SendLocationWithIngestCredentialResult) GetJSON200

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (SendLocationWithIngestCredentialResult) GetJSON401

GetJSON401 returns the response for an HTTP 401 `application/json` response

func (SendLocationWithIngestCredentialResult) GetJSON422

GetJSON422 returns the response for an HTTP 422 `application/json` response

func (SendLocationWithIngestCredentialResult) Status

Status returns HTTPResponse.Status

func (SendLocationWithIngestCredentialResult) StatusCode

StatusCode returns HTTPResponse.StatusCode

type StreamSessionResult

type StreamSessionResult struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON400 the response for an HTTP 400 `application/json` response
	JSON400 *BardiyaErrorEnvelope
	// JSON401 the response for an HTTP 401 `application/json` response
	JSON401 *BardiyaErrorEnvelope
	// JSON403 the response for an HTTP 403 `application/json` response
	JSON403 *BardiyaErrorEnvelope
	// JSON404 the response for an HTTP 404 `application/json` response
	JSON404 *BardiyaErrorEnvelope
	// JSON409 the response for an HTTP 409 `application/json` response
	JSON409 *BardiyaErrorEnvelope
	// JSON422 the response for an HTTP 422 `application/json` response
	JSON422 *BardiyaErrorEnvelope
	// JSON429 the response for an HTTP 429 `application/json` response
	JSON429 *BardiyaErrorEnvelope
	// JSON503 the response for an HTTP 503 `application/json` response
	JSON503 *BardiyaErrorEnvelope
}

func ParseStreamSessionResult

func ParseStreamSessionResult(rsp *http.Response) (*StreamSessionResult, error)

ParseStreamSessionResult parses an HTTP response from a StreamSessionWithResponse call

func (StreamSessionResult) ContentType

func (r StreamSessionResult) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (StreamSessionResult) GetBody

func (r StreamSessionResult) GetBody() []byte

GetBody returns the raw response body bytes

func (StreamSessionResult) GetJSON400

func (r StreamSessionResult) GetJSON400() *BardiyaErrorEnvelope

GetJSON400 returns the response for an HTTP 400 `application/json` response

func (StreamSessionResult) GetJSON401

func (r StreamSessionResult) GetJSON401() *BardiyaErrorEnvelope

GetJSON401 returns the response for an HTTP 401 `application/json` response

func (StreamSessionResult) GetJSON403

func (r StreamSessionResult) GetJSON403() *BardiyaErrorEnvelope

GetJSON403 returns the response for an HTTP 403 `application/json` response

func (StreamSessionResult) GetJSON404

func (r StreamSessionResult) GetJSON404() *BardiyaErrorEnvelope

GetJSON404 returns the response for an HTTP 404 `application/json` response

func (StreamSessionResult) GetJSON409

func (r StreamSessionResult) GetJSON409() *BardiyaErrorEnvelope

GetJSON409 returns the response for an HTTP 409 `application/json` response

func (StreamSessionResult) GetJSON422

func (r StreamSessionResult) GetJSON422() *BardiyaErrorEnvelope

GetJSON422 returns the response for an HTTP 422 `application/json` response

func (StreamSessionResult) GetJSON429

func (r StreamSessionResult) GetJSON429() *BardiyaErrorEnvelope

GetJSON429 returns the response for an HTTP 429 `application/json` response

func (StreamSessionResult) GetJSON503

func (r StreamSessionResult) GetJSON503() *BardiyaErrorEnvelope

GetJSON503 returns the response for an HTTP 503 `application/json` response

func (StreamSessionResult) Status

func (r StreamSessionResult) Status() string

Status returns HTTPResponse.Status

func (StreamSessionResult) StatusCode

func (r StreamSessionResult) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type StreetMatch

type StreetMatch struct {
	Class     *string `json:"class,omitempty"`
	DistanceM *int    `json:"distance_m,omitempty"`
	Name      string  `json:"name"`
}

StreetMatch defines model for StreetMatch.

type Subscription

type Subscription struct {
	CreatedAt time.Time `json:"created_at"`
	Id        string    `json:"id"`

	// Subject Customer-controlled subject identity (same pair used at session create).
	Subject       PublicSubjectRef `json:"subject"`
	SubscriberRef string           `json:"subscriber_ref"`
	UpdatedAt     time.Time        `json:"updated_at"`
}

Subscription defines model for Subscription.

type SubscriptionList

type SubscriptionList struct {
	HasMore bool           `json:"has_more"`
	Items   []Subscription `json:"items"`
}

SubscriptionList defines model for SubscriptionList.

type Tracking

type Tracking struct {
	// contains filtered or unexported fields
}

Tracking is the Tracking product family. It authenticates with Authorization: Bearer, and reads go to the read plane when one is configured.

func (*Tracking) CreateSession

func (t *Tracking) CreateSession(ctx context.Context, body CreateSessionJSONRequestBody, idempotencyKey string) (*PublicSessionResponse, error)

CreateSession starts tracking a subject. idempotencyKey may be empty.

func (*Tracking) CreateSubscription

func (t *Tracking) CreateSubscription(ctx context.Context, body CreateSubscriptionJSONRequestBody) (*Subscription, error)

CreateSubscription registers a durable interest in a subject. Idempotent: an existing subscription returns 200 with the same record instead of a new one.

func (*Tracking) CreateWebhook

CreateWebhook registers a signed webhook endpoint. The signing secret is returned once, in SigningSecret.

func (*Tracking) DeleteSubscription

func (t *Tracking) DeleteSubscription(ctx context.Context, subscriptionID uuid.UUID) error

DeleteSubscription removes a subscription. The server returns 204.

func (*Tracking) DeleteWebhook

func (t *Tracking) DeleteWebhook(ctx context.Context, endpointID uuid.UUID) (*WebhookResponse, error)

DeleteWebhook disables an endpoint and returns its final state.

func (*Tracking) EndSession

func (t *Tracking) EndSession(ctx context.Context, sessionID uuid.UUID, idempotencyKey string) (*PublicSessionResponse, error)

EndSession ends a session. idempotencyKey may be empty.

func (*Tracking) GetHistory

func (t *Tracking) GetHistory(ctx context.Context, sessionID uuid.UUID, params *GetHistoryParams) (*HistoryPage, error)

GetHistory returns a bounded page of stored keyframes.

func (*Tracking) GetSession

func (t *Tracking) GetSession(ctx context.Context, sessionID uuid.UUID) (*PublicSessionResponse, error)

GetSession returns one session owned by the credential's organization.

func (*Tracking) GetState

func (t *Tracking) GetState(ctx context.Context, sessionID uuid.UUID) (*PublicStateResponse, error)

GetState returns the latest state of one session.

func (*Tracking) GetWebhook

func (t *Tracking) GetWebhook(ctx context.Context, endpointID uuid.UUID) (*WebhookResponse, error)

GetWebhook returns one endpoint.

func (*Tracking) IssueIngestToken

func (t *Tracking) IssueIngestToken(ctx context.Context, sessionID uuid.UUID) (*TrackingCredentialResponse, error)

IssueIngestToken mints a session-scoped credential for device ingest. The plaintext credential is returned exactly once. Server-to-server only.

func (*Tracking) ListClientTokens

func (t *Tracking) ListClientTokens(ctx context.Context, params *ListClientTokensParams) (*ClientTokenList, error)

ListClientTokens lists token metadata. It never includes token material.

func (*Tracking) ListSessions

func (t *Tracking) ListSessions(ctx context.Context, params *ListSessionsParams) (*PublicSessionListResponse, error)

ListSessions lists sessions with bounded keyset pagination.

func (*Tracking) ListSubscriptions

func (t *Tracking) ListSubscriptions(ctx context.Context, params *ListSubscriptionsParams) (*SubscriptionList, error)

ListSubscriptions lists subscriptions for this tenant and environment.

func (*Tracking) ListWebhookDeliveries

func (t *Tracking) ListWebhookDeliveries(ctx context.Context, endpointID uuid.UUID, params *ListWebhookDeliveriesParams) (*WebhookDeliveryListResponse, error)

ListWebhookDeliveries lists delivery attempts for an endpoint.

func (*Tracking) ListWebhooks

func (t *Tracking) ListWebhooks(ctx context.Context, params *ListWebhooksParams) (*WebhookListResponse, error)

ListWebhooks lists webhook endpoints.

func (*Tracking) MintClientToken

MintClientToken mints a short-lived bdy_cli_* credential for read-only realtime. It is returned exactly once and is server-to-server only.

func (*Tracking) RetryWebhookDelivery

func (t *Tracking) RetryWebhookDelivery(ctx context.Context, endpointID, deliveryID uuid.UUID) (*WebhookDeliveryResponse, error)

RetryWebhookDelivery schedules one delivery attempt again.

func (*Tracking) RevokeClientToken

func (t *Tracking) RevokeClientToken(ctx context.Context, tokenID uuid.UUID) error

RevokeClientToken revokes a client token immediately for new connections.

func (*Tracking) SendEvent

SendEvent ingests one event addressed by session id or by tracked subject.

func (*Tracking) SendFleetBatch

SendFleetBatch ingests events for many sessions in one tenant-scoped request.

func (*Tracking) SendLocation

func (t *Tracking) SendLocation(ctx context.Context, sessionID uuid.UUID, body SendLocationJSONRequestBody) (*TrackingIngestResponse, error)

SendLocation ingests one event. client_event_id is the idempotency key: a retry of the same id returns Duplicate=true instead of a second event.

func (*Tracking) SendLocationBatch

func (t *Tracking) SendLocationBatch(ctx context.Context, sessionID uuid.UUID, body SendLocationBatchJSONRequestBody) (*TrackingBatchIngestResponse, error)

SendLocationBatch ingests a bounded batch of events for one session.

func (*Tracking) StreamSession

func (t *Tracking) StreamSession(ctx context.Context, sessionID uuid.UUID) iter.Seq2[SSEEvent, error]

StreamSession iterates the session's server-sent events.

for ev, err := range client.Tracking.StreamSession(ctx, id) {
    if err != nil { return err }
    if ev.Type == "location" { ... }
}

Resume is not supported: reconnect and read the snapshot again, then use GetHistory for anything older.

func (*Tracking) UpdateWebhook

func (t *Tracking) UpdateWebhook(ctx context.Context, endpointID uuid.UUID, body UpdateWebhookJSONRequestBody) (*WebhookResponse, error)

UpdateWebhook changes the URL, status or subscribed events.

type TrackingBatchEventResult

type TrackingBatchEventResult struct {
	Accepted        *bool              `json:"accepted,omitempty"`
	ClientEventId   openapi_types.UUID `json:"client_event_id"`
	Duplicate       *bool              `json:"duplicate,omitempty"`
	ErrorCode       *string            `json:"error_code,omitempty"`
	ErrorMessage    *string            `json:"error_message,omitempty"`
	HistoryWritten  *bool              `json:"history_written,omitempty"`
	PositionUpdated *bool              `json:"position_updated,omitempty"`
	ReceivedAt      *time.Time         `json:"received_at,omitempty"`
	StateUpdated    *bool              `json:"state_updated,omitempty"`
	StateVersion    *int               `json:"state_version,omitempty"`
}

TrackingBatchEventResult Per-event outcome inside a batch (deterministic; see TRACKING-02C).

type TrackingBatchIngestRequest

type TrackingBatchIngestRequest struct {
	Events []TrackingIngestEventCreate `json:"events"`
}

TrackingBatchIngestRequest Bounded batch body — every event is a full single-event schema.

Size is enforced by the service against TRACKING_BATCH_MAX_SIZE (no unbounded arrays).

type TrackingBatchIngestResponse

type TrackingBatchIngestResponse struct {
	AcceptedCount       int                        `json:"accepted_count"`
	DuplicateCount      int                        `json:"duplicate_count"`
	HistoryWrittenCount int                        `json:"history_written_count"`
	RejectedCount       int                        `json:"rejected_count"`
	Results             []TrackingBatchEventResult `json:"results"`
}

TrackingBatchIngestResponse Batch summary + deterministic per-event results keyed by client_event_id.

type TrackingCredentialResponse

type TrackingCredentialResponse struct {
	IngestCredential string `json:"ingest_credential"`
}

TrackingCredentialResponse Plaintext device credential — returned exactly once at issue/rotation.

type TrackingFleetBatchEvent

type TrackingFleetBatchEvent struct {
	AccuracyM     *float64                          `json:"accuracy_m,omitempty"`
	AltitudeM     *float64                          `json:"altitude_m,omitempty"`
	BatteryPct    *int                              `json:"battery_pct,omitempty"`
	ClientEventId openapi_types.UUID                `json:"client_event_id"`
	ClientSeq     int                               `json:"client_seq"`
	EventType     *TrackingFleetBatchEventEventType `json:"event_type,omitempty"`
	HeadingDeg    *float64                          `json:"heading_deg,omitempty"`
	Latitude      *float64                          `json:"latitude,omitempty"`
	Longitude     *float64                          `json:"longitude,omitempty"`
	RecordedAt    time.Time                         `json:"recorded_at"`
	SessionId     openapi_types.UUID                `json:"session_id"`
	SpeedMps      *float64                          `json:"speed_mps,omitempty"`
}

TrackingFleetBatchEvent One event in a tenant-scoped fleet batch.

The session id is part of the event because a fleet request carries events for many vehicles in one authorized tenant/key context. All other fields are the exact single-event schema.

type TrackingFleetBatchEventEventType

type TrackingFleetBatchEventEventType string

TrackingFleetBatchEventEventType defines model for TrackingFleetBatchEvent.EventType.

const (
	TrackingFleetBatchEventEventTypeHeartbeat TrackingFleetBatchEventEventType = "heartbeat"
	TrackingFleetBatchEventEventTypeLocation  TrackingFleetBatchEventEventType = "location"
)

Defines values for TrackingFleetBatchEventEventType.

func (TrackingFleetBatchEventEventType) Valid

Valid indicates whether the value is a known member of the TrackingFleetBatchEventEventType enum.

type TrackingFleetBatchEventResult

type TrackingFleetBatchEventResult struct {
	Accepted        *bool              `json:"accepted,omitempty"`
	ClientEventId   openapi_types.UUID `json:"client_event_id"`
	Duplicate       *bool              `json:"duplicate,omitempty"`
	ErrorCode       *string            `json:"error_code,omitempty"`
	ErrorMessage    *string            `json:"error_message,omitempty"`
	HistoryWritten  *bool              `json:"history_written,omitempty"`
	PositionUpdated *bool              `json:"position_updated,omitempty"`
	ReceivedAt      *time.Time         `json:"received_at,omitempty"`
	SessionId       openapi_types.UUID `json:"session_id"`
	StateUpdated    *bool              `json:"state_updated,omitempty"`
	StateVersion    *int               `json:"state_version,omitempty"`
}

TrackingFleetBatchEventResult Per-event fleet outcome; session_id disambiguates repeated event ids.

type TrackingFleetBatchIngestRequest

type TrackingFleetBatchIngestRequest struct {
	Events []TrackingFleetBatchEvent `json:"events"`
}

TrackingFleetBatchIngestRequest Bounded fleet batch: events for one or more sessions in one tenant.

type TrackingFleetBatchIngestResponse

type TrackingFleetBatchIngestResponse struct {
	AcceptedCount       int                             `json:"accepted_count"`
	DuplicateCount      int                             `json:"duplicate_count"`
	HistoryWrittenCount int                             `json:"history_written_count"`
	RejectedCount       int                             `json:"rejected_count"`
	Results             []TrackingFleetBatchEventResult `json:"results"`
}

TrackingFleetBatchIngestResponse Fleet batch summary plus deterministic per-event results.

type TrackingIngestEventCreate

type TrackingIngestEventCreate struct {
	AccuracyM     *float64                            `json:"accuracy_m,omitempty"`
	AltitudeM     *float64                            `json:"altitude_m,omitempty"`
	BatteryPct    *int                                `json:"battery_pct,omitempty"`
	ClientEventId openapi_types.UUID                  `json:"client_event_id"`
	ClientSeq     int                                 `json:"client_seq"`
	EventType     *TrackingIngestEventCreateEventType `json:"event_type,omitempty"`
	HeadingDeg    *float64                            `json:"heading_deg,omitempty"`
	Latitude      *float64                            `json:"latitude,omitempty"`
	Longitude     *float64                            `json:"longitude,omitempty"`
	RecordedAt    time.Time                           `json:"recorded_at"`
	SpeedMps      *float64                            `json:"speed_mps,omitempty"`
}

TrackingIngestEventCreate Single-event ingest body (V1 device API, TRACKING-02B).

client_seq is REQUIRED (positive BIGINT, monotonic per session). recorded_at is the device timestamp (timezone-aware; validated against the server clock by the ingest service). No arbitrary metadata JSON.

Cross-field location rules (location requires coordinates; heartbeat forbids them) are enforced in the ingest service as “invalid_location“ so the code is stable regardless of the global validation handler.

type TrackingIngestEventCreateEventType

type TrackingIngestEventCreateEventType string

TrackingIngestEventCreateEventType defines model for TrackingIngestEventCreate.EventType.

const (
	TrackingIngestEventCreateEventTypeHeartbeat TrackingIngestEventCreateEventType = "heartbeat"
	TrackingIngestEventCreateEventTypeLocation  TrackingIngestEventCreateEventType = "location"
)

Defines values for TrackingIngestEventCreateEventType.

func (TrackingIngestEventCreateEventType) Valid

Valid indicates whether the value is a known member of the TrackingIngestEventCreateEventType enum.

type TrackingIngestResponse

type TrackingIngestResponse struct {
	Accepted        bool       `json:"accepted"`
	Duplicate       *bool      `json:"duplicate,omitempty"`
	HistoryWritten  *bool      `json:"history_written,omitempty"`
	PositionUpdated *bool      `json:"position_updated,omitempty"`
	ReceivedAt      *time.Time `json:"received_at,omitempty"`
	StateUpdated    *bool      `json:"state_updated,omitempty"`
	StateVersion    *int       `json:"state_version,omitempty"`
}

TrackingIngestResponse Compact ingest response — never the token hash, history, or session object.

TRACKING-02C additions: “state_updated“ (the LatestState row changed — false for history-only out-of-order accepts) and “history_written“ (a history keyframe was persisted for this event).

type UpdateWebhookJSONRequestBody

type UpdateWebhookJSONRequestBody = WebhookUpdate

UpdateWebhookJSONRequestBody defines body for UpdateWebhook for application/json ContentType.

type UpdateWebhookResult

type UpdateWebhookResult struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *WebhookResponse
	// JSON401 the response for an HTTP 401 `application/json` response
	JSON401 *BardiyaErrorEnvelope
	// JSON403 the response for an HTTP 403 `application/json` response
	JSON403 *BardiyaErrorEnvelope
	// JSON404 the response for an HTTP 404 `application/json` response
	JSON404 *BardiyaErrorEnvelope
	// JSON409 the response for an HTTP 409 `application/json` response
	JSON409 *BardiyaErrorEnvelope
	// JSON422 the response for an HTTP 422 `application/json` response
	JSON422 *BardiyaErrorEnvelope
	// JSON503 the response for an HTTP 503 `application/json` response
	JSON503 *BardiyaErrorEnvelope
}

func ParseUpdateWebhookResult

func ParseUpdateWebhookResult(rsp *http.Response) (*UpdateWebhookResult, error)

ParseUpdateWebhookResult parses an HTTP response from a UpdateWebhookWithResponse call

func (UpdateWebhookResult) ContentType

func (r UpdateWebhookResult) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (UpdateWebhookResult) GetBody

func (r UpdateWebhookResult) GetBody() []byte

GetBody returns the raw response body bytes

func (UpdateWebhookResult) GetJSON200

func (r UpdateWebhookResult) GetJSON200() *WebhookResponse

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (UpdateWebhookResult) GetJSON401

func (r UpdateWebhookResult) GetJSON401() *BardiyaErrorEnvelope

GetJSON401 returns the response for an HTTP 401 `application/json` response

func (UpdateWebhookResult) GetJSON403

func (r UpdateWebhookResult) GetJSON403() *BardiyaErrorEnvelope

GetJSON403 returns the response for an HTTP 403 `application/json` response

func (UpdateWebhookResult) GetJSON404

func (r UpdateWebhookResult) GetJSON404() *BardiyaErrorEnvelope

GetJSON404 returns the response for an HTTP 404 `application/json` response

func (UpdateWebhookResult) GetJSON409

func (r UpdateWebhookResult) GetJSON409() *BardiyaErrorEnvelope

GetJSON409 returns the response for an HTTP 409 `application/json` response

func (UpdateWebhookResult) GetJSON422

func (r UpdateWebhookResult) GetJSON422() *BardiyaErrorEnvelope

GetJSON422 returns the response for an HTTP 422 `application/json` response

func (UpdateWebhookResult) GetJSON503

func (r UpdateWebhookResult) GetJSON503() *BardiyaErrorEnvelope

GetJSON503 returns the response for an HTTP 503 `application/json` response

func (UpdateWebhookResult) Status

func (r UpdateWebhookResult) Status() string

Status returns HTTPResponse.Status

func (UpdateWebhookResult) StatusCode

func (r UpdateWebhookResult) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ValidateAddressJSONRequestBody

type ValidateAddressJSONRequestBody = AddressValidationPublicRequest

ValidateAddressJSONRequestBody defines body for ValidateAddress for application/json ContentType.

type ValidateAddressParams

type ValidateAddressParams struct {
	IdempotencyKey *string `json:"Idempotency-Key,omitempty"`
}

ValidateAddressParams defines parameters for ValidateAddress.

type ValidateAddressResult

type ValidateAddressResult struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *AddressValidationResponse
	// JSON400 the response for an HTTP 400 `application/json` response
	JSON400 *BardiyaErrorEnvelope
	// JSON401 the response for an HTTP 401 `application/json` response
	JSON401 *BardiyaErrorEnvelope
	// JSON403 the response for an HTTP 403 `application/json` response
	JSON403 *BardiyaErrorEnvelope
	// JSON404 the response for an HTTP 404 `application/json` response
	JSON404 *BardiyaErrorEnvelope
	// JSON422 the response for an HTTP 422 `application/json` response
	JSON422 *HTTPValidationError
	// JSON429 the response for an HTTP 429 `application/json` response
	JSON429 *BardiyaErrorEnvelope
	// JSON503 the response for an HTTP 503 `application/json` response
	JSON503 *BardiyaErrorEnvelope
}

func ParseValidateAddressResult

func ParseValidateAddressResult(rsp *http.Response) (*ValidateAddressResult, error)

ParseValidateAddressResult parses an HTTP response from a ValidateAddressWithResponse call

func (ValidateAddressResult) ContentType

func (r ValidateAddressResult) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (ValidateAddressResult) GetBody

func (r ValidateAddressResult) GetBody() []byte

GetBody returns the raw response body bytes

func (ValidateAddressResult) GetJSON200

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (ValidateAddressResult) GetJSON400

GetJSON400 returns the response for an HTTP 400 `application/json` response

func (ValidateAddressResult) GetJSON401

GetJSON401 returns the response for an HTTP 401 `application/json` response

func (ValidateAddressResult) GetJSON403

GetJSON403 returns the response for an HTTP 403 `application/json` response

func (ValidateAddressResult) GetJSON404

GetJSON404 returns the response for an HTTP 404 `application/json` response

func (ValidateAddressResult) GetJSON422

GetJSON422 returns the response for an HTTP 422 `application/json` response

func (ValidateAddressResult) GetJSON429

GetJSON429 returns the response for an HTTP 429 `application/json` response

func (ValidateAddressResult) GetJSON503

GetJSON503 returns the response for an HTTP 503 `application/json` response

func (ValidateAddressResult) Status

func (r ValidateAddressResult) Status() string

Status returns HTTPResponse.Status

func (ValidateAddressResult) StatusCode

func (r ValidateAddressResult) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ValidationError

type ValidationError struct {
	Ctx   *map[string]interface{}    `json:"ctx,omitempty"`
	Input interface{}                `json:"input,omitempty"`
	Loc   []ValidationError_Loc_Item `json:"loc"`
	Msg   string                     `json:"msg"`
	Type  string                     `json:"type"`
}

ValidationError defines model for ValidationError.

type ValidationErrorLoc0

type ValidationErrorLoc0 = string

ValidationErrorLoc0 defines model for ValidationError.Loc.0.

type ValidationErrorLoc1

type ValidationErrorLoc1 = int

ValidationErrorLoc1 defines model for ValidationError.Loc.1.

type ValidationError_Loc_Item

type ValidationError_Loc_Item struct {
	// contains filtered or unexported fields
}

ValidationError_Loc_Item defines model for ValidationError.loc.Item.

func (ValidationError_Loc_Item) AsValidationErrorLoc0

func (t ValidationError_Loc_Item) AsValidationErrorLoc0() (ValidationErrorLoc0, error)

AsValidationErrorLoc0 returns the union data inside the ValidationError_Loc_Item as a ValidationErrorLoc0

func (ValidationError_Loc_Item) AsValidationErrorLoc1

func (t ValidationError_Loc_Item) AsValidationErrorLoc1() (ValidationErrorLoc1, error)

AsValidationErrorLoc1 returns the union data inside the ValidationError_Loc_Item as a ValidationErrorLoc1

func (*ValidationError_Loc_Item) FromValidationErrorLoc0

func (t *ValidationError_Loc_Item) FromValidationErrorLoc0(v ValidationErrorLoc0) error

FromValidationErrorLoc0 overwrites any union data inside the ValidationError_Loc_Item as the provided ValidationErrorLoc0

func (*ValidationError_Loc_Item) FromValidationErrorLoc1

func (t *ValidationError_Loc_Item) FromValidationErrorLoc1(v ValidationErrorLoc1) error

FromValidationErrorLoc1 overwrites any union data inside the ValidationError_Loc_Item as the provided ValidationErrorLoc1

func (ValidationError_Loc_Item) MarshalJSON

func (t ValidationError_Loc_Item) MarshalJSON() ([]byte, error)

func (*ValidationError_Loc_Item) MergeValidationErrorLoc0

func (t *ValidationError_Loc_Item) MergeValidationErrorLoc0(v ValidationErrorLoc0) error

MergeValidationErrorLoc0 performs a merge with any union data inside the ValidationError_Loc_Item, using the provided ValidationErrorLoc0

func (*ValidationError_Loc_Item) MergeValidationErrorLoc1

func (t *ValidationError_Loc_Item) MergeValidationErrorLoc1(v ValidationErrorLoc1) error

MergeValidationErrorLoc1 performs a merge with any union data inside the ValidationError_Loc_Item, using the provided ValidationErrorLoc1

func (*ValidationError_Loc_Item) UnmarshalJSON

func (t *ValidationError_Loc_Item) UnmarshalJSON(b []byte) error

type Waypoint

type Waypoint struct {
	// Distance Metres from the origin along the returned route.
	Distance *float64 `json:"distance,omitempty"`

	// Location [longitude, latitude] in GeoJSON order.
	Location *[]float64 `json:"location,omitempty"`

	// Name Human-readable label for the origin, an intermediate stop or the destination.
	Name                 *string                `json:"name,omitempty"`
	AdditionalProperties map[string]interface{} `json:"-"`
}

Waypoint defines model for Waypoint.

func (Waypoint) Get

func (a Waypoint) Get(fieldName string) (value interface{}, found bool)

Getter for additional properties for Waypoint. Returns the specified element and whether it was found

func (Waypoint) MarshalJSON

func (a Waypoint) MarshalJSON() ([]byte, error)

Override default JSON handling for Waypoint to handle AdditionalProperties

func (*Waypoint) Set

func (a *Waypoint) Set(fieldName string, value interface{})

Setter for additional properties for Waypoint

func (*Waypoint) UnmarshalJSON

func (a *Waypoint) UnmarshalJSON(b []byte) error

Override default JSON handling for Waypoint to handle AdditionalProperties

type WebhookCreate

type WebhookCreate struct {
	SubscribedEvents []string `json:"subscribed_events"`
	Url              string   `json:"url"`
}

WebhookCreate defines model for WebhookCreate.

type WebhookDeliveryListResponse

type WebhookDeliveryListResponse struct {
	HasMore    bool                      `json:"has_more"`
	Items      []WebhookDeliveryResponse `json:"items"`
	NextCursor *string                   `json:"next_cursor,omitempty"`
}

WebhookDeliveryListResponse defines model for WebhookDeliveryListResponse.

type WebhookDeliveryResponse

type WebhookDeliveryResponse struct {
	AttemptCount    int                `json:"attempt_count"`
	CreatedAt       time.Time          `json:"created_at"`
	DeliveredAt     *time.Time         `json:"delivered_at,omitempty"`
	EndpointId      openapi_types.UUID `json:"endpoint_id"`
	EventId         string             `json:"event_id"`
	Id              openapi_types.UUID `json:"id"`
	LastAttemptAt   *time.Time         `json:"last_attempt_at,omitempty"`
	LastError       *string            `json:"last_error,omitempty"`
	NextAttemptAt   time.Time          `json:"next_attempt_at"`
	ResponseExcerpt *string            `json:"response_excerpt,omitempty"`
	ResponseStatus  *int               `json:"response_status,omitempty"`
	Status          string             `json:"status"`
	UpdatedAt       time.Time          `json:"updated_at"`
}

WebhookDeliveryResponse defines model for WebhookDeliveryResponse.

type WebhookListResponse

type WebhookListResponse struct {
	HasMore    bool              `json:"has_more"`
	Items      []WebhookResponse `json:"items"`
	NextCursor *string           `json:"next_cursor,omitempty"`
}

WebhookListResponse defines model for WebhookListResponse.

type WebhookResponse

type WebhookResponse struct {
	CreatedAt        time.Time          `json:"created_at"`
	Environment      string             `json:"environment"`
	Id               openapi_types.UUID `json:"id"`
	SigningSecret    *string            `json:"signing_secret,omitempty"`
	Status           string             `json:"status"`
	SubscribedEvents []string           `json:"subscribed_events"`
	UpdatedAt        time.Time          `json:"updated_at"`
	Url              string             `json:"url"`
}

WebhookResponse defines model for WebhookResponse.

type WebhookUpdate

type WebhookUpdate struct {
	Status           *string   `json:"status,omitempty"`
	SubscribedEvents *[]string `json:"subscribed_events,omitempty"`
	Url              *string   `json:"url,omitempty"`
}

WebhookUpdate defines model for WebhookUpdate.

Directories

Path Synopsis
examples
quickstart command
Command quickstart performs five real Bardiya calls.
Command quickstart performs five real Bardiya calls.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL