Skip to content

Commit 55e515b

Browse files
chore: regenerate from OpenAPI spec
- Auto-generated SDK updates - Version: v0.0.280
1 parent 9019831 commit 55e515b

1,034 files changed

Lines changed: 2860 additions & 1035 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎.openapi-generator/FILES‎

Lines changed: 9 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -953,6 +953,9 @@ docs/WebhookPayloadCommentComment.md
953953
docs/WebhookPayloadCommentCommentAd.md
954954
docs/WebhookPayloadCommentCommentAuthor.md
955955
docs/WebhookPayloadCommentPost.md
956+
docs/WebhookPayloadLead.md
957+
docs/WebhookPayloadLeadAccount.md
958+
docs/WebhookPayloadLeadLead.md
956959
docs/WebhookPayloadMessage.md
957960
docs/WebhookPayloadMessageDeleted.md
958961
docs/WebhookPayloadMessageDeliveryStatus.md
@@ -1987,6 +1990,9 @@ src/main/java/dev/zernio/model/WebhookPayloadCommentComment.java
19871990
src/main/java/dev/zernio/model/WebhookPayloadCommentCommentAd.java
19881991
src/main/java/dev/zernio/model/WebhookPayloadCommentCommentAuthor.java
19891992
src/main/java/dev/zernio/model/WebhookPayloadCommentPost.java
1993+
src/main/java/dev/zernio/model/WebhookPayloadLead.java
1994+
src/main/java/dev/zernio/model/WebhookPayloadLeadAccount.java
1995+
src/main/java/dev/zernio/model/WebhookPayloadLeadLead.java
19901996
src/main/java/dev/zernio/model/WebhookPayloadMessage.java
19911997
src/main/java/dev/zernio/model/WebhookPayloadMessageDeleted.java
19921998
src/main/java/dev/zernio/model/WebhookPayloadMessageDeliveryStatus.java
@@ -2044,16 +2050,6 @@ src/main/java/dev/zernio/model/YouTubeDemographicsResponseDemographicsValueInner
20442050
src/main/java/dev/zernio/model/YouTubePlatformData.java
20452051
src/main/java/dev/zernio/model/YouTubeScopeMissingResponse.java
20462052
src/main/java/dev/zernio/model/YouTubeScopeMissingResponseScopeStatus.java
2047-
src/test/java/dev/zernio/model/ArchiveLeadForm200ResponseTest.java
2048-
src/test/java/dev/zernio/model/CreateLeadForm200ResponseTest.java
2049-
src/test/java/dev/zernio/model/CreateLeadFormRequestQuestionsInnerOptionsInnerTest.java
2050-
src/test/java/dev/zernio/model/CreateLeadFormRequestQuestionsInnerTest.java
2051-
src/test/java/dev/zernio/model/CreateLeadFormRequestTest.java
2052-
src/test/java/dev/zernio/model/CreateTestLead200ResponseTest.java
2053-
src/test/java/dev/zernio/model/CreateTestLead200ResponseTestLeadTest.java
2054-
src/test/java/dev/zernio/model/CreateTestLeadRequestFieldDataInnerTest.java
2055-
src/test/java/dev/zernio/model/CreateTestLeadRequestTest.java
2056-
src/test/java/dev/zernio/model/ListFormLeads200ResponseLeadsInnerTest.java
2057-
src/test/java/dev/zernio/model/ListFormLeads200ResponseTest.java
2058-
src/test/java/dev/zernio/model/ListLeads200ResponseLeadsInnerTest.java
2059-
src/test/java/dev/zernio/model/ListLeads200ResponseTest.java
2053+
src/test/java/dev/zernio/model/WebhookPayloadLeadAccountTest.java
2054+
src/test/java/dev/zernio/model/WebhookPayloadLeadLeadTest.java
2055+
src/test/java/dev/zernio/model/WebhookPayloadLeadTest.java

‎README.md‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Zernio API
44

55
- API version: 1.0.4
66

7-
- Build date: 2026-05-25T09:45:44.760208202Z[Etc/UTC]
7+
- Build date: 2026-05-25T10:14:18.561300536Z[Etc/UTC]
88

99
- Generator version: 7.19.0
1010

@@ -1641,6 +1641,9 @@ Class | Method | HTTP request | Description
16411641
- [WebhookPayloadCommentCommentAd](docs/WebhookPayloadCommentCommentAd.md)
16421642
- [WebhookPayloadCommentCommentAuthor](docs/WebhookPayloadCommentCommentAuthor.md)
16431643
- [WebhookPayloadCommentPost](docs/WebhookPayloadCommentPost.md)
1644+
- [WebhookPayloadLead](docs/WebhookPayloadLead.md)
1645+
- [WebhookPayloadLeadAccount](docs/WebhookPayloadLeadAccount.md)
1646+
- [WebhookPayloadLeadLead](docs/WebhookPayloadLeadLead.md)
16441647
- [WebhookPayloadMessage](docs/WebhookPayloadMessage.md)
16451648
- [WebhookPayloadMessageDeleted](docs/WebhookPayloadMessageDeleted.md)
16461649
- [WebhookPayloadMessageDeliveryStatus](docs/WebhookPayloadMessageDeliveryStatus.md)

‎api/openapi.yaml‎

Lines changed: 115 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20225,6 +20225,49 @@ components:
2022520225
- id
2022620226
- post
2022720227
- timestamp
20228+
WebhookPayloadLead:
20229+
description: Webhook payload for lead.received events (Meta Lead Gen / Instant
20230+
Forms).
20231+
example:
20232+
id: id
20233+
event: lead.received
20234+
lead:
20235+
formId: formId
20236+
createdAt: 2000-01-23T04:56:07.000+00:00
20237+
adId: adId
20238+
campaignId: campaignId
20239+
formName: formName
20240+
isOrganic: true
20241+
id: id
20242+
fields:
20243+
key: fields
20244+
leadgenId: leadgenId
20245+
adsetId: adsetId
20246+
account:
20247+
id: id
20248+
platform: facebook
20249+
timestamp: 2000-01-23T04:56:07.000+00:00
20250+
properties:
20251+
id:
20252+
description: Stable webhook event ID
20253+
type: string
20254+
event:
20255+
enum:
20256+
- lead.received
20257+
type: string
20258+
lead:
20259+
$ref: "#/components/schemas/WebhookPayloadLead_lead"
20260+
account:
20261+
$ref: "#/components/schemas/WebhookPayloadLead_account"
20262+
timestamp:
20263+
format: date-time
20264+
type: string
20265+
required:
20266+
- account
20267+
- event
20268+
- id
20269+
- lead
20270+
- timestamp
2022820271
ReviewWebhookReview:
2022920272
description: Review data shared by review.new and review.updated payloads.
2023020273
example:
@@ -46623,6 +46666,78 @@ components:
4662346666
- id
4662446667
- platform
4662546668
- username
46669+
WebhookPayloadLead_lead:
46670+
example:
46671+
formId: formId
46672+
createdAt: 2000-01-23T04:56:07.000+00:00
46673+
adId: adId
46674+
campaignId: campaignId
46675+
formName: formName
46676+
isOrganic: true
46677+
id: id
46678+
fields:
46679+
key: fields
46680+
leadgenId: leadgenId
46681+
adsetId: adsetId
46682+
properties:
46683+
id:
46684+
description: Zernio lead ID (AdLead document ID)
46685+
type: string
46686+
leadgenId:
46687+
description: Meta lead ID (the platform's leadgen_id)
46688+
type: string
46689+
formId:
46690+
description: Lead Gen form ID the lead was submitted against
46691+
type: string
46692+
formName:
46693+
description: Human-readable form name (best-effort; may be null)
46694+
type: string
46695+
nullable: true
46696+
adId:
46697+
description: Meta ad ID that drove the lead (null for organic/test leads)
46698+
type: string
46699+
nullable: true
46700+
adsetId:
46701+
type: string
46702+
nullable: true
46703+
campaignId:
46704+
type: string
46705+
nullable: true
46706+
fields:
46707+
additionalProperties:
46708+
type: string
46709+
description: |
46710+
Flattened question key -> answer map. For multiple-choice questions the value is the option key (e.g. "k1"), not the display label.
46711+
isOrganic:
46712+
description: True when the lead came from an organic post rather than a
46713+
paid ad
46714+
type: boolean
46715+
createdAt:
46716+
description: Meta's lead creation time (ISO 8601)
46717+
format: date-time
46718+
type: string
46719+
required:
46720+
- createdAt
46721+
- fields
46722+
- formId
46723+
- id
46724+
- isOrganic
46725+
- leadgenId
46726+
WebhookPayloadLead_account:
46727+
example:
46728+
id: id
46729+
platform: facebook
46730+
properties:
46731+
id:
46732+
description: Social account ID (the facebook account owning the Page)
46733+
type: string
46734+
platform:
46735+
enum:
46736+
- facebook
46737+
type: string
46738+
required:
46739+
- id
46740+
- platform
4662646741
ReviewWebhookReview_reviewer:
4662746742
example:
4662846743
name: name

‎docs/WebhookEventsApi.md‎

Lines changed: 144 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ All URIs are relative to *https://zernio.com/api*
1414
| [**onAdStatusChangedWithHttpInfo**](WebhookEventsApi.md#onAdStatusChangedWithHttpInfo) | **POST** /ad.status_changed | Ad status changed event |
1515
| [**onCommentReceived**](WebhookEventsApi.md#onCommentReceived) | **POST** /comment.received | Comment received event |
1616
| [**onCommentReceivedWithHttpInfo**](WebhookEventsApi.md#onCommentReceivedWithHttpInfo) | **POST** /comment.received | Comment received event |
17+
| [**onLeadReceived**](WebhookEventsApi.md#onLeadReceived) | **POST** /lead.received | Lead received event |
18+
| [**onLeadReceivedWithHttpInfo**](WebhookEventsApi.md#onLeadReceivedWithHttpInfo) | **POST** /lead.received | Lead received event |
1719
| [**onMessageDeleted**](WebhookEventsApi.md#onMessageDeleted) | **POST** /message.deleted | Message deleted event |
1820
| [**onMessageDeletedWithHttpInfo**](WebhookEventsApi.md#onMessageDeletedWithHttpInfo) | **POST** /message.deleted | Message deleted event |
1921
| [**onMessageDelivered**](WebhookEventsApi.md#onMessageDelivered) | **POST** /message.delivered | Message delivered event |
@@ -767,6 +769,148 @@ ApiResponse<Void>
767769
| **200** | Webhook received successfully | - |
768770

769771

772+
## onLeadReceived
773+
774+
> void onLeadReceived(webhookPayloadLead)
775+
776+
Lead received event
777+
778+
Fired when a new lead is submitted against a Meta Lead Gen (Instant) Form and ingested via the Page &#x60;leadgen&#x60; webhook. &#x60;lead.fields&#x60; is the question-key to answer map; &#x60;lead.formId&#x60; / &#x60;lead.adId&#x60; give provenance. Requires the Ads add-on.
779+
780+
### Example
781+
782+
```java
783+
// Import classes:
784+
import dev.zernio.ApiClient;
785+
import dev.zernio.ApiException;
786+
import dev.zernio.Configuration;
787+
import dev.zernio.auth.*;
788+
import dev.zernio.models.*;
789+
import dev.zernio.api.WebhookEventsApi;
790+
791+
public class Example {
792+
public static void main(String[] args) {
793+
ApiClient defaultClient = Configuration.getDefaultApiClient();
794+
defaultClient.setBasePath("https://zernio.com/api");
795+
796+
// Configure HTTP bearer authorization: bearerAuth
797+
HttpBearerAuth bearerAuth = (HttpBearerAuth) defaultClient.getAuthentication("bearerAuth");
798+
bearerAuth.setBearerToken("BEARER TOKEN");
799+
800+
WebhookEventsApi apiInstance = new WebhookEventsApi(defaultClient);
801+
WebhookPayloadLead webhookPayloadLead = new WebhookPayloadLead(); // WebhookPayloadLead |
802+
try {
803+
apiInstance.onLeadReceived(webhookPayloadLead);
804+
} catch (ApiException e) {
805+
System.err.println("Exception when calling WebhookEventsApi#onLeadReceived");
806+
System.err.println("Status code: " + e.getCode());
807+
System.err.println("Reason: " + e.getResponseBody());
808+
System.err.println("Response headers: " + e.getResponseHeaders());
809+
e.printStackTrace();
810+
}
811+
}
812+
}
813+
```
814+
815+
### Parameters
816+
817+
818+
| Name | Type | Description | Notes |
819+
|------------- | ------------- | ------------- | -------------|
820+
| **webhookPayloadLead** | [**WebhookPayloadLead**](WebhookPayloadLead.md)| | |
821+
822+
### Return type
823+
824+
825+
null (empty response body)
826+
827+
### Authorization
828+
829+
[bearerAuth](../README.md#bearerAuth)
830+
831+
### HTTP request headers
832+
833+
- **Content-Type**: application/json
834+
- **Accept**: Not defined
835+
836+
### HTTP response details
837+
| Status code | Description | Response headers |
838+
|-------------|-------------|------------------|
839+
| **200** | Webhook received successfully | - |
840+
841+
## onLeadReceivedWithHttpInfo
842+
843+
> ApiResponse<Void> onLeadReceived onLeadReceivedWithHttpInfo(webhookPayloadLead)
844+
845+
Lead received event
846+
847+
Fired when a new lead is submitted against a Meta Lead Gen (Instant) Form and ingested via the Page &#x60;leadgen&#x60; webhook. &#x60;lead.fields&#x60; is the question-key to answer map; &#x60;lead.formId&#x60; / &#x60;lead.adId&#x60; give provenance. Requires the Ads add-on.
848+
849+
### Example
850+
851+
```java
852+
// Import classes:
853+
import dev.zernio.ApiClient;
854+
import dev.zernio.ApiException;
855+
import dev.zernio.ApiResponse;
856+
import dev.zernio.Configuration;
857+
import dev.zernio.auth.*;
858+
import dev.zernio.models.*;
859+
import dev.zernio.api.WebhookEventsApi;
860+
861+
public class Example {
862+
public static void main(String[] args) {
863+
ApiClient defaultClient = Configuration.getDefaultApiClient();
864+
defaultClient.setBasePath("https://zernio.com/api");
865+
866+
// Configure HTTP bearer authorization: bearerAuth
867+
HttpBearerAuth bearerAuth = (HttpBearerAuth) defaultClient.getAuthentication("bearerAuth");
868+
bearerAuth.setBearerToken("BEARER TOKEN");
869+
870+
WebhookEventsApi apiInstance = new WebhookEventsApi(defaultClient);
871+
WebhookPayloadLead webhookPayloadLead = new WebhookPayloadLead(); // WebhookPayloadLead |
872+
try {
873+
ApiResponse<Void> response = apiInstance.onLeadReceivedWithHttpInfo(webhookPayloadLead);
874+
System.out.println("Status code: " + response.getStatusCode());
875+
System.out.println("Response headers: " + response.getHeaders());
876+
} catch (ApiException e) {
877+
System.err.println("Exception when calling WebhookEventsApi#onLeadReceived");
878+
System.err.println("Status code: " + e.getCode());
879+
System.err.println("Response headers: " + e.getResponseHeaders());
880+
System.err.println("Reason: " + e.getResponseBody());
881+
e.printStackTrace();
882+
}
883+
}
884+
}
885+
```
886+
887+
### Parameters
888+
889+
890+
| Name | Type | Description | Notes |
891+
|------------- | ------------- | ------------- | -------------|
892+
| **webhookPayloadLead** | [**WebhookPayloadLead**](WebhookPayloadLead.md)| | |
893+
894+
### Return type
895+
896+
897+
ApiResponse<Void>
898+
899+
### Authorization
900+
901+
[bearerAuth](../README.md#bearerAuth)
902+
903+
### HTTP request headers
904+
905+
- **Content-Type**: application/json
906+
- **Accept**: Not defined
907+
908+
### HTTP response details
909+
| Status code | Description | Response headers |
910+
|-------------|-------------|------------------|
911+
| **200** | Webhook received successfully | - |
912+
913+
770914
## onMessageDeleted
771915

772916
> void onMessageDeleted(webhookPayloadMessageDeleted)

‎docs/WebhookPayloadLead.md‎

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
2+
3+
# WebhookPayloadLead
4+
5+
Webhook payload for lead.received events (Meta Lead Gen / Instant Forms).
6+
7+
## Properties
8+
9+
| Name | Type | Description | Notes |
10+
|------------ | ------------- | ------------- | -------------|
11+
|**id** | **String** | Stable webhook event ID | |
12+
|**event** | [**EventEnum**](#EventEnum) | | |
13+
|**lead** | [**WebhookPayloadLeadLead**](WebhookPayloadLeadLead.md) | | |
14+
|**account** | [**WebhookPayloadLeadAccount**](WebhookPayloadLeadAccount.md) | | |
15+
|**timestamp** | **OffsetDateTime** | | |
16+
17+
18+
19+
## Enum: EventEnum
20+
21+
| Name | Value |
22+
|---- | -----|
23+
| LEAD_RECEIVED | &quot;lead.received&quot; |
24+
25+
26+

‎docs/WebhookPayloadLeadAccount.md‎

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
2+
3+
# WebhookPayloadLeadAccount
4+
5+
6+
## Properties
7+
8+
| Name | Type | Description | Notes |
9+
|------------ | ------------- | ------------- | -------------|
10+
|**id** | **String** | Social account ID (the facebook account owning the Page) | |
11+
|**platform** | [**PlatformEnum**](#PlatformEnum) | | |
12+
13+
14+
15+
## Enum: PlatformEnum
16+
17+
| Name | Value |
18+
|---- | -----|
19+
| FACEBOOK | &quot;facebook&quot; |
20+
21+
22+

0 commit comments

Comments
 (0)