@segment/public-api-sdk-typescript 73.0.0-b19574 → 73.1.0-b498
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/.github/workflows/publish.yml +34 -0
- package/README.md +1 -1
- package/api/aPICallsApi.ts +1 -1
- package/api/activationsApi.ts +1 -1
- package/api/apis.ts +8 -2
- package/api/audiencesApi.ts +1 -1
- package/api/auditTrailApi.ts +1 -1
- package/api/catalogApi.ts +1 -1
- package/api/computedTraitsApi.ts +1 -1
- package/api/credentialsApi.ts +364 -0
- package/api/customerInsightsApi.ts +1 -1
- package/api/dbtApi.ts +1 -1
- package/api/deletionAndSuppressionApi.ts +3 -3
- package/api/deliveryOverviewApi.ts +1 -1
- package/api/destinationFiltersApi.ts +1 -1
- package/api/destinationsApi.ts +1 -1
- package/api/eventsApi.ts +1 -1
- package/api/functionsApi.ts +1 -1
- package/api/iAMGroupsApi.ts +1 -1
- package/api/iAMRolesApi.ts +1 -1
- package/api/iAMUsersApi.ts +1 -1
- package/api/labelsApi.ts +1 -1
- package/api/livePluginsApi.ts +1 -1
- package/api/monthlyTrackedUsersApi.ts +1 -1
- package/api/profilesSyncApi.ts +1 -1
- package/api/reverseETLApi.ts +1 -1
- package/api/selectiveSyncApi.ts +1 -1
- package/api/sourcesApi.ts +1 -1
- package/api/spaceFiltersApi.ts +1 -1
- package/api/spaceSchemaAPIApi.ts +1359 -0
- package/api/spacesApi.ts +1 -1
- package/api/testingApi.ts +1 -1
- package/api/trackingPlansApi.ts +1 -1
- package/api/transformationsApi.ts +1 -1
- package/api/warehousesApi.ts +1 -1
- package/api/workspacesApi.ts +1 -1
- package/dist/api/apis.d.ts +5 -1
- package/dist/api/apis.js +8 -2
- package/dist/api/apis.js.map +1 -1
- package/dist/api/credentialsApi.d.ts +46 -0
- package/dist/api/credentialsApi.js +293 -0
- package/dist/api/credentialsApi.js.map +1 -0
- package/dist/api/spaceSchemaAPIApi.d.ts +100 -0
- package/dist/api/spaceSchemaAPIApi.js +906 -0
- package/dist/api/spaceSchemaAPIApi.js.map +1 -0
- package/dist/model/addActivationToAudienceAlphaInput.js.map +1 -1
- package/dist/model/createCredential201Response.d.ts +15 -0
- package/dist/model/createCredential201Response.js +21 -0
- package/dist/model/createCredential201Response.js.map +1 -0
- package/dist/model/createCredentialV1Input.d.ts +17 -0
- package/dist/model/createCredentialV1Input.js +26 -0
- package/dist/model/createCredentialV1Input.js.map +1 -0
- package/dist/model/createCredentialV1Output.d.ts +15 -0
- package/dist/model/createCredentialV1Output.js +21 -0
- package/dist/model/createCredentialV1Output.js.map +1 -0
- package/dist/model/credentialV1.d.ts +21 -0
- package/dist/model/credentialV1.js +46 -0
- package/dist/model/credentialV1.js.map +1 -0
- package/dist/model/entityPathAlpha.d.ts +20 -0
- package/dist/model/entityPathAlpha.js +51 -0
- package/dist/model/entityPathAlpha.js.map +1 -0
- package/dist/model/entityPropertyAlpha.d.ts +17 -0
- package/dist/model/entityPropertyAlpha.js +36 -0
- package/dist/model/entityPropertyAlpha.js.map +1 -0
- package/dist/model/eventAlpha.d.ts +18 -0
- package/dist/model/eventAlpha.js +31 -0
- package/dist/model/eventAlpha.js.map +1 -0
- package/dist/model/eventPropertyAlpha.d.ts +20 -0
- package/dist/model/eventPropertyAlpha.js +41 -0
- package/dist/model/eventPropertyAlpha.js.map +1 -0
- package/dist/model/eventPropertyType.d.ts +4 -0
- package/dist/model/eventPropertyType.js +9 -0
- package/dist/model/eventPropertyType.js.map +1 -0
- package/dist/model/eventType.d.ts +8 -0
- package/dist/model/eventType.js +13 -0
- package/dist/model/eventType.js.map +1 -0
- package/dist/model/forwardOnlyPaginationOutput.d.ts +16 -0
- package/dist/model/forwardOnlyPaginationOutput.js +31 -0
- package/dist/model/forwardOnlyPaginationOutput.js.map +1 -0
- package/dist/model/listEntityPaths200Response.d.ts +15 -0
- package/dist/model/listEntityPaths200Response.js +21 -0
- package/dist/model/listEntityPaths200Response.js.map +1 -0
- package/dist/model/listEntityPathsAlphaOutput.d.ts +17 -0
- package/dist/model/listEntityPathsAlphaOutput.js +26 -0
- package/dist/model/listEntityPathsAlphaOutput.js.map +1 -0
- package/dist/model/listEvents200Response.d.ts +15 -0
- package/dist/model/listEvents200Response.js +21 -0
- package/dist/model/listEvents200Response.js.map +1 -0
- package/dist/model/listEventsAlphaOutput.d.ts +17 -0
- package/dist/model/listEventsAlphaOutput.js +26 -0
- package/dist/model/listEventsAlphaOutput.js.map +1 -0
- package/dist/model/listPropertiesFromEntity200Response.d.ts +15 -0
- package/dist/model/listPropertiesFromEntity200Response.js +21 -0
- package/dist/model/listPropertiesFromEntity200Response.js.map +1 -0
- package/dist/model/listPropertiesFromEntityAlphaOutput.d.ts +17 -0
- package/dist/model/listPropertiesFromEntityAlphaOutput.js +26 -0
- package/dist/model/listPropertiesFromEntityAlphaOutput.js.map +1 -0
- package/dist/model/listPropertiesFromEvent200Response.d.ts +15 -0
- package/dist/model/listPropertiesFromEvent200Response.js +21 -0
- package/dist/model/listPropertiesFromEvent200Response.js.map +1 -0
- package/dist/model/listPropertiesFromEventAlphaOutput.d.ts +17 -0
- package/dist/model/listPropertiesFromEventAlphaOutput.js +26 -0
- package/dist/model/listPropertiesFromEventAlphaOutput.js.map +1 -0
- package/dist/model/listSampleValuesFromEntityProperty200Response.d.ts +15 -0
- package/dist/model/listSampleValuesFromEntityProperty200Response.js +21 -0
- package/dist/model/listSampleValuesFromEntityProperty200Response.js.map +1 -0
- package/dist/model/listSampleValuesFromEntityPropertyAlphaOutput.d.ts +14 -0
- package/dist/model/listSampleValuesFromEntityPropertyAlphaOutput.js +21 -0
- package/dist/model/listSampleValuesFromEntityPropertyAlphaOutput.js.map +1 -0
- package/dist/model/listSampleValuesFromEventProperty200Response.d.ts +15 -0
- package/dist/model/listSampleValuesFromEventProperty200Response.js +21 -0
- package/dist/model/listSampleValuesFromEventProperty200Response.js.map +1 -0
- package/dist/model/listSampleValuesFromEventPropertyAlphaOutput.d.ts +14 -0
- package/dist/model/listSampleValuesFromEventPropertyAlphaOutput.js +21 -0
- package/dist/model/listSampleValuesFromEventPropertyAlphaOutput.js.map +1 -0
- package/dist/model/listSampleValuesFromTrait200Response.d.ts +15 -0
- package/dist/model/listSampleValuesFromTrait200Response.js +21 -0
- package/dist/model/listSampleValuesFromTrait200Response.js.map +1 -0
- package/dist/model/listSampleValuesFromTraitAlphaOutput.d.ts +14 -0
- package/dist/model/listSampleValuesFromTraitAlphaOutput.js +21 -0
- package/dist/model/listSampleValuesFromTraitAlphaOutput.js.map +1 -0
- package/dist/model/listTraits200Response.d.ts +15 -0
- package/dist/model/listTraits200Response.js +21 -0
- package/dist/model/listTraits200Response.js.map +1 -0
- package/dist/model/listTraitsAlphaOutput.d.ts +17 -0
- package/dist/model/listTraitsAlphaOutput.js +26 -0
- package/dist/model/listTraitsAlphaOutput.js.map +1 -0
- package/dist/model/models.d.ts +32 -0
- package/dist/model/models.js +96 -0
- package/dist/model/models.js.map +1 -1
- package/dist/model/traitAlpha.d.ts +19 -0
- package/dist/model/traitAlpha.js +36 -0
- package/dist/model/traitAlpha.js.map +1 -0
- package/dist/model/traitType.d.ts +6 -0
- package/dist/model/traitType.js +11 -0
- package/dist/model/traitType.js.map +1 -0
- package/dist/model/updateCredential200Response.d.ts +15 -0
- package/dist/model/updateCredential200Response.js +21 -0
- package/dist/model/updateCredential200Response.js.map +1 -0
- package/dist/model/updateCredentialV1Input.d.ts +17 -0
- package/dist/model/updateCredentialV1Input.js +26 -0
- package/dist/model/updateCredentialV1Input.js.map +1 -0
- package/dist/model/updateCredentialV1Output.d.ts +15 -0
- package/dist/model/updateCredentialV1Output.js +21 -0
- package/dist/model/updateCredentialV1Output.js.map +1 -0
- package/model/aPICallSnapshotV1.ts +1 -1
- package/model/accessPermissionV1.ts +1 -1
- package/model/activationOutput.ts +1 -1
- package/model/addActivationToAudience200Response.ts +1 -1
- package/model/addActivationToAudienceAlphaInput.ts +2 -5
- package/model/addActivationToAudienceAlphaOutput.ts +1 -1
- package/model/addAudienceScheduleToAudience200Response.ts +1 -1
- package/model/addAudienceScheduleToAudience200Response1.ts +1 -1
- package/model/addAudienceScheduleToAudienceAlphaInput.ts +1 -1
- package/model/addAudienceScheduleToAudienceAlphaOutput.ts +1 -1
- package/model/addAudienceScheduleToAudienceInput.ts +1 -1
- package/model/addAudienceScheduleToAudienceOutput.ts +1 -1
- package/model/addConnectionFromSourceToWarehouse201Response.ts +1 -1
- package/model/addConnectionFromSourceToWarehouseV1Output.ts +1 -1
- package/model/addDestinationToAudience200Response.ts +1 -1
- package/model/addDestinationToAudienceAlphaInput.ts +1 -1
- package/model/addDestinationToAudienceAlphaOutput.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/audienceComputeCadence.ts +1 -1
- package/model/audienceDefinition.ts +1 -1
- package/model/audienceDefinitionWithoutTargetEntity.ts +1 -1
- package/model/audienceOptions.ts +1 -1
- package/model/audienceOptionsWithLookback.ts +1 -1
- package/model/audiencePreview.ts +1 -1
- package/model/audiencePreviewAccountResult.ts +1 -1
- package/model/audiencePreviewEntitiesResult.ts +1 -1
- package/model/audiencePreviewIdentifier.ts +1 -1
- package/model/audiencePreviewProfileResult.ts +1 -1
- package/model/audiencePreviewResult.ts +1 -1
- package/model/audienceRunInfo.ts +1 -1
- package/model/audienceSchedule.ts +1 -1
- package/model/audienceSize.ts +1 -1
- package/model/audienceSummary.ts +1 -1
- package/model/audienceSummaryWithAudienceTypeAndLookback.ts +1 -1
- package/model/auditEventV1.ts +1 -1
- package/model/batchQueryMessagingSubscriptionsForSpace200Response.ts +1 -1
- package/model/batchQueryMessagingSubscriptionsForSpaceAlphaInput.ts +1 -1
- package/model/batchQueryMessagingSubscriptionsForSpaceAlphaOutput.ts +1 -1
- package/model/breakdownBeta.ts +1 -1
- package/model/cancelReverseETLSyncForModel200Response.ts +1 -1
- package/model/cancelReverseETLSyncForModelInput.ts +1 -1
- package/model/cancelReverseETLSyncForModelOutput.ts +1 -1
- package/model/commonSourceSettingsV1.ts +1 -1
- package/model/computedTraitSummary.ts +1 -1
- package/model/computedTraitsDefinition.ts +1 -1
- package/model/config.ts +1 -1
- package/model/config1.ts +1 -1
- package/model/connection.ts +1 -1
- package/model/contact.ts +1 -1
- package/model/createAudience200Response.ts +1 -1
- package/model/createAudience200Response1.ts +1 -1
- package/model/createAudience200Response2.ts +1 -1
- package/model/createAudienceAlphaInput.ts +1 -1
- package/model/createAudienceAlphaOutput.ts +1 -1
- package/model/createAudienceBetaInput.ts +1 -1
- package/model/createAudienceBetaOutput.ts +1 -1
- package/model/createAudienceInput.ts +1 -1
- package/model/createAudienceOutput.ts +1 -1
- package/model/createAudiencePreview200Response.ts +1 -1
- package/model/createAudiencePreview200Response1.ts +1 -1
- package/model/createAudiencePreview200Response2.ts +1 -1
- package/model/createAudiencePreviewAlphaInput.ts +1 -1
- package/model/createAudiencePreviewAlphaOutput.ts +1 -1
- package/model/createAudiencePreviewBetaInput.ts +1 -1
- package/model/createAudiencePreviewBetaOutput.ts +1 -1
- package/model/createAudiencePreviewInput.ts +1 -1
- package/model/createAudiencePreviewOptions.ts +1 -1
- package/model/createAudiencePreviewOutput.ts +1 -1
- package/model/createCloudSourceRegulation200Response.ts +1 -1
- package/model/createCloudSourceRegulationV1Input.ts +1 -1
- package/model/createCloudSourceRegulationV1Output.ts +1 -1
- package/model/createComputedTrait200Response.ts +1 -1
- package/model/createComputedTraitAlphaInput.ts +1 -1
- package/model/createComputedTraitAlphaOutput.ts +1 -1
- package/model/createCredential201Response.ts +36 -0
- package/model/createCredentialV1Input.ts +50 -0
- package/model/createCredentialV1Output.ts +39 -0
- package/model/createDbtModelSyncTrigger200Response.ts +1 -1
- package/model/createDbtModelSyncTriggerInput.ts +1 -1
- package/model/createDbtModelSyncTriggerOutput.ts +1 -1
- package/model/createDestination200Response.ts +1 -1
- package/model/createDestinationSubscription200Response.ts +1 -1
- package/model/createDestinationSubscriptionAlphaInput.ts +1 -1
- package/model/createDestinationSubscriptionAlphaOutput.ts +1 -1
- package/model/createDestinationV1Input.ts +1 -1
- package/model/createDestinationV1Output.ts +1 -1
- package/model/createDownload200Response.ts +1 -1
- package/model/createDownloadAlphaInput.ts +1 -1
- package/model/createDownloadAlphaOutput.ts +1 -1
- package/model/createFilterForDestination200Response.ts +1 -1
- package/model/createFilterForDestinationV1Input.ts +1 -1
- package/model/createFilterForDestinationV1Output.ts +1 -1
- package/model/createFilterForSpace200Response.ts +1 -1
- package/model/createFilterForSpaceInput.ts +1 -1
- package/model/createFilterForSpaceOutput.ts +1 -1
- package/model/createFunction200Response.ts +1 -1
- package/model/createFunctionDeployment200Response.ts +1 -1
- package/model/createFunctionDeploymentV1Output.ts +1 -1
- package/model/createFunctionV1Input.ts +1 -1
- package/model/createFunctionV1Output.ts +1 -1
- package/model/createInsertFunctionInstance200Response.ts +1 -1
- package/model/createInsertFunctionInstanceAlphaInput.ts +1 -1
- package/model/createInsertFunctionInstanceAlphaOutput.ts +1 -1
- package/model/createInvites201Response.ts +1 -1
- package/model/createInvitesV1Input.ts +1 -1
- package/model/createInvitesV1Output.ts +1 -1
- package/model/createLabel201Response.ts +1 -1
- package/model/createLabelV1Input.ts +1 -1
- package/model/createLabelV1Output.ts +1 -1
- package/model/createLivePlugin200Response.ts +1 -1
- package/model/createLivePluginAlphaInput.ts +1 -1
- package/model/createLivePluginAlphaOutput.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/credentialV1.ts +86 -0
- package/model/dbtModelSyncTrigger.ts +1 -1
- package/model/deleteActivationAlphaOutput.ts +1 -1
- package/model/deleteDestination200Response.ts +1 -1
- package/model/deleteDestinationV1Output.ts +1 -1
- package/model/deleteFilterById200Response.ts +1 -1
- package/model/deleteFilterByIdOutput.ts +1 -1
- package/model/deleteFunction200Response.ts +1 -1
- package/model/deleteFunctionV1Output.ts +1 -1
- package/model/deleteInsertFunctionInstance200Response.ts +1 -1
- package/model/deleteInsertFunctionInstanceAlphaOutput.ts +1 -1
- package/model/deleteInvites200Response.ts +1 -1
- package/model/deleteInvitesV1Output.ts +1 -1
- package/model/deleteLabel200Response.ts +1 -1
- package/model/deleteLabel200Response1.ts +1 -1
- package/model/deleteLabelAlphaOutput.ts +1 -1
- package/model/deleteLabelV1Output.ts +1 -1
- package/model/deleteLivePluginCode200Response.ts +1 -1
- package/model/deleteLivePluginCodeAlphaOutput.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/destination.ts +1 -1
- package/model/destinationFilterActionV1.ts +1 -1
- package/model/destinationFilterV1.ts +1 -1
- package/model/destinationInput.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/destinationSubscriptionConfiguration.ts +1 -1
- package/model/destinationSubscriptionUpdateInput.ts +1 -1
- package/model/destinationV1.ts +1 -1
- package/model/download.ts +1 -1
- package/model/echo200Response.ts +1 -1
- package/model/echo200Response1.ts +1 -1
- package/model/echoAlphaOutput.ts +1 -1
- package/model/echoV1Output.ts +1 -1
- package/model/entityDetails.ts +1 -1
- package/model/entityPathAlpha.ts +92 -0
- package/model/entityPropertyAlpha.ts +65 -0
- package/model/eventAlpha.ts +56 -0
- package/model/eventPropertyAlpha.ts +74 -0
- package/model/eventPropertyType.ts +18 -0
- package/model/eventSourceV1.ts +1 -1
- package/model/eventType.ts +22 -0
- package/model/fQLDefinedPropertyV1.ts +1 -1
- package/model/filter.ts +1 -1
- package/model/forceExecuteAudienceRun200Response.ts +1 -1
- package/model/forceExecuteAudienceRun200Response1.ts +1 -1
- package/model/forceExecuteAudienceRunAlphaOutput.ts +1 -1
- package/model/forceExecuteAudienceRunOutput.ts +1 -1
- package/model/forwardOnlyPaginationOutput.ts +59 -0
- package/model/functionDeployment.ts +1 -1
- package/model/functionSettingV1.ts +1 -1
- package/model/functionV1.ts +1 -1
- package/model/getActivationFromAudience200Response.ts +1 -1
- package/model/getActivationFromAudienceOutput.ts +1 -1
- package/model/getAdvancedSyncScheduleFromWarehouse200Response.ts +1 -1
- package/model/getAdvancedSyncScheduleFromWarehouseV1Output.ts +1 -1
- package/model/getAudience200Response.ts +1 -1
- package/model/getAudience200Response1.ts +1 -1
- package/model/getAudience200Response2.ts +1 -1
- package/model/getAudienceAlphaOutput.ts +1 -1
- package/model/getAudienceBetaOutput.ts +1 -1
- package/model/getAudienceOutput.ts +1 -1
- package/model/getAudiencePreview200Response.ts +1 -1
- package/model/getAudiencePreview200Response1.ts +1 -1
- package/model/getAudiencePreview200Response2.ts +1 -1
- package/model/getAudiencePreviewAlphaOutput.ts +1 -1
- package/model/getAudiencePreviewBetaOutput.ts +1 -1
- package/model/getAudiencePreviewOutput.ts +1 -1
- package/model/getAudienceScheduleFromSpaceAndAudience200Response.ts +1 -1
- package/model/getAudienceScheduleFromSpaceAndAudience200Response1.ts +1 -1
- package/model/getAudienceScheduleFromSpaceAndAudienceAlphaOutput.ts +1 -1
- package/model/getAudienceScheduleFromSpaceAndAudienceOutput.ts +1 -1
- package/model/getComputedTrait200Response.ts +1 -1
- package/model/getComputedTraitAlphaOutput.ts +1 -1
- package/model/getConnectionStateFromWarehouse200Response.ts +1 -1
- package/model/getConnectionStateFromWarehouseV1Output.ts +1 -1
- package/model/getDailyPerSourceAPICallsUsage200Response.ts +1 -1
- package/model/getDailyPerSourceAPICallsUsageV1Output.ts +1 -1
- package/model/getDailyPerSourceMTUUsage200Response.ts +1 -1
- package/model/getDailyPerSourceMTUUsageV1Output.ts +1 -1
- package/model/getDailyWorkspaceAPICallsUsage200Response.ts +1 -1
- package/model/getDailyWorkspaceAPICallsUsageV1Output.ts +1 -1
- package/model/getDailyWorkspaceMTUUsage200Response.ts +1 -1
- package/model/getDailyWorkspaceMTUUsageV1Output.ts +1 -1
- package/model/getDeliveryOverviewMetricsBetaOutput.ts +1 -1
- package/model/getDestination200Response.ts +1 -1
- package/model/getDestinationMetadata200Response.ts +1 -1
- package/model/getDestinationMetadataV1Output.ts +1 -1
- package/model/getDestinationV1Output.ts +1 -1
- package/model/getDestinationsCatalog200Response.ts +1 -1
- package/model/getDestinationsCatalogV1Output.ts +1 -1
- package/model/getEgressFailedMetricsFromDeliveryOverview200Response.ts +1 -1
- package/model/getEventsVolumeFromWorkspace200Response.ts +1 -1
- package/model/getEventsVolumeFromWorkspaceV1Output.ts +1 -1
- package/model/getEventsVolumeFromWorkspaceV1Query.ts +1 -1
- package/model/getFilterById200Response.ts +1 -1
- package/model/getFilterByIdOutput.ts +1 -1
- package/model/getFilterInDestination200Response.ts +1 -1
- package/model/getFilterInDestinationV1Output.ts +1 -1
- package/model/getFunction200Response.ts +1 -1
- package/model/getFunctionV1Output.ts +1 -1
- package/model/getFunctionVersion200Response.ts +1 -1
- package/model/getFunctionVersionAlphaOutput.ts +1 -1
- package/model/getInsertFunctionInstance200Response.ts +1 -1
- package/model/getInsertFunctionInstanceAlphaOutput.ts +1 -1
- package/model/getLatestFromLivePlugins200Response.ts +1 -1
- package/model/getLatestFromLivePluginsAlphaOutput.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/iDSyncConfigurationInput.ts +1 -1
- package/model/identifySourceSettingsV1.ts +1 -1
- package/model/insertFunctionInstanceAlpha.ts +1 -1
- package/model/integrationOptionBeta.ts +1 -1
- package/model/invitePermissionV1.ts +1 -1
- package/model/inviteV1.ts +1 -1
- package/model/labelAlpha.ts +1 -1
- package/model/labelV1.ts +1 -1
- package/model/listActivationsAlphaOutput.ts +1 -1
- package/model/listActivationsFromAudience200Response.ts +1 -1
- package/model/listActivationsFromAudienceOutput.ts +1 -1
- package/model/listAudienceConsumersFromSpaceAndAudience200Response.ts +1 -1
- package/model/listAudienceConsumersFromSpaceAndAudienceAlphaOutput.ts +1 -1
- package/model/listAudienceConsumersSortInput.ts +1 -1
- package/model/listAudienceSchedulesFromSpaceAndAudience200Response.ts +1 -1
- package/model/listAudienceSchedulesFromSpaceAndAudience200Response1.ts +1 -1
- package/model/listAudienceSchedulesFromSpaceAndAudienceAlphaOutput.ts +1 -1
- package/model/listAudienceSchedulesFromSpaceAndAudienceOutput.ts +1 -1
- package/model/listAudienceSearchInput.ts +1 -1
- package/model/listAudiences200Response.ts +1 -1
- package/model/listAudiences200Response1.ts +1 -1
- package/model/listAudiences200Response2.ts +1 -1
- package/model/listAudiencesAlphaOutput.ts +1 -1
- package/model/listAudiencesBetaOutput.ts +1 -1
- package/model/listAudiencesOutput.ts +1 -1
- package/model/listAudiencesPaginationInput.ts +1 -1
- package/model/listAuditEvents200Response.ts +1 -1
- package/model/listAuditEventsV1Output.ts +1 -1
- package/model/listComputedTraits200Response.ts +1 -1
- package/model/listComputedTraitsAlphaOutput.ts +1 -1
- package/model/listConnectedDestinationsFromSource200Response.ts +1 -1
- package/model/listConnectedDestinationsFromSource200Response1.ts +1 -1
- package/model/listConnectedDestinationsFromSourceAlphaOutput.ts +1 -1
- package/model/listConnectedDestinationsFromSourceV1Output.ts +1 -1
- package/model/listConnectedSourcesFromWarehouse200Response.ts +1 -1
- package/model/listConnectedSourcesFromWarehouseV1Output.ts +1 -1
- package/model/listConnectedWarehousesFromSource200Response.ts +1 -1
- package/model/listConnectedWarehousesFromSource200Response1.ts +1 -1
- package/model/listConnectedWarehousesFromSourceAlphaOutput.ts +1 -1
- package/model/listConnectedWarehousesFromSourceV1Output.ts +1 -1
- package/model/listDeliveryMetricsSummaryFromDestination200Response.ts +1 -1
- package/model/listDeliveryMetricsSummaryFromDestinationBetaOutput.ts +1 -1
- package/model/listDestinations200Response.ts +1 -1
- package/model/listDestinationsFromAudience200Response.ts +1 -1
- package/model/listDestinationsFromAudienceAlphaOutput.ts +1 -1
- package/model/listDestinationsV1Output.ts +1 -1
- package/model/listEntityPaths200Response.ts +36 -0
- package/model/listEntityPathsAlphaOutput.ts +49 -0
- package/model/listEvents200Response.ts +36 -0
- package/model/listEventsAlphaOutput.ts +49 -0
- package/model/listFiltersForSpace200Response.ts +1 -1
- package/model/listFiltersForSpaceOutput.ts +1 -1
- package/model/listFiltersFromDestination200Response.ts +1 -1
- package/model/listFiltersFromDestinationV1Output.ts +1 -1
- package/model/listFiltersPaginationInput.ts +1 -1
- package/model/listFiltersPaginationOutput.ts +1 -1
- package/model/listFunctionItemV1.ts +1 -1
- package/model/listFunctionVersions200Response.ts +1 -1
- package/model/listFunctionVersionsAlphaOutput.ts +1 -1
- package/model/listFunctions200Response.ts +1 -1
- package/model/listFunctionsV1Output.ts +1 -1
- package/model/listInsertFunctionInstances200Response.ts +1 -1
- package/model/listInsertFunctionInstancesAlphaOutput.ts +1 -1
- package/model/listInvites200Response.ts +1 -1
- package/model/listInvitesFromUserGroup200Response.ts +1 -1
- package/model/listInvitesFromUserGroupV1Output.ts +1 -1
- package/model/listInvitesV1Output.ts +1 -1
- package/model/listLabels200Response.ts +1 -1
- package/model/listLabels200Response1.ts +1 -1
- package/model/listLabelsAlphaOutput.ts +1 -1
- package/model/listLabelsV1Output.ts +1 -1
- package/model/listProfilesWarehouseInSpace200Response.ts +1 -1
- package/model/listProfilesWarehouseInSpaceAlphaOutput.ts +1 -1
- package/model/listPropertiesFromEntity200Response.ts +36 -0
- package/model/listPropertiesFromEntityAlphaOutput.ts +49 -0
- package/model/listPropertiesFromEvent200Response.ts +36 -0
- package/model/listPropertiesFromEventAlphaOutput.ts +49 -0
- package/model/listRegulationsFromSource200Response.ts +1 -1
- package/model/listRegulationsFromSourceV1Output.ts +1 -1
- package/model/listReverseETLSyncStatusesFromModelAndSubscriptionId200Response.ts +1 -1
- package/model/listReverseETLSyncStatusesFromModelAndSubscriptionIdOutput.ts +1 -1
- package/model/listReverseEtlModels200Response.ts +1 -1
- package/model/listReverseEtlModelsOutput.ts +1 -1
- package/model/listRoles200Response.ts +1 -1
- package/model/listRolesV1Output.ts +1 -1
- package/model/listRulesFromTrackingPlan200Response.ts +1 -1
- package/model/listRulesFromTrackingPlanV1Output.ts +1 -1
- package/model/listSampleValuesFromEntityProperty200Response.ts +36 -0
- package/model/listSampleValuesFromEntityPropertyAlphaOutput.ts +41 -0
- package/model/listSampleValuesFromEventProperty200Response.ts +36 -0
- package/model/listSampleValuesFromEventPropertyAlphaOutput.ts +41 -0
- package/model/listSampleValuesFromTrait200Response.ts +36 -0
- package/model/listSampleValuesFromTraitAlphaOutput.ts +41 -0
- 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/listSupportedDestinationsFromAudience200Response.ts +1 -1
- package/model/listSupportedDestinationsFromAudienceAlphaOutput.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/listTraits200Response.ts +36 -0
- package/model/listTraitsAlphaOutput.ts +49 -0
- 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/livePluginsAlpha.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/metadata.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 +100 -0
- package/model/mtuSnapshotV1.ts +1 -1
- package/model/paginationInput.ts +1 -1
- package/model/paginationOutput.ts +1 -1
- package/model/periodicConfig.ts +1 -1
- package/model/permissionInputV1.ts +1 -1
- package/model/permissionResourceV1.ts +1 -1
- package/model/permissionV1.ts +1 -1
- package/model/personalizationInput.ts +1 -1
- package/model/personalizationInputEntity.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/profile.ts +1 -1
- package/model/profilesWarehouseAlpha.ts +1 -1
- package/model/propertyRenameBeta.ts +1 -1
- package/model/propertyRenameV1.ts +1 -1
- package/model/propertyValueTransformationBeta.ts +1 -1
- package/model/propertyValueTransformationV1.ts +1 -1
- package/model/readAudiencePreviewOptions.ts +1 -1
- package/model/regulation.ts +1 -1
- package/model/regulationListEntryV1.ts +1 -1
- package/model/removeActivationFromAudience200Response.ts +1 -1
- package/model/removeActivationFromAudienceOutput.ts +1 -1
- package/model/removeAudienceFromSpace200Response.ts +1 -1
- package/model/removeAudienceFromSpace200Response1.ts +1 -1
- package/model/removeAudienceFromSpace200Response2.ts +1 -1
- package/model/removeAudienceFromSpaceAlphaOutput.ts +1 -1
- package/model/removeAudienceFromSpaceBetaOutput.ts +1 -1
- package/model/removeAudienceFromSpaceOutput.ts +1 -1
- package/model/removeAudienceScheduleFromAudience200Response.ts +1 -1
- package/model/removeAudienceScheduleFromAudience200Response1.ts +1 -1
- package/model/removeAudienceScheduleFromAudienceAlphaOutput.ts +1 -1
- package/model/removeAudienceScheduleFromAudienceOutput.ts +1 -1
- package/model/removeComputedTraitFromSpace200Response.ts +1 -1
- package/model/removeComputedTraitFromSpaceAlphaOutput.ts +1 -1
- package/model/removeDestinationFromAudience200Response.ts +1 -1
- package/model/removeDestinationFromAudienceAlphaOutput.ts +1 -1
- package/model/removeFilterFromDestination200Response.ts +1 -1
- package/model/removeFilterFromDestinationV1Output.ts +1 -1
- package/model/removeProfilesWarehouseFromSpace200Response.ts +1 -1
- package/model/removeProfilesWarehouseFromSpaceAlphaOutput.ts +1 -1
- package/model/removeRuleV1.ts +1 -1
- package/model/removeRulesFromTrackingPlan200Response.ts +1 -1
- package/model/removeRulesFromTrackingPlanV1Output.ts +1 -1
- package/model/removeSourceConnectionFromWarehouse200Response.ts +1 -1
- package/model/removeSourceConnectionFromWarehouseV1Output.ts +1 -1
- package/model/removeSourceFromTrackingPlan200Response.ts +1 -1
- package/model/removeSourceFromTrackingPlanV1Output.ts +1 -1
- package/model/removeSubscriptionFromDestination200Response.ts +1 -1
- package/model/removeSubscriptionFromDestinationAlphaOutput.ts +1 -1
- package/model/removeUsersFromUserGroup200Response.ts +1 -1
- package/model/removeUsersFromUserGroupV1Output.ts +1 -1
- package/model/removeWriteKeyFromSource200Response.ts +1 -1
- package/model/removeWriteKeyFromSourceAlphaOutput.ts +1 -1
- package/model/replaceAdvancedSyncScheduleForWarehouse200Response.ts +1 -1
- package/model/replaceAdvancedSyncScheduleForWarehouseV1Input.ts +1 -1
- package/model/replaceAdvancedSyncScheduleForWarehouseV1Output.ts +1 -1
- package/model/replaceLabelsInSource200Response.ts +1 -1
- package/model/replaceLabelsInSource200Response1.ts +1 -1
- package/model/replaceLabelsInSourceAlphaInput.ts +1 -1
- package/model/replaceLabelsInSourceAlphaOutput.ts +1 -1
- package/model/replaceLabelsInSourceV1Input.ts +1 -1
- package/model/replaceLabelsInSourceV1Output.ts +1 -1
- package/model/replaceMessagingSubscriptionsInSpaces200Response.ts +1 -1
- package/model/replaceMessagingSubscriptionsInSpacesAlphaInput.ts +1 -1
- package/model/replaceMessagingSubscriptionsInSpacesAlphaOutput.ts +1 -1
- package/model/replacePermissionsForUser200Response.ts +1 -1
- package/model/replacePermissionsForUserGroup200Response.ts +1 -1
- package/model/replacePermissionsForUserGroupV1Input.ts +1 -1
- package/model/replacePermissionsForUserGroupV1Output.ts +1 -1
- package/model/replacePermissionsForUserV1Input.ts +1 -1
- package/model/replacePermissionsForUserV1Output.ts +1 -1
- package/model/replaceRulesInTrackingPlan200Response.ts +1 -1
- package/model/replaceRulesInTrackingPlanV1Input.ts +1 -1
- package/model/replaceRulesInTrackingPlanV1Output.ts +1 -1
- package/model/replaceUsersInUserGroup200Response.ts +1 -1
- package/model/replaceUsersInUserGroupV1Input.ts +1 -1
- package/model/replaceUsersInUserGroupV1Output.ts +1 -1
- package/model/requestError.ts +1 -1
- package/model/requestErrorEnvelope.ts +1 -1
- package/model/resourceV1.ts +1 -1
- package/model/restoreFunctionVersion200Response.ts +1 -1
- package/model/restoreFunctionVersionAlphaInput.ts +1 -1
- package/model/restoreFunctionVersionAlphaOutput.ts +1 -1
- package/model/reverseETLManualSyncJobOutput.ts +1 -1
- package/model/reverseETLSyncStatus.ts +1 -1
- package/model/reverseEtlCronScheduleConfig.ts +1 -1
- package/model/reverseEtlDbtCloudScheduleConfig.ts +1 -1
- package/model/reverseEtlModel.ts +1 -1
- package/model/reverseEtlPeriodicScheduleConfig.ts +1 -1
- package/model/reverseEtlScheduleConfig.ts +1 -1
- package/model/reverseEtlScheduleDefinition.ts +1 -1
- package/model/reverseEtlSpecificTimeScheduleConfig.ts +1 -1
- package/model/roleV1.ts +1 -1
- package/model/ruleInputV1.ts +1 -1
- package/model/ruleV1.ts +1 -1
- package/model/simpleDestination.ts +1 -1
- package/model/sourceAPICallSnapshotV1.ts +1 -1
- package/model/sourceAlpha.ts +1 -1
- package/model/sourceEventVolumeDatapointV1.ts +1 -1
- package/model/sourceEventVolumeV1.ts +1 -1
- package/model/sourceMetadataV1.ts +1 -1
- package/model/sourceSettingsOutputV1.ts +1 -1
- package/model/sourceV1.ts +1 -1
- package/model/space.ts +1 -1
- package/model/spaceWarehouseSchemaOverride.ts +1 -1
- package/model/spaceWarehouseSelectiveSyncItemAlpha.ts +1 -1
- package/model/specificDaysConfig.ts +1 -1
- package/model/streamStatusV1.ts +1 -1
- package/model/suppressedInner.ts +1 -1
- package/model/syncExtractPhase.ts +1 -1
- package/model/syncLoadPhase.ts +1 -1
- package/model/syncNoticeV1.ts +1 -1
- package/model/syncV1.ts +1 -1
- package/model/trackSourceSettingsV1.ts +1 -1
- package/model/trackingPlanV1.ts +1 -1
- package/model/traitAlpha.ts +65 -0
- package/model/traitDefinition.ts +1 -1
- package/model/traitOptions.ts +1 -1
- package/model/traitType.ts +20 -0
- package/model/transformationBeta.ts +1 -1
- package/model/transformationV1.ts +1 -1
- package/model/updateActivationForAudience200Response.ts +1 -1
- package/model/updateActivationForAudienceAlphaInput.ts +1 -1
- package/model/updateActivationForAudienceOutput.ts +1 -1
- package/model/updateAudienceForSpace200Response.ts +1 -1
- package/model/updateAudienceForSpace200Response1.ts +1 -1
- package/model/updateAudienceForSpace200Response2.ts +1 -1
- package/model/updateAudienceForSpaceAlphaInput.ts +1 -1
- package/model/updateAudienceForSpaceAlphaOutput.ts +1 -1
- package/model/updateAudienceForSpaceBetaInput.ts +1 -1
- package/model/updateAudienceForSpaceBetaOutput.ts +1 -1
- package/model/updateAudienceForSpaceInput.ts +1 -1
- package/model/updateAudienceForSpaceOutput.ts +1 -1
- package/model/updateAudienceScheduleForAudience200Response.ts +1 -1
- package/model/updateAudienceScheduleForAudience200Response1.ts +1 -1
- package/model/updateAudienceScheduleForAudienceAlphaInput.ts +1 -1
- package/model/updateAudienceScheduleForAudienceAlphaOutput.ts +1 -1
- package/model/updateAudienceScheduleForAudienceInput.ts +1 -1
- package/model/updateAudienceScheduleForAudienceOutput.ts +1 -1
- package/model/updateComputedTraitForSpace200Response.ts +1 -1
- package/model/updateComputedTraitForSpaceAlphaInput.ts +1 -1
- package/model/updateComputedTraitForSpaceAlphaOutput.ts +1 -1
- package/model/updateCredential200Response.ts +36 -0
- package/model/updateCredentialV1Input.ts +50 -0
- package/model/updateCredentialV1Output.ts +39 -0
- package/model/updateDestination200Response.ts +1 -1
- package/model/updateDestinationForAudience200Response.ts +1 -1
- package/model/updateDestinationForAudienceAlphaInput.ts +1 -1
- package/model/updateDestinationForAudienceAlphaOutput.ts +1 -1
- package/model/updateDestinationV1Input.ts +1 -1
- package/model/updateDestinationV1Output.ts +1 -1
- package/model/updateFilterById200Response.ts +1 -1
- package/model/updateFilterByIdInput.ts +1 -1
- package/model/updateFilterByIdOutput.ts +1 -1
- package/model/updateFilterForDestination200Response.ts +1 -1
- package/model/updateFilterForDestinationV1Input.ts +1 -1
- package/model/updateFilterForDestinationV1Output.ts +1 -1
- package/model/updateFunction200Response.ts +1 -1
- package/model/updateFunctionV1Input.ts +1 -1
- package/model/updateFunctionV1Output.ts +1 -1
- package/model/updateGroupSubscriptionStatusResponse.ts +1 -1
- package/model/updateInsertFunctionInstance200Response.ts +1 -1
- package/model/updateInsertFunctionInstanceAlphaInput.ts +1 -1
- package/model/updateInsertFunctionInstanceAlphaOutput.ts +1 -1
- package/model/updateProfilesWarehouseForSpaceWarehouse200Response.ts +1 -1
- package/model/updateProfilesWarehouseForSpaceWarehouseAlphaInput.ts +1 -1
- package/model/updateProfilesWarehouseForSpaceWarehouseAlphaOutput.ts +1 -1
- package/model/updateReverseEtlModel200Response.ts +1 -1
- package/model/updateReverseEtlModelInput.ts +1 -1
- package/model/updateReverseEtlModelOutput.ts +1 -1
- package/model/updateRulesInTrackingPlan200Response.ts +1 -1
- package/model/updateRulesInTrackingPlanV1Input.ts +1 -1
- package/model/updateRulesInTrackingPlanV1Output.ts +1 -1
- package/model/updateSchemaSettingsInSource200Response.ts +1 -1
- package/model/updateSchemaSettingsInSourceV1Input.ts +1 -1
- package/model/updateSchemaSettingsInSourceV1Output.ts +1 -1
- package/model/updateSelectiveSyncForWarehouse200Response.ts +1 -1
- package/model/updateSelectiveSyncForWarehouseAndSpace200Response.ts +1 -1
- package/model/updateSelectiveSyncForWarehouseAndSpaceAlphaInput.ts +1 -1
- package/model/updateSelectiveSyncForWarehouseAndSpaceAlphaOutput.ts +1 -1
- package/model/updateSelectiveSyncForWarehouseV1Input.ts +1 -1
- package/model/updateSelectiveSyncForWarehouseV1Output.ts +1 -1
- package/model/updateSource200Response.ts +1 -1
- package/model/updateSource200Response1.ts +1 -1
- package/model/updateSourceAlphaInput.ts +1 -1
- package/model/updateSourceAlphaOutput.ts +1 -1
- package/model/updateSourceV1Input.ts +1 -1
- package/model/updateSourceV1Output.ts +1 -1
- package/model/updateSubscriptionForDestination200Response.ts +1 -1
- package/model/updateSubscriptionForDestinationAlphaInput.ts +1 -1
- package/model/updateSubscriptionForDestinationAlphaOutput.ts +1 -1
- package/model/updateTrackingPlan200Response.ts +1 -1
- package/model/updateTrackingPlanV1Input.ts +1 -1
- package/model/updateTrackingPlanV1Output.ts +1 -1
- package/model/updateTransformation200Response.ts +1 -1
- package/model/updateTransformationBetaInput.ts +1 -1
- package/model/updateTransformationBetaOutput.ts +1 -1
- package/model/updateTransformationV1Input.ts +1 -1
- package/model/updateTransformationV1Output.ts +1 -1
- package/model/updateUserGroup200Response.ts +1 -1
- package/model/updateUserGroupV1Input.ts +1 -1
- package/model/updateUserGroupV1Output.ts +1 -1
- package/model/updateWarehouse200Response.ts +1 -1
- package/model/updateWarehouseV1Input.ts +1 -1
- package/model/updateWarehouseV1Output.ts +1 -1
- package/model/upsertRuleV1.ts +1 -1
- package/model/userGroupV1.ts +1 -1
- package/model/userV1.ts +1 -1
- package/model/usersPerSourceSnapshotV1.ts +1 -1
- package/model/version.ts +1 -1
- package/model/warehouseAdvancedSyncV1.ts +1 -1
- package/model/warehouseMetadataV1.ts +1 -1
- package/model/warehouseSelectiveSyncItemV1.ts +1 -1
- package/model/warehouseSyncOverrideV1.ts +1 -1
- package/model/warehouseV1.ts +1 -1
- package/model/workspaceV1.ts +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,1359 @@
|
|
|
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: 73.1.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 { EventPropertyType } from '../model/eventPropertyType';
|
|
18
|
+
import { ListEntityPaths200Response } from '../model/listEntityPaths200Response';
|
|
19
|
+
import { ListEvents200Response } from '../model/listEvents200Response';
|
|
20
|
+
import { ListPropertiesFromEntity200Response } from '../model/listPropertiesFromEntity200Response';
|
|
21
|
+
import { ListPropertiesFromEvent200Response } from '../model/listPropertiesFromEvent200Response';
|
|
22
|
+
import { ListSampleValuesFromEntityProperty200Response } from '../model/listSampleValuesFromEntityProperty200Response';
|
|
23
|
+
import { ListSampleValuesFromEventProperty200Response } from '../model/listSampleValuesFromEventProperty200Response';
|
|
24
|
+
import { ListSampleValuesFromTrait200Response } from '../model/listSampleValuesFromTrait200Response';
|
|
25
|
+
import { ListTraits200Response } from '../model/listTraits200Response';
|
|
26
|
+
import { PaginationInput } from '../model/paginationInput';
|
|
27
|
+
import { RequestErrorEnvelope } from '../model/requestErrorEnvelope';
|
|
28
|
+
|
|
29
|
+
import {
|
|
30
|
+
ObjectSerializer,
|
|
31
|
+
Authentication,
|
|
32
|
+
VoidAuth,
|
|
33
|
+
Interceptor,
|
|
34
|
+
} from '../model/models';
|
|
35
|
+
import {
|
|
36
|
+
HttpBasicAuth,
|
|
37
|
+
HttpBearerAuth,
|
|
38
|
+
ApiKeyAuth,
|
|
39
|
+
OAuth,
|
|
40
|
+
} from '../model/models';
|
|
41
|
+
|
|
42
|
+
import { HttpError, RequestFile } from './apis';
|
|
43
|
+
|
|
44
|
+
let defaultBasePath = 'https://api.segmentapis.com';
|
|
45
|
+
|
|
46
|
+
// ===============================================
|
|
47
|
+
// This file is autogenerated - Please do not edit
|
|
48
|
+
// ===============================================
|
|
49
|
+
|
|
50
|
+
export enum SpaceSchemaAPIApiApiKeys {}
|
|
51
|
+
|
|
52
|
+
export class SpaceSchemaAPIApi {
|
|
53
|
+
protected _basePath = defaultBasePath;
|
|
54
|
+
protected _defaultHeaders: any = {};
|
|
55
|
+
protected _useQuerystring: boolean = false;
|
|
56
|
+
|
|
57
|
+
protected authentications = {
|
|
58
|
+
default: <Authentication>new VoidAuth(),
|
|
59
|
+
token: new HttpBearerAuth(),
|
|
60
|
+
};
|
|
61
|
+
|
|
62
|
+
protected interceptors: Interceptor[] = [];
|
|
63
|
+
|
|
64
|
+
constructor(basePath?: string);
|
|
65
|
+
constructor(
|
|
66
|
+
basePathOrUsername: string,
|
|
67
|
+
password?: string,
|
|
68
|
+
basePath?: string
|
|
69
|
+
) {
|
|
70
|
+
if (password) {
|
|
71
|
+
if (basePath) {
|
|
72
|
+
this.basePath = basePath;
|
|
73
|
+
}
|
|
74
|
+
} else {
|
|
75
|
+
if (basePathOrUsername) {
|
|
76
|
+
this.basePath = basePathOrUsername;
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
set useQuerystring(value: boolean) {
|
|
82
|
+
this._useQuerystring = value;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
set basePath(basePath: string) {
|
|
86
|
+
this._basePath = basePath;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
set defaultHeaders(defaultHeaders: any) {
|
|
90
|
+
this._defaultHeaders = defaultHeaders;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
get defaultHeaders() {
|
|
94
|
+
return this._defaultHeaders;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
get basePath() {
|
|
98
|
+
return this._basePath;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
public setDefaultAuthentication(auth: Authentication) {
|
|
102
|
+
this.authentications.default = auth;
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
public setApiKey(key: SpaceSchemaAPIApiApiKeys, value: string) {
|
|
106
|
+
(this.authentications as any)[SpaceSchemaAPIApiApiKeys[key]].apiKey =
|
|
107
|
+
value;
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
set accessToken(accessToken: string | (() => string)) {
|
|
111
|
+
this.authentications.token.accessToken = accessToken;
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
public addInterceptor(interceptor: Interceptor) {
|
|
115
|
+
this.interceptors.push(interceptor);
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
/**
|
|
119
|
+
* Returns a list of Entity Paths for a Space. • This endpoint is in **Alpha** testing. Please submit any feedback by sending an email to friends@segment.com. 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.
|
|
120
|
+
* @summary List Entity Paths
|
|
121
|
+
* @param spaceId
|
|
122
|
+
* @param pagination Pagination params. Defaults to count 200. This parameter exists in alpha.
|
|
123
|
+
* @param search Filter paths by entity name or path name. This parameter exists in alpha.
|
|
124
|
+
*/
|
|
125
|
+
public async listEntityPaths(
|
|
126
|
+
spaceId: string,
|
|
127
|
+
pagination?: PaginationInput,
|
|
128
|
+
search?: string,
|
|
129
|
+
options: { headers: { [name: string]: string } } = { headers: {} }
|
|
130
|
+
): Promise<{
|
|
131
|
+
response: http.IncomingMessage;
|
|
132
|
+
body: ListEntityPaths200Response;
|
|
133
|
+
}> {
|
|
134
|
+
const localVarPath =
|
|
135
|
+
this.basePath +
|
|
136
|
+
'/spaces/{spaceId}/entity-paths'.replace(
|
|
137
|
+
'{' + 'spaceId' + '}',
|
|
138
|
+
encodeURIComponent(String(spaceId))
|
|
139
|
+
);
|
|
140
|
+
let localVarQueryParameters: any = {};
|
|
141
|
+
let localVarHeaderParams: any = (<any>Object).assign(
|
|
142
|
+
{},
|
|
143
|
+
this._defaultHeaders
|
|
144
|
+
);
|
|
145
|
+
const produces = [
|
|
146
|
+
'application/vnd.segment.v1alpha+json',
|
|
147
|
+
'application/json',
|
|
148
|
+
];
|
|
149
|
+
// give precedence to 'application/json'
|
|
150
|
+
if (produces.indexOf('application/json') >= 0) {
|
|
151
|
+
localVarHeaderParams.Accept = 'application/json';
|
|
152
|
+
} else {
|
|
153
|
+
localVarHeaderParams.Accept = produces.join(',');
|
|
154
|
+
}
|
|
155
|
+
let localVarFormParams: any = {};
|
|
156
|
+
|
|
157
|
+
// verify required parameter 'spaceId' is not null or undefined
|
|
158
|
+
if (spaceId === null || spaceId === undefined) {
|
|
159
|
+
throw new Error(
|
|
160
|
+
'Required parameter spaceId was null or undefined when calling listEntityPaths.'
|
|
161
|
+
);
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
if (pagination !== undefined) {
|
|
165
|
+
localVarQueryParameters['pagination'] = ObjectSerializer.serialize(
|
|
166
|
+
pagination,
|
|
167
|
+
'PaginationInput'
|
|
168
|
+
);
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
if (search !== undefined) {
|
|
172
|
+
localVarQueryParameters['search'] = ObjectSerializer.serialize(
|
|
173
|
+
search,
|
|
174
|
+
'string'
|
|
175
|
+
);
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
(<any>Object).assign(localVarHeaderParams, options.headers);
|
|
179
|
+
|
|
180
|
+
let localVarUseFormData = false;
|
|
181
|
+
|
|
182
|
+
let localVarRequestOptions: localVarRequest.Options = {
|
|
183
|
+
method: 'GET',
|
|
184
|
+
qs: localVarQueryParameters,
|
|
185
|
+
headers: localVarHeaderParams,
|
|
186
|
+
uri: localVarPath,
|
|
187
|
+
useQuerystring: this._useQuerystring,
|
|
188
|
+
json: true,
|
|
189
|
+
};
|
|
190
|
+
|
|
191
|
+
let authenticationPromise = Promise.resolve();
|
|
192
|
+
if (this.authentications.token.accessToken) {
|
|
193
|
+
authenticationPromise = authenticationPromise.then(() =>
|
|
194
|
+
this.authentications.token.applyToRequest(
|
|
195
|
+
localVarRequestOptions
|
|
196
|
+
)
|
|
197
|
+
);
|
|
198
|
+
}
|
|
199
|
+
authenticationPromise = authenticationPromise.then(() =>
|
|
200
|
+
this.authentications.default.applyToRequest(localVarRequestOptions)
|
|
201
|
+
);
|
|
202
|
+
|
|
203
|
+
let interceptorPromise = authenticationPromise;
|
|
204
|
+
for (const interceptor of this.interceptors) {
|
|
205
|
+
interceptorPromise = interceptorPromise.then(() =>
|
|
206
|
+
interceptor(localVarRequestOptions)
|
|
207
|
+
);
|
|
208
|
+
}
|
|
209
|
+
|
|
210
|
+
return interceptorPromise.then(() => {
|
|
211
|
+
if (Object.keys(localVarFormParams).length) {
|
|
212
|
+
if (localVarUseFormData) {
|
|
213
|
+
(<any>localVarRequestOptions).formData = localVarFormParams;
|
|
214
|
+
} else {
|
|
215
|
+
localVarRequestOptions.form = localVarFormParams;
|
|
216
|
+
}
|
|
217
|
+
}
|
|
218
|
+
return new Promise<{
|
|
219
|
+
response: http.IncomingMessage;
|
|
220
|
+
body: ListEntityPaths200Response;
|
|
221
|
+
}>((resolve, reject) => {
|
|
222
|
+
localVarRequest(
|
|
223
|
+
localVarRequestOptions,
|
|
224
|
+
(error, response, body) => {
|
|
225
|
+
if (error) {
|
|
226
|
+
reject(error);
|
|
227
|
+
} else {
|
|
228
|
+
if (
|
|
229
|
+
response.statusCode &&
|
|
230
|
+
response.statusCode >= 200 &&
|
|
231
|
+
response.statusCode <= 299
|
|
232
|
+
) {
|
|
233
|
+
body = ObjectSerializer.deserialize(
|
|
234
|
+
body,
|
|
235
|
+
'ListEntityPaths200Response'
|
|
236
|
+
);
|
|
237
|
+
resolve({ response: response, body: body });
|
|
238
|
+
} else {
|
|
239
|
+
reject(
|
|
240
|
+
new HttpError(
|
|
241
|
+
response,
|
|
242
|
+
body,
|
|
243
|
+
response.statusCode
|
|
244
|
+
)
|
|
245
|
+
);
|
|
246
|
+
}
|
|
247
|
+
}
|
|
248
|
+
}
|
|
249
|
+
);
|
|
250
|
+
});
|
|
251
|
+
});
|
|
252
|
+
}
|
|
253
|
+
/**
|
|
254
|
+
* Returns a list of Events for a Space. • This endpoint is in **Alpha** testing. Please submit any feedback by sending an email to friends@segment.com. 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.
|
|
255
|
+
* @summary List Events
|
|
256
|
+
* @param spaceId
|
|
257
|
+
* @param pagination Pagination params. Defaults to count 200. This parameter exists in alpha.
|
|
258
|
+
* @param sortBy Field to sort by. Defaults to \'lastSeenAt\'. This parameter exists in alpha.
|
|
259
|
+
* @param sortDir Sort direction. Defaults to \'desc\'. This parameter exists in alpha.
|
|
260
|
+
* @param search Filter events by name substring. This parameter exists in alpha.
|
|
261
|
+
*/
|
|
262
|
+
public async listEvents(
|
|
263
|
+
spaceId: string,
|
|
264
|
+
pagination?: PaginationInput,
|
|
265
|
+
sortBy?: 'lastSeenAt' | 'name',
|
|
266
|
+
sortDir?: 'asc' | 'desc',
|
|
267
|
+
search?: string,
|
|
268
|
+
options: { headers: { [name: string]: string } } = { headers: {} }
|
|
269
|
+
): Promise<{
|
|
270
|
+
response: http.IncomingMessage;
|
|
271
|
+
body: ListEvents200Response;
|
|
272
|
+
}> {
|
|
273
|
+
const localVarPath =
|
|
274
|
+
this.basePath +
|
|
275
|
+
'/spaces/{spaceId}/events'.replace(
|
|
276
|
+
'{' + 'spaceId' + '}',
|
|
277
|
+
encodeURIComponent(String(spaceId))
|
|
278
|
+
);
|
|
279
|
+
let localVarQueryParameters: any = {};
|
|
280
|
+
let localVarHeaderParams: any = (<any>Object).assign(
|
|
281
|
+
{},
|
|
282
|
+
this._defaultHeaders
|
|
283
|
+
);
|
|
284
|
+
const produces = [
|
|
285
|
+
'application/vnd.segment.v1alpha+json',
|
|
286
|
+
'application/json',
|
|
287
|
+
];
|
|
288
|
+
// give precedence to 'application/json'
|
|
289
|
+
if (produces.indexOf('application/json') >= 0) {
|
|
290
|
+
localVarHeaderParams.Accept = 'application/json';
|
|
291
|
+
} else {
|
|
292
|
+
localVarHeaderParams.Accept = produces.join(',');
|
|
293
|
+
}
|
|
294
|
+
let localVarFormParams: any = {};
|
|
295
|
+
|
|
296
|
+
// verify required parameter 'spaceId' is not null or undefined
|
|
297
|
+
if (spaceId === null || spaceId === undefined) {
|
|
298
|
+
throw new Error(
|
|
299
|
+
'Required parameter spaceId was null or undefined when calling listEvents.'
|
|
300
|
+
);
|
|
301
|
+
}
|
|
302
|
+
|
|
303
|
+
if (pagination !== undefined) {
|
|
304
|
+
localVarQueryParameters['pagination'] = ObjectSerializer.serialize(
|
|
305
|
+
pagination,
|
|
306
|
+
'PaginationInput'
|
|
307
|
+
);
|
|
308
|
+
}
|
|
309
|
+
|
|
310
|
+
if (sortBy !== undefined) {
|
|
311
|
+
localVarQueryParameters['sortBy'] = ObjectSerializer.serialize(
|
|
312
|
+
sortBy,
|
|
313
|
+
"'lastSeenAt' | 'name'"
|
|
314
|
+
);
|
|
315
|
+
}
|
|
316
|
+
|
|
317
|
+
if (sortDir !== undefined) {
|
|
318
|
+
localVarQueryParameters['sortDir'] = ObjectSerializer.serialize(
|
|
319
|
+
sortDir,
|
|
320
|
+
"'asc' | 'desc'"
|
|
321
|
+
);
|
|
322
|
+
}
|
|
323
|
+
|
|
324
|
+
if (search !== undefined) {
|
|
325
|
+
localVarQueryParameters['search'] = ObjectSerializer.serialize(
|
|
326
|
+
search,
|
|
327
|
+
'string'
|
|
328
|
+
);
|
|
329
|
+
}
|
|
330
|
+
|
|
331
|
+
(<any>Object).assign(localVarHeaderParams, options.headers);
|
|
332
|
+
|
|
333
|
+
let localVarUseFormData = false;
|
|
334
|
+
|
|
335
|
+
let localVarRequestOptions: localVarRequest.Options = {
|
|
336
|
+
method: 'GET',
|
|
337
|
+
qs: localVarQueryParameters,
|
|
338
|
+
headers: localVarHeaderParams,
|
|
339
|
+
uri: localVarPath,
|
|
340
|
+
useQuerystring: this._useQuerystring,
|
|
341
|
+
json: true,
|
|
342
|
+
};
|
|
343
|
+
|
|
344
|
+
let authenticationPromise = Promise.resolve();
|
|
345
|
+
if (this.authentications.token.accessToken) {
|
|
346
|
+
authenticationPromise = authenticationPromise.then(() =>
|
|
347
|
+
this.authentications.token.applyToRequest(
|
|
348
|
+
localVarRequestOptions
|
|
349
|
+
)
|
|
350
|
+
);
|
|
351
|
+
}
|
|
352
|
+
authenticationPromise = authenticationPromise.then(() =>
|
|
353
|
+
this.authentications.default.applyToRequest(localVarRequestOptions)
|
|
354
|
+
);
|
|
355
|
+
|
|
356
|
+
let interceptorPromise = authenticationPromise;
|
|
357
|
+
for (const interceptor of this.interceptors) {
|
|
358
|
+
interceptorPromise = interceptorPromise.then(() =>
|
|
359
|
+
interceptor(localVarRequestOptions)
|
|
360
|
+
);
|
|
361
|
+
}
|
|
362
|
+
|
|
363
|
+
return interceptorPromise.then(() => {
|
|
364
|
+
if (Object.keys(localVarFormParams).length) {
|
|
365
|
+
if (localVarUseFormData) {
|
|
366
|
+
(<any>localVarRequestOptions).formData = localVarFormParams;
|
|
367
|
+
} else {
|
|
368
|
+
localVarRequestOptions.form = localVarFormParams;
|
|
369
|
+
}
|
|
370
|
+
}
|
|
371
|
+
return new Promise<{
|
|
372
|
+
response: http.IncomingMessage;
|
|
373
|
+
body: ListEvents200Response;
|
|
374
|
+
}>((resolve, reject) => {
|
|
375
|
+
localVarRequest(
|
|
376
|
+
localVarRequestOptions,
|
|
377
|
+
(error, response, body) => {
|
|
378
|
+
if (error) {
|
|
379
|
+
reject(error);
|
|
380
|
+
} else {
|
|
381
|
+
if (
|
|
382
|
+
response.statusCode &&
|
|
383
|
+
response.statusCode >= 200 &&
|
|
384
|
+
response.statusCode <= 299
|
|
385
|
+
) {
|
|
386
|
+
body = ObjectSerializer.deserialize(
|
|
387
|
+
body,
|
|
388
|
+
'ListEvents200Response'
|
|
389
|
+
);
|
|
390
|
+
resolve({ response: response, body: body });
|
|
391
|
+
} else {
|
|
392
|
+
reject(
|
|
393
|
+
new HttpError(
|
|
394
|
+
response,
|
|
395
|
+
body,
|
|
396
|
+
response.statusCode
|
|
397
|
+
)
|
|
398
|
+
);
|
|
399
|
+
}
|
|
400
|
+
}
|
|
401
|
+
}
|
|
402
|
+
);
|
|
403
|
+
});
|
|
404
|
+
});
|
|
405
|
+
}
|
|
406
|
+
/**
|
|
407
|
+
* Returns a list of Properties for an Entity in a Space. • This endpoint is in **Alpha** testing. Please submit any feedback by sending an email to friends@segment.com. <div style=\"background-color: #e8f4fd; border: 1px solid #90caf9; border-radius: 6px; padding: 16px; margin: 16px 0; color: #0d47a1; line-height: 1.5;\"> <ul style=\"margin: 0; padding-left: 20px; font-size: 13px;\"> <li style=\"margin-bottom: 6px;\"><strong>Forward-only pagination</strong>: this endpoint does not support backward traversal. The <code>pagination.previous</code> field is always absent; use <code>pagination.next</code> to advance through pages.</li> </ul> </div> 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.
|
|
408
|
+
* @summary List Properties from Entity
|
|
409
|
+
* @param spaceId
|
|
410
|
+
* @param entitySlug
|
|
411
|
+
* @param pagination Pagination params. Defaults to count 200. This parameter exists in alpha.
|
|
412
|
+
* @param includeSampleValues When true, include sample values for each property. Defaults to false. This parameter exists in alpha.
|
|
413
|
+
* @param samplesCount Max number of sample values to return per property. Defaults to 20, min 1, max 100. This parameter exists in alpha.
|
|
414
|
+
*/
|
|
415
|
+
public async listPropertiesFromEntity(
|
|
416
|
+
spaceId: string,
|
|
417
|
+
entitySlug: string,
|
|
418
|
+
pagination?: PaginationInput,
|
|
419
|
+
includeSampleValues?: boolean,
|
|
420
|
+
samplesCount?: number,
|
|
421
|
+
options: { headers: { [name: string]: string } } = { headers: {} }
|
|
422
|
+
): Promise<{
|
|
423
|
+
response: http.IncomingMessage;
|
|
424
|
+
body: ListPropertiesFromEntity200Response;
|
|
425
|
+
}> {
|
|
426
|
+
const localVarPath =
|
|
427
|
+
this.basePath +
|
|
428
|
+
'/spaces/{spaceId}/entities/{entitySlug}/properties'
|
|
429
|
+
.replace(
|
|
430
|
+
'{' + 'spaceId' + '}',
|
|
431
|
+
encodeURIComponent(String(spaceId))
|
|
432
|
+
)
|
|
433
|
+
.replace(
|
|
434
|
+
'{' + 'entitySlug' + '}',
|
|
435
|
+
encodeURIComponent(String(entitySlug))
|
|
436
|
+
);
|
|
437
|
+
let localVarQueryParameters: any = {};
|
|
438
|
+
let localVarHeaderParams: any = (<any>Object).assign(
|
|
439
|
+
{},
|
|
440
|
+
this._defaultHeaders
|
|
441
|
+
);
|
|
442
|
+
const produces = [
|
|
443
|
+
'application/vnd.segment.v1alpha+json',
|
|
444
|
+
'application/json',
|
|
445
|
+
];
|
|
446
|
+
// give precedence to 'application/json'
|
|
447
|
+
if (produces.indexOf('application/json') >= 0) {
|
|
448
|
+
localVarHeaderParams.Accept = 'application/json';
|
|
449
|
+
} else {
|
|
450
|
+
localVarHeaderParams.Accept = produces.join(',');
|
|
451
|
+
}
|
|
452
|
+
let localVarFormParams: any = {};
|
|
453
|
+
|
|
454
|
+
// verify required parameter 'spaceId' is not null or undefined
|
|
455
|
+
if (spaceId === null || spaceId === undefined) {
|
|
456
|
+
throw new Error(
|
|
457
|
+
'Required parameter spaceId was null or undefined when calling listPropertiesFromEntity.'
|
|
458
|
+
);
|
|
459
|
+
}
|
|
460
|
+
|
|
461
|
+
// verify required parameter 'entitySlug' is not null or undefined
|
|
462
|
+
if (entitySlug === null || entitySlug === undefined) {
|
|
463
|
+
throw new Error(
|
|
464
|
+
'Required parameter entitySlug was null or undefined when calling listPropertiesFromEntity.'
|
|
465
|
+
);
|
|
466
|
+
}
|
|
467
|
+
|
|
468
|
+
if (pagination !== undefined) {
|
|
469
|
+
localVarQueryParameters['pagination'] = ObjectSerializer.serialize(
|
|
470
|
+
pagination,
|
|
471
|
+
'PaginationInput'
|
|
472
|
+
);
|
|
473
|
+
}
|
|
474
|
+
|
|
475
|
+
if (includeSampleValues !== undefined) {
|
|
476
|
+
localVarQueryParameters['includeSampleValues'] =
|
|
477
|
+
ObjectSerializer.serialize(includeSampleValues, 'boolean');
|
|
478
|
+
}
|
|
479
|
+
|
|
480
|
+
if (samplesCount !== undefined) {
|
|
481
|
+
localVarQueryParameters['samplesCount'] =
|
|
482
|
+
ObjectSerializer.serialize(samplesCount, 'number');
|
|
483
|
+
}
|
|
484
|
+
|
|
485
|
+
(<any>Object).assign(localVarHeaderParams, options.headers);
|
|
486
|
+
|
|
487
|
+
let localVarUseFormData = false;
|
|
488
|
+
|
|
489
|
+
let localVarRequestOptions: localVarRequest.Options = {
|
|
490
|
+
method: 'GET',
|
|
491
|
+
qs: localVarQueryParameters,
|
|
492
|
+
headers: localVarHeaderParams,
|
|
493
|
+
uri: localVarPath,
|
|
494
|
+
useQuerystring: this._useQuerystring,
|
|
495
|
+
json: true,
|
|
496
|
+
};
|
|
497
|
+
|
|
498
|
+
let authenticationPromise = Promise.resolve();
|
|
499
|
+
if (this.authentications.token.accessToken) {
|
|
500
|
+
authenticationPromise = authenticationPromise.then(() =>
|
|
501
|
+
this.authentications.token.applyToRequest(
|
|
502
|
+
localVarRequestOptions
|
|
503
|
+
)
|
|
504
|
+
);
|
|
505
|
+
}
|
|
506
|
+
authenticationPromise = authenticationPromise.then(() =>
|
|
507
|
+
this.authentications.default.applyToRequest(localVarRequestOptions)
|
|
508
|
+
);
|
|
509
|
+
|
|
510
|
+
let interceptorPromise = authenticationPromise;
|
|
511
|
+
for (const interceptor of this.interceptors) {
|
|
512
|
+
interceptorPromise = interceptorPromise.then(() =>
|
|
513
|
+
interceptor(localVarRequestOptions)
|
|
514
|
+
);
|
|
515
|
+
}
|
|
516
|
+
|
|
517
|
+
return interceptorPromise.then(() => {
|
|
518
|
+
if (Object.keys(localVarFormParams).length) {
|
|
519
|
+
if (localVarUseFormData) {
|
|
520
|
+
(<any>localVarRequestOptions).formData = localVarFormParams;
|
|
521
|
+
} else {
|
|
522
|
+
localVarRequestOptions.form = localVarFormParams;
|
|
523
|
+
}
|
|
524
|
+
}
|
|
525
|
+
return new Promise<{
|
|
526
|
+
response: http.IncomingMessage;
|
|
527
|
+
body: ListPropertiesFromEntity200Response;
|
|
528
|
+
}>((resolve, reject) => {
|
|
529
|
+
localVarRequest(
|
|
530
|
+
localVarRequestOptions,
|
|
531
|
+
(error, response, body) => {
|
|
532
|
+
if (error) {
|
|
533
|
+
reject(error);
|
|
534
|
+
} else {
|
|
535
|
+
if (
|
|
536
|
+
response.statusCode &&
|
|
537
|
+
response.statusCode >= 200 &&
|
|
538
|
+
response.statusCode <= 299
|
|
539
|
+
) {
|
|
540
|
+
body = ObjectSerializer.deserialize(
|
|
541
|
+
body,
|
|
542
|
+
'ListPropertiesFromEntity200Response'
|
|
543
|
+
);
|
|
544
|
+
resolve({ response: response, body: body });
|
|
545
|
+
} else {
|
|
546
|
+
reject(
|
|
547
|
+
new HttpError(
|
|
548
|
+
response,
|
|
549
|
+
body,
|
|
550
|
+
response.statusCode
|
|
551
|
+
)
|
|
552
|
+
);
|
|
553
|
+
}
|
|
554
|
+
}
|
|
555
|
+
}
|
|
556
|
+
);
|
|
557
|
+
});
|
|
558
|
+
});
|
|
559
|
+
}
|
|
560
|
+
/**
|
|
561
|
+
* Returns a list of Properties for an Event in a Space. • This endpoint is in **Alpha** testing. Please submit any feedback by sending an email to friends@segment.com. 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.
|
|
562
|
+
* @summary List Properties from Event
|
|
563
|
+
* @param spaceId
|
|
564
|
+
* @param eventName
|
|
565
|
+
* @param pagination Pagination params. Defaults to count 200. This parameter exists in alpha.
|
|
566
|
+
* @param sortBy Field to sort by. Defaults to \'lastSeenAt\'. This parameter exists in alpha.
|
|
567
|
+
* @param sortDir Sort direction. Defaults to \'desc\'. This parameter exists in alpha.
|
|
568
|
+
* @param search Filter properties by name substring. This parameter exists in alpha.
|
|
569
|
+
* @param includeSampleValues When true, include sample values for each property. Defaults to false. This parameter exists in alpha.
|
|
570
|
+
* @param samplesCount Max number of sample values to return per property. Defaults to 20, min 1, max 100. This parameter exists in alpha.
|
|
571
|
+
*/
|
|
572
|
+
public async listPropertiesFromEvent(
|
|
573
|
+
spaceId: string,
|
|
574
|
+
eventName: string,
|
|
575
|
+
pagination?: PaginationInput,
|
|
576
|
+
sortBy?: 'lastSeenAt' | 'name',
|
|
577
|
+
sortDir?: 'asc' | 'desc',
|
|
578
|
+
search?: string,
|
|
579
|
+
includeSampleValues?: boolean,
|
|
580
|
+
samplesCount?: number,
|
|
581
|
+
options: { headers: { [name: string]: string } } = { headers: {} }
|
|
582
|
+
): Promise<{
|
|
583
|
+
response: http.IncomingMessage;
|
|
584
|
+
body: ListPropertiesFromEvent200Response;
|
|
585
|
+
}> {
|
|
586
|
+
const localVarPath =
|
|
587
|
+
this.basePath +
|
|
588
|
+
'/spaces/{spaceId}/events/{eventName}/properties'
|
|
589
|
+
.replace(
|
|
590
|
+
'{' + 'spaceId' + '}',
|
|
591
|
+
encodeURIComponent(String(spaceId))
|
|
592
|
+
)
|
|
593
|
+
.replace(
|
|
594
|
+
'{' + 'eventName' + '}',
|
|
595
|
+
encodeURIComponent(String(eventName))
|
|
596
|
+
);
|
|
597
|
+
let localVarQueryParameters: any = {};
|
|
598
|
+
let localVarHeaderParams: any = (<any>Object).assign(
|
|
599
|
+
{},
|
|
600
|
+
this._defaultHeaders
|
|
601
|
+
);
|
|
602
|
+
const produces = [
|
|
603
|
+
'application/vnd.segment.v1alpha+json',
|
|
604
|
+
'application/json',
|
|
605
|
+
];
|
|
606
|
+
// give precedence to 'application/json'
|
|
607
|
+
if (produces.indexOf('application/json') >= 0) {
|
|
608
|
+
localVarHeaderParams.Accept = 'application/json';
|
|
609
|
+
} else {
|
|
610
|
+
localVarHeaderParams.Accept = produces.join(',');
|
|
611
|
+
}
|
|
612
|
+
let localVarFormParams: any = {};
|
|
613
|
+
|
|
614
|
+
// verify required parameter 'spaceId' is not null or undefined
|
|
615
|
+
if (spaceId === null || spaceId === undefined) {
|
|
616
|
+
throw new Error(
|
|
617
|
+
'Required parameter spaceId was null or undefined when calling listPropertiesFromEvent.'
|
|
618
|
+
);
|
|
619
|
+
}
|
|
620
|
+
|
|
621
|
+
// verify required parameter 'eventName' is not null or undefined
|
|
622
|
+
if (eventName === null || eventName === undefined) {
|
|
623
|
+
throw new Error(
|
|
624
|
+
'Required parameter eventName was null or undefined when calling listPropertiesFromEvent.'
|
|
625
|
+
);
|
|
626
|
+
}
|
|
627
|
+
|
|
628
|
+
if (pagination !== undefined) {
|
|
629
|
+
localVarQueryParameters['pagination'] = ObjectSerializer.serialize(
|
|
630
|
+
pagination,
|
|
631
|
+
'PaginationInput'
|
|
632
|
+
);
|
|
633
|
+
}
|
|
634
|
+
|
|
635
|
+
if (sortBy !== undefined) {
|
|
636
|
+
localVarQueryParameters['sortBy'] = ObjectSerializer.serialize(
|
|
637
|
+
sortBy,
|
|
638
|
+
"'lastSeenAt' | 'name'"
|
|
639
|
+
);
|
|
640
|
+
}
|
|
641
|
+
|
|
642
|
+
if (sortDir !== undefined) {
|
|
643
|
+
localVarQueryParameters['sortDir'] = ObjectSerializer.serialize(
|
|
644
|
+
sortDir,
|
|
645
|
+
"'asc' | 'desc'"
|
|
646
|
+
);
|
|
647
|
+
}
|
|
648
|
+
|
|
649
|
+
if (search !== undefined) {
|
|
650
|
+
localVarQueryParameters['search'] = ObjectSerializer.serialize(
|
|
651
|
+
search,
|
|
652
|
+
'string'
|
|
653
|
+
);
|
|
654
|
+
}
|
|
655
|
+
|
|
656
|
+
if (includeSampleValues !== undefined) {
|
|
657
|
+
localVarQueryParameters['includeSampleValues'] =
|
|
658
|
+
ObjectSerializer.serialize(includeSampleValues, 'boolean');
|
|
659
|
+
}
|
|
660
|
+
|
|
661
|
+
if (samplesCount !== undefined) {
|
|
662
|
+
localVarQueryParameters['samplesCount'] =
|
|
663
|
+
ObjectSerializer.serialize(samplesCount, 'number');
|
|
664
|
+
}
|
|
665
|
+
|
|
666
|
+
(<any>Object).assign(localVarHeaderParams, options.headers);
|
|
667
|
+
|
|
668
|
+
let localVarUseFormData = false;
|
|
669
|
+
|
|
670
|
+
let localVarRequestOptions: localVarRequest.Options = {
|
|
671
|
+
method: 'GET',
|
|
672
|
+
qs: localVarQueryParameters,
|
|
673
|
+
headers: localVarHeaderParams,
|
|
674
|
+
uri: localVarPath,
|
|
675
|
+
useQuerystring: this._useQuerystring,
|
|
676
|
+
json: true,
|
|
677
|
+
};
|
|
678
|
+
|
|
679
|
+
let authenticationPromise = Promise.resolve();
|
|
680
|
+
if (this.authentications.token.accessToken) {
|
|
681
|
+
authenticationPromise = authenticationPromise.then(() =>
|
|
682
|
+
this.authentications.token.applyToRequest(
|
|
683
|
+
localVarRequestOptions
|
|
684
|
+
)
|
|
685
|
+
);
|
|
686
|
+
}
|
|
687
|
+
authenticationPromise = authenticationPromise.then(() =>
|
|
688
|
+
this.authentications.default.applyToRequest(localVarRequestOptions)
|
|
689
|
+
);
|
|
690
|
+
|
|
691
|
+
let interceptorPromise = authenticationPromise;
|
|
692
|
+
for (const interceptor of this.interceptors) {
|
|
693
|
+
interceptorPromise = interceptorPromise.then(() =>
|
|
694
|
+
interceptor(localVarRequestOptions)
|
|
695
|
+
);
|
|
696
|
+
}
|
|
697
|
+
|
|
698
|
+
return interceptorPromise.then(() => {
|
|
699
|
+
if (Object.keys(localVarFormParams).length) {
|
|
700
|
+
if (localVarUseFormData) {
|
|
701
|
+
(<any>localVarRequestOptions).formData = localVarFormParams;
|
|
702
|
+
} else {
|
|
703
|
+
localVarRequestOptions.form = localVarFormParams;
|
|
704
|
+
}
|
|
705
|
+
}
|
|
706
|
+
return new Promise<{
|
|
707
|
+
response: http.IncomingMessage;
|
|
708
|
+
body: ListPropertiesFromEvent200Response;
|
|
709
|
+
}>((resolve, reject) => {
|
|
710
|
+
localVarRequest(
|
|
711
|
+
localVarRequestOptions,
|
|
712
|
+
(error, response, body) => {
|
|
713
|
+
if (error) {
|
|
714
|
+
reject(error);
|
|
715
|
+
} else {
|
|
716
|
+
if (
|
|
717
|
+
response.statusCode &&
|
|
718
|
+
response.statusCode >= 200 &&
|
|
719
|
+
response.statusCode <= 299
|
|
720
|
+
) {
|
|
721
|
+
body = ObjectSerializer.deserialize(
|
|
722
|
+
body,
|
|
723
|
+
'ListPropertiesFromEvent200Response'
|
|
724
|
+
);
|
|
725
|
+
resolve({ response: response, body: body });
|
|
726
|
+
} else {
|
|
727
|
+
reject(
|
|
728
|
+
new HttpError(
|
|
729
|
+
response,
|
|
730
|
+
body,
|
|
731
|
+
response.statusCode
|
|
732
|
+
)
|
|
733
|
+
);
|
|
734
|
+
}
|
|
735
|
+
}
|
|
736
|
+
}
|
|
737
|
+
);
|
|
738
|
+
});
|
|
739
|
+
});
|
|
740
|
+
}
|
|
741
|
+
/**
|
|
742
|
+
* Returns sample values for an Entity Property in a Space. • This endpoint is in **Alpha** testing. Please submit any feedback by sending an email to friends@segment.com. 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.
|
|
743
|
+
* @summary List Sample Values from Entity Property
|
|
744
|
+
* @param spaceId
|
|
745
|
+
* @param entitySlug
|
|
746
|
+
* @param propertyName
|
|
747
|
+
*/
|
|
748
|
+
public async listSampleValuesFromEntityProperty(
|
|
749
|
+
spaceId: string,
|
|
750
|
+
entitySlug: string,
|
|
751
|
+
propertyName: string,
|
|
752
|
+
options: { headers: { [name: string]: string } } = { headers: {} }
|
|
753
|
+
): Promise<{
|
|
754
|
+
response: http.IncomingMessage;
|
|
755
|
+
body: ListSampleValuesFromEntityProperty200Response;
|
|
756
|
+
}> {
|
|
757
|
+
const localVarPath =
|
|
758
|
+
this.basePath +
|
|
759
|
+
'/spaces/{spaceId}/entities/{entitySlug}/properties/{propertyName}/sample-values'
|
|
760
|
+
.replace(
|
|
761
|
+
'{' + 'spaceId' + '}',
|
|
762
|
+
encodeURIComponent(String(spaceId))
|
|
763
|
+
)
|
|
764
|
+
.replace(
|
|
765
|
+
'{' + 'entitySlug' + '}',
|
|
766
|
+
encodeURIComponent(String(entitySlug))
|
|
767
|
+
)
|
|
768
|
+
.replace(
|
|
769
|
+
'{' + 'propertyName' + '}',
|
|
770
|
+
encodeURIComponent(String(propertyName))
|
|
771
|
+
);
|
|
772
|
+
let localVarQueryParameters: any = {};
|
|
773
|
+
let localVarHeaderParams: any = (<any>Object).assign(
|
|
774
|
+
{},
|
|
775
|
+
this._defaultHeaders
|
|
776
|
+
);
|
|
777
|
+
const produces = [
|
|
778
|
+
'application/vnd.segment.v1alpha+json',
|
|
779
|
+
'application/json',
|
|
780
|
+
];
|
|
781
|
+
// give precedence to 'application/json'
|
|
782
|
+
if (produces.indexOf('application/json') >= 0) {
|
|
783
|
+
localVarHeaderParams.Accept = 'application/json';
|
|
784
|
+
} else {
|
|
785
|
+
localVarHeaderParams.Accept = produces.join(',');
|
|
786
|
+
}
|
|
787
|
+
let localVarFormParams: any = {};
|
|
788
|
+
|
|
789
|
+
// verify required parameter 'spaceId' is not null or undefined
|
|
790
|
+
if (spaceId === null || spaceId === undefined) {
|
|
791
|
+
throw new Error(
|
|
792
|
+
'Required parameter spaceId was null or undefined when calling listSampleValuesFromEntityProperty.'
|
|
793
|
+
);
|
|
794
|
+
}
|
|
795
|
+
|
|
796
|
+
// verify required parameter 'entitySlug' is not null or undefined
|
|
797
|
+
if (entitySlug === null || entitySlug === undefined) {
|
|
798
|
+
throw new Error(
|
|
799
|
+
'Required parameter entitySlug was null or undefined when calling listSampleValuesFromEntityProperty.'
|
|
800
|
+
);
|
|
801
|
+
}
|
|
802
|
+
|
|
803
|
+
// verify required parameter 'propertyName' is not null or undefined
|
|
804
|
+
if (propertyName === null || propertyName === undefined) {
|
|
805
|
+
throw new Error(
|
|
806
|
+
'Required parameter propertyName was null or undefined when calling listSampleValuesFromEntityProperty.'
|
|
807
|
+
);
|
|
808
|
+
}
|
|
809
|
+
|
|
810
|
+
(<any>Object).assign(localVarHeaderParams, options.headers);
|
|
811
|
+
|
|
812
|
+
let localVarUseFormData = false;
|
|
813
|
+
|
|
814
|
+
let localVarRequestOptions: localVarRequest.Options = {
|
|
815
|
+
method: 'GET',
|
|
816
|
+
qs: localVarQueryParameters,
|
|
817
|
+
headers: localVarHeaderParams,
|
|
818
|
+
uri: localVarPath,
|
|
819
|
+
useQuerystring: this._useQuerystring,
|
|
820
|
+
json: true,
|
|
821
|
+
};
|
|
822
|
+
|
|
823
|
+
let authenticationPromise = Promise.resolve();
|
|
824
|
+
if (this.authentications.token.accessToken) {
|
|
825
|
+
authenticationPromise = authenticationPromise.then(() =>
|
|
826
|
+
this.authentications.token.applyToRequest(
|
|
827
|
+
localVarRequestOptions
|
|
828
|
+
)
|
|
829
|
+
);
|
|
830
|
+
}
|
|
831
|
+
authenticationPromise = authenticationPromise.then(() =>
|
|
832
|
+
this.authentications.default.applyToRequest(localVarRequestOptions)
|
|
833
|
+
);
|
|
834
|
+
|
|
835
|
+
let interceptorPromise = authenticationPromise;
|
|
836
|
+
for (const interceptor of this.interceptors) {
|
|
837
|
+
interceptorPromise = interceptorPromise.then(() =>
|
|
838
|
+
interceptor(localVarRequestOptions)
|
|
839
|
+
);
|
|
840
|
+
}
|
|
841
|
+
|
|
842
|
+
return interceptorPromise.then(() => {
|
|
843
|
+
if (Object.keys(localVarFormParams).length) {
|
|
844
|
+
if (localVarUseFormData) {
|
|
845
|
+
(<any>localVarRequestOptions).formData = localVarFormParams;
|
|
846
|
+
} else {
|
|
847
|
+
localVarRequestOptions.form = localVarFormParams;
|
|
848
|
+
}
|
|
849
|
+
}
|
|
850
|
+
return new Promise<{
|
|
851
|
+
response: http.IncomingMessage;
|
|
852
|
+
body: ListSampleValuesFromEntityProperty200Response;
|
|
853
|
+
}>((resolve, reject) => {
|
|
854
|
+
localVarRequest(
|
|
855
|
+
localVarRequestOptions,
|
|
856
|
+
(error, response, body) => {
|
|
857
|
+
if (error) {
|
|
858
|
+
reject(error);
|
|
859
|
+
} else {
|
|
860
|
+
if (
|
|
861
|
+
response.statusCode &&
|
|
862
|
+
response.statusCode >= 200 &&
|
|
863
|
+
response.statusCode <= 299
|
|
864
|
+
) {
|
|
865
|
+
body = ObjectSerializer.deserialize(
|
|
866
|
+
body,
|
|
867
|
+
'ListSampleValuesFromEntityProperty200Response'
|
|
868
|
+
);
|
|
869
|
+
resolve({ response: response, body: body });
|
|
870
|
+
} else {
|
|
871
|
+
reject(
|
|
872
|
+
new HttpError(
|
|
873
|
+
response,
|
|
874
|
+
body,
|
|
875
|
+
response.statusCode
|
|
876
|
+
)
|
|
877
|
+
);
|
|
878
|
+
}
|
|
879
|
+
}
|
|
880
|
+
}
|
|
881
|
+
);
|
|
882
|
+
});
|
|
883
|
+
});
|
|
884
|
+
}
|
|
885
|
+
/**
|
|
886
|
+
* Returns sample values for an Event Property in a Space. • This endpoint is in **Alpha** testing. Please submit any feedback by sending an email to friends@segment.com. 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.
|
|
887
|
+
* @summary List Sample Values from Event Property
|
|
888
|
+
* @param spaceId
|
|
889
|
+
* @param eventName
|
|
890
|
+
* @param propertyName
|
|
891
|
+
* @param propertyType The property type. This parameter exists in alpha.
|
|
892
|
+
*/
|
|
893
|
+
public async listSampleValuesFromEventProperty(
|
|
894
|
+
spaceId: string,
|
|
895
|
+
eventName: string,
|
|
896
|
+
propertyName: string,
|
|
897
|
+
propertyType: EventPropertyType,
|
|
898
|
+
options: { headers: { [name: string]: string } } = { headers: {} }
|
|
899
|
+
): Promise<{
|
|
900
|
+
response: http.IncomingMessage;
|
|
901
|
+
body: ListSampleValuesFromEventProperty200Response;
|
|
902
|
+
}> {
|
|
903
|
+
const localVarPath =
|
|
904
|
+
this.basePath +
|
|
905
|
+
'/spaces/{spaceId}/events/{eventName}/properties/{propertyName}/sample-values'
|
|
906
|
+
.replace(
|
|
907
|
+
'{' + 'spaceId' + '}',
|
|
908
|
+
encodeURIComponent(String(spaceId))
|
|
909
|
+
)
|
|
910
|
+
.replace(
|
|
911
|
+
'{' + 'eventName' + '}',
|
|
912
|
+
encodeURIComponent(String(eventName))
|
|
913
|
+
)
|
|
914
|
+
.replace(
|
|
915
|
+
'{' + 'propertyName' + '}',
|
|
916
|
+
encodeURIComponent(String(propertyName))
|
|
917
|
+
);
|
|
918
|
+
let localVarQueryParameters: any = {};
|
|
919
|
+
let localVarHeaderParams: any = (<any>Object).assign(
|
|
920
|
+
{},
|
|
921
|
+
this._defaultHeaders
|
|
922
|
+
);
|
|
923
|
+
const produces = [
|
|
924
|
+
'application/vnd.segment.v1alpha+json',
|
|
925
|
+
'application/json',
|
|
926
|
+
];
|
|
927
|
+
// give precedence to 'application/json'
|
|
928
|
+
if (produces.indexOf('application/json') >= 0) {
|
|
929
|
+
localVarHeaderParams.Accept = 'application/json';
|
|
930
|
+
} else {
|
|
931
|
+
localVarHeaderParams.Accept = produces.join(',');
|
|
932
|
+
}
|
|
933
|
+
let localVarFormParams: any = {};
|
|
934
|
+
|
|
935
|
+
// verify required parameter 'spaceId' is not null or undefined
|
|
936
|
+
if (spaceId === null || spaceId === undefined) {
|
|
937
|
+
throw new Error(
|
|
938
|
+
'Required parameter spaceId was null or undefined when calling listSampleValuesFromEventProperty.'
|
|
939
|
+
);
|
|
940
|
+
}
|
|
941
|
+
|
|
942
|
+
// verify required parameter 'eventName' is not null or undefined
|
|
943
|
+
if (eventName === null || eventName === undefined) {
|
|
944
|
+
throw new Error(
|
|
945
|
+
'Required parameter eventName was null or undefined when calling listSampleValuesFromEventProperty.'
|
|
946
|
+
);
|
|
947
|
+
}
|
|
948
|
+
|
|
949
|
+
// verify required parameter 'propertyName' is not null or undefined
|
|
950
|
+
if (propertyName === null || propertyName === undefined) {
|
|
951
|
+
throw new Error(
|
|
952
|
+
'Required parameter propertyName was null or undefined when calling listSampleValuesFromEventProperty.'
|
|
953
|
+
);
|
|
954
|
+
}
|
|
955
|
+
|
|
956
|
+
// verify required parameter 'propertyType' is not null or undefined
|
|
957
|
+
if (propertyType === null || propertyType === undefined) {
|
|
958
|
+
throw new Error(
|
|
959
|
+
'Required parameter propertyType was null or undefined when calling listSampleValuesFromEventProperty.'
|
|
960
|
+
);
|
|
961
|
+
}
|
|
962
|
+
|
|
963
|
+
if (propertyType !== undefined) {
|
|
964
|
+
localVarQueryParameters['propertyType'] =
|
|
965
|
+
ObjectSerializer.serialize(propertyType, 'EventPropertyType');
|
|
966
|
+
}
|
|
967
|
+
|
|
968
|
+
(<any>Object).assign(localVarHeaderParams, options.headers);
|
|
969
|
+
|
|
970
|
+
let localVarUseFormData = false;
|
|
971
|
+
|
|
972
|
+
let localVarRequestOptions: localVarRequest.Options = {
|
|
973
|
+
method: 'GET',
|
|
974
|
+
qs: localVarQueryParameters,
|
|
975
|
+
headers: localVarHeaderParams,
|
|
976
|
+
uri: localVarPath,
|
|
977
|
+
useQuerystring: this._useQuerystring,
|
|
978
|
+
json: true,
|
|
979
|
+
};
|
|
980
|
+
|
|
981
|
+
let authenticationPromise = Promise.resolve();
|
|
982
|
+
if (this.authentications.token.accessToken) {
|
|
983
|
+
authenticationPromise = authenticationPromise.then(() =>
|
|
984
|
+
this.authentications.token.applyToRequest(
|
|
985
|
+
localVarRequestOptions
|
|
986
|
+
)
|
|
987
|
+
);
|
|
988
|
+
}
|
|
989
|
+
authenticationPromise = authenticationPromise.then(() =>
|
|
990
|
+
this.authentications.default.applyToRequest(localVarRequestOptions)
|
|
991
|
+
);
|
|
992
|
+
|
|
993
|
+
let interceptorPromise = authenticationPromise;
|
|
994
|
+
for (const interceptor of this.interceptors) {
|
|
995
|
+
interceptorPromise = interceptorPromise.then(() =>
|
|
996
|
+
interceptor(localVarRequestOptions)
|
|
997
|
+
);
|
|
998
|
+
}
|
|
999
|
+
|
|
1000
|
+
return interceptorPromise.then(() => {
|
|
1001
|
+
if (Object.keys(localVarFormParams).length) {
|
|
1002
|
+
if (localVarUseFormData) {
|
|
1003
|
+
(<any>localVarRequestOptions).formData = localVarFormParams;
|
|
1004
|
+
} else {
|
|
1005
|
+
localVarRequestOptions.form = localVarFormParams;
|
|
1006
|
+
}
|
|
1007
|
+
}
|
|
1008
|
+
return new Promise<{
|
|
1009
|
+
response: http.IncomingMessage;
|
|
1010
|
+
body: ListSampleValuesFromEventProperty200Response;
|
|
1011
|
+
}>((resolve, reject) => {
|
|
1012
|
+
localVarRequest(
|
|
1013
|
+
localVarRequestOptions,
|
|
1014
|
+
(error, response, body) => {
|
|
1015
|
+
if (error) {
|
|
1016
|
+
reject(error);
|
|
1017
|
+
} else {
|
|
1018
|
+
if (
|
|
1019
|
+
response.statusCode &&
|
|
1020
|
+
response.statusCode >= 200 &&
|
|
1021
|
+
response.statusCode <= 299
|
|
1022
|
+
) {
|
|
1023
|
+
body = ObjectSerializer.deserialize(
|
|
1024
|
+
body,
|
|
1025
|
+
'ListSampleValuesFromEventProperty200Response'
|
|
1026
|
+
);
|
|
1027
|
+
resolve({ response: response, body: body });
|
|
1028
|
+
} else {
|
|
1029
|
+
reject(
|
|
1030
|
+
new HttpError(
|
|
1031
|
+
response,
|
|
1032
|
+
body,
|
|
1033
|
+
response.statusCode
|
|
1034
|
+
)
|
|
1035
|
+
);
|
|
1036
|
+
}
|
|
1037
|
+
}
|
|
1038
|
+
}
|
|
1039
|
+
);
|
|
1040
|
+
});
|
|
1041
|
+
});
|
|
1042
|
+
}
|
|
1043
|
+
/**
|
|
1044
|
+
* Returns sample values for a Trait in a Space. • This endpoint is in **Alpha** testing. Please submit any feedback by sending an email to friends@segment.com. 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.
|
|
1045
|
+
* @summary List Sample Values from Trait
|
|
1046
|
+
* @param spaceId
|
|
1047
|
+
* @param traitKey
|
|
1048
|
+
* @param collection Collection to get trait values for. Defaults to \'users\'. This parameter exists in alpha.
|
|
1049
|
+
*/
|
|
1050
|
+
public async listSampleValuesFromTrait(
|
|
1051
|
+
spaceId: string,
|
|
1052
|
+
traitKey: string,
|
|
1053
|
+
collection?: 'accounts' | 'users',
|
|
1054
|
+
options: { headers: { [name: string]: string } } = { headers: {} }
|
|
1055
|
+
): Promise<{
|
|
1056
|
+
response: http.IncomingMessage;
|
|
1057
|
+
body: ListSampleValuesFromTrait200Response;
|
|
1058
|
+
}> {
|
|
1059
|
+
const localVarPath =
|
|
1060
|
+
this.basePath +
|
|
1061
|
+
'/spaces/{spaceId}/traits/{traitKey}/sample-values'
|
|
1062
|
+
.replace(
|
|
1063
|
+
'{' + 'spaceId' + '}',
|
|
1064
|
+
encodeURIComponent(String(spaceId))
|
|
1065
|
+
)
|
|
1066
|
+
.replace(
|
|
1067
|
+
'{' + 'traitKey' + '}',
|
|
1068
|
+
encodeURIComponent(String(traitKey))
|
|
1069
|
+
);
|
|
1070
|
+
let localVarQueryParameters: any = {};
|
|
1071
|
+
let localVarHeaderParams: any = (<any>Object).assign(
|
|
1072
|
+
{},
|
|
1073
|
+
this._defaultHeaders
|
|
1074
|
+
);
|
|
1075
|
+
const produces = [
|
|
1076
|
+
'application/vnd.segment.v1alpha+json',
|
|
1077
|
+
'application/json',
|
|
1078
|
+
];
|
|
1079
|
+
// give precedence to 'application/json'
|
|
1080
|
+
if (produces.indexOf('application/json') >= 0) {
|
|
1081
|
+
localVarHeaderParams.Accept = 'application/json';
|
|
1082
|
+
} else {
|
|
1083
|
+
localVarHeaderParams.Accept = produces.join(',');
|
|
1084
|
+
}
|
|
1085
|
+
let localVarFormParams: any = {};
|
|
1086
|
+
|
|
1087
|
+
// verify required parameter 'spaceId' is not null or undefined
|
|
1088
|
+
if (spaceId === null || spaceId === undefined) {
|
|
1089
|
+
throw new Error(
|
|
1090
|
+
'Required parameter spaceId was null or undefined when calling listSampleValuesFromTrait.'
|
|
1091
|
+
);
|
|
1092
|
+
}
|
|
1093
|
+
|
|
1094
|
+
// verify required parameter 'traitKey' is not null or undefined
|
|
1095
|
+
if (traitKey === null || traitKey === undefined) {
|
|
1096
|
+
throw new Error(
|
|
1097
|
+
'Required parameter traitKey was null or undefined when calling listSampleValuesFromTrait.'
|
|
1098
|
+
);
|
|
1099
|
+
}
|
|
1100
|
+
|
|
1101
|
+
if (collection !== undefined) {
|
|
1102
|
+
localVarQueryParameters['collection'] = ObjectSerializer.serialize(
|
|
1103
|
+
collection,
|
|
1104
|
+
"'accounts' | 'users'"
|
|
1105
|
+
);
|
|
1106
|
+
}
|
|
1107
|
+
|
|
1108
|
+
(<any>Object).assign(localVarHeaderParams, options.headers);
|
|
1109
|
+
|
|
1110
|
+
let localVarUseFormData = false;
|
|
1111
|
+
|
|
1112
|
+
let localVarRequestOptions: localVarRequest.Options = {
|
|
1113
|
+
method: 'GET',
|
|
1114
|
+
qs: localVarQueryParameters,
|
|
1115
|
+
headers: localVarHeaderParams,
|
|
1116
|
+
uri: localVarPath,
|
|
1117
|
+
useQuerystring: this._useQuerystring,
|
|
1118
|
+
json: true,
|
|
1119
|
+
};
|
|
1120
|
+
|
|
1121
|
+
let authenticationPromise = Promise.resolve();
|
|
1122
|
+
if (this.authentications.token.accessToken) {
|
|
1123
|
+
authenticationPromise = authenticationPromise.then(() =>
|
|
1124
|
+
this.authentications.token.applyToRequest(
|
|
1125
|
+
localVarRequestOptions
|
|
1126
|
+
)
|
|
1127
|
+
);
|
|
1128
|
+
}
|
|
1129
|
+
authenticationPromise = authenticationPromise.then(() =>
|
|
1130
|
+
this.authentications.default.applyToRequest(localVarRequestOptions)
|
|
1131
|
+
);
|
|
1132
|
+
|
|
1133
|
+
let interceptorPromise = authenticationPromise;
|
|
1134
|
+
for (const interceptor of this.interceptors) {
|
|
1135
|
+
interceptorPromise = interceptorPromise.then(() =>
|
|
1136
|
+
interceptor(localVarRequestOptions)
|
|
1137
|
+
);
|
|
1138
|
+
}
|
|
1139
|
+
|
|
1140
|
+
return interceptorPromise.then(() => {
|
|
1141
|
+
if (Object.keys(localVarFormParams).length) {
|
|
1142
|
+
if (localVarUseFormData) {
|
|
1143
|
+
(<any>localVarRequestOptions).formData = localVarFormParams;
|
|
1144
|
+
} else {
|
|
1145
|
+
localVarRequestOptions.form = localVarFormParams;
|
|
1146
|
+
}
|
|
1147
|
+
}
|
|
1148
|
+
return new Promise<{
|
|
1149
|
+
response: http.IncomingMessage;
|
|
1150
|
+
body: ListSampleValuesFromTrait200Response;
|
|
1151
|
+
}>((resolve, reject) => {
|
|
1152
|
+
localVarRequest(
|
|
1153
|
+
localVarRequestOptions,
|
|
1154
|
+
(error, response, body) => {
|
|
1155
|
+
if (error) {
|
|
1156
|
+
reject(error);
|
|
1157
|
+
} else {
|
|
1158
|
+
if (
|
|
1159
|
+
response.statusCode &&
|
|
1160
|
+
response.statusCode >= 200 &&
|
|
1161
|
+
response.statusCode <= 299
|
|
1162
|
+
) {
|
|
1163
|
+
body = ObjectSerializer.deserialize(
|
|
1164
|
+
body,
|
|
1165
|
+
'ListSampleValuesFromTrait200Response'
|
|
1166
|
+
);
|
|
1167
|
+
resolve({ response: response, body: body });
|
|
1168
|
+
} else {
|
|
1169
|
+
reject(
|
|
1170
|
+
new HttpError(
|
|
1171
|
+
response,
|
|
1172
|
+
body,
|
|
1173
|
+
response.statusCode
|
|
1174
|
+
)
|
|
1175
|
+
);
|
|
1176
|
+
}
|
|
1177
|
+
}
|
|
1178
|
+
}
|
|
1179
|
+
);
|
|
1180
|
+
});
|
|
1181
|
+
});
|
|
1182
|
+
}
|
|
1183
|
+
/**
|
|
1184
|
+
* Returns a list of Traits for a Space. • This endpoint is in **Alpha** testing. Please submit any feedback by sending an email to friends@segment.com. <div style=\"background-color: #e8f4fd; border: 1px solid #90caf9; border-radius: 6px; padding: 16px; margin: 16px 0; color: #0d47a1; line-height: 1.5;\"> <ul style=\"margin: 0; padding-left: 20px; font-size: 13px;\"> <li style=\"margin-bottom: 6px;\"><strong>Forward-only pagination</strong>: this endpoint does not support backward traversal. The <code>pagination.previous</code> field is always absent; use <code>pagination.next</code> to advance through pages.</li> <li style=\"margin-bottom: 6px;\"><strong>Approximate total count</strong>: <code>pagination.totalEntries</code> is an upper bound that decreases as you paginate — the final page reflects the exact deduplicated count.</li> <li style=\"margin-bottom: 6px;\"><strong>Duplicate entries</strong>: when sorting by <code>lastSeenAt</code>, duplicate trait entries may appear across pages for Spaces with more than 2,500 traits. Sorting by <code>trait</code> is not affected.</li> </ul> </div> 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.
|
|
1185
|
+
* @summary List Traits
|
|
1186
|
+
* @param spaceId
|
|
1187
|
+
* @param pagination Pagination params. Defaults to count 200. This parameter exists in alpha.
|
|
1188
|
+
* @param sortBy Field to sort by. Defaults to \'trait\'. This parameter exists in alpha.
|
|
1189
|
+
* @param sortDir Sort direction. Defaults to \'asc\'. This parameter exists in alpha.
|
|
1190
|
+
* @param search Filter traits by key substring. This parameter exists in alpha.
|
|
1191
|
+
* @param collection Collection to list traits for. Defaults to \'users\'. This parameter exists in alpha.
|
|
1192
|
+
* @param includeSampleValues When true, include sample values for each trait. Defaults to false. This parameter exists in alpha.
|
|
1193
|
+
* @param samplesCount Max number of sample values to return per trait. Defaults to 20, min 1, max 100. This parameter exists in alpha.
|
|
1194
|
+
*/
|
|
1195
|
+
public async listTraits(
|
|
1196
|
+
spaceId: string,
|
|
1197
|
+
pagination?: PaginationInput,
|
|
1198
|
+
sortBy?: 'lastSeenAt' | 'trait',
|
|
1199
|
+
sortDir?: 'asc' | 'desc',
|
|
1200
|
+
search?: string,
|
|
1201
|
+
collection?: 'accounts' | 'users',
|
|
1202
|
+
includeSampleValues?: boolean,
|
|
1203
|
+
samplesCount?: number,
|
|
1204
|
+
options: { headers: { [name: string]: string } } = { headers: {} }
|
|
1205
|
+
): Promise<{
|
|
1206
|
+
response: http.IncomingMessage;
|
|
1207
|
+
body: ListTraits200Response;
|
|
1208
|
+
}> {
|
|
1209
|
+
const localVarPath =
|
|
1210
|
+
this.basePath +
|
|
1211
|
+
'/spaces/{spaceId}/traits'.replace(
|
|
1212
|
+
'{' + 'spaceId' + '}',
|
|
1213
|
+
encodeURIComponent(String(spaceId))
|
|
1214
|
+
);
|
|
1215
|
+
let localVarQueryParameters: any = {};
|
|
1216
|
+
let localVarHeaderParams: any = (<any>Object).assign(
|
|
1217
|
+
{},
|
|
1218
|
+
this._defaultHeaders
|
|
1219
|
+
);
|
|
1220
|
+
const produces = [
|
|
1221
|
+
'application/vnd.segment.v1alpha+json',
|
|
1222
|
+
'application/json',
|
|
1223
|
+
];
|
|
1224
|
+
// give precedence to 'application/json'
|
|
1225
|
+
if (produces.indexOf('application/json') >= 0) {
|
|
1226
|
+
localVarHeaderParams.Accept = 'application/json';
|
|
1227
|
+
} else {
|
|
1228
|
+
localVarHeaderParams.Accept = produces.join(',');
|
|
1229
|
+
}
|
|
1230
|
+
let localVarFormParams: any = {};
|
|
1231
|
+
|
|
1232
|
+
// verify required parameter 'spaceId' is not null or undefined
|
|
1233
|
+
if (spaceId === null || spaceId === undefined) {
|
|
1234
|
+
throw new Error(
|
|
1235
|
+
'Required parameter spaceId was null or undefined when calling listTraits.'
|
|
1236
|
+
);
|
|
1237
|
+
}
|
|
1238
|
+
|
|
1239
|
+
if (pagination !== undefined) {
|
|
1240
|
+
localVarQueryParameters['pagination'] = ObjectSerializer.serialize(
|
|
1241
|
+
pagination,
|
|
1242
|
+
'PaginationInput'
|
|
1243
|
+
);
|
|
1244
|
+
}
|
|
1245
|
+
|
|
1246
|
+
if (sortBy !== undefined) {
|
|
1247
|
+
localVarQueryParameters['sortBy'] = ObjectSerializer.serialize(
|
|
1248
|
+
sortBy,
|
|
1249
|
+
"'lastSeenAt' | 'trait'"
|
|
1250
|
+
);
|
|
1251
|
+
}
|
|
1252
|
+
|
|
1253
|
+
if (sortDir !== undefined) {
|
|
1254
|
+
localVarQueryParameters['sortDir'] = ObjectSerializer.serialize(
|
|
1255
|
+
sortDir,
|
|
1256
|
+
"'asc' | 'desc'"
|
|
1257
|
+
);
|
|
1258
|
+
}
|
|
1259
|
+
|
|
1260
|
+
if (search !== undefined) {
|
|
1261
|
+
localVarQueryParameters['search'] = ObjectSerializer.serialize(
|
|
1262
|
+
search,
|
|
1263
|
+
'string'
|
|
1264
|
+
);
|
|
1265
|
+
}
|
|
1266
|
+
|
|
1267
|
+
if (collection !== undefined) {
|
|
1268
|
+
localVarQueryParameters['collection'] = ObjectSerializer.serialize(
|
|
1269
|
+
collection,
|
|
1270
|
+
"'accounts' | 'users'"
|
|
1271
|
+
);
|
|
1272
|
+
}
|
|
1273
|
+
|
|
1274
|
+
if (includeSampleValues !== undefined) {
|
|
1275
|
+
localVarQueryParameters['includeSampleValues'] =
|
|
1276
|
+
ObjectSerializer.serialize(includeSampleValues, 'boolean');
|
|
1277
|
+
}
|
|
1278
|
+
|
|
1279
|
+
if (samplesCount !== undefined) {
|
|
1280
|
+
localVarQueryParameters['samplesCount'] =
|
|
1281
|
+
ObjectSerializer.serialize(samplesCount, 'number');
|
|
1282
|
+
}
|
|
1283
|
+
|
|
1284
|
+
(<any>Object).assign(localVarHeaderParams, options.headers);
|
|
1285
|
+
|
|
1286
|
+
let localVarUseFormData = false;
|
|
1287
|
+
|
|
1288
|
+
let localVarRequestOptions: localVarRequest.Options = {
|
|
1289
|
+
method: 'GET',
|
|
1290
|
+
qs: localVarQueryParameters,
|
|
1291
|
+
headers: localVarHeaderParams,
|
|
1292
|
+
uri: localVarPath,
|
|
1293
|
+
useQuerystring: this._useQuerystring,
|
|
1294
|
+
json: true,
|
|
1295
|
+
};
|
|
1296
|
+
|
|
1297
|
+
let authenticationPromise = Promise.resolve();
|
|
1298
|
+
if (this.authentications.token.accessToken) {
|
|
1299
|
+
authenticationPromise = authenticationPromise.then(() =>
|
|
1300
|
+
this.authentications.token.applyToRequest(
|
|
1301
|
+
localVarRequestOptions
|
|
1302
|
+
)
|
|
1303
|
+
);
|
|
1304
|
+
}
|
|
1305
|
+
authenticationPromise = authenticationPromise.then(() =>
|
|
1306
|
+
this.authentications.default.applyToRequest(localVarRequestOptions)
|
|
1307
|
+
);
|
|
1308
|
+
|
|
1309
|
+
let interceptorPromise = authenticationPromise;
|
|
1310
|
+
for (const interceptor of this.interceptors) {
|
|
1311
|
+
interceptorPromise = interceptorPromise.then(() =>
|
|
1312
|
+
interceptor(localVarRequestOptions)
|
|
1313
|
+
);
|
|
1314
|
+
}
|
|
1315
|
+
|
|
1316
|
+
return interceptorPromise.then(() => {
|
|
1317
|
+
if (Object.keys(localVarFormParams).length) {
|
|
1318
|
+
if (localVarUseFormData) {
|
|
1319
|
+
(<any>localVarRequestOptions).formData = localVarFormParams;
|
|
1320
|
+
} else {
|
|
1321
|
+
localVarRequestOptions.form = localVarFormParams;
|
|
1322
|
+
}
|
|
1323
|
+
}
|
|
1324
|
+
return new Promise<{
|
|
1325
|
+
response: http.IncomingMessage;
|
|
1326
|
+
body: ListTraits200Response;
|
|
1327
|
+
}>((resolve, reject) => {
|
|
1328
|
+
localVarRequest(
|
|
1329
|
+
localVarRequestOptions,
|
|
1330
|
+
(error, response, body) => {
|
|
1331
|
+
if (error) {
|
|
1332
|
+
reject(error);
|
|
1333
|
+
} else {
|
|
1334
|
+
if (
|
|
1335
|
+
response.statusCode &&
|
|
1336
|
+
response.statusCode >= 200 &&
|
|
1337
|
+
response.statusCode <= 299
|
|
1338
|
+
) {
|
|
1339
|
+
body = ObjectSerializer.deserialize(
|
|
1340
|
+
body,
|
|
1341
|
+
'ListTraits200Response'
|
|
1342
|
+
);
|
|
1343
|
+
resolve({ response: response, body: body });
|
|
1344
|
+
} else {
|
|
1345
|
+
reject(
|
|
1346
|
+
new HttpError(
|
|
1347
|
+
response,
|
|
1348
|
+
body,
|
|
1349
|
+
response.statusCode
|
|
1350
|
+
)
|
|
1351
|
+
);
|
|
1352
|
+
}
|
|
1353
|
+
}
|
|
1354
|
+
}
|
|
1355
|
+
);
|
|
1356
|
+
});
|
|
1357
|
+
});
|
|
1358
|
+
}
|
|
1359
|
+
}
|