Skip to content

Commit d71e608

Browse files
author
APIs and Common Services team
committed
Automated SDK update
This updates the SDK from internal repo commit segmentio/public-api@81c918c7.
1 parent dad7748 commit d71e608

12 files changed

+104
-69
lines changed

docs/ActivationsApi.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ All URIs are relative to *https://api.segmentapis.com*
2222
2323
Add Activation to Audience
2424

25-
Creates Activation. • This endpoint is in **Alpha** testing. Please submit any feedback by sending an email to friends@segment.com. • In order to successfully call this endpoint, the specified Workspace needs to have the Audience feature enabled. Please reach out to your customer success manager for more information. • When called, this endpoint may generate the `Activation Created` event in the [audit trail](/tag/Audit-Trail). The rate limit for this endpoint is 50 requests per minute, which is lower than the default due to access pattern restrictions. Once reached, this endpoint will respond with the 429 HTTP status code with headers indicating the limit parameters. See [Rate Limiting](/#tag/Rate-Limits) for more information.
25+
Defines how audience data is sent to a Destination. This step enables the data sync. You must establish a connection (Add Destination to Audience) for this audience before an Activation can be created. • This endpoint is in **Alpha** testing. Please submit any feedback by sending an email to friends@segment.com. • In order to successfully call this endpoint, the specified Workspace needs to have the Audience feature enabled. Please reach out to your customer success manager for more information. • When called, this endpoint may generate the `Activation Created` event in the [audit trail](/tag/Audit-Trail). The rate limit for this endpoint is 50 requests per minute, which is lower than the default due to access pattern restrictions. Once reached, this endpoint will respond with the 429 HTTP status code with headers indicating the limit parameters. See [Rate Limiting](/#tag/Rate-Limits) for more information.
2626

2727
### Example
2828

@@ -101,7 +101,7 @@ public class Example {
101101
102102
Add Destination to Audience
103103

104-
Adds a Destination to an Audience. • This endpoint is in **Alpha** testing. Please submit any feedback by sending an email to friends@segment.com. • In order to successfully call this endpoint, the specified Workspace needs to have the Audience feature enabled. Please reach out to your customer success manager for more information. • When called, this endpoint may generate the `Destination Added into Audience` event in the [audit trail](/tag/Audit-Trail). The rate limit for this endpoint is 50 requests per minute, which is lower than the default due to access pattern restrictions. Once reached, this endpoint will respond with the 429 HTTP status code with headers indicating the limit parameters. See [Rate Limiting](/#tag/Rate-Limits) for more information.
104+
Establishes a connection between an audience and a Destination. To start syncing data, you must create an Activation for the connection created here. Note that the Destination must be added to Engage through the Engage Settings page within the App before creating the connection through the API. • This endpoint is in **Alpha** testing. Please submit any feedback by sending an email to friends@segment.com. • In order to successfully call this endpoint, the specified Workspace needs to have the Audience feature enabled. Please reach out to your customer success manager for more information. • When called, this endpoint may generate the `Destination Added into Audience` event in the [audit trail](/tag/Audit-Trail). The rate limit for this endpoint is 50 requests per minute, which is lower than the default due to access pattern restrictions. Once reached, this endpoint will respond with the 429 HTTP status code with headers indicating the limit parameters. See [Rate Limiting](/#tag/Rate-Limits) for more information.
105105

106106
### Example
107107

src/main/java/com/segment/publicapi/api/ActivationsApi.java

Lines changed: 60 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -205,11 +205,13 @@ private okhttp3.Call addActivationToAudienceValidateBeforeCall(
205205
}
206206

207207
/**
208-
* Add Activation to Audience Creates Activation. • This endpoint is in **Alpha** testing.
209-
* Please submit any feedback by sending an email to friends@segment.com. • In order to
210-
* successfully call this endpoint, the specified Workspace needs to have the Audience feature
211-
* enabled. Please reach out to your customer success manager for more information. • When
212-
* called, this endpoint may generate the `Activation Created` event in the [audit
208+
* Add Activation to Audience Defines how audience data is sent to a Destination. This step
209+
* enables the data sync. You must establish a connection (Add Destination to Audience) for this
210+
* audience before an Activation can be created. • This endpoint is in **Alpha** testing. Please
211+
* submit any feedback by sending an email to friends@segment.com. • In order to successfully
212+
* call this endpoint, the specified Workspace needs to have the Audience feature enabled.
213+
* Please reach out to your customer success manager for more information. • When called, this
214+
* endpoint may generate the `Activation Created` event in the [audit
213215
* trail](/tag/Audit-Trail). The rate limit for this endpoint is 50 requests per minute, which
214216
* is lower than the default due to access pattern restrictions. Once reached, this endpoint
215217
* will respond with the 429 HTTP status code with headers indicating the limit parameters. See
@@ -244,11 +246,13 @@ public AddActivationToAudience200Response addActivationToAudience(
244246
}
245247

246248
/**
247-
* Add Activation to Audience Creates Activation. • This endpoint is in **Alpha** testing.
248-
* Please submit any feedback by sending an email to friends@segment.com. • In order to
249-
* successfully call this endpoint, the specified Workspace needs to have the Audience feature
250-
* enabled. Please reach out to your customer success manager for more information. • When
251-
* called, this endpoint may generate the `Activation Created` event in the [audit
249+
* Add Activation to Audience Defines how audience data is sent to a Destination. This step
250+
* enables the data sync. You must establish a connection (Add Destination to Audience) for this
251+
* audience before an Activation can be created. • This endpoint is in **Alpha** testing. Please
252+
* submit any feedback by sending an email to friends@segment.com. • In order to successfully
253+
* call this endpoint, the specified Workspace needs to have the Audience feature enabled.
254+
* Please reach out to your customer success manager for more information. • When called, this
255+
* endpoint may generate the `Activation Created` event in the [audit
252256
* trail](/tag/Audit-Trail). The rate limit for this endpoint is 50 requests per minute, which
253257
* is lower than the default due to access pattern restrictions. Once reached, this endpoint
254258
* will respond with the 429 HTTP status code with headers indicating the limit parameters. See
@@ -284,15 +288,18 @@ public ApiResponse<AddActivationToAudience200Response> addActivationToAudienceWi
284288
}
285289

286290
/**
287-
* Add Activation to Audience (asynchronously) Creates Activation. • This endpoint is in
288-
* **Alpha** testing. Please submit any feedback by sending an email to friends@segment.com. •
289-
* In order to successfully call this endpoint, the specified Workspace needs to have the
290-
* Audience feature enabled. Please reach out to your customer success manager for more
291-
* information. • When called, this endpoint may generate the &#x60;Activation Created&#x60;
292-
* event in the [audit trail](/tag/Audit-Trail). The rate limit for this endpoint is 50 requests
293-
* per minute, which is lower than the default due to access pattern restrictions. Once reached,
294-
* this endpoint will respond with the 429 HTTP status code with headers indicating the limit
295-
* parameters. See [Rate Limiting](/#tag/Rate-Limits) for more information.
291+
* Add Activation to Audience (asynchronously) Defines how audience data is sent to a
292+
* Destination. This step enables the data sync. You must establish a connection (Add
293+
* Destination to Audience) for this audience before an Activation can be created. • This
294+
* endpoint is in **Alpha** testing. Please submit any feedback by sending an email to
295+
* friends@segment.com. • In order to successfully call this endpoint, the specified Workspace
296+
* needs to have the Audience feature enabled. Please reach out to your customer success manager
297+
* for more information. • When called, this endpoint may generate the &#x60;Activation
298+
* Created&#x60; event in the [audit trail](/tag/Audit-Trail). The rate limit for this endpoint
299+
* is 50 requests per minute, which is lower than the default due to access pattern
300+
* restrictions. Once reached, this endpoint will respond with the 429 HTTP status code with
301+
* headers indicating the limit parameters. See [Rate Limiting](/#tag/Rate-Limits) for more
302+
* information.
296303
*
297304
* @param spaceId (required)
298305
* @param audienceId (required)
@@ -449,16 +456,18 @@ private okhttp3.Call addDestinationToAudienceValidateBeforeCall(
449456
}
450457

451458
/**
452-
* Add Destination to Audience Adds a Destination to an Audience. • This endpoint is in
453-
* **Alpha** testing. Please submit any feedback by sending an email to friends@segment.com. •
454-
* In order to successfully call this endpoint, the specified Workspace needs to have the
455-
* Audience feature enabled. Please reach out to your customer success manager for more
456-
* information. • When called, this endpoint may generate the &#x60;Destination Added into
457-
* Audience&#x60; event in the [audit trail](/tag/Audit-Trail). The rate limit for this endpoint
458-
* is 50 requests per minute, which is lower than the default due to access pattern
459-
* restrictions. Once reached, this endpoint will respond with the 429 HTTP status code with
460-
* headers indicating the limit parameters. See [Rate Limiting](/#tag/Rate-Limits) for more
461-
* information.
459+
* Add Destination to Audience Establishes a connection between an audience and a Destination.
460+
* To start syncing data, you must create an Activation for the connection created here. Note
461+
* that the Destination must be added to Engage through the Engage Settings page within the App
462+
* before creating the connection through the API. • This endpoint is in **Alpha** testing.
463+
* Please submit any feedback by sending an email to friends@segment.com. • In order to
464+
* successfully call this endpoint, the specified Workspace needs to have the Audience feature
465+
* enabled. Please reach out to your customer success manager for more information. • When
466+
* called, this endpoint may generate the &#x60;Destination Added into Audience&#x60; event in
467+
* the [audit trail](/tag/Audit-Trail). The rate limit for this endpoint is 50 requests per
468+
* minute, which is lower than the default due to access pattern restrictions. Once reached,
469+
* this endpoint will respond with the 429 HTTP status code with headers indicating the limit
470+
* parameters. See [Rate Limiting](/#tag/Rate-Limits) for more information.
462471
*
463472
* @param spaceId (required)
464473
* @param audienceId (required)
@@ -487,16 +496,18 @@ public AddDestinationToAudience200Response addDestinationToAudience(
487496
}
488497

489498
/**
490-
* Add Destination to Audience Adds a Destination to an Audience. • This endpoint is in
491-
* **Alpha** testing. Please submit any feedback by sending an email to friends@segment.com. •
492-
* In order to successfully call this endpoint, the specified Workspace needs to have the
493-
* Audience feature enabled. Please reach out to your customer success manager for more
494-
* information. • When called, this endpoint may generate the &#x60;Destination Added into
495-
* Audience&#x60; event in the [audit trail](/tag/Audit-Trail). The rate limit for this endpoint
496-
* is 50 requests per minute, which is lower than the default due to access pattern
497-
* restrictions. Once reached, this endpoint will respond with the 429 HTTP status code with
498-
* headers indicating the limit parameters. See [Rate Limiting](/#tag/Rate-Limits) for more
499-
* information.
499+
* Add Destination to Audience Establishes a connection between an audience and a Destination.
500+
* To start syncing data, you must create an Activation for the connection created here. Note
501+
* that the Destination must be added to Engage through the Engage Settings page within the App
502+
* before creating the connection through the API. • This endpoint is in **Alpha** testing.
503+
* Please submit any feedback by sending an email to friends@segment.com. • In order to
504+
* successfully call this endpoint, the specified Workspace needs to have the Audience feature
505+
* enabled. Please reach out to your customer success manager for more information. • When
506+
* called, this endpoint may generate the &#x60;Destination Added into Audience&#x60; event in
507+
* the [audit trail](/tag/Audit-Trail). The rate limit for this endpoint is 50 requests per
508+
* minute, which is lower than the default due to access pattern restrictions. Once reached,
509+
* this endpoint will respond with the 429 HTTP status code with headers indicating the limit
510+
* parameters. See [Rate Limiting](/#tag/Rate-Limits) for more information.
500511
*
501512
* @param spaceId (required)
502513
* @param audienceId (required)
@@ -526,13 +537,16 @@ public ApiResponse<AddDestinationToAudience200Response> addDestinationToAudience
526537
}
527538

528539
/**
529-
* Add Destination to Audience (asynchronously) Adds a Destination to an Audience. • This
530-
* endpoint is in **Alpha** testing. Please submit any feedback by sending an email to
531-
* friends@segment.com. • In order to successfully call this endpoint, the specified Workspace
532-
* needs to have the Audience feature enabled. Please reach out to your customer success manager
533-
* for more information. • When called, this endpoint may generate the &#x60;Destination Added
534-
* into Audience&#x60; event in the [audit trail](/tag/Audit-Trail). The rate limit for this
535-
* endpoint is 50 requests per minute, which is lower than the default due to access pattern
540+
* Add Destination to Audience (asynchronously) Establishes a connection between an audience and
541+
* a Destination. To start syncing data, you must create an Activation for the connection
542+
* created here. Note that the Destination must be added to Engage through the Engage Settings
543+
* page within the App before creating the connection through the API. • This endpoint is in
544+
* **Alpha** testing. Please submit any feedback by sending an email to friends@segment.com. •
545+
* In order to successfully call this endpoint, the specified Workspace needs to have the
546+
* Audience feature enabled. Please reach out to your customer success manager for more
547+
* information. • When called, this endpoint may generate the &#x60;Destination Added into
548+
* Audience&#x60; event in the [audit trail](/tag/Audit-Trail). The rate limit for this endpoint
549+
* is 50 requests per minute, which is lower than the default due to access pattern
536550
* restrictions. Once reached, this endpoint will respond with the 429 HTTP status code with
537551
* headers indicating the limit parameters. See [Rate Limiting](/#tag/Rate-Limits) for more
538552
* information.

src/main/java/com/segment/publicapi/models/ActivationOutput.java

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,12 @@ public ActivationOutput activationType(String activationType) {
213213
}
214214

215215
/**
216-
* Type of activation trigger.
216+
* Determines when an event is sent to the Destination. Possible values: Audience Entered: Sends
217+
* an event when a profile or entity enters the audience. Audience Exited: Sends an event when a
218+
* profile or entity exits the audience. Audience Membership Changed: Sends an event for both
219+
* entries and exits. This does not apply to entities. Note that events are sent for the
220+
* profile, unless the audience is a Linked Audience. In that case, events are sent for the
221+
* target entity defined for that audience.
217222
*
218223
* @return activationType
219224
*/
@@ -294,7 +299,7 @@ public ActivationOutput performResync(Boolean performResync) {
294299
}
295300

296301
/**
297-
* Whether to perform a resync after creation of the activation.
302+
* Indicates if a full resync is currently pending or in progress.
298303
*
299304
* @return performResync
300305
*/

src/main/java/com/segment/publicapi/models/AddActivationToAudienceAlphaInput.java

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -68,8 +68,7 @@ public AddActivationToAudienceAlphaInput enabled(Boolean enabled) {
6868
}
6969

7070
/**
71-
* Whether the event emitter should be created in an enabled state. Will trigger an audience run
72-
* if enabled.
71+
* Determines whether an activation is enabled.
7372
*
7473
* @return enabled
7574
*/
@@ -89,7 +88,8 @@ public AddActivationToAudienceAlphaInput performResync(Boolean performResync) {
8988
}
9089

9190
/**
92-
* Whether to perform a resync after creation of the activation.
91+
* Determines whether to perform a full resync upon creation. If true, the entire audience is
92+
* resent to the Destination from scratch. If false, only future changes will be synced.
9393
*
9494
* @return performResync
9595
*/
@@ -109,7 +109,12 @@ public AddActivationToAudienceAlphaInput activationType(String activationType) {
109109
}
110110

111111
/**
112-
* Type of activation trigger.
112+
* Determines when an event is sent to the Destination. Possible values: Audience Entered: Sends
113+
* an event when a profile or entity enters the audience. Audience Exited: Sends an event when a
114+
* profile or entity exits the audience. Audience Membership Changed: Sends an event for both
115+
* entries and exits. This does not apply to entities. Note that events are sent for the
116+
* profile, unless the audience is a Linked Audience. In that case, events are sent for the
117+
* target entity defined for that audience.
113118
*
114119
* @return activationType
115120
*/

src/main/java/com/segment/publicapi/models/AddDestinationToAudienceAlphaInput.java

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -88,8 +88,9 @@ public AddDestinationToAudienceAlphaInput addIdSyncConfigurationItem(
8888
}
8989

9090
/**
91-
* Identifier sync configuration - array of external IDs to sync with their strategies. Maximum
92-
* 5 items allowed.
91+
* Identifier sync configuration. Defines which external ids to sync and their selection
92+
* strategies. Maximum 5 items allowed. If omitted, the default will be last email and last
93+
* user_id, or all email and all user_id depending on the Destination.
9394
*
9495
* @return idSyncConfiguration
9596
*/
@@ -110,7 +111,8 @@ public AddDestinationToAudienceAlphaInput connectionSettings(Object connectionSe
110111

111112
/**
112113
* The settings that a Destination requires to create audiences on a third-party platform. These
113-
* settings are Destination-specific and thus are best defined as unknown.
114+
* settings are Destination-specific. Use the List Supported Destinations from Audience endpoint
115+
* to find the required connection settings.
114116
*
115117
* @return connectionSettings
116118
*/

src/main/java/com/segment/publicapi/models/AddDestinationToAudienceAlphaOutput.java

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,9 @@ public AddDestinationToAudienceAlphaOutput addIdSyncConfigurationItem(
8888
}
8989

9090
/**
91-
* The id sync configuration for the Destination - array of external ids with their strategies.
91+
* Identifier sync configuration. Defines which external ids to sync and their selection
92+
* strategies. Maximum 5 items allowed. If omitted, the default will be last email and last
93+
* user_id, or all email and all user_id depending on the Destination.
9294
*
9395
* @return idSyncConfiguration
9496
*/
@@ -109,7 +111,8 @@ public AddDestinationToAudienceAlphaOutput connectionSettings(Object connectionS
109111

110112
/**
111113
* The settings that a Destination requires to create audiences on a third-party platform. These
112-
* settings are Destination-specific and thus are best defined as unknown.
114+
* settings are Destination-specific. Use the List Supported Destinations from Audience endpoint
115+
* to find the required connection settings.
113116
*
114117
* @return connectionSettings
115118
*/

0 commit comments

Comments
 (0)