@segment/public-api-sdk-typescript 72.0.0-b17382 → 72.0.0-b17400

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.
@@ -119,7 +119,7 @@ export class ActivationsApi {
119
119
  }
120
120
 
121
121
  /**
122
- * 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.
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
- * 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.
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
- * Type of activation trigger.
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
- * Whether to perform a resync after creation of the activation.
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
- * Whether the event emitter should be created in an enabled state. Will trigger an audience run if enabled.
22
+ * Determines whether an activation is enabled.
23
23
  */
24
24
  'enabled'?: boolean;
25
25
  /**
26
- * Whether to perform a resync after creation of the activation.
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
- * Type of activation trigger.
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 - array of external IDs to sync with their strategies. Maximum 5 items allowed.
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 and thus are best defined as unknown.
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
- * The id sync configuration for the Destination - array of external ids with their strategies.
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 and thus are best defined as unknown.
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 instance id.
20
+ * The Destination id. Use the List Destinations endpoint to look up available ids.
21
21
  */
22
22
  'id': string;
23
23
  /**
24
- * Type of Destination to add to the audience.
24
+ * The category of the Destination. Possible values: destination, warehouse.
25
25
  */
26
26
  'type': string;
27
27
 
@@ -17,7 +17,7 @@ import { RequestFile } from './models';
17
17
  */
18
18
  export class DestinationSubscriptionConfiguration {
19
19
  /**
20
- * The action id to instantiate.
20
+ * The id for the action that Segment should perform on the Destination.
21
21
  */
22
22
  'actionId': string;
23
23
  /**
@@ -17,11 +17,11 @@ import { RequestFile } from './models';
17
17
  */
18
18
  export class IDSyncConfigurationInput {
19
19
  /**
20
- * The external id to sync, for example \"user_id\" or \"email\".
20
+ * The id type to sync. Examples: user_id, email, anonymous_id.
21
21
  */
22
22
  'externalId': string;
23
23
  /**
24
- * The strategy for syncing this identifier. Valid values: \"first\", \"last\", \"all\".
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 back to Segment. Only applicable if activationType is \"Audience Membership Changed\".
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
- * ID Sync configuration - array of external IDs with their strategies.
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 and thus are best defined as unknown.
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
- * Whether to perform a resync after creation of the activation.
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
 
package/package.json CHANGED
@@ -18,7 +18,7 @@
18
18
  "uuid": "^8.3.2",
19
19
  "request": "^2.88.2"
20
20
  },
21
- "version": "72.0.0-b17382",
21
+ "version": "72.0.0-b17400",
22
22
  "devDependencies": {
23
23
  "@types/bluebird": "^3.5.33",
24
24
  "@types/jest": "^29",