@segment/public-api-sdk-typescript 32.0.2-b5004 → 33.0.2-b5327

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 (753) hide show
  1. package/README.md +31 -27
  2. package/api/aPICallsApi.ts +23 -815
  3. package/api/auditTrailApi.ts +12 -462
  4. package/api/catalogApi.ts +103 -2182
  5. package/api/deletionAndSuppressionApi.ts +174 -3281
  6. package/api/destinationFiltersApi.ts +112 -2449
  7. package/api/destinationsApi.ts +238 -2166
  8. package/api/edgeFunctionsApi.ts +13 -9
  9. package/api/eventsApi.ts +19 -625
  10. package/api/functionsApi.ts +120 -2289
  11. package/api/iAMGroupsApi.ts +232 -4750
  12. package/api/iAMRolesApi.ts +8 -347
  13. package/api/iAMUsersApi.ts +190 -3433
  14. package/api/labelsApi.ts +59 -1079
  15. package/api/monthlyTrackedUsersApi.ts +23 -815
  16. package/api/selectiveSyncApi.ts +156 -2538
  17. package/api/sourcesApi.ts +211 -4276
  18. package/api/spacesApi.ts +10 -7
  19. package/api/testingApi.ts +14 -317
  20. package/api/trackingPlansApi.ts +257 -4799
  21. package/api/transformationsApi.ts +60 -650
  22. package/api/warehousesApi.ts +200 -3827
  23. package/api/workspacesApi.ts +6 -306
  24. package/dist/api/aPICallsApi.d.ts +2 -50
  25. package/dist/api/aPICallsApi.js +18 -560
  26. package/dist/api/aPICallsApi.js.map +1 -1
  27. package/dist/api/apis.js +1 -1
  28. package/dist/api/auditTrailApi.d.ts +1 -25
  29. package/dist/api/auditTrailApi.js +8 -300
  30. package/dist/api/auditTrailApi.js.map +1 -1
  31. package/dist/api/catalogApi.d.ts +6 -150
  32. package/dist/api/catalogApi.js +65 -1568
  33. package/dist/api/catalogApi.js.map +1 -1
  34. package/dist/api/deletionAndSuppressionApi.d.ts +8 -200
  35. package/dist/api/deletionAndSuppressionApi.js +105 -2195
  36. package/dist/api/deletionAndSuppressionApi.js.map +1 -1
  37. package/dist/api/destinationFiltersApi.d.ts +6 -150
  38. package/dist/api/destinationFiltersApi.js +71 -1658
  39. package/dist/api/destinationFiltersApi.js.map +1 -1
  40. package/dist/api/destinationsApi.d.ts +6 -134
  41. package/dist/api/destinationsApi.js +155 -1518
  42. package/dist/api/destinationsApi.js.map +1 -1
  43. package/dist/api/edgeFunctionsApi.js +9 -9
  44. package/dist/api/edgeFunctionsApi.js.map +1 -1
  45. package/dist/api/eventsApi.d.ts +1 -25
  46. package/dist/api/eventsApi.js +10 -353
  47. package/dist/api/eventsApi.js.map +1 -1
  48. package/dist/api/functionsApi.d.ts +6 -150
  49. package/dist/api/functionsApi.js +75 -1608
  50. package/dist/api/functionsApi.js.map +1 -1
  51. package/dist/api/iAMGroupsApi.d.ts +12 -300
  52. package/dist/api/iAMGroupsApi.js +158 -3278
  53. package/dist/api/iAMGroupsApi.js.map +1 -1
  54. package/dist/api/iAMRolesApi.d.ts +1 -25
  55. package/dist/api/iAMRolesApi.js +8 -261
  56. package/dist/api/iAMRolesApi.js.map +1 -1
  57. package/dist/api/iAMUsersApi.d.ts +9 -225
  58. package/dist/api/iAMUsersApi.js +115 -2422
  59. package/dist/api/iAMUsersApi.js.map +1 -1
  60. package/dist/api/labelsApi.d.ts +3 -79
  61. package/dist/api/labelsApi.js +33 -781
  62. package/dist/api/labelsApi.js.map +1 -1
  63. package/dist/api/monthlyTrackedUsersApi.d.ts +2 -50
  64. package/dist/api/monthlyTrackedUsersApi.js +18 -560
  65. package/dist/api/monthlyTrackedUsersApi.js.map +1 -1
  66. package/dist/api/selectiveSyncApi.d.ts +6 -150
  67. package/dist/api/selectiveSyncApi.js +92 -1694
  68. package/dist/api/selectiveSyncApi.js.map +1 -1
  69. package/dist/api/sourcesApi.d.ts +11 -288
  70. package/dist/api/sourcesApi.js +143 -2976
  71. package/dist/api/sourcesApi.js.map +1 -1
  72. package/dist/api/spacesApi.js +7 -7
  73. package/dist/api/spacesApi.js.map +1 -1
  74. package/dist/api/testingApi.d.ts +1 -18
  75. package/dist/api/testingApi.js +7 -211
  76. package/dist/api/testingApi.js.map +1 -1
  77. package/dist/api/trackingPlansApi.d.ts +12 -300
  78. package/dist/api/trackingPlansApi.js +167 -3296
  79. package/dist/api/trackingPlansApi.js.map +1 -1
  80. package/dist/api/transformationsApi.d.ts +5 -45
  81. package/dist/api/transformationsApi.js +34 -457
  82. package/dist/api/transformationsApi.js.map +1 -1
  83. package/dist/api/warehousesApi.d.ts +10 -250
  84. package/dist/api/warehousesApi.js +132 -2686
  85. package/dist/api/warehousesApi.js.map +1 -1
  86. package/dist/api/workspacesApi.d.ts +1 -25
  87. package/dist/api/workspacesApi.js +7 -242
  88. package/dist/api/workspacesApi.js.map +1 -1
  89. package/dist/model/addLabelsToSource200Response.d.ts +2 -2
  90. package/dist/model/addLabelsToSource200Response.js +1 -1
  91. package/dist/model/addLabelsToSource200Response.js.map +1 -1
  92. package/dist/model/addLabelsToSource200Response1.d.ts +2 -2
  93. package/dist/model/addLabelsToSource200Response1.js +1 -1
  94. package/dist/model/addLabelsToSource200Response1.js.map +1 -1
  95. package/dist/model/createCloudSourceRegulationV1Input.d.ts +0 -1
  96. package/dist/model/createCloudSourceRegulationV1Input.js +0 -1
  97. package/dist/model/createCloudSourceRegulationV1Input.js.map +1 -1
  98. package/dist/model/createDestinationSubscriptionAlphaInput.d.ts +1 -1
  99. package/dist/model/createLabel200Response.d.ts +2 -2
  100. package/dist/model/createLabel200Response.js +1 -1
  101. package/dist/model/createLabel200Response.js.map +1 -1
  102. package/dist/model/createLabel200Response1.d.ts +2 -2
  103. package/dist/model/createLabel200Response1.js +1 -1
  104. package/dist/model/createLabel200Response1.js.map +1 -1
  105. package/dist/model/createSource200Response.d.ts +2 -2
  106. package/dist/model/createSource200Response.js +1 -1
  107. package/dist/model/createSource200Response.js.map +1 -1
  108. package/dist/model/createSource200Response1.d.ts +2 -2
  109. package/dist/model/createSource200Response1.js +1 -1
  110. package/dist/model/createSource200Response1.js.map +1 -1
  111. package/dist/model/createSourceAlphaInput.d.ts +1 -1
  112. package/dist/model/createSourceRegulationV1Input.d.ts +0 -1
  113. package/dist/model/createSourceRegulationV1Input.js +0 -1
  114. package/dist/model/createSourceRegulationV1Input.js.map +1 -1
  115. package/dist/model/createSourceV1Input.d.ts +1 -1
  116. package/dist/model/createTransformationBetaInput.d.ts +2 -0
  117. package/dist/model/createTransformationBetaInput.js +5 -0
  118. package/dist/model/createTransformationBetaInput.js.map +1 -1
  119. package/dist/model/createValidationInWarehouseV1Input.d.ts +1 -1
  120. package/dist/model/createWarehouseV1Input.d.ts +1 -1
  121. package/dist/model/createWorkspaceRegulationV1Input.d.ts +0 -1
  122. package/dist/model/createWorkspaceRegulationV1Input.js +0 -1
  123. package/dist/model/createWorkspaceRegulationV1Input.js.map +1 -1
  124. package/dist/model/deleteLabel200Response.d.ts +2 -2
  125. package/dist/model/deleteLabel200Response.js +1 -1
  126. package/dist/model/deleteLabel200Response.js.map +1 -1
  127. package/dist/model/deleteLabel200Response1.d.ts +2 -2
  128. package/dist/model/deleteLabel200Response1.js +1 -1
  129. package/dist/model/deleteLabel200Response1.js.map +1 -1
  130. package/dist/model/deleteSource200Response.d.ts +2 -2
  131. package/dist/model/deleteSource200Response.js +1 -1
  132. package/dist/model/deleteSource200Response.js.map +1 -1
  133. package/dist/model/deleteSource200Response1.d.ts +2 -2
  134. package/dist/model/deleteSource200Response1.js +1 -1
  135. package/dist/model/deleteSource200Response1.js.map +1 -1
  136. package/dist/model/deliveryMetricsSummary.js.map +1 -1
  137. package/dist/model/destination.js.map +1 -1
  138. package/dist/model/destination1.js.map +1 -1
  139. package/dist/model/destination2.js.map +1 -1
  140. package/dist/model/destinationMetadata.js.map +1 -1
  141. package/dist/model/destinationSubscription.d.ts +1 -1
  142. package/dist/model/destinationSubscriptionUpdateInput.d.ts +1 -1
  143. package/dist/model/echo200Response.d.ts +2 -2
  144. package/dist/model/echo200Response.js +1 -1
  145. package/dist/model/echo200Response.js.map +1 -1
  146. package/dist/model/echo200Response1.d.ts +2 -2
  147. package/dist/model/echo200Response1.js +1 -1
  148. package/dist/model/echo200Response1.js.map +1 -1
  149. package/dist/model/edgeFunctions.js.map +1 -1
  150. package/dist/model/edgeFunctions1.js.map +1 -1
  151. package/dist/model/filter.js.map +1 -1
  152. package/dist/model/filter1.js.map +1 -1
  153. package/dist/model/filter2.js.map +1 -1
  154. package/dist/model/filter3.js.map +1 -1
  155. package/dist/model/function.js.map +1 -1
  156. package/dist/model/function1.js.map +1 -1
  157. package/dist/model/function2.js.map +1 -1
  158. package/dist/model/getSource200Response.d.ts +2 -2
  159. package/dist/model/getSource200Response.js +1 -1
  160. package/dist/model/getSource200Response.js.map +1 -1
  161. package/dist/model/getSource200Response1.d.ts +2 -2
  162. package/dist/model/getSource200Response1.js +1 -1
  163. package/dist/model/getSource200Response1.js.map +1 -1
  164. package/dist/model/group.js.map +1 -1
  165. package/dist/model/identify.js.map +1 -1
  166. package/dist/model/input.d.ts +1 -1
  167. package/dist/model/input.js.map +1 -1
  168. package/dist/model/label.js.map +1 -1
  169. package/dist/model/label1.js.map +1 -1
  170. package/dist/model/label2.js.map +1 -1
  171. package/dist/model/listConnectedDestinationsFromSource200Response.d.ts +2 -2
  172. package/dist/model/listConnectedDestinationsFromSource200Response.js +1 -1
  173. package/dist/model/listConnectedDestinationsFromSource200Response.js.map +1 -1
  174. package/dist/model/listConnectedDestinationsFromSource200Response1.d.ts +2 -2
  175. package/dist/model/listConnectedDestinationsFromSource200Response1.js +1 -1
  176. package/dist/model/listConnectedDestinationsFromSource200Response1.js.map +1 -1
  177. package/dist/model/listConnectedWarehousesFromSource200Response.d.ts +2 -2
  178. package/dist/model/listConnectedWarehousesFromSource200Response.js +1 -1
  179. package/dist/model/listConnectedWarehousesFromSource200Response.js.map +1 -1
  180. package/dist/model/listConnectedWarehousesFromSource200Response1.d.ts +2 -2
  181. package/dist/model/listConnectedWarehousesFromSource200Response1.js +1 -1
  182. package/dist/model/listConnectedWarehousesFromSource200Response1.js.map +1 -1
  183. package/dist/model/listLabels200Response.d.ts +2 -2
  184. package/dist/model/listLabels200Response.js +1 -1
  185. package/dist/model/listLabels200Response.js.map +1 -1
  186. package/dist/model/listLabels200Response1.d.ts +2 -2
  187. package/dist/model/listLabels200Response1.js +1 -1
  188. package/dist/model/listLabels200Response1.js.map +1 -1
  189. package/dist/model/listSources200Response.d.ts +2 -2
  190. package/dist/model/listSources200Response.js +1 -1
  191. package/dist/model/listSources200Response.js.map +1 -1
  192. package/dist/model/listSources200Response1.d.ts +2 -2
  193. package/dist/model/listSources200Response1.js +1 -1
  194. package/dist/model/listSources200Response1.js.map +1 -1
  195. package/dist/model/logos.js.map +1 -1
  196. package/dist/model/logos1.js.map +1 -1
  197. package/dist/model/logos2.js.map +1 -1
  198. package/dist/model/metadata.js.map +1 -1
  199. package/dist/model/metadata1.js.map +1 -1
  200. package/dist/model/metadata2.js.map +1 -1
  201. package/dist/model/models.d.ts +3 -2
  202. package/dist/model/models.js +3 -0
  203. package/dist/model/models.js.map +1 -1
  204. package/dist/model/pagination.js.map +1 -1
  205. package/dist/model/previewDestinationFilterV1Output.d.ts +1 -1
  206. package/dist/model/previewDestinationFilterV1Output.js +1 -1
  207. package/dist/model/previewDestinationFilterV1Output.js.map +1 -1
  208. package/dist/model/propertyValueTransformationBeta.d.ts +15 -0
  209. package/dist/model/propertyValueTransformationBeta.js +26 -0
  210. package/dist/model/propertyValueTransformationBeta.js.map +1 -0
  211. package/dist/model/replaceLabelsInSource200Response.d.ts +2 -2
  212. package/dist/model/replaceLabelsInSource200Response.js +1 -1
  213. package/dist/model/replaceLabelsInSource200Response.js.map +1 -1
  214. package/dist/model/replaceLabelsInSource200Response1.d.ts +2 -2
  215. package/dist/model/replaceLabelsInSource200Response1.js +1 -1
  216. package/dist/model/replaceLabelsInSource200Response1.js.map +1 -1
  217. package/dist/model/schedule.js.map +1 -1
  218. package/dist/model/schedule1.js.map +1 -1
  219. package/dist/model/schedule2.js.map +1 -1
  220. package/dist/model/settings.js.map +1 -1
  221. package/dist/model/settings1.js.map +1 -1
  222. package/dist/model/source.js.map +1 -1
  223. package/dist/model/source1.d.ts +1 -1
  224. package/dist/model/source1.js.map +1 -1
  225. package/dist/model/source2.d.ts +1 -1
  226. package/dist/model/source2.js.map +1 -1
  227. package/dist/model/source3.d.ts +1 -1
  228. package/dist/model/source3.js.map +1 -1
  229. package/dist/model/source4.d.ts +1 -1
  230. package/dist/model/source4.js.map +1 -1
  231. package/dist/model/source5.d.ts +1 -1
  232. package/dist/model/source5.js.map +1 -1
  233. package/dist/model/source6.d.ts +1 -1
  234. package/dist/model/source6.js.map +1 -1
  235. package/dist/model/sourceAlpha.d.ts +1 -1
  236. package/dist/model/sourceMetadata.js.map +1 -1
  237. package/dist/model/sourceV1.d.ts +1 -1
  238. package/dist/model/subscription.d.ts +1 -1
  239. package/dist/model/subscription.js.map +1 -1
  240. package/dist/model/supportedFeatures.js.map +1 -1
  241. package/dist/model/supportedMethods.js.map +1 -1
  242. package/dist/model/supportedPlatforms.js.map +1 -1
  243. package/dist/model/track.js.map +1 -1
  244. package/dist/model/trackingPlan.js.map +1 -1
  245. package/dist/model/trackingPlan1.js.map +1 -1
  246. package/dist/model/transformation.d.ts +2 -0
  247. package/dist/model/transformation.js +5 -0
  248. package/dist/model/transformation.js.map +1 -1
  249. package/dist/model/transformation1.d.ts +2 -0
  250. package/dist/model/transformation1.js +5 -0
  251. package/dist/model/transformation1.js.map +1 -1
  252. package/dist/model/transformation2.d.ts +2 -0
  253. package/dist/model/transformation2.js +5 -0
  254. package/dist/model/transformation2.js.map +1 -1
  255. package/dist/model/transformationBeta.d.ts +2 -0
  256. package/dist/model/transformationBeta.js +5 -0
  257. package/dist/model/transformationBeta.js.map +1 -1
  258. package/dist/model/updateSource200Response.d.ts +2 -2
  259. package/dist/model/updateSource200Response.js +1 -1
  260. package/dist/model/updateSource200Response.js.map +1 -1
  261. package/dist/model/updateSource200Response1.d.ts +2 -2
  262. package/dist/model/updateSource200Response1.js +1 -1
  263. package/dist/model/updateSource200Response1.js.map +1 -1
  264. package/dist/model/updateSourceAlphaInput.d.ts +1 -1
  265. package/dist/model/updateSourceV1Input.d.ts +1 -1
  266. package/dist/model/updateTransformationBetaInput.d.ts +2 -0
  267. package/dist/model/updateTransformationBetaInput.js +5 -0
  268. package/dist/model/updateTransformationBetaInput.js.map +1 -1
  269. package/dist/model/updateWarehouseV1Input.d.ts +1 -1
  270. package/dist/model/user.js.map +1 -1
  271. package/dist/model/userGroup.js.map +1 -1
  272. package/dist/model/userGroup1.js.map +1 -1
  273. package/dist/model/userGroup2.js.map +1 -1
  274. package/dist/model/userGroup3.js.map +1 -1
  275. package/dist/model/warehouse.d.ts +1 -1
  276. package/dist/model/warehouse.js.map +1 -1
  277. package/dist/model/warehouse1.d.ts +1 -1
  278. package/dist/model/warehouse1.js.map +1 -1
  279. package/dist/model/warehouse2.d.ts +1 -1
  280. package/dist/model/warehouse2.js.map +1 -1
  281. package/dist/model/warehouseMetadata.js.map +1 -1
  282. package/dist/model/warehouseV1.d.ts +1 -1
  283. package/dist/model/workspace.js.map +1 -1
  284. package/dist/tests/smoke.test.js +7 -7
  285. package/dist/tests/smoke.test.js.map +1 -1
  286. package/model/aPICallSnapshotV1.ts +1 -1
  287. package/model/accessPermissionV1.ts +1 -1
  288. package/model/addConnectionFromSourceToWarehouse200Response.ts +1 -1
  289. package/model/addConnectionFromSourceToWarehouseV1Output.ts +1 -1
  290. package/model/addLabelsToSource200Response.ts +4 -4
  291. package/model/addLabelsToSource200Response1.ts +4 -4
  292. package/model/addLabelsToSourceAlphaInput.ts +1 -1
  293. package/model/addLabelsToSourceAlphaOutput.ts +1 -1
  294. package/model/addLabelsToSourceV1Input.ts +1 -1
  295. package/model/addLabelsToSourceV1Output.ts +1 -1
  296. package/model/addPermissionsToUser200Response.ts +1 -1
  297. package/model/addPermissionsToUserGroup200Response.ts +1 -1
  298. package/model/addPermissionsToUserGroupV1Input.ts +1 -1
  299. package/model/addPermissionsToUserGroupV1Output.ts +1 -1
  300. package/model/addPermissionsToUserV1Input.ts +1 -1
  301. package/model/addPermissionsToUserV1Output.ts +1 -1
  302. package/model/addSourceToTrackingPlan200Response.ts +1 -1
  303. package/model/addSourceToTrackingPlanV1Input.ts +1 -1
  304. package/model/addSourceToTrackingPlanV1Output.ts +1 -1
  305. package/model/addUsersToUserGroup200Response.ts +1 -1
  306. package/model/addUsersToUserGroupV1Input.ts +1 -1
  307. package/model/addUsersToUserGroupV1Output.ts +1 -1
  308. package/model/advancedWarehouseSyncScheduleV1Input.ts +1 -1
  309. package/model/advancedWarehouseSyncScheduleV1Output.ts +1 -1
  310. package/model/allowedLabelBeta.ts +1 -1
  311. package/model/auditEventV1.ts +1 -1
  312. package/model/batchQueryMessagingSubscriptionsForSpace200Response.ts +1 -1
  313. package/model/batchQueryMessagingSubscriptionsForSpaceAlphaInput.ts +1 -1
  314. package/model/batchQueryMessagingSubscriptionsForSpaceAlphaOutput.ts +1 -1
  315. package/model/breakdownBeta.ts +1 -1
  316. package/model/commonSourceSettingsV1.ts +1 -1
  317. package/model/contact.ts +1 -1
  318. package/model/createCloudSourceRegulation200Response.ts +1 -1
  319. package/model/createCloudSourceRegulationV1Input.ts +1 -2
  320. package/model/createCloudSourceRegulationV1Output.ts +1 -1
  321. package/model/createDestination200Response.ts +1 -1
  322. package/model/createDestinationSubscription200Response.ts +1 -1
  323. package/model/createDestinationSubscriptionAlphaInput.ts +2 -2
  324. package/model/createDestinationSubscriptionAlphaOutput.ts +1 -1
  325. package/model/createDestinationV1Input.ts +1 -1
  326. package/model/createDestinationV1Output.ts +1 -1
  327. package/model/createEdgeFunctions200Response.ts +1 -1
  328. package/model/createEdgeFunctionsAlphaInput.ts +1 -1
  329. package/model/createEdgeFunctionsAlphaOutput.ts +1 -1
  330. package/model/createFilterForDestination200Response.ts +1 -1
  331. package/model/createFilterForDestinationV1Input.ts +1 -1
  332. package/model/createFilterForDestinationV1Output.ts +1 -1
  333. package/model/createFunction200Response.ts +1 -1
  334. package/model/createFunctionDeployment200Response.ts +1 -1
  335. package/model/createFunctionDeploymentV1Output.ts +1 -1
  336. package/model/createFunctionV1Input.ts +1 -1
  337. package/model/createFunctionV1Output.ts +1 -1
  338. package/model/createInvites200Response.ts +1 -1
  339. package/model/createInvitesV1Input.ts +1 -1
  340. package/model/createInvitesV1Output.ts +1 -1
  341. package/model/createLabel200Response.ts +4 -4
  342. package/model/createLabel200Response1.ts +4 -4
  343. package/model/createLabelAlphaInput.ts +1 -1
  344. package/model/createLabelAlphaOutput.ts +1 -1
  345. package/model/createLabelV1Input.ts +1 -1
  346. package/model/createLabelV1Output.ts +1 -1
  347. package/model/createSource200Response.ts +4 -4
  348. package/model/createSource200Response1.ts +4 -4
  349. package/model/createSourceAlphaInput.ts +2 -2
  350. package/model/createSourceAlphaOutput.ts +1 -1
  351. package/model/createSourceRegulation200Response.ts +1 -1
  352. package/model/createSourceRegulationV1Input.ts +1 -2
  353. package/model/createSourceRegulationV1Output.ts +1 -1
  354. package/model/createSourceV1Input.ts +2 -2
  355. package/model/createSourceV1Output.ts +1 -1
  356. package/model/createTrackingPlan200Response.ts +1 -1
  357. package/model/createTrackingPlanV1Input.ts +1 -1
  358. package/model/createTrackingPlanV1Output.ts +1 -1
  359. package/model/createTransformation200Response.ts +1 -1
  360. package/model/createTransformationBetaInput.ts +11 -1
  361. package/model/createTransformationBetaOutput.ts +1 -1
  362. package/model/createUserGroup200Response.ts +1 -1
  363. package/model/createUserGroupV1Input.ts +1 -1
  364. package/model/createUserGroupV1Output.ts +1 -1
  365. package/model/createValidationInWarehouse200Response.ts +1 -1
  366. package/model/createValidationInWarehouseV1Input.ts +2 -2
  367. package/model/createValidationInWarehouseV1Output.ts +1 -1
  368. package/model/createWarehouse200Response.ts +1 -1
  369. package/model/createWarehouseV1Input.ts +2 -2
  370. package/model/createWarehouseV1Output.ts +1 -1
  371. package/model/createWorkspaceRegulation200Response.ts +1 -1
  372. package/model/createWorkspaceRegulationV1Input.ts +1 -2
  373. package/model/createWorkspaceRegulationV1Output.ts +1 -1
  374. package/model/deleteDestination200Response.ts +1 -1
  375. package/model/deleteDestinationV1Output.ts +1 -1
  376. package/model/deleteFunction200Response.ts +1 -1
  377. package/model/deleteFunctionV1Output.ts +1 -1
  378. package/model/deleteInvites200Response.ts +1 -1
  379. package/model/deleteInvitesV1Output.ts +1 -1
  380. package/model/deleteLabel200Response.ts +4 -4
  381. package/model/deleteLabel200Response1.ts +4 -4
  382. package/model/deleteLabelAlphaOutput.ts +1 -1
  383. package/model/deleteLabelV1Output.ts +1 -1
  384. package/model/deleteRegulation200Response.ts +1 -1
  385. package/model/deleteRegulationV1Output.ts +1 -1
  386. package/model/deleteSource200Response.ts +4 -4
  387. package/model/deleteSource200Response1.ts +4 -4
  388. package/model/deleteSourceAlphaOutput.ts +1 -1
  389. package/model/deleteSourceV1Output.ts +1 -1
  390. package/model/deleteTrackingPlan200Response.ts +1 -1
  391. package/model/deleteTrackingPlanV1Output.ts +1 -1
  392. package/model/deleteTransformation200Response.ts +1 -1
  393. package/model/deleteTransformationBetaOutput.ts +1 -1
  394. package/model/deleteUserGroup200Response.ts +1 -1
  395. package/model/deleteUserGroupV1Output.ts +1 -1
  396. package/model/deleteUsers200Response.ts +1 -1
  397. package/model/deleteUsersV1Output.ts +1 -1
  398. package/model/deleteWarehouse200Response.ts +1 -1
  399. package/model/deleteWarehouseV1Output.ts +1 -1
  400. package/model/deliveryMetricsSummary.ts +2 -1
  401. package/model/deliveryMetricsSummaryBeta.ts +1 -1
  402. package/model/destination.ts +2 -1
  403. package/model/destination1.ts +2 -1
  404. package/model/destination2.ts +2 -1
  405. package/model/destinationFilterActionV1.ts +1 -1
  406. package/model/destinationFilterV1.ts +1 -1
  407. package/model/destinationMetadata.ts +2 -1
  408. package/model/destinationMetadataActionFieldV1.ts +1 -1
  409. package/model/destinationMetadataActionV1.ts +1 -1
  410. package/model/destinationMetadataComponentV1.ts +1 -1
  411. package/model/destinationMetadataFeaturesV1.ts +1 -1
  412. package/model/destinationMetadataMethodsV1.ts +1 -1
  413. package/model/destinationMetadataPlatformsV1.ts +1 -1
  414. package/model/destinationMetadataSubscriptionPresetV1.ts +1 -1
  415. package/model/destinationMetadataV1.ts +1 -1
  416. package/model/destinationStatusV1.ts +1 -1
  417. package/model/destinationSubscription.ts +2 -2
  418. package/model/destinationSubscriptionUpdateInput.ts +2 -2
  419. package/model/destinationV1.ts +1 -1
  420. package/model/disableEdgeFunctions200Response.ts +1 -1
  421. package/model/disableEdgeFunctionsAlphaOutput.ts +1 -1
  422. package/model/echo200Response.ts +4 -4
  423. package/model/echo200Response1.ts +4 -4
  424. package/model/echoAlphaOutput.ts +1 -1
  425. package/model/echoV1Output.ts +1 -1
  426. package/model/edgeFunctions.ts +2 -1
  427. package/model/edgeFunctions1.ts +2 -1
  428. package/model/edgeFunctionsAlpha.ts +1 -1
  429. package/model/eventSourceV1.ts +1 -1
  430. package/model/filter.ts +2 -1
  431. package/model/filter1.ts +2 -1
  432. package/model/filter2.ts +2 -1
  433. package/model/filter3.ts +2 -1
  434. package/model/function.ts +2 -1
  435. package/model/function1.ts +2 -1
  436. package/model/function2.ts +2 -1
  437. package/model/functionDeployment.ts +1 -1
  438. package/model/functionSettingV1.ts +1 -1
  439. package/model/functionV1.ts +1 -1
  440. package/model/generateUploadURLForEdgeFunctions200Response.ts +1 -1
  441. package/model/generateUploadURLForEdgeFunctionsAlphaOutput.ts +1 -1
  442. package/model/getAdvancedSyncScheduleFromWarehouse200Response.ts +1 -1
  443. package/model/getAdvancedSyncScheduleFromWarehouseV1Output.ts +1 -1
  444. package/model/getConnectionStateFromWarehouse200Response.ts +1 -1
  445. package/model/getConnectionStateFromWarehouseV1Output.ts +1 -1
  446. package/model/getDailyPerSourceAPICallsUsage200Response.ts +1 -1
  447. package/model/getDailyPerSourceAPICallsUsageV1Output.ts +1 -1
  448. package/model/getDailyPerSourceMTUUsage200Response.ts +1 -1
  449. package/model/getDailyPerSourceMTUUsageV1Output.ts +1 -1
  450. package/model/getDailyWorkspaceAPICallsUsage200Response.ts +1 -1
  451. package/model/getDailyWorkspaceAPICallsUsageV1Output.ts +1 -1
  452. package/model/getDailyWorkspaceMTUUsage200Response.ts +1 -1
  453. package/model/getDailyWorkspaceMTUUsageV1Output.ts +1 -1
  454. package/model/getDestination200Response.ts +1 -1
  455. package/model/getDestinationMetadata200Response.ts +1 -1
  456. package/model/getDestinationMetadataV1Output.ts +1 -1
  457. package/model/getDestinationV1Output.ts +1 -1
  458. package/model/getDestinationsCatalog200Response.ts +1 -1
  459. package/model/getDestinationsCatalogV1Output.ts +1 -1
  460. package/model/getEventsVolumeFromWorkspace200Response.ts +1 -1
  461. package/model/getEventsVolumeFromWorkspaceV1Output.ts +1 -1
  462. package/model/getFilterInDestination200Response.ts +1 -1
  463. package/model/getFilterInDestinationV1Output.ts +1 -1
  464. package/model/getFunction200Response.ts +1 -1
  465. package/model/getFunctionV1Output.ts +1 -1
  466. package/model/getLatestFromEdgeFunctions200Response.ts +1 -1
  467. package/model/getLatestFromEdgeFunctionsAlphaOutput.ts +1 -1
  468. package/model/getMessagingSubscriptionFailureResponse.ts +1 -1
  469. package/model/getMessagingSubscriptionSuccessResponse.ts +1 -1
  470. package/model/getRegulation200Response.ts +1 -1
  471. package/model/getRegulationV1Output.ts +1 -1
  472. package/model/getSource200Response.ts +4 -4
  473. package/model/getSource200Response1.ts +4 -4
  474. package/model/getSourceAlphaOutput.ts +1 -1
  475. package/model/getSourceMetadata200Response.ts +1 -1
  476. package/model/getSourceMetadataV1Output.ts +1 -1
  477. package/model/getSourceV1Output.ts +1 -1
  478. package/model/getSourcesCatalog200Response.ts +1 -1
  479. package/model/getSourcesCatalogV1Output.ts +1 -1
  480. package/model/getSpace200Response.ts +1 -1
  481. package/model/getSpaceAlphaOutput.ts +1 -1
  482. package/model/getSubscriptionFromDestination200Response.ts +1 -1
  483. package/model/getSubscriptionFromDestinationAlphaOutput.ts +1 -1
  484. package/model/getSubscriptionRequest.ts +1 -1
  485. package/model/getTrackingPlan200Response.ts +1 -1
  486. package/model/getTrackingPlanV1Output.ts +1 -1
  487. package/model/getTransformation200Response.ts +1 -1
  488. package/model/getTransformationBetaOutput.ts +1 -1
  489. package/model/getUser200Response.ts +1 -1
  490. package/model/getUserGroup200Response.ts +1 -1
  491. package/model/getUserGroupV1Output.ts +1 -1
  492. package/model/getUserV1Output.ts +1 -1
  493. package/model/getWarehouse200Response.ts +1 -1
  494. package/model/getWarehouseMetadata200Response.ts +1 -1
  495. package/model/getWarehouseMetadataV1Output.ts +1 -1
  496. package/model/getWarehouseV1Output.ts +1 -1
  497. package/model/getWarehousesCatalog200Response.ts +1 -1
  498. package/model/getWarehousesCatalogV1Output.ts +1 -1
  499. package/model/getWorkspace200Response.ts +1 -1
  500. package/model/getWorkspaceV1Output.ts +1 -1
  501. package/model/group.ts +2 -1
  502. package/model/groupSourceSettingsV1.ts +1 -1
  503. package/model/identify.ts +2 -1
  504. package/model/identifySourceSettingsV1.ts +1 -1
  505. package/model/input.ts +3 -2
  506. package/model/integrationOptionBeta.ts +1 -1
  507. package/model/invitePermissionV1.ts +1 -1
  508. package/model/inviteV1.ts +1 -1
  509. package/model/label.ts +2 -1
  510. package/model/label1.ts +2 -1
  511. package/model/label2.ts +2 -1
  512. package/model/labelAlpha.ts +1 -1
  513. package/model/labelV1.ts +1 -1
  514. package/model/listAuditEvents200Response.ts +1 -1
  515. package/model/listAuditEventsV1Output.ts +1 -1
  516. package/model/listConnectedDestinationsFromSource200Response.ts +4 -4
  517. package/model/listConnectedDestinationsFromSource200Response1.ts +4 -4
  518. package/model/listConnectedDestinationsFromSourceAlphaOutput.ts +1 -1
  519. package/model/listConnectedDestinationsFromSourceV1Output.ts +1 -1
  520. package/model/listConnectedSourcesFromWarehouse200Response.ts +1 -1
  521. package/model/listConnectedSourcesFromWarehouseV1Output.ts +1 -1
  522. package/model/listConnectedWarehousesFromSource200Response.ts +4 -4
  523. package/model/listConnectedWarehousesFromSource200Response1.ts +4 -4
  524. package/model/listConnectedWarehousesFromSourceAlphaOutput.ts +1 -1
  525. package/model/listConnectedWarehousesFromSourceV1Output.ts +1 -1
  526. package/model/listDeliveryMetricsSummaryFromDestination200Response.ts +1 -1
  527. package/model/listDeliveryMetricsSummaryFromDestinationBetaOutput.ts +1 -1
  528. package/model/listDestinations200Response.ts +1 -1
  529. package/model/listDestinationsV1Output.ts +1 -1
  530. package/model/listFiltersFromDestination200Response.ts +1 -1
  531. package/model/listFiltersFromDestinationV1Output.ts +1 -1
  532. package/model/listFunctionItemV1.ts +1 -1
  533. package/model/listFunctions200Response.ts +1 -1
  534. package/model/listFunctionsV1Output.ts +1 -1
  535. package/model/listInvites200Response.ts +1 -1
  536. package/model/listInvitesFromUserGroup200Response.ts +1 -1
  537. package/model/listInvitesFromUserGroupV1Output.ts +1 -1
  538. package/model/listInvitesV1Output.ts +1 -1
  539. package/model/listLabels200Response.ts +4 -4
  540. package/model/listLabels200Response1.ts +4 -4
  541. package/model/listLabelsAlphaOutput.ts +1 -1
  542. package/model/listLabelsV1Output.ts +1 -1
  543. package/model/listRegulationsFromSource200Response.ts +1 -1
  544. package/model/listRegulationsFromSourceV1Output.ts +1 -1
  545. package/model/listRoles200Response.ts +1 -1
  546. package/model/listRolesV1Output.ts +1 -1
  547. package/model/listRulesFromTrackingPlan200Response.ts +1 -1
  548. package/model/listRulesFromTrackingPlanV1Output.ts +1 -1
  549. package/model/listSchemaSettingsInSource200Response.ts +1 -1
  550. package/model/listSchemaSettingsInSourceV1Output.ts +1 -1
  551. package/model/listSelectiveSyncsFromWarehouseAndSource200Response.ts +1 -1
  552. package/model/listSelectiveSyncsFromWarehouseAndSourceV1Output.ts +1 -1
  553. package/model/listSources200Response.ts +4 -4
  554. package/model/listSources200Response1.ts +4 -4
  555. package/model/listSourcesAlphaOutput.ts +1 -1
  556. package/model/listSourcesFromTrackingPlan200Response.ts +1 -1
  557. package/model/listSourcesFromTrackingPlanV1Output.ts +1 -1
  558. package/model/listSourcesV1Output.ts +1 -1
  559. package/model/listSubscriptionsFromDestination200Response.ts +1 -1
  560. package/model/listSubscriptionsFromDestinationAlphaOutput.ts +1 -1
  561. package/model/listSuppressions200Response.ts +1 -1
  562. package/model/listSuppressionsV1Output.ts +1 -1
  563. package/model/listSyncsFromWarehouse200Response.ts +1 -1
  564. package/model/listSyncsFromWarehouseAndSource200Response.ts +1 -1
  565. package/model/listSyncsFromWarehouseAndSourceV1Output.ts +1 -1
  566. package/model/listSyncsFromWarehouseV1Output.ts +1 -1
  567. package/model/listTrackingPlans200Response.ts +1 -1
  568. package/model/listTrackingPlansV1Output.ts +1 -1
  569. package/model/listTransformations200Response.ts +1 -1
  570. package/model/listTransformationsBetaOutput.ts +1 -1
  571. package/model/listUserGroups200Response.ts +1 -1
  572. package/model/listUserGroupsFromUser200Response.ts +1 -1
  573. package/model/listUserGroupsFromUserV1Output.ts +1 -1
  574. package/model/listUserGroupsV1Output.ts +1 -1
  575. package/model/listUsers200Response.ts +1 -1
  576. package/model/listUsersFromUserGroup200Response.ts +1 -1
  577. package/model/listUsersFromUserGroupV1Output.ts +1 -1
  578. package/model/listUsersV1Output.ts +1 -1
  579. package/model/listWarehouses200Response.ts +1 -1
  580. package/model/listWarehousesV1Output.ts +1 -1
  581. package/model/listWorkspaceRegulations200Response.ts +1 -1
  582. package/model/listWorkspaceRegulationsV1Output.ts +1 -1
  583. package/model/logos.ts +2 -1
  584. package/model/logos1.ts +2 -1
  585. package/model/logos2.ts +2 -1
  586. package/model/logosBeta.ts +1 -1
  587. package/model/messageSubscriptionResponse.ts +1 -1
  588. package/model/messageSubscriptionResponseError.ts +1 -1
  589. package/model/messagesSubscriptionRequest.ts +1 -1
  590. package/model/metadata.ts +2 -1
  591. package/model/metadata1.ts +2 -1
  592. package/model/metadata2.ts +2 -1
  593. package/model/metricBeta.ts +1 -1
  594. package/model/minimalUserGroupV1.ts +1 -1
  595. package/model/minimalUserV1.ts +1 -1
  596. package/model/models.ts +3 -0
  597. package/model/mtuSnapshotV1.ts +1 -1
  598. package/model/pagination.ts +2 -1
  599. package/model/paginationInput.ts +1 -1
  600. package/model/paginationOutput.ts +1 -1
  601. package/model/permissionInputV1.ts +1 -1
  602. package/model/permissionResourceV1.ts +1 -1
  603. package/model/permissionV1.ts +1 -1
  604. package/model/previewDestinationFilter200Response.ts +1 -1
  605. package/model/previewDestinationFilterV1.ts +1 -1
  606. package/model/previewDestinationFilterV1Input.ts +1 -1
  607. package/model/previewDestinationFilterV1Output.ts +3 -3
  608. package/model/propertyRenameBeta.ts +1 -1
  609. package/model/propertyValueTransformationBeta.ts +47 -0
  610. package/model/regulation.ts +1 -1
  611. package/model/regulationListEntryV1.ts +1 -1
  612. package/model/removeFilterFromDestination200Response.ts +1 -1
  613. package/model/removeFilterFromDestinationV1Output.ts +1 -1
  614. package/model/removeRuleV1.ts +1 -1
  615. package/model/removeRulesFromTrackingPlan200Response.ts +1 -1
  616. package/model/removeRulesFromTrackingPlanV1Output.ts +1 -1
  617. package/model/removeSourceConnectionFromWarehouse200Response.ts +1 -1
  618. package/model/removeSourceConnectionFromWarehouseV1Output.ts +1 -1
  619. package/model/removeSourceFromTrackingPlan200Response.ts +1 -1
  620. package/model/removeSourceFromTrackingPlanV1Output.ts +1 -1
  621. package/model/removeSubscriptionFromDestination200Response.ts +1 -1
  622. package/model/removeSubscriptionFromDestinationAlphaOutput.ts +1 -1
  623. package/model/removeUsersFromUserGroup200Response.ts +1 -1
  624. package/model/removeUsersFromUserGroupV1Output.ts +1 -1
  625. package/model/replaceAdvancedSyncScheduleForWarehouse200Response.ts +1 -1
  626. package/model/replaceAdvancedSyncScheduleForWarehouseV1Input.ts +1 -1
  627. package/model/replaceAdvancedSyncScheduleForWarehouseV1Output.ts +1 -1
  628. package/model/replaceLabelsInSource200Response.ts +4 -4
  629. package/model/replaceLabelsInSource200Response1.ts +4 -4
  630. package/model/replaceLabelsInSourceAlphaInput.ts +1 -1
  631. package/model/replaceLabelsInSourceAlphaOutput.ts +1 -1
  632. package/model/replaceLabelsInSourceV1Input.ts +1 -1
  633. package/model/replaceLabelsInSourceV1Output.ts +1 -1
  634. package/model/replaceMessagingSubscriptionsInSpaces200Response.ts +1 -1
  635. package/model/replaceMessagingSubscriptionsInSpacesAlphaInput.ts +1 -1
  636. package/model/replaceMessagingSubscriptionsInSpacesAlphaOutput.ts +1 -1
  637. package/model/replacePermissionsForUser200Response.ts +1 -1
  638. package/model/replacePermissionsForUserGroup200Response.ts +1 -1
  639. package/model/replacePermissionsForUserGroupV1Input.ts +1 -1
  640. package/model/replacePermissionsForUserGroupV1Output.ts +1 -1
  641. package/model/replacePermissionsForUserV1Input.ts +1 -1
  642. package/model/replacePermissionsForUserV1Output.ts +1 -1
  643. package/model/replaceRulesInTrackingPlan200Response.ts +1 -1
  644. package/model/replaceRulesInTrackingPlanV1Input.ts +1 -1
  645. package/model/replaceRulesInTrackingPlanV1Output.ts +1 -1
  646. package/model/replaceUsersInUserGroup200Response.ts +1 -1
  647. package/model/replaceUsersInUserGroupV1Input.ts +1 -1
  648. package/model/replaceUsersInUserGroupV1Output.ts +1 -1
  649. package/model/requestError.ts +1 -1
  650. package/model/requestErrorEnvelope.ts +1 -1
  651. package/model/resourceV1.ts +1 -1
  652. package/model/roleV1.ts +1 -1
  653. package/model/ruleV1.ts +1 -1
  654. package/model/schedule.ts +2 -1
  655. package/model/schedule1.ts +2 -1
  656. package/model/schedule2.ts +2 -1
  657. package/model/settings.ts +2 -1
  658. package/model/settings1.ts +2 -1
  659. package/model/source.ts +2 -1
  660. package/model/source1.ts +3 -2
  661. package/model/source2.ts +3 -2
  662. package/model/source3.ts +3 -2
  663. package/model/source4.ts +3 -2
  664. package/model/source5.ts +3 -2
  665. package/model/source6.ts +3 -2
  666. package/model/sourceAPICallSnapshotV1.ts +1 -1
  667. package/model/sourceAlpha.ts +2 -2
  668. package/model/sourceEventVolumeDatapointV1.ts +1 -1
  669. package/model/sourceEventVolumeV1.ts +1 -1
  670. package/model/sourceMetadata.ts +2 -1
  671. package/model/sourceMetadataV1.ts +1 -1
  672. package/model/sourceSettingsOutputV1.ts +1 -1
  673. package/model/sourceV1.ts +2 -2
  674. package/model/space.ts +1 -1
  675. package/model/streamStatusV1.ts +1 -1
  676. package/model/subscription.ts +3 -2
  677. package/model/supportedFeatures.ts +2 -1
  678. package/model/supportedMethods.ts +2 -1
  679. package/model/supportedPlatforms.ts +2 -1
  680. package/model/suppressedInner.ts +1 -1
  681. package/model/syncNoticeV1.ts +1 -1
  682. package/model/syncV1.ts +1 -1
  683. package/model/track.ts +2 -1
  684. package/model/trackSourceSettingsV1.ts +1 -1
  685. package/model/trackingPlan.ts +2 -1
  686. package/model/trackingPlan1.ts +2 -1
  687. package/model/trackingPlanV1.ts +1 -1
  688. package/model/transformation.ts +12 -1
  689. package/model/transformation1.ts +12 -1
  690. package/model/transformation2.ts +12 -1
  691. package/model/transformationBeta.ts +11 -1
  692. package/model/updateDestination200Response.ts +1 -1
  693. package/model/updateDestinationV1Input.ts +1 -1
  694. package/model/updateDestinationV1Output.ts +1 -1
  695. package/model/updateFilterForDestination200Response.ts +1 -1
  696. package/model/updateFilterForDestinationV1Input.ts +1 -1
  697. package/model/updateFilterForDestinationV1Output.ts +1 -1
  698. package/model/updateFunction200Response.ts +1 -1
  699. package/model/updateFunctionV1Input.ts +1 -1
  700. package/model/updateFunctionV1Output.ts +1 -1
  701. package/model/updateRulesInTrackingPlan200Response.ts +1 -1
  702. package/model/updateRulesInTrackingPlanV1Input.ts +1 -1
  703. package/model/updateRulesInTrackingPlanV1Output.ts +1 -1
  704. package/model/updateSchemaSettingsInSource200Response.ts +1 -1
  705. package/model/updateSchemaSettingsInSourceV1Input.ts +1 -1
  706. package/model/updateSchemaSettingsInSourceV1Output.ts +1 -1
  707. package/model/updateSelectiveSyncForWarehouse200Response.ts +1 -1
  708. package/model/updateSelectiveSyncForWarehouseV1Input.ts +1 -1
  709. package/model/updateSelectiveSyncForWarehouseV1Output.ts +1 -1
  710. package/model/updateSource200Response.ts +4 -4
  711. package/model/updateSource200Response1.ts +4 -4
  712. package/model/updateSourceAlphaInput.ts +2 -2
  713. package/model/updateSourceAlphaOutput.ts +1 -1
  714. package/model/updateSourceV1Input.ts +2 -2
  715. package/model/updateSourceV1Output.ts +1 -1
  716. package/model/updateSubscriptionForDestination200Response.ts +1 -1
  717. package/model/updateSubscriptionForDestinationAlphaInput.ts +1 -1
  718. package/model/updateSubscriptionForDestinationAlphaOutput.ts +1 -1
  719. package/model/updateTrackingPlan200Response.ts +1 -1
  720. package/model/updateTrackingPlanV1Input.ts +1 -1
  721. package/model/updateTrackingPlanV1Output.ts +1 -1
  722. package/model/updateTransformation200Response.ts +1 -1
  723. package/model/updateTransformationBetaInput.ts +11 -1
  724. package/model/updateTransformationBetaOutput.ts +1 -1
  725. package/model/updateUserGroup200Response.ts +1 -1
  726. package/model/updateUserGroupV1Input.ts +1 -1
  727. package/model/updateUserGroupV1Output.ts +1 -1
  728. package/model/updateWarehouse200Response.ts +1 -1
  729. package/model/updateWarehouseV1Input.ts +2 -2
  730. package/model/updateWarehouseV1Output.ts +1 -1
  731. package/model/upsertRuleV1.ts +1 -1
  732. package/model/user.ts +2 -1
  733. package/model/userGroup.ts +2 -1
  734. package/model/userGroup1.ts +2 -1
  735. package/model/userGroup2.ts +2 -1
  736. package/model/userGroup3.ts +2 -1
  737. package/model/userGroupV1.ts +1 -1
  738. package/model/userV1.ts +1 -1
  739. package/model/usersPerSourceSnapshotV1.ts +1 -1
  740. package/model/warehouse.ts +3 -2
  741. package/model/warehouse1.ts +3 -2
  742. package/model/warehouse2.ts +3 -2
  743. package/model/warehouseAdvancedSyncV1.ts +1 -1
  744. package/model/warehouseMetadata.ts +2 -1
  745. package/model/warehouseMetadataV1.ts +1 -1
  746. package/model/warehouseSelectiveSyncItemV1.ts +1 -1
  747. package/model/warehouseSyncOverrideV1.ts +1 -1
  748. package/model/warehouseV1.ts +2 -2
  749. package/model/workspace.ts +2 -1
  750. package/model/workspaceV1.ts +1 -1
  751. package/package.json +4 -4
  752. package/tests/__snapshots__/smoke.test.ts.snap +130 -130
  753. package/tests/smoke.test.ts +6 -6
@@ -2,7 +2,7 @@
2
2
  * Segment Public API
3
3
  * The Segment Public API helps you manage your Segment Workspaces and its resources. You can use the API to perform CRUD (create, read, update, delete) operations at no extra charge. This includes working with resources such as Sources, Destinations, Warehouses, Tracking Plans, and the Segment Destinations and Sources Catalogs. All CRUD endpoints in the API follow REST conventions and use standard HTTP methods. Different URL endpoints represent different resources in a Workspace. See the next sections for more information on how to use the Segment Public API.
4
4
  *
5
- * The version of the OpenAPI document: 32.0.2
5
+ * The version of the OpenAPI document: 33.0.2
6
6
  * Contact: friends@segment.com
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -114,11 +114,11 @@ export class TransformationsApi {
114
114
  }
115
115
 
116
116
  /**
117
- * Creates a new Transformation. When called, this endpoint may generate the `Transformation Created` [Audit Trail](/tag/Audit-Trail) event. **Note**: In order to successfully call this endpoint, the specified Workspace needs to have the Protocols feature enabled. Please reach out to your customer success manager for more information.
117
+ * Creates a new Transformation. When called, this endpoint may generate the `Transformation Created` event in the [audit trail](/tag/Audit-Trail). **Note**: In order to successfully call this endpoint, the specified Workspace needs to have the Protocols feature enabled. Please reach out to your customer success manager for more information.
118
118
  * @summary Create Transformation
119
119
  * @param CreateTransformationBetaInput
120
120
  */
121
- public async createTransformationAlpha(
121
+ public async createTransformation(
122
122
  CreateTransformationBetaInput: CreateTransformationBetaInput,
123
123
  options: { headers: { [name: string]: string } } = { headers: {} }
124
124
  ): Promise<{
@@ -132,131 +132,15 @@ export class TransformationsApi {
132
132
  this._defaultHeaders
133
133
  );
134
134
  const produces = [
135
+ 'application/vnd.segment.v1beta+json',
135
136
  'application/vnd.segment.v1alpha+json',
136
137
  'application/json',
137
138
  ];
139
+ // give precedence to 'application/json'
138
140
  if (produces.indexOf('application/json') >= 0) {
139
- localVarHeaderParams.Accept = produces[0];
140
- } else {
141
141
  localVarHeaderParams.Accept = 'application/json';
142
- }
143
- let localVarFormParams: any = {};
144
-
145
- // verify required parameter 'CreateTransformationBetaInput' is not null or undefined
146
- if (
147
- CreateTransformationBetaInput === null ||
148
- CreateTransformationBetaInput === undefined
149
- ) {
150
- throw new Error(
151
- 'Required parameter CreateTransformationBetaInput was null or undefined when calling createTransformationAlpha.'
152
- );
153
- }
154
-
155
- (<any>Object).assign(localVarHeaderParams, options.headers);
156
-
157
- let localVarUseFormData = false;
158
-
159
- let localVarRequestOptions: localVarRequest.Options = {
160
- method: 'POST',
161
- qs: localVarQueryParameters,
162
- headers: localVarHeaderParams,
163
- uri: localVarPath,
164
- useQuerystring: this._useQuerystring,
165
- json: true,
166
- body: ObjectSerializer.serialize(
167
- CreateTransformationBetaInput,
168
- 'CreateTransformationBetaInput'
169
- ),
170
- };
171
-
172
- let authenticationPromise = Promise.resolve();
173
- if (this.authentications.token.accessToken) {
174
- authenticationPromise = authenticationPromise.then(() =>
175
- this.authentications.token.applyToRequest(
176
- localVarRequestOptions
177
- )
178
- );
179
- }
180
- authenticationPromise = authenticationPromise.then(() =>
181
- this.authentications.default.applyToRequest(localVarRequestOptions)
182
- );
183
-
184
- let interceptorPromise = authenticationPromise;
185
- for (const interceptor of this.interceptors) {
186
- interceptorPromise = interceptorPromise.then(() =>
187
- interceptor(localVarRequestOptions)
188
- );
189
- }
190
-
191
- return interceptorPromise.then(() => {
192
- if (Object.keys(localVarFormParams).length) {
193
- if (localVarUseFormData) {
194
- (<any>localVarRequestOptions).formData = localVarFormParams;
195
- } else {
196
- localVarRequestOptions.form = localVarFormParams;
197
- }
198
- }
199
- return new Promise<{
200
- response: http.IncomingMessage;
201
- body: CreateTransformation200Response;
202
- }>((resolve, reject) => {
203
- localVarRequest(
204
- localVarRequestOptions,
205
- (error, response, body) => {
206
- if (error) {
207
- reject(error);
208
- } else {
209
- if (
210
- response.statusCode &&
211
- response.statusCode >= 200 &&
212
- response.statusCode <= 299
213
- ) {
214
- body = ObjectSerializer.deserialize(
215
- body,
216
- 'CreateTransformation200Response'
217
- );
218
- resolve({ response: response, body: body });
219
- } else {
220
- reject(
221
- new HttpError(
222
- response,
223
- body,
224
- response.statusCode
225
- )
226
- );
227
- }
228
- }
229
- }
230
- );
231
- });
232
- });
233
- }
234
- /**
235
- * Creates a new Transformation. When called, this endpoint may generate the `Transformation Created` [Audit Trail](/tag/Audit-Trail) event. **Note**: In order to successfully call this endpoint, the specified Workspace needs to have the Protocols feature enabled. Please reach out to your customer success manager for more information.
236
- * @summary Create Transformation
237
- * @param CreateTransformationBetaInput
238
- */
239
- public async createTransformationBeta(
240
- CreateTransformationBetaInput: CreateTransformationBetaInput,
241
- options: { headers: { [name: string]: string } } = { headers: {} }
242
- ): Promise<{
243
- response: http.IncomingMessage;
244
- body: CreateTransformation200Response;
245
- }> {
246
- const localVarPath = this.basePath + '/transformations';
247
- let localVarQueryParameters: any = {};
248
- let localVarHeaderParams: any = (<any>Object).assign(
249
- {},
250
- this._defaultHeaders
251
- );
252
- const produces = [
253
- 'application/vnd.segment.v1beta+json',
254
- 'application/json',
255
- ];
256
- if (produces.indexOf('application/json') >= 0) {
257
- localVarHeaderParams.Accept = produces[0];
258
142
  } else {
259
- localVarHeaderParams.Accept = 'application/json';
143
+ localVarHeaderParams.Accept = produces.join(',');
260
144
  }
261
145
  let localVarFormParams: any = {};
262
146
 
@@ -266,7 +150,7 @@ export class TransformationsApi {
266
150
  CreateTransformationBetaInput === undefined
267
151
  ) {
268
152
  throw new Error(
269
- 'Required parameter CreateTransformationBetaInput was null or undefined when calling createTransformationBeta.'
153
+ 'Required parameter CreateTransformationBetaInput was null or undefined when calling createTransformation.'
270
154
  );
271
155
  }
272
156
 
@@ -350,11 +234,11 @@ export class TransformationsApi {
350
234
  });
351
235
  }
352
236
  /**
353
- * Deletes a Transformation. When called, this endpoint may generate the `Transformation Deleted` [Audit Trail](/tag/Audit-Trail) event. **Note**: In order to successfully call this endpoint, the specified Workspace needs to have the Protocols feature enabled. Please reach out to your customer success manager for more information.
237
+ * Deletes a Transformation. When called, this endpoint may generate the `Transformation Deleted` event in the [audit trail](/tag/Audit-Trail). **Note**: In order to successfully call this endpoint, the specified Workspace needs to have the Protocols feature enabled. Please reach out to your customer success manager for more information.
354
238
  * @summary Delete Transformation
355
239
  * @param transformationId
356
240
  */
357
- public async deleteTransformationAlpha(
241
+ public async deleteTransformation(
358
242
  transformationId: string,
359
243
  options: { headers: { [name: string]: string } } = { headers: {} }
360
244
  ): Promise<{
@@ -373,20 +257,22 @@ export class TransformationsApi {
373
257
  this._defaultHeaders
374
258
  );
375
259
  const produces = [
260
+ 'application/vnd.segment.v1beta+json',
376
261
  'application/vnd.segment.v1alpha+json',
377
262
  'application/json',
378
263
  ];
264
+ // give precedence to 'application/json'
379
265
  if (produces.indexOf('application/json') >= 0) {
380
- localVarHeaderParams.Accept = produces[0];
381
- } else {
382
266
  localVarHeaderParams.Accept = 'application/json';
267
+ } else {
268
+ localVarHeaderParams.Accept = produces.join(',');
383
269
  }
384
270
  let localVarFormParams: any = {};
385
271
 
386
272
  // verify required parameter 'transformationId' is not null or undefined
387
273
  if (transformationId === null || transformationId === undefined) {
388
274
  throw new Error(
389
- 'Required parameter transformationId was null or undefined when calling deleteTransformationAlpha.'
275
+ 'Required parameter transformationId was null or undefined when calling deleteTransformation.'
390
276
  );
391
277
  }
392
278
 
@@ -466,16 +352,16 @@ export class TransformationsApi {
466
352
  });
467
353
  }
468
354
  /**
469
- * Deletes a Transformation. When called, this endpoint may generate the `Transformation Deleted` [Audit Trail](/tag/Audit-Trail) event. **Note**: In order to successfully call this endpoint, the specified Workspace needs to have the Protocols feature enabled. Please reach out to your customer success manager for more information.
470
- * @summary Delete Transformation
355
+ * Gets a Transformation. **Note**: In order to successfully call this endpoint, the specified Workspace needs to have the Protocols feature enabled. Please reach out to your customer success manager for more information.
356
+ * @summary Get Transformation
471
357
  * @param transformationId
472
358
  */
473
- public async deleteTransformationBeta(
359
+ public async getTransformation(
474
360
  transformationId: string,
475
361
  options: { headers: { [name: string]: string } } = { headers: {} }
476
362
  ): Promise<{
477
363
  response: http.IncomingMessage;
478
- body: DeleteTransformation200Response;
364
+ body: GetTransformation200Response;
479
365
  }> {
480
366
  const localVarPath =
481
367
  this.basePath +
@@ -490,19 +376,21 @@ export class TransformationsApi {
490
376
  );
491
377
  const produces = [
492
378
  'application/vnd.segment.v1beta+json',
379
+ 'application/vnd.segment.v1alpha+json',
493
380
  'application/json',
494
381
  ];
382
+ // give precedence to 'application/json'
495
383
  if (produces.indexOf('application/json') >= 0) {
496
- localVarHeaderParams.Accept = produces[0];
497
- } else {
498
384
  localVarHeaderParams.Accept = 'application/json';
385
+ } else {
386
+ localVarHeaderParams.Accept = produces.join(',');
499
387
  }
500
388
  let localVarFormParams: any = {};
501
389
 
502
390
  // verify required parameter 'transformationId' is not null or undefined
503
391
  if (transformationId === null || transformationId === undefined) {
504
392
  throw new Error(
505
- 'Required parameter transformationId was null or undefined when calling deleteTransformationBeta.'
393
+ 'Required parameter transformationId was null or undefined when calling getTransformation.'
506
394
  );
507
395
  }
508
396
 
@@ -511,7 +399,7 @@ export class TransformationsApi {
511
399
  let localVarUseFormData = false;
512
400
 
513
401
  let localVarRequestOptions: localVarRequest.Options = {
514
- method: 'DELETE',
402
+ method: 'GET',
515
403
  qs: localVarQueryParameters,
516
404
  headers: localVarHeaderParams,
517
405
  uri: localVarPath,
@@ -548,7 +436,7 @@ export class TransformationsApi {
548
436
  }
549
437
  return new Promise<{
550
438
  response: http.IncomingMessage;
551
- body: DeleteTransformation200Response;
439
+ body: GetTransformation200Response;
552
440
  }>((resolve, reject) => {
553
441
  localVarRequest(
554
442
  localVarRequestOptions,
@@ -563,7 +451,7 @@ export class TransformationsApi {
563
451
  ) {
564
452
  body = ObjectSerializer.deserialize(
565
453
  body,
566
- 'DeleteTransformation200Response'
454
+ 'GetTransformation200Response'
567
455
  );
568
456
  resolve({ response: response, body: body });
569
457
  } else {
@@ -582,43 +470,47 @@ export class TransformationsApi {
582
470
  });
583
471
  }
584
472
  /**
585
- * Gets a Transformation. **Note**: In order to successfully call this endpoint, the specified Workspace needs to have the Protocols feature enabled. Please reach out to your customer success manager for more information.
586
- * @summary Get Transformation
587
- * @param transformationId
473
+ * Lists all Transformations in the Workspace. **Note**: In order to successfully call this endpoint, the specified Workspace needs to have the Protocols feature enabled. Please reach out to your customer success manager for more information.
474
+ * @summary List Transformations
475
+ * @param pagination Pagination options. This parameter exists in beta.
588
476
  */
589
- public async getTransformationAlpha(
590
- transformationId: string,
477
+ public async listTransformations(
478
+ pagination: PaginationInput,
591
479
  options: { headers: { [name: string]: string } } = { headers: {} }
592
480
  ): Promise<{
593
481
  response: http.IncomingMessage;
594
- body: GetTransformation200Response;
482
+ body: ListTransformations200Response;
595
483
  }> {
596
- const localVarPath =
597
- this.basePath +
598
- '/transformations/{transformationId}'.replace(
599
- '{' + 'transformationId' + '}',
600
- encodeURIComponent(String(transformationId))
601
- );
484
+ const localVarPath = this.basePath + '/transformations';
602
485
  let localVarQueryParameters: any = {};
603
486
  let localVarHeaderParams: any = (<any>Object).assign(
604
487
  {},
605
488
  this._defaultHeaders
606
489
  );
607
490
  const produces = [
491
+ 'application/vnd.segment.v1beta+json',
608
492
  'application/vnd.segment.v1alpha+json',
609
493
  'application/json',
610
494
  ];
495
+ // give precedence to 'application/json'
611
496
  if (produces.indexOf('application/json') >= 0) {
612
- localVarHeaderParams.Accept = produces[0];
613
- } else {
614
497
  localVarHeaderParams.Accept = 'application/json';
498
+ } else {
499
+ localVarHeaderParams.Accept = produces.join(',');
615
500
  }
616
501
  let localVarFormParams: any = {};
617
502
 
618
- // verify required parameter 'transformationId' is not null or undefined
619
- if (transformationId === null || transformationId === undefined) {
503
+ // verify required parameter 'pagination' is not null or undefined
504
+ if (pagination === null || pagination === undefined) {
620
505
  throw new Error(
621
- 'Required parameter transformationId was null or undefined when calling getTransformationAlpha.'
506
+ 'Required parameter pagination was null or undefined when calling listTransformations.'
507
+ );
508
+ }
509
+
510
+ if (pagination !== undefined) {
511
+ localVarQueryParameters['pagination'] = ObjectSerializer.serialize(
512
+ pagination,
513
+ 'PaginationInput'
622
514
  );
623
515
  }
624
516
 
@@ -664,7 +556,7 @@ export class TransformationsApi {
664
556
  }
665
557
  return new Promise<{
666
558
  response: http.IncomingMessage;
667
- body: GetTransformation200Response;
559
+ body: ListTransformations200Response;
668
560
  }>((resolve, reject) => {
669
561
  localVarRequest(
670
562
  localVarRequestOptions,
@@ -679,7 +571,7 @@ export class TransformationsApi {
679
571
  ) {
680
572
  body = ObjectSerializer.deserialize(
681
573
  body,
682
- 'GetTransformation200Response'
574
+ 'ListTransformations200Response'
683
575
  );
684
576
  resolve({ response: response, body: body });
685
577
  } else {
@@ -698,16 +590,18 @@ export class TransformationsApi {
698
590
  });
699
591
  }
700
592
  /**
701
- * Gets a Transformation. **Note**: In order to successfully call this endpoint, the specified Workspace needs to have the Protocols feature enabled. Please reach out to your customer success manager for more information.
702
- * @summary Get Transformation
593
+ * Updates an existing Transformation. When called, this endpoint may generate the `Transformation Updated` event in the [audit trail](/tag/Audit-Trail). **Note**: In order to successfully call this endpoint, the specified Workspace needs to have the Protocols feature enabled. Please reach out to your customer success manager for more information.
594
+ * @summary Update Transformation
703
595
  * @param transformationId
596
+ * @param UpdateTransformationBetaInput
704
597
  */
705
- public async getTransformationBeta(
598
+ public async updateTransformation(
706
599
  transformationId: string,
600
+ UpdateTransformationBetaInput: UpdateTransformationBetaInput,
707
601
  options: { headers: { [name: string]: string } } = { headers: {} }
708
602
  ): Promise<{
709
603
  response: http.IncomingMessage;
710
- body: GetTransformation200Response;
604
+ body: UpdateTransformation200Response;
711
605
  }> {
712
606
  const localVarPath =
713
607
  this.basePath +
@@ -722,505 +616,21 @@ export class TransformationsApi {
722
616
  );
723
617
  const produces = [
724
618
  'application/vnd.segment.v1beta+json',
619
+ 'application/vnd.segment.v1alpha+json',
725
620
  'application/json',
726
621
  ];
622
+ // give precedence to 'application/json'
727
623
  if (produces.indexOf('application/json') >= 0) {
728
- localVarHeaderParams.Accept = produces[0];
729
- } else {
730
624
  localVarHeaderParams.Accept = 'application/json';
731
- }
732
- let localVarFormParams: any = {};
733
-
734
- // verify required parameter 'transformationId' is not null or undefined
735
- if (transformationId === null || transformationId === undefined) {
736
- throw new Error(
737
- 'Required parameter transformationId was null or undefined when calling getTransformationBeta.'
738
- );
739
- }
740
-
741
- (<any>Object).assign(localVarHeaderParams, options.headers);
742
-
743
- let localVarUseFormData = false;
744
-
745
- let localVarRequestOptions: localVarRequest.Options = {
746
- method: 'GET',
747
- qs: localVarQueryParameters,
748
- headers: localVarHeaderParams,
749
- uri: localVarPath,
750
- useQuerystring: this._useQuerystring,
751
- json: true,
752
- };
753
-
754
- let authenticationPromise = Promise.resolve();
755
- if (this.authentications.token.accessToken) {
756
- authenticationPromise = authenticationPromise.then(() =>
757
- this.authentications.token.applyToRequest(
758
- localVarRequestOptions
759
- )
760
- );
761
- }
762
- authenticationPromise = authenticationPromise.then(() =>
763
- this.authentications.default.applyToRequest(localVarRequestOptions)
764
- );
765
-
766
- let interceptorPromise = authenticationPromise;
767
- for (const interceptor of this.interceptors) {
768
- interceptorPromise = interceptorPromise.then(() =>
769
- interceptor(localVarRequestOptions)
770
- );
771
- }
772
-
773
- return interceptorPromise.then(() => {
774
- if (Object.keys(localVarFormParams).length) {
775
- if (localVarUseFormData) {
776
- (<any>localVarRequestOptions).formData = localVarFormParams;
777
- } else {
778
- localVarRequestOptions.form = localVarFormParams;
779
- }
780
- }
781
- return new Promise<{
782
- response: http.IncomingMessage;
783
- body: GetTransformation200Response;
784
- }>((resolve, reject) => {
785
- localVarRequest(
786
- localVarRequestOptions,
787
- (error, response, body) => {
788
- if (error) {
789
- reject(error);
790
- } else {
791
- if (
792
- response.statusCode &&
793
- response.statusCode >= 200 &&
794
- response.statusCode <= 299
795
- ) {
796
- body = ObjectSerializer.deserialize(
797
- body,
798
- 'GetTransformation200Response'
799
- );
800
- resolve({ response: response, body: body });
801
- } else {
802
- reject(
803
- new HttpError(
804
- response,
805
- body,
806
- response.statusCode
807
- )
808
- );
809
- }
810
- }
811
- }
812
- );
813
- });
814
- });
815
- }
816
- /**
817
- * Lists all Transformations in the Workspace. **Note**: In order to successfully call this endpoint, the specified Workspace needs to have the Protocols feature enabled. Please reach out to your customer success manager for more information.
818
- * @summary List Transformations
819
- * @param pagination Pagination options. This parameter exists in alpha.
820
- */
821
- public async listTransformationsAlpha(
822
- pagination: PaginationInput,
823
- options: { headers: { [name: string]: string } } = { headers: {} }
824
- ): Promise<{
825
- response: http.IncomingMessage;
826
- body: ListTransformations200Response;
827
- }> {
828
- const localVarPath = this.basePath + '/transformations';
829
- let localVarQueryParameters: any = {};
830
- let localVarHeaderParams: any = (<any>Object).assign(
831
- {},
832
- this._defaultHeaders
833
- );
834
- const produces = [
835
- 'application/vnd.segment.v1alpha+json',
836
- 'application/json',
837
- ];
838
- if (produces.indexOf('application/json') >= 0) {
839
- localVarHeaderParams.Accept = produces[0];
840
- } else {
841
- localVarHeaderParams.Accept = 'application/json';
842
- }
843
- let localVarFormParams: any = {};
844
-
845
- // verify required parameter 'pagination' is not null or undefined
846
- if (pagination === null || pagination === undefined) {
847
- throw new Error(
848
- 'Required parameter pagination was null or undefined when calling listTransformationsAlpha.'
849
- );
850
- }
851
-
852
- if (pagination !== undefined) {
853
- localVarQueryParameters['pagination'] = ObjectSerializer.serialize(
854
- pagination,
855
- 'PaginationInput'
856
- );
857
- }
858
-
859
- (<any>Object).assign(localVarHeaderParams, options.headers);
860
-
861
- let localVarUseFormData = false;
862
-
863
- let localVarRequestOptions: localVarRequest.Options = {
864
- method: 'GET',
865
- qs: localVarQueryParameters,
866
- headers: localVarHeaderParams,
867
- uri: localVarPath,
868
- useQuerystring: this._useQuerystring,
869
- json: true,
870
- };
871
-
872
- let authenticationPromise = Promise.resolve();
873
- if (this.authentications.token.accessToken) {
874
- authenticationPromise = authenticationPromise.then(() =>
875
- this.authentications.token.applyToRequest(
876
- localVarRequestOptions
877
- )
878
- );
879
- }
880
- authenticationPromise = authenticationPromise.then(() =>
881
- this.authentications.default.applyToRequest(localVarRequestOptions)
882
- );
883
-
884
- let interceptorPromise = authenticationPromise;
885
- for (const interceptor of this.interceptors) {
886
- interceptorPromise = interceptorPromise.then(() =>
887
- interceptor(localVarRequestOptions)
888
- );
889
- }
890
-
891
- return interceptorPromise.then(() => {
892
- if (Object.keys(localVarFormParams).length) {
893
- if (localVarUseFormData) {
894
- (<any>localVarRequestOptions).formData = localVarFormParams;
895
- } else {
896
- localVarRequestOptions.form = localVarFormParams;
897
- }
898
- }
899
- return new Promise<{
900
- response: http.IncomingMessage;
901
- body: ListTransformations200Response;
902
- }>((resolve, reject) => {
903
- localVarRequest(
904
- localVarRequestOptions,
905
- (error, response, body) => {
906
- if (error) {
907
- reject(error);
908
- } else {
909
- if (
910
- response.statusCode &&
911
- response.statusCode >= 200 &&
912
- response.statusCode <= 299
913
- ) {
914
- body = ObjectSerializer.deserialize(
915
- body,
916
- 'ListTransformations200Response'
917
- );
918
- resolve({ response: response, body: body });
919
- } else {
920
- reject(
921
- new HttpError(
922
- response,
923
- body,
924
- response.statusCode
925
- )
926
- );
927
- }
928
- }
929
- }
930
- );
931
- });
932
- });
933
- }
934
- /**
935
- * Lists all Transformations in the Workspace. **Note**: In order to successfully call this endpoint, the specified Workspace needs to have the Protocols feature enabled. Please reach out to your customer success manager for more information.
936
- * @summary List Transformations
937
- * @param pagination Pagination options. This parameter exists in alpha.
938
- */
939
- public async listTransformationsBeta(
940
- pagination: PaginationInput,
941
- options: { headers: { [name: string]: string } } = { headers: {} }
942
- ): Promise<{
943
- response: http.IncomingMessage;
944
- body: ListTransformations200Response;
945
- }> {
946
- const localVarPath = this.basePath + '/transformations';
947
- let localVarQueryParameters: any = {};
948
- let localVarHeaderParams: any = (<any>Object).assign(
949
- {},
950
- this._defaultHeaders
951
- );
952
- const produces = [
953
- 'application/vnd.segment.v1beta+json',
954
- 'application/json',
955
- ];
956
- if (produces.indexOf('application/json') >= 0) {
957
- localVarHeaderParams.Accept = produces[0];
958
625
  } else {
959
- localVarHeaderParams.Accept = 'application/json';
960
- }
961
- let localVarFormParams: any = {};
962
-
963
- // verify required parameter 'pagination' is not null or undefined
964
- if (pagination === null || pagination === undefined) {
965
- throw new Error(
966
- 'Required parameter pagination was null or undefined when calling listTransformationsBeta.'
967
- );
968
- }
969
-
970
- if (pagination !== undefined) {
971
- localVarQueryParameters['pagination'] = ObjectSerializer.serialize(
972
- pagination,
973
- 'PaginationInput'
974
- );
975
- }
976
-
977
- (<any>Object).assign(localVarHeaderParams, options.headers);
978
-
979
- let localVarUseFormData = false;
980
-
981
- let localVarRequestOptions: localVarRequest.Options = {
982
- method: 'GET',
983
- qs: localVarQueryParameters,
984
- headers: localVarHeaderParams,
985
- uri: localVarPath,
986
- useQuerystring: this._useQuerystring,
987
- json: true,
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: ListTransformations200Response;
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
- 'ListTransformations200Response'
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
- /**
1053
- * Updates an existing Transformation. When called, this endpoint may generate the `Transformation Updated` [Audit Trail](/tag/Audit-Trail) event. **Note**: In order to successfully call this endpoint, the specified Workspace needs to have the Protocols feature enabled. Please reach out to your customer success manager for more information.
1054
- * @summary Update Transformation
1055
- * @param transformationId
1056
- * @param UpdateTransformationBetaInput
1057
- */
1058
- public async updateTransformationAlpha(
1059
- transformationId: string,
1060
- UpdateTransformationBetaInput: UpdateTransformationBetaInput,
1061
- options: { headers: { [name: string]: string } } = { headers: {} }
1062
- ): Promise<{
1063
- response: http.IncomingMessage;
1064
- body: UpdateTransformation200Response;
1065
- }> {
1066
- const localVarPath =
1067
- this.basePath +
1068
- '/transformations/{transformationId}'.replace(
1069
- '{' + 'transformationId' + '}',
1070
- encodeURIComponent(String(transformationId))
1071
- );
1072
- let localVarQueryParameters: any = {};
1073
- let localVarHeaderParams: any = (<any>Object).assign(
1074
- {},
1075
- this._defaultHeaders
1076
- );
1077
- const produces = [
1078
- 'application/vnd.segment.v1alpha+json',
1079
- 'application/json',
1080
- ];
1081
- if (produces.indexOf('application/json') >= 0) {
1082
- localVarHeaderParams.Accept = produces[0];
1083
- } else {
1084
- localVarHeaderParams.Accept = 'application/json';
1085
- }
1086
- let localVarFormParams: any = {};
1087
-
1088
- // verify required parameter 'transformationId' is not null or undefined
1089
- if (transformationId === null || transformationId === undefined) {
1090
- throw new Error(
1091
- 'Required parameter transformationId was null or undefined when calling updateTransformationAlpha.'
1092
- );
1093
- }
1094
-
1095
- // verify required parameter 'UpdateTransformationBetaInput' is not null or undefined
1096
- if (
1097
- UpdateTransformationBetaInput === null ||
1098
- UpdateTransformationBetaInput === undefined
1099
- ) {
1100
- throw new Error(
1101
- 'Required parameter UpdateTransformationBetaInput was null or undefined when calling updateTransformationAlpha.'
1102
- );
1103
- }
1104
-
1105
- (<any>Object).assign(localVarHeaderParams, options.headers);
1106
-
1107
- let localVarUseFormData = false;
1108
-
1109
- let localVarRequestOptions: localVarRequest.Options = {
1110
- method: 'PATCH',
1111
- qs: localVarQueryParameters,
1112
- headers: localVarHeaderParams,
1113
- uri: localVarPath,
1114
- useQuerystring: this._useQuerystring,
1115
- json: true,
1116
- body: ObjectSerializer.serialize(
1117
- UpdateTransformationBetaInput,
1118
- 'UpdateTransformationBetaInput'
1119
- ),
1120
- };
1121
-
1122
- let authenticationPromise = Promise.resolve();
1123
- if (this.authentications.token.accessToken) {
1124
- authenticationPromise = authenticationPromise.then(() =>
1125
- this.authentications.token.applyToRequest(
1126
- localVarRequestOptions
1127
- )
1128
- );
1129
- }
1130
- authenticationPromise = authenticationPromise.then(() =>
1131
- this.authentications.default.applyToRequest(localVarRequestOptions)
1132
- );
1133
-
1134
- let interceptorPromise = authenticationPromise;
1135
- for (const interceptor of this.interceptors) {
1136
- interceptorPromise = interceptorPromise.then(() =>
1137
- interceptor(localVarRequestOptions)
1138
- );
1139
- }
1140
-
1141
- return interceptorPromise.then(() => {
1142
- if (Object.keys(localVarFormParams).length) {
1143
- if (localVarUseFormData) {
1144
- (<any>localVarRequestOptions).formData = localVarFormParams;
1145
- } else {
1146
- localVarRequestOptions.form = localVarFormParams;
1147
- }
1148
- }
1149
- return new Promise<{
1150
- response: http.IncomingMessage;
1151
- body: UpdateTransformation200Response;
1152
- }>((resolve, reject) => {
1153
- localVarRequest(
1154
- localVarRequestOptions,
1155
- (error, response, body) => {
1156
- if (error) {
1157
- reject(error);
1158
- } else {
1159
- if (
1160
- response.statusCode &&
1161
- response.statusCode >= 200 &&
1162
- response.statusCode <= 299
1163
- ) {
1164
- body = ObjectSerializer.deserialize(
1165
- body,
1166
- 'UpdateTransformation200Response'
1167
- );
1168
- resolve({ response: response, body: body });
1169
- } else {
1170
- reject(
1171
- new HttpError(
1172
- response,
1173
- body,
1174
- response.statusCode
1175
- )
1176
- );
1177
- }
1178
- }
1179
- }
1180
- );
1181
- });
1182
- });
1183
- }
1184
- /**
1185
- * Updates an existing Transformation. When called, this endpoint may generate the `Transformation Updated` [Audit Trail](/tag/Audit-Trail) event. **Note**: In order to successfully call this endpoint, the specified Workspace needs to have the Protocols feature enabled. Please reach out to your customer success manager for more information.
1186
- * @summary Update Transformation
1187
- * @param transformationId
1188
- * @param UpdateTransformationBetaInput
1189
- */
1190
- public async updateTransformationBeta(
1191
- transformationId: string,
1192
- UpdateTransformationBetaInput: UpdateTransformationBetaInput,
1193
- options: { headers: { [name: string]: string } } = { headers: {} }
1194
- ): Promise<{
1195
- response: http.IncomingMessage;
1196
- body: UpdateTransformation200Response;
1197
- }> {
1198
- const localVarPath =
1199
- this.basePath +
1200
- '/transformations/{transformationId}'.replace(
1201
- '{' + 'transformationId' + '}',
1202
- encodeURIComponent(String(transformationId))
1203
- );
1204
- let localVarQueryParameters: any = {};
1205
- let localVarHeaderParams: any = (<any>Object).assign(
1206
- {},
1207
- this._defaultHeaders
1208
- );
1209
- const produces = [
1210
- 'application/vnd.segment.v1beta+json',
1211
- 'application/json',
1212
- ];
1213
- if (produces.indexOf('application/json') >= 0) {
1214
- localVarHeaderParams.Accept = produces[0];
1215
- } else {
1216
- localVarHeaderParams.Accept = 'application/json';
626
+ localVarHeaderParams.Accept = produces.join(',');
1217
627
  }
1218
628
  let localVarFormParams: any = {};
1219
629
 
1220
630
  // verify required parameter 'transformationId' is not null or undefined
1221
631
  if (transformationId === null || transformationId === undefined) {
1222
632
  throw new Error(
1223
- 'Required parameter transformationId was null or undefined when calling updateTransformationBeta.'
633
+ 'Required parameter transformationId was null or undefined when calling updateTransformation.'
1224
634
  );
1225
635
  }
1226
636
 
@@ -1230,7 +640,7 @@ export class TransformationsApi {
1230
640
  UpdateTransformationBetaInput === undefined
1231
641
  ) {
1232
642
  throw new Error(
1233
- 'Required parameter UpdateTransformationBetaInput was null or undefined when calling updateTransformationBeta.'
643
+ 'Required parameter UpdateTransformationBetaInput was null or undefined when calling updateTransformation.'
1234
644
  );
1235
645
  }
1236
646