@segment/public-api-sdk-typescript 58.11.0-b11948 → 58.13.0-b11956
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/README.md +1 -1
- package/api/aPICallsApi.ts +1 -1
- package/api/activationsApi.ts +1052 -0
- package/api/apis.ts +5 -2
- package/api/audiencesApi.ts +1 -1
- package/api/auditTrailApi.ts +1 -1
- package/api/catalogApi.ts +1 -1
- package/api/computedTraitsApi.ts +1 -1
- package/api/customerInsightsApi.ts +1 -1
- package/api/dbtApi.ts +1 -1
- package/api/deletionAndSuppressionApi.ts +1 -1
- package/api/deliveryOverviewApi.ts +1 -1
- package/api/destinationFiltersApi.ts +1 -1
- package/api/destinationsApi.ts +1 -1
- package/api/edgeFunctionsApi.ts +1 -1
- package/api/eventsApi.ts +1 -1
- package/api/functionsApi.ts +1 -1
- package/api/iAMGroupsApi.ts +1 -1
- package/api/iAMRolesApi.ts +1 -1
- package/api/iAMUsersApi.ts +1 -1
- package/api/labelsApi.ts +1 -1
- package/api/monthlyTrackedUsersApi.ts +1 -1
- package/api/profilesSyncApi.ts +1 -1
- package/api/reverseETLApi.ts +1 -1
- package/api/selectiveSyncApi.ts +1 -1
- package/api/sourcesApi.ts +1 -1
- package/api/spaceFiltersApi.ts +1 -1
- package/api/spacesApi.ts +1 -1
- package/api/testingApi.ts +1 -1
- package/api/trackingPlansApi.ts +1 -1
- package/api/transformationsApi.ts +1 -1
- package/api/warehousesApi.ts +1 -1
- package/api/workspacesApi.ts +1 -1
- package/dist/api/activationsApi.d.ts +84 -0
- package/dist/api/activationsApi.js +705 -0
- package/dist/api/activationsApi.js.map +1 -0
- package/dist/api/apis.d.ts +3 -1
- package/dist/api/apis.js +5 -2
- package/dist/api/apis.js.map +1 -1
- package/dist/model/activationSummaryOutput.d.ts +15 -0
- package/dist/model/activationSummaryOutput.js +26 -0
- package/dist/model/activationSummaryOutput.js.map +1 -0
- package/dist/model/addActivationToAudience200Response.d.ts +15 -0
- package/dist/model/addActivationToAudience200Response.js +21 -0
- package/dist/model/addActivationToAudience200Response.js.map +1 -0
- package/dist/model/addActivationToAudienceAlphaInput.d.ts +21 -0
- package/dist/model/addActivationToAudienceAlphaInput.js +56 -0
- package/dist/model/addActivationToAudienceAlphaInput.js.map +1 -0
- package/dist/model/addActivationToAudienceAlphaOutput.d.ts +15 -0
- package/dist/model/addActivationToAudienceAlphaOutput.js +21 -0
- package/dist/model/addActivationToAudienceAlphaOutput.js.map +1 -0
- package/dist/model/addDestinationToAudience200Response.d.ts +15 -0
- package/dist/model/addDestinationToAudience200Response.js +21 -0
- package/dist/model/addDestinationToAudience200Response.js.map +1 -0
- package/dist/model/addDestinationToAudienceAlphaInput.d.ts +17 -0
- package/dist/model/addDestinationToAudienceAlphaInput.js +31 -0
- package/dist/model/addDestinationToAudienceAlphaInput.js.map +1 -0
- package/dist/model/addDestinationToAudienceAlphaOutput.d.ts +15 -0
- package/dist/model/addDestinationToAudienceAlphaOutput.js +21 -0
- package/dist/model/addDestinationToAudienceAlphaOutput.js.map +1 -0
- package/dist/model/connection.d.ts +14 -0
- package/dist/model/connection.js +21 -0
- package/dist/model/connection.js.map +1 -0
- package/dist/model/deleteActivationAlphaOutput.d.ts +14 -0
- package/dist/model/deleteActivationAlphaOutput.js +21 -0
- package/dist/model/deleteActivationAlphaOutput.js.map +1 -0
- package/dist/model/destinationInput.d.ts +15 -0
- package/dist/model/destinationInput.js +26 -0
- package/dist/model/destinationInput.js.map +1 -0
- package/dist/model/getActivationFromAudience200Response.d.ts +15 -0
- package/dist/model/getActivationFromAudience200Response.js +21 -0
- package/dist/model/getActivationFromAudience200Response.js.map +1 -0
- package/dist/model/getActivationFromAudienceOutput.d.ts +15 -0
- package/dist/model/getActivationFromAudienceOutput.js +21 -0
- package/dist/model/getActivationFromAudienceOutput.js.map +1 -0
- package/dist/model/listActivationsAlphaOutput.d.ts +17 -0
- package/dist/model/listActivationsAlphaOutput.js +26 -0
- package/dist/model/listActivationsAlphaOutput.js.map +1 -0
- package/dist/model/listActivationsFromAudience200Response.d.ts +15 -0
- package/dist/model/listActivationsFromAudience200Response.js +21 -0
- package/dist/model/listActivationsFromAudience200Response.js.map +1 -0
- package/dist/model/listActivationsFromAudienceOutput.d.ts +17 -0
- package/dist/model/listActivationsFromAudienceOutput.js +26 -0
- package/dist/model/listActivationsFromAudienceOutput.js.map +1 -0
- package/dist/model/models.d.ts +20 -0
- package/dist/model/models.js +60 -0
- package/dist/model/models.js.map +1 -1
- package/dist/model/removeActivationFromAudience200Response.d.ts +15 -0
- package/dist/model/removeActivationFromAudience200Response.js +21 -0
- package/dist/model/removeActivationFromAudience200Response.js.map +1 -0
- package/dist/model/removeActivationFromAudienceOutput.d.ts +14 -0
- package/dist/model/removeActivationFromAudienceOutput.js +21 -0
- package/dist/model/removeActivationFromAudienceOutput.js.map +1 -0
- package/dist/model/updateActivationForAudience200Response.d.ts +15 -0
- package/dist/model/updateActivationForAudience200Response.js +21 -0
- package/dist/model/updateActivationForAudience200Response.js.map +1 -0
- package/dist/model/updateActivationForAudienceAlphaInput.d.ts +17 -0
- package/dist/model/updateActivationForAudienceAlphaInput.js +36 -0
- package/dist/model/updateActivationForAudienceAlphaInput.js.map +1 -0
- package/dist/model/updateActivationForAudienceOutput.d.ts +15 -0
- package/dist/model/updateActivationForAudienceOutput.js +21 -0
- package/dist/model/updateActivationForAudienceOutput.js.map +1 -0
- package/model/aPICallSnapshotV1.ts +1 -1
- package/model/accessPermissionV1.ts +1 -1
- package/model/activationSummaryOutput.ts +50 -0
- package/model/addActivationToAudience200Response.ts +36 -0
- package/model/addActivationToAudienceAlphaInput.ts +104 -0
- package/model/addActivationToAudienceAlphaOutput.ts +39 -0
- package/model/addConnectionFromSourceToWarehouse201Response.ts +1 -1
- package/model/addConnectionFromSourceToWarehouseV1Output.ts +1 -1
- package/model/addDestinationToAudience200Response.ts +36 -0
- package/model/addDestinationToAudienceAlphaInput.ts +57 -0
- package/model/addDestinationToAudienceAlphaOutput.ts +36 -0
- package/model/addLabelsToSource200Response.ts +1 -1
- package/model/addLabelsToSource200Response1.ts +1 -1
- package/model/addLabelsToSourceAlphaInput.ts +1 -1
- package/model/addLabelsToSourceAlphaOutput.ts +1 -1
- package/model/addLabelsToSourceV1Input.ts +1 -1
- package/model/addLabelsToSourceV1Output.ts +1 -1
- package/model/addPermissionsToUser200Response.ts +1 -1
- package/model/addPermissionsToUserGroup200Response.ts +1 -1
- package/model/addPermissionsToUserGroupV1Input.ts +1 -1
- package/model/addPermissionsToUserGroupV1Output.ts +1 -1
- package/model/addPermissionsToUserV1Input.ts +1 -1
- package/model/addPermissionsToUserV1Output.ts +1 -1
- package/model/addSourceToTrackingPlan200Response.ts +1 -1
- package/model/addSourceToTrackingPlanV1Input.ts +1 -1
- package/model/addSourceToTrackingPlanV1Output.ts +1 -1
- package/model/addUsersToUserGroup200Response.ts +1 -1
- package/model/addUsersToUserGroupV1Input.ts +1 -1
- package/model/addUsersToUserGroupV1Output.ts +1 -1
- package/model/advancedWarehouseSyncScheduleV1Input.ts +1 -1
- package/model/advancedWarehouseSyncScheduleV1Output.ts +1 -1
- package/model/allowedLabelBeta.ts +1 -1
- package/model/audienceComputeCadence.ts +1 -1
- package/model/audienceDefinition.ts +1 -1
- package/model/audienceDefinitionWithoutType.ts +1 -1
- package/model/audienceOptions.ts +1 -1
- package/model/audienceOptionsWithLookback.ts +1 -1
- package/model/audiencePreview.ts +1 -1
- package/model/audiencePreviewAccountResult.ts +1 -1
- package/model/audiencePreviewIdentifier.ts +1 -1
- package/model/audiencePreviewProfileResult.ts +1 -1
- package/model/audiencePreviewResult.ts +1 -1
- package/model/audienceSchedule.ts +1 -1
- package/model/audienceSize.ts +1 -1
- package/model/audienceSummary.ts +1 -1
- package/model/audienceSummaryWithAudienceTypeAndLookback.ts +1 -1
- package/model/auditEventV1.ts +1 -1
- package/model/batchQueryMessagingSubscriptionsForSpace200Response.ts +1 -1
- package/model/batchQueryMessagingSubscriptionsForSpaceAlphaInput.ts +1 -1
- package/model/batchQueryMessagingSubscriptionsForSpaceAlphaOutput.ts +1 -1
- package/model/breakdownBeta.ts +1 -1
- package/model/cancelReverseETLSyncForModel200Response.ts +1 -1
- package/model/cancelReverseETLSyncForModelInput.ts +1 -1
- package/model/cancelReverseETLSyncForModelOutput.ts +1 -1
- package/model/commonSourceSettingsV1.ts +1 -1
- package/model/computedTraitSummary.ts +1 -1
- package/model/computedTraitsDefinition.ts +1 -1
- package/model/config.ts +1 -1
- package/model/config1.ts +1 -1
- package/model/connection.ts +41 -0
- package/model/contact.ts +1 -1
- package/model/createAudience200Response.ts +1 -1
- package/model/createAudienceAlphaInput.ts +1 -1
- package/model/createAudienceAlphaOutput.ts +1 -1
- package/model/createAudiencePreview200Response.ts +1 -1
- package/model/createAudiencePreviewAlphaInput.ts +1 -1
- package/model/createAudiencePreviewAlphaOutput.ts +1 -1
- package/model/createAudiencePreviewOptions.ts +1 -1
- package/model/createCloudSourceRegulation200Response.ts +1 -1
- package/model/createCloudSourceRegulationV1Input.ts +1 -1
- package/model/createCloudSourceRegulationV1Output.ts +1 -1
- package/model/createComputedTrait200Response.ts +1 -1
- package/model/createComputedTraitAlphaInput.ts +1 -1
- package/model/createComputedTraitAlphaOutput.ts +1 -1
- package/model/createDbtModelSyncTrigger200Response.ts +1 -1
- package/model/createDbtModelSyncTriggerInput.ts +1 -1
- package/model/createDbtModelSyncTriggerOutput.ts +1 -1
- package/model/createDestination200Response.ts +1 -1
- package/model/createDestinationSubscription200Response.ts +1 -1
- package/model/createDestinationSubscriptionAlphaInput.ts +1 -1
- package/model/createDestinationSubscriptionAlphaOutput.ts +1 -1
- package/model/createDestinationV1Input.ts +1 -1
- package/model/createDestinationV1Output.ts +1 -1
- package/model/createDownload200Response.ts +1 -1
- package/model/createDownloadAlphaInput.ts +1 -1
- package/model/createDownloadAlphaOutput.ts +1 -1
- package/model/createEdgeFunctions200Response.ts +1 -1
- package/model/createEdgeFunctionsAlphaInput.ts +1 -1
- package/model/createEdgeFunctionsAlphaOutput.ts +1 -1
- package/model/createFilterForDestination200Response.ts +1 -1
- package/model/createFilterForDestinationV1Input.ts +1 -1
- package/model/createFilterForDestinationV1Output.ts +1 -1
- package/model/createFilterForSpace200Response.ts +1 -1
- package/model/createFilterForSpaceInput.ts +1 -1
- package/model/createFilterForSpaceOutput.ts +1 -1
- package/model/createFunction200Response.ts +1 -1
- package/model/createFunctionDeployment200Response.ts +1 -1
- package/model/createFunctionDeploymentV1Output.ts +1 -1
- package/model/createFunctionV1Input.ts +1 -1
- package/model/createFunctionV1Output.ts +1 -1
- package/model/createInsertFunctionInstance200Response.ts +1 -1
- package/model/createInsertFunctionInstanceAlphaInput.ts +1 -1
- package/model/createInsertFunctionInstanceAlphaOutput.ts +1 -1
- package/model/createInvites201Response.ts +1 -1
- package/model/createInvitesV1Input.ts +1 -1
- package/model/createInvitesV1Output.ts +1 -1
- package/model/createLabel201Response.ts +1 -1
- package/model/createLabelV1Input.ts +1 -1
- package/model/createLabelV1Output.ts +1 -1
- package/model/createProfilesWarehouse201Response.ts +1 -1
- package/model/createProfilesWarehouseAlphaInput.ts +1 -1
- package/model/createProfilesWarehouseAlphaOutput.ts +1 -1
- package/model/createReverseETLManualSync200Response.ts +1 -1
- package/model/createReverseETLManualSyncInput.ts +1 -1
- package/model/createReverseETLManualSyncOutput.ts +1 -1
- package/model/createReverseEtlModel201Response.ts +1 -1
- package/model/createReverseEtlModelInput.ts +1 -1
- package/model/createReverseEtlModelOutput.ts +1 -1
- package/model/createSource201Response.ts +1 -1
- package/model/createSource201Response1.ts +1 -1
- package/model/createSourceAlphaInput.ts +1 -1
- package/model/createSourceAlphaOutput.ts +1 -1
- package/model/createSourceRegulation200Response.ts +1 -1
- package/model/createSourceRegulationV1Input.ts +1 -1
- package/model/createSourceRegulationV1Output.ts +1 -1
- package/model/createSourceV1Input.ts +1 -1
- package/model/createSourceV1Output.ts +1 -1
- package/model/createTrackingPlan200Response.ts +1 -1
- package/model/createTrackingPlanV1Input.ts +1 -1
- package/model/createTrackingPlanV1Output.ts +1 -1
- package/model/createTransformation200Response.ts +1 -1
- package/model/createTransformationBetaInput.ts +1 -1
- package/model/createTransformationBetaOutput.ts +1 -1
- package/model/createTransformationV1Input.ts +1 -1
- package/model/createTransformationV1Output.ts +1 -1
- package/model/createUserGroup200Response.ts +1 -1
- package/model/createUserGroupV1Input.ts +1 -1
- package/model/createUserGroupV1Output.ts +1 -1
- package/model/createValidationInWarehouse200Response.ts +1 -1
- package/model/createValidationInWarehouseV1Input.ts +1 -1
- package/model/createValidationInWarehouseV1Output.ts +1 -1
- package/model/createWarehouse201Response.ts +1 -1
- package/model/createWarehouseV1Input.ts +1 -1
- package/model/createWarehouseV1Output.ts +1 -1
- package/model/createWorkspaceRegulation200Response.ts +1 -1
- package/model/createWorkspaceRegulationV1Input.ts +1 -1
- package/model/createWorkspaceRegulationV1Output.ts +1 -1
- package/model/createWriteKeyForSource200Response.ts +1 -1
- package/model/createWriteKeyForSourceAlphaOutput.ts +1 -1
- package/model/dbtModelSyncTrigger.ts +1 -1
- package/model/deleteActivationAlphaOutput.ts +41 -0
- package/model/deleteDestination200Response.ts +1 -1
- package/model/deleteDestinationV1Output.ts +1 -1
- package/model/deleteFilterById200Response.ts +1 -1
- package/model/deleteFilterByIdOutput.ts +1 -1
- package/model/deleteFunction200Response.ts +1 -1
- package/model/deleteFunctionV1Output.ts +1 -1
- package/model/deleteInsertFunctionInstance200Response.ts +1 -1
- package/model/deleteInsertFunctionInstanceAlphaOutput.ts +1 -1
- package/model/deleteInvites200Response.ts +1 -1
- package/model/deleteInvitesV1Output.ts +1 -1
- package/model/deleteLabel200Response.ts +1 -1
- package/model/deleteLabel200Response1.ts +1 -1
- package/model/deleteLabelAlphaOutput.ts +1 -1
- package/model/deleteLabelV1Output.ts +1 -1
- package/model/deleteRegulation200Response.ts +1 -1
- package/model/deleteRegulationV1Output.ts +1 -1
- package/model/deleteReverseEtlModel200Response.ts +1 -1
- package/model/deleteReverseEtlModelOutput.ts +1 -1
- package/model/deleteSource200Response.ts +1 -1
- package/model/deleteSource200Response1.ts +1 -1
- package/model/deleteSourceAlphaOutput.ts +1 -1
- package/model/deleteSourceV1Output.ts +1 -1
- package/model/deleteTrackingPlan200Response.ts +1 -1
- package/model/deleteTrackingPlanV1Output.ts +1 -1
- package/model/deleteTransformation200Response.ts +1 -1
- package/model/deleteTransformationBetaInput.ts +1 -1
- package/model/deleteTransformationBetaOutput.ts +1 -1
- package/model/deleteTransformationV1Output.ts +1 -1
- package/model/deleteUserGroup200Response.ts +1 -1
- package/model/deleteUserGroupV1Output.ts +1 -1
- package/model/deleteUsers200Response.ts +1 -1
- package/model/deleteUsersV1Output.ts +1 -1
- package/model/deleteWarehouse200Response.ts +1 -1
- package/model/deleteWarehouseV1Output.ts +1 -1
- package/model/deliveryMetricsSummaryBeta.ts +1 -1
- package/model/deliveryOverviewDestinationFilterBy.ts +1 -1
- package/model/deliveryOverviewMetricsDatapoint.ts +1 -1
- package/model/deliveryOverviewMetricsDataset.ts +1 -1
- package/model/deliveryOverviewSourceFilterBy.ts +1 -1
- package/model/deliveryOverviewSuccessfullyReceivedFilterBy.ts +1 -1
- package/model/destinationFilterActionV1.ts +1 -1
- package/model/destinationFilterV1.ts +1 -1
- package/model/destinationInput.ts +50 -0
- package/model/destinationMetadataActionFieldV1.ts +1 -1
- package/model/destinationMetadataActionV1.ts +1 -1
- package/model/destinationMetadataComponentV1.ts +1 -1
- package/model/destinationMetadataFeaturesV1.ts +1 -1
- package/model/destinationMetadataMethodsV1.ts +1 -1
- package/model/destinationMetadataPlatformsV1.ts +1 -1
- package/model/destinationMetadataSubscriptionPresetV1.ts +1 -1
- package/model/destinationMetadataV1.ts +1 -1
- package/model/destinationStatusV1.ts +1 -1
- package/model/destinationSubscription.ts +1 -1
- package/model/destinationSubscriptionUpdateInput.ts +1 -1
- package/model/destinationV1.ts +1 -1
- package/model/disableEdgeFunctions200Response.ts +1 -1
- package/model/disableEdgeFunctionsAlphaOutput.ts +1 -1
- package/model/download.ts +1 -1
- package/model/echo200Response.ts +1 -1
- package/model/echo200Response1.ts +1 -1
- package/model/echoAlphaOutput.ts +1 -1
- package/model/echoV1Output.ts +1 -1
- package/model/edgeFunctionsAlpha.ts +1 -1
- package/model/entityDetails.ts +1 -1
- package/model/eventSourceV1.ts +1 -1
- package/model/fQLDefinedPropertyV1.ts +1 -1
- package/model/filter.ts +1 -1
- package/model/functionDeployment.ts +1 -1
- package/model/functionSettingV1.ts +1 -1
- package/model/functionV1.ts +1 -1
- package/model/generateUploadURLForEdgeFunctions200Response.ts +1 -1
- package/model/generateUploadURLForEdgeFunctionsAlphaOutput.ts +1 -1
- package/model/getActivationFromAudience200Response.ts +36 -0
- package/model/getActivationFromAudienceOutput.ts +39 -0
- package/model/getAdvancedSyncScheduleFromWarehouse200Response.ts +1 -1
- package/model/getAdvancedSyncScheduleFromWarehouseV1Output.ts +1 -1
- package/model/getAudience200Response.ts +1 -1
- package/model/getAudience200Response1.ts +1 -1
- package/model/getAudienceAlphaOutput.ts +1 -1
- package/model/getAudienceBetaOutput.ts +1 -1
- package/model/getAudiencePreview200Response.ts +1 -1
- package/model/getAudiencePreviewAlphaOutput.ts +1 -1
- package/model/getAudienceScheduleFromSpaceAndAudience200Response.ts +1 -1
- package/model/getAudienceScheduleFromSpaceAndAudienceAlphaOutput.ts +1 -1
- package/model/getComputedTrait200Response.ts +1 -1
- package/model/getComputedTraitAlphaOutput.ts +1 -1
- package/model/getConnectionStateFromWarehouse200Response.ts +1 -1
- package/model/getConnectionStateFromWarehouseV1Output.ts +1 -1
- package/model/getDailyPerSourceAPICallsUsage200Response.ts +1 -1
- package/model/getDailyPerSourceAPICallsUsageV1Output.ts +1 -1
- package/model/getDailyPerSourceMTUUsage200Response.ts +1 -1
- package/model/getDailyPerSourceMTUUsageV1Output.ts +1 -1
- package/model/getDailyWorkspaceAPICallsUsage200Response.ts +1 -1
- package/model/getDailyWorkspaceAPICallsUsageV1Output.ts +1 -1
- package/model/getDailyWorkspaceMTUUsage200Response.ts +1 -1
- package/model/getDailyWorkspaceMTUUsageV1Output.ts +1 -1
- package/model/getDeliveryOverviewMetricsBetaOutput.ts +1 -1
- package/model/getDestination200Response.ts +1 -1
- package/model/getDestinationMetadata200Response.ts +1 -1
- package/model/getDestinationMetadataV1Output.ts +1 -1
- package/model/getDestinationV1Output.ts +1 -1
- package/model/getDestinationsCatalog200Response.ts +1 -1
- package/model/getDestinationsCatalogV1Output.ts +1 -1
- package/model/getEgressFailedMetricsFromDeliveryOverview200Response.ts +1 -1
- package/model/getEventsVolumeFromWorkspace200Response.ts +1 -1
- package/model/getEventsVolumeFromWorkspaceV1Output.ts +1 -1
- package/model/getEventsVolumeFromWorkspaceV1Query.ts +1 -1
- package/model/getFilterById200Response.ts +1 -1
- package/model/getFilterByIdOutput.ts +1 -1
- package/model/getFilterInDestination200Response.ts +1 -1
- package/model/getFilterInDestinationV1Output.ts +1 -1
- package/model/getFunction200Response.ts +1 -1
- package/model/getFunctionV1Output.ts +1 -1
- package/model/getFunctionVersion200Response.ts +1 -1
- package/model/getFunctionVersionAlphaOutput.ts +1 -1
- package/model/getInsertFunctionInstance200Response.ts +1 -1
- package/model/getInsertFunctionInstanceAlphaOutput.ts +1 -1
- package/model/getLatestFromEdgeFunctions200Response.ts +1 -1
- package/model/getLatestFromEdgeFunctionsAlphaOutput.ts +1 -1
- package/model/getMessagingSubscriptionFailureResponse.ts +1 -1
- package/model/getMessagingSubscriptionSuccessResponse.ts +1 -1
- package/model/getRegulation200Response.ts +1 -1
- package/model/getRegulationV1Output.ts +1 -1
- package/model/getReverseETLSyncStatus200Response.ts +1 -1
- package/model/getReverseETLSyncStatusOutput.ts +1 -1
- package/model/getReverseEtlModel200Response.ts +1 -1
- package/model/getReverseEtlModelOutput.ts +1 -1
- package/model/getSource200Response.ts +1 -1
- package/model/getSource200Response1.ts +1 -1
- package/model/getSourceAlphaOutput.ts +1 -1
- package/model/getSourceMetadata200Response.ts +1 -1
- package/model/getSourceMetadataV1Output.ts +1 -1
- package/model/getSourceV1Output.ts +1 -1
- package/model/getSourcesCatalog200Response.ts +1 -1
- package/model/getSourcesCatalogV1Output.ts +1 -1
- package/model/getSpace200Response.ts +1 -1
- package/model/getSpaceAlphaOutput.ts +1 -1
- package/model/getSubscriptionFromDestination200Response.ts +1 -1
- package/model/getSubscriptionFromDestinationAlphaOutput.ts +1 -1
- package/model/getSubscriptionRequest.ts +1 -1
- package/model/getTrackingPlan200Response.ts +1 -1
- package/model/getTrackingPlanV1Output.ts +1 -1
- package/model/getTransformation200Response.ts +1 -1
- package/model/getTransformationBetaInput.ts +1 -1
- package/model/getTransformationBetaOutput.ts +1 -1
- package/model/getTransformationV1Output.ts +1 -1
- package/model/getUser200Response.ts +1 -1
- package/model/getUserGroup200Response.ts +1 -1
- package/model/getUserGroupV1Output.ts +1 -1
- package/model/getUserV1Output.ts +1 -1
- package/model/getWarehouse200Response.ts +1 -1
- package/model/getWarehouseMetadata200Response.ts +1 -1
- package/model/getWarehouseMetadataV1Output.ts +1 -1
- package/model/getWarehouseV1Output.ts +1 -1
- package/model/getWarehousesCatalog200Response.ts +1 -1
- package/model/getWarehousesCatalogV1Output.ts +1 -1
- package/model/getWorkspace200Response.ts +1 -1
- package/model/getWorkspaceV1Output.ts +1 -1
- package/model/groupSourceSettingsV1.ts +1 -1
- package/model/groupSubscriptionStatus.ts +1 -1
- package/model/groupSubscriptionStatusResponse.ts +1 -1
- package/model/handleWebhookInput.ts +1 -1
- package/model/handleWebhookOutput.ts +1 -1
- package/model/hashPropertiesConfiguration.ts +1 -1
- package/model/identifySourceSettingsV1.ts +1 -1
- package/model/insertFunctionInstanceAlpha.ts +1 -1
- package/model/integrationOptionBeta.ts +1 -1
- package/model/invitePermissionV1.ts +1 -1
- package/model/inviteV1.ts +1 -1
- package/model/labelAlpha.ts +1 -1
- package/model/labelV1.ts +1 -1
- package/model/listActivationsAlphaOutput.ts +49 -0
- package/model/listActivationsFromAudience200Response.ts +36 -0
- package/model/listActivationsFromAudienceOutput.ts +49 -0
- package/model/listAudienceConsumersFromSpaceAndAudience200Response.ts +1 -1
- package/model/listAudienceConsumersFromSpaceAndAudienceAlphaOutput.ts +1 -1
- package/model/listAudienceConsumersSortInput.ts +1 -1
- package/model/listAudienceSchedulesFromSpaceAndAudience200Response.ts +1 -1
- package/model/listAudienceSchedulesFromSpaceAndAudienceAlphaOutput.ts +1 -1
- package/model/listAudienceSearchInput.ts +1 -1
- package/model/listAudiences200Response.ts +1 -1
- package/model/listAudiences200Response1.ts +1 -1
- package/model/listAudiencesAlphaOutput.ts +1 -1
- package/model/listAudiencesBetaOutput.ts +1 -1
- package/model/listAudiencesPaginationInput.ts +1 -1
- package/model/listAuditEvents200Response.ts +1 -1
- package/model/listAuditEventsV1Output.ts +1 -1
- package/model/listComputedTraits200Response.ts +1 -1
- package/model/listComputedTraitsAlphaOutput.ts +1 -1
- package/model/listConnectedDestinationsFromSource200Response.ts +1 -1
- package/model/listConnectedDestinationsFromSource200Response1.ts +1 -1
- package/model/listConnectedDestinationsFromSourceAlphaOutput.ts +1 -1
- package/model/listConnectedDestinationsFromSourceV1Output.ts +1 -1
- package/model/listConnectedSourcesFromWarehouse200Response.ts +1 -1
- package/model/listConnectedSourcesFromWarehouseV1Output.ts +1 -1
- package/model/listConnectedWarehousesFromSource200Response.ts +1 -1
- package/model/listConnectedWarehousesFromSource200Response1.ts +1 -1
- package/model/listConnectedWarehousesFromSourceAlphaOutput.ts +1 -1
- package/model/listConnectedWarehousesFromSourceV1Output.ts +1 -1
- package/model/listDeliveryMetricsSummaryFromDestination200Response.ts +1 -1
- package/model/listDeliveryMetricsSummaryFromDestinationBetaOutput.ts +1 -1
- package/model/listDestinations200Response.ts +1 -1
- package/model/listDestinationsV1Output.ts +1 -1
- package/model/listFiltersForSpace200Response.ts +1 -1
- package/model/listFiltersForSpaceOutput.ts +1 -1
- package/model/listFiltersFromDestination200Response.ts +1 -1
- package/model/listFiltersFromDestinationV1Output.ts +1 -1
- package/model/listFiltersPaginationInput.ts +1 -1
- package/model/listFiltersPaginationOutput.ts +1 -1
- package/model/listFunctionItemV1.ts +1 -1
- package/model/listFunctionVersions200Response.ts +1 -1
- package/model/listFunctionVersionsAlphaOutput.ts +1 -1
- package/model/listFunctions200Response.ts +1 -1
- package/model/listFunctionsV1Output.ts +1 -1
- package/model/listInsertFunctionInstances200Response.ts +1 -1
- package/model/listInsertFunctionInstancesAlphaOutput.ts +1 -1
- package/model/listInvites200Response.ts +1 -1
- package/model/listInvitesFromUserGroup200Response.ts +1 -1
- package/model/listInvitesFromUserGroupV1Output.ts +1 -1
- package/model/listInvitesV1Output.ts +1 -1
- package/model/listLabels200Response.ts +1 -1
- package/model/listLabels200Response1.ts +1 -1
- package/model/listLabelsAlphaOutput.ts +1 -1
- package/model/listLabelsV1Output.ts +1 -1
- package/model/listProfilesWarehouseInSpace200Response.ts +1 -1
- package/model/listProfilesWarehouseInSpaceAlphaOutput.ts +1 -1
- package/model/listRegulationsFromSource200Response.ts +1 -1
- package/model/listRegulationsFromSourceV1Output.ts +1 -1
- package/model/listReverseETLSyncStatusesFromModelAndSubscriptionId200Response.ts +1 -1
- package/model/listReverseETLSyncStatusesFromModelAndSubscriptionIdOutput.ts +1 -1
- package/model/listReverseEtlModels200Response.ts +1 -1
- package/model/listReverseEtlModelsOutput.ts +1 -1
- package/model/listRoles200Response.ts +1 -1
- package/model/listRolesV1Output.ts +1 -1
- package/model/listRulesFromTrackingPlan200Response.ts +1 -1
- package/model/listRulesFromTrackingPlanV1Output.ts +1 -1
- package/model/listSchemaSettingsInSource200Response.ts +1 -1
- package/model/listSchemaSettingsInSourceV1Output.ts +1 -1
- package/model/listSelectiveSyncsFromWarehouseAndSource200Response.ts +1 -1
- package/model/listSelectiveSyncsFromWarehouseAndSourceV1Output.ts +1 -1
- package/model/listSelectiveSyncsFromWarehouseAndSpace200Response.ts +1 -1
- package/model/listSelectiveSyncsFromWarehouseAndSpaceAlphaOutput.ts +1 -1
- package/model/listSources200Response.ts +1 -1
- package/model/listSources200Response1.ts +1 -1
- package/model/listSourcesAlphaOutput.ts +1 -1
- package/model/listSourcesFromTrackingPlan200Response.ts +1 -1
- package/model/listSourcesFromTrackingPlanV1Output.ts +1 -1
- package/model/listSourcesV1Output.ts +1 -1
- package/model/listSpaces200Response.ts +1 -1
- package/model/listSpacesAlphaOutput.ts +1 -1
- package/model/listSubscriptionsFromDestination200Response.ts +1 -1
- package/model/listSubscriptionsFromDestinationAlphaOutput.ts +1 -1
- package/model/listSuppressions200Response.ts +1 -1
- package/model/listSuppressionsV1Output.ts +1 -1
- package/model/listSyncsFromWarehouse200Response.ts +1 -1
- package/model/listSyncsFromWarehouseAndSource200Response.ts +1 -1
- package/model/listSyncsFromWarehouseAndSourceV1Output.ts +1 -1
- package/model/listSyncsFromWarehouseV1Output.ts +1 -1
- package/model/listTrackingPlans200Response.ts +1 -1
- package/model/listTrackingPlansV1Output.ts +1 -1
- package/model/listTransformations200Response.ts +1 -1
- package/model/listTransformationsBetaInput.ts +1 -1
- package/model/listTransformationsBetaOutput.ts +1 -1
- package/model/listTransformationsV1Output.ts +1 -1
- package/model/listUserGroups200Response.ts +1 -1
- package/model/listUserGroupsFromUser200Response.ts +1 -1
- package/model/listUserGroupsFromUserV1Output.ts +1 -1
- package/model/listUserGroupsV1Output.ts +1 -1
- package/model/listUsers200Response.ts +1 -1
- package/model/listUsersFromUserGroup200Response.ts +1 -1
- package/model/listUsersFromUserGroupV1Output.ts +1 -1
- package/model/listUsersV1Output.ts +1 -1
- package/model/listWarehouses200Response.ts +1 -1
- package/model/listWarehousesV1Output.ts +1 -1
- package/model/listWorkspaceRegulations200Response.ts +1 -1
- package/model/listWorkspaceRegulationsV1Output.ts +1 -1
- package/model/logosBeta.ts +1 -1
- package/model/messageSubscriptionResponse.ts +1 -1
- package/model/messageSubscriptionResponseError.ts +1 -1
- package/model/messagesSubscriptionRequest.ts +1 -1
- package/model/metricBeta.ts +1 -1
- package/model/minimalUserGroupV1.ts +1 -1
- package/model/minimalUserV1.ts +1 -1
- package/model/models.ts +64 -0
- package/model/mtuSnapshotV1.ts +1 -1
- package/model/paginationInput.ts +1 -1
- package/model/paginationOutput.ts +1 -1
- package/model/periodicConfig.ts +1 -1
- package/model/permissionInputV1.ts +1 -1
- package/model/permissionResourceV1.ts +1 -1
- package/model/permissionV1.ts +1 -1
- package/model/previewDestinationFilter200Response.ts +1 -1
- package/model/previewDestinationFilterV1.ts +1 -1
- package/model/previewDestinationFilterV1Input.ts +1 -1
- package/model/previewDestinationFilterV1Output.ts +1 -1
- package/model/profilesWarehouseAlpha.ts +1 -1
- package/model/propertyRenameBeta.ts +1 -1
- package/model/propertyRenameV1.ts +1 -1
- package/model/propertyValueTransformationBeta.ts +1 -1
- package/model/propertyValueTransformationV1.ts +1 -1
- package/model/readAudiencePreviewOptions.ts +1 -1
- package/model/regulation.ts +1 -1
- package/model/regulationListEntryV1.ts +1 -1
- package/model/removeActivationFromAudience200Response.ts +36 -0
- package/model/removeActivationFromAudienceOutput.ts +41 -0
- package/model/removeAudienceFromSpace200Response.ts +1 -1
- package/model/removeAudienceFromSpaceAlphaOutput.ts +1 -1
- package/model/removeComputedTraitFromSpace200Response.ts +1 -1
- package/model/removeComputedTraitFromSpaceAlphaOutput.ts +1 -1
- package/model/removeFilterFromDestination200Response.ts +1 -1
- package/model/removeFilterFromDestinationV1Output.ts +1 -1
- package/model/removeProfilesWarehouseFromSpace200Response.ts +1 -1
- package/model/removeProfilesWarehouseFromSpaceAlphaOutput.ts +1 -1
- package/model/removeRuleV1.ts +1 -1
- package/model/removeRulesFromTrackingPlan200Response.ts +1 -1
- package/model/removeRulesFromTrackingPlanV1Output.ts +1 -1
- package/model/removeSourceConnectionFromWarehouse200Response.ts +1 -1
- package/model/removeSourceConnectionFromWarehouseV1Output.ts +1 -1
- package/model/removeSourceFromTrackingPlan200Response.ts +1 -1
- package/model/removeSourceFromTrackingPlanV1Output.ts +1 -1
- package/model/removeSubscriptionFromDestination200Response.ts +1 -1
- package/model/removeSubscriptionFromDestinationAlphaOutput.ts +1 -1
- package/model/removeUsersFromUserGroup200Response.ts +1 -1
- package/model/removeUsersFromUserGroupV1Output.ts +1 -1
- package/model/removeWriteKeyFromSource200Response.ts +1 -1
- package/model/removeWriteKeyFromSourceAlphaOutput.ts +1 -1
- package/model/replaceAdvancedSyncScheduleForWarehouse200Response.ts +1 -1
- package/model/replaceAdvancedSyncScheduleForWarehouseV1Input.ts +1 -1
- package/model/replaceAdvancedSyncScheduleForWarehouseV1Output.ts +1 -1
- package/model/replaceLabelsInSource200Response.ts +1 -1
- package/model/replaceLabelsInSource200Response1.ts +1 -1
- package/model/replaceLabelsInSourceAlphaInput.ts +1 -1
- package/model/replaceLabelsInSourceAlphaOutput.ts +1 -1
- package/model/replaceLabelsInSourceV1Input.ts +1 -1
- package/model/replaceLabelsInSourceV1Output.ts +1 -1
- package/model/replaceMessagingSubscriptionsInSpaces200Response.ts +1 -1
- package/model/replaceMessagingSubscriptionsInSpacesAlphaInput.ts +1 -1
- package/model/replaceMessagingSubscriptionsInSpacesAlphaOutput.ts +1 -1
- package/model/replacePermissionsForUser200Response.ts +1 -1
- package/model/replacePermissionsForUserGroup200Response.ts +1 -1
- package/model/replacePermissionsForUserGroupV1Input.ts +1 -1
- package/model/replacePermissionsForUserGroupV1Output.ts +1 -1
- package/model/replacePermissionsForUserV1Input.ts +1 -1
- package/model/replacePermissionsForUserV1Output.ts +1 -1
- package/model/replaceRulesInTrackingPlan200Response.ts +1 -1
- package/model/replaceRulesInTrackingPlanV1Input.ts +1 -1
- package/model/replaceRulesInTrackingPlanV1Output.ts +1 -1
- package/model/replaceUsersInUserGroup200Response.ts +1 -1
- package/model/replaceUsersInUserGroupV1Input.ts +1 -1
- package/model/replaceUsersInUserGroupV1Output.ts +1 -1
- package/model/requestError.ts +1 -1
- package/model/requestErrorEnvelope.ts +1 -1
- package/model/resourceV1.ts +1 -1
- package/model/restoreFunctionVersion200Response.ts +1 -1
- package/model/restoreFunctionVersionAlphaInput.ts +1 -1
- package/model/restoreFunctionVersionAlphaOutput.ts +1 -1
- package/model/reverseETLManualSyncJobOutput.ts +1 -1
- package/model/reverseETLSyncStatus.ts +1 -1
- package/model/reverseEtlCronScheduleConfig.ts +1 -1
- package/model/reverseEtlDbtCloudScheduleConfig.ts +1 -1
- package/model/reverseEtlModel.ts +1 -1
- package/model/reverseEtlPeriodicScheduleConfig.ts +1 -1
- package/model/reverseEtlScheduleConfig.ts +1 -1
- package/model/reverseEtlScheduleDefinition.ts +1 -1
- package/model/reverseEtlSpecificTimeScheduleConfig.ts +1 -1
- package/model/roleV1.ts +1 -1
- package/model/ruleInputV1.ts +1 -1
- package/model/ruleV1.ts +1 -1
- package/model/sourceAPICallSnapshotV1.ts +1 -1
- package/model/sourceAlpha.ts +1 -1
- package/model/sourceEventVolumeDatapointV1.ts +1 -1
- package/model/sourceEventVolumeV1.ts +1 -1
- package/model/sourceMetadataV1.ts +1 -1
- package/model/sourceSettingsOutputV1.ts +1 -1
- package/model/sourceV1.ts +1 -1
- package/model/space.ts +1 -1
- package/model/spaceWarehouseSchemaOverride.ts +1 -1
- package/model/spaceWarehouseSelectiveSyncItemAlpha.ts +1 -1
- package/model/specificDaysConfig.ts +1 -1
- package/model/streamStatusV1.ts +1 -1
- package/model/suppressedInner.ts +1 -1
- package/model/syncExtractPhase.ts +1 -1
- package/model/syncLoadPhase.ts +1 -1
- package/model/syncNoticeV1.ts +1 -1
- package/model/syncV1.ts +1 -1
- package/model/trackSourceSettingsV1.ts +1 -1
- package/model/trackingPlanV1.ts +1 -1
- package/model/traitDefinition.ts +1 -1
- package/model/traitOptions.ts +1 -1
- package/model/transformationBeta.ts +1 -1
- package/model/transformationV1.ts +1 -1
- package/model/updateActivationForAudience200Response.ts +36 -0
- package/model/updateActivationForAudienceAlphaInput.ts +68 -0
- package/model/updateActivationForAudienceOutput.ts +39 -0
- package/model/updateAudienceForSpace200Response.ts +1 -1
- package/model/updateAudienceForSpaceAlphaInput.ts +1 -1
- package/model/updateAudienceForSpaceAlphaOutput.ts +1 -1
- package/model/updateComputedTraitForSpace200Response.ts +1 -1
- package/model/updateComputedTraitForSpaceAlphaInput.ts +1 -1
- package/model/updateComputedTraitForSpaceAlphaOutput.ts +1 -1
- package/model/updateDestination200Response.ts +1 -1
- package/model/updateDestinationV1Input.ts +1 -1
- package/model/updateDestinationV1Output.ts +1 -1
- package/model/updateFilterById200Response.ts +1 -1
- package/model/updateFilterByIdInput.ts +1 -1
- package/model/updateFilterByIdOutput.ts +1 -1
- package/model/updateFilterForDestination200Response.ts +1 -1
- package/model/updateFilterForDestinationV1Input.ts +1 -1
- package/model/updateFilterForDestinationV1Output.ts +1 -1
- package/model/updateFunction200Response.ts +1 -1
- package/model/updateFunctionV1Input.ts +1 -1
- package/model/updateFunctionV1Output.ts +1 -1
- package/model/updateGroupSubscriptionStatusResponse.ts +1 -1
- package/model/updateInsertFunctionInstance200Response.ts +1 -1
- package/model/updateInsertFunctionInstanceAlphaInput.ts +1 -1
- package/model/updateInsertFunctionInstanceAlphaOutput.ts +1 -1
- package/model/updateProfilesWarehouseForSpaceWarehouse200Response.ts +1 -1
- package/model/updateProfilesWarehouseForSpaceWarehouseAlphaInput.ts +1 -1
- package/model/updateProfilesWarehouseForSpaceWarehouseAlphaOutput.ts +1 -1
- package/model/updateReverseEtlModel200Response.ts +1 -1
- package/model/updateReverseEtlModelInput.ts +1 -1
- package/model/updateReverseEtlModelOutput.ts +1 -1
- package/model/updateRulesInTrackingPlan200Response.ts +1 -1
- package/model/updateRulesInTrackingPlanV1Input.ts +1 -1
- package/model/updateRulesInTrackingPlanV1Output.ts +1 -1
- package/model/updateSchemaSettingsInSource200Response.ts +1 -1
- package/model/updateSchemaSettingsInSourceV1Input.ts +1 -1
- package/model/updateSchemaSettingsInSourceV1Output.ts +1 -1
- package/model/updateSelectiveSyncForWarehouse200Response.ts +1 -1
- package/model/updateSelectiveSyncForWarehouseAndSpace200Response.ts +1 -1
- package/model/updateSelectiveSyncForWarehouseAndSpaceAlphaInput.ts +1 -1
- package/model/updateSelectiveSyncForWarehouseAndSpaceAlphaOutput.ts +1 -1
- package/model/updateSelectiveSyncForWarehouseV1Input.ts +1 -1
- package/model/updateSelectiveSyncForWarehouseV1Output.ts +1 -1
- package/model/updateSource200Response.ts +1 -1
- package/model/updateSource200Response1.ts +1 -1
- package/model/updateSourceAlphaInput.ts +1 -1
- package/model/updateSourceAlphaOutput.ts +1 -1
- package/model/updateSourceV1Input.ts +1 -1
- package/model/updateSourceV1Output.ts +1 -1
- package/model/updateSubscriptionForDestination200Response.ts +1 -1
- package/model/updateSubscriptionForDestinationAlphaInput.ts +1 -1
- package/model/updateSubscriptionForDestinationAlphaOutput.ts +1 -1
- package/model/updateTrackingPlan200Response.ts +1 -1
- package/model/updateTrackingPlanV1Input.ts +1 -1
- package/model/updateTrackingPlanV1Output.ts +1 -1
- package/model/updateTransformation200Response.ts +1 -1
- package/model/updateTransformationBetaInput.ts +1 -1
- package/model/updateTransformationBetaOutput.ts +1 -1
- package/model/updateTransformationV1Input.ts +1 -1
- package/model/updateTransformationV1Output.ts +1 -1
- package/model/updateUserGroup200Response.ts +1 -1
- package/model/updateUserGroupV1Input.ts +1 -1
- package/model/updateUserGroupV1Output.ts +1 -1
- package/model/updateWarehouse200Response.ts +1 -1
- package/model/updateWarehouseV1Input.ts +1 -1
- package/model/updateWarehouseV1Output.ts +1 -1
- package/model/upsertRuleV1.ts +1 -1
- package/model/userGroupV1.ts +1 -1
- package/model/userV1.ts +1 -1
- package/model/usersPerSourceSnapshotV1.ts +1 -1
- package/model/version.ts +1 -1
- package/model/warehouseAdvancedSyncV1.ts +1 -1
- package/model/warehouseMetadataV1.ts +1 -1
- package/model/warehouseSelectiveSyncItemV1.ts +1 -1
- package/model/warehouseSyncOverrideV1.ts +1 -1
- package/model/warehouseV1.ts +1 -1
- package/model/workspaceV1.ts +1 -1
- package/package.json +1 -1
@@ -0,0 +1,1052 @@
|
|
1
|
+
/**
|
2
|
+
* Segment Public API
|
3
|
+
* The Segment Public API helps you manage your Segment Workspaces and its resources. You can use the API to perform CRUD (create, read, update, delete) operations at no extra charge. This includes working with resources such as Sources, Destinations, Warehouses, Tracking Plans, and the Segment Destinations and Sources Catalogs. All CRUD endpoints in the API follow REST conventions and use standard HTTP methods. Different URL endpoints represent different resources in a Workspace. See the next sections for more information on how to use the Segment Public API.
|
4
|
+
*
|
5
|
+
* The version of the OpenAPI document: 58.13.0
|
6
|
+
* Contact: friends@segment.com
|
7
|
+
*
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
9
|
+
* https://openapi-generator.tech
|
10
|
+
* Do not edit the class manually.
|
11
|
+
*/
|
12
|
+
|
13
|
+
import localVarRequest from 'request';
|
14
|
+
import http from 'http';
|
15
|
+
|
16
|
+
/* tslint:disable:no-unused-locals */
|
17
|
+
import { AddActivationToAudience200Response } from '../model/addActivationToAudience200Response';
|
18
|
+
import { AddActivationToAudienceAlphaInput } from '../model/addActivationToAudienceAlphaInput';
|
19
|
+
import { AddDestinationToAudience200Response } from '../model/addDestinationToAudience200Response';
|
20
|
+
import { AddDestinationToAudienceAlphaInput } from '../model/addDestinationToAudienceAlphaInput';
|
21
|
+
import { GetActivationFromAudience200Response } from '../model/getActivationFromAudience200Response';
|
22
|
+
import { ListActivationsFromAudience200Response } from '../model/listActivationsFromAudience200Response';
|
23
|
+
import { PaginationInput } from '../model/paginationInput';
|
24
|
+
import { RemoveActivationFromAudience200Response } from '../model/removeActivationFromAudience200Response';
|
25
|
+
import { RequestErrorEnvelope } from '../model/requestErrorEnvelope';
|
26
|
+
import { UpdateActivationForAudience200Response } from '../model/updateActivationForAudience200Response';
|
27
|
+
import { UpdateActivationForAudienceAlphaInput } from '../model/updateActivationForAudienceAlphaInput';
|
28
|
+
|
29
|
+
import {
|
30
|
+
ObjectSerializer,
|
31
|
+
Authentication,
|
32
|
+
VoidAuth,
|
33
|
+
Interceptor,
|
34
|
+
} from '../model/models';
|
35
|
+
import {
|
36
|
+
HttpBasicAuth,
|
37
|
+
HttpBearerAuth,
|
38
|
+
ApiKeyAuth,
|
39
|
+
OAuth,
|
40
|
+
} from '../model/models';
|
41
|
+
|
42
|
+
import { HttpError, RequestFile } from './apis';
|
43
|
+
|
44
|
+
let defaultBasePath = 'https://api.segmentapis.com';
|
45
|
+
|
46
|
+
// ===============================================
|
47
|
+
// This file is autogenerated - Please do not edit
|
48
|
+
// ===============================================
|
49
|
+
|
50
|
+
export enum ActivationsApiApiKeys {}
|
51
|
+
|
52
|
+
export class ActivationsApi {
|
53
|
+
protected _basePath = defaultBasePath;
|
54
|
+
protected _defaultHeaders: any = {};
|
55
|
+
protected _useQuerystring: boolean = false;
|
56
|
+
|
57
|
+
protected authentications = {
|
58
|
+
default: <Authentication>new VoidAuth(),
|
59
|
+
token: new HttpBearerAuth(),
|
60
|
+
};
|
61
|
+
|
62
|
+
protected interceptors: Interceptor[] = [];
|
63
|
+
|
64
|
+
constructor(basePath?: string);
|
65
|
+
constructor(
|
66
|
+
basePathOrUsername: string,
|
67
|
+
password?: string,
|
68
|
+
basePath?: string
|
69
|
+
) {
|
70
|
+
if (password) {
|
71
|
+
if (basePath) {
|
72
|
+
this.basePath = basePath;
|
73
|
+
}
|
74
|
+
} else {
|
75
|
+
if (basePathOrUsername) {
|
76
|
+
this.basePath = basePathOrUsername;
|
77
|
+
}
|
78
|
+
}
|
79
|
+
}
|
80
|
+
|
81
|
+
set useQuerystring(value: boolean) {
|
82
|
+
this._useQuerystring = value;
|
83
|
+
}
|
84
|
+
|
85
|
+
set basePath(basePath: string) {
|
86
|
+
this._basePath = basePath;
|
87
|
+
}
|
88
|
+
|
89
|
+
set defaultHeaders(defaultHeaders: any) {
|
90
|
+
this._defaultHeaders = defaultHeaders;
|
91
|
+
}
|
92
|
+
|
93
|
+
get defaultHeaders() {
|
94
|
+
return this._defaultHeaders;
|
95
|
+
}
|
96
|
+
|
97
|
+
get basePath() {
|
98
|
+
return this._basePath;
|
99
|
+
}
|
100
|
+
|
101
|
+
public setDefaultAuthentication(auth: Authentication) {
|
102
|
+
this.authentications.default = auth;
|
103
|
+
}
|
104
|
+
|
105
|
+
public setApiKey(key: ActivationsApiApiKeys, value: string) {
|
106
|
+
(this.authentications as any)[ActivationsApiApiKeys[key]].apiKey =
|
107
|
+
value;
|
108
|
+
}
|
109
|
+
|
110
|
+
set accessToken(accessToken: string | (() => string)) {
|
111
|
+
this.authentications.token.accessToken = accessToken;
|
112
|
+
}
|
113
|
+
|
114
|
+
public addInterceptor(interceptor: Interceptor) {
|
115
|
+
this.interceptors.push(interceptor);
|
116
|
+
}
|
117
|
+
|
118
|
+
/**
|
119
|
+
* 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 10 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.
|
120
|
+
* @summary Add Activation to Audience
|
121
|
+
* @param spaceId
|
122
|
+
* @param audienceId
|
123
|
+
* @param connectionId
|
124
|
+
* @param AddActivationToAudienceAlphaInput
|
125
|
+
*/
|
126
|
+
public async addActivationToAudience(
|
127
|
+
spaceId: string,
|
128
|
+
audienceId: string,
|
129
|
+
connectionId: string,
|
130
|
+
AddActivationToAudienceAlphaInput: AddActivationToAudienceAlphaInput,
|
131
|
+
options: { headers: { [name: string]: string } } = { headers: {} }
|
132
|
+
): Promise<{
|
133
|
+
response: http.IncomingMessage;
|
134
|
+
body: AddActivationToAudience200Response;
|
135
|
+
}> {
|
136
|
+
const localVarPath =
|
137
|
+
this.basePath +
|
138
|
+
'/spaces/{spaceId}/audiences/{audienceId}/{connectionId}/activations'
|
139
|
+
.replace(
|
140
|
+
'{' + 'spaceId' + '}',
|
141
|
+
encodeURIComponent(String(spaceId))
|
142
|
+
)
|
143
|
+
.replace(
|
144
|
+
'{' + 'audienceId' + '}',
|
145
|
+
encodeURIComponent(String(audienceId))
|
146
|
+
)
|
147
|
+
.replace(
|
148
|
+
'{' + 'connectionId' + '}',
|
149
|
+
encodeURIComponent(String(connectionId))
|
150
|
+
);
|
151
|
+
let localVarQueryParameters: any = {};
|
152
|
+
let localVarHeaderParams: any = (<any>Object).assign(
|
153
|
+
{},
|
154
|
+
this._defaultHeaders
|
155
|
+
);
|
156
|
+
const produces = [
|
157
|
+
'application/vnd.segment.v1alpha+json',
|
158
|
+
'application/json',
|
159
|
+
];
|
160
|
+
// give precedence to 'application/json'
|
161
|
+
if (produces.indexOf('application/json') >= 0) {
|
162
|
+
localVarHeaderParams.Accept = 'application/json';
|
163
|
+
} else {
|
164
|
+
localVarHeaderParams.Accept = produces.join(',');
|
165
|
+
}
|
166
|
+
let localVarFormParams: any = {};
|
167
|
+
|
168
|
+
// verify required parameter 'spaceId' is not null or undefined
|
169
|
+
if (spaceId === null || spaceId === undefined) {
|
170
|
+
throw new Error(
|
171
|
+
'Required parameter spaceId was null or undefined when calling addActivationToAudience.'
|
172
|
+
);
|
173
|
+
}
|
174
|
+
|
175
|
+
// verify required parameter 'audienceId' is not null or undefined
|
176
|
+
if (audienceId === null || audienceId === undefined) {
|
177
|
+
throw new Error(
|
178
|
+
'Required parameter audienceId was null or undefined when calling addActivationToAudience.'
|
179
|
+
);
|
180
|
+
}
|
181
|
+
|
182
|
+
// verify required parameter 'connectionId' is not null or undefined
|
183
|
+
if (connectionId === null || connectionId === undefined) {
|
184
|
+
throw new Error(
|
185
|
+
'Required parameter connectionId was null or undefined when calling addActivationToAudience.'
|
186
|
+
);
|
187
|
+
}
|
188
|
+
|
189
|
+
// verify required parameter 'AddActivationToAudienceAlphaInput' is not null or undefined
|
190
|
+
if (
|
191
|
+
AddActivationToAudienceAlphaInput === null ||
|
192
|
+
AddActivationToAudienceAlphaInput === undefined
|
193
|
+
) {
|
194
|
+
throw new Error(
|
195
|
+
'Required parameter AddActivationToAudienceAlphaInput was null or undefined when calling addActivationToAudience.'
|
196
|
+
);
|
197
|
+
}
|
198
|
+
|
199
|
+
(<any>Object).assign(localVarHeaderParams, options.headers);
|
200
|
+
|
201
|
+
let localVarUseFormData = false;
|
202
|
+
|
203
|
+
let localVarRequestOptions: localVarRequest.Options = {
|
204
|
+
method: 'POST',
|
205
|
+
qs: localVarQueryParameters,
|
206
|
+
headers: localVarHeaderParams,
|
207
|
+
uri: localVarPath,
|
208
|
+
useQuerystring: this._useQuerystring,
|
209
|
+
json: true,
|
210
|
+
body: ObjectSerializer.serialize(
|
211
|
+
AddActivationToAudienceAlphaInput,
|
212
|
+
'AddActivationToAudienceAlphaInput'
|
213
|
+
),
|
214
|
+
};
|
215
|
+
|
216
|
+
let authenticationPromise = Promise.resolve();
|
217
|
+
if (this.authentications.token.accessToken) {
|
218
|
+
authenticationPromise = authenticationPromise.then(() =>
|
219
|
+
this.authentications.token.applyToRequest(
|
220
|
+
localVarRequestOptions
|
221
|
+
)
|
222
|
+
);
|
223
|
+
}
|
224
|
+
authenticationPromise = authenticationPromise.then(() =>
|
225
|
+
this.authentications.default.applyToRequest(localVarRequestOptions)
|
226
|
+
);
|
227
|
+
|
228
|
+
let interceptorPromise = authenticationPromise;
|
229
|
+
for (const interceptor of this.interceptors) {
|
230
|
+
interceptorPromise = interceptorPromise.then(() =>
|
231
|
+
interceptor(localVarRequestOptions)
|
232
|
+
);
|
233
|
+
}
|
234
|
+
|
235
|
+
return interceptorPromise.then(() => {
|
236
|
+
if (Object.keys(localVarFormParams).length) {
|
237
|
+
if (localVarUseFormData) {
|
238
|
+
(<any>localVarRequestOptions).formData = localVarFormParams;
|
239
|
+
} else {
|
240
|
+
localVarRequestOptions.form = localVarFormParams;
|
241
|
+
}
|
242
|
+
}
|
243
|
+
return new Promise<{
|
244
|
+
response: http.IncomingMessage;
|
245
|
+
body: AddActivationToAudience200Response;
|
246
|
+
}>((resolve, reject) => {
|
247
|
+
localVarRequest(
|
248
|
+
localVarRequestOptions,
|
249
|
+
(error, response, body) => {
|
250
|
+
if (error) {
|
251
|
+
reject(error);
|
252
|
+
} else {
|
253
|
+
if (
|
254
|
+
response.statusCode &&
|
255
|
+
response.statusCode >= 200 &&
|
256
|
+
response.statusCode <= 299
|
257
|
+
) {
|
258
|
+
body = ObjectSerializer.deserialize(
|
259
|
+
body,
|
260
|
+
'AddActivationToAudience200Response'
|
261
|
+
);
|
262
|
+
resolve({ response: response, body: body });
|
263
|
+
} else {
|
264
|
+
reject(
|
265
|
+
new HttpError(
|
266
|
+
response,
|
267
|
+
body,
|
268
|
+
response.statusCode
|
269
|
+
)
|
270
|
+
);
|
271
|
+
}
|
272
|
+
}
|
273
|
+
}
|
274
|
+
);
|
275
|
+
});
|
276
|
+
});
|
277
|
+
}
|
278
|
+
/**
|
279
|
+
* 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).
|
280
|
+
* @summary Add Destination to Audience
|
281
|
+
* @param spaceId
|
282
|
+
* @param audienceId
|
283
|
+
* @param AddDestinationToAudienceAlphaInput
|
284
|
+
*/
|
285
|
+
public async addDestinationToAudience(
|
286
|
+
spaceId: string,
|
287
|
+
audienceId: string,
|
288
|
+
AddDestinationToAudienceAlphaInput: AddDestinationToAudienceAlphaInput,
|
289
|
+
options: { headers: { [name: string]: string } } = { headers: {} }
|
290
|
+
): Promise<{
|
291
|
+
response: http.IncomingMessage;
|
292
|
+
body: AddDestinationToAudience200Response;
|
293
|
+
}> {
|
294
|
+
const localVarPath =
|
295
|
+
this.basePath +
|
296
|
+
'/spaces/{spaceId}/audiences/{audienceId}/destinations'
|
297
|
+
.replace(
|
298
|
+
'{' + 'spaceId' + '}',
|
299
|
+
encodeURIComponent(String(spaceId))
|
300
|
+
)
|
301
|
+
.replace(
|
302
|
+
'{' + 'audienceId' + '}',
|
303
|
+
encodeURIComponent(String(audienceId))
|
304
|
+
);
|
305
|
+
let localVarQueryParameters: any = {};
|
306
|
+
let localVarHeaderParams: any = (<any>Object).assign(
|
307
|
+
{},
|
308
|
+
this._defaultHeaders
|
309
|
+
);
|
310
|
+
const produces = [
|
311
|
+
'application/vnd.segment.v1alpha+json',
|
312
|
+
'application/json',
|
313
|
+
];
|
314
|
+
// give precedence to 'application/json'
|
315
|
+
if (produces.indexOf('application/json') >= 0) {
|
316
|
+
localVarHeaderParams.Accept = 'application/json';
|
317
|
+
} else {
|
318
|
+
localVarHeaderParams.Accept = produces.join(',');
|
319
|
+
}
|
320
|
+
let localVarFormParams: any = {};
|
321
|
+
|
322
|
+
// verify required parameter 'spaceId' is not null or undefined
|
323
|
+
if (spaceId === null || spaceId === undefined) {
|
324
|
+
throw new Error(
|
325
|
+
'Required parameter spaceId was null or undefined when calling addDestinationToAudience.'
|
326
|
+
);
|
327
|
+
}
|
328
|
+
|
329
|
+
// verify required parameter 'audienceId' is not null or undefined
|
330
|
+
if (audienceId === null || audienceId === undefined) {
|
331
|
+
throw new Error(
|
332
|
+
'Required parameter audienceId was null or undefined when calling addDestinationToAudience.'
|
333
|
+
);
|
334
|
+
}
|
335
|
+
|
336
|
+
// verify required parameter 'AddDestinationToAudienceAlphaInput' is not null or undefined
|
337
|
+
if (
|
338
|
+
AddDestinationToAudienceAlphaInput === null ||
|
339
|
+
AddDestinationToAudienceAlphaInput === undefined
|
340
|
+
) {
|
341
|
+
throw new Error(
|
342
|
+
'Required parameter AddDestinationToAudienceAlphaInput was null or undefined when calling addDestinationToAudience.'
|
343
|
+
);
|
344
|
+
}
|
345
|
+
|
346
|
+
(<any>Object).assign(localVarHeaderParams, options.headers);
|
347
|
+
|
348
|
+
let localVarUseFormData = false;
|
349
|
+
|
350
|
+
let localVarRequestOptions: localVarRequest.Options = {
|
351
|
+
method: 'POST',
|
352
|
+
qs: localVarQueryParameters,
|
353
|
+
headers: localVarHeaderParams,
|
354
|
+
uri: localVarPath,
|
355
|
+
useQuerystring: this._useQuerystring,
|
356
|
+
json: true,
|
357
|
+
body: ObjectSerializer.serialize(
|
358
|
+
AddDestinationToAudienceAlphaInput,
|
359
|
+
'AddDestinationToAudienceAlphaInput'
|
360
|
+
),
|
361
|
+
};
|
362
|
+
|
363
|
+
let authenticationPromise = Promise.resolve();
|
364
|
+
if (this.authentications.token.accessToken) {
|
365
|
+
authenticationPromise = authenticationPromise.then(() =>
|
366
|
+
this.authentications.token.applyToRequest(
|
367
|
+
localVarRequestOptions
|
368
|
+
)
|
369
|
+
);
|
370
|
+
}
|
371
|
+
authenticationPromise = authenticationPromise.then(() =>
|
372
|
+
this.authentications.default.applyToRequest(localVarRequestOptions)
|
373
|
+
);
|
374
|
+
|
375
|
+
let interceptorPromise = authenticationPromise;
|
376
|
+
for (const interceptor of this.interceptors) {
|
377
|
+
interceptorPromise = interceptorPromise.then(() =>
|
378
|
+
interceptor(localVarRequestOptions)
|
379
|
+
);
|
380
|
+
}
|
381
|
+
|
382
|
+
return interceptorPromise.then(() => {
|
383
|
+
if (Object.keys(localVarFormParams).length) {
|
384
|
+
if (localVarUseFormData) {
|
385
|
+
(<any>localVarRequestOptions).formData = localVarFormParams;
|
386
|
+
} else {
|
387
|
+
localVarRequestOptions.form = localVarFormParams;
|
388
|
+
}
|
389
|
+
}
|
390
|
+
return new Promise<{
|
391
|
+
response: http.IncomingMessage;
|
392
|
+
body: AddDestinationToAudience200Response;
|
393
|
+
}>((resolve, reject) => {
|
394
|
+
localVarRequest(
|
395
|
+
localVarRequestOptions,
|
396
|
+
(error, response, body) => {
|
397
|
+
if (error) {
|
398
|
+
reject(error);
|
399
|
+
} else {
|
400
|
+
if (
|
401
|
+
response.statusCode &&
|
402
|
+
response.statusCode >= 200 &&
|
403
|
+
response.statusCode <= 299
|
404
|
+
) {
|
405
|
+
body = ObjectSerializer.deserialize(
|
406
|
+
body,
|
407
|
+
'AddDestinationToAudience200Response'
|
408
|
+
);
|
409
|
+
resolve({ response: response, body: body });
|
410
|
+
} else {
|
411
|
+
reject(
|
412
|
+
new HttpError(
|
413
|
+
response,
|
414
|
+
body,
|
415
|
+
response.statusCode
|
416
|
+
)
|
417
|
+
);
|
418
|
+
}
|
419
|
+
}
|
420
|
+
}
|
421
|
+
);
|
422
|
+
});
|
423
|
+
});
|
424
|
+
}
|
425
|
+
/**
|
426
|
+
* Gets a single Activation by id. The rate limit for this endpoint is 60 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.
|
427
|
+
* @summary Get Activation from Audience
|
428
|
+
* @param spaceId
|
429
|
+
* @param audienceId
|
430
|
+
* @param id
|
431
|
+
* @param workspaceId The workspace id This parameter exists in alpha.
|
432
|
+
*/
|
433
|
+
public async getActivationFromAudience(
|
434
|
+
spaceId: string,
|
435
|
+
audienceId: string,
|
436
|
+
id: string,
|
437
|
+
workspaceId: string,
|
438
|
+
options: { headers: { [name: string]: string } } = { headers: {} }
|
439
|
+
): Promise<{
|
440
|
+
response: http.IncomingMessage;
|
441
|
+
body: GetActivationFromAudience200Response;
|
442
|
+
}> {
|
443
|
+
const localVarPath =
|
444
|
+
this.basePath +
|
445
|
+
'/spaces/{spaceId}/audiences/{audienceId}/activations/{id}'
|
446
|
+
.replace(
|
447
|
+
'{' + 'spaceId' + '}',
|
448
|
+
encodeURIComponent(String(spaceId))
|
449
|
+
)
|
450
|
+
.replace(
|
451
|
+
'{' + 'audienceId' + '}',
|
452
|
+
encodeURIComponent(String(audienceId))
|
453
|
+
)
|
454
|
+
.replace('{' + 'id' + '}', encodeURIComponent(String(id)));
|
455
|
+
let localVarQueryParameters: any = {};
|
456
|
+
let localVarHeaderParams: any = (<any>Object).assign(
|
457
|
+
{},
|
458
|
+
this._defaultHeaders
|
459
|
+
);
|
460
|
+
const produces = [
|
461
|
+
'application/vnd.segment.v1alpha+json',
|
462
|
+
'application/json',
|
463
|
+
];
|
464
|
+
// give precedence to 'application/json'
|
465
|
+
if (produces.indexOf('application/json') >= 0) {
|
466
|
+
localVarHeaderParams.Accept = 'application/json';
|
467
|
+
} else {
|
468
|
+
localVarHeaderParams.Accept = produces.join(',');
|
469
|
+
}
|
470
|
+
let localVarFormParams: any = {};
|
471
|
+
|
472
|
+
// verify required parameter 'spaceId' is not null or undefined
|
473
|
+
if (spaceId === null || spaceId === undefined) {
|
474
|
+
throw new Error(
|
475
|
+
'Required parameter spaceId was null or undefined when calling getActivationFromAudience.'
|
476
|
+
);
|
477
|
+
}
|
478
|
+
|
479
|
+
// verify required parameter 'audienceId' is not null or undefined
|
480
|
+
if (audienceId === null || audienceId === undefined) {
|
481
|
+
throw new Error(
|
482
|
+
'Required parameter audienceId was null or undefined when calling getActivationFromAudience.'
|
483
|
+
);
|
484
|
+
}
|
485
|
+
|
486
|
+
// verify required parameter 'id' is not null or undefined
|
487
|
+
if (id === null || id === undefined) {
|
488
|
+
throw new Error(
|
489
|
+
'Required parameter id was null or undefined when calling getActivationFromAudience.'
|
490
|
+
);
|
491
|
+
}
|
492
|
+
|
493
|
+
// verify required parameter 'workspaceId' is not null or undefined
|
494
|
+
if (workspaceId === null || workspaceId === undefined) {
|
495
|
+
throw new Error(
|
496
|
+
'Required parameter workspaceId was null or undefined when calling getActivationFromAudience.'
|
497
|
+
);
|
498
|
+
}
|
499
|
+
|
500
|
+
if (workspaceId !== undefined) {
|
501
|
+
localVarQueryParameters['workspaceId'] = ObjectSerializer.serialize(
|
502
|
+
workspaceId,
|
503
|
+
'string'
|
504
|
+
);
|
505
|
+
}
|
506
|
+
|
507
|
+
(<any>Object).assign(localVarHeaderParams, options.headers);
|
508
|
+
|
509
|
+
let localVarUseFormData = false;
|
510
|
+
|
511
|
+
let localVarRequestOptions: localVarRequest.Options = {
|
512
|
+
method: 'GET',
|
513
|
+
qs: localVarQueryParameters,
|
514
|
+
headers: localVarHeaderParams,
|
515
|
+
uri: localVarPath,
|
516
|
+
useQuerystring: this._useQuerystring,
|
517
|
+
json: true,
|
518
|
+
};
|
519
|
+
|
520
|
+
let authenticationPromise = Promise.resolve();
|
521
|
+
if (this.authentications.token.accessToken) {
|
522
|
+
authenticationPromise = authenticationPromise.then(() =>
|
523
|
+
this.authentications.token.applyToRequest(
|
524
|
+
localVarRequestOptions
|
525
|
+
)
|
526
|
+
);
|
527
|
+
}
|
528
|
+
authenticationPromise = authenticationPromise.then(() =>
|
529
|
+
this.authentications.default.applyToRequest(localVarRequestOptions)
|
530
|
+
);
|
531
|
+
|
532
|
+
let interceptorPromise = authenticationPromise;
|
533
|
+
for (const interceptor of this.interceptors) {
|
534
|
+
interceptorPromise = interceptorPromise.then(() =>
|
535
|
+
interceptor(localVarRequestOptions)
|
536
|
+
);
|
537
|
+
}
|
538
|
+
|
539
|
+
return interceptorPromise.then(() => {
|
540
|
+
if (Object.keys(localVarFormParams).length) {
|
541
|
+
if (localVarUseFormData) {
|
542
|
+
(<any>localVarRequestOptions).formData = localVarFormParams;
|
543
|
+
} else {
|
544
|
+
localVarRequestOptions.form = localVarFormParams;
|
545
|
+
}
|
546
|
+
}
|
547
|
+
return new Promise<{
|
548
|
+
response: http.IncomingMessage;
|
549
|
+
body: GetActivationFromAudience200Response;
|
550
|
+
}>((resolve, reject) => {
|
551
|
+
localVarRequest(
|
552
|
+
localVarRequestOptions,
|
553
|
+
(error, response, body) => {
|
554
|
+
if (error) {
|
555
|
+
reject(error);
|
556
|
+
} else {
|
557
|
+
if (
|
558
|
+
response.statusCode &&
|
559
|
+
response.statusCode >= 200 &&
|
560
|
+
response.statusCode <= 299
|
561
|
+
) {
|
562
|
+
body = ObjectSerializer.deserialize(
|
563
|
+
body,
|
564
|
+
'GetActivationFromAudience200Response'
|
565
|
+
);
|
566
|
+
resolve({ response: response, body: body });
|
567
|
+
} else {
|
568
|
+
reject(
|
569
|
+
new HttpError(
|
570
|
+
response,
|
571
|
+
body,
|
572
|
+
response.statusCode
|
573
|
+
)
|
574
|
+
);
|
575
|
+
}
|
576
|
+
}
|
577
|
+
}
|
578
|
+
);
|
579
|
+
});
|
580
|
+
});
|
581
|
+
}
|
582
|
+
/**
|
583
|
+
* Lists all Activations. The rate limit for this endpoint is 60 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.
|
584
|
+
* @summary List Activations from Audience
|
585
|
+
* @param spaceId
|
586
|
+
* @param audienceId
|
587
|
+
* @param workspaceId The workspace id This parameter exists in alpha.
|
588
|
+
* @param pagination Optional pagination. This parameter exists in alpha.
|
589
|
+
*/
|
590
|
+
public async listActivationsFromAudience(
|
591
|
+
spaceId: string,
|
592
|
+
audienceId: string,
|
593
|
+
workspaceId: string,
|
594
|
+
pagination?: PaginationInput,
|
595
|
+
options: { headers: { [name: string]: string } } = { headers: {} }
|
596
|
+
): Promise<{
|
597
|
+
response: http.IncomingMessage;
|
598
|
+
body: ListActivationsFromAudience200Response;
|
599
|
+
}> {
|
600
|
+
const localVarPath =
|
601
|
+
this.basePath +
|
602
|
+
'/spaces/{spaceId}/audiences/{audienceId}/activations'
|
603
|
+
.replace(
|
604
|
+
'{' + 'spaceId' + '}',
|
605
|
+
encodeURIComponent(String(spaceId))
|
606
|
+
)
|
607
|
+
.replace(
|
608
|
+
'{' + 'audienceId' + '}',
|
609
|
+
encodeURIComponent(String(audienceId))
|
610
|
+
);
|
611
|
+
let localVarQueryParameters: any = {};
|
612
|
+
let localVarHeaderParams: any = (<any>Object).assign(
|
613
|
+
{},
|
614
|
+
this._defaultHeaders
|
615
|
+
);
|
616
|
+
const produces = [
|
617
|
+
'application/vnd.segment.v1alpha+json',
|
618
|
+
'application/json',
|
619
|
+
];
|
620
|
+
// give precedence to 'application/json'
|
621
|
+
if (produces.indexOf('application/json') >= 0) {
|
622
|
+
localVarHeaderParams.Accept = 'application/json';
|
623
|
+
} else {
|
624
|
+
localVarHeaderParams.Accept = produces.join(',');
|
625
|
+
}
|
626
|
+
let localVarFormParams: any = {};
|
627
|
+
|
628
|
+
// verify required parameter 'spaceId' is not null or undefined
|
629
|
+
if (spaceId === null || spaceId === undefined) {
|
630
|
+
throw new Error(
|
631
|
+
'Required parameter spaceId was null or undefined when calling listActivationsFromAudience.'
|
632
|
+
);
|
633
|
+
}
|
634
|
+
|
635
|
+
// verify required parameter 'audienceId' is not null or undefined
|
636
|
+
if (audienceId === null || audienceId === undefined) {
|
637
|
+
throw new Error(
|
638
|
+
'Required parameter audienceId was null or undefined when calling listActivationsFromAudience.'
|
639
|
+
);
|
640
|
+
}
|
641
|
+
|
642
|
+
// verify required parameter 'workspaceId' is not null or undefined
|
643
|
+
if (workspaceId === null || workspaceId === undefined) {
|
644
|
+
throw new Error(
|
645
|
+
'Required parameter workspaceId was null or undefined when calling listActivationsFromAudience.'
|
646
|
+
);
|
647
|
+
}
|
648
|
+
|
649
|
+
if (workspaceId !== undefined) {
|
650
|
+
localVarQueryParameters['workspaceId'] = ObjectSerializer.serialize(
|
651
|
+
workspaceId,
|
652
|
+
'string'
|
653
|
+
);
|
654
|
+
}
|
655
|
+
|
656
|
+
if (pagination !== undefined) {
|
657
|
+
localVarQueryParameters['pagination'] = ObjectSerializer.serialize(
|
658
|
+
pagination,
|
659
|
+
'PaginationInput'
|
660
|
+
);
|
661
|
+
}
|
662
|
+
|
663
|
+
(<any>Object).assign(localVarHeaderParams, options.headers);
|
664
|
+
|
665
|
+
let localVarUseFormData = false;
|
666
|
+
|
667
|
+
let localVarRequestOptions: localVarRequest.Options = {
|
668
|
+
method: 'GET',
|
669
|
+
qs: localVarQueryParameters,
|
670
|
+
headers: localVarHeaderParams,
|
671
|
+
uri: localVarPath,
|
672
|
+
useQuerystring: this._useQuerystring,
|
673
|
+
json: true,
|
674
|
+
};
|
675
|
+
|
676
|
+
let authenticationPromise = Promise.resolve();
|
677
|
+
if (this.authentications.token.accessToken) {
|
678
|
+
authenticationPromise = authenticationPromise.then(() =>
|
679
|
+
this.authentications.token.applyToRequest(
|
680
|
+
localVarRequestOptions
|
681
|
+
)
|
682
|
+
);
|
683
|
+
}
|
684
|
+
authenticationPromise = authenticationPromise.then(() =>
|
685
|
+
this.authentications.default.applyToRequest(localVarRequestOptions)
|
686
|
+
);
|
687
|
+
|
688
|
+
let interceptorPromise = authenticationPromise;
|
689
|
+
for (const interceptor of this.interceptors) {
|
690
|
+
interceptorPromise = interceptorPromise.then(() =>
|
691
|
+
interceptor(localVarRequestOptions)
|
692
|
+
);
|
693
|
+
}
|
694
|
+
|
695
|
+
return interceptorPromise.then(() => {
|
696
|
+
if (Object.keys(localVarFormParams).length) {
|
697
|
+
if (localVarUseFormData) {
|
698
|
+
(<any>localVarRequestOptions).formData = localVarFormParams;
|
699
|
+
} else {
|
700
|
+
localVarRequestOptions.form = localVarFormParams;
|
701
|
+
}
|
702
|
+
}
|
703
|
+
return new Promise<{
|
704
|
+
response: http.IncomingMessage;
|
705
|
+
body: ListActivationsFromAudience200Response;
|
706
|
+
}>((resolve, reject) => {
|
707
|
+
localVarRequest(
|
708
|
+
localVarRequestOptions,
|
709
|
+
(error, response, body) => {
|
710
|
+
if (error) {
|
711
|
+
reject(error);
|
712
|
+
} else {
|
713
|
+
if (
|
714
|
+
response.statusCode &&
|
715
|
+
response.statusCode >= 200 &&
|
716
|
+
response.statusCode <= 299
|
717
|
+
) {
|
718
|
+
body = ObjectSerializer.deserialize(
|
719
|
+
body,
|
720
|
+
'ListActivationsFromAudience200Response'
|
721
|
+
);
|
722
|
+
resolve({ response: response, body: body });
|
723
|
+
} else {
|
724
|
+
reject(
|
725
|
+
new HttpError(
|
726
|
+
response,
|
727
|
+
body,
|
728
|
+
response.statusCode
|
729
|
+
)
|
730
|
+
);
|
731
|
+
}
|
732
|
+
}
|
733
|
+
}
|
734
|
+
);
|
735
|
+
});
|
736
|
+
});
|
737
|
+
}
|
738
|
+
/**
|
739
|
+
* Deletes an Activation. The rate limit for this endpoint is 10 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.
|
740
|
+
* @summary Remove Activation from Audience
|
741
|
+
* @param spaceId
|
742
|
+
* @param audienceId
|
743
|
+
* @param id
|
744
|
+
* @param workspaceId The workspace id This parameter exists in alpha.
|
745
|
+
*/
|
746
|
+
public async removeActivationFromAudience(
|
747
|
+
spaceId: string,
|
748
|
+
audienceId: string,
|
749
|
+
id: string,
|
750
|
+
workspaceId: string,
|
751
|
+
options: { headers: { [name: string]: string } } = { headers: {} }
|
752
|
+
): Promise<{
|
753
|
+
response: http.IncomingMessage;
|
754
|
+
body: RemoveActivationFromAudience200Response;
|
755
|
+
}> {
|
756
|
+
const localVarPath =
|
757
|
+
this.basePath +
|
758
|
+
'/spaces/{spaceId}/audiences/{audienceId}/activations/{id}'
|
759
|
+
.replace(
|
760
|
+
'{' + 'spaceId' + '}',
|
761
|
+
encodeURIComponent(String(spaceId))
|
762
|
+
)
|
763
|
+
.replace(
|
764
|
+
'{' + 'audienceId' + '}',
|
765
|
+
encodeURIComponent(String(audienceId))
|
766
|
+
)
|
767
|
+
.replace('{' + 'id' + '}', encodeURIComponent(String(id)));
|
768
|
+
let localVarQueryParameters: any = {};
|
769
|
+
let localVarHeaderParams: any = (<any>Object).assign(
|
770
|
+
{},
|
771
|
+
this._defaultHeaders
|
772
|
+
);
|
773
|
+
const produces = [
|
774
|
+
'application/vnd.segment.v1alpha+json',
|
775
|
+
'application/json',
|
776
|
+
];
|
777
|
+
// give precedence to 'application/json'
|
778
|
+
if (produces.indexOf('application/json') >= 0) {
|
779
|
+
localVarHeaderParams.Accept = 'application/json';
|
780
|
+
} else {
|
781
|
+
localVarHeaderParams.Accept = produces.join(',');
|
782
|
+
}
|
783
|
+
let localVarFormParams: any = {};
|
784
|
+
|
785
|
+
// verify required parameter 'spaceId' is not null or undefined
|
786
|
+
if (spaceId === null || spaceId === undefined) {
|
787
|
+
throw new Error(
|
788
|
+
'Required parameter spaceId was null or undefined when calling removeActivationFromAudience.'
|
789
|
+
);
|
790
|
+
}
|
791
|
+
|
792
|
+
// verify required parameter 'audienceId' is not null or undefined
|
793
|
+
if (audienceId === null || audienceId === undefined) {
|
794
|
+
throw new Error(
|
795
|
+
'Required parameter audienceId was null or undefined when calling removeActivationFromAudience.'
|
796
|
+
);
|
797
|
+
}
|
798
|
+
|
799
|
+
// verify required parameter 'id' is not null or undefined
|
800
|
+
if (id === null || id === undefined) {
|
801
|
+
throw new Error(
|
802
|
+
'Required parameter id was null or undefined when calling removeActivationFromAudience.'
|
803
|
+
);
|
804
|
+
}
|
805
|
+
|
806
|
+
// verify required parameter 'workspaceId' is not null or undefined
|
807
|
+
if (workspaceId === null || workspaceId === undefined) {
|
808
|
+
throw new Error(
|
809
|
+
'Required parameter workspaceId was null or undefined when calling removeActivationFromAudience.'
|
810
|
+
);
|
811
|
+
}
|
812
|
+
|
813
|
+
if (workspaceId !== undefined) {
|
814
|
+
localVarQueryParameters['workspaceId'] = ObjectSerializer.serialize(
|
815
|
+
workspaceId,
|
816
|
+
'string'
|
817
|
+
);
|
818
|
+
}
|
819
|
+
|
820
|
+
(<any>Object).assign(localVarHeaderParams, options.headers);
|
821
|
+
|
822
|
+
let localVarUseFormData = false;
|
823
|
+
|
824
|
+
let localVarRequestOptions: localVarRequest.Options = {
|
825
|
+
method: 'DELETE',
|
826
|
+
qs: localVarQueryParameters,
|
827
|
+
headers: localVarHeaderParams,
|
828
|
+
uri: localVarPath,
|
829
|
+
useQuerystring: this._useQuerystring,
|
830
|
+
json: true,
|
831
|
+
};
|
832
|
+
|
833
|
+
let authenticationPromise = Promise.resolve();
|
834
|
+
if (this.authentications.token.accessToken) {
|
835
|
+
authenticationPromise = authenticationPromise.then(() =>
|
836
|
+
this.authentications.token.applyToRequest(
|
837
|
+
localVarRequestOptions
|
838
|
+
)
|
839
|
+
);
|
840
|
+
}
|
841
|
+
authenticationPromise = authenticationPromise.then(() =>
|
842
|
+
this.authentications.default.applyToRequest(localVarRequestOptions)
|
843
|
+
);
|
844
|
+
|
845
|
+
let interceptorPromise = authenticationPromise;
|
846
|
+
for (const interceptor of this.interceptors) {
|
847
|
+
interceptorPromise = interceptorPromise.then(() =>
|
848
|
+
interceptor(localVarRequestOptions)
|
849
|
+
);
|
850
|
+
}
|
851
|
+
|
852
|
+
return interceptorPromise.then(() => {
|
853
|
+
if (Object.keys(localVarFormParams).length) {
|
854
|
+
if (localVarUseFormData) {
|
855
|
+
(<any>localVarRequestOptions).formData = localVarFormParams;
|
856
|
+
} else {
|
857
|
+
localVarRequestOptions.form = localVarFormParams;
|
858
|
+
}
|
859
|
+
}
|
860
|
+
return new Promise<{
|
861
|
+
response: http.IncomingMessage;
|
862
|
+
body: RemoveActivationFromAudience200Response;
|
863
|
+
}>((resolve, reject) => {
|
864
|
+
localVarRequest(
|
865
|
+
localVarRequestOptions,
|
866
|
+
(error, response, body) => {
|
867
|
+
if (error) {
|
868
|
+
reject(error);
|
869
|
+
} else {
|
870
|
+
if (
|
871
|
+
response.statusCode &&
|
872
|
+
response.statusCode >= 200 &&
|
873
|
+
response.statusCode <= 299
|
874
|
+
) {
|
875
|
+
body = ObjectSerializer.deserialize(
|
876
|
+
body,
|
877
|
+
'RemoveActivationFromAudience200Response'
|
878
|
+
);
|
879
|
+
resolve({ response: response, body: body });
|
880
|
+
} else {
|
881
|
+
reject(
|
882
|
+
new HttpError(
|
883
|
+
response,
|
884
|
+
body,
|
885
|
+
response.statusCode
|
886
|
+
)
|
887
|
+
);
|
888
|
+
}
|
889
|
+
}
|
890
|
+
}
|
891
|
+
);
|
892
|
+
});
|
893
|
+
});
|
894
|
+
}
|
895
|
+
/**
|
896
|
+
* Updates an Activation. The rate limit for this endpoint is 10 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.
|
897
|
+
* @summary Update Activation for Audience
|
898
|
+
* @param spaceId
|
899
|
+
* @param audienceId
|
900
|
+
* @param id
|
901
|
+
* @param UpdateActivationForAudienceAlphaInput
|
902
|
+
*/
|
903
|
+
public async updateActivationForAudience(
|
904
|
+
spaceId: string,
|
905
|
+
audienceId: string,
|
906
|
+
id: string,
|
907
|
+
UpdateActivationForAudienceAlphaInput: UpdateActivationForAudienceAlphaInput,
|
908
|
+
options: { headers: { [name: string]: string } } = { headers: {} }
|
909
|
+
): Promise<{
|
910
|
+
response: http.IncomingMessage;
|
911
|
+
body: UpdateActivationForAudience200Response;
|
912
|
+
}> {
|
913
|
+
const localVarPath =
|
914
|
+
this.basePath +
|
915
|
+
'/spaces/{spaceId}/audiences/{audienceId}/activations/{id}'
|
916
|
+
.replace(
|
917
|
+
'{' + 'spaceId' + '}',
|
918
|
+
encodeURIComponent(String(spaceId))
|
919
|
+
)
|
920
|
+
.replace(
|
921
|
+
'{' + 'audienceId' + '}',
|
922
|
+
encodeURIComponent(String(audienceId))
|
923
|
+
)
|
924
|
+
.replace('{' + 'id' + '}', encodeURIComponent(String(id)));
|
925
|
+
let localVarQueryParameters: any = {};
|
926
|
+
let localVarHeaderParams: any = (<any>Object).assign(
|
927
|
+
{},
|
928
|
+
this._defaultHeaders
|
929
|
+
);
|
930
|
+
const produces = [
|
931
|
+
'application/vnd.segment.v1alpha+json',
|
932
|
+
'application/json',
|
933
|
+
];
|
934
|
+
// give precedence to 'application/json'
|
935
|
+
if (produces.indexOf('application/json') >= 0) {
|
936
|
+
localVarHeaderParams.Accept = 'application/json';
|
937
|
+
} else {
|
938
|
+
localVarHeaderParams.Accept = produces.join(',');
|
939
|
+
}
|
940
|
+
let localVarFormParams: any = {};
|
941
|
+
|
942
|
+
// verify required parameter 'spaceId' is not null or undefined
|
943
|
+
if (spaceId === null || spaceId === undefined) {
|
944
|
+
throw new Error(
|
945
|
+
'Required parameter spaceId was null or undefined when calling updateActivationForAudience.'
|
946
|
+
);
|
947
|
+
}
|
948
|
+
|
949
|
+
// verify required parameter 'audienceId' is not null or undefined
|
950
|
+
if (audienceId === null || audienceId === undefined) {
|
951
|
+
throw new Error(
|
952
|
+
'Required parameter audienceId was null or undefined when calling updateActivationForAudience.'
|
953
|
+
);
|
954
|
+
}
|
955
|
+
|
956
|
+
// verify required parameter 'id' is not null or undefined
|
957
|
+
if (id === null || id === undefined) {
|
958
|
+
throw new Error(
|
959
|
+
'Required parameter id was null or undefined when calling updateActivationForAudience.'
|
960
|
+
);
|
961
|
+
}
|
962
|
+
|
963
|
+
// verify required parameter 'UpdateActivationForAudienceAlphaInput' is not null or undefined
|
964
|
+
if (
|
965
|
+
UpdateActivationForAudienceAlphaInput === null ||
|
966
|
+
UpdateActivationForAudienceAlphaInput === undefined
|
967
|
+
) {
|
968
|
+
throw new Error(
|
969
|
+
'Required parameter UpdateActivationForAudienceAlphaInput was null or undefined when calling updateActivationForAudience.'
|
970
|
+
);
|
971
|
+
}
|
972
|
+
|
973
|
+
(<any>Object).assign(localVarHeaderParams, options.headers);
|
974
|
+
|
975
|
+
let localVarUseFormData = false;
|
976
|
+
|
977
|
+
let localVarRequestOptions: localVarRequest.Options = {
|
978
|
+
method: 'PATCH',
|
979
|
+
qs: localVarQueryParameters,
|
980
|
+
headers: localVarHeaderParams,
|
981
|
+
uri: localVarPath,
|
982
|
+
useQuerystring: this._useQuerystring,
|
983
|
+
json: true,
|
984
|
+
body: ObjectSerializer.serialize(
|
985
|
+
UpdateActivationForAudienceAlphaInput,
|
986
|
+
'UpdateActivationForAudienceAlphaInput'
|
987
|
+
),
|
988
|
+
};
|
989
|
+
|
990
|
+
let authenticationPromise = Promise.resolve();
|
991
|
+
if (this.authentications.token.accessToken) {
|
992
|
+
authenticationPromise = authenticationPromise.then(() =>
|
993
|
+
this.authentications.token.applyToRequest(
|
994
|
+
localVarRequestOptions
|
995
|
+
)
|
996
|
+
);
|
997
|
+
}
|
998
|
+
authenticationPromise = authenticationPromise.then(() =>
|
999
|
+
this.authentications.default.applyToRequest(localVarRequestOptions)
|
1000
|
+
);
|
1001
|
+
|
1002
|
+
let interceptorPromise = authenticationPromise;
|
1003
|
+
for (const interceptor of this.interceptors) {
|
1004
|
+
interceptorPromise = interceptorPromise.then(() =>
|
1005
|
+
interceptor(localVarRequestOptions)
|
1006
|
+
);
|
1007
|
+
}
|
1008
|
+
|
1009
|
+
return interceptorPromise.then(() => {
|
1010
|
+
if (Object.keys(localVarFormParams).length) {
|
1011
|
+
if (localVarUseFormData) {
|
1012
|
+
(<any>localVarRequestOptions).formData = localVarFormParams;
|
1013
|
+
} else {
|
1014
|
+
localVarRequestOptions.form = localVarFormParams;
|
1015
|
+
}
|
1016
|
+
}
|
1017
|
+
return new Promise<{
|
1018
|
+
response: http.IncomingMessage;
|
1019
|
+
body: UpdateActivationForAudience200Response;
|
1020
|
+
}>((resolve, reject) => {
|
1021
|
+
localVarRequest(
|
1022
|
+
localVarRequestOptions,
|
1023
|
+
(error, response, body) => {
|
1024
|
+
if (error) {
|
1025
|
+
reject(error);
|
1026
|
+
} else {
|
1027
|
+
if (
|
1028
|
+
response.statusCode &&
|
1029
|
+
response.statusCode >= 200 &&
|
1030
|
+
response.statusCode <= 299
|
1031
|
+
) {
|
1032
|
+
body = ObjectSerializer.deserialize(
|
1033
|
+
body,
|
1034
|
+
'UpdateActivationForAudience200Response'
|
1035
|
+
);
|
1036
|
+
resolve({ response: response, body: body });
|
1037
|
+
} else {
|
1038
|
+
reject(
|
1039
|
+
new HttpError(
|
1040
|
+
response,
|
1041
|
+
body,
|
1042
|
+
response.statusCode
|
1043
|
+
)
|
1044
|
+
);
|
1045
|
+
}
|
1046
|
+
}
|
1047
|
+
}
|
1048
|
+
);
|
1049
|
+
});
|
1050
|
+
});
|
1051
|
+
}
|
1052
|
+
}
|