Skip to content

Commit 51899d6

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 933e5ea commit 51899d6

12 files changed

+24
-24
lines changed

docs/ActivationsApi.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ Method | HTTP request | Description
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

@@ -102,7 +102,7 @@ Name | Type | Description | Notes
102102
103103
Add Destination to Audience
104104

105-
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.
105+
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.
106106

107107
### Example
108108

segment_public_api/api/activations_api.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ def __init__(self, api_client=None) -> None:
6262
def add_activation_to_audience(self, space_id : constr(strict=True), audience_id : constr(strict=True), connection_id : constr(strict=True), add_activation_to_audience_alpha_input : AddActivationToAudienceAlphaInput, **kwargs) -> AddActivationToAudience200Response: # noqa: E501
6363
"""Add Activation to Audience # noqa: E501
6464
65-
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. # noqa: E501
65+
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. # noqa: E501
6666
This method makes a synchronous HTTP request by default. To make an
6767
asynchronous HTTP request, please pass async_req=True
6868
@@ -98,7 +98,7 @@ def add_activation_to_audience(self, space_id : constr(strict=True), audience_id
9898
def add_activation_to_audience_with_http_info(self, space_id : constr(strict=True), audience_id : constr(strict=True), connection_id : constr(strict=True), add_activation_to_audience_alpha_input : AddActivationToAudienceAlphaInput, **kwargs) -> ApiResponse: # noqa: E501
9999
"""Add Activation to Audience # noqa: E501
100100
101-
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. # noqa: E501
101+
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. # noqa: E501
102102
This method makes a synchronous HTTP request by default. To make an
103103
asynchronous HTTP request, please pass async_req=True
104104
@@ -236,7 +236,7 @@ def add_activation_to_audience_with_http_info(self, space_id : constr(strict=Tru
236236
def add_destination_to_audience(self, space_id : constr(strict=True), audience_id : constr(strict=True), add_destination_to_audience_alpha_input : AddDestinationToAudienceAlphaInput, **kwargs) -> AddDestinationToAudience200Response: # noqa: E501
237237
"""Add Destination to Audience # noqa: E501
238238
239-
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. # noqa: E501
239+
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. # noqa: E501
240240
This method makes a synchronous HTTP request by default. To make an
241241
asynchronous HTTP request, please pass async_req=True
242242
@@ -270,7 +270,7 @@ def add_destination_to_audience(self, space_id : constr(strict=True), audience_i
270270
def add_destination_to_audience_with_http_info(self, space_id : constr(strict=True), audience_id : constr(strict=True), add_destination_to_audience_alpha_input : AddDestinationToAudienceAlphaInput, **kwargs) -> ApiResponse: # noqa: E501
271271
"""Add Destination to Audience # noqa: E501
272272
273-
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. # noqa: E501
273+
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. # noqa: E501
274274
This method makes a synchronous HTTP request by default. To make an
275275
asynchronous HTTP request, please pass async_req=True
276276

segment_public_api/models/activation_output.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,11 +34,11 @@ class ActivationOutput(BaseModel):
3434
space_id: StrictStr = Field(..., alias="spaceId", description="The space id.")
3535
audience_id: StrictStr = Field(..., alias="audienceId", description="The audience id.")
3636
connection_id: StrictStr = Field(..., alias="connectionId", description="The connection id.")
37-
activation_type: StrictStr = Field(..., alias="activationType", description="Type of activation trigger.")
37+
activation_type: StrictStr = Field(..., alias="activationType", description="Determines when an event is sent to the Destination. Possible values: Audience Entered: Sends an event when a profile or entity enters the audience. Audience Exited: Sends an event when a profile or entity exits the audience. Audience Membership Changed: Sends an event for both entries and exits. This does not apply to entities. Note that events are sent for the profile, unless the audience is a Linked Audience. In that case, events are sent for the target entity defined for that audience.")
3838
activation_name: StrictStr = Field(..., alias="activationName", description="Name of the activation.")
3939
personalization: PersonalizationInput = Field(...)
4040
destination_mapping: Optional[DestinationSubscriptionConfiguration] = Field(None, alias="destinationMapping")
41-
perform_resync: Optional[StrictBool] = Field(None, alias="performResync", description="Whether to perform a resync after creation of the activation.")
41+
perform_resync: Optional[StrictBool] = Field(None, alias="performResync", description="Indicates if a full resync is currently pending or in progress.")
4242
__properties = ["id", "enabled", "workspaceId", "spaceId", "audienceId", "connectionId", "activationType", "activationName", "personalization", "destinationMapping", "performResync"]
4343

4444
class Config:

segment_public_api/models/add_activation_to_audience_alpha_input.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,9 @@ class AddActivationToAudienceAlphaInput(BaseModel):
2828
"""
2929
Input to create an activation. # noqa: E501
3030
"""
31-
enabled: Optional[StrictBool] = Field(None, description="Whether the event emitter should be created in an enabled state. Will trigger an audience run if enabled.")
32-
perform_resync: StrictBool = Field(..., alias="performResync", description="Whether to perform a resync after creation of the activation.")
33-
activation_type: StrictStr = Field(..., alias="activationType", description="Type of activation trigger.")
31+
enabled: Optional[StrictBool] = Field(None, description="Determines whether an activation is enabled.")
32+
perform_resync: StrictBool = Field(..., alias="performResync", description="Determines whether to perform a full resync upon creation. If true, the entire audience is resent to the Destination from scratch. If false, only future changes will be synced.")
33+
activation_type: StrictStr = Field(..., alias="activationType", description="Determines when an event is sent to the Destination. Possible values: Audience Entered: Sends an event when a profile or entity enters the audience. Audience Exited: Sends an event when a profile or entity exits the audience. Audience Membership Changed: Sends an event for both entries and exits. This does not apply to entities. Note that events are sent for the profile, unless the audience is a Linked Audience. In that case, events are sent for the target entity defined for that audience.")
3434
activation_name: StrictStr = Field(..., alias="activationName", description="Name of the activation.")
3535
personalization: PersonalizationInput = Field(...)
3636
destination_mapping: Optional[DestinationSubscriptionConfiguration] = Field(None, alias="destinationMapping")

segment_public_api/models/add_destination_to_audience_alpha_input.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@ class AddDestinationToAudienceAlphaInput(BaseModel):
2929
Input to Add a Destination into an Audience. # noqa: E501
3030
"""
3131
destination: DestinationInput = Field(...)
32-
id_sync_configuration: Optional[conlist(IDSyncConfigurationInput)] = Field(None, alias="idSyncConfiguration", description="Identifier sync configuration - array of external IDs to sync with their strategies. Maximum 5 items allowed.")
33-
connection_settings: Optional[Any] = Field(None, alias="connectionSettings", description="The settings that a Destination requires to create audiences on a third-party platform. These settings are Destination-specific and thus are best defined as unknown.")
32+
id_sync_configuration: Optional[conlist(IDSyncConfigurationInput)] = Field(None, alias="idSyncConfiguration", description="Identifier sync configuration. Defines which external ids to sync and their selection strategies. Maximum 5 items allowed. If omitted, the default will be last email and last user_id, or all email and all user_id depending on the Destination.")
33+
connection_settings: Optional[Any] = Field(None, alias="connectionSettings", description="The settings that a Destination requires to create audiences on a third-party platform. These settings are Destination-specific. Use the List Supported Destinations from Audience endpoint to find the required connection settings.")
3434
__properties = ["destination", "idSyncConfiguration", "connectionSettings"]
3535

3636
class Config:

segment_public_api/models/add_destination_to_audience_alpha_output.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@ class AddDestinationToAudienceAlphaOutput(BaseModel):
2929
AddDestinationToAudienceAlphaOutput
3030
"""
3131
connection: Connection = Field(...)
32-
id_sync_configuration: conlist(IDSyncConfigurationInput) = Field(..., alias="idSyncConfiguration", description="The id sync configuration for the Destination - array of external ids with their strategies.")
33-
connection_settings: Optional[Any] = Field(None, alias="connectionSettings", description="The settings that a Destination requires to create audiences on a third-party platform. These settings are Destination-specific and thus are best defined as unknown.")
32+
id_sync_configuration: conlist(IDSyncConfigurationInput) = Field(..., alias="idSyncConfiguration", description="Identifier sync configuration. Defines which external ids to sync and their selection strategies. Maximum 5 items allowed. If omitted, the default will be last email and last user_id, or all email and all user_id depending on the Destination.")
33+
connection_settings: Optional[Any] = Field(None, alias="connectionSettings", description="The settings that a Destination requires to create audiences on a third-party platform. These settings are Destination-specific. Use the List Supported Destinations from Audience endpoint to find the required connection settings.")
3434
__properties = ["connection", "idSyncConfiguration", "connectionSettings"]
3535

3636
class Config:

segment_public_api/models/destination_input.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@ class DestinationInput(BaseModel):
2626
"""
2727
The Destination Input Object. # noqa: E501
2828
"""
29-
id: StrictStr = Field(..., description="The Destination instance id.")
30-
type: StrictStr = Field(..., description="Type of Destination to add to the audience.")
29+
id: StrictStr = Field(..., description="The Destination id. Use the List Destinations endpoint to look up available ids.")
30+
type: StrictStr = Field(..., description="The category of the Destination. Possible values: destination, warehouse.")
3131
__properties = ["id", "type"]
3232

3333
class Config:

0 commit comments

Comments
 (0)