@segment/public-api-sdk-typescript 58.12.0-b11952 → 58.13.0-b11958

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