@segment/public-api-sdk-typescript 34.3.3-b6305 → 34.3.4-b6333

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 (584) hide show
  1. package/README.md +1 -1
  2. package/api/aPICallsApi.ts +1 -1
  3. package/api/apis.ts +1 -1
  4. package/api/auditTrailApi.ts +1 -1
  5. package/api/catalogApi.ts +1 -1
  6. package/api/deletionAndSuppressionApi.ts +1 -1
  7. package/api/destinationFiltersApi.ts +1 -1
  8. package/api/destinationsApi.ts +1 -1
  9. package/api/edgeFunctionsApi.ts +1 -1
  10. package/api/eventsApi.ts +1 -1
  11. package/api/functionsApi.ts +402 -1
  12. package/api/iAMGroupsApi.ts +1 -1
  13. package/api/iAMRolesApi.ts +1 -1
  14. package/api/iAMUsersApi.ts +1 -1
  15. package/api/labelsApi.ts +1 -1
  16. package/api/monthlyTrackedUsersApi.ts +1 -1
  17. package/api/profilesSyncApi.ts +1 -1
  18. package/api/reverseETLApi.ts +1 -1
  19. package/api/selectiveSyncApi.ts +1 -1
  20. package/api/sourcesApi.ts +1 -1
  21. package/api/spacesApi.ts +1 -1
  22. package/api/testingApi.ts +1 -1
  23. package/api/trackingPlansApi.ts +1 -1
  24. package/api/transformationsApi.ts +1 -1
  25. package/api/warehousesApi.ts +1 -1
  26. package/api/workspacesApi.ts +1 -1
  27. package/dist/api/apis.js +1 -1
  28. package/dist/api/functionsApi.d.ts +28 -0
  29. package/dist/api/functionsApi.js +274 -6
  30. package/dist/api/functionsApi.js.map +1 -1
  31. package/dist/model/getFunctionVersion200Response.d.ts +15 -0
  32. package/dist/model/getFunctionVersion200Response.js +21 -0
  33. package/dist/model/getFunctionVersion200Response.js.map +1 -0
  34. package/dist/model/getFunctionVersionAlphaOutput.d.ts +15 -0
  35. package/dist/model/getFunctionVersionAlphaOutput.js +21 -0
  36. package/dist/model/getFunctionVersionAlphaOutput.js.map +1 -0
  37. package/dist/model/listFunctionVersions200Response.d.ts +15 -0
  38. package/dist/model/listFunctionVersions200Response.js +21 -0
  39. package/dist/model/listFunctionVersions200Response.js.map +1 -0
  40. package/dist/model/listFunctionVersionsAlphaOutput.d.ts +17 -0
  41. package/dist/model/listFunctionVersionsAlphaOutput.js +26 -0
  42. package/dist/model/listFunctionVersionsAlphaOutput.js.map +1 -0
  43. package/dist/model/models.d.ts +9 -0
  44. package/dist/model/models.js +27 -0
  45. package/dist/model/models.js.map +1 -1
  46. package/dist/model/restoreFunctionVersion200Response.d.ts +15 -0
  47. package/dist/model/restoreFunctionVersion200Response.js +21 -0
  48. package/dist/model/restoreFunctionVersion200Response.js.map +1 -0
  49. package/dist/model/restoreFunctionVersionAlphaInput.d.ts +14 -0
  50. package/dist/model/restoreFunctionVersionAlphaInput.js +21 -0
  51. package/dist/model/restoreFunctionVersionAlphaInput.js.map +1 -0
  52. package/dist/model/restoreFunctionVersionAlphaOutput.d.ts +15 -0
  53. package/dist/model/restoreFunctionVersionAlphaOutput.js +21 -0
  54. package/dist/model/restoreFunctionVersionAlphaOutput.js.map +1 -0
  55. package/dist/model/version.d.ts +20 -0
  56. package/dist/model/version.js +51 -0
  57. package/dist/model/version.js.map +1 -0
  58. package/dist/model/version1.d.ts +20 -0
  59. package/dist/model/version1.js +51 -0
  60. package/dist/model/version1.js.map +1 -0
  61. package/model/aPICallSnapshotV1.ts +1 -1
  62. package/model/accessPermissionV1.ts +1 -1
  63. package/model/addConnectionFromSourceToWarehouse200Response.ts +1 -1
  64. package/model/addConnectionFromSourceToWarehouseV1Output.ts +1 -1
  65. package/model/addLabelsToSource200Response.ts +1 -1
  66. package/model/addLabelsToSource200Response1.ts +1 -1
  67. package/model/addLabelsToSourceAlphaInput.ts +1 -1
  68. package/model/addLabelsToSourceAlphaOutput.ts +1 -1
  69. package/model/addLabelsToSourceV1Input.ts +1 -1
  70. package/model/addLabelsToSourceV1Output.ts +1 -1
  71. package/model/addPermissionsToUser200Response.ts +1 -1
  72. package/model/addPermissionsToUserGroup200Response.ts +1 -1
  73. package/model/addPermissionsToUserGroupV1Input.ts +1 -1
  74. package/model/addPermissionsToUserGroupV1Output.ts +1 -1
  75. package/model/addPermissionsToUserV1Input.ts +1 -1
  76. package/model/addPermissionsToUserV1Output.ts +1 -1
  77. package/model/addSourceToTrackingPlan200Response.ts +1 -1
  78. package/model/addSourceToTrackingPlanV1Input.ts +1 -1
  79. package/model/addSourceToTrackingPlanV1Output.ts +1 -1
  80. package/model/addUsersToUserGroup200Response.ts +1 -1
  81. package/model/addUsersToUserGroupV1Input.ts +1 -1
  82. package/model/addUsersToUserGroupV1Output.ts +1 -1
  83. package/model/advancedWarehouseSyncScheduleV1Input.ts +1 -1
  84. package/model/advancedWarehouseSyncScheduleV1Output.ts +1 -1
  85. package/model/allowedLabelBeta.ts +1 -1
  86. package/model/auditEventV1.ts +1 -1
  87. package/model/batchQueryMessagingSubscriptionsForSpace200Response.ts +1 -1
  88. package/model/batchQueryMessagingSubscriptionsForSpaceAlphaInput.ts +1 -1
  89. package/model/batchQueryMessagingSubscriptionsForSpaceAlphaOutput.ts +1 -1
  90. package/model/breakdownBeta.ts +1 -1
  91. package/model/commonSourceSettingsV1.ts +1 -1
  92. package/model/contact.ts +1 -1
  93. package/model/createCloudSourceRegulation200Response.ts +1 -1
  94. package/model/createCloudSourceRegulationV1Input.ts +1 -1
  95. package/model/createCloudSourceRegulationV1Output.ts +1 -1
  96. package/model/createDestination200Response.ts +1 -1
  97. package/model/createDestinationSubscription200Response.ts +1 -1
  98. package/model/createDestinationSubscriptionAlphaInput.ts +1 -1
  99. package/model/createDestinationSubscriptionAlphaOutput.ts +1 -1
  100. package/model/createDestinationV1Input.ts +1 -1
  101. package/model/createDestinationV1Output.ts +1 -1
  102. package/model/createEdgeFunctions200Response.ts +1 -1
  103. package/model/createEdgeFunctionsAlphaInput.ts +1 -1
  104. package/model/createEdgeFunctionsAlphaOutput.ts +1 -1
  105. package/model/createFilterForDestination200Response.ts +1 -1
  106. package/model/createFilterForDestinationV1Input.ts +1 -1
  107. package/model/createFilterForDestinationV1Output.ts +1 -1
  108. package/model/createFunction200Response.ts +1 -1
  109. package/model/createFunctionDeployment200Response.ts +1 -1
  110. package/model/createFunctionDeploymentV1Output.ts +1 -1
  111. package/model/createFunctionV1Input.ts +1 -1
  112. package/model/createFunctionV1Output.ts +1 -1
  113. package/model/createInvites200Response.ts +1 -1
  114. package/model/createInvitesV1Input.ts +1 -1
  115. package/model/createInvitesV1Output.ts +1 -1
  116. package/model/createLabel200Response.ts +1 -1
  117. package/model/createLabel200Response1.ts +1 -1
  118. package/model/createLabelAlphaInput.ts +1 -1
  119. package/model/createLabelAlphaOutput.ts +1 -1
  120. package/model/createLabelV1Input.ts +1 -1
  121. package/model/createLabelV1Output.ts +1 -1
  122. package/model/createProfilesWarehouse200Response.ts +1 -1
  123. package/model/createProfilesWarehouseAlphaInput.ts +1 -1
  124. package/model/createProfilesWarehouseAlphaOutput.ts +1 -1
  125. package/model/createReverseEtlModel200Response.ts +1 -1
  126. package/model/createReverseEtlModelInput.ts +1 -1
  127. package/model/createReverseEtlModelOutput.ts +1 -1
  128. package/model/createSource200Response.ts +1 -1
  129. package/model/createSource200Response1.ts +1 -1
  130. package/model/createSourceAlphaInput.ts +1 -1
  131. package/model/createSourceAlphaOutput.ts +1 -1
  132. package/model/createSourceRegulation200Response.ts +1 -1
  133. package/model/createSourceRegulationV1Input.ts +1 -1
  134. package/model/createSourceRegulationV1Output.ts +1 -1
  135. package/model/createSourceV1Input.ts +1 -1
  136. package/model/createSourceV1Output.ts +1 -1
  137. package/model/createTrackingPlan200Response.ts +1 -1
  138. package/model/createTrackingPlanV1Input.ts +1 -1
  139. package/model/createTrackingPlanV1Output.ts +1 -1
  140. package/model/createTransformation200Response.ts +1 -1
  141. package/model/createTransformationBetaInput.ts +1 -1
  142. package/model/createTransformationBetaOutput.ts +1 -1
  143. package/model/createTransformationV1Input.ts +1 -1
  144. package/model/createTransformationV1Output.ts +1 -1
  145. package/model/createUserGroup200Response.ts +1 -1
  146. package/model/createUserGroupV1Input.ts +1 -1
  147. package/model/createUserGroupV1Output.ts +1 -1
  148. package/model/createValidationInWarehouse200Response.ts +1 -1
  149. package/model/createValidationInWarehouseV1Input.ts +1 -1
  150. package/model/createValidationInWarehouseV1Output.ts +1 -1
  151. package/model/createWarehouse200Response.ts +1 -1
  152. package/model/createWarehouseV1Input.ts +1 -1
  153. package/model/createWarehouseV1Output.ts +1 -1
  154. package/model/createWorkspaceRegulation200Response.ts +1 -1
  155. package/model/createWorkspaceRegulationV1Input.ts +1 -1
  156. package/model/createWorkspaceRegulationV1Output.ts +1 -1
  157. package/model/deleteDestination200Response.ts +1 -1
  158. package/model/deleteDestinationV1Output.ts +1 -1
  159. package/model/deleteFunction200Response.ts +1 -1
  160. package/model/deleteFunctionV1Output.ts +1 -1
  161. package/model/deleteInvites200Response.ts +1 -1
  162. package/model/deleteInvitesV1Output.ts +1 -1
  163. package/model/deleteLabel200Response.ts +1 -1
  164. package/model/deleteLabel200Response1.ts +1 -1
  165. package/model/deleteLabelAlphaOutput.ts +1 -1
  166. package/model/deleteLabelV1Output.ts +1 -1
  167. package/model/deleteRegulation200Response.ts +1 -1
  168. package/model/deleteRegulationV1Output.ts +1 -1
  169. package/model/deleteReverseEtlModel200Response.ts +1 -1
  170. package/model/deleteReverseEtlModelOutput.ts +1 -1
  171. package/model/deleteSource200Response.ts +1 -1
  172. package/model/deleteSource200Response1.ts +1 -1
  173. package/model/deleteSourceAlphaOutput.ts +1 -1
  174. package/model/deleteSourceV1Output.ts +1 -1
  175. package/model/deleteTrackingPlan200Response.ts +1 -1
  176. package/model/deleteTrackingPlanV1Output.ts +1 -1
  177. package/model/deleteTransformation200Response.ts +1 -1
  178. package/model/deleteTransformationBetaInput.ts +1 -1
  179. package/model/deleteTransformationBetaOutput.ts +1 -1
  180. package/model/deleteTransformationV1Output.ts +1 -1
  181. package/model/deleteUserGroup200Response.ts +1 -1
  182. package/model/deleteUserGroupV1Output.ts +1 -1
  183. package/model/deleteUsers200Response.ts +1 -1
  184. package/model/deleteUsersV1Output.ts +1 -1
  185. package/model/deleteWarehouse200Response.ts +1 -1
  186. package/model/deleteWarehouseV1Output.ts +1 -1
  187. package/model/deliveryMetricsSummary.ts +1 -1
  188. package/model/deliveryMetricsSummaryBeta.ts +1 -1
  189. package/model/destination.ts +1 -1
  190. package/model/destination1.ts +1 -1
  191. package/model/destination2.ts +1 -1
  192. package/model/destinationFilterActionV1.ts +1 -1
  193. package/model/destinationFilterV1.ts +1 -1
  194. package/model/destinationMetadata.ts +1 -1
  195. package/model/destinationMetadataActionFieldV1.ts +1 -1
  196. package/model/destinationMetadataActionV1.ts +1 -1
  197. package/model/destinationMetadataComponentV1.ts +1 -1
  198. package/model/destinationMetadataFeaturesV1.ts +1 -1
  199. package/model/destinationMetadataMethodsV1.ts +1 -1
  200. package/model/destinationMetadataPlatformsV1.ts +1 -1
  201. package/model/destinationMetadataSubscriptionPresetV1.ts +1 -1
  202. package/model/destinationMetadataV1.ts +1 -1
  203. package/model/destinationStatusV1.ts +1 -1
  204. package/model/destinationSubscription.ts +1 -1
  205. package/model/destinationSubscriptionUpdateInput.ts +1 -1
  206. package/model/destinationV1.ts +1 -1
  207. package/model/disableEdgeFunctions200Response.ts +1 -1
  208. package/model/disableEdgeFunctionsAlphaOutput.ts +1 -1
  209. package/model/echo200Response.ts +1 -1
  210. package/model/echo200Response1.ts +1 -1
  211. package/model/echoAlphaOutput.ts +1 -1
  212. package/model/echoV1Output.ts +1 -1
  213. package/model/edgeFunctions.ts +1 -1
  214. package/model/edgeFunctions1.ts +1 -1
  215. package/model/edgeFunctionsAlpha.ts +1 -1
  216. package/model/eventSourceV1.ts +1 -1
  217. package/model/fQLDefinedPropertyV1.ts +1 -1
  218. package/model/filter.ts +1 -1
  219. package/model/filter1.ts +1 -1
  220. package/model/filter2.ts +1 -1
  221. package/model/filter3.ts +1 -1
  222. package/model/function.ts +1 -1
  223. package/model/function1.ts +1 -1
  224. package/model/function2.ts +1 -1
  225. package/model/functionDeployment.ts +1 -1
  226. package/model/functionSettingV1.ts +1 -1
  227. package/model/functionV1.ts +1 -1
  228. package/model/generateUploadURLForEdgeFunctions200Response.ts +1 -1
  229. package/model/generateUploadURLForEdgeFunctionsAlphaOutput.ts +1 -1
  230. package/model/getAdvancedSyncScheduleFromWarehouse200Response.ts +1 -1
  231. package/model/getAdvancedSyncScheduleFromWarehouseV1Output.ts +1 -1
  232. package/model/getConnectionStateFromWarehouse200Response.ts +1 -1
  233. package/model/getConnectionStateFromWarehouseV1Output.ts +1 -1
  234. package/model/getDailyPerSourceAPICallsUsage200Response.ts +1 -1
  235. package/model/getDailyPerSourceAPICallsUsageV1Output.ts +1 -1
  236. package/model/getDailyPerSourceMTUUsage200Response.ts +1 -1
  237. package/model/getDailyPerSourceMTUUsageV1Output.ts +1 -1
  238. package/model/getDailyWorkspaceAPICallsUsage200Response.ts +1 -1
  239. package/model/getDailyWorkspaceAPICallsUsageV1Output.ts +1 -1
  240. package/model/getDailyWorkspaceMTUUsage200Response.ts +1 -1
  241. package/model/getDailyWorkspaceMTUUsageV1Output.ts +1 -1
  242. package/model/getDestination200Response.ts +1 -1
  243. package/model/getDestinationMetadata200Response.ts +1 -1
  244. package/model/getDestinationMetadataV1Output.ts +1 -1
  245. package/model/getDestinationV1Output.ts +1 -1
  246. package/model/getDestinationsCatalog200Response.ts +1 -1
  247. package/model/getDestinationsCatalogV1Output.ts +1 -1
  248. package/model/getEventsVolumeFromWorkspace200Response.ts +1 -1
  249. package/model/getEventsVolumeFromWorkspaceV1Output.ts +1 -1
  250. package/model/getEventsVolumeFromWorkspaceV1Query.ts +1 -1
  251. package/model/getFilterInDestination200Response.ts +1 -1
  252. package/model/getFilterInDestinationV1Output.ts +1 -1
  253. package/model/getFunction200Response.ts +1 -1
  254. package/model/getFunctionV1Output.ts +1 -1
  255. package/model/getFunctionVersion200Response.ts +36 -0
  256. package/model/getFunctionVersionAlphaOutput.ts +39 -0
  257. package/model/getLatestFromEdgeFunctions200Response.ts +1 -1
  258. package/model/getLatestFromEdgeFunctionsAlphaOutput.ts +1 -1
  259. package/model/getMessagingSubscriptionFailureResponse.ts +1 -1
  260. package/model/getMessagingSubscriptionSuccessResponse.ts +1 -1
  261. package/model/getRegulation200Response.ts +1 -1
  262. package/model/getRegulationV1Output.ts +1 -1
  263. package/model/getReverseEtlModel200Response.ts +1 -1
  264. package/model/getReverseEtlModelOutput.ts +1 -1
  265. package/model/getSource200Response.ts +1 -1
  266. package/model/getSource200Response1.ts +1 -1
  267. package/model/getSourceAlphaOutput.ts +1 -1
  268. package/model/getSourceMetadata200Response.ts +1 -1
  269. package/model/getSourceMetadataV1Output.ts +1 -1
  270. package/model/getSourceV1Output.ts +1 -1
  271. package/model/getSourcesCatalog200Response.ts +1 -1
  272. package/model/getSourcesCatalogV1Output.ts +1 -1
  273. package/model/getSpace200Response.ts +1 -1
  274. package/model/getSpaceAlphaOutput.ts +1 -1
  275. package/model/getSubscriptionFromDestination200Response.ts +1 -1
  276. package/model/getSubscriptionFromDestinationAlphaOutput.ts +1 -1
  277. package/model/getSubscriptionRequest.ts +1 -1
  278. package/model/getTrackingPlan200Response.ts +1 -1
  279. package/model/getTrackingPlanV1Output.ts +1 -1
  280. package/model/getTransformation200Response.ts +1 -1
  281. package/model/getTransformationBetaInput.ts +1 -1
  282. package/model/getTransformationBetaOutput.ts +1 -1
  283. package/model/getTransformationV1Output.ts +1 -1
  284. package/model/getUser200Response.ts +1 -1
  285. package/model/getUserGroup200Response.ts +1 -1
  286. package/model/getUserGroupV1Output.ts +1 -1
  287. package/model/getUserV1Output.ts +1 -1
  288. package/model/getWarehouse200Response.ts +1 -1
  289. package/model/getWarehouseMetadata200Response.ts +1 -1
  290. package/model/getWarehouseMetadataV1Output.ts +1 -1
  291. package/model/getWarehouseV1Output.ts +1 -1
  292. package/model/getWarehousesCatalog200Response.ts +1 -1
  293. package/model/getWarehousesCatalogV1Output.ts +1 -1
  294. package/model/getWorkspace200Response.ts +1 -1
  295. package/model/getWorkspaceV1Output.ts +1 -1
  296. package/model/group.ts +1 -1
  297. package/model/groupSourceSettingsV1.ts +1 -1
  298. package/model/handleWebhookInput.ts +1 -1
  299. package/model/handleWebhookOutput.ts +1 -1
  300. package/model/identify.ts +1 -1
  301. package/model/identifySourceSettingsV1.ts +1 -1
  302. package/model/input.ts +1 -1
  303. package/model/integrationOptionBeta.ts +1 -1
  304. package/model/invitePermissionV1.ts +1 -1
  305. package/model/inviteV1.ts +1 -1
  306. package/model/label.ts +1 -1
  307. package/model/label1.ts +1 -1
  308. package/model/label2.ts +1 -1
  309. package/model/labelAlpha.ts +1 -1
  310. package/model/labelV1.ts +1 -1
  311. package/model/listAuditEvents200Response.ts +1 -1
  312. package/model/listAuditEventsV1Output.ts +1 -1
  313. package/model/listConnectedDestinationsFromSource200Response.ts +1 -1
  314. package/model/listConnectedDestinationsFromSource200Response1.ts +1 -1
  315. package/model/listConnectedDestinationsFromSourceAlphaOutput.ts +1 -1
  316. package/model/listConnectedDestinationsFromSourceV1Output.ts +1 -1
  317. package/model/listConnectedSourcesFromWarehouse200Response.ts +1 -1
  318. package/model/listConnectedSourcesFromWarehouseV1Output.ts +1 -1
  319. package/model/listConnectedWarehousesFromSource200Response.ts +1 -1
  320. package/model/listConnectedWarehousesFromSource200Response1.ts +1 -1
  321. package/model/listConnectedWarehousesFromSourceAlphaOutput.ts +1 -1
  322. package/model/listConnectedWarehousesFromSourceV1Output.ts +1 -1
  323. package/model/listDeliveryMetricsSummaryFromDestination200Response.ts +1 -1
  324. package/model/listDeliveryMetricsSummaryFromDestinationBetaOutput.ts +1 -1
  325. package/model/listDestinations200Response.ts +1 -1
  326. package/model/listDestinationsV1Output.ts +1 -1
  327. package/model/listFiltersFromDestination200Response.ts +1 -1
  328. package/model/listFiltersFromDestinationV1Output.ts +1 -1
  329. package/model/listFunctionItemV1.ts +1 -1
  330. package/model/listFunctionVersions200Response.ts +36 -0
  331. package/model/listFunctionVersionsAlphaOutput.ts +49 -0
  332. package/model/listFunctions200Response.ts +1 -1
  333. package/model/listFunctionsV1Output.ts +1 -1
  334. package/model/listInvites200Response.ts +1 -1
  335. package/model/listInvitesFromUserGroup200Response.ts +1 -1
  336. package/model/listInvitesFromUserGroupV1Output.ts +1 -1
  337. package/model/listInvitesV1Output.ts +1 -1
  338. package/model/listLabels200Response.ts +1 -1
  339. package/model/listLabels200Response1.ts +1 -1
  340. package/model/listLabelsAlphaOutput.ts +1 -1
  341. package/model/listLabelsV1Output.ts +1 -1
  342. package/model/listProfilesWarehouseInSpace200Response.ts +1 -1
  343. package/model/listProfilesWarehouseInSpaceAlphaOutput.ts +1 -1
  344. package/model/listRegulationsFromSource200Response.ts +1 -1
  345. package/model/listRegulationsFromSourceV1Output.ts +1 -1
  346. package/model/listReverseEtlModels200Response.ts +1 -1
  347. package/model/listReverseEtlModelsOutput.ts +1 -1
  348. package/model/listRoles200Response.ts +1 -1
  349. package/model/listRolesV1Output.ts +1 -1
  350. package/model/listRulesFromTrackingPlan200Response.ts +1 -1
  351. package/model/listRulesFromTrackingPlanV1Output.ts +1 -1
  352. package/model/listSchemaSettingsInSource200Response.ts +1 -1
  353. package/model/listSchemaSettingsInSourceV1Output.ts +1 -1
  354. package/model/listSelectiveSyncsFromWarehouseAndSource200Response.ts +1 -1
  355. package/model/listSelectiveSyncsFromWarehouseAndSourceV1Output.ts +1 -1
  356. package/model/listSources200Response.ts +1 -1
  357. package/model/listSources200Response1.ts +1 -1
  358. package/model/listSourcesAlphaOutput.ts +1 -1
  359. package/model/listSourcesFromTrackingPlan200Response.ts +1 -1
  360. package/model/listSourcesFromTrackingPlanV1Output.ts +1 -1
  361. package/model/listSourcesV1Output.ts +1 -1
  362. package/model/listSubscriptionsFromDestination200Response.ts +1 -1
  363. package/model/listSubscriptionsFromDestinationAlphaOutput.ts +1 -1
  364. package/model/listSuppressions200Response.ts +1 -1
  365. package/model/listSuppressionsV1Output.ts +1 -1
  366. package/model/listSyncsFromWarehouse200Response.ts +1 -1
  367. package/model/listSyncsFromWarehouseAndSource200Response.ts +1 -1
  368. package/model/listSyncsFromWarehouseAndSourceV1Output.ts +1 -1
  369. package/model/listSyncsFromWarehouseV1Output.ts +1 -1
  370. package/model/listTrackingPlans200Response.ts +1 -1
  371. package/model/listTrackingPlansV1Output.ts +1 -1
  372. package/model/listTransformations200Response.ts +1 -1
  373. package/model/listTransformationsBetaInput.ts +1 -1
  374. package/model/listTransformationsBetaOutput.ts +1 -1
  375. package/model/listTransformationsV1Output.ts +1 -1
  376. package/model/listUserGroups200Response.ts +1 -1
  377. package/model/listUserGroupsFromUser200Response.ts +1 -1
  378. package/model/listUserGroupsFromUserV1Output.ts +1 -1
  379. package/model/listUserGroupsV1Output.ts +1 -1
  380. package/model/listUsers200Response.ts +1 -1
  381. package/model/listUsersFromUserGroup200Response.ts +1 -1
  382. package/model/listUsersFromUserGroupV1Output.ts +1 -1
  383. package/model/listUsersV1Output.ts +1 -1
  384. package/model/listWarehouses200Response.ts +1 -1
  385. package/model/listWarehousesV1Output.ts +1 -1
  386. package/model/listWorkspaceRegulations200Response.ts +1 -1
  387. package/model/listWorkspaceRegulationsV1Output.ts +1 -1
  388. package/model/logos.ts +1 -1
  389. package/model/logos1.ts +1 -1
  390. package/model/logos2.ts +1 -1
  391. package/model/logosBeta.ts +1 -1
  392. package/model/messageSubscriptionResponse.ts +1 -1
  393. package/model/messageSubscriptionResponseError.ts +1 -1
  394. package/model/messagesSubscriptionRequest.ts +1 -1
  395. package/model/metadata.ts +1 -1
  396. package/model/metadata1.ts +1 -1
  397. package/model/metadata2.ts +1 -1
  398. package/model/metricBeta.ts +1 -1
  399. package/model/minimalUserGroupV1.ts +1 -1
  400. package/model/minimalUserV1.ts +1 -1
  401. package/model/models.ts +27 -0
  402. package/model/mtuSnapshotV1.ts +1 -1
  403. package/model/pagination.ts +1 -1
  404. package/model/pagination1.ts +1 -1
  405. package/model/paginationInput.ts +1 -1
  406. package/model/paginationOutput.ts +1 -1
  407. package/model/permissionInputV1.ts +1 -1
  408. package/model/permissionResourceV1.ts +1 -1
  409. package/model/permissionV1.ts +1 -1
  410. package/model/previewDestinationFilter200Response.ts +1 -1
  411. package/model/previewDestinationFilterV1.ts +1 -1
  412. package/model/previewDestinationFilterV1Input.ts +1 -1
  413. package/model/previewDestinationFilterV1Output.ts +1 -1
  414. package/model/profilesWarehouse.ts +1 -1
  415. package/model/profilesWarehouse1.ts +1 -1
  416. package/model/profilesWarehouseAlpha.ts +1 -1
  417. package/model/propertyRenameBeta.ts +1 -1
  418. package/model/propertyRenameV1.ts +1 -1
  419. package/model/propertyValueTransformationBeta.ts +1 -1
  420. package/model/propertyValueTransformationV1.ts +1 -1
  421. package/model/query.ts +1 -1
  422. package/model/regulation.ts +1 -1
  423. package/model/regulationListEntryV1.ts +1 -1
  424. package/model/removeFilterFromDestination200Response.ts +1 -1
  425. package/model/removeFilterFromDestinationV1Output.ts +1 -1
  426. package/model/removeProfilesWarehouseFromSpace200Response.ts +1 -1
  427. package/model/removeProfilesWarehouseFromSpaceAlphaOutput.ts +1 -1
  428. package/model/removeRuleV1.ts +1 -1
  429. package/model/removeRulesFromTrackingPlan200Response.ts +1 -1
  430. package/model/removeRulesFromTrackingPlanV1Output.ts +1 -1
  431. package/model/removeSourceConnectionFromWarehouse200Response.ts +1 -1
  432. package/model/removeSourceConnectionFromWarehouseV1Output.ts +1 -1
  433. package/model/removeSourceFromTrackingPlan200Response.ts +1 -1
  434. package/model/removeSourceFromTrackingPlanV1Output.ts +1 -1
  435. package/model/removeSubscriptionFromDestination200Response.ts +1 -1
  436. package/model/removeSubscriptionFromDestinationAlphaOutput.ts +1 -1
  437. package/model/removeUsersFromUserGroup200Response.ts +1 -1
  438. package/model/removeUsersFromUserGroupV1Output.ts +1 -1
  439. package/model/replaceAdvancedSyncScheduleForWarehouse200Response.ts +1 -1
  440. package/model/replaceAdvancedSyncScheduleForWarehouseV1Input.ts +1 -1
  441. package/model/replaceAdvancedSyncScheduleForWarehouseV1Output.ts +1 -1
  442. package/model/replaceLabelsInSource200Response.ts +1 -1
  443. package/model/replaceLabelsInSource200Response1.ts +1 -1
  444. package/model/replaceLabelsInSourceAlphaInput.ts +1 -1
  445. package/model/replaceLabelsInSourceAlphaOutput.ts +1 -1
  446. package/model/replaceLabelsInSourceV1Input.ts +1 -1
  447. package/model/replaceLabelsInSourceV1Output.ts +1 -1
  448. package/model/replaceMessagingSubscriptionsInSpaces200Response.ts +1 -1
  449. package/model/replaceMessagingSubscriptionsInSpacesAlphaInput.ts +1 -1
  450. package/model/replaceMessagingSubscriptionsInSpacesAlphaOutput.ts +1 -1
  451. package/model/replacePermissionsForUser200Response.ts +1 -1
  452. package/model/replacePermissionsForUserGroup200Response.ts +1 -1
  453. package/model/replacePermissionsForUserGroupV1Input.ts +1 -1
  454. package/model/replacePermissionsForUserGroupV1Output.ts +1 -1
  455. package/model/replacePermissionsForUserV1Input.ts +1 -1
  456. package/model/replacePermissionsForUserV1Output.ts +1 -1
  457. package/model/replaceRulesInTrackingPlan200Response.ts +1 -1
  458. package/model/replaceRulesInTrackingPlanV1Input.ts +1 -1
  459. package/model/replaceRulesInTrackingPlanV1Output.ts +1 -1
  460. package/model/replaceUsersInUserGroup200Response.ts +1 -1
  461. package/model/replaceUsersInUserGroupV1Input.ts +1 -1
  462. package/model/replaceUsersInUserGroupV1Output.ts +1 -1
  463. package/model/requestError.ts +1 -1
  464. package/model/requestErrorEnvelope.ts +1 -1
  465. package/model/resourceV1.ts +1 -1
  466. package/model/restoreFunctionVersion200Response.ts +36 -0
  467. package/model/restoreFunctionVersionAlphaInput.ts +41 -0
  468. package/model/restoreFunctionVersionAlphaOutput.ts +39 -0
  469. package/model/reverseEtlModel.ts +1 -1
  470. package/model/reverseEtlModel1.ts +1 -1
  471. package/model/roleV1.ts +1 -1
  472. package/model/ruleV1.ts +1 -1
  473. package/model/schedule.ts +1 -1
  474. package/model/schedule1.ts +1 -1
  475. package/model/schedule2.ts +1 -1
  476. package/model/settings.ts +1 -1
  477. package/model/settings1.ts +1 -1
  478. package/model/source.ts +1 -1
  479. package/model/source1.ts +1 -1
  480. package/model/source2.ts +1 -1
  481. package/model/source3.ts +1 -1
  482. package/model/source4.ts +1 -1
  483. package/model/source5.ts +1 -1
  484. package/model/source6.ts +1 -1
  485. package/model/sourceAPICallSnapshotV1.ts +1 -1
  486. package/model/sourceAlpha.ts +1 -1
  487. package/model/sourceEventVolumeDatapointV1.ts +1 -1
  488. package/model/sourceEventVolumeV1.ts +1 -1
  489. package/model/sourceMetadata.ts +1 -1
  490. package/model/sourceMetadataV1.ts +1 -1
  491. package/model/sourceSettingsOutputV1.ts +1 -1
  492. package/model/sourceV1.ts +1 -1
  493. package/model/space.ts +1 -1
  494. package/model/streamStatusV1.ts +1 -1
  495. package/model/subscription.ts +1 -1
  496. package/model/supportedFeatures.ts +1 -1
  497. package/model/supportedMethods.ts +1 -1
  498. package/model/supportedPlatforms.ts +1 -1
  499. package/model/suppressedInner.ts +1 -1
  500. package/model/syncNoticeV1.ts +1 -1
  501. package/model/syncV1.ts +1 -1
  502. package/model/track.ts +1 -1
  503. package/model/trackSourceSettingsV1.ts +1 -1
  504. package/model/trackingPlan.ts +1 -1
  505. package/model/trackingPlan1.ts +1 -1
  506. package/model/trackingPlanV1.ts +1 -1
  507. package/model/transformation.ts +1 -1
  508. package/model/transformation1.ts +1 -1
  509. package/model/transformation2.ts +1 -1
  510. package/model/transformation3.ts +1 -1
  511. package/model/transformation4.ts +1 -1
  512. package/model/transformation5.ts +1 -1
  513. package/model/transformationBeta.ts +1 -1
  514. package/model/transformationV1.ts +1 -1
  515. package/model/updateDestination200Response.ts +1 -1
  516. package/model/updateDestinationV1Input.ts +1 -1
  517. package/model/updateDestinationV1Output.ts +1 -1
  518. package/model/updateFilterForDestination200Response.ts +1 -1
  519. package/model/updateFilterForDestinationV1Input.ts +1 -1
  520. package/model/updateFilterForDestinationV1Output.ts +1 -1
  521. package/model/updateFunction200Response.ts +1 -1
  522. package/model/updateFunctionV1Input.ts +1 -1
  523. package/model/updateFunctionV1Output.ts +1 -1
  524. package/model/updateProfilesWarehouseForSpaceWarehouse200Response.ts +1 -1
  525. package/model/updateProfilesWarehouseForSpaceWarehouseAlphaInput.ts +1 -1
  526. package/model/updateProfilesWarehouseForSpaceWarehouseAlphaOutput.ts +1 -1
  527. package/model/updateReverseEtlModel200Response.ts +1 -1
  528. package/model/updateReverseEtlModelInput.ts +1 -1
  529. package/model/updateReverseEtlModelOutput.ts +1 -1
  530. package/model/updateRulesInTrackingPlan200Response.ts +1 -1
  531. package/model/updateRulesInTrackingPlanV1Input.ts +1 -1
  532. package/model/updateRulesInTrackingPlanV1Output.ts +1 -1
  533. package/model/updateSchemaSettingsInSource200Response.ts +1 -1
  534. package/model/updateSchemaSettingsInSourceV1Input.ts +1 -1
  535. package/model/updateSchemaSettingsInSourceV1Output.ts +1 -1
  536. package/model/updateSelectiveSyncForWarehouse200Response.ts +1 -1
  537. package/model/updateSelectiveSyncForWarehouseV1Input.ts +1 -1
  538. package/model/updateSelectiveSyncForWarehouseV1Output.ts +1 -1
  539. package/model/updateSource200Response.ts +1 -1
  540. package/model/updateSource200Response1.ts +1 -1
  541. package/model/updateSourceAlphaInput.ts +1 -1
  542. package/model/updateSourceAlphaOutput.ts +1 -1
  543. package/model/updateSourceV1Input.ts +1 -1
  544. package/model/updateSourceV1Output.ts +1 -1
  545. package/model/updateSubscriptionForDestination200Response.ts +1 -1
  546. package/model/updateSubscriptionForDestinationAlphaInput.ts +1 -1
  547. package/model/updateSubscriptionForDestinationAlphaOutput.ts +1 -1
  548. package/model/updateTrackingPlan200Response.ts +1 -1
  549. package/model/updateTrackingPlanV1Input.ts +1 -1
  550. package/model/updateTrackingPlanV1Output.ts +1 -1
  551. package/model/updateTransformation200Response.ts +1 -1
  552. package/model/updateTransformationBetaInput.ts +1 -1
  553. package/model/updateTransformationBetaOutput.ts +1 -1
  554. package/model/updateTransformationV1Input.ts +1 -1
  555. package/model/updateTransformationV1Output.ts +1 -1
  556. package/model/updateUserGroup200Response.ts +1 -1
  557. package/model/updateUserGroupV1Input.ts +1 -1
  558. package/model/updateUserGroupV1Output.ts +1 -1
  559. package/model/updateWarehouse200Response.ts +1 -1
  560. package/model/updateWarehouseV1Input.ts +1 -1
  561. package/model/updateWarehouseV1Output.ts +1 -1
  562. package/model/upsertRuleV1.ts +1 -1
  563. package/model/user.ts +1 -1
  564. package/model/userGroup.ts +1 -1
  565. package/model/userGroup1.ts +1 -1
  566. package/model/userGroup2.ts +1 -1
  567. package/model/userGroup3.ts +1 -1
  568. package/model/userGroupV1.ts +1 -1
  569. package/model/userV1.ts +1 -1
  570. package/model/usersPerSourceSnapshotV1.ts +1 -1
  571. package/model/version.ts +95 -0
  572. package/model/version1.ts +96 -0
  573. package/model/warehouse.ts +1 -1
  574. package/model/warehouse1.ts +1 -1
  575. package/model/warehouse2.ts +1 -1
  576. package/model/warehouseAdvancedSyncV1.ts +1 -1
  577. package/model/warehouseMetadata.ts +1 -1
  578. package/model/warehouseMetadataV1.ts +1 -1
  579. package/model/warehouseSelectiveSyncItemV1.ts +1 -1
  580. package/model/warehouseSyncOverrideV1.ts +1 -1
  581. package/model/warehouseV1.ts +1 -1
  582. package/model/workspace.ts +1 -1
  583. package/model/workspaceV1.ts +1 -1
  584. package/package.json +1 -1
package/README.md CHANGED
@@ -10,7 +10,7 @@ All endpoints in the API follow REST conventions and use standard HTTP methods.
10
10
 
11
11
  See the next sections for more information on how to use the Segment Public API TypeScript SDK.
12
12
 
13
- Latest API and SDK version: 34.3.3
13
+ Latest API and SDK version: 34.3.4
14
14
 
15
15
  ## Installation
16
16
 
@@ -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: 34.3.3
5
+ * The version of the OpenAPI document: 34.3.4
6
6
  * Contact: friends@segment.com
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/api/apis.ts CHANGED
@@ -150,7 +150,7 @@ export function configureApis(
150
150
 
151
151
  for (const k of Object.keys(apis)) {
152
152
  const key = k as keyof typeof apis;
153
- headers['User-Agent'] = 'Public API SDK 34.3.3 (TypeScript)';
153
+ headers['User-Agent'] = 'Public API SDK 34.3.4 (TypeScript)';
154
154
  apis[key].accessToken = token;
155
155
  apis[key].defaultHeaders = headers;
156
156
  }
@@ -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: 34.3.3
5
+ * The version of the OpenAPI document: 34.3.4
6
6
  * Contact: friends@segment.com
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/api/catalogApi.ts CHANGED
@@ -2,7 +2,7 @@
2
2
  * Segment Public API
3
3
  * The Segment Public API helps you manage your Segment Workspaces and its resources. You can use the API to perform CRUD (create, read, update, delete) operations at no extra charge. This includes working with resources such as Sources, Destinations, Warehouses, Tracking Plans, and the Segment Destinations and Sources Catalogs. All CRUD endpoints in the API follow REST conventions and use standard HTTP methods. Different URL endpoints represent different resources in a Workspace. See the next sections for more information on how to use the Segment Public API.
4
4
  *
5
- * The version of the OpenAPI document: 34.3.3
5
+ * The version of the OpenAPI document: 34.3.4
6
6
  * Contact: friends@segment.com
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -2,7 +2,7 @@
2
2
  * Segment Public API
3
3
  * The Segment Public API helps you manage your Segment Workspaces and its resources. You can use the API to perform CRUD (create, read, update, delete) operations at no extra charge. This includes working with resources such as Sources, Destinations, Warehouses, Tracking Plans, and the Segment Destinations and Sources Catalogs. All CRUD endpoints in the API follow REST conventions and use standard HTTP methods. Different URL endpoints represent different resources in a Workspace. See the next sections for more information on how to use the Segment Public API.
4
4
  *
5
- * The version of the OpenAPI document: 34.3.3
5
+ * The version of the OpenAPI document: 34.3.4
6
6
  * Contact: friends@segment.com
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -2,7 +2,7 @@
2
2
  * Segment Public API
3
3
  * The Segment Public API helps you manage your Segment Workspaces and its resources. You can use the API to perform CRUD (create, read, update, delete) operations at no extra charge. This includes working with resources such as Sources, Destinations, Warehouses, Tracking Plans, and the Segment Destinations and Sources Catalogs. All CRUD endpoints in the API follow REST conventions and use standard HTTP methods. Different URL endpoints represent different resources in a Workspace. See the next sections for more information on how to use the Segment Public API.
4
4
  *
5
- * The version of the OpenAPI document: 34.3.3
5
+ * The version of the OpenAPI document: 34.3.4
6
6
  * Contact: friends@segment.com
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -2,7 +2,7 @@
2
2
  * Segment Public API
3
3
  * The Segment Public API helps you manage your Segment Workspaces and its resources. You can use the API to perform CRUD (create, read, update, delete) operations at no extra charge. This includes working with resources such as Sources, Destinations, Warehouses, Tracking Plans, and the Segment Destinations and Sources Catalogs. All CRUD endpoints in the API follow REST conventions and use standard HTTP methods. Different URL endpoints represent different resources in a Workspace. See the next sections for more information on how to use the Segment Public API.
4
4
  *
5
- * The version of the OpenAPI document: 34.3.3
5
+ * The version of the OpenAPI document: 34.3.4
6
6
  * Contact: friends@segment.com
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -2,7 +2,7 @@
2
2
  * Segment Public API
3
3
  * The Segment Public API helps you manage your Segment Workspaces and its resources. You can use the API to perform CRUD (create, read, update, delete) operations at no extra charge. This includes working with resources such as Sources, Destinations, Warehouses, Tracking Plans, and the Segment Destinations and Sources Catalogs. All CRUD endpoints in the API follow REST conventions and use standard HTTP methods. Different URL endpoints represent different resources in a Workspace. See the next sections for more information on how to use the Segment Public API.
4
4
  *
5
- * The version of the OpenAPI document: 34.3.3
5
+ * The version of the OpenAPI document: 34.3.4
6
6
  * Contact: friends@segment.com
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/api/eventsApi.ts CHANGED
@@ -2,7 +2,7 @@
2
2
  * Segment Public API
3
3
  * The Segment Public API helps you manage your Segment Workspaces and its resources. You can use the API to perform CRUD (create, read, update, delete) operations at no extra charge. This includes working with resources such as Sources, Destinations, Warehouses, Tracking Plans, and the Segment Destinations and Sources Catalogs. All CRUD endpoints in the API follow REST conventions and use standard HTTP methods. Different URL endpoints represent different resources in a Workspace. See the next sections for more information on how to use the Segment Public API.
4
4
  *
5
- * The version of the OpenAPI document: 34.3.3
5
+ * The version of the OpenAPI document: 34.3.4
6
6
  * Contact: friends@segment.com
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -2,7 +2,7 @@
2
2
  * Segment Public API
3
3
  * The Segment Public API helps you manage your Segment Workspaces and its resources. You can use the API to perform CRUD (create, read, update, delete) operations at no extra charge. This includes working with resources such as Sources, Destinations, Warehouses, Tracking Plans, and the Segment Destinations and Sources Catalogs. All CRUD endpoints in the API follow REST conventions and use standard HTTP methods. Different URL endpoints represent different resources in a Workspace. See the next sections for more information on how to use the Segment Public API.
4
4
  *
5
- * The version of the OpenAPI document: 34.3.3
5
+ * The version of the OpenAPI document: 34.3.4
6
6
  * Contact: friends@segment.com
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -19,9 +19,13 @@ import { CreateFunctionDeployment200Response } from '../model/createFunctionDepl
19
19
  import { CreateFunctionV1Input } from '../model/createFunctionV1Input';
20
20
  import { DeleteFunction200Response } from '../model/deleteFunction200Response';
21
21
  import { GetFunction200Response } from '../model/getFunction200Response';
22
+ import { GetFunctionVersion200Response } from '../model/getFunctionVersion200Response';
23
+ import { ListFunctionVersions200Response } from '../model/listFunctionVersions200Response';
22
24
  import { ListFunctions200Response } from '../model/listFunctions200Response';
23
25
  import { PaginationInput } from '../model/paginationInput';
24
26
  import { RequestErrorEnvelope } from '../model/requestErrorEnvelope';
27
+ import { RestoreFunctionVersion200Response } from '../model/restoreFunctionVersion200Response';
28
+ import { RestoreFunctionVersionAlphaInput } from '../model/restoreFunctionVersionAlphaInput';
25
29
  import { UpdateFunction200Response } from '../model/updateFunction200Response';
26
30
  import { UpdateFunctionV1Input } from '../model/updateFunctionV1Input';
27
31
 
@@ -591,6 +595,270 @@ export class FunctionsApi {
591
595
  });
592
596
  });
593
597
  }
598
+ /**
599
+ * Gets a Function version. • In order to successfully call this endpoint, the specified Workspace needs to have the Functions feature enabled. Please reach out to your customer success manager for more information.
600
+ * @summary Get Function Version
601
+ * @param functionId
602
+ * @param versionId
603
+ */
604
+ public async getFunctionVersion(
605
+ functionId: string,
606
+ versionId: string,
607
+ options: { headers: { [name: string]: string } } = { headers: {} }
608
+ ): Promise<{
609
+ response: http.IncomingMessage;
610
+ body: GetFunctionVersion200Response;
611
+ }> {
612
+ const localVarPath =
613
+ this.basePath +
614
+ '/functions/{functionId}/versions/{versionId}'
615
+ .replace(
616
+ '{' + 'functionId' + '}',
617
+ encodeURIComponent(String(functionId))
618
+ )
619
+ .replace(
620
+ '{' + 'versionId' + '}',
621
+ encodeURIComponent(String(versionId))
622
+ );
623
+ let localVarQueryParameters: any = {};
624
+ let localVarHeaderParams: any = (<any>Object).assign(
625
+ {},
626
+ this._defaultHeaders
627
+ );
628
+ const produces = [
629
+ 'application/vnd.segment.v1alpha+json',
630
+ 'application/json',
631
+ ];
632
+ // give precedence to 'application/json'
633
+ if (produces.indexOf('application/json') >= 0) {
634
+ localVarHeaderParams.Accept = 'application/json';
635
+ } else {
636
+ localVarHeaderParams.Accept = produces.join(',');
637
+ }
638
+ let localVarFormParams: any = {};
639
+
640
+ // verify required parameter 'functionId' is not null or undefined
641
+ if (functionId === null || functionId === undefined) {
642
+ throw new Error(
643
+ 'Required parameter functionId was null or undefined when calling getFunctionVersion.'
644
+ );
645
+ }
646
+
647
+ // verify required parameter 'versionId' is not null or undefined
648
+ if (versionId === null || versionId === undefined) {
649
+ throw new Error(
650
+ 'Required parameter versionId was null or undefined when calling getFunctionVersion.'
651
+ );
652
+ }
653
+
654
+ (<any>Object).assign(localVarHeaderParams, options.headers);
655
+
656
+ let localVarUseFormData = false;
657
+
658
+ let localVarRequestOptions: localVarRequest.Options = {
659
+ method: 'GET',
660
+ qs: localVarQueryParameters,
661
+ headers: localVarHeaderParams,
662
+ uri: localVarPath,
663
+ useQuerystring: this._useQuerystring,
664
+ json: true,
665
+ };
666
+
667
+ let authenticationPromise = Promise.resolve();
668
+ if (this.authentications.token.accessToken) {
669
+ authenticationPromise = authenticationPromise.then(() =>
670
+ this.authentications.token.applyToRequest(
671
+ localVarRequestOptions
672
+ )
673
+ );
674
+ }
675
+ authenticationPromise = authenticationPromise.then(() =>
676
+ this.authentications.default.applyToRequest(localVarRequestOptions)
677
+ );
678
+
679
+ let interceptorPromise = authenticationPromise;
680
+ for (const interceptor of this.interceptors) {
681
+ interceptorPromise = interceptorPromise.then(() =>
682
+ interceptor(localVarRequestOptions)
683
+ );
684
+ }
685
+
686
+ return interceptorPromise.then(() => {
687
+ if (Object.keys(localVarFormParams).length) {
688
+ if (localVarUseFormData) {
689
+ (<any>localVarRequestOptions).formData = localVarFormParams;
690
+ } else {
691
+ localVarRequestOptions.form = localVarFormParams;
692
+ }
693
+ }
694
+ return new Promise<{
695
+ response: http.IncomingMessage;
696
+ body: GetFunctionVersion200Response;
697
+ }>((resolve, reject) => {
698
+ localVarRequest(
699
+ localVarRequestOptions,
700
+ (error, response, body) => {
701
+ if (error) {
702
+ reject(error);
703
+ } else {
704
+ if (
705
+ response.statusCode &&
706
+ response.statusCode >= 200 &&
707
+ response.statusCode <= 299
708
+ ) {
709
+ body = ObjectSerializer.deserialize(
710
+ body,
711
+ 'GetFunctionVersion200Response'
712
+ );
713
+ resolve({ response: response, body: body });
714
+ } else {
715
+ reject(
716
+ new HttpError(
717
+ response,
718
+ body,
719
+ response.statusCode
720
+ )
721
+ );
722
+ }
723
+ }
724
+ }
725
+ );
726
+ });
727
+ });
728
+ }
729
+ /**
730
+ * Lists versions for a Function in a Workspace. • In order to successfully call this endpoint, the specified Workspace needs to have the Functions feature enabled. Please reach out to your customer success manager for more information.
731
+ * @summary List Function Versions
732
+ * @param functionId
733
+ * @param pagination Pagination parameters. This parameter exists in alpha.
734
+ */
735
+ public async listFunctionVersions(
736
+ functionId: string,
737
+ pagination: PaginationInput,
738
+ options: { headers: { [name: string]: string } } = { headers: {} }
739
+ ): Promise<{
740
+ response: http.IncomingMessage;
741
+ body: ListFunctionVersions200Response;
742
+ }> {
743
+ const localVarPath =
744
+ this.basePath +
745
+ '/functions/{functionId}/versions'.replace(
746
+ '{' + 'functionId' + '}',
747
+ encodeURIComponent(String(functionId))
748
+ );
749
+ let localVarQueryParameters: any = {};
750
+ let localVarHeaderParams: any = (<any>Object).assign(
751
+ {},
752
+ this._defaultHeaders
753
+ );
754
+ const produces = [
755
+ 'application/vnd.segment.v1alpha+json',
756
+ 'application/json',
757
+ ];
758
+ // give precedence to 'application/json'
759
+ if (produces.indexOf('application/json') >= 0) {
760
+ localVarHeaderParams.Accept = 'application/json';
761
+ } else {
762
+ localVarHeaderParams.Accept = produces.join(',');
763
+ }
764
+ let localVarFormParams: any = {};
765
+
766
+ // verify required parameter 'functionId' is not null or undefined
767
+ if (functionId === null || functionId === undefined) {
768
+ throw new Error(
769
+ 'Required parameter functionId was null or undefined when calling listFunctionVersions.'
770
+ );
771
+ }
772
+
773
+ // verify required parameter 'pagination' is not null or undefined
774
+ if (pagination === null || pagination === undefined) {
775
+ throw new Error(
776
+ 'Required parameter pagination was null or undefined when calling listFunctionVersions.'
777
+ );
778
+ }
779
+
780
+ if (pagination !== undefined) {
781
+ localVarQueryParameters['pagination'] = ObjectSerializer.serialize(
782
+ pagination,
783
+ 'PaginationInput'
784
+ );
785
+ }
786
+
787
+ (<any>Object).assign(localVarHeaderParams, options.headers);
788
+
789
+ let localVarUseFormData = false;
790
+
791
+ let localVarRequestOptions: localVarRequest.Options = {
792
+ method: 'GET',
793
+ qs: localVarQueryParameters,
794
+ headers: localVarHeaderParams,
795
+ uri: localVarPath,
796
+ useQuerystring: this._useQuerystring,
797
+ json: true,
798
+ };
799
+
800
+ let authenticationPromise = Promise.resolve();
801
+ if (this.authentications.token.accessToken) {
802
+ authenticationPromise = authenticationPromise.then(() =>
803
+ this.authentications.token.applyToRequest(
804
+ localVarRequestOptions
805
+ )
806
+ );
807
+ }
808
+ authenticationPromise = authenticationPromise.then(() =>
809
+ this.authentications.default.applyToRequest(localVarRequestOptions)
810
+ );
811
+
812
+ let interceptorPromise = authenticationPromise;
813
+ for (const interceptor of this.interceptors) {
814
+ interceptorPromise = interceptorPromise.then(() =>
815
+ interceptor(localVarRequestOptions)
816
+ );
817
+ }
818
+
819
+ return interceptorPromise.then(() => {
820
+ if (Object.keys(localVarFormParams).length) {
821
+ if (localVarUseFormData) {
822
+ (<any>localVarRequestOptions).formData = localVarFormParams;
823
+ } else {
824
+ localVarRequestOptions.form = localVarFormParams;
825
+ }
826
+ }
827
+ return new Promise<{
828
+ response: http.IncomingMessage;
829
+ body: ListFunctionVersions200Response;
830
+ }>((resolve, reject) => {
831
+ localVarRequest(
832
+ localVarRequestOptions,
833
+ (error, response, body) => {
834
+ if (error) {
835
+ reject(error);
836
+ } else {
837
+ if (
838
+ response.statusCode &&
839
+ response.statusCode >= 200 &&
840
+ response.statusCode <= 299
841
+ ) {
842
+ body = ObjectSerializer.deserialize(
843
+ body,
844
+ 'ListFunctionVersions200Response'
845
+ );
846
+ resolve({ response: response, body: body });
847
+ } else {
848
+ reject(
849
+ new HttpError(
850
+ response,
851
+ body,
852
+ response.statusCode
853
+ )
854
+ );
855
+ }
856
+ }
857
+ }
858
+ );
859
+ });
860
+ });
861
+ }
594
862
  /**
595
863
  * Lists all Functions in a Workspace. • In order to successfully call this endpoint, the specified Workspace needs to have the Functions feature enabled. Please reach out to your customer success manager for more information.
596
864
  * @summary List Functions
@@ -729,6 +997,139 @@ export class FunctionsApi {
729
997
  });
730
998
  });
731
999
  }
1000
+ /**
1001
+ * Restore an old Function version as a latest version. • In order to successfully call this endpoint, the specified Workspace needs to have the Functions feature enabled. Please reach out to your customer success manager for more information.
1002
+ * @summary Restore Function Version
1003
+ * @param functionId
1004
+ * @param RestoreFunctionVersionAlphaInput
1005
+ */
1006
+ public async restoreFunctionVersion(
1007
+ functionId: string,
1008
+ RestoreFunctionVersionAlphaInput: RestoreFunctionVersionAlphaInput,
1009
+ options: { headers: { [name: string]: string } } = { headers: {} }
1010
+ ): Promise<{
1011
+ response: http.IncomingMessage;
1012
+ body: RestoreFunctionVersion200Response;
1013
+ }> {
1014
+ const localVarPath =
1015
+ this.basePath +
1016
+ '/functions/{functionId}/versions'.replace(
1017
+ '{' + 'functionId' + '}',
1018
+ encodeURIComponent(String(functionId))
1019
+ );
1020
+ let localVarQueryParameters: any = {};
1021
+ let localVarHeaderParams: any = (<any>Object).assign(
1022
+ {},
1023
+ this._defaultHeaders
1024
+ );
1025
+ const produces = [
1026
+ 'application/vnd.segment.v1alpha+json',
1027
+ 'application/json',
1028
+ ];
1029
+ // give precedence to 'application/json'
1030
+ if (produces.indexOf('application/json') >= 0) {
1031
+ localVarHeaderParams.Accept = 'application/json';
1032
+ } else {
1033
+ localVarHeaderParams.Accept = produces.join(',');
1034
+ }
1035
+ let localVarFormParams: any = {};
1036
+
1037
+ // verify required parameter 'functionId' is not null or undefined
1038
+ if (functionId === null || functionId === undefined) {
1039
+ throw new Error(
1040
+ 'Required parameter functionId was null or undefined when calling restoreFunctionVersion.'
1041
+ );
1042
+ }
1043
+
1044
+ // verify required parameter 'RestoreFunctionVersionAlphaInput' is not null or undefined
1045
+ if (
1046
+ RestoreFunctionVersionAlphaInput === null ||
1047
+ RestoreFunctionVersionAlphaInput === undefined
1048
+ ) {
1049
+ throw new Error(
1050
+ 'Required parameter RestoreFunctionVersionAlphaInput was null or undefined when calling restoreFunctionVersion.'
1051
+ );
1052
+ }
1053
+
1054
+ (<any>Object).assign(localVarHeaderParams, options.headers);
1055
+
1056
+ let localVarUseFormData = false;
1057
+
1058
+ let localVarRequestOptions: localVarRequest.Options = {
1059
+ method: 'POST',
1060
+ qs: localVarQueryParameters,
1061
+ headers: localVarHeaderParams,
1062
+ uri: localVarPath,
1063
+ useQuerystring: this._useQuerystring,
1064
+ json: true,
1065
+ body: ObjectSerializer.serialize(
1066
+ RestoreFunctionVersionAlphaInput,
1067
+ 'RestoreFunctionVersionAlphaInput'
1068
+ ),
1069
+ };
1070
+
1071
+ let authenticationPromise = Promise.resolve();
1072
+ if (this.authentications.token.accessToken) {
1073
+ authenticationPromise = authenticationPromise.then(() =>
1074
+ this.authentications.token.applyToRequest(
1075
+ localVarRequestOptions
1076
+ )
1077
+ );
1078
+ }
1079
+ authenticationPromise = authenticationPromise.then(() =>
1080
+ this.authentications.default.applyToRequest(localVarRequestOptions)
1081
+ );
1082
+
1083
+ let interceptorPromise = authenticationPromise;
1084
+ for (const interceptor of this.interceptors) {
1085
+ interceptorPromise = interceptorPromise.then(() =>
1086
+ interceptor(localVarRequestOptions)
1087
+ );
1088
+ }
1089
+
1090
+ return interceptorPromise.then(() => {
1091
+ if (Object.keys(localVarFormParams).length) {
1092
+ if (localVarUseFormData) {
1093
+ (<any>localVarRequestOptions).formData = localVarFormParams;
1094
+ } else {
1095
+ localVarRequestOptions.form = localVarFormParams;
1096
+ }
1097
+ }
1098
+ return new Promise<{
1099
+ response: http.IncomingMessage;
1100
+ body: RestoreFunctionVersion200Response;
1101
+ }>((resolve, reject) => {
1102
+ localVarRequest(
1103
+ localVarRequestOptions,
1104
+ (error, response, body) => {
1105
+ if (error) {
1106
+ reject(error);
1107
+ } else {
1108
+ if (
1109
+ response.statusCode &&
1110
+ response.statusCode >= 200 &&
1111
+ response.statusCode <= 299
1112
+ ) {
1113
+ body = ObjectSerializer.deserialize(
1114
+ body,
1115
+ 'RestoreFunctionVersion200Response'
1116
+ );
1117
+ resolve({ response: response, body: body });
1118
+ } else {
1119
+ reject(
1120
+ new HttpError(
1121
+ response,
1122
+ body,
1123
+ response.statusCode
1124
+ )
1125
+ );
1126
+ }
1127
+ }
1128
+ }
1129
+ );
1130
+ });
1131
+ });
1132
+ }
732
1133
  /**
733
1134
  * Updates a Function. • In order to successfully call this endpoint, the specified Workspace needs to have the Functions feature enabled. Please reach out to your customer success manager for more information. Config API omitted fields: - `updateMask`
734
1135
  * @summary Update Function
@@ -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: 34.3.3
5
+ * The version of the OpenAPI document: 34.3.4
6
6
  * Contact: friends@segment.com
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -2,7 +2,7 @@
2
2
  * Segment Public API
3
3
  * The Segment Public API helps you manage your Segment Workspaces and its resources. You can use the API to perform CRUD (create, read, update, delete) operations at no extra charge. This includes working with resources such as Sources, Destinations, Warehouses, Tracking Plans, and the Segment Destinations and Sources Catalogs. All CRUD endpoints in the API follow REST conventions and use standard HTTP methods. Different URL endpoints represent different resources in a Workspace. See the next sections for more information on how to use the Segment Public API.
4
4
  *
5
- * The version of the OpenAPI document: 34.3.3
5
+ * The version of the OpenAPI document: 34.3.4
6
6
  * Contact: friends@segment.com
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -2,7 +2,7 @@
2
2
  * Segment Public API
3
3
  * The Segment Public API helps you manage your Segment Workspaces and its resources. You can use the API to perform CRUD (create, read, update, delete) operations at no extra charge. This includes working with resources such as Sources, Destinations, Warehouses, Tracking Plans, and the Segment Destinations and Sources Catalogs. All CRUD endpoints in the API follow REST conventions and use standard HTTP methods. Different URL endpoints represent different resources in a Workspace. See the next sections for more information on how to use the Segment Public API.
4
4
  *
5
- * The version of the OpenAPI document: 34.3.3
5
+ * The version of the OpenAPI document: 34.3.4
6
6
  * Contact: friends@segment.com
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/api/labelsApi.ts CHANGED
@@ -2,7 +2,7 @@
2
2
  * Segment Public API
3
3
  * The Segment Public API helps you manage your Segment Workspaces and its resources. You can use the API to perform CRUD (create, read, update, delete) operations at no extra charge. This includes working with resources such as Sources, Destinations, Warehouses, Tracking Plans, and the Segment Destinations and Sources Catalogs. All CRUD endpoints in the API follow REST conventions and use standard HTTP methods. Different URL endpoints represent different resources in a Workspace. See the next sections for more information on how to use the Segment Public API.
4
4
  *
5
- * The version of the OpenAPI document: 34.3.3
5
+ * The version of the OpenAPI document: 34.3.4
6
6
  * Contact: friends@segment.com
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -2,7 +2,7 @@
2
2
  * Segment Public API
3
3
  * The Segment Public API helps you manage your Segment Workspaces and its resources. You can use the API to perform CRUD (create, read, update, delete) operations at no extra charge. This includes working with resources such as Sources, Destinations, Warehouses, Tracking Plans, and the Segment Destinations and Sources Catalogs. All CRUD endpoints in the API follow REST conventions and use standard HTTP methods. Different URL endpoints represent different resources in a Workspace. See the next sections for more information on how to use the Segment Public API.
4
4
  *
5
- * The version of the OpenAPI document: 34.3.3
5
+ * The version of the OpenAPI document: 34.3.4
6
6
  * Contact: friends@segment.com
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -2,7 +2,7 @@
2
2
  * Segment Public API
3
3
  * The Segment Public API helps you manage your Segment Workspaces and its resources. You can use the API to perform CRUD (create, read, update, delete) operations at no extra charge. This includes working with resources such as Sources, Destinations, Warehouses, Tracking Plans, and the Segment Destinations and Sources Catalogs. All CRUD endpoints in the API follow REST conventions and use standard HTTP methods. Different URL endpoints represent different resources in a Workspace. See the next sections for more information on how to use the Segment Public API.
4
4
  *
5
- * The version of the OpenAPI document: 34.3.3
5
+ * The version of the OpenAPI document: 34.3.4
6
6
  * Contact: friends@segment.com
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -2,7 +2,7 @@
2
2
  * Segment Public API
3
3
  * The Segment Public API helps you manage your Segment Workspaces and its resources. You can use the API to perform CRUD (create, read, update, delete) operations at no extra charge. This includes working with resources such as Sources, Destinations, Warehouses, Tracking Plans, and the Segment Destinations and Sources Catalogs. All CRUD endpoints in the API follow REST conventions and use standard HTTP methods. Different URL endpoints represent different resources in a Workspace. See the next sections for more information on how to use the Segment Public API.
4
4
  *
5
- * The version of the OpenAPI document: 34.3.3
5
+ * The version of the OpenAPI document: 34.3.4
6
6
  * Contact: friends@segment.com
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -2,7 +2,7 @@
2
2
  * Segment Public API
3
3
  * The Segment Public API helps you manage your Segment Workspaces and its resources. You can use the API to perform CRUD (create, read, update, delete) operations at no extra charge. This includes working with resources such as Sources, Destinations, Warehouses, Tracking Plans, and the Segment Destinations and Sources Catalogs. All CRUD endpoints in the API follow REST conventions and use standard HTTP methods. Different URL endpoints represent different resources in a Workspace. See the next sections for more information on how to use the Segment Public API.
4
4
  *
5
- * The version of the OpenAPI document: 34.3.3
5
+ * The version of the OpenAPI document: 34.3.4
6
6
  * Contact: friends@segment.com
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/api/sourcesApi.ts CHANGED
@@ -2,7 +2,7 @@
2
2
  * Segment Public API
3
3
  * The Segment Public API helps you manage your Segment Workspaces and its resources. You can use the API to perform CRUD (create, read, update, delete) operations at no extra charge. This includes working with resources such as Sources, Destinations, Warehouses, Tracking Plans, and the Segment Destinations and Sources Catalogs. All CRUD endpoints in the API follow REST conventions and use standard HTTP methods. Different URL endpoints represent different resources in a Workspace. See the next sections for more information on how to use the Segment Public API.
4
4
  *
5
- * The version of the OpenAPI document: 34.3.3
5
+ * The version of the OpenAPI document: 34.3.4
6
6
  * Contact: friends@segment.com
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/api/spacesApi.ts CHANGED
@@ -2,7 +2,7 @@
2
2
  * Segment Public API
3
3
  * The Segment Public API helps you manage your Segment Workspaces and its resources. You can use the API to perform CRUD (create, read, update, delete) operations at no extra charge. This includes working with resources such as Sources, Destinations, Warehouses, Tracking Plans, and the Segment Destinations and Sources Catalogs. All CRUD endpoints in the API follow REST conventions and use standard HTTP methods. Different URL endpoints represent different resources in a Workspace. See the next sections for more information on how to use the Segment Public API.
4
4
  *
5
- * The version of the OpenAPI document: 34.3.3
5
+ * The version of the OpenAPI document: 34.3.4
6
6
  * Contact: friends@segment.com
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/api/testingApi.ts CHANGED
@@ -2,7 +2,7 @@
2
2
  * Segment Public API
3
3
  * The Segment Public API helps you manage your Segment Workspaces and its resources. You can use the API to perform CRUD (create, read, update, delete) operations at no extra charge. This includes working with resources such as Sources, Destinations, Warehouses, Tracking Plans, and the Segment Destinations and Sources Catalogs. All CRUD endpoints in the API follow REST conventions and use standard HTTP methods. Different URL endpoints represent different resources in a Workspace. See the next sections for more information on how to use the Segment Public API.
4
4
  *
5
- * The version of the OpenAPI document: 34.3.3
5
+ * The version of the OpenAPI document: 34.3.4
6
6
  * Contact: friends@segment.com
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).