@segment/public-api-sdk-typescript 50.1.0-b8874 → 50.2.0-b8889
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 +2 -2
- package/api/audiencesApi.ts +141 -6
- package/api/auditTrailApi.ts +1 -1
- package/api/catalogApi.ts +1 -1
- package/api/computedTraitsApi.ts +141 -6
- package/api/deletionAndSuppressionApi.ts +1 -1
- package/api/deliveryOverviewApi.ts +1 -1
- package/api/destinationFiltersApi.ts +1 -1
- package/api/destinationsApi.ts +6 -6
- package/api/edgeFunctionsApi.ts +5 -5
- 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 +3 -3
- package/api/selectiveSyncApi.ts +1 -1
- package/api/sourcesApi.ts +1 -1
- package/api/spacesApi.ts +5 -5
- 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/apis.js +2 -2
- package/dist/api/audiencesApi.d.ts +10 -0
- package/dist/api/audiencesApi.js +101 -12
- package/dist/api/audiencesApi.js.map +1 -1
- package/dist/api/computedTraitsApi.d.ts +10 -0
- package/dist/api/computedTraitsApi.js +101 -12
- package/dist/api/computedTraitsApi.js.map +1 -1
- package/dist/model/audienceComputationDefinition.d.ts +21 -0
- package/dist/model/audienceComputationDefinition.js +34 -0
- package/dist/model/audienceComputationDefinition.js.map +1 -0
- package/dist/model/audienceDefinition.d.ts +7 -1
- package/dist/model/audienceDefinition.js +9 -1
- package/dist/model/audienceDefinition.js.map +1 -1
- package/dist/model/audienceOptions.d.ts +15 -0
- package/dist/model/audienceOptions.js +26 -0
- package/dist/model/audienceOptions.js.map +1 -0
- package/dist/model/audienceSummary.d.ts +3 -1
- package/dist/model/audienceSummary.js +5 -0
- package/dist/model/audienceSummary.js.map +1 -1
- package/dist/model/computedTraitSummary.d.ts +3 -1
- package/dist/model/computedTraitSummary.js +5 -0
- package/dist/model/computedTraitSummary.js.map +1 -1
- package/dist/model/computedTraitsDefinition.d.ts +7 -1
- package/dist/model/computedTraitsDefinition.js +9 -1
- package/dist/model/computedTraitsDefinition.js.map +1 -1
- package/dist/model/createAudience200Response.d.ts +15 -0
- package/dist/model/createAudience200Response.js +21 -0
- package/dist/model/createAudience200Response.js.map +1 -0
- package/dist/model/createAudienceAlphaInput.d.ts +20 -0
- package/dist/model/createAudienceAlphaInput.js +41 -0
- package/dist/model/createAudienceAlphaInput.js.map +1 -0
- package/dist/model/createAudienceAlphaOutput.d.ts +15 -0
- package/dist/model/createAudienceAlphaOutput.js +21 -0
- package/dist/model/createAudienceAlphaOutput.js.map +1 -0
- package/dist/model/createComputedTrait200Response.d.ts +15 -0
- package/dist/model/createComputedTrait200Response.js +21 -0
- package/dist/model/createComputedTrait200Response.js.map +1 -0
- package/dist/model/createComputedTraitAlphaInput.d.ts +20 -0
- package/dist/model/createComputedTraitAlphaInput.js +41 -0
- package/dist/model/createComputedTraitAlphaInput.js.map +1 -0
- package/dist/model/createComputedTraitAlphaOutput.d.ts +15 -0
- package/dist/model/createComputedTraitAlphaOutput.js +21 -0
- package/dist/model/createComputedTraitAlphaOutput.js.map +1 -0
- package/dist/model/definition.d.ts +7 -1
- package/dist/model/definition.js +9 -1
- package/dist/model/definition.js.map +1 -1
- package/dist/model/definition1.d.ts +7 -1
- package/dist/model/definition1.js +9 -1
- package/dist/model/definition1.js.map +1 -1
- package/dist/model/models.d.ts +10 -0
- package/dist/model/models.js +36 -0
- package/dist/model/models.js.map +1 -1
- package/dist/model/traitDefinition.d.ts +21 -0
- package/dist/model/traitDefinition.js +34 -0
- package/dist/model/traitDefinition.js.map +1 -0
- package/dist/model/traitOptions.d.ts +15 -0
- package/dist/model/traitOptions.js +26 -0
- package/dist/model/traitOptions.js.map +1 -0
- package/dist/model/updateAudienceForSpaceInput.d.ts +4 -0
- package/dist/model/updateAudienceForSpaceInput.js +15 -0
- package/dist/model/updateAudienceForSpaceInput.js.map +1 -1
- package/dist/model/updateComputedTraitForSpaceAlphaInput.d.ts +4 -0
- package/dist/model/updateComputedTraitForSpaceAlphaInput.js +15 -0
- package/dist/model/updateComputedTraitForSpaceAlphaInput.js.map +1 -1
- package/model/aPICallSnapshotV1.ts +1 -1
- package/model/accessPermissionV1.ts +1 -1
- package/model/addConnectionFromSourceToWarehouse201Response.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/audienceComputationDefinition.ts +54 -0
- package/model/audienceDefinition.ts +10 -3
- package/model/audienceOptions.ts +47 -0
- package/model/audienceSummary.ts +9 -2
- 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/computedTraitSummary.ts +9 -2
- package/model/computedTraitsDefinition.ts +11 -4
- package/model/contact.ts +1 -1
- package/model/createAudience200Response.ts +36 -0
- package/model/createAudienceAlphaInput.ts +73 -0
- package/model/createAudienceAlphaOutput.ts +39 -0
- package/model/createCloudSourceRegulation200Response.ts +1 -1
- package/model/createCloudSourceRegulationV1Input.ts +1 -1
- package/model/createCloudSourceRegulationV1Output.ts +1 -1
- package/model/createComputedTrait200Response.ts +36 -0
- package/model/createComputedTraitAlphaInput.ts +73 -0
- package/model/createComputedTraitAlphaOutput.ts +39 -0
- 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/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/definition.ts +11 -4
- package/model/definition1.ts +10 -3
- 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/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/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/edgeFunctionsAlpha.ts +1 -1
- package/model/eventSourceV1.ts +1 -1
- package/model/fQLDefinedPropertyV1.ts +1 -1
- package/model/function.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 +1 -1
- package/model/getAudienceAlphaOutput.ts +2 -2
- 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/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/listAudiences200Response.ts +1 -1
- package/model/listAudiencesAlphaOutput.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/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/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 +37 -0
- package/model/mtuSnapshotV1.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/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/regulation.ts +1 -1
- package/model/regulationListEntryV1.ts +1 -1
- 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/reverseETLSyncOutput.ts +1 -1
- package/model/reverseEtlModel.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/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 +54 -0
- package/model/traitOptions.ts +47 -0
- package/model/transformationBeta.ts +1 -1
- package/model/transformationV1.ts +1 -1
- package/model/updateAudienceForSpace200Response.ts +1 -1
- package/model/updateAudienceForSpaceAlphaOutput.ts +2 -2
- package/model/updateAudienceForSpaceInput.ts +26 -1
- package/model/updateComputedTraitForSpace200Response.ts +1 -1
- package/model/updateComputedTraitForSpaceAlphaInput.ts +26 -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/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
package/README.md
CHANGED
|
@@ -10,7 +10,7 @@ All endpoints in the API follow REST conventions and use standard HTTP methods.
|
|
|
10
10
|
|
|
11
11
|
See the next sections for more information on how to use the Segment Public API TypeScript SDK.
|
|
12
12
|
|
|
13
|
-
Latest API and SDK version: 50.
|
|
13
|
+
Latest API and SDK version: 50.2.0
|
|
14
14
|
|
|
15
15
|
## Installation
|
|
16
16
|
|
package/api/aPICallsApi.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: 50.
|
|
5
|
+
* The version of the OpenAPI document: 50.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/apis.ts
CHANGED
|
@@ -159,7 +159,7 @@ export function configureApis(
|
|
|
159
159
|
|
|
160
160
|
for (const k of Object.keys(apis)) {
|
|
161
161
|
const key = k as keyof typeof apis;
|
|
162
|
-
headers['User-Agent'] = 'Public API SDK 50.
|
|
162
|
+
headers['User-Agent'] = 'Public API SDK 50.2.0 (TypeScript)';
|
|
163
163
|
apis[key].accessToken = token;
|
|
164
164
|
apis[key].defaultHeaders = headers;
|
|
165
165
|
}
|
|
@@ -206,7 +206,7 @@ export function configureEuApis(
|
|
|
206
206
|
|
|
207
207
|
for (const k of Object.keys(apis)) {
|
|
208
208
|
const key = k as keyof typeof apis;
|
|
209
|
-
headers['User-Agent'] = 'Public API SDK 50.
|
|
209
|
+
headers['User-Agent'] = 'Public API SDK 50.2.0 (TypeScript)';
|
|
210
210
|
apis[key].accessToken = token;
|
|
211
211
|
apis[key].defaultHeaders = headers;
|
|
212
212
|
}
|
package/api/audiencesApi.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: 50.
|
|
5
|
+
* The version of the OpenAPI document: 50.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).
|
|
@@ -14,6 +14,8 @@ import localVarRequest from 'request';
|
|
|
14
14
|
import http from 'http';
|
|
15
15
|
|
|
16
16
|
/* tslint:disable:no-unused-locals */
|
|
17
|
+
import { CreateAudience200Response } from '../model/createAudience200Response';
|
|
18
|
+
import { CreateAudienceAlphaInput } from '../model/createAudienceAlphaInput';
|
|
17
19
|
import { GetAudience200Response } from '../model/getAudience200Response';
|
|
18
20
|
import { ListAudiences200Response } from '../model/listAudiences200Response';
|
|
19
21
|
import { PaginationInput } from '../model/paginationInput';
|
|
@@ -111,7 +113,140 @@ export class AudiencesApi {
|
|
|
111
113
|
}
|
|
112
114
|
|
|
113
115
|
/**
|
|
114
|
-
*
|
|
116
|
+
* Creates 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 `Audience Created` event in the [audit trail](/tag/Audit-Trail). Note: The definition for an Audience created via the API is not editable via the Segment App. 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.
|
|
117
|
+
* @summary Create Audience
|
|
118
|
+
* @param spaceId
|
|
119
|
+
* @param CreateAudienceAlphaInput
|
|
120
|
+
*/
|
|
121
|
+
public async createAudience(
|
|
122
|
+
spaceId: string,
|
|
123
|
+
CreateAudienceAlphaInput: CreateAudienceAlphaInput,
|
|
124
|
+
options: { headers: { [name: string]: string } } = { headers: {} }
|
|
125
|
+
): Promise<{
|
|
126
|
+
response: http.IncomingMessage;
|
|
127
|
+
body: CreateAudience200Response;
|
|
128
|
+
}> {
|
|
129
|
+
const localVarPath =
|
|
130
|
+
this.basePath +
|
|
131
|
+
'/spaces/{spaceId}/audiences'.replace(
|
|
132
|
+
'{' + 'spaceId' + '}',
|
|
133
|
+
encodeURIComponent(String(spaceId))
|
|
134
|
+
);
|
|
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 createAudience.'
|
|
156
|
+
);
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
// verify required parameter 'CreateAudienceAlphaInput' is not null or undefined
|
|
160
|
+
if (
|
|
161
|
+
CreateAudienceAlphaInput === null ||
|
|
162
|
+
CreateAudienceAlphaInput === undefined
|
|
163
|
+
) {
|
|
164
|
+
throw new Error(
|
|
165
|
+
'Required parameter CreateAudienceAlphaInput was null or undefined when calling createAudience.'
|
|
166
|
+
);
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
(<any>Object).assign(localVarHeaderParams, options.headers);
|
|
170
|
+
|
|
171
|
+
let localVarUseFormData = false;
|
|
172
|
+
|
|
173
|
+
let localVarRequestOptions: localVarRequest.Options = {
|
|
174
|
+
method: 'POST',
|
|
175
|
+
qs: localVarQueryParameters,
|
|
176
|
+
headers: localVarHeaderParams,
|
|
177
|
+
uri: localVarPath,
|
|
178
|
+
useQuerystring: this._useQuerystring,
|
|
179
|
+
json: true,
|
|
180
|
+
body: ObjectSerializer.serialize(
|
|
181
|
+
CreateAudienceAlphaInput,
|
|
182
|
+
'CreateAudienceAlphaInput'
|
|
183
|
+
),
|
|
184
|
+
};
|
|
185
|
+
|
|
186
|
+
let authenticationPromise = Promise.resolve();
|
|
187
|
+
if (this.authentications.token.accessToken) {
|
|
188
|
+
authenticationPromise = authenticationPromise.then(() =>
|
|
189
|
+
this.authentications.token.applyToRequest(
|
|
190
|
+
localVarRequestOptions
|
|
191
|
+
)
|
|
192
|
+
);
|
|
193
|
+
}
|
|
194
|
+
authenticationPromise = authenticationPromise.then(() =>
|
|
195
|
+
this.authentications.default.applyToRequest(localVarRequestOptions)
|
|
196
|
+
);
|
|
197
|
+
|
|
198
|
+
let interceptorPromise = authenticationPromise;
|
|
199
|
+
for (const interceptor of this.interceptors) {
|
|
200
|
+
interceptorPromise = interceptorPromise.then(() =>
|
|
201
|
+
interceptor(localVarRequestOptions)
|
|
202
|
+
);
|
|
203
|
+
}
|
|
204
|
+
|
|
205
|
+
return interceptorPromise.then(() => {
|
|
206
|
+
if (Object.keys(localVarFormParams).length) {
|
|
207
|
+
if (localVarUseFormData) {
|
|
208
|
+
(<any>localVarRequestOptions).formData = localVarFormParams;
|
|
209
|
+
} else {
|
|
210
|
+
localVarRequestOptions.form = localVarFormParams;
|
|
211
|
+
}
|
|
212
|
+
}
|
|
213
|
+
return new Promise<{
|
|
214
|
+
response: http.IncomingMessage;
|
|
215
|
+
body: CreateAudience200Response;
|
|
216
|
+
}>((resolve, reject) => {
|
|
217
|
+
localVarRequest(
|
|
218
|
+
localVarRequestOptions,
|
|
219
|
+
(error, response, body) => {
|
|
220
|
+
if (error) {
|
|
221
|
+
reject(error);
|
|
222
|
+
} else {
|
|
223
|
+
if (
|
|
224
|
+
response.statusCode &&
|
|
225
|
+
response.statusCode >= 200 &&
|
|
226
|
+
response.statusCode <= 299
|
|
227
|
+
) {
|
|
228
|
+
body = ObjectSerializer.deserialize(
|
|
229
|
+
body,
|
|
230
|
+
'CreateAudience200Response'
|
|
231
|
+
);
|
|
232
|
+
resolve({ response: response, body: body });
|
|
233
|
+
} else {
|
|
234
|
+
reject(
|
|
235
|
+
new HttpError(
|
|
236
|
+
response,
|
|
237
|
+
body,
|
|
238
|
+
response.statusCode
|
|
239
|
+
)
|
|
240
|
+
);
|
|
241
|
+
}
|
|
242
|
+
}
|
|
243
|
+
}
|
|
244
|
+
);
|
|
245
|
+
});
|
|
246
|
+
});
|
|
247
|
+
}
|
|
248
|
+
/**
|
|
249
|
+
* Returns the Audience by id and spaceId. • 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. 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
250
|
* @summary Get Audience
|
|
116
251
|
* @param spaceId
|
|
117
252
|
* @param id
|
|
@@ -239,10 +374,10 @@ export class AudiencesApi {
|
|
|
239
374
|
});
|
|
240
375
|
}
|
|
241
376
|
/**
|
|
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.
|
|
377
|
+
* Returns Audiences by spaceId. • 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. 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
378
|
* @summary List Audiences
|
|
244
379
|
* @param spaceId
|
|
245
|
-
* @param pagination Information about the pagination of this response. This parameter exists in alpha.
|
|
380
|
+
* @param pagination Information about the pagination of this response. [See pagination](https://docs.segmentapis.com/tag/Pagination/#section/Pagination-parameters) for more info. This parameter exists in alpha.
|
|
246
381
|
*/
|
|
247
382
|
public async listAudiences(
|
|
248
383
|
spaceId: string,
|
|
@@ -372,7 +507,7 @@ export class AudiencesApi {
|
|
|
372
507
|
});
|
|
373
508
|
}
|
|
374
509
|
/**
|
|
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.
|
|
510
|
+
* Deletes an Audience by id and spaceId. • 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 `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
511
|
* @summary Remove Audience from Space
|
|
377
512
|
* @param spaceId
|
|
378
513
|
* @param id
|
|
@@ -500,7 +635,7 @@ export class AudiencesApi {
|
|
|
500
635
|
});
|
|
501
636
|
}
|
|
502
637
|
/**
|
|
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.
|
|
638
|
+
* Updates the enabled status for 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 `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). Note: The definition for an Audience updated via the API is not editable via the Segment App. 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
639
|
* @summary Update Audience for Space
|
|
505
640
|
* @param spaceId
|
|
506
641
|
* @param id
|
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: 50.
|
|
5
|
+
* The version of the OpenAPI document: 50.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: 50.
|
|
5
|
+
* The version of the OpenAPI document: 50.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/computedTraitsApi.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: 50.
|
|
5
|
+
* The version of the OpenAPI document: 50.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).
|
|
@@ -14,6 +14,8 @@ import localVarRequest from 'request';
|
|
|
14
14
|
import http from 'http';
|
|
15
15
|
|
|
16
16
|
/* tslint:disable:no-unused-locals */
|
|
17
|
+
import { CreateComputedTrait200Response } from '../model/createComputedTrait200Response';
|
|
18
|
+
import { CreateComputedTraitAlphaInput } from '../model/createComputedTraitAlphaInput';
|
|
17
19
|
import { GetComputedTrait200Response } from '../model/getComputedTrait200Response';
|
|
18
20
|
import { ListComputedTraits200Response } from '../model/listComputedTraits200Response';
|
|
19
21
|
import { PaginationInput } from '../model/paginationInput';
|
|
@@ -112,7 +114,140 @@ export class ComputedTraitsApi {
|
|
|
112
114
|
}
|
|
113
115
|
|
|
114
116
|
/**
|
|
115
|
-
*
|
|
117
|
+
* Creates a Computed Trait • 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 Computed Trait feature enabled. Please reach out to your customer success manager for more information. • When called, this endpoint may generate the `Computed Trait Created` event in the [audit trail](/tag/Audit-Trail). Note: The definition for a Computed Trait created via the API is not editable via the Segment App. 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.
|
|
118
|
+
* @summary Create Computed Trait
|
|
119
|
+
* @param spaceId
|
|
120
|
+
* @param CreateComputedTraitAlphaInput
|
|
121
|
+
*/
|
|
122
|
+
public async createComputedTrait(
|
|
123
|
+
spaceId: string,
|
|
124
|
+
CreateComputedTraitAlphaInput: CreateComputedTraitAlphaInput,
|
|
125
|
+
options: { headers: { [name: string]: string } } = { headers: {} }
|
|
126
|
+
): Promise<{
|
|
127
|
+
response: http.IncomingMessage;
|
|
128
|
+
body: CreateComputedTrait200Response;
|
|
129
|
+
}> {
|
|
130
|
+
const localVarPath =
|
|
131
|
+
this.basePath +
|
|
132
|
+
'/spaces/{spaceId}/computed-traits'.replace(
|
|
133
|
+
'{' + 'spaceId' + '}',
|
|
134
|
+
encodeURIComponent(String(spaceId))
|
|
135
|
+
);
|
|
136
|
+
let localVarQueryParameters: any = {};
|
|
137
|
+
let localVarHeaderParams: any = (<any>Object).assign(
|
|
138
|
+
{},
|
|
139
|
+
this._defaultHeaders
|
|
140
|
+
);
|
|
141
|
+
const produces = [
|
|
142
|
+
'application/vnd.segment.v1alpha+json',
|
|
143
|
+
'application/json',
|
|
144
|
+
];
|
|
145
|
+
// give precedence to 'application/json'
|
|
146
|
+
if (produces.indexOf('application/json') >= 0) {
|
|
147
|
+
localVarHeaderParams.Accept = 'application/json';
|
|
148
|
+
} else {
|
|
149
|
+
localVarHeaderParams.Accept = produces.join(',');
|
|
150
|
+
}
|
|
151
|
+
let localVarFormParams: any = {};
|
|
152
|
+
|
|
153
|
+
// verify required parameter 'spaceId' is not null or undefined
|
|
154
|
+
if (spaceId === null || spaceId === undefined) {
|
|
155
|
+
throw new Error(
|
|
156
|
+
'Required parameter spaceId was null or undefined when calling createComputedTrait.'
|
|
157
|
+
);
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
// verify required parameter 'CreateComputedTraitAlphaInput' is not null or undefined
|
|
161
|
+
if (
|
|
162
|
+
CreateComputedTraitAlphaInput === null ||
|
|
163
|
+
CreateComputedTraitAlphaInput === undefined
|
|
164
|
+
) {
|
|
165
|
+
throw new Error(
|
|
166
|
+
'Required parameter CreateComputedTraitAlphaInput was null or undefined when calling createComputedTrait.'
|
|
167
|
+
);
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
(<any>Object).assign(localVarHeaderParams, options.headers);
|
|
171
|
+
|
|
172
|
+
let localVarUseFormData = false;
|
|
173
|
+
|
|
174
|
+
let localVarRequestOptions: localVarRequest.Options = {
|
|
175
|
+
method: 'POST',
|
|
176
|
+
qs: localVarQueryParameters,
|
|
177
|
+
headers: localVarHeaderParams,
|
|
178
|
+
uri: localVarPath,
|
|
179
|
+
useQuerystring: this._useQuerystring,
|
|
180
|
+
json: true,
|
|
181
|
+
body: ObjectSerializer.serialize(
|
|
182
|
+
CreateComputedTraitAlphaInput,
|
|
183
|
+
'CreateComputedTraitAlphaInput'
|
|
184
|
+
),
|
|
185
|
+
};
|
|
186
|
+
|
|
187
|
+
let authenticationPromise = Promise.resolve();
|
|
188
|
+
if (this.authentications.token.accessToken) {
|
|
189
|
+
authenticationPromise = authenticationPromise.then(() =>
|
|
190
|
+
this.authentications.token.applyToRequest(
|
|
191
|
+
localVarRequestOptions
|
|
192
|
+
)
|
|
193
|
+
);
|
|
194
|
+
}
|
|
195
|
+
authenticationPromise = authenticationPromise.then(() =>
|
|
196
|
+
this.authentications.default.applyToRequest(localVarRequestOptions)
|
|
197
|
+
);
|
|
198
|
+
|
|
199
|
+
let interceptorPromise = authenticationPromise;
|
|
200
|
+
for (const interceptor of this.interceptors) {
|
|
201
|
+
interceptorPromise = interceptorPromise.then(() =>
|
|
202
|
+
interceptor(localVarRequestOptions)
|
|
203
|
+
);
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
return interceptorPromise.then(() => {
|
|
207
|
+
if (Object.keys(localVarFormParams).length) {
|
|
208
|
+
if (localVarUseFormData) {
|
|
209
|
+
(<any>localVarRequestOptions).formData = localVarFormParams;
|
|
210
|
+
} else {
|
|
211
|
+
localVarRequestOptions.form = localVarFormParams;
|
|
212
|
+
}
|
|
213
|
+
}
|
|
214
|
+
return new Promise<{
|
|
215
|
+
response: http.IncomingMessage;
|
|
216
|
+
body: CreateComputedTrait200Response;
|
|
217
|
+
}>((resolve, reject) => {
|
|
218
|
+
localVarRequest(
|
|
219
|
+
localVarRequestOptions,
|
|
220
|
+
(error, response, body) => {
|
|
221
|
+
if (error) {
|
|
222
|
+
reject(error);
|
|
223
|
+
} else {
|
|
224
|
+
if (
|
|
225
|
+
response.statusCode &&
|
|
226
|
+
response.statusCode >= 200 &&
|
|
227
|
+
response.statusCode <= 299
|
|
228
|
+
) {
|
|
229
|
+
body = ObjectSerializer.deserialize(
|
|
230
|
+
body,
|
|
231
|
+
'CreateComputedTrait200Response'
|
|
232
|
+
);
|
|
233
|
+
resolve({ response: response, body: body });
|
|
234
|
+
} else {
|
|
235
|
+
reject(
|
|
236
|
+
new HttpError(
|
|
237
|
+
response,
|
|
238
|
+
body,
|
|
239
|
+
response.statusCode
|
|
240
|
+
)
|
|
241
|
+
);
|
|
242
|
+
}
|
|
243
|
+
}
|
|
244
|
+
}
|
|
245
|
+
);
|
|
246
|
+
});
|
|
247
|
+
});
|
|
248
|
+
}
|
|
249
|
+
/**
|
|
250
|
+
* Returns the Computed Trait by id and spaceId • 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 Computed Trait 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.
|
|
116
251
|
* @summary Get Computed Trait
|
|
117
252
|
* @param spaceId
|
|
118
253
|
* @param id
|
|
@@ -240,10 +375,10 @@ export class ComputedTraitsApi {
|
|
|
240
375
|
});
|
|
241
376
|
}
|
|
242
377
|
/**
|
|
243
|
-
* Returns Computed Traits 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 Computed Trait 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.
|
|
378
|
+
* Returns Computed Traits by spaceId. • 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 Computed Trait 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.
|
|
244
379
|
* @summary List Computed Traits
|
|
245
380
|
* @param spaceId
|
|
246
|
-
* @param pagination Information about the pagination of this response. This parameter exists in alpha.
|
|
381
|
+
* @param pagination Information about the pagination of this response. [See pagination](https://docs.segmentapis.com/tag/Pagination/#section/Pagination-parameters) for more info. This parameter exists in alpha.
|
|
247
382
|
*/
|
|
248
383
|
public async listComputedTraits(
|
|
249
384
|
spaceId: string,
|
|
@@ -373,7 +508,7 @@ export class ComputedTraitsApi {
|
|
|
373
508
|
});
|
|
374
509
|
}
|
|
375
510
|
/**
|
|
376
|
-
* Deletes a Computed Trait 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 Computed Trait feature enabled. Please reach out to your customer success manager for more information. • When called, this endpoint may generate the `Computed Trait 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.
|
|
511
|
+
* Deletes a Computed Trait by id and spaceId. • 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 Computed Trait feature enabled. Please reach out to your customer success manager for more information. • When called, this endpoint may generate the `Computed Trait 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.
|
|
377
512
|
* @summary Remove Computed Trait from Space
|
|
378
513
|
* @param spaceId
|
|
379
514
|
* @param id
|
|
@@ -501,7 +636,7 @@ export class ComputedTraitsApi {
|
|
|
501
636
|
});
|
|
502
637
|
}
|
|
503
638
|
/**
|
|
504
|
-
* Updates the enabled status for a computed trait. • 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 Computed Trait feature enabled. Please reach out to your customer success manager for more information. • When called, this endpoint may generate the `Computed Trait Modified` event in the [audit trail](/tag/Audit-Trail). • Note that when a Computed Trait is updated, the Computed Trait 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/unify/traits/computed-traits/#editing-realtime-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.
|
|
639
|
+
* Updates the enabled status for a computed trait. • 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 Computed Trait feature enabled. Please reach out to your customer success manager for more information. • When called, this endpoint may generate the `Computed Trait Modified` event in the [audit trail](/tag/Audit-Trail). • Note that when a Computed Trait is updated, the Computed Trait 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/unify/traits/computed-traits/#editing-realtime-traits). Note: The definition for a Computed Trait updated via the API is not editable via the Segment App. 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.
|
|
505
640
|
* @summary Update Computed Trait for Space
|
|
506
641
|
* @param spaceId
|
|
507
642
|
* @param id
|
|
@@ -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: 50.
|
|
5
|
+
* The version of the OpenAPI document: 50.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).
|
|
@@ -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: 50.
|
|
5
|
+
* The version of the OpenAPI document: 50.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).
|
|
@@ -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: 50.
|
|
5
|
+
* The version of the OpenAPI document: 50.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/destinationsApi.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: 50.
|
|
5
|
+
* The version of the OpenAPI document: 50.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).
|
|
@@ -243,7 +243,7 @@ export class DestinationsApi {
|
|
|
243
243
|
});
|
|
244
244
|
}
|
|
245
245
|
/**
|
|
246
|
-
* Creates a new Destination subscription. • 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 Destination Subscriptions feature enabled. Please reach out to your customer success manager for more information.
|
|
246
|
+
* Creates a new Destination subscription. • 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 Destination Subscriptions feature enabled. Please reach out to your customer success manager for more information.
|
|
247
247
|
* @summary Create Destination Subscription
|
|
248
248
|
* @param destinationId
|
|
249
249
|
* @param CreateDestinationSubscriptionAlphaInput
|
|
@@ -614,7 +614,7 @@ export class DestinationsApi {
|
|
|
614
614
|
});
|
|
615
615
|
}
|
|
616
616
|
/**
|
|
617
|
-
* Gets a Destination subscription by id. • 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 Destination Subscriptions feature enabled. Please reach out to your customer success manager for more information.
|
|
617
|
+
* Gets a Destination subscription by id. • 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 Destination Subscriptions feature enabled. Please reach out to your customer success manager for more information.
|
|
618
618
|
* @summary Get Subscription from Destination
|
|
619
619
|
* @param destinationId
|
|
620
620
|
* @param id
|
|
@@ -1017,7 +1017,7 @@ export class DestinationsApi {
|
|
|
1017
1017
|
});
|
|
1018
1018
|
}
|
|
1019
1019
|
/**
|
|
1020
|
-
* Lists subscriptions for a Destination. • 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 Destination Subscriptions feature enabled. Please reach out to your customer success manager for more information.
|
|
1020
|
+
* Lists subscriptions for a Destination. • 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 Destination Subscriptions feature enabled. Please reach out to your customer success manager for more information.
|
|
1021
1021
|
* @summary List Subscriptions from Destination
|
|
1022
1022
|
* @param destinationId
|
|
1023
1023
|
* @param pagination Pagination options. This parameter exists in alpha.
|
|
@@ -1143,7 +1143,7 @@ export class DestinationsApi {
|
|
|
1143
1143
|
});
|
|
1144
1144
|
}
|
|
1145
1145
|
/**
|
|
1146
|
-
* Deletes an existing Destination subscription. • 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 Destination Subscriptions feature enabled. Please reach out to your customer success manager for more information.
|
|
1146
|
+
* Deletes an existing Destination subscription. • 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 Destination Subscriptions feature enabled. Please reach out to your customer success manager for more information.
|
|
1147
1147
|
* @summary Remove Subscription from Destination
|
|
1148
1148
|
* @param destinationId
|
|
1149
1149
|
* @param id
|
|
@@ -1406,7 +1406,7 @@ export class DestinationsApi {
|
|
|
1406
1406
|
});
|
|
1407
1407
|
}
|
|
1408
1408
|
/**
|
|
1409
|
-
* Updates an existing Destination subscription. • 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 Destination Subscriptions feature enabled. Please reach out to your customer success manager for more information.
|
|
1409
|
+
* Updates an existing Destination subscription. • 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 Destination Subscriptions feature enabled. Please reach out to your customer success manager for more information.
|
|
1410
1410
|
* @summary Update Subscription for Destination
|
|
1411
1411
|
* @param destinationId
|
|
1412
1412
|
* @param id
|
package/api/edgeFunctionsApi.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: 50.
|
|
5
|
+
* The version of the OpenAPI document: 50.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).
|
|
@@ -111,7 +111,7 @@ export class EdgeFunctionsApi {
|
|
|
111
111
|
}
|
|
112
112
|
|
|
113
113
|
/**
|
|
114
|
-
* Create EdgeFunctions for your Source given a valid upload URL for an Edge Functions bundle. • 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 Edge Functions feature enabled. Please reach out to your customer success manager for more information.
|
|
114
|
+
* Create EdgeFunctions for your Source given a valid upload URL for an Edge Functions bundle. • 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 Edge Functions feature enabled. Please reach out to your customer success manager for more information.
|
|
115
115
|
* @summary Create Edge Functions
|
|
116
116
|
* @param sourceId
|
|
117
117
|
* @param CreateEdgeFunctionsAlphaInput
|
|
@@ -244,7 +244,7 @@ export class EdgeFunctionsApi {
|
|
|
244
244
|
});
|
|
245
245
|
}
|
|
246
246
|
/**
|
|
247
|
-
* Disable Edge Functions for your Source. • 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 Edge Functions feature enabled. Please reach out to your customer success manager for more information.
|
|
247
|
+
* Disable Edge Functions for your Source. • 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 Edge Functions feature enabled. Please reach out to your customer success manager for more information.
|
|
248
248
|
* @summary Disable Edge Functions
|
|
249
249
|
* @param sourceId
|
|
250
250
|
*/
|
|
@@ -361,7 +361,7 @@ export class EdgeFunctionsApi {
|
|
|
361
361
|
});
|
|
362
362
|
}
|
|
363
363
|
/**
|
|
364
|
-
* Generate a temporary upload URL that can be used to upload an Edge Functions bundle. • 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 Edge Functions feature enabled. Please reach out to your customer success manager for more information.
|
|
364
|
+
* Generate a temporary upload URL that can be used to upload an Edge Functions bundle. • 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 Edge Functions feature enabled. Please reach out to your customer success manager for more information.
|
|
365
365
|
* @summary Generate Upload URL for Edge Functions
|
|
366
366
|
* @param sourceId
|
|
367
367
|
*/
|
|
@@ -478,7 +478,7 @@ export class EdgeFunctionsApi {
|
|
|
478
478
|
});
|
|
479
479
|
}
|
|
480
480
|
/**
|
|
481
|
-
* Get the latest Edge Functions for your Source. • 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 Edge Functions feature enabled. Please reach out to your customer success manager for more information.
|
|
481
|
+
* Get the latest Edge Functions for your Source. • 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 Edge Functions feature enabled. Please reach out to your customer success manager for more information.
|
|
482
482
|
* @summary Get Latest from Edge Functions
|
|
483
483
|
* @param sourceId
|
|
484
484
|
*/
|
package/api/eventsApi.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: 50.
|
|
5
|
+
* The version of the OpenAPI document: 50.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/functionsApi.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: 50.
|
|
5
|
+
* The version of the OpenAPI document: 50.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/iAMGroupsApi.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: 50.
|
|
5
|
+
* The version of the OpenAPI document: 50.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/iAMRolesApi.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: 50.
|
|
5
|
+
* The version of the OpenAPI document: 50.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).
|