@segment/public-api-sdk-typescript 36.1.1-b7589 → 36.2.0-b7598
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/apis.ts +8 -2
- package/api/audiencesApi.ts +646 -0
- package/api/auditTrailApi.ts +1 -1
- package/api/catalogApi.ts +1 -1
- package/api/computedTraitsApi.ts +647 -0
- package/api/deletionAndSuppressionApi.ts +4 -4
- package/api/destinationFiltersApi.ts +4 -4
- package/api/destinationsApi.ts +4 -4
- package/api/edgeFunctionsApi.ts +1 -1
- package/api/eventsApi.ts +1 -1
- package/api/functionsApi.ts +1 -1
- package/api/iAMGroupsApi.ts +9 -9
- package/api/iAMRolesApi.ts +1 -1
- package/api/iAMUsersApi.ts +6 -6
- package/api/labelsApi.ts +3 -3
- package/api/monthlyTrackedUsersApi.ts +1 -1
- package/api/profilesSyncApi.ts +6 -6
- package/api/reverseETLApi.ts +4 -4
- package/api/selectiveSyncApi.ts +2 -2
- package/api/sourcesApi.ts +5 -5
- package/api/spacesApi.ts +1 -1
- package/api/testingApi.ts +1 -1
- package/api/trackingPlansApi.ts +3 -3
- package/api/transformationsApi.ts +4 -4
- package/api/warehousesApi.ts +6 -6
- package/api/workspacesApi.ts +1 -1
- package/dist/api/apis.d.ts +5 -1
- package/dist/api/apis.js +8 -2
- package/dist/api/apis.js.map +1 -1
- package/dist/api/audiencesApi.d.ts +64 -0
- package/dist/api/audiencesApi.js +480 -0
- package/dist/api/audiencesApi.js.map +1 -0
- package/dist/api/computedTraitsApi.d.ts +64 -0
- package/dist/api/computedTraitsApi.js +481 -0
- package/dist/api/computedTraitsApi.js.map +1 -0
- package/dist/model/audience.d.ts +23 -0
- package/dist/model/audience.js +66 -0
- package/dist/model/audience.js.map +1 -0
- package/dist/model/audienceSummary.d.ts +23 -0
- package/dist/model/audienceSummary.js +66 -0
- package/dist/model/audienceSummary.js.map +1 -0
- package/dist/model/computedTrait.d.ts +23 -0
- package/dist/model/computedTrait.js +66 -0
- package/dist/model/computedTrait.js.map +1 -0
- package/dist/model/computedTraitSummary.d.ts +23 -0
- package/dist/model/computedTraitSummary.js +66 -0
- package/dist/model/computedTraitSummary.js.map +1 -0
- package/dist/model/getAudience200Response.d.ts +15 -0
- package/dist/model/getAudience200Response.js +21 -0
- package/dist/model/getAudience200Response.js.map +1 -0
- package/dist/model/getAudienceAlphaOutput.d.ts +15 -0
- package/dist/model/getAudienceAlphaOutput.js +21 -0
- package/dist/model/getAudienceAlphaOutput.js.map +1 -0
- package/dist/model/getComputedTrait200Response.d.ts +15 -0
- package/dist/model/getComputedTrait200Response.js +21 -0
- package/dist/model/getComputedTrait200Response.js.map +1 -0
- package/dist/model/getComputedTraitAlphaOutput.d.ts +15 -0
- package/dist/model/getComputedTraitAlphaOutput.js +21 -0
- package/dist/model/getComputedTraitAlphaOutput.js.map +1 -0
- package/dist/model/getSubscriptionRequest.d.ts +2 -0
- package/dist/model/getSubscriptionRequest.js +2 -0
- package/dist/model/getSubscriptionRequest.js.map +1 -1
- package/dist/model/listAudiences200Response.d.ts +15 -0
- package/dist/model/listAudiences200Response.js +21 -0
- package/dist/model/listAudiences200Response.js.map +1 -0
- package/dist/model/listAudiencesAlphaOutput.d.ts +17 -0
- package/dist/model/listAudiencesAlphaOutput.js +26 -0
- package/dist/model/listAudiencesAlphaOutput.js.map +1 -0
- package/dist/model/listComputedTraits200Response.d.ts +15 -0
- package/dist/model/listComputedTraits200Response.js +21 -0
- package/dist/model/listComputedTraits200Response.js.map +1 -0
- package/dist/model/listComputedTraitsAlphaOutput.d.ts +17 -0
- package/dist/model/listComputedTraitsAlphaOutput.js +26 -0
- package/dist/model/listComputedTraitsAlphaOutput.js.map +1 -0
- package/dist/model/messagesSubscriptionRequest.d.ts +2 -0
- package/dist/model/messagesSubscriptionRequest.js +2 -0
- package/dist/model/messagesSubscriptionRequest.js.map +1 -1
- package/dist/model/models.d.ts +22 -0
- package/dist/model/models.js +68 -0
- package/dist/model/models.js.map +1 -1
- package/dist/model/removeAudienceFromSpace200Response.d.ts +15 -0
- package/dist/model/removeAudienceFromSpace200Response.js +21 -0
- package/dist/model/removeAudienceFromSpace200Response.js.map +1 -0
- package/dist/model/removeAudienceFromSpaceAlphaOutput.d.ts +19 -0
- package/dist/model/removeAudienceFromSpaceAlphaOutput.js +28 -0
- package/dist/model/removeAudienceFromSpaceAlphaOutput.js.map +1 -0
- package/dist/model/removeComputedTraitFromSpace200Response.d.ts +15 -0
- package/dist/model/removeComputedTraitFromSpace200Response.js +21 -0
- package/dist/model/removeComputedTraitFromSpace200Response.js.map +1 -0
- package/dist/model/removeComputedTraitFromSpaceAlphaOutput.d.ts +19 -0
- package/dist/model/removeComputedTraitFromSpaceAlphaOutput.js +28 -0
- package/dist/model/removeComputedTraitFromSpaceAlphaOutput.js.map +1 -0
- package/dist/model/updateAudienceForSpace200Response.d.ts +15 -0
- package/dist/model/updateAudienceForSpace200Response.js +21 -0
- package/dist/model/updateAudienceForSpace200Response.js.map +1 -0
- package/dist/model/updateAudienceForSpaceAlphaOutput.d.ts +15 -0
- package/dist/model/updateAudienceForSpaceAlphaOutput.js +21 -0
- package/dist/model/updateAudienceForSpaceAlphaOutput.js.map +1 -0
- package/dist/model/updateAudienceForSpaceInput.d.ts +14 -0
- package/dist/model/updateAudienceForSpaceInput.js +21 -0
- package/dist/model/updateAudienceForSpaceInput.js.map +1 -0
- package/dist/model/updateComputedTraitForSpace200Response.d.ts +15 -0
- package/dist/model/updateComputedTraitForSpace200Response.js +21 -0
- package/dist/model/updateComputedTraitForSpace200Response.js.map +1 -0
- package/dist/model/updateComputedTraitForSpaceAlphaInput.d.ts +14 -0
- package/dist/model/updateComputedTraitForSpaceAlphaInput.js +21 -0
- package/dist/model/updateComputedTraitForSpaceAlphaInput.js.map +1 -0
- package/dist/model/updateComputedTraitForSpaceAlphaOutput.d.ts +15 -0
- package/dist/model/updateComputedTraitForSpaceAlphaOutput.js +21 -0
- package/dist/model/updateComputedTraitForSpaceAlphaOutput.js.map +1 -0
- package/model/aPICallSnapshotV1.ts +1 -1
- package/model/accessPermissionV1.ts +1 -1
- package/model/addConnectionFromSourceToWarehouse200Response.ts +1 -1
- package/model/addConnectionFromSourceToWarehouseV1Output.ts +1 -1
- 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/audience.ts +123 -0
- package/model/audienceSummary.ts +122 -0
- 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/commonSourceSettingsV1.ts +1 -1
- package/model/computedTrait.ts +123 -0
- package/model/computedTraitSummary.ts +122 -0
- package/model/contact.ts +1 -1
- package/model/createCloudSourceRegulation200Response.ts +1 -1
- package/model/createCloudSourceRegulationV1Input.ts +1 -1
- package/model/createCloudSourceRegulationV1Output.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/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/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/createInvites200Response.ts +1 -1
- package/model/createInvitesV1Input.ts +1 -1
- package/model/createInvitesV1Output.ts +1 -1
- package/model/createLabel200Response.ts +1 -1
- package/model/createLabelV1Input.ts +1 -1
- package/model/createLabelV1Output.ts +1 -1
- package/model/createProfilesWarehouse200Response.ts +1 -1
- package/model/createProfilesWarehouseAlphaInput.ts +1 -1
- package/model/createProfilesWarehouseAlphaOutput.ts +1 -1
- package/model/createReverseEtlModel200Response.ts +1 -1
- package/model/createReverseEtlModelInput.ts +1 -1
- package/model/createReverseEtlModelOutput.ts +1 -1
- package/model/createSource200Response.ts +1 -1
- package/model/createSource200Response1.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/createWarehouse200Response.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/deleteDestination200Response.ts +1 -1
- package/model/deleteDestinationV1Output.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/deliveryMetricsSummary.ts +1 -1
- package/model/deliveryMetricsSummaryBeta.ts +1 -1
- package/model/destination.ts +1 -1
- package/model/destination1.ts +1 -1
- package/model/destination2.ts +1 -1
- package/model/destinationFilterActionV1.ts +1 -1
- package/model/destinationFilterV1.ts +1 -1
- package/model/destinationMetadata.ts +1 -1
- 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/echo200Response.ts +1 -1
- package/model/echo200Response1.ts +1 -1
- package/model/echoAlphaOutput.ts +1 -1
- package/model/echoV1Output.ts +1 -1
- package/model/edgeFunctions.ts +1 -1
- package/model/edgeFunctions1.ts +1 -1
- package/model/edgeFunctionsAlpha.ts +1 -1
- package/model/eventSourceV1.ts +1 -1
- package/model/fQLDefinedPropertyV1.ts +1 -1
- package/model/filter.ts +1 -1
- package/model/filter1.ts +1 -1
- package/model/filter2.ts +1 -1
- package/model/filter3.ts +1 -1
- package/model/function.ts +1 -1
- package/model/function1.ts +1 -1
- package/model/function2.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/getAdvancedSyncScheduleFromWarehouse200Response.ts +1 -1
- package/model/getAdvancedSyncScheduleFromWarehouseV1Output.ts +1 -1
- package/model/getAudience200Response.ts +36 -0
- package/model/getAudienceAlphaOutput.ts +39 -0
- package/model/getComputedTrait200Response.ts +36 -0
- package/model/getComputedTraitAlphaOutput.ts +39 -0
- 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/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/getEventsVolumeFromWorkspace200Response.ts +1 -1
- package/model/getEventsVolumeFromWorkspaceV1Output.ts +1 -1
- package/model/getEventsVolumeFromWorkspaceV1Query.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/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/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 +3 -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/group.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/identify.ts +1 -1
- package/model/identifySourceSettingsV1.ts +1 -1
- package/model/input.ts +1 -1
- package/model/insertFunctionInstance.ts +1 -1
- package/model/insertFunctionInstance1.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/label.ts +1 -1
- package/model/label1.ts +1 -1
- package/model/labelAlpha.ts +1 -1
- package/model/labelV1.ts +1 -1
- package/model/listAudiences200Response.ts +36 -0
- package/model/listAudiencesAlphaOutput.ts +49 -0
- package/model/listAuditEvents200Response.ts +1 -1
- package/model/listAuditEventsV1Output.ts +1 -1
- package/model/listComputedTraits200Response.ts +36 -0
- package/model/listComputedTraitsAlphaOutput.ts +49 -0
- 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/listFiltersFromDestination200Response.ts +1 -1
- package/model/listFiltersFromDestinationV1Output.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/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/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/logos.ts +1 -1
- package/model/logos1.ts +1 -1
- package/model/logos2.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 +3 -1
- package/model/metadata.ts +1 -1
- package/model/metadata1.ts +1 -1
- package/model/metadata2.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 +75 -0
- package/model/mtuSnapshotV1.ts +1 -1
- package/model/pagination.ts +1 -1
- package/model/pagination1.ts +1 -1
- package/model/paginationInput.ts +1 -1
- package/model/paginationOutput.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/profilesWarehouse.ts +1 -1
- package/model/profilesWarehouse1.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/query.ts +1 -1
- package/model/regulation.ts +1 -1
- package/model/regulationListEntryV1.ts +1 -1
- package/model/removeAudienceFromSpace200Response.ts +36 -0
- package/model/removeAudienceFromSpaceAlphaOutput.ts +47 -0
- package/model/removeComputedTraitFromSpace200Response.ts +36 -0
- package/model/removeComputedTraitFromSpaceAlphaOutput.ts +47 -0
- 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/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/reverseEtlModel.ts +1 -1
- package/model/reverseEtlModel1.ts +1 -1
- package/model/roleV1.ts +1 -1
- package/model/ruleV1.ts +1 -1
- package/model/schedule.ts +1 -1
- package/model/schedule1.ts +1 -1
- package/model/schedule2.ts +1 -1
- package/model/settings.ts +1 -1
- package/model/settings1.ts +1 -1
- package/model/source.ts +1 -1
- package/model/source1.ts +1 -1
- package/model/source2.ts +1 -1
- package/model/source3.ts +1 -1
- package/model/source4.ts +1 -1
- package/model/source5.ts +1 -1
- package/model/source6.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/sourceMetadata.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/streamStatusV1.ts +1 -1
- package/model/subscription.ts +1 -1
- package/model/supportedFeatures.ts +1 -1
- package/model/supportedMethods.ts +1 -1
- package/model/supportedPlatforms.ts +1 -1
- package/model/suppressedInner.ts +1 -1
- package/model/syncNoticeV1.ts +1 -1
- package/model/syncV1.ts +1 -1
- package/model/track.ts +1 -1
- package/model/trackSourceSettingsV1.ts +1 -1
- package/model/trackingPlan.ts +1 -1
- package/model/trackingPlan1.ts +1 -1
- package/model/trackingPlanV1.ts +1 -1
- package/model/transformation.ts +1 -1
- package/model/transformation1.ts +1 -1
- package/model/transformation2.ts +1 -1
- package/model/transformation3.ts +1 -1
- package/model/transformation4.ts +1 -1
- package/model/transformation5.ts +1 -1
- package/model/transformationBeta.ts +1 -1
- package/model/transformationV1.ts +1 -1
- package/model/updateAudienceForSpace200Response.ts +36 -0
- package/model/updateAudienceForSpaceAlphaOutput.ts +39 -0
- package/model/updateAudienceForSpaceInput.ts +41 -0
- package/model/updateComputedTraitForSpace200Response.ts +36 -0
- package/model/updateComputedTraitForSpaceAlphaInput.ts +41 -0
- package/model/updateComputedTraitForSpaceAlphaOutput.ts +39 -0
- package/model/updateDestination200Response.ts +1 -1
- package/model/updateDestinationV1Input.ts +1 -1
- package/model/updateDestinationV1Output.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/user.ts +1 -1
- package/model/userGroup.ts +1 -1
- package/model/userGroup1.ts +1 -1
- package/model/userGroup2.ts +1 -1
- package/model/userGroup3.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/version1.ts +1 -1
- package/model/warehouse.ts +1 -1
- package/model/warehouse1.ts +1 -1
- package/model/warehouse2.ts +1 -1
- package/model/warehouseAdvancedSyncV1.ts +1 -1
- package/model/warehouseMetadata.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/workspace.ts +1 -1
- package/model/workspaceV1.ts +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,646 @@
|
|
|
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: 36.2.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 { GetAudience200Response } from '../model/getAudience200Response';
|
|
18
|
+
import { ListAudiences200Response } from '../model/listAudiences200Response';
|
|
19
|
+
import { PaginationInput } from '../model/paginationInput';
|
|
20
|
+
import { RemoveAudienceFromSpace200Response } from '../model/removeAudienceFromSpace200Response';
|
|
21
|
+
import { RequestErrorEnvelope } from '../model/requestErrorEnvelope';
|
|
22
|
+
import { UpdateAudienceForSpace200Response } from '../model/updateAudienceForSpace200Response';
|
|
23
|
+
import { UpdateAudienceForSpaceInput } from '../model/updateAudienceForSpaceInput';
|
|
24
|
+
|
|
25
|
+
import {
|
|
26
|
+
ObjectSerializer,
|
|
27
|
+
Authentication,
|
|
28
|
+
VoidAuth,
|
|
29
|
+
Interceptor,
|
|
30
|
+
} from '../model/models';
|
|
31
|
+
import {
|
|
32
|
+
HttpBasicAuth,
|
|
33
|
+
HttpBearerAuth,
|
|
34
|
+
ApiKeyAuth,
|
|
35
|
+
OAuth,
|
|
36
|
+
} from '../model/models';
|
|
37
|
+
|
|
38
|
+
import { HttpError, RequestFile } from './apis';
|
|
39
|
+
|
|
40
|
+
let defaultBasePath = 'https://api.segmentapis.com';
|
|
41
|
+
|
|
42
|
+
// ===============================================
|
|
43
|
+
// This file is autogenerated - Please do not edit
|
|
44
|
+
// ===============================================
|
|
45
|
+
|
|
46
|
+
export enum AudiencesApiApiKeys {}
|
|
47
|
+
|
|
48
|
+
export class AudiencesApi {
|
|
49
|
+
protected _basePath = defaultBasePath;
|
|
50
|
+
protected _defaultHeaders: any = {};
|
|
51
|
+
protected _useQuerystring: boolean = false;
|
|
52
|
+
|
|
53
|
+
protected authentications = {
|
|
54
|
+
default: <Authentication>new VoidAuth(),
|
|
55
|
+
token: new HttpBearerAuth(),
|
|
56
|
+
};
|
|
57
|
+
|
|
58
|
+
protected interceptors: Interceptor[] = [];
|
|
59
|
+
|
|
60
|
+
constructor(basePath?: string);
|
|
61
|
+
constructor(
|
|
62
|
+
basePathOrUsername: string,
|
|
63
|
+
password?: string,
|
|
64
|
+
basePath?: string
|
|
65
|
+
) {
|
|
66
|
+
if (password) {
|
|
67
|
+
if (basePath) {
|
|
68
|
+
this.basePath = basePath;
|
|
69
|
+
}
|
|
70
|
+
} else {
|
|
71
|
+
if (basePathOrUsername) {
|
|
72
|
+
this.basePath = basePathOrUsername;
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
set useQuerystring(value: boolean) {
|
|
78
|
+
this._useQuerystring = value;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
set basePath(basePath: string) {
|
|
82
|
+
this._basePath = basePath;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
set defaultHeaders(defaultHeaders: any) {
|
|
86
|
+
this._defaultHeaders = defaultHeaders;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
get defaultHeaders() {
|
|
90
|
+
return this._defaultHeaders;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
get basePath() {
|
|
94
|
+
return this._basePath;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
public setDefaultAuthentication(auth: Authentication) {
|
|
98
|
+
this.authentications.default = auth;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
public setApiKey(key: AudiencesApiApiKeys, value: string) {
|
|
102
|
+
(this.authentications as any)[AudiencesApiApiKeys[key]].apiKey = value;
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
set accessToken(accessToken: string | (() => string)) {
|
|
106
|
+
this.authentications.token.accessToken = accessToken;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
public addInterceptor(interceptor: Interceptor) {
|
|
110
|
+
this.interceptors.push(interceptor);
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
/**
|
|
114
|
+
* Returns the Audience by id and spaceId. • This endpoint is in **Alpha** testing. Please submit any feedback by sending 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. The rate limit for this endpoint is 100 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.
|
|
115
|
+
* @summary Get Audience
|
|
116
|
+
* @param spaceId
|
|
117
|
+
* @param id
|
|
118
|
+
*/
|
|
119
|
+
public async getAudience(
|
|
120
|
+
spaceId: string,
|
|
121
|
+
id: string,
|
|
122
|
+
options: { headers: { [name: string]: string } } = { headers: {} }
|
|
123
|
+
): Promise<{
|
|
124
|
+
response: http.IncomingMessage;
|
|
125
|
+
body: GetAudience200Response;
|
|
126
|
+
}> {
|
|
127
|
+
const localVarPath =
|
|
128
|
+
this.basePath +
|
|
129
|
+
'/spaces/{spaceId}/audiences/{id}'
|
|
130
|
+
.replace(
|
|
131
|
+
'{' + 'spaceId' + '}',
|
|
132
|
+
encodeURIComponent(String(spaceId))
|
|
133
|
+
)
|
|
134
|
+
.replace('{' + 'id' + '}', encodeURIComponent(String(id)));
|
|
135
|
+
let localVarQueryParameters: any = {};
|
|
136
|
+
let localVarHeaderParams: any = (<any>Object).assign(
|
|
137
|
+
{},
|
|
138
|
+
this._defaultHeaders
|
|
139
|
+
);
|
|
140
|
+
const produces = [
|
|
141
|
+
'application/vnd.segment.v1alpha+json',
|
|
142
|
+
'application/json',
|
|
143
|
+
];
|
|
144
|
+
// give precedence to 'application/json'
|
|
145
|
+
if (produces.indexOf('application/json') >= 0) {
|
|
146
|
+
localVarHeaderParams.Accept = 'application/json';
|
|
147
|
+
} else {
|
|
148
|
+
localVarHeaderParams.Accept = produces.join(',');
|
|
149
|
+
}
|
|
150
|
+
let localVarFormParams: any = {};
|
|
151
|
+
|
|
152
|
+
// verify required parameter 'spaceId' is not null or undefined
|
|
153
|
+
if (spaceId === null || spaceId === undefined) {
|
|
154
|
+
throw new Error(
|
|
155
|
+
'Required parameter spaceId was null or undefined when calling getAudience.'
|
|
156
|
+
);
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
// verify required parameter 'id' is not null or undefined
|
|
160
|
+
if (id === null || id === undefined) {
|
|
161
|
+
throw new Error(
|
|
162
|
+
'Required parameter id was null or undefined when calling getAudience.'
|
|
163
|
+
);
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
(<any>Object).assign(localVarHeaderParams, options.headers);
|
|
167
|
+
|
|
168
|
+
let localVarUseFormData = false;
|
|
169
|
+
|
|
170
|
+
let localVarRequestOptions: localVarRequest.Options = {
|
|
171
|
+
method: 'GET',
|
|
172
|
+
qs: localVarQueryParameters,
|
|
173
|
+
headers: localVarHeaderParams,
|
|
174
|
+
uri: localVarPath,
|
|
175
|
+
useQuerystring: this._useQuerystring,
|
|
176
|
+
json: true,
|
|
177
|
+
};
|
|
178
|
+
|
|
179
|
+
let authenticationPromise = Promise.resolve();
|
|
180
|
+
if (this.authentications.token.accessToken) {
|
|
181
|
+
authenticationPromise = authenticationPromise.then(() =>
|
|
182
|
+
this.authentications.token.applyToRequest(
|
|
183
|
+
localVarRequestOptions
|
|
184
|
+
)
|
|
185
|
+
);
|
|
186
|
+
}
|
|
187
|
+
authenticationPromise = authenticationPromise.then(() =>
|
|
188
|
+
this.authentications.default.applyToRequest(localVarRequestOptions)
|
|
189
|
+
);
|
|
190
|
+
|
|
191
|
+
let interceptorPromise = authenticationPromise;
|
|
192
|
+
for (const interceptor of this.interceptors) {
|
|
193
|
+
interceptorPromise = interceptorPromise.then(() =>
|
|
194
|
+
interceptor(localVarRequestOptions)
|
|
195
|
+
);
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
return interceptorPromise.then(() => {
|
|
199
|
+
if (Object.keys(localVarFormParams).length) {
|
|
200
|
+
if (localVarUseFormData) {
|
|
201
|
+
(<any>localVarRequestOptions).formData = localVarFormParams;
|
|
202
|
+
} else {
|
|
203
|
+
localVarRequestOptions.form = localVarFormParams;
|
|
204
|
+
}
|
|
205
|
+
}
|
|
206
|
+
return new Promise<{
|
|
207
|
+
response: http.IncomingMessage;
|
|
208
|
+
body: GetAudience200Response;
|
|
209
|
+
}>((resolve, reject) => {
|
|
210
|
+
localVarRequest(
|
|
211
|
+
localVarRequestOptions,
|
|
212
|
+
(error, response, body) => {
|
|
213
|
+
if (error) {
|
|
214
|
+
reject(error);
|
|
215
|
+
} else {
|
|
216
|
+
if (
|
|
217
|
+
response.statusCode &&
|
|
218
|
+
response.statusCode >= 200 &&
|
|
219
|
+
response.statusCode <= 299
|
|
220
|
+
) {
|
|
221
|
+
body = ObjectSerializer.deserialize(
|
|
222
|
+
body,
|
|
223
|
+
'GetAudience200Response'
|
|
224
|
+
);
|
|
225
|
+
resolve({ response: response, body: body });
|
|
226
|
+
} else {
|
|
227
|
+
reject(
|
|
228
|
+
new HttpError(
|
|
229
|
+
response,
|
|
230
|
+
body,
|
|
231
|
+
response.statusCode
|
|
232
|
+
)
|
|
233
|
+
);
|
|
234
|
+
}
|
|
235
|
+
}
|
|
236
|
+
}
|
|
237
|
+
);
|
|
238
|
+
});
|
|
239
|
+
});
|
|
240
|
+
}
|
|
241
|
+
/**
|
|
242
|
+
* Returns Audiences by spaceId. • This endpoint is in **Alpha** testing. Please submit any feedback by sending 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. The rate limit for this endpoint is 25 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.
|
|
243
|
+
* @summary List Audiences
|
|
244
|
+
* @param spaceId
|
|
245
|
+
* @param pagination Information about the pagination of this response. This parameter exists in alpha.
|
|
246
|
+
*/
|
|
247
|
+
public async listAudiences(
|
|
248
|
+
spaceId: string,
|
|
249
|
+
pagination: PaginationInput,
|
|
250
|
+
options: { headers: { [name: string]: string } } = { headers: {} }
|
|
251
|
+
): Promise<{
|
|
252
|
+
response: http.IncomingMessage;
|
|
253
|
+
body: ListAudiences200Response;
|
|
254
|
+
}> {
|
|
255
|
+
const localVarPath =
|
|
256
|
+
this.basePath +
|
|
257
|
+
'/spaces/{spaceId}/audiences'.replace(
|
|
258
|
+
'{' + 'spaceId' + '}',
|
|
259
|
+
encodeURIComponent(String(spaceId))
|
|
260
|
+
);
|
|
261
|
+
let localVarQueryParameters: any = {};
|
|
262
|
+
let localVarHeaderParams: any = (<any>Object).assign(
|
|
263
|
+
{},
|
|
264
|
+
this._defaultHeaders
|
|
265
|
+
);
|
|
266
|
+
const produces = [
|
|
267
|
+
'application/vnd.segment.v1alpha+json',
|
|
268
|
+
'application/json',
|
|
269
|
+
];
|
|
270
|
+
// give precedence to 'application/json'
|
|
271
|
+
if (produces.indexOf('application/json') >= 0) {
|
|
272
|
+
localVarHeaderParams.Accept = 'application/json';
|
|
273
|
+
} else {
|
|
274
|
+
localVarHeaderParams.Accept = produces.join(',');
|
|
275
|
+
}
|
|
276
|
+
let localVarFormParams: any = {};
|
|
277
|
+
|
|
278
|
+
// verify required parameter 'spaceId' is not null or undefined
|
|
279
|
+
if (spaceId === null || spaceId === undefined) {
|
|
280
|
+
throw new Error(
|
|
281
|
+
'Required parameter spaceId was null or undefined when calling listAudiences.'
|
|
282
|
+
);
|
|
283
|
+
}
|
|
284
|
+
|
|
285
|
+
// verify required parameter 'pagination' is not null or undefined
|
|
286
|
+
if (pagination === null || pagination === undefined) {
|
|
287
|
+
throw new Error(
|
|
288
|
+
'Required parameter pagination was null or undefined when calling listAudiences.'
|
|
289
|
+
);
|
|
290
|
+
}
|
|
291
|
+
|
|
292
|
+
if (pagination !== undefined) {
|
|
293
|
+
localVarQueryParameters['pagination'] = ObjectSerializer.serialize(
|
|
294
|
+
pagination,
|
|
295
|
+
'PaginationInput'
|
|
296
|
+
);
|
|
297
|
+
}
|
|
298
|
+
|
|
299
|
+
(<any>Object).assign(localVarHeaderParams, options.headers);
|
|
300
|
+
|
|
301
|
+
let localVarUseFormData = false;
|
|
302
|
+
|
|
303
|
+
let localVarRequestOptions: localVarRequest.Options = {
|
|
304
|
+
method: 'GET',
|
|
305
|
+
qs: localVarQueryParameters,
|
|
306
|
+
headers: localVarHeaderParams,
|
|
307
|
+
uri: localVarPath,
|
|
308
|
+
useQuerystring: this._useQuerystring,
|
|
309
|
+
json: true,
|
|
310
|
+
};
|
|
311
|
+
|
|
312
|
+
let authenticationPromise = Promise.resolve();
|
|
313
|
+
if (this.authentications.token.accessToken) {
|
|
314
|
+
authenticationPromise = authenticationPromise.then(() =>
|
|
315
|
+
this.authentications.token.applyToRequest(
|
|
316
|
+
localVarRequestOptions
|
|
317
|
+
)
|
|
318
|
+
);
|
|
319
|
+
}
|
|
320
|
+
authenticationPromise = authenticationPromise.then(() =>
|
|
321
|
+
this.authentications.default.applyToRequest(localVarRequestOptions)
|
|
322
|
+
);
|
|
323
|
+
|
|
324
|
+
let interceptorPromise = authenticationPromise;
|
|
325
|
+
for (const interceptor of this.interceptors) {
|
|
326
|
+
interceptorPromise = interceptorPromise.then(() =>
|
|
327
|
+
interceptor(localVarRequestOptions)
|
|
328
|
+
);
|
|
329
|
+
}
|
|
330
|
+
|
|
331
|
+
return interceptorPromise.then(() => {
|
|
332
|
+
if (Object.keys(localVarFormParams).length) {
|
|
333
|
+
if (localVarUseFormData) {
|
|
334
|
+
(<any>localVarRequestOptions).formData = localVarFormParams;
|
|
335
|
+
} else {
|
|
336
|
+
localVarRequestOptions.form = localVarFormParams;
|
|
337
|
+
}
|
|
338
|
+
}
|
|
339
|
+
return new Promise<{
|
|
340
|
+
response: http.IncomingMessage;
|
|
341
|
+
body: ListAudiences200Response;
|
|
342
|
+
}>((resolve, reject) => {
|
|
343
|
+
localVarRequest(
|
|
344
|
+
localVarRequestOptions,
|
|
345
|
+
(error, response, body) => {
|
|
346
|
+
if (error) {
|
|
347
|
+
reject(error);
|
|
348
|
+
} else {
|
|
349
|
+
if (
|
|
350
|
+
response.statusCode &&
|
|
351
|
+
response.statusCode >= 200 &&
|
|
352
|
+
response.statusCode <= 299
|
|
353
|
+
) {
|
|
354
|
+
body = ObjectSerializer.deserialize(
|
|
355
|
+
body,
|
|
356
|
+
'ListAudiences200Response'
|
|
357
|
+
);
|
|
358
|
+
resolve({ response: response, body: body });
|
|
359
|
+
} else {
|
|
360
|
+
reject(
|
|
361
|
+
new HttpError(
|
|
362
|
+
response,
|
|
363
|
+
body,
|
|
364
|
+
response.statusCode
|
|
365
|
+
)
|
|
366
|
+
);
|
|
367
|
+
}
|
|
368
|
+
}
|
|
369
|
+
}
|
|
370
|
+
);
|
|
371
|
+
});
|
|
372
|
+
});
|
|
373
|
+
}
|
|
374
|
+
/**
|
|
375
|
+
* Deletes an Audience by id and spaceId. • This endpoint is in **Alpha** testing. Please submit any feedback by sending 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 `Audience Deleted` event in the [audit trail](/tag/Audit-Trail). The rate limit for this endpoint is 20 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.
|
|
376
|
+
* @summary Remove Audience from Space
|
|
377
|
+
* @param spaceId
|
|
378
|
+
* @param id
|
|
379
|
+
*/
|
|
380
|
+
public async removeAudienceFromSpace(
|
|
381
|
+
spaceId: string,
|
|
382
|
+
id: string,
|
|
383
|
+
options: { headers: { [name: string]: string } } = { headers: {} }
|
|
384
|
+
): Promise<{
|
|
385
|
+
response: http.IncomingMessage;
|
|
386
|
+
body: RemoveAudienceFromSpace200Response;
|
|
387
|
+
}> {
|
|
388
|
+
const localVarPath =
|
|
389
|
+
this.basePath +
|
|
390
|
+
'/spaces/{spaceId}/audiences/{id}'
|
|
391
|
+
.replace(
|
|
392
|
+
'{' + 'spaceId' + '}',
|
|
393
|
+
encodeURIComponent(String(spaceId))
|
|
394
|
+
)
|
|
395
|
+
.replace('{' + 'id' + '}', encodeURIComponent(String(id)));
|
|
396
|
+
let localVarQueryParameters: any = {};
|
|
397
|
+
let localVarHeaderParams: any = (<any>Object).assign(
|
|
398
|
+
{},
|
|
399
|
+
this._defaultHeaders
|
|
400
|
+
);
|
|
401
|
+
const produces = [
|
|
402
|
+
'application/vnd.segment.v1alpha+json',
|
|
403
|
+
'application/json',
|
|
404
|
+
];
|
|
405
|
+
// give precedence to 'application/json'
|
|
406
|
+
if (produces.indexOf('application/json') >= 0) {
|
|
407
|
+
localVarHeaderParams.Accept = 'application/json';
|
|
408
|
+
} else {
|
|
409
|
+
localVarHeaderParams.Accept = produces.join(',');
|
|
410
|
+
}
|
|
411
|
+
let localVarFormParams: any = {};
|
|
412
|
+
|
|
413
|
+
// verify required parameter 'spaceId' is not null or undefined
|
|
414
|
+
if (spaceId === null || spaceId === undefined) {
|
|
415
|
+
throw new Error(
|
|
416
|
+
'Required parameter spaceId was null or undefined when calling removeAudienceFromSpace.'
|
|
417
|
+
);
|
|
418
|
+
}
|
|
419
|
+
|
|
420
|
+
// verify required parameter 'id' is not null or undefined
|
|
421
|
+
if (id === null || id === undefined) {
|
|
422
|
+
throw new Error(
|
|
423
|
+
'Required parameter id was null or undefined when calling removeAudienceFromSpace.'
|
|
424
|
+
);
|
|
425
|
+
}
|
|
426
|
+
|
|
427
|
+
(<any>Object).assign(localVarHeaderParams, options.headers);
|
|
428
|
+
|
|
429
|
+
let localVarUseFormData = false;
|
|
430
|
+
|
|
431
|
+
let localVarRequestOptions: localVarRequest.Options = {
|
|
432
|
+
method: 'DELETE',
|
|
433
|
+
qs: localVarQueryParameters,
|
|
434
|
+
headers: localVarHeaderParams,
|
|
435
|
+
uri: localVarPath,
|
|
436
|
+
useQuerystring: this._useQuerystring,
|
|
437
|
+
json: true,
|
|
438
|
+
};
|
|
439
|
+
|
|
440
|
+
let authenticationPromise = Promise.resolve();
|
|
441
|
+
if (this.authentications.token.accessToken) {
|
|
442
|
+
authenticationPromise = authenticationPromise.then(() =>
|
|
443
|
+
this.authentications.token.applyToRequest(
|
|
444
|
+
localVarRequestOptions
|
|
445
|
+
)
|
|
446
|
+
);
|
|
447
|
+
}
|
|
448
|
+
authenticationPromise = authenticationPromise.then(() =>
|
|
449
|
+
this.authentications.default.applyToRequest(localVarRequestOptions)
|
|
450
|
+
);
|
|
451
|
+
|
|
452
|
+
let interceptorPromise = authenticationPromise;
|
|
453
|
+
for (const interceptor of this.interceptors) {
|
|
454
|
+
interceptorPromise = interceptorPromise.then(() =>
|
|
455
|
+
interceptor(localVarRequestOptions)
|
|
456
|
+
);
|
|
457
|
+
}
|
|
458
|
+
|
|
459
|
+
return interceptorPromise.then(() => {
|
|
460
|
+
if (Object.keys(localVarFormParams).length) {
|
|
461
|
+
if (localVarUseFormData) {
|
|
462
|
+
(<any>localVarRequestOptions).formData = localVarFormParams;
|
|
463
|
+
} else {
|
|
464
|
+
localVarRequestOptions.form = localVarFormParams;
|
|
465
|
+
}
|
|
466
|
+
}
|
|
467
|
+
return new Promise<{
|
|
468
|
+
response: http.IncomingMessage;
|
|
469
|
+
body: RemoveAudienceFromSpace200Response;
|
|
470
|
+
}>((resolve, reject) => {
|
|
471
|
+
localVarRequest(
|
|
472
|
+
localVarRequestOptions,
|
|
473
|
+
(error, response, body) => {
|
|
474
|
+
if (error) {
|
|
475
|
+
reject(error);
|
|
476
|
+
} else {
|
|
477
|
+
if (
|
|
478
|
+
response.statusCode &&
|
|
479
|
+
response.statusCode >= 200 &&
|
|
480
|
+
response.statusCode <= 299
|
|
481
|
+
) {
|
|
482
|
+
body = ObjectSerializer.deserialize(
|
|
483
|
+
body,
|
|
484
|
+
'RemoveAudienceFromSpace200Response'
|
|
485
|
+
);
|
|
486
|
+
resolve({ response: response, body: body });
|
|
487
|
+
} else {
|
|
488
|
+
reject(
|
|
489
|
+
new HttpError(
|
|
490
|
+
response,
|
|
491
|
+
body,
|
|
492
|
+
response.statusCode
|
|
493
|
+
)
|
|
494
|
+
);
|
|
495
|
+
}
|
|
496
|
+
}
|
|
497
|
+
}
|
|
498
|
+
);
|
|
499
|
+
});
|
|
500
|
+
});
|
|
501
|
+
}
|
|
502
|
+
/**
|
|
503
|
+
* Updates the enabled status for an audience • This endpoint is in **Alpha** testing. Please submit any feedback by sending 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 `Audience Modified` event in the [audit trail](/tag/Audit-Trail). • Note that when an Audience is updated, the Audience will be locked from future edits until the changes have been incorporated. You can find more information [in the Segment docs](https://segment-docs.netlify.app/docs/engage/audiences/#editing-realtime-audiences-and-traits). 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.
|
|
504
|
+
* @summary Update Audience for Space
|
|
505
|
+
* @param spaceId
|
|
506
|
+
* @param id
|
|
507
|
+
* @param UpdateAudienceForSpaceInput
|
|
508
|
+
*/
|
|
509
|
+
public async updateAudienceForSpace(
|
|
510
|
+
spaceId: string,
|
|
511
|
+
id: string,
|
|
512
|
+
UpdateAudienceForSpaceInput: UpdateAudienceForSpaceInput,
|
|
513
|
+
options: { headers: { [name: string]: string } } = { headers: {} }
|
|
514
|
+
): Promise<{
|
|
515
|
+
response: http.IncomingMessage;
|
|
516
|
+
body: UpdateAudienceForSpace200Response;
|
|
517
|
+
}> {
|
|
518
|
+
const localVarPath =
|
|
519
|
+
this.basePath +
|
|
520
|
+
'/spaces/{spaceId}/audiences/{id}'
|
|
521
|
+
.replace(
|
|
522
|
+
'{' + 'spaceId' + '}',
|
|
523
|
+
encodeURIComponent(String(spaceId))
|
|
524
|
+
)
|
|
525
|
+
.replace('{' + 'id' + '}', encodeURIComponent(String(id)));
|
|
526
|
+
let localVarQueryParameters: any = {};
|
|
527
|
+
let localVarHeaderParams: any = (<any>Object).assign(
|
|
528
|
+
{},
|
|
529
|
+
this._defaultHeaders
|
|
530
|
+
);
|
|
531
|
+
const produces = [
|
|
532
|
+
'application/vnd.segment.v1alpha+json',
|
|
533
|
+
'application/json',
|
|
534
|
+
];
|
|
535
|
+
// give precedence to 'application/json'
|
|
536
|
+
if (produces.indexOf('application/json') >= 0) {
|
|
537
|
+
localVarHeaderParams.Accept = 'application/json';
|
|
538
|
+
} else {
|
|
539
|
+
localVarHeaderParams.Accept = produces.join(',');
|
|
540
|
+
}
|
|
541
|
+
let localVarFormParams: any = {};
|
|
542
|
+
|
|
543
|
+
// verify required parameter 'spaceId' is not null or undefined
|
|
544
|
+
if (spaceId === null || spaceId === undefined) {
|
|
545
|
+
throw new Error(
|
|
546
|
+
'Required parameter spaceId was null or undefined when calling updateAudienceForSpace.'
|
|
547
|
+
);
|
|
548
|
+
}
|
|
549
|
+
|
|
550
|
+
// verify required parameter 'id' is not null or undefined
|
|
551
|
+
if (id === null || id === undefined) {
|
|
552
|
+
throw new Error(
|
|
553
|
+
'Required parameter id was null or undefined when calling updateAudienceForSpace.'
|
|
554
|
+
);
|
|
555
|
+
}
|
|
556
|
+
|
|
557
|
+
// verify required parameter 'UpdateAudienceForSpaceInput' is not null or undefined
|
|
558
|
+
if (
|
|
559
|
+
UpdateAudienceForSpaceInput === null ||
|
|
560
|
+
UpdateAudienceForSpaceInput === undefined
|
|
561
|
+
) {
|
|
562
|
+
throw new Error(
|
|
563
|
+
'Required parameter UpdateAudienceForSpaceInput was null or undefined when calling updateAudienceForSpace.'
|
|
564
|
+
);
|
|
565
|
+
}
|
|
566
|
+
|
|
567
|
+
(<any>Object).assign(localVarHeaderParams, options.headers);
|
|
568
|
+
|
|
569
|
+
let localVarUseFormData = false;
|
|
570
|
+
|
|
571
|
+
let localVarRequestOptions: localVarRequest.Options = {
|
|
572
|
+
method: 'PATCH',
|
|
573
|
+
qs: localVarQueryParameters,
|
|
574
|
+
headers: localVarHeaderParams,
|
|
575
|
+
uri: localVarPath,
|
|
576
|
+
useQuerystring: this._useQuerystring,
|
|
577
|
+
json: true,
|
|
578
|
+
body: ObjectSerializer.serialize(
|
|
579
|
+
UpdateAudienceForSpaceInput,
|
|
580
|
+
'UpdateAudienceForSpaceInput'
|
|
581
|
+
),
|
|
582
|
+
};
|
|
583
|
+
|
|
584
|
+
let authenticationPromise = Promise.resolve();
|
|
585
|
+
if (this.authentications.token.accessToken) {
|
|
586
|
+
authenticationPromise = authenticationPromise.then(() =>
|
|
587
|
+
this.authentications.token.applyToRequest(
|
|
588
|
+
localVarRequestOptions
|
|
589
|
+
)
|
|
590
|
+
);
|
|
591
|
+
}
|
|
592
|
+
authenticationPromise = authenticationPromise.then(() =>
|
|
593
|
+
this.authentications.default.applyToRequest(localVarRequestOptions)
|
|
594
|
+
);
|
|
595
|
+
|
|
596
|
+
let interceptorPromise = authenticationPromise;
|
|
597
|
+
for (const interceptor of this.interceptors) {
|
|
598
|
+
interceptorPromise = interceptorPromise.then(() =>
|
|
599
|
+
interceptor(localVarRequestOptions)
|
|
600
|
+
);
|
|
601
|
+
}
|
|
602
|
+
|
|
603
|
+
return interceptorPromise.then(() => {
|
|
604
|
+
if (Object.keys(localVarFormParams).length) {
|
|
605
|
+
if (localVarUseFormData) {
|
|
606
|
+
(<any>localVarRequestOptions).formData = localVarFormParams;
|
|
607
|
+
} else {
|
|
608
|
+
localVarRequestOptions.form = localVarFormParams;
|
|
609
|
+
}
|
|
610
|
+
}
|
|
611
|
+
return new Promise<{
|
|
612
|
+
response: http.IncomingMessage;
|
|
613
|
+
body: UpdateAudienceForSpace200Response;
|
|
614
|
+
}>((resolve, reject) => {
|
|
615
|
+
localVarRequest(
|
|
616
|
+
localVarRequestOptions,
|
|
617
|
+
(error, response, body) => {
|
|
618
|
+
if (error) {
|
|
619
|
+
reject(error);
|
|
620
|
+
} else {
|
|
621
|
+
if (
|
|
622
|
+
response.statusCode &&
|
|
623
|
+
response.statusCode >= 200 &&
|
|
624
|
+
response.statusCode <= 299
|
|
625
|
+
) {
|
|
626
|
+
body = ObjectSerializer.deserialize(
|
|
627
|
+
body,
|
|
628
|
+
'UpdateAudienceForSpace200Response'
|
|
629
|
+
);
|
|
630
|
+
resolve({ response: response, body: body });
|
|
631
|
+
} else {
|
|
632
|
+
reject(
|
|
633
|
+
new HttpError(
|
|
634
|
+
response,
|
|
635
|
+
body,
|
|
636
|
+
response.statusCode
|
|
637
|
+
)
|
|
638
|
+
);
|
|
639
|
+
}
|
|
640
|
+
}
|
|
641
|
+
}
|
|
642
|
+
);
|
|
643
|
+
});
|
|
644
|
+
});
|
|
645
|
+
}
|
|
646
|
+
}
|
package/api/auditTrailApi.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Segment Public API
|
|
3
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
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 36.
|
|
5
|
+
* The version of the OpenAPI document: 36.2.0
|
|
6
6
|
* Contact: friends@segment.com
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/api/catalogApi.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Segment Public API
|
|
3
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
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 36.
|
|
5
|
+
* The version of the OpenAPI document: 36.2.0
|
|
6
6
|
* Contact: friends@segment.com
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|