Skip to content

Commit e7fbae6

Browse files
chore: regenerate from OpenAPI spec
- Auto-generated SDK updates - Version: 1.4.728
1 parent 9334a79 commit e7fbae6

5 files changed

Lines changed: 125 additions & 7 deletions

File tree

‎openapi.yaml‎

Lines changed: 38 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4123,6 +4123,17 @@ components:
41234123
product_retailer_id:
41244124
type: string
41254125
description: Retailer ID (SKU) of the product being asked about.
4126+
location:
4127+
type: object
4128+
description: |
4129+
WhatsApp only. The location pin the user shared, forwarded
4130+
verbatim from Meta. The message `text` is only the emoji preview
4131+
(`📍 <name>`); the coordinates live here.
4132+
properties:
4133+
latitude: { type: number, description: Latitude in decimal degrees. }
4134+
longitude: { type: number, description: Longitude in decimal degrees. }
4135+
name: { type: string, description: 'Location name, when the user shared a named place.' }
4136+
address: { type: string, description: 'Street address, when Meta sends one.' }
41264137
contacts:
41274138
type: array
41284139
description: |
@@ -4412,8 +4423,34 @@ components:
44124423
$ref: '#/components/schemas/InboxWebhookAccount'
44134424
metadata:
44144425
type: object
4415-
description: 'Platform-specific context for the sent message. The key is present only when the send carried some context, and absent otherwise: it is never null and never an empty object.'
4426+
description: 'Platform-specific context for the sent message: a quote-reply reference, a WhatsApp location pin or WhatsApp contact cards. The key is present only when the send carried some context, and absent otherwise: it is never null and never an empty object. Read it to tell a location or contact-card message from a text one without a GET on the message.'
44164427
properties:
4428+
location:
4429+
type: object
4430+
description: |
4431+
WhatsApp only. The location pin this message carries, in the same
4432+
shape the inbox send API accepts. Present on API sends that passed
4433+
`location`, and on Coexistence echoes of a pin shared from the
4434+
WhatsApp Business app. The message `text` is only the emoji
4435+
preview (`📍 <name>`); the pin itself lives here.
4436+
properties:
4437+
latitude: { type: number, description: Latitude in decimal degrees. }
4438+
longitude: { type: number, description: Longitude in decimal degrees. }
4439+
name: { type: string, description: 'Location name, when one was given.' }
4440+
address: { type: string, description: 'Street address, when one was given.' }
4441+
contacts:
4442+
type: array
4443+
description: |
4444+
WhatsApp only. The contact cards this message carries. On API
4445+
sends this is the `contacts` array exactly as given to the inbox
4446+
send API (`name`, `phones[].phone` / `type`, `emails[]`); on
4447+
Coexistence echoes of a card shared from the WhatsApp Business
4448+
app it is Meta's shape (`phones[].wa_id`, `vcard`). The message
4449+
`text` is only the emoji preview (`👤 <name>`); the cards live
4450+
here.
4451+
items:
4452+
type: object
4453+
additionalProperties: true
44174454
quotedMessageId:
44184455
type: string
44194456
description: |

‎pyproject.toml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "zernio-sdk"
3-
version = "1.4.727"
3+
version = "1.4.728"
44
description = "The official Python library for the Zernio API"
55
readme = "README.md"
66
requires-python = ">=3.10"

‎src/late/__init__.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
Visibility,
4343
)
4444

45-
__version__ = "1.4.727"
45+
__version__ = "1.4.728"
4646

4747
__all__ = [
4848
# Client

‎src/late/models/_generated/models.py‎

Lines changed: 84 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# generated by datamodel-codegen:
22
# filename: openapi.yaml
3-
# timestamp: 2026-09-10T08:35:08+00:00
3+
# timestamp: 2026-09-10T08:48:51+00:00
44

55
from __future__ import annotations
66

@@ -3827,6 +3827,32 @@ class ReferredProduct(BaseModel):
38273827
"""
38283828

38293829

3830+
class Location(BaseModel):
3831+
"""
3832+
WhatsApp only. The location pin the user shared, forwarded
3833+
verbatim from Meta. The message `text` is only the emoji preview
3834+
(`📍 <name>`); the coordinates live here.
3835+
3836+
"""
3837+
3838+
latitude: float | None = None
3839+
"""
3840+
Latitude in decimal degrees.
3841+
"""
3842+
longitude: float | None = None
3843+
"""
3844+
Longitude in decimal degrees.
3845+
"""
3846+
name: str | None = None
3847+
"""
3848+
Location name, when the user shared a named place.
3849+
"""
3850+
address: str | None = None
3851+
"""
3852+
Street address, when Meta sends one.
3853+
"""
3854+
3855+
38303856
class ContactsOrigin(str, Enum):
38313857
"""
38323858
WhatsApp only. How the contact card was shared.
@@ -4081,6 +4107,13 @@ class Metadata(BaseModel):
40814107
inbound text carries Meta's `context.referred_product` (the user
40824108
tapped "Message business" on a product). Forwarded verbatim.
40834109
4110+
"""
4111+
location: Location | None = None
4112+
"""
4113+
WhatsApp only. The location pin the user shared, forwarded
4114+
verbatim from Meta. The message `text` is only the emoji preview
4115+
(`📍 <name>`); the coordinates live here.
4116+
40844117
"""
40854118
contacts: List[Dict[str, Any]] | None = None
40864119
"""
@@ -4367,11 +4400,59 @@ class Message1(BaseModel):
43674400
"""
43684401

43694402

4403+
class Location1(BaseModel):
4404+
"""
4405+
WhatsApp only. The location pin this message carries, in the same
4406+
shape the inbox send API accepts. Present on API sends that passed
4407+
`location`, and on Coexistence echoes of a pin shared from the
4408+
WhatsApp Business app. The message `text` is only the emoji
4409+
preview (`📍 <name>`); the pin itself lives here.
4410+
4411+
"""
4412+
4413+
latitude: float | None = None
4414+
"""
4415+
Latitude in decimal degrees.
4416+
"""
4417+
longitude: float | None = None
4418+
"""
4419+
Longitude in decimal degrees.
4420+
"""
4421+
name: str | None = None
4422+
"""
4423+
Location name, when one was given.
4424+
"""
4425+
address: str | None = None
4426+
"""
4427+
Street address, when one was given.
4428+
"""
4429+
4430+
43704431
class Metadata1(BaseModel):
43714432
"""
4372-
Platform-specific context for the sent message. The key is present only when the send carried some context, and absent otherwise: it is never null and never an empty object.
4433+
Platform-specific context for the sent message: a quote-reply reference, a WhatsApp location pin or WhatsApp contact cards. The key is present only when the send carried some context, and absent otherwise: it is never null and never an empty object. Read it to tell a location or contact-card message from a text one without a GET on the message.
4434+
"""
4435+
4436+
location: Location1 | None = None
4437+
"""
4438+
WhatsApp only. The location pin this message carries, in the same
4439+
shape the inbox send API accepts. Present on API sends that passed
4440+
`location`, and on Coexistence echoes of a pin shared from the
4441+
WhatsApp Business app. The message `text` is only the emoji
4442+
preview (`📍 <name>`); the pin itself lives here.
4443+
43734444
"""
4445+
contacts: List[Dict[str, Any]] | None = None
4446+
"""
4447+
WhatsApp only. The contact cards this message carries. On API
4448+
sends this is the `contacts` array exactly as given to the inbox
4449+
send API (`name`, `phones[].phone` / `type`, `emails[]`); on
4450+
Coexistence echoes of a card shared from the WhatsApp Business
4451+
app it is Meta's shape (`phones[].wa_id`, `vcard`). The message
4452+
`text` is only the emoji preview (`👤 <name>`); the cards live
4453+
here.
43744454
4455+
"""
43754456
quotedMessageId: str | None = None
43764457
"""
43774458
`platformMessageId` of the message this send is a quote-reply to.
@@ -4420,7 +4501,7 @@ class WebhookPayloadMessageSent(BaseModel):
44204501
account: InboxWebhookAccount
44214502
metadata: Metadata1 | None = None
44224503
"""
4423-
Platform-specific context for the sent message. The key is present only when the send carried some context, and absent otherwise: it is never null and never an empty object.
4504+
Platform-specific context for the sent message: a quote-reply reference, a WhatsApp location pin or WhatsApp contact cards. The key is present only when the send carried some context, and absent otherwise: it is never null and never an empty object. Read it to tell a location or contact-card message from a text one without a GET on the message.
44244505
"""
44254506
timestamp: AwareDatetime
44264507
"""

‎uv.lock‎

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)