@segment/public-api-sdk-typescript 1.0.0
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/LICENSE +21 -0
- package/README.md +51 -0
- package/api/aPICallsApi.ts +1176 -0
- package/api/apis.ts +178 -0
- package/api/auditTrailApi.ts +714 -0
- package/api/catalogApi.ts +2916 -0
- package/api/deletionAndSuppressionApi.ts +4298 -0
- package/api/destinationFiltersApi.ts +3262 -0
- package/api/destinationsApi.ts +3494 -0
- package/api/edgeFunctionsApi.ts +593 -0
- package/api/eventsApi.ts +922 -0
- package/api/functionsApi.ts +3036 -0
- package/api/iAMGroupsApi.ts +6204 -0
- package/api/iAMRolesApi.ts +566 -0
- package/api/iAMUsersApi.ts +4486 -0
- package/api/labelsApi.ts +1488 -0
- package/api/monthlyTrackedUsersApi.ts +1178 -0
- package/api/selectiveSyncApi.ts +3321 -0
- package/api/sourcesApi.ts +5602 -0
- package/api/spacesApi.ts +489 -0
- package/api/testingApi.ts +568 -0
- package/api/trackingPlansApi.ts +6238 -0
- package/api/transformationsApi.ts +1316 -0
- package/api/warehousesApi.ts +5004 -0
- package/api/workspacesApi.ts +513 -0
- package/api.ts +3 -0
- package/dist/api/aPICallsApi.d.ts +93 -0
- package/dist/api/aPICallsApi.js +848 -0
- package/dist/api/aPICallsApi.js.map +1 -0
- package/dist/api/apis.d.ts +84 -0
- package/dist/api/apis.js +204 -0
- package/dist/api/apis.js.map +1 -0
- package/dist/api/auditTrailApi.d.ts +60 -0
- package/dist/api/auditTrailApi.js +511 -0
- package/dist/api/auditTrailApi.js.map +1 -0
- package/dist/api/catalogApi.d.ts +225 -0
- package/dist/api/catalogApi.js +2144 -0
- package/dist/api/catalogApi.js.map +1 -0
- package/dist/api/deletionAndSuppressionApi.d.ts +294 -0
- package/dist/api/deletionAndSuppressionApi.js +2931 -0
- package/dist/api/deletionAndSuppressionApi.js.map +1 -0
- package/dist/api/destinationFiltersApi.d.ts +228 -0
- package/dist/api/destinationFiltersApi.js +2253 -0
- package/dist/api/destinationFiltersApi.js.map +1 -0
- package/dist/api/destinationsApi.d.ts +258 -0
- package/dist/api/destinationsApi.js +2471 -0
- package/dist/api/destinationsApi.js.map +1 -0
- package/dist/api/edgeFunctionsApi.d.ts +63 -0
- package/dist/api/edgeFunctionsApi.js +460 -0
- package/dist/api/edgeFunctionsApi.js.map +1 -0
- package/dist/api/eventsApi.d.ts +60 -0
- package/dist/api/eventsApi.js +579 -0
- package/dist/api/eventsApi.js.map +1 -0
- package/dist/api/functionsApi.d.ts +227 -0
- package/dist/api/functionsApi.js +2182 -0
- package/dist/api/functionsApi.js.map +1 -0
- package/dist/api/iAMGroupsApi.d.ts +429 -0
- package/dist/api/iAMGroupsApi.js +4316 -0
- package/dist/api/iAMGroupsApi.js.map +1 -0
- package/dist/api/iAMRolesApi.d.ts +60 -0
- package/dist/api/iAMRolesApi.js +459 -0
- package/dist/api/iAMRolesApi.js.map +1 -0
- package/dist/api/iAMUsersApi.d.ts +327 -0
- package/dist/api/iAMUsersApi.js +3224 -0
- package/dist/api/iAMUsersApi.js.map +1 -0
- package/dist/api/labelsApi.d.ts +130 -0
- package/dist/api/labelsApi.js +1125 -0
- package/dist/api/labelsApi.js.map +1 -0
- package/dist/api/monthlyTrackedUsersApi.d.ts +93 -0
- package/dist/api/monthlyTrackedUsersApi.js +848 -0
- package/dist/api/monthlyTrackedUsersApi.js.map +1 -0
- package/dist/api/selectiveSyncApi.d.ts +227 -0
- package/dist/api/selectiveSyncApi.js +2275 -0
- package/dist/api/selectiveSyncApi.js.map +1 -0
- package/dist/api/sourcesApi.d.ts +408 -0
- package/dist/api/sourcesApi.js +3930 -0
- package/dist/api/sourcesApi.js.map +1 -0
- package/dist/api/spacesApi.d.ts +55 -0
- package/dist/api/spacesApi.js +380 -0
- package/dist/api/spacesApi.js.map +1 -0
- package/dist/api/testingApi.d.ts +52 -0
- package/dist/api/testingApi.js +427 -0
- package/dist/api/testingApi.js.map +1 -0
- package/dist/api/trackingPlansApi.d.ts +429 -0
- package/dist/api/trackingPlansApi.js +4330 -0
- package/dist/api/trackingPlansApi.js.map +1 -0
- package/dist/api/transformationsApi.d.ts +114 -0
- package/dist/api/transformationsApi.js +975 -0
- package/dist/api/transformationsApi.js.map +1 -0
- package/dist/api/warehousesApi.d.ts +360 -0
- package/dist/api/warehousesApi.js +3557 -0
- package/dist/api/warehousesApi.js.map +1 -0
- package/dist/api/workspacesApi.d.ts +59 -0
- package/dist/api/workspacesApi.js +435 -0
- package/dist/api/workspacesApi.js.map +1 -0
- package/dist/api.d.ts +2 -0
- package/dist/api.js +19 -0
- package/dist/api.js.map +1 -0
- package/dist/model/aPICallSnapshotV1.d.ts +15 -0
- package/dist/model/aPICallSnapshotV1.js +26 -0
- package/dist/model/aPICallSnapshotV1.js.map +1 -0
- package/dist/model/accessPermissionV1.d.ts +17 -0
- package/dist/model/accessPermissionV1.js +31 -0
- package/dist/model/accessPermissionV1.js.map +1 -0
- package/dist/model/addConnectionFromSourceToWarehouse200Response.d.ts +15 -0
- package/dist/model/addConnectionFromSourceToWarehouse200Response.js +21 -0
- package/dist/model/addConnectionFromSourceToWarehouse200Response.js.map +1 -0
- package/dist/model/addConnectionFromSourceToWarehouseV1Output.d.ts +20 -0
- package/dist/model/addConnectionFromSourceToWarehouseV1Output.js +29 -0
- package/dist/model/addConnectionFromSourceToWarehouseV1Output.js.map +1 -0
- package/dist/model/addLabelsToSource200Response.d.ts +15 -0
- package/dist/model/addLabelsToSource200Response.js +21 -0
- package/dist/model/addLabelsToSource200Response.js.map +1 -0
- package/dist/model/addLabelsToSource200Response1.d.ts +15 -0
- package/dist/model/addLabelsToSource200Response1.js +21 -0
- package/dist/model/addLabelsToSource200Response1.js.map +1 -0
- package/dist/model/addLabelsToSourceAlphaInput.d.ts +15 -0
- package/dist/model/addLabelsToSourceAlphaInput.js +21 -0
- package/dist/model/addLabelsToSourceAlphaInput.js.map +1 -0
- package/dist/model/addLabelsToSourceAlphaOutput.d.ts +15 -0
- package/dist/model/addLabelsToSourceAlphaOutput.js +21 -0
- package/dist/model/addLabelsToSourceAlphaOutput.js.map +1 -0
- package/dist/model/addLabelsToSourceV1Input.d.ts +15 -0
- package/dist/model/addLabelsToSourceV1Input.js +21 -0
- package/dist/model/addLabelsToSourceV1Input.js.map +1 -0
- package/dist/model/addLabelsToSourceV1Output.d.ts +15 -0
- package/dist/model/addLabelsToSourceV1Output.js +21 -0
- package/dist/model/addLabelsToSourceV1Output.js.map +1 -0
- package/dist/model/addPermissionsToUser200Response.d.ts +15 -0
- package/dist/model/addPermissionsToUser200Response.js +21 -0
- package/dist/model/addPermissionsToUser200Response.js.map +1 -0
- package/dist/model/addPermissionsToUserGroup200Response.d.ts +15 -0
- package/dist/model/addPermissionsToUserGroup200Response.js +21 -0
- package/dist/model/addPermissionsToUserGroup200Response.js.map +1 -0
- package/dist/model/addPermissionsToUserGroupV1Input.d.ts +15 -0
- package/dist/model/addPermissionsToUserGroupV1Input.js +21 -0
- package/dist/model/addPermissionsToUserGroupV1Input.js.map +1 -0
- package/dist/model/addPermissionsToUserGroupV1Output.d.ts +15 -0
- package/dist/model/addPermissionsToUserGroupV1Output.js +21 -0
- package/dist/model/addPermissionsToUserGroupV1Output.js.map +1 -0
- package/dist/model/addPermissionsToUserV1Input.d.ts +15 -0
- package/dist/model/addPermissionsToUserV1Input.js +21 -0
- package/dist/model/addPermissionsToUserV1Input.js.map +1 -0
- package/dist/model/addPermissionsToUserV1Output.d.ts +15 -0
- package/dist/model/addPermissionsToUserV1Output.js +21 -0
- package/dist/model/addPermissionsToUserV1Output.js.map +1 -0
- package/dist/model/addSourceToTrackingPlan200Response.d.ts +15 -0
- package/dist/model/addSourceToTrackingPlan200Response.js +21 -0
- package/dist/model/addSourceToTrackingPlan200Response.js.map +1 -0
- package/dist/model/addSourceToTrackingPlanV1Input.d.ts +14 -0
- package/dist/model/addSourceToTrackingPlanV1Input.js +21 -0
- package/dist/model/addSourceToTrackingPlanV1Input.js.map +1 -0
- package/dist/model/addSourceToTrackingPlanV1Output.d.ts +19 -0
- package/dist/model/addSourceToTrackingPlanV1Output.js +28 -0
- package/dist/model/addSourceToTrackingPlanV1Output.js.map +1 -0
- package/dist/model/addUsersToUserGroup200Response.d.ts +15 -0
- package/dist/model/addUsersToUserGroup200Response.js +21 -0
- package/dist/model/addUsersToUserGroup200Response.js.map +1 -0
- package/dist/model/addUsersToUserGroupV1Input.d.ts +14 -0
- package/dist/model/addUsersToUserGroupV1Input.js +21 -0
- package/dist/model/addUsersToUserGroupV1Input.js.map +1 -0
- package/dist/model/addUsersToUserGroupV1Output.d.ts +15 -0
- package/dist/model/addUsersToUserGroupV1Output.js +21 -0
- package/dist/model/addUsersToUserGroupV1Output.js.map +1 -0
- package/dist/model/advancedWarehouseSyncScheduleV1Input.d.ts +16 -0
- package/dist/model/advancedWarehouseSyncScheduleV1Input.js +26 -0
- package/dist/model/advancedWarehouseSyncScheduleV1Input.js.map +1 -0
- package/dist/model/advancedWarehouseSyncScheduleV1Output.d.ts +16 -0
- package/dist/model/advancedWarehouseSyncScheduleV1Output.js +26 -0
- package/dist/model/advancedWarehouseSyncScheduleV1Output.js.map +1 -0
- package/dist/model/allowedLabelBeta.d.ts +16 -0
- package/dist/model/allowedLabelBeta.js +31 -0
- package/dist/model/allowedLabelBeta.js.map +1 -0
- package/dist/model/auditEventV1.d.ts +20 -0
- package/dist/model/auditEventV1.js +51 -0
- package/dist/model/auditEventV1.js.map +1 -0
- package/dist/model/batchQueryMessagingSubscriptionsForSpace200Response.d.ts +15 -0
- package/dist/model/batchQueryMessagingSubscriptionsForSpace200Response.js +21 -0
- package/dist/model/batchQueryMessagingSubscriptionsForSpace200Response.js.map +1 -0
- package/dist/model/batchQueryMessagingSubscriptionsForSpaceAlphaInput.d.ts +15 -0
- package/dist/model/batchQueryMessagingSubscriptionsForSpaceAlphaInput.js +21 -0
- package/dist/model/batchQueryMessagingSubscriptionsForSpaceAlphaInput.js.map +1 -0
- package/dist/model/batchQueryMessagingSubscriptionsForSpaceAlphaOutput.d.ts +21 -0
- package/dist/model/batchQueryMessagingSubscriptionsForSpaceAlphaOutput.js +36 -0
- package/dist/model/batchQueryMessagingSubscriptionsForSpaceAlphaOutput.js.map +1 -0
- package/dist/model/breakdownBeta.d.ts +15 -0
- package/dist/model/breakdownBeta.js +26 -0
- package/dist/model/breakdownBeta.js.map +1 -0
- package/dist/model/commonSourceSettingsV1.d.ts +21 -0
- package/dist/model/commonSourceSettingsV1.js +41 -0
- package/dist/model/commonSourceSettingsV1.js.map +1 -0
- package/dist/model/createCloudSourceRegulation200Response.d.ts +15 -0
- package/dist/model/createCloudSourceRegulation200Response.js +21 -0
- package/dist/model/createCloudSourceRegulation200Response.js.map +1 -0
- package/dist/model/createCloudSourceRegulationV1Input.d.ts +30 -0
- package/dist/model/createCloudSourceRegulationV1Input.js +52 -0
- package/dist/model/createCloudSourceRegulationV1Input.js.map +1 -0
- package/dist/model/createCloudSourceRegulationV1Output.d.ts +14 -0
- package/dist/model/createCloudSourceRegulationV1Output.js +21 -0
- package/dist/model/createCloudSourceRegulationV1Output.js.map +1 -0
- package/dist/model/createDestination200Response.d.ts +15 -0
- package/dist/model/createDestination200Response.js +21 -0
- package/dist/model/createDestination200Response.js.map +1 -0
- package/dist/model/createDestinationSubscription200Response.d.ts +15 -0
- package/dist/model/createDestinationSubscription200Response.js +21 -0
- package/dist/model/createDestinationSubscription200Response.js.map +1 -0
- package/dist/model/createDestinationSubscriptionAlphaInput.d.ts +18 -0
- package/dist/model/createDestinationSubscriptionAlphaInput.js +41 -0
- package/dist/model/createDestinationSubscriptionAlphaInput.js.map +1 -0
- package/dist/model/createDestinationSubscriptionAlphaOutput.d.ts +15 -0
- package/dist/model/createDestinationSubscriptionAlphaOutput.js +21 -0
- package/dist/model/createDestinationSubscriptionAlphaOutput.js.map +1 -0
- package/dist/model/createDestinationV1Input.d.ts +20 -0
- package/dist/model/createDestinationV1Input.js +41 -0
- package/dist/model/createDestinationV1Input.js.map +1 -0
- package/dist/model/createDestinationV1Output.d.ts +15 -0
- package/dist/model/createDestinationV1Output.js +21 -0
- package/dist/model/createDestinationV1Output.js.map +1 -0
- package/dist/model/createEdgeFunctions200Response.d.ts +15 -0
- package/dist/model/createEdgeFunctions200Response.js +21 -0
- package/dist/model/createEdgeFunctions200Response.js.map +1 -0
- package/dist/model/createEdgeFunctionsAlphaInput.d.ts +14 -0
- package/dist/model/createEdgeFunctionsAlphaInput.js +21 -0
- package/dist/model/createEdgeFunctionsAlphaInput.js.map +1 -0
- package/dist/model/createEdgeFunctionsAlphaOutput.d.ts +15 -0
- package/dist/model/createEdgeFunctionsAlphaOutput.js +21 -0
- package/dist/model/createEdgeFunctionsAlphaOutput.js.map +1 -0
- package/dist/model/createFilterForDestination200Response.d.ts +15 -0
- package/dist/model/createFilterForDestination200Response.js +21 -0
- package/dist/model/createFilterForDestination200Response.js.map +1 -0
- package/dist/model/createFilterForDestinationV1Input.d.ts +20 -0
- package/dist/model/createFilterForDestinationV1Input.js +46 -0
- package/dist/model/createFilterForDestinationV1Input.js.map +1 -0
- package/dist/model/createFilterForDestinationV1Output.d.ts +15 -0
- package/dist/model/createFilterForDestinationV1Output.js +21 -0
- package/dist/model/createFilterForDestinationV1Output.js.map +1 -0
- package/dist/model/createFunction200Response.d.ts +15 -0
- package/dist/model/createFunction200Response.js +21 -0
- package/dist/model/createFunction200Response.js.map +1 -0
- package/dist/model/createFunctionDeployment200Response.d.ts +15 -0
- package/dist/model/createFunctionDeployment200Response.js +21 -0
- package/dist/model/createFunctionDeployment200Response.js.map +1 -0
- package/dist/model/createFunctionDeploymentV1Output.d.ts +15 -0
- package/dist/model/createFunctionDeploymentV1Output.js +21 -0
- package/dist/model/createFunctionDeploymentV1Output.js.map +1 -0
- package/dist/model/createFunctionV1Input.d.ts +26 -0
- package/dist/model/createFunctionV1Input.js +54 -0
- package/dist/model/createFunctionV1Input.js.map +1 -0
- package/dist/model/createFunctionV1Output.d.ts +15 -0
- package/dist/model/createFunctionV1Output.js +21 -0
- package/dist/model/createFunctionV1Output.js.map +1 -0
- package/dist/model/createInvites200Response.d.ts +15 -0
- package/dist/model/createInvites200Response.js +21 -0
- package/dist/model/createInvites200Response.js.map +1 -0
- package/dist/model/createInvitesV1Input.d.ts +15 -0
- package/dist/model/createInvitesV1Input.js +21 -0
- package/dist/model/createInvitesV1Input.js.map +1 -0
- package/dist/model/createInvitesV1Output.d.ts +14 -0
- package/dist/model/createInvitesV1Output.js +21 -0
- package/dist/model/createInvitesV1Output.js.map +1 -0
- package/dist/model/createLabel200Response.d.ts +15 -0
- package/dist/model/createLabel200Response.js +21 -0
- package/dist/model/createLabel200Response.js.map +1 -0
- package/dist/model/createLabel200Response1.d.ts +15 -0
- package/dist/model/createLabel200Response1.js +21 -0
- package/dist/model/createLabel200Response1.js.map +1 -0
- package/dist/model/createLabelAlphaInput.d.ts +15 -0
- package/dist/model/createLabelAlphaInput.js +21 -0
- package/dist/model/createLabelAlphaInput.js.map +1 -0
- package/dist/model/createLabelAlphaOutput.d.ts +15 -0
- package/dist/model/createLabelAlphaOutput.js +21 -0
- package/dist/model/createLabelAlphaOutput.js.map +1 -0
- package/dist/model/createLabelV1Input.d.ts +15 -0
- package/dist/model/createLabelV1Input.js +21 -0
- package/dist/model/createLabelV1Input.js.map +1 -0
- package/dist/model/createLabelV1Output.d.ts +15 -0
- package/dist/model/createLabelV1Output.js +21 -0
- package/dist/model/createLabelV1Output.js.map +1 -0
- package/dist/model/createSource200Response.d.ts +15 -0
- package/dist/model/createSource200Response.js +21 -0
- package/dist/model/createSource200Response.js.map +1 -0
- package/dist/model/createSource200Response1.d.ts +15 -0
- package/dist/model/createSource200Response1.js +21 -0
- package/dist/model/createSource200Response1.js.map +1 -0
- package/dist/model/createSourceAlphaInput.d.ts +18 -0
- package/dist/model/createSourceAlphaInput.js +41 -0
- package/dist/model/createSourceAlphaInput.js.map +1 -0
- package/dist/model/createSourceAlphaOutput.d.ts +15 -0
- package/dist/model/createSourceAlphaOutput.js +21 -0
- package/dist/model/createSourceAlphaOutput.js.map +1 -0
- package/dist/model/createSourceRegulation200Response.d.ts +15 -0
- package/dist/model/createSourceRegulation200Response.js +21 -0
- package/dist/model/createSourceRegulation200Response.js.map +1 -0
- package/dist/model/createSourceRegulationV1Input.d.ts +29 -0
- package/dist/model/createSourceRegulationV1Input.js +47 -0
- package/dist/model/createSourceRegulationV1Input.js.map +1 -0
- package/dist/model/createSourceRegulationV1Output.d.ts +14 -0
- package/dist/model/createSourceRegulationV1Output.js +21 -0
- package/dist/model/createSourceRegulationV1Output.js.map +1 -0
- package/dist/model/createSourceV1Input.d.ts +17 -0
- package/dist/model/createSourceV1Input.js +36 -0
- package/dist/model/createSourceV1Input.js.map +1 -0
- package/dist/model/createSourceV1Output.d.ts +15 -0
- package/dist/model/createSourceV1Output.js +21 -0
- package/dist/model/createSourceV1Output.js.map +1 -0
- package/dist/model/createTrackingPlan200Response.d.ts +15 -0
- package/dist/model/createTrackingPlan200Response.js +21 -0
- package/dist/model/createTrackingPlan200Response.js.map +1 -0
- package/dist/model/createTrackingPlanV1Input.d.ts +24 -0
- package/dist/model/createTrackingPlanV1Input.js +41 -0
- package/dist/model/createTrackingPlanV1Input.js.map +1 -0
- package/dist/model/createTrackingPlanV1Output.d.ts +15 -0
- package/dist/model/createTrackingPlanV1Output.js +21 -0
- package/dist/model/createTrackingPlanV1Output.js.map +1 -0
- package/dist/model/createTransformation200Response.d.ts +15 -0
- package/dist/model/createTransformation200Response.js +21 -0
- package/dist/model/createTransformation200Response.js.map +1 -0
- package/dist/model/createTransformationBetaInput.d.ts +21 -0
- package/dist/model/createTransformationBetaInput.js +51 -0
- package/dist/model/createTransformationBetaInput.js.map +1 -0
- package/dist/model/createTransformationBetaOutput.d.ts +15 -0
- package/dist/model/createTransformationBetaOutput.js +21 -0
- package/dist/model/createTransformationBetaOutput.js.map +1 -0
- package/dist/model/createUserGroup200Response.d.ts +15 -0
- package/dist/model/createUserGroup200Response.js +21 -0
- package/dist/model/createUserGroup200Response.js.map +1 -0
- package/dist/model/createUserGroupV1Input.d.ts +14 -0
- package/dist/model/createUserGroupV1Input.js +21 -0
- package/dist/model/createUserGroupV1Input.js.map +1 -0
- package/dist/model/createUserGroupV1Output.d.ts +15 -0
- package/dist/model/createUserGroupV1Output.js +21 -0
- package/dist/model/createUserGroupV1Output.js.map +1 -0
- package/dist/model/createValidationInWarehouse200Response.d.ts +15 -0
- package/dist/model/createValidationInWarehouse200Response.js +21 -0
- package/dist/model/createValidationInWarehouse200Response.js.map +1 -0
- package/dist/model/createValidationInWarehouseV1Input.d.ts +15 -0
- package/dist/model/createValidationInWarehouseV1Input.js +26 -0
- package/dist/model/createValidationInWarehouseV1Input.js.map +1 -0
- package/dist/model/createValidationInWarehouseV1Output.d.ts +20 -0
- package/dist/model/createValidationInWarehouseV1Output.js +29 -0
- package/dist/model/createValidationInWarehouseV1Output.js.map +1 -0
- package/dist/model/createWarehouse200Response.d.ts +15 -0
- package/dist/model/createWarehouse200Response.js +21 -0
- package/dist/model/createWarehouse200Response.js.map +1 -0
- package/dist/model/createWarehouseV1Input.d.ts +17 -0
- package/dist/model/createWarehouseV1Input.js +36 -0
- package/dist/model/createWarehouseV1Input.js.map +1 -0
- package/dist/model/createWarehouseV1Output.d.ts +15 -0
- package/dist/model/createWarehouseV1Output.js +21 -0
- package/dist/model/createWarehouseV1Output.js.map +1 -0
- package/dist/model/createWorkspaceRegulation200Response.d.ts +15 -0
- package/dist/model/createWorkspaceRegulation200Response.js +21 -0
- package/dist/model/createWorkspaceRegulation200Response.js.map +1 -0
- package/dist/model/createWorkspaceRegulationV1Input.d.ts +30 -0
- package/dist/model/createWorkspaceRegulationV1Input.js +48 -0
- package/dist/model/createWorkspaceRegulationV1Input.js.map +1 -0
- package/dist/model/createWorkspaceRegulationV1Output.d.ts +14 -0
- package/dist/model/createWorkspaceRegulationV1Output.js +21 -0
- package/dist/model/createWorkspaceRegulationV1Output.js.map +1 -0
- package/dist/model/deleteDestination200Response.d.ts +15 -0
- package/dist/model/deleteDestination200Response.js +21 -0
- package/dist/model/deleteDestination200Response.js.map +1 -0
- package/dist/model/deleteDestinationV1Output.d.ts +19 -0
- package/dist/model/deleteDestinationV1Output.js +28 -0
- package/dist/model/deleteDestinationV1Output.js.map +1 -0
- package/dist/model/deleteFunction200Response.d.ts +15 -0
- package/dist/model/deleteFunction200Response.js +21 -0
- package/dist/model/deleteFunction200Response.js.map +1 -0
- package/dist/model/deleteFunctionV1Output.d.ts +19 -0
- package/dist/model/deleteFunctionV1Output.js +28 -0
- package/dist/model/deleteFunctionV1Output.js.map +1 -0
- package/dist/model/deleteInvites200Response.d.ts +15 -0
- package/dist/model/deleteInvites200Response.js +21 -0
- package/dist/model/deleteInvites200Response.js.map +1 -0
- package/dist/model/deleteInvitesV1Output.d.ts +19 -0
- package/dist/model/deleteInvitesV1Output.js +28 -0
- package/dist/model/deleteInvitesV1Output.js.map +1 -0
- package/dist/model/deleteLabel200Response.d.ts +15 -0
- package/dist/model/deleteLabel200Response.js +21 -0
- package/dist/model/deleteLabel200Response.js.map +1 -0
- package/dist/model/deleteLabel200Response1.d.ts +15 -0
- package/dist/model/deleteLabel200Response1.js +21 -0
- package/dist/model/deleteLabel200Response1.js.map +1 -0
- package/dist/model/deleteLabelAlphaOutput.d.ts +19 -0
- package/dist/model/deleteLabelAlphaOutput.js +28 -0
- package/dist/model/deleteLabelAlphaOutput.js.map +1 -0
- package/dist/model/deleteLabelV1Output.d.ts +19 -0
- package/dist/model/deleteLabelV1Output.js +28 -0
- package/dist/model/deleteLabelV1Output.js.map +1 -0
- package/dist/model/deleteRegulation200Response.d.ts +15 -0
- package/dist/model/deleteRegulation200Response.js +21 -0
- package/dist/model/deleteRegulation200Response.js.map +1 -0
- package/dist/model/deleteRegulationV1Output.d.ts +19 -0
- package/dist/model/deleteRegulationV1Output.js +28 -0
- package/dist/model/deleteRegulationV1Output.js.map +1 -0
- package/dist/model/deleteSource200Response.d.ts +15 -0
- package/dist/model/deleteSource200Response.js +21 -0
- package/dist/model/deleteSource200Response.js.map +1 -0
- package/dist/model/deleteSource200Response1.d.ts +15 -0
- package/dist/model/deleteSource200Response1.js +21 -0
- package/dist/model/deleteSource200Response1.js.map +1 -0
- package/dist/model/deleteSourceAlphaOutput.d.ts +19 -0
- package/dist/model/deleteSourceAlphaOutput.js +28 -0
- package/dist/model/deleteSourceAlphaOutput.js.map +1 -0
- package/dist/model/deleteSourceV1Output.d.ts +19 -0
- package/dist/model/deleteSourceV1Output.js +28 -0
- package/dist/model/deleteSourceV1Output.js.map +1 -0
- package/dist/model/deleteTrackingPlan200Response.d.ts +15 -0
- package/dist/model/deleteTrackingPlan200Response.js +21 -0
- package/dist/model/deleteTrackingPlan200Response.js.map +1 -0
- package/dist/model/deleteTrackingPlanV1Output.d.ts +19 -0
- package/dist/model/deleteTrackingPlanV1Output.js +28 -0
- package/dist/model/deleteTrackingPlanV1Output.js.map +1 -0
- package/dist/model/deleteTransformation200Response.d.ts +15 -0
- package/dist/model/deleteTransformation200Response.js +21 -0
- package/dist/model/deleteTransformation200Response.js.map +1 -0
- package/dist/model/deleteTransformationBetaOutput.d.ts +19 -0
- package/dist/model/deleteTransformationBetaOutput.js +28 -0
- package/dist/model/deleteTransformationBetaOutput.js.map +1 -0
- package/dist/model/deleteUserGroup200Response.d.ts +15 -0
- package/dist/model/deleteUserGroup200Response.js +21 -0
- package/dist/model/deleteUserGroup200Response.js.map +1 -0
- package/dist/model/deleteUserGroupV1Output.d.ts +19 -0
- package/dist/model/deleteUserGroupV1Output.js +28 -0
- package/dist/model/deleteUserGroupV1Output.js.map +1 -0
- package/dist/model/deleteUsers200Response.d.ts +15 -0
- package/dist/model/deleteUsers200Response.js +21 -0
- package/dist/model/deleteUsers200Response.js.map +1 -0
- package/dist/model/deleteUsersV1Output.d.ts +19 -0
- package/dist/model/deleteUsersV1Output.js +28 -0
- package/dist/model/deleteUsersV1Output.js.map +1 -0
- package/dist/model/deleteWarehouse200Response.d.ts +15 -0
- package/dist/model/deleteWarehouse200Response.js +21 -0
- package/dist/model/deleteWarehouse200Response.js.map +1 -0
- package/dist/model/deleteWarehouseV1Output.d.ts +19 -0
- package/dist/model/deleteWarehouseV1Output.js +28 -0
- package/dist/model/deleteWarehouseV1Output.js.map +1 -0
- package/dist/model/deliveryMetricsSummary.d.ts +17 -0
- package/dist/model/deliveryMetricsSummary.js +31 -0
- package/dist/model/deliveryMetricsSummary.js.map +1 -0
- package/dist/model/deliveryMetricsSummaryBeta.d.ts +17 -0
- package/dist/model/deliveryMetricsSummaryBeta.js +31 -0
- package/dist/model/deliveryMetricsSummaryBeta.js.map +1 -0
- package/dist/model/destination.d.ts +22 -0
- package/dist/model/destination.js +46 -0
- package/dist/model/destination.js.map +1 -0
- package/dist/model/destination1.d.ts +22 -0
- package/dist/model/destination1.js +46 -0
- package/dist/model/destination1.js.map +1 -0
- package/dist/model/destination2.d.ts +22 -0
- package/dist/model/destination2.js +46 -0
- package/dist/model/destination2.js.map +1 -0
- package/dist/model/destinationFilterActionV1.d.ts +27 -0
- package/dist/model/destinationFilterActionV1.js +46 -0
- package/dist/model/destinationFilterActionV1.js.map +1 -0
- package/dist/model/destinationFilterV1.d.ts +24 -0
- package/dist/model/destinationFilterV1.js +66 -0
- package/dist/model/destinationFilterV1.js.map +1 -0
- package/dist/model/destinationMetadata.d.ts +48 -0
- package/dist/model/destinationMetadata.js +109 -0
- package/dist/model/destinationMetadata.js.map +1 -0
- package/dist/model/destinationMetadataActionFieldV1.d.ts +39 -0
- package/dist/model/destinationMetadataActionFieldV1.js +96 -0
- package/dist/model/destinationMetadataActionFieldV1.js.map +1 -0
- package/dist/model/destinationMetadataActionV1.d.ts +29 -0
- package/dist/model/destinationMetadataActionV1.js +65 -0
- package/dist/model/destinationMetadataActionV1.js.map +1 -0
- package/dist/model/destinationMetadataComponentV1.d.ts +28 -0
- package/dist/model/destinationMetadataComponentV1.js +46 -0
- package/dist/model/destinationMetadataComponentV1.js.map +1 -0
- package/dist/model/destinationMetadataFeaturesV1.d.ts +33 -0
- package/dist/model/destinationMetadataFeaturesV1.js +59 -0
- package/dist/model/destinationMetadataFeaturesV1.js.map +1 -0
- package/dist/model/destinationMetadataMethodsV1.d.ts +18 -0
- package/dist/model/destinationMetadataMethodsV1.js +41 -0
- package/dist/model/destinationMetadataMethodsV1.js.map +1 -0
- package/dist/model/destinationMetadataPlatformsV1.d.ts +16 -0
- package/dist/model/destinationMetadataPlatformsV1.js +31 -0
- package/dist/model/destinationMetadataPlatformsV1.js.map +1 -0
- package/dist/model/destinationMetadataSubscriptionPresetV1.d.ts +19 -0
- package/dist/model/destinationMetadataSubscriptionPresetV1.js +36 -0
- package/dist/model/destinationMetadataSubscriptionPresetV1.js.map +1 -0
- package/dist/model/destinationMetadataV1.d.ts +48 -0
- package/dist/model/destinationMetadataV1.js +109 -0
- package/dist/model/destinationMetadataV1.js.map +1 -0
- package/dist/model/destinationStatusV1.d.ts +29 -0
- package/dist/model/destinationStatusV1.js +54 -0
- package/dist/model/destinationStatusV1.js.map +1 -0
- package/dist/model/destinationSubscription.d.ts +21 -0
- package/dist/model/destinationSubscription.js +56 -0
- package/dist/model/destinationSubscription.js.map +1 -0
- package/dist/model/destinationSubscriptionUpdateInput.d.ts +17 -0
- package/dist/model/destinationSubscriptionUpdateInput.js +36 -0
- package/dist/model/destinationSubscriptionUpdateInput.js.map +1 -0
- package/dist/model/destinationV1.d.ts +22 -0
- package/dist/model/destinationV1.js +46 -0
- package/dist/model/destinationV1.js.map +1 -0
- package/dist/model/disableEdgeFunctions200Response.d.ts +15 -0
- package/dist/model/disableEdgeFunctions200Response.js +21 -0
- package/dist/model/disableEdgeFunctions200Response.js.map +1 -0
- package/dist/model/disableEdgeFunctionsAlphaOutput.d.ts +15 -0
- package/dist/model/disableEdgeFunctionsAlphaOutput.js +21 -0
- package/dist/model/disableEdgeFunctionsAlphaOutput.js.map +1 -0
- package/dist/model/echo200Response.d.ts +15 -0
- package/dist/model/echo200Response.js +21 -0
- package/dist/model/echo200Response.js.map +1 -0
- package/dist/model/echo200Response1.d.ts +15 -0
- package/dist/model/echo200Response1.js +21 -0
- package/dist/model/echo200Response1.js.map +1 -0
- package/dist/model/echoAlphaOutput.d.ts +24 -0
- package/dist/model/echoAlphaOutput.js +39 -0
- package/dist/model/echoAlphaOutput.js.map +1 -0
- package/dist/model/echoV1Output.d.ts +24 -0
- package/dist/model/echoV1Output.js +39 -0
- package/dist/model/echoV1Output.js.map +1 -0
- package/dist/model/edgeFunctions.d.ts +19 -0
- package/dist/model/edgeFunctions.js +46 -0
- package/dist/model/edgeFunctions.js.map +1 -0
- package/dist/model/edgeFunctions1.d.ts +19 -0
- package/dist/model/edgeFunctions1.js +46 -0
- package/dist/model/edgeFunctions1.js.map +1 -0
- package/dist/model/edgeFunctionsAlpha.d.ts +19 -0
- package/dist/model/edgeFunctionsAlpha.js +46 -0
- package/dist/model/edgeFunctionsAlpha.js.map +1 -0
- package/dist/model/eventSourceV1.d.ts +16 -0
- package/dist/model/eventSourceV1.js +31 -0
- package/dist/model/eventSourceV1.js.map +1 -0
- package/dist/model/filter.d.ts +16 -0
- package/dist/model/filter.js +26 -0
- package/dist/model/filter.js.map +1 -0
- package/dist/model/filter1.d.ts +24 -0
- package/dist/model/filter1.js +66 -0
- package/dist/model/filter1.js.map +1 -0
- package/dist/model/filter2.d.ts +24 -0
- package/dist/model/filter2.js +66 -0
- package/dist/model/filter2.js.map +1 -0
- package/dist/model/filter3.d.ts +24 -0
- package/dist/model/filter3.js +66 -0
- package/dist/model/filter3.js.map +1 -0
- package/dist/model/function.d.ts +34 -0
- package/dist/model/function.js +94 -0
- package/dist/model/function.js.map +1 -0
- package/dist/model/function1.d.ts +34 -0
- package/dist/model/function1.js +94 -0
- package/dist/model/function1.js.map +1 -0
- package/dist/model/function2.d.ts +34 -0
- package/dist/model/function2.js +94 -0
- package/dist/model/function2.js.map +1 -0
- package/dist/model/functionDeployment.d.ts +19 -0
- package/dist/model/functionDeployment.js +28 -0
- package/dist/model/functionDeployment.js.map +1 -0
- package/dist/model/functionSettingV1.d.ts +27 -0
- package/dist/model/functionSettingV1.js +56 -0
- package/dist/model/functionSettingV1.js.map +1 -0
- package/dist/model/functionV1.d.ts +34 -0
- package/dist/model/functionV1.js +94 -0
- package/dist/model/functionV1.js.map +1 -0
- package/dist/model/generateUploadURLForEdgeFunctions200Response.d.ts +15 -0
- package/dist/model/generateUploadURLForEdgeFunctions200Response.js +21 -0
- package/dist/model/generateUploadURLForEdgeFunctions200Response.js.map +1 -0
- package/dist/model/generateUploadURLForEdgeFunctionsAlphaOutput.d.ts +14 -0
- package/dist/model/generateUploadURLForEdgeFunctionsAlphaOutput.js +21 -0
- package/dist/model/generateUploadURLForEdgeFunctionsAlphaOutput.js.map +1 -0
- package/dist/model/getAdvancedSyncScheduleFromWarehouse200Response.d.ts +15 -0
- package/dist/model/getAdvancedSyncScheduleFromWarehouse200Response.js +21 -0
- package/dist/model/getAdvancedSyncScheduleFromWarehouse200Response.js.map +1 -0
- package/dist/model/getAdvancedSyncScheduleFromWarehouseV1Output.d.ts +16 -0
- package/dist/model/getAdvancedSyncScheduleFromWarehouseV1Output.js +26 -0
- package/dist/model/getAdvancedSyncScheduleFromWarehouseV1Output.js.map +1 -0
- package/dist/model/getConnectionStateFromWarehouse200Response.d.ts +15 -0
- package/dist/model/getConnectionStateFromWarehouse200Response.js +21 -0
- package/dist/model/getConnectionStateFromWarehouse200Response.js.map +1 -0
- package/dist/model/getConnectionStateFromWarehouseV1Output.d.ts +20 -0
- package/dist/model/getConnectionStateFromWarehouseV1Output.js +29 -0
- package/dist/model/getConnectionStateFromWarehouseV1Output.js.map +1 -0
- package/dist/model/getDailyPerSourceAPICallsUsage200Response.d.ts +15 -0
- package/dist/model/getDailyPerSourceAPICallsUsage200Response.js +21 -0
- package/dist/model/getDailyPerSourceAPICallsUsage200Response.js.map +1 -0
- package/dist/model/getDailyPerSourceAPICallsUsageV1Output.d.ts +17 -0
- package/dist/model/getDailyPerSourceAPICallsUsageV1Output.js +26 -0
- package/dist/model/getDailyPerSourceAPICallsUsageV1Output.js.map +1 -0
- package/dist/model/getDailyPerSourceMTUUsage200Response.d.ts +15 -0
- package/dist/model/getDailyPerSourceMTUUsage200Response.js +21 -0
- package/dist/model/getDailyPerSourceMTUUsage200Response.js.map +1 -0
- package/dist/model/getDailyPerSourceMTUUsageV1Output.d.ts +17 -0
- package/dist/model/getDailyPerSourceMTUUsageV1Output.js +26 -0
- package/dist/model/getDailyPerSourceMTUUsageV1Output.js.map +1 -0
- package/dist/model/getDailyWorkspaceAPICallsUsage200Response.d.ts +15 -0
- package/dist/model/getDailyWorkspaceAPICallsUsage200Response.js +21 -0
- package/dist/model/getDailyWorkspaceAPICallsUsage200Response.js.map +1 -0
- package/dist/model/getDailyWorkspaceAPICallsUsageV1Output.d.ts +17 -0
- package/dist/model/getDailyWorkspaceAPICallsUsageV1Output.js +26 -0
- package/dist/model/getDailyWorkspaceAPICallsUsageV1Output.js.map +1 -0
- package/dist/model/getDailyWorkspaceMTUUsage200Response.d.ts +15 -0
- package/dist/model/getDailyWorkspaceMTUUsage200Response.js +21 -0
- package/dist/model/getDailyWorkspaceMTUUsage200Response.js.map +1 -0
- package/dist/model/getDailyWorkspaceMTUUsageV1Output.d.ts +17 -0
- package/dist/model/getDailyWorkspaceMTUUsageV1Output.js +26 -0
- package/dist/model/getDailyWorkspaceMTUUsageV1Output.js.map +1 -0
- package/dist/model/getDestination200Response.d.ts +15 -0
- package/dist/model/getDestination200Response.js +21 -0
- package/dist/model/getDestination200Response.js.map +1 -0
- package/dist/model/getDestinationMetadata200Response.d.ts +15 -0
- package/dist/model/getDestinationMetadata200Response.js +21 -0
- package/dist/model/getDestinationMetadata200Response.js.map +1 -0
- package/dist/model/getDestinationMetadataV1Output.d.ts +15 -0
- package/dist/model/getDestinationMetadataV1Output.js +21 -0
- package/dist/model/getDestinationMetadataV1Output.js.map +1 -0
- package/dist/model/getDestinationV1Output.d.ts +15 -0
- package/dist/model/getDestinationV1Output.js +21 -0
- package/dist/model/getDestinationV1Output.js.map +1 -0
- package/dist/model/getDestinationsCatalog200Response.d.ts +15 -0
- package/dist/model/getDestinationsCatalog200Response.js +21 -0
- package/dist/model/getDestinationsCatalog200Response.js.map +1 -0
- package/dist/model/getDestinationsCatalogV1Output.d.ts +17 -0
- package/dist/model/getDestinationsCatalogV1Output.js +26 -0
- package/dist/model/getDestinationsCatalogV1Output.js.map +1 -0
- package/dist/model/getEventsVolumeFromWorkspace200Response.d.ts +15 -0
- package/dist/model/getEventsVolumeFromWorkspace200Response.js +21 -0
- package/dist/model/getEventsVolumeFromWorkspace200Response.js.map +1 -0
- package/dist/model/getEventsVolumeFromWorkspaceV1Output.d.ts +17 -0
- package/dist/model/getEventsVolumeFromWorkspaceV1Output.js +26 -0
- package/dist/model/getEventsVolumeFromWorkspaceV1Output.js.map +1 -0
- package/dist/model/getFilterInDestination200Response.d.ts +15 -0
- package/dist/model/getFilterInDestination200Response.js +21 -0
- package/dist/model/getFilterInDestination200Response.js.map +1 -0
- package/dist/model/getFilterInDestinationV1Output.d.ts +15 -0
- package/dist/model/getFilterInDestinationV1Output.js +21 -0
- package/dist/model/getFilterInDestinationV1Output.js.map +1 -0
- package/dist/model/getFunction200Response.d.ts +15 -0
- package/dist/model/getFunction200Response.js +21 -0
- package/dist/model/getFunction200Response.js.map +1 -0
- package/dist/model/getFunctionV1Output.d.ts +15 -0
- package/dist/model/getFunctionV1Output.js +21 -0
- package/dist/model/getFunctionV1Output.js.map +1 -0
- package/dist/model/getLatestFromEdgeFunctions200Response.d.ts +15 -0
- package/dist/model/getLatestFromEdgeFunctions200Response.js +21 -0
- package/dist/model/getLatestFromEdgeFunctions200Response.js.map +1 -0
- package/dist/model/getLatestFromEdgeFunctionsAlphaOutput.d.ts +15 -0
- package/dist/model/getLatestFromEdgeFunctionsAlphaOutput.js +21 -0
- package/dist/model/getLatestFromEdgeFunctionsAlphaOutput.js.map +1 -0
- package/dist/model/getMessagingSubscriptionFailureResponse.d.ts +17 -0
- package/dist/model/getMessagingSubscriptionFailureResponse.js +31 -0
- package/dist/model/getMessagingSubscriptionFailureResponse.js.map +1 -0
- package/dist/model/getMessagingSubscriptionSuccessResponse.d.ts +27 -0
- package/dist/model/getMessagingSubscriptionSuccessResponse.js +45 -0
- package/dist/model/getMessagingSubscriptionSuccessResponse.js.map +1 -0
- package/dist/model/getRegulation200Response.d.ts +15 -0
- package/dist/model/getRegulation200Response.js +21 -0
- package/dist/model/getRegulation200Response.js.map +1 -0
- package/dist/model/getRegulationV1Output.d.ts +15 -0
- package/dist/model/getRegulationV1Output.js +21 -0
- package/dist/model/getRegulationV1Output.js.map +1 -0
- package/dist/model/getSource200Response.d.ts +15 -0
- package/dist/model/getSource200Response.js +21 -0
- package/dist/model/getSource200Response.js.map +1 -0
- package/dist/model/getSource200Response1.d.ts +15 -0
- package/dist/model/getSource200Response1.js +21 -0
- package/dist/model/getSource200Response1.js.map +1 -0
- package/dist/model/getSourceAlphaOutput.d.ts +15 -0
- package/dist/model/getSourceAlphaOutput.js +21 -0
- package/dist/model/getSourceAlphaOutput.js.map +1 -0
- package/dist/model/getSourceMetadata200Response.d.ts +15 -0
- package/dist/model/getSourceMetadata200Response.js +21 -0
- package/dist/model/getSourceMetadata200Response.js.map +1 -0
- package/dist/model/getSourceMetadataV1Output.d.ts +15 -0
- package/dist/model/getSourceMetadataV1Output.js +21 -0
- package/dist/model/getSourceMetadataV1Output.js.map +1 -0
- package/dist/model/getSourceV1Output.d.ts +15 -0
- package/dist/model/getSourceV1Output.js +21 -0
- package/dist/model/getSourceV1Output.js.map +1 -0
- package/dist/model/getSourcesCatalog200Response.d.ts +15 -0
- package/dist/model/getSourcesCatalog200Response.js +21 -0
- package/dist/model/getSourcesCatalog200Response.js.map +1 -0
- package/dist/model/getSourcesCatalogV1Output.d.ts +17 -0
- package/dist/model/getSourcesCatalogV1Output.js +26 -0
- package/dist/model/getSourcesCatalogV1Output.js.map +1 -0
- package/dist/model/getSpace200Response.d.ts +15 -0
- package/dist/model/getSpace200Response.js +21 -0
- package/dist/model/getSpace200Response.js.map +1 -0
- package/dist/model/getSpaceAlphaOutput.d.ts +15 -0
- package/dist/model/getSpaceAlphaOutput.js +21 -0
- package/dist/model/getSpaceAlphaOutput.js.map +1 -0
- package/dist/model/getSubscriptionFromDestination200Response.d.ts +15 -0
- package/dist/model/getSubscriptionFromDestination200Response.js +21 -0
- package/dist/model/getSubscriptionFromDestination200Response.js.map +1 -0
- package/dist/model/getSubscriptionFromDestinationAlphaOutput.d.ts +15 -0
- package/dist/model/getSubscriptionFromDestinationAlphaOutput.js +21 -0
- package/dist/model/getSubscriptionFromDestinationAlphaOutput.js.map +1 -0
- package/dist/model/getSubscriptionRequest.d.ts +21 -0
- package/dist/model/getSubscriptionRequest.js +34 -0
- package/dist/model/getSubscriptionRequest.js.map +1 -0
- package/dist/model/getTrackingPlan200Response.d.ts +15 -0
- package/dist/model/getTrackingPlan200Response.js +21 -0
- package/dist/model/getTrackingPlan200Response.js.map +1 -0
- package/dist/model/getTrackingPlanV1Output.d.ts +15 -0
- package/dist/model/getTrackingPlanV1Output.js +21 -0
- package/dist/model/getTrackingPlanV1Output.js.map +1 -0
- package/dist/model/getTransformation200Response.d.ts +15 -0
- package/dist/model/getTransformation200Response.js +21 -0
- package/dist/model/getTransformation200Response.js.map +1 -0
- package/dist/model/getTransformationBetaOutput.d.ts +15 -0
- package/dist/model/getTransformationBetaOutput.js +21 -0
- package/dist/model/getTransformationBetaOutput.js.map +1 -0
- package/dist/model/getUser200Response.d.ts +15 -0
- package/dist/model/getUser200Response.js +21 -0
- package/dist/model/getUser200Response.js.map +1 -0
- package/dist/model/getUserGroup200Response.d.ts +15 -0
- package/dist/model/getUserGroup200Response.js +21 -0
- package/dist/model/getUserGroup200Response.js.map +1 -0
- package/dist/model/getUserGroupV1Output.d.ts +15 -0
- package/dist/model/getUserGroupV1Output.js +21 -0
- package/dist/model/getUserGroupV1Output.js.map +1 -0
- package/dist/model/getUserV1Output.d.ts +15 -0
- package/dist/model/getUserV1Output.js +21 -0
- package/dist/model/getUserV1Output.js.map +1 -0
- package/dist/model/getWarehouse200Response.d.ts +15 -0
- package/dist/model/getWarehouse200Response.js +21 -0
- package/dist/model/getWarehouse200Response.js.map +1 -0
- package/dist/model/getWarehouseMetadata200Response.d.ts +15 -0
- package/dist/model/getWarehouseMetadata200Response.js +21 -0
- package/dist/model/getWarehouseMetadata200Response.js.map +1 -0
- package/dist/model/getWarehouseMetadataV1Output.d.ts +15 -0
- package/dist/model/getWarehouseMetadataV1Output.js +21 -0
- package/dist/model/getWarehouseMetadataV1Output.js.map +1 -0
- package/dist/model/getWarehouseV1Output.d.ts +15 -0
- package/dist/model/getWarehouseV1Output.js +21 -0
- package/dist/model/getWarehouseV1Output.js.map +1 -0
- package/dist/model/getWarehousesCatalog200Response.d.ts +15 -0
- package/dist/model/getWarehousesCatalog200Response.js +21 -0
- package/dist/model/getWarehousesCatalog200Response.js.map +1 -0
- package/dist/model/getWarehousesCatalogV1Output.d.ts +17 -0
- package/dist/model/getWarehousesCatalogV1Output.js +26 -0
- package/dist/model/getWarehousesCatalogV1Output.js.map +1 -0
- package/dist/model/getWorkspace200Response.d.ts +15 -0
- package/dist/model/getWorkspace200Response.js +21 -0
- package/dist/model/getWorkspace200Response.js.map +1 -0
- package/dist/model/getWorkspaceV1Output.d.ts +15 -0
- package/dist/model/getWorkspaceV1Output.js +21 -0
- package/dist/model/getWorkspaceV1Output.js.map +1 -0
- package/dist/model/group.d.ts +23 -0
- package/dist/model/group.js +40 -0
- package/dist/model/group.js.map +1 -0
- package/dist/model/groupSourceSettingsV1.d.ts +23 -0
- package/dist/model/groupSourceSettingsV1.js +40 -0
- package/dist/model/groupSourceSettingsV1.js.map +1 -0
- package/dist/model/identify.d.ts +23 -0
- package/dist/model/identify.js +40 -0
- package/dist/model/identify.js.map +1 -0
- package/dist/model/identifySourceSettingsV1.d.ts +23 -0
- package/dist/model/identifySourceSettingsV1.js +40 -0
- package/dist/model/identifySourceSettingsV1.js.map +1 -0
- package/dist/model/input.d.ts +17 -0
- package/dist/model/input.js +36 -0
- package/dist/model/input.js.map +1 -0
- package/dist/model/integrationOptionBeta.d.ts +19 -0
- package/dist/model/integrationOptionBeta.js +46 -0
- package/dist/model/integrationOptionBeta.js.map +1 -0
- package/dist/model/invitePermissionV1.d.ts +18 -0
- package/dist/model/invitePermissionV1.js +31 -0
- package/dist/model/invitePermissionV1.js.map +1 -0
- package/dist/model/inviteV1.d.ts +16 -0
- package/dist/model/inviteV1.js +26 -0
- package/dist/model/inviteV1.js.map +1 -0
- package/dist/model/label.d.ts +16 -0
- package/dist/model/label.js +31 -0
- package/dist/model/label.js.map +1 -0
- package/dist/model/label1.d.ts +16 -0
- package/dist/model/label1.js +31 -0
- package/dist/model/label1.js.map +1 -0
- package/dist/model/label2.d.ts +16 -0
- package/dist/model/label2.js +31 -0
- package/dist/model/label2.js.map +1 -0
- package/dist/model/labelAlpha.d.ts +16 -0
- package/dist/model/labelAlpha.js +31 -0
- package/dist/model/labelAlpha.js.map +1 -0
- package/dist/model/labelV1.d.ts +16 -0
- package/dist/model/labelV1.js +31 -0
- package/dist/model/labelV1.js.map +1 -0
- package/dist/model/listAuditEvents200Response.d.ts +15 -0
- package/dist/model/listAuditEvents200Response.js +21 -0
- package/dist/model/listAuditEvents200Response.js.map +1 -0
- package/dist/model/listAuditEventsV1Output.d.ts +17 -0
- package/dist/model/listAuditEventsV1Output.js +26 -0
- package/dist/model/listAuditEventsV1Output.js.map +1 -0
- package/dist/model/listConnectedDestinationsFromSource200Response.d.ts +15 -0
- package/dist/model/listConnectedDestinationsFromSource200Response.js +21 -0
- package/dist/model/listConnectedDestinationsFromSource200Response.js.map +1 -0
- package/dist/model/listConnectedDestinationsFromSource200Response1.d.ts +15 -0
- package/dist/model/listConnectedDestinationsFromSource200Response1.js +21 -0
- package/dist/model/listConnectedDestinationsFromSource200Response1.js.map +1 -0
- package/dist/model/listConnectedDestinationsFromSourceAlphaOutput.d.ts +17 -0
- package/dist/model/listConnectedDestinationsFromSourceAlphaOutput.js +26 -0
- package/dist/model/listConnectedDestinationsFromSourceAlphaOutput.js.map +1 -0
- package/dist/model/listConnectedDestinationsFromSourceV1Output.d.ts +17 -0
- package/dist/model/listConnectedDestinationsFromSourceV1Output.js +26 -0
- package/dist/model/listConnectedDestinationsFromSourceV1Output.js.map +1 -0
- package/dist/model/listConnectedSourcesFromWarehouse200Response.d.ts +15 -0
- package/dist/model/listConnectedSourcesFromWarehouse200Response.js +21 -0
- package/dist/model/listConnectedSourcesFromWarehouse200Response.js.map +1 -0
- package/dist/model/listConnectedSourcesFromWarehouseV1Output.d.ts +17 -0
- package/dist/model/listConnectedSourcesFromWarehouseV1Output.js +26 -0
- package/dist/model/listConnectedSourcesFromWarehouseV1Output.js.map +1 -0
- package/dist/model/listConnectedWarehousesFromSource200Response.d.ts +15 -0
- package/dist/model/listConnectedWarehousesFromSource200Response.js +21 -0
- package/dist/model/listConnectedWarehousesFromSource200Response.js.map +1 -0
- package/dist/model/listConnectedWarehousesFromSource200Response1.d.ts +15 -0
- package/dist/model/listConnectedWarehousesFromSource200Response1.js +21 -0
- package/dist/model/listConnectedWarehousesFromSource200Response1.js.map +1 -0
- package/dist/model/listConnectedWarehousesFromSourceAlphaOutput.d.ts +17 -0
- package/dist/model/listConnectedWarehousesFromSourceAlphaOutput.js +26 -0
- package/dist/model/listConnectedWarehousesFromSourceAlphaOutput.js.map +1 -0
- package/dist/model/listConnectedWarehousesFromSourceV1Output.d.ts +17 -0
- package/dist/model/listConnectedWarehousesFromSourceV1Output.js +26 -0
- package/dist/model/listConnectedWarehousesFromSourceV1Output.js.map +1 -0
- package/dist/model/listDeliveryMetricsSummaryFromDestination200Response.d.ts +15 -0
- package/dist/model/listDeliveryMetricsSummaryFromDestination200Response.js +21 -0
- package/dist/model/listDeliveryMetricsSummaryFromDestination200Response.js.map +1 -0
- package/dist/model/listDeliveryMetricsSummaryFromDestinationBetaOutput.d.ts +15 -0
- package/dist/model/listDeliveryMetricsSummaryFromDestinationBetaOutput.js +21 -0
- package/dist/model/listDeliveryMetricsSummaryFromDestinationBetaOutput.js.map +1 -0
- package/dist/model/listDestinations200Response.d.ts +15 -0
- package/dist/model/listDestinations200Response.js +21 -0
- package/dist/model/listDestinations200Response.js.map +1 -0
- package/dist/model/listDestinationsV1Output.d.ts +17 -0
- package/dist/model/listDestinationsV1Output.js +26 -0
- package/dist/model/listDestinationsV1Output.js.map +1 -0
- package/dist/model/listFiltersFromDestination200Response.d.ts +15 -0
- package/dist/model/listFiltersFromDestination200Response.js +21 -0
- package/dist/model/listFiltersFromDestination200Response.js.map +1 -0
- package/dist/model/listFiltersFromDestinationV1Output.d.ts +17 -0
- package/dist/model/listFiltersFromDestinationV1Output.js +26 -0
- package/dist/model/listFiltersFromDestinationV1Output.js.map +1 -0
- package/dist/model/listFunctionItemV1.d.ts +27 -0
- package/dist/model/listFunctionItemV1.js +64 -0
- package/dist/model/listFunctionItemV1.js.map +1 -0
- package/dist/model/listFunctions200Response.d.ts +15 -0
- package/dist/model/listFunctions200Response.js +21 -0
- package/dist/model/listFunctions200Response.js.map +1 -0
- package/dist/model/listFunctionsV1Output.d.ts +17 -0
- package/dist/model/listFunctionsV1Output.js +26 -0
- package/dist/model/listFunctionsV1Output.js.map +1 -0
- package/dist/model/listInvites200Response.d.ts +15 -0
- package/dist/model/listInvites200Response.js +21 -0
- package/dist/model/listInvites200Response.js.map +1 -0
- package/dist/model/listInvitesFromUserGroup200Response.d.ts +15 -0
- package/dist/model/listInvitesFromUserGroup200Response.js +21 -0
- package/dist/model/listInvitesFromUserGroup200Response.js.map +1 -0
- package/dist/model/listInvitesFromUserGroupV1Output.d.ts +16 -0
- package/dist/model/listInvitesFromUserGroupV1Output.js +26 -0
- package/dist/model/listInvitesFromUserGroupV1Output.js.map +1 -0
- package/dist/model/listInvitesV1Output.d.ts +16 -0
- package/dist/model/listInvitesV1Output.js +26 -0
- package/dist/model/listInvitesV1Output.js.map +1 -0
- package/dist/model/listLabels200Response.d.ts +15 -0
- package/dist/model/listLabels200Response.js +21 -0
- package/dist/model/listLabels200Response.js.map +1 -0
- package/dist/model/listLabels200Response1.d.ts +15 -0
- package/dist/model/listLabels200Response1.js +21 -0
- package/dist/model/listLabels200Response1.js.map +1 -0
- package/dist/model/listLabelsAlphaOutput.d.ts +15 -0
- package/dist/model/listLabelsAlphaOutput.js +21 -0
- package/dist/model/listLabelsAlphaOutput.js.map +1 -0
- package/dist/model/listLabelsV1Output.d.ts +15 -0
- package/dist/model/listLabelsV1Output.js +21 -0
- package/dist/model/listLabelsV1Output.js.map +1 -0
- package/dist/model/listRegulationsFromSource200Response.d.ts +15 -0
- package/dist/model/listRegulationsFromSource200Response.js +21 -0
- package/dist/model/listRegulationsFromSource200Response.js.map +1 -0
- package/dist/model/listRegulationsFromSourceV1Output.d.ts +15 -0
- package/dist/model/listRegulationsFromSourceV1Output.js +21 -0
- package/dist/model/listRegulationsFromSourceV1Output.js.map +1 -0
- package/dist/model/listRoles200Response.d.ts +15 -0
- package/dist/model/listRoles200Response.js +21 -0
- package/dist/model/listRoles200Response.js.map +1 -0
- package/dist/model/listRolesV1Output.d.ts +17 -0
- package/dist/model/listRolesV1Output.js +26 -0
- package/dist/model/listRolesV1Output.js.map +1 -0
- package/dist/model/listRulesFromTrackingPlan200Response.d.ts +15 -0
- package/dist/model/listRulesFromTrackingPlan200Response.js +21 -0
- package/dist/model/listRulesFromTrackingPlan200Response.js.map +1 -0
- package/dist/model/listRulesFromTrackingPlanV1Output.d.ts +17 -0
- package/dist/model/listRulesFromTrackingPlanV1Output.js +26 -0
- package/dist/model/listRulesFromTrackingPlanV1Output.js.map +1 -0
- package/dist/model/listSchemaSettingsInSource200Response.d.ts +15 -0
- package/dist/model/listSchemaSettingsInSource200Response.js +21 -0
- package/dist/model/listSchemaSettingsInSource200Response.js.map +1 -0
- package/dist/model/listSchemaSettingsInSourceV1Output.d.ts +16 -0
- package/dist/model/listSchemaSettingsInSourceV1Output.js +26 -0
- package/dist/model/listSchemaSettingsInSourceV1Output.js.map +1 -0
- package/dist/model/listSelectiveSyncsFromWarehouseAndSource200Response.d.ts +15 -0
- package/dist/model/listSelectiveSyncsFromWarehouseAndSource200Response.js +21 -0
- package/dist/model/listSelectiveSyncsFromWarehouseAndSource200Response.js.map +1 -0
- package/dist/model/listSelectiveSyncsFromWarehouseAndSourceV1Output.d.ts +17 -0
- package/dist/model/listSelectiveSyncsFromWarehouseAndSourceV1Output.js +26 -0
- package/dist/model/listSelectiveSyncsFromWarehouseAndSourceV1Output.js.map +1 -0
- package/dist/model/listSources200Response.d.ts +15 -0
- package/dist/model/listSources200Response.js +21 -0
- package/dist/model/listSources200Response.js.map +1 -0
- package/dist/model/listSources200Response1.d.ts +15 -0
- package/dist/model/listSources200Response1.js +21 -0
- package/dist/model/listSources200Response1.js.map +1 -0
- package/dist/model/listSourcesAlphaOutput.d.ts +17 -0
- package/dist/model/listSourcesAlphaOutput.js +26 -0
- package/dist/model/listSourcesAlphaOutput.js.map +1 -0
- package/dist/model/listSourcesFromTrackingPlan200Response.d.ts +15 -0
- package/dist/model/listSourcesFromTrackingPlan200Response.js +21 -0
- package/dist/model/listSourcesFromTrackingPlan200Response.js.map +1 -0
- package/dist/model/listSourcesFromTrackingPlanV1Output.d.ts +17 -0
- package/dist/model/listSourcesFromTrackingPlanV1Output.js +26 -0
- package/dist/model/listSourcesFromTrackingPlanV1Output.js.map +1 -0
- package/dist/model/listSourcesV1Output.d.ts +17 -0
- package/dist/model/listSourcesV1Output.js +26 -0
- package/dist/model/listSourcesV1Output.js.map +1 -0
- package/dist/model/listSubscriptionsFromDestination200Response.d.ts +15 -0
- package/dist/model/listSubscriptionsFromDestination200Response.js +21 -0
- package/dist/model/listSubscriptionsFromDestination200Response.js.map +1 -0
- package/dist/model/listSubscriptionsFromDestinationAlphaOutput.d.ts +17 -0
- package/dist/model/listSubscriptionsFromDestinationAlphaOutput.js +26 -0
- package/dist/model/listSubscriptionsFromDestinationAlphaOutput.js.map +1 -0
- package/dist/model/listSuppressions200Response.d.ts +15 -0
- package/dist/model/listSuppressions200Response.js +21 -0
- package/dist/model/listSuppressions200Response.js.map +1 -0
- package/dist/model/listSuppressionsV1Output.d.ts +17 -0
- package/dist/model/listSuppressionsV1Output.js +26 -0
- package/dist/model/listSuppressionsV1Output.js.map +1 -0
- package/dist/model/listSyncsFromWarehouse200Response.d.ts +15 -0
- package/dist/model/listSyncsFromWarehouse200Response.js +21 -0
- package/dist/model/listSyncsFromWarehouse200Response.js.map +1 -0
- package/dist/model/listSyncsFromWarehouseAndSource200Response.d.ts +15 -0
- package/dist/model/listSyncsFromWarehouseAndSource200Response.js +21 -0
- package/dist/model/listSyncsFromWarehouseAndSource200Response.js.map +1 -0
- package/dist/model/listSyncsFromWarehouseAndSourceV1Output.d.ts +17 -0
- package/dist/model/listSyncsFromWarehouseAndSourceV1Output.js +26 -0
- package/dist/model/listSyncsFromWarehouseAndSourceV1Output.js.map +1 -0
- package/dist/model/listSyncsFromWarehouseV1Output.d.ts +17 -0
- package/dist/model/listSyncsFromWarehouseV1Output.js +26 -0
- package/dist/model/listSyncsFromWarehouseV1Output.js.map +1 -0
- package/dist/model/listTrackingPlans200Response.d.ts +15 -0
- package/dist/model/listTrackingPlans200Response.js +21 -0
- package/dist/model/listTrackingPlans200Response.js.map +1 -0
- package/dist/model/listTrackingPlansV1Output.d.ts +17 -0
- package/dist/model/listTrackingPlansV1Output.js +26 -0
- package/dist/model/listTrackingPlansV1Output.js.map +1 -0
- package/dist/model/listTransformations200Response.d.ts +15 -0
- package/dist/model/listTransformations200Response.js +21 -0
- package/dist/model/listTransformations200Response.js.map +1 -0
- package/dist/model/listTransformationsBetaOutput.d.ts +17 -0
- package/dist/model/listTransformationsBetaOutput.js +26 -0
- package/dist/model/listTransformationsBetaOutput.js.map +1 -0
- package/dist/model/listUserGroups200Response.d.ts +15 -0
- package/dist/model/listUserGroups200Response.js +21 -0
- package/dist/model/listUserGroups200Response.js.map +1 -0
- package/dist/model/listUserGroupsFromUser200Response.d.ts +15 -0
- package/dist/model/listUserGroupsFromUser200Response.js +21 -0
- package/dist/model/listUserGroupsFromUser200Response.js.map +1 -0
- package/dist/model/listUserGroupsFromUserV1Output.d.ts +17 -0
- package/dist/model/listUserGroupsFromUserV1Output.js +26 -0
- package/dist/model/listUserGroupsFromUserV1Output.js.map +1 -0
- package/dist/model/listUserGroupsV1Output.d.ts +17 -0
- package/dist/model/listUserGroupsV1Output.js +26 -0
- package/dist/model/listUserGroupsV1Output.js.map +1 -0
- package/dist/model/listUsers200Response.d.ts +15 -0
- package/dist/model/listUsers200Response.js +21 -0
- package/dist/model/listUsers200Response.js.map +1 -0
- package/dist/model/listUsersFromUserGroup200Response.d.ts +15 -0
- package/dist/model/listUsersFromUserGroup200Response.js +21 -0
- package/dist/model/listUsersFromUserGroup200Response.js.map +1 -0
- package/dist/model/listUsersFromUserGroupV1Output.d.ts +17 -0
- package/dist/model/listUsersFromUserGroupV1Output.js +26 -0
- package/dist/model/listUsersFromUserGroupV1Output.js.map +1 -0
- package/dist/model/listUsersV1Output.d.ts +17 -0
- package/dist/model/listUsersV1Output.js +26 -0
- package/dist/model/listUsersV1Output.js.map +1 -0
- package/dist/model/listWarehouses200Response.d.ts +15 -0
- package/dist/model/listWarehouses200Response.js +21 -0
- package/dist/model/listWarehouses200Response.js.map +1 -0
- package/dist/model/listWarehousesV1Output.d.ts +17 -0
- package/dist/model/listWarehousesV1Output.js +26 -0
- package/dist/model/listWarehousesV1Output.js.map +1 -0
- package/dist/model/listWorkspaceRegulations200Response.d.ts +15 -0
- package/dist/model/listWorkspaceRegulations200Response.js +21 -0
- package/dist/model/listWorkspaceRegulations200Response.js.map +1 -0
- package/dist/model/listWorkspaceRegulationsV1Output.d.ts +17 -0
- package/dist/model/listWorkspaceRegulationsV1Output.js +26 -0
- package/dist/model/listWorkspaceRegulationsV1Output.js.map +1 -0
- package/dist/model/logos.d.ts +16 -0
- package/dist/model/logos.js +31 -0
- package/dist/model/logos.js.map +1 -0
- package/dist/model/logos1.d.ts +16 -0
- package/dist/model/logos1.js +31 -0
- package/dist/model/logos1.js.map +1 -0
- package/dist/model/logos2.d.ts +16 -0
- package/dist/model/logos2.js +31 -0
- package/dist/model/logos2.js.map +1 -0
- package/dist/model/logosBeta.d.ts +16 -0
- package/dist/model/logosBeta.js +31 -0
- package/dist/model/logosBeta.js.map +1 -0
- package/dist/model/messageSubscriptionResponse.d.ts +29 -0
- package/dist/model/messageSubscriptionResponse.js +50 -0
- package/dist/model/messageSubscriptionResponse.js.map +1 -0
- package/dist/model/messageSubscriptionResponseError.d.ts +15 -0
- package/dist/model/messageSubscriptionResponseError.js +26 -0
- package/dist/model/messageSubscriptionResponseError.js.map +1 -0
- package/dist/model/messagesSubscriptionRequest.d.ts +27 -0
- package/dist/model/messagesSubscriptionRequest.js +45 -0
- package/dist/model/messagesSubscriptionRequest.js.map +1 -0
- package/dist/model/metadata.d.ts +48 -0
- package/dist/model/metadata.js +109 -0
- package/dist/model/metadata.js.map +1 -0
- package/dist/model/metadata1.d.ts +23 -0
- package/dist/model/metadata1.js +56 -0
- package/dist/model/metadata1.js.map +1 -0
- package/dist/model/metadata2.d.ts +21 -0
- package/dist/model/metadata2.js +46 -0
- package/dist/model/metadata2.js.map +1 -0
- package/dist/model/metricBeta.d.ts +17 -0
- package/dist/model/metricBeta.js +31 -0
- package/dist/model/metricBeta.js.map +1 -0
- package/dist/model/minimalUserGroupV1.d.ts +15 -0
- package/dist/model/minimalUserGroupV1.js +26 -0
- package/dist/model/minimalUserGroupV1.js.map +1 -0
- package/dist/model/minimalUserV1.d.ts +16 -0
- package/dist/model/minimalUserV1.js +31 -0
- package/dist/model/minimalUserV1.js.map +1 -0
- package/dist/model/models.d.ts +508 -0
- package/dist/model/models.js +1701 -0
- package/dist/model/models.js.map +1 -0
- package/dist/model/mtuSnapshotV1.d.ts +20 -0
- package/dist/model/mtuSnapshotV1.js +51 -0
- package/dist/model/mtuSnapshotV1.js.map +1 -0
- package/dist/model/pagination.d.ts +17 -0
- package/dist/model/pagination.js +36 -0
- package/dist/model/pagination.js.map +1 -0
- package/dist/model/paginationInput.d.ts +15 -0
- package/dist/model/paginationInput.js +26 -0
- package/dist/model/paginationInput.js.map +1 -0
- package/dist/model/paginationOutput.d.ts +17 -0
- package/dist/model/paginationOutput.js +36 -0
- package/dist/model/paginationOutput.js.map +1 -0
- package/dist/model/permissionInputV1.d.ts +16 -0
- package/dist/model/permissionInputV1.js +26 -0
- package/dist/model/permissionInputV1.js.map +1 -0
- package/dist/model/permissionResourceV1.d.ts +26 -0
- package/dist/model/permissionResourceV1.js +42 -0
- package/dist/model/permissionResourceV1.js.map +1 -0
- package/dist/model/permissionV1.d.ts +19 -0
- package/dist/model/permissionV1.js +36 -0
- package/dist/model/permissionV1.js.map +1 -0
- package/dist/model/previewDestinationFilter200Response.d.ts +15 -0
- package/dist/model/previewDestinationFilter200Response.js +21 -0
- package/dist/model/previewDestinationFilter200Response.js.map +1 -0
- package/dist/model/previewDestinationFilterV1.d.ts +16 -0
- package/dist/model/previewDestinationFilterV1.js +26 -0
- package/dist/model/previewDestinationFilterV1.js.map +1 -0
- package/dist/model/previewDestinationFilterV1Input.d.ts +18 -0
- package/dist/model/previewDestinationFilterV1Input.js +26 -0
- package/dist/model/previewDestinationFilterV1Input.js.map +1 -0
- package/dist/model/previewDestinationFilterV1Output.d.ts +17 -0
- package/dist/model/previewDestinationFilterV1Output.js +26 -0
- package/dist/model/previewDestinationFilterV1Output.js.map +1 -0
- package/dist/model/propertyRenameBeta.d.ts +15 -0
- package/dist/model/propertyRenameBeta.js +26 -0
- package/dist/model/propertyRenameBeta.js.map +1 -0
- package/dist/model/regulation.d.ts +31 -0
- package/dist/model/regulation.js +59 -0
- package/dist/model/regulation.js.map +1 -0
- package/dist/model/regulationListEntryV1.d.ts +30 -0
- package/dist/model/regulationListEntryV1.js +59 -0
- package/dist/model/regulationListEntryV1.js.map +1 -0
- package/dist/model/removeFilterFromDestination200Response.d.ts +15 -0
- package/dist/model/removeFilterFromDestination200Response.js +21 -0
- package/dist/model/removeFilterFromDestination200Response.js.map +1 -0
- package/dist/model/removeFilterFromDestinationV1Output.d.ts +19 -0
- package/dist/model/removeFilterFromDestinationV1Output.js +28 -0
- package/dist/model/removeFilterFromDestinationV1Output.js.map +1 -0
- package/dist/model/removeRuleV1.d.ts +26 -0
- package/dist/model/removeRuleV1.js +43 -0
- package/dist/model/removeRuleV1.js.map +1 -0
- package/dist/model/removeRulesFromTrackingPlan200Response.d.ts +15 -0
- package/dist/model/removeRulesFromTrackingPlan200Response.js +21 -0
- package/dist/model/removeRulesFromTrackingPlan200Response.js.map +1 -0
- package/dist/model/removeRulesFromTrackingPlanV1Output.d.ts +19 -0
- package/dist/model/removeRulesFromTrackingPlanV1Output.js +28 -0
- package/dist/model/removeRulesFromTrackingPlanV1Output.js.map +1 -0
- package/dist/model/removeSourceConnectionFromWarehouse200Response.d.ts +15 -0
- package/dist/model/removeSourceConnectionFromWarehouse200Response.js +21 -0
- package/dist/model/removeSourceConnectionFromWarehouse200Response.js.map +1 -0
- package/dist/model/removeSourceConnectionFromWarehouseV1Output.d.ts +19 -0
- package/dist/model/removeSourceConnectionFromWarehouseV1Output.js +28 -0
- package/dist/model/removeSourceConnectionFromWarehouseV1Output.js.map +1 -0
- package/dist/model/removeSourceFromTrackingPlan200Response.d.ts +15 -0
- package/dist/model/removeSourceFromTrackingPlan200Response.js +21 -0
- package/dist/model/removeSourceFromTrackingPlan200Response.js.map +1 -0
- package/dist/model/removeSourceFromTrackingPlanV1Output.d.ts +19 -0
- package/dist/model/removeSourceFromTrackingPlanV1Output.js +28 -0
- package/dist/model/removeSourceFromTrackingPlanV1Output.js.map +1 -0
- package/dist/model/removeSubscriptionFromDestination200Response.d.ts +15 -0
- package/dist/model/removeSubscriptionFromDestination200Response.js +21 -0
- package/dist/model/removeSubscriptionFromDestination200Response.js.map +1 -0
- package/dist/model/removeSubscriptionFromDestinationAlphaOutput.d.ts +19 -0
- package/dist/model/removeSubscriptionFromDestinationAlphaOutput.js +28 -0
- package/dist/model/removeSubscriptionFromDestinationAlphaOutput.js.map +1 -0
- package/dist/model/removeUsersFromUserGroup200Response.d.ts +15 -0
- package/dist/model/removeUsersFromUserGroup200Response.js +21 -0
- package/dist/model/removeUsersFromUserGroup200Response.js.map +1 -0
- package/dist/model/removeUsersFromUserGroupV1Output.d.ts +19 -0
- package/dist/model/removeUsersFromUserGroupV1Output.js +28 -0
- package/dist/model/removeUsersFromUserGroupV1Output.js.map +1 -0
- package/dist/model/replaceAdvancedSyncScheduleForWarehouse200Response.d.ts +15 -0
- package/dist/model/replaceAdvancedSyncScheduleForWarehouse200Response.js +21 -0
- package/dist/model/replaceAdvancedSyncScheduleForWarehouse200Response.js.map +1 -0
- package/dist/model/replaceAdvancedSyncScheduleForWarehouseV1Input.d.ts +16 -0
- package/dist/model/replaceAdvancedSyncScheduleForWarehouseV1Input.js +26 -0
- package/dist/model/replaceAdvancedSyncScheduleForWarehouseV1Input.js.map +1 -0
- package/dist/model/replaceAdvancedSyncScheduleForWarehouseV1Output.d.ts +16 -0
- package/dist/model/replaceAdvancedSyncScheduleForWarehouseV1Output.js +26 -0
- package/dist/model/replaceAdvancedSyncScheduleForWarehouseV1Output.js.map +1 -0
- package/dist/model/replaceLabelsInSource200Response.d.ts +15 -0
- package/dist/model/replaceLabelsInSource200Response.js +21 -0
- package/dist/model/replaceLabelsInSource200Response.js.map +1 -0
- package/dist/model/replaceLabelsInSource200Response1.d.ts +15 -0
- package/dist/model/replaceLabelsInSource200Response1.js +21 -0
- package/dist/model/replaceLabelsInSource200Response1.js.map +1 -0
- package/dist/model/replaceLabelsInSourceAlphaInput.d.ts +15 -0
- package/dist/model/replaceLabelsInSourceAlphaInput.js +21 -0
- package/dist/model/replaceLabelsInSourceAlphaInput.js.map +1 -0
- package/dist/model/replaceLabelsInSourceAlphaOutput.d.ts +15 -0
- package/dist/model/replaceLabelsInSourceAlphaOutput.js +21 -0
- package/dist/model/replaceLabelsInSourceAlphaOutput.js.map +1 -0
- package/dist/model/replaceLabelsInSourceV1Input.d.ts +15 -0
- package/dist/model/replaceLabelsInSourceV1Input.js +21 -0
- package/dist/model/replaceLabelsInSourceV1Input.js.map +1 -0
- package/dist/model/replaceLabelsInSourceV1Output.d.ts +15 -0
- package/dist/model/replaceLabelsInSourceV1Output.js +21 -0
- package/dist/model/replaceLabelsInSourceV1Output.js.map +1 -0
- package/dist/model/replaceMessagingSubscriptionsInSpaces200Response.d.ts +15 -0
- package/dist/model/replaceMessagingSubscriptionsInSpaces200Response.js +21 -0
- package/dist/model/replaceMessagingSubscriptionsInSpaces200Response.js.map +1 -0
- package/dist/model/replaceMessagingSubscriptionsInSpacesAlphaInput.d.ts +15 -0
- package/dist/model/replaceMessagingSubscriptionsInSpacesAlphaInput.js +21 -0
- package/dist/model/replaceMessagingSubscriptionsInSpacesAlphaInput.js.map +1 -0
- package/dist/model/replaceMessagingSubscriptionsInSpacesAlphaOutput.d.ts +18 -0
- package/dist/model/replaceMessagingSubscriptionsInSpacesAlphaOutput.js +31 -0
- package/dist/model/replaceMessagingSubscriptionsInSpacesAlphaOutput.js.map +1 -0
- package/dist/model/replacePermissionsForUser200Response.d.ts +15 -0
- package/dist/model/replacePermissionsForUser200Response.js +21 -0
- package/dist/model/replacePermissionsForUser200Response.js.map +1 -0
- package/dist/model/replacePermissionsForUserGroup200Response.d.ts +15 -0
- package/dist/model/replacePermissionsForUserGroup200Response.js +21 -0
- package/dist/model/replacePermissionsForUserGroup200Response.js.map +1 -0
- package/dist/model/replacePermissionsForUserGroupV1Input.d.ts +15 -0
- package/dist/model/replacePermissionsForUserGroupV1Input.js +21 -0
- package/dist/model/replacePermissionsForUserGroupV1Input.js.map +1 -0
- package/dist/model/replacePermissionsForUserGroupV1Output.d.ts +15 -0
- package/dist/model/replacePermissionsForUserGroupV1Output.js +21 -0
- package/dist/model/replacePermissionsForUserGroupV1Output.js.map +1 -0
- package/dist/model/replacePermissionsForUserV1Input.d.ts +15 -0
- package/dist/model/replacePermissionsForUserV1Input.js +21 -0
- package/dist/model/replacePermissionsForUserV1Input.js.map +1 -0
- package/dist/model/replacePermissionsForUserV1Output.d.ts +15 -0
- package/dist/model/replacePermissionsForUserV1Output.js +21 -0
- package/dist/model/replacePermissionsForUserV1Output.js.map +1 -0
- package/dist/model/replaceRulesInTrackingPlan200Response.d.ts +15 -0
- package/dist/model/replaceRulesInTrackingPlan200Response.js +21 -0
- package/dist/model/replaceRulesInTrackingPlan200Response.js.map +1 -0
- package/dist/model/replaceRulesInTrackingPlanV1Input.d.ts +15 -0
- package/dist/model/replaceRulesInTrackingPlanV1Input.js +21 -0
- package/dist/model/replaceRulesInTrackingPlanV1Input.js.map +1 -0
- package/dist/model/replaceRulesInTrackingPlanV1Output.d.ts +19 -0
- package/dist/model/replaceRulesInTrackingPlanV1Output.js +28 -0
- package/dist/model/replaceRulesInTrackingPlanV1Output.js.map +1 -0
- package/dist/model/replaceUsersInUserGroup200Response.d.ts +15 -0
- package/dist/model/replaceUsersInUserGroup200Response.js +21 -0
- package/dist/model/replaceUsersInUserGroup200Response.js.map +1 -0
- package/dist/model/replaceUsersInUserGroupV1Input.d.ts +14 -0
- package/dist/model/replaceUsersInUserGroupV1Input.js +21 -0
- package/dist/model/replaceUsersInUserGroupV1Input.js.map +1 -0
- package/dist/model/replaceUsersInUserGroupV1Output.d.ts +15 -0
- package/dist/model/replaceUsersInUserGroupV1Output.js +21 -0
- package/dist/model/replaceUsersInUserGroupV1Output.js.map +1 -0
- package/dist/model/requestError.d.ts +18 -0
- package/dist/model/requestError.js +41 -0
- package/dist/model/requestError.js.map +1 -0
- package/dist/model/requestErrorEnvelope.d.ts +15 -0
- package/dist/model/requestErrorEnvelope.js +21 -0
- package/dist/model/requestErrorEnvelope.js.map +1 -0
- package/dist/model/resourceV1.d.ts +24 -0
- package/dist/model/resourceV1.js +37 -0
- package/dist/model/resourceV1.js.map +1 -0
- package/dist/model/roleV1.d.ts +16 -0
- package/dist/model/roleV1.js +31 -0
- package/dist/model/roleV1.js.map +1 -0
- package/dist/model/ruleV1.d.ts +30 -0
- package/dist/model/ruleV1.js +63 -0
- package/dist/model/ruleV1.js.map +1 -0
- package/dist/model/schedule.d.ts +16 -0
- package/dist/model/schedule.js +26 -0
- package/dist/model/schedule.js.map +1 -0
- package/dist/model/schedule1.d.ts +16 -0
- package/dist/model/schedule1.js +26 -0
- package/dist/model/schedule1.js.map +1 -0
- package/dist/model/schedule2.d.ts +16 -0
- package/dist/model/schedule2.js +26 -0
- package/dist/model/schedule2.js.map +1 -0
- package/dist/model/settings.d.ts +21 -0
- package/dist/model/settings.js +41 -0
- package/dist/model/settings.js.map +1 -0
- package/dist/model/settings1.d.ts +21 -0
- package/dist/model/settings1.js +41 -0
- package/dist/model/settings1.js.map +1 -0
- package/dist/model/source.d.ts +16 -0
- package/dist/model/source.js +31 -0
- package/dist/model/source.js.map +1 -0
- package/dist/model/source1.d.ts +24 -0
- package/dist/model/source1.js +61 -0
- package/dist/model/source1.js.map +1 -0
- package/dist/model/source2.d.ts +24 -0
- package/dist/model/source2.js +61 -0
- package/dist/model/source2.js.map +1 -0
- package/dist/model/source3.d.ts +24 -0
- package/dist/model/source3.js +61 -0
- package/dist/model/source3.js.map +1 -0
- package/dist/model/source4.d.ts +24 -0
- package/dist/model/source4.js +61 -0
- package/dist/model/source4.js.map +1 -0
- package/dist/model/source5.d.ts +24 -0
- package/dist/model/source5.js +61 -0
- package/dist/model/source5.js.map +1 -0
- package/dist/model/source6.d.ts +24 -0
- package/dist/model/source6.js +61 -0
- package/dist/model/source6.js.map +1 -0
- package/dist/model/sourceAPICallSnapshotV1.d.ts +16 -0
- package/dist/model/sourceAPICallSnapshotV1.js +31 -0
- package/dist/model/sourceAPICallSnapshotV1.js.map +1 -0
- package/dist/model/sourceAlpha.d.ts +24 -0
- package/dist/model/sourceAlpha.js +61 -0
- package/dist/model/sourceAlpha.js.map +1 -0
- package/dist/model/sourceEventVolumeDatapointV1.d.ts +15 -0
- package/dist/model/sourceEventVolumeDatapointV1.js +26 -0
- package/dist/model/sourceEventVolumeDatapointV1.js.map +1 -0
- package/dist/model/sourceEventVolumeV1.d.ts +20 -0
- package/dist/model/sourceEventVolumeV1.js +41 -0
- package/dist/model/sourceEventVolumeV1.js.map +1 -0
- package/dist/model/sourceMetadata.d.ts +23 -0
- package/dist/model/sourceMetadata.js +56 -0
- package/dist/model/sourceMetadata.js.map +1 -0
- package/dist/model/sourceMetadataV1.d.ts +23 -0
- package/dist/model/sourceMetadataV1.js +56 -0
- package/dist/model/sourceMetadataV1.js.map +1 -0
- package/dist/model/sourceSettingsOutputV1.d.ts +21 -0
- package/dist/model/sourceSettingsOutputV1.js +41 -0
- package/dist/model/sourceSettingsOutputV1.js.map +1 -0
- package/dist/model/sourceV1.d.ts +24 -0
- package/dist/model/sourceV1.js +61 -0
- package/dist/model/sourceV1.js.map +1 -0
- package/dist/model/space.d.ts +16 -0
- package/dist/model/space.js +31 -0
- package/dist/model/space.js.map +1 -0
- package/dist/model/streamStatusV1.d.ts +16 -0
- package/dist/model/streamStatusV1.js +26 -0
- package/dist/model/streamStatusV1.js.map +1 -0
- package/dist/model/subscription.d.ts +21 -0
- package/dist/model/subscription.js +56 -0
- package/dist/model/subscription.js.map +1 -0
- package/dist/model/supportedFeatures.d.ts +33 -0
- package/dist/model/supportedFeatures.js +59 -0
- package/dist/model/supportedFeatures.js.map +1 -0
- package/dist/model/supportedMethods.d.ts +18 -0
- package/dist/model/supportedMethods.js +41 -0
- package/dist/model/supportedMethods.js.map +1 -0
- package/dist/model/supportedPlatforms.d.ts +16 -0
- package/dist/model/supportedPlatforms.js +31 -0
- package/dist/model/supportedPlatforms.js.map +1 -0
- package/dist/model/suppressedInner.d.ts +15 -0
- package/dist/model/suppressedInner.js +26 -0
- package/dist/model/suppressedInner.js.map +1 -0
- package/dist/model/syncNoticeV1.d.ts +16 -0
- package/dist/model/syncNoticeV1.js +31 -0
- package/dist/model/syncNoticeV1.js.map +1 -0
- package/dist/model/syncV1.d.ts +22 -0
- package/dist/model/syncV1.js +56 -0
- package/dist/model/syncV1.js.map +1 -0
- package/dist/model/track.d.ts +25 -0
- package/dist/model/track.js +50 -0
- package/dist/model/track.js.map +1 -0
- package/dist/model/trackSourceSettingsV1.d.ts +25 -0
- package/dist/model/trackSourceSettingsV1.js +50 -0
- package/dist/model/trackSourceSettingsV1.js.map +1 -0
- package/dist/model/trackingPlan.d.ts +28 -0
- package/dist/model/trackingPlan.js +61 -0
- package/dist/model/trackingPlan.js.map +1 -0
- package/dist/model/trackingPlan1.d.ts +28 -0
- package/dist/model/trackingPlan1.js +61 -0
- package/dist/model/trackingPlan1.js.map +1 -0
- package/dist/model/trackingPlanV1.d.ts +28 -0
- package/dist/model/trackingPlanV1.js +61 -0
- package/dist/model/trackingPlanV1.js.map +1 -0
- package/dist/model/transformation.d.ts +22 -0
- package/dist/model/transformation.js +56 -0
- package/dist/model/transformation.js.map +1 -0
- package/dist/model/transformation1.d.ts +22 -0
- package/dist/model/transformation1.js +56 -0
- package/dist/model/transformation1.js.map +1 -0
- package/dist/model/transformation2.d.ts +22 -0
- package/dist/model/transformation2.js +56 -0
- package/dist/model/transformation2.js.map +1 -0
- package/dist/model/transformationBeta.d.ts +22 -0
- package/dist/model/transformationBeta.js +56 -0
- package/dist/model/transformationBeta.js.map +1 -0
- package/dist/model/updateDestination200Response.d.ts +15 -0
- package/dist/model/updateDestination200Response.js +21 -0
- package/dist/model/updateDestination200Response.js.map +1 -0
- package/dist/model/updateDestinationV1Input.d.ts +18 -0
- package/dist/model/updateDestinationV1Input.js +31 -0
- package/dist/model/updateDestinationV1Input.js.map +1 -0
- package/dist/model/updateDestinationV1Output.d.ts +15 -0
- package/dist/model/updateDestinationV1Output.js +21 -0
- package/dist/model/updateDestinationV1Output.js.map +1 -0
- package/dist/model/updateFilterForDestination200Response.d.ts +15 -0
- package/dist/model/updateFilterForDestination200Response.js +21 -0
- package/dist/model/updateFilterForDestination200Response.js.map +1 -0
- package/dist/model/updateFilterForDestinationV1Input.d.ts +19 -0
- package/dist/model/updateFilterForDestinationV1Input.js +41 -0
- package/dist/model/updateFilterForDestinationV1Input.js.map +1 -0
- package/dist/model/updateFilterForDestinationV1Output.d.ts +15 -0
- package/dist/model/updateFilterForDestinationV1Output.js +21 -0
- package/dist/model/updateFilterForDestinationV1Output.js.map +1 -0
- package/dist/model/updateFunction200Response.d.ts +15 -0
- package/dist/model/updateFunction200Response.js +21 -0
- package/dist/model/updateFunction200Response.js.map +1 -0
- package/dist/model/updateFunctionV1Input.d.ts +19 -0
- package/dist/model/updateFunctionV1Input.js +41 -0
- package/dist/model/updateFunctionV1Input.js.map +1 -0
- package/dist/model/updateFunctionV1Output.d.ts +15 -0
- package/dist/model/updateFunctionV1Output.js +21 -0
- package/dist/model/updateFunctionV1Output.js.map +1 -0
- package/dist/model/updateRulesInTrackingPlan200Response.d.ts +15 -0
- package/dist/model/updateRulesInTrackingPlan200Response.js +21 -0
- package/dist/model/updateRulesInTrackingPlan200Response.js.map +1 -0
- package/dist/model/updateRulesInTrackingPlanV1Input.d.ts +15 -0
- package/dist/model/updateRulesInTrackingPlanV1Input.js +21 -0
- package/dist/model/updateRulesInTrackingPlanV1Input.js.map +1 -0
- package/dist/model/updateRulesInTrackingPlanV1Output.d.ts +19 -0
- package/dist/model/updateRulesInTrackingPlanV1Output.js +28 -0
- package/dist/model/updateRulesInTrackingPlanV1Output.js.map +1 -0
- package/dist/model/updateSchemaSettingsInSource200Response.d.ts +15 -0
- package/dist/model/updateSchemaSettingsInSource200Response.js +21 -0
- package/dist/model/updateSchemaSettingsInSource200Response.js.map +1 -0
- package/dist/model/updateSchemaSettingsInSourceV1Input.d.ts +21 -0
- package/dist/model/updateSchemaSettingsInSourceV1Input.js +41 -0
- package/dist/model/updateSchemaSettingsInSourceV1Input.js.map +1 -0
- package/dist/model/updateSchemaSettingsInSourceV1Output.d.ts +16 -0
- package/dist/model/updateSchemaSettingsInSourceV1Output.js +26 -0
- package/dist/model/updateSchemaSettingsInSourceV1Output.js.map +1 -0
- package/dist/model/updateSelectiveSyncForWarehouse200Response.d.ts +15 -0
- package/dist/model/updateSelectiveSyncForWarehouse200Response.js +21 -0
- package/dist/model/updateSelectiveSyncForWarehouse200Response.js.map +1 -0
- package/dist/model/updateSelectiveSyncForWarehouseV1Input.d.ts +15 -0
- package/dist/model/updateSelectiveSyncForWarehouseV1Input.js +21 -0
- package/dist/model/updateSelectiveSyncForWarehouseV1Input.js.map +1 -0
- package/dist/model/updateSelectiveSyncForWarehouseV1Output.d.ts +21 -0
- package/dist/model/updateSelectiveSyncForWarehouseV1Output.js +34 -0
- package/dist/model/updateSelectiveSyncForWarehouseV1Output.js.map +1 -0
- package/dist/model/updateSource200Response.d.ts +15 -0
- package/dist/model/updateSource200Response.js +21 -0
- package/dist/model/updateSource200Response.js.map +1 -0
- package/dist/model/updateSource200Response1.d.ts +15 -0
- package/dist/model/updateSource200Response1.js +21 -0
- package/dist/model/updateSource200Response1.js.map +1 -0
- package/dist/model/updateSourceAlphaInput.d.ts +17 -0
- package/dist/model/updateSourceAlphaInput.js +36 -0
- package/dist/model/updateSourceAlphaInput.js.map +1 -0
- package/dist/model/updateSourceAlphaOutput.d.ts +15 -0
- package/dist/model/updateSourceAlphaOutput.js +21 -0
- package/dist/model/updateSourceAlphaOutput.js.map +1 -0
- package/dist/model/updateSourceV1Input.d.ts +17 -0
- package/dist/model/updateSourceV1Input.js +36 -0
- package/dist/model/updateSourceV1Input.js.map +1 -0
- package/dist/model/updateSourceV1Output.d.ts +15 -0
- package/dist/model/updateSourceV1Output.js +21 -0
- package/dist/model/updateSourceV1Output.js.map +1 -0
- package/dist/model/updateSubscriptionForDestination200Response.d.ts +15 -0
- package/dist/model/updateSubscriptionForDestination200Response.js +21 -0
- package/dist/model/updateSubscriptionForDestination200Response.js.map +1 -0
- package/dist/model/updateSubscriptionForDestinationAlphaInput.d.ts +15 -0
- package/dist/model/updateSubscriptionForDestinationAlphaInput.js +21 -0
- package/dist/model/updateSubscriptionForDestinationAlphaInput.js.map +1 -0
- package/dist/model/updateSubscriptionForDestinationAlphaOutput.d.ts +15 -0
- package/dist/model/updateSubscriptionForDestinationAlphaOutput.js +21 -0
- package/dist/model/updateSubscriptionForDestinationAlphaOutput.js.map +1 -0
- package/dist/model/updateTrackingPlan200Response.d.ts +15 -0
- package/dist/model/updateTrackingPlan200Response.js +21 -0
- package/dist/model/updateTrackingPlan200Response.js.map +1 -0
- package/dist/model/updateTrackingPlanV1Input.d.ts +15 -0
- package/dist/model/updateTrackingPlanV1Input.js +26 -0
- package/dist/model/updateTrackingPlanV1Input.js.map +1 -0
- package/dist/model/updateTrackingPlanV1Output.d.ts +19 -0
- package/dist/model/updateTrackingPlanV1Output.js +28 -0
- package/dist/model/updateTrackingPlanV1Output.js.map +1 -0
- package/dist/model/updateTransformation200Response.d.ts +15 -0
- package/dist/model/updateTransformation200Response.js +21 -0
- package/dist/model/updateTransformation200Response.js.map +1 -0
- package/dist/model/updateTransformationBetaInput.d.ts +21 -0
- package/dist/model/updateTransformationBetaInput.js +51 -0
- package/dist/model/updateTransformationBetaInput.js.map +1 -0
- package/dist/model/updateTransformationBetaOutput.d.ts +15 -0
- package/dist/model/updateTransformationBetaOutput.js +21 -0
- package/dist/model/updateTransformationBetaOutput.js.map +1 -0
- package/dist/model/updateUserGroup200Response.d.ts +15 -0
- package/dist/model/updateUserGroup200Response.js +21 -0
- package/dist/model/updateUserGroup200Response.js.map +1 -0
- package/dist/model/updateUserGroupV1Input.d.ts +14 -0
- package/dist/model/updateUserGroupV1Input.js +21 -0
- package/dist/model/updateUserGroupV1Input.js.map +1 -0
- package/dist/model/updateUserGroupV1Output.d.ts +15 -0
- package/dist/model/updateUserGroupV1Output.js +21 -0
- package/dist/model/updateUserGroupV1Output.js.map +1 -0
- package/dist/model/updateWarehouse200Response.d.ts +15 -0
- package/dist/model/updateWarehouse200Response.js +21 -0
- package/dist/model/updateWarehouse200Response.js.map +1 -0
- package/dist/model/updateWarehouseV1Input.d.ts +16 -0
- package/dist/model/updateWarehouseV1Input.js +31 -0
- package/dist/model/updateWarehouseV1Input.js.map +1 -0
- package/dist/model/updateWarehouseV1Output.d.ts +15 -0
- package/dist/model/updateWarehouseV1Output.js +21 -0
- package/dist/model/updateWarehouseV1Output.js.map +1 -0
- package/dist/model/upsertRuleV1.d.ts +31 -0
- package/dist/model/upsertRuleV1.js +68 -0
- package/dist/model/upsertRuleV1.js.map +1 -0
- package/dist/model/user.d.ts +18 -0
- package/dist/model/user.js +36 -0
- package/dist/model/user.js.map +1 -0
- package/dist/model/userGroup.d.ts +18 -0
- package/dist/model/userGroup.js +36 -0
- package/dist/model/userGroup.js.map +1 -0
- package/dist/model/userGroup1.d.ts +18 -0
- package/dist/model/userGroup1.js +36 -0
- package/dist/model/userGroup1.js.map +1 -0
- package/dist/model/userGroup2.d.ts +18 -0
- package/dist/model/userGroup2.js +36 -0
- package/dist/model/userGroup2.js.map +1 -0
- package/dist/model/userGroup3.d.ts +18 -0
- package/dist/model/userGroup3.js +36 -0
- package/dist/model/userGroup3.js.map +1 -0
- package/dist/model/userGroupV1.d.ts +18 -0
- package/dist/model/userGroupV1.js +36 -0
- package/dist/model/userGroupV1.js.map +1 -0
- package/dist/model/userV1.d.ts +18 -0
- package/dist/model/userV1.js +36 -0
- package/dist/model/userV1.js.map +1 -0
- package/dist/model/usersPerSourceSnapshotV1.d.ts +21 -0
- package/dist/model/usersPerSourceSnapshotV1.js +56 -0
- package/dist/model/usersPerSourceSnapshotV1.js.map +1 -0
- package/dist/model/warehouse.d.ts +19 -0
- package/dist/model/warehouse.js +41 -0
- package/dist/model/warehouse.js.map +1 -0
- package/dist/model/warehouse1.d.ts +19 -0
- package/dist/model/warehouse1.js +41 -0
- package/dist/model/warehouse1.js.map +1 -0
- package/dist/model/warehouse2.d.ts +19 -0
- package/dist/model/warehouse2.js +41 -0
- package/dist/model/warehouse2.js.map +1 -0
- package/dist/model/warehouseAdvancedSyncV1.d.ts +15 -0
- package/dist/model/warehouseAdvancedSyncV1.js +26 -0
- package/dist/model/warehouseAdvancedSyncV1.js.map +1 -0
- package/dist/model/warehouseMetadata.d.ts +21 -0
- package/dist/model/warehouseMetadata.js +46 -0
- package/dist/model/warehouseMetadata.js.map +1 -0
- package/dist/model/warehouseMetadataV1.d.ts +21 -0
- package/dist/model/warehouseMetadataV1.js +46 -0
- package/dist/model/warehouseMetadataV1.js.map +1 -0
- package/dist/model/warehouseSelectiveSyncItemV1.d.ts +19 -0
- package/dist/model/warehouseSelectiveSyncItemV1.js +36 -0
- package/dist/model/warehouseSelectiveSyncItemV1.js.map +1 -0
- package/dist/model/warehouseSyncOverrideV1.d.ts +17 -0
- package/dist/model/warehouseSyncOverrideV1.js +36 -0
- package/dist/model/warehouseSyncOverrideV1.js.map +1 -0
- package/dist/model/warehouseV1.d.ts +19 -0
- package/dist/model/warehouseV1.js +41 -0
- package/dist/model/warehouseV1.js.map +1 -0
- package/dist/model/workspace.d.ts +16 -0
- package/dist/model/workspace.js +31 -0
- package/dist/model/workspace.js.map +1 -0
- package/dist/model/workspaceV1.d.ts +16 -0
- package/dist/model/workspaceV1.js +31 -0
- package/dist/model/workspaceV1.js.map +1 -0
- package/dist/tests/smoke.test.d.ts +1 -0
- package/dist/tests/smoke.test.js +337 -0
- package/dist/tests/smoke.test.js.map +1 -0
- package/jest.config.js +10 -0
- package/model/aPICallSnapshotV1.ts +50 -0
- package/model/accessPermissionV1.ts +60 -0
- package/model/addConnectionFromSourceToWarehouse200Response.ts +36 -0
- package/model/addConnectionFromSourceToWarehouseV1Output.ts +48 -0
- package/model/addLabelsToSource200Response.ts +36 -0
- package/model/addLabelsToSource200Response1.ts +36 -0
- package/model/addLabelsToSourceAlphaInput.ts +42 -0
- package/model/addLabelsToSourceAlphaOutput.ts +42 -0
- package/model/addLabelsToSourceV1Input.ts +42 -0
- package/model/addLabelsToSourceV1Output.ts +42 -0
- package/model/addPermissionsToUser200Response.ts +36 -0
- package/model/addPermissionsToUserGroup200Response.ts +36 -0
- package/model/addPermissionsToUserGroupV1Input.ts +42 -0
- package/model/addPermissionsToUserGroupV1Output.ts +42 -0
- package/model/addPermissionsToUserV1Input.ts +42 -0
- package/model/addPermissionsToUserV1Output.ts +42 -0
- package/model/addSourceToTrackingPlan200Response.ts +36 -0
- package/model/addSourceToTrackingPlanV1Input.ts +41 -0
- package/model/addSourceToTrackingPlanV1Output.ts +47 -0
- package/model/addUsersToUserGroup200Response.ts +36 -0
- package/model/addUsersToUserGroupV1Input.ts +41 -0
- package/model/addUsersToUserGroupV1Output.ts +39 -0
- package/model/advancedWarehouseSyncScheduleV1Input.ts +51 -0
- package/model/advancedWarehouseSyncScheduleV1Output.ts +51 -0
- package/model/allowedLabelBeta.ts +59 -0
- package/model/auditEventV1.ts +95 -0
- package/model/batchQueryMessagingSubscriptionsForSpace200Response.ts +36 -0
- package/model/batchQueryMessagingSubscriptionsForSpaceAlphaInput.ts +42 -0
- package/model/batchQueryMessagingSubscriptionsForSpaceAlphaOutput.ts +69 -0
- package/model/breakdownBeta.ts +50 -0
- package/model/commonSourceSettingsV1.ts +68 -0
- package/model/createCloudSourceRegulation200Response.ts +36 -0
- package/model/createCloudSourceRegulationV1Input.ts +82 -0
- package/model/createCloudSourceRegulationV1Output.ts +41 -0
- package/model/createDestination200Response.ts +36 -0
- package/model/createDestinationSubscription200Response.ts +36 -0
- package/model/createDestinationSubscriptionAlphaInput.ts +77 -0
- package/model/createDestinationSubscriptionAlphaOutput.ts +39 -0
- package/model/createDestinationV1Input.ts +77 -0
- package/model/createDestinationV1Output.ts +39 -0
- package/model/createEdgeFunctions200Response.ts +36 -0
- package/model/createEdgeFunctionsAlphaInput.ts +41 -0
- package/model/createEdgeFunctionsAlphaOutput.ts +39 -0
- package/model/createFilterForDestination200Response.ts +36 -0
- package/model/createFilterForDestinationV1Input.ts +87 -0
- package/model/createFilterForDestinationV1Output.ts +39 -0
- package/model/createFunction200Response.ts +36 -0
- package/model/createFunctionDeployment200Response.ts +36 -0
- package/model/createFunctionDeploymentV1Output.ts +39 -0
- package/model/createFunctionV1Input.ts +94 -0
- package/model/createFunctionV1Output.ts +39 -0
- package/model/createInvites200Response.ts +36 -0
- package/model/createInvitesV1Input.ts +42 -0
- package/model/createInvitesV1Output.ts +41 -0
- package/model/createLabel200Response.ts +36 -0
- package/model/createLabel200Response1.ts +36 -0
- package/model/createLabelAlphaInput.ts +39 -0
- package/model/createLabelAlphaOutput.ts +42 -0
- package/model/createLabelV1Input.ts +39 -0
- package/model/createLabelV1Output.ts +39 -0
- package/model/createSource200Response.ts +36 -0
- package/model/createSource200Response1.ts +36 -0
- package/model/createSourceAlphaInput.ts +77 -0
- package/model/createSourceAlphaOutput.ts +39 -0
- package/model/createSourceRegulation200Response.ts +36 -0
- package/model/createSourceRegulationV1Input.ts +73 -0
- package/model/createSourceRegulationV1Output.ts +41 -0
- package/model/createSourceV1Input.ts +68 -0
- package/model/createSourceV1Output.ts +39 -0
- package/model/createTrackingPlan200Response.ts +36 -0
- package/model/createTrackingPlanV1Input.ts +68 -0
- package/model/createTrackingPlanV1Output.ts +39 -0
- package/model/createTransformation200Response.ts +36 -0
- package/model/createTransformationBetaInput.ts +96 -0
- package/model/createTransformationBetaOutput.ts +39 -0
- package/model/createUserGroup200Response.ts +36 -0
- package/model/createUserGroupV1Input.ts +41 -0
- package/model/createUserGroupV1Output.ts +39 -0
- package/model/createValidationInWarehouse200Response.ts +36 -0
- package/model/createValidationInWarehouseV1Input.ts +50 -0
- package/model/createValidationInWarehouseV1Output.ts +48 -0
- package/model/createWarehouse200Response.ts +36 -0
- package/model/createWarehouseV1Input.ts +68 -0
- package/model/createWarehouseV1Output.ts +39 -0
- package/model/createWorkspaceRegulation200Response.ts +36 -0
- package/model/createWorkspaceRegulationV1Input.ts +74 -0
- package/model/createWorkspaceRegulationV1Output.ts +41 -0
- package/model/deleteDestination200Response.ts +36 -0
- package/model/deleteDestinationV1Output.ts +47 -0
- package/model/deleteFunction200Response.ts +36 -0
- package/model/deleteFunctionV1Output.ts +47 -0
- package/model/deleteInvites200Response.ts +36 -0
- package/model/deleteInvitesV1Output.ts +47 -0
- package/model/deleteLabel200Response.ts +36 -0
- package/model/deleteLabel200Response1.ts +36 -0
- package/model/deleteLabelAlphaOutput.ts +47 -0
- package/model/deleteLabelV1Output.ts +47 -0
- package/model/deleteRegulation200Response.ts +36 -0
- package/model/deleteRegulationV1Output.ts +47 -0
- package/model/deleteSource200Response.ts +36 -0
- package/model/deleteSource200Response1.ts +36 -0
- package/model/deleteSourceAlphaOutput.ts +47 -0
- package/model/deleteSourceV1Output.ts +47 -0
- package/model/deleteTrackingPlan200Response.ts +36 -0
- package/model/deleteTrackingPlanV1Output.ts +47 -0
- package/model/deleteTransformation200Response.ts +36 -0
- package/model/deleteTransformationBetaOutput.ts +47 -0
- package/model/deleteUserGroup200Response.ts +36 -0
- package/model/deleteUserGroupV1Output.ts +47 -0
- package/model/deleteUsers200Response.ts +36 -0
- package/model/deleteUsersV1Output.ts +47 -0
- package/model/deleteWarehouse200Response.ts +36 -0
- package/model/deleteWarehouseV1Output.ts +47 -0
- package/model/deliveryMetricsSummary.ts +60 -0
- package/model/deliveryMetricsSummaryBeta.ts +60 -0
- package/model/destination.ts +84 -0
- package/model/destination1.ts +84 -0
- package/model/destination2.ts +84 -0
- package/model/destinationFilterActionV1.ts +77 -0
- package/model/destinationFilterV1.ts +123 -0
- package/model/destinationMetadata.ts +184 -0
- package/model/destinationMetadataActionFieldV1.ts +163 -0
- package/model/destinationMetadataActionV1.ts +113 -0
- package/model/destinationMetadataComponentV1.ts +72 -0
- package/model/destinationMetadataFeaturesV1.ts +93 -0
- package/model/destinationMetadataMethodsV1.ts +77 -0
- package/model/destinationMetadataPlatformsV1.ts +59 -0
- package/model/destinationMetadataSubscriptionPresetV1.ts +68 -0
- package/model/destinationMetadataV1.ts +184 -0
- package/model/destinationStatusV1.ts +74 -0
- package/model/destinationSubscription.ts +104 -0
- package/model/destinationSubscriptionUpdateInput.ts +68 -0
- package/model/destinationV1.ts +84 -0
- package/model/disableEdgeFunctions200Response.ts +36 -0
- package/model/disableEdgeFunctionsAlphaOutput.ts +39 -0
- package/model/echo200Response.ts +36 -0
- package/model/echo200Response1.ts +36 -0
- package/model/echoAlphaOutput.ts +66 -0
- package/model/echoV1Output.ts +66 -0
- package/model/edgeFunctions.ts +86 -0
- package/model/edgeFunctions1.ts +86 -0
- package/model/edgeFunctionsAlpha.ts +86 -0
- package/model/eventSourceV1.ts +59 -0
- package/model/filter.ts +51 -0
- package/model/filter1.ts +123 -0
- package/model/filter2.ts +123 -0
- package/model/filter3.ts +123 -0
- package/model/function.ts +166 -0
- package/model/function1.ts +166 -0
- package/model/function2.ts +166 -0
- package/model/functionDeployment.ts +44 -0
- package/model/functionSettingV1.ts +92 -0
- package/model/functionV1.ts +166 -0
- package/model/generateUploadURLForEdgeFunctions200Response.ts +36 -0
- package/model/generateUploadURLForEdgeFunctionsAlphaOutput.ts +41 -0
- package/model/getAdvancedSyncScheduleFromWarehouse200Response.ts +36 -0
- package/model/getAdvancedSyncScheduleFromWarehouseV1Output.ts +48 -0
- package/model/getConnectionStateFromWarehouse200Response.ts +36 -0
- package/model/getConnectionStateFromWarehouseV1Output.ts +48 -0
- package/model/getDailyPerSourceAPICallsUsage200Response.ts +36 -0
- package/model/getDailyPerSourceAPICallsUsageV1Output.ts +49 -0
- package/model/getDailyPerSourceMTUUsage200Response.ts +36 -0
- package/model/getDailyPerSourceMTUUsageV1Output.ts +49 -0
- package/model/getDailyWorkspaceAPICallsUsage200Response.ts +36 -0
- package/model/getDailyWorkspaceAPICallsUsageV1Output.ts +49 -0
- package/model/getDailyWorkspaceMTUUsage200Response.ts +36 -0
- package/model/getDailyWorkspaceMTUUsageV1Output.ts +49 -0
- package/model/getDestination200Response.ts +36 -0
- package/model/getDestinationMetadata200Response.ts +36 -0
- package/model/getDestinationMetadataV1Output.ts +39 -0
- package/model/getDestinationV1Output.ts +39 -0
- package/model/getDestinationsCatalog200Response.ts +36 -0
- package/model/getDestinationsCatalogV1Output.ts +49 -0
- package/model/getEventsVolumeFromWorkspace200Response.ts +36 -0
- package/model/getEventsVolumeFromWorkspaceV1Output.ts +49 -0
- package/model/getFilterInDestination200Response.ts +36 -0
- package/model/getFilterInDestinationV1Output.ts +39 -0
- package/model/getFunction200Response.ts +36 -0
- package/model/getFunctionV1Output.ts +39 -0
- package/model/getLatestFromEdgeFunctions200Response.ts +36 -0
- package/model/getLatestFromEdgeFunctionsAlphaOutput.ts +39 -0
- package/model/getMessagingSubscriptionFailureResponse.ts +57 -0
- package/model/getMessagingSubscriptionSuccessResponse.ts +68 -0
- package/model/getRegulation200Response.ts +36 -0
- package/model/getRegulationV1Output.ts +39 -0
- package/model/getSource200Response.ts +36 -0
- package/model/getSource200Response1.ts +36 -0
- package/model/getSourceAlphaOutput.ts +39 -0
- package/model/getSourceMetadata200Response.ts +36 -0
- package/model/getSourceMetadataV1Output.ts +39 -0
- package/model/getSourceV1Output.ts +39 -0
- package/model/getSourcesCatalog200Response.ts +36 -0
- package/model/getSourcesCatalogV1Output.ts +49 -0
- package/model/getSpace200Response.ts +36 -0
- package/model/getSpaceAlphaOutput.ts +39 -0
- package/model/getSubscriptionFromDestination200Response.ts +36 -0
- package/model/getSubscriptionFromDestinationAlphaOutput.ts +39 -0
- package/model/getSubscriptionRequest.ts +54 -0
- package/model/getTrackingPlan200Response.ts +36 -0
- package/model/getTrackingPlanV1Output.ts +39 -0
- package/model/getTransformation200Response.ts +36 -0
- package/model/getTransformationBetaOutput.ts +39 -0
- package/model/getUser200Response.ts +36 -0
- package/model/getUserGroup200Response.ts +36 -0
- package/model/getUserGroupV1Output.ts +39 -0
- package/model/getUserV1Output.ts +39 -0
- package/model/getWarehouse200Response.ts +36 -0
- package/model/getWarehouseMetadata200Response.ts +36 -0
- package/model/getWarehouseMetadataV1Output.ts +39 -0
- package/model/getWarehouseV1Output.ts +39 -0
- package/model/getWarehousesCatalog200Response.ts +36 -0
- package/model/getWarehousesCatalogV1Output.ts +49 -0
- package/model/getWorkspace200Response.ts +36 -0
- package/model/getWorkspaceV1Output.ts +39 -0
- package/model/group.ts +67 -0
- package/model/groupSourceSettingsV1.ts +64 -0
- package/model/identify.ts +67 -0
- package/model/identifySourceSettingsV1.ts +64 -0
- package/model/input.ts +68 -0
- package/model/integrationOptionBeta.ts +86 -0
- package/model/invitePermissionV1.ts +61 -0
- package/model/inviteV1.ts +51 -0
- package/model/label.ts +59 -0
- package/model/label1.ts +59 -0
- package/model/label2.ts +59 -0
- package/model/labelAlpha.ts +59 -0
- package/model/labelV1.ts +59 -0
- package/model/listAuditEvents200Response.ts +36 -0
- package/model/listAuditEventsV1Output.ts +49 -0
- package/model/listConnectedDestinationsFromSource200Response.ts +36 -0
- package/model/listConnectedDestinationsFromSource200Response1.ts +36 -0
- package/model/listConnectedDestinationsFromSourceAlphaOutput.ts +49 -0
- package/model/listConnectedDestinationsFromSourceV1Output.ts +49 -0
- package/model/listConnectedSourcesFromWarehouse200Response.ts +36 -0
- package/model/listConnectedSourcesFromWarehouseV1Output.ts +49 -0
- package/model/listConnectedWarehousesFromSource200Response.ts +36 -0
- package/model/listConnectedWarehousesFromSource200Response1.ts +36 -0
- package/model/listConnectedWarehousesFromSourceAlphaOutput.ts +49 -0
- package/model/listConnectedWarehousesFromSourceV1Output.ts +49 -0
- package/model/listDeliveryMetricsSummaryFromDestination200Response.ts +36 -0
- package/model/listDeliveryMetricsSummaryFromDestinationBetaOutput.ts +39 -0
- package/model/listDestinations200Response.ts +36 -0
- package/model/listDestinationsV1Output.ts +49 -0
- package/model/listFiltersFromDestination200Response.ts +36 -0
- package/model/listFiltersFromDestinationV1Output.ts +49 -0
- package/model/listFunctionItemV1.ts +111 -0
- package/model/listFunctions200Response.ts +36 -0
- package/model/listFunctionsV1Output.ts +49 -0
- package/model/listInvites200Response.ts +36 -0
- package/model/listInvitesFromUserGroup200Response.ts +36 -0
- package/model/listInvitesFromUserGroupV1Output.ts +48 -0
- package/model/listInvitesV1Output.ts +48 -0
- package/model/listLabels200Response.ts +36 -0
- package/model/listLabels200Response1.ts +36 -0
- package/model/listLabelsAlphaOutput.ts +42 -0
- package/model/listLabelsV1Output.ts +42 -0
- package/model/listRegulationsFromSource200Response.ts +36 -0
- package/model/listRegulationsFromSourceV1Output.ts +42 -0
- package/model/listRoles200Response.ts +36 -0
- package/model/listRolesV1Output.ts +49 -0
- package/model/listRulesFromTrackingPlan200Response.ts +36 -0
- package/model/listRulesFromTrackingPlanV1Output.ts +49 -0
- package/model/listSchemaSettingsInSource200Response.ts +36 -0
- package/model/listSchemaSettingsInSourceV1Output.ts +48 -0
- package/model/listSelectiveSyncsFromWarehouseAndSource200Response.ts +36 -0
- package/model/listSelectiveSyncsFromWarehouseAndSourceV1Output.ts +49 -0
- package/model/listSources200Response.ts +36 -0
- package/model/listSources200Response1.ts +36 -0
- package/model/listSourcesAlphaOutput.ts +49 -0
- package/model/listSourcesFromTrackingPlan200Response.ts +36 -0
- package/model/listSourcesFromTrackingPlanV1Output.ts +49 -0
- package/model/listSourcesV1Output.ts +49 -0
- package/model/listSubscriptionsFromDestination200Response.ts +36 -0
- package/model/listSubscriptionsFromDestinationAlphaOutput.ts +49 -0
- package/model/listSuppressions200Response.ts +36 -0
- package/model/listSuppressionsV1Output.ts +49 -0
- package/model/listSyncsFromWarehouse200Response.ts +36 -0
- package/model/listSyncsFromWarehouseAndSource200Response.ts +36 -0
- package/model/listSyncsFromWarehouseAndSourceV1Output.ts +49 -0
- package/model/listSyncsFromWarehouseV1Output.ts +49 -0
- package/model/listTrackingPlans200Response.ts +36 -0
- package/model/listTrackingPlansV1Output.ts +49 -0
- package/model/listTransformations200Response.ts +36 -0
- package/model/listTransformationsBetaOutput.ts +49 -0
- package/model/listUserGroups200Response.ts +36 -0
- package/model/listUserGroupsFromUser200Response.ts +36 -0
- package/model/listUserGroupsFromUserV1Output.ts +49 -0
- package/model/listUserGroupsV1Output.ts +49 -0
- package/model/listUsers200Response.ts +36 -0
- package/model/listUsersFromUserGroup200Response.ts +36 -0
- package/model/listUsersFromUserGroupV1Output.ts +49 -0
- package/model/listUsersV1Output.ts +49 -0
- package/model/listWarehouses200Response.ts +36 -0
- package/model/listWarehousesV1Output.ts +49 -0
- package/model/listWorkspaceRegulations200Response.ts +36 -0
- package/model/listWorkspaceRegulationsV1Output.ts +49 -0
- package/model/logos.ts +59 -0
- package/model/logos1.ts +59 -0
- package/model/logos2.ts +59 -0
- package/model/logosBeta.ts +59 -0
- package/model/messageSubscriptionResponse.ts +78 -0
- package/model/messageSubscriptionResponseError.ts +47 -0
- package/model/messagesSubscriptionRequest.ts +68 -0
- package/model/metadata.ts +184 -0
- package/model/metadata1.ts +103 -0
- package/model/metadata2.ts +85 -0
- package/model/metricBeta.ts +60 -0
- package/model/minimalUserGroupV1.ts +50 -0
- package/model/minimalUserV1.ts +59 -0
- package/model/models.ts +1835 -0
- package/model/mtuSnapshotV1.ts +95 -0
- package/model/pagination.ts +68 -0
- package/model/paginationInput.ts +50 -0
- package/model/paginationOutput.ts +68 -0
- package/model/permissionInputV1.ts +51 -0
- package/model/permissionResourceV1.ts +70 -0
- package/model/permissionV1.ts +70 -0
- package/model/previewDestinationFilter200Response.ts +36 -0
- package/model/previewDestinationFilterV1.ts +51 -0
- package/model/previewDestinationFilterV1Input.ts +48 -0
- package/model/previewDestinationFilterV1Output.ts +50 -0
- package/model/propertyRenameBeta.ts +47 -0
- package/model/regulation.ts +99 -0
- package/model/regulationListEntryV1.ts +77 -0
- package/model/removeFilterFromDestination200Response.ts +36 -0
- package/model/removeFilterFromDestinationV1Output.ts +47 -0
- package/model/removeRuleV1.ts +61 -0
- package/model/removeRulesFromTrackingPlan200Response.ts +36 -0
- package/model/removeRulesFromTrackingPlanV1Output.ts +47 -0
- package/model/removeSourceConnectionFromWarehouse200Response.ts +36 -0
- package/model/removeSourceConnectionFromWarehouseV1Output.ts +47 -0
- package/model/removeSourceFromTrackingPlan200Response.ts +36 -0
- package/model/removeSourceFromTrackingPlanV1Output.ts +47 -0
- package/model/removeSubscriptionFromDestination200Response.ts +36 -0
- package/model/removeSubscriptionFromDestinationAlphaOutput.ts +47 -0
- package/model/removeUsersFromUserGroup200Response.ts +36 -0
- package/model/removeUsersFromUserGroupV1Output.ts +47 -0
- package/model/replaceAdvancedSyncScheduleForWarehouse200Response.ts +36 -0
- package/model/replaceAdvancedSyncScheduleForWarehouseV1Input.ts +48 -0
- package/model/replaceAdvancedSyncScheduleForWarehouseV1Output.ts +48 -0
- package/model/replaceLabelsInSource200Response.ts +36 -0
- package/model/replaceLabelsInSource200Response1.ts +36 -0
- package/model/replaceLabelsInSourceAlphaInput.ts +42 -0
- package/model/replaceLabelsInSourceAlphaOutput.ts +42 -0
- package/model/replaceLabelsInSourceV1Input.ts +42 -0
- package/model/replaceLabelsInSourceV1Output.ts +42 -0
- package/model/replaceMessagingSubscriptionsInSpaces200Response.ts +36 -0
- package/model/replaceMessagingSubscriptionsInSpacesAlphaInput.ts +42 -0
- package/model/replaceMessagingSubscriptionsInSpacesAlphaOutput.ts +58 -0
- package/model/replacePermissionsForUser200Response.ts +36 -0
- package/model/replacePermissionsForUserGroup200Response.ts +36 -0
- package/model/replacePermissionsForUserGroupV1Input.ts +42 -0
- package/model/replacePermissionsForUserGroupV1Output.ts +42 -0
- package/model/replacePermissionsForUserV1Input.ts +42 -0
- package/model/replacePermissionsForUserV1Output.ts +42 -0
- package/model/replaceRulesInTrackingPlan200Response.ts +36 -0
- package/model/replaceRulesInTrackingPlanV1Input.ts +42 -0
- package/model/replaceRulesInTrackingPlanV1Output.ts +47 -0
- package/model/replaceUsersInUserGroup200Response.ts +36 -0
- package/model/replaceUsersInUserGroupV1Input.ts +41 -0
- package/model/replaceUsersInUserGroupV1Output.ts +39 -0
- package/model/requestError.ts +77 -0
- package/model/requestErrorEnvelope.ts +39 -0
- package/model/resourceV1.ts +60 -0
- package/model/roleV1.ts +59 -0
- package/model/ruleV1.ts +106 -0
- package/model/schedule.ts +51 -0
- package/model/schedule1.ts +51 -0
- package/model/schedule2.ts +51 -0
- package/model/settings.ts +71 -0
- package/model/settings1.ts +71 -0
- package/model/source.ts +59 -0
- package/model/source1.ts +112 -0
- package/model/source2.ts +112 -0
- package/model/source3.ts +112 -0
- package/model/source4.ts +112 -0
- package/model/source5.ts +112 -0
- package/model/source6.ts +112 -0
- package/model/sourceAPICallSnapshotV1.ts +59 -0
- package/model/sourceAlpha.ts +112 -0
- package/model/sourceEventVolumeDatapointV1.ts +50 -0
- package/model/sourceEventVolumeV1.ts +76 -0
- package/model/sourceMetadata.ts +103 -0
- package/model/sourceMetadataV1.ts +103 -0
- package/model/sourceSettingsOutputV1.ts +71 -0
- package/model/sourceV1.ts +112 -0
- package/model/space.ts +50 -0
- package/model/streamStatusV1.ts +45 -0
- package/model/subscription.ts +104 -0
- package/model/supportedFeatures.ts +93 -0
- package/model/supportedMethods.ts +77 -0
- package/model/supportedPlatforms.ts +59 -0
- package/model/suppressedInner.ts +41 -0
- package/model/syncNoticeV1.ts +59 -0
- package/model/syncV1.ts +105 -0
- package/model/track.ts +85 -0
- package/model/trackSourceSettingsV1.ts +82 -0
- package/model/trackingPlan.ts +104 -0
- package/model/trackingPlan1.ts +104 -0
- package/model/trackingPlanV1.ts +104 -0
- package/model/transformation.ts +105 -0
- package/model/transformation1.ts +105 -0
- package/model/transformation2.ts +105 -0
- package/model/transformationBeta.ts +105 -0
- package/model/updateDestination200Response.ts +36 -0
- package/model/updateDestinationV1Input.ts +59 -0
- package/model/updateDestinationV1Output.ts +39 -0
- package/model/updateFilterForDestination200Response.ts +36 -0
- package/model/updateFilterForDestinationV1Input.ts +78 -0
- package/model/updateFilterForDestinationV1Output.ts +39 -0
- package/model/updateFunction200Response.ts +36 -0
- package/model/updateFunctionV1Input.ts +78 -0
- package/model/updateFunctionV1Output.ts +39 -0
- package/model/updateRulesInTrackingPlan200Response.ts +36 -0
- package/model/updateRulesInTrackingPlanV1Input.ts +42 -0
- package/model/updateRulesInTrackingPlanV1Output.ts +47 -0
- package/model/updateSchemaSettingsInSource200Response.ts +36 -0
- package/model/updateSchemaSettingsInSourceV1Input.ts +71 -0
- package/model/updateSchemaSettingsInSourceV1Output.ts +48 -0
- package/model/updateSelectiveSyncForWarehouse200Response.ts +36 -0
- package/model/updateSelectiveSyncForWarehouseV1Input.ts +42 -0
- package/model/updateSelectiveSyncForWarehouseV1Output.ts +57 -0
- package/model/updateSource200Response.ts +36 -0
- package/model/updateSource200Response1.ts +36 -0
- package/model/updateSourceAlphaInput.ts +68 -0
- package/model/updateSourceAlphaOutput.ts +39 -0
- package/model/updateSourceV1Input.ts +68 -0
- package/model/updateSourceV1Output.ts +39 -0
- package/model/updateSubscriptionForDestination200Response.ts +36 -0
- package/model/updateSubscriptionForDestinationAlphaInput.ts +39 -0
- package/model/updateSubscriptionForDestinationAlphaOutput.ts +39 -0
- package/model/updateTrackingPlan200Response.ts +36 -0
- package/model/updateTrackingPlanV1Input.ts +50 -0
- package/model/updateTrackingPlanV1Output.ts +47 -0
- package/model/updateTransformation200Response.ts +36 -0
- package/model/updateTransformationBetaInput.ts +96 -0
- package/model/updateTransformationBetaOutput.ts +39 -0
- package/model/updateUserGroup200Response.ts +36 -0
- package/model/updateUserGroupV1Input.ts +41 -0
- package/model/updateUserGroupV1Output.ts +39 -0
- package/model/updateWarehouse200Response.ts +36 -0
- package/model/updateWarehouseV1Input.ts +59 -0
- package/model/updateWarehouseV1Output.ts +39 -0
- package/model/upsertRuleV1.ts +112 -0
- package/model/user.ts +69 -0
- package/model/userGroup.ts +69 -0
- package/model/userGroup1.ts +69 -0
- package/model/userGroup2.ts +69 -0
- package/model/userGroup3.ts +69 -0
- package/model/userGroupV1.ts +69 -0
- package/model/userV1.ts +69 -0
- package/model/usersPerSourceSnapshotV1.ts +104 -0
- package/model/warehouse.ts +75 -0
- package/model/warehouse1.ts +75 -0
- package/model/warehouse2.ts +75 -0
- package/model/warehouseAdvancedSyncV1.ts +50 -0
- package/model/warehouseMetadata.ts +85 -0
- package/model/warehouseMetadataV1.ts +85 -0
- package/model/warehouseSelectiveSyncItemV1.ts +68 -0
- package/model/warehouseSyncOverrideV1.ts +68 -0
- package/model/warehouseV1.ts +75 -0
- package/model/workspace.ts +59 -0
- package/model/workspaceV1.ts +59 -0
- package/package.json +33 -0
- package/tests/__snapshots__/smoke.test.ts.snap +889 -0
- package/tests/smoke.test.ts +267 -0
- package/tsconfig.json +20 -0
|
@@ -0,0 +1,4486 @@
|
|
|
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: 32.0.1
|
|
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 { AddPermissionsToUser200Response } from '../model/addPermissionsToUser200Response';
|
|
18
|
+
import { AddPermissionsToUserV1Input } from '../model/addPermissionsToUserV1Input';
|
|
19
|
+
import { CreateInvites200Response } from '../model/createInvites200Response';
|
|
20
|
+
import { CreateInvitesV1Input } from '../model/createInvitesV1Input';
|
|
21
|
+
import { DeleteInvites200Response } from '../model/deleteInvites200Response';
|
|
22
|
+
import { DeleteUsers200Response } from '../model/deleteUsers200Response';
|
|
23
|
+
import { GetUser200Response } from '../model/getUser200Response';
|
|
24
|
+
import { ListInvites200Response } from '../model/listInvites200Response';
|
|
25
|
+
import { ListUserGroupsFromUser200Response } from '../model/listUserGroupsFromUser200Response';
|
|
26
|
+
import { ListUsers200Response } from '../model/listUsers200Response';
|
|
27
|
+
import { PaginationInput } from '../model/paginationInput';
|
|
28
|
+
import { ReplacePermissionsForUser200Response } from '../model/replacePermissionsForUser200Response';
|
|
29
|
+
import { ReplacePermissionsForUserV1Input } from '../model/replacePermissionsForUserV1Input';
|
|
30
|
+
import { RequestErrorEnvelope } from '../model/requestErrorEnvelope';
|
|
31
|
+
|
|
32
|
+
import {
|
|
33
|
+
ObjectSerializer,
|
|
34
|
+
Authentication,
|
|
35
|
+
VoidAuth,
|
|
36
|
+
Interceptor,
|
|
37
|
+
} from '../model/models';
|
|
38
|
+
import {
|
|
39
|
+
HttpBasicAuth,
|
|
40
|
+
HttpBearerAuth,
|
|
41
|
+
ApiKeyAuth,
|
|
42
|
+
OAuth,
|
|
43
|
+
} from '../model/models';
|
|
44
|
+
|
|
45
|
+
import { HttpError, RequestFile } from './apis';
|
|
46
|
+
|
|
47
|
+
let defaultBasePath = 'https://api.segmentapis.com';
|
|
48
|
+
|
|
49
|
+
// ===============================================
|
|
50
|
+
// This file is autogenerated - Please do not edit
|
|
51
|
+
// ===============================================
|
|
52
|
+
|
|
53
|
+
export enum IAMUsersApiApiKeys {}
|
|
54
|
+
|
|
55
|
+
export class IAMUsersApi {
|
|
56
|
+
protected _basePath = defaultBasePath;
|
|
57
|
+
protected _defaultHeaders: any = {};
|
|
58
|
+
protected _useQuerystring: boolean = false;
|
|
59
|
+
|
|
60
|
+
protected authentications = {
|
|
61
|
+
default: <Authentication>new VoidAuth(),
|
|
62
|
+
token: new HttpBearerAuth(),
|
|
63
|
+
};
|
|
64
|
+
|
|
65
|
+
protected interceptors: Interceptor[] = [];
|
|
66
|
+
|
|
67
|
+
constructor(basePath?: string);
|
|
68
|
+
constructor(
|
|
69
|
+
basePathOrUsername: string,
|
|
70
|
+
password?: string,
|
|
71
|
+
basePath?: string
|
|
72
|
+
) {
|
|
73
|
+
if (password) {
|
|
74
|
+
if (basePath) {
|
|
75
|
+
this.basePath = basePath;
|
|
76
|
+
}
|
|
77
|
+
} else {
|
|
78
|
+
if (basePathOrUsername) {
|
|
79
|
+
this.basePath = basePathOrUsername;
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
set useQuerystring(value: boolean) {
|
|
85
|
+
this._useQuerystring = value;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
set basePath(basePath: string) {
|
|
89
|
+
this._basePath = basePath;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
set defaultHeaders(defaultHeaders: any) {
|
|
93
|
+
this._defaultHeaders = defaultHeaders;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
get defaultHeaders() {
|
|
97
|
+
return this._defaultHeaders;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
get basePath() {
|
|
101
|
+
return this._basePath;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
public setDefaultAuthentication(auth: Authentication) {
|
|
105
|
+
this.authentications.default = auth;
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
public setApiKey(key: IAMUsersApiApiKeys, value: string) {
|
|
109
|
+
(this.authentications as any)[IAMUsersApiApiKeys[key]].apiKey = value;
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
set accessToken(accessToken: string | (() => string)) {
|
|
113
|
+
this.authentications.token.accessToken = accessToken;
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
public addInterceptor(interceptor: Interceptor) {
|
|
117
|
+
this.interceptors.push(interceptor);
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
/**
|
|
121
|
+
* Adds a list of access permissions to a user. When called, this endpoint may generate one or more of the following [Audit Trail](/tag/Audit-Trail) events: * Policy Created * User Policy Updated The rate limit for this endpoint is 60 requests per minute, which is lower than the default due to access pattern restrictions. Once reached, this endpoint will respond with the 429 HTTP status code with headers indicating the limit parameters. See [Rate Limiting](/#tag/Rate-Limits) for more information.
|
|
122
|
+
* @summary Add Permissions to User
|
|
123
|
+
* @param userId
|
|
124
|
+
* @param AddPermissionsToUserV1Input
|
|
125
|
+
*/
|
|
126
|
+
public async addPermissionsToUserAlpha(
|
|
127
|
+
userId: string,
|
|
128
|
+
AddPermissionsToUserV1Input: AddPermissionsToUserV1Input,
|
|
129
|
+
options: { headers: { [name: string]: string } } = { headers: {} }
|
|
130
|
+
): Promise<{
|
|
131
|
+
response: http.IncomingMessage;
|
|
132
|
+
body: AddPermissionsToUser200Response;
|
|
133
|
+
}> {
|
|
134
|
+
const localVarPath =
|
|
135
|
+
this.basePath +
|
|
136
|
+
'/users/{userId}/permissions'.replace(
|
|
137
|
+
'{' + 'userId' + '}',
|
|
138
|
+
encodeURIComponent(String(userId))
|
|
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
|
+
if (produces.indexOf('application/json') >= 0) {
|
|
150
|
+
localVarHeaderParams.Accept = produces[0];
|
|
151
|
+
} else {
|
|
152
|
+
localVarHeaderParams.Accept = 'application/json';
|
|
153
|
+
}
|
|
154
|
+
let localVarFormParams: any = {};
|
|
155
|
+
|
|
156
|
+
// verify required parameter 'userId' is not null or undefined
|
|
157
|
+
if (userId === null || userId === undefined) {
|
|
158
|
+
throw new Error(
|
|
159
|
+
'Required parameter userId was null or undefined when calling addPermissionsToUserAlpha.'
|
|
160
|
+
);
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
// verify required parameter 'AddPermissionsToUserV1Input' is not null or undefined
|
|
164
|
+
if (
|
|
165
|
+
AddPermissionsToUserV1Input === null ||
|
|
166
|
+
AddPermissionsToUserV1Input === undefined
|
|
167
|
+
) {
|
|
168
|
+
throw new Error(
|
|
169
|
+
'Required parameter AddPermissionsToUserV1Input was null or undefined when calling addPermissionsToUserAlpha.'
|
|
170
|
+
);
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
(<any>Object).assign(localVarHeaderParams, options.headers);
|
|
174
|
+
|
|
175
|
+
let localVarUseFormData = false;
|
|
176
|
+
|
|
177
|
+
let localVarRequestOptions: localVarRequest.Options = {
|
|
178
|
+
method: 'POST',
|
|
179
|
+
qs: localVarQueryParameters,
|
|
180
|
+
headers: localVarHeaderParams,
|
|
181
|
+
uri: localVarPath,
|
|
182
|
+
useQuerystring: this._useQuerystring,
|
|
183
|
+
json: true,
|
|
184
|
+
body: ObjectSerializer.serialize(
|
|
185
|
+
AddPermissionsToUserV1Input,
|
|
186
|
+
'AddPermissionsToUserV1Input'
|
|
187
|
+
),
|
|
188
|
+
};
|
|
189
|
+
|
|
190
|
+
let authenticationPromise = Promise.resolve();
|
|
191
|
+
if (this.authentications.token.accessToken) {
|
|
192
|
+
authenticationPromise = authenticationPromise.then(() =>
|
|
193
|
+
this.authentications.token.applyToRequest(
|
|
194
|
+
localVarRequestOptions
|
|
195
|
+
)
|
|
196
|
+
);
|
|
197
|
+
}
|
|
198
|
+
authenticationPromise = authenticationPromise.then(() =>
|
|
199
|
+
this.authentications.default.applyToRequest(localVarRequestOptions)
|
|
200
|
+
);
|
|
201
|
+
|
|
202
|
+
let interceptorPromise = authenticationPromise;
|
|
203
|
+
for (const interceptor of this.interceptors) {
|
|
204
|
+
interceptorPromise = interceptorPromise.then(() =>
|
|
205
|
+
interceptor(localVarRequestOptions)
|
|
206
|
+
);
|
|
207
|
+
}
|
|
208
|
+
|
|
209
|
+
return interceptorPromise.then(() => {
|
|
210
|
+
if (Object.keys(localVarFormParams).length) {
|
|
211
|
+
if (localVarUseFormData) {
|
|
212
|
+
(<any>localVarRequestOptions).formData = localVarFormParams;
|
|
213
|
+
} else {
|
|
214
|
+
localVarRequestOptions.form = localVarFormParams;
|
|
215
|
+
}
|
|
216
|
+
}
|
|
217
|
+
return new Promise<{
|
|
218
|
+
response: http.IncomingMessage;
|
|
219
|
+
body: AddPermissionsToUser200Response;
|
|
220
|
+
}>((resolve, reject) => {
|
|
221
|
+
localVarRequest(
|
|
222
|
+
localVarRequestOptions,
|
|
223
|
+
(error, response, body) => {
|
|
224
|
+
if (error) {
|
|
225
|
+
reject(error);
|
|
226
|
+
} else {
|
|
227
|
+
if (
|
|
228
|
+
response.statusCode &&
|
|
229
|
+
response.statusCode >= 200 &&
|
|
230
|
+
response.statusCode <= 299
|
|
231
|
+
) {
|
|
232
|
+
body = ObjectSerializer.deserialize(
|
|
233
|
+
body,
|
|
234
|
+
'AddPermissionsToUser200Response'
|
|
235
|
+
);
|
|
236
|
+
resolve({ response: response, body: body });
|
|
237
|
+
} else {
|
|
238
|
+
reject(
|
|
239
|
+
new HttpError(
|
|
240
|
+
response,
|
|
241
|
+
body,
|
|
242
|
+
response.statusCode
|
|
243
|
+
)
|
|
244
|
+
);
|
|
245
|
+
}
|
|
246
|
+
}
|
|
247
|
+
}
|
|
248
|
+
);
|
|
249
|
+
});
|
|
250
|
+
});
|
|
251
|
+
}
|
|
252
|
+
/**
|
|
253
|
+
* Adds a list of access permissions to a user. When called, this endpoint may generate one or more of the following [Audit Trail](/tag/Audit-Trail) events: * Policy Created * User Policy Updated The rate limit for this endpoint is 60 requests per minute, which is lower than the default due to access pattern restrictions. Once reached, this endpoint will respond with the 429 HTTP status code with headers indicating the limit parameters. See [Rate Limiting](/#tag/Rate-Limits) for more information.
|
|
254
|
+
* @summary Add Permissions to User
|
|
255
|
+
* @param userId
|
|
256
|
+
* @param AddPermissionsToUserV1Input
|
|
257
|
+
*/
|
|
258
|
+
public async addPermissionsToUserBeta(
|
|
259
|
+
userId: string,
|
|
260
|
+
AddPermissionsToUserV1Input: AddPermissionsToUserV1Input,
|
|
261
|
+
options: { headers: { [name: string]: string } } = { headers: {} }
|
|
262
|
+
): Promise<{
|
|
263
|
+
response: http.IncomingMessage;
|
|
264
|
+
body: AddPermissionsToUser200Response;
|
|
265
|
+
}> {
|
|
266
|
+
const localVarPath =
|
|
267
|
+
this.basePath +
|
|
268
|
+
'/users/{userId}/permissions'.replace(
|
|
269
|
+
'{' + 'userId' + '}',
|
|
270
|
+
encodeURIComponent(String(userId))
|
|
271
|
+
);
|
|
272
|
+
let localVarQueryParameters: any = {};
|
|
273
|
+
let localVarHeaderParams: any = (<any>Object).assign(
|
|
274
|
+
{},
|
|
275
|
+
this._defaultHeaders
|
|
276
|
+
);
|
|
277
|
+
const produces = [
|
|
278
|
+
'application/vnd.segment.v1beta+json',
|
|
279
|
+
'application/json',
|
|
280
|
+
];
|
|
281
|
+
if (produces.indexOf('application/json') >= 0) {
|
|
282
|
+
localVarHeaderParams.Accept = produces[0];
|
|
283
|
+
} else {
|
|
284
|
+
localVarHeaderParams.Accept = 'application/json';
|
|
285
|
+
}
|
|
286
|
+
let localVarFormParams: any = {};
|
|
287
|
+
|
|
288
|
+
// verify required parameter 'userId' is not null or undefined
|
|
289
|
+
if (userId === null || userId === undefined) {
|
|
290
|
+
throw new Error(
|
|
291
|
+
'Required parameter userId was null or undefined when calling addPermissionsToUserBeta.'
|
|
292
|
+
);
|
|
293
|
+
}
|
|
294
|
+
|
|
295
|
+
// verify required parameter 'AddPermissionsToUserV1Input' is not null or undefined
|
|
296
|
+
if (
|
|
297
|
+
AddPermissionsToUserV1Input === null ||
|
|
298
|
+
AddPermissionsToUserV1Input === undefined
|
|
299
|
+
) {
|
|
300
|
+
throw new Error(
|
|
301
|
+
'Required parameter AddPermissionsToUserV1Input was null or undefined when calling addPermissionsToUserBeta.'
|
|
302
|
+
);
|
|
303
|
+
}
|
|
304
|
+
|
|
305
|
+
(<any>Object).assign(localVarHeaderParams, options.headers);
|
|
306
|
+
|
|
307
|
+
let localVarUseFormData = false;
|
|
308
|
+
|
|
309
|
+
let localVarRequestOptions: localVarRequest.Options = {
|
|
310
|
+
method: 'POST',
|
|
311
|
+
qs: localVarQueryParameters,
|
|
312
|
+
headers: localVarHeaderParams,
|
|
313
|
+
uri: localVarPath,
|
|
314
|
+
useQuerystring: this._useQuerystring,
|
|
315
|
+
json: true,
|
|
316
|
+
body: ObjectSerializer.serialize(
|
|
317
|
+
AddPermissionsToUserV1Input,
|
|
318
|
+
'AddPermissionsToUserV1Input'
|
|
319
|
+
),
|
|
320
|
+
};
|
|
321
|
+
|
|
322
|
+
let authenticationPromise = Promise.resolve();
|
|
323
|
+
if (this.authentications.token.accessToken) {
|
|
324
|
+
authenticationPromise = authenticationPromise.then(() =>
|
|
325
|
+
this.authentications.token.applyToRequest(
|
|
326
|
+
localVarRequestOptions
|
|
327
|
+
)
|
|
328
|
+
);
|
|
329
|
+
}
|
|
330
|
+
authenticationPromise = authenticationPromise.then(() =>
|
|
331
|
+
this.authentications.default.applyToRequest(localVarRequestOptions)
|
|
332
|
+
);
|
|
333
|
+
|
|
334
|
+
let interceptorPromise = authenticationPromise;
|
|
335
|
+
for (const interceptor of this.interceptors) {
|
|
336
|
+
interceptorPromise = interceptorPromise.then(() =>
|
|
337
|
+
interceptor(localVarRequestOptions)
|
|
338
|
+
);
|
|
339
|
+
}
|
|
340
|
+
|
|
341
|
+
return interceptorPromise.then(() => {
|
|
342
|
+
if (Object.keys(localVarFormParams).length) {
|
|
343
|
+
if (localVarUseFormData) {
|
|
344
|
+
(<any>localVarRequestOptions).formData = localVarFormParams;
|
|
345
|
+
} else {
|
|
346
|
+
localVarRequestOptions.form = localVarFormParams;
|
|
347
|
+
}
|
|
348
|
+
}
|
|
349
|
+
return new Promise<{
|
|
350
|
+
response: http.IncomingMessage;
|
|
351
|
+
body: AddPermissionsToUser200Response;
|
|
352
|
+
}>((resolve, reject) => {
|
|
353
|
+
localVarRequest(
|
|
354
|
+
localVarRequestOptions,
|
|
355
|
+
(error, response, body) => {
|
|
356
|
+
if (error) {
|
|
357
|
+
reject(error);
|
|
358
|
+
} else {
|
|
359
|
+
if (
|
|
360
|
+
response.statusCode &&
|
|
361
|
+
response.statusCode >= 200 &&
|
|
362
|
+
response.statusCode <= 299
|
|
363
|
+
) {
|
|
364
|
+
body = ObjectSerializer.deserialize(
|
|
365
|
+
body,
|
|
366
|
+
'AddPermissionsToUser200Response'
|
|
367
|
+
);
|
|
368
|
+
resolve({ response: response, body: body });
|
|
369
|
+
} else {
|
|
370
|
+
reject(
|
|
371
|
+
new HttpError(
|
|
372
|
+
response,
|
|
373
|
+
body,
|
|
374
|
+
response.statusCode
|
|
375
|
+
)
|
|
376
|
+
);
|
|
377
|
+
}
|
|
378
|
+
}
|
|
379
|
+
}
|
|
380
|
+
);
|
|
381
|
+
});
|
|
382
|
+
});
|
|
383
|
+
}
|
|
384
|
+
/**
|
|
385
|
+
* Adds a list of access permissions to a user. When called, this endpoint may generate one or more of the following [Audit Trail](/tag/Audit-Trail) events: * Policy Created * User Policy Updated The rate limit for this endpoint is 60 requests per minute, which is lower than the default due to access pattern restrictions. Once reached, this endpoint will respond with the 429 HTTP status code with headers indicating the limit parameters. See [Rate Limiting](/#tag/Rate-Limits) for more information.
|
|
386
|
+
* @summary Add Permissions to User
|
|
387
|
+
* @param userId
|
|
388
|
+
* @param AddPermissionsToUserV1Input
|
|
389
|
+
*/
|
|
390
|
+
public async addPermissionsToUserCurrent(
|
|
391
|
+
userId: string,
|
|
392
|
+
AddPermissionsToUserV1Input: AddPermissionsToUserV1Input,
|
|
393
|
+
options: { headers: { [name: string]: string } } = { headers: {} }
|
|
394
|
+
): Promise<{
|
|
395
|
+
response: http.IncomingMessage;
|
|
396
|
+
body: AddPermissionsToUser200Response;
|
|
397
|
+
}> {
|
|
398
|
+
const localVarPath =
|
|
399
|
+
this.basePath +
|
|
400
|
+
'/users/{userId}/permissions'.replace(
|
|
401
|
+
'{' + 'userId' + '}',
|
|
402
|
+
encodeURIComponent(String(userId))
|
|
403
|
+
);
|
|
404
|
+
let localVarQueryParameters: any = {};
|
|
405
|
+
let localVarHeaderParams: any = (<any>Object).assign(
|
|
406
|
+
{},
|
|
407
|
+
this._defaultHeaders
|
|
408
|
+
);
|
|
409
|
+
const produces = [
|
|
410
|
+
'application/vnd.segment.v1+json',
|
|
411
|
+
'application/json',
|
|
412
|
+
];
|
|
413
|
+
if (produces.indexOf('application/json') >= 0) {
|
|
414
|
+
localVarHeaderParams.Accept = produces[0];
|
|
415
|
+
} else {
|
|
416
|
+
localVarHeaderParams.Accept = 'application/json';
|
|
417
|
+
}
|
|
418
|
+
let localVarFormParams: any = {};
|
|
419
|
+
|
|
420
|
+
// verify required parameter 'userId' is not null or undefined
|
|
421
|
+
if (userId === null || userId === undefined) {
|
|
422
|
+
throw new Error(
|
|
423
|
+
'Required parameter userId was null or undefined when calling addPermissionsToUserCurrent.'
|
|
424
|
+
);
|
|
425
|
+
}
|
|
426
|
+
|
|
427
|
+
// verify required parameter 'AddPermissionsToUserV1Input' is not null or undefined
|
|
428
|
+
if (
|
|
429
|
+
AddPermissionsToUserV1Input === null ||
|
|
430
|
+
AddPermissionsToUserV1Input === undefined
|
|
431
|
+
) {
|
|
432
|
+
throw new Error(
|
|
433
|
+
'Required parameter AddPermissionsToUserV1Input was null or undefined when calling addPermissionsToUserCurrent.'
|
|
434
|
+
);
|
|
435
|
+
}
|
|
436
|
+
|
|
437
|
+
(<any>Object).assign(localVarHeaderParams, options.headers);
|
|
438
|
+
|
|
439
|
+
let localVarUseFormData = false;
|
|
440
|
+
|
|
441
|
+
let localVarRequestOptions: localVarRequest.Options = {
|
|
442
|
+
method: 'POST',
|
|
443
|
+
qs: localVarQueryParameters,
|
|
444
|
+
headers: localVarHeaderParams,
|
|
445
|
+
uri: localVarPath,
|
|
446
|
+
useQuerystring: this._useQuerystring,
|
|
447
|
+
json: true,
|
|
448
|
+
body: ObjectSerializer.serialize(
|
|
449
|
+
AddPermissionsToUserV1Input,
|
|
450
|
+
'AddPermissionsToUserV1Input'
|
|
451
|
+
),
|
|
452
|
+
};
|
|
453
|
+
|
|
454
|
+
let authenticationPromise = Promise.resolve();
|
|
455
|
+
if (this.authentications.token.accessToken) {
|
|
456
|
+
authenticationPromise = authenticationPromise.then(() =>
|
|
457
|
+
this.authentications.token.applyToRequest(
|
|
458
|
+
localVarRequestOptions
|
|
459
|
+
)
|
|
460
|
+
);
|
|
461
|
+
}
|
|
462
|
+
authenticationPromise = authenticationPromise.then(() =>
|
|
463
|
+
this.authentications.default.applyToRequest(localVarRequestOptions)
|
|
464
|
+
);
|
|
465
|
+
|
|
466
|
+
let interceptorPromise = authenticationPromise;
|
|
467
|
+
for (const interceptor of this.interceptors) {
|
|
468
|
+
interceptorPromise = interceptorPromise.then(() =>
|
|
469
|
+
interceptor(localVarRequestOptions)
|
|
470
|
+
);
|
|
471
|
+
}
|
|
472
|
+
|
|
473
|
+
return interceptorPromise.then(() => {
|
|
474
|
+
if (Object.keys(localVarFormParams).length) {
|
|
475
|
+
if (localVarUseFormData) {
|
|
476
|
+
(<any>localVarRequestOptions).formData = localVarFormParams;
|
|
477
|
+
} else {
|
|
478
|
+
localVarRequestOptions.form = localVarFormParams;
|
|
479
|
+
}
|
|
480
|
+
}
|
|
481
|
+
return new Promise<{
|
|
482
|
+
response: http.IncomingMessage;
|
|
483
|
+
body: AddPermissionsToUser200Response;
|
|
484
|
+
}>((resolve, reject) => {
|
|
485
|
+
localVarRequest(
|
|
486
|
+
localVarRequestOptions,
|
|
487
|
+
(error, response, body) => {
|
|
488
|
+
if (error) {
|
|
489
|
+
reject(error);
|
|
490
|
+
} else {
|
|
491
|
+
if (
|
|
492
|
+
response.statusCode &&
|
|
493
|
+
response.statusCode >= 200 &&
|
|
494
|
+
response.statusCode <= 299
|
|
495
|
+
) {
|
|
496
|
+
body = ObjectSerializer.deserialize(
|
|
497
|
+
body,
|
|
498
|
+
'AddPermissionsToUser200Response'
|
|
499
|
+
);
|
|
500
|
+
resolve({ response: response, body: body });
|
|
501
|
+
} else {
|
|
502
|
+
reject(
|
|
503
|
+
new HttpError(
|
|
504
|
+
response,
|
|
505
|
+
body,
|
|
506
|
+
response.statusCode
|
|
507
|
+
)
|
|
508
|
+
);
|
|
509
|
+
}
|
|
510
|
+
}
|
|
511
|
+
}
|
|
512
|
+
);
|
|
513
|
+
});
|
|
514
|
+
});
|
|
515
|
+
}
|
|
516
|
+
/**
|
|
517
|
+
* Adds a list of access permissions to a user. When called, this endpoint may generate one or more of the following [Audit Trail](/tag/Audit-Trail) events: * Policy Created * User Policy Updated The rate limit for this endpoint is 60 requests per minute, which is lower than the default due to access pattern restrictions. Once reached, this endpoint will respond with the 429 HTTP status code with headers indicating the limit parameters. See [Rate Limiting](/#tag/Rate-Limits) for more information.
|
|
518
|
+
* @summary Add Permissions to User
|
|
519
|
+
* @param userId
|
|
520
|
+
* @param AddPermissionsToUserV1Input
|
|
521
|
+
*/
|
|
522
|
+
public async addPermissionsToUserV1(
|
|
523
|
+
userId: string,
|
|
524
|
+
AddPermissionsToUserV1Input: AddPermissionsToUserV1Input,
|
|
525
|
+
options: { headers: { [name: string]: string } } = { headers: {} }
|
|
526
|
+
): Promise<{
|
|
527
|
+
response: http.IncomingMessage;
|
|
528
|
+
body: AddPermissionsToUser200Response;
|
|
529
|
+
}> {
|
|
530
|
+
const localVarPath =
|
|
531
|
+
this.basePath +
|
|
532
|
+
'/users/{userId}/permissions'.replace(
|
|
533
|
+
'{' + 'userId' + '}',
|
|
534
|
+
encodeURIComponent(String(userId))
|
|
535
|
+
);
|
|
536
|
+
let localVarQueryParameters: any = {};
|
|
537
|
+
let localVarHeaderParams: any = (<any>Object).assign(
|
|
538
|
+
{},
|
|
539
|
+
this._defaultHeaders
|
|
540
|
+
);
|
|
541
|
+
const produces = [
|
|
542
|
+
'application/vnd.segment.v1+json',
|
|
543
|
+
'application/json',
|
|
544
|
+
];
|
|
545
|
+
if (produces.indexOf('application/json') >= 0) {
|
|
546
|
+
localVarHeaderParams.Accept = produces[0];
|
|
547
|
+
} else {
|
|
548
|
+
localVarHeaderParams.Accept = 'application/json';
|
|
549
|
+
}
|
|
550
|
+
let localVarFormParams: any = {};
|
|
551
|
+
|
|
552
|
+
// verify required parameter 'userId' is not null or undefined
|
|
553
|
+
if (userId === null || userId === undefined) {
|
|
554
|
+
throw new Error(
|
|
555
|
+
'Required parameter userId was null or undefined when calling addPermissionsToUserV1.'
|
|
556
|
+
);
|
|
557
|
+
}
|
|
558
|
+
|
|
559
|
+
// verify required parameter 'AddPermissionsToUserV1Input' is not null or undefined
|
|
560
|
+
if (
|
|
561
|
+
AddPermissionsToUserV1Input === null ||
|
|
562
|
+
AddPermissionsToUserV1Input === undefined
|
|
563
|
+
) {
|
|
564
|
+
throw new Error(
|
|
565
|
+
'Required parameter AddPermissionsToUserV1Input was null or undefined when calling addPermissionsToUserV1.'
|
|
566
|
+
);
|
|
567
|
+
}
|
|
568
|
+
|
|
569
|
+
(<any>Object).assign(localVarHeaderParams, options.headers);
|
|
570
|
+
|
|
571
|
+
let localVarUseFormData = false;
|
|
572
|
+
|
|
573
|
+
let localVarRequestOptions: localVarRequest.Options = {
|
|
574
|
+
method: 'POST',
|
|
575
|
+
qs: localVarQueryParameters,
|
|
576
|
+
headers: localVarHeaderParams,
|
|
577
|
+
uri: localVarPath,
|
|
578
|
+
useQuerystring: this._useQuerystring,
|
|
579
|
+
json: true,
|
|
580
|
+
body: ObjectSerializer.serialize(
|
|
581
|
+
AddPermissionsToUserV1Input,
|
|
582
|
+
'AddPermissionsToUserV1Input'
|
|
583
|
+
),
|
|
584
|
+
};
|
|
585
|
+
|
|
586
|
+
let authenticationPromise = Promise.resolve();
|
|
587
|
+
if (this.authentications.token.accessToken) {
|
|
588
|
+
authenticationPromise = authenticationPromise.then(() =>
|
|
589
|
+
this.authentications.token.applyToRequest(
|
|
590
|
+
localVarRequestOptions
|
|
591
|
+
)
|
|
592
|
+
);
|
|
593
|
+
}
|
|
594
|
+
authenticationPromise = authenticationPromise.then(() =>
|
|
595
|
+
this.authentications.default.applyToRequest(localVarRequestOptions)
|
|
596
|
+
);
|
|
597
|
+
|
|
598
|
+
let interceptorPromise = authenticationPromise;
|
|
599
|
+
for (const interceptor of this.interceptors) {
|
|
600
|
+
interceptorPromise = interceptorPromise.then(() =>
|
|
601
|
+
interceptor(localVarRequestOptions)
|
|
602
|
+
);
|
|
603
|
+
}
|
|
604
|
+
|
|
605
|
+
return interceptorPromise.then(() => {
|
|
606
|
+
if (Object.keys(localVarFormParams).length) {
|
|
607
|
+
if (localVarUseFormData) {
|
|
608
|
+
(<any>localVarRequestOptions).formData = localVarFormParams;
|
|
609
|
+
} else {
|
|
610
|
+
localVarRequestOptions.form = localVarFormParams;
|
|
611
|
+
}
|
|
612
|
+
}
|
|
613
|
+
return new Promise<{
|
|
614
|
+
response: http.IncomingMessage;
|
|
615
|
+
body: AddPermissionsToUser200Response;
|
|
616
|
+
}>((resolve, reject) => {
|
|
617
|
+
localVarRequest(
|
|
618
|
+
localVarRequestOptions,
|
|
619
|
+
(error, response, body) => {
|
|
620
|
+
if (error) {
|
|
621
|
+
reject(error);
|
|
622
|
+
} else {
|
|
623
|
+
if (
|
|
624
|
+
response.statusCode &&
|
|
625
|
+
response.statusCode >= 200 &&
|
|
626
|
+
response.statusCode <= 299
|
|
627
|
+
) {
|
|
628
|
+
body = ObjectSerializer.deserialize(
|
|
629
|
+
body,
|
|
630
|
+
'AddPermissionsToUser200Response'
|
|
631
|
+
);
|
|
632
|
+
resolve({ response: response, body: body });
|
|
633
|
+
} else {
|
|
634
|
+
reject(
|
|
635
|
+
new HttpError(
|
|
636
|
+
response,
|
|
637
|
+
body,
|
|
638
|
+
response.statusCode
|
|
639
|
+
)
|
|
640
|
+
);
|
|
641
|
+
}
|
|
642
|
+
}
|
|
643
|
+
}
|
|
644
|
+
);
|
|
645
|
+
});
|
|
646
|
+
});
|
|
647
|
+
}
|
|
648
|
+
/**
|
|
649
|
+
* Invites a list of users to join a Workspace. When called, this endpoint may generate one or more of the following [Audit Trail](/tag/Audit-Trail) events: * Non-Segment User Invited to Workspace * Policy Created * New Segment User Invited to Workspace Config API omitted fields: - `parent` The rate limit for this endpoint is 60 requests per minute, which is lower than the default due to access pattern restrictions. Once reached, this endpoint will respond with the 429 HTTP status code with headers indicating the limit parameters. See [Rate Limiting](/#tag/Rate-Limits) for more information.
|
|
650
|
+
* @summary Create Invites
|
|
651
|
+
* @param CreateInvitesV1Input
|
|
652
|
+
*/
|
|
653
|
+
public async createInvitesAlpha(
|
|
654
|
+
CreateInvitesV1Input: CreateInvitesV1Input,
|
|
655
|
+
options: { headers: { [name: string]: string } } = { headers: {} }
|
|
656
|
+
): Promise<{
|
|
657
|
+
response: http.IncomingMessage;
|
|
658
|
+
body: CreateInvites200Response;
|
|
659
|
+
}> {
|
|
660
|
+
const localVarPath = this.basePath + '/invites';
|
|
661
|
+
let localVarQueryParameters: any = {};
|
|
662
|
+
let localVarHeaderParams: any = (<any>Object).assign(
|
|
663
|
+
{},
|
|
664
|
+
this._defaultHeaders
|
|
665
|
+
);
|
|
666
|
+
const produces = [
|
|
667
|
+
'application/vnd.segment.v1alpha+json',
|
|
668
|
+
'application/json',
|
|
669
|
+
];
|
|
670
|
+
if (produces.indexOf('application/json') >= 0) {
|
|
671
|
+
localVarHeaderParams.Accept = produces[0];
|
|
672
|
+
} else {
|
|
673
|
+
localVarHeaderParams.Accept = 'application/json';
|
|
674
|
+
}
|
|
675
|
+
let localVarFormParams: any = {};
|
|
676
|
+
|
|
677
|
+
// verify required parameter 'CreateInvitesV1Input' is not null or undefined
|
|
678
|
+
if (
|
|
679
|
+
CreateInvitesV1Input === null ||
|
|
680
|
+
CreateInvitesV1Input === undefined
|
|
681
|
+
) {
|
|
682
|
+
throw new Error(
|
|
683
|
+
'Required parameter CreateInvitesV1Input was null or undefined when calling createInvitesAlpha.'
|
|
684
|
+
);
|
|
685
|
+
}
|
|
686
|
+
|
|
687
|
+
(<any>Object).assign(localVarHeaderParams, options.headers);
|
|
688
|
+
|
|
689
|
+
let localVarUseFormData = false;
|
|
690
|
+
|
|
691
|
+
let localVarRequestOptions: localVarRequest.Options = {
|
|
692
|
+
method: 'POST',
|
|
693
|
+
qs: localVarQueryParameters,
|
|
694
|
+
headers: localVarHeaderParams,
|
|
695
|
+
uri: localVarPath,
|
|
696
|
+
useQuerystring: this._useQuerystring,
|
|
697
|
+
json: true,
|
|
698
|
+
body: ObjectSerializer.serialize(
|
|
699
|
+
CreateInvitesV1Input,
|
|
700
|
+
'CreateInvitesV1Input'
|
|
701
|
+
),
|
|
702
|
+
};
|
|
703
|
+
|
|
704
|
+
let authenticationPromise = Promise.resolve();
|
|
705
|
+
if (this.authentications.token.accessToken) {
|
|
706
|
+
authenticationPromise = authenticationPromise.then(() =>
|
|
707
|
+
this.authentications.token.applyToRequest(
|
|
708
|
+
localVarRequestOptions
|
|
709
|
+
)
|
|
710
|
+
);
|
|
711
|
+
}
|
|
712
|
+
authenticationPromise = authenticationPromise.then(() =>
|
|
713
|
+
this.authentications.default.applyToRequest(localVarRequestOptions)
|
|
714
|
+
);
|
|
715
|
+
|
|
716
|
+
let interceptorPromise = authenticationPromise;
|
|
717
|
+
for (const interceptor of this.interceptors) {
|
|
718
|
+
interceptorPromise = interceptorPromise.then(() =>
|
|
719
|
+
interceptor(localVarRequestOptions)
|
|
720
|
+
);
|
|
721
|
+
}
|
|
722
|
+
|
|
723
|
+
return interceptorPromise.then(() => {
|
|
724
|
+
if (Object.keys(localVarFormParams).length) {
|
|
725
|
+
if (localVarUseFormData) {
|
|
726
|
+
(<any>localVarRequestOptions).formData = localVarFormParams;
|
|
727
|
+
} else {
|
|
728
|
+
localVarRequestOptions.form = localVarFormParams;
|
|
729
|
+
}
|
|
730
|
+
}
|
|
731
|
+
return new Promise<{
|
|
732
|
+
response: http.IncomingMessage;
|
|
733
|
+
body: CreateInvites200Response;
|
|
734
|
+
}>((resolve, reject) => {
|
|
735
|
+
localVarRequest(
|
|
736
|
+
localVarRequestOptions,
|
|
737
|
+
(error, response, body) => {
|
|
738
|
+
if (error) {
|
|
739
|
+
reject(error);
|
|
740
|
+
} else {
|
|
741
|
+
if (
|
|
742
|
+
response.statusCode &&
|
|
743
|
+
response.statusCode >= 200 &&
|
|
744
|
+
response.statusCode <= 299
|
|
745
|
+
) {
|
|
746
|
+
body = ObjectSerializer.deserialize(
|
|
747
|
+
body,
|
|
748
|
+
'CreateInvites200Response'
|
|
749
|
+
);
|
|
750
|
+
resolve({ response: response, body: body });
|
|
751
|
+
} else {
|
|
752
|
+
reject(
|
|
753
|
+
new HttpError(
|
|
754
|
+
response,
|
|
755
|
+
body,
|
|
756
|
+
response.statusCode
|
|
757
|
+
)
|
|
758
|
+
);
|
|
759
|
+
}
|
|
760
|
+
}
|
|
761
|
+
}
|
|
762
|
+
);
|
|
763
|
+
});
|
|
764
|
+
});
|
|
765
|
+
}
|
|
766
|
+
/**
|
|
767
|
+
* Invites a list of users to join a Workspace. When called, this endpoint may generate one or more of the following [Audit Trail](/tag/Audit-Trail) events: * Non-Segment User Invited to Workspace * Policy Created * New Segment User Invited to Workspace Config API omitted fields: - `parent` The rate limit for this endpoint is 60 requests per minute, which is lower than the default due to access pattern restrictions. Once reached, this endpoint will respond with the 429 HTTP status code with headers indicating the limit parameters. See [Rate Limiting](/#tag/Rate-Limits) for more information.
|
|
768
|
+
* @summary Create Invites
|
|
769
|
+
* @param CreateInvitesV1Input
|
|
770
|
+
*/
|
|
771
|
+
public async createInvitesBeta(
|
|
772
|
+
CreateInvitesV1Input: CreateInvitesV1Input,
|
|
773
|
+
options: { headers: { [name: string]: string } } = { headers: {} }
|
|
774
|
+
): Promise<{
|
|
775
|
+
response: http.IncomingMessage;
|
|
776
|
+
body: CreateInvites200Response;
|
|
777
|
+
}> {
|
|
778
|
+
const localVarPath = this.basePath + '/invites';
|
|
779
|
+
let localVarQueryParameters: any = {};
|
|
780
|
+
let localVarHeaderParams: any = (<any>Object).assign(
|
|
781
|
+
{},
|
|
782
|
+
this._defaultHeaders
|
|
783
|
+
);
|
|
784
|
+
const produces = [
|
|
785
|
+
'application/vnd.segment.v1beta+json',
|
|
786
|
+
'application/json',
|
|
787
|
+
];
|
|
788
|
+
if (produces.indexOf('application/json') >= 0) {
|
|
789
|
+
localVarHeaderParams.Accept = produces[0];
|
|
790
|
+
} else {
|
|
791
|
+
localVarHeaderParams.Accept = 'application/json';
|
|
792
|
+
}
|
|
793
|
+
let localVarFormParams: any = {};
|
|
794
|
+
|
|
795
|
+
// verify required parameter 'CreateInvitesV1Input' is not null or undefined
|
|
796
|
+
if (
|
|
797
|
+
CreateInvitesV1Input === null ||
|
|
798
|
+
CreateInvitesV1Input === undefined
|
|
799
|
+
) {
|
|
800
|
+
throw new Error(
|
|
801
|
+
'Required parameter CreateInvitesV1Input was null or undefined when calling createInvitesBeta.'
|
|
802
|
+
);
|
|
803
|
+
}
|
|
804
|
+
|
|
805
|
+
(<any>Object).assign(localVarHeaderParams, options.headers);
|
|
806
|
+
|
|
807
|
+
let localVarUseFormData = false;
|
|
808
|
+
|
|
809
|
+
let localVarRequestOptions: localVarRequest.Options = {
|
|
810
|
+
method: 'POST',
|
|
811
|
+
qs: localVarQueryParameters,
|
|
812
|
+
headers: localVarHeaderParams,
|
|
813
|
+
uri: localVarPath,
|
|
814
|
+
useQuerystring: this._useQuerystring,
|
|
815
|
+
json: true,
|
|
816
|
+
body: ObjectSerializer.serialize(
|
|
817
|
+
CreateInvitesV1Input,
|
|
818
|
+
'CreateInvitesV1Input'
|
|
819
|
+
),
|
|
820
|
+
};
|
|
821
|
+
|
|
822
|
+
let authenticationPromise = Promise.resolve();
|
|
823
|
+
if (this.authentications.token.accessToken) {
|
|
824
|
+
authenticationPromise = authenticationPromise.then(() =>
|
|
825
|
+
this.authentications.token.applyToRequest(
|
|
826
|
+
localVarRequestOptions
|
|
827
|
+
)
|
|
828
|
+
);
|
|
829
|
+
}
|
|
830
|
+
authenticationPromise = authenticationPromise.then(() =>
|
|
831
|
+
this.authentications.default.applyToRequest(localVarRequestOptions)
|
|
832
|
+
);
|
|
833
|
+
|
|
834
|
+
let interceptorPromise = authenticationPromise;
|
|
835
|
+
for (const interceptor of this.interceptors) {
|
|
836
|
+
interceptorPromise = interceptorPromise.then(() =>
|
|
837
|
+
interceptor(localVarRequestOptions)
|
|
838
|
+
);
|
|
839
|
+
}
|
|
840
|
+
|
|
841
|
+
return interceptorPromise.then(() => {
|
|
842
|
+
if (Object.keys(localVarFormParams).length) {
|
|
843
|
+
if (localVarUseFormData) {
|
|
844
|
+
(<any>localVarRequestOptions).formData = localVarFormParams;
|
|
845
|
+
} else {
|
|
846
|
+
localVarRequestOptions.form = localVarFormParams;
|
|
847
|
+
}
|
|
848
|
+
}
|
|
849
|
+
return new Promise<{
|
|
850
|
+
response: http.IncomingMessage;
|
|
851
|
+
body: CreateInvites200Response;
|
|
852
|
+
}>((resolve, reject) => {
|
|
853
|
+
localVarRequest(
|
|
854
|
+
localVarRequestOptions,
|
|
855
|
+
(error, response, body) => {
|
|
856
|
+
if (error) {
|
|
857
|
+
reject(error);
|
|
858
|
+
} else {
|
|
859
|
+
if (
|
|
860
|
+
response.statusCode &&
|
|
861
|
+
response.statusCode >= 200 &&
|
|
862
|
+
response.statusCode <= 299
|
|
863
|
+
) {
|
|
864
|
+
body = ObjectSerializer.deserialize(
|
|
865
|
+
body,
|
|
866
|
+
'CreateInvites200Response'
|
|
867
|
+
);
|
|
868
|
+
resolve({ response: response, body: body });
|
|
869
|
+
} else {
|
|
870
|
+
reject(
|
|
871
|
+
new HttpError(
|
|
872
|
+
response,
|
|
873
|
+
body,
|
|
874
|
+
response.statusCode
|
|
875
|
+
)
|
|
876
|
+
);
|
|
877
|
+
}
|
|
878
|
+
}
|
|
879
|
+
}
|
|
880
|
+
);
|
|
881
|
+
});
|
|
882
|
+
});
|
|
883
|
+
}
|
|
884
|
+
/**
|
|
885
|
+
* Invites a list of users to join a Workspace. When called, this endpoint may generate one or more of the following [Audit Trail](/tag/Audit-Trail) events: * Non-Segment User Invited to Workspace * Policy Created * New Segment User Invited to Workspace Config API omitted fields: - `parent` The rate limit for this endpoint is 60 requests per minute, which is lower than the default due to access pattern restrictions. Once reached, this endpoint will respond with the 429 HTTP status code with headers indicating the limit parameters. See [Rate Limiting](/#tag/Rate-Limits) for more information.
|
|
886
|
+
* @summary Create Invites
|
|
887
|
+
* @param CreateInvitesV1Input
|
|
888
|
+
*/
|
|
889
|
+
public async createInvitesCurrent(
|
|
890
|
+
CreateInvitesV1Input: CreateInvitesV1Input,
|
|
891
|
+
options: { headers: { [name: string]: string } } = { headers: {} }
|
|
892
|
+
): Promise<{
|
|
893
|
+
response: http.IncomingMessage;
|
|
894
|
+
body: CreateInvites200Response;
|
|
895
|
+
}> {
|
|
896
|
+
const localVarPath = this.basePath + '/invites';
|
|
897
|
+
let localVarQueryParameters: any = {};
|
|
898
|
+
let localVarHeaderParams: any = (<any>Object).assign(
|
|
899
|
+
{},
|
|
900
|
+
this._defaultHeaders
|
|
901
|
+
);
|
|
902
|
+
const produces = [
|
|
903
|
+
'application/vnd.segment.v1+json',
|
|
904
|
+
'application/json',
|
|
905
|
+
];
|
|
906
|
+
if (produces.indexOf('application/json') >= 0) {
|
|
907
|
+
localVarHeaderParams.Accept = produces[0];
|
|
908
|
+
} else {
|
|
909
|
+
localVarHeaderParams.Accept = 'application/json';
|
|
910
|
+
}
|
|
911
|
+
let localVarFormParams: any = {};
|
|
912
|
+
|
|
913
|
+
// verify required parameter 'CreateInvitesV1Input' is not null or undefined
|
|
914
|
+
if (
|
|
915
|
+
CreateInvitesV1Input === null ||
|
|
916
|
+
CreateInvitesV1Input === undefined
|
|
917
|
+
) {
|
|
918
|
+
throw new Error(
|
|
919
|
+
'Required parameter CreateInvitesV1Input was null or undefined when calling createInvitesCurrent.'
|
|
920
|
+
);
|
|
921
|
+
}
|
|
922
|
+
|
|
923
|
+
(<any>Object).assign(localVarHeaderParams, options.headers);
|
|
924
|
+
|
|
925
|
+
let localVarUseFormData = false;
|
|
926
|
+
|
|
927
|
+
let localVarRequestOptions: localVarRequest.Options = {
|
|
928
|
+
method: 'POST',
|
|
929
|
+
qs: localVarQueryParameters,
|
|
930
|
+
headers: localVarHeaderParams,
|
|
931
|
+
uri: localVarPath,
|
|
932
|
+
useQuerystring: this._useQuerystring,
|
|
933
|
+
json: true,
|
|
934
|
+
body: ObjectSerializer.serialize(
|
|
935
|
+
CreateInvitesV1Input,
|
|
936
|
+
'CreateInvitesV1Input'
|
|
937
|
+
),
|
|
938
|
+
};
|
|
939
|
+
|
|
940
|
+
let authenticationPromise = Promise.resolve();
|
|
941
|
+
if (this.authentications.token.accessToken) {
|
|
942
|
+
authenticationPromise = authenticationPromise.then(() =>
|
|
943
|
+
this.authentications.token.applyToRequest(
|
|
944
|
+
localVarRequestOptions
|
|
945
|
+
)
|
|
946
|
+
);
|
|
947
|
+
}
|
|
948
|
+
authenticationPromise = authenticationPromise.then(() =>
|
|
949
|
+
this.authentications.default.applyToRequest(localVarRequestOptions)
|
|
950
|
+
);
|
|
951
|
+
|
|
952
|
+
let interceptorPromise = authenticationPromise;
|
|
953
|
+
for (const interceptor of this.interceptors) {
|
|
954
|
+
interceptorPromise = interceptorPromise.then(() =>
|
|
955
|
+
interceptor(localVarRequestOptions)
|
|
956
|
+
);
|
|
957
|
+
}
|
|
958
|
+
|
|
959
|
+
return interceptorPromise.then(() => {
|
|
960
|
+
if (Object.keys(localVarFormParams).length) {
|
|
961
|
+
if (localVarUseFormData) {
|
|
962
|
+
(<any>localVarRequestOptions).formData = localVarFormParams;
|
|
963
|
+
} else {
|
|
964
|
+
localVarRequestOptions.form = localVarFormParams;
|
|
965
|
+
}
|
|
966
|
+
}
|
|
967
|
+
return new Promise<{
|
|
968
|
+
response: http.IncomingMessage;
|
|
969
|
+
body: CreateInvites200Response;
|
|
970
|
+
}>((resolve, reject) => {
|
|
971
|
+
localVarRequest(
|
|
972
|
+
localVarRequestOptions,
|
|
973
|
+
(error, response, body) => {
|
|
974
|
+
if (error) {
|
|
975
|
+
reject(error);
|
|
976
|
+
} else {
|
|
977
|
+
if (
|
|
978
|
+
response.statusCode &&
|
|
979
|
+
response.statusCode >= 200 &&
|
|
980
|
+
response.statusCode <= 299
|
|
981
|
+
) {
|
|
982
|
+
body = ObjectSerializer.deserialize(
|
|
983
|
+
body,
|
|
984
|
+
'CreateInvites200Response'
|
|
985
|
+
);
|
|
986
|
+
resolve({ response: response, body: body });
|
|
987
|
+
} else {
|
|
988
|
+
reject(
|
|
989
|
+
new HttpError(
|
|
990
|
+
response,
|
|
991
|
+
body,
|
|
992
|
+
response.statusCode
|
|
993
|
+
)
|
|
994
|
+
);
|
|
995
|
+
}
|
|
996
|
+
}
|
|
997
|
+
}
|
|
998
|
+
);
|
|
999
|
+
});
|
|
1000
|
+
});
|
|
1001
|
+
}
|
|
1002
|
+
/**
|
|
1003
|
+
* Invites a list of users to join a Workspace. When called, this endpoint may generate one or more of the following [Audit Trail](/tag/Audit-Trail) events: * Non-Segment User Invited to Workspace * Policy Created * New Segment User Invited to Workspace Config API omitted fields: - `parent` The rate limit for this endpoint is 60 requests per minute, which is lower than the default due to access pattern restrictions. Once reached, this endpoint will respond with the 429 HTTP status code with headers indicating the limit parameters. See [Rate Limiting](/#tag/Rate-Limits) for more information.
|
|
1004
|
+
* @summary Create Invites
|
|
1005
|
+
* @param CreateInvitesV1Input
|
|
1006
|
+
*/
|
|
1007
|
+
public async createInvitesV1(
|
|
1008
|
+
CreateInvitesV1Input: CreateInvitesV1Input,
|
|
1009
|
+
options: { headers: { [name: string]: string } } = { headers: {} }
|
|
1010
|
+
): Promise<{
|
|
1011
|
+
response: http.IncomingMessage;
|
|
1012
|
+
body: CreateInvites200Response;
|
|
1013
|
+
}> {
|
|
1014
|
+
const localVarPath = this.basePath + '/invites';
|
|
1015
|
+
let localVarQueryParameters: any = {};
|
|
1016
|
+
let localVarHeaderParams: any = (<any>Object).assign(
|
|
1017
|
+
{},
|
|
1018
|
+
this._defaultHeaders
|
|
1019
|
+
);
|
|
1020
|
+
const produces = [
|
|
1021
|
+
'application/vnd.segment.v1+json',
|
|
1022
|
+
'application/json',
|
|
1023
|
+
];
|
|
1024
|
+
if (produces.indexOf('application/json') >= 0) {
|
|
1025
|
+
localVarHeaderParams.Accept = produces[0];
|
|
1026
|
+
} else {
|
|
1027
|
+
localVarHeaderParams.Accept = 'application/json';
|
|
1028
|
+
}
|
|
1029
|
+
let localVarFormParams: any = {};
|
|
1030
|
+
|
|
1031
|
+
// verify required parameter 'CreateInvitesV1Input' is not null or undefined
|
|
1032
|
+
if (
|
|
1033
|
+
CreateInvitesV1Input === null ||
|
|
1034
|
+
CreateInvitesV1Input === undefined
|
|
1035
|
+
) {
|
|
1036
|
+
throw new Error(
|
|
1037
|
+
'Required parameter CreateInvitesV1Input was null or undefined when calling createInvitesV1.'
|
|
1038
|
+
);
|
|
1039
|
+
}
|
|
1040
|
+
|
|
1041
|
+
(<any>Object).assign(localVarHeaderParams, options.headers);
|
|
1042
|
+
|
|
1043
|
+
let localVarUseFormData = false;
|
|
1044
|
+
|
|
1045
|
+
let localVarRequestOptions: localVarRequest.Options = {
|
|
1046
|
+
method: 'POST',
|
|
1047
|
+
qs: localVarQueryParameters,
|
|
1048
|
+
headers: localVarHeaderParams,
|
|
1049
|
+
uri: localVarPath,
|
|
1050
|
+
useQuerystring: this._useQuerystring,
|
|
1051
|
+
json: true,
|
|
1052
|
+
body: ObjectSerializer.serialize(
|
|
1053
|
+
CreateInvitesV1Input,
|
|
1054
|
+
'CreateInvitesV1Input'
|
|
1055
|
+
),
|
|
1056
|
+
};
|
|
1057
|
+
|
|
1058
|
+
let authenticationPromise = Promise.resolve();
|
|
1059
|
+
if (this.authentications.token.accessToken) {
|
|
1060
|
+
authenticationPromise = authenticationPromise.then(() =>
|
|
1061
|
+
this.authentications.token.applyToRequest(
|
|
1062
|
+
localVarRequestOptions
|
|
1063
|
+
)
|
|
1064
|
+
);
|
|
1065
|
+
}
|
|
1066
|
+
authenticationPromise = authenticationPromise.then(() =>
|
|
1067
|
+
this.authentications.default.applyToRequest(localVarRequestOptions)
|
|
1068
|
+
);
|
|
1069
|
+
|
|
1070
|
+
let interceptorPromise = authenticationPromise;
|
|
1071
|
+
for (const interceptor of this.interceptors) {
|
|
1072
|
+
interceptorPromise = interceptorPromise.then(() =>
|
|
1073
|
+
interceptor(localVarRequestOptions)
|
|
1074
|
+
);
|
|
1075
|
+
}
|
|
1076
|
+
|
|
1077
|
+
return interceptorPromise.then(() => {
|
|
1078
|
+
if (Object.keys(localVarFormParams).length) {
|
|
1079
|
+
if (localVarUseFormData) {
|
|
1080
|
+
(<any>localVarRequestOptions).formData = localVarFormParams;
|
|
1081
|
+
} else {
|
|
1082
|
+
localVarRequestOptions.form = localVarFormParams;
|
|
1083
|
+
}
|
|
1084
|
+
}
|
|
1085
|
+
return new Promise<{
|
|
1086
|
+
response: http.IncomingMessage;
|
|
1087
|
+
body: CreateInvites200Response;
|
|
1088
|
+
}>((resolve, reject) => {
|
|
1089
|
+
localVarRequest(
|
|
1090
|
+
localVarRequestOptions,
|
|
1091
|
+
(error, response, body) => {
|
|
1092
|
+
if (error) {
|
|
1093
|
+
reject(error);
|
|
1094
|
+
} else {
|
|
1095
|
+
if (
|
|
1096
|
+
response.statusCode &&
|
|
1097
|
+
response.statusCode >= 200 &&
|
|
1098
|
+
response.statusCode <= 299
|
|
1099
|
+
) {
|
|
1100
|
+
body = ObjectSerializer.deserialize(
|
|
1101
|
+
body,
|
|
1102
|
+
'CreateInvites200Response'
|
|
1103
|
+
);
|
|
1104
|
+
resolve({ response: response, body: body });
|
|
1105
|
+
} else {
|
|
1106
|
+
reject(
|
|
1107
|
+
new HttpError(
|
|
1108
|
+
response,
|
|
1109
|
+
body,
|
|
1110
|
+
response.statusCode
|
|
1111
|
+
)
|
|
1112
|
+
);
|
|
1113
|
+
}
|
|
1114
|
+
}
|
|
1115
|
+
}
|
|
1116
|
+
);
|
|
1117
|
+
});
|
|
1118
|
+
});
|
|
1119
|
+
}
|
|
1120
|
+
/**
|
|
1121
|
+
* Removes a list of invitations to join a Workspace. When called, this endpoint may generate one or more of the following [Audit Trail](/tag/Audit-Trail) events: * Invite Deleted * Group Memberships Deleted The rate limit for this endpoint is 60 requests per minute, which is lower than the default due to access pattern restrictions. Once reached, this endpoint will respond with the 429 HTTP status code with headers indicating the limit parameters. See [Rate Limiting](/#tag/Rate-Limits) for more information.
|
|
1122
|
+
* @summary Delete Invites
|
|
1123
|
+
* @param emails The list of emails to delete invites for. This parameter exists in alpha.
|
|
1124
|
+
*/
|
|
1125
|
+
public async deleteInvitesAlpha(
|
|
1126
|
+
emails: Array<string>,
|
|
1127
|
+
options: { headers: { [name: string]: string } } = { headers: {} }
|
|
1128
|
+
): Promise<{
|
|
1129
|
+
response: http.IncomingMessage;
|
|
1130
|
+
body: DeleteInvites200Response;
|
|
1131
|
+
}> {
|
|
1132
|
+
const localVarPath = this.basePath + '/invites';
|
|
1133
|
+
let localVarQueryParameters: any = {};
|
|
1134
|
+
let localVarHeaderParams: any = (<any>Object).assign(
|
|
1135
|
+
{},
|
|
1136
|
+
this._defaultHeaders
|
|
1137
|
+
);
|
|
1138
|
+
const produces = [
|
|
1139
|
+
'application/vnd.segment.v1alpha+json',
|
|
1140
|
+
'application/json',
|
|
1141
|
+
];
|
|
1142
|
+
if (produces.indexOf('application/json') >= 0) {
|
|
1143
|
+
localVarHeaderParams.Accept = produces[0];
|
|
1144
|
+
} else {
|
|
1145
|
+
localVarHeaderParams.Accept = 'application/json';
|
|
1146
|
+
}
|
|
1147
|
+
let localVarFormParams: any = {};
|
|
1148
|
+
|
|
1149
|
+
// verify required parameter 'emails' is not null or undefined
|
|
1150
|
+
if (emails === null || emails === undefined) {
|
|
1151
|
+
throw new Error(
|
|
1152
|
+
'Required parameter emails was null or undefined when calling deleteInvitesAlpha.'
|
|
1153
|
+
);
|
|
1154
|
+
}
|
|
1155
|
+
|
|
1156
|
+
if (emails !== undefined) {
|
|
1157
|
+
localVarQueryParameters['emails'] = ObjectSerializer.serialize(
|
|
1158
|
+
emails,
|
|
1159
|
+
'Array<string>'
|
|
1160
|
+
);
|
|
1161
|
+
}
|
|
1162
|
+
|
|
1163
|
+
(<any>Object).assign(localVarHeaderParams, options.headers);
|
|
1164
|
+
|
|
1165
|
+
let localVarUseFormData = false;
|
|
1166
|
+
|
|
1167
|
+
let localVarRequestOptions: localVarRequest.Options = {
|
|
1168
|
+
method: 'DELETE',
|
|
1169
|
+
qs: localVarQueryParameters,
|
|
1170
|
+
headers: localVarHeaderParams,
|
|
1171
|
+
uri: localVarPath,
|
|
1172
|
+
useQuerystring: this._useQuerystring,
|
|
1173
|
+
json: true,
|
|
1174
|
+
};
|
|
1175
|
+
|
|
1176
|
+
let authenticationPromise = Promise.resolve();
|
|
1177
|
+
if (this.authentications.token.accessToken) {
|
|
1178
|
+
authenticationPromise = authenticationPromise.then(() =>
|
|
1179
|
+
this.authentications.token.applyToRequest(
|
|
1180
|
+
localVarRequestOptions
|
|
1181
|
+
)
|
|
1182
|
+
);
|
|
1183
|
+
}
|
|
1184
|
+
authenticationPromise = authenticationPromise.then(() =>
|
|
1185
|
+
this.authentications.default.applyToRequest(localVarRequestOptions)
|
|
1186
|
+
);
|
|
1187
|
+
|
|
1188
|
+
let interceptorPromise = authenticationPromise;
|
|
1189
|
+
for (const interceptor of this.interceptors) {
|
|
1190
|
+
interceptorPromise = interceptorPromise.then(() =>
|
|
1191
|
+
interceptor(localVarRequestOptions)
|
|
1192
|
+
);
|
|
1193
|
+
}
|
|
1194
|
+
|
|
1195
|
+
return interceptorPromise.then(() => {
|
|
1196
|
+
if (Object.keys(localVarFormParams).length) {
|
|
1197
|
+
if (localVarUseFormData) {
|
|
1198
|
+
(<any>localVarRequestOptions).formData = localVarFormParams;
|
|
1199
|
+
} else {
|
|
1200
|
+
localVarRequestOptions.form = localVarFormParams;
|
|
1201
|
+
}
|
|
1202
|
+
}
|
|
1203
|
+
return new Promise<{
|
|
1204
|
+
response: http.IncomingMessage;
|
|
1205
|
+
body: DeleteInvites200Response;
|
|
1206
|
+
}>((resolve, reject) => {
|
|
1207
|
+
localVarRequest(
|
|
1208
|
+
localVarRequestOptions,
|
|
1209
|
+
(error, response, body) => {
|
|
1210
|
+
if (error) {
|
|
1211
|
+
reject(error);
|
|
1212
|
+
} else {
|
|
1213
|
+
if (
|
|
1214
|
+
response.statusCode &&
|
|
1215
|
+
response.statusCode >= 200 &&
|
|
1216
|
+
response.statusCode <= 299
|
|
1217
|
+
) {
|
|
1218
|
+
body = ObjectSerializer.deserialize(
|
|
1219
|
+
body,
|
|
1220
|
+
'DeleteInvites200Response'
|
|
1221
|
+
);
|
|
1222
|
+
resolve({ response: response, body: body });
|
|
1223
|
+
} else {
|
|
1224
|
+
reject(
|
|
1225
|
+
new HttpError(
|
|
1226
|
+
response,
|
|
1227
|
+
body,
|
|
1228
|
+
response.statusCode
|
|
1229
|
+
)
|
|
1230
|
+
);
|
|
1231
|
+
}
|
|
1232
|
+
}
|
|
1233
|
+
}
|
|
1234
|
+
);
|
|
1235
|
+
});
|
|
1236
|
+
});
|
|
1237
|
+
}
|
|
1238
|
+
/**
|
|
1239
|
+
* Removes a list of invitations to join a Workspace. When called, this endpoint may generate one or more of the following [Audit Trail](/tag/Audit-Trail) events: * Invite Deleted * Group Memberships Deleted The rate limit for this endpoint is 60 requests per minute, which is lower than the default due to access pattern restrictions. Once reached, this endpoint will respond with the 429 HTTP status code with headers indicating the limit parameters. See [Rate Limiting](/#tag/Rate-Limits) for more information.
|
|
1240
|
+
* @summary Delete Invites
|
|
1241
|
+
* @param emails The list of emails to delete invites for. This parameter exists in alpha.
|
|
1242
|
+
*/
|
|
1243
|
+
public async deleteInvitesBeta(
|
|
1244
|
+
emails: Array<string>,
|
|
1245
|
+
options: { headers: { [name: string]: string } } = { headers: {} }
|
|
1246
|
+
): Promise<{
|
|
1247
|
+
response: http.IncomingMessage;
|
|
1248
|
+
body: DeleteInvites200Response;
|
|
1249
|
+
}> {
|
|
1250
|
+
const localVarPath = this.basePath + '/invites';
|
|
1251
|
+
let localVarQueryParameters: any = {};
|
|
1252
|
+
let localVarHeaderParams: any = (<any>Object).assign(
|
|
1253
|
+
{},
|
|
1254
|
+
this._defaultHeaders
|
|
1255
|
+
);
|
|
1256
|
+
const produces = [
|
|
1257
|
+
'application/vnd.segment.v1beta+json',
|
|
1258
|
+
'application/json',
|
|
1259
|
+
];
|
|
1260
|
+
if (produces.indexOf('application/json') >= 0) {
|
|
1261
|
+
localVarHeaderParams.Accept = produces[0];
|
|
1262
|
+
} else {
|
|
1263
|
+
localVarHeaderParams.Accept = 'application/json';
|
|
1264
|
+
}
|
|
1265
|
+
let localVarFormParams: any = {};
|
|
1266
|
+
|
|
1267
|
+
// verify required parameter 'emails' is not null or undefined
|
|
1268
|
+
if (emails === null || emails === undefined) {
|
|
1269
|
+
throw new Error(
|
|
1270
|
+
'Required parameter emails was null or undefined when calling deleteInvitesBeta.'
|
|
1271
|
+
);
|
|
1272
|
+
}
|
|
1273
|
+
|
|
1274
|
+
if (emails !== undefined) {
|
|
1275
|
+
localVarQueryParameters['emails'] = ObjectSerializer.serialize(
|
|
1276
|
+
emails,
|
|
1277
|
+
'Array<string>'
|
|
1278
|
+
);
|
|
1279
|
+
}
|
|
1280
|
+
|
|
1281
|
+
(<any>Object).assign(localVarHeaderParams, options.headers);
|
|
1282
|
+
|
|
1283
|
+
let localVarUseFormData = false;
|
|
1284
|
+
|
|
1285
|
+
let localVarRequestOptions: localVarRequest.Options = {
|
|
1286
|
+
method: 'DELETE',
|
|
1287
|
+
qs: localVarQueryParameters,
|
|
1288
|
+
headers: localVarHeaderParams,
|
|
1289
|
+
uri: localVarPath,
|
|
1290
|
+
useQuerystring: this._useQuerystring,
|
|
1291
|
+
json: true,
|
|
1292
|
+
};
|
|
1293
|
+
|
|
1294
|
+
let authenticationPromise = Promise.resolve();
|
|
1295
|
+
if (this.authentications.token.accessToken) {
|
|
1296
|
+
authenticationPromise = authenticationPromise.then(() =>
|
|
1297
|
+
this.authentications.token.applyToRequest(
|
|
1298
|
+
localVarRequestOptions
|
|
1299
|
+
)
|
|
1300
|
+
);
|
|
1301
|
+
}
|
|
1302
|
+
authenticationPromise = authenticationPromise.then(() =>
|
|
1303
|
+
this.authentications.default.applyToRequest(localVarRequestOptions)
|
|
1304
|
+
);
|
|
1305
|
+
|
|
1306
|
+
let interceptorPromise = authenticationPromise;
|
|
1307
|
+
for (const interceptor of this.interceptors) {
|
|
1308
|
+
interceptorPromise = interceptorPromise.then(() =>
|
|
1309
|
+
interceptor(localVarRequestOptions)
|
|
1310
|
+
);
|
|
1311
|
+
}
|
|
1312
|
+
|
|
1313
|
+
return interceptorPromise.then(() => {
|
|
1314
|
+
if (Object.keys(localVarFormParams).length) {
|
|
1315
|
+
if (localVarUseFormData) {
|
|
1316
|
+
(<any>localVarRequestOptions).formData = localVarFormParams;
|
|
1317
|
+
} else {
|
|
1318
|
+
localVarRequestOptions.form = localVarFormParams;
|
|
1319
|
+
}
|
|
1320
|
+
}
|
|
1321
|
+
return new Promise<{
|
|
1322
|
+
response: http.IncomingMessage;
|
|
1323
|
+
body: DeleteInvites200Response;
|
|
1324
|
+
}>((resolve, reject) => {
|
|
1325
|
+
localVarRequest(
|
|
1326
|
+
localVarRequestOptions,
|
|
1327
|
+
(error, response, body) => {
|
|
1328
|
+
if (error) {
|
|
1329
|
+
reject(error);
|
|
1330
|
+
} else {
|
|
1331
|
+
if (
|
|
1332
|
+
response.statusCode &&
|
|
1333
|
+
response.statusCode >= 200 &&
|
|
1334
|
+
response.statusCode <= 299
|
|
1335
|
+
) {
|
|
1336
|
+
body = ObjectSerializer.deserialize(
|
|
1337
|
+
body,
|
|
1338
|
+
'DeleteInvites200Response'
|
|
1339
|
+
);
|
|
1340
|
+
resolve({ response: response, body: body });
|
|
1341
|
+
} else {
|
|
1342
|
+
reject(
|
|
1343
|
+
new HttpError(
|
|
1344
|
+
response,
|
|
1345
|
+
body,
|
|
1346
|
+
response.statusCode
|
|
1347
|
+
)
|
|
1348
|
+
);
|
|
1349
|
+
}
|
|
1350
|
+
}
|
|
1351
|
+
}
|
|
1352
|
+
);
|
|
1353
|
+
});
|
|
1354
|
+
});
|
|
1355
|
+
}
|
|
1356
|
+
/**
|
|
1357
|
+
* Removes a list of invitations to join a Workspace. When called, this endpoint may generate one or more of the following [Audit Trail](/tag/Audit-Trail) events: * Invite Deleted * Group Memberships Deleted The rate limit for this endpoint is 60 requests per minute, which is lower than the default due to access pattern restrictions. Once reached, this endpoint will respond with the 429 HTTP status code with headers indicating the limit parameters. See [Rate Limiting](/#tag/Rate-Limits) for more information.
|
|
1358
|
+
* @summary Delete Invites
|
|
1359
|
+
* @param emails The list of emails to delete invites for. This parameter exists in alpha.
|
|
1360
|
+
*/
|
|
1361
|
+
public async deleteInvitesCurrent(
|
|
1362
|
+
emails: Array<string>,
|
|
1363
|
+
options: { headers: { [name: string]: string } } = { headers: {} }
|
|
1364
|
+
): Promise<{
|
|
1365
|
+
response: http.IncomingMessage;
|
|
1366
|
+
body: DeleteInvites200Response;
|
|
1367
|
+
}> {
|
|
1368
|
+
const localVarPath = this.basePath + '/invites';
|
|
1369
|
+
let localVarQueryParameters: any = {};
|
|
1370
|
+
let localVarHeaderParams: any = (<any>Object).assign(
|
|
1371
|
+
{},
|
|
1372
|
+
this._defaultHeaders
|
|
1373
|
+
);
|
|
1374
|
+
const produces = ['application/json'];
|
|
1375
|
+
if (produces.indexOf('application/json') >= 0) {
|
|
1376
|
+
localVarHeaderParams.Accept = produces[0];
|
|
1377
|
+
} else {
|
|
1378
|
+
localVarHeaderParams.Accept = 'application/json';
|
|
1379
|
+
}
|
|
1380
|
+
let localVarFormParams: any = {};
|
|
1381
|
+
|
|
1382
|
+
// verify required parameter 'emails' is not null or undefined
|
|
1383
|
+
if (emails === null || emails === undefined) {
|
|
1384
|
+
throw new Error(
|
|
1385
|
+
'Required parameter emails was null or undefined when calling deleteInvitesCurrent.'
|
|
1386
|
+
);
|
|
1387
|
+
}
|
|
1388
|
+
|
|
1389
|
+
if (emails !== undefined) {
|
|
1390
|
+
localVarQueryParameters['emails'] = ObjectSerializer.serialize(
|
|
1391
|
+
emails,
|
|
1392
|
+
'Array<string>'
|
|
1393
|
+
);
|
|
1394
|
+
}
|
|
1395
|
+
|
|
1396
|
+
(<any>Object).assign(localVarHeaderParams, options.headers);
|
|
1397
|
+
|
|
1398
|
+
let localVarUseFormData = false;
|
|
1399
|
+
|
|
1400
|
+
let localVarRequestOptions: localVarRequest.Options = {
|
|
1401
|
+
method: 'DELETE',
|
|
1402
|
+
qs: localVarQueryParameters,
|
|
1403
|
+
headers: localVarHeaderParams,
|
|
1404
|
+
uri: localVarPath,
|
|
1405
|
+
useQuerystring: this._useQuerystring,
|
|
1406
|
+
json: true,
|
|
1407
|
+
};
|
|
1408
|
+
|
|
1409
|
+
let authenticationPromise = Promise.resolve();
|
|
1410
|
+
if (this.authentications.token.accessToken) {
|
|
1411
|
+
authenticationPromise = authenticationPromise.then(() =>
|
|
1412
|
+
this.authentications.token.applyToRequest(
|
|
1413
|
+
localVarRequestOptions
|
|
1414
|
+
)
|
|
1415
|
+
);
|
|
1416
|
+
}
|
|
1417
|
+
authenticationPromise = authenticationPromise.then(() =>
|
|
1418
|
+
this.authentications.default.applyToRequest(localVarRequestOptions)
|
|
1419
|
+
);
|
|
1420
|
+
|
|
1421
|
+
let interceptorPromise = authenticationPromise;
|
|
1422
|
+
for (const interceptor of this.interceptors) {
|
|
1423
|
+
interceptorPromise = interceptorPromise.then(() =>
|
|
1424
|
+
interceptor(localVarRequestOptions)
|
|
1425
|
+
);
|
|
1426
|
+
}
|
|
1427
|
+
|
|
1428
|
+
return interceptorPromise.then(() => {
|
|
1429
|
+
if (Object.keys(localVarFormParams).length) {
|
|
1430
|
+
if (localVarUseFormData) {
|
|
1431
|
+
(<any>localVarRequestOptions).formData = localVarFormParams;
|
|
1432
|
+
} else {
|
|
1433
|
+
localVarRequestOptions.form = localVarFormParams;
|
|
1434
|
+
}
|
|
1435
|
+
}
|
|
1436
|
+
return new Promise<{
|
|
1437
|
+
response: http.IncomingMessage;
|
|
1438
|
+
body: DeleteInvites200Response;
|
|
1439
|
+
}>((resolve, reject) => {
|
|
1440
|
+
localVarRequest(
|
|
1441
|
+
localVarRequestOptions,
|
|
1442
|
+
(error, response, body) => {
|
|
1443
|
+
if (error) {
|
|
1444
|
+
reject(error);
|
|
1445
|
+
} else {
|
|
1446
|
+
if (
|
|
1447
|
+
response.statusCode &&
|
|
1448
|
+
response.statusCode >= 200 &&
|
|
1449
|
+
response.statusCode <= 299
|
|
1450
|
+
) {
|
|
1451
|
+
body = ObjectSerializer.deserialize(
|
|
1452
|
+
body,
|
|
1453
|
+
'DeleteInvites200Response'
|
|
1454
|
+
);
|
|
1455
|
+
resolve({ response: response, body: body });
|
|
1456
|
+
} else {
|
|
1457
|
+
reject(
|
|
1458
|
+
new HttpError(
|
|
1459
|
+
response,
|
|
1460
|
+
body,
|
|
1461
|
+
response.statusCode
|
|
1462
|
+
)
|
|
1463
|
+
);
|
|
1464
|
+
}
|
|
1465
|
+
}
|
|
1466
|
+
}
|
|
1467
|
+
);
|
|
1468
|
+
});
|
|
1469
|
+
});
|
|
1470
|
+
}
|
|
1471
|
+
/**
|
|
1472
|
+
* Removes a list of invitations to join a Workspace. When called, this endpoint may generate one or more of the following [Audit Trail](/tag/Audit-Trail) events: * Invite Deleted * Group Memberships Deleted The rate limit for this endpoint is 60 requests per minute, which is lower than the default due to access pattern restrictions. Once reached, this endpoint will respond with the 429 HTTP status code with headers indicating the limit parameters. See [Rate Limiting](/#tag/Rate-Limits) for more information.
|
|
1473
|
+
* @summary Delete Invites
|
|
1474
|
+
* @param emails The list of emails to delete invites for. This parameter exists in alpha.
|
|
1475
|
+
*/
|
|
1476
|
+
public async deleteInvitesV1(
|
|
1477
|
+
emails: Array<string>,
|
|
1478
|
+
options: { headers: { [name: string]: string } } = { headers: {} }
|
|
1479
|
+
): Promise<{
|
|
1480
|
+
response: http.IncomingMessage;
|
|
1481
|
+
body: DeleteInvites200Response;
|
|
1482
|
+
}> {
|
|
1483
|
+
const localVarPath = this.basePath + '/invites';
|
|
1484
|
+
let localVarQueryParameters: any = {};
|
|
1485
|
+
let localVarHeaderParams: any = (<any>Object).assign(
|
|
1486
|
+
{},
|
|
1487
|
+
this._defaultHeaders
|
|
1488
|
+
);
|
|
1489
|
+
const produces = [
|
|
1490
|
+
'application/vnd.segment.v1+json',
|
|
1491
|
+
'application/json',
|
|
1492
|
+
];
|
|
1493
|
+
if (produces.indexOf('application/json') >= 0) {
|
|
1494
|
+
localVarHeaderParams.Accept = produces[0];
|
|
1495
|
+
} else {
|
|
1496
|
+
localVarHeaderParams.Accept = 'application/json';
|
|
1497
|
+
}
|
|
1498
|
+
let localVarFormParams: any = {};
|
|
1499
|
+
|
|
1500
|
+
// verify required parameter 'emails' is not null or undefined
|
|
1501
|
+
if (emails === null || emails === undefined) {
|
|
1502
|
+
throw new Error(
|
|
1503
|
+
'Required parameter emails was null or undefined when calling deleteInvitesV1.'
|
|
1504
|
+
);
|
|
1505
|
+
}
|
|
1506
|
+
|
|
1507
|
+
if (emails !== undefined) {
|
|
1508
|
+
localVarQueryParameters['emails'] = ObjectSerializer.serialize(
|
|
1509
|
+
emails,
|
|
1510
|
+
'Array<string>'
|
|
1511
|
+
);
|
|
1512
|
+
}
|
|
1513
|
+
|
|
1514
|
+
(<any>Object).assign(localVarHeaderParams, options.headers);
|
|
1515
|
+
|
|
1516
|
+
let localVarUseFormData = false;
|
|
1517
|
+
|
|
1518
|
+
let localVarRequestOptions: localVarRequest.Options = {
|
|
1519
|
+
method: 'DELETE',
|
|
1520
|
+
qs: localVarQueryParameters,
|
|
1521
|
+
headers: localVarHeaderParams,
|
|
1522
|
+
uri: localVarPath,
|
|
1523
|
+
useQuerystring: this._useQuerystring,
|
|
1524
|
+
json: true,
|
|
1525
|
+
};
|
|
1526
|
+
|
|
1527
|
+
let authenticationPromise = Promise.resolve();
|
|
1528
|
+
if (this.authentications.token.accessToken) {
|
|
1529
|
+
authenticationPromise = authenticationPromise.then(() =>
|
|
1530
|
+
this.authentications.token.applyToRequest(
|
|
1531
|
+
localVarRequestOptions
|
|
1532
|
+
)
|
|
1533
|
+
);
|
|
1534
|
+
}
|
|
1535
|
+
authenticationPromise = authenticationPromise.then(() =>
|
|
1536
|
+
this.authentications.default.applyToRequest(localVarRequestOptions)
|
|
1537
|
+
);
|
|
1538
|
+
|
|
1539
|
+
let interceptorPromise = authenticationPromise;
|
|
1540
|
+
for (const interceptor of this.interceptors) {
|
|
1541
|
+
interceptorPromise = interceptorPromise.then(() =>
|
|
1542
|
+
interceptor(localVarRequestOptions)
|
|
1543
|
+
);
|
|
1544
|
+
}
|
|
1545
|
+
|
|
1546
|
+
return interceptorPromise.then(() => {
|
|
1547
|
+
if (Object.keys(localVarFormParams).length) {
|
|
1548
|
+
if (localVarUseFormData) {
|
|
1549
|
+
(<any>localVarRequestOptions).formData = localVarFormParams;
|
|
1550
|
+
} else {
|
|
1551
|
+
localVarRequestOptions.form = localVarFormParams;
|
|
1552
|
+
}
|
|
1553
|
+
}
|
|
1554
|
+
return new Promise<{
|
|
1555
|
+
response: http.IncomingMessage;
|
|
1556
|
+
body: DeleteInvites200Response;
|
|
1557
|
+
}>((resolve, reject) => {
|
|
1558
|
+
localVarRequest(
|
|
1559
|
+
localVarRequestOptions,
|
|
1560
|
+
(error, response, body) => {
|
|
1561
|
+
if (error) {
|
|
1562
|
+
reject(error);
|
|
1563
|
+
} else {
|
|
1564
|
+
if (
|
|
1565
|
+
response.statusCode &&
|
|
1566
|
+
response.statusCode >= 200 &&
|
|
1567
|
+
response.statusCode <= 299
|
|
1568
|
+
) {
|
|
1569
|
+
body = ObjectSerializer.deserialize(
|
|
1570
|
+
body,
|
|
1571
|
+
'DeleteInvites200Response'
|
|
1572
|
+
);
|
|
1573
|
+
resolve({ response: response, body: body });
|
|
1574
|
+
} else {
|
|
1575
|
+
reject(
|
|
1576
|
+
new HttpError(
|
|
1577
|
+
response,
|
|
1578
|
+
body,
|
|
1579
|
+
response.statusCode
|
|
1580
|
+
)
|
|
1581
|
+
);
|
|
1582
|
+
}
|
|
1583
|
+
}
|
|
1584
|
+
}
|
|
1585
|
+
);
|
|
1586
|
+
});
|
|
1587
|
+
});
|
|
1588
|
+
}
|
|
1589
|
+
/**
|
|
1590
|
+
* Removes one or multiple users. When called, this endpoint may generate the `Group Memberships Deleted` [Audit Trail](/tag/Audit-Trail) event. The rate limit for this endpoint is 60 requests per minute, which is lower than the default due to access pattern restrictions. Once reached, this endpoint will respond with the 429 HTTP status code with headers indicating the limit parameters. See [Rate Limiting](/#tag/Rate-Limits) for more information.
|
|
1591
|
+
* @summary Delete Users
|
|
1592
|
+
* @param userIds The ids of the users to remove. This parameter exists in alpha.
|
|
1593
|
+
*/
|
|
1594
|
+
public async deleteUsersAlpha(
|
|
1595
|
+
userIds: Array<string>,
|
|
1596
|
+
options: { headers: { [name: string]: string } } = { headers: {} }
|
|
1597
|
+
): Promise<{
|
|
1598
|
+
response: http.IncomingMessage;
|
|
1599
|
+
body: DeleteUsers200Response;
|
|
1600
|
+
}> {
|
|
1601
|
+
const localVarPath = this.basePath + '/users';
|
|
1602
|
+
let localVarQueryParameters: any = {};
|
|
1603
|
+
let localVarHeaderParams: any = (<any>Object).assign(
|
|
1604
|
+
{},
|
|
1605
|
+
this._defaultHeaders
|
|
1606
|
+
);
|
|
1607
|
+
const produces = [
|
|
1608
|
+
'application/vnd.segment.v1alpha+json',
|
|
1609
|
+
'application/json',
|
|
1610
|
+
];
|
|
1611
|
+
if (produces.indexOf('application/json') >= 0) {
|
|
1612
|
+
localVarHeaderParams.Accept = produces[0];
|
|
1613
|
+
} else {
|
|
1614
|
+
localVarHeaderParams.Accept = 'application/json';
|
|
1615
|
+
}
|
|
1616
|
+
let localVarFormParams: any = {};
|
|
1617
|
+
|
|
1618
|
+
// verify required parameter 'userIds' is not null or undefined
|
|
1619
|
+
if (userIds === null || userIds === undefined) {
|
|
1620
|
+
throw new Error(
|
|
1621
|
+
'Required parameter userIds was null or undefined when calling deleteUsersAlpha.'
|
|
1622
|
+
);
|
|
1623
|
+
}
|
|
1624
|
+
|
|
1625
|
+
if (userIds !== undefined) {
|
|
1626
|
+
localVarQueryParameters['userIds'] = ObjectSerializer.serialize(
|
|
1627
|
+
userIds,
|
|
1628
|
+
'Array<string>'
|
|
1629
|
+
);
|
|
1630
|
+
}
|
|
1631
|
+
|
|
1632
|
+
(<any>Object).assign(localVarHeaderParams, options.headers);
|
|
1633
|
+
|
|
1634
|
+
let localVarUseFormData = false;
|
|
1635
|
+
|
|
1636
|
+
let localVarRequestOptions: localVarRequest.Options = {
|
|
1637
|
+
method: 'DELETE',
|
|
1638
|
+
qs: localVarQueryParameters,
|
|
1639
|
+
headers: localVarHeaderParams,
|
|
1640
|
+
uri: localVarPath,
|
|
1641
|
+
useQuerystring: this._useQuerystring,
|
|
1642
|
+
json: true,
|
|
1643
|
+
};
|
|
1644
|
+
|
|
1645
|
+
let authenticationPromise = Promise.resolve();
|
|
1646
|
+
if (this.authentications.token.accessToken) {
|
|
1647
|
+
authenticationPromise = authenticationPromise.then(() =>
|
|
1648
|
+
this.authentications.token.applyToRequest(
|
|
1649
|
+
localVarRequestOptions
|
|
1650
|
+
)
|
|
1651
|
+
);
|
|
1652
|
+
}
|
|
1653
|
+
authenticationPromise = authenticationPromise.then(() =>
|
|
1654
|
+
this.authentications.default.applyToRequest(localVarRequestOptions)
|
|
1655
|
+
);
|
|
1656
|
+
|
|
1657
|
+
let interceptorPromise = authenticationPromise;
|
|
1658
|
+
for (const interceptor of this.interceptors) {
|
|
1659
|
+
interceptorPromise = interceptorPromise.then(() =>
|
|
1660
|
+
interceptor(localVarRequestOptions)
|
|
1661
|
+
);
|
|
1662
|
+
}
|
|
1663
|
+
|
|
1664
|
+
return interceptorPromise.then(() => {
|
|
1665
|
+
if (Object.keys(localVarFormParams).length) {
|
|
1666
|
+
if (localVarUseFormData) {
|
|
1667
|
+
(<any>localVarRequestOptions).formData = localVarFormParams;
|
|
1668
|
+
} else {
|
|
1669
|
+
localVarRequestOptions.form = localVarFormParams;
|
|
1670
|
+
}
|
|
1671
|
+
}
|
|
1672
|
+
return new Promise<{
|
|
1673
|
+
response: http.IncomingMessage;
|
|
1674
|
+
body: DeleteUsers200Response;
|
|
1675
|
+
}>((resolve, reject) => {
|
|
1676
|
+
localVarRequest(
|
|
1677
|
+
localVarRequestOptions,
|
|
1678
|
+
(error, response, body) => {
|
|
1679
|
+
if (error) {
|
|
1680
|
+
reject(error);
|
|
1681
|
+
} else {
|
|
1682
|
+
if (
|
|
1683
|
+
response.statusCode &&
|
|
1684
|
+
response.statusCode >= 200 &&
|
|
1685
|
+
response.statusCode <= 299
|
|
1686
|
+
) {
|
|
1687
|
+
body = ObjectSerializer.deserialize(
|
|
1688
|
+
body,
|
|
1689
|
+
'DeleteUsers200Response'
|
|
1690
|
+
);
|
|
1691
|
+
resolve({ response: response, body: body });
|
|
1692
|
+
} else {
|
|
1693
|
+
reject(
|
|
1694
|
+
new HttpError(
|
|
1695
|
+
response,
|
|
1696
|
+
body,
|
|
1697
|
+
response.statusCode
|
|
1698
|
+
)
|
|
1699
|
+
);
|
|
1700
|
+
}
|
|
1701
|
+
}
|
|
1702
|
+
}
|
|
1703
|
+
);
|
|
1704
|
+
});
|
|
1705
|
+
});
|
|
1706
|
+
}
|
|
1707
|
+
/**
|
|
1708
|
+
* Removes one or multiple users. When called, this endpoint may generate the `Group Memberships Deleted` [Audit Trail](/tag/Audit-Trail) event. The rate limit for this endpoint is 60 requests per minute, which is lower than the default due to access pattern restrictions. Once reached, this endpoint will respond with the 429 HTTP status code with headers indicating the limit parameters. See [Rate Limiting](/#tag/Rate-Limits) for more information.
|
|
1709
|
+
* @summary Delete Users
|
|
1710
|
+
* @param userIds The ids of the users to remove. This parameter exists in alpha.
|
|
1711
|
+
*/
|
|
1712
|
+
public async deleteUsersBeta(
|
|
1713
|
+
userIds: Array<string>,
|
|
1714
|
+
options: { headers: { [name: string]: string } } = { headers: {} }
|
|
1715
|
+
): Promise<{
|
|
1716
|
+
response: http.IncomingMessage;
|
|
1717
|
+
body: DeleteUsers200Response;
|
|
1718
|
+
}> {
|
|
1719
|
+
const localVarPath = this.basePath + '/users';
|
|
1720
|
+
let localVarQueryParameters: any = {};
|
|
1721
|
+
let localVarHeaderParams: any = (<any>Object).assign(
|
|
1722
|
+
{},
|
|
1723
|
+
this._defaultHeaders
|
|
1724
|
+
);
|
|
1725
|
+
const produces = [
|
|
1726
|
+
'application/vnd.segment.v1beta+json',
|
|
1727
|
+
'application/json',
|
|
1728
|
+
];
|
|
1729
|
+
if (produces.indexOf('application/json') >= 0) {
|
|
1730
|
+
localVarHeaderParams.Accept = produces[0];
|
|
1731
|
+
} else {
|
|
1732
|
+
localVarHeaderParams.Accept = 'application/json';
|
|
1733
|
+
}
|
|
1734
|
+
let localVarFormParams: any = {};
|
|
1735
|
+
|
|
1736
|
+
// verify required parameter 'userIds' is not null or undefined
|
|
1737
|
+
if (userIds === null || userIds === undefined) {
|
|
1738
|
+
throw new Error(
|
|
1739
|
+
'Required parameter userIds was null or undefined when calling deleteUsersBeta.'
|
|
1740
|
+
);
|
|
1741
|
+
}
|
|
1742
|
+
|
|
1743
|
+
if (userIds !== undefined) {
|
|
1744
|
+
localVarQueryParameters['userIds'] = ObjectSerializer.serialize(
|
|
1745
|
+
userIds,
|
|
1746
|
+
'Array<string>'
|
|
1747
|
+
);
|
|
1748
|
+
}
|
|
1749
|
+
|
|
1750
|
+
(<any>Object).assign(localVarHeaderParams, options.headers);
|
|
1751
|
+
|
|
1752
|
+
let localVarUseFormData = false;
|
|
1753
|
+
|
|
1754
|
+
let localVarRequestOptions: localVarRequest.Options = {
|
|
1755
|
+
method: 'DELETE',
|
|
1756
|
+
qs: localVarQueryParameters,
|
|
1757
|
+
headers: localVarHeaderParams,
|
|
1758
|
+
uri: localVarPath,
|
|
1759
|
+
useQuerystring: this._useQuerystring,
|
|
1760
|
+
json: true,
|
|
1761
|
+
};
|
|
1762
|
+
|
|
1763
|
+
let authenticationPromise = Promise.resolve();
|
|
1764
|
+
if (this.authentications.token.accessToken) {
|
|
1765
|
+
authenticationPromise = authenticationPromise.then(() =>
|
|
1766
|
+
this.authentications.token.applyToRequest(
|
|
1767
|
+
localVarRequestOptions
|
|
1768
|
+
)
|
|
1769
|
+
);
|
|
1770
|
+
}
|
|
1771
|
+
authenticationPromise = authenticationPromise.then(() =>
|
|
1772
|
+
this.authentications.default.applyToRequest(localVarRequestOptions)
|
|
1773
|
+
);
|
|
1774
|
+
|
|
1775
|
+
let interceptorPromise = authenticationPromise;
|
|
1776
|
+
for (const interceptor of this.interceptors) {
|
|
1777
|
+
interceptorPromise = interceptorPromise.then(() =>
|
|
1778
|
+
interceptor(localVarRequestOptions)
|
|
1779
|
+
);
|
|
1780
|
+
}
|
|
1781
|
+
|
|
1782
|
+
return interceptorPromise.then(() => {
|
|
1783
|
+
if (Object.keys(localVarFormParams).length) {
|
|
1784
|
+
if (localVarUseFormData) {
|
|
1785
|
+
(<any>localVarRequestOptions).formData = localVarFormParams;
|
|
1786
|
+
} else {
|
|
1787
|
+
localVarRequestOptions.form = localVarFormParams;
|
|
1788
|
+
}
|
|
1789
|
+
}
|
|
1790
|
+
return new Promise<{
|
|
1791
|
+
response: http.IncomingMessage;
|
|
1792
|
+
body: DeleteUsers200Response;
|
|
1793
|
+
}>((resolve, reject) => {
|
|
1794
|
+
localVarRequest(
|
|
1795
|
+
localVarRequestOptions,
|
|
1796
|
+
(error, response, body) => {
|
|
1797
|
+
if (error) {
|
|
1798
|
+
reject(error);
|
|
1799
|
+
} else {
|
|
1800
|
+
if (
|
|
1801
|
+
response.statusCode &&
|
|
1802
|
+
response.statusCode >= 200 &&
|
|
1803
|
+
response.statusCode <= 299
|
|
1804
|
+
) {
|
|
1805
|
+
body = ObjectSerializer.deserialize(
|
|
1806
|
+
body,
|
|
1807
|
+
'DeleteUsers200Response'
|
|
1808
|
+
);
|
|
1809
|
+
resolve({ response: response, body: body });
|
|
1810
|
+
} else {
|
|
1811
|
+
reject(
|
|
1812
|
+
new HttpError(
|
|
1813
|
+
response,
|
|
1814
|
+
body,
|
|
1815
|
+
response.statusCode
|
|
1816
|
+
)
|
|
1817
|
+
);
|
|
1818
|
+
}
|
|
1819
|
+
}
|
|
1820
|
+
}
|
|
1821
|
+
);
|
|
1822
|
+
});
|
|
1823
|
+
});
|
|
1824
|
+
}
|
|
1825
|
+
/**
|
|
1826
|
+
* Removes one or multiple users. When called, this endpoint may generate the `Group Memberships Deleted` [Audit Trail](/tag/Audit-Trail) event. The rate limit for this endpoint is 60 requests per minute, which is lower than the default due to access pattern restrictions. Once reached, this endpoint will respond with the 429 HTTP status code with headers indicating the limit parameters. See [Rate Limiting](/#tag/Rate-Limits) for more information.
|
|
1827
|
+
* @summary Delete Users
|
|
1828
|
+
* @param userIds The ids of the users to remove. This parameter exists in alpha.
|
|
1829
|
+
*/
|
|
1830
|
+
public async deleteUsersCurrent(
|
|
1831
|
+
userIds: Array<string>,
|
|
1832
|
+
options: { headers: { [name: string]: string } } = { headers: {} }
|
|
1833
|
+
): Promise<{
|
|
1834
|
+
response: http.IncomingMessage;
|
|
1835
|
+
body: DeleteUsers200Response;
|
|
1836
|
+
}> {
|
|
1837
|
+
const localVarPath = this.basePath + '/users';
|
|
1838
|
+
let localVarQueryParameters: any = {};
|
|
1839
|
+
let localVarHeaderParams: any = (<any>Object).assign(
|
|
1840
|
+
{},
|
|
1841
|
+
this._defaultHeaders
|
|
1842
|
+
);
|
|
1843
|
+
const produces = ['application/json'];
|
|
1844
|
+
if (produces.indexOf('application/json') >= 0) {
|
|
1845
|
+
localVarHeaderParams.Accept = produces[0];
|
|
1846
|
+
} else {
|
|
1847
|
+
localVarHeaderParams.Accept = 'application/json';
|
|
1848
|
+
}
|
|
1849
|
+
let localVarFormParams: any = {};
|
|
1850
|
+
|
|
1851
|
+
// verify required parameter 'userIds' is not null or undefined
|
|
1852
|
+
if (userIds === null || userIds === undefined) {
|
|
1853
|
+
throw new Error(
|
|
1854
|
+
'Required parameter userIds was null or undefined when calling deleteUsersCurrent.'
|
|
1855
|
+
);
|
|
1856
|
+
}
|
|
1857
|
+
|
|
1858
|
+
if (userIds !== undefined) {
|
|
1859
|
+
localVarQueryParameters['userIds'] = ObjectSerializer.serialize(
|
|
1860
|
+
userIds,
|
|
1861
|
+
'Array<string>'
|
|
1862
|
+
);
|
|
1863
|
+
}
|
|
1864
|
+
|
|
1865
|
+
(<any>Object).assign(localVarHeaderParams, options.headers);
|
|
1866
|
+
|
|
1867
|
+
let localVarUseFormData = false;
|
|
1868
|
+
|
|
1869
|
+
let localVarRequestOptions: localVarRequest.Options = {
|
|
1870
|
+
method: 'DELETE',
|
|
1871
|
+
qs: localVarQueryParameters,
|
|
1872
|
+
headers: localVarHeaderParams,
|
|
1873
|
+
uri: localVarPath,
|
|
1874
|
+
useQuerystring: this._useQuerystring,
|
|
1875
|
+
json: true,
|
|
1876
|
+
};
|
|
1877
|
+
|
|
1878
|
+
let authenticationPromise = Promise.resolve();
|
|
1879
|
+
if (this.authentications.token.accessToken) {
|
|
1880
|
+
authenticationPromise = authenticationPromise.then(() =>
|
|
1881
|
+
this.authentications.token.applyToRequest(
|
|
1882
|
+
localVarRequestOptions
|
|
1883
|
+
)
|
|
1884
|
+
);
|
|
1885
|
+
}
|
|
1886
|
+
authenticationPromise = authenticationPromise.then(() =>
|
|
1887
|
+
this.authentications.default.applyToRequest(localVarRequestOptions)
|
|
1888
|
+
);
|
|
1889
|
+
|
|
1890
|
+
let interceptorPromise = authenticationPromise;
|
|
1891
|
+
for (const interceptor of this.interceptors) {
|
|
1892
|
+
interceptorPromise = interceptorPromise.then(() =>
|
|
1893
|
+
interceptor(localVarRequestOptions)
|
|
1894
|
+
);
|
|
1895
|
+
}
|
|
1896
|
+
|
|
1897
|
+
return interceptorPromise.then(() => {
|
|
1898
|
+
if (Object.keys(localVarFormParams).length) {
|
|
1899
|
+
if (localVarUseFormData) {
|
|
1900
|
+
(<any>localVarRequestOptions).formData = localVarFormParams;
|
|
1901
|
+
} else {
|
|
1902
|
+
localVarRequestOptions.form = localVarFormParams;
|
|
1903
|
+
}
|
|
1904
|
+
}
|
|
1905
|
+
return new Promise<{
|
|
1906
|
+
response: http.IncomingMessage;
|
|
1907
|
+
body: DeleteUsers200Response;
|
|
1908
|
+
}>((resolve, reject) => {
|
|
1909
|
+
localVarRequest(
|
|
1910
|
+
localVarRequestOptions,
|
|
1911
|
+
(error, response, body) => {
|
|
1912
|
+
if (error) {
|
|
1913
|
+
reject(error);
|
|
1914
|
+
} else {
|
|
1915
|
+
if (
|
|
1916
|
+
response.statusCode &&
|
|
1917
|
+
response.statusCode >= 200 &&
|
|
1918
|
+
response.statusCode <= 299
|
|
1919
|
+
) {
|
|
1920
|
+
body = ObjectSerializer.deserialize(
|
|
1921
|
+
body,
|
|
1922
|
+
'DeleteUsers200Response'
|
|
1923
|
+
);
|
|
1924
|
+
resolve({ response: response, body: body });
|
|
1925
|
+
} else {
|
|
1926
|
+
reject(
|
|
1927
|
+
new HttpError(
|
|
1928
|
+
response,
|
|
1929
|
+
body,
|
|
1930
|
+
response.statusCode
|
|
1931
|
+
)
|
|
1932
|
+
);
|
|
1933
|
+
}
|
|
1934
|
+
}
|
|
1935
|
+
}
|
|
1936
|
+
);
|
|
1937
|
+
});
|
|
1938
|
+
});
|
|
1939
|
+
}
|
|
1940
|
+
/**
|
|
1941
|
+
* Removes one or multiple users. When called, this endpoint may generate the `Group Memberships Deleted` [Audit Trail](/tag/Audit-Trail) event. The rate limit for this endpoint is 60 requests per minute, which is lower than the default due to access pattern restrictions. Once reached, this endpoint will respond with the 429 HTTP status code with headers indicating the limit parameters. See [Rate Limiting](/#tag/Rate-Limits) for more information.
|
|
1942
|
+
* @summary Delete Users
|
|
1943
|
+
* @param userIds The ids of the users to remove. This parameter exists in alpha.
|
|
1944
|
+
*/
|
|
1945
|
+
public async deleteUsersV1(
|
|
1946
|
+
userIds: Array<string>,
|
|
1947
|
+
options: { headers: { [name: string]: string } } = { headers: {} }
|
|
1948
|
+
): Promise<{
|
|
1949
|
+
response: http.IncomingMessage;
|
|
1950
|
+
body: DeleteUsers200Response;
|
|
1951
|
+
}> {
|
|
1952
|
+
const localVarPath = this.basePath + '/users';
|
|
1953
|
+
let localVarQueryParameters: any = {};
|
|
1954
|
+
let localVarHeaderParams: any = (<any>Object).assign(
|
|
1955
|
+
{},
|
|
1956
|
+
this._defaultHeaders
|
|
1957
|
+
);
|
|
1958
|
+
const produces = [
|
|
1959
|
+
'application/vnd.segment.v1+json',
|
|
1960
|
+
'application/json',
|
|
1961
|
+
];
|
|
1962
|
+
if (produces.indexOf('application/json') >= 0) {
|
|
1963
|
+
localVarHeaderParams.Accept = produces[0];
|
|
1964
|
+
} else {
|
|
1965
|
+
localVarHeaderParams.Accept = 'application/json';
|
|
1966
|
+
}
|
|
1967
|
+
let localVarFormParams: any = {};
|
|
1968
|
+
|
|
1969
|
+
// verify required parameter 'userIds' is not null or undefined
|
|
1970
|
+
if (userIds === null || userIds === undefined) {
|
|
1971
|
+
throw new Error(
|
|
1972
|
+
'Required parameter userIds was null or undefined when calling deleteUsersV1.'
|
|
1973
|
+
);
|
|
1974
|
+
}
|
|
1975
|
+
|
|
1976
|
+
if (userIds !== undefined) {
|
|
1977
|
+
localVarQueryParameters['userIds'] = ObjectSerializer.serialize(
|
|
1978
|
+
userIds,
|
|
1979
|
+
'Array<string>'
|
|
1980
|
+
);
|
|
1981
|
+
}
|
|
1982
|
+
|
|
1983
|
+
(<any>Object).assign(localVarHeaderParams, options.headers);
|
|
1984
|
+
|
|
1985
|
+
let localVarUseFormData = false;
|
|
1986
|
+
|
|
1987
|
+
let localVarRequestOptions: localVarRequest.Options = {
|
|
1988
|
+
method: 'DELETE',
|
|
1989
|
+
qs: localVarQueryParameters,
|
|
1990
|
+
headers: localVarHeaderParams,
|
|
1991
|
+
uri: localVarPath,
|
|
1992
|
+
useQuerystring: this._useQuerystring,
|
|
1993
|
+
json: true,
|
|
1994
|
+
};
|
|
1995
|
+
|
|
1996
|
+
let authenticationPromise = Promise.resolve();
|
|
1997
|
+
if (this.authentications.token.accessToken) {
|
|
1998
|
+
authenticationPromise = authenticationPromise.then(() =>
|
|
1999
|
+
this.authentications.token.applyToRequest(
|
|
2000
|
+
localVarRequestOptions
|
|
2001
|
+
)
|
|
2002
|
+
);
|
|
2003
|
+
}
|
|
2004
|
+
authenticationPromise = authenticationPromise.then(() =>
|
|
2005
|
+
this.authentications.default.applyToRequest(localVarRequestOptions)
|
|
2006
|
+
);
|
|
2007
|
+
|
|
2008
|
+
let interceptorPromise = authenticationPromise;
|
|
2009
|
+
for (const interceptor of this.interceptors) {
|
|
2010
|
+
interceptorPromise = interceptorPromise.then(() =>
|
|
2011
|
+
interceptor(localVarRequestOptions)
|
|
2012
|
+
);
|
|
2013
|
+
}
|
|
2014
|
+
|
|
2015
|
+
return interceptorPromise.then(() => {
|
|
2016
|
+
if (Object.keys(localVarFormParams).length) {
|
|
2017
|
+
if (localVarUseFormData) {
|
|
2018
|
+
(<any>localVarRequestOptions).formData = localVarFormParams;
|
|
2019
|
+
} else {
|
|
2020
|
+
localVarRequestOptions.form = localVarFormParams;
|
|
2021
|
+
}
|
|
2022
|
+
}
|
|
2023
|
+
return new Promise<{
|
|
2024
|
+
response: http.IncomingMessage;
|
|
2025
|
+
body: DeleteUsers200Response;
|
|
2026
|
+
}>((resolve, reject) => {
|
|
2027
|
+
localVarRequest(
|
|
2028
|
+
localVarRequestOptions,
|
|
2029
|
+
(error, response, body) => {
|
|
2030
|
+
if (error) {
|
|
2031
|
+
reject(error);
|
|
2032
|
+
} else {
|
|
2033
|
+
if (
|
|
2034
|
+
response.statusCode &&
|
|
2035
|
+
response.statusCode >= 200 &&
|
|
2036
|
+
response.statusCode <= 299
|
|
2037
|
+
) {
|
|
2038
|
+
body = ObjectSerializer.deserialize(
|
|
2039
|
+
body,
|
|
2040
|
+
'DeleteUsers200Response'
|
|
2041
|
+
);
|
|
2042
|
+
resolve({ response: response, body: body });
|
|
2043
|
+
} else {
|
|
2044
|
+
reject(
|
|
2045
|
+
new HttpError(
|
|
2046
|
+
response,
|
|
2047
|
+
body,
|
|
2048
|
+
response.statusCode
|
|
2049
|
+
)
|
|
2050
|
+
);
|
|
2051
|
+
}
|
|
2052
|
+
}
|
|
2053
|
+
}
|
|
2054
|
+
);
|
|
2055
|
+
});
|
|
2056
|
+
});
|
|
2057
|
+
}
|
|
2058
|
+
/**
|
|
2059
|
+
* Returns a user given their id.
|
|
2060
|
+
* @summary Get User
|
|
2061
|
+
* @param userId
|
|
2062
|
+
*/
|
|
2063
|
+
public async getUserAlpha(
|
|
2064
|
+
userId: string,
|
|
2065
|
+
options: { headers: { [name: string]: string } } = { headers: {} }
|
|
2066
|
+
): Promise<{ response: http.IncomingMessage; body: GetUser200Response }> {
|
|
2067
|
+
const localVarPath =
|
|
2068
|
+
this.basePath +
|
|
2069
|
+
'/users/{userId}'.replace(
|
|
2070
|
+
'{' + 'userId' + '}',
|
|
2071
|
+
encodeURIComponent(String(userId))
|
|
2072
|
+
);
|
|
2073
|
+
let localVarQueryParameters: any = {};
|
|
2074
|
+
let localVarHeaderParams: any = (<any>Object).assign(
|
|
2075
|
+
{},
|
|
2076
|
+
this._defaultHeaders
|
|
2077
|
+
);
|
|
2078
|
+
const produces = [
|
|
2079
|
+
'application/vnd.segment.v1alpha+json',
|
|
2080
|
+
'application/json',
|
|
2081
|
+
];
|
|
2082
|
+
if (produces.indexOf('application/json') >= 0) {
|
|
2083
|
+
localVarHeaderParams.Accept = produces[0];
|
|
2084
|
+
} else {
|
|
2085
|
+
localVarHeaderParams.Accept = 'application/json';
|
|
2086
|
+
}
|
|
2087
|
+
let localVarFormParams: any = {};
|
|
2088
|
+
|
|
2089
|
+
// verify required parameter 'userId' is not null or undefined
|
|
2090
|
+
if (userId === null || userId === undefined) {
|
|
2091
|
+
throw new Error(
|
|
2092
|
+
'Required parameter userId was null or undefined when calling getUserAlpha.'
|
|
2093
|
+
);
|
|
2094
|
+
}
|
|
2095
|
+
|
|
2096
|
+
(<any>Object).assign(localVarHeaderParams, options.headers);
|
|
2097
|
+
|
|
2098
|
+
let localVarUseFormData = false;
|
|
2099
|
+
|
|
2100
|
+
let localVarRequestOptions: localVarRequest.Options = {
|
|
2101
|
+
method: 'GET',
|
|
2102
|
+
qs: localVarQueryParameters,
|
|
2103
|
+
headers: localVarHeaderParams,
|
|
2104
|
+
uri: localVarPath,
|
|
2105
|
+
useQuerystring: this._useQuerystring,
|
|
2106
|
+
json: true,
|
|
2107
|
+
};
|
|
2108
|
+
|
|
2109
|
+
let authenticationPromise = Promise.resolve();
|
|
2110
|
+
if (this.authentications.token.accessToken) {
|
|
2111
|
+
authenticationPromise = authenticationPromise.then(() =>
|
|
2112
|
+
this.authentications.token.applyToRequest(
|
|
2113
|
+
localVarRequestOptions
|
|
2114
|
+
)
|
|
2115
|
+
);
|
|
2116
|
+
}
|
|
2117
|
+
authenticationPromise = authenticationPromise.then(() =>
|
|
2118
|
+
this.authentications.default.applyToRequest(localVarRequestOptions)
|
|
2119
|
+
);
|
|
2120
|
+
|
|
2121
|
+
let interceptorPromise = authenticationPromise;
|
|
2122
|
+
for (const interceptor of this.interceptors) {
|
|
2123
|
+
interceptorPromise = interceptorPromise.then(() =>
|
|
2124
|
+
interceptor(localVarRequestOptions)
|
|
2125
|
+
);
|
|
2126
|
+
}
|
|
2127
|
+
|
|
2128
|
+
return interceptorPromise.then(() => {
|
|
2129
|
+
if (Object.keys(localVarFormParams).length) {
|
|
2130
|
+
if (localVarUseFormData) {
|
|
2131
|
+
(<any>localVarRequestOptions).formData = localVarFormParams;
|
|
2132
|
+
} else {
|
|
2133
|
+
localVarRequestOptions.form = localVarFormParams;
|
|
2134
|
+
}
|
|
2135
|
+
}
|
|
2136
|
+
return new Promise<{
|
|
2137
|
+
response: http.IncomingMessage;
|
|
2138
|
+
body: GetUser200Response;
|
|
2139
|
+
}>((resolve, reject) => {
|
|
2140
|
+
localVarRequest(
|
|
2141
|
+
localVarRequestOptions,
|
|
2142
|
+
(error, response, body) => {
|
|
2143
|
+
if (error) {
|
|
2144
|
+
reject(error);
|
|
2145
|
+
} else {
|
|
2146
|
+
if (
|
|
2147
|
+
response.statusCode &&
|
|
2148
|
+
response.statusCode >= 200 &&
|
|
2149
|
+
response.statusCode <= 299
|
|
2150
|
+
) {
|
|
2151
|
+
body = ObjectSerializer.deserialize(
|
|
2152
|
+
body,
|
|
2153
|
+
'GetUser200Response'
|
|
2154
|
+
);
|
|
2155
|
+
resolve({ response: response, body: body });
|
|
2156
|
+
} else {
|
|
2157
|
+
reject(
|
|
2158
|
+
new HttpError(
|
|
2159
|
+
response,
|
|
2160
|
+
body,
|
|
2161
|
+
response.statusCode
|
|
2162
|
+
)
|
|
2163
|
+
);
|
|
2164
|
+
}
|
|
2165
|
+
}
|
|
2166
|
+
}
|
|
2167
|
+
);
|
|
2168
|
+
});
|
|
2169
|
+
});
|
|
2170
|
+
}
|
|
2171
|
+
/**
|
|
2172
|
+
* Returns a user given their id.
|
|
2173
|
+
* @summary Get User
|
|
2174
|
+
* @param userId
|
|
2175
|
+
*/
|
|
2176
|
+
public async getUserBeta(
|
|
2177
|
+
userId: string,
|
|
2178
|
+
options: { headers: { [name: string]: string } } = { headers: {} }
|
|
2179
|
+
): Promise<{ response: http.IncomingMessage; body: GetUser200Response }> {
|
|
2180
|
+
const localVarPath =
|
|
2181
|
+
this.basePath +
|
|
2182
|
+
'/users/{userId}'.replace(
|
|
2183
|
+
'{' + 'userId' + '}',
|
|
2184
|
+
encodeURIComponent(String(userId))
|
|
2185
|
+
);
|
|
2186
|
+
let localVarQueryParameters: any = {};
|
|
2187
|
+
let localVarHeaderParams: any = (<any>Object).assign(
|
|
2188
|
+
{},
|
|
2189
|
+
this._defaultHeaders
|
|
2190
|
+
);
|
|
2191
|
+
const produces = [
|
|
2192
|
+
'application/vnd.segment.v1beta+json',
|
|
2193
|
+
'application/json',
|
|
2194
|
+
];
|
|
2195
|
+
if (produces.indexOf('application/json') >= 0) {
|
|
2196
|
+
localVarHeaderParams.Accept = produces[0];
|
|
2197
|
+
} else {
|
|
2198
|
+
localVarHeaderParams.Accept = 'application/json';
|
|
2199
|
+
}
|
|
2200
|
+
let localVarFormParams: any = {};
|
|
2201
|
+
|
|
2202
|
+
// verify required parameter 'userId' is not null or undefined
|
|
2203
|
+
if (userId === null || userId === undefined) {
|
|
2204
|
+
throw new Error(
|
|
2205
|
+
'Required parameter userId was null or undefined when calling getUserBeta.'
|
|
2206
|
+
);
|
|
2207
|
+
}
|
|
2208
|
+
|
|
2209
|
+
(<any>Object).assign(localVarHeaderParams, options.headers);
|
|
2210
|
+
|
|
2211
|
+
let localVarUseFormData = false;
|
|
2212
|
+
|
|
2213
|
+
let localVarRequestOptions: localVarRequest.Options = {
|
|
2214
|
+
method: 'GET',
|
|
2215
|
+
qs: localVarQueryParameters,
|
|
2216
|
+
headers: localVarHeaderParams,
|
|
2217
|
+
uri: localVarPath,
|
|
2218
|
+
useQuerystring: this._useQuerystring,
|
|
2219
|
+
json: true,
|
|
2220
|
+
};
|
|
2221
|
+
|
|
2222
|
+
let authenticationPromise = Promise.resolve();
|
|
2223
|
+
if (this.authentications.token.accessToken) {
|
|
2224
|
+
authenticationPromise = authenticationPromise.then(() =>
|
|
2225
|
+
this.authentications.token.applyToRequest(
|
|
2226
|
+
localVarRequestOptions
|
|
2227
|
+
)
|
|
2228
|
+
);
|
|
2229
|
+
}
|
|
2230
|
+
authenticationPromise = authenticationPromise.then(() =>
|
|
2231
|
+
this.authentications.default.applyToRequest(localVarRequestOptions)
|
|
2232
|
+
);
|
|
2233
|
+
|
|
2234
|
+
let interceptorPromise = authenticationPromise;
|
|
2235
|
+
for (const interceptor of this.interceptors) {
|
|
2236
|
+
interceptorPromise = interceptorPromise.then(() =>
|
|
2237
|
+
interceptor(localVarRequestOptions)
|
|
2238
|
+
);
|
|
2239
|
+
}
|
|
2240
|
+
|
|
2241
|
+
return interceptorPromise.then(() => {
|
|
2242
|
+
if (Object.keys(localVarFormParams).length) {
|
|
2243
|
+
if (localVarUseFormData) {
|
|
2244
|
+
(<any>localVarRequestOptions).formData = localVarFormParams;
|
|
2245
|
+
} else {
|
|
2246
|
+
localVarRequestOptions.form = localVarFormParams;
|
|
2247
|
+
}
|
|
2248
|
+
}
|
|
2249
|
+
return new Promise<{
|
|
2250
|
+
response: http.IncomingMessage;
|
|
2251
|
+
body: GetUser200Response;
|
|
2252
|
+
}>((resolve, reject) => {
|
|
2253
|
+
localVarRequest(
|
|
2254
|
+
localVarRequestOptions,
|
|
2255
|
+
(error, response, body) => {
|
|
2256
|
+
if (error) {
|
|
2257
|
+
reject(error);
|
|
2258
|
+
} else {
|
|
2259
|
+
if (
|
|
2260
|
+
response.statusCode &&
|
|
2261
|
+
response.statusCode >= 200 &&
|
|
2262
|
+
response.statusCode <= 299
|
|
2263
|
+
) {
|
|
2264
|
+
body = ObjectSerializer.deserialize(
|
|
2265
|
+
body,
|
|
2266
|
+
'GetUser200Response'
|
|
2267
|
+
);
|
|
2268
|
+
resolve({ response: response, body: body });
|
|
2269
|
+
} else {
|
|
2270
|
+
reject(
|
|
2271
|
+
new HttpError(
|
|
2272
|
+
response,
|
|
2273
|
+
body,
|
|
2274
|
+
response.statusCode
|
|
2275
|
+
)
|
|
2276
|
+
);
|
|
2277
|
+
}
|
|
2278
|
+
}
|
|
2279
|
+
}
|
|
2280
|
+
);
|
|
2281
|
+
});
|
|
2282
|
+
});
|
|
2283
|
+
}
|
|
2284
|
+
/**
|
|
2285
|
+
* Returns a user given their id.
|
|
2286
|
+
* @summary Get User
|
|
2287
|
+
* @param userId
|
|
2288
|
+
*/
|
|
2289
|
+
public async getUserCurrent(
|
|
2290
|
+
userId: string,
|
|
2291
|
+
options: { headers: { [name: string]: string } } = { headers: {} }
|
|
2292
|
+
): Promise<{ response: http.IncomingMessage; body: GetUser200Response }> {
|
|
2293
|
+
const localVarPath =
|
|
2294
|
+
this.basePath +
|
|
2295
|
+
'/users/{userId}'.replace(
|
|
2296
|
+
'{' + 'userId' + '}',
|
|
2297
|
+
encodeURIComponent(String(userId))
|
|
2298
|
+
);
|
|
2299
|
+
let localVarQueryParameters: any = {};
|
|
2300
|
+
let localVarHeaderParams: any = (<any>Object).assign(
|
|
2301
|
+
{},
|
|
2302
|
+
this._defaultHeaders
|
|
2303
|
+
);
|
|
2304
|
+
const produces = ['application/json'];
|
|
2305
|
+
if (produces.indexOf('application/json') >= 0) {
|
|
2306
|
+
localVarHeaderParams.Accept = produces[0];
|
|
2307
|
+
} else {
|
|
2308
|
+
localVarHeaderParams.Accept = 'application/json';
|
|
2309
|
+
}
|
|
2310
|
+
let localVarFormParams: any = {};
|
|
2311
|
+
|
|
2312
|
+
// verify required parameter 'userId' is not null or undefined
|
|
2313
|
+
if (userId === null || userId === undefined) {
|
|
2314
|
+
throw new Error(
|
|
2315
|
+
'Required parameter userId was null or undefined when calling getUserCurrent.'
|
|
2316
|
+
);
|
|
2317
|
+
}
|
|
2318
|
+
|
|
2319
|
+
(<any>Object).assign(localVarHeaderParams, options.headers);
|
|
2320
|
+
|
|
2321
|
+
let localVarUseFormData = false;
|
|
2322
|
+
|
|
2323
|
+
let localVarRequestOptions: localVarRequest.Options = {
|
|
2324
|
+
method: 'GET',
|
|
2325
|
+
qs: localVarQueryParameters,
|
|
2326
|
+
headers: localVarHeaderParams,
|
|
2327
|
+
uri: localVarPath,
|
|
2328
|
+
useQuerystring: this._useQuerystring,
|
|
2329
|
+
json: true,
|
|
2330
|
+
};
|
|
2331
|
+
|
|
2332
|
+
let authenticationPromise = Promise.resolve();
|
|
2333
|
+
if (this.authentications.token.accessToken) {
|
|
2334
|
+
authenticationPromise = authenticationPromise.then(() =>
|
|
2335
|
+
this.authentications.token.applyToRequest(
|
|
2336
|
+
localVarRequestOptions
|
|
2337
|
+
)
|
|
2338
|
+
);
|
|
2339
|
+
}
|
|
2340
|
+
authenticationPromise = authenticationPromise.then(() =>
|
|
2341
|
+
this.authentications.default.applyToRequest(localVarRequestOptions)
|
|
2342
|
+
);
|
|
2343
|
+
|
|
2344
|
+
let interceptorPromise = authenticationPromise;
|
|
2345
|
+
for (const interceptor of this.interceptors) {
|
|
2346
|
+
interceptorPromise = interceptorPromise.then(() =>
|
|
2347
|
+
interceptor(localVarRequestOptions)
|
|
2348
|
+
);
|
|
2349
|
+
}
|
|
2350
|
+
|
|
2351
|
+
return interceptorPromise.then(() => {
|
|
2352
|
+
if (Object.keys(localVarFormParams).length) {
|
|
2353
|
+
if (localVarUseFormData) {
|
|
2354
|
+
(<any>localVarRequestOptions).formData = localVarFormParams;
|
|
2355
|
+
} else {
|
|
2356
|
+
localVarRequestOptions.form = localVarFormParams;
|
|
2357
|
+
}
|
|
2358
|
+
}
|
|
2359
|
+
return new Promise<{
|
|
2360
|
+
response: http.IncomingMessage;
|
|
2361
|
+
body: GetUser200Response;
|
|
2362
|
+
}>((resolve, reject) => {
|
|
2363
|
+
localVarRequest(
|
|
2364
|
+
localVarRequestOptions,
|
|
2365
|
+
(error, response, body) => {
|
|
2366
|
+
if (error) {
|
|
2367
|
+
reject(error);
|
|
2368
|
+
} else {
|
|
2369
|
+
if (
|
|
2370
|
+
response.statusCode &&
|
|
2371
|
+
response.statusCode >= 200 &&
|
|
2372
|
+
response.statusCode <= 299
|
|
2373
|
+
) {
|
|
2374
|
+
body = ObjectSerializer.deserialize(
|
|
2375
|
+
body,
|
|
2376
|
+
'GetUser200Response'
|
|
2377
|
+
);
|
|
2378
|
+
resolve({ response: response, body: body });
|
|
2379
|
+
} else {
|
|
2380
|
+
reject(
|
|
2381
|
+
new HttpError(
|
|
2382
|
+
response,
|
|
2383
|
+
body,
|
|
2384
|
+
response.statusCode
|
|
2385
|
+
)
|
|
2386
|
+
);
|
|
2387
|
+
}
|
|
2388
|
+
}
|
|
2389
|
+
}
|
|
2390
|
+
);
|
|
2391
|
+
});
|
|
2392
|
+
});
|
|
2393
|
+
}
|
|
2394
|
+
/**
|
|
2395
|
+
* Returns a user given their id.
|
|
2396
|
+
* @summary Get User
|
|
2397
|
+
* @param userId
|
|
2398
|
+
*/
|
|
2399
|
+
public async getUserV1(
|
|
2400
|
+
userId: string,
|
|
2401
|
+
options: { headers: { [name: string]: string } } = { headers: {} }
|
|
2402
|
+
): Promise<{ response: http.IncomingMessage; body: GetUser200Response }> {
|
|
2403
|
+
const localVarPath =
|
|
2404
|
+
this.basePath +
|
|
2405
|
+
'/users/{userId}'.replace(
|
|
2406
|
+
'{' + 'userId' + '}',
|
|
2407
|
+
encodeURIComponent(String(userId))
|
|
2408
|
+
);
|
|
2409
|
+
let localVarQueryParameters: any = {};
|
|
2410
|
+
let localVarHeaderParams: any = (<any>Object).assign(
|
|
2411
|
+
{},
|
|
2412
|
+
this._defaultHeaders
|
|
2413
|
+
);
|
|
2414
|
+
const produces = [
|
|
2415
|
+
'application/vnd.segment.v1+json',
|
|
2416
|
+
'application/json',
|
|
2417
|
+
];
|
|
2418
|
+
if (produces.indexOf('application/json') >= 0) {
|
|
2419
|
+
localVarHeaderParams.Accept = produces[0];
|
|
2420
|
+
} else {
|
|
2421
|
+
localVarHeaderParams.Accept = 'application/json';
|
|
2422
|
+
}
|
|
2423
|
+
let localVarFormParams: any = {};
|
|
2424
|
+
|
|
2425
|
+
// verify required parameter 'userId' is not null or undefined
|
|
2426
|
+
if (userId === null || userId === undefined) {
|
|
2427
|
+
throw new Error(
|
|
2428
|
+
'Required parameter userId was null or undefined when calling getUserV1.'
|
|
2429
|
+
);
|
|
2430
|
+
}
|
|
2431
|
+
|
|
2432
|
+
(<any>Object).assign(localVarHeaderParams, options.headers);
|
|
2433
|
+
|
|
2434
|
+
let localVarUseFormData = false;
|
|
2435
|
+
|
|
2436
|
+
let localVarRequestOptions: localVarRequest.Options = {
|
|
2437
|
+
method: 'GET',
|
|
2438
|
+
qs: localVarQueryParameters,
|
|
2439
|
+
headers: localVarHeaderParams,
|
|
2440
|
+
uri: localVarPath,
|
|
2441
|
+
useQuerystring: this._useQuerystring,
|
|
2442
|
+
json: true,
|
|
2443
|
+
};
|
|
2444
|
+
|
|
2445
|
+
let authenticationPromise = Promise.resolve();
|
|
2446
|
+
if (this.authentications.token.accessToken) {
|
|
2447
|
+
authenticationPromise = authenticationPromise.then(() =>
|
|
2448
|
+
this.authentications.token.applyToRequest(
|
|
2449
|
+
localVarRequestOptions
|
|
2450
|
+
)
|
|
2451
|
+
);
|
|
2452
|
+
}
|
|
2453
|
+
authenticationPromise = authenticationPromise.then(() =>
|
|
2454
|
+
this.authentications.default.applyToRequest(localVarRequestOptions)
|
|
2455
|
+
);
|
|
2456
|
+
|
|
2457
|
+
let interceptorPromise = authenticationPromise;
|
|
2458
|
+
for (const interceptor of this.interceptors) {
|
|
2459
|
+
interceptorPromise = interceptorPromise.then(() =>
|
|
2460
|
+
interceptor(localVarRequestOptions)
|
|
2461
|
+
);
|
|
2462
|
+
}
|
|
2463
|
+
|
|
2464
|
+
return interceptorPromise.then(() => {
|
|
2465
|
+
if (Object.keys(localVarFormParams).length) {
|
|
2466
|
+
if (localVarUseFormData) {
|
|
2467
|
+
(<any>localVarRequestOptions).formData = localVarFormParams;
|
|
2468
|
+
} else {
|
|
2469
|
+
localVarRequestOptions.form = localVarFormParams;
|
|
2470
|
+
}
|
|
2471
|
+
}
|
|
2472
|
+
return new Promise<{
|
|
2473
|
+
response: http.IncomingMessage;
|
|
2474
|
+
body: GetUser200Response;
|
|
2475
|
+
}>((resolve, reject) => {
|
|
2476
|
+
localVarRequest(
|
|
2477
|
+
localVarRequestOptions,
|
|
2478
|
+
(error, response, body) => {
|
|
2479
|
+
if (error) {
|
|
2480
|
+
reject(error);
|
|
2481
|
+
} else {
|
|
2482
|
+
if (
|
|
2483
|
+
response.statusCode &&
|
|
2484
|
+
response.statusCode >= 200 &&
|
|
2485
|
+
response.statusCode <= 299
|
|
2486
|
+
) {
|
|
2487
|
+
body = ObjectSerializer.deserialize(
|
|
2488
|
+
body,
|
|
2489
|
+
'GetUser200Response'
|
|
2490
|
+
);
|
|
2491
|
+
resolve({ response: response, body: body });
|
|
2492
|
+
} else {
|
|
2493
|
+
reject(
|
|
2494
|
+
new HttpError(
|
|
2495
|
+
response,
|
|
2496
|
+
body,
|
|
2497
|
+
response.statusCode
|
|
2498
|
+
)
|
|
2499
|
+
);
|
|
2500
|
+
}
|
|
2501
|
+
}
|
|
2502
|
+
}
|
|
2503
|
+
);
|
|
2504
|
+
});
|
|
2505
|
+
});
|
|
2506
|
+
}
|
|
2507
|
+
/**
|
|
2508
|
+
* Returns a list of invitations to join a Workspace. Config API omitted fields: - `parent`
|
|
2509
|
+
* @summary List Invites
|
|
2510
|
+
* @param pagination Defines the pagination parameters. This parameter exists in alpha.
|
|
2511
|
+
*/
|
|
2512
|
+
public async listInvitesAlpha(
|
|
2513
|
+
pagination: PaginationInput,
|
|
2514
|
+
options: { headers: { [name: string]: string } } = { headers: {} }
|
|
2515
|
+
): Promise<{
|
|
2516
|
+
response: http.IncomingMessage;
|
|
2517
|
+
body: ListInvites200Response;
|
|
2518
|
+
}> {
|
|
2519
|
+
const localVarPath = this.basePath + '/invites';
|
|
2520
|
+
let localVarQueryParameters: any = {};
|
|
2521
|
+
let localVarHeaderParams: any = (<any>Object).assign(
|
|
2522
|
+
{},
|
|
2523
|
+
this._defaultHeaders
|
|
2524
|
+
);
|
|
2525
|
+
const produces = [
|
|
2526
|
+
'application/vnd.segment.v1alpha+json',
|
|
2527
|
+
'application/json',
|
|
2528
|
+
];
|
|
2529
|
+
if (produces.indexOf('application/json') >= 0) {
|
|
2530
|
+
localVarHeaderParams.Accept = produces[0];
|
|
2531
|
+
} else {
|
|
2532
|
+
localVarHeaderParams.Accept = 'application/json';
|
|
2533
|
+
}
|
|
2534
|
+
let localVarFormParams: any = {};
|
|
2535
|
+
|
|
2536
|
+
// verify required parameter 'pagination' is not null or undefined
|
|
2537
|
+
if (pagination === null || pagination === undefined) {
|
|
2538
|
+
throw new Error(
|
|
2539
|
+
'Required parameter pagination was null or undefined when calling listInvitesAlpha.'
|
|
2540
|
+
);
|
|
2541
|
+
}
|
|
2542
|
+
|
|
2543
|
+
if (pagination !== undefined) {
|
|
2544
|
+
localVarQueryParameters['pagination'] = ObjectSerializer.serialize(
|
|
2545
|
+
pagination,
|
|
2546
|
+
'PaginationInput'
|
|
2547
|
+
);
|
|
2548
|
+
}
|
|
2549
|
+
|
|
2550
|
+
(<any>Object).assign(localVarHeaderParams, options.headers);
|
|
2551
|
+
|
|
2552
|
+
let localVarUseFormData = false;
|
|
2553
|
+
|
|
2554
|
+
let localVarRequestOptions: localVarRequest.Options = {
|
|
2555
|
+
method: 'GET',
|
|
2556
|
+
qs: localVarQueryParameters,
|
|
2557
|
+
headers: localVarHeaderParams,
|
|
2558
|
+
uri: localVarPath,
|
|
2559
|
+
useQuerystring: this._useQuerystring,
|
|
2560
|
+
json: true,
|
|
2561
|
+
};
|
|
2562
|
+
|
|
2563
|
+
let authenticationPromise = Promise.resolve();
|
|
2564
|
+
if (this.authentications.token.accessToken) {
|
|
2565
|
+
authenticationPromise = authenticationPromise.then(() =>
|
|
2566
|
+
this.authentications.token.applyToRequest(
|
|
2567
|
+
localVarRequestOptions
|
|
2568
|
+
)
|
|
2569
|
+
);
|
|
2570
|
+
}
|
|
2571
|
+
authenticationPromise = authenticationPromise.then(() =>
|
|
2572
|
+
this.authentications.default.applyToRequest(localVarRequestOptions)
|
|
2573
|
+
);
|
|
2574
|
+
|
|
2575
|
+
let interceptorPromise = authenticationPromise;
|
|
2576
|
+
for (const interceptor of this.interceptors) {
|
|
2577
|
+
interceptorPromise = interceptorPromise.then(() =>
|
|
2578
|
+
interceptor(localVarRequestOptions)
|
|
2579
|
+
);
|
|
2580
|
+
}
|
|
2581
|
+
|
|
2582
|
+
return interceptorPromise.then(() => {
|
|
2583
|
+
if (Object.keys(localVarFormParams).length) {
|
|
2584
|
+
if (localVarUseFormData) {
|
|
2585
|
+
(<any>localVarRequestOptions).formData = localVarFormParams;
|
|
2586
|
+
} else {
|
|
2587
|
+
localVarRequestOptions.form = localVarFormParams;
|
|
2588
|
+
}
|
|
2589
|
+
}
|
|
2590
|
+
return new Promise<{
|
|
2591
|
+
response: http.IncomingMessage;
|
|
2592
|
+
body: ListInvites200Response;
|
|
2593
|
+
}>((resolve, reject) => {
|
|
2594
|
+
localVarRequest(
|
|
2595
|
+
localVarRequestOptions,
|
|
2596
|
+
(error, response, body) => {
|
|
2597
|
+
if (error) {
|
|
2598
|
+
reject(error);
|
|
2599
|
+
} else {
|
|
2600
|
+
if (
|
|
2601
|
+
response.statusCode &&
|
|
2602
|
+
response.statusCode >= 200 &&
|
|
2603
|
+
response.statusCode <= 299
|
|
2604
|
+
) {
|
|
2605
|
+
body = ObjectSerializer.deserialize(
|
|
2606
|
+
body,
|
|
2607
|
+
'ListInvites200Response'
|
|
2608
|
+
);
|
|
2609
|
+
resolve({ response: response, body: body });
|
|
2610
|
+
} else {
|
|
2611
|
+
reject(
|
|
2612
|
+
new HttpError(
|
|
2613
|
+
response,
|
|
2614
|
+
body,
|
|
2615
|
+
response.statusCode
|
|
2616
|
+
)
|
|
2617
|
+
);
|
|
2618
|
+
}
|
|
2619
|
+
}
|
|
2620
|
+
}
|
|
2621
|
+
);
|
|
2622
|
+
});
|
|
2623
|
+
});
|
|
2624
|
+
}
|
|
2625
|
+
/**
|
|
2626
|
+
* Returns a list of invitations to join a Workspace. Config API omitted fields: - `parent`
|
|
2627
|
+
* @summary List Invites
|
|
2628
|
+
* @param pagination Defines the pagination parameters. This parameter exists in alpha.
|
|
2629
|
+
*/
|
|
2630
|
+
public async listInvitesBeta(
|
|
2631
|
+
pagination: PaginationInput,
|
|
2632
|
+
options: { headers: { [name: string]: string } } = { headers: {} }
|
|
2633
|
+
): Promise<{
|
|
2634
|
+
response: http.IncomingMessage;
|
|
2635
|
+
body: ListInvites200Response;
|
|
2636
|
+
}> {
|
|
2637
|
+
const localVarPath = this.basePath + '/invites';
|
|
2638
|
+
let localVarQueryParameters: any = {};
|
|
2639
|
+
let localVarHeaderParams: any = (<any>Object).assign(
|
|
2640
|
+
{},
|
|
2641
|
+
this._defaultHeaders
|
|
2642
|
+
);
|
|
2643
|
+
const produces = [
|
|
2644
|
+
'application/vnd.segment.v1beta+json',
|
|
2645
|
+
'application/json',
|
|
2646
|
+
];
|
|
2647
|
+
if (produces.indexOf('application/json') >= 0) {
|
|
2648
|
+
localVarHeaderParams.Accept = produces[0];
|
|
2649
|
+
} else {
|
|
2650
|
+
localVarHeaderParams.Accept = 'application/json';
|
|
2651
|
+
}
|
|
2652
|
+
let localVarFormParams: any = {};
|
|
2653
|
+
|
|
2654
|
+
// verify required parameter 'pagination' is not null or undefined
|
|
2655
|
+
if (pagination === null || pagination === undefined) {
|
|
2656
|
+
throw new Error(
|
|
2657
|
+
'Required parameter pagination was null or undefined when calling listInvitesBeta.'
|
|
2658
|
+
);
|
|
2659
|
+
}
|
|
2660
|
+
|
|
2661
|
+
if (pagination !== undefined) {
|
|
2662
|
+
localVarQueryParameters['pagination'] = ObjectSerializer.serialize(
|
|
2663
|
+
pagination,
|
|
2664
|
+
'PaginationInput'
|
|
2665
|
+
);
|
|
2666
|
+
}
|
|
2667
|
+
|
|
2668
|
+
(<any>Object).assign(localVarHeaderParams, options.headers);
|
|
2669
|
+
|
|
2670
|
+
let localVarUseFormData = false;
|
|
2671
|
+
|
|
2672
|
+
let localVarRequestOptions: localVarRequest.Options = {
|
|
2673
|
+
method: 'GET',
|
|
2674
|
+
qs: localVarQueryParameters,
|
|
2675
|
+
headers: localVarHeaderParams,
|
|
2676
|
+
uri: localVarPath,
|
|
2677
|
+
useQuerystring: this._useQuerystring,
|
|
2678
|
+
json: true,
|
|
2679
|
+
};
|
|
2680
|
+
|
|
2681
|
+
let authenticationPromise = Promise.resolve();
|
|
2682
|
+
if (this.authentications.token.accessToken) {
|
|
2683
|
+
authenticationPromise = authenticationPromise.then(() =>
|
|
2684
|
+
this.authentications.token.applyToRequest(
|
|
2685
|
+
localVarRequestOptions
|
|
2686
|
+
)
|
|
2687
|
+
);
|
|
2688
|
+
}
|
|
2689
|
+
authenticationPromise = authenticationPromise.then(() =>
|
|
2690
|
+
this.authentications.default.applyToRequest(localVarRequestOptions)
|
|
2691
|
+
);
|
|
2692
|
+
|
|
2693
|
+
let interceptorPromise = authenticationPromise;
|
|
2694
|
+
for (const interceptor of this.interceptors) {
|
|
2695
|
+
interceptorPromise = interceptorPromise.then(() =>
|
|
2696
|
+
interceptor(localVarRequestOptions)
|
|
2697
|
+
);
|
|
2698
|
+
}
|
|
2699
|
+
|
|
2700
|
+
return interceptorPromise.then(() => {
|
|
2701
|
+
if (Object.keys(localVarFormParams).length) {
|
|
2702
|
+
if (localVarUseFormData) {
|
|
2703
|
+
(<any>localVarRequestOptions).formData = localVarFormParams;
|
|
2704
|
+
} else {
|
|
2705
|
+
localVarRequestOptions.form = localVarFormParams;
|
|
2706
|
+
}
|
|
2707
|
+
}
|
|
2708
|
+
return new Promise<{
|
|
2709
|
+
response: http.IncomingMessage;
|
|
2710
|
+
body: ListInvites200Response;
|
|
2711
|
+
}>((resolve, reject) => {
|
|
2712
|
+
localVarRequest(
|
|
2713
|
+
localVarRequestOptions,
|
|
2714
|
+
(error, response, body) => {
|
|
2715
|
+
if (error) {
|
|
2716
|
+
reject(error);
|
|
2717
|
+
} else {
|
|
2718
|
+
if (
|
|
2719
|
+
response.statusCode &&
|
|
2720
|
+
response.statusCode >= 200 &&
|
|
2721
|
+
response.statusCode <= 299
|
|
2722
|
+
) {
|
|
2723
|
+
body = ObjectSerializer.deserialize(
|
|
2724
|
+
body,
|
|
2725
|
+
'ListInvites200Response'
|
|
2726
|
+
);
|
|
2727
|
+
resolve({ response: response, body: body });
|
|
2728
|
+
} else {
|
|
2729
|
+
reject(
|
|
2730
|
+
new HttpError(
|
|
2731
|
+
response,
|
|
2732
|
+
body,
|
|
2733
|
+
response.statusCode
|
|
2734
|
+
)
|
|
2735
|
+
);
|
|
2736
|
+
}
|
|
2737
|
+
}
|
|
2738
|
+
}
|
|
2739
|
+
);
|
|
2740
|
+
});
|
|
2741
|
+
});
|
|
2742
|
+
}
|
|
2743
|
+
/**
|
|
2744
|
+
* Returns a list of invitations to join a Workspace. Config API omitted fields: - `parent`
|
|
2745
|
+
* @summary List Invites
|
|
2746
|
+
* @param pagination Defines the pagination parameters. This parameter exists in alpha.
|
|
2747
|
+
*/
|
|
2748
|
+
public async listInvitesCurrent(
|
|
2749
|
+
pagination: PaginationInput,
|
|
2750
|
+
options: { headers: { [name: string]: string } } = { headers: {} }
|
|
2751
|
+
): Promise<{
|
|
2752
|
+
response: http.IncomingMessage;
|
|
2753
|
+
body: ListInvites200Response;
|
|
2754
|
+
}> {
|
|
2755
|
+
const localVarPath = this.basePath + '/invites';
|
|
2756
|
+
let localVarQueryParameters: any = {};
|
|
2757
|
+
let localVarHeaderParams: any = (<any>Object).assign(
|
|
2758
|
+
{},
|
|
2759
|
+
this._defaultHeaders
|
|
2760
|
+
);
|
|
2761
|
+
const produces = ['application/json'];
|
|
2762
|
+
if (produces.indexOf('application/json') >= 0) {
|
|
2763
|
+
localVarHeaderParams.Accept = produces[0];
|
|
2764
|
+
} else {
|
|
2765
|
+
localVarHeaderParams.Accept = 'application/json';
|
|
2766
|
+
}
|
|
2767
|
+
let localVarFormParams: any = {};
|
|
2768
|
+
|
|
2769
|
+
// verify required parameter 'pagination' is not null or undefined
|
|
2770
|
+
if (pagination === null || pagination === undefined) {
|
|
2771
|
+
throw new Error(
|
|
2772
|
+
'Required parameter pagination was null or undefined when calling listInvitesCurrent.'
|
|
2773
|
+
);
|
|
2774
|
+
}
|
|
2775
|
+
|
|
2776
|
+
if (pagination !== undefined) {
|
|
2777
|
+
localVarQueryParameters['pagination'] = ObjectSerializer.serialize(
|
|
2778
|
+
pagination,
|
|
2779
|
+
'PaginationInput'
|
|
2780
|
+
);
|
|
2781
|
+
}
|
|
2782
|
+
|
|
2783
|
+
(<any>Object).assign(localVarHeaderParams, options.headers);
|
|
2784
|
+
|
|
2785
|
+
let localVarUseFormData = false;
|
|
2786
|
+
|
|
2787
|
+
let localVarRequestOptions: localVarRequest.Options = {
|
|
2788
|
+
method: 'GET',
|
|
2789
|
+
qs: localVarQueryParameters,
|
|
2790
|
+
headers: localVarHeaderParams,
|
|
2791
|
+
uri: localVarPath,
|
|
2792
|
+
useQuerystring: this._useQuerystring,
|
|
2793
|
+
json: true,
|
|
2794
|
+
};
|
|
2795
|
+
|
|
2796
|
+
let authenticationPromise = Promise.resolve();
|
|
2797
|
+
if (this.authentications.token.accessToken) {
|
|
2798
|
+
authenticationPromise = authenticationPromise.then(() =>
|
|
2799
|
+
this.authentications.token.applyToRequest(
|
|
2800
|
+
localVarRequestOptions
|
|
2801
|
+
)
|
|
2802
|
+
);
|
|
2803
|
+
}
|
|
2804
|
+
authenticationPromise = authenticationPromise.then(() =>
|
|
2805
|
+
this.authentications.default.applyToRequest(localVarRequestOptions)
|
|
2806
|
+
);
|
|
2807
|
+
|
|
2808
|
+
let interceptorPromise = authenticationPromise;
|
|
2809
|
+
for (const interceptor of this.interceptors) {
|
|
2810
|
+
interceptorPromise = interceptorPromise.then(() =>
|
|
2811
|
+
interceptor(localVarRequestOptions)
|
|
2812
|
+
);
|
|
2813
|
+
}
|
|
2814
|
+
|
|
2815
|
+
return interceptorPromise.then(() => {
|
|
2816
|
+
if (Object.keys(localVarFormParams).length) {
|
|
2817
|
+
if (localVarUseFormData) {
|
|
2818
|
+
(<any>localVarRequestOptions).formData = localVarFormParams;
|
|
2819
|
+
} else {
|
|
2820
|
+
localVarRequestOptions.form = localVarFormParams;
|
|
2821
|
+
}
|
|
2822
|
+
}
|
|
2823
|
+
return new Promise<{
|
|
2824
|
+
response: http.IncomingMessage;
|
|
2825
|
+
body: ListInvites200Response;
|
|
2826
|
+
}>((resolve, reject) => {
|
|
2827
|
+
localVarRequest(
|
|
2828
|
+
localVarRequestOptions,
|
|
2829
|
+
(error, response, body) => {
|
|
2830
|
+
if (error) {
|
|
2831
|
+
reject(error);
|
|
2832
|
+
} else {
|
|
2833
|
+
if (
|
|
2834
|
+
response.statusCode &&
|
|
2835
|
+
response.statusCode >= 200 &&
|
|
2836
|
+
response.statusCode <= 299
|
|
2837
|
+
) {
|
|
2838
|
+
body = ObjectSerializer.deserialize(
|
|
2839
|
+
body,
|
|
2840
|
+
'ListInvites200Response'
|
|
2841
|
+
);
|
|
2842
|
+
resolve({ response: response, body: body });
|
|
2843
|
+
} else {
|
|
2844
|
+
reject(
|
|
2845
|
+
new HttpError(
|
|
2846
|
+
response,
|
|
2847
|
+
body,
|
|
2848
|
+
response.statusCode
|
|
2849
|
+
)
|
|
2850
|
+
);
|
|
2851
|
+
}
|
|
2852
|
+
}
|
|
2853
|
+
}
|
|
2854
|
+
);
|
|
2855
|
+
});
|
|
2856
|
+
});
|
|
2857
|
+
}
|
|
2858
|
+
/**
|
|
2859
|
+
* Returns a list of invitations to join a Workspace. Config API omitted fields: - `parent`
|
|
2860
|
+
* @summary List Invites
|
|
2861
|
+
* @param pagination Defines the pagination parameters. This parameter exists in alpha.
|
|
2862
|
+
*/
|
|
2863
|
+
public async listInvitesV1(
|
|
2864
|
+
pagination: PaginationInput,
|
|
2865
|
+
options: { headers: { [name: string]: string } } = { headers: {} }
|
|
2866
|
+
): Promise<{
|
|
2867
|
+
response: http.IncomingMessage;
|
|
2868
|
+
body: ListInvites200Response;
|
|
2869
|
+
}> {
|
|
2870
|
+
const localVarPath = this.basePath + '/invites';
|
|
2871
|
+
let localVarQueryParameters: any = {};
|
|
2872
|
+
let localVarHeaderParams: any = (<any>Object).assign(
|
|
2873
|
+
{},
|
|
2874
|
+
this._defaultHeaders
|
|
2875
|
+
);
|
|
2876
|
+
const produces = [
|
|
2877
|
+
'application/vnd.segment.v1+json',
|
|
2878
|
+
'application/json',
|
|
2879
|
+
];
|
|
2880
|
+
if (produces.indexOf('application/json') >= 0) {
|
|
2881
|
+
localVarHeaderParams.Accept = produces[0];
|
|
2882
|
+
} else {
|
|
2883
|
+
localVarHeaderParams.Accept = 'application/json';
|
|
2884
|
+
}
|
|
2885
|
+
let localVarFormParams: any = {};
|
|
2886
|
+
|
|
2887
|
+
// verify required parameter 'pagination' is not null or undefined
|
|
2888
|
+
if (pagination === null || pagination === undefined) {
|
|
2889
|
+
throw new Error(
|
|
2890
|
+
'Required parameter pagination was null or undefined when calling listInvitesV1.'
|
|
2891
|
+
);
|
|
2892
|
+
}
|
|
2893
|
+
|
|
2894
|
+
if (pagination !== undefined) {
|
|
2895
|
+
localVarQueryParameters['pagination'] = ObjectSerializer.serialize(
|
|
2896
|
+
pagination,
|
|
2897
|
+
'PaginationInput'
|
|
2898
|
+
);
|
|
2899
|
+
}
|
|
2900
|
+
|
|
2901
|
+
(<any>Object).assign(localVarHeaderParams, options.headers);
|
|
2902
|
+
|
|
2903
|
+
let localVarUseFormData = false;
|
|
2904
|
+
|
|
2905
|
+
let localVarRequestOptions: localVarRequest.Options = {
|
|
2906
|
+
method: 'GET',
|
|
2907
|
+
qs: localVarQueryParameters,
|
|
2908
|
+
headers: localVarHeaderParams,
|
|
2909
|
+
uri: localVarPath,
|
|
2910
|
+
useQuerystring: this._useQuerystring,
|
|
2911
|
+
json: true,
|
|
2912
|
+
};
|
|
2913
|
+
|
|
2914
|
+
let authenticationPromise = Promise.resolve();
|
|
2915
|
+
if (this.authentications.token.accessToken) {
|
|
2916
|
+
authenticationPromise = authenticationPromise.then(() =>
|
|
2917
|
+
this.authentications.token.applyToRequest(
|
|
2918
|
+
localVarRequestOptions
|
|
2919
|
+
)
|
|
2920
|
+
);
|
|
2921
|
+
}
|
|
2922
|
+
authenticationPromise = authenticationPromise.then(() =>
|
|
2923
|
+
this.authentications.default.applyToRequest(localVarRequestOptions)
|
|
2924
|
+
);
|
|
2925
|
+
|
|
2926
|
+
let interceptorPromise = authenticationPromise;
|
|
2927
|
+
for (const interceptor of this.interceptors) {
|
|
2928
|
+
interceptorPromise = interceptorPromise.then(() =>
|
|
2929
|
+
interceptor(localVarRequestOptions)
|
|
2930
|
+
);
|
|
2931
|
+
}
|
|
2932
|
+
|
|
2933
|
+
return interceptorPromise.then(() => {
|
|
2934
|
+
if (Object.keys(localVarFormParams).length) {
|
|
2935
|
+
if (localVarUseFormData) {
|
|
2936
|
+
(<any>localVarRequestOptions).formData = localVarFormParams;
|
|
2937
|
+
} else {
|
|
2938
|
+
localVarRequestOptions.form = localVarFormParams;
|
|
2939
|
+
}
|
|
2940
|
+
}
|
|
2941
|
+
return new Promise<{
|
|
2942
|
+
response: http.IncomingMessage;
|
|
2943
|
+
body: ListInvites200Response;
|
|
2944
|
+
}>((resolve, reject) => {
|
|
2945
|
+
localVarRequest(
|
|
2946
|
+
localVarRequestOptions,
|
|
2947
|
+
(error, response, body) => {
|
|
2948
|
+
if (error) {
|
|
2949
|
+
reject(error);
|
|
2950
|
+
} else {
|
|
2951
|
+
if (
|
|
2952
|
+
response.statusCode &&
|
|
2953
|
+
response.statusCode >= 200 &&
|
|
2954
|
+
response.statusCode <= 299
|
|
2955
|
+
) {
|
|
2956
|
+
body = ObjectSerializer.deserialize(
|
|
2957
|
+
body,
|
|
2958
|
+
'ListInvites200Response'
|
|
2959
|
+
);
|
|
2960
|
+
resolve({ response: response, body: body });
|
|
2961
|
+
} else {
|
|
2962
|
+
reject(
|
|
2963
|
+
new HttpError(
|
|
2964
|
+
response,
|
|
2965
|
+
body,
|
|
2966
|
+
response.statusCode
|
|
2967
|
+
)
|
|
2968
|
+
);
|
|
2969
|
+
}
|
|
2970
|
+
}
|
|
2971
|
+
}
|
|
2972
|
+
);
|
|
2973
|
+
});
|
|
2974
|
+
});
|
|
2975
|
+
}
|
|
2976
|
+
/**
|
|
2977
|
+
* Returns all groups a user belongs to.
|
|
2978
|
+
* @summary List User Groups from User
|
|
2979
|
+
* @param userId
|
|
2980
|
+
* @param pagination Pagination for groups. This parameter exists in alpha.
|
|
2981
|
+
*/
|
|
2982
|
+
public async listUserGroupsFromUserAlpha(
|
|
2983
|
+
userId: string,
|
|
2984
|
+
pagination: PaginationInput,
|
|
2985
|
+
options: { headers: { [name: string]: string } } = { headers: {} }
|
|
2986
|
+
): Promise<{
|
|
2987
|
+
response: http.IncomingMessage;
|
|
2988
|
+
body: ListUserGroupsFromUser200Response;
|
|
2989
|
+
}> {
|
|
2990
|
+
const localVarPath =
|
|
2991
|
+
this.basePath +
|
|
2992
|
+
'/users/{userId}/groups'.replace(
|
|
2993
|
+
'{' + 'userId' + '}',
|
|
2994
|
+
encodeURIComponent(String(userId))
|
|
2995
|
+
);
|
|
2996
|
+
let localVarQueryParameters: any = {};
|
|
2997
|
+
let localVarHeaderParams: any = (<any>Object).assign(
|
|
2998
|
+
{},
|
|
2999
|
+
this._defaultHeaders
|
|
3000
|
+
);
|
|
3001
|
+
const produces = [
|
|
3002
|
+
'application/vnd.segment.v1alpha+json',
|
|
3003
|
+
'application/json',
|
|
3004
|
+
];
|
|
3005
|
+
if (produces.indexOf('application/json') >= 0) {
|
|
3006
|
+
localVarHeaderParams.Accept = produces[0];
|
|
3007
|
+
} else {
|
|
3008
|
+
localVarHeaderParams.Accept = 'application/json';
|
|
3009
|
+
}
|
|
3010
|
+
let localVarFormParams: any = {};
|
|
3011
|
+
|
|
3012
|
+
// verify required parameter 'userId' is not null or undefined
|
|
3013
|
+
if (userId === null || userId === undefined) {
|
|
3014
|
+
throw new Error(
|
|
3015
|
+
'Required parameter userId was null or undefined when calling listUserGroupsFromUserAlpha.'
|
|
3016
|
+
);
|
|
3017
|
+
}
|
|
3018
|
+
|
|
3019
|
+
// verify required parameter 'pagination' is not null or undefined
|
|
3020
|
+
if (pagination === null || pagination === undefined) {
|
|
3021
|
+
throw new Error(
|
|
3022
|
+
'Required parameter pagination was null or undefined when calling listUserGroupsFromUserAlpha.'
|
|
3023
|
+
);
|
|
3024
|
+
}
|
|
3025
|
+
|
|
3026
|
+
if (pagination !== undefined) {
|
|
3027
|
+
localVarQueryParameters['pagination'] = ObjectSerializer.serialize(
|
|
3028
|
+
pagination,
|
|
3029
|
+
'PaginationInput'
|
|
3030
|
+
);
|
|
3031
|
+
}
|
|
3032
|
+
|
|
3033
|
+
(<any>Object).assign(localVarHeaderParams, options.headers);
|
|
3034
|
+
|
|
3035
|
+
let localVarUseFormData = false;
|
|
3036
|
+
|
|
3037
|
+
let localVarRequestOptions: localVarRequest.Options = {
|
|
3038
|
+
method: 'GET',
|
|
3039
|
+
qs: localVarQueryParameters,
|
|
3040
|
+
headers: localVarHeaderParams,
|
|
3041
|
+
uri: localVarPath,
|
|
3042
|
+
useQuerystring: this._useQuerystring,
|
|
3043
|
+
json: true,
|
|
3044
|
+
};
|
|
3045
|
+
|
|
3046
|
+
let authenticationPromise = Promise.resolve();
|
|
3047
|
+
if (this.authentications.token.accessToken) {
|
|
3048
|
+
authenticationPromise = authenticationPromise.then(() =>
|
|
3049
|
+
this.authentications.token.applyToRequest(
|
|
3050
|
+
localVarRequestOptions
|
|
3051
|
+
)
|
|
3052
|
+
);
|
|
3053
|
+
}
|
|
3054
|
+
authenticationPromise = authenticationPromise.then(() =>
|
|
3055
|
+
this.authentications.default.applyToRequest(localVarRequestOptions)
|
|
3056
|
+
);
|
|
3057
|
+
|
|
3058
|
+
let interceptorPromise = authenticationPromise;
|
|
3059
|
+
for (const interceptor of this.interceptors) {
|
|
3060
|
+
interceptorPromise = interceptorPromise.then(() =>
|
|
3061
|
+
interceptor(localVarRequestOptions)
|
|
3062
|
+
);
|
|
3063
|
+
}
|
|
3064
|
+
|
|
3065
|
+
return interceptorPromise.then(() => {
|
|
3066
|
+
if (Object.keys(localVarFormParams).length) {
|
|
3067
|
+
if (localVarUseFormData) {
|
|
3068
|
+
(<any>localVarRequestOptions).formData = localVarFormParams;
|
|
3069
|
+
} else {
|
|
3070
|
+
localVarRequestOptions.form = localVarFormParams;
|
|
3071
|
+
}
|
|
3072
|
+
}
|
|
3073
|
+
return new Promise<{
|
|
3074
|
+
response: http.IncomingMessage;
|
|
3075
|
+
body: ListUserGroupsFromUser200Response;
|
|
3076
|
+
}>((resolve, reject) => {
|
|
3077
|
+
localVarRequest(
|
|
3078
|
+
localVarRequestOptions,
|
|
3079
|
+
(error, response, body) => {
|
|
3080
|
+
if (error) {
|
|
3081
|
+
reject(error);
|
|
3082
|
+
} else {
|
|
3083
|
+
if (
|
|
3084
|
+
response.statusCode &&
|
|
3085
|
+
response.statusCode >= 200 &&
|
|
3086
|
+
response.statusCode <= 299
|
|
3087
|
+
) {
|
|
3088
|
+
body = ObjectSerializer.deserialize(
|
|
3089
|
+
body,
|
|
3090
|
+
'ListUserGroupsFromUser200Response'
|
|
3091
|
+
);
|
|
3092
|
+
resolve({ response: response, body: body });
|
|
3093
|
+
} else {
|
|
3094
|
+
reject(
|
|
3095
|
+
new HttpError(
|
|
3096
|
+
response,
|
|
3097
|
+
body,
|
|
3098
|
+
response.statusCode
|
|
3099
|
+
)
|
|
3100
|
+
);
|
|
3101
|
+
}
|
|
3102
|
+
}
|
|
3103
|
+
}
|
|
3104
|
+
);
|
|
3105
|
+
});
|
|
3106
|
+
});
|
|
3107
|
+
}
|
|
3108
|
+
/**
|
|
3109
|
+
* Returns all groups a user belongs to.
|
|
3110
|
+
* @summary List User Groups from User
|
|
3111
|
+
* @param userId
|
|
3112
|
+
* @param pagination Pagination for groups. This parameter exists in alpha.
|
|
3113
|
+
*/
|
|
3114
|
+
public async listUserGroupsFromUserBeta(
|
|
3115
|
+
userId: string,
|
|
3116
|
+
pagination: PaginationInput,
|
|
3117
|
+
options: { headers: { [name: string]: string } } = { headers: {} }
|
|
3118
|
+
): Promise<{
|
|
3119
|
+
response: http.IncomingMessage;
|
|
3120
|
+
body: ListUserGroupsFromUser200Response;
|
|
3121
|
+
}> {
|
|
3122
|
+
const localVarPath =
|
|
3123
|
+
this.basePath +
|
|
3124
|
+
'/users/{userId}/groups'.replace(
|
|
3125
|
+
'{' + 'userId' + '}',
|
|
3126
|
+
encodeURIComponent(String(userId))
|
|
3127
|
+
);
|
|
3128
|
+
let localVarQueryParameters: any = {};
|
|
3129
|
+
let localVarHeaderParams: any = (<any>Object).assign(
|
|
3130
|
+
{},
|
|
3131
|
+
this._defaultHeaders
|
|
3132
|
+
);
|
|
3133
|
+
const produces = [
|
|
3134
|
+
'application/vnd.segment.v1beta+json',
|
|
3135
|
+
'application/json',
|
|
3136
|
+
];
|
|
3137
|
+
if (produces.indexOf('application/json') >= 0) {
|
|
3138
|
+
localVarHeaderParams.Accept = produces[0];
|
|
3139
|
+
} else {
|
|
3140
|
+
localVarHeaderParams.Accept = 'application/json';
|
|
3141
|
+
}
|
|
3142
|
+
let localVarFormParams: any = {};
|
|
3143
|
+
|
|
3144
|
+
// verify required parameter 'userId' is not null or undefined
|
|
3145
|
+
if (userId === null || userId === undefined) {
|
|
3146
|
+
throw new Error(
|
|
3147
|
+
'Required parameter userId was null or undefined when calling listUserGroupsFromUserBeta.'
|
|
3148
|
+
);
|
|
3149
|
+
}
|
|
3150
|
+
|
|
3151
|
+
// verify required parameter 'pagination' is not null or undefined
|
|
3152
|
+
if (pagination === null || pagination === undefined) {
|
|
3153
|
+
throw new Error(
|
|
3154
|
+
'Required parameter pagination was null or undefined when calling listUserGroupsFromUserBeta.'
|
|
3155
|
+
);
|
|
3156
|
+
}
|
|
3157
|
+
|
|
3158
|
+
if (pagination !== undefined) {
|
|
3159
|
+
localVarQueryParameters['pagination'] = ObjectSerializer.serialize(
|
|
3160
|
+
pagination,
|
|
3161
|
+
'PaginationInput'
|
|
3162
|
+
);
|
|
3163
|
+
}
|
|
3164
|
+
|
|
3165
|
+
(<any>Object).assign(localVarHeaderParams, options.headers);
|
|
3166
|
+
|
|
3167
|
+
let localVarUseFormData = false;
|
|
3168
|
+
|
|
3169
|
+
let localVarRequestOptions: localVarRequest.Options = {
|
|
3170
|
+
method: 'GET',
|
|
3171
|
+
qs: localVarQueryParameters,
|
|
3172
|
+
headers: localVarHeaderParams,
|
|
3173
|
+
uri: localVarPath,
|
|
3174
|
+
useQuerystring: this._useQuerystring,
|
|
3175
|
+
json: true,
|
|
3176
|
+
};
|
|
3177
|
+
|
|
3178
|
+
let authenticationPromise = Promise.resolve();
|
|
3179
|
+
if (this.authentications.token.accessToken) {
|
|
3180
|
+
authenticationPromise = authenticationPromise.then(() =>
|
|
3181
|
+
this.authentications.token.applyToRequest(
|
|
3182
|
+
localVarRequestOptions
|
|
3183
|
+
)
|
|
3184
|
+
);
|
|
3185
|
+
}
|
|
3186
|
+
authenticationPromise = authenticationPromise.then(() =>
|
|
3187
|
+
this.authentications.default.applyToRequest(localVarRequestOptions)
|
|
3188
|
+
);
|
|
3189
|
+
|
|
3190
|
+
let interceptorPromise = authenticationPromise;
|
|
3191
|
+
for (const interceptor of this.interceptors) {
|
|
3192
|
+
interceptorPromise = interceptorPromise.then(() =>
|
|
3193
|
+
interceptor(localVarRequestOptions)
|
|
3194
|
+
);
|
|
3195
|
+
}
|
|
3196
|
+
|
|
3197
|
+
return interceptorPromise.then(() => {
|
|
3198
|
+
if (Object.keys(localVarFormParams).length) {
|
|
3199
|
+
if (localVarUseFormData) {
|
|
3200
|
+
(<any>localVarRequestOptions).formData = localVarFormParams;
|
|
3201
|
+
} else {
|
|
3202
|
+
localVarRequestOptions.form = localVarFormParams;
|
|
3203
|
+
}
|
|
3204
|
+
}
|
|
3205
|
+
return new Promise<{
|
|
3206
|
+
response: http.IncomingMessage;
|
|
3207
|
+
body: ListUserGroupsFromUser200Response;
|
|
3208
|
+
}>((resolve, reject) => {
|
|
3209
|
+
localVarRequest(
|
|
3210
|
+
localVarRequestOptions,
|
|
3211
|
+
(error, response, body) => {
|
|
3212
|
+
if (error) {
|
|
3213
|
+
reject(error);
|
|
3214
|
+
} else {
|
|
3215
|
+
if (
|
|
3216
|
+
response.statusCode &&
|
|
3217
|
+
response.statusCode >= 200 &&
|
|
3218
|
+
response.statusCode <= 299
|
|
3219
|
+
) {
|
|
3220
|
+
body = ObjectSerializer.deserialize(
|
|
3221
|
+
body,
|
|
3222
|
+
'ListUserGroupsFromUser200Response'
|
|
3223
|
+
);
|
|
3224
|
+
resolve({ response: response, body: body });
|
|
3225
|
+
} else {
|
|
3226
|
+
reject(
|
|
3227
|
+
new HttpError(
|
|
3228
|
+
response,
|
|
3229
|
+
body,
|
|
3230
|
+
response.statusCode
|
|
3231
|
+
)
|
|
3232
|
+
);
|
|
3233
|
+
}
|
|
3234
|
+
}
|
|
3235
|
+
}
|
|
3236
|
+
);
|
|
3237
|
+
});
|
|
3238
|
+
});
|
|
3239
|
+
}
|
|
3240
|
+
/**
|
|
3241
|
+
* Returns all groups a user belongs to.
|
|
3242
|
+
* @summary List User Groups from User
|
|
3243
|
+
* @param userId
|
|
3244
|
+
* @param pagination Pagination for groups. This parameter exists in alpha.
|
|
3245
|
+
*/
|
|
3246
|
+
public async listUserGroupsFromUserCurrent(
|
|
3247
|
+
userId: string,
|
|
3248
|
+
pagination: PaginationInput,
|
|
3249
|
+
options: { headers: { [name: string]: string } } = { headers: {} }
|
|
3250
|
+
): Promise<{
|
|
3251
|
+
response: http.IncomingMessage;
|
|
3252
|
+
body: ListUserGroupsFromUser200Response;
|
|
3253
|
+
}> {
|
|
3254
|
+
const localVarPath =
|
|
3255
|
+
this.basePath +
|
|
3256
|
+
'/users/{userId}/groups'.replace(
|
|
3257
|
+
'{' + 'userId' + '}',
|
|
3258
|
+
encodeURIComponent(String(userId))
|
|
3259
|
+
);
|
|
3260
|
+
let localVarQueryParameters: any = {};
|
|
3261
|
+
let localVarHeaderParams: any = (<any>Object).assign(
|
|
3262
|
+
{},
|
|
3263
|
+
this._defaultHeaders
|
|
3264
|
+
);
|
|
3265
|
+
const produces = ['application/json'];
|
|
3266
|
+
if (produces.indexOf('application/json') >= 0) {
|
|
3267
|
+
localVarHeaderParams.Accept = produces[0];
|
|
3268
|
+
} else {
|
|
3269
|
+
localVarHeaderParams.Accept = 'application/json';
|
|
3270
|
+
}
|
|
3271
|
+
let localVarFormParams: any = {};
|
|
3272
|
+
|
|
3273
|
+
// verify required parameter 'userId' is not null or undefined
|
|
3274
|
+
if (userId === null || userId === undefined) {
|
|
3275
|
+
throw new Error(
|
|
3276
|
+
'Required parameter userId was null or undefined when calling listUserGroupsFromUserCurrent.'
|
|
3277
|
+
);
|
|
3278
|
+
}
|
|
3279
|
+
|
|
3280
|
+
// verify required parameter 'pagination' is not null or undefined
|
|
3281
|
+
if (pagination === null || pagination === undefined) {
|
|
3282
|
+
throw new Error(
|
|
3283
|
+
'Required parameter pagination was null or undefined when calling listUserGroupsFromUserCurrent.'
|
|
3284
|
+
);
|
|
3285
|
+
}
|
|
3286
|
+
|
|
3287
|
+
if (pagination !== undefined) {
|
|
3288
|
+
localVarQueryParameters['pagination'] = ObjectSerializer.serialize(
|
|
3289
|
+
pagination,
|
|
3290
|
+
'PaginationInput'
|
|
3291
|
+
);
|
|
3292
|
+
}
|
|
3293
|
+
|
|
3294
|
+
(<any>Object).assign(localVarHeaderParams, options.headers);
|
|
3295
|
+
|
|
3296
|
+
let localVarUseFormData = false;
|
|
3297
|
+
|
|
3298
|
+
let localVarRequestOptions: localVarRequest.Options = {
|
|
3299
|
+
method: 'GET',
|
|
3300
|
+
qs: localVarQueryParameters,
|
|
3301
|
+
headers: localVarHeaderParams,
|
|
3302
|
+
uri: localVarPath,
|
|
3303
|
+
useQuerystring: this._useQuerystring,
|
|
3304
|
+
json: true,
|
|
3305
|
+
};
|
|
3306
|
+
|
|
3307
|
+
let authenticationPromise = Promise.resolve();
|
|
3308
|
+
if (this.authentications.token.accessToken) {
|
|
3309
|
+
authenticationPromise = authenticationPromise.then(() =>
|
|
3310
|
+
this.authentications.token.applyToRequest(
|
|
3311
|
+
localVarRequestOptions
|
|
3312
|
+
)
|
|
3313
|
+
);
|
|
3314
|
+
}
|
|
3315
|
+
authenticationPromise = authenticationPromise.then(() =>
|
|
3316
|
+
this.authentications.default.applyToRequest(localVarRequestOptions)
|
|
3317
|
+
);
|
|
3318
|
+
|
|
3319
|
+
let interceptorPromise = authenticationPromise;
|
|
3320
|
+
for (const interceptor of this.interceptors) {
|
|
3321
|
+
interceptorPromise = interceptorPromise.then(() =>
|
|
3322
|
+
interceptor(localVarRequestOptions)
|
|
3323
|
+
);
|
|
3324
|
+
}
|
|
3325
|
+
|
|
3326
|
+
return interceptorPromise.then(() => {
|
|
3327
|
+
if (Object.keys(localVarFormParams).length) {
|
|
3328
|
+
if (localVarUseFormData) {
|
|
3329
|
+
(<any>localVarRequestOptions).formData = localVarFormParams;
|
|
3330
|
+
} else {
|
|
3331
|
+
localVarRequestOptions.form = localVarFormParams;
|
|
3332
|
+
}
|
|
3333
|
+
}
|
|
3334
|
+
return new Promise<{
|
|
3335
|
+
response: http.IncomingMessage;
|
|
3336
|
+
body: ListUserGroupsFromUser200Response;
|
|
3337
|
+
}>((resolve, reject) => {
|
|
3338
|
+
localVarRequest(
|
|
3339
|
+
localVarRequestOptions,
|
|
3340
|
+
(error, response, body) => {
|
|
3341
|
+
if (error) {
|
|
3342
|
+
reject(error);
|
|
3343
|
+
} else {
|
|
3344
|
+
if (
|
|
3345
|
+
response.statusCode &&
|
|
3346
|
+
response.statusCode >= 200 &&
|
|
3347
|
+
response.statusCode <= 299
|
|
3348
|
+
) {
|
|
3349
|
+
body = ObjectSerializer.deserialize(
|
|
3350
|
+
body,
|
|
3351
|
+
'ListUserGroupsFromUser200Response'
|
|
3352
|
+
);
|
|
3353
|
+
resolve({ response: response, body: body });
|
|
3354
|
+
} else {
|
|
3355
|
+
reject(
|
|
3356
|
+
new HttpError(
|
|
3357
|
+
response,
|
|
3358
|
+
body,
|
|
3359
|
+
response.statusCode
|
|
3360
|
+
)
|
|
3361
|
+
);
|
|
3362
|
+
}
|
|
3363
|
+
}
|
|
3364
|
+
}
|
|
3365
|
+
);
|
|
3366
|
+
});
|
|
3367
|
+
});
|
|
3368
|
+
}
|
|
3369
|
+
/**
|
|
3370
|
+
* Returns all groups a user belongs to.
|
|
3371
|
+
* @summary List User Groups from User
|
|
3372
|
+
* @param userId
|
|
3373
|
+
* @param pagination Pagination for groups. This parameter exists in alpha.
|
|
3374
|
+
*/
|
|
3375
|
+
public async listUserGroupsFromUserV1(
|
|
3376
|
+
userId: string,
|
|
3377
|
+
pagination: PaginationInput,
|
|
3378
|
+
options: { headers: { [name: string]: string } } = { headers: {} }
|
|
3379
|
+
): Promise<{
|
|
3380
|
+
response: http.IncomingMessage;
|
|
3381
|
+
body: ListUserGroupsFromUser200Response;
|
|
3382
|
+
}> {
|
|
3383
|
+
const localVarPath =
|
|
3384
|
+
this.basePath +
|
|
3385
|
+
'/users/{userId}/groups'.replace(
|
|
3386
|
+
'{' + 'userId' + '}',
|
|
3387
|
+
encodeURIComponent(String(userId))
|
|
3388
|
+
);
|
|
3389
|
+
let localVarQueryParameters: any = {};
|
|
3390
|
+
let localVarHeaderParams: any = (<any>Object).assign(
|
|
3391
|
+
{},
|
|
3392
|
+
this._defaultHeaders
|
|
3393
|
+
);
|
|
3394
|
+
const produces = [
|
|
3395
|
+
'application/vnd.segment.v1+json',
|
|
3396
|
+
'application/json',
|
|
3397
|
+
];
|
|
3398
|
+
if (produces.indexOf('application/json') >= 0) {
|
|
3399
|
+
localVarHeaderParams.Accept = produces[0];
|
|
3400
|
+
} else {
|
|
3401
|
+
localVarHeaderParams.Accept = 'application/json';
|
|
3402
|
+
}
|
|
3403
|
+
let localVarFormParams: any = {};
|
|
3404
|
+
|
|
3405
|
+
// verify required parameter 'userId' is not null or undefined
|
|
3406
|
+
if (userId === null || userId === undefined) {
|
|
3407
|
+
throw new Error(
|
|
3408
|
+
'Required parameter userId was null or undefined when calling listUserGroupsFromUserV1.'
|
|
3409
|
+
);
|
|
3410
|
+
}
|
|
3411
|
+
|
|
3412
|
+
// verify required parameter 'pagination' is not null or undefined
|
|
3413
|
+
if (pagination === null || pagination === undefined) {
|
|
3414
|
+
throw new Error(
|
|
3415
|
+
'Required parameter pagination was null or undefined when calling listUserGroupsFromUserV1.'
|
|
3416
|
+
);
|
|
3417
|
+
}
|
|
3418
|
+
|
|
3419
|
+
if (pagination !== undefined) {
|
|
3420
|
+
localVarQueryParameters['pagination'] = ObjectSerializer.serialize(
|
|
3421
|
+
pagination,
|
|
3422
|
+
'PaginationInput'
|
|
3423
|
+
);
|
|
3424
|
+
}
|
|
3425
|
+
|
|
3426
|
+
(<any>Object).assign(localVarHeaderParams, options.headers);
|
|
3427
|
+
|
|
3428
|
+
let localVarUseFormData = false;
|
|
3429
|
+
|
|
3430
|
+
let localVarRequestOptions: localVarRequest.Options = {
|
|
3431
|
+
method: 'GET',
|
|
3432
|
+
qs: localVarQueryParameters,
|
|
3433
|
+
headers: localVarHeaderParams,
|
|
3434
|
+
uri: localVarPath,
|
|
3435
|
+
useQuerystring: this._useQuerystring,
|
|
3436
|
+
json: true,
|
|
3437
|
+
};
|
|
3438
|
+
|
|
3439
|
+
let authenticationPromise = Promise.resolve();
|
|
3440
|
+
if (this.authentications.token.accessToken) {
|
|
3441
|
+
authenticationPromise = authenticationPromise.then(() =>
|
|
3442
|
+
this.authentications.token.applyToRequest(
|
|
3443
|
+
localVarRequestOptions
|
|
3444
|
+
)
|
|
3445
|
+
);
|
|
3446
|
+
}
|
|
3447
|
+
authenticationPromise = authenticationPromise.then(() =>
|
|
3448
|
+
this.authentications.default.applyToRequest(localVarRequestOptions)
|
|
3449
|
+
);
|
|
3450
|
+
|
|
3451
|
+
let interceptorPromise = authenticationPromise;
|
|
3452
|
+
for (const interceptor of this.interceptors) {
|
|
3453
|
+
interceptorPromise = interceptorPromise.then(() =>
|
|
3454
|
+
interceptor(localVarRequestOptions)
|
|
3455
|
+
);
|
|
3456
|
+
}
|
|
3457
|
+
|
|
3458
|
+
return interceptorPromise.then(() => {
|
|
3459
|
+
if (Object.keys(localVarFormParams).length) {
|
|
3460
|
+
if (localVarUseFormData) {
|
|
3461
|
+
(<any>localVarRequestOptions).formData = localVarFormParams;
|
|
3462
|
+
} else {
|
|
3463
|
+
localVarRequestOptions.form = localVarFormParams;
|
|
3464
|
+
}
|
|
3465
|
+
}
|
|
3466
|
+
return new Promise<{
|
|
3467
|
+
response: http.IncomingMessage;
|
|
3468
|
+
body: ListUserGroupsFromUser200Response;
|
|
3469
|
+
}>((resolve, reject) => {
|
|
3470
|
+
localVarRequest(
|
|
3471
|
+
localVarRequestOptions,
|
|
3472
|
+
(error, response, body) => {
|
|
3473
|
+
if (error) {
|
|
3474
|
+
reject(error);
|
|
3475
|
+
} else {
|
|
3476
|
+
if (
|
|
3477
|
+
response.statusCode &&
|
|
3478
|
+
response.statusCode >= 200 &&
|
|
3479
|
+
response.statusCode <= 299
|
|
3480
|
+
) {
|
|
3481
|
+
body = ObjectSerializer.deserialize(
|
|
3482
|
+
body,
|
|
3483
|
+
'ListUserGroupsFromUser200Response'
|
|
3484
|
+
);
|
|
3485
|
+
resolve({ response: response, body: body });
|
|
3486
|
+
} else {
|
|
3487
|
+
reject(
|
|
3488
|
+
new HttpError(
|
|
3489
|
+
response,
|
|
3490
|
+
body,
|
|
3491
|
+
response.statusCode
|
|
3492
|
+
)
|
|
3493
|
+
);
|
|
3494
|
+
}
|
|
3495
|
+
}
|
|
3496
|
+
}
|
|
3497
|
+
);
|
|
3498
|
+
});
|
|
3499
|
+
});
|
|
3500
|
+
}
|
|
3501
|
+
/**
|
|
3502
|
+
* Returns a list of users with access to the Workspace.
|
|
3503
|
+
* @summary List Users
|
|
3504
|
+
* @param pagination Pagination for users. This parameter exists in alpha.
|
|
3505
|
+
*/
|
|
3506
|
+
public async listUsersAlpha(
|
|
3507
|
+
pagination: PaginationInput,
|
|
3508
|
+
options: { headers: { [name: string]: string } } = { headers: {} }
|
|
3509
|
+
): Promise<{ response: http.IncomingMessage; body: ListUsers200Response }> {
|
|
3510
|
+
const localVarPath = this.basePath + '/users';
|
|
3511
|
+
let localVarQueryParameters: any = {};
|
|
3512
|
+
let localVarHeaderParams: any = (<any>Object).assign(
|
|
3513
|
+
{},
|
|
3514
|
+
this._defaultHeaders
|
|
3515
|
+
);
|
|
3516
|
+
const produces = [
|
|
3517
|
+
'application/vnd.segment.v1alpha+json',
|
|
3518
|
+
'application/json',
|
|
3519
|
+
];
|
|
3520
|
+
if (produces.indexOf('application/json') >= 0) {
|
|
3521
|
+
localVarHeaderParams.Accept = produces[0];
|
|
3522
|
+
} else {
|
|
3523
|
+
localVarHeaderParams.Accept = 'application/json';
|
|
3524
|
+
}
|
|
3525
|
+
let localVarFormParams: any = {};
|
|
3526
|
+
|
|
3527
|
+
// verify required parameter 'pagination' is not null or undefined
|
|
3528
|
+
if (pagination === null || pagination === undefined) {
|
|
3529
|
+
throw new Error(
|
|
3530
|
+
'Required parameter pagination was null or undefined when calling listUsersAlpha.'
|
|
3531
|
+
);
|
|
3532
|
+
}
|
|
3533
|
+
|
|
3534
|
+
if (pagination !== undefined) {
|
|
3535
|
+
localVarQueryParameters['pagination'] = ObjectSerializer.serialize(
|
|
3536
|
+
pagination,
|
|
3537
|
+
'PaginationInput'
|
|
3538
|
+
);
|
|
3539
|
+
}
|
|
3540
|
+
|
|
3541
|
+
(<any>Object).assign(localVarHeaderParams, options.headers);
|
|
3542
|
+
|
|
3543
|
+
let localVarUseFormData = false;
|
|
3544
|
+
|
|
3545
|
+
let localVarRequestOptions: localVarRequest.Options = {
|
|
3546
|
+
method: 'GET',
|
|
3547
|
+
qs: localVarQueryParameters,
|
|
3548
|
+
headers: localVarHeaderParams,
|
|
3549
|
+
uri: localVarPath,
|
|
3550
|
+
useQuerystring: this._useQuerystring,
|
|
3551
|
+
json: true,
|
|
3552
|
+
};
|
|
3553
|
+
|
|
3554
|
+
let authenticationPromise = Promise.resolve();
|
|
3555
|
+
if (this.authentications.token.accessToken) {
|
|
3556
|
+
authenticationPromise = authenticationPromise.then(() =>
|
|
3557
|
+
this.authentications.token.applyToRequest(
|
|
3558
|
+
localVarRequestOptions
|
|
3559
|
+
)
|
|
3560
|
+
);
|
|
3561
|
+
}
|
|
3562
|
+
authenticationPromise = authenticationPromise.then(() =>
|
|
3563
|
+
this.authentications.default.applyToRequest(localVarRequestOptions)
|
|
3564
|
+
);
|
|
3565
|
+
|
|
3566
|
+
let interceptorPromise = authenticationPromise;
|
|
3567
|
+
for (const interceptor of this.interceptors) {
|
|
3568
|
+
interceptorPromise = interceptorPromise.then(() =>
|
|
3569
|
+
interceptor(localVarRequestOptions)
|
|
3570
|
+
);
|
|
3571
|
+
}
|
|
3572
|
+
|
|
3573
|
+
return interceptorPromise.then(() => {
|
|
3574
|
+
if (Object.keys(localVarFormParams).length) {
|
|
3575
|
+
if (localVarUseFormData) {
|
|
3576
|
+
(<any>localVarRequestOptions).formData = localVarFormParams;
|
|
3577
|
+
} else {
|
|
3578
|
+
localVarRequestOptions.form = localVarFormParams;
|
|
3579
|
+
}
|
|
3580
|
+
}
|
|
3581
|
+
return new Promise<{
|
|
3582
|
+
response: http.IncomingMessage;
|
|
3583
|
+
body: ListUsers200Response;
|
|
3584
|
+
}>((resolve, reject) => {
|
|
3585
|
+
localVarRequest(
|
|
3586
|
+
localVarRequestOptions,
|
|
3587
|
+
(error, response, body) => {
|
|
3588
|
+
if (error) {
|
|
3589
|
+
reject(error);
|
|
3590
|
+
} else {
|
|
3591
|
+
if (
|
|
3592
|
+
response.statusCode &&
|
|
3593
|
+
response.statusCode >= 200 &&
|
|
3594
|
+
response.statusCode <= 299
|
|
3595
|
+
) {
|
|
3596
|
+
body = ObjectSerializer.deserialize(
|
|
3597
|
+
body,
|
|
3598
|
+
'ListUsers200Response'
|
|
3599
|
+
);
|
|
3600
|
+
resolve({ response: response, body: body });
|
|
3601
|
+
} else {
|
|
3602
|
+
reject(
|
|
3603
|
+
new HttpError(
|
|
3604
|
+
response,
|
|
3605
|
+
body,
|
|
3606
|
+
response.statusCode
|
|
3607
|
+
)
|
|
3608
|
+
);
|
|
3609
|
+
}
|
|
3610
|
+
}
|
|
3611
|
+
}
|
|
3612
|
+
);
|
|
3613
|
+
});
|
|
3614
|
+
});
|
|
3615
|
+
}
|
|
3616
|
+
/**
|
|
3617
|
+
* Returns a list of users with access to the Workspace.
|
|
3618
|
+
* @summary List Users
|
|
3619
|
+
* @param pagination Pagination for users. This parameter exists in alpha.
|
|
3620
|
+
*/
|
|
3621
|
+
public async listUsersBeta(
|
|
3622
|
+
pagination: PaginationInput,
|
|
3623
|
+
options: { headers: { [name: string]: string } } = { headers: {} }
|
|
3624
|
+
): Promise<{ response: http.IncomingMessage; body: ListUsers200Response }> {
|
|
3625
|
+
const localVarPath = this.basePath + '/users';
|
|
3626
|
+
let localVarQueryParameters: any = {};
|
|
3627
|
+
let localVarHeaderParams: any = (<any>Object).assign(
|
|
3628
|
+
{},
|
|
3629
|
+
this._defaultHeaders
|
|
3630
|
+
);
|
|
3631
|
+
const produces = [
|
|
3632
|
+
'application/vnd.segment.v1beta+json',
|
|
3633
|
+
'application/json',
|
|
3634
|
+
];
|
|
3635
|
+
if (produces.indexOf('application/json') >= 0) {
|
|
3636
|
+
localVarHeaderParams.Accept = produces[0];
|
|
3637
|
+
} else {
|
|
3638
|
+
localVarHeaderParams.Accept = 'application/json';
|
|
3639
|
+
}
|
|
3640
|
+
let localVarFormParams: any = {};
|
|
3641
|
+
|
|
3642
|
+
// verify required parameter 'pagination' is not null or undefined
|
|
3643
|
+
if (pagination === null || pagination === undefined) {
|
|
3644
|
+
throw new Error(
|
|
3645
|
+
'Required parameter pagination was null or undefined when calling listUsersBeta.'
|
|
3646
|
+
);
|
|
3647
|
+
}
|
|
3648
|
+
|
|
3649
|
+
if (pagination !== undefined) {
|
|
3650
|
+
localVarQueryParameters['pagination'] = ObjectSerializer.serialize(
|
|
3651
|
+
pagination,
|
|
3652
|
+
'PaginationInput'
|
|
3653
|
+
);
|
|
3654
|
+
}
|
|
3655
|
+
|
|
3656
|
+
(<any>Object).assign(localVarHeaderParams, options.headers);
|
|
3657
|
+
|
|
3658
|
+
let localVarUseFormData = false;
|
|
3659
|
+
|
|
3660
|
+
let localVarRequestOptions: localVarRequest.Options = {
|
|
3661
|
+
method: 'GET',
|
|
3662
|
+
qs: localVarQueryParameters,
|
|
3663
|
+
headers: localVarHeaderParams,
|
|
3664
|
+
uri: localVarPath,
|
|
3665
|
+
useQuerystring: this._useQuerystring,
|
|
3666
|
+
json: true,
|
|
3667
|
+
};
|
|
3668
|
+
|
|
3669
|
+
let authenticationPromise = Promise.resolve();
|
|
3670
|
+
if (this.authentications.token.accessToken) {
|
|
3671
|
+
authenticationPromise = authenticationPromise.then(() =>
|
|
3672
|
+
this.authentications.token.applyToRequest(
|
|
3673
|
+
localVarRequestOptions
|
|
3674
|
+
)
|
|
3675
|
+
);
|
|
3676
|
+
}
|
|
3677
|
+
authenticationPromise = authenticationPromise.then(() =>
|
|
3678
|
+
this.authentications.default.applyToRequest(localVarRequestOptions)
|
|
3679
|
+
);
|
|
3680
|
+
|
|
3681
|
+
let interceptorPromise = authenticationPromise;
|
|
3682
|
+
for (const interceptor of this.interceptors) {
|
|
3683
|
+
interceptorPromise = interceptorPromise.then(() =>
|
|
3684
|
+
interceptor(localVarRequestOptions)
|
|
3685
|
+
);
|
|
3686
|
+
}
|
|
3687
|
+
|
|
3688
|
+
return interceptorPromise.then(() => {
|
|
3689
|
+
if (Object.keys(localVarFormParams).length) {
|
|
3690
|
+
if (localVarUseFormData) {
|
|
3691
|
+
(<any>localVarRequestOptions).formData = localVarFormParams;
|
|
3692
|
+
} else {
|
|
3693
|
+
localVarRequestOptions.form = localVarFormParams;
|
|
3694
|
+
}
|
|
3695
|
+
}
|
|
3696
|
+
return new Promise<{
|
|
3697
|
+
response: http.IncomingMessage;
|
|
3698
|
+
body: ListUsers200Response;
|
|
3699
|
+
}>((resolve, reject) => {
|
|
3700
|
+
localVarRequest(
|
|
3701
|
+
localVarRequestOptions,
|
|
3702
|
+
(error, response, body) => {
|
|
3703
|
+
if (error) {
|
|
3704
|
+
reject(error);
|
|
3705
|
+
} else {
|
|
3706
|
+
if (
|
|
3707
|
+
response.statusCode &&
|
|
3708
|
+
response.statusCode >= 200 &&
|
|
3709
|
+
response.statusCode <= 299
|
|
3710
|
+
) {
|
|
3711
|
+
body = ObjectSerializer.deserialize(
|
|
3712
|
+
body,
|
|
3713
|
+
'ListUsers200Response'
|
|
3714
|
+
);
|
|
3715
|
+
resolve({ response: response, body: body });
|
|
3716
|
+
} else {
|
|
3717
|
+
reject(
|
|
3718
|
+
new HttpError(
|
|
3719
|
+
response,
|
|
3720
|
+
body,
|
|
3721
|
+
response.statusCode
|
|
3722
|
+
)
|
|
3723
|
+
);
|
|
3724
|
+
}
|
|
3725
|
+
}
|
|
3726
|
+
}
|
|
3727
|
+
);
|
|
3728
|
+
});
|
|
3729
|
+
});
|
|
3730
|
+
}
|
|
3731
|
+
/**
|
|
3732
|
+
* Returns a list of users with access to the Workspace.
|
|
3733
|
+
* @summary List Users
|
|
3734
|
+
* @param pagination Pagination for users. This parameter exists in alpha.
|
|
3735
|
+
*/
|
|
3736
|
+
public async listUsersCurrent(
|
|
3737
|
+
pagination: PaginationInput,
|
|
3738
|
+
options: { headers: { [name: string]: string } } = { headers: {} }
|
|
3739
|
+
): Promise<{ response: http.IncomingMessage; body: ListUsers200Response }> {
|
|
3740
|
+
const localVarPath = this.basePath + '/users';
|
|
3741
|
+
let localVarQueryParameters: any = {};
|
|
3742
|
+
let localVarHeaderParams: any = (<any>Object).assign(
|
|
3743
|
+
{},
|
|
3744
|
+
this._defaultHeaders
|
|
3745
|
+
);
|
|
3746
|
+
const produces = ['application/json'];
|
|
3747
|
+
if (produces.indexOf('application/json') >= 0) {
|
|
3748
|
+
localVarHeaderParams.Accept = produces[0];
|
|
3749
|
+
} else {
|
|
3750
|
+
localVarHeaderParams.Accept = 'application/json';
|
|
3751
|
+
}
|
|
3752
|
+
let localVarFormParams: any = {};
|
|
3753
|
+
|
|
3754
|
+
// verify required parameter 'pagination' is not null or undefined
|
|
3755
|
+
if (pagination === null || pagination === undefined) {
|
|
3756
|
+
throw new Error(
|
|
3757
|
+
'Required parameter pagination was null or undefined when calling listUsersCurrent.'
|
|
3758
|
+
);
|
|
3759
|
+
}
|
|
3760
|
+
|
|
3761
|
+
if (pagination !== undefined) {
|
|
3762
|
+
localVarQueryParameters['pagination'] = ObjectSerializer.serialize(
|
|
3763
|
+
pagination,
|
|
3764
|
+
'PaginationInput'
|
|
3765
|
+
);
|
|
3766
|
+
}
|
|
3767
|
+
|
|
3768
|
+
(<any>Object).assign(localVarHeaderParams, options.headers);
|
|
3769
|
+
|
|
3770
|
+
let localVarUseFormData = false;
|
|
3771
|
+
|
|
3772
|
+
let localVarRequestOptions: localVarRequest.Options = {
|
|
3773
|
+
method: 'GET',
|
|
3774
|
+
qs: localVarQueryParameters,
|
|
3775
|
+
headers: localVarHeaderParams,
|
|
3776
|
+
uri: localVarPath,
|
|
3777
|
+
useQuerystring: this._useQuerystring,
|
|
3778
|
+
json: true,
|
|
3779
|
+
};
|
|
3780
|
+
|
|
3781
|
+
let authenticationPromise = Promise.resolve();
|
|
3782
|
+
if (this.authentications.token.accessToken) {
|
|
3783
|
+
authenticationPromise = authenticationPromise.then(() =>
|
|
3784
|
+
this.authentications.token.applyToRequest(
|
|
3785
|
+
localVarRequestOptions
|
|
3786
|
+
)
|
|
3787
|
+
);
|
|
3788
|
+
}
|
|
3789
|
+
authenticationPromise = authenticationPromise.then(() =>
|
|
3790
|
+
this.authentications.default.applyToRequest(localVarRequestOptions)
|
|
3791
|
+
);
|
|
3792
|
+
|
|
3793
|
+
let interceptorPromise = authenticationPromise;
|
|
3794
|
+
for (const interceptor of this.interceptors) {
|
|
3795
|
+
interceptorPromise = interceptorPromise.then(() =>
|
|
3796
|
+
interceptor(localVarRequestOptions)
|
|
3797
|
+
);
|
|
3798
|
+
}
|
|
3799
|
+
|
|
3800
|
+
return interceptorPromise.then(() => {
|
|
3801
|
+
if (Object.keys(localVarFormParams).length) {
|
|
3802
|
+
if (localVarUseFormData) {
|
|
3803
|
+
(<any>localVarRequestOptions).formData = localVarFormParams;
|
|
3804
|
+
} else {
|
|
3805
|
+
localVarRequestOptions.form = localVarFormParams;
|
|
3806
|
+
}
|
|
3807
|
+
}
|
|
3808
|
+
return new Promise<{
|
|
3809
|
+
response: http.IncomingMessage;
|
|
3810
|
+
body: ListUsers200Response;
|
|
3811
|
+
}>((resolve, reject) => {
|
|
3812
|
+
localVarRequest(
|
|
3813
|
+
localVarRequestOptions,
|
|
3814
|
+
(error, response, body) => {
|
|
3815
|
+
if (error) {
|
|
3816
|
+
reject(error);
|
|
3817
|
+
} else {
|
|
3818
|
+
if (
|
|
3819
|
+
response.statusCode &&
|
|
3820
|
+
response.statusCode >= 200 &&
|
|
3821
|
+
response.statusCode <= 299
|
|
3822
|
+
) {
|
|
3823
|
+
body = ObjectSerializer.deserialize(
|
|
3824
|
+
body,
|
|
3825
|
+
'ListUsers200Response'
|
|
3826
|
+
);
|
|
3827
|
+
resolve({ response: response, body: body });
|
|
3828
|
+
} else {
|
|
3829
|
+
reject(
|
|
3830
|
+
new HttpError(
|
|
3831
|
+
response,
|
|
3832
|
+
body,
|
|
3833
|
+
response.statusCode
|
|
3834
|
+
)
|
|
3835
|
+
);
|
|
3836
|
+
}
|
|
3837
|
+
}
|
|
3838
|
+
}
|
|
3839
|
+
);
|
|
3840
|
+
});
|
|
3841
|
+
});
|
|
3842
|
+
}
|
|
3843
|
+
/**
|
|
3844
|
+
* Returns a list of users with access to the Workspace.
|
|
3845
|
+
* @summary List Users
|
|
3846
|
+
* @param pagination Pagination for users. This parameter exists in alpha.
|
|
3847
|
+
*/
|
|
3848
|
+
public async listUsersV1(
|
|
3849
|
+
pagination: PaginationInput,
|
|
3850
|
+
options: { headers: { [name: string]: string } } = { headers: {} }
|
|
3851
|
+
): Promise<{ response: http.IncomingMessage; body: ListUsers200Response }> {
|
|
3852
|
+
const localVarPath = this.basePath + '/users';
|
|
3853
|
+
let localVarQueryParameters: any = {};
|
|
3854
|
+
let localVarHeaderParams: any = (<any>Object).assign(
|
|
3855
|
+
{},
|
|
3856
|
+
this._defaultHeaders
|
|
3857
|
+
);
|
|
3858
|
+
const produces = [
|
|
3859
|
+
'application/vnd.segment.v1+json',
|
|
3860
|
+
'application/json',
|
|
3861
|
+
];
|
|
3862
|
+
if (produces.indexOf('application/json') >= 0) {
|
|
3863
|
+
localVarHeaderParams.Accept = produces[0];
|
|
3864
|
+
} else {
|
|
3865
|
+
localVarHeaderParams.Accept = 'application/json';
|
|
3866
|
+
}
|
|
3867
|
+
let localVarFormParams: any = {};
|
|
3868
|
+
|
|
3869
|
+
// verify required parameter 'pagination' is not null or undefined
|
|
3870
|
+
if (pagination === null || pagination === undefined) {
|
|
3871
|
+
throw new Error(
|
|
3872
|
+
'Required parameter pagination was null or undefined when calling listUsersV1.'
|
|
3873
|
+
);
|
|
3874
|
+
}
|
|
3875
|
+
|
|
3876
|
+
if (pagination !== undefined) {
|
|
3877
|
+
localVarQueryParameters['pagination'] = ObjectSerializer.serialize(
|
|
3878
|
+
pagination,
|
|
3879
|
+
'PaginationInput'
|
|
3880
|
+
);
|
|
3881
|
+
}
|
|
3882
|
+
|
|
3883
|
+
(<any>Object).assign(localVarHeaderParams, options.headers);
|
|
3884
|
+
|
|
3885
|
+
let localVarUseFormData = false;
|
|
3886
|
+
|
|
3887
|
+
let localVarRequestOptions: localVarRequest.Options = {
|
|
3888
|
+
method: 'GET',
|
|
3889
|
+
qs: localVarQueryParameters,
|
|
3890
|
+
headers: localVarHeaderParams,
|
|
3891
|
+
uri: localVarPath,
|
|
3892
|
+
useQuerystring: this._useQuerystring,
|
|
3893
|
+
json: true,
|
|
3894
|
+
};
|
|
3895
|
+
|
|
3896
|
+
let authenticationPromise = Promise.resolve();
|
|
3897
|
+
if (this.authentications.token.accessToken) {
|
|
3898
|
+
authenticationPromise = authenticationPromise.then(() =>
|
|
3899
|
+
this.authentications.token.applyToRequest(
|
|
3900
|
+
localVarRequestOptions
|
|
3901
|
+
)
|
|
3902
|
+
);
|
|
3903
|
+
}
|
|
3904
|
+
authenticationPromise = authenticationPromise.then(() =>
|
|
3905
|
+
this.authentications.default.applyToRequest(localVarRequestOptions)
|
|
3906
|
+
);
|
|
3907
|
+
|
|
3908
|
+
let interceptorPromise = authenticationPromise;
|
|
3909
|
+
for (const interceptor of this.interceptors) {
|
|
3910
|
+
interceptorPromise = interceptorPromise.then(() =>
|
|
3911
|
+
interceptor(localVarRequestOptions)
|
|
3912
|
+
);
|
|
3913
|
+
}
|
|
3914
|
+
|
|
3915
|
+
return interceptorPromise.then(() => {
|
|
3916
|
+
if (Object.keys(localVarFormParams).length) {
|
|
3917
|
+
if (localVarUseFormData) {
|
|
3918
|
+
(<any>localVarRequestOptions).formData = localVarFormParams;
|
|
3919
|
+
} else {
|
|
3920
|
+
localVarRequestOptions.form = localVarFormParams;
|
|
3921
|
+
}
|
|
3922
|
+
}
|
|
3923
|
+
return new Promise<{
|
|
3924
|
+
response: http.IncomingMessage;
|
|
3925
|
+
body: ListUsers200Response;
|
|
3926
|
+
}>((resolve, reject) => {
|
|
3927
|
+
localVarRequest(
|
|
3928
|
+
localVarRequestOptions,
|
|
3929
|
+
(error, response, body) => {
|
|
3930
|
+
if (error) {
|
|
3931
|
+
reject(error);
|
|
3932
|
+
} else {
|
|
3933
|
+
if (
|
|
3934
|
+
response.statusCode &&
|
|
3935
|
+
response.statusCode >= 200 &&
|
|
3936
|
+
response.statusCode <= 299
|
|
3937
|
+
) {
|
|
3938
|
+
body = ObjectSerializer.deserialize(
|
|
3939
|
+
body,
|
|
3940
|
+
'ListUsers200Response'
|
|
3941
|
+
);
|
|
3942
|
+
resolve({ response: response, body: body });
|
|
3943
|
+
} else {
|
|
3944
|
+
reject(
|
|
3945
|
+
new HttpError(
|
|
3946
|
+
response,
|
|
3947
|
+
body,
|
|
3948
|
+
response.statusCode
|
|
3949
|
+
)
|
|
3950
|
+
);
|
|
3951
|
+
}
|
|
3952
|
+
}
|
|
3953
|
+
}
|
|
3954
|
+
);
|
|
3955
|
+
});
|
|
3956
|
+
});
|
|
3957
|
+
}
|
|
3958
|
+
/**
|
|
3959
|
+
* Updates the list of access permissions for a user. When called, this endpoint may generate the `Policy Deleted` [Audit Trail](/tag/Audit-Trail) event. The rate limit for this endpoint is 60 requests per minute, which is lower than the default due to access pattern restrictions. Once reached, this endpoint will respond with the 429 HTTP status code with headers indicating the limit parameters. See [Rate Limiting](/#tag/Rate-Limits) for more information.
|
|
3960
|
+
* @summary Replace Permissions for User
|
|
3961
|
+
* @param userId
|
|
3962
|
+
* @param ReplacePermissionsForUserV1Input
|
|
3963
|
+
*/
|
|
3964
|
+
public async replacePermissionsForUserAlpha(
|
|
3965
|
+
userId: string,
|
|
3966
|
+
ReplacePermissionsForUserV1Input: ReplacePermissionsForUserV1Input,
|
|
3967
|
+
options: { headers: { [name: string]: string } } = { headers: {} }
|
|
3968
|
+
): Promise<{
|
|
3969
|
+
response: http.IncomingMessage;
|
|
3970
|
+
body: ReplacePermissionsForUser200Response;
|
|
3971
|
+
}> {
|
|
3972
|
+
const localVarPath =
|
|
3973
|
+
this.basePath +
|
|
3974
|
+
'/users/{userId}/permissions'.replace(
|
|
3975
|
+
'{' + 'userId' + '}',
|
|
3976
|
+
encodeURIComponent(String(userId))
|
|
3977
|
+
);
|
|
3978
|
+
let localVarQueryParameters: any = {};
|
|
3979
|
+
let localVarHeaderParams: any = (<any>Object).assign(
|
|
3980
|
+
{},
|
|
3981
|
+
this._defaultHeaders
|
|
3982
|
+
);
|
|
3983
|
+
const produces = [
|
|
3984
|
+
'application/vnd.segment.v1alpha+json',
|
|
3985
|
+
'application/json',
|
|
3986
|
+
];
|
|
3987
|
+
if (produces.indexOf('application/json') >= 0) {
|
|
3988
|
+
localVarHeaderParams.Accept = produces[0];
|
|
3989
|
+
} else {
|
|
3990
|
+
localVarHeaderParams.Accept = 'application/json';
|
|
3991
|
+
}
|
|
3992
|
+
let localVarFormParams: any = {};
|
|
3993
|
+
|
|
3994
|
+
// verify required parameter 'userId' is not null or undefined
|
|
3995
|
+
if (userId === null || userId === undefined) {
|
|
3996
|
+
throw new Error(
|
|
3997
|
+
'Required parameter userId was null or undefined when calling replacePermissionsForUserAlpha.'
|
|
3998
|
+
);
|
|
3999
|
+
}
|
|
4000
|
+
|
|
4001
|
+
// verify required parameter 'ReplacePermissionsForUserV1Input' is not null or undefined
|
|
4002
|
+
if (
|
|
4003
|
+
ReplacePermissionsForUserV1Input === null ||
|
|
4004
|
+
ReplacePermissionsForUserV1Input === undefined
|
|
4005
|
+
) {
|
|
4006
|
+
throw new Error(
|
|
4007
|
+
'Required parameter ReplacePermissionsForUserV1Input was null or undefined when calling replacePermissionsForUserAlpha.'
|
|
4008
|
+
);
|
|
4009
|
+
}
|
|
4010
|
+
|
|
4011
|
+
(<any>Object).assign(localVarHeaderParams, options.headers);
|
|
4012
|
+
|
|
4013
|
+
let localVarUseFormData = false;
|
|
4014
|
+
|
|
4015
|
+
let localVarRequestOptions: localVarRequest.Options = {
|
|
4016
|
+
method: 'PUT',
|
|
4017
|
+
qs: localVarQueryParameters,
|
|
4018
|
+
headers: localVarHeaderParams,
|
|
4019
|
+
uri: localVarPath,
|
|
4020
|
+
useQuerystring: this._useQuerystring,
|
|
4021
|
+
json: true,
|
|
4022
|
+
body: ObjectSerializer.serialize(
|
|
4023
|
+
ReplacePermissionsForUserV1Input,
|
|
4024
|
+
'ReplacePermissionsForUserV1Input'
|
|
4025
|
+
),
|
|
4026
|
+
};
|
|
4027
|
+
|
|
4028
|
+
let authenticationPromise = Promise.resolve();
|
|
4029
|
+
if (this.authentications.token.accessToken) {
|
|
4030
|
+
authenticationPromise = authenticationPromise.then(() =>
|
|
4031
|
+
this.authentications.token.applyToRequest(
|
|
4032
|
+
localVarRequestOptions
|
|
4033
|
+
)
|
|
4034
|
+
);
|
|
4035
|
+
}
|
|
4036
|
+
authenticationPromise = authenticationPromise.then(() =>
|
|
4037
|
+
this.authentications.default.applyToRequest(localVarRequestOptions)
|
|
4038
|
+
);
|
|
4039
|
+
|
|
4040
|
+
let interceptorPromise = authenticationPromise;
|
|
4041
|
+
for (const interceptor of this.interceptors) {
|
|
4042
|
+
interceptorPromise = interceptorPromise.then(() =>
|
|
4043
|
+
interceptor(localVarRequestOptions)
|
|
4044
|
+
);
|
|
4045
|
+
}
|
|
4046
|
+
|
|
4047
|
+
return interceptorPromise.then(() => {
|
|
4048
|
+
if (Object.keys(localVarFormParams).length) {
|
|
4049
|
+
if (localVarUseFormData) {
|
|
4050
|
+
(<any>localVarRequestOptions).formData = localVarFormParams;
|
|
4051
|
+
} else {
|
|
4052
|
+
localVarRequestOptions.form = localVarFormParams;
|
|
4053
|
+
}
|
|
4054
|
+
}
|
|
4055
|
+
return new Promise<{
|
|
4056
|
+
response: http.IncomingMessage;
|
|
4057
|
+
body: ReplacePermissionsForUser200Response;
|
|
4058
|
+
}>((resolve, reject) => {
|
|
4059
|
+
localVarRequest(
|
|
4060
|
+
localVarRequestOptions,
|
|
4061
|
+
(error, response, body) => {
|
|
4062
|
+
if (error) {
|
|
4063
|
+
reject(error);
|
|
4064
|
+
} else {
|
|
4065
|
+
if (
|
|
4066
|
+
response.statusCode &&
|
|
4067
|
+
response.statusCode >= 200 &&
|
|
4068
|
+
response.statusCode <= 299
|
|
4069
|
+
) {
|
|
4070
|
+
body = ObjectSerializer.deserialize(
|
|
4071
|
+
body,
|
|
4072
|
+
'ReplacePermissionsForUser200Response'
|
|
4073
|
+
);
|
|
4074
|
+
resolve({ response: response, body: body });
|
|
4075
|
+
} else {
|
|
4076
|
+
reject(
|
|
4077
|
+
new HttpError(
|
|
4078
|
+
response,
|
|
4079
|
+
body,
|
|
4080
|
+
response.statusCode
|
|
4081
|
+
)
|
|
4082
|
+
);
|
|
4083
|
+
}
|
|
4084
|
+
}
|
|
4085
|
+
}
|
|
4086
|
+
);
|
|
4087
|
+
});
|
|
4088
|
+
});
|
|
4089
|
+
}
|
|
4090
|
+
/**
|
|
4091
|
+
* Updates the list of access permissions for a user. When called, this endpoint may generate the `Policy Deleted` [Audit Trail](/tag/Audit-Trail) event. The rate limit for this endpoint is 60 requests per minute, which is lower than the default due to access pattern restrictions. Once reached, this endpoint will respond with the 429 HTTP status code with headers indicating the limit parameters. See [Rate Limiting](/#tag/Rate-Limits) for more information.
|
|
4092
|
+
* @summary Replace Permissions for User
|
|
4093
|
+
* @param userId
|
|
4094
|
+
* @param ReplacePermissionsForUserV1Input
|
|
4095
|
+
*/
|
|
4096
|
+
public async replacePermissionsForUserBeta(
|
|
4097
|
+
userId: string,
|
|
4098
|
+
ReplacePermissionsForUserV1Input: ReplacePermissionsForUserV1Input,
|
|
4099
|
+
options: { headers: { [name: string]: string } } = { headers: {} }
|
|
4100
|
+
): Promise<{
|
|
4101
|
+
response: http.IncomingMessage;
|
|
4102
|
+
body: ReplacePermissionsForUser200Response;
|
|
4103
|
+
}> {
|
|
4104
|
+
const localVarPath =
|
|
4105
|
+
this.basePath +
|
|
4106
|
+
'/users/{userId}/permissions'.replace(
|
|
4107
|
+
'{' + 'userId' + '}',
|
|
4108
|
+
encodeURIComponent(String(userId))
|
|
4109
|
+
);
|
|
4110
|
+
let localVarQueryParameters: any = {};
|
|
4111
|
+
let localVarHeaderParams: any = (<any>Object).assign(
|
|
4112
|
+
{},
|
|
4113
|
+
this._defaultHeaders
|
|
4114
|
+
);
|
|
4115
|
+
const produces = [
|
|
4116
|
+
'application/vnd.segment.v1beta+json',
|
|
4117
|
+
'application/json',
|
|
4118
|
+
];
|
|
4119
|
+
if (produces.indexOf('application/json') >= 0) {
|
|
4120
|
+
localVarHeaderParams.Accept = produces[0];
|
|
4121
|
+
} else {
|
|
4122
|
+
localVarHeaderParams.Accept = 'application/json';
|
|
4123
|
+
}
|
|
4124
|
+
let localVarFormParams: any = {};
|
|
4125
|
+
|
|
4126
|
+
// verify required parameter 'userId' is not null or undefined
|
|
4127
|
+
if (userId === null || userId === undefined) {
|
|
4128
|
+
throw new Error(
|
|
4129
|
+
'Required parameter userId was null or undefined when calling replacePermissionsForUserBeta.'
|
|
4130
|
+
);
|
|
4131
|
+
}
|
|
4132
|
+
|
|
4133
|
+
// verify required parameter 'ReplacePermissionsForUserV1Input' is not null or undefined
|
|
4134
|
+
if (
|
|
4135
|
+
ReplacePermissionsForUserV1Input === null ||
|
|
4136
|
+
ReplacePermissionsForUserV1Input === undefined
|
|
4137
|
+
) {
|
|
4138
|
+
throw new Error(
|
|
4139
|
+
'Required parameter ReplacePermissionsForUserV1Input was null or undefined when calling replacePermissionsForUserBeta.'
|
|
4140
|
+
);
|
|
4141
|
+
}
|
|
4142
|
+
|
|
4143
|
+
(<any>Object).assign(localVarHeaderParams, options.headers);
|
|
4144
|
+
|
|
4145
|
+
let localVarUseFormData = false;
|
|
4146
|
+
|
|
4147
|
+
let localVarRequestOptions: localVarRequest.Options = {
|
|
4148
|
+
method: 'PUT',
|
|
4149
|
+
qs: localVarQueryParameters,
|
|
4150
|
+
headers: localVarHeaderParams,
|
|
4151
|
+
uri: localVarPath,
|
|
4152
|
+
useQuerystring: this._useQuerystring,
|
|
4153
|
+
json: true,
|
|
4154
|
+
body: ObjectSerializer.serialize(
|
|
4155
|
+
ReplacePermissionsForUserV1Input,
|
|
4156
|
+
'ReplacePermissionsForUserV1Input'
|
|
4157
|
+
),
|
|
4158
|
+
};
|
|
4159
|
+
|
|
4160
|
+
let authenticationPromise = Promise.resolve();
|
|
4161
|
+
if (this.authentications.token.accessToken) {
|
|
4162
|
+
authenticationPromise = authenticationPromise.then(() =>
|
|
4163
|
+
this.authentications.token.applyToRequest(
|
|
4164
|
+
localVarRequestOptions
|
|
4165
|
+
)
|
|
4166
|
+
);
|
|
4167
|
+
}
|
|
4168
|
+
authenticationPromise = authenticationPromise.then(() =>
|
|
4169
|
+
this.authentications.default.applyToRequest(localVarRequestOptions)
|
|
4170
|
+
);
|
|
4171
|
+
|
|
4172
|
+
let interceptorPromise = authenticationPromise;
|
|
4173
|
+
for (const interceptor of this.interceptors) {
|
|
4174
|
+
interceptorPromise = interceptorPromise.then(() =>
|
|
4175
|
+
interceptor(localVarRequestOptions)
|
|
4176
|
+
);
|
|
4177
|
+
}
|
|
4178
|
+
|
|
4179
|
+
return interceptorPromise.then(() => {
|
|
4180
|
+
if (Object.keys(localVarFormParams).length) {
|
|
4181
|
+
if (localVarUseFormData) {
|
|
4182
|
+
(<any>localVarRequestOptions).formData = localVarFormParams;
|
|
4183
|
+
} else {
|
|
4184
|
+
localVarRequestOptions.form = localVarFormParams;
|
|
4185
|
+
}
|
|
4186
|
+
}
|
|
4187
|
+
return new Promise<{
|
|
4188
|
+
response: http.IncomingMessage;
|
|
4189
|
+
body: ReplacePermissionsForUser200Response;
|
|
4190
|
+
}>((resolve, reject) => {
|
|
4191
|
+
localVarRequest(
|
|
4192
|
+
localVarRequestOptions,
|
|
4193
|
+
(error, response, body) => {
|
|
4194
|
+
if (error) {
|
|
4195
|
+
reject(error);
|
|
4196
|
+
} else {
|
|
4197
|
+
if (
|
|
4198
|
+
response.statusCode &&
|
|
4199
|
+
response.statusCode >= 200 &&
|
|
4200
|
+
response.statusCode <= 299
|
|
4201
|
+
) {
|
|
4202
|
+
body = ObjectSerializer.deserialize(
|
|
4203
|
+
body,
|
|
4204
|
+
'ReplacePermissionsForUser200Response'
|
|
4205
|
+
);
|
|
4206
|
+
resolve({ response: response, body: body });
|
|
4207
|
+
} else {
|
|
4208
|
+
reject(
|
|
4209
|
+
new HttpError(
|
|
4210
|
+
response,
|
|
4211
|
+
body,
|
|
4212
|
+
response.statusCode
|
|
4213
|
+
)
|
|
4214
|
+
);
|
|
4215
|
+
}
|
|
4216
|
+
}
|
|
4217
|
+
}
|
|
4218
|
+
);
|
|
4219
|
+
});
|
|
4220
|
+
});
|
|
4221
|
+
}
|
|
4222
|
+
/**
|
|
4223
|
+
* Updates the list of access permissions for a user. When called, this endpoint may generate the `Policy Deleted` [Audit Trail](/tag/Audit-Trail) event. The rate limit for this endpoint is 60 requests per minute, which is lower than the default due to access pattern restrictions. Once reached, this endpoint will respond with the 429 HTTP status code with headers indicating the limit parameters. See [Rate Limiting](/#tag/Rate-Limits) for more information.
|
|
4224
|
+
* @summary Replace Permissions for User
|
|
4225
|
+
* @param userId
|
|
4226
|
+
* @param ReplacePermissionsForUserV1Input
|
|
4227
|
+
*/
|
|
4228
|
+
public async replacePermissionsForUserCurrent(
|
|
4229
|
+
userId: string,
|
|
4230
|
+
ReplacePermissionsForUserV1Input: ReplacePermissionsForUserV1Input,
|
|
4231
|
+
options: { headers: { [name: string]: string } } = { headers: {} }
|
|
4232
|
+
): Promise<{
|
|
4233
|
+
response: http.IncomingMessage;
|
|
4234
|
+
body: ReplacePermissionsForUser200Response;
|
|
4235
|
+
}> {
|
|
4236
|
+
const localVarPath =
|
|
4237
|
+
this.basePath +
|
|
4238
|
+
'/users/{userId}/permissions'.replace(
|
|
4239
|
+
'{' + 'userId' + '}',
|
|
4240
|
+
encodeURIComponent(String(userId))
|
|
4241
|
+
);
|
|
4242
|
+
let localVarQueryParameters: any = {};
|
|
4243
|
+
let localVarHeaderParams: any = (<any>Object).assign(
|
|
4244
|
+
{},
|
|
4245
|
+
this._defaultHeaders
|
|
4246
|
+
);
|
|
4247
|
+
const produces = [
|
|
4248
|
+
'application/vnd.segment.v1+json',
|
|
4249
|
+
'application/json',
|
|
4250
|
+
];
|
|
4251
|
+
if (produces.indexOf('application/json') >= 0) {
|
|
4252
|
+
localVarHeaderParams.Accept = produces[0];
|
|
4253
|
+
} else {
|
|
4254
|
+
localVarHeaderParams.Accept = 'application/json';
|
|
4255
|
+
}
|
|
4256
|
+
let localVarFormParams: any = {};
|
|
4257
|
+
|
|
4258
|
+
// verify required parameter 'userId' is not null or undefined
|
|
4259
|
+
if (userId === null || userId === undefined) {
|
|
4260
|
+
throw new Error(
|
|
4261
|
+
'Required parameter userId was null or undefined when calling replacePermissionsForUserCurrent.'
|
|
4262
|
+
);
|
|
4263
|
+
}
|
|
4264
|
+
|
|
4265
|
+
// verify required parameter 'ReplacePermissionsForUserV1Input' is not null or undefined
|
|
4266
|
+
if (
|
|
4267
|
+
ReplacePermissionsForUserV1Input === null ||
|
|
4268
|
+
ReplacePermissionsForUserV1Input === undefined
|
|
4269
|
+
) {
|
|
4270
|
+
throw new Error(
|
|
4271
|
+
'Required parameter ReplacePermissionsForUserV1Input was null or undefined when calling replacePermissionsForUserCurrent.'
|
|
4272
|
+
);
|
|
4273
|
+
}
|
|
4274
|
+
|
|
4275
|
+
(<any>Object).assign(localVarHeaderParams, options.headers);
|
|
4276
|
+
|
|
4277
|
+
let localVarUseFormData = false;
|
|
4278
|
+
|
|
4279
|
+
let localVarRequestOptions: localVarRequest.Options = {
|
|
4280
|
+
method: 'PUT',
|
|
4281
|
+
qs: localVarQueryParameters,
|
|
4282
|
+
headers: localVarHeaderParams,
|
|
4283
|
+
uri: localVarPath,
|
|
4284
|
+
useQuerystring: this._useQuerystring,
|
|
4285
|
+
json: true,
|
|
4286
|
+
body: ObjectSerializer.serialize(
|
|
4287
|
+
ReplacePermissionsForUserV1Input,
|
|
4288
|
+
'ReplacePermissionsForUserV1Input'
|
|
4289
|
+
),
|
|
4290
|
+
};
|
|
4291
|
+
|
|
4292
|
+
let authenticationPromise = Promise.resolve();
|
|
4293
|
+
if (this.authentications.token.accessToken) {
|
|
4294
|
+
authenticationPromise = authenticationPromise.then(() =>
|
|
4295
|
+
this.authentications.token.applyToRequest(
|
|
4296
|
+
localVarRequestOptions
|
|
4297
|
+
)
|
|
4298
|
+
);
|
|
4299
|
+
}
|
|
4300
|
+
authenticationPromise = authenticationPromise.then(() =>
|
|
4301
|
+
this.authentications.default.applyToRequest(localVarRequestOptions)
|
|
4302
|
+
);
|
|
4303
|
+
|
|
4304
|
+
let interceptorPromise = authenticationPromise;
|
|
4305
|
+
for (const interceptor of this.interceptors) {
|
|
4306
|
+
interceptorPromise = interceptorPromise.then(() =>
|
|
4307
|
+
interceptor(localVarRequestOptions)
|
|
4308
|
+
);
|
|
4309
|
+
}
|
|
4310
|
+
|
|
4311
|
+
return interceptorPromise.then(() => {
|
|
4312
|
+
if (Object.keys(localVarFormParams).length) {
|
|
4313
|
+
if (localVarUseFormData) {
|
|
4314
|
+
(<any>localVarRequestOptions).formData = localVarFormParams;
|
|
4315
|
+
} else {
|
|
4316
|
+
localVarRequestOptions.form = localVarFormParams;
|
|
4317
|
+
}
|
|
4318
|
+
}
|
|
4319
|
+
return new Promise<{
|
|
4320
|
+
response: http.IncomingMessage;
|
|
4321
|
+
body: ReplacePermissionsForUser200Response;
|
|
4322
|
+
}>((resolve, reject) => {
|
|
4323
|
+
localVarRequest(
|
|
4324
|
+
localVarRequestOptions,
|
|
4325
|
+
(error, response, body) => {
|
|
4326
|
+
if (error) {
|
|
4327
|
+
reject(error);
|
|
4328
|
+
} else {
|
|
4329
|
+
if (
|
|
4330
|
+
response.statusCode &&
|
|
4331
|
+
response.statusCode >= 200 &&
|
|
4332
|
+
response.statusCode <= 299
|
|
4333
|
+
) {
|
|
4334
|
+
body = ObjectSerializer.deserialize(
|
|
4335
|
+
body,
|
|
4336
|
+
'ReplacePermissionsForUser200Response'
|
|
4337
|
+
);
|
|
4338
|
+
resolve({ response: response, body: body });
|
|
4339
|
+
} else {
|
|
4340
|
+
reject(
|
|
4341
|
+
new HttpError(
|
|
4342
|
+
response,
|
|
4343
|
+
body,
|
|
4344
|
+
response.statusCode
|
|
4345
|
+
)
|
|
4346
|
+
);
|
|
4347
|
+
}
|
|
4348
|
+
}
|
|
4349
|
+
}
|
|
4350
|
+
);
|
|
4351
|
+
});
|
|
4352
|
+
});
|
|
4353
|
+
}
|
|
4354
|
+
/**
|
|
4355
|
+
* Updates the list of access permissions for a user. When called, this endpoint may generate the `Policy Deleted` [Audit Trail](/tag/Audit-Trail) event. The rate limit for this endpoint is 60 requests per minute, which is lower than the default due to access pattern restrictions. Once reached, this endpoint will respond with the 429 HTTP status code with headers indicating the limit parameters. See [Rate Limiting](/#tag/Rate-Limits) for more information.
|
|
4356
|
+
* @summary Replace Permissions for User
|
|
4357
|
+
* @param userId
|
|
4358
|
+
* @param ReplacePermissionsForUserV1Input
|
|
4359
|
+
*/
|
|
4360
|
+
public async replacePermissionsForUserV1(
|
|
4361
|
+
userId: string,
|
|
4362
|
+
ReplacePermissionsForUserV1Input: ReplacePermissionsForUserV1Input,
|
|
4363
|
+
options: { headers: { [name: string]: string } } = { headers: {} }
|
|
4364
|
+
): Promise<{
|
|
4365
|
+
response: http.IncomingMessage;
|
|
4366
|
+
body: ReplacePermissionsForUser200Response;
|
|
4367
|
+
}> {
|
|
4368
|
+
const localVarPath =
|
|
4369
|
+
this.basePath +
|
|
4370
|
+
'/users/{userId}/permissions'.replace(
|
|
4371
|
+
'{' + 'userId' + '}',
|
|
4372
|
+
encodeURIComponent(String(userId))
|
|
4373
|
+
);
|
|
4374
|
+
let localVarQueryParameters: any = {};
|
|
4375
|
+
let localVarHeaderParams: any = (<any>Object).assign(
|
|
4376
|
+
{},
|
|
4377
|
+
this._defaultHeaders
|
|
4378
|
+
);
|
|
4379
|
+
const produces = [
|
|
4380
|
+
'application/vnd.segment.v1+json',
|
|
4381
|
+
'application/json',
|
|
4382
|
+
];
|
|
4383
|
+
if (produces.indexOf('application/json') >= 0) {
|
|
4384
|
+
localVarHeaderParams.Accept = produces[0];
|
|
4385
|
+
} else {
|
|
4386
|
+
localVarHeaderParams.Accept = 'application/json';
|
|
4387
|
+
}
|
|
4388
|
+
let localVarFormParams: any = {};
|
|
4389
|
+
|
|
4390
|
+
// verify required parameter 'userId' is not null or undefined
|
|
4391
|
+
if (userId === null || userId === undefined) {
|
|
4392
|
+
throw new Error(
|
|
4393
|
+
'Required parameter userId was null or undefined when calling replacePermissionsForUserV1.'
|
|
4394
|
+
);
|
|
4395
|
+
}
|
|
4396
|
+
|
|
4397
|
+
// verify required parameter 'ReplacePermissionsForUserV1Input' is not null or undefined
|
|
4398
|
+
if (
|
|
4399
|
+
ReplacePermissionsForUserV1Input === null ||
|
|
4400
|
+
ReplacePermissionsForUserV1Input === undefined
|
|
4401
|
+
) {
|
|
4402
|
+
throw new Error(
|
|
4403
|
+
'Required parameter ReplacePermissionsForUserV1Input was null or undefined when calling replacePermissionsForUserV1.'
|
|
4404
|
+
);
|
|
4405
|
+
}
|
|
4406
|
+
|
|
4407
|
+
(<any>Object).assign(localVarHeaderParams, options.headers);
|
|
4408
|
+
|
|
4409
|
+
let localVarUseFormData = false;
|
|
4410
|
+
|
|
4411
|
+
let localVarRequestOptions: localVarRequest.Options = {
|
|
4412
|
+
method: 'PUT',
|
|
4413
|
+
qs: localVarQueryParameters,
|
|
4414
|
+
headers: localVarHeaderParams,
|
|
4415
|
+
uri: localVarPath,
|
|
4416
|
+
useQuerystring: this._useQuerystring,
|
|
4417
|
+
json: true,
|
|
4418
|
+
body: ObjectSerializer.serialize(
|
|
4419
|
+
ReplacePermissionsForUserV1Input,
|
|
4420
|
+
'ReplacePermissionsForUserV1Input'
|
|
4421
|
+
),
|
|
4422
|
+
};
|
|
4423
|
+
|
|
4424
|
+
let authenticationPromise = Promise.resolve();
|
|
4425
|
+
if (this.authentications.token.accessToken) {
|
|
4426
|
+
authenticationPromise = authenticationPromise.then(() =>
|
|
4427
|
+
this.authentications.token.applyToRequest(
|
|
4428
|
+
localVarRequestOptions
|
|
4429
|
+
)
|
|
4430
|
+
);
|
|
4431
|
+
}
|
|
4432
|
+
authenticationPromise = authenticationPromise.then(() =>
|
|
4433
|
+
this.authentications.default.applyToRequest(localVarRequestOptions)
|
|
4434
|
+
);
|
|
4435
|
+
|
|
4436
|
+
let interceptorPromise = authenticationPromise;
|
|
4437
|
+
for (const interceptor of this.interceptors) {
|
|
4438
|
+
interceptorPromise = interceptorPromise.then(() =>
|
|
4439
|
+
interceptor(localVarRequestOptions)
|
|
4440
|
+
);
|
|
4441
|
+
}
|
|
4442
|
+
|
|
4443
|
+
return interceptorPromise.then(() => {
|
|
4444
|
+
if (Object.keys(localVarFormParams).length) {
|
|
4445
|
+
if (localVarUseFormData) {
|
|
4446
|
+
(<any>localVarRequestOptions).formData = localVarFormParams;
|
|
4447
|
+
} else {
|
|
4448
|
+
localVarRequestOptions.form = localVarFormParams;
|
|
4449
|
+
}
|
|
4450
|
+
}
|
|
4451
|
+
return new Promise<{
|
|
4452
|
+
response: http.IncomingMessage;
|
|
4453
|
+
body: ReplacePermissionsForUser200Response;
|
|
4454
|
+
}>((resolve, reject) => {
|
|
4455
|
+
localVarRequest(
|
|
4456
|
+
localVarRequestOptions,
|
|
4457
|
+
(error, response, body) => {
|
|
4458
|
+
if (error) {
|
|
4459
|
+
reject(error);
|
|
4460
|
+
} else {
|
|
4461
|
+
if (
|
|
4462
|
+
response.statusCode &&
|
|
4463
|
+
response.statusCode >= 200 &&
|
|
4464
|
+
response.statusCode <= 299
|
|
4465
|
+
) {
|
|
4466
|
+
body = ObjectSerializer.deserialize(
|
|
4467
|
+
body,
|
|
4468
|
+
'ReplacePermissionsForUser200Response'
|
|
4469
|
+
);
|
|
4470
|
+
resolve({ response: response, body: body });
|
|
4471
|
+
} else {
|
|
4472
|
+
reject(
|
|
4473
|
+
new HttpError(
|
|
4474
|
+
response,
|
|
4475
|
+
body,
|
|
4476
|
+
response.statusCode
|
|
4477
|
+
)
|
|
4478
|
+
);
|
|
4479
|
+
}
|
|
4480
|
+
}
|
|
4481
|
+
}
|
|
4482
|
+
);
|
|
4483
|
+
});
|
|
4484
|
+
});
|
|
4485
|
+
}
|
|
4486
|
+
}
|