@segment/public-api-sdk-typescript 1.0.1 → 1.0.2

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 (509) hide show
  1. package/README.md +1 -1
  2. package/api/aPICallsApi.ts +1176 -0
  3. package/api/apis.ts +178 -0
  4. package/api/auditTrailApi.ts +714 -0
  5. package/api/catalogApi.ts +2916 -0
  6. package/api/deletionAndSuppressionApi.ts +4298 -0
  7. package/api/destinationFiltersApi.ts +3262 -0
  8. package/api/destinationsApi.ts +3494 -0
  9. package/api/edgeFunctionsApi.ts +593 -0
  10. package/api/eventsApi.ts +922 -0
  11. package/api/functionsApi.ts +3036 -0
  12. package/api/iAMGroupsApi.ts +6204 -0
  13. package/api/iAMRolesApi.ts +566 -0
  14. package/api/iAMUsersApi.ts +4486 -0
  15. package/api/labelsApi.ts +1488 -0
  16. package/api/monthlyTrackedUsersApi.ts +1178 -0
  17. package/api/selectiveSyncApi.ts +3321 -0
  18. package/api/sourcesApi.ts +5602 -0
  19. package/api/spacesApi.ts +489 -0
  20. package/api/testingApi.ts +568 -0
  21. package/api/trackingPlansApi.ts +6238 -0
  22. package/api/transformationsApi.ts +1316 -0
  23. package/api/warehousesApi.ts +5004 -0
  24. package/api/workspacesApi.ts +513 -0
  25. package/api.ts +3 -0
  26. package/dist/model/contact.d.ts +17 -0
  27. package/dist/model/contact.js +36 -0
  28. package/dist/model/contact.js.map +1 -0
  29. package/dist/model/destinationMetadata.d.ts +3 -0
  30. package/dist/model/destinationMetadata.js +10 -0
  31. package/dist/model/destinationMetadata.js.map +1 -1
  32. package/dist/model/destinationMetadataV1.d.ts +3 -0
  33. package/dist/model/destinationMetadataV1.js +10 -0
  34. package/dist/model/destinationMetadataV1.js.map +1 -1
  35. package/dist/model/metadata.d.ts +3 -0
  36. package/dist/model/metadata.js +10 -0
  37. package/dist/model/metadata.js.map +1 -1
  38. package/dist/model/models.d.ts +1 -0
  39. package/dist/model/models.js +3 -0
  40. package/dist/model/models.js.map +1 -1
  41. package/jest.config.js +10 -0
  42. package/model/aPICallSnapshotV1.ts +50 -0
  43. package/model/accessPermissionV1.ts +60 -0
  44. package/model/addConnectionFromSourceToWarehouse200Response.ts +36 -0
  45. package/model/addConnectionFromSourceToWarehouseV1Output.ts +48 -0
  46. package/model/addLabelsToSource200Response.ts +36 -0
  47. package/model/addLabelsToSource200Response1.ts +36 -0
  48. package/model/addLabelsToSourceAlphaInput.ts +42 -0
  49. package/model/addLabelsToSourceAlphaOutput.ts +42 -0
  50. package/model/addLabelsToSourceV1Input.ts +42 -0
  51. package/model/addLabelsToSourceV1Output.ts +42 -0
  52. package/model/addPermissionsToUser200Response.ts +36 -0
  53. package/model/addPermissionsToUserGroup200Response.ts +36 -0
  54. package/model/addPermissionsToUserGroupV1Input.ts +42 -0
  55. package/model/addPermissionsToUserGroupV1Output.ts +42 -0
  56. package/model/addPermissionsToUserV1Input.ts +42 -0
  57. package/model/addPermissionsToUserV1Output.ts +42 -0
  58. package/model/addSourceToTrackingPlan200Response.ts +36 -0
  59. package/model/addSourceToTrackingPlanV1Input.ts +41 -0
  60. package/model/addSourceToTrackingPlanV1Output.ts +47 -0
  61. package/model/addUsersToUserGroup200Response.ts +36 -0
  62. package/model/addUsersToUserGroupV1Input.ts +41 -0
  63. package/model/addUsersToUserGroupV1Output.ts +39 -0
  64. package/model/advancedWarehouseSyncScheduleV1Input.ts +51 -0
  65. package/model/advancedWarehouseSyncScheduleV1Output.ts +51 -0
  66. package/model/allowedLabelBeta.ts +59 -0
  67. package/model/auditEventV1.ts +95 -0
  68. package/model/batchQueryMessagingSubscriptionsForSpace200Response.ts +36 -0
  69. package/model/batchQueryMessagingSubscriptionsForSpaceAlphaInput.ts +42 -0
  70. package/model/batchQueryMessagingSubscriptionsForSpaceAlphaOutput.ts +69 -0
  71. package/model/breakdownBeta.ts +50 -0
  72. package/model/commonSourceSettingsV1.ts +68 -0
  73. package/model/contact.ts +68 -0
  74. package/model/createCloudSourceRegulation200Response.ts +36 -0
  75. package/model/createCloudSourceRegulationV1Input.ts +82 -0
  76. package/model/createCloudSourceRegulationV1Output.ts +41 -0
  77. package/model/createDestination200Response.ts +36 -0
  78. package/model/createDestinationSubscription200Response.ts +36 -0
  79. package/model/createDestinationSubscriptionAlphaInput.ts +77 -0
  80. package/model/createDestinationSubscriptionAlphaOutput.ts +39 -0
  81. package/model/createDestinationV1Input.ts +77 -0
  82. package/model/createDestinationV1Output.ts +39 -0
  83. package/model/createEdgeFunctions200Response.ts +36 -0
  84. package/model/createEdgeFunctionsAlphaInput.ts +41 -0
  85. package/model/createEdgeFunctionsAlphaOutput.ts +39 -0
  86. package/model/createFilterForDestination200Response.ts +36 -0
  87. package/model/createFilterForDestinationV1Input.ts +87 -0
  88. package/model/createFilterForDestinationV1Output.ts +39 -0
  89. package/model/createFunction200Response.ts +36 -0
  90. package/model/createFunctionDeployment200Response.ts +36 -0
  91. package/model/createFunctionDeploymentV1Output.ts +39 -0
  92. package/model/createFunctionV1Input.ts +94 -0
  93. package/model/createFunctionV1Output.ts +39 -0
  94. package/model/createInvites200Response.ts +36 -0
  95. package/model/createInvitesV1Input.ts +42 -0
  96. package/model/createInvitesV1Output.ts +41 -0
  97. package/model/createLabel200Response.ts +36 -0
  98. package/model/createLabel200Response1.ts +36 -0
  99. package/model/createLabelAlphaInput.ts +39 -0
  100. package/model/createLabelAlphaOutput.ts +42 -0
  101. package/model/createLabelV1Input.ts +39 -0
  102. package/model/createLabelV1Output.ts +39 -0
  103. package/model/createSource200Response.ts +36 -0
  104. package/model/createSource200Response1.ts +36 -0
  105. package/model/createSourceAlphaInput.ts +77 -0
  106. package/model/createSourceAlphaOutput.ts +39 -0
  107. package/model/createSourceRegulation200Response.ts +36 -0
  108. package/model/createSourceRegulationV1Input.ts +73 -0
  109. package/model/createSourceRegulationV1Output.ts +41 -0
  110. package/model/createSourceV1Input.ts +68 -0
  111. package/model/createSourceV1Output.ts +39 -0
  112. package/model/createTrackingPlan200Response.ts +36 -0
  113. package/model/createTrackingPlanV1Input.ts +68 -0
  114. package/model/createTrackingPlanV1Output.ts +39 -0
  115. package/model/createTransformation200Response.ts +36 -0
  116. package/model/createTransformationBetaInput.ts +96 -0
  117. package/model/createTransformationBetaOutput.ts +39 -0
  118. package/model/createUserGroup200Response.ts +36 -0
  119. package/model/createUserGroupV1Input.ts +41 -0
  120. package/model/createUserGroupV1Output.ts +39 -0
  121. package/model/createValidationInWarehouse200Response.ts +36 -0
  122. package/model/createValidationInWarehouseV1Input.ts +50 -0
  123. package/model/createValidationInWarehouseV1Output.ts +48 -0
  124. package/model/createWarehouse200Response.ts +36 -0
  125. package/model/createWarehouseV1Input.ts +68 -0
  126. package/model/createWarehouseV1Output.ts +39 -0
  127. package/model/createWorkspaceRegulation200Response.ts +36 -0
  128. package/model/createWorkspaceRegulationV1Input.ts +74 -0
  129. package/model/createWorkspaceRegulationV1Output.ts +41 -0
  130. package/model/deleteDestination200Response.ts +36 -0
  131. package/model/deleteDestinationV1Output.ts +47 -0
  132. package/model/deleteFunction200Response.ts +36 -0
  133. package/model/deleteFunctionV1Output.ts +47 -0
  134. package/model/deleteInvites200Response.ts +36 -0
  135. package/model/deleteInvitesV1Output.ts +47 -0
  136. package/model/deleteLabel200Response.ts +36 -0
  137. package/model/deleteLabel200Response1.ts +36 -0
  138. package/model/deleteLabelAlphaOutput.ts +47 -0
  139. package/model/deleteLabelV1Output.ts +47 -0
  140. package/model/deleteRegulation200Response.ts +36 -0
  141. package/model/deleteRegulationV1Output.ts +47 -0
  142. package/model/deleteSource200Response.ts +36 -0
  143. package/model/deleteSource200Response1.ts +36 -0
  144. package/model/deleteSourceAlphaOutput.ts +47 -0
  145. package/model/deleteSourceV1Output.ts +47 -0
  146. package/model/deleteTrackingPlan200Response.ts +36 -0
  147. package/model/deleteTrackingPlanV1Output.ts +47 -0
  148. package/model/deleteTransformation200Response.ts +36 -0
  149. package/model/deleteTransformationBetaOutput.ts +47 -0
  150. package/model/deleteUserGroup200Response.ts +36 -0
  151. package/model/deleteUserGroupV1Output.ts +47 -0
  152. package/model/deleteUsers200Response.ts +36 -0
  153. package/model/deleteUsersV1Output.ts +47 -0
  154. package/model/deleteWarehouse200Response.ts +36 -0
  155. package/model/deleteWarehouseV1Output.ts +47 -0
  156. package/model/deliveryMetricsSummary.ts +60 -0
  157. package/model/deliveryMetricsSummaryBeta.ts +60 -0
  158. package/model/destination.ts +84 -0
  159. package/model/destination1.ts +84 -0
  160. package/model/destination2.ts +84 -0
  161. package/model/destinationFilterActionV1.ts +77 -0
  162. package/model/destinationFilterV1.ts +123 -0
  163. package/model/destinationMetadata.ts +203 -0
  164. package/model/destinationMetadataActionFieldV1.ts +163 -0
  165. package/model/destinationMetadataActionV1.ts +113 -0
  166. package/model/destinationMetadataComponentV1.ts +72 -0
  167. package/model/destinationMetadataFeaturesV1.ts +93 -0
  168. package/model/destinationMetadataMethodsV1.ts +77 -0
  169. package/model/destinationMetadataPlatformsV1.ts +59 -0
  170. package/model/destinationMetadataSubscriptionPresetV1.ts +68 -0
  171. package/model/destinationMetadataV1.ts +203 -0
  172. package/model/destinationStatusV1.ts +74 -0
  173. package/model/destinationSubscription.ts +104 -0
  174. package/model/destinationSubscriptionUpdateInput.ts +68 -0
  175. package/model/destinationV1.ts +84 -0
  176. package/model/disableEdgeFunctions200Response.ts +36 -0
  177. package/model/disableEdgeFunctionsAlphaOutput.ts +39 -0
  178. package/model/echo200Response.ts +36 -0
  179. package/model/echo200Response1.ts +36 -0
  180. package/model/echoAlphaOutput.ts +66 -0
  181. package/model/echoV1Output.ts +66 -0
  182. package/model/edgeFunctions.ts +86 -0
  183. package/model/edgeFunctions1.ts +86 -0
  184. package/model/edgeFunctionsAlpha.ts +86 -0
  185. package/model/eventSourceV1.ts +59 -0
  186. package/model/filter.ts +51 -0
  187. package/model/filter1.ts +123 -0
  188. package/model/filter2.ts +123 -0
  189. package/model/filter3.ts +123 -0
  190. package/model/function.ts +166 -0
  191. package/model/function1.ts +166 -0
  192. package/model/function2.ts +166 -0
  193. package/model/functionDeployment.ts +44 -0
  194. package/model/functionSettingV1.ts +92 -0
  195. package/model/functionV1.ts +166 -0
  196. package/model/generateUploadURLForEdgeFunctions200Response.ts +36 -0
  197. package/model/generateUploadURLForEdgeFunctionsAlphaOutput.ts +41 -0
  198. package/model/getAdvancedSyncScheduleFromWarehouse200Response.ts +36 -0
  199. package/model/getAdvancedSyncScheduleFromWarehouseV1Output.ts +48 -0
  200. package/model/getConnectionStateFromWarehouse200Response.ts +36 -0
  201. package/model/getConnectionStateFromWarehouseV1Output.ts +48 -0
  202. package/model/getDailyPerSourceAPICallsUsage200Response.ts +36 -0
  203. package/model/getDailyPerSourceAPICallsUsageV1Output.ts +49 -0
  204. package/model/getDailyPerSourceMTUUsage200Response.ts +36 -0
  205. package/model/getDailyPerSourceMTUUsageV1Output.ts +49 -0
  206. package/model/getDailyWorkspaceAPICallsUsage200Response.ts +36 -0
  207. package/model/getDailyWorkspaceAPICallsUsageV1Output.ts +49 -0
  208. package/model/getDailyWorkspaceMTUUsage200Response.ts +36 -0
  209. package/model/getDailyWorkspaceMTUUsageV1Output.ts +49 -0
  210. package/model/getDestination200Response.ts +36 -0
  211. package/model/getDestinationMetadata200Response.ts +36 -0
  212. package/model/getDestinationMetadataV1Output.ts +39 -0
  213. package/model/getDestinationV1Output.ts +39 -0
  214. package/model/getDestinationsCatalog200Response.ts +36 -0
  215. package/model/getDestinationsCatalogV1Output.ts +49 -0
  216. package/model/getEventsVolumeFromWorkspace200Response.ts +36 -0
  217. package/model/getEventsVolumeFromWorkspaceV1Output.ts +49 -0
  218. package/model/getFilterInDestination200Response.ts +36 -0
  219. package/model/getFilterInDestinationV1Output.ts +39 -0
  220. package/model/getFunction200Response.ts +36 -0
  221. package/model/getFunctionV1Output.ts +39 -0
  222. package/model/getLatestFromEdgeFunctions200Response.ts +36 -0
  223. package/model/getLatestFromEdgeFunctionsAlphaOutput.ts +39 -0
  224. package/model/getMessagingSubscriptionFailureResponse.ts +57 -0
  225. package/model/getMessagingSubscriptionSuccessResponse.ts +68 -0
  226. package/model/getRegulation200Response.ts +36 -0
  227. package/model/getRegulationV1Output.ts +39 -0
  228. package/model/getSource200Response.ts +36 -0
  229. package/model/getSource200Response1.ts +36 -0
  230. package/model/getSourceAlphaOutput.ts +39 -0
  231. package/model/getSourceMetadata200Response.ts +36 -0
  232. package/model/getSourceMetadataV1Output.ts +39 -0
  233. package/model/getSourceV1Output.ts +39 -0
  234. package/model/getSourcesCatalog200Response.ts +36 -0
  235. package/model/getSourcesCatalogV1Output.ts +49 -0
  236. package/model/getSpace200Response.ts +36 -0
  237. package/model/getSpaceAlphaOutput.ts +39 -0
  238. package/model/getSubscriptionFromDestination200Response.ts +36 -0
  239. package/model/getSubscriptionFromDestinationAlphaOutput.ts +39 -0
  240. package/model/getSubscriptionRequest.ts +54 -0
  241. package/model/getTrackingPlan200Response.ts +36 -0
  242. package/model/getTrackingPlanV1Output.ts +39 -0
  243. package/model/getTransformation200Response.ts +36 -0
  244. package/model/getTransformationBetaOutput.ts +39 -0
  245. package/model/getUser200Response.ts +36 -0
  246. package/model/getUserGroup200Response.ts +36 -0
  247. package/model/getUserGroupV1Output.ts +39 -0
  248. package/model/getUserV1Output.ts +39 -0
  249. package/model/getWarehouse200Response.ts +36 -0
  250. package/model/getWarehouseMetadata200Response.ts +36 -0
  251. package/model/getWarehouseMetadataV1Output.ts +39 -0
  252. package/model/getWarehouseV1Output.ts +39 -0
  253. package/model/getWarehousesCatalog200Response.ts +36 -0
  254. package/model/getWarehousesCatalogV1Output.ts +49 -0
  255. package/model/getWorkspace200Response.ts +36 -0
  256. package/model/getWorkspaceV1Output.ts +39 -0
  257. package/model/group.ts +67 -0
  258. package/model/groupSourceSettingsV1.ts +64 -0
  259. package/model/identify.ts +67 -0
  260. package/model/identifySourceSettingsV1.ts +64 -0
  261. package/model/input.ts +68 -0
  262. package/model/integrationOptionBeta.ts +86 -0
  263. package/model/invitePermissionV1.ts +61 -0
  264. package/model/inviteV1.ts +51 -0
  265. package/model/label.ts +59 -0
  266. package/model/label1.ts +59 -0
  267. package/model/label2.ts +59 -0
  268. package/model/labelAlpha.ts +59 -0
  269. package/model/labelV1.ts +59 -0
  270. package/model/listAuditEvents200Response.ts +36 -0
  271. package/model/listAuditEventsV1Output.ts +49 -0
  272. package/model/listConnectedDestinationsFromSource200Response.ts +36 -0
  273. package/model/listConnectedDestinationsFromSource200Response1.ts +36 -0
  274. package/model/listConnectedDestinationsFromSourceAlphaOutput.ts +49 -0
  275. package/model/listConnectedDestinationsFromSourceV1Output.ts +49 -0
  276. package/model/listConnectedSourcesFromWarehouse200Response.ts +36 -0
  277. package/model/listConnectedSourcesFromWarehouseV1Output.ts +49 -0
  278. package/model/listConnectedWarehousesFromSource200Response.ts +36 -0
  279. package/model/listConnectedWarehousesFromSource200Response1.ts +36 -0
  280. package/model/listConnectedWarehousesFromSourceAlphaOutput.ts +49 -0
  281. package/model/listConnectedWarehousesFromSourceV1Output.ts +49 -0
  282. package/model/listDeliveryMetricsSummaryFromDestination200Response.ts +36 -0
  283. package/model/listDeliveryMetricsSummaryFromDestinationBetaOutput.ts +39 -0
  284. package/model/listDestinations200Response.ts +36 -0
  285. package/model/listDestinationsV1Output.ts +49 -0
  286. package/model/listFiltersFromDestination200Response.ts +36 -0
  287. package/model/listFiltersFromDestinationV1Output.ts +49 -0
  288. package/model/listFunctionItemV1.ts +111 -0
  289. package/model/listFunctions200Response.ts +36 -0
  290. package/model/listFunctionsV1Output.ts +49 -0
  291. package/model/listInvites200Response.ts +36 -0
  292. package/model/listInvitesFromUserGroup200Response.ts +36 -0
  293. package/model/listInvitesFromUserGroupV1Output.ts +48 -0
  294. package/model/listInvitesV1Output.ts +48 -0
  295. package/model/listLabels200Response.ts +36 -0
  296. package/model/listLabels200Response1.ts +36 -0
  297. package/model/listLabelsAlphaOutput.ts +42 -0
  298. package/model/listLabelsV1Output.ts +42 -0
  299. package/model/listRegulationsFromSource200Response.ts +36 -0
  300. package/model/listRegulationsFromSourceV1Output.ts +42 -0
  301. package/model/listRoles200Response.ts +36 -0
  302. package/model/listRolesV1Output.ts +49 -0
  303. package/model/listRulesFromTrackingPlan200Response.ts +36 -0
  304. package/model/listRulesFromTrackingPlanV1Output.ts +49 -0
  305. package/model/listSchemaSettingsInSource200Response.ts +36 -0
  306. package/model/listSchemaSettingsInSourceV1Output.ts +48 -0
  307. package/model/listSelectiveSyncsFromWarehouseAndSource200Response.ts +36 -0
  308. package/model/listSelectiveSyncsFromWarehouseAndSourceV1Output.ts +49 -0
  309. package/model/listSources200Response.ts +36 -0
  310. package/model/listSources200Response1.ts +36 -0
  311. package/model/listSourcesAlphaOutput.ts +49 -0
  312. package/model/listSourcesFromTrackingPlan200Response.ts +36 -0
  313. package/model/listSourcesFromTrackingPlanV1Output.ts +49 -0
  314. package/model/listSourcesV1Output.ts +49 -0
  315. package/model/listSubscriptionsFromDestination200Response.ts +36 -0
  316. package/model/listSubscriptionsFromDestinationAlphaOutput.ts +49 -0
  317. package/model/listSuppressions200Response.ts +36 -0
  318. package/model/listSuppressionsV1Output.ts +49 -0
  319. package/model/listSyncsFromWarehouse200Response.ts +36 -0
  320. package/model/listSyncsFromWarehouseAndSource200Response.ts +36 -0
  321. package/model/listSyncsFromWarehouseAndSourceV1Output.ts +49 -0
  322. package/model/listSyncsFromWarehouseV1Output.ts +49 -0
  323. package/model/listTrackingPlans200Response.ts +36 -0
  324. package/model/listTrackingPlansV1Output.ts +49 -0
  325. package/model/listTransformations200Response.ts +36 -0
  326. package/model/listTransformationsBetaOutput.ts +49 -0
  327. package/model/listUserGroups200Response.ts +36 -0
  328. package/model/listUserGroupsFromUser200Response.ts +36 -0
  329. package/model/listUserGroupsFromUserV1Output.ts +49 -0
  330. package/model/listUserGroupsV1Output.ts +49 -0
  331. package/model/listUsers200Response.ts +36 -0
  332. package/model/listUsersFromUserGroup200Response.ts +36 -0
  333. package/model/listUsersFromUserGroupV1Output.ts +49 -0
  334. package/model/listUsersV1Output.ts +49 -0
  335. package/model/listWarehouses200Response.ts +36 -0
  336. package/model/listWarehousesV1Output.ts +49 -0
  337. package/model/listWorkspaceRegulations200Response.ts +36 -0
  338. package/model/listWorkspaceRegulationsV1Output.ts +49 -0
  339. package/model/logos.ts +59 -0
  340. package/model/logos1.ts +59 -0
  341. package/model/logos2.ts +59 -0
  342. package/model/logosBeta.ts +59 -0
  343. package/model/messageSubscriptionResponse.ts +78 -0
  344. package/model/messageSubscriptionResponseError.ts +47 -0
  345. package/model/messagesSubscriptionRequest.ts +68 -0
  346. package/model/metadata.ts +203 -0
  347. package/model/metadata1.ts +103 -0
  348. package/model/metadata2.ts +85 -0
  349. package/model/metricBeta.ts +60 -0
  350. package/model/minimalUserGroupV1.ts +50 -0
  351. package/model/minimalUserV1.ts +59 -0
  352. package/model/models.ts +1838 -0
  353. package/model/mtuSnapshotV1.ts +95 -0
  354. package/model/pagination.ts +68 -0
  355. package/model/paginationInput.ts +50 -0
  356. package/model/paginationOutput.ts +68 -0
  357. package/model/permissionInputV1.ts +51 -0
  358. package/model/permissionResourceV1.ts +70 -0
  359. package/model/permissionV1.ts +70 -0
  360. package/model/previewDestinationFilter200Response.ts +36 -0
  361. package/model/previewDestinationFilterV1.ts +51 -0
  362. package/model/previewDestinationFilterV1Input.ts +48 -0
  363. package/model/previewDestinationFilterV1Output.ts +50 -0
  364. package/model/propertyRenameBeta.ts +47 -0
  365. package/model/regulation.ts +99 -0
  366. package/model/regulationListEntryV1.ts +77 -0
  367. package/model/removeFilterFromDestination200Response.ts +36 -0
  368. package/model/removeFilterFromDestinationV1Output.ts +47 -0
  369. package/model/removeRuleV1.ts +61 -0
  370. package/model/removeRulesFromTrackingPlan200Response.ts +36 -0
  371. package/model/removeRulesFromTrackingPlanV1Output.ts +47 -0
  372. package/model/removeSourceConnectionFromWarehouse200Response.ts +36 -0
  373. package/model/removeSourceConnectionFromWarehouseV1Output.ts +47 -0
  374. package/model/removeSourceFromTrackingPlan200Response.ts +36 -0
  375. package/model/removeSourceFromTrackingPlanV1Output.ts +47 -0
  376. package/model/removeSubscriptionFromDestination200Response.ts +36 -0
  377. package/model/removeSubscriptionFromDestinationAlphaOutput.ts +47 -0
  378. package/model/removeUsersFromUserGroup200Response.ts +36 -0
  379. package/model/removeUsersFromUserGroupV1Output.ts +47 -0
  380. package/model/replaceAdvancedSyncScheduleForWarehouse200Response.ts +36 -0
  381. package/model/replaceAdvancedSyncScheduleForWarehouseV1Input.ts +48 -0
  382. package/model/replaceAdvancedSyncScheduleForWarehouseV1Output.ts +48 -0
  383. package/model/replaceLabelsInSource200Response.ts +36 -0
  384. package/model/replaceLabelsInSource200Response1.ts +36 -0
  385. package/model/replaceLabelsInSourceAlphaInput.ts +42 -0
  386. package/model/replaceLabelsInSourceAlphaOutput.ts +42 -0
  387. package/model/replaceLabelsInSourceV1Input.ts +42 -0
  388. package/model/replaceLabelsInSourceV1Output.ts +42 -0
  389. package/model/replaceMessagingSubscriptionsInSpaces200Response.ts +36 -0
  390. package/model/replaceMessagingSubscriptionsInSpacesAlphaInput.ts +42 -0
  391. package/model/replaceMessagingSubscriptionsInSpacesAlphaOutput.ts +58 -0
  392. package/model/replacePermissionsForUser200Response.ts +36 -0
  393. package/model/replacePermissionsForUserGroup200Response.ts +36 -0
  394. package/model/replacePermissionsForUserGroupV1Input.ts +42 -0
  395. package/model/replacePermissionsForUserGroupV1Output.ts +42 -0
  396. package/model/replacePermissionsForUserV1Input.ts +42 -0
  397. package/model/replacePermissionsForUserV1Output.ts +42 -0
  398. package/model/replaceRulesInTrackingPlan200Response.ts +36 -0
  399. package/model/replaceRulesInTrackingPlanV1Input.ts +42 -0
  400. package/model/replaceRulesInTrackingPlanV1Output.ts +47 -0
  401. package/model/replaceUsersInUserGroup200Response.ts +36 -0
  402. package/model/replaceUsersInUserGroupV1Input.ts +41 -0
  403. package/model/replaceUsersInUserGroupV1Output.ts +39 -0
  404. package/model/requestError.ts +77 -0
  405. package/model/requestErrorEnvelope.ts +39 -0
  406. package/model/resourceV1.ts +60 -0
  407. package/model/roleV1.ts +59 -0
  408. package/model/ruleV1.ts +106 -0
  409. package/model/schedule.ts +51 -0
  410. package/model/schedule1.ts +51 -0
  411. package/model/schedule2.ts +51 -0
  412. package/model/settings.ts +71 -0
  413. package/model/settings1.ts +71 -0
  414. package/model/source.ts +59 -0
  415. package/model/source1.ts +112 -0
  416. package/model/source2.ts +112 -0
  417. package/model/source3.ts +112 -0
  418. package/model/source4.ts +112 -0
  419. package/model/source5.ts +112 -0
  420. package/model/source6.ts +112 -0
  421. package/model/sourceAPICallSnapshotV1.ts +59 -0
  422. package/model/sourceAlpha.ts +112 -0
  423. package/model/sourceEventVolumeDatapointV1.ts +50 -0
  424. package/model/sourceEventVolumeV1.ts +76 -0
  425. package/model/sourceMetadata.ts +103 -0
  426. package/model/sourceMetadataV1.ts +103 -0
  427. package/model/sourceSettingsOutputV1.ts +71 -0
  428. package/model/sourceV1.ts +112 -0
  429. package/model/space.ts +50 -0
  430. package/model/streamStatusV1.ts +45 -0
  431. package/model/subscription.ts +104 -0
  432. package/model/supportedFeatures.ts +93 -0
  433. package/model/supportedMethods.ts +77 -0
  434. package/model/supportedPlatforms.ts +59 -0
  435. package/model/suppressedInner.ts +41 -0
  436. package/model/syncNoticeV1.ts +59 -0
  437. package/model/syncV1.ts +105 -0
  438. package/model/track.ts +85 -0
  439. package/model/trackSourceSettingsV1.ts +82 -0
  440. package/model/trackingPlan.ts +104 -0
  441. package/model/trackingPlan1.ts +104 -0
  442. package/model/trackingPlanV1.ts +104 -0
  443. package/model/transformation.ts +105 -0
  444. package/model/transformation1.ts +105 -0
  445. package/model/transformation2.ts +105 -0
  446. package/model/transformationBeta.ts +105 -0
  447. package/model/updateDestination200Response.ts +36 -0
  448. package/model/updateDestinationV1Input.ts +59 -0
  449. package/model/updateDestinationV1Output.ts +39 -0
  450. package/model/updateFilterForDestination200Response.ts +36 -0
  451. package/model/updateFilterForDestinationV1Input.ts +78 -0
  452. package/model/updateFilterForDestinationV1Output.ts +39 -0
  453. package/model/updateFunction200Response.ts +36 -0
  454. package/model/updateFunctionV1Input.ts +78 -0
  455. package/model/updateFunctionV1Output.ts +39 -0
  456. package/model/updateRulesInTrackingPlan200Response.ts +36 -0
  457. package/model/updateRulesInTrackingPlanV1Input.ts +42 -0
  458. package/model/updateRulesInTrackingPlanV1Output.ts +47 -0
  459. package/model/updateSchemaSettingsInSource200Response.ts +36 -0
  460. package/model/updateSchemaSettingsInSourceV1Input.ts +71 -0
  461. package/model/updateSchemaSettingsInSourceV1Output.ts +48 -0
  462. package/model/updateSelectiveSyncForWarehouse200Response.ts +36 -0
  463. package/model/updateSelectiveSyncForWarehouseV1Input.ts +42 -0
  464. package/model/updateSelectiveSyncForWarehouseV1Output.ts +57 -0
  465. package/model/updateSource200Response.ts +36 -0
  466. package/model/updateSource200Response1.ts +36 -0
  467. package/model/updateSourceAlphaInput.ts +68 -0
  468. package/model/updateSourceAlphaOutput.ts +39 -0
  469. package/model/updateSourceV1Input.ts +68 -0
  470. package/model/updateSourceV1Output.ts +39 -0
  471. package/model/updateSubscriptionForDestination200Response.ts +36 -0
  472. package/model/updateSubscriptionForDestinationAlphaInput.ts +39 -0
  473. package/model/updateSubscriptionForDestinationAlphaOutput.ts +39 -0
  474. package/model/updateTrackingPlan200Response.ts +36 -0
  475. package/model/updateTrackingPlanV1Input.ts +50 -0
  476. package/model/updateTrackingPlanV1Output.ts +47 -0
  477. package/model/updateTransformation200Response.ts +36 -0
  478. package/model/updateTransformationBetaInput.ts +96 -0
  479. package/model/updateTransformationBetaOutput.ts +39 -0
  480. package/model/updateUserGroup200Response.ts +36 -0
  481. package/model/updateUserGroupV1Input.ts +41 -0
  482. package/model/updateUserGroupV1Output.ts +39 -0
  483. package/model/updateWarehouse200Response.ts +36 -0
  484. package/model/updateWarehouseV1Input.ts +59 -0
  485. package/model/updateWarehouseV1Output.ts +39 -0
  486. package/model/upsertRuleV1.ts +112 -0
  487. package/model/user.ts +69 -0
  488. package/model/userGroup.ts +69 -0
  489. package/model/userGroup1.ts +69 -0
  490. package/model/userGroup2.ts +69 -0
  491. package/model/userGroup3.ts +69 -0
  492. package/model/userGroupV1.ts +69 -0
  493. package/model/userV1.ts +69 -0
  494. package/model/usersPerSourceSnapshotV1.ts +104 -0
  495. package/model/warehouse.ts +75 -0
  496. package/model/warehouse1.ts +75 -0
  497. package/model/warehouse2.ts +75 -0
  498. package/model/warehouseAdvancedSyncV1.ts +50 -0
  499. package/model/warehouseMetadata.ts +85 -0
  500. package/model/warehouseMetadataV1.ts +85 -0
  501. package/model/warehouseSelectiveSyncItemV1.ts +68 -0
  502. package/model/warehouseSyncOverrideV1.ts +68 -0
  503. package/model/warehouseV1.ts +75 -0
  504. package/model/workspace.ts +59 -0
  505. package/model/workspaceV1.ts +59 -0
  506. package/package.json +1 -2
  507. package/tests/__snapshots__/smoke.test.ts.snap +889 -0
  508. package/tests/smoke.test.ts +267 -0
  509. package/tsconfig.json +20 -0
@@ -0,0 +1,113 @@
1
+ /**
2
+ * Segment Public API
3
+ * The Segment Public API helps you manage your Segment Workspaces and its resources. You can use the API to perform CRUD (create, read, update, delete) operations at no extra charge. This includes working with resources such as Sources, Destinations, Warehouses, Tracking Plans, and the Segment Destinations and Sources Catalogs. All CRUD endpoints in the API follow REST conventions and use standard HTTP methods. Different URL endpoints represent different resources in a Workspace. See the next sections for more information on how to use the Segment Public API.
4
+ *
5
+ * The version of the OpenAPI document: 32.0.2
6
+ * Contact: friends@segment.com
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+
13
+ import { RequestFile } from './models';
14
+ import { DestinationMetadataActionFieldV1 } from './destinationMetadataActionFieldV1';
15
+
16
+ /**
17
+ * Represents an Action, a building block of behavior that can be performed by the Destination.
18
+ */
19
+ export class DestinationMetadataActionV1 {
20
+ /**
21
+ * The primary key of the action.
22
+ */
23
+ 'id': string;
24
+ /**
25
+ * A machine-readable key unique to the action definition.
26
+ */
27
+ 'slug': string;
28
+ /**
29
+ * A human-readable name for the action.
30
+ */
31
+ 'name': string;
32
+ /**
33
+ * A human-readable description of the action. May include Markdown.
34
+ */
35
+ 'description': string;
36
+ /**
37
+ * The platform on which this action runs.
38
+ */
39
+ 'platform': DestinationMetadataActionV1.PlatformEnum;
40
+ /**
41
+ * Whether the action should be hidden.
42
+ */
43
+ 'hidden': boolean;
44
+ /**
45
+ * The default value used as the trigger when connecting this action.
46
+ */
47
+ 'defaultTrigger': string | null;
48
+ /**
49
+ * The fields expected in order to perform the action.
50
+ */
51
+ 'fields': Array<DestinationMetadataActionFieldV1>;
52
+
53
+ static discriminator: string | undefined = undefined;
54
+
55
+ static attributeTypeMap: Array<{
56
+ name: string;
57
+ baseName: string;
58
+ type: string;
59
+ }> = [
60
+ {
61
+ name: 'id',
62
+ baseName: 'id',
63
+ type: 'string',
64
+ },
65
+ {
66
+ name: 'slug',
67
+ baseName: 'slug',
68
+ type: 'string',
69
+ },
70
+ {
71
+ name: 'name',
72
+ baseName: 'name',
73
+ type: 'string',
74
+ },
75
+ {
76
+ name: 'description',
77
+ baseName: 'description',
78
+ type: 'string',
79
+ },
80
+ {
81
+ name: 'platform',
82
+ baseName: 'platform',
83
+ type: 'DestinationMetadataActionV1.PlatformEnum',
84
+ },
85
+ {
86
+ name: 'hidden',
87
+ baseName: 'hidden',
88
+ type: 'boolean',
89
+ },
90
+ {
91
+ name: 'defaultTrigger',
92
+ baseName: 'defaultTrigger',
93
+ type: 'string',
94
+ },
95
+ {
96
+ name: 'fields',
97
+ baseName: 'fields',
98
+ type: 'Array<DestinationMetadataActionFieldV1>',
99
+ },
100
+ ];
101
+
102
+ static getAttributeTypeMap() {
103
+ return DestinationMetadataActionV1.attributeTypeMap;
104
+ }
105
+ }
106
+
107
+ export namespace DestinationMetadataActionV1 {
108
+ export enum PlatformEnum {
109
+ CLOUD = <any>'CLOUD',
110
+ MOBILE = <any>'MOBILE',
111
+ WEB = <any>'WEB',
112
+ }
113
+ }
@@ -0,0 +1,72 @@
1
+ /**
2
+ * Segment Public API
3
+ * The Segment Public API helps you manage your Segment Workspaces and its resources. You can use the API to perform CRUD (create, read, update, delete) operations at no extra charge. This includes working with resources such as Sources, Destinations, Warehouses, Tracking Plans, and the Segment Destinations and Sources Catalogs. All CRUD endpoints in the API follow REST conventions and use standard HTTP methods. Different URL endpoints represent different resources in a Workspace. See the next sections for more information on how to use the Segment Public API.
4
+ *
5
+ * The version of the OpenAPI document: 32.0.2
6
+ * Contact: friends@segment.com
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+
13
+ import { RequestFile } from './models';
14
+
15
+ /**
16
+ * Represents a component this Destination provides.
17
+ */
18
+ export class DestinationMetadataComponentV1 {
19
+ /**
20
+ * The component type.
21
+ */
22
+ 'type': DestinationMetadataComponentV1.TypeEnum;
23
+ /**
24
+ * Link to the repository hosting the code for this component.
25
+ */
26
+ 'code': string;
27
+ /**
28
+ * The owner of this component. Either \'SEGMENT\' or \'PARTNER\'.
29
+ */
30
+ 'owner'?: DestinationMetadataComponentV1.OwnerEnum;
31
+
32
+ static discriminator: string | undefined = undefined;
33
+
34
+ static attributeTypeMap: Array<{
35
+ name: string;
36
+ baseName: string;
37
+ type: string;
38
+ }> = [
39
+ {
40
+ name: 'type',
41
+ baseName: 'type',
42
+ type: 'DestinationMetadataComponentV1.TypeEnum',
43
+ },
44
+ {
45
+ name: 'code',
46
+ baseName: 'code',
47
+ type: 'string',
48
+ },
49
+ {
50
+ name: 'owner',
51
+ baseName: 'owner',
52
+ type: 'DestinationMetadataComponentV1.OwnerEnum',
53
+ },
54
+ ];
55
+
56
+ static getAttributeTypeMap() {
57
+ return DestinationMetadataComponentV1.attributeTypeMap;
58
+ }
59
+ }
60
+
61
+ export namespace DestinationMetadataComponentV1 {
62
+ export enum TypeEnum {
63
+ ANDROID = <any>'ANDROID',
64
+ BROWSER = <any>'BROWSER',
65
+ IOS = <any>'IOS',
66
+ SERVER = <any>'SERVER',
67
+ }
68
+ export enum OwnerEnum {
69
+ PARTNER = <any>'PARTNER',
70
+ SEGMENT = <any>'SEGMENT',
71
+ }
72
+ }
@@ -0,0 +1,93 @@
1
+ /**
2
+ * Segment Public API
3
+ * The Segment Public API helps you manage your Segment Workspaces and its resources. You can use the API to perform CRUD (create, read, update, delete) operations at no extra charge. This includes working with resources such as Sources, Destinations, Warehouses, Tracking Plans, and the Segment Destinations and Sources Catalogs. All CRUD endpoints in the API follow REST conventions and use standard HTTP methods. Different URL endpoints represent different resources in a Workspace. See the next sections for more information on how to use the Segment Public API.
4
+ *
5
+ * The version of the OpenAPI document: 32.0.2
6
+ * Contact: friends@segment.com
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+
13
+ import { RequestFile } from './models';
14
+
15
+ /**
16
+ * Represents features that a given Destination supports.
17
+ */
18
+ export class DestinationMetadataFeaturesV1 {
19
+ /**
20
+ * This Destination\'s support level for cloud mode instances. The values \'0\' and \'NONE\', and \'1\' and \'SINGLE\' are equivalent.
21
+ */
22
+ 'cloudModeInstances'?: DestinationMetadataFeaturesV1.CloudModeInstancesEnum;
23
+ /**
24
+ * This Destination\'s support level for device mode instances. Support for multiple device mode instances is currently not planned. The values \'0\' and \'NONE\', and \'1\' and \'SINGLE\' are equivalent.
25
+ */
26
+ 'deviceModeInstances'?: DestinationMetadataFeaturesV1.DeviceModeInstancesEnum;
27
+ /**
28
+ * Whether this Destination supports replays.
29
+ */
30
+ 'replay'?: boolean;
31
+ /**
32
+ * Whether this Destination supports browser unbundling.
33
+ */
34
+ 'browserUnbundling'?: boolean;
35
+ /**
36
+ * Whether this Destination supports public browser unbundling.
37
+ */
38
+ 'browserUnbundlingPublic'?: boolean;
39
+
40
+ static discriminator: string | undefined = undefined;
41
+
42
+ static attributeTypeMap: Array<{
43
+ name: string;
44
+ baseName: string;
45
+ type: string;
46
+ }> = [
47
+ {
48
+ name: 'cloudModeInstances',
49
+ baseName: 'cloudModeInstances',
50
+ type: 'DestinationMetadataFeaturesV1.CloudModeInstancesEnum',
51
+ },
52
+ {
53
+ name: 'deviceModeInstances',
54
+ baseName: 'deviceModeInstances',
55
+ type: 'DestinationMetadataFeaturesV1.DeviceModeInstancesEnum',
56
+ },
57
+ {
58
+ name: 'replay',
59
+ baseName: 'replay',
60
+ type: 'boolean',
61
+ },
62
+ {
63
+ name: 'browserUnbundling',
64
+ baseName: 'browserUnbundling',
65
+ type: 'boolean',
66
+ },
67
+ {
68
+ name: 'browserUnbundlingPublic',
69
+ baseName: 'browserUnbundlingPublic',
70
+ type: 'boolean',
71
+ },
72
+ ];
73
+
74
+ static getAttributeTypeMap() {
75
+ return DestinationMetadataFeaturesV1.attributeTypeMap;
76
+ }
77
+ }
78
+
79
+ export namespace DestinationMetadataFeaturesV1 {
80
+ export enum CloudModeInstancesEnum {
81
+ _0 = <any>'0',
82
+ _1 = <any>'1',
83
+ MULTIPLE = <any>'MULTIPLE',
84
+ NONE = <any>'NONE',
85
+ SINGLE = <any>'SINGLE',
86
+ }
87
+ export enum DeviceModeInstancesEnum {
88
+ _0 = <any>'0',
89
+ _1 = <any>'1',
90
+ NONE = <any>'NONE',
91
+ SINGLE = <any>'SINGLE',
92
+ }
93
+ }
@@ -0,0 +1,77 @@
1
+ /**
2
+ * Segment Public API
3
+ * The Segment Public API helps you manage your Segment Workspaces and its resources. You can use the API to perform CRUD (create, read, update, delete) operations at no extra charge. This includes working with resources such as Sources, Destinations, Warehouses, Tracking Plans, and the Segment Destinations and Sources Catalogs. All CRUD endpoints in the API follow REST conventions and use standard HTTP methods. Different URL endpoints represent different resources in a Workspace. See the next sections for more information on how to use the Segment Public API.
4
+ *
5
+ * The version of the OpenAPI document: 32.0.2
6
+ * Contact: friends@segment.com
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+
13
+ import { RequestFile } from './models';
14
+
15
+ /**
16
+ * Represents methods that a given Destination supports.
17
+ */
18
+ export class DestinationMetadataMethodsV1 {
19
+ /**
20
+ * Identifies if the Destination supports the `pageview` method.
21
+ */
22
+ 'pageview'?: boolean;
23
+ /**
24
+ * Identifies if the Destination supports the `identify` method.
25
+ */
26
+ 'identify'?: boolean;
27
+ /**
28
+ * Identifies if the Destination supports the `alias` method.
29
+ */
30
+ 'alias'?: boolean;
31
+ /**
32
+ * Identifies if the Destination supports the `track` method.
33
+ */
34
+ 'track'?: boolean;
35
+ /**
36
+ * Identifies if the Destination supports the `group` method.
37
+ */
38
+ 'group'?: boolean;
39
+
40
+ static discriminator: string | undefined = undefined;
41
+
42
+ static attributeTypeMap: Array<{
43
+ name: string;
44
+ baseName: string;
45
+ type: string;
46
+ }> = [
47
+ {
48
+ name: 'pageview',
49
+ baseName: 'pageview',
50
+ type: 'boolean',
51
+ },
52
+ {
53
+ name: 'identify',
54
+ baseName: 'identify',
55
+ type: 'boolean',
56
+ },
57
+ {
58
+ name: 'alias',
59
+ baseName: 'alias',
60
+ type: 'boolean',
61
+ },
62
+ {
63
+ name: 'track',
64
+ baseName: 'track',
65
+ type: 'boolean',
66
+ },
67
+ {
68
+ name: 'group',
69
+ baseName: 'group',
70
+ type: 'boolean',
71
+ },
72
+ ];
73
+
74
+ static getAttributeTypeMap() {
75
+ return DestinationMetadataMethodsV1.attributeTypeMap;
76
+ }
77
+ }
@@ -0,0 +1,59 @@
1
+ /**
2
+ * Segment Public API
3
+ * The Segment Public API helps you manage your Segment Workspaces and its resources. You can use the API to perform CRUD (create, read, update, delete) operations at no extra charge. This includes working with resources such as Sources, Destinations, Warehouses, Tracking Plans, and the Segment Destinations and Sources Catalogs. All CRUD endpoints in the API follow REST conventions and use standard HTTP methods. Different URL endpoints represent different resources in a Workspace. See the next sections for more information on how to use the Segment Public API.
4
+ *
5
+ * The version of the OpenAPI document: 32.0.2
6
+ * Contact: friends@segment.com
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+
13
+ import { RequestFile } from './models';
14
+
15
+ /**
16
+ * Represents platforms that a given Destination supports.
17
+ */
18
+ export class DestinationMetadataPlatformsV1 {
19
+ /**
20
+ * Whether this Destination supports browser events.
21
+ */
22
+ 'browser'?: boolean;
23
+ /**
24
+ * Whether this Destination supports server events.
25
+ */
26
+ 'server'?: boolean;
27
+ /**
28
+ * Whether this Destination supports mobile events.
29
+ */
30
+ 'mobile'?: boolean;
31
+
32
+ static discriminator: string | undefined = undefined;
33
+
34
+ static attributeTypeMap: Array<{
35
+ name: string;
36
+ baseName: string;
37
+ type: string;
38
+ }> = [
39
+ {
40
+ name: 'browser',
41
+ baseName: 'browser',
42
+ type: 'boolean',
43
+ },
44
+ {
45
+ name: 'server',
46
+ baseName: 'server',
47
+ type: 'boolean',
48
+ },
49
+ {
50
+ name: 'mobile',
51
+ baseName: 'mobile',
52
+ type: 'boolean',
53
+ },
54
+ ];
55
+
56
+ static getAttributeTypeMap() {
57
+ return DestinationMetadataPlatformsV1.attributeTypeMap;
58
+ }
59
+ }
@@ -0,0 +1,68 @@
1
+ /**
2
+ * Segment Public API
3
+ * The Segment Public API helps you manage your Segment Workspaces and its resources. You can use the API to perform CRUD (create, read, update, delete) operations at no extra charge. This includes working with resources such as Sources, Destinations, Warehouses, Tracking Plans, and the Segment Destinations and Sources Catalogs. All CRUD endpoints in the API follow REST conventions and use standard HTTP methods. Different URL endpoints represent different resources in a Workspace. See the next sections for more information on how to use the Segment Public API.
4
+ *
5
+ * The version of the OpenAPI document: 32.0.2
6
+ * Contact: friends@segment.com
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+
13
+ import { RequestFile } from './models';
14
+
15
+ /**
16
+ * Represents a set of defaults for a Destination subscription.
17
+ */
18
+ export class DestinationMetadataSubscriptionPresetV1 {
19
+ /**
20
+ * The unique identifier for the Destination Action to trigger.
21
+ */
22
+ 'actionId': string;
23
+ /**
24
+ * The name of the subscription.
25
+ */
26
+ 'name': string;
27
+ /**
28
+ * The default settings for action fields.
29
+ */
30
+ 'fields': { [key: string]: any };
31
+ /**
32
+ * FQL string that describes what events should trigger an action. See https://segment.com/docs/config-api/fql/ for more information regarding Segment\'s Filter Query Language (FQL).
33
+ */
34
+ 'trigger': string;
35
+
36
+ static discriminator: string | undefined = undefined;
37
+
38
+ static attributeTypeMap: Array<{
39
+ name: string;
40
+ baseName: string;
41
+ type: string;
42
+ }> = [
43
+ {
44
+ name: 'actionId',
45
+ baseName: 'actionId',
46
+ type: 'string',
47
+ },
48
+ {
49
+ name: 'name',
50
+ baseName: 'name',
51
+ type: 'string',
52
+ },
53
+ {
54
+ name: 'fields',
55
+ baseName: 'fields',
56
+ type: '{ [key: string]: any; }',
57
+ },
58
+ {
59
+ name: 'trigger',
60
+ baseName: 'trigger',
61
+ type: 'string',
62
+ },
63
+ ];
64
+
65
+ static getAttributeTypeMap() {
66
+ return DestinationMetadataSubscriptionPresetV1.attributeTypeMap;
67
+ }
68
+ }
@@ -0,0 +1,203 @@
1
+ /**
2
+ * Segment Public API
3
+ * The Segment Public API helps you manage your Segment Workspaces and its resources. You can use the API to perform CRUD (create, read, update, delete) operations at no extra charge. This includes working with resources such as Sources, Destinations, Warehouses, Tracking Plans, and the Segment Destinations and Sources Catalogs. All CRUD endpoints in the API follow REST conventions and use standard HTTP methods. Different URL endpoints represent different resources in a Workspace. See the next sections for more information on how to use the Segment Public API.
4
+ *
5
+ * The version of the OpenAPI document: 32.0.2
6
+ * Contact: friends@segment.com
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+
13
+ import { RequestFile } from './models';
14
+ import { Contact } from './contact';
15
+ import { DestinationMetadataActionV1 } from './destinationMetadataActionV1';
16
+ import { DestinationMetadataComponentV1 } from './destinationMetadataComponentV1';
17
+ import { DestinationMetadataSubscriptionPresetV1 } from './destinationMetadataSubscriptionPresetV1';
18
+ import { IntegrationOptionBeta } from './integrationOptionBeta';
19
+ import { Logos } from './logos';
20
+ import { SupportedFeatures } from './supportedFeatures';
21
+ import { SupportedMethods } from './supportedMethods';
22
+ import { SupportedPlatforms } from './supportedPlatforms';
23
+
24
+ /**
25
+ * Represents a Destination within Segment. A Destination is a target for Segment to forward data to, and represents a tool or storage Destination.
26
+ */
27
+ export class DestinationMetadataV1 {
28
+ /**
29
+ * The id of the Destination metadata. Config API note: analogous to `name`.
30
+ */
31
+ 'id': string;
32
+ /**
33
+ * The user-friendly name of the Destination. Config API note: equal to `displayName`.
34
+ */
35
+ 'name': string;
36
+ /**
37
+ * The description of the Destination.
38
+ */
39
+ 'description': string;
40
+ /**
41
+ * The slug used to identify the Destination in the Segment app.
42
+ */
43
+ 'slug': string;
44
+ 'logos': Logos;
45
+ /**
46
+ * Options configured for the Destination.
47
+ */
48
+ 'options': Array<IntegrationOptionBeta>;
49
+ /**
50
+ * Support status of the Destination.
51
+ */
52
+ 'status': DestinationMetadataV1.StatusEnum;
53
+ /**
54
+ * A list of names previously used by the Destination.
55
+ */
56
+ 'previousNames': Array<string>;
57
+ /**
58
+ * A list of categories with which the Destination is associated.
59
+ */
60
+ 'categories': Array<string>;
61
+ /**
62
+ * A website URL for this Destination.
63
+ */
64
+ 'website': string;
65
+ /**
66
+ * A list of components this Destination provides.
67
+ */
68
+ 'components': Array<DestinationMetadataComponentV1>;
69
+ 'supportedFeatures': SupportedFeatures;
70
+ 'supportedMethods': SupportedMethods;
71
+ 'supportedPlatforms': SupportedPlatforms;
72
+ /**
73
+ * Actions available for the Destination.
74
+ */
75
+ 'actions': Array<DestinationMetadataActionV1>;
76
+ /**
77
+ * Predefined Destination subscriptions that can optionally be applied when connecting a new instance of the Destination.
78
+ */
79
+ 'presets': Array<DestinationMetadataSubscriptionPresetV1>;
80
+ /**
81
+ * Contact info for Integration Owners.
82
+ */
83
+ 'contacts'?: Array<Contact>;
84
+ /**
85
+ * Partner Owned flag.
86
+ */
87
+ 'partnerOwned'?: boolean;
88
+
89
+ static discriminator: string | undefined = undefined;
90
+
91
+ static attributeTypeMap: Array<{
92
+ name: string;
93
+ baseName: string;
94
+ type: string;
95
+ }> = [
96
+ {
97
+ name: 'id',
98
+ baseName: 'id',
99
+ type: 'string',
100
+ },
101
+ {
102
+ name: 'name',
103
+ baseName: 'name',
104
+ type: 'string',
105
+ },
106
+ {
107
+ name: 'description',
108
+ baseName: 'description',
109
+ type: 'string',
110
+ },
111
+ {
112
+ name: 'slug',
113
+ baseName: 'slug',
114
+ type: 'string',
115
+ },
116
+ {
117
+ name: 'logos',
118
+ baseName: 'logos',
119
+ type: 'Logos',
120
+ },
121
+ {
122
+ name: 'options',
123
+ baseName: 'options',
124
+ type: 'Array<IntegrationOptionBeta>',
125
+ },
126
+ {
127
+ name: 'status',
128
+ baseName: 'status',
129
+ type: 'DestinationMetadataV1.StatusEnum',
130
+ },
131
+ {
132
+ name: 'previousNames',
133
+ baseName: 'previousNames',
134
+ type: 'Array<string>',
135
+ },
136
+ {
137
+ name: 'categories',
138
+ baseName: 'categories',
139
+ type: 'Array<string>',
140
+ },
141
+ {
142
+ name: 'website',
143
+ baseName: 'website',
144
+ type: 'string',
145
+ },
146
+ {
147
+ name: 'components',
148
+ baseName: 'components',
149
+ type: 'Array<DestinationMetadataComponentV1>',
150
+ },
151
+ {
152
+ name: 'supportedFeatures',
153
+ baseName: 'supportedFeatures',
154
+ type: 'SupportedFeatures',
155
+ },
156
+ {
157
+ name: 'supportedMethods',
158
+ baseName: 'supportedMethods',
159
+ type: 'SupportedMethods',
160
+ },
161
+ {
162
+ name: 'supportedPlatforms',
163
+ baseName: 'supportedPlatforms',
164
+ type: 'SupportedPlatforms',
165
+ },
166
+ {
167
+ name: 'actions',
168
+ baseName: 'actions',
169
+ type: 'Array<DestinationMetadataActionV1>',
170
+ },
171
+ {
172
+ name: 'presets',
173
+ baseName: 'presets',
174
+ type: 'Array<DestinationMetadataSubscriptionPresetV1>',
175
+ },
176
+ {
177
+ name: 'contacts',
178
+ baseName: 'contacts',
179
+ type: 'Array<Contact>',
180
+ },
181
+ {
182
+ name: 'partnerOwned',
183
+ baseName: 'partnerOwned',
184
+ type: 'boolean',
185
+ },
186
+ ];
187
+
188
+ static getAttributeTypeMap() {
189
+ return DestinationMetadataV1.attributeTypeMap;
190
+ }
191
+ }
192
+
193
+ export namespace DestinationMetadataV1 {
194
+ export enum StatusEnum {
195
+ DEPRECATED = <any>'DEPRECATED',
196
+ PRIVATE_BETA = <any>'PRIVATE_BETA',
197
+ PRIVATE_BUILDING = <any>'PRIVATE_BUILDING',
198
+ PRIVATE_SUBMITTED = <any>'PRIVATE_SUBMITTED',
199
+ PUBLIC = <any>'PUBLIC',
200
+ PUBLIC_BETA = <any>'PUBLIC_BETA',
201
+ UNAVAILABLE = <any>'UNAVAILABLE',
202
+ }
203
+ }