@segment/public-api-sdk-typescript 72.0.0-b17382 → 72.0.0-b17404
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/api/activationsApi.ts +2 -2
- package/model/activationOutput.ts +2 -2
- package/model/addActivationToAudienceAlphaInput.ts +3 -3
- package/model/addDestinationToAudienceAlphaInput.ts +2 -2
- package/model/addDestinationToAudienceAlphaOutput.ts +2 -2
- package/model/destinationInput.ts +2 -2
- package/model/destinationSubscriptionConfiguration.ts +1 -1
- package/model/iDSyncConfigurationInput.ts +2 -2
- package/model/personalizationInput.ts +1 -1
- package/model/simpleDestination.ts +2 -2
- package/model/updateActivationForAudienceAlphaInput.ts +1 -1
- package/package.json +1 -1
package/api/activationsApi.ts
CHANGED
|
@@ -119,7 +119,7 @@ export class ActivationsApi {
|
|
|
119
119
|
}
|
|
120
120
|
|
|
121
121
|
/**
|
|
122
|
-
*
|
|
122
|
+
* 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.
|
|
123
123
|
* @summary Add Activation to Audience
|
|
124
124
|
* @param spaceId
|
|
125
125
|
* @param audienceId
|
|
@@ -279,7 +279,7 @@ export class ActivationsApi {
|
|
|
279
279
|
});
|
|
280
280
|
}
|
|
281
281
|
/**
|
|
282
|
-
*
|
|
282
|
+
* 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.
|
|
283
283
|
* @summary Add Destination to Audience
|
|
284
284
|
* @param spaceId
|
|
285
285
|
* @param audienceId
|
|
@@ -43,7 +43,7 @@ export class ActivationOutput {
|
|
|
43
43
|
*/
|
|
44
44
|
'connectionId': string;
|
|
45
45
|
/**
|
|
46
|
-
*
|
|
46
|
+
* 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.
|
|
47
47
|
*/
|
|
48
48
|
'activationType': string;
|
|
49
49
|
/**
|
|
@@ -53,7 +53,7 @@ export class ActivationOutput {
|
|
|
53
53
|
'personalization': PersonalizationInput;
|
|
54
54
|
'destinationMapping'?: DestinationSubscriptionConfiguration;
|
|
55
55
|
/**
|
|
56
|
-
*
|
|
56
|
+
* Indicates if a full resync is currently pending or in progress.
|
|
57
57
|
*/
|
|
58
58
|
'performResync'?: boolean;
|
|
59
59
|
|
|
@@ -19,15 +19,15 @@ import { PersonalizationInput } from './personalizationInput';
|
|
|
19
19
|
*/
|
|
20
20
|
export class AddActivationToAudienceAlphaInput {
|
|
21
21
|
/**
|
|
22
|
-
*
|
|
22
|
+
* Determines whether an activation is enabled.
|
|
23
23
|
*/
|
|
24
24
|
'enabled'?: boolean;
|
|
25
25
|
/**
|
|
26
|
-
*
|
|
26
|
+
* 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.
|
|
27
27
|
*/
|
|
28
28
|
'performResync': boolean;
|
|
29
29
|
/**
|
|
30
|
-
*
|
|
30
|
+
* 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.
|
|
31
31
|
*/
|
|
32
32
|
'activationType': string;
|
|
33
33
|
/**
|
|
@@ -20,11 +20,11 @@ import { IDSyncConfigurationInput } from './iDSyncConfigurationInput';
|
|
|
20
20
|
export class AddDestinationToAudienceAlphaInput {
|
|
21
21
|
'destination': DestinationInput;
|
|
22
22
|
/**
|
|
23
|
-
* Identifier sync configuration
|
|
23
|
+
* 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.
|
|
24
24
|
*/
|
|
25
25
|
'idSyncConfiguration'?: Array<IDSyncConfigurationInput>;
|
|
26
26
|
/**
|
|
27
|
-
* The settings that a Destination requires to create audiences on a third-party platform. These settings are Destination-specific
|
|
27
|
+
* 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.
|
|
28
28
|
*/
|
|
29
29
|
'connectionSettings'?: any | null;
|
|
30
30
|
|
|
@@ -17,11 +17,11 @@ import { IDSyncConfigurationInput } from './iDSyncConfigurationInput';
|
|
|
17
17
|
export class AddDestinationToAudienceAlphaOutput {
|
|
18
18
|
'connection': Connection;
|
|
19
19
|
/**
|
|
20
|
-
*
|
|
20
|
+
* 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.
|
|
21
21
|
*/
|
|
22
22
|
'idSyncConfiguration': Array<IDSyncConfigurationInput>;
|
|
23
23
|
/**
|
|
24
|
-
* The settings that a Destination requires to create audiences on a third-party platform. These settings are Destination-specific
|
|
24
|
+
* 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.
|
|
25
25
|
*/
|
|
26
26
|
'connectionSettings'?: any | null;
|
|
27
27
|
|
|
@@ -17,11 +17,11 @@ import { RequestFile } from './models';
|
|
|
17
17
|
*/
|
|
18
18
|
export class DestinationInput {
|
|
19
19
|
/**
|
|
20
|
-
* The Destination
|
|
20
|
+
* The Destination id. Use the List Destinations endpoint to look up available ids.
|
|
21
21
|
*/
|
|
22
22
|
'id': string;
|
|
23
23
|
/**
|
|
24
|
-
*
|
|
24
|
+
* The category of the Destination. Possible values: destination, warehouse.
|
|
25
25
|
*/
|
|
26
26
|
'type': string;
|
|
27
27
|
|
|
@@ -17,11 +17,11 @@ import { RequestFile } from './models';
|
|
|
17
17
|
*/
|
|
18
18
|
export class IDSyncConfigurationInput {
|
|
19
19
|
/**
|
|
20
|
-
* The
|
|
20
|
+
* The id type to sync. Examples: user_id, email, anonymous_id.
|
|
21
21
|
*/
|
|
22
22
|
'externalId': string;
|
|
23
23
|
/**
|
|
24
|
-
* The
|
|
24
|
+
* The rule for selecting which identifiers to sync from a profile. Possible values: first: Syncs only the oldest recorded value. last: Syncs only the most recently updated value. all: Syncs every value found on the profile (sends multiple events).
|
|
25
25
|
*/
|
|
26
26
|
'strategy': string;
|
|
27
27
|
|
|
@@ -24,7 +24,7 @@ export class PersonalizationInput {
|
|
|
24
24
|
*/
|
|
25
25
|
'entities'?: Array<PersonalizationInputEntity>;
|
|
26
26
|
/**
|
|
27
|
-
* Sync entity property changes
|
|
27
|
+
* Sync entity property changes to the Destination. Only applicable if activationType is \"Audience Membership Changed\".
|
|
28
28
|
*/
|
|
29
29
|
'syncEntityPropertyChanges'?: boolean;
|
|
30
30
|
|
|
@@ -49,11 +49,11 @@ export class SimpleDestination {
|
|
|
49
49
|
'destinationId': string;
|
|
50
50
|
'metadata'?: Metadata;
|
|
51
51
|
/**
|
|
52
|
-
*
|
|
52
|
+
* 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.
|
|
53
53
|
*/
|
|
54
54
|
'idSyncConfiguration'?: Array<IDSyncConfigurationInput>;
|
|
55
55
|
/**
|
|
56
|
-
* The settings that a Destination requires to create audiences on a third-party platform. These settings are Destination-specific
|
|
56
|
+
* 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.
|
|
57
57
|
*/
|
|
58
58
|
'connectionSettings'?: any | null;
|
|
59
59
|
|
|
@@ -29,7 +29,7 @@ export class UpdateActivationForAudienceAlphaInput {
|
|
|
29
29
|
'personalization'?: PersonalizationInput;
|
|
30
30
|
'destinationMapping'?: DestinationSubscriptionConfiguration;
|
|
31
31
|
/**
|
|
32
|
-
*
|
|
32
|
+
* Determines whether to perform a full resync after the update. If true, the entire audience is resent to the Destination using the updated configuration. If false, the update applies only to future syncs.
|
|
33
33
|
*/
|
|
34
34
|
'performResync'?: boolean;
|
|
35
35
|
|