@zernio/node 0.2.184 → 0.2.186
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.mts +83 -55
- package/dist/index.d.ts +83 -55
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
- package/src/generated/types.gen.ts +83 -55
package/dist/index.d.mts
CHANGED
|
@@ -2191,6 +2191,16 @@ type InboxWebhookConversation = {
|
|
|
2191
2191
|
participantUsername?: string;
|
|
2192
2192
|
participantPicture?: string;
|
|
2193
2193
|
status: 'active' | 'archived';
|
|
2194
|
+
/**
|
|
2195
|
+
* Zernio CRM Contact ID for the participant, when one exists. Resolved by
|
|
2196
|
+
* joining `participantId` to the ContactChannel collection. Best-effort:
|
|
2197
|
+
* omitted when no channel matches or `participantId` is absent. Lets
|
|
2198
|
+
* integrators join any inbox webhook back to the CRM Contact without
|
|
2199
|
+
* needing to look at the sender — which matters for outgoing and
|
|
2200
|
+
* delivery-status events whose sender is the business.
|
|
2201
|
+
*
|
|
2202
|
+
*/
|
|
2203
|
+
contactId?: string;
|
|
2194
2204
|
};
|
|
2195
2205
|
type status3 = 'active' | 'archived';
|
|
2196
2206
|
/**
|
|
@@ -4311,6 +4321,16 @@ type WebhookPayloadConversationStarted = {
|
|
|
4311
4321
|
participantUsername?: string;
|
|
4312
4322
|
participantPicture?: string;
|
|
4313
4323
|
status: 'active' | 'archived';
|
|
4324
|
+
/**
|
|
4325
|
+
* Zernio CRM Contact ID for the participant, when one exists. Resolved by
|
|
4326
|
+
* joining `participantId` to the ContactChannel collection (same join
|
|
4327
|
+
* used by message.*, reaction.received, and call.* webhooks). Best-effort:
|
|
4328
|
+
* omitted when no channel matches or `participantId` is absent. Lets
|
|
4329
|
+
* integrators seed the CRM straight from `conversation.started` without
|
|
4330
|
+
* waiting for the first `message.*` event.
|
|
4331
|
+
*
|
|
4332
|
+
*/
|
|
4333
|
+
contactId?: string;
|
|
4314
4334
|
};
|
|
4315
4335
|
account: InboxWebhookAccount;
|
|
4316
4336
|
/**
|
|
@@ -4498,24 +4518,8 @@ type WebhookPayloadMessage = {
|
|
|
4498
4518
|
sentAt: string;
|
|
4499
4519
|
isRead: boolean;
|
|
4500
4520
|
};
|
|
4501
|
-
conversation:
|
|
4502
|
-
|
|
4503
|
-
platformConversationId: string;
|
|
4504
|
-
participantId?: string;
|
|
4505
|
-
participantName?: string;
|
|
4506
|
-
participantUsername?: string;
|
|
4507
|
-
participantPicture?: string;
|
|
4508
|
-
status: 'active' | 'archived';
|
|
4509
|
-
};
|
|
4510
|
-
account: {
|
|
4511
|
-
/**
|
|
4512
|
-
* Social account ID
|
|
4513
|
-
*/
|
|
4514
|
-
id: string;
|
|
4515
|
-
platform: string;
|
|
4516
|
-
username: string;
|
|
4517
|
-
displayName?: string;
|
|
4518
|
-
};
|
|
4521
|
+
conversation: InboxWebhookConversation;
|
|
4522
|
+
account: InboxWebhookAccount;
|
|
4519
4523
|
/**
|
|
4520
4524
|
* Interactive message metadata (present when message is a quick reply tap, postback button tap, or inline keyboard callback)
|
|
4521
4525
|
*/
|
|
@@ -4827,24 +4831,8 @@ type WebhookPayloadMessageSent = {
|
|
|
4827
4831
|
sentAt: string;
|
|
4828
4832
|
isRead: boolean;
|
|
4829
4833
|
};
|
|
4830
|
-
conversation:
|
|
4831
|
-
|
|
4832
|
-
platformConversationId: string;
|
|
4833
|
-
participantId?: string;
|
|
4834
|
-
participantName?: string;
|
|
4835
|
-
participantUsername?: string;
|
|
4836
|
-
participantPicture?: string;
|
|
4837
|
-
status: 'active' | 'archived';
|
|
4838
|
-
};
|
|
4839
|
-
account: {
|
|
4840
|
-
/**
|
|
4841
|
-
* Social account ID
|
|
4842
|
-
*/
|
|
4843
|
-
id: string;
|
|
4844
|
-
platform: string;
|
|
4845
|
-
username: string;
|
|
4846
|
-
displayName?: string;
|
|
4847
|
-
};
|
|
4834
|
+
conversation: InboxWebhookConversation;
|
|
4835
|
+
account: InboxWebhookAccount;
|
|
4848
4836
|
timestamp: string;
|
|
4849
4837
|
};
|
|
4850
4838
|
type event12 = 'message.sent';
|
|
@@ -4992,24 +4980,8 @@ type WebhookPayloadReaction = {
|
|
|
4992
4980
|
};
|
|
4993
4981
|
reactedAt: string;
|
|
4994
4982
|
};
|
|
4995
|
-
conversation:
|
|
4996
|
-
|
|
4997
|
-
platformConversationId: string;
|
|
4998
|
-
participantId?: string;
|
|
4999
|
-
participantName?: string;
|
|
5000
|
-
participantUsername?: string;
|
|
5001
|
-
participantPicture?: string;
|
|
5002
|
-
status: 'active' | 'archived';
|
|
5003
|
-
};
|
|
5004
|
-
account: {
|
|
5005
|
-
/**
|
|
5006
|
-
* Social account ID
|
|
5007
|
-
*/
|
|
5008
|
-
id: string;
|
|
5009
|
-
platform: string;
|
|
5010
|
-
username: string;
|
|
5011
|
-
displayName?: string;
|
|
5012
|
-
};
|
|
4983
|
+
conversation: InboxWebhookConversation;
|
|
4984
|
+
account: InboxWebhookAccount;
|
|
5013
4985
|
timestamp: string;
|
|
5014
4986
|
};
|
|
5015
4987
|
type event15 = 'reaction.received';
|
|
@@ -17374,9 +17346,65 @@ type CreateCtwaAdData = {
|
|
|
17374
17346
|
*/
|
|
17375
17347
|
endDate?: string;
|
|
17376
17348
|
/**
|
|
17377
|
-
* ISO 3166-1 alpha-2 country codes. Defaults to `["US"]
|
|
17349
|
+
* ISO 3166-1 alpha-2 country codes. Defaults to `["US"]` only
|
|
17350
|
+
* when no other geo (`cities`, `regions`, `zips`, `metros`,
|
|
17351
|
+
* `customLocations`) is supplied.
|
|
17352
|
+
*
|
|
17378
17353
|
*/
|
|
17379
17354
|
countries?: Array<(string)>;
|
|
17355
|
+
/**
|
|
17356
|
+
* City-level geo targeting for local CTWA campaigns (e.g.
|
|
17357
|
+
* 25km radius around Milan). Each entry maps to Meta's
|
|
17358
|
+
* TargetingGeoLocationCity. `key` is Meta's city ID
|
|
17359
|
+
* (lookupable via GET /v1/ads/targeting/search). `radius`
|
|
17360
|
+
* and `distance_unit` are coupled: set both or neither.
|
|
17361
|
+
*
|
|
17362
|
+
*/
|
|
17363
|
+
cities?: Array<{
|
|
17364
|
+
key: string;
|
|
17365
|
+
radius?: number;
|
|
17366
|
+
distance_unit?: 'mile' | 'kilometer';
|
|
17367
|
+
}>;
|
|
17368
|
+
/**
|
|
17369
|
+
* Region / state-level geo targeting. `key` is Meta's region
|
|
17370
|
+
* ID (lookupable via GET /v1/ads/targeting/search?type=region).
|
|
17371
|
+
*
|
|
17372
|
+
*/
|
|
17373
|
+
regions?: Array<{
|
|
17374
|
+
key: string;
|
|
17375
|
+
}>;
|
|
17376
|
+
/**
|
|
17377
|
+
* ZIP / postal-code geo targeting. `key` is the platform's
|
|
17378
|
+
* postal id resolved via /v1/ads/targeting/search.
|
|
17379
|
+
*
|
|
17380
|
+
*/
|
|
17381
|
+
zips?: Array<{
|
|
17382
|
+
key: string;
|
|
17383
|
+
name?: string;
|
|
17384
|
+
}>;
|
|
17385
|
+
/**
|
|
17386
|
+
* DMA / metro-area geo targeting. `key` is Meta's metro id
|
|
17387
|
+
* (e.g. `DMA:807`).
|
|
17388
|
+
*
|
|
17389
|
+
*/
|
|
17390
|
+
metros?: Array<{
|
|
17391
|
+
key: string;
|
|
17392
|
+
name?: string;
|
|
17393
|
+
}>;
|
|
17394
|
+
/**
|
|
17395
|
+
* Point-radius geo (Meta `geo_locations.custom_locations`).
|
|
17396
|
+
* Use for targeting a radius around a specific lat/long when
|
|
17397
|
+
* no Meta city/region key fits. `distanceUnit` is required.
|
|
17398
|
+
*
|
|
17399
|
+
*/
|
|
17400
|
+
customLocations?: Array<{
|
|
17401
|
+
latitude: number;
|
|
17402
|
+
longitude: number;
|
|
17403
|
+
radius: number;
|
|
17404
|
+
distanceUnit: 'mile' | 'kilometer';
|
|
17405
|
+
name?: string;
|
|
17406
|
+
address?: string;
|
|
17407
|
+
}>;
|
|
17380
17408
|
ageMin?: number;
|
|
17381
17409
|
ageMax?: number;
|
|
17382
17410
|
interests?: Array<{
|
package/dist/index.d.ts
CHANGED
|
@@ -2191,6 +2191,16 @@ type InboxWebhookConversation = {
|
|
|
2191
2191
|
participantUsername?: string;
|
|
2192
2192
|
participantPicture?: string;
|
|
2193
2193
|
status: 'active' | 'archived';
|
|
2194
|
+
/**
|
|
2195
|
+
* Zernio CRM Contact ID for the participant, when one exists. Resolved by
|
|
2196
|
+
* joining `participantId` to the ContactChannel collection. Best-effort:
|
|
2197
|
+
* omitted when no channel matches or `participantId` is absent. Lets
|
|
2198
|
+
* integrators join any inbox webhook back to the CRM Contact without
|
|
2199
|
+
* needing to look at the sender — which matters for outgoing and
|
|
2200
|
+
* delivery-status events whose sender is the business.
|
|
2201
|
+
*
|
|
2202
|
+
*/
|
|
2203
|
+
contactId?: string;
|
|
2194
2204
|
};
|
|
2195
2205
|
type status3 = 'active' | 'archived';
|
|
2196
2206
|
/**
|
|
@@ -4311,6 +4321,16 @@ type WebhookPayloadConversationStarted = {
|
|
|
4311
4321
|
participantUsername?: string;
|
|
4312
4322
|
participantPicture?: string;
|
|
4313
4323
|
status: 'active' | 'archived';
|
|
4324
|
+
/**
|
|
4325
|
+
* Zernio CRM Contact ID for the participant, when one exists. Resolved by
|
|
4326
|
+
* joining `participantId` to the ContactChannel collection (same join
|
|
4327
|
+
* used by message.*, reaction.received, and call.* webhooks). Best-effort:
|
|
4328
|
+
* omitted when no channel matches or `participantId` is absent. Lets
|
|
4329
|
+
* integrators seed the CRM straight from `conversation.started` without
|
|
4330
|
+
* waiting for the first `message.*` event.
|
|
4331
|
+
*
|
|
4332
|
+
*/
|
|
4333
|
+
contactId?: string;
|
|
4314
4334
|
};
|
|
4315
4335
|
account: InboxWebhookAccount;
|
|
4316
4336
|
/**
|
|
@@ -4498,24 +4518,8 @@ type WebhookPayloadMessage = {
|
|
|
4498
4518
|
sentAt: string;
|
|
4499
4519
|
isRead: boolean;
|
|
4500
4520
|
};
|
|
4501
|
-
conversation:
|
|
4502
|
-
|
|
4503
|
-
platformConversationId: string;
|
|
4504
|
-
participantId?: string;
|
|
4505
|
-
participantName?: string;
|
|
4506
|
-
participantUsername?: string;
|
|
4507
|
-
participantPicture?: string;
|
|
4508
|
-
status: 'active' | 'archived';
|
|
4509
|
-
};
|
|
4510
|
-
account: {
|
|
4511
|
-
/**
|
|
4512
|
-
* Social account ID
|
|
4513
|
-
*/
|
|
4514
|
-
id: string;
|
|
4515
|
-
platform: string;
|
|
4516
|
-
username: string;
|
|
4517
|
-
displayName?: string;
|
|
4518
|
-
};
|
|
4521
|
+
conversation: InboxWebhookConversation;
|
|
4522
|
+
account: InboxWebhookAccount;
|
|
4519
4523
|
/**
|
|
4520
4524
|
* Interactive message metadata (present when message is a quick reply tap, postback button tap, or inline keyboard callback)
|
|
4521
4525
|
*/
|
|
@@ -4827,24 +4831,8 @@ type WebhookPayloadMessageSent = {
|
|
|
4827
4831
|
sentAt: string;
|
|
4828
4832
|
isRead: boolean;
|
|
4829
4833
|
};
|
|
4830
|
-
conversation:
|
|
4831
|
-
|
|
4832
|
-
platformConversationId: string;
|
|
4833
|
-
participantId?: string;
|
|
4834
|
-
participantName?: string;
|
|
4835
|
-
participantUsername?: string;
|
|
4836
|
-
participantPicture?: string;
|
|
4837
|
-
status: 'active' | 'archived';
|
|
4838
|
-
};
|
|
4839
|
-
account: {
|
|
4840
|
-
/**
|
|
4841
|
-
* Social account ID
|
|
4842
|
-
*/
|
|
4843
|
-
id: string;
|
|
4844
|
-
platform: string;
|
|
4845
|
-
username: string;
|
|
4846
|
-
displayName?: string;
|
|
4847
|
-
};
|
|
4834
|
+
conversation: InboxWebhookConversation;
|
|
4835
|
+
account: InboxWebhookAccount;
|
|
4848
4836
|
timestamp: string;
|
|
4849
4837
|
};
|
|
4850
4838
|
type event12 = 'message.sent';
|
|
@@ -4992,24 +4980,8 @@ type WebhookPayloadReaction = {
|
|
|
4992
4980
|
};
|
|
4993
4981
|
reactedAt: string;
|
|
4994
4982
|
};
|
|
4995
|
-
conversation:
|
|
4996
|
-
|
|
4997
|
-
platformConversationId: string;
|
|
4998
|
-
participantId?: string;
|
|
4999
|
-
participantName?: string;
|
|
5000
|
-
participantUsername?: string;
|
|
5001
|
-
participantPicture?: string;
|
|
5002
|
-
status: 'active' | 'archived';
|
|
5003
|
-
};
|
|
5004
|
-
account: {
|
|
5005
|
-
/**
|
|
5006
|
-
* Social account ID
|
|
5007
|
-
*/
|
|
5008
|
-
id: string;
|
|
5009
|
-
platform: string;
|
|
5010
|
-
username: string;
|
|
5011
|
-
displayName?: string;
|
|
5012
|
-
};
|
|
4983
|
+
conversation: InboxWebhookConversation;
|
|
4984
|
+
account: InboxWebhookAccount;
|
|
5013
4985
|
timestamp: string;
|
|
5014
4986
|
};
|
|
5015
4987
|
type event15 = 'reaction.received';
|
|
@@ -17374,9 +17346,65 @@ type CreateCtwaAdData = {
|
|
|
17374
17346
|
*/
|
|
17375
17347
|
endDate?: string;
|
|
17376
17348
|
/**
|
|
17377
|
-
* ISO 3166-1 alpha-2 country codes. Defaults to `["US"]
|
|
17349
|
+
* ISO 3166-1 alpha-2 country codes. Defaults to `["US"]` only
|
|
17350
|
+
* when no other geo (`cities`, `regions`, `zips`, `metros`,
|
|
17351
|
+
* `customLocations`) is supplied.
|
|
17352
|
+
*
|
|
17378
17353
|
*/
|
|
17379
17354
|
countries?: Array<(string)>;
|
|
17355
|
+
/**
|
|
17356
|
+
* City-level geo targeting for local CTWA campaigns (e.g.
|
|
17357
|
+
* 25km radius around Milan). Each entry maps to Meta's
|
|
17358
|
+
* TargetingGeoLocationCity. `key` is Meta's city ID
|
|
17359
|
+
* (lookupable via GET /v1/ads/targeting/search). `radius`
|
|
17360
|
+
* and `distance_unit` are coupled: set both or neither.
|
|
17361
|
+
*
|
|
17362
|
+
*/
|
|
17363
|
+
cities?: Array<{
|
|
17364
|
+
key: string;
|
|
17365
|
+
radius?: number;
|
|
17366
|
+
distance_unit?: 'mile' | 'kilometer';
|
|
17367
|
+
}>;
|
|
17368
|
+
/**
|
|
17369
|
+
* Region / state-level geo targeting. `key` is Meta's region
|
|
17370
|
+
* ID (lookupable via GET /v1/ads/targeting/search?type=region).
|
|
17371
|
+
*
|
|
17372
|
+
*/
|
|
17373
|
+
regions?: Array<{
|
|
17374
|
+
key: string;
|
|
17375
|
+
}>;
|
|
17376
|
+
/**
|
|
17377
|
+
* ZIP / postal-code geo targeting. `key` is the platform's
|
|
17378
|
+
* postal id resolved via /v1/ads/targeting/search.
|
|
17379
|
+
*
|
|
17380
|
+
*/
|
|
17381
|
+
zips?: Array<{
|
|
17382
|
+
key: string;
|
|
17383
|
+
name?: string;
|
|
17384
|
+
}>;
|
|
17385
|
+
/**
|
|
17386
|
+
* DMA / metro-area geo targeting. `key` is Meta's metro id
|
|
17387
|
+
* (e.g. `DMA:807`).
|
|
17388
|
+
*
|
|
17389
|
+
*/
|
|
17390
|
+
metros?: Array<{
|
|
17391
|
+
key: string;
|
|
17392
|
+
name?: string;
|
|
17393
|
+
}>;
|
|
17394
|
+
/**
|
|
17395
|
+
* Point-radius geo (Meta `geo_locations.custom_locations`).
|
|
17396
|
+
* Use for targeting a radius around a specific lat/long when
|
|
17397
|
+
* no Meta city/region key fits. `distanceUnit` is required.
|
|
17398
|
+
*
|
|
17399
|
+
*/
|
|
17400
|
+
customLocations?: Array<{
|
|
17401
|
+
latitude: number;
|
|
17402
|
+
longitude: number;
|
|
17403
|
+
radius: number;
|
|
17404
|
+
distanceUnit: 'mile' | 'kilometer';
|
|
17405
|
+
name?: string;
|
|
17406
|
+
address?: string;
|
|
17407
|
+
}>;
|
|
17380
17408
|
ageMin?: number;
|
|
17381
17409
|
ageMax?: number;
|
|
17382
17410
|
interests?: Array<{
|
package/dist/index.js
CHANGED
|
@@ -36,7 +36,7 @@ module.exports = __toCommonJS(index_exports);
|
|
|
36
36
|
// package.json
|
|
37
37
|
var package_default = {
|
|
38
38
|
name: "@zernio/node",
|
|
39
|
-
version: "0.2.
|
|
39
|
+
version: "0.2.186",
|
|
40
40
|
description: "The official Node.js library for the Zernio API",
|
|
41
41
|
main: "dist/index.js",
|
|
42
42
|
module: "dist/index.mjs",
|
package/dist/index.mjs
CHANGED
|
@@ -5,7 +5,7 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
|
|
|
5
5
|
// package.json
|
|
6
6
|
var package_default = {
|
|
7
7
|
name: "@zernio/node",
|
|
8
|
-
version: "0.2.
|
|
8
|
+
version: "0.2.186",
|
|
9
9
|
description: "The official Node.js library for the Zernio API",
|
|
10
10
|
main: "dist/index.js",
|
|
11
11
|
module: "dist/index.mjs",
|
package/package.json
CHANGED
|
@@ -1574,6 +1574,16 @@ export type InboxWebhookConversation = {
|
|
|
1574
1574
|
participantUsername?: string;
|
|
1575
1575
|
participantPicture?: string;
|
|
1576
1576
|
status: 'active' | 'archived';
|
|
1577
|
+
/**
|
|
1578
|
+
* Zernio CRM Contact ID for the participant, when one exists. Resolved by
|
|
1579
|
+
* joining `participantId` to the ContactChannel collection. Best-effort:
|
|
1580
|
+
* omitted when no channel matches or `participantId` is absent. Lets
|
|
1581
|
+
* integrators join any inbox webhook back to the CRM Contact without
|
|
1582
|
+
* needing to look at the sender — which matters for outgoing and
|
|
1583
|
+
* delivery-status events whose sender is the business.
|
|
1584
|
+
*
|
|
1585
|
+
*/
|
|
1586
|
+
contactId?: string;
|
|
1577
1587
|
};
|
|
1578
1588
|
|
|
1579
1589
|
export type status3 = 'active' | 'archived';
|
|
@@ -3803,6 +3813,16 @@ export type WebhookPayloadConversationStarted = {
|
|
|
3803
3813
|
participantUsername?: string;
|
|
3804
3814
|
participantPicture?: string;
|
|
3805
3815
|
status: 'active' | 'archived';
|
|
3816
|
+
/**
|
|
3817
|
+
* Zernio CRM Contact ID for the participant, when one exists. Resolved by
|
|
3818
|
+
* joining `participantId` to the ContactChannel collection (same join
|
|
3819
|
+
* used by message.*, reaction.received, and call.* webhooks). Best-effort:
|
|
3820
|
+
* omitted when no channel matches or `participantId` is absent. Lets
|
|
3821
|
+
* integrators seed the CRM straight from `conversation.started` without
|
|
3822
|
+
* waiting for the first `message.*` event.
|
|
3823
|
+
*
|
|
3824
|
+
*/
|
|
3825
|
+
contactId?: string;
|
|
3806
3826
|
};
|
|
3807
3827
|
account: InboxWebhookAccount;
|
|
3808
3828
|
/**
|
|
@@ -3996,24 +4016,8 @@ export type WebhookPayloadMessage = {
|
|
|
3996
4016
|
sentAt: string;
|
|
3997
4017
|
isRead: boolean;
|
|
3998
4018
|
};
|
|
3999
|
-
conversation:
|
|
4000
|
-
|
|
4001
|
-
platformConversationId: string;
|
|
4002
|
-
participantId?: string;
|
|
4003
|
-
participantName?: string;
|
|
4004
|
-
participantUsername?: string;
|
|
4005
|
-
participantPicture?: string;
|
|
4006
|
-
status: 'active' | 'archived';
|
|
4007
|
-
};
|
|
4008
|
-
account: {
|
|
4009
|
-
/**
|
|
4010
|
-
* Social account ID
|
|
4011
|
-
*/
|
|
4012
|
-
id: string;
|
|
4013
|
-
platform: string;
|
|
4014
|
-
username: string;
|
|
4015
|
-
displayName?: string;
|
|
4016
|
-
};
|
|
4019
|
+
conversation: InboxWebhookConversation;
|
|
4020
|
+
account: InboxWebhookAccount;
|
|
4017
4021
|
/**
|
|
4018
4022
|
* Interactive message metadata (present when message is a quick reply tap, postback button tap, or inline keyboard callback)
|
|
4019
4023
|
*/
|
|
@@ -4334,24 +4338,8 @@ export type WebhookPayloadMessageSent = {
|
|
|
4334
4338
|
sentAt: string;
|
|
4335
4339
|
isRead: boolean;
|
|
4336
4340
|
};
|
|
4337
|
-
conversation:
|
|
4338
|
-
|
|
4339
|
-
platformConversationId: string;
|
|
4340
|
-
participantId?: string;
|
|
4341
|
-
participantName?: string;
|
|
4342
|
-
participantUsername?: string;
|
|
4343
|
-
participantPicture?: string;
|
|
4344
|
-
status: 'active' | 'archived';
|
|
4345
|
-
};
|
|
4346
|
-
account: {
|
|
4347
|
-
/**
|
|
4348
|
-
* Social account ID
|
|
4349
|
-
*/
|
|
4350
|
-
id: string;
|
|
4351
|
-
platform: string;
|
|
4352
|
-
username: string;
|
|
4353
|
-
displayName?: string;
|
|
4354
|
-
};
|
|
4341
|
+
conversation: InboxWebhookConversation;
|
|
4342
|
+
account: InboxWebhookAccount;
|
|
4355
4343
|
timestamp: string;
|
|
4356
4344
|
};
|
|
4357
4345
|
|
|
@@ -4505,24 +4493,8 @@ export type WebhookPayloadReaction = {
|
|
|
4505
4493
|
};
|
|
4506
4494
|
reactedAt: string;
|
|
4507
4495
|
};
|
|
4508
|
-
conversation:
|
|
4509
|
-
|
|
4510
|
-
platformConversationId: string;
|
|
4511
|
-
participantId?: string;
|
|
4512
|
-
participantName?: string;
|
|
4513
|
-
participantUsername?: string;
|
|
4514
|
-
participantPicture?: string;
|
|
4515
|
-
status: 'active' | 'archived';
|
|
4516
|
-
};
|
|
4517
|
-
account: {
|
|
4518
|
-
/**
|
|
4519
|
-
* Social account ID
|
|
4520
|
-
*/
|
|
4521
|
-
id: string;
|
|
4522
|
-
platform: string;
|
|
4523
|
-
username: string;
|
|
4524
|
-
displayName?: string;
|
|
4525
|
-
};
|
|
4496
|
+
conversation: InboxWebhookConversation;
|
|
4497
|
+
account: InboxWebhookAccount;
|
|
4526
4498
|
timestamp: string;
|
|
4527
4499
|
};
|
|
4528
4500
|
|
|
@@ -17828,9 +17800,65 @@ export type CreateCtwaAdData = {
|
|
|
17828
17800
|
*/
|
|
17829
17801
|
endDate?: string;
|
|
17830
17802
|
/**
|
|
17831
|
-
* ISO 3166-1 alpha-2 country codes. Defaults to `["US"]
|
|
17803
|
+
* ISO 3166-1 alpha-2 country codes. Defaults to `["US"]` only
|
|
17804
|
+
* when no other geo (`cities`, `regions`, `zips`, `metros`,
|
|
17805
|
+
* `customLocations`) is supplied.
|
|
17806
|
+
*
|
|
17832
17807
|
*/
|
|
17833
17808
|
countries?: Array<(string)>;
|
|
17809
|
+
/**
|
|
17810
|
+
* City-level geo targeting for local CTWA campaigns (e.g.
|
|
17811
|
+
* 25km radius around Milan). Each entry maps to Meta's
|
|
17812
|
+
* TargetingGeoLocationCity. `key` is Meta's city ID
|
|
17813
|
+
* (lookupable via GET /v1/ads/targeting/search). `radius`
|
|
17814
|
+
* and `distance_unit` are coupled: set both or neither.
|
|
17815
|
+
*
|
|
17816
|
+
*/
|
|
17817
|
+
cities?: Array<{
|
|
17818
|
+
key: string;
|
|
17819
|
+
radius?: number;
|
|
17820
|
+
distance_unit?: 'mile' | 'kilometer';
|
|
17821
|
+
}>;
|
|
17822
|
+
/**
|
|
17823
|
+
* Region / state-level geo targeting. `key` is Meta's region
|
|
17824
|
+
* ID (lookupable via GET /v1/ads/targeting/search?type=region).
|
|
17825
|
+
*
|
|
17826
|
+
*/
|
|
17827
|
+
regions?: Array<{
|
|
17828
|
+
key: string;
|
|
17829
|
+
}>;
|
|
17830
|
+
/**
|
|
17831
|
+
* ZIP / postal-code geo targeting. `key` is the platform's
|
|
17832
|
+
* postal id resolved via /v1/ads/targeting/search.
|
|
17833
|
+
*
|
|
17834
|
+
*/
|
|
17835
|
+
zips?: Array<{
|
|
17836
|
+
key: string;
|
|
17837
|
+
name?: string;
|
|
17838
|
+
}>;
|
|
17839
|
+
/**
|
|
17840
|
+
* DMA / metro-area geo targeting. `key` is Meta's metro id
|
|
17841
|
+
* (e.g. `DMA:807`).
|
|
17842
|
+
*
|
|
17843
|
+
*/
|
|
17844
|
+
metros?: Array<{
|
|
17845
|
+
key: string;
|
|
17846
|
+
name?: string;
|
|
17847
|
+
}>;
|
|
17848
|
+
/**
|
|
17849
|
+
* Point-radius geo (Meta `geo_locations.custom_locations`).
|
|
17850
|
+
* Use for targeting a radius around a specific lat/long when
|
|
17851
|
+
* no Meta city/region key fits. `distanceUnit` is required.
|
|
17852
|
+
*
|
|
17853
|
+
*/
|
|
17854
|
+
customLocations?: Array<{
|
|
17855
|
+
latitude: number;
|
|
17856
|
+
longitude: number;
|
|
17857
|
+
radius: number;
|
|
17858
|
+
distanceUnit: 'mile' | 'kilometer';
|
|
17859
|
+
name?: string;
|
|
17860
|
+
address?: string;
|
|
17861
|
+
}>;
|
|
17834
17862
|
ageMin?: number;
|
|
17835
17863
|
ageMax?: number;
|
|
17836
17864
|
interests?: Array<{
|